diff --git a/src/facade/Makefile b/src/facade/Makefile index f7a1afb..bb93a59 100644 --- a/src/facade/Makefile +++ b/src/facade/Makefile @@ -6,7 +6,7 @@ # Run `make sync` after every Wippy Web Host version bump to pull fresh copies. # Web Host CDN base — update version when Wippy Web Host releases -WEB_HOST_CDN = https://web-host.wippy.ai/webcomponents-1.0.30 +WEB_HOST_CDN = https://web-host.wippy.ai/webcomponents-1.0.32 # Files to sync from CDN into public/@wippy-fe/ CDN_FILES = loading.js diff --git a/src/facade/README.md b/src/facade/README.md index 979369b..c74c124 100644 --- a/src/facade/README.md +++ b/src/facade/README.md @@ -66,7 +66,7 @@ These fields are NOT configurable via requirements — they are computed at runt | Requirement | Default | Description | |---|---|---| -| `fe_facade_url` | `https://web-host.wippy.ai/webcomponents-1.0.30` | CDN base URL for the Web Host frontend bundle | +| `fe_facade_url` | `https://web-host.wippy.ai/webcomponents-1.0.32` | CDN base URL for the Web Host frontend bundle | | `fe_entry_path` | `/iframe.html` | Iframe HTML entry point path (appended to `fe_facade_url`) | | `fe_mode` | `compat` | `compat` (default — loads `module.js`) or `managed` (loads `managed-layout.js` for declarative multi-panel apps). See [Modes](#modes) above | @@ -280,9 +280,9 @@ Scripts are fetched in parallel and awaited before the Web Host bundle is import ```json { - "facade_url": "https://web-host.wippy.ai/webcomponents-1.0.30", + "facade_url": "https://web-host.wippy.ai/webcomponents-1.0.32", "iframe_origin": "https://web-host.wippy.ai", - "iframe_url": "https://web-host.wippy.ai/webcomponents-1.0.30/iframe.html?waitForCustomConfig", + "iframe_url": "https://web-host.wippy.ai/webcomponents-1.0.32/iframe.html?waitForCustomConfig", "login_path": "/login.html", "login_redirect_param": null, "env": { diff --git a/src/facade/_index.yaml b/src/facade/_index.yaml index 00c0210..cdab9cb 100644 --- a/src/facade/_index.yaml +++ b/src/facade/_index.yaml @@ -33,7 +33,7 @@ entries: targets: - entry: wippy.facade:fe_facade_url path: .default - default: https://web-host.wippy.ai/webcomponents-1.0.30 + default: https://web-host.wippy.ai/webcomponents-1.0.32 - name: fe_entry_path kind: ns.requirement diff --git a/src/facade/config_handler_test.lua b/src/facade/config_handler_test.lua index 264830f..6c2b1e8 100644 --- a/src/facade/config_handler_test.lua +++ b/src/facade/config_handler_test.lua @@ -117,7 +117,7 @@ local function define_tests() end) test.it("extracts iframe origin from facade URL", function() - local facade_url = "https://web-host.wippy.ai/webcomponents-1.0.30" + local facade_url = "https://web-host.wippy.ai/webcomponents-1.0.32" local origin = facade_url:match("^(https?://[^/]+)") test.eq(origin, "https://web-host.wippy.ai") diff --git a/src/views/README.md b/src/views/README.md index 5e5a010..7847017 100644 --- a/src/views/README.md +++ b/src/views/README.md @@ -22,3 +22,185 @@ [wippy-documentation]: https://docs.wippy.ai [releases-page]: https://github.com/wippyai/module-views/releases [wippy-framework]: https://github.com/wippyai/framework + +--- + +## Migrating to 0.4.32: bundled `wippy-meta.json` (Web Host ≥ 1.0.31) + +Starting in `wippy/views@0.4.32`, the three view-metadata endpoints +(`/pages/content/{id}`, `/components/list`, `/components/by-tag/{tag}`) +read the consumer build's `wippy-meta.json` as the source for fields the +FE author owns. The YAML registry entry remains the **authoritative +abstraction**: it is read first, field by field, and bundled meta fills +only the gaps. The pre-0.4.32 YAML-only synthesis path stays in place as +a fallback — entries that ship no `wippy-meta.json` continue to work +unchanged. + +### Resolution rule + +**YAML always wins on a field-by-field basis.** Bundled meta is the +fallback for fields YAML omits. For every field below, the lookup order +is `YAML → bundled wippy-meta.json → legacy default`. + +This means you can: +- **Slim a YAML entry** by removing fields the consumer's `package.json` + already declares — the bundled meta will fill them in transparently. +- **Override any field from YAML** by setting it explicitly in the + registry entry — operators always retain the last word. +- **Compose a themed variant** by re-pointing a registry entry at an + existing artifact's URL and adding `meta.config_overrides` for the + per-variant customization payload — the overlay deep-merges over the + bundled `wippy.configOverrides`. + +### Bundled `wippy-meta.json` — how to produce it + +Use [`@wippy-fe/vite-plugin`][wippy-fe-vite-plugin] ≥ 0.0.31 in the +consumer's `vite.config.ts`: + +```ts +import { wippyPagePlugin } from '@wippy-fe/vite-plugin' // for view.page +// OR +import { wippyComponentPlugin } from '@wippy-fe/vite-plugin' // for view.component + +export default defineConfig({ + plugins: [/* ... */, wippyPagePlugin()], +}) +``` + +Both plugins emit `dist/wippy-meta.json` — the consumer's `package.json` +with every `file://` reference resolved at build time. +Non-Vite consumers (rollup, esbuild, hand-built) can produce the same +file by any equivalent build step — see +[`web_components.spec.md`][spec] § "Package metadata: source of truth" +for the contract. + +[wippy-fe-vite-plugin]: https://www.npmjs.com/package/@wippy-fe/vite-plugin +[spec]: https://github.com/wippyai/gen-2-chat/blob/main/web_components.spec.md + +### Field-by-field mapping + +#### `view.page` → `GET /pages/content/{id}` (wippy-component-1.0 spec response) + +| Response field | YAML source (priority 1) | Bundled meta source (priority 2) | Legacy default (priority 3) | +|---|---|---|---| +| `name` | `meta.name` | `.name` (e.g. `@org/my-page`) | entry id | +| `version` | — | `.version` | `"1.0.0"` | +| `specification` | — | `.specification` | `"wippy-component-1.0"` | +| `title` | `meta.title` | `.wippy.title` → `.title` | `""` | +| `baseUrl` | (always computed from `meta.url` + `meta.base_path` + `PUBLIC_API_URL` — operator/routing decision) | | | +| `wippy.type` | (always `"page"`) | | | +| `wippy.path` | `meta.entry_point` | `.wippy.path` | `"index.html"` | +| `wippy.proxy` | — | `.wippy.proxy` (whole block) | `synthesize_from_registry` builds from snake_case `data.proxy.*` | +| `wippy.configOverrides` | `meta.config_overrides` deep-merged ON TOP of bundled (YAML wins per nested key) | `.wippy.configOverrides` | `nil` | + +#### `view.component` → `GET /components/list` and `GET /components/by-tag/{tag}` + +| Response field | YAML source (priority 1) | Bundled meta source (priority 2) | Legacy default (priority 3) | +|---|---|---|---| +| `id` | (always the registry entry id) | | | +| `name` | `meta.name` | `.name` | `""` | +| `title` | `meta.title` | `.wippy.title` → `.title` | `""` | +| `tag_name` | `meta.tag_name` | `.wippy.tagName` | `nil` | +| `base_url` | (always computed from `meta.url` + `meta.base_path` — operator/routing decision) | | | +| `entry_point` | `meta.entry_point` | `.browser` (the wippy-component-1.0 spec field for ESM module / component packages) | `"index.js"` | +| `auto_register` | (always from `meta.auto_register` — deployment policy) | | | +| `props` | `meta.props` | `.wippy.props` | `nil` | +| `events` | `meta.events` | `.wippy.events` | `nil` | + +### What to keep in YAML vs what to drop + +#### YAML MUST keep (registry routing + deployment policy) + +These are decisions the operator makes at registration time. They are not +in the consumer build: +- `name:` (the registry entry id — short slug, e.g. `iframe-demo`) +- `kind: registry.entry` +- `meta.type` (`view.page` / `view.component`) +- `meta.url`, `meta.base_path` (where to serve the bundle from) +- `meta.announced`, `meta.secure` (visibility + auth) +- `meta.auto_register` (component-only; deployment policy) +- `meta.mountRoute` (page-only; gen-2-chat routing) +- `meta.icon`, `meta.order`, `meta.group*` (UI metadata) +- `meta.config_overrides` (variant overlay payload — see below) + +#### YAML CAN drop (covered by bundled `wippy-meta.json`) + +If your build emits `wippy-meta.json`, these YAML fields are redundant +and can be removed: +- `meta.title` → comes from `package.json` `wippy.title` or top-level `title` +- `meta.tag_name` → comes from `package.json` `wippy.tagName` +- `meta.entry_point` → comes from `package.json` `wippy.path` (for `view.page`) or top-level `browser` (for `view.component`). Per [wippy-component-1.0 spec][spec], these are the canonical fields per package kind — `browser` is for ESM module / component entries, `wippy.path` is for HTML page entries. They are NOT interchangeable. +- `meta.props`, `meta.events` → come from `package.json` `wippy.props` / `wippy.events` +- `data.proxy` (the snake_case legacy proxy injection block at the top of the entry data) → comes from `package.json` `wippy.proxy` (camelCase). **Note**: there is NO camelCase YAML override for `wippy.proxy`. If you need a per-entry proxy override, declare it inside the consumer's `package.json` or fork the artifact. + +#### YAML overlay pattern (variants) + +To declare a themed variant that reuses an artifact, point the registry +entry at the same `url` + `base_path` and add `meta.config_overrides` with +the per-variant customization. The YAML keys MUST be camelCase to merge +correctly with the bundled `wippy.configOverrides`: + +```yaml +- name: iframe-demo-themed + kind: registry.entry + meta: + type: view.page + name: iframe-demo-themed + title: Iframe Demo (Custom Palette) + url: /app + base_path: app/iframe-demo + mountRoute: /demo-themed/:part(.*)* + # Variant overlay — deep-merged ON TOP of bundled wippy.configOverrides. + # YAML wins per nested key (override-only the colors you care about). + config_overrides: + customization: + cssVariables: + "--p-primary": "#7c9ed9" + "--p-secondary": "#b4a7d6" + customCSS: | + @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap'); + :root, body, * { font-family: 'Quicksand', sans-serif !important; } +``` + +### Deprecation warnings + +On the first request that observes an entry without a bundled +`wippy-meta.json`, the views module logs (once per `wippy.views` +process via a shared memory store): + +> `[wippy.views] {kind} '{entry-id}' has no wippy-meta.json at {url} — falling back to YAML synthesis. Adopt @wippy-fe/vite-plugin so the consumer's package.json wippy block is the canonical source.` + +The synthesis fallback is preserved indefinitely for legacy entries, +but the warning is your signal to migrate the consumer. + +### Layer boundaries: who owns what + +This is the principle the rest of the migration follows: + +- **`package.json` is the FE-author's view. Source-relative, BE/router/FS agnostic.** + - `wippy.path: "dist/app.html"` (for pages) and `browser: "dist/index.js"` (for components) are CORRECT — they describe where the file lives in the build output, relative to the package root. The consumer doesn't know (and shouldn't need to know) where the operator will serve it. +- **YAML is the operator's view. Deployment-aware.** + - The operator knows the served layout (e.g. vite's `--outDir static/wc/foo/` flattens away the `dist/` prefix), and YAML's `meta.entry_point` is where the operator declares that adjustment. YAML overrides bundled meta on this field — the typical pattern is `meta.entry_point: app.html` when the package.json says `wippy.path: "dist/app.html"`. + +This separation is what lets a single consumer build ship to multiple operator deployments with different served-layout shapes without rebuilding. + +### Migration checklist (per registered entry) + +1. Update the consumer's `vite.config.ts` to add `wippyPagePlugin()` (page) or `wippyComponentPlugin()` (component). +2. **Leave `package.json` entry paths source-relative** — `wippy.path: "dist/app.html"` for pages, top-level `browser: "dist/index.js"` for components. The FE author shouldn't encode the operator's deployment layout in their package manifest. +3. Build the consumer — confirm `dist/wippy-meta.json` is emitted. +4. Deploy the new build (the published wippy module or the served static dir). +5. **Set `meta.entry_point` in YAML to match the SERVED layout.** If your build pipeline strips the `dist/` prefix (typical with vite's `--outDir `), declare it in YAML: `meta.entry_point: app.html` (for pages) or `meta.entry_point: index.js` (for components). YAML wins, bundled meta is the fallback for fields YAML omits — so this works regardless of what `package.json` declared. +6. Restart wippy and observe that the deprecation warning for this entry stops firing. +7. Slim the YAML registry entry — you can drop fields covered by bundled meta (`title`, `props`, `events`, `data.proxy`). Keep routing + policy fields, and keep `meta.entry_point` for the deployment-aware path adjustment. **`tag_name` for components**: optional — if omitted, views falls back to a scan of bundled meta files matching `wippy.tagName`. Keep it in YAML if you want the O(1) registry index lookup; drop it if the consumer's `wippy.tagName` is the only source of truth you want. +8. Restart wippy. Probe the API endpoint and confirm the response shape is unchanged from before slimming. + +### What's NOT in scope for 0.4.32 + +- **No structural changes to YAML schema.** Existing YAML entries keep working without any edit. +- **No removal of the synthesize fallback.** Legacy entries (no `wippy-meta.json`) render exactly as before. +- **No automatic case conversion.** YAML `meta.config_overrides.*` and bundled `wippy.configOverrides.*` are merged key-for-key; both sides MUST use camelCase for the customization payload (already the convention in both layers). + +[releases-page]: https://github.com/wippyai/module-views/releases +[wippy-documentation]: https://docs.wippy.ai +[wippy-framework]: https://github.com/wippyai/framework diff --git a/src/views/_index.yaml b/src/views/_index.yaml index b0f1f23..61c3c84 100644 --- a/src/views/_index.yaml +++ b/src/views/_index.yaml @@ -214,6 +214,36 @@ entries: source: file://resource_registry.lua modules: - registry + - name: bundled_meta + kind: library.lua + meta: + comment: Fetches consumer-built wippy-meta.json (file:// refs resolved at build time) + description: | + Reads the wippy-meta.json that @wippy-fe/vite-plugin emits next to a + consumer's app.html / index.js. Used by /pages/content/{id}, + /components/list, and /components/by-tag/{tag} as the single source + of truth for view.page / view.component metadata when present. + Callers fall back to YAML-synthesis when fetch returns nil + nil. + A process-wide deprecation warning fires the FIRST time an entry is + seen without bundled meta (deduplicated via the shared `bundled_meta_warn` + memory store so each handler-pool worker doesn't re-warn the same id). + source: file://bundled_meta.lua + imports: + page_registry: wippy.views:page_registry + component_registry: wippy.views:component_registry + modules: + - http_client + - json + - store + - name: bundled_meta_warn + kind: store.memory + meta: + comment: | + Process-wide dedup of "no wippy-meta.json" deprecation warnings. + Each entry id is logged at most once per wippy process lifetime, + regardless of which handler-pool worker observes the miss. + max_size: 1000 + cleanup_interval: "1h" - name: dep.wippy.test kind: ns.dependency meta: diff --git a/src/views/api/_index.yaml b/src/views/api/_index.yaml index bd18b6f..15dc122 100644 --- a/src/views/api/_index.yaml +++ b/src/views/api/_index.yaml @@ -34,6 +34,7 @@ entries: source: file://list_components.lua imports: component_registry: wippy.views:component_registry + bundled_meta: wippy.views:bundled_meta method: handler modules: - http @@ -58,6 +59,7 @@ entries: source: file://find_by_tag.lua imports: component_registry: wippy.views:component_registry + bundled_meta: wippy.views:bundled_meta method: handler modules: - http @@ -84,6 +86,7 @@ entries: page_registry: wippy.views:page_registry renderer: wippy.views:renderer resource_registry: wippy.views:resource_registry + bundled_meta: wippy.views:bundled_meta method: handler modules: - http diff --git a/src/views/api/find_by_tag.lua b/src/views/api/find_by_tag.lua index 667df1f..d59f54f 100644 --- a/src/views/api/find_by_tag.lua +++ b/src/views/api/find_by_tag.lua @@ -1,17 +1,23 @@ local http = require("http") local component_registry = require("component_registry") +local bundled_meta = require("bundled_meta") -- GET /components/by-tag/{tag} — resolve a custom-element tag name to its -- registered view.component metadata. Used by the host proxy SDK's -- loadByTagName() to load a peer WC without the consumer knowing any URL. -- --- Response shape mirrors a single item from /components/list (id, name, --- title, tag_name, base_url, entry_point, auto_register, props, events). +-- Source-of-truth: prefer the bundled wippy-meta.json (the consumer's +-- package.json `wippy` block, emitted at build time by +-- @wippy-fe/vite-plugin) for `props`, `events`, `tag_name`, `entry_point`, +-- `name`, `title`. Falls back to the YAML registry entry's `meta.*` fields +-- when bundled meta is missing or omits the specific field. See +-- `bundled_meta.project_component_response` for the per-field mapping. type ComponentResponse = { id: string, name: string, title: string, + description: string?, tag_name: string?, base_url: string?, entry_point: string?, @@ -38,7 +44,33 @@ local function handler() return end + -- Fast path: registry index lookup by meta.tag_name. This is the + -- common case — every entry that declares its tag in YAML hits here + -- with a single registry query. local component, err = component_registry.find_by_tag_name(tag) + + -- Slow path: a consumer that ships `wippy.tagName` in its bundled + -- wippy-meta.json but does NOT declare `meta.tag_name` in the YAML + -- registry entry will miss the fast path (the registry has no key + -- to match against). Scan all view.components, fetch each one's + -- bundled meta, and find the entry whose `wippy.tagName` matches. + -- Linear in the number of view.components × one HTTP self-fetch + -- each — first miss for any tag, then served from the bundled_meta + -- cache on subsequent calls. + if not component then + local all, all_err = component_registry.find_all() + if not all_err and all then + for _, c in ipairs(all) do + local meta = bundled_meta.fetch_for_component(c) + if meta and type(meta.wippy) == "table" and meta.wippy.tagName == tag then + component = c + err = nil + break + end + end + end + end + if err or not component then res:set_status(http.STATUS.NOT_FOUND) res:write_json({ @@ -67,17 +99,14 @@ local function handler() return end - local component_info: ComponentResponse = { - id = type(component.id) == "string" and component.id or tostring(component.id), - name = type(component.name) == "string" and component.name or "", - title = type(component.title) == "string" and component.title or "", - tag_name = type(component.tag_name) == "string" and component.tag_name as string or nil, - base_url = component_registry.resolve_base_url(component), - entry_point = type(component.entry_point) == "string" and component.entry_point as string or nil, - auto_register = component.auto_register == true, - props = component.props, - events = component.events, - } + local meta, meta_err = bundled_meta.fetch_for_component(component) + if meta_err then + print("[views/find_by_tag] bundled_meta fetch error for tag=" .. tostring(tag) .. ": " .. tostring(meta_err)) + meta = nil + end + + local base_url = component_registry.resolve_base_url(component) + local component_info = bundled_meta.project_component_response(meta, component, base_url) res:set_content_type(http.CONTENT.JSON) res:set_status(http.STATUS.OK) diff --git a/src/views/api/list_components.lua b/src/views/api/list_components.lua index 40ee8d3..2addb27 100644 --- a/src/views/api/list_components.lua +++ b/src/views/api/list_components.lua @@ -1,10 +1,19 @@ local http = require("http") local component_registry = require("component_registry") +local bundled_meta = require("bundled_meta") + +-- GET /components/list — list every registered view.component the actor can +-- see. Each entry's `props` / `events` come from the consumer's bundled +-- wippy-meta.json (emitted by @wippy-fe/vite-plugin's wippyComponentPlugin) +-- when present, falling back to the YAML registry entry's fields otherwise. +-- Registry data supplies the routing / identity fields (id, name, tag_name, +-- base_url, entry_point, auto_register) in all cases. type ComponentResponse = { id: string, name: string, title: string, + description: string?, tag_name: string?, base_url: string?, entry_point: string?, @@ -38,17 +47,18 @@ local function handler() for _, component in ipairs(all_components) do if (not component.secure or component_registry.can_access(component)) and component.announced then if not filter_auto_register or component.auto_register then - local component_info: ComponentResponse = { - id = type(component.id) == "string" and component.id or tostring(component.id), - name = type(component.name) == "string" and component.name or "", - title = type(component.title) == "string" and component.title or "", - tag_name = type(component.tag_name) == "string" and component.tag_name as string or nil, - base_url = component_registry.resolve_base_url(component), - entry_point = type(component.entry_point) == "string" and component.entry_point as string or nil, - auto_register = component.auto_register == true, - props = component.props, - events = component.events, - } + -- Same projection that /components/by-tag uses: YAML-first per + -- field, bundled wippy-meta.json (when present) as fallback. + -- Drives title/description/tag_name/entry_point/props/events. + local meta, meta_err = bundled_meta.fetch_for_component(component) + if meta_err then + print("[views/list_components] bundled_meta fetch error for " + .. tostring(component.id) .. ": " .. tostring(meta_err)) + meta = nil + end + + local base_url = component_registry.resolve_base_url(component) + local component_info = bundled_meta.project_component_response(meta, component, base_url) table.insert(components, component_info) end diff --git a/src/views/api/render.lua b/src/views/api/render.lua index be87331..a0083ad 100644 --- a/src/views/api/render.lua +++ b/src/views/api/render.lua @@ -2,6 +2,7 @@ local http = require("http") local page_registry = require("page_registry") local resource_registry = require("resource_registry") local renderer = require("renderer") +local bundled_meta = require("bundled_meta") type ComponentResponse = { success: boolean, @@ -12,6 +13,52 @@ type ComponentResponse = { icon: string?, } +-- Synthesize a wippy-component-1.0 package descriptor from the YAML registry +-- entry. Backwards-compat path for consumers that have NOT yet adopted +-- @wippy-fe/vite-plugin's wippy-meta.json emission. Deprecated; the canonical +-- path is `bundled_meta.project_page_response`. This function is kept for +-- entries that ship no wippy-meta.json and stays bit-for-bit compatible +-- with pre-1.0.31 / pre-views-0.4.32 callers. +local function synthesize_from_registry(page: any, base_url: string?) + local proxy = page.proxy or {} + local css = proxy.css or {} + -- Apply the historical default at this layer so pre-0.4.32 synthesis + -- responses keep their wire shape. page_registry no longer fills the + -- default itself (so the bundled-meta projection can distinguish + -- YAML-omitted from YAML-set; see page_registry.lua:get). + local entry_point = page.entry_point or "index.html" + return { + name = page.name or page.id, + version = "1.0.0", + specification = "wippy-component-1.0", + title = page.title, + baseUrl = base_url, + wippy = { + type = "page", + path = entry_point, + proxy = { + enabled = proxy.enabled or false, + injections = { + css = { + fonts = css.fonts or false, + themeConfig = css.theme_config or false, + iframe = css.iframe or false, + primevue = css.prime_vue or false, + markdown = css.markdown or false, + customCss = css.custom_css or false, + customVariables = css.custom_variables or false, + }, + tailwindConfig = proxy.tailwind_config or false, + resizeObserver = proxy.resize_observer or false, + preventLinkClicks = proxy.prevent_link_clicks or false, + iconifyIcons = proxy.iconify_icons or false, + }, + }, + configOverrides = page.config_overrides, + }, + } +end + local function handler() local req = http.request() local res = http.response() @@ -64,45 +111,35 @@ local function handler() return end - -- Component pages return a wippy-component-1.0 package descriptor + -- Component pages return a wippy-component-1.0 package descriptor. + -- + -- Source-of-truth: prefer the bundled wippy-meta.json (the consumer's + -- package.json `wippy` block, emitted at build time by + -- @wippy-fe/vite-plugin). YAML registry entry contributes routing + -- fields (id, base_url) and the variant-overlay `meta.config_overrides`. + -- The two are combined by `bundled_meta.project_page_response`, which + -- produces the same wippy-component-1.0 spec shape as the legacy + -- synthesis — see views/README.md "Bundled meta vs YAML" for the + -- field-by-field mapping. if page.kind == "component" then - local proxy = page.proxy or {} - local css = proxy.css or {} - local base_url = page_registry.resolve_base_url(page) + local meta, meta_err = bundled_meta.fetch_for_page(page) + if meta_err then + print("[views/render] bundled_meta fetch error for " .. tostring(page_id) .. ": " .. tostring(meta_err)) + meta = nil + end + + local body + if meta then + body = bundled_meta.project_page_response(meta, page, base_url) + else + body = synthesize_from_registry(page, base_url) + end + res:set_content_type(http.CONTENT.JSON) res:set_status(http.STATUS.OK) - res:write_json({ - name = page.name or page.id, - version = "1.0.0", - specification = "wippy-component-1.0", - title = page.title, - baseUrl = base_url, - wippy = { - type = "page", - path = page.entry_point, - proxy = { - enabled = proxy.enabled or false, - injections = { - css = { - fonts = css.fonts or false, - themeConfig = css.theme_config or false, - iframe = css.iframe or false, - primevue = css.prime_vue or false, - markdown = css.markdown or false, - customCss = css.custom_css or false, - customVariables = css.custom_variables or false, - }, - tailwindConfig = proxy.tailwind_config or false, - resizeObserver = proxy.resize_observer or false, - preventLinkClicks = proxy.prevent_link_clicks or false, - iconifyIcons = proxy.iconify_icons or false, - }, - }, - configOverrides = page.config_overrides, - }, - }) + res:write_json(body) return end diff --git a/src/views/bundled_meta.lua b/src/views/bundled_meta.lua new file mode 100644 index 0000000..75a854c --- /dev/null +++ b/src/views/bundled_meta.lua @@ -0,0 +1,283 @@ +-- bundled_meta.lua +-- +-- Fetches the bundled `wippy-meta.json` that consumer builds emit (via +-- `@wippy-fe/vite-plugin`'s wippyPagePlugin / wippyComponentPlugin) and +-- exposes it as a parsed Lua table. +-- +-- The presence of wippy-meta.json next to the served entry point is the +-- MANDATORY contract between consumer builds and `wippy/views` ≥ 1.0.31. +-- When present, views serves the bundled meta as the metadata response +-- (single source of truth = the consumer's package.json `wippy` block, +-- with all `file://` references resolved at build time). +-- +-- When absent, callers should fall back to YAML-synthesis (deprecated; +-- exists only for migration of pre-1.0.31 consumers). See +-- `web_components.spec.md` § "Package metadata: source of truth". +-- +-- Fetch transport: self-HTTP. We resolve `{page.base_url}wippy-meta.json` +-- and GET it against `PUBLIC_API_URL`. This is the cleanest path that +-- doesn't require either (a) reaching into the consumer's static dir from +-- Lua (would need fs-level access we don't have), or (b) baking the meta +-- into the registry entry at YAML-load time (would require touching the +-- registry loader). Self-HTTP adds one round-trip per metadata request, +-- which is acceptable for the cardinality of the views API (typically +-- cached at the consumer side anyway). + +local json = require("json") +local http_client = require("http_client") +local store = require("store") +local page_registry = require("page_registry") +local component_registry = require("component_registry") + +local M = {} + +-- Default deadline for the self-fetch. Tight on purpose — if the consumer's +-- own static dir is slow to serve, something else is already broken. +local DEFAULT_TIMEOUT_SEC = 2 + +-- ID of the shared store.memory entry declared in _index.yaml. The store is +-- process-wide (not per-handler-worker), so the dedup survives across the +-- short-lived Lua worker processes that handle each request. +local WARN_STORE_ID = "wippy.views:bundled_meta_warn" + +local function log_missing_once(entry_id: string?, kind: string, url: string) + local key = tostring(entry_id or url) + + -- Try to claim the warning slot in the shared store. If the key already + -- exists, another worker (or an earlier call on this worker) has already + -- emitted the warning for this entry — silently skip. + local s, store_err = store.get(WARN_STORE_ID) + if store_err or not s then + -- Store unavailable (shouldn't happen with the registry binding in + -- _index.yaml). Fail open: log once-per-request rather than spam. + -- The dedup is best-effort, not a correctness guarantee. + s = nil + else + local existing = s:get(key) + if existing then + s:release() + return + end + s:set(key, true) + s:release() + end + + print(string.format( + "[wippy.views] %s '%s' has no wippy-meta.json at %s — falling back " + .. "to YAML synthesis. Adopt @wippy-fe/vite-plugin " + .. "(wippyPagePlugin / wippyComponentPlugin) so the consumer's " + .. "package.json `wippy` block is the canonical source. " + .. "See web_components.spec.md \"Package metadata: source of truth\".", + kind, key, url + )) +end + +-- Internal: try fetching wippy-meta.json for a resolved entity. +-- `base_url` MUST be an absolute URL with trailing slash (as produced by +-- `page_registry.resolve_base_url` / `component_registry.resolve_base_url`). +-- Returns (table | nil, error_string | nil). +-- +-- Treats 404 as "no bundled meta" (returns nil, nil) so callers can cleanly +-- fall back. Other status codes / network errors propagate as error strings. +local function fetch(base_url) + if type(base_url) ~= "string" or base_url == "" then + return nil, nil + end + + -- Ensure trailing slash for clean concatenation + local url = base_url + if not url:match("/$") then + url = url .. "/" + end + url = url .. "wippy-meta.json" + + local response, err = http_client.get(url, { + timeout = DEFAULT_TIMEOUT_SEC, + headers = { ["Accept"] = "application/json" }, + }) + + if err or not response then + -- Network-level failure: not a "missing meta", a real error. + return nil, "wippy-meta fetch failed: " .. tostring(err or "no response") + end + + if response.status_code == 404 then + -- Bundle has no wippy-meta.json — this is the legacy/migration path. + return nil, nil + end + + if response.status_code < 200 or response.status_code >= 300 then + return nil, "wippy-meta fetch returned " .. tostring(response.status_code) .. " for " .. url + end + + local body = response.body or "" + if body == "" then + return nil, "wippy-meta fetch returned empty body for " .. url + end + + local parsed, decode_err = json.decode(body) + if decode_err then + return nil, "wippy-meta parse error for " .. url .. ": " .. tostring(decode_err) + end + + if type(parsed) ~= "table" then + return nil, "wippy-meta is not a JSON object for " .. url + end + + return parsed, nil +end + +-- Fetch bundled meta for a page (view.page or view.component) resolved via +-- page_registry. Returns (meta | nil, error | nil). Nil + nil means "no +-- bundle present — caller should fall back to YAML-synthesis". A one-time +-- per-worker warning is logged on the first miss for a given page id so +-- the synthesis fallback never goes silent. +function M.fetch_for_page(page) + if not page then + return nil, "page is required" + end + local base_url = page_registry.resolve_base_url(page) + local meta, err = fetch(base_url) + if not meta and not err then + local id = type(page.id) == "string" and (page.id :: string) or nil + log_missing_once(id, "page", (base_url or "") .. "wippy-meta.json") + end + return meta, err +end + +-- Fetch bundled meta for a component resolved via component_registry. +-- Same return contract as fetch_for_page. +function M.fetch_for_component(component) + if not component then + return nil, "component is required" + end + local base_url = component_registry.resolve_base_url(component) + local meta, err = fetch(base_url) + if not meta and not err then + local id = type(component.id) == "string" and (component.id :: string) or nil + log_missing_once(id, "component", (base_url or "") .. "wippy-meta.json") + end + return meta, err +end + +-- Local deep-merge: overlay wins on conflicts, recursive on nested tables. +local function deep_merge(base: any, overlay: any): any + if type(overlay) ~= "table" then return overlay end + if type(base) ~= "table" then return overlay end + local result: {[string]: any} = {} + for k, v in pairs(base :: {[string]: any}) do result[k] = v end + for k, v in pairs(overlay :: {[string]: any}) do + if type(v) == "table" and type(result[k]) == "table" then + result[k] = deep_merge(result[k], v) + else + result[k] = v + end + end + return result +end + +-- Project a parsed bundled wippy-meta.json + registry page entry into the +-- wippy-component-1.0 spec response shape served by GET /pages/content/{id}. +-- +-- **Priority is YAML-first.** YAML is the abstraction OVER FE code: the +-- wippy operator's registry entry ALWAYS wins on a field-by-field basis. +-- Bundled meta is the fallback source for fields YAML omits (which, for +-- well-migrated entries, is most of the wippy block — props, proxy +-- defaults, customization payload, etc.). +-- +-- Resolution per field: +-- - `name` → YAML `meta.name` → bundled top-level `name` → entry id +-- - `title` → YAML `meta.title` → bundled `wippy.title` → bundled top-level `title` → "" +-- - `version`, `specification` → bundled top-level → spec defaults (these are package metadata, not registry concerns) +-- - `baseUrl` → always computed from the registry entry (routing the consumer can't decide) +-- - `wippy.type` → "page" (always) +-- - `wippy.path` → YAML `meta.entry_point` → bundled `wippy.path` +-- (bundled is source-relative — "dist/app.html" +-- is the canonical FE-author POV. YAML adjusts +-- to the operator's served layout, e.g. when +-- vite's --outDir flattens away the dist/ prefix.) +-- - `wippy.proxy` → bundled `wippy.proxy` (whole block; YAML has no canonical proxy override field for the new model) +-- - `wippy.configOverrides` → bundled `wippy.configOverrides` deep-merged with YAML `meta.config_overrides` on top (variant overlay) +-- +-- Extra package.json fields (dependencies, scripts, devDependencies, etc.) +-- are EXCLUDED from the response — only the wippy-component-1.0 spec +-- fields make it to the wire. +function M.project_page_response(bundled_meta, page, base_url) + local meta: any = bundled_meta or {} + local w: any = meta.wippy or {} + + local response = { + name = page.name or meta.name or page.id, + version = meta.version or "1.0.0", + specification = meta.specification or "wippy-component-1.0", + title = page.title or w.title or meta.title or "", + baseUrl = base_url, + wippy = { + type = "page", + -- Final fallback to "index.html" matches the legacy synthesis + -- shape so unmigrated entries (no wippy-meta.json, no YAML + -- entry_point) keep their pre-0.4.32 wire response. + path = page.entry_point or w.path or "index.html", + proxy = w.proxy, + configOverrides = w.configOverrides, + }, + } + + -- Merge YAML's config_overrides over bundled meta's configOverrides. + -- The variant overlay pattern (iframe-demo-themed). YAML keys MUST be + -- camelCase (cssVariables, customCSS) to merge correctly. + if page.config_overrides then + local current = response.wippy.configOverrides or {} + response.wippy.configOverrides = deep_merge(current, page.config_overrides) + end + + return response +end + +-- Project a parsed bundled wippy-meta.json + registry component entry into +-- the snake_case-at-top-level response shape served by /components/list and +-- /components/by-tag/{tag}. +-- +-- **Priority is YAML-first.** YAML is the abstraction OVER FE code: the +-- wippy operator's registry entry ALWAYS wins. Bundled meta is the +-- fallback for fields YAML omits. +-- +-- Resolution per field: +-- - `id`, `base_url`, `auto_register` → always from the registry (routing + deployment policy) +-- - `name` → YAML `meta.name` → bundled top-level `name` +-- - `title` → YAML `meta.title` → bundled `wippy.title` → bundled top-level `title` +-- - `description` → YAML `meta.description` → bundled `wippy.description` → bundled top-level `description` +-- (carried in the response so LLM/agent consumers can +-- pick the right component by reading its description) +-- - `tag_name` → YAML `meta.tag_name` → bundled `wippy.tagName` +-- - `entry_point` → YAML `meta.entry_point` → bundled top-level `browser` +-- (`browser` is source-relative — the FE-author POV. +-- YAML adjusts to the served layout; that's its job. +-- NOT `wippy.path` — that field is page-only per +-- wippy-component-1.0 spec; `browser` is the +-- canonical entry for ESM module / component packages.) +-- - `props` → YAML `meta.props` → bundled `wippy.props` +-- - `events` → YAML `meta.events` → bundled `wippy.events` +function M.project_component_response(bundled_meta, component, base_url) + local meta: any = bundled_meta or {} + local w: any = meta.wippy or {} + + return { + id = type(component.id) == "string" and component.id or tostring(component.id), + name = component.name or meta.name or "", + title = component.title or w.title or meta.title or "", + description = component.description or w.description or meta.description, + tag_name = component.tag_name or w.tagName, + base_url = base_url, + -- For components, the spec field is top-level `browser` (ESM module + -- entry). `wippy.path` is reserved for view.page (HTML entry). + -- Final fallback to "index.js" matches the legacy component + -- response shape so unmigrated entries keep their pre-0.4.32 wire. + entry_point = component.entry_point or meta.browser or "index.js", + auto_register = component.auto_register == true, + props = component.props or w.props, + events = component.events or w.events, + } +end + +return M diff --git a/src/views/bundled_meta_test.lua b/src/views/bundled_meta_test.lua new file mode 100644 index 0000000..0b8b1c8 --- /dev/null +++ b/src/views/bundled_meta_test.lua @@ -0,0 +1,236 @@ +local test = require("test") +local bundled_meta = require("bundled_meta") + +-- Tests for the projection helpers in bundled_meta.lua. These are pure +-- (no http_client / no store / no registry lookups), so we can exercise +-- them directly with synthetic inputs. +-- +-- Core invariant codified here: **YAML always wins on a field-by-field +-- basis.** YAML is the abstraction OVER FE code. Bundled meta is the +-- fallback source for fields YAML omits, never an override for fields +-- YAML explicitly sets. Tests are written so that flipping this +-- precedence anywhere in the projection helpers will FAIL. + +local function run() + local outcomes = {} + + test.describe("bundled_meta.project_page_response", function() + test.it("YAML wins for name + title even when bundled meta has its own", function() + local meta = { + name = "@wippy/sample-page", + title = "Sample Page (pkg top-level)", + wippy = { type = "page", title = "Sample Page (wippy.title)", path = "app.html" }, + } + local page = { id = "ns:sample", name = "sample-yaml-name", title = "Sample YAML Title" } + local r = bundled_meta.project_page_response(meta, page, "http://h/foo/") + test.eq(r.name, "sample-yaml-name") + test.eq(r.title, "Sample YAML Title") + end) + + test.it("falls back to bundled meta when YAML omits a field", function() + local meta = { + name = "@wippy/sample-page", + version = "2.3.4", + wippy = { type = "page", title = "Sample (wippy.title)", path = "app.html" }, + } + local page = { id = "ns:sample" } + local r = bundled_meta.project_page_response(meta, page, "http://h/foo/") + test.eq(r.name, "@wippy/sample-page") + test.eq(r.title, "Sample (wippy.title)") + test.eq(r.version, "2.3.4") + test.eq(r.wippy.path, "app.html") + end) + + test.it("YAML entry_point wins over bundled wippy.path", function() + local meta = { wippy = { path = "bundled.html" } } + local page = { id = "ns:p", entry_point = "yaml.html" } + local r = bundled_meta.project_page_response(meta, page, "http://h/") + test.eq(r.wippy.path, "yaml.html") + end) + + test.it("wippy.proxy comes from bundled meta (YAML has no canonical proxy field post-1.0.31)", function() + local meta = { + wippy = { + proxy = { enabled = true, injections = { css = { customCss = true } } }, + }, + } + local page = { id = "ns:p" } + local r = bundled_meta.project_page_response(meta, page, "http://h/") + test.eq(r.wippy.proxy.injections.css.customCss, true) + end) + + test.it("does NOT leak package.json fields (dependencies, scripts, devDependencies) to the response", function() + local meta = { + name = "@example/x", + dependencies = { vue = "^3" }, + devDependencies = { vite = "^7" }, + scripts = { build = "vite build" }, + description = "internal description", + wippy = { type = "page", path = "app.html" }, + } + local r = bundled_meta.project_page_response(meta, { id = "ns:x", name = "x" }, "http://h/") + test.eq(r.dependencies, nil) + test.eq(r.devDependencies, nil) + test.eq(r.scripts, nil) + test.eq(r.description, nil) + end) + + test.it("YAML config_overrides deep-merges over bundled wippy.configOverrides (variant overlay; YAML wins)", function() + local meta = { + wippy = { + configOverrides = { + customization = { + cssVariables = { ["--p-primary"] = "#bundled", ["--p-other"] = "#keep" }, + customCSS = "BUNDLED", + }, + }, + }, + } + local page = { + id = "ns:themed", + config_overrides = { + customization = { + cssVariables = { ["--p-primary"] = "#yaml" }, + customCSS = "YAML", + }, + }, + } + local r = bundled_meta.project_page_response(meta, page, "http://h/") + local cust = r.wippy.configOverrides.customization + test.eq(cust.customCSS, "YAML") + test.eq(cust.cssVariables["--p-primary"], "#yaml") + test.eq(cust.cssVariables["--p-other"], "#keep") + end) + + test.it("variant inherits bundled configOverrides when YAML omits its own", function() + local meta = { + wippy = { configOverrides = { customization = { customCSS = "BASE" } } }, + } + local page = { id = "ns:base" } + local r = bundled_meta.project_page_response(meta, page, "http://h/") + test.eq(r.wippy.configOverrides.customization.customCSS, "BASE") + end) + + test.it("falls back to YAML-only when bundled meta is empty (legacy synthesis-equivalent)", function() + local meta = {} + local page = { + id = "ns:fallback", + name = "fallback", + title = "Fallback Title", + entry_point = "index.html", + } + local r = bundled_meta.project_page_response(meta, page, "http://h/x/") + test.eq(r.name, "fallback") + test.eq(r.title, "Fallback Title") + test.eq(r.wippy.path, "index.html") + test.eq(r.specification, "wippy-component-1.0") + end) + end) + + test.describe("bundled_meta.project_component_response", function() + test.it("YAML wins for tag_name + entry_point + props (events fallback when YAML omits)", function() + local meta = { + name = "@example/my-wc", + wippy = { + type = "component", + tagName = "my-wc-from-pkg", + path = "from-pkg.js", + props = { type = "object", properties = { fromPkg = { type = "string" } } }, + events = { type = "object", properties = { evtFromPkg = { type = "object" } } }, + }, + } + local component = { + id = "ns:my-wc", + name = "my-wc-yaml", + title = "from-yaml", + tag_name = "my-wc-from-yaml", + entry_point = "from-yaml.js", + auto_register = true, + props = { type = "object", properties = { fromYaml = { type = "string" } } }, + events = nil, + } + local r = bundled_meta.project_component_response(meta, component, "http://h/wc/my-wc/") + test.eq(r.name, "my-wc-yaml") + test.eq(r.title, "from-yaml") + test.eq(r.tag_name, "my-wc-from-yaml") + test.eq(r.entry_point, "from-yaml.js") + test.eq(r.props.properties.fromYaml.type, "string") + test.eq(r.props.properties.fromPkg, nil) + test.eq(type(r.events), "table") + test.eq(r.events.properties.evtFromPkg.type, "object") + end) + + test.it("falls back to bundled meta when YAML omits a field", function() + local meta = { + name = "@example/x", + wippy = { + type = "component", + tagName = "x-elem", + path = "dist/x.js", + props = { type = "object", properties = {} }, + }, + } + local component = { + id = "ns:x", + name = "x", + title = "X", + tag_name = nil, + entry_point = nil, + auto_register = false, + props = nil, + } + local r = bundled_meta.project_component_response(meta, component, "http://h/x/") + test.eq(r.tag_name, "x-elem") + test.eq(r.entry_point, "dist/x.js") + test.eq(type(r.props), "table") + end) + + test.it("uses bundled top-level `browser` for entry_point (the spec field for components; wippy.path is page-only)", function() + local meta = { + browser = "index.js", + -- wippy.path would be ignored for components — it's + -- spec'd for view.page only, not view.component. + wippy = { type = "component", tagName = "x-elem", path = "WRONG_should_be_ignored.html" }, + } + local component = { id = "ns:x", name = "x", title = "", tag_name = "x-elem", entry_point = nil, auto_register = false } + local r = bundled_meta.project_component_response(meta, component, "http://h/x/") + test.eq(r.entry_point, "index.js") + end) + + test.it("auto_register always comes from the registry (deployment policy)", function() + local meta = { + wippy = { tagName = "x", autoRegister = false }, + } + local component = { + id = "ns:x", name = "x", title = "", tag_name = "x", entry_point = "index.js", + auto_register = true, + } + local r = bundled_meta.project_component_response(meta, component, "http://h/") + test.eq(r.auto_register, true) + end) + + test.it("works with nil bundled meta (legacy synthesis-equivalent)", function() + local component = { + id = "ns:legacy-wc", + name = "legacy-wc", + title = "Legacy WC", + tag_name = "example-legacy", + entry_point = "index.js", + auto_register = true, + props = { type = "object", properties = {} }, + events = nil, + } + local r = bundled_meta.project_component_response(nil, component, "http://h/wc/legacy/") + test.eq(r.id, "ns:legacy-wc") + test.eq(r.name, "legacy-wc") + test.eq(r.tag_name, "example-legacy") + test.eq(r.entry_point, "index.js") + test.eq(r.props.type, "object") + test.eq(r.events, nil) + end) + end) + + return test.run_cases(outcomes) +end + +return { run = run } diff --git a/src/views/component_registry.lua b/src/views/component_registry.lua index f50eacc..811a877 100644 --- a/src/views/component_registry.lua +++ b/src/views/component_registry.lua @@ -4,8 +4,9 @@ local env = require("env") type ComponentInfo = { id: string, - name: string, - title: string, + name: string?, + title: string?, + description: string?, tag_name: string?, base_path: string?, entry_point: string?, @@ -24,11 +25,24 @@ local function extract_component_info(entry) local meta = entry.meta return { id = entry.id, - name = meta.name or "", - title = meta.title or "", + -- Raw YAML values (may be nil when omitted). Defaults are applied + -- by the projection's final-fallback chain, NOT here — empty string + -- is truthy in Lua and would prevent the bundled-meta fallback + -- from running. + name = meta.name, + title = meta.title, + description = meta.description, tag_name = meta.tag_name, base_path = meta.base_path, - entry_point = meta.entry_point or "index.js", + -- Raw YAML entry_point (may be nil when omitted). The legacy + -- ComponentResponse shape expected "index.js" as a default — that + -- default is now applied by callers (find_by_tag / list_components) + -- via bundled_meta.project_component_response's fallback chain, NOT + -- here. Keeping it raw at this layer is what makes YAML-first + -- priority work — a missing YAML field MUST be distinguishable + -- from a YAML field with the default value, so the bundled + -- wippy-meta.json's wippy.path / browser can fill in. + entry_point = meta.entry_point, auto_register = meta.auto_register or false, secure = meta.secure or false, announced = meta.announced or meta.public or false, diff --git a/src/views/component_registry_test.lua b/src/views/component_registry_test.lua index 31dbc81..09319e8 100644 --- a/src/views/component_registry_test.lua +++ b/src/views/component_registry_test.lua @@ -196,10 +196,14 @@ local function define_tests() test.eq(comp.url, "https://cdn.example.com/widget/") end) - test.it("defaults entry_point to index.js", function() + test.it("returns nil entry_point when YAML omits it (default applied at projection layer)", function() + -- Defaults moved from the registry layer to bundled_meta.project_* + -- so the projection's YAML-first `or` chain works correctly. Lua + -- `""` is truthy, so applying a string default here would + -- short-circuit the bundled-meta fallback. Raw nil propagates. local comp, err = component_registry.get(NS .. "test_comp_widget") test.is_nil(err) - test.eq(comp.entry_point, "index.js") + test.is_nil(comp.entry_point) end) test.it("respects custom entry_point", function() @@ -208,10 +212,14 @@ local function define_tests() test.eq(comp.entry_point, "main.js") end) - test.it("page defaults entry_point to index.html", function() + test.it("page returns nil entry_point when YAML omits it (default applied at projection layer)", function() + -- Same rationale as the component-side test above. The + -- `index.html` default for pages now lives in + -- `bundled_meta.project_page_response`, not in + -- `page_registry.get`. local page, err = page_registry.get(NS .. "test_home") test.is_nil(err) - test.eq(page.entry_point, "index.html") + test.is_nil(page.entry_point) end) test.it("find_by_tag_name returns the component for a known tag", function() diff --git a/src/views/page_registry.lua b/src/views/page_registry.lua index 3e4587d..f3444eb 100644 --- a/src/views/page_registry.lua +++ b/src/views/page_registry.lua @@ -119,8 +119,12 @@ local function extract_page_info(entry) local info = { id = entry.id, - name = meta.name or "", - title = meta.title or "", + -- Raw YAML values (may be nil when omitted). Defaults belong to the + -- projection layer (`bundled_meta.project_page_response`) so that + -- `name or w.name or meta.name` actually falls through. Lua "" is + -- truthy and would block the bundled-meta fallback chain. + name = meta.name, + title = meta.title, icon = meta.icon or "", order = meta.order or 9999, group = meta.group or "", @@ -197,8 +201,11 @@ function pages.get(page_id) local page = { id = entry.id, - name = entry.meta.name or "", - title = entry.meta.title or "", + -- Raw YAML values (may be nil when omitted). Same rationale as + -- extract_page_info — the projection's `or` chain depends on nil + -- propagation. "" is truthy in Lua and would block bundled fallback. + name = entry.meta.name, + title = entry.meta.title, icon = entry.meta.icon or "", order = entry.meta.order or 9999, group = entry.meta.group or "", @@ -242,11 +249,16 @@ function pages.get(page_id) page.base_path = entry.meta.base_path page.proxy = build_proxy(entry.data and entry.data.proxy) - local default_entry_point = "index.html" - if meta_type == "view.component" then - default_entry_point = "index.js" - end - page.entry_point = entry.meta.entry_point or default_entry_point + -- Raw YAML entry_point (may be nil when omitted). Callers that need + -- a default-filled value should compute it at their layer: + -- - synthesize_from_registry (legacy path) applies the historical + -- defaults (index.html for view.page, index.js for view.component) + -- to preserve pre-0.4.32 wire compatibility. + -- - bundled_meta projection treats nil as "no YAML opinion" so the + -- bundled wippy.path / browser field can fill in. This is what + -- makes YAML-first priority work — a missing YAML field MUST be + -- distinguishable from a YAML field with the default value. + page.entry_point = entry.meta.entry_point end return page diff --git a/src/wc-content-kit/frontend/chartjs/package-lock.json b/src/wc-content-kit/frontend/chartjs/package-lock.json index 25c7b84..8792c7a 100644 --- a/src/wc-content-kit/frontend/chartjs/package-lock.json +++ b/src/wc-content-kit/frontend/chartjs/package-lock.json @@ -1,23 +1,24 @@ { "name": "@wippy/wc-chartjs", - "version": "0.1.0", + "version": "0.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@wippy/wc-chartjs", - "version": "0.1.0", + "version": "0.1.2", "dependencies": { - "@wippy-fe/theme": "^0.0.26", - "@wippy-fe/webcomponent-core": "^0.0.26", - "@wippy-fe/webcomponent-vue": "^0.0.26", + "@wippy-fe/theme": "^0.0.32", + "@wippy-fe/webcomponent-core": "^0.0.32", + "@wippy-fe/webcomponent-vue": "^0.0.32", "chart.js": "^4.4.0" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^7.0.0", "@vitejs/plugin-vue": "^5.0.0", - "@wippy-fe/proxy": "^0.0.26", + "@wippy-fe/proxy": "^0.0.32", + "@wippy-fe/vite-plugin": "^0.0.32", "eslint": "^8.57.0", "eslint-plugin-vue": "^9.0.0", "typescript": "^5.0.0", @@ -27,7 +28,7 @@ "vue-tsc": "^2.0.0" }, "peerDependencies": { - "@wippy-fe/proxy": "^0.0.26", + "@wippy-fe/proxy": "^0.0.32", "vue": "^3.5.0" } }, @@ -63,9 +64,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.29.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz", - "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==", + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz", + "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==", "license": "MIT", "dependencies": { "@babel/types": "^7.29.0" @@ -689,9 +690,9 @@ "peer": true }, "node_modules/@iconify/vue": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@iconify/vue/-/vue-5.0.0.tgz", - "integrity": "sha512-C+KuEWIF5nSBrobFJhT//JS87OZ++QDORB6f2q2Wm6fl2mueSTpFBeBsveK0KW9hWiZ4mNiPjsh6Zs4jjdROSg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@iconify/vue/-/vue-5.0.1.tgz", + "integrity": "sha512-aumwwooJlFJ5H5qYWB6ZTAyM0C8hpfcSVLB9/a3qnH1GGvIJ+FEbpEs4s/HfErYe/M5qZeLjwmESR5fFm3lXEw==", "license": "MIT", "peer": true, "dependencies": { @@ -701,7 +702,7 @@ "url": "https://github.com/sponsors/cyberalien" }, "peerDependencies": { - "vue": ">=3" + "vue": ">=3.0.0" } }, "node_modules/@jridgewell/gen-mapping": { @@ -784,9 +785,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.2.tgz", - "integrity": "sha512-dnlp69efPPg6Uaw2dVqzWRfAWRnYVb1XJ8CyyhIbZeaq4CA5/mLeZ1IEt9QqQxmbdvagjLIm2ZL8BxXv5lH4Yw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.4.tgz", + "integrity": "sha512-F5QXMSiFebS9hKZj02XhWLLnRpJ3B3AROP0tWbFBSj+6kCbg5m9j5JoHKd4mmSVy5mS/IMQloYgYxCuJC0fxEQ==", "cpu": [ "arm" ], @@ -798,9 +799,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.2.tgz", - "integrity": "sha512-OqZTwDRDchGRHHm/hwLOL7uVPB9aUvI0am/eQuWMNyFHf5PSEQmyEeYYheA0EPPKUO/l0uigCp+iaTjoLjVoHg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.4.tgz", + "integrity": "sha512-GxxTKApUpzRhof7poWvCJHRF51C67u1R7D6DiluBE8wKU1u5GWE8t+v81JvJYtbawoBFX1hLv5Ei4eVjkWokaw==", "cpu": [ "arm64" ], @@ -812,9 +813,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.2.tgz", - "integrity": "sha512-UwRE7CGpvSVEQS8gUMBe1uADWjNnVgP3Iusyda1nSRwNDCsRjnGc7w6El6WLQsXmZTbLZx9cecegumcitNfpmA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.4.tgz", + "integrity": "sha512-tua0TaJxMOB1R0V0RS1jFZ/RpURFDJIOR2A6jWwQeawuFyS4gBW+rntLRaQd0EQ4bd6Vp44Z2rXW+YYDBsj6IA==", "cpu": [ "arm64" ], @@ -826,9 +827,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.2.tgz", - "integrity": "sha512-gjEtURKLCC5VXm1I+2i1u9OhxFsKAQJKTVB8WvDAHF+oZlq0GTVFOlTlO1q3AlCTE/DF32c16ESvfgqR7343/g==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.4.tgz", + "integrity": "sha512-CSKq7MsP+5PFIcydhAiR1K0UhEI1A2jWXVKHPCBZ151yOutENwvnPocgVHkivu2kviURtCEB6zUQw0vs8RrhMg==", "cpu": [ "x64" ], @@ -840,9 +841,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.2.tgz", - "integrity": "sha512-Bcl6CYDeAgE70cqZaMojOi/eK63h5Me97ZqAQoh77VPjMysA/4ORQBRGo3rRy45x4MzVlU9uZxs8Uwy7ZaKnBw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.4.tgz", + "integrity": "sha512-+O8OkVdyvXMtJEciu2wS/pzm1IxntEEQx3z5TAVy4l32G0etZn+RsA48ARRrFm6Ri8fvqPQfgrvNxSjKAbnd3g==", "cpu": [ "arm64" ], @@ -854,9 +855,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.2.tgz", - "integrity": "sha512-LU+TPda3mAE2QB0/Hp5VyeKJivpC6+tlOXd1VMoXV/YFMvk/MNk5iXeBfB4MQGRWyOYVJ01625vjkr0Az98OJQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.4.tgz", + "integrity": "sha512-Iw3oMskH3AfNuhU0MSN7vNbdi4me/NiYo2azqPz/Le16zHSa+3RRmliCMWWQmh4lcndccU40xcJuTYJZxNo/lw==", "cpu": [ "x64" ], @@ -868,9 +869,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.2.tgz", - "integrity": "sha512-2QxQrM+KQ7DAW4o22j+XZ6RKdxjLD7BOWTP0Bv0tmjdyhXSsr2Ul1oJDQqh9Zf5qOwTuTc7Ek83mOFaKnodPjg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.4.tgz", + "integrity": "sha512-EIPRXTVQpHyF8WOo219AD2yEltPehLTcTMz2fn6JsatLYSzQf00hj3rulF+yauOlF9/FtM2WpkT/hJh/KJFGhA==", "cpu": [ "arm" ], @@ -882,9 +883,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.2.tgz", - "integrity": "sha512-TbziEu2DVsTEOPif2mKWkMeDMLoYjx95oESa9fkQQK7r/Orta0gnkcDpzwufEcAO2BLBsD7mZkXGFqEdMRRwfw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.4.tgz", + "integrity": "sha512-J3Yh9PzzF1Ovah2At+lHiGQdsYgArxBbXv/zHfSyaiFQEqvNv7DcW98pCrmdjCZBrqBiKrKKe2V+aaSGWuBe/w==", "cpu": [ "arm" ], @@ -896,9 +897,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.2.tgz", - "integrity": "sha512-bO/rVDiDUuM2YfuCUwZ1t1cP+/yqjqz+Xf2VtkdppefuOFS2OSeAfgafaHNkFn0t02hEyXngZkxtGqXcXwO8Rg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.4.tgz", + "integrity": "sha512-BFDEZMYfUvLn37ONE1yMBojPxnMlTFsdyNoqncT0qFq1mAfllL+ATMMJd8TeuVMiX84s1KbcxcZbXInmcO2mRg==", "cpu": [ "arm64" ], @@ -910,9 +911,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.2.tgz", - "integrity": "sha512-hr26p7e93Rl0Za+JwW7EAnwAvKkehh12BU1Llm9Ykiibg4uIr2rbpxG9WCf56GuvidlTG9KiiQT/TXT1yAWxTA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.4.tgz", + "integrity": "sha512-pc9EYOSlOgdQ2uPl1o9PF6/kLSgaUosia7gOuS8mB69IxJvlclko1MECXysjs5ryez1/5zjYqx3+xYU0TU6R1A==", "cpu": [ "arm64" ], @@ -924,9 +925,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.2.tgz", - "integrity": "sha512-pOjB/uSIyDt+ow3k/RcLvUAOGpysT2phDn7TTUB3n75SlIgZzM6NKAqlErPhoFU+npgY3/n+2HYIQVbF70P9/A==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.4.tgz", + "integrity": "sha512-NxnomyxYerDh5n4iLrNa+sH+Z+U4BMEE46V2PgQ/hoB909i8gV1M5wPojWg9fk1jWpO3IQnOs20K4wyZuFLEFQ==", "cpu": [ "loong64" ], @@ -938,9 +939,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.2.tgz", - "integrity": "sha512-2/w+q8jszv9Ww1c+6uJT3OwqhdmGP2/4T17cu8WuwyUuuaCDDJ2ojdyYwZzCxx0GcsZBhzi3HmH+J5pZNXnd+Q==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.4.tgz", + "integrity": "sha512-nbJnQ8a3z1mtmrwImCYhc6BGpThAyYVRQxw9uKSKG4wR6aAYno9sVjJ0zaZcW9BPJX1GbrDPf+SvdWjgTuDmnw==", "cpu": [ "loong64" ], @@ -952,9 +953,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.2.tgz", - "integrity": "sha512-11+aL5vKheYgczxtPVVRhdptAM2H7fcDR5Gw4/bTcteuZBlH4oP9f5s9zYO9aGZvoGeBpqXI/9TZZihZ609wKw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.4.tgz", + "integrity": "sha512-2EU6acNrQLd8tYvo/LXW535wupT3m6fo7HKo6lr7ktQoItxTyOL1ZCR/GfGCuXl2vR+zmfI6eRXkSemafv+iVg==", "cpu": [ "ppc64" ], @@ -966,9 +967,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.2.tgz", - "integrity": "sha512-i16fokAGK46IVZuV8LIIwMdtqhin9hfYkCh8pf8iC3QU3LpwL+1FSFGej+O7l3E/AoknL6Dclh2oTdnRMpTzFQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.4.tgz", + "integrity": "sha512-WeBtoMuaMxiiIrO2IYP3xs6GMWkJP2C0EoT8beTLkUPmzV1i/UcOSVw1d5r9KBODtHKilG5yFxsGRnBbK3wJ4A==", "cpu": [ "ppc64" ], @@ -980,9 +981,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.2.tgz", - "integrity": "sha512-49FkKS6RGQoriDSK/6E2GkAsAuU5kETFCh7pG4yD/ylj9rKhTmO3elsnmBvRD4PgJPds5W2PkhC82aVwmUcJ7A==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.4.tgz", + "integrity": "sha512-FJHFfqpKUI3A10WrWKiFbBZ7yVbGT4q4B5o1qKFFojqpaYoh9LrQgqWCmmcxQzVSXYtyB5bzkXrYzlHTs21MYA==", "cpu": [ "riscv64" ], @@ -994,9 +995,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.2.tgz", - "integrity": "sha512-mjYNkHPfGpUR00DuM1ZZIgs64Hpf4bWcz9Z41+4Q+pgDx73UwWdAYyf6EG/lRFldmdHHzgrYyge5akFUW0D3mQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.4.tgz", + "integrity": "sha512-mcEl6CUT5IAUmQf1m9FYSmVqCJlpQ8r8eyftFUHG8i9OhY7BkBXSUdnLH5DOf0wCOjcP9v/QO93zpmF1SptCCw==", "cpu": [ "riscv64" ], @@ -1008,9 +1009,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.2.tgz", - "integrity": "sha512-ALyvJz965BQk8E9Al/JDKKDLH2kfKFLTGMlgkAbbYtZuJt9LU8DW3ZoDMCtQpXAltZxwBHevXz5u+gf0yA0YoA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.4.tgz", + "integrity": "sha512-ynt3JxVd2w2buzoKDWIyiV1pJW93xlQic1THVLXilz429oijRpSHivZAgp65KBu+cMcgf1eVVjdnTLvPxgCuoQ==", "cpu": [ "s390x" ], @@ -1022,9 +1023,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.2.tgz", - "integrity": "sha512-UQjrkIdWrKI626Du8lCQ6MJp/6V1LAo2bOK9OTu4mSn8GGXIkPXk/Vsp4bLHCd9Z9Iz2OTEaokUE90VweJgIYQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.4.tgz", + "integrity": "sha512-Boiz5+MsaROEWDf+GGEwF8VMHGhlUoQMtIPjOgA5fv4osupqTVnJteQNKJwUcnUog2G55jYXH7KZFFiJe0TEzQ==", "cpu": [ "x64" ], @@ -1036,9 +1037,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.2.tgz", - "integrity": "sha512-bTsRGj6VlSdn/XD4CGyzMnzaBs9bsRxy79eTqTCBsA8TMIEky7qg48aPkvJvFe1HyzQ5oMZdg7AnVlWQSKLTnw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.4.tgz", + "integrity": "sha512-+qfSY27qIrFfI/Hom04KYFw3GKZSGU4lXus51wsb5EuySfFlWRwjkKWoE9emgRw/ukoT4Udsj4W/+xxG8VbPKg==", "cpu": [ "x64" ], @@ -1050,9 +1051,9 @@ ] }, "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.2.tgz", - "integrity": "sha512-6d4Z3534xitaA1FcMWP7mQPq5zGwBmGbhphh2DwaA1aNIXUu3KTOfwrWpbwI4/Gr0uANo7NTtaykFyO2hPuFLg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.4.tgz", + "integrity": "sha512-VpTfOPHgVXEBeeR8hZ2O0F3aSso+JDWqTWmTmzcQKted54IAdUVbxE+j/MVxUsKa8L20HJhv3vUezVPoquqWjA==", "cpu": [ "x64" ], @@ -1064,9 +1065,9 @@ ] }, "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.2.tgz", - "integrity": "sha512-NetAg5iO2uN7eB8zE5qrZ3CSil+7IJt4WDFLcC75Ymywq1VZVD6qJ6EvNLjZ3rEm6gB7XW5JdT60c6MN35Z85Q==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.4.tgz", + "integrity": "sha512-IPOsh5aRYuLv/nkU51X10Bf75Bsf6+gZdx1X+QP5QM6lIJFHHqbHLG0uJn/hWthzo13UAc2umiUorqZy3axoZg==", "cpu": [ "arm64" ], @@ -1078,9 +1079,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.2.tgz", - "integrity": "sha512-NCYhOotpgWZ5kdxCZsv6Iudx0wX8980Q/oW4pNFNihpBKsDbEA1zpkfxJGC0yugsUuyDZ7gL37dbzwhR0VI7pQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.4.tgz", + "integrity": "sha512-4QzE9E81OohJ/HKzHhsqU+zcYYojVOXlFMs1DdyMT6qXl/niOH7AVElmmEdUNHHS/oRkc++d5k6Vy85zFs0DEw==", "cpu": [ "arm64" ], @@ -1092,9 +1093,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.2.tgz", - "integrity": "sha512-RXsaOqXxfoUBQoOgvmmijVxJnW2IGB0eoMO7F8FAjaj0UTywUO/luSqimWBJn04WNgUkeNhh7fs7pESXajWmkg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.4.tgz", + "integrity": "sha512-zTPgT1YuHHcd+Tmx7h8aml0FWFVelV5N54oHow9SLj+GfoDy/huQ+UV396N/C7KpMDMiPspRktzM1/0r1usYEA==", "cpu": [ "ia32" ], @@ -1106,9 +1107,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.2.tgz", - "integrity": "sha512-qdAzEULD+/hzObedtmV6iBpdL5TIbKVztGiK7O3/KYSf+HIzU257+MX1EXJcyIiDbMAqmbwaufcYPvyRryeZtA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.4.tgz", + "integrity": "sha512-DRS4G7mi9lJxqEDezIkKCaUIKCrLUUDCUaCsTPCi/rtqaC6D/jjwslMQyiDU50Ka0JKpeXeRBFBAXwArY52vBw==", "cpu": [ "x64" ], @@ -1120,9 +1121,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.2.tgz", - "integrity": "sha512-Nd/SgG27WoA9e+/TdK74KnHz852TLa94ovOYySo/yMPuTmpckK/jIF2jSwS3g7ELSKXK13/cVdmg1Z/DaCWKxA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.4.tgz", + "integrity": "sha512-QVTUovf40zgTqlFVrKA1uXMVvU2QWEFWfAH8Wdc48IxLvrJMQVMBRjuQyUpzZCDkakImib9eVazbWlC6ksWtJw==", "cpu": [ "x64" ], @@ -1334,9 +1335,9 @@ } }, "node_modules/@ungap/structured-clone": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", - "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.1.tgz", + "integrity": "sha512-mUFwbeTqrVgDQxFveS+df2yfap6iuP20NAKAsBt5jDEoOTDew+zwLAOilHCeQJOVSvmgCX4ogqIrA0mnyr08yQ==", "dev": true, "license": "ISC" }, @@ -1384,53 +1385,53 @@ } }, "node_modules/@vue/compiler-core": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.33.tgz", - "integrity": "sha512-3PZLQwFw4Za3TC8t0FvTy3wI16Kt+pmwcgNZca4Pj9iWL2E72a/gZlpBtAJvEdDMdCxdG/qq0C7PN0bsJuv0Rw==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.34.tgz", + "integrity": "sha512-s9cLyK5mLcvZ4Agva5QgRsQyLKvts9WbU9DB6NqiZkkGEdwmcEiylj5Jbwkp680drF/NNCV8OlAJSe+yMLxaJw==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.2", - "@vue/shared": "3.5.33", + "@babel/parser": "^7.29.3", + "@vue/shared": "3.5.34", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "node_modules/@vue/compiler-dom": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.33.tgz", - "integrity": "sha512-PXq0yrfCLzzL07rbXO4awtXY1Z06LG2eu6Adg3RJFa/j3Cii217XxxLXG22N330gw7GmALCY0Z8RgXEviwgpjA==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.34.tgz", + "integrity": "sha512-EbF/T++k0e2MMZlJsBhzK8Sgwt0HcIPOhzn1CTB/lv6sQcyk+OWf8YeiLxZp3ro7MbbLcAfAJ6sEvjFWuNgUCw==", "license": "MIT", "dependencies": { - "@vue/compiler-core": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/compiler-core": "3.5.34", + "@vue/shared": "3.5.34" } }, "node_modules/@vue/compiler-sfc": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.33.tgz", - "integrity": "sha512-UTUvRO9cY+rROrx/pvN9P5Z7FgA6QGfokUCfhQE4EnmUj3rVnK+CHI0LsEO1pg+I7//iRYMUfcNcCPe7tg0CoA==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.34.tgz", + "integrity": "sha512-D/ihr6uZeIt6r+pVZf46RWT1fAsLFMbUP7k8G1VkiiWexriED9GrX3echHd4Abbt17zjlfiFJ8z7a3BxZOPNjg==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.2", - "@vue/compiler-core": "3.5.33", - "@vue/compiler-dom": "3.5.33", - "@vue/compiler-ssr": "3.5.33", - "@vue/shared": "3.5.33", + "@babel/parser": "^7.29.3", + "@vue/compiler-core": "3.5.34", + "@vue/compiler-dom": "3.5.34", + "@vue/compiler-ssr": "3.5.34", + "@vue/shared": "3.5.34", "estree-walker": "^2.0.2", "magic-string": "^0.30.21", - "postcss": "^8.5.10", + "postcss": "^8.5.14", "source-map-js": "^1.2.1" } }, "node_modules/@vue/compiler-ssr": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.33.tgz", - "integrity": "sha512-IErjYdnj1qIupG5xxiVIYiiRvDhGWV4zuh/RCrwfYpuL+HWQzeU6lCk/nF9r7olWMnjKxCAkOctT2qFWFkzb1A==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.34.tgz", + "integrity": "sha512-cDtTHKibkThKGHH1SP+WdccquNRYQDFH6rRjQCqT9G2ltFAfoR5pUftpab/z+aM5mW9HLLVQW7hfKKQe/1GBeQ==", "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/compiler-dom": "3.5.34", + "@vue/shared": "3.5.34" } }, "node_modules/@vue/compiler-vue2": { @@ -1477,72 +1478,72 @@ } }, "node_modules/@vue/reactivity": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.33.tgz", - "integrity": "sha512-p8UfIqyIhb0rYGlSgSBV+lPhF2iUSBcRy7enhTmPqKWadHy9kcOFYF1AejYBP9P+avnd3OBbD49DU4pLWX/94A==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.34.tgz", + "integrity": "sha512-y9XDjCEuBp+98k+UL5dbYkh57AHU4o6cxZedOPXw3bmrZZYLQsVHguGurq7hVrPCSrQtrnz1f9dssyFr+dMXfQ==", "license": "MIT", "dependencies": { - "@vue/shared": "3.5.33" + "@vue/shared": "3.5.34" } }, "node_modules/@vue/runtime-core": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.33.tgz", - "integrity": "sha512-UpFF45RI9//a7rvq7RdOQblb4tup7hHG9QsmIrxkFQLzQ7R8/iNQ5LE15NhLZ1/WcHMU2b47u6P33CPUelHyIQ==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.34.tgz", + "integrity": "sha512-mKeBYvu8tcMSLhypAHBmriUFfWXKTCF/23Z4jiCoYK3UtWepkliViNLuR90V9XOyD62mUxs9p1jsrpK3CCGIzw==", "license": "MIT", "dependencies": { - "@vue/reactivity": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/reactivity": "3.5.34", + "@vue/shared": "3.5.34" } }, "node_modules/@vue/runtime-dom": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.33.tgz", - "integrity": "sha512-IOxMsAOwquhfITgmOgaPYl7/j8gKUxUFoflRc+u4LxyD3+783xne8vNta1PONVCvCV9A0w7hkyEepINDqfO0tw==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.34.tgz", + "integrity": "sha512-e8kZzERmCwUnBRVsgSQlAfrfU2rGoy0FFKPBXSlfEjc/O3KfA7QP0t1/2ZylrbchjmIKB4dPTd07A6WPr0eOrg==", "license": "MIT", "dependencies": { - "@vue/reactivity": "3.5.33", - "@vue/runtime-core": "3.5.33", - "@vue/shared": "3.5.33", + "@vue/reactivity": "3.5.34", + "@vue/runtime-core": "3.5.34", + "@vue/shared": "3.5.34", "csstype": "^3.2.3" } }, "node_modules/@vue/server-renderer": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.33.tgz", - "integrity": "sha512-0xylq/8/h44lVG0pZFknv1XIdEgymq2E9n59uTWJBG+dIgiT0TMCSsxrN7nO16Z0MU0MPjFcguBbZV8Itk52Hw==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.34.tgz", + "integrity": "sha512-nHxmJoTrKsmrkbILRhkC9gY1G3moZbJTqCzDd7DOOzG5KH9oeJ0Unqrff5f9v0pW//jES05ZkJcNtfE8JjOIew==", "license": "MIT", "dependencies": { - "@vue/compiler-ssr": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/compiler-ssr": "3.5.34", + "@vue/shared": "3.5.34" }, "peerDependencies": { - "vue": "3.5.33" + "vue": "3.5.34" } }, "node_modules/@vue/shared": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.33.tgz", - "integrity": "sha512-5vR2QIlmaLG77Ygd4pMP6+SGQ5yox9VhtnbDWTy9DzMzdmeLxZ1QqxrywEZ9sa1AVubfIJyaCG3ytyWU81ufcQ==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.34.tgz", + "integrity": "sha512-24uqU4OIiX29ryC3MeWid/Xf2fa2EFRUVLb77nRhk+UrTVrh/XiGtFAFmJBAtBRbjwNdsPRP+jj/OL27Eg1NDA==", "license": "MIT" }, "node_modules/@wippy-fe/proxy": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/proxy/-/proxy-0.0.26.tgz", - "integrity": "sha512-HIamOJ4bWVwo7Mi0rDAZW5dtWEJSJzrpXbAPqvsUtiiYLE4a5lq40Yxd8Vtzu3jx7S7u1n2VdVfXMCEwOlbnQQ==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/proxy/-/proxy-0.0.32.tgz", + "integrity": "sha512-1mDUbWGdRC0A4EanqK+N2PG1SFEzI9D3QV15PVy8nerPGDwPIRTcNe6MXWvcKcGSVzdiX6Dryki5dUw8+FeYOQ==", "license": "UNLICENSED" }, "node_modules/@wippy-fe/shared": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/shared/-/shared-0.0.26.tgz", - "integrity": "sha512-nDFQnfW3enp6mEsQqPQR/Ugg/ErZidpqKadlNFa1uMCZ1PbAjqbadgo0b9d7aPDpV/Orj3vkcvz5/97CYnBCcg==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/shared/-/shared-0.0.32.tgz", + "integrity": "sha512-dgmqsHOptkgJXLV2RxIeVFTxOdPx55QkuKw6nmn4tQUdFKw4bksOIpBT8WrPowgrLbfYpekhKK9UbCfgYGE1BA==", "license": "UNLICENSED", "peer": true }, "node_modules/@wippy-fe/theme": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/theme/-/theme-0.0.26.tgz", - "integrity": "sha512-SXAT7o3ZyuSGSwsoFZbnwxTNAsQhZvStP+jwHjFsJmeELbuWXPAikm3+jXnBH9KhMG7ejOSwSpeeSc0r5M8zqA==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/theme/-/theme-0.0.32.tgz", + "integrity": "sha512-XqPfEYGh8qWIVnFGgex4kLfjmj9AZ8Z74W6ukkI59nMr72WmKOPXqX/TgobRh+f/xm+kMauCPCzAF2omXU0F+w==", "license": "UNLICENSED", "dependencies": { "tailwind-scrollbar": "^3.0.0", @@ -1557,29 +1558,39 @@ } } }, + "node_modules/@wippy-fe/vite-plugin": { + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/vite-plugin/-/vite-plugin-0.0.32.tgz", + "integrity": "sha512-moIZO9eWHlOatPozNaQU2xUMyMFqNApN82k7t7ju2F86ujVCCZTJr/5XNE7MgvTUuGk9RPp3yvQFonGojqMqow==", + "dev": true, + "license": "UNLICENSED", + "peerDependencies": { + "vite": "^5 || ^6 || ^7" + } + }, "node_modules/@wippy-fe/webcomponent-core": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/webcomponent-core/-/webcomponent-core-0.0.26.tgz", - "integrity": "sha512-4pPR0MP9MbmjeqdRPv1XjDWdLy9h8vUuih/0L3AyPlrqq2ZZSbrwZLt9ABHULqy6S670QeL0H3Fy4fBU4fp5xA==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/webcomponent-core/-/webcomponent-core-0.0.32.tgz", + "integrity": "sha512-k9wmkZQWAzckQjrgF0wb9YTZsOAFzuOtzeR/l+Aqp2PNZxj1oa+eGD4qcp9MWoai/fDaMzGbO8NAzCDxrRr6TA==", "license": "UNLICENSED", "peerDependencies": { "@iconify/vue": "^5.0.0", - "@wippy-fe/proxy": "0.0.26", - "@wippy-fe/shared": "0.0.26" + "@wippy-fe/proxy": "0.0.32", + "@wippy-fe/shared": "0.0.32" } }, "node_modules/@wippy-fe/webcomponent-vue": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/webcomponent-vue/-/webcomponent-vue-0.0.26.tgz", - "integrity": "sha512-DQ4JmDzEtEmDHA1ZHMetC6+r5V6GZ+PQ7kUQI2cFf1kcuv/raNmEjC+wvQ8uoN7GhL5NKPfcF50whJDj9BCiCg==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/webcomponent-vue/-/webcomponent-vue-0.0.32.tgz", + "integrity": "sha512-ZrqQB5XVa0EzxOk3YK1Vg/VIj6xVW1UUEZV3SA/2qkC9CYyOexERJWEKSq+ie+HAcVubhlQbhUaCYpE9x1onEQ==", "license": "UNLICENSED", "dependencies": { - "@wippy-fe/webcomponent-core": "0.0.26" + "@wippy-fe/webcomponent-core": "0.0.32" }, "peerDependencies": { "@iconify/vue": "^5.0.0", - "@wippy-fe/proxy": "0.0.26", - "@wippy-fe/shared": "0.0.26", + "@wippy-fe/proxy": "0.0.32", + "@wippy-fe/shared": "0.0.32", "pinia": "^2.1.0", "vue": "^3.5.0" } @@ -2619,13 +2630,13 @@ } }, "node_modules/is-core-module": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", - "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz", + "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==", "license": "MIT", "peer": true, "dependencies": { - "hasown": "^2.0.2" + "hasown": "^2.0.3" }, "engines": { "node": ">= 0.4" @@ -2873,9 +2884,9 @@ } }, "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", "funding": [ { "type": "github", @@ -3129,9 +3140,9 @@ } }, "node_modules/postcss": { - "version": "8.5.12", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.12.tgz", - "integrity": "sha512-W62t/Se6rA0Az3DfCL0AqJwXuKwBeYg6nOaIgzP+xZ7N5BFCI7DYi1qs6ygUYT6rvfi6t9k65UMLJC+PHZpDAA==", + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", "funding": [ { "type": "opencollective", @@ -3148,7 +3159,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.11", + "nanoid": "^3.3.12", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -3412,9 +3423,9 @@ } }, "node_modules/rollup": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.2.tgz", - "integrity": "sha512-J9qZyW++QK/09NyN/zeO0dG/1GdGfyp9lV8ajHnRVLfo/uFsbji5mHnDgn/qYdUHyCkM2N+8VyspgZclfAh0eQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.4.tgz", + "integrity": "sha512-WHeFSbZYsPu3+bLoNRUuAO+wavNlocOPf3wSHTP7hcFKVnJeWsYlCDbr3mTS14FCizf9ccIxXA8sGL8zKeQN3g==", "dev": true, "license": "MIT", "dependencies": { @@ -3428,31 +3439,31 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.60.2", - "@rollup/rollup-android-arm64": "4.60.2", - "@rollup/rollup-darwin-arm64": "4.60.2", - "@rollup/rollup-darwin-x64": "4.60.2", - "@rollup/rollup-freebsd-arm64": "4.60.2", - "@rollup/rollup-freebsd-x64": "4.60.2", - "@rollup/rollup-linux-arm-gnueabihf": "4.60.2", - "@rollup/rollup-linux-arm-musleabihf": "4.60.2", - "@rollup/rollup-linux-arm64-gnu": "4.60.2", - "@rollup/rollup-linux-arm64-musl": "4.60.2", - "@rollup/rollup-linux-loong64-gnu": "4.60.2", - "@rollup/rollup-linux-loong64-musl": "4.60.2", - "@rollup/rollup-linux-ppc64-gnu": "4.60.2", - "@rollup/rollup-linux-ppc64-musl": "4.60.2", - "@rollup/rollup-linux-riscv64-gnu": "4.60.2", - "@rollup/rollup-linux-riscv64-musl": "4.60.2", - "@rollup/rollup-linux-s390x-gnu": "4.60.2", - "@rollup/rollup-linux-x64-gnu": "4.60.2", - "@rollup/rollup-linux-x64-musl": "4.60.2", - "@rollup/rollup-openbsd-x64": "4.60.2", - "@rollup/rollup-openharmony-arm64": "4.60.2", - "@rollup/rollup-win32-arm64-msvc": "4.60.2", - "@rollup/rollup-win32-ia32-msvc": "4.60.2", - "@rollup/rollup-win32-x64-gnu": "4.60.2", - "@rollup/rollup-win32-x64-msvc": "4.60.2", + "@rollup/rollup-android-arm-eabi": "4.60.4", + "@rollup/rollup-android-arm64": "4.60.4", + "@rollup/rollup-darwin-arm64": "4.60.4", + "@rollup/rollup-darwin-x64": "4.60.4", + "@rollup/rollup-freebsd-arm64": "4.60.4", + "@rollup/rollup-freebsd-x64": "4.60.4", + "@rollup/rollup-linux-arm-gnueabihf": "4.60.4", + "@rollup/rollup-linux-arm-musleabihf": "4.60.4", + "@rollup/rollup-linux-arm64-gnu": "4.60.4", + "@rollup/rollup-linux-arm64-musl": "4.60.4", + "@rollup/rollup-linux-loong64-gnu": "4.60.4", + "@rollup/rollup-linux-loong64-musl": "4.60.4", + "@rollup/rollup-linux-ppc64-gnu": "4.60.4", + "@rollup/rollup-linux-ppc64-musl": "4.60.4", + "@rollup/rollup-linux-riscv64-gnu": "4.60.4", + "@rollup/rollup-linux-riscv64-musl": "4.60.4", + "@rollup/rollup-linux-s390x-gnu": "4.60.4", + "@rollup/rollup-linux-x64-gnu": "4.60.4", + "@rollup/rollup-linux-x64-musl": "4.60.4", + "@rollup/rollup-openbsd-x64": "4.60.4", + "@rollup/rollup-openharmony-arm64": "4.60.4", + "@rollup/rollup-win32-arm64-msvc": "4.60.4", + "@rollup/rollup-win32-ia32-msvc": "4.60.4", + "@rollup/rollup-win32-x64-gnu": "4.60.4", + "@rollup/rollup-win32-x64-msvc": "4.60.4", "fsevents": "~2.3.2" } }, @@ -3480,9 +3491,9 @@ } }, "node_modules/semver": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", - "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz", + "integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==", "dev": true, "license": "ISC", "bin": { @@ -3945,16 +3956,16 @@ "license": "MIT" }, "node_modules/vue": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.33.tgz", - "integrity": "sha512-1AgChhx5w3ALgT4oK3acm2Es/7jyZhWSVUfs3rOBlGQC0rjEDkS7G4lWlJJGGNQD+BV3reCwbQrOe1mPNwKHBQ==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.34.tgz", + "integrity": "sha512-WdLBG9gm02OgJIG9axd5Hpx0TFLdzVgfG2evFFu8Rur5O/IoGc5cMjnjh3tPL6GnRGsYvUhBSKVPYVcxRKpMCA==", "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.5.33", - "@vue/compiler-sfc": "3.5.33", - "@vue/runtime-dom": "3.5.33", - "@vue/server-renderer": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/compiler-dom": "3.5.34", + "@vue/compiler-sfc": "3.5.34", + "@vue/runtime-dom": "3.5.34", + "@vue/server-renderer": "3.5.34", + "@vue/shared": "3.5.34" }, "peerDependencies": { "typescript": "*" diff --git a/src/wc-content-kit/frontend/chartjs/package.json b/src/wc-content-kit/frontend/chartjs/package.json index 3e29618..b31da1b 100644 --- a/src/wc-content-kit/frontend/chartjs/package.json +++ b/src/wc-content-kit/frontend/chartjs/package.json @@ -1,6 +1,6 @@ { "name": "@wippy/wc-chartjs", - "version": "0.1.0", + "version": "0.1.2", "specification": "wippy-component-1.0", "title": "Chart.js (universal)", "description": "Auto-registered Chart.js wrapper supporting every chart type, shipped by the wippy.wc-content-kit module. Tag: .", @@ -11,16 +11,17 @@ "package.json" ], "dependencies": { - "@wippy-fe/theme": "^0.0.26", - "@wippy-fe/webcomponent-core": "^0.0.26", - "@wippy-fe/webcomponent-vue": "^0.0.26", + "@wippy-fe/theme": "^0.0.32", + "@wippy-fe/webcomponent-core": "^0.0.32", + "@wippy-fe/webcomponent-vue": "^0.0.32", "chart.js": "^4.4.0" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^7.0.0", "@vitejs/plugin-vue": "^5.0.0", - "@wippy-fe/proxy": "^0.0.26", + "@wippy-fe/vite-plugin": "^0.0.32", + "@wippy-fe/proxy": "^0.0.32", "eslint": "^8.57.0", "eslint-plugin-vue": "^9.0.0", "typescript": "^5.0.0", @@ -30,7 +31,7 @@ "vue-tsc": "^2.0.0" }, "peerDependencies": { - "@wippy-fe/proxy": "^0.0.26", + "@wippy-fe/proxy": "^0.0.32", "vue": "^3.5.0" }, "wippy": { diff --git a/src/wc-content-kit/frontend/chartjs/vite.config.ts b/src/wc-content-kit/frontend/chartjs/vite.config.ts index b67575a..99c9305 100644 --- a/src/wc-content-kit/frontend/chartjs/vite.config.ts +++ b/src/wc-content-kit/frontend/chartjs/vite.config.ts @@ -1,10 +1,12 @@ import { resolve } from 'node:path' import vue from '@vitejs/plugin-vue' +import { wippyComponentPlugin } from '@wippy-fe/vite-plugin' import { defineConfig } from 'vite' export default defineConfig({ plugins: [ vue(), + wippyComponentPlugin(), ], build: { target: 'esnext', diff --git a/src/wc-content-kit/frontend/markdown/package-lock.json b/src/wc-content-kit/frontend/markdown/package-lock.json index 312eb6d..157a6e6 100644 --- a/src/wc-content-kit/frontend/markdown/package-lock.json +++ b/src/wc-content-kit/frontend/markdown/package-lock.json @@ -1,16 +1,16 @@ { "name": "@wippy/wc-markdown", - "version": "0.1.0", + "version": "0.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@wippy/wc-markdown", - "version": "0.1.0", + "version": "0.1.2", "dependencies": { - "@wippy-fe/theme": "^0.0.26", - "@wippy-fe/webcomponent-core": "^0.0.26", - "@wippy-fe/webcomponent-vue": "^0.0.26", + "@wippy-fe/theme": "^0.0.32", + "@wippy-fe/webcomponent-core": "^0.0.32", + "@wippy-fe/webcomponent-vue": "^0.0.32", "markdown-it": "^14.1.0", "sanitize-html": "^2.14.0" }, @@ -20,7 +20,8 @@ "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^7.0.0", "@vitejs/plugin-vue": "^5.0.0", - "@wippy-fe/proxy": "^0.0.26", + "@wippy-fe/proxy": "^0.0.32", + "@wippy-fe/vite-plugin": "^0.0.32", "eslint": "^8.57.0", "eslint-plugin-vue": "^9.0.0", "typescript": "^5.0.0", @@ -30,7 +31,7 @@ "vue-tsc": "^2.0.0" }, "peerDependencies": { - "@wippy-fe/proxy": "^0.0.26", + "@wippy-fe/proxy": "^0.0.32", "vue": "^3.5.0" } }, @@ -66,9 +67,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.29.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz", - "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==", + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz", + "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==", "license": "MIT", "dependencies": { "@babel/types": "^7.29.0" @@ -692,9 +693,9 @@ "peer": true }, "node_modules/@iconify/vue": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@iconify/vue/-/vue-5.0.0.tgz", - "integrity": "sha512-C+KuEWIF5nSBrobFJhT//JS87OZ++QDORB6f2q2Wm6fl2mueSTpFBeBsveK0KW9hWiZ4mNiPjsh6Zs4jjdROSg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@iconify/vue/-/vue-5.0.1.tgz", + "integrity": "sha512-aumwwooJlFJ5H5qYWB6ZTAyM0C8hpfcSVLB9/a3qnH1GGvIJ+FEbpEs4s/HfErYe/M5qZeLjwmESR5fFm3lXEw==", "license": "MIT", "peer": true, "dependencies": { @@ -704,7 +705,7 @@ "url": "https://github.com/sponsors/cyberalien" }, "peerDependencies": { - "vue": ">=3" + "vue": ">=3.0.0" } }, "node_modules/@jridgewell/gen-mapping": { @@ -781,9 +782,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.2.tgz", - "integrity": "sha512-dnlp69efPPg6Uaw2dVqzWRfAWRnYVb1XJ8CyyhIbZeaq4CA5/mLeZ1IEt9QqQxmbdvagjLIm2ZL8BxXv5lH4Yw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.4.tgz", + "integrity": "sha512-F5QXMSiFebS9hKZj02XhWLLnRpJ3B3AROP0tWbFBSj+6kCbg5m9j5JoHKd4mmSVy5mS/IMQloYgYxCuJC0fxEQ==", "cpu": [ "arm" ], @@ -795,9 +796,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.2.tgz", - "integrity": "sha512-OqZTwDRDchGRHHm/hwLOL7uVPB9aUvI0am/eQuWMNyFHf5PSEQmyEeYYheA0EPPKUO/l0uigCp+iaTjoLjVoHg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.4.tgz", + "integrity": "sha512-GxxTKApUpzRhof7poWvCJHRF51C67u1R7D6DiluBE8wKU1u5GWE8t+v81JvJYtbawoBFX1hLv5Ei4eVjkWokaw==", "cpu": [ "arm64" ], @@ -809,9 +810,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.2.tgz", - "integrity": "sha512-UwRE7CGpvSVEQS8gUMBe1uADWjNnVgP3Iusyda1nSRwNDCsRjnGc7w6El6WLQsXmZTbLZx9cecegumcitNfpmA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.4.tgz", + "integrity": "sha512-tua0TaJxMOB1R0V0RS1jFZ/RpURFDJIOR2A6jWwQeawuFyS4gBW+rntLRaQd0EQ4bd6Vp44Z2rXW+YYDBsj6IA==", "cpu": [ "arm64" ], @@ -823,9 +824,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.2.tgz", - "integrity": "sha512-gjEtURKLCC5VXm1I+2i1u9OhxFsKAQJKTVB8WvDAHF+oZlq0GTVFOlTlO1q3AlCTE/DF32c16ESvfgqR7343/g==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.4.tgz", + "integrity": "sha512-CSKq7MsP+5PFIcydhAiR1K0UhEI1A2jWXVKHPCBZ151yOutENwvnPocgVHkivu2kviURtCEB6zUQw0vs8RrhMg==", "cpu": [ "x64" ], @@ -837,9 +838,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.2.tgz", - "integrity": "sha512-Bcl6CYDeAgE70cqZaMojOi/eK63h5Me97ZqAQoh77VPjMysA/4ORQBRGo3rRy45x4MzVlU9uZxs8Uwy7ZaKnBw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.4.tgz", + "integrity": "sha512-+O8OkVdyvXMtJEciu2wS/pzm1IxntEEQx3z5TAVy4l32G0etZn+RsA48ARRrFm6Ri8fvqPQfgrvNxSjKAbnd3g==", "cpu": [ "arm64" ], @@ -851,9 +852,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.2.tgz", - "integrity": "sha512-LU+TPda3mAE2QB0/Hp5VyeKJivpC6+tlOXd1VMoXV/YFMvk/MNk5iXeBfB4MQGRWyOYVJ01625vjkr0Az98OJQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.4.tgz", + "integrity": "sha512-Iw3oMskH3AfNuhU0MSN7vNbdi4me/NiYo2azqPz/Le16zHSa+3RRmliCMWWQmh4lcndccU40xcJuTYJZxNo/lw==", "cpu": [ "x64" ], @@ -865,9 +866,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.2.tgz", - "integrity": "sha512-2QxQrM+KQ7DAW4o22j+XZ6RKdxjLD7BOWTP0Bv0tmjdyhXSsr2Ul1oJDQqh9Zf5qOwTuTc7Ek83mOFaKnodPjg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.4.tgz", + "integrity": "sha512-EIPRXTVQpHyF8WOo219AD2yEltPehLTcTMz2fn6JsatLYSzQf00hj3rulF+yauOlF9/FtM2WpkT/hJh/KJFGhA==", "cpu": [ "arm" ], @@ -879,9 +880,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.2.tgz", - "integrity": "sha512-TbziEu2DVsTEOPif2mKWkMeDMLoYjx95oESa9fkQQK7r/Orta0gnkcDpzwufEcAO2BLBsD7mZkXGFqEdMRRwfw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.4.tgz", + "integrity": "sha512-J3Yh9PzzF1Ovah2At+lHiGQdsYgArxBbXv/zHfSyaiFQEqvNv7DcW98pCrmdjCZBrqBiKrKKe2V+aaSGWuBe/w==", "cpu": [ "arm" ], @@ -893,9 +894,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.2.tgz", - "integrity": "sha512-bO/rVDiDUuM2YfuCUwZ1t1cP+/yqjqz+Xf2VtkdppefuOFS2OSeAfgafaHNkFn0t02hEyXngZkxtGqXcXwO8Rg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.4.tgz", + "integrity": "sha512-BFDEZMYfUvLn37ONE1yMBojPxnMlTFsdyNoqncT0qFq1mAfllL+ATMMJd8TeuVMiX84s1KbcxcZbXInmcO2mRg==", "cpu": [ "arm64" ], @@ -907,9 +908,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.2.tgz", - "integrity": "sha512-hr26p7e93Rl0Za+JwW7EAnwAvKkehh12BU1Llm9Ykiibg4uIr2rbpxG9WCf56GuvidlTG9KiiQT/TXT1yAWxTA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.4.tgz", + "integrity": "sha512-pc9EYOSlOgdQ2uPl1o9PF6/kLSgaUosia7gOuS8mB69IxJvlclko1MECXysjs5ryez1/5zjYqx3+xYU0TU6R1A==", "cpu": [ "arm64" ], @@ -921,9 +922,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.2.tgz", - "integrity": "sha512-pOjB/uSIyDt+ow3k/RcLvUAOGpysT2phDn7TTUB3n75SlIgZzM6NKAqlErPhoFU+npgY3/n+2HYIQVbF70P9/A==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.4.tgz", + "integrity": "sha512-NxnomyxYerDh5n4iLrNa+sH+Z+U4BMEE46V2PgQ/hoB909i8gV1M5wPojWg9fk1jWpO3IQnOs20K4wyZuFLEFQ==", "cpu": [ "loong64" ], @@ -935,9 +936,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.2.tgz", - "integrity": "sha512-2/w+q8jszv9Ww1c+6uJT3OwqhdmGP2/4T17cu8WuwyUuuaCDDJ2ojdyYwZzCxx0GcsZBhzi3HmH+J5pZNXnd+Q==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.4.tgz", + "integrity": "sha512-nbJnQ8a3z1mtmrwImCYhc6BGpThAyYVRQxw9uKSKG4wR6aAYno9sVjJ0zaZcW9BPJX1GbrDPf+SvdWjgTuDmnw==", "cpu": [ "loong64" ], @@ -949,9 +950,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.2.tgz", - "integrity": "sha512-11+aL5vKheYgczxtPVVRhdptAM2H7fcDR5Gw4/bTcteuZBlH4oP9f5s9zYO9aGZvoGeBpqXI/9TZZihZ609wKw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.4.tgz", + "integrity": "sha512-2EU6acNrQLd8tYvo/LXW535wupT3m6fo7HKo6lr7ktQoItxTyOL1ZCR/GfGCuXl2vR+zmfI6eRXkSemafv+iVg==", "cpu": [ "ppc64" ], @@ -963,9 +964,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.2.tgz", - "integrity": "sha512-i16fokAGK46IVZuV8LIIwMdtqhin9hfYkCh8pf8iC3QU3LpwL+1FSFGej+O7l3E/AoknL6Dclh2oTdnRMpTzFQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.4.tgz", + "integrity": "sha512-WeBtoMuaMxiiIrO2IYP3xs6GMWkJP2C0EoT8beTLkUPmzV1i/UcOSVw1d5r9KBODtHKilG5yFxsGRnBbK3wJ4A==", "cpu": [ "ppc64" ], @@ -977,9 +978,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.2.tgz", - "integrity": "sha512-49FkKS6RGQoriDSK/6E2GkAsAuU5kETFCh7pG4yD/ylj9rKhTmO3elsnmBvRD4PgJPds5W2PkhC82aVwmUcJ7A==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.4.tgz", + "integrity": "sha512-FJHFfqpKUI3A10WrWKiFbBZ7yVbGT4q4B5o1qKFFojqpaYoh9LrQgqWCmmcxQzVSXYtyB5bzkXrYzlHTs21MYA==", "cpu": [ "riscv64" ], @@ -991,9 +992,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.2.tgz", - "integrity": "sha512-mjYNkHPfGpUR00DuM1ZZIgs64Hpf4bWcz9Z41+4Q+pgDx73UwWdAYyf6EG/lRFldmdHHzgrYyge5akFUW0D3mQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.4.tgz", + "integrity": "sha512-mcEl6CUT5IAUmQf1m9FYSmVqCJlpQ8r8eyftFUHG8i9OhY7BkBXSUdnLH5DOf0wCOjcP9v/QO93zpmF1SptCCw==", "cpu": [ "riscv64" ], @@ -1005,9 +1006,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.2.tgz", - "integrity": "sha512-ALyvJz965BQk8E9Al/JDKKDLH2kfKFLTGMlgkAbbYtZuJt9LU8DW3ZoDMCtQpXAltZxwBHevXz5u+gf0yA0YoA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.4.tgz", + "integrity": "sha512-ynt3JxVd2w2buzoKDWIyiV1pJW93xlQic1THVLXilz429oijRpSHivZAgp65KBu+cMcgf1eVVjdnTLvPxgCuoQ==", "cpu": [ "s390x" ], @@ -1019,9 +1020,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.2.tgz", - "integrity": "sha512-UQjrkIdWrKI626Du8lCQ6MJp/6V1LAo2bOK9OTu4mSn8GGXIkPXk/Vsp4bLHCd9Z9Iz2OTEaokUE90VweJgIYQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.4.tgz", + "integrity": "sha512-Boiz5+MsaROEWDf+GGEwF8VMHGhlUoQMtIPjOgA5fv4osupqTVnJteQNKJwUcnUog2G55jYXH7KZFFiJe0TEzQ==", "cpu": [ "x64" ], @@ -1033,9 +1034,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.2.tgz", - "integrity": "sha512-bTsRGj6VlSdn/XD4CGyzMnzaBs9bsRxy79eTqTCBsA8TMIEky7qg48aPkvJvFe1HyzQ5oMZdg7AnVlWQSKLTnw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.4.tgz", + "integrity": "sha512-+qfSY27qIrFfI/Hom04KYFw3GKZSGU4lXus51wsb5EuySfFlWRwjkKWoE9emgRw/ukoT4Udsj4W/+xxG8VbPKg==", "cpu": [ "x64" ], @@ -1047,9 +1048,9 @@ ] }, "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.2.tgz", - "integrity": "sha512-6d4Z3534xitaA1FcMWP7mQPq5zGwBmGbhphh2DwaA1aNIXUu3KTOfwrWpbwI4/Gr0uANo7NTtaykFyO2hPuFLg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.4.tgz", + "integrity": "sha512-VpTfOPHgVXEBeeR8hZ2O0F3aSso+JDWqTWmTmzcQKted54IAdUVbxE+j/MVxUsKa8L20HJhv3vUezVPoquqWjA==", "cpu": [ "x64" ], @@ -1061,9 +1062,9 @@ ] }, "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.2.tgz", - "integrity": "sha512-NetAg5iO2uN7eB8zE5qrZ3CSil+7IJt4WDFLcC75Ymywq1VZVD6qJ6EvNLjZ3rEm6gB7XW5JdT60c6MN35Z85Q==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.4.tgz", + "integrity": "sha512-IPOsh5aRYuLv/nkU51X10Bf75Bsf6+gZdx1X+QP5QM6lIJFHHqbHLG0uJn/hWthzo13UAc2umiUorqZy3axoZg==", "cpu": [ "arm64" ], @@ -1075,9 +1076,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.2.tgz", - "integrity": "sha512-NCYhOotpgWZ5kdxCZsv6Iudx0wX8980Q/oW4pNFNihpBKsDbEA1zpkfxJGC0yugsUuyDZ7gL37dbzwhR0VI7pQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.4.tgz", + "integrity": "sha512-4QzE9E81OohJ/HKzHhsqU+zcYYojVOXlFMs1DdyMT6qXl/niOH7AVElmmEdUNHHS/oRkc++d5k6Vy85zFs0DEw==", "cpu": [ "arm64" ], @@ -1089,9 +1090,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.2.tgz", - "integrity": "sha512-RXsaOqXxfoUBQoOgvmmijVxJnW2IGB0eoMO7F8FAjaj0UTywUO/luSqimWBJn04WNgUkeNhh7fs7pESXajWmkg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.4.tgz", + "integrity": "sha512-zTPgT1YuHHcd+Tmx7h8aml0FWFVelV5N54oHow9SLj+GfoDy/huQ+UV396N/C7KpMDMiPspRktzM1/0r1usYEA==", "cpu": [ "ia32" ], @@ -1103,9 +1104,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.2.tgz", - "integrity": "sha512-qdAzEULD+/hzObedtmV6iBpdL5TIbKVztGiK7O3/KYSf+HIzU257+MX1EXJcyIiDbMAqmbwaufcYPvyRryeZtA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.4.tgz", + "integrity": "sha512-DRS4G7mi9lJxqEDezIkKCaUIKCrLUUDCUaCsTPCi/rtqaC6D/jjwslMQyiDU50Ka0JKpeXeRBFBAXwArY52vBw==", "cpu": [ "x64" ], @@ -1117,9 +1118,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.2.tgz", - "integrity": "sha512-Nd/SgG27WoA9e+/TdK74KnHz852TLa94ovOYySo/yMPuTmpckK/jIF2jSwS3g7ELSKXK13/cVdmg1Z/DaCWKxA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.4.tgz", + "integrity": "sha512-QVTUovf40zgTqlFVrKA1uXMVvU2QWEFWfAH8Wdc48IxLvrJMQVMBRjuQyUpzZCDkakImib9eVazbWlC6ksWtJw==", "cpu": [ "x64" ], @@ -1366,9 +1367,9 @@ } }, "node_modules/@ungap/structured-clone": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", - "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.1.tgz", + "integrity": "sha512-mUFwbeTqrVgDQxFveS+df2yfap6iuP20NAKAsBt5jDEoOTDew+zwLAOilHCeQJOVSvmgCX4ogqIrA0mnyr08yQ==", "dev": true, "license": "ISC" }, @@ -1416,53 +1417,53 @@ } }, "node_modules/@vue/compiler-core": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.33.tgz", - "integrity": "sha512-3PZLQwFw4Za3TC8t0FvTy3wI16Kt+pmwcgNZca4Pj9iWL2E72a/gZlpBtAJvEdDMdCxdG/qq0C7PN0bsJuv0Rw==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.34.tgz", + "integrity": "sha512-s9cLyK5mLcvZ4Agva5QgRsQyLKvts9WbU9DB6NqiZkkGEdwmcEiylj5Jbwkp680drF/NNCV8OlAJSe+yMLxaJw==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.2", - "@vue/shared": "3.5.33", + "@babel/parser": "^7.29.3", + "@vue/shared": "3.5.34", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "node_modules/@vue/compiler-dom": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.33.tgz", - "integrity": "sha512-PXq0yrfCLzzL07rbXO4awtXY1Z06LG2eu6Adg3RJFa/j3Cii217XxxLXG22N330gw7GmALCY0Z8RgXEviwgpjA==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.34.tgz", + "integrity": "sha512-EbF/T++k0e2MMZlJsBhzK8Sgwt0HcIPOhzn1CTB/lv6sQcyk+OWf8YeiLxZp3ro7MbbLcAfAJ6sEvjFWuNgUCw==", "license": "MIT", "dependencies": { - "@vue/compiler-core": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/compiler-core": "3.5.34", + "@vue/shared": "3.5.34" } }, "node_modules/@vue/compiler-sfc": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.33.tgz", - "integrity": "sha512-UTUvRO9cY+rROrx/pvN9P5Z7FgA6QGfokUCfhQE4EnmUj3rVnK+CHI0LsEO1pg+I7//iRYMUfcNcCPe7tg0CoA==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.34.tgz", + "integrity": "sha512-D/ihr6uZeIt6r+pVZf46RWT1fAsLFMbUP7k8G1VkiiWexriED9GrX3echHd4Abbt17zjlfiFJ8z7a3BxZOPNjg==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.2", - "@vue/compiler-core": "3.5.33", - "@vue/compiler-dom": "3.5.33", - "@vue/compiler-ssr": "3.5.33", - "@vue/shared": "3.5.33", + "@babel/parser": "^7.29.3", + "@vue/compiler-core": "3.5.34", + "@vue/compiler-dom": "3.5.34", + "@vue/compiler-ssr": "3.5.34", + "@vue/shared": "3.5.34", "estree-walker": "^2.0.2", "magic-string": "^0.30.21", - "postcss": "^8.5.10", + "postcss": "^8.5.14", "source-map-js": "^1.2.1" } }, "node_modules/@vue/compiler-ssr": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.33.tgz", - "integrity": "sha512-IErjYdnj1qIupG5xxiVIYiiRvDhGWV4zuh/RCrwfYpuL+HWQzeU6lCk/nF9r7olWMnjKxCAkOctT2qFWFkzb1A==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.34.tgz", + "integrity": "sha512-cDtTHKibkThKGHH1SP+WdccquNRYQDFH6rRjQCqT9G2ltFAfoR5pUftpab/z+aM5mW9HLLVQW7hfKKQe/1GBeQ==", "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/compiler-dom": "3.5.34", + "@vue/shared": "3.5.34" } }, "node_modules/@vue/compiler-vue2": { @@ -1509,72 +1510,72 @@ } }, "node_modules/@vue/reactivity": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.33.tgz", - "integrity": "sha512-p8UfIqyIhb0rYGlSgSBV+lPhF2iUSBcRy7enhTmPqKWadHy9kcOFYF1AejYBP9P+avnd3OBbD49DU4pLWX/94A==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.34.tgz", + "integrity": "sha512-y9XDjCEuBp+98k+UL5dbYkh57AHU4o6cxZedOPXw3bmrZZYLQsVHguGurq7hVrPCSrQtrnz1f9dssyFr+dMXfQ==", "license": "MIT", "dependencies": { - "@vue/shared": "3.5.33" + "@vue/shared": "3.5.34" } }, "node_modules/@vue/runtime-core": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.33.tgz", - "integrity": "sha512-UpFF45RI9//a7rvq7RdOQblb4tup7hHG9QsmIrxkFQLzQ7R8/iNQ5LE15NhLZ1/WcHMU2b47u6P33CPUelHyIQ==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.34.tgz", + "integrity": "sha512-mKeBYvu8tcMSLhypAHBmriUFfWXKTCF/23Z4jiCoYK3UtWepkliViNLuR90V9XOyD62mUxs9p1jsrpK3CCGIzw==", "license": "MIT", "dependencies": { - "@vue/reactivity": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/reactivity": "3.5.34", + "@vue/shared": "3.5.34" } }, "node_modules/@vue/runtime-dom": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.33.tgz", - "integrity": "sha512-IOxMsAOwquhfITgmOgaPYl7/j8gKUxUFoflRc+u4LxyD3+783xne8vNta1PONVCvCV9A0w7hkyEepINDqfO0tw==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.34.tgz", + "integrity": "sha512-e8kZzERmCwUnBRVsgSQlAfrfU2rGoy0FFKPBXSlfEjc/O3KfA7QP0t1/2ZylrbchjmIKB4dPTd07A6WPr0eOrg==", "license": "MIT", "dependencies": { - "@vue/reactivity": "3.5.33", - "@vue/runtime-core": "3.5.33", - "@vue/shared": "3.5.33", + "@vue/reactivity": "3.5.34", + "@vue/runtime-core": "3.5.34", + "@vue/shared": "3.5.34", "csstype": "^3.2.3" } }, "node_modules/@vue/server-renderer": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.33.tgz", - "integrity": "sha512-0xylq/8/h44lVG0pZFknv1XIdEgymq2E9n59uTWJBG+dIgiT0TMCSsxrN7nO16Z0MU0MPjFcguBbZV8Itk52Hw==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.34.tgz", + "integrity": "sha512-nHxmJoTrKsmrkbILRhkC9gY1G3moZbJTqCzDd7DOOzG5KH9oeJ0Unqrff5f9v0pW//jES05ZkJcNtfE8JjOIew==", "license": "MIT", "dependencies": { - "@vue/compiler-ssr": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/compiler-ssr": "3.5.34", + "@vue/shared": "3.5.34" }, "peerDependencies": { - "vue": "3.5.33" + "vue": "3.5.34" } }, "node_modules/@vue/shared": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.33.tgz", - "integrity": "sha512-5vR2QIlmaLG77Ygd4pMP6+SGQ5yox9VhtnbDWTy9DzMzdmeLxZ1QqxrywEZ9sa1AVubfIJyaCG3ytyWU81ufcQ==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.34.tgz", + "integrity": "sha512-24uqU4OIiX29ryC3MeWid/Xf2fa2EFRUVLb77nRhk+UrTVrh/XiGtFAFmJBAtBRbjwNdsPRP+jj/OL27Eg1NDA==", "license": "MIT" }, "node_modules/@wippy-fe/proxy": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/proxy/-/proxy-0.0.26.tgz", - "integrity": "sha512-HIamOJ4bWVwo7Mi0rDAZW5dtWEJSJzrpXbAPqvsUtiiYLE4a5lq40Yxd8Vtzu3jx7S7u1n2VdVfXMCEwOlbnQQ==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/proxy/-/proxy-0.0.32.tgz", + "integrity": "sha512-1mDUbWGdRC0A4EanqK+N2PG1SFEzI9D3QV15PVy8nerPGDwPIRTcNe6MXWvcKcGSVzdiX6Dryki5dUw8+FeYOQ==", "license": "UNLICENSED" }, "node_modules/@wippy-fe/shared": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/shared/-/shared-0.0.26.tgz", - "integrity": "sha512-nDFQnfW3enp6mEsQqPQR/Ugg/ErZidpqKadlNFa1uMCZ1PbAjqbadgo0b9d7aPDpV/Orj3vkcvz5/97CYnBCcg==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/shared/-/shared-0.0.32.tgz", + "integrity": "sha512-dgmqsHOptkgJXLV2RxIeVFTxOdPx55QkuKw6nmn4tQUdFKw4bksOIpBT8WrPowgrLbfYpekhKK9UbCfgYGE1BA==", "license": "UNLICENSED", "peer": true }, "node_modules/@wippy-fe/theme": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/theme/-/theme-0.0.26.tgz", - "integrity": "sha512-SXAT7o3ZyuSGSwsoFZbnwxTNAsQhZvStP+jwHjFsJmeELbuWXPAikm3+jXnBH9KhMG7ejOSwSpeeSc0r5M8zqA==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/theme/-/theme-0.0.32.tgz", + "integrity": "sha512-XqPfEYGh8qWIVnFGgex4kLfjmj9AZ8Z74W6ukkI59nMr72WmKOPXqX/TgobRh+f/xm+kMauCPCzAF2omXU0F+w==", "license": "UNLICENSED", "dependencies": { "tailwind-scrollbar": "^3.0.0", @@ -1589,29 +1590,39 @@ } } }, + "node_modules/@wippy-fe/vite-plugin": { + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/vite-plugin/-/vite-plugin-0.0.32.tgz", + "integrity": "sha512-moIZO9eWHlOatPozNaQU2xUMyMFqNApN82k7t7ju2F86ujVCCZTJr/5XNE7MgvTUuGk9RPp3yvQFonGojqMqow==", + "dev": true, + "license": "UNLICENSED", + "peerDependencies": { + "vite": "^5 || ^6 || ^7" + } + }, "node_modules/@wippy-fe/webcomponent-core": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/webcomponent-core/-/webcomponent-core-0.0.26.tgz", - "integrity": "sha512-4pPR0MP9MbmjeqdRPv1XjDWdLy9h8vUuih/0L3AyPlrqq2ZZSbrwZLt9ABHULqy6S670QeL0H3Fy4fBU4fp5xA==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/webcomponent-core/-/webcomponent-core-0.0.32.tgz", + "integrity": "sha512-k9wmkZQWAzckQjrgF0wb9YTZsOAFzuOtzeR/l+Aqp2PNZxj1oa+eGD4qcp9MWoai/fDaMzGbO8NAzCDxrRr6TA==", "license": "UNLICENSED", "peerDependencies": { "@iconify/vue": "^5.0.0", - "@wippy-fe/proxy": "0.0.26", - "@wippy-fe/shared": "0.0.26" + "@wippy-fe/proxy": "0.0.32", + "@wippy-fe/shared": "0.0.32" } }, "node_modules/@wippy-fe/webcomponent-vue": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/webcomponent-vue/-/webcomponent-vue-0.0.26.tgz", - "integrity": "sha512-DQ4JmDzEtEmDHA1ZHMetC6+r5V6GZ+PQ7kUQI2cFf1kcuv/raNmEjC+wvQ8uoN7GhL5NKPfcF50whJDj9BCiCg==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/webcomponent-vue/-/webcomponent-vue-0.0.32.tgz", + "integrity": "sha512-ZrqQB5XVa0EzxOk3YK1Vg/VIj6xVW1UUEZV3SA/2qkC9CYyOexERJWEKSq+ie+HAcVubhlQbhUaCYpE9x1onEQ==", "license": "UNLICENSED", "dependencies": { - "@wippy-fe/webcomponent-core": "0.0.26" + "@wippy-fe/webcomponent-core": "0.0.32" }, "peerDependencies": { "@iconify/vue": "^5.0.0", - "@wippy-fe/proxy": "0.0.26", - "@wippy-fe/shared": "0.0.26", + "@wippy-fe/proxy": "0.0.32", + "@wippy-fe/shared": "0.0.32", "pinia": "^2.1.0", "vue": "^3.5.0" } @@ -1927,6 +1938,12 @@ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", "license": "MIT" }, + "node_modules/dayjs": { + "version": "1.11.20", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.20.tgz", + "integrity": "sha512-YbwwqR/uYpeoP4pu043q+LTDLFBLApUP6VxRihdfNTqu4ubqMlGDLd6ErXhEgsyvY0K6nCs7nggYumAN+9uEuQ==", + "license": "MIT" + }, "node_modules/de-indent": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", @@ -2732,13 +2749,13 @@ } }, "node_modules/is-core-module": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", - "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz", + "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==", "license": "MIT", "peer": true, "dependencies": { - "hasown": "^2.0.2" + "hasown": "^2.0.3" }, "engines": { "node": ">= 0.4" @@ -2857,6 +2874,15 @@ "json-buffer": "3.0.1" } }, + "node_modules/launder": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/launder/-/launder-1.7.1.tgz", + "integrity": "sha512-mU6WRz5EusL9ZZuiZ5SO4Y6C0P9PAUR9iwdb6bzj4KDihm28DiHFw+/yk9DBH4f+Pv1wuzQ4e2jV3oQ7mkIqvw==", + "license": "MIT", + "dependencies": { + "dayjs": "^1.11.7" + } + }, "node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -3039,9 +3065,9 @@ } }, "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", "funding": [ { "type": "github", @@ -3301,9 +3327,9 @@ } }, "node_modules/postcss": { - "version": "8.5.12", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.12.tgz", - "integrity": "sha512-W62t/Se6rA0Az3DfCL0AqJwXuKwBeYg6nOaIgzP+xZ7N5BFCI7DYi1qs6ygUYT6rvfi6t9k65UMLJC+PHZpDAA==", + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", "funding": [ { "type": "opencollective", @@ -3320,7 +3346,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.11", + "nanoid": "^3.3.12", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -3593,9 +3619,9 @@ } }, "node_modules/rollup": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.2.tgz", - "integrity": "sha512-J9qZyW++QK/09NyN/zeO0dG/1GdGfyp9lV8ajHnRVLfo/uFsbji5mHnDgn/qYdUHyCkM2N+8VyspgZclfAh0eQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.4.tgz", + "integrity": "sha512-WHeFSbZYsPu3+bLoNRUuAO+wavNlocOPf3wSHTP7hcFKVnJeWsYlCDbr3mTS14FCizf9ccIxXA8sGL8zKeQN3g==", "dev": true, "license": "MIT", "dependencies": { @@ -3609,31 +3635,31 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.60.2", - "@rollup/rollup-android-arm64": "4.60.2", - "@rollup/rollup-darwin-arm64": "4.60.2", - "@rollup/rollup-darwin-x64": "4.60.2", - "@rollup/rollup-freebsd-arm64": "4.60.2", - "@rollup/rollup-freebsd-x64": "4.60.2", - "@rollup/rollup-linux-arm-gnueabihf": "4.60.2", - "@rollup/rollup-linux-arm-musleabihf": "4.60.2", - "@rollup/rollup-linux-arm64-gnu": "4.60.2", - "@rollup/rollup-linux-arm64-musl": "4.60.2", - "@rollup/rollup-linux-loong64-gnu": "4.60.2", - "@rollup/rollup-linux-loong64-musl": "4.60.2", - "@rollup/rollup-linux-ppc64-gnu": "4.60.2", - "@rollup/rollup-linux-ppc64-musl": "4.60.2", - "@rollup/rollup-linux-riscv64-gnu": "4.60.2", - "@rollup/rollup-linux-riscv64-musl": "4.60.2", - "@rollup/rollup-linux-s390x-gnu": "4.60.2", - "@rollup/rollup-linux-x64-gnu": "4.60.2", - "@rollup/rollup-linux-x64-musl": "4.60.2", - "@rollup/rollup-openbsd-x64": "4.60.2", - "@rollup/rollup-openharmony-arm64": "4.60.2", - "@rollup/rollup-win32-arm64-msvc": "4.60.2", - "@rollup/rollup-win32-ia32-msvc": "4.60.2", - "@rollup/rollup-win32-x64-gnu": "4.60.2", - "@rollup/rollup-win32-x64-msvc": "4.60.2", + "@rollup/rollup-android-arm-eabi": "4.60.4", + "@rollup/rollup-android-arm64": "4.60.4", + "@rollup/rollup-darwin-arm64": "4.60.4", + "@rollup/rollup-darwin-x64": "4.60.4", + "@rollup/rollup-freebsd-arm64": "4.60.4", + "@rollup/rollup-freebsd-x64": "4.60.4", + "@rollup/rollup-linux-arm-gnueabihf": "4.60.4", + "@rollup/rollup-linux-arm-musleabihf": "4.60.4", + "@rollup/rollup-linux-arm64-gnu": "4.60.4", + "@rollup/rollup-linux-arm64-musl": "4.60.4", + "@rollup/rollup-linux-loong64-gnu": "4.60.4", + "@rollup/rollup-linux-loong64-musl": "4.60.4", + "@rollup/rollup-linux-ppc64-gnu": "4.60.4", + "@rollup/rollup-linux-ppc64-musl": "4.60.4", + "@rollup/rollup-linux-riscv64-gnu": "4.60.4", + "@rollup/rollup-linux-riscv64-musl": "4.60.4", + "@rollup/rollup-linux-s390x-gnu": "4.60.4", + "@rollup/rollup-linux-x64-gnu": "4.60.4", + "@rollup/rollup-linux-x64-musl": "4.60.4", + "@rollup/rollup-openbsd-x64": "4.60.4", + "@rollup/rollup-openharmony-arm64": "4.60.4", + "@rollup/rollup-win32-arm64-msvc": "4.60.4", + "@rollup/rollup-win32-ia32-msvc": "4.60.4", + "@rollup/rollup-win32-x64-gnu": "4.60.4", + "@rollup/rollup-win32-x64-msvc": "4.60.4", "fsevents": "~2.3.2" } }, @@ -3661,23 +3687,24 @@ } }, "node_modules/sanitize-html": { - "version": "2.17.3", - "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.17.3.tgz", - "integrity": "sha512-Kn4srCAo2+wZyvCNKCSyB2g8RQ8IkX/gQs2uqoSRNu5t9I2qvUyAVvRDiFUVAiX3N3PNuwStY0eNr+ooBHVWEg==", + "version": "2.17.4", + "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.17.4.tgz", + "integrity": "sha512-2HW7v2ol/uAM7sX4hbD8Z59OGWmAPrvjL8E71UWlBcj6m+kcF6ilQBLny+cIgY214QJeJT5tQuxKKqX0SQqjGQ==", "license": "MIT", "dependencies": { "deepmerge": "^4.2.2", "escape-string-regexp": "^4.0.0", "htmlparser2": "^10.1.0", "is-plain-object": "^5.0.0", + "launder": "^1.7.1", "parse-srcset": "^1.0.2", "postcss": "^8.3.11" } }, "node_modules/semver": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", - "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz", + "integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==", "dev": true, "license": "ISC", "bin": { @@ -4146,16 +4173,16 @@ "license": "MIT" }, "node_modules/vue": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.33.tgz", - "integrity": "sha512-1AgChhx5w3ALgT4oK3acm2Es/7jyZhWSVUfs3rOBlGQC0rjEDkS7G4lWlJJGGNQD+BV3reCwbQrOe1mPNwKHBQ==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.34.tgz", + "integrity": "sha512-WdLBG9gm02OgJIG9axd5Hpx0TFLdzVgfG2evFFu8Rur5O/IoGc5cMjnjh3tPL6GnRGsYvUhBSKVPYVcxRKpMCA==", "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.5.33", - "@vue/compiler-sfc": "3.5.33", - "@vue/runtime-dom": "3.5.33", - "@vue/server-renderer": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/compiler-dom": "3.5.34", + "@vue/compiler-sfc": "3.5.34", + "@vue/runtime-dom": "3.5.34", + "@vue/server-renderer": "3.5.34", + "@vue/shared": "3.5.34" }, "peerDependencies": { "typescript": "*" diff --git a/src/wc-content-kit/frontend/markdown/package.json b/src/wc-content-kit/frontend/markdown/package.json index fcd7350..62035dd 100644 --- a/src/wc-content-kit/frontend/markdown/package.json +++ b/src/wc-content-kit/frontend/markdown/package.json @@ -1,6 +1,6 @@ { "name": "@wippy/wc-markdown", - "version": "0.1.0", + "version": "0.1.2", "specification": "wippy-component-1.0", "title": "Markdown Viewer", "description": "Auto-registered Markdown renderer shipped by the wippy.wc-content-kit module. Tag: .", @@ -11,9 +11,9 @@ "package.json" ], "dependencies": { - "@wippy-fe/theme": "^0.0.26", - "@wippy-fe/webcomponent-core": "^0.0.26", - "@wippy-fe/webcomponent-vue": "^0.0.26", + "@wippy-fe/theme": "^0.0.32", + "@wippy-fe/webcomponent-core": "^0.0.32", + "@wippy-fe/webcomponent-vue": "^0.0.32", "markdown-it": "^14.1.0", "sanitize-html": "^2.14.0" }, @@ -23,7 +23,8 @@ "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^7.0.0", "@vitejs/plugin-vue": "^5.0.0", - "@wippy-fe/proxy": "^0.0.26", + "@wippy-fe/vite-plugin": "^0.0.32", + "@wippy-fe/proxy": "^0.0.32", "eslint": "^8.57.0", "eslint-plugin-vue": "^9.0.0", "typescript": "^5.0.0", @@ -33,7 +34,7 @@ "vue-tsc": "^2.0.0" }, "peerDependencies": { - "@wippy-fe/proxy": "^0.0.26", + "@wippy-fe/proxy": "^0.0.32", "vue": "^3.5.0" }, "wippy": { diff --git a/src/wc-content-kit/frontend/markdown/vite.config.ts b/src/wc-content-kit/frontend/markdown/vite.config.ts index b074d09..af9c75e 100644 --- a/src/wc-content-kit/frontend/markdown/vite.config.ts +++ b/src/wc-content-kit/frontend/markdown/vite.config.ts @@ -1,10 +1,12 @@ import { resolve } from 'node:path' import vue from '@vitejs/plugin-vue' +import { wippyComponentPlugin } from '@wippy-fe/vite-plugin' import { defineConfig } from 'vite' export default defineConfig({ plugins: [ vue(), + wippyComponentPlugin(), ], build: { target: 'esnext', diff --git a/src/wc-content-kit/frontend/mermaid/package-lock.json b/src/wc-content-kit/frontend/mermaid/package-lock.json index b796359..3236ac0 100644 --- a/src/wc-content-kit/frontend/mermaid/package-lock.json +++ b/src/wc-content-kit/frontend/mermaid/package-lock.json @@ -1,16 +1,16 @@ { "name": "@wippy/wc-mermaid", - "version": "0.1.0", + "version": "0.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@wippy/wc-mermaid", - "version": "0.1.0", + "version": "0.1.2", "dependencies": { - "@wippy-fe/theme": "^0.0.26", - "@wippy-fe/webcomponent-core": "^0.0.26", - "@wippy-fe/webcomponent-vue": "^0.0.26", + "@wippy-fe/theme": "^0.0.32", + "@wippy-fe/webcomponent-core": "^0.0.32", + "@wippy-fe/webcomponent-vue": "^0.0.32", "beautiful-mermaid": "latest", "mermaid": "^11" }, @@ -18,7 +18,8 @@ "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^7.0.0", "@vitejs/plugin-vue": "^5.0.0", - "@wippy-fe/proxy": "^0.0.26", + "@wippy-fe/proxy": "^0.0.32", + "@wippy-fe/vite-plugin": "^0.0.32", "eslint": "^8.57.0", "eslint-plugin-vue": "^9.0.0", "typescript": "^5.0.0", @@ -28,7 +29,7 @@ "vue-tsc": "^2.0.0" }, "peerDependencies": { - "@wippy-fe/proxy": "^0.0.26", + "@wippy-fe/proxy": "^0.0.32", "vue": "^3.5.0" } }, @@ -77,9 +78,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.29.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz", - "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==", + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz", + "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==", "license": "MIT", "dependencies": { "@babel/types": "^7.29.0" @@ -110,41 +111,10 @@ "integrity": "sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==", "license": "MIT" }, - "node_modules/@chevrotain/cst-dts-gen": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@chevrotain/cst-dts-gen/-/cst-dts-gen-12.0.0.tgz", - "integrity": "sha512-fSL4KXjTl7cDgf0B5Rip9Q05BOrYvkJV/RrBTE/bKDN096E4hN/ySpcBK5B24T76dlQ2i32Zc3PAE27jFnFrKg==", - "license": "Apache-2.0", - "dependencies": { - "@chevrotain/gast": "12.0.0", - "@chevrotain/types": "12.0.0" - } - }, - "node_modules/@chevrotain/gast": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@chevrotain/gast/-/gast-12.0.0.tgz", - "integrity": "sha512-1ne/m3XsIT8aEdrvT33so0GUC+wkctpUPK6zU9IlOyJLUbR0rg4G7ZiApiJbggpgPir9ERy3FRjT6T7lpgetnQ==", - "license": "Apache-2.0", - "dependencies": { - "@chevrotain/types": "12.0.0" - } - }, - "node_modules/@chevrotain/regexp-to-ast": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@chevrotain/regexp-to-ast/-/regexp-to-ast-12.0.0.tgz", - "integrity": "sha512-p+EW9MaJwgaHguhoqwOtx/FwuGr+DnNn857sXWOi/mClXIkPGl3rn7hGNWvo31HA3vyeQxjqe+H36yZJwYU8cA==", - "license": "Apache-2.0" - }, "node_modules/@chevrotain/types": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@chevrotain/types/-/types-12.0.0.tgz", - "integrity": "sha512-S+04vjFQKeuYw0/eW3U52LkAHQsB1ASxsPGsLPUyQgrZ2iNNibQrsidruDzjEX2JYfespXMG0eZmXlhA6z7nWA==", - "license": "Apache-2.0" - }, - "node_modules/@chevrotain/utils": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@chevrotain/utils/-/utils-12.0.0.tgz", - "integrity": "sha512-lB59uJoaGIfOOL9knQqQRfhl9g7x8/wqFkp13zTdkRu1huG9kg6IJs1O8hqj9rs6h7orGxHJUKb+mX3rPbWGhA==", + "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/@esbuild/aix-ppc64": { @@ -745,20 +715,20 @@ "license": "MIT" }, "node_modules/@iconify/utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-3.1.1.tgz", - "integrity": "sha512-MwzoDtw9rO1x+qfgLTV/IVXsHDBqeYZoMIQC8SfxfYSlaSUG+oWiAcoiB1yajAda6mqblm4/1/w2E8tRu7a7Tw==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-3.1.3.tgz", + "integrity": "sha512-LPKOXPn/zV+zis1oOfGWogaXVpqUybF3ZS6SCZIsz8vg0ivVp9+fVqyYB7xq0aiST/VhUQYGO1qo6uoYSiEJqw==", "license": "MIT", "dependencies": { "@antfu/install-pkg": "^1.1.0", "@iconify/types": "^2.0.0", - "mlly": "^1.8.2" + "import-meta-resolve": "^4.2.0" } }, "node_modules/@iconify/vue": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@iconify/vue/-/vue-5.0.0.tgz", - "integrity": "sha512-C+KuEWIF5nSBrobFJhT//JS87OZ++QDORB6f2q2Wm6fl2mueSTpFBeBsveK0KW9hWiZ4mNiPjsh6Zs4jjdROSg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@iconify/vue/-/vue-5.0.1.tgz", + "integrity": "sha512-aumwwooJlFJ5H5qYWB6ZTAyM0C8hpfcSVLB9/a3qnH1GGvIJ+FEbpEs4s/HfErYe/M5qZeLjwmESR5fFm3lXEw==", "license": "MIT", "peer": true, "dependencies": { @@ -768,7 +738,7 @@ "url": "https://github.com/sponsors/cyberalien" }, "peerDependencies": { - "vue": ">=3" + "vue": ">=3.0.0" } }, "node_modules/@jridgewell/gen-mapping": { @@ -810,12 +780,12 @@ } }, "node_modules/@mermaid-js/parser": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-1.1.0.tgz", - "integrity": "sha512-gxK9ZX2+Fex5zu8LhRQoMeMPEHbc73UKZ0FQ54YrQtUxE1VVhMwzeNtKRPAu5aXks4FasbMe4xB4bWrmq6Jlxw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-1.1.1.tgz", + "integrity": "sha512-VuHdsYMK1bT6X2JbcAaWAhugTRvRBRyuZgd+c22swUeI9g/ntaxF7CY7dYarhZovofCbUNO0G7JesfmNtjYOCw==", "license": "MIT", "dependencies": { - "langium": "^4.0.0" + "@chevrotain/types": "~11.1.1" } }, "node_modules/@nodelib/fs.scandir": { @@ -854,9 +824,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.2.tgz", - "integrity": "sha512-dnlp69efPPg6Uaw2dVqzWRfAWRnYVb1XJ8CyyhIbZeaq4CA5/mLeZ1IEt9QqQxmbdvagjLIm2ZL8BxXv5lH4Yw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.4.tgz", + "integrity": "sha512-F5QXMSiFebS9hKZj02XhWLLnRpJ3B3AROP0tWbFBSj+6kCbg5m9j5JoHKd4mmSVy5mS/IMQloYgYxCuJC0fxEQ==", "cpu": [ "arm" ], @@ -868,9 +838,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.2.tgz", - "integrity": "sha512-OqZTwDRDchGRHHm/hwLOL7uVPB9aUvI0am/eQuWMNyFHf5PSEQmyEeYYheA0EPPKUO/l0uigCp+iaTjoLjVoHg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.4.tgz", + "integrity": "sha512-GxxTKApUpzRhof7poWvCJHRF51C67u1R7D6DiluBE8wKU1u5GWE8t+v81JvJYtbawoBFX1hLv5Ei4eVjkWokaw==", "cpu": [ "arm64" ], @@ -882,9 +852,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.2.tgz", - "integrity": "sha512-UwRE7CGpvSVEQS8gUMBe1uADWjNnVgP3Iusyda1nSRwNDCsRjnGc7w6El6WLQsXmZTbLZx9cecegumcitNfpmA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.4.tgz", + "integrity": "sha512-tua0TaJxMOB1R0V0RS1jFZ/RpURFDJIOR2A6jWwQeawuFyS4gBW+rntLRaQd0EQ4bd6Vp44Z2rXW+YYDBsj6IA==", "cpu": [ "arm64" ], @@ -896,9 +866,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.2.tgz", - "integrity": "sha512-gjEtURKLCC5VXm1I+2i1u9OhxFsKAQJKTVB8WvDAHF+oZlq0GTVFOlTlO1q3AlCTE/DF32c16ESvfgqR7343/g==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.4.tgz", + "integrity": "sha512-CSKq7MsP+5PFIcydhAiR1K0UhEI1A2jWXVKHPCBZ151yOutENwvnPocgVHkivu2kviURtCEB6zUQw0vs8RrhMg==", "cpu": [ "x64" ], @@ -910,9 +880,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.2.tgz", - "integrity": "sha512-Bcl6CYDeAgE70cqZaMojOi/eK63h5Me97ZqAQoh77VPjMysA/4ORQBRGo3rRy45x4MzVlU9uZxs8Uwy7ZaKnBw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.4.tgz", + "integrity": "sha512-+O8OkVdyvXMtJEciu2wS/pzm1IxntEEQx3z5TAVy4l32G0etZn+RsA48ARRrFm6Ri8fvqPQfgrvNxSjKAbnd3g==", "cpu": [ "arm64" ], @@ -924,9 +894,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.2.tgz", - "integrity": "sha512-LU+TPda3mAE2QB0/Hp5VyeKJivpC6+tlOXd1VMoXV/YFMvk/MNk5iXeBfB4MQGRWyOYVJ01625vjkr0Az98OJQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.4.tgz", + "integrity": "sha512-Iw3oMskH3AfNuhU0MSN7vNbdi4me/NiYo2azqPz/Le16zHSa+3RRmliCMWWQmh4lcndccU40xcJuTYJZxNo/lw==", "cpu": [ "x64" ], @@ -938,9 +908,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.2.tgz", - "integrity": "sha512-2QxQrM+KQ7DAW4o22j+XZ6RKdxjLD7BOWTP0Bv0tmjdyhXSsr2Ul1oJDQqh9Zf5qOwTuTc7Ek83mOFaKnodPjg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.4.tgz", + "integrity": "sha512-EIPRXTVQpHyF8WOo219AD2yEltPehLTcTMz2fn6JsatLYSzQf00hj3rulF+yauOlF9/FtM2WpkT/hJh/KJFGhA==", "cpu": [ "arm" ], @@ -952,9 +922,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.2.tgz", - "integrity": "sha512-TbziEu2DVsTEOPif2mKWkMeDMLoYjx95oESa9fkQQK7r/Orta0gnkcDpzwufEcAO2BLBsD7mZkXGFqEdMRRwfw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.4.tgz", + "integrity": "sha512-J3Yh9PzzF1Ovah2At+lHiGQdsYgArxBbXv/zHfSyaiFQEqvNv7DcW98pCrmdjCZBrqBiKrKKe2V+aaSGWuBe/w==", "cpu": [ "arm" ], @@ -966,9 +936,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.2.tgz", - "integrity": "sha512-bO/rVDiDUuM2YfuCUwZ1t1cP+/yqjqz+Xf2VtkdppefuOFS2OSeAfgafaHNkFn0t02hEyXngZkxtGqXcXwO8Rg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.4.tgz", + "integrity": "sha512-BFDEZMYfUvLn37ONE1yMBojPxnMlTFsdyNoqncT0qFq1mAfllL+ATMMJd8TeuVMiX84s1KbcxcZbXInmcO2mRg==", "cpu": [ "arm64" ], @@ -980,9 +950,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.2.tgz", - "integrity": "sha512-hr26p7e93Rl0Za+JwW7EAnwAvKkehh12BU1Llm9Ykiibg4uIr2rbpxG9WCf56GuvidlTG9KiiQT/TXT1yAWxTA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.4.tgz", + "integrity": "sha512-pc9EYOSlOgdQ2uPl1o9PF6/kLSgaUosia7gOuS8mB69IxJvlclko1MECXysjs5ryez1/5zjYqx3+xYU0TU6R1A==", "cpu": [ "arm64" ], @@ -994,9 +964,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.2.tgz", - "integrity": "sha512-pOjB/uSIyDt+ow3k/RcLvUAOGpysT2phDn7TTUB3n75SlIgZzM6NKAqlErPhoFU+npgY3/n+2HYIQVbF70P9/A==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.4.tgz", + "integrity": "sha512-NxnomyxYerDh5n4iLrNa+sH+Z+U4BMEE46V2PgQ/hoB909i8gV1M5wPojWg9fk1jWpO3IQnOs20K4wyZuFLEFQ==", "cpu": [ "loong64" ], @@ -1008,9 +978,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.2.tgz", - "integrity": "sha512-2/w+q8jszv9Ww1c+6uJT3OwqhdmGP2/4T17cu8WuwyUuuaCDDJ2ojdyYwZzCxx0GcsZBhzi3HmH+J5pZNXnd+Q==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.4.tgz", + "integrity": "sha512-nbJnQ8a3z1mtmrwImCYhc6BGpThAyYVRQxw9uKSKG4wR6aAYno9sVjJ0zaZcW9BPJX1GbrDPf+SvdWjgTuDmnw==", "cpu": [ "loong64" ], @@ -1022,9 +992,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.2.tgz", - "integrity": "sha512-11+aL5vKheYgczxtPVVRhdptAM2H7fcDR5Gw4/bTcteuZBlH4oP9f5s9zYO9aGZvoGeBpqXI/9TZZihZ609wKw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.4.tgz", + "integrity": "sha512-2EU6acNrQLd8tYvo/LXW535wupT3m6fo7HKo6lr7ktQoItxTyOL1ZCR/GfGCuXl2vR+zmfI6eRXkSemafv+iVg==", "cpu": [ "ppc64" ], @@ -1036,9 +1006,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.2.tgz", - "integrity": "sha512-i16fokAGK46IVZuV8LIIwMdtqhin9hfYkCh8pf8iC3QU3LpwL+1FSFGej+O7l3E/AoknL6Dclh2oTdnRMpTzFQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.4.tgz", + "integrity": "sha512-WeBtoMuaMxiiIrO2IYP3xs6GMWkJP2C0EoT8beTLkUPmzV1i/UcOSVw1d5r9KBODtHKilG5yFxsGRnBbK3wJ4A==", "cpu": [ "ppc64" ], @@ -1050,9 +1020,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.2.tgz", - "integrity": "sha512-49FkKS6RGQoriDSK/6E2GkAsAuU5kETFCh7pG4yD/ylj9rKhTmO3elsnmBvRD4PgJPds5W2PkhC82aVwmUcJ7A==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.4.tgz", + "integrity": "sha512-FJHFfqpKUI3A10WrWKiFbBZ7yVbGT4q4B5o1qKFFojqpaYoh9LrQgqWCmmcxQzVSXYtyB5bzkXrYzlHTs21MYA==", "cpu": [ "riscv64" ], @@ -1064,9 +1034,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.2.tgz", - "integrity": "sha512-mjYNkHPfGpUR00DuM1ZZIgs64Hpf4bWcz9Z41+4Q+pgDx73UwWdAYyf6EG/lRFldmdHHzgrYyge5akFUW0D3mQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.4.tgz", + "integrity": "sha512-mcEl6CUT5IAUmQf1m9FYSmVqCJlpQ8r8eyftFUHG8i9OhY7BkBXSUdnLH5DOf0wCOjcP9v/QO93zpmF1SptCCw==", "cpu": [ "riscv64" ], @@ -1078,9 +1048,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.2.tgz", - "integrity": "sha512-ALyvJz965BQk8E9Al/JDKKDLH2kfKFLTGMlgkAbbYtZuJt9LU8DW3ZoDMCtQpXAltZxwBHevXz5u+gf0yA0YoA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.4.tgz", + "integrity": "sha512-ynt3JxVd2w2buzoKDWIyiV1pJW93xlQic1THVLXilz429oijRpSHivZAgp65KBu+cMcgf1eVVjdnTLvPxgCuoQ==", "cpu": [ "s390x" ], @@ -1092,9 +1062,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.2.tgz", - "integrity": "sha512-UQjrkIdWrKI626Du8lCQ6MJp/6V1LAo2bOK9OTu4mSn8GGXIkPXk/Vsp4bLHCd9Z9Iz2OTEaokUE90VweJgIYQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.4.tgz", + "integrity": "sha512-Boiz5+MsaROEWDf+GGEwF8VMHGhlUoQMtIPjOgA5fv4osupqTVnJteQNKJwUcnUog2G55jYXH7KZFFiJe0TEzQ==", "cpu": [ "x64" ], @@ -1106,9 +1076,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.2.tgz", - "integrity": "sha512-bTsRGj6VlSdn/XD4CGyzMnzaBs9bsRxy79eTqTCBsA8TMIEky7qg48aPkvJvFe1HyzQ5oMZdg7AnVlWQSKLTnw==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.4.tgz", + "integrity": "sha512-+qfSY27qIrFfI/Hom04KYFw3GKZSGU4lXus51wsb5EuySfFlWRwjkKWoE9emgRw/ukoT4Udsj4W/+xxG8VbPKg==", "cpu": [ "x64" ], @@ -1120,9 +1090,9 @@ ] }, "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.2.tgz", - "integrity": "sha512-6d4Z3534xitaA1FcMWP7mQPq5zGwBmGbhphh2DwaA1aNIXUu3KTOfwrWpbwI4/Gr0uANo7NTtaykFyO2hPuFLg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.4.tgz", + "integrity": "sha512-VpTfOPHgVXEBeeR8hZ2O0F3aSso+JDWqTWmTmzcQKted54IAdUVbxE+j/MVxUsKa8L20HJhv3vUezVPoquqWjA==", "cpu": [ "x64" ], @@ -1134,9 +1104,9 @@ ] }, "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.2.tgz", - "integrity": "sha512-NetAg5iO2uN7eB8zE5qrZ3CSil+7IJt4WDFLcC75Ymywq1VZVD6qJ6EvNLjZ3rEm6gB7XW5JdT60c6MN35Z85Q==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.4.tgz", + "integrity": "sha512-IPOsh5aRYuLv/nkU51X10Bf75Bsf6+gZdx1X+QP5QM6lIJFHHqbHLG0uJn/hWthzo13UAc2umiUorqZy3axoZg==", "cpu": [ "arm64" ], @@ -1148,9 +1118,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.2.tgz", - "integrity": "sha512-NCYhOotpgWZ5kdxCZsv6Iudx0wX8980Q/oW4pNFNihpBKsDbEA1zpkfxJGC0yugsUuyDZ7gL37dbzwhR0VI7pQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.4.tgz", + "integrity": "sha512-4QzE9E81OohJ/HKzHhsqU+zcYYojVOXlFMs1DdyMT6qXl/niOH7AVElmmEdUNHHS/oRkc++d5k6Vy85zFs0DEw==", "cpu": [ "arm64" ], @@ -1162,9 +1132,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.2.tgz", - "integrity": "sha512-RXsaOqXxfoUBQoOgvmmijVxJnW2IGB0eoMO7F8FAjaj0UTywUO/luSqimWBJn04WNgUkeNhh7fs7pESXajWmkg==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.4.tgz", + "integrity": "sha512-zTPgT1YuHHcd+Tmx7h8aml0FWFVelV5N54oHow9SLj+GfoDy/huQ+UV396N/C7KpMDMiPspRktzM1/0r1usYEA==", "cpu": [ "ia32" ], @@ -1176,9 +1146,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.2.tgz", - "integrity": "sha512-qdAzEULD+/hzObedtmV6iBpdL5TIbKVztGiK7O3/KYSf+HIzU257+MX1EXJcyIiDbMAqmbwaufcYPvyRryeZtA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.4.tgz", + "integrity": "sha512-DRS4G7mi9lJxqEDezIkKCaUIKCrLUUDCUaCsTPCi/rtqaC6D/jjwslMQyiDU50Ka0JKpeXeRBFBAXwArY52vBw==", "cpu": [ "x64" ], @@ -1190,9 +1160,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.2.tgz", - "integrity": "sha512-Nd/SgG27WoA9e+/TdK74KnHz852TLa94ovOYySo/yMPuTmpckK/jIF2jSwS3g7ELSKXK13/cVdmg1Z/DaCWKxA==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.4.tgz", + "integrity": "sha512-QVTUovf40zgTqlFVrKA1uXMVvU2QWEFWfAH8Wdc48IxLvrJMQVMBRjuQyUpzZCDkakImib9eVazbWlC6ksWtJw==", "cpu": [ "x64" ], @@ -1670,9 +1640,9 @@ } }, "node_modules/@ungap/structured-clone": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", - "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.1.tgz", + "integrity": "sha512-mUFwbeTqrVgDQxFveS+df2yfap6iuP20NAKAsBt5jDEoOTDew+zwLAOilHCeQJOVSvmgCX4ogqIrA0mnyr08yQ==", "dev": true, "license": "ISC" }, @@ -1730,53 +1700,53 @@ } }, "node_modules/@vue/compiler-core": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.33.tgz", - "integrity": "sha512-3PZLQwFw4Za3TC8t0FvTy3wI16Kt+pmwcgNZca4Pj9iWL2E72a/gZlpBtAJvEdDMdCxdG/qq0C7PN0bsJuv0Rw==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.34.tgz", + "integrity": "sha512-s9cLyK5mLcvZ4Agva5QgRsQyLKvts9WbU9DB6NqiZkkGEdwmcEiylj5Jbwkp680drF/NNCV8OlAJSe+yMLxaJw==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.2", - "@vue/shared": "3.5.33", + "@babel/parser": "^7.29.3", + "@vue/shared": "3.5.34", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "node_modules/@vue/compiler-dom": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.33.tgz", - "integrity": "sha512-PXq0yrfCLzzL07rbXO4awtXY1Z06LG2eu6Adg3RJFa/j3Cii217XxxLXG22N330gw7GmALCY0Z8RgXEviwgpjA==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.34.tgz", + "integrity": "sha512-EbF/T++k0e2MMZlJsBhzK8Sgwt0HcIPOhzn1CTB/lv6sQcyk+OWf8YeiLxZp3ro7MbbLcAfAJ6sEvjFWuNgUCw==", "license": "MIT", "dependencies": { - "@vue/compiler-core": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/compiler-core": "3.5.34", + "@vue/shared": "3.5.34" } }, "node_modules/@vue/compiler-sfc": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.33.tgz", - "integrity": "sha512-UTUvRO9cY+rROrx/pvN9P5Z7FgA6QGfokUCfhQE4EnmUj3rVnK+CHI0LsEO1pg+I7//iRYMUfcNcCPe7tg0CoA==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.34.tgz", + "integrity": "sha512-D/ihr6uZeIt6r+pVZf46RWT1fAsLFMbUP7k8G1VkiiWexriED9GrX3echHd4Abbt17zjlfiFJ8z7a3BxZOPNjg==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.2", - "@vue/compiler-core": "3.5.33", - "@vue/compiler-dom": "3.5.33", - "@vue/compiler-ssr": "3.5.33", - "@vue/shared": "3.5.33", + "@babel/parser": "^7.29.3", + "@vue/compiler-core": "3.5.34", + "@vue/compiler-dom": "3.5.34", + "@vue/compiler-ssr": "3.5.34", + "@vue/shared": "3.5.34", "estree-walker": "^2.0.2", "magic-string": "^0.30.21", - "postcss": "^8.5.10", + "postcss": "^8.5.14", "source-map-js": "^1.2.1" } }, "node_modules/@vue/compiler-ssr": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.33.tgz", - "integrity": "sha512-IErjYdnj1qIupG5xxiVIYiiRvDhGWV4zuh/RCrwfYpuL+HWQzeU6lCk/nF9r7olWMnjKxCAkOctT2qFWFkzb1A==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.34.tgz", + "integrity": "sha512-cDtTHKibkThKGHH1SP+WdccquNRYQDFH6rRjQCqT9G2ltFAfoR5pUftpab/z+aM5mW9HLLVQW7hfKKQe/1GBeQ==", "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/compiler-dom": "3.5.34", + "@vue/shared": "3.5.34" } }, "node_modules/@vue/compiler-vue2": { @@ -1823,72 +1793,72 @@ } }, "node_modules/@vue/reactivity": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.33.tgz", - "integrity": "sha512-p8UfIqyIhb0rYGlSgSBV+lPhF2iUSBcRy7enhTmPqKWadHy9kcOFYF1AejYBP9P+avnd3OBbD49DU4pLWX/94A==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.34.tgz", + "integrity": "sha512-y9XDjCEuBp+98k+UL5dbYkh57AHU4o6cxZedOPXw3bmrZZYLQsVHguGurq7hVrPCSrQtrnz1f9dssyFr+dMXfQ==", "license": "MIT", "dependencies": { - "@vue/shared": "3.5.33" + "@vue/shared": "3.5.34" } }, "node_modules/@vue/runtime-core": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.33.tgz", - "integrity": "sha512-UpFF45RI9//a7rvq7RdOQblb4tup7hHG9QsmIrxkFQLzQ7R8/iNQ5LE15NhLZ1/WcHMU2b47u6P33CPUelHyIQ==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.34.tgz", + "integrity": "sha512-mKeBYvu8tcMSLhypAHBmriUFfWXKTCF/23Z4jiCoYK3UtWepkliViNLuR90V9XOyD62mUxs9p1jsrpK3CCGIzw==", "license": "MIT", "dependencies": { - "@vue/reactivity": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/reactivity": "3.5.34", + "@vue/shared": "3.5.34" } }, "node_modules/@vue/runtime-dom": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.33.tgz", - "integrity": "sha512-IOxMsAOwquhfITgmOgaPYl7/j8gKUxUFoflRc+u4LxyD3+783xne8vNta1PONVCvCV9A0w7hkyEepINDqfO0tw==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.34.tgz", + "integrity": "sha512-e8kZzERmCwUnBRVsgSQlAfrfU2rGoy0FFKPBXSlfEjc/O3KfA7QP0t1/2ZylrbchjmIKB4dPTd07A6WPr0eOrg==", "license": "MIT", "dependencies": { - "@vue/reactivity": "3.5.33", - "@vue/runtime-core": "3.5.33", - "@vue/shared": "3.5.33", + "@vue/reactivity": "3.5.34", + "@vue/runtime-core": "3.5.34", + "@vue/shared": "3.5.34", "csstype": "^3.2.3" } }, "node_modules/@vue/server-renderer": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.33.tgz", - "integrity": "sha512-0xylq/8/h44lVG0pZFknv1XIdEgymq2E9n59uTWJBG+dIgiT0TMCSsxrN7nO16Z0MU0MPjFcguBbZV8Itk52Hw==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.34.tgz", + "integrity": "sha512-nHxmJoTrKsmrkbILRhkC9gY1G3moZbJTqCzDd7DOOzG5KH9oeJ0Unqrff5f9v0pW//jES05ZkJcNtfE8JjOIew==", "license": "MIT", "dependencies": { - "@vue/compiler-ssr": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/compiler-ssr": "3.5.34", + "@vue/shared": "3.5.34" }, "peerDependencies": { - "vue": "3.5.33" + "vue": "3.5.34" } }, "node_modules/@vue/shared": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.33.tgz", - "integrity": "sha512-5vR2QIlmaLG77Ygd4pMP6+SGQ5yox9VhtnbDWTy9DzMzdmeLxZ1QqxrywEZ9sa1AVubfIJyaCG3ytyWU81ufcQ==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.34.tgz", + "integrity": "sha512-24uqU4OIiX29ryC3MeWid/Xf2fa2EFRUVLb77nRhk+UrTVrh/XiGtFAFmJBAtBRbjwNdsPRP+jj/OL27Eg1NDA==", "license": "MIT" }, "node_modules/@wippy-fe/proxy": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/proxy/-/proxy-0.0.26.tgz", - "integrity": "sha512-HIamOJ4bWVwo7Mi0rDAZW5dtWEJSJzrpXbAPqvsUtiiYLE4a5lq40Yxd8Vtzu3jx7S7u1n2VdVfXMCEwOlbnQQ==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/proxy/-/proxy-0.0.32.tgz", + "integrity": "sha512-1mDUbWGdRC0A4EanqK+N2PG1SFEzI9D3QV15PVy8nerPGDwPIRTcNe6MXWvcKcGSVzdiX6Dryki5dUw8+FeYOQ==", "license": "UNLICENSED" }, "node_modules/@wippy-fe/shared": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/shared/-/shared-0.0.26.tgz", - "integrity": "sha512-nDFQnfW3enp6mEsQqPQR/Ugg/ErZidpqKadlNFa1uMCZ1PbAjqbadgo0b9d7aPDpV/Orj3vkcvz5/97CYnBCcg==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/shared/-/shared-0.0.32.tgz", + "integrity": "sha512-dgmqsHOptkgJXLV2RxIeVFTxOdPx55QkuKw6nmn4tQUdFKw4bksOIpBT8WrPowgrLbfYpekhKK9UbCfgYGE1BA==", "license": "UNLICENSED", "peer": true }, "node_modules/@wippy-fe/theme": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/theme/-/theme-0.0.26.tgz", - "integrity": "sha512-SXAT7o3ZyuSGSwsoFZbnwxTNAsQhZvStP+jwHjFsJmeELbuWXPAikm3+jXnBH9KhMG7ejOSwSpeeSc0r5M8zqA==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/theme/-/theme-0.0.32.tgz", + "integrity": "sha512-XqPfEYGh8qWIVnFGgex4kLfjmj9AZ8Z74W6ukkI59nMr72WmKOPXqX/TgobRh+f/xm+kMauCPCzAF2omXU0F+w==", "license": "UNLICENSED", "dependencies": { "tailwind-scrollbar": "^3.0.0", @@ -1903,29 +1873,39 @@ } } }, + "node_modules/@wippy-fe/vite-plugin": { + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/vite-plugin/-/vite-plugin-0.0.32.tgz", + "integrity": "sha512-moIZO9eWHlOatPozNaQU2xUMyMFqNApN82k7t7ju2F86ujVCCZTJr/5XNE7MgvTUuGk9RPp3yvQFonGojqMqow==", + "dev": true, + "license": "UNLICENSED", + "peerDependencies": { + "vite": "^5 || ^6 || ^7" + } + }, "node_modules/@wippy-fe/webcomponent-core": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/webcomponent-core/-/webcomponent-core-0.0.26.tgz", - "integrity": "sha512-4pPR0MP9MbmjeqdRPv1XjDWdLy9h8vUuih/0L3AyPlrqq2ZZSbrwZLt9ABHULqy6S670QeL0H3Fy4fBU4fp5xA==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/webcomponent-core/-/webcomponent-core-0.0.32.tgz", + "integrity": "sha512-k9wmkZQWAzckQjrgF0wb9YTZsOAFzuOtzeR/l+Aqp2PNZxj1oa+eGD4qcp9MWoai/fDaMzGbO8NAzCDxrRr6TA==", "license": "UNLICENSED", "peerDependencies": { "@iconify/vue": "^5.0.0", - "@wippy-fe/proxy": "0.0.26", - "@wippy-fe/shared": "0.0.26" + "@wippy-fe/proxy": "0.0.32", + "@wippy-fe/shared": "0.0.32" } }, "node_modules/@wippy-fe/webcomponent-vue": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@wippy-fe/webcomponent-vue/-/webcomponent-vue-0.0.26.tgz", - "integrity": "sha512-DQ4JmDzEtEmDHA1ZHMetC6+r5V6GZ+PQ7kUQI2cFf1kcuv/raNmEjC+wvQ8uoN7GhL5NKPfcF50whJDj9BCiCg==", + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@wippy-fe/webcomponent-vue/-/webcomponent-vue-0.0.32.tgz", + "integrity": "sha512-ZrqQB5XVa0EzxOk3YK1Vg/VIj6xVW1UUEZV3SA/2qkC9CYyOexERJWEKSq+ie+HAcVubhlQbhUaCYpE9x1onEQ==", "license": "UNLICENSED", "dependencies": { - "@wippy-fe/webcomponent-core": "0.0.26" + "@wippy-fe/webcomponent-core": "0.0.32" }, "peerDependencies": { "@iconify/vue": "^5.0.0", - "@wippy-fe/proxy": "0.0.26", - "@wippy-fe/shared": "0.0.26", + "@wippy-fe/proxy": "0.0.32", + "@wippy-fe/shared": "0.0.32", "pinia": "^2.1.0", "vue": "^3.5.0" } @@ -1934,6 +1914,7 @@ "version": "8.16.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "dev": true, "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -2143,34 +2124,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/chevrotain": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-12.0.0.tgz", - "integrity": "sha512-csJvb+6kEiQaqo1woTdSAuOWdN0WTLIydkKrBnS+V5gZz0oqBrp4kQ35519QgK6TpBThiG3V1vNSHlIkv4AglQ==", - "license": "Apache-2.0", - "dependencies": { - "@chevrotain/cst-dts-gen": "12.0.0", - "@chevrotain/gast": "12.0.0", - "@chevrotain/regexp-to-ast": "12.0.0", - "@chevrotain/types": "12.0.0", - "@chevrotain/utils": "12.0.0" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/chevrotain-allstar": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/chevrotain-allstar/-/chevrotain-allstar-0.4.2.tgz", - "integrity": "sha512-J3WoNdejJDlmUR0XXgmJK2GnCYKp2eWHnaG1fGkvnBVQw9Y6piP4Q30ETz47bfvPTeaN/DV0V5jqLDgX4PCygg==", - "license": "MIT", - "dependencies": { - "lodash-es": "^4.18.1" - }, - "peerDependencies": { - "chevrotain": "^12.0.0" - } - }, "node_modules/chokidar": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", @@ -2245,12 +2198,6 @@ "dev": true, "license": "MIT" }, - "node_modules/confbox": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", - "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", - "license": "MIT" - }, "node_modules/cose-base": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-1.0.3.tgz", @@ -2294,9 +2241,9 @@ "license": "MIT" }, "node_modules/cytoscape": { - "version": "3.33.3", - "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.33.3.tgz", - "integrity": "sha512-Gej7U+OKR+LZ8kvX7rb2HhCYJ0IhvEFsnkud4SB1PR+BUY/TsSO0dmOW59WEVLu51b1Rm+gQRKoz4bLYxGSZ2g==", + "version": "3.33.4", + "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.33.4.tgz", + "integrity": "sha512-HIN5Pmd9MrX9BkV7tDwnOcEJCSFvCpc8X97h3f508J6I5FsqAY65wKOCvgH2CuP42CaahWaz4tuh32SOOIH7ww==", "license": "MIT", "engines": { "node": ">=0.10" @@ -2880,9 +2827,9 @@ } }, "node_modules/dompurify": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.1.tgz", - "integrity": "sha512-JahakDAIg1gyOm7dlgWSDjV4n7Ip2PKR55NIT6jrMfIgLFgWo81vdr1/QGqWtFNRqXP9UV71oVePtjqS2ebnPw==", + "version": "3.4.5", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.5.tgz", + "integrity": "sha512-OrwIBKsdNSVEeubdJ1HBv/wNENRM9ytAVCv7YXt//A3vPdVMNuACRqK9mXCGCBW2ln7BT/A4X0jXHo2Gu89miA==", "license": "(MPL-2.0 OR Apache-2.0)", "optionalDependencies": { "@types/trusted-types": "^2.0.7" @@ -2916,6 +2863,16 @@ "node": ">= 0.4" } }, + "node_modules/es-toolkit": { + "version": "1.46.1", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.46.1.tgz", + "integrity": "sha512-5eNtXOs3tbfxXOj04tjjseeWkRWaoCjdEI+96DgwzZoe6c9juL49pXlzAFTI72aWC9Y8p7168g6XIKjh7k6pyQ==", + "license": "MIT", + "workspaces": [ + "docs", + "benchmarks" + ] + }, "node_modules/esbuild": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", @@ -3508,6 +3465,16 @@ "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", @@ -3560,13 +3527,13 @@ } }, "node_modules/is-core-module": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", - "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz", + "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==", "license": "MIT", "peer": true, "dependencies": { - "hasown": "^2.0.2" + "hasown": "^2.0.3" }, "engines": { "node": ">= 0.4" @@ -3667,9 +3634,9 @@ "license": "MIT" }, "node_modules/katex": { - "version": "0.16.45", - "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.45.tgz", - "integrity": "sha512-pQpZbdBu7wCTmQUh7ufPmLr0pFoObnGUoL/yhtwJDgmmQpbkg/0HSVti25Fu4rmd1oCR6NGWe9vqTWuWv3GcNA==", + "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" @@ -3706,24 +3673,6 @@ "resolved": "https://registry.npmjs.org/khroma/-/khroma-2.1.0.tgz", "integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==" }, - "node_modules/langium": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/langium/-/langium-4.2.2.tgz", - "integrity": "sha512-JUshTRAfHI4/MF9dH2WupvjSXyn8JBuUEWazB8ZVJUtXutT0doDlAv1XKbZ1Pb5sMexa8FF4CFBc0iiul7gbUQ==", - "license": "MIT", - "dependencies": { - "@chevrotain/regexp-to-ast": "~12.0.0", - "chevrotain": "~12.0.0", - "chevrotain-allstar": "~0.4.1", - "vscode-languageserver": "~9.0.1", - "vscode-languageserver-textdocument": "~1.0.11", - "vscode-uri": "~3.1.0" - }, - "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" - } - }, "node_modules/layout-base": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-1.0.2.tgz", @@ -3831,14 +3780,14 @@ } }, "node_modules/mermaid": { - "version": "11.14.0", - "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-11.14.0.tgz", - "integrity": "sha512-GSGloRsBs+JINmmhl0JDwjpuezCsHB4WGI4NASHxL3fHo3o/BRXTxhDLKnln8/Q0lRFRyDdEjmk1/d5Sn1Xz8g==", + "version": "11.15.0", + "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-11.15.0.tgz", + "integrity": "sha512-pTMbcf3rWdtLiYGpmoTjHEpeY8seiy6sR+9nD7LOs8KfUbHE4lOUAprTRqRAcWSQ6MQpdX+YEsxShtGsINtPtw==", "license": "MIT", "dependencies": { "@braintree/sanitize-url": "^7.1.1", "@iconify/utils": "^3.0.2", - "@mermaid-js/parser": "^1.1.0", + "@mermaid-js/parser": "^1.1.1", "@types/d3": "^7.4.3", "@upsetjs/venn.js": "^2.0.0", "cytoscape": "^3.33.1", @@ -3849,14 +3798,14 @@ "dagre-d3-es": "7.0.14", "dayjs": "^1.11.19", "dompurify": "^3.3.1", + "es-toolkit": "^1.45.1", "katex": "^0.16.25", "khroma": "^2.1.0", - "lodash-es": "^4.17.23", "marked": "^16.3.0", "roughjs": "^4.6.6", "stylis": "^4.3.6", "ts-dedent": "^2.2.0", - "uuid": "^11.1.0" + "uuid": "^11.1.0 || ^12 || ^13 || ^14.0.0" } }, "node_modules/micromatch": { @@ -3888,18 +3837,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/mlly": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz", - "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==", - "license": "MIT", - "dependencies": { - "acorn": "^8.16.0", - "pathe": "^2.0.3", - "pkg-types": "^1.3.1", - "ufo": "^1.6.3" - } - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -3927,9 +3864,9 @@ } }, "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", "funding": [ { "type": "github", @@ -4133,12 +4070,6 @@ "node": ">=8" } }, - "node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "license": "MIT" - }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -4200,17 +4131,6 @@ "node": ">= 6" } }, - "node_modules/pkg-types": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", - "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", - "license": "MIT", - "dependencies": { - "confbox": "^0.1.8", - "mlly": "^1.7.4", - "pathe": "^2.0.1" - } - }, "node_modules/points-on-curve": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/points-on-curve/-/points-on-curve-0.2.0.tgz", @@ -4228,9 +4148,9 @@ } }, "node_modules/postcss": { - "version": "8.5.12", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.12.tgz", - "integrity": "sha512-W62t/Se6rA0Az3DfCL0AqJwXuKwBeYg6nOaIgzP+xZ7N5BFCI7DYi1qs6ygUYT6rvfi6t9k65UMLJC+PHZpDAA==", + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", "funding": [ { "type": "opencollective", @@ -4247,7 +4167,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.11", + "nanoid": "^3.3.12", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -4517,9 +4437,9 @@ "license": "Unlicense" }, "node_modules/rollup": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.2.tgz", - "integrity": "sha512-J9qZyW++QK/09NyN/zeO0dG/1GdGfyp9lV8ajHnRVLfo/uFsbji5mHnDgn/qYdUHyCkM2N+8VyspgZclfAh0eQ==", + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.4.tgz", + "integrity": "sha512-WHeFSbZYsPu3+bLoNRUuAO+wavNlocOPf3wSHTP7hcFKVnJeWsYlCDbr3mTS14FCizf9ccIxXA8sGL8zKeQN3g==", "dev": true, "license": "MIT", "dependencies": { @@ -4533,31 +4453,31 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.60.2", - "@rollup/rollup-android-arm64": "4.60.2", - "@rollup/rollup-darwin-arm64": "4.60.2", - "@rollup/rollup-darwin-x64": "4.60.2", - "@rollup/rollup-freebsd-arm64": "4.60.2", - "@rollup/rollup-freebsd-x64": "4.60.2", - "@rollup/rollup-linux-arm-gnueabihf": "4.60.2", - "@rollup/rollup-linux-arm-musleabihf": "4.60.2", - "@rollup/rollup-linux-arm64-gnu": "4.60.2", - "@rollup/rollup-linux-arm64-musl": "4.60.2", - "@rollup/rollup-linux-loong64-gnu": "4.60.2", - "@rollup/rollup-linux-loong64-musl": "4.60.2", - "@rollup/rollup-linux-ppc64-gnu": "4.60.2", - "@rollup/rollup-linux-ppc64-musl": "4.60.2", - "@rollup/rollup-linux-riscv64-gnu": "4.60.2", - "@rollup/rollup-linux-riscv64-musl": "4.60.2", - "@rollup/rollup-linux-s390x-gnu": "4.60.2", - "@rollup/rollup-linux-x64-gnu": "4.60.2", - "@rollup/rollup-linux-x64-musl": "4.60.2", - "@rollup/rollup-openbsd-x64": "4.60.2", - "@rollup/rollup-openharmony-arm64": "4.60.2", - "@rollup/rollup-win32-arm64-msvc": "4.60.2", - "@rollup/rollup-win32-ia32-msvc": "4.60.2", - "@rollup/rollup-win32-x64-gnu": "4.60.2", - "@rollup/rollup-win32-x64-msvc": "4.60.2", + "@rollup/rollup-android-arm-eabi": "4.60.4", + "@rollup/rollup-android-arm64": "4.60.4", + "@rollup/rollup-darwin-arm64": "4.60.4", + "@rollup/rollup-darwin-x64": "4.60.4", + "@rollup/rollup-freebsd-arm64": "4.60.4", + "@rollup/rollup-freebsd-x64": "4.60.4", + "@rollup/rollup-linux-arm-gnueabihf": "4.60.4", + "@rollup/rollup-linux-arm-musleabihf": "4.60.4", + "@rollup/rollup-linux-arm64-gnu": "4.60.4", + "@rollup/rollup-linux-arm64-musl": "4.60.4", + "@rollup/rollup-linux-loong64-gnu": "4.60.4", + "@rollup/rollup-linux-loong64-musl": "4.60.4", + "@rollup/rollup-linux-ppc64-gnu": "4.60.4", + "@rollup/rollup-linux-ppc64-musl": "4.60.4", + "@rollup/rollup-linux-riscv64-gnu": "4.60.4", + "@rollup/rollup-linux-riscv64-musl": "4.60.4", + "@rollup/rollup-linux-s390x-gnu": "4.60.4", + "@rollup/rollup-linux-x64-gnu": "4.60.4", + "@rollup/rollup-linux-x64-musl": "4.60.4", + "@rollup/rollup-openbsd-x64": "4.60.4", + "@rollup/rollup-openharmony-arm64": "4.60.4", + "@rollup/rollup-win32-arm64-msvc": "4.60.4", + "@rollup/rollup-win32-ia32-msvc": "4.60.4", + "@rollup/rollup-win32-x64-gnu": "4.60.4", + "@rollup/rollup-win32-x64-msvc": "4.60.4", "fsevents": "~2.3.2" } }, @@ -4609,9 +4529,9 @@ "license": "MIT" }, "node_modules/semver": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", - "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz", + "integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==", "dev": true, "license": "ISC", "bin": { @@ -4978,12 +4898,6 @@ "node": ">=14.17" } }, - "node_modules/ufo": { - "version": "1.6.4", - "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz", - "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", - "license": "MIT" - }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", @@ -5001,16 +4915,16 @@ "license": "MIT" }, "node_modules/uuid": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.1.tgz", - "integrity": "sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.0.tgz", + "integrity": "sha512-Qo+uWgilfSmAhXCMav1uYFynlQO7fMFiMVZsQqZRMIXp0O7rR7qjkj+cPvBHLgBqi960QCoo/PH2/6ZtVqKvrg==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], "license": "MIT", "bin": { - "uuid": "dist/esm/bin/uuid" + "uuid": "dist-node/bin/uuid" } }, "node_modules/vite": { @@ -5119,66 +5033,24 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/vscode-jsonrpc": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz", - "integrity": "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==", - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/vscode-languageserver": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz", - "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==", - "license": "MIT", - "dependencies": { - "vscode-languageserver-protocol": "3.17.5" - }, - "bin": { - "installServerIntoExtension": "bin/installServerIntoExtension" - } - }, - "node_modules/vscode-languageserver-protocol": { - "version": "3.17.5", - "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz", - "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==", - "license": "MIT", - "dependencies": { - "vscode-jsonrpc": "8.2.0", - "vscode-languageserver-types": "3.17.5" - } - }, - "node_modules/vscode-languageserver-textdocument": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz", - "integrity": "sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==", - "license": "MIT" - }, - "node_modules/vscode-languageserver-types": { - "version": "3.17.5", - "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz", - "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==", - "license": "MIT" - }, "node_modules/vscode-uri": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.1.0.tgz", "integrity": "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==", + "dev": true, "license": "MIT" }, "node_modules/vue": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.33.tgz", - "integrity": "sha512-1AgChhx5w3ALgT4oK3acm2Es/7jyZhWSVUfs3rOBlGQC0rjEDkS7G4lWlJJGGNQD+BV3reCwbQrOe1mPNwKHBQ==", + "version": "3.5.34", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.34.tgz", + "integrity": "sha512-WdLBG9gm02OgJIG9axd5Hpx0TFLdzVgfG2evFFu8Rur5O/IoGc5cMjnjh3tPL6GnRGsYvUhBSKVPYVcxRKpMCA==", "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.5.33", - "@vue/compiler-sfc": "3.5.33", - "@vue/runtime-dom": "3.5.33", - "@vue/server-renderer": "3.5.33", - "@vue/shared": "3.5.33" + "@vue/compiler-dom": "3.5.34", + "@vue/compiler-sfc": "3.5.34", + "@vue/runtime-dom": "3.5.34", + "@vue/server-renderer": "3.5.34", + "@vue/shared": "3.5.34" }, "peerDependencies": { "typescript": "*" diff --git a/src/wc-content-kit/frontend/mermaid/package.json b/src/wc-content-kit/frontend/mermaid/package.json index c6eb99a..cb101c2 100644 --- a/src/wc-content-kit/frontend/mermaid/package.json +++ b/src/wc-content-kit/frontend/mermaid/package.json @@ -1,6 +1,6 @@ { "name": "@wippy/wc-mermaid", - "version": "0.1.0", + "version": "0.1.2", "specification": "wippy-component-1.0", "title": "Mermaid Diagram", "description": "Auto-registered Mermaid diagram renderer shipped by the wippy.wc-content-kit module. Tag: .", @@ -11,9 +11,9 @@ "package.json" ], "dependencies": { - "@wippy-fe/theme": "^0.0.26", - "@wippy-fe/webcomponent-core": "^0.0.26", - "@wippy-fe/webcomponent-vue": "^0.0.26", + "@wippy-fe/theme": "^0.0.32", + "@wippy-fe/webcomponent-core": "^0.0.32", + "@wippy-fe/webcomponent-vue": "^0.0.32", "beautiful-mermaid": "latest", "mermaid": "^11" }, @@ -21,7 +21,8 @@ "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^7.0.0", "@vitejs/plugin-vue": "^5.0.0", - "@wippy-fe/proxy": "^0.0.26", + "@wippy-fe/vite-plugin": "^0.0.32", + "@wippy-fe/proxy": "^0.0.32", "eslint": "^8.57.0", "eslint-plugin-vue": "^9.0.0", "typescript": "^5.0.0", @@ -31,7 +32,7 @@ "vue-tsc": "^2.0.0" }, "peerDependencies": { - "@wippy-fe/proxy": "^0.0.26", + "@wippy-fe/proxy": "^0.0.32", "vue": "^3.5.0" }, "wippy": { diff --git a/src/wc-content-kit/frontend/mermaid/vite.config.ts b/src/wc-content-kit/frontend/mermaid/vite.config.ts index 3402075..e7b7798 100644 --- a/src/wc-content-kit/frontend/mermaid/vite.config.ts +++ b/src/wc-content-kit/frontend/mermaid/vite.config.ts @@ -1,10 +1,12 @@ import { resolve } from 'node:path' import vue from '@vitejs/plugin-vue' +import { wippyComponentPlugin } from '@wippy-fe/vite-plugin' import { defineConfig } from 'vite' export default defineConfig({ plugins: [ vue(), + wippyComponentPlugin(), ], build: { target: 'esnext', diff --git a/src/wc-content-kit/public/chartjs/index.js b/src/wc-content-kit/public/chartjs/index.js index 98ab1b0..8ff3144 100644 --- a/src/wc-content-kit/public/chartjs/index.js +++ b/src/wc-content-kit/public/chartjs/index.js @@ -1,4 +1,4 @@ -import { inject as uo, ref as ie, createApp as fo, defineComponent as po, computed as Vi, onMounted as go, onUnmounted as mo, watch as bo, openBlock as qe, createElementBlock as Ge, toDisplayString as xo, createElementVNode as _o } from "vue"; +import { inject as uo, ref as ie, createApp as fo, defineComponent as po, computed as Ni, onMounted as go, onUnmounted as mo, watch as bo, openBlock as qe, createElementBlock as Ge, toDisplayString as xo, createElementVNode as _o } from "vue"; import { addCollection as yo } from "@iconify/vue"; import { hostCss as vo, loadCss as wo, addIcons as ko, define as Mo } from "@wippy-fe/proxy"; import { getActivePinia as So, createPinia as Co, setActivePinia as Po } from "pinia"; @@ -71,7 +71,7 @@ function Vo(i, t, e) { return { value: t }; } } -function Ni(i, t) { +function Je(i, t) { const e = {}, s = []; for (const [n, o] of Object.entries(t.properties)) { const r = i.getAttribute(n), a = Bo(n); @@ -84,9 +84,77 @@ function Ni(i, t) { } return { props: e, errors: s }; } -class No extends HTMLElement { +class No { + constructor(t, e) { + this._propsListeners = /* @__PURE__ */ new Set(), this._contentListeners = /* @__PURE__ */ new Set(), this._disposed = !1, this._props = t.props, this._errors = t.errors, this._content = t.content, this._emitToDom = e; + const s = this; + this.props = { + get value() { + return s._props; + }, + get errors() { + return s._errors; + }, + subscribe(n, o) { + return s._subscribeProps(n, o); + } + }, this.events = { + emit(n, o) { + s._disposed || s._emitToDom(n, o); + } + }, this.content = t.hasContent ? { + get value() { + return s._content; + }, + subscribe(n, o) { + return s._subscribeContent(n, o); + } + } : null; + } + /** @internal */ + notifyProps(t, e) { + if (!this._disposed) { + this._props = t, this._errors = e; + for (const s of this._propsListeners) + s(t, e); + } + } + /** @internal */ + notifyContent(t) { + if (!this._disposed) { + this._content = t; + for (const e of this._contentListeners) + e(t); + } + } + /** @internal */ + dispose() { + this._disposed || (this._disposed = !0, this._propsListeners.clear(), this._contentListeners.clear()); + } + _subscribeProps(t, e) { + if (this._disposed || e?.signal?.aborted) + return () => { + }; + this._propsListeners.add(t), e?.immediate && t(this._props, this._errors); + const s = () => { + this._propsListeners.delete(t), e?.signal?.removeEventListener("abort", s); + }; + return e?.signal?.addEventListener("abort", s, { once: !0 }), s; + } + _subscribeContent(t, e) { + if (this._disposed || e?.signal?.aborted) + return () => { + }; + this._contentListeners.add(t), e?.immediate && t(this._content); + const s = () => { + this._contentListeners.delete(t), e?.signal?.removeEventListener("abort", s); + }; + return e?.signal?.addEventListener("abort", s, { once: !0 }), s; + } +} +class Wo extends HTMLElement { constructor() { - super(), this._contentObserver = null, this._initialized = !1, this._container = null, this._internals = this.attachInternals(); + super(), this._contentObserver = null, this._initialized = !1, this._container = null, this._reactive = null, this._lastProps = null, this._lastErrors = [], this._lastContent = null, this._internals = this.attachInternals(); } /** * Override to provide the component's configuration. @@ -134,6 +202,45 @@ class No extends HTMLElement { detail: e })); } + /** + * Opt-in reactive adapter — framework-agnostic. Subscribe to prop + * changes, content changes, or emit typed events from a non-Vue + * consumer without re-rolling reactivity. + * + * ```ts + * class MyEl extends WippyElement<{ count: number }, { tick: { n: number } }> { + * protected onMount() { + * const ctrl = new AbortController() + * this.reactive.props.subscribe(({ count }) => { + * this.shadowRoot!.querySelector('.n')!.textContent = String(count) + * }, { signal: ctrl.signal, immediate: true }) + * } + * tick(n: number) { this.reactive.events.emit('tick', { n }) } + * } + * ``` + * + * Allocation cost is zero unless this getter is touched. Disposed on + * `disconnectedCallback`; a fresh adapter is allocated on the next + * access after reconnect. + */ + get reactive() { + if (!this._reactive) { + const t = this.constructor.wippyConfig, e = !!t.contentTemplate; + let s, n; + if (this._lastProps !== null) + s = this._lastProps, n = this._lastErrors; + else { + const r = Je(this, t.propsSchema); + t.validateProps && r.errors.push(...t.validateProps(r.props)), s = r.props, n = r.errors, this._lastProps = s, this._lastErrors = n; + } + const o = e ? this._lastContent ?? this._extractContent(t.contentTemplate) : null; + e && this._lastContent === null && (this._lastContent = o), this._reactive = new No( + { props: s, errors: n, content: o, hasContent: e }, + this.emitEvent.bind(this) + ); + } + return this._reactive; + } // ── Lifecycle ────────────────────────────────────────────── connectedCallback() { this._internals.states.add("loading"); @@ -147,13 +254,14 @@ class No extends HTMLElement { const c = t.containerClasses ?? []; c.length > 0 && n.classList.add(...c), s.appendChild(n), this._container = n, ko(yo); } - const { props: o, errors: r } = Ni(this, t.propsSchema); + const { props: o, errors: r } = Je(this, t.propsSchema); t.validateProps && r.push(...t.validateProps(o)); const a = o; + this._lastProps = a, this._lastErrors = r; let l = null; - t.contentTemplate && (l = this._extractContent(t.contentTemplate), this._contentObserver = new MutationObserver(() => { + t.contentTemplate && (l = this._extractContent(t.contentTemplate), this._lastContent = l, this._contentObserver = new MutationObserver(() => { const c = this._extractContent(t.contentTemplate); - this.onContentChanged(c); + this._lastContent = c, this._reactive?.notifyContent(c), this.onContentChanged(c); }), this._contentObserver.observe(this, { childList: !0, characterData: !0, @@ -167,13 +275,15 @@ class No extends HTMLElement { } } disconnectedCallback() { - this._contentObserver && (this._contentObserver.disconnect(), this._contentObserver = null), this.onUnmount(), this.emitEvent("unload"), this._internals.states.clear(), delete this.__wippyHost, delete this.__wippyHostBus; + this._contentObserver && (this._contentObserver.disconnect(), this._contentObserver = null), this.onUnmount(), this.emitEvent("unload"), this._internals.states.clear(), this._reactive?.dispose(), this._reactive = null, this._lastProps = null, this._lastErrors = [], this._lastContent = null, delete this.__wippyHost, delete this.__wippyHostBus; } attributeChangedCallback(t, e, s) { if (e === s) return; - const n = this.constructor.wippyConfig, { props: o, errors: r } = Ni(this, n.propsSchema); - n.validateProps && r.push(...n.validateProps(o)), this.onPropsChanged(o, r); + const n = this.constructor.wippyConfig, { props: o, errors: r } = Je(this, n.propsSchema); + n.validateProps && r.push(...n.validateProps(o)); + const a = o; + this._lastProps = a, this._lastErrors = r, this._reactive?.notifyProps(a, r), this.onPropsChanged(a, r); } // ── Hooks ────────────────────────────────────────────────── /** Called right after shadow DOM is attached, before CSS or container. */ @@ -200,15 +310,15 @@ class No extends HTMLElement { onContentChanged(t) { } } -function Wo(i) { +function Ho(i) { return i.__wippyHostBus ?? null; } -function Ho(i) { +function jo(i) { return i.dataset.wippyPanelId ?? null; } -class jo extends No { +class $o extends Wo { constructor() { - super(...arguments), this._vueApp = null, this._propsRef = ie({}), this._errorsRef = ie([]), this._contentRef = ie(null); + super(...arguments), this._vueApp = null, this._propsRef = ie({}), this._errorsRef = ie([]), this._contentRef = ie(null), this._bridgeAbort = null; } /** * Override to provide Vue-specific configuration. @@ -221,6 +331,13 @@ class jo extends No { this._propsRef.value = s, this._errorsRef.value = n, this._contentRef.value = o ?? null; for (const h of n) this.emitEvent("invalid", { message: h }); + this._bridgeAbort = new AbortController(), this.reactive.props.subscribe((h, d) => { + this._propsRef.value = h, this._errorsRef.value = [...d]; + for (const u of d) + this.emitEvent("invalid", { message: u }); + }, { signal: this._bridgeAbort.signal }), this.reactive.content && this.reactive.content.subscribe((h) => { + this._contentRef.value = h; + }, { signal: this._bridgeAbort.signal }); const l = So(); this._vueApp = fo(a.rootComponent); const c = Co(); @@ -230,18 +347,10 @@ class jo extends No { if (this._vueApp.use(c), a.plugins) for (const h of a.plugins) this._vueApp.use(h); - this._vueApp.provide(dn, this._propsRef), this._vueApp.provide(Ao, this._errorsRef), this._vueApp.provide(Do, this.emitEvent.bind(this)), this._vueApp.provide(Oo, this._contentRef), this._vueApp.provide(To, Ho(this)), this._vueApp.provide(Lo, Wo(this)), this._vueApp.provide(Ro, un(this)), a.providers && a.providers(this._vueApp, this), this._vueApp.mount(e), l && Po(l); + this._vueApp.provide(dn, this._propsRef), this._vueApp.provide(Ao, this._errorsRef), this._vueApp.provide(Do, this.emitEvent.bind(this)), this._vueApp.provide(Oo, this._contentRef), this._vueApp.provide(To, jo(this)), this._vueApp.provide(Lo, Ho(this)), this._vueApp.provide(Ro, un(this)), a.providers && a.providers(this._vueApp, this), this._vueApp.mount(e), l && Po(l); } onUnmount() { - this._vueApp && (this._vueApp.unmount(), this._vueApp = null); - } - onPropsChanged(t, e) { - this._propsRef.value = t, this._errorsRef.value = e; - for (const s of e) - this.emitEvent("invalid", { message: s }); - } - onContentChanged(t) { - this._contentRef.value = t; + this._bridgeAbort?.abort(), this._bridgeAbort = null, this._vueApp && (this._vueApp.unmount(), this._vueApp = null); } } /*! @@ -266,8 +375,8 @@ function ht(i) { function Wi(i) { return gt(pe(i * 100), 0, 100); } -const et = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, di = [..."0123456789ABCDEF"], $o = (i) => di[i & 15], Yo = (i) => di[(i & 240) >> 4] + di[i & 15], be = (i) => (i & 240) >> 4 === (i & 15), Uo = (i) => be(i.r) && be(i.g) && be(i.b) && be(i.a); -function Xo(i) { +const et = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, ui = [..."0123456789ABCDEF"], Yo = (i) => ui[i & 15], Uo = (i) => ui[(i & 240) >> 4] + ui[i & 15], be = (i) => (i & 240) >> 4 === (i & 15), Xo = (i) => be(i.r) && be(i.g) && be(i.b) && be(i.a); +function Ko(i) { var t = i.length, e; return i[0] === "#" && (t === 4 || t === 5 ? e = { r: 255 & et[i[1]] * 17, @@ -281,72 +390,72 @@ function Xo(i) { a: t === 9 ? et[i[7]] << 4 | et[i[8]] : 255 })), e; } -const Ko = (i, t) => i < 255 ? t(i) : ""; -function qo(i) { - var t = Uo(i) ? $o : Yo; - return i ? "#" + t(i.r) + t(i.g) + t(i.b) + Ko(i.a, t) : void 0; +const qo = (i, t) => i < 255 ? t(i) : ""; +function Go(i) { + var t = Xo(i) ? Yo : Uo; + return i ? "#" + t(i.r) + t(i.g) + t(i.b) + qo(i.a, t) : void 0; } -const Go = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/; +const Jo = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/; function fn(i, t, e) { const s = t * Math.min(e, 1 - e), n = (o, r = (o + i / 30) % 12) => e - s * Math.max(Math.min(r - 3, 9 - r, 1), -1); return [n(0), n(8), n(4)]; } -function Jo(i, t, e) { +function Zo(i, t, e) { const s = (n, o = (n + i / 60) % 6) => e - e * t * Math.max(Math.min(o, 4 - o, 1), 0); return [s(5), s(3), s(1)]; } -function Zo(i, t, e) { +function Qo(i, t, e) { const s = fn(i, 1, 0.5); let n; for (t + e > 1 && (n = 1 / (t + e), t *= n, e *= n), n = 0; n < 3; n++) s[n] *= 1 - t - e, s[n] += t; return s; } -function Qo(i, t, e, s, n) { +function tr(i, t, e, s, n) { return i === n ? (t - e) / s + (t < e ? 6 : 0) : t === n ? (e - i) / s + 2 : (i - t) / s + 4; } -function wi(i) { +function ki(i) { const e = i.r / 255, s = i.g / 255, n = i.b / 255, o = Math.max(e, s, n), r = Math.min(e, s, n), a = (o + r) / 2; let l, c, h; - return o !== r && (h = o - r, c = a > 0.5 ? h / (2 - o - r) : h / (o + r), l = Qo(e, s, n, h, o), l = l * 60 + 0.5), [l | 0, c || 0, a]; + return o !== r && (h = o - r, c = a > 0.5 ? h / (2 - o - r) : h / (o + r), l = tr(e, s, n, h, o), l = l * 60 + 0.5), [l | 0, c || 0, a]; } -function ki(i, t, e, s) { +function Mi(i, t, e, s) { return (Array.isArray(t) ? i(t[0], t[1], t[2]) : i(t, e, s)).map(_t); } -function Mi(i, t, e) { - return ki(fn, i, t, e); -} -function tr(i, t, e) { - return ki(Zo, i, t, e); +function Si(i, t, e) { + return Mi(fn, i, t, e); } function er(i, t, e) { - return ki(Jo, i, t, e); + return Mi(Qo, i, t, e); +} +function ir(i, t, e) { + return Mi(Zo, i, t, e); } function pn(i) { return (i % 360 + 360) % 360; } -function ir(i) { - const t = Go.exec(i); +function sr(i) { + const t = Jo.exec(i); let e = 255, s; if (!t) return; t[5] !== s && (e = t[6] ? Zt(+t[5]) : _t(+t[5])); const n = pn(+t[2]), o = +t[3] / 100, r = +t[4] / 100; - return t[1] === "hwb" ? s = tr(n, o, r) : t[1] === "hsv" ? s = er(n, o, r) : s = Mi(n, o, r), { + return t[1] === "hwb" ? s = er(n, o, r) : t[1] === "hsv" ? s = ir(n, o, r) : s = Si(n, o, r), { r: s[0], g: s[1], b: s[2], a: e }; } -function sr(i, t) { - var e = wi(i); - e[0] = pn(e[0] + t), e = Mi(e), i.r = e[0], i.g = e[1], i.b = e[2]; +function nr(i, t) { + var e = ki(i); + e[0] = pn(e[0] + t), e = Si(e), i.r = e[0], i.g = e[1], i.b = e[2]; } -function nr(i) { +function or(i) { if (!i) return; - const t = wi(i), e = t[0], s = Wi(t[1]), n = Wi(t[2]); + const t = ki(i), e = t[0], s = Wi(t[1]), n = Wi(t[2]); return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${ht(i.a)})` : `hsl(${e}, ${s}%, ${n}%)`; } const Hi = { @@ -527,7 +636,7 @@ const Hi = { Lw: "ffff00", LwgYF: "9acd32" }; -function or() { +function rr() { const i = {}, t = Object.keys(ji), e = Object.keys(Hi); let s, n, o, r, a; for (s = 0; s < t.length; s++) { @@ -538,8 +647,8 @@ function or() { return i; } let xe; -function rr(i) { - xe || (xe = or(), xe.transparent = [0, 0, 0, 0]); +function ar(i) { + xe || (xe = rr(), xe.transparent = [0, 0, 0, 0]); const t = xe[i.toLowerCase()]; return t && { r: t[0], @@ -548,9 +657,9 @@ function rr(i) { a: t.length === 4 ? t[3] : 255 }; } -const ar = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/; -function lr(i) { - const t = ar.exec(i); +const lr = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/; +function cr(i) { + const t = lr.exec(i); let e = 255, s, n, o; if (t) { if (t[7] !== s) { @@ -565,23 +674,23 @@ function lr(i) { }; } } -function cr(i) { +function hr(i) { return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${ht(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`); } -const Je = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, Vt = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4); -function hr(i, t, e) { +const Ze = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, Vt = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4); +function dr(i, t, e) { const s = Vt(ht(i.r)), n = Vt(ht(i.g)), o = Vt(ht(i.b)); return { - r: _t(Je(s + e * (Vt(ht(t.r)) - s))), - g: _t(Je(n + e * (Vt(ht(t.g)) - n))), - b: _t(Je(o + e * (Vt(ht(t.b)) - o))), + r: _t(Ze(s + e * (Vt(ht(t.r)) - s))), + g: _t(Ze(n + e * (Vt(ht(t.g)) - n))), + b: _t(Ze(o + e * (Vt(ht(t.b)) - o))), a: i.a + e * (t.a - i.a) }; } function _e(i, t, e) { if (i) { - let s = wi(i); - s[t] = Math.max(0, Math.min(s[t] + s[t] * e, t === 0 ? 360 : 1)), s = Mi(s), i.r = s[0], i.g = s[1], i.b = s[2]; + let s = ki(i); + s[t] = Math.max(0, Math.min(s[t] + s[t] * e, t === 0 ? 360 : 1)), s = Si(s), i.r = s[0], i.g = s[1], i.b = s[2]; } } function gn(i, t) { @@ -591,8 +700,8 @@ function $i(i) { var t = { r: 0, g: 0, b: 0, a: 255 }; return Array.isArray(i) ? i.length >= 3 && (t = { r: i[0], g: i[1], b: i[2], a: 255 }, i.length > 3 && (t.a = _t(i[3]))) : (t = gn(i, { r: 0, g: 0, b: 0, a: 1 }), t.a = _t(t.a)), t; } -function dr(i) { - return i.charAt(0) === "r" ? lr(i) : ir(i); +function ur(i) { + return i.charAt(0) === "r" ? cr(i) : sr(i); } class ae { constructor(t) { @@ -600,7 +709,7 @@ class ae { return t; const e = typeof t; let s; - e === "object" ? s = $i(t) : e === "string" && (s = Xo(t) || rr(t) || dr(t)), this._rgb = s, this._valid = !!s; + e === "object" ? s = $i(t) : e === "string" && (s = Ko(t) || ar(t) || ur(t)), this._rgb = s, this._valid = !!s; } get valid() { return this._valid; @@ -613,13 +722,13 @@ class ae { this._rgb = $i(t); } rgbString() { - return this._valid ? cr(this._rgb) : void 0; + return this._valid ? hr(this._rgb) : void 0; } hexString() { - return this._valid ? qo(this._rgb) : void 0; + return this._valid ? Go(this._rgb) : void 0; } hslString() { - return this._valid ? nr(this._rgb) : void 0; + return this._valid ? or(this._rgb) : void 0; } mix(t, e) { if (t) { @@ -631,7 +740,7 @@ class ae { return this; } interpolate(t, e) { - return t && (this._rgb = hr(this._rgb, t._rgb, e)), this; + return t && (this._rgb = dr(this._rgb, t._rgb, e)), this; } clone() { return new ae(this.rgb); @@ -668,7 +777,7 @@ class ae { return _e(this._rgb, 1, -t), this; } rotate(t) { - return sr(this._rgb, t), this; + return nr(this._rgb, t), this; } } /*! @@ -679,7 +788,7 @@ class ae { */ function at() { } -const ur = /* @__PURE__ */ (() => { +const fr = /* @__PURE__ */ (() => { let i = 0; return () => i++; })(); @@ -704,7 +813,7 @@ function tt(i, t) { function C(i, t) { return typeof i > "u" ? t : i; } -const fr = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 : +i / t, mn = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 * t : +i; +const pr = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 : +i / t, mn = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 * t : +i; function I(i, t, e) { if (i && typeof i.call == "function") return i.apply(e, t); @@ -746,7 +855,7 @@ function bn(i) { "constructor" ].indexOf(i) === -1; } -function pr(i, t, e, s) { +function gr(i, t, e, s) { if (!bn(i)) return; const n = t[i], o = e[i]; @@ -759,7 +868,7 @@ function le(i, t, e) { if (!O(i)) return i; e = e || {}; - const o = e.merger || pr; + const o = e.merger || gr; let r; for (let a = 0; a < n; ++a) { if (r = s[a], !O(r)) @@ -772,10 +881,10 @@ function le(i, t, e) { } function se(i, t) { return le(i, t, { - merger: gr + merger: mr }); } -function gr(i, t, e) { +function mr(i, t, e) { if (!bn(i)) return; const s = t[i], n = e[i]; @@ -788,15 +897,15 @@ const Yi = { x: (i) => i.x, y: (i) => i.y }; -function mr(i) { +function br(i) { const t = i.split("."), e = []; let s = ""; for (const n of t) s += n, s.endsWith("\\") ? s = s.slice(0, -1) + "." : (e.push(s), s = ""); return e; } -function br(i) { - const t = mr(i); +function xr(i) { + const t = br(i); return (e) => { for (const s of t) { if (s === "") @@ -807,9 +916,9 @@ function br(i) { }; } function yt(i, t) { - return (Yi[t] || (Yi[t] = br(t)))(i); + return (Yi[t] || (Yi[t] = xr(t)))(i); } -function Si(i) { +function Ci(i) { return i.charAt(0).toUpperCase() + i.slice(1); } const ce = (i) => typeof i < "u", vt = (i) => typeof i == "function", Ui = (i, t) => { @@ -820,10 +929,10 @@ const ce = (i) => typeof i < "u", vt = (i) => typeof i == "function", Ui = (i, t return !1; return !0; }; -function xr(i) { +function _r(i) { return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu"; } -const L = Math.PI, F = 2 * L, _r = F + L, Ie = Number.POSITIVE_INFINITY, yr = L / 180, H = L / 2, Ct = L / 4, Xi = L * 2 / 3, mt = Math.log10, rt = Math.sign; +const L = Math.PI, F = 2 * L, yr = F + L, Ie = Number.POSITIVE_INFINITY, vr = L / 180, H = L / 2, Ct = L / 4, Xi = L * 2 / 3, mt = Math.log10, rt = Math.sign; function ne(i, t, e) { return Math.abs(i - t) < e; } @@ -833,20 +942,20 @@ function Ki(i) { const e = Math.pow(10, Math.floor(mt(i))), s = i / e; return (s <= 1 ? 1 : s <= 2 ? 2 : s <= 5 ? 5 : 10) * e; } -function vr(i) { +function wr(i) { const t = [], e = Math.sqrt(i); let s; for (s = 1; s < e; s++) i % s === 0 && (t.push(s), t.push(i / s)); return e === (e | 0) && t.push(e), t.sort((n, o) => n - o).pop(), t; } -function wr(i) { +function kr(i) { return typeof i == "symbol" || typeof i == "object" && i !== null && !(Symbol.toPrimitive in i || "toString" in i || "valueOf" in i); } function Ht(i) { - return !wr(i) && !isNaN(parseFloat(i)) && isFinite(i); + return !kr(i) && !isNaN(parseFloat(i)) && isFinite(i); } -function kr(i, t) { +function Mr(i, t) { const e = Math.round(i); return e - t <= i && e + t >= i; } @@ -858,7 +967,7 @@ function xn(i, t, e) { function st(i) { return i * (L / 180); } -function Ci(i) { +function Pi(i) { return i * (180 / L); } function qi(i) { @@ -877,11 +986,11 @@ function _n(i, t) { distance: n }; } -function ui(i, t) { +function fi(i, t) { return Math.sqrt(Math.pow(t.x - i.x, 2) + Math.pow(t.y - i.y, 2)); } -function Mr(i, t) { - return (i - t + _r) % F - L; +function Sr(i, t) { + return (i - t + yr) % F - L; } function K(i) { return (i % F + F) % F; @@ -893,13 +1002,13 @@ function he(i, t, e, s) { function $(i, t, e) { return Math.max(t, Math.min(e, i)); } -function Sr(i) { +function Cr(i) { return $(i, -32768, 32767); } function dt(i, t, e, s = 1e-6) { return i >= Math.min(t, e) - s && i <= Math.max(t, e) + s; } -function Pi(i, t, e) { +function Di(i, t, e) { e = e || ((r) => i[r] < t); let s = i.length - 1, n = 0, o; for (; s - n > 1; ) @@ -909,11 +1018,11 @@ function Pi(i, t, e) { hi: s }; } -const ut = (i, t, e, s) => Pi(i, e, s ? (n) => { +const ut = (i, t, e, s) => Di(i, e, s ? (n) => { const o = i[n][t]; return o < e || o === e && i[n + 1][t] === e; -} : (n) => i[n][t] < e), Cr = (i, t, e) => Pi(i, e, (s) => i[s][t] >= e); -function Pr(i, t, e) { +} : (n) => i[n][t] < e), Pr = (i, t, e) => Di(i, e, (s) => i[s][t] >= e); +function Dr(i, t, e) { let s = 0, n = i.length; for (; s < n && i[s] < t; ) s++; @@ -928,7 +1037,7 @@ const yn = [ "splice", "unshift" ]; -function Dr(i, t) { +function Ar(i, t) { if (i._chartjs) { i._chartjs.listeners.push(t); return; @@ -942,7 +1051,7 @@ function Dr(i, t) { ] } }), yn.forEach((e) => { - const s = "_onData" + Si(e), n = i[e]; + const s = "_onData" + Ci(e), n = i[e]; Object.defineProperty(i, e, { configurable: !0, enumerable: !1, @@ -981,13 +1090,13 @@ function kn(i, t) { })); }; } -function Ar(i, t) { +function Or(i, t) { let e; return function(...s) { return t ? (clearTimeout(e), e = setTimeout(i, t, s)) : i.apply(this, s), t; }; } -const Di = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", X = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, Or = (i, t, e, s) => i === (s ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t; +const Ai = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", X = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, Tr = (i, t, e, s) => i === (s ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t; function Mn(i, t, e) { const s = t.length; let n = 0, o = s; @@ -1081,7 +1190,7 @@ const ye = (i) => i === 0 || i === 1, Ji = (i, t, e) => -(Math.pow(2, 10 * (i -= }, easeInOutBounce: (i) => i < 0.5 ? oe.easeInBounce(i * 2) * 0.5 : oe.easeOutBounce(i * 2 - 1) * 0.5 + 0.5 }; -function Ai(i) { +function Oi(i) { if (i && typeof i == "object") { const t = i.toString(); return t === "[object CanvasPattern]" || t === "[object CanvasGradient]"; @@ -1089,23 +1198,23 @@ function Ai(i) { return !1; } function Qi(i) { - return Ai(i) ? i : new ae(i); + return Oi(i) ? i : new ae(i); } -function Ze(i) { - return Ai(i) ? i : new ae(i).saturate(0.5).darken(0.1).hexString(); +function Qe(i) { + return Oi(i) ? i : new ae(i).saturate(0.5).darken(0.1).hexString(); } -const Tr = [ +const Lr = [ "x", "y", "borderWidth", "radius", "tension" -], Lr = [ +], Rr = [ "color", "borderColor", "backgroundColor" ]; -function Rr(i) { +function Er(i) { i.set("animation", { delay: void 0, duration: 1e3, @@ -1122,11 +1231,11 @@ function Rr(i) { }), i.set("animations", { colors: { type: "color", - properties: Lr + properties: Rr }, numbers: { type: "number", - properties: Tr + properties: Lr } }), i.describe("animations", { _fallback: "animation" @@ -1166,7 +1275,7 @@ function Rr(i) { } }); } -function Er(i) { +function Ir(i) { i.set("layout", { autoPadding: !0, padding: { @@ -1178,14 +1287,14 @@ function Er(i) { }); } const ts = /* @__PURE__ */ new Map(); -function Ir(i, t) { +function Fr(i, t) { t = t || {}; const e = i + JSON.stringify(t); let s = ts.get(e); return s || (s = new Intl.NumberFormat(i, t), ts.set(e, s)), s; } function ge(i, t, e) { - return Ir(t, e).format(i); + return Fr(t, e).format(i); } const Cn = { values(i) { @@ -1198,7 +1307,7 @@ const Cn = { let n, o = i; if (e.length > 1) { const c = Math.max(Math.abs(e[0].value), Math.abs(e[e.length - 1].value)); - (c < 1e-4 || c > 1e15) && (n = "scientific"), o = Fr(i, e); + (c < 1e-4 || c > 1e15) && (n = "scientific"), o = zr(i, e); } const r = mt(Math.abs(o)), a = isNaN(r) ? 1 : Math.max(Math.min(-1 * Math.floor(r), 20), 0), l = { notation: n, @@ -1221,14 +1330,14 @@ const Cn = { ].includes(s) || t > 0.8 * e.length ? Cn.numeric.call(this, i, t, e) : ""; } }; -function Fr(i, t) { +function zr(i, t) { let e = t.length > 3 ? t[2].value - t[1].value : t[1].value - t[0].value; return Math.abs(e) >= 1 && i !== Math.floor(i) && (e = i - Math.floor(i)), e; } var We = { formatters: Cn }; -function zr(i) { +function Br(i) { i.set("scale", { display: !0, offset: !1, @@ -1292,7 +1401,7 @@ function zr(i) { _indexable: (t) => t !== "backdropPadding" }); } -const Et = /* @__PURE__ */ Object.create(null), fi = /* @__PURE__ */ Object.create(null); +const Et = /* @__PURE__ */ Object.create(null), pi = /* @__PURE__ */ Object.create(null); function re(i, t) { if (!t) return i; @@ -1303,10 +1412,10 @@ function re(i, t) { } return i; } -function Qe(i, t, e) { +function ti(i, t, e) { return typeof t == "string" ? le(re(i, t), e) : le(re(i, ""), t); } -class Br { +class Vr { constructor(t, e) { this.animation = void 0, this.backgroundColor = "rgba(0,0,0,0.1)", this.borderColor = "rgba(0,0,0,0.1)", this.color = "#666", this.datasets = {}, this.devicePixelRatio = (s) => s.chart.platform.getDevicePixelRatio(), this.elements = {}, this.events = [ "mousemove", @@ -1320,23 +1429,23 @@ class Br { style: "normal", lineHeight: 1.2, weight: null - }, this.hover = {}, this.hoverBackgroundColor = (s, n) => Ze(n.backgroundColor), this.hoverBorderColor = (s, n) => Ze(n.borderColor), this.hoverColor = (s, n) => Ze(n.color), this.indexAxis = "x", this.interaction = { + }, this.hover = {}, this.hoverBackgroundColor = (s, n) => Qe(n.backgroundColor), this.hoverBorderColor = (s, n) => Qe(n.borderColor), this.hoverColor = (s, n) => Qe(n.color), this.indexAxis = "x", this.interaction = { mode: "nearest", intersect: !0, includeInvisible: !1 }, this.maintainAspectRatio = !0, this.onHover = null, this.onClick = null, this.parsing = !0, this.plugins = {}, this.responsive = !0, this.scale = void 0, this.scales = {}, this.showLine = !0, this.drawActiveElementsOnTop = !0, this.describe(t), this.apply(e); } set(t, e) { - return Qe(this, t, e); + return ti(this, t, e); } get(t) { return re(this, t); } describe(t, e) { - return Qe(fi, t, e); + return ti(pi, t, e); } override(t, e) { - return Qe(Et, t, e); + return ti(Et, t, e); } route(t, e, s, n) { const o = re(this, t), r = re(this, s), a = "_" + e; @@ -1361,7 +1470,7 @@ class Br { t.forEach((e) => e(this)); } } -var V = /* @__PURE__ */ new Br({ +var V = /* @__PURE__ */ new Vr({ _scriptable: (i) => !i.startsWith("on"), _indexable: (i) => i !== "events", hover: { @@ -1372,18 +1481,18 @@ var V = /* @__PURE__ */ new Br({ _indexable: !1 } }, [ - Rr, Er, - zr + Ir, + Br ]); -function Vr(i) { +function Nr(i) { return !i || A(i.size) || A(i.family) ? null : (i.style ? i.style + " " : "") + (i.weight ? i.weight + " " : "") + i.size + "px " + i.family; } function Fe(i, t, e, s, n) { let o = t[n]; return o || (o = t[n] = i.measureText(n).width, e.push(n)), o > s && (s = o), s; } -function Nr(i, t, e, s) { +function Wr(i, t, e, s) { s = s || {}; let n = s.data = s.data || {}, o = s.garbageCollect = s.garbageCollect || []; s.font !== t && (n = s.data = {}, o = s.garbageCollect = [], s.font = t), i.save(), i.font = t; @@ -1412,13 +1521,13 @@ function Pt(i, t, e) { function es(i, t) { !t && !i || (t = t || i.getContext("2d"), t.save(), t.resetTransform(), t.clearRect(0, 0, i.width, i.height), t.restore()); } -function pi(i, t, e, s) { +function gi(i, t, e, s) { Pn(i, t, e, s, null); } function Pn(i, t, e, s, n) { let o, r, a, l, c, h, d, u; const f = t.pointStyle, g = t.rotation, p = t.radius; - let m = (g || 0) * yr; + let m = (g || 0) * vr; if (f && typeof f == "object" && (o = f.toString(), o === "[object HTMLImageElement]" || o === "[object HTMLCanvasElement]")) { i.save(), i.translate(e, s), i.rotate(m), i.drawImage(f, -f.width / 2, -f.height / 2, f.width, f.height), i.restore(); return; @@ -1476,7 +1585,7 @@ function He(i, t) { function je(i) { i.restore(); } -function Wr(i, t, e, s, n) { +function Hr(i, t, e, s, n) { if (!t) return i.lineTo(e.x, e.y); if (n === "middle") { @@ -1485,21 +1594,21 @@ function Wr(i, t, e, s, n) { } else n === "after" != !!s ? i.lineTo(t.x, e.y) : i.lineTo(e.x, t.y); i.lineTo(e.x, e.y); } -function Hr(i, t, e, s) { +function jr(i, t, e, s) { if (!t) return i.lineTo(e.x, e.y); i.bezierCurveTo(s ? t.cp1x : t.cp2x, s ? t.cp1y : t.cp2y, s ? e.cp2x : e.cp1x, s ? e.cp2y : e.cp1y, e.x, e.y); } -function jr(i, t) { +function $r(i, t) { t.translation && i.translate(t.translation[0], t.translation[1]), A(t.rotation) || i.rotate(t.rotation), t.color && (i.fillStyle = t.color), t.textAlign && (i.textAlign = t.textAlign), t.textBaseline && (i.textBaseline = t.textBaseline); } -function $r(i, t, e, s, n) { +function Yr(i, t, e, s, n) { if (n.strikethrough || n.underline) { const o = i.measureText(s), r = t - o.actualBoundingBoxLeft, a = t + o.actualBoundingBoxRight, l = e - o.actualBoundingBoxAscent, c = e + o.actualBoundingBoxDescent, h = n.strikethrough ? (l + c) / 2 : c; i.strokeStyle = i.fillStyle, i.beginPath(), i.lineWidth = n.decorationWidth || 2, i.moveTo(r, h), i.lineTo(a, h), i.stroke(); } } -function Yr(i, t) { +function Ur(i, t) { const e = i.fillStyle; i.fillStyle = t.color, i.fillRect(t.left, t.top, t.width, t.height), i.fillStyle = e; } @@ -1508,17 +1617,17 @@ function It(i, t, e, s, n, o = {}) { t ], a = o.strokeWidth > 0 && o.strokeColor !== ""; let l, c; - for (i.save(), i.font = n.string, jr(i, o), l = 0; l < r.length; ++l) - c = r[l], o.backdrop && Yr(i, o.backdrop), a && (o.strokeColor && (i.strokeStyle = o.strokeColor), A(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(c, e, s, o.maxWidth)), i.fillText(c, e, s, o.maxWidth), $r(i, e, s, c, o), s += Number(n.lineHeight); + for (i.save(), i.font = n.string, $r(i, o), l = 0; l < r.length; ++l) + c = r[l], o.backdrop && Ur(i, o.backdrop), a && (o.strokeColor && (i.strokeStyle = o.strokeColor), A(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(c, e, s, o.maxWidth)), i.fillText(c, e, s, o.maxWidth), Yr(i, e, s, c, o), s += Number(n.lineHeight); i.restore(); } function de(i, t) { const { x: e, y: s, w: n, h: o, radius: r } = t; i.arc(e + r.topLeft, s + r.topLeft, r.topLeft, 1.5 * L, L, !0), i.lineTo(e, s + o - r.bottomLeft), i.arc(e + r.bottomLeft, s + o - r.bottomLeft, r.bottomLeft, L, H, !0), i.lineTo(e + n - r.bottomRight, s + o), i.arc(e + n - r.bottomRight, s + o - r.bottomRight, r.bottomRight, H, 0, !0), i.lineTo(e + n, s + r.topRight), i.arc(e + n - r.topRight, s + r.topRight, r.topRight, 0, -H, !0), i.lineTo(e + r.topLeft, s); } -const Ur = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, Xr = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/; -function Kr(i, t) { - const e = ("" + i).match(Ur); +const Xr = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, Kr = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/; +function qr(i, t) { + const e = ("" + i).match(Xr); if (!e || e[1] === "normal") return t * 1.2; switch (i = +e[2], e[3]) { @@ -1530,15 +1639,15 @@ function Kr(i, t) { } return t * i; } -const qr = (i) => +i || 0; -function Oi(i, t) { +const Gr = (i) => +i || 0; +function Ti(i, t) { const e = {}, s = O(t), n = s ? Object.keys(t) : t, o = O(i) ? s ? (r) => C(i[r], i[t[r]]) : (r) => i[r] : () => i; for (const r of n) - e[r] = qr(o(r)); + e[r] = Gr(o(r)); return e; } function Dn(i) { - return Oi(i, { + return Ti(i, { top: "y", right: "x", bottom: "y", @@ -1546,7 +1655,7 @@ function Dn(i) { }); } function Lt(i) { - return Oi(i, [ + return Ti(i, [ "topLeft", "topRight", "bottomLeft", @@ -1562,16 +1671,16 @@ function j(i, t) { let e = C(i.size, t.size); typeof e == "string" && (e = parseInt(e, 10)); let s = C(i.style, t.style); - s && !("" + s).match(Xr) && (console.warn('Invalid font style specified: "' + s + '"'), s = void 0); + s && !("" + s).match(Kr) && (console.warn('Invalid font style specified: "' + s + '"'), s = void 0); const n = { family: C(i.family, t.family), - lineHeight: Kr(C(i.lineHeight, t.lineHeight), e), + lineHeight: qr(C(i.lineHeight, t.lineHeight), e), size: e, style: s, weight: C(i.weight, t.weight), string: "" }; - return n.string = Vr(n), n; + return n.string = Nr(n), n; } function Qt(i, t, e, s) { let n, o, r; @@ -1579,7 +1688,7 @@ function Qt(i, t, e, s) { if (r = i[n], r !== void 0 && r !== void 0) return r; } -function Gr(i, t, e) { +function Jr(i, t, e) { const { min: s, max: n } = i, o = mn(t, (n - s) / 2), r = (a, l) => e && a === 0 ? 0 : a + l; return { min: r(s, -Math.abs(o)), @@ -1589,7 +1698,7 @@ function Gr(i, t, e) { function wt(i, t) { return Object.assign(Object.create(i), t); } -function Ti(i, t = [ +function Li(i, t = [ "" ], e, s, n = () => i[0]) { const o = e || i; @@ -1601,7 +1710,7 @@ function Ti(i, t = [ _rootScopes: o, _fallback: s, _getTarget: n, - override: (a) => Ti([ + override: (a) => Li([ a, ...i ], t, o, s) @@ -1617,7 +1726,7 @@ function Ti(i, t = [ * A trap for getting property values. */ get(a, l) { - return On(a, l, () => na(l, t, i, a)); + return On(a, l, () => oa(l, t, i, a)); }, /** * A trap for Object.getOwnPropertyDescriptor. @@ -1675,7 +1784,7 @@ function jt(i, t, e, s) { * A trap for getting property values. */ get(o, r, a) { - return On(o, r, () => Zr(o, r, a)); + return On(o, r, () => Qr(o, r, a)); }, /** * A trap for Object.getOwnPropertyDescriptor. @@ -1726,27 +1835,27 @@ function An(i, t = { isIndexable: vt(s) ? s : () => s }; } -const Jr = (i, t) => i ? i + Si(t) : t, Li = (i, t) => O(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object); +const Zr = (i, t) => i ? i + Ci(t) : t, Ri = (i, t) => O(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object); function On(i, t, e) { if (Object.prototype.hasOwnProperty.call(i, t) || t === "constructor") return i[t]; const s = e(); return i[t] = s, s; } -function Zr(i, t, e) { +function Qr(i, t, e) { const { _proxy: s, _context: n, _subProxy: o, _descriptors: r } = i; let a = s[t]; - return vt(a) && r.isScriptable(t) && (a = Qr(t, a, i, e)), B(a) && a.length && (a = ta(t, a, i, r.isIndexable)), Li(t, a) && (a = jt(a, n, o && o[t], r)), a; + return vt(a) && r.isScriptable(t) && (a = ta(t, a, i, e)), B(a) && a.length && (a = ea(t, a, i, r.isIndexable)), Ri(t, a) && (a = jt(a, n, o && o[t], r)), a; } -function Qr(i, t, e, s) { +function ta(i, t, e, s) { const { _proxy: n, _context: o, _subProxy: r, _stack: a } = e; if (a.has(i)) throw new Error("Recursion detected: " + Array.from(a).join("->") + "->" + i); a.add(i); let l = t(o, r || s); - return a.delete(i), Li(i, l) && (l = Ri(n._scopes, n, i, l)), l; + return a.delete(i), Ri(i, l) && (l = Ei(n._scopes, n, i, l)), l; } -function ta(i, t, e, s) { +function ea(i, t, e, s) { const { _proxy: n, _context: o, _subProxy: r, _descriptors: a } = e; if (typeof o.index < "u" && s(i)) return t[o.index % t.length]; @@ -1754,7 +1863,7 @@ function ta(i, t, e, s) { const l = t, c = n._scopes.filter((h) => h !== l); t = []; for (const h of l) { - const d = Ri(c, n, i, h); + const d = Ei(c, n, i, h); t.push(jt(d, o, r && r[i], a)); } } @@ -1763,10 +1872,10 @@ function ta(i, t, e, s) { function Tn(i, t, e) { return vt(i) ? i(t, e) : i; } -const ea = (i, t) => i === !0 ? t : typeof i == "string" ? yt(t, i) : void 0; -function ia(i, t, e, s, n) { +const ia = (i, t) => i === !0 ? t : typeof i == "string" ? yt(t, i) : void 0; +function sa(i, t, e, s, n) { for (const o of t) { - const r = ea(e, o); + const r = ia(e, o); if (r) { i.add(r); const a = Tn(r._fallback, e, n); @@ -1777,33 +1886,33 @@ function ia(i, t, e, s, n) { } return !1; } -function Ri(i, t, e, s) { +function Ei(i, t, e, s) { const n = t._rootScopes, o = Tn(t._fallback, e, s), r = [ ...i, ...n ], a = /* @__PURE__ */ new Set(); a.add(s); let l = is(a, r, e, o || e, s); - return l === null || typeof o < "u" && o !== e && (l = is(a, r, o, l, s), l === null) ? !1 : Ti(Array.from(a), [ + return l === null || typeof o < "u" && o !== e && (l = is(a, r, o, l, s), l === null) ? !1 : Li(Array.from(a), [ "" - ], n, o, () => sa(t, e, s)); + ], n, o, () => na(t, e, s)); } function is(i, t, e, s, n) { for (; e; ) - e = ia(i, t, e, s, n); + e = sa(i, t, e, s, n); return e; } -function sa(i, t, e) { +function na(i, t, e) { const s = i._getTarget(); t in s || (s[t] = {}); const n = s[t]; return B(n) && O(e) ? e : n || {}; } -function na(i, t, e, s) { +function oa(i, t, e, s) { let n; for (const o of t) - if (n = Ln(Jr(o, i), e), typeof n < "u") - return Li(i, n) ? Ri(e, s, i, n) : n; + if (n = Ln(Zr(o, i), e), typeof n < "u") + return Ri(i, n) ? Ei(e, s, i, n) : n; } function Ln(i, t) { for (const e of t) { @@ -1816,9 +1925,9 @@ function Ln(i, t) { } function ss(i) { let t = i._keys; - return t || (t = i._keys = oa(i._scopes)), t; + return t || (t = i._keys = ra(i._scopes)), t; } -function oa(i) { +function ra(i) { const t = /* @__PURE__ */ new Set(); for (const e of i) for (const s of Object.keys(e).filter((n) => !n.startsWith("_"))) @@ -1834,9 +1943,9 @@ function Rn(i, t, e, s) { }; return r; } -const ra = Number.EPSILON || 1e-14, $t = (i, t) => t < i.length && !i[t].skip && i[t], En = (i) => i === "x" ? "y" : "x"; -function aa(i, t, e, s) { - const n = i.skip ? t : i, o = t, r = e.skip ? t : e, a = ui(o, n), l = ui(r, o); +const aa = Number.EPSILON || 1e-14, $t = (i, t) => t < i.length && !i[t].skip && i[t], En = (i) => i === "x" ? "y" : "x"; +function la(i, t, e, s) { + const n = i.skip ? t : i, o = t, r = e.skip ? t : e, a = fi(o, n), l = fi(r, o); let c = a / (a + l), h = l / (a + l); c = isNaN(c) ? 0 : c, h = isNaN(h) ? 0 : h; const d = s * c, u = s * h; @@ -1851,19 +1960,19 @@ function aa(i, t, e, s) { } }; } -function la(i, t, e) { +function ca(i, t, e) { const s = i.length; let n, o, r, a, l, c = $t(i, 0); for (let h = 0; h < s - 1; ++h) if (l = c, c = $t(i, h + 1), !(!l || !c)) { - if (ne(t[h], 0, ra)) { + if (ne(t[h], 0, aa)) { e[h] = e[h + 1] = 0; continue; } n = e[h] / t[h], o = e[h + 1] / t[h], a = Math.pow(n, 2) + Math.pow(o, 2), !(a <= 9) && (r = 3 / Math.sqrt(a), e[h] = n * r * t[h], e[h + 1] = o * r * t[h]); } } -function ca(i, t, e = "x") { +function ha(i, t, e = "x") { const s = En(e), n = i.length; let o, r, a, l = $t(i, 0); for (let c = 0; c < n; ++c) { @@ -1873,7 +1982,7 @@ function ca(i, t, e = "x") { r && (o = (h - r[e]) / 3, a[`cp1${e}`] = h - o, a[`cp1${s}`] = d - o * t[c]), l && (o = (l[e] - h) / 3, a[`cp2${e}`] = h + o, a[`cp2${s}`] = d + o * t[c]); } } -function ha(i, t = "x") { +function da(i, t = "x") { const e = En(t), s = i.length, n = Array(s).fill(0), o = Array(s); let r, a, l, c = $t(i, 0); for (r = 0; r < s; ++r) @@ -1884,31 +1993,31 @@ function ha(i, t = "x") { } o[r] = a ? c ? rt(n[r - 1]) !== rt(n[r]) ? 0 : (n[r - 1] + n[r]) / 2 : n[r - 1] : n[r]; } - la(i, n, o), ca(i, o, t); + ca(i, n, o), ha(i, o, t); } function ve(i, t, e) { return Math.max(Math.min(i, e), t); } -function da(i, t) { +function ua(i, t) { let e, s, n, o, r, a = ft(i[0], t); for (e = 0, s = i.length; e < s; ++e) r = o, o = a, a = e < s - 1 && ft(i[e + 1], t), o && (n = i[e], r && (n.cp1x = ve(n.cp1x, t.left, t.right), n.cp1y = ve(n.cp1y, t.top, t.bottom)), a && (n.cp2x = ve(n.cp2x, t.left, t.right), n.cp2y = ve(n.cp2y, t.top, t.bottom))); } -function ua(i, t, e, s, n) { +function fa(i, t, e, s, n) { let o, r, a, l; if (t.spanGaps && (i = i.filter((c) => !c.skip)), t.cubicInterpolationMode === "monotone") - ha(i, n); + da(i, n); else { let c = s ? i[i.length - 1] : i[0]; for (o = 0, r = i.length; o < r; ++o) - a = i[o], l = aa(c, a, i[Math.min(o + 1, r - (s ? 0 : 1)) % r], t.tension), a.cp1x = l.previous.x, a.cp1y = l.previous.y, a.cp2x = l.next.x, a.cp2y = l.next.y, c = a; + a = i[o], l = la(c, a, i[Math.min(o + 1, r - (s ? 0 : 1)) % r], t.tension), a.cp1x = l.previous.x, a.cp1y = l.previous.y, a.cp2x = l.next.x, a.cp2y = l.next.y, c = a; } - t.capBezierPoints && da(i, e); + t.capBezierPoints && ua(i, e); } -function Ei() { +function Ii() { return typeof window < "u" && typeof document < "u"; } -function Ii(i) { +function Fi(i) { let t = i.parentNode; return t && t.toString() === "[object ShadowRoot]" && (t = t.host), t; } @@ -1917,10 +2026,10 @@ function ze(i, t, e) { return typeof i == "string" ? (s = parseInt(i, 10), i.indexOf("%") !== -1 && (s = s / 100 * t.parentNode[e])) : s = i, s; } const $e = (i) => i.ownerDocument.defaultView.getComputedStyle(i, null); -function fa(i, t) { +function pa(i, t) { return $e(i).getPropertyValue(t); } -const pa = [ +const ga = [ "top", "right", "bottom", @@ -1930,16 +2039,16 @@ function Rt(i, t, e) { const s = {}; e = e ? "-" + e : ""; for (let n = 0; n < 4; n++) { - const o = pa[n]; + const o = ga[n]; s[o] = parseFloat(i[t + "-" + o + e]) || 0; } return s.width = s.left + s.right, s.height = s.top + s.bottom, s; } -const ga = (i, t, e) => (i > 0 || t > 0) && (!e || !e.shadowRoot); -function ma(i, t) { +const ma = (i, t, e) => (i > 0 || t > 0) && (!e || !e.shadowRoot); +function ba(i, t) { const e = i.touches, s = e && e.length ? e[0] : i, { offsetX: n, offsetY: o } = s; let r = !1, a, l; - if (ga(n, o, i.target)) + if (ma(n, o, i.target)) a = n, l = o; else { const c = t.getBoundingClientRect(); @@ -1954,17 +2063,17 @@ function ma(i, t) { function Ot(i, t) { if ("native" in i) return i; - const { canvas: e, currentDevicePixelRatio: s } = t, n = $e(e), o = n.boxSizing === "border-box", r = Rt(n, "padding"), a = Rt(n, "border", "width"), { x: l, y: c, box: h } = ma(i, e), d = r.left + (h && a.left), u = r.top + (h && a.top); + const { canvas: e, currentDevicePixelRatio: s } = t, n = $e(e), o = n.boxSizing === "border-box", r = Rt(n, "padding"), a = Rt(n, "border", "width"), { x: l, y: c, box: h } = ba(i, e), d = r.left + (h && a.left), u = r.top + (h && a.top); let { width: f, height: g } = t; return o && (f -= r.width + a.width, g -= r.height + a.height), { x: Math.round((l - d) / f * e.width / s), y: Math.round((c - u) / g * e.height / s) }; } -function ba(i, t, e) { +function xa(i, t, e) { let s, n; if (t === void 0 || e === void 0) { - const o = i && Ii(i); + const o = i && Fi(i); if (!o) t = i.clientWidth, e = i.clientHeight; else { @@ -1980,8 +2089,8 @@ function ba(i, t, e) { }; } const bt = (i) => Math.round(i * 10) / 10; -function xa(i, t, e, s) { - const n = $e(i), o = Rt(n, "margin"), r = ze(n.maxWidth, i, "clientWidth") || Ie, a = ze(n.maxHeight, i, "clientHeight") || Ie, l = ba(i, t, e); +function _a(i, t, e, s) { + const n = $e(i), o = Rt(n, "margin"), r = ze(n.maxWidth, i, "clientWidth") || Ie, a = ze(n.maxHeight, i, "clientHeight") || Ie, l = xa(i, t, e); let { width: c, height: h } = l; if (n.boxSizing === "content-box") { const u = Rt(n, "border", "width"), f = Rt(n, "padding"); @@ -1998,7 +2107,7 @@ function ns(i, t, e) { const r = i.canvas; return r.style && (e || !r.style.height && !r.style.width) && (r.style.height = `${i.height}px`, r.style.width = `${i.width}px`), i.currentDevicePixelRatio !== s || r.height !== n || r.width !== o ? (i.currentDevicePixelRatio = s, r.height = n, r.width = o, i.ctx.setTransform(s, 0, 0, s, 0, 0), !0) : !1; } -const _a = (function() { +const ya = (function() { let i = !1; try { const t = { @@ -2006,13 +2115,13 @@ const _a = (function() { return i = !0, !1; } }; - Ei() && (window.addEventListener("test", null, t), window.removeEventListener("test", null, t)); + Ii() && (window.addEventListener("test", null, t), window.removeEventListener("test", null, t)); } catch { } return i; })(); function os(i, t) { - const e = fa(i, t), s = e && e.match(/^(\d+)(\.\d+)?px$/); + const e = pa(i, t), s = e && e.match(/^(\d+)(\.\d+)?px$/); return s ? +s[1] : void 0; } function Tt(i, t, e, s) { @@ -2021,13 +2130,13 @@ function Tt(i, t, e, s) { y: i.y + e * (t.y - i.y) }; } -function ya(i, t, e, s) { +function va(i, t, e, s) { return { x: i.x + e * (t.x - i.x), y: s === "middle" ? e < 0.5 ? i.y : t.y : s === "after" ? e < 1 ? i.y : t.y : e > 0 ? t.y : i.y }; } -function va(i, t, e, s) { +function wa(i, t, e, s) { const n = { x: i.cp2x, y: i.cp2y @@ -2037,7 +2146,7 @@ function va(i, t, e, s) { }, r = Tt(i, n, e), a = Tt(n, o, e), l = Tt(o, t, e), c = Tt(r, a, e), h = Tt(a, l, e); return Tt(c, h, e); } -const wa = function(i, t) { +const ka = function(i, t) { return { x(e) { return i + i + t - e; @@ -2055,7 +2164,7 @@ const wa = function(i, t) { return e - s; } }; -}, ka = function() { +}, Ma = function() { return { x(i) { return i; @@ -2074,7 +2183,7 @@ const wa = function(i, t) { }; }; function Wt(i, t, e) { - return i ? wa(t, e) : ka(); + return i ? ka(t, e) : Ma(); } function In(i, t) { let e, s; @@ -2089,7 +2198,7 @@ function Fn(i, t) { function zn(i) { return i === "angle" ? { between: he, - compare: Mr, + compare: Sr, normalize: K } : { between: dt, @@ -2105,7 +2214,7 @@ function rs({ start: i, end: t, count: e, loop: s, style: n }) { style: n }; } -function Ma(i, t, e) { +function Sa(i, t, e) { const { property: s, start: n, end: o } = e, { between: r, normalize: a } = zn(s), l = t.length; let { start: c, end: h, loop: d } = i, u, f; if (d) { @@ -2125,7 +2234,7 @@ function Bn(i, t, e) { return [ i ]; - const { property: s, start: n, end: o } = e, r = t.length, { compare: a, between: l, normalize: c } = zn(s), { start: h, end: d, loop: u, style: f } = Ma(i, t, e), g = []; + const { property: s, start: n, end: o } = e, r = t.length, { compare: a, between: l, normalize: c } = zn(s), { start: h, end: d, loop: u, style: f } = Sa(i, t, e), g = []; let p = !1, m = null, b, x, v; const y = () => l(n, v, b) && a(n, v) !== 0, _ = () => a(o, b) === 0 || l(o, v, b), w = () => p || y(), k = () => !p || _(); for (let M = h, S = h; M <= d; ++M) @@ -2152,7 +2261,7 @@ function Vn(i, t) { } return e; } -function Sa(i, t, e, s) { +function Ca(i, t, e, s) { let n = 0, o = t - 1; if (e && !s) for (; n < t && !i[n].skip; ) @@ -2166,7 +2275,7 @@ function Sa(i, t, e, s) { end: o }; } -function Ca(i, t, e, s) { +function Pa(i, t, e, s) { const n = i.length, o = []; let r = t, a = i[t], l; for (l = t + 1; l <= e; ++l) { @@ -2183,11 +2292,11 @@ function Ca(i, t, e, s) { loop: s }), o; } -function Pa(i, t) { +function Da(i, t) { const e = i.points, s = i.options.spanGaps, n = e.length; if (!n) return []; - const o = !!i._loop, { start: r, end: a } = Sa(e, n, o, s); + const o = !!i._loop, { start: r, end: a } = Ca(e, n, o, s); if (s === !0) return as(i, [ { @@ -2197,12 +2306,12 @@ function Pa(i, t) { } ], e, t); const l = a < r ? a + n : a, c = !!i._fullLoop && r === 0 && a === n - 1; - return as(i, Ca(e, r, l, c), e, t); + return as(i, Pa(e, r, l, c), e, t); } function as(i, t, e, s) { - return !s || !s.setContext || !e ? t : Da(i, t, e, s); + return !s || !s.setContext || !e ? t : Aa(i, t, e, s); } -function Da(i, t, e, s) { +function Aa(i, t, e, s) { const n = i._chart.getContext(), o = ls(i.options), { _datasetIndex: r, options: { spanGaps: a } } = i, l = e.length, c = []; let h = o, d = t[0].start, u = d; function f(g, p, m, b) { @@ -2232,7 +2341,7 @@ function Da(i, t, e, s) { p0DataIndex: (u - 1) % l, p1DataIndex: u % l, datasetIndex: r - }))), Aa(m, h) && f(d, u - 1, g.loop, h), p = b, h = m; + }))), Oa(m, h) && f(d, u - 1, g.loop, h), p = b, h = m; } d < u - 1 && f(d, u - 1, g.loop, h); } @@ -2249,18 +2358,18 @@ function ls(i) { borderColor: i.borderColor }; } -function Aa(i, t) { +function Oa(i, t) { if (!t) return !1; const e = [], s = function(n, o) { - return Ai(o) ? (e.includes(o) || e.push(o), e.indexOf(o)) : o; + return Oi(o) ? (e.includes(o) || e.push(o), e.indexOf(o)) : o; }; return JSON.stringify(i, s) !== JSON.stringify(t, s); } function we(i, t, e) { return i.options.clip ? i[e] : t[e]; } -function Oa(i, t) { +function Ta(i, t) { const { xScale: e, yScale: s } = i; return e && s ? { left: we(e, t, "left"), @@ -2273,7 +2382,7 @@ function Nn(i, t) { const e = t._clip; if (e.disabled) return !1; - const s = Oa(t, i.chartArea); + const s = Ta(t, i.chartArea); return { left: e.left === !1 ? 0 : s.left - (e.left === !0 ? 0 : e.left), right: e.right === !1 ? i.width : s.right + (e.right === !0 ? 0 : e.right), @@ -2287,7 +2396,7 @@ function Nn(i, t) { * (c) 2025 Chart.js Contributors * Released under the MIT License */ -class Ta { +class La { constructor() { this._request = null, this._charts = /* @__PURE__ */ new Map(), this._running = !1, this._lastDate = void 0; } @@ -2363,8 +2472,8 @@ class Ta { return this._charts.delete(t); } } -var lt = /* @__PURE__ */ new Ta(); -const cs = "transparent", La = { +var lt = /* @__PURE__ */ new La(); +const cs = "transparent", Ra = { boolean(i, t, e) { return e > 0.5 ? t : i; }, @@ -2376,7 +2485,7 @@ const cs = "transparent", La = { return i + (t - i) * e; } }; -class Ra { +class Ea { constructor(t, e, s, n) { const o = e[s]; n = Qt([ @@ -2390,7 +2499,7 @@ class Ra { o, n ]); - this._active = !0, this._fn = t.fn || La[t.type || typeof r], this._easing = oe[t.easing] || oe.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = s, this._from = r, this._to = n, this._promises = void 0; + this._active = !0, this._fn = t.fn || Ra[t.type || typeof r], this._easing = oe[t.easing] || oe.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = s, this._from = r, this._to = n, this._promises = void 0; } active() { return this._active; @@ -2465,11 +2574,11 @@ class Wn { }); } _animateOptions(t, e) { - const s = e.options, n = Ia(t, s); + const s = e.options, n = Fa(t, s); if (!n) return []; const o = this._createAnimations(n, s); - return s.$shared && Ea(t.options.$animations, s).then(() => { + return s.$shared && Ia(t.options.$animations, s).then(() => { t.options = s; }, () => { }), o; @@ -2498,7 +2607,7 @@ class Wn { t[c] = h; continue; } - o[c] = d = new Ra(u, t, c, h), n.push(d); + o[c] = d = new Ea(u, t, c, h), n.push(d); } return n; } @@ -2512,7 +2621,7 @@ class Wn { return lt.add(this._chart, s), !0; } } -function Ea(i, t) { +function Ia(i, t) { const e = [], s = Object.keys(t); for (let n = 0; n < s.length; n++) { const o = i[s[n]]; @@ -2520,7 +2629,7 @@ function Ea(i, t) { } return Promise.all(e); } -function Ia(i, t) { +function Fa(i, t) { if (!t) return; let e = i.options; @@ -2540,7 +2649,7 @@ function hs(i, t) { end: s ? n : o }; } -function Fa(i, t, e) { +function za(i, t, e) { if (e === !1) return !1; const s = hs(i, e), n = hs(t, e); @@ -2551,7 +2660,7 @@ function Fa(i, t, e) { left: s.start }; } -function za(i) { +function Ba(i) { let t, e, s, n; return O(i) ? (t = i.top, e = i.right, s = i.bottom, n = i.left) : t = e = s = n = i, { top: t, @@ -2584,7 +2693,7 @@ function ds(i, t, e, s = {}) { } return !h && !s.all ? 0 : t; } -function Ba(i, t) { +function Va(i, t) { const { iScale: e, vScale: s } = t, n = e.axis === "x" ? "x" : "y", o = s.axis === "x" ? "x" : "y", r = Object.keys(i), a = new Array(r.length); let l, c, h; for (l = 0, c = r.length; l < c; ++l) @@ -2594,21 +2703,21 @@ function Ba(i, t) { }; return a; } -function ti(i, t) { +function ei(i, t) { const e = i && i.options.stacked; return e || e === void 0 && t.stack !== void 0; } -function Va(i, t, e) { +function Na(i, t, e) { return `${i.id}.${t.id}.${e.stack || e.type}`; } -function Na(i) { +function Wa(i) { const { min: t, max: e, minDefined: s, maxDefined: n } = i.getUserBounds(); return { min: s ? t : Number.NEGATIVE_INFINITY, max: n ? e : Number.POSITIVE_INFINITY }; } -function Wa(i, t, e) { +function Ha(i, t, e) { const s = i[t] || (i[t] = {}); return s[e] || (s[e] = {}); } @@ -2621,20 +2730,20 @@ function us(i, t, e, s) { return null; } function fs(i, t) { - const { chart: e, _cachedMeta: s } = i, n = e._stacks || (e._stacks = {}), { iScale: o, vScale: r, index: a } = s, l = o.axis, c = r.axis, h = Va(o, r, s), d = t.length; + const { chart: e, _cachedMeta: s } = i, n = e._stacks || (e._stacks = {}), { iScale: o, vScale: r, index: a } = s, l = o.axis, c = r.axis, h = Na(o, r, s), d = t.length; let u; for (let f = 0; f < d; ++f) { const g = t[f], { [l]: p, [c]: m } = g, b = g._stacks || (g._stacks = {}); - u = b[c] = Wa(n, h, p), u[a] = m, u._top = us(u, r, !0, s.type), u._bottom = us(u, r, !1, s.type); + u = b[c] = Ha(n, h, p), u[a] = m, u._top = us(u, r, !0, s.type), u._bottom = us(u, r, !1, s.type); const x = u._visualValues || (u._visualValues = {}); x[a] = m; } } -function ei(i, t) { +function ii(i, t) { const e = i.scales; return Object.keys(e).filter((s) => e[s].axis === t).shift(); } -function Ha(i, t) { +function ja(i, t) { return wt(i, { active: !1, dataset: void 0, @@ -2644,7 +2753,7 @@ function Ha(i, t) { type: "dataset" }); } -function ja(i, t, e) { +function $a(i, t, e) { return wt(i, { active: !1, dataIndex: t, @@ -2668,7 +2777,7 @@ function Xt(i, t) { } } } -const ii = (i) => i === "reset" || i === "none", ps = (i, t) => t ? i : Object.assign({}, i), $a = (i, t, e) => i && !t.hidden && t._stacked && { +const si = (i) => i === "reset" || i === "none", ps = (i, t) => t ? i : Object.assign({}, i), Ya = (i, t, e) => i && !t.hidden && t._stacked && { keys: Hn(e, !0), values: null }; @@ -2681,13 +2790,13 @@ class kt { } initialize() { const t = this._cachedMeta; - this.configure(), this.linkScales(), t._stacked = ti(t.vScale, t), this.addElements(), this.options.fill && !this.chart.isPluginEnabled("filler") && console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options"); + this.configure(), this.linkScales(), t._stacked = ei(t.vScale, t), this.addElements(), this.options.fill && !this.chart.isPluginEnabled("filler") && console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options"); } updateIndex(t) { this.index !== t && Xt(this._cachedMeta), this.index = t; } linkScales() { - const t = this.chart, e = this._cachedMeta, s = this.getDataset(), n = (d, u, f, g) => d === "x" ? u : d === "r" ? g : f, o = e.xAxisID = C(s.xAxisID, ei(t, "x")), r = e.yAxisID = C(s.yAxisID, ei(t, "y")), a = e.rAxisID = C(s.rAxisID, ei(t, "r")), l = e.indexAxis, c = e.iAxisID = n(l, o, r, a), h = e.vAxisID = n(l, r, o, a); + const t = this.chart, e = this._cachedMeta, s = this.getDataset(), n = (d, u, f, g) => d === "x" ? u : d === "r" ? g : f, o = e.xAxisID = C(s.xAxisID, ii(t, "x")), r = e.yAxisID = C(s.yAxisID, ii(t, "y")), a = e.rAxisID = C(s.rAxisID, ii(t, "r")), l = e.indexAxis, c = e.iAxisID = n(l, o, r, a), h = e.vAxisID = n(l, r, o, a); e.xScale = this.getScaleForId(o), e.yScale = this.getScaleForId(r), e.rScale = this.getScaleForId(a), e.iScale = this.getScaleForId(c), e.vScale = this.getScaleForId(h); } getDataset() { @@ -2714,14 +2823,14 @@ class kt { const t = this.getDataset(), e = t.data || (t.data = []), s = this._data; if (O(e)) { const n = this._cachedMeta; - this._data = Ba(e, n); + this._data = Va(e, n); } else if (s !== e) { if (s) { Gi(s, this); const n = this._cachedMeta; Xt(n), n._parsed = []; } - e && Object.isExtensible(e) && Dr(e, this), this._syncList = [], this._data = e; + e && Object.isExtensible(e) && Ar(e, this), this._syncList = [], this._data = e; } } addElements() { @@ -2733,7 +2842,7 @@ class kt { let n = !1; this._dataCheck(); const o = e._stacked; - e._stacked = ti(e.vScale, e), e.stack !== s.stack && (n = !0, Xt(e), e.stack = s.stack), this._resyncElements(t), (n || o !== e._stacked) && (fs(this, e._parsed), e._stacked = ti(e.vScale, e)); + e._stacked = ei(e.vScale, e), e.stack !== s.stack && (n = !0, Xt(e), e.stack = s.stack), this._resyncElements(t), (n || o !== e._stacked) && (fs(this, e._parsed), e._stacked = ei(e.vScale, e)); } configure() { const t = this.chart.config, e = t.datasetScopeKeys(this._type), s = t.getOptionScopes(this.getDataset(), e, !0); @@ -2805,10 +2914,10 @@ class kt { n && a && (n.values = a, r = ds(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, r), t.max = Math.max(t.max, r); } getMinMax(t, e) { - const s = this._cachedMeta, n = s._parsed, o = s._sorted && t === s.iScale, r = n.length, a = this._getOtherScale(t), l = $a(e, s, this.chart), c = { + const s = this._cachedMeta, n = s._parsed, o = s._sorted && t === s.iScale, r = n.length, a = this._getOtherScale(t), l = Ya(e, s, this.chart), c = { min: Number.POSITIVE_INFINITY, max: Number.NEGATIVE_INFINITY - }, { min: h, max: d } = Na(a); + }, { min: h, max: d } = Wa(a); let u, f; function g() { f = n[u]; @@ -2845,7 +2954,7 @@ class kt { } _update(t) { const e = this._cachedMeta; - this.update(t || "default"), e._clip = za(C(this.options.clip, Fa(e.xScale, e.yScale, this.getMaxOverflow()))); + this.update(t || "default"), e._clip = Ba(C(this.options.clip, za(e.xScale, e.yScale, this.getMaxOverflow()))); } update(t) { } @@ -2868,9 +2977,9 @@ class kt { let o; if (t >= 0 && t < this._cachedMeta.data.length) { const r = this._cachedMeta.data[t]; - o = r.$context || (r.$context = ja(this.getContext(), t, r)), o.parsed = this.getParsed(t), o.raw = n.data[t], o.index = o.dataIndex = t; + o = r.$context || (r.$context = $a(this.getContext(), t, r)), o.parsed = this.getParsed(t), o.raw = n.data[t], o.index = o.dataIndex = t; } else - o = this.$context || (this.$context = Ha(this.chart.getContext(), this.index)), o.dataset = n, o.index = o.datasetIndex = this.index; + o = this.$context || (this.$context = ja(this.chart.getContext(), this.index)), o.dataset = n, o.index = o.datasetIndex = this.index; return o.active = !!e, o.mode = s, o; } resolveDatasetElementOptions(t) { @@ -2911,7 +3020,7 @@ class kt { return this._sharedOptions || (this._sharedOptions = Object.assign({}, t)); } includeOptions(t, e) { - return !e || ii(t) || this.chart._animationsDisabled; + return !e || si(t) || this.chart._animationsDisabled; } _getSharedOptions(t, e) { const s = this.resolveDataElementOptions(t, e), n = this._sharedOptions, o = this.getSharedOptions(s), r = this.includeOptions(e, o) || o !== n; @@ -2921,10 +3030,10 @@ class kt { }; } updateElement(t, e, s, n) { - ii(n) ? Object.assign(t, s) : this._resolveAnimations(e, n).update(t, s); + si(n) ? Object.assign(t, s) : this._resolveAnimations(e, n).update(t, s); } updateSharedOptions(t, e, s) { - t && !ii(e) && this._resolveAnimations(void 0, e).update(t, s); + t && !si(e) && this._resolveAnimations(void 0, e).update(t, s); } _setStyle(t, e, s, n) { t.active = n; @@ -3031,7 +3140,7 @@ class kt { ]); } } -function Ya(i, t) { +function Ua(i, t) { if (!i._cache.$bar) { const e = i.getMatchingVisibleMetas(t); let s = []; @@ -3041,8 +3150,8 @@ function Ya(i, t) { } return i._cache.$bar; } -function Ua(i) { - const t = i.iScale, e = Ya(t, i.type); +function Xa(i) { + const t = i.iScale, e = Ua(t, i.type); let s = t._length, n, o, r, a; const l = () => { r === 32767 || r === -32768 || (ce(a) && (s = Math.min(s, Math.abs(r - a) || s)), a = r); @@ -3053,7 +3162,7 @@ function Ua(i) { r = t.getPixelForTick(n), l(); return s; } -function Xa(i, t, e, s) { +function Ka(i, t, e, s) { const n = e.barThickness; let o, r; return A(n) ? (o = t.min * e.categoryPercentage, r = e.barPercentage) : (o = n * s, r = 1), { @@ -3062,7 +3171,7 @@ function Xa(i, t, e, s) { start: t.pixels[i] - o / 2 }; } -function Ka(i, t, e, s) { +function qa(i, t, e, s) { const n = t.pixels, o = n[i]; let r = i > 0 ? n[i - 1] : null, a = i < n.length - 1 ? n[i + 1] : null; const l = e.categoryPercentage; @@ -3074,7 +3183,7 @@ function Ka(i, t, e, s) { start: c }; } -function qa(i, t, e, s) { +function Ga(i, t, e, s) { const n = e.parse(i[0], s), o = e.parse(i[1], s), r = Math.min(n, o), a = Math.max(n, o); let l = r, c = a; Math.abs(r) > Math.abs(a) && (l = a, c = r), t[e.axis] = c, t._custom = { @@ -3087,7 +3196,7 @@ function qa(i, t, e, s) { }; } function jn(i, t, e, s) { - return B(i) ? qa(i, t, e, s) : t[e.axis] = e.parse(i, s), t; + return B(i) ? Ga(i, t, e, s) : t[e.axis] = e.parse(i, s), t; } function gs(i, t, e, s) { const n = i.iScale, o = i.vScale, r = n.getLabels(), a = n === o, l = []; @@ -3096,13 +3205,13 @@ function gs(i, t, e, s) { u = t[c], d = {}, d[n.axis] = a || n.parse(r[c], c), l.push(jn(u, d, o, c)); return l; } -function si(i) { +function ni(i) { return i && i.barStart !== void 0 && i.barEnd !== void 0; } -function Ga(i, t, e) { +function Ja(i, t, e) { return i !== 0 ? rt(i) : (t.isHorizontal() ? 1 : -1) * (t.min >= e ? 1 : -1); } -function Ja(i) { +function Za(i) { let t, e, s, n, o; return i.horizontal ? (t = i.base > i.x, e = "left", s = "right") : (t = i.base < i.y, e = "bottom", s = "top"), t ? (n = "end", o = "start") : (n = "start", o = "end"), { start: e, @@ -3112,7 +3221,7 @@ function Ja(i) { bottom: o }; } -function Za(i, t, e, s) { +function Qa(i, t, e, s) { let n = t.borderSkipped; const o = {}; if (!n) { @@ -3128,22 +3237,22 @@ function Za(i, t, e, s) { }; return; } - const { start: r, end: a, reverse: l, top: c, bottom: h } = Ja(i); + const { start: r, end: a, reverse: l, top: c, bottom: h } = Za(i); n === "middle" && e && (i.enableBorderRadius = !0, (e._top || 0) === s ? n = c : (e._bottom || 0) === s ? n = h : (o[ms(h, r, a, l)] = !0, n = c)), o[ms(n, r, a, l)] = !0, i.borderSkipped = o; } function ms(i, t, e, s) { - return s ? (i = Qa(i, t, e), i = bs(i, e, t)) : i = bs(i, t, e), i; + return s ? (i = tl(i, t, e), i = bs(i, e, t)) : i = bs(i, t, e), i; } -function Qa(i, t, e) { +function tl(i, t, e) { return i === t ? e : i === e ? t : i; } function bs(i, t, e) { return i === "start" ? t : i === "end" ? e : i; } -function tl(i, { inflateAmount: t }, e) { +function el(i, { inflateAmount: t }, e) { i.inflateAmount = t === "auto" ? e === 1 ? 0.33 : 0 : t; } -class el extends kt { +class il extends kt { static id = "bar"; static defaults = { datasetElementType: !1, @@ -3201,7 +3310,7 @@ class el extends kt { return 0; } getLabelAndValue(t) { - const e = this._cachedMeta, { iScale: s, vScale: n } = e, o = this.getParsed(t), r = o._custom, a = si(r) ? "[" + r.start + ", " + r.end + "]" : "" + n.getLabelForValue(o[n.axis]); + const e = this._cachedMeta, { iScale: s, vScale: n } = e, o = this.getParsed(t), r = o._custom, a = ni(r) ? "[" + r.start + ", " + r.end + "]" : "" + n.getLabelForValue(o[n.axis]); return { label: "" + s.getLabelForValue(o[s.axis]), value: a @@ -3225,7 +3334,7 @@ class el extends kt { } : this._calculateBarValuePixels(f), m = this._calculateBarIndexPixels(f, h), b = (g._stacks || {})[a.axis], x = { horizontal: c, base: p.base, - enableBorderRadius: !b || si(g._custom) || r === b._top || r === b._bottom, + enableBorderRadius: !b || ni(g._custom) || r === b._top || r === b._bottom, x: c ? p.head : m.center, y: c ? m.center : p.head, height: c ? m.size : Math.abs(p.size), @@ -3233,7 +3342,7 @@ class el extends kt { }; u && (x.options = d || this.resolveDataElementOptions(f, t[f].active ? "active" : n)); const v = x.options || t[f].options; - Za(x, v, b, r), tl(x, v, h.ratio), this.updateElement(t[f], f, x, n); + Qa(x, v, b, r), el(x, v, h.ratio), this.updateElement(t[f], f, x, n); } } _getStacks(t, e) { @@ -3274,7 +3383,7 @@ class el extends kt { n.push(s.getPixelForValue(this.getParsed(o)[s.axis], o)); const a = t.barThickness; return { - min: a || Ua(e), + min: a || Xa(e), pixels: n, start: s._startPixel, end: s._endPixel, @@ -3285,13 +3394,13 @@ class el extends kt { }; } _calculateBarValuePixels(t) { - const { _cachedMeta: { vScale: e, _stacked: s, index: n }, options: { base: o, minBarLength: r } } = this, a = o || 0, l = this.getParsed(t), c = l._custom, h = si(c); + const { _cachedMeta: { vScale: e, _stacked: s, index: n }, options: { base: o, minBarLength: r } } = this, a = o || 0, l = this.getParsed(t), c = l._custom, h = ni(c); let d = l[e.axis], u = 0, f = s ? this.applyStack(e, l, s) : d, g, p; f !== d && (u = f - d, f = d), h && (d = c.barStart, f = c.barEnd - c.barStart, d !== 0 && rt(d) !== rt(c.barEnd) && (u = 0), u += d); const m = !A(o) && !h ? o : u; let b = e.getPixelForValue(m); if (this.chart.getDataVisibility(t) ? g = e.getPixelForValue(u + f) : g = b, p = g - b, Math.abs(p) < r) { - p = Ga(p, e, a) * r, d === a && (b -= p / 2); + p = Ja(p, e, a) * r, d === a && (b -= p / 2); const x = e.getPixelForDecimal(0), v = e.getPixelForDecimal(1), y = Math.min(x, v), _ = Math.max(x, v); b = Math.max(Math.min(b, _), y), g = b + p, s && !h && (l._stacks[e.axis]._visualValues[n] = e.getValueForPixel(g) - e.getValueForPixel(b)); } @@ -3311,7 +3420,7 @@ class el extends kt { let a, l; const c = this._getAxisCount(); if (e.grouped) { - const h = o ? this._getStackCount(t) : e.stackCount, d = n.barThickness === "flex" ? Ka(t, e, n, h * c) : Xa(t, e, n, h * c), u = this.chart.options.indexAxis === "x" ? this.getDataset().xAxisID : this.getDataset().yAxisID, f = this._getAxis().indexOf(C(u, this.getFirstScaleIdForIndexAxis())), g = this._getStackIndex(this.index, this._cachedMeta.stack, o ? t : void 0) + f; + const h = o ? this._getStackCount(t) : e.stackCount, d = n.barThickness === "flex" ? qa(t, e, n, h * c) : Ka(t, e, n, h * c), u = this.chart.options.indexAxis === "x" ? this.getDataset().xAxisID : this.getDataset().yAxisID, f = this._getAxis().indexOf(C(u, this.getFirstScaleIdForIndexAxis())), g = this._getStackIndex(this.index, this._cachedMeta.stack, o ? t : void 0) + f; a = d.start + d.chunk * g + d.chunk / 2, l = Math.min(r, d.chunk * d.ratio); } else a = s.getPixelForValue(this.getParsed(t)[s.axis], t), l = Math.min(r, e.min * e.ratio); @@ -3329,7 +3438,7 @@ class el extends kt { this.getParsed(o)[e.axis] !== null && !s[o].hidden && s[o].draw(this._ctx); } } -class il extends kt { +class sl extends kt { static id = "bubble"; static defaults = { datasetElementType: !1, @@ -3416,7 +3525,7 @@ class il extends kt { return e !== "active" && (n.radius = 0), n.radius += C(s && s._custom, o), n; } } -function sl(i, t, e) { +function nl(i, t, e) { let s = 1, n = 1, o = 0, r = 0; if (t < F) { const a = i, l = a + t, c = Math.cos(a), h = Math.sin(a), d = Math.cos(l), u = Math.sin(l), f = (v, y, _) => he(v, a, l, !0) ? 1 : Math.max(y, y * e, _, _ * e), g = (v, y, _) => he(v, a, l, !0) ? -1 : Math.min(y, y * e, _, _ * e), p = f(0, c, d), m = f(H, h, u), b = g(L, c, d), x = g(L + H, h, u); @@ -3429,7 +3538,7 @@ function sl(i, t, e) { offsetY: r }; } -class Fi extends kt { +class zi extends kt { static id = "doughnut"; static defaults = { datasetElementType: !1, @@ -3538,7 +3647,7 @@ class Fi extends kt { }; } update(t) { - const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, o = n.data, r = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, a = Math.max((Math.min(s.width, s.height) - r) / 2, 0), l = Math.min(fr(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: u, ratioY: f, offsetX: g, offsetY: p } = sl(d, h, l), m = (s.width - r) / u, b = (s.height - r) / f, x = Math.max(Math.min(m, b) / 2, 0), v = mn(this.options.radius, x), y = Math.max(v * l, 0), _ = (v - y) / this._getVisibleDatasetWeightTotal(); + const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, o = n.data, r = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, a = Math.max((Math.min(s.width, s.height) - r) / 2, 0), l = Math.min(pr(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: u, ratioY: f, offsetX: g, offsetY: p } = nl(d, h, l), m = (s.width - r) / u, b = (s.height - r) / f, x = Math.max(Math.min(m, b) / 2, 0), v = mn(this.options.radius, x), y = Math.max(v * l, 0), _ = (v - y) / this._getVisibleDatasetWeightTotal(); this.offsetX = g * v, this.offsetY = p * v, n.total = this.calculateTotal(), this.outerRadius = v - _ * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - _ * c, 0), this.updateElements(o, 0, o.length, t); } _circumference(t, e) { @@ -3621,7 +3730,7 @@ class Fi extends kt { return this._getRingWeightOffset(this.chart.data.datasets.length) || 1; } } -class nl extends kt { +class ol extends kt { static id = "line"; static defaults = { datasetElementType: "line", @@ -3813,7 +3922,7 @@ class $n extends kt { return this.chart.getDataVisibility(t) ? st(this.resolveDataElementOptions(t, e).angle || s) : 0; } } -class ol extends Fi { +class rl extends zi { static id = "pie"; static defaults = { cutout: 0, @@ -3822,7 +3931,7 @@ class ol extends Fi { radius: "100%" }; } -class rl extends kt { +class al extends kt { static id = "radar"; static defaults = { datasetElementType: "line", @@ -3881,7 +3990,7 @@ class rl extends kt { } } } -class al extends kt { +class ll extends kt { static id = "scatter"; static defaults = { datasetElementType: !1, @@ -3952,21 +4061,21 @@ class al extends kt { return Math.max(n, o, r) / 2; } } -var ll = /* @__PURE__ */ Object.freeze({ +var cl = /* @__PURE__ */ Object.freeze({ __proto__: null, - BarController: el, - BubbleController: il, - DoughnutController: Fi, - LineController: nl, - PieController: ol, + BarController: il, + BubbleController: sl, + DoughnutController: zi, + LineController: ol, + PieController: rl, PolarAreaController: $n, - RadarController: rl, - ScatterController: al + RadarController: al, + ScatterController: ll }); function Dt() { throw new Error("This method is not implemented: Check that a complete date adapter is provided."); } -class zi { +class Bi { /** * Override default date adapter methods. * Accepts type parameter to define options type. @@ -3978,7 +4087,7 @@ class zi { * }) */ static override(t) { - Object.assign(zi.prototype, t); + Object.assign(Bi.prototype, t); } options; constructor(t) { @@ -4009,13 +4118,13 @@ class zi { return Dt(); } } -var cl = { - _date: zi +var hl = { + _date: Bi }; -function hl(i, t, e, s) { +function dl(i, t, e, s) { const { controller: n, data: o, _sorted: r } = i, a = n._cachedMeta.iScale, l = i.dataset && i.dataset.options ? i.dataset.options.spanGaps : null; if (a && t === a.axis && t !== "r" && r && o.length) { - const c = a._reversePixels ? Cr : ut; + const c = a._reversePixels ? Pr : ut; if (s) { if (n._sharedOptions) { const h = o[0], d = typeof h.getRange == "function" && h.getRange(t); @@ -4046,21 +4155,21 @@ function hl(i, t, e, s) { function Ye(i, t, e, s, n) { const o = i.getSortedVisibleDatasetMetas(), r = e[t]; for (let a = 0, l = o.length; a < l; ++a) { - const { index: c, data: h } = o[a], { lo: d, hi: u } = hl(o[a], t, r, n); + const { index: c, data: h } = o[a], { lo: d, hi: u } = dl(o[a], t, r, n); for (let f = d; f <= u; ++f) { const g = h[f]; g.skip || s(g, c, f); } } } -function dl(i) { +function ul(i) { const t = i.indexOf("x") !== -1, e = i.indexOf("y") !== -1; return function(s, n) { const o = t ? Math.abs(s.x - n.x) : 0, r = e ? Math.abs(s.y - n.y) : 0; return Math.sqrt(Math.pow(o, 2) + Math.pow(r, 2)); }; } -function ni(i, t, e, s, n) { +function oi(i, t, e, s, n) { const o = []; return !n && !i.isPointInArea(t) || Ye(i, e, t, function(a, l, c) { !n && !ft(a, i.chartArea, 0) || a.inRange(t.x, t.y, s) && o.push({ @@ -4070,7 +4179,7 @@ function ni(i, t, e, s, n) { }); }, !0), o; } -function ul(i, t, e, s) { +function fl(i, t, e, s) { let n = []; function o(r, a, l) { const { startAngle: c, endAngle: h } = r.getProps([ @@ -4088,9 +4197,9 @@ function ul(i, t, e, s) { } return Ye(i, e, t, o), n; } -function fl(i, t, e, s, n, o) { +function pl(i, t, e, s, n, o) { let r = []; - const a = dl(e); + const a = ul(e); let l = Number.POSITIVE_INFINITY; function c(h, d, u) { const f = h.inRange(t.x, t.y, n); @@ -4114,8 +4223,8 @@ function fl(i, t, e, s, n, o) { } return Ye(i, e, t, c), r; } -function oi(i, t, e, s, n, o) { - return !o && !i.isPointInArea(t) ? [] : e === "r" && !s ? ul(i, t, e, n) : fl(i, t, e, s, n, o); +function ri(i, t, e, s, n, o) { + return !o && !i.isPointInArea(t) ? [] : e === "r" && !s ? fl(i, t, e, n) : pl(i, t, e, s, n, o); } function xs(i, t, e, s, n) { const o = [], r = e === "x" ? "inXRange" : "inYRange"; @@ -4128,10 +4237,10 @@ function xs(i, t, e, s, n) { }), a = a || l.inRange(t.x, t.y, n)); }), s && !a ? [] : o; } -var pl = { +var gl = { modes: { index(i, t, e, s) { - const n = Ot(t, i), o = e.axis || "x", r = e.includeInvisible || !1, a = e.intersect ? ni(i, n, o, s, r) : oi(i, n, o, !1, s, r), l = []; + const n = Ot(t, i), o = e.axis || "x", r = e.includeInvisible || !1, a = e.intersect ? oi(i, n, o, s, r) : ri(i, n, o, !1, s, r), l = []; return a.length ? (i.getSortedVisibleDatasetMetas().forEach((c) => { const h = a[0].index, d = c.data[h]; d && !d.skip && l.push({ @@ -4143,7 +4252,7 @@ var pl = { }, dataset(i, t, e, s) { const n = Ot(t, i), o = e.axis || "xy", r = e.includeInvisible || !1; - let a = e.intersect ? ni(i, n, o, s, r) : oi(i, n, o, !1, s, r); + let a = e.intersect ? oi(i, n, o, s, r) : ri(i, n, o, !1, s, r); if (a.length > 0) { const l = a[0].datasetIndex, c = i.getDatasetMeta(l).data; a = []; @@ -4158,11 +4267,11 @@ var pl = { }, point(i, t, e, s) { const n = Ot(t, i), o = e.axis || "xy", r = e.includeInvisible || !1; - return ni(i, n, o, s, r); + return oi(i, n, o, s, r); }, nearest(i, t, e, s) { const n = Ot(t, i), o = e.axis || "xy", r = e.includeInvisible || !1; - return oi(i, n, o, e.intersect, s, r); + return ri(i, n, o, e.intersect, s, r); }, x(i, t, e, s) { const n = Ot(t, i); @@ -4192,7 +4301,7 @@ function qt(i, t) { return n.weight === o.weight ? n.index - o.index : n.weight - o.weight; }); } -function gl(i) { +function ml(i) { const t = []; let e, s, n, o, r, a; for (e = 0, s = (i || []).length; e < s; ++e) @@ -4207,7 +4316,7 @@ function gl(i) { }); return t; } -function ml(i) { +function bl(i) { const t = {}; for (const e of i) { const { stack: s, pos: n, stackWeight: o } = e; @@ -4223,8 +4332,8 @@ function ml(i) { } return t; } -function bl(i, t) { - const e = ml(i), { vBoxMaxWidth: s, hBoxMaxHeight: n } = t; +function xl(i, t) { + const e = bl(i), { vBoxMaxWidth: s, hBoxMaxHeight: n } = t; let o, r, a; for (o = 0, r = i.length; o < r; ++o) { a = i[o]; @@ -4233,8 +4342,8 @@ function bl(i, t) { } return e; } -function xl(i) { - const t = gl(i), e = qt(t.filter((c) => c.box.fullSize), !0), s = qt(Kt(t, "left"), !0), n = qt(Kt(t, "right")), o = qt(Kt(t, "top"), !0), r = qt(Kt(t, "bottom")), a = _s(t, "x"), l = _s(t, "y"); +function _l(i) { + const t = ml(i), e = qt(t.filter((c) => c.box.fullSize), !0), s = qt(Kt(t, "left"), !0), n = qt(Kt(t, "right")), o = qt(Kt(t, "top"), !0), r = qt(Kt(t, "bottom")), a = _s(t, "x"), l = _s(t, "y"); return { fullSize: e, leftAndTop: s.concat(o), @@ -4250,7 +4359,7 @@ function ys(i, t, e, s) { function Un(i, t) { i.top = Math.max(i.top, t.top), i.left = Math.max(i.left, t.left), i.bottom = Math.max(i.bottom, t.bottom), i.right = Math.max(i.right, t.right); } -function _l(i, t, e, s) { +function yl(i, t, e, s) { const { pos: n, box: o } = e, r = i.maxPadding; if (!O(n)) { e.size && (i[n] -= e.size); @@ -4270,7 +4379,7 @@ function _l(i, t, e, s) { other: c }; } -function yl(i) { +function vl(i) { const t = i.maxPadding; function e(s) { const n = Math.max(t[s] - i[s], 0); @@ -4278,7 +4387,7 @@ function yl(i) { } i.y += e("top"), i.x += e("left"), e("right"), e("bottom"); } -function vl(i, t) { +function wl(i, t) { const e = t.maxPadding; function s(n) { const o = { @@ -4303,8 +4412,8 @@ function te(i, t, e, s) { const n = []; let o, r, a, l, c, h; for (o = 0, r = i.length, c = 0; o < r; ++o) { - a = i[o], l = a.box, l.update(a.width || t.w, a.height || t.h, vl(a.horizontal, t)); - const { same: d, other: u } = _l(t, e, a, s); + a = i[o], l = a.box, l.update(a.width || t.w, a.height || t.h, wl(a.horizontal, t)); + const { same: d, other: u } = yl(t, e, a, s); c |= d && n.length, h = h || u, l.fullSize || n.push(a); } return c && te(n, t, e, s) || h; @@ -4353,7 +4462,7 @@ var q = { update(i, t, e, s) { if (!i) return; - const n = G(i.options.layout.padding), o = Math.max(t - n.width, 0), r = Math.max(e - n.height, 0), a = xl(i.boxes), l = a.vertical, c = a.horizontal; + const n = G(i.options.layout.padding), o = Math.max(t - n.width, 0), r = Math.max(e - n.height, 0), a = _l(i.boxes), l = a.vertical, c = a.horizontal; R(i.boxes, (p) => { typeof p.beforeLayout == "function" && p.beforeLayout(); }); @@ -4373,8 +4482,8 @@ var q = { h: r, x: n.left, y: n.top - }, n), g = bl(l.concat(c), d); - te(a.fullSize, f, d, g), te(l, f, d, g), te(c, f, d, g) && te(l, f, d, g), yl(f), vs(a.leftAndTop, f, d, g), f.x += f.w, f.y += f.h, vs(a.rightAndBottom, f, d, g), i.chartArea = { + }, n), g = xl(l.concat(c), d); + te(a.fullSize, f, d, g), te(l, f, d, g), te(c, f, d, g) && te(l, f, d, g), vl(f), vs(a.leftAndTop, f, d, g), f.x += f.w, f.y += f.h, vs(a.rightAndBottom, f, d, g), i.chartArea = { left: f.left, top: f.top, right: f.left + f.w, @@ -4417,7 +4526,7 @@ class Xn { updateConfig(t) { } } -class wl extends Xn { +class kl extends Xn { acquireContext(t) { return t && t.getContext && t.getContext("2d") || null; } @@ -4425,7 +4534,7 @@ class wl extends Xn { t.options.animation = !1; } } -const Oe = "$chartjs", kl = { +const Oe = "$chartjs", Ml = { touchstart: "mousedown", touchmove: "mousemove", touchend: "mouseup", @@ -4436,7 +4545,7 @@ const Oe = "$chartjs", kl = { pointerleave: "mouseout", pointerout: "mouseout" }, ws = (i) => i === null || i === ""; -function Ml(i, t) { +function Sl(i, t) { const e = i.style, s = i.getAttribute("height"), n = i.getAttribute("width"); if (i[Oe] = { initial: { @@ -4461,17 +4570,17 @@ function Ml(i, t) { } return i; } -const Kn = _a ? { +const Kn = ya ? { passive: !0 } : !1; -function Sl(i, t, e) { +function Cl(i, t, e) { i && i.addEventListener(t, e, Kn); } -function Cl(i, t, e) { +function Pl(i, t, e) { i && i.canvas && i.canvas.removeEventListener(t, e, Kn); } -function Pl(i, t) { - const e = kl[i.type] || i.type, { x: s, y: n } = Ot(i, t); +function Dl(i, t) { + const e = Ml[i.type] || i.type, { x: s, y: n } = Ot(i, t); return { type: e, chart: t, @@ -4485,7 +4594,7 @@ function Be(i, t) { if (e === t || e.contains(t)) return !0; } -function Dl(i, t, e) { +function Al(i, t, e) { const s = i.canvas, n = new MutationObserver((o) => { let r = !1; for (const a of o) @@ -4497,7 +4606,7 @@ function Dl(i, t, e) { subtree: !0 }), n; } -function Al(i, t, e) { +function Ol(i, t, e) { const s = i.canvas, n = new MutationObserver((o) => { let r = !1; for (const a of o) @@ -4517,14 +4626,14 @@ function qn() { e.currentDevicePixelRatio !== i && t(); })); } -function Ol(i, t) { +function Tl(i, t) { ue.size || window.addEventListener("resize", qn), ue.set(i, t); } -function Tl(i) { +function Ll(i) { ue.delete(i), ue.size || window.removeEventListener("resize", qn); } -function Ll(i, t, e) { - const s = i.canvas, n = s && Ii(s); +function Rl(i, t, e) { + const s = i.canvas, n = s && Fi(s); if (!n) return; const o = kn((a, l) => { @@ -4534,21 +4643,21 @@ function Ll(i, t, e) { const l = a[0], c = l.contentRect.width, h = l.contentRect.height; c === 0 && h === 0 || o(c, h); }); - return r.observe(n), Ol(i, o), r; + return r.observe(n), Tl(i, o), r; } -function ri(i, t, e) { - e && e.disconnect(), t === "resize" && Tl(i); +function ai(i, t, e) { + e && e.disconnect(), t === "resize" && Ll(i); } -function Rl(i, t, e) { +function El(i, t, e) { const s = i.canvas, n = kn((o) => { - i.ctx !== null && e(Pl(o, i)); + i.ctx !== null && e(Dl(o, i)); }, i); - return Sl(s, t, n), n; + return Cl(s, t, n), n; } -class El extends Xn { +class Il extends Xn { acquireContext(t, e) { const s = t && t.getContext && t.getContext("2d"); - return s && s.canvas === t ? (Ml(t, e), s) : null; + return s && s.canvas === t ? (Sl(t, e), s) : null; } releaseContext(t) { const e = t.canvas; @@ -4570,10 +4679,10 @@ class El extends Xn { addEventListener(t, e, s) { this.removeEventListener(t, e); const n = t.$proxies || (t.$proxies = {}), r = { - attach: Dl, - detach: Al, - resize: Ll - }[e] || Rl; + attach: Al, + detach: Ol, + resize: Rl + }[e] || El; n[e] = r(t, e, s); } removeEventListener(t, e) { @@ -4581,24 +4690,24 @@ class El extends Xn { if (!n) return; ({ - attach: ri, - detach: ri, - resize: ri - }[e] || Cl)(t, e, n), s[e] = void 0; + attach: ai, + detach: ai, + resize: ai + }[e] || Pl)(t, e, n), s[e] = void 0; } getDevicePixelRatio() { return window.devicePixelRatio; } getMaximumSize(t, e, s, n) { - return xa(t, e, s, n); + return _a(t, e, s, n); } isAttached(t) { - const e = t && Ii(t); + const e = t && Fi(t); return !!(e && e.isConnected); } } -function Il(i) { - return !Ei() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? wl : El; +function Fl(i) { + return !Ii() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? kl : Il; } class pt { static defaults = {}; @@ -4631,11 +4740,11 @@ class pt { }), n; } } -function Fl(i, t) { - const e = i.options.ticks, s = zl(i), n = Math.min(e.maxTicksLimit || s, s), o = e.major.enabled ? Vl(t) : [], r = o.length, a = o[0], l = o[r - 1], c = []; +function zl(i, t) { + const e = i.options.ticks, s = Bl(i), n = Math.min(e.maxTicksLimit || s, s), o = e.major.enabled ? Nl(t) : [], r = o.length, a = o[0], l = o[r - 1], c = []; if (r > n) - return Nl(t, c, o, r / n), c; - const h = Bl(o, t, n); + return Wl(t, c, o, r / n), c; + const h = Vl(o, t, n); if (r > 0) { let d, u; const f = r > 1 ? Math.round((l - a) / (r - 1)) : null; @@ -4645,15 +4754,15 @@ function Fl(i, t) { } return Me(t, c, h), c; } -function zl(i) { +function Bl(i) { const t = i.options.offset, e = i._tickSize(), s = i._length / e + (t ? 0 : 1), n = i._maxLength / e; return Math.floor(Math.min(s, n)); } -function Bl(i, t, e) { - const s = Wl(i), n = t.length / e; +function Vl(i, t, e) { + const s = Hl(i), n = t.length / e; if (!s) return Math.max(n, 1); - const o = vr(s); + const o = wr(s); for (let r = 0, a = o.length - 1; r < a; r++) { const l = o[r]; if (l > n) @@ -4661,14 +4770,14 @@ function Bl(i, t, e) { } return Math.max(n, 1); } -function Vl(i) { +function Nl(i) { const t = []; let e, s; for (e = 0, s = i.length; e < s; e++) i[e].major && t.push(e); return t; } -function Nl(i, t, e, s) { +function Wl(i, t, e, s) { let n = 0, o = e[0], r; for (s = Math.ceil(s), r = 0; r < i.length; r++) r === o && (t.push(i[r]), n++, o = e[n * s]); @@ -4681,7 +4790,7 @@ function Me(i, t, e, s, n) { for (c = Math.max(o, 0); c < r; c++) c === h && (t.push(i[c]), a++, h = Math.round(o + a * e)); } -function Wl(i) { +function Hl(i) { const t = i.length; let e, s; if (t < 2) @@ -4691,7 +4800,7 @@ function Wl(i) { return !1; return s; } -const Hl = (i) => i === "left" ? "right" : i === "right" ? "left" : i, Ms = (i, t, e) => t === "top" || t === "left" ? i[t] + e : i[t] - e, Ss = (i, t) => Math.min(t || i, i); +const jl = (i) => i === "left" ? "right" : i === "right" ? "left" : i, Ms = (i, t, e) => t === "top" || t === "left" ? i[t] + e : i[t] - e, Ss = (i, t) => Math.min(t || i, i); function Cs(i, t) { const e = [], s = i.length / t, n = i.length; let o = 0; @@ -4699,13 +4808,13 @@ function Cs(i, t) { e.push(i[Math.floor(o)]); return e; } -function jl(i, t, e) { +function $l(i, t, e) { const s = i.ticks.length, n = Math.min(t, s - 1), o = i._startPixel, r = i._endPixel, a = 1e-6; let l = i.getPixelForTick(n), c; if (!(e && (s === 1 ? c = Math.max(l - o, r - l) : t === 0 ? c = (i.getPixelForTick(1) - l) / 2 : c = (l - i.getPixelForTick(n - 1)) / 2, l += n < t ? c : -c, l < o - a || l > r + a))) return l; } -function $l(i, t) { +function Yl(i, t) { R(i, (e) => { const s = e.gc, n = s.length / 2; let o; @@ -4725,24 +4834,24 @@ function Ps(i, t) { const e = j(i.font, t), s = G(i.padding); return (B(i.text) ? i.text.length : 1) * e.lineHeight + s.height; } -function Yl(i, t) { +function Ul(i, t) { return wt(i, { scale: t, type: "scale" }); } -function Ul(i, t, e) { +function Xl(i, t, e) { return wt(i, { tick: e, index: t, type: "tick" }); } -function Xl(i, t, e) { - let s = Di(i); - return (e && t !== "right" || !e && t === "right") && (s = Hl(s)), s; +function Kl(i, t, e) { + let s = Ai(i); + return (e && t !== "right" || !e && t === "right") && (s = jl(s)), s; } -function Kl(i, t, e, s) { +function ql(i, t, e, s) { const { top: n, left: o, bottom: r, right: a, chart: l } = i, { chartArea: c, scales: h } = l; let d = 0, u, f, g; const p = r - n, m = a - o; @@ -4838,9 +4947,9 @@ class Ft extends pt { right: 0, top: 0, bottom: 0 - }, s), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + s.left + s.right : this.height + s.top + s.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = Gr(this, o, n), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks(); + }, s), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + s.left + s.right : this.height + s.top + s.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = Jr(this, o, n), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks(); const l = a < this.ticks.length; - this._convertTicksToLabels(l ? Cs(this.ticks, a) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), r.display && (r.autoSkip || r.source === "auto") && (this.ticks = Fl(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate(); + this._convertTicksToLabels(l ? Cs(this.ticks, a) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), r.display && (r.autoSkip || r.source === "auto") && (this.ticks = zl(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate(); } configure() { let t = this.options.reverse, e, s; @@ -4919,7 +5028,7 @@ class Ft extends pt { return; } const h = this._getLabelSizes(), d = h.widest.width, u = h.highest.height, f = $(this.chart.width - d, 0, this.maxWidth); - a = t.offset ? this.maxWidth / s : f / (s - 1), d + 6 > a && (a = f / (s - (t.offset ? 0.5 : 1)), l = this.maxHeight - Gt(t.grid) - e.padding - Ps(t.title, this.chart.options.font), c = Math.sqrt(d * d + u * u), r = Ci(Math.min(Math.asin($((h.highest.height + 6) / a, -1, 1)), Math.asin($(l / c, -1, 1)) - Math.asin($(u / c, -1, 1)))), r = Math.max(n, Math.min(o, r))), this.labelRotation = r; + a = t.offset ? this.maxWidth / s : f / (s - 1), d + 6 > a && (a = f / (s - (t.offset ? 0.5 : 1)), l = this.maxHeight - Gt(t.grid) - e.padding - Ps(t.title, this.chart.options.font), c = Math.sqrt(d * d + u * u), r = Pi(Math.min(Math.asin($((h.highest.height + 6) / a, -1, 1)), Math.asin($(l / c, -1, 1)) - Math.asin($(u / c, -1, 1)))), r = Math.max(n, Math.min(o, r))), this.labelRotation = r; } afterCalculateLabelRotation() { I(this.options.afterCalculateLabelRotation, [ @@ -5010,7 +5119,7 @@ class Ft extends pt { _ = g[u], !A(_) && !B(_) && (v = Fe(n, b.data, b.gc, v, _), y += x); r.push(v), a.push(y), c = Math.max(v, c), h = Math.max(y, h); } - $l(o, e); + Yl(o, e); const w = r.indexOf(c), k = a.indexOf(h), M = (S) => ({ width: r[S] || 0, height: a[S] || 0 @@ -5039,7 +5148,7 @@ class Ft extends pt { getPixelForDecimal(t) { this._reversePixels && (t = 1 - t); const e = this._startPixel + t * this._length; - return Sr(this._alignToPixels ? Pt(this.chart, e, 0) : e); + return Cr(this._alignToPixels ? Pt(this.chart, e, 0) : e); } getDecimalForPixel(t) { const e = (t - this._startPixel) / this._length; @@ -5056,9 +5165,9 @@ class Ft extends pt { const e = this.ticks || []; if (t >= 0 && t < e.length) { const s = e[t]; - return s.$context || (s.$context = Ul(this.getContext(), t, s)); + return s.$context || (s.$context = Xl(this.getContext(), t, s)); } - return this.$context || (this.$context = Yl(this.chart.getContext(), this)); + return this.$context || (this.$context = Ul(this.chart.getContext(), this)); } _tickSize() { const t = this.options.ticks, e = st(this.labelRotation), s = Math.abs(Math.cos(e)), n = Math.abs(Math.sin(e)), o = this._getLabelSizes(), r = t.autoSkipPadding || 0, a = o ? o.widest.width + r : 0, l = o ? o.highest.height + r : 0; @@ -5101,7 +5210,7 @@ class Ft extends pt { const Q = C(n.ticks.maxTicksLimit, d), E = Math.max(1, Math.ceil(d / Q)); for (v = 0; v < d; v += E) { const z = this.getContext(v), W = o.setContext(z), it = a.setContext(z), U = W.lineWidth, zt = W.color, me = it.dash || [], Bt = it.dashOffset, Yt = W.tickWidth, Mt = W.tickColor, Ut = W.tickBorderDash || [], St = W.tickBorderDashOffset; - y = jl(this, v, l), y !== void 0 && (_ = Pt(s, y, U), c ? w = M = P = T = _ : k = S = D = Y = _, f.push({ + y = $l(this, v, l), y !== void 0 && (_ = Pt(s, y, U), c ? w = M = P = T = _ : k = S = D = Y = _, f.push({ tx1: w, ty1: k, tx2: M, @@ -5314,12 +5423,12 @@ class Ft extends pt { const o = j(s.font), r = G(s.padding), a = s.align; let l = o.lineHeight / 2; e === "bottom" || e === "center" || O(e) ? (l += r.bottom, B(s.text) && (l += o.lineHeight * (s.text.length - 1))) : l += r.top; - const { titleX: c, titleY: h, maxWidth: d, rotation: u } = Kl(this, l, e, a); + const { titleX: c, titleY: h, maxWidth: d, rotation: u } = ql(this, l, e, a); It(t, s.text, 0, 0, o, { color: s.color, maxWidth: d, rotation: u, - textAlign: Xl(a, e, n), + textAlign: Kl(a, e, n), textBaseline: "middle", translation: [ c, @@ -5388,11 +5497,11 @@ class Se { register(t) { const e = Object.getPrototypeOf(t); let s; - Jl(e) && (s = this.register(e)); + Zl(e) && (s = this.register(e)); const n = this.items, o = t.id, r = this.scope + "." + o; if (!o) throw new Error("class does not have id: " + t); - return o in n || (n[o] = t, ql(t, r, s), this.override && V.override(t.id, t.overrides)), r; + return o in n || (n[o] = t, Gl(t, r, s), this.override && V.override(t.id, t.overrides)), r; } get(t) { return this.items[t]; @@ -5402,15 +5511,15 @@ class Se { s in e && delete e[s], n && s in V[n] && (delete V[n][s], this.override && delete Et[s]); } } -function ql(i, t, e) { +function Gl(i, t, e) { const s = le(/* @__PURE__ */ Object.create(null), [ e ? V.get(e) : {}, V.get(t), i.defaults ]); - V.set(t, s), i.defaultRoutes && Gl(t, i.defaultRoutes), i.descriptors && V.describe(t, i.descriptors); + V.set(t, s), i.defaultRoutes && Jl(t, i.defaultRoutes), i.descriptors && V.describe(t, i.descriptors); } -function Gl(i, t) { +function Jl(i, t) { Object.keys(t).forEach((e) => { const s = e.split("."), n = s.pop(), o = [ i @@ -5418,10 +5527,10 @@ function Gl(i, t) { V.route(o, n, l, a); }); } -function Jl(i) { +function Zl(i) { return "id" in i && "defaults" in i; } -class Zl { +class Ql { constructor() { this.controllers = new Se(kt, "datasets", !0), this.elements = new Se(pt, "elements"), this.plugins = new Se(Object, "plugins"), this.scales = new Se(Ft, "scales"), this._typedRegistries = [ this.controllers, @@ -5483,7 +5592,7 @@ class Zl { }); } _exec(t, e, s) { - const n = Si(t); + const n = Ci(t); I(s["before" + n], [], s), e[t](s), I(s["after" + n], [], s); } _getRegistryForType(t) { @@ -5501,8 +5610,8 @@ class Zl { return n; } } -var ot = /* @__PURE__ */ new Zl(); -class Ql { +var ot = /* @__PURE__ */ new Ql(); +class tc { constructor() { this._init = void 0; } @@ -5535,15 +5644,15 @@ class Ql { return this._notifyStateChanges(t), e; } _createDescriptors(t, e) { - const s = t && t.config, n = C(s.options && s.options.plugins, {}), o = tc(s); - return n === !1 && !e ? [] : ic(t, o, n, e); + const s = t && t.config, n = C(s.options && s.options.plugins, {}), o = ec(s); + return n === !1 && !e ? [] : sc(t, o, n, e); } _notifyStateChanges(t) { const e = this._oldCache || [], s = this._cache, n = (o, r) => o.filter((a) => !r.some((l) => a.plugin.id === l.plugin.id)); this._notify(n(e, s), t, "stop"), this._notify(n(s, e), t, "start"); } } -function tc(i) { +function ec(i) { const t = {}, e = [], s = Object.keys(ot.plugins.items); for (let o = 0; o < s.length; o++) e.push(ot.getPlugin(s[o])); @@ -5557,16 +5666,16 @@ function tc(i) { localIds: t }; } -function ec(i, t) { +function ic(i, t) { return !t && i === !1 ? null : i === !0 ? {} : i; } -function ic(i, { plugins: t, localIds: e }, s, n) { +function sc(i, { plugins: t, localIds: e }, s, n) { const o = [], r = i.getContext(); for (const a of t) { - const l = a.id, c = ec(s[l], n); + const l = a.id, c = ic(s[l], n); c !== null && o.push({ plugin: a, - options: sc(i.config, { + options: nc(i.config, { plugin: a, local: e[l] }, c, r) @@ -5574,7 +5683,7 @@ function ic(i, { plugins: t, localIds: e }, s, n) { } return o; } -function sc(i, { plugin: t, local: e }, s, n) { +function nc(i, { plugin: t, local: e }, s, n) { const o = i.pluginScopeKeys(t), r = i.getOptionScopes(s, o); return e && t.defaults && r.push(t.defaults), i.createResolver(r, n, [ "" @@ -5584,32 +5693,32 @@ function sc(i, { plugin: t, local: e }, s, n) { allKeys: !0 }); } -function gi(i, t) { +function mi(i, t) { const e = V.datasets[i] || {}; return ((t.datasets || {})[i] || {}).indexAxis || t.indexAxis || e.indexAxis || "x"; } -function nc(i, t) { +function oc(i, t) { let e = i; return i === "_index_" ? e = t : i === "_value_" && (e = t === "x" ? "y" : "x"), e; } -function oc(i, t) { +function rc(i, t) { return i === t ? "_index_" : "_value_"; } function Ds(i) { if (i === "x" || i === "y" || i === "r") return i; } -function rc(i) { +function ac(i) { if (i === "top" || i === "bottom") return "x"; if (i === "left" || i === "right") return "y"; } -function mi(i, ...t) { +function bi(i, ...t) { if (Ds(i)) return i; for (const e of t) { - const s = e.axis || rc(e.position) || i.length > 1 && Ds(i[0].toLowerCase()); + const s = e.axis || ac(e.position) || i.length > 1 && Ds(i[0].toLowerCase()); if (s) return s; } @@ -5621,7 +5730,7 @@ function As(i, t, e) { axis: t }; } -function ac(i, t) { +function lc(i, t) { if (t.data && t.data.datasets) { const e = t.data.datasets.filter((s) => s.xAxisID === i || s.yAxisID === i); if (e.length) @@ -5629,17 +5738,17 @@ function ac(i, t) { } return {}; } -function lc(i, t) { +function cc(i, t) { const e = Et[i.type] || { scales: {} - }, s = t.scales || {}, n = gi(i.type, t), o = /* @__PURE__ */ Object.create(null); + }, s = t.scales || {}, n = mi(i.type, t), o = /* @__PURE__ */ Object.create(null); return Object.keys(s).forEach((r) => { const a = s[r]; if (!O(a)) return console.error(`Invalid scale configuration for scale: ${r}`); if (a._proxy) return console.warn(`Ignoring resolver passed as options for scale: ${r}`); - const l = mi(r, a, ac(r, i), V.scales[a.type]), c = oc(l, n), h = e.scales || {}; + const l = bi(r, a, lc(r, i), V.scales[a.type]), c = rc(l, n), h = e.scales || {}; o[r] = se(/* @__PURE__ */ Object.create(null), [ { axis: l @@ -5649,9 +5758,9 @@ function lc(i, t) { h[c] ]); }), i.data.datasets.forEach((r) => { - const a = r.type || i.type, l = r.indexAxis || gi(a, t), h = (Et[a] || {}).scales || {}; + const a = r.type || i.type, l = r.indexAxis || mi(a, t), h = (Et[a] || {}).scales || {}; Object.keys(h).forEach((d) => { - const u = nc(d, l), f = r[u + "AxisID"] || u; + const u = oc(d, l), f = r[u + "AxisID"] || u; o[f] = o[f] || /* @__PURE__ */ Object.create(null), se(o[f], [ { axis: u @@ -5670,12 +5779,12 @@ function lc(i, t) { } function Gn(i) { const t = i.options || (i.options = {}); - t.plugins = C(t.plugins, {}), t.scales = lc(i, t); + t.plugins = C(t.plugins, {}), t.scales = cc(i, t); } function Jn(i) { return i = i || {}, i.datasets = i.datasets || [], i.labels = i.labels || [], i; } -function cc(i) { +function hc(i) { return i = i || {}, i.data = Jn(i.data), Gn(i), i; } const Os = /* @__PURE__ */ new Map(), Zn = /* @__PURE__ */ new Set(); @@ -5687,9 +5796,9 @@ const Jt = (i, t, e) => { const s = yt(t, e); s !== void 0 && i.add(s); }; -class hc { +class dc { constructor(t) { - this._config = cc(t), this._scopeCache = /* @__PURE__ */ new Map(), this._resolverCache = /* @__PURE__ */ new Map(); + this._config = hc(t), this._scopeCache = /* @__PURE__ */ new Map(), this._resolverCache = /* @__PURE__ */ new Map(); } get platform() { return this._config.platform; @@ -5772,7 +5881,7 @@ class hc { return a; const l = /* @__PURE__ */ new Set(); e.forEach((h) => { - t && (l.add(t), h.forEach((d) => Jt(l, t, d))), h.forEach((d) => Jt(l, n, d)), h.forEach((d) => Jt(l, Et[o] || {}, d)), h.forEach((d) => Jt(l, V, d)), h.forEach((d) => Jt(l, fi, d)); + t && (l.add(t), h.forEach((d) => Jt(l, t, d))), h.forEach((d) => Jt(l, n, d)), h.forEach((d) => Jt(l, Et[o] || {}, d)), h.forEach((d) => Jt(l, V, d)), h.forEach((d) => Jt(l, pi, d)); }); const c = Array.from(l); return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), Zn.has(e) && r.set(e, c), c; @@ -5787,7 +5896,7 @@ class hc { type: e }, V, - fi + pi ]; } resolveNamedOptions(t, e, s, n = [ @@ -5797,7 +5906,7 @@ class hc { $shared: !0 }, { resolver: r, subPrefixes: a } = Ts(this._resolverCache, t, n); let l = r; - if (uc(r, e)) { + if (fc(r, e)) { o.$shared = !1, s = vt(s) ? s() : s; const c = this.createResolver(t, s, a); l = jt(r, s, c); @@ -5819,22 +5928,22 @@ function Ts(i, t, e) { const n = e.join(); let o = s.get(n); return o || (o = { - resolver: Ti(t, e), + resolver: Li(t, e), subPrefixes: e.filter((a) => !a.toLowerCase().includes("hover")) }, s.set(n, o)), o; } -const dc = (i) => O(i) && Object.getOwnPropertyNames(i).some((t) => vt(i[t])); -function uc(i, t) { +const uc = (i) => O(i) && Object.getOwnPropertyNames(i).some((t) => vt(i[t])); +function fc(i, t) { const { isScriptable: e, isIndexable: s } = An(i); for (const n of t) { const o = e(n), r = s(n), a = (r || o) && i[n]; - if (o && (vt(a) || dc(a)) || r && B(a)) + if (o && (vt(a) || uc(a)) || r && B(a)) return !0; } return !1; } -var fc = "4.5.1"; -const pc = [ +var pc = "4.5.1"; +const gc = [ "top", "bottom", "left", @@ -5842,7 +5951,7 @@ const pc = [ "chartArea" ]; function Ls(i, t) { - return i === "top" || i === "bottom" || pc.indexOf(i) === -1 && t === "x"; + return i === "top" || i === "bottom" || gc.indexOf(i) === -1 && t === "x"; } function Rs(i, t) { return function(e, s) { @@ -5855,20 +5964,20 @@ function Es(i) { i ], t); } -function gc(i) { +function mc(i) { const t = i.chart, e = t.options.animation; I(e && e.onProgress, [ i ], t); } function Qn(i) { - return Ei() && typeof i == "string" ? i = document.getElementById(i) : i && i.length && (i = i[0]), i && i.canvas && (i = i.canvas), i; + return Ii() && typeof i == "string" ? i = document.getElementById(i) : i && i.length && (i = i[0]), i && i.canvas && (i = i.canvas), i; } const Te = {}, Is = (i) => { const t = Qn(i); return Object.values(Te).filter((e) => e.canvas === t).pop(); }; -function mc(i, t, e) { +function bc(i, t, e) { const s = Object.keys(i); for (const n of s) { const o = +n; @@ -5878,7 +5987,7 @@ function mc(i, t, e) { } } } -function bc(i, t, e, s) { +function xc(i, t, e, s) { return !e || i.type === "mouseout" ? null : s ? t : i; } class Le { @@ -5886,7 +5995,7 @@ class Le { static instances = Te; static overrides = Et; static registry = ot; - static version = fc; + static version = pc; static getChart = Is; static register(...t) { ot.add(...t), Fs(); @@ -5895,17 +6004,17 @@ class Le { ot.remove(...t), Fs(); } constructor(t, e) { - const s = this.config = new hc(e), n = Qn(t), o = Is(n); + const s = this.config = new dc(e), n = Qn(t), o = Is(n); if (o) throw new Error("Canvas is already in use. Chart with ID '" + o.id + "' must be destroyed before the canvas with ID '" + o.canvas.id + "' can be reused."); const r = s.createResolver(s.chartOptionScopes(), this.getContext()); - this.platform = new (s.platform || Il(n))(), this.platform.updateConfig(s); + this.platform = new (s.platform || Fl(n))(), this.platform.updateConfig(s); const a = this.platform.acquireContext(n, r.aspectRatio), l = a && a.canvas, c = l && l.height, h = l && l.width; - if (this.id = ur(), this.ctx = a, this.canvas = l, this.width = h, this.height = c, this._options = r, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new Ql(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = Ar((d) => this.update(d), r.resizeDelay || 0), this._dataChanges = [], Te[this.id] = this, !a || !l) { + if (this.id = fr(), this.ctx = a, this.canvas = l, this.width = h, this.height = c, this._options = r, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new tc(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = Or((d) => this.update(d), r.resizeDelay || 0), this._dataChanges = [], Te[this.id] = this, !a || !l) { console.error("Failed to create chart: can't acquire context from the given item"); return; } - lt.listen(this, "complete", Es), lt.listen(this, "progress", gc), this._initialize(), this.attached && this.update(); + lt.listen(this, "complete", Es), lt.listen(this, "progress", mc), this._initialize(), this.attached && this.update(); } get aspectRatio() { const { options: { aspectRatio: t, maintainAspectRatio: e }, width: s, height: n, _aspectRatio: o } = this; @@ -5960,14 +6069,14 @@ class Le { const t = this.options, e = t.scales, s = this.scales, n = Object.keys(s).reduce((r, a) => (r[a] = !1, r), {}); let o = []; e && (o = o.concat(Object.keys(e).map((r) => { - const a = e[r], l = mi(r, a), c = l === "r", h = l === "x"; + const a = e[r], l = bi(r, a), c = l === "r", h = l === "x"; return { options: a, dposition: c ? "chartArea" : h ? "bottom" : "left", dtype: c ? "radialLinear" : h ? "category" : "linear" }; }))), R(o, (r) => { - const a = r.options, l = a.id, c = mi(l, a), h = C(a.type, r.dtype); + const a = r.options, l = a.id, c = bi(l, a), h = C(a.type, r.dtype); (a.position === void 0 || Ls(a.position, c) !== Ls(r.dposition)) && (a.position = r.dposition), n[l] = !0; let d = null; if (l in s && s[l].type === h) @@ -6010,7 +6119,7 @@ class Le { const o = e[s]; let r = this.getDatasetMeta(s); const a = o.type || this.config.type; - if (r.type && r.type !== a && (this._destroyDatasetMeta(s), r = this.getDatasetMeta(s)), r.type = a, r.indexAxis = o.indexAxis || gi(a, this.options), r.order = o.order || 0, r.index = s, r.label = "" + o.label, r.visible = this.isDatasetVisible(s), r.controller) + if (r.type && r.type !== a && (this._destroyDatasetMeta(s), r = this.getDatasetMeta(s)), r.type = a, r.indexAxis = o.indexAxis || mi(a, this.options), r.order = o.order || 0, r.index = s, r.label = "" + o.label, r.visible = this.isDatasetVisible(s), r.controller) r.controller.updateIndex(s), r.controller.linkScales(); else { const l = ot.getController(a), { datasetElementType: c, dataElementType: h } = V.datasets[a]; @@ -6067,7 +6176,7 @@ class Le { const { _hiddenIndices: t } = this, e = this._getUniformDataChanges() || []; for (const { method: s, start: n, count: o } of e) { const r = s === "_removeElements" ? -o : o; - mc(t, n, r); + bc(t, n, r); } } _getUniformDataChanges() { @@ -6181,7 +6290,7 @@ class Le { return ft(t, this.chartArea, this._minPadding); } getElementsAtEventForMode(t, e, s, n) { - const o = pl.modes[e]; + const o = gl.modes[e]; return typeof o == "function" ? o(this, t, s, n) : []; } getDatasetMeta(t) { @@ -6340,7 +6449,7 @@ class Le { return s.cancelable = !1, this.notifyPlugins("afterEvent", s, n), (o || s.changed) && this.render(), this; } _handleEvent(t, e, s) { - const { _active: n = [], options: o } = this, r = e, a = this._getActiveElements(t, n, s, r), l = xr(t), c = bc(t, this._lastEvent, s, l); + const { _active: n = [], options: o } = this, r = e, a = this._getActiveElements(t, n, s, r), l = _r(t), c = xc(t, this._lastEvent, s, l); s && (this._lastEvent = null, I(o.onHover, [ t, a, @@ -6365,7 +6474,7 @@ class Le { function Fs() { return R(Le.instances, (i) => i._plugins.invalidate()); } -function xc(i, t, e) { +function _c(i, t, e) { const { startAngle: s, x: n, y: o, outerRadius: r, innerRadius: a, options: l } = t, { borderWidth: c, borderJoinStyle: h } = l, d = Math.min(c / r, K(s - e)); if (i.beginPath(), i.arc(n, o, r - c / 2, s + d / 2, e - d / 2), a > 0) { const u = Math.min(c / a, K(s - e)); @@ -6381,21 +6490,21 @@ function xc(i, t, e) { } i.closePath(), i.moveTo(0, 0), i.rect(0, 0, i.canvas.width, i.canvas.height), i.clip("evenodd"); } -function _c(i, t, e) { +function yc(i, t, e) { const { startAngle: s, pixelMargin: n, x: o, y: r, outerRadius: a, innerRadius: l } = t; let c = n / a; i.beginPath(), i.arc(o, r, a, s - c, e + c), l > n ? (c = n / l, i.arc(o, r, l, e + c, s - c, !0)) : i.arc(o, r, n, e + H, s - H), i.closePath(), i.clip(); } -function yc(i) { - return Oi(i, [ +function vc(i) { + return Ti(i, [ "outerStart", "outerEnd", "innerStart", "innerEnd" ]); } -function vc(i, t, e, s) { - const n = yc(i.options.borderRadius), o = (e - t) / 2, r = Math.min(o, s * t / 2), a = (l) => { +function wc(i, t, e, s) { + const n = vc(i.options.borderRadius), o = (e - t) / 2, r = Math.min(o, s * t / 2), a = (l) => { const c = (e - Math.min(o, l)) * s / 2; return $(l, 0, Math.min(o, c)); }; @@ -6420,7 +6529,7 @@ function Ve(i, t, e, s, n, o) { const E = h > 0 ? h - s : 0, z = d > 0 ? d - s : 0, W = (E + z) / 2, it = W !== 0 ? g * W / (W + s) : g; f = (g - it) / 2; } - const p = Math.max(1e-3, g * d - e / L) / d, m = (g - p) / 2, b = l + m + f, x = n - m - f, { outerStart: v, outerEnd: y, innerStart: _, innerEnd: w } = vc(t, u, d, x - b), k = d - v, M = d - y, S = b + v / k, P = x - y / M, D = u + _, T = u + w, Y = b + _ / D, Q = x - w / T; + const p = Math.max(1e-3, g * d - e / L) / d, m = (g - p) / 2, b = l + m + f, x = n - m - f, { outerStart: v, outerEnd: y, innerStart: _, innerEnd: w } = wc(t, u, d, x - b), k = d - v, M = d - y, S = b + v / k, P = x - y / M, D = u + _, T = u + w, Y = b + _ / D, Q = x - w / T; if (i.beginPath(), o) { const E = (S + P) / 2; if (i.arc(r, a, d, S, E), i.arc(r, a, d, E, P), y > 0) { @@ -6451,7 +6560,7 @@ function Ve(i, t, e, s, n, o) { } i.closePath(); } -function wc(i, t, e, s, n) { +function kc(i, t, e, s, n) { const { fullCircles: o, startAngle: r, circumference: a } = t; let l = t.endAngle; if (o) { @@ -6462,7 +6571,7 @@ function wc(i, t, e, s, n) { } return Ve(i, t, e, s, l, n), i.fill(), l; } -function kc(i, t, e, s, n) { +function Mc(i, t, e, s, n) { const { fullCircles: o, startAngle: r, circumference: a, options: l } = t, { borderWidth: c, borderJoinStyle: h, borderDash: d, borderDashOffset: u, borderRadius: f } = l, g = l.borderAlign === "inner"; if (!c) return; @@ -6474,9 +6583,9 @@ function kc(i, t, e, s, n) { i.stroke(); isNaN(a) || (p = r + (a % F || F)); } - g && _c(i, t, p), l.selfJoin && p - r >= L && f === 0 && h !== "miter" && xc(i, t, p), o || (Ve(i, t, e, s, p, n), i.stroke()); + g && yc(i, t, p), l.selfJoin && p - r >= L && f === 0 && h !== "miter" && _c(i, t, p), o || (Ve(i, t, e, s, p, n), i.stroke()); } -class Mc extends pt { +class Sc extends pt { static id = "arc"; static defaults = { borderAlign: "center", @@ -6550,17 +6659,17 @@ class Mc extends pt { const a = (this.startAngle + this.endAngle) / 2; t.translate(Math.cos(a) * n, Math.sin(a) * n); const l = 1 - Math.sin(Math.min(L, s || 0)), c = n * l; - t.fillStyle = e.backgroundColor, t.strokeStyle = e.borderColor, wc(t, this, c, o, r), kc(t, this, c, o, r), t.restore(); + t.fillStyle = e.backgroundColor, t.strokeStyle = e.borderColor, kc(t, this, c, o, r), Mc(t, this, c, o, r), t.restore(); } } function to(i, t, e = t) { i.lineCap = C(e.borderCapStyle, t.borderCapStyle), i.setLineDash(C(e.borderDash, t.borderDash)), i.lineDashOffset = C(e.borderDashOffset, t.borderDashOffset), i.lineJoin = C(e.borderJoinStyle, t.borderJoinStyle), i.lineWidth = C(e.borderWidth, t.borderWidth), i.strokeStyle = C(e.borderColor, t.borderColor); } -function Sc(i, t, e) { +function Cc(i, t, e) { i.lineTo(e.x, e.y); } -function Cc(i) { - return i.stepped ? Wr : i.tension || i.cubicInterpolationMode === "monotone" ? Hr : Sc; +function Pc(i) { + return i.stepped ? Hr : i.tension || i.cubicInterpolationMode === "monotone" ? jr : Cc; } function eo(i, t, e = {}) { const s = i.length, { start: n = 0, end: o = s - 1 } = e, { start: r, end: a } = t, l = Math.max(n, r), c = Math.min(o, a), h = n < r && o < r || n > a && o > a; @@ -6571,14 +6680,14 @@ function eo(i, t, e = {}) { ilen: c < l && !h ? s + c - l : c - l }; } -function Pc(i, t, e, s) { - const { points: n, options: o } = t, { count: r, start: a, loop: l, ilen: c } = eo(n, e, s), h = Cc(o); +function Dc(i, t, e, s) { + const { points: n, options: o } = t, { count: r, start: a, loop: l, ilen: c } = eo(n, e, s), h = Pc(o); let { move: d = !0, reverse: u } = s || {}, f, g, p; for (f = 0; f <= c; ++f) g = n[(a + (u ? c - f : f)) % r], !g.skip && (d ? (i.moveTo(g.x, g.y), d = !1) : h(i, p, g, u, o.stepped), p = g); return l && (g = n[(a + (u ? c : 0)) % r], h(i, p, g, u, o.stepped)), !!l; } -function Dc(i, t, e, s) { +function Ac(i, t, e, s) { const n = t.points, { count: o, start: r, ilen: a } = eo(n, e, s), { move: l = !0, reverse: c } = s || {}; let h = 0, d = 0, u, f, g, p, m, b; const x = (y) => (r + (c ? a - y : y)) % o, v = () => { @@ -6592,28 +6701,28 @@ function Dc(i, t, e, s) { } v(); } -function bi(i) { +function xi(i) { const t = i.options, e = t.borderDash && t.borderDash.length; - return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? Dc : Pc; + return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? Ac : Dc; } -function Ac(i) { - return i.stepped ? ya : i.tension || i.cubicInterpolationMode === "monotone" ? va : Tt; +function Oc(i) { + return i.stepped ? va : i.tension || i.cubicInterpolationMode === "monotone" ? wa : Tt; } -function Oc(i, t, e, s) { +function Tc(i, t, e, s) { let n = t._path; n || (n = t._path = new Path2D(), t.path(n, e, s) && n.closePath()), to(i, t.options), i.stroke(n); } -function Tc(i, t, e, s) { - const { segments: n, options: o } = t, r = bi(t); +function Lc(i, t, e, s) { + const { segments: n, options: o } = t, r = xi(t); for (const a of n) to(i, o, a.style), i.beginPath(), r(i, t, a, { start: e, end: e + s - 1 }) && i.closePath(), i.stroke(); } -const Lc = typeof Path2D == "function"; -function Rc(i, t, e, s) { - Lc && !t.options.segment ? Oc(i, t, e, s) : Tc(i, t, e, s); +const Rc = typeof Path2D == "function"; +function Ec(i, t, e, s) { + Rc && !t.options.segment ? Tc(i, t, e, s) : Lc(i, t, e, s); } class Ue extends pt { static id = "line"; @@ -6645,7 +6754,7 @@ class Ue extends pt { const s = this.options; if ((s.tension || s.cubicInterpolationMode === "monotone") && !s.stepped && !this._pointsUpdated) { const n = s.spanGaps ? this._loop : this._fullLoop; - ua(this._points, s, t, n, e), this._pointsUpdated = !0; + fa(this._points, s, t, n, e), this._pointsUpdated = !0; } } set points(t) { @@ -6655,7 +6764,7 @@ class Ue extends pt { return this._points; } get segments() { - return this._segments || (this._segments = Pa(this, this.options.segment)); + return this._segments || (this._segments = Da(this, this.options.segment)); } first() { const t = this.segments, e = this.points; @@ -6673,7 +6782,7 @@ class Ue extends pt { }); if (!r.length) return; - const a = [], l = Ac(s); + const a = [], l = Oc(s); let c, h; for (c = 0, h = r.length; c < h; ++c) { const { start: d, end: u } = r[c], f = o[d], g = o[u]; @@ -6687,10 +6796,10 @@ class Ue extends pt { return a.length === 1 ? a[0] : a; } pathSegment(t, e, s) { - return bi(this)(t, this, e, s); + return xi(this)(t, this, e, s); } path(t, e, s) { - const n = this.segments, o = bi(this); + const n = this.segments, o = xi(this); let r = this._loop; e = e || 0, s = s || this.points.length - e; for (const a of n) @@ -6702,7 +6811,7 @@ class Ue extends pt { } draw(t, e, s, n) { const o = this.options || {}; - (this.points || []).length && o.borderWidth && (t.save(), Rc(t, this, s, n), t.restore()), this.animated && (this._pointsUpdated = !1, this._path = void 0); + (this.points || []).length && o.borderWidth && (t.save(), Ec(t, this, s, n), t.restore()), this.animated && (this._pointsUpdated = !1, this._path = void 0); } } function zs(i, t, e, s) { @@ -6711,7 +6820,7 @@ function zs(i, t, e, s) { ], s); return Math.abs(t - o) < n.radius + n.hitRadius; } -class Ec extends pt { +class Ic extends pt { static id = "point"; parsed; skip; @@ -6770,7 +6879,7 @@ class Ec extends pt { } draw(t, e) { const s = this.options; - this.skip || s.radius < 0.1 || !ft(this, e, this.size(s) / 2) || (t.strokeStyle = s.borderColor, t.lineWidth = s.borderWidth, t.fillStyle = s.backgroundColor, pi(t, s, this.x, this.y)); + this.skip || s.radius < 0.1 || !ft(this, e, this.size(s) / 2) || (t.strokeStyle = s.borderColor, t.lineWidth = s.borderWidth, t.fillStyle = s.backgroundColor, gi(t, s, this.x, this.y)); } getRange() { const t = this.options || {}; @@ -6796,7 +6905,7 @@ function io(i, t) { function xt(i, t, e, s) { return i ? 0 : $(t, e, s); } -function Ic(i, t, e) { +function Fc(i, t, e) { const s = i.options.borderWidth, n = i.borderSkipped, o = Dn(s); return { t: xt(n.top, o.top, 0, e), @@ -6805,7 +6914,7 @@ function Ic(i, t, e) { l: xt(n.left, o.left, 0, t) }; } -function Fc(i, t, e) { +function zc(i, t, e) { const { enableBorderRadius: s } = i.getProps([ "enableBorderRadius" ]), n = i.options.borderRadius, o = Lt(n), r = Math.min(t, e), a = i.borderSkipped, l = s || O(n); @@ -6816,8 +6925,8 @@ function Fc(i, t, e) { bottomRight: xt(!l || a.bottom || a.right, o.bottomRight, 0, r) }; } -function zc(i) { - const t = io(i), e = t.right - t.left, s = t.bottom - t.top, n = Ic(i, e / 2, s / 2), o = Fc(i, e / 2, s / 2); +function Bc(i) { + const t = io(i), e = t.right - t.left, s = t.bottom - t.top, n = Fc(i, e / 2, s / 2), o = zc(i, e / 2, s / 2); return { outer: { x: t.left, @@ -6840,17 +6949,17 @@ function zc(i) { } }; } -function ai(i, t, e, s) { +function li(i, t, e, s) { const n = t === null, o = e === null, a = i && !(n && o) && io(i, s); return a && (n || dt(t, a.left, a.right)) && (o || dt(e, a.top, a.bottom)); } -function Bc(i) { +function Vc(i) { return i.topLeft || i.topRight || i.bottomLeft || i.bottomRight; } -function Vc(i, t) { +function Nc(i, t) { i.rect(t.x, t.y, t.w, t.h); } -function li(i, t, e = {}) { +function ci(i, t, e = {}) { const s = i.x !== e.x ? -t : 0, n = i.y !== e.y ? -t : 0, o = (i.x + i.w !== e.x + e.w ? t : 0) - s, r = (i.y + i.h !== e.y + e.h ? t : 0) - n; return { x: i.x + s, @@ -6860,7 +6969,7 @@ function li(i, t, e = {}) { radius: i.radius }; } -class Nc extends pt { +class Wc extends pt { static id = "bar"; static defaults = { borderSkipped: "start", @@ -6877,17 +6986,17 @@ class Nc extends pt { super(), this.options = void 0, this.horizontal = void 0, this.base = void 0, this.width = void 0, this.height = void 0, this.inflateAmount = void 0, t && Object.assign(this, t); } draw(t) { - const { inflateAmount: e, options: { borderColor: s, backgroundColor: n } } = this, { inner: o, outer: r } = zc(this), a = Bc(r.radius) ? de : Vc; - t.save(), (r.w !== o.w || r.h !== o.h) && (t.beginPath(), a(t, li(r, e, o)), t.clip(), a(t, li(o, -e, r)), t.fillStyle = s, t.fill("evenodd")), t.beginPath(), a(t, li(o, e)), t.fillStyle = n, t.fill(), t.restore(); + const { inflateAmount: e, options: { borderColor: s, backgroundColor: n } } = this, { inner: o, outer: r } = Bc(this), a = Vc(r.radius) ? de : Nc; + t.save(), (r.w !== o.w || r.h !== o.h) && (t.beginPath(), a(t, ci(r, e, o)), t.clip(), a(t, ci(o, -e, r)), t.fillStyle = s, t.fill("evenodd")), t.beginPath(), a(t, ci(o, e)), t.fillStyle = n, t.fill(), t.restore(); } inRange(t, e, s) { - return ai(this, t, e, s); + return li(this, t, e, s); } inXRange(t, e) { - return ai(this, t, null, e); + return li(this, t, null, e); } inYRange(t, e) { - return ai(this, null, t, e); + return li(this, null, t, e); } getCenterPoint(t) { const { x: e, y: s, base: n, horizontal: o } = this.getProps([ @@ -6905,14 +7014,14 @@ class Nc extends pt { return t === "x" ? this.width / 2 : this.height / 2; } } -var Wc = /* @__PURE__ */ Object.freeze({ +var Hc = /* @__PURE__ */ Object.freeze({ __proto__: null, - ArcElement: Mc, - BarElement: Nc, + ArcElement: Sc, + BarElement: Wc, LineElement: Ue, - PointElement: Ec + PointElement: Ic }); -const xi = [ +const _i = [ "rgb(54, 162, 235)", "rgb(255, 99, 132)", "rgb(255, 159, 64)", @@ -6921,27 +7030,27 @@ const xi = [ "rgb(153, 102, 255)", "rgb(201, 203, 207)" // grey -], Bs = /* @__PURE__ */ xi.map((i) => i.replace("rgb(", "rgba(").replace(")", ", 0.5)")); +], Bs = /* @__PURE__ */ _i.map((i) => i.replace("rgb(", "rgba(").replace(")", ", 0.5)")); function so(i) { - return xi[i % xi.length]; + return _i[i % _i.length]; } function no(i) { return Bs[i % Bs.length]; } -function Hc(i, t) { +function jc(i, t) { return i.borderColor = so(t), i.backgroundColor = no(t), ++t; } -function jc(i, t) { +function $c(i, t) { return i.backgroundColor = i.data.map(() => so(t++)), t; } -function $c(i, t) { +function Yc(i, t) { return i.backgroundColor = i.data.map(() => no(t++)), t; } -function Yc(i) { +function Uc(i) { let t = 0; return (e, s) => { const n = i.getDatasetMeta(s).controller; - n instanceof Fi ? t = jc(e, t) : n instanceof $n ? t = $c(e, t) : n && (t = Hc(e, t)); + n instanceof zi ? t = $c(e, t) : n instanceof $n ? t = Yc(e, t) : n && (t = jc(e, t)); }; } function Vs(i) { @@ -6951,13 +7060,13 @@ function Vs(i) { return !0; return !1; } -function Uc(i) { +function Xc(i) { return i && (i.borderColor || i.backgroundColor); } -function Xc() { +function Kc() { return V.borderColor !== "rgba(0,0,0,0.1)" || V.backgroundColor !== "rgba(0,0,0,0.1)"; } -var Kc = { +var qc = { id: "colors", defaults: { enabled: !0, @@ -6966,14 +7075,14 @@ var Kc = { beforeLayout(i, t, e) { if (!e.enabled) return; - const { data: { datasets: s }, options: n } = i.config, { elements: o } = n, r = Vs(s) || Uc(n) || o && Vs(o) || Xc(); + const { data: { datasets: s }, options: n } = i.config, { elements: o } = n, r = Vs(s) || Xc(n) || o && Vs(o) || Kc(); if (!e.forceOverride && r) return; - const a = Yc(i); + const a = Uc(i); s.forEach(a); } }; -function qc(i, t, e, s, n) { +function Gc(i, t, e, s, n) { const o = n.samples || s; if (o >= e) return i.slice(t, t + e); @@ -6994,7 +7103,7 @@ function qc(i, t, e, s, n) { } return r[l++] = i[c], r; } -function Gc(i, t, e, s) { +function Jc(i, t, e, s) { let n = 0, o = 0, r, a, l, c, h, d, u, f, g, p; const m = [], b = t + e - 1, x = i[t].x, y = i[b].x - x; for (r = t; r < t + e; ++r) { @@ -7035,7 +7144,7 @@ function Ns(i) { oo(t); }); } -function Jc(i, t) { +function Zc(i, t) { const e = t.length; let s = 0, n; const { iScale: o } = i, { min: r, max: a, minDefined: l, maxDefined: c } = o.getUserBounds(); @@ -7044,7 +7153,7 @@ function Jc(i, t) { count: n }; } -var Zc = { +var Qc = { id: "decimation", defaults: { algorithm: "min-max", @@ -7066,7 +7175,7 @@ var Zc = { const h = i.scales[l.xAxisID]; if (h.type !== "linear" && h.type !== "time" || i.options.parsing) return; - let { start: d, count: u } = Jc(l, c); + let { start: d, count: u } = Zc(l, c); const f = e.threshold || 4 * s; if (u <= f) { oo(n); @@ -7085,10 +7194,10 @@ var Zc = { let g; switch (e.algorithm) { case "lttb": - g = qc(c, d, u, s, e); + g = Gc(c, d, u, s, e); break; case "min-max": - g = Gc(c, d, u, s); + g = Jc(c, d, u, s); break; default: throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`); @@ -7100,12 +7209,12 @@ var Zc = { Ns(i); } }; -function Qc(i, t, e) { +function th(i, t, e) { const s = i.segments, n = i.points, o = t.points, r = []; for (const a of s) { let { start: l, end: c } = a; c = Xe(l, c, n); - const h = _i(e, n[l], n[c], a.loop); + const h = yi(e, n[l], n[c], a.loop); if (!t.segments) { r.push({ source: a, @@ -7117,7 +7226,7 @@ function Qc(i, t, e) { } const d = Vn(t, h); for (const u of d) { - const f = _i(e, o[u.start], o[u.end], u.loop), g = Bn(a, n, f); + const f = yi(e, o[u.start], o[u.end], u.loop), g = Bn(a, n, f); for (const p of g) r.push({ source: p, @@ -7133,7 +7242,7 @@ function Qc(i, t, e) { } return r; } -function _i(i, t, e, s) { +function yi(i, t, e, s) { if (s) return; let n = t[i], o = e[i]; @@ -7143,7 +7252,7 @@ function _i(i, t, e, s) { end: o }; } -function th(i, t) { +function eh(i, t) { const { x: e = null, y: s = null } = i || {}, n = t.points, o = []; return t.segments.forEach(({ start: r, end: a }) => { a = Xe(r, a, n); @@ -7176,7 +7285,7 @@ function Ws(i, t, e, s) { } function ro(i, t) { let e = [], s = !1; - return B(i) ? (s = !0, e = i) : e = th(i, t), e.length ? new Ue({ + return B(i) ? (s = !0, e = i) : e = eh(i, t), e.length ? new Ue({ points: e, options: { tension: 0 @@ -7188,7 +7297,7 @@ function ro(i, t) { function Hs(i) { return i && i.fill !== !1; } -function eh(i, t, e) { +function ih(i, t, e) { let n = i[t].fill; const o = [ t @@ -7207,12 +7316,12 @@ function eh(i, t, e) { } return !1; } -function ih(i, t, e) { - const s = rh(i); +function sh(i, t, e) { + const s = ah(i); if (O(s)) return isNaN(s.value) ? !1 : s; let n = parseFloat(s); - return N(n) && Math.floor(n) === n ? sh(s[0], t, n, e) : [ + return N(n) && Math.floor(n) === n ? nh(s[0], t, n, e) : [ "origin", "start", "end", @@ -7220,24 +7329,24 @@ function ih(i, t, e) { "shape" ].indexOf(s) >= 0 && s; } -function sh(i, t, e, s) { +function nh(i, t, e, s) { return (i === "-" || i === "+") && (e = t + e), e === t || e < 0 || e >= s ? !1 : e; } -function nh(i, t) { +function oh(i, t) { let e = null; return i === "start" ? e = t.bottom : i === "end" ? e = t.top : O(i) ? e = t.getPixelForValue(i.value) : t.getBasePixel && (e = t.getBasePixel()), e; } -function oh(i, t, e) { +function rh(i, t, e) { let s; return i === "start" ? s = e : i === "end" ? s = t.options.reverse ? t.min : t.max : O(i) ? s = i.value : s = t.getBaseValue(), s; } -function rh(i) { +function ah(i) { const t = i.options, e = t.fill; let s = C(e && e.target, e); return s === void 0 && (s = !!t.backgroundColor), s === !1 || s === null ? !1 : s === !0 ? "origin" : s; } -function ah(i) { - const { scale: t, index: e, line: s } = i, n = [], o = s.segments, r = s.points, a = lh(t, e); +function lh(i) { + const { scale: t, index: e, line: s } = i, n = [], o = s.segments, r = s.points, a = ch(t, e); a.push(ro({ x: null, y: t.bottom @@ -7245,14 +7354,14 @@ function ah(i) { for (let l = 0; l < o.length; l++) { const c = o[l]; for (let h = c.start; h <= c.end; h++) - ch(n, r[h], a); + hh(n, r[h], a); } return new Ue({ points: n, options: {} }); } -function lh(i, t) { +function ch(i, t) { const e = [], s = i.getMatchingVisibleMetas("line"); for (let n = 0; n < s.length; n++) { const o = s[n]; @@ -7262,10 +7371,10 @@ function lh(i, t) { } return e; } -function ch(i, t, e) { +function hh(i, t, e) { const s = []; for (let n = 0; n < e.length; n++) { - const o = e[n], { first: r, last: a, point: l } = hh(o, t, "x"); + const o = e[n], { first: r, last: a, point: l } = dh(o, t, "x"); if (!(!l || r && a)) { if (r) s.unshift(l); @@ -7275,7 +7384,7 @@ function ch(i, t, e) { } i.push(...s); } -function hh(i, t, e) { +function dh(i, t, e) { const s = i.interpolate(t, e); if (!s) return {}; @@ -7314,26 +7423,26 @@ class ao { }; } } -function dh(i) { +function uh(i) { const { chart: t, fill: e, line: s } = i; if (N(e)) - return uh(t, e); + return fh(t, e); if (e === "stack") - return ah(i); + return lh(i); if (e === "shape") return !0; - const n = fh(i); + const n = ph(i); return n instanceof ao ? n : ro(n, s); } -function uh(i, t) { +function fh(i, t) { const e = i.getDatasetMeta(t); return e && i.isDatasetVisible(t) ? e.dataset : null; } -function fh(i) { - return (i.scale || {}).getPointPositionForValue ? gh(i) : ph(i); -} function ph(i) { - const { scale: t = {}, fill: e } = i, s = nh(e, t); + return (i.scale || {}).getPointPositionForValue ? mh(i) : gh(i); +} +function gh(i) { + const { scale: t = {}, fill: e } = i, s = oh(e, t); if (N(s)) { const n = t.isHorizontal(); return { @@ -7343,8 +7452,8 @@ function ph(i) { } return null; } -function gh(i) { - const { scale: t, fill: e } = i, s = t.options, n = t.getLabels().length, o = s.reverse ? t.max : t.min, r = oh(e, t, o), a = []; +function mh(i) { + const { scale: t, fill: e } = i, s = t.options, n = t.getLabels().length, o = s.reverse ? t.max : t.min, r = rh(e, t, o), a = []; if (s.grid.circular) { const l = t.getPointPositionForValue(0, o); return new ao({ @@ -7357,9 +7466,9 @@ function gh(i) { a.push(t.getPointPositionForValue(l, r)); return a; } -function ci(i, t, e) { - const s = dh(t), { chart: n, index: o, line: r, scale: a, axis: l } = t, c = r.options, h = c.fill, d = c.backgroundColor, { above: u = d, below: f = d } = h || {}, g = n.getDatasetMeta(o), p = Nn(n, g); - s && r.points.length && (He(i, e), mh(i, { +function hi(i, t, e) { + const s = uh(t), { chart: n, index: o, line: r, scale: a, axis: l } = t, c = r.options, h = c.fill, d = c.backgroundColor, { above: u = d, below: f = d } = h || {}, g = n.getDatasetMeta(o), p = Nn(n, g); + s && r.points.length && (He(i, e), bh(i, { line: r, target: s, above: u, @@ -7370,25 +7479,25 @@ function ci(i, t, e) { clip: p }), je(i)); } -function mh(i, t) { +function bh(i, t) { const { line: e, target: s, above: n, below: o, area: r, scale: a, clip: l } = t, c = e._loop ? "angle" : t.axis; i.save(); let h = o; - o !== n && (c === "x" ? (js(i, s, r.top), hi(i, { + o !== n && (c === "x" ? (js(i, s, r.top), di(i, { line: e, target: s, color: n, scale: a, property: c, clip: l - }), i.restore(), i.save(), js(i, s, r.bottom)) : c === "y" && ($s(i, s, r.left), hi(i, { + }), i.restore(), i.save(), js(i, s, r.bottom)) : c === "y" && ($s(i, s, r.left), di(i, { line: e, target: s, color: o, scale: a, property: c, clip: l - }), i.restore(), i.save(), $s(i, s, r.right), h = n)), hi(i, { + }), i.restore(), i.save(), $s(i, s, r.right), h = n)), di(i, { line: e, target: s, color: h, @@ -7421,11 +7530,11 @@ function $s(i, t, e) { } i.lineTo(e, t.first().y), i.closePath(), i.clip(); } -function hi(i, t) { - const { line: e, target: s, property: n, color: o, scale: r, clip: a } = t, l = Qc(e, s, n); +function di(i, t) { + const { line: e, target: s, property: n, color: o, scale: r, clip: a } = t, l = th(e, s, n); for (const { source: c, target: h, start: d, end: u } of l) { const { style: { backgroundColor: f = o } = {} } = c, g = s !== !0; - i.save(), i.fillStyle = f, bh(i, r, a, g && _i(n, d, u)), i.beginPath(); + i.save(), i.fillStyle = f, xh(i, r, a, g && yi(n, d, u)), i.beginPath(); const p = !!e.pathSegment(i, c); let m; if (g) { @@ -7439,7 +7548,7 @@ function hi(i, t) { i.closePath(), i.fill(m ? "evenodd" : "nonzero"), i.restore(); } } -function bh(i, t, e, s) { +function xh(i, t, e, s) { const n = t.chart.chartArea, { property: o, start: r, end: a } = s || {}; if (o === "x" || o === "y") { let l, c, h, d; @@ -7450,7 +7559,7 @@ function Ys(i, t, e, s) { const n = t.interpolate(e, s); n && i.lineTo(n.x, n.y); } -var xh = { +var _h = { id: "filler", afterDatasetsUpdate(i, t, e) { const s = (i.data.datasets || []).length, n = []; @@ -7459,20 +7568,20 @@ var xh = { o = i.getDatasetMeta(r), a = o.dataset, l = null, a && a.options && a instanceof Ue && (l = { visible: i.isDatasetVisible(r), index: r, - fill: ih(a, r, s), + fill: sh(a, r, s), chart: i, axis: o.controller.options.indexAxis, scale: o.vScale, line: a }), o.$filler = l, n.push(l); for (r = 0; r < s; ++r) - l = n[r], !(!l || l.fill === !1) && (l.fill = eh(n, r, e.propagate)); + l = n[r], !(!l || l.fill === !1) && (l.fill = ih(n, r, e.propagate)); }, beforeDraw(i, t, e) { const s = e.drawTime === "beforeDraw", n = i.getSortedVisibleDatasetMetas(), o = i.chartArea; for (let r = n.length - 1; r >= 0; --r) { const a = n[r].$filler; - a && (a.line.updateControlPoints(o, a.axis), s && a.fill && ci(i.ctx, a, o)); + a && (a.line.updateControlPoints(o, a.axis), s && a.fill && hi(i.ctx, a, o)); } }, beforeDatasetsDraw(i, t, e) { @@ -7481,12 +7590,12 @@ var xh = { const s = i.getSortedVisibleDatasetMetas(); for (let n = s.length - 1; n >= 0; --n) { const o = s[n].$filler; - Hs(o) && ci(i.ctx, o, i.chartArea); + Hs(o) && hi(i.ctx, o, i.chartArea); } }, beforeDatasetDraw(i, t, e) { const s = t.meta.$filler; - !Hs(s) || e.drawTime !== "beforeDatasetDraw" || ci(i.ctx, s, i.chartArea); + !Hs(s) || e.drawTime !== "beforeDatasetDraw" || hi(i.ctx, s, i.chartArea); }, defaults: { propagate: !0, @@ -7500,7 +7609,7 @@ const Us = (i, t) => { boxHeight: e, itemHeight: Math.max(t, e) }; -}, _h = (i, t) => i !== null && t !== null && i.datasetIndex === t.datasetIndex && i.index === t.index; +}, yh = (i, t) => i !== null && t !== null && i.datasetIndex === t.datasetIndex && i.index === t.index; class Xs extends pt { constructor(t) { super(), this._added = !1, this.legendHitBoxes = [], this._hoveredItem = null, this.doughnutMode = !1, this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this.legendItems = void 0, this.columnSizes = void 0, this.lineWidths = void 0, this.maxHeight = void 0, this.maxWidth = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.height = void 0, this.width = void 0, this._margins = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0; @@ -7550,7 +7659,7 @@ class Xs extends pt { const { ctx: o, maxHeight: r, options: { labels: { padding: a } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], h = r - t; let d = a, u = 0, f = 0, g = 0, p = 0; return this.legendItems.forEach((m, b) => { - const { itemWidth: x, itemHeight: v } = yh(s, e, o, m, n); + const { itemWidth: x, itemHeight: v } = vh(s, e, o, m, n); b > 0 && f + v + 2 * a > h && (d += u + a, c.push({ width: u, height: f @@ -7639,7 +7748,7 @@ class Xs extends pt { let D = f.x, T = f.y; l.setWidth(this.width), v ? k > 0 && D + P + h > this.right && (T = f.y += _, f.line++, D = f.x = X(o, this.left + h, this.right - s[f.line])) : k > 0 && T + _ > this.bottom && (D = f.x = D + e[f.line].width + h, f.line++, T = f.y = X(o, this.top + y + h, this.bottom - e[f.line].height)); const Y = l.x(D); - if (b(Y, T, w), D = Or(S, D + g + u, v ? D + P : this.right, t.rtl), x(l.x(D), T, w), v) + if (b(Y, T, w), D = Tr(S, D + g + u, v ? D + P : this.right, t.rtl), x(l.x(D), T, w), v) f.x += P + h; else if (typeof w.text != "string") { const Q = c.lineHeight; @@ -7661,7 +7770,7 @@ class Xs extends pt { h = c + X(t.align, this.top, this.bottom - g - t.labels.padding - this._computeTitleHeight()); } const f = X(a, d, d + u); - r.textAlign = o.textAlign(Di(a)), r.textBaseline = "middle", r.strokeStyle = e.color, r.fillStyle = e.color, r.font = s.string, It(r, e.text, f, h, s); + r.textAlign = o.textAlign(Ai(a)), r.textBaseline = "middle", r.strokeStyle = e.color, r.fillStyle = e.color, r.font = s.string, It(r, e.text, f, h, s); } _computeTitleHeight() { const t = this.options.title, e = j(t.font), s = G(t.padding); @@ -7678,11 +7787,11 @@ class Xs extends pt { } handleEvent(t) { const e = this.options; - if (!kh(t.type, e)) + if (!Mh(t.type, e)) return; const s = this._getLegendItemAt(t.x, t.y); if (t.type === "mousemove" || t.type === "mouseout") { - const n = this._hoveredItem, o = _h(n, s); + const n = this._hoveredItem, o = yh(n, s); n && !o && I(e.onLeave, [ t, n, @@ -7699,18 +7808,18 @@ class Xs extends pt { ], this); } } -function yh(i, t, e, s, n) { - const o = vh(s, i, t, e), r = wh(n, s, t.lineHeight); +function vh(i, t, e, s, n) { + const o = wh(s, i, t, e), r = kh(n, s, t.lineHeight); return { itemWidth: o, itemHeight: r }; } -function vh(i, t, e, s) { +function wh(i, t, e, s) { let n = i.text; return n && typeof n != "string" && (n = n.reduce((o, r) => o.length > r.length ? o : r)), t + e.size / 2 + s.measureText(n).width; } -function wh(i, t, e) { +function kh(i, t, e) { let s = i; return typeof t.text != "string" && (s = lo(t, e)), s; } @@ -7718,10 +7827,10 @@ function lo(i, t) { const e = i.text ? i.text.length : 0; return t * e; } -function kh(i, t) { +function Mh(i, t) { return !!((i === "mousemove" || i === "mouseout") && (t.onHover || t.onLeave) || t.onClick && (i === "click" || i === "mouseup")); } -var Mh = { +var Sh = { id: "legend", _element: Xs, start(i, t, e) { @@ -7805,7 +7914,7 @@ var Mh = { } } }; -class Bi extends pt { +class Vi extends pt { constructor(t) { super(), this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this._padding = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.width = void 0, this.height = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0; } @@ -7844,7 +7953,7 @@ class Bi extends pt { color: e.color, maxWidth: l, rotation: c, - textAlign: Di(e.align), + textAlign: Ai(e.align), textBaseline: "middle", translation: [ r, @@ -7853,19 +7962,19 @@ class Bi extends pt { }); } } -function Sh(i, t) { - const e = new Bi({ +function Ch(i, t) { + const e = new Vi({ ctx: i.ctx, options: t, chart: i }); q.configure(i, e, t), q.addBox(i, e), i.titleBlock = e; } -var Ch = { +var Ph = { id: "title", - _element: Bi, + _element: Vi, start(i, t, e) { - Sh(i, e); + Ch(i, e); }, stop(i) { const t = i.titleBlock; @@ -7896,10 +8005,10 @@ var Ch = { } }; const Pe = /* @__PURE__ */ new WeakMap(); -var Ph = { +var Dh = { id: "subtitle", start(i, t, e) { - const s = new Bi({ + const s = new Vi({ ctx: i.ctx, options: e, chart: i @@ -7959,7 +8068,7 @@ const ee = { for (o = 0, r = i.length; o < r; ++o) { const l = i[o].element; if (l && l.hasValue()) { - const c = l.getCenterPoint(), h = ui(t, c); + const c = l.getCenterPoint(), h = fi(t, c); h < n && (n = h, a = l); } } @@ -7981,7 +8090,7 @@ function ct(i) { `) > -1 ? i.split(` `) : i; } -function Dh(i, t) { +function Ah(i, t) { const { element: e, datasetIndex: s, index: n } = t, o = i.getDatasetMeta(s).controller, { label: r, value: a } = o.getLabelAndValue(n); return { chart: i, @@ -8014,39 +8123,39 @@ function Ks(i, t) { height: p }; } -function Ah(i, t) { +function Oh(i, t) { const { y: e, height: s } = t; return e < s / 2 ? "top" : e > i.height - s / 2 ? "bottom" : "center"; } -function Oh(i, t, e, s) { +function Th(i, t, e, s) { const { x: n, width: o } = s, r = e.caretSize + e.caretPadding; if (i === "left" && n + o + r > t.width || i === "right" && n - o - r < 0) return !0; } -function Th(i, t, e, s) { +function Lh(i, t, e, s) { const { x: n, width: o } = e, { width: r, chartArea: { left: a, right: l } } = i; let c = "center"; - return s === "center" ? c = n <= (a + l) / 2 ? "left" : "right" : n <= o / 2 ? c = "left" : n >= r - o / 2 && (c = "right"), Oh(c, i, t, e) && (c = "center"), c; + return s === "center" ? c = n <= (a + l) / 2 ? "left" : "right" : n <= o / 2 ? c = "left" : n >= r - o / 2 && (c = "right"), Th(c, i, t, e) && (c = "center"), c; } function qs(i, t, e) { - const s = e.yAlign || t.yAlign || Ah(i, e); + const s = e.yAlign || t.yAlign || Oh(i, e); return { - xAlign: e.xAlign || t.xAlign || Th(i, t, e, s), + xAlign: e.xAlign || t.xAlign || Lh(i, t, e, s), yAlign: s }; } -function Lh(i, t) { +function Rh(i, t) { let { x: e, width: s } = i; return t === "right" ? e -= s : t === "center" && (e -= s / 2), e; } -function Rh(i, t, e) { +function Eh(i, t, e) { let { y: s, height: n } = i; return t === "top" ? s += e : t === "bottom" ? s -= n + e : s -= n / 2, s; } function Gs(i, t, e, s) { const { caretSize: n, caretPadding: o, cornerRadius: r } = i, { xAlign: a, yAlign: l } = e, c = n + o, { topLeft: h, topRight: d, bottomLeft: u, bottomRight: f } = Lt(r); - let g = Lh(t, a); - const p = Rh(t, l, c); + let g = Rh(t, a); + const p = Eh(t, l, c); return l === "center" ? a === "left" ? g += c : a === "right" && (g -= c) : a === "left" ? g -= Math.max(h, u) + n : a === "right" && (g += Math.max(d, f) + n), { x: $(g, 0, s.width - t.width), y: $(p, 0, s.height - t.height) @@ -8059,7 +8168,7 @@ function De(i, t, e) { function Js(i) { return nt([], ct(i)); } -function Eh(i, t, e) { +function Ih(i, t, e) { return wt(i, { tooltip: t, tooltipItems: e, @@ -8142,7 +8251,7 @@ class Qs extends pt { return n._cacheable && (this._cachedAnimations = Object.freeze(o)), o; } getContext() { - return this.$context || (this.$context = Eh(this.chart.getContext(), this, this._tooltipItems)); + return this.$context || (this.$context = Ih(this.chart.getContext(), this, this._tooltipItems)); } getTitle(t, e) { const { callbacks: s } = e, n = J(s, "beforeTitle", this, t), o = J(s, "title", this, t), r = J(s, "afterTitle", this, t); @@ -8175,7 +8284,7 @@ class Qs extends pt { const e = this._active, s = this.chart.data, n = [], o = [], r = []; let a = [], l, c; for (l = 0, c = e.length; l < c; ++l) - a.push(Dh(this.chart, e[l])); + a.push(Ah(this.chart, e[l])); return t.filter && (a = a.filter((h, d, u) => t.filter(h, d, u, s))), t.itemSort && (a = a.sort((h, d) => t.itemSort(h, d, s))), R(a, (h) => { const d = Zs(t.callbacks, h); n.push(J(d, "labelColor", this, h)), o.push(J(d, "labelPointStyle", this, h)), r.push(J(d, "labelTextColor", this, h)); @@ -8242,7 +8351,7 @@ class Qs extends pt { rotation: a.rotation, borderWidth: 1 }, m = n.leftForLtr(u, c) + c / 2, b = g + l / 2; - t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, pi(t, p, m, b), t.strokeStyle = r.borderColor, t.fillStyle = r.backgroundColor, pi(t, p, m, b); + t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, gi(t, p, m, b), t.strokeStyle = r.borderColor, t.fillStyle = r.backgroundColor, gi(t, p, m, b); } else { t.lineWidth = O(r.borderWidth) ? Math.max(...Object.values(r.borderWidth)) : r.borderWidth || 1, t.strokeStyle = r.borderColor, t.setLineDash(r.borderDash || []), t.lineDashOffset = r.borderDashOffset || 0; const p = n.leftForLtr(u, c), m = n.leftForLtr(n.xPlus(u, 1), c - 2), b = Lt(r.borderRadius); @@ -8359,7 +8468,7 @@ class Qs extends pt { return r !== !1 && (s !== r.x || n !== r.y); } } -var Ih = { +var Fh = { id: "tooltip", _element: Qs, positioners: ee, @@ -8474,33 +8583,33 @@ var Ih = { additionalOptionScopes: [ "interaction" ] -}, Fh = /* @__PURE__ */ Object.freeze({ +}, zh = /* @__PURE__ */ Object.freeze({ __proto__: null, - Colors: Kc, - Decimation: Zc, - Filler: xh, - Legend: Mh, - SubTitle: Ph, - Title: Ch, - Tooltip: Ih + Colors: qc, + Decimation: Qc, + Filler: _h, + Legend: Sh, + SubTitle: Dh, + Title: Ph, + Tooltip: Fh }); -const zh = (i, t, e, s) => (typeof t == "string" ? (e = i.push(t) - 1, s.unshift({ +const Bh = (i, t, e, s) => (typeof t == "string" ? (e = i.push(t) - 1, s.unshift({ index: e, label: t })) : isNaN(t) && (e = null), e); -function Bh(i, t, e, s) { +function Vh(i, t, e, s) { const n = i.indexOf(t); if (n === -1) - return zh(i, t, e, s); + return Bh(i, t, e, s); const o = i.lastIndexOf(t); return n !== o ? e : n; } -const Vh = (i, t) => i === null ? null : $(Math.round(i), 0, t); +const Nh = (i, t) => i === null ? null : $(Math.round(i), 0, t); function tn(i) { const t = this.getLabels(); return i >= 0 && i < t.length ? t[i] : i; } -class Nh extends Ft { +class Wh extends Ft { static id = "category"; static defaults = { ticks: { @@ -8524,7 +8633,7 @@ class Nh extends Ft { if (A(t)) return null; const s = this.getLabels(); - return e = isFinite(e) && s[e] === t ? e : Bh(s, t, C(e, t), this._addedLabels), Vh(e, s.length - 1); + return e = isFinite(e) && s[e] === t ? e : Vh(s, t, C(e, t), this._addedLabels), Nh(e, s.length - 1); } determineDataLimits() { const { minDefined: t, maxDefined: e } = this.getUserBounds(); @@ -8561,7 +8670,7 @@ class Nh extends Ft { return this.bottom; } } -function Wh(i, t) { +function Hh(i, t) { const e = [], { bounds: n, step: o, min: r, max: a, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: u } = i, f = o || 1, g = h - 1, { min: p, max: m } = t, b = !A(r), x = !A(a), v = !A(c), y = (m - p) / (d + 1); let _ = Ki((m - p) / g / f) * f, w, k, M, S; if (_ < 1e-14 && !b && !x) @@ -8573,7 +8682,7 @@ function Wh(i, t) { value: m } ]; - S = Math.ceil(m / _) - Math.floor(p / _), S > g && (_ = Ki(S * _ / g / f) * f), A(l) || (w = Math.pow(10, l), _ = Math.ceil(_ * w) / w), n === "ticks" ? (k = Math.floor(p / _) * _, M = Math.ceil(m / _) * _) : (k = p, M = m), b && x && o && kr((a - r) / o, _ / 1e3) ? (S = Math.round(Math.min((a - r) / _, h)), _ = (a - r) / S, k = r, M = a) : v ? (k = b ? r : k, M = x ? a : M, S = c - 1, _ = (M - k) / S) : (S = (M - k) / _, ne(S, Math.round(S), _ / 1e3) ? S = Math.round(S) : S = Math.ceil(S)); + S = Math.ceil(m / _) - Math.floor(p / _), S > g && (_ = Ki(S * _ / g / f) * f), A(l) || (w = Math.pow(10, l), _ = Math.ceil(_ * w) / w), n === "ticks" ? (k = Math.floor(p / _) * _, M = Math.ceil(m / _) * _) : (k = p, M = m), b && x && o && Mr((a - r) / o, _ / 1e3) ? (S = Math.round(Math.min((a - r) / _, h)), _ = (a - r) / S, k = r, M = a) : v ? (k = b ? r : k, M = x ? a : M, S = c - 1, _ = (M - k) / S) : (S = (M - k) / _, ne(S, Math.round(S), _ / 1e3) ? S = Math.round(S) : S = Math.ceil(S)); const P = Math.max(qi(_), qi(k)); w = Math.pow(10, A(l) ? P : l), k = Math.round(k * w) / w, M = Math.round(M * w) / w; let D = 0; @@ -8642,7 +8751,7 @@ class Ne extends Ft { horizontal: this.isHorizontal(), minRotation: e.minRotation || 0, includeBounds: e.includeBounds !== !1 - }, o = this._range || this, r = Wh(n, o); + }, o = this._range || this, r = Hh(n, o); return t.bounds === "ticks" && xn(r, this, "value"), t.reverse ? (r.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), r; } configure() { @@ -8658,7 +8767,7 @@ class Ne extends Ft { return ge(t, this.chart.options.locale, this.options.ticks.format); } } -class Hh extends Ne { +class jh extends Ne { static id = "linear"; static defaults = { ticks: { @@ -8688,7 +8797,7 @@ function nn(i, t, e) { const s = Math.pow(10, e), n = Math.floor(i / s); return Math.ceil(t / s) - n; } -function jh(i, t) { +function $h(i, t) { const e = t - i; let s = fe(e); for (; nn(i, t, s) > 10; ) @@ -8697,10 +8806,10 @@ function jh(i, t) { s--; return Math.min(s, fe(i)); } -function $h(i, { min: t, max: e }) { +function Yh(i, { min: t, max: e }) { t = tt(i.min, t); const s = [], n = fe(t); - let o = jh(t, e), r = o < 0 ? Math.pow(10, Math.abs(o)) : 1; + let o = $h(t, e), r = o < 0 ? Math.pow(10, Math.abs(o)) : 1; const a = Math.pow(10, o), l = n > o ? Math.pow(10, n) : 0, c = Math.round((t - l) * r) / r, h = Math.floor((t - l) / a / 10) * a * 10; let d = Math.floor((c - h) / Math.pow(10, o)), u = tt(i.min, Math.round((l + h + d * Math.pow(10, o)) * r) / r); for (; u < e; ) @@ -8716,7 +8825,7 @@ function $h(i, { min: t, max: e }) { significand: d }), s; } -class Yh extends Ft { +class Uh extends Ft { static id = "logarithmic"; static defaults = { ticks: { @@ -8754,7 +8863,7 @@ class Yh extends Ft { const t = this.options, e = { min: this._userMin, max: this._userMax - }, s = $h(e, this); + }, s = Yh(e, this); return t.bounds === "ticks" && xn(s, this, "value"), t.reverse ? (s.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), s; } getLabelForValue(t) { @@ -8772,7 +8881,7 @@ class Yh extends Ft { return Math.pow(10, this._startValue + e * this._valueRange); } } -function yi(i) { +function vi(i) { const t = i.ticks; if (t.display && i.display) { const e = G(t.backdropPadding); @@ -8780,11 +8889,11 @@ function yi(i) { } return 0; } -function Uh(i, t, e) { +function Xh(i, t, e) { return e = B(e) ? e : [ e ], { - w: Nr(i, t.string, e), + w: Wr(i, t.string, e), h: e.length * t.lineHeight }; } @@ -8800,7 +8909,7 @@ function on(i, t, e, s, n) { end: t + e }; } -function Xh(i) { +function Kh(i) { const t = { l: i.left + i._padding.left, r: i.right - i._padding.right, @@ -8810,20 +8919,20 @@ function Xh(i) { for (let l = 0; l < o; l++) { const c = r.setContext(i.getPointLabelContext(l)); n[l] = c.padding; - const h = i.getPointPosition(l, i.drawingArea + n[l], a), d = j(c.font), u = Uh(i.ctx, d, i._pointLabels[l]); + const h = i.getPointPosition(l, i.drawingArea + n[l], a), d = j(c.font), u = Xh(i.ctx, d, i._pointLabels[l]); s[l] = u; - const f = K(i.getIndexAngle(l) + a), g = Math.round(Ci(f)), p = on(g, h.x, u.w, 0, 180), m = on(g, h.y, u.h, 90, 270); - Kh(e, t, f, p, m); + const f = K(i.getIndexAngle(l) + a), g = Math.round(Pi(f)), p = on(g, h.x, u.w, 0, 180), m = on(g, h.y, u.h, 90, 270); + qh(e, t, f, p, m); } - i.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), i._pointLabelItems = Jh(i, s, n); + i.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), i._pointLabelItems = Zh(i, s, n); } -function Kh(i, t, e, s, n) { +function qh(i, t, e, s, n) { const o = Math.abs(Math.sin(e)), r = Math.abs(Math.cos(e)); let a = 0, l = 0; s.start < t.l ? (a = (t.l - s.start) / o, i.l = Math.min(i.l, t.l - a)) : s.end > t.r && (a = (s.end - t.r) / o, i.r = Math.max(i.r, t.r + a)), n.start < t.t ? (l = (t.t - n.start) / r, i.t = Math.min(i.t, t.t - l)) : n.end > t.b && (l = (n.end - t.b) / r, i.b = Math.max(i.b, t.b + l)); } -function qh(i, t, e) { - const s = i.drawingArea, { extra: n, additionalAngle: o, padding: r, size: a } = e, l = i.getPointPosition(t, s + n + r, o), c = Math.round(Ci(K(l.angle + H))), h = td(l.y, a.h, c), d = Zh(c), u = Qh(l.x, a.w, d); +function Gh(i, t, e) { + const s = i.drawingArea, { extra: n, additionalAngle: o, padding: r, size: a } = e, l = i.getPointPosition(t, s + n + r, o), c = Math.round(Pi(K(l.angle + H))), h = ed(l.y, a.h, c), d = Qh(c), u = td(l.x, a.w, d); return { visible: !0, x: l.x, @@ -8835,7 +8944,7 @@ function qh(i, t, e) { bottom: h + a.h }; } -function Gh(i, t) { +function Jh(i, t) { if (!t) return !0; const { left: e, top: s, right: n, bottom: o } = i; @@ -8853,29 +8962,29 @@ function Gh(i, t) { y: o }, t)); } -function Jh(i, t, e) { +function Zh(i, t, e) { const s = [], n = i._pointLabels.length, o = i.options, { centerPointLabels: r, display: a } = o.pointLabels, l = { - extra: yi(o) / 2, + extra: vi(o) / 2, additionalAngle: r ? L / n : 0 }; let c; for (let h = 0; h < n; h++) { l.padding = e[h], l.size = t[h]; - const d = qh(i, h, l); - s.push(d), a === "auto" && (d.visible = Gh(d, c), d.visible && (c = d)); + const d = Gh(i, h, l); + s.push(d), a === "auto" && (d.visible = Jh(d, c), d.visible && (c = d)); } return s; } -function Zh(i) { +function Qh(i) { return i === 0 || i === 180 ? "center" : i < 180 ? "left" : "right"; } -function Qh(i, t, e) { +function td(i, t, e) { return e === "right" ? i -= t : e === "center" && (i -= t / 2), i; } -function td(i, t, e) { +function ed(i, t, e) { return e === 90 || e === 270 ? i -= t / 2 : (e > 270 || e < 90) && (i -= t), i; } -function ed(i, t, e) { +function id(i, t, e) { const { left: s, top: n, right: o, bottom: r } = e, { backdropColor: a } = t; if (!A(a)) { const l = Lt(t.borderRadius), c = G(t.backdropPadding); @@ -8890,14 +8999,14 @@ function ed(i, t, e) { }), i.fill()) : i.fillRect(h, d, u, f); } } -function id(i, t) { +function sd(i, t) { const { ctx: e, options: { pointLabels: s } } = i; for (let n = t - 1; n >= 0; n--) { const o = i._pointLabelItems[n]; if (!o.visible) continue; const r = s.setContext(i.getPointLabelContext(n)); - ed(e, r, o); + id(e, r, o); const a = j(r.font), { x: l, y: c, textAlign: h } = o; It(e, i._pointLabels[n], l, c + a.lineHeight / 2, a, { color: r.color, @@ -8917,18 +9026,18 @@ function ho(i, t, e, s) { o = i.getPointPosition(r, t), n.lineTo(o.x, o.y); } } -function sd(i, t, e, s, n) { +function nd(i, t, e, s, n) { const o = i.ctx, r = t.circular, { color: a, lineWidth: l } = t; !r && !s || !a || !l || e < 0 || (o.save(), o.strokeStyle = a, o.lineWidth = l, o.setLineDash(n.dash || []), o.lineDashOffset = n.dashOffset, o.beginPath(), ho(i, e, r, s), o.closePath(), o.stroke(), o.restore()); } -function nd(i, t, e) { +function od(i, t, e) { return wt(i, { label: e, index: t, type: "pointLabel" }); } -class od extends Ne { +class rd extends Ne { static id = "radialLinear"; static defaults = { display: !0, @@ -8976,7 +9085,7 @@ class od extends Ne { super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = []; } setDimensions() { - const t = this._padding = G(yi(this.options) / 2), e = this.width = this.maxWidth - t.width, s = this.height = this.maxHeight - t.height; + const t = this._padding = G(vi(this.options) / 2), e = this.width = this.maxWidth - t.width, s = this.height = this.maxHeight - t.height; this.xCenter = Math.floor(this.left + e / 2 + t.left), this.yCenter = Math.floor(this.top + s / 2 + t.top), this.drawingArea = Math.floor(Math.min(e, s) / 2); } determineDataLimits() { @@ -8984,7 +9093,7 @@ class od extends Ne { this.min = N(t) && !isNaN(t) ? t : 0, this.max = N(e) && !isNaN(e) ? e : 0, this.handleTickRangeOptions(); } computeTickLimit() { - return Math.ceil(this.drawingArea / yi(this.options)); + return Math.ceil(this.drawingArea / vi(this.options)); } generateTickLabels(t) { Ne.prototype.generateTickLabels.call(this, t), this._pointLabels = this.getLabels().map((e, s) => { @@ -8997,7 +9106,7 @@ class od extends Ne { } fit() { const t = this.options; - t.display && t.pointLabels.display ? Xh(this) : this.setCenterPoint(0, 0, 0, 0); + t.display && t.pointLabels.display ? Kh(this) : this.setCenterPoint(0, 0, 0, 0); } setCenterPoint(t, e, s, n) { this.xCenter += Math.floor((t - e) / 2), this.yCenter += Math.floor((s - n) / 2), this.drawingArea -= Math.min(this.drawingArea / 2, Math.max(t, e, s, n)); @@ -9022,7 +9131,7 @@ class od extends Ne { const e = this._pointLabels || []; if (t >= 0 && t < e.length) { const s = e[t]; - return nd(this.getContext(), t, s); + return od(this.getContext(), t, s); } } getPointPosition(t, e, s = 0) { @@ -9058,11 +9167,11 @@ class od extends Ne { drawGrid() { const t = this.ctx, e = this.options, { angleLines: s, grid: n, border: o } = e, r = this._pointLabels.length; let a, l, c; - if (e.pointLabels.display && id(this, r), n.display && this.ticks.forEach((h, d) => { + if (e.pointLabels.display && sd(this, r), n.display && this.ticks.forEach((h, d) => { if (d !== 0 || d === 0 && this.min < 0) { l = this.getDistanceFromCenterForValue(h.value); const u = this.getContext(d), f = n.setContext(u), g = o.setContext(u); - sd(this, f, l, r, g); + nd(this, f, l, r, g); } }), s.display) { for (t.save(), a = r - 1; a >= 0; a--) { @@ -9164,7 +9273,7 @@ function ln(i, t, e, s) { } return Z[n - 1]; } -function rd(i, t, e, s, n) { +function ad(i, t, e, s, n) { for (let o = Z.length - 1; o >= Z.indexOf(e); o--) { const r = Z[o]; if (Ke[r].common && i._adapter.diff(n, s, r) >= t - 1) @@ -9172,7 +9281,7 @@ function rd(i, t, e, s, n) { } return Z[e ? Z.indexOf(e) : 0]; } -function ad(i) { +function ld(i) { for (let t = Z.indexOf(i) + 1, e = Z.length; t < e; ++t) if (Ke[Z[t]].common) return Z[t]; @@ -9181,11 +9290,11 @@ function cn(i, t, e) { if (!e) i[t] = !0; else if (e.length) { - const { lo: s, hi: n } = Pi(e, t), o = e[s] >= t ? e[s] : e[n]; + const { lo: s, hi: n } = Di(e, t), o = e[s] >= t ? e[s] : e[n]; i[o] = !0; } } -function ld(i, t, e, s) { +function cd(i, t, e, s) { const n = i._adapter, o = +n.startOf(t[0].value, s), r = t[t.length - 1].value; let a, l; for (a = o; a <= r; a = +n.add(a, 1, s)) @@ -9200,9 +9309,9 @@ function hn(i, t, e) { value: a, major: !1 }); - return o === 0 || !e ? s : ld(i, s, n, e); + return o === 0 || !e ? s : cd(i, s, n, e); } -class vi extends Ft { +class wi extends Ft { static id = "time"; static defaults = { bounds: "data", @@ -9231,7 +9340,7 @@ class vi extends Ft { }, this._unit = "day", this._majorUnit = void 0, this._offsets = {}, this._normalized = !1, this._parseOpts = void 0; } init(t, e = {}) { - const s = t.time || (t.time = {}), n = this._adapter = new cl._date(t.adapters.date); + const s = t.time || (t.time = {}), n = this._adapter = new hl._date(t.adapters.date); n.init(e), se(s.displayFormats, n.formats()), this._parseOpts = { parser: s.parser, round: s.round, @@ -9267,8 +9376,8 @@ class vi extends Ft { buildTicks() { const t = this.options, e = t.time, s = t.ticks, n = s.source === "labels" ? this.getLabelTimestamps() : this._generate(); t.bounds === "ticks" && n.length && (this.min = this._userMin || n[0], this.max = this._userMax || n[n.length - 1]); - const o = this.min, r = this.max, a = Pr(n, o, r); - return this._unit = e.unit || (s.autoSkip ? ln(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) : rd(this, a.length, e.minUnit, this.min, this.max)), this._majorUnit = !s.major.enabled || this._unit === "year" ? void 0 : ad(this._unit), this.initOffsets(n), t.reverse && a.reverse(), hn(this, a, this._majorUnit); + const o = this.min, r = this.max, a = Dr(n, o, r); + return this._unit = e.unit || (s.autoSkip ? ln(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) : ad(this, a.length, e.minUnit, this.min, this.max)), this._majorUnit = !s.major.enabled || this._unit === "year" ? void 0 : ld(this._unit), this.initOffsets(n), t.reverse && a.reverse(), hn(this, a, this._majorUnit); } afterAutoSkip() { this.options.offsetAfterAutoskip && this.initOffsets(this.ticks.map((t) => +t.value)); @@ -9372,9 +9481,9 @@ function Ae(i, t, e) { const c = r - o; return c ? a + (l - a) * (t - o) / c : a; } -class cd extends vi { +class hd extends wi { static id = "timeseries"; - static defaults = vi.defaults; + static defaults = wi.defaults; constructor(t) { super(t), this._table = [], this._minPos = void 0, this._tableRange = void 0; } @@ -9425,35 +9534,35 @@ class cd extends vi { return Ae(this._table, s * this._tableRange + this._minPos, !0); } } -var hd = /* @__PURE__ */ Object.freeze({ +var dd = /* @__PURE__ */ Object.freeze({ __proto__: null, - CategoryScale: Nh, - LinearScale: Hh, - LogarithmicScale: Yh, - RadialLinearScale: od, - TimeScale: vi, - TimeSeriesScale: cd + CategoryScale: Wh, + LinearScale: jh, + LogarithmicScale: Uh, + RadialLinearScale: rd, + TimeScale: wi, + TimeSeriesScale: hd }); -const dd = [ - ll, - Wc, - Fh, - hd -], ud = () => Eo(), fd = "doughnut", pd = JSON.stringify({ +const ud = [ + cl, + Hc, + zh, + dd +], fd = () => Eo(), pd = "doughnut", gd = JSON.stringify({ labels: ["Red", "Blue", "Yellow"], datasets: [{ data: [300, 50, 100] }] -}), gd = { class: "chartjs-container" }, md = { +}), md = { class: "chartjs-container" }, bd = { key: 0, class: "chartjs-error", role: "alert" -}, bd = { +}, xd = { key: 1, class: "chartjs-canvas-wrapper" -}, xd = /* @__PURE__ */ po({ +}, _d = /* @__PURE__ */ po({ __name: "chartjs-canvas", setup(i) { - Le.registry.controllers.get("bar") || Le.register(...dd); - const t = ud(), e = ie(null), s = ie(null); + Le.registry.controllers.get("bar") || Le.register(...ud); + const t = fd(), e = ie(null), s = ie(null); let n = null; const o = /* @__PURE__ */ new Set(["pie", "doughnut", "polarArea"]); function r() { @@ -9486,8 +9595,8 @@ const dd = [ } } } - const l = Vi(() => { - const u = t.value.type ?? fd, f = t.value.data ?? pd; + const l = Ni(() => { + const u = t.value.type ?? pd, f = t.value.data ?? gd; let g, p = {}, m = []; try { g = JSON.parse(f); @@ -9507,7 +9616,7 @@ const dd = [ return { cfg: null, error: `Invalid plugins JSON: ${b.message}` }; } return { cfg: { type: u, data: g, options: p, plugins: m }, error: null }; - }), c = Vi(() => s.value ?? l.value.error); + }), c = Ni(() => s.value ?? l.value.error); function h() { s.value = null; const u = l.value.cfg; @@ -9534,8 +9643,8 @@ const dd = [ } return go(h), mo(d), bo(l, () => { d(), h(); - }), (u, f) => (qe(), Ge("div", gd, [ - c.value ? (qe(), Ge("div", md, xo(c.value), 1)) : (qe(), Ge("div", bd, [ + }), (u, f) => (qe(), Ge("div", md, [ + c.value ? (qe(), Ge("div", bd, xo(c.value), 1)) : (qe(), Ge("div", xd, [ _o("canvas", { ref_key: "canvasRef", ref: e, @@ -9544,21 +9653,21 @@ const dd = [ ])) ])); } -}), _d = ":root{--p-primary: rgb(0, 95, 178);--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white);--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white);--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white);--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white);--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white);--p-primary-500: var(--p-primary);--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black);--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black);--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black);--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black);--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black);--p-secondary: #6f7385;--p-secondary-50: color-mix(in srgb, var(--p-secondary) 5%, white);--p-secondary-100: color-mix(in srgb, var(--p-secondary) 10%, white);--p-secondary-200: color-mix(in srgb, var(--p-secondary) 20%, white);--p-secondary-300: color-mix(in srgb, var(--p-secondary) 35%, white);--p-secondary-400: color-mix(in srgb, var(--p-secondary) 65%, white);--p-secondary-500: var(--p-secondary);--p-secondary-600: color-mix(in srgb, var(--p-secondary) 80%, black);--p-secondary-700: color-mix(in srgb, var(--p-secondary) 65%, black);--p-secondary-800: color-mix(in srgb, var(--p-secondary) 55%, black);--p-secondary-900: color-mix(in srgb, var(--p-secondary) 50%, black);--p-secondary-950: color-mix(in srgb, var(--p-secondary) 30%, black);--p-danger: rgb(239, 68, 68);--p-danger-50: color-mix(in srgb, var(--p-danger) 5%, white);--p-danger-100: color-mix(in srgb, var(--p-danger) 10%, white);--p-danger-200: color-mix(in srgb, var(--p-danger) 20%, white);--p-danger-300: color-mix(in srgb, var(--p-danger) 30%, white);--p-danger-400: color-mix(in srgb, var(--p-danger) 40%, white);--p-danger-500: var(--p-danger);--p-danger-600: color-mix(in srgb, var(--p-danger) 80%, black);--p-danger-700: color-mix(in srgb, var(--p-danger) 70%, black);--p-danger-800: color-mix(in srgb, var(--p-danger) 60%, black);--p-danger-900: color-mix(in srgb, var(--p-danger) 50%, black);--p-danger-950: color-mix(in srgb, var(--p-danger) 40%, black);--p-success: rgb(34, 197, 94);--p-success-50: color-mix(in srgb, var(--p-success) 5%, white);--p-success-100: color-mix(in srgb, var(--p-success) 10%, white);--p-success-200: color-mix(in srgb, var(--p-success) 20%, white);--p-success-300: color-mix(in srgb, var(--p-success) 30%, white);--p-success-400: color-mix(in srgb, var(--p-success) 40%, white);--p-success-500: var(--p-success);--p-success-600: color-mix(in srgb, var(--p-success) 80%, black);--p-success-700: color-mix(in srgb, var(--p-success) 70%, black);--p-success-800: color-mix(in srgb, var(--p-success) 60%, black);--p-success-900: color-mix(in srgb, var(--p-success) 50%, black);--p-success-950: color-mix(in srgb, var(--p-success) 40%, black);--p-warn: rgb(249, 115, 22);--p-warn-50: color-mix(in srgb, var(--p-warn) 5%, white);--p-warn-100: color-mix(in srgb, var(--p-warn) 10%, white);--p-warn-200: color-mix(in srgb, var(--p-warn) 20%, white);--p-warn-300: color-mix(in srgb, var(--p-warn) 30%, white);--p-warn-400: color-mix(in srgb, var(--p-warn) 40%, white);--p-warn-500: var(--p-warn);--p-warn-600: color-mix(in srgb, var(--p-warn) 80%, black);--p-warn-700: color-mix(in srgb, var(--p-warn) 70%, black);--p-warn-800: color-mix(in srgb, var(--p-warn) 60%, black);--p-warn-900: color-mix(in srgb, var(--p-warn) 50%, black);--p-warn-950: color-mix(in srgb, var(--p-warn) 40%, black);--p-info: rgb(14, 165, 233);--p-info-50: color-mix(in srgb, var(--p-info) 5%, white);--p-info-100: color-mix(in srgb, var(--p-info) 10%, white);--p-info-200: color-mix(in srgb, var(--p-info) 20%, white);--p-info-300: color-mix(in srgb, var(--p-info) 30%, white);--p-info-400: color-mix(in srgb, var(--p-info) 40%, white);--p-info-500: var(--p-info);--p-info-600: color-mix(in srgb, var(--p-info) 80%, black);--p-info-700: color-mix(in srgb, var(--p-info) 70%, black);--p-info-800: color-mix(in srgb, var(--p-info) 60%, black);--p-info-900: color-mix(in srgb, var(--p-info) 50%, black);--p-info-950: color-mix(in srgb, var(--p-info) 40%, black);--p-help: rgb(168, 85, 247);--p-help-50: color-mix(in srgb, var(--p-help) 5%, white);--p-help-100: color-mix(in srgb, var(--p-help) 10%, white);--p-help-200: color-mix(in srgb, var(--p-help) 20%, white);--p-help-300: color-mix(in srgb, var(--p-help) 30%, white);--p-help-400: color-mix(in srgb, var(--p-help) 40%, white);--p-help-500: var(--p-help);--p-help-600: color-mix(in srgb, var(--p-help) 80%, black);--p-help-700: color-mix(in srgb, var(--p-help) 70%, black);--p-help-800: color-mix(in srgb, var(--p-help) 60%, black);--p-help-900: color-mix(in srgb, var(--p-help) 50%, black);--p-help-950: color-mix(in srgb, var(--p-help) 40%, black);--p-accent: rgb(20, 184, 166);--p-accent-50: color-mix(in srgb, var(--p-accent) 5%, white);--p-accent-100: color-mix(in srgb, var(--p-accent) 10%, white);--p-accent-200: color-mix(in srgb, var(--p-accent) 20%, white);--p-accent-300: color-mix(in srgb, var(--p-accent) 30%, white);--p-accent-400: color-mix(in srgb, var(--p-accent) 40%, white);--p-accent-500: var(--p-accent);--p-accent-600: color-mix(in srgb, var(--p-accent) 80%, black);--p-accent-700: color-mix(in srgb, var(--p-accent) 70%, black);--p-accent-800: color-mix(in srgb, var(--p-accent) 60%, black);--p-accent-900: color-mix(in srgb, var(--p-accent) 50%, black);--p-accent-950: color-mix(in srgb, var(--p-accent) 40%, black);--p-surface-0: #ffffff;--p-surface-50: #fafafa;--p-surface-100: #f5f5f5;--p-surface-200: #e5e5e5;--p-surface-300: #d4d4d4;--p-surface-400: #a3a3a3;--p-surface-500: #737373;--p-surface-600: #525252;--p-surface-700: #404040;--p-surface-800: #262626;--p-surface-850: color-mix(in srgb, var(--p-surface-800) 50%, var(--p-surface-900));--p-surface-900: #171717;--p-surface-950: #0a0a0a;--p-content-border-radius: 6px}:root{--p-primary-color: var(--p-primary-500);--p-primary-contrast-color: var(--p-surface-0);--p-primary-hover-color: var(--p-primary-600);--p-primary-active-color: var(--p-primary-700);--p-content-border-color: var(--p-surface-200);--p-content-hover-background: var(--p-surface-100);--p-content-hover-color: var(--p-surface-800);--p-highlight-background: var(--p-primary-50);--p-highlight-color: var(--p-primary-700);--p-highlight-focus-background: var(--p-primary-100);--p-highlight-focus-color: var(--p-primary-800);--p-content-background: var(--p-surface-0);--p-text-color: var(--p-surface-700);--p-text-hover-color: var(--p-surface-800);--p-text-muted-color: var(--p-surface-500);--p-text-hover-muted-color: var(--p-surface-600)}@media(prefers-color-scheme:dark){:root{--p-surface-D: #fff;--p-surface-0: #fff;--p-surface-50: #fafafa;--p-surface-100: #f4f4f5;--p-surface-200: #e4e4e7;--p-surface-300: #d4d4d8;--p-surface-400: #a1a1aa;--p-surface-500: #71717a;--p-surface-600: #545250;--p-surface-700: #403e3c;--p-surface-800: #2b2927;--p-surface-850: color-mix(in srgb, var(--p-surface-800) 50%, var(--p-surface-900));--p-surface-900: #1c1a19;--p-surface-950: #0f0e0d;--p-primary: rgb(0, 125, 178);--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white);--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white);--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white);--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white);--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white);--p-primary-500: var(--p-primary);--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black);--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black);--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black);--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black);--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black);--p-primary-color: var(--p-primary-400);--p-primary-contrast-color: var(--p-surface-900);--p-primary-hover-color: var(--p-primary-300);--p-primary-active-color: var(--p-primary-200);--p-content-border-color: var(--p-surface-700);--p-content-hover-background: var(--p-surface-800);--p-content-hover-color: var(--p-surface-0);--p-highlight-background: color-mix(in srgb, var(--p-primary-400), transparent 84%);--p-highlight-color: rgba(255, 255, 255, 87%);--p-highlight-focus-background: color-mix(in srgb, var(--p-primary-400), transparent 76%);--p-highlight-focus-color: rgba(255, 255, 255, 87%);--p-content-background: var(--p-surface-900);--p-text-color: var(--p-surface-0);--p-text-hover-color: var(--p-surface-0);--p-text-muted-color: var(--p-surface-400);--p-text-hover-muted-color: var(--p-surface-300)}}.chartjs-container{position:relative;width:100%;height:100%;min-height:200px;box-sizing:border-box}.chartjs-canvas-wrapper{position:relative;width:100%;height:100%}.chartjs-error{padding:12px 16px;border-radius:6px;background:var(--p-danger-50, #fef2f2);color:var(--p-danger-700, #b91c1c);border:1px solid var(--p-danger-200, #fecaca);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:13px;line-height:1.4}", yd = { props: { type: "object", properties: { type: { type: "string", enum: ["line", "bar", "doughnut", "pie", "radar", "polarArea", "scatter", "bubble"], default: "doughnut", description: "Chart.js chart type" }, data: { type: "string", default: "", description: "JSON-stringified Chart.js Data object: { labels?, datasets: [{label?, data, ...}] }" }, options: { type: "string", default: "", description: "JSON-stringified Chart.js Options object (optional)" }, plugins: { type: "string", default: "", description: "JSON-stringified array of Chart.js plugin definitions (optional)" } } } }, vd = { - wippy: yd +}), yd = ":root{--p-primary: rgb(0, 95, 178);--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white);--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white);--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white);--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white);--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white);--p-primary-500: var(--p-primary);--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black);--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black);--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black);--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black);--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black);--p-secondary: #6f7385;--p-secondary-50: color-mix(in srgb, var(--p-secondary) 5%, white);--p-secondary-100: color-mix(in srgb, var(--p-secondary) 10%, white);--p-secondary-200: color-mix(in srgb, var(--p-secondary) 20%, white);--p-secondary-300: color-mix(in srgb, var(--p-secondary) 35%, white);--p-secondary-400: color-mix(in srgb, var(--p-secondary) 65%, white);--p-secondary-500: var(--p-secondary);--p-secondary-600: color-mix(in srgb, var(--p-secondary) 80%, black);--p-secondary-700: color-mix(in srgb, var(--p-secondary) 65%, black);--p-secondary-800: color-mix(in srgb, var(--p-secondary) 55%, black);--p-secondary-900: color-mix(in srgb, var(--p-secondary) 50%, black);--p-secondary-950: color-mix(in srgb, var(--p-secondary) 30%, black);--p-danger: rgb(239, 68, 68);--p-danger-50: color-mix(in srgb, var(--p-danger) 5%, white);--p-danger-100: color-mix(in srgb, var(--p-danger) 10%, white);--p-danger-200: color-mix(in srgb, var(--p-danger) 20%, white);--p-danger-300: color-mix(in srgb, var(--p-danger) 30%, white);--p-danger-400: color-mix(in srgb, var(--p-danger) 40%, white);--p-danger-500: var(--p-danger);--p-danger-600: color-mix(in srgb, var(--p-danger) 80%, black);--p-danger-700: color-mix(in srgb, var(--p-danger) 70%, black);--p-danger-800: color-mix(in srgb, var(--p-danger) 60%, black);--p-danger-900: color-mix(in srgb, var(--p-danger) 50%, black);--p-danger-950: color-mix(in srgb, var(--p-danger) 40%, black);--p-success: rgb(34, 197, 94);--p-success-50: color-mix(in srgb, var(--p-success) 5%, white);--p-success-100: color-mix(in srgb, var(--p-success) 10%, white);--p-success-200: color-mix(in srgb, var(--p-success) 20%, white);--p-success-300: color-mix(in srgb, var(--p-success) 30%, white);--p-success-400: color-mix(in srgb, var(--p-success) 40%, white);--p-success-500: var(--p-success);--p-success-600: color-mix(in srgb, var(--p-success) 80%, black);--p-success-700: color-mix(in srgb, var(--p-success) 70%, black);--p-success-800: color-mix(in srgb, var(--p-success) 60%, black);--p-success-900: color-mix(in srgb, var(--p-success) 50%, black);--p-success-950: color-mix(in srgb, var(--p-success) 40%, black);--p-warn: rgb(249, 115, 22);--p-warn-50: color-mix(in srgb, var(--p-warn) 5%, white);--p-warn-100: color-mix(in srgb, var(--p-warn) 10%, white);--p-warn-200: color-mix(in srgb, var(--p-warn) 20%, white);--p-warn-300: color-mix(in srgb, var(--p-warn) 30%, white);--p-warn-400: color-mix(in srgb, var(--p-warn) 40%, white);--p-warn-500: var(--p-warn);--p-warn-600: color-mix(in srgb, var(--p-warn) 80%, black);--p-warn-700: color-mix(in srgb, var(--p-warn) 70%, black);--p-warn-800: color-mix(in srgb, var(--p-warn) 60%, black);--p-warn-900: color-mix(in srgb, var(--p-warn) 50%, black);--p-warn-950: color-mix(in srgb, var(--p-warn) 40%, black);--p-info: rgb(14, 165, 233);--p-info-50: color-mix(in srgb, var(--p-info) 5%, white);--p-info-100: color-mix(in srgb, var(--p-info) 10%, white);--p-info-200: color-mix(in srgb, var(--p-info) 20%, white);--p-info-300: color-mix(in srgb, var(--p-info) 30%, white);--p-info-400: color-mix(in srgb, var(--p-info) 40%, white);--p-info-500: var(--p-info);--p-info-600: color-mix(in srgb, var(--p-info) 80%, black);--p-info-700: color-mix(in srgb, var(--p-info) 70%, black);--p-info-800: color-mix(in srgb, var(--p-info) 60%, black);--p-info-900: color-mix(in srgb, var(--p-info) 50%, black);--p-info-950: color-mix(in srgb, var(--p-info) 40%, black);--p-help: rgb(168, 85, 247);--p-help-50: color-mix(in srgb, var(--p-help) 5%, white);--p-help-100: color-mix(in srgb, var(--p-help) 10%, white);--p-help-200: color-mix(in srgb, var(--p-help) 20%, white);--p-help-300: color-mix(in srgb, var(--p-help) 30%, white);--p-help-400: color-mix(in srgb, var(--p-help) 40%, white);--p-help-500: var(--p-help);--p-help-600: color-mix(in srgb, var(--p-help) 80%, black);--p-help-700: color-mix(in srgb, var(--p-help) 70%, black);--p-help-800: color-mix(in srgb, var(--p-help) 60%, black);--p-help-900: color-mix(in srgb, var(--p-help) 50%, black);--p-help-950: color-mix(in srgb, var(--p-help) 40%, black);--p-accent: rgb(20, 184, 166);--p-accent-50: color-mix(in srgb, var(--p-accent) 5%, white);--p-accent-100: color-mix(in srgb, var(--p-accent) 10%, white);--p-accent-200: color-mix(in srgb, var(--p-accent) 20%, white);--p-accent-300: color-mix(in srgb, var(--p-accent) 30%, white);--p-accent-400: color-mix(in srgb, var(--p-accent) 40%, white);--p-accent-500: var(--p-accent);--p-accent-600: color-mix(in srgb, var(--p-accent) 80%, black);--p-accent-700: color-mix(in srgb, var(--p-accent) 70%, black);--p-accent-800: color-mix(in srgb, var(--p-accent) 60%, black);--p-accent-900: color-mix(in srgb, var(--p-accent) 50%, black);--p-accent-950: color-mix(in srgb, var(--p-accent) 40%, black);--p-surface-0: #ffffff;--p-surface-50: #fafafa;--p-surface-100: #f5f5f5;--p-surface-200: #e5e5e5;--p-surface-300: #d4d4d4;--p-surface-400: #a3a3a3;--p-surface-500: #737373;--p-surface-600: #525252;--p-surface-700: #404040;--p-surface-800: #262626;--p-surface-850: color-mix(in srgb, var(--p-surface-800) 50%, var(--p-surface-900));--p-surface-900: #171717;--p-surface-950: #0a0a0a;--p-content-border-radius: 6px}:root{--p-primary-color: var(--p-primary-500);--p-primary-contrast-color: var(--p-surface-0);--p-primary-hover-color: var(--p-primary-600);--p-primary-active-color: var(--p-primary-700);--p-content-border-color: var(--p-surface-200);--p-content-hover-background: var(--p-surface-100);--p-content-hover-color: var(--p-surface-800);--p-highlight-background: var(--p-primary-50);--p-highlight-color: var(--p-primary-700);--p-highlight-focus-background: var(--p-primary-100);--p-highlight-focus-color: var(--p-primary-800);--p-content-background: var(--p-surface-0);--p-text-color: var(--p-surface-700);--p-text-hover-color: var(--p-surface-800);--p-text-muted-color: var(--p-surface-500);--p-text-hover-muted-color: var(--p-surface-600)}@media(prefers-color-scheme:dark){:root{--p-surface-D: #fff;--p-surface-0: #fff;--p-surface-50: #fafafa;--p-surface-100: #f4f4f5;--p-surface-200: #e4e4e7;--p-surface-300: #d4d4d8;--p-surface-400: #a1a1aa;--p-surface-500: #71717a;--p-surface-600: #545250;--p-surface-700: #403e3c;--p-surface-800: #2b2927;--p-surface-850: color-mix(in srgb, var(--p-surface-800) 50%, var(--p-surface-900));--p-surface-900: #1c1a19;--p-surface-950: #0f0e0d;--p-primary: rgb(0, 125, 178);--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white);--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white);--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white);--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white);--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white);--p-primary-500: var(--p-primary);--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black);--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black);--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black);--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black);--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black);--p-primary-color: var(--p-primary-400);--p-primary-contrast-color: var(--p-surface-900);--p-primary-hover-color: var(--p-primary-300);--p-primary-active-color: var(--p-primary-200);--p-content-border-color: var(--p-surface-700);--p-content-hover-background: var(--p-surface-800);--p-content-hover-color: var(--p-surface-0);--p-highlight-background: color-mix(in srgb, var(--p-primary-400), transparent 84%);--p-highlight-color: rgba(255, 255, 255, 87%);--p-highlight-focus-background: color-mix(in srgb, var(--p-primary-400), transparent 76%);--p-highlight-focus-color: rgba(255, 255, 255, 87%);--p-content-background: var(--p-surface-900);--p-text-color: var(--p-surface-0);--p-text-hover-color: var(--p-surface-0);--p-text-muted-color: var(--p-surface-400);--p-text-hover-muted-color: var(--p-surface-300)}}.chartjs-container{position:relative;width:100%;height:100%;min-height:200px;box-sizing:border-box}.chartjs-canvas-wrapper{position:relative;width:100%;height:100%}.chartjs-error{padding:12px 16px;border-radius:6px;background:var(--p-danger-50, #fef2f2);color:var(--p-danger-700, #b91c1c);border:1px solid var(--p-danger-200, #fecaca);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:13px;line-height:1.4}", vd = { props: { type: "object", properties: { type: { type: "string", enum: ["line", "bar", "doughnut", "pie", "radar", "polarArea", "scatter", "bubble"], default: "doughnut", description: "Chart.js chart type" }, data: { type: "string", default: "", description: "JSON-stringified Chart.js Data object: { labels?, datasets: [{label?, data, ...}] }" }, options: { type: "string", default: "", description: "JSON-stringified Chart.js Options object (optional)" }, plugins: { type: "string", default: "", description: "JSON-stringified array of Chart.js plugin definitions (optional)" } } } }, wd = { + wippy: vd }; -class wd extends jo { +class kd extends $o { static get wippyConfig() { return { - propsSchema: vd.wippy.props, + propsSchema: wd.wippy.props, hostCssKeys: ["themeConfigUrl"], - inlineCss: _d + inlineCss: yd }; } static get vueConfig() { return { - rootComponent: xd + rootComponent: _d }; } } -Mo(import.meta.url, wd); +Mo(import.meta.url, kd); diff --git a/src/wc-content-kit/public/chartjs/wippy-meta.json b/src/wc-content-kit/public/chartjs/wippy-meta.json new file mode 100644 index 0000000..06858a8 --- /dev/null +++ b/src/wc-content-kit/public/chartjs/wippy-meta.json @@ -0,0 +1 @@ +{"name":"@wippy/wc-chartjs","version":"0.1.2","specification":"wippy-component-1.0","title":"Chart.js (universal)","description":"Auto-registered Chart.js wrapper supporting every chart type, shipped by the wippy.wc-content-kit module. Tag: .","browser":"dist/index.js","files":["dist/","src/","package.json"],"dependencies":{"@wippy-fe/theme":"^0.0.32","@wippy-fe/webcomponent-core":"^0.0.32","@wippy-fe/webcomponent-vue":"^0.0.32","chart.js":"^4.4.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","@vitejs/plugin-vue":"^5.0.0","@wippy-fe/vite-plugin":"^0.0.32","@wippy-fe/proxy":"^0.0.32","eslint":"^8.57.0","eslint-plugin-vue":"^9.0.0","typescript":"^5.0.0","vite":"^6.0.0","vue":"^3.5.0","vue-eslint-parser":"^9.4.3","vue-tsc":"^2.0.0"},"peerDependencies":{"@wippy-fe/proxy":"^0.0.32","vue":"^3.5.0"},"wippy":{"tagName":"wippy-chartjs","type":"widget","description":"Renders ANY Chart.js v4 chart from a single tag. Pass the chart type via `type` and the full Chart.js Data object as a JSON string via `data`. `options` and `plugins` are JSON-string passthroughs to Chart.js.\n\nSupported types: line (trends over time), bar (categorical comparison), doughnut / pie (parts of a whole, ≤7 categories), radar (multi-axis comparison), polarArea (categorical with magnitude), scatter (x/y point clouds), bubble (x/y/r 3-dim data).\n\nWhen a dataset omits `backgroundColor` (and `borderColor` for line/bar/radar/scatter/bubble), the component fills it from the host's CSS palette (`--p-primary-500`, `--p-danger-500`, `--p-warn-500`, `--p-secondary-500`, `--p-accent-500`, plus 300-tone variants). Override per-dataset to force exact colors.\n\nExamples:\n\n\n\n\n\n\n\n\n\n\n\n\n\nNotes: `data` must be valid JSON — escape inner quotes correctly when embedding in HTML attributes. JSON parse errors render as an inline error banner instead of crashing. Size the chart by setting `style=\"height:300px\"` on the wrapping element since the canvas is responsive by default. Bring custom Chart.js plugins via the `plugins` JSON array; the component bundles only the built-in registerables.","props":{"type":"object","properties":{"type":{"type":"string","enum":["line","bar","doughnut","pie","radar","polarArea","scatter","bubble"],"default":"doughnut","description":"Chart.js chart type"},"data":{"type":"string","default":"","description":"JSON-stringified Chart.js Data object: { labels?, datasets: [{label?, data, ...}] }"},"options":{"type":"string","default":"","description":"JSON-stringified Chart.js Options object (optional)"},"plugins":{"type":"string","default":"","description":"JSON-stringified array of Chart.js plugin definitions (optional)"}}},"scripts":{"build":"build","debug":"build:debug","test":"lint"}},"scripts":{"build":"vite build","build:debug":"vite build --mode development","dev":"vite build --watch","lint":"eslint src --ext .ts,.vue","lint:fix":"eslint src --ext .ts,.vue --fix"}} \ No newline at end of file diff --git a/src/wc-content-kit/public/markdown/index.js b/src/wc-content-kit/public/markdown/index.js index 8479484..d1b3dd2 100644 --- a/src/wc-content-kit/public/markdown/index.js +++ b/src/wc-content-kit/public/markdown/index.js @@ -1,75 +1,75 @@ -import { inject as Dr, ref as ku, createApp as bi, defineComponent as pi, computed as uu, openBlock as Pt, createElementBlock as Gt } from "vue"; -import { addCollection as gi } from "@iconify/vue"; -import { hostCss as mi, loadCss as xi, addIcons as yi, define as wi } from "@wippy-fe/proxy"; -import { getActivePinia as Ci, createPinia as vi, setActivePinia as Ei } from "pinia"; -const Di = Symbol("wippy:emit"), Ir = Symbol("wippy:props"), Ii = Symbol("wippy:props_error"), _r = Symbol("wippy:content"), _i = Symbol("wippy:panel-id"), ki = Symbol("wippy:layout-bus"), Bi = Symbol("wippy:host"); -function Fi() { - const e = Dr(Ir); +import { inject as F0, ref as Su, createApp as wn, defineComponent as Cn, computed as nu, openBlock as Wt, createElementBlock as Ut } from "vue"; +import { addCollection as vn } from "@iconify/vue"; +import { hostCss as Dn, loadCss as En, addIcons as _n, define as In } from "@wippy-fe/proxy"; +import { getActivePinia as kn, createPinia as Bn, setActivePinia as Fn } from "pinia"; +const Sn = Symbol("wippy:emit"), S0 = Symbol("wippy:props"), Tn = Symbol("wippy:props_error"), T0 = Symbol("wippy:content"), Rn = Symbol("wippy:panel-id"), Nn = Symbol("wippy:layout-bus"), Mn = Symbol("wippy:host"); +function On() { + const e = F0(S0); if (!e) throw new Error("useProps() must be called inside a WippyVueElement"); return e; } -function Si() { - const e = Dr(_r); +function Qn() { + const e = F0(T0); if (!e) throw new Error("useContent() must be called inside a WippyVueElement with contentTemplate configured"); return e; } -const Ri = [ +const Ln = [ "themeConfigUrl", "primeVueCssUrl", "markdownCssUrl", "iframeCssUrl" ]; -function Ti(e, u) { - const c = (u ?? Ri).map(async (s) => { - const i = mi[s]; - if (!i) - return console.warn(`[wippy-fe/webcomponent-core] hostCss key "${s}" is undefined — skipping. Remove it from hostCssKeys if the CSS was removed.`), null; +function Pn(e, u) { + const s = (u ?? Ln).map(async (a) => { + const r = Dn[a]; + if (!r) + return console.warn(`[wippy-fe/webcomponent-core] hostCss key "${a}" is undefined — skipping. Remove it from hostCssKeys if the CSS was removed.`), null; try { - return await xi(i); - } catch (l) { - return console.warn(`[wippy-fe/webcomponent-core] Failed to load hostCss "${s}" (${i}):`, l), null; + return await En(r); + } catch (o) { + return console.warn(`[wippy-fe/webcomponent-core] Failed to load hostCss "${a}" (${r}):`, o), null; } }); - return Promise.all(c).then((s) => { - for (const i of s) { - if (!i) + return Promise.all(s).then((a) => { + for (const r of a) { + if (!r) continue; - const l = document.createElement("style"); - l.textContent = i, l.setAttribute("role", "@wippy-fe/host-css"), e.appendChild(l); + const o = document.createElement("style"); + o.textContent = r, o.setAttribute("role", "@wippy-fe/host-css"), e.appendChild(o); } }); } -function Ni(e, u) { +function Gn(e, u) { const t = document.createElement("style"); t.textContent = u, e.appendChild(t); } -function kr(e) { +function R0(e) { return e.__wippyHost ?? null; } -function Oi(e) { +function Hn(e) { return e.replace(/-([a-z])/g, (u, t) => t.toUpperCase()); } -function Mi(e, u, t) { +function qn(e, u, t) { switch (t.type) { case "string": return { value: u }; case "number": { - const c = Number.parseFloat(u); - return Number.isNaN(c) ? { value: void 0, error: `Invalid ${e}: expected a number` } : { value: c }; + const s = Number.parseFloat(u); + return Number.isNaN(s) ? { value: void 0, error: `Invalid ${e}: expected a number` } : { value: s }; } case "integer": { - const c = Number.parseInt(u, 10); - return Number.isNaN(c) ? { value: void 0, error: `Invalid ${e}: expected an integer` } : { value: c }; + const s = Number.parseInt(u, 10); + return Number.isNaN(s) ? { value: void 0, error: `Invalid ${e}: expected an integer` } : { value: s }; } case "boolean": return { value: u !== "false" }; case "array": case "object": try { - const c = JSON.parse(u); - return t.type === "array" && !Array.isArray(c) ? { value: void 0, error: `Invalid ${e}: expected a JSON array` } : { value: c }; + const s = JSON.parse(u); + return t.type === "array" && !Array.isArray(s) ? { value: void 0, error: `Invalid ${e}: expected a JSON array` } : { value: s }; } catch { return { value: void 0, error: `Invalid ${e}: must be valid JSON` }; } @@ -77,22 +77,90 @@ function Mi(e, u, t) { return { value: u }; } } -function qt(e, u) { - const t = {}, c = []; - for (const [s, i] of Object.entries(u.properties)) { - const l = e.getAttribute(s), a = Oi(s); - if (l === null) { - i.default !== void 0 && (t[a] = i.default); +function Tu(e, u) { + const t = {}, s = []; + for (const [a, r] of Object.entries(u.properties)) { + const o = e.getAttribute(a), i = Hn(a); + if (o === null) { + r.default !== void 0 && (t[i] = r.default); continue; } - const o = Mi(s, l, i); - o.error ? c.push(o.error) : t[a] = o.value; + const c = qn(a, o, r); + c.error ? s.push(c.error) : t[i] = c.value; + } + return { props: t, errors: s }; +} +class Wn { + constructor(u, t) { + this._propsListeners = /* @__PURE__ */ new Set(), this._contentListeners = /* @__PURE__ */ new Set(), this._disposed = !1, this._props = u.props, this._errors = u.errors, this._content = u.content, this._emitToDom = t; + const s = this; + this.props = { + get value() { + return s._props; + }, + get errors() { + return s._errors; + }, + subscribe(a, r) { + return s._subscribeProps(a, r); + } + }, this.events = { + emit(a, r) { + s._disposed || s._emitToDom(a, r); + } + }, this.content = u.hasContent ? { + get value() { + return s._content; + }, + subscribe(a, r) { + return s._subscribeContent(a, r); + } + } : null; + } + /** @internal */ + notifyProps(u, t) { + if (!this._disposed) { + this._props = u, this._errors = t; + for (const s of this._propsListeners) + s(u, t); + } + } + /** @internal */ + notifyContent(u) { + if (!this._disposed) { + this._content = u; + for (const t of this._contentListeners) + t(u); + } + } + /** @internal */ + dispose() { + this._disposed || (this._disposed = !0, this._propsListeners.clear(), this._contentListeners.clear()); + } + _subscribeProps(u, t) { + if (this._disposed || t?.signal?.aborted) + return () => { + }; + this._propsListeners.add(u), t?.immediate && u(this._props, this._errors); + const s = () => { + this._propsListeners.delete(u), t?.signal?.removeEventListener("abort", s); + }; + return t?.signal?.addEventListener("abort", s, { once: !0 }), s; + } + _subscribeContent(u, t) { + if (this._disposed || t?.signal?.aborted) + return () => { + }; + this._contentListeners.add(u), t?.immediate && u(this._content); + const s = () => { + this._contentListeners.delete(u), t?.signal?.removeEventListener("abort", s); + }; + return t?.signal?.addEventListener("abort", s, { once: !0 }), s; } - return { props: t, errors: c }; } -class Qi extends HTMLElement { +class Un extends HTMLElement { constructor() { - super(), this._contentObserver = null, this._initialized = !1, this._container = null, this._internals = this.attachInternals(); + super(), this._contentObserver = null, this._initialized = !1, this._container = null, this._reactive = null, this._lastProps = null, this._lastErrors = [], this._lastContent = null, this._internals = this.attachInternals(); } /** * Override to provide the component's configuration. @@ -110,8 +178,8 @@ class Qi extends HTMLElement { * Derived from the props schema + any `extraObservedAttributes`. */ static get observedAttributes() { - const u = this.wippyConfig, t = Object.keys(u.propsSchema.properties), c = u.extraObservedAttributes ?? []; - return [...t, ...c]; + const u = this.wippyConfig, t = Object.keys(u.propsSchema.properties), s = u.extraObservedAttributes ?? []; + return [...t, ...s]; } /** * Panel-scoped `host` wrapper attached by the managed-layout shell's @@ -128,7 +196,7 @@ class Qi extends HTMLElement { * cases can fall back to `import { host } from '@wippy-fe/proxy'`. */ get host() { - return kr(this); + return R0(this); } /** * Emit a CustomEvent that bubbles and crosses shadow DOM boundaries. @@ -140,31 +208,71 @@ class Qi extends HTMLElement { detail: t })); } + /** + * Opt-in reactive adapter — framework-agnostic. Subscribe to prop + * changes, content changes, or emit typed events from a non-Vue + * consumer without re-rolling reactivity. + * + * ```ts + * class MyEl extends WippyElement<{ count: number }, { tick: { n: number } }> { + * protected onMount() { + * const ctrl = new AbortController() + * this.reactive.props.subscribe(({ count }) => { + * this.shadowRoot!.querySelector('.n')!.textContent = String(count) + * }, { signal: ctrl.signal, immediate: true }) + * } + * tick(n: number) { this.reactive.events.emit('tick', { n }) } + * } + * ``` + * + * Allocation cost is zero unless this getter is touched. Disposed on + * `disconnectedCallback`; a fresh adapter is allocated on the next + * access after reconnect. + */ + get reactive() { + if (!this._reactive) { + const u = this.constructor.wippyConfig, t = !!u.contentTemplate; + let s, a; + if (this._lastProps !== null) + s = this._lastProps, a = this._lastErrors; + else { + const o = Tu(this, u.propsSchema); + u.validateProps && o.errors.push(...u.validateProps(o.props)), s = o.props, a = o.errors, this._lastProps = s, this._lastErrors = a; + } + const r = t ? this._lastContent ?? this._extractContent(u.contentTemplate) : null; + t && this._lastContent === null && (this._lastContent = r), this._reactive = new Wn( + { props: s, errors: a, content: r, hasContent: t }, + this.emitEvent.bind(this) + ); + } + return this._reactive; + } // ── Lifecycle ────────────────────────────────────────────── connectedCallback() { this._internals.states.add("loading"); try { - const u = this.constructor.wippyConfig, t = this._initialized, c = this.shadowRoot ?? this.attachShadow({ mode: u.shadowMode ?? "open" }); - let s; + const u = this.constructor.wippyConfig, t = this._initialized, s = this.shadowRoot ?? this.attachShadow({ mode: u.shadowMode ?? "open" }); + let a; if (t) - s = this._container; + a = this._container; else { - this.onInit(c), u.inlineCss && Ni(c, u.inlineCss), (u.hostCssKeys === void 0 || u.hostCssKeys.length > 0) && Ti(c, u.hostCssKeys), s = document.createElement("div"); - const r = u.containerClasses ?? []; - r.length > 0 && s.classList.add(...r), c.appendChild(s), this._container = s, yi(gi); - } - const { props: i, errors: l } = qt(this, u.propsSchema); - u.validateProps && l.push(...u.validateProps(i)); - const a = i; - let o = null; - u.contentTemplate && (o = this._extractContent(u.contentTemplate), this._contentObserver = new MutationObserver(() => { - const r = this._extractContent(u.contentTemplate); - this.onContentChanged(r); + this.onInit(s), u.inlineCss && Gn(s, u.inlineCss), (u.hostCssKeys === void 0 || u.hostCssKeys.length > 0) && Pn(s, u.hostCssKeys), a = document.createElement("div"); + const n = u.containerClasses ?? []; + n.length > 0 && a.classList.add(...n), s.appendChild(a), this._container = a, _n(vn); + } + const { props: r, errors: o } = Tu(this, u.propsSchema); + u.validateProps && o.push(...u.validateProps(r)); + const i = r; + this._lastProps = i, this._lastErrors = o; + let c = null; + u.contentTemplate && (c = this._extractContent(u.contentTemplate), this._lastContent = c, this._contentObserver = new MutationObserver(() => { + const n = this._extractContent(u.contentTemplate); + this._lastContent = n, this._reactive?.notifyContent(n), this.onContentChanged(n); }), this._contentObserver.observe(this, { childList: !0, characterData: !0, subtree: !0 - })), this.onMount(c, s, a, l, o, t), this._internals.states.delete("loading"), this._internals.states.add("ready"), t || (this._initialized = !0), this.onReady(), this.emitEvent("load"); + })), this.onMount(s, a, i, o, c, t), this._internals.states.delete("loading"), this._internals.states.add("ready"), t || (this._initialized = !0), this.onReady(), this.emitEvent("load"); } catch (u) { this.onError(u), this._internals.states.delete("loading"), this._internals.states.add("error"), this.emitEvent("error", { message: u instanceof Error ? u.message : String(u), @@ -173,13 +281,15 @@ class Qi extends HTMLElement { } } disconnectedCallback() { - this._contentObserver && (this._contentObserver.disconnect(), this._contentObserver = null), this.onUnmount(), this.emitEvent("unload"), this._internals.states.clear(), delete this.__wippyHost, delete this.__wippyHostBus; + this._contentObserver && (this._contentObserver.disconnect(), this._contentObserver = null), this.onUnmount(), this.emitEvent("unload"), this._internals.states.clear(), this._reactive?.dispose(), this._reactive = null, this._lastProps = null, this._lastErrors = [], this._lastContent = null, delete this.__wippyHost, delete this.__wippyHostBus; } - attributeChangedCallback(u, t, c) { - if (t === c) + attributeChangedCallback(u, t, s) { + if (t === s) return; - const s = this.constructor.wippyConfig, { props: i, errors: l } = qt(this, s.propsSchema); - s.validateProps && l.push(...s.validateProps(i)), this.onPropsChanged(i, l); + const a = this.constructor.wippyConfig, { props: r, errors: o } = Tu(this, a.propsSchema); + a.validateProps && o.push(...a.validateProps(r)); + const i = r; + this._lastProps = i, this._lastErrors = o, this._reactive?.notifyProps(i, o), this.onPropsChanged(i, o); } // ── Hooks ────────────────────────────────────────────────── /** Called right after shadow DOM is attached, before CSS or container. */ @@ -206,15 +316,15 @@ class Qi extends HTMLElement { onContentChanged(u) { } } -function Li(e) { +function Kn(e) { return e.__wippyHostBus ?? null; } -function Pi(e) { +function Yn(e) { return e.dataset.wippyPanelId ?? null; } -class Gi extends Qi { +class jn extends Un { constructor() { - super(...arguments), this._vueApp = null, this._propsRef = ku({}), this._errorsRef = ku([]), this._contentRef = ku(null); + super(...arguments), this._vueApp = null, this._propsRef = Su({}), this._errorsRef = Su([]), this._contentRef = Su(null), this._bridgeAbort = null; } /** * Override to provide Vue-specific configuration. @@ -222,149 +332,148 @@ class Gi extends Qi { static get vueConfig() { throw new Error("WippyVueElement subclass must override static get vueConfig()"); } - onMount(u, t, c, s, i, l) { - const a = this.constructor.vueConfig; - this._propsRef.value = c, this._errorsRef.value = s, this._contentRef.value = i ?? null; - for (const n of s) - this.emitEvent("invalid", { message: n }); - const o = Ci(); - this._vueApp = bi(a.rootComponent); - const r = vi(); - if (a.piniaPlugins) - for (const n of a.piniaPlugins) - r.use(n); - if (this._vueApp.use(r), a.plugins) - for (const n of a.plugins) - this._vueApp.use(n); - this._vueApp.provide(Ir, this._propsRef), this._vueApp.provide(Ii, this._errorsRef), this._vueApp.provide(Di, this.emitEvent.bind(this)), this._vueApp.provide(_r, this._contentRef), this._vueApp.provide(_i, Pi(this)), this._vueApp.provide(ki, Li(this)), this._vueApp.provide(Bi, kr(this)), a.providers && a.providers(this._vueApp, this), this._vueApp.mount(t), o && Ei(o); + onMount(u, t, s, a, r, o) { + const i = this.constructor.vueConfig; + this._propsRef.value = s, this._errorsRef.value = a, this._contentRef.value = r ?? null; + for (const l of a) + this.emitEvent("invalid", { message: l }); + this._bridgeAbort = new AbortController(), this.reactive.props.subscribe((l, f) => { + this._propsRef.value = l, this._errorsRef.value = [...f]; + for (const A of f) + this.emitEvent("invalid", { message: A }); + }, { signal: this._bridgeAbort.signal }), this.reactive.content && this.reactive.content.subscribe((l) => { + this._contentRef.value = l; + }, { signal: this._bridgeAbort.signal }); + const c = kn(); + this._vueApp = wn(i.rootComponent); + const n = Bn(); + if (i.piniaPlugins) + for (const l of i.piniaPlugins) + n.use(l); + if (this._vueApp.use(n), i.plugins) + for (const l of i.plugins) + this._vueApp.use(l); + this._vueApp.provide(S0, this._propsRef), this._vueApp.provide(Tn, this._errorsRef), this._vueApp.provide(Sn, this.emitEvent.bind(this)), this._vueApp.provide(T0, this._contentRef), this._vueApp.provide(Rn, Yn(this)), this._vueApp.provide(Nn, Kn(this)), this._vueApp.provide(Mn, R0(this)), i.providers && i.providers(this._vueApp, this), this._vueApp.mount(t), c && Fn(c); } onUnmount() { - this._vueApp && (this._vueApp.unmount(), this._vueApp = null); - } - onPropsChanged(u, t) { - this._propsRef.value = u, this._errorsRef.value = t; - for (const c of t) - this.emitEvent("invalid", { message: c }); - } - onContentChanged(u) { - this._contentRef.value = u; + this._bridgeAbort?.abort(), this._bridgeAbort = null, this._vueApp && (this._vueApp.unmount(), this._vueApp = null); } } -const Ht = {}; -function qi(e) { - let u = Ht[e]; +const Kt = {}; +function Jn(e) { + let u = Kt[e]; if (u) return u; - u = Ht[e] = []; + u = Kt[e] = []; for (let t = 0; t < 128; t++) { - const c = String.fromCharCode(t); - u.push(c); + const s = String.fromCharCode(t); + u.push(s); } for (let t = 0; t < e.length; t++) { - const c = e.charCodeAt(t); - u[c] = "%" + ("0" + c.toString(16).toUpperCase()).slice(-2); + const s = e.charCodeAt(t); + u[s] = "%" + ("0" + s.toString(16).toUpperCase()).slice(-2); } return u; } -function Qe(e, u) { - typeof u != "string" && (u = Qe.defaultChars); - const t = qi(u); - return e.replace(/(%[a-f0-9]{2})+/gi, function(c) { - let s = ""; - for (let i = 0, l = c.length; i < l; i += 3) { - const a = parseInt(c.slice(i + 1, i + 3), 16); - if (a < 128) { - s += t[a]; +function We(e, u) { + typeof u != "string" && (u = We.defaultChars); + const t = Jn(u); + return e.replace(/(%[a-f0-9]{2})+/gi, function(s) { + let a = ""; + for (let r = 0, o = s.length; r < o; r += 3) { + const i = parseInt(s.slice(r + 1, r + 3), 16); + if (i < 128) { + a += t[i]; continue; } - if ((a & 224) === 192 && i + 3 < l) { - const o = parseInt(c.slice(i + 4, i + 6), 16); - if ((o & 192) === 128) { - const r = a << 6 & 1984 | o & 63; - r < 128 ? s += "��" : s += String.fromCharCode(r), i += 3; + if ((i & 224) === 192 && r + 3 < o) { + const c = parseInt(s.slice(r + 4, r + 6), 16); + if ((c & 192) === 128) { + const n = i << 6 & 1984 | c & 63; + n < 128 ? a += "��" : a += String.fromCharCode(n), r += 3; continue; } } - if ((a & 240) === 224 && i + 6 < l) { - const o = parseInt(c.slice(i + 4, i + 6), 16), r = parseInt(c.slice(i + 7, i + 9), 16); - if ((o & 192) === 128 && (r & 192) === 128) { - const n = a << 12 & 61440 | o << 6 & 4032 | r & 63; - n < 2048 || n >= 55296 && n <= 57343 ? s += "���" : s += String.fromCharCode(n), i += 6; + if ((i & 240) === 224 && r + 6 < o) { + const c = parseInt(s.slice(r + 4, r + 6), 16), n = parseInt(s.slice(r + 7, r + 9), 16); + if ((c & 192) === 128 && (n & 192) === 128) { + const l = i << 12 & 61440 | c << 6 & 4032 | n & 63; + l < 2048 || l >= 55296 && l <= 57343 ? a += "���" : a += String.fromCharCode(l), r += 6; continue; } } - if ((a & 248) === 240 && i + 9 < l) { - const o = parseInt(c.slice(i + 4, i + 6), 16), r = parseInt(c.slice(i + 7, i + 9), 16), n = parseInt(c.slice(i + 10, i + 12), 16); - if ((o & 192) === 128 && (r & 192) === 128 && (n & 192) === 128) { - let f = a << 18 & 1835008 | o << 12 & 258048 | r << 6 & 4032 | n & 63; - f < 65536 || f > 1114111 ? s += "����" : (f -= 65536, s += String.fromCharCode(55296 + (f >> 10), 56320 + (f & 1023))), i += 9; + if ((i & 248) === 240 && r + 9 < o) { + const c = parseInt(s.slice(r + 4, r + 6), 16), n = parseInt(s.slice(r + 7, r + 9), 16), l = parseInt(s.slice(r + 10, r + 12), 16); + if ((c & 192) === 128 && (n & 192) === 128 && (l & 192) === 128) { + let f = i << 18 & 1835008 | c << 12 & 258048 | n << 6 & 4032 | l & 63; + f < 65536 || f > 1114111 ? a += "����" : (f -= 65536, a += String.fromCharCode(55296 + (f >> 10), 56320 + (f & 1023))), r += 9; continue; } } - s += "�"; + a += "�"; } - return s; + return a; }); } -Qe.defaultChars = ";/?:@&=+$,#"; -Qe.componentChars = ""; -const Wt = {}; -function Hi(e) { - let u = Wt[e]; +We.defaultChars = ";/?:@&=+$,#"; +We.componentChars = ""; +const Yt = {}; +function Zn(e) { + let u = Yt[e]; if (u) return u; - u = Wt[e] = []; + u = Yt[e] = []; for (let t = 0; t < 128; t++) { - const c = String.fromCharCode(t); - /^[0-9a-z]$/i.test(c) ? u.push(c) : u.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2)); + const s = String.fromCharCode(t); + /^[0-9a-z]$/i.test(s) ? u.push(s) : u.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2)); } for (let t = 0; t < e.length; t++) u[e.charCodeAt(t)] = e[t]; return u; } -function Ze(e, u, t) { - typeof u != "string" && (t = u, u = Ze.defaultChars), typeof t > "u" && (t = !0); - const c = Hi(u); - let s = ""; - for (let i = 0, l = e.length; i < l; i++) { - const a = e.charCodeAt(i); - if (t && a === 37 && i + 2 < l && /^[0-9a-f]{2}$/i.test(e.slice(i + 1, i + 3))) { - s += e.slice(i, i + 3), i += 2; +function $e(e, u, t) { + typeof u != "string" && (t = u, u = $e.defaultChars), typeof t > "u" && (t = !0); + const s = Zn(u); + let a = ""; + for (let r = 0, o = e.length; r < o; r++) { + const i = e.charCodeAt(r); + if (t && i === 37 && r + 2 < o && /^[0-9a-f]{2}$/i.test(e.slice(r + 1, r + 3))) { + a += e.slice(r, r + 3), r += 2; continue; } - if (a < 128) { - s += c[a]; + if (i < 128) { + a += s[i]; continue; } - if (a >= 55296 && a <= 57343) { - if (a >= 55296 && a <= 56319 && i + 1 < l) { - const o = e.charCodeAt(i + 1); - if (o >= 56320 && o <= 57343) { - s += encodeURIComponent(e[i] + e[i + 1]), i++; + if (i >= 55296 && i <= 57343) { + if (i >= 55296 && i <= 56319 && r + 1 < o) { + const c = e.charCodeAt(r + 1); + if (c >= 56320 && c <= 57343) { + a += encodeURIComponent(e[r] + e[r + 1]), r++; continue; } } - s += "%EF%BF%BD"; + a += "%EF%BF%BD"; continue; } - s += encodeURIComponent(e[i]); + a += encodeURIComponent(e[r]); } - return s; + return a; } -Ze.defaultChars = ";/?:@&=+$,-_.!~*'()#"; -Ze.componentChars = "-_.!~*'()"; -function vt(e) { +$e.defaultChars = ";/?:@&=+$,-_.!~*'()#"; +$e.componentChars = "-_.!~*'()"; +function It(e) { let u = ""; return u += e.protocol || "", u += e.slashes ? "//" : "", u += e.auth ? e.auth + "@" : "", e.hostname && e.hostname.indexOf(":") !== -1 ? u += "[" + e.hostname + "]" : u += e.hostname || "", u += e.port ? ":" + e.port : "", u += e.pathname || "", u += e.search || "", u += e.hash || "", u; } -function Au() { +function mu() { this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null; } -const Wi = /^([a-z0-9.+-]+:)/i, Ui = /:[0-9]*$/, Ki = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Yi = ["<", ">", '"', "`", " ", "\r", ` -`, " "], ji = ["{", "}", "|", "\\", "^", "`"].concat(Yi), Ji = ["'"].concat(ji), Ut = ["%", "/", "?", ";", "#"].concat(Ji), Kt = ["/", "?", "#"], Zi = 255, Yt = /^[+a-z0-9A-Z_-]{0,63}$/, Vi = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, jt = { +const Vn = /^([a-z0-9.+-]+:)/i, zn = /:[0-9]*$/, Xn = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, $n = ["<", ">", '"', "`", " ", "\r", ` +`, " "], ei = ["{", "}", "|", "\\", "^", "`"].concat($n), ui = ["'"].concat(ei), jt = ["%", "/", "?", ";", "#"].concat(ui), Jt = ["/", "?", "#"], ti = 255, Zt = /^[+a-z0-9A-Z_-]{0,63}$/, ri = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Vt = { javascript: !0, "javascript:": !0 -}, Jt = { +}, zt = { http: !0, https: !0, ftp: !0, @@ -376,81 +485,81 @@ const Wi = /^([a-z0-9.+-]+:)/i, Ui = /:[0-9]*$/, Ki = /^(\/\/?(?!\/)[^\?\s]*)(\? "gopher:": !0, "file:": !0 }; -function Et(e, u) { - if (e && e instanceof Au) return e; - const t = new Au(); +function kt(e, u) { + if (e && e instanceof mu) return e; + const t = new mu(); return t.parse(e, u), t; } -Au.prototype.parse = function(e, u) { - let t, c, s, i = e; - if (i = i.trim(), !u && e.split("#").length === 1) { - const r = Ki.exec(i); - if (r) - return this.pathname = r[1], r[2] && (this.search = r[2]), this; - } - let l = Wi.exec(i); - if (l && (l = l[0], t = l.toLowerCase(), this.protocol = l, i = i.substr(l.length)), (u || l || i.match(/^\/\/[^@\/]+@[^@\/]+/)) && (s = i.substr(0, 2) === "//", s && !(l && jt[l]) && (i = i.substr(2), this.slashes = !0)), !jt[l] && (s || l && !Jt[l])) { - let r = -1; - for (let h = 0; h < Kt.length; h++) - c = i.indexOf(Kt[h]), c !== -1 && (r === -1 || c < r) && (r = c); - let n, f; - r === -1 ? f = i.lastIndexOf("@") : f = i.lastIndexOf("@", r), f !== -1 && (n = i.slice(0, f), i = i.slice(f + 1), this.auth = n), r = -1; - for (let h = 0; h < Ut.length; h++) - c = i.indexOf(Ut[h]), c !== -1 && (r === -1 || c < r) && (r = c); - r === -1 && (r = i.length), i[r - 1] === ":" && r--; - const d = i.slice(0, r); - i = i.slice(r), this.parseHost(d), this.hostname = this.hostname || ""; - const A = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]"; - if (!A) { +mu.prototype.parse = function(e, u) { + let t, s, a, r = e; + if (r = r.trim(), !u && e.split("#").length === 1) { + const n = Xn.exec(r); + if (n) + return this.pathname = n[1], n[2] && (this.search = n[2]), this; + } + let o = Vn.exec(r); + if (o && (o = o[0], t = o.toLowerCase(), this.protocol = o, r = r.substr(o.length)), (u || o || r.match(/^\/\/[^@\/]+@[^@\/]+/)) && (a = r.substr(0, 2) === "//", a && !(o && Vt[o]) && (r = r.substr(2), this.slashes = !0)), !Vt[o] && (a || o && !zt[o])) { + let n = -1; + for (let h = 0; h < Jt.length; h++) + s = r.indexOf(Jt[h]), s !== -1 && (n === -1 || s < n) && (n = s); + let l, f; + n === -1 ? f = r.lastIndexOf("@") : f = r.lastIndexOf("@", n), f !== -1 && (l = r.slice(0, f), r = r.slice(f + 1), this.auth = l), n = -1; + for (let h = 0; h < jt.length; h++) + s = r.indexOf(jt[h]), s !== -1 && (n === -1 || s < n) && (n = s); + n === -1 && (n = r.length), r[n - 1] === ":" && n--; + const A = r.slice(0, n); + r = r.slice(n), this.parseHost(A), this.hostname = this.hostname || ""; + const d = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]"; + if (!d) { const h = this.hostname.split(/\./); - for (let w = 0, C = h.length; w < C; w++) { - const b = h[w]; - if (b && !b.match(Yt)) { - let m = ""; - for (let g = 0, x = b.length; g < x; g++) - b.charCodeAt(g) > 127 ? m += "x" : m += b[g]; - if (!m.match(Yt)) { - const g = h.slice(0, w), x = h.slice(w + 1), p = b.match(Vi); - p && (g.push(p[1]), x.unshift(p[2])), x.length && (i = x.join(".") + i), this.hostname = g.join("."); + for (let y = 0, C = h.length; y < C; y++) { + const w = h[y]; + if (w && !w.match(Zt)) { + let b = ""; + for (let x = 0, m = w.length; x < m; x++) + w.charCodeAt(x) > 127 ? b += "x" : b += w[x]; + if (!b.match(Zt)) { + const x = h.slice(0, y), m = h.slice(y + 1), p = w.match(ri); + p && (x.push(p[1]), m.unshift(p[2])), m.length && (r = m.join(".") + r), this.hostname = x.join("."); break; } } } } - this.hostname.length > Zi && (this.hostname = ""), A && (this.hostname = this.hostname.substr(1, this.hostname.length - 2)); + this.hostname.length > ti && (this.hostname = ""), d && (this.hostname = this.hostname.substr(1, this.hostname.length - 2)); } - const a = i.indexOf("#"); - a !== -1 && (this.hash = i.substr(a), i = i.slice(0, a)); - const o = i.indexOf("?"); - return o !== -1 && (this.search = i.substr(o), i = i.slice(0, o)), i && (this.pathname = i), Jt[t] && this.hostname && !this.pathname && (this.pathname = ""), this; + const i = r.indexOf("#"); + i !== -1 && (this.hash = r.substr(i), r = r.slice(0, i)); + const c = r.indexOf("?"); + return c !== -1 && (this.search = r.substr(c), r = r.slice(0, c)), r && (this.pathname = r), zt[t] && this.hostname && !this.pathname && (this.pathname = ""), this; }; -Au.prototype.parseHost = function(e) { - let u = Ui.exec(e); +mu.prototype.parseHost = function(e) { + let u = zn.exec(e); u && (u = u[0], u !== ":" && (this.port = u.substr(1)), e = e.substr(0, e.length - u.length)), e && (this.hostname = e); }; -const zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - decode: Qe, - encode: Ze, - format: vt, - parse: Et -}, Symbol.toStringTag, { value: "Module" })), Br = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Fr = /[\0-\x1F\x7F-\x9F]/, Xi = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, Dt = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Sr = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Rr = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + decode: We, + encode: $e, + format: It, + parse: kt +}, Symbol.toStringTag, { value: "Module" })), N0 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, M0 = /[\0-\x1F\x7F-\x9F]/, ii = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, Bt = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, O0 = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Q0 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - Any: Br, - Cc: Fr, - Cf: Xi, - P: Dt, - S: Sr, - Z: Rr -}, Symbol.toStringTag, { value: "Module" })), en = new Uint16Array( + Any: N0, + Cc: M0, + Cf: ii, + P: Bt, + S: O0, + Z: Q0 +}, Symbol.toStringTag, { value: "Module" })), si = new Uint16Array( // prettier-ignore 'ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e) => e.charCodeAt(0)) -), un = new Uint16Array( +), ci = new Uint16Array( // prettier-ignore "Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e) => e.charCodeAt(0)) ); -var Bu; -const tn = /* @__PURE__ */ new Map([ +var Ru; +const oi = /* @__PURE__ */ new Map([ [0, 65533], // C1 Unicode control character reference replacements [128, 8364], @@ -480,53 +589,53 @@ const tn = /* @__PURE__ */ new Map([ [156, 339], [158, 382], [159, 376] -]), rn = ( +]), li = ( // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins - (Bu = String.fromCodePoint) !== null && Bu !== void 0 ? Bu : function(e) { + (Ru = String.fromCodePoint) !== null && Ru !== void 0 ? Ru : function(e) { let u = ""; return e > 65535 && (e -= 65536, u += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | e & 1023), u += String.fromCharCode(e), u; } ); -function nn(e) { +function fi(e) { var u; - return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u = tn.get(e)) !== null && u !== void 0 ? u : e; + return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u = oi.get(e)) !== null && u !== void 0 ? u : e; } -var Z; +var ee; (function(e) { e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z"; -})(Z || (Z = {})); -const an = 32; -var Ee; +})(ee || (ee = {})); +const di = 32; +var Te; (function(e) { e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE"; -})(Ee || (Ee = {})); -function xt(e) { - return e >= Z.ZERO && e <= Z.NINE; +})(Te || (Te = {})); +function vt(e) { + return e >= ee.ZERO && e <= ee.NINE; } -function sn(e) { - return e >= Z.UPPER_A && e <= Z.UPPER_F || e >= Z.LOWER_A && e <= Z.LOWER_F; +function Ai(e) { + return e >= ee.UPPER_A && e <= ee.UPPER_F || e >= ee.LOWER_A && e <= ee.LOWER_F; } -function cn(e) { - return e >= Z.UPPER_A && e <= Z.UPPER_Z || e >= Z.LOWER_A && e <= Z.LOWER_Z || xt(e); +function hi(e) { + return e >= ee.UPPER_A && e <= ee.UPPER_Z || e >= ee.LOWER_A && e <= ee.LOWER_Z || vt(e); } -function on(e) { - return e === Z.EQUALS || cn(e); +function bi(e) { + return e === ee.EQUALS || hi(e); } -var J; +var $; (function(e) { e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity"; -})(J || (J = {})); -var ve; +})($ || ($ = {})); +var Se; (function(e) { e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute"; -})(ve || (ve = {})); -class ln { - constructor(u, t, c) { - this.decodeTree = u, this.emitCodePoint = t, this.errors = c, this.state = J.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = ve.Strict; +})(Se || (Se = {})); +class pi { + constructor(u, t, s) { + this.decodeTree = u, this.emitCodePoint = t, this.errors = s, this.state = $.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Se.Strict; } /** Resets the instance to make it reusable. */ startEntity(u) { - this.decodeMode = u, this.state = J.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1; + this.decodeMode = u, this.state = $.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1; } /** * Write an entity to the decoder. This can be called multiple times with partial entities. @@ -541,15 +650,15 @@ class ln { */ write(u, t) { switch (this.state) { - case J.EntityStart: - return u.charCodeAt(t) === Z.NUM ? (this.state = J.NumericStart, this.consumed += 1, this.stateNumericStart(u, t + 1)) : (this.state = J.NamedEntity, this.stateNamedEntity(u, t)); - case J.NumericStart: + case $.EntityStart: + return u.charCodeAt(t) === ee.NUM ? (this.state = $.NumericStart, this.consumed += 1, this.stateNumericStart(u, t + 1)) : (this.state = $.NamedEntity, this.stateNamedEntity(u, t)); + case $.NumericStart: return this.stateNumericStart(u, t); - case J.NumericDecimal: + case $.NumericDecimal: return this.stateNumericDecimal(u, t); - case J.NumericHex: + case $.NumericHex: return this.stateNumericHex(u, t); - case J.NamedEntity: + case $.NamedEntity: return this.stateNamedEntity(u, t); } } @@ -563,12 +672,12 @@ class ln { * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ stateNumericStart(u, t) { - return t >= u.length ? -1 : (u.charCodeAt(t) | an) === Z.LOWER_X ? (this.state = J.NumericHex, this.consumed += 1, this.stateNumericHex(u, t + 1)) : (this.state = J.NumericDecimal, this.stateNumericDecimal(u, t)); + return t >= u.length ? -1 : (u.charCodeAt(t) | di) === ee.LOWER_X ? (this.state = $.NumericHex, this.consumed += 1, this.stateNumericHex(u, t + 1)) : (this.state = $.NumericDecimal, this.stateNumericDecimal(u, t)); } - addToNumericResult(u, t, c, s) { - if (t !== c) { - const i = c - t; - this.result = this.result * Math.pow(s, i) + parseInt(u.substr(t, i), s), this.consumed += i; + addToNumericResult(u, t, s, a) { + if (t !== s) { + const r = s - t; + this.result = this.result * Math.pow(a, r) + parseInt(u.substr(t, r), a), this.consumed += r; } } /** @@ -581,15 +690,15 @@ class ln { * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ stateNumericHex(u, t) { - const c = t; + const s = t; for (; t < u.length; ) { - const s = u.charCodeAt(t); - if (xt(s) || sn(s)) + const a = u.charCodeAt(t); + if (vt(a) || Ai(a)) t += 1; else - return this.addToNumericResult(u, c, t, 16), this.emitNumericEntity(s, 3); + return this.addToNumericResult(u, s, t, 16), this.emitNumericEntity(a, 3); } - return this.addToNumericResult(u, c, t, 16), -1; + return this.addToNumericResult(u, s, t, 16), -1; } /** * Parses a decimal numeric entity. @@ -601,15 +710,15 @@ class ln { * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ stateNumericDecimal(u, t) { - const c = t; + const s = t; for (; t < u.length; ) { - const s = u.charCodeAt(t); - if (xt(s)) + const a = u.charCodeAt(t); + if (vt(a)) t += 1; else - return this.addToNumericResult(u, c, t, 10), this.emitNumericEntity(s, 2); + return this.addToNumericResult(u, s, t, 10), this.emitNumericEntity(a, 2); } - return this.addToNumericResult(u, c, t, 10), -1; + return this.addToNumericResult(u, s, t, 10), -1; } /** * Validate and emit a numeric entity. @@ -625,14 +734,14 @@ class ln { * @returns The number of characters that were consumed. */ emitNumericEntity(u, t) { - var c; + var s; if (this.consumed <= t) - return (c = this.errors) === null || c === void 0 || c.absenceOfDigitsInNumericCharacterReference(this.consumed), 0; - if (u === Z.SEMI) + return (s = this.errors) === null || s === void 0 || s.absenceOfDigitsInNumericCharacterReference(this.consumed), 0; + if (u === ee.SEMI) this.consumed += 1; - else if (this.decodeMode === ve.Strict) + else if (this.decodeMode === Se.Strict) return 0; - return this.emitCodePoint(nn(this.result), this.consumed), this.errors && (u !== Z.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed; + return this.emitCodePoint(fi(this.result), this.consumed), this.errors && (u !== ee.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed; } /** * Parses a named entity. @@ -644,19 +753,19 @@ class ln { * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ stateNamedEntity(u, t) { - const { decodeTree: c } = this; - let s = c[this.treeIndex], i = (s & Ee.VALUE_LENGTH) >> 14; + const { decodeTree: s } = this; + let a = s[this.treeIndex], r = (a & Te.VALUE_LENGTH) >> 14; for (; t < u.length; t++, this.excess++) { - const l = u.charCodeAt(t); - if (this.treeIndex = fn(c, s, this.treeIndex + Math.max(1, i), l), this.treeIndex < 0) + const o = u.charCodeAt(t); + if (this.treeIndex = gi(s, a, this.treeIndex + Math.max(1, r), o), this.treeIndex < 0) return this.result === 0 || // If we are parsing an attribute - this.decodeMode === ve.Attribute && // We shouldn't have consumed any characters after the entity, - (i === 0 || // And there should be no invalid characters. - on(l)) ? 0 : this.emitNotTerminatedNamedEntity(); - if (s = c[this.treeIndex], i = (s & Ee.VALUE_LENGTH) >> 14, i !== 0) { - if (l === Z.SEMI) - return this.emitNamedEntityData(this.treeIndex, i, this.consumed + this.excess); - this.decodeMode !== ve.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0); + this.decodeMode === Se.Attribute && // We shouldn't have consumed any characters after the entity, + (r === 0 || // And there should be no invalid characters. + bi(o)) ? 0 : this.emitNotTerminatedNamedEntity(); + if (a = s[this.treeIndex], r = (a & Te.VALUE_LENGTH) >> 14, r !== 0) { + if (o === ee.SEMI) + return this.emitNamedEntityData(this.treeIndex, r, this.consumed + this.excess); + this.decodeMode !== Se.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0); } } return -1; @@ -668,8 +777,8 @@ class ln { */ emitNotTerminatedNamedEntity() { var u; - const { result: t, decodeTree: c } = this, s = (c[t] & Ee.VALUE_LENGTH) >> 14; - return this.emitNamedEntityData(t, s, this.consumed), (u = this.errors) === null || u === void 0 || u.missingSemicolonAfterCharacterReference(), this.consumed; + const { result: t, decodeTree: s } = this, a = (s[t] & Te.VALUE_LENGTH) >> 14; + return this.emitNamedEntityData(t, a, this.consumed), (u = this.errors) === null || u === void 0 || u.missingSemicolonAfterCharacterReference(), this.consumed; } /** * Emit a named entity. @@ -680,9 +789,9 @@ class ln { * * @returns The number of characters consumed. */ - emitNamedEntityData(u, t, c) { - const { decodeTree: s } = this; - return this.emitCodePoint(t === 1 ? s[u] & ~Ee.VALUE_LENGTH : s[u + 1], c), t === 3 && this.emitCodePoint(s[u + 2], c), c; + emitNamedEntityData(u, t, s) { + const { decodeTree: a } = this; + return this.emitCodePoint(t === 1 ? a[u] & ~Te.VALUE_LENGTH : a[u + 1], s), t === 3 && this.emitCodePoint(a[u + 2], s), s; } /** * Signal to the parser that the end of the input was reached. @@ -694,95 +803,95 @@ class ln { end() { var u; switch (this.state) { - case J.NamedEntity: - return this.result !== 0 && (this.decodeMode !== ve.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0; + case $.NamedEntity: + return this.result !== 0 && (this.decodeMode !== Se.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0; // Otherwise, emit a numeric entity if we have one. - case J.NumericDecimal: + case $.NumericDecimal: return this.emitNumericEntity(0, 2); - case J.NumericHex: + case $.NumericHex: return this.emitNumericEntity(0, 3); - case J.NumericStart: + case $.NumericStart: return (u = this.errors) === null || u === void 0 || u.absenceOfDigitsInNumericCharacterReference(this.consumed), 0; - case J.EntityStart: + case $.EntityStart: return 0; } } } -function Tr(e) { +function L0(e) { let u = ""; - const t = new ln(e, (c) => u += rn(c)); - return function(s, i) { - let l = 0, a = 0; - for (; (a = s.indexOf("&", a)) >= 0; ) { - u += s.slice(l, a), t.startEntity(i); - const r = t.write( - s, + const t = new pi(e, (s) => u += li(s)); + return function(a, r) { + let o = 0, i = 0; + for (; (i = a.indexOf("&", i)) >= 0; ) { + u += a.slice(o, i), t.startEntity(r); + const n = t.write( + a, // Skip the "&" - a + 1 + i + 1 ); - if (r < 0) { - l = a + t.end(); + if (n < 0) { + o = i + t.end(); break; } - l = a + r, a = r === 0 ? l + 1 : l; + o = i + n, i = n === 0 ? o + 1 : o; } - const o = u + s.slice(l); - return u = "", o; + const c = u + a.slice(o); + return u = "", c; }; } -function fn(e, u, t, c) { - const s = (u & Ee.BRANCH_LENGTH) >> 7, i = u & Ee.JUMP_TABLE; - if (s === 0) - return i !== 0 && c === i ? t : -1; - if (i) { - const o = c - i; - return o < 0 || o >= s ? -1 : e[t + o] - 1; - } - let l = t, a = l + s - 1; - for (; l <= a; ) { - const o = l + a >>> 1, r = e[o]; - if (r < c) - l = o + 1; - else if (r > c) - a = o - 1; +function gi(e, u, t, s) { + const a = (u & Te.BRANCH_LENGTH) >> 7, r = u & Te.JUMP_TABLE; + if (a === 0) + return r !== 0 && s === r ? t : -1; + if (r) { + const c = s - r; + return c < 0 || c >= a ? -1 : e[t + c] - 1; + } + let o = t, i = o + a - 1; + for (; o <= i; ) { + const c = o + i >>> 1, n = e[c]; + if (n < s) + o = c + 1; + else if (n > s) + i = c - 1; else - return e[o + s]; + return e[c + a]; } return -1; } -const dn = Tr(en); -Tr(un); -function Nr(e, u = ve.Legacy) { - return dn(e, u); +const mi = L0(si); +L0(ci); +function P0(e, u = Se.Legacy) { + return mi(e, u); } -function An(e) { +function xi(e) { return Object.prototype.toString.call(e); } -function It(e) { - return An(e) === "[object String]"; +function Ft(e) { + return xi(e) === "[object String]"; } -const hn = Object.prototype.hasOwnProperty; -function bn(e, u) { - return hn.call(e, u); +const yi = Object.prototype.hasOwnProperty; +function wi(e, u) { + return yi.call(e, u); } -function pu(e) { +function wu(e) { return Array.prototype.slice.call(arguments, 1).forEach(function(t) { if (t) { if (typeof t != "object") throw new TypeError(t + "must be object"); - Object.keys(t).forEach(function(c) { - e[c] = t[c]; + Object.keys(t).forEach(function(s) { + e[s] = t[s]; }); } }), e; } -function Or(e, u, t) { +function G0(e, u, t) { return [].concat(e.slice(0, u), t, e.slice(u + 1)); } -function _t(e) { +function St(e) { return !(e >= 55296 && e <= 57343 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534 || e >= 0 && e <= 8 || e === 11 || e >= 14 && e <= 31 || e >= 127 && e <= 159 || e > 1114111); } -function hu(e) { +function xu(e) { if (e > 65535) { e -= 65536; const u = 55296 + (e >> 10), t = 56320 + (e & 1023); @@ -790,40 +899,40 @@ function hu(e) { } return String.fromCharCode(e); } -const Mr = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, pn = /&([a-z#][a-z0-9]{1,31});/gi, gn = new RegExp(Mr.source + "|" + pn.source, "gi"), mn = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i; -function xn(e, u) { - if (u.charCodeAt(0) === 35 && mn.test(u)) { - const c = u[1].toLowerCase() === "x" ? parseInt(u.slice(2), 16) : parseInt(u.slice(1), 10); - return _t(c) ? hu(c) : e; +const H0 = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, Ci = /&([a-z#][a-z0-9]{1,31});/gi, vi = new RegExp(H0.source + "|" + Ci.source, "gi"), Di = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i; +function Ei(e, u) { + if (u.charCodeAt(0) === 35 && Di.test(u)) { + const s = u[1].toLowerCase() === "x" ? parseInt(u.slice(2), 16) : parseInt(u.slice(1), 10); + return St(s) ? xu(s) : e; } - const t = Nr(e); + const t = P0(e); return t !== e ? t : e; } -function yn(e) { - return e.indexOf("\\") < 0 ? e : e.replace(Mr, "$1"); +function _i(e) { + return e.indexOf("\\") < 0 ? e : e.replace(H0, "$1"); } -function Le(e) { - return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(gn, function(u, t, c) { - return t || xn(u, c); +function Ue(e) { + return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(vi, function(u, t, s) { + return t || Ei(u, s); }); } -const wn = /[&<>"]/, Cn = /[&<>"]/g, vn = { +const Ii = /[&<>"]/, ki = /[&<>"]/g, Bi = { "&": "&", "<": "<", ">": ">", '"': """ }; -function En(e) { - return vn[e]; +function Fi(e) { + return Bi[e]; } -function De(e) { - return wn.test(e) ? e.replace(Cn, En) : e; +function Re(e) { + return Ii.test(e) ? e.replace(ki, Fi) : e; } -const Dn = /[.?*+^$[\]\\(){}|-]/g; -function In(e) { - return e.replace(Dn, "\\$&"); +const Si = /[.?*+^$[\]\\(){}|-]/g; +function Ti(e) { + return e.replace(Si, "\\$&"); } -function Y(e) { +function V(e) { switch (e) { case 9: case 32: @@ -831,7 +940,7 @@ function Y(e) { } return !1; } -function Ke(e) { +function Ze(e) { if (e >= 8192 && e <= 8202) return !0; switch (e) { @@ -855,10 +964,10 @@ function Ke(e) { } return !1; } -function Ye(e) { - return Dt.test(e) || Sr.test(e); +function Ve(e) { + return Bt.test(e) || O0.test(e); } -function je(e) { +function ze(e) { switch (e) { case 33: case 34: @@ -897,89 +1006,89 @@ function je(e) { return !1; } } -function gu(e) { +function Cu(e) { return e = e.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (e = e.replace(/ẞ/g, "ß")), e.toLowerCase().toUpperCase(); } -const _n = { mdurl: zi, ucmicro: $i }, kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Ri = { mdurl: ni, ucmicro: ai }, Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - arrayReplaceAt: Or, - assign: pu, - escapeHtml: De, - escapeRE: In, - fromCodePoint: hu, - has: bn, - isMdAsciiPunct: je, - isPunctChar: Ye, - isSpace: Y, - isString: It, - isValidEntityCode: _t, - isWhiteSpace: Ke, - lib: _n, - normalizeReference: gu, - unescapeAll: Le, - unescapeMd: yn + arrayReplaceAt: G0, + assign: wu, + escapeHtml: Re, + escapeRE: Ti, + fromCodePoint: xu, + has: wi, + isMdAsciiPunct: ze, + isPunctChar: Ve, + isSpace: V, + isString: Ft, + isValidEntityCode: St, + isWhiteSpace: Ze, + lib: Ri, + normalizeReference: Cu, + unescapeAll: Ue, + unescapeMd: _i }, Symbol.toStringTag, { value: "Module" })); -function Bn(e, u, t) { - let c, s, i, l; - const a = e.posMax, o = e.pos; - for (e.pos = u + 1, c = 1; e.pos < a; ) { - if (i = e.src.charCodeAt(e.pos), i === 93 && (c--, c === 0)) { - s = !0; +function Mi(e, u, t) { + let s, a, r, o; + const i = e.posMax, c = e.pos; + for (e.pos = u + 1, s = 1; e.pos < i; ) { + if (r = e.src.charCodeAt(e.pos), r === 93 && (s--, s === 0)) { + a = !0; break; } - if (l = e.pos, e.md.inline.skipToken(e), i === 91) { - if (l === e.pos - 1) - c++; + if (o = e.pos, e.md.inline.skipToken(e), r === 91) { + if (o === e.pos - 1) + s++; else if (t) - return e.pos = o, -1; + return e.pos = c, -1; } } - let r = -1; - return s && (r = e.pos), e.pos = o, r; + let n = -1; + return a && (n = e.pos), e.pos = c, n; } -function Fn(e, u, t) { - let c, s = u; - const i = { +function Oi(e, u, t) { + let s, a = u; + const r = { ok: !1, pos: 0, str: "" }; - if (e.charCodeAt(s) === 60) { - for (s++; s < t; ) { - if (c = e.charCodeAt(s), c === 10 || c === 60) - return i; - if (c === 62) - return i.pos = s + 1, i.str = Le(e.slice(u + 1, s)), i.ok = !0, i; - if (c === 92 && s + 1 < t) { - s += 2; + if (e.charCodeAt(a) === 60) { + for (a++; a < t; ) { + if (s = e.charCodeAt(a), s === 10 || s === 60) + return r; + if (s === 62) + return r.pos = a + 1, r.str = Ue(e.slice(u + 1, a)), r.ok = !0, r; + if (s === 92 && a + 1 < t) { + a += 2; continue; } - s++; + a++; } - return i; + return r; } - let l = 0; - for (; s < t && (c = e.charCodeAt(s), !(c === 32 || c < 32 || c === 127)); ) { - if (c === 92 && s + 1 < t) { - if (e.charCodeAt(s + 1) === 32) + let o = 0; + for (; a < t && (s = e.charCodeAt(a), !(s === 32 || s < 32 || s === 127)); ) { + if (s === 92 && a + 1 < t) { + if (e.charCodeAt(a + 1) === 32) break; - s += 2; + a += 2; continue; } - if (c === 40 && (l++, l > 32)) - return i; - if (c === 41) { - if (l === 0) + if (s === 40 && (o++, o > 32)) + return r; + if (s === 41) { + if (o === 0) break; - l--; + o--; } - s++; + a++; } - return u === s || l !== 0 || (i.str = Le(e.slice(u, s)), i.pos = s, i.ok = !0), i; + return u === a || o !== 0 || (r.str = Ue(e.slice(u, a)), r.pos = a, r.ok = !0), r; } -function Sn(e, u, t, c) { - let s, i = u; - const l = { +function Qi(e, u, t, s) { + let a, r = u; + const o = { // if `true`, this is a valid link title ok: !1, // if `true`, this link can be continued on the next line @@ -991,983 +1100,983 @@ function Sn(e, u, t, c) { // expected closing marker character code marker: 0 }; - if (c) - l.str = c.str, l.marker = c.marker; + if (s) + o.str = s.str, o.marker = s.marker; else { - if (i >= t) - return l; - let a = e.charCodeAt(i); - if (a !== 34 && a !== 39 && a !== 40) - return l; - u++, i++, a === 40 && (a = 41), l.marker = a; + if (r >= t) + return o; + let i = e.charCodeAt(r); + if (i !== 34 && i !== 39 && i !== 40) + return o; + u++, r++, i === 40 && (i = 41), o.marker = i; } - for (; i < t; ) { - if (s = e.charCodeAt(i), s === l.marker) - return l.pos = i + 1, l.str += Le(e.slice(u, i)), l.ok = !0, l; - if (s === 40 && l.marker === 41) - return l; - s === 92 && i + 1 < t && i++, i++; + for (; r < t; ) { + if (a = e.charCodeAt(r), a === o.marker) + return o.pos = r + 1, o.str += Ue(e.slice(u, r)), o.ok = !0, o; + if (a === 40 && o.marker === 41) + return o; + a === 92 && r + 1 < t && r++, r++; } - return l.can_continue = !0, l.str += Le(e.slice(u, i)), l; + return o.can_continue = !0, o.str += Ue(e.slice(u, r)), o; } -const Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - parseLinkDestination: Fn, - parseLinkLabel: Bn, - parseLinkTitle: Sn -}, Symbol.toStringTag, { value: "Module" })), he = {}; -he.code_inline = function(e, u, t, c, s) { - const i = e[u]; - return "" + De(i.content) + ""; + parseLinkDestination: Oi, + parseLinkLabel: Mi, + parseLinkTitle: Qi +}, Symbol.toStringTag, { value: "Module" })), Ce = {}; +Ce.code_inline = function(e, u, t, s, a) { + const r = e[u]; + return "" + Re(r.content) + ""; }; -he.code_block = function(e, u, t, c, s) { - const i = e[u]; - return "" + De(e[u].content) + ` +Ce.code_block = function(e, u, t, s, a) { + const r = e[u]; + return "" + Re(e[u].content) + ` `; }; -he.fence = function(e, u, t, c, s) { - const i = e[u], l = i.info ? Le(i.info).trim() : ""; - let a = "", o = ""; - if (l) { - const n = l.split(/(\s+)/g); - a = n[0], o = n.slice(2).join(""); - } - let r; - if (t.highlight ? r = t.highlight(i.content, a, o) || De(i.content) : r = De(i.content), r.indexOf("${r} + return `
${n}
`; } - return `
${r}
+ return `
${n}
`; }; -he.image = function(e, u, t, c, s) { - const i = e[u]; - return i.attrs[i.attrIndex("alt")][1] = s.renderInlineAsText(i.children, t, c), s.renderToken(e, u, t); +Ce.image = function(e, u, t, s, a) { + const r = e[u]; + return r.attrs[r.attrIndex("alt")][1] = a.renderInlineAsText(r.children, t, s), a.renderToken(e, u, t); }; -he.hardbreak = function(e, u, t) { +Ce.hardbreak = function(e, u, t) { return t.xhtmlOut ? `
` : `
`; }; -he.softbreak = function(e, u, t) { +Ce.softbreak = function(e, u, t) { return t.breaks ? t.xhtmlOut ? `
` : `
` : ` `; }; -he.text = function(e, u) { - return De(e[u].content); +Ce.text = function(e, u) { + return Re(e[u].content); }; -he.html_block = function(e, u) { +Ce.html_block = function(e, u) { return e[u].content; }; -he.html_inline = function(e, u) { +Ce.html_inline = function(e, u) { return e[u].content; }; -function Pe() { - this.rules = pu({}, he); +function Ke() { + this.rules = wu({}, Ce); } -Pe.prototype.renderAttrs = function(u) { - let t, c, s; +Ke.prototype.renderAttrs = function(u) { + let t, s, a; if (!u.attrs) return ""; - for (s = "", t = 0, c = u.attrs.length; t < c; t++) - s += " " + De(u.attrs[t][0]) + '="' + De(u.attrs[t][1]) + '"'; - return s; + for (a = "", t = 0, s = u.attrs.length; t < s; t++) + a += " " + Re(u.attrs[t][0]) + '="' + Re(u.attrs[t][1]) + '"'; + return a; }; -Pe.prototype.renderToken = function(u, t, c) { - const s = u[t]; - let i = ""; - if (s.hidden) +Ke.prototype.renderToken = function(u, t, s) { + const a = u[t]; + let r = ""; + if (a.hidden) return ""; - s.block && s.nesting !== -1 && t && u[t - 1].hidden && (i += ` -`), i += (s.nesting === -1 ? " -` : ">", i; + a.block && a.nesting !== -1 && t && u[t - 1].hidden && (r += ` +`), r += (a.nesting === -1 ? " +` : ">", r; }; -Pe.prototype.renderInline = function(e, u, t) { - let c = ""; - const s = this.rules; - for (let i = 0, l = e.length; i < l; i++) { - const a = e[i].type; - typeof s[a] < "u" ? c += s[a](e, i, u, t, this) : c += this.renderToken(e, i, u); - } - return c; +Ke.prototype.renderInline = function(e, u, t) { + let s = ""; + const a = this.rules; + for (let r = 0, o = e.length; r < o; r++) { + const i = e[r].type; + typeof a[i] < "u" ? s += a[i](e, r, u, t, this) : s += this.renderToken(e, r, u); + } + return s; }; -Pe.prototype.renderInlineAsText = function(e, u, t) { - let c = ""; - for (let s = 0, i = e.length; s < i; s++) - switch (e[s].type) { +Ke.prototype.renderInlineAsText = function(e, u, t) { + let s = ""; + for (let a = 0, r = e.length; a < r; a++) + switch (e[a].type) { case "text": - c += e[s].content; + s += e[a].content; break; case "image": - c += this.renderInlineAsText(e[s].children, u, t); + s += this.renderInlineAsText(e[a].children, u, t); break; case "html_inline": case "html_block": - c += e[s].content; + s += e[a].content; break; case "softbreak": case "hardbreak": - c += ` + s += ` `; break; } - return c; + return s; }; -Pe.prototype.render = function(e, u, t) { - let c = ""; - const s = this.rules; - for (let i = 0, l = e.length; i < l; i++) { - const a = e[i].type; - a === "inline" ? c += this.renderInline(e[i].children, u, t) : typeof s[a] < "u" ? c += s[a](e, i, u, t, this) : c += this.renderToken(e, i, u, t); - } - return c; +Ke.prototype.render = function(e, u, t) { + let s = ""; + const a = this.rules; + for (let r = 0, o = e.length; r < o; r++) { + const i = e[r].type; + i === "inline" ? s += this.renderInline(e[r].children, u, t) : typeof a[i] < "u" ? s += a[i](e, r, u, t, this) : s += this.renderToken(e, r, u, t); + } + return s; }; -function $() { +function te() { this.__rules__ = [], this.__cache__ = null; } -$.prototype.__find__ = function(e) { +te.prototype.__find__ = function(e) { for (let u = 0; u < this.__rules__.length; u++) if (this.__rules__[u].name === e) return u; return -1; }; -$.prototype.__compile__ = function() { +te.prototype.__compile__ = function() { const e = this, u = [""]; e.__rules__.forEach(function(t) { - t.enabled && t.alt.forEach(function(c) { - u.indexOf(c) < 0 && u.push(c); + t.enabled && t.alt.forEach(function(s) { + u.indexOf(s) < 0 && u.push(s); }); }), e.__cache__ = {}, u.forEach(function(t) { - e.__cache__[t] = [], e.__rules__.forEach(function(c) { - c.enabled && (t && c.alt.indexOf(t) < 0 || e.__cache__[t].push(c.fn)); + e.__cache__[t] = [], e.__rules__.forEach(function(s) { + s.enabled && (t && s.alt.indexOf(t) < 0 || e.__cache__[t].push(s.fn)); }); }); }; -$.prototype.at = function(e, u, t) { - const c = this.__find__(e), s = t || {}; - if (c === -1) +te.prototype.at = function(e, u, t) { + const s = this.__find__(e), a = t || {}; + if (s === -1) throw new Error("Parser rule not found: " + e); - this.__rules__[c].fn = u, this.__rules__[c].alt = s.alt || [], this.__cache__ = null; + this.__rules__[s].fn = u, this.__rules__[s].alt = a.alt || [], this.__cache__ = null; }; -$.prototype.before = function(e, u, t, c) { - const s = this.__find__(e), i = c || {}; - if (s === -1) +te.prototype.before = function(e, u, t, s) { + const a = this.__find__(e), r = s || {}; + if (a === -1) throw new Error("Parser rule not found: " + e); - this.__rules__.splice(s, 0, { + this.__rules__.splice(a, 0, { name: u, enabled: !0, fn: t, - alt: i.alt || [] + alt: r.alt || [] }), this.__cache__ = null; }; -$.prototype.after = function(e, u, t, c) { - const s = this.__find__(e), i = c || {}; - if (s === -1) +te.prototype.after = function(e, u, t, s) { + const a = this.__find__(e), r = s || {}; + if (a === -1) throw new Error("Parser rule not found: " + e); - this.__rules__.splice(s + 1, 0, { + this.__rules__.splice(a + 1, 0, { name: u, enabled: !0, fn: t, - alt: i.alt || [] + alt: r.alt || [] }), this.__cache__ = null; }; -$.prototype.push = function(e, u, t) { - const c = t || {}; +te.prototype.push = function(e, u, t) { + const s = t || {}; this.__rules__.push({ name: e, enabled: !0, fn: u, - alt: c.alt || [] + alt: s.alt || [] }), this.__cache__ = null; }; -$.prototype.enable = function(e, u) { +te.prototype.enable = function(e, u) { Array.isArray(e) || (e = [e]); const t = []; - return e.forEach(function(c) { - const s = this.__find__(c); - if (s < 0) { + return e.forEach(function(s) { + const a = this.__find__(s); + if (a < 0) { if (u) return; - throw new Error("Rules manager: invalid rule name " + c); + throw new Error("Rules manager: invalid rule name " + s); } - this.__rules__[s].enabled = !0, t.push(c); + this.__rules__[a].enabled = !0, t.push(s); }, this), this.__cache__ = null, t; }; -$.prototype.enableOnly = function(e, u) { +te.prototype.enableOnly = function(e, u) { Array.isArray(e) || (e = [e]), this.__rules__.forEach(function(t) { t.enabled = !1; }), this.enable(e, u); }; -$.prototype.disable = function(e, u) { +te.prototype.disable = function(e, u) { Array.isArray(e) || (e = [e]); const t = []; - return e.forEach(function(c) { - const s = this.__find__(c); - if (s < 0) { + return e.forEach(function(s) { + const a = this.__find__(s); + if (a < 0) { if (u) return; - throw new Error("Rules manager: invalid rule name " + c); + throw new Error("Rules manager: invalid rule name " + s); } - this.__rules__[s].enabled = !1, t.push(c); + this.__rules__[a].enabled = !1, t.push(s); }, this), this.__cache__ = null, t; }; -$.prototype.getRules = function(e) { +te.prototype.getRules = function(e) { return this.__cache__ === null && this.__compile__(), this.__cache__[e] || []; }; -function le(e, u, t) { +function me(e, u, t) { this.type = e, this.tag = u, this.attrs = null, this.map = null, this.nesting = t, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1; } -le.prototype.attrIndex = function(u) { +me.prototype.attrIndex = function(u) { if (!this.attrs) return -1; const t = this.attrs; - for (let c = 0, s = t.length; c < s; c++) - if (t[c][0] === u) - return c; + for (let s = 0, a = t.length; s < a; s++) + if (t[s][0] === u) + return s; return -1; }; -le.prototype.attrPush = function(u) { +me.prototype.attrPush = function(u) { this.attrs ? this.attrs.push(u) : this.attrs = [u]; }; -le.prototype.attrSet = function(u, t) { - const c = this.attrIndex(u), s = [u, t]; - c < 0 ? this.attrPush(s) : this.attrs[c] = s; +me.prototype.attrSet = function(u, t) { + const s = this.attrIndex(u), a = [u, t]; + s < 0 ? this.attrPush(a) : this.attrs[s] = a; }; -le.prototype.attrGet = function(u) { +me.prototype.attrGet = function(u) { const t = this.attrIndex(u); - let c = null; - return t >= 0 && (c = this.attrs[t][1]), c; + let s = null; + return t >= 0 && (s = this.attrs[t][1]), s; }; -le.prototype.attrJoin = function(u, t) { - const c = this.attrIndex(u); - c < 0 ? this.attrPush([u, t]) : this.attrs[c][1] = this.attrs[c][1] + " " + t; +me.prototype.attrJoin = function(u, t) { + const s = this.attrIndex(u); + s < 0 ? this.attrPush([u, t]) : this.attrs[s][1] = this.attrs[s][1] + " " + t; }; -function Qr(e, u, t) { +function q0(e, u, t) { this.src = e, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = u; } -Qr.prototype.Token = le; -const Tn = /\r\n?|\n/g, Nn = /\0/g; -function On(e) { +q0.prototype.Token = me; +const Pi = /\r\n?|\n/g, Gi = /\0/g; +function Hi(e) { let u; - u = e.src.replace(Tn, ` -`), u = u.replace(Nn, "�"), e.src = u; + u = e.src.replace(Pi, ` +`), u = u.replace(Gi, "�"), e.src = u; } -function Mn(e) { +function qi(e) { let u; e.inlineMode ? (u = new e.Token("inline", "", 0), u.content = e.src, u.map = [0, 1], u.children = [], e.tokens.push(u)) : e.md.block.parse(e.src, e.md, e.env, e.tokens); } -function Qn(e) { +function Wi(e) { const u = e.tokens; - for (let t = 0, c = u.length; t < c; t++) { - const s = u[t]; - s.type === "inline" && e.md.inline.parse(s.content, e.md, e.env, s.children); + for (let t = 0, s = u.length; t < s; t++) { + const a = u[t]; + a.type === "inline" && e.md.inline.parse(a.content, e.md, e.env, a.children); } } -function Ln(e) { +function Ui(e) { return /^\s]/i.test(e); } -function Pn(e) { +function Ki(e) { return /^<\/a\s*>/i.test(e); } -function Gn(e) { +function Yi(e) { const u = e.tokens; if (e.md.options.linkify) - for (let t = 0, c = u.length; t < c; t++) { + for (let t = 0, s = u.length; t < s; t++) { if (u[t].type !== "inline" || !e.md.linkify.pretest(u[t].content)) continue; - let s = u[t].children, i = 0; - for (let l = s.length - 1; l >= 0; l--) { - const a = s[l]; - if (a.type === "link_close") { - for (l--; s[l].level !== a.level && s[l].type !== "link_open"; ) - l--; + let a = u[t].children, r = 0; + for (let o = a.length - 1; o >= 0; o--) { + const i = a[o]; + if (i.type === "link_close") { + for (o--; a[o].level !== i.level && a[o].type !== "link_open"; ) + o--; continue; } - if (a.type === "html_inline" && (Ln(a.content) && i > 0 && i--, Pn(a.content) && i++), !(i > 0) && a.type === "text" && e.md.linkify.test(a.content)) { - const o = a.content; - let r = e.md.linkify.match(o); - const n = []; - let f = a.level, d = 0; - r.length > 0 && r[0].index === 0 && l > 0 && s[l - 1].type === "text_special" && (r = r.slice(1)); - for (let A = 0; A < r.length; A++) { - const h = r[A].url, w = e.md.normalizeLink(h); - if (!e.md.validateLink(w)) + if (i.type === "html_inline" && (Ui(i.content) && r > 0 && r--, Ki(i.content) && r++), !(r > 0) && i.type === "text" && e.md.linkify.test(i.content)) { + const c = i.content; + let n = e.md.linkify.match(c); + const l = []; + let f = i.level, A = 0; + n.length > 0 && n[0].index === 0 && o > 0 && a[o - 1].type === "text_special" && (n = n.slice(1)); + for (let d = 0; d < n.length; d++) { + const h = n[d].url, y = e.md.normalizeLink(h); + if (!e.md.validateLink(y)) continue; - let C = r[A].text; - r[A].schema ? r[A].schema === "mailto:" && !/^mailto:/i.test(C) ? C = e.md.normalizeLinkText("mailto:" + C).replace(/^mailto:/, "") : C = e.md.normalizeLinkText(C) : C = e.md.normalizeLinkText("http://" + C).replace(/^http:\/\//, ""); - const b = r[A].index; - if (b > d) { + let C = n[d].text; + n[d].schema ? n[d].schema === "mailto:" && !/^mailto:/i.test(C) ? C = e.md.normalizeLinkText("mailto:" + C).replace(/^mailto:/, "") : C = e.md.normalizeLinkText(C) : C = e.md.normalizeLinkText("http://" + C).replace(/^http:\/\//, ""); + const w = n[d].index; + if (w > A) { const p = new e.Token("text", "", 0); - p.content = o.slice(d, b), p.level = f, n.push(p); + p.content = c.slice(A, w), p.level = f, l.push(p); } - const m = new e.Token("link_open", "a", 1); - m.attrs = [["href", w]], m.level = f++, m.markup = "linkify", m.info = "auto", n.push(m); - const g = new e.Token("text", "", 0); - g.content = C, g.level = f, n.push(g); - const x = new e.Token("link_close", "a", -1); - x.level = --f, x.markup = "linkify", x.info = "auto", n.push(x), d = r[A].lastIndex; + const b = new e.Token("link_open", "a", 1); + b.attrs = [["href", y]], b.level = f++, b.markup = "linkify", b.info = "auto", l.push(b); + const x = new e.Token("text", "", 0); + x.content = C, x.level = f, l.push(x); + const m = new e.Token("link_close", "a", -1); + m.level = --f, m.markup = "linkify", m.info = "auto", l.push(m), A = n[d].lastIndex; } - if (d < o.length) { - const A = new e.Token("text", "", 0); - A.content = o.slice(d), A.level = f, n.push(A); + if (A < c.length) { + const d = new e.Token("text", "", 0); + d.content = c.slice(A), d.level = f, l.push(d); } - u[t].children = s = Or(s, l, n); + u[t].children = a = G0(a, o, l); } } } } -const Lr = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, qn = /\((c|tm|r)\)/i, Hn = /\((c|tm|r)\)/ig, Wn = { +const W0 = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, ji = /\((c|tm|r)\)/i, Ji = /\((c|tm|r)\)/ig, Zi = { c: "©", r: "®", tm: "™" }; -function Un(e, u) { - return Wn[u.toLowerCase()]; +function Vi(e, u) { + return Zi[u.toLowerCase()]; } -function Kn(e) { +function zi(e) { let u = 0; for (let t = e.length - 1; t >= 0; t--) { - const c = e[t]; - c.type === "text" && !u && (c.content = c.content.replace(Hn, Un)), c.type === "link_open" && c.info === "auto" && u--, c.type === "link_close" && c.info === "auto" && u++; + const s = e[t]; + s.type === "text" && !u && (s.content = s.content.replace(Ji, Vi)), s.type === "link_open" && s.info === "auto" && u--, s.type === "link_close" && s.info === "auto" && u++; } } -function Yn(e) { +function Xi(e) { let u = 0; for (let t = e.length - 1; t >= 0; t--) { - const c = e[t]; - c.type === "text" && !u && Lr.test(c.content) && (c.content = c.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), c.type === "link_open" && c.info === "auto" && u--, c.type === "link_close" && c.info === "auto" && u++; + const s = e[t]; + s.type === "text" && !u && W0.test(s.content) && (s.content = s.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), s.type === "link_open" && s.info === "auto" && u--, s.type === "link_close" && s.info === "auto" && u++; } } -function jn(e) { +function $i(e) { let u; if (e.md.options.typographer) for (u = e.tokens.length - 1; u >= 0; u--) - e.tokens[u].type === "inline" && (qn.test(e.tokens[u].content) && Kn(e.tokens[u].children), Lr.test(e.tokens[u].content) && Yn(e.tokens[u].children)); + e.tokens[u].type === "inline" && (ji.test(e.tokens[u].content) && zi(e.tokens[u].children), W0.test(e.tokens[u].content) && Xi(e.tokens[u].children)); } -const Jn = /['"]/, Zt = /['"]/g, Vt = "’"; -function tu(e, u, t) { +const ea = /['"]/, Xt = /['"]/g, $t = "’"; +function iu(e, u, t) { return e.slice(0, u) + t + e.slice(u + 1); } -function Zn(e, u) { +function ua(e, u) { let t; - const c = []; - for (let s = 0; s < e.length; s++) { - const i = e[s], l = e[s].level; - for (t = c.length - 1; t >= 0 && !(c[t].level <= l); t--) + const s = []; + for (let a = 0; a < e.length; a++) { + const r = e[a], o = e[a].level; + for (t = s.length - 1; t >= 0 && !(s[t].level <= o); t--) ; - if (c.length = t + 1, i.type !== "text") + if (s.length = t + 1, r.type !== "text") continue; - let a = i.content, o = 0, r = a.length; + let i = r.content, c = 0, n = i.length; e: - for (; o < r; ) { - Zt.lastIndex = o; - const n = Zt.exec(a); - if (!n) + for (; c < n; ) { + Xt.lastIndex = c; + const l = Xt.exec(i); + if (!l) break; - let f = !0, d = !0; - o = n.index + 1; - const A = n[0] === "'"; + let f = !0, A = !0; + c = l.index + 1; + const d = l[0] === "'"; let h = 32; - if (n.index - 1 >= 0) - h = a.charCodeAt(n.index - 1); + if (l.index - 1 >= 0) + h = i.charCodeAt(l.index - 1); else - for (t = s - 1; t >= 0 && !(e[t].type === "softbreak" || e[t].type === "hardbreak"); t--) + for (t = a - 1; t >= 0 && !(e[t].type === "softbreak" || e[t].type === "hardbreak"); t--) if (e[t].content) { h = e[t].content.charCodeAt(e[t].content.length - 1); break; } - let w = 32; - if (o < r) - w = a.charCodeAt(o); + let y = 32; + if (c < n) + y = i.charCodeAt(c); else - for (t = s + 1; t < e.length && !(e[t].type === "softbreak" || e[t].type === "hardbreak"); t++) + for (t = a + 1; t < e.length && !(e[t].type === "softbreak" || e[t].type === "hardbreak"); t++) if (e[t].content) { - w = e[t].content.charCodeAt(0); + y = e[t].content.charCodeAt(0); break; } - const C = je(h) || Ye(String.fromCharCode(h)), b = je(w) || Ye(String.fromCharCode(w)), m = Ke(h), g = Ke(w); - if (g ? f = !1 : b && (m || C || (f = !1)), m ? d = !1 : C && (g || b || (d = !1)), w === 34 && n[0] === '"' && h >= 48 && h <= 57 && (d = f = !1), f && d && (f = C, d = b), !f && !d) { - A && (i.content = tu(i.content, n.index, Vt)); + const C = ze(h) || Ve(String.fromCharCode(h)), w = ze(y) || Ve(String.fromCharCode(y)), b = Ze(h), x = Ze(y); + if (x ? f = !1 : w && (b || C || (f = !1)), b ? A = !1 : C && (x || w || (A = !1)), y === 34 && l[0] === '"' && h >= 48 && h <= 57 && (A = f = !1), f && A && (f = C, A = w), !f && !A) { + d && (r.content = iu(r.content, l.index, $t)); continue; } - if (d) - for (t = c.length - 1; t >= 0; t--) { - let x = c[t]; - if (c[t].level < l) + if (A) + for (t = s.length - 1; t >= 0; t--) { + let m = s[t]; + if (s[t].level < o) break; - if (x.single === A && c[t].level === l) { - x = c[t]; - let p, y; - A ? (p = u.md.options.quotes[2], y = u.md.options.quotes[3]) : (p = u.md.options.quotes[0], y = u.md.options.quotes[1]), i.content = tu(i.content, n.index, y), e[x.token].content = tu( - e[x.token].content, - x.pos, + if (m.single === d && s[t].level === o) { + m = s[t]; + let p, g; + d ? (p = u.md.options.quotes[2], g = u.md.options.quotes[3]) : (p = u.md.options.quotes[0], g = u.md.options.quotes[1]), r.content = iu(r.content, l.index, g), e[m.token].content = iu( + e[m.token].content, + m.pos, p - ), o += y.length - 1, x.token === s && (o += p.length - 1), a = i.content, r = a.length, c.length = t; + ), c += g.length - 1, m.token === a && (c += p.length - 1), i = r.content, n = i.length, s.length = t; continue e; } } - f ? c.push({ - token: s, - pos: n.index, - single: A, - level: l - }) : d && A && (i.content = tu(i.content, n.index, Vt)); + f ? s.push({ + token: a, + pos: l.index, + single: d, + level: o + }) : A && d && (r.content = iu(r.content, l.index, $t)); } } } -function Vn(e) { +function ta(e) { if (e.md.options.typographer) for (let u = e.tokens.length - 1; u >= 0; u--) - e.tokens[u].type !== "inline" || !Jn.test(e.tokens[u].content) || Zn(e.tokens[u].children, e); + e.tokens[u].type !== "inline" || !ea.test(e.tokens[u].content) || ua(e.tokens[u].children, e); } -function zn(e) { +function ra(e) { let u, t; - const c = e.tokens, s = c.length; - for (let i = 0; i < s; i++) { - if (c[i].type !== "inline") continue; - const l = c[i].children, a = l.length; - for (u = 0; u < a; u++) - l[u].type === "text_special" && (l[u].type = "text"); - for (u = t = 0; u < a; u++) - l[u].type === "text" && u + 1 < a && l[u + 1].type === "text" ? l[u + 1].content = l[u].content + l[u + 1].content : (u !== t && (l[t] = l[u]), t++); - u !== t && (l.length = t); - } -} -const Fu = [ - ["normalize", On], - ["block", Mn], - ["inline", Qn], - ["linkify", Gn], - ["replacements", jn], - ["smartquotes", Vn], + const s = e.tokens, a = s.length; + for (let r = 0; r < a; r++) { + if (s[r].type !== "inline") continue; + const o = s[r].children, i = o.length; + for (u = 0; u < i; u++) + o[u].type === "text_special" && (o[u].type = "text"); + for (u = t = 0; u < i; u++) + o[u].type === "text" && u + 1 < i && o[u + 1].type === "text" ? o[u + 1].content = o[u].content + o[u + 1].content : (u !== t && (o[t] = o[u]), t++); + u !== t && (o.length = t); + } +} +const Nu = [ + ["normalize", Hi], + ["block", qi], + ["inline", Wi], + ["linkify", Yi], + ["replacements", $i], + ["smartquotes", ta], // `text_join` finds `text_special` tokens (for escape sequences) // and joins them with the rest of the text - ["text_join", zn] + ["text_join", ra] ]; -function kt() { - this.ruler = new $(); - for (let e = 0; e < Fu.length; e++) - this.ruler.push(Fu[e][0], Fu[e][1]); +function Tt() { + this.ruler = new te(); + for (let e = 0; e < Nu.length; e++) + this.ruler.push(Nu[e][0], Nu[e][1]); } -kt.prototype.process = function(e) { +Tt.prototype.process = function(e) { const u = this.ruler.getRules(""); - for (let t = 0, c = u.length; t < c; t++) + for (let t = 0, s = u.length; t < s; t++) u[t](e); }; -kt.prototype.State = Qr; -function be(e, u, t, c) { - this.src = e, this.md = u, this.env = t, this.tokens = c, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0; - const s = this.src; - for (let i = 0, l = 0, a = 0, o = 0, r = s.length, n = !1; l < r; l++) { - const f = s.charCodeAt(l); - if (!n) - if (Y(f)) { - a++, f === 9 ? o += 4 - o % 4 : o++; +Tt.prototype.State = q0; +function ve(e, u, t, s) { + this.src = e, this.md = u, this.env = t, this.tokens = s, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0; + const a = this.src; + for (let r = 0, o = 0, i = 0, c = 0, n = a.length, l = !1; o < n; o++) { + const f = a.charCodeAt(o); + if (!l) + if (V(f)) { + i++, f === 9 ? c += 4 - c % 4 : c++; continue; } else - n = !0; - (f === 10 || l === r - 1) && (f !== 10 && l++, this.bMarks.push(i), this.eMarks.push(l), this.tShift.push(a), this.sCount.push(o), this.bsCount.push(0), n = !1, a = 0, o = 0, i = l + 1); + l = !0; + (f === 10 || o === n - 1) && (f !== 10 && o++, this.bMarks.push(r), this.eMarks.push(o), this.tShift.push(i), this.sCount.push(c), this.bsCount.push(0), l = !1, i = 0, c = 0, r = o + 1); } - this.bMarks.push(s.length), this.eMarks.push(s.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1; + this.bMarks.push(a.length), this.eMarks.push(a.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1; } -be.prototype.push = function(e, u, t) { - const c = new le(e, u, t); - return c.block = !0, t < 0 && this.level--, c.level = this.level, t > 0 && this.level++, this.tokens.push(c), c; +ve.prototype.push = function(e, u, t) { + const s = new me(e, u, t); + return s.block = !0, t < 0 && this.level--, s.level = this.level, t > 0 && this.level++, this.tokens.push(s), s; }; -be.prototype.isEmpty = function(u) { +ve.prototype.isEmpty = function(u) { return this.bMarks[u] + this.tShift[u] >= this.eMarks[u]; }; -be.prototype.skipEmptyLines = function(u) { +ve.prototype.skipEmptyLines = function(u) { for (let t = this.lineMax; u < t && !(this.bMarks[u] + this.tShift[u] < this.eMarks[u]); u++) ; return u; }; -be.prototype.skipSpaces = function(u) { +ve.prototype.skipSpaces = function(u) { for (let t = this.src.length; u < t; u++) { - const c = this.src.charCodeAt(u); - if (!Y(c)) + const s = this.src.charCodeAt(u); + if (!V(s)) break; } return u; }; -be.prototype.skipSpacesBack = function(u, t) { +ve.prototype.skipSpacesBack = function(u, t) { if (u <= t) return u; for (; u > t; ) - if (!Y(this.src.charCodeAt(--u))) + if (!V(this.src.charCodeAt(--u))) return u + 1; return u; }; -be.prototype.skipChars = function(u, t) { - for (let c = this.src.length; u < c && this.src.charCodeAt(u) === t; u++) +ve.prototype.skipChars = function(u, t) { + for (let s = this.src.length; u < s && this.src.charCodeAt(u) === t; u++) ; return u; }; -be.prototype.skipCharsBack = function(u, t, c) { - if (u <= c) +ve.prototype.skipCharsBack = function(u, t, s) { + if (u <= s) return u; - for (; u > c; ) + for (; u > s; ) if (t !== this.src.charCodeAt(--u)) return u + 1; return u; }; -be.prototype.getLines = function(u, t, c, s) { +ve.prototype.getLines = function(u, t, s, a) { if (u >= t) return ""; - const i = new Array(t - u); - for (let l = 0, a = u; a < t; a++, l++) { - let o = 0; - const r = this.bMarks[a]; - let n = r, f; - for (a + 1 < t || s ? f = this.eMarks[a] + 1 : f = this.eMarks[a]; n < f && o < c; ) { - const d = this.src.charCodeAt(n); - if (Y(d)) - d === 9 ? o += 4 - (o + this.bsCount[a]) % 4 : o++; - else if (n - r < this.tShift[a]) - o++; + const r = new Array(t - u); + for (let o = 0, i = u; i < t; i++, o++) { + let c = 0; + const n = this.bMarks[i]; + let l = n, f; + for (i + 1 < t || a ? f = this.eMarks[i] + 1 : f = this.eMarks[i]; l < f && c < s; ) { + const A = this.src.charCodeAt(l); + if (V(A)) + A === 9 ? c += 4 - (c + this.bsCount[i]) % 4 : c++; + else if (l - n < this.tShift[i]) + c++; else break; - n++; + l++; } - o > c ? i[l] = new Array(o - c + 1).join(" ") + this.src.slice(n, f) : i[l] = this.src.slice(n, f); + c > s ? r[o] = new Array(c - s + 1).join(" ") + this.src.slice(l, f) : r[o] = this.src.slice(l, f); } - return i.join(""); + return r.join(""); }; -be.prototype.Token = le; -const Xn = 65536; -function Su(e, u) { - const t = e.bMarks[u] + e.tShift[u], c = e.eMarks[u]; - return e.src.slice(t, c); +ve.prototype.Token = me; +const na = 65536; +function Mu(e, u) { + const t = e.bMarks[u] + e.tShift[u], s = e.eMarks[u]; + return e.src.slice(t, s); } -function zt(e) { +function er(e) { const u = [], t = e.length; - let c = 0, s = e.charCodeAt(c), i = !1, l = 0, a = ""; - for (; c < t; ) - s === 124 && (i ? (a += e.substring(l, c - 1), l = c) : (u.push(a + e.substring(l, c)), a = "", l = c + 1)), i = s === 92, c++, s = e.charCodeAt(c); - return u.push(a + e.substring(l)), u; + let s = 0, a = e.charCodeAt(s), r = !1, o = 0, i = ""; + for (; s < t; ) + a === 124 && (r ? (i += e.substring(o, s - 1), o = s) : (u.push(i + e.substring(o, s)), i = "", o = s + 1)), r = a === 92, s++, a = e.charCodeAt(s); + return u.push(i + e.substring(o)), u; } -function $n(e, u, t, c) { +function ia(e, u, t, s) { if (u + 2 > t) return !1; - let s = u + 1; - if (e.sCount[s] < e.blkIndent || e.sCount[s] - e.blkIndent >= 4) + let a = u + 1; + if (e.sCount[a] < e.blkIndent || e.sCount[a] - e.blkIndent >= 4) return !1; - let i = e.bMarks[s] + e.tShift[s]; - if (i >= e.eMarks[s]) + let r = e.bMarks[a] + e.tShift[a]; + if (r >= e.eMarks[a]) return !1; - const l = e.src.charCodeAt(i++); - if (l !== 124 && l !== 45 && l !== 58 || i >= e.eMarks[s]) + const o = e.src.charCodeAt(r++); + if (o !== 124 && o !== 45 && o !== 58 || r >= e.eMarks[a]) return !1; - const a = e.src.charCodeAt(i++); - if (a !== 124 && a !== 45 && a !== 58 && !Y(a) || l === 45 && Y(a)) + const i = e.src.charCodeAt(r++); + if (i !== 124 && i !== 45 && i !== 58 && !V(i) || o === 45 && V(i)) return !1; - for (; i < e.eMarks[s]; ) { - const x = e.src.charCodeAt(i); - if (x !== 124 && x !== 45 && x !== 58 && !Y(x)) + for (; r < e.eMarks[a]; ) { + const m = e.src.charCodeAt(r); + if (m !== 124 && m !== 45 && m !== 58 && !V(m)) return !1; - i++; + r++; } - let o = Su(e, u + 1), r = o.split("|"); - const n = []; - for (let x = 0; x < r.length; x++) { - const p = r[x].trim(); + let c = Mu(e, u + 1), n = c.split("|"); + const l = []; + for (let m = 0; m < n.length; m++) { + const p = n[m].trim(); if (!p) { - if (x === 0 || x === r.length - 1) + if (m === 0 || m === n.length - 1) continue; return !1; } if (!/^:?-+:?$/.test(p)) return !1; - p.charCodeAt(p.length - 1) === 58 ? n.push(p.charCodeAt(0) === 58 ? "center" : "right") : p.charCodeAt(0) === 58 ? n.push("left") : n.push(""); + p.charCodeAt(p.length - 1) === 58 ? l.push(p.charCodeAt(0) === 58 ? "center" : "right") : p.charCodeAt(0) === 58 ? l.push("left") : l.push(""); } - if (o = Su(e, u).trim(), o.indexOf("|") === -1 || e.sCount[u] - e.blkIndent >= 4) + if (c = Mu(e, u).trim(), c.indexOf("|") === -1 || e.sCount[u] - e.blkIndent >= 4) return !1; - r = zt(o), r.length && r[0] === "" && r.shift(), r.length && r[r.length - 1] === "" && r.pop(); - const f = r.length; - if (f === 0 || f !== n.length) + n = er(c), n.length && n[0] === "" && n.shift(), n.length && n[n.length - 1] === "" && n.pop(); + const f = n.length; + if (f === 0 || f !== l.length) return !1; - if (c) + if (s) return !0; - const d = e.parentType; + const A = e.parentType; e.parentType = "table"; - const A = e.md.block.ruler.getRules("blockquote"), h = e.push("table_open", "table", 1), w = [u, 0]; - h.map = w; + const d = e.md.block.ruler.getRules("blockquote"), h = e.push("table_open", "table", 1), y = [u, 0]; + h.map = y; const C = e.push("thead_open", "thead", 1); C.map = [u, u + 1]; - const b = e.push("tr_open", "tr", 1); - b.map = [u, u + 1]; - for (let x = 0; x < r.length; x++) { + const w = e.push("tr_open", "tr", 1); + w.map = [u, u + 1]; + for (let m = 0; m < n.length; m++) { const p = e.push("th_open", "th", 1); - n[x] && (p.attrs = [["style", "text-align:" + n[x]]]); - const y = e.push("inline", "", 0); - y.content = r[x].trim(), y.children = [], e.push("th_close", "th", -1); + l[m] && (p.attrs = [["style", "text-align:" + l[m]]]); + const g = e.push("inline", "", 0); + g.content = n[m].trim(), g.children = [], e.push("th_close", "th", -1); } e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1); - let m, g = 0; - for (s = u + 2; s < t && !(e.sCount[s] < e.blkIndent); s++) { - let x = !1; - for (let y = 0, v = A.length; y < v; y++) - if (A[y](e, s, t, !0)) { - x = !0; + let b, x = 0; + for (a = u + 2; a < t && !(e.sCount[a] < e.blkIndent); a++) { + let m = !1; + for (let g = 0, D = d.length; g < D; g++) + if (d[g](e, a, t, !0)) { + m = !0; break; } - if (x || (o = Su(e, s).trim(), !o) || e.sCount[s] - e.blkIndent >= 4 || (r = zt(o), r.length && r[0] === "" && r.shift(), r.length && r[r.length - 1] === "" && r.pop(), g += f - r.length, g > Xn)) + if (m || (c = Mu(e, a).trim(), !c) || e.sCount[a] - e.blkIndent >= 4 || (n = er(c), n.length && n[0] === "" && n.shift(), n.length && n[n.length - 1] === "" && n.pop(), x += f - n.length, x > na)) break; - if (s === u + 2) { - const y = e.push("tbody_open", "tbody", 1); - y.map = m = [u + 2, 0]; + if (a === u + 2) { + const g = e.push("tbody_open", "tbody", 1); + g.map = b = [u + 2, 0]; } const p = e.push("tr_open", "tr", 1); - p.map = [s, s + 1]; - for (let y = 0; y < f; y++) { - const v = e.push("td_open", "td", 1); - n[y] && (v.attrs = [["style", "text-align:" + n[y]]]); - const I = e.push("inline", "", 0); - I.content = r[y] ? r[y].trim() : "", I.children = [], e.push("td_close", "td", -1); + p.map = [a, a + 1]; + for (let g = 0; g < f; g++) { + const D = e.push("td_open", "td", 1); + l[g] && (D.attrs = [["style", "text-align:" + l[g]]]); + const B = e.push("inline", "", 0); + B.content = n[g] ? n[g].trim() : "", B.children = [], e.push("td_close", "td", -1); } e.push("tr_close", "tr", -1); } - return m && (e.push("tbody_close", "tbody", -1), m[1] = s), e.push("table_close", "table", -1), w[1] = s, e.parentType = d, e.line = s, !0; + return b && (e.push("tbody_close", "tbody", -1), b[1] = a), e.push("table_close", "table", -1), y[1] = a, e.parentType = A, e.line = a, !0; } -function ea(e, u, t) { +function aa(e, u, t) { if (e.sCount[u] - e.blkIndent < 4) return !1; - let c = u + 1, s = c; - for (; c < t; ) { - if (e.isEmpty(c)) { - c++; + let s = u + 1, a = s; + for (; s < t; ) { + if (e.isEmpty(s)) { + s++; continue; } - if (e.sCount[c] - e.blkIndent >= 4) { - c++, s = c; + if (e.sCount[s] - e.blkIndent >= 4) { + s++, a = s; continue; } break; } - e.line = s; - const i = e.push("code_block", "code", 0); - return i.content = e.getLines(u, s, 4 + e.blkIndent, !1) + ` -`, i.map = [u, e.line], !0; + e.line = a; + const r = e.push("code_block", "code", 0); + return r.content = e.getLines(u, a, 4 + e.blkIndent, !1) + ` +`, r.map = [u, e.line], !0; } -function ua(e, u, t, c) { - let s = e.bMarks[u] + e.tShift[u], i = e.eMarks[u]; - if (e.sCount[u] - e.blkIndent >= 4 || s + 3 > i) +function sa(e, u, t, s) { + let a = e.bMarks[u] + e.tShift[u], r = e.eMarks[u]; + if (e.sCount[u] - e.blkIndent >= 4 || a + 3 > r) return !1; - const l = e.src.charCodeAt(s); - if (l !== 126 && l !== 96) + const o = e.src.charCodeAt(a); + if (o !== 126 && o !== 96) return !1; - let a = s; - s = e.skipChars(s, l); - let o = s - a; - if (o < 3) + let i = a; + a = e.skipChars(a, o); + let c = a - i; + if (c < 3) return !1; - const r = e.src.slice(a, s), n = e.src.slice(s, i); - if (l === 96 && n.indexOf(String.fromCharCode(l)) >= 0) + const n = e.src.slice(i, a), l = e.src.slice(a, r); + if (o === 96 && l.indexOf(String.fromCharCode(o)) >= 0) return !1; - if (c) + if (s) return !0; - let f = u, d = !1; - for (; f++, !(f >= t || (s = a = e.bMarks[f] + e.tShift[f], i = e.eMarks[f], s < i && e.sCount[f] < e.blkIndent)); ) - if (e.src.charCodeAt(s) === l && !(e.sCount[f] - e.blkIndent >= 4) && (s = e.skipChars(s, l), !(s - a < o) && (s = e.skipSpaces(s), !(s < i)))) { - d = !0; + let f = u, A = !1; + for (; f++, !(f >= t || (a = i = e.bMarks[f] + e.tShift[f], r = e.eMarks[f], a < r && e.sCount[f] < e.blkIndent)); ) + if (e.src.charCodeAt(a) === o && !(e.sCount[f] - e.blkIndent >= 4) && (a = e.skipChars(a, o), !(a - i < c) && (a = e.skipSpaces(a), !(a < r)))) { + A = !0; break; } - o = e.sCount[u], e.line = f + (d ? 1 : 0); - const A = e.push("fence", "code", 0); - return A.info = n, A.content = e.getLines(u + 1, f, o, !0), A.markup = r, A.map = [u, e.line], !0; + c = e.sCount[u], e.line = f + (A ? 1 : 0); + const d = e.push("fence", "code", 0); + return d.info = l, d.content = e.getLines(u + 1, f, c, !0), d.markup = n, d.map = [u, e.line], !0; } -function ta(e, u, t, c) { - let s = e.bMarks[u] + e.tShift[u], i = e.eMarks[u]; - const l = e.lineMax; - if (e.sCount[u] - e.blkIndent >= 4 || e.src.charCodeAt(s) !== 62) +function ca(e, u, t, s) { + let a = e.bMarks[u] + e.tShift[u], r = e.eMarks[u]; + const o = e.lineMax; + if (e.sCount[u] - e.blkIndent >= 4 || e.src.charCodeAt(a) !== 62) return !1; - if (c) + if (s) return !0; - const a = [], o = [], r = [], n = [], f = e.md.block.ruler.getRules("blockquote"), d = e.parentType; + const i = [], c = [], n = [], l = [], f = e.md.block.ruler.getRules("blockquote"), A = e.parentType; e.parentType = "blockquote"; - let A = !1, h; + let d = !1, h; for (h = u; h < t; h++) { - const g = e.sCount[h] < e.blkIndent; - if (s = e.bMarks[h] + e.tShift[h], i = e.eMarks[h], s >= i) + const x = e.sCount[h] < e.blkIndent; + if (a = e.bMarks[h] + e.tShift[h], r = e.eMarks[h], a >= r) break; - if (e.src.charCodeAt(s++) === 62 && !g) { - let p = e.sCount[h] + 1, y, v; - e.src.charCodeAt(s) === 32 ? (s++, p++, v = !1, y = !0) : e.src.charCodeAt(s) === 9 ? (y = !0, (e.bsCount[h] + p) % 4 === 3 ? (s++, p++, v = !1) : v = !0) : y = !1; - let I = p; - for (a.push(e.bMarks[h]), e.bMarks[h] = s; s < i; ) { - const D = e.src.charCodeAt(s); - if (Y(D)) - D === 9 ? I += 4 - (I + e.bsCount[h] + (v ? 1 : 0)) % 4 : I++; + if (e.src.charCodeAt(a++) === 62 && !x) { + let p = e.sCount[h] + 1, g, D; + e.src.charCodeAt(a) === 32 ? (a++, p++, D = !1, g = !0) : e.src.charCodeAt(a) === 9 ? (g = !0, (e.bsCount[h] + p) % 4 === 3 ? (a++, p++, D = !1) : D = !0) : g = !1; + let B = p; + for (i.push(e.bMarks[h]), e.bMarks[h] = a; a < r; ) { + const E = e.src.charCodeAt(a); + if (V(E)) + E === 9 ? B += 4 - (B + e.bsCount[h] + (D ? 1 : 0)) % 4 : B++; else break; - s++; + a++; } - A = s >= i, o.push(e.bsCount[h]), e.bsCount[h] = e.sCount[h] + 1 + (y ? 1 : 0), r.push(e.sCount[h]), e.sCount[h] = I - p, n.push(e.tShift[h]), e.tShift[h] = s - e.bMarks[h]; + d = a >= r, c.push(e.bsCount[h]), e.bsCount[h] = e.sCount[h] + 1 + (g ? 1 : 0), n.push(e.sCount[h]), e.sCount[h] = B - p, l.push(e.tShift[h]), e.tShift[h] = a - e.bMarks[h]; continue; } - if (A) + if (d) break; - let x = !1; - for (let p = 0, y = f.length; p < y; p++) + let m = !1; + for (let p = 0, g = f.length; p < g; p++) if (f[p](e, h, t, !0)) { - x = !0; + m = !0; break; } - if (x) { - e.lineMax = h, e.blkIndent !== 0 && (a.push(e.bMarks[h]), o.push(e.bsCount[h]), n.push(e.tShift[h]), r.push(e.sCount[h]), e.sCount[h] -= e.blkIndent); + if (m) { + e.lineMax = h, e.blkIndent !== 0 && (i.push(e.bMarks[h]), c.push(e.bsCount[h]), l.push(e.tShift[h]), n.push(e.sCount[h]), e.sCount[h] -= e.blkIndent); break; } - a.push(e.bMarks[h]), o.push(e.bsCount[h]), n.push(e.tShift[h]), r.push(e.sCount[h]), e.sCount[h] = -1; + i.push(e.bMarks[h]), c.push(e.bsCount[h]), l.push(e.tShift[h]), n.push(e.sCount[h]), e.sCount[h] = -1; } - const w = e.blkIndent; + const y = e.blkIndent; e.blkIndent = 0; const C = e.push("blockquote_open", "blockquote", 1); C.markup = ">"; - const b = [u, 0]; - C.map = b, e.md.block.tokenize(e, u, h); - const m = e.push("blockquote_close", "blockquote", -1); - m.markup = ">", e.lineMax = l, e.parentType = d, b[1] = e.line; - for (let g = 0; g < n.length; g++) - e.bMarks[g + u] = a[g], e.tShift[g + u] = n[g], e.sCount[g + u] = r[g], e.bsCount[g + u] = o[g]; - return e.blkIndent = w, !0; -} -function ra(e, u, t, c) { - const s = e.eMarks[u]; + const w = [u, 0]; + C.map = w, e.md.block.tokenize(e, u, h); + const b = e.push("blockquote_close", "blockquote", -1); + b.markup = ">", e.lineMax = o, e.parentType = A, w[1] = e.line; + for (let x = 0; x < l.length; x++) + e.bMarks[x + u] = i[x], e.tShift[x + u] = l[x], e.sCount[x + u] = n[x], e.bsCount[x + u] = c[x]; + return e.blkIndent = y, !0; +} +function oa(e, u, t, s) { + const a = e.eMarks[u]; if (e.sCount[u] - e.blkIndent >= 4) return !1; - let i = e.bMarks[u] + e.tShift[u]; - const l = e.src.charCodeAt(i++); - if (l !== 42 && l !== 45 && l !== 95) + let r = e.bMarks[u] + e.tShift[u]; + const o = e.src.charCodeAt(r++); + if (o !== 42 && o !== 45 && o !== 95) return !1; - let a = 1; - for (; i < s; ) { - const r = e.src.charCodeAt(i++); - if (r !== l && !Y(r)) + let i = 1; + for (; r < a; ) { + const n = e.src.charCodeAt(r++); + if (n !== o && !V(n)) return !1; - r === l && a++; + n === o && i++; } - if (a < 3) + if (i < 3) return !1; - if (c) + if (s) return !0; e.line = u + 1; - const o = e.push("hr", "hr", 0); - return o.map = [u, e.line], o.markup = Array(a + 1).join(String.fromCharCode(l)), !0; + const c = e.push("hr", "hr", 0); + return c.map = [u, e.line], c.markup = Array(i + 1).join(String.fromCharCode(o)), !0; } -function Xt(e, u) { +function ur(e, u) { const t = e.eMarks[u]; - let c = e.bMarks[u] + e.tShift[u]; - const s = e.src.charCodeAt(c++); - if (s !== 42 && s !== 45 && s !== 43) + let s = e.bMarks[u] + e.tShift[u]; + const a = e.src.charCodeAt(s++); + if (a !== 42 && a !== 45 && a !== 43) return -1; - if (c < t) { - const i = e.src.charCodeAt(c); - if (!Y(i)) + if (s < t) { + const r = e.src.charCodeAt(s); + if (!V(r)) return -1; } - return c; + return s; } -function $t(e, u) { - const t = e.bMarks[u] + e.tShift[u], c = e.eMarks[u]; - let s = t; - if (s + 1 >= c) +function tr(e, u) { + const t = e.bMarks[u] + e.tShift[u], s = e.eMarks[u]; + let a = t; + if (a + 1 >= s) return -1; - let i = e.src.charCodeAt(s++); - if (i < 48 || i > 57) + let r = e.src.charCodeAt(a++); + if (r < 48 || r > 57) return -1; for (; ; ) { - if (s >= c) + if (a >= s) return -1; - if (i = e.src.charCodeAt(s++), i >= 48 && i <= 57) { - if (s - t >= 10) + if (r = e.src.charCodeAt(a++), r >= 48 && r <= 57) { + if (a - t >= 10) return -1; continue; } - if (i === 41 || i === 46) + if (r === 41 || r === 46) break; return -1; } - return s < c && (i = e.src.charCodeAt(s), !Y(i)) ? -1 : s; + return a < s && (r = e.src.charCodeAt(a), !V(r)) ? -1 : a; } -function ia(e, u) { +function la(e, u) { const t = e.level + 2; - for (let c = u + 2, s = e.tokens.length - 2; c < s; c++) - e.tokens[c].level === t && e.tokens[c].type === "paragraph_open" && (e.tokens[c + 2].hidden = !0, e.tokens[c].hidden = !0, c += 2); + for (let s = u + 2, a = e.tokens.length - 2; s < a; s++) + e.tokens[s].level === t && e.tokens[s].type === "paragraph_open" && (e.tokens[s + 2].hidden = !0, e.tokens[s].hidden = !0, s += 2); } -function na(e, u, t, c) { - let s, i, l, a, o = u, r = !0; - if (e.sCount[o] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[o] - e.listIndent >= 4 && e.sCount[o] < e.blkIndent) +function fa(e, u, t, s) { + let a, r, o, i, c = u, n = !0; + if (e.sCount[c] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[c] - e.listIndent >= 4 && e.sCount[c] < e.blkIndent) return !1; - let n = !1; - c && e.parentType === "paragraph" && e.sCount[o] >= e.blkIndent && (n = !0); - let f, d, A; - if ((A = $t(e, o)) >= 0) { - if (f = !0, l = e.bMarks[o] + e.tShift[o], d = Number(e.src.slice(l, A - 1)), n && d !== 1) return !1; - } else if ((A = Xt(e, o)) >= 0) + let l = !1; + s && e.parentType === "paragraph" && e.sCount[c] >= e.blkIndent && (l = !0); + let f, A, d; + if ((d = tr(e, c)) >= 0) { + if (f = !0, o = e.bMarks[c] + e.tShift[c], A = Number(e.src.slice(o, d - 1)), l && A !== 1) return !1; + } else if ((d = ur(e, c)) >= 0) f = !1; else return !1; - if (n && e.skipSpaces(A) >= e.eMarks[o]) + if (l && e.skipSpaces(d) >= e.eMarks[c]) return !1; - if (c) + if (s) return !0; - const h = e.src.charCodeAt(A - 1), w = e.tokens.length; - f ? (a = e.push("ordered_list_open", "ol", 1), d !== 1 && (a.attrs = [["start", d]])) : a = e.push("bullet_list_open", "ul", 1); - const C = [o, 0]; - a.map = C, a.markup = String.fromCharCode(h); - let b = !1; - const m = e.md.block.ruler.getRules("list"), g = e.parentType; - for (e.parentType = "list"; o < t; ) { - i = A, s = e.eMarks[o]; - const x = e.sCount[o] + A - (e.bMarks[o] + e.tShift[o]); - let p = x; - for (; i < s; ) { - const B = e.src.charCodeAt(i); - if (B === 9) - p += 4 - (p + e.bsCount[o]) % 4; - else if (B === 32) + const h = e.src.charCodeAt(d - 1), y = e.tokens.length; + f ? (i = e.push("ordered_list_open", "ol", 1), A !== 1 && (i.attrs = [["start", A]])) : i = e.push("bullet_list_open", "ul", 1); + const C = [c, 0]; + i.map = C, i.markup = String.fromCharCode(h); + let w = !1; + const b = e.md.block.ruler.getRules("list"), x = e.parentType; + for (e.parentType = "list"; c < t; ) { + r = d, a = e.eMarks[c]; + const m = e.sCount[c] + d - (e.bMarks[c] + e.tShift[c]); + let p = m; + for (; r < a; ) { + const I = e.src.charCodeAt(r); + if (I === 9) + p += 4 - (p + e.bsCount[c]) % 4; + else if (I === 32) p++; else break; - i++; - } - const y = i; - let v; - y >= s ? v = 1 : v = p - x, v > 4 && (v = 1); - const I = x + v; - a = e.push("list_item_open", "li", 1), a.markup = String.fromCharCode(h); - const D = [o, 0]; - a.map = D, f && (a.info = e.src.slice(l, A - 1)); - const _ = e.tight, E = e.tShift[o], k = e.sCount[o], F = e.listIndent; - if (e.listIndent = e.blkIndent, e.blkIndent = I, e.tight = !0, e.tShift[o] = y - e.bMarks[o], e.sCount[o] = p, y >= s && e.isEmpty(o + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, o, t, !0), (!e.tight || b) && (r = !1), b = e.line - o > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = F, e.tShift[o] = E, e.sCount[o] = k, e.tight = _, a = e.push("list_item_close", "li", -1), a.markup = String.fromCharCode(h), o = e.line, D[1] = o, o >= t || e.sCount[o] < e.blkIndent || e.sCount[o] - e.blkIndent >= 4) + r++; + } + const g = r; + let D; + g >= a ? D = 1 : D = p - m, D > 4 && (D = 1); + const B = m + D; + i = e.push("list_item_open", "li", 1), i.markup = String.fromCharCode(h); + const E = [c, 0]; + i.map = E, f && (i.info = e.src.slice(o, d - 1)); + const _ = e.tight, v = e.tShift[c], k = e.sCount[c], S = e.listIndent; + if (e.listIndent = e.blkIndent, e.blkIndent = B, e.tight = !0, e.tShift[c] = g - e.bMarks[c], e.sCount[c] = p, g >= a && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, c, t, !0), (!e.tight || w) && (n = !1), w = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = S, e.tShift[c] = v, e.sCount[c] = k, e.tight = _, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(h), c = e.line, E[1] = c, c >= t || e.sCount[c] < e.blkIndent || e.sCount[c] - e.blkIndent >= 4) break; - let T = !1; - for (let B = 0, O = m.length; B < O; B++) - if (m[B](e, o, t, !0)) { - T = !0; + let F = !1; + for (let I = 0, T = b.length; I < T; I++) + if (b[I](e, c, t, !0)) { + F = !0; break; } - if (T) + if (F) break; if (f) { - if (A = $t(e, o), A < 0) + if (d = tr(e, c), d < 0) break; - l = e.bMarks[o] + e.tShift[o]; - } else if (A = Xt(e, o), A < 0) + o = e.bMarks[c] + e.tShift[c]; + } else if (d = ur(e, c), d < 0) break; - if (h !== e.src.charCodeAt(A - 1)) + if (h !== e.src.charCodeAt(d - 1)) break; } - return f ? a = e.push("ordered_list_close", "ol", -1) : a = e.push("bullet_list_close", "ul", -1), a.markup = String.fromCharCode(h), C[1] = o, e.line = o, e.parentType = g, r && ia(e, w), !0; + return f ? i = e.push("ordered_list_close", "ol", -1) : i = e.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(h), C[1] = c, e.line = c, e.parentType = x, n && la(e, y), !0; } -function aa(e, u, t, c) { - let s = e.bMarks[u] + e.tShift[u], i = e.eMarks[u], l = u + 1; - if (e.sCount[u] - e.blkIndent >= 4 || e.src.charCodeAt(s) !== 91) +function da(e, u, t, s) { + let a = e.bMarks[u] + e.tShift[u], r = e.eMarks[u], o = u + 1; + if (e.sCount[u] - e.blkIndent >= 4 || e.src.charCodeAt(a) !== 91) return !1; - function a(m) { - const g = e.lineMax; - if (m >= g || e.isEmpty(m)) + function i(b) { + const x = e.lineMax; + if (b >= x || e.isEmpty(b)) return null; - let x = !1; - if (e.sCount[m] - e.blkIndent > 3 && (x = !0), e.sCount[m] < 0 && (x = !0), !x) { - const v = e.md.block.ruler.getRules("reference"), I = e.parentType; + let m = !1; + if (e.sCount[b] - e.blkIndent > 3 && (m = !0), e.sCount[b] < 0 && (m = !0), !m) { + const D = e.md.block.ruler.getRules("reference"), B = e.parentType; e.parentType = "reference"; - let D = !1; - for (let _ = 0, E = v.length; _ < E; _++) - if (v[_](e, m, g, !0)) { - D = !0; + let E = !1; + for (let _ = 0, v = D.length; _ < v; _++) + if (D[_](e, b, x, !0)) { + E = !0; break; } - if (e.parentType = I, D) + if (e.parentType = B, E) return null; } - const p = e.bMarks[m] + e.tShift[m], y = e.eMarks[m]; - return e.src.slice(p, y + 1); + const p = e.bMarks[b] + e.tShift[b], g = e.eMarks[b]; + return e.src.slice(p, g + 1); } - let o = e.src.slice(s, i + 1); - i = o.length; - let r = -1; - for (s = 1; s < i; s++) { - const m = o.charCodeAt(s); - if (m === 91) + let c = e.src.slice(a, r + 1); + r = c.length; + let n = -1; + for (a = 1; a < r; a++) { + const b = c.charCodeAt(a); + if (b === 91) return !1; - if (m === 93) { - r = s; + if (b === 93) { + n = a; break; - } else if (m === 10) { - const g = a(l); - g !== null && (o += g, i = o.length, l++); - } else if (m === 92 && (s++, s < i && o.charCodeAt(s) === 10)) { - const g = a(l); - g !== null && (o += g, i = o.length, l++); + } else if (b === 10) { + const x = i(o); + x !== null && (c += x, r = c.length, o++); + } else if (b === 92 && (a++, a < r && c.charCodeAt(a) === 10)) { + const x = i(o); + x !== null && (c += x, r = c.length, o++); } } - if (r < 0 || o.charCodeAt(r + 1) !== 58) + if (n < 0 || c.charCodeAt(n + 1) !== 58) return !1; - for (s = r + 2; s < i; s++) { - const m = o.charCodeAt(s); - if (m === 10) { - const g = a(l); - g !== null && (o += g, i = o.length, l++); - } else if (!Y(m)) break; - } - const n = e.md.helpers.parseLinkDestination(o, s, i); - if (!n.ok) + for (a = n + 2; a < r; a++) { + const b = c.charCodeAt(a); + if (b === 10) { + const x = i(o); + x !== null && (c += x, r = c.length, o++); + } else if (!V(b)) break; + } + const l = e.md.helpers.parseLinkDestination(c, a, r); + if (!l.ok) return !1; - const f = e.md.normalizeLink(n.str); + const f = e.md.normalizeLink(l.str); if (!e.md.validateLink(f)) return !1; - s = n.pos; - const d = s, A = l, h = s; - for (; s < i; s++) { - const m = o.charCodeAt(s); - if (m === 10) { - const g = a(l); - g !== null && (o += g, i = o.length, l++); - } else if (!Y(m)) break; - } - let w = e.md.helpers.parseLinkTitle(o, s, i); - for (; w.can_continue; ) { - const m = a(l); - if (m === null) break; - o += m, s = i, i = o.length, l++, w = e.md.helpers.parseLinkTitle(o, s, i, w); + a = l.pos; + const A = a, d = o, h = a; + for (; a < r; a++) { + const b = c.charCodeAt(a); + if (b === 10) { + const x = i(o); + x !== null && (c += x, r = c.length, o++); + } else if (!V(b)) break; + } + let y = e.md.helpers.parseLinkTitle(c, a, r); + for (; y.can_continue; ) { + const b = i(o); + if (b === null) break; + c += b, a = r, r = c.length, o++, y = e.md.helpers.parseLinkTitle(c, a, r, y); } let C; - for (s < i && h !== s && w.ok ? (C = w.str, s = w.pos) : (C = "", s = d, l = A); s < i; ) { - const m = o.charCodeAt(s); - if (!Y(m)) + for (a < r && h !== a && y.ok ? (C = y.str, a = y.pos) : (C = "", a = A, o = d); a < r; ) { + const b = c.charCodeAt(a); + if (!V(b)) break; - s++; + a++; } - if (s < i && o.charCodeAt(s) !== 10 && C) - for (C = "", s = d, l = A; s < i; ) { - const m = o.charCodeAt(s); - if (!Y(m)) + if (a < r && c.charCodeAt(a) !== 10 && C) + for (C = "", a = A, o = d; a < r; ) { + const b = c.charCodeAt(a); + if (!V(b)) break; - s++; + a++; } - if (s < i && o.charCodeAt(s) !== 10) + if (a < r && c.charCodeAt(a) !== 10) return !1; - const b = gu(o.slice(1, r)); - return b ? (c || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[b] > "u" && (e.env.references[b] = { title: C, href: f }), e.line = l), !0) : !1; + const w = Cu(c.slice(1, n)); + return w ? (s || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[w] > "u" && (e.env.references[w] = { title: C, href: f }), e.line = o), !0) : !1; } -const sa = [ +const Aa = [ "address", "article", "aside", @@ -2030,194 +2139,194 @@ const sa = [ "tr", "track", "ul" -], ca = "[a-zA-Z_:][a-zA-Z0-9:._-]*", oa = "[^\"'=<>`\\x00-\\x20]+", la = "'[^']*'", fa = '"[^"]*"', da = "(?:" + oa + "|" + la + "|" + fa + ")", Aa = "(?:\\s+" + ca + "(?:\\s*=\\s*" + da + ")?)", Pr = "<[A-Za-z][A-Za-z0-9\\-]*" + Aa + "*\\s*\\/?>", Gr = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", ha = "", ba = "<[?][\\s\\S]*?[?]>", pa = "]*>", ga = "", ma = new RegExp("^(?:" + Pr + "|" + Gr + "|" + ha + "|" + ba + "|" + pa + "|" + ga + ")"), xa = new RegExp("^(?:" + Pr + "|" + Gr + ")"), Ne = [ +], ha = "[a-zA-Z_:][a-zA-Z0-9:._-]*", ba = "[^\"'=<>`\\x00-\\x20]+", pa = "'[^']*'", ga = '"[^"]*"', ma = "(?:" + ba + "|" + pa + "|" + ga + ")", xa = "(?:\\s+" + ha + "(?:\\s*=\\s*" + ma + ")?)", U0 = "<[A-Za-z][A-Za-z0-9\\-]*" + xa + "*\\s*\\/?>", K0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", ya = "", wa = "<[?][\\s\\S]*?[?]>", Ca = "]*>", va = "", Da = new RegExp("^(?:" + U0 + "|" + K0 + "|" + ya + "|" + wa + "|" + Ca + "|" + va + ")"), Ea = new RegExp("^(?:" + U0 + "|" + K0 + ")"), Ge = [ [/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0], [/^/, !0], [/^<\?/, /\?>/, !0], [/^/, !0], [/^/, !0], - [new RegExp("^|$))", "i"), /^$/, !0], - [new RegExp(xa.source + "\\s*$"), /^$/, !1] + [new RegExp("^|$))", "i"), /^$/, !0], + [new RegExp(Ea.source + "\\s*$"), /^$/, !1] ]; -function ya(e, u, t, c) { - let s = e.bMarks[u] + e.tShift[u], i = e.eMarks[u]; - if (e.sCount[u] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(s) !== 60) +function _a(e, u, t, s) { + let a = e.bMarks[u] + e.tShift[u], r = e.eMarks[u]; + if (e.sCount[u] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(a) !== 60) return !1; - let l = e.src.slice(s, i), a = 0; - for (; a < Ne.length && !Ne[a][0].test(l); a++) + let o = e.src.slice(a, r), i = 0; + for (; i < Ge.length && !Ge[i][0].test(o); i++) ; - if (a === Ne.length) + if (i === Ge.length) return !1; - if (c) - return Ne[a][2]; - let o = u + 1; - if (!Ne[a][1].test(l)) { - for (; o < t && !(e.sCount[o] < e.blkIndent); o++) - if (s = e.bMarks[o] + e.tShift[o], i = e.eMarks[o], l = e.src.slice(s, i), Ne[a][1].test(l)) { - l.length !== 0 && o++; + if (s) + return Ge[i][2]; + let c = u + 1; + if (!Ge[i][1].test(o)) { + for (; c < t && !(e.sCount[c] < e.blkIndent); c++) + if (a = e.bMarks[c] + e.tShift[c], r = e.eMarks[c], o = e.src.slice(a, r), Ge[i][1].test(o)) { + o.length !== 0 && c++; break; } } - e.line = o; - const r = e.push("html_block", "", 0); - return r.map = [u, o], r.content = e.getLines(u, o, e.blkIndent, !0), !0; + e.line = c; + const n = e.push("html_block", "", 0); + return n.map = [u, c], n.content = e.getLines(u, c, e.blkIndent, !0), !0; } -function wa(e, u, t, c) { - let s = e.bMarks[u] + e.tShift[u], i = e.eMarks[u]; +function Ia(e, u, t, s) { + let a = e.bMarks[u] + e.tShift[u], r = e.eMarks[u]; if (e.sCount[u] - e.blkIndent >= 4) return !1; - let l = e.src.charCodeAt(s); - if (l !== 35 || s >= i) + let o = e.src.charCodeAt(a); + if (o !== 35 || a >= r) return !1; - let a = 1; - for (l = e.src.charCodeAt(++s); l === 35 && s < i && a <= 6; ) - a++, l = e.src.charCodeAt(++s); - if (a > 6 || s < i && !Y(l)) + let i = 1; + for (o = e.src.charCodeAt(++a); o === 35 && a < r && i <= 6; ) + i++, o = e.src.charCodeAt(++a); + if (i > 6 || a < r && !V(o)) return !1; - if (c) + if (s) return !0; - i = e.skipSpacesBack(i, s); - const o = e.skipCharsBack(i, 35, s); - o > s && Y(e.src.charCodeAt(o - 1)) && (i = o), e.line = u + 1; - const r = e.push("heading_open", "h" + String(a), 1); - r.markup = "########".slice(0, a), r.map = [u, e.line]; - const n = e.push("inline", "", 0); - n.content = e.src.slice(s, i).trim(), n.map = [u, e.line], n.children = []; - const f = e.push("heading_close", "h" + String(a), -1); - return f.markup = "########".slice(0, a), !0; -} -function Ca(e, u, t) { - const c = e.md.block.ruler.getRules("paragraph"); + r = e.skipSpacesBack(r, a); + const c = e.skipCharsBack(r, 35, a); + c > a && V(e.src.charCodeAt(c - 1)) && (r = c), e.line = u + 1; + const n = e.push("heading_open", "h" + String(i), 1); + n.markup = "########".slice(0, i), n.map = [u, e.line]; + const l = e.push("inline", "", 0); + l.content = e.src.slice(a, r).trim(), l.map = [u, e.line], l.children = []; + const f = e.push("heading_close", "h" + String(i), -1); + return f.markup = "########".slice(0, i), !0; +} +function ka(e, u, t) { + const s = e.md.block.ruler.getRules("paragraph"); if (e.sCount[u] - e.blkIndent >= 4) return !1; - const s = e.parentType; + const a = e.parentType; e.parentType = "paragraph"; - let i = 0, l, a = u + 1; - for (; a < t && !e.isEmpty(a); a++) { - if (e.sCount[a] - e.blkIndent > 3) + let r = 0, o, i = u + 1; + for (; i < t && !e.isEmpty(i); i++) { + if (e.sCount[i] - e.blkIndent > 3) continue; - if (e.sCount[a] >= e.blkIndent) { - let A = e.bMarks[a] + e.tShift[a]; - const h = e.eMarks[a]; - if (A < h && (l = e.src.charCodeAt(A), (l === 45 || l === 61) && (A = e.skipChars(A, l), A = e.skipSpaces(A), A >= h))) { - i = l === 61 ? 1 : 2; + if (e.sCount[i] >= e.blkIndent) { + let d = e.bMarks[i] + e.tShift[i]; + const h = e.eMarks[i]; + if (d < h && (o = e.src.charCodeAt(d), (o === 45 || o === 61) && (d = e.skipChars(d, o), d = e.skipSpaces(d), d >= h))) { + r = o === 61 ? 1 : 2; break; } } - if (e.sCount[a] < 0) + if (e.sCount[i] < 0) continue; - let d = !1; - for (let A = 0, h = c.length; A < h; A++) - if (c[A](e, a, t, !0)) { - d = !0; + let A = !1; + for (let d = 0, h = s.length; d < h; d++) + if (s[d](e, i, t, !0)) { + A = !0; break; } - if (d) + if (A) break; } - if (!i) + if (!r) return !1; - const o = e.getLines(u, a, e.blkIndent, !1).trim(); - e.line = a + 1; - const r = e.push("heading_open", "h" + String(i), 1); - r.markup = String.fromCharCode(l), r.map = [u, e.line]; - const n = e.push("inline", "", 0); - n.content = o, n.map = [u, e.line - 1], n.children = []; - const f = e.push("heading_close", "h" + String(i), -1); - return f.markup = String.fromCharCode(l), e.parentType = s, !0; -} -function va(e, u, t) { - const c = e.md.block.ruler.getRules("paragraph"), s = e.parentType; - let i = u + 1; - for (e.parentType = "paragraph"; i < t && !e.isEmpty(i); i++) { - if (e.sCount[i] - e.blkIndent > 3 || e.sCount[i] < 0) + const c = e.getLines(u, i, e.blkIndent, !1).trim(); + e.line = i + 1; + const n = e.push("heading_open", "h" + String(r), 1); + n.markup = String.fromCharCode(o), n.map = [u, e.line]; + const l = e.push("inline", "", 0); + l.content = c, l.map = [u, e.line - 1], l.children = []; + const f = e.push("heading_close", "h" + String(r), -1); + return f.markup = String.fromCharCode(o), e.parentType = a, !0; +} +function Ba(e, u, t) { + const s = e.md.block.ruler.getRules("paragraph"), a = e.parentType; + let r = u + 1; + for (e.parentType = "paragraph"; r < t && !e.isEmpty(r); r++) { + if (e.sCount[r] - e.blkIndent > 3 || e.sCount[r] < 0) continue; - let r = !1; - for (let n = 0, f = c.length; n < f; n++) - if (c[n](e, i, t, !0)) { - r = !0; + let n = !1; + for (let l = 0, f = s.length; l < f; l++) + if (s[l](e, r, t, !0)) { + n = !0; break; } - if (r) + if (n) break; } - const l = e.getLines(u, i, e.blkIndent, !1).trim(); - e.line = i; - const a = e.push("paragraph_open", "p", 1); - a.map = [u, e.line]; - const o = e.push("inline", "", 0); - return o.content = l, o.map = [u, e.line], o.children = [], e.push("paragraph_close", "p", -1), e.parentType = s, !0; + const o = e.getLines(u, r, e.blkIndent, !1).trim(); + e.line = r; + const i = e.push("paragraph_open", "p", 1); + i.map = [u, e.line]; + const c = e.push("inline", "", 0); + return c.content = o, c.map = [u, e.line], c.children = [], e.push("paragraph_close", "p", -1), e.parentType = a, !0; } -const ru = [ +const au = [ // First 2 params - rule name & source. Secondary array - list of rules, // which can be terminated by this one. - ["table", $n, ["paragraph", "reference"]], - ["code", ea], - ["fence", ua, ["paragraph", "reference", "blockquote", "list"]], - ["blockquote", ta, ["paragraph", "reference", "blockquote", "list"]], - ["hr", ra, ["paragraph", "reference", "blockquote", "list"]], - ["list", na, ["paragraph", "reference", "blockquote"]], - ["reference", aa], - ["html_block", ya, ["paragraph", "reference", "blockquote"]], - ["heading", wa, ["paragraph", "reference", "blockquote"]], - ["lheading", Ca], - ["paragraph", va] + ["table", ia, ["paragraph", "reference"]], + ["code", aa], + ["fence", sa, ["paragraph", "reference", "blockquote", "list"]], + ["blockquote", ca, ["paragraph", "reference", "blockquote", "list"]], + ["hr", oa, ["paragraph", "reference", "blockquote", "list"]], + ["list", fa, ["paragraph", "reference", "blockquote"]], + ["reference", da], + ["html_block", _a, ["paragraph", "reference", "blockquote"]], + ["heading", Ia, ["paragraph", "reference", "blockquote"]], + ["lheading", ka], + ["paragraph", Ba] ]; -function mu() { - this.ruler = new $(); - for (let e = 0; e < ru.length; e++) - this.ruler.push(ru[e][0], ru[e][1], { alt: (ru[e][2] || []).slice() }); -} -mu.prototype.tokenize = function(e, u, t) { - const c = this.ruler.getRules(""), s = c.length, i = e.md.options.maxNesting; - let l = u, a = !1; - for (; l < t && (e.line = l = e.skipEmptyLines(l), !(l >= t || e.sCount[l] < e.blkIndent)); ) { - if (e.level >= i) { +function vu() { + this.ruler = new te(); + for (let e = 0; e < au.length; e++) + this.ruler.push(au[e][0], au[e][1], { alt: (au[e][2] || []).slice() }); +} +vu.prototype.tokenize = function(e, u, t) { + const s = this.ruler.getRules(""), a = s.length, r = e.md.options.maxNesting; + let o = u, i = !1; + for (; o < t && (e.line = o = e.skipEmptyLines(o), !(o >= t || e.sCount[o] < e.blkIndent)); ) { + if (e.level >= r) { e.line = t; break; } - const o = e.line; - let r = !1; - for (let n = 0; n < s; n++) - if (r = c[n](e, l, t, !1), r) { - if (o >= e.line) + const c = e.line; + let n = !1; + for (let l = 0; l < a; l++) + if (n = s[l](e, o, t, !1), n) { + if (c >= e.line) throw new Error("block rule didn't increment state.line"); break; } - if (!r) throw new Error("none of the block rules matched"); - e.tight = !a, e.isEmpty(e.line - 1) && (a = !0), l = e.line, l < t && e.isEmpty(l) && (a = !0, l++, e.line = l); + if (!n) throw new Error("none of the block rules matched"); + e.tight = !i, e.isEmpty(e.line - 1) && (i = !0), o = e.line, o < t && e.isEmpty(o) && (i = !0, o++, e.line = o); } }; -mu.prototype.parse = function(e, u, t, c) { +vu.prototype.parse = function(e, u, t, s) { if (!e) return; - const s = new this.State(e, u, t, c); - this.tokenize(s, s.line, s.lineMax); + const a = new this.State(e, u, t, s); + this.tokenize(a, a.line, a.lineMax); }; -mu.prototype.State = be; -function Ve(e, u, t, c) { - this.src = e, this.env = t, this.md = u, this.tokens = c, this.tokens_meta = Array(c.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0; +vu.prototype.State = ve; +function eu(e, u, t, s) { + this.src = e, this.env = t, this.md = u, this.tokens = s, this.tokens_meta = Array(s.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0; } -Ve.prototype.pushPending = function() { - const e = new le("text", "", 0); +eu.prototype.pushPending = function() { + const e = new me("text", "", 0); return e.content = this.pending, e.level = this.pendingLevel, this.tokens.push(e), this.pending = "", e; }; -Ve.prototype.push = function(e, u, t) { +eu.prototype.push = function(e, u, t) { this.pending && this.pushPending(); - const c = new le(e, u, t); - let s = null; - return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), c.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], s = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(c), this.tokens_meta.push(s), c; + const s = new me(e, u, t); + let a = null; + return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), s.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], a = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(s), this.tokens_meta.push(a), s; }; -Ve.prototype.scanDelims = function(e, u) { - const t = this.posMax, c = this.src.charCodeAt(e), s = e > 0 ? this.src.charCodeAt(e - 1) : 32; - let i = e; - for (; i < t && this.src.charCodeAt(i) === c; ) - i++; - const l = i - e, a = i < t ? this.src.charCodeAt(i) : 32, o = je(s) || Ye(String.fromCharCode(s)), r = je(a) || Ye(String.fromCharCode(a)), n = Ke(s), f = Ke(a), d = !f && (!r || n || o), A = !n && (!o || f || r); - return { can_open: d && (u || !A || o), can_close: A && (u || !d || r), length: l }; +eu.prototype.scanDelims = function(e, u) { + const t = this.posMax, s = this.src.charCodeAt(e), a = e > 0 ? this.src.charCodeAt(e - 1) : 32; + let r = e; + for (; r < t && this.src.charCodeAt(r) === s; ) + r++; + const o = r - e, i = r < t ? this.src.charCodeAt(r) : 32, c = ze(a) || Ve(String.fromCharCode(a)), n = ze(i) || Ve(String.fromCharCode(i)), l = Ze(a), f = Ze(i), A = !f && (!n || l || c), d = !l && (!c || f || n); + return { can_open: A && (u || !d || c), can_close: d && (u || !A || n), length: o }; }; -Ve.prototype.Token = le; -function Ea(e) { +eu.prototype.Token = me; +function Fa(e) { switch (e) { case 10: case 33: @@ -2247,180 +2356,180 @@ function Ea(e) { return !1; } } -function Da(e, u) { +function Sa(e, u) { let t = e.pos; - for (; t < e.posMax && !Ea(e.src.charCodeAt(t)); ) + for (; t < e.posMax && !Fa(e.src.charCodeAt(t)); ) t++; return t === e.pos ? !1 : (u || (e.pending += e.src.slice(e.pos, t)), e.pos = t, !0); } -const Ia = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i; -function _a(e, u) { +const Ta = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i; +function Ra(e, u) { if (!e.md.options.linkify || e.linkLevel > 0) return !1; - const t = e.pos, c = e.posMax; - if (t + 3 > c || e.src.charCodeAt(t) !== 58 || e.src.charCodeAt(t + 1) !== 47 || e.src.charCodeAt(t + 2) !== 47) return !1; - const s = e.pending.match(Ia); - if (!s) return !1; - const i = s[1], l = e.md.linkify.matchAtStart(e.src.slice(t - i.length)); - if (!l) return !1; - let a = l.url; - if (a.length <= i.length) return !1; - let o = a.length; - for (; o > 0 && a.charCodeAt(o - 1) === 42; ) - o--; - o !== a.length && (a = a.slice(0, o)); - const r = e.md.normalizeLink(a); - if (!e.md.validateLink(r)) return !1; + const t = e.pos, s = e.posMax; + if (t + 3 > s || e.src.charCodeAt(t) !== 58 || e.src.charCodeAt(t + 1) !== 47 || e.src.charCodeAt(t + 2) !== 47) return !1; + const a = e.pending.match(Ta); + if (!a) return !1; + const r = a[1], o = e.md.linkify.matchAtStart(e.src.slice(t - r.length)); + if (!o) return !1; + let i = o.url; + if (i.length <= r.length) return !1; + let c = i.length; + for (; c > 0 && i.charCodeAt(c - 1) === 42; ) + c--; + c !== i.length && (i = i.slice(0, c)); + const n = e.md.normalizeLink(i); + if (!e.md.validateLink(n)) return !1; if (!u) { - e.pending = e.pending.slice(0, -i.length); - const n = e.push("link_open", "a", 1); - n.attrs = [["href", r]], n.markup = "linkify", n.info = "auto"; + e.pending = e.pending.slice(0, -r.length); + const l = e.push("link_open", "a", 1); + l.attrs = [["href", n]], l.markup = "linkify", l.info = "auto"; const f = e.push("text", "", 0); - f.content = e.md.normalizeLinkText(a); - const d = e.push("link_close", "a", -1); - d.markup = "linkify", d.info = "auto"; + f.content = e.md.normalizeLinkText(i); + const A = e.push("link_close", "a", -1); + A.markup = "linkify", A.info = "auto"; } - return e.pos += a.length - i.length, !0; + return e.pos += i.length - r.length, !0; } -function ka(e, u) { +function Na(e, u) { let t = e.pos; if (e.src.charCodeAt(t) !== 10) return !1; - const c = e.pending.length - 1, s = e.posMax; + const s = e.pending.length - 1, a = e.posMax; if (!u) - if (c >= 0 && e.pending.charCodeAt(c) === 32) - if (c >= 1 && e.pending.charCodeAt(c - 1) === 32) { - let i = c - 1; - for (; i >= 1 && e.pending.charCodeAt(i - 1) === 32; ) i--; - e.pending = e.pending.slice(0, i), e.push("hardbreak", "br", 0); + if (s >= 0 && e.pending.charCodeAt(s) === 32) + if (s >= 1 && e.pending.charCodeAt(s - 1) === 32) { + let r = s - 1; + for (; r >= 1 && e.pending.charCodeAt(r - 1) === 32; ) r--; + e.pending = e.pending.slice(0, r), e.push("hardbreak", "br", 0); } else e.pending = e.pending.slice(0, -1), e.push("softbreak", "br", 0); else e.push("softbreak", "br", 0); - for (t++; t < s && Y(e.src.charCodeAt(t)); ) + for (t++; t < a && V(e.src.charCodeAt(t)); ) t++; return e.pos = t, !0; } -const Bt = []; +const Rt = []; for (let e = 0; e < 256; e++) - Bt.push(0); + Rt.push(0); "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e) { - Bt[e.charCodeAt(0)] = 1; + Rt[e.charCodeAt(0)] = 1; }); -function Ba(e, u) { +function Ma(e, u) { let t = e.pos; - const c = e.posMax; - if (e.src.charCodeAt(t) !== 92 || (t++, t >= c)) return !1; - let s = e.src.charCodeAt(t); - if (s === 10) { - for (u || e.push("hardbreak", "br", 0), t++; t < c && (s = e.src.charCodeAt(t), !!Y(s)); ) + const s = e.posMax; + if (e.src.charCodeAt(t) !== 92 || (t++, t >= s)) return !1; + let a = e.src.charCodeAt(t); + if (a === 10) { + for (u || e.push("hardbreak", "br", 0), t++; t < s && (a = e.src.charCodeAt(t), !!V(a)); ) t++; return e.pos = t, !0; } - let i = e.src[t]; - if (s >= 55296 && s <= 56319 && t + 1 < c) { - const a = e.src.charCodeAt(t + 1); - a >= 56320 && a <= 57343 && (i += e.src[t + 1], t++); + let r = e.src[t]; + if (a >= 55296 && a <= 56319 && t + 1 < s) { + const i = e.src.charCodeAt(t + 1); + i >= 56320 && i <= 57343 && (r += e.src[t + 1], t++); } - const l = "\\" + i; + const o = "\\" + r; if (!u) { - const a = e.push("text_special", "", 0); - s < 256 && Bt[s] !== 0 ? a.content = i : a.content = l, a.markup = l, a.info = "escape"; + const i = e.push("text_special", "", 0); + a < 256 && Rt[a] !== 0 ? i.content = r : i.content = o, i.markup = o, i.info = "escape"; } return e.pos = t + 1, !0; } -function Fa(e, u) { +function Oa(e, u) { let t = e.pos; if (e.src.charCodeAt(t) !== 96) return !1; - const s = t; + const a = t; t++; - const i = e.posMax; - for (; t < i && e.src.charCodeAt(t) === 96; ) + const r = e.posMax; + for (; t < r && e.src.charCodeAt(t) === 96; ) t++; - const l = e.src.slice(s, t), a = l.length; - if (e.backticksScanned && (e.backticks[a] || 0) <= s) - return u || (e.pending += l), e.pos += a, !0; - let o = t, r; - for (; (r = e.src.indexOf("`", o)) !== -1; ) { - for (o = r + 1; o < i && e.src.charCodeAt(o) === 96; ) - o++; - const n = o - r; - if (n === a) { + const o = e.src.slice(a, t), i = o.length; + if (e.backticksScanned && (e.backticks[i] || 0) <= a) + return u || (e.pending += o), e.pos += i, !0; + let c = t, n; + for (; (n = e.src.indexOf("`", c)) !== -1; ) { + for (c = n + 1; c < r && e.src.charCodeAt(c) === 96; ) + c++; + const l = c - n; + if (l === i) { if (!u) { const f = e.push("code_inline", "code", 0); - f.markup = l, f.content = e.src.slice(t, r).replace(/\n/g, " ").replace(/^ (.+) $/, "$1"); + f.markup = o, f.content = e.src.slice(t, n).replace(/\n/g, " ").replace(/^ (.+) $/, "$1"); } - return e.pos = o, !0; + return e.pos = c, !0; } - e.backticks[n] = r; + e.backticks[l] = n; } - return e.backticksScanned = !0, u || (e.pending += l), e.pos += a, !0; + return e.backticksScanned = !0, u || (e.pending += o), e.pos += i, !0; } -function Sa(e, u) { - const t = e.pos, c = e.src.charCodeAt(t); - if (u || c !== 126) +function Qa(e, u) { + const t = e.pos, s = e.src.charCodeAt(t); + if (u || s !== 126) return !1; - const s = e.scanDelims(e.pos, !0); - let i = s.length; - const l = String.fromCharCode(c); - if (i < 2) + const a = e.scanDelims(e.pos, !0); + let r = a.length; + const o = String.fromCharCode(s); + if (r < 2) return !1; - let a; - i % 2 && (a = e.push("text", "", 0), a.content = l, i--); - for (let o = 0; o < i; o += 2) - a = e.push("text", "", 0), a.content = l + l, e.delimiters.push({ - marker: c, + let i; + r % 2 && (i = e.push("text", "", 0), i.content = o, r--); + for (let c = 0; c < r; c += 2) + i = e.push("text", "", 0), i.content = o + o, e.delimiters.push({ + marker: s, length: 0, // disable "rule of 3" length checks meant for emphasis token: e.tokens.length - 1, end: -1, - open: s.can_open, - close: s.can_close + open: a.can_open, + close: a.can_close }); - return e.pos += s.length, !0; + return e.pos += a.length, !0; } -function e0(e, u) { +function rr(e, u) { let t; - const c = [], s = u.length; - for (let i = 0; i < s; i++) { - const l = u[i]; - if (l.marker !== 126 || l.end === -1) + const s = [], a = u.length; + for (let r = 0; r < a; r++) { + const o = u[r]; + if (o.marker !== 126 || o.end === -1) continue; - const a = u[l.end]; - t = e.tokens[l.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = e.tokens[a.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", e.tokens[a.token - 1].type === "text" && e.tokens[a.token - 1].content === "~" && c.push(a.token - 1); + const i = u[o.end]; + t = e.tokens[o.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = e.tokens[i.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", e.tokens[i.token - 1].type === "text" && e.tokens[i.token - 1].content === "~" && s.push(i.token - 1); } - for (; c.length; ) { - const i = c.pop(); - let l = i + 1; - for (; l < e.tokens.length && e.tokens[l].type === "s_close"; ) - l++; - l--, i !== l && (t = e.tokens[l], e.tokens[l] = e.tokens[i], e.tokens[i] = t); + for (; s.length; ) { + const r = s.pop(); + let o = r + 1; + for (; o < e.tokens.length && e.tokens[o].type === "s_close"; ) + o++; + o--, r !== o && (t = e.tokens[o], e.tokens[o] = e.tokens[r], e.tokens[r] = t); } } -function Ra(e) { +function La(e) { const u = e.tokens_meta, t = e.tokens_meta.length; - e0(e, e.delimiters); - for (let c = 0; c < t; c++) - u[c] && u[c].delimiters && e0(e, u[c].delimiters); + rr(e, e.delimiters); + for (let s = 0; s < t; s++) + u[s] && u[s].delimiters && rr(e, u[s].delimiters); } -const qr = { - tokenize: Sa, - postProcess: Ra +const Y0 = { + tokenize: Qa, + postProcess: La }; -function Ta(e, u) { - const t = e.pos, c = e.src.charCodeAt(t); - if (u || c !== 95 && c !== 42) +function Pa(e, u) { + const t = e.pos, s = e.src.charCodeAt(t); + if (u || s !== 95 && s !== 42) return !1; - const s = e.scanDelims(e.pos, c === 42); - for (let i = 0; i < s.length; i++) { - const l = e.push("text", "", 0); - l.content = String.fromCharCode(c), e.delimiters.push({ + const a = e.scanDelims(e.pos, s === 42); + for (let r = 0; r < a.length; r++) { + const o = e.push("text", "", 0); + o.content = String.fromCharCode(s), e.delimiters.push({ // Char code of the starting marker (number). // - marker: c, + marker: s, // Total length of these series of delimiters. // - length: s.length, + length: a.length, // A position of the token this delimiter corresponds to. // token: e.tokens.length - 1, @@ -2431,315 +2540,315 @@ function Ta(e, u) { // Boolean flags that determine if this delimiter could open or close // an emphasis. // - open: s.can_open, - close: s.can_close + open: a.can_open, + close: a.can_close }); } - return e.pos += s.length, !0; + return e.pos += a.length, !0; } -function u0(e, u) { +function nr(e, u) { const t = u.length; - for (let c = t - 1; c >= 0; c--) { - const s = u[c]; - if (s.marker !== 95 && s.marker !== 42 || s.end === -1) + for (let s = t - 1; s >= 0; s--) { + const a = u[s]; + if (a.marker !== 95 && a.marker !== 42 || a.end === -1) continue; - const i = u[s.end], l = c > 0 && u[c - 1].end === s.end + 1 && // check that first two markers match and adjacent - u[c - 1].marker === s.marker && u[c - 1].token === s.token - 1 && // check that last two markers are adjacent (we can safely assume they match) - u[s.end + 1].token === i.token + 1, a = String.fromCharCode(s.marker), o = e.tokens[s.token]; - o.type = l ? "strong_open" : "em_open", o.tag = l ? "strong" : "em", o.nesting = 1, o.markup = l ? a + a : a, o.content = ""; - const r = e.tokens[i.token]; - r.type = l ? "strong_close" : "em_close", r.tag = l ? "strong" : "em", r.nesting = -1, r.markup = l ? a + a : a, r.content = "", l && (e.tokens[u[c - 1].token].content = "", e.tokens[u[s.end + 1].token].content = "", c--); + const r = u[a.end], o = s > 0 && u[s - 1].end === a.end + 1 && // check that first two markers match and adjacent + u[s - 1].marker === a.marker && u[s - 1].token === a.token - 1 && // check that last two markers are adjacent (we can safely assume they match) + u[a.end + 1].token === r.token + 1, i = String.fromCharCode(a.marker), c = e.tokens[a.token]; + c.type = o ? "strong_open" : "em_open", c.tag = o ? "strong" : "em", c.nesting = 1, c.markup = o ? i + i : i, c.content = ""; + const n = e.tokens[r.token]; + n.type = o ? "strong_close" : "em_close", n.tag = o ? "strong" : "em", n.nesting = -1, n.markup = o ? i + i : i, n.content = "", o && (e.tokens[u[s - 1].token].content = "", e.tokens[u[a.end + 1].token].content = "", s--); } } -function Na(e) { +function Ga(e) { const u = e.tokens_meta, t = e.tokens_meta.length; - u0(e, e.delimiters); - for (let c = 0; c < t; c++) - u[c] && u[c].delimiters && u0(e, u[c].delimiters); + nr(e, e.delimiters); + for (let s = 0; s < t; s++) + u[s] && u[s].delimiters && nr(e, u[s].delimiters); } -const Hr = { - tokenize: Ta, - postProcess: Na +const j0 = { + tokenize: Pa, + postProcess: Ga }; -function Oa(e, u) { - let t, c, s, i, l = "", a = "", o = e.pos, r = !0; +function Ha(e, u) { + let t, s, a, r, o = "", i = "", c = e.pos, n = !0; if (e.src.charCodeAt(e.pos) !== 91) return !1; - const n = e.pos, f = e.posMax, d = e.pos + 1, A = e.md.helpers.parseLinkLabel(e, e.pos, !0); - if (A < 0) + const l = e.pos, f = e.posMax, A = e.pos + 1, d = e.md.helpers.parseLinkLabel(e, e.pos, !0); + if (d < 0) return !1; - let h = A + 1; + let h = d + 1; if (h < f && e.src.charCodeAt(h) === 40) { - for (r = !1, h++; h < f && (t = e.src.charCodeAt(h), !(!Y(t) && t !== 10)); h++) + for (n = !1, h++; h < f && (t = e.src.charCodeAt(h), !(!V(t) && t !== 10)); h++) ; if (h >= f) return !1; - if (o = h, s = e.md.helpers.parseLinkDestination(e.src, h, e.posMax), s.ok) { - for (l = e.md.normalizeLink(s.str), e.md.validateLink(l) ? h = s.pos : l = "", o = h; h < f && (t = e.src.charCodeAt(h), !(!Y(t) && t !== 10)); h++) + if (c = h, a = e.md.helpers.parseLinkDestination(e.src, h, e.posMax), a.ok) { + for (o = e.md.normalizeLink(a.str), e.md.validateLink(o) ? h = a.pos : o = "", c = h; h < f && (t = e.src.charCodeAt(h), !(!V(t) && t !== 10)); h++) ; - if (s = e.md.helpers.parseLinkTitle(e.src, h, e.posMax), h < f && o !== h && s.ok) - for (a = s.str, h = s.pos; h < f && (t = e.src.charCodeAt(h), !(!Y(t) && t !== 10)); h++) + if (a = e.md.helpers.parseLinkTitle(e.src, h, e.posMax), h < f && c !== h && a.ok) + for (i = a.str, h = a.pos; h < f && (t = e.src.charCodeAt(h), !(!V(t) && t !== 10)); h++) ; } - (h >= f || e.src.charCodeAt(h) !== 41) && (r = !0), h++; + (h >= f || e.src.charCodeAt(h) !== 41) && (n = !0), h++; } - if (r) { + if (n) { if (typeof e.env.references > "u") return !1; - if (h < f && e.src.charCodeAt(h) === 91 ? (o = h + 1, h = e.md.helpers.parseLinkLabel(e, h), h >= 0 ? c = e.src.slice(o, h++) : h = A + 1) : h = A + 1, c || (c = e.src.slice(d, A)), i = e.env.references[gu(c)], !i) - return e.pos = n, !1; - l = i.href, a = i.title; + if (h < f && e.src.charCodeAt(h) === 91 ? (c = h + 1, h = e.md.helpers.parseLinkLabel(e, h), h >= 0 ? s = e.src.slice(c, h++) : h = d + 1) : h = d + 1, s || (s = e.src.slice(A, d)), r = e.env.references[Cu(s)], !r) + return e.pos = l, !1; + o = r.href, i = r.title; } if (!u) { - e.pos = d, e.posMax = A; - const w = e.push("link_open", "a", 1), C = [["href", l]]; - w.attrs = C, a && C.push(["title", a]), e.linkLevel++, e.md.inline.tokenize(e), e.linkLevel--, e.push("link_close", "a", -1); + e.pos = A, e.posMax = d; + const y = e.push("link_open", "a", 1), C = [["href", o]]; + y.attrs = C, i && C.push(["title", i]), e.linkLevel++, e.md.inline.tokenize(e), e.linkLevel--, e.push("link_close", "a", -1); } return e.pos = h, e.posMax = f, !0; } -function Ma(e, u) { - let t, c, s, i, l, a, o, r, n = ""; - const f = e.pos, d = e.posMax; +function qa(e, u) { + let t, s, a, r, o, i, c, n, l = ""; + const f = e.pos, A = e.posMax; if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91) return !1; - const A = e.pos + 2, h = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1); + const d = e.pos + 2, h = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1); if (h < 0) return !1; - if (i = h + 1, i < d && e.src.charCodeAt(i) === 40) { - for (i++; i < d && (t = e.src.charCodeAt(i), !(!Y(t) && t !== 10)); i++) + if (r = h + 1, r < A && e.src.charCodeAt(r) === 40) { + for (r++; r < A && (t = e.src.charCodeAt(r), !(!V(t) && t !== 10)); r++) ; - if (i >= d) + if (r >= A) return !1; - for (r = i, a = e.md.helpers.parseLinkDestination(e.src, i, e.posMax), a.ok && (n = e.md.normalizeLink(a.str), e.md.validateLink(n) ? i = a.pos : n = ""), r = i; i < d && (t = e.src.charCodeAt(i), !(!Y(t) && t !== 10)); i++) + for (n = r, i = e.md.helpers.parseLinkDestination(e.src, r, e.posMax), i.ok && (l = e.md.normalizeLink(i.str), e.md.validateLink(l) ? r = i.pos : l = ""), n = r; r < A && (t = e.src.charCodeAt(r), !(!V(t) && t !== 10)); r++) ; - if (a = e.md.helpers.parseLinkTitle(e.src, i, e.posMax), i < d && r !== i && a.ok) - for (o = a.str, i = a.pos; i < d && (t = e.src.charCodeAt(i), !(!Y(t) && t !== 10)); i++) + if (i = e.md.helpers.parseLinkTitle(e.src, r, e.posMax), r < A && n !== r && i.ok) + for (c = i.str, r = i.pos; r < A && (t = e.src.charCodeAt(r), !(!V(t) && t !== 10)); r++) ; else - o = ""; - if (i >= d || e.src.charCodeAt(i) !== 41) + c = ""; + if (r >= A || e.src.charCodeAt(r) !== 41) return e.pos = f, !1; - i++; + r++; } else { if (typeof e.env.references > "u") return !1; - if (i < d && e.src.charCodeAt(i) === 91 ? (r = i + 1, i = e.md.helpers.parseLinkLabel(e, i), i >= 0 ? s = e.src.slice(r, i++) : i = h + 1) : i = h + 1, s || (s = e.src.slice(A, h)), l = e.env.references[gu(s)], !l) + if (r < A && e.src.charCodeAt(r) === 91 ? (n = r + 1, r = e.md.helpers.parseLinkLabel(e, r), r >= 0 ? a = e.src.slice(n, r++) : r = h + 1) : r = h + 1, a || (a = e.src.slice(d, h)), o = e.env.references[Cu(a)], !o) return e.pos = f, !1; - n = l.href, o = l.title; + l = o.href, c = o.title; } if (!u) { - c = e.src.slice(A, h); - const w = []; + s = e.src.slice(d, h); + const y = []; e.md.inline.parse( - c, + s, e.md, e.env, - w + y ); - const C = e.push("image", "img", 0), b = [["src", n], ["alt", ""]]; - C.attrs = b, C.children = w, C.content = c, o && b.push(["title", o]); + const C = e.push("image", "img", 0), w = [["src", l], ["alt", ""]]; + C.attrs = w, C.children = y, C.content = s, c && w.push(["title", c]); } - return e.pos = i, e.posMax = d, !0; + return e.pos = r, e.posMax = A, !0; } -const Qa = /^([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])?)*)$/, La = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/; -function Pa(e, u) { +const Wa = /^([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])?)*)$/, Ua = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/; +function Ka(e, u) { let t = e.pos; if (e.src.charCodeAt(t) !== 60) return !1; - const c = e.pos, s = e.posMax; + const s = e.pos, a = e.posMax; for (; ; ) { - if (++t >= s) return !1; - const l = e.src.charCodeAt(t); - if (l === 60) return !1; - if (l === 62) break; - } - const i = e.src.slice(c + 1, t); - if (La.test(i)) { - const l = e.md.normalizeLink(i); - if (!e.md.validateLink(l)) + if (++t >= a) return !1; + const o = e.src.charCodeAt(t); + if (o === 60) return !1; + if (o === 62) break; + } + const r = e.src.slice(s + 1, t); + if (Ua.test(r)) { + const o = e.md.normalizeLink(r); + if (!e.md.validateLink(o)) return !1; if (!u) { - const a = e.push("link_open", "a", 1); - a.attrs = [["href", l]], a.markup = "autolink", a.info = "auto"; - const o = e.push("text", "", 0); - o.content = e.md.normalizeLinkText(i); - const r = e.push("link_close", "a", -1); - r.markup = "autolink", r.info = "auto"; - } - return e.pos += i.length + 2, !0; - } - if (Qa.test(i)) { - const l = e.md.normalizeLink("mailto:" + i); - if (!e.md.validateLink(l)) + const i = e.push("link_open", "a", 1); + i.attrs = [["href", o]], i.markup = "autolink", i.info = "auto"; + const c = e.push("text", "", 0); + c.content = e.md.normalizeLinkText(r); + const n = e.push("link_close", "a", -1); + n.markup = "autolink", n.info = "auto"; + } + return e.pos += r.length + 2, !0; + } + if (Wa.test(r)) { + const o = e.md.normalizeLink("mailto:" + r); + if (!e.md.validateLink(o)) return !1; if (!u) { - const a = e.push("link_open", "a", 1); - a.attrs = [["href", l]], a.markup = "autolink", a.info = "auto"; - const o = e.push("text", "", 0); - o.content = e.md.normalizeLinkText(i); - const r = e.push("link_close", "a", -1); - r.markup = "autolink", r.info = "auto"; + const i = e.push("link_open", "a", 1); + i.attrs = [["href", o]], i.markup = "autolink", i.info = "auto"; + const c = e.push("text", "", 0); + c.content = e.md.normalizeLinkText(r); + const n = e.push("link_close", "a", -1); + n.markup = "autolink", n.info = "auto"; } - return e.pos += i.length + 2, !0; + return e.pos += r.length + 2, !0; } return !1; } -function Ga(e) { +function Ya(e) { return /^\s]/i.test(e); } -function qa(e) { +function ja(e) { return /^<\/a\s*>/i.test(e); } -function Ha(e) { +function Ja(e) { const u = e | 32; return u >= 97 && u <= 122; } -function Wa(e, u) { +function Za(e, u) { if (!e.md.options.html) return !1; - const t = e.posMax, c = e.pos; - if (e.src.charCodeAt(c) !== 60 || c + 2 >= t) + const t = e.posMax, s = e.pos; + if (e.src.charCodeAt(s) !== 60 || s + 2 >= t) return !1; - const s = e.src.charCodeAt(c + 1); - if (s !== 33 && s !== 63 && s !== 47 && !Ha(s)) + const a = e.src.charCodeAt(s + 1); + if (a !== 33 && a !== 63 && a !== 47 && !Ja(a)) return !1; - const i = e.src.slice(c).match(ma); - if (!i) + const r = e.src.slice(s).match(Da); + if (!r) return !1; if (!u) { - const l = e.push("html_inline", "", 0); - l.content = i[0], Ga(l.content) && e.linkLevel++, qa(l.content) && e.linkLevel--; + const o = e.push("html_inline", "", 0); + o.content = r[0], Ya(o.content) && e.linkLevel++, ja(o.content) && e.linkLevel--; } - return e.pos += i[0].length, !0; + return e.pos += r[0].length, !0; } -const Ua = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Ka = /^&([a-z][a-z0-9]{1,31});/i; -function Ya(e, u) { - const t = e.pos, c = e.posMax; - if (e.src.charCodeAt(t) !== 38 || t + 1 >= c) return !1; +const Va = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, za = /^&([a-z][a-z0-9]{1,31});/i; +function Xa(e, u) { + const t = e.pos, s = e.posMax; + if (e.src.charCodeAt(t) !== 38 || t + 1 >= s) return !1; if (e.src.charCodeAt(t + 1) === 35) { - const i = e.src.slice(t).match(Ua); - if (i) { + const r = e.src.slice(t).match(Va); + if (r) { if (!u) { - const l = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), a = e.push("text_special", "", 0); - a.content = _t(l) ? hu(l) : hu(65533), a.markup = i[0], a.info = "entity"; + const o = r[1][0].toLowerCase() === "x" ? parseInt(r[1].slice(1), 16) : parseInt(r[1], 10), i = e.push("text_special", "", 0); + i.content = St(o) ? xu(o) : xu(65533), i.markup = r[0], i.info = "entity"; } - return e.pos += i[0].length, !0; + return e.pos += r[0].length, !0; } } else { - const i = e.src.slice(t).match(Ka); - if (i) { - const l = Nr(i[0]); - if (l !== i[0]) { + const r = e.src.slice(t).match(za); + if (r) { + const o = P0(r[0]); + if (o !== r[0]) { if (!u) { - const a = e.push("text_special", "", 0); - a.content = l, a.markup = i[0], a.info = "entity"; + const i = e.push("text_special", "", 0); + i.content = o, i.markup = r[0], i.info = "entity"; } - return e.pos += i[0].length, !0; + return e.pos += r[0].length, !0; } } } return !1; } -function t0(e) { +function ir(e) { const u = {}, t = e.length; if (!t) return; - let c = 0, s = -2; - const i = []; - for (let l = 0; l < t; l++) { - const a = e[l]; - if (i.push(0), (e[c].marker !== a.marker || s !== a.token - 1) && (c = l), s = a.token, a.length = a.length || 0, !a.close) continue; - u.hasOwnProperty(a.marker) || (u[a.marker] = [-1, -1, -1, -1, -1, -1]); - const o = u[a.marker][(a.open ? 3 : 0) + a.length % 3]; - let r = c - i[c] - 1, n = r; - for (; r > o; r -= i[r] + 1) { - const f = e[r]; - if (f.marker === a.marker && f.open && f.end < 0) { - let d = !1; - if ((f.close || a.open) && (f.length + a.length) % 3 === 0 && (f.length % 3 !== 0 || a.length % 3 !== 0) && (d = !0), !d) { - const A = r > 0 && !e[r - 1].open ? i[r - 1] + 1 : 0; - i[l] = l - r + A, i[r] = A, a.open = !1, f.end = l, f.close = !1, n = -1, s = -2; + let s = 0, a = -2; + const r = []; + for (let o = 0; o < t; o++) { + const i = e[o]; + if (r.push(0), (e[s].marker !== i.marker || a !== i.token - 1) && (s = o), a = i.token, i.length = i.length || 0, !i.close) continue; + u.hasOwnProperty(i.marker) || (u[i.marker] = [-1, -1, -1, -1, -1, -1]); + const c = u[i.marker][(i.open ? 3 : 0) + i.length % 3]; + let n = s - r[s] - 1, l = n; + for (; n > c; n -= r[n] + 1) { + const f = e[n]; + if (f.marker === i.marker && f.open && f.end < 0) { + let A = !1; + if ((f.close || i.open) && (f.length + i.length) % 3 === 0 && (f.length % 3 !== 0 || i.length % 3 !== 0) && (A = !0), !A) { + const d = n > 0 && !e[n - 1].open ? r[n - 1] + 1 : 0; + r[o] = o - n + d, r[n] = d, i.open = !1, f.end = o, f.close = !1, l = -1, a = -2; break; } } } - n !== -1 && (u[a.marker][(a.open ? 3 : 0) + (a.length || 0) % 3] = n); + l !== -1 && (u[i.marker][(i.open ? 3 : 0) + (i.length || 0) % 3] = l); } } -function ja(e) { +function $a(e) { const u = e.tokens_meta, t = e.tokens_meta.length; - t0(e.delimiters); - for (let c = 0; c < t; c++) - u[c] && u[c].delimiters && t0(u[c].delimiters); + ir(e.delimiters); + for (let s = 0; s < t; s++) + u[s] && u[s].delimiters && ir(u[s].delimiters); } -function Ja(e) { - let u, t, c = 0; - const s = e.tokens, i = e.tokens.length; - for (u = t = 0; u < i; u++) - s[u].nesting < 0 && c--, s[u].level = c, s[u].nesting > 0 && c++, s[u].type === "text" && u + 1 < i && s[u + 1].type === "text" ? s[u + 1].content = s[u].content + s[u + 1].content : (u !== t && (s[t] = s[u]), t++); - u !== t && (s.length = t); -} -const Ru = [ - ["text", Da], - ["linkify", _a], - ["newline", ka], - ["escape", Ba], - ["backticks", Fa], - ["strikethrough", qr.tokenize], - ["emphasis", Hr.tokenize], - ["link", Oa], - ["image", Ma], - ["autolink", Pa], - ["html_inline", Wa], - ["entity", Ya] -], Tu = [ - ["balance_pairs", ja], - ["strikethrough", qr.postProcess], - ["emphasis", Hr.postProcess], +function es(e) { + let u, t, s = 0; + const a = e.tokens, r = e.tokens.length; + for (u = t = 0; u < r; u++) + a[u].nesting < 0 && s--, a[u].level = s, a[u].nesting > 0 && s++, a[u].type === "text" && u + 1 < r && a[u + 1].type === "text" ? a[u + 1].content = a[u].content + a[u + 1].content : (u !== t && (a[t] = a[u]), t++); + u !== t && (a.length = t); +} +const Ou = [ + ["text", Sa], + ["linkify", Ra], + ["newline", Na], + ["escape", Ma], + ["backticks", Oa], + ["strikethrough", Y0.tokenize], + ["emphasis", j0.tokenize], + ["link", Ha], + ["image", qa], + ["autolink", Ka], + ["html_inline", Za], + ["entity", Xa] +], Qu = [ + ["balance_pairs", $a], + ["strikethrough", Y0.postProcess], + ["emphasis", j0.postProcess], // rules for pairs separate '**' into its own text tokens, which may be left unused, // rule below merges unused segments back with the rest of the text - ["fragments_join", Ja] + ["fragments_join", es] ]; -function ze() { - this.ruler = new $(); - for (let e = 0; e < Ru.length; e++) - this.ruler.push(Ru[e][0], Ru[e][1]); - this.ruler2 = new $(); - for (let e = 0; e < Tu.length; e++) - this.ruler2.push(Tu[e][0], Tu[e][1]); -} -ze.prototype.skipToken = function(e) { - const u = e.pos, t = this.ruler.getRules(""), c = t.length, s = e.md.options.maxNesting, i = e.cache; - if (typeof i[u] < "u") { - e.pos = i[u]; +function uu() { + this.ruler = new te(); + for (let e = 0; e < Ou.length; e++) + this.ruler.push(Ou[e][0], Ou[e][1]); + this.ruler2 = new te(); + for (let e = 0; e < Qu.length; e++) + this.ruler2.push(Qu[e][0], Qu[e][1]); +} +uu.prototype.skipToken = function(e) { + const u = e.pos, t = this.ruler.getRules(""), s = t.length, a = e.md.options.maxNesting, r = e.cache; + if (typeof r[u] < "u") { + e.pos = r[u]; return; } - let l = !1; - if (e.level < s) { - for (let a = 0; a < c; a++) - if (e.level++, l = t[a](e, !0), e.level--, l) { + let o = !1; + if (e.level < a) { + for (let i = 0; i < s; i++) + if (e.level++, o = t[i](e, !0), e.level--, o) { if (u >= e.pos) throw new Error("inline rule didn't increment state.pos"); break; } } else e.pos = e.posMax; - l || e.pos++, i[u] = e.pos; + o || e.pos++, r[u] = e.pos; }; -ze.prototype.tokenize = function(e) { - const u = this.ruler.getRules(""), t = u.length, c = e.posMax, s = e.md.options.maxNesting; - for (; e.pos < c; ) { - const i = e.pos; - let l = !1; - if (e.level < s) { - for (let a = 0; a < t; a++) - if (l = u[a](e, !1), l) { - if (i >= e.pos) +uu.prototype.tokenize = function(e) { + const u = this.ruler.getRules(""), t = u.length, s = e.posMax, a = e.md.options.maxNesting; + for (; e.pos < s; ) { + const r = e.pos; + let o = !1; + if (e.level < a) { + for (let i = 0; i < t; i++) + if (o = u[i](e, !1), o) { + if (r >= e.pos) throw new Error("inline rule didn't increment state.pos"); break; } } - if (l) { - if (e.pos >= c) + if (o) { + if (e.pos >= s) break; continue; } @@ -2747,17 +2856,17 @@ ze.prototype.tokenize = function(e) { } e.pending && e.pushPending(); }; -ze.prototype.parse = function(e, u, t, c) { - const s = new this.State(e, u, t, c); - this.tokenize(s); - const i = this.ruler2.getRules(""), l = i.length; - for (let a = 0; a < l; a++) - i[a](s); +uu.prototype.parse = function(e, u, t, s) { + const a = new this.State(e, u, t, s); + this.tokenize(a); + const r = this.ruler2.getRules(""), o = r.length; + for (let i = 0; i < o; i++) + r[i](a); }; -ze.prototype.State = Ve; -function Za(e) { +uu.prototype.State = eu; +function us(e) { const u = {}; - e = e || {}, u.src_Any = Br.source, u.src_Cc = Fr.source, u.src_Z = Rr.source, u.src_P = Dt.source, u.src_ZPCc = [u.src_Z, u.src_P, u.src_Cc].join("|"), u.src_ZCc = [u.src_Z, u.src_Cc].join("|"); + e = e || {}, u.src_Any = N0.source, u.src_Cc = M0.source, u.src_Z = Q0.source, u.src_P = Bt.source, u.src_ZPCc = [u.src_Z, u.src_P, u.src_Cc].join("|"), u.src_ZCc = [u.src_Z, u.src_Cc].join("|"); const t = "[><|]"; return u.src_pseudo_letter = "(?:(?!" + t + "|" + u.src_ZPCc + ")" + u.src_Any + ")", u.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", u.src_auth = "(?:(?:(?!" + u.src_ZCc + "|[@/\\[\\]()]).)+@)?", u.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", u.src_host_terminator = "(?=$|" + t + "|" + u.src_ZPCc + ")(?!" + (e["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + u.src_ZPCc + "))", u.src_path = "(?:[/?#](?:(?!" + u.src_ZCc + "|" + t + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + u.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + u.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + u.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + u.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + u.src_ZCc + "|[']).)+\\'|\\'(?=" + u.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + u.src_ZCc + "|[.]|$)|" + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths ",(?!" + u.src_ZCc + "|$)|;(?!" + u.src_ZCc + "|$)|\\!+(?!" + u.src_ZCc + "|[!]|$)|\\?(?!" + u.src_ZCc + "|[?]|$))+|\\/)?", u.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', u.src_xn = "xn--[a-z0-9\\-]{1,59}", u.src_domain_root = // Allow letters & digits (http://test1) @@ -2767,297 +2876,297 @@ function Za(e) { // but can start with > (markdown blockquote) "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + u.src_ZPCc + "))((?![$+<=>^`||])" + u.tpl_host_port_no_ip_fuzzy_strict + u.src_path + ")", u; } -function yt(e) { +function Dt(e) { return Array.prototype.slice.call(arguments, 1).forEach(function(t) { - t && Object.keys(t).forEach(function(c) { - e[c] = t[c]; + t && Object.keys(t).forEach(function(s) { + e[s] = t[s]; }); }), e; } -function xu(e) { +function Du(e) { return Object.prototype.toString.call(e); } -function Va(e) { - return xu(e) === "[object String]"; +function ts(e) { + return Du(e) === "[object String]"; } -function za(e) { - return xu(e) === "[object Object]"; +function rs(e) { + return Du(e) === "[object Object]"; } -function Xa(e) { - return xu(e) === "[object RegExp]"; +function ns(e) { + return Du(e) === "[object RegExp]"; } -function r0(e) { - return xu(e) === "[object Function]"; +function ar(e) { + return Du(e) === "[object Function]"; } -function $a(e) { +function is(e) { return e.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&"); } -const Wr = { +const J0 = { fuzzyLink: !0, fuzzyEmail: !0, fuzzyIP: !1 }; -function es(e) { +function as(e) { return Object.keys(e || {}).reduce(function(u, t) { - return u || Wr.hasOwnProperty(t); + return u || J0.hasOwnProperty(t); }, !1); } -const us = { +const ss = { "http:": { validate: function(e, u, t) { - const c = e.slice(u); + const s = e.slice(u); return t.re.http || (t.re.http = new RegExp( "^\\/\\/" + t.re.src_auth + t.re.src_host_port_strict + t.re.src_path, "i" - )), t.re.http.test(c) ? c.match(t.re.http)[0].length : 0; + )), t.re.http.test(s) ? s.match(t.re.http)[0].length : 0; } }, "https:": "http:", "ftp:": "http:", "//": { validate: function(e, u, t) { - const c = e.slice(u); + const s = e.slice(u); return t.re.no_http || (t.re.no_http = new RegExp( "^" + t.re.src_auth + // Don't allow single-level domains, because of false positives like '//test' // with code comments "(?:localhost|(?:(?:" + t.re.src_domain + ")\\.)+" + t.re.src_domain_root + ")" + t.re.src_port + t.re.src_host_terminator + t.re.src_path, "i" - )), t.re.no_http.test(c) ? u >= 3 && e[u - 3] === ":" || u >= 3 && e[u - 3] === "/" ? 0 : c.match(t.re.no_http)[0].length : 0; + )), t.re.no_http.test(s) ? u >= 3 && e[u - 3] === ":" || u >= 3 && e[u - 3] === "/" ? 0 : s.match(t.re.no_http)[0].length : 0; } }, "mailto:": { validate: function(e, u, t) { - const c = e.slice(u); + const s = e.slice(u); return t.re.mailto || (t.re.mailto = new RegExp( "^" + t.re.src_email_name + "@" + t.re.src_host_strict, "i" - )), t.re.mailto.test(c) ? c.match(t.re.mailto)[0].length : 0; + )), t.re.mailto.test(s) ? s.match(t.re.mailto)[0].length : 0; } } -}, ts = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", rs = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|"); -function is(e) { +}, cs = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", os = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|"); +function ls(e) { e.__index__ = -1, e.__text_cache__ = ""; } -function ns(e) { +function fs(e) { return function(u, t) { - const c = u.slice(t); - return e.test(c) ? c.match(e)[0].length : 0; + const s = u.slice(t); + return e.test(s) ? s.match(e)[0].length : 0; }; } -function i0() { +function sr() { return function(e, u) { u.normalize(e); }; } -function bu(e) { - const u = e.re = Za(e.__opts__), t = e.__tlds__.slice(); - e.onCompile(), e.__tlds_replaced__ || t.push(ts), t.push(u.src_xn), u.src_tlds = t.join("|"); - function c(a) { - return a.replace("%TLDS%", u.src_tlds); +function yu(e) { + const u = e.re = us(e.__opts__), t = e.__tlds__.slice(); + e.onCompile(), e.__tlds_replaced__ || t.push(cs), t.push(u.src_xn), u.src_tlds = t.join("|"); + function s(i) { + return i.replace("%TLDS%", u.src_tlds); } - u.email_fuzzy = RegExp(c(u.tpl_email_fuzzy), "i"), u.link_fuzzy = RegExp(c(u.tpl_link_fuzzy), "i"), u.link_no_ip_fuzzy = RegExp(c(u.tpl_link_no_ip_fuzzy), "i"), u.host_fuzzy_test = RegExp(c(u.tpl_host_fuzzy_test), "i"); - const s = []; + u.email_fuzzy = RegExp(s(u.tpl_email_fuzzy), "i"), u.link_fuzzy = RegExp(s(u.tpl_link_fuzzy), "i"), u.link_no_ip_fuzzy = RegExp(s(u.tpl_link_no_ip_fuzzy), "i"), u.host_fuzzy_test = RegExp(s(u.tpl_host_fuzzy_test), "i"); + const a = []; e.__compiled__ = {}; - function i(a, o) { - throw new Error('(LinkifyIt) Invalid schema "' + a + '": ' + o); + function r(i, c) { + throw new Error('(LinkifyIt) Invalid schema "' + i + '": ' + c); } - Object.keys(e.__schemas__).forEach(function(a) { - const o = e.__schemas__[a]; - if (o === null) + Object.keys(e.__schemas__).forEach(function(i) { + const c = e.__schemas__[i]; + if (c === null) return; - const r = { validate: null, link: null }; - if (e.__compiled__[a] = r, za(o)) { - Xa(o.validate) ? r.validate = ns(o.validate) : r0(o.validate) ? r.validate = o.validate : i(a, o), r0(o.normalize) ? r.normalize = o.normalize : o.normalize ? i(a, o) : r.normalize = i0(); + const n = { validate: null, link: null }; + if (e.__compiled__[i] = n, rs(c)) { + ns(c.validate) ? n.validate = fs(c.validate) : ar(c.validate) ? n.validate = c.validate : r(i, c), ar(c.normalize) ? n.normalize = c.normalize : c.normalize ? r(i, c) : n.normalize = sr(); return; } - if (Va(o)) { - s.push(a); + if (ts(c)) { + a.push(i); return; } - i(a, o); - }), s.forEach(function(a) { - e.__compiled__[e.__schemas__[a]] && (e.__compiled__[a].validate = e.__compiled__[e.__schemas__[a]].validate, e.__compiled__[a].normalize = e.__compiled__[e.__schemas__[a]].normalize); - }), e.__compiled__[""] = { validate: null, normalize: i0() }; - const l = Object.keys(e.__compiled__).filter(function(a) { - return a.length > 0 && e.__compiled__[a]; - }).map($a).join("|"); - e.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + u.src_ZPCc + "))(" + l + ")", "i"), e.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + u.src_ZPCc + "))(" + l + ")", "ig"), e.re.schema_at_start = RegExp("^" + e.re.schema_search.source, "i"), e.re.pretest = RegExp( + r(i, c); + }), a.forEach(function(i) { + e.__compiled__[e.__schemas__[i]] && (e.__compiled__[i].validate = e.__compiled__[e.__schemas__[i]].validate, e.__compiled__[i].normalize = e.__compiled__[e.__schemas__[i]].normalize); + }), e.__compiled__[""] = { validate: null, normalize: sr() }; + const o = Object.keys(e.__compiled__).filter(function(i) { + return i.length > 0 && e.__compiled__[i]; + }).map(is).join("|"); + e.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + u.src_ZPCc + "))(" + o + ")", "i"), e.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + u.src_ZPCc + "))(" + o + ")", "ig"), e.re.schema_at_start = RegExp("^" + e.re.schema_search.source, "i"), e.re.pretest = RegExp( "(" + e.re.schema_test.source + ")|(" + e.re.host_fuzzy_test.source + ")|@", "i" - ), is(e); + ), ls(e); } -function as(e, u) { - const t = e.__index__, c = e.__last_index__, s = e.__text_cache__.slice(t, c); - this.schema = e.__schema__.toLowerCase(), this.index = t + u, this.lastIndex = c + u, this.raw = s, this.text = s, this.url = s; +function ds(e, u) { + const t = e.__index__, s = e.__last_index__, a = e.__text_cache__.slice(t, s); + this.schema = e.__schema__.toLowerCase(), this.index = t + u, this.lastIndex = s + u, this.raw = a, this.text = a, this.url = a; } -function wt(e, u) { - const t = new as(e, u); +function Et(e, u) { + const t = new ds(e, u); return e.__compiled__[t.schema].normalize(t, e), t; } -function te(e, u) { - if (!(this instanceof te)) - return new te(e, u); - u || es(e) && (u = e, e = {}), this.__opts__ = yt({}, Wr, u), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = yt({}, us, e), this.__compiled__ = {}, this.__tlds__ = rs, this.__tlds_replaced__ = !1, this.re = {}, bu(this); +function ie(e, u) { + if (!(this instanceof ie)) + return new ie(e, u); + u || as(e) && (u = e, e = {}), this.__opts__ = Dt({}, J0, u), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Dt({}, ss, e), this.__compiled__ = {}, this.__tlds__ = os, this.__tlds_replaced__ = !1, this.re = {}, yu(this); } -te.prototype.add = function(u, t) { - return this.__schemas__[u] = t, bu(this), this; +ie.prototype.add = function(u, t) { + return this.__schemas__[u] = t, yu(this), this; }; -te.prototype.set = function(u) { - return this.__opts__ = yt(this.__opts__, u), this; +ie.prototype.set = function(u) { + return this.__opts__ = Dt(this.__opts__, u), this; }; -te.prototype.test = function(u) { +ie.prototype.test = function(u) { if (this.__text_cache__ = u, this.__index__ = -1, !u.length) return !1; - let t, c, s, i, l, a, o, r, n; + let t, s, a, r, o, i, c, n, l; if (this.re.schema_test.test(u)) { - for (o = this.re.schema_search, o.lastIndex = 0; (t = o.exec(u)) !== null; ) - if (i = this.testSchemaAt(u, t[2], o.lastIndex), i) { - this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + i; + for (c = this.re.schema_search, c.lastIndex = 0; (t = c.exec(u)) !== null; ) + if (r = this.testSchemaAt(u, t[2], c.lastIndex), r) { + this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + r; break; } } - return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (r = u.search(this.re.host_fuzzy_test), r >= 0 && (this.__index__ < 0 || r < this.__index__) && (c = u.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (l = c.index + c[1].length, (this.__index__ < 0 || l < this.__index__) && (this.__schema__ = "", this.__index__ = l, this.__last_index__ = c.index + c[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (n = u.indexOf("@"), n >= 0 && (s = u.match(this.re.email_fuzzy)) !== null && (l = s.index + s[1].length, a = s.index + s[0].length, (this.__index__ < 0 || l < this.__index__ || l === this.__index__ && a > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = l, this.__last_index__ = a))), this.__index__ >= 0; + return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (n = u.search(this.re.host_fuzzy_test), n >= 0 && (this.__index__ < 0 || n < this.__index__) && (s = u.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (o = s.index + s[1].length, (this.__index__ < 0 || o < this.__index__) && (this.__schema__ = "", this.__index__ = o, this.__last_index__ = s.index + s[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (l = u.indexOf("@"), l >= 0 && (a = u.match(this.re.email_fuzzy)) !== null && (o = a.index + a[1].length, i = a.index + a[0].length, (this.__index__ < 0 || o < this.__index__ || o === this.__index__ && i > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = o, this.__last_index__ = i))), this.__index__ >= 0; }; -te.prototype.pretest = function(u) { +ie.prototype.pretest = function(u) { return this.re.pretest.test(u); }; -te.prototype.testSchemaAt = function(u, t, c) { - return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(u, c, this) : 0; +ie.prototype.testSchemaAt = function(u, t, s) { + return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(u, s, this) : 0; }; -te.prototype.match = function(u) { +ie.prototype.match = function(u) { const t = []; - let c = 0; - this.__index__ >= 0 && this.__text_cache__ === u && (t.push(wt(this, c)), c = this.__last_index__); - let s = c ? u.slice(c) : u; - for (; this.test(s); ) - t.push(wt(this, c)), s = s.slice(this.__last_index__), c += this.__last_index__; + let s = 0; + this.__index__ >= 0 && this.__text_cache__ === u && (t.push(Et(this, s)), s = this.__last_index__); + let a = s ? u.slice(s) : u; + for (; this.test(a); ) + t.push(Et(this, s)), a = a.slice(this.__last_index__), s += this.__last_index__; return t.length ? t : null; }; -te.prototype.matchAtStart = function(u) { +ie.prototype.matchAtStart = function(u) { if (this.__text_cache__ = u, this.__index__ = -1, !u.length) return null; const t = this.re.schema_at_start.exec(u); if (!t) return null; - const c = this.testSchemaAt(u, t[2], t[0].length); - return c ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + c, wt(this, 0)) : null; + const s = this.testSchemaAt(u, t[2], t[0].length); + return s ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + s, Et(this, 0)) : null; }; -te.prototype.tlds = function(u, t) { - return u = Array.isArray(u) ? u : [u], t ? (this.__tlds__ = this.__tlds__.concat(u).sort().filter(function(c, s, i) { - return c !== i[s - 1]; - }).reverse(), bu(this), this) : (this.__tlds__ = u.slice(), this.__tlds_replaced__ = !0, bu(this), this); +ie.prototype.tlds = function(u, t) { + return u = Array.isArray(u) ? u : [u], t ? (this.__tlds__ = this.__tlds__.concat(u).sort().filter(function(s, a, r) { + return s !== r[a - 1]; + }).reverse(), yu(this), this) : (this.__tlds__ = u.slice(), this.__tlds_replaced__ = !0, yu(this), this); }; -te.prototype.normalize = function(u) { +ie.prototype.normalize = function(u) { u.schema || (u.url = "http://" + u.url), u.schema === "mailto:" && !/^mailto:/i.test(u.url) && (u.url = "mailto:" + u.url); }; -te.prototype.onCompile = function() { +ie.prototype.onCompile = function() { }; -const Me = 2147483647, de = 36, Ft = 1, Je = 26, ss = 38, cs = 700, Ur = 72, Kr = 128, Yr = "-", os = /^xn--/, ls = /[^\0-\x7F]/, fs = /[\x2E\u3002\uFF0E\uFF61]/g, ds = { +const qe = 2147483647, ye = 36, Nt = 1, Xe = 26, As = 38, hs = 700, Z0 = 72, V0 = 128, z0 = "-", bs = /^xn--/, ps = /[^\0-\x7F]/, gs = /[\x2E\u3002\uFF0E\uFF61]/g, ms = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" -}, Nu = de - Ft, Ae = Math.floor, Ou = String.fromCharCode; -function Ce(e) { - throw new RangeError(ds[e]); +}, Lu = ye - Nt, we = Math.floor, Pu = String.fromCharCode; +function Fe(e) { + throw new RangeError(ms[e]); } -function As(e, u) { +function xs(e, u) { const t = []; - let c = e.length; - for (; c--; ) - t[c] = u(e[c]); + let s = e.length; + for (; s--; ) + t[s] = u(e[s]); return t; } -function jr(e, u) { +function X0(e, u) { const t = e.split("@"); - let c = ""; - t.length > 1 && (c = t[0] + "@", e = t[1]), e = e.replace(fs, "."); - const s = e.split("."), i = As(s, u).join("."); - return c + i; + let s = ""; + t.length > 1 && (s = t[0] + "@", e = t[1]), e = e.replace(gs, "."); + const a = e.split("."), r = xs(a, u).join("."); + return s + r; } -function Jr(e) { +function $0(e) { const u = []; let t = 0; - const c = e.length; - for (; t < c; ) { - const s = e.charCodeAt(t++); - if (s >= 55296 && s <= 56319 && t < c) { - const i = e.charCodeAt(t++); - (i & 64512) == 56320 ? u.push(((s & 1023) << 10) + (i & 1023) + 65536) : (u.push(s), t--); + const s = e.length; + for (; t < s; ) { + const a = e.charCodeAt(t++); + if (a >= 55296 && a <= 56319 && t < s) { + const r = e.charCodeAt(t++); + (r & 64512) == 56320 ? u.push(((a & 1023) << 10) + (r & 1023) + 65536) : (u.push(a), t--); } else - u.push(s); + u.push(a); } return u; } -const hs = (e) => String.fromCodePoint(...e), bs = function(e) { - return e >= 48 && e < 58 ? 26 + (e - 48) : e >= 65 && e < 91 ? e - 65 : e >= 97 && e < 123 ? e - 97 : de; -}, n0 = function(e, u) { +const ys = (e) => String.fromCodePoint(...e), ws = function(e) { + return e >= 48 && e < 58 ? 26 + (e - 48) : e >= 65 && e < 91 ? e - 65 : e >= 97 && e < 123 ? e - 97 : ye; +}, cr = function(e, u) { return e + 22 + 75 * (e < 26) - ((u != 0) << 5); -}, Zr = function(e, u, t) { - let c = 0; - for (e = t ? Ae(e / cs) : e >> 1, e += Ae(e / u); e > Nu * Je >> 1; c += de) - e = Ae(e / Nu); - return Ae(c + (Nu + 1) * e / (e + ss)); -}, Vr = function(e) { +}, en = function(e, u, t) { + let s = 0; + for (e = t ? we(e / hs) : e >> 1, e += we(e / u); e > Lu * Xe >> 1; s += ye) + e = we(e / Lu); + return we(s + (Lu + 1) * e / (e + As)); +}, un = function(e) { const u = [], t = e.length; - let c = 0, s = Kr, i = Ur, l = e.lastIndexOf(Yr); - l < 0 && (l = 0); - for (let a = 0; a < l; ++a) - e.charCodeAt(a) >= 128 && Ce("not-basic"), u.push(e.charCodeAt(a)); - for (let a = l > 0 ? l + 1 : 0; a < t; ) { - const o = c; - for (let n = 1, f = de; ; f += de) { - a >= t && Ce("invalid-input"); - const d = bs(e.charCodeAt(a++)); - d >= de && Ce("invalid-input"), d > Ae((Me - c) / n) && Ce("overflow"), c += d * n; - const A = f <= i ? Ft : f >= i + Je ? Je : f - i; - if (d < A) + let s = 0, a = V0, r = Z0, o = e.lastIndexOf(z0); + o < 0 && (o = 0); + for (let i = 0; i < o; ++i) + e.charCodeAt(i) >= 128 && Fe("not-basic"), u.push(e.charCodeAt(i)); + for (let i = o > 0 ? o + 1 : 0; i < t; ) { + const c = s; + for (let l = 1, f = ye; ; f += ye) { + i >= t && Fe("invalid-input"); + const A = ws(e.charCodeAt(i++)); + A >= ye && Fe("invalid-input"), A > we((qe - s) / l) && Fe("overflow"), s += A * l; + const d = f <= r ? Nt : f >= r + Xe ? Xe : f - r; + if (A < d) break; - const h = de - A; - n > Ae(Me / h) && Ce("overflow"), n *= h; + const h = ye - d; + l > we(qe / h) && Fe("overflow"), l *= h; } - const r = u.length + 1; - i = Zr(c - o, r, o == 0), Ae(c / r) > Me - s && Ce("overflow"), s += Ae(c / r), c %= r, u.splice(c++, 0, s); + const n = u.length + 1; + r = en(s - c, n, c == 0), we(s / n) > qe - a && Fe("overflow"), a += we(s / n), s %= n, u.splice(s++, 0, a); } return String.fromCodePoint(...u); -}, zr = function(e) { +}, tn = function(e) { const u = []; - e = Jr(e); + e = $0(e); const t = e.length; - let c = Kr, s = 0, i = Ur; - for (const o of e) - o < 128 && u.push(Ou(o)); - const l = u.length; - let a = l; - for (l && u.push(Yr); a < t; ) { - let o = Me; - for (const n of e) - n >= c && n < o && (o = n); - const r = a + 1; - o - c > Ae((Me - s) / r) && Ce("overflow"), s += (o - c) * r, c = o; - for (const n of e) - if (n < c && ++s > Me && Ce("overflow"), n === c) { - let f = s; - for (let d = de; ; d += de) { - const A = d <= i ? Ft : d >= i + Je ? Je : d - i; - if (f < A) + let s = V0, a = 0, r = Z0; + for (const c of e) + c < 128 && u.push(Pu(c)); + const o = u.length; + let i = o; + for (o && u.push(z0); i < t; ) { + let c = qe; + for (const l of e) + l >= s && l < c && (c = l); + const n = i + 1; + c - s > we((qe - a) / n) && Fe("overflow"), a += (c - s) * n, s = c; + for (const l of e) + if (l < s && ++a > qe && Fe("overflow"), l === s) { + let f = a; + for (let A = ye; ; A += ye) { + const d = A <= r ? Nt : A >= r + Xe ? Xe : A - r; + if (f < d) break; - const h = f - A, w = de - A; + const h = f - d, y = ye - d; u.push( - Ou(n0(A + h % w, 0)) - ), f = Ae(h / w); + Pu(cr(d + h % y, 0)) + ), f = we(h / y); } - u.push(Ou(n0(f, 0))), i = Zr(s, r, a === l), s = 0, ++a; + u.push(Pu(cr(f, 0))), r = en(a, n, i === o), a = 0, ++i; } - ++s, ++c; + ++a, ++s; } return u.join(""); -}, ps = function(e) { - return jr(e, function(u) { - return os.test(u) ? Vr(u.slice(4).toLowerCase()) : u; +}, Cs = function(e) { + return X0(e, function(u) { + return bs.test(u) ? un(u.slice(4).toLowerCase()) : u; }); -}, gs = function(e) { - return jr(e, function(u) { - return ls.test(u) ? "xn--" + zr(u) : u; +}, vs = function(e) { + return X0(e, function(u) { + return ps.test(u) ? "xn--" + tn(u) : u; }); -}, Xr = { +}, rn = { /** * A string representing the current Punycode.js version number. * @memberOf punycode @@ -3072,14 +3181,14 @@ const hs = (e) => String.fromCodePoint(...e), bs = function(e) { * @type Object */ ucs2: { - decode: Jr, - encode: hs + decode: $0, + encode: ys }, - decode: Vr, - encode: zr, - toASCII: gs, - toUnicode: ps -}, ms = { + decode: un, + encode: tn, + toASCII: vs, + toUnicode: Cs +}, Ds = { options: { // Enable HTML tags in source html: !1, @@ -3115,7 +3224,7 @@ const hs = (e) => String.fromCodePoint(...e), bs = function(e) { block: {}, inline: {} } -}, xs = { +}, Es = { options: { // Enable HTML tags in source html: !1, @@ -3170,7 +3279,7 @@ const hs = (e) => String.fromCodePoint(...e), bs = function(e) { ] } } -}, ys = { +}, _s = { options: { // Enable HTML tags in source html: !0, @@ -3244,47 +3353,47 @@ const hs = (e) => String.fromCodePoint(...e), bs = function(e) { ] } } -}, ws = { - default: ms, - zero: xs, - commonmark: ys -}, Cs = /^(vbscript|javascript|file|data):/, vs = /^data:image\/(gif|png|jpeg|webp);/; -function Es(e) { +}, Is = { + default: Ds, + zero: Es, + commonmark: _s +}, ks = /^(vbscript|javascript|file|data):/, Bs = /^data:image\/(gif|png|jpeg|webp);/; +function Fs(e) { const u = e.trim().toLowerCase(); - return Cs.test(u) ? vs.test(u) : !0; + return ks.test(u) ? Bs.test(u) : !0; } -const $r = ["http:", "https:", "mailto:"]; -function Ds(e) { - const u = Et(e, !0); - if (u.hostname && (!u.protocol || $r.indexOf(u.protocol) >= 0)) +const nn = ["http:", "https:", "mailto:"]; +function Ss(e) { + const u = kt(e, !0); + if (u.hostname && (!u.protocol || nn.indexOf(u.protocol) >= 0)) try { - u.hostname = Xr.toASCII(u.hostname); + u.hostname = rn.toASCII(u.hostname); } catch { } - return Ze(vt(u)); + return $e(It(u)); } -function Is(e) { - const u = Et(e, !0); - if (u.hostname && (!u.protocol || $r.indexOf(u.protocol) >= 0)) +function Ts(e) { + const u = kt(e, !0); + if (u.hostname && (!u.protocol || nn.indexOf(u.protocol) >= 0)) try { - u.hostname = Xr.toUnicode(u.hostname); + u.hostname = rn.toUnicode(u.hostname); } catch { } - return Qe(vt(u), Qe.defaultChars + "%"); + return We(It(u), We.defaultChars + "%"); } -function re(e, u) { - if (!(this instanceof re)) - return new re(e, u); - u || It(e) || (u = e || {}, e = "default"), this.inline = new ze(), this.block = new mu(), this.core = new kt(), this.renderer = new Pe(), this.linkify = new te(), this.validateLink = Es, this.normalizeLink = Ds, this.normalizeLinkText = Is, this.utils = kn, this.helpers = pu({}, Rn), this.options = {}, this.configure(e), u && this.set(u); +function oe(e, u) { + if (!(this instanceof oe)) + return new oe(e, u); + u || Ft(e) || (u = e || {}, e = "default"), this.inline = new uu(), this.block = new vu(), this.core = new Tt(), this.renderer = new Ke(), this.linkify = new ie(), this.validateLink = Fs, this.normalizeLink = Ss, this.normalizeLinkText = Ts, this.utils = Ni, this.helpers = wu({}, Li), this.options = {}, this.configure(e), u && this.set(u); } -re.prototype.set = function(e) { - return pu(this.options, e), this; +oe.prototype.set = function(e) { + return wu(this.options, e), this; }; -re.prototype.configure = function(e) { +oe.prototype.configure = function(e) { const u = this; - if (It(e)) { + if (Ft(e)) { const t = e; - if (e = ws[t], !e) + if (e = Is[t], !e) throw new Error('Wrong `markdown-it` preset "' + t + '", check name'); } if (!e) @@ -3293,77 +3402,77 @@ re.prototype.configure = function(e) { e.components[t].rules && u[t].ruler.enableOnly(e.components[t].rules), e.components[t].rules2 && u[t].ruler2.enableOnly(e.components[t].rules2); }), this; }; -re.prototype.enable = function(e, u) { +oe.prototype.enable = function(e, u) { let t = []; - Array.isArray(e) || (e = [e]), ["core", "block", "inline"].forEach(function(s) { - t = t.concat(this[s].ruler.enable(e, !0)); + Array.isArray(e) || (e = [e]), ["core", "block", "inline"].forEach(function(a) { + t = t.concat(this[a].ruler.enable(e, !0)); }, this), t = t.concat(this.inline.ruler2.enable(e, !0)); - const c = e.filter(function(s) { - return t.indexOf(s) < 0; + const s = e.filter(function(a) { + return t.indexOf(a) < 0; }); - if (c.length && !u) - throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + c); + if (s.length && !u) + throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + s); return this; }; -re.prototype.disable = function(e, u) { +oe.prototype.disable = function(e, u) { let t = []; - Array.isArray(e) || (e = [e]), ["core", "block", "inline"].forEach(function(s) { - t = t.concat(this[s].ruler.disable(e, !0)); + Array.isArray(e) || (e = [e]), ["core", "block", "inline"].forEach(function(a) { + t = t.concat(this[a].ruler.disable(e, !0)); }, this), t = t.concat(this.inline.ruler2.disable(e, !0)); - const c = e.filter(function(s) { - return t.indexOf(s) < 0; + const s = e.filter(function(a) { + return t.indexOf(a) < 0; }); - if (c.length && !u) - throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + c); + if (s.length && !u) + throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + s); return this; }; -re.prototype.use = function(e) { +oe.prototype.use = function(e) { const u = [this].concat(Array.prototype.slice.call(arguments, 1)); return e.apply(e, u), this; }; -re.prototype.parse = function(e, u) { +oe.prototype.parse = function(e, u) { if (typeof e != "string") throw new Error("Input data should be a String"); const t = new this.core.State(e, this, u); return this.core.process(t), t.tokens; }; -re.prototype.render = function(e, u) { +oe.prototype.render = function(e, u) { return u = u || {}, this.renderer.render(this.parse(e, u), this.options, u); }; -re.prototype.parseInline = function(e, u) { +oe.prototype.parseInline = function(e, u) { const t = new this.core.State(e, this, u); return t.inlineMode = !0, this.core.process(t), t.tokens; }; -re.prototype.renderInline = function(e, u) { +oe.prototype.renderInline = function(e, u) { return u = u || {}, this.renderer.render(this.parseInline(e, u), this.options, u); }; -function _s(e) { +function Rs(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } -function ks(e) { +function Ns(e) { if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e; var u = e.default; if (typeof u == "function") { - var t = function c() { - return this instanceof c ? Reflect.construct(u, arguments, this.constructor) : u.apply(this, arguments); + var t = function s() { + return this instanceof s ? Reflect.construct(u, arguments, this.constructor) : u.apply(this, arguments); }; t.prototype = u.prototype; } else t = {}; - return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(c) { - var s = Object.getOwnPropertyDescriptor(e, c); - Object.defineProperty(t, c, s.get ? s : { + return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(s) { + var a = Object.getOwnPropertyDescriptor(e, s); + Object.defineProperty(t, s, a.get ? a : { enumerable: !0, get: function() { - return e[c]; + return e[s]; } }); }), t; } -var ne = {}, ae = {}, Oe = {}, Mu = {}, Qu = {}, a0; -function s0() { - return a0 || (a0 = 1, (function(e) { +var Ae = {}, he = {}, He = {}, Gu = {}, Hu = {}, or; +function lr() { + return or || (or = 1, (function(e) { var u; - Object.defineProperty(e, "__esModule", { value: !0 }), e.fromCodePoint = void 0, e.replaceCodePoint = c, e.decodeCodePoint = s; + Object.defineProperty(e, "__esModule", { value: !0 }), e.fromCodePoint = void 0, e.replaceCodePoint = s, e.decodeCodePoint = a; const t = /* @__PURE__ */ new Map([ [0, 65533], // C1 Unicode control character reference replacements @@ -3396,23 +3505,23 @@ function s0() { [159, 376] ]); e.fromCodePoint = // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, n/no-unsupported-features/es-builtins - (u = String.fromCodePoint) !== null && u !== void 0 ? u : ((i) => { - let l = ""; - return i > 65535 && (i -= 65536, l += String.fromCharCode(i >>> 10 & 1023 | 55296), i = 56320 | i & 1023), l += String.fromCharCode(i), l; + (u = String.fromCodePoint) !== null && u !== void 0 ? u : ((r) => { + let o = ""; + return r > 65535 && (r -= 65536, o += String.fromCharCode(r >>> 10 & 1023 | 55296), r = 56320 | r & 1023), o += String.fromCharCode(r), o; }); - function c(i) { - var l; - return i >= 55296 && i <= 57343 || i > 1114111 ? 65533 : (l = t.get(i)) !== null && l !== void 0 ? l : i; + function s(r) { + var o; + return r >= 55296 && r <= 57343 || r > 1114111 ? 65533 : (o = t.get(r)) !== null && o !== void 0 ? o : r; } - function s(i) { - return (0, e.fromCodePoint)(c(i)); + function a(r) { + return (0, e.fromCodePoint)(s(r)); } - })(Qu)), Qu; + })(Hu)), Hu; } -var He = {}, iu = {}, c0; -function ei() { - if (c0) return iu; - c0 = 1, Object.defineProperty(iu, "__esModule", { value: !0 }), iu.decodeBase64 = e; +var Ye = {}, su = {}, fr; +function an() { + if (fr) return su; + fr = 1, Object.defineProperty(su, "__esModule", { value: !0 }), su.decodeBase64 = e; function e(u) { const t = ( // eslint-disable-next-line n/no-unsupported-features/node-builtins @@ -3431,71 +3540,71 @@ function ei() { new Buffer(u, "base64").toString("binary") ) ) - ), c = t.length & -2, s = new Uint16Array(c / 2); - for (let i = 0, l = 0; i < c; i += 2) { - const a = t.charCodeAt(i), o = t.charCodeAt(i + 1); - s[l++] = a | o << 8; - } - return s; - } - return iu; -} -var o0; -function l0() { - if (o0) return He; - o0 = 1, Object.defineProperty(He, "__esModule", { value: !0 }), He.htmlDecodeTree = void 0; - const e = ei(); - return He.htmlDecodeTree = (0, e.decodeBase64)("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg"), He; -} -var We = {}, f0; -function d0() { - if (f0) return We; - f0 = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.xmlDecodeTree = void 0; - const e = ei(); - return We.xmlDecodeTree = (0, e.decodeBase64)("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg"), We; -} -var Ue = {}, A0; -function Bs() { - if (A0) return Ue; - A0 = 1, Object.defineProperty(Ue, "__esModule", { value: !0 }), Ue.BinTrieFlags = void 0; + ), s = t.length & -2, a = new Uint16Array(s / 2); + for (let r = 0, o = 0; r < s; r += 2) { + const i = t.charCodeAt(r), c = t.charCodeAt(r + 1); + a[o++] = i | c << 8; + } + return a; + } + return su; +} +var dr; +function Ar() { + if (dr) return Ye; + dr = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.htmlDecodeTree = void 0; + const e = an(); + return Ye.htmlDecodeTree = (0, e.decodeBase64)("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg"), Ye; +} +var je = {}, hr; +function br() { + if (hr) return je; + hr = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.xmlDecodeTree = void 0; + const e = an(); + return je.xmlDecodeTree = (0, e.decodeBase64)("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg"), je; +} +var Je = {}, pr; +function Ms() { + if (pr) return Je; + pr = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.BinTrieFlags = void 0; var e; return (function(u) { u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.FLAG13 = 8192] = "FLAG13", u[u.BRANCH_LENGTH = 8064] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE"; - })(e || (Ue.BinTrieFlags = e = {})), Ue; -} -var h0; -function ui() { - return h0 || (h0 = 1, (function(e) { - Object.defineProperty(e, "__esModule", { value: !0 }), e.xmlDecodeTree = e.htmlDecodeTree = e.replaceCodePoint = e.fromCodePoint = e.decodeCodePoint = e.EntityDecoder = e.DecodingMode = void 0, e.determineBranch = w, e.decodeHTML = m, e.decodeHTMLAttribute = g, e.decodeHTMLStrict = x, e.decodeXML = p; - const u = s0(), t = l0(), c = d0(), s = Bs(); - var i; - (function(D) { - D[D.NUM = 35] = "NUM", D[D.SEMI = 59] = "SEMI", D[D.EQUALS = 61] = "EQUALS", D[D.ZERO = 48] = "ZERO", D[D.NINE = 57] = "NINE", D[D.LOWER_A = 97] = "LOWER_A", D[D.LOWER_F = 102] = "LOWER_F", D[D.LOWER_X = 120] = "LOWER_X", D[D.LOWER_Z = 122] = "LOWER_Z", D[D.UPPER_A = 65] = "UPPER_A", D[D.UPPER_F = 70] = "UPPER_F", D[D.UPPER_Z = 90] = "UPPER_Z"; - })(i || (i = {})); - const l = 32; - function a(D) { - return D >= i.ZERO && D <= i.NINE; - } - function o(D) { - return D >= i.UPPER_A && D <= i.UPPER_F || D >= i.LOWER_A && D <= i.LOWER_F; - } - function r(D) { - return D >= i.UPPER_A && D <= i.UPPER_Z || D >= i.LOWER_A && D <= i.LOWER_Z || a(D); - } - function n(D) { - return D === i.EQUALS || r(D); + })(e || (Je.BinTrieFlags = e = {})), Je; +} +var gr; +function sn() { + return gr || (gr = 1, (function(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.xmlDecodeTree = e.htmlDecodeTree = e.replaceCodePoint = e.fromCodePoint = e.decodeCodePoint = e.EntityDecoder = e.DecodingMode = void 0, e.determineBranch = y, e.decodeHTML = b, e.decodeHTMLAttribute = x, e.decodeHTMLStrict = m, e.decodeXML = p; + const u = lr(), t = Ar(), s = br(), a = Ms(); + var r; + (function(E) { + E[E.NUM = 35] = "NUM", E[E.SEMI = 59] = "SEMI", E[E.EQUALS = 61] = "EQUALS", E[E.ZERO = 48] = "ZERO", E[E.NINE = 57] = "NINE", E[E.LOWER_A = 97] = "LOWER_A", E[E.LOWER_F = 102] = "LOWER_F", E[E.LOWER_X = 120] = "LOWER_X", E[E.LOWER_Z = 122] = "LOWER_Z", E[E.UPPER_A = 65] = "UPPER_A", E[E.UPPER_F = 70] = "UPPER_F", E[E.UPPER_Z = 90] = "UPPER_Z"; + })(r || (r = {})); + const o = 32; + function i(E) { + return E >= r.ZERO && E <= r.NINE; + } + function c(E) { + return E >= r.UPPER_A && E <= r.UPPER_F || E >= r.LOWER_A && E <= r.LOWER_F; + } + function n(E) { + return E >= r.UPPER_A && E <= r.UPPER_Z || E >= r.LOWER_A && E <= r.LOWER_Z || i(E); + } + function l(E) { + return E === r.EQUALS || n(E); } var f; - (function(D) { - D[D.EntityStart = 0] = "EntityStart", D[D.NumericStart = 1] = "NumericStart", D[D.NumericDecimal = 2] = "NumericDecimal", D[D.NumericHex = 3] = "NumericHex", D[D.NamedEntity = 4] = "NamedEntity"; + (function(E) { + E[E.EntityStart = 0] = "EntityStart", E[E.NumericStart = 1] = "NumericStart", E[E.NumericDecimal = 2] = "NumericDecimal", E[E.NumericHex = 3] = "NumericHex", E[E.NamedEntity = 4] = "NamedEntity"; })(f || (f = {})); - var d; - (function(D) { - D[D.Legacy = 0] = "Legacy", D[D.Strict = 1] = "Strict", D[D.Attribute = 2] = "Attribute"; - })(d || (e.DecodingMode = d = {})); - class A { - constructor(_, E, k) { - this.decodeTree = _, this.emitCodePoint = E, this.errors = k, this.state = f.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = d.Strict, this.runConsumed = 0; + var A; + (function(E) { + E[E.Legacy = 0] = "Legacy", E[E.Strict = 1] = "Strict", E[E.Attribute = 2] = "Attribute"; + })(A || (e.DecodingMode = A = {})); + class d { + constructor(_, v, k) { + this.decodeTree = _, this.emitCodePoint = v, this.errors = k, this.state = f.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = A.Strict, this.runConsumed = 0; } /** Resets the instance to make it reusable. */ startEntity(_) { @@ -3512,18 +3621,18 @@ function ui() { * @param offset The offset at which the entity begins. Should be 0 if this is not the first call. * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ - write(_, E) { + write(_, v) { switch (this.state) { case f.EntityStart: - return _.charCodeAt(E) === i.NUM ? (this.state = f.NumericStart, this.consumed += 1, this.stateNumericStart(_, E + 1)) : (this.state = f.NamedEntity, this.stateNamedEntity(_, E)); + return _.charCodeAt(v) === r.NUM ? (this.state = f.NumericStart, this.consumed += 1, this.stateNumericStart(_, v + 1)) : (this.state = f.NamedEntity, this.stateNamedEntity(_, v)); case f.NumericStart: - return this.stateNumericStart(_, E); + return this.stateNumericStart(_, v); case f.NumericDecimal: - return this.stateNumericDecimal(_, E); + return this.stateNumericDecimal(_, v); case f.NumericHex: - return this.stateNumericHex(_, E); + return this.stateNumericHex(_, v); case f.NamedEntity: - return this.stateNamedEntity(_, E); + return this.stateNamedEntity(_, v); } } /** @@ -3535,8 +3644,8 @@ function ui() { * @param offset The current offset. * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ - stateNumericStart(_, E) { - return E >= _.length ? -1 : (_.charCodeAt(E) | l) === i.LOWER_X ? (this.state = f.NumericHex, this.consumed += 1, this.stateNumericHex(_, E + 1)) : (this.state = f.NumericDecimal, this.stateNumericDecimal(_, E)); + stateNumericStart(_, v) { + return v >= _.length ? -1 : (_.charCodeAt(v) | o) === r.LOWER_X ? (this.state = f.NumericHex, this.consumed += 1, this.stateNumericHex(_, v + 1)) : (this.state = f.NumericDecimal, this.stateNumericDecimal(_, v)); } /** * Parses a hexadecimal numeric entity. @@ -3547,12 +3656,12 @@ function ui() { * @param offset The current offset. * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ - stateNumericHex(_, E) { - for (; E < _.length; ) { - const k = _.charCodeAt(E); - if (a(k) || o(k)) { - const F = k <= i.NINE ? k - i.ZERO : (k | l) - i.LOWER_A + 10; - this.result = this.result * 16 + F, this.consumed++, E++; + stateNumericHex(_, v) { + for (; v < _.length; ) { + const k = _.charCodeAt(v); + if (i(k) || c(k)) { + const S = k <= r.NINE ? k - r.ZERO : (k | o) - r.LOWER_A + 10; + this.result = this.result * 16 + S, this.consumed++, v++; } else return this.emitNumericEntity(k, 3); } @@ -3567,11 +3676,11 @@ function ui() { * @param offset The current offset. * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ - stateNumericDecimal(_, E) { - for (; E < _.length; ) { - const k = _.charCodeAt(E); - if (a(k)) - this.result = this.result * 10 + (k - i.ZERO), this.consumed++, E++; + stateNumericDecimal(_, v) { + for (; v < _.length; ) { + const k = _.charCodeAt(v); + if (i(k)) + this.result = this.result * 10 + (k - r.ZERO), this.consumed++, v++; else return this.emitNumericEntity(k, 2); } @@ -3590,15 +3699,15 @@ function ui() { * was consumed. * @returns The number of characters that were consumed. */ - emitNumericEntity(_, E) { + emitNumericEntity(_, v) { var k; - if (this.consumed <= E) + if (this.consumed <= v) return (k = this.errors) === null || k === void 0 || k.absenceOfDigitsInNumericCharacterReference(this.consumed), 0; - if (_ === i.SEMI) + if (_ === r.SEMI) this.consumed += 1; - else if (this.decodeMode === d.Strict) + else if (this.decodeMode === A.Strict) return 0; - return this.emitCodePoint((0, u.replaceCodePoint)(this.result), this.consumed), this.errors && (_ !== i.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed; + return this.emitCodePoint((0, u.replaceCodePoint)(this.result), this.consumed), this.errors && (_ !== r.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed; } /** * Parses a named entity. @@ -3609,44 +3718,44 @@ function ui() { * @param offset The current offset. * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ - stateNamedEntity(_, E) { + stateNamedEntity(_, v) { const { decodeTree: k } = this; - let F = k[this.treeIndex], T = (F & s.BinTrieFlags.VALUE_LENGTH) >> 14; - for (; E < _.length; ) { - if (T === 0 && (F & s.BinTrieFlags.FLAG13) !== 0) { - const O = (F & s.BinTrieFlags.BRANCH_LENGTH) >> 7; + let S = k[this.treeIndex], F = (S & a.BinTrieFlags.VALUE_LENGTH) >> 14; + for (; v < _.length; ) { + if (F === 0 && (S & a.BinTrieFlags.FLAG13) !== 0) { + const T = (S & a.BinTrieFlags.BRANCH_LENGTH) >> 7; if (this.runConsumed === 0) { - const Q = F & s.BinTrieFlags.JUMP_TABLE; - if (_.charCodeAt(E) !== Q) + const M = S & a.BinTrieFlags.JUMP_TABLE; + if (_.charCodeAt(v) !== M) return this.result === 0 ? 0 : this.emitNotTerminatedNamedEntity(); - E++, this.excess++, this.runConsumed++; + v++, this.excess++, this.runConsumed++; } - for (; this.runConsumed < O; ) { - if (E >= _.length) + for (; this.runConsumed < T; ) { + if (v >= _.length) return -1; - const Q = this.runConsumed - 1, L = k[this.treeIndex + 1 + (Q >> 1)], K = Q % 2 === 0 ? L & 255 : L >> 8 & 255; - if (_.charCodeAt(E) !== K) + const M = this.runConsumed - 1, N = k[this.treeIndex + 1 + (M >> 1)], P = M % 2 === 0 ? N & 255 : N >> 8 & 255; + if (_.charCodeAt(v) !== P) return this.runConsumed = 0, this.result === 0 ? 0 : this.emitNotTerminatedNamedEntity(); - E++, this.excess++, this.runConsumed++; + v++, this.excess++, this.runConsumed++; } - this.runConsumed = 0, this.treeIndex += 1 + (O >> 1), F = k[this.treeIndex], T = (F & s.BinTrieFlags.VALUE_LENGTH) >> 14; + this.runConsumed = 0, this.treeIndex += 1 + (T >> 1), S = k[this.treeIndex], F = (S & a.BinTrieFlags.VALUE_LENGTH) >> 14; } - if (E >= _.length) + if (v >= _.length) break; - const B = _.charCodeAt(E); - if (B === i.SEMI && T !== 0 && (F & s.BinTrieFlags.FLAG13) !== 0) - return this.emitNamedEntityData(this.treeIndex, T, this.consumed + this.excess); - if (this.treeIndex = w(k, F, this.treeIndex + Math.max(1, T), B), this.treeIndex < 0) + const I = _.charCodeAt(v); + if (I === r.SEMI && F !== 0 && (S & a.BinTrieFlags.FLAG13) !== 0) + return this.emitNamedEntityData(this.treeIndex, F, this.consumed + this.excess); + if (this.treeIndex = y(k, S, this.treeIndex + Math.max(1, F), I), this.treeIndex < 0) return this.result === 0 || // If we are parsing an attribute - this.decodeMode === d.Attribute && // We shouldn't have consumed any characters after the entity, - (T === 0 || // And there should be no invalid characters. - n(B)) ? 0 : this.emitNotTerminatedNamedEntity(); - if (F = k[this.treeIndex], T = (F & s.BinTrieFlags.VALUE_LENGTH) >> 14, T !== 0) { - if (B === i.SEMI) - return this.emitNamedEntityData(this.treeIndex, T, this.consumed + this.excess); - this.decodeMode !== d.Strict && (F & s.BinTrieFlags.FLAG13) === 0 && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0); + this.decodeMode === A.Attribute && // We shouldn't have consumed any characters after the entity, + (F === 0 || // And there should be no invalid characters. + l(I)) ? 0 : this.emitNotTerminatedNamedEntity(); + if (S = k[this.treeIndex], F = (S & a.BinTrieFlags.VALUE_LENGTH) >> 14, F !== 0) { + if (I === r.SEMI) + return this.emitNamedEntityData(this.treeIndex, F, this.consumed + this.excess); + this.decodeMode !== A.Strict && (S & a.BinTrieFlags.FLAG13) === 0 && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0); } - E++, this.excess++; + v++, this.excess++; } return -1; } @@ -3657,8 +3766,8 @@ function ui() { */ emitNotTerminatedNamedEntity() { var _; - const { result: E, decodeTree: k } = this, F = (k[E] & s.BinTrieFlags.VALUE_LENGTH) >> 14; - return this.emitNamedEntityData(E, F, this.consumed), (_ = this.errors) === null || _ === void 0 || _.missingSemicolonAfterCharacterReference(), this.consumed; + const { result: v, decodeTree: k } = this, S = (k[v] & a.BinTrieFlags.VALUE_LENGTH) >> 14; + return this.emitNamedEntityData(v, S, this.consumed), (_ = this.errors) === null || _ === void 0 || _.missingSemicolonAfterCharacterReference(), this.consumed; } /** * Emit a named entity. @@ -3669,9 +3778,9 @@ function ui() { * * @returns The number of characters consumed. */ - emitNamedEntityData(_, E, k) { - const { decodeTree: F } = this; - return this.emitCodePoint(E === 1 ? F[_] & ~(s.BinTrieFlags.VALUE_LENGTH | s.BinTrieFlags.FLAG13) : F[_ + 1], k), E === 3 && this.emitCodePoint(F[_ + 2], k), k; + emitNamedEntityData(_, v, k) { + const { decodeTree: S } = this; + return this.emitCodePoint(v === 1 ? S[_] & ~(a.BinTrieFlags.VALUE_LENGTH | a.BinTrieFlags.FLAG13) : S[_ + 1], k), v === 3 && this.emitCodePoint(S[_ + 2], k), k; } /** * Signal to the parser that the end of the input was reached. @@ -3684,7 +3793,7 @@ function ui() { var _; switch (this.state) { case f.NamedEntity: - return this.result !== 0 && (this.decodeMode !== d.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0; + return this.result !== 0 && (this.decodeMode !== A.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0; // Otherwise, emit a numeric entity if we have one. case f.NumericDecimal: return this.emitNumericEntity(0, 2); @@ -3697,108 +3806,108 @@ function ui() { } } } - e.EntityDecoder = A; - function h(D) { + e.EntityDecoder = d; + function h(E) { let _ = ""; - const E = new A(D, (k) => _ += (0, u.fromCodePoint)(k)); - return function(F, T) { - let B = 0, O = 0; - for (; (O = F.indexOf("&", O)) >= 0; ) { - _ += F.slice(B, O), E.startEntity(T); - const L = E.write( - F, + const v = new d(E, (k) => _ += (0, u.fromCodePoint)(k)); + return function(S, F) { + let I = 0, T = 0; + for (; (T = S.indexOf("&", T)) >= 0; ) { + _ += S.slice(I, T), v.startEntity(F); + const N = v.write( + S, // Skip the "&" - O + 1 + T + 1 ); - if (L < 0) { - B = O + E.end(); + if (N < 0) { + I = T + v.end(); break; } - B = O + L, O = L === 0 ? B + 1 : B; + I = T + N, T = N === 0 ? I + 1 : I; } - const Q = _ + F.slice(B); - return _ = "", Q; + const M = _ + S.slice(I); + return _ = "", M; }; } - function w(D, _, E, k) { - const F = (_ & s.BinTrieFlags.BRANCH_LENGTH) >> 7, T = _ & s.BinTrieFlags.JUMP_TABLE; - if (F === 0) - return T !== 0 && k === T ? E : -1; - if (T) { - const L = k - T; - return L < 0 || L >= F ? -1 : D[E + L] - 1; - } - const B = F + 1 >> 1; - let O = 0, Q = F - 1; - for (; O <= Q; ) { - const L = O + Q >>> 1, K = L >> 1, ee = D[E + K] >> (L & 1) * 8 & 255; - if (ee < k) - O = L + 1; - else if (ee > k) - Q = L - 1; + function y(E, _, v, k) { + const S = (_ & a.BinTrieFlags.BRANCH_LENGTH) >> 7, F = _ & a.BinTrieFlags.JUMP_TABLE; + if (S === 0) + return F !== 0 && k === F ? v : -1; + if (F) { + const N = k - F; + return N < 0 || N >= S ? -1 : E[v + N] - 1; + } + const I = S + 1 >> 1; + let T = 0, M = S - 1; + for (; T <= M; ) { + const N = T + M >>> 1, P = N >> 1, H = E[v + P] >> (N & 1) * 8 & 255; + if (H < k) + T = N + 1; + else if (H > k) + M = N - 1; else - return D[E + B + L]; + return E[v + I + N]; } return -1; } - const C = /* @__PURE__ */ h(t.htmlDecodeTree), b = /* @__PURE__ */ h(c.xmlDecodeTree); - function m(D, _ = d.Legacy) { - return C(D, _); + const C = /* @__PURE__ */ h(t.htmlDecodeTree), w = /* @__PURE__ */ h(s.xmlDecodeTree); + function b(E, _ = A.Legacy) { + return C(E, _); } - function g(D) { - return C(D, d.Attribute); + function x(E) { + return C(E, A.Attribute); } - function x(D) { - return C(D, d.Strict); + function m(E) { + return C(E, A.Strict); } - function p(D) { - return b(D, d.Strict); + function p(E) { + return w(E, A.Strict); } - var y = s0(); + var g = lr(); Object.defineProperty(e, "decodeCodePoint", { enumerable: !0, get: function() { - return y.decodeCodePoint; + return g.decodeCodePoint; } }), Object.defineProperty(e, "fromCodePoint", { enumerable: !0, get: function() { - return y.fromCodePoint; + return g.fromCodePoint; } }), Object.defineProperty(e, "replaceCodePoint", { enumerable: !0, get: function() { - return y.replaceCodePoint; + return g.replaceCodePoint; } }); - var v = l0(); + var D = Ar(); Object.defineProperty(e, "htmlDecodeTree", { enumerable: !0, get: function() { - return v.htmlDecodeTree; + return D.htmlDecodeTree; } }); - var I = d0(); + var B = br(); Object.defineProperty(e, "xmlDecodeTree", { enumerable: !0, get: function() { - return I.xmlDecodeTree; + return B.xmlDecodeTree; } }); - })(Mu)), Mu; + })(Gu)), Gu; } -var b0; -function ti() { - if (b0) return Oe; - b0 = 1, Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.QuoteType = void 0; - const e = /* @__PURE__ */ ui(); +var mr; +function cn() { + if (mr) return He; + mr = 1, Object.defineProperty(He, "__esModule", { value: !0 }), He.QuoteType = void 0; + const e = /* @__PURE__ */ sn(); var u; - (function(r) { - r[r.Tab = 9] = "Tab", r[r.NewLine = 10] = "NewLine", r[r.FormFeed = 12] = "FormFeed", r[r.CarriageReturn = 13] = "CarriageReturn", r[r.Space = 32] = "Space", r[r.ExclamationMark = 33] = "ExclamationMark", r[r.Number = 35] = "Number", r[r.Amp = 38] = "Amp", r[r.SingleQuote = 39] = "SingleQuote", r[r.DoubleQuote = 34] = "DoubleQuote", r[r.Dash = 45] = "Dash", r[r.Slash = 47] = "Slash", r[r.Zero = 48] = "Zero", r[r.Nine = 57] = "Nine", r[r.Semi = 59] = "Semi", r[r.Lt = 60] = "Lt", r[r.Eq = 61] = "Eq", r[r.Gt = 62] = "Gt", r[r.Questionmark = 63] = "Questionmark", r[r.UpperA = 65] = "UpperA", r[r.LowerA = 97] = "LowerA", r[r.UpperF = 70] = "UpperF", r[r.LowerF = 102] = "LowerF", r[r.UpperZ = 90] = "UpperZ", r[r.LowerZ = 122] = "LowerZ", r[r.LowerX = 120] = "LowerX", r[r.OpeningSquareBracket = 91] = "OpeningSquareBracket"; + (function(n) { + n[n.Tab = 9] = "Tab", n[n.NewLine = 10] = "NewLine", n[n.FormFeed = 12] = "FormFeed", n[n.CarriageReturn = 13] = "CarriageReturn", n[n.Space = 32] = "Space", n[n.ExclamationMark = 33] = "ExclamationMark", n[n.Number = 35] = "Number", n[n.Amp = 38] = "Amp", n[n.SingleQuote = 39] = "SingleQuote", n[n.DoubleQuote = 34] = "DoubleQuote", n[n.Dash = 45] = "Dash", n[n.Slash = 47] = "Slash", n[n.Zero = 48] = "Zero", n[n.Nine = 57] = "Nine", n[n.Semi = 59] = "Semi", n[n.Lt = 60] = "Lt", n[n.Eq = 61] = "Eq", n[n.Gt = 62] = "Gt", n[n.Questionmark = 63] = "Questionmark", n[n.UpperA = 65] = "UpperA", n[n.LowerA = 97] = "LowerA", n[n.UpperF = 70] = "UpperF", n[n.LowerF = 102] = "LowerF", n[n.UpperZ = 90] = "UpperZ", n[n.LowerZ = 122] = "LowerZ", n[n.LowerX = 120] = "LowerX", n[n.OpeningSquareBracket = 91] = "OpeningSquareBracket"; })(u || (u = {})); var t; - (function(r) { - r[r.Text = 1] = "Text", r[r.BeforeTagName = 2] = "BeforeTagName", r[r.InTagName = 3] = "InTagName", r[r.InSelfClosingTag = 4] = "InSelfClosingTag", r[r.BeforeClosingTagName = 5] = "BeforeClosingTagName", r[r.InClosingTagName = 6] = "InClosingTagName", r[r.AfterClosingTagName = 7] = "AfterClosingTagName", r[r.BeforeAttributeName = 8] = "BeforeAttributeName", r[r.InAttributeName = 9] = "InAttributeName", r[r.AfterAttributeName = 10] = "AfterAttributeName", r[r.BeforeAttributeValue = 11] = "BeforeAttributeValue", r[r.InAttributeValueDq = 12] = "InAttributeValueDq", r[r.InAttributeValueSq = 13] = "InAttributeValueSq", r[r.InAttributeValueNq = 14] = "InAttributeValueNq", r[r.BeforeDeclaration = 15] = "BeforeDeclaration", r[r.InDeclaration = 16] = "InDeclaration", r[r.InProcessingInstruction = 17] = "InProcessingInstruction", r[r.BeforeComment = 18] = "BeforeComment", r[r.CDATASequence = 19] = "CDATASequence", r[r.InSpecialComment = 20] = "InSpecialComment", r[r.InCommentLike = 21] = "InCommentLike", r[r.BeforeSpecialS = 22] = "BeforeSpecialS", r[r.BeforeSpecialT = 23] = "BeforeSpecialT", r[r.SpecialStartSequence = 24] = "SpecialStartSequence", r[r.InSpecialTag = 25] = "InSpecialTag", r[r.InEntity = 26] = "InEntity"; + (function(n) { + n[n.Text = 1] = "Text", n[n.BeforeTagName = 2] = "BeforeTagName", n[n.InTagName = 3] = "InTagName", n[n.InSelfClosingTag = 4] = "InSelfClosingTag", n[n.BeforeClosingTagName = 5] = "BeforeClosingTagName", n[n.InClosingTagName = 6] = "InClosingTagName", n[n.AfterClosingTagName = 7] = "AfterClosingTagName", n[n.BeforeAttributeName = 8] = "BeforeAttributeName", n[n.InAttributeName = 9] = "InAttributeName", n[n.AfterAttributeName = 10] = "AfterAttributeName", n[n.BeforeAttributeValue = 11] = "BeforeAttributeValue", n[n.InAttributeValueDq = 12] = "InAttributeValueDq", n[n.InAttributeValueSq = 13] = "InAttributeValueSq", n[n.InAttributeValueNq = 14] = "InAttributeValueNq", n[n.BeforeDeclaration = 15] = "BeforeDeclaration", n[n.InDeclaration = 16] = "InDeclaration", n[n.InProcessingInstruction = 17] = "InProcessingInstruction", n[n.BeforeComment = 18] = "BeforeComment", n[n.CDATASequence = 19] = "CDATASequence", n[n.InSpecialComment = 20] = "InSpecialComment", n[n.InCommentLike = 21] = "InCommentLike", n[n.BeforeSpecialS = 22] = "BeforeSpecialS", n[n.BeforeSpecialT = 23] = "BeforeSpecialT", n[n.SpecialStartSequence = 24] = "SpecialStartSequence", n[n.InSpecialTag = 25] = "InSpecialTag", n[n.InEntity = 26] = "InEntity"; })(t || (t = {})); - function c(r) { - return r === u.Space || r === u.NewLine || r === u.Tab || r === u.FormFeed || r === u.CarriageReturn; + function s(n) { + return n === u.Space || n === u.NewLine || n === u.Tab || n === u.FormFeed || n === u.CarriageReturn; } - function s(r) { - return r === u.Slash || r === u.Gt || c(r); + function a(n) { + return n === u.Slash || n === u.Gt || s(n); } - function i(r) { - return r >= u.LowerA && r <= u.LowerZ || r >= u.UpperA && r <= u.UpperZ; + function r(n) { + return n >= u.LowerA && n <= u.LowerZ || n >= u.UpperA && n <= u.UpperZ; } - var l; - (function(r) { - r[r.NoValue = 0] = "NoValue", r[r.Unquoted = 1] = "Unquoted", r[r.Single = 2] = "Single", r[r.Double = 3] = "Double"; - })(l || (Oe.QuoteType = l = {})); - const a = { + var o; + (function(n) { + n[n.NoValue = 0] = "NoValue", n[n.Unquoted = 1] = "Unquoted", n[n.Single = 2] = "Single", n[n.Double = 3] = "Double"; + })(o || (He.QuoteType = o = {})); + const i = { Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]), // CDATA[ CdataEnd: new Uint8Array([93, 93, 62]), @@ -3827,15 +3936,15 @@ function ti() { XmpEnd: new Uint8Array([60, 47, 120, 109, 112]) // ` this.emitCodePoint(A, h)); + let c = class { + constructor({ xmlMode: l = !1, decodeEntities: f = !0 }, A) { + this.cbs = A, this.state = t.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.entityStart = 0, this.baseState = t.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.xmlMode = l, this.decodeEntities = f, this.entityDecoder = new e.EntityDecoder(l ? e.xmlDecodeTree : e.htmlDecodeTree, (d, h) => this.emitCodePoint(d, h)); } reset() { this.state = t.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = t.Text, this.currentSequence = void 0, this.running = !0, this.offset = 0; } - write(n) { - this.offset += this.buffer.length, this.buffer = n, this.parse(); + write(l) { + this.offset += this.buffer.length, this.buffer = l, this.parse(); } end() { this.running && this.finish(); @@ -3846,43 +3955,43 @@ function ti() { resume() { this.running = !0, this.index < this.buffer.length + this.offset && this.parse(); } - stateText(n) { - n === u.Lt || !this.decodeEntities && this.fastForwardTo(u.Lt) ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state = t.BeforeTagName, this.sectionStart = this.index) : this.decodeEntities && n === u.Amp && this.startEntity(); + stateText(l) { + l === u.Lt || !this.decodeEntities && this.fastForwardTo(u.Lt) ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state = t.BeforeTagName, this.sectionStart = this.index) : this.decodeEntities && l === u.Amp && this.startEntity(); } - stateSpecialStartSequence(n) { + stateSpecialStartSequence(l) { const f = this.sequenceIndex === this.currentSequence.length; if (!(f ? ( // If we are at the end of the sequence, make sure the tag name has ended - s(n) + a(l) ) : ( // Otherwise, do a case-insensitive comparison - (n | 32) === this.currentSequence[this.sequenceIndex] + (l | 32) === this.currentSequence[this.sequenceIndex] ))) this.isSpecial = !1; else if (!f) { this.sequenceIndex++; return; } - this.sequenceIndex = 0, this.state = t.InTagName, this.stateInTagName(n); + this.sequenceIndex = 0, this.state = t.InTagName, this.stateInTagName(l); } /** Look for an end tag. For tags, also decode entities. */ - stateInSpecialTag(n) { + stateInSpecialTag(l) { if (this.sequenceIndex === this.currentSequence.length) { - if (n === u.Gt || c(n)) { + if (l === u.Gt || s(l)) { const f = this.index - this.currentSequence.length; if (this.sectionStart < f) { - const d = this.index; - this.index = f, this.cbs.ontext(this.sectionStart, f), this.index = d; + const A = this.index; + this.index = f, this.cbs.ontext(this.sectionStart, f), this.index = A; } - this.isSpecial = !1, this.sectionStart = f + 2, this.stateInClosingTagName(n); + this.isSpecial = !1, this.sectionStart = f + 2, this.stateInClosingTagName(l); return; } this.sequenceIndex = 0; } - (n | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === a.TitleEnd ? this.decodeEntities && n === u.Amp && this.startEntity() : this.fastForwardTo(u.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = +(n === u.Lt); + (l | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === i.TitleEnd ? this.decodeEntities && l === u.Amp && this.startEntity() : this.fastForwardTo(u.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = +(l === u.Lt); } - stateCDATASequence(n) { - n === a.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === a.Cdata.length && (this.state = t.InCommentLike, this.currentSequence = a.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = t.InDeclaration, this.stateInDeclaration(n)); + stateCDATASequence(l) { + l === i.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === i.Cdata.length && (this.state = t.InCommentLike, this.currentSequence = i.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = t.InDeclaration, this.stateInDeclaration(l)); } /** * When we wait for one specific character, we can speed things up @@ -3890,9 +3999,9 @@ function ti() { * * @returns Whether the character was found. */ - fastForwardTo(n) { + fastForwardTo(l) { for (; ++this.index < this.buffer.length + this.offset; ) - if (this.buffer.charCodeAt(this.index - this.offset) === n) + if (this.buffer.charCodeAt(this.index - this.offset) === l) return !0; return this.index = this.buffer.length + this.offset - 1, !1; } @@ -3904,8 +4013,8 @@ function ti() { * - That character is then repeated, so we have to check multiple repeats. * - All characters but the start character of the sequence can be skipped. */ - stateInCommentLike(n) { - n === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence === a.CdataEnd ? this.cbs.oncdata(this.sectionStart, this.index, 2) : this.cbs.oncomment(this.sectionStart, this.index, 2), this.sequenceIndex = 0, this.sectionStart = this.index + 1, this.state = t.Text) : this.sequenceIndex === 0 ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : n !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0); + stateInCommentLike(l) { + l === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence === i.CdataEnd ? this.cbs.oncdata(this.sectionStart, this.index, 2) : this.cbs.oncomment(this.sectionStart, this.index, 2), this.sequenceIndex = 0, this.sectionStart = this.index + 1, this.state = t.Text) : this.sequenceIndex === 0 ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : l !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0); } /** * HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name. @@ -3913,107 +4022,107 @@ function ti() { * XML allows a lot more characters here (@see https://www.w3.org/TR/REC-xml/#NT-NameStartChar). * We allow anything that wouldn't end the tag. */ - isTagStartChar(n) { - return this.xmlMode ? !s(n) : i(n); + isTagStartChar(l) { + return this.xmlMode ? !a(l) : r(l); } - startSpecial(n, f) { - this.isSpecial = !0, this.currentSequence = n, this.sequenceIndex = f, this.state = t.SpecialStartSequence; + startSpecial(l, f) { + this.isSpecial = !0, this.currentSequence = l, this.sequenceIndex = f, this.state = t.SpecialStartSequence; } - stateBeforeTagName(n) { - if (n === u.ExclamationMark) + stateBeforeTagName(l) { + if (l === u.ExclamationMark) this.state = t.BeforeDeclaration, this.sectionStart = this.index + 1; - else if (n === u.Questionmark) + else if (l === u.Questionmark) this.state = t.InProcessingInstruction, this.sectionStart = this.index + 1; - else if (this.isTagStartChar(n)) { - const f = n | 32; - this.sectionStart = this.index, this.xmlMode ? this.state = t.InTagName : f === a.ScriptEnd[2] ? this.state = t.BeforeSpecialS : f === a.TitleEnd[2] || f === a.XmpEnd[2] ? this.state = t.BeforeSpecialT : this.state = t.InTagName; - } else n === u.Slash ? this.state = t.BeforeClosingTagName : (this.state = t.Text, this.stateText(n)); + else if (this.isTagStartChar(l)) { + const f = l | 32; + this.sectionStart = this.index, this.xmlMode ? this.state = t.InTagName : f === i.ScriptEnd[2] ? this.state = t.BeforeSpecialS : f === i.TitleEnd[2] || f === i.XmpEnd[2] ? this.state = t.BeforeSpecialT : this.state = t.InTagName; + } else l === u.Slash ? this.state = t.BeforeClosingTagName : (this.state = t.Text, this.stateText(l)); } - stateInTagName(n) { - s(n) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = t.BeforeAttributeName, this.stateBeforeAttributeName(n)); + stateInTagName(l) { + a(l) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = t.BeforeAttributeName, this.stateBeforeAttributeName(l)); } - stateBeforeClosingTagName(n) { - c(n) || (n === u.Gt ? this.state = t.Text : (this.state = this.isTagStartChar(n) ? t.InClosingTagName : t.InSpecialComment, this.sectionStart = this.index)); + stateBeforeClosingTagName(l) { + s(l) || (l === u.Gt ? this.state = t.Text : (this.state = this.isTagStartChar(l) ? t.InClosingTagName : t.InSpecialComment, this.sectionStart = this.index)); } - stateInClosingTagName(n) { - (n === u.Gt || c(n)) && (this.cbs.onclosetag(this.sectionStart, this.index), this.sectionStart = -1, this.state = t.AfterClosingTagName, this.stateAfterClosingTagName(n)); + stateInClosingTagName(l) { + (l === u.Gt || s(l)) && (this.cbs.onclosetag(this.sectionStart, this.index), this.sectionStart = -1, this.state = t.AfterClosingTagName, this.stateAfterClosingTagName(l)); } - stateAfterClosingTagName(n) { - (n === u.Gt || this.fastForwardTo(u.Gt)) && (this.state = t.Text, this.sectionStart = this.index + 1); + stateAfterClosingTagName(l) { + (l === u.Gt || this.fastForwardTo(u.Gt)) && (this.state = t.Text, this.sectionStart = this.index + 1); } - stateBeforeAttributeName(n) { - n === u.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state = t.InSpecialTag, this.sequenceIndex = 0) : this.state = t.Text, this.sectionStart = this.index + 1) : n === u.Slash ? this.state = t.InSelfClosingTag : c(n) || (this.state = t.InAttributeName, this.sectionStart = this.index); + stateBeforeAttributeName(l) { + l === u.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state = t.InSpecialTag, this.sequenceIndex = 0) : this.state = t.Text, this.sectionStart = this.index + 1) : l === u.Slash ? this.state = t.InSelfClosingTag : s(l) || (this.state = t.InAttributeName, this.sectionStart = this.index); } - stateInSelfClosingTag(n) { - n === u.Gt ? (this.cbs.onselfclosingtag(this.index), this.state = t.Text, this.sectionStart = this.index + 1, this.isSpecial = !1) : c(n) || (this.state = t.BeforeAttributeName, this.stateBeforeAttributeName(n)); + stateInSelfClosingTag(l) { + l === u.Gt ? (this.cbs.onselfclosingtag(this.index), this.state = t.Text, this.sectionStart = this.index + 1, this.isSpecial = !1) : s(l) || (this.state = t.BeforeAttributeName, this.stateBeforeAttributeName(l)); } - stateInAttributeName(n) { - (n === u.Eq || s(n)) && (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = this.index, this.state = t.AfterAttributeName, this.stateAfterAttributeName(n)); + stateInAttributeName(l) { + (l === u.Eq || a(l)) && (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = this.index, this.state = t.AfterAttributeName, this.stateAfterAttributeName(l)); } - stateAfterAttributeName(n) { - n === u.Eq ? this.state = t.BeforeAttributeValue : n === u.Slash || n === u.Gt ? (this.cbs.onattribend(l.NoValue, this.sectionStart), this.sectionStart = -1, this.state = t.BeforeAttributeName, this.stateBeforeAttributeName(n)) : c(n) || (this.cbs.onattribend(l.NoValue, this.sectionStart), this.state = t.InAttributeName, this.sectionStart = this.index); + stateAfterAttributeName(l) { + l === u.Eq ? this.state = t.BeforeAttributeValue : l === u.Slash || l === u.Gt ? (this.cbs.onattribend(o.NoValue, this.sectionStart), this.sectionStart = -1, this.state = t.BeforeAttributeName, this.stateBeforeAttributeName(l)) : s(l) || (this.cbs.onattribend(o.NoValue, this.sectionStart), this.state = t.InAttributeName, this.sectionStart = this.index); } - stateBeforeAttributeValue(n) { - n === u.DoubleQuote ? (this.state = t.InAttributeValueDq, this.sectionStart = this.index + 1) : n === u.SingleQuote ? (this.state = t.InAttributeValueSq, this.sectionStart = this.index + 1) : c(n) || (this.sectionStart = this.index, this.state = t.InAttributeValueNq, this.stateInAttributeValueNoQuotes(n)); + stateBeforeAttributeValue(l) { + l === u.DoubleQuote ? (this.state = t.InAttributeValueDq, this.sectionStart = this.index + 1) : l === u.SingleQuote ? (this.state = t.InAttributeValueSq, this.sectionStart = this.index + 1) : s(l) || (this.sectionStart = this.index, this.state = t.InAttributeValueNq, this.stateInAttributeValueNoQuotes(l)); } - handleInAttributeValue(n, f) { - n === f || !this.decodeEntities && this.fastForwardTo(f) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(f === u.DoubleQuote ? l.Double : l.Single, this.index + 1), this.state = t.BeforeAttributeName) : this.decodeEntities && n === u.Amp && this.startEntity(); + handleInAttributeValue(l, f) { + l === f || !this.decodeEntities && this.fastForwardTo(f) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(f === u.DoubleQuote ? o.Double : o.Single, this.index + 1), this.state = t.BeforeAttributeName) : this.decodeEntities && l === u.Amp && this.startEntity(); } - stateInAttributeValueDoubleQuotes(n) { - this.handleInAttributeValue(n, u.DoubleQuote); + stateInAttributeValueDoubleQuotes(l) { + this.handleInAttributeValue(l, u.DoubleQuote); } - stateInAttributeValueSingleQuotes(n) { - this.handleInAttributeValue(n, u.SingleQuote); + stateInAttributeValueSingleQuotes(l) { + this.handleInAttributeValue(l, u.SingleQuote); } - stateInAttributeValueNoQuotes(n) { - c(n) || n === u.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(l.Unquoted, this.index), this.state = t.BeforeAttributeName, this.stateBeforeAttributeName(n)) : this.decodeEntities && n === u.Amp && this.startEntity(); + stateInAttributeValueNoQuotes(l) { + s(l) || l === u.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(o.Unquoted, this.index), this.state = t.BeforeAttributeName, this.stateBeforeAttributeName(l)) : this.decodeEntities && l === u.Amp && this.startEntity(); } - stateBeforeDeclaration(n) { - n === u.OpeningSquareBracket ? (this.state = t.CDATASequence, this.sequenceIndex = 0) : this.state = n === u.Dash ? t.BeforeComment : t.InDeclaration; + stateBeforeDeclaration(l) { + l === u.OpeningSquareBracket ? (this.state = t.CDATASequence, this.sequenceIndex = 0) : this.state = l === u.Dash ? t.BeforeComment : t.InDeclaration; } - stateInDeclaration(n) { - (n === u.Gt || this.fastForwardTo(u.Gt)) && (this.cbs.ondeclaration(this.sectionStart, this.index), this.state = t.Text, this.sectionStart = this.index + 1); + stateInDeclaration(l) { + (l === u.Gt || this.fastForwardTo(u.Gt)) && (this.cbs.ondeclaration(this.sectionStart, this.index), this.state = t.Text, this.sectionStart = this.index + 1); } - stateInProcessingInstruction(n) { - (n === u.Gt || this.fastForwardTo(u.Gt)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = t.Text, this.sectionStart = this.index + 1); + stateInProcessingInstruction(l) { + (l === u.Gt || this.fastForwardTo(u.Gt)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = t.Text, this.sectionStart = this.index + 1); } - stateBeforeComment(n) { - n === u.Dash ? (this.state = t.InCommentLike, this.currentSequence = a.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = t.InDeclaration; + stateBeforeComment(l) { + l === u.Dash ? (this.state = t.InCommentLike, this.currentSequence = i.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = t.InDeclaration; } - stateInSpecialComment(n) { - (n === u.Gt || this.fastForwardTo(u.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = t.Text, this.sectionStart = this.index + 1); + stateInSpecialComment(l) { + (l === u.Gt || this.fastForwardTo(u.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = t.Text, this.sectionStart = this.index + 1); } - stateBeforeSpecialS(n) { - const f = n | 32; - f === a.ScriptEnd[3] ? this.startSpecial(a.ScriptEnd, 4) : f === a.StyleEnd[3] ? this.startSpecial(a.StyleEnd, 4) : (this.state = t.InTagName, this.stateInTagName(n)); + stateBeforeSpecialS(l) { + const f = l | 32; + f === i.ScriptEnd[3] ? this.startSpecial(i.ScriptEnd, 4) : f === i.StyleEnd[3] ? this.startSpecial(i.StyleEnd, 4) : (this.state = t.InTagName, this.stateInTagName(l)); } - stateBeforeSpecialT(n) { - switch (n | 32) { - case a.TitleEnd[3]: { - this.startSpecial(a.TitleEnd, 4); + stateBeforeSpecialT(l) { + switch (l | 32) { + case i.TitleEnd[3]: { + this.startSpecial(i.TitleEnd, 4); break; } - case a.TextareaEnd[3]: { - this.startSpecial(a.TextareaEnd, 4); + case i.TextareaEnd[3]: { + this.startSpecial(i.TextareaEnd, 4); break; } - case a.XmpEnd[3]: { - this.startSpecial(a.XmpEnd, 4); + case i.XmpEnd[3]: { + this.startSpecial(i.XmpEnd, 4); break; } default: - this.state = t.InTagName, this.stateInTagName(n); + this.state = t.InTagName, this.stateInTagName(l); } } startEntity() { this.baseState = this.state, this.state = t.InEntity, this.entityStart = this.index, this.entityDecoder.startEntity(this.xmlMode ? e.DecodingMode.Strict : this.baseState === t.Text || this.baseState === t.InSpecialTag ? e.DecodingMode.Legacy : e.DecodingMode.Attribute); } stateInEntity() { - const n = this.index - this.offset, f = this.entityDecoder.write(this.buffer, n); + const l = this.index - this.offset, f = this.entityDecoder.write(this.buffer, l); if (f >= 0) this.state = this.baseState, f === 0 && (this.index -= 1); else { - if (n < this.buffer.length && this.buffer.charCodeAt(n) === u.Amp) { + if (l < this.buffer.length && this.buffer.charCodeAt(l) === u.Amp) { this.state = this.baseState, this.index -= 1; return; } @@ -4036,106 +4145,106 @@ function ti() { */ parse() { for (; this.shouldContinue(); ) { - const n = this.buffer.charCodeAt(this.index - this.offset); + const l = this.buffer.charCodeAt(this.index - this.offset); switch (this.state) { case t.Text: { - this.stateText(n); + this.stateText(l); break; } case t.SpecialStartSequence: { - this.stateSpecialStartSequence(n); + this.stateSpecialStartSequence(l); break; } case t.InSpecialTag: { - this.stateInSpecialTag(n); + this.stateInSpecialTag(l); break; } case t.CDATASequence: { - this.stateCDATASequence(n); + this.stateCDATASequence(l); break; } case t.InAttributeValueDq: { - this.stateInAttributeValueDoubleQuotes(n); + this.stateInAttributeValueDoubleQuotes(l); break; } case t.InAttributeName: { - this.stateInAttributeName(n); + this.stateInAttributeName(l); break; } case t.InCommentLike: { - this.stateInCommentLike(n); + this.stateInCommentLike(l); break; } case t.InSpecialComment: { - this.stateInSpecialComment(n); + this.stateInSpecialComment(l); break; } case t.BeforeAttributeName: { - this.stateBeforeAttributeName(n); + this.stateBeforeAttributeName(l); break; } case t.InTagName: { - this.stateInTagName(n); + this.stateInTagName(l); break; } case t.InClosingTagName: { - this.stateInClosingTagName(n); + this.stateInClosingTagName(l); break; } case t.BeforeTagName: { - this.stateBeforeTagName(n); + this.stateBeforeTagName(l); break; } case t.AfterAttributeName: { - this.stateAfterAttributeName(n); + this.stateAfterAttributeName(l); break; } case t.InAttributeValueSq: { - this.stateInAttributeValueSingleQuotes(n); + this.stateInAttributeValueSingleQuotes(l); break; } case t.BeforeAttributeValue: { - this.stateBeforeAttributeValue(n); + this.stateBeforeAttributeValue(l); break; } case t.BeforeClosingTagName: { - this.stateBeforeClosingTagName(n); + this.stateBeforeClosingTagName(l); break; } case t.AfterClosingTagName: { - this.stateAfterClosingTagName(n); + this.stateAfterClosingTagName(l); break; } case t.BeforeSpecialS: { - this.stateBeforeSpecialS(n); + this.stateBeforeSpecialS(l); break; } case t.BeforeSpecialT: { - this.stateBeforeSpecialT(n); + this.stateBeforeSpecialT(l); break; } case t.InAttributeValueNq: { - this.stateInAttributeValueNoQuotes(n); + this.stateInAttributeValueNoQuotes(l); break; } case t.InSelfClosingTag: { - this.stateInSelfClosingTag(n); + this.stateInSelfClosingTag(l); break; } case t.InDeclaration: { - this.stateInDeclaration(n); + this.stateInDeclaration(l); break; } case t.BeforeDeclaration: { - this.stateBeforeDeclaration(n); + this.stateBeforeDeclaration(l); break; } case t.BeforeComment: { - this.stateBeforeComment(n); + this.stateBeforeComment(l); break; } case t.InProcessingInstruction: { - this.stateInProcessingInstruction(n); + this.stateInProcessingInstruction(l); break; } case t.InEntity: { @@ -4152,48 +4261,48 @@ function ti() { } /** Handle any trailing data. */ handleTrailingData() { - const n = this.buffer.length + this.offset; - this.sectionStart >= n || (this.state === t.InCommentLike ? this.currentSequence === a.CdataEnd ? this.cbs.oncdata(this.sectionStart, n, 0) : this.cbs.oncomment(this.sectionStart, n, 0) : this.state === t.InTagName || this.state === t.BeforeAttributeName || this.state === t.BeforeAttributeValue || this.state === t.AfterAttributeName || this.state === t.InAttributeName || this.state === t.InAttributeValueSq || this.state === t.InAttributeValueDq || this.state === t.InAttributeValueNq || this.state === t.InClosingTagName || this.cbs.ontext(this.sectionStart, n)); + const l = this.buffer.length + this.offset; + this.sectionStart >= l || (this.state === t.InCommentLike ? this.currentSequence === i.CdataEnd ? this.cbs.oncdata(this.sectionStart, l, 0) : this.cbs.oncomment(this.sectionStart, l, 0) : this.state === t.InTagName || this.state === t.BeforeAttributeName || this.state === t.BeforeAttributeValue || this.state === t.AfterAttributeName || this.state === t.InAttributeName || this.state === t.InAttributeValueSq || this.state === t.InAttributeValueDq || this.state === t.InAttributeValueNq || this.state === t.InClosingTagName || this.cbs.ontext(this.sectionStart, l)); } - emitCodePoint(n, f) { - this.baseState !== t.Text && this.baseState !== t.InSpecialTag ? (this.sectionStart < this.entityStart && this.cbs.onattribdata(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + f, this.index = this.sectionStart - 1, this.cbs.onattribentity(n)) : (this.sectionStart < this.entityStart && this.cbs.ontext(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + f, this.index = this.sectionStart - 1, this.cbs.ontextentity(n, this.sectionStart)); + emitCodePoint(l, f) { + this.baseState !== t.Text && this.baseState !== t.InSpecialTag ? (this.sectionStart < this.entityStart && this.cbs.onattribdata(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + f, this.index = this.sectionStart - 1, this.cbs.onattribentity(l)) : (this.sectionStart < this.entityStart && this.cbs.ontext(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + f, this.index = this.sectionStart - 1, this.cbs.ontextentity(l, this.sectionStart)); } }; - return Oe.default = o, Oe; + return He.default = c, He; } -var p0; -function g0() { - if (p0) return ae; - p0 = 1; - var e = ae && ae.__createBinding || (Object.create ? (function(C, b, m, g) { - g === void 0 && (g = m); - var x = Object.getOwnPropertyDescriptor(b, m); - (!x || ("get" in x ? !b.__esModule : x.writable || x.configurable)) && (x = { enumerable: !0, get: function() { - return b[m]; - } }), Object.defineProperty(C, g, x); - }) : (function(C, b, m, g) { - g === void 0 && (g = m), C[g] = b[m]; - })), u = ae && ae.__setModuleDefault || (Object.create ? (function(C, b) { - Object.defineProperty(C, "default", { enumerable: !0, value: b }); - }) : function(C, b) { - C.default = b; - }), t = ae && ae.__importStar || /* @__PURE__ */ (function() { - var C = function(b) { - return C = Object.getOwnPropertyNames || function(m) { - var g = []; - for (var x in m) Object.prototype.hasOwnProperty.call(m, x) && (g[g.length] = x); - return g; - }, C(b); +var xr; +function yr() { + if (xr) return he; + xr = 1; + var e = he && he.__createBinding || (Object.create ? (function(C, w, b, x) { + x === void 0 && (x = b); + var m = Object.getOwnPropertyDescriptor(w, b); + (!m || ("get" in m ? !w.__esModule : m.writable || m.configurable)) && (m = { enumerable: !0, get: function() { + return w[b]; + } }), Object.defineProperty(C, x, m); + }) : (function(C, w, b, x) { + x === void 0 && (x = b), C[x] = w[b]; + })), u = he && he.__setModuleDefault || (Object.create ? (function(C, w) { + Object.defineProperty(C, "default", { enumerable: !0, value: w }); + }) : function(C, w) { + C.default = w; + }), t = he && he.__importStar || /* @__PURE__ */ (function() { + var C = function(w) { + return C = Object.getOwnPropertyNames || function(b) { + var x = []; + for (var m in b) Object.prototype.hasOwnProperty.call(b, m) && (x[x.length] = m); + return x; + }, C(w); }; - return function(b) { - if (b && b.__esModule) return b; - var m = {}; - if (b != null) for (var g = C(b), x = 0; x < g.length; x++) g[x] !== "default" && e(m, b, g[x]); - return u(m, b), m; + return function(w) { + if (w && w.__esModule) return w; + var b = {}; + if (w != null) for (var x = C(w), m = 0; m < x.length; m++) x[m] !== "default" && e(b, w, x[m]); + return u(b, w), b; }; })(); - Object.defineProperty(ae, "__esModule", { value: !0 }), ae.Parser = void 0; - const c = t(ti()), s = /* @__PURE__ */ ui(), i = /* @__PURE__ */ new Set([ + Object.defineProperty(he, "__esModule", { value: !0 }), he.Parser = void 0; + const s = t(cn()), a = /* @__PURE__ */ sn(), r = /* @__PURE__ */ new Set([ "input", "option", "optgroup", @@ -4201,54 +4310,54 @@ function g0() { "button", "datalist", "textarea" - ]), l = /* @__PURE__ */ new Set(["p"]), a = /* @__PURE__ */ new Set(["thead", "tbody"]), o = /* @__PURE__ */ new Set(["dd", "dt"]), r = /* @__PURE__ */ new Set(["rt", "rp"]), n = /* @__PURE__ */ new Map([ + ]), o = /* @__PURE__ */ new Set(["p"]), i = /* @__PURE__ */ new Set(["thead", "tbody"]), c = /* @__PURE__ */ new Set(["dd", "dt"]), n = /* @__PURE__ */ new Set(["rt", "rp"]), l = /* @__PURE__ */ new Map([ ["tr", /* @__PURE__ */ new Set(["tr", "th", "td"])], ["th", /* @__PURE__ */ new Set(["th"])], ["td", /* @__PURE__ */ new Set(["thead", "th", "td"])], ["body", /* @__PURE__ */ new Set(["head", "link", "script"])], ["li", /* @__PURE__ */ new Set(["li"])], - ["p", l], - ["h1", l], - ["h2", l], - ["h3", l], - ["h4", l], - ["h5", l], - ["h6", l], - ["select", i], - ["input", i], - ["output", i], - ["button", i], - ["datalist", i], - ["textarea", i], + ["p", o], + ["h1", o], + ["h2", o], + ["h3", o], + ["h4", o], + ["h5", o], + ["h6", o], + ["select", r], + ["input", r], + ["output", r], + ["button", r], + ["datalist", r], + ["textarea", r], ["option", /* @__PURE__ */ new Set(["option"])], ["optgroup", /* @__PURE__ */ new Set(["optgroup", "option"])], - ["dd", o], - ["dt", o], - ["address", l], - ["article", l], - ["aside", l], - ["blockquote", l], - ["details", l], - ["div", l], - ["dl", l], - ["fieldset", l], - ["figcaption", l], - ["figure", l], - ["footer", l], - ["form", l], - ["header", l], - ["hr", l], - ["main", l], - ["nav", l], - ["ol", l], - ["pre", l], - ["section", l], - ["table", l], - ["ul", l], - ["rt", r], - ["rp", r], - ["tbody", a], - ["tfoot", a] + ["dd", c], + ["dt", c], + ["address", o], + ["article", o], + ["aside", o], + ["blockquote", o], + ["details", o], + ["div", o], + ["dl", o], + ["fieldset", o], + ["figcaption", o], + ["figure", o], + ["footer", o], + ["form", o], + ["header", o], + ["hr", o], + ["main", o], + ["nav", o], + ["ol", o], + ["pre", o], + ["section", o], + ["table", o], + ["ul", o], + ["rt", n], + ["rp", n], + ["tbody", i], + ["tfoot", i] ]), f = /* @__PURE__ */ new Set([ "area", "base", @@ -4269,7 +4378,7 @@ function g0() { "source", "track", "wbr" - ]), d = /* @__PURE__ */ new Set(["math", "svg"]), A = /* @__PURE__ */ new Set([ + ]), A = /* @__PURE__ */ new Set(["math", "svg"]), d = /* @__PURE__ */ new Set([ "mi", "mo", "mn", @@ -4280,154 +4389,154 @@ function g0() { "desc", "title" ]), h = /\s|\//; - let w = class { - constructor(b, m = {}) { - var g, x, p, y, v, I; - this.options = m, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = b ?? {}, this.htmlMode = !this.options.xmlMode, this.lowerCaseTagNames = (g = m.lowerCaseTags) !== null && g !== void 0 ? g : this.htmlMode, this.lowerCaseAttributeNames = (x = m.lowerCaseAttributeNames) !== null && x !== void 0 ? x : this.htmlMode, this.recognizeSelfClosing = (p = m.recognizeSelfClosing) !== null && p !== void 0 ? p : !this.htmlMode, this.tokenizer = new ((y = m.Tokenizer) !== null && y !== void 0 ? y : c.default)(this.options, this), this.foreignContext = [!this.htmlMode], (I = (v = this.cbs).onparserinit) === null || I === void 0 || I.call(v, this); + let y = class { + constructor(w, b = {}) { + var x, m, p, g, D, B; + this.options = b, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = w ?? {}, this.htmlMode = !this.options.xmlMode, this.lowerCaseTagNames = (x = b.lowerCaseTags) !== null && x !== void 0 ? x : this.htmlMode, this.lowerCaseAttributeNames = (m = b.lowerCaseAttributeNames) !== null && m !== void 0 ? m : this.htmlMode, this.recognizeSelfClosing = (p = b.recognizeSelfClosing) !== null && p !== void 0 ? p : !this.htmlMode, this.tokenizer = new ((g = b.Tokenizer) !== null && g !== void 0 ? g : s.default)(this.options, this), this.foreignContext = [!this.htmlMode], (B = (D = this.cbs).onparserinit) === null || B === void 0 || B.call(D, this); } // Tokenizer event handlers /** @internal */ - ontext(b, m) { - var g, x; - const p = this.getSlice(b, m); - this.endIndex = m - 1, (x = (g = this.cbs).ontext) === null || x === void 0 || x.call(g, p), this.startIndex = m; + ontext(w, b) { + var x, m; + const p = this.getSlice(w, b); + this.endIndex = b - 1, (m = (x = this.cbs).ontext) === null || m === void 0 || m.call(x, p), this.startIndex = b; } /** @internal */ - ontextentity(b, m) { - var g, x; - this.endIndex = m - 1, (x = (g = this.cbs).ontext) === null || x === void 0 || x.call(g, (0, s.fromCodePoint)(b)), this.startIndex = m; + ontextentity(w, b) { + var x, m; + this.endIndex = b - 1, (m = (x = this.cbs).ontext) === null || m === void 0 || m.call(x, (0, a.fromCodePoint)(w)), this.startIndex = b; } /** * Checks if the current tag is a void element. Override this if you want * to specify your own additional void elements. */ - isVoidElement(b) { - return this.htmlMode && f.has(b); + isVoidElement(w) { + return this.htmlMode && f.has(w); } /** @internal */ - onopentagname(b, m) { - this.endIndex = m; - let g = this.getSlice(b, m); - this.lowerCaseTagNames && (g = g.toLowerCase()), this.emitOpenTag(g); - } - emitOpenTag(b) { - var m, g, x, p; - this.openTagStart = this.startIndex, this.tagname = b; - const y = this.htmlMode && n.get(b); - if (y) - for (; this.stack.length > 0 && y.has(this.stack[0]); ) { - const v = this.stack.shift(); - (g = (m = this.cbs).onclosetag) === null || g === void 0 || g.call(m, v, !0); + onopentagname(w, b) { + this.endIndex = b; + let x = this.getSlice(w, b); + this.lowerCaseTagNames && (x = x.toLowerCase()), this.emitOpenTag(x); + } + emitOpenTag(w) { + var b, x, m, p; + this.openTagStart = this.startIndex, this.tagname = w; + const g = this.htmlMode && l.get(w); + if (g) + for (; this.stack.length > 0 && g.has(this.stack[0]); ) { + const D = this.stack.shift(); + (x = (b = this.cbs).onclosetag) === null || x === void 0 || x.call(b, D, !0); } - this.isVoidElement(b) || (this.stack.unshift(b), this.htmlMode && (d.has(b) ? this.foreignContext.unshift(!0) : A.has(b) && this.foreignContext.unshift(!1))), (p = (x = this.cbs).onopentagname) === null || p === void 0 || p.call(x, b), this.cbs.onopentag && (this.attribs = {}); + this.isVoidElement(w) || (this.stack.unshift(w), this.htmlMode && (A.has(w) ? this.foreignContext.unshift(!0) : d.has(w) && this.foreignContext.unshift(!1))), (p = (m = this.cbs).onopentagname) === null || p === void 0 || p.call(m, w), this.cbs.onopentag && (this.attribs = {}); } - endOpenTag(b) { - var m, g; - this.startIndex = this.openTagStart, this.attribs && ((g = (m = this.cbs).onopentag) === null || g === void 0 || g.call(m, this.tagname, this.attribs, b), this.attribs = null), this.cbs.onclosetag && this.isVoidElement(this.tagname) && this.cbs.onclosetag(this.tagname, !0), this.tagname = ""; + endOpenTag(w) { + var b, x; + this.startIndex = this.openTagStart, this.attribs && ((x = (b = this.cbs).onopentag) === null || x === void 0 || x.call(b, this.tagname, this.attribs, w), this.attribs = null), this.cbs.onclosetag && this.isVoidElement(this.tagname) && this.cbs.onclosetag(this.tagname, !0), this.tagname = ""; } /** @internal */ - onopentagend(b) { - this.endIndex = b, this.endOpenTag(!1), this.startIndex = b + 1; + onopentagend(w) { + this.endIndex = w, this.endOpenTag(!1), this.startIndex = w + 1; } /** @internal */ - onclosetag(b, m) { - var g, x, p, y, v, I, D, _; - this.endIndex = m; - let E = this.getSlice(b, m); - if (this.lowerCaseTagNames && (E = E.toLowerCase()), this.htmlMode && (d.has(E) || A.has(E)) && this.foreignContext.shift(), this.isVoidElement(E)) - this.htmlMode && E === "br" && ((y = (p = this.cbs).onopentagname) === null || y === void 0 || y.call(p, "br"), (I = (v = this.cbs).onopentag) === null || I === void 0 || I.call(v, "br", {}, !0), (_ = (D = this.cbs).onclosetag) === null || _ === void 0 || _.call(D, "br", !1)); + onclosetag(w, b) { + var x, m, p, g, D, B, E, _; + this.endIndex = b; + let v = this.getSlice(w, b); + if (this.lowerCaseTagNames && (v = v.toLowerCase()), this.htmlMode && (A.has(v) || d.has(v)) && this.foreignContext.shift(), this.isVoidElement(v)) + this.htmlMode && v === "br" && ((g = (p = this.cbs).onopentagname) === null || g === void 0 || g.call(p, "br"), (B = (D = this.cbs).onopentag) === null || B === void 0 || B.call(D, "br", {}, !0), (_ = (E = this.cbs).onclosetag) === null || _ === void 0 || _.call(E, "br", !1)); else { - const k = this.stack.indexOf(E); + const k = this.stack.indexOf(v); if (k !== -1) - for (let F = 0; F <= k; F++) { - const T = this.stack.shift(); - (x = (g = this.cbs).onclosetag) === null || x === void 0 || x.call(g, T, F !== k); + for (let S = 0; S <= k; S++) { + const F = this.stack.shift(); + (m = (x = this.cbs).onclosetag) === null || m === void 0 || m.call(x, F, S !== k); } - else this.htmlMode && E === "p" && (this.emitOpenTag("p"), this.closeCurrentTag(!0)); + else this.htmlMode && v === "p" && (this.emitOpenTag("p"), this.closeCurrentTag(!0)); } - this.startIndex = m + 1; + this.startIndex = b + 1; } /** @internal */ - onselfclosingtag(b) { - this.endIndex = b, this.recognizeSelfClosing || this.foreignContext[0] ? (this.closeCurrentTag(!1), this.startIndex = b + 1) : this.onopentagend(b); + onselfclosingtag(w) { + this.endIndex = w, this.recognizeSelfClosing || this.foreignContext[0] ? (this.closeCurrentTag(!1), this.startIndex = w + 1) : this.onopentagend(w); } - closeCurrentTag(b) { - var m, g; - const x = this.tagname; - this.endOpenTag(b), this.stack[0] === x && ((g = (m = this.cbs).onclosetag) === null || g === void 0 || g.call(m, x, !b), this.stack.shift()); + closeCurrentTag(w) { + var b, x; + const m = this.tagname; + this.endOpenTag(w), this.stack[0] === m && ((x = (b = this.cbs).onclosetag) === null || x === void 0 || x.call(b, m, !w), this.stack.shift()); } /** @internal */ - onattribname(b, m) { - this.startIndex = b; - const g = this.getSlice(b, m); - this.attribname = this.lowerCaseAttributeNames ? g.toLowerCase() : g; + onattribname(w, b) { + this.startIndex = w; + const x = this.getSlice(w, b); + this.attribname = this.lowerCaseAttributeNames ? x.toLowerCase() : x; } /** @internal */ - onattribdata(b, m) { - this.attribvalue += this.getSlice(b, m); + onattribdata(w, b) { + this.attribvalue += this.getSlice(w, b); } /** @internal */ - onattribentity(b) { - this.attribvalue += (0, s.fromCodePoint)(b); + onattribentity(w) { + this.attribvalue += (0, a.fromCodePoint)(w); } /** @internal */ - onattribend(b, m) { - var g, x; - this.endIndex = m, (x = (g = this.cbs).onattribute) === null || x === void 0 || x.call(g, this.attribname, this.attribvalue, b === c.QuoteType.Double ? '"' : b === c.QuoteType.Single ? "'" : b === c.QuoteType.NoValue ? void 0 : null), this.attribs && !Object.prototype.hasOwnProperty.call(this.attribs, this.attribname) && (this.attribs[this.attribname] = this.attribvalue), this.attribvalue = ""; + onattribend(w, b) { + var x, m; + this.endIndex = b, (m = (x = this.cbs).onattribute) === null || m === void 0 || m.call(x, this.attribname, this.attribvalue, w === s.QuoteType.Double ? '"' : w === s.QuoteType.Single ? "'" : w === s.QuoteType.NoValue ? void 0 : null), this.attribs && !Object.prototype.hasOwnProperty.call(this.attribs, this.attribname) && (this.attribs[this.attribname] = this.attribvalue), this.attribvalue = ""; } - getInstructionName(b) { - const m = b.search(h); - let g = m < 0 ? b : b.substr(0, m); - return this.lowerCaseTagNames && (g = g.toLowerCase()), g; + getInstructionName(w) { + const b = w.search(h); + let x = b < 0 ? w : w.substr(0, b); + return this.lowerCaseTagNames && (x = x.toLowerCase()), x; } /** @internal */ - ondeclaration(b, m) { - this.endIndex = m; - const g = this.getSlice(b, m); + ondeclaration(w, b) { + this.endIndex = b; + const x = this.getSlice(w, b); if (this.cbs.onprocessinginstruction) { - const x = this.getInstructionName(g); - this.cbs.onprocessinginstruction(`!${x}`, `!${g}`); + const m = this.getInstructionName(x); + this.cbs.onprocessinginstruction(`!${m}`, `!${x}`); } - this.startIndex = m + 1; + this.startIndex = b + 1; } /** @internal */ - onprocessinginstruction(b, m) { - this.endIndex = m; - const g = this.getSlice(b, m); + onprocessinginstruction(w, b) { + this.endIndex = b; + const x = this.getSlice(w, b); if (this.cbs.onprocessinginstruction) { - const x = this.getInstructionName(g); - this.cbs.onprocessinginstruction(`?${x}`, `?${g}`); + const m = this.getInstructionName(x); + this.cbs.onprocessinginstruction(`?${m}`, `?${x}`); } - this.startIndex = m + 1; + this.startIndex = b + 1; } /** @internal */ - oncomment(b, m, g) { - var x, p, y, v; - this.endIndex = m, (p = (x = this.cbs).oncomment) === null || p === void 0 || p.call(x, this.getSlice(b, m - g)), (v = (y = this.cbs).oncommentend) === null || v === void 0 || v.call(y), this.startIndex = m + 1; + oncomment(w, b, x) { + var m, p, g, D; + this.endIndex = b, (p = (m = this.cbs).oncomment) === null || p === void 0 || p.call(m, this.getSlice(w, b - x)), (D = (g = this.cbs).oncommentend) === null || D === void 0 || D.call(g), this.startIndex = b + 1; } /** @internal */ - oncdata(b, m, g) { - var x, p, y, v, I, D, _, E, k, F; - this.endIndex = m; - const T = this.getSlice(b, m - g); - !this.htmlMode || this.options.recognizeCDATA ? ((p = (x = this.cbs).oncdatastart) === null || p === void 0 || p.call(x), (v = (y = this.cbs).ontext) === null || v === void 0 || v.call(y, T), (D = (I = this.cbs).oncdataend) === null || D === void 0 || D.call(I)) : ((E = (_ = this.cbs).oncomment) === null || E === void 0 || E.call(_, `[CDATA[${T}]]`), (F = (k = this.cbs).oncommentend) === null || F === void 0 || F.call(k)), this.startIndex = m + 1; + oncdata(w, b, x) { + var m, p, g, D, B, E, _, v, k, S; + this.endIndex = b; + const F = this.getSlice(w, b - x); + !this.htmlMode || this.options.recognizeCDATA ? ((p = (m = this.cbs).oncdatastart) === null || p === void 0 || p.call(m), (D = (g = this.cbs).ontext) === null || D === void 0 || D.call(g, F), (E = (B = this.cbs).oncdataend) === null || E === void 0 || E.call(B)) : ((v = (_ = this.cbs).oncomment) === null || v === void 0 || v.call(_, `[CDATA[${F}]]`), (S = (k = this.cbs).oncommentend) === null || S === void 0 || S.call(k)), this.startIndex = b + 1; } /** @internal */ onend() { - var b, m; + var w, b; if (this.cbs.onclosetag) { this.endIndex = this.startIndex; - for (let g = 0; g < this.stack.length; g++) - this.cbs.onclosetag(this.stack[g], !0); + for (let x = 0; x < this.stack.length; x++) + this.cbs.onclosetag(this.stack[x], !0); } - (m = (b = this.cbs).onend) === null || m === void 0 || m.call(b); + (b = (w = this.cbs).onend) === null || b === void 0 || b.call(w); } /** * Resets the parser to a blank state, ready to parse a new HTML document */ reset() { - var b, m, g, x; - (m = (b = this.cbs).onreset) === null || m === void 0 || m.call(b), this.tokenizer.reset(), this.tagname = "", this.attribname = "", this.attribs = null, this.stack.length = 0, this.startIndex = 0, this.endIndex = 0, (x = (g = this.cbs).onparserinit) === null || x === void 0 || x.call(g, this), this.buffers.length = 0, this.foreignContext.length = 0, this.foreignContext.unshift(!this.htmlMode), this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1; + var w, b, x, m; + (b = (w = this.cbs).onreset) === null || b === void 0 || b.call(w), this.tokenizer.reset(), this.tagname = "", this.attribname = "", this.attribs = null, this.stack.length = 0, this.startIndex = 0, this.endIndex = 0, (m = (x = this.cbs).onparserinit) === null || m === void 0 || m.call(x, this), this.buffers.length = 0, this.foreignContext.length = 0, this.foreignContext.unshift(!this.htmlMode), this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1; } /** * Resets the parser, then parses a complete document and @@ -4435,16 +4544,16 @@ function g0() { * * @param data Document to parse. */ - parseComplete(b) { - this.reset(), this.end(b); + parseComplete(w) { + this.reset(), this.end(w); } - getSlice(b, m) { - for (; b - this.bufferOffset >= this.buffers[0].length; ) + getSlice(w, b) { + for (; w - this.bufferOffset >= this.buffers[0].length; ) this.shiftBuffer(); - let g = this.buffers[0].slice(b - this.bufferOffset, m - this.bufferOffset); - for (; m - this.bufferOffset > this.buffers[0].length; ) - this.shiftBuffer(), g += this.buffers[0].slice(0, m - this.bufferOffset); - return g; + let x = this.buffers[0].slice(w - this.bufferOffset, b - this.bufferOffset); + for (; b - this.bufferOffset > this.buffers[0].length; ) + this.shiftBuffer(), x += this.buffers[0].slice(0, b - this.bufferOffset); + return x; } shiftBuffer() { this.bufferOffset += this.buffers[0].length, this.writeIndex--, this.buffers.shift(); @@ -4454,26 +4563,26 @@ function g0() { * * @param chunk Chunk to parse. */ - write(b) { - var m, g; + write(w) { + var b, x; if (this.ended) { - (g = (m = this.cbs).onerror) === null || g === void 0 || g.call(m, new Error(".write() after done!")); + (x = (b = this.cbs).onerror) === null || x === void 0 || x.call(b, new Error(".write() after done!")); return; } - this.buffers.push(b), this.tokenizer.running && (this.tokenizer.write(b), this.writeIndex++); + this.buffers.push(w), this.tokenizer.running && (this.tokenizer.write(w), this.writeIndex++); } /** * Parses the end of the buffer and clears the stack, calls onend. * * @param chunk Optional final chunk to parse. */ - end(b) { - var m, g; + end(w) { + var b, x; if (this.ended) { - (g = (m = this.cbs).onerror) === null || g === void 0 || g.call(m, new Error(".end() after done!")); + (x = (b = this.cbs).onerror) === null || x === void 0 || x.call(b, new Error(".end() after done!")); return; } - b && this.write(b), this.ended = !0, this.tokenizer.end(); + w && this.write(w), this.ended = !0, this.tokenizer.end(); } /** * Pauses parsing. The parser won't emit events until `resume` is called. @@ -4495,8 +4604,8 @@ function g0() { * @param chunk Chunk to parse. * @deprecated */ - parseChunk(b) { - this.write(b); + parseChunk(w) { + this.write(w); } /** * Alias of `end`, for backwards compatibility. @@ -4504,58 +4613,58 @@ function g0() { * @param chunk Optional final chunk to parse. * @deprecated */ - done(b) { - this.end(b); + done(w) { + this.end(w); } }; - return ae.Parser = w, ae; + return he.Parser = y, he; } -var Fe = {}, Lu = {}, m0; -function Xe() { - return m0 || (m0 = 1, (function(e) { +var Oe = {}, qu = {}, wr; +function tu() { + return wr || (wr = 1, (function(e) { Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0; var u; - (function(c) { - c.Root = "root", c.Text = "text", c.Directive = "directive", c.Comment = "comment", c.Script = "script", c.Style = "style", c.Tag = "tag", c.CDATA = "cdata", c.Doctype = "doctype"; + (function(s) { + s.Root = "root", s.Text = "text", s.Directive = "directive", s.Comment = "comment", s.Script = "script", s.Style = "style", s.Tag = "tag", s.CDATA = "cdata", s.Doctype = "doctype"; })(u = e.ElementType || (e.ElementType = {})); - function t(c) { - return c.type === u.Tag || c.type === u.Script || c.type === u.Style; + function t(s) { + return s.type === u.Tag || s.type === u.Script || s.type === u.Style; } e.isTag = t, e.Root = u.Root, e.Text = u.Text, e.Directive = u.Directive, e.Comment = u.Comment, e.Script = u.Script, e.Style = u.Style, e.Tag = u.Tag, e.CDATA = u.CDATA, e.Doctype = u.Doctype; - })(Lu)), Lu; + })(qu)), qu; } -var G = {}, x0; -function y0() { - if (x0) return G; - x0 = 1; - var e = G && G.__extends || /* @__PURE__ */ (function() { - var p = function(y, v) { - return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(I, D) { - I.__proto__ = D; - } || function(I, D) { - for (var _ in D) Object.prototype.hasOwnProperty.call(D, _) && (I[_] = D[_]); - }, p(y, v); +var q = {}, Cr; +function vr() { + if (Cr) return q; + Cr = 1; + var e = q && q.__extends || /* @__PURE__ */ (function() { + var p = function(g, D) { + return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(B, E) { + B.__proto__ = E; + } || function(B, E) { + for (var _ in E) Object.prototype.hasOwnProperty.call(E, _) && (B[_] = E[_]); + }, p(g, D); }; - return function(y, v) { - if (typeof v != "function" && v !== null) - throw new TypeError("Class extends value " + String(v) + " is not a constructor or null"); - p(y, v); - function I() { - this.constructor = y; - } - y.prototype = v === null ? Object.create(v) : (I.prototype = v.prototype, new I()); + return function(g, D) { + if (typeof D != "function" && D !== null) + throw new TypeError("Class extends value " + String(D) + " is not a constructor or null"); + p(g, D); + function B() { + this.constructor = g; + } + g.prototype = D === null ? Object.create(D) : (B.prototype = D.prototype, new B()); }; - })(), u = G && G.__assign || function() { + })(), u = q && q.__assign || function() { return u = Object.assign || function(p) { - for (var y, v = 1, I = arguments.length; v < I; v++) { - y = arguments[v]; - for (var D in y) Object.prototype.hasOwnProperty.call(y, D) && (p[D] = y[D]); + for (var g, D = 1, B = arguments.length; D < B; D++) { + g = arguments[D]; + for (var E in g) Object.prototype.hasOwnProperty.call(g, E) && (p[E] = g[E]); } return p; }, u.apply(this, arguments); }; - Object.defineProperty(G, "__esModule", { value: !0 }), G.cloneNode = G.hasChildren = G.isDocument = G.isDirective = G.isComment = G.isText = G.isCDATA = G.isTag = G.Element = G.Document = G.CDATA = G.NodeWithChildren = G.ProcessingInstruction = G.Comment = G.Text = G.DataNode = G.Node = void 0; - var t = /* @__PURE__ */ Xe(), c = ( + Object.defineProperty(q, "__esModule", { value: !0 }), q.cloneNode = q.hasChildren = q.isDocument = q.isDirective = q.isComment = q.isText = q.isCDATA = q.isTag = q.Element = q.Document = q.CDATA = q.NodeWithChildren = q.ProcessingInstruction = q.Comment = q.Text = q.DataNode = q.Node = void 0; + var t = /* @__PURE__ */ tu(), s = ( /** @class */ (function() { function p() { @@ -4570,8 +4679,8 @@ function y0() { get: function() { return this.parent; }, - set: function(y) { - this.parent = y; + set: function(g) { + this.parent = g; }, enumerable: !1, configurable: !0 @@ -4583,8 +4692,8 @@ function y0() { get: function() { return this.prev; }, - set: function(y) { - this.prev = y; + set: function(g) { + this.prev = g; }, enumerable: !1, configurable: !0 @@ -4596,26 +4705,26 @@ function y0() { get: function() { return this.next; }, - set: function(y) { - this.next = y; + set: function(g) { + this.next = g; }, enumerable: !1, configurable: !0 - }), p.prototype.cloneNode = function(y) { - return y === void 0 && (y = !1), g(this, y); + }), p.prototype.cloneNode = function(g) { + return g === void 0 && (g = !1), x(this, g); }, p; })() ); - G.Node = c; - var s = ( + q.Node = s; + var a = ( /** @class */ (function(p) { - e(y, p); - function y(v) { - var I = p.call(this) || this; - return I.data = v, I; + e(g, p); + function g(D) { + var B = p.call(this) || this; + return B.data = D, B; } - return Object.defineProperty(y.prototype, "nodeValue", { + return Object.defineProperty(g.prototype, "nodeValue", { /** * Same as {@link data}. * [DOM spec](https://dom.spec.whatwg.org)-compatible alias. @@ -4623,94 +4732,94 @@ function y0() { get: function() { return this.data; }, - set: function(v) { - this.data = v; + set: function(D) { + this.data = D; }, enumerable: !1, configurable: !0 - }), y; - })(c) + }), g; + })(s) ); - G.DataNode = s; - var i = ( + q.DataNode = a; + var r = ( /** @class */ (function(p) { - e(y, p); - function y() { - var v = p !== null && p.apply(this, arguments) || this; - return v.type = t.ElementType.Text, v; + e(g, p); + function g() { + var D = p !== null && p.apply(this, arguments) || this; + return D.type = t.ElementType.Text, D; } - return Object.defineProperty(y.prototype, "nodeType", { + return Object.defineProperty(g.prototype, "nodeType", { get: function() { return 3; }, enumerable: !1, configurable: !0 - }), y; - })(s) + }), g; + })(a) ); - G.Text = i; - var l = ( + q.Text = r; + var o = ( /** @class */ (function(p) { - e(y, p); - function y() { - var v = p !== null && p.apply(this, arguments) || this; - return v.type = t.ElementType.Comment, v; + e(g, p); + function g() { + var D = p !== null && p.apply(this, arguments) || this; + return D.type = t.ElementType.Comment, D; } - return Object.defineProperty(y.prototype, "nodeType", { + return Object.defineProperty(g.prototype, "nodeType", { get: function() { return 8; }, enumerable: !1, configurable: !0 - }), y; - })(s) + }), g; + })(a) ); - G.Comment = l; - var a = ( + q.Comment = o; + var i = ( /** @class */ (function(p) { - e(y, p); - function y(v, I) { - var D = p.call(this, I) || this; - return D.name = v, D.type = t.ElementType.Directive, D; + e(g, p); + function g(D, B) { + var E = p.call(this, B) || this; + return E.name = D, E.type = t.ElementType.Directive, E; } - return Object.defineProperty(y.prototype, "nodeType", { + return Object.defineProperty(g.prototype, "nodeType", { get: function() { return 1; }, enumerable: !1, configurable: !0 - }), y; - })(s) + }), g; + })(a) ); - G.ProcessingInstruction = a; - var o = ( + q.ProcessingInstruction = i; + var c = ( /** @class */ (function(p) { - e(y, p); - function y(v) { - var I = p.call(this) || this; - return I.children = v, I; + e(g, p); + function g(D) { + var B = p.call(this) || this; + return B.children = D, B; } - return Object.defineProperty(y.prototype, "firstChild", { + return Object.defineProperty(g.prototype, "firstChild", { // Aliases /** First child of the node. */ get: function() { - var v; - return (v = this.children[0]) !== null && v !== void 0 ? v : null; + var D; + return (D = this.children[0]) !== null && D !== void 0 ? D : null; }, enumerable: !1, configurable: !0 - }), Object.defineProperty(y.prototype, "lastChild", { + }), Object.defineProperty(g.prototype, "lastChild", { /** Last child of the node. */ get: function() { return this.children.length > 0 ? this.children[this.children.length - 1] : null; }, enumerable: !1, configurable: !0 - }), Object.defineProperty(y.prototype, "childNodes", { + }), Object.defineProperty(g.prototype, "childNodes", { /** * Same as {@link children}. * [DOM spec](https://dom.spec.whatwg.org)-compatible alias. @@ -4718,67 +4827,67 @@ function y0() { get: function() { return this.children; }, - set: function(v) { - this.children = v; + set: function(D) { + this.children = D; }, enumerable: !1, configurable: !0 - }), y; - })(c) + }), g; + })(s) ); - G.NodeWithChildren = o; - var r = ( + q.NodeWithChildren = c; + var n = ( /** @class */ (function(p) { - e(y, p); - function y() { - var v = p !== null && p.apply(this, arguments) || this; - return v.type = t.ElementType.CDATA, v; + e(g, p); + function g() { + var D = p !== null && p.apply(this, arguments) || this; + return D.type = t.ElementType.CDATA, D; } - return Object.defineProperty(y.prototype, "nodeType", { + return Object.defineProperty(g.prototype, "nodeType", { get: function() { return 4; }, enumerable: !1, configurable: !0 - }), y; - })(o) + }), g; + })(c) ); - G.CDATA = r; - var n = ( + q.CDATA = n; + var l = ( /** @class */ (function(p) { - e(y, p); - function y() { - var v = p !== null && p.apply(this, arguments) || this; - return v.type = t.ElementType.Root, v; + e(g, p); + function g() { + var D = p !== null && p.apply(this, arguments) || this; + return D.type = t.ElementType.Root, D; } - return Object.defineProperty(y.prototype, "nodeType", { + return Object.defineProperty(g.prototype, "nodeType", { get: function() { return 9; }, enumerable: !1, configurable: !0 - }), y; - })(o) + }), g; + })(c) ); - G.Document = n; + q.Document = l; var f = ( /** @class */ (function(p) { - e(y, p); - function y(v, I, D, _) { - D === void 0 && (D = []), _ === void 0 && (_ = v === "script" ? t.ElementType.Script : v === "style" ? t.ElementType.Style : t.ElementType.Tag); - var E = p.call(this, D) || this; - return E.name = v, E.attribs = I, E.type = _, E; + e(g, p); + function g(D, B, E, _) { + E === void 0 && (E = []), _ === void 0 && (_ = D === "script" ? t.ElementType.Script : D === "style" ? t.ElementType.Style : t.ElementType.Tag); + var v = p.call(this, E) || this; + return v.name = D, v.attribs = B, v.type = _, v; } - return Object.defineProperty(y.prototype, "nodeType", { + return Object.defineProperty(g.prototype, "nodeType", { get: function() { return 1; }, enumerable: !1, configurable: !0 - }), Object.defineProperty(y.prototype, "tagName", { + }), Object.defineProperty(g.prototype, "tagName", { // DOM Level 1 aliases /** * Same as {@link name}. @@ -4787,199 +4896,199 @@ function y0() { get: function() { return this.name; }, - set: function(v) { - this.name = v; + set: function(D) { + this.name = D; }, enumerable: !1, configurable: !0 - }), Object.defineProperty(y.prototype, "attributes", { + }), Object.defineProperty(g.prototype, "attributes", { get: function() { - var v = this; - return Object.keys(this.attribs).map(function(I) { - var D, _; + var D = this; + return Object.keys(this.attribs).map(function(B) { + var E, _; return { - name: I, - value: v.attribs[I], - namespace: (D = v["x-attribsNamespace"]) === null || D === void 0 ? void 0 : D[I], - prefix: (_ = v["x-attribsPrefix"]) === null || _ === void 0 ? void 0 : _[I] + name: B, + value: D.attribs[B], + namespace: (E = D["x-attribsNamespace"]) === null || E === void 0 ? void 0 : E[B], + prefix: (_ = D["x-attribsPrefix"]) === null || _ === void 0 ? void 0 : _[B] }; }); }, enumerable: !1, configurable: !0 - }), y; - })(o) + }), g; + })(c) ); - G.Element = f; - function d(p) { + q.Element = f; + function A(p) { return (0, t.isTag)(p); } - G.isTag = d; - function A(p) { + q.isTag = A; + function d(p) { return p.type === t.ElementType.CDATA; } - G.isCDATA = A; + q.isCDATA = d; function h(p) { return p.type === t.ElementType.Text; } - G.isText = h; - function w(p) { + q.isText = h; + function y(p) { return p.type === t.ElementType.Comment; } - G.isComment = w; + q.isComment = y; function C(p) { return p.type === t.ElementType.Directive; } - G.isDirective = C; - function b(p) { + q.isDirective = C; + function w(p) { return p.type === t.ElementType.Root; } - G.isDocument = b; - function m(p) { + q.isDocument = w; + function b(p) { return Object.prototype.hasOwnProperty.call(p, "children"); } - G.hasChildren = m; - function g(p, y) { - y === void 0 && (y = !1); - var v; + q.hasChildren = b; + function x(p, g) { + g === void 0 && (g = !1); + var D; if (h(p)) - v = new i(p.data); - else if (w(p)) - v = new l(p.data); - else if (d(p)) { - var I = y ? x(p.children) : [], D = new f(p.name, u({}, p.attribs), I); - I.forEach(function(F) { - return F.parent = D; - }), p.namespace != null && (D.namespace = p.namespace), p["x-attribsNamespace"] && (D["x-attribsNamespace"] = u({}, p["x-attribsNamespace"])), p["x-attribsPrefix"] && (D["x-attribsPrefix"] = u({}, p["x-attribsPrefix"])), v = D; - } else if (A(p)) { - var I = y ? x(p.children) : [], _ = new r(I); - I.forEach(function(T) { - return T.parent = _; - }), v = _; - } else if (b(p)) { - var I = y ? x(p.children) : [], E = new n(I); - I.forEach(function(T) { - return T.parent = E; - }), p["x-mode"] && (E["x-mode"] = p["x-mode"]), v = E; + D = new r(p.data); + else if (y(p)) + D = new o(p.data); + else if (A(p)) { + var B = g ? m(p.children) : [], E = new f(p.name, u({}, p.attribs), B); + B.forEach(function(S) { + return S.parent = E; + }), p.namespace != null && (E.namespace = p.namespace), p["x-attribsNamespace"] && (E["x-attribsNamespace"] = u({}, p["x-attribsNamespace"])), p["x-attribsPrefix"] && (E["x-attribsPrefix"] = u({}, p["x-attribsPrefix"])), D = E; + } else if (d(p)) { + var B = g ? m(p.children) : [], _ = new n(B); + B.forEach(function(F) { + return F.parent = _; + }), D = _; + } else if (w(p)) { + var B = g ? m(p.children) : [], v = new l(B); + B.forEach(function(F) { + return F.parent = v; + }), p["x-mode"] && (v["x-mode"] = p["x-mode"]), D = v; } else if (C(p)) { - var k = new a(p.name, p.data); - p["x-name"] != null && (k["x-name"] = p["x-name"], k["x-publicId"] = p["x-publicId"], k["x-systemId"] = p["x-systemId"]), v = k; + var k = new i(p.name, p.data); + p["x-name"] != null && (k["x-name"] = p["x-name"], k["x-publicId"] = p["x-publicId"], k["x-systemId"] = p["x-systemId"]), D = k; } else throw new Error("Not implemented yet: ".concat(p.type)); - return v.startIndex = p.startIndex, v.endIndex = p.endIndex, p.sourceCodeLocation != null && (v.sourceCodeLocation = p.sourceCodeLocation), v; - } - G.cloneNode = g; - function x(p) { - for (var y = p.map(function(I) { - return g(I, !0); - }), v = 1; v < y.length; v++) - y[v].prev = y[v - 1], y[v - 1].next = y[v]; - return y; - } - return G; -} -var w0; -function Ie() { - return w0 || (w0 = 1, (function(e) { - var u = Fe && Fe.__createBinding || (Object.create ? (function(a, o, r, n) { - n === void 0 && (n = r); - var f = Object.getOwnPropertyDescriptor(o, r); - (!f || ("get" in f ? !o.__esModule : f.writable || f.configurable)) && (f = { enumerable: !0, get: function() { - return o[r]; - } }), Object.defineProperty(a, n, f); - }) : (function(a, o, r, n) { - n === void 0 && (n = r), a[n] = o[r]; - })), t = Fe && Fe.__exportStar || function(a, o) { - for (var r in a) r !== "default" && !Object.prototype.hasOwnProperty.call(o, r) && u(o, a, r); + return D.startIndex = p.startIndex, D.endIndex = p.endIndex, p.sourceCodeLocation != null && (D.sourceCodeLocation = p.sourceCodeLocation), D; + } + q.cloneNode = x; + function m(p) { + for (var g = p.map(function(B) { + return x(B, !0); + }), D = 1; D < g.length; D++) + g[D].prev = g[D - 1], g[D - 1].next = g[D]; + return g; + } + return q; +} +var Dr; +function Ne() { + return Dr || (Dr = 1, (function(e) { + var u = Oe && Oe.__createBinding || (Object.create ? (function(i, c, n, l) { + l === void 0 && (l = n); + var f = Object.getOwnPropertyDescriptor(c, n); + (!f || ("get" in f ? !c.__esModule : f.writable || f.configurable)) && (f = { enumerable: !0, get: function() { + return c[n]; + } }), Object.defineProperty(i, l, f); + }) : (function(i, c, n, l) { + l === void 0 && (l = n), i[l] = c[n]; + })), t = Oe && Oe.__exportStar || function(i, c) { + for (var n in i) n !== "default" && !Object.prototype.hasOwnProperty.call(c, n) && u(c, i, n); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0; - var c = /* @__PURE__ */ Xe(), s = /* @__PURE__ */ y0(); - t(/* @__PURE__ */ y0(), e); - var i = { + var s = /* @__PURE__ */ tu(), a = /* @__PURE__ */ vr(); + t(/* @__PURE__ */ vr(), e); + var r = { withStartIndices: !1, withEndIndices: !1, xmlMode: !1 - }, l = ( + }, o = ( /** @class */ (function() { - function a(o, r, n) { - this.dom = [], this.root = new s.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof r == "function" && (n = r, r = i), typeof o == "object" && (r = o, o = void 0), this.callback = o ?? null, this.options = r ?? i, this.elementCB = n ?? null; + function i(c, n, l) { + this.dom = [], this.root = new a.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof n == "function" && (l = n, n = r), typeof c == "object" && (n = c, c = void 0), this.callback = c ?? null, this.options = n ?? r, this.elementCB = l ?? null; } - return a.prototype.onparserinit = function(o) { - this.parser = o; - }, a.prototype.onreset = function() { - this.dom = [], this.root = new s.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null; - }, a.prototype.onend = function() { + return i.prototype.onparserinit = function(c) { + this.parser = c; + }, i.prototype.onreset = function() { + this.dom = [], this.root = new a.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null; + }, i.prototype.onend = function() { this.done || (this.done = !0, this.parser = null, this.handleCallback(null)); - }, a.prototype.onerror = function(o) { - this.handleCallback(o); - }, a.prototype.onclosetag = function() { + }, i.prototype.onerror = function(c) { + this.handleCallback(c); + }, i.prototype.onclosetag = function() { this.lastNode = null; - var o = this.tagStack.pop(); - this.options.withEndIndices && (o.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(o); - }, a.prototype.onopentag = function(o, r) { - var n = this.options.xmlMode ? c.ElementType.Tag : void 0, f = new s.Element(o, r, void 0, n); + var c = this.tagStack.pop(); + this.options.withEndIndices && (c.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(c); + }, i.prototype.onopentag = function(c, n) { + var l = this.options.xmlMode ? s.ElementType.Tag : void 0, f = new a.Element(c, n, void 0, l); this.addNode(f), this.tagStack.push(f); - }, a.prototype.ontext = function(o) { - var r = this.lastNode; - if (r && r.type === c.ElementType.Text) - r.data += o, this.options.withEndIndices && (r.endIndex = this.parser.endIndex); + }, i.prototype.ontext = function(c) { + var n = this.lastNode; + if (n && n.type === s.ElementType.Text) + n.data += c, this.options.withEndIndices && (n.endIndex = this.parser.endIndex); else { - var n = new s.Text(o); - this.addNode(n), this.lastNode = n; + var l = new a.Text(c); + this.addNode(l), this.lastNode = l; } - }, a.prototype.oncomment = function(o) { - if (this.lastNode && this.lastNode.type === c.ElementType.Comment) { - this.lastNode.data += o; + }, i.prototype.oncomment = function(c) { + if (this.lastNode && this.lastNode.type === s.ElementType.Comment) { + this.lastNode.data += c; return; } - var r = new s.Comment(o); - this.addNode(r), this.lastNode = r; - }, a.prototype.oncommentend = function() { + var n = new a.Comment(c); + this.addNode(n), this.lastNode = n; + }, i.prototype.oncommentend = function() { this.lastNode = null; - }, a.prototype.oncdatastart = function() { - var o = new s.Text(""), r = new s.CDATA([o]); - this.addNode(r), o.parent = r, this.lastNode = o; - }, a.prototype.oncdataend = function() { + }, i.prototype.oncdatastart = function() { + var c = new a.Text(""), n = new a.CDATA([c]); + this.addNode(n), c.parent = n, this.lastNode = c; + }, i.prototype.oncdataend = function() { this.lastNode = null; - }, a.prototype.onprocessinginstruction = function(o, r) { - var n = new s.ProcessingInstruction(o, r); - this.addNode(n); - }, a.prototype.handleCallback = function(o) { + }, i.prototype.onprocessinginstruction = function(c, n) { + var l = new a.ProcessingInstruction(c, n); + this.addNode(l); + }, i.prototype.handleCallback = function(c) { if (typeof this.callback == "function") - this.callback(o, this.dom); - else if (o) - throw o; - }, a.prototype.addNode = function(o) { - var r = this.tagStack[this.tagStack.length - 1], n = r.children[r.children.length - 1]; - this.options.withStartIndices && (o.startIndex = this.parser.startIndex), this.options.withEndIndices && (o.endIndex = this.parser.endIndex), r.children.push(o), n && (o.prev = n, n.next = o), o.parent = r, this.lastNode = null; - }, a; + this.callback(c, this.dom); + else if (c) + throw c; + }, i.prototype.addNode = function(c) { + var n = this.tagStack[this.tagStack.length - 1], l = n.children[n.children.length - 1]; + this.options.withStartIndices && (c.startIndex = this.parser.startIndex), this.options.withEndIndices && (c.endIndex = this.parser.endIndex), n.children.push(c), l && (c.prev = l, l.next = c), c.parent = n, this.lastNode = null; + }, i; })() ); - e.DomHandler = l, e.default = l; - })(Fe)), Fe; + e.DomHandler = o, e.default = o; + })(Oe)), Oe; } -var Se = {}, fe = {}, X = {}, Pu = {}, se = {}, nu = {}, C0; -function Fs() { - return C0 || (C0 = 1, Object.defineProperty(nu, "__esModule", { value: !0 }), nu.default = new Uint16Array( +var Qe = {}, xe = {}, ue = {}, Wu = {}, be = {}, cu = {}, Er; +function Os() { + return Er || (Er = 1, Object.defineProperty(cu, "__esModule", { value: !0 }), cu.default = new Uint16Array( // prettier-ignore 'ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e) { return e.charCodeAt(0); }) - )), nu; + )), cu; } -var au = {}, v0; -function Ss() { - return v0 || (v0 = 1, Object.defineProperty(au, "__esModule", { value: !0 }), au.default = new Uint16Array( +var ou = {}, _r; +function Qs() { + return _r || (_r = 1, Object.defineProperty(ou, "__esModule", { value: !0 }), ou.default = new Uint16Array( // prettier-ignore "Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e) { return e.charCodeAt(0); }) - )), au; + )), ou; } -var Gu = {}, E0; -function D0() { - return E0 || (E0 = 1, (function(e) { +var Uu = {}, Ir; +function kr() { + return Ir || (Ir = 1, (function(e) { var u; Object.defineProperty(e, "__esModule", { value: !0 }), e.replaceCodePoint = e.fromCodePoint = void 0; var t = /* @__PURE__ */ new Map([ @@ -5014,166 +5123,166 @@ function D0() { [159, 376] ]); e.fromCodePoint = // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins - (u = String.fromCodePoint) !== null && u !== void 0 ? u : function(i) { - var l = ""; - return i > 65535 && (i -= 65536, l += String.fromCharCode(i >>> 10 & 1023 | 55296), i = 56320 | i & 1023), l += String.fromCharCode(i), l; + (u = String.fromCodePoint) !== null && u !== void 0 ? u : function(r) { + var o = ""; + return r > 65535 && (r -= 65536, o += String.fromCharCode(r >>> 10 & 1023 | 55296), r = 56320 | r & 1023), o += String.fromCharCode(r), o; }; - function c(i) { - var l; - return i >= 55296 && i <= 57343 || i > 1114111 ? 65533 : (l = t.get(i)) !== null && l !== void 0 ? l : i; - } - e.replaceCodePoint = c; - function s(i) { - return (0, e.fromCodePoint)(c(i)); - } - e.default = s; - })(Gu)), Gu; -} -var I0; -function _0() { - return I0 || (I0 = 1, (function(e) { - var u = se && se.__createBinding || (Object.create ? (function(E, k, F, T) { - T === void 0 && (T = F); - var B = Object.getOwnPropertyDescriptor(k, F); - (!B || ("get" in B ? !k.__esModule : B.writable || B.configurable)) && (B = { enumerable: !0, get: function() { - return k[F]; - } }), Object.defineProperty(E, T, B); - }) : (function(E, k, F, T) { - T === void 0 && (T = F), E[T] = k[F]; - })), t = se && se.__setModuleDefault || (Object.create ? (function(E, k) { - Object.defineProperty(E, "default", { enumerable: !0, value: k }); - }) : function(E, k) { - E.default = k; - }), c = se && se.__importStar || function(E) { - if (E && E.__esModule) return E; + function s(r) { + var o; + return r >= 55296 && r <= 57343 || r > 1114111 ? 65533 : (o = t.get(r)) !== null && o !== void 0 ? o : r; + } + e.replaceCodePoint = s; + function a(r) { + return (0, e.fromCodePoint)(s(r)); + } + e.default = a; + })(Uu)), Uu; +} +var Br; +function Fr() { + return Br || (Br = 1, (function(e) { + var u = be && be.__createBinding || (Object.create ? (function(v, k, S, F) { + F === void 0 && (F = S); + var I = Object.getOwnPropertyDescriptor(k, S); + (!I || ("get" in I ? !k.__esModule : I.writable || I.configurable)) && (I = { enumerable: !0, get: function() { + return k[S]; + } }), Object.defineProperty(v, F, I); + }) : (function(v, k, S, F) { + F === void 0 && (F = S), v[F] = k[S]; + })), t = be && be.__setModuleDefault || (Object.create ? (function(v, k) { + Object.defineProperty(v, "default", { enumerable: !0, value: k }); + }) : function(v, k) { + v.default = k; + }), s = be && be.__importStar || function(v) { + if (v && v.__esModule) return v; var k = {}; - if (E != null) for (var F in E) F !== "default" && Object.prototype.hasOwnProperty.call(E, F) && u(k, E, F); - return t(k, E), k; - }, s = se && se.__importDefault || function(E) { - return E && E.__esModule ? E : { default: E }; + if (v != null) for (var S in v) S !== "default" && Object.prototype.hasOwnProperty.call(v, S) && u(k, v, S); + return t(k, v), k; + }, a = be && be.__importDefault || function(v) { + return v && v.__esModule ? v : { default: v }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.decodeXML = e.decodeHTMLStrict = e.decodeHTMLAttribute = e.decodeHTML = e.determineBranch = e.EntityDecoder = e.DecodingMode = e.BinTrieFlags = e.fromCodePoint = e.replaceCodePoint = e.decodeCodePoint = e.xmlDecodeTree = e.htmlDecodeTree = void 0; - var i = s(/* @__PURE__ */ Fs()); - e.htmlDecodeTree = i.default; - var l = s(/* @__PURE__ */ Ss()); - e.xmlDecodeTree = l.default; - var a = c(/* @__PURE__ */ D0()); - e.decodeCodePoint = a.default; - var o = /* @__PURE__ */ D0(); + var r = a(/* @__PURE__ */ Os()); + e.htmlDecodeTree = r.default; + var o = a(/* @__PURE__ */ Qs()); + e.xmlDecodeTree = o.default; + var i = s(/* @__PURE__ */ kr()); + e.decodeCodePoint = i.default; + var c = /* @__PURE__ */ kr(); Object.defineProperty(e, "replaceCodePoint", { enumerable: !0, get: function() { - return o.replaceCodePoint; + return c.replaceCodePoint; } }), Object.defineProperty(e, "fromCodePoint", { enumerable: !0, get: function() { - return o.fromCodePoint; + return c.fromCodePoint; } }); - var r; - (function(E) { - E[E.NUM = 35] = "NUM", E[E.SEMI = 59] = "SEMI", E[E.EQUALS = 61] = "EQUALS", E[E.ZERO = 48] = "ZERO", E[E.NINE = 57] = "NINE", E[E.LOWER_A = 97] = "LOWER_A", E[E.LOWER_F = 102] = "LOWER_F", E[E.LOWER_X = 120] = "LOWER_X", E[E.LOWER_Z = 122] = "LOWER_Z", E[E.UPPER_A = 65] = "UPPER_A", E[E.UPPER_F = 70] = "UPPER_F", E[E.UPPER_Z = 90] = "UPPER_Z"; - })(r || (r = {})); - var n = 32, f; - (function(E) { - E[E.VALUE_LENGTH = 49152] = "VALUE_LENGTH", E[E.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", E[E.JUMP_TABLE = 127] = "JUMP_TABLE"; + var n; + (function(v) { + v[v.NUM = 35] = "NUM", v[v.SEMI = 59] = "SEMI", v[v.EQUALS = 61] = "EQUALS", v[v.ZERO = 48] = "ZERO", v[v.NINE = 57] = "NINE", v[v.LOWER_A = 97] = "LOWER_A", v[v.LOWER_F = 102] = "LOWER_F", v[v.LOWER_X = 120] = "LOWER_X", v[v.LOWER_Z = 122] = "LOWER_Z", v[v.UPPER_A = 65] = "UPPER_A", v[v.UPPER_F = 70] = "UPPER_F", v[v.UPPER_Z = 90] = "UPPER_Z"; + })(n || (n = {})); + var l = 32, f; + (function(v) { + v[v.VALUE_LENGTH = 49152] = "VALUE_LENGTH", v[v.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", v[v.JUMP_TABLE = 127] = "JUMP_TABLE"; })(f = e.BinTrieFlags || (e.BinTrieFlags = {})); - function d(E) { - return E >= r.ZERO && E <= r.NINE; + function A(v) { + return v >= n.ZERO && v <= n.NINE; } - function A(E) { - return E >= r.UPPER_A && E <= r.UPPER_F || E >= r.LOWER_A && E <= r.LOWER_F; + function d(v) { + return v >= n.UPPER_A && v <= n.UPPER_F || v >= n.LOWER_A && v <= n.LOWER_F; } - function h(E) { - return E >= r.UPPER_A && E <= r.UPPER_Z || E >= r.LOWER_A && E <= r.LOWER_Z || d(E); + function h(v) { + return v >= n.UPPER_A && v <= n.UPPER_Z || v >= n.LOWER_A && v <= n.LOWER_Z || A(v); } - function w(E) { - return E === r.EQUALS || h(E); + function y(v) { + return v === n.EQUALS || h(v); } var C; - (function(E) { - E[E.EntityStart = 0] = "EntityStart", E[E.NumericStart = 1] = "NumericStart", E[E.NumericDecimal = 2] = "NumericDecimal", E[E.NumericHex = 3] = "NumericHex", E[E.NamedEntity = 4] = "NamedEntity"; + (function(v) { + v[v.EntityStart = 0] = "EntityStart", v[v.NumericStart = 1] = "NumericStart", v[v.NumericDecimal = 2] = "NumericDecimal", v[v.NumericHex = 3] = "NumericHex", v[v.NamedEntity = 4] = "NamedEntity"; })(C || (C = {})); - var b; - (function(E) { - E[E.Legacy = 0] = "Legacy", E[E.Strict = 1] = "Strict", E[E.Attribute = 2] = "Attribute"; - })(b = e.DecodingMode || (e.DecodingMode = {})); - var m = ( + var w; + (function(v) { + v[v.Legacy = 0] = "Legacy", v[v.Strict = 1] = "Strict", v[v.Attribute = 2] = "Attribute"; + })(w = e.DecodingMode || (e.DecodingMode = {})); + var b = ( /** @class */ (function() { - function E(k, F, T) { - this.decodeTree = k, this.emitCodePoint = F, this.errors = T, this.state = C.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = b.Strict; + function v(k, S, F) { + this.decodeTree = k, this.emitCodePoint = S, this.errors = F, this.state = C.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = w.Strict; } - return E.prototype.startEntity = function(k) { + return v.prototype.startEntity = function(k) { this.decodeMode = k, this.state = C.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1; - }, E.prototype.write = function(k, F) { + }, v.prototype.write = function(k, S) { switch (this.state) { case C.EntityStart: - return k.charCodeAt(F) === r.NUM ? (this.state = C.NumericStart, this.consumed += 1, this.stateNumericStart(k, F + 1)) : (this.state = C.NamedEntity, this.stateNamedEntity(k, F)); + return k.charCodeAt(S) === n.NUM ? (this.state = C.NumericStart, this.consumed += 1, this.stateNumericStart(k, S + 1)) : (this.state = C.NamedEntity, this.stateNamedEntity(k, S)); case C.NumericStart: - return this.stateNumericStart(k, F); + return this.stateNumericStart(k, S); case C.NumericDecimal: - return this.stateNumericDecimal(k, F); + return this.stateNumericDecimal(k, S); case C.NumericHex: - return this.stateNumericHex(k, F); + return this.stateNumericHex(k, S); case C.NamedEntity: - return this.stateNamedEntity(k, F); + return this.stateNamedEntity(k, S); } - }, E.prototype.stateNumericStart = function(k, F) { - return F >= k.length ? -1 : (k.charCodeAt(F) | n) === r.LOWER_X ? (this.state = C.NumericHex, this.consumed += 1, this.stateNumericHex(k, F + 1)) : (this.state = C.NumericDecimal, this.stateNumericDecimal(k, F)); - }, E.prototype.addToNumericResult = function(k, F, T, B) { - if (F !== T) { - var O = T - F; - this.result = this.result * Math.pow(B, O) + parseInt(k.substr(F, O), B), this.consumed += O; + }, v.prototype.stateNumericStart = function(k, S) { + return S >= k.length ? -1 : (k.charCodeAt(S) | l) === n.LOWER_X ? (this.state = C.NumericHex, this.consumed += 1, this.stateNumericHex(k, S + 1)) : (this.state = C.NumericDecimal, this.stateNumericDecimal(k, S)); + }, v.prototype.addToNumericResult = function(k, S, F, I) { + if (S !== F) { + var T = F - S; + this.result = this.result * Math.pow(I, T) + parseInt(k.substr(S, T), I), this.consumed += T; } - }, E.prototype.stateNumericHex = function(k, F) { - for (var T = F; F < k.length; ) { - var B = k.charCodeAt(F); - if (d(B) || A(B)) - F += 1; + }, v.prototype.stateNumericHex = function(k, S) { + for (var F = S; S < k.length; ) { + var I = k.charCodeAt(S); + if (A(I) || d(I)) + S += 1; else - return this.addToNumericResult(k, T, F, 16), this.emitNumericEntity(B, 3); + return this.addToNumericResult(k, F, S, 16), this.emitNumericEntity(I, 3); } - return this.addToNumericResult(k, T, F, 16), -1; - }, E.prototype.stateNumericDecimal = function(k, F) { - for (var T = F; F < k.length; ) { - var B = k.charCodeAt(F); - if (d(B)) - F += 1; + return this.addToNumericResult(k, F, S, 16), -1; + }, v.prototype.stateNumericDecimal = function(k, S) { + for (var F = S; S < k.length; ) { + var I = k.charCodeAt(S); + if (A(I)) + S += 1; else - return this.addToNumericResult(k, T, F, 10), this.emitNumericEntity(B, 2); + return this.addToNumericResult(k, F, S, 10), this.emitNumericEntity(I, 2); } - return this.addToNumericResult(k, T, F, 10), -1; - }, E.prototype.emitNumericEntity = function(k, F) { - var T; - if (this.consumed <= F) - return (T = this.errors) === null || T === void 0 || T.absenceOfDigitsInNumericCharacterReference(this.consumed), 0; - if (k === r.SEMI) + return this.addToNumericResult(k, F, S, 10), -1; + }, v.prototype.emitNumericEntity = function(k, S) { + var F; + if (this.consumed <= S) + return (F = this.errors) === null || F === void 0 || F.absenceOfDigitsInNumericCharacterReference(this.consumed), 0; + if (k === n.SEMI) this.consumed += 1; - else if (this.decodeMode === b.Strict) + else if (this.decodeMode === w.Strict) return 0; - return this.emitCodePoint((0, a.replaceCodePoint)(this.result), this.consumed), this.errors && (k !== r.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed; - }, E.prototype.stateNamedEntity = function(k, F) { - for (var T = this.decodeTree, B = T[this.treeIndex], O = (B & f.VALUE_LENGTH) >> 14; F < k.length; F++, this.excess++) { - var Q = k.charCodeAt(F); - if (this.treeIndex = x(T, B, this.treeIndex + Math.max(1, O), Q), this.treeIndex < 0) + return this.emitCodePoint((0, i.replaceCodePoint)(this.result), this.consumed), this.errors && (k !== n.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed; + }, v.prototype.stateNamedEntity = function(k, S) { + for (var F = this.decodeTree, I = F[this.treeIndex], T = (I & f.VALUE_LENGTH) >> 14; S < k.length; S++, this.excess++) { + var M = k.charCodeAt(S); + if (this.treeIndex = m(F, I, this.treeIndex + Math.max(1, T), M), this.treeIndex < 0) return this.result === 0 || // If we are parsing an attribute - this.decodeMode === b.Attribute && // We shouldn't have consumed any characters after the entity, - (O === 0 || // And there should be no invalid characters. - w(Q)) ? 0 : this.emitNotTerminatedNamedEntity(); - if (B = T[this.treeIndex], O = (B & f.VALUE_LENGTH) >> 14, O !== 0) { - if (Q === r.SEMI) - return this.emitNamedEntityData(this.treeIndex, O, this.consumed + this.excess); - this.decodeMode !== b.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0); + this.decodeMode === w.Attribute && // We shouldn't have consumed any characters after the entity, + (T === 0 || // And there should be no invalid characters. + y(M)) ? 0 : this.emitNotTerminatedNamedEntity(); + if (I = F[this.treeIndex], T = (I & f.VALUE_LENGTH) >> 14, T !== 0) { + if (M === n.SEMI) + return this.emitNamedEntityData(this.treeIndex, T, this.consumed + this.excess); + this.decodeMode !== w.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0); } } return -1; - }, E.prototype.emitNotTerminatedNamedEntity = function() { - var k, F = this, T = F.result, B = F.decodeTree, O = (B[T] & f.VALUE_LENGTH) >> 14; - return this.emitNamedEntityData(T, O, this.consumed), (k = this.errors) === null || k === void 0 || k.missingSemicolonAfterCharacterReference(), this.consumed; - }, E.prototype.emitNamedEntityData = function(k, F, T) { - var B = this.decodeTree; - return this.emitCodePoint(F === 1 ? B[k] & ~f.VALUE_LENGTH : B[k + 1], T), F === 3 && this.emitCodePoint(B[k + 2], T), T; - }, E.prototype.end = function() { + }, v.prototype.emitNotTerminatedNamedEntity = function() { + var k, S = this, F = S.result, I = S.decodeTree, T = (I[F] & f.VALUE_LENGTH) >> 14; + return this.emitNamedEntityData(F, T, this.consumed), (k = this.errors) === null || k === void 0 || k.missingSemicolonAfterCharacterReference(), this.consumed; + }, v.prototype.emitNamedEntityData = function(k, S, F) { + var I = this.decodeTree; + return this.emitCodePoint(S === 1 ? I[k] & ~f.VALUE_LENGTH : I[k + 1], F), S === 3 && this.emitCodePoint(I[k + 2], F), F; + }, v.prototype.end = function() { var k; switch (this.state) { case C.NamedEntity: - return this.result !== 0 && (this.decodeMode !== b.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0; + return this.result !== 0 && (this.decodeMode !== w.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0; // Otherwise, emit a numeric entity if we have one. case C.NumericDecimal: return this.emitNumericEntity(0, 2); @@ -5184,85 +5293,85 @@ function _0() { case C.EntityStart: return 0; } - }, E; + }, v; })() ); - e.EntityDecoder = m; - function g(E) { - var k = "", F = new m(E, function(T) { - return k += (0, a.fromCodePoint)(T); + e.EntityDecoder = b; + function x(v) { + var k = "", S = new b(v, function(F) { + return k += (0, i.fromCodePoint)(F); }); - return function(B, O) { - for (var Q = 0, L = 0; (L = B.indexOf("&", L)) >= 0; ) { - k += B.slice(Q, L), F.startEntity(O); - var K = F.write( - B, + return function(I, T) { + for (var M = 0, N = 0; (N = I.indexOf("&", N)) >= 0; ) { + k += I.slice(M, N), S.startEntity(T); + var P = S.write( + I, // Skip the "&" - L + 1 + N + 1 ); - if (K < 0) { - Q = L + F.end(); + if (P < 0) { + M = N + S.end(); break; } - Q = L + K, L = K === 0 ? Q + 1 : Q; + M = N + P, N = P === 0 ? M + 1 : M; } - var j = k + B.slice(Q); - return k = "", j; + var G = k + I.slice(M); + return k = "", G; }; } - function x(E, k, F, T) { - var B = (k & f.BRANCH_LENGTH) >> 7, O = k & f.JUMP_TABLE; - if (B === 0) - return O !== 0 && T === O ? F : -1; - if (O) { - var Q = T - O; - return Q < 0 || Q >= B ? -1 : E[F + Q] - 1; - } - for (var L = F, K = L + B - 1; L <= K; ) { - var j = L + K >>> 1, ee = E[j]; - if (ee < T) - L = j + 1; - else if (ee > T) - K = j - 1; + function m(v, k, S, F) { + var I = (k & f.BRANCH_LENGTH) >> 7, T = k & f.JUMP_TABLE; + if (I === 0) + return T !== 0 && F === T ? S : -1; + if (T) { + var M = F - T; + return M < 0 || M >= I ? -1 : v[S + M] - 1; + } + for (var N = S, P = N + I - 1; N <= P; ) { + var G = N + P >>> 1, H = v[G]; + if (H < F) + N = G + 1; + else if (H > F) + P = G - 1; else - return E[j + B]; + return v[G + I]; } return -1; } - e.determineBranch = x; - var p = g(i.default), y = g(l.default); - function v(E, k) { - return k === void 0 && (k = b.Legacy), p(E, k); + e.determineBranch = m; + var p = x(r.default), g = x(o.default); + function D(v, k) { + return k === void 0 && (k = w.Legacy), p(v, k); } - e.decodeHTML = v; - function I(E) { - return p(E, b.Attribute); + e.decodeHTML = D; + function B(v) { + return p(v, w.Attribute); } - e.decodeHTMLAttribute = I; - function D(E) { - return p(E, b.Strict); + e.decodeHTMLAttribute = B; + function E(v) { + return p(v, w.Strict); } - e.decodeHTMLStrict = D; - function _(E) { - return y(E, b.Strict); + e.decodeHTMLStrict = E; + function _(v) { + return g(v, w.Strict); } e.decodeXML = _; - })(se)), se; + })(be)), be; } -var ge = {}, su = {}, k0; -function Rs() { - if (k0) return su; - k0 = 1, Object.defineProperty(su, "__esModule", { value: !0 }); +var Ee = {}, lu = {}, Sr; +function Ls() { + if (Sr) return lu; + Sr = 1, Object.defineProperty(lu, "__esModule", { value: !0 }); function e(u) { for (var t = 1; t < u.length; t++) u[t][0] += u[t - 1][0] + 1; return u; } - return su.default = new Map(/* @__PURE__ */ e([[9, " "], [0, " "], [22, "!"], [0, """], [0, "#"], [0, "$"], [0, "%"], [0, "&"], [0, "'"], [0, "("], [0, ")"], [0, "*"], [0, "+"], [0, ","], [1, "."], [0, "/"], [10, ":"], [0, ";"], [0, { v: "<", n: 8402, o: "<⃒" }], [0, { v: "=", n: 8421, o: "=⃥" }], [0, { v: ">", n: 8402, o: ">⃒" }], [0, "?"], [0, "@"], [26, "["], [0, "\"], [0, "]"], [0, "^"], [0, "_"], [0, "`"], [5, { n: 106, o: "fj" }], [20, "{"], [0, "|"], [0, "}"], [34, " "], [0, "¡"], [0, "¢"], [0, "£"], [0, "¤"], [0, "¥"], [0, "¦"], [0, "§"], [0, "¨"], [0, "©"], [0, "ª"], [0, "«"], [0, "¬"], [0, "­"], [0, "®"], [0, "¯"], [0, "°"], [0, "±"], [0, "²"], [0, "³"], [0, "´"], [0, "µ"], [0, "¶"], [0, "·"], [0, "¸"], [0, "¹"], [0, "º"], [0, "»"], [0, "¼"], [0, "½"], [0, "¾"], [0, "¿"], [0, "À"], [0, "Á"], [0, "Â"], [0, "Ã"], [0, "Ä"], [0, "Å"], [0, "Æ"], [0, "Ç"], [0, "È"], [0, "É"], [0, "Ê"], [0, "Ë"], [0, "Ì"], [0, "Í"], [0, "Î"], [0, "Ï"], [0, "Ð"], [0, "Ñ"], [0, "Ò"], [0, "Ó"], [0, "Ô"], [0, "Õ"], [0, "Ö"], [0, "×"], [0, "Ø"], [0, "Ù"], [0, "Ú"], [0, "Û"], [0, "Ü"], [0, "Ý"], [0, "Þ"], [0, "ß"], [0, "à"], [0, "á"], [0, "â"], [0, "ã"], [0, "ä"], [0, "å"], [0, "æ"], [0, "ç"], [0, "è"], [0, "é"], [0, "ê"], [0, "ë"], [0, "ì"], [0, "í"], [0, "î"], [0, "ï"], [0, "ð"], [0, "ñ"], [0, "ò"], [0, "ó"], [0, "ô"], [0, "õ"], [0, "ö"], [0, "÷"], [0, "ø"], [0, "ù"], [0, "ú"], [0, "û"], [0, "ü"], [0, "ý"], [0, "þ"], [0, "ÿ"], [0, "Ā"], [0, "ā"], [0, "Ă"], [0, "ă"], [0, "Ą"], [0, "ą"], [0, "Ć"], [0, "ć"], [0, "Ĉ"], [0, "ĉ"], [0, "Ċ"], [0, "ċ"], [0, "Č"], [0, "č"], [0, "Ď"], [0, "ď"], [0, "Đ"], [0, "đ"], [0, "Ē"], [0, "ē"], [2, "Ė"], [0, "ė"], [0, "Ę"], [0, "ę"], [0, "Ě"], [0, "ě"], [0, "Ĝ"], [0, "ĝ"], [0, "Ğ"], [0, "ğ"], [0, "Ġ"], [0, "ġ"], [0, "Ģ"], [1, "Ĥ"], [0, "ĥ"], [0, "Ħ"], [0, "ħ"], [0, "Ĩ"], [0, "ĩ"], [0, "Ī"], [0, "ī"], [2, "Į"], [0, "į"], [0, "İ"], [0, "ı"], [0, "IJ"], [0, "ij"], [0, "Ĵ"], [0, "ĵ"], [0, "Ķ"], [0, "ķ"], [0, "ĸ"], [0, "Ĺ"], [0, "ĺ"], [0, "Ļ"], [0, "ļ"], [0, "Ľ"], [0, "ľ"], [0, "Ŀ"], [0, "ŀ"], [0, "Ł"], [0, "ł"], [0, "Ń"], [0, "ń"], [0, "Ņ"], [0, "ņ"], [0, "Ň"], [0, "ň"], [0, "ʼn"], [0, "Ŋ"], [0, "ŋ"], [0, "Ō"], [0, "ō"], [2, "Ő"], [0, "ő"], [0, "Œ"], [0, "œ"], [0, "Ŕ"], [0, "ŕ"], [0, "Ŗ"], [0, "ŗ"], [0, "Ř"], [0, "ř"], [0, "Ś"], [0, "ś"], [0, "Ŝ"], [0, "ŝ"], [0, "Ş"], [0, "ş"], [0, "Š"], [0, "š"], [0, "Ţ"], [0, "ţ"], [0, "Ť"], [0, "ť"], [0, "Ŧ"], [0, "ŧ"], [0, "Ũ"], [0, "ũ"], [0, "Ū"], [0, "ū"], [0, "Ŭ"], [0, "ŭ"], [0, "Ů"], [0, "ů"], [0, "Ű"], [0, "ű"], [0, "Ų"], [0, "ų"], [0, "Ŵ"], [0, "ŵ"], [0, "Ŷ"], [0, "ŷ"], [0, "Ÿ"], [0, "Ź"], [0, "ź"], [0, "Ż"], [0, "ż"], [0, "Ž"], [0, "ž"], [19, "ƒ"], [34, "Ƶ"], [63, "ǵ"], [65, "ȷ"], [142, "ˆ"], [0, "ˇ"], [16, "˘"], [0, "˙"], [0, "˚"], [0, "˛"], [0, "˜"], [0, "˝"], [51, "̑"], [127, "Α"], [0, "Β"], [0, "Γ"], [0, "Δ"], [0, "Ε"], [0, "Ζ"], [0, "Η"], [0, "Θ"], [0, "Ι"], [0, "Κ"], [0, "Λ"], [0, "Μ"], [0, "Ν"], [0, "Ξ"], [0, "Ο"], [0, "Π"], [0, "Ρ"], [1, "Σ"], [0, "Τ"], [0, "Υ"], [0, "Φ"], [0, "Χ"], [0, "Ψ"], [0, "Ω"], [7, "α"], [0, "β"], [0, "γ"], [0, "δ"], [0, "ε"], [0, "ζ"], [0, "η"], [0, "θ"], [0, "ι"], [0, "κ"], [0, "λ"], [0, "μ"], [0, "ν"], [0, "ξ"], [0, "ο"], [0, "π"], [0, "ρ"], [0, "ς"], [0, "σ"], [0, "τ"], [0, "υ"], [0, "φ"], [0, "χ"], [0, "ψ"], [0, "ω"], [7, "ϑ"], [0, "ϒ"], [2, "ϕ"], [0, "ϖ"], [5, "Ϝ"], [0, "ϝ"], [18, "ϰ"], [0, "ϱ"], [3, "ϵ"], [0, "϶"], [10, "Ё"], [0, "Ђ"], [0, "Ѓ"], [0, "Є"], [0, "Ѕ"], [0, "І"], [0, "Ї"], [0, "Ј"], [0, "Љ"], [0, "Њ"], [0, "Ћ"], [0, "Ќ"], [1, "Ў"], [0, "Џ"], [0, "А"], [0, "Б"], [0, "В"], [0, "Г"], [0, "Д"], [0, "Е"], [0, "Ж"], [0, "З"], [0, "И"], [0, "Й"], [0, "К"], [0, "Л"], [0, "М"], [0, "Н"], [0, "О"], [0, "П"], [0, "Р"], [0, "С"], [0, "Т"], [0, "У"], [0, "Ф"], [0, "Х"], [0, "Ц"], [0, "Ч"], [0, "Ш"], [0, "Щ"], [0, "Ъ"], [0, "Ы"], [0, "Ь"], [0, "Э"], [0, "Ю"], [0, "Я"], [0, "а"], [0, "б"], [0, "в"], [0, "г"], [0, "д"], [0, "е"], [0, "ж"], [0, "з"], [0, "и"], [0, "й"], [0, "к"], [0, "л"], [0, "м"], [0, "н"], [0, "о"], [0, "п"], [0, "р"], [0, "с"], [0, "т"], [0, "у"], [0, "ф"], [0, "х"], [0, "ц"], [0, "ч"], [0, "ш"], [0, "щ"], [0, "ъ"], [0, "ы"], [0, "ь"], [0, "э"], [0, "ю"], [0, "я"], [1, "ё"], [0, "ђ"], [0, "ѓ"], [0, "є"], [0, "ѕ"], [0, "і"], [0, "ї"], [0, "ј"], [0, "љ"], [0, "њ"], [0, "ћ"], [0, "ќ"], [1, "ў"], [0, "џ"], [7074, " "], [0, " "], [0, " "], [0, " "], [1, " "], [0, " "], [0, " "], [0, " "], [0, "​"], [0, "‌"], [0, "‍"], [0, "‎"], [0, "‏"], [0, "‐"], [2, "–"], [0, "—"], [0, "―"], [0, "‖"], [1, "‘"], [0, "’"], [0, "‚"], [1, "“"], [0, "”"], [0, "„"], [1, "†"], [0, "‡"], [0, "•"], [2, "‥"], [0, "…"], [9, "‰"], [0, "‱"], [0, "′"], [0, "″"], [0, "‴"], [0, "‵"], [3, "‹"], [0, "›"], [3, "‾"], [2, "⁁"], [1, "⁃"], [0, "⁄"], [10, "⁏"], [7, "⁗"], [7, { v: " ", n: 8202, o: "  " }], [0, "⁠"], [0, "⁡"], [0, "⁢"], [0, "⁣"], [72, "€"], [46, "⃛"], [0, "⃜"], [37, "ℂ"], [2, "℅"], [4, "ℊ"], [0, "ℋ"], [0, "ℌ"], [0, "ℍ"], [0, "ℎ"], [0, "ℏ"], [0, "ℐ"], [0, "ℑ"], [0, "ℒ"], [0, "ℓ"], [1, "ℕ"], [0, "№"], [0, "℗"], [0, "℘"], [0, "ℙ"], [0, "ℚ"], [0, "ℛ"], [0, "ℜ"], [0, "ℝ"], [0, "℞"], [3, "™"], [1, "ℤ"], [2, "℧"], [0, "ℨ"], [0, "℩"], [2, "ℬ"], [0, "ℭ"], [1, "ℯ"], [0, "ℰ"], [0, "ℱ"], [1, "ℳ"], [0, "ℴ"], [0, "ℵ"], [0, "ℶ"], [0, "ℷ"], [0, "ℸ"], [12, "ⅅ"], [0, "ⅆ"], [0, "ⅇ"], [0, "ⅈ"], [10, "⅓"], [0, "⅔"], [0, "⅕"], [0, "⅖"], [0, "⅗"], [0, "⅘"], [0, "⅙"], [0, "⅚"], [0, "⅛"], [0, "⅜"], [0, "⅝"], [0, "⅞"], [49, "←"], [0, "↑"], [0, "→"], [0, "↓"], [0, "↔"], [0, "↕"], [0, "↖"], [0, "↗"], [0, "↘"], [0, "↙"], [0, "↚"], [0, "↛"], [1, { v: "↝", n: 824, o: "↝̸" }], [0, "↞"], [0, "↟"], [0, "↠"], [0, "↡"], [0, "↢"], [0, "↣"], [0, "↤"], [0, "↥"], [0, "↦"], [0, "↧"], [1, "↩"], [0, "↪"], [0, "↫"], [0, "↬"], [0, "↭"], [0, "↮"], [1, "↰"], [0, "↱"], [0, "↲"], [0, "↳"], [1, "↵"], [0, "↶"], [0, "↷"], [2, "↺"], [0, "↻"], [0, "↼"], [0, "↽"], [0, "↾"], [0, "↿"], [0, "⇀"], [0, "⇁"], [0, "⇂"], [0, "⇃"], [0, "⇄"], [0, "⇅"], [0, "⇆"], [0, "⇇"], [0, "⇈"], [0, "⇉"], [0, "⇊"], [0, "⇋"], [0, "⇌"], [0, "⇍"], [0, "⇎"], [0, "⇏"], [0, "⇐"], [0, "⇑"], [0, "⇒"], [0, "⇓"], [0, "⇔"], [0, "⇕"], [0, "⇖"], [0, "⇗"], [0, "⇘"], [0, "⇙"], [0, "⇚"], [0, "⇛"], [1, "⇝"], [6, "⇤"], [0, "⇥"], [15, "⇵"], [7, "⇽"], [0, "⇾"], [0, "⇿"], [0, "∀"], [0, "∁"], [0, { v: "∂", n: 824, o: "∂̸" }], [0, "∃"], [0, "∄"], [0, "∅"], [1, "∇"], [0, "∈"], [0, "∉"], [1, "∋"], [0, "∌"], [2, "∏"], [0, "∐"], [0, "∑"], [0, "−"], [0, "∓"], [0, "∔"], [1, "∖"], [0, "∗"], [0, "∘"], [1, "√"], [2, "∝"], [0, "∞"], [0, "∟"], [0, { v: "∠", n: 8402, o: "∠⃒" }], [0, "∡"], [0, "∢"], [0, "∣"], [0, "∤"], [0, "∥"], [0, "∦"], [0, "∧"], [0, "∨"], [0, { v: "∩", n: 65024, o: "∩︀" }], [0, { v: "∪", n: 65024, o: "∪︀" }], [0, "∫"], [0, "∬"], [0, "∭"], [0, "∮"], [0, "∯"], [0, "∰"], [0, "∱"], [0, "∲"], [0, "∳"], [0, "∴"], [0, "∵"], [0, "∶"], [0, "∷"], [0, "∸"], [1, "∺"], [0, "∻"], [0, { v: "∼", n: 8402, o: "∼⃒" }], [0, { v: "∽", n: 817, o: "∽̱" }], [0, { v: "∾", n: 819, o: "∾̳" }], [0, "∿"], [0, "≀"], [0, "≁"], [0, { v: "≂", n: 824, o: "≂̸" }], [0, "≃"], [0, "≄"], [0, "≅"], [0, "≆"], [0, "≇"], [0, "≈"], [0, "≉"], [0, "≊"], [0, { v: "≋", n: 824, o: "≋̸" }], [0, "≌"], [0, { v: "≍", n: 8402, o: "≍⃒" }], [0, { v: "≎", n: 824, o: "≎̸" }], [0, { v: "≏", n: 824, o: "≏̸" }], [0, { v: "≐", n: 824, o: "≐̸" }], [0, "≑"], [0, "≒"], [0, "≓"], [0, "≔"], [0, "≕"], [0, "≖"], [0, "≗"], [1, "≙"], [0, "≚"], [1, "≜"], [2, "≟"], [0, "≠"], [0, { v: "≡", n: 8421, o: "≡⃥" }], [0, "≢"], [1, { v: "≤", n: 8402, o: "≤⃒" }], [0, { v: "≥", n: 8402, o: "≥⃒" }], [0, { v: "≦", n: 824, o: "≦̸" }], [0, { v: "≧", n: 824, o: "≧̸" }], [0, { v: "≨", n: 65024, o: "≨︀" }], [0, { v: "≩", n: 65024, o: "≩︀" }], [0, { v: "≪", n: new Map(/* @__PURE__ */ e([[824, "≪̸"], [7577, "≪⃒"]])) }], [0, { v: "≫", n: new Map(/* @__PURE__ */ e([[824, "≫̸"], [7577, "≫⃒"]])) }], [0, "≬"], [0, "≭"], [0, "≮"], [0, "≯"], [0, "≰"], [0, "≱"], [0, "≲"], [0, "≳"], [0, "≴"], [0, "≵"], [0, "≶"], [0, "≷"], [0, "≸"], [0, "≹"], [0, "≺"], [0, "≻"], [0, "≼"], [0, "≽"], [0, "≾"], [0, { v: "≿", n: 824, o: "≿̸" }], [0, "⊀"], [0, "⊁"], [0, { v: "⊂", n: 8402, o: "⊂⃒" }], [0, { v: "⊃", n: 8402, o: "⊃⃒" }], [0, "⊄"], [0, "⊅"], [0, "⊆"], [0, "⊇"], [0, "⊈"], [0, "⊉"], [0, { v: "⊊", n: 65024, o: "⊊︀" }], [0, { v: "⊋", n: 65024, o: "⊋︀" }], [1, "⊍"], [0, "⊎"], [0, { v: "⊏", n: 824, o: "⊏̸" }], [0, { v: "⊐", n: 824, o: "⊐̸" }], [0, "⊑"], [0, "⊒"], [0, { v: "⊓", n: 65024, o: "⊓︀" }], [0, { v: "⊔", n: 65024, o: "⊔︀" }], [0, "⊕"], [0, "⊖"], [0, "⊗"], [0, "⊘"], [0, "⊙"], [0, "⊚"], [0, "⊛"], [1, "⊝"], [0, "⊞"], [0, "⊟"], [0, "⊠"], [0, "⊡"], [0, "⊢"], [0, "⊣"], [0, "⊤"], [0, "⊥"], [1, "⊧"], [0, "⊨"], [0, "⊩"], [0, "⊪"], [0, "⊫"], [0, "⊬"], [0, "⊭"], [0, "⊮"], [0, "⊯"], [0, "⊰"], [1, "⊲"], [0, "⊳"], [0, { v: "⊴", n: 8402, o: "⊴⃒" }], [0, { v: "⊵", n: 8402, o: "⊵⃒" }], [0, "⊶"], [0, "⊷"], [0, "⊸"], [0, "⊹"], [0, "⊺"], [0, "⊻"], [1, "⊽"], [0, "⊾"], [0, "⊿"], [0, "⋀"], [0, "⋁"], [0, "⋂"], [0, "⋃"], [0, "⋄"], [0, "⋅"], [0, "⋆"], [0, "⋇"], [0, "⋈"], [0, "⋉"], [0, "⋊"], [0, "⋋"], [0, "⋌"], [0, "⋍"], [0, "⋎"], [0, "⋏"], [0, "⋐"], [0, "⋑"], [0, "⋒"], [0, "⋓"], [0, "⋔"], [0, "⋕"], [0, "⋖"], [0, "⋗"], [0, { v: "⋘", n: 824, o: "⋘̸" }], [0, { v: "⋙", n: 824, o: "⋙̸" }], [0, { v: "⋚", n: 65024, o: "⋚︀" }], [0, { v: "⋛", n: 65024, o: "⋛︀" }], [2, "⋞"], [0, "⋟"], [0, "⋠"], [0, "⋡"], [0, "⋢"], [0, "⋣"], [2, "⋦"], [0, "⋧"], [0, "⋨"], [0, "⋩"], [0, "⋪"], [0, "⋫"], [0, "⋬"], [0, "⋭"], [0, "⋮"], [0, "⋯"], [0, "⋰"], [0, "⋱"], [0, "⋲"], [0, "⋳"], [0, "⋴"], [0, { v: "⋵", n: 824, o: "⋵̸" }], [0, "⋶"], [0, "⋷"], [1, { v: "⋹", n: 824, o: "⋹̸" }], [0, "⋺"], [0, "⋻"], [0, "⋼"], [0, "⋽"], [0, "⋾"], [6, "⌅"], [0, "⌆"], [1, "⌈"], [0, "⌉"], [0, "⌊"], [0, "⌋"], [0, "⌌"], [0, "⌍"], [0, "⌎"], [0, "⌏"], [0, "⌐"], [1, "⌒"], [0, "⌓"], [1, "⌕"], [0, "⌖"], [5, "⌜"], [0, "⌝"], [0, "⌞"], [0, "⌟"], [2, "⌢"], [0, "⌣"], [9, "⌭"], [0, "⌮"], [7, "⌶"], [6, "⌽"], [1, "⌿"], [60, "⍼"], [51, "⎰"], [0, "⎱"], [2, "⎴"], [0, "⎵"], [0, "⎶"], [37, "⏜"], [0, "⏝"], [0, "⏞"], [0, "⏟"], [2, "⏢"], [4, "⏧"], [59, "␣"], [164, "Ⓢ"], [55, "─"], [1, "│"], [9, "┌"], [3, "┐"], [3, "└"], [3, "┘"], [3, "├"], [7, "┤"], [7, "┬"], [7, "┴"], [7, "┼"], [19, "═"], [0, "║"], [0, "╒"], [0, "╓"], [0, "╔"], [0, "╕"], [0, "╖"], [0, "╗"], [0, "╘"], [0, "╙"], [0, "╚"], [0, "╛"], [0, "╜"], [0, "╝"], [0, "╞"], [0, "╟"], [0, "╠"], [0, "╡"], [0, "╢"], [0, "╣"], [0, "╤"], [0, "╥"], [0, "╦"], [0, "╧"], [0, "╨"], [0, "╩"], [0, "╪"], [0, "╫"], [0, "╬"], [19, "▀"], [3, "▄"], [3, "█"], [8, "░"], [0, "▒"], [0, "▓"], [13, "□"], [8, "▪"], [0, "▫"], [1, "▭"], [0, "▮"], [2, "▱"], [1, "△"], [0, "▴"], [0, "▵"], [2, "▸"], [0, "▹"], [3, "▽"], [0, "▾"], [0, "▿"], [2, "◂"], [0, "◃"], [6, "◊"], [0, "○"], [32, "◬"], [2, "◯"], [8, "◸"], [0, "◹"], [0, "◺"], [0, "◻"], [0, "◼"], [8, "★"], [0, "☆"], [7, "☎"], [49, "♀"], [1, "♂"], [29, "♠"], [2, "♣"], [1, "♥"], [0, "♦"], [3, "♪"], [2, "♭"], [0, "♮"], [0, "♯"], [163, "✓"], [3, "✗"], [8, "✠"], [21, "✶"], [33, "❘"], [25, "❲"], [0, "❳"], [84, "⟈"], [0, "⟉"], [28, "⟦"], [0, "⟧"], [0, "⟨"], [0, "⟩"], [0, "⟪"], [0, "⟫"], [0, "⟬"], [0, "⟭"], [7, "⟵"], [0, "⟶"], [0, "⟷"], [0, "⟸"], [0, "⟹"], [0, "⟺"], [1, "⟼"], [2, "⟿"], [258, "⤂"], [0, "⤃"], [0, "⤄"], [0, "⤅"], [6, "⤌"], [0, "⤍"], [0, "⤎"], [0, "⤏"], [0, "⤐"], [0, "⤑"], [0, "⤒"], [0, "⤓"], [2, "⤖"], [2, "⤙"], [0, "⤚"], [0, "⤛"], [0, "⤜"], [0, "⤝"], [0, "⤞"], [0, "⤟"], [0, "⤠"], [2, "⤣"], [0, "⤤"], [0, "⤥"], [0, "⤦"], [0, "⤧"], [0, "⤨"], [0, "⤩"], [0, "⤪"], [8, { v: "⤳", n: 824, o: "⤳̸" }], [1, "⤵"], [0, "⤶"], [0, "⤷"], [0, "⤸"], [0, "⤹"], [2, "⤼"], [0, "⤽"], [7, "⥅"], [2, "⥈"], [0, "⥉"], [0, "⥊"], [0, "⥋"], [2, "⥎"], [0, "⥏"], [0, "⥐"], [0, "⥑"], [0, "⥒"], [0, "⥓"], [0, "⥔"], [0, "⥕"], [0, "⥖"], [0, "⥗"], [0, "⥘"], [0, "⥙"], [0, "⥚"], [0, "⥛"], [0, "⥜"], [0, "⥝"], [0, "⥞"], [0, "⥟"], [0, "⥠"], [0, "⥡"], [0, "⥢"], [0, "⥣"], [0, "⥤"], [0, "⥥"], [0, "⥦"], [0, "⥧"], [0, "⥨"], [0, "⥩"], [0, "⥪"], [0, "⥫"], [0, "⥬"], [0, "⥭"], [0, "⥮"], [0, "⥯"], [0, "⥰"], [0, "⥱"], [0, "⥲"], [0, "⥳"], [0, "⥴"], [0, "⥵"], [0, "⥶"], [1, "⥸"], [0, "⥹"], [1, "⥻"], [0, "⥼"], [0, "⥽"], [0, "⥾"], [0, "⥿"], [5, "⦅"], [0, "⦆"], [4, "⦋"], [0, "⦌"], [0, "⦍"], [0, "⦎"], [0, "⦏"], [0, "⦐"], [0, "⦑"], [0, "⦒"], [0, "⦓"], [0, "⦔"], [0, "⦕"], [0, "⦖"], [3, "⦚"], [1, "⦜"], [0, "⦝"], [6, "⦤"], [0, "⦥"], [0, "⦦"], [0, "⦧"], [0, "⦨"], [0, "⦩"], [0, "⦪"], [0, "⦫"], [0, "⦬"], [0, "⦭"], [0, "⦮"], [0, "⦯"], [0, "⦰"], [0, "⦱"], [0, "⦲"], [0, "⦳"], [0, "⦴"], [0, "⦵"], [0, "⦶"], [0, "⦷"], [1, "⦹"], [1, "⦻"], [0, "⦼"], [1, "⦾"], [0, "⦿"], [0, "⧀"], [0, "⧁"], [0, "⧂"], [0, "⧃"], [0, "⧄"], [0, "⧅"], [3, "⧉"], [3, "⧍"], [0, "⧎"], [0, { v: "⧏", n: 824, o: "⧏̸" }], [0, { v: "⧐", n: 824, o: "⧐̸" }], [11, "⧜"], [0, "⧝"], [0, "⧞"], [4, "⧣"], [0, "⧤"], [0, "⧥"], [5, "⧫"], [8, "⧴"], [1, "⧶"], [9, "⨀"], [0, "⨁"], [0, "⨂"], [1, "⨄"], [1, "⨆"], [5, "⨌"], [0, "⨍"], [2, "⨐"], [0, "⨑"], [0, "⨒"], [0, "⨓"], [0, "⨔"], [0, "⨕"], [0, "⨖"], [0, "⨗"], [10, "⨢"], [0, "⨣"], [0, "⨤"], [0, "⨥"], [0, "⨦"], [0, "⨧"], [1, "⨩"], [0, "⨪"], [2, "⨭"], [0, "⨮"], [0, "⨯"], [0, "⨰"], [0, "⨱"], [1, "⨳"], [0, "⨴"], [0, "⨵"], [0, "⨶"], [0, "⨷"], [0, "⨸"], [0, "⨹"], [0, "⨺"], [0, "⨻"], [0, "⨼"], [2, "⨿"], [0, "⩀"], [1, "⩂"], [0, "⩃"], [0, "⩄"], [0, "⩅"], [0, "⩆"], [0, "⩇"], [0, "⩈"], [0, "⩉"], [0, "⩊"], [0, "⩋"], [0, "⩌"], [0, "⩍"], [2, "⩐"], [2, "⩓"], [0, "⩔"], [0, "⩕"], [0, "⩖"], [0, "⩗"], [0, "⩘"], [1, "⩚"], [0, "⩛"], [0, "⩜"], [0, "⩝"], [1, "⩟"], [6, "⩦"], [3, "⩪"], [2, { v: "⩭", n: 824, o: "⩭̸" }], [0, "⩮"], [0, "⩯"], [0, { v: "⩰", n: 824, o: "⩰̸" }], [0, "⩱"], [0, "⩲"], [0, "⩳"], [0, "⩴"], [0, "⩵"], [1, "⩷"], [0, "⩸"], [0, "⩹"], [0, "⩺"], [0, "⩻"], [0, "⩼"], [0, { v: "⩽", n: 824, o: "⩽̸" }], [0, { v: "⩾", n: 824, o: "⩾̸" }], [0, "⩿"], [0, "⪀"], [0, "⪁"], [0, "⪂"], [0, "⪃"], [0, "⪄"], [0, "⪅"], [0, "⪆"], [0, "⪇"], [0, "⪈"], [0, "⪉"], [0, "⪊"], [0, "⪋"], [0, "⪌"], [0, "⪍"], [0, "⪎"], [0, "⪏"], [0, "⪐"], [0, "⪑"], [0, "⪒"], [0, "⪓"], [0, "⪔"], [0, "⪕"], [0, "⪖"], [0, "⪗"], [0, "⪘"], [0, "⪙"], [0, "⪚"], [2, "⪝"], [0, "⪞"], [0, "⪟"], [0, "⪠"], [0, { v: "⪡", n: 824, o: "⪡̸" }], [0, { v: "⪢", n: 824, o: "⪢̸" }], [1, "⪤"], [0, "⪥"], [0, "⪦"], [0, "⪧"], [0, "⪨"], [0, "⪩"], [0, "⪪"], [0, "⪫"], [0, { v: "⪬", n: 65024, o: "⪬︀" }], [0, { v: "⪭", n: 65024, o: "⪭︀" }], [0, "⪮"], [0, { v: "⪯", n: 824, o: "⪯̸" }], [0, { v: "⪰", n: 824, o: "⪰̸" }], [2, "⪳"], [0, "⪴"], [0, "⪵"], [0, "⪶"], [0, "⪷"], [0, "⪸"], [0, "⪹"], [0, "⪺"], [0, "⪻"], [0, "⪼"], [0, "⪽"], [0, "⪾"], [0, "⪿"], [0, "⫀"], [0, "⫁"], [0, "⫂"], [0, "⫃"], [0, "⫄"], [0, { v: "⫅", n: 824, o: "⫅̸" }], [0, { v: "⫆", n: 824, o: "⫆̸" }], [0, "⫇"], [0, "⫈"], [2, { v: "⫋", n: 65024, o: "⫋︀" }], [0, { v: "⫌", n: 65024, o: "⫌︀" }], [2, "⫏"], [0, "⫐"], [0, "⫑"], [0, "⫒"], [0, "⫓"], [0, "⫔"], [0, "⫕"], [0, "⫖"], [0, "⫗"], [0, "⫘"], [0, "⫙"], [0, "⫚"], [0, "⫛"], [8, "⫤"], [1, "⫦"], [0, "⫧"], [0, "⫨"], [0, "⫩"], [1, "⫫"], [0, "⫬"], [0, "⫭"], [0, "⫮"], [0, "⫯"], [0, "⫰"], [0, "⫱"], [0, "⫲"], [0, "⫳"], [9, { v: "⫽", n: 8421, o: "⫽⃥" }], [44343, { n: new Map(/* @__PURE__ */ e([[56476, "𝒜"], [1, "𝒞"], [0, "𝒟"], [2, "𝒢"], [2, "𝒥"], [0, "𝒦"], [2, "𝒩"], [0, "𝒪"], [0, "𝒫"], [0, "𝒬"], [1, "𝒮"], [0, "𝒯"], [0, "𝒰"], [0, "𝒱"], [0, "𝒲"], [0, "𝒳"], [0, "𝒴"], [0, "𝒵"], [0, "𝒶"], [0, "𝒷"], [0, "𝒸"], [0, "𝒹"], [1, "𝒻"], [1, "𝒽"], [0, "𝒾"], [0, "𝒿"], [0, "𝓀"], [0, "𝓁"], [0, "𝓂"], [0, "𝓃"], [1, "𝓅"], [0, "𝓆"], [0, "𝓇"], [0, "𝓈"], [0, "𝓉"], [0, "𝓊"], [0, "𝓋"], [0, "𝓌"], [0, "𝓍"], [0, "𝓎"], [0, "𝓏"], [52, "𝔄"], [0, "𝔅"], [1, "𝔇"], [0, "𝔈"], [0, "𝔉"], [0, "𝔊"], [2, "𝔍"], [0, "𝔎"], [0, "𝔏"], [0, "𝔐"], [0, "𝔑"], [0, "𝔒"], [0, "𝔓"], [0, "𝔔"], [1, "𝔖"], [0, "𝔗"], [0, "𝔘"], [0, "𝔙"], [0, "𝔚"], [0, "𝔛"], [0, "𝔜"], [1, "𝔞"], [0, "𝔟"], [0, "𝔠"], [0, "𝔡"], [0, "𝔢"], [0, "𝔣"], [0, "𝔤"], [0, "𝔥"], [0, "𝔦"], [0, "𝔧"], [0, "𝔨"], [0, "𝔩"], [0, "𝔪"], [0, "𝔫"], [0, "𝔬"], [0, "𝔭"], [0, "𝔮"], [0, "𝔯"], [0, "𝔰"], [0, "𝔱"], [0, "𝔲"], [0, "𝔳"], [0, "𝔴"], [0, "𝔵"], [0, "𝔶"], [0, "𝔷"], [0, "𝔸"], [0, "𝔹"], [1, "𝔻"], [0, "𝔼"], [0, "𝔽"], [0, "𝔾"], [1, "𝕀"], [0, "𝕁"], [0, "𝕂"], [0, "𝕃"], [0, "𝕄"], [1, "𝕆"], [3, "𝕊"], [0, "𝕋"], [0, "𝕌"], [0, "𝕍"], [0, "𝕎"], [0, "𝕏"], [0, "𝕐"], [1, "𝕒"], [0, "𝕓"], [0, "𝕔"], [0, "𝕕"], [0, "𝕖"], [0, "𝕗"], [0, "𝕘"], [0, "𝕙"], [0, "𝕚"], [0, "𝕛"], [0, "𝕜"], [0, "𝕝"], [0, "𝕞"], [0, "𝕟"], [0, "𝕠"], [0, "𝕡"], [0, "𝕢"], [0, "𝕣"], [0, "𝕤"], [0, "𝕥"], [0, "𝕦"], [0, "𝕧"], [0, "𝕨"], [0, "𝕩"], [0, "𝕪"], [0, "𝕫"]])) }], [8906, "ff"], [0, "fi"], [0, "fl"], [0, "ffi"], [0, "ffl"]])), su; + return lu.default = new Map(/* @__PURE__ */ e([[9, " "], [0, " "], [22, "!"], [0, """], [0, "#"], [0, "$"], [0, "%"], [0, "&"], [0, "'"], [0, "("], [0, ")"], [0, "*"], [0, "+"], [0, ","], [1, "."], [0, "/"], [10, ":"], [0, ";"], [0, { v: "<", n: 8402, o: "<⃒" }], [0, { v: "=", n: 8421, o: "=⃥" }], [0, { v: ">", n: 8402, o: ">⃒" }], [0, "?"], [0, "@"], [26, "["], [0, "\"], [0, "]"], [0, "^"], [0, "_"], [0, "`"], [5, { n: 106, o: "fj" }], [20, "{"], [0, "|"], [0, "}"], [34, " "], [0, "¡"], [0, "¢"], [0, "£"], [0, "¤"], [0, "¥"], [0, "¦"], [0, "§"], [0, "¨"], [0, "©"], [0, "ª"], [0, "«"], [0, "¬"], [0, "­"], [0, "®"], [0, "¯"], [0, "°"], [0, "±"], [0, "²"], [0, "³"], [0, "´"], [0, "µ"], [0, "¶"], [0, "·"], [0, "¸"], [0, "¹"], [0, "º"], [0, "»"], [0, "¼"], [0, "½"], [0, "¾"], [0, "¿"], [0, "À"], [0, "Á"], [0, "Â"], [0, "Ã"], [0, "Ä"], [0, "Å"], [0, "Æ"], [0, "Ç"], [0, "È"], [0, "É"], [0, "Ê"], [0, "Ë"], [0, "Ì"], [0, "Í"], [0, "Î"], [0, "Ï"], [0, "Ð"], [0, "Ñ"], [0, "Ò"], [0, "Ó"], [0, "Ô"], [0, "Õ"], [0, "Ö"], [0, "×"], [0, "Ø"], [0, "Ù"], [0, "Ú"], [0, "Û"], [0, "Ü"], [0, "Ý"], [0, "Þ"], [0, "ß"], [0, "à"], [0, "á"], [0, "â"], [0, "ã"], [0, "ä"], [0, "å"], [0, "æ"], [0, "ç"], [0, "è"], [0, "é"], [0, "ê"], [0, "ë"], [0, "ì"], [0, "í"], [0, "î"], [0, "ï"], [0, "ð"], [0, "ñ"], [0, "ò"], [0, "ó"], [0, "ô"], [0, "õ"], [0, "ö"], [0, "÷"], [0, "ø"], [0, "ù"], [0, "ú"], [0, "û"], [0, "ü"], [0, "ý"], [0, "þ"], [0, "ÿ"], [0, "Ā"], [0, "ā"], [0, "Ă"], [0, "ă"], [0, "Ą"], [0, "ą"], [0, "Ć"], [0, "ć"], [0, "Ĉ"], [0, "ĉ"], [0, "Ċ"], [0, "ċ"], [0, "Č"], [0, "č"], [0, "Ď"], [0, "ď"], [0, "Đ"], [0, "đ"], [0, "Ē"], [0, "ē"], [2, "Ė"], [0, "ė"], [0, "Ę"], [0, "ę"], [0, "Ě"], [0, "ě"], [0, "Ĝ"], [0, "ĝ"], [0, "Ğ"], [0, "ğ"], [0, "Ġ"], [0, "ġ"], [0, "Ģ"], [1, "Ĥ"], [0, "ĥ"], [0, "Ħ"], [0, "ħ"], [0, "Ĩ"], [0, "ĩ"], [0, "Ī"], [0, "ī"], [2, "Į"], [0, "į"], [0, "İ"], [0, "ı"], [0, "IJ"], [0, "ij"], [0, "Ĵ"], [0, "ĵ"], [0, "Ķ"], [0, "ķ"], [0, "ĸ"], [0, "Ĺ"], [0, "ĺ"], [0, "Ļ"], [0, "ļ"], [0, "Ľ"], [0, "ľ"], [0, "Ŀ"], [0, "ŀ"], [0, "Ł"], [0, "ł"], [0, "Ń"], [0, "ń"], [0, "Ņ"], [0, "ņ"], [0, "Ň"], [0, "ň"], [0, "ʼn"], [0, "Ŋ"], [0, "ŋ"], [0, "Ō"], [0, "ō"], [2, "Ő"], [0, "ő"], [0, "Œ"], [0, "œ"], [0, "Ŕ"], [0, "ŕ"], [0, "Ŗ"], [0, "ŗ"], [0, "Ř"], [0, "ř"], [0, "Ś"], [0, "ś"], [0, "Ŝ"], [0, "ŝ"], [0, "Ş"], [0, "ş"], [0, "Š"], [0, "š"], [0, "Ţ"], [0, "ţ"], [0, "Ť"], [0, "ť"], [0, "Ŧ"], [0, "ŧ"], [0, "Ũ"], [0, "ũ"], [0, "Ū"], [0, "ū"], [0, "Ŭ"], [0, "ŭ"], [0, "Ů"], [0, "ů"], [0, "Ű"], [0, "ű"], [0, "Ų"], [0, "ų"], [0, "Ŵ"], [0, "ŵ"], [0, "Ŷ"], [0, "ŷ"], [0, "Ÿ"], [0, "Ź"], [0, "ź"], [0, "Ż"], [0, "ż"], [0, "Ž"], [0, "ž"], [19, "ƒ"], [34, "Ƶ"], [63, "ǵ"], [65, "ȷ"], [142, "ˆ"], [0, "ˇ"], [16, "˘"], [0, "˙"], [0, "˚"], [0, "˛"], [0, "˜"], [0, "˝"], [51, "̑"], [127, "Α"], [0, "Β"], [0, "Γ"], [0, "Δ"], [0, "Ε"], [0, "Ζ"], [0, "Η"], [0, "Θ"], [0, "Ι"], [0, "Κ"], [0, "Λ"], [0, "Μ"], [0, "Ν"], [0, "Ξ"], [0, "Ο"], [0, "Π"], [0, "Ρ"], [1, "Σ"], [0, "Τ"], [0, "Υ"], [0, "Φ"], [0, "Χ"], [0, "Ψ"], [0, "Ω"], [7, "α"], [0, "β"], [0, "γ"], [0, "δ"], [0, "ε"], [0, "ζ"], [0, "η"], [0, "θ"], [0, "ι"], [0, "κ"], [0, "λ"], [0, "μ"], [0, "ν"], [0, "ξ"], [0, "ο"], [0, "π"], [0, "ρ"], [0, "ς"], [0, "σ"], [0, "τ"], [0, "υ"], [0, "φ"], [0, "χ"], [0, "ψ"], [0, "ω"], [7, "ϑ"], [0, "ϒ"], [2, "ϕ"], [0, "ϖ"], [5, "Ϝ"], [0, "ϝ"], [18, "ϰ"], [0, "ϱ"], [3, "ϵ"], [0, "϶"], [10, "Ё"], [0, "Ђ"], [0, "Ѓ"], [0, "Є"], [0, "Ѕ"], [0, "І"], [0, "Ї"], [0, "Ј"], [0, "Љ"], [0, "Њ"], [0, "Ћ"], [0, "Ќ"], [1, "Ў"], [0, "Џ"], [0, "А"], [0, "Б"], [0, "В"], [0, "Г"], [0, "Д"], [0, "Е"], [0, "Ж"], [0, "З"], [0, "И"], [0, "Й"], [0, "К"], [0, "Л"], [0, "М"], [0, "Н"], [0, "О"], [0, "П"], [0, "Р"], [0, "С"], [0, "Т"], [0, "У"], [0, "Ф"], [0, "Х"], [0, "Ц"], [0, "Ч"], [0, "Ш"], [0, "Щ"], [0, "Ъ"], [0, "Ы"], [0, "Ь"], [0, "Э"], [0, "Ю"], [0, "Я"], [0, "а"], [0, "б"], [0, "в"], [0, "г"], [0, "д"], [0, "е"], [0, "ж"], [0, "з"], [0, "и"], [0, "й"], [0, "к"], [0, "л"], [0, "м"], [0, "н"], [0, "о"], [0, "п"], [0, "р"], [0, "с"], [0, "т"], [0, "у"], [0, "ф"], [0, "х"], [0, "ц"], [0, "ч"], [0, "ш"], [0, "щ"], [0, "ъ"], [0, "ы"], [0, "ь"], [0, "э"], [0, "ю"], [0, "я"], [1, "ё"], [0, "ђ"], [0, "ѓ"], [0, "є"], [0, "ѕ"], [0, "і"], [0, "ї"], [0, "ј"], [0, "љ"], [0, "њ"], [0, "ћ"], [0, "ќ"], [1, "ў"], [0, "џ"], [7074, " "], [0, " "], [0, " "], [0, " "], [1, " "], [0, " "], [0, " "], [0, " "], [0, "​"], [0, "‌"], [0, "‍"], [0, "‎"], [0, "‏"], [0, "‐"], [2, "–"], [0, "—"], [0, "―"], [0, "‖"], [1, "‘"], [0, "’"], [0, "‚"], [1, "“"], [0, "”"], [0, "„"], [1, "†"], [0, "‡"], [0, "•"], [2, "‥"], [0, "…"], [9, "‰"], [0, "‱"], [0, "′"], [0, "″"], [0, "‴"], [0, "‵"], [3, "‹"], [0, "›"], [3, "‾"], [2, "⁁"], [1, "⁃"], [0, "⁄"], [10, "⁏"], [7, "⁗"], [7, { v: " ", n: 8202, o: "  " }], [0, "⁠"], [0, "⁡"], [0, "⁢"], [0, "⁣"], [72, "€"], [46, "⃛"], [0, "⃜"], [37, "ℂ"], [2, "℅"], [4, "ℊ"], [0, "ℋ"], [0, "ℌ"], [0, "ℍ"], [0, "ℎ"], [0, "ℏ"], [0, "ℐ"], [0, "ℑ"], [0, "ℒ"], [0, "ℓ"], [1, "ℕ"], [0, "№"], [0, "℗"], [0, "℘"], [0, "ℙ"], [0, "ℚ"], [0, "ℛ"], [0, "ℜ"], [0, "ℝ"], [0, "℞"], [3, "™"], [1, "ℤ"], [2, "℧"], [0, "ℨ"], [0, "℩"], [2, "ℬ"], [0, "ℭ"], [1, "ℯ"], [0, "ℰ"], [0, "ℱ"], [1, "ℳ"], [0, "ℴ"], [0, "ℵ"], [0, "ℶ"], [0, "ℷ"], [0, "ℸ"], [12, "ⅅ"], [0, "ⅆ"], [0, "ⅇ"], [0, "ⅈ"], [10, "⅓"], [0, "⅔"], [0, "⅕"], [0, "⅖"], [0, "⅗"], [0, "⅘"], [0, "⅙"], [0, "⅚"], [0, "⅛"], [0, "⅜"], [0, "⅝"], [0, "⅞"], [49, "←"], [0, "↑"], [0, "→"], [0, "↓"], [0, "↔"], [0, "↕"], [0, "↖"], [0, "↗"], [0, "↘"], [0, "↙"], [0, "↚"], [0, "↛"], [1, { v: "↝", n: 824, o: "↝̸" }], [0, "↞"], [0, "↟"], [0, "↠"], [0, "↡"], [0, "↢"], [0, "↣"], [0, "↤"], [0, "↥"], [0, "↦"], [0, "↧"], [1, "↩"], [0, "↪"], [0, "↫"], [0, "↬"], [0, "↭"], [0, "↮"], [1, "↰"], [0, "↱"], [0, "↲"], [0, "↳"], [1, "↵"], [0, "↶"], [0, "↷"], [2, "↺"], [0, "↻"], [0, "↼"], [0, "↽"], [0, "↾"], [0, "↿"], [0, "⇀"], [0, "⇁"], [0, "⇂"], [0, "⇃"], [0, "⇄"], [0, "⇅"], [0, "⇆"], [0, "⇇"], [0, "⇈"], [0, "⇉"], [0, "⇊"], [0, "⇋"], [0, "⇌"], [0, "⇍"], [0, "⇎"], [0, "⇏"], [0, "⇐"], [0, "⇑"], [0, "⇒"], [0, "⇓"], [0, "⇔"], [0, "⇕"], [0, "⇖"], [0, "⇗"], [0, "⇘"], [0, "⇙"], [0, "⇚"], [0, "⇛"], [1, "⇝"], [6, "⇤"], [0, "⇥"], [15, "⇵"], [7, "⇽"], [0, "⇾"], [0, "⇿"], [0, "∀"], [0, "∁"], [0, { v: "∂", n: 824, o: "∂̸" }], [0, "∃"], [0, "∄"], [0, "∅"], [1, "∇"], [0, "∈"], [0, "∉"], [1, "∋"], [0, "∌"], [2, "∏"], [0, "∐"], [0, "∑"], [0, "−"], [0, "∓"], [0, "∔"], [1, "∖"], [0, "∗"], [0, "∘"], [1, "√"], [2, "∝"], [0, "∞"], [0, "∟"], [0, { v: "∠", n: 8402, o: "∠⃒" }], [0, "∡"], [0, "∢"], [0, "∣"], [0, "∤"], [0, "∥"], [0, "∦"], [0, "∧"], [0, "∨"], [0, { v: "∩", n: 65024, o: "∩︀" }], [0, { v: "∪", n: 65024, o: "∪︀" }], [0, "∫"], [0, "∬"], [0, "∭"], [0, "∮"], [0, "∯"], [0, "∰"], [0, "∱"], [0, "∲"], [0, "∳"], [0, "∴"], [0, "∵"], [0, "∶"], [0, "∷"], [0, "∸"], [1, "∺"], [0, "∻"], [0, { v: "∼", n: 8402, o: "∼⃒" }], [0, { v: "∽", n: 817, o: "∽̱" }], [0, { v: "∾", n: 819, o: "∾̳" }], [0, "∿"], [0, "≀"], [0, "≁"], [0, { v: "≂", n: 824, o: "≂̸" }], [0, "≃"], [0, "≄"], [0, "≅"], [0, "≆"], [0, "≇"], [0, "≈"], [0, "≉"], [0, "≊"], [0, { v: "≋", n: 824, o: "≋̸" }], [0, "≌"], [0, { v: "≍", n: 8402, o: "≍⃒" }], [0, { v: "≎", n: 824, o: "≎̸" }], [0, { v: "≏", n: 824, o: "≏̸" }], [0, { v: "≐", n: 824, o: "≐̸" }], [0, "≑"], [0, "≒"], [0, "≓"], [0, "≔"], [0, "≕"], [0, "≖"], [0, "≗"], [1, "≙"], [0, "≚"], [1, "≜"], [2, "≟"], [0, "≠"], [0, { v: "≡", n: 8421, o: "≡⃥" }], [0, "≢"], [1, { v: "≤", n: 8402, o: "≤⃒" }], [0, { v: "≥", n: 8402, o: "≥⃒" }], [0, { v: "≦", n: 824, o: "≦̸" }], [0, { v: "≧", n: 824, o: "≧̸" }], [0, { v: "≨", n: 65024, o: "≨︀" }], [0, { v: "≩", n: 65024, o: "≩︀" }], [0, { v: "≪", n: new Map(/* @__PURE__ */ e([[824, "≪̸"], [7577, "≪⃒"]])) }], [0, { v: "≫", n: new Map(/* @__PURE__ */ e([[824, "≫̸"], [7577, "≫⃒"]])) }], [0, "≬"], [0, "≭"], [0, "≮"], [0, "≯"], [0, "≰"], [0, "≱"], [0, "≲"], [0, "≳"], [0, "≴"], [0, "≵"], [0, "≶"], [0, "≷"], [0, "≸"], [0, "≹"], [0, "≺"], [0, "≻"], [0, "≼"], [0, "≽"], [0, "≾"], [0, { v: "≿", n: 824, o: "≿̸" }], [0, "⊀"], [0, "⊁"], [0, { v: "⊂", n: 8402, o: "⊂⃒" }], [0, { v: "⊃", n: 8402, o: "⊃⃒" }], [0, "⊄"], [0, "⊅"], [0, "⊆"], [0, "⊇"], [0, "⊈"], [0, "⊉"], [0, { v: "⊊", n: 65024, o: "⊊︀" }], [0, { v: "⊋", n: 65024, o: "⊋︀" }], [1, "⊍"], [0, "⊎"], [0, { v: "⊏", n: 824, o: "⊏̸" }], [0, { v: "⊐", n: 824, o: "⊐̸" }], [0, "⊑"], [0, "⊒"], [0, { v: "⊓", n: 65024, o: "⊓︀" }], [0, { v: "⊔", n: 65024, o: "⊔︀" }], [0, "⊕"], [0, "⊖"], [0, "⊗"], [0, "⊘"], [0, "⊙"], [0, "⊚"], [0, "⊛"], [1, "⊝"], [0, "⊞"], [0, "⊟"], [0, "⊠"], [0, "⊡"], [0, "⊢"], [0, "⊣"], [0, "⊤"], [0, "⊥"], [1, "⊧"], [0, "⊨"], [0, "⊩"], [0, "⊪"], [0, "⊫"], [0, "⊬"], [0, "⊭"], [0, "⊮"], [0, "⊯"], [0, "⊰"], [1, "⊲"], [0, "⊳"], [0, { v: "⊴", n: 8402, o: "⊴⃒" }], [0, { v: "⊵", n: 8402, o: "⊵⃒" }], [0, "⊶"], [0, "⊷"], [0, "⊸"], [0, "⊹"], [0, "⊺"], [0, "⊻"], [1, "⊽"], [0, "⊾"], [0, "⊿"], [0, "⋀"], [0, "⋁"], [0, "⋂"], [0, "⋃"], [0, "⋄"], [0, "⋅"], [0, "⋆"], [0, "⋇"], [0, "⋈"], [0, "⋉"], [0, "⋊"], [0, "⋋"], [0, "⋌"], [0, "⋍"], [0, "⋎"], [0, "⋏"], [0, "⋐"], [0, "⋑"], [0, "⋒"], [0, "⋓"], [0, "⋔"], [0, "⋕"], [0, "⋖"], [0, "⋗"], [0, { v: "⋘", n: 824, o: "⋘̸" }], [0, { v: "⋙", n: 824, o: "⋙̸" }], [0, { v: "⋚", n: 65024, o: "⋚︀" }], [0, { v: "⋛", n: 65024, o: "⋛︀" }], [2, "⋞"], [0, "⋟"], [0, "⋠"], [0, "⋡"], [0, "⋢"], [0, "⋣"], [2, "⋦"], [0, "⋧"], [0, "⋨"], [0, "⋩"], [0, "⋪"], [0, "⋫"], [0, "⋬"], [0, "⋭"], [0, "⋮"], [0, "⋯"], [0, "⋰"], [0, "⋱"], [0, "⋲"], [0, "⋳"], [0, "⋴"], [0, { v: "⋵", n: 824, o: "⋵̸" }], [0, "⋶"], [0, "⋷"], [1, { v: "⋹", n: 824, o: "⋹̸" }], [0, "⋺"], [0, "⋻"], [0, "⋼"], [0, "⋽"], [0, "⋾"], [6, "⌅"], [0, "⌆"], [1, "⌈"], [0, "⌉"], [0, "⌊"], [0, "⌋"], [0, "⌌"], [0, "⌍"], [0, "⌎"], [0, "⌏"], [0, "⌐"], [1, "⌒"], [0, "⌓"], [1, "⌕"], [0, "⌖"], [5, "⌜"], [0, "⌝"], [0, "⌞"], [0, "⌟"], [2, "⌢"], [0, "⌣"], [9, "⌭"], [0, "⌮"], [7, "⌶"], [6, "⌽"], [1, "⌿"], [60, "⍼"], [51, "⎰"], [0, "⎱"], [2, "⎴"], [0, "⎵"], [0, "⎶"], [37, "⏜"], [0, "⏝"], [0, "⏞"], [0, "⏟"], [2, "⏢"], [4, "⏧"], [59, "␣"], [164, "Ⓢ"], [55, "─"], [1, "│"], [9, "┌"], [3, "┐"], [3, "└"], [3, "┘"], [3, "├"], [7, "┤"], [7, "┬"], [7, "┴"], [7, "┼"], [19, "═"], [0, "║"], [0, "╒"], [0, "╓"], [0, "╔"], [0, "╕"], [0, "╖"], [0, "╗"], [0, "╘"], [0, "╙"], [0, "╚"], [0, "╛"], [0, "╜"], [0, "╝"], [0, "╞"], [0, "╟"], [0, "╠"], [0, "╡"], [0, "╢"], [0, "╣"], [0, "╤"], [0, "╥"], [0, "╦"], [0, "╧"], [0, "╨"], [0, "╩"], [0, "╪"], [0, "╫"], [0, "╬"], [19, "▀"], [3, "▄"], [3, "█"], [8, "░"], [0, "▒"], [0, "▓"], [13, "□"], [8, "▪"], [0, "▫"], [1, "▭"], [0, "▮"], [2, "▱"], [1, "△"], [0, "▴"], [0, "▵"], [2, "▸"], [0, "▹"], [3, "▽"], [0, "▾"], [0, "▿"], [2, "◂"], [0, "◃"], [6, "◊"], [0, "○"], [32, "◬"], [2, "◯"], [8, "◸"], [0, "◹"], [0, "◺"], [0, "◻"], [0, "◼"], [8, "★"], [0, "☆"], [7, "☎"], [49, "♀"], [1, "♂"], [29, "♠"], [2, "♣"], [1, "♥"], [0, "♦"], [3, "♪"], [2, "♭"], [0, "♮"], [0, "♯"], [163, "✓"], [3, "✗"], [8, "✠"], [21, "✶"], [33, "❘"], [25, "❲"], [0, "❳"], [84, "⟈"], [0, "⟉"], [28, "⟦"], [0, "⟧"], [0, "⟨"], [0, "⟩"], [0, "⟪"], [0, "⟫"], [0, "⟬"], [0, "⟭"], [7, "⟵"], [0, "⟶"], [0, "⟷"], [0, "⟸"], [0, "⟹"], [0, "⟺"], [1, "⟼"], [2, "⟿"], [258, "⤂"], [0, "⤃"], [0, "⤄"], [0, "⤅"], [6, "⤌"], [0, "⤍"], [0, "⤎"], [0, "⤏"], [0, "⤐"], [0, "⤑"], [0, "⤒"], [0, "⤓"], [2, "⤖"], [2, "⤙"], [0, "⤚"], [0, "⤛"], [0, "⤜"], [0, "⤝"], [0, "⤞"], [0, "⤟"], [0, "⤠"], [2, "⤣"], [0, "⤤"], [0, "⤥"], [0, "⤦"], [0, "⤧"], [0, "⤨"], [0, "⤩"], [0, "⤪"], [8, { v: "⤳", n: 824, o: "⤳̸" }], [1, "⤵"], [0, "⤶"], [0, "⤷"], [0, "⤸"], [0, "⤹"], [2, "⤼"], [0, "⤽"], [7, "⥅"], [2, "⥈"], [0, "⥉"], [0, "⥊"], [0, "⥋"], [2, "⥎"], [0, "⥏"], [0, "⥐"], [0, "⥑"], [0, "⥒"], [0, "⥓"], [0, "⥔"], [0, "⥕"], [0, "⥖"], [0, "⥗"], [0, "⥘"], [0, "⥙"], [0, "⥚"], [0, "⥛"], [0, "⥜"], [0, "⥝"], [0, "⥞"], [0, "⥟"], [0, "⥠"], [0, "⥡"], [0, "⥢"], [0, "⥣"], [0, "⥤"], [0, "⥥"], [0, "⥦"], [0, "⥧"], [0, "⥨"], [0, "⥩"], [0, "⥪"], [0, "⥫"], [0, "⥬"], [0, "⥭"], [0, "⥮"], [0, "⥯"], [0, "⥰"], [0, "⥱"], [0, "⥲"], [0, "⥳"], [0, "⥴"], [0, "⥵"], [0, "⥶"], [1, "⥸"], [0, "⥹"], [1, "⥻"], [0, "⥼"], [0, "⥽"], [0, "⥾"], [0, "⥿"], [5, "⦅"], [0, "⦆"], [4, "⦋"], [0, "⦌"], [0, "⦍"], [0, "⦎"], [0, "⦏"], [0, "⦐"], [0, "⦑"], [0, "⦒"], [0, "⦓"], [0, "⦔"], [0, "⦕"], [0, "⦖"], [3, "⦚"], [1, "⦜"], [0, "⦝"], [6, "⦤"], [0, "⦥"], [0, "⦦"], [0, "⦧"], [0, "⦨"], [0, "⦩"], [0, "⦪"], [0, "⦫"], [0, "⦬"], [0, "⦭"], [0, "⦮"], [0, "⦯"], [0, "⦰"], [0, "⦱"], [0, "⦲"], [0, "⦳"], [0, "⦴"], [0, "⦵"], [0, "⦶"], [0, "⦷"], [1, "⦹"], [1, "⦻"], [0, "⦼"], [1, "⦾"], [0, "⦿"], [0, "⧀"], [0, "⧁"], [0, "⧂"], [0, "⧃"], [0, "⧄"], [0, "⧅"], [3, "⧉"], [3, "⧍"], [0, "⧎"], [0, { v: "⧏", n: 824, o: "⧏̸" }], [0, { v: "⧐", n: 824, o: "⧐̸" }], [11, "⧜"], [0, "⧝"], [0, "⧞"], [4, "⧣"], [0, "⧤"], [0, "⧥"], [5, "⧫"], [8, "⧴"], [1, "⧶"], [9, "⨀"], [0, "⨁"], [0, "⨂"], [1, "⨄"], [1, "⨆"], [5, "⨌"], [0, "⨍"], [2, "⨐"], [0, "⨑"], [0, "⨒"], [0, "⨓"], [0, "⨔"], [0, "⨕"], [0, "⨖"], [0, "⨗"], [10, "⨢"], [0, "⨣"], [0, "⨤"], [0, "⨥"], [0, "⨦"], [0, "⨧"], [1, "⨩"], [0, "⨪"], [2, "⨭"], [0, "⨮"], [0, "⨯"], [0, "⨰"], [0, "⨱"], [1, "⨳"], [0, "⨴"], [0, "⨵"], [0, "⨶"], [0, "⨷"], [0, "⨸"], [0, "⨹"], [0, "⨺"], [0, "⨻"], [0, "⨼"], [2, "⨿"], [0, "⩀"], [1, "⩂"], [0, "⩃"], [0, "⩄"], [0, "⩅"], [0, "⩆"], [0, "⩇"], [0, "⩈"], [0, "⩉"], [0, "⩊"], [0, "⩋"], [0, "⩌"], [0, "⩍"], [2, "⩐"], [2, "⩓"], [0, "⩔"], [0, "⩕"], [0, "⩖"], [0, "⩗"], [0, "⩘"], [1, "⩚"], [0, "⩛"], [0, "⩜"], [0, "⩝"], [1, "⩟"], [6, "⩦"], [3, "⩪"], [2, { v: "⩭", n: 824, o: "⩭̸" }], [0, "⩮"], [0, "⩯"], [0, { v: "⩰", n: 824, o: "⩰̸" }], [0, "⩱"], [0, "⩲"], [0, "⩳"], [0, "⩴"], [0, "⩵"], [1, "⩷"], [0, "⩸"], [0, "⩹"], [0, "⩺"], [0, "⩻"], [0, "⩼"], [0, { v: "⩽", n: 824, o: "⩽̸" }], [0, { v: "⩾", n: 824, o: "⩾̸" }], [0, "⩿"], [0, "⪀"], [0, "⪁"], [0, "⪂"], [0, "⪃"], [0, "⪄"], [0, "⪅"], [0, "⪆"], [0, "⪇"], [0, "⪈"], [0, "⪉"], [0, "⪊"], [0, "⪋"], [0, "⪌"], [0, "⪍"], [0, "⪎"], [0, "⪏"], [0, "⪐"], [0, "⪑"], [0, "⪒"], [0, "⪓"], [0, "⪔"], [0, "⪕"], [0, "⪖"], [0, "⪗"], [0, "⪘"], [0, "⪙"], [0, "⪚"], [2, "⪝"], [0, "⪞"], [0, "⪟"], [0, "⪠"], [0, { v: "⪡", n: 824, o: "⪡̸" }], [0, { v: "⪢", n: 824, o: "⪢̸" }], [1, "⪤"], [0, "⪥"], [0, "⪦"], [0, "⪧"], [0, "⪨"], [0, "⪩"], [0, "⪪"], [0, "⪫"], [0, { v: "⪬", n: 65024, o: "⪬︀" }], [0, { v: "⪭", n: 65024, o: "⪭︀" }], [0, "⪮"], [0, { v: "⪯", n: 824, o: "⪯̸" }], [0, { v: "⪰", n: 824, o: "⪰̸" }], [2, "⪳"], [0, "⪴"], [0, "⪵"], [0, "⪶"], [0, "⪷"], [0, "⪸"], [0, "⪹"], [0, "⪺"], [0, "⪻"], [0, "⪼"], [0, "⪽"], [0, "⪾"], [0, "⪿"], [0, "⫀"], [0, "⫁"], [0, "⫂"], [0, "⫃"], [0, "⫄"], [0, { v: "⫅", n: 824, o: "⫅̸" }], [0, { v: "⫆", n: 824, o: "⫆̸" }], [0, "⫇"], [0, "⫈"], [2, { v: "⫋", n: 65024, o: "⫋︀" }], [0, { v: "⫌", n: 65024, o: "⫌︀" }], [2, "⫏"], [0, "⫐"], [0, "⫑"], [0, "⫒"], [0, "⫓"], [0, "⫔"], [0, "⫕"], [0, "⫖"], [0, "⫗"], [0, "⫘"], [0, "⫙"], [0, "⫚"], [0, "⫛"], [8, "⫤"], [1, "⫦"], [0, "⫧"], [0, "⫨"], [0, "⫩"], [1, "⫫"], [0, "⫬"], [0, "⫭"], [0, "⫮"], [0, "⫯"], [0, "⫰"], [0, "⫱"], [0, "⫲"], [0, "⫳"], [9, { v: "⫽", n: 8421, o: "⫽⃥" }], [44343, { n: new Map(/* @__PURE__ */ e([[56476, "𝒜"], [1, "𝒞"], [0, "𝒟"], [2, "𝒢"], [2, "𝒥"], [0, "𝒦"], [2, "𝒩"], [0, "𝒪"], [0, "𝒫"], [0, "𝒬"], [1, "𝒮"], [0, "𝒯"], [0, "𝒰"], [0, "𝒱"], [0, "𝒲"], [0, "𝒳"], [0, "𝒴"], [0, "𝒵"], [0, "𝒶"], [0, "𝒷"], [0, "𝒸"], [0, "𝒹"], [1, "𝒻"], [1, "𝒽"], [0, "𝒾"], [0, "𝒿"], [0, "𝓀"], [0, "𝓁"], [0, "𝓂"], [0, "𝓃"], [1, "𝓅"], [0, "𝓆"], [0, "𝓇"], [0, "𝓈"], [0, "𝓉"], [0, "𝓊"], [0, "𝓋"], [0, "𝓌"], [0, "𝓍"], [0, "𝓎"], [0, "𝓏"], [52, "𝔄"], [0, "𝔅"], [1, "𝔇"], [0, "𝔈"], [0, "𝔉"], [0, "𝔊"], [2, "𝔍"], [0, "𝔎"], [0, "𝔏"], [0, "𝔐"], [0, "𝔑"], [0, "𝔒"], [0, "𝔓"], [0, "𝔔"], [1, "𝔖"], [0, "𝔗"], [0, "𝔘"], [0, "𝔙"], [0, "𝔚"], [0, "𝔛"], [0, "𝔜"], [1, "𝔞"], [0, "𝔟"], [0, "𝔠"], [0, "𝔡"], [0, "𝔢"], [0, "𝔣"], [0, "𝔤"], [0, "𝔥"], [0, "𝔦"], [0, "𝔧"], [0, "𝔨"], [0, "𝔩"], [0, "𝔪"], [0, "𝔫"], [0, "𝔬"], [0, "𝔭"], [0, "𝔮"], [0, "𝔯"], [0, "𝔰"], [0, "𝔱"], [0, "𝔲"], [0, "𝔳"], [0, "𝔴"], [0, "𝔵"], [0, "𝔶"], [0, "𝔷"], [0, "𝔸"], [0, "𝔹"], [1, "𝔻"], [0, "𝔼"], [0, "𝔽"], [0, "𝔾"], [1, "𝕀"], [0, "𝕁"], [0, "𝕂"], [0, "𝕃"], [0, "𝕄"], [1, "𝕆"], [3, "𝕊"], [0, "𝕋"], [0, "𝕌"], [0, "𝕍"], [0, "𝕎"], [0, "𝕏"], [0, "𝕐"], [1, "𝕒"], [0, "𝕓"], [0, "𝕔"], [0, "𝕕"], [0, "𝕖"], [0, "𝕗"], [0, "𝕘"], [0, "𝕙"], [0, "𝕚"], [0, "𝕛"], [0, "𝕜"], [0, "𝕝"], [0, "𝕞"], [0, "𝕟"], [0, "𝕠"], [0, "𝕡"], [0, "𝕢"], [0, "𝕣"], [0, "𝕤"], [0, "𝕥"], [0, "𝕦"], [0, "𝕧"], [0, "𝕨"], [0, "𝕩"], [0, "𝕪"], [0, "𝕫"]])) }], [8906, "ff"], [0, "fi"], [0, "fl"], [0, "ffi"], [0, "ffl"]])), lu; } -var qu = {}, B0; -function Ct() { - return B0 || (B0 = 1, (function(e) { +var Ku = {}, Tr; +function _t() { + return Tr || (Tr = 1, (function(e) { Object.defineProperty(e, "__esModule", { value: !0 }), e.escapeText = e.escapeAttribute = e.escapeUTF8 = e.escape = e.encodeXML = e.getCodePoint = e.xmlReplacer = void 0, e.xmlReplacer = /["&'<>$\x80-\uFFFF]/g; var u = /* @__PURE__ */ new Map([ [34, """], @@ -5272,142 +5381,142 @@ function Ct() { [62, ">"] ]); e.getCodePoint = // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - String.prototype.codePointAt != null ? function(s, i) { - return s.codePointAt(i); + String.prototype.codePointAt != null ? function(a, r) { + return a.codePointAt(r); } : ( // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - function(s, i) { - return (s.charCodeAt(i) & 64512) === 55296 ? (s.charCodeAt(i) - 55296) * 1024 + s.charCodeAt(i + 1) - 56320 + 65536 : s.charCodeAt(i); + function(a, r) { + return (a.charCodeAt(r) & 64512) === 55296 ? (a.charCodeAt(r) - 55296) * 1024 + a.charCodeAt(r + 1) - 56320 + 65536 : a.charCodeAt(r); } ); - function t(s) { - for (var i = "", l = 0, a; (a = e.xmlReplacer.exec(s)) !== null; ) { - var o = a.index, r = s.charCodeAt(o), n = u.get(r); - n !== void 0 ? (i += s.substring(l, o) + n, l = o + 1) : (i += "".concat(s.substring(l, o), "&#x").concat((0, e.getCodePoint)(s, o).toString(16), ";"), l = e.xmlReplacer.lastIndex += +((r & 64512) === 55296)); + function t(a) { + for (var r = "", o = 0, i; (i = e.xmlReplacer.exec(a)) !== null; ) { + var c = i.index, n = a.charCodeAt(c), l = u.get(n); + l !== void 0 ? (r += a.substring(o, c) + l, o = c + 1) : (r += "".concat(a.substring(o, c), "&#x").concat((0, e.getCodePoint)(a, c).toString(16), ";"), o = e.xmlReplacer.lastIndex += +((n & 64512) === 55296)); } - return i + s.substr(l); + return r + a.substr(o); } e.encodeXML = t, e.escape = t; - function c(s, i) { - return function(a) { - for (var o, r = 0, n = ""; o = s.exec(a); ) - r !== o.index && (n += a.substring(r, o.index)), n += i.get(o[0].charCodeAt(0)), r = o.index + 1; - return n + a.substring(r); + function s(a, r) { + return function(i) { + for (var c, n = 0, l = ""; c = a.exec(i); ) + n !== c.index && (l += i.substring(n, c.index)), l += r.get(c[0].charCodeAt(0)), n = c.index + 1; + return l + i.substring(n); }; } - e.escapeUTF8 = c(/[&<>'"]/g, u), e.escapeAttribute = c(/["&\u00A0]/g, /* @__PURE__ */ new Map([ + e.escapeUTF8 = s(/[&<>'"]/g, u), e.escapeAttribute = s(/["&\u00A0]/g, /* @__PURE__ */ new Map([ [34, """], [38, "&"], [160, " "] - ])), e.escapeText = c(/[&<>\u00A0]/g, /* @__PURE__ */ new Map([ + ])), e.escapeText = s(/[&<>\u00A0]/g, /* @__PURE__ */ new Map([ [38, "&"], [60, "<"], [62, ">"], [160, " "] ])); - })(qu)), qu; -} -var F0; -function S0() { - if (F0) return ge; - F0 = 1; - var e = ge && ge.__importDefault || function(a) { - return a && a.__esModule ? a : { default: a }; + })(Ku)), Ku; +} +var Rr; +function Nr() { + if (Rr) return Ee; + Rr = 1; + var e = Ee && Ee.__importDefault || function(i) { + return i && i.__esModule ? i : { default: i }; }; - Object.defineProperty(ge, "__esModule", { value: !0 }), ge.encodeNonAsciiHTML = ge.encodeHTML = void 0; - var u = e(/* @__PURE__ */ Rs()), t = /* @__PURE__ */ Ct(), c = /[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g; - function s(a) { - return l(c, a); - } - ge.encodeHTML = s; - function i(a) { - return l(t.xmlReplacer, a); - } - ge.encodeNonAsciiHTML = i; - function l(a, o) { - for (var r = "", n = 0, f; (f = a.exec(o)) !== null; ) { - var d = f.index; - r += o.substring(n, d); - var A = o.charCodeAt(d), h = u.default.get(A); + Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.encodeNonAsciiHTML = Ee.encodeHTML = void 0; + var u = e(/* @__PURE__ */ Ls()), t = /* @__PURE__ */ _t(), s = /[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g; + function a(i) { + return o(s, i); + } + Ee.encodeHTML = a; + function r(i) { + return o(t.xmlReplacer, i); + } + Ee.encodeNonAsciiHTML = r; + function o(i, c) { + for (var n = "", l = 0, f; (f = i.exec(c)) !== null; ) { + var A = f.index; + n += c.substring(l, A); + var d = c.charCodeAt(A), h = u.default.get(d); if (typeof h == "object") { - if (d + 1 < o.length) { - var w = o.charCodeAt(d + 1), C = typeof h.n == "number" ? h.n === w ? h.o : void 0 : h.n.get(w); + if (A + 1 < c.length) { + var y = c.charCodeAt(A + 1), C = typeof h.n == "number" ? h.n === y ? h.o : void 0 : h.n.get(y); if (C !== void 0) { - r += C, n = a.lastIndex += 1; + n += C, l = i.lastIndex += 1; continue; } } h = h.v; } if (h !== void 0) - r += h, n = d + 1; + n += h, l = A + 1; else { - var b = (0, t.getCodePoint)(o, d); - r += "&#x".concat(b.toString(16), ";"), n = a.lastIndex += +(b !== A); + var w = (0, t.getCodePoint)(c, A); + n += "&#x".concat(w.toString(16), ";"), l = i.lastIndex += +(w !== d); } } - return r + o.substr(n); + return n + c.substr(l); } - return ge; + return Ee; } -var R0; -function Ts() { - return R0 || (R0 = 1, (function(e) { +var Mr; +function Ps() { + return Mr || (Mr = 1, (function(e) { Object.defineProperty(e, "__esModule", { value: !0 }), e.decodeXMLStrict = e.decodeHTML5Strict = e.decodeHTML4Strict = e.decodeHTML5 = e.decodeHTML4 = e.decodeHTMLAttribute = e.decodeHTMLStrict = e.decodeHTML = e.decodeXML = e.DecodingMode = e.EntityDecoder = e.encodeHTML5 = e.encodeHTML4 = e.encodeNonAsciiHTML = e.encodeHTML = e.escapeText = e.escapeAttribute = e.escapeUTF8 = e.escape = e.encodeXML = e.encode = e.decodeStrict = e.decode = e.EncodingMode = e.EntityLevel = void 0; - var u = /* @__PURE__ */ _0(), t = /* @__PURE__ */ S0(), c = /* @__PURE__ */ Ct(), s; - (function(d) { - d[d.XML = 0] = "XML", d[d.HTML = 1] = "HTML"; - })(s = e.EntityLevel || (e.EntityLevel = {})); - var i; - (function(d) { - d[d.UTF8 = 0] = "UTF8", d[d.ASCII = 1] = "ASCII", d[d.Extensive = 2] = "Extensive", d[d.Attribute = 3] = "Attribute", d[d.Text = 4] = "Text"; - })(i = e.EncodingMode || (e.EncodingMode = {})); - function l(d, A) { - A === void 0 && (A = s.XML); - var h = typeof A == "number" ? A : A.level; - if (h === s.HTML) { - var w = typeof A == "object" ? A.mode : void 0; - return (0, u.decodeHTML)(d, w); - } - return (0, u.decodeXML)(d); - } - e.decode = l; - function a(d, A) { + var u = /* @__PURE__ */ Fr(), t = /* @__PURE__ */ Nr(), s = /* @__PURE__ */ _t(), a; + (function(A) { + A[A.XML = 0] = "XML", A[A.HTML = 1] = "HTML"; + })(a = e.EntityLevel || (e.EntityLevel = {})); + var r; + (function(A) { + A[A.UTF8 = 0] = "UTF8", A[A.ASCII = 1] = "ASCII", A[A.Extensive = 2] = "Extensive", A[A.Attribute = 3] = "Attribute", A[A.Text = 4] = "Text"; + })(r = e.EncodingMode || (e.EncodingMode = {})); + function o(A, d) { + d === void 0 && (d = a.XML); + var h = typeof d == "number" ? d : d.level; + if (h === a.HTML) { + var y = typeof d == "object" ? d.mode : void 0; + return (0, u.decodeHTML)(A, y); + } + return (0, u.decodeXML)(A); + } + e.decode = o; + function i(A, d) { var h; - A === void 0 && (A = s.XML); - var w = typeof A == "number" ? { level: A } : A; - return (h = w.mode) !== null && h !== void 0 || (w.mode = u.DecodingMode.Strict), l(d, w); - } - e.decodeStrict = a; - function o(d, A) { - A === void 0 && (A = s.XML); - var h = typeof A == "number" ? { level: A } : A; - return h.mode === i.UTF8 ? (0, c.escapeUTF8)(d) : h.mode === i.Attribute ? (0, c.escapeAttribute)(d) : h.mode === i.Text ? (0, c.escapeText)(d) : h.level === s.HTML ? h.mode === i.ASCII ? (0, t.encodeNonAsciiHTML)(d) : (0, t.encodeHTML)(d) : (0, c.encodeXML)(d); - } - e.encode = o; - var r = /* @__PURE__ */ Ct(); + d === void 0 && (d = a.XML); + var y = typeof d == "number" ? { level: d } : d; + return (h = y.mode) !== null && h !== void 0 || (y.mode = u.DecodingMode.Strict), o(A, y); + } + e.decodeStrict = i; + function c(A, d) { + d === void 0 && (d = a.XML); + var h = typeof d == "number" ? { level: d } : d; + return h.mode === r.UTF8 ? (0, s.escapeUTF8)(A) : h.mode === r.Attribute ? (0, s.escapeAttribute)(A) : h.mode === r.Text ? (0, s.escapeText)(A) : h.level === a.HTML ? h.mode === r.ASCII ? (0, t.encodeNonAsciiHTML)(A) : (0, t.encodeHTML)(A) : (0, s.encodeXML)(A); + } + e.encode = c; + var n = /* @__PURE__ */ _t(); Object.defineProperty(e, "encodeXML", { enumerable: !0, get: function() { - return r.encodeXML; + return n.encodeXML; } }), Object.defineProperty(e, "escape", { enumerable: !0, get: function() { - return r.escape; + return n.escape; } }), Object.defineProperty(e, "escapeUTF8", { enumerable: !0, get: function() { - return r.escapeUTF8; + return n.escapeUTF8; } }), Object.defineProperty(e, "escapeAttribute", { enumerable: !0, get: function() { - return r.escapeAttribute; + return n.escapeAttribute; } }), Object.defineProperty(e, "escapeText", { enumerable: !0, get: function() { - return r.escapeText; + return n.escapeText; } }); - var n = /* @__PURE__ */ S0(); + var l = /* @__PURE__ */ Nr(); Object.defineProperty(e, "encodeHTML", { enumerable: !0, get: function() { - return n.encodeHTML; + return l.encodeHTML; } }), Object.defineProperty(e, "encodeNonAsciiHTML", { enumerable: !0, get: function() { - return n.encodeNonAsciiHTML; + return l.encodeNonAsciiHTML; } }), Object.defineProperty(e, "encodeHTML4", { enumerable: !0, get: function() { - return n.encodeHTML; + return l.encodeHTML; } }), Object.defineProperty(e, "encodeHTML5", { enumerable: !0, get: function() { - return n.encodeHTML; + return l.encodeHTML; } }); - var f = /* @__PURE__ */ _0(); + var f = /* @__PURE__ */ Fr(); Object.defineProperty(e, "EntityDecoder", { enumerable: !0, get: function() { return f.EntityDecoder; } }), Object.defineProperty(e, "DecodingMode", { enumerable: !0, get: function() { @@ -5431,11 +5540,11 @@ function Ts() { } }), Object.defineProperty(e, "decodeXMLStrict", { enumerable: !0, get: function() { return f.decodeXML; } }); - })(Pu)), Pu; + })(Wu)), Wu; } -var Re = {}, T0; -function Ns() { - return T0 || (T0 = 1, Object.defineProperty(Re, "__esModule", { value: !0 }), Re.attributeNames = Re.elementNames = void 0, Re.elementNames = new Map([ +var Le = {}, Or; +function Gs() { + return Or || (Or = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.attributeNames = Le.elementNames = void 0, Le.elementNames = new Map([ "altGlyph", "altGlyphDef", "altGlyphItem", @@ -5475,7 +5584,7 @@ function Ns() { "textPath" ].map(function(e) { return [e.toLowerCase(), e]; - })), Re.attributeNames = new Map([ + })), Le.attributeNames = new Map([ "definitionURL", "attributeName", "attributeType", @@ -5537,40 +5646,40 @@ function Ns() { "zoomAndPan" ].map(function(e) { return [e.toLowerCase(), e]; - }))), Re; + }))), Le; } -var N0; -function Os() { - if (N0) return X; - N0 = 1; - var e = X && X.__assign || function() { - return e = Object.assign || function(x) { - for (var p, y = 1, v = arguments.length; y < v; y++) { - p = arguments[y]; - for (var I in p) Object.prototype.hasOwnProperty.call(p, I) && (x[I] = p[I]); - } - return x; +var Qr; +function Hs() { + if (Qr) return ue; + Qr = 1; + var e = ue && ue.__assign || function() { + return e = Object.assign || function(m) { + for (var p, g = 1, D = arguments.length; g < D; g++) { + p = arguments[g]; + for (var B in p) Object.prototype.hasOwnProperty.call(p, B) && (m[B] = p[B]); + } + return m; }, e.apply(this, arguments); - }, u = X && X.__createBinding || (Object.create ? (function(x, p, y, v) { - v === void 0 && (v = y); - var I = Object.getOwnPropertyDescriptor(p, y); - (!I || ("get" in I ? !p.__esModule : I.writable || I.configurable)) && (I = { enumerable: !0, get: function() { - return p[y]; - } }), Object.defineProperty(x, v, I); - }) : (function(x, p, y, v) { - v === void 0 && (v = y), x[v] = p[y]; - })), t = X && X.__setModuleDefault || (Object.create ? (function(x, p) { - Object.defineProperty(x, "default", { enumerable: !0, value: p }); - }) : function(x, p) { - x.default = p; - }), c = X && X.__importStar || function(x) { - if (x && x.__esModule) return x; + }, u = ue && ue.__createBinding || (Object.create ? (function(m, p, g, D) { + D === void 0 && (D = g); + var B = Object.getOwnPropertyDescriptor(p, g); + (!B || ("get" in B ? !p.__esModule : B.writable || B.configurable)) && (B = { enumerable: !0, get: function() { + return p[g]; + } }), Object.defineProperty(m, D, B); + }) : (function(m, p, g, D) { + D === void 0 && (D = g), m[D] = p[g]; + })), t = ue && ue.__setModuleDefault || (Object.create ? (function(m, p) { + Object.defineProperty(m, "default", { enumerable: !0, value: p }); + }) : function(m, p) { + m.default = p; + }), s = ue && ue.__importStar || function(m) { + if (m && m.__esModule) return m; var p = {}; - if (x != null) for (var y in x) y !== "default" && Object.prototype.hasOwnProperty.call(x, y) && u(p, x, y); - return t(p, x), p; + if (m != null) for (var g in m) g !== "default" && Object.prototype.hasOwnProperty.call(m, g) && u(p, m, g); + return t(p, m), p; }; - Object.defineProperty(X, "__esModule", { value: !0 }), X.render = void 0; - var s = c(/* @__PURE__ */ Xe()), i = /* @__PURE__ */ Ts(), l = /* @__PURE__ */ Ns(), a = /* @__PURE__ */ new Set([ + Object.defineProperty(ue, "__esModule", { value: !0 }), ue.render = void 0; + var a = s(/* @__PURE__ */ tu()), r = /* @__PURE__ */ Ps(), o = /* @__PURE__ */ Gs(), i = /* @__PURE__ */ new Set([ "style", "script", "xmp", @@ -5580,20 +5689,20 @@ function Os() { "plaintext", "noscript" ]); - function o(x) { - return x.replace(/"/g, """); - } - function r(x, p) { - var y; - if (x) { - var v = ((y = p.encodeEntities) !== null && y !== void 0 ? y : p.decodeEntities) === !1 ? o : p.xmlMode || p.encodeEntities !== "utf8" ? i.encodeXML : i.escapeAttribute; - return Object.keys(x).map(function(I) { - var D, _, E = (D = x[I]) !== null && D !== void 0 ? D : ""; - return p.xmlMode === "foreign" && (I = (_ = l.attributeNames.get(I)) !== null && _ !== void 0 ? _ : I), !p.emptyAttrs && !p.xmlMode && E === "" ? I : "".concat(I, '="').concat(v(E), '"'); + function c(m) { + return m.replace(/"/g, """); + } + function n(m, p) { + var g; + if (m) { + var D = ((g = p.encodeEntities) !== null && g !== void 0 ? g : p.decodeEntities) === !1 ? c : p.xmlMode || p.encodeEntities !== "utf8" ? r.encodeXML : r.escapeAttribute; + return Object.keys(m).map(function(B) { + var E, _, v = (E = m[B]) !== null && E !== void 0 ? E : ""; + return p.xmlMode === "foreign" && (B = (_ = o.attributeNames.get(B)) !== null && _ !== void 0 ? _ : B), !p.emptyAttrs && !p.xmlMode && v === "" ? B : "".concat(B, '="').concat(D(v), '"'); }).join(" "); } } - var n = /* @__PURE__ */ new Set([ + var l = /* @__PURE__ */ new Set([ "area", "base", "basefont", @@ -5614,34 +5723,34 @@ function Os() { "track", "wbr" ]); - function f(x, p) { + function f(m, p) { p === void 0 && (p = {}); - for (var y = ("length" in x) ? x : [x], v = "", I = 0; I < y.length; I++) - v += d(y[I], p); - return v; - } - X.render = f, X.default = f; - function d(x, p) { - switch (x.type) { - case s.Root: - return f(x.children, p); + for (var g = ("length" in m) ? m : [m], D = "", B = 0; B < g.length; B++) + D += A(g[B], p); + return D; + } + ue.render = f, ue.default = f; + function A(m, p) { + switch (m.type) { + case a.Root: + return f(m.children, p); // @ts-expect-error We don't use `Doctype` yet - case s.Doctype: - case s.Directive: - return C(x); - case s.Comment: - return g(x); - case s.CDATA: - return m(x); - case s.Script: - case s.Style: - case s.Tag: - return w(x, p); - case s.Text: - return b(x, p); - } - } - var A = /* @__PURE__ */ new Set([ + case a.Doctype: + case a.Directive: + return C(m); + case a.Comment: + return x(m); + case a.CDATA: + return b(m); + case a.Script: + case a.Style: + case a.Tag: + return y(m, p); + case a.Text: + return w(m, p); + } + } + var d = /* @__PURE__ */ new Set([ "mi", "mo", "mn", @@ -5652,383 +5761,383 @@ function Os() { "desc", "title" ]), h = /* @__PURE__ */ new Set(["svg", "math"]); - function w(x, p) { - var y; - p.xmlMode === "foreign" && (x.name = (y = l.elementNames.get(x.name)) !== null && y !== void 0 ? y : x.name, x.parent && A.has(x.parent.name) && (p = e(e({}, p), { xmlMode: !1 }))), !p.xmlMode && h.has(x.name) && (p = e(e({}, p), { xmlMode: "foreign" })); - var v = "<".concat(x.name), I = r(x.attribs, p); - return I && (v += " ".concat(I)), x.children.length === 0 && (p.xmlMode ? ( + function y(m, p) { + var g; + p.xmlMode === "foreign" && (m.name = (g = o.elementNames.get(m.name)) !== null && g !== void 0 ? g : m.name, m.parent && d.has(m.parent.name) && (p = e(e({}, p), { xmlMode: !1 }))), !p.xmlMode && h.has(m.name) && (p = e(e({}, p), { xmlMode: "foreign" })); + var D = "<".concat(m.name), B = n(m.attribs, p); + return B && (D += " ".concat(B)), m.children.length === 0 && (p.xmlMode ? ( // In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags p.selfClosingTags !== !1 ) : ( // User explicitly asked for self-closing tags, even in HTML mode - p.selfClosingTags && n.has(x.name) - )) ? (p.xmlMode || (v += " "), v += "/>") : (v += ">", x.children.length > 0 && (v += f(x.children, p)), (p.xmlMode || !n.has(x.name)) && (v += "</".concat(x.name, ">"))), v; + p.selfClosingTags && l.has(m.name) + )) ? (p.xmlMode || (D += " "), D += "/>") : (D += ">", m.children.length > 0 && (D += f(m.children, p)), (p.xmlMode || !l.has(m.name)) && (D += "</".concat(m.name, ">"))), D; } - function C(x) { - return "<".concat(x.data, ">"); + function C(m) { + return "<".concat(m.data, ">"); } - function b(x, p) { - var y, v = x.data || ""; - return ((y = p.encodeEntities) !== null && y !== void 0 ? y : p.decodeEntities) !== !1 && !(!p.xmlMode && x.parent && a.has(x.parent.name)) && (v = p.xmlMode || p.encodeEntities !== "utf8" ? (0, i.encodeXML)(v) : (0, i.escapeText)(v)), v; + function w(m, p) { + var g, D = m.data || ""; + return ((g = p.encodeEntities) !== null && g !== void 0 ? g : p.decodeEntities) !== !1 && !(!p.xmlMode && m.parent && i.has(m.parent.name)) && (D = p.xmlMode || p.encodeEntities !== "utf8" ? (0, r.encodeXML)(D) : (0, r.escapeText)(D)), D; } - function m(x) { - return "<![CDATA[".concat(x.children[0].data, "]]>"); + function b(m) { + return "<![CDATA[".concat(m.children[0].data, "]]>"); } - function g(x) { - return "<!--".concat(x.data, "-->"); + function x(m) { + return "<!--".concat(m.data, "-->"); } - return X; + return ue; } -var O0; -function ri() { - if (O0) return fe; - O0 = 1; - var e = fe && fe.__importDefault || function(r) { - return r && r.__esModule ? r : { default: r }; +var Lr; +function on() { + if (Lr) return xe; + Lr = 1; + var e = xe && xe.__importDefault || function(n) { + return n && n.__esModule ? n : { default: n }; }; - Object.defineProperty(fe, "__esModule", { value: !0 }), fe.getOuterHTML = s, fe.getInnerHTML = i, fe.getText = l, fe.textContent = a, fe.innerText = o; - var u = /* @__PURE__ */ Ie(), t = e(/* @__PURE__ */ Os()), c = /* @__PURE__ */ Xe(); - function s(r, n) { - return (0, t.default)(r, n); - } - function i(r, n) { - return (0, u.hasChildren)(r) ? r.children.map(function(f) { - return s(f, n); + Object.defineProperty(xe, "__esModule", { value: !0 }), xe.getOuterHTML = a, xe.getInnerHTML = r, xe.getText = o, xe.textContent = i, xe.innerText = c; + var u = /* @__PURE__ */ Ne(), t = e(/* @__PURE__ */ Hs()), s = /* @__PURE__ */ tu(); + function a(n, l) { + return (0, t.default)(n, l); + } + function r(n, l) { + return (0, u.hasChildren)(n) ? n.children.map(function(f) { + return a(f, l); }).join("") : ""; } - function l(r) { - return Array.isArray(r) ? r.map(l).join("") : (0, u.isTag)(r) ? r.name === "br" ? ` -` : l(r.children) : (0, u.isCDATA)(r) ? l(r.children) : (0, u.isText)(r) ? r.data : ""; + function o(n) { + return Array.isArray(n) ? n.map(o).join("") : (0, u.isTag)(n) ? n.name === "br" ? ` +` : o(n.children) : (0, u.isCDATA)(n) ? o(n.children) : (0, u.isText)(n) ? n.data : ""; } - function a(r) { - return Array.isArray(r) ? r.map(a).join("") : (0, u.hasChildren)(r) && !(0, u.isComment)(r) ? a(r.children) : (0, u.isText)(r) ? r.data : ""; + function i(n) { + return Array.isArray(n) ? n.map(i).join("") : (0, u.hasChildren)(n) && !(0, u.isComment)(n) ? i(n.children) : (0, u.isText)(n) ? n.data : ""; } - function o(r) { - return Array.isArray(r) ? r.map(o).join("") : (0, u.hasChildren)(r) && (r.type === c.ElementType.Tag || (0, u.isCDATA)(r)) ? o(r.children) : (0, u.isText)(r) ? r.data : ""; + function c(n) { + return Array.isArray(n) ? n.map(c).join("") : (0, u.hasChildren)(n) && (n.type === s.ElementType.Tag || (0, u.isCDATA)(n)) ? c(n.children) : (0, u.isText)(n) ? n.data : ""; } - return fe; + return xe; } -var ce = {}, M0; -function Ms() { - if (M0) return ce; - M0 = 1, Object.defineProperty(ce, "__esModule", { value: !0 }), ce.getChildren = u, ce.getParent = t, ce.getSiblings = c, ce.getAttributeValue = s, ce.hasAttrib = i, ce.getName = l, ce.nextElementSibling = a, ce.prevElementSibling = o; - var e = /* @__PURE__ */ Ie(); - function u(r) { - return (0, e.hasChildren)(r) ? r.children : []; - } - function t(r) { - return r.parent || null; - } - function c(r) { - var n, f, d = t(r); - if (d != null) - return u(d); - for (var A = [r], h = r.prev, w = r.next; h != null; ) - A.unshift(h), n = h, h = n.prev; - for (; w != null; ) - A.push(w), f = w, w = f.next; - return A; +var pe = {}, Pr; +function qs() { + if (Pr) return pe; + Pr = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.getChildren = u, pe.getParent = t, pe.getSiblings = s, pe.getAttributeValue = a, pe.hasAttrib = r, pe.getName = o, pe.nextElementSibling = i, pe.prevElementSibling = c; + var e = /* @__PURE__ */ Ne(); + function u(n) { + return (0, e.hasChildren)(n) ? n.children : []; + } + function t(n) { + return n.parent || null; + } + function s(n) { + var l, f, A = t(n); + if (A != null) + return u(A); + for (var d = [n], h = n.prev, y = n.next; h != null; ) + d.unshift(h), l = h, h = l.prev; + for (; y != null; ) + d.push(y), f = y, y = f.next; + return d; } - function s(r, n) { + function a(n, l) { var f; - return (f = r.attribs) === null || f === void 0 ? void 0 : f[n]; + return (f = n.attribs) === null || f === void 0 ? void 0 : f[l]; } - function i(r, n) { - return r.attribs != null && Object.prototype.hasOwnProperty.call(r.attribs, n) && r.attribs[n] != null; + function r(n, l) { + return n.attribs != null && Object.prototype.hasOwnProperty.call(n.attribs, l) && n.attribs[l] != null; } - function l(r) { - return r.name; + function o(n) { + return n.name; } - function a(r) { - for (var n, f = r.next; f !== null && !(0, e.isTag)(f); ) - n = f, f = n.next; + function i(n) { + for (var l, f = n.next; f !== null && !(0, e.isTag)(f); ) + l = f, f = l.next; return f; } - function o(r) { - for (var n, f = r.prev; f !== null && !(0, e.isTag)(f); ) - n = f, f = n.prev; + function c(n) { + for (var l, f = n.prev; f !== null && !(0, e.isTag)(f); ) + l = f, f = l.prev; return f; } - return ce; + return pe; } -var me = {}, Q0; -function Qs() { - if (Q0) return me; - Q0 = 1, Object.defineProperty(me, "__esModule", { value: !0 }), me.removeElement = e, me.replaceElement = u, me.appendChild = t, me.append = c, me.prependChild = s, me.prepend = i; - function e(l) { - if (l.prev && (l.prev.next = l.next), l.next && (l.next.prev = l.prev), l.parent) { - var a = l.parent.children, o = a.lastIndexOf(l); - o >= 0 && a.splice(o, 1); - } - l.next = null, l.prev = null, l.parent = null; - } - function u(l, a) { - var o = a.prev = l.prev; - o && (o.next = a); - var r = a.next = l.next; - r && (r.prev = a); - var n = a.parent = l.parent; - if (n) { - var f = n.children; - f[f.lastIndexOf(l)] = a, l.parent = null; - } - } - function t(l, a) { - if (e(a), a.next = null, a.parent = l, l.children.push(a) > 1) { - var o = l.children[l.children.length - 2]; - o.next = a, a.prev = o; - } else - a.prev = null; - } - function c(l, a) { - e(a); - var o = l.parent, r = l.next; - if (a.next = r, a.prev = l, l.next = a, a.parent = o, r) { - if (r.prev = a, o) { - var n = o.children; - n.splice(n.lastIndexOf(r), 0, a); - } - } else o && o.children.push(a); - } - function s(l, a) { - if (e(a), a.parent = l, a.prev = null, l.children.unshift(a) !== 1) { - var o = l.children[1]; - o.prev = a, a.next = o; - } else - a.next = null; - } - function i(l, a) { - e(a); - var o = l.parent; - if (o) { - var r = o.children; - r.splice(r.indexOf(l), 0, a); +var _e = {}, Gr; +function Ws() { + if (Gr) return _e; + Gr = 1, Object.defineProperty(_e, "__esModule", { value: !0 }), _e.removeElement = e, _e.replaceElement = u, _e.appendChild = t, _e.append = s, _e.prependChild = a, _e.prepend = r; + function e(o) { + if (o.prev && (o.prev.next = o.next), o.next && (o.next.prev = o.prev), o.parent) { + var i = o.parent.children, c = i.lastIndexOf(o); + c >= 0 && i.splice(c, 1); + } + o.next = null, o.prev = null, o.parent = null; + } + function u(o, i) { + var c = i.prev = o.prev; + c && (c.next = i); + var n = i.next = o.next; + n && (n.prev = i); + var l = i.parent = o.parent; + if (l) { + var f = l.children; + f[f.lastIndexOf(o)] = i, o.parent = null; } - l.prev && (l.prev.next = a), a.parent = o, a.prev = l.prev, a.next = l, l.prev = a; } - return me; -} -var xe = {}, L0; -function ii() { - if (L0) return xe; - L0 = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.filter = u, xe.find = t, xe.findOneChild = c, xe.findOne = s, xe.existsOne = i, xe.findAll = l; - var e = /* @__PURE__ */ Ie(); - function u(a, o, r, n) { - return r === void 0 && (r = !0), n === void 0 && (n = 1 / 0), t(a, Array.isArray(o) ? o : [o], r, n); - } - function t(a, o, r, n) { - for (var f = [], d = [Array.isArray(o) ? o : [o]], A = [0]; ; ) { - if (A[0] >= d[0].length) { - if (A.length === 1) + function t(o, i) { + if (e(i), i.next = null, i.parent = o, o.children.push(i) > 1) { + var c = o.children[o.children.length - 2]; + c.next = i, i.prev = c; + } else + i.prev = null; + } + function s(o, i) { + e(i); + var c = o.parent, n = o.next; + if (i.next = n, i.prev = o, o.next = i, i.parent = c, n) { + if (n.prev = i, c) { + var l = c.children; + l.splice(l.lastIndexOf(n), 0, i); + } + } else c && c.children.push(i); + } + function a(o, i) { + if (e(i), i.parent = o, i.prev = null, o.children.unshift(i) !== 1) { + var c = o.children[1]; + c.prev = i, i.next = c; + } else + i.next = null; + } + function r(o, i) { + e(i); + var c = o.parent; + if (c) { + var n = c.children; + n.splice(n.indexOf(o), 0, i); + } + o.prev && (o.prev.next = i), i.parent = c, i.prev = o.prev, i.next = o, o.prev = i; + } + return _e; +} +var Ie = {}, Hr; +function ln() { + if (Hr) return Ie; + Hr = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.filter = u, Ie.find = t, Ie.findOneChild = s, Ie.findOne = a, Ie.existsOne = r, Ie.findAll = o; + var e = /* @__PURE__ */ Ne(); + function u(i, c, n, l) { + return n === void 0 && (n = !0), l === void 0 && (l = 1 / 0), t(i, Array.isArray(c) ? c : [c], n, l); + } + function t(i, c, n, l) { + for (var f = [], A = [Array.isArray(c) ? c : [c]], d = [0]; ; ) { + if (d[0] >= A[0].length) { + if (d.length === 1) return f; - d.shift(), A.shift(); + A.shift(), d.shift(); continue; } - var h = d[0][A[0]++]; - if (a(h) && (f.push(h), --n <= 0)) + var h = A[0][d[0]++]; + if (i(h) && (f.push(h), --l <= 0)) return f; - r && (0, e.hasChildren)(h) && h.children.length > 0 && (A.unshift(0), d.unshift(h.children)); + n && (0, e.hasChildren)(h) && h.children.length > 0 && (d.unshift(0), A.unshift(h.children)); } } - function c(a, o) { - return o.find(a); + function s(i, c) { + return c.find(i); } - function s(a, o, r) { - r === void 0 && (r = !0); - for (var n = Array.isArray(o) ? o : [o], f = 0; f < n.length; f++) { - var d = n[f]; - if ((0, e.isTag)(d) && a(d)) - return d; - if (r && (0, e.hasChildren)(d) && d.children.length > 0) { - var A = s(a, d.children, !0); - if (A) - return A; + function a(i, c, n) { + n === void 0 && (n = !0); + for (var l = Array.isArray(c) ? c : [c], f = 0; f < l.length; f++) { + var A = l[f]; + if ((0, e.isTag)(A) && i(A)) + return A; + if (n && (0, e.hasChildren)(A) && A.children.length > 0) { + var d = a(i, A.children, !0); + if (d) + return d; } } return null; } - function i(a, o) { - return (Array.isArray(o) ? o : [o]).some(function(r) { - return (0, e.isTag)(r) && a(r) || (0, e.hasChildren)(r) && i(a, r.children); + function r(i, c) { + return (Array.isArray(c) ? c : [c]).some(function(n) { + return (0, e.isTag)(n) && i(n) || (0, e.hasChildren)(n) && r(i, n.children); }); } - function l(a, o) { - for (var r = [], n = [Array.isArray(o) ? o : [o]], f = [0]; ; ) { - if (f[0] >= n[0].length) { - if (n.length === 1) - return r; - n.shift(), f.shift(); + function o(i, c) { + for (var n = [], l = [Array.isArray(c) ? c : [c]], f = [0]; ; ) { + if (f[0] >= l[0].length) { + if (l.length === 1) + return n; + l.shift(), f.shift(); continue; } - var d = n[0][f[0]++]; - (0, e.isTag)(d) && a(d) && r.push(d), (0, e.hasChildren)(d) && d.children.length > 0 && (f.unshift(0), n.unshift(d.children)); + var A = l[0][f[0]++]; + (0, e.isTag)(A) && i(A) && n.push(A), (0, e.hasChildren)(A) && A.children.length > 0 && (f.unshift(0), l.unshift(A.children)); } } - return xe; + return Ie; } -var ye = {}, P0; -function ni() { - if (P0) return ye; - P0 = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.testElement = l, ye.getElements = a, ye.getElementById = o, ye.getElementsByTagName = r, ye.getElementsByClassName = n, ye.getElementsByTagType = f; - var e = /* @__PURE__ */ Ie(), u = /* @__PURE__ */ ii(), t = { - tag_name: function(d) { - return typeof d == "function" ? function(A) { - return (0, e.isTag)(A) && d(A.name); - } : d === "*" ? e.isTag : function(A) { - return (0, e.isTag)(A) && A.name === d; +var ke = {}, qr; +function fn() { + if (qr) return ke; + qr = 1, Object.defineProperty(ke, "__esModule", { value: !0 }), ke.testElement = o, ke.getElements = i, ke.getElementById = c, ke.getElementsByTagName = n, ke.getElementsByClassName = l, ke.getElementsByTagType = f; + var e = /* @__PURE__ */ Ne(), u = /* @__PURE__ */ ln(), t = { + tag_name: function(A) { + return typeof A == "function" ? function(d) { + return (0, e.isTag)(d) && A(d.name); + } : A === "*" ? e.isTag : function(d) { + return (0, e.isTag)(d) && d.name === A; }; }, - tag_type: function(d) { - return typeof d == "function" ? function(A) { - return d(A.type); - } : function(A) { - return A.type === d; + tag_type: function(A) { + return typeof A == "function" ? function(d) { + return A(d.type); + } : function(d) { + return d.type === A; }; }, - tag_contains: function(d) { - return typeof d == "function" ? function(A) { - return (0, e.isText)(A) && d(A.data); - } : function(A) { - return (0, e.isText)(A) && A.data === d; + tag_contains: function(A) { + return typeof A == "function" ? function(d) { + return (0, e.isText)(d) && A(d.data); + } : function(d) { + return (0, e.isText)(d) && d.data === A; }; } }; - function c(d, A) { - return typeof A == "function" ? function(h) { - return (0, e.isTag)(h) && A(h.attribs[d]); + function s(A, d) { + return typeof d == "function" ? function(h) { + return (0, e.isTag)(h) && d(h.attribs[A]); } : function(h) { - return (0, e.isTag)(h) && h.attribs[d] === A; + return (0, e.isTag)(h) && h.attribs[A] === d; }; } - function s(d, A) { + function a(A, d) { return function(h) { - return d(h) || A(h); + return A(h) || d(h); }; } - function i(d) { - var A = Object.keys(d).map(function(h) { - var w = d[h]; - return Object.prototype.hasOwnProperty.call(t, h) ? t[h](w) : c(h, w); + function r(A) { + var d = Object.keys(A).map(function(h) { + var y = A[h]; + return Object.prototype.hasOwnProperty.call(t, h) ? t[h](y) : s(h, y); }); - return A.length === 0 ? null : A.reduce(s); + return d.length === 0 ? null : d.reduce(a); } - function l(d, A) { - var h = i(d); - return h ? h(A) : !0; + function o(A, d) { + var h = r(A); + return h ? h(d) : !0; } - function a(d, A, h, w) { - w === void 0 && (w = 1 / 0); - var C = i(d); - return C ? (0, u.filter)(C, A, h, w) : []; + function i(A, d, h, y) { + y === void 0 && (y = 1 / 0); + var C = r(A); + return C ? (0, u.filter)(C, d, h, y) : []; } - function o(d, A, h) { - return h === void 0 && (h = !0), Array.isArray(A) || (A = [A]), (0, u.findOne)(c("id", d), A, h); + function c(A, d, h) { + return h === void 0 && (h = !0), Array.isArray(d) || (d = [d]), (0, u.findOne)(s("id", A), d, h); } - function r(d, A, h, w) { - return h === void 0 && (h = !0), w === void 0 && (w = 1 / 0), (0, u.filter)(t.tag_name(d), A, h, w); + function n(A, d, h, y) { + return h === void 0 && (h = !0), y === void 0 && (y = 1 / 0), (0, u.filter)(t.tag_name(A), d, h, y); } - function n(d, A, h, w) { - return h === void 0 && (h = !0), w === void 0 && (w = 1 / 0), (0, u.filter)(c("class", d), A, h, w); + function l(A, d, h, y) { + return h === void 0 && (h = !0), y === void 0 && (y = 1 / 0), (0, u.filter)(s("class", A), d, h, y); } - function f(d, A, h, w) { - return h === void 0 && (h = !0), w === void 0 && (w = 1 / 0), (0, u.filter)(t.tag_type(d), A, h, w); + function f(A, d, h, y) { + return h === void 0 && (h = !0), y === void 0 && (y = 1 / 0), (0, u.filter)(t.tag_type(A), d, h, y); } - return ye; + return ke; } -var we = {}, G0; -function Ls() { - if (G0) return we; - G0 = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.DocumentPosition = void 0, we.removeSubsets = u, we.compareDocumentPosition = c, we.uniqueSort = s; - var e = /* @__PURE__ */ Ie(); - function u(i) { - for (var l = i.length; --l >= 0; ) { - var a = i[l]; - if (l > 0 && i.lastIndexOf(a, l - 1) >= 0) { - i.splice(l, 1); +var Be = {}, Wr; +function Us() { + if (Wr) return Be; + Wr = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.DocumentPosition = void 0, Be.removeSubsets = u, Be.compareDocumentPosition = s, Be.uniqueSort = a; + var e = /* @__PURE__ */ Ne(); + function u(r) { + for (var o = r.length; --o >= 0; ) { + var i = r[o]; + if (o > 0 && r.lastIndexOf(i, o - 1) >= 0) { + r.splice(o, 1); continue; } - for (var o = a.parent; o; o = o.parent) - if (i.includes(o)) { - i.splice(l, 1); + for (var c = i.parent; c; c = c.parent) + if (r.includes(c)) { + r.splice(o, 1); break; } } - return i; + return r; } var t; - (function(i) { - i[i.DISCONNECTED = 1] = "DISCONNECTED", i[i.PRECEDING = 2] = "PRECEDING", i[i.FOLLOWING = 4] = "FOLLOWING", i[i.CONTAINS = 8] = "CONTAINS", i[i.CONTAINED_BY = 16] = "CONTAINED_BY"; - })(t || (we.DocumentPosition = t = {})); - function c(i, l) { - var a = [], o = []; - if (i === l) + (function(r) { + r[r.DISCONNECTED = 1] = "DISCONNECTED", r[r.PRECEDING = 2] = "PRECEDING", r[r.FOLLOWING = 4] = "FOLLOWING", r[r.CONTAINS = 8] = "CONTAINS", r[r.CONTAINED_BY = 16] = "CONTAINED_BY"; + })(t || (Be.DocumentPosition = t = {})); + function s(r, o) { + var i = [], c = []; + if (r === o) return 0; - for (var r = (0, e.hasChildren)(i) ? i : i.parent; r; ) - a.unshift(r), r = r.parent; - for (r = (0, e.hasChildren)(l) ? l : l.parent; r; ) - o.unshift(r), r = r.parent; - for (var n = Math.min(a.length, o.length), f = 0; f < n && a[f] === o[f]; ) + for (var n = (0, e.hasChildren)(r) ? r : r.parent; n; ) + i.unshift(n), n = n.parent; + for (n = (0, e.hasChildren)(o) ? o : o.parent; n; ) + c.unshift(n), n = n.parent; + for (var l = Math.min(i.length, c.length), f = 0; f < l && i[f] === c[f]; ) f++; if (f === 0) return t.DISCONNECTED; - var d = a[f - 1], A = d.children, h = a[f], w = o[f]; - return A.indexOf(h) > A.indexOf(w) ? d === l ? t.FOLLOWING | t.CONTAINED_BY : t.FOLLOWING : d === i ? t.PRECEDING | t.CONTAINS : t.PRECEDING; + var A = i[f - 1], d = A.children, h = i[f], y = c[f]; + return d.indexOf(h) > d.indexOf(y) ? A === o ? t.FOLLOWING | t.CONTAINED_BY : t.FOLLOWING : A === r ? t.PRECEDING | t.CONTAINS : t.PRECEDING; } - function s(i) { - return i = i.filter(function(l, a, o) { - return !o.includes(l, a + 1); - }), i.sort(function(l, a) { - var o = c(l, a); - return o & t.PRECEDING ? -1 : o & t.FOLLOWING ? 1 : 0; - }), i; + function a(r) { + return r = r.filter(function(o, i, c) { + return !c.includes(o, i + 1); + }), r.sort(function(o, i) { + var c = s(o, i); + return c & t.PRECEDING ? -1 : c & t.FOLLOWING ? 1 : 0; + }), r; } - return we; + return Be; } -var cu = {}, q0; -function Ps() { - if (q0) return cu; - q0 = 1, Object.defineProperty(cu, "__esModule", { value: !0 }), cu.getFeed = t; - var e = /* @__PURE__ */ ri(), u = /* @__PURE__ */ ni(); - function t(d) { - var A = o(f, d); - return A ? A.name === "feed" ? c(A) : s(A) : null; - } - function c(d) { - var A, h = d.children, w = { +var fu = {}, Ur; +function Ks() { + if (Ur) return fu; + Ur = 1, Object.defineProperty(fu, "__esModule", { value: !0 }), fu.getFeed = t; + var e = /* @__PURE__ */ on(), u = /* @__PURE__ */ fn(); + function t(A) { + var d = c(f, A); + return d ? d.name === "feed" ? s(d) : a(d) : null; + } + function s(A) { + var d, h = A.children, y = { type: "atom", - items: (0, u.getElementsByTagName)("entry", h).map(function(m) { - var g, x = m.children, p = { media: a(x) }; - n(p, "id", "id", x), n(p, "title", "title", x); - var y = (g = o("link", x)) === null || g === void 0 ? void 0 : g.attribs.href; - y && (p.link = y); - var v = r("summary", x) || r("content", x); - v && (p.description = v); - var I = r("updated", x); - return I && (p.pubDate = new Date(I)), p; + items: (0, u.getElementsByTagName)("entry", h).map(function(b) { + var x, m = b.children, p = { media: i(m) }; + l(p, "id", "id", m), l(p, "title", "title", m); + var g = (x = c("link", m)) === null || x === void 0 ? void 0 : x.attribs.href; + g && (p.link = g); + var D = n("summary", m) || n("content", m); + D && (p.description = D); + var B = n("updated", m); + return B && (p.pubDate = new Date(B)), p; }) }; - n(w, "id", "id", h), n(w, "title", "title", h); - var C = (A = o("link", h)) === null || A === void 0 ? void 0 : A.attribs.href; - C && (w.link = C), n(w, "description", "subtitle", h); - var b = r("updated", h); - return b && (w.updated = new Date(b)), n(w, "author", "email", h, !0), w; - } - function s(d) { - var A, h, w = (h = (A = o("channel", d.children)) === null || A === void 0 ? void 0 : A.children) !== null && h !== void 0 ? h : [], C = { - type: d.name.substr(0, 3), + l(y, "id", "id", h), l(y, "title", "title", h); + var C = (d = c("link", h)) === null || d === void 0 ? void 0 : d.attribs.href; + C && (y.link = C), l(y, "description", "subtitle", h); + var w = n("updated", h); + return w && (y.updated = new Date(w)), l(y, "author", "email", h, !0), y; + } + function a(A) { + var d, h, y = (h = (d = c("channel", A.children)) === null || d === void 0 ? void 0 : d.children) !== null && h !== void 0 ? h : [], C = { + type: A.name.substr(0, 3), id: "", - items: (0, u.getElementsByTagName)("item", d.children).map(function(m) { - var g = m.children, x = { media: a(g) }; - n(x, "id", "guid", g), n(x, "title", "title", g), n(x, "link", "link", g), n(x, "description", "description", g); - var p = r("pubDate", g) || r("dc:date", g); - return p && (x.pubDate = new Date(p)), x; + items: (0, u.getElementsByTagName)("item", A.children).map(function(b) { + var x = b.children, m = { media: i(x) }; + l(m, "id", "guid", x), l(m, "title", "title", x), l(m, "link", "link", x), l(m, "description", "description", x); + var p = n("pubDate", x) || n("dc:date", x); + return p && (m.pubDate = new Date(p)), m; }) }; - n(C, "title", "title", w), n(C, "link", "link", w), n(C, "description", "description", w); - var b = r("lastBuildDate", w); - return b && (C.updated = new Date(b)), n(C, "author", "managingEditor", w, !0), C; + l(C, "title", "title", y), l(C, "link", "link", y), l(C, "description", "description", y); + var w = n("lastBuildDate", y); + return w && (C.updated = new Date(w)), l(C, "author", "managingEditor", y, !0), C; } - var i = ["url", "type", "lang"], l = [ + var r = ["url", "type", "lang"], o = [ "fileSize", "bitrate", "framerate", @@ -6038,159 +6147,159 @@ function Ps() { "height", "width" ]; - function a(d) { - return (0, u.getElementsByTagName)("media:content", d).map(function(A) { - for (var h = A.attribs, w = { + function i(A) { + return (0, u.getElementsByTagName)("media:content", A).map(function(d) { + for (var h = d.attribs, y = { medium: h.medium, isDefault: !!h.isDefault - }, C = 0, b = i; C < b.length; C++) { - var m = b[C]; - h[m] && (w[m] = h[m]); + }, C = 0, w = r; C < w.length; C++) { + var b = w[C]; + h[b] && (y[b] = h[b]); } - for (var g = 0, x = l; g < x.length; g++) { - var m = x[g]; - h[m] && (w[m] = parseInt(h[m], 10)); + for (var x = 0, m = o; x < m.length; x++) { + var b = m[x]; + h[b] && (y[b] = parseInt(h[b], 10)); } - return h.expression && (w.expression = h.expression), w; + return h.expression && (y.expression = h.expression), y; }); } - function o(d, A) { - return (0, u.getElementsByTagName)(d, A, !0, 1)[0]; + function c(A, d) { + return (0, u.getElementsByTagName)(A, d, !0, 1)[0]; } - function r(d, A, h) { - return h === void 0 && (h = !1), (0, e.textContent)((0, u.getElementsByTagName)(d, A, h, 1)).trim(); + function n(A, d, h) { + return h === void 0 && (h = !1), (0, e.textContent)((0, u.getElementsByTagName)(A, d, h, 1)).trim(); } - function n(d, A, h, w, C) { + function l(A, d, h, y, C) { C === void 0 && (C = !1); - var b = r(h, w, C); - b && (d[A] = b); - } - function f(d) { - return d === "rss" || d === "feed" || d === "rdf:RDF"; - } - return cu; -} -var H0; -function Hu() { - return H0 || (H0 = 1, (function(e) { - var u = Se && Se.__createBinding || (Object.create ? (function(s, i, l, a) { - a === void 0 && (a = l); - var o = Object.getOwnPropertyDescriptor(i, l); - (!o || ("get" in o ? !i.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: function() { - return i[l]; - } }), Object.defineProperty(s, a, o); - }) : (function(s, i, l, a) { - a === void 0 && (a = l), s[a] = i[l]; - })), t = Se && Se.__exportStar || function(s, i) { - for (var l in s) l !== "default" && !Object.prototype.hasOwnProperty.call(i, l) && u(i, s, l); + var w = n(h, y, C); + w && (A[d] = w); + } + function f(A) { + return A === "rss" || A === "feed" || A === "rdf:RDF"; + } + return fu; +} +var Kr; +function Yu() { + return Kr || (Kr = 1, (function(e) { + var u = Qe && Qe.__createBinding || (Object.create ? (function(a, r, o, i) { + i === void 0 && (i = o); + var c = Object.getOwnPropertyDescriptor(r, o); + (!c || ("get" in c ? !r.__esModule : c.writable || c.configurable)) && (c = { enumerable: !0, get: function() { + return r[o]; + } }), Object.defineProperty(a, i, c); + }) : (function(a, r, o, i) { + i === void 0 && (i = o), a[i] = r[o]; + })), t = Qe && Qe.__exportStar || function(a, r) { + for (var o in a) o !== "default" && !Object.prototype.hasOwnProperty.call(r, o) && u(r, a, o); }; - Object.defineProperty(e, "__esModule", { value: !0 }), e.hasChildren = e.isDocument = e.isComment = e.isText = e.isCDATA = e.isTag = void 0, t(/* @__PURE__ */ ri(), e), t(/* @__PURE__ */ Ms(), e), t(/* @__PURE__ */ Qs(), e), t(/* @__PURE__ */ ii(), e), t(/* @__PURE__ */ ni(), e), t(/* @__PURE__ */ Ls(), e), t(/* @__PURE__ */ Ps(), e); - var c = /* @__PURE__ */ Ie(); + Object.defineProperty(e, "__esModule", { value: !0 }), e.hasChildren = e.isDocument = e.isComment = e.isText = e.isCDATA = e.isTag = void 0, t(/* @__PURE__ */ on(), e), t(/* @__PURE__ */ qs(), e), t(/* @__PURE__ */ Ws(), e), t(/* @__PURE__ */ ln(), e), t(/* @__PURE__ */ fn(), e), t(/* @__PURE__ */ Us(), e), t(/* @__PURE__ */ Ks(), e); + var s = /* @__PURE__ */ Ne(); Object.defineProperty(e, "isTag", { enumerable: !0, get: function() { - return c.isTag; + return s.isTag; } }), Object.defineProperty(e, "isCDATA", { enumerable: !0, get: function() { - return c.isCDATA; + return s.isCDATA; } }), Object.defineProperty(e, "isText", { enumerable: !0, get: function() { - return c.isText; + return s.isText; } }), Object.defineProperty(e, "isComment", { enumerable: !0, get: function() { - return c.isComment; + return s.isComment; } }), Object.defineProperty(e, "isDocument", { enumerable: !0, get: function() { - return c.isDocument; + return s.isDocument; } }), Object.defineProperty(e, "hasChildren", { enumerable: !0, get: function() { - return c.hasChildren; + return s.hasChildren; } }); - })(Se)), Se; + })(Qe)), Qe; } -var W0; -function Gs() { - return W0 || (W0 = 1, (function(e) { - var u = ne && ne.__createBinding || (Object.create ? (function(m, g, x, p) { - p === void 0 && (p = x); - var y = Object.getOwnPropertyDescriptor(g, x); - (!y || ("get" in y ? !g.__esModule : y.writable || y.configurable)) && (y = { enumerable: !0, get: function() { - return g[x]; - } }), Object.defineProperty(m, p, y); - }) : (function(m, g, x, p) { - p === void 0 && (p = x), m[p] = g[x]; - })), t = ne && ne.__setModuleDefault || (Object.create ? (function(m, g) { - Object.defineProperty(m, "default", { enumerable: !0, value: g }); - }) : function(m, g) { - m.default = g; - }), c = ne && ne.__importStar || /* @__PURE__ */ (function() { - var m = function(g) { - return m = Object.getOwnPropertyNames || function(x) { +var Yr; +function Ys() { + return Yr || (Yr = 1, (function(e) { + var u = Ae && Ae.__createBinding || (Object.create ? (function(b, x, m, p) { + p === void 0 && (p = m); + var g = Object.getOwnPropertyDescriptor(x, m); + (!g || ("get" in g ? !x.__esModule : g.writable || g.configurable)) && (g = { enumerable: !0, get: function() { + return x[m]; + } }), Object.defineProperty(b, p, g); + }) : (function(b, x, m, p) { + p === void 0 && (p = m), b[p] = x[m]; + })), t = Ae && Ae.__setModuleDefault || (Object.create ? (function(b, x) { + Object.defineProperty(b, "default", { enumerable: !0, value: x }); + }) : function(b, x) { + b.default = x; + }), s = Ae && Ae.__importStar || /* @__PURE__ */ (function() { + var b = function(x) { + return b = Object.getOwnPropertyNames || function(m) { var p = []; - for (var y in x) Object.prototype.hasOwnProperty.call(x, y) && (p[p.length] = y); + for (var g in m) Object.prototype.hasOwnProperty.call(m, g) && (p[p.length] = g); return p; - }, m(g); + }, b(x); }; - return function(g) { - if (g && g.__esModule) return g; - var x = {}; - if (g != null) for (var p = m(g), y = 0; y < p.length; y++) p[y] !== "default" && u(x, g, p[y]); - return t(x, g), x; + return function(x) { + if (x && x.__esModule) return x; + var m = {}; + if (x != null) for (var p = b(x), g = 0; g < p.length; g++) p[g] !== "default" && u(m, x, p[g]); + return t(m, x), m; }; - })(), s = ne && ne.__importDefault || function(m) { - return m && m.__esModule ? m : { default: m }; + })(), a = Ae && Ae.__importDefault || function(b) { + return b && b.__esModule ? b : { default: b }; }; - Object.defineProperty(e, "__esModule", { value: !0 }), e.DomUtils = e.getFeed = e.ElementType = e.QuoteType = e.Tokenizer = e.DefaultHandler = e.DomHandler = e.Parser = void 0, e.parseDocument = r, e.parseDOM = n, e.createDocumentStream = f, e.createDomStream = d, e.parseFeed = b; - const i = g0(); - var l = g0(); + Object.defineProperty(e, "__esModule", { value: !0 }), e.DomUtils = e.getFeed = e.ElementType = e.QuoteType = e.Tokenizer = e.DefaultHandler = e.DomHandler = e.Parser = void 0, e.parseDocument = n, e.parseDOM = l, e.createDocumentStream = f, e.createDomStream = A, e.parseFeed = w; + const r = yr(); + var o = yr(); Object.defineProperty(e, "Parser", { enumerable: !0, get: function() { - return l.Parser; + return o.Parser; } }); - const a = /* @__PURE__ */ Ie(); - var o = /* @__PURE__ */ Ie(); + const i = /* @__PURE__ */ Ne(); + var c = /* @__PURE__ */ Ne(); Object.defineProperty(e, "DomHandler", { enumerable: !0, get: function() { - return o.DomHandler; + return c.DomHandler; } }), Object.defineProperty(e, "DefaultHandler", { enumerable: !0, get: function() { - return o.DomHandler; + return c.DomHandler; } }); - function r(m, g) { - const x = new a.DomHandler(void 0, g); - return new i.Parser(x, g).end(m), x.root; + function n(b, x) { + const m = new i.DomHandler(void 0, x); + return new r.Parser(m, x).end(b), m.root; } - function n(m, g) { - return r(m, g).children; + function l(b, x) { + return n(b, x).children; } - function f(m, g, x) { - const p = new a.DomHandler((y) => m(y, p.root), g, x); - return new i.Parser(p, g); + function f(b, x, m) { + const p = new i.DomHandler((g) => b(g, p.root), x, m); + return new r.Parser(p, x); } - function d(m, g, x) { - const p = new a.DomHandler(m, g, x); - return new i.Parser(p, g); + function A(b, x, m) { + const p = new i.DomHandler(b, x, m); + return new r.Parser(p, x); } - var A = ti(); + var d = cn(); Object.defineProperty(e, "Tokenizer", { enumerable: !0, get: function() { - return s(A).default; + return a(d).default; } }), Object.defineProperty(e, "QuoteType", { enumerable: !0, get: function() { - return A.QuoteType; - } }), e.ElementType = c(/* @__PURE__ */ Xe()); - const h = /* @__PURE__ */ Hu(); - var w = /* @__PURE__ */ Hu(); + return d.QuoteType; + } }), e.ElementType = s(/* @__PURE__ */ tu()); + const h = /* @__PURE__ */ Yu(); + var y = /* @__PURE__ */ Yu(); Object.defineProperty(e, "getFeed", { enumerable: !0, get: function() { - return w.getFeed; + return y.getFeed; } }); const C = { xmlMode: !0 }; - function b(m, g = C) { - return (0, h.getFeed)(n(m, g)); + function w(b, x = C) { + return (0, h.getFeed)(l(b, x)); } - e.DomUtils = c(/* @__PURE__ */ Hu()); - })(ne)), ne; + e.DomUtils = s(/* @__PURE__ */ Yu()); + })(Ae)), Ae; } -var Wu, U0; -function qs() { - return U0 || (U0 = 1, Wu = (e) => { +var ju, jr; +function js() { + return jr || (jr = 1, ju = (e) => { if (typeof e != "string") throw new TypeError("Expected a string"); return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d"); - }), Wu; + }), ju; } -var ou = {}, K0; -function Hs() { - if (K0) return ou; - K0 = 1, Object.defineProperty(ou, "__esModule", { value: !0 }); +var du = {}, Jr; +function Js() { + if (Jr) return du; + Jr = 1, Object.defineProperty(du, "__esModule", { value: !0 }); /*! * is-plain-object <https://github.com/jonschlinkert/is-plain-object> * @@ -6201,227 +6310,227 @@ function Hs() { return Object.prototype.toString.call(t) === "[object Object]"; } function u(t) { - var c, s; - return e(t) === !1 ? !1 : (c = t.constructor, c === void 0 ? !0 : (s = c.prototype, !(e(s) === !1 || s.hasOwnProperty("isPrototypeOf") === !1))); + var s, a; + return e(t) === !1 ? !1 : (s = t.constructor, s === void 0 ? !0 : (a = s.prototype, !(e(a) === !1 || a.hasOwnProperty("isPrototypeOf") === !1))); } - return ou.isPlainObject = u, ou; + return du.isPlainObject = u, du; } -var Uu, Y0; -function Ws() { - if (Y0) return Uu; - Y0 = 1; - var e = function(m) { - return u(m) && !t(m); +var Ju, Zr; +function Zs() { + if (Zr) return Ju; + Zr = 1; + var e = function(b) { + return u(b) && !t(b); }; - function u(b) { - return !!b && typeof b == "object"; + function u(w) { + return !!w && typeof w == "object"; } - function t(b) { - var m = Object.prototype.toString.call(b); - return m === "[object RegExp]" || m === "[object Date]" || i(b); + function t(w) { + var b = Object.prototype.toString.call(w); + return b === "[object RegExp]" || b === "[object Date]" || r(w); } - var c = typeof Symbol == "function" && Symbol.for, s = c ? Symbol.for("react.element") : 60103; - function i(b) { - return b.$$typeof === s; + var s = typeof Symbol == "function" && Symbol.for, a = s ? Symbol.for("react.element") : 60103; + function r(w) { + return w.$$typeof === a; } - function l(b) { - return Array.isArray(b) ? [] : {}; + function o(w) { + return Array.isArray(w) ? [] : {}; } - function a(b, m) { - return m.clone !== !1 && m.isMergeableObject(b) ? w(l(b), b, m) : b; + function i(w, b) { + return b.clone !== !1 && b.isMergeableObject(w) ? y(o(w), w, b) : w; } - function o(b, m, g) { - return b.concat(m).map(function(x) { - return a(x, g); + function c(w, b, x) { + return w.concat(b).map(function(m) { + return i(m, x); }); } - function r(b, m) { - if (!m.customMerge) - return w; - var g = m.customMerge(b); - return typeof g == "function" ? g : w; + function n(w, b) { + if (!b.customMerge) + return y; + var x = b.customMerge(w); + return typeof x == "function" ? x : y; } - function n(b) { - return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(b).filter(function(m) { - return Object.propertyIsEnumerable.call(b, m); + function l(w) { + return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(w).filter(function(b) { + return Object.propertyIsEnumerable.call(w, b); }) : []; } - function f(b) { - return Object.keys(b).concat(n(b)); + function f(w) { + return Object.keys(w).concat(l(w)); } - function d(b, m) { + function A(w, b) { try { - return m in b; + return b in w; } catch { return !1; } } - function A(b, m) { - return d(b, m) && !(Object.hasOwnProperty.call(b, m) && Object.propertyIsEnumerable.call(b, m)); + function d(w, b) { + return A(w, b) && !(Object.hasOwnProperty.call(w, b) && Object.propertyIsEnumerable.call(w, b)); } - function h(b, m, g) { - var x = {}; - return g.isMergeableObject(b) && f(b).forEach(function(p) { - x[p] = a(b[p], g); - }), f(m).forEach(function(p) { - A(b, p) || (d(b, p) && g.isMergeableObject(m[p]) ? x[p] = r(p, g)(b[p], m[p], g) : x[p] = a(m[p], g)); - }), x; + function h(w, b, x) { + var m = {}; + return x.isMergeableObject(w) && f(w).forEach(function(p) { + m[p] = i(w[p], x); + }), f(b).forEach(function(p) { + d(w, p) || (A(w, p) && x.isMergeableObject(b[p]) ? m[p] = n(p, x)(w[p], b[p], x) : m[p] = i(b[p], x)); + }), m; } - function w(b, m, g) { - g = g || {}, g.arrayMerge = g.arrayMerge || o, g.isMergeableObject = g.isMergeableObject || e, g.cloneUnlessOtherwiseSpecified = a; - var x = Array.isArray(m), p = Array.isArray(b), y = x === p; - return y ? x ? g.arrayMerge(b, m, g) : h(b, m, g) : a(m, g); + function y(w, b, x) { + x = x || {}, x.arrayMerge = x.arrayMerge || c, x.isMergeableObject = x.isMergeableObject || e, x.cloneUnlessOtherwiseSpecified = i; + var m = Array.isArray(b), p = Array.isArray(w), g = m === p; + return g ? m ? x.arrayMerge(w, b, x) : h(w, b, x) : i(b, x); } - w.all = function(m, g) { - if (!Array.isArray(m)) + y.all = function(b, x) { + if (!Array.isArray(b)) throw new Error("first argument should be an array"); - return m.reduce(function(x, p) { - return w(x, p, g); + return b.reduce(function(m, p) { + return y(m, p, x); }, {}); }; - var C = w; - return Uu = C, Uu; + var C = y; + return Ju = C, Ju; } -var du = { exports: {} }, Us = du.exports, j0; -function Ks() { - return j0 || (j0 = 1, (function(e) { +var pu = { exports: {} }, Vs = pu.exports, Vr; +function zs() { + return Vr || (Vr = 1, (function(e) { (function(u, t) { e.exports ? e.exports = t() : u.parseSrcset = t(); - })(Us, function() { + })(Vs, function() { return function(u) { - function t(x) { - return x === " " || // space - x === " " || // horizontal tab - x === ` + function t(m) { + return m === " " || // space + m === " " || // horizontal tab + m === ` ` || // new line - x === "\f" || // form feed - x === "\r"; + m === "\f" || // form feed + m === "\r"; } - function c(x) { - var p, y = x.exec(u.substring(C)); - if (y) - return p = y[0], C += p.length, p; + function s(m) { + var p, g = m.exec(u.substring(C)); + if (g) + return p = g[0], C += p.length, p; } - for (var s = u.length, i = /^[ \t\n\r\u000c]+/, l = /^[, \t\n\r\u000c]+/, a = /^[^ \t\n\r\u000c]+/, o = /[,]+$/, r = /^\d+$/, n = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, f, d, A, h, w, C = 0, b = []; ; ) { - if (c(l), C >= s) - return b; - f = c(a), d = [], f.slice(-1) === "," ? (f = f.replace(o, ""), g()) : m(); + for (var a = u.length, r = /^[ \t\n\r\u000c]+/, o = /^[, \t\n\r\u000c]+/, i = /^[^ \t\n\r\u000c]+/, c = /[,]+$/, n = /^\d+$/, l = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, f, A, d, h, y, C = 0, w = []; ; ) { + if (s(o), C >= a) + return w; + f = s(i), A = [], f.slice(-1) === "," ? (f = f.replace(c, ""), x()) : b(); } - function m() { - for (c(i), A = "", h = "in descriptor"; ; ) { - if (w = u.charAt(C), h === "in descriptor") - if (t(w)) - A && (d.push(A), A = "", h = "after descriptor"); - else if (w === ",") { - C += 1, A && d.push(A), g(); + function b() { + for (s(r), d = "", h = "in descriptor"; ; ) { + if (y = u.charAt(C), h === "in descriptor") + if (t(y)) + d && (A.push(d), d = "", h = "after descriptor"); + else if (y === ",") { + C += 1, d && A.push(d), x(); return; - } else if (w === "(") - A = A + w, h = "in parens"; - else if (w === "") { - A && d.push(A), g(); + } else if (y === "(") + d = d + y, h = "in parens"; + else if (y === "") { + d && A.push(d), x(); return; } else - A = A + w; + d = d + y; else if (h === "in parens") - if (w === ")") - A = A + w, h = "in descriptor"; - else if (w === "") { - d.push(A), g(); + if (y === ")") + d = d + y, h = "in descriptor"; + else if (y === "") { + A.push(d), x(); return; } else - A = A + w; - else if (h === "after descriptor" && !t(w)) - if (w === "") { - g(); + d = d + y; + else if (h === "after descriptor" && !t(y)) + if (y === "") { + x(); return; } else h = "in descriptor", C -= 1; C += 1; } } - function g() { - var x = !1, p, y, v, I, D = {}, _, E, k, F, T; - for (I = 0; I < d.length; I++) - _ = d[I], E = _[_.length - 1], k = _.substring(0, _.length - 1), F = parseInt(k, 10), T = parseFloat(k), r.test(k) && E === "w" ? ((p || y) && (x = !0), F === 0 ? x = !0 : p = F) : n.test(k) && E === "x" ? ((p || y || v) && (x = !0), T < 0 ? x = !0 : y = T) : r.test(k) && E === "h" ? ((v || y) && (x = !0), F === 0 ? x = !0 : v = F) : x = !0; - x ? console && console.log && console.log("Invalid srcset descriptor found in '" + u + "' at '" + _ + "'.") : (D.url = f, p && (D.w = p), y && (D.d = y), v && (D.h = v), b.push(D)); + function x() { + var m = !1, p, g, D, B, E = {}, _, v, k, S, F; + for (B = 0; B < A.length; B++) + _ = A[B], v = _[_.length - 1], k = _.substring(0, _.length - 1), S = parseInt(k, 10), F = parseFloat(k), n.test(k) && v === "w" ? ((p || g) && (m = !0), S === 0 ? m = !0 : p = S) : l.test(k) && v === "x" ? ((p || g || D) && (m = !0), F < 0 ? m = !0 : g = F) : n.test(k) && v === "h" ? ((D || g) && (m = !0), S === 0 ? m = !0 : D = S) : m = !0; + m ? console && console.log && console.log("Invalid srcset descriptor found in '" + u + "' at '" + _ + "'.") : (E.url = f, p && (E.w = p), g && (E.d = g), D && (E.h = D), w.push(E)); } }; }); - })(du)), du.exports; + })(pu)), pu.exports; } -var lu = { exports: {} }, J0; -function Ys() { - if (J0) return lu.exports; - J0 = 1; +var Au = { exports: {} }, zr; +function Xs() { + if (zr) return Au.exports; + zr = 1; var e = String, u = function() { return { isColorSupported: !1, reset: e, bold: e, dim: e, italic: e, underline: e, inverse: e, hidden: e, strikethrough: e, black: e, red: e, green: e, yellow: e, blue: e, magenta: e, cyan: e, white: e, gray: e, bgBlack: e, bgRed: e, bgGreen: e, bgYellow: e, bgBlue: e, bgMagenta: e, bgCyan: e, bgWhite: e, blackBright: e, redBright: e, greenBright: e, yellowBright: e, blueBright: e, magentaBright: e, cyanBright: e, whiteBright: e, bgBlackBright: e, bgRedBright: e, bgGreenBright: e, bgYellowBright: e, bgBlueBright: e, bgMagentaBright: e, bgCyanBright: e, bgWhiteBright: e }; }; - return lu.exports = u(), lu.exports.createColors = u, lu.exports; + return Au.exports = u(), Au.exports.createColors = u, Au.exports; } -const js = {}, Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const $s = {}, ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: js -}, Symbol.toStringTag, { value: "Module" })), oe = /* @__PURE__ */ ks(Js); -var Ku, Z0; -function St() { - if (Z0) return Ku; - Z0 = 1; - let e = /* @__PURE__ */ Ys(), u = oe; + default: $s +}, Symbol.toStringTag, { value: "Module" })), ge = /* @__PURE__ */ Ns(ec); +var Zu, Xr; +function Mt() { + if (Xr) return Zu; + Xr = 1; + let e = /* @__PURE__ */ Xs(), u = ge; class t extends Error { - constructor(s, i, l, a, o, r) { - super(s), this.name = "CssSyntaxError", this.reason = s, o && (this.file = o), a && (this.source = a), r && (this.plugin = r), typeof i < "u" && typeof l < "u" && (typeof i == "number" ? (this.line = i, this.column = l) : (this.line = i.line, this.column = i.column, this.endLine = l.line, this.endColumn = l.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, t); + constructor(a, r, o, i, c, n) { + super(a), this.name = "CssSyntaxError", this.reason = a, c && (this.file = c), i && (this.source = i), n && (this.plugin = n), typeof r < "u" && typeof o < "u" && (typeof r == "number" ? (this.line = r, this.column = o) : (this.line = r.line, this.column = r.column, this.endLine = o.line, this.endColumn = o.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, t); } setMessage() { this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", typeof this.line < "u" && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason; } - showSourceCode(s) { + showSourceCode(a) { if (!this.source) return ""; - let i = this.source; - s == null && (s = e.isColorSupported); - let l = (A) => A, a = (A) => A, o = (A) => A; - if (s) { - let { bold: A, gray: h, red: w } = e.createColors(!0); - a = (C) => A(w(C)), l = (C) => h(C), u && (o = (C) => u(C)); - } - let r = i.split(/\r?\n/), n = Math.max(this.line - 3, 0), f = Math.min(this.line + 2, r.length), d = String(f).length; - return r.slice(n, f).map((A, h) => { - let w = n + 1 + h, C = " " + (" " + w).slice(-d) + " | "; - if (w === this.line) { - if (A.length > 160) { - let m = 20, g = Math.max(0, this.column - m), x = Math.max( - this.column + m, - this.endColumn + m - ), p = A.slice(g, x), y = l(C.replace(/\d/g, " ")) + A.slice(0, Math.min(this.column - 1, m - 1)).replace(/[^\t]/g, " "); - return a(">") + l(C) + o(p) + ` - ` + y + a("^"); + let r = this.source; + a == null && (a = e.isColorSupported); + let o = (d) => d, i = (d) => d, c = (d) => d; + if (a) { + let { bold: d, gray: h, red: y } = e.createColors(!0); + i = (C) => d(y(C)), o = (C) => h(C), u && (c = (C) => u(C)); + } + let n = r.split(/\r?\n/), l = Math.max(this.line - 3, 0), f = Math.min(this.line + 2, n.length), A = String(f).length; + return n.slice(l, f).map((d, h) => { + let y = l + 1 + h, C = " " + (" " + y).slice(-A) + " | "; + if (y === this.line) { + if (d.length > 160) { + let b = 20, x = Math.max(0, this.column - b), m = Math.max( + this.column + b, + this.endColumn + b + ), p = d.slice(x, m), g = o(C.replace(/\d/g, " ")) + d.slice(0, Math.min(this.column - 1, b - 1)).replace(/[^\t]/g, " "); + return i(">") + o(C) + c(p) + ` + ` + g + i("^"); } - let b = l(C.replace(/\d/g, " ")) + A.slice(0, this.column - 1).replace(/[^\t]/g, " "); - return a(">") + l(C) + o(A) + ` - ` + b + a("^"); + let w = o(C.replace(/\d/g, " ")) + d.slice(0, this.column - 1).replace(/[^\t]/g, " "); + return i(">") + o(C) + c(d) + ` + ` + w + i("^"); } - return " " + l(C) + o(A); + return " " + o(C) + c(d); }).join(` `); } toString() { - let s = this.showSourceCode(); - return s && (s = ` + let a = this.showSourceCode(); + return a && (a = ` -` + s + ` -`), this.name + ": " + this.message + s; +` + a + ` +`), this.name + ": " + this.message + a; } } - return Ku = t, t.default = t, Ku; + return Zu = t, t.default = t, Zu; } -var Yu, V0; -function ai() { - if (V0) return Yu; - V0 = 1; +var Vu, $r; +function dn() { + if ($r) return Vu; + $r = 1; const e = /(<)(\/?style\b)/gi, u = /(<)(!--)/g; - function t(l) { - return typeof l != "string" || !l.includes("<") ? l : l.replace(e, "\\3c $2").replace(u, "\\3c $2"); + function t(o) { + return typeof o != "string" || !o.includes("<") ? o : o.replace(e, "\\3c $2").replace(u, "\\3c $2"); } - const c = { + const s = { after: ` `, beforeClose: ` @@ -6440,344 +6549,344 @@ function ai() { indent: " ", semicolon: !1 }; - function s(l) { - return l[0].toUpperCase() + l.slice(1); + function a(o) { + return o[0].toUpperCase() + o.slice(1); } - class i { - constructor(a) { - this.builder = a; + class r { + constructor(i) { + this.builder = i; } - atrule(a, o) { - let r = a.raws, n = "@" + a.name, f = a.params ? this.rawValue(a, "params") : ""; - if (typeof r.afterName < "u" ? n += r.afterName : f && (n += " "), a.nodes) - this.block(a, n + f); + atrule(i, c) { + let n = i.raws, l = "@" + i.name, f = i.params ? this.rawValue(i, "params") : ""; + if (typeof n.afterName < "u" ? l += n.afterName : f && (l += " "), i.nodes) + this.block(i, l + f); else { - let d = (r.between || "") + (o ? ";" : ""); - this.builder(t(n + f + d), a); + let A = (n.between || "") + (c ? ";" : ""); + this.builder(t(l + f + A), i); } } - beforeAfter(a, o) { - let r; - a.type === "decl" ? r = this.raw(a, null, "beforeDecl") : a.type === "comment" ? r = this.raw(a, null, "beforeComment") : o === "before" ? r = this.raw(a, null, "beforeRule") : r = this.raw(a, null, "beforeClose"); - let n = a.parent, f = 0; - for (; n && n.type !== "root"; ) - f += 1, n = n.parent; - if (r.includes(` + beforeAfter(i, c) { + let n; + i.type === "decl" ? n = this.raw(i, null, "beforeDecl") : i.type === "comment" ? n = this.raw(i, null, "beforeComment") : c === "before" ? n = this.raw(i, null, "beforeRule") : n = this.raw(i, null, "beforeClose"); + let l = i.parent, f = 0; + for (; l && l.type !== "root"; ) + f += 1, l = l.parent; + if (n.includes(` `)) { - let d = this.raw(a, null, "indent"); - if (d.length) - for (let A = 0; A < f; A++) r += d; + let A = this.raw(i, null, "indent"); + if (A.length) + for (let d = 0; d < f; d++) n += A; } - return r; - } - block(a, o) { - let r = a.raws, n = typeof r.between < "u" ? r.between : this.raw(a, "between", "beforeOpen"); - this.builder(t(o + n) + "{", a, "start"); - let f; - a.nodes && a.nodes.length ? (this.body(a), f = typeof r.after < "u" ? r.after : this.raw(a, "after")) : f = typeof r.after < "u" ? r.after : this.raw(a, "after", "emptyBody"), f && this.builder(t(f)), this.builder("}", a, "end"); + return n; } - body(a) { - let o = a.nodes, r = o.length - 1; - for (; r > 0 && o[r].type === "comment"; ) - r -= 1; - let n = this.raw(a, "semicolon"), f = a.type === "document"; - for (let d = 0; d < o.length; d++) { - let A = o[d], h = A.raws.before; - typeof h > "u" && (h = this.raw(A, "before")), h && this.builder(f ? h : t(h)), this.stringify(A, r !== d || n); + block(i, c) { + let n = this.raw(i, "between", "beforeOpen"); + this.builder(t(c + n) + "{", i, "start"); + let l; + i.nodes && i.nodes.length ? (this.body(i), l = this.raw(i, "after")) : l = this.raw(i, "after", "emptyBody"), l && this.builder(t(l)), this.builder("}", i, "end"); + } + body(i) { + let c = i.nodes, n = c.length - 1; + for (; n > 0 && c[n].type === "comment"; ) + n -= 1; + let l = this.raw(i, "semicolon"), f = i.type === "document"; + for (let A = 0; A < c.length; A++) { + let d = c[A], h = this.raw(d, "before"); + h && this.builder(f ? h : t(h)), this.stringify(d, n !== A || l); + } + } + comment(i) { + let c = this.raw(i, "left", "commentLeft"), n = this.raw(i, "right", "commentRight"); + this.builder(t("/*" + c + i.text + n + "*/"), i); + } + decl(i, c) { + let n = i.raws, l = this.raw(i, "between", "colon"), f = i.prop + l + this.rawValue(i, "value"); + i.important && (f += n.important || " !important"), c && (f += ";"), this.builder(t(f), i); + } + document(i) { + this.body(i); + } + raw(i, c, n) { + let l; + if (n || (n = c), c && (l = i.raws[c], typeof l < "u")) + return l; + let f = i.parent; + if (n === "before" && (!f || f.type === "root" && f.first === i || f && f.type === "document")) + return ""; + if (!f) return s[n]; + let A = i.root(), d = A.rawCache || (A.rawCache = {}); + if (typeof d[n] < "u") + return d[n]; + if (n === "before" || n === "after") + return this.beforeAfter(i, n); + { + let h = "raw" + a(n); + this[h] ? l = this[h](A, i) : A.walk((y) => { + if (l = y.raws[c], typeof l < "u") return !1; + }); } + return typeof l > "u" && (l = s[n]), d[n] = l, l; } - comment(a) { - let o = a.raws, r = typeof o.left < "u" ? o.left : this.raw(a, "left", "commentLeft"), n = typeof o.right < "u" ? o.right : this.raw(a, "right", "commentRight"); - this.builder(t("/*" + r + a.text + n + "*/"), a); - } - decl(a, o) { - let r = a.raws, n = typeof r.between < "u" ? r.between : this.raw(a, "between", "colon"), f = r.value, d = f && f.value === a.value ? f.raw : a.value, A = a.prop + n + d; - a.important && (A += r.important || " !important"), o && (A += ";"), this.builder(t(A), a); + rawBeforeClose(i) { + let c; + return i.walk((n) => { + if (n.nodes && n.nodes.length > 0 && typeof n.raws.after < "u") + return c = n.raws.after, c.includes(` +`) && (c = c.replace(/[^\n]+$/, "")), !1; + }), c && (c = c.replace(/\S/g, "")), c; } - document(a) { - this.body(a); + rawBeforeComment(i, c) { + let n; + return i.walkComments((l) => { + if (typeof l.raws.before < "u") + return n = l.raws.before, n.includes(` +`) && (n = n.replace(/[^\n]+$/, "")), !1; + }), typeof n > "u" ? n = this.raw(c, null, "beforeDecl") : n && (n = n.replace(/\S/g, "")), n; } - raw(a, o, r) { + rawBeforeDecl(i, c) { let n; - if (r || (r = o), o && (n = a.raws[o], typeof n < "u")) - return n; - let f = a.parent; - if (r === "before" && (!f || f.type === "root" && f.first === a || f && f.type === "document")) - return ""; - if (!f) return c[r]; - let d = a.root(), A = d.rawCache || (d.rawCache = {}); - if (typeof A[r] < "u") - return A[r]; - if (r === "before" || r === "after") - return this.beforeAfter(a, r); - { - let h = "raw" + s(r); - this[h] ? n = this[h](d, a) : d.walk((w) => { - if (n = w.raws[o], typeof n < "u") return !1; - }); - } - return typeof n > "u" && (n = c[r]), A[r] = n, n; - } - rawBeforeClose(a) { - let o; - return a.walk((r) => { - if (r.nodes && r.nodes.length > 0 && typeof r.raws.after < "u") - return o = r.raws.after, o.includes(` -`) && (o = o.replace(/[^\n]+$/, "")), !1; - }), o && (o = o.replace(/\S/g, "")), o; - } - rawBeforeComment(a, o) { - let r; - return a.walkComments((n) => { - if (typeof n.raws.before < "u") - return r = n.raws.before, r.includes(` -`) && (r = r.replace(/[^\n]+$/, "")), !1; - }), typeof r > "u" ? r = this.raw(o, null, "beforeDecl") : r && (r = r.replace(/\S/g, "")), r; - } - rawBeforeDecl(a, o) { - let r; - return a.walkDecls((n) => { - if (typeof n.raws.before < "u") - return r = n.raws.before, r.includes(` -`) && (r = r.replace(/[^\n]+$/, "")), !1; - }), typeof r > "u" ? r = this.raw(o, null, "beforeRule") : r && (r = r.replace(/\S/g, "")), r; - } - rawBeforeOpen(a) { - let o; - return a.walk((r) => { - if (r.type !== "decl" && (o = r.raws.between, typeof o < "u")) + return i.walkDecls((l) => { + if (typeof l.raws.before < "u") + return n = l.raws.before, n.includes(` +`) && (n = n.replace(/[^\n]+$/, "")), !1; + }), typeof n > "u" ? n = this.raw(c, null, "beforeRule") : n && (n = n.replace(/\S/g, "")), n; + } + rawBeforeOpen(i) { + let c; + return i.walk((n) => { + if (n.type !== "decl" && (c = n.raws.between, typeof c < "u")) return !1; - }), o; - } - rawBeforeRule(a) { - let o; - return a.walk((r) => { - if (r.nodes && (r.parent !== a || a.first !== r) && typeof r.raws.before < "u") - return o = r.raws.before, o.includes(` -`) && (o = o.replace(/[^\n]+$/, "")), !1; - }), o && (o = o.replace(/\S/g, "")), o; - } - rawColon(a) { - let o; - return a.walkDecls((r) => { - if (typeof r.raws.between < "u") - return o = r.raws.between.replace(/[^\s:]/g, ""), !1; - }), o; - } - rawEmptyBody(a) { - let o; - return a.walk((r) => { - if (r.nodes && r.nodes.length === 0 && (o = r.raws.after, typeof o < "u")) + }), c; + } + rawBeforeRule(i) { + let c; + return i.walk((n) => { + if (n.nodes && (n.parent !== i || i.first !== n) && typeof n.raws.before < "u") + return c = n.raws.before, c.includes(` +`) && (c = c.replace(/[^\n]+$/, "")), !1; + }), c && (c = c.replace(/\S/g, "")), c; + } + rawColon(i) { + let c; + return i.walkDecls((n) => { + if (typeof n.raws.between < "u") + return c = n.raws.between.replace(/[^\s:]/g, ""), !1; + }), c; + } + rawEmptyBody(i) { + let c; + return i.walk((n) => { + if (n.nodes && n.nodes.length === 0 && (c = n.raws.after, typeof c < "u")) return !1; - }), o; - } - rawIndent(a) { - if (a.raws.indent) return a.raws.indent; - let o; - return a.walk((r) => { - let n = r.parent; - if (n && n !== a && n.parent && n.parent === a && typeof r.raws.before < "u") { - let f = r.raws.before.split(` + }), c; + } + rawIndent(i) { + if (i.raws.indent) return i.raws.indent; + let c; + return i.walk((n) => { + let l = n.parent; + if (l && l !== i && l.parent && l.parent === i && typeof n.raws.before < "u") { + let f = n.raws.before.split(` `); - return o = f[f.length - 1], o = o.replace(/\S/g, ""), !1; + return c = f[f.length - 1], c = c.replace(/\S/g, ""), !1; } - }), o; + }), c; } - rawSemicolon(a) { - let o; - return a.walk((r) => { - if (r.nodes && r.nodes.length && r.last.type === "decl" && (o = r.raws.semicolon, typeof o < "u")) + rawSemicolon(i) { + let c; + return i.walk((n) => { + if (n.nodes && n.nodes.length && n.last.type === "decl" && (c = n.raws.semicolon, typeof c < "u")) return !1; - }), o; + }), c; } - rawValue(a, o) { - let r = a[o], n = a.raws[o]; - return n && n.value === r ? n.raw : r; + rawValue(i, c) { + let n = i[c], l = i.raws[c]; + return l && l.value === n ? l.raw : n; } - root(a) { - if (this.body(a), a.raws.after) { - let o = a.raws.after, r = a.parent && a.parent.type === "document"; - this.builder(r ? o : t(o)); + root(i) { + if (this.body(i), i.raws.after) { + let c = i.raws.after, n = i.parent && i.parent.type === "document"; + this.builder(n ? c : t(c)); } } - rule(a) { - this.block(a, this.rawValue(a, "selector")), a.raws.ownSemicolon && this.builder(t(a.raws.ownSemicolon), a, "end"); + rule(i) { + this.block(i, this.rawValue(i, "selector")), i.raws.ownSemicolon && this.builder(t(i.raws.ownSemicolon), i, "end"); } - stringify(a, o) { - if (!this[a.type]) + stringify(i, c) { + if (!this[i.type]) throw new Error( - "Unknown AST node type " + a.type + ". Maybe you need to change PostCSS stringifier." + "Unknown AST node type " + i.type + ". Maybe you need to change PostCSS stringifier." ); - this[a.type](a, o); - } - } - return Yu = i, i.default = i, Yu; -} -var ju, z0; -function yu() { - if (z0) return ju; - z0 = 1; - let e = ai(); - function u(t, c) { - new e(c).stringify(t); - } - return ju = u, u.default = u, ju; -} -var fu = {}, X0; -function Rt() { - return X0 || (X0 = 1, fu.isClean = Symbol("isClean"), fu.my = Symbol("my")), fu; -} -var Ju, $0; -function wu() { - if ($0) return Ju; - $0 = 1; - let e = St(), u = ai(), t = yu(), { isClean: c, my: s } = Rt(); - function i(o, r) { - let n = new o.constructor(); - for (let f in o) { - if (!Object.prototype.hasOwnProperty.call(o, f) || f === "proxyCache") continue; - let d = o[f], A = typeof d; - f === "parent" && A === "object" ? r && (n[f] = r) : f === "source" ? n[f] = d : Array.isArray(d) ? n[f] = d.map((h) => i(h, n)) : (A === "object" && d !== null && (d = i(d)), n[f] = d); - } - return n; - } - function l(o, r) { - if (r && typeof r.offset < "u") - return r.offset; - let n = 1, f = 1, d = 0; - for (let A = 0; A < o.length; A++) { - if (f === r.line && n === r.column) { - d = A; + this[i.type](i, c); + } + } + return Vu = r, r.default = r, Vu; +} +var zu, e0; +function Eu() { + if (e0) return zu; + e0 = 1; + let e = dn(); + function u(t, s) { + new e(s).stringify(t); + } + return zu = u, u.default = u, zu; +} +var hu = {}, u0; +function Ot() { + return u0 || (u0 = 1, hu.isClean = Symbol("isClean"), hu.my = Symbol("my")), hu; +} +var Xu, t0; +function _u() { + if (t0) return Xu; + t0 = 1; + let e = Mt(), u = dn(), t = Eu(), { isClean: s, my: a } = Ot(); + function r(c, n) { + let l = new c.constructor(); + for (let f in c) { + if (!Object.prototype.hasOwnProperty.call(c, f) || f === "proxyCache") continue; + let A = c[f], d = typeof A; + f === "parent" && d === "object" ? n && (l[f] = n) : f === "source" ? l[f] = A : Array.isArray(A) ? l[f] = A.map((h) => r(h, l)) : (d === "object" && A !== null && (A = r(A)), l[f] = A); + } + return l; + } + function o(c, n) { + if (n && typeof n.offset < "u") + return n.offset; + let l = 1, f = 1, A = 0; + for (let d = 0; d < c.length; d++) { + if (f === n.line && l === n.column) { + A = d; break; } - o[A] === ` -` ? (n = 1, f += 1) : n += 1; + c[d] === ` +` ? (l = 1, f += 1) : l += 1; } - return d; + return A; } - class a { + class i { get proxyOf() { return this; } - constructor(r = {}) { - this.raws = {}, this[c] = !1, this[s] = !0; - for (let n in r) - if (n === "nodes") { + constructor(n = {}) { + this.raws = {}, this[s] = !1, this[a] = !0; + for (let l in n) + if (l === "nodes") { this.nodes = []; - for (let f of r[n]) + for (let f of n[l]) typeof f.clone == "function" ? this.append(f.clone()) : this.append(f); } else - this[n] = r[n]; + this[l] = n[l]; } - addToError(r) { - if (r.postcssNode = this, r.stack && this.source && /\n\s{4}at /.test(r.stack)) { - let n = this.source; - r.stack = r.stack.replace( + addToError(n) { + if (n.postcssNode = this, n.stack && this.source && /\n\s{4}at /.test(n.stack)) { + let l = this.source; + n.stack = n.stack.replace( /\n\s{4}at /, - `$&${n.input.from}:${n.start.line}:${n.start.column}$&` + `$&${l.input.from}:${l.start.line}:${l.start.column}$&` ); } - return r; + return n; } - after(r) { - return this.parent.insertAfter(this, r), this; + after(n) { + return this.parent.insertAfter(this, n), this; } - assign(r = {}) { - for (let n in r) - this[n] = r[n]; + assign(n = {}) { + for (let l in n) + this[l] = n[l]; return this; } - before(r) { - return this.parent.insertBefore(this, r), this; + before(n) { + return this.parent.insertBefore(this, n), this; } - cleanRaws(r) { - delete this.raws.before, delete this.raws.after, r || delete this.raws.between; + cleanRaws(n) { + delete this.raws.before, delete this.raws.after, n || delete this.raws.between; } - clone(r = {}) { - let n = i(this); - for (let f in r) - n[f] = r[f]; - return n; + clone(n = {}) { + let l = r(this); + for (let f in n) + l[f] = n[f]; + return l; } - cloneAfter(r = {}) { - let n = this.clone(r); - return this.parent.insertAfter(this, n), n; + cloneAfter(n = {}) { + let l = this.clone(n); + return this.parent.insertAfter(this, l), l; } - cloneBefore(r = {}) { - let n = this.clone(r); - return this.parent.insertBefore(this, n), n; + cloneBefore(n = {}) { + let l = this.clone(n); + return this.parent.insertBefore(this, l), l; } - error(r, n = {}) { + error(n, l = {}) { if (this.source) { - let { end: f, start: d } = this.rangeBy(n); + let { end: f, start: A } = this.rangeBy(l); return this.source.input.error( - r, - { column: d.column, line: d.line }, + n, + { column: A.column, line: A.line }, { column: f.column, line: f.line }, - n + l ); } - return new e(r); + return new e(n); } getProxyProcessor() { return { - get(r, n) { - return n === "proxyOf" ? r : n === "root" ? () => r.root().toProxy() : r[n]; + get(n, l) { + return l === "proxyOf" ? n : l === "root" ? () => n.root().toProxy() : n[l]; }, - set(r, n, f) { - return r[n] === f || (r[n] = f, (n === "prop" || n === "value" || n === "name" || n === "params" || n === "important" || /* c8 ignore next */ - n === "text") && r.markDirty()), !0; + set(n, l, f) { + return n[l] === f || (n[l] = f, (l === "prop" || l === "value" || l === "name" || l === "params" || l === "important" || /* c8 ignore next */ + l === "text") && n.markDirty()), !0; } }; } /* c8 ignore next 3 */ markClean() { - this[c] = !0; + this[s] = !0; } markDirty() { - if (this[c]) { - this[c] = !1; - let r = this; - for (; r = r.parent; ) - r[c] = !1; + if (this[s]) { + this[s] = !1; + let n = this; + for (; n = n.parent; ) + n[s] = !1; } } next() { if (!this.parent) return; - let r = this.parent.index(this); - return this.parent.nodes[r + 1]; - } - positionBy(r = {}) { - let n = this.source.start; - if (r.index) - n = this.positionInside(r.index); - else if (r.word) { - let f = "document" in this.source.input ? this.source.input.document : this.source.input.css, A = f.slice( - l(f, this.source.start), - l(f, this.source.end) - ).indexOf(r.word); - A !== -1 && (n = this.positionInside(A)); + let n = this.parent.index(this); + return this.parent.nodes[n + 1]; + } + positionBy(n = {}) { + let l = this.source.start; + if (n.index) + l = this.positionInside(n.index); + else if (n.word) { + let f = "document" in this.source.input ? this.source.input.document : this.source.input.css, d = f.slice( + o(f, this.source.start), + o(f, this.source.end) + ).indexOf(n.word); + d !== -1 && (l = this.positionInside(d)); } - return n; + return l; } - positionInside(r) { - let n = this.source.start.column, f = this.source.start.line, d = "document" in this.source.input ? this.source.input.document : this.source.input.css, A = l(d, this.source.start), h = A + r; - for (let w = A; w < h; w++) - d[w] === ` -` ? (n = 1, f += 1) : n += 1; - return { column: n, line: f, offset: h }; + positionInside(n) { + let l = this.source.start.column, f = this.source.start.line, A = "document" in this.source.input ? this.source.input.document : this.source.input.css, d = o(A, this.source.start), h = d + n; + for (let y = d; y < h; y++) + A[y] === ` +` ? (l = 1, f += 1) : l += 1; + return { column: l, line: f, offset: h }; } prev() { if (!this.parent) return; - let r = this.parent.index(this); - return this.parent.nodes[r - 1]; + let n = this.parent.index(this); + return this.parent.nodes[n - 1]; } - rangeBy(r = {}) { - let n = "document" in this.source.input ? this.source.input.document : this.source.input.css, f = { + rangeBy(n = {}) { + let l = "document" in this.source.input ? this.source.input.document : this.source.input.css, f = { column: this.source.start.column, line: this.source.start.line, - offset: l(n, this.source.start) - }, d = this.source.end ? { + offset: o(l, this.source.start) + }, A = this.source.end ? { column: this.source.end.column + 1, line: this.source.end.line, offset: typeof this.source.end.offset == "number" ? ( @@ -6787,137 +6896,137 @@ function wu() { // Since line/column in this.source.end is inclusive, // the `sourceOffset(... , this.source.end)` returns an inclusive offset. // So, we add 1 to convert it to exclusive. - l(n, this.source.end) + 1 + o(l, this.source.end) + 1 ) } : { column: f.column + 1, line: f.line, offset: f.offset + 1 }; - if (r.word) { - let h = n.slice( - l(n, this.source.start), - l(n, this.source.end) - ).indexOf(r.word); - h !== -1 && (f = this.positionInside(h), d = this.positionInside(h + r.word.length)); + if (n.word) { + let h = l.slice( + o(l, this.source.start), + o(l, this.source.end) + ).indexOf(n.word); + h !== -1 && (f = this.positionInside(h), A = this.positionInside(h + n.word.length)); } else - r.start ? f = { - column: r.start.column, - line: r.start.line, - offset: l(n, r.start) - } : r.index && (f = this.positionInside(r.index)), r.end ? d = { - column: r.end.column, - line: r.end.line, - offset: l(n, r.end) - } : typeof r.endIndex == "number" ? d = this.positionInside(r.endIndex) : r.index && (d = this.positionInside(r.index + 1)); - return (d.line < f.line || d.line === f.line && d.column <= f.column) && (d = { + n.start ? f = { + column: n.start.column, + line: n.start.line, + offset: o(l, n.start) + } : n.index && (f = this.positionInside(n.index)), n.end ? A = { + column: n.end.column, + line: n.end.line, + offset: o(l, n.end) + } : typeof n.endIndex == "number" ? A = this.positionInside(n.endIndex) : n.index && (A = this.positionInside(n.index + 1)); + return (A.line < f.line || A.line === f.line && A.column <= f.column) && (A = { column: f.column + 1, line: f.line, offset: f.offset + 1 - }), { end: d, start: f }; + }), { end: A, start: f }; } - raw(r, n) { - return new u().raw(this, r, n); + raw(n, l) { + return new u().raw(this, n, l); } remove() { return this.parent && this.parent.removeChild(this), this.parent = void 0, this; } - replaceWith(...r) { + replaceWith(...n) { if (this.parent) { - let n = this, f = !1; - for (let d of r) - d === this ? f = !0 : f ? (this.parent.insertAfter(n, d), n = d) : this.parent.insertBefore(n, d); + let l = this, f = !1; + for (let A of n) + A === this ? f = !0 : f ? (this.parent.insertAfter(l, A), l = A) : this.parent.insertBefore(l, A); f || this.remove(); } return this; } root() { - let r = this; - for (; r.parent && r.parent.type !== "document"; ) - r = r.parent; - return r; + let n = this; + for (; n.parent && n.parent.type !== "document"; ) + n = n.parent; + return n; } - toJSON(r, n) { - let f = {}, d = n == null; - n = n || /* @__PURE__ */ new Map(); - let A = 0; + toJSON(n, l) { + let f = {}, A = l == null; + l = l || /* @__PURE__ */ new Map(); + let d = 0; for (let h in this) { if (!Object.prototype.hasOwnProperty.call(this, h) || h === "parent" || h === "proxyCache") continue; - let w = this[h]; - if (Array.isArray(w)) - f[h] = w.map((C) => typeof C == "object" && C.toJSON ? C.toJSON(null, n) : C); - else if (typeof w == "object" && w.toJSON) - f[h] = w.toJSON(null, n); + let y = this[h]; + if (Array.isArray(y)) + f[h] = y.map((C) => typeof C == "object" && C.toJSON ? C.toJSON(null, l) : C); + else if (typeof y == "object" && y.toJSON) + f[h] = y.toJSON(null, l); else if (h === "source") { - if (w == null) continue; - let C = n.get(w.input); - C == null && (C = A, n.set(w.input, A), A++), f[h] = { - end: w.end, + if (y == null) continue; + let C = l.get(y.input); + C == null && (C = d, l.set(y.input, d), d++), f[h] = { + end: y.end, inputId: C, - start: w.start + start: y.start }; } else - f[h] = w; + f[h] = y; } - return d && (f.inputs = [...n.keys()].map((h) => h.toJSON())), f; + return A && (f.inputs = [...l.keys()].map((h) => h.toJSON())), f; } toProxy() { return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache; } - toString(r = t) { - r.stringify && (r = r.stringify); - let n = ""; - return r(this, (f) => { - n += f; - }), n; + toString(n = t) { + n.stringify && (n = n.stringify); + let l = ""; + return n(this, (f) => { + l += f; + }), l; } - warn(r, n, f = {}) { - let d = { node: this }; - for (let A in f) d[A] = f[A]; - return r.warn(n, d); + warn(n, l, f = {}) { + let A = { node: this }; + for (let d in f) A[d] = f[d]; + return n.warn(l, A); } } - return Ju = a, a.default = a, Ju; + return Xu = i, i.default = i, Xu; } -var Zu, er; -function Cu() { - if (er) return Zu; - er = 1; - let e = wu(); +var $u, r0; +function Iu() { + if (r0) return $u; + r0 = 1; + let e = _u(); class u extends e { - constructor(c) { - super(c), this.type = "comment"; + constructor(s) { + super(s), this.type = "comment"; } } - return Zu = u, u.default = u, Zu; + return $u = u, u.default = u, $u; } -var Vu, ur; -function vu() { - if (ur) return Vu; - ur = 1; - let e = wu(); +var et, n0; +function ku() { + if (n0) return et; + n0 = 1; + let e = _u(); class u extends e { get variable() { return this.prop.startsWith("--") || this.prop[0] === "$"; } - constructor(c) { - c && typeof c.value < "u" && typeof c.value != "string" && (c = { ...c, value: String(c.value) }), super(c), this.type = "decl"; + constructor(s) { + s && typeof s.value < "u" && typeof s.value != "string" && (s = { ...s, value: String(s.value) }), super(s), this.type = "decl"; } } - return Vu = u, u.default = u, Vu; + return et = u, u.default = u, et; } -var zu, tr; -function Te() { - if (tr) return zu; - tr = 1; - let e = Cu(), u = vu(), t = wu(), { isClean: c, my: s } = Rt(), i, l, a, o; - function r(d) { - return d.map((A) => (A.nodes && (A.nodes = r(A.nodes)), delete A.source, A)); +var ut, i0; +function Pe() { + if (i0) return ut; + i0 = 1; + let e = Iu(), u = ku(), t = _u(), { isClean: s, my: a } = Ot(), r, o, i, c; + function n(A) { + return A.map((d) => (d.nodes && (d.nodes = n(d.nodes)), delete d.source, d)); } - function n(d) { - if (d[c] = !1, d.proxyOf.nodes) - for (let A of d.proxyOf.nodes) - n(A); + function l(A) { + if (A[s] = !1, A.proxyOf.nodes) + for (let d of A.proxyOf.nodes) + l(d); } class f extends t { get first() { @@ -6928,322 +7037,322 @@ function Te() { if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1]; } - append(...A) { - for (let h of A) { - let w = this.normalize(h, this.last); - for (let C of w) this.proxyOf.nodes.push(C); + append(...d) { + for (let h of d) { + let y = this.normalize(h, this.last); + for (let C of y) this.proxyOf.nodes.push(C); } return this.markDirty(), this; } - cleanRaws(A) { - if (super.cleanRaws(A), this.nodes) - for (let h of this.nodes) h.cleanRaws(A); + cleanRaws(d) { + if (super.cleanRaws(d), this.nodes) + for (let h of this.nodes) h.cleanRaws(d); } - each(A) { + each(d) { if (!this.proxyOf.nodes) return; - let h = this.getIterator(), w, C; - for (; this.indexes[h] < this.proxyOf.nodes.length && (w = this.indexes[h], C = A(this.proxyOf.nodes[w], w), C !== !1); ) + let h = this.getIterator(), y, C; + for (; this.indexes[h] < this.proxyOf.nodes.length && (y = this.indexes[h], C = d(this.proxyOf.nodes[y], y), C !== !1); ) this.indexes[h] += 1; return delete this.indexes[h], C; } - every(A) { - return this.nodes.every(A); + every(d) { + return this.nodes.every(d); } getIterator() { this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1; - let A = this.lastEach; - return this.indexes[A] = 0, A; + let d = this.lastEach; + return this.indexes[d] = 0, d; } getProxyProcessor() { return { - get(A, h) { - return h === "proxyOf" ? A : A[h] ? h === "each" || typeof h == "string" && h.startsWith("walk") ? (...w) => A[h]( - ...w.map((C) => typeof C == "function" ? (b, m) => C(b.toProxy(), m) : C) - ) : h === "every" || h === "some" ? (w) => A[h]( - (C, ...b) => w(C.toProxy(), ...b) - ) : h === "root" ? () => A.root().toProxy() : h === "nodes" ? A.nodes.map((w) => w.toProxy()) : h === "first" || h === "last" ? A[h].toProxy() : A[h] : A[h]; + get(d, h) { + return h === "proxyOf" ? d : d[h] ? h === "each" || typeof h == "string" && h.startsWith("walk") ? (...y) => d[h]( + ...y.map((C) => typeof C == "function" ? (w, b) => C(w.toProxy(), b) : C) + ) : h === "every" || h === "some" ? (y) => d[h]( + (C, ...w) => y(C.toProxy(), ...w) + ) : h === "root" ? () => d.root().toProxy() : h === "nodes" ? d.nodes.map((y) => y.toProxy()) : h === "first" || h === "last" ? d[h].toProxy() : d[h] : d[h]; }, - set(A, h, w) { - return A[h] === w || (A[h] = w, (h === "name" || h === "params" || h === "selector") && A.markDirty()), !0; + set(d, h, y) { + return d[h] === y || (d[h] = y, (h === "name" || h === "params" || h === "selector") && d.markDirty()), !0; } }; } - index(A) { - return typeof A == "number" ? A : (A.proxyOf && (A = A.proxyOf), this.proxyOf.nodes.indexOf(A)); + index(d) { + return typeof d == "number" ? d : (d.proxyOf && (d = d.proxyOf), this.proxyOf.nodes.indexOf(d)); } - insertAfter(A, h) { - let w = this.index(A), C = this.normalize(h, this.proxyOf.nodes[w]).reverse(); - w = this.index(A); - for (let m of C) this.proxyOf.nodes.splice(w + 1, 0, m); - let b; - for (let m in this.indexes) - b = this.indexes[m], w < b && (this.indexes[m] = b + C.length); + insertAfter(d, h) { + let y = this.index(d), C = this.normalize(h, this.proxyOf.nodes[y]).reverse(); + y = this.index(d); + for (let b of C) this.proxyOf.nodes.splice(y + 1, 0, b); + let w; + for (let b in this.indexes) + w = this.indexes[b], y < w && (this.indexes[b] = w + C.length); return this.markDirty(), this; } - insertBefore(A, h) { - let w = this.index(A), C = w === 0 ? "prepend" : !1, b = this.normalize( + insertBefore(d, h) { + let y = this.index(d), C = y === 0 ? "prepend" : !1, w = this.normalize( h, - this.proxyOf.nodes[w], + this.proxyOf.nodes[y], C ).reverse(); - w = this.index(A); - for (let g of b) this.proxyOf.nodes.splice(w, 0, g); - let m; - for (let g in this.indexes) - m = this.indexes[g], w <= m && (this.indexes[g] = m + b.length); + y = this.index(d); + for (let x of w) this.proxyOf.nodes.splice(y, 0, x); + let b; + for (let x in this.indexes) + b = this.indexes[x], y <= b && (this.indexes[x] = b + w.length); return this.markDirty(), this; } - normalize(A, h) { - if (typeof A == "string") - A = r(l(A).nodes); - else if (typeof A > "u") - A = []; - else if (Array.isArray(A)) { - A = A.slice(0); - for (let C of A) + normalize(d, h) { + if (typeof d == "string") + d = n(o(d).nodes); + else if (typeof d > "u") + d = []; + else if (Array.isArray(d)) { + d = d.slice(0); + for (let C of d) C.parent && C.parent.removeChild(C, "ignore"); - } else if (A.type === "root" && this.type !== "document") { - A = A.nodes.slice(0); - for (let C of A) + } else if (d.type === "root" && this.type !== "document") { + d = d.nodes.slice(0); + for (let C of d) C.parent && C.parent.removeChild(C, "ignore"); - } else if (A.type) - A = [A]; - else if (A.prop) { - if (typeof A.value > "u") + } else if (d.type) + d = [d]; + else if (d.prop) { + if (typeof d.value > "u") throw new Error("Value field is missed in node creation"); - typeof A.value != "string" && (A.value = String(A.value)), A = [new u(A)]; - } else if (A.selector || A.selectors) - A = [new o(A)]; - else if (A.name) - A = [new i(A)]; - else if (A.text) - A = [new e(A)]; + typeof d.value != "string" && (d.value = String(d.value)), d = [new u(d)]; + } else if (d.selector || d.selectors) + d = [new c(d)]; + else if (d.name) + d = [new r(d)]; + else if (d.text) + d = [new e(d)]; else throw new Error("Unknown node type in node creation"); - return A.map((C) => (C[s] || f.rebuild(C), C = C.proxyOf, C.parent && C.parent.removeChild(C), C[c] && n(C), C.raws || (C.raws = {}), typeof C.raws.before > "u" && h && typeof h.raws.before < "u" && (C.raws.before = h.raws.before.replace(/\S/g, "")), C.parent = this.proxyOf, C)); + return d.map((C) => (C[a] || f.rebuild(C), C = C.proxyOf, C.parent && C.parent.removeChild(C), C[s] && l(C), C.raws || (C.raws = {}), typeof C.raws.before > "u" && h && typeof h.raws.before < "u" && (C.raws.before = h.raws.before.replace(/\S/g, "")), C.parent = this.proxyOf, C)); } - prepend(...A) { - A = A.reverse(); - for (let h of A) { - let w = this.normalize(h, this.first, "prepend").reverse(); - for (let C of w) this.proxyOf.nodes.unshift(C); + prepend(...d) { + d = d.reverse(); + for (let h of d) { + let y = this.normalize(h, this.first, "prepend").reverse(); + for (let C of y) this.proxyOf.nodes.unshift(C); for (let C in this.indexes) - this.indexes[C] = this.indexes[C] + w.length; + this.indexes[C] = this.indexes[C] + y.length; } return this.markDirty(), this; } - push(A) { - return A.parent = this, this.proxyOf.nodes.push(A), this; + push(d) { + return d.parent = this, this.proxyOf.nodes.push(d), this; } removeAll() { - for (let A of this.proxyOf.nodes) A.parent = void 0; + for (let d of this.proxyOf.nodes) d.parent = void 0; return this.proxyOf.nodes = [], this.markDirty(), this; } - removeChild(A) { - A = this.index(A), this.proxyOf.nodes[A].parent = void 0, this.proxyOf.nodes.splice(A, 1); + removeChild(d) { + d = this.index(d), this.proxyOf.nodes[d].parent = void 0, this.proxyOf.nodes.splice(d, 1); let h; - for (let w in this.indexes) - h = this.indexes[w], h >= A && (this.indexes[w] = h - 1); + for (let y in this.indexes) + h = this.indexes[y], h >= d && (this.indexes[y] = h - 1); return this.markDirty(), this; } - replaceValues(A, h, w) { - return w || (w = h, h = {}), this.walkDecls((C) => { - h.props && !h.props.includes(C.prop) || h.fast && !C.value.includes(h.fast) || (C.value = C.value.replace(A, w)); + replaceValues(d, h, y) { + return y || (y = h, h = {}), this.walkDecls((C) => { + h.props && !h.props.includes(C.prop) || h.fast && !C.value.includes(h.fast) || (C.value = C.value.replace(d, y)); }), this.markDirty(), this; } - some(A) { - return this.nodes.some(A); + some(d) { + return this.nodes.some(d); } - walk(A) { - return this.each((h, w) => { + walk(d) { + return this.each((h, y) => { let C; try { - C = A(h, w); - } catch (b) { - throw h.addToError(b); + C = d(h, y); + } catch (w) { + throw h.addToError(w); } - return C !== !1 && h.walk && (C = h.walk(A)), C; + return C !== !1 && h.walk && (C = h.walk(d)), C; }); } - walkAtRules(A, h) { - return h ? A instanceof RegExp ? this.walk((w, C) => { - if (w.type === "atrule" && A.test(w.name)) - return h(w, C); - }) : this.walk((w, C) => { - if (w.type === "atrule" && w.name === A) - return h(w, C); - }) : (h = A, this.walk((w, C) => { - if (w.type === "atrule") - return h(w, C); + walkAtRules(d, h) { + return h ? d instanceof RegExp ? this.walk((y, C) => { + if (y.type === "atrule" && d.test(y.name)) + return h(y, C); + }) : this.walk((y, C) => { + if (y.type === "atrule" && y.name === d) + return h(y, C); + }) : (h = d, this.walk((y, C) => { + if (y.type === "atrule") + return h(y, C); })); } - walkComments(A) { - return this.walk((h, w) => { + walkComments(d) { + return this.walk((h, y) => { if (h.type === "comment") - return A(h, w); + return d(h, y); }); } - walkDecls(A, h) { - return h ? A instanceof RegExp ? this.walk((w, C) => { - if (w.type === "decl" && A.test(w.prop)) - return h(w, C); - }) : this.walk((w, C) => { - if (w.type === "decl" && w.prop === A) - return h(w, C); - }) : (h = A, this.walk((w, C) => { - if (w.type === "decl") - return h(w, C); + walkDecls(d, h) { + return h ? d instanceof RegExp ? this.walk((y, C) => { + if (y.type === "decl" && d.test(y.prop)) + return h(y, C); + }) : this.walk((y, C) => { + if (y.type === "decl" && y.prop === d) + return h(y, C); + }) : (h = d, this.walk((y, C) => { + if (y.type === "decl") + return h(y, C); })); } - walkRules(A, h) { - return h ? A instanceof RegExp ? this.walk((w, C) => { - if (w.type === "rule" && A.test(w.selector)) - return h(w, C); - }) : this.walk((w, C) => { - if (w.type === "rule" && w.selector === A) - return h(w, C); - }) : (h = A, this.walk((w, C) => { - if (w.type === "rule") - return h(w, C); + walkRules(d, h) { + return h ? d instanceof RegExp ? this.walk((y, C) => { + if (y.type === "rule" && d.test(y.selector)) + return h(y, C); + }) : this.walk((y, C) => { + if (y.type === "rule" && y.selector === d) + return h(y, C); + }) : (h = d, this.walk((y, C) => { + if (y.type === "rule") + return h(y, C); })); } } - return f.registerParse = (d) => { - l = d; - }, f.registerRule = (d) => { - o = d; - }, f.registerAtRule = (d) => { - i = d; - }, f.registerRoot = (d) => { - a = d; - }, zu = f, f.default = f, f.rebuild = (d) => { - d.type === "atrule" ? Object.setPrototypeOf(d, i.prototype) : d.type === "rule" ? Object.setPrototypeOf(d, o.prototype) : d.type === "decl" ? Object.setPrototypeOf(d, u.prototype) : d.type === "comment" ? Object.setPrototypeOf(d, e.prototype) : d.type === "root" && Object.setPrototypeOf(d, a.prototype), d[s] = !0, d.nodes && d.nodes.forEach((A) => { - f.rebuild(A); + return f.registerParse = (A) => { + o = A; + }, f.registerRule = (A) => { + c = A; + }, f.registerAtRule = (A) => { + r = A; + }, f.registerRoot = (A) => { + i = A; + }, ut = f, f.default = f, f.rebuild = (A) => { + A.type === "atrule" ? Object.setPrototypeOf(A, r.prototype) : A.type === "rule" ? Object.setPrototypeOf(A, c.prototype) : A.type === "decl" ? Object.setPrototypeOf(A, u.prototype) : A.type === "comment" ? Object.setPrototypeOf(A, e.prototype) : A.type === "root" && Object.setPrototypeOf(A, i.prototype), A[a] = !0, A.nodes && A.nodes.forEach((d) => { + f.rebuild(d); }); - }, zu; + }, ut; } -var Xu, rr; -function Tt() { - if (rr) return Xu; - rr = 1; - let e = Te(); +var tt, a0; +function Qt() { + if (a0) return tt; + a0 = 1; + let e = Pe(); class u extends e { - constructor(c) { - super(c), this.type = "atrule"; + constructor(s) { + super(s), this.type = "atrule"; } - append(...c) { - return this.proxyOf.nodes || (this.nodes = []), super.append(...c); + append(...s) { + return this.proxyOf.nodes || (this.nodes = []), super.append(...s); } - prepend(...c) { - return this.proxyOf.nodes || (this.nodes = []), super.prepend(...c); + prepend(...s) { + return this.proxyOf.nodes || (this.nodes = []), super.prepend(...s); } } - return Xu = u, u.default = u, e.registerAtRule(u), Xu; + return tt = u, u.default = u, e.registerAtRule(u), tt; } -var $u, ir; -function Nt() { - if (ir) return $u; - ir = 1; - let e = Te(), u, t; - class c extends e { - constructor(i) { - super({ type: "document", ...i }), this.nodes || (this.nodes = []); +var rt, s0; +function Lt() { + if (s0) return rt; + s0 = 1; + let e = Pe(), u, t; + class s extends e { + constructor(r) { + super({ type: "document", ...r }), this.nodes || (this.nodes = []); } - toResult(i = {}) { - return new u(new t(), this, i).stringify(); + toResult(r = {}) { + return new u(new t(), this, r).stringify(); } } - return c.registerLazyResult = (s) => { - u = s; - }, c.registerProcessor = (s) => { - t = s; - }, $u = c, c.default = c, $u; + return s.registerLazyResult = (a) => { + u = a; + }, s.registerProcessor = (a) => { + t = a; + }, rt = s, s.default = s, rt; } -var et, nr; -function Zs() { - if (nr) return et; - nr = 1; +var nt, c0; +function uc() { + if (c0) return nt; + c0 = 1; let e = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"; - return et = { nanoid: (c = 21) => { - let s = "", i = c | 0; + return nt = { nanoid: (s = 21) => { + let a = "", r = s | 0; + for (; r--; ) + a += e[Math.random() * 64 | 0]; + return a; + }, customAlphabet: (s, a = 21) => (r = a) => { + let o = "", i = r | 0; for (; i--; ) - s += e[Math.random() * 64 | 0]; - return s; - }, customAlphabet: (c, s = 21) => (i = s) => { - let l = "", a = i | 0; - for (; a--; ) - l += c[Math.random() * c.length | 0]; - return l; - } }, et; -} -var ut, ar; -function si() { - if (ar) return ut; - ar = 1; - let { existsSync: e, readFileSync: u } = oe, { dirname: t, join: c } = oe, { SourceMapConsumer: s, SourceMapGenerator: i } = oe; - function l(o) { - return Buffer ? Buffer.from(o, "base64").toString() : window.atob(o); + o += s[Math.random() * s.length | 0]; + return o; + } }, nt; +} +var it, o0; +function An() { + if (o0) return it; + o0 = 1; + let { existsSync: e, readFileSync: u } = ge, { dirname: t, join: s } = ge, { SourceMapConsumer: a, SourceMapGenerator: r } = ge; + function o(c) { + return Buffer ? Buffer.from(c, "base64").toString() : window.atob(c); } - class a { - constructor(r, n) { - if (n.map === !1) return; - n.unsafeMap && (this.unsafeMap = !0), this.loadAnnotation(r), this.inline = this.startWith(this.annotation, "data:"); - let f = n.map ? n.map.prev : void 0, d = this.loadMap(n.from, f); - !this.mapFile && n.from && (this.mapFile = n.from), this.mapFile && (this.root = t(this.mapFile)), d && (this.text = d); + class i { + constructor(n, l) { + if (l.map === !1) return; + l.unsafeMap && (this.unsafeMap = !0), this.loadAnnotation(n), this.inline = this.startWith(this.annotation, "data:"); + let f = l.map ? l.map.prev : void 0, A = this.loadMap(l.from, f); + !this.mapFile && l.from && (this.mapFile = l.from), this.mapFile && (this.root = t(this.mapFile)), A && (this.text = A); } consumer() { - return this.consumerCache || (this.consumerCache = new s(this.json || this.text)), this.consumerCache; + return this.consumerCache || (this.consumerCache = new a(this.json || this.text)), this.consumerCache; } - decodeInline(r) { - let n = /^data:application\/json;charset=utf-?8;base64,/, f = /^data:application\/json;base64,/, d = /^data:application\/json;charset=utf-?8,/, A = /^data:application\/json,/, h = r.match(d) || r.match(A); + decodeInline(n) { + let l = /^data:application\/json;charset=utf-?8;base64,/, f = /^data:application\/json;base64,/, A = /^data:application\/json;charset=utf-?8,/, d = /^data:application\/json,/, h = n.match(A) || n.match(d); if (h) - return decodeURIComponent(r.substr(h[0].length)); - let w = r.match(n) || r.match(f); - if (w) - return l(r.substr(w[0].length)); - let C = r.slice(22); + return decodeURIComponent(n.substr(h[0].length)); + let y = n.match(l) || n.match(f); + if (y) + return o(n.substr(y[0].length)); + let C = n.slice(22); throw C = C.slice(0, C.indexOf(",")), new Error("Unsupported source map encoding " + C); } - getAnnotationURL(r) { - return r.replace(/^\/\*\s*# sourceMappingURL=/, "").trim(); + getAnnotationURL(n) { + return n.replace(/^\/\*\s*# sourceMappingURL=/, "").trim(); } - isMap(r) { - return typeof r != "object" ? !1 : typeof r.mappings == "string" || typeof r._mappings == "string" || Array.isArray(r.sections); + isMap(n) { + return typeof n != "object" ? !1 : typeof n.mappings == "string" || typeof n._mappings == "string" || Array.isArray(n.sections); } - loadAnnotation(r) { - let n = r.match(/\/\*\s*# sourceMappingURL=/g); - if (!n) return; - let f = r.lastIndexOf(n.pop()), d = r.indexOf("*/", f); - f > -1 && d > -1 && (this.annotation = this.getAnnotationURL(r.substring(f, d))); + loadAnnotation(n) { + let l = n.match(/\/\*\s*# sourceMappingURL=/g); + if (!l) return; + let f = n.lastIndexOf(l.pop()), A = n.indexOf("*/", f); + f > -1 && A > -1 && (this.annotation = this.getAnnotationURL(n.substring(f, A))); } - loadFile(r, n, f) { - if (!(!f && !this.unsafeMap && !/\.map$/i.test(r)) && (this.root = t(r), e(r))) - return this.mapFile = r, u(r, "utf-8").toString().trim(); + loadFile(n, l, f) { + if (!(!f && !this.unsafeMap && !/\.map$/i.test(n)) && (this.root = t(n), e(n))) + return this.mapFile = n, u(n, "utf-8").toString().trim(); } - loadMap(r, n) { - if (n === !1) return !1; - if (n) { - if (typeof n == "string") - return n; - if (typeof n == "function") { - let f = n(r); + loadMap(n, l) { + if (l === !1) return !1; + if (l) { + if (typeof l == "string") + return l; + if (typeof l == "function") { + let f = l(n); if (f) { - let d = this.loadFile(f, r, !0); - if (!d) + let A = this.loadFile(f, n, !0); + if (!A) throw new Error( "Unable to load previous source map: " + f.toString() ); - return d; + return A; } } else { - if (n instanceof s) - return i.fromSourceMap(n).toString(); - if (n instanceof i) - return n.toString(); - if (this.isMap(n)) - return JSON.stringify(n); + if (l instanceof a) + return r.fromSourceMap(l).toString(); + if (l instanceof r) + return l.toString(); + if (this.isMap(l)) + return JSON.stringify(l); throw new Error( - "Unsupported previous source map format: " + n.toString() + "Unsupported previous source map format: " + l.toString() ); } } else { @@ -7251,205 +7360,205 @@ function si() { return this.decodeInline(this.annotation); if (this.annotation) { let f = this.annotation; - r && (f = c(t(r), f)); - let d = this.loadFile(f, r, !1); - if (d) + n && (f = s(t(n), f)); + let A = this.loadFile(f, n, !1); + if (A) try { - this.json = JSON.parse(d.replace(/^\)]}'[^\n]*\n/, "")); + this.json = JSON.parse(A.replace(/^\)]}'[^\n]*\n/, "")); } catch { return; } - return d; + return A; } } } - startWith(r, n) { - return r ? r.substr(0, n.length) === n : !1; + startWith(n, l) { + return n ? n.substr(0, l.length) === l : !1; } withContent() { return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0); } } - return ut = a, a.default = a, ut; + return it = i, i.default = i, it; } -var tt, sr; -function Eu() { - if (sr) return tt; - sr = 1; - let { nanoid: e } = /* @__PURE__ */ Zs(), { isAbsolute: u, resolve: t } = oe, { SourceMapConsumer: c, SourceMapGenerator: s } = oe, { fileURLToPath: i, pathToFileURL: l } = oe, a = St(), o = si(), r = oe, n = Symbol("lineToIndexCache"), f = !!(c && s), d = !!(t && u); - function A(w) { - if (w[n]) return w[n]; - let C = w.css.split(` -`), b = new Array(C.length), m = 0; - for (let g = 0, x = C.length; g < x; g++) - b[g] = m, m += C[g].length + 1; - return w[n] = b, b; +var at, l0; +function Bu() { + if (l0) return at; + l0 = 1; + let { nanoid: e } = /* @__PURE__ */ uc(), { isAbsolute: u, resolve: t } = ge, { SourceMapConsumer: s, SourceMapGenerator: a } = ge, { fileURLToPath: r, pathToFileURL: o } = ge, i = Mt(), c = An(), n = ge, l = Symbol("lineToIndexCache"), f = !!(s && a), A = !!(t && u); + function d(y) { + if (y[l]) return y[l]; + let C = y.css.split(` +`), w = new Array(C.length), b = 0; + for (let x = 0, m = C.length; x < m; x++) + w[x] = b, b += C[x].length + 1; + return y[l] = w, w; } class h { get from() { return this.file || this.id; } - constructor(C, b = {}) { + constructor(C, w = {}) { if (C === null || typeof C > "u" || typeof C == "object" && !C.toString) throw new Error(`PostCSS received ${C} instead of CSS string`); - if (this.css = C.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, this.document = this.css, b.document && (this.document = b.document.toString()), b.from && (!d || /^\w+:\/\//.test(b.from) || u(b.from) ? this.file = b.from : this.file = t(b.from)), d && f) { - let m = new o(this.css, b); - if (m.text) { - this.map = m; - let g = m.consumer().file; - !this.file && g && (this.file = this.mapResolve(g)); + if (this.css = C.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, this.document = this.css, w.document && (this.document = w.document.toString()), w.from && (!A || /^\w+:\/\//.test(w.from) || u(w.from) ? this.file = w.from : this.file = t(w.from)), A && f) { + let b = new c(this.css, w); + if (b.text) { + this.map = b; + let x = b.consumer().file; + !this.file && x && (this.file = this.mapResolve(x)); } } this.file || (this.id = "<input css " + e(6) + ">"), this.map && (this.map.file = this.from); } - error(C, b, m, g = {}) { - let x, p, y, v, I; - if (b && typeof b == "object") { - let _ = b, E = m; + error(C, w, b, x = {}) { + let m, p, g, D, B; + if (w && typeof w == "object") { + let _ = w, v = b; if (typeof _.offset == "number") { - v = _.offset; - let k = this.fromOffset(v); - b = k.line, m = k.col; + D = _.offset; + let k = this.fromOffset(D); + w = k.line, b = k.col; } else - b = _.line, m = _.column, v = this.fromLineAndColumn(b, m); - if (typeof E.offset == "number") { - y = E.offset; - let k = this.fromOffset(y); - p = k.line, x = k.col; + w = _.line, b = _.column, D = this.fromLineAndColumn(w, b); + if (typeof v.offset == "number") { + g = v.offset; + let k = this.fromOffset(g); + p = k.line, m = k.col; } else - p = E.line, x = E.column, y = this.fromLineAndColumn(E.line, E.column); - } else if (m) - v = this.fromLineAndColumn(b, m); + p = v.line, m = v.column, g = this.fromLineAndColumn(v.line, v.column); + } else if (b) + D = this.fromLineAndColumn(w, b); else { - v = b; - let _ = this.fromOffset(v); - b = _.line, m = _.col; + D = w; + let _ = this.fromOffset(D); + w = _.line, b = _.col; } - let D = this.origin(b, m, p, x); - return D ? I = new a( + let E = this.origin(w, b, p, m); + return E ? B = new i( C, - D.endLine === void 0 ? D.line : { column: D.column, line: D.line }, - D.endLine === void 0 ? D.column : { column: D.endColumn, line: D.endLine }, - D.source, - D.file, - g.plugin - ) : I = new a( + E.endLine === void 0 ? E.line : { column: E.column, line: E.line }, + E.endLine === void 0 ? E.column : { column: E.endColumn, line: E.endLine }, + E.source, + E.file, + x.plugin + ) : B = new i( C, - p === void 0 ? b : { column: m, line: b }, - p === void 0 ? m : { column: x, line: p }, + p === void 0 ? w : { column: b, line: w }, + p === void 0 ? b : { column: m, line: p }, this.css, this.file, - g.plugin - ), I.input = { - column: m, - endColumn: x, + x.plugin + ), B.input = { + column: b, + endColumn: m, endLine: p, - endOffset: y, - line: b, - offset: v, + endOffset: g, + line: w, + offset: D, source: this.css - }, this.file && (l && (I.input.url = l(this.file).toString()), I.input.file = this.file), I; + }, this.file && (o && (B.input.url = o(this.file).toString()), B.input.file = this.file), B; } - fromLineAndColumn(C, b) { - return A(this)[C - 1] + b - 1; + fromLineAndColumn(C, w) { + return d(this)[C - 1] + w - 1; } fromOffset(C) { - let b = A(this), m = b[b.length - 1], g = 0; - if (C >= m) - g = b.length - 1; + let w = d(this), b = w[w.length - 1], x = 0; + if (C >= b) + x = w.length - 1; else { - let x = b.length - 2, p; - for (; g < x; ) - if (p = g + (x - g >> 1), C < b[p]) - x = p - 1; - else if (C >= b[p + 1]) - g = p + 1; + let m = w.length - 2, p; + for (; x < m; ) + if (p = x + (m - x >> 1), C < w[p]) + m = p - 1; + else if (C >= w[p + 1]) + x = p + 1; else { - g = p; + x = p; break; } } return { - col: C - b[g] + 1, - line: g + 1 + col: C - w[x] + 1, + line: x + 1 }; } mapResolve(C) { return /^\w+:\/\//.test(C) ? C : t(this.map.consumer().sourceRoot || this.map.root || ".", C); } - origin(C, b, m, g) { + origin(C, w, b, x) { if (!this.map) return !1; - let x = this.map.consumer(), p = x.originalPositionFor({ column: b, line: C }); + let m = this.map.consumer(), p = m.originalPositionFor({ column: w, line: C }); if (!p.source) return !1; - let y; - typeof m == "number" && (y = x.originalPositionFor({ column: g, line: m })); - let v; - u(p.source) ? v = l(p.source) : v = new URL( + let g; + typeof b == "number" && (g = m.originalPositionFor({ column: x, line: b })); + let D; + u(p.source) ? D = o(p.source) : D = new URL( p.source, - this.map.consumer().sourceRoot || l(this.map.mapFile) + this.map.consumer().sourceRoot || o(this.map.mapFile) ); - let I = { + let B = { column: p.column, - endColumn: y && y.column, - endLine: y && y.line, + endColumn: g && g.column, + endLine: g && g.line, line: p.line, - url: v.toString() + url: D.toString() }; - if (v.protocol === "file:") - if (i) - I.file = i(v); + if (D.protocol === "file:") + if (r) + B.file = r(D); else throw new Error("file: protocol is not available in this PostCSS build"); - let D = x.sourceContentFor(p.source); - return D && (I.source = D), I; + let E = m.sourceContentFor(p.source); + return E && (B.source = E), B; } toJSON() { let C = {}; - for (let b of ["hasBOM", "css", "file", "id"]) - this[b] != null && (C[b] = this[b]); + for (let w of ["hasBOM", "css", "file", "id"]) + this[w] != null && (C[w] = this[w]); return this.map && (C.map = { ...this.map }, C.map.consumerCache && (C.map.consumerCache = void 0)), C; } } - return tt = h, h.default = h, r && r.registerInput && r.registerInput(h), tt; + return at = h, h.default = h, n && n.registerInput && n.registerInput(h), at; } -var rt, cr; -function $e() { - if (cr) return rt; - cr = 1; - let e = Te(), u, t; - class c extends e { - constructor(i) { - super(i), this.type = "root", this.nodes || (this.nodes = []); +var st, f0; +function ru() { + if (f0) return st; + f0 = 1; + let e = Pe(), u, t; + class s extends e { + constructor(r) { + super(r), this.type = "root", this.nodes || (this.nodes = []); } - normalize(i, l, a) { - let o = super.normalize(i); - if (l) { - if (a === "prepend") - this.nodes.length > 1 ? l.raws.before = this.nodes[1].raws.before : delete l.raws.before; - else if (this.first !== l) - for (let r of o) - r.raws.before = l.raws.before; + normalize(r, o, i) { + let c = super.normalize(r); + if (o) { + if (i === "prepend") + this.nodes.length > 1 ? o.raws.before = this.nodes[1].raws.before : delete o.raws.before; + else if (this.first !== o) + for (let n of c) + n.raws.before = o.raws.before; } - return o; + return c; } - removeChild(i, l) { - let a = this.index(i); - return !l && a === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[a].raws.before), super.removeChild(i); + removeChild(r, o) { + let i = this.index(r); + return !o && i === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[i].raws.before), super.removeChild(r); } - toResult(i = {}) { - return new u(new t(), this, i).stringify(); + toResult(r = {}) { + return new u(new t(), this, r).stringify(); } } - return c.registerLazyResult = (s) => { - u = s; - }, c.registerProcessor = (s) => { - t = s; - }, rt = c, c.default = c, e.registerRoot(c), rt; + return s.registerLazyResult = (a) => { + u = a; + }, s.registerProcessor = (a) => { + t = a; + }, st = s, s.default = s, e.registerRoot(s), st; } -var it, or; -function ci() { - if (or) return it; - or = 1; +var ct, d0; +function hn() { + if (d0) return ct; + d0 = 1; let e = { comma(u) { return e.split(u, [","], !0); @@ -7459,133 +7568,133 @@ function ci() { `, " "]; return e.split(u, t); }, - split(u, t, c) { - let s = [], i = "", l = !1, a = 0, o = !1, r = "", n = !1; + split(u, t, s) { + let a = [], r = "", o = !1, i = 0, c = !1, n = "", l = !1; for (let f of u) - n ? n = !1 : f === "\\" ? n = !0 : o ? f === r && (o = !1) : f === '"' || f === "'" ? (o = !0, r = f) : f === "(" ? a += 1 : f === ")" ? a > 0 && (a -= 1) : a === 0 && t.includes(f) && (l = !0), l ? (i !== "" && s.push(i.trim()), i = "", l = !1) : i += f; - return (c || i !== "") && s.push(i.trim()), s; + l ? l = !1 : f === "\\" ? l = !0 : c ? f === n && (c = !1) : f === '"' || f === "'" ? (c = !0, n = f) : f === "(" ? i += 1 : f === ")" ? i > 0 && (i -= 1) : i === 0 && t.includes(f) && (o = !0), o ? (r !== "" && a.push(r.trim()), r = "", o = !1) : r += f; + return (s || r !== "") && a.push(r.trim()), a; } }; - return it = e, e.default = e, it; + return ct = e, e.default = e, ct; } -var nt, lr; -function Ot() { - if (lr) return nt; - lr = 1; - let e = Te(), u = ci(); +var ot, A0; +function Pt() { + if (A0) return ot; + A0 = 1; + let e = Pe(), u = hn(); class t extends e { get selectors() { return u.comma(this.selector); } - set selectors(s) { - let i = this.selector ? this.selector.match(/,\s*/) : null, l = i ? i[0] : "," + this.raw("between", "beforeOpen"); - this.selector = s.join(l); + set selectors(a) { + let r = this.selector ? this.selector.match(/,\s*/) : null, o = r ? r[0] : "," + this.raw("between", "beforeOpen"); + this.selector = a.join(o); } - constructor(s) { - super(s), this.type = "rule", this.nodes || (this.nodes = []); + constructor(a) { + super(a), this.type = "rule", this.nodes || (this.nodes = []); } } - return nt = t, t.default = t, e.registerRule(t), nt; + return ot = t, t.default = t, e.registerRule(t), ot; } -var at, fr; -function Vs() { - if (fr) return at; - fr = 1; - let e = Tt(), u = Cu(), t = vu(), c = Eu(), s = si(), i = $e(), l = Ot(); - function a(o, r) { - if (Array.isArray(o)) return o.map((d) => a(d)); - let { inputs: n, ...f } = o; - if (n) { - r = []; - for (let d of n) { - let A = { ...d, __proto__: c.prototype }; - A.map && (A.map = { - ...A.map, - __proto__: s.prototype - }), r.push(A); +var lt, h0; +function tc() { + if (h0) return lt; + h0 = 1; + let e = Qt(), u = Iu(), t = ku(), s = Bu(), a = An(), r = ru(), o = Pt(); + function i(c, n) { + if (Array.isArray(c)) return c.map((A) => i(A)); + let { inputs: l, ...f } = c; + if (l) { + n = []; + for (let A of l) { + let d = { ...A, __proto__: s.prototype }; + d.map && (d.map = { + ...d.map, + __proto__: a.prototype + }), n.push(d); } } - if (f.nodes && (f.nodes = o.nodes.map((d) => a(d, r))), f.source) { - let { inputId: d, ...A } = f.source; - f.source = A, d != null && (f.source.input = r[d]); + if (f.nodes && (f.nodes = c.nodes.map((A) => i(A, n))), f.source) { + let { inputId: A, ...d } = f.source; + f.source = d, A != null && (f.source.input = n[A]); } if (f.type === "root") - return new i(f); + return new r(f); if (f.type === "decl") return new t(f); if (f.type === "rule") - return new l(f); + return new o(f); if (f.type === "comment") return new u(f); if (f.type === "atrule") return new e(f); - throw new Error("Unknown node type: " + o.type); + throw new Error("Unknown node type: " + c.type); } - return at = a, a.default = a, at; + return lt = i, i.default = i, lt; } -var st, dr; -function oi() { - if (dr) return st; - dr = 1; - let { dirname: e, relative: u, resolve: t, sep: c } = oe, { SourceMapConsumer: s, SourceMapGenerator: i } = oe, { pathToFileURL: l } = oe, a = Eu(), o = !!(s && i), r = !!(e && t && u && c); - class n { - constructor(d, A, h, w) { - this.stringify = d, this.mapOpts = h.map || {}, this.root = A, this.opts = h, this.css = w, this.originalCSS = w, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map(); +var ft, b0; +function bn() { + if (b0) return ft; + b0 = 1; + let { dirname: e, relative: u, resolve: t, sep: s } = ge, { SourceMapConsumer: a, SourceMapGenerator: r } = ge, { pathToFileURL: o } = ge, i = Bu(), c = !!(a && r), n = !!(e && t && u && s); + class l { + constructor(A, d, h, y) { + this.stringify = A, this.mapOpts = h.map || {}, this.root = d, this.opts = h, this.css = y, this.originalCSS = y, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map(); } addAnnotation() { - let d; - this.isInline() ? d = "data:application/json;base64," + this.toBase64(this.map.toString()) : typeof this.mapOpts.annotation == "string" ? d = this.mapOpts.annotation : typeof this.mapOpts.annotation == "function" ? d = this.mapOpts.annotation(this.opts.to, this.root) : d = this.outputFile() + ".map"; - let A = ` + let A; + this.isInline() ? A = "data:application/json;base64," + this.toBase64(this.map.toString()) : typeof this.mapOpts.annotation == "string" ? A = this.mapOpts.annotation : typeof this.mapOpts.annotation == "function" ? A = this.mapOpts.annotation(this.opts.to, this.root) : A = this.outputFile() + ".map"; + let d = ` `; this.css.includes(`\r -`) && (A = `\r -`), this.css += A + "/*# sourceMappingURL=" + d + " */"; +`) && (d = `\r +`), this.css += d + "/*# sourceMappingURL=" + A + " */"; } applyPrevMaps() { - for (let d of this.previous()) { - let A = this.toUrl(this.path(d.file)), h = d.root || e(d.file), w; - this.mapOpts.sourcesContent === !1 ? (w = new s(d.text), w.sourcesContent && (w.sourcesContent = null)) : w = d.consumer(), this.map.applySourceMap(w, A, this.toUrl(this.path(h))); + for (let A of this.previous()) { + let d = this.toUrl(this.path(A.file)), h = A.root || e(A.file), y; + this.mapOpts.sourcesContent === !1 ? (y = new a(A.text), y.sourcesContent && (y.sourcesContent = null)) : y = A.consumer(), this.map.applySourceMap(y, d, this.toUrl(this.path(h))); } } clearAnnotation() { if (this.mapOpts.annotation !== !1) { if (this.root) { - let d; - for (let A = this.root.nodes.length - 1; A >= 0; A--) - d = this.root.nodes[A], d.type === "comment" && d.text.startsWith("# sourceMappingURL=") && this.root.removeChild(A); + let A; + for (let d = this.root.nodes.length - 1; d >= 0; d--) + A = this.root.nodes[d], A.type === "comment" && A.text.startsWith("# sourceMappingURL=") && this.root.removeChild(d); } else if (this.css) { - let d; - for (; (d = this.css.lastIndexOf("/*#")) !== -1; ) { - let A = this.css.indexOf("*/", d + 3); - if (A === -1) break; - for (; d > 0 && this.css[d - 1] === ` + let A; + for (; (A = this.css.lastIndexOf("/*#")) !== -1; ) { + let d = this.css.indexOf("*/", A + 3); + if (d === -1) break; + for (; A > 0 && this.css[A - 1] === ` `; ) - d--; - this.css = this.css.slice(0, d) + this.css.slice(A + 2); + A--; + this.css = this.css.slice(0, A) + this.css.slice(d + 2); } } } } generate() { - if (this.clearAnnotation(), r && o && this.isMap()) + if (this.clearAnnotation(), n && c && this.isMap()) return this.generateMap(); { - let d = ""; - return this.stringify(this.root, (A) => { - d += A; - }), [d]; + let A = ""; + return this.stringify(this.root, (d) => { + A += d; + }), [A]; } } generateMap() { if (this.root) this.generateString(); else if (this.previous().length === 1) { - let d = this.previous()[0].consumer(); - d.file = this.outputFile(), this.map = i.fromSourceMap(d, { + let A = this.previous()[0].consumer(); + A.file = this.outputFile(), this.map = r.fromSourceMap(A, { ignoreInvalidMapping: !0 }); } else - this.map = new i({ + this.map = new r({ file: this.outputFile(), ignoreInvalidMapping: !0 }), this.map.addMapping({ @@ -7596,407 +7705,416 @@ function oi() { return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map]; } generateString() { - this.css = "", this.map = new i({ + this.css = "", this.map = new r({ file: this.outputFile(), ignoreInvalidMapping: !0 }); - let d = 1, A = 1, h = "<no source>", w = { + let A = 1, d = 1, h = "<no source>", y = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" - }, C, b; - this.stringify(this.root, (m, g, x) => { - if (this.css += m, g && x !== "end" && (w.generated.line = d, w.generated.column = A - 1, g.source && g.source.start ? (w.source = this.sourcePath(g), w.original.line = g.source.start.line, w.original.column = g.source.start.column - 1, this.map.addMapping(w)) : (w.source = h, w.original.line = 1, w.original.column = 0, this.map.addMapping(w))), b = m.match(/\n/g), b ? (d += b.length, C = m.lastIndexOf(` -`), A = m.length - C) : A += m.length, g && x !== "start") { - let p = g.parent || { raws: {} }; - (!(g.type === "decl" || g.type === "atrule" && !g.nodes) || g !== p.last || p.raws.semicolon) && (g.source && g.source.end ? (w.source = this.sourcePath(g), w.original.line = g.source.end.line, w.original.column = g.source.end.column - 1, w.generated.line = d, w.generated.column = A - 2, this.map.addMapping(w)) : (w.source = h, w.original.line = 1, w.original.column = 0, w.generated.line = d, w.generated.column = A - 1, this.map.addMapping(w))); + }, C, w; + this.stringify(this.root, (b, x, m) => { + if (this.css += b, x && m !== "end" && (y.generated.line = A, y.generated.column = d - 1, x.source && x.source.start ? (y.source = this.sourcePath(x), y.original.line = x.source.start.line, y.original.column = x.source.start.column - 1, this.map.addMapping(y)) : (y.source = h, y.original.line = 1, y.original.column = 0, this.map.addMapping(y))), w = b.match(/\n/g), w ? (A += w.length, C = b.lastIndexOf(` +`), d = b.length - C) : d += b.length, x && m !== "start") { + let p = x.parent || { raws: {} }; + (!(x.type === "decl" || x.type === "atrule" && !x.nodes) || x !== p.last || p.raws.semicolon) && (x.source && x.source.end ? (y.source = this.sourcePath(x), y.original.line = x.source.end.line, y.original.column = x.source.end.column - 1, y.generated.line = A, y.generated.column = d - 2, this.map.addMapping(y)) : (y.source = h, y.original.line = 1, y.original.column = 0, y.generated.line = A, y.generated.column = d - 1, this.map.addMapping(y))); } }); } isAnnotation() { - return this.isInline() ? !0 : typeof this.mapOpts.annotation < "u" ? this.mapOpts.annotation : this.previous().length ? this.previous().some((d) => d.annotation) : !0; + return this.isInline() ? !0 : typeof this.mapOpts.annotation < "u" ? this.mapOpts.annotation : this.previous().length ? this.previous().some((A) => A.annotation) : !0; } isInline() { if (typeof this.mapOpts.inline < "u") return this.mapOpts.inline; - let d = this.mapOpts.annotation; - return typeof d < "u" && d !== !0 ? !1 : this.previous().length ? this.previous().some((A) => A.inline) : !0; + let A = this.mapOpts.annotation; + return typeof A < "u" && A !== !0 ? !1 : this.previous().length ? this.previous().some((d) => d.inline) : !0; } isMap() { return typeof this.opts.map < "u" ? !!this.opts.map : this.previous().length > 0; } isSourcesContent() { - return typeof this.mapOpts.sourcesContent < "u" ? this.mapOpts.sourcesContent : this.previous().length ? this.previous().some((d) => d.withContent()) : !0; + return typeof this.mapOpts.sourcesContent < "u" ? this.mapOpts.sourcesContent : this.previous().length ? this.previous().some((A) => A.withContent()) : !0; } outputFile() { return this.opts.to ? this.path(this.opts.to) : this.opts.from ? this.path(this.opts.from) : "to.css"; } - path(d) { - if (this.mapOpts.absolute || d.charCodeAt(0) === 60 || /^\w+:\/\//.test(d)) return d; - let A = this.memoizedPaths.get(d); - if (A) return A; + path(A) { + if (this.mapOpts.absolute || A.charCodeAt(0) === 60 || /^\w+:\/\//.test(A)) return A; + let d = this.memoizedPaths.get(A); + if (d) return d; let h = this.opts.to ? e(this.opts.to) : "."; typeof this.mapOpts.annotation == "string" && (h = e(t(h, this.mapOpts.annotation))); - let w = u(h, d); - return this.memoizedPaths.set(d, w), w; + let y = u(h, A); + return this.memoizedPaths.set(A, y), y; } previous() { if (!this.previousMaps) if (this.previousMaps = [], this.root) - this.root.walk((d) => { - if (d.source && d.source.input.map) { - let A = d.source.input.map; - this.previousMaps.includes(A) || this.previousMaps.push(A); + this.root.walk((A) => { + if (A.source && A.source.input.map) { + let d = A.source.input.map; + this.previousMaps.includes(d) || this.previousMaps.push(d); } }); else { - let d = new a(this.originalCSS, this.opts); - d.map && this.previousMaps.push(d.map); + let A = new i(this.originalCSS, this.opts); + A.map && this.previousMaps.push(A.map); } return this.previousMaps; } setSourcesContent() { - let d = {}; + let A = {}; if (this.root) - this.root.walk((A) => { - if (A.source) { - let h = A.source.input.from; - if (h && !d[h]) { - d[h] = !0; - let w = this.usesFileUrls ? this.toFileUrl(h) : this.toUrl(this.path(h)); - this.map.setSourceContent(w, A.source.input.css); + this.root.walk((d) => { + if (d.source) { + let h = d.source.input.from; + if (h && !A[h]) { + A[h] = !0; + let y = this.usesFileUrls ? this.toFileUrl(h) : this.toUrl(this.path(h)); + this.map.setSourceContent(y, d.source.input.css); } } }); else if (this.css) { - let A = this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>"; - this.map.setSourceContent(A, this.css); + let d = this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>"; + this.map.setSourceContent(d, this.css); } } - sourcePath(d) { - return this.mapOpts.from ? this.toUrl(this.mapOpts.from) : this.usesFileUrls ? this.toFileUrl(d.source.input.from) : this.toUrl(this.path(d.source.input.from)); + sourcePath(A) { + return this.mapOpts.from ? this.toUrl(this.mapOpts.from) : this.usesFileUrls ? this.toFileUrl(A.source.input.from) : this.toUrl(this.path(A.source.input.from)); } - toBase64(d) { - return Buffer ? Buffer.from(d).toString("base64") : window.btoa(unescape(encodeURIComponent(d))); + toBase64(A) { + return Buffer ? Buffer.from(A).toString("base64") : window.btoa(unescape(encodeURIComponent(A))); } - toFileUrl(d) { - let A = this.memoizedFileURLs.get(d); - if (A) return A; - if (l) { - let h = l(d).toString(); - return this.memoizedFileURLs.set(d, h), h; + toFileUrl(A) { + let d = this.memoizedFileURLs.get(A); + if (d) return d; + if (o) { + let h = o(A).toString(); + return this.memoizedFileURLs.set(A, h), h; } else throw new Error( "`map.absolute` option is not available in this PostCSS build" ); } - toUrl(d) { - let A = this.memoizedURLs.get(d); - if (A) return A; - c === "\\" && (d = d.replace(/\\/g, "/")); - let h = encodeURI(d).replace(/[#?]/g, encodeURIComponent); - return this.memoizedURLs.set(d, h), h; + toUrl(A) { + let d = this.memoizedURLs.get(A); + if (d) return d; + s === "\\" && (A = A.replace(/\\/g, "/")); + let h = encodeURI(A).replace(/[#?]/g, encodeURIComponent); + return this.memoizedURLs.set(A, h), h; } } - return st = n, st; + return ft = l, ft; } -var ct, Ar; -function zs() { - if (Ar) return ct; - Ar = 1; - const e = 39, u = 34, t = 92, c = 47, s = 10, i = 32, l = 12, a = 9, o = 13, r = 91, n = 93, f = 40, d = 41, A = 123, h = 125, w = 59, C = 42, b = 58, m = 64, g = /[\t\n\f\r "#'()/;[\\\]{}]/g, x = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, p = /.[\r\n"'(/\\]/, y = /[\da-f]/i; - return ct = function(I, D = {}) { - let _ = I.css.valueOf(), E = D.ignoreErrors, k, F, T, B, O, Q, L, K, j, ee, _e = _.length, M = 0, ue = [], ke = [], Ge = -1; - function Du() { - return M; - } - function qe(N) { - throw I.error("Unclosed " + N, M); - } - function Iu() { - return ke.length === 0 && M >= _e; - } - function eu(N) { - if (ke.length) return ke.pop(); - if (M >= _e) return; - let R = N ? N.ignoreUnclosed : !1; - switch (k = _.charCodeAt(M), k) { - case s: - case i: +var dt, p0; +function rc() { + if (p0) return dt; + p0 = 1; + const e = 39, u = 34, t = 92, s = 47, a = 10, r = 32, o = 12, i = 9, c = 13, n = 91, l = 93, f = 40, A = 41, d = 123, h = 125, y = 59, C = 42, w = 58, b = 64, x = /[\t\n\f\r "#'()/;[\\\]{}]/g, m = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, p = /.[\r\n"'(/\\]/, g = /[\da-f]/i; + return dt = function(B, E = {}) { + let _ = B.css.valueOf(), v = E.ignoreErrors, k, S, F, I, T, M, N, P, G, H, U = _.length, L = 0, z = [], Z = [], ae = -1; + function se() { + return L; + } + function le(R) { + throw B.error("Unclosed " + R, L); + } + function fe() { + return Z.length === 0 && L >= U; + } + function X(R) { + if (Z.length) return Z.pop(); + if (L >= U) return; + let Q = R ? R.ignoreUnclosed : !1; + switch (k = _.charCodeAt(L), k) { case a: - case o: - case l: { - B = M; + case r: + case i: + case c: + case o: { + I = L; do - B += 1, k = _.charCodeAt(B); - while (k === i || k === s || k === a || k === o || k === l); - Q = ["space", _.slice(M, B)], M = B - 1; + I += 1, k = _.charCodeAt(I); + while (k === r || k === a || k === i || k === c || k === o); + M = ["space", _.slice(L, I)], L = I - 1; break; } - case r: case n: - case A: + case l: + case d: case h: - case b: case w: - case d: { - let P = String.fromCharCode(k); - Q = [P, P, M]; + case y: + case A: { + let O = String.fromCharCode(k); + M = [O, O, L]; break; } case f: { - if (ee = ue.length ? ue.pop()[1] : "", j = _.charCodeAt(M + 1), ee === "url" && j !== e && j !== u && j !== i && j !== s && j !== a && j !== l && j !== o) { - B = M; + if (H = z.length ? z.pop()[1] : "", G = _.charCodeAt(L + 1), H === "url" && G !== e && G !== u && G !== r && G !== a && G !== i && G !== o && G !== c) { + I = L; do { - if (L = !1, B = _.indexOf(")", B + 1), B === -1) - if (E || R) { - B = M; + if (N = !1, I = _.indexOf(")", I + 1), I === -1) + if (v || Q) { + I = L; break; } else - qe("bracket"); - for (K = B; _.charCodeAt(K - 1) === t; ) - K -= 1, L = !L; - } while (L); - Q = ["brackets", _.slice(M, B + 1), M, B], M = B; - } else M <= Ge ? Q = ["(", "(", M] : (B = _.indexOf(")", M + 1), F = _.slice(M, B + 1), B === -1 || p.test(F) ? (Ge = B === -1 ? _e : B, Q = ["(", "(", M]) : (Q = ["brackets", F, M, B], M = B)); + le("bracket"); + for (P = I; _.charCodeAt(P - 1) === t; ) + P -= 1, N = !N; + } while (N); + M = ["brackets", _.slice(L, I + 1), L, I], L = I; + } else L <= ae ? M = ["(", "(", L] : (I = _.indexOf(")", L + 1), S = _.slice(L, I + 1), I === -1 || p.test(S) ? (ae = I === -1 ? U : I, M = ["(", "(", L]) : (M = ["brackets", S, L, I], L = I)); break; } case e: case u: { - O = k === e ? "'" : '"', B = M; + T = k === e ? "'" : '"', I = L; do { - if (L = !1, B = _.indexOf(O, B + 1), B === -1) - if (E || R) { - B = M + 1; + if (N = !1, I = _.indexOf(T, I + 1), I === -1) + if (v || Q) { + I = L + 1; break; } else - qe("string"); - for (K = B; _.charCodeAt(K - 1) === t; ) - K -= 1, L = !L; - } while (L); - Q = ["string", _.slice(M, B + 1), M, B], M = B; + le("string"); + for (P = I; _.charCodeAt(P - 1) === t; ) + P -= 1, N = !N; + } while (N); + M = ["string", _.slice(L, I + 1), L, I], L = I; break; } - case m: { - g.lastIndex = M + 1, g.test(_), g.lastIndex === 0 ? B = _.length - 1 : B = g.lastIndex - 2, Q = ["at-word", _.slice(M, B + 1), M, B], M = B; + case b: { + x.lastIndex = L + 1, x.test(_), x.lastIndex === 0 ? I = _.length - 1 : I = x.lastIndex - 2, M = ["at-word", _.slice(L, I + 1), L, I], L = I; break; } case t: { - for (B = M, T = !0; _.charCodeAt(B + 1) === t; ) - B += 1, T = !T; - if (k = _.charCodeAt(B + 1), T && k !== c && k !== i && k !== s && k !== a && k !== o && k !== l && (B += 1, y.test(_.charAt(B)))) { - for (; y.test(_.charAt(B + 1)); ) - B += 1; - _.charCodeAt(B + 1) === i && (B += 1); + for (I = L, F = !0; _.charCodeAt(I + 1) === t; ) + I += 1, F = !F; + if (k = _.charCodeAt(I + 1), F && k !== s && k !== r && k !== a && k !== i && k !== c && k !== o && (I += 1, g.test(_.charAt(I)))) { + for (; g.test(_.charAt(I + 1)); ) + I += 1; + _.charCodeAt(I + 1) === r && (I += 1); } - Q = ["word", _.slice(M, B + 1), M, B], M = B; + M = ["word", _.slice(L, I + 1), L, I], L = I; break; } default: { - k === c && _.charCodeAt(M + 1) === C ? (B = _.indexOf("*/", M + 2) + 1, B === 0 && (E || R ? B = _.length : qe("comment")), Q = ["comment", _.slice(M, B + 1), M, B], M = B) : (x.lastIndex = M + 1, x.test(_), x.lastIndex === 0 ? B = _.length - 1 : B = x.lastIndex - 2, Q = ["word", _.slice(M, B + 1), M, B], ue.push(Q), M = B); + k === s && _.charCodeAt(L + 1) === C ? (I = _.indexOf("*/", L + 2) + 1, I === 0 && (v || Q ? I = _.length : le("comment")), M = ["comment", _.slice(L, I + 1), L, I], L = I) : (m.lastIndex = L + 1, m.test(_), m.lastIndex === 0 ? I = _.length - 1 : I = m.lastIndex - 2, M = ["word", _.slice(L, I + 1), L, I], z.push(M), L = I); break; } } - return M++, Q; + return L++, M; } - function S(N) { - ke.push(N); + function re(R) { + Z.push(R); } return { - back: S, - endOfFile: Iu, - nextToken: eu, - position: Du + back: re, + endOfFile: fe, + nextToken: X, + position: se }; - }, ct; -} -var ot, hr; -function Xs() { - if (hr) return ot; - hr = 1; - let e = Tt(), u = Cu(), t = vu(), c = $e(), s = Ot(), i = zs(); - const l = { + }, dt; +} +var At, g0; +function nc() { + if (g0) return At; + g0 = 1; + let e = Qt(), u = Iu(), t = ku(), s = ru(), a = Pt(), r = rc(); + const o = { empty: !0, space: !0 }; - function a(r) { - for (let n = r.length - 1; n >= 0; n--) { - let f = r[n], d = f[3] || f[2]; + function i(l) { + for (let f = l.length - 1; f >= 0; f--) { + let A = l[f], d = A[3] || A[2]; if (d) return d; } } - class o { - constructor(n) { - this.input = n, this.root = new c(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = { input: n, start: { column: 1, line: 1, offset: 0 } }; + function c(l, f, A) { + let d = ""; + for (let h = f; h < A; h++) d += l[h][1]; + return d; + } + class n { + constructor(f) { + this.input = f, this.root = new s(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = { input: f, start: { column: 1, line: 1, offset: 0 } }; } - atrule(n) { - let f = new e(); - f.name = n[1].slice(1), f.name === "" && this.unnamedAtrule(f, n), this.init(f, n[2]); - let d, A, h, w = !1, C = !1, b = [], m = []; + atrule(f) { + let A = new e(); + A.name = f[1].slice(1), A.name === "" && this.unnamedAtrule(A, f), this.init(A, f[2]); + let d, h, y, C = !1, w = !1, b = [], x = []; for (; !this.tokenizer.endOfFile(); ) { - if (n = this.tokenizer.nextToken(), d = n[0], d === "(" || d === "[" ? m.push(d === "(" ? ")" : "]") : d === "{" && m.length > 0 ? m.push("}") : d === m[m.length - 1] && m.pop(), m.length === 0) + if (f = this.tokenizer.nextToken(), d = f[0], d === "(" || d === "[" ? x.push(d === "(" ? ")" : "]") : d === "{" && x.length > 0 ? x.push("}") : d === x[x.length - 1] && x.pop(), x.length === 0) if (d === ";") { - f.source.end = this.getPosition(n[2]), f.source.end.offset++, this.semicolon = !0; + A.source.end = this.getPosition(f[2]), A.source.end.offset++, this.semicolon = !0; break; } else if (d === "{") { - C = !0; + w = !0; break; } else if (d === "}") { if (b.length > 0) { - for (h = b.length - 1, A = b[h]; A && A[0] === "space"; ) - A = b[--h]; - A && (f.source.end = this.getPosition(A[3] || A[2]), f.source.end.offset++); + for (y = b.length - 1, h = b[y]; h && h[0] === "space"; ) + h = b[--y]; + h && (A.source.end = this.getPosition(h[3] || h[2]), A.source.end.offset++); } - this.end(n); + this.end(f); break; } else - b.push(n); + b.push(f); else - b.push(n); + b.push(f); if (this.tokenizer.endOfFile()) { - w = !0; + C = !0; break; } } - f.raws.between = this.spacesAndCommentsFromEnd(b), b.length ? (f.raws.afterName = this.spacesAndCommentsFromStart(b), this.raw(f, "params", b), w && (n = b[b.length - 1], f.source.end = this.getPosition(n[3] || n[2]), f.source.end.offset++, this.spaces = f.raws.between, f.raws.between = "")) : (f.raws.afterName = "", f.params = ""), C && (f.nodes = [], this.current = f); + A.raws.between = this.spacesAndCommentsFromEnd(b), b.length ? (A.raws.afterName = this.spacesAndCommentsFromStart(b), this.raw(A, "params", b), C && (f = b[b.length - 1], A.source.end = this.getPosition(f[3] || f[2]), A.source.end.offset++, this.spaces = A.raws.between, A.raws.between = "")) : (A.raws.afterName = "", A.params = ""), w && (A.nodes = [], this.current = A); } - checkMissedSemicolon(n) { - let f = this.colon(n); - if (f === !1) return; - let d = 0, A; - for (let h = f - 1; h >= 0 && (A = n[h], !(A[0] !== "space" && (d += 1, d === 2))); h--) + checkMissedSemicolon(f) { + let A = this.colon(f); + if (A === !1) return; + let d = 0, h; + for (let y = A - 1; y >= 0 && (h = f[y], !(h[0] !== "space" && (d += 1, d === 2))); y--) ; throw this.input.error( "Missed semicolon", - A[0] === "word" ? A[3] + 1 : A[2] + h[0] === "word" ? h[3] + 1 : h[2] ); } - colon(n) { - let f = 0, d, A, h; - for (let [w, C] of n.entries()) { - if (A = C, h = A[0], h === "(" && (f += 1), h === ")" && (f -= 1), f === 0 && h === ":") + colon(f) { + let A = 0, d, h, y; + for (let [C, w] of f.entries()) { + if (h = w, y = h[0], y === "(" && (A += 1), y === ")" && (A -= 1), A === 0 && y === ":") if (!d) - this.doubleColon(A); + this.doubleColon(h); else { if (d[0] === "word" && d[1] === "progid") continue; - return w; + return C; } - d = A; + d = h; } return !1; } - comment(n) { - let f = new u(); - this.init(f, n[2]), f.source.end = this.getPosition(n[3] || n[2]), f.source.end.offset++; - let d = n[1].slice(2, -2); + comment(f) { + let A = new u(); + this.init(A, f[2]), A.source.end = this.getPosition(f[3] || f[2]), A.source.end.offset++; + let d = f[1].slice(2, -2); if (!d.trim()) - f.text = "", f.raws.left = d, f.raws.right = ""; + A.text = "", A.raws.left = d, A.raws.right = ""; else { - let A = d.match(/^(\s*)([^]*\S)(\s*)$/); - f.text = A[2], f.raws.left = A[1], f.raws.right = A[3]; + let h = d.match(/^(\s*)([^]*\S)(\s*)$/); + A.text = h[2], A.raws.left = h[1], A.raws.right = h[3]; } } createTokenizer() { - this.tokenizer = i(this.input); + this.tokenizer = r(this.input); } - decl(n, f) { + decl(f, A) { let d = new t(); - this.init(d, n[0][2]); - let A = n[n.length - 1]; - for (A[0] === ";" && (this.semicolon = !0, n.pop()), d.source.end = this.getPosition( - A[3] || A[2] || a(n) - ), d.source.end.offset++; n[0][0] !== "word"; ) - n.length === 1 && this.unknownWord(n), d.raws.before += n.shift()[1]; - for (d.source.start = this.getPosition(n[0][2]), d.prop = ""; n.length; ) { - let m = n[0][0]; - if (m === ":" || m === "space" || m === "comment") + this.init(d, f[0][2]); + let h = f[f.length - 1]; + h[0] === ";" && (this.semicolon = !0, f.pop()), d.source.end = this.getPosition( + h[3] || h[2] || i(f) + ), d.source.end.offset++; + let y = 0; + for (; f[y][0] !== "word"; ) + y === f.length - 1 && this.unknownWord([f[y]]), y++; + d.raws.before += c(f, 0, y), d.source.start = this.getPosition(f[y][2]); + let C = y; + for (; y < f.length; ) { + let g = f[y][0]; + if (g === ":" || g === "space" || g === "comment") break; - d.prop += n.shift()[1]; - } - d.raws.between = ""; - let h; - for (; n.length; ) - if (h = n.shift(), h[0] === ":") { - d.raws.between += h[1]; - break; - } else - h[0] === "word" && /\w/.test(h[1]) && this.unknownWord([h]), d.raws.between += h[1]; - (d.prop[0] === "_" || d.prop[0] === "*") && (d.raws.before += d.prop[0], d.prop = d.prop.slice(1)); - let w = [], C; - for (; n.length && (C = n[0][0], !(C !== "space" && C !== "comment")); ) - w.push(n.shift()); - this.precheckMissedSemicolon(n); - for (let m = n.length - 1; m >= 0; m--) { - if (h = n[m], h[1].toLowerCase() === "!important") { + y++; + } + d.prop = c(f, C, y); + let w = y, b; + for (; y < f.length && (b = f[y], y++, b[0] !== ":"); ) + b[0] === "word" && /\w/.test(b[1]) && this.unknownWord([b]); + d.raws.between = c(f, w, y), (d.prop[0] === "_" || d.prop[0] === "*") && (d.raws.before += d.prop[0], d.prop = d.prop.slice(1)); + let x = y; + for (; y < f.length; ) { + let g = f[y][0]; + if (g !== "space" && g !== "comment") break; + y++; + } + let m = f.slice(x, y); + f = f.slice(y), this.precheckMissedSemicolon(f); + for (let g = f.length - 1; g >= 0; g--) { + if (b = f[g], b[1].toLowerCase() === "!important") { d.important = !0; - let g = this.stringFrom(n, m); - g = this.spacesFromEnd(n) + g, g !== " !important" && (d.raws.important = g); + let D = this.stringFrom(f, g); + D = this.spacesFromEnd(f) + D, D !== " !important" && (d.raws.important = D); break; - } else if (h[1].toLowerCase() === "important") { - let g = n.slice(0), x = ""; - for (let p = m; p > 0; p--) { - let y = g[p][0]; - if (x.trim().startsWith("!") && y !== "space") + } else if (b[1].toLowerCase() === "important") { + let D = f.slice(0), B = ""; + for (let E = g; E > 0; E--) { + let _ = D[E][0]; + if (B.trim().startsWith("!") && _ !== "space") break; - x = g.pop()[1] + x; + B = D.pop()[1] + B; } - x.trim().startsWith("!") && (d.important = !0, d.raws.important = x, n = g); + B.trim().startsWith("!") && (d.important = !0, d.raws.important = B, f = D); } - if (h[0] !== "space" && h[0] !== "comment") + if (b[0] !== "space" && b[0] !== "comment") break; } - n.some((m) => m[0] !== "space" && m[0] !== "comment") && (d.raws.between += w.map((m) => m[1]).join(""), w = []), this.raw(d, "value", w.concat(n), f), d.value.includes(":") && !f && this.checkMissedSemicolon(n); + f.some((g) => g[0] !== "space" && g[0] !== "comment") && (d.raws.between += m.map((g) => g[1]).join(""), m = []), this.raw(d, "value", m.concat(f), A), d.value.includes(":") && !A && this.checkMissedSemicolon(f); } - doubleColon(n) { + doubleColon(f) { throw this.input.error( "Double colon", - { offset: n[2] }, - { offset: n[2] + n[1].length } + { offset: f[2] }, + { offset: f[2] + f[1].length } ); } - emptyRule(n) { - let f = new s(); - this.init(f, n[2]), f.selector = "", f.raws.between = "", this.current = f; + emptyRule(f) { + let A = new a(); + this.init(A, f[2]), A.selector = "", A.raws.between = "", this.current = A; } - end(n) { - this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = !1, this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.spaces = "", this.current.parent ? (this.current.source.end = this.getPosition(n[2]), this.current.source.end.offset++, this.current = this.current.parent) : this.unexpectedClose(n); + end(f) { + this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = !1, this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.spaces = "", this.current.parent ? (this.current.source.end = this.getPosition(f[2]), this.current.source.end.offset++, this.current = this.current.parent) : this.unexpectedClose(f); } endFile() { this.current.parent && this.unclosedBlock(), this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.root.source.end = this.getPosition(this.tokenizer.position()); } - freeSemicolon(n) { - if (this.spaces += n[1], this.current.nodes) { - let f = this.current.nodes[this.current.nodes.length - 1]; - f && f.type === "rule" && !f.raws.ownSemicolon && (f.raws.ownSemicolon = this.spaces, this.spaces = "", f.source.end = this.getPosition(n[2]), f.source.end.offset += f.raws.ownSemicolon.length); + freeSemicolon(f) { + if (this.spaces += f[1], this.current.nodes) { + let A = this.current.nodes[this.current.nodes.length - 1]; + A && A.type === "rule" && !A.raws.ownSemicolon && (A.raws.ownSemicolon = this.spaces, this.spaces = "", A.source.end = this.getPosition(f[2]), A.source.end.offset += A.raws.ownSemicolon.length); } } // Helpers - getPosition(n) { - let f = this.input.fromOffset(n); + getPosition(f) { + let A = this.input.fromOffset(f); return { - column: f.col, - line: f.line, - offset: n + column: A.col, + line: A.line, + offset: f }; } - init(n, f) { - this.current.push(n), n.source = { + init(f, A) { + this.current.push(f), f.source = { input: this.input, - start: this.getPosition(f) - }, n.raws.before = this.spaces, this.spaces = "", n.type !== "comment" && (this.semicolon = !1); - } - other(n) { - let f = !1, d = null, A = !1, h = null, w = [], C = n[1].startsWith("--"), b = [], m = n; - for (; m; ) { - if (d = m[0], b.push(m), d === "(" || d === "[") - h || (h = m), w.push(d === "(" ? ")" : "]"); - else if (C && A && d === "{") - h || (h = m), w.push("}"); - else if (w.length === 0) + start: this.getPosition(A) + }, f.raws.before = this.spaces, this.spaces = "", f.type !== "comment" && (this.semicolon = !1); + } + other(f) { + let A = !1, d = null, h = !1, y = null, C = [], w = f[1].startsWith("--"), b = [], x = f; + for (; x; ) { + if (d = x[0], b.push(x), d === "(" || d === "[") + y || (y = x), C.push(d === "(" ? ")" : "]"); + else if (w && h && d === "{") + y || (y = x), C.push("}"); + else if (C.length === 0) if (d === ";") - if (A) { - this.decl(b, C); + if (h) { + this.decl(b, w); return; } else break; @@ -8004,155 +8122,155 @@ function Xs() { this.rule(b); return; } else if (d === "}") { - this.tokenizer.back(b.pop()), f = !0; + this.tokenizer.back(b.pop()), A = !0; break; - } else d === ":" && (A = !0); - else d === w[w.length - 1] && (w.pop(), w.length === 0 && (h = null)); - m = this.tokenizer.nextToken(); + } else d === ":" && (h = !0); + else d === C[C.length - 1] && (C.pop(), C.length === 0 && (y = null)); + x = this.tokenizer.nextToken(); } - if (this.tokenizer.endOfFile() && (f = !0), w.length > 0 && this.unclosedBracket(h), f && A) { - if (!C) - for (; b.length && (m = b[b.length - 1][0], !(m !== "space" && m !== "comment")); ) + if (this.tokenizer.endOfFile() && (A = !0), C.length > 0 && this.unclosedBracket(y), A && h) { + if (!w) + for (; b.length && (x = b[b.length - 1][0], !(x !== "space" && x !== "comment")); ) this.tokenizer.back(b.pop()); - this.decl(b, C); + this.decl(b, w); } else this.unknownWord(b); } parse() { - let n; + let f; for (; !this.tokenizer.endOfFile(); ) - switch (n = this.tokenizer.nextToken(), n[0]) { + switch (f = this.tokenizer.nextToken(), f[0]) { case "space": - this.spaces += n[1]; + this.spaces += f[1]; break; case ";": - this.freeSemicolon(n); + this.freeSemicolon(f); break; case "}": - this.end(n); + this.end(f); break; case "comment": - this.comment(n); + this.comment(f); break; case "at-word": - this.atrule(n); + this.atrule(f); break; case "{": - this.emptyRule(n); + this.emptyRule(f); break; default: - this.other(n); + this.other(f); break; } this.endFile(); } precheckMissedSemicolon() { } - raw(n, f, d, A) { - let h, w, C = d.length, b = "", m = !0, g, x; - for (let p = 0; p < C; p += 1) - h = d[p], w = h[0], w === "space" && p === C - 1 && !A ? m = !1 : w === "comment" ? (x = d[p - 1] ? d[p - 1][0] : "empty", g = d[p + 1] ? d[p + 1][0] : "empty", !l[x] && !l[g] ? b.slice(-1) === "," ? m = !1 : b += h[1] : m = !1) : b += h[1]; - if (!m) { - let p = d.reduce((y, v) => y + v[1], ""); - n.raws[f] = { raw: p, value: b }; - } - n[f] = b; - } - rule(n) { - n.pop(); - let f = new s(); - this.init(f, n[0][2]), f.raws.between = this.spacesAndCommentsFromEnd(n), this.raw(f, "selector", n), this.current = f; - } - spacesAndCommentsFromEnd(n) { - let f, d = ""; - for (; n.length && (f = n[n.length - 1][0], !(f !== "space" && f !== "comment")); ) - d = n.pop()[1] + d; + raw(f, A, d, h) { + let y, C, w = d.length, b = "", x = !0, m, p; + for (let g = 0; g < w; g += 1) + y = d[g], C = y[0], C === "space" && g === w - 1 && !h ? x = !1 : C === "comment" ? (p = d[g - 1] ? d[g - 1][0] : "empty", m = d[g + 1] ? d[g + 1][0] : "empty", !o[p] && !o[m] ? b.slice(-1) === "," ? x = !1 : b += y[1] : x = !1) : b += y[1]; + if (!x) { + let g = d.reduce((D, B) => D + B[1], ""); + f.raws[A] = { raw: g, value: b }; + } + f[A] = b; + } + rule(f) { + f.pop(); + let A = new a(); + this.init(A, f[0][2]), A.raws.between = this.spacesAndCommentsFromEnd(f), this.raw(A, "selector", f), this.current = A; + } + spacesAndCommentsFromEnd(f) { + let A, d = ""; + for (; f.length && (A = f[f.length - 1][0], !(A !== "space" && A !== "comment")); ) + d = f.pop()[1] + d; return d; } // Errors - spacesAndCommentsFromStart(n) { - let f, d = ""; - for (; n.length && (f = n[0][0], !(f !== "space" && f !== "comment")); ) - d += n.shift()[1]; + spacesAndCommentsFromStart(f) { + let A, d = ""; + for (; f.length && (A = f[0][0], !(A !== "space" && A !== "comment")); ) + d += f.shift()[1]; return d; } - spacesFromEnd(n) { - let f, d = ""; - for (; n.length && (f = n[n.length - 1][0], f === "space"); ) - d = n.pop()[1] + d; + spacesFromEnd(f) { + let A, d = ""; + for (; f.length && (A = f[f.length - 1][0], A === "space"); ) + d = f.pop()[1] + d; return d; } - stringFrom(n, f) { + stringFrom(f, A) { let d = ""; - for (let A = f; A < n.length; A++) - d += n[A][1]; - return n.splice(f, n.length - f), d; + for (let h = A; h < f.length; h++) + d += f[h][1]; + return f.splice(A, f.length - A), d; } unclosedBlock() { - let n = this.current.source.start; - throw this.input.error("Unclosed block", n.line, n.column); + let f = this.current.source.start; + throw this.input.error("Unclosed block", f.line, f.column); } - unclosedBracket(n) { + unclosedBracket(f) { throw this.input.error( "Unclosed bracket", - { offset: n[2] }, - { offset: n[2] + 1 } + { offset: f[2] }, + { offset: f[2] + 1 } ); } - unexpectedClose(n) { + unexpectedClose(f) { throw this.input.error( "Unexpected }", - { offset: n[2] }, - { offset: n[2] + 1 } + { offset: f[2] }, + { offset: f[2] + 1 } ); } - unknownWord(n) { + unknownWord(f) { throw this.input.error( - "Unknown word " + n[0][1], - { offset: n[0][2] }, - { offset: n[0][2] + n[0][1].length } + "Unknown word " + f[0][1], + { offset: f[0][2] }, + { offset: f[0][2] + f[0][1].length } ); } - unnamedAtrule(n, f) { + unnamedAtrule(f, A) { throw this.input.error( "At-rule without name", - { offset: f[2] }, - { offset: f[2] + f[1].length } + { offset: A[2] }, + { offset: A[2] + A[1].length } ); } } - return ot = o, ot; + return At = n, At; } -var lt, br; -function Mt() { - if (br) return lt; - br = 1; - let e = Te(), u = Eu(), t = Xs(); - function c(s, i) { - let l = new u(s, i), a = new t(l); +var ht, m0; +function Gt() { + if (m0) return ht; + m0 = 1; + let e = Pe(), u = Bu(), t = nc(); + function s(a, r) { + let o = new u(a, r), i = new t(o); try { - a.parse(); - } catch (o) { - throw process.env.NODE_ENV !== "production" && o.name === "CssSyntaxError" && i && i.from && (/\.scss$/i.test(i.from) ? o.message += ` -You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser` : /\.sass/i.test(i.from) ? o.message += ` -You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser` : /\.less$/i.test(i.from) && (o.message += ` -You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)), o; + i.parse(); + } catch (c) { + throw process.env.NODE_ENV !== "production" && c.name === "CssSyntaxError" && r && r.from && (/\.scss$/i.test(r.from) ? c.message += ` +You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser` : /\.sass/i.test(r.from) ? c.message += ` +You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser` : /\.less$/i.test(r.from) && (c.message += ` +You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)), c; } - return a.root; + return i.root; } - return lt = c, c.default = c, e.registerParse(c), lt; + return ht = s, s.default = s, e.registerParse(s), ht; } -var ft, pr; -function li() { - if (pr) return ft; - pr = 1; +var bt, x0; +function pn() { + if (x0) return bt; + x0 = 1; class e { - constructor(t, c = {}) { - if (this.type = "warning", this.text = t, c.node && c.node.source) { - let s = c.node.rangeBy(c); - this.line = s.start.line, this.column = s.start.column, this.endLine = s.end.line, this.endColumn = s.end.column; + constructor(t, s = {}) { + if (this.type = "warning", this.text = t, s.node && s.node.source) { + let a = s.node.rangeBy(s); + this.line = a.start.line, this.column = a.start.column, this.endLine = a.end.line, this.endColumn = a.end.column; } - for (let s in c) this[s] = c[s]; + for (let a in s) this[a] = s[a]; } toString() { return this.node ? this.node.error(this.text, { @@ -8162,49 +8280,49 @@ function li() { }).message : this.plugin ? this.plugin + ": " + this.text : this.text; } } - return ft = e, e.default = e, ft; + return bt = e, e.default = e, bt; } -var dt, gr; -function Qt() { - if (gr) return dt; - gr = 1; - let e = li(); +var pt, y0; +function Ht() { + if (y0) return pt; + y0 = 1; + let e = pn(); class u { get content() { return this.css; } - constructor(c, s, i) { - this.processor = c, this.messages = [], this.root = s, this.opts = i, this.css = "", this.map = void 0; + constructor(s, a, r) { + this.processor = s, this.messages = [], this.root = a, this.opts = r, this.css = "", this.map = void 0; } toString() { return this.css; } - warn(c, s = {}) { - s.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (s.plugin = this.lastPlugin.postcssPlugin); - let i = new e(c, s); - return this.messages.push(i), i; + warn(s, a = {}) { + a.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a.plugin = this.lastPlugin.postcssPlugin); + let r = new e(s, a); + return this.messages.push(r), r; } warnings() { - return this.messages.filter((c) => c.type === "warning"); + return this.messages.filter((s) => s.type === "warning"); } } - return dt = u, u.default = u, dt; + return pt = u, u.default = u, pt; } -var At, mr; -function fi() { - if (mr) return At; - mr = 1; +var gt, w0; +function gn() { + if (w0) return gt; + w0 = 1; let e = {}; - return At = function(t) { + return gt = function(t) { e[t] || (e[t] = !0, typeof console < "u" && console.warn && console.warn(t)); - }, At; + }, gt; } -var ht, xr; -function di() { - if (xr) return ht; - xr = 1; - let e = Te(), u = Nt(), t = oi(), c = Mt(), s = Qt(), i = $e(), l = yu(), { isClean: a, my: o } = Rt(), r = fi(); - const n = { +var mt, C0; +function mn() { + if (C0) return mt; + C0 = 1; + let e = Pe(), u = Lt(), t = bn(), s = Gt(), a = Ht(), r = ru(), o = Eu(), { isClean: i, my: c } = Ot(), n = gn(); + const l = { atrule: "AtRule", comment: "Comment", decl: "Declaration", @@ -8228,40 +8346,40 @@ function di() { RootExit: !0, Rule: !0, RuleExit: !0 - }, d = { + }, A = { Once: !0, postcssPlugin: !0, prepare: !0 - }, A = 0; - function h(x) { - return typeof x == "object" && typeof x.then == "function"; - } - function w(x) { - let p = !1, y = n[x.type]; - return x.type === "decl" ? p = x.prop.toLowerCase() : x.type === "atrule" && (p = x.name.toLowerCase()), p && x.append ? [ - y, - y + "-" + p, - A, - y + "Exit", - y + "Exit-" + p - ] : p ? [y, y + "-" + p, y + "Exit", y + "Exit-" + p] : x.append ? [y, A, y + "Exit"] : [y, y + "Exit"]; - } - function C(x) { + }, d = 0; + function h(m) { + return typeof m == "object" && typeof m.then == "function"; + } + function y(m) { + let p = !1, g = l[m.type]; + return m.type === "decl" ? p = m.prop.toLowerCase() : m.type === "atrule" && (p = m.name.toLowerCase()), p && m.append ? [ + g, + g + "-" + p, + d, + g + "Exit", + g + "Exit-" + p + ] : p ? [g, g + "-" + p, g + "Exit", g + "Exit-" + p] : m.append ? [g, d, g + "Exit"] : [g, g + "Exit"]; + } + function C(m) { let p; - return x.type === "document" ? p = ["Document", A, "DocumentExit"] : x.type === "root" ? p = ["Root", A, "RootExit"] : p = w(x), { + return m.type === "document" ? p = ["Document", d, "DocumentExit"] : m.type === "root" ? p = ["Root", d, "RootExit"] : p = y(m), { eventIndex: 0, events: p, iterator: 0, - node: x, + node: m, visitorIndex: 0, visitors: [] }; } - function b(x) { - return x[a] = !1, x.nodes && x.nodes.forEach((p) => b(p)), x; + function w(m) { + return m[i] = !1, m.nodes && m.nodes.forEach((p) => w(p)), m; } - let m = {}; - class g { + let b = {}; + class x { get content() { return this.stringify().content; } @@ -8286,24 +8404,24 @@ function di() { get [Symbol.toStringTag]() { return "LazyResult"; } - constructor(p, y, v) { + constructor(p, g, D) { this.stringified = !1, this.processed = !1; - let I; - if (typeof y == "object" && y !== null && (y.type === "root" || y.type === "document")) - I = b(y); - else if (y instanceof g || y instanceof s) - I = b(y.root), y.map && (typeof v.map > "u" && (v.map = {}), v.map.inline || (v.map.inline = !1), v.map.prev = y.map); + let B; + if (typeof g == "object" && g !== null && (g.type === "root" || g.type === "document")) + B = w(g); + else if (g instanceof x || g instanceof a) + B = w(g.root), g.map && (typeof D.map > "u" && (D.map = {}), D.map.inline || (D.map.inline = !1), D.map.prev = g.map); else { - let D = c; - v.syntax && (D = v.syntax.parse), v.parser && (D = v.parser), D.parse && (D = D.parse); + let E = s; + D.syntax && (E = D.syntax.parse), D.parser && (E = D.parser), E.parse && (E = E.parse); try { - I = D(y, v); + B = E(g, D); } catch (_) { this.processed = !0, this.error = _; } - I && !I[o] && e.rebuild(I); + B && !B[c] && e.rebuild(B); } - this.result = new s(p, I, v), this.helpers = { ...m, postcss: m, result: this.result }, this.plugins = this.processor.plugins.map((D) => typeof D == "object" && D.prepare ? { ...D, ...D.prepare(this.result) } : D); + this.result = new a(p, B, D), this.helpers = { ...b, postcss: b, result: this.result }, this.plugins = this.processor.plugins.map((E) => typeof E == "object" && E.prepare ? { ...E, ...E.prepare(this.result) } : E); } async() { return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing); @@ -8317,86 +8435,86 @@ function di() { getAsyncError() { throw new Error("Use process(css).then(cb) to work with async plugins"); } - handleError(p, y) { - let v = this.result.lastPlugin; + handleError(p, g) { + let D = this.result.lastPlugin; try { - if (y && y.addToError(p), this.error = p, p.name === "CssSyntaxError" && !p.plugin) - p.plugin = v.postcssPlugin, p.setMessage(); - else if (v.postcssVersion && process.env.NODE_ENV !== "production") { - let I = v.postcssPlugin, D = v.postcssVersion, _ = this.result.processor.version, E = D.split("."), k = _.split("."); - (E[0] !== k[0] || parseInt(E[1]) > parseInt(k[1])) && console.error( - "Unknown error from PostCSS plugin. Your current PostCSS version is " + _ + ", but " + I + " uses " + D + ". Perhaps this is the source of the error below." + if (g && g.addToError(p), this.error = p, p.name === "CssSyntaxError" && !p.plugin) + p.plugin = D.postcssPlugin, p.setMessage(); + else if (D.postcssVersion && process.env.NODE_ENV !== "production") { + let B = D.postcssPlugin, E = D.postcssVersion, _ = this.result.processor.version, v = E.split("."), k = _.split("."); + (v[0] !== k[0] || parseInt(v[1]) > parseInt(k[1])) && console.error( + "Unknown error from PostCSS plugin. Your current PostCSS version is " + _ + ", but " + B + " uses " + E + ". Perhaps this is the source of the error below." ); } - } catch (I) { - console && console.error && console.error(I); + } catch (B) { + console && console.error && console.error(B); } return p; } prepareVisitors() { this.listeners = {}; - let p = (y, v, I) => { - this.listeners[v] || (this.listeners[v] = []), this.listeners[v].push([y, I]); + let p = (g, D, B) => { + this.listeners[D] || (this.listeners[D] = []), this.listeners[D].push([g, B]); }; - for (let y of this.plugins) - if (typeof y == "object") - for (let v in y) { - if (!f[v] && /^[A-Z]/.test(v)) + for (let g of this.plugins) + if (typeof g == "object") + for (let D in g) { + if (!f[D] && /^[A-Z]/.test(D)) throw new Error( - `Unknown event ${v} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).` + `Unknown event ${D} in ${g.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).` ); - if (!d[v]) - if (typeof y[v] == "object") - for (let I in y[v]) - I === "*" ? p(y, v, y[v][I]) : p( - y, - v + "-" + I.toLowerCase(), - y[v][I] + if (!A[D]) + if (typeof g[D] == "object") + for (let B in g[D]) + B === "*" ? p(g, D, g[D][B]) : p( + g, + D + "-" + B.toLowerCase(), + g[D][B] ); - else typeof y[v] == "function" && p(y, v, y[v]); + else typeof g[D] == "function" && p(g, D, g[D]); } this.hasListener = Object.keys(this.listeners).length > 0; } async runAsync() { this.plugin = 0; for (let p = 0; p < this.plugins.length; p++) { - let y = this.plugins[p], v = this.runOnRoot(y); - if (h(v)) + let g = this.plugins[p], D = this.runOnRoot(g); + if (h(D)) try { - await v; - } catch (I) { - throw this.handleError(I); + await D; + } catch (B) { + throw this.handleError(B); } } if (this.prepareVisitors(), this.hasListener) { let p = this.result.root; - for (; !p[a]; ) { - p[a] = !0; - let y = [C(p)]; - for (; y.length > 0; ) { - let v = this.visitTick(y); - if (h(v)) + for (; !p[i]; ) { + p[i] = !0; + let g = [C(p)]; + for (; g.length > 0; ) { + let D = this.visitTick(g); + if (h(D)) try { - await v; - } catch (I) { - let D = y[y.length - 1].node; - throw this.handleError(I, D); + await D; + } catch (B) { + let E = g[g.length - 1].node; + throw this.handleError(B, E); } } } if (this.listeners.OnceExit) - for (let [y, v] of this.listeners.OnceExit) { - this.result.lastPlugin = y; + for (let [g, D] of this.listeners.OnceExit) { + this.result.lastPlugin = g; try { if (p.type === "document") { - let I = p.nodes.map( - (D) => v(D, this.helpers) + let B = p.nodes.map( + (E) => D(E, this.helpers) ); - await Promise.all(I); + await Promise.all(B); } else - await v(p, this.helpers); - } catch (I) { - throw this.handleError(I); + await D(p, this.helpers); + } catch (B) { + throw this.handleError(B); } } } @@ -8407,33 +8525,33 @@ function di() { try { if (typeof p == "object" && p.Once) { if (this.result.root.type === "document") { - let y = this.result.root.nodes.map( - (v) => p.Once(v, this.helpers) + let g = this.result.root.nodes.map( + (D) => p.Once(D, this.helpers) ); - return h(y[0]) ? Promise.all(y) : y; + return h(g[0]) ? Promise.all(g) : g; } return p.Once(this.result.root, this.helpers); } else if (typeof p == "function") return p(this.result.root, this.result); - } catch (y) { - throw this.handleError(y); + } catch (g) { + throw this.handleError(g); } } stringify() { if (this.error) throw this.error; if (this.stringified) return this.result; this.stringified = !0, this.sync(); - let p = this.result.opts, y = l; - p.syntax && (y = p.syntax.stringify), p.stringifier && (y = p.stringifier), y.stringify && (y = y.stringify); - let v = this.result.root.source; - if (p.map === void 0 && !(v && v.input && v.input.map)) { + let p = this.result.opts, g = o; + p.syntax && (g = p.syntax.stringify), p.stringifier && (g = p.stringifier), g.stringify && (g = g.stringify); + let D = this.result.root.source; + if (p.map === void 0 && !(D && D.input && D.input.map)) { let _ = ""; - return y(this.result.root, (E) => { - _ += E; + return g(this.result.root, (v) => { + _ += v; }), this.result.css = _, this.result; } - let D = new t(y, this.result.root, this.result.opts).generate(); - return this.result.css = D[0], this.result.map = D[1], this.result; + let E = new t(g, this.result.root, this.result.opts).generate(); + return this.result.css = E[0], this.result.map = E[1], this.result; } sync() { if (this.error) throw this.error; @@ -8441,94 +8559,94 @@ function di() { if (this.processed = !0, this.processing) throw this.getAsyncError(); for (let p of this.plugins) { - let y = this.runOnRoot(p); - if (h(y)) + let g = this.runOnRoot(p); + if (h(g)) throw this.getAsyncError(); } if (this.prepareVisitors(), this.hasListener) { let p = this.result.root; - for (; !p[a]; ) - p[a] = !0, this.walkSync(p); + for (; !p[i]; ) + p[i] = !0, this.walkSync(p); if (this.listeners.OnceExit) if (p.type === "document") - for (let y of p.nodes) - this.visitSync(this.listeners.OnceExit, y); + for (let g of p.nodes) + this.visitSync(this.listeners.OnceExit, g); else this.visitSync(this.listeners.OnceExit, p); } return this.result; } - then(p, y) { - return process.env.NODE_ENV !== "production" && ("from" in this.opts || r( + then(p, g) { + return process.env.NODE_ENV !== "production" && ("from" in this.opts || n( "Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning." - )), this.async().then(p, y); + )), this.async().then(p, g); } toString() { return this.css; } - visitSync(p, y) { - for (let [v, I] of p) { - this.result.lastPlugin = v; - let D; + visitSync(p, g) { + for (let [D, B] of p) { + this.result.lastPlugin = D; + let E; try { - D = I(y, this.helpers); + E = B(g, this.helpers); } catch (_) { - throw this.handleError(_, y.proxyOf); + throw this.handleError(_, g.proxyOf); } - if (y.type !== "root" && y.type !== "document" && !y.parent) + if (g.type !== "root" && g.type !== "document" && !g.parent) return !0; - if (h(D)) + if (h(E)) throw this.getAsyncError(); } } visitTick(p) { - let y = p[p.length - 1], { node: v, visitors: I } = y; - if (v.type !== "root" && v.type !== "document" && !v.parent) { + let g = p[p.length - 1], { node: D, visitors: B } = g; + if (D.type !== "root" && D.type !== "document" && !D.parent) { p.pop(); return; } - if (I.length > 0 && y.visitorIndex < I.length) { - let [_, E] = I[y.visitorIndex]; - y.visitorIndex += 1, y.visitorIndex === I.length && (y.visitors = [], y.visitorIndex = 0), this.result.lastPlugin = _; + if (B.length > 0 && g.visitorIndex < B.length) { + let [_, v] = B[g.visitorIndex]; + g.visitorIndex += 1, g.visitorIndex === B.length && (g.visitors = [], g.visitorIndex = 0), this.result.lastPlugin = _; try { - return E(v.toProxy(), this.helpers); + return v(D.toProxy(), this.helpers); } catch (k) { - throw this.handleError(k, v); + throw this.handleError(k, D); } } - if (y.iterator !== 0) { - let _ = y.iterator, E; - for (; E = v.nodes[v.indexes[_]]; ) - if (v.indexes[_] += 1, !E[a]) { - E[a] = !0, p.push(C(E)); + if (g.iterator !== 0) { + let _ = g.iterator, v; + for (; v = D.nodes[D.indexes[_]]; ) + if (D.indexes[_] += 1, !v[i]) { + v[i] = !0, p.push(C(v)); return; } - y.iterator = 0, delete v.indexes[_]; + g.iterator = 0, delete D.indexes[_]; } - let D = y.events; - for (; y.eventIndex < D.length; ) { - let _ = D[y.eventIndex]; - if (y.eventIndex += 1, _ === A) { - v.nodes && v.nodes.length && (v[a] = !0, y.iterator = v.getIterator()); + let E = g.events; + for (; g.eventIndex < E.length; ) { + let _ = E[g.eventIndex]; + if (g.eventIndex += 1, _ === d) { + D.nodes && D.nodes.length && (D[i] = !0, g.iterator = D.getIterator()); return; } else if (this.listeners[_]) { - y.visitors = this.listeners[_]; + g.visitors = this.listeners[_]; return; } } p.pop(); } walkSync(p) { - p[a] = !0; - let y = w(p); - for (let v of y) - if (v === A) - p.nodes && p.each((I) => { - I[a] || this.walkSync(I); + p[i] = !0; + let g = y(p); + for (let D of g) + if (D === d) + p.nodes && p.each((B) => { + B[i] || this.walkSync(B); }); else { - let I = this.listeners[v]; - if (I && this.visitSync(I, p.toProxy())) + let B = this.listeners[D]; + if (B && this.visitSync(B, p.toProxy())) return; } } @@ -8536,16 +8654,16 @@ function di() { return this.sync().warnings(); } } - return g.registerPostcss = (x) => { - m = x; - }, ht = g, g.default = g, i.registerLazyResult(g), u.registerLazyResult(g), ht; + return x.registerPostcss = (m) => { + b = m; + }, mt = x, x.default = x, r.registerLazyResult(x), u.registerLazyResult(x), mt; } -var bt, yr; -function $s() { - if (yr) return bt; - yr = 1; - let e = oi(), u = Mt(), t = Qt(), c = yu(), s = fi(); - class i { +var xt, v0; +function ic() { + if (v0) return xt; + v0 = 1; + let e = bn(), u = Gt(), t = Ht(), s = Eu(), a = gn(); + class r { get content() { return this.result.css; } @@ -8567,53 +8685,53 @@ function $s() { get root() { if (this._root) return this._root; - let a, o = u; + let i, c = u; try { - a = o(this._css, this._opts); - } catch (r) { - this.error = r; + i = c(this._css, this._opts); + } catch (n) { + this.error = n; } if (this.error) throw this.error; - return this._root = a, a; + return this._root = i, i; } get [Symbol.toStringTag]() { return "NoWorkResult"; } - constructor(a, o, r) { - o = o.toString(), this.stringified = !1, this._processor = a, this._css = o, this._opts = r, this._map = void 0; - let n = c; - this.result = new t(this._processor, void 0, this._opts), this.result.css = o; + constructor(i, c, n) { + c = c.toString(), this.stringified = !1, this._processor = i, this._css = c, this._opts = n, this._map = void 0; + let l = s; + this.result = new t(this._processor, void 0, this._opts), this.result.css = c; let f = this; Object.defineProperty(this.result, "root", { get() { return f.root; } }); - let d = new e(n, void 0, this._opts, o); - if (d.isMap()) { - let [A, h] = d.generate(); - A && (this.result.css = A), h && (this.result.map = h); + let A = new e(l, void 0, this._opts, c); + if (A.isMap()) { + let [d, h] = A.generate(); + d && (this.result.css = d), h && (this.result.map = h); } else - d.clearAnnotation(), this.result.css = d.css; + A.clearAnnotation(), this.result.css = A.css; } async() { return this.error ? Promise.reject(this.error) : Promise.resolve(this.result); } - catch(a) { - return this.async().catch(a); + catch(i) { + return this.async().catch(i); } - finally(a) { - return this.async().then(a, a); + finally(i) { + return this.async().then(i, i); } sync() { if (this.error) throw this.error; return this.result; } - then(a, o) { - return process.env.NODE_ENV !== "production" && ("from" in this._opts || s( + then(i, c) { + return process.env.NODE_ENV !== "production" && ("from" in this._opts || a( "Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning." - )), this.async().then(a, o); + )), this.async().then(i, c); } toString() { return this._css; @@ -8622,80 +8740,498 @@ function $s() { return []; } } - return bt = i, i.default = i, bt; -} -var pt, wr; -function ec() { - if (wr) return pt; - wr = 1; - let e = Nt(), u = di(), t = $s(), c = $e(); - class s { - constructor(l = []) { - this.version = "8.5.12", this.plugins = this.normalize(l); - } - normalize(l) { - let a = []; - for (let o of l) - if (o.postcss === !0 ? o = o() : o.postcss && (o = o.postcss), typeof o == "object" && Array.isArray(o.plugins)) - a = a.concat(o.plugins); - else if (typeof o == "object" && o.postcssPlugin) - a.push(o); - else if (typeof o == "function") - a.push(o); - else if (typeof o == "object" && (o.parse || o.stringify)) { + return xt = r, r.default = r, xt; +} +var yt, D0; +function ac() { + if (D0) return yt; + D0 = 1; + let e = Lt(), u = mn(), t = ic(), s = ru(); + class a { + constructor(o = []) { + this.version = "8.5.15", this.plugins = this.normalize(o); + } + normalize(o) { + let i = []; + for (let c of o) + if (c.postcss === !0 ? c = c() : c.postcss && (c = c.postcss), typeof c == "object" && Array.isArray(c.plugins)) + i = i.concat(c.plugins); + else if (typeof c == "object" && c.postcssPlugin) + i.push(c); + else if (typeof c == "function") + i.push(c); + else if (typeof c == "object" && (c.parse || c.stringify)) { if (process.env.NODE_ENV !== "production") throw new Error( "PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation." ); } else - throw new Error(o + " is not a PostCSS plugin"); - return a; + throw new Error(c + " is not a PostCSS plugin"); + return i; } - process(l, a = {}) { - return !this.plugins.length && !a.parser && !a.stringifier && !a.syntax ? new t(this, l, a) : new u(this, l, a); + process(o, i = {}) { + return !this.plugins.length && !i.parser && !i.stringifier && !i.syntax ? new t(this, o, i) : new u(this, o, i); } - use(l) { - return this.plugins = this.plugins.concat(this.normalize([l])), this; + use(o) { + return this.plugins = this.plugins.concat(this.normalize([o])), this; } } - return pt = s, s.default = s, c.registerProcessor(s), e.registerProcessor(s), pt; + return yt = a, a.default = a, s.registerProcessor(a), e.registerProcessor(a), yt; } -var gt, Cr; -function uc() { - if (Cr) return gt; - Cr = 1; - let e = Tt(), u = Cu(), t = Te(), c = St(), s = vu(), i = Nt(), l = Vs(), a = Eu(), o = di(), r = ci(), n = wu(), f = Mt(), d = ec(), A = Qt(), h = $e(), w = Ot(), C = yu(), b = li(); - function m(...g) { - return g.length === 1 && Array.isArray(g[0]) && (g = g[0]), new d(g); - } - return m.plugin = function(x, p) { - let y = !1; - function v(...D) { - console && console.warn && !y && (y = !0, console.warn( - x + `: postcss.plugin was deprecated. Migration guide: +var wt, E0; +function sc() { + if (E0) return wt; + E0 = 1; + let e = Qt(), u = Iu(), t = Pe(), s = Mt(), a = ku(), r = Lt(), o = tc(), i = Bu(), c = mn(), n = hn(), l = _u(), f = Gt(), A = ac(), d = Ht(), h = ru(), y = Pt(), C = Eu(), w = pn(); + function b(...x) { + return x.length === 1 && Array.isArray(x[0]) && (x = x[0]), new A(x); + } + return b.plugin = function(m, p) { + let g = !1; + function D(...E) { + console && console.warn && !g && (g = !0, console.warn( + m + `: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration` ), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn( - x + `: 里面 postcss.plugin 被弃用. 迁移指南: + m + `: 里面 postcss.plugin 被弃用. 迁移指南: https://www.w3ctech.com/topic/2226` )); - let _ = p(...D); - return _.postcssPlugin = x, _.postcssVersion = new d().version, _; + let _ = p(...E); + return _.postcssPlugin = m, _.postcssVersion = new A().version, _; } - let I; - return Object.defineProperty(v, "postcss", { + let B; + return Object.defineProperty(D, "postcss", { get() { - return I || (I = v()), I; - } - }), v.process = function(D, _, E) { - return m([v(E)]).process(D, _); - }, v; - }, m.stringify = C, m.parse = f, m.fromJSON = l, m.list = r, m.comment = (g) => new u(g), m.atRule = (g) => new e(g), m.decl = (g) => new s(g), m.rule = (g) => new w(g), m.root = (g) => new h(g), m.document = (g) => new i(g), m.CssSyntaxError = c, m.Declaration = s, m.Container = t, m.Processor = d, m.Document = i, m.Comment = u, m.Warning = b, m.AtRule = e, m.Result = A, m.Input = a, m.Rule = w, m.Root = h, m.Node = n, o.registerPostcss(m), gt = m, m.default = m, gt; + return B || (B = D()), B; + } + }), D.process = function(E, _, v) { + return b([D(v)]).process(E, _); + }, D; + }, b.stringify = C, b.parse = f, b.fromJSON = o, b.list = n, b.comment = (x) => new u(x), b.atRule = (x) => new e(x), b.decl = (x) => new a(x), b.rule = (x) => new y(x), b.root = (x) => new h(x), b.document = (x) => new r(x), b.CssSyntaxError = s, b.Declaration = a, b.Container = t, b.Processor = A, b.Document = r, b.Comment = u, b.Warning = w, b.AtRule = e, b.Result = d, b.Input = i, b.Rule = y, b.Root = h, b.Node = l, c.registerPostcss(b), wt = b, b.default = b, wt; +} +var bu = { exports: {} }, gu = { exports: {} }, cc = gu.exports, _0; +function oc() { + return _0 || (_0 = 1, (function(e, u) { + (function(t, s) { + e.exports = s(); + })(cc, (function() { + var t = 1e3, s = 6e4, a = 36e5, r = "millisecond", o = "second", i = "minute", c = "hour", n = "day", l = "week", f = "month", A = "quarter", d = "year", h = "date", y = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|Y{1,4}|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, b = { 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(F) { + var I = ["th", "st", "nd", "rd"], T = F % 100; + return "[" + F + (I[(T - 20) % 10] || I[T] || I[0]) + "]"; + } }, x = function(F, I, T) { + var M = String(F); + return !M || M.length >= I ? F : "" + Array(I + 1 - M.length).join(T) + F; + }, m = { s: x, z: function(F) { + var I = -F.utcOffset(), T = Math.abs(I), M = Math.floor(T / 60), N = T % 60; + return (I <= 0 ? "+" : "-") + x(M, 2, "0") + ":" + x(N, 2, "0"); + }, m: function F(I, T) { + if (I.date() < T.date()) return -F(T, I); + var M = 12 * (T.year() - I.year()) + (T.month() - I.month()), N = I.clone().add(M, f), P = T - N < 0, G = I.clone().add(M + (P ? -1 : 1), f); + return +(-(M + (T - N) / (P ? N - G : G - N)) || 0); + }, a: function(F) { + return F < 0 ? Math.ceil(F) || 0 : Math.floor(F); + }, p: function(F) { + return { M: f, y: d, w: l, d: n, D: h, h: c, m: i, s: o, ms: r, Q: A }[F] || String(F || "").toLowerCase().replace(/s$/, ""); + }, u: function(F) { + return F === void 0; + } }, p = "en", g = {}; + g[p] = b; + var D = "$isDayjsObject", B = function(F) { + return F instanceof k || !(!F || !F[D]); + }, E = function F(I, T, M) { + var N; + if (!I) return p; + if (typeof I == "string") { + var P = I.toLowerCase(); + g[P] && (N = P), T && (g[P] = T, N = P); + var G = I.split("-"); + if (!N && G.length > 1) return F(G[0]); + } else { + var H = I.name; + g[H] = I, N = H; + } + return !M && N && (p = N), N || !M && p; + }, _ = function(F, I) { + if (B(F)) return F.clone(); + var T = typeof I == "object" ? I : {}; + return T.date = F, T.args = arguments, new k(T); + }, v = m; + v.l = E, v.i = B, v.w = function(F, I) { + return _(F, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset }); + }; + var k = (function() { + function F(T) { + this.$L = E(T.locale, null, !0), this.parse(T), this.$x = this.$x || T.x || {}, this[D] = !0; + } + var I = F.prototype; + return I.parse = function(T) { + this.$d = (function(M) { + var N = M.date, P = M.utc; + if (N === null) return /* @__PURE__ */ new Date(NaN); + if (v.u(N)) return /* @__PURE__ */ new Date(); + if (N instanceof Date) return new Date(N); + if (typeof N == "string" && !/Z$/i.test(N)) { + var G = N.match(C); + if (G) { + var H = G[2] - 1 || 0, U = (G[7] || "0").substring(0, 3); + return P ? new Date(Date.UTC(G[1], H, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, U)) : new Date(G[1], H, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, U); + } + } + return new Date(N); + })(T), this.init(); + }, I.init = function() { + var T = this.$d; + this.$y = T.getFullYear(), this.$M = T.getMonth(), this.$D = T.getDate(), this.$W = T.getDay(), this.$H = T.getHours(), this.$m = T.getMinutes(), this.$s = T.getSeconds(), this.$ms = T.getMilliseconds(); + }, I.$utils = function() { + return v; + }, I.isValid = function() { + return this.$d.toString() !== y; + }, I.isSame = function(T, M) { + var N = _(T); + return this.startOf(M) <= N && N <= this.endOf(M); + }, I.isAfter = function(T, M) { + return _(T) < this.startOf(M); + }, I.isBefore = function(T, M) { + return this.endOf(M) < _(T); + }, I.$g = function(T, M, N) { + return v.u(T) ? this[M] : this.set(N, T); + }, I.unix = function() { + return Math.floor(this.valueOf() / 1e3); + }, I.valueOf = function() { + return this.$d.getTime(); + }, I.startOf = function(T, M) { + var N = this, P = !!v.u(M) || M, G = v.p(T), H = function(fe, X) { + var re = v.w(N.$u ? Date.UTC(N.$y, X, fe) : new Date(N.$y, X, fe), N); + return P ? re : re.endOf(n); + }, U = function(fe, X) { + return v.w(N.toDate()[fe].apply(N.toDate("s"), (P ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), N); + }, L = this.$W, z = this.$M, Z = this.$D, ae = "set" + (this.$u ? "UTC" : ""); + switch (G) { + case d: + return P ? H(1, 0) : H(31, 11); + case f: + return P ? H(1, z) : H(0, z + 1); + case l: + var se = this.$locale().weekStart || 0, le = (L < se ? L + 7 : L) - se; + return H(P ? Z - le : Z + (6 - le), z); + case n: + case h: + return U(ae + "Hours", 0); + case c: + return U(ae + "Minutes", 1); + case i: + return U(ae + "Seconds", 2); + case o: + return U(ae + "Milliseconds", 3); + default: + return this.clone(); + } + }, I.endOf = function(T) { + return this.startOf(T, !1); + }, I.$set = function(T, M) { + var N, P = v.p(T), G = "set" + (this.$u ? "UTC" : ""), H = (N = {}, N[n] = G + "Date", N[h] = G + "Date", N[f] = G + "Month", N[d] = G + "FullYear", N[c] = G + "Hours", N[i] = G + "Minutes", N[o] = G + "Seconds", N[r] = G + "Milliseconds", N)[P], U = P === n ? this.$D + (M - this.$W) : M; + if (P === f || P === d) { + var L = this.clone().set(h, 1); + L.$d[H](U), L.init(), this.$d = L.set(h, Math.min(this.$D, L.daysInMonth())).$d; + } else H && this.$d[H](U); + return this.init(), this; + }, I.set = function(T, M) { + return this.clone().$set(T, M); + }, I.get = function(T) { + return this[v.p(T)](); + }, I.add = function(T, M) { + var N, P = this; + T = Number(T); + var G = v.p(M), H = function(z) { + var Z = _(P); + return v.w(Z.date(Z.date() + Math.round(z * T)), P); + }; + if (G === f) return this.set(f, this.$M + T); + if (G === d) return this.set(d, this.$y + T); + if (G === n) return H(1); + if (G === l) return H(7); + var U = (N = {}, N[i] = s, N[c] = a, N[o] = t, N)[G] || 1, L = this.$d.getTime() + T * U; + return v.w(L, this); + }, I.subtract = function(T, M) { + return this.add(-1 * T, M); + }, I.format = function(T) { + var M = this, N = this.$locale(); + if (!this.isValid()) return N.invalidDate || y; + var P = T || "YYYY-MM-DDTHH:mm:ssZ", G = v.z(this), H = this.$H, U = this.$m, L = this.$M, z = N.weekdays, Z = N.months, ae = N.meridiem, se = function(X, re, R, Q) { + return X && (X[re] || X(M, P)) || R[re].slice(0, Q); + }, le = function(X) { + return v.s(H % 12 || 12, X, "0"); + }, fe = ae || function(X, re, R) { + var Q = X < 12 ? "AM" : "PM"; + return R ? Q.toLowerCase() : Q; + }; + return P.replace(w, (function(X, re) { + return re || (function(R) { + switch (R) { + case "YY": + return String(M.$y).slice(-2); + case "YYYY": + return v.s(M.$y, 4, "0"); + case "M": + return L + 1; + case "MM": + return v.s(L + 1, 2, "0"); + case "MMM": + return se(N.monthsShort, L, Z, 3); + case "MMMM": + return se(Z, L); + case "D": + return M.$D; + case "DD": + return v.s(M.$D, 2, "0"); + case "d": + return String(M.$W); + case "dd": + return se(N.weekdaysMin, M.$W, z, 2); + case "ddd": + return se(N.weekdaysShort, M.$W, z, 3); + case "dddd": + return z[M.$W]; + case "H": + return String(H); + case "HH": + return v.s(H, 2, "0"); + case "h": + return le(1); + case "hh": + return le(2); + case "a": + return fe(H, U, !0); + case "A": + return fe(H, U, !1); + case "m": + return String(U); + case "mm": + return v.s(U, 2, "0"); + case "s": + return String(M.$s); + case "ss": + return v.s(M.$s, 2, "0"); + case "SSS": + return v.s(M.$ms, 3, "0"); + case "Z": + return G; + } + return null; + })(X) || G.replace(":", ""); + })); + }, I.utcOffset = function() { + return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); + }, I.diff = function(T, M, N) { + var P, G = this, H = v.p(M), U = _(T), L = (U.utcOffset() - this.utcOffset()) * s, z = this - U, Z = function() { + return v.m(G, U); + }; + switch (H) { + case d: + P = Z() / 12; + break; + case f: + P = Z(); + break; + case A: + P = Z() / 3; + break; + case l: + P = (z - L) / 6048e5; + break; + case n: + P = (z - L) / 864e5; + break; + case c: + P = z / a; + break; + case i: + P = z / s; + break; + case o: + P = z / t; + break; + default: + P = z; + } + return N ? P : v.a(P); + }, I.daysInMonth = function() { + return this.endOf(f).$D; + }, I.$locale = function() { + return g[this.$L]; + }, I.locale = function(T, M) { + if (!T) return this.$L; + var N = this.clone(), P = E(T, M, !0); + return P && (N.$L = P), N; + }, I.clone = function() { + return v.w(this.$d, this); + }, I.toDate = function() { + return new Date(this.valueOf()); + }, I.toJSON = function() { + return this.isValid() ? this.toISOString() : null; + }, I.toISOString = function() { + return this.$d.toISOString(); + }, I.toString = function() { + return this.$d.toUTCString(); + }, F; + })(), S = k.prototype; + return _.prototype = S, [["$ms", r], ["$s", o], ["$m", i], ["$H", c], ["$W", n], ["$M", f], ["$y", d], ["$D", h]].forEach((function(F) { + S[F[1]] = function(I) { + return this.$g(I, F[0], F[1]); + }; + })), _.extend = function(F, I) { + return F.$i || (F(I, k, _), F.$i = !0), _; + }, _.locale = E, _.isDayjs = B, _.unix = function(F) { + return _(1e3 * F); + }, _.en = g[p], _.Ls = g, _.p = {}, _; + })); + })(gu)), gu.exports; } -var mt, vr; -function tc() { - if (vr) return mt; - vr = 1; - const e = /* @__PURE__ */ Gs(), u = qs(), { isPlainObject: t } = Hs(), c = Ws(), s = Ks(), { parse: i } = uc(), l = [ +var I0; +function lc() { + if (I0) return bu.exports; + I0 = 1; + const e = oc(); + function u(s) { + for (s = s.replace(/[\x00-\x20]+/g, ""); ; ) { + const a = s.indexOf("<!--"); + if (a === -1) + break; + const r = s.indexOf("-->", a + 4); + if (r === -1) + break; + s = s.substring(0, a) + s.substring(r + 3); + } + return s; + } + function t(s, a) { + a = a || {}; + const r = a.allowedSchemes || ["http", "https", "ftp", "mailto", "tel", "sms"], o = a.allowProtocolRelative !== !1; + if (typeof s != "string") + return !1; + s = u(s); + const i = s.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/); + if (!i) + return s.match(/^[/\\]{2}/) ? !o : !1; + const c = i[1].toLowerCase(); + return r.indexOf(c) === -1; + } + return bu.exports = function(s) { + const a = {}; + return a.options = s || {}, a.filterTag = a.options.filterTag || function(r) { + return r = r.trim(), r.toLowerCase(); + }, a.string = function(r, o) { + return typeof r != "string" && (typeof r == "number" || typeof r == "boolean" ? r += "" : r = ""), r = r.trim(), o !== void 0 && r === "" && (r = o), r; + }, a.strings = function(r) { + return Array.isArray(r) ? r.map(function(o) { + return a.string(o); + }) : []; + }, a.integer = function(r, o, i, c) { + if (o === void 0 && (o = 0), typeof r == "number") + r = Math.floor(r); + else + try { + r = parseInt(r, 10), isNaN(r) && (r = o); + } catch { + r = o; + } + return typeof i == "number" && r < i && (r = i), typeof c == "number" && r > c && (r = c), r; + }, a.padInteger = function(r, o) { + let i = r + ""; + for (; i.length < o; ) + i = "0" + i; + return i; + }, a.float = function(r, o, i, c) { + if (o === void 0 && (o = 0), typeof r != "number") + try { + r = parseFloat(r, 10), isNaN(r) && (r = o); + } catch { + r = o; + } + return typeof i == "number" && r < i && (r = i), typeof c == "number" && r > c && (r = c), r; + }, a.naughtyHref = t, a.url = function(r, o, i) { + if (r = a.string(r, o), r === o) + return r; + if (r = u(r), t(r) || (r = c(r), r === null)) + return o; + return r; + function c(n) { + return n.match(/^(((https?|ftp):\/\/)|((mailto|tel|sms):)|#|([^/.]+)?\/|[^/.]+$)/) ? n : n.match(/^[^/.]+\.[^/.]+/) ? (i ? "https://" : "http://") + n : null; + } + }, a.select = function(r, o, i) { + if (r = a.string(r), !o || !o.length) + return i; + let c; + return typeof o[0] == "object" ? (c = o.find(function(n) { + return n.value === null || n.value === void 0 ? !1 : n.value.toString() === r; + }), c != null ? c.value : i) : (c = o.find(function(n) { + return n == null ? !1 : n.toString() === r; + }), c !== void 0 ? c : i); + }, a.boolean = function(r, o) { + return r === !0 ? !0 : r === !1 ? !1 : (r = a.string(r, o), r === o ? r === void 0 ? !1 : r : (r = r.toLowerCase().charAt(0), r === "" || r === "n" || r === "0" || r === "f" ? !1 : r === "t" || r === "y" || r === "1")); + }, a.addBooleanFilterToCriteria = function(r, o, i, c) { + c === void 0 && (c = null); + let n = typeof r == "object" && r !== null ? r[o] : r; + n = n === void 0 ? c : n, n = a.booleanOrNull(n), n === null || (n ? i[o] = !0 : i[o] = { $ne: !0 }); + }, a.booleanOrNull = function(r, o) { + return r === !0 || r === !1 || r === null ? r : (r = a.string(r, o), r === o ? o === void 0 ? null : r : r === "null" ? null : (r = r.toLowerCase().charAt(0), r === "" || r === "n" || r === "0" || r === "f" ? !1 : r === "t" || r === "y" || r === "1" ? !0 : r === "a" ? null : o)); + }, a.date = function(r, o, i) { + let c; + function n() { + return o === void 0 && (o = e().format("YYYY-MM-DD")), o; + } + if (typeof r == "string") { + if (r.match(/\//)) { + if (c = r.split("/"), c.length === 2) + return (i || /* @__PURE__ */ new Date()).getFullYear() + "-" + a.padInteger(c[0], 2) + "-" + a.padInteger(c[1], 2); + if (c.length === 3) { + if (c[2] < 100) { + const l = i || /* @__PURE__ */ new Date(), f = l.getFullYear() % 100, A = l.getFullYear() - f; + let d = parseInt(c[2]) + A; + d - l.getFullYear() > 50 && (d -= 100), c[2] = d; + } + return a.padInteger(c[2], 4) + "-" + a.padInteger(c[0], 2) + "-" + a.padInteger(c[1], 2); + } else + return n(); + } else if (r.match(/-/)) + return c = r.split("-"), c.length === 2 ? (i || /* @__PURE__ */ new Date()).getFullYear() + "-" + a.padInteger(c[0], 2) + "-" + a.padInteger(c[1], 2) : c.length === 3 ? a.padInteger(c[0], 4) + "-" + a.padInteger(c[1], 2) + "-" + a.padInteger(c[2], 2) : n(); + } + try { + return r === null || (r = i || new Date(r), isNaN(r.getTime())) ? n() : r.getFullYear() + "-" + a.padInteger(r.getMonth() + 1, 2) + "-" + a.padInteger(r.getDate(), 2); + } catch { + return n(); + } + }, a.formatDate = function(r) { + return e(r).format("YYYY-MM-DD"); + }, a.time = function(r, o) { + r = a.string(r).toLowerCase(), r = r.trim(); + const i = r.match(/^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/); + if (i) { + let c = parseInt(i[1], 10); + const n = i[3] !== void 0 ? parseInt(i[3], 10) : 0, l = i[5] !== void 0 ? parseInt(i[5], 10) : 0; + let f = i[6] ? i[6].toLowerCase() : i[6]; + return f = f && f.charAt(0), c === 12 && f === "a" ? c -= 12 : c === 12 && f === "p" || f === "p" && (c += 12), (c === 24 || c === "24") && (c = 0), a.padInteger(c, 2) + ":" + a.padInteger(n, 2) + ":" + a.padInteger(l, 2); + } else + return o !== void 0 ? o : e().format("HH:mm"); + }, a.formatTime = function(r) { + return e(r).format("HH:mm:ss"); + }, a.tags = function(r, o) { + return typeof r == "string" && (r = r.split(/,\s*/)), Array.isArray(r) ? r.map((l) => a.string(l)).map(o || a.filterTag).filter((l) => l.length > 0) : []; + }, a.idRegExp = a.options.idRegExp || /^[A-Za-z0-9_]+$/, a.id = function(r, o) { + const i = a.string(r, o); + return i === o || i.match(a.idRegExp) ? i : o; + }, a.ids = function(r) { + return Array.isArray(r) ? r.filter(function(i) { + return a.id(i) !== void 0; + }) : []; + }, a; + }, bu.exports.naughtyHref = t, bu.exports; +} +var Ct, k0; +function fc() { + if (k0) return Ct; + k0 = 1; + const e = /* @__PURE__ */ Ys(), u = js(), { isPlainObject: t } = Js(), s = Zs(), a = zs(), { parse: r } = sc(), { naughtyHref: o } = lc(), i = [ "img", "audio", "video", @@ -8705,393 +9241,385 @@ function tc() { "map", "iframe", "embed" - ], a = ["script", "style"]; - function o(C, b) { - C && Object.keys(C).forEach(function(m) { - b(C[m], m); + ], c = ["script", "style"]; + function n(w, b) { + w && Object.keys(w).forEach(function(x) { + b(w[x], x); }); } - function r(C, b) { - return {}.hasOwnProperty.call(C, b); + function l(w, b) { + return {}.hasOwnProperty.call(w, b); } - function n(C, b) { - const m = []; - return o(C, function(g) { - b(g) && m.push(g); - }), m; + function f(w, b) { + const x = []; + return n(w, function(m) { + b(m) && x.push(m); + }), x; } - function f(C) { - for (const b in C) - if (r(C, b)) + function A(w) { + for (const b in w) + if (l(w, b)) return !1; return !0; } - function d(C) { - return C.map(function(b) { + function d(w) { + return w.map(function(b) { if (!b.url) throw new Error("URL missing"); return b.url + (b.w ? ` ${b.w}w` : "") + (b.h ? ` ${b.h}h` : "") + (b.d ? ` ${b.d}x` : ""); }).join(", "); } - mt = h; - const A = /^[^\0\t\n\f\r /<=>]+$/; - function h(C, b, m) { - if (C == null) + Ct = y; + const h = /^[^\0\t\n\f\r /<=>]+$/; + function y(w, b, x) { + if (w == null) return ""; - typeof C == "number" && (C = C.toString()); - let g = "", x = ""; - function p(S, N) { - const R = this; - this.tag = S, this.attribs = N || {}, this.tagPosition = g.length, this.text = "", this.openingTagLength = 0, this.mediaChildren = [], this.updateParentNodeText = function() { - if (O.length) { - const P = O[O.length - 1]; - P.text += R.text; + typeof w == "number" && (w = w.toString()); + let m = "", p = ""; + function g(R, Q) { + const O = this; + this.tag = R, this.attribs = Q || {}, this.tagPosition = m.length, this.text = "", this.openingTagLength = 0, this.mediaChildren = [], this.updateParentNodeText = function() { + if (M.length) { + const W = M[M.length - 1]; + W.text += O.text; } }, this.updateParentNodeMediaChildren = function() { - O.length && l.includes(this.tag) && O[O.length - 1].mediaChildren.push(this.tag); + M.length && i.includes(this.tag) && M[M.length - 1].mediaChildren.push(this.tag); }; } - b = Object.assign({}, h.defaults, b), b.parser = Object.assign({}, w, b.parser); - const y = function(S) { - return b.allowedTags === !1 || (b.allowedTags || []).indexOf(S) > -1; + b = Object.assign({}, y.defaults, b), b.parser = Object.assign({}, C, b.parser); + const D = function(R) { + return b.allowedTags === !1 || (b.allowedTags || []).indexOf(R) > -1; }; - a.forEach(function(S) { - y(S) && !b.allowVulnerableTags && console.warn(` + c.forEach(function(R) { + D(R) && !b.allowVulnerableTags && console.warn(` -⚠️ Your \`allowedTags\` option includes, \`${S}\`, which is inherently +⚠️ Your \`allowedTags\` option includes, \`${R}\`, which is inherently vulnerable to XSS attacks. Please remove it from \`allowedTags\`. Or, to disable this warning, add the \`allowVulnerableTags\` option and ensure you are accounting for this risk. `); }); - const v = b.nonTextTags || [ + const B = b.nonTextTags || [ "script", "style", "textarea", - "option" + "option", + "xmp" ]; - let I, D; - b.allowedAttributes && (I = {}, D = {}, o(b.allowedAttributes, function(S, N) { - I[N] = []; - const R = []; - S.forEach(function(P) { - typeof P == "string" && P.indexOf("*") >= 0 ? R.push(u(P).replace(/\\\*/g, ".*")) : I[N].push(P); - }), R.length && (D[N] = new RegExp("^(" + R.join("|") + ")$")); + let E, _; + b.allowedAttributes && (E = {}, _ = {}, n(b.allowedAttributes, function(R, Q) { + E[Q] = []; + const O = []; + R.forEach(function(W) { + typeof W == "string" && W.indexOf("*") >= 0 ? O.push(u(W).replace(/\\\*/g, ".*")) : E[Q].push(W); + }), O.length && (_[Q] = new RegExp("^(" + O.join("|") + ")$")); })); - const _ = {}, E = {}, k = {}; - o(b.allowedClasses, function(S, N) { - if (I && (r(I, N) || (I[N] = []), I[N].push("class")), _[N] = S, Array.isArray(S)) { - const R = []; - _[N] = [], k[N] = [], S.forEach(function(P) { - typeof P == "string" && P.indexOf("*") >= 0 ? R.push(u(P).replace(/\\\*/g, ".*")) : P instanceof RegExp ? k[N].push(P) : _[N].push(P); - }), R.length && (E[N] = new RegExp("^(" + R.join("|") + ")$")); + const v = {}, k = {}, S = {}; + n(b.allowedClasses, function(R, Q) { + if (E && (l(E, Q) || (E[Q] = []), E[Q].push("class")), v[Q] = R, Array.isArray(R)) { + const O = []; + v[Q] = [], S[Q] = [], R.forEach(function(W) { + typeof W == "string" && W.indexOf("*") >= 0 ? O.push(u(W).replace(/\\\*/g, ".*")) : W instanceof RegExp ? S[Q].push(W) : v[Q].push(W); + }), O.length && (k[Q] = new RegExp("^(" + O.join("|") + ")$")); } }); const F = {}; - let T; - o(b.transformTags, function(S, N) { - let R; - typeof S == "function" ? R = S : typeof S == "string" && (R = h.simpleTransform(S)), N === "*" ? T = R : F[N] = R; + let I; + n(b.transformTags, function(R, Q) { + let O; + typeof R == "function" ? O = R : typeof R == "string" && (O = y.simpleTransform(R)), Q === "*" ? I = O : F[Q] = O; }); - let B, O, Q, L, K, j, ee = !1; - M(); - const _e = new e.Parser({ - onopentag: function(S, N) { - if (b.onOpenTag && b.onOpenTag(S, N), b.enforceHtmlBoundary && S === "html" && M(), K) { - j++; + let T, M, N, P, G, H, U = !1; + z(); + const L = new e.Parser({ + onopentag: function(R, Q) { + if (b.onOpenTag && b.onOpenTag(R, Q), b.enforceHtmlBoundary && R === "html" && z(), G) { + H++; return; } - const R = new p(S, N); - O.push(R); - let P = !1; - const V = !!R.text; - let z; - if (r(F, S) && (z = F[S](S, N), R.attribs = N = z.attribs, z.text !== void 0 && (R.innerText = z.text), S !== z.tagName && (R.name = S = z.tagName, L[B] = z.tagName)), T && (z = T(S, N), R.attribs = N = z.attribs, S !== z.tagName && (R.name = S = z.tagName, L[B] = z.tagName)), (!y(S) || b.disallowedTagsMode === "recursiveEscape" && !f(Q) || b.nestingLimit != null && B >= b.nestingLimit) && (P = !0, Q[B] = !0, (b.disallowedTagsMode === "discard" || b.disallowedTagsMode === "completelyDiscard") && v.indexOf(S) !== -1 && (K = !0, j = 1)), B++, P) { + const O = new g(R, Q); + M.push(O); + let W = !1; + const ne = !!O.text; + let ce; + if (l(F, R) && (ce = F[R](R, Q), O.attribs = Q = ce.attribs, ce.text !== void 0 && (O.innerText = ce.text), R !== ce.tagName && (O.name = R = ce.tagName, P[T] = ce.tagName)), I && (ce = I(R, Q), O.attribs = Q = ce.attribs, R !== ce.tagName && (O.name = R = ce.tagName, P[T] = ce.tagName)), (!D(R) || b.disallowedTagsMode === "recursiveEscape" && !A(N) || b.nestingLimit != null && T >= b.nestingLimit) && (W = !0, N[T] = !0, (b.disallowedTagsMode === "discard" || b.disallowedTagsMode === "completelyDiscard") && B.indexOf(R) !== -1 && (G = !0, H = 1)), T++, W) { if (b.disallowedTagsMode === "discard" || b.disallowedTagsMode === "completelyDiscard") { - if (R.innerText && !V) { - const U = ue(R.innerText); - b.textFilter ? g += b.textFilter(U, S) : g += U, ee = !0; + if (O.innerText && !ne) { + const J = Z(O.innerText); + b.textFilter ? m += b.textFilter(J, R) : m += J, U = !0; } return; } - x = g, g = ""; + p = m, m = ""; } - g += "<" + S, S === "script" && (b.allowedScriptHostnames || b.allowedScriptDomains) && (R.innerText = ""), P && (b.disallowedTagsMode === "escape" || b.disallowedTagsMode === "recursiveEscape") && b.preserveEscapedAttributes ? o(N, function(U, q) { - g += " " + q + '="' + ue(U || "", !0) + '"'; - }) : (!I || r(I, S) || I["*"]) && o(N, function(U, q) { - if (!A.test(q)) { - delete R.attribs[q]; + m += "<" + R, R === "script" && (b.allowedScriptHostnames || b.allowedScriptDomains) && (O.innerText = ""), W && (b.disallowedTagsMode === "escape" || b.disallowedTagsMode === "recursiveEscape") && b.preserveEscapedAttributes ? n(Q, function(J, K) { + m += " " + K + '="' + Z(J || "", !0) + '"'; + }) : (!E || l(E, R) || E["*"]) && n(Q, function(J, K) { + if (!h.test(K)) { + delete O.attribs[K]; return; } - if (U === "" && !b.allowedEmptyAttributes.includes(q) && (b.nonBooleanAttributes.includes(q) || b.nonBooleanAttributes.includes("*"))) { - delete R.attribs[q]; + if (J === "" && !b.allowedEmptyAttributes.includes(K) && (b.nonBooleanAttributes.includes(K) || b.nonBooleanAttributes.includes("*"))) { + delete O.attribs[K]; return; } - let _u = !1; - if (!I || r(I, S) && I[S].indexOf(q) !== -1 || I["*"] && I["*"].indexOf(q) !== -1 || r(D, S) && D[S].test(q) || D["*"] && D["*"].test(q)) - _u = !0; - else if (I && I[S]) { - for (const H of I[S]) - if (t(H) && H.name && H.name === q) { - _u = !0; - let W = ""; - if (H.multiple === !0) { - const Be = U.split(" "); - for (const pe of Be) - H.values.indexOf(pe) !== -1 && (W === "" ? W = pe : W += " " + pe); - } else H.values.indexOf(U) >= 0 && (W = U); - U = W; + let Fu = !1; + if (!E || l(E, R) && E[R].indexOf(K) !== -1 || E["*"] && E["*"].indexOf(K) !== -1 || l(_, R) && _[R].test(K) || _["*"] && _["*"].test(K)) + Fu = !0; + else if (E && E[R]) { + for (const Y of E[R]) + if (t(Y) && Y.name && Y.name === K) { + Fu = !0; + let j = ""; + if (Y.multiple === !0) { + const Me = J.split(" "); + for (const De of Me) + Y.values.indexOf(De) !== -1 && (j === "" ? j = De : j += " " + De); + } else Y.values.indexOf(J) >= 0 && (j = J); + J = j; } } - if (_u) { - if (b.allowedSchemesAppliedToAttributes.indexOf(q) !== -1 && ke(S, U)) { - delete R.attribs[q]; + if (Fu) { + if (b.allowedSchemesAppliedToAttributes.indexOf(K) !== -1 && ae(R, J)) { + delete O.attribs[K]; return; } - if (S === "script" && q === "src") { - let H = !0; + if (R === "script" && K === "src") { + let Y = !0; try { - const W = Ge(U); + const j = se(J); if (b.allowedScriptHostnames || b.allowedScriptDomains) { - const Be = (b.allowedScriptHostnames || []).find(function(ie) { - return ie === W.url.hostname; - }), pe = (b.allowedScriptDomains || []).find(function(ie) { - return W.url.hostname === ie || W.url.hostname.endsWith(`.${ie}`); + const Me = (b.allowedScriptHostnames || []).find(function(de) { + return de === j.url.hostname; + }), De = (b.allowedScriptDomains || []).find(function(de) { + return j.url.hostname === de || j.url.hostname.endsWith(`.${de}`); }); - H = Be || pe; + Y = Me || De; } } catch { - H = !1; + Y = !1; } - if (!H) { - delete R.attribs[q]; + if (!Y) { + delete O.attribs[K]; return; } } - if (S === "iframe" && q === "src") { - let H = !0; + if (R === "iframe" && K === "src") { + let Y = !0; try { - const W = Ge(U); - if (W.isRelativeUrl) - H = r(b, "allowIframeRelativeUrls") ? b.allowIframeRelativeUrls : !b.allowedIframeHostnames && !b.allowedIframeDomains; + const j = se(J); + if (j.isRelativeUrl) + Y = l(b, "allowIframeRelativeUrls") ? b.allowIframeRelativeUrls : !b.allowedIframeHostnames && !b.allowedIframeDomains; else if (b.allowedIframeHostnames || b.allowedIframeDomains) { - const Be = (b.allowedIframeHostnames || []).find(function(ie) { - return ie === W.url.hostname; - }), pe = (b.allowedIframeDomains || []).find(function(ie) { - return W.url.hostname === ie || W.url.hostname.endsWith(`.${ie}`); + const Me = (b.allowedIframeHostnames || []).find(function(de) { + return de === j.url.hostname; + }), De = (b.allowedIframeDomains || []).find(function(de) { + return j.url.hostname === de || j.url.hostname.endsWith(`.${de}`); }); - H = Be || pe; + Y = Me || De; } } catch { - H = !1; + Y = !1; } - if (!H) { - delete R.attribs[q]; + if (!Y) { + delete O.attribs[K]; return; } } - if (q === "srcset") + if (K === "srcset") try { - let H = s(U); - if (H.forEach(function(W) { - ke("srcset", W.url) && (W.evil = !0); - }), H = n(H, function(W) { - return !W.evil; - }), H.length) - U = d(n(H, function(W) { - return !W.evil; - })), R.attribs[q] = U; + let Y = a(J); + if (Y.forEach(function(j) { + ae("srcset", j.url) && (j.evil = !0); + }), Y = f(Y, function(j) { + return !j.evil; + }), Y.length) + J = d(f(Y, function(j) { + return !j.evil; + })), O.attribs[K] = J; else { - delete R.attribs[q]; + delete O.attribs[K]; return; } } catch { - delete R.attribs[q]; + delete O.attribs[K]; return; } - if (q === "class") { - const H = _[S], W = _["*"], Be = E[S], pe = k[S], ie = k["*"], Ai = E["*"], Lt = [ - Be, - Ai - ].concat(pe, ie).filter(function(hi) { - return hi; + if (K === "class") { + const Y = v[R], j = v["*"], Me = k[R], De = S[R], de = S["*"], xn = k["*"], qt = [ + Me, + xn + ].concat(De, de).filter(function(yn) { + return yn; }); - if (H && W ? U = eu( - U, - c(H, W), - Lt - ) : U = eu( - U, - H || W, - Lt - ), !U.length) { - delete R.attribs[q]; + if (Y && j ? J = re( + J, + s(Y, j), + qt + ) : J = re( + J, + Y || j, + qt + ), !J.length) { + delete O.attribs[K]; return; } } - if (q === "style") { + if (K === "style") { if (b.parseStyleAttributes) try { - const H = i(S + " {" + U + "}", { map: !1 }), W = Du( - H, + const Y = r(R + " {" + J + "}", { map: !1 }), j = le( + Y, b.allowedStyles ); - if (U = qe(W), U.length === 0) { - delete R.attribs[q]; + if (J = fe(j), J.length === 0) { + delete O.attribs[K]; return; } } catch { - typeof window < "u" && console.warn('Failed to parse "' + S + " {" + U + `}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`), delete R.attribs[q]; + typeof window < "u" && console.warn('Failed to parse "' + R + " {" + J + `}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`), delete O.attribs[K]; return; } else if (b.allowedStyles) throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false."); } - g += " " + q, U && U.length ? g += '="' + ue(U, !0) + '"' : b.allowedEmptyAttributes.includes(q) && (g += '=""'); + m += " " + K, J && J.length ? m += '="' + Z(J, !0) + '"' : b.allowedEmptyAttributes.includes(K) && (m += '=""'); } else - delete R.attribs[q]; - }), b.selfClosing.indexOf(S) !== -1 ? g += " />" : (g += ">", R.innerText && !V && !b.textFilter && (g += ue(R.innerText), ee = !0)), P && (g = x + ue(g), x = ""), R.openingTagLength = g.length - R.tagPosition; + delete O.attribs[K]; + }), b.selfClosing.indexOf(R) !== -1 ? m += " />" : (m += ">", O.innerText && !ne && !b.textFilter && (m += Z(O.innerText), U = !0)), W && (m = p + Z(m), p = ""), O.openingTagLength = m.length - O.tagPosition; }, - ontext: function(S) { - if (K) + ontext: function(R) { + if (G) return; - const N = O[O.length - 1]; - let R; - if (N && (R = N.tag, S = N.innerText !== void 0 ? N.innerText : S), b.disallowedTagsMode === "completelyDiscard" && !y(R)) - S = ""; - else if ((b.disallowedTagsMode === "discard" || b.disallowedTagsMode === "completelyDiscard") && (R === "script" || R === "style")) - g += S; - else if ((b.disallowedTagsMode === "discard" || b.disallowedTagsMode === "completelyDiscard") && (R === "textarea" || R === "xmp")) - g += S; - else if (!ee) { - const P = ue(S, !1); - b.textFilter ? g += b.textFilter(P, R) : g += P; + const Q = M[M.length - 1]; + let O; + if (Q && (O = Q.tag, R = Q.innerText !== void 0 ? Q.innerText : R), b.disallowedTagsMode === "completelyDiscard" && !D(O)) + R = ""; + else if ((b.disallowedTagsMode === "discard" || b.disallowedTagsMode === "completelyDiscard") && (O === "script" || O === "style")) + m += R; + else if ((b.disallowedTagsMode === "discard" || b.disallowedTagsMode === "completelyDiscard") && (O === "textarea" || O === "xmp")) + m += R; + else if (!U) { + const W = Z(R, !1); + b.textFilter ? m += b.textFilter(W, O) : m += W; } - if (O.length) { - const P = O[O.length - 1]; - P.text += S; + if (M.length) { + const W = M[M.length - 1]; + W.text += R; } }, - onclosetag: function(S, N) { - if (b.onCloseTag && b.onCloseTag(S, N), K) - if (j--, !j) - K = !1; + onclosetag: function(R, Q) { + if (b.onCloseTag && b.onCloseTag(R, Q), G) + if (H--, !H) + G = !1; else return; - const R = O.pop(); - if (!R) + const O = M.pop(); + if (!O) return; - if (R.tag !== S) { - O.push(R); + if (O.tag !== R) { + M.push(O); return; } - K = b.enforceHtmlBoundary ? S === "html" : !1, B--; - const P = Q[B]; - if (P) { - if (delete Q[B], b.disallowedTagsMode === "discard" || b.disallowedTagsMode === "completelyDiscard") { - R.updateParentNodeText(); + G = b.enforceHtmlBoundary ? R === "html" : !1, T--; + const W = N[T]; + if (W) { + if (delete N[T], b.disallowedTagsMode === "discard" || b.disallowedTagsMode === "completelyDiscard") { + O.updateParentNodeText(); return; } - x = g, g = ""; + p = m, m = ""; } - if (L[B] && (S = L[B], delete L[B]), b.exclusiveFilter) { - const V = b.exclusiveFilter(R); - if (V === "excludeTag") { - P && (g = x, x = ""), g = g.substring(0, R.tagPosition) + g.substring(R.tagPosition + R.openingTagLength); + if (P[T] && (R = P[T], delete P[T]), b.exclusiveFilter) { + const ne = b.exclusiveFilter(O); + if (ne === "excludeTag") { + W && (m = p, p = ""), m = m.substring(0, O.tagPosition) + m.substring(O.tagPosition + O.openingTagLength); return; - } else if (V) { - g = g.substring(0, R.tagPosition); + } else if (ne) { + m = m.substring(0, O.tagPosition); return; } } - if (R.updateParentNodeMediaChildren(), R.updateParentNodeText(), // Already output /> - b.selfClosing.indexOf(S) !== -1 || // Escaped tag, closing tag is implied - N && !y(S) && ["escape", "recursiveEscape"].indexOf(b.disallowedTagsMode) >= 0) { - P && (g = x, x = ""); + if (O.updateParentNodeMediaChildren(), O.updateParentNodeText(), // Already output /> + b.selfClosing.indexOf(R) !== -1 || // Escaped tag, closing tag is implied + Q && !D(R) && ["escape", "recursiveEscape"].indexOf(b.disallowedTagsMode) >= 0) { + W && (m = p, p = ""); return; } - g += "</" + S + ">", P && (g = x + ue(g), x = ""), ee = !1; + m += "</" + R + ">", W && (m = p + Z(m), p = ""), U = !1; } }, b.parser); - if (_e.write(C), _e.end(), b.disallowedTagsMode === "escape" || b.disallowedTagsMode === "recursiveEscape") { - const S = _e.endIndex; - if (S != null && S >= 0 && S < C.length) { - const N = C.substring(S); - g += ue(N); - } else (S == null || S < 0) && C.length > 0 && g === "" && (g = ue(C)); - } - return g; - function M() { - g = "", B = 0, O = [], Q = {}, L = {}, K = !1, j = 0; - } - function ue(S, N) { - return typeof S != "string" && (S = S + ""), b.parser.decodeEntities && (S = S.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), N && (S = S.replace(/"/g, """))), S = S.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&").replace(/</g, "<").replace(/>/g, ">"), N && (S = S.replace(/"/g, """)), S; - } - function ke(S, N) { - for (N = N.replace(/[\x00-\x20]+/g, ""); ; ) { - const V = N.indexOf("<!--"); - if (V === -1) - break; - const z = N.indexOf("-->", V + 4); - if (z === -1) - break; - N = N.substring(0, V) + N.substring(z + 3); - } - const R = N.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/); - if (!R) - return N.match(/^[/\\]{2}/) ? !b.allowProtocolRelative : !1; - const P = R[1].toLowerCase(); - return r(b.allowedSchemesByTag, S) ? b.allowedSchemesByTag[S].indexOf(P) === -1 : !b.allowedSchemes || b.allowedSchemes.indexOf(P) === -1; + if (L.write(w), L.end(), b.disallowedTagsMode === "escape" || b.disallowedTagsMode === "recursiveEscape") { + const R = L.endIndex; + if (R != null && R >= 0 && R < w.length) { + const Q = w.substring(R); + m += Z(Q); + } else (R == null || R < 0) && w.length > 0 && m === "" && (m = Z(w)); + } + return m; + function z() { + m = "", T = 0, M = [], N = {}, P = {}, G = !1, H = 0; + } + function Z(R, Q) { + return typeof R != "string" && (R = R + ""), b.parser.decodeEntities && (R = R.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Q && (R = R.replace(/"/g, """))), R = R.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&").replace(/</g, "<").replace(/>/g, ">"), Q && (R = R.replace(/"/g, """)), R; + } + function ae(R, Q) { + const O = l(b.allowedSchemesByTag, R) ? b.allowedSchemesByTag[R] : b.allowedSchemes || []; + return o(Q, { + allowedSchemes: O, + allowProtocolRelative: b.allowProtocolRelative + }); } - function Ge(S) { - if (S = S.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), S.startsWith("relative:")) + function se(R) { + if (R = R.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), R.startsWith("relative:")) throw new Error("relative: exploit attempt"); - let N = "relative://relative-site"; - for (let V = 0; V < 100; V++) - N += `/${V}`; - const R = new URL(S, N); + let Q = "relative://relative-site"; + for (let ne = 0; ne < 100; ne++) + Q += `/${ne}`; + const O = new URL(R, Q); return { - isRelativeUrl: R && R.hostname === "relative-site" && R.protocol === "relative:", - url: R + isRelativeUrl: O && O.hostname === "relative-site" && O.protocol === "relative:", + url: O }; } - function Du(S, N) { - if (!N) - return S; - const R = S.nodes[0]; - let P; - return N[R.selector] && N["*"] ? P = c( - N[R.selector], - N["*"] - ) : P = N[R.selector] || N["*"], P && (S.nodes[0].nodes = R.nodes.reduce(Iu(P), [])), S; - } - function qe(S) { - return S.nodes[0].nodes.reduce(function(N, R) { - return N.push( - `${R.prop}:${R.value}${R.important ? " !important" : ""}` - ), N; + function le(R, Q) { + if (!Q) + return R; + const O = R.nodes[0]; + let W; + return Q[O.selector] && Q["*"] ? W = s( + Q[O.selector], + Q["*"] + ) : W = Q[O.selector] || Q["*"], W && (R.nodes[0].nodes = O.nodes.reduce(X(W), [])), R; + } + function fe(R) { + return R.nodes[0].nodes.reduce(function(Q, O) { + return Q.push( + `${O.prop}:${O.value}${O.important ? " !important" : ""}` + ), Q; }, []).join(";"); } - function Iu(S) { - return function(N, R) { - return r(S, R.prop) && S[R.prop].some(function(V) { - return V.test(R.value); - }) && N.push(R), N; + function X(R) { + return function(Q, O) { + return l(R, O.prop) && R[O.prop].some(function(ne) { + return ne.test(O.value); + }) && Q.push(O), Q; }; } - function eu(S, N, R) { - return N ? (S = S.split(/\s+/), S.filter(function(P) { - return N.indexOf(P) !== -1 || R.some(function(V) { - return V.test(P); + function re(R, Q, O) { + return Q ? (R = R.split(/\s+/), R.filter(function(W) { + return Q.indexOf(W) !== -1 || O.some(function(ne) { + return ne.test(W); }); - }).join(" ")) : S; + }).join(" ")) : R; } } - const w = { + const C = { decodeEntities: !0 }; - return h.defaults = { + return y.defaults = { allowedTags: [ // Sections derived from MDN element categories and limited to the more // benign categories. @@ -9385,23 +9913,23 @@ and ensure you are accounting for this risk. enforceHtmlBoundary: !1, parseStyleAttributes: !0, preserveEscapedAttributes: !1 - }, h.simpleTransform = function(C, b, m) { - return m = m === void 0 ? !0 : m, b = b || {}, function(g, x) { - let p; - if (m) - for (p in b) - x[p] = b[p]; + }, y.simpleTransform = function(w, b, x) { + return x = x === void 0 ? !0 : x, b = b || {}, function(m, p) { + let g; + if (x) + for (g in b) + p[g] = b[g]; else - x = b; + p = b; return { - tagName: C, - attribs: x + tagName: w, + attribs: p }; }; - }, mt; + }, Ct; } -var rc = /* @__PURE__ */ tc(); -const Er = /* @__PURE__ */ _s(rc), ic = () => Fi(), nc = [ +var dc = /* @__PURE__ */ fc(); +const B0 = /* @__PURE__ */ Rs(dc), Ac = () => On(), hc = [ "address", "article", "aside", @@ -9472,74 +10000,74 @@ const Er = /* @__PURE__ */ _s(rc), ic = () => Fi(), nc = [ "th", "thead", "tr" -], ac = { +], bc = { a: ["href", "name", "target"], span: ["class"], pre: ["class"], code: ["class"], img: ["src", "alt", "title", "width", "height", "loading"] -}, sc = ["innerHTML"], cc = { +}, pc = ["innerHTML"], gc = { key: 1, class: "markdown-empty" -}, oc = /* @__PURE__ */ pi({ +}, mc = /* @__PURE__ */ Cn({ __name: "markdown-view", setup(e) { - const u = ic(), t = Si(), c = new re({ + const u = Ac(), t = Qn(), s = new oe({ html: !1, breaks: !0, linkify: !0, typographer: !1 - }), s = uu( + }), a = nu( () => u.value.content || t.value || "" - ), i = uu(() => { - const o = u.value.allowedTags; - return o && o.length > 0 ? o : nc; - }), l = uu(() => { - const o = u.value.allowedAttributes; - if (o) + ), r = nu(() => { + const c = u.value.allowedTags; + return c && c.length > 0 ? c : hc; + }), o = nu(() => { + const c = u.value.allowedAttributes; + if (c) try { - return JSON.parse(o); + return JSON.parse(c); } catch { } - return ac; - }), a = uu(() => { - if (!s.value) return ""; - const o = c.render(s.value); - return Er(o, { - allowedTags: i.value, - allowedAttributes: l.value, + return bc; + }), i = nu(() => { + if (!a.value) return ""; + const c = s.render(a.value); + return B0(c, { + allowedTags: r.value, + allowedAttributes: o.value, allowedClasses: { code: ["language-*"], pre: ["language-*"], span: ["language-*"] }, transformTags: { - a: Er.simpleTransform("a", { rel: "noopener noreferrer" }) + a: B0.simpleTransform("a", { rel: "noopener noreferrer" }) } }); }); - return (o, r) => a.value ? (Pt(), Gt("article", { + return (c, n) => i.value ? (Wt(), Ut("article", { key: 0, class: "data-body markdown-container", - innerHTML: a.value - }, null, 8, sc)) : (Pt(), Gt("div", cc, " No markdown content provided. ")); + innerHTML: i.value + }, null, 8, pc)) : (Wt(), Ut("div", gc, " No markdown content provided. ")); } -}), lc = ":root{--p-primary: rgb(0, 95, 178);--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white);--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white);--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white);--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white);--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white);--p-primary-500: var(--p-primary);--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black);--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black);--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black);--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black);--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black);--p-secondary: #6f7385;--p-secondary-50: color-mix(in srgb, var(--p-secondary) 5%, white);--p-secondary-100: color-mix(in srgb, var(--p-secondary) 10%, white);--p-secondary-200: color-mix(in srgb, var(--p-secondary) 20%, white);--p-secondary-300: color-mix(in srgb, var(--p-secondary) 35%, white);--p-secondary-400: color-mix(in srgb, var(--p-secondary) 65%, white);--p-secondary-500: var(--p-secondary);--p-secondary-600: color-mix(in srgb, var(--p-secondary) 80%, black);--p-secondary-700: color-mix(in srgb, var(--p-secondary) 65%, black);--p-secondary-800: color-mix(in srgb, var(--p-secondary) 55%, black);--p-secondary-900: color-mix(in srgb, var(--p-secondary) 50%, black);--p-secondary-950: color-mix(in srgb, var(--p-secondary) 30%, black);--p-danger: rgb(239, 68, 68);--p-danger-50: color-mix(in srgb, var(--p-danger) 5%, white);--p-danger-100: color-mix(in srgb, var(--p-danger) 10%, white);--p-danger-200: color-mix(in srgb, var(--p-danger) 20%, white);--p-danger-300: color-mix(in srgb, var(--p-danger) 30%, white);--p-danger-400: color-mix(in srgb, var(--p-danger) 40%, white);--p-danger-500: var(--p-danger);--p-danger-600: color-mix(in srgb, var(--p-danger) 80%, black);--p-danger-700: color-mix(in srgb, var(--p-danger) 70%, black);--p-danger-800: color-mix(in srgb, var(--p-danger) 60%, black);--p-danger-900: color-mix(in srgb, var(--p-danger) 50%, black);--p-danger-950: color-mix(in srgb, var(--p-danger) 40%, black);--p-success: rgb(34, 197, 94);--p-success-50: color-mix(in srgb, var(--p-success) 5%, white);--p-success-100: color-mix(in srgb, var(--p-success) 10%, white);--p-success-200: color-mix(in srgb, var(--p-success) 20%, white);--p-success-300: color-mix(in srgb, var(--p-success) 30%, white);--p-success-400: color-mix(in srgb, var(--p-success) 40%, white);--p-success-500: var(--p-success);--p-success-600: color-mix(in srgb, var(--p-success) 80%, black);--p-success-700: color-mix(in srgb, var(--p-success) 70%, black);--p-success-800: color-mix(in srgb, var(--p-success) 60%, black);--p-success-900: color-mix(in srgb, var(--p-success) 50%, black);--p-success-950: color-mix(in srgb, var(--p-success) 40%, black);--p-warn: rgb(249, 115, 22);--p-warn-50: color-mix(in srgb, var(--p-warn) 5%, white);--p-warn-100: color-mix(in srgb, var(--p-warn) 10%, white);--p-warn-200: color-mix(in srgb, var(--p-warn) 20%, white);--p-warn-300: color-mix(in srgb, var(--p-warn) 30%, white);--p-warn-400: color-mix(in srgb, var(--p-warn) 40%, white);--p-warn-500: var(--p-warn);--p-warn-600: color-mix(in srgb, var(--p-warn) 80%, black);--p-warn-700: color-mix(in srgb, var(--p-warn) 70%, black);--p-warn-800: color-mix(in srgb, var(--p-warn) 60%, black);--p-warn-900: color-mix(in srgb, var(--p-warn) 50%, black);--p-warn-950: color-mix(in srgb, var(--p-warn) 40%, black);--p-info: rgb(14, 165, 233);--p-info-50: color-mix(in srgb, var(--p-info) 5%, white);--p-info-100: color-mix(in srgb, var(--p-info) 10%, white);--p-info-200: color-mix(in srgb, var(--p-info) 20%, white);--p-info-300: color-mix(in srgb, var(--p-info) 30%, white);--p-info-400: color-mix(in srgb, var(--p-info) 40%, white);--p-info-500: var(--p-info);--p-info-600: color-mix(in srgb, var(--p-info) 80%, black);--p-info-700: color-mix(in srgb, var(--p-info) 70%, black);--p-info-800: color-mix(in srgb, var(--p-info) 60%, black);--p-info-900: color-mix(in srgb, var(--p-info) 50%, black);--p-info-950: color-mix(in srgb, var(--p-info) 40%, black);--p-help: rgb(168, 85, 247);--p-help-50: color-mix(in srgb, var(--p-help) 5%, white);--p-help-100: color-mix(in srgb, var(--p-help) 10%, white);--p-help-200: color-mix(in srgb, var(--p-help) 20%, white);--p-help-300: color-mix(in srgb, var(--p-help) 30%, white);--p-help-400: color-mix(in srgb, var(--p-help) 40%, white);--p-help-500: var(--p-help);--p-help-600: color-mix(in srgb, var(--p-help) 80%, black);--p-help-700: color-mix(in srgb, var(--p-help) 70%, black);--p-help-800: color-mix(in srgb, var(--p-help) 60%, black);--p-help-900: color-mix(in srgb, var(--p-help) 50%, black);--p-help-950: color-mix(in srgb, var(--p-help) 40%, black);--p-accent: rgb(20, 184, 166);--p-accent-50: color-mix(in srgb, var(--p-accent) 5%, white);--p-accent-100: color-mix(in srgb, var(--p-accent) 10%, white);--p-accent-200: color-mix(in srgb, var(--p-accent) 20%, white);--p-accent-300: color-mix(in srgb, var(--p-accent) 30%, white);--p-accent-400: color-mix(in srgb, var(--p-accent) 40%, white);--p-accent-500: var(--p-accent);--p-accent-600: color-mix(in srgb, var(--p-accent) 80%, black);--p-accent-700: color-mix(in srgb, var(--p-accent) 70%, black);--p-accent-800: color-mix(in srgb, var(--p-accent) 60%, black);--p-accent-900: color-mix(in srgb, var(--p-accent) 50%, black);--p-accent-950: color-mix(in srgb, var(--p-accent) 40%, black);--p-surface-0: #ffffff;--p-surface-50: #fafafa;--p-surface-100: #f5f5f5;--p-surface-200: #e5e5e5;--p-surface-300: #d4d4d4;--p-surface-400: #a3a3a3;--p-surface-500: #737373;--p-surface-600: #525252;--p-surface-700: #404040;--p-surface-800: #262626;--p-surface-850: color-mix(in srgb, var(--p-surface-800) 50%, var(--p-surface-900));--p-surface-900: #171717;--p-surface-950: #0a0a0a;--p-content-border-radius: 6px}:root{--p-primary-color: var(--p-primary-500);--p-primary-contrast-color: var(--p-surface-0);--p-primary-hover-color: var(--p-primary-600);--p-primary-active-color: var(--p-primary-700);--p-content-border-color: var(--p-surface-200);--p-content-hover-background: var(--p-surface-100);--p-content-hover-color: var(--p-surface-800);--p-highlight-background: var(--p-primary-50);--p-highlight-color: var(--p-primary-700);--p-highlight-focus-background: var(--p-primary-100);--p-highlight-focus-color: var(--p-primary-800);--p-content-background: var(--p-surface-0);--p-text-color: var(--p-surface-700);--p-text-hover-color: var(--p-surface-800);--p-text-muted-color: var(--p-surface-500);--p-text-hover-muted-color: var(--p-surface-600)}@media(prefers-color-scheme:dark){:root{--p-surface-D: #fff;--p-surface-0: #fff;--p-surface-50: #fafafa;--p-surface-100: #f4f4f5;--p-surface-200: #e4e4e7;--p-surface-300: #d4d4d8;--p-surface-400: #a1a1aa;--p-surface-500: #71717a;--p-surface-600: #545250;--p-surface-700: #403e3c;--p-surface-800: #2b2927;--p-surface-850: color-mix(in srgb, var(--p-surface-800) 50%, var(--p-surface-900));--p-surface-900: #1c1a19;--p-surface-950: #0f0e0d;--p-primary: rgb(0, 125, 178);--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white);--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white);--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white);--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white);--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white);--p-primary-500: var(--p-primary);--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black);--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black);--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black);--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black);--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black);--p-primary-color: var(--p-primary-400);--p-primary-contrast-color: var(--p-surface-900);--p-primary-hover-color: var(--p-primary-300);--p-primary-active-color: var(--p-primary-200);--p-content-border-color: var(--p-surface-700);--p-content-hover-background: var(--p-surface-800);--p-content-hover-color: var(--p-surface-0);--p-highlight-background: color-mix(in srgb, var(--p-primary-400), transparent 84%);--p-highlight-color: rgba(255, 255, 255, 87%);--p-highlight-focus-background: color-mix(in srgb, var(--p-primary-400), transparent 76%);--p-highlight-focus-color: rgba(255, 255, 255, 87%);--p-content-background: var(--p-surface-900);--p-text-color: var(--p-surface-0);--p-text-hover-color: var(--p-surface-0);--p-text-muted-color: var(--p-surface-400);--p-text-hover-muted-color: var(--p-surface-300)}}.markdown-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--p-text-color, #333);line-height:1.6;width:100%;box-sizing:border-box;overflow-wrap:break-word;word-break:break-word}.markdown-empty{color:var(--p-text-muted-color, #999);font-style:italic;text-align:center}", fc = { props: { type: "object", properties: { content: { type: "string", default: "", description: "Markdown source text to render (GFM)" }, "allowed-tags": { type: "array", items: { type: "string" }, default: [], description: "Override sanitizer tag whitelist (empty = built-in defaults). WARNING: widening this is a security decision — only do it for trusted input." }, "allowed-attributes": { type: "string", default: "", description: "JSON-stringified `{tag: [attr,...]}` map for sanitize-html (empty = defaults)" } } } }, dc = { - wippy: fc +}), xc = ":root{--p-primary: rgb(0, 95, 178);--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white);--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white);--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white);--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white);--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white);--p-primary-500: var(--p-primary);--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black);--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black);--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black);--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black);--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black);--p-secondary: #6f7385;--p-secondary-50: color-mix(in srgb, var(--p-secondary) 5%, white);--p-secondary-100: color-mix(in srgb, var(--p-secondary) 10%, white);--p-secondary-200: color-mix(in srgb, var(--p-secondary) 20%, white);--p-secondary-300: color-mix(in srgb, var(--p-secondary) 35%, white);--p-secondary-400: color-mix(in srgb, var(--p-secondary) 65%, white);--p-secondary-500: var(--p-secondary);--p-secondary-600: color-mix(in srgb, var(--p-secondary) 80%, black);--p-secondary-700: color-mix(in srgb, var(--p-secondary) 65%, black);--p-secondary-800: color-mix(in srgb, var(--p-secondary) 55%, black);--p-secondary-900: color-mix(in srgb, var(--p-secondary) 50%, black);--p-secondary-950: color-mix(in srgb, var(--p-secondary) 30%, black);--p-danger: rgb(239, 68, 68);--p-danger-50: color-mix(in srgb, var(--p-danger) 5%, white);--p-danger-100: color-mix(in srgb, var(--p-danger) 10%, white);--p-danger-200: color-mix(in srgb, var(--p-danger) 20%, white);--p-danger-300: color-mix(in srgb, var(--p-danger) 30%, white);--p-danger-400: color-mix(in srgb, var(--p-danger) 40%, white);--p-danger-500: var(--p-danger);--p-danger-600: color-mix(in srgb, var(--p-danger) 80%, black);--p-danger-700: color-mix(in srgb, var(--p-danger) 70%, black);--p-danger-800: color-mix(in srgb, var(--p-danger) 60%, black);--p-danger-900: color-mix(in srgb, var(--p-danger) 50%, black);--p-danger-950: color-mix(in srgb, var(--p-danger) 40%, black);--p-success: rgb(34, 197, 94);--p-success-50: color-mix(in srgb, var(--p-success) 5%, white);--p-success-100: color-mix(in srgb, var(--p-success) 10%, white);--p-success-200: color-mix(in srgb, var(--p-success) 20%, white);--p-success-300: color-mix(in srgb, var(--p-success) 30%, white);--p-success-400: color-mix(in srgb, var(--p-success) 40%, white);--p-success-500: var(--p-success);--p-success-600: color-mix(in srgb, var(--p-success) 80%, black);--p-success-700: color-mix(in srgb, var(--p-success) 70%, black);--p-success-800: color-mix(in srgb, var(--p-success) 60%, black);--p-success-900: color-mix(in srgb, var(--p-success) 50%, black);--p-success-950: color-mix(in srgb, var(--p-success) 40%, black);--p-warn: rgb(249, 115, 22);--p-warn-50: color-mix(in srgb, var(--p-warn) 5%, white);--p-warn-100: color-mix(in srgb, var(--p-warn) 10%, white);--p-warn-200: color-mix(in srgb, var(--p-warn) 20%, white);--p-warn-300: color-mix(in srgb, var(--p-warn) 30%, white);--p-warn-400: color-mix(in srgb, var(--p-warn) 40%, white);--p-warn-500: var(--p-warn);--p-warn-600: color-mix(in srgb, var(--p-warn) 80%, black);--p-warn-700: color-mix(in srgb, var(--p-warn) 70%, black);--p-warn-800: color-mix(in srgb, var(--p-warn) 60%, black);--p-warn-900: color-mix(in srgb, var(--p-warn) 50%, black);--p-warn-950: color-mix(in srgb, var(--p-warn) 40%, black);--p-info: rgb(14, 165, 233);--p-info-50: color-mix(in srgb, var(--p-info) 5%, white);--p-info-100: color-mix(in srgb, var(--p-info) 10%, white);--p-info-200: color-mix(in srgb, var(--p-info) 20%, white);--p-info-300: color-mix(in srgb, var(--p-info) 30%, white);--p-info-400: color-mix(in srgb, var(--p-info) 40%, white);--p-info-500: var(--p-info);--p-info-600: color-mix(in srgb, var(--p-info) 80%, black);--p-info-700: color-mix(in srgb, var(--p-info) 70%, black);--p-info-800: color-mix(in srgb, var(--p-info) 60%, black);--p-info-900: color-mix(in srgb, var(--p-info) 50%, black);--p-info-950: color-mix(in srgb, var(--p-info) 40%, black);--p-help: rgb(168, 85, 247);--p-help-50: color-mix(in srgb, var(--p-help) 5%, white);--p-help-100: color-mix(in srgb, var(--p-help) 10%, white);--p-help-200: color-mix(in srgb, var(--p-help) 20%, white);--p-help-300: color-mix(in srgb, var(--p-help) 30%, white);--p-help-400: color-mix(in srgb, var(--p-help) 40%, white);--p-help-500: var(--p-help);--p-help-600: color-mix(in srgb, var(--p-help) 80%, black);--p-help-700: color-mix(in srgb, var(--p-help) 70%, black);--p-help-800: color-mix(in srgb, var(--p-help) 60%, black);--p-help-900: color-mix(in srgb, var(--p-help) 50%, black);--p-help-950: color-mix(in srgb, var(--p-help) 40%, black);--p-accent: rgb(20, 184, 166);--p-accent-50: color-mix(in srgb, var(--p-accent) 5%, white);--p-accent-100: color-mix(in srgb, var(--p-accent) 10%, white);--p-accent-200: color-mix(in srgb, var(--p-accent) 20%, white);--p-accent-300: color-mix(in srgb, var(--p-accent) 30%, white);--p-accent-400: color-mix(in srgb, var(--p-accent) 40%, white);--p-accent-500: var(--p-accent);--p-accent-600: color-mix(in srgb, var(--p-accent) 80%, black);--p-accent-700: color-mix(in srgb, var(--p-accent) 70%, black);--p-accent-800: color-mix(in srgb, var(--p-accent) 60%, black);--p-accent-900: color-mix(in srgb, var(--p-accent) 50%, black);--p-accent-950: color-mix(in srgb, var(--p-accent) 40%, black);--p-surface-0: #ffffff;--p-surface-50: #fafafa;--p-surface-100: #f5f5f5;--p-surface-200: #e5e5e5;--p-surface-300: #d4d4d4;--p-surface-400: #a3a3a3;--p-surface-500: #737373;--p-surface-600: #525252;--p-surface-700: #404040;--p-surface-800: #262626;--p-surface-850: color-mix(in srgb, var(--p-surface-800) 50%, var(--p-surface-900));--p-surface-900: #171717;--p-surface-950: #0a0a0a;--p-content-border-radius: 6px}:root{--p-primary-color: var(--p-primary-500);--p-primary-contrast-color: var(--p-surface-0);--p-primary-hover-color: var(--p-primary-600);--p-primary-active-color: var(--p-primary-700);--p-content-border-color: var(--p-surface-200);--p-content-hover-background: var(--p-surface-100);--p-content-hover-color: var(--p-surface-800);--p-highlight-background: var(--p-primary-50);--p-highlight-color: var(--p-primary-700);--p-highlight-focus-background: var(--p-primary-100);--p-highlight-focus-color: var(--p-primary-800);--p-content-background: var(--p-surface-0);--p-text-color: var(--p-surface-700);--p-text-hover-color: var(--p-surface-800);--p-text-muted-color: var(--p-surface-500);--p-text-hover-muted-color: var(--p-surface-600)}@media(prefers-color-scheme:dark){:root{--p-surface-D: #fff;--p-surface-0: #fff;--p-surface-50: #fafafa;--p-surface-100: #f4f4f5;--p-surface-200: #e4e4e7;--p-surface-300: #d4d4d8;--p-surface-400: #a1a1aa;--p-surface-500: #71717a;--p-surface-600: #545250;--p-surface-700: #403e3c;--p-surface-800: #2b2927;--p-surface-850: color-mix(in srgb, var(--p-surface-800) 50%, var(--p-surface-900));--p-surface-900: #1c1a19;--p-surface-950: #0f0e0d;--p-primary: rgb(0, 125, 178);--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white);--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white);--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white);--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white);--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white);--p-primary-500: var(--p-primary);--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black);--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black);--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black);--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black);--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black);--p-primary-color: var(--p-primary-400);--p-primary-contrast-color: var(--p-surface-900);--p-primary-hover-color: var(--p-primary-300);--p-primary-active-color: var(--p-primary-200);--p-content-border-color: var(--p-surface-700);--p-content-hover-background: var(--p-surface-800);--p-content-hover-color: var(--p-surface-0);--p-highlight-background: color-mix(in srgb, var(--p-primary-400), transparent 84%);--p-highlight-color: rgba(255, 255, 255, 87%);--p-highlight-focus-background: color-mix(in srgb, var(--p-primary-400), transparent 76%);--p-highlight-focus-color: rgba(255, 255, 255, 87%);--p-content-background: var(--p-surface-900);--p-text-color: var(--p-surface-0);--p-text-hover-color: var(--p-surface-0);--p-text-muted-color: var(--p-surface-400);--p-text-hover-muted-color: var(--p-surface-300)}}.markdown-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--p-text-color, #333);line-height:1.6;width:100%;box-sizing:border-box;overflow-wrap:break-word;word-break:break-word}.markdown-empty{color:var(--p-text-muted-color, #999);font-style:italic;text-align:center}", yc = { props: { type: "object", properties: { content: { type: "string", default: "", description: "Markdown source text to render (GFM)" }, "allowed-tags": { type: "array", items: { type: "string" }, default: [], description: "Override sanitizer tag whitelist (empty = built-in defaults). WARNING: widening this is a security decision — only do it for trusted input." }, "allowed-attributes": { type: "string", default: "", description: "JSON-stringified `{tag: [attr,...]}` map for sanitize-html (empty = defaults)" } } } }, wc = { + wippy: yc }; -class Ac extends Gi { +class Cc extends jn { static get wippyConfig() { return { - propsSchema: dc.wippy.props, + propsSchema: wc.wippy.props, hostCssKeys: ["themeConfigUrl", "markdownCssUrl"], - inlineCss: lc, + inlineCss: xc, contentTemplate: "text/markdown" }; } static get vueConfig() { return { - rootComponent: oc + rootComponent: mc }; } } -wi(import.meta.url, Ac); +In(import.meta.url, Cc); diff --git a/src/wc-content-kit/public/markdown/wippy-meta.json b/src/wc-content-kit/public/markdown/wippy-meta.json new file mode 100644 index 0000000..dc5b361 --- /dev/null +++ b/src/wc-content-kit/public/markdown/wippy-meta.json @@ -0,0 +1 @@ +{"name":"@wippy/wc-markdown","version":"0.1.2","specification":"wippy-component-1.0","title":"Markdown Viewer","description":"Auto-registered Markdown renderer shipped by the wippy.wc-content-kit module. Tag: <wippy-markdown>.","browser":"dist/index.js","files":["dist/","src/","package.json"],"dependencies":{"@wippy-fe/theme":"^0.0.32","@wippy-fe/webcomponent-core":"^0.0.32","@wippy-fe/webcomponent-vue":"^0.0.32","markdown-it":"^14.1.0","sanitize-html":"^2.14.0"},"devDependencies":{"@types/markdown-it":"^14.1.0","@types/sanitize-html":"^2.13.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","@vitejs/plugin-vue":"^5.0.0","@wippy-fe/vite-plugin":"^0.0.32","@wippy-fe/proxy":"^0.0.32","eslint":"^8.57.0","eslint-plugin-vue":"^9.0.0","typescript":"^5.0.0","vite":"^6.0.0","vue":"^3.5.0","vue-eslint-parser":"^9.4.3","vue-tsc":"^2.0.0"},"peerDependencies":{"@wippy-fe/proxy":"^0.0.32","vue":"^3.5.0"},"wippy":{"tagName":"wippy-markdown","type":"widget","description":"Renders GitHub-Flavored Markdown to safe HTML. Pass markdown source via the `content` attribute. Output is sanitized with sanitize-html using a conservative default allowlist; widen it via `allowed-tags` and `allowed-attributes` only for trusted content.\n\nFeatures: headings, bold/italic, ordered/bulleted lists (nested), tables with alignment, fenced code blocks with language hints, inline code, blockquotes, links, images, autolinks, strikethrough, horizontal rules. Note: GFM task lists (`- [x]`) and footnotes are NOT enabled by default (require markdown-it plugins not bundled here).\n\nExamples:\n\n<wippy-markdown content=\"# Hello\nThis is **bold** and *italic* with [a link](https://example.com).\" />\n\n<wippy-markdown content=\"## Steps\n1. First\n2. Second\n - Nested bullet\n3. Third\" />\n\n<wippy-markdown content=\"| Col A | Col B |\n|:------|------:|\n| left | right |\" />\n\nSecurity: do NOT widen `allowed-tags` for untrusted markdown — anything you allow can be emitted by the source. Default allowlist is safe for arbitrary input.","props":{"type":"object","properties":{"content":{"type":"string","default":"","description":"Markdown source text to render (GFM)"},"allowed-tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Override sanitizer tag whitelist (empty = built-in defaults). WARNING: widening this is a security decision — only do it for trusted input."},"allowed-attributes":{"type":"string","default":"","description":"JSON-stringified `{tag: [attr,...]}` map for sanitize-html (empty = defaults)"}}},"scripts":{"build":"build","debug":"build:debug","test":"lint"}},"scripts":{"build":"vite build","build:debug":"vite build --mode development","dev":"vite build --watch","lint":"eslint src --ext .ts,.vue","lint:fix":"eslint src --ext .ts,.vue --fix"}} \ No newline at end of file diff --git a/src/wc-content-kit/public/mermaid/_baseUniq-B0FPZyMQ.js b/src/wc-content-kit/public/mermaid/_baseUniq-B0FPZyMQ.js deleted file mode 100644 index 257a649..0000000 --- a/src/wc-content-kit/public/mermaid/_baseUniq-B0FPZyMQ.js +++ /dev/null @@ -1,477 +0,0 @@ -import { aX as L, bl as ln, aH as A, aV as P, aG as W, bm as gn, bn as dn, bo as hn, bp as z, bq as pn, br as An, bs as m, aY as N, b1 as U, b4 as T, bt as _n, a$ as on, bu as wn, bv as On, aI as V, bw as vn, bx as R } from "./mermaid.core-Jw3znkh4.js"; -var Pn = "[object Symbol]"; -function x(n) { - return typeof n == "symbol" || L(n) && ln(n) == Pn; -} -function bn(n, r) { - for (var e = -1, i = n == null ? 0 : n.length, f = Array(i); ++e < i; ) - f[e] = r(n[e], e, n); - return f; -} -var B = P ? P.prototype : void 0, H = B ? B.toString : void 0; -function k(n) { - if (typeof n == "string") - return n; - if (A(n)) - return bn(n, k) + ""; - if (x(n)) - return H ? H.call(n) : ""; - var r = n + ""; - return r == "0" && 1 / n == -1 / 0 ? "-0" : r; -} -function yn() { -} -function En(n, r) { - for (var e = -1, i = n == null ? 0 : n.length; ++e < i && r(n[e], e, n) !== !1; ) - ; - return n; -} -function cn(n, r, e, i) { - for (var f = n.length, t = e + -1; ++t < f; ) - if (r(n[t], t, n)) - return t; - return -1; -} -function Tn(n) { - return n !== n; -} -function In(n, r, e) { - for (var i = e - 1, f = n.length; ++i < f; ) - if (n[i] === r) - return i; - return -1; -} -function Rn(n, r, e) { - return r === r ? In(n, r, e) : cn(n, Tn, e); -} -function Sn(n, r) { - var e = n == null ? 0 : n.length; - return !!e && Rn(n, r, 0) > -1; -} -function M(n) { - return W(n) ? gn(n) : dn(n); -} -var Ln = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, xn = /^\w*$/; -function $(n, r) { - if (A(n)) - return !1; - var e = typeof n; - return e == "number" || e == "symbol" || e == "boolean" || n == null || x(n) ? !0 : xn.test(n) || !Ln.test(n) || r != null && n in Object(r); -} -var Mn = 500; -function $n(n) { - var r = hn(n, function(i) { - return e.size === Mn && e.clear(), i; - }), e = r.cache; - return r; -} -var Cn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Gn = /\\(\\)?/g, Dn = $n(function(n) { - var r = []; - return n.charCodeAt(0) === 46 && r.push(""), n.replace(Cn, function(e, i, f, t) { - r.push(f ? t.replace(Gn, "$1") : i || e); - }), r; -}); -function Fn(n) { - return n == null ? "" : k(n); -} -function j(n, r) { - return A(n) ? n : $(n, r) ? [n] : Dn(Fn(n)); -} -function I(n) { - if (typeof n == "string" || x(n)) - return n; - var r = n + ""; - return r == "0" && 1 / n == -1 / 0 ? "-0" : r; -} -function nn(n, r) { - r = j(r, n); - for (var e = 0, i = r.length; n != null && e < i; ) - n = n[I(r[e++])]; - return e && e == i ? n : void 0; -} -function mn(n, r, e) { - var i = n == null ? void 0 : nn(n, r); - return i === void 0 ? e : i; -} -function rn(n, r) { - for (var e = -1, i = r.length, f = n.length; ++e < i; ) - n[f + e] = r[e]; - return n; -} -var K = P ? P.isConcatSpreadable : void 0; -function Nn(n) { - return A(n) || z(n) || !!(K && n && n[K]); -} -function Kr(n, r, e, i, f) { - var t = -1, s = n.length; - for (e || (e = Nn), f || (f = []); ++t < s; ) { - var u = n[t]; - e(u) ? rn(f, u) : i || (f[f.length] = u); - } - return f; -} -function Un(n, r, e, i) { - var f = -1, t = n == null ? 0 : n.length; - for (i && t && (e = n[++f]); ++f < t; ) - e = r(e, n[f], f, n); - return e; -} -function en(n, r) { - for (var e = -1, i = n == null ? 0 : n.length, f = 0, t = []; ++e < i; ) { - var s = n[e]; - r(s, e, n) && (t[f++] = s); - } - return t; -} -function Bn() { - return []; -} -var Hn = Object.prototype, Kn = Hn.propertyIsEnumerable, q = Object.getOwnPropertySymbols, qn = q ? function(n) { - return n == null ? [] : (n = Object(n), en(q(n), function(r) { - return Kn.call(n, r); - })); -} : Bn; -function Yn(n, r, e) { - var i = r(n); - return A(n) ? i : rn(i, e(n)); -} -function Y(n) { - return Yn(n, M, qn); -} -var Zn = "__lodash_hash_undefined__"; -function Xn(n) { - return this.__data__.set(n, Zn), this; -} -function Jn(n) { - return this.__data__.has(n); -} -function b(n) { - var r = -1, e = n == null ? 0 : n.length; - for (this.__data__ = new pn(); ++r < e; ) - this.add(n[r]); -} -b.prototype.add = b.prototype.push = Xn; -b.prototype.has = Jn; -function Qn(n, r) { - for (var e = -1, i = n == null ? 0 : n.length; ++e < i; ) - if (r(n[e], e, n)) - return !0; - return !1; -} -function tn(n, r) { - return n.has(r); -} -var Wn = 1, zn = 2; -function fn(n, r, e, i, f, t) { - var s = e & Wn, u = n.length, a = r.length; - if (u != a && !(s && a > u)) - return !1; - var h = t.get(n), g = t.get(r); - if (h && g) - return h == r && g == n; - var l = -1, d = !0, o = e & zn ? new b() : void 0; - for (t.set(n, r), t.set(r, n); ++l < u; ) { - var p = n[l], _ = r[l]; - if (i) - var w = s ? i(_, p, l, r, n, t) : i(p, _, l, n, r, t); - if (w !== void 0) { - if (w) - continue; - d = !1; - break; - } - if (o) { - if (!Qn(r, function(O, v) { - if (!tn(o, v) && (p === O || f(p, O, e, i, t))) - return o.push(v); - })) { - d = !1; - break; - } - } else if (!(p === _ || f(p, _, e, i, t))) { - d = !1; - break; - } - } - return t.delete(n), t.delete(r), d; -} -function Vn(n) { - var r = -1, e = Array(n.size); - return n.forEach(function(i, f) { - e[++r] = [f, i]; - }), e; -} -function C(n) { - var r = -1, e = Array(n.size); - return n.forEach(function(i) { - e[++r] = i; - }), e; -} -var kn = 1, jn = 2, nr = "[object Boolean]", rr = "[object Date]", er = "[object Error]", ir = "[object Map]", tr = "[object Number]", fr = "[object RegExp]", sr = "[object Set]", ur = "[object String]", ar = "[object Symbol]", lr = "[object ArrayBuffer]", gr = "[object DataView]", Z = P ? P.prototype : void 0, S = Z ? Z.valueOf : void 0; -function dr(n, r, e, i, f, t, s) { - switch (e) { - case gr: - if (n.byteLength != r.byteLength || n.byteOffset != r.byteOffset) - return !1; - n = n.buffer, r = r.buffer; - case lr: - return !(n.byteLength != r.byteLength || !t(new m(n), new m(r))); - case nr: - case rr: - case tr: - return An(+n, +r); - case er: - return n.name == r.name && n.message == r.message; - case fr: - case ur: - return n == r + ""; - case ir: - var u = Vn; - case sr: - var a = i & kn; - if (u || (u = C), n.size != r.size && !a) - return !1; - var h = s.get(n); - if (h) - return h == r; - i |= jn, s.set(n, r); - var g = fn(u(n), u(r), i, f, t, s); - return s.delete(n), g; - case ar: - if (S) - return S.call(n) == S.call(r); - } - return !1; -} -var hr = 1, pr = Object.prototype, Ar = pr.hasOwnProperty; -function _r(n, r, e, i, f, t) { - var s = e & hr, u = Y(n), a = u.length, h = Y(r), g = h.length; - if (a != g && !s) - return !1; - for (var l = a; l--; ) { - var d = u[l]; - if (!(s ? d in r : Ar.call(r, d))) - return !1; - } - var o = t.get(n), p = t.get(r); - if (o && p) - return o == r && p == n; - var _ = !0; - t.set(n, r), t.set(r, n); - for (var w = s; ++l < a; ) { - d = u[l]; - var O = n[d], v = r[d]; - if (i) - var F = s ? i(v, O, d, r, n, t) : i(O, v, d, n, r, t); - if (!(F === void 0 ? O === v || f(O, v, e, i, t) : F)) { - _ = !1; - break; - } - w || (w = d == "constructor"); - } - if (_ && !w) { - var y = n.constructor, E = r.constructor; - y != E && "constructor" in n && "constructor" in r && !(typeof y == "function" && y instanceof y && typeof E == "function" && E instanceof E) && (_ = !1); - } - return t.delete(n), t.delete(r), _; -} -var or = 1, X = "[object Arguments]", J = "[object Array]", c = "[object Object]", wr = Object.prototype, Q = wr.hasOwnProperty; -function Or(n, r, e, i, f, t) { - var s = A(n), u = A(r), a = s ? J : N(n), h = u ? J : N(r); - a = a == X ? c : a, h = h == X ? c : h; - var g = a == c, l = h == c, d = a == h; - if (d && U(n)) { - if (!U(r)) - return !1; - s = !0, g = !1; - } - if (d && !g) - return t || (t = new T()), s || _n(n) ? fn(n, r, e, i, f, t) : dr(n, r, a, e, i, f, t); - if (!(e & or)) { - var o = g && Q.call(n, "__wrapped__"), p = l && Q.call(r, "__wrapped__"); - if (o || p) { - var _ = o ? n.value() : n, w = p ? r.value() : r; - return t || (t = new T()), f(_, w, e, i, t); - } - } - return d ? (t || (t = new T()), _r(n, r, e, i, f, t)) : !1; -} -function G(n, r, e, i, f) { - return n === r ? !0 : n == null || r == null || !L(n) && !L(r) ? n !== n && r !== r : Or(n, r, e, i, G, f); -} -var vr = 1, Pr = 2; -function br(n, r, e, i) { - var f = e.length, t = f; - if (n == null) - return !t; - for (n = Object(n); f--; ) { - var s = e[f]; - if (s[2] ? s[1] !== n[s[0]] : !(s[0] in n)) - return !1; - } - for (; ++f < t; ) { - s = e[f]; - var u = s[0], a = n[u], h = s[1]; - if (s[2]) { - if (a === void 0 && !(u in n)) - return !1; - } else { - var g = new T(), l; - if (!(l === void 0 ? G(h, a, vr | Pr, i, g) : l)) - return !1; - } - } - return !0; -} -function sn(n) { - return n === n && !on(n); -} -function yr(n) { - for (var r = M(n), e = r.length; e--; ) { - var i = r[e], f = n[i]; - r[e] = [i, f, sn(f)]; - } - return r; -} -function un(n, r) { - return function(e) { - return e == null ? !1 : e[n] === r && (r !== void 0 || n in Object(e)); - }; -} -function Er(n) { - var r = yr(n); - return r.length == 1 && r[0][2] ? un(r[0][0], r[0][1]) : function(e) { - return e === n || br(e, n, r); - }; -} -function cr(n, r) { - return n != null && r in Object(n); -} -function Tr(n, r, e) { - r = j(r, n); - for (var i = -1, f = r.length, t = !1; ++i < f; ) { - var s = I(r[i]); - if (!(t = n != null && e(n, s))) - break; - n = n[s]; - } - return t || ++i != f ? t : (f = n == null ? 0 : n.length, !!f && wn(f) && On(s, f) && (A(n) || z(n))); -} -function Ir(n, r) { - return n != null && Tr(n, r, cr); -} -var Rr = 1, Sr = 2; -function Lr(n, r) { - return $(n) && sn(r) ? un(I(n), r) : function(e) { - var i = mn(e, n); - return i === void 0 && i === r ? Ir(e, n) : G(r, i, Rr | Sr); - }; -} -function xr(n) { - return function(r) { - return r?.[n]; - }; -} -function Mr(n) { - return function(r) { - return nn(r, n); - }; -} -function $r(n) { - return $(n) ? xr(I(n)) : Mr(n); -} -function an(n) { - return typeof n == "function" ? n : n == null ? V : typeof n == "object" ? A(n) ? Lr(n[0], n[1]) : Er(n) : $r(n); -} -function Cr(n, r) { - return n && vn(n, r, M); -} -function Gr(n, r) { - return function(e, i) { - if (e == null) - return e; - if (!W(e)) - return n(e, i); - for (var f = e.length, t = -1, s = Object(e); ++t < f && i(s[t], t, s) !== !1; ) - ; - return e; - }; -} -var D = Gr(Cr); -function Dr(n) { - return typeof n == "function" ? n : V; -} -function qr(n, r) { - var e = A(n) ? En : D; - return e(n, Dr(r)); -} -function Fr(n, r) { - var e = []; - return D(n, function(i, f, t) { - r(i, f, t) && e.push(i); - }), e; -} -function Yr(n, r) { - var e = A(n) ? en : Fr; - return e(n, an(r)); -} -function mr(n, r, e, i, f) { - return f(n, function(t, s, u) { - e = i ? (i = !1, t) : r(e, t, s, u); - }), e; -} -function Zr(n, r, e) { - var i = A(n) ? Un : mr, f = arguments.length < 3; - return i(n, an(r), e, f, D); -} -var Nr = 1 / 0, Ur = R && 1 / C(new R([, -0]))[1] == Nr ? function(n) { - return new R(n); -} : yn, Br = 200; -function Xr(n, r, e) { - var i = -1, f = Sn, t = n.length, s = !0, u = [], a = u; - if (t >= Br) { - var h = r ? null : Ur(n); - if (h) - return C(h); - s = !1, f = tn, a = new b(); - } else - a = r ? [] : u; - n: - for (; ++i < t; ) { - var g = n[i], l = r ? r(g) : g; - if (g = g !== 0 ? g : 0, s && l === l) { - for (var d = a.length; d--; ) - if (a[d] === l) - continue n; - r && a.push(l), u.push(g); - } else f(a, l, e) || (a !== u && a.push(l), u.push(g)); - } - return u; -} -export { - D as a, - Kr as b, - an as c, - bn as d, - rn as e, - Yn as f, - qn as g, - En as h, - x as i, - Y as j, - M as k, - Xr as l, - Yr as m, - qr as n, - cn as o, - Dr as p, - Cr as q, - Zr as r, - Bn as s, - Tr as t, - j as u, - I as v, - nn as w, - Ir as x, - Fn as y -}; diff --git a/src/wc-content-kit/public/mermaid/arc-DoJBinwv.js b/src/wc-content-kit/public/mermaid/arc-DoJBinwv.js new file mode 100644 index 0000000..ba3dc8b --- /dev/null +++ b/src/wc-content-kit/public/mermaid/arc-DoJBinwv.js @@ -0,0 +1,83 @@ +import { bl as ln, aO as an, H as z, b8 as w, F as G, ah as un, W as y, bd as tn, b9 as J, aI as _, c as rn, m as o, aG as on, j as sn, d as fn } from "./mermaid.core-FRDjOodn.js"; +function cn(l) { + return l.innerRadius; +} +function yn(l) { + return l.outerRadius; +} +function gn(l) { + return l.startAngle; +} +function dn(l) { + return l.endAngle; +} +function mn(l) { + return l && l.padAngle; +} +function pn(l, h, j, I, v, A, H, a) { + var q = j - l, i = I - h, n = H - v, d = a - A, u = d * q - n * i; + if (!(u * u < y)) + return u = (n * (h - A) - d * (l - v)) / u, [l + u * q, h + u * i]; +} +function U(l, h, j, I, v, A, H) { + var a = l - j, q = h - I, i = (H ? A : -A) / J(a * a + q * q), n = i * q, d = -i * a, u = l + n, s = h + d, f = j + n, c = I + d, S = (u + f) / 2, t = (s + c) / 2, m = f - u, g = c - s, R = m * m + g * g, T = v - A, P = u * c - f * s, D = (g < 0 ? -1 : 1) * J(on(0, T * T * R - P * P)), E = (P * g - m * D) / R, F = (-P * m - g * D) / R, b = (P * g + m * D) / R, p = (-P * m + g * D) / R, x = E - S, e = F - t, r = b - S, W = p - t; + return x * x + e * e > r * r + W * W && (E = b, F = p), { + cx: E, + cy: F, + x01: -n, + y01: -d, + x11: E * (v / T - 1), + y11: F * (v / T - 1) + }; +} +function hn() { + var l = cn, h = yn, j = G(0), I = null, v = gn, A = dn, H = mn, a = null, q = ln(i); + function i() { + var n, d, u = +l.apply(this, arguments), s = +h.apply(this, arguments), f = v.apply(this, arguments) - un, c = A.apply(this, arguments) - un, S = rn(c - f), t = c > f; + if (a || (a = n = q()), s < u && (d = s, s = u, u = d), !(s > y)) a.moveTo(0, 0); + else if (S > tn - y) + a.moveTo(s * z(f), s * w(f)), a.arc(0, 0, s, f, c, !t), u > y && (a.moveTo(u * z(c), u * w(c)), a.arc(0, 0, u, c, f, t)); + else { + var m = f, g = c, R = f, T = c, P = S, D = S, E = H.apply(this, arguments) / 2, F = E > y && (I ? +I.apply(this, arguments) : J(u * u + s * s)), b = _(rn(s - u) / 2, +j.apply(this, arguments)), p = b, x = b, e, r; + if (F > y) { + var W = sn(F / u * w(E)), K = sn(F / s * w(E)); + (P -= W * 2) > y ? (W *= t ? 1 : -1, R += W, T -= W) : (P = 0, R = T = (f + c) / 2), (D -= K * 2) > y ? (K *= t ? 1 : -1, m += K, g -= K) : (D = 0, m = g = (f + c) / 2); + } + var B = s * z(m), C = s * w(m), L = u * z(T), M = u * w(T); + if (b > y) { + var N = s * z(g), Q = s * w(g), V = u * z(R), X = u * w(R), O; + if (S < an) + if (O = pn(B, C, V, X, N, Q, L, M)) { + var Y = B - O[0], Z = C - O[1], $ = N - O[0], k = Q - O[1], nn = 1 / w(fn((Y * $ + Z * k) / (J(Y * Y + Z * Z) * J($ * $ + k * k))) / 2), en = J(O[0] * O[0] + O[1] * O[1]); + p = _(b, (u - en) / (nn - 1)), x = _(b, (s - en) / (nn + 1)); + } else + p = x = 0; + } + D > y ? x > y ? (e = U(V, X, B, C, s, x, t), r = U(N, Q, L, M, s, x, t), a.moveTo(e.cx + e.x01, e.cy + e.y01), x < b ? a.arc(e.cx, e.cy, x, o(e.y01, e.x01), o(r.y01, r.x01), !t) : (a.arc(e.cx, e.cy, x, o(e.y01, e.x01), o(e.y11, e.x11), !t), a.arc(0, 0, s, o(e.cy + e.y11, e.cx + e.x11), o(r.cy + r.y11, r.cx + r.x11), !t), a.arc(r.cx, r.cy, x, o(r.y11, r.x11), o(r.y01, r.x01), !t))) : (a.moveTo(B, C), a.arc(0, 0, s, m, g, !t)) : a.moveTo(B, C), !(u > y) || !(P > y) ? a.lineTo(L, M) : p > y ? (e = U(L, M, N, Q, u, -p, t), r = U(B, C, V, X, u, -p, t), a.lineTo(e.cx + e.x01, e.cy + e.y01), p < b ? a.arc(e.cx, e.cy, p, o(e.y01, e.x01), o(r.y01, r.x01), !t) : (a.arc(e.cx, e.cy, p, o(e.y01, e.x01), o(e.y11, e.x11), !t), a.arc(0, 0, u, o(e.cy + e.y11, e.cx + e.x11), o(r.cy + r.y11, r.cx + r.x11), t), a.arc(r.cx, r.cy, p, o(r.y11, r.x11), o(r.y01, r.x01), !t))) : a.arc(0, 0, u, T, R, t); + } + if (a.closePath(), n) return a = null, n + "" || null; + } + return i.centroid = function() { + var n = (+l.apply(this, arguments) + +h.apply(this, arguments)) / 2, d = (+v.apply(this, arguments) + +A.apply(this, arguments)) / 2 - an / 2; + return [z(d) * n, w(d) * n]; + }, i.innerRadius = function(n) { + return arguments.length ? (l = typeof n == "function" ? n : G(+n), i) : l; + }, i.outerRadius = function(n) { + return arguments.length ? (h = typeof n == "function" ? n : G(+n), i) : h; + }, i.cornerRadius = function(n) { + return arguments.length ? (j = typeof n == "function" ? n : G(+n), i) : j; + }, i.padRadius = function(n) { + return arguments.length ? (I = n == null ? null : typeof n == "function" ? n : G(+n), i) : I; + }, i.startAngle = function(n) { + return arguments.length ? (v = typeof n == "function" ? n : G(+n), i) : v; + }, i.endAngle = function(n) { + return arguments.length ? (A = typeof n == "function" ? n : G(+n), i) : A; + }, i.padAngle = function(n) { + return arguments.length ? (H = typeof n == "function" ? n : G(+n), i) : H; + }, i.context = function(n) { + return arguments.length ? (a = n ?? null, i) : a; + }, i; +} +export { + hn as d +}; diff --git a/src/wc-content-kit/public/mermaid/arc-P0Wtuqay.js b/src/wc-content-kit/public/mermaid/arc-P0Wtuqay.js deleted file mode 100644 index 2dadece..0000000 --- a/src/wc-content-kit/public/mermaid/arc-P0Wtuqay.js +++ /dev/null @@ -1,83 +0,0 @@ -import { a0 as ln, a1 as an, a2 as H, a3 as q, a4 as B, a5 as un, a6 as y, a7 as tn, a8 as L, a9 as _, aa as rn, ab as o, ac as on, ad as sn, ae as fn } from "./mermaid.core-Jw3znkh4.js"; -function cn(l) { - return l.innerRadius; -} -function yn(l) { - return l.outerRadius; -} -function gn(l) { - return l.startAngle; -} -function dn(l) { - return l.endAngle; -} -function mn(l) { - return l && l.padAngle; -} -function pn(l, h, I, D, v, A, C, a) { - var O = I - l, i = D - h, n = C - v, d = a - A, u = d * O - n * i; - if (!(u * u < y)) - return u = (n * (h - A) - d * (l - v)) / u, [l + u * O, h + u * i]; -} -function W(l, h, I, D, v, A, C) { - var a = l - I, O = h - D, i = (C ? A : -A) / L(a * a + O * O), n = i * O, d = -i * a, u = l + n, s = h + d, f = I + n, c = D + d, F = (u + f) / 2, t = (s + c) / 2, m = f - u, g = c - s, R = m * m + g * g, T = v - A, P = u * c - f * s, S = (g < 0 ? -1 : 1) * L(on(0, T * T * R - P * P)), j = (P * g - m * S) / R, z = (-P * m - g * S) / R, w = (P * g + m * S) / R, p = (-P * m + g * S) / R, x = j - F, e = z - t, r = w - F, G = p - t; - return x * x + e * e > r * r + G * G && (j = w, z = p), { - cx: j, - cy: z, - x01: -n, - y01: -d, - x11: j * (v / T - 1), - y11: z * (v / T - 1) - }; -} -function hn() { - var l = cn, h = yn, I = B(0), D = null, v = gn, A = dn, C = mn, a = null, O = ln(i); - function i() { - var n, d, u = +l.apply(this, arguments), s = +h.apply(this, arguments), f = v.apply(this, arguments) - un, c = A.apply(this, arguments) - un, F = rn(c - f), t = c > f; - if (a || (a = n = O()), s < u && (d = s, s = u, u = d), !(s > y)) a.moveTo(0, 0); - else if (F > tn - y) - a.moveTo(s * H(f), s * q(f)), a.arc(0, 0, s, f, c, !t), u > y && (a.moveTo(u * H(c), u * q(c)), a.arc(0, 0, u, c, f, t)); - else { - var m = f, g = c, R = f, T = c, P = F, S = F, j = C.apply(this, arguments) / 2, z = j > y && (D ? +D.apply(this, arguments) : L(u * u + s * s)), w = _(rn(s - u) / 2, +I.apply(this, arguments)), p = w, x = w, e, r; - if (z > y) { - var G = sn(z / u * q(j)), M = sn(z / s * q(j)); - (P -= G * 2) > y ? (G *= t ? 1 : -1, R += G, T -= G) : (P = 0, R = T = (f + c) / 2), (S -= M * 2) > y ? (M *= t ? 1 : -1, m += M, g -= M) : (S = 0, m = g = (f + c) / 2); - } - var J = s * H(m), K = s * q(m), N = u * H(T), Q = u * q(T); - if (w > y) { - var U = s * H(g), V = s * q(g), X = u * H(R), Y = u * q(R), E; - if (F < an) - if (E = pn(J, K, X, Y, U, V, N, Q)) { - var Z = J - E[0], $ = K - E[1], b = U - E[0], k = V - E[1], nn = 1 / q(fn((Z * b + $ * k) / (L(Z * Z + $ * $) * L(b * b + k * k))) / 2), en = L(E[0] * E[0] + E[1] * E[1]); - p = _(w, (u - en) / (nn - 1)), x = _(w, (s - en) / (nn + 1)); - } else - p = x = 0; - } - S > y ? x > y ? (e = W(X, Y, J, K, s, x, t), r = W(U, V, N, Q, s, x, t), a.moveTo(e.cx + e.x01, e.cy + e.y01), x < w ? a.arc(e.cx, e.cy, x, o(e.y01, e.x01), o(r.y01, r.x01), !t) : (a.arc(e.cx, e.cy, x, o(e.y01, e.x01), o(e.y11, e.x11), !t), a.arc(0, 0, s, o(e.cy + e.y11, e.cx + e.x11), o(r.cy + r.y11, r.cx + r.x11), !t), a.arc(r.cx, r.cy, x, o(r.y11, r.x11), o(r.y01, r.x01), !t))) : (a.moveTo(J, K), a.arc(0, 0, s, m, g, !t)) : a.moveTo(J, K), !(u > y) || !(P > y) ? a.lineTo(N, Q) : p > y ? (e = W(N, Q, U, V, u, -p, t), r = W(J, K, X, Y, u, -p, t), a.lineTo(e.cx + e.x01, e.cy + e.y01), p < w ? a.arc(e.cx, e.cy, p, o(e.y01, e.x01), o(r.y01, r.x01), !t) : (a.arc(e.cx, e.cy, p, o(e.y01, e.x01), o(e.y11, e.x11), !t), a.arc(0, 0, u, o(e.cy + e.y11, e.cx + e.x11), o(r.cy + r.y11, r.cx + r.x11), t), a.arc(r.cx, r.cy, p, o(r.y11, r.x11), o(r.y01, r.x01), !t))) : a.arc(0, 0, u, T, R, t); - } - if (a.closePath(), n) return a = null, n + "" || null; - } - return i.centroid = function() { - var n = (+l.apply(this, arguments) + +h.apply(this, arguments)) / 2, d = (+v.apply(this, arguments) + +A.apply(this, arguments)) / 2 - an / 2; - return [H(d) * n, q(d) * n]; - }, i.innerRadius = function(n) { - return arguments.length ? (l = typeof n == "function" ? n : B(+n), i) : l; - }, i.outerRadius = function(n) { - return arguments.length ? (h = typeof n == "function" ? n : B(+n), i) : h; - }, i.cornerRadius = function(n) { - return arguments.length ? (I = typeof n == "function" ? n : B(+n), i) : I; - }, i.padRadius = function(n) { - return arguments.length ? (D = n == null ? null : typeof n == "function" ? n : B(+n), i) : D; - }, i.startAngle = function(n) { - return arguments.length ? (v = typeof n == "function" ? n : B(+n), i) : v; - }, i.endAngle = function(n) { - return arguments.length ? (A = typeof n == "function" ? n : B(+n), i) : A; - }, i.padAngle = function(n) { - return arguments.length ? (C = typeof n == "function" ? n : B(+n), i) : C; - }, i.context = function(n) { - return arguments.length ? (a = n ?? null, i) : a; - }, i; -} -export { - hn as d -}; diff --git a/src/wc-content-kit/public/mermaid/architecture-YZFGNWBL-BifDOE8a.js b/src/wc-content-kit/public/mermaid/architecture-YZFGNWBL-BifDOE8a.js deleted file mode 100644 index ad5a8a6..0000000 --- a/src/wc-content-kit/public/mermaid/architecture-YZFGNWBL-BifDOE8a.js +++ /dev/null @@ -1,6 +0,0 @@ -import { f as r } from "./mermaid-parser.core-DQ6c91Zg.js"; -import { A as o } from "./mermaid-parser.core-DQ6c91Zg.js"; -export { - o as ArchitectureModule, - r as createArchitectureServices -}; diff --git a/src/wc-content-kit/public/mermaid/architectureDiagram-Q4EWVU46-Chtsrrsm.js b/src/wc-content-kit/public/mermaid/architectureDiagram-3BPJPVTR-BY0CigTr.js similarity index 72% rename from src/wc-content-kit/public/mermaid/architectureDiagram-Q4EWVU46-Chtsrrsm.js rename to src/wc-content-kit/public/mermaid/architectureDiagram-3BPJPVTR-BY0CigTr.js index 49cc80b..5666f1d 100644 --- a/src/wc-content-kit/public/mermaid/architectureDiagram-Q4EWVU46-Chtsrrsm.js +++ b/src/wc-content-kit/public/mermaid/architectureDiagram-3BPJPVTR-BY0CigTr.js @@ -1,11 +1,11 @@ -import { _ as dt, I as Be, Y as ke, l as Re, b as Ze, a as qe, p as Qe, q as Je, g as Ke, s as je, z as _e, F as tr, G as er, D as rr, c as ye, ak as Ee, aJ as ve, i as ir, d as ar, x as nr, aK as or, aL as sr } from "./mermaid.core-Jw3znkh4.js"; -import { p as hr } from "./chunk-4BX2VUAB-OP5xfQzz.js"; -import { p as lr } from "./mermaid-parser.core-DQ6c91Zg.js"; -import { c as Se } from "./cytoscape.esm-p9_IyyOE.js"; +import { b as dt, a$ as $e, b6 as Ze, aD as Re, b1 as ke, a2 as qe, b3 as Qe, a5 as Je, a1 as Ke, b0 as je, t as _e, s as tr, a3 as er, S as rr, a4 as ye, I as Ee, a8 as ve, aZ as ir, a_ as ar, a6 as nr, aU as or, bi as sr } from "./mermaid.core-FRDjOodn.js"; +import { p as hr } from "./chunk-4BX2VUAB-CLXd73Dk.js"; +import { p as lr } from "./wardley-L42UT6IY-C-B6soca.js"; +import { c as Se } from "./cytoscape.esm-DLIceJxh.js"; import { g as fr } from "./index.js"; var se = { exports: {} }, he = { exports: {} }, le = { exports: {} }, cr = le.exports, we; function gr() { - return we || (we = 1, (function(C, P) { + return we || (we = 1, (function(C, G) { (function(U, L) { C.exports = L(); })(cr, function() { @@ -125,8 +125,8 @@ function gr() { /***/ (function(w, U, L) { var u = L(2), h = L(10), a = L(13), e = L(0), i = L(16), f = L(5); - function r(t, o, s, c) { - s == null && c == null && (c = o), u.call(this, c), t.graphManager != null && (t = t.graphManager), this.estimatedSize = h.MIN_VALUE, this.inclusionTreeDepth = h.MAX_VALUE, this.vGraphObject = c, this.edges = [], this.graphManager = t, s != null && o != null ? this.rect = new a(o.x, o.y, s.width, s.height) : this.rect = new a(); + function r(t, s, o, c) { + o == null && c == null && (c = s), u.call(this, c), t.graphManager != null && (t = t.graphManager), this.estimatedSize = h.MIN_VALUE, this.inclusionTreeDepth = h.MAX_VALUE, this.vGraphObject = c, this.edges = [], this.graphManager = t, o != null && s != null ? this.rect = new a(s.x, s.y, o.width, o.height) : this.rect = new a(); } r.prototype = Object.create(u.prototype); for (var v in u) @@ -159,54 +159,54 @@ function gr() { return Math.sqrt(this.rect.width * this.rect.width + this.rect.height * this.rect.height); }, r.prototype.getHalfTheDiagonal = function() { return Math.sqrt(this.rect.height * this.rect.height + this.rect.width * this.rect.width) / 2; - }, r.prototype.setRect = function(t, o) { - this.rect.x = t.x, this.rect.y = t.y, this.rect.width = o.width, this.rect.height = o.height; - }, r.prototype.setCenter = function(t, o) { - this.rect.x = t - this.rect.width / 2, this.rect.y = o - this.rect.height / 2; - }, r.prototype.setLocation = function(t, o) { - this.rect.x = t, this.rect.y = o; - }, r.prototype.moveBy = function(t, o) { - this.rect.x += t, this.rect.y += o; + }, r.prototype.setRect = function(t, s) { + this.rect.x = t.x, this.rect.y = t.y, this.rect.width = s.width, this.rect.height = s.height; + }, r.prototype.setCenter = function(t, s) { + this.rect.x = t - this.rect.width / 2, this.rect.y = s - this.rect.height / 2; + }, r.prototype.setLocation = function(t, s) { + this.rect.x = t, this.rect.y = s; + }, r.prototype.moveBy = function(t, s) { + this.rect.x += t, this.rect.y += s; }, r.prototype.getEdgeListToNode = function(t) { - var o = [], s = this; - return s.edges.forEach(function(c) { + var s = [], o = this; + return o.edges.forEach(function(c) { if (c.target == t) { - if (c.source != s) throw "Incorrect edge source!"; - o.push(c); + if (c.source != o) throw "Incorrect edge source!"; + s.push(c); } - }), o; + }), s; }, r.prototype.getEdgesBetween = function(t) { - var o = [], s = this; - return s.edges.forEach(function(c) { - if (!(c.source == s || c.target == s)) throw "Incorrect edge source and/or target"; - (c.target == t || c.source == t) && o.push(c); - }), o; + var s = [], o = this; + return o.edges.forEach(function(c) { + if (!(c.source == o || c.target == o)) throw "Incorrect edge source and/or target"; + (c.target == t || c.source == t) && s.push(c); + }), s; }, r.prototype.getNeighborsList = function() { - var t = /* @__PURE__ */ new Set(), o = this; - return o.edges.forEach(function(s) { - if (s.source == o) - t.add(s.target); + var t = /* @__PURE__ */ new Set(), s = this; + return s.edges.forEach(function(o) { + if (o.source == s) + t.add(o.target); else { - if (s.target != o) + if (o.target != s) throw "Incorrect incidency!"; - t.add(s.source); + t.add(o.source); } }), t; }, r.prototype.withChildren = function() { - var t = /* @__PURE__ */ new Set(), o, s; + var t = /* @__PURE__ */ new Set(), s, o; if (t.add(this), this.child != null) for (var c = this.child.getNodes(), l = 0; l < c.length; l++) - o = c[l], s = o.withChildren(), s.forEach(function(T) { + s = c[l], o = s.withChildren(), o.forEach(function(T) { t.add(T); }); return t; }, r.prototype.getNoOfChildren = function() { - var t = 0, o; + var t = 0, s; if (this.child == null) t = 1; else - for (var s = this.child.getNodes(), c = 0; c < s.length; c++) - o = s[c], t += o.getNoOfChildren(); + for (var o = this.child.getNodes(), c = 0; c < o.length; c++) + s = o[c], t += s.getNoOfChildren(); return t == 0 && (t = 1), t; }, r.prototype.getEstimatedSize = function() { if (this.estimatedSize == h.MIN_VALUE) @@ -215,18 +215,18 @@ function gr() { }, r.prototype.calcEstimatedSize = function() { return this.child == null ? this.estimatedSize = (this.rect.width + this.rect.height) / 2 : (this.estimatedSize = this.child.calcEstimatedSize(), this.rect.width = this.estimatedSize, this.rect.height = this.estimatedSize, this.estimatedSize); }, r.prototype.scatter = function() { - var t, o, s = -e.INITIAL_WORLD_BOUNDARY, c = e.INITIAL_WORLD_BOUNDARY; - t = e.WORLD_CENTER_X + i.nextDouble() * (c - s) + s; + var t, s, o = -e.INITIAL_WORLD_BOUNDARY, c = e.INITIAL_WORLD_BOUNDARY; + t = e.WORLD_CENTER_X + i.nextDouble() * (c - o) + o; var l = -e.INITIAL_WORLD_BOUNDARY, T = e.INITIAL_WORLD_BOUNDARY; - o = e.WORLD_CENTER_Y + i.nextDouble() * (T - l) + l, this.rect.x = t, this.rect.y = o; + s = e.WORLD_CENTER_Y + i.nextDouble() * (T - l) + l, this.rect.x = t, this.rect.y = s; }, r.prototype.updateBounds = function() { if (this.getChild() == null) throw "assert failed"; if (this.getChild().getNodes().length != 0) { var t = this.getChild(); if (t.updateBounds(!0), this.rect.x = t.getLeft(), this.rect.y = t.getTop(), this.setWidth(t.getRight() - t.getLeft()), this.setHeight(t.getBottom() - t.getTop()), e.NODE_DIMENSIONS_INCLUDE_LABELS) { - var o = t.getRight() - t.getLeft(), s = t.getBottom() - t.getTop(); - this.labelWidth && (this.labelPosHorizontal == "left" ? (this.rect.x -= this.labelWidth, this.setWidth(o + this.labelWidth)) : this.labelPosHorizontal == "center" && this.labelWidth > o ? (this.rect.x -= (this.labelWidth - o) / 2, this.setWidth(this.labelWidth)) : this.labelPosHorizontal == "right" && this.setWidth(o + this.labelWidth)), this.labelHeight && (this.labelPosVertical == "top" ? (this.rect.y -= this.labelHeight, this.setHeight(s + this.labelHeight)) : this.labelPosVertical == "center" && this.labelHeight > s ? (this.rect.y -= (this.labelHeight - s) / 2, this.setHeight(this.labelHeight)) : this.labelPosVertical == "bottom" && this.setHeight(s + this.labelHeight)); + var s = t.getRight() - t.getLeft(), o = t.getBottom() - t.getTop(); + this.labelWidth && (this.labelPosHorizontal == "left" ? (this.rect.x -= this.labelWidth, this.setWidth(s + this.labelWidth)) : this.labelPosHorizontal == "center" && this.labelWidth > s ? (this.rect.x -= (this.labelWidth - s) / 2, this.setWidth(this.labelWidth)) : this.labelPosHorizontal == "right" && this.setWidth(s + this.labelWidth)), this.labelHeight && (this.labelPosVertical == "top" ? (this.rect.y -= this.labelHeight, this.setHeight(o + this.labelHeight)) : this.labelPosVertical == "center" && this.labelHeight > o ? (this.rect.y -= (this.labelHeight - o) / 2, this.setHeight(this.labelHeight)) : this.labelPosVertical == "bottom" && this.setHeight(o + this.labelHeight)); } } }, r.prototype.getInclusionTreeDepth = function() { @@ -234,11 +234,11 @@ function gr() { throw "assert failed"; return this.inclusionTreeDepth; }, r.prototype.transform = function(t) { - var o = this.rect.x; - o > e.WORLD_BOUNDARY ? o = e.WORLD_BOUNDARY : o < -e.WORLD_BOUNDARY && (o = -e.WORLD_BOUNDARY); - var s = this.rect.y; + var s = this.rect.x; s > e.WORLD_BOUNDARY ? s = e.WORLD_BOUNDARY : s < -e.WORLD_BOUNDARY && (s = -e.WORLD_BOUNDARY); - var c = new f(o, s), l = t.inverseTransformPoint(c); + var o = this.rect.y; + o > e.WORLD_BOUNDARY ? o = e.WORLD_BOUNDARY : o < -e.WORLD_BOUNDARY && (o = -e.WORLD_BOUNDARY); + var c = new f(s, o), l = t.inverseTransformPoint(c); this.setLocation(l.x, l.y); }, r.prototype.getLeft = function() { return this.rect.x; @@ -288,31 +288,31 @@ function gr() { /***/ (function(w, U, L) { var u = L(2), h = L(10), a = L(0), e = L(7), i = L(3), f = L(1), r = L(13), v = L(12), t = L(11); - function o(c, l, T) { + function s(c, l, T) { u.call(this, T), this.estimatedSize = h.MIN_VALUE, this.margin = a.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected = !1, this.parent = c, l != null && l instanceof e ? this.graphManager = l : l != null && l instanceof Layout && (this.graphManager = l.graphManager); } - o.prototype = Object.create(u.prototype); - for (var s in u) - o[s] = u[s]; - o.prototype.getNodes = function() { + s.prototype = Object.create(u.prototype); + for (var o in u) + s[o] = u[o]; + s.prototype.getNodes = function() { return this.nodes; - }, o.prototype.getEdges = function() { + }, s.prototype.getEdges = function() { return this.edges; - }, o.prototype.getGraphManager = function() { + }, s.prototype.getGraphManager = function() { return this.graphManager; - }, o.prototype.getParent = function() { + }, s.prototype.getParent = function() { return this.parent; - }, o.prototype.getLeft = function() { + }, s.prototype.getLeft = function() { return this.left; - }, o.prototype.getRight = function() { + }, s.prototype.getRight = function() { return this.right; - }, o.prototype.getTop = function() { + }, s.prototype.getTop = function() { return this.top; - }, o.prototype.getBottom = function() { + }, s.prototype.getBottom = function() { return this.bottom; - }, o.prototype.isConnected = function() { + }, s.prototype.isConnected = function() { return this.isConnected; - }, o.prototype.add = function(c, l, T) { + }, s.prototype.add = function(c, l, T) { if (l == null && T == null) { var g = c; if (this.graphManager == null) @@ -328,7 +328,7 @@ function gr() { throw "Both owners must be this graph!"; return l.owner != T.owner ? null : (d.source = l, d.target = T, d.isInterGraph = !1, this.getEdges().push(d), l.edges.push(d), T != l && T.edges.push(d), d); } - }, o.prototype.remove = function(c) { + }, s.prototype.remove = function(c) { var l = c; if (c instanceof i) { if (l == null) @@ -339,10 +339,10 @@ function gr() { throw "Owner graph manager is invalid!"; for (var T = l.edges.slice(), g, d = T.length, N = 0; N < d; N++) g = T[N], g.isInterGraph ? this.graphManager.remove(g) : g.source.owner.remove(g); - var F = this.nodes.indexOf(l); - if (F == -1) + var b = this.nodes.indexOf(l); + if (b == -1) throw "Node not in owner node list!"; - this.nodes.splice(F, 1); + this.nodes.splice(b, 1); } else if (c instanceof f) { var g = c; if (g == null) @@ -351,61 +351,61 @@ function gr() { throw "Source and/or target is null!"; if (!(g.source.owner != null && g.target.owner != null && g.source.owner == this && g.target.owner == this)) throw "Source and/or target owner is invalid!"; - var A = g.source.edges.indexOf(g), G = g.target.edges.indexOf(g); - if (!(A > -1 && G > -1)) + var A = g.source.edges.indexOf(g), S = g.target.edges.indexOf(g); + if (!(A > -1 && S > -1)) throw "Source and/or target doesn't know this edge!"; - g.source.edges.splice(A, 1), g.target != g.source && g.target.edges.splice(G, 1); - var F = g.source.owner.getEdges().indexOf(g); - if (F == -1) + g.source.edges.splice(A, 1), g.target != g.source && g.target.edges.splice(S, 1); + var b = g.source.owner.getEdges().indexOf(g); + if (b == -1) throw "Not in owner's edge list!"; - g.source.owner.getEdges().splice(F, 1); + g.source.owner.getEdges().splice(b, 1); } - }, o.prototype.updateLeftTop = function() { - for (var c = h.MAX_VALUE, l = h.MAX_VALUE, T, g, d, N = this.getNodes(), F = N.length, A = 0; A < F; A++) { - var G = N[A]; - T = G.getTop(), g = G.getLeft(), c > T && (c = T), l > g && (l = g); + }, s.prototype.updateLeftTop = function() { + for (var c = h.MAX_VALUE, l = h.MAX_VALUE, T, g, d, N = this.getNodes(), b = N.length, A = 0; A < b; A++) { + var S = N[A]; + T = S.getTop(), g = S.getLeft(), c > T && (c = T), l > g && (l = g); } return c == h.MAX_VALUE ? null : (N[0].getParent().paddingLeft != null ? d = N[0].getParent().paddingLeft : d = this.margin, this.left = l - d, this.top = c - d, new v(this.left, this.top)); - }, o.prototype.updateBounds = function(c) { - for (var l = h.MAX_VALUE, T = -h.MAX_VALUE, g = h.MAX_VALUE, d = -h.MAX_VALUE, N, F, A, G, k, X = this.nodes, J = X.length, D = 0; D < J; D++) { - var rt = X[D]; - c && rt.child != null && rt.updateBounds(), N = rt.getLeft(), F = rt.getRight(), A = rt.getTop(), G = rt.getBottom(), l > N && (l = N), T < F && (T = F), g > A && (g = A), d < G && (d = G); + }, s.prototype.updateBounds = function(c) { + for (var l = h.MAX_VALUE, T = -h.MAX_VALUE, g = h.MAX_VALUE, d = -h.MAX_VALUE, N, b, A, S, V, X = this.nodes, k = X.length, D = 0; D < k; D++) { + var _ = X[D]; + c && _.child != null && _.updateBounds(), N = _.getLeft(), b = _.getRight(), A = _.getTop(), S = _.getBottom(), l > N && (l = N), T < b && (T = b), g > A && (g = A), d < S && (d = S); } var n = new r(l, g, T - l, d - g); - l == h.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), X[0].getParent().paddingLeft != null ? k = X[0].getParent().paddingLeft : k = this.margin, this.left = n.x - k, this.right = n.x + n.width + k, this.top = n.y - k, this.bottom = n.y + n.height + k; - }, o.calculateBounds = function(c) { - for (var l = h.MAX_VALUE, T = -h.MAX_VALUE, g = h.MAX_VALUE, d = -h.MAX_VALUE, N, F, A, G, k = c.length, X = 0; X < k; X++) { - var J = c[X]; - N = J.getLeft(), F = J.getRight(), A = J.getTop(), G = J.getBottom(), l > N && (l = N), T < F && (T = F), g > A && (g = A), d < G && (d = G); + l == h.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), X[0].getParent().paddingLeft != null ? V = X[0].getParent().paddingLeft : V = this.margin, this.left = n.x - V, this.right = n.x + n.width + V, this.top = n.y - V, this.bottom = n.y + n.height + V; + }, s.calculateBounds = function(c) { + for (var l = h.MAX_VALUE, T = -h.MAX_VALUE, g = h.MAX_VALUE, d = -h.MAX_VALUE, N, b, A, S, V = c.length, X = 0; X < V; X++) { + var k = c[X]; + N = k.getLeft(), b = k.getRight(), A = k.getTop(), S = k.getBottom(), l > N && (l = N), T < b && (T = b), g > A && (g = A), d < S && (d = S); } var D = new r(l, g, T - l, d - g); return D; - }, o.prototype.getInclusionTreeDepth = function() { + }, s.prototype.getInclusionTreeDepth = function() { return this == this.graphManager.getRoot() ? 1 : this.parent.getInclusionTreeDepth(); - }, o.prototype.getEstimatedSize = function() { + }, s.prototype.getEstimatedSize = function() { if (this.estimatedSize == h.MIN_VALUE) throw "assert failed"; return this.estimatedSize; - }, o.prototype.calcEstimatedSize = function() { + }, s.prototype.calcEstimatedSize = function() { for (var c = 0, l = this.nodes, T = l.length, g = 0; g < T; g++) { var d = l[g]; c += d.calcEstimatedSize(); } return c == 0 ? this.estimatedSize = a.EMPTY_COMPOUND_NODE_SIZE : this.estimatedSize = c / Math.sqrt(this.nodes.length), this.estimatedSize; - }, o.prototype.updateConnected = function() { + }, s.prototype.updateConnected = function() { var c = this; if (this.nodes.length == 0) { this.isConnected = !0; return; } - var l = new t(), T = /* @__PURE__ */ new Set(), g = this.nodes[0], d, N, F = g.withChildren(); - for (F.forEach(function(D) { + var l = new t(), T = /* @__PURE__ */ new Set(), g = this.nodes[0], d, N, b = g.withChildren(); + for (b.forEach(function(D) { l.push(D), T.add(D); }); l.length !== 0; ) { g = l.shift(), d = g.getEdges(); - for (var A = d.length, G = 0; G < A; G++) { - var k = d[G]; - if (N = k.getOtherEndInGraph(g, this), N != null && !T.has(N)) { + for (var A = d.length, S = 0; S < A; S++) { + var V = d[S]; + if (N = V.getOtherEndInGraph(g, this), N != null && !T.has(N)) { var X = N.withChildren(); X.forEach(function(D) { l.push(D), T.add(D); @@ -414,12 +414,12 @@ function gr() { } } if (this.isConnected = !1, T.size >= this.nodes.length) { - var J = 0; + var k = 0; T.forEach(function(D) { - D.owner == c && J++; - }), J == this.nodes.length && (this.isConnected = !0); + D.owner == c && k++; + }), k == this.nodes.length && (this.isConnected = !0); } - }, w.exports = o; + }, w.exports = s; }), /* 7 */ /***/ @@ -446,12 +446,12 @@ function gr() { return e.parent = i, i.child = e, e; } else { v = f, r = i, f = e; - var t = r.getOwner(), o = v.getOwner(); + var t = r.getOwner(), s = v.getOwner(); if (!(t != null && t.getGraphManager() == this)) throw "Source not in this graph mgr!"; - if (!(o != null && o.getGraphManager() == this)) + if (!(s != null && s.getGraphManager() == this)) throw "Target not in this graph mgr!"; - if (t == o) + if (t == s) return f.isInterGraph = !1, t.add(f, r, v); if (f.isInterGraph = !0, f.source = r, f.target = v, this.edges.indexOf(f) > -1) throw "Edge already in inter-graph edge list!"; @@ -472,12 +472,12 @@ function gr() { f = f.concat(i.getEdges()); for (var r, v = f.length, t = 0; t < v; t++) r = f[t], i.remove(r); - var o = []; - o = o.concat(i.getNodes()); - var s; - v = o.length; + var s = []; + s = s.concat(i.getNodes()); + var o; + v = s.length; for (var t = 0; t < v; t++) - s = o[t], i.remove(s); + o = s[t], i.remove(o); i == this.rootGraph && this.setRootGraph(null); var c = this.graphs.indexOf(i); this.graphs.splice(c, 1), i.parent = null; @@ -563,8 +563,8 @@ function gr() { } while (!0); return !1; }, a.prototype.calcLowestCommonAncestors = function() { - for (var e, i, f, r, v, t = this.getAllEdges(), o = t.length, s = 0; s < o; s++) { - if (e = t[s], i = e.source, f = e.target, e.lca = null, e.sourceInLca = i, e.targetInLca = f, i == f) { + for (var e, i, f, r, v, t = this.getAllEdges(), s = t.length, o = 0; o < s; o++) { + if (e = t[o], i = e.source, f = e.target, e.lca = null, e.sourceInLca = i, e.targetInLca = f, i == f) { e.lca = i.getOwner(); continue; } @@ -630,33 +630,33 @@ function gr() { this.decideDirectionsForOverlappingNodes(a, e, r), i[0] = Math.min(a.getRight(), e.getRight()) - Math.max(a.x, e.x), i[1] = Math.min(a.getBottom(), e.getBottom()) - Math.max(a.y, e.y), a.getX() <= e.getX() && a.getRight() >= e.getRight() ? i[0] += Math.min(e.getX() - a.getX(), a.getRight() - e.getRight()) : e.getX() <= a.getX() && e.getRight() >= a.getRight() && (i[0] += Math.min(a.getX() - e.getX(), e.getRight() - a.getRight())), a.getY() <= e.getY() && a.getBottom() >= e.getBottom() ? i[1] += Math.min(e.getY() - a.getY(), a.getBottom() - e.getBottom()) : e.getY() <= a.getY() && e.getBottom() >= a.getBottom() && (i[1] += Math.min(a.getY() - e.getY(), e.getBottom() - a.getBottom())); var v = Math.abs((e.getCenterY() - a.getCenterY()) / (e.getCenterX() - a.getCenterX())); e.getCenterY() === a.getCenterY() && e.getCenterX() === a.getCenterX() && (v = 1); - var t = v * i[0], o = i[1] / v; - i[0] < o ? o = i[0] : t = i[1], i[0] = -1 * r[0] * (o / 2 + f), i[1] = -1 * r[1] * (t / 2 + f); + var t = v * i[0], s = i[1] / v; + i[0] < s ? s = i[0] : t = i[1], i[0] = -1 * r[0] * (s / 2 + f), i[1] = -1 * r[1] * (t / 2 + f); }, h.decideDirectionsForOverlappingNodes = function(a, e, i) { a.getCenterX() < e.getCenterX() ? i[0] = -1 : i[0] = 1, a.getCenterY() < e.getCenterY() ? i[1] = -1 : i[1] = 1; }, h.getIntersection2 = function(a, e, i) { var f = a.getCenterX(), r = a.getCenterY(), v = e.getCenterX(), t = e.getCenterY(); if (a.intersects(e)) return i[0] = f, i[1] = r, i[2] = v, i[3] = t, !0; - var o = a.getX(), s = a.getY(), c = a.getRight(), l = a.getX(), T = a.getBottom(), g = a.getRight(), d = a.getWidthHalf(), N = a.getHeightHalf(), F = e.getX(), A = e.getY(), G = e.getRight(), k = e.getX(), X = e.getBottom(), J = e.getRight(), D = e.getWidthHalf(), rt = e.getHeightHalf(), n = !1, m = !1; + var s = a.getX(), o = a.getY(), c = a.getRight(), l = a.getX(), T = a.getBottom(), g = a.getRight(), d = a.getWidthHalf(), N = a.getHeightHalf(), b = e.getX(), A = e.getY(), S = e.getRight(), V = e.getX(), X = e.getBottom(), k = e.getRight(), D = e.getWidthHalf(), _ = e.getHeightHalf(), n = !1, m = !1; if (f === v) { if (r > t) - return i[0] = f, i[1] = s, i[2] = v, i[3] = X, !1; + return i[0] = f, i[1] = o, i[2] = v, i[3] = X, !1; if (r < t) return i[0] = f, i[1] = T, i[2] = v, i[3] = A, !1; } else if (r === t) { if (f > v) - return i[0] = o, i[1] = r, i[2] = G, i[3] = t, !1; + return i[0] = s, i[1] = r, i[2] = S, i[3] = t, !1; if (f < v) - return i[0] = c, i[1] = r, i[2] = F, i[3] = t, !1; + return i[0] = c, i[1] = r, i[2] = b, i[3] = t, !1; } else { - var p = a.height / a.width, E = e.height / e.width, y = (t - r) / (v - f), I = void 0, M = void 0, R = void 0, W = void 0, x = void 0, q = void 0; - if (-p === y ? f > v ? (i[0] = l, i[1] = T, n = !0) : (i[0] = c, i[1] = s, n = !0) : p === y && (f > v ? (i[0] = o, i[1] = s, n = !0) : (i[0] = g, i[1] = T, n = !0)), -E === y ? v > f ? (i[2] = k, i[3] = X, m = !0) : (i[2] = G, i[3] = A, m = !0) : E === y && (v > f ? (i[2] = F, i[3] = A, m = !0) : (i[2] = J, i[3] = X, m = !0)), n && m) + var p = a.height / a.width, E = e.height / e.width, y = (t - r) / (v - f), I = void 0, M = void 0, R = void 0, W = void 0, x = void 0, Q = void 0; + if (-p === y ? f > v ? (i[0] = l, i[1] = T, n = !0) : (i[0] = c, i[1] = o, n = !0) : p === y && (f > v ? (i[0] = s, i[1] = o, n = !0) : (i[0] = g, i[1] = T, n = !0)), -E === y ? v > f ? (i[2] = V, i[3] = X, m = !0) : (i[2] = S, i[3] = A, m = !0) : E === y && (v > f ? (i[2] = b, i[3] = A, m = !0) : (i[2] = k, i[3] = X, m = !0)), n && m) return !1; if (f > v ? r > t ? (I = this.getCardinalDirection(p, y, 4), M = this.getCardinalDirection(E, y, 2)) : (I = this.getCardinalDirection(-p, y, 3), M = this.getCardinalDirection(-E, y, 1)) : r > t ? (I = this.getCardinalDirection(-p, y, 1), M = this.getCardinalDirection(-E, y, 3)) : (I = this.getCardinalDirection(p, y, 2), M = this.getCardinalDirection(E, y, 4)), !n) switch (I) { case 1: - W = s, R = f + -N / y, i[0] = R, i[1] = W; + W = o, R = f + -N / y, i[0] = R, i[1] = W; break; case 2: R = g, W = r + d * y, i[0] = R, i[1] = W; @@ -671,16 +671,16 @@ function gr() { if (!m) switch (M) { case 1: - q = A, x = v + -rt / y, i[2] = x, i[3] = q; + Q = A, x = v + -_ / y, i[2] = x, i[3] = Q; break; case 2: - x = J, q = t + D * y, i[2] = x, i[3] = q; + x = k, Q = t + D * y, i[2] = x, i[3] = Q; break; case 3: - q = X, x = v + rt / y, i[2] = x, i[3] = q; + Q = X, x = v + _ / y, i[2] = x, i[3] = Q; break; case 4: - x = k, q = t + -D * y, i[2] = x, i[3] = q; + x = V, Q = t + -D * y, i[2] = x, i[3] = Q; break; } } @@ -690,21 +690,21 @@ function gr() { }, h.getIntersection = function(a, e, i, f) { if (f == null) return this.getIntersection2(a, e, i); - var r = a.x, v = a.y, t = e.x, o = e.y, s = i.x, c = i.y, l = f.x, T = f.y, g = void 0, d = void 0, N = void 0, F = void 0, A = void 0, G = void 0, k = void 0, X = void 0, J = void 0; - return N = o - v, A = r - t, k = t * v - r * o, F = T - c, G = s - l, X = l * c - s * T, J = N * G - F * A, J === 0 ? null : (g = (A * X - G * k) / J, d = (F * k - N * X) / J, new u(g, d)); + var r = a.x, v = a.y, t = e.x, s = e.y, o = i.x, c = i.y, l = f.x, T = f.y, g = void 0, d = void 0, N = void 0, b = void 0, A = void 0, S = void 0, V = void 0, X = void 0, k = void 0; + return N = s - v, A = r - t, V = t * v - r * s, b = T - c, S = o - l, X = l * c - o * T, k = N * S - b * A, k === 0 ? null : (g = (A * X - S * V) / k, d = (b * V - N * X) / k, new u(g, d)); }, h.angleOfVector = function(a, e, i, f) { var r = void 0; return a !== i ? (r = Math.atan((f - e) / (i - a)), i < a ? r += Math.PI : f < e && (r += this.TWO_PI)) : f < e ? r = this.ONE_AND_HALF_PI : r = this.HALF_PI, r; }, h.doIntersect = function(a, e, i, f) { - var r = a.x, v = a.y, t = e.x, o = e.y, s = i.x, c = i.y, l = f.x, T = f.y, g = (t - r) * (T - c) - (l - s) * (o - v); + var r = a.x, v = a.y, t = e.x, s = e.y, o = i.x, c = i.y, l = f.x, T = f.y, g = (t - r) * (T - c) - (l - o) * (s - v); if (g === 0) return !1; - var d = ((T - c) * (l - r) + (s - l) * (T - v)) / g, N = ((v - o) * (l - r) + (t - r) * (T - v)) / g; + var d = ((T - c) * (l - r) + (o - l) * (T - v)) / g, N = ((v - s) * (l - r) + (t - r) * (T - v)) / g; return 0 < d && d < 1 && 0 < N && N < 1; }, h.findCircleLineIntersections = function(a, e, i, f, r, v, t) { - var o = (i - a) * (i - a) + (f - e) * (f - e), s = 2 * ((a - r) * (i - a) + (e - v) * (f - e)), c = (a - r) * (a - r) + (e - v) * (e - v) - t * t, l = s * s - 4 * o * c; + var s = (i - a) * (i - a) + (f - e) * (f - e), o = 2 * ((a - r) * (i - a) + (e - v) * (f - e)), c = (a - r) * (a - r) + (e - v) * (e - v) - t * t, l = o * o - 4 * s * c; if (l >= 0) { - var T = (-s + Math.sqrt(s * s - 4 * o * c)) / (2 * o), g = (-s - Math.sqrt(s * s - 4 * o * c)) / (2 * o), d = null; + var T = (-o + Math.sqrt(o * o - 4 * s * c)) / (2 * s), g = (-o - Math.sqrt(o * o - 4 * s * c)) / (2 * s), d = null; return T >= 0 && T <= 1 ? [T] : g >= 0 && g <= 1 ? [g] : d; } else return null; }, h.HALF_PI = 0.5 * Math.PI, h.ONE_AND_HALF_PI = 1.5 * Math.PI, h.TWO_PI = 2 * Math.PI, h.THREE_PI = 3 * Math.PI, w.exports = h; @@ -734,13 +734,13 @@ function gr() { (function(w, U, L) { var u = /* @__PURE__ */ (function() { function r(v, t) { - for (var o = 0; o < t.length; o++) { - var s = t[o]; - s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(v, s.key, s); + for (var s = 0; s < t.length; s++) { + var o = t[s]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(v, o.key, o); } } - return function(v, t, o) { - return t && r(v.prototype, t), o && r(v, o), v; + return function(v, t, s) { + return t && r(v.prototype, t), s && r(v, s), v; }; })(); function h(r, v) { @@ -749,16 +749,16 @@ function gr() { } var a = function(v) { return { value: v, next: null, prev: null }; - }, e = function(v, t, o, s) { - return v !== null ? v.next = t : s.head = t, o !== null ? o.prev = t : s.tail = t, t.prev = v, t.next = o, s.length++, t; + }, e = function(v, t, s, o) { + return v !== null ? v.next = t : o.head = t, s !== null ? s.prev = t : o.tail = t, t.prev = v, t.next = s, o.length++, t; }, i = function(v, t) { - var o = v.prev, s = v.next; - return o !== null ? o.next = s : t.head = s, s !== null ? s.prev = o : t.tail = o, v.prev = v.next = null, t.length--, v; + var s = v.prev, o = v.next; + return s !== null ? s.next = o : t.head = o, o !== null ? o.prev = s : t.tail = s, v.prev = v.next = null, t.length--, v; }, f = (function() { function r(v) { var t = this; - h(this, r), this.length = 0, this.head = null, this.tail = null, v?.forEach(function(o) { - return t.push(o); + h(this, r), this.length = 0, this.head = null, this.tail = null, v?.forEach(function(s) { + return t.push(s); }); } return u(r, [{ @@ -768,23 +768,23 @@ function gr() { } }, { key: "insertBefore", - value: function(t, o) { - return e(o.prev, a(t), o, this); + value: function(t, s) { + return e(s.prev, a(t), s, this); } }, { key: "insertAfter", - value: function(t, o) { - return e(o, a(t), o.next, this); + value: function(t, s) { + return e(s, a(t), s.next, this); } }, { key: "insertNodeBefore", - value: function(t, o) { - return e(o.prev, t, o, this); + value: function(t, s) { + return e(s.prev, t, s, this); } }, { key: "insertNodeAfter", - value: function(t, o) { - return e(o, t, o.next, this); + value: function(t, s) { + return e(s, t, s.next, this); } }, { key: "push", @@ -825,18 +825,18 @@ function gr() { key: "get_object_at", value: function(t) { if (t <= this.length()) { - for (var o = 1, s = this.head; o < t; ) - s = s.next, o++; - return s.value; + for (var s = 1, o = this.head; s < t; ) + o = o.next, s++; + return o.value; } } }, { key: "set_object_at", - value: function(t, o) { + value: function(t, s) { if (t <= this.length()) { - for (var s = 1, c = this.head; s < t; ) - c = c.next, s++; - c.value = o; + for (var o = 1, c = this.head; o < t; ) + c = c.next, o++; + c.value = s; } } }]), r; @@ -939,56 +939,56 @@ function gr() { /* 15 */ /***/ (function(w, U, L) { - function u(s) { - if (Array.isArray(s)) { - for (var c = 0, l = Array(s.length); c < s.length; c++) - l[c] = s[c]; + function u(o) { + if (Array.isArray(o)) { + for (var c = 0, l = Array(o.length); c < o.length; c++) + l[c] = o[c]; return l; } else - return Array.from(s); + return Array.from(o); } var h = L(0), a = L(7), e = L(3), i = L(1), f = L(6), r = L(5), v = L(17), t = L(29); - function o(s) { - t.call(this), this.layoutQuality = h.QUALITY, this.createBendsAsNeeded = h.DEFAULT_CREATE_BENDS_AS_NEEDED, this.incremental = h.DEFAULT_INCREMENTAL, this.animationOnLayout = h.DEFAULT_ANIMATION_ON_LAYOUT, this.animationDuringLayout = h.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = h.DEFAULT_ANIMATION_PERIOD, this.uniformLeafNodeSizes = h.DEFAULT_UNIFORM_LEAF_NODE_SIZES, this.edgeToDummyNodes = /* @__PURE__ */ new Map(), this.graphManager = new a(this), this.isLayoutFinished = !1, this.isSubLayout = !1, this.isRemoteUse = !1, s != null && (this.isRemoteUse = s); + function s(o) { + t.call(this), this.layoutQuality = h.QUALITY, this.createBendsAsNeeded = h.DEFAULT_CREATE_BENDS_AS_NEEDED, this.incremental = h.DEFAULT_INCREMENTAL, this.animationOnLayout = h.DEFAULT_ANIMATION_ON_LAYOUT, this.animationDuringLayout = h.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = h.DEFAULT_ANIMATION_PERIOD, this.uniformLeafNodeSizes = h.DEFAULT_UNIFORM_LEAF_NODE_SIZES, this.edgeToDummyNodes = /* @__PURE__ */ new Map(), this.graphManager = new a(this), this.isLayoutFinished = !1, this.isSubLayout = !1, this.isRemoteUse = !1, o != null && (this.isRemoteUse = o); } - o.RANDOM_SEED = 1, o.prototype = Object.create(t.prototype), o.prototype.getGraphManager = function() { + s.RANDOM_SEED = 1, s.prototype = Object.create(t.prototype), s.prototype.getGraphManager = function() { return this.graphManager; - }, o.prototype.getAllNodes = function() { + }, s.prototype.getAllNodes = function() { return this.graphManager.getAllNodes(); - }, o.prototype.getAllEdges = function() { + }, s.prototype.getAllEdges = function() { return this.graphManager.getAllEdges(); - }, o.prototype.getAllNodesToApplyGravitation = function() { + }, s.prototype.getAllNodesToApplyGravitation = function() { return this.graphManager.getAllNodesToApplyGravitation(); - }, o.prototype.newGraphManager = function() { - var s = new a(this); - return this.graphManager = s, s; - }, o.prototype.newGraph = function(s) { - return new f(null, this.graphManager, s); - }, o.prototype.newNode = function(s) { - return new e(this.graphManager, s); - }, o.prototype.newEdge = function(s) { - return new i(null, null, s); - }, o.prototype.checkLayoutSuccess = function() { + }, s.prototype.newGraphManager = function() { + var o = new a(this); + return this.graphManager = o, o; + }, s.prototype.newGraph = function(o) { + return new f(null, this.graphManager, o); + }, s.prototype.newNode = function(o) { + return new e(this.graphManager, o); + }, s.prototype.newEdge = function(o) { + return new i(null, null, o); + }, s.prototype.checkLayoutSuccess = function() { return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge(); - }, o.prototype.runLayout = function() { + }, s.prototype.runLayout = function() { this.isLayoutFinished = !1, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters(); - var s; - return this.checkLayoutSuccess() ? s = !1 : s = this.layout(), h.ANIMATE === "during" ? !1 : (s && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, s); - }, o.prototype.doPostLayout = function() { + var o; + return this.checkLayoutSuccess() ? o = !1 : o = this.layout(), h.ANIMATE === "during" ? !1 : (o && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, o); + }, s.prototype.doPostLayout = function() { this.incremental || this.transform(), this.update(); - }, o.prototype.update2 = function() { + }, s.prototype.update2 = function() { if (this.createBendsAsNeeded && (this.createBendpointsFromDummyNodes(), this.graphManager.resetAllEdges()), !this.isRemoteUse) { - for (var s = this.graphManager.getAllEdges(), c = 0; c < s.length; c++) - s[c]; + for (var o = this.graphManager.getAllEdges(), c = 0; c < o.length; c++) + o[c]; for (var l = this.graphManager.getRoot().getNodes(), c = 0; c < l.length; c++) l[c]; this.update(this.graphManager.getRoot()); } - }, o.prototype.update = function(s) { - if (s == null) + }, s.prototype.update = function(o) { + if (o == null) this.update2(); - else if (s instanceof e) { - var c = s; + else if (o instanceof e) { + var c = o; if (c.getChild() != null) for (var l = c.getChild().getNodes(), T = 0; T < l.length; T++) update(l[T]); @@ -996,53 +996,53 @@ function gr() { var g = c.vGraphObject; g.update(c); } - } else if (s instanceof i) { - var d = s; + } else if (o instanceof i) { + var d = o; if (d.vGraphObject != null) { var N = d.vGraphObject; N.update(d); } - } else if (s instanceof f) { - var F = s; - if (F.vGraphObject != null) { - var A = F.vGraphObject; - A.update(F); + } else if (o instanceof f) { + var b = o; + if (b.vGraphObject != null) { + var A = b.vGraphObject; + A.update(b); } } - }, o.prototype.initParameters = function() { + }, s.prototype.initParameters = function() { this.isSubLayout || (this.layoutQuality = h.QUALITY, this.animationDuringLayout = h.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = h.DEFAULT_ANIMATION_PERIOD, this.animationOnLayout = h.DEFAULT_ANIMATION_ON_LAYOUT, this.incremental = h.DEFAULT_INCREMENTAL, this.createBendsAsNeeded = h.DEFAULT_CREATE_BENDS_AS_NEEDED, this.uniformLeafNodeSizes = h.DEFAULT_UNIFORM_LEAF_NODE_SIZES), this.animationDuringLayout && (this.animationOnLayout = !1); - }, o.prototype.transform = function(s) { - if (s == null) + }, s.prototype.transform = function(o) { + if (o == null) this.transform(new r(0, 0)); else { var c = new v(), l = this.graphManager.getRoot().updateLeftTop(); if (l != null) { - c.setWorldOrgX(s.x), c.setWorldOrgY(s.y), c.setDeviceOrgX(l.x), c.setDeviceOrgY(l.y); + c.setWorldOrgX(o.x), c.setWorldOrgY(o.y), c.setDeviceOrgX(l.x), c.setDeviceOrgY(l.y); for (var T = this.getAllNodes(), g, d = 0; d < T.length; d++) g = T[d], g.transform(c); } } - }, o.prototype.positionNodesRandomly = function(s) { - if (s == null) + }, s.prototype.positionNodesRandomly = function(o) { + if (o == null) this.positionNodesRandomly(this.getGraphManager().getRoot()), this.getGraphManager().getRoot().updateBounds(!0); else - for (var c, l, T = s.getNodes(), g = 0; g < T.length; g++) + for (var c, l, T = o.getNodes(), g = 0; g < T.length; g++) c = T[g], l = c.getChild(), l == null || l.getNodes().length == 0 ? c.scatter() : (this.positionNodesRandomly(l), c.updateBounds()); - }, o.prototype.getFlatForest = function() { - for (var s = [], c = !0, l = this.graphManager.getRoot().getNodes(), T = !0, g = 0; g < l.length; g++) + }, s.prototype.getFlatForest = function() { + for (var o = [], c = !0, l = this.graphManager.getRoot().getNodes(), T = !0, g = 0; g < l.length; g++) l[g].getChild() != null && (T = !1); if (!T) - return s; - var d = /* @__PURE__ */ new Set(), N = [], F = /* @__PURE__ */ new Map(), A = []; + return o; + var d = /* @__PURE__ */ new Set(), N = [], b = /* @__PURE__ */ new Map(), A = []; for (A = A.concat(l); A.length > 0 && c; ) { for (N.push(A[0]); N.length > 0 && c; ) { - var G = N[0]; - N.splice(0, 1), d.add(G); - for (var k = G.getEdges(), g = 0; g < k.length; g++) { - var X = k[g].getOtherEnd(G); - if (F.get(G) != X) + var S = N[0]; + N.splice(0, 1), d.add(S); + for (var V = S.getEdges(), g = 0; g < V.length; g++) { + var X = V[g].getOtherEnd(S); + if (b.get(S) != X) if (!d.has(X)) - N.push(X), F.set(X, G); + N.push(X), b.set(X, S); else { c = !1; break; @@ -1050,85 +1050,85 @@ function gr() { } } if (!c) - s = []; + o = []; else { - var J = [].concat(u(d)); - s.push(J); - for (var g = 0; g < J.length; g++) { - var D = J[g], rt = A.indexOf(D); - rt > -1 && A.splice(rt, 1); + var k = [].concat(u(d)); + o.push(k); + for (var g = 0; g < k.length; g++) { + var D = k[g], _ = A.indexOf(D); + _ > -1 && A.splice(_, 1); } - d = /* @__PURE__ */ new Set(), F = /* @__PURE__ */ new Map(); + d = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Map(); } } - return s; - }, o.prototype.createDummyNodesForBendpoints = function(s) { - for (var c = [], l = s.source, T = this.graphManager.calcLowestCommonAncestor(s.source, s.target), g = 0; g < s.bendpoints.length; g++) { + return o; + }, s.prototype.createDummyNodesForBendpoints = function(o) { + for (var c = [], l = o.source, T = this.graphManager.calcLowestCommonAncestor(o.source, o.target), g = 0; g < o.bendpoints.length; g++) { var d = this.newNode(null); d.setRect(new Point(0, 0), new Dimension(1, 1)), T.add(d); var N = this.newEdge(null); this.graphManager.add(N, l, d), c.add(d), l = d; } var N = this.newEdge(null); - return this.graphManager.add(N, l, s.target), this.edgeToDummyNodes.set(s, c), s.isInterGraph() ? this.graphManager.remove(s) : T.remove(s), c; - }, o.prototype.createBendpointsFromDummyNodes = function() { - var s = []; - s = s.concat(this.graphManager.getAllEdges()), s = [].concat(u(this.edgeToDummyNodes.keys())).concat(s); - for (var c = 0; c < s.length; c++) { - var l = s[c]; + return this.graphManager.add(N, l, o.target), this.edgeToDummyNodes.set(o, c), o.isInterGraph() ? this.graphManager.remove(o) : T.remove(o), c; + }, s.prototype.createBendpointsFromDummyNodes = function() { + var o = []; + o = o.concat(this.graphManager.getAllEdges()), o = [].concat(u(this.edgeToDummyNodes.keys())).concat(o); + for (var c = 0; c < o.length; c++) { + var l = o[c]; if (l.bendpoints.length > 0) { for (var T = this.edgeToDummyNodes.get(l), g = 0; g < T.length; g++) { - var d = T[g], N = new r(d.getCenterX(), d.getCenterY()), F = l.bendpoints.get(g); - F.x = N.x, F.y = N.y, d.getOwner().remove(d); + var d = T[g], N = new r(d.getCenterX(), d.getCenterY()), b = l.bendpoints.get(g); + b.x = N.x, b.y = N.y, d.getOwner().remove(d); } this.graphManager.add(l, l.source, l.target); } } - }, o.transform = function(s, c, l, T) { + }, s.transform = function(o, c, l, T) { if (l != null && T != null) { var g = c; - if (s <= 50) { + if (o <= 50) { var d = c / l; - g -= (c - d) / 50 * (50 - s); + g -= (c - d) / 50 * (50 - o); } else { var N = c * T; - g += (N - c) / 50 * (s - 50); + g += (N - c) / 50 * (o - 50); } return g; } else { - var F, A; - return s <= 50 ? (F = 9 * c / 500, A = c / 10) : (F = 9 * c / 50, A = -8 * c), F * s + A; + var b, A; + return o <= 50 ? (b = 9 * c / 500, A = c / 10) : (b = 9 * c / 50, A = -8 * c), b * o + A; } - }, o.findCenterOfTree = function(s) { + }, s.findCenterOfTree = function(o) { var c = []; - c = c.concat(s); + c = c.concat(o); var l = [], T = /* @__PURE__ */ new Map(), g = !1, d = null; (c.length == 1 || c.length == 2) && (g = !0, d = c[0]); for (var N = 0; N < c.length; N++) { - var F = c[N], A = F.getNeighborsList().size; - T.set(F, F.getNeighborsList().size), A == 1 && l.push(F); + var b = c[N], A = b.getNeighborsList().size; + T.set(b, b.getNeighborsList().size), A == 1 && l.push(b); } - var G = []; - for (G = G.concat(l); !g; ) { - var k = []; - k = k.concat(G), G = []; + var S = []; + for (S = S.concat(l); !g; ) { + var V = []; + V = V.concat(S), S = []; for (var N = 0; N < c.length; N++) { - var F = c[N], X = c.indexOf(F); + var b = c[N], X = c.indexOf(b); X >= 0 && c.splice(X, 1); - var J = F.getNeighborsList(); - J.forEach(function(n) { + var k = b.getNeighborsList(); + k.forEach(function(n) { if (l.indexOf(n) < 0) { var m = T.get(n), p = m - 1; - p == 1 && G.push(n), T.set(n, p); + p == 1 && S.push(n), T.set(n, p); } }); } - l = l.concat(G), (c.length == 1 || c.length == 2) && (g = !0, d = c[0]); + l = l.concat(S), (c.length == 1 || c.length == 2) && (g = !0, d = c[0]); } return d; - }, o.prototype.setGraphManager = function(s) { - this.graphManager = s; - }, w.exports = o; + }, s.prototype.setGraphManager = function(o) { + this.graphManager = o; + }, w.exports = s; }), /* 16 */ /***/ @@ -1200,9 +1200,9 @@ function gr() { (function(w, U, L) { function u(t) { if (Array.isArray(t)) { - for (var o = 0, s = Array(t.length); o < t.length; o++) - s[o] = t[o]; - return s; + for (var s = 0, o = Array(t.length); s < t.length; s++) + o[s] = t[s]; + return o; } else return Array.from(t); } @@ -1216,85 +1216,85 @@ function gr() { r.prototype.initParameters = function() { h.prototype.initParameters.call(this, arguments), this.totalIterations = 0, this.notAnimatedIterations = 0, this.useFRGridVariant = a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION, this.grid = []; }, r.prototype.calcIdealEdgeLengths = function() { - for (var t, o, s, c, l, T, g, d = this.getGraphManager().getAllEdges(), N = 0; N < d.length; N++) - t = d[N], o = t.idealLength, t.isInterGraph && (c = t.getSource(), l = t.getTarget(), T = t.getSourceInLca().getEstimatedSize(), g = t.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (t.idealLength += T + g - 2 * e.SIMPLE_NODE_SIZE), s = t.getLca().getInclusionTreeDepth(), t.idealLength += o * a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (c.getInclusionTreeDepth() + l.getInclusionTreeDepth() - 2 * s)); + for (var t, s, o, c, l, T, g, d = this.getGraphManager().getAllEdges(), N = 0; N < d.length; N++) + t = d[N], s = t.idealLength, t.isInterGraph && (c = t.getSource(), l = t.getTarget(), T = t.getSourceInLca().getEstimatedSize(), g = t.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (t.idealLength += T + g - 2 * e.SIMPLE_NODE_SIZE), o = t.getLca().getInclusionTreeDepth(), t.idealLength += s * a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (c.getInclusionTreeDepth() + l.getInclusionTreeDepth() - 2 * o)); }, r.prototype.initSpringEmbedder = function() { var t = this.getAllNodes().length; this.incremental ? (t > a.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * a.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (t - 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) : (t > a.ADAPTATION_LOWER_NODE_LIMIT ? this.coolingFactor = Math.max(a.COOLING_ADAPTATION_FACTOR, 1 - (t - 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(); }, r.prototype.calcSpringForces = function() { - for (var t = this.getAllEdges(), o, s = 0; s < t.length; s++) - o = t[s], this.calcSpringForce(o, o.idealLength); + for (var t = this.getAllEdges(), s, o = 0; o < t.length; o++) + s = t[o], this.calcSpringForce(s, s.idealLength); }, r.prototype.calcRepulsionForces = function() { - var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, s, c, l, T, g = this.getAllNodes(), d; + var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, o, c, l, T, g = this.getAllNodes(), d; if (this.useFRGridVariant) - for (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && t && this.updateGrid(), d = /* @__PURE__ */ new Set(), s = 0; s < g.length; s++) - l = g[s], this.calculateRepulsionForceOfANode(l, d, t, o), d.add(l); + for (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && t && this.updateGrid(), d = /* @__PURE__ */ new Set(), o = 0; o < g.length; o++) + l = g[o], this.calculateRepulsionForceOfANode(l, d, t, s), d.add(l); else - for (s = 0; s < g.length; s++) - for (l = g[s], c = s + 1; c < g.length; c++) + for (o = 0; o < g.length; o++) + for (l = g[o], c = o + 1; c < g.length; c++) T = g[c], l.getOwner() == T.getOwner() && this.calcRepulsionForce(l, T); }, r.prototype.calcGravitationalForces = function() { - for (var t, o = this.getAllNodesToApplyGravitation(), s = 0; s < o.length; s++) - t = o[s], this.calcGravitationalForce(t); + for (var t, s = this.getAllNodesToApplyGravitation(), o = 0; o < s.length; o++) + t = s[o], this.calcGravitationalForce(t); }, r.prototype.moveNodes = function() { - for (var t = this.getAllNodes(), o, s = 0; s < t.length; s++) - o = t[s], o.move(); - }, r.prototype.calcSpringForce = function(t, o) { - var s = t.getSource(), c = t.getTarget(), l, T, g, d; - if (this.uniformLeafNodeSizes && s.getChild() == null && c.getChild() == null) + for (var t = this.getAllNodes(), s, o = 0; o < t.length; o++) + s = t[o], s.move(); + }, r.prototype.calcSpringForce = function(t, s) { + var o = t.getSource(), c = t.getTarget(), l, T, g, d; + if (this.uniformLeafNodeSizes && o.getChild() == null && c.getChild() == null) t.updateLengthSimple(); else if (t.updateLength(), t.isOverlapingSourceAndTarget) return; - l = t.getLength(), l != 0 && (T = t.edgeElasticity * (l - o), g = T * (t.lengthX / l), d = T * (t.lengthY / l), s.springForceX += g, s.springForceY += d, c.springForceX -= g, c.springForceY -= d); - }, r.prototype.calcRepulsionForce = function(t, o) { - var s = t.getRect(), c = o.getRect(), l = new Array(2), T = new Array(4), g, d, N, F, A, G, k; - if (s.intersects(c)) { - i.calcSeparationAmount(s, c, l, a.DEFAULT_EDGE_LENGTH / 2), G = 2 * l[0], k = 2 * l[1]; - var X = t.noOfChildren * o.noOfChildren / (t.noOfChildren + o.noOfChildren); - t.repulsionForceX -= X * G, t.repulsionForceY -= X * k, o.repulsionForceX += X * G, o.repulsionForceY += X * k; + l = t.getLength(), l != 0 && (T = t.edgeElasticity * (l - s), g = T * (t.lengthX / l), d = T * (t.lengthY / l), o.springForceX += g, o.springForceY += d, c.springForceX -= g, c.springForceY -= d); + }, r.prototype.calcRepulsionForce = function(t, s) { + var o = t.getRect(), c = s.getRect(), l = new Array(2), T = new Array(4), g, d, N, b, A, S, V; + if (o.intersects(c)) { + i.calcSeparationAmount(o, c, l, a.DEFAULT_EDGE_LENGTH / 2), S = 2 * l[0], V = 2 * l[1]; + var X = t.noOfChildren * s.noOfChildren / (t.noOfChildren + s.noOfChildren); + t.repulsionForceX -= X * S, t.repulsionForceY -= X * V, s.repulsionForceX += X * S, s.repulsionForceY += X * V; } else - this.uniformLeafNodeSizes && t.getChild() == null && o.getChild() == null ? (g = c.getCenterX() - s.getCenterX(), d = c.getCenterY() - s.getCenterY()) : (i.getIntersection(s, c, T), g = T[2] - T[0], d = T[3] - T[1]), Math.abs(g) < a.MIN_REPULSION_DIST && (g = f.sign(g) * a.MIN_REPULSION_DIST), Math.abs(d) < a.MIN_REPULSION_DIST && (d = f.sign(d) * a.MIN_REPULSION_DIST), N = g * g + d * d, F = Math.sqrt(N), A = (t.nodeRepulsion / 2 + o.nodeRepulsion / 2) * t.noOfChildren * o.noOfChildren / N, G = A * g / F, k = A * d / F, t.repulsionForceX -= G, t.repulsionForceY -= k, o.repulsionForceX += G, o.repulsionForceY += k; + this.uniformLeafNodeSizes && t.getChild() == null && s.getChild() == null ? (g = c.getCenterX() - o.getCenterX(), d = c.getCenterY() - o.getCenterY()) : (i.getIntersection(o, c, T), g = T[2] - T[0], d = T[3] - T[1]), Math.abs(g) < a.MIN_REPULSION_DIST && (g = f.sign(g) * a.MIN_REPULSION_DIST), Math.abs(d) < a.MIN_REPULSION_DIST && (d = f.sign(d) * a.MIN_REPULSION_DIST), N = g * g + d * d, b = Math.sqrt(N), A = (t.nodeRepulsion / 2 + s.nodeRepulsion / 2) * t.noOfChildren * s.noOfChildren / N, S = A * g / b, V = A * d / b, t.repulsionForceX -= S, t.repulsionForceY -= V, s.repulsionForceX += S, s.repulsionForceY += V; }, r.prototype.calcGravitationalForce = function(t) { - var o, s, c, l, T, g, d, N; - o = t.getOwner(), s = (o.getRight() + o.getLeft()) / 2, c = (o.getTop() + o.getBottom()) / 2, l = t.getCenterX() - s, T = t.getCenterY() - c, g = Math.abs(l) + t.getWidth() / 2, d = Math.abs(T) + t.getHeight() / 2, t.getOwner() == this.graphManager.getRoot() ? (N = o.getEstimatedSize() * this.gravityRangeFactor, (g > N || d > N) && (t.gravitationForceX = -this.gravityConstant * l, t.gravitationForceY = -this.gravityConstant * T)) : (N = o.getEstimatedSize() * this.compoundGravityRangeFactor, (g > N || d > N) && (t.gravitationForceX = -this.gravityConstant * l * this.compoundGravityConstant, t.gravitationForceY = -this.gravityConstant * T * this.compoundGravityConstant)); + var s, o, c, l, T, g, d, N; + s = t.getOwner(), o = (s.getRight() + s.getLeft()) / 2, c = (s.getTop() + s.getBottom()) / 2, l = t.getCenterX() - o, T = t.getCenterY() - c, g = Math.abs(l) + t.getWidth() / 2, d = Math.abs(T) + t.getHeight() / 2, t.getOwner() == this.graphManager.getRoot() ? (N = s.getEstimatedSize() * this.gravityRangeFactor, (g > N || d > N) && (t.gravitationForceX = -this.gravityConstant * l, t.gravitationForceY = -this.gravityConstant * T)) : (N = s.getEstimatedSize() * this.compoundGravityRangeFactor, (g > N || d > N) && (t.gravitationForceX = -this.gravityConstant * l * this.compoundGravityConstant, t.gravitationForceY = -this.gravityConstant * T * this.compoundGravityConstant)); }, r.prototype.isConverged = function() { - var t, o = !1; - return this.totalIterations > this.maxIterations / 3 && (o = Math.abs(this.totalDisplacement - this.oldTotalDisplacement) < 2), t = this.totalDisplacement < this.totalDisplacementThreshold, this.oldTotalDisplacement = this.totalDisplacement, t || o; + var t, s = !1; + return this.totalIterations > this.maxIterations / 3 && (s = Math.abs(this.totalDisplacement - this.oldTotalDisplacement) < 2), t = this.totalDisplacement < this.totalDisplacementThreshold, this.oldTotalDisplacement = this.totalDisplacement, t || s; }, r.prototype.animate = function() { this.animationDuringLayout && !this.isSubLayout && (this.notAnimatedIterations == this.animationPeriod ? (this.update(), this.notAnimatedIterations = 0) : this.notAnimatedIterations++); }, r.prototype.calcNoOfChildrenForAllNodes = function() { - for (var t, o = this.graphManager.getAllNodes(), s = 0; s < o.length; s++) - t = o[s], t.noOfChildren = t.getNoOfChildren(); + for (var t, s = this.graphManager.getAllNodes(), o = 0; o < s.length; o++) + t = s[o], t.noOfChildren = t.getNoOfChildren(); }, r.prototype.calcGrid = function(t) { - var o = 0, s = 0; - o = parseInt(Math.ceil((t.getRight() - t.getLeft()) / this.repulsionRange)), s = parseInt(Math.ceil((t.getBottom() - t.getTop()) / this.repulsionRange)); - for (var c = new Array(o), l = 0; l < o; l++) - c[l] = new Array(s); - for (var l = 0; l < o; l++) - for (var T = 0; T < s; T++) + var s = 0, o = 0; + s = parseInt(Math.ceil((t.getRight() - t.getLeft()) / this.repulsionRange)), o = parseInt(Math.ceil((t.getBottom() - t.getTop()) / this.repulsionRange)); + for (var c = new Array(s), l = 0; l < s; l++) + c[l] = new Array(o); + for (var l = 0; l < s; l++) + for (var T = 0; T < o; T++) c[l][T] = new Array(); return c; - }, r.prototype.addNodeToGrid = function(t, o, s) { + }, r.prototype.addNodeToGrid = function(t, s, o) { var c = 0, l = 0, T = 0, g = 0; - c = parseInt(Math.floor((t.getRect().x - o) / this.repulsionRange)), l = parseInt(Math.floor((t.getRect().width + t.getRect().x - o) / this.repulsionRange)), T = parseInt(Math.floor((t.getRect().y - s) / this.repulsionRange)), g = parseInt(Math.floor((t.getRect().height + t.getRect().y - s) / this.repulsionRange)); + c = parseInt(Math.floor((t.getRect().x - s) / this.repulsionRange)), l = parseInt(Math.floor((t.getRect().width + t.getRect().x - s) / this.repulsionRange)), T = parseInt(Math.floor((t.getRect().y - o) / this.repulsionRange)), g = parseInt(Math.floor((t.getRect().height + t.getRect().y - o) / this.repulsionRange)); for (var d = c; d <= l; d++) for (var N = T; N <= g; N++) this.grid[d][N].push(t), t.setGridCoordinates(c, l, T, g); }, r.prototype.updateGrid = function() { - var t, o, s = this.getAllNodes(); - for (this.grid = this.calcGrid(this.graphManager.getRoot()), t = 0; t < s.length; t++) - o = s[t], this.addNodeToGrid(o, this.graphManager.getRoot().getLeft(), this.graphManager.getRoot().getTop()); - }, r.prototype.calculateRepulsionForceOfANode = function(t, o, s, c) { - if (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && s || c) { + var t, s, o = this.getAllNodes(); + for (this.grid = this.calcGrid(this.graphManager.getRoot()), t = 0; t < o.length; t++) + s = o[t], this.addNodeToGrid(s, this.graphManager.getRoot().getLeft(), this.graphManager.getRoot().getTop()); + }, r.prototype.calculateRepulsionForceOfANode = function(t, s, o, c) { + if (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && o || c) { var l = /* @__PURE__ */ new Set(); t.surrounding = new Array(); for (var T, g = this.grid, d = t.startX - 1; d < t.finishX + 2; d++) for (var N = t.startY - 1; N < t.finishY + 2; N++) if (!(d < 0 || N < 0 || d >= g.length || N >= g[0].length)) { - for (var F = 0; F < g[d][N].length; F++) - if (T = g[d][N][F], !(t.getOwner() != T.getOwner() || t == T) && !o.has(T) && !l.has(T)) { - var A = Math.abs(t.getCenterX() - T.getCenterX()) - (t.getWidth() / 2 + T.getWidth() / 2), G = Math.abs(t.getCenterY() - T.getCenterY()) - (t.getHeight() / 2 + T.getHeight() / 2); - A <= this.repulsionRange && G <= this.repulsionRange && l.add(T); + for (var b = 0; b < g[d][N].length; b++) + if (T = g[d][N][b], !(t.getOwner() != T.getOwner() || t == T) && !s.has(T) && !l.has(T)) { + var A = Math.abs(t.getCenterX() - T.getCenterX()) - (t.getWidth() / 2 + T.getWidth() / 2), S = Math.abs(t.getCenterY() - T.getCenterY()) - (t.getHeight() / 2 + T.getHeight() / 2); + A <= this.repulsionRange && S <= this.repulsionRange && l.add(T); } } t.surrounding = [].concat(u(l)); @@ -1447,14 +1447,14 @@ function gr() { return a; }, u.multL = function(h, a, e) { for (var i = [], f = [], r = [], v = 0; v < a[0].length; v++) { - for (var t = 0, o = 0; o < a.length; o++) - t += -0.5 * a[o][v] * h[o]; + for (var t = 0, s = 0; s < a.length; s++) + t += -0.5 * a[s][v] * h[s]; f[v] = t; } - for (var s = 0; s < e.length; s++) { + for (var o = 0; o < e.length; o++) { for (var c = 0, l = 0; l < e.length; l++) - c += e[s][l] * f[l]; - r[s] = c; + c += e[o][l] * f[l]; + r[o] = c; } for (var T = 0; T < a.length; T++) { for (var g = 0, d = 0; d < a[0].length; d++) @@ -1492,20 +1492,20 @@ function gr() { key: "_quicksort", value: function(r, v, t) { if (v < t) { - var o = this._partition(r, v, t); - this._quicksort(r, v, o), this._quicksort(r, o + 1, t); + var s = this._partition(r, v, t); + this._quicksort(r, v, s), this._quicksort(r, s + 1, t); } } }, { key: "_partition", value: function(r, v, t) { - for (var o = this._get(r, v), s = v, c = t; ; ) { - for (; this.compareFunction(o, this._get(r, c)); ) + for (var s = this._get(r, v), o = v, c = t; ; ) { + for (; this.compareFunction(s, this._get(r, c)); ) c--; - for (; this.compareFunction(this._get(r, s), o); ) - s++; - if (s < c) - this._swap(r, s, c), s++, c--; + for (; this.compareFunction(this._get(r, o), s); ) + o++; + if (o < c) + this._swap(r, o, c), o++, c--; else return c; } } @@ -1522,8 +1522,8 @@ function gr() { }, { key: "_swap", value: function(r, v, t) { - var o = this._get(r, v); - this._set(r, v, this._get(r, t)), this._set(r, t, o); + var s = this._get(r, v); + this._set(r, v, this._get(r, t)), this._set(r, t, s); } }, { key: "_defaultCompareFunction", @@ -1547,20 +1547,20 @@ function gr() { Ct.push(0); return Ct; })(Math.min(this.m + 1, this.n)), this.U = (function(Tt) { - var Ct = function $t(bt) { + var Ct = function Bt(bt) { if (bt.length == 0) return 0; for (var zt = [], St = 0; St < bt[0]; St++) - zt.push($t(bt.slice(1))); + zt.push(Bt(bt.slice(1))); return zt; }; return Ct(Tt); })([this.m, a]), this.V = (function(Tt) { - var Ct = function $t(bt) { + var Ct = function Bt(bt) { if (bt.length == 0) return 0; for (var zt = [], St = 0; St < bt[0]; St++) - zt.push($t(bt.slice(1))); + zt.push(Bt(bt.slice(1))); return zt; }; return Ct(Tt); @@ -1576,12 +1576,12 @@ function gr() { })(this.m), f = !0, r = Math.min(this.m - 1, this.n), v = Math.max(0, Math.min(this.n - 2, this.m)), t = 0; t < Math.max(r, v); t++) { if (t < r) { this.s[t] = 0; - for (var o = t; o < this.m; o++) - this.s[t] = u.hypot(this.s[t], h[o][t]); + for (var s = t; s < this.m; s++) + this.s[t] = u.hypot(this.s[t], h[s][t]); if (this.s[t] !== 0) { h[t][t] < 0 && (this.s[t] = -this.s[t]); - for (var s = t; s < this.m; s++) - h[s][t] /= this.s[t]; + for (var o = t; o < this.m; o++) + h[o][t] /= this.s[t]; h[t][t] += 1; } this.s[t] = -this.s[t]; @@ -1609,8 +1609,8 @@ function gr() { e[t] = u.hypot(e[t], e[N]); if (e[t] !== 0) { e[t + 1] < 0 && (e[t] = -e[t]); - for (var F = t + 1; F < this.n; F++) - e[F] /= e[t]; + for (var b = t + 1; b < this.n; b++) + e[b] /= e[t]; e[t + 1] += 1; } if (e[t] = -e[t], /* @__PURE__ */ (function(Tt, Ct) { @@ -1618,15 +1618,15 @@ function gr() { })(t + 1 < this.m, e[t] !== 0)) { for (var A = t + 1; A < this.m; A++) i[A] = 0; - for (var G = t + 1; G < this.n; G++) - for (var k = t + 1; k < this.m; k++) - i[k] += e[G] * h[k][G]; + for (var S = t + 1; S < this.n; S++) + for (var V = t + 1; V < this.m; V++) + i[V] += e[S] * h[V][S]; for (var X = t + 1; X < this.n; X++) - for (var J = -e[X] / e[t + 1], D = t + 1; D < this.m; D++) - h[D][X] += J * i[D]; + for (var k = -e[X] / e[t + 1], D = t + 1; D < this.m; D++) + h[D][X] += k * i[D]; } - for (var rt = t + 1; rt < this.n; rt++) - this.V[rt][t] = e[rt]; + for (var _ = t + 1; _ < this.n; _++) + this.V[_][t] = e[_]; } } var n = Math.min(this.n, this.m + 1); @@ -1652,54 +1652,54 @@ function gr() { for (var x = 0; x < E - 1; x++) this.U[x][E] = 0; } else { - for (var q = 0; q < this.m; q++) - this.U[q][E] = 0; + for (var Q = 0; Q < this.m; Q++) + this.U[Q][E] = 0; this.U[E][E] = 1; } } - for (var V = this.n - 1; V >= 0; V--) { + for (var z = this.n - 1; z >= 0; z--) { if (/* @__PURE__ */ (function(Tt, Ct) { return Tt && Ct; - })(V < v, e[V] !== 0)) - for (var Y = V + 1; Y < a; Y++) { - for (var et = 0, z = V + 1; z < this.n; z++) - et += this.V[z][V] * this.V[z][Y]; - et = -et / this.V[V + 1][V]; - for (var O = V + 1; O < this.n; O++) - this.V[O][Y] += et * this.V[O][V]; + })(z < v, e[z] !== 0)) + for (var Y = z + 1; Y < a; Y++) { + for (var rt = 0, B = z + 1; B < this.n; B++) + rt += this.V[B][z] * this.V[B][Y]; + rt = -rt / this.V[z + 1][z]; + for (var O = z + 1; O < this.n; O++) + this.V[O][Y] += rt * this.V[O][z]; } for (var H = 0; H < this.n; H++) - this.V[H][V] = 0; - this.V[V][V] = 1; + this.V[H][z] = 0; + this.V[z][z] = 1; } - for (var $ = n - 1, _ = Math.pow(2, -52), ht = Math.pow(2, -966); n > 0; ) { - var Q = void 0, It = void 0; - for (Q = n - 2; Q >= -1 && Q !== -1; Q--) - if (Math.abs(e[Q]) <= ht + _ * (Math.abs(this.s[Q]) + Math.abs(this.s[Q + 1]))) { - e[Q] = 0; + for (var $ = n - 1, tt = Math.pow(2, -52), ht = Math.pow(2, -966); n > 0; ) { + var J = void 0, It = void 0; + for (J = n - 2; J >= -1 && J !== -1; J--) + if (Math.abs(e[J]) <= ht + tt * (Math.abs(this.s[J]) + Math.abs(this.s[J + 1]))) { + e[J] = 0; break; } - if (Q === n - 2) + if (J === n - 2) It = 4; else { var Nt = void 0; - for (Nt = n - 1; Nt >= Q && Nt !== Q; Nt--) { - var vt = (Nt !== n ? Math.abs(e[Nt]) : 0) + (Nt !== Q + 1 ? Math.abs(e[Nt - 1]) : 0); - if (Math.abs(this.s[Nt]) <= ht + _ * vt) { + for (Nt = n - 1; Nt >= J && Nt !== J; Nt--) { + var vt = (Nt !== n ? Math.abs(e[Nt]) : 0) + (Nt !== J + 1 ? Math.abs(e[Nt - 1]) : 0); + if (Math.abs(this.s[Nt]) <= ht + tt * vt) { this.s[Nt] = 0; break; } } - Nt === Q ? It = 3 : Nt === n - 1 ? It = 1 : (It = 2, Q = Nt); + Nt === J ? It = 3 : Nt === n - 1 ? It = 1 : (It = 2, J = Nt); } - switch (Q++, It) { + switch (J++, It) { case 1: { var it = e[n - 2]; e[n - 2] = 0; - for (var gt = n - 2; gt >= Q; gt--) { + for (var gt = n - 2; gt >= J; gt--) { var mt = u.hypot(this.s[gt], it), At = this.s[gt] / mt, Ot = it / mt; - this.s[gt] = mt, gt !== Q && (it = -Ot * e[gt - 1], e[gt - 1] = At * e[gt - 1]); + this.s[gt] = mt, gt !== J && (it = -Ot * e[gt - 1], e[gt - 1] = At * e[gt - 1]); for (var Et = 0; Et < this.n; Et++) mt = At * this.V[Et][gt] + Ot * this.V[Et][n - 1], this.V[Et][n - 1] = -Ot * this.V[Et][gt] + At * this.V[Et][n - 1], this.V[Et][gt] = mt; } @@ -1707,28 +1707,28 @@ function gr() { break; case 2: { - var Dt = e[Q - 1]; - e[Q - 1] = 0; - for (var Rt = Q; Rt < n; Rt++) { + var Dt = e[J - 1]; + e[J - 1] = 0; + for (var Rt = J; Rt < n; Rt++) { var Ht = u.hypot(this.s[Rt], Dt), Ut = this.s[Rt] / Ht, Pt = Dt / Ht; this.s[Rt] = Ht, Dt = -Pt * e[Rt], e[Rt] = Ut * e[Rt]; for (var Ft = 0; Ft < this.m; Ft++) - Ht = Ut * this.U[Ft][Rt] + Pt * this.U[Ft][Q - 1], this.U[Ft][Q - 1] = -Pt * this.U[Ft][Rt] + Ut * this.U[Ft][Q - 1], this.U[Ft][Rt] = Ht; + Ht = Ut * this.U[Ft][Rt] + Pt * this.U[Ft][J - 1], this.U[Ft][J - 1] = -Pt * this.U[Ft][Rt] + Ut * this.U[Ft][J - 1], this.U[Ft][Rt] = Ht; } } break; case 3: { - var Yt = Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[n - 1]), Math.abs(this.s[n - 2])), Math.abs(e[n - 2])), Math.abs(this.s[Q])), Math.abs(e[Q])), Vt = this.s[n - 1] / Yt, S = this.s[n - 2] / Yt, b = e[n - 2] / Yt, B = this.s[Q] / Yt, K = e[Q] / Yt, Z = ((S + Vt) * (S - Vt) + b * b) / 2, at = Vt * b * (Vt * b), ct = 0; + var Yt = Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[n - 1]), Math.abs(this.s[n - 2])), Math.abs(e[n - 2])), Math.abs(this.s[J])), Math.abs(e[J])), Vt = this.s[n - 1] / Yt, F = this.s[n - 2] / Yt, P = e[n - 2] / Yt, Z = this.s[J] / Yt, K = e[J] / Yt, q = ((F + Vt) * (F - Vt) + P * P) / 2, at = Vt * P * (Vt * P), ct = 0; /* @__PURE__ */ (function(Tt, Ct) { return Tt || Ct; - })(Z !== 0, at !== 0) && (ct = Math.sqrt(Z * Z + at), Z < 0 && (ct = -ct), ct = at / (Z + ct)); - for (var nt = (B + Vt) * (B - Vt) + ct, tt = B * K, j = Q; j < n - 1; j++) { - var ut = u.hypot(nt, tt), wt = nt / ut, pt = tt / ut; - j !== Q && (e[j - 1] = ut), nt = wt * this.s[j] + pt * e[j], e[j] = wt * e[j] - pt * this.s[j], tt = pt * this.s[j + 1], this.s[j + 1] = wt * this.s[j + 1]; + })(q !== 0, at !== 0) && (ct = Math.sqrt(q * q + at), q < 0 && (ct = -ct), ct = at / (q + ct)); + for (var nt = (Z + Vt) * (Z - Vt) + ct, et = Z * K, j = J; j < n - 1; j++) { + var ut = u.hypot(nt, et), wt = nt / ut, pt = et / ut; + j !== J && (e[j - 1] = ut), nt = wt * this.s[j] + pt * e[j], e[j] = wt * e[j] - pt * this.s[j], et = pt * this.s[j + 1], this.s[j + 1] = wt * this.s[j + 1]; for (var xt = 0; xt < this.n; xt++) ut = wt * this.V[xt][j] + pt * this.V[xt][j + 1], this.V[xt][j + 1] = -pt * this.V[xt][j] + wt * this.V[xt][j + 1], this.V[xt][j] = ut; - if (ut = u.hypot(nt, tt), wt = nt / ut, pt = tt / ut, this.s[j] = ut, nt = wt * e[j] + pt * this.s[j + 1], this.s[j + 1] = -pt * e[j] + wt * this.s[j + 1], tt = pt * e[j + 1], e[j + 1] = wt * e[j + 1], j < this.m - 1) + if (ut = u.hypot(nt, et), wt = nt / ut, pt = et / ut, this.s[j] = ut, nt = wt * e[j] + pt * this.s[j + 1], this.s[j + 1] = -pt * e[j] + wt * this.s[j + 1], et = pt * e[j + 1], e[j + 1] = wt * e[j + 1], j < this.m - 1) for (var lt = 0; lt < this.m; lt++) ut = wt * this.U[lt][j] + pt * this.U[lt][j + 1], this.U[lt][j + 1] = -pt * this.U[lt][j] + wt * this.U[lt][j + 1], this.U[lt][j] = ut; } @@ -1737,20 +1737,20 @@ function gr() { break; case 4: { - if (this.s[Q] <= 0) { - this.s[Q] = this.s[Q] < 0 ? -this.s[Q] : 0; + if (this.s[J] <= 0) { + this.s[J] = this.s[J] < 0 ? -this.s[J] : 0; for (var ot = 0; ot <= $; ot++) - this.V[ot][Q] = -this.V[ot][Q]; + this.V[ot][J] = -this.V[ot][J]; } - for (; Q < $ && !(this.s[Q] >= this.s[Q + 1]); ) { - var Lt = this.s[Q]; - if (this.s[Q] = this.s[Q + 1], this.s[Q + 1] = Lt, Q < this.n - 1) + for (; J < $ && !(this.s[J] >= this.s[J + 1]); ) { + var Lt = this.s[J]; + if (this.s[J] = this.s[J + 1], this.s[J + 1] = Lt, J < this.n - 1) for (var ft = 0; ft < this.n; ft++) - Lt = this.V[ft][Q + 1], this.V[ft][Q + 1] = this.V[ft][Q], this.V[ft][Q] = Lt; - if (Q < this.m - 1) + Lt = this.V[ft][J + 1], this.V[ft][J + 1] = this.V[ft][J], this.V[ft][J] = Lt; + if (J < this.m - 1) for (var st = 0; st < this.m; st++) - Lt = this.U[st][Q + 1], this.U[st][Q + 1] = this.U[st][Q], this.U[st][Q] = Lt; - Q++; + Lt = this.U[st][J + 1], this.U[st][J + 1] = this.U[st][J], this.U[st][J] = Lt; + J++; } n--; } @@ -1786,10 +1786,10 @@ function gr() { function e(i, f) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, v = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : -1, t = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : -1; h(this, e), this.sequence1 = i, this.sequence2 = f, this.match_score = r, this.mismatch_penalty = v, this.gap_penalty = t, this.iMax = i.length + 1, this.jMax = f.length + 1, this.grid = new Array(this.iMax); - for (var o = 0; o < this.iMax; o++) { - this.grid[o] = new Array(this.jMax); - for (var s = 0; s < this.jMax; s++) - this.grid[o][s] = 0; + for (var s = 0; s < this.iMax; s++) { + this.grid[s] = new Array(this.jMax); + for (var o = 0; o < this.jMax; o++) + this.grid[s][o] = 0; } this.tracebackGrid = new Array(this.iMax); for (var c = 0; c < this.iMax; c++) { @@ -1819,9 +1819,9 @@ function gr() { this.grid[r][0] = this.grid[r - 1][0] + this.gap_penalty, this.tracebackGrid[r][0] = [!1, !0, !1]; for (var v = 1; v < this.iMax; v++) for (var t = 1; t < this.jMax; t++) { - var o = void 0; - this.sequence1[v - 1] === this.sequence2[t - 1] ? o = this.grid[v - 1][t - 1] + this.match_score : o = this.grid[v - 1][t - 1] + this.mismatch_penalty; - var s = this.grid[v - 1][t] + this.gap_penalty, c = this.grid[v][t - 1] + this.gap_penalty, l = [o, s, c], T = this.arrayAllMaxIndexes(l); + var s = void 0; + this.sequence1[v - 1] === this.sequence2[t - 1] ? s = this.grid[v - 1][t - 1] + this.match_score : s = this.grid[v - 1][t - 1] + this.mismatch_penalty; + var o = this.grid[v - 1][t] + this.gap_penalty, c = this.grid[v][t - 1] + this.gap_penalty, l = [s, o, c], T = this.arrayAllMaxIndexes(l); this.grid[v][t] = l[T[0]], this.tracebackGrid[v][t] = [T.includes(0), T.includes(1), T.includes(2)]; } this.score = this.grid[this.iMax - 1][this.jMax - 1]; @@ -1912,7 +1912,7 @@ function gr() { } var ur = he.exports, Me; function dr() { - return Me || (Me = 1, (function(C, P) { + return Me || (Me = 1, (function(C, G) { (function(U, L) { C.exports = L(gr()); })(ur, function(w) { @@ -1945,8 +1945,8 @@ function dr() { /***/ ((a, e, i) => { var f = i(551).FDLayoutEdge; - function r(t, o, s) { - f.call(this, t, o, s); + function r(t, s, o) { + f.call(this, t, s, o); } r.prototype = Object.create(f.prototype); for (var v in f) @@ -1959,8 +1959,8 @@ function dr() { /***/ ((a, e, i) => { var f = i(551).LGraph; - function r(t, o, s) { - f.call(this, t, o, s); + function r(t, s, o) { + f.call(this, t, s, o); } r.prototype = Object.create(f.prototype); for (var v in f) @@ -1986,13 +1986,13 @@ function dr() { 765: ( /***/ ((a, e, i) => { - var f = i(551).FDLayout, r = i(578), v = i(880), t = i(991), o = i(767), s = i(806), c = i(902), l = i(551).FDLayoutConstants, T = i(551).LayoutConstants, g = i(551).Point, d = i(551).PointD, N = i(551).DimensionD, F = i(551).Layout, A = i(551).Integer, G = i(551).IGeometry, k = i(551).LGraph, X = i(551).Transform, J = i(551).LinkedList; + var f = i(551).FDLayout, r = i(578), v = i(880), t = i(991), s = i(767), o = i(806), c = i(902), l = i(551).FDLayoutConstants, T = i(551).LayoutConstants, g = i(551).Point, d = i(551).PointD, N = i(551).DimensionD, b = i(551).Layout, A = i(551).Integer, S = i(551).IGeometry, V = i(551).LGraph, X = i(551).Transform, k = i(551).LinkedList; function D() { f.call(this), this.toBeTiled = {}, this.constraints = {}; } D.prototype = Object.create(f.prototype); - for (var rt in f) - D[rt] = f[rt]; + for (var _ in f) + D[_] = f[_]; D.prototype.newGraphManager = function() { var n = new r(this); return this.graphManager = n, n; @@ -2001,9 +2001,9 @@ function dr() { }, D.prototype.newNode = function(n) { return new t(this.graphManager, n); }, D.prototype.newEdge = function(n) { - return new o(null, null, n); + return new s(null, null, n); }, D.prototype.initParameters = function() { - f.prototype.initParameters.call(this, arguments), this.isSubLayout || (s.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = s.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = l.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = l.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = l.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1); + f.prototype.initParameters.call(this, arguments), this.isSubLayout || (o.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = o.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = l.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = l.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = l.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1); }, D.prototype.initSpringEmbedder = function() { f.prototype.initSpringEmbedder.call(this), this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / l.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = 0.04, this.coolingAdjuster = 1; }, D.prototype.layout = function() { @@ -2011,7 +2011,7 @@ function dr() { return n && (this.createBendpoints(), this.graphManager.resetAllEdges()), this.level = 0, this.classicLayout(); }, D.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 (s.TREE_REDUCTION_ON_INCREMENTAL) { + if (o.TREE_REDUCTION_ON_INCREMENTAL) { this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation(); var m = new Set(this.getAllNodes()), p = this.nodesWithGravity.filter(function(I) { return m.has(I); @@ -2030,7 +2030,7 @@ function dr() { this.graphManager.setAllNodesToApplyGravitation(p), this.positionNodesRandomly(); } } - return Object.keys(this.constraints).length > 0 && (c.handleConstraints(this), this.initConstraintVariables()), this.initSpringEmbedder(), s.APPLY_LAYOUT && this.runSpringEmbedder(), !0; + return Object.keys(this.constraints).length > 0 && (c.handleConstraints(this), this.initConstraintVariables()), this.initSpringEmbedder(), o.APPLY_LAYOUT && this.runSpringEmbedder(), !0; }, D.prototype.tick = function() { if (this.totalIterations++, this.totalIterations === this.maxIterations && !this.isTreeGrowing && !this.isGrowthFinished) if (this.prunedNodesAll.length > 0) @@ -2052,7 +2052,7 @@ function dr() { var n = new Set(this.getAllNodes()), m = this.nodesWithGravity.filter(function(y) { return n.has(y); }); - this.graphManager.setAllNodesToApplyGravitation(m), this.graphManager.updateBounds(), this.updateGrid(), s.PURE_INCREMENTAL ? this.coolingFactor = l.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 : this.coolingFactor = l.DEFAULT_COOLING_FACTOR_INCREMENTAL; + this.graphManager.setAllNodesToApplyGravitation(m), this.graphManager.updateBounds(), this.updateGrid(), o.PURE_INCREMENTAL ? this.coolingFactor = l.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 : this.coolingFactor = l.DEFAULT_COOLING_FACTOR_INCREMENTAL; } else this.isTreeGrowing = !1, this.isGrowthFinished = !0; this.growTreeIterations++; @@ -2060,7 +2060,7 @@ function dr() { if (this.isGrowthFinished) { if (this.isConverged()) return !0; - this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), s.PURE_INCREMENTAL ? this.coolingFactor = l.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 * ((100 - this.afterGrowthIterations) / 100) : this.coolingFactor = l.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++; + this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), o.PURE_INCREMENTAL ? this.coolingFactor = l.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 * ((100 - this.afterGrowthIterations) / 100) : this.coolingFactor = l.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++; } var p = !this.isTreeGrowing && !this.isGrowthFinished, E = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished; return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(p, E), this.calcGravitationalForces(), this.moveNodes(), this.animate(), !1; @@ -2100,8 +2100,8 @@ function dr() { this.idToNodeMap.set(E.id, E); } var y = function O(H) { - for (var $ = H.getChild().getNodes(), _, ht = 0, Q = 0; Q < $.length; Q++) - _ = $[Q], _.getChild() == null ? n.fixedNodeSet.has(_.id) && (ht += 100) : ht += O(_); + for (var $ = H.getChild().getNodes(), tt, ht = 0, J = 0; J < $.length; J++) + tt = $[J], tt.getChild() == null ? n.fixedNodeSet.has(tt.id) && (ht += 100) : ht += O(tt); return ht; }; if (this.constraints.fixedNodeConstraint) { @@ -2130,58 +2130,58 @@ function dr() { R.set(H, "dummy" + p), n.dummyToNodeForHorizontalAlignment.get("dummy" + p).push(H), n.fixedNodeSet.has(H) && n.fixedNodesOnVertical.add("dummy" + p); }); } - if (s.RELAX_MOVEMENT_ON_CONSTRAINTS) + if (o.RELAX_MOVEMENT_ON_CONSTRAINTS) this.shuffle = function(O) { - var H, $, _; - for (_ = O.length - 1; _ >= 2 * O.length / 3; _--) - H = Math.floor(Math.random() * (_ + 1)), $ = O[_], O[_] = O[H], O[H] = $; + var H, $, tt; + for (tt = O.length - 1; tt >= 2 * O.length / 3; tt--) + H = Math.floor(Math.random() * (tt + 1)), $ = O[tt], O[tt] = O[H], O[H] = $; return O; }, this.nodesInRelativeHorizontal = [], this.nodesInRelativeVertical = [], this.nodeToRelativeConstraintMapHorizontal = /* @__PURE__ */ new Map(), this.nodeToRelativeConstraintMapVertical = /* @__PURE__ */ new Map(), this.nodeToTempPositionMapHorizontal = /* @__PURE__ */ new Map(), this.nodeToTempPositionMapVertical = /* @__PURE__ */ new Map(), this.constraints.relativePlacementConstraint.forEach(function(O) { if (O.left) { var H = M.has(O.left) ? M.get(O.left) : O.left, $ = M.has(O.right) ? M.get(O.right) : O.right; n.nodesInRelativeHorizontal.includes(H) || (n.nodesInRelativeHorizontal.push(H), n.nodeToRelativeConstraintMapHorizontal.set(H, []), n.dummyToNodeForVerticalAlignment.has(H) ? n.nodeToTempPositionMapHorizontal.set(H, n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()) : n.nodeToTempPositionMapHorizontal.set(H, n.idToNodeMap.get(H).getCenterX())), n.nodesInRelativeHorizontal.includes($) || (n.nodesInRelativeHorizontal.push($), n.nodeToRelativeConstraintMapHorizontal.set($, []), n.dummyToNodeForVerticalAlignment.has($) ? n.nodeToTempPositionMapHorizontal.set($, n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get($)[0]).getCenterX()) : n.nodeToTempPositionMapHorizontal.set($, n.idToNodeMap.get($).getCenterX())), n.nodeToRelativeConstraintMapHorizontal.get(H).push({ right: $, gap: O.gap }), n.nodeToRelativeConstraintMapHorizontal.get($).push({ left: H, gap: O.gap }); } else { - var _ = R.has(O.top) ? R.get(O.top) : O.top, ht = R.has(O.bottom) ? R.get(O.bottom) : O.bottom; - n.nodesInRelativeVertical.includes(_) || (n.nodesInRelativeVertical.push(_), n.nodeToRelativeConstraintMapVertical.set(_, []), n.dummyToNodeForHorizontalAlignment.has(_) ? n.nodeToTempPositionMapVertical.set(_, n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()) : n.nodeToTempPositionMapVertical.set(_, n.idToNodeMap.get(_).getCenterY())), n.nodesInRelativeVertical.includes(ht) || (n.nodesInRelativeVertical.push(ht), n.nodeToRelativeConstraintMapVertical.set(ht, []), n.dummyToNodeForHorizontalAlignment.has(ht) ? n.nodeToTempPositionMapVertical.set(ht, n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()) : n.nodeToTempPositionMapVertical.set(ht, n.idToNodeMap.get(ht).getCenterY())), n.nodeToRelativeConstraintMapVertical.get(_).push({ bottom: ht, gap: O.gap }), n.nodeToRelativeConstraintMapVertical.get(ht).push({ top: _, gap: O.gap }); + var tt = R.has(O.top) ? R.get(O.top) : O.top, ht = R.has(O.bottom) ? R.get(O.bottom) : O.bottom; + n.nodesInRelativeVertical.includes(tt) || (n.nodesInRelativeVertical.push(tt), n.nodeToRelativeConstraintMapVertical.set(tt, []), n.dummyToNodeForHorizontalAlignment.has(tt) ? n.nodeToTempPositionMapVertical.set(tt, n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(tt)[0]).getCenterY()) : n.nodeToTempPositionMapVertical.set(tt, n.idToNodeMap.get(tt).getCenterY())), n.nodesInRelativeVertical.includes(ht) || (n.nodesInRelativeVertical.push(ht), n.nodeToRelativeConstraintMapVertical.set(ht, []), n.dummyToNodeForHorizontalAlignment.has(ht) ? n.nodeToTempPositionMapVertical.set(ht, n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()) : n.nodeToTempPositionMapVertical.set(ht, n.idToNodeMap.get(ht).getCenterY())), n.nodeToRelativeConstraintMapVertical.get(tt).push({ bottom: ht, gap: O.gap }), n.nodeToRelativeConstraintMapVertical.get(ht).push({ top: tt, gap: O.gap }); } }); else { - var q = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(); + var Q = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(); this.constraints.relativePlacementConstraint.forEach(function(O) { if (O.left) { var H = M.has(O.left) ? M.get(O.left) : O.left, $ = M.has(O.right) ? M.get(O.right) : O.right; - q.has(H) ? q.get(H).push($) : q.set(H, [$]), q.has($) ? q.get($).push(H) : q.set($, [H]); + Q.has(H) ? Q.get(H).push($) : Q.set(H, [$]), Q.has($) ? Q.get($).push(H) : Q.set($, [H]); } else { - var _ = R.has(O.top) ? R.get(O.top) : O.top, ht = R.has(O.bottom) ? R.get(O.bottom) : O.bottom; - V.has(_) ? V.get(_).push(ht) : V.set(_, [ht]), V.has(ht) ? V.get(ht).push(_) : V.set(ht, [_]); + var tt = R.has(O.top) ? R.get(O.top) : O.top, ht = R.has(O.bottom) ? R.get(O.bottom) : O.bottom; + z.has(tt) ? z.get(tt).push(ht) : z.set(tt, [ht]), z.has(ht) ? z.get(ht).push(tt) : z.set(ht, [tt]); } }); var Y = function(H, $) { - var _ = [], ht = [], Q = new J(), It = /* @__PURE__ */ new Set(), Nt = 0; + var tt = [], ht = [], J = new k(), It = /* @__PURE__ */ new Set(), Nt = 0; return H.forEach(function(vt, it) { if (!It.has(it)) { - _[Nt] = [], ht[Nt] = !1; + tt[Nt] = [], ht[Nt] = !1; var gt = it; - for (Q.push(gt), It.add(gt), _[Nt].push(gt); Q.length != 0; ) { - gt = Q.shift(), $.has(gt) && (ht[Nt] = !0); + for (J.push(gt), It.add(gt), tt[Nt].push(gt); J.length != 0; ) { + gt = J.shift(), $.has(gt) && (ht[Nt] = !0); var mt = H.get(gt); mt.forEach(function(At) { - It.has(At) || (Q.push(At), It.add(At), _[Nt].push(At)); + It.has(At) || (J.push(At), It.add(At), tt[Nt].push(At)); }); } Nt++; } - }), { components: _, isFixed: ht }; - }, et = Y(q, n.fixedNodesOnHorizontal); - this.componentsOnHorizontal = et.components, this.fixedComponentsOnHorizontal = et.isFixed; - var z = Y(V, n.fixedNodesOnVertical); - this.componentsOnVertical = z.components, this.fixedComponentsOnVertical = z.isFixed; + }), { components: tt, isFixed: ht }; + }, rt = Y(Q, n.fixedNodesOnHorizontal); + this.componentsOnHorizontal = rt.components, this.fixedComponentsOnHorizontal = rt.isFixed; + var B = Y(z, n.fixedNodesOnVertical); + this.componentsOnVertical = B.components, this.fixedComponentsOnVertical = B.isFixed; } } }, D.prototype.updateDisplacements = function() { var n = this; - if (this.constraints.fixedNodeConstraint && this.constraints.fixedNodeConstraint.forEach(function(z) { - var O = n.idToNodeMap.get(z.nodeId); + if (this.constraints.fixedNodeConstraint && this.constraints.fixedNodeConstraint.forEach(function(B) { + var O = n.idToNodeMap.get(B.nodeId); O.displacementX = 0, O.displacementY = 0; }), this.constraints.alignmentConstraint) { if (this.constraints.alignmentConstraint.vertical) @@ -2210,36 +2210,36 @@ function dr() { } } if (this.constraints.relativePlacementConstraint) - if (s.RELAX_MOVEMENT_ON_CONSTRAINTS) - this.totalIterations % 10 == 0 && (this.shuffle(this.nodesInRelativeHorizontal), this.shuffle(this.nodesInRelativeVertical)), this.nodesInRelativeHorizontal.forEach(function(z) { - if (!n.fixedNodesOnHorizontal.has(z)) { + if (o.RELAX_MOVEMENT_ON_CONSTRAINTS) + this.totalIterations % 10 == 0 && (this.shuffle(this.nodesInRelativeHorizontal), this.shuffle(this.nodesInRelativeVertical)), this.nodesInRelativeHorizontal.forEach(function(B) { + if (!n.fixedNodesOnHorizontal.has(B)) { var O = 0; - n.dummyToNodeForVerticalAlignment.has(z) ? O = n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(z)[0]).displacementX : O = n.idToNodeMap.get(z).displacementX, n.nodeToRelativeConstraintMapHorizontal.get(z).forEach(function(H) { + n.dummyToNodeForVerticalAlignment.has(B) ? O = n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(B)[0]).displacementX : O = n.idToNodeMap.get(B).displacementX, n.nodeToRelativeConstraintMapHorizontal.get(B).forEach(function(H) { if (H.right) { - var $ = n.nodeToTempPositionMapHorizontal.get(H.right) - n.nodeToTempPositionMapHorizontal.get(z) - O; + var $ = n.nodeToTempPositionMapHorizontal.get(H.right) - n.nodeToTempPositionMapHorizontal.get(B) - O; $ < H.gap && (O -= H.gap - $); } else { - var $ = n.nodeToTempPositionMapHorizontal.get(z) - n.nodeToTempPositionMapHorizontal.get(H.left) + O; + var $ = n.nodeToTempPositionMapHorizontal.get(B) - n.nodeToTempPositionMapHorizontal.get(H.left) + O; $ < H.gap && (O += H.gap - $); } - }), n.nodeToTempPositionMapHorizontal.set(z, n.nodeToTempPositionMapHorizontal.get(z) + O), n.dummyToNodeForVerticalAlignment.has(z) ? n.dummyToNodeForVerticalAlignment.get(z).forEach(function(H) { + }), n.nodeToTempPositionMapHorizontal.set(B, n.nodeToTempPositionMapHorizontal.get(B) + O), n.dummyToNodeForVerticalAlignment.has(B) ? n.dummyToNodeForVerticalAlignment.get(B).forEach(function(H) { n.idToNodeMap.get(H).displacementX = O; - }) : n.idToNodeMap.get(z).displacementX = O; + }) : n.idToNodeMap.get(B).displacementX = O; } - }), this.nodesInRelativeVertical.forEach(function(z) { - if (!n.fixedNodesOnHorizontal.has(z)) { + }), this.nodesInRelativeVertical.forEach(function(B) { + if (!n.fixedNodesOnHorizontal.has(B)) { var O = 0; - n.dummyToNodeForHorizontalAlignment.has(z) ? O = n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(z)[0]).displacementY : O = n.idToNodeMap.get(z).displacementY, n.nodeToRelativeConstraintMapVertical.get(z).forEach(function(H) { + n.dummyToNodeForHorizontalAlignment.has(B) ? O = n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(B)[0]).displacementY : O = n.idToNodeMap.get(B).displacementY, n.nodeToRelativeConstraintMapVertical.get(B).forEach(function(H) { if (H.bottom) { - var $ = n.nodeToTempPositionMapVertical.get(H.bottom) - n.nodeToTempPositionMapVertical.get(z) - O; + var $ = n.nodeToTempPositionMapVertical.get(H.bottom) - n.nodeToTempPositionMapVertical.get(B) - O; $ < H.gap && (O -= H.gap - $); } else { - var $ = n.nodeToTempPositionMapVertical.get(z) - n.nodeToTempPositionMapVertical.get(H.top) + O; + var $ = n.nodeToTempPositionMapVertical.get(B) - n.nodeToTempPositionMapVertical.get(H.top) + O; $ < H.gap && (O += H.gap - $); } - }), n.nodeToTempPositionMapVertical.set(z, n.nodeToTempPositionMapVertical.get(z) + O), n.dummyToNodeForHorizontalAlignment.has(z) ? n.dummyToNodeForHorizontalAlignment.get(z).forEach(function(H) { + }), n.nodeToTempPositionMapVertical.set(B, n.nodeToTempPositionMapVertical.get(B) + O), n.dummyToNodeForHorizontalAlignment.has(B) ? n.dummyToNodeForHorizontalAlignment.get(B).forEach(function(H) { n.idToNodeMap.get(H).displacementY = O; - }) : n.idToNodeMap.get(z).displacementY = O; + }) : n.idToNodeMap.get(B).displacementY = O; } }); else { @@ -2251,16 +2251,16 @@ function dr() { n.idToNodeMap.get(H).displacementX = 0; }) : this.idToNodeMap.get(x[y]).displacementX = 0; else { - for (var q = 0, V = 0, y = 0; y < x.length; y++) + for (var Q = 0, z = 0, y = 0; y < x.length; y++) if (this.dummyToNodeForVerticalAlignment.has(x[y])) { var Y = this.dummyToNodeForVerticalAlignment.get(x[y]); - q += Y.length * this.idToNodeMap.get(Y[0]).displacementX, V += Y.length; + Q += Y.length * this.idToNodeMap.get(Y[0]).displacementX, z += Y.length; } else - q += this.idToNodeMap.get(x[y]).displacementX, V++; - for (var et = q / V, y = 0; y < x.length; y++) + Q += this.idToNodeMap.get(x[y]).displacementX, z++; + for (var rt = Q / z, y = 0; y < x.length; y++) this.dummyToNodeForVerticalAlignment.has(x[y]) ? this.dummyToNodeForVerticalAlignment.get(x[y]).forEach(function(H) { - n.idToNodeMap.get(H).displacementX = et; - }) : this.idToNodeMap.get(x[y]).displacementX = et; + n.idToNodeMap.get(H).displacementX = rt; + }) : this.idToNodeMap.get(x[y]).displacementX = rt; } } for (var p = 0; p < this.componentsOnVertical.length; p++) { @@ -2271,16 +2271,16 @@ function dr() { n.idToNodeMap.get($).displacementY = 0; }) : this.idToNodeMap.get(x[y]).displacementY = 0; else { - for (var q = 0, V = 0, y = 0; y < x.length; y++) + for (var Q = 0, z = 0, y = 0; y < x.length; y++) if (this.dummyToNodeForHorizontalAlignment.has(x[y])) { var Y = this.dummyToNodeForHorizontalAlignment.get(x[y]); - q += Y.length * this.idToNodeMap.get(Y[0]).displacementY, V += Y.length; + Q += Y.length * this.idToNodeMap.get(Y[0]).displacementY, z += Y.length; } else - q += this.idToNodeMap.get(x[y]).displacementY, V++; - for (var et = q / V, y = 0; y < x.length; y++) - this.dummyToNodeForHorizontalAlignment.has(x[y]) ? this.dummyToNodeForHorizontalAlignment.get(x[y]).forEach(function(Q) { - n.idToNodeMap.get(Q).displacementY = et; - }) : this.idToNodeMap.get(x[y]).displacementY = et; + Q += this.idToNodeMap.get(x[y]).displacementY, z++; + for (var rt = Q / z, y = 0; y < x.length; y++) + this.dummyToNodeForHorizontalAlignment.has(x[y]) ? this.dummyToNodeForHorizontalAlignment.get(x[y]).forEach(function(J) { + n.idToNodeMap.get(J).displacementY = rt; + }) : this.idToNodeMap.get(x[y]).displacementY = rt; } } } @@ -2320,15 +2320,15 @@ function dr() { } }, D.prototype.positionNodesRadially = function(n) { for (var m = new g(0, 0), p = Math.ceil(Math.sqrt(n.length)), E = 0, y = 0, I = 0, M = new d(0, 0), R = 0; R < n.length; R++) { - R % p == 0 && (I = 0, y = E, R != 0 && (y += s.DEFAULT_COMPONENT_SEPERATION), E = 0); - var W = n[R], x = F.findCenterOfTree(W); - m.x = I, m.y = y, M = D.radialLayout(W, x, m), M.y > E && (E = Math.floor(M.y)), I = Math.floor(M.x + s.DEFAULT_COMPONENT_SEPERATION); + R % p == 0 && (I = 0, y = E, R != 0 && (y += o.DEFAULT_COMPONENT_SEPERATION), E = 0); + var W = n[R], x = b.findCenterOfTree(W); + m.x = I, m.y = y, M = D.radialLayout(W, x, m), M.y > E && (E = Math.floor(M.y)), I = Math.floor(M.x + o.DEFAULT_COMPONENT_SEPERATION); } this.transform(new d(T.WORLD_CENTER_X - M.x / 2, T.WORLD_CENTER_Y - M.y / 2)); }, D.radialLayout = function(n, m, p) { - var E = Math.max(this.maxDiagonalInTree(n), s.DEFAULT_RADIAL_SEPARATION); + var E = Math.max(this.maxDiagonalInTree(n), o.DEFAULT_RADIAL_SEPARATION); D.branchRadialLayout(m, null, 0, 359, 0, E); - var y = k.calculateBounds(n), I = new X(); + var y = V.calculateBounds(n), I = new X(); I.setDeviceOrgX(y.getMinX()), I.setDeviceOrgY(y.getMinY()), I.setWorldOrgX(p.x), I.setWorldOrgY(p.y); for (var M = 0; M < n.length; M++) { var R = n[M]; @@ -2339,24 +2339,24 @@ function dr() { }, D.branchRadialLayout = function(n, m, p, E, y, I) { var M = (E - p + 1) / 2; M < 0 && (M += 180); - var R = (M + p) % 360, W = R * G.TWO_PI / 360, x = y * Math.cos(W), q = y * Math.sin(W); - n.setCenter(x, q); - var V = []; - V = V.concat(n.getEdges()); - var Y = V.length; + var R = (M + p) % 360, W = R * S.TWO_PI / 360, x = y * Math.cos(W), Q = y * Math.sin(W); + n.setCenter(x, Q); + var z = []; + z = z.concat(n.getEdges()); + var Y = z.length; m != null && Y--; - for (var et = 0, z = V.length, O, H = n.getEdgesBetween(m); H.length > 1; ) { + for (var rt = 0, B = z.length, O, H = n.getEdgesBetween(m); H.length > 1; ) { var $ = H[0]; H.splice(0, 1); - var _ = V.indexOf($); - _ >= 0 && V.splice(_, 1), z--, Y--; + var tt = z.indexOf($); + tt >= 0 && z.splice(tt, 1), B--, Y--; } - m != null ? O = (V.indexOf(H[0]) + 1) % z : O = 0; - for (var ht = Math.abs(E - p) / Y, Q = O; et != Y; Q = ++Q % z) { - var It = V[Q].getOtherEnd(n); + m != null ? O = (z.indexOf(H[0]) + 1) % B : O = 0; + for (var ht = Math.abs(E - p) / Y, J = O; rt != Y; J = ++J % B) { + var It = z[J].getOtherEnd(n); if (It != m) { - var Nt = (p + et * ht) % 360, vt = (Nt + ht) % 360; - D.branchRadialLayout(It, n, Nt, vt, y + I, I), et++; + var Nt = (p + rt * ht) % 360, vt = (Nt + ht) % 360; + D.branchRadialLayout(It, n, Nt, vt, y + I, I), rt++; } } }, D.maxDiagonalInTree = function(n) { @@ -2382,13 +2382,13 @@ function dr() { if (m[W].length > 1) { var x = "DummyCompound_" + W; n.memberGroups[x] = m[W]; - var q = m[W][0].getParent(), V = new t(n.graphManager); - V.id = x, V.paddingLeft = q.paddingLeft || 0, V.paddingRight = q.paddingRight || 0, V.paddingBottom = q.paddingBottom || 0, V.paddingTop = q.paddingTop || 0, n.idToDummyNode[x] = V; - var Y = n.getGraphManager().add(n.newGraph(), V), et = q.getChild(); - et.add(V); - for (var z = 0; z < m[W].length; z++) { - var O = m[W][z]; - et.remove(O), Y.add(O); + var Q = m[W][0].getParent(), z = new t(n.graphManager); + z.id = x, z.paddingLeft = Q.paddingLeft || 0, z.paddingRight = Q.paddingRight || 0, z.paddingBottom = Q.paddingBottom || 0, z.paddingTop = Q.paddingTop || 0, n.idToDummyNode[x] = z; + var Y = n.getGraphManager().add(n.newGraph(), z), rt = Q.getChild(); + rt.add(z); + for (var B = 0; B < m[W].length; B++) { + var O = m[W][B]; + rt.remove(O), Y.add(O); } } }); @@ -2402,7 +2402,7 @@ function dr() { var n = this, m = this.tiledZeroDegreePack = []; Object.keys(this.memberGroups).forEach(function(p) { var E = n.idToDummyNode[p]; - if (m[p] = n.tileNodes(n.memberGroups[p], E.paddingLeft + E.paddingRight), E.rect.width = m[p].width, E.rect.height = m[p].height, E.setCenter(m[p].centerX, m[p].centerY), E.labelMarginLeft = 0, E.labelMarginTop = 0, s.NODE_DIMENSIONS_INCLUDE_LABELS) { + if (m[p] = n.tileNodes(n.memberGroups[p], E.paddingLeft + E.paddingRight), E.rect.width = m[p].width, E.rect.height = m[p].height, E.setCenter(m[p].centerX, m[p].centerY), E.labelMarginLeft = 0, E.labelMarginTop = 0, o.NODE_DIMENSIONS_INCLUDE_LABELS) { var y = E.rect.width, I = E.rect.height; E.labelWidth && (E.labelPosHorizontal == "left" ? (E.rect.x -= E.labelWidth, E.setWidth(y + E.labelWidth), E.labelMarginLeft = E.labelWidth) : E.labelPosHorizontal == "center" && E.labelWidth > y ? (E.rect.x -= (E.labelWidth - y) / 2, E.setWidth(E.labelWidth), E.labelMarginLeft = (E.labelWidth - y) / 2) : E.labelPosHorizontal == "right" && E.setWidth(y + E.labelWidth)), E.labelHeight && (E.labelPosVertical == "top" ? (E.rect.y -= E.labelHeight, E.setHeight(I + E.labelHeight), E.labelMarginTop = E.labelHeight) : E.labelPosVertical == "center" && E.labelHeight > I ? (E.rect.y -= (E.labelHeight - I) / 2, E.setHeight(E.labelHeight), E.labelMarginTop = (E.labelHeight - I) / 2) : E.labelPosVertical == "bottom" && E.setHeight(I + E.labelHeight)); } @@ -2465,17 +2465,17 @@ function dr() { for (var R = m, W = 0; W < n.rows.length; W++) { var x = n.rows[W]; m = R; - for (var q = 0, V = 0; V < x.length; V++) { - var Y = x[V]; - Y.rect.x = m, Y.rect.y = p, m += Y.rect.width + n.horizontalPadding, Y.rect.height > q && (q = Y.rect.height); + for (var Q = 0, z = 0; z < x.length; z++) { + var Y = x[z]; + Y.rect.x = m, Y.rect.y = p, m += Y.rect.width + n.horizontalPadding, Y.rect.height > Q && (Q = Y.rect.height); } - p += q + n.verticalPadding; + p += Q + n.verticalPadding; } }, D.prototype.tileCompoundMembers = function(n, m) { var p = this; this.tiledMemberPack = [], Object.keys(n).forEach(function(E) { var y = m[E]; - if (p.tiledMemberPack[E] = p.tileNodes(n[E], y.paddingLeft + y.paddingRight), y.rect.width = p.tiledMemberPack[E].width, y.rect.height = p.tiledMemberPack[E].height, y.setCenter(p.tiledMemberPack[E].centerX, p.tiledMemberPack[E].centerY), y.labelMarginLeft = 0, y.labelMarginTop = 0, s.NODE_DIMENSIONS_INCLUDE_LABELS) { + if (p.tiledMemberPack[E] = p.tileNodes(n[E], y.paddingLeft + y.paddingRight), y.rect.width = p.tiledMemberPack[E].width, y.rect.height = p.tiledMemberPack[E].height, y.setCenter(p.tiledMemberPack[E].centerX, p.tiledMemberPack[E].centerY), y.labelMarginLeft = 0, y.labelMarginTop = 0, o.NODE_DIMENSIONS_INCLUDE_LABELS) { var I = y.rect.width, M = y.rect.height; y.labelWidth && (y.labelPosHorizontal == "left" ? (y.rect.x -= y.labelWidth, y.setWidth(I + y.labelWidth), y.labelMarginLeft = y.labelWidth) : y.labelPosHorizontal == "center" && y.labelWidth > I ? (y.rect.x -= (y.labelWidth - I) / 2, y.setWidth(y.labelWidth), y.labelMarginLeft = (y.labelWidth - I) / 2) : y.labelPosHorizontal == "right" && y.setWidth(I + y.labelWidth)), y.labelHeight && (y.labelPosVertical == "top" ? (y.rect.y -= y.labelHeight, y.setHeight(M + y.labelHeight), y.labelMarginTop = y.labelHeight) : y.labelPosVertical == "center" && y.labelHeight > M ? (y.rect.y -= (y.labelHeight - M) / 2, y.setHeight(y.labelHeight), y.labelMarginTop = (y.labelHeight - M) / 2) : y.labelPosVertical == "bottom" && y.setHeight(M + y.labelHeight)); } @@ -2487,16 +2487,16 @@ function dr() { var m = n.width, p = n.height, E = m / p; return E < 1 && (E = 1 / E), E; }, D.prototype.calcIdealRowWidth = function(n, m) { - var p = s.TILING_PADDING_VERTICAL, E = s.TILING_PADDING_HORIZONTAL, y = n.length, I = 0, M = 0, R = 0; - n.forEach(function(z) { - I += z.getWidth(), M += z.getHeight(), z.getWidth() > R && (R = z.getWidth()); + var p = o.TILING_PADDING_VERTICAL, E = o.TILING_PADDING_HORIZONTAL, y = n.length, I = 0, M = 0, R = 0; + n.forEach(function(B) { + I += B.getWidth(), M += B.getHeight(), B.getWidth() > R && (R = B.getWidth()); }); - var W = I / y, x = M / y, q = Math.pow(p - E, 2) + 4 * (W + E) * (x + p) * y, V = (E - p + Math.sqrt(q)) / (2 * (W + E)), Y; - m ? (Y = Math.ceil(V), Y == V && Y++) : Y = Math.floor(V); - var et = Y * (W + E) - E; - return R > et && (et = R), et += E * 2, et; + var W = I / y, x = M / y, Q = Math.pow(p - E, 2) + 4 * (W + E) * (x + p) * y, z = (E - p + Math.sqrt(Q)) / (2 * (W + E)), Y; + m ? (Y = Math.ceil(z), Y == z && Y++) : Y = Math.floor(z); + var rt = Y * (W + E) - E; + return R > rt && (rt = R), rt += E * 2, rt; }, D.prototype.tileNodesByFavoringDim = function(n, m, p) { - var E = s.TILING_PADDING_VERTICAL, y = s.TILING_PADDING_HORIZONTAL, I = s.TILING_COMPARE_BY, M = { + var E = o.TILING_PADDING_VERTICAL, y = o.TILING_PADDING_HORIZONTAL, I = o.TILING_COMPARE_BY, M = { rows: [], rowWidth: [], rowHeight: [], @@ -2514,22 +2514,22 @@ function dr() { }, W = function(O, H) { return R(H) - R(O); }; - n.sort(function(z, O) { + n.sort(function(B, O) { var H = W; - return M.idealRowWidth ? (H = I, H(z.id, O.id)) : H(z, O); + return M.idealRowWidth ? (H = I, H(B.id, O.id)) : H(B, O); }); - for (var x = 0, q = 0, V = 0; V < n.length; V++) { - var Y = n[V]; - x += Y.getCenterX(), q += Y.getCenterY(); + for (var x = 0, Q = 0, z = 0; z < n.length; z++) { + var Y = n[z]; + x += Y.getCenterX(), Q += Y.getCenterY(); } - M.centerX = x / n.length, M.centerY = q / n.length; - for (var V = 0; V < n.length; V++) { - var Y = n[V]; + M.centerX = x / n.length, M.centerY = Q / n.length; + for (var z = 0; z < n.length; z++) { + var Y = n[z]; if (M.rows.length == 0) this.insertNodeToRow(M, Y, 0, m); else if (this.canAddHorizontal(M, Y.rect.width, Y.rect.height)) { - var et = M.rows.length - 1; - M.idealRowWidth || (et = this.getShortestRowIndex(M)), this.insertNodeToRow(M, Y, et, m); + var rt = M.rows.length - 1; + M.idealRowWidth || (rt = this.getShortestRowIndex(M)), this.insertNodeToRow(M, Y, rt, m); } else this.insertNodeToRow(M, Y, M.rows.length, m); this.shiftToLastRow(M); @@ -2584,16 +2584,16 @@ function dr() { n.height += x - W, this.shiftToLastRow(n); } }, D.prototype.tilingPreLayout = function() { - s.TILE && (this.groupZeroDegreeMembers(), this.clearCompounds(), this.clearZeroDegreeMembers()); + o.TILE && (this.groupZeroDegreeMembers(), this.clearCompounds(), this.clearZeroDegreeMembers()); }, D.prototype.tilingPostLayout = function() { - s.TILE && (this.repopulateZeroDegreeMembers(), this.repopulateCompounds()); + o.TILE && (this.repopulateZeroDegreeMembers(), this.repopulateCompounds()); }, D.prototype.reduceTrees = function() { for (var n = [], m = !0, p; m; ) { var E = this.graphManager.getAllNodes(), y = []; m = !1; for (var I = 0; I < E.length; I++) if (p = E[I], p.getEdges().length == 1 && !p.getEdges()[0].isInterGraph && p.getChild() == null) { - if (s.PURE_INCREMENTAL) { + if (o.PURE_INCREMENTAL) { var M = p.getEdges()[0].getOtherEnd(p), R = new N(p.getCenterX() - M.getCenterX(), p.getCenterY() - M.getCenterY()); y.push([p, p.getEdges()[0], p.getOwner(), R]); } else @@ -2613,32 +2613,32 @@ function dr() { n.splice(n.length - 1, 1), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges(); }, D.prototype.findPlaceforPrunedNode = function(n) { var m, p, E = n[0]; - if (E == n[1].source ? p = n[1].target : p = n[1].source, s.PURE_INCREMENTAL) + if (E == n[1].source ? p = n[1].target : p = n[1].source, o.PURE_INCREMENTAL) E.setCenter(p.getCenterX() + n[3].getWidth(), p.getCenterY() + n[3].getHeight()); else { - var y = p.startX, I = p.finishX, M = p.startY, R = p.finishY, W = 0, x = 0, q = 0, V = 0, Y = [W, q, x, V]; + var y = p.startX, I = p.finishX, M = p.startY, R = p.finishY, W = 0, x = 0, Q = 0, z = 0, Y = [W, Q, x, z]; if (M > 0) - for (var et = y; et <= I; et++) - Y[0] += this.grid[et][M - 1].length + this.grid[et][M].length - 1; + for (var rt = y; rt <= I; rt++) + Y[0] += this.grid[rt][M - 1].length + this.grid[rt][M].length - 1; if (I < this.grid.length - 1) - for (var et = M; et <= R; et++) - Y[1] += this.grid[I + 1][et].length + this.grid[I][et].length - 1; + for (var rt = M; rt <= R; rt++) + Y[1] += this.grid[I + 1][rt].length + this.grid[I][rt].length - 1; if (R < this.grid[0].length - 1) - for (var et = y; et <= I; et++) - Y[2] += this.grid[et][R + 1].length + this.grid[et][R].length - 1; + for (var rt = y; rt <= I; rt++) + Y[2] += this.grid[rt][R + 1].length + this.grid[rt][R].length - 1; if (y > 0) - for (var et = M; et <= R; et++) - Y[3] += this.grid[y - 1][et].length + this.grid[y][et].length - 1; - for (var z = A.MAX_VALUE, O, H, $ = 0; $ < Y.length; $++) - Y[$] < z ? (z = Y[$], O = 1, H = $) : Y[$] == z && O++; - if (O == 3 && z == 0) + for (var rt = M; rt <= R; rt++) + Y[3] += this.grid[y - 1][rt].length + this.grid[y][rt].length - 1; + for (var B = A.MAX_VALUE, O, H, $ = 0; $ < Y.length; $++) + Y[$] < B ? (B = Y[$], O = 1, H = $) : Y[$] == B && O++; + if (O == 3 && B == 0) Y[0] == 0 && Y[1] == 0 && Y[2] == 0 ? m = 1 : Y[0] == 0 && Y[1] == 0 && Y[3] == 0 ? m = 0 : Y[0] == 0 && Y[2] == 0 && Y[3] == 0 ? m = 3 : Y[1] == 0 && Y[2] == 0 && Y[3] == 0 && (m = 2); - else if (O == 2 && z == 0) { - var _ = Math.floor(Math.random() * 2); - Y[0] == 0 && Y[1] == 0 ? _ == 0 ? m = 0 : m = 1 : Y[0] == 0 && Y[2] == 0 ? _ == 0 ? m = 0 : m = 2 : Y[0] == 0 && Y[3] == 0 ? _ == 0 ? m = 0 : m = 3 : Y[1] == 0 && Y[2] == 0 ? _ == 0 ? m = 1 : m = 2 : Y[1] == 0 && Y[3] == 0 ? _ == 0 ? m = 1 : m = 3 : _ == 0 ? m = 2 : m = 3; - } else if (O == 4 && z == 0) { - var _ = Math.floor(Math.random() * 4); - m = _; + else if (O == 2 && B == 0) { + var tt = Math.floor(Math.random() * 2); + Y[0] == 0 && Y[1] == 0 ? tt == 0 ? m = 0 : m = 1 : Y[0] == 0 && Y[2] == 0 ? tt == 0 ? m = 0 : m = 2 : Y[0] == 0 && Y[3] == 0 ? tt == 0 ? m = 0 : m = 3 : Y[1] == 0 && Y[2] == 0 ? tt == 0 ? m = 1 : m = 2 : Y[1] == 0 && Y[3] == 0 ? tt == 0 ? m = 1 : m = 3 : tt == 0 ? m = 2 : m = 3; + } else if (O == 4 && B == 0) { + var tt = Math.floor(Math.random() * 4); + m = tt; } else m = H; m == 0 ? E.setCenter(p.getCenterX(), p.getCenterY() - p.getHeight() / 2 - l.DEFAULT_EDGE_LENGTH - E.getHeight() / 2) : m == 1 ? E.setCenter(p.getCenterX() + p.getWidth() / 2 + l.DEFAULT_EDGE_LENGTH + E.getWidth() / 2, p.getCenterY()) : m == 2 ? E.setCenter(p.getCenterX(), p.getCenterY() + p.getHeight() / 2 + l.DEFAULT_EDGE_LENGTH + E.getHeight() / 2) : E.setCenter(p.getCenterX() - p.getWidth() / 2 - l.DEFAULT_EDGE_LENGTH - E.getWidth() / 2, p.getCenterY()); @@ -2651,33 +2651,33 @@ function dr() { /***/ ((a, e, i) => { var f = i(551).FDLayoutNode, r = i(551).IMath; - function v(o, s, c, l) { - f.call(this, o, s, c, l); + function v(s, o, c, l) { + f.call(this, s, o, c, l); } v.prototype = Object.create(f.prototype); for (var t in f) v[t] = f[t]; v.prototype.calculateDisplacement = function() { - var o = this.graphManager.getLayout(); - this.getChild() != null && this.fixedNodeWeight ? (this.displacementX += o.coolingFactor * (this.springForceX + this.repulsionForceX + this.gravitationForceX) / this.fixedNodeWeight, this.displacementY += o.coolingFactor * (this.springForceY + this.repulsionForceY + this.gravitationForceY) / this.fixedNodeWeight) : (this.displacementX += o.coolingFactor * (this.springForceX + this.repulsionForceX + this.gravitationForceX) / this.noOfChildren, this.displacementY += o.coolingFactor * (this.springForceY + this.repulsionForceY + this.gravitationForceY) / this.noOfChildren), Math.abs(this.displacementX) > o.coolingFactor * o.maxNodeDisplacement && (this.displacementX = o.coolingFactor * o.maxNodeDisplacement * r.sign(this.displacementX)), Math.abs(this.displacementY) > o.coolingFactor * o.maxNodeDisplacement && (this.displacementY = o.coolingFactor * o.maxNodeDisplacement * r.sign(this.displacementY)), this.child && this.child.getNodes().length > 0 && this.propogateDisplacementToChildren(this.displacementX, this.displacementY); - }, v.prototype.propogateDisplacementToChildren = function(o, s) { + var s = this.graphManager.getLayout(); + this.getChild() != null && this.fixedNodeWeight ? (this.displacementX += s.coolingFactor * (this.springForceX + this.repulsionForceX + this.gravitationForceX) / this.fixedNodeWeight, this.displacementY += s.coolingFactor * (this.springForceY + this.repulsionForceY + this.gravitationForceY) / this.fixedNodeWeight) : (this.displacementX += s.coolingFactor * (this.springForceX + this.repulsionForceX + this.gravitationForceX) / this.noOfChildren, this.displacementY += s.coolingFactor * (this.springForceY + this.repulsionForceY + this.gravitationForceY) / this.noOfChildren), Math.abs(this.displacementX) > s.coolingFactor * s.maxNodeDisplacement && (this.displacementX = s.coolingFactor * s.maxNodeDisplacement * r.sign(this.displacementX)), Math.abs(this.displacementY) > s.coolingFactor * s.maxNodeDisplacement && (this.displacementY = s.coolingFactor * s.maxNodeDisplacement * r.sign(this.displacementY)), this.child && this.child.getNodes().length > 0 && this.propogateDisplacementToChildren(this.displacementX, this.displacementY); + }, v.prototype.propogateDisplacementToChildren = function(s, o) { for (var c = this.getChild().getNodes(), l, T = 0; T < c.length; T++) - l = c[T], l.getChild() == null ? (l.displacementX += o, l.displacementY += s) : l.propogateDisplacementToChildren(o, s); + l = c[T], l.getChild() == null ? (l.displacementX += s, l.displacementY += o) : l.propogateDisplacementToChildren(s, o); }, v.prototype.move = function() { - var o = this.graphManager.getLayout(); - (this.child == null || this.child.getNodes().length == 0) && (this.moveBy(this.displacementX, this.displacementY), o.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; - }, v.prototype.setPred1 = function(o) { - this.pred1 = o; + var s = this.graphManager.getLayout(); + (this.child == null || this.child.getNodes().length == 0) && (this.moveBy(this.displacementX, this.displacementY), s.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; + }, v.prototype.setPred1 = function(s) { + this.pred1 = s; }, v.prototype.getPred1 = function() { return pred1; }, v.prototype.getPred2 = function() { return pred2; - }, v.prototype.setNext = function(o) { - this.next = o; + }, v.prototype.setNext = function(s) { + this.next = s; }, v.prototype.getNext = function() { return next; - }, v.prototype.setProcessed = function(o) { - this.processed = o; + }, v.prototype.setProcessed = function(s) { + this.processed = s; }, v.prototype.isProcessed = function() { return processed; }, a.exports = v; @@ -2695,33 +2695,33 @@ function dr() { } else return Array.from(c); } - var r = i(806), v = i(551).LinkedList, t = i(551).Matrix, o = i(551).SVD; - function s() { + var r = i(806), v = i(551).LinkedList, t = i(551).Matrix, s = i(551).SVD; + function o() { } - s.handleConstraints = function(c) { + o.handleConstraints = function(c) { var l = {}; l.fixedNodeConstraint = c.constraints.fixedNodeConstraint, l.alignmentConstraint = c.constraints.alignmentConstraint, l.relativePlacementConstraint = c.constraints.relativePlacementConstraint; - for (var T = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), d = [], N = [], F = c.getAllNodes(), A = 0, G = 0; G < F.length; G++) { - var k = F[G]; - k.getChild() == null && (g.set(k.id, A++), d.push(k.getCenterX()), N.push(k.getCenterY()), T.set(k.id, k)); + for (var T = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), d = [], N = [], b = c.getAllNodes(), A = 0, S = 0; S < b.length; S++) { + var V = b[S]; + V.getChild() == null && (g.set(V.id, A++), d.push(V.getCenterX()), N.push(V.getCenterY()), T.set(V.id, V)); } - l.relativePlacementConstraint && l.relativePlacementConstraint.forEach(function(S) { - !S.gap && S.gap != 0 && (S.left ? S.gap = r.DEFAULT_EDGE_LENGTH + T.get(S.left).getWidth() / 2 + T.get(S.right).getWidth() / 2 : S.gap = r.DEFAULT_EDGE_LENGTH + T.get(S.top).getHeight() / 2 + T.get(S.bottom).getHeight() / 2); + l.relativePlacementConstraint && l.relativePlacementConstraint.forEach(function(F) { + !F.gap && F.gap != 0 && (F.left ? F.gap = r.DEFAULT_EDGE_LENGTH + T.get(F.left).getWidth() / 2 + T.get(F.right).getWidth() / 2 : F.gap = r.DEFAULT_EDGE_LENGTH + T.get(F.top).getHeight() / 2 + T.get(F.bottom).getHeight() / 2); }); - var X = function(b, B) { - return { x: b.x - B.x, y: b.y - B.y }; - }, J = function(b) { - var B = 0, K = 0; - return b.forEach(function(Z) { - B += d[g.get(Z)], K += N[g.get(Z)]; - }), { x: B / b.size, y: K / b.size }; - }, D = function(b, B, K, Z, at) { + var X = function(P, Z) { + return { x: P.x - Z.x, y: P.y - Z.y }; + }, k = function(P) { + var Z = 0, K = 0; + return P.forEach(function(q) { + Z += d[g.get(q)], K += N[g.get(q)]; + }), { x: Z / P.size, y: K / P.size }; + }, D = function(P, Z, K, q, at) { function ct(lt, ot) { var Lt = new Set(lt), ft = !0, st = !1, Xt = void 0; try { for (var Tt = ot[Symbol.iterator](), Ct; !(ft = (Ct = Tt.next()).done); ft = !0) { - var $t = Ct.value; - Lt.add($t); + var Bt = Ct.value; + Lt.add(Bt); } } catch (bt) { st = !0, Xt = bt; @@ -2736,16 +2736,16 @@ function dr() { return Lt; } var nt = /* @__PURE__ */ new Map(); - b.forEach(function(lt, ot) { + P.forEach(function(lt, ot) { nt.set(ot, 0); - }), b.forEach(function(lt, ot) { + }), P.forEach(function(lt, ot) { lt.forEach(function(Lt) { nt.set(Lt.id, nt.get(Lt.id) + 1); }); }); - var tt = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), ut = new v(); + var et = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), ut = new v(); nt.forEach(function(lt, ot) { - lt == 0 ? (ut.push(ot), K || (B == "horizontal" ? tt.set(ot, g.has(ot) ? d[g.get(ot)] : Z.get(ot)) : tt.set(ot, g.has(ot) ? N[g.get(ot)] : Z.get(ot)))) : tt.set(ot, Number.NEGATIVE_INFINITY), K && j.set(ot, /* @__PURE__ */ new Set([ot])); + lt == 0 ? (ut.push(ot), K || (Z == "horizontal" ? et.set(ot, g.has(ot) ? d[g.get(ot)] : q.get(ot)) : et.set(ot, g.has(ot) ? N[g.get(ot)] : q.get(ot)))) : et.set(ot, Number.NEGATIVE_INFINITY), K && j.set(ot, /* @__PURE__ */ new Set([ot])); }), K && at.forEach(function(lt) { var ot = []; if (lt.forEach(function(st) { @@ -2753,40 +2753,40 @@ function dr() { }), ot.length > 0) { var Lt = 0; ot.forEach(function(st) { - B == "horizontal" ? (tt.set(st, g.has(st) ? d[g.get(st)] : Z.get(st)), Lt += tt.get(st)) : (tt.set(st, g.has(st) ? N[g.get(st)] : Z.get(st)), Lt += tt.get(st)); + Z == "horizontal" ? (et.set(st, g.has(st) ? d[g.get(st)] : q.get(st)), Lt += et.get(st)) : (et.set(st, g.has(st) ? N[g.get(st)] : q.get(st)), Lt += et.get(st)); }), Lt = Lt / ot.length, lt.forEach(function(st) { - K.has(st) || tt.set(st, Lt); + K.has(st) || et.set(st, Lt); }); } else { var ft = 0; lt.forEach(function(st) { - B == "horizontal" ? ft += g.has(st) ? d[g.get(st)] : Z.get(st) : ft += g.has(st) ? N[g.get(st)] : Z.get(st); + Z == "horizontal" ? ft += g.has(st) ? d[g.get(st)] : q.get(st) : ft += g.has(st) ? N[g.get(st)] : q.get(st); }), ft = ft / lt.length, lt.forEach(function(st) { - tt.set(st, ft); + et.set(st, ft); }); } }); for (var wt = function() { - var ot = ut.shift(), Lt = b.get(ot); + var ot = ut.shift(), Lt = P.get(ot); Lt.forEach(function(ft) { - if (tt.get(ft.id) < tt.get(ot) + ft.gap) + if (et.get(ft.id) < et.get(ot) + ft.gap) if (K && K.has(ft.id)) { var st = void 0; - if (B == "horizontal" ? st = g.has(ft.id) ? d[g.get(ft.id)] : Z.get(ft.id) : st = g.has(ft.id) ? N[g.get(ft.id)] : Z.get(ft.id), tt.set(ft.id, st), st < tt.get(ot) + ft.gap) { - var Xt = tt.get(ot) + ft.gap - st; + if (Z == "horizontal" ? st = g.has(ft.id) ? d[g.get(ft.id)] : q.get(ft.id) : st = g.has(ft.id) ? N[g.get(ft.id)] : q.get(ft.id), et.set(ft.id, st), st < et.get(ot) + ft.gap) { + var Xt = et.get(ot) + ft.gap - st; j.get(ot).forEach(function(Tt) { - tt.set(Tt, tt.get(Tt) - Xt); + et.set(Tt, et.get(Tt) - Xt); }); } } else - tt.set(ft.id, tt.get(ot) + ft.gap); + et.set(ft.id, et.get(ot) + ft.gap); nt.set(ft.id, nt.get(ft.id) - 1), nt.get(ft.id) == 0 && ut.push(ft.id), K && j.set(ft.id, ct(j.get(ot), j.get(ft.id))); }); }; ut.length != 0; ) wt(); if (K) { var pt = /* @__PURE__ */ new Set(); - b.forEach(function(lt, ot) { + P.forEach(function(lt, ot) { lt.length == 0 && pt.add(ot); }); var xt = []; @@ -2795,8 +2795,8 @@ function dr() { var Lt = !1, ft = !0, st = !1, Xt = void 0; try { for (var Tt = lt[Symbol.iterator](), Ct; !(ft = (Ct = Tt.next()).done); ft = !0) { - var $t = Ct.value; - K.has($t) && (Lt = !0); + var Bt = Ct.value; + K.has(Bt) && (Lt = !0); } } catch (St) { st = !0, Xt = St; @@ -2810,37 +2810,37 @@ function dr() { } if (!Lt) { var bt = !1, zt = void 0; - xt.forEach(function(St, kt) { - St.has([].concat(f(lt))[0]) && (bt = !0, zt = kt); + xt.forEach(function(St, Zt) { + St.has([].concat(f(lt))[0]) && (bt = !0, zt = Zt); }), bt ? lt.forEach(function(St) { xt[zt].add(St); }) : xt.push(new Set(lt)); } } }), xt.forEach(function(lt, ot) { - var Lt = Number.POSITIVE_INFINITY, ft = Number.POSITIVE_INFINITY, st = Number.NEGATIVE_INFINITY, Xt = Number.NEGATIVE_INFINITY, Tt = !0, Ct = !1, $t = void 0; + var Lt = Number.POSITIVE_INFINITY, ft = Number.POSITIVE_INFINITY, st = Number.NEGATIVE_INFINITY, Xt = Number.NEGATIVE_INFINITY, Tt = !0, Ct = !1, Bt = void 0; try { for (var bt = lt[Symbol.iterator](), zt; !(Tt = (zt = bt.next()).done); Tt = !0) { - var St = zt.value, kt = void 0; - B == "horizontal" ? kt = g.has(St) ? d[g.get(St)] : Z.get(St) : kt = g.has(St) ? N[g.get(St)] : Z.get(St); - var Kt = tt.get(St); - kt < Lt && (Lt = kt), kt > st && (st = kt), Kt < ft && (ft = Kt), Kt > Xt && (Xt = Kt); + var St = zt.value, Zt = void 0; + Z == "horizontal" ? Zt = g.has(St) ? d[g.get(St)] : q.get(St) : Zt = g.has(St) ? N[g.get(St)] : q.get(St); + var Kt = et.get(St); + Zt < Lt && (Lt = Zt), Zt > st && (st = Zt), Kt < ft && (ft = Kt), Kt > Xt && (Xt = Kt); } } catch (ee) { - Ct = !0, $t = ee; + Ct = !0, Bt = ee; } finally { try { !Tt && bt.return && bt.return(); } finally { if (Ct) - throw $t; + throw Bt; } } var fe = (Lt + st) / 2 - (ft + Xt) / 2, Qt = !0, jt = !1, _t = void 0; try { for (var Jt = lt[Symbol.iterator](), ne; !(Qt = (ne = Jt.next()).done); Qt = !0) { var te = ne.value; - tt.set(te, tt.get(te) + fe); + et.set(te, et.get(te) + fe); } } catch (ee) { jt = !0, _t = ee; @@ -2854,205 +2854,205 @@ function dr() { } }); } - return tt; - }, rt = function(b) { - var B = 0, K = 0, Z = 0, at = 0; - if (b.forEach(function(j) { - j.left ? d[g.get(j.left)] - d[g.get(j.right)] >= 0 ? B++ : K++ : N[g.get(j.top)] - N[g.get(j.bottom)] >= 0 ? Z++ : at++; - }), B > K && Z > at) + return et; + }, _ = function(P) { + var Z = 0, K = 0, q = 0, at = 0; + if (P.forEach(function(j) { + j.left ? d[g.get(j.left)] - d[g.get(j.right)] >= 0 ? Z++ : K++ : N[g.get(j.top)] - N[g.get(j.bottom)] >= 0 ? q++ : at++; + }), Z > K && q > at) for (var ct = 0; ct < g.size; ct++) d[ct] = -1 * d[ct], N[ct] = -1 * N[ct]; - else if (B > K) + else if (Z > K) for (var nt = 0; nt < g.size; nt++) d[nt] = -1 * d[nt]; - else if (Z > at) - for (var tt = 0; tt < g.size; tt++) - N[tt] = -1 * N[tt]; - }, n = function(b) { - var B = [], K = new v(), Z = /* @__PURE__ */ new Set(), at = 0; - return b.forEach(function(ct, nt) { - if (!Z.has(nt)) { - B[at] = []; - var tt = nt; - for (K.push(tt), Z.add(tt), B[at].push(tt); K.length != 0; ) { - tt = K.shift(); - var j = b.get(tt); + else if (q > at) + for (var et = 0; et < g.size; et++) + N[et] = -1 * N[et]; + }, n = function(P) { + var Z = [], K = new v(), q = /* @__PURE__ */ new Set(), at = 0; + return P.forEach(function(ct, nt) { + if (!q.has(nt)) { + Z[at] = []; + var et = nt; + for (K.push(et), q.add(et), Z[at].push(et); K.length != 0; ) { + et = K.shift(); + var j = P.get(et); j.forEach(function(ut) { - Z.has(ut.id) || (K.push(ut.id), Z.add(ut.id), B[at].push(ut.id)); + q.has(ut.id) || (K.push(ut.id), q.add(ut.id), Z[at].push(ut.id)); }); } at++; } - }), B; - }, m = function(b) { - var B = /* @__PURE__ */ new Map(); - return b.forEach(function(K, Z) { - B.set(Z, []); - }), b.forEach(function(K, Z) { + }), Z; + }, m = function(P) { + var Z = /* @__PURE__ */ new Map(); + return P.forEach(function(K, q) { + Z.set(q, []); + }), P.forEach(function(K, q) { K.forEach(function(at) { - B.get(Z).push(at), B.get(at.id).push({ id: Z, gap: at.gap, direction: at.direction }); + Z.get(q).push(at), Z.get(at.id).push({ id: q, gap: at.gap, direction: at.direction }); }); - }), B; - }, p = function(b) { - var B = /* @__PURE__ */ new Map(); - return b.forEach(function(K, Z) { - B.set(Z, []); - }), b.forEach(function(K, Z) { + }), Z; + }, p = function(P) { + var Z = /* @__PURE__ */ new Map(); + return P.forEach(function(K, q) { + Z.set(q, []); + }), P.forEach(function(K, q) { K.forEach(function(at) { - B.get(at.id).push({ id: Z, gap: at.gap, direction: at.direction }); + Z.get(at.id).push({ id: q, gap: at.gap, direction: at.direction }); }); - }), B; - }, E = [], y = [], I = !1, M = !1, R = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), q = []; - if (l.fixedNodeConstraint && l.fixedNodeConstraint.forEach(function(S) { - R.add(S.nodeId); - }), l.relativePlacementConstraint && (l.relativePlacementConstraint.forEach(function(S) { - S.left ? (W.has(S.left) ? W.get(S.left).push({ id: S.right, gap: S.gap, direction: "horizontal" }) : W.set(S.left, [{ id: S.right, gap: S.gap, direction: "horizontal" }]), W.has(S.right) || W.set(S.right, [])) : (W.has(S.top) ? W.get(S.top).push({ id: S.bottom, gap: S.gap, direction: "vertical" }) : W.set(S.top, [{ id: S.bottom, gap: S.gap, direction: "vertical" }]), W.has(S.bottom) || W.set(S.bottom, [])); - }), x = m(W), q = n(x)), r.TRANSFORM_ON_CONSTRAINT_HANDLING) { + }), Z; + }, E = [], y = [], I = !1, M = !1, R = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), Q = []; + if (l.fixedNodeConstraint && l.fixedNodeConstraint.forEach(function(F) { + R.add(F.nodeId); + }), l.relativePlacementConstraint && (l.relativePlacementConstraint.forEach(function(F) { + F.left ? (W.has(F.left) ? W.get(F.left).push({ id: F.right, gap: F.gap, direction: "horizontal" }) : W.set(F.left, [{ id: F.right, gap: F.gap, direction: "horizontal" }]), W.has(F.right) || W.set(F.right, [])) : (W.has(F.top) ? W.get(F.top).push({ id: F.bottom, gap: F.gap, direction: "vertical" }) : W.set(F.top, [{ id: F.bottom, gap: F.gap, direction: "vertical" }]), W.has(F.bottom) || W.set(F.bottom, [])); + }), x = m(W), Q = n(x)), r.TRANSFORM_ON_CONSTRAINT_HANDLING) { if (l.fixedNodeConstraint && l.fixedNodeConstraint.length > 1) - l.fixedNodeConstraint.forEach(function(S, b) { - E[b] = [S.position.x, S.position.y], y[b] = [d[g.get(S.nodeId)], N[g.get(S.nodeId)]]; + l.fixedNodeConstraint.forEach(function(F, P) { + E[P] = [F.position.x, F.position.y], y[P] = [d[g.get(F.nodeId)], N[g.get(F.nodeId)]]; }), I = !0; else if (l.alignmentConstraint) (function() { - var S = 0; + var F = 0; if (l.alignmentConstraint.vertical) { - for (var b = l.alignmentConstraint.vertical, B = function(tt) { + for (var P = l.alignmentConstraint.vertical, Z = function(et) { var j = /* @__PURE__ */ new Set(); - b[tt].forEach(function(pt) { + P[et].forEach(function(pt) { j.add(pt); }); var ut = new Set([].concat(f(j)).filter(function(pt) { return R.has(pt); })), wt = void 0; - ut.size > 0 ? wt = d[g.get(ut.values().next().value)] : wt = J(j).x, b[tt].forEach(function(pt) { - E[S] = [wt, N[g.get(pt)]], y[S] = [d[g.get(pt)], N[g.get(pt)]], S++; + ut.size > 0 ? wt = d[g.get(ut.values().next().value)] : wt = k(j).x, P[et].forEach(function(pt) { + E[F] = [wt, N[g.get(pt)]], y[F] = [d[g.get(pt)], N[g.get(pt)]], F++; }); - }, K = 0; K < b.length; K++) - B(K); + }, K = 0; K < P.length; K++) + Z(K); I = !0; } if (l.alignmentConstraint.horizontal) { - for (var Z = l.alignmentConstraint.horizontal, at = function(tt) { + for (var q = l.alignmentConstraint.horizontal, at = function(et) { var j = /* @__PURE__ */ new Set(); - Z[tt].forEach(function(pt) { + q[et].forEach(function(pt) { j.add(pt); }); var ut = new Set([].concat(f(j)).filter(function(pt) { return R.has(pt); })), wt = void 0; - ut.size > 0 ? wt = d[g.get(ut.values().next().value)] : wt = J(j).y, Z[tt].forEach(function(pt) { - E[S] = [d[g.get(pt)], wt], y[S] = [d[g.get(pt)], N[g.get(pt)]], S++; + ut.size > 0 ? wt = d[g.get(ut.values().next().value)] : wt = k(j).y, q[et].forEach(function(pt) { + E[F] = [d[g.get(pt)], wt], y[F] = [d[g.get(pt)], N[g.get(pt)]], F++; }); - }, ct = 0; ct < Z.length; ct++) + }, ct = 0; ct < q.length; ct++) at(ct); I = !0; } l.relativePlacementConstraint && (M = !0); })(); else if (l.relativePlacementConstraint) { - for (var V = 0, Y = 0, et = 0; et < q.length; et++) - q[et].length > V && (V = q[et].length, Y = et); - if (V < x.size / 2) - rt(l.relativePlacementConstraint), I = !1, M = !1; + for (var z = 0, Y = 0, rt = 0; rt < Q.length; rt++) + Q[rt].length > z && (z = Q[rt].length, Y = rt); + if (z < x.size / 2) + _(l.relativePlacementConstraint), I = !1, M = !1; else { - var z = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), H = []; - q[Y].forEach(function(S) { - W.get(S).forEach(function(b) { - b.direction == "horizontal" ? (z.has(S) ? z.get(S).push(b) : z.set(S, [b]), z.has(b.id) || z.set(b.id, []), H.push({ left: S, right: b.id })) : (O.has(S) ? O.get(S).push(b) : O.set(S, [b]), O.has(b.id) || O.set(b.id, []), H.push({ top: S, bottom: b.id })); + var B = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), H = []; + Q[Y].forEach(function(F) { + W.get(F).forEach(function(P) { + P.direction == "horizontal" ? (B.has(F) ? B.get(F).push(P) : B.set(F, [P]), B.has(P.id) || B.set(P.id, []), H.push({ left: F, right: P.id })) : (O.has(F) ? O.get(F).push(P) : O.set(F, [P]), O.has(P.id) || O.set(P.id, []), H.push({ top: F, bottom: P.id })); }); - }), rt(H), M = !1; - var $ = D(z, "horizontal"), _ = D(O, "vertical"); - q[Y].forEach(function(S, b) { - y[b] = [d[g.get(S)], N[g.get(S)]], E[b] = [], $.has(S) ? E[b][0] = $.get(S) : E[b][0] = d[g.get(S)], _.has(S) ? E[b][1] = _.get(S) : E[b][1] = N[g.get(S)]; + }), _(H), M = !1; + var $ = D(B, "horizontal"), tt = D(O, "vertical"); + Q[Y].forEach(function(F, P) { + y[P] = [d[g.get(F)], N[g.get(F)]], E[P] = [], $.has(F) ? E[P][0] = $.get(F) : E[P][0] = d[g.get(F)], tt.has(F) ? E[P][1] = tt.get(F) : E[P][1] = N[g.get(F)]; }), I = !0; } } if (I) { - for (var ht = void 0, Q = t.transpose(E), It = t.transpose(y), Nt = 0; Nt < Q.length; Nt++) - Q[Nt] = t.multGamma(Q[Nt]), It[Nt] = t.multGamma(It[Nt]); - var vt = t.multMat(Q, t.transpose(It)), it = o.svd(vt); + for (var ht = void 0, J = t.transpose(E), It = t.transpose(y), Nt = 0; Nt < J.length; Nt++) + J[Nt] = t.multGamma(J[Nt]), It[Nt] = t.multGamma(It[Nt]); + var vt = t.multMat(J, t.transpose(It)), it = s.svd(vt); ht = t.multMat(it.V, t.transpose(it.U)); for (var gt = 0; gt < g.size; gt++) { var mt = [d[gt], N[gt]], At = [ht[0][0], ht[1][0]], Ot = [ht[0][1], ht[1][1]]; d[gt] = t.dotProduct(mt, At), N[gt] = t.dotProduct(mt, Ot); } - M && rt(l.relativePlacementConstraint); + M && _(l.relativePlacementConstraint); } } if (r.ENFORCE_CONSTRAINTS) { if (l.fixedNodeConstraint && l.fixedNodeConstraint.length > 0) { var Et = { x: 0, y: 0 }; - l.fixedNodeConstraint.forEach(function(S, b) { - var B = { x: d[g.get(S.nodeId)], y: N[g.get(S.nodeId)] }, K = S.position, Z = X(K, B); - Et.x += Z.x, Et.y += Z.y; - }), Et.x /= l.fixedNodeConstraint.length, Et.y /= l.fixedNodeConstraint.length, d.forEach(function(S, b) { - d[b] += Et.x; - }), N.forEach(function(S, b) { - N[b] += Et.y; - }), l.fixedNodeConstraint.forEach(function(S) { - d[g.get(S.nodeId)] = S.position.x, N[g.get(S.nodeId)] = S.position.y; + l.fixedNodeConstraint.forEach(function(F, P) { + var Z = { x: d[g.get(F.nodeId)], y: N[g.get(F.nodeId)] }, K = F.position, q = X(K, Z); + Et.x += q.x, Et.y += q.y; + }), Et.x /= l.fixedNodeConstraint.length, Et.y /= l.fixedNodeConstraint.length, d.forEach(function(F, P) { + d[P] += Et.x; + }), N.forEach(function(F, P) { + N[P] += Et.y; + }), l.fixedNodeConstraint.forEach(function(F) { + d[g.get(F.nodeId)] = F.position.x, N[g.get(F.nodeId)] = F.position.y; }); } if (l.alignmentConstraint) { if (l.alignmentConstraint.vertical) - for (var Dt = l.alignmentConstraint.vertical, Rt = function(b) { - var B = /* @__PURE__ */ new Set(); - Dt[b].forEach(function(at) { - B.add(at); + for (var Dt = l.alignmentConstraint.vertical, Rt = function(P) { + var Z = /* @__PURE__ */ new Set(); + Dt[P].forEach(function(at) { + Z.add(at); }); - var K = new Set([].concat(f(B)).filter(function(at) { + var K = new Set([].concat(f(Z)).filter(function(at) { return R.has(at); - })), Z = void 0; - K.size > 0 ? Z = d[g.get(K.values().next().value)] : Z = J(B).x, B.forEach(function(at) { - R.has(at) || (d[g.get(at)] = Z); + })), q = void 0; + K.size > 0 ? q = d[g.get(K.values().next().value)] : q = k(Z).x, Z.forEach(function(at) { + R.has(at) || (d[g.get(at)] = q); }); }, Ht = 0; Ht < Dt.length; Ht++) Rt(Ht); if (l.alignmentConstraint.horizontal) - for (var Ut = l.alignmentConstraint.horizontal, Pt = function(b) { - var B = /* @__PURE__ */ new Set(); - Ut[b].forEach(function(at) { - B.add(at); + for (var Ut = l.alignmentConstraint.horizontal, Pt = function(P) { + var Z = /* @__PURE__ */ new Set(); + Ut[P].forEach(function(at) { + Z.add(at); }); - var K = new Set([].concat(f(B)).filter(function(at) { + var K = new Set([].concat(f(Z)).filter(function(at) { return R.has(at); - })), Z = void 0; - K.size > 0 ? Z = N[g.get(K.values().next().value)] : Z = J(B).y, B.forEach(function(at) { - R.has(at) || (N[g.get(at)] = Z); + })), q = void 0; + K.size > 0 ? q = N[g.get(K.values().next().value)] : q = k(Z).y, Z.forEach(function(at) { + R.has(at) || (N[g.get(at)] = q); }); }, Ft = 0; Ft < Ut.length; Ft++) Pt(Ft); } l.relativePlacementConstraint && (function() { - var S = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Map(), ct = /* @__PURE__ */ new Set(), nt = /* @__PURE__ */ new Set(); + var F = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Map(), ct = /* @__PURE__ */ new Set(), nt = /* @__PURE__ */ new Set(); if (R.forEach(function(Gt) { ct.add(Gt), nt.add(Gt); }), l.alignmentConstraint) { if (l.alignmentConstraint.vertical) - for (var tt = l.alignmentConstraint.vertical, j = function(yt) { - B.set("dummy" + yt, []), tt[yt].forEach(function(Mt) { - S.set(Mt, "dummy" + yt), B.get("dummy" + yt).push(Mt), R.has(Mt) && ct.add("dummy" + yt); - }), Z.set("dummy" + yt, d[g.get(tt[yt][0])]); - }, ut = 0; ut < tt.length; ut++) + for (var et = l.alignmentConstraint.vertical, j = function(yt) { + Z.set("dummy" + yt, []), et[yt].forEach(function(Mt) { + F.set(Mt, "dummy" + yt), Z.get("dummy" + yt).push(Mt), R.has(Mt) && ct.add("dummy" + yt); + }), q.set("dummy" + yt, d[g.get(et[yt][0])]); + }, ut = 0; ut < et.length; ut++) j(ut); if (l.alignmentConstraint.horizontal) for (var wt = l.alignmentConstraint.horizontal, pt = function(yt) { K.set("dummy" + yt, []), wt[yt].forEach(function(Mt) { - b.set(Mt, "dummy" + yt), K.get("dummy" + yt).push(Mt), R.has(Mt) && nt.add("dummy" + yt); + P.set(Mt, "dummy" + yt), K.get("dummy" + yt).push(Mt), R.has(Mt) && nt.add("dummy" + yt); }), at.set("dummy" + yt, N[g.get(wt[yt][0])]); }, xt = 0; xt < wt.length; xt++) pt(xt); } var lt = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Map(), Lt = function(yt) { W.get(yt).forEach(function(Mt) { - var Zt = void 0, Bt = void 0; - Mt.direction == "horizontal" ? (Zt = S.get(yt) ? S.get(yt) : yt, S.get(Mt.id) ? Bt = { id: S.get(Mt.id), gap: Mt.gap, direction: Mt.direction } : Bt = Mt, lt.has(Zt) ? lt.get(Zt).push(Bt) : lt.set(Zt, [Bt]), lt.has(Bt.id) || lt.set(Bt.id, [])) : (Zt = b.get(yt) ? b.get(yt) : yt, b.get(Mt.id) ? Bt = { id: b.get(Mt.id), gap: Mt.gap, direction: Mt.direction } : Bt = Mt, ot.has(Zt) ? ot.get(Zt).push(Bt) : ot.set(Zt, [Bt]), ot.has(Bt.id) || ot.set(Bt.id, [])); + var kt = void 0, $t = void 0; + Mt.direction == "horizontal" ? (kt = F.get(yt) ? F.get(yt) : yt, F.get(Mt.id) ? $t = { id: F.get(Mt.id), gap: Mt.gap, direction: Mt.direction } : $t = Mt, lt.has(kt) ? lt.get(kt).push($t) : lt.set(kt, [$t]), lt.has($t.id) || lt.set($t.id, [])) : (kt = P.get(yt) ? P.get(yt) : yt, P.get(Mt.id) ? $t = { id: P.get(Mt.id), gap: Mt.gap, direction: Mt.direction } : $t = Mt, ot.has(kt) ? ot.get(kt).push($t) : ot.set(kt, [$t]), ot.has($t.id) || ot.set($t.id, [])); }); }, ft = !0, st = !1, Xt = void 0; try { for (var Tt = W.keys()[Symbol.iterator](), Ct; !(ft = (Ct = Tt.next()).done); ft = !0) { - var $t = Ct.value; - Lt($t); + var Bt = Ct.value; + Lt(Bt); } } catch (Gt) { st = !0, Xt = Gt; @@ -3064,18 +3064,18 @@ function dr() { throw Xt; } } - var bt = m(lt), zt = m(ot), St = n(bt), kt = n(zt), Kt = p(lt), fe = p(ot), Qt = [], jt = []; + var bt = m(lt), zt = m(ot), St = n(bt), Zt = n(zt), Kt = p(lt), fe = p(ot), Qt = [], jt = []; St.forEach(function(Gt, yt) { Qt[yt] = [], Gt.forEach(function(Mt) { Kt.get(Mt).length == 0 && Qt[yt].push(Mt); }); - }), kt.forEach(function(Gt, yt) { + }), Zt.forEach(function(Gt, yt) { jt[yt] = [], Gt.forEach(function(Mt) { fe.get(Mt).length == 0 && jt[yt].push(Mt); }); }); - var _t = D(lt, "horizontal", ct, Z, Qt), Jt = D(ot, "vertical", nt, at, jt), ne = function(yt) { - B.get(yt) ? B.get(yt).forEach(function(Mt) { + var _t = D(lt, "horizontal", ct, q, Qt), Jt = D(ot, "vertical", nt, at, jt), ne = function(yt) { + Z.get(yt) ? Z.get(yt).forEach(function(Mt) { d[g.get(Mt)] = _t.get(yt); }) : d[g.get(yt)] = _t.get(yt); }, te = !0, ee = !1, Te = void 0; @@ -3094,7 +3094,7 @@ function dr() { throw Te; } } - var $e = function(yt) { + var Be = function(yt) { K.get(yt) ? K.get(yt).forEach(function(Mt) { N[g.get(Mt)] = Jt.get(yt); }) : N[g.get(yt)] = Jt.get(yt); @@ -3102,7 +3102,7 @@ function dr() { try { for (var de = Jt.keys()[Symbol.iterator](), Ae; !(ue = (Ae = de.next()).done); ue = !0) { var ge = Ae.value; - $e(ge); + Be(ge); } } catch (Gt) { Le = !0, Ce = Gt; @@ -3116,11 +3116,11 @@ function dr() { } })(); } - for (var Yt = 0; Yt < F.length; Yt++) { - var Vt = F[Yt]; + for (var Yt = 0; Yt < b.length; Yt++) { + var Vt = b[Yt]; Vt.getChild() == null && Vt.setCenter(d[g.get(Vt.id)], N[g.get(Vt.id)]); } - }, a.exports = s; + }, a.exports = o; }) ), /***/ @@ -3156,7 +3156,7 @@ function dr() { } var vr = se.exports, Oe; function pr() { - return Oe || (Oe = 1, (function(C, P) { + return Oe || (Oe = 1, (function(C, G) { (function(U, L) { C.exports = L(dr()); })(vr, function(w) { @@ -3184,13 +3184,13 @@ function pr() { /***/ ((a, e, i) => { var f = /* @__PURE__ */ (function() { - function t(o, s) { + function t(s, o) { var c = [], l = !0, T = !1, g = void 0; try { - for (var d = o[Symbol.iterator](), N; !(l = (N = d.next()).done) && (c.push(N.value), !(s && c.length === s)); l = !0) + for (var d = s[Symbol.iterator](), N; !(l = (N = d.next()).done) && (c.push(N.value), !(o && c.length === o)); l = !0) ; - } catch (F) { - T = !0, g = F; + } catch (b) { + T = !0, g = b; } finally { try { !l && d.return && d.return(); @@ -3200,126 +3200,126 @@ function pr() { } return c; } - return function(o, s) { - if (Array.isArray(o)) - return o; - if (Symbol.iterator in Object(o)) - return t(o, s); + return function(s, o) { + if (Array.isArray(s)) + return s; + if (Symbol.iterator in Object(s)) + return t(s, o); throw new TypeError("Invalid attempt to destructure non-iterable instance"); }; })(), r = i(140).layoutBase.LinkedList, v = {}; v.getTopMostNodes = function(t) { - for (var o = {}, s = 0; s < t.length; s++) - o[t[s].id()] = !0; + for (var s = {}, o = 0; o < t.length; o++) + s[t[o].id()] = !0; var c = t.filter(function(l, T) { typeof l == "number" && (l = T); for (var g = l.parent()[0]; g != null; ) { - if (o[g.id()]) + if (s[g.id()]) return !1; g = g.parent()[0]; } return !0; }); return c; - }, v.connectComponents = function(t, o, s, c) { - var l = new r(), T = /* @__PURE__ */ new Set(), g = [], d = void 0, N = void 0, F = void 0, A = !1, G = 1, k = [], X = [], J = function() { - var rt = t.collection(); - X.push(rt); - var n = s[0], m = t.collection(); - m.merge(n).merge(n.descendants().intersection(o)), g.push(n), m.forEach(function(y) { - l.push(y), T.add(y), rt.merge(y); + }, v.connectComponents = function(t, s, o, c) { + var l = new r(), T = /* @__PURE__ */ new Set(), g = [], d = void 0, N = void 0, b = void 0, A = !1, S = 1, V = [], X = [], k = function() { + var _ = t.collection(); + X.push(_); + var n = o[0], m = t.collection(); + m.merge(n).merge(n.descendants().intersection(s)), g.push(n), m.forEach(function(y) { + l.push(y), T.add(y), _.merge(y); }); for (var p = function() { n = l.shift(); var I = t.collection(); n.neighborhood().nodes().forEach(function(x) { - o.intersection(n.edgesWith(x)).length > 0 && I.merge(x); + s.intersection(n.edgesWith(x)).length > 0 && I.merge(x); }); for (var M = 0; M < I.length; M++) { var R = I[M]; - if (d = s.intersection(R.union(R.ancestors())), d != null && !T.has(d[0])) { + if (d = o.intersection(R.union(R.ancestors())), d != null && !T.has(d[0])) { var W = d.union(d.descendants()); W.forEach(function(x) { - l.push(x), T.add(x), rt.merge(x), s.has(x) && g.push(x); + l.push(x), T.add(x), _.merge(x), o.has(x) && g.push(x); }); } } }; l.length != 0; ) p(); - if (rt.forEach(function(y) { - o.intersection(y.connectedEdges()).forEach(function(I) { - rt.has(I.source()) && rt.has(I.target()) && rt.merge(I); + if (_.forEach(function(y) { + s.intersection(y.connectedEdges()).forEach(function(I) { + _.has(I.source()) && _.has(I.target()) && _.merge(I); }); - }), g.length == s.length && (A = !0), !A || A && G > 1) { - N = g[0], F = N.connectedEdges().length, g.forEach(function(y) { - y.connectedEdges().length < F && (F = y.connectedEdges().length, N = y); - }), k.push(N.id()); + }), g.length == o.length && (A = !0), !A || A && S > 1) { + N = g[0], b = N.connectedEdges().length, g.forEach(function(y) { + y.connectedEdges().length < b && (b = y.connectedEdges().length, N = y); + }), V.push(N.id()); var E = t.collection(); E.merge(g[0]), g.forEach(function(y) { E.merge(y); - }), g = [], s = s.difference(E), G++; + }), g = [], o = o.difference(E), S++; } }; do - J(); + k(); while (!A); - return c && k.length > 0 && c.set("dummy" + (c.size + 1), k), X; - }, v.relocateComponent = function(t, o, s) { - if (!s.fixedNodeConstraint) { + return c && V.length > 0 && c.set("dummy" + (c.size + 1), V), X; + }, v.relocateComponent = function(t, s, o) { + if (!o.fixedNodeConstraint) { var c = Number.POSITIVE_INFINITY, l = Number.NEGATIVE_INFINITY, T = Number.POSITIVE_INFINITY, g = Number.NEGATIVE_INFINITY; - if (s.quality == "draft") { - var d = !0, N = !1, F = void 0; + if (o.quality == "draft") { + var d = !0, N = !1, b = void 0; try { - for (var A = o.nodeIndexes[Symbol.iterator](), G; !(d = (G = A.next()).done); d = !0) { - var k = G.value, X = f(k, 2), J = X[0], D = X[1], rt = s.cy.getElementById(J); - if (rt) { - var n = rt.boundingBox(), m = o.xCoords[D] - n.w / 2, p = o.xCoords[D] + n.w / 2, E = o.yCoords[D] - n.h / 2, y = o.yCoords[D] + n.h / 2; + for (var A = s.nodeIndexes[Symbol.iterator](), S; !(d = (S = A.next()).done); d = !0) { + var V = S.value, X = f(V, 2), k = X[0], D = X[1], _ = o.cy.getElementById(k); + if (_) { + var n = _.boundingBox(), m = s.xCoords[D] - n.w / 2, p = s.xCoords[D] + n.w / 2, E = s.yCoords[D] - n.h / 2, y = s.yCoords[D] + n.h / 2; m < c && (c = m), p > l && (l = p), E < T && (T = E), y > g && (g = y); } } } catch (x) { - N = !0, F = x; + N = !0, b = x; } finally { try { !d && A.return && A.return(); } finally { if (N) - throw F; + throw b; } } var I = t.x - (l + c) / 2, M = t.y - (g + T) / 2; - o.xCoords = o.xCoords.map(function(x) { + s.xCoords = s.xCoords.map(function(x) { return x + I; - }), o.yCoords = o.yCoords.map(function(x) { + }), s.yCoords = s.yCoords.map(function(x) { return x + M; }); } else { - Object.keys(o).forEach(function(x) { - var q = o[x], V = q.getRect().x, Y = q.getRect().x + q.getRect().width, et = q.getRect().y, z = q.getRect().y + q.getRect().height; - V < c && (c = V), Y > l && (l = Y), et < T && (T = et), z > g && (g = z); + Object.keys(s).forEach(function(x) { + var Q = s[x], z = Q.getRect().x, Y = Q.getRect().x + Q.getRect().width, rt = Q.getRect().y, B = Q.getRect().y + Q.getRect().height; + z < c && (c = z), Y > l && (l = Y), rt < T && (T = rt), B > g && (g = B); }); var R = t.x - (l + c) / 2, W = t.y - (g + T) / 2; - Object.keys(o).forEach(function(x) { - var q = o[x]; - q.setCenter(q.getCenterX() + R, q.getCenterY() + W); + Object.keys(s).forEach(function(x) { + var Q = s[x]; + Q.setCenter(Q.getCenterX() + R, Q.getCenterY() + W); }); } } - }, v.calcBoundingBox = function(t, o, s, c) { - for (var l = Number.MAX_SAFE_INTEGER, T = Number.MIN_SAFE_INTEGER, g = Number.MAX_SAFE_INTEGER, d = Number.MIN_SAFE_INTEGER, N = void 0, F = void 0, A = void 0, G = void 0, k = t.descendants().not(":parent"), X = k.length, J = 0; J < X; J++) { - var D = k[J]; - N = o[c.get(D.id())] - D.width() / 2, F = o[c.get(D.id())] + D.width() / 2, A = s[c.get(D.id())] - D.height() / 2, G = s[c.get(D.id())] + D.height() / 2, l > N && (l = N), T < F && (T = F), g > A && (g = A), d < G && (d = G); + }, v.calcBoundingBox = function(t, s, o, c) { + for (var l = Number.MAX_SAFE_INTEGER, T = Number.MIN_SAFE_INTEGER, g = Number.MAX_SAFE_INTEGER, d = Number.MIN_SAFE_INTEGER, N = void 0, b = void 0, A = void 0, S = void 0, V = t.descendants().not(":parent"), X = V.length, k = 0; k < X; k++) { + var D = V[k]; + N = s[c.get(D.id())] - D.width() / 2, b = s[c.get(D.id())] + D.width() / 2, A = o[c.get(D.id())] - D.height() / 2, S = o[c.get(D.id())] + D.height() / 2, l > N && (l = N), T < b && (T = b), g > A && (g = A), d < S && (d = S); } - var rt = {}; - return rt.topLeftX = l, rt.topLeftY = g, rt.width = T - l, rt.height = d - g, rt; - }, v.calcParentsWithoutChildren = function(t, o) { - var s = t.collection(); - return o.nodes(":parent").forEach(function(c) { + var _ = {}; + return _.topLeftX = l, _.topLeftY = g, _.width = T - l, _.height = d - g, _; + }, v.calcParentsWithoutChildren = function(t, s) { + var o = t.collection(); + return s.nodes(":parent").forEach(function(c) { var l = !1; c.children().forEach(function(T) { T.css("display") != "none" && (l = !0); - }), l || s.merge(c); - }), s; + }), l || o.merge(c); + }), o; }, a.exports = v; }) ), @@ -3327,52 +3327,52 @@ function pr() { 816: ( /***/ ((a, e, i) => { - var f = i(548), r = i(140).CoSELayout, v = i(140).CoSENode, t = i(140).layoutBase.PointD, o = i(140).layoutBase.DimensionD, s = i(140).layoutBase.LayoutConstants, c = i(140).layoutBase.FDLayoutConstants, l = i(140).CoSEConstants, T = function(d, N) { - var F = d.cy, A = d.eles, G = A.nodes(), k = A.edges(), X = void 0, J = void 0, D = void 0, rt = {}; - d.randomize && (X = N.nodeIndexes, J = N.xCoords, D = N.yCoords); + var f = i(548), r = i(140).CoSELayout, v = i(140).CoSENode, t = i(140).layoutBase.PointD, s = i(140).layoutBase.DimensionD, o = i(140).layoutBase.LayoutConstants, c = i(140).layoutBase.FDLayoutConstants, l = i(140).CoSEConstants, T = function(d, N) { + var b = d.cy, A = d.eles, S = A.nodes(), V = A.edges(), X = void 0, k = void 0, D = void 0, _ = {}; + d.randomize && (X = N.nodeIndexes, k = N.xCoords, D = N.yCoords); var n = function(x) { return typeof x == "function"; - }, m = function(x, q) { - return n(x) ? x(q) : x; - }, p = f.calcParentsWithoutChildren(F, A), E = function W(x, q, V, Y) { - for (var et = q.length, z = 0; z < et; z++) { - var O = q[z], H = null; + }, m = function(x, Q) { + return n(x) ? x(Q) : x; + }, p = f.calcParentsWithoutChildren(b, A), E = function W(x, Q, z, Y) { + for (var rt = Q.length, B = 0; B < rt; B++) { + var O = Q[B], H = null; O.intersection(p).length == 0 && (H = O.children()); - var $ = void 0, _ = O.layoutDimensions({ + var $ = void 0, tt = O.layoutDimensions({ nodeDimensionsIncludeLabels: Y.nodeDimensionsIncludeLabels }); if (O.outerWidth() != null && O.outerHeight() != null) if (Y.randomize) if (!O.isParent()) - $ = x.add(new v(V.graphManager, new t(J[X.get(O.id())] - _.w / 2, D[X.get(O.id())] - _.h / 2), new o(parseFloat(_.w), parseFloat(_.h)))); + $ = x.add(new v(z.graphManager, new t(k[X.get(O.id())] - tt.w / 2, D[X.get(O.id())] - tt.h / 2), new s(parseFloat(tt.w), parseFloat(tt.h)))); else { - var ht = f.calcBoundingBox(O, J, D, X); - O.intersection(p).length == 0 ? $ = x.add(new v(V.graphManager, new t(ht.topLeftX, ht.topLeftY), new o(ht.width, ht.height))) : $ = x.add(new v(V.graphManager, new t(ht.topLeftX, ht.topLeftY), new o(parseFloat(_.w), parseFloat(_.h)))); + var ht = f.calcBoundingBox(O, k, D, X); + O.intersection(p).length == 0 ? $ = x.add(new v(z.graphManager, new t(ht.topLeftX, ht.topLeftY), new s(ht.width, ht.height))) : $ = x.add(new v(z.graphManager, new t(ht.topLeftX, ht.topLeftY), new s(parseFloat(tt.w), parseFloat(tt.h)))); } else - $ = x.add(new v(V.graphManager, new t(O.position("x") - _.w / 2, O.position("y") - _.h / 2), new o(parseFloat(_.w), parseFloat(_.h)))); + $ = x.add(new v(z.graphManager, new t(O.position("x") - tt.w / 2, O.position("y") - tt.h / 2), new s(parseFloat(tt.w), parseFloat(tt.h)))); else $ = x.add(new v(this.graphManager)); - if ($.id = O.data("id"), $.nodeRepulsion = m(Y.nodeRepulsion, O), $.paddingLeft = parseInt(O.css("padding")), $.paddingTop = parseInt(O.css("padding")), $.paddingRight = parseInt(O.css("padding")), $.paddingBottom = parseInt(O.css("padding")), Y.nodeDimensionsIncludeLabels && ($.labelWidth = O.boundingBox({ includeLabels: !0, includeNodes: !1, includeOverlays: !1 }).w, $.labelHeight = O.boundingBox({ includeLabels: !0, includeNodes: !1, includeOverlays: !1 }).h, $.labelPosVertical = O.css("text-valign"), $.labelPosHorizontal = O.css("text-halign")), rt[O.data("id")] = $, isNaN($.rect.x) && ($.rect.x = 0), isNaN($.rect.y) && ($.rect.y = 0), H != null && H.length > 0) { - var Q = void 0; - Q = V.getGraphManager().add(V.newGraph(), $), W(Q, H, V, Y); + if ($.id = O.data("id"), $.nodeRepulsion = m(Y.nodeRepulsion, O), $.paddingLeft = parseInt(O.css("padding")), $.paddingTop = parseInt(O.css("padding")), $.paddingRight = parseInt(O.css("padding")), $.paddingBottom = parseInt(O.css("padding")), Y.nodeDimensionsIncludeLabels && ($.labelWidth = O.boundingBox({ includeLabels: !0, includeNodes: !1, includeOverlays: !1 }).w, $.labelHeight = O.boundingBox({ includeLabels: !0, includeNodes: !1, includeOverlays: !1 }).h, $.labelPosVertical = O.css("text-valign"), $.labelPosHorizontal = O.css("text-halign")), _[O.data("id")] = $, isNaN($.rect.x) && ($.rect.x = 0), isNaN($.rect.y) && ($.rect.y = 0), H != null && H.length > 0) { + var J = void 0; + J = z.getGraphManager().add(z.newGraph(), $), W(J, H, z, Y); } } - }, y = function(x, q, V) { - for (var Y = 0, et = 0, z = 0; z < V.length; z++) { - var O = V[z], H = rt[O.data("source")], $ = rt[O.data("target")]; + }, y = function(x, Q, z) { + for (var Y = 0, rt = 0, B = 0; B < z.length; B++) { + var O = z[B], H = _[O.data("source")], $ = _[O.data("target")]; if (H && $ && H !== $ && H.getEdgesBetween($).length == 0) { - var _ = q.add(x.newEdge(), H, $); - _.id = O.id(), _.idealLength = m(d.idealEdgeLength, O), _.edgeElasticity = m(d.edgeElasticity, O), Y += _.idealLength, et++; + var tt = Q.add(x.newEdge(), H, $); + tt.id = O.id(), tt.idealLength = m(d.idealEdgeLength, O), tt.edgeElasticity = m(d.edgeElasticity, O), Y += tt.idealLength, rt++; } } - d.idealEdgeLength != null && (et > 0 ? l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = Y / et : n(d.idealEdgeLength) ? l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = 50 : l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = d.idealEdgeLength, l.MIN_REPULSION_DIST = c.MIN_REPULSION_DIST = c.DEFAULT_EDGE_LENGTH / 10, l.DEFAULT_RADIAL_SEPARATION = c.DEFAULT_EDGE_LENGTH); - }, I = function(x, q) { - q.fixedNodeConstraint && (x.constraints.fixedNodeConstraint = q.fixedNodeConstraint), q.alignmentConstraint && (x.constraints.alignmentConstraint = q.alignmentConstraint), q.relativePlacementConstraint && (x.constraints.relativePlacementConstraint = q.relativePlacementConstraint); + d.idealEdgeLength != null && (rt > 0 ? l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = Y / rt : n(d.idealEdgeLength) ? l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = 50 : l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = d.idealEdgeLength, l.MIN_REPULSION_DIST = c.MIN_REPULSION_DIST = c.DEFAULT_EDGE_LENGTH / 10, l.DEFAULT_RADIAL_SEPARATION = c.DEFAULT_EDGE_LENGTH); + }, I = function(x, Q) { + Q.fixedNodeConstraint && (x.constraints.fixedNodeConstraint = Q.fixedNodeConstraint), Q.alignmentConstraint && (x.constraints.alignmentConstraint = Q.alignmentConstraint), Q.relativePlacementConstraint && (x.constraints.relativePlacementConstraint = Q.relativePlacementConstraint); }; - d.nestingFactor != null && (l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = d.nestingFactor), d.gravity != null && (l.DEFAULT_GRAVITY_STRENGTH = c.DEFAULT_GRAVITY_STRENGTH = d.gravity), d.numIter != null && (l.MAX_ITERATIONS = c.MAX_ITERATIONS = d.numIter), d.gravityRange != null && (l.DEFAULT_GRAVITY_RANGE_FACTOR = c.DEFAULT_GRAVITY_RANGE_FACTOR = d.gravityRange), d.gravityCompound != null && (l.DEFAULT_COMPOUND_GRAVITY_STRENGTH = c.DEFAULT_COMPOUND_GRAVITY_STRENGTH = d.gravityCompound), d.gravityRangeCompound != null && (l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = d.gravityRangeCompound), d.initialEnergyOnIncremental != null && (l.DEFAULT_COOLING_FACTOR_INCREMENTAL = c.DEFAULT_COOLING_FACTOR_INCREMENTAL = d.initialEnergyOnIncremental), d.tilingCompareBy != null && (l.TILING_COMPARE_BY = d.tilingCompareBy), d.quality == "proof" ? s.QUALITY = 2 : s.QUALITY = 0, l.NODE_DIMENSIONS_INCLUDE_LABELS = c.NODE_DIMENSIONS_INCLUDE_LABELS = s.NODE_DIMENSIONS_INCLUDE_LABELS = d.nodeDimensionsIncludeLabels, l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = s.DEFAULT_INCREMENTAL = !d.randomize, l.ANIMATE = c.ANIMATE = s.ANIMATE = d.animate, l.TILE = d.tile, l.TILING_PADDING_VERTICAL = typeof d.tilingPaddingVertical == "function" ? d.tilingPaddingVertical.call() : d.tilingPaddingVertical, l.TILING_PADDING_HORIZONTAL = typeof d.tilingPaddingHorizontal == "function" ? d.tilingPaddingHorizontal.call() : d.tilingPaddingHorizontal, l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = s.DEFAULT_INCREMENTAL = !0, l.PURE_INCREMENTAL = !d.randomize, s.DEFAULT_UNIFORM_LEAF_NODE_SIZES = d.uniformNodeDimensions, d.step == "transformed" && (l.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, l.ENFORCE_CONSTRAINTS = !1, l.APPLY_LAYOUT = !1), d.step == "enforced" && (l.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, l.ENFORCE_CONSTRAINTS = !0, l.APPLY_LAYOUT = !1), d.step == "cose" && (l.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, l.ENFORCE_CONSTRAINTS = !1, l.APPLY_LAYOUT = !0), d.step == "all" && (d.randomize ? l.TRANSFORM_ON_CONSTRAINT_HANDLING = !0 : l.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, l.ENFORCE_CONSTRAINTS = !0, l.APPLY_LAYOUT = !0), d.fixedNodeConstraint || d.alignmentConstraint || d.relativePlacementConstraint ? l.TREE_REDUCTION_ON_INCREMENTAL = !1 : l.TREE_REDUCTION_ON_INCREMENTAL = !0; + d.nestingFactor != null && (l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = d.nestingFactor), d.gravity != null && (l.DEFAULT_GRAVITY_STRENGTH = c.DEFAULT_GRAVITY_STRENGTH = d.gravity), d.numIter != null && (l.MAX_ITERATIONS = c.MAX_ITERATIONS = d.numIter), d.gravityRange != null && (l.DEFAULT_GRAVITY_RANGE_FACTOR = c.DEFAULT_GRAVITY_RANGE_FACTOR = d.gravityRange), d.gravityCompound != null && (l.DEFAULT_COMPOUND_GRAVITY_STRENGTH = c.DEFAULT_COMPOUND_GRAVITY_STRENGTH = d.gravityCompound), d.gravityRangeCompound != null && (l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = d.gravityRangeCompound), d.initialEnergyOnIncremental != null && (l.DEFAULT_COOLING_FACTOR_INCREMENTAL = c.DEFAULT_COOLING_FACTOR_INCREMENTAL = d.initialEnergyOnIncremental), d.tilingCompareBy != null && (l.TILING_COMPARE_BY = d.tilingCompareBy), d.quality == "proof" ? o.QUALITY = 2 : o.QUALITY = 0, l.NODE_DIMENSIONS_INCLUDE_LABELS = c.NODE_DIMENSIONS_INCLUDE_LABELS = o.NODE_DIMENSIONS_INCLUDE_LABELS = d.nodeDimensionsIncludeLabels, l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = o.DEFAULT_INCREMENTAL = !d.randomize, l.ANIMATE = c.ANIMATE = o.ANIMATE = d.animate, l.TILE = d.tile, l.TILING_PADDING_VERTICAL = typeof d.tilingPaddingVertical == "function" ? d.tilingPaddingVertical.call() : d.tilingPaddingVertical, l.TILING_PADDING_HORIZONTAL = typeof d.tilingPaddingHorizontal == "function" ? d.tilingPaddingHorizontal.call() : d.tilingPaddingHorizontal, l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = o.DEFAULT_INCREMENTAL = !0, l.PURE_INCREMENTAL = !d.randomize, o.DEFAULT_UNIFORM_LEAF_NODE_SIZES = d.uniformNodeDimensions, d.step == "transformed" && (l.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, l.ENFORCE_CONSTRAINTS = !1, l.APPLY_LAYOUT = !1), d.step == "enforced" && (l.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, l.ENFORCE_CONSTRAINTS = !0, l.APPLY_LAYOUT = !1), d.step == "cose" && (l.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, l.ENFORCE_CONSTRAINTS = !1, l.APPLY_LAYOUT = !0), d.step == "all" && (d.randomize ? l.TRANSFORM_ON_CONSTRAINT_HANDLING = !0 : l.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, l.ENFORCE_CONSTRAINTS = !0, l.APPLY_LAYOUT = !0), d.fixedNodeConstraint || d.alignmentConstraint || d.relativePlacementConstraint ? l.TREE_REDUCTION_ON_INCREMENTAL = !1 : l.TREE_REDUCTION_ON_INCREMENTAL = !0; var M = new r(), R = M.newGraphManager(); - return E(R.addRoot(), f.getTopMostNodes(G), M, d), y(M, R, k), I(M, d), M.runLayout(), rt; + return E(R.addRoot(), f.getTopMostNodes(S), M, d), y(M, R, V), I(M, d), M.runLayout(), _; }; a.exports = { coseLayout: T }; }) @@ -3382,21 +3382,21 @@ function pr() { /***/ ((a, e, i) => { var f = /* @__PURE__ */ (function() { - function d(N, F) { - for (var A = 0; A < F.length; A++) { - var G = F[A]; - G.enumerable = G.enumerable || !1, G.configurable = !0, "value" in G && (G.writable = !0), Object.defineProperty(N, G.key, G); + function d(N, b) { + for (var A = 0; A < b.length; A++) { + var S = b[A]; + S.enumerable = S.enumerable || !1, S.configurable = !0, "value" in S && (S.writable = !0), Object.defineProperty(N, S.key, S); } } - return function(N, F, A) { - return F && d(N.prototype, F), A && d(N, A), N; + return function(N, b, A) { + return b && d(N.prototype, b), A && d(N, A), N; }; })(); function r(d, N) { if (!(d instanceof N)) throw new TypeError("Cannot call a class as a function"); } - var v = i(658), t = i(548), o = i(657), s = o.spectralLayout, c = i(816), l = c.coseLayout, T = Object.freeze({ + var v = i(658), t = i(548), s = i(657), o = s.spectralLayout, c = i(816), l = c.coseLayout, T = Object.freeze({ // 'draft', 'default' or 'proof' // - 'draft' only applies spectral layout // - 'default' improves the quality with subsequent CoSE layout (fast cooling rate) @@ -3492,44 +3492,44 @@ function pr() { return f(d, [{ key: "run", value: function() { - var F = this, A = this.options, G = A.cy, k = A.eles, X = [], J = [], D = void 0, rt = []; + var b = this, A = this.options, S = A.cy, V = A.eles, X = [], k = [], D = void 0, _ = []; A.fixedNodeConstraint && (!Array.isArray(A.fixedNodeConstraint) || A.fixedNodeConstraint.length == 0) && (A.fixedNodeConstraint = void 0), A.alignmentConstraint && (A.alignmentConstraint.vertical && (!Array.isArray(A.alignmentConstraint.vertical) || A.alignmentConstraint.vertical.length == 0) && (A.alignmentConstraint.vertical = void 0), A.alignmentConstraint.horizontal && (!Array.isArray(A.alignmentConstraint.horizontal) || A.alignmentConstraint.horizontal.length == 0) && (A.alignmentConstraint.horizontal = void 0)), A.relativePlacementConstraint && (!Array.isArray(A.relativePlacementConstraint) || A.relativePlacementConstraint.length == 0) && (A.relativePlacementConstraint = void 0); var n = A.fixedNodeConstraint || A.alignmentConstraint || A.relativePlacementConstraint; n && (A.tile = !1, A.packComponents = !1); var m = void 0, p = !1; - if (G.layoutUtilities && A.packComponents && (m = G.layoutUtilities("get"), m || (m = G.layoutUtilities()), p = !0), k.nodes().length > 0) + if (S.layoutUtilities && A.packComponents && (m = S.layoutUtilities("get"), m || (m = S.layoutUtilities()), p = !0), V.nodes().length > 0) if (p) { var I = t.getTopMostNodes(A.eles.nodes()); - if (D = t.connectComponents(G, A.eles, I), D.forEach(function(vt) { + if (D = t.connectComponents(S, A.eles, I), D.forEach(function(vt) { var it = vt.boundingBox(); - rt.push({ x: it.x1 + it.w / 2, y: it.y1 + it.h / 2 }); + _.push({ x: it.x1 + it.w / 2, y: it.y1 + it.h / 2 }); }), A.randomize && D.forEach(function(vt) { - A.eles = vt, X.push(s(A)); + A.eles = vt, X.push(o(A)); }), A.quality == "default" || A.quality == "proof") { - var M = G.collection(); + var M = S.collection(); if (A.tile) { - var R = /* @__PURE__ */ new Map(), W = [], x = [], q = 0, V = { nodeIndexes: R, xCoords: W, yCoords: x }, Y = []; + var R = /* @__PURE__ */ new Map(), W = [], x = [], Q = 0, z = { nodeIndexes: R, xCoords: W, yCoords: x }, Y = []; if (D.forEach(function(vt, it) { vt.edges().length == 0 && (vt.nodes().forEach(function(gt, mt) { - M.merge(vt.nodes()[mt]), gt.isParent() || (V.nodeIndexes.set(vt.nodes()[mt].id(), q++), V.xCoords.push(vt.nodes()[0].position().x), V.yCoords.push(vt.nodes()[0].position().y)); + M.merge(vt.nodes()[mt]), gt.isParent() || (z.nodeIndexes.set(vt.nodes()[mt].id(), Q++), z.xCoords.push(vt.nodes()[0].position().x), z.yCoords.push(vt.nodes()[0].position().y)); }), Y.push(it)); }), M.length > 1) { - var et = M.boundingBox(); - rt.push({ x: et.x1 + et.w / 2, y: et.y1 + et.h / 2 }), D.push(M), X.push(V); - for (var z = Y.length - 1; z >= 0; z--) - D.splice(Y[z], 1), X.splice(Y[z], 1), rt.splice(Y[z], 1); + var rt = M.boundingBox(); + _.push({ x: rt.x1 + rt.w / 2, y: rt.y1 + rt.h / 2 }), D.push(M), X.push(z); + for (var B = Y.length - 1; B >= 0; B--) + D.splice(Y[B], 1), X.splice(Y[B], 1), _.splice(Y[B], 1); } } D.forEach(function(vt, it) { - A.eles = vt, J.push(l(A, X[it])), t.relocateComponent(rt[it], J[it], A); + A.eles = vt, k.push(l(A, X[it])), t.relocateComponent(_[it], k[it], A); }); } else D.forEach(function(vt, it) { - t.relocateComponent(rt[it], X[it], A); + t.relocateComponent(_[it], X[it], A); }); var O = /* @__PURE__ */ new Set(); if (D.length > 1) { - var H = [], $ = k.filter(function(vt) { + var H = [], $ = V.filter(function(vt) { return vt.css("display") == "none"; }); D.forEach(function(vt, it) { @@ -3547,7 +3547,7 @@ function pr() { mt.nodes.push({ x: Et.topLeftX, y: Et.topLeftY, width: Et.width, height: Et.height }); } else - J[it][Ot.id()] && mt.nodes.push({ x: J[it][Ot.id()].getLeft(), y: J[it][Ot.id()].getTop(), width: J[it][Ot.id()].getWidth(), height: J[it][Ot.id()].getHeight() }); + k[it][Ot.id()] && mt.nodes.push({ x: k[it][Ot.id()].getLeft(), y: k[it][Ot.id()].getTop(), width: k[it][Ot.id()].getWidth(), height: k[it][Ot.id()].getHeight() }); }), vt.edges().forEach(function(Ot) { var Et = Ot.source(), Dt = Ot.target(); if (Et.css("display") != "none" && Dt.css("display") != "none") @@ -3565,43 +3565,43 @@ function pr() { Pt.push(X[it].xCoords[Ht]), Pt.push(X[it].yCoords[Ht]); mt.edges.push({ startX: Ut[0], startY: Ut[1], endX: Pt[0], endY: Pt[1] }); } else - J[it][Et.id()] && J[it][Dt.id()] && mt.edges.push({ startX: J[it][Et.id()].getCenterX(), startY: J[it][Et.id()].getCenterY(), endX: J[it][Dt.id()].getCenterX(), endY: J[it][Dt.id()].getCenterY() }); + k[it][Et.id()] && k[it][Dt.id()] && mt.edges.push({ startX: k[it][Et.id()].getCenterX(), startY: k[it][Et.id()].getCenterY(), endX: k[it][Dt.id()].getCenterX(), endY: k[it][Dt.id()].getCenterY() }); }), mt.nodes.length > 0 && (H.push(mt), O.add(it)); } }); - var _ = m.packComponents(H, A.randomize).shifts; + var tt = m.packComponents(H, A.randomize).shifts; if (A.quality == "draft") X.forEach(function(vt, it) { var gt = vt.xCoords.map(function(At) { - return At + _[it].dx; + return At + tt[it].dx; }), mt = vt.yCoords.map(function(At) { - return At + _[it].dy; + return At + tt[it].dy; }); vt.xCoords = gt, vt.yCoords = mt; }); else { var ht = 0; O.forEach(function(vt) { - Object.keys(J[vt]).forEach(function(it) { - var gt = J[vt][it]; - gt.setCenter(gt.getCenterX() + _[ht].dx, gt.getCenterY() + _[ht].dy); + Object.keys(k[vt]).forEach(function(it) { + var gt = k[vt][it]; + gt.setCenter(gt.getCenterX() + tt[ht].dx, gt.getCenterY() + tt[ht].dy); }), ht++; }); } } } else { var E = A.eles.boundingBox(); - if (rt.push({ x: E.x1 + E.w / 2, y: E.y1 + E.h / 2 }), A.randomize) { - var y = s(A); + if (_.push({ x: E.x1 + E.w / 2, y: E.y1 + E.h / 2 }), A.randomize) { + var y = o(A); X.push(y); } - A.quality == "default" || A.quality == "proof" ? (J.push(l(A, X[0])), t.relocateComponent(rt[0], J[0], A)) : t.relocateComponent(rt[0], X[0], A); + A.quality == "default" || A.quality == "proof" ? (k.push(l(A, X[0])), t.relocateComponent(_[0], k[0], A)) : t.relocateComponent(_[0], X[0], A); } - var Q = function(it, gt) { + var J = function(it, gt) { if (A.quality == "default" || A.quality == "proof") { typeof it == "number" && (it = gt); var mt = void 0, At = void 0, Ot = it.data("id"); - return J.forEach(function(Dt) { + return k.forEach(function(Dt) { Ot in Dt && (mt = { x: Dt[Ot].getRect().getCenterX(), y: Dt[Ot].getRect().getCenterY() }, At = Dt[Ot]); }), A.nodeDimensionsIncludeLabels && (At.labelWidth && (At.labelPosHorizontal == "left" ? mt.x += At.labelWidth / 2 : At.labelPosHorizontal == "right" && (mt.x -= At.labelWidth / 2)), At.labelHeight && (At.labelPosVertical == "top" ? mt.y += At.labelHeight / 2 : At.labelPosVertical == "bottom" && (mt.y -= At.labelHeight / 2))), mt == null && (mt = { x: it.position("x"), y: it.position("y") }), { x: mt.x, @@ -3619,11 +3619,11 @@ function pr() { } }; if (A.quality == "default" || A.quality == "proof" || A.randomize) { - var It = t.calcParentsWithoutChildren(G, k), Nt = k.filter(function(vt) { + var It = t.calcParentsWithoutChildren(S, V), Nt = V.filter(function(vt) { return vt.css("display") == "none"; }); - A.eles = k.not(Nt), k.nodes().not(":parent").not(Nt).layoutPositions(F, A, Q), It.length > 0 && It.forEach(function(vt) { - vt.position(Q(vt)); + A.eles = V.not(Nt), V.nodes().not(":parent").not(Nt).layoutPositions(b, A, J), It.length > 0 && It.forEach(function(vt) { + vt.position(J(vt)); }); } else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'."); @@ -3637,104 +3637,104 @@ function pr() { 657: ( /***/ ((a, e, i) => { - var f = i(548), r = i(140).layoutBase.Matrix, v = i(140).layoutBase.SVD, t = function(s) { - var c = s.cy, l = s.eles, T = l.nodes(), g = l.nodes(":parent"), d = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), A = [], G = [], k = [], X = [], J = [], D = [], rt = [], n = [], m = void 0, p = 1e8, E = 1e-9, y = s.piTol, I = s.samplingType, M = s.nodeSeparation, R = void 0, W = function() { - for (var b = 0, B = 0, K = !1; B < R; ) { - b = Math.floor(Math.random() * m), K = !1; - for (var Z = 0; Z < B; Z++) - if (X[Z] == b) { + var f = i(548), r = i(140).layoutBase.Matrix, v = i(140).layoutBase.SVD, t = function(o) { + var c = o.cy, l = o.eles, T = l.nodes(), g = l.nodes(":parent"), d = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), A = [], S = [], V = [], X = [], k = [], D = [], _ = [], n = [], m = void 0, p = 1e8, E = 1e-9, y = o.piTol, I = o.samplingType, M = o.nodeSeparation, R = void 0, W = function() { + for (var P = 0, Z = 0, K = !1; Z < R; ) { + P = Math.floor(Math.random() * m), K = !1; + for (var q = 0; q < Z; q++) + if (X[q] == P) { K = !0; break; } if (!K) - X[B] = b, B++; + X[Z] = P, Z++; else continue; } - }, x = function(b, B, K) { - for (var Z = [], at = 0, ct = 0, nt = 0, tt = void 0, j = [], ut = 0, wt = 1, pt = 0; pt < m; pt++) + }, x = function(P, Z, K) { + for (var q = [], at = 0, ct = 0, nt = 0, et = void 0, j = [], ut = 0, wt = 1, pt = 0; pt < m; pt++) j[pt] = p; - for (Z[ct] = b, j[b] = 0; ct >= at; ) { - nt = Z[at++]; + for (q[ct] = P, j[P] = 0; ct >= at; ) { + nt = q[at++]; for (var xt = A[nt], lt = 0; lt < xt.length; lt++) - tt = N.get(xt[lt]), j[tt] == p && (j[tt] = j[nt] + 1, Z[++ct] = tt); - D[nt][B] = j[nt] * M; + et = N.get(xt[lt]), j[et] == p && (j[et] = j[nt] + 1, q[++ct] = et); + D[nt][Z] = j[nt] * M; } if (K) { for (var ot = 0; ot < m; ot++) - D[ot][B] < J[ot] && (J[ot] = D[ot][B]); + D[ot][Z] < k[ot] && (k[ot] = D[ot][Z]); for (var Lt = 0; Lt < m; Lt++) - J[Lt] > ut && (ut = J[Lt], wt = Lt); + k[Lt] > ut && (ut = k[Lt], wt = Lt); } return wt; - }, q = function(b) { - var B = void 0; - if (b) { - B = Math.floor(Math.random() * m); - for (var Z = 0; Z < m; Z++) - J[Z] = p; + }, Q = function(P) { + var Z = void 0; + if (P) { + Z = Math.floor(Math.random() * m); + for (var q = 0; q < m; q++) + k[q] = p; for (var at = 0; at < R; at++) - X[at] = B, B = x(B, at, b); + X[at] = Z, Z = x(Z, at, P); } else { W(); for (var K = 0; K < R; K++) - x(X[K], K, b); + x(X[K], K, P); } for (var ct = 0; ct < m; ct++) for (var nt = 0; nt < R; nt++) D[ct][nt] *= D[ct][nt]; - for (var tt = 0; tt < R; tt++) - rt[tt] = []; + for (var et = 0; et < R; et++) + _[et] = []; for (var j = 0; j < R; j++) for (var ut = 0; ut < R; ut++) - rt[j][ut] = D[X[ut]][j]; - }, V = function() { - for (var b = v.svd(rt), B = b.S, K = b.U, Z = b.V, at = B[0] * B[0] * B[0], ct = [], nt = 0; nt < R; nt++) { + _[j][ut] = D[X[ut]][j]; + }, z = function() { + for (var P = v.svd(_), Z = P.S, K = P.U, q = P.V, at = Z[0] * Z[0] * Z[0], ct = [], nt = 0; nt < R; nt++) { ct[nt] = []; - for (var tt = 0; tt < R; tt++) - ct[nt][tt] = 0, nt == tt && (ct[nt][tt] = B[nt] / (B[nt] * B[nt] + at / (B[nt] * B[nt]))); + for (var et = 0; et < R; et++) + ct[nt][et] = 0, nt == et && (ct[nt][et] = Z[nt] / (Z[nt] * Z[nt] + at / (Z[nt] * Z[nt]))); } - n = r.multMat(r.multMat(Z, ct), r.transpose(K)); + n = r.multMat(r.multMat(q, ct), r.transpose(K)); }, Y = function() { - for (var b = void 0, B = void 0, K = [], Z = [], at = [], ct = [], nt = 0; nt < m; nt++) - K[nt] = Math.random(), Z[nt] = Math.random(); - K = r.normalize(K), Z = r.normalize(Z); - for (var tt = E, j = E, ut = void 0; ; ) { + for (var P = void 0, Z = void 0, K = [], q = [], at = [], ct = [], nt = 0; nt < m; nt++) + K[nt] = Math.random(), q[nt] = Math.random(); + K = r.normalize(K), q = r.normalize(q); + for (var et = E, j = E, ut = void 0; ; ) { for (var wt = 0; wt < m; wt++) at[wt] = K[wt]; - if (K = r.multGamma(r.multL(r.multGamma(at), D, n)), b = r.dotProduct(at, K), K = r.normalize(K), tt = r.dotProduct(at, K), ut = Math.abs(tt / j), ut <= 1 + y && ut >= 1) + if (K = r.multGamma(r.multL(r.multGamma(at), D, n)), P = r.dotProduct(at, K), K = r.normalize(K), et = r.dotProduct(at, K), ut = Math.abs(et / j), ut <= 1 + y && ut >= 1) break; - j = tt; + j = et; } for (var pt = 0; pt < m; pt++) at[pt] = K[pt]; for (j = E; ; ) { for (var xt = 0; xt < m; xt++) - ct[xt] = Z[xt]; - if (ct = r.minusOp(ct, r.multCons(at, r.dotProduct(at, ct))), Z = r.multGamma(r.multL(r.multGamma(ct), D, n)), B = r.dotProduct(ct, Z), Z = r.normalize(Z), tt = r.dotProduct(ct, Z), ut = Math.abs(tt / j), ut <= 1 + y && ut >= 1) + ct[xt] = q[xt]; + if (ct = r.minusOp(ct, r.multCons(at, r.dotProduct(at, ct))), q = r.multGamma(r.multL(r.multGamma(ct), D, n)), Z = r.dotProduct(ct, q), q = r.normalize(q), et = r.dotProduct(ct, q), ut = Math.abs(et / j), ut <= 1 + y && ut >= 1) break; - j = tt; + j = et; } for (var lt = 0; lt < m; lt++) - ct[lt] = Z[lt]; - G = r.multCons(at, Math.sqrt(Math.abs(b))), k = r.multCons(ct, Math.sqrt(Math.abs(B))); + ct[lt] = q[lt]; + S = r.multCons(at, Math.sqrt(Math.abs(P))), V = r.multCons(ct, Math.sqrt(Math.abs(Z))); }; - f.connectComponents(c, l, f.getTopMostNodes(T), d), g.forEach(function(S) { - f.connectComponents(c, l, f.getTopMostNodes(S.descendants().intersection(l)), d); + f.connectComponents(c, l, f.getTopMostNodes(T), d), g.forEach(function(F) { + f.connectComponents(c, l, f.getTopMostNodes(F.descendants().intersection(l)), d); }); - for (var et = 0, z = 0; z < T.length; z++) - T[z].isParent() || N.set(T[z].id(), et++); + for (var rt = 0, B = 0; B < T.length; B++) + T[B].isParent() || N.set(T[B].id(), rt++); var O = !0, H = !1, $ = void 0; try { - for (var _ = d.keys()[Symbol.iterator](), ht; !(O = (ht = _.next()).done); O = !0) { - var Q = ht.value; - N.set(Q, et++); + for (var tt = d.keys()[Symbol.iterator](), ht; !(O = (ht = tt.next()).done); O = !0) { + var J = ht.value; + N.set(J, rt++); } - } catch (S) { - H = !0, $ = S; + } catch (F) { + H = !0, $ = F; } finally { try { - !O && _.return && _.return(); + !O && tt.return && tt.return(); } finally { if (H) throw $; @@ -3742,23 +3742,23 @@ function pr() { } for (var It = 0; It < N.size; It++) A[It] = []; - g.forEach(function(S) { - for (var b = S.children().intersection(l); b.nodes(":childless").length == 0; ) - b = b.nodes()[0].children().intersection(l); - var B = 0, K = b.nodes(":childless")[0].connectedEdges().length; - b.nodes(":childless").forEach(function(Z, at) { - Z.connectedEdges().length < K && (K = Z.connectedEdges().length, B = at); - }), F.set(S.id(), b.nodes(":childless")[B].id()); - }), T.forEach(function(S) { - var b = void 0; - S.isParent() ? b = N.get(F.get(S.id())) : b = N.get(S.id()), S.neighborhood().nodes().forEach(function(B) { - l.intersection(S.edgesWith(B)).length > 0 && (B.isParent() ? A[b].push(F.get(B.id())) : A[b].push(B.id())); + g.forEach(function(F) { + for (var P = F.children().intersection(l); P.nodes(":childless").length == 0; ) + P = P.nodes()[0].children().intersection(l); + var Z = 0, K = P.nodes(":childless")[0].connectedEdges().length; + P.nodes(":childless").forEach(function(q, at) { + q.connectedEdges().length < K && (K = q.connectedEdges().length, Z = at); + }), b.set(F.id(), P.nodes(":childless")[Z].id()); + }), T.forEach(function(F) { + var P = void 0; + F.isParent() ? P = N.get(b.get(F.id())) : P = N.get(F.id()), F.neighborhood().nodes().forEach(function(Z) { + l.intersection(F.edgesWith(Z)).length > 0 && (Z.isParent() ? A[P].push(b.get(Z.id())) : A[P].push(Z.id())); }); }); - var Nt = function(b) { - var B = N.get(b), K = void 0; - d.get(b).forEach(function(Z) { - c.getElementById(Z).isParent() ? K = F.get(Z) : K = Z, A[B].push(K), A[N.get(K)].push(b); + var Nt = function(P) { + var Z = N.get(P), K = void 0; + d.get(P).forEach(function(q) { + c.getElementById(q).isParent() ? K = b.get(q) : K = q, A[Z].push(K), A[N.get(K)].push(P); }); }, vt = !0, it = !1, gt = void 0; try { @@ -3766,8 +3766,8 @@ function pr() { var Ot = At.value; Nt(Ot); } - } catch (S) { - it = !0, gt = S; + } catch (F) { + it = !0, gt = F; } finally { try { !vt && mt.return && mt.return(); @@ -3779,21 +3779,21 @@ function pr() { m = N.size; var Et = void 0; if (m > 2) { - R = m < s.sampleSize ? m : s.sampleSize; + R = m < o.sampleSize ? m : o.sampleSize; for (var Dt = 0; Dt < m; Dt++) D[Dt] = []; for (var Rt = 0; Rt < R; Rt++) n[Rt] = []; - return s.quality == "draft" || s.step == "all" ? (q(I), V(), Y(), Et = { nodeIndexes: N, xCoords: G, yCoords: k }) : (N.forEach(function(S, b) { - G.push(c.getElementById(b).position("x")), k.push(c.getElementById(b).position("y")); - }), Et = { nodeIndexes: N, xCoords: G, yCoords: k }), Et; + return o.quality == "draft" || o.step == "all" ? (Q(I), z(), Y(), Et = { nodeIndexes: N, xCoords: S, yCoords: V }) : (N.forEach(function(F, P) { + S.push(c.getElementById(P).position("x")), V.push(c.getElementById(P).position("y")); + }), Et = { nodeIndexes: N, xCoords: S, yCoords: V }), Et; } else { var Ht = N.keys(), Ut = c.getElementById(Ht.next().value), Pt = Ut.position(), Ft = Ut.outerWidth(); - if (G.push(Pt.x), k.push(Pt.y), m == 2) { + if (S.push(Pt.x), V.push(Pt.y), m == 2) { var Yt = c.getElementById(Ht.next().value), Vt = Yt.outerWidth(); - G.push(Pt.x + Ft / 2 + Vt / 2 + s.idealEdgeLength), k.push(Pt.y); + S.push(Pt.x + Ft / 2 + Vt / 2 + o.idealEdgeLength), V.push(Pt.y); } - return Et = { nodeIndexes: N, xCoords: G, yCoords: k }, Et; + return Et = { nodeIndexes: N, xCoords: S, yCoords: V }, Et; } }; a.exports = { spectralLayout: t }; @@ -3853,46 +3853,46 @@ var De = { T: /* @__PURE__ */ dt((C) => `0,0 ${C},0 ${C / 2},${C}`, "T"), B: /* @__PURE__ */ dt((C) => `${C / 2},0 ${C},${C} 0,${C}`, "B") }, oe = { - L: /* @__PURE__ */ dt((C, P) => C - P + 2, "L"), - R: /* @__PURE__ */ dt((C, P) => C - 2, "R"), - T: /* @__PURE__ */ dt((C, P) => C - P + 2, "T"), - B: /* @__PURE__ */ dt((C, P) => C - 2, "B") + L: /* @__PURE__ */ dt((C, G) => C - G + 2, "L"), + R: /* @__PURE__ */ dt((C, G) => C - 2, "R"), + T: /* @__PURE__ */ dt((C, G) => C - G + 2, "T"), + B: /* @__PURE__ */ dt((C, G) => C - 2, "B") }, mr = /* @__PURE__ */ dt(function(C) { return Wt(C) ? C === "L" ? "R" : "L" : C === "T" ? "B" : "T"; }, "getOppositeArchitectureDirection"), Ie = /* @__PURE__ */ dt(function(C) { - const P = C; - return P === "L" || P === "R" || P === "T" || P === "B"; + const G = C; + return G === "L" || G === "R" || G === "T" || G === "B"; }, "isArchitectureDirection"), Wt = /* @__PURE__ */ dt(function(C) { - const P = C; - return P === "L" || P === "R"; + const G = C; + return G === "L" || G === "R"; }, "isArchitectureDirectionX"), qt = /* @__PURE__ */ dt(function(C) { - const P = C; - return P === "T" || P === "B"; -}, "isArchitectureDirectionY"), me = /* @__PURE__ */ dt(function(C, P) { - const w = Wt(C) && qt(P), U = qt(C) && Wt(P); + const G = C; + return G === "T" || G === "B"; +}, "isArchitectureDirectionY"), me = /* @__PURE__ */ dt(function(C, G) { + const w = Wt(C) && qt(G), U = qt(C) && Wt(G); return w || U; }, "isArchitectureDirectionXY"), Tr = /* @__PURE__ */ dt(function(C) { - const P = C[0], w = C[1], U = Wt(P) && qt(w), L = qt(P) && Wt(w); + const G = C[0], w = C[1], U = Wt(G) && qt(w), L = qt(G) && Wt(w); return U || L; }, "isArchitecturePairXY"), Nr = /* @__PURE__ */ dt(function(C) { return C !== "LL" && C !== "RR" && C !== "TT" && C !== "BB"; -}, "isValidArchitectureDirectionPair"), pe = /* @__PURE__ */ dt(function(C, P) { - const w = `${C}${P}`; +}, "isValidArchitectureDirectionPair"), pe = /* @__PURE__ */ dt(function(C, G) { + const w = `${C}${G}`; return Nr(w) ? w : void 0; -}, "getArchitectureDirectionPair"), Lr = /* @__PURE__ */ dt(function([C, P], w) { +}, "getArchitectureDirectionPair"), Lr = /* @__PURE__ */ dt(function([C, G], w) { const U = w[0], L = w[1]; - return Wt(U) ? qt(L) ? [C + (U === "L" ? -1 : 1), P + (L === "T" ? 1 : -1)] : [C + (U === "L" ? -1 : 1), P] : Wt(L) ? [C + (L === "L" ? 1 : -1), P + (U === "T" ? 1 : -1)] : [C, P + (U === "T" ? 1 : -1)]; + return Wt(U) ? qt(L) ? [C + (U === "L" ? -1 : 1), G + (L === "T" ? 1 : -1)] : [C + (U === "L" ? -1 : 1), G] : Wt(L) ? [C + (L === "L" ? 1 : -1), G + (U === "T" ? 1 : -1)] : [C, G + (U === "T" ? 1 : -1)]; }, "shiftPositionByArchitectureDirectionPair"), Cr = /* @__PURE__ */ dt(function(C) { return C === "LT" || C === "TL" ? [1, 1] : C === "BL" || C === "LB" ? [1, -1] : C === "BR" || C === "RB" ? [-1, -1] : [-1, 1]; -}, "getArchitectureDirectionXYFactors"), Ar = /* @__PURE__ */ dt(function(C, P) { - return me(C, P) ? "bend" : Wt(C) ? "horizontal" : "vertical"; +}, "getArchitectureDirectionXYFactors"), Ar = /* @__PURE__ */ dt(function(C, G) { + return me(C, G) ? "bend" : Wt(C) ? "horizontal" : "vertical"; }, "getArchitectureDirectionAlignment"), wr = /* @__PURE__ */ dt(function(C) { return C.type === "service"; }, "isArchitectureService"), Mr = /* @__PURE__ */ dt(function(C) { return C.type === "junction"; -}, "isArchitectureJunction"), Fe = /* @__PURE__ */ dt((C) => C.data(), "edgeData"), ie = /* @__PURE__ */ dt((C) => C.data(), "nodeData"), Or = er.architecture, be = class { +}, "isArchitectureJunction"), Fe = /* @__PURE__ */ dt((C) => C.data(), "edgeData"), ie = /* @__PURE__ */ dt((C) => C.data(), "nodeData"), Or = rr.architecture, be = class { constructor() { - this.nodes = {}, this.groups = {}, this.edges = [], this.registeredIds = {}, this.elements = {}, this.diagramId = "", this.setAccTitle = Ze, this.getAccTitle = qe, this.setDiagramTitle = Qe, this.getDiagramTitle = Je, this.getAccDescription = Ke, this.setAccDescription = je, this.clear(); + this.nodes = {}, this.groups = {}, this.edges = [], this.registeredIds = {}, this.elements = {}, this.diagramId = "", this.setAccTitle = ke, this.getAccTitle = qe, this.setDiagramTitle = Qe, this.getDiagramTitle = Je, this.getAccDescription = Ke, this.setAccDescription = je, this.clear(); } static { dt(this, "ArchitectureDB"); @@ -3908,7 +3908,7 @@ var De = { } addService({ id: C, - icon: P, + icon: G, in: w, title: U, iconText: L @@ -3930,7 +3930,7 @@ var De = { this.registeredIds[C] = "node", this.nodes[C] = { id: C, type: "service", - icon: P, + icon: G, iconText: L, title: U, edges: [], @@ -3940,26 +3940,26 @@ var De = { getServices() { return Object.values(this.nodes).filter(wr); } - addJunction({ id: C, in: P }) { + addJunction({ id: C, in: G }) { if (this.registeredIds[C] !== void 0) throw new Error( `The junction id [${C}] is already in use by another ${this.registeredIds[C]}` ); - if (P !== void 0) { - if (C === P) + if (G !== void 0) { + if (C === G) throw new Error(`The junction [${C}] cannot be placed within itself`); - if (this.registeredIds[P] === void 0) + if (this.registeredIds[G] === void 0) throw new Error( `The junction [${C}]'s parent does not exist. Please make sure the parent is created before this junction` ); - if (this.registeredIds[P] === "node") + if (this.registeredIds[G] === "node") throw new Error(`The junction [${C}]'s parent is not a group`); } this.registeredIds[C] = "node", this.nodes[C] = { id: C, type: "junction", edges: [], - in: P + in: G }; } getJunctions() { @@ -3971,7 +3971,7 @@ var De = { getNode(C) { return this.nodes[C] ?? null; } - addGroup({ id: C, icon: P, in: w, title: U }) { + addGroup({ id: C, icon: G, in: w, title: U }) { if (this.registeredIds?.[C] !== void 0) throw new Error( `The group id [${C}] is already in use by another ${this.registeredIds[C]}` @@ -3988,7 +3988,7 @@ var De = { } this.registeredIds[C] = "group", this.groups[C] = { id: C, - icon: P, + icon: G, title: U, in: w }; @@ -3998,7 +3998,7 @@ var De = { } addEdge({ lhsId: C, - rhsId: P, + rhsId: G, lhsDir: w, rhsDir: U, lhsInto: L, @@ -4009,41 +4009,41 @@ var De = { }) { if (!Ie(w)) throw new Error( - `Invalid direction given for left hand side of edge ${C}--${P}. Expected (L,R,T,B) got ${String(w)}` + `Invalid direction given for left hand side of edge ${C}--${G}. Expected (L,R,T,B) got ${String(w)}` ); if (!Ie(U)) throw new Error( - `Invalid direction given for right hand side of edge ${C}--${P}. Expected (L,R,T,B) got ${String(U)}` + `Invalid direction given for right hand side of edge ${C}--${G}. Expected (L,R,T,B) got ${String(U)}` ); if (this.nodes[C] === void 0 && this.groups[C] === void 0) throw new Error( `The left-hand id [${C}] does not yet exist. Please create the service/group before declaring an edge to it.` ); - if (this.nodes[P] === void 0 && this.groups[P] === void 0) + if (this.nodes[G] === void 0 && this.groups[G] === void 0) throw new Error( - `The right-hand id [${P}] does not yet exist. Please create the service/group before declaring an edge to it.` + `The right-hand id [${G}] does not yet exist. Please create the service/group before declaring an edge to it.` ); - const i = this.nodes[C].in, f = this.nodes[P].in; + const i = this.nodes[C].in, f = this.nodes[G].in; if (h && i && f && i == f) throw new Error( `The left-hand id [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.` ); if (a && i && f && i == f) throw new Error( - `The right-hand id [${P}] is modified to traverse the group boundary, but the edge does not pass through two groups.` + `The right-hand id [${G}] is modified to traverse the group boundary, but the edge does not pass through two groups.` ); const r = { lhsId: C, lhsDir: w, lhsInto: L, lhsGroup: h, - rhsId: P, + rhsId: G, rhsDir: U, rhsInto: u, rhsGroup: a, title: e }; - this.edges.push(r), this.nodes[C] && this.nodes[P] && (this.nodes[C].edges.push(this.edges[this.edges.length - 1]), this.nodes[P].edges.push(this.edges[this.edges.length - 1])); + this.edges.push(r), this.nodes[C] && this.nodes[G] && (this.nodes[C].edges.push(this.edges[this.edges.length - 1]), this.nodes[G].edges.push(this.edges[this.edges.length - 1])); } getEdges() { return this.edges; @@ -4055,21 +4055,21 @@ var De = { */ getDataStructures() { if (this.dataStructures === void 0) { - const C = {}, P = Object.entries(this.nodes).reduce((a, [e, i]) => (a[e] = i.edges.reduce((f, r) => { + const C = {}, G = Object.entries(this.nodes).reduce((a, [e, i]) => (a[e] = i.edges.reduce((f, r) => { const v = this.getNode(r.lhsId)?.in, t = this.getNode(r.rhsId)?.in; if (v && t && v !== t) { - const o = Ar(r.lhsDir, r.rhsDir); - o !== "bend" && (C[v] ??= {}, C[v][t] = o, C[t] ??= {}, C[t][v] = o); + const s = Ar(r.lhsDir, r.rhsDir); + s !== "bend" && (C[v] ??= {}, C[v][t] = s, C[t] ??= {}, C[t][v] = s); } if (r.lhsId === e) { - const o = pe(r.lhsDir, r.rhsDir); - o && (f[o] = r.rhsId); + const s = pe(r.lhsDir, r.rhsDir); + s && (f[s] = r.rhsId); } else { - const o = pe(r.rhsDir, r.lhsDir); - o && (f[o] = r.lhsId); + const s = pe(r.rhsDir, r.lhsDir); + s && (f[s] = r.lhsId); } return f; - }, {}), a), {}), w = Object.keys(P)[0], U = { [w]: 1 }, L = Object.keys(P).reduce( + }, {}), a), {}), w = Object.keys(G)[0], U = { [w]: 1 }, L = Object.keys(G).reduce( (a, e) => e === w ? a : { ...a, [e]: 1 }, {} ), u = /* @__PURE__ */ dt((a) => { @@ -4078,12 +4078,12 @@ var De = { const f = i.shift(); if (f) { U[f] = 1, delete L[f]; - const r = P[f], [v, t] = e[f]; - Object.entries(r).forEach(([o, s]) => { - U[s] || (e[s] = Lr( + const r = G[f], [v, t] = e[f]; + Object.entries(r).forEach(([s, o]) => { + U[o] || (e[o] = Lr( [v, t], - o - ), i.push(s)); + s + ), i.push(o)); }); } } @@ -4092,15 +4092,15 @@ var De = { for (; Object.keys(L).length > 0; ) h.push(u(Object.keys(L)[0])); this.dataStructures = { - adjList: P, + adjList: G, spatialMaps: h, groupAlignments: C }; } return this.dataStructures; } - setElementForId(C, P) { - this.elements[C] = P; + setElementForId(C, G) { + this.elements[C] = G; } getElementById(C) { return this.elements[C]; @@ -4108,28 +4108,28 @@ var De = { getConfig() { return tr({ ...Or, - ...rr().architecture + ...er().architecture }); } getConfigField(C) { return this.getConfig()[C]; } -}, Dr = /* @__PURE__ */ dt((C, P) => { - hr(C, P), C.groups.map((w) => P.addGroup(w)), C.services.map((w) => P.addService({ ...w, type: "service" })), C.junctions.map((w) => P.addJunction({ ...w, type: "junction" })), C.edges.map((w) => P.addEdge(w)); +}, Dr = /* @__PURE__ */ dt((C, G) => { + hr(C, G), C.groups.map((w) => G.addGroup(w)), C.services.map((w) => G.addService({ ...w, type: "service" })), C.junctions.map((w) => G.addJunction({ ...w, type: "junction" })), C.edges.map((w) => G.addEdge(w)); }, "populateDb"), Pe = { parser: { // @ts-expect-error - ArchitectureDB is not assignable to DiagramDB yy: void 0 }, parse: /* @__PURE__ */ dt(async (C) => { - const P = await lr("architecture", C); - Re.debug(P); + const G = await lr("architecture", C); + Re.debug(G); const w = Pe.parser?.yy; if (!(w instanceof be)) 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." ); - Dr(P, w); + Dr(G, w); }, "parse") }, xr = /* @__PURE__ */ dt((C) => ` .edge { @@ -4197,42 +4197,42 @@ var De = { body: re("") } } -}, Rr = /* @__PURE__ */ dt(async function(C, P, w, U) { +}, Rr = /* @__PURE__ */ dt(async function(C, G, w, U) { const L = w.getConfigField("padding"), u = w.getConfigField("iconSize"), h = u / 2, a = u / 6, e = a / 2; await Promise.all( - P.edges().map(async (i) => { + G.edges().map(async (i) => { const { source: f, sourceDir: r, sourceArrow: v, sourceGroup: t, - target: o, - targetDir: s, + target: s, + targetDir: o, targetArrow: c, targetGroup: l, label: T } = Fe(i); let { x: g, y: d } = i[0].sourceEndpoint(); - const { x: N, y: F } = i[0].midpoint(); - let { x: A, y: G } = i[0].targetEndpoint(); - const k = L + 4; - if (t && (Wt(r) ? g += r === "L" ? -k : k : d += r === "T" ? -k : k + 18), l && (Wt(s) ? A += s === "L" ? -k : k : G += s === "T" ? -k : k + 18), !t && w.getNode(f)?.type === "junction" && (Wt(r) ? g += r === "L" ? h : -h : d += r === "T" ? h : -h), !l && w.getNode(o)?.type === "junction" && (Wt(s) ? A += s === "L" ? h : -h : G += s === "T" ? h : -h), i[0]._private.rscratch) { + const { x: N, y: b } = i[0].midpoint(); + let { x: A, y: S } = i[0].targetEndpoint(); + const V = L + 4; + if (t && (Wt(r) ? g += r === "L" ? -V : V : d += r === "T" ? -V : V + 18), l && (Wt(o) ? A += o === "L" ? -V : V : S += o === "T" ? -V : V + 18), !t && w.getNode(f)?.type === "junction" && (Wt(r) ? g += r === "L" ? h : -h : d += r === "T" ? h : -h), !l && w.getNode(s)?.type === "junction" && (Wt(o) ? A += o === "L" ? h : -h : S += o === "T" ? h : -h), i[0]._private.rscratch) { const X = C.insert("g"); - if (X.insert("path").attr("d", `M ${g},${d} L ${N},${F} L${A},${G} `).attr("class", "edge").attr("id", `${U}-${nr(f, o, { prefix: "L" })}`), v) { - const J = Wt(r) ? oe[r](g, a) : g - e, D = qt(r) ? oe[r](d, a) : d - e; - X.insert("polygon").attr("points", xe[r](a)).attr("transform", `translate(${J},${D})`).attr("class", "arrow"); + if (X.insert("path").attr("d", `M ${g},${d} L ${N},${b} L${A},${S} `).attr("class", "edge").attr("id", `${U}-${nr(f, s, { prefix: "L" })}`), v) { + const k = Wt(r) ? oe[r](g, a) : g - e, D = qt(r) ? oe[r](d, a) : d - e; + X.insert("polygon").attr("points", xe[r](a)).attr("transform", `translate(${k},${D})`).attr("class", "arrow"); } if (c) { - const J = Wt(s) ? oe[s](A, a) : A - e, D = qt(s) ? oe[s](G, a) : G - e; - X.insert("polygon").attr("points", xe[s](a)).attr("transform", `translate(${J},${D})`).attr("class", "arrow"); + const k = Wt(o) ? oe[o](A, a) : A - e, D = qt(o) ? oe[o](S, a) : S - e; + X.insert("polygon").attr("points", xe[o](a)).attr("transform", `translate(${k},${D})`).attr("class", "arrow"); } if (T) { - const J = me(r, s) ? "XY" : Wt(r) ? "X" : "Y"; + const k = me(r, o) ? "XY" : Wt(r) ? "X" : "Y"; let D = 0; - J === "X" ? D = Math.abs(g - A) : J === "Y" ? D = Math.abs(d - G) / 1.5 : D = Math.abs(g - A) / 2; - const rt = X.append("g"); + k === "X" ? D = Math.abs(g - A) : k === "Y" ? D = Math.abs(d - S) / 1.5 : D = Math.abs(g - A) / 2; + const _ = X.append("g"); if (await Ee( - rt, + _, T, { useHtmlLabels: !1, @@ -4240,20 +4240,20 @@ var De = { classes: "architecture-service-label" }, ye() - ), rt.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), J === "X") - rt.attr("transform", "translate(" + N + ", " + F + ")"); - else if (J === "Y") - rt.attr("transform", "translate(" + N + ", " + F + ") rotate(-90)"); - else if (J === "XY") { - const n = pe(r, s); + ), _.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), k === "X") + _.attr("transform", "translate(" + N + ", " + b + ")"); + else if (k === "Y") + _.attr("transform", "translate(" + N + ", " + b + ") rotate(-90)"); + else if (k === "XY") { + const n = pe(r, o); if (n && Tr(n)) { - const m = rt.node().getBoundingClientRect(), [p, E] = Cr(n); - rt.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * p * E * 45})`); - const y = rt.node().getBoundingClientRect(); - rt.attr( + const m = _.node().getBoundingClientRect(), [p, E] = Cr(n); + _.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * p * E * 45})`); + const y = _.node().getBoundingClientRect(); + _.attr( "transform", ` - translate(${N}, ${F - m.height / 2}) + translate(${N}, ${b - m.height / 2}) translate(${p * y.width / 2}, ${E * y.height / 2}) rotate(${-1 * p * E * 45}, 0, ${m.height / 2}) ` @@ -4264,16 +4264,16 @@ var De = { } }) ); -}, "drawEdges"), Sr = /* @__PURE__ */ dt(async function(C, P, w, U) { +}, "drawEdges"), Sr = /* @__PURE__ */ dt(async function(C, G, w, U) { const u = w.getConfigField("padding") * 0.75, h = w.getConfigField("fontSize"), e = w.getConfigField("iconSize") / 2; await Promise.all( - P.nodes().map(async (i) => { + G.nodes().map(async (i) => { const f = ie(i); if (f.type === "group") { - const { h: r, w: v, x1: t, y1: o } = i.boundingBox(), s = C.append("rect"); - s.attr("id", `${U}-group-${f.id}`).attr("x", t + e).attr("y", o + e).attr("width", v).attr("height", r).attr("class", "node-bkg"); + const { h: r, w: v, x1: t, y1: s } = i.boundingBox(), o = C.append("rect"); + o.attr("id", `${U}-group-${f.id}`).attr("x", t + e).attr("y", s + e).attr("width", v).attr("height", r).attr("class", "node-bkg"); const c = C.append("g"); - let l = t, T = o; + let l = t, T = s; if (f.icon) { const g = c.append("g"); g.html( @@ -4299,14 +4299,14 @@ var De = { "translate(" + (l + e + 4) + ", " + (T + e + 2) + ")" ); } - w.setElementForId(f.id, s); + w.setElementForId(f.id, o); } }) ); -}, "drawGroups"), Fr = /* @__PURE__ */ dt(async function(C, P, w, U) { +}, "drawGroups"), Fr = /* @__PURE__ */ dt(async function(C, G, w, U) { const L = ye(); for (const u of w) { - const h = P.append("g"), a = C.getConfigField("iconSize"); + const h = G.append("g"), a = C.getConfigField("iconSize"); if (u.title) { const r = h.append("g"); await Ee( @@ -4329,10 +4329,10 @@ var De = { e.html( `<g>${await ve("blank", { height: a, width: a, fallbackPrefix: ae.prefix })}</g>` ); - const t = e.append("g").append("foreignObject").attr("width", a).attr("height", a).append("div").attr("class", "node-icon-text").attr("style", `height: ${a}px;`).append("div").html(ir(u.iconText, L)), o = parseInt( + const t = e.append("g").append("foreignObject").attr("width", a).attr("height", a).append("div").attr("class", "node-icon-text").attr("style", `height: ${a}px;`).append("div").html(ir(u.iconText, L)), s = parseInt( window.getComputedStyle(t.node(), null).getPropertyValue("font-size").replace(/\D/g, "") ) ?? 16; - t.attr("style", `-webkit-line-clamp: ${Math.floor((a - 2) / o)};`); + t.attr("style", `-webkit-line-clamp: ${Math.floor((a - 2) / s)};`); } else e.append("path").attr("class", "node-bkg").attr("id", `${U}-node-${u.id}`).attr( "d", @@ -4343,9 +4343,9 @@ var De = { u.width = i, u.height = f, C.setElementForId(u.id, h); } return 0; -}, "drawServices"), br = /* @__PURE__ */ dt(function(C, P, w, U) { +}, "drawServices"), br = /* @__PURE__ */ dt(function(C, G, w, U) { w.forEach((L) => { - const u = P.append("g"), h = C.getConfigField("iconSize"); + const u = G.append("g"), h = C.getConfigField("iconSize"); u.append("g").append("rect").attr("id", `${U}-node-${L.id}`).attr("fill-opacity", "0").attr("width", h).attr("height", h), u.attr("class", "architecture-junction"); const { width: e, height: i } = u._groups[0][0].getBBox(); u.width = e, u.height = i, C.setElementForId(L.id, u); @@ -4358,9 +4358,9 @@ or([ } ]); Se.use(Er); -function Ge(C, P, w) { +function Ge(C, G, w) { C.forEach((U) => { - P.add({ + G.add({ group: "nodes", data: { type: "service", @@ -4376,9 +4376,9 @@ function Ge(C, P, w) { }); } dt(Ge, "addServices"); -function Ue(C, P, w) { +function Ue(C, G, w) { C.forEach((U) => { - P.add({ + G.add({ group: "nodes", data: { type: "junction", @@ -4392,8 +4392,8 @@ function Ue(C, P, w) { }); } dt(Ue, "addJunctions"); -function Ye(C, P) { - P.nodes().map((w) => { +function Ye(C, G) { + G.nodes().map((w) => { const U = ie(w); if (U.type === "group") return; @@ -4401,9 +4401,9 @@ function Ye(C, P) { }); } dt(Ye, "positionNodes"); -function Xe(C, P) { +function Xe(C, G) { C.forEach((w) => { - P.add({ + G.add({ group: "nodes", data: { type: "group", @@ -4417,7 +4417,7 @@ function Xe(C, P) { }); } dt(Xe, "addGroups"); -function He(C, P) { +function He(C, G) { C.forEach((w) => { const { lhsId: U, rhsId: L, lhsInto: u, lhsGroup: h, rhsInto: a, lhsDir: e, rhsDir: i, rhsGroup: f, title: r } = w, v = me(w.lhsDir, w.rhsDir) ? "segments" : "straight", t = { id: `${U}-${L}`, @@ -4433,7 +4433,7 @@ function He(C, P) { targetGroup: f, targetEndpoint: i === "L" ? "0 50%" : i === "R" ? "100% 50%" : i === "T" ? "50% 0" : "50% 100%" }; - P.add({ + G.add({ group: "edges", data: t, classes: v @@ -4441,16 +4441,16 @@ function He(C, P) { }); } dt(He, "addEdges"); -function We(C, P, w) { +function We(C, G, w) { const U = /* @__PURE__ */ dt((a, e) => Object.entries(a).reduce( (i, [f, r]) => { let v = 0; const t = Object.entries(r); if (t.length === 1) return i[f] = t[0][1], i; - for (let o = 0; o < t.length - 1; o++) - for (let s = o + 1; s < t.length; s++) { - const [c, l] = t[o], [T, g] = t[s]; + for (let s = 0; s < t.length - 1; s++) + for (let o = s + 1; o < t.length; o++) { + const [c, l] = t[s], [T, g] = t[o]; if (w[c]?.[T] === e) i[f] ??= [], i[f] = [...i[f], ...l, ...g]; else if (c === "default" || T === "default") @@ -4458,14 +4458,14 @@ function We(C, P, w) { else { const N = `${f}-${v++}`; i[N] = l; - const F = `${f}-${v++}`; - i[F] = g; + const b = `${f}-${v++}`; + i[b] = g; } } return i; }, {} - ), "flattenAlignments"), L = P.map((a) => { + ), "flattenAlignments"), L = G.map((a) => { const e = {}, i = {}; return Object.entries(a).forEach(([f, [r, v]]) => { const t = C.getNode(f)?.in ?? "default"; @@ -4491,7 +4491,7 @@ function We(C, P, w) { }; } dt(We, "getAlignments"); -function Ve(C, P) { +function Ve(C, G) { const w = [], U = /* @__PURE__ */ dt((u) => `${u[0]},${u[1]}`, "posToStr"), L = /* @__PURE__ */ dt((u) => u.split(",").map((h) => parseInt(h)), "strToPos"); return C.forEach((u) => { const h = Object.fromEntries( @@ -4509,12 +4509,12 @@ function Ve(C, P) { const r = h[f]; if (r) { const v = L(f); - Object.entries(i).forEach(([t, o]) => { - const s = U([v[0] + o[0], v[1] + o[1]]), c = h[s]; - c && !e[s] && (a.push(s), w.push({ + Object.entries(i).forEach(([t, s]) => { + const o = U([v[0] + s[0], v[1] + s[1]]), c = h[o]; + c && !e[o] && (a.push(o), w.push({ [De[t]]: c, [De[mr(t)]]: r, - gap: 1.5 * P.getConfigField("iconSize") + gap: 1.5 * G.getConfigField("iconSize") })); }); } @@ -4523,7 +4523,7 @@ function Ve(C, P) { }), w; } dt(Ve, "getRelativeConstraints"); -function ze(C, P, w, U, L, { spatialMaps: u, groupAlignments: h }) { +function ze(C, G, w, U, L, { spatialMaps: u, groupAlignments: h }) { return new Promise((a) => { const e = ar("body").append("div").attr("id", "cy").attr("style", "display:none"), i = Se({ container: document.getElementById("cy"), @@ -4602,84 +4602,86 @@ function ze(C, P, w, U, L, { spatialMaps: u, groupAlignments: h }) { } } }); - e.remove(), Xe(w, i), Ge(C, i, L), Ue(P, i, L), He(U, i); - const f = We(L, u, h), r = Ve(u, L), v = i.layout({ + e.remove(), Xe(w, i), Ge(C, i, L), Ue(G, i, L), He(U, i); + const f = We(L, u, h), r = Ve(u, L), v = L.getConfigField("iconSize"), t = L.getConfigField("idealEdgeLengthMultiplier") * v, s = 0.5 * v, o = L.getConfigField("edgeElasticity"), c = i.layout({ name: "fcose", quality: "proof", randomize: L.getConfigField("randomize"), + nodeSeparation: L.getConfigField("nodeSeparation"), + numIter: L.getConfigField("numIter"), styleEnabled: !1, animate: !1, nodeDimensionsIncludeLabels: !1, // Adjust the edge parameters if it passes through the border of a group // Hacky fix for: https://github.com/iVis-at-Bilkent/cytoscape.js-fcose/issues/67 - idealEdgeLength(t) { - const [o, s] = t.connectedNodes(), { parent: c } = ie(o), { parent: l } = ie(s); - return c === l ? 1.5 * L.getConfigField("iconSize") : 0.5 * L.getConfigField("iconSize"); + idealEdgeLength(l) { + const [T, g] = l.connectedNodes(), { parent: d } = ie(T), { parent: N } = ie(g); + return d === N ? t : s; }, - edgeElasticity(t) { - const [o, s] = t.connectedNodes(), { parent: c } = ie(o), { parent: l } = ie(s); - return c === l ? 0.45 : 1e-3; + edgeElasticity(l) { + const [T, g] = l.connectedNodes(), { parent: d } = ie(T), { parent: N } = ie(g); + return d === N ? o : 1e-3; }, alignmentConstraint: f, relativePlacementConstraint: r }); - v.one("layoutstop", () => { - function t(o, s, c, l) { - let T, g; - const { x: d, y: N } = o, { x: F, y: A } = s; - g = (l - N + (d - c) * (N - A) / (d - F)) / Math.sqrt(1 + Math.pow((N - A) / (d - F), 2)), T = Math.sqrt(Math.pow(l - N, 2) + Math.pow(c - d, 2) - Math.pow(g, 2)); - const G = Math.sqrt(Math.pow(F - d, 2) + Math.pow(A - N, 2)); - T = T / G; - let k = (F - d) * (l - N) - (A - N) * (c - d); + c.one("layoutstop", () => { + function l(T, g, d, N) { + let b, A; + const { x: S, y: V } = T, { x: X, y: k } = g; + A = (N - V + (S - d) * (V - k) / (S - X)) / Math.sqrt(1 + Math.pow((V - k) / (S - X), 2)), b = Math.sqrt(Math.pow(N - V, 2) + Math.pow(d - S, 2) - Math.pow(A, 2)); + const D = Math.sqrt(Math.pow(X - S, 2) + Math.pow(k - V, 2)); + b = b / D; + let _ = (X - S) * (N - V) - (k - V) * (d - S); switch (!0) { - case k >= 0: - k = 1; + case _ >= 0: + _ = 1; break; - case k < 0: - k = -1; + case _ < 0: + _ = -1; break; } - let X = (F - d) * (c - d) + (A - N) * (l - N); + let n = (X - S) * (d - S) + (k - V) * (N - V); switch (!0) { - case X >= 0: - X = 1; + case n >= 0: + n = 1; break; - case X < 0: - X = -1; + case n < 0: + n = -1; break; } - return g = Math.abs(g) * k, T = T * X, { - distances: g, - weights: T + return A = Math.abs(A) * _, b = b * n, { + distances: A, + weights: b }; } - dt(t, "getSegmentWeights"), i.startBatch(); - for (const o of Object.values(i.edges())) - if (o.data?.()) { - const { x: s, y: c } = o.source().position(), { x: l, y: T } = o.target().position(); - if (s !== l && c !== T) { - const g = o.sourceEndpoint(), d = o.targetEndpoint(), { sourceDir: N } = Fe(o), [F, A] = qt(N) ? [g.x, d.y] : [d.x, g.y], { weights: G, distances: k } = t(g, d, F, A); - o.style("segment-distances", k), o.style("segment-weights", G); + dt(l, "getSegmentWeights"), i.startBatch(); + for (const T of Object.values(i.edges())) + if (T.data?.()) { + const { x: g, y: d } = T.source().position(), { x: N, y: b } = T.target().position(); + if (g !== N && d !== b) { + const A = T.sourceEndpoint(), S = T.targetEndpoint(), { sourceDir: V } = Fe(T), [X, k] = qt(V) ? [A.x, S.y] : [S.x, A.y], { weights: D, distances: _ } = l(A, S, X, k); + T.style("segment-distances", _), T.style("segment-weights", D); } } - i.endBatch(), v.run(); - }), v.run(), i.ready((t) => { - Re.info("Ready", t), a(i); + i.endBatch(), c.run(); + }), c.run(), i.ready((l) => { + Re.info("Ready", l), a(i); }); }); } dt(ze, "layoutArchitecture"); -var Pr = /* @__PURE__ */ dt(async (C, P, w, U) => { +var Pr = /* @__PURE__ */ dt(async (C, G, w, U) => { const L = U.db; - L.setDiagramId(P); - const u = L.getServices(), h = L.getJunctions(), a = L.getGroups(), e = L.getEdges(), i = L.getDataStructures(), f = Be(P), r = f.append("g"); + L.setDiagramId(G); + const u = L.getServices(), h = L.getJunctions(), a = L.getGroups(), e = L.getEdges(), i = L.getDataStructures(), f = $e(G), r = f.append("g"); r.attr("class", "architecture-edges"); const v = f.append("g"); v.attr("class", "architecture-services"); const t = f.append("g"); - t.attr("class", "architecture-groups"), await Fr(L, v, u, P), br(L, v, h, P); - const o = await ze(u, h, a, e, L, i); - await Rr(r, o, L, P), await Sr(t, o, L, P), Ye(L, o), ke(void 0, f, L.getConfigField("padding"), L.getConfigField("useMaxWidth")); + t.attr("class", "architecture-groups"), await Fr(L, v, u, G), br(L, v, h, G); + const s = await ze(u, h, a, e, L, i); + await Rr(r, s, L, G), await Sr(t, s, L, G), Ye(L, s), Ze(void 0, f, L.getConfigField("padding"), L.getConfigField("useMaxWidth")); }, "draw"), Gr = { draw: Pr }, Vr = { parser: Pe, get db() { diff --git a/src/wc-content-kit/public/mermaid/blockDiagram-DXYQGD6D-DWqRIMGa.js b/src/wc-content-kit/public/mermaid/blockDiagram-DXYQGD6D-DWqRIMGa.js deleted file mode 100644 index 627073a..0000000 --- a/src/wc-content-kit/public/mermaid/blockDiagram-DXYQGD6D-DWqRIMGa.js +++ /dev/null @@ -1,2300 +0,0 @@ -import { g as oe } from "./chunk-FMBD7UC4-GcD7N4Rf.js"; -import { _ as d, D as at, d as T, e as he, l as S, z as de, B as ge, ai as ue, R as pe, S as fe, c as R, O as xe, aj as F, ak as St, al as $, am as ye, u as tt, k as be, an as we, i as It, ao as Ct, ap as me } from "./mermaid.core-Jw3znkh4.js"; -import { c as Le } from "./clone-DGtQGwc_.js"; -import { G as Se } from "./graph-DgQ8kYSl.js"; -import { c as ke } from "./channel-Bbseqfbs.js"; -var yt = (function() { - var e = /* @__PURE__ */ d(function(D, w, g, y) { - for (g = g || {}, y = D.length; y--; g[D[y]] = w) ; - return g; - }, "o"), t = [1, 15], a = [1, 7], i = [1, 13], l = [1, 14], s = [1, 19], r = [1, 16], n = [1, 17], c = [1, 18], x = [8, 30], o = [8, 10, 21, 28, 29, 30, 31, 39, 43, 46], u = [1, 23], b = [1, 24], f = [8, 10, 15, 16, 21, 28, 29, 30, 31, 39, 43, 46], m = [8, 10, 15, 16, 21, 27, 28, 29, 30, 31, 39, 43, 46], v = [1, 49], L = { - trace: /* @__PURE__ */ d(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: /* @__PURE__ */ d(function(w, g, y, k, E, h, W) { - var p = h.length - 1; - switch (E) { - case 4: - k.getLogger().debug("Rule: separator (NL) "); - break; - case 5: - k.getLogger().debug("Rule: separator (Space) "); - break; - case 6: - k.getLogger().debug("Rule: separator (EOF) "); - break; - case 7: - k.getLogger().debug("Rule: hierarchy: ", h[p - 1]), k.setHierarchy(h[p - 1]); - break; - case 8: - k.getLogger().debug("Stop NL "); - break; - case 9: - k.getLogger().debug("Stop EOF "); - break; - case 10: - k.getLogger().debug("Stop NL2 "); - break; - case 11: - k.getLogger().debug("Stop EOF2 "); - break; - case 12: - k.getLogger().debug("Rule: statement: ", h[p]), typeof h[p].length == "number" ? this.$ = h[p] : this.$ = [h[p]]; - break; - case 13: - k.getLogger().debug("Rule: statement #2: ", h[p - 1]), this.$ = [h[p - 1]].concat(h[p]); - break; - case 14: - k.getLogger().debug("Rule: link: ", h[p], w), this.$ = { edgeTypeStr: h[p], label: "" }; - break; - case 15: - k.getLogger().debug("Rule: LABEL link: ", h[p - 3], h[p - 1], h[p]), this.$ = { edgeTypeStr: h[p], label: h[p - 1] }; - break; - case 18: - const O = parseInt(h[p]), Z = k.generateId(); - this.$ = { id: Z, type: "space", label: "", width: O, children: [] }; - break; - case 23: - k.getLogger().debug("Rule: (nodeStatement link node) ", h[p - 2], h[p - 1], h[p], " typestr: ", h[p - 1].edgeTypeStr); - const V = k.edgeStrToEdgeData(h[p - 1].edgeTypeStr); - this.$ = [ - { id: h[p - 2].id, label: h[p - 2].label, type: h[p - 2].type, directions: h[p - 2].directions }, - { id: h[p - 2].id + "-" + h[p].id, start: h[p - 2].id, end: h[p].id, label: h[p - 1].label, type: "edge", directions: h[p].directions, arrowTypeEnd: V, arrowTypeStart: "arrow_open" }, - { id: h[p].id, label: h[p].label, type: k.typeStr2Type(h[p].typeStr), directions: h[p].directions } - ]; - break; - case 24: - k.getLogger().debug("Rule: nodeStatement (abc88 node size) ", h[p - 1], h[p]), this.$ = { id: h[p - 1].id, label: h[p - 1].label, type: k.typeStr2Type(h[p - 1].typeStr), directions: h[p - 1].directions, widthInColumns: parseInt(h[p], 10) }; - break; - case 25: - k.getLogger().debug("Rule: nodeStatement (node) ", h[p]), this.$ = { id: h[p].id, label: h[p].label, type: k.typeStr2Type(h[p].typeStr), directions: h[p].directions, widthInColumns: 1 }; - break; - case 26: - k.getLogger().debug("APA123", this ? this : "na"), k.getLogger().debug("COLUMNS: ", h[p]), this.$ = { type: "column-setting", columns: h[p] === "auto" ? -1 : parseInt(h[p]) }; - break; - case 27: - k.getLogger().debug("Rule: id-block statement : ", h[p - 2], h[p - 1]), k.generateId(), this.$ = { ...h[p - 2], type: "composite", children: h[p - 1] }; - break; - case 28: - k.getLogger().debug("Rule: blockStatement : ", h[p - 2], h[p - 1], h[p]); - const st = k.generateId(); - this.$ = { id: st, type: "composite", label: "", children: h[p - 1] }; - break; - case 29: - k.getLogger().debug("Rule: node (NODE_ID separator): ", h[p]), this.$ = { id: h[p] }; - break; - case 30: - k.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", h[p - 1], h[p]), this.$ = { id: h[p - 1], label: h[p].label, typeStr: h[p].typeStr, directions: h[p].directions }; - break; - case 31: - k.getLogger().debug("Rule: dirList: ", h[p]), this.$ = [h[p]]; - break; - case 32: - k.getLogger().debug("Rule: dirList: ", h[p - 1], h[p]), this.$ = [h[p - 1]].concat(h[p]); - break; - case 33: - k.getLogger().debug("Rule: nodeShapeNLabel: ", h[p - 2], h[p - 1], h[p]), this.$ = { typeStr: h[p - 2] + h[p], label: h[p - 1] }; - break; - case 34: - k.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", h[p - 3], h[p - 2], " #3:", h[p - 1], h[p]), this.$ = { typeStr: h[p - 3] + h[p], label: h[p - 2], directions: h[p - 1] }; - break; - case 35: - case 36: - this.$ = { type: "classDef", id: h[p - 1].trim(), css: h[p].trim() }; - break; - case 37: - this.$ = { type: "applyClass", id: h[p - 1].trim(), styleClass: h[p].trim() }; - break; - case 38: - this.$ = { type: "applyStyles", id: h[p - 1].trim(), stylesStr: h[p].trim() }; - break; - } - }, "anonymous"), - table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 10: t, 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: l, 31: s, 39: r, 43: n, 46: c }, { 8: [1, 20] }, e(x, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 10: t, 21: a, 28: i, 29: l, 31: s, 39: r, 43: n, 46: c }), e(o, [2, 16], { 14: 22, 15: u, 16: b }), e(o, [2, 17]), e(o, [2, 18]), e(o, [2, 19]), e(o, [2, 20]), e(o, [2, 21]), e(o, [2, 22]), e(f, [2, 25], { 27: [1, 25] }), e(o, [2, 26]), { 19: 26, 26: 12, 31: s }, { 10: t, 11: 27, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: l, 31: s, 39: r, 43: n, 46: c }, { 40: [1, 28], 42: [1, 29] }, { 44: [1, 30] }, { 47: [1, 31] }, e(m, [2, 29], { 32: 32, 35: [1, 33], 37: [1, 34] }), { 1: [2, 7] }, e(x, [2, 13]), { 26: 35, 31: s }, { 31: [2, 14] }, { 17: [1, 36] }, e(f, [2, 24]), { 10: t, 11: 37, 13: 4, 14: 22, 15: u, 16: b, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: l, 31: s, 39: r, 43: n, 46: c }, { 30: [1, 38] }, { 41: [1, 39] }, { 41: [1, 40] }, { 45: [1, 41] }, { 48: [1, 42] }, e(m, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(f, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(o, [2, 28]), e(o, [2, 35]), e(o, [2, 36]), e(o, [2, 37]), e(o, [2, 38]), { 36: [1, 47] }, { 33: 48, 34: v }, { 15: [1, 50] }, e(o, [2, 27]), e(m, [2, 33]), { 38: [1, 51] }, { 33: 52, 34: v, 38: [2, 31] }, { 31: [2, 15] }, e(m, [2, 34]), { 38: [2, 32] }], - defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] }, - parseError: /* @__PURE__ */ d(function(w, g) { - if (g.recoverable) - this.trace(w); - else { - var y = new Error(w); - throw y.hash = g, y; - } - }, "parseError"), - parse: /* @__PURE__ */ d(function(w) { - var g = this, y = [0], k = [], E = [null], h = [], W = this.table, p = "", O = 0, Z = 0, V = 2, st = 1, ne = h.slice.call(arguments, 1), z = Object.create(this.lexer), q = { yy: {} }; - for (var gt in this.yy) - Object.prototype.hasOwnProperty.call(this.yy, gt) && (q.yy[gt] = this.yy[gt]); - z.setInput(w, q.yy), q.yy.lexer = z, q.yy.parser = this, typeof z.yylloc > "u" && (z.yylloc = {}); - var ut = z.yylloc; - h.push(ut); - var le = z.options && z.options.ranges; - typeof q.yy.parseError == "function" ? this.parseError = q.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; - function ce(Y) { - y.length = y.length - 2 * Y, E.length = E.length - Y, h.length = h.length - Y; - } - d(ce, "popStack"); - function Bt() { - var Y; - return Y = k.pop() || z.lex() || st, typeof Y != "number" && (Y instanceof Array && (k = Y, Y = k.pop()), Y = g.symbols_[Y] || Y), Y; - } - d(Bt, "lex"); - for (var P, J, K, pt, Q = {}, it, G, Nt, nt; ; ) { - if (J = y[y.length - 1], this.defaultActions[J] ? K = this.defaultActions[J] : ((P === null || typeof P > "u") && (P = Bt()), K = W[J] && W[J][P]), typeof K > "u" || !K.length || !K[0]) { - var ft = ""; - nt = []; - for (it in W[J]) - this.terminals_[it] && it > V && nt.push("'" + this.terminals_[it] + "'"); - z.showPosition ? ft = "Parse error on line " + (O + 1) + `: -` + z.showPosition() + ` -Expecting ` + nt.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : ft = "Parse error on line " + (O + 1) + ": Unexpected " + (P == st ? "end of input" : "'" + (this.terminals_[P] || P) + "'"), this.parseError(ft, { - text: z.match, - token: this.terminals_[P] || P, - line: z.yylineno, - loc: ut, - expected: nt - }); - } - if (K[0] instanceof Array && K.length > 1) - throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + P); - switch (K[0]) { - case 1: - y.push(P), E.push(z.yytext), h.push(z.yylloc), y.push(K[1]), P = null, Z = z.yyleng, p = z.yytext, O = z.yylineno, ut = z.yylloc; - break; - case 2: - if (G = this.productions_[K[1]][1], Q.$ = E[E.length - G], Q._$ = { - first_line: h[h.length - (G || 1)].first_line, - last_line: h[h.length - 1].last_line, - first_column: h[h.length - (G || 1)].first_column, - last_column: h[h.length - 1].last_column - }, le && (Q._$.range = [ - h[h.length - (G || 1)].range[0], - h[h.length - 1].range[1] - ]), pt = this.performAction.apply(Q, [ - p, - Z, - O, - q.yy, - K[1], - E, - h - ].concat(ne)), typeof pt < "u") - return pt; - G && (y = y.slice(0, -1 * G * 2), E = E.slice(0, -1 * G), h = h.slice(0, -1 * G)), y.push(this.productions_[K[1]][0]), E.push(Q.$), h.push(Q._$), Nt = W[y[y.length - 2]][y[y.length - 1]], y.push(Nt); - break; - case 3: - return !0; - } - } - return !0; - }, "parse") - }, _ = /* @__PURE__ */ (function() { - var D = { - EOF: 1, - parseError: /* @__PURE__ */ d(function(g, y) { - if (this.yy.parser) - this.yy.parser.parseError(g, y); - else - throw new Error(g); - }, "parseError"), - // resets the lexer, sets new input - setInput: /* @__PURE__ */ d(function(w, g) { - return this.yy = g || this.yy || {}, this._input = w, 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"), - // consumes and returns one char from the input - input: /* @__PURE__ */ d(function() { - var w = this._input[0]; - this.yytext += w, this.yyleng++, this.offset++, this.match += w, this.matched += w; - var g = w.match(/(?:\r\n?|\n).*/g); - return g ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), w; - }, "input"), - // unshifts one char (or a string) into the input - unput: /* @__PURE__ */ d(function(w) { - var g = w.length, y = w.split(/(?:\r\n?|\n)/g); - this._input = w + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - g), this.offset -= g; - var k = 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), y.length - 1 && (this.yylineno -= y.length - 1); - var E = 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: y ? (y.length === k.length ? this.yylloc.first_column : 0) + k[k.length - y.length].length - y[0].length : this.yylloc.first_column - g - }, this.options.ranges && (this.yylloc.range = [E[0], E[0] + this.yyleng - g]), this.yyleng = this.yytext.length, this; - }, "unput"), - // When called from action, caches matched text and appends it on next action - more: /* @__PURE__ */ d(function() { - return this._more = !0, this; - }, "more"), - // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead. - reject: /* @__PURE__ */ 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"), - // retain first n characters of the match - less: /* @__PURE__ */ d(function(w) { - this.unput(this.match.slice(w)); - }, "less"), - // displays already matched input, i.e. for error messages - pastInput: /* @__PURE__ */ d(function() { - var w = this.matched.substr(0, this.matched.length - this.match.length); - return (w.length > 20 ? "..." : "") + w.substr(-20).replace(/\n/g, ""); - }, "pastInput"), - // displays upcoming input, i.e. for error messages - upcomingInput: /* @__PURE__ */ d(function() { - var w = this.match; - return w.length < 20 && (w += this._input.substr(0, 20 - w.length)), (w.substr(0, 20) + (w.length > 20 ? "..." : "")).replace(/\n/g, ""); - }, "upcomingInput"), - // displays the character position where the lexing error occurred, i.e. for error messages - showPosition: /* @__PURE__ */ d(function() { - var w = this.pastInput(), g = new Array(w.length + 1).join("-"); - return w + this.upcomingInput() + ` -` + g + "^"; - }, "showPosition"), - // test the lexed token: return FALSE when not a match, otherwise return token - test_match: /* @__PURE__ */ d(function(w, g) { - var y, k, E; - if (this.options.backtrack_lexer && (E = { - 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 && (E.yylloc.range = this.yylloc.range.slice(0))), k = w[0].match(/(?:\r\n?|\n).*/g), k && (this.yylineno += k.length), this.yylloc = { - first_line: this.yylloc.last_line, - last_line: this.yylineno + 1, - first_column: this.yylloc.last_column, - last_column: k ? k[k.length - 1].length - k[k.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + w[0].length - }, this.yytext += w[0], this.match += w[0], this.matches = w, 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(w[0].length), this.matched += w[0], y = this.performAction.call(this, this.yy, this, g, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y) - return y; - if (this._backtrack) { - for (var h in E) - this[h] = E[h]; - return !1; - } - return !1; - }, "test_match"), - // return next match in input - next: /* @__PURE__ */ d(function() { - if (this.done) - return this.EOF; - this._input || (this.done = !0); - var w, g, y, k; - this._more || (this.yytext = "", this.match = ""); - for (var E = this._currentRules(), h = 0; h < E.length; h++) - if (y = this._input.match(this.rules[E[h]]), y && (!g || y[0].length > g[0].length)) { - if (g = y, k = h, this.options.backtrack_lexer) { - if (w = this.test_match(y, E[h]), w !== !1) - return w; - if (this._backtrack) { - g = !1; - continue; - } else - return !1; - } else if (!this.options.flex) - break; - } - return g ? (w = this.test_match(g, E[k]), w !== !1 ? w : !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"), - // return next match that has a token - lex: /* @__PURE__ */ d(function() { - var g = this.next(); - return g || this.lex(); - }, "lex"), - // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack) - begin: /* @__PURE__ */ d(function(g) { - this.conditionStack.push(g); - }, "begin"), - // pop the previously active lexer condition state off the condition stack - popState: /* @__PURE__ */ d(function() { - var g = this.conditionStack.length - 1; - return g > 0 ? this.conditionStack.pop() : this.conditionStack[0]; - }, "popState"), - // produce the lexer rule set which is active for the currently active lexer condition state - _currentRules: /* @__PURE__ */ 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"), - // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available - topState: /* @__PURE__ */ d(function(g) { - return g = this.conditionStack.length - 1 - Math.abs(g || 0), g >= 0 ? this.conditionStack[g] : "INITIAL"; - }, "topState"), - // alias for begin(condition) - pushState: /* @__PURE__ */ d(function(g) { - this.begin(g); - }, "pushState"), - // return the number of states currently on the stack - stateStackSize: /* @__PURE__ */ d(function() { - return this.conditionStack.length; - }, "stateStackSize"), - options: {}, - performAction: /* @__PURE__ */ d(function(g, y, k, E) { - switch (k) { - case 0: - return g.getLogger().debug("Found block-beta"), 10; - case 1: - return g.getLogger().debug("Found id-block"), 29; - case 2: - return g.getLogger().debug("Found block"), 10; - case 3: - g.getLogger().debug(".", y.yytext); - break; - case 4: - g.getLogger().debug("_", y.yytext); - break; - case 5: - return 5; - case 6: - return y.yytext = -1, 28; - case 7: - return y.yytext = y.yytext.replace(/columns\s+/, ""), g.getLogger().debug("COLUMNS (LEX)", y.yytext), 28; - case 8: - this.pushState("md_string"); - break; - case 9: - return "MD_STR"; - case 10: - this.popState(); - break; - case 11: - this.pushState("string"); - break; - case 12: - g.getLogger().debug("LEX: POPPING STR:", y.yytext), this.popState(); - break; - case 13: - return g.getLogger().debug("LEX: STR end:", y.yytext), "STR"; - case 14: - return y.yytext = y.yytext.replace(/space\:/, ""), g.getLogger().debug("SPACE NUM (LEX)", y.yytext), 21; - case 15: - return y.yytext = "1", g.getLogger().debug("COLUMNS (LEX)", y.yytext), 21; - case 16: - return 42; - case 17: - return "LINKSTYLE"; - case 18: - return "INTERPOLATE"; - case 19: - return this.pushState("CLASSDEF"), 39; - case 20: - return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID"; - case 21: - return this.popState(), this.pushState("CLASSDEFID"), 40; - case 22: - return this.popState(), 41; - case 23: - return this.pushState("CLASS"), 43; - case 24: - return this.popState(), this.pushState("CLASS_STYLE"), 44; - case 25: - return this.popState(), 45; - case 26: - return this.pushState("STYLE_STMNT"), 46; - case 27: - return this.popState(), this.pushState("STYLE_DEFINITION"), 47; - case 28: - return this.popState(), 48; - case 29: - return this.pushState("acc_title"), "acc_title"; - case 30: - return this.popState(), "acc_title_value"; - case 31: - return this.pushState("acc_descr"), "acc_descr"; - case 32: - return this.popState(), "acc_descr_value"; - case 33: - this.pushState("acc_descr_multiline"); - break; - case 34: - this.popState(); - break; - case 35: - return "acc_descr_multiline_value"; - case 36: - return 30; - case 37: - return this.popState(), g.getLogger().debug("Lex: (("), "NODE_DEND"; - case 38: - return this.popState(), g.getLogger().debug("Lex: (("), "NODE_DEND"; - case 39: - return this.popState(), g.getLogger().debug("Lex: ))"), "NODE_DEND"; - case 40: - return this.popState(), g.getLogger().debug("Lex: (("), "NODE_DEND"; - case 41: - return this.popState(), g.getLogger().debug("Lex: (("), "NODE_DEND"; - case 42: - return this.popState(), g.getLogger().debug("Lex: (-"), "NODE_DEND"; - case 43: - return this.popState(), g.getLogger().debug("Lex: -)"), "NODE_DEND"; - case 44: - return this.popState(), g.getLogger().debug("Lex: (("), "NODE_DEND"; - case 45: - return this.popState(), g.getLogger().debug("Lex: ]]"), "NODE_DEND"; - case 46: - return this.popState(), g.getLogger().debug("Lex: ("), "NODE_DEND"; - case 47: - return this.popState(), g.getLogger().debug("Lex: ])"), "NODE_DEND"; - case 48: - return this.popState(), g.getLogger().debug("Lex: /]"), "NODE_DEND"; - case 49: - return this.popState(), g.getLogger().debug("Lex: /]"), "NODE_DEND"; - case 50: - return this.popState(), g.getLogger().debug("Lex: )]"), "NODE_DEND"; - case 51: - return this.popState(), g.getLogger().debug("Lex: )"), "NODE_DEND"; - case 52: - return this.popState(), g.getLogger().debug("Lex: ]>"), "NODE_DEND"; - case 53: - return this.popState(), g.getLogger().debug("Lex: ]"), "NODE_DEND"; - case 54: - return g.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35; - case 55: - return g.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35; - case 56: - return g.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35; - case 57: - return g.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35; - case 58: - return g.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35; - case 59: - return g.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35; - case 60: - return g.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35; - case 61: - return g.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35; - case 62: - return g.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35; - case 63: - return g.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35; - case 64: - return g.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35; - case 65: - return this.pushState("NODE"), 35; - case 66: - return this.pushState("NODE"), 35; - case 67: - return this.pushState("NODE"), 35; - case 68: - return this.pushState("NODE"), 35; - case 69: - return this.pushState("NODE"), 35; - case 70: - return this.pushState("NODE"), 35; - case 71: - return this.pushState("NODE"), 35; - case 72: - return g.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35; - case 73: - return this.pushState("BLOCK_ARROW"), g.getLogger().debug("LEX ARR START"), 37; - case 74: - return g.getLogger().debug("Lex: NODE_ID", y.yytext), 31; - case 75: - return g.getLogger().debug("Lex: EOF", y.yytext), 8; - case 76: - this.pushState("md_string"); - break; - case 77: - this.pushState("md_string"); - break; - case 78: - return "NODE_DESCR"; - case 79: - this.popState(); - break; - case 80: - g.getLogger().debug("Lex: Starting string"), this.pushState("string"); - break; - case 81: - g.getLogger().debug("LEX ARR: Starting string"), this.pushState("string"); - break; - case 82: - return g.getLogger().debug("LEX: NODE_DESCR:", y.yytext), "NODE_DESCR"; - case 83: - g.getLogger().debug("LEX POPPING"), this.popState(); - break; - case 84: - g.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR"); - break; - case 85: - return y.yytext = y.yytext.replace(/^,\s*/, ""), g.getLogger().debug("Lex (right): dir:", y.yytext), "DIR"; - case 86: - return y.yytext = y.yytext.replace(/^,\s*/, ""), g.getLogger().debug("Lex (left):", y.yytext), "DIR"; - case 87: - return y.yytext = y.yytext.replace(/^,\s*/, ""), g.getLogger().debug("Lex (x):", y.yytext), "DIR"; - case 88: - return y.yytext = y.yytext.replace(/^,\s*/, ""), g.getLogger().debug("Lex (y):", y.yytext), "DIR"; - case 89: - return y.yytext = y.yytext.replace(/^,\s*/, ""), g.getLogger().debug("Lex (up):", y.yytext), "DIR"; - case 90: - return y.yytext = y.yytext.replace(/^,\s*/, ""), g.getLogger().debug("Lex (down):", y.yytext), "DIR"; - case 91: - return y.yytext = "]>", g.getLogger().debug("Lex (ARROW_DIR end):", y.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END"; - case 92: - return g.getLogger().debug("Lex: LINK", "#" + y.yytext + "#"), 15; - case 93: - return g.getLogger().debug("Lex: LINK", y.yytext), 15; - case 94: - return g.getLogger().debug("Lex: LINK", y.yytext), 15; - case 95: - return g.getLogger().debug("Lex: LINK", y.yytext), 15; - case 96: - return g.getLogger().debug("Lex: START_LINK", y.yytext), this.pushState("LLABEL"), 16; - case 97: - return g.getLogger().debug("Lex: START_LINK", y.yytext), this.pushState("LLABEL"), 16; - case 98: - return g.getLogger().debug("Lex: START_LINK", y.yytext), this.pushState("LLABEL"), 16; - case 99: - this.pushState("md_string"); - break; - case 100: - return g.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL"; - case 101: - return this.popState(), g.getLogger().debug("Lex: LINK", "#" + y.yytext + "#"), 15; - case 102: - return this.popState(), g.getLogger().debug("Lex: LINK", y.yytext), 15; - case 103: - return this.popState(), g.getLogger().debug("Lex: LINK", y.yytext), 15; - case 104: - return g.getLogger().debug("Lex: COLON", y.yytext), y.yytext = y.yytext.slice(1), 27; - } - }, "anonymous"), - rules: [/^(?:block-beta\b)/, /^(?:block:)/, /^(?:block\b)/, /^(?:[\s]+)/, /^(?:[\n]+)/, /^(?:((\u000D\u000A)|(\u000A)))/, /^(?:columns\s+auto\b)/, /^(?:columns\s+[\d]+)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:space[:]\d+)/, /^(?:space\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\s+)/, /^(?:DEFAULT\s+)/, /^(?:\w+\s+)/, /^(?:[^\n]*)/, /^(?:class\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:style\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:end\b\s*)/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:[\)]\))/, /^(?:\}\})/, /^(?:\})/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\()/, /^(?:\]\])/, /^(?:\()/, /^(?:\]\))/, /^(?:\\\])/, /^(?:\/\])/, /^(?:\)\])/, /^(?:[\)])/, /^(?:\]>)/, /^(?:[\]])/, /^(?:-\))/, /^(?:\(-)/, /^(?:\)\))/, /^(?:\))/, /^(?:\(\(\()/, /^(?:\(\()/, /^(?:\{\{)/, /^(?:\{)/, /^(?:>)/, /^(?:\(\[)/, /^(?:\()/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\[\\)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:\[)/, /^(?:<\[)/, /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/, /^(?:$)/, /^(?:["][`])/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:\]>\s*\()/, /^(?:,?\s*right\s*)/, /^(?:,?\s*left\s*)/, /^(?:,?\s*x\s*)/, /^(?:,?\s*y\s*)/, /^(?:,?\s*up\s*)/, /^(?:,?\s*down\s*)/, /^(?:\)\s*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:["][`])/, /^(?:["])/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?::\d+)/], - conditions: { STYLE_DEFINITION: { rules: [28], inclusive: !1 }, STYLE_STMNT: { rules: [27], inclusive: !1 }, CLASSDEFID: { rules: [22], inclusive: !1 }, CLASSDEF: { rules: [20, 21], inclusive: !1 }, CLASS_STYLE: { rules: [25], inclusive: !1 }, CLASS: { rules: [24], inclusive: !1 }, LLABEL: { rules: [99, 100, 101, 102, 103], inclusive: !1 }, ARROW_DIR: { rules: [85, 86, 87, 88, 89, 90, 91], inclusive: !1 }, BLOCK_ARROW: { rules: [76, 81, 84], inclusive: !1 }, NODE: { rules: [37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 77, 80], inclusive: !1 }, md_string: { rules: [9, 10, 78, 79], inclusive: !1 }, space: { rules: [], inclusive: !1 }, string: { rules: [12, 13, 82, 83], inclusive: !1 }, acc_descr_multiline: { rules: [34, 35], inclusive: !1 }, acc_descr: { rules: [32], inclusive: !1 }, acc_title: { rules: [30], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 14, 15, 16, 17, 18, 19, 23, 26, 29, 31, 33, 36, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 92, 93, 94, 95, 96, 97, 98, 104], inclusive: !0 } } - }; - return D; - })(); - L.lexer = _; - function I() { - this.yy = {}; - } - return d(I, "Parser"), I.prototype = L, L.Parser = I, new I(); -})(); -yt.parser = yt; -var ve = yt, X = /* @__PURE__ */ new Map(), kt = [], bt = /* @__PURE__ */ new Map(), Ot = "color", Rt = "fill", Ee = "bgFill", Ht = ",", _e = R(), ct = /* @__PURE__ */ new Map(), vt = "", De = /* @__PURE__ */ d((e) => be.sanitizeText(e, _e), "sanitizeText"), Te = /* @__PURE__ */ d(function(e, t = "") { - let a = ct.get(e); - a || (a = { id: e, styles: [], textStyles: [] }, ct.set(e, a)), t?.split(Ht).forEach((i) => { - const l = i.replace(/([^;]*);/, "$1").trim(); - if (RegExp(Ot).exec(i)) { - const r = l.replace(Rt, Ee).replace(Ot, Rt); - a.textStyles.push(r); - } - a.styles.push(l); - }); -}, "addStyleClass"), Be = /* @__PURE__ */ d(function(e, t = "") { - const a = X.get(e); - t != null && (a.styles = t.split(Ht)); -}, "addStyle2Node"), Ne = /* @__PURE__ */ d(function(e, t) { - e.split(",").forEach(function(a) { - let i = X.get(a); - if (i === void 0) { - const l = a.trim(); - i = { id: l, type: "na", children: [] }, X.set(l, i); - } - i.classes || (i.classes = []), i.classes.push(t); - }); -}, "setCssClass"), Kt = /* @__PURE__ */ d((e, t) => { - const a = e.flat(), i = [], s = a.find((r) => r?.type === "column-setting")?.columns ?? -1; - for (const r of a) { - if (typeof s == "number" && s > 0 && r.type !== "column-setting" && typeof r.widthInColumns == "number" && r.widthInColumns > s && S.warn( - `Block ${r.id} width ${r.widthInColumns} exceeds configured column width ${s}` - ), r.label && (r.label = De(r.label)), r.type === "classDef") { - Te(r.id, r.css); - continue; - } - if (r.type === "applyClass") { - Ne(r.id, r?.styleClass ?? ""); - continue; - } - if (r.type === "applyStyles") { - r?.stylesStr && Be(r.id, r?.stylesStr); - continue; - } - if (r.type === "column-setting") - t.columns = r.columns ?? -1; - else if (r.type === "edge") { - const n = (bt.get(r.id) ?? 0) + 1; - bt.set(r.id, n), r.id = n + "-" + r.id, kt.push(r); - } else { - r.label || (r.type === "composite" ? r.label = "" : r.label = r.id); - const n = X.get(r.id); - if (n === void 0 ? X.set(r.id, r) : (r.type !== "na" && (n.type = r.type), r.label !== r.id && (n.label = r.label)), r.children && Kt(r.children, r), r.type === "space") { - const c = r.width ?? 1; - for (let x = 0; x < c; x++) { - const o = Le(r); - o.id = o.id + "-" + x, X.set(o.id, o), i.push(o); - } - } else n === void 0 && i.push(r); - } - } - t.children = i; -}, "populateBlockDatabase"), Et = [], rt = { id: "root", type: "composite", children: [], columns: -1 }, Ie = /* @__PURE__ */ d(() => { - S.debug("Clear called"), de(), rt = { id: "root", type: "composite", children: [], columns: -1 }, X = /* @__PURE__ */ new Map([["root", rt]]), Et = [], ct = /* @__PURE__ */ new Map(), kt = [], bt = /* @__PURE__ */ new Map(), vt = ""; -}, "clear"); -function Ut(e) { - switch (S.debug("typeStr2Type", e), e) { - case "[]": - return "square"; - case "()": - return S.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"; - } -} -d(Ut, "typeStr2Type"); -function Xt(e) { - switch (S.debug("typeStr2Type", e), e) { - case "==": - return "thick"; - default: - return "normal"; - } -} -d(Xt, "edgeTypeStr2Type"); -function jt(e) { - switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) { - case "x": - return "arrow_cross"; - case "o": - return "arrow_circle"; - case ">": - return "arrow_point"; - default: - return ""; - } -} -d(jt, "edgeStrToEdgeData"); -var zt = 0, Ce = /* @__PURE__ */ d(() => (zt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + zt), "generateId"), Oe = /* @__PURE__ */ d((e) => { - rt.children = e, Kt(e, rt), Et = rt.children; -}, "setHierarchy"), Re = /* @__PURE__ */ d((e) => { - const t = X.get(e); - return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1; -}, "getColumns"), ze = /* @__PURE__ */ d(() => [...X.values()], "getBlocksFlat"), Ae = /* @__PURE__ */ d(() => Et || [], "getBlocks"), Me = /* @__PURE__ */ d(() => kt, "getEdges"), Fe = /* @__PURE__ */ d((e) => X.get(e), "getBlock"), Pe = /* @__PURE__ */ d((e) => { - X.set(e.id, e); -}, "setBlock"), We = /* @__PURE__ */ d((e) => { - vt = e; -}, "setDiagramId"), Ye = /* @__PURE__ */ d(() => vt, "getDiagramId"), He = /* @__PURE__ */ d(() => S, "getLogger"), Ke = /* @__PURE__ */ d(function() { - return ct; -}, "getClasses"), Ue = { - getConfig: /* @__PURE__ */ d(() => at().block, "getConfig"), - typeStr2Type: Ut, - edgeTypeStr2Type: Xt, - edgeStrToEdgeData: jt, - getLogger: He, - getBlocksFlat: ze, - getBlocks: Ae, - getEdges: Me, - setHierarchy: Oe, - getBlock: Fe, - setBlock: Pe, - getColumns: Re, - getClasses: Ke, - clear: Ie, - generateId: Ce, - setDiagramId: We, - getDiagramId: Ye -}, Xe = Ue, xt = /* @__PURE__ */ d((e, t) => { - const a = ke, i = a(e, "r"), l = a(e, "g"), s = a(e, "b"); - return ge(i, l, s, t); -}, "fade"), je = /* @__PURE__ */ d((e) => `.label { - font-family: ${e.fontFamily}; - color: ${e.nodeTextColor || e.textColor}; - } - .cluster-label text { - fill: ${e.titleColor}; - } - .cluster-label span,p { - color: ${e.titleColor}; - } - - - - .label text,span,p { - 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: 1px; - } - .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}; - } - - .edgePath .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 \`<p>\` 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: ${xt(e.mainBkg, 0.5)}; - fill: ${xt(e.clusterBkg, 0.5)}; - stroke: ${xt(e.clusterBorder, 0.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,p { - 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}; - } - ${oe()} -`, "getStyles"), Ve = je, Ge = /* @__PURE__ */ d((e, t, a, i) => { - t.forEach((l) => { - sr[l](e, a, i); - }); -}, "insertMarkers"), Ze = /* @__PURE__ */ d((e, t, a) => { - S.trace("Making markers for ", a), e.append("defs").append("marker").attr("id", a + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.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").append("path").attr("d", "M 1,1 V 13 L18,7 Z"); -}, "extension"), qe = /* @__PURE__ */ d((e, t, a) => { - e.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").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.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").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "composition"), Je = /* @__PURE__ */ d((e, t, a) => { - e.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").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.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").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "aggregation"), Qe = /* @__PURE__ */ d((e, t, a) => { - e.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").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.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").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "dependency"), $e = /* @__PURE__ */ d((e, t, a) => { - e.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").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.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").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6); -}, "lollipop"), tr = /* @__PURE__ */ d((e, t, a) => { - e.append("marker").attr("id", a + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).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").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.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", 12).attr("markerHeight", 12).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"); -}, "point"), er = /* @__PURE__ */ d((e, t, a) => { - e.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"), e.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"); -}, "circle"), rr = /* @__PURE__ */ d((e, t, a) => { - e.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"), e.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"); -}, "cross"), ar = /* @__PURE__ */ d((e, t, a) => { - e.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 L9,13 L14,7 L9,1 Z"); -}, "barb"), sr = { - extension: Ze, - composition: qe, - aggregation: Je, - dependency: Qe, - lollipop: $e, - point: tr, - circle: er, - cross: rr, - barb: ar -}, ir = Ge, C = R()?.block?.padding ?? 8; -function wt(e, t) { - if (e === 0 || !Number.isInteger(e)) - throw new Error("Columns must be an integer !== 0."); - if (t < 0 || !Number.isInteger(t)) - throw new Error("Position must be a non-negative integer." + t); - if (e < 0) - return { px: t, py: 0 }; - if (e === 1) - return { px: 0, py: t }; - const a = t % e, i = Math.floor(t / e); - return { px: a, py: i }; -} -d(wt, "calculateBlockPosition"); -var nr = /* @__PURE__ */ d((e) => { - let t = 0, a = 0; - for (const i of e.children) { - const { width: l, height: s, x: r, y: n } = i.size ?? { width: 0, height: 0, x: 0, y: 0 }; - S.debug( - "getMaxChildSize abc95 child:", - i.id, - "width:", - l, - "height:", - s, - "x:", - r, - "y:", - n, - i.type - ), i.type !== "space" && (l > t && (t = l / (i.widthInColumns ?? 1)), s > a && (a = s)); - } - return { width: t, height: a }; -}, "getMaxChildSize"); -function ot(e, t, a = 0, i = 0) { - S.debug( - "setBlockSizes abc95 (start)", - e.id, - e?.size?.x, - "block width =", - e?.size, - "siblingWidth", - a - ), e?.size?.width || (e.size = { - width: a, - height: i, - x: 0, - y: 0 - }); - let l = 0, s = 0; - if (e.children?.length > 0) { - for (const f of e.children) - ot(f, t); - const r = nr(e); - l = r.width, s = r.height, S.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", l, s); - for (const f of e.children) - f.size && (S.debug( - `abc95 Setting size of children of ${e.id} id=${f.id} ${l} ${s} ${JSON.stringify(f.size)}` - ), f.size.width = l * (f.widthInColumns ?? 1) + C * ((f.widthInColumns ?? 1) - 1), f.size.height = s, f.size.x = 0, f.size.y = 0, S.debug( - `abc95 updating size of ${e.id} children child:${f.id} maxWidth:${l} maxHeight:${s}` - )); - for (const f of e.children) - ot(f, t, l, s); - const n = e.columns ?? -1; - let c = 0; - for (const f of e.children) - c += f.widthInColumns ?? 1; - let x = e.children.length; - n > 0 && n < c && (x = n); - const o = Math.ceil(c / x); - let u = x * (l + C) + C, b = o * (s + C) + C; - if (u < a) { - S.debug( - `Detected to small sibling: abc95 ${e.id} siblingWidth ${a} siblingHeight ${i} width ${u}` - ), u = a, b = i; - const f = (a - x * C - C) / x, m = (i - o * C - C) / o; - S.debug("Size indata abc88", e.id, "childWidth", f, "maxWidth", l), S.debug("Size indata abc88", e.id, "childHeight", m, "maxHeight", s), S.debug("Size indata abc88 xSize", x, "padding", C); - for (const v of e.children) - v.size && (v.size.width = f, v.size.height = m, v.size.x = 0, v.size.y = 0); - } - if (S.debug( - `abc95 (finale calc) ${e.id} xSize ${x} ySize ${o} columns ${n}${e.children.length} width=${Math.max(u, e.size?.width || 0)}` - ), u < (e?.size?.width || 0)) { - u = e?.size?.width || 0; - const f = n > 0 ? Math.min(e.children.length, n) : e.children.length; - if (f > 0) { - const m = (u - f * C - C) / f; - S.debug("abc95 (growing to fit) width", e.id, u, e.size?.width, m); - for (const v of e.children) - v.size && (v.size.width = m); - } - } - e.size = { - width: u, - height: b, - x: 0, - y: 0 - }; - } - S.debug( - "setBlockSizes abc94 (done)", - e.id, - e?.size?.x, - e?.size?.width, - e?.size?.y, - e?.size?.height - ); -} -d(ot, "setBlockSizes"); -function _t(e, t) { - S.debug( - `abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}` - ); - const a = e.columns ?? -1; - if (S.debug("layoutBlocks columns abc95", e.id, "=>", a, e), e.children && // find max width of children - e.children.length > 0) { - const i = e?.children[0]?.size?.width ?? 0, l = e.children.length * i + (e.children.length - 1) * C; - S.debug("widthOfChildren 88", l, "posX"); - const s = /* @__PURE__ */ new Map(); - { - let o = 0; - for (const u of e.children) { - if (!u.size) - continue; - const { py: b } = wt(a, o), f = s.get(b) ?? 0; - u.size.height > f && s.set(b, u.size.height); - let m = u?.widthInColumns ?? 1; - a > 0 && (m = Math.min(m, a - o % a)), o += m; - } - } - const r = /* @__PURE__ */ new Map(); - { - let o = 0; - const u = [...s.keys()].sort((b, f) => b - f); - for (const b of u) - r.set(b, o), o += (s.get(b) ?? 0) + C; - } - let n = 0; - S.debug("abc91 block?.size?.x", e.id, e?.size?.x); - let c = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -C, x = 0; - for (const o of e.children) { - const u = e; - if (!o.size) - continue; - const { width: b, height: f } = o.size, { px: m, py: v } = wt(a, n); - if (v != x && (x = v, c = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -C, S.debug("New row in layout for block", e.id, " and child ", o.id, x)), S.debug( - `abc89 layout blocks (child) id: ${o.id} Pos: ${n} (px, py) ${m},${v} (${u?.size?.x},${u?.size?.y}) parent: ${u.id} width: ${b}${C}` - ), u.size) { - const _ = b / 2; - o.size.x = c + C + _, S.debug( - `abc91 layout blocks (calc) px, pyid:${o.id} startingPos=X${c} new startingPosX${o.size.x} ${_} padding=${C} width=${b} halfWidth=${_} => x:${o.size.x} y:${o.size.y} ${o.widthInColumns} (width * (child?.w || 1)) / 2 ${b * (o?.widthInColumns ?? 1) / 2}` - ), c = o.size.x + _; - const I = r.get(v) ?? 0, D = s.get(v) ?? f; - o.size.y = u.size.y - u.size.height / 2 + I + D / 2 + C, S.debug( - `abc88 layout blocks (calc) px, pyid:${o.id}startingPosX${c}${C}${_}=>x:${o.size.x}y:${o.size.y}${o.widthInColumns}(width * (child?.w || 1)) / 2${b * (o?.widthInColumns ?? 1) / 2}` - ); - } - o.children && _t(o); - let L = o?.widthInColumns ?? 1; - a > 0 && (L = Math.min(L, a - n % a)), n += L, S.debug("abc88 columnsPos", o, n); - } - } - S.debug( - `layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}` - ); -} -d(_t, "layoutBlocks"); -function Dt(e, { minX: t, minY: a, maxX: i, maxY: l } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) { - if (e.size && e.id !== "root") { - const { x: s, y: r, width: n, height: c } = e.size; - s - n / 2 < t && (t = s - n / 2), r - c / 2 < a && (a = r - c / 2), s + n / 2 > i && (i = s + n / 2), r + c / 2 > l && (l = r + c / 2); - } - if (e.children) - for (const s of e.children) - ({ minX: t, minY: a, maxX: i, maxY: l } = Dt(s, { minX: t, minY: a, maxX: i, maxY: l })); - return { minX: t, minY: a, maxX: i, maxY: l }; -} -d(Dt, "findBounds"); -function Vt(e) { - const t = e.getBlock("root"); - if (!t) - return; - ot(t, e, 0, 0), _t(t), S.debug("getBlocks", JSON.stringify(t, null, 2)); - const { minX: a, minY: i, maxX: l, maxY: s } = Dt(t), r = s - i, n = l - a; - return { x: a, y: i, width: n, height: r }; -} -d(Vt, "layout"); -var lr = /* @__PURE__ */ d(async (e, t, a, i = !1, l = !1) => { - let s = t || ""; - typeof s == "object" && (s = s[0]); - const r = R(), n = F(r); - return await St( - e, - s, - { - style: a, - isTitle: i, - useHtmlLabels: n, - markdown: !1, - isNode: l, - width: Number.POSITIVE_INFINITY - }, - r - ); -}, "createLabel"), U = lr, cr = /* @__PURE__ */ d((e, t, a, i, l) => { - t.arrowTypeStart && At(e, "start", t.arrowTypeStart, a, i, l), t.arrowTypeEnd && At(e, "end", t.arrowTypeEnd, a, i, l); -}, "addEdgeMarkers"), or = { - arrow_cross: "cross", - arrow_point: "point", - arrow_barb: "barb", - arrow_circle: "circle", - aggregation: "aggregation", - extension: "extension", - composition: "composition", - dependency: "dependency", - lollipop: "lollipop" -}, At = /* @__PURE__ */ d((e, t, a, i, l, s) => { - const r = or[a]; - if (!r) { - S.warn(`Unknown arrow type: ${a}`); - return; - } - const n = t === "start" ? "Start" : "End"; - e.attr(`marker-${t}`, `url(${i}#${l}_${s}-${r}${n})`); -}, "addEdgeMarker"), mt = {}, M = {}, hr = /* @__PURE__ */ d(async (e, t) => { - const a = R(), i = F(a), l = e.insert("g").attr("class", "edgeLabel"), s = l.insert("g").attr("class", "label"), r = t.labelType === "markdown", n = await St( - e, - t.label, - { - style: t.labelStyle, - useHtmlLabels: i, - // TODO: The old code only set addSvgBackground when using markdown, but - // this function is only used by block diagrams which never use markdown. - addSvgBackground: r, - isNode: !1, - markdown: r, - // If using markdown, wrap using default width - width: r ? void 0 : Number.POSITIVE_INFINITY - }, - a - ); - s.node().appendChild(n); - let c = n.getBBox(), x = c; - if (i) { - const u = n.children[0], b = T(n); - c = u.getBoundingClientRect(), x = c, b.attr("width", c.width), b.attr("height", c.height); - } else { - const u = T(n).select("text").node(); - u && typeof u.getBBox == "function" && (x = u.getBBox()); - } - s.attr("transform", $(x, i)), mt[t.id] = l, t.width = c.width, t.height = c.height; - let o; - if (t.startLabelLeft) { - const u = e.insert("g").attr("class", "edgeTerminals"), b = u.insert("g").attr("class", "inner"), f = await U(b, t.startLabelLeft, t.labelStyle); - o = f; - let m = f.getBBox(); - if (i) { - const v = f.children[0], L = T(f); - m = v.getBoundingClientRect(), L.attr("width", m.width), L.attr("height", m.height); - } - b.attr("transform", $(m, i)), M[t.id] || (M[t.id] = {}), M[t.id].startLeft = u, et(o, t.startLabelLeft); - } - if (t.startLabelRight) { - const u = e.insert("g").attr("class", "edgeTerminals"), b = u.insert("g").attr("class", "inner"), f = await U( - u, - t.startLabelRight, - t.labelStyle - ); - o = f, b.node().appendChild(f); - let m = f.getBBox(); - if (i) { - const v = f.children[0], L = T(f); - m = v.getBoundingClientRect(), L.attr("width", m.width), L.attr("height", m.height); - } - b.attr("transform", $(m, i)), M[t.id] || (M[t.id] = {}), M[t.id].startRight = u, et(o, t.startLabelRight); - } - if (t.endLabelLeft) { - const u = e.insert("g").attr("class", "edgeTerminals"), b = u.insert("g").attr("class", "inner"), f = await U(b, t.endLabelLeft, t.labelStyle); - o = f; - let m = f.getBBox(); - if (i) { - const v = f.children[0], L = T(f); - m = v.getBoundingClientRect(), L.attr("width", m.width), L.attr("height", m.height); - } - b.attr("transform", $(m, i)), u.node().appendChild(f), M[t.id] || (M[t.id] = {}), M[t.id].endLeft = u, et(o, t.endLabelLeft); - } - if (t.endLabelRight) { - const u = e.insert("g").attr("class", "edgeTerminals"), b = u.insert("g").attr("class", "inner"), f = await U(b, t.endLabelRight, t.labelStyle); - o = f; - let m = f.getBBox(); - if (i) { - const v = f.children[0], L = T(f); - m = v.getBoundingClientRect(), L.attr("width", m.width), L.attr("height", m.height); - } - b.attr("transform", $(m, i)), u.node().appendChild(f), M[t.id] || (M[t.id] = {}), M[t.id].endRight = u, et(o, t.endLabelRight); - } - return n; -}, "insertEdgeLabel"); -function et(e, t) { - F(R()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px"); -} -d(et, "setTerminalWidth"); -var dr = /* @__PURE__ */ d((e, t) => { - S.debug("Moving label abc88 ", e.id, e.label, mt[e.id], t); - let a = t.updatedPath ? t.updatedPath : t.originalPath; - const i = R(), { subGraphTitleTotalMargin: l } = ye(i); - if (e.label) { - const s = mt[e.id]; - let r = e.x, n = e.y; - if (a) { - const c = tt.calcLabelPosition(a); - S.debug( - "Moving label " + e.label + " from (", - r, - ",", - n, - ") to (", - c.x, - ",", - c.y, - ") abc88" - ), t.updatedPath && (r = c.x, n = c.y); - } - s.attr("transform", `translate(${r}, ${n + l / 2})`); - } - if (e.startLabelLeft) { - const s = M[e.id].startLeft; - let r = e.x, n = e.y; - if (a) { - const c = tt.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", a); - r = c.x, n = c.y; - } - s.attr("transform", `translate(${r}, ${n})`); - } - if (e.startLabelRight) { - const s = M[e.id].startRight; - let r = e.x, n = e.y; - if (a) { - const c = tt.calcTerminalLabelPosition( - e.arrowTypeStart ? 10 : 0, - "start_right", - a - ); - r = c.x, n = c.y; - } - s.attr("transform", `translate(${r}, ${n})`); - } - if (e.endLabelLeft) { - const s = M[e.id].endLeft; - let r = e.x, n = e.y; - if (a) { - const c = tt.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", a); - r = c.x, n = c.y; - } - s.attr("transform", `translate(${r}, ${n})`); - } - if (e.endLabelRight) { - const s = M[e.id].endRight; - let r = e.x, n = e.y; - if (a) { - const c = tt.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", a); - r = c.x, n = c.y; - } - s.attr("transform", `translate(${r}, ${n})`); - } -}, "positionEdgeLabel"), gr = /* @__PURE__ */ d((e, t) => { - const a = e.x, i = e.y, l = Math.abs(t.x - a), s = Math.abs(t.y - i), r = e.width / 2, n = e.height / 2; - return l >= r || s >= n; -}, "outsideNode"), ur = /* @__PURE__ */ d((e, t, a) => { - S.debug(`intersection calc abc89: - outsidePoint: ${JSON.stringify(t)} - insidePoint : ${JSON.stringify(a)} - node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`); - const i = e.x, l = e.y, s = Math.abs(i - a.x), r = e.width / 2; - let n = a.x < t.x ? r - s : r + s; - const c = e.height / 2, x = Math.abs(t.y - a.y), o = Math.abs(t.x - a.x); - if (Math.abs(l - t.y) * r > Math.abs(i - t.x) * c) { - let u = a.y < t.y ? t.y - c - l : l - c - t.y; - n = o * u / x; - const b = { - x: a.x < t.x ? a.x + n : a.x - o + n, - y: a.y < t.y ? a.y + x - u : a.y - x + u - }; - return n === 0 && (b.x = t.x, b.y = t.y), o === 0 && (b.x = t.x), x === 0 && (b.y = t.y), S.debug(`abc89 topp/bott calc, Q ${x}, q ${u}, R ${o}, r ${n}`, b), b; - } else { - a.x < t.x ? n = t.x - r - i : n = i - r - t.x; - let u = x * n / o, b = a.x < t.x ? a.x + o - n : a.x - o + n, f = a.y < t.y ? a.y + u : a.y - u; - return S.debug(`sides calc abc89, Q ${x}, q ${u}, R ${o}, r ${n}`, { _x: b, _y: f }), n === 0 && (b = t.x, f = t.y), o === 0 && (b = t.x), x === 0 && (f = t.y), { x: b, y: f }; - } -}, "intersection"), Mt = /* @__PURE__ */ d((e, t) => { - S.debug("abc88 cutPathAtIntersect", e, t); - let a = [], i = e[0], l = !1; - return e.forEach((s) => { - if (!gr(t, s) && !l) { - const r = ur(t, i, s); - let n = !1; - a.forEach((c) => { - n = n || c.x === r.x && c.y === r.y; - }), a.some((c) => c.x === r.x && c.y === r.y) || a.push(r), l = !0; - } else - i = s, l || a.push(s); - }), a; -}, "cutPathAtIntersect"), pr = /* @__PURE__ */ d(function(e, t, a, i, l, s, r) { - let n = a.points; - S.debug("abc88 InsertEdge: edge=", a, "e=", t); - let c = !1; - const x = s.node(t.v); - var o = s.node(t.w); - o?.intersect && x?.intersect && (n = n.slice(1, a.points.length - 1), n.unshift(x.intersect(n[0])), n.push(o.intersect(n[n.length - 1]))), a.toCluster && (S.debug("to cluster abc88", i[a.toCluster]), n = Mt(a.points, i[a.toCluster].node), c = !0), a.fromCluster && (S.debug("from cluster abc88", i[a.fromCluster]), n = Mt(n.reverse(), i[a.fromCluster].node).reverse(), c = !0); - const u = n.filter((w) => !Number.isNaN(w.y)); - let b = fe; - a.curve && (l === "graph" || l === "flowchart") && (b = a.curve); - const { x: f, y: m } = ue(a), v = pe().x(f).y(m).curve(b); - let L; - switch (a.thickness) { - case "normal": - L = "edge-thickness-normal"; - break; - case "thick": - L = "edge-thickness-thick"; - break; - case "invisible": - L = "edge-thickness-thick"; - break; - default: - L = ""; - } - switch (a.pattern) { - case "solid": - L += " edge-pattern-solid"; - break; - case "dotted": - L += " edge-pattern-dotted"; - break; - case "dashed": - L += " edge-pattern-dashed"; - break; - } - const _ = e.append("path").attr("d", v(u)).attr("id", a.id).attr("class", " " + L + (a.classes ? " " + a.classes : "")).attr("style", a.style); - let I = ""; - (R().flowchart.arrowMarkerAbsolute || R().state.arrowMarkerAbsolute) && (I = xe(!0)), cr(_, a, I, r, l); - let D = {}; - return c && (D.updatedPath = n), D.originalPath = a.points, D; -}, "insertEdge"), fr = /* @__PURE__ */ d((e) => { - const t = /* @__PURE__ */ new Set(); - for (const a of e) - switch (a) { - case "x": - t.add("right"), t.add("left"); - break; - case "y": - t.add("up"), t.add("down"); - break; - default: - t.add(a); - break; - } - return t; -}, "expandAndDeduplicateDirections"), xr = /* @__PURE__ */ d((e, t, a) => { - const i = fr(e), l = 2, s = t.height + 2 * a.padding, r = s / l, n = t.width + 2 * r + a.padding, c = a.padding / 2; - return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [ - // Bottom - { x: 0, y: 0 }, - { x: r, y: 0 }, - { x: n / 2, y: 2 * c }, - { x: n - r, y: 0 }, - { x: n, y: 0 }, - // Right - { x: n, y: -s / 3 }, - { x: n + 2 * c, y: -s / 2 }, - { x: n, y: -2 * s / 3 }, - { x: n, y: -s }, - // Top - { x: n - r, y: -s }, - { x: n / 2, y: -s - 2 * c }, - { x: r, y: -s }, - // Left - { x: 0, y: -s }, - { x: 0, y: -2 * s / 3 }, - { x: -2 * c, y: -s / 2 }, - { x: 0, y: -s / 3 } - ] : i.has("right") && i.has("left") && i.has("up") ? [ - { x: r, y: 0 }, - { x: n - r, y: 0 }, - { x: n, y: -s / 2 }, - { x: n - r, y: -s }, - { x: r, y: -s }, - { x: 0, y: -s / 2 } - ] : i.has("right") && i.has("left") && i.has("down") ? [ - { x: 0, y: 0 }, - { x: r, y: -s }, - { x: n - r, y: -s }, - { x: n, y: 0 } - ] : i.has("right") && i.has("up") && i.has("down") ? [ - { x: 0, y: 0 }, - { x: n, y: -r }, - { x: n, y: -s + r }, - { x: 0, y: -s } - ] : i.has("left") && i.has("up") && i.has("down") ? [ - { x: n, y: 0 }, - { x: 0, y: -r }, - { x: 0, y: -s + r }, - { x: n, y: -s } - ] : i.has("right") && i.has("left") ? [ - { x: r, y: 0 }, - { x: r, y: -c }, - { x: n - r, y: -c }, - { x: n - r, y: 0 }, - { x: n, y: -s / 2 }, - { x: n - r, y: -s }, - { x: n - r, y: -s + c }, - { x: r, y: -s + c }, - { x: r, y: -s }, - { x: 0, y: -s / 2 } - ] : i.has("up") && i.has("down") ? [ - // Bottom center - { x: n / 2, y: 0 }, - // Left pont of bottom arrow - { x: 0, y: -c }, - { x: r, y: -c }, - // Left top over vertical section - { x: r, y: -s + c }, - { x: 0, y: -s + c }, - // Top of arrow - { x: n / 2, y: -s }, - { x: n, y: -s + c }, - // Top of right vertical bar - { x: n - r, y: -s + c }, - { x: n - r, y: -c }, - { x: n, y: -c } - ] : i.has("right") && i.has("up") ? [ - { x: 0, y: 0 }, - { x: n, y: -r }, - { x: 0, y: -s } - ] : i.has("right") && i.has("down") ? [ - { x: 0, y: 0 }, - { x: n, y: 0 }, - { x: 0, y: -s } - ] : i.has("left") && i.has("up") ? [ - { x: n, y: 0 }, - { x: 0, y: -r }, - { x: n, y: -s } - ] : i.has("left") && i.has("down") ? [ - { x: n, y: 0 }, - { x: 0, y: 0 }, - { x: n, y: -s } - ] : i.has("right") ? [ - { x: r, y: -c }, - { x: r, y: -c }, - { x: n - r, y: -c }, - { x: n - r, y: 0 }, - { x: n, y: -s / 2 }, - { x: n - r, y: -s }, - { x: n - r, y: -s + c }, - // top left corner of arrow - { x: r, y: -s + c }, - { x: r, y: -s + c } - ] : i.has("left") ? [ - { x: r, y: 0 }, - { x: r, y: -c }, - // Two points, the right corners - { x: n - r, y: -c }, - { x: n - r, y: -s + c }, - { x: r, y: -s + c }, - { x: r, y: -s }, - { x: 0, y: -s / 2 } - ] : i.has("up") ? [ - // Bottom center - { x: r, y: -c }, - // Left top over vertical section - { x: r, y: -s + c }, - { x: 0, y: -s + c }, - // Top of arrow - { x: n / 2, y: -s }, - { x: n, y: -s + c }, - // Top of right vertical bar - { x: n - r, y: -s + c }, - { x: n - r, y: -c } - ] : i.has("down") ? [ - // Bottom center - { x: n / 2, y: 0 }, - // Left pont of bottom arrow - { x: 0, y: -c }, - { x: r, y: -c }, - // Left top over vertical section - { x: r, y: -s + c }, - { x: n - r, y: -s + c }, - { x: n - r, y: -c }, - { x: n, y: -c } - ] : [{ x: 0, y: 0 }]; -}, "getArrowPoints"); -function Gt(e, t) { - return e.intersect(t); -} -d(Gt, "intersectNode"); -var yr = Gt; -function Zt(e, t, a, i) { - var l = e.x, s = e.y, r = l - i.x, n = s - i.y, c = Math.sqrt(t * t * n * n + a * a * r * r), x = Math.abs(t * a * r / c); - i.x < l && (x = -x); - var o = Math.abs(t * a * n / c); - return i.y < s && (o = -o), { x: l + x, y: s + o }; -} -d(Zt, "intersectEllipse"); -var qt = Zt; -function Jt(e, t, a) { - return qt(e, t, t, a); -} -d(Jt, "intersectCircle"); -var br = Jt; -function Qt(e, t, a, i) { - var l, s, r, n, c, x, o, u, b, f, m, v, L, _, I; - if (l = t.y - e.y, r = e.x - t.x, c = t.x * e.y - e.x * t.y, b = l * a.x + r * a.y + c, f = l * i.x + r * i.y + c, !(b !== 0 && f !== 0 && Lt(b, f)) && (s = i.y - a.y, n = a.x - i.x, x = i.x * a.y - a.x * i.y, o = s * e.x + n * e.y + x, u = s * t.x + n * t.y + x, !(o !== 0 && u !== 0 && Lt(o, u)) && (m = l * n - s * r, m !== 0))) - return v = Math.abs(m / 2), L = r * x - n * c, _ = L < 0 ? (L - v) / m : (L + v) / m, L = s * c - l * x, I = L < 0 ? (L - v) / m : (L + v) / m, { x: _, y: I }; -} -d(Qt, "intersectLine"); -function Lt(e, t) { - return e * t > 0; -} -d(Lt, "sameSign"); -var wr = Qt, mr = $t; -function $t(e, t, a) { - var i = e.x, l = e.y, s = [], r = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY; - typeof t.forEach == "function" ? t.forEach(function(m) { - r = Math.min(r, m.x), n = Math.min(n, m.y); - }) : (r = Math.min(r, t.x), n = Math.min(n, t.y)); - for (var c = i - e.width / 2 - r, x = l - e.height / 2 - n, o = 0; o < t.length; o++) { - var u = t[o], b = t[o < t.length - 1 ? o + 1 : 0], f = wr( - e, - a, - { x: c + u.x, y: x + u.y }, - { x: c + b.x, y: x + b.y } - ); - f && s.push(f); - } - return s.length ? (s.length > 1 && s.sort(function(m, v) { - var L = m.x - a.x, _ = m.y - a.y, I = Math.sqrt(L * L + _ * _), D = v.x - a.x, w = v.y - a.y, g = Math.sqrt(D * D + w * w); - return I < g ? -1 : I === g ? 0 : 1; - }), s[0]) : e; -} -d($t, "intersectPolygon"); -var Lr = /* @__PURE__ */ d((e, t) => { - var a = e.x, i = e.y, l = t.x - a, s = t.y - i, r = e.width / 2, n = e.height / 2, c, x; - return Math.abs(s) * r > Math.abs(l) * n ? (s < 0 && (n = -n), c = s === 0 ? 0 : n * l / s, x = n) : (l < 0 && (r = -r), c = r, x = l === 0 ? 0 : r * s / l), { x: a + c, y: i + x }; -}, "intersectRect"), Sr = Lr, B = { - node: yr, - circle: br, - ellipse: qt, - polygon: mr, - rect: Sr -}, A = /* @__PURE__ */ d(async (e, t, a, i) => { - const l = R(); - let s; - const r = t.useHtmlLabels || F(l); - a ? s = a : s = "node default"; - const n = e.insert("g").attr("class", s).attr("id", t.domId || t.id), c = n.insert("g").attr("class", "label").attr("style", t.labelStyle); - let x; - t.labelText === void 0 ? x = "" : x = typeof t.labelText == "string" ? t.labelText : t.labelText[0]; - let o; - t.labelType === "markdown" ? o = St( - c, - It(Ct(x), l), - { - useHtmlLabels: r, - width: t.width || l.flowchart.wrappingWidth, - classes: "markdown-node-label" - }, - l - ) : o = await U( - c, - It(Ct(x), l), - t.labelStyle, - !1, - i - ); - let u = o.getBBox(); - const b = t.padding / 2; - if (F(l)) { - const f = o.children[0], m = T(o); - await me(f, x), u = f.getBoundingClientRect(), m.attr("width", u.width), m.attr("height", u.height); - } - return r ? c.attr("transform", "translate(" + -u.width / 2 + ", " + -u.height / 2 + ")") : c.attr("transform", "translate(0, " + -u.height / 2 + ")"), t.centerLabel && c.attr("transform", "translate(" + -u.width / 2 + ", " + -u.height / 2 + ")"), c.insert("rect", ":first-child"), { shapeSvg: n, bbox: u, halfPadding: b, label: c }; -}, "labelHelper"), N = /* @__PURE__ */ d((e, t) => { - const a = t.node().getBBox(); - e.width = a.width, e.height = a.height; -}, "updateNodeBounds"); -function j(e, t, a, i) { - return e.insert("polygon", ":first-child").attr( - "points", - i.map(function(l) { - return l.x + "," + l.y; - }).join(" ") - ).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + a / 2 + ")"); -} -d(j, "insertPolygonShape"); -var kr = /* @__PURE__ */ d(async (e, t) => { - t.useHtmlLabels || F(R()) || (t.centerLabel = !0); - const { shapeSvg: i, bbox: l, halfPadding: s } = await A( - e, - t, - "node " + t.classes, - !0 - ); - S.info("Classes = ", t.classes); - const r = i.insert("rect", ":first-child"); - return r.attr("rx", t.rx).attr("ry", t.ry).attr("x", -l.width / 2 - s).attr("y", -l.height / 2 - s).attr("width", l.width + t.padding).attr("height", l.height + t.padding), N(t, r), t.intersect = function(n) { - return B.rect(t, n); - }, i; -}, "note"), vr = kr, Ft = /* @__PURE__ */ d((e) => e ? " " + e : "", "formatClass"), H = /* @__PURE__ */ d((e, t) => `${t || "node default"}${Ft(e.classes)} ${Ft( - e.class -)}`, "getClassesFromNode"), Pt = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i } = await A( - e, - t, - H(t, void 0), - !0 - ), l = i.width + t.padding, s = i.height + t.padding, r = l + s, n = [ - { x: r / 2, y: 0 }, - { x: r, y: -r / 2 }, - { x: r / 2, y: -r }, - { x: 0, y: -r / 2 } - ]; - S.info("Question main (Circle)"); - const c = j(a, r, r, n); - return c.attr("style", t.style), N(t, c), t.intersect = function(x) { - return S.warn("Intersect called"), B.polygon(t, n, x); - }, a; -}, "question"), Er = /* @__PURE__ */ d((e, t) => { - const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 28, l = [ - { x: 0, y: i / 2 }, - { x: i / 2, y: 0 }, - { x: 0, y: -i / 2 }, - { x: -i / 2, y: 0 } - ]; - return a.insert("polygon", ":first-child").attr( - "points", - l.map(function(r) { - return r.x + "," + r.y; - }).join(" ") - ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(r) { - return B.circle(t, 14, r); - }, a; -}, "choice"), _r = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i } = await A( - e, - t, - H(t, void 0), - !0 - ), l = 4, s = i.height + t.padding, r = s / l, n = i.width + 2 * r + t.padding, c = [ - { x: r, y: 0 }, - { x: n - r, y: 0 }, - { x: n, y: -s / 2 }, - { x: n - r, y: -s }, - { x: r, y: -s }, - { x: 0, y: -s / 2 } - ], x = j(a, n, s, c); - return x.attr("style", t.style), N(t, x), t.intersect = function(o) { - return B.polygon(t, c, o); - }, a; -}, "hexagon"), Dr = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i } = await A(e, t, void 0, !0), l = 2, s = i.height + 2 * t.padding, r = s / l, n = i.width + 2 * r + t.padding, c = xr(t.directions, i, t), x = j(a, n, s, c); - return x.attr("style", t.style), N(t, x), t.intersect = function(o) { - return B.polygon(t, c, o); - }, a; -}, "block_arrow"), Tr = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i } = await A( - e, - t, - H(t, void 0), - !0 - ), l = i.width + t.padding, s = i.height + t.padding, r = [ - { x: -s / 2, y: 0 }, - { x: l, y: 0 }, - { x: l, y: -s }, - { x: -s / 2, y: -s }, - { x: 0, y: -s / 2 } - ]; - return j(a, l, s, r).attr("style", t.style), t.width = l + s, t.height = s, t.intersect = function(c) { - return B.polygon(t, r, c); - }, a; -}, "rect_left_inv_arrow"), Br = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i } = await A(e, t, H(t), !0), l = i.width + t.padding, s = i.height + t.padding, r = [ - { x: -2 * s / 6, y: 0 }, - { x: l - s / 6, y: 0 }, - { x: l + 2 * s / 6, y: -s }, - { x: s / 6, y: -s } - ], n = j(a, l, s, r); - return n.attr("style", t.style), N(t, n), t.intersect = function(c) { - return B.polygon(t, r, c); - }, a; -}, "lean_right"), Nr = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i } = await A( - e, - t, - H(t, void 0), - !0 - ), l = i.width + t.padding, s = i.height + t.padding, r = [ - { x: 2 * s / 6, y: 0 }, - { x: l + s / 6, y: 0 }, - { x: l - 2 * s / 6, y: -s }, - { x: -s / 6, y: -s } - ], n = j(a, l, s, r); - return n.attr("style", t.style), N(t, n), t.intersect = function(c) { - return B.polygon(t, r, c); - }, a; -}, "lean_left"), Ir = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i } = await A( - e, - t, - H(t, void 0), - !0 - ), l = i.width + t.padding, s = i.height + t.padding, r = [ - { x: -2 * s / 6, y: 0 }, - { x: l + 2 * s / 6, y: 0 }, - { x: l - s / 6, y: -s }, - { x: s / 6, y: -s } - ], n = j(a, l, s, r); - return n.attr("style", t.style), N(t, n), t.intersect = function(c) { - return B.polygon(t, r, c); - }, a; -}, "trapezoid"), Cr = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i } = await A( - e, - t, - H(t, void 0), - !0 - ), l = i.width + t.padding, s = i.height + t.padding, r = [ - { x: s / 6, y: 0 }, - { x: l - s / 6, y: 0 }, - { x: l + 2 * s / 6, y: -s }, - { x: -2 * s / 6, y: -s } - ], n = j(a, l, s, r); - return n.attr("style", t.style), N(t, n), t.intersect = function(c) { - return B.polygon(t, r, c); - }, a; -}, "inv_trapezoid"), Or = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i } = await A( - e, - t, - H(t, void 0), - !0 - ), l = i.width + t.padding, s = i.height + t.padding, r = [ - { x: 0, y: 0 }, - { x: l + s / 2, y: 0 }, - { x: l, y: -s / 2 }, - { x: l + s / 2, y: -s }, - { x: 0, y: -s } - ], n = j(a, l, s, r); - return n.attr("style", t.style), N(t, n), t.intersect = function(c) { - return B.polygon(t, r, c); - }, a; -}, "rect_right_inv_arrow"), Rr = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i } = await A( - e, - t, - H(t, void 0), - !0 - ), l = i.width + t.padding, s = l / 2, r = s / (2.5 + l / 50), n = i.height + r + t.padding, c = "M 0," + r + " a " + s + "," + r + " 0,0,0 " + l + " 0 a " + s + "," + r + " 0,0,0 " + -l + " 0 l 0," + n + " a " + s + "," + r + " 0,0,0 " + l + " 0 l 0," + -n, x = a.attr("label-offset-y", r).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -l / 2 + "," + -(n / 2 + r) + ")"); - return N(t, x), t.intersect = function(o) { - const u = B.rect(t, o), b = u.x - t.x; - if (s != 0 && (Math.abs(b) < t.width / 2 || Math.abs(b) == t.width / 2 && Math.abs(u.y - t.y) > t.height / 2 - r)) { - let f = r * r * (1 - b * b / (s * s)); - f != 0 && (f = Math.sqrt(f)), f = r - f, o.y - t.y > 0 && (f = -f), u.y += f; - } - return u; - }, a; -}, "cylinder"), zr = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i, halfPadding: l } = await A( - e, - t, - "node " + t.classes + " " + t.class, - !0 - ), s = a.insert("rect", ":first-child"), r = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -r / 2 : -i.width / 2 - l, x = t.positioned ? -n / 2 : -i.height / 2 - l; - if (s.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", c).attr("y", x).attr("width", r).attr("height", n), t.props) { - const o = new Set(Object.keys(t.props)); - t.props.borders && (ht(s, t.props.borders, r, n), o.delete("borders")), o.forEach((u) => { - S.warn(`Unknown node property ${u}`); - }); - } - return N(t, s), t.intersect = function(o) { - return B.rect(t, o); - }, a; -}, "rect"), Ar = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i, halfPadding: l } = await A( - e, - t, - "node " + t.classes, - !0 - ), s = a.insert("rect", ":first-child"), r = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -r / 2 : -i.width / 2 - l, x = t.positioned ? -n / 2 : -i.height / 2 - l; - if (s.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", c).attr("y", x).attr("width", r).attr("height", n), t.props) { - const o = new Set(Object.keys(t.props)); - t.props.borders && (ht(s, t.props.borders, r, n), o.delete("borders")), o.forEach((u) => { - S.warn(`Unknown node property ${u}`); - }); - } - return N(t, s), t.intersect = function(o) { - return B.rect(t, o); - }, a; -}, "composite"), Mr = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a } = await A(e, t, "label", !0); - S.trace("Classes = ", t.class); - const i = a.insert("rect", ":first-child"), l = 0, s = 0; - if (i.attr("width", l).attr("height", s), a.attr("class", "label edgeLabel"), t.props) { - const r = new Set(Object.keys(t.props)); - t.props.borders && (ht(i, t.props.borders, l, s), r.delete("borders")), r.forEach((n) => { - S.warn(`Unknown node property ${n}`); - }); - } - return N(t, i), t.intersect = function(r) { - return B.rect(t, r); - }, a; -}, "labelRect"); -function ht(e, t, a, i) { - const l = [], s = /* @__PURE__ */ d((n) => { - l.push(n, 0); - }, "addBorder"), r = /* @__PURE__ */ d((n) => { - l.push(0, n); - }, "skipBorder"); - t.includes("t") ? (S.debug("add top border"), s(a)) : r(a), t.includes("r") ? (S.debug("add right border"), s(i)) : r(i), t.includes("b") ? (S.debug("add bottom border"), s(a)) : r(a), t.includes("l") ? (S.debug("add left border"), s(i)) : r(i), e.attr("stroke-dasharray", l.join(" ")); -} -d(ht, "applyNodePropertyBorders"); -var Fr = /* @__PURE__ */ d(async (e, t) => { - let a; - t.classes ? a = "node " + t.classes : a = "node default"; - const i = e.insert("g").attr("class", a).attr("id", t.domId || t.id), l = i.insert("rect", ":first-child"), s = i.insert("line"), r = i.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText; - let c = ""; - typeof n == "object" ? c = n[0] : c = n, S.info("Label text abc79", c, n, typeof n == "object"); - const x = await U(r, c, t.labelStyle, !0, !0); - let o = { width: 0, height: 0 }; - if (F(R())) { - const v = x.children[0], L = T(x); - o = v.getBoundingClientRect(), L.attr("width", o.width), L.attr("height", o.height); - } - S.info("Text 2", n); - const u = n.slice(1, n.length); - let b = x.getBBox(); - const f = await U( - r, - u.join ? u.join("<br/>") : u, - t.labelStyle, - !0, - !0 - ); - if (F(R())) { - const v = f.children[0], L = T(f); - o = v.getBoundingClientRect(), L.attr("width", o.width), L.attr("height", o.height); - } - const m = t.padding / 2; - return T(f).attr( - "transform", - "translate( " + // (titleBox.width - bbox.width) / 2 + - (o.width > b.width ? 0 : (b.width - o.width) / 2) + ", " + (b.height + m + 5) + ")" - ), T(x).attr( - "transform", - "translate( " + // (titleBox.width - bbox.width) / 2 + - (o.width < b.width ? 0 : -(b.width - o.width) / 2) + ", 0)" - ), o = r.node().getBBox(), r.attr( - "transform", - "translate(" + -o.width / 2 + ", " + (-o.height / 2 - m + 3) + ")" - ), l.attr("class", "outer title-state").attr("x", -o.width / 2 - m).attr("y", -o.height / 2 - m).attr("width", o.width + t.padding).attr("height", o.height + t.padding), s.attr("class", "divider").attr("x1", -o.width / 2 - m).attr("x2", o.width / 2 + m).attr("y1", -o.height / 2 - m + b.height + m).attr("y2", -o.height / 2 - m + b.height + m), N(t, l), t.intersect = function(v) { - return B.rect(t, v); - }, i; -}, "rectWithTitle"), Pr = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i } = await A( - e, - t, - H(t, void 0), - !0 - ), l = i.height + t.padding, s = i.width + l / 4 + t.padding, r = a.insert("rect", ":first-child").attr("style", t.style).attr("rx", l / 2).attr("ry", l / 2).attr("x", -s / 2).attr("y", -l / 2).attr("width", s).attr("height", l); - return N(t, r), t.intersect = function(n) { - return B.rect(t, n); - }, a; -}, "stadium"), Wr = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i, halfPadding: l } = await A( - e, - t, - H(t, void 0), - !0 - ), s = a.insert("circle", ":first-child"); - return s.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), S.info("Circle main"), N(t, s), t.intersect = function(r) { - return S.info("Circle intersect", t, i.width / 2 + l, r), B.circle(t, i.width / 2 + l, r); - }, a; -}, "circle"), Yr = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i, halfPadding: l } = await A( - e, - t, - H(t, void 0), - !0 - ), s = 5, r = a.insert("g", ":first-child"), n = r.insert("circle"), c = r.insert("circle"); - return r.attr("class", t.class), n.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l + s).attr("width", i.width + t.padding + s * 2).attr("height", i.height + t.padding + s * 2), c.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), S.info("DoubleCircle main"), N(t, n), t.intersect = function(x) { - return S.info("DoubleCircle intersect", t, i.width / 2 + l + s, x), B.circle(t, i.width / 2 + l + s, x); - }, a; -}, "doublecircle"), Hr = /* @__PURE__ */ d(async (e, t) => { - const { shapeSvg: a, bbox: i } = await A( - e, - t, - H(t, void 0), - !0 - ), l = i.width + t.padding, s = i.height + t.padding, r = [ - { x: 0, y: 0 }, - { x: l, y: 0 }, - { x: l, y: -s }, - { x: 0, y: -s }, - { x: 0, y: 0 }, - { x: -8, y: 0 }, - { x: l + 8, y: 0 }, - { x: l + 8, y: -s }, - { x: -8, y: -s }, - { x: -8, y: 0 } - ], n = j(a, l, s, r); - return n.attr("style", t.style), N(t, n), t.intersect = function(c) { - return B.polygon(t, r, c); - }, a; -}, "subroutine"), Kr = /* @__PURE__ */ d((e, t) => { - const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child"); - return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), N(t, i), t.intersect = function(l) { - return B.circle(t, 7, l); - }, a; -}, "start"), Wt = /* @__PURE__ */ d((e, t, a) => { - const i = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id); - let l = 70, s = 10; - a === "LR" && (l = 10, s = 70); - const r = i.append("rect").attr("x", -1 * l / 2).attr("y", -1 * s / 2).attr("width", l).attr("height", s).attr("class", "fork-join"); - return N(t, r), t.height = t.height + t.padding / 2, t.width = t.width + t.padding / 2, t.intersect = function(n) { - return B.rect(t, n); - }, i; -}, "forkJoin"), Ur = /* @__PURE__ */ d((e, t) => { - const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child"), l = a.insert("circle", ":first-child"); - return l.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), i.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), N(t, l), t.intersect = function(s) { - return B.circle(t, 7, s); - }, a; -}, "end"), Xr = /* @__PURE__ */ d(async (e, t) => { - const a = t.padding / 2, i = 4, l = 8; - let s; - t.classes ? s = "node " + t.classes : s = "node default"; - const r = e.insert("g").attr("class", s).attr("id", t.domId || t.id), n = r.insert("rect", ":first-child"), c = r.insert("line"), x = r.insert("line"); - let o = 0, u = i; - const b = r.insert("g").attr("class", "label"); - let f = 0; - const m = t.classData.annotations?.[0], v = t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", L = await U( - b, - v, - t.labelStyle, - !0, - !0 - ); - let _ = L.getBBox(); - if (F(R())) { - const E = L.children[0], h = T(L); - _ = E.getBoundingClientRect(), h.attr("width", _.width), h.attr("height", _.height); - } - t.classData.annotations[0] && (u += _.height + i, o += _.width); - let I = t.classData.label; - t.classData.type !== void 0 && t.classData.type !== "" && (F(R()) ? I += "<" + t.classData.type + ">" : I += "<" + t.classData.type + ">"); - const D = await U( - b, - I, - t.labelStyle, - !0, - !0 - ); - T(D).attr("class", "classTitle"); - let w = D.getBBox(); - if (F(R())) { - const E = D.children[0], h = T(D); - w = E.getBoundingClientRect(), h.attr("width", w.width), h.attr("height", w.height); - } - u += w.height + i, w.width > o && (o = w.width); - const g = []; - t.classData.members.forEach(async (E) => { - const h = E.getDisplayDetails(); - let W = h.displayText; - F(R()) && (W = W.replace(/</g, "<").replace(/>/g, ">")); - const p = await U( - b, - W, - h.cssStyle ? h.cssStyle : t.labelStyle, - !0, - !0 - ); - let O = p.getBBox(); - if (F(R())) { - const Z = p.children[0], V = T(p); - O = Z.getBoundingClientRect(), V.attr("width", O.width), V.attr("height", O.height); - } - O.width > o && (o = O.width), u += O.height + i, g.push(p); - }), u += l; - const y = []; - if (t.classData.methods.forEach(async (E) => { - const h = E.getDisplayDetails(); - let W = h.displayText; - F(R()) && (W = W.replace(/</g, "<").replace(/>/g, ">")); - const p = await U( - b, - W, - h.cssStyle ? h.cssStyle : t.labelStyle, - !0, - !0 - ); - let O = p.getBBox(); - if (F(R())) { - const Z = p.children[0], V = T(p); - O = Z.getBoundingClientRect(), V.attr("width", O.width), V.attr("height", O.height); - } - O.width > o && (o = O.width), u += O.height + i, y.push(p); - }), u += l, m) { - let E = (o - _.width) / 2; - T(L).attr( - "transform", - "translate( " + (-1 * o / 2 + E) + ", " + -1 * u / 2 + ")" - ), f = _.height + i; - } - let k = (o - w.width) / 2; - return T(D).attr( - "transform", - "translate( " + (-1 * o / 2 + k) + ", " + (-1 * u / 2 + f) + ")" - ), f += w.height + i, c.attr("class", "divider").attr("x1", -o / 2 - a).attr("x2", o / 2 + a).attr("y1", -u / 2 - a + l + f).attr("y2", -u / 2 - a + l + f), f += l, g.forEach((E) => { - T(E).attr( - "transform", - "translate( " + -o / 2 + ", " + (-1 * u / 2 + f + l / 2) + ")" - ); - const h = E?.getBBox(); - f += (h?.height ?? 0) + i; - }), f += l, x.attr("class", "divider").attr("x1", -o / 2 - a).attr("x2", o / 2 + a).attr("y1", -u / 2 - a + l + f).attr("y2", -u / 2 - a + l + f), f += l, y.forEach((E) => { - T(E).attr( - "transform", - "translate( " + -o / 2 + ", " + (-1 * u / 2 + f) + ")" - ); - const h = E?.getBBox(); - f += (h?.height ?? 0) + i; - }), n.attr("style", t.style).attr("class", "outer title-state").attr("x", -o / 2 - a).attr("y", -(u / 2) - a).attr("width", o + t.padding).attr("height", u + t.padding), N(t, n), t.intersect = function(E) { - return B.rect(t, E); - }, r; -}, "class_box"), Yt = { - rhombus: Pt, - composite: Ar, - question: Pt, - rect: zr, - labelRect: Mr, - rectWithTitle: Fr, - choice: Er, - circle: Wr, - doublecircle: Yr, - stadium: Pr, - hexagon: _r, - block_arrow: Dr, - rect_left_inv_arrow: Tr, - lean_right: Br, - lean_left: Nr, - trapezoid: Ir, - inv_trapezoid: Cr, - rect_right_inv_arrow: Or, - cylinder: Rr, - start: Kr, - end: Ur, - note: vr, - subroutine: Hr, - fork: Wt, - join: Wt, - class_box: Xr -}, lt = {}, te = /* @__PURE__ */ d(async (e, t, a) => { - let i, l; - if (t.link) { - let s; - R().securityLevel === "sandbox" ? s = "_top" : t.linkTarget && (s = t.linkTarget || "_blank"), i = e.insert("svg:a").attr("xlink:href", t.link).attr("target", s), l = await Yt[t.shape](i, t, a); - } else - l = await Yt[t.shape](e, t, a), i = l; - return t.tooltip && l.attr("title", t.tooltip), t.class && l.attr("class", "node default " + t.class), lt[t.id] = i, t.haveCallback && lt[t.id].attr("class", lt[t.id].attr("class") + " clickable"), i; -}, "insertNode"), jr = /* @__PURE__ */ d((e) => { - const t = lt[e.id]; - S.trace( - "Transforming node", - e.diff, - e, - "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")" - ); - const a = 8, i = e.diff || 0; - return e.clusterNode ? t.attr( - "transform", - "translate(" + (e.x + i - e.width / 2) + ", " + (e.y - e.height / 2 - a) + ")" - ) : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), i; -}, "positionNode"); -function Tt(e, t, a = !1) { - const i = e; - let l = "default"; - (i?.classes?.length || 0) > 0 && (l = (i?.classes ?? []).join(" ")), l = l + " flowchart-label"; - let s = 0, r = "", n; - switch (i.type) { - case "round": - s = 5, r = "rect"; - break; - case "composite": - s = 0, r = "composite", n = 0; - break; - case "square": - r = "rect"; - break; - case "diamond": - r = "question"; - break; - case "hexagon": - r = "hexagon"; - break; - case "block_arrow": - r = "block_arrow"; - break; - case "odd": - r = "rect_left_inv_arrow"; - break; - case "lean_right": - r = "lean_right"; - break; - case "lean_left": - r = "lean_left"; - break; - case "trapezoid": - r = "trapezoid"; - break; - case "inv_trapezoid": - r = "inv_trapezoid"; - break; - case "rect_left_inv_arrow": - r = "rect_left_inv_arrow"; - break; - case "circle": - r = "circle"; - break; - case "ellipse": - r = "ellipse"; - break; - case "stadium": - r = "stadium"; - break; - case "subroutine": - r = "subroutine"; - break; - case "cylinder": - r = "cylinder"; - break; - case "group": - r = "rect"; - break; - case "doublecircle": - r = "doublecircle"; - break; - default: - r = "rect"; - } - const c = we(i?.styles ?? []), x = i.label, o = i.size ?? { width: 0, height: 0, x: 0, y: 0 }, u = t.getDiagramId(); - return { - labelStyle: c.labelStyle, - shape: r, - labelText: x, - rx: s, - ry: s, - class: l, - style: c.style, - id: i.id, - domId: u ? `${u}-${i.id}` : i.id, - directions: i.directions, - width: o.width, - height: o.height, - x: o.x, - y: o.y, - positioned: a, - intersect: void 0, - type: i.type, - padding: n ?? at()?.block?.padding ?? 0 - }; -} -d(Tt, "getNodeFromBlock"); -async function ee(e, t, a) { - const i = Tt(t, a, !1); - if (i.type === "group") - return; - const l = at(), s = await te(e, i, { config: l }), r = s.node().getBBox(), n = a.getBlock(i.id); - n.size = { width: r.width, height: r.height, x: 0, y: 0, node: s }, a.setBlock(n), s.remove(); -} -d(ee, "calculateBlockSize"); -async function re(e, t, a) { - const i = Tt(t, a, !0); - if (a.getBlock(i.id).type !== "space") { - const s = at(); - await te(e, i, { config: s }), t.intersect = i?.intersect, jr(i); - } -} -d(re, "insertBlockPositioned"); -async function dt(e, t, a, i) { - for (const l of t) - await i(e, l, a), l.children && await dt(e, l.children, a, i); -} -d(dt, "performOperations"); -async function ae(e, t, a) { - await dt(e, t, a, ee); -} -d(ae, "calculateBlockSizes"); -async function se(e, t, a) { - await dt(e, t, a, re); -} -d(se, "insertBlocks"); -async function ie(e, t, a, i, l) { - const s = new Se({ - multigraph: !0, - compound: !0 - }); - s.setGraph({ - rankdir: "TB", - nodesep: 10, - ranksep: 10, - marginx: 8, - marginy: 8 - }); - for (const r of a) - r.size && s.setNode(r.id, { - width: r.size.width, - height: r.size.height, - intersect: r.intersect - }); - for (const r of t) - if (r.start && r.end) { - const n = i.getBlock(r.start), c = i.getBlock(r.end); - if (n?.size && c?.size) { - const x = n.size, o = c.size, u = [ - { x: x.x, y: x.y }, - { x: x.x + (o.x - x.x) / 2, y: x.y + (o.y - x.y) / 2 }, - { x: o.x, y: o.y } - ], b = l ? `${l}-${r.id}` : r.id; - pr( - e, - { v: r.start, w: r.end, name: b }, - { - ...r, - id: b, - arrowTypeEnd: r.arrowTypeEnd, - arrowTypeStart: r.arrowTypeStart, - points: u, - classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1" - }, - void 0, - "block", - s, - l - ), r.label && (await hr(e, { - ...r, - label: r.label, - labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;", - arrowTypeEnd: r.arrowTypeEnd, - arrowTypeStart: r.arrowTypeStart, - points: u, - classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1" - }), dr( - { ...r, x: u[1].x, y: u[1].y }, - { - originalPath: u - } - )); - } - } -} -d(ie, "insertEdges"); -var Vr = /* @__PURE__ */ d(function(e, t) { - return t.db.getClasses(); -}, "getClasses"), Gr = /* @__PURE__ */ d(async function(e, t, a, i) { - const { securityLevel: l, block: s } = at(), r = i.db; - r.setDiagramId(t); - let n; - l === "sandbox" && (n = T("#i" + t)); - const c = l === "sandbox" ? T(n.nodes()[0].contentDocument.body) : T("body"), x = l === "sandbox" ? c.select(`[id="${t}"]`) : T(`[id="${t}"]`); - ir(x, ["point", "circle", "cross"], i.type, t); - const u = r.getBlocks(), b = r.getBlocksFlat(), f = r.getEdges(), m = x.insert("g").attr("class", "block"); - await ae(m, u, r); - const v = Vt(r); - if (await se(m, u, r), await ie(m, f, b, r, t), v) { - const L = v, _ = Math.max(1, Math.round(0.125 * (L.width / L.height))), I = L.height + _ + 10, D = L.width + 10, { useMaxWidth: w } = s; - he(x, I, D, !!w), S.debug("Here Bounds", v, L), x.attr( - "viewBox", - `${L.x - 5} ${L.y - 5} ${L.width + 10} ${L.height + 10}` - ); - } -}, "draw"), Zr = { - draw: Gr, - getClasses: Vr -}, ea = { - parser: ve, - db: Xe, - renderer: Zr, - styles: Ve -}; -export { - ea as diagram -}; diff --git a/src/wc-content-kit/public/mermaid/blockDiagram-GPEHLZMM-CXzdPkfm.js b/src/wc-content-kit/public/mermaid/blockDiagram-GPEHLZMM-CXzdPkfm.js new file mode 100644 index 0000000..19bf57e --- /dev/null +++ b/src/wc-content-kit/public/mermaid/blockDiagram-GPEHLZMM-CXzdPkfm.js @@ -0,0 +1,2430 @@ +import { g as Ee } from "./chunk-FMBD7UC4-BsNoqpHi.js"; +import { aw as _e, ad as Xt, ax as Te, h as Vt, M as Zt, n as Gt, aK as jt, ba as wt, N as qt, aT as Jt, bc as Qt, aE as $t, b5 as te, f as ee, bf as De, be as Be, bh as Ne, bg as Ie, aL as Ce, ap as Oe, ao as Re, aq as Ae, $ as ze, Y as Me, i as Pe, b as d, a3 as at, a_ as D, E as Fe, aD as k, t as We, aY as Ye, a9 as He, aA as Ke, K as Ue, a4 as A, af as Xe, a7 as P, I as Et, B as $, ac as Ve, bk as tt, z as Ze, ab as Ge, aZ as Rt, P as At, D as je } from "./mermaid.core-FRDjOodn.js"; +import { G as qe } from "./graph-yNRfypD2.js"; +import { c as Je } from "./channel-AMGqEurk.js"; +function Qe(e) { + return Array.isArray(e); +} +function $e(e) { + if (_e(e)) + return e; + const t = Xt(e); + if (!tr(e)) + return {}; + if (Qe(e)) { + const s = Array.from(e); + return e.length > 0 && typeof e[0] == "string" && Object.hasOwn(e, "index") && (s.index = e.index, s.input = e.input), s; + } + if (Te(e)) { + const s = e, i = s.constructor; + return new i(s.buffer, s.byteOffset, s.length); + } + if (t === Vt) + return new ArrayBuffer(e.byteLength); + if (t === Zt) { + const s = e, i = s.buffer, c = s.byteOffset, r = s.byteLength, n = new ArrayBuffer(r), l = new Uint8Array(i, c, r); + return new Uint8Array(n).set(l), new DataView(n); + } + if (t === Gt || t === jt || t === wt) { + const s = e.constructor, i = new s(e.valueOf()); + return t === wt ? rr(i, e) : yt(i, e), i; + } + if (t === qt) + return new Date(Number(e)); + if (t === Jt) { + const s = e, i = new RegExp(s.source, s.flags); + return i.lastIndex = s.lastIndex, i; + } + if (t === Qt) + return Object(Symbol.prototype.valueOf.call(e)); + if (t === $t) { + const s = e, i = /* @__PURE__ */ new Map(); + return s.forEach((c, r) => { + i.set(r, c); + }), i; + } + if (t === te) { + const s = e, i = /* @__PURE__ */ new Set(); + return s.forEach((c) => { + i.add(c); + }), i; + } + if (t === ee) { + const s = e, i = {}; + return yt(i, s), i.length = s.length, i[Symbol.iterator] = s[Symbol.iterator], i; + } + const a = {}; + return ar(a, e), yt(a, e), er(a, e), a; +} +function tr(e) { + switch (Xt(e)) { + case ee: + case Pe: + case Vt: + case Zt: + case Gt: + case qt: + case Me: + case ze: + case Ae: + case Re: + case Oe: + case $t: + case jt: + case Ce: + case Jt: + case te: + case wt: + case Qt: + case Ie: + case Ne: + case Be: + case De: + return !0; + default: + return !1; + } +} +function yt(e, t) { + for (const a in t) + Object.hasOwn(t, a) && (e[a] = t[a]); +} +function er(e, t) { + const a = Object.getOwnPropertySymbols(t); + for (let s = 0; s < a.length; s++) { + const i = a[s]; + Object.prototype.propertyIsEnumerable.call(t, i) && (e[i] = t[i]); + } +} +function rr(e, t) { + const a = t.valueOf().length; + for (const s in t) + Object.hasOwn(t, s) && (Number.isNaN(Number(s)) || Number(s) >= a) && (e[s] = t[s]); +} +function ar(e, t) { + const a = Object.getPrototypeOf(t); + a !== null && typeof t.constructor == "function" && Object.setPrototypeOf(e, a); +} +var mt = (function() { + var e = /* @__PURE__ */ d(function(T, m, u, y) { + for (u = u || {}, y = T.length; y--; u[T[y]] = m) ; + return u; + }, "o"), t = [1, 15], a = [1, 7], s = [1, 13], i = [1, 14], c = [1, 19], r = [1, 16], n = [1, 17], l = [1, 18], g = [8, 30], o = [8, 10, 21, 28, 29, 30, 31, 39, 43, 46], p = [1, 23], b = [1, 24], x = [8, 10, 15, 16, 21, 28, 29, 30, 31, 39, 43, 46], w = [8, 10, 15, 16, 21, 27, 28, 29, 30, 31, 39, 43, 46], v = [1, 49], S = { + trace: /* @__PURE__ */ d(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: /* @__PURE__ */ d(function(m, u, y, L, E, h, W) { + var f = h.length - 1; + switch (E) { + case 4: + L.getLogger().debug("Rule: separator (NL) "); + break; + case 5: + L.getLogger().debug("Rule: separator (Space) "); + break; + case 6: + L.getLogger().debug("Rule: separator (EOF) "); + break; + case 7: + L.getLogger().debug("Rule: hierarchy: ", h[f - 1]), L.setHierarchy(h[f - 1]); + break; + case 8: + L.getLogger().debug("Stop NL "); + break; + case 9: + L.getLogger().debug("Stop EOF "); + break; + case 10: + L.getLogger().debug("Stop NL2 "); + break; + case 11: + L.getLogger().debug("Stop EOF2 "); + break; + case 12: + L.getLogger().debug("Rule: statement: ", h[f]), typeof h[f].length == "number" ? this.$ = h[f] : this.$ = [h[f]]; + break; + case 13: + L.getLogger().debug("Rule: statement #2: ", h[f - 1]), this.$ = [h[f - 1]].concat(h[f]); + break; + case 14: + L.getLogger().debug("Rule: link: ", h[f], m), this.$ = { edgeTypeStr: h[f], label: "" }; + break; + case 15: + L.getLogger().debug("Rule: LABEL link: ", h[f - 3], h[f - 1], h[f]), this.$ = { edgeTypeStr: h[f], label: h[f - 1] }; + break; + case 18: + const O = parseInt(h[f]), q = L.generateId(); + this.$ = { id: q, type: "space", label: "", width: O, children: [] }; + break; + case 23: + L.getLogger().debug("Rule: (nodeStatement link node) ", h[f - 2], h[f - 1], h[f], " typestr: ", h[f - 1].edgeTypeStr); + const Z = L.edgeStrToEdgeData(h[f - 1].edgeTypeStr), st = L.edgeStrToEdgeStartData(h[f - 1].edgeTypeStr), dt = L.edgeStrToThickness(h[f - 1].edgeTypeStr), R = L.edgeStrToPattern(h[f - 1].edgeTypeStr); + this.$ = [ + { id: h[f - 2].id, label: h[f - 2].label, type: h[f - 2].type, directions: h[f - 2].directions }, + { id: h[f - 2].id + "-" + h[f].id, start: h[f - 2].id, end: h[f].id, label: h[f - 1].label, type: "edge", thickness: dt, pattern: R, directions: h[f].directions, arrowTypeEnd: Z, arrowTypeStart: st }, + { id: h[f].id, label: h[f].label, type: L.typeStr2Type(h[f].typeStr), directions: h[f].directions } + ]; + break; + case 24: + L.getLogger().debug("Rule: nodeStatement (abc88 node size) ", h[f - 1], h[f]), this.$ = { id: h[f - 1].id, label: h[f - 1].label, type: L.typeStr2Type(h[f - 1].typeStr), directions: h[f - 1].directions, widthInColumns: parseInt(h[f], 10) }; + break; + case 25: + L.getLogger().debug("Rule: nodeStatement (node) ", h[f]), this.$ = { id: h[f].id, label: h[f].label, type: L.typeStr2Type(h[f].typeStr), directions: h[f].directions, widthInColumns: 1 }; + break; + case 26: + L.getLogger().debug("APA123", this ? this : "na"), L.getLogger().debug("COLUMNS: ", h[f]), this.$ = { type: "column-setting", columns: h[f] === "auto" ? -1 : parseInt(h[f]) }; + break; + case 27: + L.getLogger().debug("Rule: id-block statement : ", h[f - 2], h[f - 1]), L.generateId(), this.$ = { ...h[f - 2], type: "composite", children: h[f - 1] }; + break; + case 28: + L.getLogger().debug("Rule: blockStatement : ", h[f - 2], h[f - 1], h[f]); + const G = L.generateId(); + this.$ = { id: G, type: "composite", label: "", children: h[f - 1] }; + break; + case 29: + L.getLogger().debug("Rule: node (NODE_ID separator): ", h[f]), this.$ = { id: h[f] }; + break; + case 30: + L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", h[f - 1], h[f]), this.$ = { id: h[f - 1], label: h[f].label, typeStr: h[f].typeStr, directions: h[f].directions }; + break; + case 31: + L.getLogger().debug("Rule: dirList: ", h[f]), this.$ = [h[f]]; + break; + case 32: + L.getLogger().debug("Rule: dirList: ", h[f - 1], h[f]), this.$ = [h[f - 1]].concat(h[f]); + break; + case 33: + L.getLogger().debug("Rule: nodeShapeNLabel: ", h[f - 2], h[f - 1], h[f]), this.$ = { typeStr: h[f - 2] + h[f], label: h[f - 1] }; + break; + case 34: + L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", h[f - 3], h[f - 2], " #3:", h[f - 1], h[f]), this.$ = { typeStr: h[f - 3] + h[f], label: h[f - 2], directions: h[f - 1] }; + break; + case 35: + case 36: + this.$ = { type: "classDef", id: h[f - 1].trim(), css: h[f].trim() }; + break; + case 37: + this.$ = { type: "applyClass", id: h[f - 1].trim(), styleClass: h[f].trim() }; + break; + case 38: + this.$ = { type: "applyStyles", id: h[f - 1].trim(), stylesStr: h[f].trim() }; + break; + } + }, "anonymous"), + table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 10: t, 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: s, 29: i, 31: c, 39: r, 43: n, 46: l }, { 8: [1, 20] }, e(g, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 10: t, 21: a, 28: s, 29: i, 31: c, 39: r, 43: n, 46: l }), e(o, [2, 16], { 14: 22, 15: p, 16: b }), e(o, [2, 17]), e(o, [2, 18]), e(o, [2, 19]), e(o, [2, 20]), e(o, [2, 21]), e(o, [2, 22]), e(x, [2, 25], { 27: [1, 25] }), e(o, [2, 26]), { 19: 26, 26: 12, 31: c }, { 10: t, 11: 27, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: s, 29: i, 31: c, 39: r, 43: n, 46: l }, { 40: [1, 28], 42: [1, 29] }, { 44: [1, 30] }, { 47: [1, 31] }, e(w, [2, 29], { 32: 32, 35: [1, 33], 37: [1, 34] }), { 1: [2, 7] }, e(g, [2, 13]), { 26: 35, 31: c }, { 31: [2, 14] }, { 17: [1, 36] }, e(x, [2, 24]), { 10: t, 11: 37, 13: 4, 14: 22, 15: p, 16: b, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: s, 29: i, 31: c, 39: r, 43: n, 46: l }, { 30: [1, 38] }, { 41: [1, 39] }, { 41: [1, 40] }, { 45: [1, 41] }, { 48: [1, 42] }, e(w, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(x, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(o, [2, 28]), e(o, [2, 35]), e(o, [2, 36]), e(o, [2, 37]), e(o, [2, 38]), { 36: [1, 47] }, { 33: 48, 34: v }, { 15: [1, 50] }, e(o, [2, 27]), e(w, [2, 33]), { 38: [1, 51] }, { 33: 52, 34: v, 38: [2, 31] }, { 31: [2, 15] }, e(w, [2, 34]), { 38: [2, 32] }], + defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] }, + parseError: /* @__PURE__ */ d(function(m, u) { + if (u.recoverable) + this.trace(m); + else { + var y = new Error(m); + throw y.hash = u, y; + } + }, "parseError"), + parse: /* @__PURE__ */ d(function(m) { + var u = this, y = [0], L = [], E = [null], h = [], W = this.table, f = "", O = 0, q = 0, Z = 2, st = 1, dt = h.slice.call(arguments, 1), R = Object.create(this.lexer), G = { yy: {} }; + for (var ut in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, ut) && (G.yy[ut] = this.yy[ut]); + R.setInput(m, G.yy), G.yy.lexer = R, G.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {}); + var pt = R.yylloc; + h.push(pt); + var ke = R.options && R.options.ranges; + typeof G.yy.parseError == "function" ? this.parseError = G.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; + function ve(Y) { + y.length = y.length - 2 * Y, E.length = E.length - Y, h.length = h.length - Y; + } + d(ve, "popStack"); + function Ct() { + var Y; + return Y = L.pop() || R.lex() || st, typeof Y != "number" && (Y instanceof Array && (L = Y, Y = L.pop()), Y = u.symbols_[Y] || Y), Y; + } + d(Ct, "lex"); + for (var F, J, K, ft, Q = {}, it, j, Ot, nt; ; ) { + if (J = y[y.length - 1], this.defaultActions[J] ? K = this.defaultActions[J] : ((F === null || typeof F > "u") && (F = Ct()), K = W[J] && W[J][F]), typeof K > "u" || !K.length || !K[0]) { + var xt = ""; + nt = []; + for (it in W[J]) + this.terminals_[it] && it > Z && nt.push("'" + this.terminals_[it] + "'"); + R.showPosition ? xt = "Parse error on line " + (O + 1) + `: +` + R.showPosition() + ` +Expecting ` + nt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : xt = "Parse error on line " + (O + 1) + ": Unexpected " + (F == st ? "end of input" : "'" + (this.terminals_[F] || F) + "'"), this.parseError(xt, { + text: R.match, + token: this.terminals_[F] || F, + line: R.yylineno, + loc: pt, + expected: nt + }); + } + if (K[0] instanceof Array && K.length > 1) + throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + F); + switch (K[0]) { + case 1: + y.push(F), E.push(R.yytext), h.push(R.yylloc), y.push(K[1]), F = null, q = R.yyleng, f = R.yytext, O = R.yylineno, pt = R.yylloc; + break; + case 2: + if (j = this.productions_[K[1]][1], Q.$ = E[E.length - j], Q._$ = { + first_line: h[h.length - (j || 1)].first_line, + last_line: h[h.length - 1].last_line, + first_column: h[h.length - (j || 1)].first_column, + last_column: h[h.length - 1].last_column + }, ke && (Q._$.range = [ + h[h.length - (j || 1)].range[0], + h[h.length - 1].range[1] + ]), ft = this.performAction.apply(Q, [ + f, + q, + O, + G.yy, + K[1], + E, + h + ].concat(dt)), typeof ft < "u") + return ft; + j && (y = y.slice(0, -1 * j * 2), E = E.slice(0, -1 * j), h = h.slice(0, -1 * j)), y.push(this.productions_[K[1]][0]), E.push(Q.$), h.push(Q._$), Ot = W[y[y.length - 2]][y[y.length - 1]], y.push(Ot); + break; + case 3: + return !0; + } + } + return !0; + }, "parse") + }, _ = /* @__PURE__ */ (function() { + var T = { + EOF: 1, + parseError: /* @__PURE__ */ d(function(u, y) { + if (this.yy.parser) + this.yy.parser.parseError(u, y); + else + throw new Error(u); + }, "parseError"), + // resets the lexer, sets new input + setInput: /* @__PURE__ */ d(function(m, u) { + return this.yy = u || 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"), + // consumes and returns one char from the input + input: /* @__PURE__ */ d(function() { + var m = this._input[0]; + this.yytext += m, this.yyleng++, this.offset++, this.match += m, this.matched += m; + var u = m.match(/(?:\r\n?|\n).*/g); + return u ? (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"), + // unshifts one char (or a string) into the input + unput: /* @__PURE__ */ d(function(m) { + var u = m.length, y = m.split(/(?:\r\n?|\n)/g); + this._input = m + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u; + 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), y.length - 1 && (this.yylineno -= y.length - 1); + var E = 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: y ? (y.length === L.length ? this.yylloc.first_column : 0) + L[L.length - y.length].length - y[0].length : this.yylloc.first_column - u + }, this.options.ranges && (this.yylloc.range = [E[0], E[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this; + }, "unput"), + // When called from action, caches matched text and appends it on next action + more: /* @__PURE__ */ d(function() { + return this._more = !0, this; + }, "more"), + // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead. + reject: /* @__PURE__ */ 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"), + // retain first n characters of the match + less: /* @__PURE__ */ d(function(m) { + this.unput(this.match.slice(m)); + }, "less"), + // displays already matched input, i.e. for error messages + pastInput: /* @__PURE__ */ 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"), + // displays upcoming input, i.e. for error messages + upcomingInput: /* @__PURE__ */ 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"), + // displays the character position where the lexing error occurred, i.e. for error messages + showPosition: /* @__PURE__ */ d(function() { + var m = this.pastInput(), u = new Array(m.length + 1).join("-"); + return m + this.upcomingInput() + ` +` + u + "^"; + }, "showPosition"), + // test the lexed token: return FALSE when not a match, otherwise return token + test_match: /* @__PURE__ */ d(function(m, u) { + var y, L, E; + if (this.options.backtrack_lexer && (E = { + 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 && (E.yylloc.range = this.yylloc.range.slice(0))), L = m[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 + 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], y = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y) + return y; + if (this._backtrack) { + for (var h in E) + this[h] = E[h]; + return !1; + } + return !1; + }, "test_match"), + // return next match in input + next: /* @__PURE__ */ d(function() { + if (this.done) + return this.EOF; + this._input || (this.done = !0); + var m, u, y, L; + this._more || (this.yytext = "", this.match = ""); + for (var E = this._currentRules(), h = 0; h < E.length; h++) + if (y = this._input.match(this.rules[E[h]]), y && (!u || y[0].length > u[0].length)) { + if (u = y, L = h, this.options.backtrack_lexer) { + if (m = this.test_match(y, E[h]), m !== !1) + return m; + if (this._backtrack) { + u = !1; + continue; + } else + return !1; + } else if (!this.options.flex) + break; + } + return u ? (m = this.test_match(u, E[L]), 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"), + // return next match that has a token + lex: /* @__PURE__ */ d(function() { + var u = this.next(); + return u || this.lex(); + }, "lex"), + // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack) + begin: /* @__PURE__ */ d(function(u) { + this.conditionStack.push(u); + }, "begin"), + // pop the previously active lexer condition state off the condition stack + popState: /* @__PURE__ */ d(function() { + var u = this.conditionStack.length - 1; + return u > 0 ? this.conditionStack.pop() : this.conditionStack[0]; + }, "popState"), + // produce the lexer rule set which is active for the currently active lexer condition state + _currentRules: /* @__PURE__ */ 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"), + // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available + topState: /* @__PURE__ */ d(function(u) { + return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL"; + }, "topState"), + // alias for begin(condition) + pushState: /* @__PURE__ */ d(function(u) { + this.begin(u); + }, "pushState"), + // return the number of states currently on the stack + stateStackSize: /* @__PURE__ */ d(function() { + return this.conditionStack.length; + }, "stateStackSize"), + options: {}, + performAction: /* @__PURE__ */ d(function(u, y, L, E) { + switch (L) { + case 0: + return u.getLogger().debug("Found block-beta"), 10; + case 1: + return u.getLogger().debug("Found id-block"), 29; + case 2: + return u.getLogger().debug("Found block"), 10; + case 3: + u.getLogger().debug(".", y.yytext); + break; + case 4: + u.getLogger().debug("_", y.yytext); + break; + case 5: + return 5; + case 6: + return y.yytext = -1, 28; + case 7: + return y.yytext = y.yytext.replace(/columns\s+/, ""), u.getLogger().debug("COLUMNS (LEX)", y.yytext), 28; + case 8: + this.pushState("md_string"); + break; + case 9: + return "MD_STR"; + case 10: + this.popState(); + break; + case 11: + this.pushState("string"); + break; + case 12: + u.getLogger().debug("LEX: POPPING STR:", y.yytext), this.popState(); + break; + case 13: + return u.getLogger().debug("LEX: STR end:", y.yytext), "STR"; + case 14: + return y.yytext = y.yytext.replace(/space\:/, ""), u.getLogger().debug("SPACE NUM (LEX)", y.yytext), 21; + case 15: + return y.yytext = "1", u.getLogger().debug("COLUMNS (LEX)", y.yytext), 21; + case 16: + return 42; + case 17: + return "LINKSTYLE"; + case 18: + return "INTERPOLATE"; + case 19: + return this.pushState("CLASSDEF"), 39; + case 20: + return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID"; + case 21: + return this.popState(), this.pushState("CLASSDEFID"), 40; + case 22: + return this.popState(), 41; + case 23: + return this.pushState("CLASS"), 43; + case 24: + return this.popState(), this.pushState("CLASS_STYLE"), 44; + case 25: + return this.popState(), 45; + case 26: + return this.pushState("STYLE_STMNT"), 46; + case 27: + return this.popState(), this.pushState("STYLE_DEFINITION"), 47; + case 28: + return this.popState(), 48; + case 29: + return this.pushState("acc_title"), "acc_title"; + case 30: + return this.popState(), "acc_title_value"; + case 31: + return this.pushState("acc_descr"), "acc_descr"; + case 32: + return this.popState(), "acc_descr_value"; + case 33: + this.pushState("acc_descr_multiline"); + break; + case 34: + this.popState(); + break; + case 35: + return "acc_descr_multiline_value"; + case 36: + return 30; + case 37: + return this.popState(), u.getLogger().debug("Lex: (("), "NODE_DEND"; + case 38: + return this.popState(), u.getLogger().debug("Lex: (("), "NODE_DEND"; + case 39: + return this.popState(), u.getLogger().debug("Lex: ))"), "NODE_DEND"; + case 40: + return this.popState(), u.getLogger().debug("Lex: (("), "NODE_DEND"; + case 41: + return this.popState(), u.getLogger().debug("Lex: (("), "NODE_DEND"; + case 42: + return this.popState(), u.getLogger().debug("Lex: (-"), "NODE_DEND"; + case 43: + return this.popState(), u.getLogger().debug("Lex: -)"), "NODE_DEND"; + case 44: + return this.popState(), u.getLogger().debug("Lex: (("), "NODE_DEND"; + case 45: + return this.popState(), u.getLogger().debug("Lex: ]]"), "NODE_DEND"; + case 46: + return this.popState(), u.getLogger().debug("Lex: ("), "NODE_DEND"; + case 47: + return this.popState(), u.getLogger().debug("Lex: ])"), "NODE_DEND"; + case 48: + return this.popState(), u.getLogger().debug("Lex: /]"), "NODE_DEND"; + case 49: + return this.popState(), u.getLogger().debug("Lex: /]"), "NODE_DEND"; + case 50: + return this.popState(), u.getLogger().debug("Lex: )]"), "NODE_DEND"; + case 51: + return this.popState(), u.getLogger().debug("Lex: )"), "NODE_DEND"; + case 52: + return this.popState(), u.getLogger().debug("Lex: ]>"), "NODE_DEND"; + case 53: + return this.popState(), u.getLogger().debug("Lex: ]"), "NODE_DEND"; + case 54: + return u.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35; + case 55: + return u.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35; + case 56: + return u.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35; + case 57: + return u.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35; + case 58: + return u.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35; + case 59: + return u.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35; + case 60: + return u.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35; + case 61: + return u.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35; + case 62: + return u.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35; + case 63: + return u.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35; + case 64: + return u.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35; + case 65: + return this.pushState("NODE"), 35; + case 66: + return this.pushState("NODE"), 35; + case 67: + return this.pushState("NODE"), 35; + case 68: + return this.pushState("NODE"), 35; + case 69: + return this.pushState("NODE"), 35; + case 70: + return this.pushState("NODE"), 35; + case 71: + return this.pushState("NODE"), 35; + case 72: + return u.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35; + case 73: + return this.pushState("BLOCK_ARROW"), u.getLogger().debug("LEX ARR START"), 37; + case 74: + return u.getLogger().debug("Lex: NODE_ID", y.yytext), 31; + case 75: + return u.getLogger().debug("Lex: EOF", y.yytext), 8; + case 76: + this.pushState("md_string"); + break; + case 77: + this.pushState("md_string"); + break; + case 78: + return "NODE_DESCR"; + case 79: + this.popState(); + break; + case 80: + u.getLogger().debug("Lex: Starting string"), this.pushState("string"); + break; + case 81: + u.getLogger().debug("LEX ARR: Starting string"), this.pushState("string"); + break; + case 82: + return u.getLogger().debug("LEX: NODE_DESCR:", y.yytext), "NODE_DESCR"; + case 83: + u.getLogger().debug("LEX POPPING"), this.popState(); + break; + case 84: + u.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR"); + break; + case 85: + return y.yytext = y.yytext.replace(/^,\s*/, ""), u.getLogger().debug("Lex (right): dir:", y.yytext), "DIR"; + case 86: + return y.yytext = y.yytext.replace(/^,\s*/, ""), u.getLogger().debug("Lex (left):", y.yytext), "DIR"; + case 87: + return y.yytext = y.yytext.replace(/^,\s*/, ""), u.getLogger().debug("Lex (x):", y.yytext), "DIR"; + case 88: + return y.yytext = y.yytext.replace(/^,\s*/, ""), u.getLogger().debug("Lex (y):", y.yytext), "DIR"; + case 89: + return y.yytext = y.yytext.replace(/^,\s*/, ""), u.getLogger().debug("Lex (up):", y.yytext), "DIR"; + case 90: + return y.yytext = y.yytext.replace(/^,\s*/, ""), u.getLogger().debug("Lex (down):", y.yytext), "DIR"; + case 91: + return y.yytext = "]>", u.getLogger().debug("Lex (ARROW_DIR end):", y.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END"; + case 92: + return u.getLogger().debug("Lex: LINK", "#" + y.yytext + "#"), 15; + case 93: + return u.getLogger().debug("Lex: LINK", y.yytext), 15; + case 94: + return u.getLogger().debug("Lex: LINK", y.yytext), 15; + case 95: + return u.getLogger().debug("Lex: LINK", y.yytext), 15; + case 96: + return u.getLogger().debug("Lex: START_LINK", y.yytext), this.pushState("LLABEL"), 16; + case 97: + return u.getLogger().debug("Lex: START_LINK", y.yytext), this.pushState("LLABEL"), 16; + case 98: + return u.getLogger().debug("Lex: START_LINK", y.yytext), this.pushState("LLABEL"), 16; + case 99: + this.pushState("md_string"); + break; + case 100: + return u.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL"; + case 101: + return this.popState(), u.getLogger().debug("Lex: LINK", "#" + y.yytext + "#"), 15; + case 102: + return this.popState(), u.getLogger().debug("Lex: LINK", y.yytext), 15; + case 103: + return this.popState(), u.getLogger().debug("Lex: LINK", y.yytext), 15; + case 104: + return u.getLogger().debug("Lex: COLON", y.yytext), y.yytext = y.yytext.slice(1), 27; + } + }, "anonymous"), + rules: [/^(?:block-beta\b)/, /^(?:block:)/, /^(?:block\b)/, /^(?:[\s]+)/, /^(?:[\n]+)/, /^(?:((\u000D\u000A)|(\u000A)))/, /^(?:columns\s+auto\b)/, /^(?:columns\s+[\d]+)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:space[:]\d+)/, /^(?:space\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\s+)/, /^(?:DEFAULT\s+)/, /^(?:\w+\s+)/, /^(?:[^\n]*)/, /^(?:class\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:style\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:end\b\s*)/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:[\)]\))/, /^(?:\}\})/, /^(?:\})/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\()/, /^(?:\]\])/, /^(?:\()/, /^(?:\]\))/, /^(?:\\\])/, /^(?:\/\])/, /^(?:\)\])/, /^(?:[\)])/, /^(?:\]>)/, /^(?:[\]])/, /^(?:-\))/, /^(?:\(-)/, /^(?:\)\))/, /^(?:\))/, /^(?:\(\(\()/, /^(?:\(\()/, /^(?:\{\{)/, /^(?:\{)/, /^(?:>)/, /^(?:\(\[)/, /^(?:\()/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\[\\)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:\[)/, /^(?:<\[)/, /^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/, /^(?:$)/, /^(?:["][`])/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:\]>\s*\()/, /^(?:,?\s*right\s*)/, /^(?:,?\s*left\s*)/, /^(?:,?\s*x\s*)/, /^(?:,?\s*y\s*)/, /^(?:,?\s*up\s*)/, /^(?:,?\s*down\s*)/, /^(?:\)\s*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:["][`])/, /^(?:["])/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?::\d+)/], + conditions: { STYLE_DEFINITION: { rules: [28], inclusive: !1 }, STYLE_STMNT: { rules: [27], inclusive: !1 }, CLASSDEFID: { rules: [22], inclusive: !1 }, CLASSDEF: { rules: [20, 21], inclusive: !1 }, CLASS_STYLE: { rules: [25], inclusive: !1 }, CLASS: { rules: [24], inclusive: !1 }, LLABEL: { rules: [99, 100, 101, 102, 103], inclusive: !1 }, ARROW_DIR: { rules: [85, 86, 87, 88, 89, 90, 91], inclusive: !1 }, BLOCK_ARROW: { rules: [76, 81, 84], inclusive: !1 }, NODE: { rules: [37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 77, 80], inclusive: !1 }, md_string: { rules: [9, 10, 78, 79], inclusive: !1 }, space: { rules: [], inclusive: !1 }, string: { rules: [12, 13, 82, 83], inclusive: !1 }, acc_descr_multiline: { rules: [34, 35], inclusive: !1 }, acc_descr: { rules: [32], inclusive: !1 }, acc_title: { rules: [30], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 14, 15, 16, 17, 18, 19, 23, 26, 29, 31, 33, 36, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 92, 93, 94, 95, 96, 97, 98, 104], inclusive: !0 } } + }; + return T; + })(); + S.lexer = _; + function I() { + this.yy = {}; + } + return d(I, "Parser"), I.prototype = S, S.Parser = I, new I(); +})(); +mt.parser = mt; +var sr = mt, X = /* @__PURE__ */ new Map(), _t = [], St = /* @__PURE__ */ new Map(), zt = "color", Mt = "fill", ir = "bgFill", re = ",", nr = A(), lt = /* @__PURE__ */ new Map(), Tt = "", cr = /* @__PURE__ */ d((e) => Ze.sanitizeText(e, nr), "sanitizeText"), lr = /* @__PURE__ */ d(function(e, t = "") { + let a = lt.get(e); + a || (a = { id: e, styles: [], textStyles: [] }, lt.set(e, a)), t?.split(re).forEach((s) => { + const i = s.replace(/([^;]*);/, "$1").trim(); + if (RegExp(zt).exec(s)) { + const r = i.replace(Mt, ir).replace(zt, Mt); + a.textStyles.push(r); + } + a.styles.push(i); + }); +}, "addStyleClass"), or = /* @__PURE__ */ d(function(e, t = "") { + const a = X.get(e); + t != null && (a.styles = t.split(re)); +}, "addStyle2Node"), hr = /* @__PURE__ */ d(function(e, t) { + e.split(",").forEach(function(a) { + let s = X.get(a); + if (s === void 0) { + const i = a.trim(); + s = { id: i, type: "na", children: [] }, X.set(i, s); + } + s.classes || (s.classes = []), s.classes.push(t); + }); +}, "setCssClass"), ae = /* @__PURE__ */ d((e, t) => { + const a = e.flat(), s = [], c = a.find((r) => r?.type === "column-setting")?.columns ?? -1; + for (const r of a) { + if (typeof c == "number" && c > 0 && r.type !== "column-setting" && typeof r.widthInColumns == "number" && r.widthInColumns > c && k.warn( + `Block ${r.id} width ${r.widthInColumns} exceeds configured column width ${c}` + ), r.label && (r.label = cr(r.label)), r.type === "classDef") { + lr(r.id, r.css); + continue; + } + if (r.type === "applyClass") { + hr(r.id, r?.styleClass ?? ""); + continue; + } + if (r.type === "applyStyles") { + r?.stylesStr && or(r.id, r?.stylesStr); + continue; + } + if (r.type === "column-setting") + t.columns = r.columns ?? -1; + else if (r.type === "edge") { + const n = (St.get(r.id) ?? 0) + 1; + St.set(r.id, n), r.id = n + "-" + r.id, _t.push(r); + } else { + r.label || (r.type === "composite" ? r.label = "" : r.label = r.id); + const n = X.get(r.id); + if (n === void 0 ? X.set(r.id, r) : (r.type !== "na" && (n.type = r.type), r.label !== r.id && (n.label = r.label)), r.children && ae(r.children, r), r.type === "space") { + const l = r.width ?? 1; + for (let g = 0; g < l; g++) { + const o = $e(r); + o.id = o.id + "-" + g, X.set(o.id, o), s.push(o); + } + } else n === void 0 && s.push(r); + } + } + t.children = s; +}, "populateBlockDatabase"), Dt = [], rt = { id: "root", type: "composite", children: [], columns: -1 }, gr = /* @__PURE__ */ d(() => { + k.debug("Clear called"), We(), rt = { id: "root", type: "composite", children: [], columns: -1 }, X = /* @__PURE__ */ new Map([["root", rt]]), Dt = [], lt = /* @__PURE__ */ new Map(), _t = [], St = /* @__PURE__ */ new Map(), Tt = ""; +}, "clear"); +function se(e) { + switch (k.debug("typeStr2Type", e), e) { + case "[]": + return "square"; + case "()": + return k.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"; + } +} +d(se, "typeStr2Type"); +function ie(e) { + switch (k.debug("typeStr2Type", e), e) { + case "==": + return "thick"; + default: + return "normal"; + } +} +d(ie, "edgeTypeStr2Type"); +function ne(e) { + switch (e.trim().slice(-1)) { + case "x": + return "arrow_cross"; + case "o": + return "arrow_circle"; + case ">": + return "arrow_point"; + default: + return ""; + } +} +d(ne, "edgeStrToEdgeData"); +function ce(e) { + switch (e.trim().charAt(0)) { + case "x": + return "arrow_cross"; + case "o": + return "arrow_circle"; + case "<": + return "arrow_point"; + default: + return "arrow_open"; + } +} +d(ce, "edgeStrToEdgeStartData"); +function le(e) { + return e.includes("==") ? "thick" : "normal"; +} +d(le, "edgeStrToThickness"); +function oe(e) { + return e.includes(".-") ? "dotted" : "solid"; +} +d(oe, "edgeStrToPattern"); +var Pt = 0, dr = /* @__PURE__ */ d(() => (Pt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Pt), "generateId"), ur = /* @__PURE__ */ d((e) => { + rt.children = e, ae(e, rt), Dt = rt.children; +}, "setHierarchy"), pr = /* @__PURE__ */ d((e) => { + const t = X.get(e); + return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1; +}, "getColumns"), fr = /* @__PURE__ */ d(() => [...X.values()], "getBlocksFlat"), xr = /* @__PURE__ */ d(() => Dt || [], "getBlocks"), yr = /* @__PURE__ */ d(() => _t, "getEdges"), br = /* @__PURE__ */ d((e) => X.get(e), "getBlock"), wr = /* @__PURE__ */ d((e) => { + X.set(e.id, e); +}, "setBlock"), mr = /* @__PURE__ */ d((e) => { + Tt = e; +}, "setDiagramId"), Sr = /* @__PURE__ */ d(() => Tt, "getDiagramId"), Lr = /* @__PURE__ */ d(() => k, "getLogger"), kr = /* @__PURE__ */ d(function() { + return lt; +}, "getClasses"), vr = { + getConfig: /* @__PURE__ */ d(() => at().block, "getConfig"), + typeStr2Type: se, + edgeTypeStr2Type: ie, + edgeStrToEdgeData: ne, + edgeStrToEdgeStartData: ce, + edgeStrToThickness: le, + edgeStrToPattern: oe, + getLogger: Lr, + getBlocksFlat: fr, + getBlocks: xr, + getEdges: yr, + setHierarchy: ur, + getBlock: br, + setBlock: wr, + getColumns: pr, + getClasses: kr, + clear: gr, + generateId: dr, + setDiagramId: mr, + getDiagramId: Sr +}, Er = vr, bt = /* @__PURE__ */ d((e, t) => { + const a = Je, s = a(e, "r"), i = a(e, "g"), c = a(e, "b"); + return Ye(s, i, c, t); +}, "fade"), _r = /* @__PURE__ */ d((e) => `.label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor || e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span,p { + color: ${e.titleColor}; + } + + + + .label text,span,p { + 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: 1px; + } + .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}; + } + + .edgePath .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 \`<p>\` 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: ${bt(e.mainBkg, 0.5)}; + fill: ${bt(e.clusterBkg, 0.5)}; + stroke: ${bt(e.clusterBorder, 0.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,p { + 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}; + } + ${Ee()} +`, "getStyles"), Tr = _r, Dr = /* @__PURE__ */ d((e, t, a, s) => { + t.forEach((i) => { + Pr[i](e, a, s); + }); +}, "insertMarkers"), Br = /* @__PURE__ */ d((e, t, a) => { + k.trace("Making markers for ", a), e.append("defs").append("marker").attr("id", a + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.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").append("path").attr("d", "M 1,1 V 13 L18,7 Z"); +}, "extension"), Nr = /* @__PURE__ */ d((e, t, a) => { + e.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").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.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").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); +}, "composition"), Ir = /* @__PURE__ */ d((e, t, a) => { + e.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").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.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").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); +}, "aggregation"), Cr = /* @__PURE__ */ d((e, t, a) => { + e.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").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.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").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); +}, "dependency"), Or = /* @__PURE__ */ d((e, t, a) => { + e.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").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.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").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6); +}, "lollipop"), Rr = /* @__PURE__ */ d((e, t, a) => { + e.append("marker").attr("id", a + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).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").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.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", 12).attr("markerHeight", 12).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"); +}, "point"), Ar = /* @__PURE__ */ d((e, t, a) => { + e.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"), e.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"); +}, "circle"), zr = /* @__PURE__ */ d((e, t, a) => { + e.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"), e.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"); +}, "cross"), Mr = /* @__PURE__ */ d((e, t, a) => { + e.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 L9,13 L14,7 L9,1 Z"); +}, "barb"), Pr = { + extension: Br, + composition: Nr, + aggregation: Ir, + dependency: Cr, + lollipop: Or, + point: Rr, + circle: Ar, + cross: zr, + barb: Mr +}, Fr = Dr, C = A()?.block?.padding ?? 8; +function Lt(e, t) { + if (e === 0 || !Number.isInteger(e)) + throw new Error("Columns must be an integer !== 0."); + if (t < 0 || !Number.isInteger(t)) + throw new Error("Position must be a non-negative integer." + t); + if (e < 0) + return { px: t, py: 0 }; + if (e === 1) + return { px: 0, py: t }; + const a = t % e, s = Math.floor(t / e); + return { px: a, py: s }; +} +d(Lt, "calculateBlockPosition"); +var Wr = /* @__PURE__ */ d((e) => { + let t = 0, a = 0; + for (const s of e.children) { + const { width: i, height: c, x: r, y: n } = s.size ?? { width: 0, height: 0, x: 0, y: 0 }; + if (k.debug( + "getMaxChildSize abc95 child:", + s.id, + "width:", + i, + "height:", + c, + "x:", + r, + "y:", + n, + s.type + ), s.type === "space") + continue; + const l = i / (s.widthInColumns ?? 1); + l > t && (t = l), c > a && (a = c); + } + return { width: t, height: a }; +}, "getMaxChildSize"); +function ot(e, t, a = 0, s = 0) { + k.debug( + "setBlockSizes abc95 (start)", + e.id, + e?.size?.x, + "block width =", + e?.size, + "siblingWidth", + a + ), e?.size?.width || (e.size = { + width: a, + height: s, + x: 0, + y: 0 + }); + let i = 0, c = 0; + if (e.children?.length > 0) { + for (const x of e.children) + ot(x, t); + const r = Wr(e); + i = r.width, c = r.height, k.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", i, c); + for (const x of e.children) + x.size && (k.debug( + `abc95 Setting size of children of ${e.id} id=${x.id} ${i} ${c} ${JSON.stringify(x.size)}` + ), x.size.width = i * (x.widthInColumns ?? 1) + C * ((x.widthInColumns ?? 1) - 1), x.size.height = c, x.size.x = 0, x.size.y = 0, k.debug( + `abc95 updating size of ${e.id} children child:${x.id} maxWidth:${i} maxHeight:${c}` + )); + for (const x of e.children) + ot(x, t, i, c); + const n = e.columns ?? -1; + let l = 0; + for (const x of e.children) + l += x.widthInColumns ?? 1; + let g = e.children.length; + n > 0 && n < l && (g = n); + const o = Math.ceil(l / g); + let p = g * (i + C) + C, b = o * (c + C) + C; + if (p < a) { + k.debug( + `Detected to small sibling: abc95 ${e.id} siblingWidth ${a} siblingHeight ${s} width ${p}` + ), p = a, b = s; + const x = (a - g * C - C) / g, w = (s - o * C - C) / o; + k.debug("Size indata abc88", e.id, "childWidth", x, "maxWidth", i), k.debug("Size indata abc88", e.id, "childHeight", w, "maxHeight", c), k.debug("Size indata abc88 xSize", g, "padding", C); + for (const v of e.children) + v.size && (v.size.width = x, v.size.height = w, v.size.x = 0, v.size.y = 0); + } + if (k.debug( + `abc95 (finale calc) ${e.id} xSize ${g} ySize ${o} columns ${n}${e.children.length} width=${Math.max(p, e.size?.width || 0)}` + ), p < (e?.size?.width || 0)) { + p = e?.size?.width || 0; + const x = n > 0 ? Math.min(e.children.length, n) : e.children.length; + if (x > 0) { + const w = (p - x * C - C) / x; + k.debug("abc95 (growing to fit) width", e.id, p, e.size?.width, w); + for (const v of e.children) + v.size && (v.size.width = w); + } + } + e.size = { + width: p, + height: b, + x: 0, + y: 0 + }; + } + k.debug( + "setBlockSizes abc94 (done)", + e.id, + e?.size?.x, + e?.size?.width, + e?.size?.y, + e?.size?.height + ); +} +d(ot, "setBlockSizes"); +function Bt(e, t) { + k.debug( + `abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}` + ); + const a = e.columns ?? -1; + if (k.debug("layoutBlocks columns abc95", e.id, "=>", a, e), e.children && // find max width of children + e.children.length > 0) { + const s = e?.children[0]?.size?.width ?? 0, i = e.children.length * s + (e.children.length - 1) * C; + k.debug("widthOfChildren 88", i, "posX"); + const c = /* @__PURE__ */ new Map(); + { + let o = 0; + for (const p of e.children) { + if (!p.size) + continue; + const { py: b } = Lt(a, o), x = c.get(b) ?? 0; + p.size.height > x && c.set(b, p.size.height); + let w = p?.widthInColumns ?? 1; + a > 0 && (w = Math.min(w, a - o % a)), o += w; + } + } + const r = /* @__PURE__ */ new Map(); + { + let o = 0; + const p = [...c.keys()].sort((b, x) => b - x); + for (const b of p) + r.set(b, o), o += (c.get(b) ?? 0) + C; + } + let n = 0; + k.debug("abc91 block?.size?.x", e.id, e?.size?.x); + let l = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -C, g = 0; + for (const o of e.children) { + const p = e; + if (!o.size) + continue; + const { width: b, height: x } = o.size, { px: w, py: v } = Lt(a, n); + if (v != g && (g = v, l = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -C, k.debug("New row in layout for block", e.id, " and child ", o.id, g)), k.debug( + `abc89 layout blocks (child) id: ${o.id} Pos: ${n} (px, py) ${w},${v} (${p?.size?.x},${p?.size?.y}) parent: ${p.id} width: ${b}${C}` + ), p.size) { + const _ = b / 2; + o.size.x = l + C + _, k.debug( + `abc91 layout blocks (calc) px, pyid:${o.id} startingPos=X${l} new startingPosX${o.size.x} ${_} padding=${C} width=${b} halfWidth=${_} => x:${o.size.x} y:${o.size.y} ${o.widthInColumns} (width * (child?.w || 1)) / 2 ${b * (o?.widthInColumns ?? 1) / 2}` + ), l = o.size.x + _; + const I = r.get(v) ?? 0, T = c.get(v) ?? x; + o.size.y = p.size.y - p.size.height / 2 + I + T / 2 + C, k.debug( + `abc88 layout blocks (calc) px, pyid:${o.id}startingPosX${l}${C}${_}=>x:${o.size.x}y:${o.size.y}${o.widthInColumns}(width * (child?.w || 1)) / 2${b * (o?.widthInColumns ?? 1) / 2}` + ); + } + o.children && Bt(o); + let S = o?.widthInColumns ?? 1; + a > 0 && (S = Math.min(S, a - n % a)), n += S, k.debug("abc88 columnsPos", o, n); + } + } + k.debug( + `layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}` + ); +} +d(Bt, "layoutBlocks"); +function Nt(e, { minX: t, minY: a, maxX: s, maxY: i } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) { + if (e.size && e.id !== "root") { + const { x: c, y: r, width: n, height: l } = e.size; + c - n / 2 < t && (t = c - n / 2), r - l / 2 < a && (a = r - l / 2), c + n / 2 > s && (s = c + n / 2), r + l / 2 > i && (i = r + l / 2); + } + if (e.children) + for (const c of e.children) + ({ minX: t, minY: a, maxX: s, maxY: i } = Nt(c, { minX: t, minY: a, maxX: s, maxY: i })); + return { minX: t, minY: a, maxX: s, maxY: i }; +} +d(Nt, "findBounds"); +function he(e) { + const t = e.getBlock("root"); + if (!t) + return; + ot(t, e, 0, 0), Bt(t), k.debug("getBlocks", JSON.stringify(t, null, 2)); + const { minX: a, minY: s, maxX: i, maxY: c } = Nt(t), r = c - s, n = i - a; + return { x: a, y: s, width: n, height: r }; +} +d(he, "layout"); +var Yr = /* @__PURE__ */ d(async (e, t, a, s = !1, i = !1) => { + let c = t || ""; + typeof c == "object" && (c = c[0]); + const r = A(), n = P(r); + return await Et( + e, + c, + { + style: a, + isTitle: s, + useHtmlLabels: n, + markdown: !1, + isNode: i, + width: Number.POSITIVE_INFINITY + }, + r + ); +}, "createLabel"), U = Yr, Hr = /* @__PURE__ */ d((e, t, a, s, i) => { + t.arrowTypeStart && Ft(e, "start", t.arrowTypeStart, a, s, i), t.arrowTypeEnd && Ft(e, "end", t.arrowTypeEnd, a, s, i); +}, "addEdgeMarkers"), Kr = { + arrow_cross: "cross", + arrow_point: "point", + arrow_barb: "barb", + arrow_circle: "circle", + aggregation: "aggregation", + extension: "extension", + composition: "composition", + dependency: "dependency", + lollipop: "lollipop" +}, Ft = /* @__PURE__ */ d((e, t, a, s, i, c) => { + const r = Kr[a]; + if (!r) { + k.warn(`Unknown arrow type: ${a}`); + return; + } + const n = t === "start" ? "Start" : "End"; + e.attr(`marker-${t}`, `url(${s}#${i}_${c}-${r}${n})`); +}, "addEdgeMarker"), kt = {}, M = {}, Ur = /* @__PURE__ */ d(async (e, t) => { + const a = A(), s = P(a), i = e.insert("g").attr("class", "edgeLabel"), c = i.insert("g").attr("class", "label"), r = t.labelType === "markdown", n = await Et( + e, + t.label, + { + style: t.labelStyle, + useHtmlLabels: s, + // TODO: The old code only set addSvgBackground when using markdown, but + // this function is only used by block diagrams which never use markdown. + addSvgBackground: r, + isNode: !1, + markdown: r, + // If using markdown, wrap using default width + width: r ? void 0 : Number.POSITIVE_INFINITY + }, + a + ); + c.node().appendChild(n); + let l = n.getBBox(), g = l; + if (s) { + const p = n.children[0], b = D(n); + l = p.getBoundingClientRect(), g = l, b.attr("width", l.width), b.attr("height", l.height); + } else { + const p = D(n).select("text").node(); + p && typeof p.getBBox == "function" && (g = p.getBBox()); + } + c.attr("transform", $(g, s)), kt[t.id] = i, t.width = l.width, t.height = l.height; + let o; + if (t.startLabelLeft) { + const p = e.insert("g").attr("class", "edgeTerminals"), b = p.insert("g").attr("class", "inner"), x = await U(b, t.startLabelLeft, t.labelStyle); + o = x; + let w = x.getBBox(); + if (s) { + const v = x.children[0], S = D(x); + w = v.getBoundingClientRect(), S.attr("width", w.width), S.attr("height", w.height); + } + b.attr("transform", $(w, s)), M[t.id] || (M[t.id] = {}), M[t.id].startLeft = p, et(o, t.startLabelLeft); + } + if (t.startLabelRight) { + const p = e.insert("g").attr("class", "edgeTerminals"), b = p.insert("g").attr("class", "inner"), x = await U(b, t.startLabelRight, t.labelStyle); + o = x; + let w = x.getBBox(); + if (s) { + const v = x.children[0], S = D(x); + w = v.getBoundingClientRect(), S.attr("width", w.width), S.attr("height", w.height); + } + b.attr("transform", $(w, s)), M[t.id] || (M[t.id] = {}), M[t.id].startRight = p, et(o, t.startLabelRight); + } + if (t.endLabelLeft) { + const p = e.insert("g").attr("class", "edgeTerminals"), b = p.insert("g").attr("class", "inner"), x = await U(p, t.endLabelLeft, t.labelStyle); + o = x; + let w = x.getBBox(); + if (s) { + const v = x.children[0], S = D(x); + w = v.getBoundingClientRect(), S.attr("width", w.width), S.attr("height", w.height); + } + b.attr("transform", $(w, s)), M[t.id] || (M[t.id] = {}), M[t.id].endLeft = p, et(o, t.endLabelLeft); + } + if (t.endLabelRight) { + const p = e.insert("g").attr("class", "edgeTerminals"), b = p.insert("g").attr("class", "inner"), x = await U( + p, + t.endLabelRight, + t.labelStyle + ); + o = x; + let w = x.getBBox(); + if (s) { + const v = x.children[0], S = D(x); + w = v.getBoundingClientRect(), S.attr("width", w.width), S.attr("height", w.height); + } + b.attr("transform", $(w, s)), M[t.id] || (M[t.id] = {}), M[t.id].endRight = p, et(o, t.endLabelRight); + } + return n; +}, "insertEdgeLabel"); +function et(e, t) { + P(A()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px"); +} +d(et, "setTerminalWidth"); +var Xr = /* @__PURE__ */ d((e, t) => { + k.debug("Moving label abc88 ", e.id, e.label, kt[e.id], t); + let a = t.updatedPath ? t.updatedPath : t.originalPath; + const s = A(), { subGraphTitleTotalMargin: i } = Ve(s); + if (e.label) { + const c = kt[e.id]; + let r = e.x, n = e.y; + if (a) { + const l = tt.calcLabelPosition(a); + k.debug( + "Moving label " + e.label + " from (", + r, + ",", + n, + ") to (", + l.x, + ",", + l.y, + ") abc88" + ), t.updatedPath && (r = l.x, n = l.y); + } + c.attr("transform", `translate(${r}, ${n + i / 2})`); + } + if (e.startLabelLeft) { + const c = M[e.id].startLeft; + let r = e.x, n = e.y; + if (a) { + const l = tt.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", a); + r = l.x, n = l.y; + } + c.attr("transform", `translate(${r}, ${n})`); + } + if (e.startLabelRight) { + const c = M[e.id].startRight; + let r = e.x, n = e.y; + if (a) { + const l = tt.calcTerminalLabelPosition( + e.arrowTypeStart ? 10 : 0, + "start_right", + a + ); + r = l.x, n = l.y; + } + c.attr("transform", `translate(${r}, ${n})`); + } + if (e.endLabelLeft) { + const c = M[e.id].endLeft; + let r = e.x, n = e.y; + if (a) { + const l = tt.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", a); + r = l.x, n = l.y; + } + c.attr("transform", `translate(${r}, ${n})`); + } + if (e.endLabelRight) { + const c = M[e.id].endRight; + let r = e.x, n = e.y; + if (a) { + const l = tt.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", a); + r = l.x, n = l.y; + } + c.attr("transform", `translate(${r}, ${n})`); + } +}, "positionEdgeLabel"), Vr = /* @__PURE__ */ d((e, t) => { + const a = e.x, s = e.y, i = Math.abs(t.x - a), c = Math.abs(t.y - s), r = e.width / 2, n = e.height / 2; + return i >= r || c >= n; +}, "outsideNode"), Zr = /* @__PURE__ */ d((e, t, a) => { + k.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(t)} + insidePoint : ${JSON.stringify(a)} + node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`); + const s = e.x, i = e.y, c = Math.abs(s - a.x), r = e.width / 2; + let n = a.x < t.x ? r - c : r + c; + const l = e.height / 2, g = Math.abs(t.y - a.y), o = Math.abs(t.x - a.x); + if (Math.abs(i - t.y) * r > Math.abs(s - t.x) * l) { + let p = a.y < t.y ? t.y - l - i : i - l - t.y; + n = o * p / g; + const b = { + x: a.x < t.x ? a.x + n : a.x - o + n, + y: a.y < t.y ? a.y + g - p : a.y - g + p + }; + return n === 0 && (b.x = t.x, b.y = t.y), o === 0 && (b.x = t.x), g === 0 && (b.y = t.y), k.debug(`abc89 topp/bott calc, Q ${g}, q ${p}, R ${o}, r ${n}`, b), b; + } else { + a.x < t.x ? n = t.x - r - s : n = s - r - t.x; + let p = g * n / o, b = a.x < t.x ? a.x + o - n : a.x - o + n, x = a.y < t.y ? a.y + p : a.y - p; + return k.debug(`sides calc abc89, Q ${g}, q ${p}, R ${o}, r ${n}`, { _x: b, _y: x }), n === 0 && (b = t.x, x = t.y), o === 0 && (b = t.x), g === 0 && (x = t.y), { x: b, y: x }; + } +}, "intersection"), Wt = /* @__PURE__ */ d((e, t) => { + k.debug("abc88 cutPathAtIntersect", e, t); + let a = [], s = e[0], i = !1; + return e.forEach((c) => { + if (!Vr(t, c) && !i) { + const r = Zr(t, s, c); + let n = !1; + a.forEach((l) => { + n = n || l.x === r.x && l.y === r.y; + }), a.some((l) => l.x === r.x && l.y === r.y) || a.push(r), i = !0; + } else + s = c, i || a.push(c); + }), a; +}, "cutPathAtIntersect"), Gr = /* @__PURE__ */ d(function(e, t, a, s, i, c, r) { + let n = a.points; + k.debug("abc88 InsertEdge: edge=", a, "e=", t); + let l = !1; + const g = c.node(t.v); + var o = c.node(t.w); + o?.intersect && g?.intersect && (n = n.slice(1, a.points.length - 1), n.unshift(g.intersect(n[0])), n.push(o.intersect(n[n.length - 1]))), a.toCluster && (k.debug("to cluster abc88", s[a.toCluster]), n = Wt(a.points, s[a.toCluster].node), l = !0), a.fromCluster && (k.debug("from cluster abc88", s[a.fromCluster]), n = Wt(n.reverse(), s[a.fromCluster].node).reverse(), l = !0); + const p = n.filter((m) => !Number.isNaN(m.y)); + let b = Ue; + a.curve && (i === "graph" || i === "flowchart") && (b = a.curve); + const { x, y: w } = He(a), v = Ke().x(x).y(w).curve(b); + let S; + switch (a.thickness) { + case "normal": + S = "edge-thickness-normal"; + break; + case "thick": + S = "edge-thickness-thick"; + break; + case "invisible": + S = "edge-thickness-thick"; + break; + default: + S = ""; + } + switch (a.pattern) { + case "solid": + S += " edge-pattern-solid"; + break; + case "dotted": + S += " edge-pattern-dotted"; + break; + case "dashed": + S += " edge-pattern-dashed"; + break; + } + const _ = e.append("path").attr("d", v(p)).attr("id", a.id).attr("class", " " + S + (a.classes ? " " + a.classes : "")).attr("style", a.style); + let I = ""; + (A().flowchart.arrowMarkerAbsolute || A().state.arrowMarkerAbsolute) && (I = Xe(!0)), Hr(_, a, I, r, i); + let T = {}; + return l && (T.updatedPath = n), T.originalPath = a.points, T; +}, "insertEdge"), jr = /* @__PURE__ */ d((e) => { + const t = /* @__PURE__ */ new Set(); + for (const a of e) + switch (a) { + case "x": + t.add("right"), t.add("left"); + break; + case "y": + t.add("up"), t.add("down"); + break; + default: + t.add(a); + break; + } + return t; +}, "expandAndDeduplicateDirections"), qr = /* @__PURE__ */ d((e, t, a, s) => { + const i = jr(e), c = 2, r = t.height + 2 * a.padding, n = r / c, l = s ?? t.width + 2 * n + a.padding, g = a.padding / 2; + return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [ + // Bottom + { x: 0, y: 0 }, + { x: n, y: 0 }, + { x: l / 2, y: 2 * g }, + { x: l - n, y: 0 }, + { x: l, y: 0 }, + // Right + { x: l, y: -r / 3 }, + { x: l + 2 * g, y: -r / 2 }, + { x: l, y: -2 * r / 3 }, + { x: l, y: -r }, + // Top + { x: l - n, y: -r }, + { x: l / 2, y: -r - 2 * g }, + { x: n, y: -r }, + // Left + { x: 0, y: -r }, + { x: 0, y: -2 * r / 3 }, + { x: -2 * g, y: -r / 2 }, + { x: 0, y: -r / 3 } + ] : i.has("right") && i.has("left") && i.has("up") ? [ + { x: n, y: 0 }, + { x: l - n, y: 0 }, + { x: l, y: -r / 2 }, + { x: l - n, y: -r }, + { x: n, y: -r }, + { x: 0, y: -r / 2 } + ] : i.has("right") && i.has("left") && i.has("down") ? [ + { x: 0, y: 0 }, + { x: n, y: -r }, + { x: l - n, y: -r }, + { x: l, y: 0 } + ] : i.has("right") && i.has("up") && i.has("down") ? [ + { x: 0, y: 0 }, + { x: l, y: -n }, + { x: l, y: -r + n }, + { x: 0, y: -r } + ] : i.has("left") && i.has("up") && i.has("down") ? [ + { x: l, y: 0 }, + { x: 0, y: -n }, + { x: 0, y: -r + n }, + { x: l, y: -r } + ] : i.has("right") && i.has("left") ? [ + { x: n, y: 0 }, + { x: n, y: -g }, + { x: l - n, y: -g }, + { x: l - n, y: 0 }, + { x: l, y: -r / 2 }, + { x: l - n, y: -r }, + { x: l - n, y: -r + g }, + { x: n, y: -r + g }, + { x: n, y: -r }, + { x: 0, y: -r / 2 } + ] : i.has("up") && i.has("down") ? [ + // Bottom center + { x: l / 2, y: 0 }, + // Left pont of bottom arrow + { x: 0, y: -g }, + { x: n, y: -g }, + // Left top over vertical section + { x: n, y: -r + g }, + { x: 0, y: -r + g }, + // Top of arrow + { x: l / 2, y: -r }, + { x: l, y: -r + g }, + // Top of right vertical bar + { x: l - n, y: -r + g }, + { x: l - n, y: -g }, + { x: l, y: -g } + ] : i.has("right") && i.has("up") ? [ + { x: 0, y: 0 }, + { x: l, y: -n }, + { x: 0, y: -r } + ] : i.has("right") && i.has("down") ? [ + { x: 0, y: 0 }, + { x: l, y: 0 }, + { x: 0, y: -r } + ] : i.has("left") && i.has("up") ? [ + { x: l, y: 0 }, + { x: 0, y: -n }, + { x: l, y: -r } + ] : i.has("left") && i.has("down") ? [ + { x: l, y: 0 }, + { x: 0, y: 0 }, + { x: l, y: -r } + ] : i.has("right") ? [ + { x: n, y: -g }, + { x: n, y: -g }, + { x: l - n, y: -g }, + { x: l - n, y: 0 }, + { x: l, y: -r / 2 }, + { x: l - n, y: -r }, + { x: l - n, y: -r + g }, + // top left corner of arrow + { x: n, y: -r + g }, + { x: n, y: -r + g } + ] : i.has("left") ? [ + { x: n, y: 0 }, + { x: n, y: -g }, + // Two points, the right corners + { x: l - n, y: -g }, + { x: l - n, y: -r + g }, + { x: n, y: -r + g }, + { x: n, y: -r }, + { x: 0, y: -r / 2 } + ] : i.has("up") ? [ + // Bottom center + { x: n, y: -g }, + // Left top over vertical section + { x: n, y: -r + g }, + { x: 0, y: -r + g }, + // Top of arrow + { x: l / 2, y: -r }, + { x: l, y: -r + g }, + // Top of right vertical bar + { x: l - n, y: -r + g }, + { x: l - n, y: -g } + ] : i.has("down") ? [ + // Bottom center + { x: l / 2, y: 0 }, + // Left pont of bottom arrow + { x: 0, y: -g }, + { x: n, y: -g }, + // Left top over vertical section + { x: n, y: -r + g }, + { x: l - n, y: -r + g }, + { x: l - n, y: -g }, + { x: l, y: -g } + ] : [{ x: 0, y: 0 }]; +}, "getArrowPoints"); +function ge(e, t) { + return e.intersect(t); +} +d(ge, "intersectNode"); +var Jr = ge; +function de(e, t, a, s) { + var i = e.x, c = e.y, r = i - s.x, n = c - s.y, l = Math.sqrt(t * t * n * n + a * a * r * r), g = Math.abs(t * a * r / l); + s.x < i && (g = -g); + var o = Math.abs(t * a * n / l); + return s.y < c && (o = -o), { x: i + g, y: c + o }; +} +d(de, "intersectEllipse"); +var ue = de; +function pe(e, t, a) { + return ue(e, t, t, a); +} +d(pe, "intersectCircle"); +var Qr = pe; +function fe(e, t, a, s) { + var i, c, r, n, l, g, o, p, b, x, w, v, S, _, I; + if (i = t.y - e.y, r = e.x - t.x, l = t.x * e.y - e.x * t.y, b = i * a.x + r * a.y + l, x = i * s.x + r * s.y + l, !(b !== 0 && x !== 0 && vt(b, x)) && (c = s.y - a.y, n = a.x - s.x, g = s.x * a.y - a.x * s.y, o = c * e.x + n * e.y + g, p = c * t.x + n * t.y + g, !(o !== 0 && p !== 0 && vt(o, p)) && (w = i * n - c * r, w !== 0))) + return v = Math.abs(w / 2), S = r * g - n * l, _ = S < 0 ? (S - v) / w : (S + v) / w, S = c * l - i * g, I = S < 0 ? (S - v) / w : (S + v) / w, { x: _, y: I }; +} +d(fe, "intersectLine"); +function vt(e, t) { + return e * t > 0; +} +d(vt, "sameSign"); +var $r = fe, ta = xe; +function xe(e, t, a) { + var s = e.x, i = e.y, c = [], r = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY; + typeof t.forEach == "function" ? t.forEach(function(w) { + r = Math.min(r, w.x), n = Math.min(n, w.y); + }) : (r = Math.min(r, t.x), n = Math.min(n, t.y)); + for (var l = s - e.width / 2 - r, g = i - e.height / 2 - n, o = 0; o < t.length; o++) { + var p = t[o], b = t[o < t.length - 1 ? o + 1 : 0], x = $r( + e, + a, + { x: l + p.x, y: g + p.y }, + { x: l + b.x, y: g + b.y } + ); + x && c.push(x); + } + return c.length ? (c.length > 1 && c.sort(function(w, v) { + var S = w.x - a.x, _ = w.y - a.y, I = Math.sqrt(S * S + _ * _), T = v.x - a.x, m = v.y - a.y, u = Math.sqrt(T * T + m * m); + return I < u ? -1 : I === u ? 0 : 1; + }), c[0]) : e; +} +d(xe, "intersectPolygon"); +var ea = /* @__PURE__ */ d((e, t) => { + var a = e.x, s = e.y, i = t.x - a, c = t.y - s, r = e.width / 2, n = e.height / 2, l, g; + return Math.abs(c) * r > Math.abs(i) * n ? (c < 0 && (n = -n), l = c === 0 ? 0 : n * i / c, g = n) : (i < 0 && (r = -r), l = r, g = i === 0 ? 0 : r * c / i), { x: a + l, y: s + g }; +}, "intersectRect"), ra = ea, B = { + node: Jr, + circle: Qr, + ellipse: ue, + polygon: ta, + rect: ra +}, z = /* @__PURE__ */ d(async (e, t, a, s) => { + const i = A(); + let c; + const r = t.useHtmlLabels || P(i); + a ? c = a : c = "node default"; + const n = e.insert("g").attr("class", c).attr("id", t.domId || t.id), l = n.insert("g").attr("class", "label").attr("style", t.labelStyle); + let g; + t.labelText === void 0 ? g = "" : g = typeof t.labelText == "string" ? t.labelText : t.labelText[0]; + let o; + t.labelType === "markdown" ? o = Et( + l, + Rt(At(g), i), + { + useHtmlLabels: r, + width: t.width || i.flowchart.wrappingWidth, + classes: "markdown-node-label" + }, + i + ) : o = await U( + l, + Rt(At(g), i), + t.labelStyle, + !1, + s + ); + let p = o.getBBox(); + const b = t.padding / 2; + if (P(i)) { + const x = o.children[0], w = D(o); + await je(x, g), p = x.getBoundingClientRect(), w.attr("width", p.width), w.attr("height", p.height); + } + return r ? l.attr("transform", "translate(" + -p.width / 2 + ", " + -p.height / 2 + ")") : l.attr("transform", "translate(0, " + -p.height / 2 + ")"), t.centerLabel && l.attr("transform", "translate(" + -p.width / 2 + ", " + -p.height / 2 + ")"), l.insert("rect", ":first-child"), { shapeSvg: n, bbox: p, halfPadding: b, label: l }; +}, "labelHelper"), N = /* @__PURE__ */ d((e, t) => { + const a = t.node().getBBox(); + e.width = a.width, e.height = a.height; +}, "updateNodeBounds"); +function V(e, t, a, s) { + return e.insert("polygon", ":first-child").attr( + "points", + s.map(function(i) { + return i.x + "," + i.y; + }).join(" ") + ).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + a / 2 + ")"); +} +d(V, "insertPolygonShape"); +var aa = /* @__PURE__ */ d(async (e, t) => { + t.useHtmlLabels || P(A()) || (t.centerLabel = !0); + const { shapeSvg: s, bbox: i, halfPadding: c } = await z( + e, + t, + "node " + t.classes, + !0 + ); + k.info("Classes = ", t.classes); + const r = s.insert("rect", ":first-child"); + return r.attr("rx", t.rx).attr("ry", t.ry).attr("x", -i.width / 2 - c).attr("y", -i.height / 2 - c).attr("width", i.width + t.padding).attr("height", i.height + t.padding), N(t, r), t.intersect = function(n) { + return B.rect(t, n); + }, s; +}, "note"), sa = aa, Yt = /* @__PURE__ */ d((e) => e ? " " + e : "", "formatClass"), H = /* @__PURE__ */ d((e, t) => `${t || "node default"}${Yt(e.classes)} ${Yt( + e.class +)}`, "getClassesFromNode"), Ht = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s } = await z( + e, + t, + H(t, void 0), + !0 + ), i = s.width + t.padding, c = s.height + t.padding, r = i + c, n = [ + { x: r / 2, y: 0 }, + { x: r, y: -r / 2 }, + { x: r / 2, y: -r }, + { x: 0, y: -r / 2 } + ]; + k.info("Question main (Circle)"); + const l = V(a, r, r, n); + return l.attr("style", t.style), N(t, l), t.intersect = function(g) { + return k.warn("Intersect called"), B.polygon(t, n, g); + }, a; +}, "question"), ia = /* @__PURE__ */ d((e, t) => { + const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), s = 28, i = [ + { x: 0, y: s / 2 }, + { x: s / 2, y: 0 }, + { x: 0, y: -s / 2 }, + { x: -s / 2, y: 0 } + ]; + return a.insert("polygon", ":first-child").attr( + "points", + i.map(function(r) { + return r.x + "," + r.y; + }).join(" ") + ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(r) { + return B.circle(t, 14, r); + }, a; +}, "choice"), na = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s } = await z( + e, + t, + H(t, void 0), + !0 + ), i = 4, c = t.positioned ? t.height : s.height + t.padding, r = c / i, n = t.positioned ? t.width : s.width + 2 * r + t.padding, l = [ + { x: r, y: 0 }, + { x: n - r, y: 0 }, + { x: n, y: -c / 2 }, + { x: n - r, y: -c }, + { x: r, y: -c }, + { x: 0, y: -c / 2 } + ], g = V(a, n, c, l); + return g.attr("style", t.style), N(t, g), t.intersect = function(o) { + return B.polygon(t, l, o); + }, a; +}, "hexagon"), ca = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s } = await z(e, t, void 0, !0), i = 2, c = s.height + 2 * t.padding, r = c / i, n = s.width + 2 * r + t.padding, g = t.positioned && (t.widthInColumns ?? 1) > 1 && t.width > n ? t.width : n, o = qr(t.directions, s, t, g), p = V(a, g, c, o); + return p.attr("style", t.style), N(t, p), t.intersect = function(b) { + return B.polygon(t, o, b); + }, a; +}, "block_arrow"), la = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s } = await z( + e, + t, + H(t, void 0), + !0 + ), i = s.width + t.padding, c = s.height + t.padding, r = [ + { x: -c / 2, y: 0 }, + { x: i, y: 0 }, + { x: i, y: -c }, + { x: -c / 2, y: -c }, + { x: 0, y: -c / 2 } + ]; + return V(a, i, c, r).attr("style", t.style), t.width = i + c, t.height = c, t.intersect = function(l) { + return B.polygon(t, r, l); + }, a; +}, "rect_left_inv_arrow"), oa = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s } = await z(e, t, H(t), !0), i = s.width + t.padding, c = s.height + t.padding, r = [ + { x: -2 * c / 6, y: 0 }, + { x: i - c / 6, y: 0 }, + { x: i + 2 * c / 6, y: -c }, + { x: c / 6, y: -c } + ], n = V(a, i, c, r); + return n.attr("style", t.style), N(t, n), t.intersect = function(l) { + return B.polygon(t, r, l); + }, a; +}, "lean_right"), ha = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s } = await z( + e, + t, + H(t, void 0), + !0 + ), i = s.width + t.padding, c = s.height + t.padding, r = [ + { x: 2 * c / 6, y: 0 }, + { x: i + c / 6, y: 0 }, + { x: i - 2 * c / 6, y: -c }, + { x: -c / 6, y: -c } + ], n = V(a, i, c, r); + return n.attr("style", t.style), N(t, n), t.intersect = function(l) { + return B.polygon(t, r, l); + }, a; +}, "lean_left"), ga = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s } = await z( + e, + t, + H(t, void 0), + !0 + ), i = s.width + t.padding, c = s.height + t.padding, r = [ + { x: -2 * c / 6, y: 0 }, + { x: i + 2 * c / 6, y: 0 }, + { x: i - c / 6, y: -c }, + { x: c / 6, y: -c } + ], n = V(a, i, c, r); + return n.attr("style", t.style), N(t, n), t.intersect = function(l) { + return B.polygon(t, r, l); + }, a; +}, "trapezoid"), da = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s } = await z( + e, + t, + H(t, void 0), + !0 + ), i = s.width + t.padding, c = s.height + t.padding, r = [ + { x: c / 6, y: 0 }, + { x: i - c / 6, y: 0 }, + { x: i + 2 * c / 6, y: -c }, + { x: -2 * c / 6, y: -c } + ], n = V(a, i, c, r); + return n.attr("style", t.style), N(t, n), t.intersect = function(l) { + return B.polygon(t, r, l); + }, a; +}, "inv_trapezoid"), ua = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s } = await z( + e, + t, + H(t, void 0), + !0 + ), i = s.width + t.padding, c = s.height + t.padding, r = [ + { x: 0, y: 0 }, + { x: i + c / 2, y: 0 }, + { x: i, y: -c / 2 }, + { x: i + c / 2, y: -c }, + { x: 0, y: -c } + ], n = V(a, i, c, r); + return n.attr("style", t.style), N(t, n), t.intersect = function(l) { + return B.polygon(t, r, l); + }, a; +}, "rect_right_inv_arrow"), pa = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s } = await z( + e, + t, + H(t, void 0), + !0 + ), i = s.width + t.padding, c = i / 2, r = c / (2.5 + i / 50), n = s.height + r + t.padding, l = "M 0," + r + " a " + c + "," + r + " 0,0,0 " + i + " 0 a " + c + "," + r + " 0,0,0 " + -i + " 0 l 0," + n + " a " + c + "," + r + " 0,0,0 " + i + " 0 l 0," + -n, g = a.attr("label-offset-y", r).insert("path", ":first-child").attr("style", t.style).attr("d", l).attr("transform", "translate(" + -i / 2 + "," + -(n / 2 + r) + ")"); + return N(t, g), t.intersect = function(o) { + const p = B.rect(t, o), b = p.x - t.x; + if (c != 0 && (Math.abs(b) < t.width / 2 || Math.abs(b) == t.width / 2 && Math.abs(p.y - t.y) > t.height / 2 - r)) { + let x = r * r * (1 - b * b / (c * c)); + x != 0 && (x = Math.sqrt(x)), x = r - x, o.y - t.y > 0 && (x = -x), p.y += x; + } + return p; + }, a; +}, "cylinder"), fa = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s, halfPadding: i } = await z( + e, + t, + "node " + t.classes + " " + t.class, + !0 + ), c = a.insert("rect", ":first-child"), r = t.positioned ? t.width : s.width + t.padding, n = t.positioned ? t.height : s.height + t.padding, l = t.positioned ? -r / 2 : -s.width / 2 - i, g = t.positioned ? -n / 2 : -s.height / 2 - i; + if (c.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", g).attr("width", r).attr("height", n), t.props) { + const o = new Set(Object.keys(t.props)); + t.props.borders && (ht(c, t.props.borders, r, n), o.delete("borders")), o.forEach((p) => { + k.warn(`Unknown node property ${p}`); + }); + } + return N(t, c), t.intersect = function(o) { + return B.rect(t, o); + }, a; +}, "rect"), xa = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s, halfPadding: i } = await z( + e, + t, + "node " + t.classes, + !0 + ), c = a.insert("rect", ":first-child"), r = t.positioned ? t.width : s.width + t.padding, n = t.positioned ? t.height : s.height + t.padding, l = t.positioned ? -r / 2 : -s.width / 2 - i, g = t.positioned ? -n / 2 : -s.height / 2 - i; + if (c.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", g).attr("width", r).attr("height", n), t.props) { + const o = new Set(Object.keys(t.props)); + t.props.borders && (ht(c, t.props.borders, r, n), o.delete("borders")), o.forEach((p) => { + k.warn(`Unknown node property ${p}`); + }); + } + return N(t, c), t.intersect = function(o) { + return B.rect(t, o); + }, a; +}, "composite"), ya = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a } = await z(e, t, "label", !0); + k.trace("Classes = ", t.class); + const s = a.insert("rect", ":first-child"), i = 0, c = 0; + if (s.attr("width", i).attr("height", c), a.attr("class", "label edgeLabel"), t.props) { + const r = new Set(Object.keys(t.props)); + t.props.borders && (ht(s, t.props.borders, i, c), r.delete("borders")), r.forEach((n) => { + k.warn(`Unknown node property ${n}`); + }); + } + return N(t, s), t.intersect = function(r) { + return B.rect(t, r); + }, a; +}, "labelRect"); +function ht(e, t, a, s) { + const i = [], c = /* @__PURE__ */ d((n) => { + i.push(n, 0); + }, "addBorder"), r = /* @__PURE__ */ d((n) => { + i.push(0, n); + }, "skipBorder"); + t.includes("t") ? (k.debug("add top border"), c(a)) : r(a), t.includes("r") ? (k.debug("add right border"), c(s)) : r(s), t.includes("b") ? (k.debug("add bottom border"), c(a)) : r(a), t.includes("l") ? (k.debug("add left border"), c(s)) : r(s), e.attr("stroke-dasharray", i.join(" ")); +} +d(ht, "applyNodePropertyBorders"); +var ba = /* @__PURE__ */ d(async (e, t) => { + let a; + t.classes ? a = "node " + t.classes : a = "node default"; + const s = e.insert("g").attr("class", a).attr("id", t.domId || t.id), i = s.insert("rect", ":first-child"), c = s.insert("line"), r = s.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText; + let l = ""; + typeof n == "object" ? l = n[0] : l = n, k.info("Label text abc79", l, n, typeof n == "object"); + const g = await U(r, l, t.labelStyle, !0, !0); + let o = { width: 0, height: 0 }; + if (P(A())) { + const v = g.children[0], S = D(g); + o = v.getBoundingClientRect(), S.attr("width", o.width), S.attr("height", o.height); + } + k.info("Text 2", n); + const p = n.slice(1, n.length); + let b = g.getBBox(); + const x = await U( + r, + p.join ? p.join("<br/>") : p, + t.labelStyle, + !0, + !0 + ); + if (P(A())) { + const v = x.children[0], S = D(x); + o = v.getBoundingClientRect(), S.attr("width", o.width), S.attr("height", o.height); + } + const w = t.padding / 2; + return D(x).attr( + "transform", + "translate( " + // (titleBox.width - bbox.width) / 2 + + (o.width > b.width ? 0 : (b.width - o.width) / 2) + ", " + (b.height + w + 5) + ")" + ), D(g).attr( + "transform", + "translate( " + // (titleBox.width - bbox.width) / 2 + + (o.width < b.width ? 0 : -(b.width - o.width) / 2) + ", 0)" + ), o = r.node().getBBox(), r.attr( + "transform", + "translate(" + -o.width / 2 + ", " + (-o.height / 2 - w + 3) + ")" + ), i.attr("class", "outer title-state").attr("x", -o.width / 2 - w).attr("y", -o.height / 2 - w).attr("width", o.width + t.padding).attr("height", o.height + t.padding), c.attr("class", "divider").attr("x1", -o.width / 2 - w).attr("x2", o.width / 2 + w).attr("y1", -o.height / 2 - w + b.height + w).attr("y2", -o.height / 2 - w + b.height + w), N(t, i), t.intersect = function(v) { + return B.rect(t, v); + }, s; +}, "rectWithTitle"), wa = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s } = await z( + e, + t, + H(t, void 0), + !0 + ), i = s.height + t.padding, c = s.width + i / 4 + t.padding, r = a.insert("rect", ":first-child").attr("style", t.style).attr("rx", i / 2).attr("ry", i / 2).attr("x", -c / 2).attr("y", -i / 2).attr("width", c).attr("height", i); + return N(t, r), t.intersect = function(n) { + return B.rect(t, n); + }, a; +}, "stadium"), ma = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s, halfPadding: i } = await z( + e, + t, + H(t, void 0), + !0 + ), c = a.insert("circle", ":first-child"); + return c.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", s.width / 2 + i).attr("width", s.width + t.padding).attr("height", s.height + t.padding), k.info("Circle main"), N(t, c), t.intersect = function(r) { + return k.info("Circle intersect", t, s.width / 2 + i, r), B.circle(t, s.width / 2 + i, r); + }, a; +}, "circle"), Sa = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s, halfPadding: i } = await z( + e, + t, + H(t, void 0), + !0 + ), c = 5, r = a.insert("g", ":first-child"), n = r.insert("circle"), l = r.insert("circle"); + return r.attr("class", t.class), n.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", s.width / 2 + i + c).attr("width", s.width + t.padding + c * 2).attr("height", s.height + t.padding + c * 2), l.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", s.width / 2 + i).attr("width", s.width + t.padding).attr("height", s.height + t.padding), k.info("DoubleCircle main"), N(t, n), t.intersect = function(g) { + return k.info("DoubleCircle intersect", t, s.width / 2 + i + c, g), B.circle(t, s.width / 2 + i + c, g); + }, a; +}, "doublecircle"), La = /* @__PURE__ */ d(async (e, t) => { + const { shapeSvg: a, bbox: s } = await z( + e, + t, + H(t, void 0), + !0 + ), i = s.width + t.padding, c = s.height + t.padding, r = [ + { x: 0, y: 0 }, + { x: i, y: 0 }, + { x: i, y: -c }, + { x: 0, y: -c }, + { x: 0, y: 0 }, + { x: -8, y: 0 }, + { x: i + 8, y: 0 }, + { x: i + 8, y: -c }, + { x: -8, y: -c }, + { x: -8, y: 0 } + ], n = V(a, i, c, r); + return n.attr("style", t.style), N(t, n), t.intersect = function(l) { + return B.polygon(t, r, l); + }, a; +}, "subroutine"), ka = /* @__PURE__ */ d((e, t) => { + const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), s = a.insert("circle", ":first-child"); + return s.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), N(t, s), t.intersect = function(i) { + return B.circle(t, 7, i); + }, a; +}, "start"), Kt = /* @__PURE__ */ d((e, t, a) => { + const s = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id); + let i = 70, c = 10; + a === "LR" && (i = 10, c = 70); + const r = s.append("rect").attr("x", -1 * i / 2).attr("y", -1 * c / 2).attr("width", i).attr("height", c).attr("class", "fork-join"); + return N(t, r), t.height = t.height + t.padding / 2, t.width = t.width + t.padding / 2, t.intersect = function(n) { + return B.rect(t, n); + }, s; +}, "forkJoin"), va = /* @__PURE__ */ d((e, t) => { + const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), s = a.insert("circle", ":first-child"), i = a.insert("circle", ":first-child"); + return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), s.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), N(t, i), t.intersect = function(c) { + return B.circle(t, 7, c); + }, a; +}, "end"), Ea = /* @__PURE__ */ d(async (e, t) => { + const a = t.padding / 2, s = 4, i = 8; + let c; + t.classes ? c = "node " + t.classes : c = "node default"; + const r = e.insert("g").attr("class", c).attr("id", t.domId || t.id), n = r.insert("rect", ":first-child"), l = r.insert("line"), g = r.insert("line"); + let o = 0, p = s; + const b = r.insert("g").attr("class", "label"); + let x = 0; + const w = t.classData.annotations?.[0], v = t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", S = await U( + b, + v, + t.labelStyle, + !0, + !0 + ); + let _ = S.getBBox(); + if (P(A())) { + const E = S.children[0], h = D(S); + _ = E.getBoundingClientRect(), h.attr("width", _.width), h.attr("height", _.height); + } + t.classData.annotations[0] && (p += _.height + s, o += _.width); + let I = t.classData.label; + t.classData.type !== void 0 && t.classData.type !== "" && (P(A()) ? I += "<" + t.classData.type + ">" : I += "<" + t.classData.type + ">"); + const T = await U( + b, + I, + t.labelStyle, + !0, + !0 + ); + D(T).attr("class", "classTitle"); + let m = T.getBBox(); + if (P(A())) { + const E = T.children[0], h = D(T); + m = E.getBoundingClientRect(), h.attr("width", m.width), h.attr("height", m.height); + } + p += m.height + s, m.width > o && (o = m.width); + const u = []; + t.classData.members.forEach(async (E) => { + const h = E.getDisplayDetails(); + let W = h.displayText; + P(A()) && (W = W.replace(/</g, "<").replace(/>/g, ">")); + const f = await U( + b, + W, + h.cssStyle ? h.cssStyle : t.labelStyle, + !0, + !0 + ); + let O = f.getBBox(); + if (P(A())) { + const q = f.children[0], Z = D(f); + O = q.getBoundingClientRect(), Z.attr("width", O.width), Z.attr("height", O.height); + } + O.width > o && (o = O.width), p += O.height + s, u.push(f); + }), p += i; + const y = []; + if (t.classData.methods.forEach(async (E) => { + const h = E.getDisplayDetails(); + let W = h.displayText; + P(A()) && (W = W.replace(/</g, "<").replace(/>/g, ">")); + const f = await U( + b, + W, + h.cssStyle ? h.cssStyle : t.labelStyle, + !0, + !0 + ); + let O = f.getBBox(); + if (P(A())) { + const q = f.children[0], Z = D(f); + O = q.getBoundingClientRect(), Z.attr("width", O.width), Z.attr("height", O.height); + } + O.width > o && (o = O.width), p += O.height + s, y.push(f); + }), p += i, w) { + let E = (o - _.width) / 2; + D(S).attr( + "transform", + "translate( " + (-1 * o / 2 + E) + ", " + -1 * p / 2 + ")" + ), x = _.height + s; + } + let L = (o - m.width) / 2; + return D(T).attr( + "transform", + "translate( " + (-1 * o / 2 + L) + ", " + (-1 * p / 2 + x) + ")" + ), x += m.height + s, l.attr("class", "divider").attr("x1", -o / 2 - a).attr("x2", o / 2 + a).attr("y1", -p / 2 - a + i + x).attr("y2", -p / 2 - a + i + x), x += i, u.forEach((E) => { + D(E).attr( + "transform", + "translate( " + -o / 2 + ", " + (-1 * p / 2 + x + i / 2) + ")" + ); + const h = E?.getBBox(); + x += (h?.height ?? 0) + s; + }), x += i, g.attr("class", "divider").attr("x1", -o / 2 - a).attr("x2", o / 2 + a).attr("y1", -p / 2 - a + i + x).attr("y2", -p / 2 - a + i + x), x += i, y.forEach((E) => { + D(E).attr( + "transform", + "translate( " + -o / 2 + ", " + (-1 * p / 2 + x) + ")" + ); + const h = E?.getBBox(); + x += (h?.height ?? 0) + s; + }), n.attr("style", t.style).attr("class", "outer title-state").attr("x", -o / 2 - a).attr("y", -(p / 2) - a).attr("width", o + t.padding).attr("height", p + t.padding), N(t, n), t.intersect = function(E) { + return B.rect(t, E); + }, r; +}, "class_box"), Ut = { + rhombus: Ht, + composite: xa, + question: Ht, + rect: fa, + labelRect: ya, + rectWithTitle: ba, + choice: ia, + circle: ma, + doublecircle: Sa, + stadium: wa, + hexagon: na, + block_arrow: ca, + rect_left_inv_arrow: la, + lean_right: oa, + lean_left: ha, + trapezoid: ga, + inv_trapezoid: da, + rect_right_inv_arrow: ua, + cylinder: pa, + start: ka, + end: va, + note: sa, + subroutine: La, + fork: Kt, + join: Kt, + class_box: Ea +}, ct = {}, ye = /* @__PURE__ */ d(async (e, t, a) => { + let s, i; + if (t.link) { + let c; + A().securityLevel === "sandbox" ? c = "_top" : t.linkTarget && (c = t.linkTarget || "_blank"), s = e.insert("svg:a").attr("xlink:href", t.link).attr("target", c), i = await Ut[t.shape](s, t, a); + } else + i = await Ut[t.shape](e, t, a), s = i; + return t.tooltip && i.attr("title", t.tooltip), t.class && i.attr("class", "node default " + t.class), ct[t.id] = s, t.haveCallback && ct[t.id].attr("class", ct[t.id].attr("class") + " clickable"), s; +}, "insertNode"), _a = /* @__PURE__ */ d((e) => { + const t = ct[e.id]; + k.trace( + "Transforming node", + e.diff, + e, + "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")" + ); + const a = 8, s = e.diff || 0; + return e.clusterNode ? t.attr( + "transform", + "translate(" + (e.x + s - e.width / 2) + ", " + (e.y - e.height / 2 - a) + ")" + ) : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), s; +}, "positionNode"); +function It(e, t, a = !1) { + const s = e; + let i = "default"; + (s?.classes?.length || 0) > 0 && (i = (s?.classes ?? []).join(" ")), i = i + " flowchart-label"; + let c = 0, r = "", n; + switch (s.type) { + case "round": + c = 5, r = "rect"; + break; + case "composite": + c = 0, r = "composite", n = 0; + break; + case "square": + r = "rect"; + break; + case "diamond": + r = "question"; + break; + case "hexagon": + r = "hexagon"; + break; + case "block_arrow": + r = "block_arrow"; + break; + case "odd": + r = "rect_left_inv_arrow"; + break; + case "lean_right": + r = "lean_right"; + break; + case "lean_left": + r = "lean_left"; + break; + case "trapezoid": + r = "trapezoid"; + break; + case "inv_trapezoid": + r = "inv_trapezoid"; + break; + case "rect_left_inv_arrow": + r = "rect_left_inv_arrow"; + break; + case "circle": + r = "circle"; + break; + case "ellipse": + r = "ellipse"; + break; + case "stadium": + r = "stadium"; + break; + case "subroutine": + r = "subroutine"; + break; + case "cylinder": + r = "cylinder"; + break; + case "group": + r = "rect"; + break; + case "doublecircle": + r = "doublecircle"; + break; + default: + r = "rect"; + } + const l = Ge(s?.styles ?? []), g = s.label, o = s.size ?? { width: 0, height: 0, x: 0, y: 0 }, p = t.getDiagramId(); + return { + labelStyle: l.labelStyle, + shape: r, + labelText: g, + rx: c, + ry: c, + class: i, + style: l.style, + id: s.id, + domId: p ? `${p}-${s.id}` : s.id, + directions: s.directions, + width: o.width, + height: o.height, + x: o.x, + y: o.y, + positioned: a, + intersect: void 0, + type: s.type, + padding: n ?? at()?.block?.padding ?? 0, + widthInColumns: s.widthInColumns ?? 1 + }; +} +d(It, "getNodeFromBlock"); +async function be(e, t, a) { + const s = It(t, a, !1); + if (s.type === "group") + return; + const i = at(), c = await ye(e, s, { config: i }), r = c.node().getBBox(), n = a.getBlock(s.id); + n.size = { width: r.width, height: r.height, x: 0, y: 0, node: c }, a.setBlock(n), c.remove(); +} +d(be, "calculateBlockSize"); +async function we(e, t, a) { + const s = It(t, a, !0); + if (a.getBlock(s.id).type !== "space") { + const c = at(); + await ye(e, s, { config: c }), t.intersect = s?.intersect, _a(s); + } +} +d(we, "insertBlockPositioned"); +async function gt(e, t, a, s) { + for (const i of t) + await s(e, i, a), i.children && await gt(e, i.children, a, s); +} +d(gt, "performOperations"); +async function me(e, t, a) { + await gt(e, t, a, be); +} +d(me, "calculateBlockSizes"); +async function Se(e, t, a) { + await gt(e, t, a, we); +} +d(Se, "insertBlocks"); +async function Le(e, t, a, s, i) { + const c = new qe({ + multigraph: !0, + compound: !0 + }); + c.setGraph({ + rankdir: "TB", + nodesep: 10, + ranksep: 10, + marginx: 8, + marginy: 8 + }); + for (const r of a) + r.size && c.setNode(r.id, { + width: r.size.width, + height: r.size.height, + intersect: r.intersect + }); + for (const r of t) + if (r.start && r.end) { + const n = s.getBlock(r.start), l = s.getBlock(r.end); + if (n?.size && l?.size) { + const g = n.size, o = l.size, p = [ + { x: g.x, y: g.y }, + { x: g.x + (o.x - g.x) / 2, y: g.y + (o.y - g.y) / 2 }, + { x: o.x, y: o.y } + ], b = i ? `${i}-${r.id}` : r.id, x = r.thickness === "thick" ? "edge-thickness-thick" : "edge-thickness-normal", w = r.pattern === "dotted" ? "edge-pattern-dotted" : "edge-pattern-solid", v = `${x} ${w} flowchart-link LS-a1 LE-b1`; + Gr( + e, + { v: r.start, w: r.end, name: b }, + { + ...r, + id: b, + arrowTypeEnd: r.arrowTypeEnd, + arrowTypeStart: r.arrowTypeStart, + points: p, + classes: v + }, + void 0, + "block", + c, + i + ), r.label && (await Ur(e, { + ...r, + label: r.label, + labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;", + arrowTypeEnd: r.arrowTypeEnd, + arrowTypeStart: r.arrowTypeStart, + points: p, + classes: v + }), Xr( + { ...r, x: p[1].x, y: p[1].y }, + { + originalPath: p + } + )); + } + } +} +d(Le, "insertEdges"); +var Ta = /* @__PURE__ */ d(function(e, t) { + return t.db.getClasses(); +}, "getClasses"), Da = /* @__PURE__ */ d(async function(e, t, a, s) { + const { securityLevel: i, block: c } = at(), r = s.db; + r.setDiagramId(t); + let n; + i === "sandbox" && (n = D("#i" + t)); + const l = i === "sandbox" ? D(n.nodes()[0].contentDocument.body) : D("body"), g = i === "sandbox" ? l.select(`[id="${t}"]`) : D(`[id="${t}"]`); + Fr(g, ["point", "circle", "cross"], s.type, t); + const p = r.getBlocks(), b = r.getBlocksFlat(), x = r.getEdges(), w = g.insert("g").attr("class", "block"); + await me(w, p, r); + const v = he(r); + if (await Se(w, p, r), await Le(w, x, b, r, t), v) { + const S = v, _ = Math.max(1, Math.round(0.125 * (S.width / S.height))), I = S.height + _ + 10, T = S.width + 10, { useMaxWidth: m } = c; + Fe(g, I, T, !!m), k.debug("Here Bounds", v, S), g.attr( + "viewBox", + `${S.x - 5} ${S.y - 5} ${S.width + 10} ${S.height + 10}` + ); + } +}, "draw"), Ba = { + draw: Da, + getClasses: Ta +}, Ra = { + parser: sr, + db: Er, + renderer: Ba, + styles: Tr +}; +export { + Ra as diagram +}; diff --git a/src/wc-content-kit/public/mermaid/c4Diagram-AHTNJAMY-vnta9HxX.js b/src/wc-content-kit/public/mermaid/c4Diagram-AAUBKEIU-CTxgmMuv.js similarity index 99% rename from src/wc-content-kit/public/mermaid/c4Diagram-AHTNJAMY-vnta9HxX.js rename to src/wc-content-kit/public/mermaid/c4Diagram-AAUBKEIU-CTxgmMuv.js index ab7ef88..b82016f 100644 --- a/src/wc-content-kit/public/mermaid/c4Diagram-AHTNJAMY-vnta9HxX.js +++ b/src/wc-content-kit/public/mermaid/c4Diagram-AAUBKEIU-CTxgmMuv.js @@ -1,5 +1,5 @@ -import { g as Oe, d as Re } from "./chunk-YZCP3GAM-fs19uw3J.js"; -import { s as Se, g as De, a as Pe, b as Be, _ as y, c as Dt, d as Nt, l as he, e as Ie, f as Me, h as Tt, i as pe, j as Le, w as Ne, k as Jt, m as ue } from "./mermaid.core-Jw3znkh4.js"; +import { g as Oe, e as Re } from "./chunk-ND2GUHAM-B58vhIOR.js"; +import { b0 as Se, a1 as De, a2 as Pe, b1 as Be, b as y, a4 as Dt, a_ as Nt, aD as he, E as Ie, k as Me, r as Tt, aZ as pe, V as Le, bm as Ne, z as Jt, q as ue } from "./mermaid.core-FRDjOodn.js"; var jt = (function() { var e = /* @__PURE__ */ y(function(_t, x, v, E) { for (v = v || {}, E = _t.length; E--; v[_t[E]] = x) ; diff --git a/src/wc-content-kit/public/mermaid/channel-AMGqEurk.js b/src/wc-content-kit/public/mermaid/channel-AMGqEurk.js new file mode 100644 index 0000000..9d8f1b2 --- /dev/null +++ b/src/wc-content-kit/public/mermaid/channel-AMGqEurk.js @@ -0,0 +1,5 @@ +import { U as a, C as n } from "./mermaid.core-FRDjOodn.js"; +const t = (r, o) => a.lang.round(n.parse(r)[o]); +export { + t as c +}; diff --git a/src/wc-content-kit/public/mermaid/channel-Bbseqfbs.js b/src/wc-content-kit/public/mermaid/channel-Bbseqfbs.js deleted file mode 100644 index f491154..0000000 --- a/src/wc-content-kit/public/mermaid/channel-Bbseqfbs.js +++ /dev/null @@ -1,5 +0,0 @@ -import { aq as o, ar as n } from "./mermaid.core-Jw3znkh4.js"; -const t = (r, a) => o.lang.round(n.parse(r)[a]); -export { - t as c -}; diff --git a/src/wc-content-kit/public/mermaid/chunk-EDXVE4YY-j9tcUx_w.js b/src/wc-content-kit/public/mermaid/chunk-2J33WTMH-HCULbuMq.js similarity index 68% rename from src/wc-content-kit/public/mermaid/chunk-EDXVE4YY-j9tcUx_w.js rename to src/wc-content-kit/public/mermaid/chunk-2J33WTMH-HCULbuMq.js index 3531437..686ac59 100644 --- a/src/wc-content-kit/public/mermaid/chunk-EDXVE4YY-j9tcUx_w.js +++ b/src/wc-content-kit/public/mermaid/chunk-2J33WTMH-HCULbuMq.js @@ -1,9 +1,9 @@ -import { _ as a, e as w, l as x } from "./mermaid.core-Jw3znkh4.js"; -var d = /* @__PURE__ */ a((e, t, i, r) => { +import { b as a, E as w, aD as x } from "./mermaid.core-FRDjOodn.js"; +var g = /* @__PURE__ */ a((e, t, i, r) => { e.attr("class", i); const { width: o, height: h, x: n, y: c } = u(e, t); w(e, h, o, r); - const s = l(n, c, o, h, t); + const s = B(n, c, o, h, t); e.attr("viewBox", s), x.debug(`viewBox configured: ${s} with padding: ${t}`); }, "setupViewPortForSVG"), u = /* @__PURE__ */ a((e, t) => { const i = e.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 }; @@ -13,7 +13,7 @@ var d = /* @__PURE__ */ a((e, t, i, r) => { x: i.x, y: i.y }; -}, "calculateDimensionsWithPadding"), l = /* @__PURE__ */ a((e, t, i, r, o) => `${e - o} ${t - o} ${i} ${r}`, "createViewBox"); +}, "calculateDimensionsWithPadding"), B = /* @__PURE__ */ a((e, t, i, r, o) => `${e - o} ${t - o} ${i} ${r}`, "createViewBox"); export { - d as s + g as s }; diff --git a/src/wc-content-kit/public/mermaid/chunk-4BX2VUAB-OP5xfQzz.js b/src/wc-content-kit/public/mermaid/chunk-4BX2VUAB-CLXd73Dk.js similarity index 79% rename from src/wc-content-kit/public/mermaid/chunk-4BX2VUAB-OP5xfQzz.js rename to src/wc-content-kit/public/mermaid/chunk-4BX2VUAB-CLXd73Dk.js index 1d85237..8e5349a 100644 --- a/src/wc-content-kit/public/mermaid/chunk-4BX2VUAB-OP5xfQzz.js +++ b/src/wc-content-kit/public/mermaid/chunk-4BX2VUAB-CLXd73Dk.js @@ -1,4 +1,4 @@ -import { _ as i } from "./mermaid.core-Jw3znkh4.js"; +import { b as i } from "./mermaid.core-FRDjOodn.js"; function t(c, e) { c.accDescr && e.setAccDescription?.(c.accDescr), c.accTitle && e.setAccTitle?.(c.accTitle), c.title && e.setDiagramTitle?.(c.title); } diff --git a/src/wc-content-kit/public/mermaid/chunk-4TB4RGXK-DjOd3SS_.js b/src/wc-content-kit/public/mermaid/chunk-4TB4RGXK-DjOd3SS_.js deleted file mode 100644 index f03e717..0000000 --- a/src/wc-content-kit/public/mermaid/chunk-4TB4RGXK-DjOd3SS_.js +++ /dev/null @@ -1,1471 +0,0 @@ -import { g as Ze } from "./chunk-FMBD7UC4-GcD7N4Rf.js"; -import { c as $e } from "./chunk-YZCP3GAM-fs19uw3J.js"; -import { g as et } from "./chunk-55IACEB6-DuOOmvV2.js"; -import { s as tt } from "./chunk-EDXVE4YY-j9tcUx_w.js"; -import { _ as p, l as ve, c as D, o as st, r as it, u as Ie, d as he, y as at, b as rt, a as nt, s as ut, g as lt, p as ot, q as ct, k as v, z as ht, x as dt, i as pt, Q as G } from "./mermaid.core-Jw3znkh4.js"; -var Oe = (function() { - var e = /* @__PURE__ */ p(function(I, l, o, d) { - for (o = o || {}, d = I.length; d--; o[I[d]] = l) ; - return o; - }, "o"), i = [1, 18], n = [1, 19], u = [1, 20], a = [1, 41], h = [1, 26], A = [1, 42], g = [1, 24], y = [1, 25], L = [1, 32], O = [1, 33], pe = [1, 34], m = [1, 45], Ae = [1, 35], fe = [1, 36], ge = [1, 37], me = [1, 38], Ce = [1, 27], be = [1, 28], ke = [1, 29], Ee = [1, 30], Te = [1, 31], C = [1, 44], b = [1, 46], k = [1, 43], E = [1, 47], ye = [1, 9], c = [1, 8, 9], Z = [1, 58], $ = [1, 59], ee = [1, 60], te = [1, 61], se = [1, 62], De = [1, 63], Fe = [1, 64], S = [1, 8, 9, 41], we = [1, 77], P = [1, 8, 9, 12, 13, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], ie = [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], ae = [13, 60, 86, 100, 102, 103], U = [13, 60, 73, 74, 86, 100, 102, 103], Ve = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], re = [1, 102], z = [1, 120], Y = [1, 116], K = [1, 112], W = [1, 118], Q = [1, 113], j = [1, 114], X = [1, 115], q = [1, 117], H = [1, 119], Me = [22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Be = [1, 8, 9, 39, 41, 44, 46], ne = [1, 8, 9, 22], Pe = [1, 150], Re = [1, 8, 9, 61], N = [1, 8, 9, 22, 50, 60, 61, 82, 86, 87, 88, 89, 90], _e = { - trace: /* @__PURE__ */ p(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], [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: /* @__PURE__ */ p(function(l, o, d, r, f, t, J) { - var s = t.length - 1; - switch (f) { - case 8: - this.$ = t[s - 1]; - break; - case 9: - case 10: - case 13: - case 15: - this.$ = t[s]; - break; - case 11: - case 14: - this.$ = t[s - 2] + "." + t[s]; - break; - case 12: - case 16: - this.$ = t[s - 1] + t[s]; - break; - case 17: - case 18: - this.$ = t[s - 1] + "~" + t[s] + "~"; - break; - case 19: - r.addRelation(t[s]); - break; - case 20: - t[s - 1].title = r.cleanupLabel(t[s]), r.addRelation(t[s - 1]); - break; - case 31: - this.$ = t[s].trim(), r.setAccTitle(this.$); - break; - case 32: - case 33: - this.$ = t[s].trim(), r.setAccDescription(this.$); - break; - case 34: - r.addClassesToNamespace(t[s - 3], t[s - 1][0], t[s - 1][1]); - break; - case 35: - r.addClassesToNamespace(t[s - 4], t[s - 1][0], t[s - 1][1]); - break; - case 36: - this.$ = t[s], r.addNamespace(t[s]); - break; - case 37: - this.$ = [[t[s]], []]; - break; - case 38: - this.$ = [[t[s - 1]], []]; - break; - case 39: - t[s][0].unshift(t[s - 2]), this.$ = t[s]; - break; - case 40: - this.$ = [[], [t[s]]]; - break; - case 41: - this.$ = [[], [t[s - 1]]]; - break; - case 42: - t[s][1].unshift(t[s - 2]), this.$ = t[s]; - break; - case 44: - r.setCssClass(t[s - 2], t[s]); - break; - case 45: - r.addMembers(t[s - 3], t[s - 1]); - break; - case 47: - r.setCssClass(t[s - 5], t[s - 3]), r.addMembers(t[s - 5], t[s - 1]); - break; - case 48: - r.addAnnotation(t[s - 3], t[s - 1]); - break; - case 49: - r.addAnnotation(t[s - 6], t[s - 4]), r.addMembers(t[s - 6], t[s - 1]); - break; - case 50: - r.addAnnotation(t[s - 5], t[s - 3]); - break; - case 51: - this.$ = t[s], r.addClass(t[s]); - break; - case 52: - this.$ = t[s - 1], r.addClass(t[s - 1]), r.setClassLabel(t[s - 1], t[s]); - break; - case 56: - r.addAnnotation(t[s], t[s - 2]); - break; - case 57: - case 70: - this.$ = [t[s]]; - break; - case 58: - t[s].push(t[s - 1]), this.$ = t[s]; - break; - case 59: - break; - case 60: - r.addMember(t[s - 1], r.cleanupLabel(t[s])); - break; - case 61: - break; - case 62: - break; - case 63: - this.$ = { id1: t[s - 2], id2: t[s], relation: t[s - 1], relationTitle1: "none", relationTitle2: "none" }; - break; - case 64: - this.$ = { id1: t[s - 3], id2: t[s], relation: t[s - 1], relationTitle1: t[s - 2], relationTitle2: "none" }; - break; - case 65: - this.$ = { id1: t[s - 3], id2: t[s], relation: t[s - 2], relationTitle1: "none", relationTitle2: t[s - 1] }; - break; - case 66: - this.$ = { id1: t[s - 4], id2: t[s], relation: t[s - 2], relationTitle1: t[s - 3], relationTitle2: t[s - 1] }; - break; - case 67: - this.$ = r.addNote(t[s], t[s - 1]); - break; - case 68: - this.$ = r.addNote(t[s]); - break; - case 69: - this.$ = t[s - 2], r.defineClass(t[s - 1], t[s]); - break; - case 71: - this.$ = t[s - 2].concat([t[s]]); - break; - case 72: - r.setDirection("TB"); - break; - case 73: - r.setDirection("BT"); - break; - case 74: - r.setDirection("RL"); - break; - case 75: - r.setDirection("LR"); - break; - case 76: - this.$ = { type1: t[s - 2], type2: t[s], lineType: t[s - 1] }; - break; - case 77: - this.$ = { type1: "none", type2: t[s], lineType: t[s - 1] }; - break; - case 78: - this.$ = { type1: t[s - 1], type2: "none", lineType: t[s] }; - break; - case 79: - this.$ = { type1: "none", type2: "none", lineType: t[s] }; - break; - case 80: - this.$ = r.relationType.AGGREGATION; - break; - case 81: - this.$ = r.relationType.EXTENSION; - break; - case 82: - this.$ = r.relationType.COMPOSITION; - break; - case 83: - this.$ = r.relationType.DEPENDENCY; - break; - case 84: - this.$ = r.relationType.LOLLIPOP; - break; - case 85: - this.$ = r.lineType.LINE; - break; - case 86: - this.$ = r.lineType.DOTTED_LINE; - break; - case 87: - case 93: - this.$ = t[s - 2], r.setClickEvent(t[s - 1], t[s]); - break; - case 88: - case 94: - this.$ = t[s - 3], r.setClickEvent(t[s - 2], t[s - 1]), r.setTooltip(t[s - 2], t[s]); - break; - case 89: - this.$ = t[s - 2], r.setLink(t[s - 1], t[s]); - break; - case 90: - this.$ = t[s - 3], r.setLink(t[s - 2], t[s - 1], t[s]); - break; - case 91: - this.$ = t[s - 3], r.setLink(t[s - 2], t[s - 1]), r.setTooltip(t[s - 2], t[s]); - break; - case 92: - this.$ = t[s - 4], r.setLink(t[s - 3], t[s - 2], t[s]), r.setTooltip(t[s - 3], t[s - 1]); - break; - case 95: - this.$ = t[s - 3], r.setClickEvent(t[s - 2], t[s - 1], t[s]); - break; - case 96: - this.$ = t[s - 4], r.setClickEvent(t[s - 3], t[s - 2], t[s - 1]), r.setTooltip(t[s - 3], t[s]); - break; - case 97: - this.$ = t[s - 3], r.setLink(t[s - 2], t[s]); - break; - case 98: - this.$ = t[s - 4], r.setLink(t[s - 3], t[s - 1], t[s]); - break; - case 99: - this.$ = t[s - 4], r.setLink(t[s - 3], t[s - 1]), r.setTooltip(t[s - 3], t[s]); - break; - case 100: - this.$ = t[s - 5], r.setLink(t[s - 4], t[s - 2], t[s]), r.setTooltip(t[s - 4], t[s - 1]); - break; - case 101: - this.$ = t[s - 2], r.setCssStyle(t[s - 1], t[s]); - break; - case 102: - r.setCssClass(t[s - 1], t[s]); - break; - case 103: - this.$ = [t[s]]; - break; - case 104: - t[s - 2].push(t[s]), this.$ = t[s - 2]; - break; - case 106: - this.$ = t[s - 1] + t[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: n, 37: u, 38: 22, 42: a, 43: 23, 46: h, 48: A, 51: g, 52: y, 54: L, 56: O, 57: pe, 60: m, 62: Ae, 63: fe, 64: ge, 65: me, 75: Ce, 76: be, 78: ke, 82: Ee, 83: Te, 86: C, 100: b, 102: k, 103: E }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, e(ye, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, e(c, [2, 19], { 22: [1, 50] }), e(c, [2, 21]), e(c, [2, 22]), e(c, [2, 23]), e(c, [2, 24]), e(c, [2, 25]), e(c, [2, 26]), e(c, [2, 27]), e(c, [2, 28]), e(c, [2, 29]), e(c, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, e(c, [2, 33]), e(c, [2, 59], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: Z, 69: $, 70: ee, 71: te, 72: se, 73: De, 74: Fe }), { 39: [1, 65] }, e(S, [2, 43], { 39: [1, 67], 44: [1, 66], 46: [1, 68] }), e(c, [2, 61]), e(c, [2, 62]), { 16: 69, 60: m, 86: C, 100: b, 102: k }, { 16: 39, 17: 40, 19: 70, 60: m, 86: C, 100: b, 102: k, 103: E }, { 16: 39, 17: 40, 19: 71, 60: m, 86: C, 100: b, 102: k, 103: E }, { 16: 39, 17: 40, 19: 72, 60: m, 86: C, 100: b, 102: k, 103: E }, { 60: [1, 73] }, { 13: [1, 74] }, { 16: 39, 17: 40, 19: 75, 60: m, 86: C, 100: b, 102: k, 103: E }, { 13: we, 55: 76 }, { 58: 78, 60: [1, 79] }, e(c, [2, 72]), e(c, [2, 73]), e(c, [2, 74]), e(c, [2, 75]), e(P, [2, 13], { 16: 39, 17: 40, 19: 81, 18: [1, 80], 20: [1, 82], 60: m, 86: C, 100: b, 102: k, 103: E }), e(P, [2, 15], { 20: [1, 83] }), { 15: 84, 16: 85, 17: 86, 60: m, 86: C, 100: b, 102: k, 103: E }, { 16: 39, 17: 40, 19: 87, 60: m, 86: C, 100: b, 102: k, 103: E }, e(ie, [2, 129]), e(ie, [2, 130]), e(ie, [2, 131]), e(ie, [2, 132]), e([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 133]), e(ye, [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: n, 37: u, 42: a, 46: h, 48: A, 51: g, 52: y, 54: L, 56: O, 57: pe, 60: m, 62: Ae, 63: fe, 64: ge, 65: me, 75: Ce, 76: be, 78: ke, 82: Ee, 83: Te, 86: C, 100: b, 102: k, 103: E }), { 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: n, 37: u, 38: 22, 42: a, 43: 23, 46: h, 48: A, 51: g, 52: y, 54: L, 56: O, 57: pe, 60: m, 62: Ae, 63: fe, 64: ge, 65: me, 75: Ce, 76: be, 78: ke, 82: Ee, 83: Te, 86: C, 100: b, 102: k, 103: E }, e(c, [2, 20]), e(c, [2, 31]), e(c, [2, 32]), { 13: [1, 91], 16: 39, 17: 40, 19: 90, 60: m, 86: C, 100: b, 102: k, 103: E }, { 53: 92, 66: 56, 67: 57, 68: Z, 69: $, 70: ee, 71: te, 72: se, 73: De, 74: Fe }, e(c, [2, 60]), { 67: 93, 73: De, 74: Fe }, e(ae, [2, 79], { 66: 94, 68: Z, 69: $, 70: ee, 71: te, 72: se }), e(U, [2, 80]), e(U, [2, 81]), e(U, [2, 82]), e(U, [2, 83]), e(U, [2, 84]), e(Ve, [2, 85]), e(Ve, [2, 86]), { 8: [1, 96], 24: 97, 30: 98, 40: 95, 43: 23, 48: A, 54: L, 56: O }, { 16: 99, 60: m, 86: C, 100: b, 102: k }, { 41: [1, 101], 45: 100, 51: re }, { 16: 103, 60: m, 86: C, 100: b, 102: k }, { 47: [1, 104] }, { 13: [1, 105] }, { 13: [1, 106] }, { 79: [1, 107], 81: [1, 108] }, { 22: z, 50: Y, 59: 109, 60: K, 82: W, 84: 110, 85: 111, 86: Q, 87: j, 88: X, 89: q, 90: H }, { 60: [1, 121] }, { 13: we, 55: 122 }, e(S, [2, 68]), e(S, [2, 134]), { 22: z, 50: Y, 59: 123, 60: K, 61: [1, 124], 82: W, 84: 110, 85: 111, 86: Q, 87: j, 88: X, 89: q, 90: H }, e(Me, [2, 70]), { 16: 39, 17: 40, 19: 125, 60: m, 86: C, 100: b, 102: k, 103: E }, e(P, [2, 16]), e(P, [2, 17]), e(P, [2, 18]), { 39: [2, 36] }, { 15: 127, 16: 85, 17: 86, 18: [1, 126], 39: [2, 9], 60: m, 86: C, 100: b, 102: k, 103: E }, { 39: [2, 10] }, e(Be, [2, 51], { 11: 128, 12: [1, 129] }), e(ye, [2, 7]), { 9: [1, 130] }, e(ne, [2, 63]), { 16: 39, 17: 40, 19: 131, 60: m, 86: C, 100: b, 102: k, 103: E }, { 13: [1, 133], 16: 39, 17: 40, 19: 132, 60: m, 86: C, 100: b, 102: k, 103: E }, e(ae, [2, 78], { 66: 134, 68: Z, 69: $, 70: ee, 71: te, 72: se }), e(ae, [2, 77]), { 41: [1, 135] }, { 24: 97, 30: 98, 40: 136, 43: 23, 48: A, 54: L, 56: O }, { 8: [1, 137], 41: [2, 37] }, { 8: [1, 138], 41: [2, 40] }, e(S, [2, 44], { 39: [1, 139] }), { 41: [1, 140] }, e(S, [2, 46]), { 41: [2, 57], 45: 141, 51: re }, { 47: [1, 142] }, { 16: 39, 17: 40, 19: 143, 60: m, 86: C, 100: b, 102: k, 103: E }, e(c, [2, 87], { 13: [1, 144] }), e(c, [2, 89], { 13: [1, 146], 77: [1, 145] }), e(c, [2, 93], { 13: [1, 147], 80: [1, 148] }), { 13: [1, 149] }, e(c, [2, 101], { 61: Pe }), e(Re, [2, 103], { 85: 151, 22: z, 50: Y, 60: K, 82: W, 86: Q, 87: j, 88: X, 89: q, 90: H }), e(N, [2, 105]), e(N, [2, 107]), e(N, [2, 108]), e(N, [2, 109]), e(N, [2, 110]), e(N, [2, 111]), e(N, [2, 112]), e(N, [2, 113]), e(N, [2, 114]), e(N, [2, 115]), e(c, [2, 102]), e(S, [2, 67]), e(c, [2, 69], { 61: Pe }), { 60: [1, 152] }, e(P, [2, 14]), { 15: 153, 16: 85, 17: 86, 60: m, 86: C, 100: b, 102: k, 103: E }, { 39: [2, 12] }, e(Be, [2, 52]), { 13: [1, 154] }, { 1: [2, 4] }, e(ne, [2, 65]), e(ne, [2, 64]), { 16: 39, 17: 40, 19: 155, 60: m, 86: C, 100: b, 102: k, 103: E }, e(ae, [2, 76]), e(c, [2, 34]), { 41: [1, 156] }, { 24: 97, 30: 98, 40: 157, 41: [2, 38], 43: 23, 48: A, 54: L, 56: O }, { 24: 97, 30: 98, 40: 158, 41: [2, 41], 43: 23, 48: A, 54: L, 56: O }, { 45: 159, 51: re }, e(S, [2, 45]), { 41: [2, 58] }, e(S, [2, 48], { 39: [1, 160] }), e(c, [2, 56]), e(c, [2, 88]), e(c, [2, 90]), e(c, [2, 91], { 77: [1, 161] }), e(c, [2, 94]), e(c, [2, 95], { 13: [1, 162] }), e(c, [2, 97], { 13: [1, 164], 77: [1, 163] }), { 22: z, 50: Y, 60: K, 82: W, 84: 165, 85: 111, 86: Q, 87: j, 88: X, 89: q, 90: H }, e(N, [2, 106]), e(Me, [2, 71]), { 39: [2, 11] }, { 14: [1, 166] }, e(ne, [2, 66]), e(c, [2, 35]), { 41: [2, 39] }, { 41: [2, 42] }, { 41: [1, 167] }, { 41: [1, 169], 45: 168, 51: re }, e(c, [2, 92]), e(c, [2, 96]), e(c, [2, 98]), e(c, [2, 99], { 77: [1, 170] }), e(Re, [2, 104], { 85: 151, 22: z, 50: Y, 60: K, 82: W, 86: Q, 87: j, 88: X, 89: q, 90: H }), e(Be, [2, 8]), e(S, [2, 47]), { 41: [1, 171] }, e(S, [2, 50]), e(c, [2, 100]), e(S, [2, 49])], - defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 84: [2, 36], 86: [2, 10], 127: [2, 12], 130: [2, 4], 141: [2, 58], 153: [2, 11], 157: [2, 39], 158: [2, 42] }, - parseError: /* @__PURE__ */ p(function(l, o) { - if (o.recoverable) - this.trace(l); - else { - var d = new Error(l); - throw d.hash = o, d; - } - }, "parseError"), - parse: /* @__PURE__ */ p(function(l) { - var o = this, d = [0], r = [], f = [null], t = [], J = this.table, s = "", le = 0, Ge = 0, Xe = 2, Ue = 1, qe = t.slice.call(arguments, 1), T = Object.create(this.lexer), w = { yy: {} }; - for (var Se in this.yy) - Object.prototype.hasOwnProperty.call(this.yy, Se) && (w.yy[Se] = this.yy[Se]); - T.setInput(l, w.yy), w.yy.lexer = T, w.yy.parser = this, typeof T.yylloc > "u" && (T.yylloc = {}); - var Ne = T.yylloc; - t.push(Ne); - var He = T.options && T.options.ranges; - typeof w.yy.parseError == "function" ? this.parseError = w.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; - function Je(B) { - d.length = d.length - 2 * B, f.length = f.length - B, t.length = t.length - B; - } - p(Je, "popStack"); - function ze() { - var B; - return B = r.pop() || T.lex() || Ue, typeof B != "number" && (B instanceof Array && (r = B, B = r.pop()), B = o.symbols_[B] || B), B; - } - p(ze, "lex"); - for (var F, V, _, Le, R = {}, oe, x, Ye, ce; ; ) { - if (V = d[d.length - 1], this.defaultActions[V] ? _ = this.defaultActions[V] : ((F === null || typeof F > "u") && (F = ze()), _ = J[V] && J[V][F]), typeof _ > "u" || !_.length || !_[0]) { - var xe = ""; - ce = []; - for (oe in J[V]) - this.terminals_[oe] && oe > Xe && ce.push("'" + this.terminals_[oe] + "'"); - T.showPosition ? xe = "Parse error on line " + (le + 1) + `: -` + T.showPosition() + ` -Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : xe = "Parse error on line " + (le + 1) + ": Unexpected " + (F == Ue ? "end of input" : "'" + (this.terminals_[F] || F) + "'"), this.parseError(xe, { - text: T.match, - token: this.terminals_[F] || F, - line: T.yylineno, - loc: Ne, - expected: ce - }); - } - if (_[0] instanceof Array && _.length > 1) - throw new Error("Parse Error: multiple actions possible at state: " + V + ", token: " + F); - switch (_[0]) { - case 1: - d.push(F), f.push(T.yytext), t.push(T.yylloc), d.push(_[1]), F = null, Ge = T.yyleng, s = T.yytext, le = T.yylineno, Ne = T.yylloc; - break; - case 2: - if (x = this.productions_[_[1]][1], R.$ = f[f.length - x], R._$ = { - first_line: t[t.length - (x || 1)].first_line, - last_line: t[t.length - 1].last_line, - first_column: t[t.length - (x || 1)].first_column, - last_column: t[t.length - 1].last_column - }, He && (R._$.range = [ - t[t.length - (x || 1)].range[0], - t[t.length - 1].range[1] - ]), Le = this.performAction.apply(R, [ - s, - Ge, - le, - w.yy, - _[1], - f, - t - ].concat(qe)), typeof Le < "u") - return Le; - x && (d = d.slice(0, -1 * x * 2), f = f.slice(0, -1 * x), t = t.slice(0, -1 * x)), d.push(this.productions_[_[1]][0]), f.push(R.$), t.push(R._$), Ye = J[d[d.length - 2]][d[d.length - 1]], d.push(Ye); - break; - case 3: - return !0; - } - } - return !0; - }, "parse") - }, je = /* @__PURE__ */ (function() { - var I = { - EOF: 1, - parseError: /* @__PURE__ */ p(function(o, d) { - if (this.yy.parser) - this.yy.parser.parseError(o, d); - else - throw new Error(o); - }, "parseError"), - // resets the lexer, sets new input - setInput: /* @__PURE__ */ p(function(l, o) { - return this.yy = o || this.yy || {}, this._input = l, 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"), - // consumes and returns one char from the input - input: /* @__PURE__ */ p(function() { - var l = this._input[0]; - this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l; - var o = l.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), l; - }, "input"), - // unshifts one char (or a string) into the input - unput: /* @__PURE__ */ p(function(l) { - var o = l.length, d = l.split(/(?:\r\n?|\n)/g); - this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o; - var r = this.match.split(/(?:\r\n?|\n)/g); - this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), d.length - 1 && (this.yylineno -= d.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: d ? (d.length === r.length ? this.yylloc.first_column : 0) + r[r.length - d.length].length - d[0].length : this.yylloc.first_column - o - }, this.options.ranges && (this.yylloc.range = [f[0], f[0] + this.yyleng - o]), this.yyleng = this.yytext.length, this; - }, "unput"), - // When called from action, caches matched text and appends it on next action - more: /* @__PURE__ */ p(function() { - return this._more = !0, this; - }, "more"), - // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead. - reject: /* @__PURE__ */ p(function() { - if (this.options.backtrack_lexer) - this._backtrack = !0; - else - return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -` + this.showPosition(), { - text: "", - token: null, - line: this.yylineno - }); - return this; - }, "reject"), - // retain first n characters of the match - less: /* @__PURE__ */ p(function(l) { - this.unput(this.match.slice(l)); - }, "less"), - // displays already matched input, i.e. for error messages - pastInput: /* @__PURE__ */ p(function() { - var l = this.matched.substr(0, this.matched.length - this.match.length); - return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, ""); - }, "pastInput"), - // displays upcoming input, i.e. for error messages - upcomingInput: /* @__PURE__ */ p(function() { - var l = this.match; - return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, ""); - }, "upcomingInput"), - // displays the character position where the lexing error occurred, i.e. for error messages - showPosition: /* @__PURE__ */ p(function() { - var l = this.pastInput(), o = new Array(l.length + 1).join("-"); - return l + this.upcomingInput() + ` -` + o + "^"; - }, "showPosition"), - // test the lexed token: return FALSE when not a match, otherwise return token - test_match: /* @__PURE__ */ p(function(l, o) { - var d, r, 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))), r = l[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = { - first_line: this.yylloc.last_line, - last_line: this.yylineno + 1, - first_column: this.yylloc.last_column, - last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length - }, this.yytext += l[0], this.match += l[0], this.matches = l, 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(l[0].length), this.matched += l[0], d = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), d) - return d; - if (this._backtrack) { - for (var t in f) - this[t] = f[t]; - return !1; - } - return !1; - }, "test_match"), - // return next match in input - next: /* @__PURE__ */ p(function() { - if (this.done) - return this.EOF; - this._input || (this.done = !0); - var l, o, d, r; - this._more || (this.yytext = "", this.match = ""); - for (var f = this._currentRules(), t = 0; t < f.length; t++) - if (d = this._input.match(this.rules[f[t]]), d && (!o || d[0].length > o[0].length)) { - if (o = d, r = t, this.options.backtrack_lexer) { - if (l = this.test_match(d, f[t]), l !== !1) - return l; - if (this._backtrack) { - o = !1; - continue; - } else - return !1; - } else if (!this.options.flex) - break; - } - return o ? (l = this.test_match(o, f[r]), l !== !1 ? l : !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"), - // return next match that has a token - lex: /* @__PURE__ */ p(function() { - var o = this.next(); - return o || this.lex(); - }, "lex"), - // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack) - begin: /* @__PURE__ */ p(function(o) { - this.conditionStack.push(o); - }, "begin"), - // pop the previously active lexer condition state off the condition stack - popState: /* @__PURE__ */ p(function() { - var o = this.conditionStack.length - 1; - return o > 0 ? this.conditionStack.pop() : this.conditionStack[0]; - }, "popState"), - // produce the lexer rule set which is active for the currently active lexer condition state - _currentRules: /* @__PURE__ */ p(function() { - return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules; - }, "_currentRules"), - // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available - topState: /* @__PURE__ */ p(function(o) { - return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL"; - }, "topState"), - // alias for begin(condition) - pushState: /* @__PURE__ */ p(function(o) { - this.begin(o); - }, "pushState"), - // return the number of states currently on the stack - stateStackSize: /* @__PURE__ */ p(function() { - return this.conditionStack.length; - }, "stateStackSize"), - options: {}, - performAction: /* @__PURE__ */ p(function(o, d, r, f) { - switch (r) { - 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; - case 7: - return this.popState(), "acc_title_value"; - case 8: - return this.begin("acc_descr"), 35; - case 9: - return this.popState(), "acc_descr_value"; - 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; - case 30: - return this.popState(), 8; - case 31: - break; - case 32: - return this.begin("namespace-body"), 39; - case 33: - return this.popState(), 41; - case 34: - return "EOF_IN_STRUCT"; - case 35: - return 8; - case 36: - break; - case 37: - return "EDGE_STATE"; - case 38: - return this.begin("class"), 48; - case 39: - return this.popState(), 8; - case 40: - break; - case 41: - return this.popState(), this.popState(), 41; - case 42: - return this.begin("class-body"), 39; - case 43: - return this.popState(), 41; - case 44: - return "EOF_IN_STRUCT"; - case 45: - return "EDGE_STATE"; - case 46: - return "OPEN_IN_STRUCT"; - case 47: - break; - case 48: - return "MEMBER"; - case 49: - return 83; - case 50: - return 75; - case 51: - return 76; - case 52: - return 78; - case 53: - return 54; - case 54: - return 56; - case 55: - return 46; - case 56: - return 47; - case 57: - return 81; - case 58: - this.popState(); - break; - case 59: - return "GENERICTYPE"; - case 60: - this.begin("generic"); - break; - case 61: - this.popState(); - break; - case 62: - return "BQUOTE_STR"; - case 63: - this.begin("bqstring"); - break; - case 64: - return 77; - case 65: - return 77; - case 66: - return 77; - case 67: - return 77; - case 68: - return 69; - case 69: - return 69; - case 70: - return 71; - case 71: - return 71; - case 72: - return 70; - case 73: - return 68; - case 74: - return 72; - case 75: - return 73; - case 76: - return 74; - case 77: - return 22; - case 78: - return 44; - case 79: - return 100; - case 80: - return 18; - case 81: - return "PLUS"; - case 82: - return 87; - case 83: - return 61; - case 84: - return 89; - case 85: - return 89; - case 86: - return 90; - case 87: - return "EQUALS"; - case 88: - return "EQUALS"; - case 89: - return 60; - case 90: - return 12; - case 91: - return 14; - case 92: - return "PUNCTUATION"; - case 93: - return 86; - case 94: - return 102; - case 95: - return 50; - case 96: - return 50; - case 97: - 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, 33, 34, 35, 36, 37, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, namespace: { rules: [26, 29, 30, 31, 32, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, "class-body": { rules: [26, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, class: { rules: [26, 39, 40, 41, 42, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_descr: { rules: [9, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_title: { rules: [7, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, callback_args: { rules: [22, 23, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, callback_name: { rules: [19, 20, 21, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, href: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, struct: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, generic: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, bqstring: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, string: { rules: [24, 25, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 28, 29, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 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, 94, 95, 96, 97], inclusive: !0 } } - }; - return I; - })(); - _e.lexer = je; - function ue() { - this.yy = {}; - } - return p(ue, "Parser"), ue.prototype = _e, _e.Parser = ue, new ue(); -})(); -Oe.parser = Oe; -var yt = Oe, Ke = ["#", "+", "~", "-", ""], We = class { - static { - p(this, "ClassMember"); - } - constructor(e, i) { - this.memberType = i, this.visibility = "", this.classifier = "", this.text = ""; - const n = pt(e, D()); - this.parseMember(n); - } - getDisplayDetails() { - let e = this.visibility + G(this.id); - this.memberType === "method" && (e += `(${G(this.parameters.trim())})`, this.returnType && (e += " : " + G(this.returnType))), e = e.trim(); - const i = this.parseClassifier(); - return { - displayText: e, - cssStyle: i - }; - } - parseMember(e) { - let i = ""; - if (this.memberType === "method") { - const a = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e); - if (a) { - const h = a[1] ? a[1].trim() : ""; - if (Ke.includes(h) && (this.visibility = h), this.id = a[2], this.parameters = a[3] ? a[3].trim() : "", i = a[4] ? a[4].trim() : "", this.returnType = a[5] ? a[5].trim() : "", i === "") { - const A = this.returnType.substring(this.returnType.length - 1); - /[$*]/.exec(A) && (i = A, this.returnType = this.returnType.substring(0, this.returnType.length - 1)); - } - } - } else { - const u = e.length, a = e.substring(0, 1), h = e.substring(u - 1); - Ke.includes(a) && (this.visibility = a), /[$*]/.exec(h) && (i = h), this.id = e.substring( - this.visibility === "" ? 0 : 1, - i === "" ? u : u - 1 - ); - } - this.classifier = i, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim(); - const n = `${this.visibility ? "\\" + this.visibility : ""}${G(this.id)}${this.memberType === "method" ? `(${G(this.parameters)})${this.returnType ? " : " + G(this.returnType) : ""}` : ""}`; - this.text = n.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 ""; - } - } -}, de = "classId-", Qe = 0, M = /* @__PURE__ */ p((e) => v.sanitizeText(e, D()), "sanitizeText"), Dt = class { - constructor() { - this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, 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 = /* @__PURE__ */ p((e) => { - const i = $e(); - he(e).select("svg").selectAll("g").filter(function() { - return he(this).attr("title") !== null; - }).on("mouseover", (a) => { - const h = he(a.currentTarget), A = h.attr("title"); - if (!A) - return; - const g = a.currentTarget.getBoundingClientRect(); - i.transition().duration(200).style("opacity", ".9"), i.html(at.sanitize(A)).style("left", `${window.scrollX + g.left + g.width / 2}px`).style("top", `${window.scrollY + g.bottom + 4}px`), h.classed("hover", !0); - }).on("mouseout", (a) => { - i.transition().duration(500).style("opacity", 0), he(a.currentTarget).classed("hover", !1); - }); - }, "setupToolTips"), this.direction = "TB", this.setAccTitle = rt, this.getAccTitle = nt, this.setAccDescription = ut, this.getAccDescription = lt, this.setDiagramTitle = ot, this.getDiagramTitle = ct, this.getConfig = /* @__PURE__ */ p(() => D().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.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 { - p(this, "ClassDB"); - } - splitClassNameAndType(e) { - const i = v.sanitizeText(e, D()); - let n = "", u = i; - if (i.indexOf("~") > 0) { - const a = i.split("~"); - u = M(a[0]), n = M(a[1]); - } - return { className: u, type: n }; - } - setClassLabel(e, i) { - const n = v.sanitizeText(e, D()); - i && (i = M(i)); - const { className: u } = this.splitClassNameAndType(n); - this.classes.get(u).label = i, this.classes.get(u).text = `${i}${this.classes.get(u).type ? `<${this.classes.get(u).type}>` : ""}`; - } - /** - * Function called by parser when a node definition has been found. - * - * @param id - ID of the class to add - * @public - */ - addClass(e) { - const i = v.sanitizeText(e, D()), { className: n, type: u } = this.splitClassNameAndType(i); - if (this.classes.has(n)) - return; - const a = v.sanitizeText(n, D()); - this.classes.set(a, { - id: a, - type: u, - label: a, - text: `${a}${u ? `<${u}>` : ""}`, - shape: "classBox", - cssClasses: "default", - methods: [], - members: [], - annotations: [], - styles: [], - domId: de + a + "-" + Qe - }), Qe++; - } - addInterface(e, i) { - const n = { - id: `interface${this.interfaces.length}`, - label: e, - classId: i - }; - this.interfaces.push(n); - } - /** - * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness - * across multiple diagrams on the same page. - */ - setDiagramId(e) { - this.diagramId = e; - } - /** - * Function to lookup domId from id in the graph definition. - * When diagramId is set, returns the prefixed version for DOM uniqueness. - * - * @param id - class ID to lookup - * @public - */ - lookUpDomId(e) { - const i = v.sanitizeText(e, D()); - if (this.classes.has(i)) { - const n = this.classes.get(i).domId; - return this.diagramId ? `${this.diagramId}-${n}` : n; - } - throw new Error("Class not found: " + i); - } - clear() { - this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.diagramId = "", this.direction = "TB", ht(); - } - getClass(e) { - return this.classes.get(e); - } - getClasses() { - return this.classes; - } - getRelations() { - return this.relations; - } - getNote(e) { - const i = typeof e == "number" ? `note${e}` : e; - return this.notes.get(i); - } - getNotes() { - return this.notes; - } - addRelation(e) { - ve.debug("Adding relation: " + JSON.stringify(e)); - const i = [ - this.relationType.LOLLIPOP, - this.relationType.AGGREGATION, - this.relationType.COMPOSITION, - this.relationType.DEPENDENCY, - this.relationType.EXTENSION - ]; - e.relation.type1 === this.relationType.LOLLIPOP && !i.includes(e.relation.type2) ? (this.addClass(e.id2), this.addInterface(e.id1, e.id2), e.id1 = `interface${this.interfaces.length - 1}`) : e.relation.type2 === this.relationType.LOLLIPOP && !i.includes(e.relation.type1) ? (this.addClass(e.id1), this.addInterface(e.id2, e.id1), e.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(e.id1), this.addClass(e.id2)), e.id1 = this.splitClassNameAndType(e.id1).className, e.id2 = this.splitClassNameAndType(e.id2).className, e.relationTitle1 = v.sanitizeText( - e.relationTitle1.trim(), - D() - ), e.relationTitle2 = v.sanitizeText( - e.relationTitle2.trim(), - D() - ), this.relations.push(e); - } - /** - * Adds an annotation to the specified class Annotations mark special properties of the given type - * (like 'interface' or 'service') - * - * @param className - The class name - * @param annotation - The name of the annotation without any brackets - * @public - */ - addAnnotation(e, i) { - const n = this.splitClassNameAndType(e).className; - this.classes.get(n).annotations.push(i); - } - /** - * Adds a member to the specified class - * - * @param className - The class name - * @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is - * treated as an annotation If the member is ending with a closing bracket ) it is treated as a - * method Otherwise the member will be treated as a normal property - * @public - */ - addMember(e, i) { - this.addClass(e); - const n = this.splitClassNameAndType(e).className, u = this.classes.get(n); - if (typeof i == "string") { - const a = i.trim(); - a.startsWith("<<") && a.endsWith(">>") ? u.annotations.push(M(a.substring(2, a.length - 2))) : a.indexOf(")") > 0 ? u.methods.push(new We(a, "method")) : a && u.members.push(new We(a, "attribute")); - } - } - addMembers(e, i) { - Array.isArray(i) && (i.reverse(), i.forEach((n) => this.addMember(e, n))); - } - addNote(e, i) { - const n = this.notes.size, u = { - id: `note${n}`, - class: i, - text: e, - index: n - }; - return this.notes.set(u.id, u), u.id; - } - cleanupLabel(e) { - return e.startsWith(":") && (e = e.substring(1)), M(e.trim()); - } - /** - * Called by parser when assigning cssClass to a class - * - * @param ids - Comma separated list of ids - * @param className - Class to add - */ - setCssClass(e, i) { - e.split(",").forEach((n) => { - let u = n; - /\d/.exec(n[0]) && (u = de + u); - const a = this.classes.get(u); - a && (a.cssClasses += " " + i); - }); - } - defineClass(e, i) { - for (const n of e) { - let u = this.styleClasses.get(n); - u === void 0 && (u = { id: n, styles: [], textStyles: [] }, this.styleClasses.set(n, u)), i && i.forEach((a) => { - if (/color/.exec(a)) { - const h = a.replace("fill", "bgFill"); - u.textStyles.push(h); - } - u.styles.push(a); - }), this.classes.forEach((a) => { - a.cssClasses.includes(n) && a.styles.push(...i.flatMap((h) => h.split(","))); - }); - } - } - /** - * Called by parser when a tooltip is found, e.g. a clickable element. - * - * @param ids - Comma separated list of ids - * @param tooltip - Tooltip to add - */ - setTooltip(e, i) { - e.split(",").forEach((n) => { - i !== void 0 && (this.classes.get(n).tooltip = M(i)); - }); - } - getTooltip(e, i) { - return i && this.namespaces.has(i) ? this.namespaces.get(i).classes.get(e).tooltip : this.classes.get(e).tooltip; - } - /** - * Called by parser when a link is found. Adds the URL to the vertex data. - * - * @param ids - Comma separated list of ids - * @param linkStr - URL to create a link for - * @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file - */ - setLink(e, i, n) { - const u = D(); - e.split(",").forEach((a) => { - let h = a; - /\d/.exec(a[0]) && (h = de + h); - const A = this.classes.get(h); - A && (A.link = Ie.formatUrl(i, u), u.securityLevel === "sandbox" ? A.linkTarget = "_top" : typeof n == "string" ? A.linkTarget = M(n) : A.linkTarget = "_blank"); - }), this.setCssClass(e, "clickable"); - } - /** - * Called by parser when a click definition is found. Registers an event handler. - * - * @param ids - Comma separated list of ids - * @param functionName - Function to be called on click - * @param functionArgs - Function args the function should be called with - */ - setClickEvent(e, i, n) { - e.split(",").forEach((u) => { - this.setClickFunc(u, i, n), this.classes.get(u).haveCallback = !0; - }), this.setCssClass(e, "clickable"); - } - setClickFunc(e, i, n) { - const u = v.sanitizeText(e, D()); - if (D().securityLevel !== "loose" || i === void 0) - return; - const h = u; - if (this.classes.has(h)) { - let A = []; - if (typeof n == "string") { - A = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/); - for (let g = 0; g < A.length; g++) { - let y = A[g].trim(); - y.startsWith('"') && y.endsWith('"') && (y = y.substr(1, y.length - 2)), A[g] = y; - } - } - A.length === 0 && A.push(h), this.functions.push(() => { - const g = this.lookUpDomId(h), y = document.querySelector(`[id="${g}"]`); - y !== null && y.addEventListener( - "click", - () => { - Ie.runFunc(i, ...A); - }, - !1 - ); - }); - } - } - bindFunctions(e) { - this.functions.forEach((i) => { - i(e); - }); - } - // Utility function to escape HTML meta-characters - escapeHtml(e) { - return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"); - } - getDirection() { - return this.direction; - } - setDirection(e) { - this.direction = e; - } - /** - * Function called by parser when a namespace definition has been found. - * - * @param id - ID of the namespace to add - * @public - */ - addNamespace(e) { - this.namespaces.has(e) || (this.namespaces.set(e, { - id: e, - classes: /* @__PURE__ */ new Map(), - notes: /* @__PURE__ */ new Map(), - children: /* @__PURE__ */ new Map(), - domId: de + e + "-" + this.namespaceCounter - }), this.namespaceCounter++); - } - getNamespace(e) { - return this.namespaces.get(e); - } - getNamespaces() { - return this.namespaces; - } - /** - * Function called by parser when a namespace definition has been found. - * - * @param id - ID of the namespace to add - * @param classNames - IDs of the class to add - * @param noteNames - IDs of the notes to add - * @public - */ - addClassesToNamespace(e, i, n) { - if (this.namespaces.has(e)) { - for (const u of i) { - const { className: a } = this.splitClassNameAndType(u), h = this.getClass(a); - h.parent = e, this.namespaces.get(e).classes.set(a, h); - } - for (const u of n) { - const a = this.getNote(u); - a.parent = e, this.namespaces.get(e).notes.set(u, a); - } - } - } - setCssStyle(e, i) { - const n = this.classes.get(e); - if (!(!i || !n)) - for (const u of i) - u.includes(",") ? n.styles.push(...u.split(",")) : n.styles.push(u); - } - /** - * Gets the arrow marker for a type index - * - * @param type - The type to look for - * @returns The arrow marker - */ - getArrowMarker(e) { - let i; - switch (e) { - case 0: - i = "aggregation"; - break; - case 1: - i = "extension"; - break; - case 2: - i = "composition"; - break; - case 3: - i = "dependency"; - break; - case 4: - i = "lollipop"; - break; - default: - i = "none"; - } - return i; - } - getData() { - const e = [], i = [], n = D(); - for (const a of this.namespaces.values()) { - const h = { - id: a.id, - label: a.id, - isGroup: !0, - padding: n.class.padding ?? 16, - // parent node must be one of [rect, roundedWithTitle, noteGroup, divider] - shape: "rect", - cssStyles: [], - look: n.look - }; - e.push(h); - } - for (const a of this.classes.values()) { - const h = { - ...a, - type: void 0, - isGroup: !1, - parentId: a.parent, - look: n.look - }; - e.push(h); - } - for (const a of this.notes.values()) { - const h = { - id: a.id, - label: a.text, - isGroup: !1, - shape: "note", - padding: n.class.padding ?? 6, - cssStyles: [ - "text-align: left", - "white-space: nowrap", - `fill: ${n.themeVariables.noteBkgColor}`, - `stroke: ${n.themeVariables.noteBorderColor}` - ], - look: n.look, - parentId: a.parent, - labelType: "markdown" - }; - e.push(h); - const A = this.classes.get(a.class)?.id; - if (A) { - const g = { - id: `edgeNote${a.index}`, - start: a.id, - end: A, - type: "normal", - thickness: "normal", - classes: "relation", - arrowTypeStart: "none", - arrowTypeEnd: "none", - arrowheadStyle: "", - labelStyle: [""], - style: ["fill: none"], - pattern: "dotted", - look: n.look - }; - i.push(g); - } - } - for (const a of this.interfaces) { - const h = { - id: a.id, - label: a.label, - isGroup: !1, - shape: "rect", - cssStyles: ["opacity: 0;"], - look: n.look - }; - e.push(h); - } - let u = 0; - for (const a of this.relations) { - u++; - const h = { - id: dt(a.id1, a.id2, { - prefix: "id", - counter: u - }), - start: a.id1, - end: a.id2, - type: "normal", - label: a.title, - labelpos: "c", - thickness: "normal", - classes: "relation", - arrowTypeStart: this.getArrowMarker(a.relation.type1), - arrowTypeEnd: this.getArrowMarker(a.relation.type2), - startLabelRight: a.relationTitle1 === "none" ? "" : a.relationTitle1, - endLabelLeft: a.relationTitle2 === "none" ? "" : a.relationTitle2, - arrowheadStyle: "", - labelStyle: ["display: inline-block"], - style: a.style || "", - pattern: a.relation.lineType == 1 ? "dashed" : "solid", - look: n.look, - labelType: "markdown" - }; - i.push(h); - } - return { nodes: e, edges: i, other: {}, config: n, direction: this.getDirection() }; - } -}, At = /* @__PURE__ */ p((e) => `g.classGroup text { - fill: ${e.nodeBorder || e.classText}; - stroke: none; - font-family: ${e.fontFamily}; - font-size: 10px; - - .title { - font-weight: bolder; - } - -} - - .cluster-label text { - fill: ${e.titleColor}; - } - .cluster-label span { - color: ${e.titleColor}; - } - .cluster-label span p { - background-color: transparent; - } - - .cluster rect { - fill: ${e.clusterBkg}; - stroke: ${e.clusterBorder}; - stroke-width: 1px; - } - - .cluster text { - fill: ${e.titleColor}; - } - - .cluster span { - color: ${e.titleColor}; - } - -.nodeLabel, .edgeLabel { - color: ${e.classText}; -} - -.noteLabel .nodeLabel, .noteLabel .edgeLabel { - color: ${e.noteTextColor}; -} -.edgeLabel .label rect { - fill: ${e.mainBkg}; -} -.label text { - fill: ${e.classText}; -} - -.labelBkg { - background: ${e.mainBkg}; -} -.edgeLabel .label span { - background: ${e.mainBkg}; -} - -.classTitle { - font-weight: bolder; -} -.node rect, - .node circle, - .node ellipse, - .node polygon, - .node path { - fill: ${e.mainBkg}; - stroke: ${e.nodeBorder}; - stroke-width: ${e.strokeWidth}; - } - - -.divider { - stroke: ${e.nodeBorder}; - stroke-width: 1; -} - -g.clickable { - cursor: pointer; -} - -g.classGroup rect { - fill: ${e.mainBkg}; - stroke: ${e.nodeBorder}; -} - -g.classGroup line { - stroke: ${e.nodeBorder}; - stroke-width: 1; -} - -.classLabel .box { - stroke: none; - stroke-width: 0; - fill: ${e.mainBkg}; - opacity: 0.5; -} - -.classLabel .label { - fill: ${e.nodeBorder}; - font-size: 10px; -} - -.relation { - stroke: ${e.lineColor}; - stroke-width: ${e.strokeWidth}; - fill: none; -} - -.dashed-line{ - stroke-dasharray: 3; -} - -.dotted-line{ - stroke-dasharray: 1 2; -} - -[id$="-compositionStart"], .composition { - fill: ${e.lineColor} !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; -} - -[id$="-compositionEnd"], .composition { - fill: ${e.lineColor} !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; -} - -[id$="-dependencyStart"], .dependency { - fill: ${e.lineColor} !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; -} - -[id$="-dependencyEnd"], .dependency { - fill: ${e.lineColor} !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; -} - -[id$="-extensionStart"], .extension { - fill: transparent !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; -} - -[id$="-extensionEnd"], .extension { - fill: transparent !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; -} - -[id$="-aggregationStart"], .aggregation { - fill: transparent !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; -} - -[id$="-aggregationEnd"], .aggregation { - fill: transparent !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; -} - -[id$="-lollipopStart"], .lollipop { - fill: ${e.mainBkg} !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; -} - -[id$="-lollipopEnd"], .lollipop { - fill: ${e.mainBkg} !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; -} - -.edgeTerminals { - font-size: 11px; - line-height: initial; -} - -.classTitleText { - text-anchor: middle; - font-size: 18px; - fill: ${e.textColor}; -} - -.edgeLabel[data-look="neo"] { - background-color: ${e.edgeLabelBackground}; - p { - background-color: ${e.edgeLabelBackground}; - } - rect { - opacity: 0.5; - background-color: ${e.edgeLabelBackground}; - fill: ${e.edgeLabelBackground}; - } - text-align: center; -} - ${Ze()} -`, "getStyles"), Ft = At, ft = /* @__PURE__ */ p((e, i = "TB") => { - if (!e.doc) - return i; - let n = i; - for (const u of e.doc) - u.stmt === "dir" && (n = u.value); - return n; -}, "getDir"), gt = /* @__PURE__ */ p(function(e, i) { - return i.db.getClasses(); -}, "getClasses"), mt = /* @__PURE__ */ p(async function(e, i, n, u) { - ve.info("REF0:"), ve.info("Drawing class diagram (v3)", i); - const { securityLevel: a, state: h, layout: A } = D(); - u.db.setDiagramId(i); - const g = u.db.getData(), y = et(i, a); - g.type = u.type, g.layoutAlgorithm = st(A), g.nodeSpacing = h?.nodeSpacing || 50, g.rankSpacing = h?.rankSpacing || 50, g.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], g.diagramId = i, await it(g, y); - const L = 8; - Ie.insertTitle( - y, - "classDiagramTitleText", - h?.titleTopMargin ?? 25, - u.db.getDiagramTitle() - ), tt(y, L, "classDiagram", h?.useMaxWidth ?? !0); -}, "draw"), Bt = { - getClasses: gt, - draw: mt, - getDir: ft -}; -export { - Dt as C, - yt as a, - Bt as c, - Ft as s -}; diff --git a/src/wc-content-kit/public/mermaid/chunk-55IACEB6-DuOOmvV2.js b/src/wc-content-kit/public/mermaid/chunk-55IACEB6-Q791aHQa.js similarity index 63% rename from src/wc-content-kit/public/mermaid/chunk-55IACEB6-DuOOmvV2.js rename to src/wc-content-kit/public/mermaid/chunk-55IACEB6-Q791aHQa.js index 5ff495f..48a81fb 100644 --- a/src/wc-content-kit/public/mermaid/chunk-55IACEB6-DuOOmvV2.js +++ b/src/wc-content-kit/public/mermaid/chunk-55IACEB6-Q791aHQa.js @@ -1,8 +1,8 @@ -import { _ as a, d as o } from "./mermaid.core-Jw3znkh4.js"; -var d = /* @__PURE__ */ a((t, e) => { +import { b as a, a_ as o } from "./mermaid.core-FRDjOodn.js"; +var g = /* @__PURE__ */ a((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 { - d as g + g }; diff --git a/src/wc-content-kit/public/mermaid/chunk-727SXJPM-CJV9r5TJ.js b/src/wc-content-kit/public/mermaid/chunk-727SXJPM-CJV9r5TJ.js new file mode 100644 index 0000000..bfacf23 --- /dev/null +++ b/src/wc-content-kit/public/mermaid/chunk-727SXJPM-CJV9r5TJ.js @@ -0,0 +1,1534 @@ +import { g as tt } from "./chunk-FMBD7UC4-BsNoqpHi.js"; +import { c as st } from "./chunk-ND2GUHAM-B58vhIOR.js"; +import { g as it } from "./chunk-55IACEB6-Q791aHQa.js"; +import { s as at } from "./chunk-2J33WTMH-HCULbuMq.js"; +import { b as f, aD as Ie, a4 as F, aa as rt, aV as nt, bk as Oe, a_ as de, aR as ut, b1 as lt, a2 as ct, b0 as ot, a1 as ht, b3 as dt, a5 as pt, z as I, t as At, a6 as ft, aZ as gt, aN as G } from "./mermaid.core-FRDjOodn.js"; +var we = (function() { + var t = /* @__PURE__ */ f(function(O, o, h, p) { + for (h = h || {}, p = O.length; p--; h[O[p]] = o) ; + return h; + }, "o"), i = [1, 18], a = [1, 19], r = [1, 20], n = [1, 41], c = [1, 26], l = [1, 42], d = [1, 24], m = [1, 25], g = [1, 32], N = [1, 33], Ae = [1, 34], b = [1, 45], fe = [1, 35], ge = [1, 36], me = [1, 37], Ce = [1, 38], be = [1, 27], ke = [1, 28], Ee = [1, 29], Te = [1, 30], ye = [1, 31], k = [1, 44], E = [1, 46], T = [1, 43], y = [1, 47], De = [1, 9], A = [1, 8, 9], Z = [1, 58], $ = [1, 59], ee = [1, 60], te = [1, 61], se = [1, 62], Fe = [1, 63], Be = [1, 64], _ = [1, 8, 9, 41], Pe = [1, 77], M = [1, 8, 9, 12, 13, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], ie = [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], ae = [13, 60, 86, 100, 102, 103], U = [13, 60, 73, 74, 86, 100, 102, 103], Me = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], re = [1, 103], z = [1, 121], Y = [1, 117], K = [1, 113], W = [1, 119], Q = [1, 114], j = [1, 115], X = [1, 116], q = [1, 118], H = [1, 120], Re = [22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Ge = [1, 128], ne = [12, 39], _e = [1, 8, 9, 39, 41, 44, 46], ue = [1, 8, 9, 22], Ue = [1, 153], ze = [1, 8, 9, 61], x = [1, 8, 9, 22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Se = { + trace: /* @__PURE__ */ f(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: /* @__PURE__ */ f(function(o, h, p, u, C, e, J) { + var s = e.length - 1; + switch (C) { + 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: + u.addRelation(e[s]); + break; + case 20: + e[s - 1].title = u.cleanupLabel(e[s]), u.addRelation(e[s - 1]); + break; + case 31: + this.$ = e[s].trim(), u.setAccTitle(this.$); + break; + case 32: + case 33: + this.$ = e[s].trim(), u.setAccDescription(this.$); + break; + case 34: + u.addClassesToNamespace(e[s - 3], e[s - 1][0], e[s - 1][1]), u.popNamespace(); + break; + case 35: + u.addClassesToNamespace(e[s - 4], e[s - 1][0], e[s - 1][1]), u.popNamespace(); + break; + case 36: + this.$ = u.addNamespace(e[s]); + break; + case 37: + this.$ = u.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: + u.setCssClass(e[s - 2], e[s]); + break; + case 49: + u.addMembers(e[s - 3], e[s - 1]); + break; + case 51: + u.setCssClass(e[s - 5], e[s - 3]), u.addMembers(e[s - 5], e[s - 1]); + break; + case 52: + u.addAnnotation(e[s - 3], e[s - 1]); + break; + case 53: + u.addAnnotation(e[s - 6], e[s - 4]), u.addMembers(e[s - 6], e[s - 1]); + break; + case 54: + u.addAnnotation(e[s - 5], e[s - 3]); + break; + case 55: + this.$ = e[s], u.addClass(e[s]); + break; + case 56: + this.$ = e[s - 1], u.addClass(e[s - 1]), u.setClassLabel(e[s - 1], e[s]); + break; + case 60: + u.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: + u.addMember(e[s - 1], u.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.$ = u.addNote(e[s], e[s - 1]); + break; + case 72: + this.$ = u.addNote(e[s]); + break; + case 73: + this.$ = e[s - 2], u.defineClass(e[s - 1], e[s]); + break; + case 75: + this.$ = e[s - 2].concat([e[s]]); + break; + case 76: + u.setDirection("TB"); + break; + case 77: + u.setDirection("BT"); + break; + case 78: + u.setDirection("RL"); + break; + case 79: + u.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.$ = u.relationType.AGGREGATION; + break; + case 85: + this.$ = u.relationType.EXTENSION; + break; + case 86: + this.$ = u.relationType.COMPOSITION; + break; + case 87: + this.$ = u.relationType.DEPENDENCY; + break; + case 88: + this.$ = u.relationType.LOLLIPOP; + break; + case 89: + this.$ = u.lineType.LINE; + break; + case 90: + this.$ = u.lineType.DOTTED_LINE; + break; + case 91: + case 97: + this.$ = e[s - 2], u.setClickEvent(e[s - 1], e[s]); + break; + case 92: + case 98: + this.$ = e[s - 3], u.setClickEvent(e[s - 2], e[s - 1]), u.setTooltip(e[s - 2], e[s]); + break; + case 93: + this.$ = e[s - 2], u.setLink(e[s - 1], e[s]); + break; + case 94: + this.$ = e[s - 3], u.setLink(e[s - 2], e[s - 1], e[s]); + break; + case 95: + this.$ = e[s - 3], u.setLink(e[s - 2], e[s - 1]), u.setTooltip(e[s - 2], e[s]); + break; + case 96: + this.$ = e[s - 4], u.setLink(e[s - 3], e[s - 2], e[s]), u.setTooltip(e[s - 3], e[s - 1]); + break; + case 99: + this.$ = e[s - 3], u.setClickEvent(e[s - 2], e[s - 1], e[s]); + break; + case 100: + this.$ = e[s - 4], u.setClickEvent(e[s - 3], e[s - 2], e[s - 1]), u.setTooltip(e[s - 3], e[s]); + break; + case 101: + this.$ = e[s - 3], u.setLink(e[s - 2], e[s]); + break; + case 102: + this.$ = e[s - 4], u.setLink(e[s - 3], e[s - 1], e[s]); + break; + case 103: + this.$ = e[s - 4], u.setLink(e[s - 3], e[s - 1]), u.setTooltip(e[s - 3], e[s]); + break; + case 104: + this.$ = e[s - 5], u.setLink(e[s - 4], e[s - 2], e[s]), u.setTooltip(e[s - 4], e[s - 1]); + break; + case 105: + this.$ = e[s - 2], u.setCssStyle(e[s - 1], e[s]); + break; + case 106: + u.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: c, 48: l, 51: d, 52: m, 54: g, 56: N, 57: Ae, 60: b, 62: fe, 63: ge, 64: me, 65: Ce, 75: be, 76: ke, 78: Ee, 82: Te, 83: ye, 86: k, 100: E, 102: T, 103: y }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, t(De, [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: Z, 69: $, 70: ee, 71: te, 72: se, 73: Fe, 74: Be }), { 39: [1, 65] }, t(_, [2, 47], { 39: [1, 67], 44: [1, 66], 46: [1, 68] }), t(A, [2, 65]), t(A, [2, 66]), { 16: 69, 60: b, 86: k, 100: E, 102: T }, { 16: 39, 17: 40, 19: 70, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 71, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 72, 60: b, 86: k, 100: E, 102: T, 103: y }, { 60: [1, 73] }, { 13: [1, 74] }, { 16: 39, 17: 40, 19: 75, 60: b, 86: k, 100: E, 102: T, 103: y }, { 13: Pe, 55: 76 }, { 58: 78, 60: [1, 79] }, t(A, [2, 76]), t(A, [2, 77]), t(A, [2, 78]), t(A, [2, 79]), t(M, [2, 13], { 16: 39, 17: 40, 19: 81, 18: [1, 80], 20: [1, 82], 60: b, 86: k, 100: E, 102: T, 103: y }), t(M, [2, 15], { 20: [1, 83] }), { 15: 84, 16: 85, 17: 86, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 87, 60: b, 86: k, 100: E, 102: T, 103: y }, t(ie, [2, 133]), t(ie, [2, 134]), t(ie, [2, 135]), t(ie, [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(De, [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: c, 48: l, 51: d, 52: m, 54: g, 56: N, 57: Ae, 60: b, 62: fe, 63: ge, 64: me, 65: Ce, 75: be, 76: ke, 78: Ee, 82: Te, 83: ye, 86: k, 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: c, 48: l, 51: d, 52: m, 54: g, 56: N, 57: Ae, 60: b, 62: fe, 63: ge, 64: me, 65: Ce, 75: be, 76: ke, 78: Ee, 82: Te, 83: ye, 86: k, 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: b, 86: k, 100: E, 102: T, 103: y }, { 53: 92, 66: 56, 67: 57, 68: Z, 69: $, 70: ee, 71: te, 72: se, 73: Fe, 74: Be }, t(A, [2, 64]), { 67: 93, 73: Fe, 74: Be }, t(ae, [2, 83], { 66: 94, 68: Z, 69: $, 70: ee, 71: te, 72: se }), t(U, [2, 84]), t(U, [2, 85]), t(U, [2, 86]), t(U, [2, 87]), t(U, [2, 88]), t(Me, [2, 89]), t(Me, [2, 90]), { 8: [1, 96], 23: 99, 24: 97, 30: 98, 38: 22, 40: 95, 42: n, 43: 23, 48: l, 54: g, 56: N }, { 16: 100, 60: b, 86: k, 100: E, 102: T }, { 41: [1, 102], 45: 101, 51: re }, { 16: 104, 60: b, 86: k, 100: E, 102: T }, { 47: [1, 105] }, { 13: [1, 106] }, { 13: [1, 107] }, { 79: [1, 108], 81: [1, 109] }, { 22: z, 50: Y, 59: 110, 60: K, 82: W, 84: 111, 85: 112, 86: Q, 87: j, 88: X, 89: q, 90: H }, { 60: [1, 122] }, { 13: Pe, 55: 123 }, t(_, [2, 72]), t(_, [2, 138]), { 22: z, 50: Y, 59: 124, 60: K, 61: [1, 125], 82: W, 84: 111, 85: 112, 86: Q, 87: j, 88: X, 89: q, 90: H }, t(Re, [2, 74]), { 16: 39, 17: 40, 19: 126, 60: b, 86: k, 100: E, 102: T, 103: y }, t(M, [2, 16]), t(M, [2, 17]), t(M, [2, 18]), { 11: 127, 12: Ge, 39: [2, 36] }, t(ne, [2, 9], { 16: 85, 17: 86, 15: 130, 18: [1, 129], 60: b, 86: k, 100: E, 102: T, 103: y }), t(ne, [2, 10]), t(_e, [2, 55], { 11: 131, 12: Ge }), t(De, [2, 7]), { 9: [1, 132] }, t(ue, [2, 67]), { 16: 39, 17: 40, 19: 133, 60: b, 86: k, 100: E, 102: T, 103: y }, { 13: [1, 135], 16: 39, 17: 40, 19: 134, 60: b, 86: k, 100: E, 102: T, 103: y }, t(ae, [2, 82], { 66: 136, 68: Z, 69: $, 70: ee, 71: te, 72: se }), t(ae, [2, 81]), { 41: [1, 137] }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 138, 42: n, 43: 23, 48: l, 54: g, 56: N }, { 8: [1, 139], 41: [2, 38] }, { 8: [1, 140], 41: [2, 41] }, { 8: [1, 141], 41: [2, 44] }, t(_, [2, 48], { 39: [1, 142] }), { 41: [1, 143] }, t(_, [2, 50]), { 41: [2, 61], 45: 144, 51: re }, { 47: [1, 145] }, { 16: 39, 17: 40, 19: 146, 60: b, 86: k, 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: Ue }), t(ze, [2, 107], { 85: 154, 22: z, 50: Y, 60: K, 82: W, 86: Q, 87: j, 88: X, 89: q, 90: H }), 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(_, [2, 71]), t(A, [2, 73], { 61: Ue }), { 60: [1, 155] }, t(M, [2, 14]), { 39: [2, 37] }, { 13: [1, 156] }, { 15: 157, 16: 85, 17: 86, 60: b, 86: k, 100: E, 102: T, 103: y }, t(ne, [2, 12]), t(_e, [2, 56]), { 1: [2, 4] }, t(ue, [2, 69]), t(ue, [2, 68]), { 16: 39, 17: 40, 19: 158, 60: b, 86: k, 100: E, 102: T, 103: y }, t(ae, [2, 80]), t(_, [2, 34]), { 41: [1, 159] }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 160, 41: [2, 39], 42: n, 43: 23, 48: l, 54: g, 56: N }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 161, 41: [2, 42], 42: n, 43: 23, 48: l, 54: g, 56: N }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 162, 41: [2, 45], 42: n, 43: 23, 48: l, 54: g, 56: N }, { 45: 163, 51: re }, t(_, [2, 49]), { 41: [2, 62] }, t(_, [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: z, 50: Y, 60: K, 82: W, 84: 169, 85: 112, 86: Q, 87: j, 88: X, 89: q, 90: H }, t(x, [2, 110]), t(Re, [2, 75]), { 14: [1, 170] }, t(ne, [2, 11]), t(ue, [2, 70]), t(_, [2, 35]), { 41: [2, 40] }, { 41: [2, 43] }, { 41: [2, 46] }, { 41: [1, 171] }, { 41: [1, 173], 45: 172, 51: re }, t(A, [2, 96]), t(A, [2, 100]), t(A, [2, 102]), t(A, [2, 103], { 77: [1, 174] }), t(ze, [2, 108], { 85: 154, 22: z, 50: Y, 60: K, 82: W, 86: Q, 87: j, 88: X, 89: q, 90: H }), t(_e, [2, 8]), t(_, [2, 51]), { 41: [1, 175] }, t(_, [2, 54]), t(A, [2, 104]), t(_, [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: /* @__PURE__ */ f(function(o, h) { + if (h.recoverable) + this.trace(o); + else { + var p = new Error(o); + throw p.hash = h, p; + } + }, "parseError"), + parse: /* @__PURE__ */ f(function(o) { + var h = this, p = [0], u = [], C = [null], e = [], J = this.table, s = "", ce = 0, Ye = 0, Je = 2, Ke = 1, Ze = e.slice.call(arguments, 1), D = Object.create(this.lexer), w = { yy: {} }; + for (var Ne in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, Ne) && (w.yy[Ne] = this.yy[Ne]); + D.setInput(o, w.yy), w.yy.lexer = D, w.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {}); + var Le = D.yylloc; + e.push(Le); + var $e = D.options && D.options.ranges; + typeof w.yy.parseError == "function" ? this.parseError = w.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; + function et(S) { + p.length = p.length - 2 * S, C.length = C.length - S, e.length = e.length - S; + } + f(et, "popStack"); + function We() { + var S; + return S = u.pop() || D.lex() || Ke, typeof S != "number" && (S instanceof Array && (u = S, S = u.pop()), S = h.symbols_[S] || S), S; + } + f(We, "lex"); + for (var B, V, L, xe, R = {}, oe, v, Qe, he; ; ) { + if (V = p[p.length - 1], this.defaultActions[V] ? L = this.defaultActions[V] : ((B === null || typeof B > "u") && (B = We()), L = J[V] && J[V][B]), typeof L > "u" || !L.length || !L[0]) { + var ve = ""; + he = []; + for (oe in J[V]) + this.terminals_[oe] && oe > Je && he.push("'" + this.terminals_[oe] + "'"); + D.showPosition ? ve = "Parse error on line " + (ce + 1) + `: +` + D.showPosition() + ` +Expecting ` + he.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : ve = "Parse error on line " + (ce + 1) + ": Unexpected " + (B == Ke ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(ve, { + text: D.match, + token: this.terminals_[B] || B, + line: D.yylineno, + loc: Le, + expected: he + }); + } + if (L[0] instanceof Array && L.length > 1) + throw new Error("Parse Error: multiple actions possible at state: " + V + ", token: " + B); + switch (L[0]) { + case 1: + p.push(B), C.push(D.yytext), e.push(D.yylloc), p.push(L[1]), B = null, Ye = D.yyleng, s = D.yytext, ce = D.yylineno, Le = D.yylloc; + break; + case 2: + if (v = this.productions_[L[1]][1], R.$ = C[C.length - v], R._$ = { + first_line: e[e.length - (v || 1)].first_line, + last_line: e[e.length - 1].last_line, + first_column: e[e.length - (v || 1)].first_column, + last_column: e[e.length - 1].last_column + }, $e && (R._$.range = [ + e[e.length - (v || 1)].range[0], + e[e.length - 1].range[1] + ]), xe = this.performAction.apply(R, [ + s, + Ye, + ce, + w.yy, + L[1], + C, + e + ].concat(Ze)), typeof xe < "u") + return xe; + v && (p = p.slice(0, -1 * v * 2), C = C.slice(0, -1 * v), e = e.slice(0, -1 * v)), p.push(this.productions_[L[1]][0]), C.push(R.$), e.push(R._$), Qe = J[p[p.length - 2]][p[p.length - 1]], p.push(Qe); + break; + case 3: + return !0; + } + } + return !0; + }, "parse") + }, He = /* @__PURE__ */ (function() { + var O = { + EOF: 1, + parseError: /* @__PURE__ */ f(function(h, p) { + if (this.yy.parser) + this.yy.parser.parseError(h, p); + else + throw new Error(h); + }, "parseError"), + // resets the lexer, sets new input + setInput: /* @__PURE__ */ f(function(o, h) { + return this.yy = h || 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"), + // consumes and returns one char from the input + input: /* @__PURE__ */ f(function() { + var o = this._input[0]; + this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o; + var h = o.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), o; + }, "input"), + // unshifts one char (or a string) into the input + unput: /* @__PURE__ */ f(function(o) { + var h = o.length, p = o.split(/(?:\r\n?|\n)/g); + this._input = o + 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), p.length - 1 && (this.yylineno -= p.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: p ? (p.length === u.length ? this.yylloc.first_column : 0) + u[u.length - p.length].length - p[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"), + // When called from action, caches matched text and appends it on next action + more: /* @__PURE__ */ f(function() { + return this._more = !0, this; + }, "more"), + // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead. + reject: /* @__PURE__ */ 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"), + // retain first n characters of the match + less: /* @__PURE__ */ f(function(o) { + this.unput(this.match.slice(o)); + }, "less"), + // displays already matched input, i.e. for error messages + pastInput: /* @__PURE__ */ f(function() { + var o = this.matched.substr(0, this.matched.length - this.match.length); + return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, ""); + }, "pastInput"), + // displays upcoming input, i.e. for error messages + upcomingInput: /* @__PURE__ */ f(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"), + // displays the character position where the lexing error occurred, i.e. for error messages + showPosition: /* @__PURE__ */ f(function() { + var o = this.pastInput(), h = new Array(o.length + 1).join("-"); + return o + this.upcomingInput() + ` +` + h + "^"; + }, "showPosition"), + // test the lexed token: return FALSE when not a match, otherwise return token + test_match: /* @__PURE__ */ f(function(o, h) { + var p, 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 = o[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 + 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], p = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p) + return p; + if (this._backtrack) { + for (var e in C) + this[e] = C[e]; + return !1; + } + return !1; + }, "test_match"), + // return next match in input + next: /* @__PURE__ */ f(function() { + if (this.done) + return this.EOF; + this._input || (this.done = !0); + var o, h, p, u; + this._more || (this.yytext = "", this.match = ""); + for (var C = this._currentRules(), e = 0; e < C.length; e++) + if (p = this._input.match(this.rules[C[e]]), p && (!h || p[0].length > h[0].length)) { + if (h = p, u = e, this.options.backtrack_lexer) { + if (o = this.test_match(p, C[e]), o !== !1) + return o; + if (this._backtrack) { + h = !1; + continue; + } else + return !1; + } else if (!this.options.flex) + break; + } + return h ? (o = this.test_match(h, C[u]), 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"), + // return next match that has a token + lex: /* @__PURE__ */ f(function() { + var h = this.next(); + return h || this.lex(); + }, "lex"), + // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack) + begin: /* @__PURE__ */ f(function(h) { + this.conditionStack.push(h); + }, "begin"), + // pop the previously active lexer condition state off the condition stack + popState: /* @__PURE__ */ f(function() { + var h = this.conditionStack.length - 1; + return h > 0 ? this.conditionStack.pop() : this.conditionStack[0]; + }, "popState"), + // produce the lexer rule set which is active for the currently active lexer condition state + _currentRules: /* @__PURE__ */ 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"), + // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available + topState: /* @__PURE__ */ f(function(h) { + return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL"; + }, "topState"), + // alias for begin(condition) + pushState: /* @__PURE__ */ f(function(h) { + this.begin(h); + }, "pushState"), + // return the number of states currently on the stack + stateStackSize: /* @__PURE__ */ f(function() { + return this.conditionStack.length; + }, "stateStackSize"), + options: {}, + performAction: /* @__PURE__ */ f(function(h, p, u, C) { + switch (u) { + 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; + case 7: + return this.popState(), "acc_title_value"; + case 8: + return this.begin("acc_descr"), 35; + case 9: + return this.popState(), "acc_descr_value"; + 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; + case 30: + return this.popState(), 8; + case 31: + break; + case 32: + return this.begin("namespace-body"), 39; + case 33: + this.popState(), this.less(0); + break; + case 34: + return this.popState(), 41; + 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; + case 40: + return this.popState(), 8; + case 41: + break; + case 42: + return this.popState(), this.popState(), 41; + case 43: + return this.begin("class-body"), 39; + case 44: + return this.popState(), 41; + 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; + })(); + Se.lexer = He; + function le() { + this.yy = {}; + } + return f(le, "Parser"), le.prototype = Se, Se.Parser = le, new le(); +})(); +we.parser = we; +var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class { + static { + f(this, "ClassMember"); + } + constructor(t, i) { + this.memberType = i, this.visibility = "", this.classifier = "", this.text = ""; + const a = gt(t, F()); + this.parseMember(a); + } + getDisplayDetails() { + let t = this.visibility + G(this.id); + this.memberType === "method" && (t += `(${G(this.parameters.trim())})`, this.returnType && (t += " : " + G(this.returnType))), t = t.trim(); + const i = this.parseClassifier(); + return { + displayText: t, + cssStyle: i + }; + } + parseMember(t) { + let i = ""; + if (this.memberType === "method") { + const n = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t); + if (n) { + const c = n[1] ? n[1].trim() : ""; + if (je.includes(c) && (this.visibility = c), 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 === "") { + const l = this.returnType.substring(this.returnType.length - 1); + /[$*]/.exec(l) && (i = l, this.returnType = this.returnType.substring(0, this.returnType.length - 1)); + } + } + } else { + const r = t.length, n = t.substring(0, 1), c = t.substring(r - 1); + je.includes(n) && (this.visibility = n), /[$*]/.exec(c) && (i = c), 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(); + const a = `${this.visibility ? "\\" + this.visibility : ""}${G(this.id)}${this.memberType === "method" ? `(${G(this.parameters)})${this.returnType ? " : " + G(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 ""; + } + } +}, pe = "classId-", qe = 0, P = /* @__PURE__ */ f((t) => I.sanitizeText(t, F()), "sanitizeText"), _t = class Ve { + constructor() { + this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.namespaces = /* @__PURE__ */ 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 = /* @__PURE__ */ f((i) => { + const a = st(); + de(i).select("svg").selectAll("g").filter(function() { + return de(this).attr("title") !== null; + }).on("mouseover", (c) => { + const l = de(c.currentTarget), d = l.attr("title"); + if (!d) + return; + const m = c.currentTarget.getBoundingClientRect(); + a.transition().duration(200).style("opacity", ".9"), a.html(ut.sanitize(d)).style("left", `${window.scrollX + m.left + m.width / 2}px`).style("top", `${window.scrollY + m.bottom + 4}px`), l.classed("hover", !0); + }).on("mouseout", (c) => { + a.transition().duration(500).style("opacity", 0), de(c.currentTarget).classed("hover", !1); + }); + }, "setupToolTips"), this.direction = "TB", this.setAccTitle = lt, this.getAccTitle = ct, this.setAccDescription = ot, this.getAccDescription = ht, this.setDiagramTitle = dt, this.getDiagramTitle = pt, this.getConfig = /* @__PURE__ */ f(() => 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 { + f(this, "ClassDB"); + } + splitClassNameAndType(i) { + const a = I.sanitizeText(i, F()); + let r = "", n = a; + if (a.indexOf("~") > 0) { + const c = a.split("~"); + n = P(c[0]), r = P(c[1]); + } + return { className: n, type: r }; + } + setClassLabel(i, a) { + const r = I.sanitizeText(i, F()); + a && (a = P(a)); + const { 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}>` : ""}`; + } + /** + * Function called by parser when a node definition has been found. + * + * @param id - ID of the class to add + * @public + */ + addClass(i) { + const a = I.sanitizeText(i, F()), { className: r, type: n } = this.splitClassNameAndType(a); + if (this.classes.has(r)) + return; + const c = I.sanitizeText(r, F()); + this.classes.set(c, { + id: c, + type: n, + label: c, + text: `${c}${n ? `<${n}>` : ""}`, + shape: "classBox", + cssClasses: "default", + methods: [], + members: [], + annotations: [], + styles: [], + domId: pe + c + "-" + qe + }), qe++; + } + addInterface(i, a) { + const r = { + id: `interface${this.interfaces.length}`, + label: i, + classId: a + }; + this.interfaces.push(r); + } + /** + * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness + * across multiple diagrams on the same page. + */ + setDiagramId(i) { + this.diagramId = i; + } + /** + * Function to lookup domId from id in the graph definition. + * When diagramId is set, returns the prefixed version for DOM uniqueness. + * + * @param id - class ID to lookup + * @public + */ + lookUpDomId(i) { + const a = I.sanitizeText(i, F()); + if (this.classes.has(a)) { + const 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 = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.namespaceStack = [], this.diagramId = "", this.direction = "TB", At(); + } + getClass(i) { + return this.classes.get(i); + } + getClasses() { + return this.classes; + } + getRelations() { + return this.relations; + } + getNote(i) { + const a = typeof i == "number" ? `note${i}` : i; + return this.notes.get(a); + } + getNotes() { + return this.notes; + } + addRelation(i) { + Ie.debug("Adding relation: " + JSON.stringify(i)); + const 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 = I.sanitizeText( + i.relationTitle1.trim(), + F() + ), i.relationTitle2 = I.sanitizeText( + i.relationTitle2.trim(), + F() + ), this.relations.push(i); + } + /** + * Adds an annotation to the specified class Annotations mark special properties of the given type + * (like 'interface' or 'service') + * + * @param className - The class name + * @param annotation - The name of the annotation without any brackets + * @public + */ + addAnnotation(i, a) { + const r = this.splitClassNameAndType(i).className; + this.classes.get(r).annotations.push(a); + } + /** + * Adds a member to the specified class + * + * @param className - The class name + * @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is + * treated as an annotation If the member is ending with a closing bracket ) it is treated as a + * method Otherwise the member will be treated as a normal property + * @public + */ + addMember(i, a) { + this.addClass(i); + const r = this.splitClassNameAndType(i).className, n = this.classes.get(r); + if (typeof a == "string") { + const c = a.trim(); + c.startsWith("<<") && c.endsWith(">>") ? n.annotations.push(P(c.substring(2, c.length - 2))) : c.indexOf(")") > 0 ? n.methods.push(new Xe(c, "method")) : c && n.members.push(new Xe(c, "attribute")); + } + } + addMembers(i, a) { + Array.isArray(a) && (a.reverse(), a.forEach((r) => this.addMember(i, r))); + } + addNote(i, a) { + const 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)), P(i.trim()); + } + /** + * Called by parser when assigning cssClass to a class + * + * @param ids - Comma separated list of ids + * @param className - Class to add + */ + setCssClass(i, a) { + i.split(",").forEach((r) => { + let n = r; + /\d/.exec(r[0]) && (n = pe + n); + const c = this.classes.get(n); + c && (c.cssClasses += " " + a); + }); + } + defineClass(i, a) { + for (const 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((c) => { + if (/color/.exec(c)) { + const l = c.replace("fill", "bgFill"); + n.textStyles.push(l); + } + n.styles.push(c); + }), this.classes.forEach((c) => { + c.cssClasses.includes(r) && c.styles.push(...a.flatMap((l) => l.split(","))); + }); + } + } + /** + * Called by parser when a tooltip is found, e.g. a clickable element. + * + * @param ids - Comma separated list of ids + * @param tooltip - Tooltip to add + */ + setTooltip(i, a) { + i.split(",").forEach((r) => { + a !== void 0 && (this.classes.get(r).tooltip = P(a)); + }); + } + getTooltip(i, a) { + return a && this.namespaces.has(a) ? this.namespaces.get(a).classes.get(i).tooltip : this.classes.get(i).tooltip; + } + /** + * Called by parser when a link is found. Adds the URL to the vertex data. + * + * @param ids - Comma separated list of ids + * @param linkStr - URL to create a link for + * @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file + */ + setLink(i, a, r) { + const n = F(); + i.split(",").forEach((c) => { + let l = c; + /\d/.exec(c[0]) && (l = pe + l); + const d = this.classes.get(l); + d && (d.link = Oe.formatUrl(a, n), n.securityLevel === "sandbox" ? d.linkTarget = "_top" : typeof r == "string" ? d.linkTarget = P(r) : d.linkTarget = "_blank"); + }), this.setCssClass(i, "clickable"); + } + /** + * Called by parser when a click definition is found. Registers an event handler. + * + * @param ids - Comma separated list of ids + * @param functionName - Function to be called on click + * @param functionArgs - Function args the function should be called with + */ + setClickEvent(i, a, r) { + i.split(",").forEach((n) => { + this.setClickFunc(n, a, r), this.classes.get(n).haveCallback = !0; + }), this.setCssClass(i, "clickable"); + } + setClickFunc(i, a, r) { + const n = I.sanitizeText(i, F()); + if (F().securityLevel !== "loose" || a === void 0) + return; + const l = n; + if (this.classes.has(l)) { + let d = []; + if (typeof r == "string") { + d = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/); + for (let m = 0; m < d.length; m++) { + let g = d[m].trim(); + g.startsWith('"') && g.endsWith('"') && (g = g.substr(1, g.length - 2)), d[m] = g; + } + } + d.length === 0 && d.push(l), this.functions.push(() => { + const m = this.lookUpDomId(l), g = document.querySelector(`[id="${m}"]`); + g !== null && g.addEventListener( + "click", + () => { + Oe.runFunc(a, ...d); + }, + !1 + ); + }); + } + } + bindFunctions(i) { + this.functions.forEach((a) => { + a(i); + }); + } + // Utility function to escape HTML meta-characters + escapeHtml(i) { + return i.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"); + } + getDirection() { + return this.direction; + } + setDirection(i) { + this.direction = i; + } + static resolveQualifiedId(i, a) { + const r = a.at(-1); + return r ? `${r}.${i}` : i; + } + static getAncestorIds(i) { + const a = i.split("."), r = new Array(a.length); + r[0] = a[0]; + for (let n = 1; n < a.length; n++) + r[n] = `${r[n - 1]}.${a[n]}`; + return r; + } + createNamespaceNode(i, a, r, n = !1) { + return { + id: i, + label: a, + classes: /* @__PURE__ */ new Map(), + notes: /* @__PURE__ */ new Map(), + children: /* @__PURE__ */ new Map(), + domId: pe + i + "-" + this.namespaceCounter++, + parent: r, + explicit: n + }; + } + linkParentChild(i, a) { + const r = this.namespaces.get(i), n = this.namespaces.get(a); + !r || !n || (r.children.has(a) || r.children.set(a, n), n.parent ??= i); + } + addNamespace(i, a) { + const r = Ve.resolveQualifiedId(i, this.namespaceStack); + if (this.namespaceStack.push(r), this.namespaces.has(r)) { + const l = this.namespaces.get(r); + return l.explicit = !0, a && (l.label = a), r; + } + const n = r.split("."), c = Ve.getAncestorIds(r); + for (let l = 0; l < c.length; l++) { + const d = c[l], m = l > 0 ? c[l - 1] : void 0, g = l === c.length - 1, N = g && a ? a : n[l]; + this.namespaces.has(d) ? g && (this.namespaces.get(d).explicit = !0) : this.namespaces.set( + d, + this.createNamespaceNode(d, N, m, g) + ), m && this.linkParentChild(m, d); + } + return r; + } + popNamespace() { + this.namespaceStack.pop(); + } + getNamespace(i) { + return this.namespaces.get(i); + } + getNamespaces() { + return this.namespaces; + } + /** + * Function called by parser when a namespace definition has been found. + * + * @param id - ID of the namespace to add + * @param classNames - IDs of the class to add + * @param noteNames - IDs of the notes to add + * @public + */ + addClassesToNamespace(i, a, r) { + if (this.namespaces.has(i)) { + for (const n of a) { + const { className: c } = this.splitClassNameAndType(n), l = this.getClass(c); + l.parent = i, this.namespaces.get(i).classes.set(c, l); + } + for (const n of r) { + const c = this.getNote(n); + c.parent = i, this.namespaces.get(i).notes.set(n, c); + } + } + } + setCssStyle(i, a) { + const r = this.classes.get(i); + if (!(!a || !r)) + for (const n of a) + n.includes(",") ? r.styles.push(...n.split(",")) : r.styles.push(n); + } + /** + * Gets the arrow marker for a type index + * + * @param type - The type to look for + * @returns The arrow marker + */ + 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; + } + /** + * Walks up the namespace tree from the given id and returns the nearest ancestor + * (or the id itself) that is marked as explicit. Used by compact rendering mode + * to reassign children to the nearest user-declared namespace. + */ + resolveExplicitAncestor(i) { + let a = i; + for (; a; ) { + const r = this.namespaces.get(a); + if (!r) + return; + if (r.explicit) + return a; + a = r.parent; + } + } + getData() { + const i = [], a = [], r = F(), n = r.class?.hierarchicalNamespaces ?? !0; + for (const l of this.namespaces.values()) { + if (!n && !l.explicit) + continue; + const d = { + id: l.id, + label: n ? l.label : l.id, + isGroup: !0, + padding: r.class.padding ?? 16, + // parent node must be one of [rect, roundedWithTitle, noteGroup, divider] + shape: "rect", + cssStyles: [], + look: r.look, + parentId: n ? l.parent : void 0 + }; + i.push(d); + } + for (const l of this.classes.values()) { + const d = n ? l.parent : this.resolveExplicitAncestor(l.parent), m = { + ...l, + type: void 0, + isGroup: !1, + parentId: d, + look: r.look + }; + i.push(m); + } + for (const l of this.notes.values()) { + const d = n ? l.parent : this.resolveExplicitAncestor(l.parent), m = { + id: l.id, + label: l.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: d, + labelType: "markdown" + }; + i.push(m); + const g = this.classes.get(l.class)?.id; + if (g) { + const N = { + id: `edgeNote${l.index}`, + start: l.id, + end: g, + type: "normal", + thickness: "normal", + classes: "relation", + arrowTypeStart: "none", + arrowTypeEnd: "none", + arrowheadStyle: "", + labelStyle: [""], + style: ["fill: none"], + pattern: "dotted", + look: r.look + }; + a.push(N); + } + } + for (const l of this.interfaces) { + const d = { + id: l.id, + label: l.label, + isGroup: !1, + shape: "rect", + cssStyles: ["opacity: 0;"], + look: r.look + }; + i.push(d); + } + let c = 0; + for (const l of this.relations) { + c++; + const d = { + id: ft(l.id1, l.id2, { + prefix: "id", + counter: c + }), + start: l.id1, + end: l.id2, + type: "normal", + label: l.title, + labelpos: "c", + thickness: "normal", + classes: "relation", + arrowTypeStart: this.getArrowMarker(l.relation.type1), + arrowTypeEnd: this.getArrowMarker(l.relation.type2), + startLabelRight: l.relationTitle1 === "none" ? "" : l.relationTitle1, + endLabelLeft: l.relationTitle2 === "none" ? "" : l.relationTitle2, + arrowheadStyle: "", + labelStyle: ["display: inline-block"], + style: l.style || "", + pattern: l.relation.lineType == 1 ? "dashed" : "solid", + look: r.look, + labelType: "markdown" + }; + a.push(d); + } + return { nodes: i, edges: a, other: {}, config: r, direction: this.getDirection() }; + } +}, mt = /* @__PURE__ */ f((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; +} + ${tt()} +`, "getStyles"), St = mt, Ct = /* @__PURE__ */ f((t, i = "TB") => { + if (!t.doc) + return i; + let a = i; + for (const r of t.doc) + r.stmt === "dir" && (a = r.value); + return a; +}, "getDir"), bt = /* @__PURE__ */ f(function(t, i) { + return i.db.getClasses(); +}, "getClasses"), kt = /* @__PURE__ */ f(async function(t, i, a, r) { + Ie.info("REF0:"), Ie.info("Drawing class diagram (v3)", i); + const { securityLevel: n, state: c, layout: l } = F(); + r.db.setDiagramId(i); + const d = r.db.getData(), m = it(i, n); + d.type = r.type, d.layoutAlgorithm = rt(l), d.nodeSpacing = c?.nodeSpacing || 50, d.rankSpacing = c?.rankSpacing || 50, d.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], d.diagramId = i, await nt(d, m); + const g = 8; + Oe.insertTitle( + m, + "classDiagramTitleText", + c?.titleTopMargin ?? 25, + r.db.getDiagramTitle() + ), at(m, g, "classDiagram", c?.useMaxWidth ?? !0); +}, "draw"), Nt = { + getClasses: bt, + draw: kt, + getDir: Ct +}; +export { + _t as C, + Nt as a, + Bt as c, + St as s +}; diff --git a/src/wc-content-kit/public/mermaid/chunk-OYMX7WX6-BT43QF8g.js b/src/wc-content-kit/public/mermaid/chunk-AQP2D5EJ-DbphR-zT.js similarity index 79% rename from src/wc-content-kit/public/mermaid/chunk-OYMX7WX6-BT43QF8g.js rename to src/wc-content-kit/public/mermaid/chunk-AQP2D5EJ-DbphR-zT.js index 41b4516..9672129 100644 --- a/src/wc-content-kit/public/mermaid/chunk-OYMX7WX6-BT43QF8g.js +++ b/src/wc-content-kit/public/mermaid/chunk-AQP2D5EJ-DbphR-zT.js @@ -1,110 +1,110 @@ -import { g as Zt } from "./chunk-55IACEB6-DuOOmvV2.js"; -import { s as te } from "./chunk-EDXVE4YY-j9tcUx_w.js"; -import { _ as f, l as _, c as w, r as ee, u as se, a as ie, b as re, g as ae, s as ne, p as oe, q as le, T as ce, k as U, z as he } from "./mermaid.core-Jw3znkh4.js"; +import { g as Zt } from "./chunk-55IACEB6-Q791aHQa.js"; +import { s as te } from "./chunk-2J33WTMH-HCULbuMq.js"; +import { b as f, aD as _, a4 as w, aV as ee, bk as se, a2 as ie, b1 as re, a1 as ae, b0 as ne, b3 as oe, a5 as le, a0 as ce, z as W, t as he } from "./mermaid.core-FRDjOodn.js"; var Dt = (function() { - var t = /* @__PURE__ */ f(function(B, a, c, r) { - for (c = c || {}, r = B.length; r--; c[B[r]] = a) ; + var t = /* @__PURE__ */ f(function(Y, a, c, r) { + for (c = c || {}, r = Y.length; r--; c[Y[r]] = a) ; return c; - }, "o"), e = [1, 2], o = [1, 3], s = [1, 4], u = [2, 4], d = [1, 9], S = [1, 11], g = [1, 16], n = [1, 17], T = [1, 18], m = [1, 19], O = [1, 33], A = [1, 20], k = [1, 21], h = [1, 22], x = [1, 23], D = [1, 24], $ = [1, 26], L = [1, 27], P = [1, 28], I = [1, 29], X = [1, 30], st = [1, 31], it = [1, 32], rt = [1, 35], at = [1, 36], nt = [1, 37], ot = [1, 38], W = [1, 34], p = [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], lt = [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], At = [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], yt = { + }, "o"), e = [1, 2], l = [1, 3], s = [1, 4], u = [2, 4], d = [1, 9], S = [1, 11], g = [1, 16], n = [1, 17], T = [1, 18], m = [1, 19], N = [1, 33], A = [1, 20], k = [1, 21], h = [1, 22], x = [1, 23], D = [1, 24], $ = [1, 26], L = [1, 27], P = [1, 28], I = [1, 29], J = [1, 30], st = [1, 31], it = [1, 32], rt = [1, 35], at = [1, 36], nt = [1, 37], ot = [1, 38], j = [1, 34], p = [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], lt = [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], At = [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], yt = { trace: /* @__PURE__ */ f(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: /* @__PURE__ */ f(function(a, c, r, y, E, i, J) { - var l = i.length - 1; + performAction: /* @__PURE__ */ f(function(a, c, r, y, E, i, F) { + var o = i.length - 1; switch (E) { case 3: - return y.setRootDoc(i[l]), i[l]; + return y.setRootDoc(i[o]), i[o]; case 4: this.$ = []; break; case 5: - i[l] != "nl" && (i[l - 1].push(i[l]), this.$ = i[l - 1]); + i[o] != "nl" && (i[o - 1].push(i[o]), this.$ = i[o - 1]); break; case 6: case 7: - this.$ = i[l]; + this.$ = i[o]; break; case 8: this.$ = "nl"; break; case 12: - this.$ = i[l]; + this.$ = i[o]; break; case 13: - const q = i[l - 1]; - q.description = y.trimColon(i[l]), this.$ = q; + const q = i[o - 1]; + q.description = y.trimColon(i[o]), this.$ = q; break; case 14: - this.$ = { stmt: "relation", state1: i[l - 2], state2: i[l] }; + this.$ = { stmt: "relation", state1: i[o - 2], state2: i[o] }; break; case 15: - const gt = y.trimColon(i[l]); - this.$ = { stmt: "relation", state1: i[l - 3], state2: i[l - 1], description: gt }; + const gt = y.trimColon(i[o]); + this.$ = { stmt: "relation", state1: i[o - 3], state2: i[o - 1], description: gt }; break; case 19: - this.$ = { stmt: "state", id: i[l - 3], type: "default", description: "", doc: i[l - 1] }; + this.$ = { stmt: "state", id: i[o - 3], type: "default", description: "", doc: i[o - 1] }; break; case 20: - var Y = i[l], j = i[l - 2].trim(); - if (i[l].match(":")) { - var ht = i[l].split(":"); - Y = ht[0], j = [j, ht[1]]; + var B = i[o], H = i[o - 2].trim(); + if (i[o].match(":")) { + var ht = i[o].split(":"); + B = ht[0], H = [H, ht[1]]; } - this.$ = { stmt: "state", id: Y, type: "default", description: j }; + this.$ = { stmt: "state", id: B, type: "default", description: H }; break; case 21: - this.$ = { stmt: "state", id: i[l - 3], type: "default", description: i[l - 5], doc: i[l - 1] }; + this.$ = { stmt: "state", id: i[o - 3], type: "default", description: i[o - 5], doc: i[o - 1] }; break; case 22: - this.$ = { stmt: "state", id: i[l], type: "fork" }; + this.$ = { stmt: "state", id: i[o], type: "fork" }; break; case 23: - this.$ = { stmt: "state", id: i[l], type: "join" }; + this.$ = { stmt: "state", id: i[o], type: "join" }; break; case 24: - this.$ = { stmt: "state", id: i[l], type: "choice" }; + this.$ = { stmt: "state", id: i[o], type: "choice" }; break; case 25: this.$ = { stmt: "state", id: y.getDividerId(), type: "divider" }; break; case 26: - this.$ = { stmt: "state", id: i[l - 1].trim(), note: { position: i[l - 2].trim(), text: i[l].trim() } }; + this.$ = { stmt: "state", id: i[o - 1].trim(), note: { position: i[o - 2].trim(), text: i[o].trim() } }; break; case 29: - this.$ = i[l].trim(), y.setAccTitle(this.$); + this.$ = i[o].trim(), y.setAccTitle(this.$); break; case 30: case 31: - this.$ = i[l].trim(), y.setAccDescription(this.$); + this.$ = i[o].trim(), y.setAccDescription(this.$); break; case 32: this.$ = { stmt: "click", - id: i[l - 3], - url: i[l - 2], - tooltip: i[l - 1] + id: i[o - 3], + url: i[o - 2], + tooltip: i[o - 1] }; break; case 33: this.$ = { stmt: "click", - id: i[l - 3], - url: i[l - 1], + id: i[o - 3], + url: i[o - 1], tooltip: "" }; break; case 34: case 35: - this.$ = { stmt: "classDef", id: i[l - 1].trim(), classes: i[l].trim() }; + this.$ = { stmt: "classDef", id: i[o - 1].trim(), classes: i[o].trim() }; break; case 36: - this.$ = { stmt: "style", id: i[l - 1].trim(), styleClass: i[l].trim() }; + this.$ = { stmt: "style", id: i[o - 1].trim(), styleClass: i[o].trim() }; break; case 37: - this.$ = { stmt: "applyClass", id: i[l - 1].trim(), styleClass: i[l].trim() }; + this.$ = { stmt: "applyClass", id: i[o - 1].trim(), styleClass: i[o].trim() }; break; case 38: y.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" }; @@ -120,17 +120,17 @@ var Dt = (function() { break; case 44: case 45: - this.$ = { stmt: "state", id: i[l].trim(), type: "default", description: "" }; + this.$ = { stmt: "state", id: i[o].trim(), type: "default", description: "" }; break; case 46: - this.$ = { stmt: "state", id: i[l - 2].trim(), classes: [i[l].trim()], type: "default", description: "" }; + this.$ = { stmt: "state", id: i[o - 2].trim(), classes: [i[o].trim()], type: "default", description: "" }; break; case 47: - this.$ = { stmt: "state", id: i[l - 2].trim(), classes: [i[l].trim()], type: "default", description: "" }; + this.$ = { stmt: "state", id: i[o - 2].trim(), classes: [i[o].trim()], type: "default", description: "" }; break; } }, "anonymous"), - table: [{ 3: 1, 4: e, 5: o, 6: s }, { 1: [3] }, { 3: 5, 4: e, 5: o, 6: s }, { 3: 6, 4: e, 5: o, 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], u, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: d, 5: S, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: n, 19: T, 22: m, 24: O, 25: A, 26: k, 27: h, 28: x, 29: D, 32: 25, 33: $, 35: L, 37: P, 38: I, 41: X, 45: st, 48: it, 51: rt, 52: at, 53: nt, 54: ot, 57: W }, t(p, [2, 5]), { 9: 39, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: n, 19: T, 22: m, 24: O, 25: A, 26: k, 27: h, 28: x, 29: D, 32: 25, 33: $, 35: L, 37: P, 38: I, 41: X, 45: st, 48: it, 51: rt, 52: at, 53: nt, 54: ot, 57: W }, t(p, [2, 7]), t(p, [2, 8]), t(p, [2, 9]), t(p, [2, 10]), t(p, [2, 11]), t(p, [2, 12], { 14: [1, 40], 15: [1, 41] }), t(p, [2, 16]), { 18: [1, 42] }, t(p, [2, 18], { 20: [1, 43] }), { 23: [1, 44] }, t(p, [2, 22]), t(p, [2, 23]), t(p, [2, 24]), t(p, [2, 25]), { 30: 45, 31: [1, 46], 59: [1, 47], 60: [1, 48] }, t(p, [2, 28]), { 34: [1, 49] }, { 36: [1, 50] }, t(p, [2, 31]), { 13: 51, 24: O, 57: W }, { 42: [1, 52], 44: [1, 53] }, { 46: [1, 54] }, { 49: [1, 55] }, t(lt, [2, 44], { 58: [1, 56] }), t(lt, [2, 45], { 58: [1, 57] }), t(p, [2, 38]), t(p, [2, 39]), t(p, [2, 40]), t(p, [2, 41]), t(p, [2, 6]), t(p, [2, 13]), { 13: 58, 24: O, 57: W }, t(p, [2, 17]), t(At, u, { 7: 59 }), { 24: [1, 60] }, { 24: [1, 61] }, { 23: [1, 62] }, { 24: [2, 48] }, { 24: [2, 49] }, t(p, [2, 29]), t(p, [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(p, [2, 14], { 14: [1, 71] }), { 4: d, 5: S, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: n, 19: T, 21: [1, 72], 22: m, 24: O, 25: A, 26: k, 27: h, 28: x, 29: D, 32: 25, 33: $, 35: L, 37: P, 38: I, 41: X, 45: st, 48: it, 51: rt, 52: at, 53: nt, 54: ot, 57: W }, t(p, [2, 20], { 20: [1, 73] }), { 31: [1, 74] }, { 24: [1, 75] }, { 39: [1, 76] }, { 39: [1, 77] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), t(p, [2, 37]), t(lt, [2, 46]), t(lt, [2, 47]), t(p, [2, 15]), t(p, [2, 19]), t(At, u, { 7: 78 }), t(p, [2, 26]), t(p, [2, 27]), { 5: [1, 79] }, { 5: [1, 80] }, { 4: d, 5: S, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: n, 19: T, 21: [1, 81], 22: m, 24: O, 25: A, 26: k, 27: h, 28: x, 29: D, 32: 25, 33: $, 35: L, 37: P, 38: I, 41: X, 45: st, 48: it, 51: rt, 52: at, 53: nt, 54: ot, 57: W }, t(p, [2, 32]), t(p, [2, 33]), t(p, [2, 21])], + table: [{ 3: 1, 4: e, 5: l, 6: s }, { 1: [3] }, { 3: 5, 4: e, 5: l, 6: s }, { 3: 6, 4: e, 5: l, 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], u, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: d, 5: S, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: n, 19: T, 22: m, 24: N, 25: A, 26: k, 27: h, 28: x, 29: D, 32: 25, 33: $, 35: L, 37: P, 38: I, 41: J, 45: st, 48: it, 51: rt, 52: at, 53: nt, 54: ot, 57: j }, t(p, [2, 5]), { 9: 39, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: n, 19: T, 22: m, 24: N, 25: A, 26: k, 27: h, 28: x, 29: D, 32: 25, 33: $, 35: L, 37: P, 38: I, 41: J, 45: st, 48: it, 51: rt, 52: at, 53: nt, 54: ot, 57: j }, t(p, [2, 7]), t(p, [2, 8]), t(p, [2, 9]), t(p, [2, 10]), t(p, [2, 11]), t(p, [2, 12], { 14: [1, 40], 15: [1, 41] }), t(p, [2, 16]), { 18: [1, 42] }, t(p, [2, 18], { 20: [1, 43] }), { 23: [1, 44] }, t(p, [2, 22]), t(p, [2, 23]), t(p, [2, 24]), t(p, [2, 25]), { 30: 45, 31: [1, 46], 59: [1, 47], 60: [1, 48] }, t(p, [2, 28]), { 34: [1, 49] }, { 36: [1, 50] }, t(p, [2, 31]), { 13: 51, 24: N, 57: j }, { 42: [1, 52], 44: [1, 53] }, { 46: [1, 54] }, { 49: [1, 55] }, t(lt, [2, 44], { 58: [1, 56] }), t(lt, [2, 45], { 58: [1, 57] }), t(p, [2, 38]), t(p, [2, 39]), t(p, [2, 40]), t(p, [2, 41]), t(p, [2, 6]), t(p, [2, 13]), { 13: 58, 24: N, 57: j }, t(p, [2, 17]), t(At, u, { 7: 59 }), { 24: [1, 60] }, { 24: [1, 61] }, { 23: [1, 62] }, { 24: [2, 48] }, { 24: [2, 49] }, t(p, [2, 29]), t(p, [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(p, [2, 14], { 14: [1, 71] }), { 4: d, 5: S, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: n, 19: T, 21: [1, 72], 22: m, 24: N, 25: A, 26: k, 27: h, 28: x, 29: D, 32: 25, 33: $, 35: L, 37: P, 38: I, 41: J, 45: st, 48: it, 51: rt, 52: at, 53: nt, 54: ot, 57: j }, t(p, [2, 20], { 20: [1, 73] }), { 31: [1, 74] }, { 24: [1, 75] }, { 39: [1, 76] }, { 39: [1, 77] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), t(p, [2, 37]), t(lt, [2, 46]), t(lt, [2, 47]), t(p, [2, 15]), t(p, [2, 19]), t(At, u, { 7: 78 }), t(p, [2, 26]), t(p, [2, 27]), { 5: [1, 79] }, { 5: [1, 80] }, { 4: d, 5: S, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: n, 19: T, 21: [1, 81], 22: m, 24: N, 25: A, 26: k, 27: h, 28: x, 29: D, 32: 25, 33: $, 35: L, 37: P, 38: I, 41: J, 45: st, 48: it, 51: rt, 52: at, 53: nt, 54: ot, 57: j }, t(p, [2, 32]), t(p, [2, 33]), t(p, [2, 21])], defaultActions: { 5: [2, 1], 6: [2, 2], 47: [2, 48], 48: [2, 49] }, parseError: /* @__PURE__ */ f(function(a, c) { if (c.recoverable) @@ -141,32 +141,32 @@ var Dt = (function() { } }, "parseError"), parse: /* @__PURE__ */ f(function(a) { - var c = this, r = [0], y = [], E = [null], i = [], J = this.table, l = "", Y = 0, j = 0, ht = 2, q = 1, gt = i.slice.call(arguments, 1), b = Object.create(this.lexer), V = { yy: {} }; + var c = this, r = [0], y = [], E = [null], i = [], F = this.table, o = "", B = 0, H = 0, ht = 2, q = 1, gt = i.slice.call(arguments, 1), b = Object.create(this.lexer), M = { yy: {} }; for (var Tt in this.yy) - Object.prototype.hasOwnProperty.call(this.yy, Tt) && (V.yy[Tt] = this.yy[Tt]); - b.setInput(a, V.yy), V.yy.lexer = b, V.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {}); + Object.prototype.hasOwnProperty.call(this.yy, Tt) && (M.yy[Tt] = this.yy[Tt]); + b.setInput(a, M.yy), M.yy.lexer = b, M.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {}); var Et = b.yylloc; i.push(Et); var qt = b.options && b.options.ranges; - typeof V.yy.parseError == "function" ? this.parseError = V.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; - function Qt(N) { - r.length = r.length - 2 * N, E.length = E.length - N, i.length = i.length - N; + typeof M.yy.parseError == "function" ? this.parseError = M.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; + function Qt(O) { + r.length = r.length - 2 * O, E.length = E.length - O, i.length = i.length - O; } f(Qt, "popStack"); function xt() { - var N; - return N = y.pop() || b.lex() || q, typeof N != "number" && (N instanceof Array && (y = N, N = y.pop()), N = c.symbols_[N] || N), N; + var O; + return O = y.pop() || b.lex() || q, typeof O != "number" && (O instanceof Array && (y = O, O = y.pop()), O = c.symbols_[O] || O), O; } f(xt, "lex"); - for (var C, M, R, _t, H = {}, ut, F, Lt, dt; ; ) { - if (M = r[r.length - 1], this.defaultActions[M] ? R = this.defaultActions[M] : ((C === null || typeof C > "u") && (C = xt()), R = J[M] && J[M][C]), typeof R > "u" || !R.length || !R[0]) { + for (var C, U, R, _t, z = {}, ut, G, Lt, dt; ; ) { + if (U = r[r.length - 1], this.defaultActions[U] ? R = this.defaultActions[U] : ((C === null || typeof C > "u") && (C = xt()), R = F[U] && F[U][C]), typeof R > "u" || !R.length || !R[0]) { var mt = ""; dt = []; - for (ut in J[M]) + for (ut in F[U]) this.terminals_[ut] && ut > ht && dt.push("'" + this.terminals_[ut] + "'"); - b.showPosition ? mt = "Parse error on line " + (Y + 1) + `: + b.showPosition ? mt = "Parse error on line " + (B + 1) + `: ` + b.showPosition() + ` -Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : mt = "Parse error on line " + (Y + 1) + ": Unexpected " + (C == q ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(mt, { +Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : mt = "Parse error on line " + (B + 1) + ": Unexpected " + (C == q ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(mt, { text: b.match, token: this.terminals_[C] || C, line: b.yylineno, @@ -175,31 +175,31 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : mt = }); } if (R[0] instanceof Array && R.length > 1) - throw new Error("Parse Error: multiple actions possible at state: " + M + ", token: " + C); + throw new Error("Parse Error: multiple actions possible at state: " + U + ", token: " + C); switch (R[0]) { case 1: - r.push(C), E.push(b.yytext), i.push(b.yylloc), r.push(R[1]), C = null, j = b.yyleng, l = b.yytext, Y = b.yylineno, Et = b.yylloc; + r.push(C), E.push(b.yytext), i.push(b.yylloc), r.push(R[1]), C = null, H = b.yyleng, o = b.yytext, B = b.yylineno, Et = b.yylloc; break; case 2: - if (F = this.productions_[R[1]][1], H.$ = E[E.length - F], H._$ = { - first_line: i[i.length - (F || 1)].first_line, + if (G = this.productions_[R[1]][1], z.$ = E[E.length - G], z._$ = { + first_line: i[i.length - (G || 1)].first_line, last_line: i[i.length - 1].last_line, - first_column: i[i.length - (F || 1)].first_column, + first_column: i[i.length - (G || 1)].first_column, last_column: i[i.length - 1].last_column - }, qt && (H._$.range = [ - i[i.length - (F || 1)].range[0], + }, qt && (z._$.range = [ + i[i.length - (G || 1)].range[0], i[i.length - 1].range[1] - ]), _t = this.performAction.apply(H, [ - l, - j, - Y, - V.yy, + ]), _t = this.performAction.apply(z, [ + o, + H, + B, + M.yy, R[1], E, i ].concat(gt)), typeof _t < "u") return _t; - F && (r = r.slice(0, -1 * F * 2), E = E.slice(0, -1 * F), i = i.slice(0, -1 * F)), r.push(this.productions_[R[1]][0]), E.push(H.$), i.push(H._$), Lt = J[r[r.length - 2]][r[r.length - 1]], r.push(Lt); + G && (r = r.slice(0, -1 * G * 2), E = E.slice(0, -1 * G), i = i.slice(0, -1 * G)), r.push(this.productions_[R[1]][0]), E.push(z.$), i.push(z._$), Lt = F[r[r.length - 2]][r[r.length - 1]], r.push(Lt); break; case 3: return !0; @@ -208,7 +208,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : mt = return !0; }, "parse") }, Jt = /* @__PURE__ */ (function() { - var B = { + var Y = { EOF: 1, parseError: /* @__PURE__ */ f(function(c, r) { if (this.yy.parser) @@ -378,7 +378,17 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : mt = }, "stateStackSize"), options: { "case-insensitive": !0 }, performAction: /* @__PURE__ */ f(function(c, r, y, E) { - switch (y) { + function i() { + const F = r.yytext.indexOf("%%"); + if (F === 0) + return !1; + if (F > 0) { + const o = r.yytext.slice(0, F), B = r.yytext.slice(F); + B && c.lexer.unput(B), r.yytext = o; + } + return !0; + } + switch (f(i, "processId"), y) { case 0: return 38; case 1: @@ -396,168 +406,162 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : mt = case 7: return 54; case 8: - break; + return 5; case 9: break; case 10: - return 5; + break; case 11: break; case 12: break; case 13: - break; - case 14: - break; - case 15: return this.pushState("SCALE"), 17; - case 16: + case 14: return 18; - case 17: + case 15: this.popState(); break; - case 18: + case 16: return this.begin("acc_title"), 33; - case 19: + case 17: return this.popState(), "acc_title_value"; - case 20: + case 18: return this.begin("acc_descr"), 35; - case 21: + case 19: return this.popState(), "acc_descr_value"; - case 22: + case 20: this.begin("acc_descr_multiline"); break; - case 23: + case 21: this.popState(); break; - case 24: + case 22: return "acc_descr_multiline_value"; - case 25: + case 23: return this.pushState("CLASSDEF"), 41; - case 26: + case 24: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID"; - case 27: + case 25: return this.popState(), this.pushState("CLASSDEFID"), 42; - case 28: + case 26: return this.popState(), 43; - case 29: + case 27: return this.pushState("CLASS"), 48; - case 30: + case 28: return this.popState(), this.pushState("CLASS_STYLE"), 49; - case 31: + case 29: return this.popState(), 50; - case 32: + case 30: return this.pushState("STYLE"), 45; - case 33: + case 31: return this.popState(), this.pushState("STYLEDEF_STYLES"), 46; - case 34: + case 32: return this.popState(), 47; - case 35: + case 33: return this.pushState("SCALE"), 17; - case 36: + case 34: return 18; - case 37: + case 35: this.popState(); break; - case 38: + case 36: this.pushState("STATE"); break; - case 39: + case 37: return this.popState(), r.yytext = r.yytext.slice(0, -8).trim(), 25; - case 40: + case 38: return this.popState(), r.yytext = r.yytext.slice(0, -8).trim(), 26; - case 41: + case 39: return this.popState(), r.yytext = r.yytext.slice(0, -10).trim(), 27; - case 42: + case 40: return this.popState(), r.yytext = r.yytext.slice(0, -8).trim(), 25; - case 43: + case 41: return this.popState(), r.yytext = r.yytext.slice(0, -8).trim(), 26; - case 44: + case 42: return this.popState(), r.yytext = r.yytext.slice(0, -10).trim(), 27; - case 45: + case 43: return 51; - case 46: + case 44: return 52; - case 47: + case 45: return 53; - case 48: + case 46: return 54; - case 49: + case 47: this.pushState("STATE_STRING"); break; - case 50: + case 48: return this.pushState("STATE_ID"), "AS"; - case 51: - return this.popState(), "ID"; - case 52: + case 49: + return i() ? (this.popState(), "ID") : void 0; + case 50: this.popState(); break; - case 53: + case 51: return "STATE_DESCR"; - case 54: + case 52: return 19; - case 55: + case 53: this.popState(); break; - case 56: + case 54: return this.popState(), this.pushState("struct"), 20; - case 57: - break; - case 58: + case 55: return this.popState(), 21; - case 59: + case 56: break; - case 60: + case 57: return this.begin("NOTE"), 29; - case 61: + case 58: return this.popState(), this.pushState("NOTE_ID"), 59; - case 62: + case 59: return this.popState(), this.pushState("NOTE_ID"), 60; - case 63: + case 60: this.popState(), this.pushState("FLOATING_NOTE"); break; - case 64: + case 61: return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS"; - case 65: + case 62: break; - case 66: + case 63: return "NOTE_TEXT"; + case 64: + return i() ? (this.popState(), "ID") : void 0; + case 65: + return i() ? (this.popState(), this.pushState("NOTE_TEXT"), 24) : void 0; + case 66: + return this.popState(), r.yytext = r.yytext.substr(2).trim(), 31; case 67: - return this.popState(), "ID"; + return this.popState(), r.yytext = r.yytext.slice(0, -8).trim(), 31; case 68: - return this.popState(), this.pushState("NOTE_TEXT"), 24; + return 6; case 69: - return this.popState(), r.yytext = r.yytext.substr(2).trim(), 31; + return 6; case 70: - return this.popState(), r.yytext = r.yytext.slice(0, -8).trim(), 31; + return 16; case 71: - return 6; + return 57; case 72: - return 6; + return i() ? 24 : void 0; case 73: - return 16; - case 74: - return 57; - case 75: - return 24; - case 76: return r.yytext = r.yytext.trim(), 14; - case 77: + case 74: return 15; - case 78: + case 75: return 28; - case 79: + case 76: return 58; - case 80: + case 77: return 5; - case 81: + case 78: return "INVALID"; } }, "anonymous"), - rules: [/^(?:click\b)/i, /^(?:href\b)/i, /^(?:"[^"]*")/i, /^(?:default\b)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:[\s]+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:classDef\s+)/i, /^(?:DEFAULT\s+)/i, /^(?:\w+\s+)/i, /^(?:[^\n]*)/i, /^(?:class\s+)/i, /^(?:(\w+)+((,\s*\w+)*))/i, /^(?:[^\n]*)/i, /^(?:style\s+)/i, /^(?:[\w,]+\s+)/i, /^(?:[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:state\s+)/i, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:\})/i, /^(?:[\n])/i, /^(?:note\s+)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:")/i, /^(?:\s*as\s*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n]*)/i, /^(?:\s*[^:\n\s\-]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:[\s\S]*?end note\b)/i, /^(?:stateDiagram\s+)/i, /^(?:stateDiagram-v2\s+)/i, /^(?:hide empty description\b)/i, /^(?:\[\*\])/i, /^(?:[^:\n\s\-\{]+)/i, /^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i, /^(?:-->)/i, /^(?:--)/i, /^(?::::)/i, /^(?:$)/i, /^(?:.)/i], - conditions: { LINE: { rules: [12, 13], inclusive: !1 }, struct: { rules: [12, 13, 25, 29, 32, 38, 45, 46, 47, 48, 57, 58, 59, 60, 74, 75, 76, 77, 78, 79], inclusive: !1 }, FLOATING_NOTE_ID: { rules: [67], inclusive: !1 }, FLOATING_NOTE: { rules: [64, 65, 66], inclusive: !1 }, NOTE_TEXT: { rules: [69, 70], inclusive: !1 }, NOTE_ID: { rules: [68], inclusive: !1 }, NOTE: { rules: [61, 62, 63], inclusive: !1 }, STYLEDEF_STYLEOPTS: { rules: [], inclusive: !1 }, STYLEDEF_STYLES: { rules: [34], inclusive: !1 }, STYLE_IDS: { rules: [], inclusive: !1 }, STYLE: { rules: [33], inclusive: !1 }, CLASS_STYLE: { rules: [31], inclusive: !1 }, CLASS: { rules: [30], inclusive: !1 }, CLASSDEFID: { rules: [28], inclusive: !1 }, CLASSDEF: { rules: [26, 27], inclusive: !1 }, acc_descr_multiline: { rules: [23, 24], inclusive: !1 }, acc_descr: { rules: [21], inclusive: !1 }, acc_title: { rules: [19], inclusive: !1 }, SCALE: { rules: [16, 17, 36, 37], inclusive: !1 }, ALIAS: { rules: [], inclusive: !1 }, STATE_ID: { rules: [51], inclusive: !1 }, STATE_STRING: { rules: [52, 53], inclusive: !1 }, FORK_STATE: { rules: [], inclusive: !1 }, STATE: { rules: [12, 13, 39, 40, 41, 42, 43, 44, 49, 50, 54, 55, 56], inclusive: !1 }, ID: { rules: [12, 13], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 18, 20, 22, 25, 29, 32, 35, 38, 56, 60, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81], inclusive: !0 } } + 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, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:\})/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, 55, 56, 57, 71, 72, 73, 74, 75, 76], inclusive: !1 }, FLOATING_NOTE_ID: { rules: [64], inclusive: !1 }, FLOATING_NOTE: { rules: [61, 62, 63], inclusive: !1 }, NOTE_TEXT: { rules: [66, 67], inclusive: !1 }, NOTE_ID: { rules: [65], inclusive: !1 }, NOTE: { rules: [58, 59, 60], 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], 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, 54, 57, 68, 69, 70, 71, 72, 73, 74, 76, 77, 78], inclusive: !0 } } }; - return B; + return Y; })(); yt.lexer = Jt; function ct() { @@ -566,16 +570,16 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : mt = return f(ct, "Parser"), ct.prototype = yt, yt.Parser = ct, new ct(); })(); Dt.parser = Dt; -var Ge = Dt, ue = "TB", Ft = "TB", It = "dir", K = "state", z = "root", vt = "relation", de = "classDef", fe = "style", pe = "applyClass", tt = "default", Bt = "divider", Gt = "fill:none", Yt = "fill: #333", Vt = "c", Mt = "markdown", Ut = "normal", bt = "rect", kt = "rectWithTitle", Se = "stateStart", ye = "stateEnd", Nt = "divider", Ot = "roundedWithTitle", ge = "note", Te = "noteGroup", et = "statediagram", Ee = "state", _e = `${et}-${Ee}`, Wt = "transition", me = "note", be = "note-edge", ke = `${Wt} ${be}`, De = `${et}-${me}`, ve = "cluster", Ce = `${et}-${ve}`, Ae = "cluster-alt", xe = `${et}-${Ae}`, jt = "parent", Ht = "note", Le = "state", Ct = "----", Ie = `${Ct}${Ht}`, Rt = `${Ct}${jt}`, zt = /* @__PURE__ */ f((t, e = Ft) => { +var Ge = Dt, ue = "TB", Ft = "TB", It = "dir", X = "state", K = "root", vt = "relation", de = "classDef", fe = "style", pe = "applyClass", tt = "default", Bt = "divider", Gt = "fill:none", Yt = "fill: #333", Vt = "c", Mt = "markdown", Ut = "normal", bt = "rect", kt = "rectWithTitle", Se = "stateStart", ye = "stateEnd", Ot = "divider", Nt = "roundedWithTitle", ge = "note", Te = "noteGroup", et = "statediagram", Ee = "state", _e = `${et}-${Ee}`, Wt = "transition", me = "note", be = "note-edge", ke = `${Wt} ${be}`, De = `${et}-${me}`, ve = "cluster", Ce = `${et}-${ve}`, Ae = "cluster-alt", xe = `${et}-${Ae}`, jt = "parent", Ht = "note", Le = "state", Ct = "----", Ie = `${Ct}${Ht}`, Rt = `${Ct}${jt}`, zt = /* @__PURE__ */ f((t, e = Ft) => { if (!t.doc) return e; - let o = e; + let l = e; for (const s of t.doc) - s.stmt === "dir" && (o = s.value); - return o; -}, "getDir"), Ne = /* @__PURE__ */ f(function(t, e) { + s.stmt === "dir" && (l = s.value); + return l; +}, "getDir"), Oe = /* @__PURE__ */ f(function(t, e) { return e.db.getClasses(); -}, "getClasses"), Oe = /* @__PURE__ */ f(async function(t, e, o, s) { +}, "getClasses"), Ne = /* @__PURE__ */ f(async function(t, e, l, s) { _.info("REF0:"), _.info("Drawing state diagram (v2)", e); const { securityLevel: u, state: d, layout: S } = w(); s.db.extract(s.db.getRootDocV2()); @@ -609,8 +613,8 @@ var Ge = Dt, ue = "TB", Ft = "TB", It = "dir", K = "state", z = "root", vt = "re } $.replaceChild(L, D), L.appendChild(D), _.info("🔗 Wrapped node in <a> tag for:", h, A.url); }); - } catch (O) { - _.error("❌ Error injecting clickable links:", O); + } catch (N) { + _.error("❌ Error injecting clickable links:", N); } se.insertTitle( n, @@ -619,30 +623,30 @@ var Ge = Dt, ue = "TB", Ft = "TB", It = "dir", K = "state", z = "root", vt = "re s.db.getDiagramTitle() ), te(n, m, et, d?.useMaxWidth ?? !0); }, "draw"), Ye = { - getClasses: Ne, - draw: Oe, + getClasses: Oe, + draw: Ne, getDir: zt -}, pt = /* @__PURE__ */ new Map(), G = 0; -function St(t = "", e = 0, o = "", s = Ct) { - const u = o !== null && o.length > 0 ? `${s}${o}` : ""; +}, pt = /* @__PURE__ */ new Map(), V = 0; +function St(t = "", e = 0, l = "", s = Ct) { + const u = l !== null && l.length > 0 ? `${s}${l}` : ""; return `${Le}-${t}${u}-${e}`; } f(St, "stateDomId"); -var Re = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { +var Re = /* @__PURE__ */ f((t, e, l, s, u, d, S, g) => { _.trace("items", e), e.forEach((n) => { switch (n.stmt) { - case K: - Z(t, n, o, s, u, d, S, g); + case X: + Z(t, n, l, s, u, d, S, g); break; case tt: - Z(t, n, o, s, u, d, S, g); + Z(t, n, l, s, u, d, S, g); break; case vt: { Z( t, n.state1, - o, + l, s, u, d, @@ -651,7 +655,7 @@ var Re = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { ), Z( t, n.state2, - o, + l, s, u, d, @@ -659,14 +663,14 @@ var Re = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { g ); const T = S === "neo", m = { - id: "edge" + G, + id: "edge" + V, start: n.state1.id, end: n.state2.id, arrowhead: "normal", arrowTypeEnd: T ? "arrow_barb_neo" : "arrow_barb", style: Gt, labelStyle: "", - label: U.sanitizeText(n.description ?? "", w()), + label: W.sanitizeText(n.description ?? "", w()), arrowheadStyle: Yt, labelpos: Vt, labelType: Mt, @@ -674,23 +678,23 @@ var Re = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { classes: Wt, look: S }; - u.push(m), G++; + u.push(m), V++; } break; } }); }, "setupDoc"), wt = /* @__PURE__ */ f((t, e = Ft) => { - let o = e; + let l = e; if (t.doc) for (const s of t.doc) - s.stmt === "dir" && (o = s.value); - return o; + s.stmt === "dir" && (l = s.value); + return l; }, "getDir"); -function Q(t, e, o) { +function Q(t, e, l) { if (!e.id || e.id === "</join></fork>" || e.id === "</choice>") return; e.cssClasses && (Array.isArray(e.cssCompiledStyles) || (e.cssCompiledStyles = []), e.cssClasses.split(" ").forEach((u) => { - const d = o.get(u); + const d = l.get(u); d && (e.cssCompiledStyles = [...e.cssCompiledStyles ?? [], ...d.styles]); })); const s = t.find((u) => u.id === e.id); @@ -705,19 +709,19 @@ function Xt(t) { return t?.styles ?? []; } f(Xt, "getStylesFromDbInfo"); -var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { - const n = e.id, T = o.get(n), m = Kt(T), O = Xt(T), A = w(); - if (_.info("dataFetcher parsedItem", e, T, O), n !== "root") { +var Z = /* @__PURE__ */ f((t, e, l, s, u, d, S, g) => { + const n = e.id, T = l.get(n), m = Kt(T), N = Xt(T), A = w(); + if (_.info("dataFetcher parsedItem", e, T, N), n !== "root") { let k = bt; e.start === !0 ? k = Se : e.start === !1 && (k = ye), e.type !== tt && (k = e.type), pt.get(n) || pt.set(n, { id: n, shape: k, - description: U.sanitizeText(n, A), + description: W.sanitizeText(n, A), cssClasses: `${m} ${_e}`, - cssStyles: O + cssStyles: N }); const h = pt.get(n); - e.description && (Array.isArray(h.description) ? (h.shape = kt, h.description.push(e.description)) : h.description?.length && h.description.length > 0 ? (h.shape = kt, h.description === n ? h.description = [e.description] : h.description = [h.description, e.description]) : (h.shape = bt, h.description = e.description), h.description = U.sanitizeTextOrArray(h.description, A)), h.description?.length === 1 && h.shape === kt && (h.type === "group" ? h.shape = Ot : h.shape = bt), !h.type && e.doc && (_.info("Setting cluster for XCX", n, wt(e)), h.type = "group", h.isGroup = !0, h.dir = wt(e), h.shape = e.type === Bt ? Nt : Ot, h.cssClasses = `${h.cssClasses} ${Ce} ${d ? xe : ""}`); + e.description && (Array.isArray(h.description) ? (h.shape = kt, h.description.push(e.description)) : h.description?.length && h.description.length > 0 ? (h.shape = kt, h.description === n ? h.description = [e.description] : h.description = [h.description, e.description]) : (h.shape = bt, h.description = e.description), h.description = W.sanitizeTextOrArray(h.description, A)), h.description?.length === 1 && h.shape === kt && (h.type === "group" ? h.shape = Nt : h.shape = bt), !h.type && e.doc && (_.info("Setting cluster for XCX", n, wt(e)), h.type = "group", h.isGroup = !0, h.dir = wt(e), h.shape = e.type === Bt ? Ot : Nt, h.cssClasses = `${h.cssClasses} ${Ce} ${d ? xe : ""}`); const x = { labelStyle: "", shape: h.shape, @@ -727,7 +731,7 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { cssStyles: h.cssStyles, id: n, dir: h.dir, - domId: St(n, G), + domId: St(n, V), type: h.type, isGroup: h.type === "group", padding: 8, @@ -736,7 +740,7 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { look: S, labelType: "markdown" }; - if (x.shape === Nt && (x.label = ""), t && t.id !== "root" && (_.trace("Setting node ", n, " to be child of its parent ", t.id), x.parentId = t.id), x.centerLabel = !0, e.note) { + if (x.shape === Ot && (x.label = ""), t && t.id !== "root" && (_.trace("Setting node ", n, " to be child of its parent ", t.id), x.parentId = t.id), x.centerLabel = !0, e.note) { const D = { labelStyle: "", shape: ge, @@ -746,8 +750,8 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { // useHtmlLabels: false, cssStyles: [], cssCompiledStyles: [], - id: n + Ie + "-" + G, - domId: St(n, G, Ht), + id: n + Ie + "-" + V, + domId: St(n, V, Ht), type: h.type, isGroup: h.type === "group", padding: A.flowchart?.padding, @@ -760,7 +764,7 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { cssClasses: h.cssClasses, cssStyles: [], id: n + Rt, - domId: St(n, G, jt), + domId: St(n, V, jt), type: "group", isGroup: !0, padding: 16, @@ -768,7 +772,7 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { look: S, position: e.note.position }; - G++, L.id = $, D.parentId = $, Q(s, L, g), Q(s, D, g), Q(s, x, g); + V++, L.id = $, D.parentId = $, Q(s, L, g), Q(s, D, g), Q(s, x, g); let P = n, I = D.id; e.note.position === "left of" && (P = D.id, I = n), u.push({ id: P + "-" + I, @@ -788,9 +792,9 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { } else Q(s, x, g); } - e.doc && (_.trace("Adding nodes children "), Re(e, e.doc, o, s, u, !d, S, g)); + e.doc && (_.trace("Adding nodes children "), Re(e, e.doc, l, s, u, !d, S, g)); }, "dataFetcher"), we = /* @__PURE__ */ f(() => { - pt.clear(), G = 0; + pt.clear(), V = 0; }, "reset"), v = { START_NODE: "[*]", START_TYPE: "start", @@ -832,7 +836,7 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { this.clear(!0); for (const s of Array.isArray(t) ? t : t.doc) switch (s.stmt) { - case K: + case X: this.addState(s.id.trim(), s.type, s.doc, s.description, s.note); break; case vt: @@ -851,7 +855,7 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { this.addLink(s.id, s.url, s.tooltip); break; } - const e = this.getStates(), o = w(); + const e = this.getStates(), l = w(); we(), Z( void 0, this.getRootDocV2(), @@ -859,7 +863,7 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { this.nodes, this.edges, !0, - o.look, + l.look, this.classes ); for (const s of this.nodes) @@ -872,25 +876,25 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { } } handleStyleDef(t) { - const e = t.id.trim().split(","), o = t.styleClass.split(","); + const e = t.id.trim().split(","), l = t.styleClass.split(","); for (const s of e) { let u = this.getState(s); if (!u) { const d = s.trim(); this.addState(d), u = this.getState(d); } - u && (u.styles = o.map((d) => d.replace(/;/g, "")?.trim())); + u && (u.styles = l.map((d) => d.replace(/;/g, "")?.trim())); } } setRootDoc(t) { _.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2()); } - docTranslator(t, e, o) { + docTranslator(t, e, l) { if (e.stmt === vt) { this.docTranslator(t, e.state1, !0), this.docTranslator(t, e.state2, !1); return; } - if (e.stmt === K && (e.id === v.START_NODE ? (e.id = t.id + (o ? "_start" : "_end"), e.start = o) : e.id = e.id.trim()), e.stmt !== z && e.stmt !== K || !e.doc) + if (e.stmt === X && (e.id === v.START_NODE ? (e.id = t.id + (l ? "_start" : "_end"), e.start = l) : e.id = e.id.trim()), e.stmt !== K && e.stmt !== X || !e.doc) return; const s = []; let u = []; @@ -902,7 +906,7 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { u.push(d); if (s.length > 0 && u.length > 0) { const d = { - stmt: K, + stmt: X, id: ce(), type: "divider", doc: ft(u) @@ -913,10 +917,10 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { } getRootDocV2() { return this.docTranslator( - { id: z, stmt: z }, - { id: z, stmt: z, doc: this.rootDoc }, + { id: K, stmt: K }, + { id: K, stmt: K, doc: this.rootDoc }, !0 - ), { id: z, doc: this.rootDoc }; + ), { id: K, doc: this.rootDoc }; } /** * Function called by parser when a node definition has been found. @@ -926,15 +930,15 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { * @param styles - styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 style, convert it to an array of that 1 style. * @param textStyles - text styles to apply to this state. Can be a string (1 text test) or an array of text styles. If it's just 1 text style, convert it to an array of that 1 text style. */ - addState(t, e = tt, o = void 0, s = void 0, u = void 0, d = void 0, S = void 0, g = void 0) { + addState(t, e = tt, l = void 0, s = void 0, u = void 0, d = void 0, S = void 0, g = void 0) { const n = t?.trim(); if (!this.currentDocument.states.has(n)) _.info("Adding state ", n, s), this.currentDocument.states.set(n, { - stmt: K, + stmt: X, id: n, descriptions: [], type: e, - doc: o, + doc: l, note: u, classes: [], styles: [], @@ -944,13 +948,13 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { const T = this.currentDocument.states.get(n); if (!T) throw new Error(`State not found: ${n}`); - T.doc || (T.doc = o), T.type || (T.type = e); + T.doc || (T.doc = l), T.type || (T.type = e); } if (s && (_.info("Setting state description", n, s), (Array.isArray(s) ? s : [s]).forEach((m) => this.addDescription(n, m.trim()))), u) { const T = this.currentDocument.states.get(n); if (!T) throw new Error(`State not found: ${n}`); - T.note = u, T.note.text = U.sanitizeText(T.note.text, w()); + T.note = u, T.note.text = W.sanitizeText(T.note.text, w()); } d && (_.info("Setting state classes", n, d), (Array.isArray(d) ? d : [d]).forEach((m) => this.setCssClass(n, m.trim()))), S && (_.info("Setting state styles", n, S), (Array.isArray(S) ? S : [S]).forEach((m) => this.setStyle(n, m.trim()))), g && (_.info("Setting state styles", n, S), (Array.isArray(g) ? g : [g]).forEach((m) => this.setTextStyle(n, m.trim()))); } @@ -972,8 +976,8 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { /** * Adds a clickable link to a state. */ - addLink(t, e, o) { - this.links.set(t, { url: e, tooltip: o }), _.warn("Adding link", t, e, o); + addLink(t, e, l) { + this.links.set(t, { url: e, tooltip: l }), _.warn("Adding link", t, e, l); } /** * Get all registered links. @@ -1012,7 +1016,7 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { endTypeIfNeeded(t = "", e = tt) { return t === v.END_NODE ? v.END_TYPE : e; } - addRelationObjs(t, e, o = "") { + addRelationObjs(t, e, l = "") { const s = this.startIdIfNeeded(t.id.trim()), u = this.startTypeIfNeeded(t.id.trim(), t.type), d = this.startIdIfNeeded(e.id.trim()), S = this.startTypeIfNeeded(e.id.trim(), e.type); this.addState( s, @@ -1035,27 +1039,27 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { ), this.currentDocument.relations.push({ id1: s, id2: d, - relationTitle: U.sanitizeText(o, w()) + relationTitle: W.sanitizeText(l, w()) }); } /** * Add a relation between two items. The items may be full objects or just the string id of a state. */ - addRelation(t, e, o) { + addRelation(t, e, l) { if (typeof t == "object" && typeof e == "object") - this.addRelationObjs(t, e, o); + this.addRelationObjs(t, e, l); else if (typeof t == "string" && typeof e == "string") { const s = this.startIdIfNeeded(t.trim()), u = this.startTypeIfNeeded(t), d = this.endIdIfNeeded(e.trim()), S = this.endTypeIfNeeded(e); this.addState(s, u), this.addState(d, S), this.currentDocument.relations.push({ id1: s, id2: d, - relationTitle: o ? U.sanitizeText(o, w()) : void 0 + relationTitle: l ? W.sanitizeText(l, w()) : void 0 }); } } addDescription(t, e) { - const o = this.currentDocument.states.get(t), s = e.startsWith(":") ? e.replace(":", "").trim() : e; - o?.descriptions?.push(U.sanitizeText(s, w())); + const l = this.currentDocument.states.get(t), s = e.startsWith(":") ? e.replace(":", "").trim() : e; + l?.descriptions?.push(W.sanitizeText(s, w())); } cleanupLabel(t) { return t.startsWith(":") ? t.slice(2).trim() : t.trim(); @@ -1072,14 +1076,14 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { */ addStyleClass(t, e = "") { this.classes.has(t) || this.classes.set(t, { id: t, styles: [], textStyles: [] }); - const o = this.classes.get(t); - e && o && e.split(v.STYLECLASS_SEP).forEach((s) => { + const l = this.classes.get(t); + e && l && e.split(v.STYLECLASS_SEP).forEach((s) => { const u = s.replace(/([^;]*);/, "$1").trim(); if (RegExp(v.COLOR_KEYWORD).exec(s)) { const S = u.replace(v.FILL_KEYWORD, v.BG_FILL).replace(v.COLOR_KEYWORD, v.FILL_KEYWORD); - o.textStyles.push(S); + l.textStyles.push(S); } - o.styles.push(u); + l.styles.push(u); }); } getClasses() { @@ -1094,10 +1098,10 @@ var Z = /* @__PURE__ */ f((t, e, o, s, u, d, S, g) => { * @param cssClassName - CSS class name */ setCssClass(t, e) { - t.split(",").forEach((o) => { - let s = this.getState(o); + t.split(",").forEach((l) => { + let s = this.getState(l); if (!s) { - const u = o.trim(); + const u = l.trim(); this.addState(u), s = this.getState(u); } s?.classes?.push(e); @@ -1383,7 +1387,7 @@ g.stateGroup line { `, "getStyles"), Me = $e; export { Ve as S, - Ge as a, - Ye as b, - Me as s + Ye as a, + Me as b, + Ge as s }; diff --git a/src/wc-content-kit/public/mermaid/chunk-FMBD7UC4-GcD7N4Rf.js b/src/wc-content-kit/public/mermaid/chunk-FMBD7UC4-BsNoqpHi.js similarity index 86% rename from src/wc-content-kit/public/mermaid/chunk-FMBD7UC4-GcD7N4Rf.js rename to src/wc-content-kit/public/mermaid/chunk-FMBD7UC4-BsNoqpHi.js index 7f7799c..c8c35d7 100644 --- a/src/wc-content-kit/public/mermaid/chunk-FMBD7UC4-GcD7N4Rf.js +++ b/src/wc-content-kit/public/mermaid/chunk-FMBD7UC4-BsNoqpHi.js @@ -1,4 +1,4 @@ -import { _ as e } from "./mermaid.core-Jw3znkh4.js"; +import { b as e } from "./mermaid.core-FRDjOodn.js"; var l = /* @__PURE__ */ e(() => ` /* Font Awesome icon styling - consolidated */ .label-icon { diff --git a/src/wc-content-kit/public/mermaid/chunk-YZCP3GAM-fs19uw3J.js b/src/wc-content-kit/public/mermaid/chunk-ND2GUHAM-B58vhIOR.js similarity index 94% rename from src/wc-content-kit/public/mermaid/chunk-YZCP3GAM-fs19uw3J.js rename to src/wc-content-kit/public/mermaid/chunk-ND2GUHAM-B58vhIOR.js index 63f0484..a36bfb9 100644 --- a/src/wc-content-kit/public/mermaid/chunk-YZCP3GAM-fs19uw3J.js +++ b/src/wc-content-kit/public/mermaid/chunk-ND2GUHAM-B58vhIOR.js @@ -1,4 +1,4 @@ -import { _ as i, d as l, U as d, j as o } from "./mermaid.core-Jw3znkh4.js"; +import { b as i, a_ as l, aB as d, V as o } from "./mermaid.core-FRDjOodn.js"; var x = /* @__PURE__ */ i((r, t) => { const 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) @@ -57,12 +57,12 @@ var x = /* @__PURE__ */ i((r, t) => { return r.empty() && (r = l("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 { - p as a, - f as b, + g as a, + m as b, w as c, - x as d, - g as e, - m as f, + p as d, + x as e, + y as f, h as g, - y as h + f as h }; diff --git a/src/wc-content-kit/public/mermaid/chunk-QZHKN3VN-DnDrFfng.js b/src/wc-content-kit/public/mermaid/chunk-QZHKN3VN-CrvmLzNa.js similarity index 83% rename from src/wc-content-kit/public/mermaid/chunk-QZHKN3VN-DnDrFfng.js rename to src/wc-content-kit/public/mermaid/chunk-QZHKN3VN-CrvmLzNa.js index 0d1384e..682887f 100644 --- a/src/wc-content-kit/public/mermaid/chunk-QZHKN3VN-DnDrFfng.js +++ b/src/wc-content-kit/public/mermaid/chunk-QZHKN3VN-CrvmLzNa.js @@ -1,4 +1,4 @@ -import { _ as i } from "./mermaid.core-Jw3znkh4.js"; +import { b as i } from "./mermaid.core-FRDjOodn.js"; var r = class { /** * @param init - Function that creates the default state. diff --git a/src/wc-content-kit/public/mermaid/classDiagram-6PBFFD2Q-CLIJ9e67.js b/src/wc-content-kit/public/mermaid/classDiagram-4FO5ZUOK-DibtwnCR.js similarity index 65% rename from src/wc-content-kit/public/mermaid/classDiagram-6PBFFD2Q-CLIJ9e67.js rename to src/wc-content-kit/public/mermaid/classDiagram-4FO5ZUOK-DibtwnCR.js index fcc163c..8ec98c7 100644 --- a/src/wc-content-kit/public/mermaid/classDiagram-6PBFFD2Q-CLIJ9e67.js +++ b/src/wc-content-kit/public/mermaid/classDiagram-4FO5ZUOK-DibtwnCR.js @@ -1,5 +1,5 @@ -import { s as r, c as s, a as e, C as t } from "./chunk-4TB4RGXK-DjOd3SS_.js"; -import { _ as l } from "./mermaid.core-Jw3znkh4.js"; +import { s as r, a as s, c as e, C as t } from "./chunk-727SXJPM-CJV9r5TJ.js"; +import { b as l } from "./mermaid.core-FRDjOodn.js"; var d = { parser: e, get db() { diff --git a/src/wc-content-kit/public/mermaid/classDiagram-v2-HSJHXN6E-CLIJ9e67.js b/src/wc-content-kit/public/mermaid/classDiagram-v2-Q7XG4LA2-DibtwnCR.js similarity index 65% rename from src/wc-content-kit/public/mermaid/classDiagram-v2-HSJHXN6E-CLIJ9e67.js rename to src/wc-content-kit/public/mermaid/classDiagram-v2-Q7XG4LA2-DibtwnCR.js index fcc163c..8ec98c7 100644 --- a/src/wc-content-kit/public/mermaid/classDiagram-v2-HSJHXN6E-CLIJ9e67.js +++ b/src/wc-content-kit/public/mermaid/classDiagram-v2-Q7XG4LA2-DibtwnCR.js @@ -1,5 +1,5 @@ -import { s as r, c as s, a as e, C as t } from "./chunk-4TB4RGXK-DjOd3SS_.js"; -import { _ as l } from "./mermaid.core-Jw3znkh4.js"; +import { s as r, a as s, c as e, C as t } from "./chunk-727SXJPM-CJV9r5TJ.js"; +import { b as l } from "./mermaid.core-FRDjOodn.js"; var d = { parser: e, get db() { diff --git a/src/wc-content-kit/public/mermaid/clone-DGtQGwc_.js b/src/wc-content-kit/public/mermaid/clone-DGtQGwc_.js deleted file mode 100644 index 4bed511..0000000 --- a/src/wc-content-kit/public/mermaid/clone-DGtQGwc_.js +++ /dev/null @@ -1,8 +0,0 @@ -import { b as r } from "./graph-DgQ8kYSl.js"; -var e = 4; -function a(o) { - return r(o, e); -} -export { - a as c -}; diff --git a/src/wc-content-kit/public/mermaid/cose-bilkent-S5V4N54A-Xuf6MkgG.js b/src/wc-content-kit/public/mermaid/cose-bilkent-S5V4N54A-B7FtS5C6.js similarity index 99% rename from src/wc-content-kit/public/mermaid/cose-bilkent-S5V4N54A-Xuf6MkgG.js rename to src/wc-content-kit/public/mermaid/cose-bilkent-S5V4N54A-B7FtS5C6.js index be57c22..af14772 100644 --- a/src/wc-content-kit/public/mermaid/cose-bilkent-S5V4N54A-Xuf6MkgG.js +++ b/src/wc-content-kit/public/mermaid/cose-bilkent-S5V4N54A-B7FtS5C6.js @@ -1,7 +1,7 @@ -import { _ as V, l as $, d as lt } from "./mermaid.core-Jw3znkh4.js"; -import { c as tt } from "./cytoscape.esm-p9_IyyOE.js"; +import { b as V, aD as k, a_ as lt } from "./mermaid.core-FRDjOodn.js"; +import { c as tt } from "./cytoscape.esm-DLIceJxh.js"; import { g as gt } from "./index.js"; -var k = { exports: {} }, Z = { exports: {} }, Q = { exports: {} }, ut = Q.exports, j; +var Z = { exports: {} }, $ = { exports: {} }, Q = { exports: {} }, ut = Q.exports, j; function ft() { return j || (j = 1, (function(G, b) { (function(I, L) { @@ -1605,7 +1605,7 @@ function ft() { }); })(Q)), Q.exports; } -var ct = Z.exports, z; +var ct = $.exports, z; function pt() { return z || (z = 1, (function(G, b) { (function(I, L) { @@ -2157,9 +2157,9 @@ function pt() { ]) ); }); - })(Z)), Z.exports; + })($)), $.exports; } -var dt = k.exports, J; +var dt = Z.exports, J; function vt() { return J || (J = 1, (function(G, b) { (function(I, L) { @@ -2376,7 +2376,7 @@ function vt() { ]) ); }); - })(k)), k.exports; + })(Z)), Z.exports; } var yt = vt(); const Et = /* @__PURE__ */ gt(yt); @@ -2447,7 +2447,7 @@ function it(G) { animate: !1 }; I.layout(L).run(), I.ready((o) => { - $.info("Cytoscape ready", o), b(I); + k.info("Cytoscape ready", o), b(I); }); }); } @@ -2485,16 +2485,16 @@ function ot(G) { } V(ot, "extractPositionedEdges"); async function st(G, b) { - $.debug("Starting cose-bilkent layout algorithm"); + k.debug("Starting cose-bilkent layout algorithm"); try { at(G); const N = await it(G), I = nt(N), L = ot(N); - return $.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`), { + return k.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`), { nodes: I, edges: L }; } catch (N) { - throw $.error("Error in cose-bilkent layout algorithm:", N), N; + throw k.error("Error in cose-bilkent layout algorithm:", N), N; } } V(st, "executeCoseBilkentLayout"); diff --git a/src/wc-content-kit/public/mermaid/cytoscape.esm-p9_IyyOE.js b/src/wc-content-kit/public/mermaid/cytoscape.esm-DLIceJxh.js similarity index 99% rename from src/wc-content-kit/public/mermaid/cytoscape.esm-p9_IyyOE.js rename to src/wc-content-kit/public/mermaid/cytoscape.esm-DLIceJxh.js index 220a52f..ddba253 100644 --- a/src/wc-content-kit/public/mermaid/cytoscape.esm-p9_IyyOE.js +++ b/src/wc-content-kit/public/mermaid/cytoscape.esm-DLIceJxh.js @@ -18721,7 +18721,7 @@ At.appendToStyle = function(r) { } return r; }; -var Am = "3.33.3", Jt = function(e) { +var Am = "3.33.4", Jt = function(e) { if (e === void 0 && (e = {}), Me(e)) return new Pa(e); if (he(e)) diff --git a/src/wc-content-kit/public/mermaid/dagre-BM42HDAG-DyfrzKXr.js b/src/wc-content-kit/public/mermaid/dagre-BM42HDAG-DyfrzKXr.js new file mode 100644 index 0000000..31c7dae --- /dev/null +++ b/src/wc-content-kit/public/mermaid/dagre-BM42HDAG-DyfrzKXr.js @@ -0,0 +1,445 @@ +import { b as w, aF as F, w as j, u as Y, v as _, aD as r, a4 as H, bj as Q, b4 as V, an as U, ac as $, aQ as P, ak as q, al as z, aP as K, am as W } from "./mermaid.core-FRDjOodn.js"; +import { Q as N, G as B } from "./graph-yNRfypD2.js"; +import { b as Z, m as R, l as I } from "./layout-DivnQK5l.js"; +var ee = 4; +function ne(e) { + return Z(e, ee); +} +function b(e) { + var t = { + options: { + directed: e.isDirected(), + multigraph: e.isMultigraph(), + compound: e.isCompound() + }, + nodes: te(e), + edges: se(e) + }; + return N(e.graph()) || (t.value = ne(e.graph())), t; +} +function te(e) { + return R(e.nodes(), function(t) { + var n = e.node(t), a = e.parent(t), i = { v: t }; + return N(n) || (i.value = n), N(a) || (i.parent = a), i; + }); +} +function se(e) { + return R(e.edges(), function(t) { + var n = e.edge(t), a = { v: t.v, w: t.w }; + return N(t.name) || (a.name = t.name), N(n) || (a.value = n), a; + }); +} +var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ w(() => { + y.clear(), A.clear(), d.clear(); +}, "clear"), D = /* @__PURE__ */ w((e, t) => { + const n = y.get(t) || []; + return r.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e); +}, "isDescendant"), ie = /* @__PURE__ */ w((e, t) => { + const n = y.get(t) || []; + return r.info("Descendants of ", t, " is ", n), r.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || D(e.v, t) || D(e.w, t) || n.includes(e.w) : (r.debug("Tilt, ", t, ",not in descendants"), !1); +}, "edgeInCluster"), G = /* @__PURE__ */ w((e, t, n, a) => { + r.warn( + "Copying children of ", + e, + "root", + a, + "data", + t.node(e), + a + ); + const i = t.children(e) || []; + e !== a && i.push(e), r.warn("Copying (nodes) clusterId", e, "nodes", i), i.forEach((o) => { + if (t.children(o).length > 0) + G(o, t, n, a); + else { + const l = t.node(o); + r.info("cp ", o, " to ", a, " with parent ", e), n.setNode(o, l), a !== t.parent(o) && (r.warn("Setting parent", o, t.parent(o)), n.setParent(o, t.parent(o))), e !== a && o !== e ? (r.debug("Setting parent", o, e), n.setParent(o, e)) : (r.info("In copy ", e, "root", a, "data", t.node(e), a), r.debug( + "Not Setting parent for node=", + o, + "cluster!==rootId", + e !== a, + "node!==clusterId", + o !== e + )); + const u = t.edges(o); + r.debug("Copying Edges", u), u.forEach((c) => { + r.info("Edge", c); + const m = t.edge(c.v, c.w, c.name); + r.info("Edge data", m, a); + try { + ie(c, a) ? (r.info("Copying as ", c.v, c.w, m, c.name), n.setEdge(c.v, c.w, m, c.name), r.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : r.info( + "Skipping copy of edge ", + c.v, + "-->", + c.w, + " rootId: ", + a, + " clusterId:", + e + ); + } catch (h) { + r.error(h); + } + }); + } + r.debug("Removing node", o), t.removeNode(o); + }); +}, "copy"), J = /* @__PURE__ */ w((e, t) => { + const n = t.children(e); + let a = [...n]; + for (const i of n) + A.set(i, e), a = [...a, ...J(i, t)]; + return a; +}, "extractDescendants"), oe = /* @__PURE__ */ w((e, t, n) => { + const a = e.edges().filter((c) => c.v === t || c.w === t), i = e.edges().filter((c) => c.v === n || c.w === n), o = a.map((c) => ({ v: c.v === t ? n : c.v, w: c.w === t ? t : c.w })), l = i.map((c) => ({ v: c.v, w: c.w })); + return o.filter((c) => l.some((m) => c.v === m.v && c.w === m.w)); +}, "findCommonEdges"), C = /* @__PURE__ */ w((e, t, n) => { + const a = t.children(e); + if (r.trace("Searching children of id ", e, a), a.length < 1) + return e; + let i; + for (const o of a) { + const l = C(o, t, n), u = oe(t, n, l); + if (l) + if (u.length > 0) + i = l; + else + return l; + } + return i; +}, "findNonClusterChild"), k = /* @__PURE__ */ w((e) => !d.has(e) || !d.get(e).externalConnections ? e : d.has(e) ? d.get(e).id : e, "getAnchorId"), ae = /* @__PURE__ */ w((e, t) => { + if (!e || t > 10) { + r.debug("Opting out, no graph "); + return; + } else + r.debug("Opting in, graph "); + e.nodes().forEach(function(n) { + e.children(n).length > 0 && (r.warn( + "Cluster identified", + n, + " Replacement id in edges: ", + C(n, e, n) + ), y.set(n, J(n, e)), d.set(n, { id: C(n, e, n), clusterData: e.node(n) })); + }), e.nodes().forEach(function(n) { + const a = e.children(n), i = e.edges(); + a.length > 0 ? (r.debug("Cluster identified", n, y), i.forEach((o) => { + const l = D(o.v, n), u = D(o.w, n); + l ^ u && (r.warn("Edge: ", o, " leaves cluster ", n), r.warn("Descendants of XXX ", n, ": ", y.get(n)), d.get(n).externalConnections = !0); + })) : r.debug("Not a cluster ", n, y); + }); + for (let n of d.keys()) { + const a = d.get(n).id, i = e.parent(a); + i !== n && d.has(i) && !d.get(i).externalConnections && (d.get(n).id = i); + } + e.edges().forEach(function(n) { + const a = e.edge(n); + r.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), r.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n))); + let i = n.v, o = n.w; + if (r.warn( + "Fix XXX", + d, + "ids:", + n.v, + n.w, + "Translating: ", + d.get(n.v), + " --- ", + d.get(n.w) + ), d.get(n.v) || d.get(n.w)) { + if (r.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), i = k(n.v), o = k(n.w), e.removeEdge(n.v, n.w, n.name), i !== n.v) { + const l = e.parent(i); + d.get(l).externalConnections = !0, a.fromCluster = n.v; + } + if (o !== n.w) { + const l = e.parent(o); + d.get(l).externalConnections = !0, a.toCluster = n.w; + } + r.warn("Fix Replacing with XXX", i, o, n.name), e.setEdge(i, o, a, n.name); + } + }), r.warn("Adjusted Graph", b(e)), T(e, 0), r.trace(d); +}, "adjustClustersAndEdges"), T = /* @__PURE__ */ w((e, t) => { + if (r.warn("extractor - ", t, b(e), e.children("D")), t > 10) { + r.error("Bailing out"); + return; + } + let n = e.nodes(), a = !1; + for (const i of n) { + const o = e.children(i); + a = a || o.length > 0; + } + if (!a) { + r.debug("Done, no node has children", e.nodes()); + return; + } + r.debug("Nodes = ", n, t); + for (const i of n) + if (r.debug( + "Extracting node", + i, + d, + d.has(i) && !d.get(i).externalConnections, + !e.parent(i), + e.node(i), + e.children("D"), + " Depth ", + t + ), !d.has(i)) + r.debug("Not a cluster", i, t); + else if (!d.get(i).externalConnections && e.children(i) && e.children(i).length > 0) { + r.warn( + "Cluster without external connections, without a parent and with children", + i, + t + ); + let l = e.graph().rankdir === "TB" ? "LR" : "TB"; + d.get(i)?.clusterData?.dir && (l = d.get(i).clusterData.dir, r.warn("Fixing dir", d.get(i).clusterData.dir, l)); + const u = new B({ + multigraph: !0, + compound: !0 + }).setGraph({ + rankdir: l, + nodesep: 50, + ranksep: 50, + marginx: 8, + marginy: 8 + }).setDefaultEdgeLabel(function() { + return {}; + }); + r.warn("Old graph before copy", b(e)), G(i, e, u, i), e.setNode(i, { + clusterNode: !0, + id: i, + clusterData: d.get(i).clusterData, + label: d.get(i).label, + graph: u + }), r.warn("New graph after copy node: (", i, ")", b(u)), r.debug("Old graph after copy", b(e)); + } else + r.warn( + "Cluster ** ", + i, + " **not meeting the criteria !externalConnections:", + !d.get(i).externalConnections, + " no parent: ", + !e.parent(i), + " children ", + e.children(i) && e.children(i).length > 0, + e.children("D"), + t + ), r.debug(d); + n = e.nodes(), r.warn("New list of nodes", n); + for (const i of n) { + const o = e.node(i); + r.warn(" Now next level", i, o), o?.clusterNode && T(o.graph, t + 1); + } +}, "extractor"), L = /* @__PURE__ */ w((e, t) => { + if (t.length === 0) + return []; + let n = Object.assign([], t); + return t.forEach((a) => { + const i = e.children(a), o = L(e, i); + n = [...n, ...o]; + }), n; +}, "sorter"), ce = /* @__PURE__ */ w((e) => L(e, e.children()), "sortNodesByHierarchy"), M = /* @__PURE__ */ w(async (e, t, n, a, i, o) => { + r.warn("Graph in recursive render:XAX", b(t), i); + const l = t.graph().rankdir; + r.trace("Dir in recursive render - dir:", l); + const u = e.insert("g").attr("class", "root"); + t.nodes() ? r.info("Recursive render XXX", t.nodes()) : r.info("No nodes found for", t), t.edges().length > 0 && r.info("Recursive edges", t.edge(t.edges()[0])); + const c = u.insert("g").attr("class", "clusters"), m = u.insert("g").attr("class", "edgePaths"), h = u.insert("g").attr("class", "edgeLabels"), v = u.insert("g").attr("class", "nodes"); + await Promise.all( + t.nodes().map(async function(f) { + const s = t.node(f); + if (i !== void 0) { + const g = JSON.parse(JSON.stringify(i.clusterData)); + r.trace( + `Setting data for parent cluster XXX + Node.id = `, + f, + ` + data=`, + g.height, + ` +Parent cluster`, + i.height + ), t.setNode(i.id, g), t.parent(f) || (r.trace("Setting parent", f, i.id), t.setParent(f, i.id, g)); + } + if (r.info("(Insert) Node XXX" + f + ": " + JSON.stringify(t.node(f))), s?.clusterNode) { + r.info("Cluster identified XBX", f, s.width, t.node(f)); + const { ranksep: g, nodesep: E } = t.graph(); + s.graph.setGraph({ + ...s.graph.graph(), + ranksep: g + 25, + nodesep: E + }); + const p = await M( + v, + s.graph, + n, + a, + t.node(f), + o + ), x = p.elem; + Q(s, x), s.diff = p.diff || 0, r.info( + "New compound node after recursive render XAX", + f, + "width", + // node, + s.width, + "height", + s.height + // node.x, + // node.y + ), V(x, s); + } else + t.children(f).length > 0 ? (r.trace( + "Cluster - the non recursive path XBX", + f, + s.id, + s, + s.width, + "Graph:", + t + ), r.trace(C(s.id, t)), d.set(s.id, { id: C(s.id, t), node: s })) : (r.trace("Node - the non recursive path XAX", f, v, t.node(f), l), await U(v, t.node(f), { config: o, dir: l })); + }) + ), await (/* @__PURE__ */ w(async () => { + const f = t.edges().map(async function(s) { + const g = t.edge(s.v, s.w, s.name); + r.info("Edge " + s.v + " -> " + s.w + ": " + JSON.stringify(s)), r.info("Edge " + s.v + " -> " + s.w + ": ", s, " ", JSON.stringify(t.edge(s))), r.info( + "Fix", + d, + "ids:", + s.v, + s.w, + "Translating: ", + d.get(s.v), + d.get(s.w) + ), await W(h, g); + }); + await Promise.all(f); + }, "processEdges"))(), r.info("Graph before layout:", JSON.stringify(b(t))), r.info("############################################# XXX"), r.info("### Layout ### XXX"), r.info("############################################# XXX"), I(t), r.info("Graph after layout:", JSON.stringify(b(t))); + let O = 0, { subGraphTitleTotalMargin: S } = $(o); + return await Promise.all( + ce(t).map(async function(f) { + const s = t.node(f); + if (r.info( + "Position XBX => " + f + ": (" + s.x, + "," + s.y, + ") width: ", + s.width, + " height: ", + s.height + ), s?.clusterNode) + s.y += S, r.info( + "A tainted cluster node XBX1", + f, + s.id, + s.width, + s.height, + s.x, + s.y, + t.parent(f) + ), d.get(s.id).node = s, P(s); + else if (t.children(f).length > 0) { + r.info( + "A pure cluster node XBX1", + f, + s.id, + s.x, + s.y, + s.width, + s.height, + t.parent(f) + ), s.height += S, t.node(s.parentId); + const g = s?.padding / 2 || 0, E = s?.labelBBox?.height || 0, p = E - g || 0; + r.debug("OffsetY", p, "labelHeight", E, "halfPadding", g), await q(c, s), d.get(s.id).node = s; + } else { + const g = t.node(s.parentId); + s.y += S / 2, r.info( + "A regular node XBX1 - using the padding", + s.id, + "parent", + s.parentId, + s.width, + s.height, + s.x, + s.y, + "offsetY", + s.offsetY, + "parent", + g, + g?.offsetY, + s + ), P(s); + } + }) + ), t.edges().forEach(function(f) { + const s = t.edge(f); + r.info("Edge " + f.v + " -> " + f.w + ": " + JSON.stringify(s), s), s.points.forEach((x) => x.y += S / 2); + const g = t.node(f.v); + var E = t.node(f.w); + const p = z(m, s, d, n, g, E, a); + K(s, p); + }), t.nodes().forEach(function(f) { + const s = t.node(f); + r.info(f, s.type, s.diff), s.isGroup && (O = s.diff); + }), r.warn("Returning from recursive render XAX", u, O), { elem: u, diff: O }; +}, "recursiveRender"), ue = /* @__PURE__ */ w(async (e, t) => { + const n = new B({ + multigraph: !0, + compound: !0 + }).setGraph({ + rankdir: e.direction, + nodesep: e.config?.nodeSpacing || e.config?.flowchart?.nodeSpacing || e.nodeSpacing, + ranksep: e.config?.rankSpacing || e.config?.flowchart?.rankSpacing || e.rankSpacing, + marginx: 8, + marginy: 8 + }).setDefaultEdgeLabel(function() { + return {}; + }), a = t.select("g"); + F(a, e.markers, e.type, e.diagramId), j(), Y(), _(), re(), e.nodes.forEach((o) => { + n.setNode(o.id, { ...o }), o.parentId && n.setParent(o.id, o.parentId); + }), r.debug("Edges:", e.edges), e.edges.forEach((o) => { + if (o.start === o.end) { + const l = o.start, u = l + "---" + l + "---1", c = l + "---" + l + "---2", m = n.node(l); + n.setNode(u, { + domId: u, + id: u, + parentId: m.parentId, + labelStyle: "", + label: "", + padding: 0, + shape: "labelRect", + // shape: 'rect', + style: "", + width: 10, + height: 10 + }), n.setParent(u, m.parentId), n.setNode(c, { + domId: c, + id: c, + parentId: m.parentId, + labelStyle: "", + padding: 0, + // shape: 'rect', + shape: "labelRect", + label: "", + style: "", + width: 10, + height: 10 + }), n.setParent(c, m.parentId); + const h = structuredClone(o), v = structuredClone(o), X = structuredClone(o); + h.label = "", h.arrowTypeEnd = "none", h.endLabelLeft = "", h.endLabelRight = "", h.startLabelLeft = "", h.id = l + "-cyclic-special-1", v.startLabelRight = "", v.startLabelLeft = "", v.endLabelLeft = "", v.endLabelRight = "", v.arrowTypeStart = "none", v.arrowTypeEnd = "none", v.id = l + "-cyclic-special-mid", X.label = "", X.startLabelRight = "", X.startLabelLeft = "", X.arrowTypeStart = "none", m.isGroup && (h.fromCluster = l, X.toCluster = l), X.id = l + "-cyclic-special-2", X.arrowTypeStart = "none", n.setEdge(l, u, h, l + "-cyclic-special-0"), n.setEdge(u, c, v, l + "-cyclic-special-1"), n.setEdge(c, l, X, l + "-cyc<lic-special-2"); + } else + n.setEdge(o.start, o.end, { ...o }, o.id); + }), r.warn("Graph at first:", JSON.stringify(b(n))), ae(n), r.warn("Graph after XAX:", JSON.stringify(b(n))); + const i = H(); + await M( + a, + n, + e.type, + e.diagramId, + void 0, + i + ); +}, "render"); +export { + ue as render +}; diff --git a/src/wc-content-kit/public/mermaid/dagre-KV5264BT-umRLwpDH.js b/src/wc-content-kit/public/mermaid/dagre-KV5264BT-umRLwpDH.js deleted file mode 100644 index c0f34e3..0000000 --- a/src/wc-content-kit/public/mermaid/dagre-KV5264BT-umRLwpDH.js +++ /dev/null @@ -1,443 +0,0 @@ -import { _ as w, at as F, au as Y, av as _, aw as H, l as i, c as V, ax as z, ay as U, ag as $, am as q, ah as P, af as K, az as Q, aA as W, aB as Z } from "./mermaid.core-Jw3znkh4.js"; -import { i as b, G as B } from "./graph-DgQ8kYSl.js"; -import { l as I } from "./layout-DnbSog08.js"; -import { c as L } from "./clone-DGtQGwc_.js"; -import { m as A } from "./min-Ds2tR2xq.js"; -function h(e) { - var t = { - options: { - directed: e.isDirected(), - multigraph: e.isMultigraph(), - compound: e.isCompound() - }, - nodes: ee(e), - edges: ne(e) - }; - return b(e.graph()) || (t.value = L(e.graph())), t; -} -function ee(e) { - return A(e.nodes(), function(t) { - var n = e.node(t), a = e.parent(t), r = { v: t }; - return b(n) || (r.value = n), b(a) || (r.parent = a), r; - }); -} -function ne(e) { - return A(e.edges(), function(t) { - var n = e.edge(t), a = { v: t.v, w: t.w }; - return b(t.name) || (a.name = t.name), b(n) || (a.value = n), a; - }); -} -var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ w(() => { - y.clear(), J.clear(), d.clear(); -}, "clear"), D = /* @__PURE__ */ w((e, t) => { - const n = y.get(t) || []; - return i.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e); -}, "isDescendant"), se = /* @__PURE__ */ w((e, t) => { - const n = y.get(t) || []; - return i.info("Descendants of ", t, " is ", n), i.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || D(e.v, t) || D(e.w, t) || n.includes(e.w) : (i.debug("Tilt, ", t, ",not in descendants"), !1); -}, "edgeInCluster"), G = /* @__PURE__ */ w((e, t, n, a) => { - i.warn( - "Copying children of ", - e, - "root", - a, - "data", - t.node(e), - a - ); - const r = t.children(e) || []; - e !== a && r.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", r), r.forEach((o) => { - if (t.children(o).length > 0) - G(o, t, n, a); - else { - const l = t.node(o); - i.info("cp ", o, " to ", a, " with parent ", e), n.setNode(o, l), a !== t.parent(o) && (i.warn("Setting parent", o, t.parent(o)), n.setParent(o, t.parent(o))), e !== a && o !== e ? (i.debug("Setting parent", o, e), n.setParent(o, e)) : (i.info("In copy ", e, "root", a, "data", t.node(e), a), i.debug( - "Not Setting parent for node=", - o, - "cluster!==rootId", - e !== a, - "node!==clusterId", - o !== e - )); - const u = t.edges(o); - i.debug("Copying Edges", u), u.forEach((c) => { - i.info("Edge", c); - const m = t.edge(c.v, c.w, c.name); - i.info("Edge data", m, a); - try { - se(c, a) ? (i.info("Copying as ", c.v, c.w, m, c.name), n.setEdge(c.v, c.w, m, c.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info( - "Skipping copy of edge ", - c.v, - "-->", - c.w, - " rootId: ", - a, - " clusterId:", - e - ); - } catch (v) { - i.error(v); - } - }); - } - i.debug("Removing node", o), t.removeNode(o); - }); -}, "copy"), R = /* @__PURE__ */ w((e, t) => { - const n = t.children(e); - let a = [...n]; - for (const r of n) - J.set(r, e), a = [...a, ...R(r, t)]; - return a; -}, "extractDescendants"), ie = /* @__PURE__ */ w((e, t, n) => { - const a = e.edges().filter((c) => c.v === t || c.w === t), r = e.edges().filter((c) => c.v === n || c.w === n), o = a.map((c) => ({ v: c.v === t ? n : c.v, w: c.w === t ? t : c.w })), l = r.map((c) => ({ v: c.v, w: c.w })); - return o.filter((c) => l.some((m) => c.v === m.v && c.w === m.w)); -}, "findCommonEdges"), C = /* @__PURE__ */ w((e, t, n) => { - const a = t.children(e); - if (i.trace("Searching children of id ", e, a), a.length < 1) - return e; - let r; - for (const o of a) { - const l = C(o, t, n), u = ie(t, n, l); - if (l) - if (u.length > 0) - r = l; - else - return l; - } - return r; -}, "findNonClusterChild"), k = /* @__PURE__ */ w((e) => !d.has(e) || !d.get(e).externalConnections ? e : d.has(e) ? d.get(e).id : e, "getAnchorId"), re = /* @__PURE__ */ w((e, t) => { - if (!e || t > 10) { - i.debug("Opting out, no graph "); - return; - } else - i.debug("Opting in, graph "); - e.nodes().forEach(function(n) { - e.children(n).length > 0 && (i.warn( - "Cluster identified", - n, - " Replacement id in edges: ", - C(n, e, n) - ), y.set(n, R(n, e)), d.set(n, { id: C(n, e, n), clusterData: e.node(n) })); - }), e.nodes().forEach(function(n) { - const a = e.children(n), r = e.edges(); - a.length > 0 ? (i.debug("Cluster identified", n, y), r.forEach((o) => { - const l = D(o.v, n), u = D(o.w, n); - l ^ u && (i.warn("Edge: ", o, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", y.get(n)), d.get(n).externalConnections = !0); - })) : i.debug("Not a cluster ", n, y); - }); - for (let n of d.keys()) { - const a = d.get(n).id, r = e.parent(a); - r !== n && d.has(r) && !d.get(r).externalConnections && (d.get(n).id = r); - } - e.edges().forEach(function(n) { - const a = e.edge(n); - i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n))); - let r = n.v, o = n.w; - if (i.warn( - "Fix XXX", - d, - "ids:", - n.v, - n.w, - "Translating: ", - d.get(n.v), - " --- ", - d.get(n.w) - ), d.get(n.v) || d.get(n.w)) { - if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), r = k(n.v), o = k(n.w), e.removeEdge(n.v, n.w, n.name), r !== n.v) { - const l = e.parent(r); - d.get(l).externalConnections = !0, a.fromCluster = n.v; - } - if (o !== n.w) { - const l = e.parent(o); - d.get(l).externalConnections = !0, a.toCluster = n.w; - } - i.warn("Fix Replacing with XXX", r, o, n.name), e.setEdge(r, o, a, n.name); - } - }), i.warn("Adjusted Graph", h(e)), T(e, 0), i.trace(d); -}, "adjustClustersAndEdges"), T = /* @__PURE__ */ w((e, t) => { - if (i.warn("extractor - ", t, h(e), e.children("D")), t > 10) { - i.error("Bailing out"); - return; - } - let n = e.nodes(), a = !1; - for (const r of n) { - const o = e.children(r); - a = a || o.length > 0; - } - if (!a) { - i.debug("Done, no node has children", e.nodes()); - return; - } - i.debug("Nodes = ", n, t); - for (const r of n) - if (i.debug( - "Extracting node", - r, - d, - d.has(r) && !d.get(r).externalConnections, - !e.parent(r), - e.node(r), - e.children("D"), - " Depth ", - t - ), !d.has(r)) - i.debug("Not a cluster", r, t); - else if (!d.get(r).externalConnections && e.children(r) && e.children(r).length > 0) { - i.warn( - "Cluster without external connections, without a parent and with children", - r, - t - ); - let l = e.graph().rankdir === "TB" ? "LR" : "TB"; - d.get(r)?.clusterData?.dir && (l = d.get(r).clusterData.dir, i.warn("Fixing dir", d.get(r).clusterData.dir, l)); - const u = new B({ - multigraph: !0, - compound: !0 - }).setGraph({ - rankdir: l, - nodesep: 50, - ranksep: 50, - marginx: 8, - marginy: 8 - }).setDefaultEdgeLabel(function() { - return {}; - }); - i.warn("Old graph before copy", h(e)), G(r, e, u, r), e.setNode(r, { - clusterNode: !0, - id: r, - clusterData: d.get(r).clusterData, - label: d.get(r).label, - graph: u - }), i.warn("New graph after copy node: (", r, ")", h(u)), i.debug("Old graph after copy", h(e)); - } else - i.warn( - "Cluster ** ", - r, - " **not meeting the criteria !externalConnections:", - !d.get(r).externalConnections, - " no parent: ", - !e.parent(r), - " children ", - e.children(r) && e.children(r).length > 0, - e.children("D"), - t - ), i.debug(d); - n = e.nodes(), i.warn("New list of nodes", n); - for (const r of n) { - const o = e.node(r); - i.warn(" Now next level", r, o), o?.clusterNode && T(o.graph, t + 1); - } -}, "extractor"), M = /* @__PURE__ */ w((e, t) => { - if (t.length === 0) - return []; - let n = Object.assign([], t); - return t.forEach((a) => { - const r = e.children(a), o = M(e, r); - n = [...n, ...o]; - }), n; -}, "sorter"), oe = /* @__PURE__ */ w((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ w(async (e, t, n, a, r, o) => { - i.warn("Graph in recursive render:XAX", h(t), r); - const l = t.graph().rankdir; - i.trace("Dir in recursive render - dir:", l); - const u = e.insert("g").attr("class", "root"); - t.nodes() ? i.info("Recursive render XXX", t.nodes()) : i.info("No nodes found for", t), t.edges().length > 0 && i.info("Recursive edges", t.edge(t.edges()[0])); - const c = u.insert("g").attr("class", "clusters"), m = u.insert("g").attr("class", "edgePaths"), v = u.insert("g").attr("class", "edgeLabels"), X = u.insert("g").attr("class", "nodes"); - await Promise.all( - t.nodes().map(async function(f) { - const s = t.node(f); - if (r !== void 0) { - const g = JSON.parse(JSON.stringify(r.clusterData)); - i.trace( - `Setting data for parent cluster XXX - Node.id = `, - f, - ` - data=`, - g.height, - ` -Parent cluster`, - r.height - ), t.setNode(r.id, g), t.parent(f) || (i.trace("Setting parent", f, r.id), t.setParent(f, r.id, g)); - } - if (i.info("(Insert) Node XXX" + f + ": " + JSON.stringify(t.node(f))), s?.clusterNode) { - i.info("Cluster identified XBX", f, s.width, t.node(f)); - const { ranksep: g, nodesep: E } = t.graph(); - s.graph.setGraph({ - ...s.graph.graph(), - ranksep: g + 25, - nodesep: E - }); - const N = await j( - X, - s.graph, - n, - a, - t.node(f), - o - ), x = N.elem; - z(s, x), s.diff = N.diff || 0, i.info( - "New compound node after recursive render XAX", - f, - "width", - // node, - s.width, - "height", - s.height - // node.x, - // node.y - ), U(x, s); - } else - t.children(f).length > 0 ? (i.trace( - "Cluster - the non recursive path XBX", - f, - s.id, - s, - s.width, - "Graph:", - t - ), i.trace(C(s.id, t)), d.set(s.id, { id: C(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", f, X, t.node(f), l), await $(X, t.node(f), { config: o, dir: l })); - }) - ), await (/* @__PURE__ */ w(async () => { - const f = t.edges().map(async function(s) { - const g = t.edge(s.v, s.w, s.name); - i.info("Edge " + s.v + " -> " + s.w + ": " + JSON.stringify(s)), i.info("Edge " + s.v + " -> " + s.w + ": ", s, " ", JSON.stringify(t.edge(s))), i.info( - "Fix", - d, - "ids:", - s.v, - s.w, - "Translating: ", - d.get(s.v), - d.get(s.w) - ), await Z(v, g); - }); - await Promise.all(f); - }, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(h(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(h(t))); - let O = 0, { subGraphTitleTotalMargin: S } = q(o); - return await Promise.all( - oe(t).map(async function(f) { - const s = t.node(f); - if (i.info( - "Position XBX => " + f + ": (" + s.x, - "," + s.y, - ") width: ", - s.width, - " height: ", - s.height - ), s?.clusterNode) - s.y += S, i.info( - "A tainted cluster node XBX1", - f, - s.id, - s.width, - s.height, - s.x, - s.y, - t.parent(f) - ), d.get(s.id).node = s, P(s); - else if (t.children(f).length > 0) { - i.info( - "A pure cluster node XBX1", - f, - s.id, - s.x, - s.y, - s.width, - s.height, - t.parent(f) - ), s.height += S, t.node(s.parentId); - const g = s?.padding / 2 || 0, E = s?.labelBBox?.height || 0, N = E - g || 0; - i.debug("OffsetY", N, "labelHeight", E, "halfPadding", g), await K(c, s), d.get(s.id).node = s; - } else { - const g = t.node(s.parentId); - s.y += S / 2, i.info( - "A regular node XBX1 - using the padding", - s.id, - "parent", - s.parentId, - s.width, - s.height, - s.x, - s.y, - "offsetY", - s.offsetY, - "parent", - g, - g?.offsetY, - s - ), P(s); - } - }) - ), t.edges().forEach(function(f) { - const s = t.edge(f); - i.info("Edge " + f.v + " -> " + f.w + ": " + JSON.stringify(s), s), s.points.forEach((x) => x.y += S / 2); - const g = t.node(f.v); - var E = t.node(f.w); - const N = Q(m, s, d, n, g, E, a); - W(s, N); - }), t.nodes().forEach(function(f) { - const s = t.node(f); - i.info(f, s.type, s.diff), s.isGroup && (O = s.diff); - }), i.warn("Returning from recursive render XAX", u, O), { elem: u, diff: O }; -}, "recursiveRender"), ue = /* @__PURE__ */ w(async (e, t) => { - const n = new B({ - multigraph: !0, - compound: !0 - }).setGraph({ - rankdir: e.direction, - nodesep: e.config?.nodeSpacing || e.config?.flowchart?.nodeSpacing || e.nodeSpacing, - ranksep: e.config?.rankSpacing || e.config?.flowchart?.rankSpacing || e.rankSpacing, - marginx: 8, - marginy: 8 - }).setDefaultEdgeLabel(function() { - return {}; - }), a = t.select("g"); - F(a, e.markers, e.type, e.diagramId), Y(), _(), H(), te(), e.nodes.forEach((o) => { - n.setNode(o.id, { ...o }), o.parentId && n.setParent(o.id, o.parentId); - }), i.debug("Edges:", e.edges), e.edges.forEach((o) => { - if (o.start === o.end) { - const l = o.start, u = l + "---" + l + "---1", c = l + "---" + l + "---2", m = n.node(l); - n.setNode(u, { - domId: u, - id: u, - parentId: m.parentId, - labelStyle: "", - label: "", - padding: 0, - shape: "labelRect", - // shape: 'rect', - style: "", - width: 10, - height: 10 - }), n.setParent(u, m.parentId), n.setNode(c, { - domId: c, - id: c, - parentId: m.parentId, - labelStyle: "", - padding: 0, - // shape: 'rect', - shape: "labelRect", - label: "", - style: "", - width: 10, - height: 10 - }), n.setParent(c, m.parentId); - const v = structuredClone(o), X = structuredClone(o), p = structuredClone(o); - v.label = "", v.arrowTypeEnd = "none", v.id = l + "-cyclic-special-1", X.arrowTypeStart = "none", X.arrowTypeEnd = "none", X.id = l + "-cyclic-special-mid", p.label = "", m.isGroup && (v.fromCluster = l, p.toCluster = l), p.id = l + "-cyclic-special-2", p.arrowTypeStart = "none", n.setEdge(l, u, v, l + "-cyclic-special-0"), n.setEdge(u, c, X, l + "-cyclic-special-1"), n.setEdge(c, l, p, l + "-cyc<lic-special-2"); - } else - n.setEdge(o.start, o.end, { ...o }, o.id); - }), i.warn("Graph at first:", JSON.stringify(h(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(h(n))); - const r = V(); - await j( - a, - n, - e.type, - e.diagramId, - void 0, - r - ); -}, "render"); -export { - ue as render -}; diff --git a/src/wc-content-kit/public/mermaid/defaultLocale-BgPVtth8.js b/src/wc-content-kit/public/mermaid/defaultLocale-Chz5Z13b.js similarity index 99% rename from src/wc-content-kit/public/mermaid/defaultLocale-BgPVtth8.js rename to src/wc-content-kit/public/mermaid/defaultLocale-Chz5Z13b.js index df6fe79..b629172 100644 --- a/src/wc-content-kit/public/mermaid/defaultLocale-BgPVtth8.js +++ b/src/wc-content-kit/public/mermaid/defaultLocale-Chz5Z13b.js @@ -165,7 +165,7 @@ function en(n) { } export { rn as a, - tn as b, + $ as b, K as e, - $ as f + tn as f }; diff --git a/src/wc-content-kit/public/mermaid/diagram-MMDJMWI5-CaBNe67n.js b/src/wc-content-kit/public/mermaid/diagram-2AECGRRQ-ltvfYbS8.js similarity index 85% rename from src/wc-content-kit/public/mermaid/diagram-MMDJMWI5-CaBNe67n.js rename to src/wc-content-kit/public/mermaid/diagram-2AECGRRQ-ltvfYbS8.js index 398644b..528c5b3 100644 --- a/src/wc-content-kit/public/mermaid/diagram-MMDJMWI5-CaBNe67n.js +++ b/src/wc-content-kit/public/mermaid/diagram-2AECGRRQ-ltvfYbS8.js @@ -1,34 +1,34 @@ -import { s as k, g as I, q as R, p as F, a as _, b as D, _ as l, I as E, z, F as y, G, D as C, l as P, K as W, e as B } from "./mermaid.core-Jw3znkh4.js"; -import { p as V } from "./chunk-4BX2VUAB-OP5xfQzz.js"; -import { p as H } from "./mermaid-parser.core-DQ6c91Zg.js"; +import { b0 as k, a1 as R, a5 as E, b3 as I, a2 as D, b1 as F, b as l, a$ as _, t as z, s as y, a3 as C, S as G, aD as P, ae as W, E as B } from "./mermaid.core-FRDjOodn.js"; +import { p as V } from "./chunk-4BX2VUAB-CLXd73Dk.js"; +import { p as H } from "./wardley-L42UT6IY-C-B6soca.js"; var h = { showLegend: !0, ticks: 5, max: null, min: 0, graticule: "circle" -}, w = { +}, b = { axes: [], curves: [], options: h -}, x = structuredClone(w), j = G.radar, q = /* @__PURE__ */ l(() => y({ +}, x = structuredClone(b), j = G.radar, N = /* @__PURE__ */ l(() => y({ ...j, ...C().radar -}), "getConfig"), b = /* @__PURE__ */ l(() => x.axes, "getAxes"), K = /* @__PURE__ */ l(() => x.curves, "getCurves"), N = /* @__PURE__ */ l(() => x.options, "getOptions"), U = /* @__PURE__ */ l((a) => { +}), "getConfig"), w = /* @__PURE__ */ l(() => x.axes, "getAxes"), U = /* @__PURE__ */ l(() => x.curves, "getCurves"), X = /* @__PURE__ */ l(() => x.options, "getOptions"), Y = /* @__PURE__ */ l((a) => { x.axes = a.map((t) => ({ name: t.name, label: t.label ?? t.name })); -}, "setAxes"), X = /* @__PURE__ */ l((a) => { +}, "setAxes"), Z = /* @__PURE__ */ l((a) => { x.curves = a.map((t) => ({ name: t.name, label: t.label ?? t.name, - entries: Y(t.entries) + entries: q(t.entries) })); -}, "setCurves"), Y = /* @__PURE__ */ l((a) => { +}, "setCurves"), q = /* @__PURE__ */ l((a) => { if (a[0].axis == null) return a.map((e) => e.value); - const t = b(); + const t = w(); if (t.length === 0) throw new Error("Axes must be populated before curves for reference entries"); return t.map((e) => { @@ -37,7 +37,7 @@ var h = { throw new Error("Missing entry for axis " + e.label); return r.value; }); -}, "computeCurveEntries"), Z = /* @__PURE__ */ l((a) => { +}, "computeCurveEntries"), J = /* @__PURE__ */ l((a) => { const t = a.reduce( (e, r) => (e[r.name] = r, e), {} @@ -49,22 +49,22 @@ var h = { min: t.min?.value ?? h.min, graticule: t.graticule?.value ?? h.graticule }; -}, "setOptions"), J = /* @__PURE__ */ l(() => { - z(), x = structuredClone(w); +}, "setOptions"), K = /* @__PURE__ */ l(() => { + z(), x = structuredClone(b); }, "clear"), $ = { - getAxes: b, - getCurves: K, - getOptions: N, - setAxes: U, - setCurves: X, - setOptions: Z, - getConfig: q, - clear: J, - setAccTitle: D, - getAccTitle: _, - setDiagramTitle: F, - getDiagramTitle: R, - getAccDescription: I, + getAxes: w, + getCurves: U, + getOptions: X, + setAxes: Y, + setCurves: Z, + setOptions: J, + getConfig: N, + clear: K, + setAccTitle: F, + getAccTitle: D, + setDiagramTitle: I, + getDiagramTitle: E, + getAccDescription: R, setAccDescription: k }, Q = /* @__PURE__ */ l((a) => { V(a, $); @@ -76,7 +76,7 @@ var h = { P.debug(t), Q(t); }, "parse") }, et = /* @__PURE__ */ l((a, t, e, r) => { - const s = r.db, o = s.getAxes(), i = s.getCurves(), n = s.getOptions(), c = s.getConfig(), d = s.getDiagramTitle(), p = E(t), u = at(p, c), g = n.max ?? Math.max(...i.map((f) => Math.max(...f.entries))), m = n.min, v = Math.min(c.width, c.height) / 2; + const s = r.db, o = s.getAxes(), i = s.getCurves(), n = s.getOptions(), c = s.getConfig(), d = s.getDiagramTitle(), p = _(t), u = at(p, c), g = n.max ?? Math.max(...i.map((f) => Math.max(...f.entries))), m = n.min, v = Math.min(c.width, c.height) / 2; rt(u, o, v, n.ticks, n.graticule), st(u, o, v, c), M(u, o, i, m, g, n.graticule, c), T(u, i, n.showLegend, c), u.append("text").attr("class", "radarTitle").text(d).attr("x", 0).attr("y", -c.height / 2 - c.marginTop); }, "draw"), at = /* @__PURE__ */ l((a, t) => { const e = t.width + t.marginLeft + t.marginRight, r = t.height + t.marginTop + t.marginBottom, s = { diff --git a/src/wc-content-kit/public/mermaid/diagram-5BDNPKRD-BxdQZUPY.js b/src/wc-content-kit/public/mermaid/diagram-5BDNPKRD-BxdQZUPY.js deleted file mode 100644 index 3c771c5..0000000 --- a/src/wc-content-kit/public/mermaid/diagram-5BDNPKRD-BxdQZUPY.js +++ /dev/null @@ -1,123 +0,0 @@ -import { p as x, b as f, s as C, q as B, g as T, a as y, _ as s, F as u, l as k, I as V, e as _, D, G as N, z as S } from "./mermaid.core-Jw3znkh4.js"; -import { p as I } from "./chunk-4BX2VUAB-OP5xfQzz.js"; -import { I as $ } from "./chunk-QZHKN3VN-DnDrFfng.js"; -import { p as z } from "./mermaid-parser.core-DQ6c91Zg.js"; -var d = new $(() => ({ - cnt: 1, - stack: [ - { - id: 0, - level: -1, - name: "/", - children: [] - } - ] -})), A = /* @__PURE__ */ s(() => { - d.reset(), S(); -}, "clear"), X = /* @__PURE__ */ s(() => d.records.stack[0], "getRoot"), H = /* @__PURE__ */ s(() => d.records.cnt, "getCount"), L = N.treeView, R = /* @__PURE__ */ s(() => u(L, D().treeView), "getConfig"), W = /* @__PURE__ */ s((e, t) => { - for (; e <= d.records.stack[d.records.stack.length - 1].level; ) - d.records.stack.pop(); - const a = { - id: d.records.cnt++, - level: e, - name: t, - children: [] - }; - d.records.stack[d.records.stack.length - 1].children.push(a), d.records.stack.push(a); -}, "addNode"), E = { - clear: A, - addNode: W, - getRoot: X, - getCount: H, - getConfig: R, - getAccTitle: y, - getAccDescription: T, - getDiagramTitle: B, - setAccDescription: C, - setAccTitle: f, - setDiagramTitle: x -}, m = E, F = /* @__PURE__ */ s((e) => { - I(e, m), e.nodes.map((t) => m.addNode(t.indent ? parseInt(t.indent) : 0, t.name)); -}, "populate"), M = { - parse: /* @__PURE__ */ s(async (e) => { - const t = await z("treeView", e); - k.debug(t), F(t); - }, "parse") -}, Y = /* @__PURE__ */ s((e, t, a, n, o) => { - const c = n.append("text").text(a.name).attr("dominant-baseline", "middle").attr("class", "treeView-node-label"), { height: g, width: r } = c.node().getBBox(), l = g + o.paddingY * 2, i = r + o.paddingX * 2; - c.attr("x", e + o.paddingX), c.attr("y", t + l / 2), a.BBox = { - x: e, - y: t, - width: i, - height: l - }; -}, "positionLabel"), b = /* @__PURE__ */ s((e, t, a, n, o, c) => e.append("line").attr("x1", t).attr("y1", a).attr("x2", n).attr("y2", o).attr("stroke-width", c).attr("class", "treeView-node-line"), "positionLine"), q = /* @__PURE__ */ s((e, t, a) => { - let n = 0, o = 0; - const c = /* @__PURE__ */ s((r, l, i, h) => { - const v = h * (i.rowIndent + i.paddingX); - Y(v, n, l, r, i); - const { height: p, width: w } = l.BBox; - b( - r, - v - i.rowIndent, - n + p / 2, - v, - n + p / 2, - i.lineThickness - ), o = Math.max(o, v + w), n += p; - }, "drawNode"), g = /* @__PURE__ */ s((r, l = 0) => { - c(e, r, a, l), r.children.forEach((p) => { - g(p, l + 1); - }); - const { x: i, y: h, height: v } = r.BBox; - if (r.children.length) { - const { y: p, height: w } = r.children[r.children.length - 1].BBox; - b( - e, - i + a.paddingX, - h + v, - i + a.paddingX, - p + w / 2 + a.lineThickness / 2, - a.lineThickness - ); - } - }, "processNode"); - return g(t), { totalHeight: n, totalWidth: o }; -}, "drawTree"), G = /* @__PURE__ */ s((e, t, a, n) => { - k.debug(`Rendering treeView diagram -` + e); - const o = n.db, c = o.getRoot(), g = o.getConfig(), r = V(t), l = r.append("g"); - l.attr("class", "tree-view"); - const { totalHeight: i, totalWidth: h } = q(l, c, g); - r.attr("viewBox", `-${g.lineThickness / 2} 0 ${h} ${i}`), _(r, i, h, g.useMaxWidth); -}, "draw"), j = { - draw: G -}, J = j, K = { - labelFontSize: "16px", - labelColor: "black", - lineColor: "black" -}, O = /* @__PURE__ */ s(({ - treeView: e -}) => { - const { labelFontSize: t, labelColor: a, lineColor: n } = u( - K, - e - ); - return ` - .treeView-node-label { - font-size: ${t}; - fill: ${a}; - } - .treeView-node-line { - stroke: ${n}; - } - `; -}, "styles"), P = O, te = { - db: m, - renderer: J, - parser: M, - styles: P -}; -export { - te as diagram -}; diff --git a/src/wc-content-kit/public/mermaid/diagram-5GNKFQAL-Bc-PVrmA.js b/src/wc-content-kit/public/mermaid/diagram-5GNKFQAL-Bc-PVrmA.js new file mode 100644 index 0000000..8c500c7 --- /dev/null +++ b/src/wc-content-kit/public/mermaid/diagram-5GNKFQAL-Bc-PVrmA.js @@ -0,0 +1,123 @@ +import { b3 as x, b1 as f, b0 as C, a5 as B, a1 as T, a2 as y, b as s, s as u, aD as k, a$ as V, E as S, a3 as D, t as N, S as _ } from "./mermaid.core-FRDjOodn.js"; +import { p as $ } from "./chunk-4BX2VUAB-CLXd73Dk.js"; +import { I as A } from "./chunk-QZHKN3VN-CrvmLzNa.js"; +import { p as I } from "./wardley-L42UT6IY-C-B6soca.js"; +var l = new A(() => ({ + cnt: 1, + stack: [ + { + id: 0, + level: -1, + name: "/", + children: [] + } + ] +})), X = /* @__PURE__ */ s(() => { + l.reset(), N(); +}, "clear"), z = /* @__PURE__ */ s(() => l.records.stack[0], "getRoot"), E = /* @__PURE__ */ s(() => l.records.cnt, "getCount"), H = _.treeView, L = /* @__PURE__ */ s(() => u(H, D().treeView), "getConfig"), R = /* @__PURE__ */ s((e, t) => { + for (; e <= l.records.stack[l.records.stack.length - 1].level; ) + l.records.stack.pop(); + const a = { + id: l.records.cnt++, + level: e, + name: t, + children: [] + }; + l.records.stack[l.records.stack.length - 1].children.push(a), l.records.stack.push(a); +}, "addNode"), W = { + clear: X, + addNode: R, + getRoot: z, + getCount: E, + getConfig: L, + getAccTitle: y, + getAccDescription: T, + getDiagramTitle: B, + setAccDescription: C, + setAccTitle: f, + setDiagramTitle: x +}, w = W, M = /* @__PURE__ */ s((e) => { + $(e, w), e.nodes.map((t) => w.addNode(t.indent ? parseInt(t.indent) : 0, t.name)); +}, "populate"), F = { + parse: /* @__PURE__ */ s(async (e) => { + const t = await I("treeView", e); + k.debug(t), M(t); + }, "parse") +}, Y = /* @__PURE__ */ s((e, t, a, n, o) => { + const c = n.append("text").text(a.name).attr("dominant-baseline", "middle").attr("class", "treeView-node-label"), { height: g, width: r } = c.node().getBBox(), d = g + o.paddingY * 2, i = r + o.paddingX * 2; + c.attr("x", e + o.paddingX), c.attr("y", t + d / 2), a.BBox = { + x: e, + y: t, + width: i, + height: d + }; +}, "positionLabel"), m = /* @__PURE__ */ s((e, t, a, n, o, c) => e.append("line").attr("x1", t).attr("y1", a).attr("x2", n).attr("y2", o).attr("stroke-width", c).attr("class", "treeView-node-line"), "positionLine"), j = /* @__PURE__ */ s((e, t, a) => { + let n = 0, o = 0; + const c = /* @__PURE__ */ s((r, d, i, h) => { + const v = h * (i.rowIndent + i.paddingX); + Y(v, n, d, r, i); + const { height: p, width: b } = d.BBox; + m( + r, + v - i.rowIndent, + n + p / 2, + v, + n + p / 2, + i.lineThickness + ), o = Math.max(o, v + b), n += p; + }, "drawNode"), g = /* @__PURE__ */ s((r, d = 0) => { + c(e, r, a, d), r.children.forEach((p) => { + g(p, d + 1); + }); + const { x: i, y: h, height: v } = r.BBox; + if (r.children.length) { + const { y: p, height: b } = r.children[r.children.length - 1].BBox; + m( + e, + i + a.paddingX, + h + v, + i + a.paddingX, + p + b / 2 + a.lineThickness / 2, + a.lineThickness + ); + } + }, "processNode"); + return g(t), { totalHeight: n, totalWidth: o }; +}, "drawTree"), q = /* @__PURE__ */ s((e, t, a, n) => { + k.debug(`Rendering treeView diagram +` + e); + const o = n.db, c = o.getRoot(), g = o.getConfig(), r = V(t), d = r.append("g"); + d.attr("class", "tree-view"); + const { totalHeight: i, totalWidth: h } = j(d, c, g); + r.attr("viewBox", `-${g.lineThickness / 2} 0 ${h} ${i}`), S(r, i, h, g.useMaxWidth); +}, "draw"), G = { + draw: q +}, J = G, K = { + labelFontSize: "16px", + labelColor: "black", + lineColor: "black" +}, O = /* @__PURE__ */ s(({ + treeView: e +}) => { + const { labelFontSize: t, labelColor: a, lineColor: n } = u( + K, + e + ); + return ` + .treeView-node-label { + font-size: ${t}; + fill: ${a}; + } + .treeView-node-line { + stroke: ${n}; + } + `; +}, "styles"), P = O, te = { + db: w, + renderer: J, + parser: F, + styles: P +}; +export { + te as diagram +}; diff --git a/src/wc-content-kit/public/mermaid/diagram-KO2AKTUF-AnsDy_s7.js b/src/wc-content-kit/public/mermaid/diagram-KO2AKTUF-AnsDy_s7.js new file mode 100644 index 0000000..f8d04e4 --- /dev/null +++ b/src/wc-content-kit/public/mermaid/diagram-KO2AKTUF-AnsDy_s7.js @@ -0,0 +1,463 @@ +import { p as re } from "./chunk-4BX2VUAB-CLXd73Dk.js"; +import { a5 as oe, b3 as se, b0 as de, a1 as le, a2 as ce, b1 as me, b as o, aD as g, a4 as D, a_ as ue, b7 as xe, t as fe, s as ge, a3 as M, S as he, aZ as y, bm as P, p as be } from "./mermaid.core-FRDjOodn.js"; +import { p as pe, i as ve } from "./wardley-L42UT6IY-C-B6soca.js"; +var T = "position frame", $ = "frame positioned", S = "position relation", N = "relation positioned", we = /* @__PURE__ */ o(function(e) { + g.debug("options str", e); +}, "setOptions"), ye = /* @__PURE__ */ o(function() { + return {}; +}, "getOptions"), Pe = /* @__PURE__ */ o(function() { + C(), fe(); +}, "clear"); +function C() { + B = {}; +} +o(C, "reset"); +var Se = he.eventmodeling, ke = /* @__PURE__ */ o(() => ge({ + ...Se, + ...M().eventmodeling +}), "getConfig"), B = {}; +function O() { + let e = Fe; + const { ast: n } = B, t = E(); + if (!n) + throw new Error("No data for EventModel"); + return n.frames.forEach((i, a) => { + const r = G(i, n.dataEntities, t); + e = v(e, { + $kind: T, + index: a, + frame: i, + textProps: r + }); + let d; + K(i) ? (g.debug("source frame", i.sourceFrames), d = n.frames.filter((l) => i.sourceFrames.some((c) => c.$refText === l.name)), d.forEach((l) => { + e = v(e, { + $kind: S, + index: a, + frame: i, + sourceFrame: l + }); + })) : e = v(e, { + $kind: S, + index: a, + frame: i + }); + }), e = { + ...e, + sortedSwimlanesArray: A(e.swimlanes) + }, e; +} +o(O, "getState"); +function I(e) { + B.ast = e; +} +o(I, "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 E() { + return s; +} +o(E, "getDiagramProps"); +var Fe = { + boxes: [], + swimlanes: {}, + relations: [], + maxR: 0, + sortedSwimlanesArray: [] +}; +function W(e) { + const n = e.split("."); + if (n.length === 2) + return n[0]; +} +o(W, "extractNamespace"); +function H(e) { + const n = e.split("."); + return n.length === 2 ? n[1] : e; +} +o(H, "extractName"); +function U(e, n) { + if (!(!n || n.length === 0)) + return Object.values(e).find((t) => t.namespace === n); +} +o(U, "findSwimlaneByNamespace"); +function p(e, n, t) { + return Math.max( + n, + ...Object.keys(e).filter((i) => { + const a = Number.parseInt(i); + return a > n && a < t; + }).map((i) => Number.parseInt(i)) + ) + 1; +} +o(p, "findNextAvailableIndex"); +function _(e, n) { + const t = W(e.entityIdentifier), i = U(n, t); + switch (e.modelEntityType) { + case "ui": + case "pcr": + case "processor": + return i ? { + index: i.index, + label: i.namespace || s.labelUiAutomation + } : t ? { + index: p(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: p(n, 100, 200), + label: s.labelCommandReadModelPrefix + t + } : { index: 100, label: s.labelCommandReadModel }; + case "evt": + case "event": + default: + return i ? { + index: i.index, + label: i.namespace || s.labelEvents + } : t ? { + index: p(n, 200, 300), + label: s.labelEventsPrefix + t + } : { index: 200, label: s.labelEvents }; + } +} +o(_, "calculateSwimlaneProps"); +function L(e) { + const { themeVariables: n } = M(); + 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(L, "calculateEntityVisualProps"); +function G(e, n, t) { + const i = M(), a = y(H(e.entityIdentifier) ?? "", i); + let r; + const d = { + fontSize: 16, + fontWeight: 700, + fontFamily: '"trebuchet ms", verdana, arial, sans-serif', + joinWith: "<br/>" + }; + let c = `<b>${P(a, t.textMaxWidth, d)}</b>`; + if (e.dataInlineValue && (r = e.dataInlineValue, r = r.substring(r.indexOf("{") + 1), r = r.substring(0, r.lastIndexOf("}") - 1), r = y(r, i), r = P(r, t.textMaxWidth, d), r = r.replaceAll(" ", " ")), e.dataReference) { + const b = n.find( + (w) => w.name === e.dataReference?.$refText + ); + b && (r = b.dataBlockValue, r = r.substring(r.indexOf(`{ +`) + 2), r = r.substring(0, r.lastIndexOf("}") - 1), r = y(r, i), r = P(r, t.textMaxWidth, d), r = r.replaceAll(" ", " "), r += "<br/>"); + } + const m = r !== void 0; + m && (c += `<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`); + const x = { + fontSize: d.fontSize, + fontWeight: d.fontWeight, + fontFamily: d.fontFamily + }, u = be(c, x), h = m ? u.width / 3 : u.width, f = { + content: c, + width: h, + height: u.height + }; + return g.debug(`[${e.name}] ${e.entityIdentifier} text`, f), f; +} +o(G, "calculateTextProps"); +function V(e, n) { + const t = n, i = L(t.frame), a = { + width: t.textProps.width + 2 * s.boxTextPadding, + height: t.textProps.height + 2 * s.boxTextPadding + }; + return [{ + $kind: $, + frame: t.frame, + index: t.index, + visual: i, + dimension: a, + textProps: t.textProps + }]; +} +o(V, "decidePositionFrame"); +function X(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(X, "calculateX"); +function j(e, n) { + const t = [...e.map((i) => i.r), n]; + return Math.max(...t); +} +o(j, "calculateMaxRight"); +function A(e) { + return Object.values(e).sort((n, t) => n.index - t.index); +} +o(A, "sortedSwimlanesArray"); +function Y(e, n) { + const t = n, i = _(t.frame, e.swimlanes); + let a; + i.index in e.swimlanes ? a = e.swimlanes[i.index] : a = { + index: i.index, + label: i.label, + r: 0, + y: i.index * s.swimlaneMinHeight + s.swimlaneGap, + height: s.swimlaneMinHeight, + maxHeight: s.swimlaneMinHeight + }; + const r = 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 = X(a, d, r), m = c + l.width + s.boxPadding, x = j(Object.values(e.swimlanes), m); + a.r = c + l.width, a.maxHeight = Math.max(a.maxHeight, l.height), a.height = Math.max(s.swimlaneMinHeight, a.maxHeight) + 2 * s.swimlanePadding; + const u = { + x: c, + y: s.swimlanePadding + a.y, + // y: diagramProps.swimlanePadding + (swimlane.y || diagramProps.boxDefaultY), + r: m, + dimension: l, + leftSibling: !1, + swimlane: a, + visual: t.visual, + text: t.textProps.content, + frame: t.frame, + index: t.index + }, h = { + ...e, + boxes: [...e.boxes, u], + swimlanes: { + ...e.swimlanes, + [`${a.index}`]: a + }, + previousSwimlaneNumber: i.index, + previousFrame: t.frame, + maxR: x + }, f = A(h.swimlanes); + f.length > 0 && (f[0].y = 0); + for (let b = 1; b < f.length; b++) { + const w = f[b], R = f[b - 1]; + w.y = R.y + R.height + s.swimlaneGap; + } + return h; +} +o(Y, "evolveFramePositioned"); +function z(e, n) { + return e === 0 && n.sourceFrames.length === 0; +} +o(z, "isFirstFrame"); +function K(e) { + return e.sourceFrames !== void 0 && e.sourceFrames !== null && e.sourceFrames.length > 0; +} +o(K, "hasSourceFrame"); +function k(e, n) { + if (n != null) + return e.find((t) => t.frame.name === n.name); +} +o(k, "findBoxByFrame"); +function Z(e, n, t) { + if (!(t < 0)) + for (let i = t; i >= 0; i--) { + const a = e[i]; + if (a.swimlane.index !== n) + return a; + } +} +o(Z, "findBoxByLineIndex"); +function q(e, n) { + const t = n; + if (ve(t.frame) || z(t.index, t.frame)) + return []; + const i = k(e.boxes, t.frame); + if (i === void 0) + throw new Error(`Target box not found for frame ${t.frame.name}`); + let a; + return t.sourceFrame ? a = k(e.boxes, t.sourceFrame) : a = Z(e.boxes, i.swimlane.index, t.index - 1), a === void 0 ? [] : [{ + $kind: N, + frame: t.frame, + index: t.index, + sourceBox: a, + targetBox: i + }]; +} +o(q, "decidePositionRelation"); +function J(e, n) { + const 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(J, "evolveRelationPositioned"); +var Me = { + [T]: V, + [S]: q +}, Be = { + [$]: Y, + [N]: J +}; +function Q(e, n) { + const t = Me[n.$kind]; + if (t == null) + return []; + const i = t(e, n); + return g.debug("decided events", i), i; +} +o(Q, "decide"); +function ee(e, n) { + const t = n.reduce((i, a) => { + const r = Be[a.$kind]; + return r == null ? i : r(i, a); + }, e); + return g.debug("evolve events", { state: e, newState: t, events: n }), t; +} +o(ee, "evolve"); +function v(e, n) { + const t = Q(e, n); + return ee(e, t); +} +o(v, "dispatch"); +var F = { + getConfig: ke, + setOptions: we, + getOptions: ye, + clear: Pe, + setAccTitle: me, + getAccTitle: ce, + getAccDescription: le, + setAccDescription: de, + setDiagramTitle: se, + getDiagramTitle: oe, + setAst: I, + getDiagramProps: E, + getState: O +}, Ee = { + parse: /* @__PURE__ */ o(async (e) => { + const n = await pe("eventmodeling", e); + g.debug(n), F.setAst(n), re(n, F); + }, "parse") +}, Ae = D(), Re = Ae?.eventmodeling; +function te(e, n) { + return (t) => { + const i = t.swimlane.y + n.swimlanePadding, a = e.append("g").attr("class", "em-box"); + a.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), a.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(te, "renderD3Box"); +function ne(e, n) { + return e > n; +} +o(ne, "dirUpwards"); +function ie(e, n, t, i) { + return (a) => { + const r = a.sourceBox.swimlane.y + n.swimlanePadding, d = a.targetBox.swimlane.y + n.swimlanePadding, l = ne(r, d), c = a.sourceBox.x + a.sourceBox.dimension.width * 2 / 3, m = a.targetBox.x + a.targetBox.dimension.width / 3; + let x, u; + g.debug(`rendering relation up=${l} for `, { + sourceBox: a.sourceBox, + targetBox: a.targetBox + }), l ? (x = r, u = d + a.targetBox.dimension.height) : (x = r + a.sourceBox.dimension.height, u = d); + const h = i.emRelationStroke ?? a.visual.stroke; + e.append("path").attr("class", "em-relation").attr("fill", a.visual.fill).attr("stroke", h).attr("stroke-width", "1").attr("marker-end", `url(#${t})`).attr("d", `M${c} ${x} L${m} ${u}`); + }; +} +o(ie, "renderD3Relation"); +function ae(e, n, t, i) { + return (a) => { + const r = e.append("g").attr("class", "em-swimlane"), d = i.emSwimlaneBackgroundOdd ?? "rgb(250,250,250)", l = i.emSwimlaneBackgroundStroke ?? "rgb(240,240,240)"; + r.append("rect").attr("x", 0).attr("y", a.y).attr("rx", "3").attr("width", n + t.swimlanePadding).attr("height", a.height).attr("fill", d).attr("stroke", l), r.append("text").attr("font-weight", t.swimlaneTextFontWeight).attr("x", 30).attr("y", a.y + 30).text(a.label); + }; +} +o(ae, "renderD3Swimlane"); +var De = /* @__PURE__ */ o(function(e, n, t, i) { + if (g.debug("in eventmodeling renderer", e + ` +`, "id:", n, t), !Re) + throw new Error("EventModeling config not found"); + const a = i.db, { themeVariables: r, eventmodeling: d } = D(), l = ue(`[id="${n}"]`), c = a.getDiagramProps(), m = a.getState(), x = `em-arrowhead-${n}`, u = r.emArrowhead ?? "#000000"; + m.sortedSwimlanesArray.forEach( + ae(l, m.maxR, c, r) + ), m.boxes.forEach(te(l, c)), m.relations.forEach(ie(l, c, x, r)), 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), xe(void 0, l, d?.padding ?? 30, d?.useMaxWidth); +}, "draw"), Te = { + draw: De +}, $e = /* @__PURE__ */ o((e) => "", "getStyles"), Ne = $e, We = { + parser: Ee, + db: F, + renderer: Te, + styles: Ne +}; +export { + We as diagram +}; diff --git a/src/wc-content-kit/public/mermaid/diagram-TYMM5635-CDA657xg.js b/src/wc-content-kit/public/mermaid/diagram-LMA3HP47-m2nZarZy.js similarity index 83% rename from src/wc-content-kit/public/mermaid/diagram-TYMM5635-CDA657xg.js rename to src/wc-content-kit/public/mermaid/diagram-LMA3HP47-m2nZarZy.js index 5e6a0c2..836f0b3 100644 --- a/src/wc-content-kit/public/mermaid/diagram-TYMM5635-CDA657xg.js +++ b/src/wc-content-kit/public/mermaid/diagram-LMA3HP47-m2nZarZy.js @@ -1,9 +1,9 @@ -import { _ as b, F as u, I as $, e as B, l as m, b as C, a as S, p as D, q as T, g as z, s as F, G as P, D as E, z as A } from "./mermaid.core-Jw3znkh4.js"; -import { p as W } from "./chunk-4BX2VUAB-OP5xfQzz.js"; -import { p as _ } from "./mermaid-parser.core-DQ6c91Zg.js"; -var N = P.packet, w = class { +import { b, s as u, a$ as $, E as B, aD as m, b1 as C, a2 as S, b3 as D, a5 as T, a1 as E, b0 as P, a3 as z, S as F, t as A } from "./mermaid.core-FRDjOodn.js"; +import { p as W } from "./chunk-4BX2VUAB-CLXd73Dk.js"; +import { p as _ } from "./wardley-L42UT6IY-C-B6soca.js"; +var N = F.packet, w = class { constructor() { - this.packet = [], this.setAccTitle = C, this.getAccTitle = S, this.setDiagramTitle = D, this.getDiagramTitle = T, this.getAccDescription = z, this.setAccDescription = F; + this.packet = [], this.setAccTitle = C, this.getAccTitle = S, this.setDiagramTitle = D, this.getDiagramTitle = T, this.getAccDescription = E, this.setAccDescription = P; } static { b(this, "PacketDB"); @@ -11,7 +11,7 @@ var N = P.packet, w = class { getConfig() { const t = u({ ...N, - ...E().packet + ...z().packet }); return t.showBits && (t.paddingY += 10), t; } @@ -24,7 +24,7 @@ var N = P.packet, w = class { clear() { A(), this.packet = []; } -}, I = 1e4, L = /* @__PURE__ */ b((t, e) => { +}, L = 1e4, M = /* @__PURE__ */ b((t, e) => { W(t, e); let r = -1, s = [], n = 1; const { bitsPerRow: l } = e.getConfig(); @@ -37,15 +37,15 @@ var N = P.packet, w = class { ); if (d === 0) throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`); - for (i ??= a + (d ?? 1) - 1, d ??= i - a + 1, r = i, m.debug(`Packet block ${a} - ${r} with label ${c}`); s.length <= l + 1 && e.getPacket().length < I; ) { - const [p, o] = M({ start: a, end: i, bits: d, label: c }, n, l); + for (i ??= a + (d ?? 1) - 1, d ??= i - a + 1, r = i, m.debug(`Packet block ${a} - ${r} with label ${c}`); s.length <= l + 1 && e.getPacket().length < L; ) { + const [p, o] = Y({ start: a, end: i, bits: d, label: c }, n, l); if (s.push(p), p.end + 1 === n * l && (e.pushWord(s), s = [], n++), !o) break; ({ start: a, end: i, bits: d, label: c } = o); } } e.pushWord(s); -}, "populate"), M = /* @__PURE__ */ b((t, e, r) => { +}, "populate"), Y = /* @__PURE__ */ b((t, e, r) => { if (t.start === void 0) throw new Error("start should have been set during first phase"); if (t.end === void 0) @@ -78,15 +78,15 @@ var N = P.packet, w = class { 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." ); - m.debug(e), L(e, r); + m.debug(e), M(e, r); }, "parse") -}, Y = /* @__PURE__ */ b((t, e, r, s) => { +}, I = /* @__PURE__ */ b((t, e, r, s) => { const n = s.db, l = n.getConfig(), { rowHeight: a, paddingY: i, bitWidth: d, bitsPerRow: c } = l, p = n.getPacket(), o = n.getDiagramTitle(), h = a + i, g = h * (p.length + 1) - (o ? 0 : a), k = d * c + 2, f = $(e); f.attr("viewBox", `0 0 ${k} ${g}`), B(f, g, k, l.useMaxWidth); for (const [x, y] of p.entries()) - G(f, y, x, l); + O(f, y, x, l); f.append("text").text(o).attr("x", k / 2).attr("y", g - h / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle"); -}, "draw"), G = /* @__PURE__ */ b((t, e, r, { rowHeight: s, paddingX: n, paddingY: l, bitWidth: a, bitsPerRow: i, showBits: d }) => { +}, "draw"), O = /* @__PURE__ */ b((t, e, r, { rowHeight: s, paddingX: n, paddingY: l, bitWidth: a, bitsPerRow: i, showBits: d }) => { const c = t.append("g"), p = r * (s + l) + l; for (const o of e) { const h = o.start % i * a + 1, g = (o.end - o.start + 1) * a - n; @@ -95,7 +95,7 @@ var N = P.packet, w = class { const k = o.end === o.start, f = p - 2; c.append("text").attr("x", h + (k ? g / 2 : 0)).attr("y", f).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", k ? "middle" : "start").text(o.start), k || c.append("text").attr("x", h + g).attr("y", f).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(o.end); } -}, "drawWord"), O = { draw: Y }, j = { +}, "drawWord"), j = { draw: I }, G = { byteFontSize: "10px", startByteColor: "black", endByteColor: "black", @@ -106,8 +106,8 @@ var N = P.packet, w = class { blockStrokeColor: "black", blockStrokeWidth: "1", blockFillColor: "#efefef" -}, q = /* @__PURE__ */ b(({ packet: t } = {}) => { - const e = u(j, t); +}, H = /* @__PURE__ */ b(({ packet: t } = {}) => { + const e = u(G, t); return ` .packetByte { font-size: ${e.byteFontSize}; @@ -132,14 +132,14 @@ var N = P.packet, w = class { fill: ${e.blockFillColor}; } `; -}, "styles"), U = { +}, "styles"), X = { parser: v, get db() { return new w(); }, - renderer: O, - styles: q + renderer: j, + styles: H }; export { - U as diagram + X as diagram }; diff --git a/src/wc-content-kit/public/mermaid/diagram-G4DWMVQ6-BobEleCI.js b/src/wc-content-kit/public/mermaid/diagram-OG6HWLK6-DV_6aBCz.js similarity index 88% rename from src/wc-content-kit/public/mermaid/diagram-G4DWMVQ6-BobEleCI.js rename to src/wc-content-kit/public/mermaid/diagram-OG6HWLK6-DV_6aBCz.js index 75c8f4d..4be9694 100644 --- a/src/wc-content-kit/public/mermaid/diagram-G4DWMVQ6-BobEleCI.js +++ b/src/wc-content-kit/public/mermaid/diagram-OG6HWLK6-DV_6aBCz.js @@ -1,9 +1,9 @@ -import { _ as w, K as de, D as Q, F as Z, I as he, e as ue, l as J, bb as P, d as Y, b as pe, a as fe, p as me, q as ge, g as ye, s as Se, G as ve, bc as xe, z as be } from "./mermaid.core-Jw3znkh4.js"; -import { s as we } from "./chunk-EDXVE4YY-j9tcUx_w.js"; -import { p as Ce } from "./chunk-4BX2VUAB-OP5xfQzz.js"; -import { p as Te } from "./mermaid-parser.core-DQ6c91Zg.js"; -import { b as H } from "./defaultLocale-BgPVtth8.js"; -import { o as U } from "./ordinal-DfAQgscy.js"; +import { b as w, ae as de, a3 as Q, s as J, a$ as he, E as ue, aD as K, bb as P, a_ as Y, b1 as pe, a2 as fe, b3 as me, a5 as ge, a1 as ye, b0 as Se, S as ve, av as xe, t as be } from "./mermaid.core-FRDjOodn.js"; +import { s as we } from "./chunk-2J33WTMH-HCULbuMq.js"; +import { p as Ce } from "./chunk-4BX2VUAB-CLXd73Dk.js"; +import { p as Te } from "./wardley-L42UT6IY-C-B6soca.js"; +import { f as I } from "./defaultLocale-Chz5Z13b.js"; +import { o as Z } from "./ordinal-DfAQgscy.js"; function Le(e) { var a = 0, n = e.children, l = n && n.length; if (!l) a = 1; @@ -80,13 +80,13 @@ function Be() { a.children || e.push(a); }), e; } -function Re() { +function Ee() { var e = this, a = []; return e.each(function(n) { n !== e && a.push({ source: n.parent, target: n }); }), a; } -function* Ee() { +function* Re() { var e = this, a, n = [e], l, r, o; do for (a = n.reverse(), n = []; e = a.pop(); ) @@ -96,7 +96,7 @@ function* Ee() { while (n.length); } function ee(e, a) { - e instanceof Map ? (e = [void 0, e], a === void 0 && (a = He)) : a === void 0 && (a = Ie); + e instanceof Map ? (e = [void 0, e], a === void 0 && (a = Ie)) : a === void 0 && (a = He); for (var n = new j(e), l, r = [n], o, d, h, m; l = r.pop(); ) if ((d = a(l.data)) && (m = (d = Array.from(d)).length)) for (l.children = d, h = m - 1; h >= 0; --h) @@ -106,10 +106,10 @@ function ee(e, a) { function We() { return ee(this).eachBefore(Oe); } -function Ie(e) { +function He(e) { return e.children; } -function He(e) { +function Ie(e) { return Array.isArray(e) ? e[1] : null; } function Oe(e) { @@ -137,9 +137,9 @@ j.prototype = ee.prototype = { ancestors: De, descendants: Pe, leaves: Be, - links: Re, + links: Ee, copy: We, - [Symbol.iterator]: Ee + [Symbol.iterator]: Re }; function qe(e) { if (typeof e != "function") throw new Error(); @@ -164,15 +164,15 @@ function je(e, a, n, l, r) { for (var o = e.children, d, h = -1, m = o.length, c = e.value && (r - n) / e.value; ++h < m; ) d = o[h], d.x0 = a, d.x1 = l, d.y0 = n, d.y1 = n += d.value * c; } -var Ke = (1 + Math.sqrt(5)) / 2; -function Ue(e, a, n, l, r, o) { - for (var d = [], h = a.children, m, c, u = 0, b = 0, s = h.length, x, S, v = a.value, p, g, M, N, z, R, V; u < s; ) { +var Ue = (1 + Math.sqrt(5)) / 2; +function Ze(e, a, n, l, r, o) { + for (var d = [], h = a.children, m, c, u = 0, b = 0, s = h.length, x, S, v = a.value, p, g, M, N, z, E, V; u < s; ) { x = r - n, S = o - l; do p = h[b++].value; while (!p && b < s); - for (g = M = p, R = Math.max(S / x, x / S) / (v * e), V = p * p * R, z = Math.max(M / V, V / g); b < s; ++b) { - if (p += c = h[b].value, c < g && (g = c), c > M && (M = c), V = p * p * R, N = Math.max(M / V, V / g), N > z) { + for (g = M = p, E = Math.max(S / x, x / S) / (v * e), V = p * p * E, z = Math.max(M / V, V / g); b < s; ++b) { + if (p += c = h[b].value, c < g && (g = c), c > M && (M = c), V = p * p * E, N = Math.max(M / V, V / g), N > z) { p -= c; break; } @@ -182,16 +182,16 @@ function Ue(e, a, n, l, r, o) { } return d; } -const Ze = (function e(a) { +const Je = (function e(a) { function n(l, r, o, d, h) { - Ue(a, l, r, o, d, h); + Ze(a, l, r, o, d, h); } return n.ratio = function(l) { return e((l = +l) > 1 ? l : 1); }, n; -})(Ke); -function Je() { - var e = Ze, a = !1, n = 1, l = 1, r = [0], o = O, d = O, h = O, m = O, c = O; +})(Ue); +function Ke() { + var e = Je, a = !1, n = 1, l = 1, r = [0], o = O, d = O, h = O, m = O, c = O; function u(s) { return s.x0 = s.y0 = 0, s.x1 = n, s.y1 = l, s.eachBefore(b), r = [0], a && s.eachBefore(Xe), s; } @@ -233,7 +233,7 @@ var ae = class { } getConfig() { const e = ve, a = Q(); - return Z({ + return J({ ...e.treemap, ...a.treemap ?? {} }); @@ -311,7 +311,7 @@ var Qe = /* @__PURE__ */ w((e, a) => { parse: /* @__PURE__ */ w(async (e) => { try { const n = await Te("treemap", e); - J.debug("Treemap AST:", n); + K.debug("Treemap AST:", n); const l = le.parser?.yy; if (!(l instanceof ae)) throw new Error( @@ -319,7 +319,7 @@ var Qe = /* @__PURE__ */ w((e, a) => { ); Qe(n, l); } catch (a) { - throw J.error("Error parsing treemap:", a), a; + throw K.error("Error parsing treemap:", a), a; } }, "parse") }, tt = 10, B = 10, q = 25, at = /* @__PURE__ */ w((e, a, n, l) => { @@ -332,19 +332,19 @@ var Qe = /* @__PURE__ */ w((e, a) => { try { const t = o.valueFormat || ","; if (t === "$0,0") - p = /* @__PURE__ */ w((i) => "$" + H(",")(i), "valueFormat"); + p = /* @__PURE__ */ w((i) => "$" + I(",")(i), "valueFormat"); else if (t.startsWith("$") && t.includes(",")) { const i = /\.\d+/.exec(t), f = i ? i[0] : ""; - p = /* @__PURE__ */ w((C) => "$" + H("," + f)(C), "valueFormat"); + p = /* @__PURE__ */ w((C) => "$" + I("," + f)(C), "valueFormat"); } else if (t.startsWith("$")) { const i = t.substring(1); - p = /* @__PURE__ */ w((f) => "$" + H(i || "")(f), "valueFormat"); + p = /* @__PURE__ */ w((f) => "$" + I(i || "")(f), "valueFormat"); } else - p = H(t); + p = I(t); } catch (t) { - J.error("Error creating format function:", t), p = H(","); + K.error("Error creating format function:", t), p = I(","); } - const g = U().range([ + const g = Z().range([ "transparent", c.cScale0, c.cScale1, @@ -358,7 +358,7 @@ var Qe = /* @__PURE__ */ w((e, a) => { c.cScale9, c.cScale10, c.cScale11 - ]), M = U().range([ + ]), M = Z().range([ "transparent", c.cScalePeer0, c.cScalePeer1, @@ -372,7 +372,7 @@ var Qe = /* @__PURE__ */ w((e, a) => { c.cScalePeer9, c.cScalePeer10, c.cScalePeer11 - ]), N = U().range([ + ]), N = Z().range([ c.cScaleLabel0, c.cScaleLabel1, c.cScaleLabel2, @@ -387,15 +387,15 @@ var Qe = /* @__PURE__ */ w((e, a) => { c.cScaleLabel11 ]); h && b.append("text").attr("x", S / 2).attr("y", u / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(h); - const z = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), R = ee(m).sum((t) => t.value ?? 0).sort((t, i) => (i.value ?? 0) - (t.value ?? 0)), te = Je().size([s, x]).paddingTop( + const z = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), E = ee(m).sum((t) => t.value ?? 0).sort((t, i) => (i.value ?? 0) - (t.value ?? 0)), te = Ke().size([s, x]).paddingTop( (t) => t.children && t.children.length > 0 ? q + B : 0 - ).paddingInner(d).paddingLeft((t) => t.children && t.children.length > 0 ? B : 0).paddingRight((t) => t.children && t.children.length > 0 ? B : 0).paddingBottom((t) => t.children && t.children.length > 0 ? B : 0).round(!0)(R), re = te.descendants().filter((t) => t.children && t.children.length > 0), E = z.selectAll(".treemapSection").data(re).enter().append("g").attr("class", "treemapSection").attr("transform", (t) => `translate(${t.x0},${t.y0})`); - E.append("rect").attr("width", (t) => t.x1 - t.x0).attr("height", q).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (t) => t.depth === 0 ? "display: none;" : ""), E.append("clipPath").attr("id", (t, i) => `clip-section-${a}-${i}`).append("rect").attr("width", (t) => Math.max(0, t.x1 - t.x0 - 12)).attr("height", q), E.append("rect").attr("width", (t) => t.x1 - t.x0).attr("height", (t) => t.y1 - t.y0).attr("class", (t, i) => `treemapSection section${i}`).attr("fill", (t) => g(t.data.name)).attr("fill-opacity", 0.6).attr("stroke", (t) => M(t.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (t) => { + ).paddingInner(d).paddingLeft((t) => t.children && t.children.length > 0 ? B : 0).paddingRight((t) => t.children && t.children.length > 0 ? B : 0).paddingBottom((t) => t.children && t.children.length > 0 ? B : 0).round(!0)(E), re = te.descendants().filter((t) => t.children && t.children.length > 0), R = z.selectAll(".treemapSection").data(re).enter().append("g").attr("class", "treemapSection").attr("transform", (t) => `translate(${t.x0},${t.y0})`); + R.append("rect").attr("width", (t) => t.x1 - t.x0).attr("height", q).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (t) => t.depth === 0 ? "display: none;" : ""), R.append("clipPath").attr("id", (t, i) => `clip-section-${a}-${i}`).append("rect").attr("width", (t) => Math.max(0, t.x1 - t.x0 - 12)).attr("height", q), R.append("rect").attr("width", (t) => t.x1 - t.x0).attr("height", (t) => t.y1 - t.y0).attr("class", (t, i) => `treemapSection section${i}`).attr("fill", (t) => g(t.data.name)).attr("fill-opacity", 0.6).attr("stroke", (t) => M(t.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (t) => { if (t.depth === 0) return "display: none;"; const i = P({ cssCompiledStyles: t.data.cssCompiledStyles }); return i.nodeStyles + ";" + i.borderStyles.join(";"); - }), E.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", q / 2).attr("dominant-baseline", "middle").text((t) => t.depth === 0 ? "" : t.data.name).attr("font-weight", "bold").attr("style", (t) => { + }), R.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", q / 2).attr("dominant-baseline", "middle").text((t) => t.depth === 0 ? "" : t.data.name).attr("font-weight", "bold").attr("style", (t) => { if (t.depth === 0) return "display: none;"; const i = "dominant-baseline: middle; font-size: 12px; fill:" + N(t.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: t.data.cssCompiledStyles }); @@ -420,7 +420,7 @@ var Qe = /* @__PURE__ */ w((e, a) => { break; } } - }), o.showValues !== !1 && E.append("text").attr("class", "treemapSectionValue").attr("x", (t) => t.x1 - t.x0 - 10).attr("y", q / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((t) => t.value ? p(t.value) : "").attr("font-style", "italic").attr("style", (t) => { + }), o.showValues !== !1 && R.append("text").attr("class", "treemapSectionValue").attr("x", (t) => t.x1 - t.x0 - 10).attr("y", q / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((t) => t.value ? p(t.value) : "").attr("font-style", "italic").attr("style", (t) => { if (t.depth === 0) return "display: none;"; const i = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + N(t.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: t.data.cssCompiledStyles }); @@ -440,15 +440,15 @@ var Qe = /* @__PURE__ */ w((e, a) => { const _ = 8, F = 28, T = 0.6, k = 6, W = 2; for (; L.getComputedTextLength() > D && y > _; ) y--, i.style("font-size", `${y}px`); - let I = Math.max( + let H = Math.max( k, Math.min(F, Math.round(y * T)) - ), K = y + W + I; - for (; K > A && y > _ && (y--, I = Math.max( + ), U = y + W + H; + for (; U > A && y > _ && (y--, H = Math.max( k, Math.min(F, Math.round(y * T)) - ), !(I < k && y === _)); ) - i.style("font-size", `${y}px`), K = y + W + I; + ), !(H < k && y === _)); ) + i.style("font-size", `${y}px`), U = y + W + H; i.style("font-size", `${y}px`), (L.getComputedTextLength() > D || y < _ || A < y) && i.style("display", "none"); }), o.showValues !== !1 && X.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) { return (i.y1 - i.y0) / 2; @@ -493,7 +493,7 @@ var Qe = /* @__PURE__ */ w((e, a) => { }, st = /* @__PURE__ */ w(({ treemap: e } = {}) => { - const a = de(), n = Q(), l = Z(a, n.themeVariables), r = Z(rt, e), o = r.titleColor ?? l.titleColor, d = r.labelColor ?? l.textColor, h = r.valueColor ?? l.textColor; + const a = de(), n = Q(), l = J(a, n.themeVariables), r = J(rt, e), o = r.titleColor ?? l.titleColor, d = r.labelColor ?? l.textColor, h = r.valueColor ?? l.textColor; return ` .treemapNode.section { stroke: ${r.sectionStrokeColor}; diff --git a/src/wc-content-kit/public/mermaid/erDiagram-SMLLAGMA-DaAngXDK.js b/src/wc-content-kit/public/mermaid/erDiagram-TEJ5UH35-90KjDJaR.js similarity index 96% rename from src/wc-content-kit/public/mermaid/erDiagram-SMLLAGMA-DaAngXDK.js rename to src/wc-content-kit/public/mermaid/erDiagram-TEJ5UH35-90KjDJaR.js index 1877bc0..cee641e 100644 --- a/src/wc-content-kit/public/mermaid/erDiagram-SMLLAGMA-DaAngXDK.js +++ b/src/wc-content-kit/public/mermaid/erDiagram-TEJ5UH35-90KjDJaR.js @@ -1,12 +1,12 @@ -import { g as Mt } from "./chunk-55IACEB6-DuOOmvV2.js"; -import { s as Bt } from "./chunk-EDXVE4YY-j9tcUx_w.js"; -import { _ as l, b as Ft, a as Yt, s as Pt, g as zt, p as Gt, q as Kt, c as it, l as V, z as Ut, x as Zt, B as jt, C as Wt, o as Qt, r as Xt, d as Ht, u as qt } from "./mermaid.core-Jw3znkh4.js"; -import { c as Jt } from "./channel-Bbseqfbs.js"; +import { g as Mt } from "./chunk-55IACEB6-Q791aHQa.js"; +import { s as Bt } from "./chunk-2J33WTMH-HCULbuMq.js"; +import { b as l, b1 as Ft, a2 as Yt, b0 as Pt, a1 as zt, b3 as Gt, a5 as Kt, a4 as it, aD as V, t as Ut, a6 as Zt, aY as jt, _ as Wt, aa as Qt, aV as Xt, a_ as Ht, bk as qt } from "./mermaid.core-FRDjOodn.js"; +import { c as Jt } from "./channel-AMGqEurk.js"; var _t = (function() { - var e = /* @__PURE__ */ l(function(C, n, c, o) { - for (c = c || {}, o = C.length; o--; c[C[o]] = n) ; + var e = /* @__PURE__ */ l(function(I, n, c, o) { + for (c = c || {}, o = I.length; o--; c[I[o]] = n) ; return c; - }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], h = [1, 10], a = [1, 11], u = [1, 12], d = [1, 13], y = [1, 23], p = [1, 24], m = [1, 25], j = [1, 26], W = [1, 27], T = [1, 19], Q = [1, 28], M = [1, 29], D = [1, 20], I = [1, 18], S = [1, 21], R = [1, 22], nt = [1, 36], at = [1, 37], ct = [1, 38], ot = [1, 39], lt = [1, 40], B = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52, 65, 66, 67, 68, 69], O = [1, 45], N = [1, 46], F = [1, 55], Y = [40, 48, 50, 51, 52, 70, 71], P = [1, 66], z = [1, 64], A = [1, 61], G = [1, 65], K = [1, 67], X = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 65, 66, 67, 68, 69], gt = [65, 66, 67, 68, 69], bt = [1, 84], kt = [1, 83], mt = [1, 81], Et = [1, 82], Tt = [6, 10, 42, 47], L = [6, 10, 13, 41, 42, 47, 48, 49], H = [1, 92], q = [1, 91], J = [1, 90], U = [19, 58], St = [1, 101], Ot = [1, 100], ht = [19, 58, 60, 62], ut = { + }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], h = [1, 10], a = [1, 11], u = [1, 12], d = [1, 13], y = [1, 23], p = [1, 24], m = [1, 25], j = [1, 26], W = [1, 27], T = [1, 19], Q = [1, 28], M = [1, 29], D = [1, 20], R = [1, 18], S = [1, 21], C = [1, 22], nt = [1, 36], at = [1, 37], ct = [1, 38], ot = [1, 39], lt = [1, 40], B = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52, 65, 66, 67, 68, 69], O = [1, 45], N = [1, 46], F = [1, 55], Y = [40, 48, 50, 51, 52, 70, 71], P = [1, 66], z = [1, 64], A = [1, 61], G = [1, 65], K = [1, 67], X = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 65, 66, 67, 68, 69], gt = [65, 66, 67, 68, 69], bt = [1, 84], kt = [1, 83], mt = [1, 81], Et = [1, 82], Tt = [6, 10, 42, 47], L = [6, 10, 13, 41, 42, 47, 48, 49], H = [1, 92], q = [1, 91], J = [1, 90], U = [19, 58], St = [1, 101], Ot = [1, 100], ht = [19, 58, 60, 62], ut = { trace: /* @__PURE__ */ l(function() { }, "trace"), yy: {}, @@ -192,7 +192,7 @@ var _t = (function() { break; } }, "anonymous"), - table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, e(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: h, 24: a, 26: u, 28: d, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: p, 35: m, 36: j, 37: W, 40: T, 43: Q, 44: M, 48: D, 50: I, 51: S, 52: R }, e(i, [2, 7], { 1: [2, 1] }), e(i, [2, 3]), { 9: 30, 11: 9, 22: h, 24: a, 26: u, 28: d, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: p, 35: m, 36: j, 37: W, 40: T, 43: Q, 44: M, 48: D, 50: I, 51: S, 52: R }, e(i, [2, 5]), e(i, [2, 6]), e(i, [2, 16], { 12: 31, 63: 35, 15: [1, 32], 17: [1, 33], 20: [1, 34], 65: nt, 66: at, 67: ct, 68: ot, 69: lt }), { 23: [1, 41] }, { 25: [1, 42] }, { 27: [1, 43] }, e(i, [2, 27]), e(i, [2, 28]), e(i, [2, 29]), e(i, [2, 30]), e(i, [2, 31]), e(B, [2, 54]), e(B, [2, 55]), e(B, [2, 56]), e(B, [2, 57]), e(B, [2, 58]), e(i, [2, 32]), e(i, [2, 33]), e(i, [2, 34]), e(i, [2, 35]), { 16: 44, 40: O, 41: N }, { 16: 47, 40: O, 41: N }, { 16: 48, 40: O, 41: N }, e(i, [2, 4]), { 11: 49, 40: T, 48: D, 50: I, 51: S, 52: R }, { 16: 50, 40: O, 41: N }, { 18: 51, 19: [1, 52], 53: 53, 54: 54, 58: F }, { 11: 56, 40: T, 48: D, 50: I, 51: S, 52: R }, { 64: 57, 70: [1, 58], 71: [1, 59] }, e(Y, [2, 72]), e(Y, [2, 73]), e(Y, [2, 74]), e(Y, [2, 75]), e(Y, [2, 76]), e(i, [2, 24]), e(i, [2, 25]), e(i, [2, 26]), { 13: P, 38: 60, 41: z, 42: A, 45: 62, 46: 63, 48: G, 49: K }, e(X, [2, 37]), e(X, [2, 38]), { 16: 68, 40: O, 41: N, 42: A }, { 13: P, 38: 69, 41: z, 42: A, 45: 62, 46: 63, 48: G, 49: K }, { 13: [1, 70], 15: [1, 71] }, e(i, [2, 17], { 63: 35, 12: 72, 17: [1, 73], 42: A, 65: nt, 66: at, 67: ct, 68: ot, 69: lt }), { 19: [1, 74] }, e(i, [2, 14]), { 18: 75, 19: [2, 59], 53: 53, 54: 54, 58: F }, { 55: 76, 58: [1, 77] }, { 58: [2, 65] }, { 21: [1, 78] }, { 63: 79, 65: nt, 66: at, 67: ct, 68: ot, 69: lt }, e(gt, [2, 77]), e(gt, [2, 78]), { 6: bt, 10: kt, 39: 80, 42: mt, 47: Et }, { 40: [1, 85], 41: [1, 86] }, e(Tt, [2, 43], { 46: 87, 13: P, 41: z, 48: G, 49: K }), e(L, [2, 45]), e(L, [2, 50]), e(L, [2, 51]), e(L, [2, 52]), e(L, [2, 53]), e(i, [2, 41], { 42: A }), { 6: bt, 10: kt, 39: 88, 42: mt, 47: Et }, { 14: 89, 40: H, 50: q, 72: J }, { 16: 93, 40: O, 41: N }, { 11: 94, 40: T, 48: D, 50: I, 51: S, 52: R }, { 18: 95, 19: [1, 96], 53: 53, 54: 54, 58: F }, e(i, [2, 12]), { 19: [2, 60] }, e(U, [2, 61], { 56: 97, 57: 98, 59: 99, 61: St, 62: Ot }), e([19, 58, 61, 62], [2, 66]), e(i, [2, 22], { 15: [1, 103], 17: [1, 102] }), e([40, 48, 50, 51, 52], [2, 71]), e(i, [2, 36]), { 13: P, 41: z, 45: 104, 46: 63, 48: G, 49: K }, e(i, [2, 47]), e(i, [2, 48]), e(i, [2, 49]), e(X, [2, 39]), e(X, [2, 40]), e(L, [2, 46]), e(i, [2, 42]), e(i, [2, 8]), e(i, [2, 79]), e(i, [2, 80]), e(i, [2, 81]), { 13: [1, 105], 42: A }, { 13: [1, 107], 15: [1, 106] }, { 19: [1, 108] }, e(i, [2, 15]), e(U, [2, 62], { 57: 109, 60: [1, 110], 62: Ot }), e(U, [2, 63]), e(ht, [2, 67]), e(U, [2, 70]), e(ht, [2, 69]), { 18: 111, 19: [1, 112], 53: 53, 54: 54, 58: F }, { 16: 113, 40: O, 41: N }, e(Tt, [2, 44], { 46: 87, 13: P, 41: z, 48: G, 49: K }), { 14: 114, 40: H, 50: q, 72: J }, { 16: 115, 40: O, 41: N }, { 14: 116, 40: H, 50: q, 72: J }, e(i, [2, 13]), e(U, [2, 64]), { 59: 117, 61: St }, { 19: [1, 118] }, e(i, [2, 20]), e(i, [2, 23], { 17: [1, 119], 42: A }), e(i, [2, 11]), { 13: [1, 120], 42: A }, e(i, [2, 10]), e(ht, [2, 68]), e(i, [2, 18]), { 18: 121, 19: [1, 122], 53: 53, 54: 54, 58: F }, { 14: 123, 40: H, 50: q, 72: J }, { 19: [1, 124] }, e(i, [2, 21]), e(i, [2, 9]), e(i, [2, 19])], + table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, e(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: h, 24: a, 26: u, 28: d, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: p, 35: m, 36: j, 37: W, 40: T, 43: Q, 44: M, 48: D, 50: R, 51: S, 52: C }, e(i, [2, 7], { 1: [2, 1] }), e(i, [2, 3]), { 9: 30, 11: 9, 22: h, 24: a, 26: u, 28: d, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: p, 35: m, 36: j, 37: W, 40: T, 43: Q, 44: M, 48: D, 50: R, 51: S, 52: C }, e(i, [2, 5]), e(i, [2, 6]), e(i, [2, 16], { 12: 31, 63: 35, 15: [1, 32], 17: [1, 33], 20: [1, 34], 65: nt, 66: at, 67: ct, 68: ot, 69: lt }), { 23: [1, 41] }, { 25: [1, 42] }, { 27: [1, 43] }, e(i, [2, 27]), e(i, [2, 28]), e(i, [2, 29]), e(i, [2, 30]), e(i, [2, 31]), e(B, [2, 54]), e(B, [2, 55]), e(B, [2, 56]), e(B, [2, 57]), e(B, [2, 58]), e(i, [2, 32]), e(i, [2, 33]), e(i, [2, 34]), e(i, [2, 35]), { 16: 44, 40: O, 41: N }, { 16: 47, 40: O, 41: N }, { 16: 48, 40: O, 41: N }, e(i, [2, 4]), { 11: 49, 40: T, 48: D, 50: R, 51: S, 52: C }, { 16: 50, 40: O, 41: N }, { 18: 51, 19: [1, 52], 53: 53, 54: 54, 58: F }, { 11: 56, 40: T, 48: D, 50: R, 51: S, 52: C }, { 64: 57, 70: [1, 58], 71: [1, 59] }, e(Y, [2, 72]), e(Y, [2, 73]), e(Y, [2, 74]), e(Y, [2, 75]), e(Y, [2, 76]), e(i, [2, 24]), e(i, [2, 25]), e(i, [2, 26]), { 13: P, 38: 60, 41: z, 42: A, 45: 62, 46: 63, 48: G, 49: K }, e(X, [2, 37]), e(X, [2, 38]), { 16: 68, 40: O, 41: N, 42: A }, { 13: P, 38: 69, 41: z, 42: A, 45: 62, 46: 63, 48: G, 49: K }, { 13: [1, 70], 15: [1, 71] }, e(i, [2, 17], { 63: 35, 12: 72, 17: [1, 73], 42: A, 65: nt, 66: at, 67: ct, 68: ot, 69: lt }), { 19: [1, 74] }, e(i, [2, 14]), { 18: 75, 19: [2, 59], 53: 53, 54: 54, 58: F }, { 55: 76, 58: [1, 77] }, { 58: [2, 65] }, { 21: [1, 78] }, { 63: 79, 65: nt, 66: at, 67: ct, 68: ot, 69: lt }, e(gt, [2, 77]), e(gt, [2, 78]), { 6: bt, 10: kt, 39: 80, 42: mt, 47: Et }, { 40: [1, 85], 41: [1, 86] }, e(Tt, [2, 43], { 46: 87, 13: P, 41: z, 48: G, 49: K }), e(L, [2, 45]), e(L, [2, 50]), e(L, [2, 51]), e(L, [2, 52]), e(L, [2, 53]), e(i, [2, 41], { 42: A }), { 6: bt, 10: kt, 39: 88, 42: mt, 47: Et }, { 14: 89, 40: H, 50: q, 72: J }, { 16: 93, 40: O, 41: N }, { 11: 94, 40: T, 48: D, 50: R, 51: S, 52: C }, { 18: 95, 19: [1, 96], 53: 53, 54: 54, 58: F }, e(i, [2, 12]), { 19: [2, 60] }, e(U, [2, 61], { 56: 97, 57: 98, 59: 99, 61: St, 62: Ot }), e([19, 58, 61, 62], [2, 66]), e(i, [2, 22], { 15: [1, 103], 17: [1, 102] }), e([40, 48, 50, 51, 52], [2, 71]), e(i, [2, 36]), { 13: P, 41: z, 45: 104, 46: 63, 48: G, 49: K }, e(i, [2, 47]), e(i, [2, 48]), e(i, [2, 49]), e(X, [2, 39]), e(X, [2, 40]), e(L, [2, 46]), e(i, [2, 42]), e(i, [2, 8]), e(i, [2, 79]), e(i, [2, 80]), e(i, [2, 81]), { 13: [1, 105], 42: A }, { 13: [1, 107], 15: [1, 106] }, { 19: [1, 108] }, e(i, [2, 15]), e(U, [2, 62], { 57: 109, 60: [1, 110], 62: Ot }), e(U, [2, 63]), e(ht, [2, 67]), e(U, [2, 70]), e(ht, [2, 69]), { 18: 111, 19: [1, 112], 53: 53, 54: 54, 58: F }, { 16: 113, 40: O, 41: N }, e(Tt, [2, 44], { 46: 87, 13: P, 41: z, 48: G, 49: K }), { 14: 114, 40: H, 50: q, 72: J }, { 16: 115, 40: O, 41: N }, { 14: 116, 40: H, 50: q, 72: J }, e(i, [2, 13]), e(U, [2, 64]), { 59: 117, 61: St }, { 19: [1, 118] }, e(i, [2, 20]), e(i, [2, 23], { 17: [1, 119], 42: A }), e(i, [2, 11]), { 13: [1, 120], 42: A }, e(i, [2, 10]), e(ht, [2, 68]), e(i, [2, 18]), { 18: 121, 19: [1, 122], 53: 53, 54: 54, 58: F }, { 14: 123, 40: H, 50: q, 72: J }, { 19: [1, 124] }, e(i, [2, 21]), e(i, [2, 9]), e(i, [2, 19])], defaultActions: { 55: [2, 65], 75: [2, 60] }, parseError: /* @__PURE__ */ l(function(n, c) { if (c.recoverable) @@ -215,13 +215,13 @@ var _t = (function() { o.length = o.length - 2 * b, f.length = f.length - b, t.length = t.length - b; } l(Vt, "popStack"); - function Ct() { + function It() { var b; return b = r.pop() || _.lex() || At, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = c.symbols_[b] || b), b; } - l(Ct, "lex"); - for (var g, v, k, pt, w = {}, et, E, It, st; ; ) { - if (v = o[o.length - 1], this.defaultActions[v] ? k = this.defaultActions[v] : ((g === null || typeof g > "u") && (g = Ct()), k = Z[v] && Z[v][g]), typeof k > "u" || !k.length || !k[0]) { + l(It, "lex"); + for (var g, v, k, pt, w = {}, et, E, Rt, st; ; ) { + if (v = o[o.length - 1], this.defaultActions[v] ? k = this.defaultActions[v] : ((g === null || typeof g > "u") && (g = It()), k = Z[v] && Z[v][g]), typeof k > "u" || !k.length || !k[0]) { var yt = ""; st = []; for (et in Z[v]) @@ -261,7 +261,7 @@ Expecting ` + st.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : yt = t ].concat(Lt)), typeof pt < "u") return pt; - E && (o = o.slice(0, -1 * E * 2), f = f.slice(0, -1 * E), t = t.slice(0, -1 * E)), o.push(this.productions_[k[1]][0]), f.push(w.$), t.push(w._$), It = Z[o[o.length - 2]][o[o.length - 1]], o.push(It); + E && (o = o.slice(0, -1 * E * 2), f = f.slice(0, -1 * E), t = t.slice(0, -1 * E)), o.push(this.productions_[k[1]][0]), f.push(w.$), t.push(w._$), Rt = Z[o[o.length - 2]][o[o.length - 1]], o.push(Rt); break; case 3: return !0; @@ -270,7 +270,7 @@ Expecting ` + st.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : yt = return !0; }, "parse") }, vt = /* @__PURE__ */ (function() { - var C = { + var I = { EOF: 1, parseError: /* @__PURE__ */ l(function(c, o) { if (this.yy.parser) @@ -606,7 +606,7 @@ Expecting ` + st.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : yt = 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, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/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, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:style\b)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?::)/i, /^(?:,)/i, /^(?:#)/i, /^(?:classDef\b)/i, /^(?:class\b)/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: [34, 35, 36, 37, 38, 74, 75], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block: { rules: [23, 24, 25, 26, 27, 28, 29, 30], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 31, 32, 33, 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, 65, 66, 67, 68, 69, 70, 71, 72, 73, 76, 77, 78], inclusive: !0 } } }; - return C; + return I; })(); ut.lexer = vt; function $() { @@ -782,10 +782,10 @@ var ee = /* @__PURE__ */ l(async function(e, i, h, a) { ] : p.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], p.diagramId = i, await Xt(p, m), p.layoutAlgorithm === "elk" && m.select(".edges").lower(); const T = m.selectAll('[id*="-background"]'); Array.from(T).length > 0 && T.each(function() { - const M = Ht(this), I = M.attr("id").replace("-background", ""), S = m.select(`#${CSS.escape(I)}`); + const M = Ht(this), R = M.attr("id").replace("-background", ""), S = m.select(`#${CSS.escape(R)}`); if (!S.empty()) { - const R = S.attr("transform"); - M.attr("transform", R); + const C = S.attr("transform"); + M.attr("transform", C); } }); const Q = 8; @@ -795,7 +795,7 @@ var ee = /* @__PURE__ */ l(async function(e, i, h, a) { d?.titleTopMargin ?? 25, a.db.getDiagramTitle() ), Bt(m, Q, "erDiagram", d?.useMaxWidth ?? !0); -}, "draw"), Rt = /* @__PURE__ */ l((e, i) => { +}, "draw"), Ct = /* @__PURE__ */ l((e, i) => { const h = Jt, a = h(e, "r"), u = h(e, "g"), d = h(e, "b"); return jt(a, u, d, i); }, "fade"), rt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), se = /* @__PURE__ */ l((e) => { @@ -837,7 +837,7 @@ var ee = /* @__PURE__ */ l(async function(e, i, h, a) { } .labelBkg { - background-color: ${rt.has(h) && a ? a : Rt(e.tertiaryColor, 0.5)}; + background-color: ${rt.has(h) && a ? a : Ct(e.tertiaryColor, 0.5)}; } .edgeLabel { @@ -886,7 +886,7 @@ var ee = /* @__PURE__ */ l(async function(e, i, h, a) { stroke-width: 1; } [data-look=neo].labelBkg { - background-color: ${Rt(e.tertiaryColor, 0.5)}; + background-color: ${Ct(e.tertiaryColor, 0.5)}; } `; }, "getStyles"), re = ie, le = { diff --git a/src/wc-content-kit/public/mermaid/flowDiagram-DWJPFMVM-B-xylKtj.js b/src/wc-content-kit/public/mermaid/flowDiagram-I6XJVG4X-Bj113heQ.js similarity index 98% rename from src/wc-content-kit/public/mermaid/flowDiagram-DWJPFMVM-B-xylKtj.js rename to src/wc-content-kit/public/mermaid/flowDiagram-I6XJVG4X-Bj113heQ.js index 5ccb338..adb2890 100644 --- a/src/wc-content-kit/public/mermaid/flowDiagram-DWJPFMVM-B-xylKtj.js +++ b/src/wc-content-kit/public/mermaid/flowDiagram-I6XJVG4X-Bj113heQ.js @@ -1,9 +1,9 @@ -import { g as qe } from "./chunk-FMBD7UC4-GcD7N4Rf.js"; -import { _ as b, n as Oe, l as Q, c as g1, o as He, r as Xe, u as ie, b as Qe, s as Je, p as Ze, a as $e, g as et, q as tt, k as st, t as it, J as rt, v as at, x as te, d as se, y as nt, z as ut, A as ot, B as lt } from "./mermaid.core-Jw3znkh4.js"; -import { c as ct } from "./chunk-YZCP3GAM-fs19uw3J.js"; -import { g as ht } from "./chunk-55IACEB6-DuOOmvV2.js"; -import { s as dt } from "./chunk-EDXVE4YY-j9tcUx_w.js"; -import { c as pt } from "./channel-Bbseqfbs.js"; +import { g as He } from "./chunk-FMBD7UC4-BsNoqpHi.js"; +import { b, b2 as Oe, aD as Q, a4 as g1, aa as qe, aV as Xe, bk as ie, b1 as Qe, b0 as Je, b3 as Ze, a2 as $e, a1 as et, a5 as tt, z as st, aC as it, J as rt, ay as at, a6 as te, a_ as se, aR as nt, t as ut, Q as ot, aY as lt } from "./mermaid.core-FRDjOodn.js"; +import { c as ct } from "./chunk-ND2GUHAM-B58vhIOR.js"; +import { g as ht } from "./chunk-55IACEB6-Q791aHQa.js"; +import { s as dt } from "./chunk-2J33WTMH-HCULbuMq.js"; +import { c as pt } from "./channel-AMGqEurk.js"; var ft = "flowchart-", gt = class { // cspell:ignore funs constructor() { @@ -616,7 +616,7 @@ You have to call mermaid.initialize.` const f = a.db.getData(); Q.debug("Data: ", f); const n = ht(i, o), A = a.db.getDirection(); - f.type = a.type, f.layoutAlgorithm = He(l), f.layoutAlgorithm === "dagre" && l === "elk" && Q.warn( + f.type = a.type, f.layoutAlgorithm = qe(l), f.layoutAlgorithm === "dagre" && l === "elk" && Q.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." ), f.direction = A, f.nodeSpacing = d?.nodeSpacing || 50, f.rankSpacing = d?.rankSpacing || 50, f.markers = ["point", "circle", "cross"], f.diagramId = i, Q.debug("REF1:", f), await Xe(f, n); const S = f.config.flowchart?.diagramPadding ?? 8; @@ -633,7 +633,7 @@ You have to call mermaid.initialize.` var e = /* @__PURE__ */ b(function(f1, c, h, p) { for (h = h || {}, p = f1.length; p--; h[f1[p]] = c) ; return h; - }, "o"), i = [1, 4], r = [1, 3], a = [1, 5], o = [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], l = [1, 13], f = [1, 14], n = [1, 15], A = [1, 16], S = [1, 23], g = [1, 25], E = [1, 26], Z = [1, 27], _ = [1, 50], v = [1, 49], K = [1, 29], h1 = [1, 30], N1 = [1, 31], G1 = [1, 32], P1 = [1, 33], L = [1, 45], V = [1, 47], I = [1, 43], w = [1, 48], R = [1, 44], N = [1, 51], G = [1, 46], P = [1, 52], O = [1, 53], O1 = [1, 34], M1 = [1, 35], U1 = [1, 36], z1 = [1, 37], W1 = [1, 38], d1 = [1, 58], T = [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], $ = [1, 62], e1 = [1, 61], t1 = [1, 63], m1 = [8, 9, 11, 75, 77, 78], ae = [1, 79], C1 = [1, 92], D1 = [1, 97], E1 = [1, 96], T1 = [1, 93], S1 = [1, 89], y1 = [1, 95], x1 = [1, 91], F1 = [1, 98], _1 = [1, 94], B1 = [1, 99], v1 = [1, 90], b1 = [8, 9, 10, 11, 40, 75, 77, 78], U = [8, 9, 10, 11, 40, 46, 75, 77, 78], Y = [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], ne = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], L1 = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], ue = [1, 122], oe = [1, 123], K1 = [1, 125], j1 = [1, 124], le = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], ce = [1, 134], he = [1, 148], de = [1, 149], pe = [1, 150], fe = [1, 151], ge = [1, 136], be = [1, 138], Ae = [1, 142], ke = [1, 143], me = [1, 144], Ce = [1, 145], De = [1, 146], Ee = [1, 147], Te = [1, 152], Se = [1, 153], ye = [1, 132], xe = [1, 133], Fe = [1, 140], _e = [1, 135], Be = [1, 139], ve = [1, 137], X1 = [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], Le = [1, 155], Ve = [1, 157], F = [8, 9, 11], q = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], k = [1, 177], z = [1, 173], W = [1, 174], m = [1, 178], C = [1, 175], D = [1, 176], V1 = [77, 116, 119], y = [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], Ie = [10, 106], p1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], s1 = [1, 248], i1 = [1, 246], r1 = [1, 250], a1 = [1, 244], n1 = [1, 245], u1 = [1, 247], o1 = [1, 249], l1 = [1, 251], I1 = [1, 269], we = [8, 9, 11, 106], J = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112], Q1 = { + }, "o"), i = [1, 4], r = [1, 3], a = [1, 5], o = [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], l = [1, 13], f = [1, 14], n = [1, 15], A = [1, 16], S = [1, 23], g = [1, 25], E = [1, 26], Z = [1, 27], _ = [1, 50], v = [1, 49], K = [1, 29], h1 = [1, 30], N1 = [1, 31], G1 = [1, 32], P1 = [1, 33], L = [1, 45], V = [1, 47], I = [1, 43], w = [1, 48], R = [1, 44], N = [1, 51], G = [1, 46], P = [1, 52], O = [1, 53], O1 = [1, 34], M1 = [1, 35], U1 = [1, 36], z1 = [1, 37], W1 = [1, 38], d1 = [1, 58], T = [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], $ = [1, 62], e1 = [1, 61], t1 = [1, 63], m1 = [8, 9, 11, 75, 77, 78], ae = [1, 79], C1 = [1, 92], D1 = [1, 97], E1 = [1, 96], T1 = [1, 93], S1 = [1, 89], y1 = [1, 95], x1 = [1, 91], F1 = [1, 98], _1 = [1, 94], B1 = [1, 99], v1 = [1, 90], b1 = [8, 9, 10, 11, 40, 75, 77, 78], U = [8, 9, 10, 11, 40, 46, 75, 77, 78], Y = [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], ne = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], L1 = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], ue = [1, 122], oe = [1, 123], K1 = [1, 125], j1 = [1, 124], le = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], ce = [1, 134], he = [1, 148], de = [1, 149], pe = [1, 150], fe = [1, 151], ge = [1, 136], be = [1, 138], Ae = [1, 142], ke = [1, 143], me = [1, 144], Ce = [1, 145], De = [1, 146], Ee = [1, 147], Te = [1, 152], Se = [1, 153], ye = [1, 132], xe = [1, 133], Fe = [1, 140], _e = [1, 135], Be = [1, 139], ve = [1, 137], X1 = [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], Le = [1, 155], Ve = [1, 157], F = [8, 9, 11], H = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], k = [1, 177], z = [1, 173], W = [1, 174], m = [1, 178], C = [1, 175], D = [1, 176], V1 = [77, 116, 119], y = [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], Ie = [10, 106], p1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], s1 = [1, 248], i1 = [1, 246], r1 = [1, 250], a1 = [1, 244], n1 = [1, 245], u1 = [1, 247], o1 = [1, 249], l1 = [1, 251], I1 = [1, 269], we = [8, 9, 11, 106], J = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112], Q1 = { trace: /* @__PURE__ */ b(function() { }, "trace"), yy: {}, @@ -940,7 +940,7 @@ You have to call mermaid.initialize.` break; } }, "anonymous"), - table: [{ 3: 1, 4: 2, 9: i, 10: r, 12: a }, { 1: [3] }, e(o, 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: l, 9: f, 10: n, 11: A, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: S, 33: 24, 34: g, 36: E, 38: Z, 42: 28, 43: 39, 44: _, 45: 40, 47: 41, 60: v, 84: K, 85: h1, 86: N1, 87: G1, 88: P1, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O, 121: O1, 122: M1, 123: U1, 124: z1, 125: W1 }, e(o, [2, 9]), e(o, [2, 10]), e(o, [2, 11]), { 8: [1, 55], 9: [1, 56], 10: d1, 15: 54, 18: 57 }, e(T, [2, 3]), e(T, [2, 4]), e(T, [2, 5]), e(T, [2, 6]), e(T, [2, 7]), e(T, [2, 8]), { 8: $, 9: e1, 11: t1, 21: 59, 41: 60, 72: 64, 75: [1, 65], 77: [1, 67], 78: [1, 66] }, { 8: $, 9: e1, 11: t1, 21: 68 }, { 8: $, 9: e1, 11: t1, 21: 69 }, { 8: $, 9: e1, 11: t1, 21: 70 }, { 8: $, 9: e1, 11: t1, 21: 71 }, { 8: $, 9: e1, 11: t1, 21: 72 }, { 8: $, 9: e1, 10: [1, 73], 11: t1, 21: 74 }, e(T, [2, 36]), { 35: [1, 75] }, { 37: [1, 76] }, e(T, [2, 39]), e(m1, [2, 50], { 18: 77, 39: 78, 10: d1, 40: ae }), { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 10: [1, 83] }, { 14: C1, 44: D1, 60: E1, 80: [1, 87], 89: T1, 95: [1, 84], 97: [1, 85], 101: 86, 105: S1, 106: y1, 109: x1, 111: F1, 114: _1, 115: B1, 116: v1, 120: 88 }, e(T, [2, 185]), e(T, [2, 186]), e(T, [2, 187]), e(T, [2, 188]), e(T, [2, 189]), e(b1, [2, 51]), e(b1, [2, 54], { 46: [1, 100] }), e(U, [2, 72], { 113: 113, 29: [1, 101], 44: _, 48: [1, 102], 50: [1, 103], 52: [1, 104], 54: [1, 105], 56: [1, 106], 58: [1, 107], 60: v, 63: [1, 108], 65: [1, 109], 67: [1, 110], 68: [1, 111], 70: [1, 112], 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 114: G, 115: P, 116: O }), e(Y, [2, 181]), e(Y, [2, 142]), e(Y, [2, 143]), e(Y, [2, 144]), e(Y, [2, 145]), e(Y, [2, 146]), e(Y, [2, 147]), e(Y, [2, 148]), e(Y, [2, 149]), e(Y, [2, 150]), e(Y, [2, 151]), e(Y, [2, 152]), e(o, [2, 12]), e(o, [2, 18]), e(o, [2, 19]), { 9: [1, 114] }, e(ne, [2, 26], { 18: 115, 10: d1 }), e(T, [2, 27]), { 42: 116, 43: 39, 44: _, 45: 40, 47: 41, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, e(T, [2, 40]), e(T, [2, 41]), e(T, [2, 42]), e(L1, [2, 76], { 73: 117, 62: [1, 119], 74: [1, 118] }), { 76: 120, 79: 121, 80: ue, 81: oe, 116: K1, 119: j1 }, { 75: [1, 126], 77: [1, 127] }, e(le, [2, 83]), e(T, [2, 28]), e(T, [2, 29]), e(T, [2, 30]), e(T, [2, 31]), e(T, [2, 32]), { 10: ce, 12: he, 14: de, 27: pe, 28: 128, 32: fe, 44: ge, 60: be, 75: Ae, 80: [1, 130], 81: [1, 131], 83: 141, 84: ke, 85: me, 86: Ce, 87: De, 88: Ee, 89: Te, 90: Se, 91: 129, 105: ye, 109: xe, 111: Fe, 114: _e, 115: Be, 116: ve }, e(X1, d, { 5: 154 }), e(T, [2, 37]), e(T, [2, 38]), e(m1, [2, 48], { 44: Le }), e(m1, [2, 49], { 18: 156, 10: d1, 40: Ve }), e(b1, [2, 44]), { 44: _, 47: 158, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, { 102: [1, 159], 103: 160, 105: [1, 161] }, { 44: _, 47: 162, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, { 44: _, 47: 163, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, e(F, [2, 107], { 10: [1, 164], 96: [1, 165] }), { 80: [1, 166] }, e(F, [2, 115], { 120: 168, 10: [1, 167], 14: C1, 44: D1, 60: E1, 89: T1, 105: S1, 106: y1, 109: x1, 111: F1, 114: _1, 115: B1, 116: v1 }), e(F, [2, 117], { 10: [1, 169] }), e(q, [2, 183]), e(q, [2, 170]), e(q, [2, 171]), e(q, [2, 172]), e(q, [2, 173]), e(q, [2, 174]), e(q, [2, 175]), e(q, [2, 176]), e(q, [2, 177]), e(q, [2, 178]), e(q, [2, 179]), e(q, [2, 180]), { 44: _, 47: 170, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, { 30: 171, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 179, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 181, 50: [1, 180], 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 182, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 183, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 184, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 109: [1, 185] }, { 30: 186, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 187, 65: [1, 188], 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 189, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 190, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 191, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, e(Y, [2, 182]), e(o, [2, 20]), e(ne, [2, 25]), e(m1, [2, 46], { 39: 192, 18: 193, 10: d1, 40: ae }), e(L1, [2, 73], { 10: [1, 194] }), { 10: [1, 195] }, { 30: 196, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 77: [1, 197], 79: 198, 116: K1, 119: j1 }, e(V1, [2, 79]), e(V1, [2, 81]), e(V1, [2, 82]), e(V1, [2, 168]), e(V1, [2, 169]), { 76: 199, 79: 121, 80: ue, 81: oe, 116: K1, 119: j1 }, e(le, [2, 84]), { 8: $, 9: e1, 10: ce, 11: t1, 12: he, 14: de, 21: 201, 27: pe, 29: [1, 200], 32: fe, 44: ge, 60: be, 75: Ae, 83: 141, 84: ke, 85: me, 86: Ce, 87: De, 88: Ee, 89: Te, 90: Se, 91: 202, 105: ye, 109: xe, 111: Fe, 114: _e, 115: Be, 116: ve }, e(y, [2, 101]), e(y, [2, 103]), e(y, [2, 104]), e(y, [2, 157]), e(y, [2, 158]), e(y, [2, 159]), e(y, [2, 160]), e(y, [2, 161]), e(y, [2, 162]), e(y, [2, 163]), e(y, [2, 164]), e(y, [2, 165]), e(y, [2, 166]), e(y, [2, 167]), e(y, [2, 90]), e(y, [2, 91]), e(y, [2, 92]), e(y, [2, 93]), e(y, [2, 94]), e(y, [2, 95]), e(y, [2, 96]), e(y, [2, 97]), e(y, [2, 98]), e(y, [2, 99]), e(y, [2, 100]), { 6: 11, 7: 12, 8: l, 9: f, 10: n, 11: A, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: S, 32: [1, 203], 33: 24, 34: g, 36: E, 38: Z, 42: 28, 43: 39, 44: _, 45: 40, 47: 41, 60: v, 84: K, 85: h1, 86: N1, 87: G1, 88: P1, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O, 121: O1, 122: M1, 123: U1, 124: z1, 125: W1 }, { 10: d1, 18: 204 }, { 44: [1, 205] }, e(b1, [2, 43]), { 10: [1, 206], 44: _, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 113, 114: G, 115: P, 116: O }, { 10: [1, 207] }, { 10: [1, 208], 106: [1, 209] }, e(Ie, [2, 128]), { 10: [1, 210], 44: _, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 113, 114: G, 115: P, 116: O }, { 10: [1, 211], 44: _, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 113, 114: G, 115: P, 116: O }, { 80: [1, 212] }, e(F, [2, 109], { 10: [1, 213] }), e(F, [2, 111], { 10: [1, 214] }), { 80: [1, 215] }, e(q, [2, 184]), { 80: [1, 216], 98: [1, 217] }, e(b1, [2, 55], { 113: 113, 44: _, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 114: G, 115: P, 116: O }), { 31: [1, 218], 67: k, 82: 219, 116: m, 117: C, 118: D }, e(p1, [2, 86]), e(p1, [2, 88]), e(p1, [2, 89]), e(p1, [2, 153]), e(p1, [2, 154]), e(p1, [2, 155]), e(p1, [2, 156]), { 49: [1, 220], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 30: 221, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 51: [1, 222], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 53: [1, 223], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 55: [1, 224], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 57: [1, 225], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 60: [1, 226] }, { 64: [1, 227], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 66: [1, 228], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 30: 229, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 31: [1, 230], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 67: k, 69: [1, 231], 71: [1, 232], 82: 219, 116: m, 117: C, 118: D }, { 67: k, 69: [1, 234], 71: [1, 233], 82: 219, 116: m, 117: C, 118: D }, e(m1, [2, 45], { 18: 156, 10: d1, 40: Ve }), e(m1, [2, 47], { 44: Le }), e(L1, [2, 75]), e(L1, [2, 74]), { 62: [1, 235], 67: k, 82: 219, 116: m, 117: C, 118: D }, e(L1, [2, 77]), e(V1, [2, 80]), { 77: [1, 236], 79: 198, 116: K1, 119: j1 }, { 30: 237, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, e(X1, d, { 5: 238 }), e(y, [2, 102]), e(T, [2, 35]), { 43: 239, 44: _, 45: 40, 47: 41, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, { 10: d1, 18: 240 }, { 10: s1, 60: i1, 84: r1, 92: 241, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 252, 104: [1, 253], 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 254, 104: [1, 255], 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 105: [1, 256] }, { 10: s1, 60: i1, 84: r1, 92: 257, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 44: _, 47: 258, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, e(F, [2, 108]), { 80: [1, 259] }, { 80: [1, 260], 98: [1, 261] }, e(F, [2, 116]), e(F, [2, 118], { 10: [1, 262] }), e(F, [2, 119]), e(U, [2, 56]), e(p1, [2, 87]), e(U, [2, 57]), { 51: [1, 263], 67: k, 82: 219, 116: m, 117: C, 118: D }, e(U, [2, 64]), e(U, [2, 59]), e(U, [2, 60]), e(U, [2, 61]), { 109: [1, 264] }, e(U, [2, 63]), e(U, [2, 65]), { 66: [1, 265], 67: k, 82: 219, 116: m, 117: C, 118: D }, e(U, [2, 67]), e(U, [2, 68]), e(U, [2, 70]), e(U, [2, 69]), e(U, [2, 71]), e([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), e(L1, [2, 78]), { 31: [1, 266], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 6: 11, 7: 12, 8: l, 9: f, 10: n, 11: A, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: S, 32: [1, 267], 33: 24, 34: g, 36: E, 38: Z, 42: 28, 43: 39, 44: _, 45: 40, 47: 41, 60: v, 84: K, 85: h1, 86: N1, 87: G1, 88: P1, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O, 121: O1, 122: M1, 123: U1, 124: z1, 125: W1 }, e(b1, [2, 53]), { 43: 268, 44: _, 45: 40, 47: 41, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, e(F, [2, 121], { 106: I1 }), e(we, [2, 130], { 108: 270, 10: s1, 60: i1, 84: r1, 105: a1, 109: n1, 110: u1, 111: o1, 112: l1 }), e(J, [2, 132]), e(J, [2, 134]), e(J, [2, 135]), e(J, [2, 136]), e(J, [2, 137]), e(J, [2, 138]), e(J, [2, 139]), e(J, [2, 140]), e(J, [2, 141]), e(F, [2, 122], { 106: I1 }), { 10: [1, 271] }, e(F, [2, 123], { 106: I1 }), { 10: [1, 272] }, e(Ie, [2, 129]), e(F, [2, 105], { 106: I1 }), e(F, [2, 106], { 113: 113, 44: _, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 114: G, 115: P, 116: O }), e(F, [2, 110]), e(F, [2, 112], { 10: [1, 273] }), e(F, [2, 113]), { 98: [1, 274] }, { 51: [1, 275] }, { 62: [1, 276] }, { 66: [1, 277] }, { 8: $, 9: e1, 11: t1, 21: 278 }, e(T, [2, 34]), e(b1, [2, 52]), { 10: s1, 60: i1, 84: r1, 105: a1, 107: 279, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, e(J, [2, 133]), { 14: C1, 44: D1, 60: E1, 89: T1, 101: 280, 105: S1, 106: y1, 109: x1, 111: F1, 114: _1, 115: B1, 116: v1, 120: 88 }, { 14: C1, 44: D1, 60: E1, 89: T1, 101: 281, 105: S1, 106: y1, 109: x1, 111: F1, 114: _1, 115: B1, 116: v1, 120: 88 }, { 98: [1, 282] }, e(F, [2, 120]), e(U, [2, 58]), { 30: 283, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, e(U, [2, 66]), e(X1, d, { 5: 284 }), e(we, [2, 131], { 108: 270, 10: s1, 60: i1, 84: r1, 105: a1, 109: n1, 110: u1, 111: o1, 112: l1 }), e(F, [2, 126], { 120: 168, 10: [1, 285], 14: C1, 44: D1, 60: E1, 89: T1, 105: S1, 106: y1, 109: x1, 111: F1, 114: _1, 115: B1, 116: v1 }), e(F, [2, 127], { 120: 168, 10: [1, 286], 14: C1, 44: D1, 60: E1, 89: T1, 105: S1, 106: y1, 109: x1, 111: F1, 114: _1, 115: B1, 116: v1 }), e(F, [2, 114]), { 31: [1, 287], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 6: 11, 7: 12, 8: l, 9: f, 10: n, 11: A, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: S, 32: [1, 288], 33: 24, 34: g, 36: E, 38: Z, 42: 28, 43: 39, 44: _, 45: 40, 47: 41, 60: v, 84: K, 85: h1, 86: N1, 87: G1, 88: P1, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O, 121: O1, 122: M1, 123: U1, 124: z1, 125: W1 }, { 10: s1, 60: i1, 84: r1, 92: 289, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 290, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, e(U, [2, 62]), e(T, [2, 33]), e(F, [2, 124], { 106: I1 }), e(F, [2, 125], { 106: I1 })], + table: [{ 3: 1, 4: 2, 9: i, 10: r, 12: a }, { 1: [3] }, e(o, 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: l, 9: f, 10: n, 11: A, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: S, 33: 24, 34: g, 36: E, 38: Z, 42: 28, 43: 39, 44: _, 45: 40, 47: 41, 60: v, 84: K, 85: h1, 86: N1, 87: G1, 88: P1, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O, 121: O1, 122: M1, 123: U1, 124: z1, 125: W1 }, e(o, [2, 9]), e(o, [2, 10]), e(o, [2, 11]), { 8: [1, 55], 9: [1, 56], 10: d1, 15: 54, 18: 57 }, e(T, [2, 3]), e(T, [2, 4]), e(T, [2, 5]), e(T, [2, 6]), e(T, [2, 7]), e(T, [2, 8]), { 8: $, 9: e1, 11: t1, 21: 59, 41: 60, 72: 64, 75: [1, 65], 77: [1, 67], 78: [1, 66] }, { 8: $, 9: e1, 11: t1, 21: 68 }, { 8: $, 9: e1, 11: t1, 21: 69 }, { 8: $, 9: e1, 11: t1, 21: 70 }, { 8: $, 9: e1, 11: t1, 21: 71 }, { 8: $, 9: e1, 11: t1, 21: 72 }, { 8: $, 9: e1, 10: [1, 73], 11: t1, 21: 74 }, e(T, [2, 36]), { 35: [1, 75] }, { 37: [1, 76] }, e(T, [2, 39]), e(m1, [2, 50], { 18: 77, 39: 78, 10: d1, 40: ae }), { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 10: [1, 83] }, { 14: C1, 44: D1, 60: E1, 80: [1, 87], 89: T1, 95: [1, 84], 97: [1, 85], 101: 86, 105: S1, 106: y1, 109: x1, 111: F1, 114: _1, 115: B1, 116: v1, 120: 88 }, e(T, [2, 185]), e(T, [2, 186]), e(T, [2, 187]), e(T, [2, 188]), e(T, [2, 189]), e(b1, [2, 51]), e(b1, [2, 54], { 46: [1, 100] }), e(U, [2, 72], { 113: 113, 29: [1, 101], 44: _, 48: [1, 102], 50: [1, 103], 52: [1, 104], 54: [1, 105], 56: [1, 106], 58: [1, 107], 60: v, 63: [1, 108], 65: [1, 109], 67: [1, 110], 68: [1, 111], 70: [1, 112], 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 114: G, 115: P, 116: O }), e(Y, [2, 181]), e(Y, [2, 142]), e(Y, [2, 143]), e(Y, [2, 144]), e(Y, [2, 145]), e(Y, [2, 146]), e(Y, [2, 147]), e(Y, [2, 148]), e(Y, [2, 149]), e(Y, [2, 150]), e(Y, [2, 151]), e(Y, [2, 152]), e(o, [2, 12]), e(o, [2, 18]), e(o, [2, 19]), { 9: [1, 114] }, e(ne, [2, 26], { 18: 115, 10: d1 }), e(T, [2, 27]), { 42: 116, 43: 39, 44: _, 45: 40, 47: 41, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, e(T, [2, 40]), e(T, [2, 41]), e(T, [2, 42]), e(L1, [2, 76], { 73: 117, 62: [1, 119], 74: [1, 118] }), { 76: 120, 79: 121, 80: ue, 81: oe, 116: K1, 119: j1 }, { 75: [1, 126], 77: [1, 127] }, e(le, [2, 83]), e(T, [2, 28]), e(T, [2, 29]), e(T, [2, 30]), e(T, [2, 31]), e(T, [2, 32]), { 10: ce, 12: he, 14: de, 27: pe, 28: 128, 32: fe, 44: ge, 60: be, 75: Ae, 80: [1, 130], 81: [1, 131], 83: 141, 84: ke, 85: me, 86: Ce, 87: De, 88: Ee, 89: Te, 90: Se, 91: 129, 105: ye, 109: xe, 111: Fe, 114: _e, 115: Be, 116: ve }, e(X1, d, { 5: 154 }), e(T, [2, 37]), e(T, [2, 38]), e(m1, [2, 48], { 44: Le }), e(m1, [2, 49], { 18: 156, 10: d1, 40: Ve }), e(b1, [2, 44]), { 44: _, 47: 158, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, { 102: [1, 159], 103: 160, 105: [1, 161] }, { 44: _, 47: 162, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, { 44: _, 47: 163, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, e(F, [2, 107], { 10: [1, 164], 96: [1, 165] }), { 80: [1, 166] }, e(F, [2, 115], { 120: 168, 10: [1, 167], 14: C1, 44: D1, 60: E1, 89: T1, 105: S1, 106: y1, 109: x1, 111: F1, 114: _1, 115: B1, 116: v1 }), e(F, [2, 117], { 10: [1, 169] }), e(H, [2, 183]), e(H, [2, 170]), e(H, [2, 171]), e(H, [2, 172]), e(H, [2, 173]), e(H, [2, 174]), e(H, [2, 175]), e(H, [2, 176]), e(H, [2, 177]), e(H, [2, 178]), e(H, [2, 179]), e(H, [2, 180]), { 44: _, 47: 170, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, { 30: 171, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 179, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 181, 50: [1, 180], 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 182, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 183, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 184, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 109: [1, 185] }, { 30: 186, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 187, 65: [1, 188], 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 189, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 190, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 30: 191, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, e(Y, [2, 182]), e(o, [2, 20]), e(ne, [2, 25]), e(m1, [2, 46], { 39: 192, 18: 193, 10: d1, 40: ae }), e(L1, [2, 73], { 10: [1, 194] }), { 10: [1, 195] }, { 30: 196, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 77: [1, 197], 79: 198, 116: K1, 119: j1 }, e(V1, [2, 79]), e(V1, [2, 81]), e(V1, [2, 82]), e(V1, [2, 168]), e(V1, [2, 169]), { 76: 199, 79: 121, 80: ue, 81: oe, 116: K1, 119: j1 }, e(le, [2, 84]), { 8: $, 9: e1, 10: ce, 11: t1, 12: he, 14: de, 21: 201, 27: pe, 29: [1, 200], 32: fe, 44: ge, 60: be, 75: Ae, 83: 141, 84: ke, 85: me, 86: Ce, 87: De, 88: Ee, 89: Te, 90: Se, 91: 202, 105: ye, 109: xe, 111: Fe, 114: _e, 115: Be, 116: ve }, e(y, [2, 101]), e(y, [2, 103]), e(y, [2, 104]), e(y, [2, 157]), e(y, [2, 158]), e(y, [2, 159]), e(y, [2, 160]), e(y, [2, 161]), e(y, [2, 162]), e(y, [2, 163]), e(y, [2, 164]), e(y, [2, 165]), e(y, [2, 166]), e(y, [2, 167]), e(y, [2, 90]), e(y, [2, 91]), e(y, [2, 92]), e(y, [2, 93]), e(y, [2, 94]), e(y, [2, 95]), e(y, [2, 96]), e(y, [2, 97]), e(y, [2, 98]), e(y, [2, 99]), e(y, [2, 100]), { 6: 11, 7: 12, 8: l, 9: f, 10: n, 11: A, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: S, 32: [1, 203], 33: 24, 34: g, 36: E, 38: Z, 42: 28, 43: 39, 44: _, 45: 40, 47: 41, 60: v, 84: K, 85: h1, 86: N1, 87: G1, 88: P1, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O, 121: O1, 122: M1, 123: U1, 124: z1, 125: W1 }, { 10: d1, 18: 204 }, { 44: [1, 205] }, e(b1, [2, 43]), { 10: [1, 206], 44: _, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 113, 114: G, 115: P, 116: O }, { 10: [1, 207] }, { 10: [1, 208], 106: [1, 209] }, e(Ie, [2, 128]), { 10: [1, 210], 44: _, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 113, 114: G, 115: P, 116: O }, { 10: [1, 211], 44: _, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 113, 114: G, 115: P, 116: O }, { 80: [1, 212] }, e(F, [2, 109], { 10: [1, 213] }), e(F, [2, 111], { 10: [1, 214] }), { 80: [1, 215] }, e(H, [2, 184]), { 80: [1, 216], 98: [1, 217] }, e(b1, [2, 55], { 113: 113, 44: _, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 114: G, 115: P, 116: O }), { 31: [1, 218], 67: k, 82: 219, 116: m, 117: C, 118: D }, e(p1, [2, 86]), e(p1, [2, 88]), e(p1, [2, 89]), e(p1, [2, 153]), e(p1, [2, 154]), e(p1, [2, 155]), e(p1, [2, 156]), { 49: [1, 220], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 30: 221, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 51: [1, 222], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 53: [1, 223], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 55: [1, 224], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 57: [1, 225], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 60: [1, 226] }, { 64: [1, 227], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 66: [1, 228], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 30: 229, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, { 31: [1, 230], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 67: k, 69: [1, 231], 71: [1, 232], 82: 219, 116: m, 117: C, 118: D }, { 67: k, 69: [1, 234], 71: [1, 233], 82: 219, 116: m, 117: C, 118: D }, e(m1, [2, 45], { 18: 156, 10: d1, 40: Ve }), e(m1, [2, 47], { 44: Le }), e(L1, [2, 75]), e(L1, [2, 74]), { 62: [1, 235], 67: k, 82: 219, 116: m, 117: C, 118: D }, e(L1, [2, 77]), e(V1, [2, 80]), { 77: [1, 236], 79: 198, 116: K1, 119: j1 }, { 30: 237, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, e(X1, d, { 5: 238 }), e(y, [2, 102]), e(T, [2, 35]), { 43: 239, 44: _, 45: 40, 47: 41, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, { 10: d1, 18: 240 }, { 10: s1, 60: i1, 84: r1, 92: 241, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 252, 104: [1, 253], 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 254, 104: [1, 255], 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 105: [1, 256] }, { 10: s1, 60: i1, 84: r1, 92: 257, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 44: _, 47: 258, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, e(F, [2, 108]), { 80: [1, 259] }, { 80: [1, 260], 98: [1, 261] }, e(F, [2, 116]), e(F, [2, 118], { 10: [1, 262] }), e(F, [2, 119]), e(U, [2, 56]), e(p1, [2, 87]), e(U, [2, 57]), { 51: [1, 263], 67: k, 82: 219, 116: m, 117: C, 118: D }, e(U, [2, 64]), e(U, [2, 59]), e(U, [2, 60]), e(U, [2, 61]), { 109: [1, 264] }, e(U, [2, 63]), e(U, [2, 65]), { 66: [1, 265], 67: k, 82: 219, 116: m, 117: C, 118: D }, e(U, [2, 67]), e(U, [2, 68]), e(U, [2, 70]), e(U, [2, 69]), e(U, [2, 71]), e([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), e(L1, [2, 78]), { 31: [1, 266], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 6: 11, 7: 12, 8: l, 9: f, 10: n, 11: A, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: S, 32: [1, 267], 33: 24, 34: g, 36: E, 38: Z, 42: 28, 43: 39, 44: _, 45: 40, 47: 41, 60: v, 84: K, 85: h1, 86: N1, 87: G1, 88: P1, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O, 121: O1, 122: M1, 123: U1, 124: z1, 125: W1 }, e(b1, [2, 53]), { 43: 268, 44: _, 45: 40, 47: 41, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O }, e(F, [2, 121], { 106: I1 }), e(we, [2, 130], { 108: 270, 10: s1, 60: i1, 84: r1, 105: a1, 109: n1, 110: u1, 111: o1, 112: l1 }), e(J, [2, 132]), e(J, [2, 134]), e(J, [2, 135]), e(J, [2, 136]), e(J, [2, 137]), e(J, [2, 138]), e(J, [2, 139]), e(J, [2, 140]), e(J, [2, 141]), e(F, [2, 122], { 106: I1 }), { 10: [1, 271] }, e(F, [2, 123], { 106: I1 }), { 10: [1, 272] }, e(Ie, [2, 129]), e(F, [2, 105], { 106: I1 }), e(F, [2, 106], { 113: 113, 44: _, 60: v, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 114: G, 115: P, 116: O }), e(F, [2, 110]), e(F, [2, 112], { 10: [1, 273] }), e(F, [2, 113]), { 98: [1, 274] }, { 51: [1, 275] }, { 62: [1, 276] }, { 66: [1, 277] }, { 8: $, 9: e1, 11: t1, 21: 278 }, e(T, [2, 34]), e(b1, [2, 52]), { 10: s1, 60: i1, 84: r1, 105: a1, 107: 279, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, e(J, [2, 133]), { 14: C1, 44: D1, 60: E1, 89: T1, 101: 280, 105: S1, 106: y1, 109: x1, 111: F1, 114: _1, 115: B1, 116: v1, 120: 88 }, { 14: C1, 44: D1, 60: E1, 89: T1, 101: 281, 105: S1, 106: y1, 109: x1, 111: F1, 114: _1, 115: B1, 116: v1, 120: 88 }, { 98: [1, 282] }, e(F, [2, 120]), e(U, [2, 58]), { 30: 283, 67: k, 80: z, 81: W, 82: 172, 116: m, 117: C, 118: D }, e(U, [2, 66]), e(X1, d, { 5: 284 }), e(we, [2, 131], { 108: 270, 10: s1, 60: i1, 84: r1, 105: a1, 109: n1, 110: u1, 111: o1, 112: l1 }), e(F, [2, 126], { 120: 168, 10: [1, 285], 14: C1, 44: D1, 60: E1, 89: T1, 105: S1, 106: y1, 109: x1, 111: F1, 114: _1, 115: B1, 116: v1 }), e(F, [2, 127], { 120: 168, 10: [1, 286], 14: C1, 44: D1, 60: E1, 89: T1, 105: S1, 106: y1, 109: x1, 111: F1, 114: _1, 115: B1, 116: v1 }), e(F, [2, 114]), { 31: [1, 287], 67: k, 82: 219, 116: m, 117: C, 118: D }, { 6: 11, 7: 12, 8: l, 9: f, 10: n, 11: A, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: S, 32: [1, 288], 33: 24, 34: g, 36: E, 38: Z, 42: 28, 43: 39, 44: _, 45: 40, 47: 41, 60: v, 84: K, 85: h1, 86: N1, 87: G1, 88: P1, 89: L, 102: V, 105: I, 106: w, 109: R, 111: N, 113: 42, 114: G, 115: P, 116: O, 121: O1, 122: M1, 123: U1, 124: z1, 125: W1 }, { 10: s1, 60: i1, 84: r1, 92: 289, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 290, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, e(U, [2, 62]), e(T, [2, 33]), e(F, [2, 124], { 106: I1 }), e(F, [2, 125], { 106: I1 })], defaultActions: {}, parseError: /* @__PURE__ */ b(function(c, h) { if (h.recoverable) @@ -959,29 +959,29 @@ You have to call mermaid.initialize.` t.push(Z1); var je = M.options && M.options.ranges; typeof A1.yy.parseError == "function" ? this.parseError = A1.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; - function Ye(H) { - p.length = p.length - 2 * H, x.length = x.length - H, t.length = t.length - H; + function Ye(q) { + p.length = p.length - 2 * q, x.length = x.length - q, t.length = t.length - q; } b(Ye, "popStack"); function Ge() { - var H; - return H = u.pop() || M.lex() || Ne, typeof H != "number" && (H instanceof Array && (u = H, H = u.pop()), H = h.symbols_[H] || H), H; + var q; + return q = u.pop() || M.lex() || Ne, typeof q != "number" && (q instanceof Array && (u = q, q = u.pop()), q = h.symbols_[q] || q), q; } b(Ge, "lex"); - for (var j, k1, X, $1, w1 = {}, q1, c1, Pe, H1; ; ) { + for (var j, k1, X, $1, w1 = {}, H1, c1, Pe, q1; ; ) { if (k1 = p[p.length - 1], this.defaultActions[k1] ? X = this.defaultActions[k1] : ((j === null || typeof j > "u") && (j = Ge()), X = R1[k1] && R1[k1][j]), typeof X > "u" || !X.length || !X[0]) { var ee = ""; - H1 = []; - for (q1 in R1[k1]) - this.terminals_[q1] && q1 > We && H1.push("'" + this.terminals_[q1] + "'"); + q1 = []; + for (H1 in R1[k1]) + this.terminals_[H1] && H1 > We && q1.push("'" + this.terminals_[H1] + "'"); M.showPosition ? ee = "Parse error on line " + (B + 1) + `: ` + M.showPosition() + ` -Expecting ` + H1.join(", ") + ", got '" + (this.terminals_[j] || j) + "'" : ee = "Parse error on line " + (B + 1) + ": Unexpected " + (j == Ne ? "end of input" : "'" + (this.terminals_[j] || j) + "'"), this.parseError(ee, { +Expecting ` + q1.join(", ") + ", got '" + (this.terminals_[j] || j) + "'" : ee = "Parse error on line " + (B + 1) + ": Unexpected " + (j == Ne ? "end of input" : "'" + (this.terminals_[j] || j) + "'"), this.parseError(ee, { text: M.match, token: this.terminals_[j] || j, line: M.yylineno, loc: Z1, - expected: H1 + expected: q1 }); } if (X[0] instanceof Array && X.length > 1) @@ -1614,7 +1614,7 @@ var mt = Ue, Ct = /* @__PURE__ */ b((e, i) => { } text-align: center; } - ${qe()} + ${He()} `, "getStyles"), Et = Dt, Bt = { parser: mt, get db() { diff --git a/src/wc-content-kit/public/mermaid/ganttDiagram-T4ZO3ILL-BQN3bK4W.js b/src/wc-content-kit/public/mermaid/ganttDiagram-6RSMTGT7-DaP27A93.js similarity index 93% rename from src/wc-content-kit/public/mermaid/ganttDiagram-T4ZO3ILL-BQN3bK4W.js rename to src/wc-content-kit/public/mermaid/ganttDiagram-6RSMTGT7-DaP27A93.js index a6c50ac..59c608f 100644 --- a/src/wc-content-kit/public/mermaid/ganttDiagram-T4ZO3ILL-BQN3bK4W.js +++ b/src/wc-content-kit/public/mermaid/ganttDiagram-6RSMTGT7-DaP27A93.js @@ -1,6 +1,6 @@ -import { bd as on, be as $n, bf as cn, bg as un, bh as ln, bi as ue, bj as On, g as Hn, s as Nn, q as Pn, p as Rn, a as Vn, b as zn, _ as d, c as Ft, d as Bt, e as qn, bk as rt, l as Tt, k as Zn, j as Bn, z as Xn, u as Gn } from "./mermaid.core-Jw3znkh4.js"; +import { R as on, aX as $n, T as cn, X as un, a as ln, aJ as ue, aj as On, a1 as Hn, b0 as Nn, a5 as Pn, b3 as Rn, a2 as Vn, b1 as zn, b as d, a4 as Ft, a_ as Bt, E as qn, O as rt, aD as Tt, z as Zn, V as Bn, t as Xn, bk as Gn } from "./mermaid.core-FRDjOodn.js"; import { g as oe } from "./index.js"; -import { b as jn, t as Ne, c as Qn, a as Jn, l as Kn } from "./linear-CnlusoK8.js"; +import { b as jn, t as Ne, c as Qn, a as Jn, l as Kn } from "./linear-Covz6sHd.js"; import { i as tr } from "./init-DjUOC4st.js"; function er(t, e) { let n; @@ -48,7 +48,7 @@ function cr() { function fn(t, e) { var n = [], r = null, i = null, a = 6, c = 6, m = 3, Y = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, C = t === Gt || t === Xt ? -1 : 1, k = t === Xt || t === le ? "x" : "y", L = t === Gt || t === xe ? ir : sr; function _(S) { - var Z = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), A = i ?? (e.tickFormat ? e.tickFormat.apply(e, n) : rr), U = Math.max(a, 0) + m, E = e.range(), N = +E[0] + Y, W = +E[E.length - 1] + Y, q = (e.bandwidth ? or : ar)(e.copy(), Y), j = S.selection ? S.selection() : S, p = j.selectAll(".domain").data([null]), g = j.selectAll(".tick").data(Z, e).order(), y = g.exit(), h = g.enter().append("g").attr("class", "tick"), D = g.select("line"), w = g.select("text"); + var Z = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), A = i ?? (e.tickFormat ? e.tickFormat.apply(e, n) : rr), U = Math.max(a, 0) + m, I = e.range(), N = +I[0] + Y, W = +I[I.length - 1] + Y, q = (e.bandwidth ? or : ar)(e.copy(), Y), j = S.selection ? S.selection() : S, p = j.selectAll(".domain").data([null]), g = j.selectAll(".tick").data(Z, e).order(), y = g.exit(), h = g.enter().append("g").attr("class", "tick"), D = g.select("line"), w = g.select("text"); p = p.merge(p.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), g = g.merge(h), D = D.merge(h.append("line").attr("stroke", "currentColor").attr(k + "2", C * a)), w = w.merge(h.append("text").attr("fill", "currentColor").attr(k, C * U).attr("dy", t === Gt ? "0em" : t === xe ? "0.71em" : "0.32em")), S !== j && (p = p.transition(S), g = g.transition(S), D = D.transition(S), w = w.transition(S), y = y.transition(S).attr("opacity", Pe).attr("transform", function(T) { return isFinite(T = q(T)) ? L(T + Y) : this.getAttribute("transform"); }), h.attr("opacity", Pe).attr("transform", function(T) { @@ -201,16 +201,16 @@ function et(t, e, n, r) { ; }), n && (i.count = (a, c) => (ge.setTime(+a), ye.setTime(+c), t(ge), t(ye), Math.floor(n(ge, ye))), i.every = (a) => (a = Math.floor(a), !isFinite(a) || !(a > 0) ? null : a > 1 ? i.filter(r ? (c) => r(c) % a === 0 : (c) => i.count(0, c) % a === 0) : i)), i; } -const It = et(() => { +const Et = et(() => { }, (t, e) => { t.setTime(+t + e); }, (t, e) => e - t); -It.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? et((e) => { +Et.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? et((e) => { e.setTime(Math.floor(e / t) * t); }, (e, n) => { e.setTime(+e + n * t); -}, (e, n) => (n - e) / t) : It); -It.range; +}, (e, n) => (n - e) / t) : Et); +Et.range; const mt = 1e3, ct = mt * 60, gt = ct * 60, yt = gt * 24, Se = yt * 7, Re = yt * 30, ke = yt * 365, vt = et((t) => { t.setTime(t - t.getMilliseconds()); }, (t, e) => { @@ -282,12 +282,12 @@ function Mt(t) { e.setUTCDate(e.getUTCDate() + n * 7); }, (e, n) => (n - e) / Se); } -const wn = Mt(0), re = Mt(1), br = Mt(2), wr = Mt(3), Et = Mt(4), Dr = Mt(5), Mr = Mt(6); +const wn = Mt(0), re = Mt(1), br = Mt(2), wr = Mt(3), It = Mt(4), Dr = Mt(5), Mr = Mt(6); wn.range; re.range; br.range; wr.range; -Et.range; +It.range; Dr.range; Mr.range; const Pt = et((t) => { @@ -354,7 +354,7 @@ function Sr(t, e, n, r, i, a) { function Y(C, k, L) { const _ = Math.abs(k - C) / L, S = jn(([, , U]) => U).right(c, _); if (S === c.length) return t.every(Ne(C / ke, k / ke, L)); - if (S === 0) return It.every(Math.max(Ne(C, k, L), 1)); + if (S === 0) return Et.every(Math.max(Ne(C, k, L), 1)); const [Z, A] = c[_ / c[S - 1][2] < c[S][2] / _ ? S - 1 : S]; return Z.every(A); } @@ -379,7 +379,7 @@ function At(t, e, n) { return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 }; } function Yr(t) { - var e = t.dateTime, n = t.date, r = t.time, i = t.periods, a = t.days, c = t.shortDays, m = t.months, Y = t.shortMonths, C = Wt(i), k = $t(i), L = Wt(a), _ = $t(a), S = Wt(c), Z = $t(c), A = Wt(m), U = $t(m), E = Wt(Y), N = $t(Y), W = { + var e = t.dateTime, n = t.date, r = t.time, i = t.periods, a = t.days, c = t.shortDays, m = t.months, Y = t.shortMonths, C = Wt(i), k = $t(i), L = Wt(a), _ = $t(a), S = Wt(c), Z = $t(c), A = Wt(m), U = $t(m), I = Wt(Y), N = $t(Y), W = { a: b, A: F, b: o, @@ -397,7 +397,7 @@ function Yr(t) { m: ti, M: ei, p: s, - q: I, + q: E, Q: Qe, s: Je, S: ni, @@ -524,7 +524,7 @@ function Yr(t) { return l ? (M.w = _.get(l[0].toLowerCase()), R + l[0].length) : -1; } function T(M, H, R) { - var l = E.exec(H.slice(R)); + var l = I.exec(H.slice(R)); return l ? (M.m = N.get(l[0].toLowerCase()), R + l[0].length) : -1; } function v(M, H, R) { @@ -555,7 +555,7 @@ function Yr(t) { function s(M) { return i[+(M.getHours() >= 12)]; } - function I(M) { + function E(M) { return 1 + ~~(M.getMonth() / 3); } function z(M) { @@ -603,16 +603,16 @@ function Yr(t) { } }; } -var Ve = { "-": "", _: " ", 0: "0" }, nt = /^\s*\d+/, Ur = /^%/, Ir = /[\\^$*+?|[\]().{}]/g; +var Ve = { "-": "", _: " ", 0: "0" }, nt = /^\s*\d+/, Ur = /^%/, Er = /[\\^$*+?|[\]().{}]/g; function B(t, e, n) { var r = t < 0 ? "-" : "", i = (r ? -t : t) + "", a = i.length; return r + (a < n ? new Array(n - a + 1).join(e) + i : i); } -function Er(t) { - return t.replace(Ir, "\\$&"); +function Ir(t) { + return t.replace(Er, "\\$&"); } function Wt(t) { - return new RegExp("^(?:" + t.map(Er).join("|") + ")", "i"); + return new RegExp("^(?:" + t.map(Ir).join("|") + ")", "i"); } function $t(t) { return new Map(t.map((e, n) => [e.toLowerCase(), n])); @@ -797,10 +797,10 @@ function xi(t, e) { } function Sn(t) { var e = t.getUTCDay(); - return e >= 4 || e === 0 ? Et(t) : Et.ceil(t); + return e >= 4 || e === 0 ? It(t) : It.ceil(t); } function bi(t, e) { - return t = Sn(t), B(Et.count(wt(t), t) + (wt(t).getUTCDay() === 4), e, 2); + return t = Sn(t), B(It.count(wt(t), t) + (wt(t).getUTCDay() === 4), e, 2); } function wi(t) { return t.getUTCDay(); @@ -819,7 +819,7 @@ function Si(t, e) { } function _i(t, e) { var n = t.getUTCDay(); - return t = n >= 4 || n === 0 ? Et(t) : Et.ceil(t), B(t.getUTCFullYear() % 1e4, e, 4); + return t = n >= 4 || n === 0 ? It(t) : It.ceil(t), B(t.getUTCFullYear() % 1e4, e, 4); } function Fi() { return "+0000"; @@ -850,18 +850,18 @@ function Yi(t) { function Ui(t) { return new Date(t); } -function Ii(t) { +function Ei(t) { return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t); } function _n(t, e, n, r, i, a, c, m, Y, C) { - var k = Qn(), L = k.invert, _ = k.domain, S = C(".%L"), Z = C(":%S"), A = C("%I:%M"), U = C("%I %p"), E = C("%a %d"), N = C("%b %d"), W = C("%B"), q = C("%Y"); + var k = Qn(), L = k.invert, _ = k.domain, S = C(".%L"), Z = C(":%S"), A = C("%I:%M"), U = C("%I %p"), I = C("%a %d"), N = C("%b %d"), W = C("%B"), q = C("%Y"); function j(p) { - return (Y(p) < p ? S : m(p) < p ? Z : c(p) < p ? A : a(p) < p ? U : r(p) < p ? i(p) < p ? E : N : n(p) < p ? W : q)(p); + return (Y(p) < p ? S : m(p) < p ? Z : c(p) < p ? A : a(p) < p ? U : r(p) < p ? i(p) < p ? I : N : n(p) < p ? W : q)(p); } return k.invert = function(p) { return new Date(L(p)); }, k.domain = function(p) { - return arguments.length ? _(Array.from(p, Ii)) : _().map(Ui); + return arguments.length ? _(Array.from(p, Ei)) : _().map(Ui); }, k.ticks = function(p) { var g = _(); return t(g[0], g[g.length - 1], p ?? 10); @@ -874,7 +874,7 @@ function _n(t, e, n, r, i, a, c, m, Y, C) { return Jn(k, _n(t, e, n, r, i, a, c, m, Y, C)); }, k; } -function Ei() { +function Ii() { return tr.apply(_n(_r, Fr, kt, Pt, Rt, xt, Ht, Ot, vt, ie).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); } var jt = { exports: {} }, Li = jt.exports, Ke; @@ -917,26 +917,26 @@ function Hi() { var n = { 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" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, i = /\d/, a = /\d\d/, c = /\d\d?/, m = /\d*[^-_:/,()\s\d]+/, Y = {}, C = function(U) { return (U = +U) + (U > 68 ? 1900 : 2e3); }, k = function(U) { - return function(E) { - this[U] = +E; + return function(I) { + this[U] = +I; }; }, L = [/[+-]\d\d:?(\d\d)?|Z/, function(U) { - (this.zone || (this.zone = {})).offset = (function(E) { - if (!E || E === "Z") return 0; - var N = E.match(/([+-]|\d\d)/g), W = 60 * N[1] + (+N[2] || 0); + (this.zone || (this.zone = {})).offset = (function(I) { + if (!I || I === "Z") return 0; + var N = I.match(/([+-]|\d\d)/g), W = 60 * N[1] + (+N[2] || 0); return W === 0 ? 0 : N[0] === "+" ? -W : W; })(U); }], _ = function(U) { - var E = Y[U]; - return E && (E.indexOf ? E : E.s.concat(E.f)); - }, S = function(U, E) { + var I = Y[U]; + return I && (I.indexOf ? I : I.s.concat(I.f)); + }, S = function(U, I) { var N, W = Y.meridiem; if (W) { - for (var q = 1; q <= 24; q += 1) if (U.indexOf(W(q, 0, E)) > -1) { + for (var q = 1; q <= 24; q += 1) if (U.indexOf(W(q, 0, I)) > -1) { N = q > 12; break; } - } else N = U === (E ? "pm" : "PM"); + } else N = U === (I ? "pm" : "PM"); return N; }, Z = { A: [m, function(U) { this.afternoon = S(U, !1); @@ -951,25 +951,25 @@ function Hi() { }], SSS: [/\d{3}/, function(U) { this.milliseconds = +U; }], s: [c, k("seconds")], ss: [c, k("seconds")], m: [c, k("minutes")], mm: [c, k("minutes")], H: [c, k("hours")], h: [c, k("hours")], HH: [c, k("hours")], hh: [c, k("hours")], D: [c, k("day")], DD: [a, k("day")], Do: [m, function(U) { - var E = Y.ordinal, N = U.match(/\d+/); - if (this.day = N[0], E) for (var W = 1; W <= 31; W += 1) E(W).replace(/\[|\]/g, "") === U && (this.day = W); + var I = Y.ordinal, N = U.match(/\d+/); + if (this.day = N[0], I) for (var W = 1; W <= 31; W += 1) I(W).replace(/\[|\]/g, "") === U && (this.day = W); }], w: [c, k("week")], ww: [a, k("week")], M: [c, k("month")], MM: [a, k("month")], MMM: [m, function(U) { - var E = _("months"), N = (_("monthsShort") || E.map((function(W) { + var I = _("months"), N = (_("monthsShort") || I.map((function(W) { return W.slice(0, 3); }))).indexOf(U) + 1; if (N < 1) throw new Error(); this.month = N % 12 || N; }], MMMM: [m, function(U) { - var E = _("months").indexOf(U) + 1; - if (E < 1) throw new Error(); - this.month = E % 12 || E; + var I = _("months").indexOf(U) + 1; + if (I < 1) throw new Error(); + this.month = I % 12 || I; }], Y: [/[+-]?\d+/, k("year")], YY: [a, function(U) { this.year = C(U); }], YYYY: [/\d{4}/, k("year")], Z: L, ZZ: L }; function A(U) { - var E, N; - E = U, N = Y && Y.formats; - for (var W = (U = E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(D, w, T) { + var I, N; + I = U, N = Y && Y.formats; + for (var W = (U = I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(D, w, T) { var v = T && T.toUpperCase(); return w || N[T] || n[T] || N[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(u, f, x) { return f || x.slice(1); @@ -996,9 +996,9 @@ function Hi() { })(w), w; }; } - return function(U, E, N) { + return function(U, I, N) { N.p.customParseFormat = !0, U && U.parseTwoDigitYear && (C = U.parseTwoDigitYear); - var W = E.prototype, q = W.parse; + var W = I.prototype, q = W.parse; W.parse = function(j) { var p = j.date, g = j.utc, y = j.args; this.$u = g; @@ -1008,8 +1008,8 @@ function Hi() { w && (v = y[2]), Y = this.$locale(), !D && v && (Y = N.Ls[v]), this.$d = (function(b, F, o, X) { try { if (["x", "X"].indexOf(F) > -1) return new Date((F === "X" ? 1e3 : 1) * b); - var s = A(F)(b), I = s.year, z = s.month, V = s.day, P = s.hours, K = s.minutes, O = s.seconds, st = s.milliseconds, M = s.zone, H = s.week, R = /* @__PURE__ */ new Date(), l = V || (I || z ? 1 : R.getDate()), J = I || R.getFullYear(), $ = 0; - I && !z || ($ = z > 0 ? z - 1 : R.getMonth()); + var s = A(F)(b), E = s.year, z = s.month, V = s.day, P = s.hours, K = s.minutes, O = s.seconds, st = s.milliseconds, M = s.zone, H = s.week, R = /* @__PURE__ */ new Date(), l = V || (E || z ? 1 : R.getDate()), J = E || R.getFullYear(), $ = 0; + E && !z || ($ = z > 0 ? z - 1 : R.getMonth()); var Q, G = P || 0, it = K || 0, at = O || 0, pt = st || 0; return M ? new Date(Date.UTC(J, $, l, G, it, at, pt + 60 * M.offset * 1e3)) : o ? new Date(Date.UTC(J, $, l, G, it, at, pt)) : (Q = new Date(J, $, l, G, it, at, pt), H && (Q = X(Q).week(H).toDate()), Q); } catch { @@ -1099,7 +1099,7 @@ function Bi() { return r.p(p) + "s"; }, U = function(p) { return p < 0; - }, E = function(p) { + }, I = function(p) { return U(p) ? Math.ceil(p) : Math.floor(p); }, N = function(p) { return Math.abs(p); @@ -1132,7 +1132,7 @@ function Bi() { }), 0); }, g.parseFromMilliseconds = function() { var y = this.$ms; - this.$d.years = E(y / C), y %= C, this.$d.months = E(y / k), y %= k, this.$d.days = E(y / m), y %= m, this.$d.hours = E(y / c), y %= c, this.$d.minutes = E(y / a), y %= a, this.$d.seconds = E(y / i), y %= i, this.$d.milliseconds = y; + this.$d.years = I(y / C), y %= C, this.$d.months = I(y / k), y %= k, this.$d.days = I(y / m), y %= m, this.$d.hours = I(y / c), y %= c, this.$d.minutes = I(y / a), y %= a, this.$d.seconds = I(y / i), y %= i, this.$d.milliseconds = y; }, g.toISOString = function() { var y = W(this.$d.years, "Y"), h = W(this.$d.months, "M"), D = +this.$d.days || 0; this.$d.weeks && (D += 7 * this.$d.weeks); @@ -1151,7 +1151,7 @@ function Bi() { return this.$ms / _[A(y)]; }, g.get = function(y) { var h = this.$ms, D = A(y); - return D === "milliseconds" ? h %= 1e3 : h = D === "weeks" ? E(h / _[D]) : this.$d[D], h || 0; + return D === "milliseconds" ? h %= 1e3 : h = D === "weeks" ? I(h / _[D]) : this.$d[D], h || 0; }, g.add = function(y, h, D) { var w; return w = h ? y * _[A(h)] : S(y) ? y.$ms : Z(y, this).$ms, Z(this.$ms + w * (D ? -1 : 1), this); @@ -1223,7 +1223,7 @@ var we = (function() { var t = /* @__PURE__ */ d(function(v, u, f, x) { for (f = f || {}, x = v.length; x--; f[v[x]] = u) ; return f; - }, "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], r = [1, 27], i = [1, 28], a = [1, 29], c = [1, 30], m = [1, 31], Y = [1, 32], C = [1, 33], k = [1, 34], L = [1, 9], _ = [1, 10], S = [1, 11], Z = [1, 12], A = [1, 13], U = [1, 14], E = [1, 15], N = [1, 16], W = [1, 19], q = [1, 20], j = [1, 21], p = [1, 22], g = [1, 23], y = [1, 25], h = [1, 35], D = { + }, "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], r = [1, 27], i = [1, 28], a = [1, 29], c = [1, 30], m = [1, 31], Y = [1, 32], C = [1, 33], k = [1, 34], L = [1, 9], _ = [1, 10], S = [1, 11], Z = [1, 12], A = [1, 13], U = [1, 14], I = [1, 15], N = [1, 16], W = [1, 19], q = [1, 20], j = [1, 21], p = [1, 22], g = [1, 23], y = [1, 25], h = [1, 35], D = { trace: /* @__PURE__ */ d(function() { }, "trace"), yy: {}, @@ -1352,7 +1352,7 @@ var we = (function() { 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: r, 14: i, 15: a, 16: c, 17: m, 18: Y, 19: 18, 20: C, 21: k, 22: L, 23: _, 24: S, 25: Z, 26: A, 27: U, 28: E, 29: N, 30: W, 31: q, 33: j, 35: p, 36: g, 37: 24, 38: y, 40: h }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: r, 14: i, 15: a, 16: c, 17: m, 18: Y, 19: 18, 20: C, 21: k, 22: L, 23: _, 24: S, 25: Z, 26: A, 27: U, 28: E, 29: N, 30: W, 31: q, 33: j, 35: p, 36: g, 37: 24, 38: y, 40: h }, 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])], + 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: r, 14: i, 15: a, 16: c, 17: m, 18: Y, 19: 18, 20: C, 21: k, 22: L, 23: _, 24: S, 25: Z, 26: A, 27: U, 28: I, 29: N, 30: W, 31: q, 33: j, 35: p, 36: g, 37: 24, 38: y, 40: h }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: r, 14: i, 15: a, 16: c, 17: m, 18: Y, 19: 18, 20: C, 21: k, 22: L, 23: _, 24: S, 25: Z, 26: A, 27: U, 28: I, 29: N, 30: W, 31: q, 33: j, 35: p, 36: g, 37: 24, 38: y, 40: h }, 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: /* @__PURE__ */ d(function(u, f) { if (f.recoverable) @@ -1363,7 +1363,7 @@ var we = (function() { } }, "parseError"), parse: /* @__PURE__ */ d(function(u) { - var f = this, x = [0], b = [], F = [null], o = [], X = this.table, s = "", I = 0, z = 0, V = 2, P = 1, K = o.slice.call(arguments, 1), O = Object.create(this.lexer), st = { yy: {} }; + var f = this, x = [0], b = [], F = [null], o = [], X = this.table, s = "", E = 0, z = 0, V = 2, P = 1, K = o.slice.call(arguments, 1), O = Object.create(this.lexer), st = { yy: {} }; for (var M in this.yy) Object.prototype.hasOwnProperty.call(this.yy, M) && (st.yy[M] = this.yy[M]); O.setInput(u, st.yy), st.yy.lexer = O, st.yy.parser = this, typeof O.yylloc > "u" && (O.yylloc = {}); @@ -1386,9 +1386,9 @@ var we = (function() { Zt = []; for (pt in X[Q]) this.terminals_[pt] && pt > V && Zt.push("'" + this.terminals_[pt] + "'"); - O.showPosition ? ce = "Parse error on line " + (I + 1) + `: + O.showPosition ? ce = "Parse error on line " + (E + 1) + `: ` + O.showPosition() + ` -Expecting ` + Zt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : ce = "Parse error on line " + (I + 1) + ": Unexpected " + ($ == P ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(ce, { +Expecting ` + Zt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : ce = "Parse error on line " + (E + 1) + ": Unexpected " + ($ == P ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(ce, { text: O.match, token: this.terminals_[$] || $, line: O.yylineno, @@ -1400,7 +1400,7 @@ Expecting ` + Zt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : ce = throw new Error("Parse Error: multiple actions possible at state: " + Q + ", token: " + $); switch (G[0]) { case 1: - x.push($), F.push(O.yytext), o.push(O.yylloc), x.push(G[1]), $ = null, z = O.yyleng, s = O.yytext, I = O.yylineno, H = O.yylloc; + x.push($), F.push(O.yytext), o.push(O.yylloc), x.push(G[1]), $ = null, z = O.yyleng, s = O.yytext, E = O.yylineno, H = O.yylloc; break; case 2: if (ut = this.productions_[G[1]][1], at.$ = F[F.length - ut], at._$ = { @@ -1414,7 +1414,7 @@ Expecting ` + Zt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : ce = ]), it = this.performAction.apply(at, [ s, z, - I, + E, st.yy, G[1], F, @@ -1735,8 +1735,8 @@ var ji = we; rt.extend($i); rt.extend(Pi); rt.extend(qi); -var rn = { friday: 5, saturday: 6 }, lt = "", Fe = "", Ye = void 0, Ue = "", Vt = [], zt = [], Ie = /* @__PURE__ */ new Map(), Ee = [], se = [], Lt = "", Le = "", Fn = ["active", "done", "crit", "milestone", "vert"], Ae = [], _t = "", qt = !1, We = !1, $e = "sunday", ae = "saturday", De = 0, Qi = /* @__PURE__ */ d(function() { - Ee = [], se = [], Lt = "", Ae = [], te = 0, Ce = void 0, ee = void 0, tt = [], lt = "", Fe = "", Le = "", Ye = void 0, Ue = "", Vt = [], zt = [], qt = !1, We = !1, De = 0, Ie = /* @__PURE__ */ new Map(), _t = "", Xn(), $e = "sunday", ae = "saturday"; +var rn = { friday: 5, saturday: 6 }, lt = "", Fe = "", Ye = void 0, Ue = "", Vt = [], zt = [], Ee = /* @__PURE__ */ new Map(), Ie = [], se = [], Lt = "", Le = "", Fn = ["active", "done", "crit", "milestone", "vert"], Ae = [], _t = "", qt = !1, We = !1, $e = "sunday", ae = "saturday", De = 0, Qi = /* @__PURE__ */ d(function() { + Ie = [], se = [], Lt = "", Ae = [], te = 0, Ce = void 0, ee = void 0, tt = [], lt = "", Fe = "", Le = "", Ye = void 0, Ue = "", Vt = [], zt = [], qt = !1, We = !1, De = 0, Ee = /* @__PURE__ */ new Map(), _t = "", Xn(), $e = "sunday", ae = "saturday"; }, "clear"), Ji = /* @__PURE__ */ d(function(t) { _t = t; }, "setDiagramId"), Ki = /* @__PURE__ */ d(function(t) { @@ -1776,11 +1776,11 @@ var rn = { friday: 5, saturday: 6 }, lt = "", Fe = "", Ye = void 0, Ue = "", Vt }, "setExcludes"), ys = /* @__PURE__ */ d(function() { return zt; }, "getExcludes"), ks = /* @__PURE__ */ d(function() { - return Ie; + return Ee; }, "getLinks"), ps = /* @__PURE__ */ d(function(t) { - Lt = t, Ee.push(t); + Lt = t, Ie.push(t); }, "addSection"), vs = /* @__PURE__ */ d(function() { - return Ee; + return Ie; }, "getSections"), Ts = /* @__PURE__ */ d(function() { let t = sn(); const e = 10; @@ -1814,8 +1814,14 @@ var rn = { friday: 5, saturday: 6 }, lt = "", Fe = "", Ye = void 0, Ue = "", Vt t.endTime = c.toDate(), t.renderEndTime = m; }, "checkTaskDates"), Ds = /* @__PURE__ */ d(function(t, e, n, r, i) { let a = !1, c = null; - for (; t <= e; ) - a || (c = e.toDate()), a = Yn(t, n, r, i), a && (e = e.add(1, "d")), t = t.add(1, "d"); + const m = e.add(1e4, "d"); + for (; t <= e; ) { + if (a || (c = e.toDate()), a = Yn(t, n, r, i), a && (e = e.add(1, "d"), e > m)) + 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, c]; }, "fixTaskDates"), Me = /* @__PURE__ */ d(function(t, e, n) { if (n = n.trim(), (/* @__PURE__ */ d((m) => { @@ -1850,10 +1856,10 @@ var rn = { friday: 5, saturday: 6 }, lt = "", Fe = "", Ye = void 0, Ue = "", Vt throw new Error("Invalid date:" + n); return m; } -}, "getStartDate"), In = /* @__PURE__ */ d(function(t) { +}, "getStartDate"), En = /* @__PURE__ */ d(function(t) { const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim()); return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"]; -}, "parseDuration"), En = /* @__PURE__ */ d(function(t, e, n, r = !1) { +}, "parseDuration"), In = /* @__PURE__ */ d(function(t, e, n, r = !1) { n = n.trim(); const a = /^until\s+(?<ids>[\d\w- ]+)/.exec(n); if (a !== null) { @@ -1871,7 +1877,7 @@ var rn = { friday: 5, saturday: 6 }, lt = "", Fe = "", Ye = void 0, Ue = "", Vt if (c.isValid()) return r && (c = c.add(1, "d")), c.toDate(); let m = rt(t); - const [Y, C] = In(n); + const [Y, C] = En(n); if (!Number.isNaN(Y)) { const k = m.add(Y, C); k.isValid() && (m = k); @@ -1898,7 +1904,7 @@ var rn = { friday: 5, saturday: 6 }, lt = "", Fe = "", Ye = void 0, Ue = "", Vt i.id = Ut(r[0]), i.startTime = Me(void 0, lt, r[1]), a = r[2]; break; } - return a && (i.endTime = En(i.startTime, lt, a, qt), i.manualEndTime = rt(a, "YYYY-MM-DD", !0).isValid(), Un(i, lt, zt, Vt)), i; + return a && (i.endTime = In(i.startTime, lt, a, qt), i.manualEndTime = rt(a, "YYYY-MM-DD", !0).isValid(), Un(i, lt, zt, Vt)), i; }, "compileData"), Cs = /* @__PURE__ */ d(function(t, e) { let n; e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e; @@ -1973,7 +1979,7 @@ var rn = { friday: 5, saturday: 6 }, lt = "", Fe = "", Ye = void 0, Ue = "", Vt i = Me(void 0, lt, tt[n].raw.startTime.startData), i && (tt[n].startTime = i); break; } - return tt[n].startTime && (tt[n].endTime = En( + return tt[n].startTime && (tt[n].endTime = In( tt[n].startTime, lt, tt[n].raw.endTime.data, @@ -1993,7 +1999,7 @@ var rn = { friday: 5, saturday: 6 }, lt = "", Fe = "", Ye = void 0, Ue = "", Vt Ft().securityLevel !== "loose" && (n = Bn.sanitizeUrl(e)), t.split(",").forEach(function(r) { Ct(r) !== void 0 && (Wn(r, () => { window.open(n, "_self"); - }), Ie.set(r, n)); + }), Ee.set(r, n)); }), An(t, "clickable"); }, "setLink"), An = /* @__PURE__ */ d(function(t, e) { t.split(",").forEach(function(n) { @@ -2033,11 +2039,11 @@ var rn = { friday: 5, saturday: 6 }, lt = "", Fe = "", Ye = void 0, Ue = "", Vt t.split(",").forEach(function(r) { Ys(r, e, n); }), An(t, "clickable"); -}, "setClickEvent"), Is = /* @__PURE__ */ d(function(t) { +}, "setClickEvent"), Es = /* @__PURE__ */ d(function(t) { Ae.forEach(function(e) { e(t); }); -}, "bindFunctions"), Es = { +}, "bindFunctions"), Is = { getConfig: /* @__PURE__ */ d(() => Ft().gantt, "getConfig"), clear: Qi, setDateFormat: ss, @@ -2074,8 +2080,8 @@ var rn = { friday: 5, saturday: 6 }, lt = "", Fe = "", Ye = void 0, Ue = "", Vt setClickEvent: Us, setLink: Fs, getLinks: ks, - bindFunctions: Is, - parseDuration: In, + bindFunctions: Es, + parseDuration: En, isInvalidDate: Yn, setWeekday: xs, getWeekday: bs, @@ -2140,7 +2146,7 @@ var Ls = /* @__PURE__ */ d(function() { _[h] = k.filter((D) => D.type === h).length; } C.setAttribute("viewBox", "0 0 " + dt + " " + S); - const Z = m.select(`[id="${e}"]`), A = Ei().domain([ + const Z = m.select(`[id="${e}"]`), A = Ii().domain([ nr(k, function(h) { return h.startTime; }), @@ -2153,8 +2159,8 @@ var Ls = /* @__PURE__ */ d(function() { let v = 0; return w > T ? v = 1 : w < T && (v = -1), v; } - d(U, "taskCompare"), k.sort(U), E(k, dt, S), qn(Z, S, dt, i.useMaxWidth), Z.append("text").text(r.db.getDiagramTitle()).attr("x", dt / 2).attr("y", i.titleTopMargin).attr("class", "titleText"); - function E(h, D, w) { + d(U, "taskCompare"), k.sort(U), I(k, dt, S), qn(Z, S, dt, i.useMaxWidth), Z.append("text").text(r.db.getDiagramTitle()).attr("x", dt / 2).attr("y", i.titleTopMargin).attr("class", "titleText"); + function I(h, D, w) { const T = i.barHeight, v = T + i.barGap, u = i.topPadding, f = i.leftPadding, x = Kn().domain([0, L.length]).range(["#00B9FA", "#F95002"]).interpolate(kr); W( v, @@ -2167,18 +2173,18 @@ var Ls = /* @__PURE__ */ d(function() { r.db.getIncludes() ), j(f, u, D, w), N(h, v, u, f, T, x, D), p(v, u), g(f, u, D, w); } - d(E, "makeGantt"); + d(I, "makeGantt"); function N(h, D, w, T, v, u, f) { - h.sort((s, I) => s.vert === I.vert ? 0 : s.vert ? 1 : -1); - const b = [...new Set(h.map((s) => s.order))].map((s) => h.find((I) => I.order === s)); - Z.append("g").selectAll("rect").data(b).enter().append("rect").attr("x", 0).attr("y", function(s, I) { - return I = s.order, I * D + w - 2; + h.sort((s, E) => s.vert === E.vert ? 0 : s.vert ? 1 : -1); + const b = [...new Set(h.map((s) => s.order))].map((s) => h.find((E) => E.order === s)); + Z.append("g").selectAll("rect").data(b).enter().append("rect").attr("x", 0).attr("y", function(s, E) { + return E = s.order, E * D + w - 2; }).attr("width", function() { return f - i.rightPadding / 2; }).attr("height", D).attr("class", function(s) { - for (const [I, z] of L.entries()) + for (const [E, z] of L.entries()) if (s.type === z) - return "section section" + I % i.numberSectionStyles; + return "section section" + E % i.numberSectionStyles; return "section section0"; }).enter(); const F = Z.append("g").selectAll("rect").data(h).enter(), o = r.db.getLinks(); @@ -2186,39 +2192,39 @@ var Ls = /* @__PURE__ */ d(function() { return e + "-" + s.id; }).attr("rx", 3).attr("ry", 3).attr("x", function(s) { return s.milestone ? A(s.startTime) + T + 0.5 * (A(s.endTime) - A(s.startTime)) - 0.5 * v : A(s.startTime) + T; - }).attr("y", function(s, I) { - return I = s.order, s.vert ? i.gridLineStartPadding : I * D + w; + }).attr("y", function(s, E) { + return E = s.order, s.vert ? i.gridLineStartPadding : E * D + w; }).attr("width", function(s) { return s.milestone ? v : s.vert ? 0.08 * v : A(s.renderEndTime || s.endTime) - A(s.startTime); }).attr("height", function(s) { return s.vert ? k.length * (i.barHeight + i.barGap) + i.barHeight * 2 : v; - }).attr("transform-origin", function(s, I) { - return I = s.order, (A(s.startTime) + T + 0.5 * (A(s.endTime) - A(s.startTime))).toString() + "px " + (I * D + w + 0.5 * v).toString() + "px"; + }).attr("transform-origin", function(s, E) { + return E = s.order, (A(s.startTime) + T + 0.5 * (A(s.endTime) - A(s.startTime))).toString() + "px " + (E * D + w + 0.5 * v).toString() + "px"; }).attr("class", function(s) { - const I = "task"; + const E = "task"; let z = ""; s.classes.length > 0 && (z = s.classes.join(" ")); let V = 0; for (const [K, O] of L.entries()) s.type === O && (V = K % i.numberSectionStyles); let P = ""; - return s.active ? s.crit ? P += " activeCrit" : P = " active" : s.done ? s.crit ? P = " doneCrit" : P = " done" : s.crit && (P += " crit"), P.length === 0 && (P = " task"), s.milestone && (P = " milestone " + P), s.vert && (P = " vert " + P), P += V, P += " " + z, I + P; + return s.active ? s.crit ? P += " activeCrit" : P = " active" : s.done ? s.crit ? P = " doneCrit" : P = " done" : s.crit && (P += " crit"), P.length === 0 && (P = " task"), s.milestone && (P = " milestone " + P), s.vert && (P = " vert " + P), P += V, P += " " + z, E + P; }), F.append("text").attr("id", function(s) { return e + "-" + s.id + "-text"; }).text(function(s) { return s.task; }).attr("font-size", i.fontSize).attr("x", function(s) { - let I = A(s.startTime), z = A(s.renderEndTime || s.endTime); - if (s.milestone && (I += 0.5 * (A(s.endTime) - A(s.startTime)) - 0.5 * v, z = I + v), s.vert) + let E = A(s.startTime), z = A(s.renderEndTime || s.endTime); + if (s.milestone && (E += 0.5 * (A(s.endTime) - A(s.startTime)) - 0.5 * v, z = E + v), s.vert) return A(s.startTime) + T; const V = this.getBBox().width; - return V > z - I ? z + V + 1.5 * i.leftPadding > f ? I + T - 5 : z + T + 5 : (z - I) / 2 + I + T; - }).attr("y", function(s, I) { - return s.vert ? i.gridLineStartPadding + k.length * (i.barHeight + i.barGap) + 60 : (I = s.order, I * D + i.barHeight / 2 + (i.fontSize / 2 - 2) + w); + return V > z - E ? z + V + 1.5 * i.leftPadding > f ? E + T - 5 : z + T + 5 : (z - E) / 2 + E + T; + }).attr("y", function(s, E) { + return s.vert ? i.gridLineStartPadding + k.length * (i.barHeight + i.barGap) + 60 : (E = s.order, E * D + i.barHeight / 2 + (i.fontSize / 2 - 2) + w); }).attr("text-height", v).attr("class", function(s) { - const I = A(s.startTime); + const E = A(s.startTime); let z = A(s.endTime); - s.milestone && (z = I + v); + s.milestone && (z = E + v); const V = this.getBBox().width; let P = ""; s.classes.length > 0 && (P = s.classes.join(" ")); @@ -2226,17 +2232,17 @@ var Ls = /* @__PURE__ */ d(function() { for (const [st, M] of L.entries()) s.type === M && (K = st % i.numberSectionStyles); let O = ""; - return s.active && (s.crit ? O = "activeCritText" + K : O = "activeText" + K), s.done ? s.crit ? O = O + " doneCritText" + K : O = O + " doneText" + K : s.crit && (O = O + " critText" + K), s.milestone && (O += " milestoneText"), s.vert && (O += " vertText"), V > z - I ? z + V + 1.5 * i.leftPadding > f ? P + " taskTextOutsideLeft taskTextOutside" + K + " " + O : P + " taskTextOutsideRight taskTextOutside" + K + " " + O + " width-" + V : P + " taskText taskText" + K + " " + O + " width-" + V; + return s.active && (s.crit ? O = "activeCritText" + K : O = "activeText" + K), s.done ? s.crit ? O = O + " doneCritText" + K : O = O + " doneText" + K : s.crit && (O = O + " critText" + K), s.milestone && (O += " milestoneText"), s.vert && (O += " vertText"), V > z - E ? z + V + 1.5 * i.leftPadding > f ? P + " taskTextOutsideLeft taskTextOutside" + K + " " + O : P + " taskTextOutsideRight taskTextOutside" + K + " " + O + " width-" + V : P + " taskText taskText" + K + " " + O + " width-" + V; }), Ft().securityLevel === "sandbox") { let s; s = Bt("#i" + e); - const I = s.nodes()[0].contentDocument; + const E = s.nodes()[0].contentDocument; F.filter(function(z) { return o.has(z.id); }).each(function(z) { - var V = I.querySelector("#" + CSS.escape(e + "-" + z.id)), P = I.querySelector("#" + CSS.escape(e + "-" + z.id + "-text")); + var V = E.querySelector("#" + CSS.escape(e + "-" + z.id)), P = E.querySelector("#" + CSS.escape(e + "-" + z.id + "-text")); const K = V.parentNode; - var O = I.createElement("a"); + var O = E.createElement("a"); O.setAttribute("xlink:href", o.get(z.id)), O.setAttribute("target", "_top"), K.appendChild(O), O.appendChild(V), O.appendChild(P); }); } @@ -2257,12 +2263,12 @@ var Ls = /* @__PURE__ */ d(function() { return; } const o = r.db.getDateFormat(), X = []; - let s = null, I = rt(b); - for (; I.valueOf() <= F; ) - r.db.isInvalidDate(I, o, f, x) ? s ? s.end = I : s = { - start: I, - end: I - } : s && (X.push(s), s = null), I = I.add(1, "d"); + let s = null, E = rt(b); + for (; E.valueOf() <= F; ) + r.db.isInvalidDate(E, o, f, x) ? s ? s.end = E : s = { + start: E, + end: E + } : s && (X.push(s), s = null), E = E.add(1, "d"); Z.append("g").selectAll("rect").data(X).enter().append("rect").attr("id", (V) => e + "-exclude-" + V.start.format("YYYY-MM-DD")).attr("x", (V) => A(V.start.startOf("day")) + w).attr("y", i.gridLineStartPadding).attr("width", (V) => A(V.end.endOf("day")) - A(V.start.startOf("day"))).attr("height", v - D - i.gridLineStartPadding).attr("transform-origin", function(V, P) { return (A(V.start) + w + 0.5 * (A(V.end) - A(V.start))).toString() + "px " + (P * h + 0.5 * v).toString() + "px"; }).attr("class", "exclude-range"); @@ -2290,7 +2296,7 @@ var Ls = /* @__PURE__ */ d(function() { `Invalid tick interval value: "${F[1]}". Skipping custom tick interval.` ); else { - const X = F[2], s = r.db.getWeekday() || i.weekday, I = A.domain(), z = I[0], V = I[1], P = q(z, V, o, X); + const X = F[2], s = r.db.getWeekday() || i.weekday, E = A.domain(), z = E[0], V = E[1], P = q(z, V, o, X); if (P > Te) Tt.warn( `The tick interval "${o}${X}" would generate ${P} ticks, which exceeds the maximum allowed (${Te}). This may indicate an invalid date or time range. Skipping custom tick interval.` @@ -2298,7 +2304,7 @@ var Ls = /* @__PURE__ */ d(function() { else switch (X) { case "millisecond": - x.ticks(It.every(o)); + x.ticks(Et.every(o)); break; case "second": x.ticks(vt.every(o)); @@ -2330,11 +2336,11 @@ var Ls = /* @__PURE__ */ d(function() { `Invalid tick interval value: "${F[1]}". Skipping custom tick interval.` ); else { - const s = F[2], I = r.db.getWeekday() || i.weekday, z = A.domain(), V = z[0], P = z[1]; + const s = F[2], E = r.db.getWeekday() || i.weekday, z = A.domain(), V = z[0], P = z[1]; if (q(V, P, X, s) <= Te) switch (s) { case "millisecond": - o.ticks(It.every(X)); + o.ticks(Et.every(X)); break; case "second": o.ticks(vt.every(X)); @@ -2349,7 +2355,7 @@ var Ls = /* @__PURE__ */ d(function() { o.ticks(xt.every(X)); break; case "week": - o.ticks(an[I].every(X)); + o.ticks(an[E].every(X)); break; case "month": o.ticks(Pt.every(X)); @@ -2692,7 +2698,7 @@ var Ls = /* @__PURE__ */ d(function() { } `, "getStyles"), Hs = Os, zs = { parser: ji, - db: Es, + db: Is, renderer: $s, styles: Hs }; diff --git a/src/wc-content-kit/public/mermaid/gitGraph-7Q5UKJZL-B_zctUCy.js b/src/wc-content-kit/public/mermaid/gitGraph-7Q5UKJZL-B_zctUCy.js deleted file mode 100644 index 07cd018..0000000 --- a/src/wc-content-kit/public/mermaid/gitGraph-7Q5UKJZL-B_zctUCy.js +++ /dev/null @@ -1,6 +0,0 @@ -import { g as e } from "./mermaid-parser.core-DQ6c91Zg.js"; -import { G as a } from "./mermaid-parser.core-DQ6c91Zg.js"; -export { - a as GitGraphModule, - e as createGitGraphServices -}; diff --git a/src/wc-content-kit/public/mermaid/gitGraphDiagram-UUTBAWPF-B5zuasYQ.js b/src/wc-content-kit/public/mermaid/gitGraphDiagram-PVQCEYII-DFX6QdBH.js similarity index 96% rename from src/wc-content-kit/public/mermaid/gitGraphDiagram-UUTBAWPF-B5zuasYQ.js rename to src/wc-content-kit/public/mermaid/gitGraphDiagram-PVQCEYII-DFX6QdBH.js index 6a587b2..73cdc88 100644 --- a/src/wc-content-kit/public/mermaid/gitGraphDiagram-UUTBAWPF-B5zuasYQ.js +++ b/src/wc-content-kit/public/mermaid/gitGraphDiagram-PVQCEYII-DFX6QdBH.js @@ -1,7 +1,7 @@ -import { p as le } from "./chunk-4BX2VUAB-OP5xfQzz.js"; -import { I as he } from "./chunk-QZHKN3VN-DnDrFfng.js"; -import { q as $e, p as fe, s as ge, g as ue, a as ye, b as xe, _ as h, D as J, l as w, d as me, c as W, u as pe, E as be, z as we, k as B, F as ke, G as ve, H as Ce } from "./mermaid.core-Jw3znkh4.js"; -import { p as Ee } from "./mermaid-parser.core-DQ6c91Zg.js"; +import { p as le } from "./chunk-4BX2VUAB-CLXd73Dk.js"; +import { I as he } from "./chunk-QZHKN3VN-CrvmLzNa.js"; +import { a5 as $e, b3 as fe, b0 as ge, a1 as ue, a2 as ye, b1 as xe, b as h, a3 as J, aD as w, a_ as me, a4 as q, bk as pe, b7 as be, t as we, z as B, s as ke, S as ve, aS as Ce } from "./mermaid.core-FRDjOodn.js"; +import { p as Ee } from "./wardley-L42UT6IY-C-B6soca.js"; var m = { NORMAL: 0, REVERSE: 1, @@ -286,11 +286,11 @@ var Ge = /* @__PURE__ */ h(function() { return e.forEach(function(r) { w.debug(r.id); }), e.sort((r, t) => r.seq - t.seq), e; -}, "getCommitsArray"), qe = /* @__PURE__ */ h(function() { +}, "getCommitsArray"), Pe = /* @__PURE__ */ h(function() { return d.records.currBranch; -}, "getCurrentBranch"), Pe = /* @__PURE__ */ h(function() { +}, "getCurrentBranch"), We = /* @__PURE__ */ h(function() { return d.records.direction; -}, "getDirection"), We = /* @__PURE__ */ h(function() { +}, "getDirection"), qe = /* @__PURE__ */ h(function() { return d.records.head; }, "getHead"), se = { commitType: m, @@ -310,9 +310,9 @@ var Ge = /* @__PURE__ */ h(function() { getBranches: Ae, getCommits: De, getCommitsArray: ne, - getCurrentBranch: qe, - getDirection: Pe, - getHead: We, + getCurrentBranch: Pe, + getDirection: We, + getHead: qe, setAccTitle: xe, getAccTitle: ye, getAccDescription: ue, @@ -355,8 +355,8 @@ var Ge = /* @__PURE__ */ h(function() { const r = await Ee("gitGraph", e); w.debug(r), Ne(r, se); }, "parse") -}, O = 10, _ = 40, L = 4, R = 2, G = 8, j = /* @__PURE__ */ new Set(["redux", "redux-dark", "redux-color", "redux-dark-color"]), X = 12, Z = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Xe = /* @__PURE__ */ new Set(["dark", "redux-dark", "redux-dark-color", "neo-dark"]), H = /* @__PURE__ */ h((e, r, t = !1) => t && e > 0 ? (e - 1) % (r - 1) + 1 : e % r, "calcColorIndex"), C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), F = 30, q = /* @__PURE__ */ new Map(), z = [], I = 0, y = "LR", Je = /* @__PURE__ */ h(() => { - C.clear(), E.clear(), q.clear(), I = 0, z = [], y = "LR"; +}, O = 10, _ = 40, L = 4, R = 2, G = 8, j = /* @__PURE__ */ new Set(["redux", "redux-dark", "redux-color", "redux-dark-color"]), X = 12, Z = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Xe = /* @__PURE__ */ new Set(["dark", "redux-dark", "redux-dark-color", "neo-dark"]), H = /* @__PURE__ */ h((e, r, t = !1) => t && e > 0 ? (e - 1) % (r - 1) + 1 : e % r, "calcColorIndex"), C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), F = 30, P = /* @__PURE__ */ new Map(), z = [], I = 0, y = "LR", Je = /* @__PURE__ */ h(() => { + C.clear(), E.clear(), P.clear(), I = 0, z = [], y = "LR"; }, "clear"), oe = /* @__PURE__ */ h((e) => { const r = document.createElementNS("http://www.w3.org/2000/svg", "text"); return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((s) => { @@ -415,7 +415,7 @@ var Ge = /* @__PURE__ */ h(function() { const o = r + t, i = s.pos; E.set(e.id, { x: i, y: o }); }, "setRootPosition"), nr = /* @__PURE__ */ h((e, r, t, s, o, i) => { - const { theme: n } = W(), a = j.has(n ?? ""), l = Z.has(n ?? ""), f = Xe.has(n ?? ""); + const { theme: n } = q(), a = j.has(n ?? ""), l = Z.has(n ?? ""), f = Xe.has(n ?? ""); if (i === m.HIGHLIGHT) e.append("rect").attr("x", t.x - 10 + (a ? 3 : 0)).attr("y", t.y - 10 + (a ? 3 : 0)).attr("width", a ? 14 : 20).attr("height", a ? 14 : 20).attr( "class", @@ -540,7 +540,7 @@ var Ge = /* @__PURE__ */ h(function() { const s = y === "BT" && t ? r : r + O, o = C.get(e.branch)?.pos, i = y === "TB" || y === "BT" ? C.get(e.branch)?.pos : s; if (i === void 0 || o === void 0) throw new Error(`Position were undefined for commit ${e.id}`); - const n = j.has(W().theme ?? ""), a = y === "TB" || y === "BT" ? s : o + (n ? X / 2 + 1 : -2); + const n = j.has(q().theme ?? ""), a = y === "TB" || y === "BT" ? s : o + (n ? X / 2 + 1 : -2); return { x: i, y: a, posWithOffset: s }; }, "getCommitPosition"), re = /* @__PURE__ */ h((e, r, t, s) => { const o = e.append("g").attr("class", "commit-bullets"), i = e.append("g").attr("class", "commit-labels"); @@ -565,16 +565,16 @@ var Ge = /* @__PURE__ */ h(function() { }, "drawCommits"), lr = /* @__PURE__ */ h((e, r, t, s, o) => { const n = (y === "TB" || y === "BT" ? t.x < s.x : t.y < s.y) ? r.branch : e.branch, a = /* @__PURE__ */ h((f) => f.branch === n, "isOnBranchToGetCurve"), l = /* @__PURE__ */ h((f) => f.seq > e.seq && f.seq < r.seq, "isBetweenCommits"); return [...o.values()].some((f) => l(f) && a(f)); -}, "shouldRerouteArrow"), P = /* @__PURE__ */ h((e, r, t = 0) => { +}, "shouldRerouteArrow"), W = /* @__PURE__ */ h((e, r, t = 0) => { const s = e + Math.abs(e - r) / 2; if (t > 5) return s; if (z.every((n) => Math.abs(n - s) >= 10)) return z.push(s), s; const i = Math.abs(e - r); - return P(e, r - i / 5, t + 1); + return W(e, r - i / 5, t + 1); }, "findLane"), hr = /* @__PURE__ */ h((e, r, t, s) => { - const { theme: o } = W(), i = Z.has(o ?? ""), n = E.get(r.id), a = E.get(t.id); + const { theme: o } = q(), i = Z.has(o ?? ""), n = E.get(r.id), a = E.get(t.id); if (n === void 0 || a === void 0) throw new Error(`Commit positions not found for commits ${r.id} and ${t.id}`); const l = lr(r, t, n, a, s); @@ -583,7 +583,7 @@ var Ge = /* @__PURE__ */ h(function() { let u; if (l) { f = "A 10 10, 0, 0, 0,", g = "A 10 10, 0, 0, 1,", $ = 10, c = 10; - const p = n.y < a.y ? P(n.y, a.y) : P(a.y, n.y), b = n.x < a.x ? P(n.x, a.x) : P(a.x, n.x); + const p = n.y < a.y ? W(n.y, a.y) : W(a.y, n.y), b = n.x < a.x ? W(n.x, a.x) : W(a.x, n.x); y === "TB" ? n.x < a.x ? u = `M ${n.x} ${n.y} L ${b - $} ${n.y} ${g} ${b} ${n.y + c} L ${b} ${a.y - $} ${f} ${b + c} ${a.y} L ${a.x} ${a.y}` : (x = C.get(r.branch)?.index, u = `M ${n.x} ${n.y} L ${b + $} ${n.y} ${f} ${b} ${n.y + c} L ${b} ${a.y - $} ${g} ${b - c} ${a.y} L ${a.x} ${a.y}`) : y === "BT" ? n.x < a.x ? u = `M ${n.x} ${n.y} L ${b - $} ${n.y} ${f} ${b} ${n.y - c} L ${b} ${a.y + $} ${g} ${b + c} ${a.y} L ${a.x} ${a.y}` : (x = C.get(r.branch)?.index, u = `M ${n.x} ${n.y} L ${b + $} ${n.y} ${g} ${b} ${n.y - c} L ${b} ${a.y + $} ${f} ${b - c} ${a.y} L ${a.x} ${a.y}`) : n.y < a.y ? u = `M ${n.x} ${n.y} L ${n.x} ${p - $} ${f} ${n.x + c} ${p} L ${a.x - $} ${p} ${g} ${a.x} ${p + c} L ${a.x} ${a.y}` : (x = C.get(r.branch)?.index, u = `M ${n.x} ${n.y} L ${n.x} ${p + $} ${g} ${n.x + c} ${p} L ${a.x - $} ${p} ${f} ${a.x} ${p - c} L ${a.x} ${a.y}`); } else f = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", $ = 20, c = 20, y === "TB" ? (n.x < a.x && (t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${n.x} ${n.y} L ${n.x} ${a.y - $} ${f} ${n.x + c} ${a.y} L ${a.x} ${a.y}` : u = `M ${n.x} ${n.y} L ${a.x - $} ${n.y} ${g} ${a.x} ${n.y + c} L ${a.x} ${a.y}`), n.x > a.x && (f = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", $ = 20, c = 20, t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${n.x} ${n.y} L ${n.x} ${a.y - $} ${g} ${n.x - c} ${a.y} L ${a.x} ${a.y}` : u = `M ${n.x} ${n.y} L ${a.x + $} ${n.y} ${f} ${a.x} ${n.y + c} L ${a.x} ${a.y}`), n.x === a.x && (u = `M ${n.x} ${n.y} L ${a.x} ${a.y}`)) : y === "BT" ? (n.x < a.x && (t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${n.x} ${n.y} L ${n.x} ${a.y + $} ${g} ${n.x + c} ${a.y} L ${a.x} ${a.y}` : u = `M ${n.x} ${n.y} L ${a.x - $} ${n.y} ${f} ${a.x} ${n.y - c} L ${a.x} ${a.y}`), n.x > a.x && (f = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", $ = 20, c = 20, t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${n.x} ${n.y} L ${n.x} ${a.y + $} ${f} ${n.x - c} ${a.y} L ${a.x} ${a.y}` : u = `M ${n.x} ${n.y} L ${a.x + $} ${n.y} ${g} ${a.x} ${n.y - c} L ${a.x} ${a.y}`), n.x === a.x && (u = `M ${n.x} ${n.y} L ${a.x} ${a.y}`)) : (n.y < a.y && (t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${n.x} ${n.y} L ${a.x - $} ${n.y} ${g} ${a.x} ${n.y + c} L ${a.x} ${a.y}` : u = `M ${n.x} ${n.y} L ${n.x} ${a.y - $} ${f} ${n.x + c} ${a.y} L ${a.x} ${a.y}`), n.y > a.y && (t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${n.x} ${n.y} L ${a.x - $} ${n.y} ${f} ${a.x} ${n.y - c} L ${a.x} ${a.y}` : u = `M ${n.x} ${n.y} L ${n.x} ${a.y + $} ${g} ${n.x + c} ${a.y} L ${a.x} ${a.y}`), n.y === a.y && (u = `M ${n.x} ${n.y} L ${a.x} ${a.y}`)); @@ -602,7 +602,7 @@ var Ge = /* @__PURE__ */ h(function() { }); }); }, "drawArrows"), fr = /* @__PURE__ */ h((e, r, t, s) => { - const { look: o, theme: i, themeVariables: n } = W(), { dropShadow: a, THEME_COLOR_LIMIT: l } = n, f = j.has(i ?? ""), g = Z.has(i ?? ""), $ = e.append("g"); + const { look: o, theme: i, themeVariables: n } = q(), { dropShadow: a, THEME_COLOR_LIMIT: l } = n, f = j.has(i ?? ""), g = Z.has(i ?? ""), $ = e.append("g"); r.forEach((c, x) => { const u = H( x, @@ -641,10 +641,10 @@ var Ge = /* @__PURE__ */ h(function() { return; } const i = o.getConfig(), n = i.rotateCommitLabel ?? !1; - q = o.getCommits(); + P = o.getCommits(); const a = o.getBranchesAsObjArray(); y = o.getDirection(); - const l = me(`[id="${r}"]`), { look: f, theme: g, themeVariables: $ } = W(), { useGradient: c, gradientStart: x, gradientStop: u, filterColor: p } = $; + const l = me(`[id="${r}"]`), { look: f, theme: g, themeVariables: $ } = q(), { useGradient: c, gradientStart: x, gradientStop: u, filterColor: p } = $; if (c) { const k = l.append("defs").append("linearGradient").attr("id", r + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%"); k.append("stop").attr("offset", "0%").attr("stop-color", x).attr("stop-opacity", 1), k.append("stop").attr("offset", "100%").attr("stop-color", u).attr("stop-opacity", 1); @@ -656,7 +656,7 @@ var Ge = /* @__PURE__ */ h(function() { M.node()?.appendChild(D); const v = D.getBBox(); b = gr(k.name, b, U, v, n), M.remove(), K.remove(), T.remove(); - }), re(l, q, !1, i), i.showBranches && fr(l, a, i, r), $r(l, q), re(l, q, !0, i), pe.insertTitle( + }), re(l, P, !1, i), i.showBranches && fr(l, a, i, r), $r(l, P), re(l, P, !0, i), pe.insertTitle( l, "gitTitleText", i.titleTopMargin ?? 0, diff --git a/src/wc-content-kit/public/mermaid/graph-DgQ8kYSl.js b/src/wc-content-kit/public/mermaid/graph-DgQ8kYSl.js deleted file mode 100644 index 3425519..0000000 --- a/src/wc-content-kit/public/mermaid/graph-DgQ8kYSl.js +++ /dev/null @@ -1,738 +0,0 @@ -import { aR as T, aS as C, aT as z, aU as R, aV as S, aW as k, aX as V, aY as L, aZ as K, a_ as j, a$ as ee, b0 as te, b1 as re, b2 as se, b3 as ne, b4 as ie, aH as ae, b5 as oe, b6 as ue, b7 as he, b8 as y, b9 as $, ba as v } from "./mermaid.core-Jw3znkh4.js"; -import { k as d, g as Y, s as de, e as ce, f as fe, h as ge, j as le, d as be, l as _e, b as pe, m, n as g, r as ye } from "./_baseUniq-B0FPZyMQ.js"; -function me(t, e) { - return t && T(e, d(e), t); -} -function je(t, e) { - return t && T(e, C(e), t); -} -function Te(t, e) { - return T(t, Y(t), e); -} -var Oe = Object.getOwnPropertySymbols, H = Oe ? function(t) { - for (var e = []; t; ) - ce(e, Y(t)), t = z(t); - return e; -} : de; -function Ae(t, e) { - return T(t, H(t), e); -} -function Ee(t) { - return fe(t, C, H); -} -var Ce = Object.prototype, Le = Ce.hasOwnProperty; -function we(t) { - var e = t.length, r = new t.constructor(e); - return e && typeof t[0] == "string" && Le.call(t, "index") && (r.index = t.index, r.input = t.input), r; -} -function Ne(t, e) { - var r = e ? R(t.buffer) : t.buffer; - return new t.constructor(r, t.byteOffset, t.byteLength); -} -var Fe = /\w*$/; -function Pe(t) { - var e = new t.constructor(t.source, Fe.exec(t)); - return e.lastIndex = t.lastIndex, e; -} -var I = S ? S.prototype : void 0, D = I ? I.valueOf : void 0; -function Se(t) { - return D ? Object(D.call(t)) : {}; -} -var $e = "[object Boolean]", ve = "[object Date]", Ie = "[object Map]", De = "[object Number]", Me = "[object RegExp]", Ue = "[object Set]", Ge = "[object String]", xe = "[object Symbol]", Be = "[object ArrayBuffer]", Re = "[object DataView]", Ve = "[object Float32Array]", Ke = "[object Float64Array]", Ye = "[object Int8Array]", He = "[object Int16Array]", We = "[object Int32Array]", qe = "[object Uint8Array]", Xe = "[object Uint8ClampedArray]", Ze = "[object Uint16Array]", Je = "[object Uint32Array]"; -function Qe(t, e, r) { - var s = t.constructor; - switch (e) { - case Be: - return R(t); - case $e: - case ve: - return new s(+t); - case Re: - return Ne(t, r); - case Ve: - case Ke: - case Ye: - case He: - case We: - case qe: - case Xe: - case Ze: - case Je: - return k(t, r); - case Ie: - return new s(); - case De: - case Ge: - return new s(t); - case Me: - return Pe(t); - case Ue: - return new s(); - case xe: - return Se(t); - } -} -var ze = "[object Map]"; -function ke(t) { - return V(t) && L(t) == ze; -} -var M = j && j.isMap, et = M ? K(M) : ke, tt = "[object Set]"; -function rt(t) { - return V(t) && L(t) == tt; -} -var U = j && j.isSet, st = U ? K(U) : rt, nt = 1, it = 2, at = 4, W = "[object Arguments]", ot = "[object Array]", ut = "[object Boolean]", ht = "[object Date]", dt = "[object Error]", q = "[object Function]", ct = "[object GeneratorFunction]", ft = "[object Map]", gt = "[object Number]", X = "[object Object]", lt = "[object RegExp]", bt = "[object Set]", _t = "[object String]", pt = "[object Symbol]", yt = "[object WeakMap]", mt = "[object ArrayBuffer]", jt = "[object DataView]", Tt = "[object Float32Array]", Ot = "[object Float64Array]", At = "[object Int8Array]", Et = "[object Int16Array]", Ct = "[object Int32Array]", Lt = "[object Uint8Array]", wt = "[object Uint8ClampedArray]", Nt = "[object Uint16Array]", Ft = "[object Uint32Array]", o = {}; -o[W] = o[ot] = o[mt] = o[jt] = o[ut] = o[ht] = o[Tt] = o[Ot] = o[At] = o[Et] = o[Ct] = o[ft] = o[gt] = o[X] = o[lt] = o[bt] = o[_t] = o[pt] = o[Lt] = o[wt] = o[Nt] = o[Ft] = !0; -o[dt] = o[q] = o[yt] = !1; -function O(t, e, r, s, n, a) { - var i, u = e & nt, h = e & it, J = e & at; - if (i !== void 0) - return i; - if (!ee(t)) - return t; - var w = ae(t); - if (w) { - if (i = we(t), !u) - return te(t, i); - } else { - var b = L(t), N = b == q || b == ct; - if (re(t)) - return se(t, u); - if (b == X || b == W || N && !n) { - if (i = h || N ? {} : ne(t), !u) - return h ? Ae(t, je(i, t)) : Te(t, me(i, t)); - } else { - if (!o[b]) - return n ? t : {}; - i = Qe(t, b, u); - } - } - a || (a = new ie()); - var F = a.get(t); - if (F) - return F; - a.set(t, i), st(t) ? t.forEach(function(c) { - i.add(O(c, e, r, c, t, a)); - }) : et(t) && t.forEach(function(c, f) { - i.set(f, O(c, e, r, f, t, a)); - }); - var Q = J ? h ? Ee : le : h ? C : d, P = w ? void 0 : Q(t); - return ge(P || t, function(c, f) { - P && (f = c, c = t[f]), oe(i, f, O(c, e, r, f, t, a)); - }), i; -} -function Pt(t, e) { - return be(e, function(r) { - return t[r]; - }); -} -function A(t) { - return t == null ? [] : Pt(t, d(t)); -} -function _(t) { - return t === void 0; -} -var St = ue(function(t) { - return _e(pe(t, 1, he, !0)); -}), $t = "\0", l = "\0", G = ""; -class Z { - /** - * @param {GraphOptions} [opts] - Graph options. - */ - 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 = y(void 0), this._defaultEdgeLabelFn = y(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[l] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {}; - } - /* === Graph functions ========= */ - /** - * - * @returns {boolean} `true` if the graph is [directed](https://en.wikipedia.org/wiki/Directed_graph). - * A directed graph treats the order of nodes in an edge as significant whereas an - * [undirected](https://en.wikipedia.org/wiki/Graph_(mathematics)#Undirected_graph) - * graph does not. - * This example demonstrates the difference: - * - * @example - * - * ```js - * var directed = new Graph({ directed: true }); - * directed.setEdge("a", "b", "my-label"); - * directed.edge("a", "b"); // returns "my-label" - * directed.edge("b", "a"); // returns undefined - * - * var undirected = new Graph({ directed: false }); - * undirected.setEdge("a", "b", "my-label"); - * undirected.edge("a", "b"); // returns "my-label" - * undirected.edge("b", "a"); // returns "my-label" - * ``` - */ - isDirected() { - return this._isDirected; - } - /** - * @returns {boolean} `true` if the graph is a multigraph. - */ - isMultigraph() { - return this._isMultigraph; - } - /** - * @returns {boolean} `true` if the graph is compound. - */ - isCompound() { - return this._isCompound; - } - /** - * Sets the label for the graph to `label`. - * - * @param {GraphLabel} label - Label for the graph. - * @returns {this} - */ - setGraph(e) { - return this._label = e, this; - } - /** - * @returns {GraphLabel | undefined} the currently assigned label for the graph. - * If no label has been assigned, returns `undefined`. - * - * @example - * - * ```js - * var g = new Graph(); - * g.graph(); // returns undefined - * g.setGraph("graph-label"); - * g.graph(); // returns "graph-label" - * ``` - */ - graph() { - return this._label; - } - /* === Node functions ========== */ - /** - * Sets a new default value that is assigned to nodes that are created without - * a label. - * - * @param {typeof this._defaultNodeLabelFn | NodeLabel} newDefault - If a function, - * it is called with the id of the node being created. - * Otherwise, it is assigned as the label directly. - * @returns {this} - */ - setDefaultNodeLabel(e) { - return $(e) || (e = y(e)), this._defaultNodeLabelFn = e, this; - } - /** - * @returns {number} the number of nodes in the graph. - */ - nodeCount() { - return this._nodeCount; - } - /** - * @returns {NodeID[]} the ids of the nodes in the graph. - * - * @remarks - * Use {@link node()} to get the label for each node. - * Takes `O(|V|)` time. - */ - nodes() { - return d(this._nodes); - } - /** - * @returns {NodeID[]} those nodes in the graph that have no in-edges. - * @remarks Takes `O(|V|)` time. - */ - sources() { - var e = this; - return m(this.nodes(), function(r) { - return v(e._in[r]); - }); - } - /** - * @returns {NodeID[]} those nodes in the graph that have no out-edges. - * @remarks Takes `O(|V|)` time. - */ - sinks() { - var e = this; - return m(this.nodes(), function(r) { - return v(e._out[r]); - }); - } - /** - * Invokes setNode method for each node in `vs` list. - * - * @param {Collection<NodeID | number>} vs - List of node IDs to create/set. - * @param {NodeLabel} [value] - If set, update all nodes with this value. - * @returns {this} - * @remarks Complexity: O(|names|). - */ - setNodes(e, r) { - var s = arguments, n = this; - return g(e, function(a) { - s.length > 1 ? n.setNode(a, r) : n.setNode(a); - }), this; - } - /** - * Creates or updates the value for the node `v` in the graph. - * - * @param {NodeID | number} v - ID of the node to create/set. - * @param {NodeLabel} [value] - If supplied, it is set as the value for the node. - * If not supplied and the node was created by this call then - * {@link setDefaultNodeLabel} will be used to set the node's value. - * @returns {this} the graph, allowing this to be chained with other functions. - * @remarks Takes `O(1)` time. - */ - setNode(e, r) { - return Object.prototype.hasOwnProperty.call(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = r), this) : (this._nodes[e] = arguments.length > 1 ? r : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = l, this._children[e] = {}, this._children[l][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this); - } - /** - * Gets the label of node with specified name. - * - * @param {NodeID | number} v - Node ID. - * @returns {NodeLabel | undefined} the label assigned to the node with the id `v` - * if it is in the graph. - * Otherwise returns `undefined`. - * @remarks Takes `O(1)` time. - */ - node(e) { - return this._nodes[e]; - } - /** - * Detects whether graph has a node with specified name or not. - * - * @param {NodeID | number} v - Node ID. - * @returns {boolean} Returns `true` the graph has a node with the id. - * @remarks Takes `O(1)` time. - */ - hasNode(e) { - return Object.prototype.hasOwnProperty.call(this._nodes, e); - } - /** - * Remove the node with the id `v` in the graph or do nothing if the node is - * not in the graph. - * - * If the node was removed this function also removes any incident edges. - * - * @param {NodeID | number} v - Node ID to remove. - * @returns {this} the graph, allowing this to be chained with other functions. - * @remarks Takes `O(|E|)` time. - */ - removeNode(e) { - if (Object.prototype.hasOwnProperty.call(this._nodes, e)) { - var r = (s) => this.removeEdge(this._edgeObjs[s]); - delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], g(this.children(e), (s) => { - this.setParent(s); - }), delete this._children[e]), g(d(this._in[e]), r), delete this._in[e], delete this._preds[e], g(d(this._out[e]), r), delete this._out[e], delete this._sucs[e], --this._nodeCount; - } - return this; - } - /** - * Sets the parent for `v` to `parent` if it is defined or removes the parent - * for `v` if `parent` is undefined. - * - * @param {NodeID | number} v - Node ID to set the parent for. - * @param {NodeID | number} [parent] - Parent node ID. If not defined, removes the parent. - * @returns {this} the graph, allowing this to be chained with other functions. - * @throws if the graph is not compound. - * @throws if setting the parent would create a cycle. - * @remarks Takes `O(1)` time. - */ - setParent(e, r) { - if (!this._isCompound) - throw new Error("Cannot set parent in a non-compound graph"); - if (_(r)) - r = l; - else { - r += ""; - for (var s = r; !_(s); s = this.parent(s)) - if (s === e) - throw new Error("Setting " + r + " as parent of " + e + " would create a cycle"); - this.setNode(r); - } - return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = r, this._children[r][e] = !0, this; - } - /** - * @private - * @param {NodeID | number} v - Node ID. - */ - _removeFromParentsChildList(e) { - delete this._children[this._parent[e]][e]; - } - /** - * Get parent node for node `v`. - * - * @param {NodeID | number} v - Node ID. - * @returns {NodeID | undefined} the node that is a parent of node `v` - * or `undefined` if node `v` does not have a parent or is not a member of - * the graph. - * Always returns `undefined` for graphs that are not compound. - * @remarks Takes `O(1)` time. - */ - parent(e) { - if (this._isCompound) { - var r = this._parent[e]; - if (r !== l) - return r; - } - } - /** - * Gets list of direct children of node v. - * - * @param {NodeID | number} [v] - Node ID. If not specified, gets nodes - * with no parent (top-level nodes). - * @returns {NodeID[] | undefined} all nodes that are children of node `v` or - * `undefined` if node `v` is not in the graph. - * Always returns `[]` for graphs that are not compound. - * @remarks Takes `O(|V|)` time. - */ - children(e) { - if (_(e) && (e = l), this._isCompound) { - var r = this._children[e]; - if (r) - return d(r); - } else { - if (e === l) - return this.nodes(); - if (this.hasNode(e)) - return []; - } - } - /** - * @param {NodeID | number} v - Node ID. - * @returns {NodeID[] | undefined} all nodes that are predecessors of the - * specified node or `undefined` if node `v` is not in the graph. - * @remarks - * Behavior is undefined for undirected graphs - use {@link neighbors} instead. - * Takes `O(|V|)` time. - */ - predecessors(e) { - var r = this._preds[e]; - if (r) - return d(r); - } - /** - * @param {NodeID | number} v - Node ID. - * @returns {NodeID[] | undefined} all nodes that are successors of the - * specified node or `undefined` if node `v` is not in the graph. - * @remarks - * Behavior is undefined for undirected graphs - use {@link neighbors} instead. - * Takes `O(|V|)` time. - */ - successors(e) { - var r = this._sucs[e]; - if (r) - return d(r); - } - /** - * @param {NodeID | number} v - Node ID. - * @returns {NodeID[] | undefined} all nodes that are predecessors or - * successors of the specified node - * or `undefined` if node `v` is not in the graph. - * @remarks Takes `O(|V|)` time. - */ - neighbors(e) { - var r = this.predecessors(e); - if (r) - return St(r, this.successors(e)); - } - /** - * @param {NodeID | number} v - Node ID. - * @returns {boolean} True if the node is a leaf (has no successors), false otherwise. - */ - isLeaf(e) { - var r; - return this.isDirected() ? r = this.successors(e) : r = this.neighbors(e), r.length === 0; - } - /** - * Creates new graph with nodes filtered via `filter`. - * Edges incident to rejected node - * are also removed. - * - * In case of compound graph, if parent is rejected by `filter`, - * than all its children are rejected too. - - * @param {(v: NodeID) => boolean} filter - Function that returns `true` for nodes to keep. - * @returns {Graph<GraphLabel, NodeLabel, EdgeLabel>} A new graph containing only the nodes for which `filter` returns `true`. - * @remarks Average-case complexity: O(|E|+|V|). - */ - filterNodes(e) { - var r = new this.constructor({ - directed: this._isDirected, - multigraph: this._isMultigraph, - compound: this._isCompound - }); - r.setGraph(this.graph()); - var s = this; - g(this._nodes, function(i, u) { - e(u) && r.setNode(u, i); - }), g(this._edgeObjs, function(i) { - r.hasNode(i.v) && r.hasNode(i.w) && r.setEdge(i, s.edge(i)); - }); - var n = {}; - function a(i) { - var u = s.parent(i); - return u === void 0 || r.hasNode(u) ? (n[i] = u, u) : u in n ? n[u] : a(u); - } - return this._isCompound && g(r.nodes(), function(i) { - r.setParent(i, a(i)); - }), r; - } - /* === Edge functions ========== */ - /** - * Sets a new default value that is assigned to edges that are created without - * a label. - * - * @param {typeof this._defaultEdgeLabelFn | EdgeLabel} newDefault - If a function, - * it is called with the parameters `(v, w, name)`. - * Otherwise, it is assigned as the label directly. - * @returns {this} - */ - setDefaultEdgeLabel(e) { - return $(e) || (e = y(e)), this._defaultEdgeLabelFn = e, this; - } - /** - * @returns {number} the number of edges in the graph. - * @remarks Complexity: O(1). - */ - edgeCount() { - return this._edgeCount; - } - /** - * Gets edges of the graph. - * - * @returns {EdgeObj[]} the {@link EdgeObj} for each edge in the graph. - * - * @remarks - * In case of compound graph subgraphs are not considered. - * Use {@link edge()} to get the label for each edge. - * Takes `O(|E|)` time. - */ - edges() { - return A(this._edgeObjs); - } - /** - * Establish an edges path over the nodes in nodes list. - * - * If some edge is already exists, it will update its label, otherwise it will - * create an edge between pair of nodes with label provided or default label - * if no label provided. - * - * @param {Collection<NodeID>} vs - List of node IDs to create edges between. - * @param {EdgeLabel} [value] - If set, update all edges with this value. - * @returns {this} - * @remarks Complexity: O(|nodes|). - */ - setPath(e, r) { - var s = this, n = arguments; - return ye(e, function(a, i) { - return n.length > 1 ? s.setEdge(a, i, r) : s.setEdge(a, i), i; - }), this; - } - /** - * Creates or updates the label for the edge (`v`, `w`) with the optionally - * supplied `name`. - * - * @overload - * @param {EdgeObj} arg0 - Edge object. - * @param {EdgeLabel} [value] - If supplied, it is set as the label for the edge. - * If not supplied and the edge was created by this call then - * {@link setDefaultEdgeLabel} will be used to assign the edge's label. - * @returns {this} the graph, allowing this to be chained with other functions. - * @remarks Takes `O(1)` time. - */ - /** - * Creates or updates the label for the edge (`v`, `w`) with the optionally - * supplied `name`. - * - * @overload - * @param {NodeID | number} v - Source node ID. Number values will be coerced to strings. - * @param {NodeID | number} w - Target node ID. Number values will be coerced to strings. - * @param {EdgeLabel} [value] - If supplied, it is set as the label for the edge. - * If not supplied and the edge was created by this call then - * {@link setDefaultEdgeLabel} will be used to assign the edge's label. - * @param {string | number} [name] - Edge name. Only useful with multigraphs. - * @returns {this} the graph, allowing this to be chained with other functions. - * @remarks Takes `O(1)` time. - */ - setEdge() { - var e, r, s, n, a = !1, i = arguments[0]; - typeof i == "object" && i !== null && "v" in i ? (e = i.v, r = i.w, s = i.name, arguments.length === 2 && (n = arguments[1], a = !0)) : (e = i, r = arguments[1], s = arguments[3], arguments.length > 2 && (n = arguments[2], a = !0)), e = "" + e, r = "" + r, _(s) || (s = "" + s); - var u = p(this._isDirected, e, r, s); - if (Object.prototype.hasOwnProperty.call(this._edgeLabels, u)) - return a && (this._edgeLabels[u] = n), this; - if (!_(s) && !this._isMultigraph) - throw new Error("Cannot set a named edge when isMultigraph = false"); - this.setNode(e), this.setNode(r), this._edgeLabels[u] = a ? n : this._defaultEdgeLabelFn(e, r, s); - var h = vt(this._isDirected, e, r, s); - return e = h.v, r = h.w, Object.freeze(h), this._edgeObjs[u] = h, x(this._preds[r], e), x(this._sucs[e], r), this._in[r][u] = h, this._out[e][u] = h, this._edgeCount++, this; - } - /** - * Gets the label for the specified edge. - * - * @overload - * @param {EdgeObj} v - Edge object. - * @returns {EdgeLabel | undefined} the label for the edge (`v`, `w`) if the - * graph has an edge between `v` and `w` with the optional `name`. - * Returned `undefined` if there is no such edge in the graph. - * @remarks - * `v` and `w` can be interchanged for undirected graphs. - * Takes `O(1)` time. - */ - /** - * Gets the label for the specified edge. - * - * @overload - * @param {NodeID | number} v - Source node ID. - * @param {NodeID | number} w - Target node ID. - * @param {string | number} [name] - Edge name. Only useful with multigraphs. - * @returns {EdgeLabel | undefined} the label for the edge (`v`, `w`) if the - * graph has an edge between `v` and `w` with the optional `name`. - * Returned `undefined` if there is no such edge in the graph. - * @remarks - * `v` and `w` can be interchanged for undirected graphs. - * Takes `O(1)` time. - */ - edge(e, r, s) { - var n = arguments.length === 1 ? E(this._isDirected, arguments[0]) : p(this._isDirected, e, r, s); - return this._edgeLabels[n]; - } - /** - * Detects whether the graph contains specified edge or not. - * - * @overload - * @param {EdgeObj} v - Edge object. - * @returns {boolean} `true` if the graph has an edge between `v` and `w` - * with the optional `name`. - * @remarks - * `v` and `w` can be interchanged for undirected graphs. - * No subgraphs are considered. - * Takes `O(1)` time. - */ - /** - * Detects whether the graph contains specified edge or not. - * - * @overload - * @param {NodeID | number} v - Source node ID. - * @param {NodeID | number} w - Target node ID. - * @param {string | number} [name] - Edge name. Only useful with multigraphs. - * @returns {boolean} `true` if the graph has an edge between `v` and `w` - * with the optional `name`. - * @remarks - * `v` and `w` can be interchanged for undirected graphs. - * No subgraphs are considered. - * Takes `O(1)` time. - */ - hasEdge(e, r, s) { - var n = arguments.length === 1 ? E(this._isDirected, arguments[0]) : p(this._isDirected, e, r, s); - return Object.prototype.hasOwnProperty.call(this._edgeLabels, n); - } - /** - * Removes the edge (`v`, `w`) if the graph has an edge between `v` and `w` - * with the optional `name`. If not this function does nothing. - * - * @overload - * @param {EdgeObj} v - Edge object. - * @returns {this} - * @remarks - * `v` and `w` can be interchanged for undirected graphs. - * No subgraphs are considered. - * Takes `O(1)` time. - */ - /** - * Removes the edge (`v`, `w`) if the graph has an edge between `v` and `w` - * with the optional `name`. If not this function does nothing. - * - * @overload - * @param {NodeID | number} v - Source node ID. - * @param {NodeID | number} w - Target node ID. - * @param {string | number} [name] - Edge name. Only useful with multigraphs. - * @returns {this} - * @remarks - * `v` and `w` can be interchanged for undirected graphs. - * Takes `O(1)` time. - */ - removeEdge(e, r, s) { - var n = arguments.length === 1 ? E(this._isDirected, arguments[0]) : p(this._isDirected, e, r, s), a = this._edgeObjs[n]; - return a && (e = a.v, r = a.w, delete this._edgeLabels[n], delete this._edgeObjs[n], B(this._preds[r], e), B(this._sucs[e], r), delete this._in[r][n], delete this._out[e][n], this._edgeCount--), this; - } - /** - * @param {NodeID | number} v - Target node ID. - * @param {NodeID | number} [u] - Optionally filters edges down to just those - * coming from node `u`. - * @returns {EdgeObj[] | undefined} all edges that point to the node `v`. - * Returns `undefined` if node `v` is not in the graph. - * @remarks - * Behavior is undefined for undirected graphs - use {@link nodeEdges} instead. - * Takes `O(|E|)` time. - */ - inEdges(e, r) { - var s = this._in[e]; - if (s) { - var n = A(s); - return r ? m(n, function(a) { - return a.v === r; - }) : n; - } - } - /** - * @param {NodeID | number} v - Target node ID. - * @param {NodeID | number} [w] - Optionally filters edges down to just those - * that point to `w`. - * @returns {EdgeObj[] | undefined} all edges that point to the node `v`. - * Returns `undefined` if node `v` is not in the graph. - * @remarks - * Behavior is undefined for undirected graphs - use {@link nodeEdges} instead. - * Takes `O(|E|)` time. - */ - outEdges(e, r) { - var s = this._out[e]; - if (s) { - var n = A(s); - return r ? m(n, function(a) { - return a.w === r; - }) : n; - } - } - /** - * @param {NodeID | number} v - Target Node ID. - * @param {NodeID | number} [w] - If set, filters those edges down to just - * those between nodes `v` and `w` regardless of direction - * @returns {EdgeObj[] | undefined} all edges to or from node `v` regardless - * of direction. Returns `undefined` if node `v` is not in the graph. - * @remarks Takes `O(|E|)` time. - */ - nodeEdges(e, r) { - var s = this.inEdges(e, r); - if (s) - return s.concat(this.outEdges(e, r)); - } -} -Z.prototype._nodeCount = 0; -Z.prototype._edgeCount = 0; -function x(t, e) { - t[e] ? t[e]++ : t[e] = 1; -} -function B(t, e) { - --t[e] || delete t[e]; -} -function p(t, e, r, s) { - var n = "" + e, a = "" + r; - if (!t && n > a) { - var i = n; - n = a, a = i; - } - return n + G + a + G + (_(s) ? $t : s); -} -function vt(t, e, r, s) { - var n = "" + e, a = "" + r; - if (!t && n > a) { - var i = n; - n = a, a = i; - } - var u = { v: n, w: a }; - return s && (u.name = s), u; -} -function E(t, e) { - return p(t, e.v, e.w, e.name); -} -export { - Z as G, - O as b, - _ as i, - A as v -}; diff --git a/src/wc-content-kit/public/mermaid/graph-yNRfypD2.js b/src/wc-content-kit/public/mermaid/graph-yNRfypD2.js new file mode 100644 index 0000000..06ca4e4 --- /dev/null +++ b/src/wc-content-kit/public/mermaid/graph-yNRfypD2.js @@ -0,0 +1,1545 @@ +var Ze = typeof global == "object" && global && global.Object === Object && global, pt = typeof self == "object" && self && self.Object === Object && self, w = Ze || pt || Function("return this")(), y = w.Symbol, We = Object.prototype, _t = We.hasOwnProperty, bt = We.toString, D = y ? y.toStringTag : void 0; +function yt(e) { + var t = _t.call(e, D), r = e[D]; + try { + e[D] = void 0; + var n = !0; + } catch { + } + var i = bt.call(e); + return n && (t ? e[D] = r : delete e[D]), i; +} +var vt = Object.prototype, Ot = vt.toString; +function mt(e) { + return Ot.call(e); +} +var wt = "[object Null]", Tt = "[object Undefined]", Oe = y ? y.toStringTag : void 0; +function M(e) { + return e == null ? e === void 0 ? Tt : wt : Oe && Oe in Object(e) ? yt(e) : mt(e); +} +function j(e) { + return e != null && typeof e == "object"; +} +var At = "[object Symbol]"; +function he(e) { + return typeof e == "symbol" || j(e) && M(e) == At; +} +function Je(e, t) { + for (var r = -1, n = e == null ? 0 : e.length, i = Array(n); ++r < n; ) + i[r] = t(e[r], r, e); + return i; +} +var g = Array.isArray, me = y ? y.prototype : void 0, we = me ? me.toString : void 0; +function Qe(e) { + if (typeof e == "string") + return e; + if (g(e)) + return Je(e, Qe) + ""; + if (he(e)) + return we ? we.call(e) : ""; + var t = e + ""; + return t == "0" && 1 / e == -1 / 0 ? "-0" : t; +} +function ce(e) { + var t = typeof e; + return e != null && (t == "object" || t == "function"); +} +function J(e) { + return e; +} +var Pt = "[object AsyncFunction]", Et = "[object Function]", $t = "[object GeneratorFunction]", St = "[object Proxy]"; +function Z(e) { + if (!ce(e)) + return !1; + var t = M(e); + return t == Et || t == $t || t == Pt || t == St; +} +var re = w["__core-js_shared__"], Te = (function() { + var e = /[^.]+$/.exec(re && re.keys && re.keys.IE_PROTO || ""); + return e ? "Symbol(src)_1." + e : ""; +})(); +function Ct(e) { + return !!Te && Te in e; +} +var jt = Function.prototype, xt = jt.toString; +function I(e) { + if (e != null) { + try { + return xt.call(e); + } catch { + } + try { + return e + ""; + } catch { + } + } + return ""; +} +var It = /[\\^$.*+?()[\]{}|]/g, Lt = /^\[object .+?Constructor\]$/, Rt = Function.prototype, Nt = Object.prototype, Mt = Rt.toString, Dt = Nt.hasOwnProperty, Ft = RegExp( + "^" + Mt.call(Dt).replace(It, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +); +function Gt(e) { + if (!ce(e) || Ct(e)) + return !1; + var t = Z(e) ? Ft : Lt; + return t.test(I(e)); +} +function Ut(e, t) { + return e?.[t]; +} +function L(e, t) { + var r = Ut(e, t); + return Gt(r) ? r : void 0; +} +var oe = L(w, "WeakMap"); +function zt(e, t, r) { + switch (r.length) { + case 0: + return e.call(t); + case 1: + return e.call(t, r[0]); + case 2: + return e.call(t, r[0], r[1]); + case 3: + return e.call(t, r[0], r[1], r[2]); + } + return e.apply(t, r); +} +function Ht() { +} +var Bt = 800, Kt = 16, qt = Date.now; +function Xt(e) { + var t = 0, r = 0; + return function() { + var n = qt(), i = Kt - (n - r); + if (r = n, i > 0) { + if (++t >= Bt) + return arguments[0]; + } else + t = 0; + return e.apply(void 0, arguments); + }; +} +function F(e) { + return function() { + return e; + }; +} +var Ae = (function() { + try { + var e = L(Object, "defineProperty"); + return e({}, "", {}), e; + } catch { + } +})(), Yt = Ae ? function(e, t) { + return Ae(e, "toString", { + configurable: !0, + enumerable: !1, + value: F(t), + writable: !0 + }); +} : J, Zt = Xt(Yt); +function Wt(e, t) { + for (var r = -1, n = e == null ? 0 : e.length; ++r < n && t(e[r], r, e) !== !1; ) + ; + return e; +} +function Jt(e, t, r, n) { + for (var i = e.length, s = r + -1; ++s < i; ) + if (t(e[s], s, e)) + return s; + return -1; +} +function Qt(e) { + return e !== e; +} +function Vt(e, t, r) { + for (var n = r - 1, i = e.length; ++n < i; ) + if (e[n] === t) + return n; + return -1; +} +function kt(e, t, r) { + return t === t ? Vt(e, t, r) : Jt(e, Qt, r); +} +function er(e, t) { + var r = e == null ? 0 : e.length; + return !!r && kt(e, t, 0) > -1; +} +var tr = 9007199254740991, rr = /^(?:0|[1-9]\d*)$/; +function Ve(e, t) { + var r = typeof e; + return t = t ?? tr, !!t && (r == "number" || r != "symbol" && rr.test(e)) && e > -1 && e % 1 == 0 && e < t; +} +function ke(e, t) { + return e === t || e !== e && t !== t; +} +var Pe = Math.max; +function nr(e, t, r) { + return t = Pe(t === void 0 ? e.length - 1 : t, 0), function() { + for (var n = arguments, i = -1, s = Pe(n.length - t, 0), a = Array(s); ++i < s; ) + a[i] = n[t + i]; + i = -1; + for (var o = Array(t + 1); ++i < t; ) + o[i] = n[i]; + return o[t] = r(a), zt(e, this, o); + }; +} +function ir(e, t) { + return Zt(nr(e, t, J), e + ""); +} +var sr = 9007199254740991; +function le(e) { + return typeof e == "number" && e > -1 && e % 1 == 0 && e <= sr; +} +function Q(e) { + return e != null && le(e.length) && !Z(e); +} +var ar = Object.prototype; +function et(e) { + var t = e && e.constructor, r = typeof t == "function" && t.prototype || ar; + return e === r; +} +function or(e, t) { + for (var r = -1, n = Array(e); ++r < e; ) + n[r] = t(r); + return n; +} +var ur = "[object Arguments]"; +function Ee(e) { + return j(e) && M(e) == ur; +} +var tt = Object.prototype, fr = tt.hasOwnProperty, hr = tt.propertyIsEnumerable, V = Ee(/* @__PURE__ */ (function() { + return arguments; +})()) ? Ee : function(e) { + return j(e) && fr.call(e, "callee") && !hr.call(e, "callee"); +}; +function cr() { + return !1; +} +var rt = typeof exports == "object" && exports && !exports.nodeType && exports, $e = rt && typeof module == "object" && module && !module.nodeType && module, lr = $e && $e.exports === rt, Se = lr ? w.Buffer : void 0, dr = Se ? Se.isBuffer : void 0, W = dr || cr, gr = "[object Arguments]", pr = "[object Array]", _r = "[object Boolean]", br = "[object Date]", yr = "[object Error]", vr = "[object Function]", Or = "[object Map]", mr = "[object Number]", wr = "[object Object]", Tr = "[object RegExp]", Ar = "[object Set]", Pr = "[object String]", Er = "[object WeakMap]", $r = "[object ArrayBuffer]", Sr = "[object DataView]", Cr = "[object Float32Array]", jr = "[object Float64Array]", xr = "[object Int8Array]", Ir = "[object Int16Array]", Lr = "[object Int32Array]", Rr = "[object Uint8Array]", Nr = "[object Uint8ClampedArray]", Mr = "[object Uint16Array]", Dr = "[object Uint32Array]", h = {}; +h[Cr] = h[jr] = h[xr] = h[Ir] = h[Lr] = h[Rr] = h[Nr] = h[Mr] = h[Dr] = !0; +h[gr] = h[pr] = h[$r] = h[_r] = h[Sr] = h[br] = h[yr] = h[vr] = h[Or] = h[mr] = h[wr] = h[Tr] = h[Ar] = h[Pr] = h[Er] = !1; +function Fr(e) { + return j(e) && le(e.length) && !!h[M(e)]; +} +function Gr(e) { + return function(t) { + return e(t); + }; +} +var nt = typeof exports == "object" && exports && !exports.nodeType && exports, U = nt && typeof module == "object" && module && !module.nodeType && module, Ur = U && U.exports === nt, ne = Ur && Ze.process, Ce = (function() { + try { + var e = U && U.require && U.require("util").types; + return e || ne && ne.binding && ne.binding("util"); + } catch { + } +})(), je = Ce && Ce.isTypedArray, de = je ? Gr(je) : Fr, zr = Object.prototype, Hr = zr.hasOwnProperty; +function Br(e, t) { + var r = g(e), n = !r && V(e), i = !r && !n && W(e), s = !r && !n && !i && de(e), a = r || n || i || s, o = a ? or(e.length, String) : [], u = o.length; + for (var f in e) + (t || Hr.call(e, f)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode. + (f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. + i && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. + s && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties. + Ve(f, u))) && o.push(f); + return o; +} +function Kr(e, t) { + return function(r) { + return e(t(r)); + }; +} +var qr = Kr(Object.keys, Object), Xr = Object.prototype, Yr = Xr.hasOwnProperty; +function it(e) { + if (!et(e)) + return qr(e); + var t = []; + for (var r in Object(e)) + Yr.call(e, r) && r != "constructor" && t.push(r); + return t; +} +function b(e) { + return Q(e) ? Br(e) : it(e); +} +var Zr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Wr = /^\w*$/; +function ge(e, t) { + if (g(e)) + return !1; + var r = typeof e; + return r == "number" || r == "symbol" || r == "boolean" || e == null || he(e) ? !0 : Wr.test(e) || !Zr.test(e) || t != null && e in Object(t); +} +var z = L(Object, "create"); +function Jr() { + this.__data__ = z ? z(null) : {}, this.size = 0; +} +function Qr(e) { + var t = this.has(e) && delete this.__data__[e]; + return this.size -= t ? 1 : 0, t; +} +var Vr = "__lodash_hash_undefined__", kr = Object.prototype, en = kr.hasOwnProperty; +function tn(e) { + var t = this.__data__; + if (z) { + var r = t[e]; + return r === Vr ? void 0 : r; + } + return en.call(t, e) ? t[e] : void 0; +} +var rn = Object.prototype, nn = rn.hasOwnProperty; +function sn(e) { + var t = this.__data__; + return z ? t[e] !== void 0 : nn.call(t, e); +} +var an = "__lodash_hash_undefined__"; +function on(e, t) { + var r = this.__data__; + return this.size += this.has(e) ? 0 : 1, r[e] = z && t === void 0 ? an : t, this; +} +function x(e) { + var t = -1, r = e == null ? 0 : e.length; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]); + } +} +x.prototype.clear = Jr; +x.prototype.delete = Qr; +x.prototype.get = tn; +x.prototype.has = sn; +x.prototype.set = on; +function un() { + this.__data__ = [], this.size = 0; +} +function k(e, t) { + for (var r = e.length; r--; ) + if (ke(e[r][0], t)) + return r; + return -1; +} +var fn = Array.prototype, hn = fn.splice; +function cn(e) { + var t = this.__data__, r = k(t, e); + if (r < 0) + return !1; + var n = t.length - 1; + return r == n ? t.pop() : hn.call(t, r, 1), --this.size, !0; +} +function ln(e) { + var t = this.__data__, r = k(t, e); + return r < 0 ? void 0 : t[r][1]; +} +function dn(e) { + return k(this.__data__, e) > -1; +} +function gn(e, t) { + var r = this.__data__, n = k(r, e); + return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this; +} +function T(e) { + var t = -1, r = e == null ? 0 : e.length; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]); + } +} +T.prototype.clear = un; +T.prototype.delete = cn; +T.prototype.get = ln; +T.prototype.has = dn; +T.prototype.set = gn; +var H = L(w, "Map"); +function pn() { + this.size = 0, this.__data__ = { + hash: new x(), + map: new (H || T)(), + string: new x() + }; +} +function _n(e) { + var t = typeof e; + return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; +} +function ee(e, t) { + var r = e.__data__; + return _n(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map; +} +function bn(e) { + var t = ee(this, e).delete(e); + return this.size -= t ? 1 : 0, t; +} +function yn(e) { + return ee(this, e).get(e); +} +function vn(e) { + return ee(this, e).has(e); +} +function On(e, t) { + var r = ee(this, e), n = r.size; + return r.set(e, t), this.size += r.size == n ? 0 : 1, this; +} +function A(e) { + var t = -1, r = e == null ? 0 : e.length; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]); + } +} +A.prototype.clear = pn; +A.prototype.delete = bn; +A.prototype.get = yn; +A.prototype.has = vn; +A.prototype.set = On; +var mn = "Expected a function"; +function pe(e, t) { + if (typeof e != "function" || t != null && typeof t != "function") + throw new TypeError(mn); + var r = function() { + var n = arguments, i = t ? t.apply(this, n) : n[0], s = r.cache; + if (s.has(i)) + return s.get(i); + var a = e.apply(this, n); + return r.cache = s.set(i, a) || s, a; + }; + return r.cache = new (pe.Cache || A)(), r; +} +pe.Cache = A; +var wn = 500; +function Tn(e) { + var t = pe(e, function(n) { + return r.size === wn && r.clear(), n; + }), r = t.cache; + return t; +} +var An = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Pn = /\\(\\)?/g, En = Tn(function(e) { + var t = []; + return e.charCodeAt(0) === 46 && t.push(""), e.replace(An, function(r, n, i, s) { + t.push(i ? s.replace(Pn, "$1") : n || r); + }), t; +}); +function $n(e) { + return e == null ? "" : Qe(e); +} +function st(e, t) { + return g(e) ? e : ge(e, t) ? [e] : En($n(e)); +} +function te(e) { + if (typeof e == "string" || he(e)) + return e; + var t = e + ""; + return t == "0" && 1 / e == -1 / 0 ? "-0" : t; +} +function at(e, t) { + t = st(t, e); + for (var r = 0, n = t.length; e != null && r < n; ) + e = e[te(t[r++])]; + return r && r == n ? e : void 0; +} +function Sn(e, t, r) { + var n = e == null ? void 0 : at(e, t); + return n === void 0 ? r : n; +} +function ot(e, t) { + for (var r = -1, n = t.length, i = e.length; ++r < n; ) + e[i + r] = t[r]; + return e; +} +var xe = y ? y.isConcatSpreadable : void 0; +function Cn(e) { + return g(e) || V(e) || !!(xe && e && e[xe]); +} +function jn(e, t, r, n, i) { + var s = -1, a = e.length; + for (r || (r = Cn), i || (i = []); ++s < a; ) { + var o = e[s]; + r(o) ? ot(i, o) : n || (i[i.length] = o); + } + return i; +} +function xn(e, t, r, n) { + var i = -1, s = e == null ? 0 : e.length; + for (n && s && (r = e[++i]); ++i < s; ) + r = t(r, e[i], i, e); + return r; +} +function In() { + this.__data__ = new T(), this.size = 0; +} +function Ln(e) { + var t = this.__data__, r = t.delete(e); + return this.size = t.size, r; +} +function Rn(e) { + return this.__data__.get(e); +} +function Nn(e) { + return this.__data__.has(e); +} +var Mn = 200; +function Dn(e, t) { + var r = this.__data__; + if (r instanceof T) { + var n = r.__data__; + if (!H || n.length < Mn - 1) + return n.push([e, t]), this.size = ++r.size, this; + r = this.__data__ = new A(n); + } + return r.set(e, t), this.size = r.size, this; +} +function m(e) { + var t = this.__data__ = new T(e); + this.size = t.size; +} +m.prototype.clear = In; +m.prototype.delete = Ln; +m.prototype.get = Rn; +m.prototype.has = Nn; +m.prototype.set = Dn; +function ut(e, t) { + for (var r = -1, n = e == null ? 0 : e.length, i = 0, s = []; ++r < n; ) { + var a = e[r]; + t(a, r, e) && (s[i++] = a); + } + return s; +} +function Fn() { + return []; +} +var Gn = Object.prototype, Un = Gn.propertyIsEnumerable, Ie = Object.getOwnPropertySymbols, zn = Ie ? function(e) { + return e == null ? [] : (e = Object(e), ut(Ie(e), function(t) { + return Un.call(e, t); + })); +} : Fn; +function Hn(e, t, r) { + var n = t(e); + return g(e) ? n : ot(n, r(e)); +} +function Le(e) { + return Hn(e, b, zn); +} +var ue = L(w, "DataView"), fe = L(w, "Promise"), N = L(w, "Set"), Re = "[object Map]", Bn = "[object Object]", Ne = "[object Promise]", Me = "[object Set]", De = "[object WeakMap]", Fe = "[object DataView]", Kn = I(ue), qn = I(H), Xn = I(fe), Yn = I(N), Zn = I(oe), O = M; +(ue && O(new ue(new ArrayBuffer(1))) != Fe || H && O(new H()) != Re || fe && O(fe.resolve()) != Ne || N && O(new N()) != Me || oe && O(new oe()) != De) && (O = function(e) { + var t = M(e), r = t == Bn ? e.constructor : void 0, n = r ? I(r) : ""; + if (n) + switch (n) { + case Kn: + return Fe; + case qn: + return Re; + case Xn: + return Ne; + case Yn: + return Me; + case Zn: + return De; + } + return t; +}); +var Ge = w.Uint8Array, Wn = "__lodash_hash_undefined__"; +function Jn(e) { + return this.__data__.set(e, Wn), this; +} +function Qn(e) { + return this.__data__.has(e); +} +function B(e) { + var t = -1, r = e == null ? 0 : e.length; + for (this.__data__ = new A(); ++t < r; ) + this.add(e[t]); +} +B.prototype.add = B.prototype.push = Jn; +B.prototype.has = Qn; +function Vn(e, t) { + for (var r = -1, n = e == null ? 0 : e.length; ++r < n; ) + if (t(e[r], r, e)) + return !0; + return !1; +} +function ft(e, t) { + return e.has(t); +} +var kn = 1, ei = 2; +function ht(e, t, r, n, i, s) { + var a = r & kn, o = e.length, u = t.length; + if (o != u && !(a && u > o)) + return !1; + var f = s.get(e), d = s.get(t); + if (f && d) + return f == t && d == e; + var c = -1, l = !0, v = r & ei ? new B() : void 0; + for (s.set(e, t), s.set(t, e); ++c < o; ) { + var p = e[c], _ = t[c]; + if (n) + var P = a ? n(_, p, c, t, e, s) : n(p, _, c, e, t, s); + if (P !== void 0) { + if (P) + continue; + l = !1; + break; + } + if (v) { + if (!Vn(t, function(E, $) { + if (!ft(v, $) && (p === E || i(p, E, r, n, s))) + return v.push($); + })) { + l = !1; + break; + } + } else if (!(p === _ || i(p, _, r, n, s))) { + l = !1; + break; + } + } + return s.delete(e), s.delete(t), l; +} +function ti(e) { + var t = -1, r = Array(e.size); + return e.forEach(function(n, i) { + r[++t] = [i, n]; + }), r; +} +function _e(e) { + var t = -1, r = Array(e.size); + return e.forEach(function(n) { + r[++t] = n; + }), r; +} +var ri = 1, ni = 2, ii = "[object Boolean]", si = "[object Date]", ai = "[object Error]", oi = "[object Map]", ui = "[object Number]", fi = "[object RegExp]", hi = "[object Set]", ci = "[object String]", li = "[object Symbol]", di = "[object ArrayBuffer]", gi = "[object DataView]", Ue = y ? y.prototype : void 0, ie = Ue ? Ue.valueOf : void 0; +function pi(e, t, r, n, i, s, a) { + switch (r) { + case gi: + if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) + return !1; + e = e.buffer, t = t.buffer; + case di: + return !(e.byteLength != t.byteLength || !s(new Ge(e), new Ge(t))); + case ii: + case si: + case ui: + return ke(+e, +t); + case ai: + return e.name == t.name && e.message == t.message; + case fi: + case ci: + return e == t + ""; + case oi: + var o = ti; + case hi: + var u = n & ri; + if (o || (o = _e), e.size != t.size && !u) + return !1; + var f = a.get(e); + if (f) + return f == t; + n |= ni, a.set(e, t); + var d = ht(o(e), o(t), n, i, s, a); + return a.delete(e), d; + case li: + if (ie) + return ie.call(e) == ie.call(t); + } + return !1; +} +var _i = 1, bi = Object.prototype, yi = bi.hasOwnProperty; +function vi(e, t, r, n, i, s) { + var a = r & _i, o = Le(e), u = o.length, f = Le(t), d = f.length; + if (u != d && !a) + return !1; + for (var c = u; c--; ) { + var l = o[c]; + if (!(a ? l in t : yi.call(t, l))) + return !1; + } + var v = s.get(e), p = s.get(t); + if (v && p) + return v == t && p == e; + var _ = !0; + s.set(e, t), s.set(t, e); + for (var P = a; ++c < u; ) { + l = o[c]; + var E = e[l], $ = t[l]; + if (n) + var ve = a ? n($, E, l, t, e, s) : n(E, $, l, e, t, s); + if (!(ve === void 0 ? E === $ || i(E, $, r, n, s) : ve)) { + _ = !1; + break; + } + P || (P = l == "constructor"); + } + if (_ && !P) { + var K = e.constructor, q = t.constructor; + K != q && "constructor" in e && "constructor" in t && !(typeof K == "function" && K instanceof K && typeof q == "function" && q instanceof q) && (_ = !1); + } + return s.delete(e), s.delete(t), _; +} +var Oi = 1, ze = "[object Arguments]", He = "[object Array]", X = "[object Object]", mi = Object.prototype, Be = mi.hasOwnProperty; +function wi(e, t, r, n, i, s) { + var a = g(e), o = g(t), u = a ? He : O(e), f = o ? He : O(t); + u = u == ze ? X : u, f = f == ze ? X : f; + var d = u == X, c = f == X, l = u == f; + if (l && W(e)) { + if (!W(t)) + return !1; + a = !0, d = !1; + } + if (l && !d) + return s || (s = new m()), a || de(e) ? ht(e, t, r, n, i, s) : pi(e, t, u, r, n, i, s); + if (!(r & Oi)) { + var v = d && Be.call(e, "__wrapped__"), p = c && Be.call(t, "__wrapped__"); + if (v || p) { + var _ = v ? e.value() : e, P = p ? t.value() : t; + return s || (s = new m()), i(_, P, r, n, s); + } + } + return l ? (s || (s = new m()), vi(e, t, r, n, i, s)) : !1; +} +function be(e, t, r, n, i) { + return e === t ? !0 : e == null || t == null || !j(e) && !j(t) ? e !== e && t !== t : wi(e, t, r, n, be, i); +} +var Ti = 1, Ai = 2; +function Pi(e, t, r, n) { + var i = r.length, s = i; + if (e == null) + return !s; + for (e = Object(e); i--; ) { + var a = r[i]; + if (a[2] ? a[1] !== e[a[0]] : !(a[0] in e)) + return !1; + } + for (; ++i < s; ) { + a = r[i]; + var o = a[0], u = e[o], f = a[1]; + if (a[2]) { + if (u === void 0 && !(o in e)) + return !1; + } else { + var d = new m(), c; + if (!(c === void 0 ? be(f, u, Ti | Ai, n, d) : c)) + return !1; + } + } + return !0; +} +function ct(e) { + return e === e && !ce(e); +} +function Ei(e) { + for (var t = b(e), r = t.length; r--; ) { + var n = t[r], i = e[n]; + t[r] = [n, i, ct(i)]; + } + return t; +} +function lt(e, t) { + return function(r) { + return r == null ? !1 : r[e] === t && (t !== void 0 || e in Object(r)); + }; +} +function $i(e) { + var t = Ei(e); + return t.length == 1 && t[0][2] ? lt(t[0][0], t[0][1]) : function(r) { + return r === e || Pi(r, e, t); + }; +} +function Si(e, t) { + return e != null && t in Object(e); +} +function Ci(e, t, r) { + t = st(t, e); + for (var n = -1, i = t.length, s = !1; ++n < i; ) { + var a = te(t[n]); + if (!(s = e != null && r(e, a))) + break; + e = e[a]; + } + return s || ++n != i ? s : (i = e == null ? 0 : e.length, !!i && le(i) && Ve(a, i) && (g(e) || V(e))); +} +function ji(e, t) { + return e != null && Ci(e, t, Si); +} +var xi = 1, Ii = 2; +function Li(e, t) { + return ge(e) && ct(t) ? lt(te(e), t) : function(r) { + var n = Sn(r, e); + return n === void 0 && n === t ? ji(r, e) : be(t, n, xi | Ii); + }; +} +function Ri(e) { + return function(t) { + return t?.[e]; + }; +} +function Ni(e) { + return function(t) { + return at(t, e); + }; +} +function Mi(e) { + return ge(e) ? Ri(te(e)) : Ni(e); +} +function dt(e) { + return typeof e == "function" ? e : e == null ? J : typeof e == "object" ? g(e) ? Li(e[0], e[1]) : $i(e) : Mi(e); +} +function Di(e) { + return function(t, r, n) { + for (var i = -1, s = Object(t), a = n(t), o = a.length; o--; ) { + var u = a[++i]; + if (r(s[u], u, s) === !1) + break; + } + return t; + }; +} +var Fi = Di(); +function Gi(e, t) { + return e && Fi(e, t, b); +} +function Ui(e, t) { + return function(r, n) { + if (r == null) + return r; + if (!Q(r)) + return e(r, n); + for (var i = r.length, s = -1, a = Object(r); ++s < i && n(a[s], s, a) !== !1; ) + ; + return r; + }; +} +var ye = Ui(Gi); +function zi(e) { + return j(e) && Q(e); +} +function Hi(e) { + return typeof e == "function" ? e : J; +} +function S(e, t) { + var r = g(e) ? Wt : ye; + return r(e, Hi(t)); +} +function Bi(e, t) { + var r = []; + return ye(e, function(n, i, s) { + t(n, i, s) && r.push(n); + }), r; +} +function Y(e, t) { + var r = g(e) ? ut : Bi; + return r(e, dt(t)); +} +function Ki(e, t) { + return Je(t, function(r) { + return e[r]; + }); +} +function se(e) { + return e == null ? [] : Ki(e, b(e)); +} +var qi = "[object Map]", Xi = "[object Set]", Yi = Object.prototype, Zi = Yi.hasOwnProperty; +function Ke(e) { + if (e == null) + return !0; + if (Q(e) && (g(e) || typeof e == "string" || typeof e.splice == "function" || W(e) || de(e) || V(e))) + return !e.length; + var t = O(e); + if (t == qi || t == Xi) + return !e.size; + if (et(e)) + return !it(e).length; + for (var r in e) + if (Zi.call(e, r)) + return !1; + return !0; +} +function R(e) { + return e === void 0; +} +function Wi(e, t, r, n, i) { + return i(e, function(s, a, o) { + r = n ? (n = !1, s) : t(r, s, a, o); + }), r; +} +function Ji(e, t, r) { + var n = g(e) ? xn : Wi, i = arguments.length < 3; + return n(e, dt(t), r, i, ye); +} +var Qi = 1 / 0, Vi = N && 1 / _e(new N([, -0]))[1] == Qi ? function(e) { + return new N(e); +} : Ht, ki = 200; +function es(e, t, r) { + var n = -1, i = er, s = e.length, a = !0, o = [], u = o; + if (s >= ki) { + var f = Vi(e); + if (f) + return _e(f); + a = !1, i = ft, u = new B(); + } else + u = o; + e: + for (; ++n < s; ) { + var d = e[n], c = d; + if (d = d !== 0 ? d : 0, a && c === c) { + for (var l = u.length; l--; ) + if (u[l] === c) + continue e; + o.push(d); + } else i(u, c, r) || (u !== o && u.push(c), o.push(d)); + } + return o; +} +var ts = ir(function(e) { + return es(jn(e, 1, zi, !0)); +}), rs = "\0", C = "\0", qe = ""; +class gt { + /** + * @param {GraphOptions} [opts] - Graph options. + */ + constructor(t = {}) { + this._isDirected = Object.prototype.hasOwnProperty.call(t, "directed") ? t.directed : !0, this._isMultigraph = Object.prototype.hasOwnProperty.call(t, "multigraph") ? t.multigraph : !1, this._isCompound = Object.prototype.hasOwnProperty.call(t, "compound") ? t.compound : !1, this._label = void 0, this._defaultNodeLabelFn = F(void 0), this._defaultEdgeLabelFn = F(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[C] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {}; + } + /* === Graph functions ========= */ + /** + * + * @returns {boolean} `true` if the graph is [directed](https://en.wikipedia.org/wiki/Directed_graph). + * A directed graph treats the order of nodes in an edge as significant whereas an + * [undirected](https://en.wikipedia.org/wiki/Graph_(mathematics)#Undirected_graph) + * graph does not. + * This example demonstrates the difference: + * + * @example + * + * ```js + * var directed = new Graph({ directed: true }); + * directed.setEdge("a", "b", "my-label"); + * directed.edge("a", "b"); // returns "my-label" + * directed.edge("b", "a"); // returns undefined + * + * var undirected = new Graph({ directed: false }); + * undirected.setEdge("a", "b", "my-label"); + * undirected.edge("a", "b"); // returns "my-label" + * undirected.edge("b", "a"); // returns "my-label" + * ``` + */ + isDirected() { + return this._isDirected; + } + /** + * @returns {boolean} `true` if the graph is a multigraph. + */ + isMultigraph() { + return this._isMultigraph; + } + /** + * @returns {boolean} `true` if the graph is compound. + */ + isCompound() { + return this._isCompound; + } + /** + * Sets the label for the graph to `label`. + * + * @param {GraphLabel} label - Label for the graph. + * @returns {this} + */ + setGraph(t) { + return this._label = t, this; + } + /** + * @returns {GraphLabel | undefined} the currently assigned label for the graph. + * If no label has been assigned, returns `undefined`. + * + * @example + * + * ```js + * var g = new Graph(); + * g.graph(); // returns undefined + * g.setGraph("graph-label"); + * g.graph(); // returns "graph-label" + * ``` + */ + graph() { + return this._label; + } + /* === Node functions ========== */ + /** + * Sets a new default value that is assigned to nodes that are created without + * a label. + * + * @param {typeof this._defaultNodeLabelFn | NodeLabel} newDefault - If a function, + * it is called with the id of the node being created. + * Otherwise, it is assigned as the label directly. + * @returns {this} + */ + setDefaultNodeLabel(t) { + return Z(t) || (t = F(t)), this._defaultNodeLabelFn = t, this; + } + /** + * @returns {number} the number of nodes in the graph. + */ + nodeCount() { + return this._nodeCount; + } + /** + * @returns {NodeID[]} the ids of the nodes in the graph. + * + * @remarks + * Use {@link node()} to get the label for each node. + * Takes `O(|V|)` time. + */ + nodes() { + return b(this._nodes); + } + /** + * @returns {NodeID[]} those nodes in the graph that have no in-edges. + * @remarks Takes `O(|V|)` time. + */ + sources() { + var t = this; + return Y(this.nodes(), function(r) { + return Ke(t._in[r]); + }); + } + /** + * @returns {NodeID[]} those nodes in the graph that have no out-edges. + * @remarks Takes `O(|V|)` time. + */ + sinks() { + var t = this; + return Y(this.nodes(), function(r) { + return Ke(t._out[r]); + }); + } + /** + * Invokes setNode method for each node in `vs` list. + * + * @param {Collection<NodeID | number>} vs - List of node IDs to create/set. + * @param {NodeLabel} [value] - If set, update all nodes with this value. + * @returns {this} + * @remarks Complexity: O(|names|). + */ + setNodes(t, r) { + var n = arguments, i = this; + return S(t, function(s) { + n.length > 1 ? i.setNode(s, r) : i.setNode(s); + }), this; + } + /** + * Creates or updates the value for the node `v` in the graph. + * + * @param {NodeID | number} v - ID of the node to create/set. + * @param {NodeLabel} [value] - If supplied, it is set as the value for the node. + * If not supplied and the node was created by this call then + * {@link setDefaultNodeLabel} will be used to set the node's value. + * @returns {this} the graph, allowing this to be chained with other functions. + * @remarks Takes `O(1)` time. + */ + setNode(t, r) { + return Object.prototype.hasOwnProperty.call(this._nodes, t) ? (arguments.length > 1 && (this._nodes[t] = r), this) : (this._nodes[t] = arguments.length > 1 ? r : this._defaultNodeLabelFn(t), this._isCompound && (this._parent[t] = C, this._children[t] = {}, this._children[C][t] = !0), this._in[t] = {}, this._preds[t] = {}, this._out[t] = {}, this._sucs[t] = {}, ++this._nodeCount, this); + } + /** + * Gets the label of node with specified name. + * + * @param {NodeID | number} v - Node ID. + * @returns {NodeLabel | undefined} the label assigned to the node with the id `v` + * if it is in the graph. + * Otherwise returns `undefined`. + * @remarks Takes `O(1)` time. + */ + node(t) { + return this._nodes[t]; + } + /** + * Detects whether graph has a node with specified name or not. + * + * @param {NodeID | number} v - Node ID. + * @returns {boolean} Returns `true` the graph has a node with the id. + * @remarks Takes `O(1)` time. + */ + hasNode(t) { + return Object.prototype.hasOwnProperty.call(this._nodes, t); + } + /** + * Remove the node with the id `v` in the graph or do nothing if the node is + * not in the graph. + * + * If the node was removed this function also removes any incident edges. + * + * @param {NodeID | number} v - Node ID to remove. + * @returns {this} the graph, allowing this to be chained with other functions. + * @remarks Takes `O(|E|)` time. + */ + removeNode(t) { + if (Object.prototype.hasOwnProperty.call(this._nodes, t)) { + var r = (n) => this.removeEdge(this._edgeObjs[n]); + delete this._nodes[t], this._isCompound && (this._removeFromParentsChildList(t), delete this._parent[t], S(this.children(t), (n) => { + this.setParent(n); + }), delete this._children[t]), S(b(this._in[t]), r), delete this._in[t], delete this._preds[t], S(b(this._out[t]), r), delete this._out[t], delete this._sucs[t], --this._nodeCount; + } + return this; + } + /** + * Sets the parent for `v` to `parent` if it is defined or removes the parent + * for `v` if `parent` is undefined. + * + * @param {NodeID | number} v - Node ID to set the parent for. + * @param {NodeID | number} [parent] - Parent node ID. If not defined, removes the parent. + * @returns {this} the graph, allowing this to be chained with other functions. + * @throws if the graph is not compound. + * @throws if setting the parent would create a cycle. + * @remarks Takes `O(1)` time. + */ + setParent(t, r) { + if (!this._isCompound) + throw new Error("Cannot set parent in a non-compound graph"); + if (R(r)) + r = C; + else { + r += ""; + for (var n = r; !R(n); n = this.parent(n)) + if (n === t) + throw new Error("Setting " + r + " as parent of " + t + " would create a cycle"); + this.setNode(r); + } + return this.setNode(t), this._removeFromParentsChildList(t), this._parent[t] = r, this._children[r][t] = !0, this; + } + /** + * @private + * @param {NodeID | number} v - Node ID. + */ + _removeFromParentsChildList(t) { + delete this._children[this._parent[t]][t]; + } + /** + * Get parent node for node `v`. + * + * @param {NodeID | number} v - Node ID. + * @returns {NodeID | undefined} the node that is a parent of node `v` + * or `undefined` if node `v` does not have a parent or is not a member of + * the graph. + * Always returns `undefined` for graphs that are not compound. + * @remarks Takes `O(1)` time. + */ + parent(t) { + if (this._isCompound) { + var r = this._parent[t]; + if (r !== C) + return r; + } + } + /** + * Gets list of direct children of node v. + * + * @param {NodeID | number} [v] - Node ID. If not specified, gets nodes + * with no parent (top-level nodes). + * @returns {NodeID[] | undefined} all nodes that are children of node `v` or + * `undefined` if node `v` is not in the graph. + * Always returns `[]` for graphs that are not compound. + * @remarks Takes `O(|V|)` time. + */ + children(t) { + if (R(t) && (t = C), this._isCompound) { + var r = this._children[t]; + if (r) + return b(r); + } else { + if (t === C) + return this.nodes(); + if (this.hasNode(t)) + return []; + } + } + /** + * @param {NodeID | number} v - Node ID. + * @returns {NodeID[] | undefined} all nodes that are predecessors of the + * specified node or `undefined` if node `v` is not in the graph. + * @remarks + * Behavior is undefined for undirected graphs - use {@link neighbors} instead. + * Takes `O(|V|)` time. + */ + predecessors(t) { + var r = this._preds[t]; + if (r) + return b(r); + } + /** + * @param {NodeID | number} v - Node ID. + * @returns {NodeID[] | undefined} all nodes that are successors of the + * specified node or `undefined` if node `v` is not in the graph. + * @remarks + * Behavior is undefined for undirected graphs - use {@link neighbors} instead. + * Takes `O(|V|)` time. + */ + successors(t) { + var r = this._sucs[t]; + if (r) + return b(r); + } + /** + * @param {NodeID | number} v - Node ID. + * @returns {NodeID[] | undefined} all nodes that are predecessors or + * successors of the specified node + * or `undefined` if node `v` is not in the graph. + * @remarks Takes `O(|V|)` time. + */ + neighbors(t) { + var r = this.predecessors(t); + if (r) + return ts(r, this.successors(t)); + } + /** + * @param {NodeID | number} v - Node ID. + * @returns {boolean} True if the node is a leaf (has no successors), false otherwise. + */ + isLeaf(t) { + var r; + return this.isDirected() ? r = this.successors(t) : r = this.neighbors(t), r.length === 0; + } + /** + * Creates new graph with nodes filtered via `filter`. + * Edges incident to rejected node + * are also removed. + * + * In case of compound graph, if parent is rejected by `filter`, + * than all its children are rejected too. + + * @param {(v: NodeID) => boolean} filter - Function that returns `true` for nodes to keep. + * @returns {Graph<GraphLabel, NodeLabel, EdgeLabel>} A new graph containing only the nodes for which `filter` returns `true`. + * @remarks Average-case complexity: O(|E|+|V|). + */ + filterNodes(t) { + var r = new this.constructor({ + directed: this._isDirected, + multigraph: this._isMultigraph, + compound: this._isCompound + }); + r.setGraph(this.graph()); + var n = this; + S(this._nodes, function(a, o) { + t(o) && r.setNode(o, a); + }), S(this._edgeObjs, function(a) { + r.hasNode(a.v) && r.hasNode(a.w) && r.setEdge(a, n.edge(a)); + }); + var i = {}; + function s(a) { + var o = n.parent(a); + return o === void 0 || r.hasNode(o) ? (i[a] = o, o) : o in i ? i[o] : s(o); + } + return this._isCompound && S(r.nodes(), function(a) { + r.setParent(a, s(a)); + }), r; + } + /* === Edge functions ========== */ + /** + * Sets a new default value that is assigned to edges that are created without + * a label. + * + * @param {typeof this._defaultEdgeLabelFn | EdgeLabel} newDefault - If a function, + * it is called with the parameters `(v, w, name)`. + * Otherwise, it is assigned as the label directly. + * @returns {this} + */ + setDefaultEdgeLabel(t) { + return Z(t) || (t = F(t)), this._defaultEdgeLabelFn = t, this; + } + /** + * @returns {number} the number of edges in the graph. + * @remarks Complexity: O(1). + */ + edgeCount() { + return this._edgeCount; + } + /** + * Gets edges of the graph. + * + * @returns {EdgeObj[]} the {@link EdgeObj} for each edge in the graph. + * + * @remarks + * In case of compound graph subgraphs are not considered. + * Use {@link edge()} to get the label for each edge. + * Takes `O(|E|)` time. + */ + edges() { + return se(this._edgeObjs); + } + /** + * Establish an edges path over the nodes in nodes list. + * + * If some edge is already exists, it will update its label, otherwise it will + * create an edge between pair of nodes with label provided or default label + * if no label provided. + * + * @param {Collection<NodeID>} vs - List of node IDs to create edges between. + * @param {EdgeLabel} [value] - If set, update all edges with this value. + * @returns {this} + * @remarks Complexity: O(|nodes|). + */ + setPath(t, r) { + var n = this, i = arguments; + return Ji(t, function(s, a) { + return i.length > 1 ? n.setEdge(s, a, r) : n.setEdge(s, a), a; + }), this; + } + /** + * Creates or updates the label for the edge (`v`, `w`) with the optionally + * supplied `name`. + * + * @overload + * @param {EdgeObj} arg0 - Edge object. + * @param {EdgeLabel} [value] - If supplied, it is set as the label for the edge. + * If not supplied and the edge was created by this call then + * {@link setDefaultEdgeLabel} will be used to assign the edge's label. + * @returns {this} the graph, allowing this to be chained with other functions. + * @remarks Takes `O(1)` time. + */ + /** + * Creates or updates the label for the edge (`v`, `w`) with the optionally + * supplied `name`. + * + * @overload + * @param {NodeID | number} v - Source node ID. Number values will be coerced to strings. + * @param {NodeID | number} w - Target node ID. Number values will be coerced to strings. + * @param {EdgeLabel} [value] - If supplied, it is set as the label for the edge. + * If not supplied and the edge was created by this call then + * {@link setDefaultEdgeLabel} will be used to assign the edge's label. + * @param {string | number} [name] - Edge name. Only useful with multigraphs. + * @returns {this} the graph, allowing this to be chained with other functions. + * @remarks Takes `O(1)` time. + */ + setEdge() { + var t, r, n, i, s = !1, a = arguments[0]; + typeof a == "object" && a !== null && "v" in a ? (t = a.v, r = a.w, n = a.name, arguments.length === 2 && (i = arguments[1], s = !0)) : (t = a, r = arguments[1], n = arguments[3], arguments.length > 2 && (i = arguments[2], s = !0)), t = "" + t, r = "" + r, R(n) || (n = "" + n); + var o = G(this._isDirected, t, r, n); + if (Object.prototype.hasOwnProperty.call(this._edgeLabels, o)) + return s && (this._edgeLabels[o] = i), this; + if (!R(n) && !this._isMultigraph) + throw new Error("Cannot set a named edge when isMultigraph = false"); + this.setNode(t), this.setNode(r), this._edgeLabels[o] = s ? i : this._defaultEdgeLabelFn(t, r, n); + var u = ns(this._isDirected, t, r, n); + return t = u.v, r = u.w, Object.freeze(u), this._edgeObjs[o] = u, Xe(this._preds[r], t), Xe(this._sucs[t], r), this._in[r][o] = u, this._out[t][o] = u, this._edgeCount++, this; + } + /** + * Gets the label for the specified edge. + * + * @overload + * @param {EdgeObj} v - Edge object. + * @returns {EdgeLabel | undefined} the label for the edge (`v`, `w`) if the + * graph has an edge between `v` and `w` with the optional `name`. + * Returned `undefined` if there is no such edge in the graph. + * @remarks + * `v` and `w` can be interchanged for undirected graphs. + * Takes `O(1)` time. + */ + /** + * Gets the label for the specified edge. + * + * @overload + * @param {NodeID | number} v - Source node ID. + * @param {NodeID | number} w - Target node ID. + * @param {string | number} [name] - Edge name. Only useful with multigraphs. + * @returns {EdgeLabel | undefined} the label for the edge (`v`, `w`) if the + * graph has an edge between `v` and `w` with the optional `name`. + * Returned `undefined` if there is no such edge in the graph. + * @remarks + * `v` and `w` can be interchanged for undirected graphs. + * Takes `O(1)` time. + */ + edge(t, r, n) { + var i = arguments.length === 1 ? ae(this._isDirected, arguments[0]) : G(this._isDirected, t, r, n); + return this._edgeLabels[i]; + } + /** + * Detects whether the graph contains specified edge or not. + * + * @overload + * @param {EdgeObj} v - Edge object. + * @returns {boolean} `true` if the graph has an edge between `v` and `w` + * with the optional `name`. + * @remarks + * `v` and `w` can be interchanged for undirected graphs. + * No subgraphs are considered. + * Takes `O(1)` time. + */ + /** + * Detects whether the graph contains specified edge or not. + * + * @overload + * @param {NodeID | number} v - Source node ID. + * @param {NodeID | number} w - Target node ID. + * @param {string | number} [name] - Edge name. Only useful with multigraphs. + * @returns {boolean} `true` if the graph has an edge between `v` and `w` + * with the optional `name`. + * @remarks + * `v` and `w` can be interchanged for undirected graphs. + * No subgraphs are considered. + * Takes `O(1)` time. + */ + hasEdge(t, r, n) { + var i = arguments.length === 1 ? ae(this._isDirected, arguments[0]) : G(this._isDirected, t, r, n); + return Object.prototype.hasOwnProperty.call(this._edgeLabels, i); + } + /** + * Removes the edge (`v`, `w`) if the graph has an edge between `v` and `w` + * with the optional `name`. If not this function does nothing. + * + * @overload + * @param {EdgeObj} v - Edge object. + * @returns {this} + * @remarks + * `v` and `w` can be interchanged for undirected graphs. + * No subgraphs are considered. + * Takes `O(1)` time. + */ + /** + * Removes the edge (`v`, `w`) if the graph has an edge between `v` and `w` + * with the optional `name`. If not this function does nothing. + * + * @overload + * @param {NodeID | number} v - Source node ID. + * @param {NodeID | number} w - Target node ID. + * @param {string | number} [name] - Edge name. Only useful with multigraphs. + * @returns {this} + * @remarks + * `v` and `w` can be interchanged for undirected graphs. + * Takes `O(1)` time. + */ + removeEdge(t, r, n) { + var i = arguments.length === 1 ? ae(this._isDirected, arguments[0]) : G(this._isDirected, t, r, n), s = this._edgeObjs[i]; + return s && (t = s.v, r = s.w, delete this._edgeLabels[i], delete this._edgeObjs[i], Ye(this._preds[r], t), Ye(this._sucs[t], r), delete this._in[r][i], delete this._out[t][i], this._edgeCount--), this; + } + /** + * @param {NodeID | number} v - Target node ID. + * @param {NodeID | number} [u] - Optionally filters edges down to just those + * coming from node `u`. + * @returns {EdgeObj[] | undefined} all edges that point to the node `v`. + * Returns `undefined` if node `v` is not in the graph. + * @remarks + * Behavior is undefined for undirected graphs - use {@link nodeEdges} instead. + * Takes `O(|E|)` time. + */ + inEdges(t, r) { + var n = this._in[t]; + if (n) { + var i = se(n); + return r ? Y(i, function(s) { + return s.v === r; + }) : i; + } + } + /** + * @param {NodeID | number} v - Target node ID. + * @param {NodeID | number} [w] - Optionally filters edges down to just those + * that point to `w`. + * @returns {EdgeObj[] | undefined} all edges that point to the node `v`. + * Returns `undefined` if node `v` is not in the graph. + * @remarks + * Behavior is undefined for undirected graphs - use {@link nodeEdges} instead. + * Takes `O(|E|)` time. + */ + outEdges(t, r) { + var n = this._out[t]; + if (n) { + var i = se(n); + return r ? Y(i, function(s) { + return s.w === r; + }) : i; + } + } + /** + * @param {NodeID | number} v - Target Node ID. + * @param {NodeID | number} [w] - If set, filters those edges down to just + * those between nodes `v` and `w` regardless of direction + * @returns {EdgeObj[] | undefined} all edges to or from node `v` regardless + * of direction. Returns `undefined` if node `v` is not in the graph. + * @remarks Takes `O(|E|)` time. + */ + nodeEdges(t, r) { + var n = this.inEdges(t, r); + if (n) + return n.concat(this.outEdges(t, r)); + } +} +gt.prototype._nodeCount = 0; +gt.prototype._edgeCount = 0; +function Xe(e, t) { + e[t] ? e[t]++ : e[t] = 1; +} +function Ye(e, t) { + --e[t] || delete e[t]; +} +function G(e, t, r, n) { + var i = "" + t, s = "" + r; + if (!e && i > s) { + var a = i; + i = s, s = a; + } + return i + qe + s + qe + (R(n) ? rs : n); +} +function ns(e, t, r, n) { + var i = "" + t, s = "" + r; + if (!e && i > s) { + var a = i; + i = s, s = a; + } + var o = { v: i, w: s }; + return n && (o.name = n), o; +} +function ae(e, t) { + return G(e, t.v, t.w, t.name); +} +export { + te as $, + ji as A, + Ci as B, + J as C, + V as D, + g as E, + Q as F, + gt as G, + zi as H, + W as I, + Z as J, + Ve as K, + ce as L, + j as M, + et as N, + he as O, + de as P, + R as Q, + b as R, + m as S, + Ce as T, + Ge as U, + Kr as V, + nr as W, + Ji as X, + w as Y, + Zt as Z, + Fn as _, + y as a, + $n as a0, + se as a1, + Wt as b, + Br as c, + Je as d, + ot as e, + ye as f, + Jt as g, + jn as h, + Fi as i, + Gi as j, + at as k, + Hn as l, + M as m, + dt as n, + ir as o, + Gr as p, + Hi as q, + st as r, + F as s, + Ae as t, + ke as u, + Y as v, + S as w, + Le as x, + zn as y, + O as z +}; diff --git a/src/wc-content-kit/public/mermaid/index.js b/src/wc-content-kit/public/mermaid/index.js index 4cb886f..f595ca5 100644 --- a/src/wc-content-kit/public/mermaid/index.js +++ b/src/wc-content-kit/public/mermaid/index.js @@ -21,78 +21,146 @@ const ADn = [ "markdownCssUrl", "iframeCssUrl" ]; -function xDn(k, S) { - const P = (S ?? ADn).map(async (L) => { - const B = hDn[L]; - if (!B) +function xDn(k, M) { + const P = (M ?? ADn).map(async (L) => { + const _ = hDn[L]; + if (!_) return console.warn(`[wippy-fe/webcomponent-core] hostCss key "${L}" is undefined — skipping. Remove it from hostCssKeys if the CSS was removed.`), null; try { - return await lDn(B); + return await lDn(_); } catch (m) { - return console.warn(`[wippy-fe/webcomponent-core] Failed to load hostCss "${L}" (${B}):`, m), null; + return console.warn(`[wippy-fe/webcomponent-core] Failed to load hostCss "${L}" (${_}):`, m), null; } }); return Promise.all(P).then((L) => { - for (const B of L) { - if (!B) + for (const _ of L) { + if (!_) continue; const m = document.createElement("style"); - m.textContent = B, m.setAttribute("role", "@wippy-fe/host-css"), k.appendChild(m); + m.textContent = _, m.setAttribute("role", "@wippy-fe/host-css"), k.appendChild(m); } }); } -function $Dn(k, S) { +function $Dn(k, M) { const C = document.createElement("style"); - C.textContent = S, k.appendChild(C); + C.textContent = M, k.appendChild(C); } function nhn(k) { return k.__wippyHost ?? null; } function MDn(k) { - return k.replace(/-([a-z])/g, (S, C) => C.toUpperCase()); + return k.replace(/-([a-z])/g, (M, C) => C.toUpperCase()); } -function TDn(k, S, C) { +function TDn(k, M, C) { switch (C.type) { case "string": - return { value: S }; + return { value: M }; case "number": { - const P = Number.parseFloat(S); + const P = Number.parseFloat(M); return Number.isNaN(P) ? { value: void 0, error: `Invalid ${k}: expected a number` } : { value: P }; } case "integer": { - const P = Number.parseInt(S, 10); + const P = Number.parseInt(M, 10); return Number.isNaN(P) ? { value: void 0, error: `Invalid ${k}: expected an integer` } : { value: P }; } case "boolean": - return { value: S !== "false" }; + return { value: M !== "false" }; case "array": case "object": try { - const P = JSON.parse(S); + const P = JSON.parse(M); return C.type === "array" && !Array.isArray(P) ? { value: void 0, error: `Invalid ${k}: expected a JSON array` } : { value: P }; } catch { return { value: void 0, error: `Invalid ${k}: must be valid JSON` }; } default: - return { value: S }; + return { value: M }; } } -function Tfn(k, S) { +function abe(k, M) { const C = {}, P = []; - for (const [L, B] of Object.entries(S.properties)) { - const m = k.getAttribute(L), U = MDn(L); + for (const [L, _] of Object.entries(M.properties)) { + const m = k.getAttribute(L), q = MDn(L); if (m === null) { - B.default !== void 0 && (C[U] = B.default); + _.default !== void 0 && (C[q] = _.default); continue; } - const Z = TDn(L, m, B); - Z.error ? P.push(Z.error) : C[U] = Z.value; + const Z = TDn(L, m, _); + Z.error ? P.push(Z.error) : C[q] = Z.value; } return { props: C, errors: P }; } -class SDn extends HTMLElement { +class SDn { + constructor(M, C) { + this._propsListeners = /* @__PURE__ */ new Set(), this._contentListeners = /* @__PURE__ */ new Set(), this._disposed = !1, this._props = M.props, this._errors = M.errors, this._content = M.content, this._emitToDom = C; + const P = this; + this.props = { + get value() { + return P._props; + }, + get errors() { + return P._errors; + }, + subscribe(L, _) { + return P._subscribeProps(L, _); + } + }, this.events = { + emit(L, _) { + P._disposed || P._emitToDom(L, _); + } + }, this.content = M.hasContent ? { + get value() { + return P._content; + }, + subscribe(L, _) { + return P._subscribeContent(L, _); + } + } : null; + } + /** @internal */ + notifyProps(M, C) { + if (!this._disposed) { + this._props = M, this._errors = C; + for (const P of this._propsListeners) + P(M, C); + } + } + /** @internal */ + notifyContent(M) { + if (!this._disposed) { + this._content = M; + for (const C of this._contentListeners) + C(M); + } + } + /** @internal */ + dispose() { + this._disposed || (this._disposed = !0, this._propsListeners.clear(), this._contentListeners.clear()); + } + _subscribeProps(M, C) { + if (this._disposed || C?.signal?.aborted) + return () => { + }; + this._propsListeners.add(M), C?.immediate && M(this._props, this._errors); + const P = () => { + this._propsListeners.delete(M), C?.signal?.removeEventListener("abort", P); + }; + return C?.signal?.addEventListener("abort", P, { once: !0 }), P; + } + _subscribeContent(M, C) { + if (this._disposed || C?.signal?.aborted) + return () => { + }; + this._contentListeners.add(M), C?.immediate && M(this._content); + const P = () => { + this._contentListeners.delete(M), C?.signal?.removeEventListener("abort", P); + }; + return C?.signal?.addEventListener("abort", P, { once: !0 }), P; + } +} +class IDn extends HTMLElement { constructor() { - super(), this._contentObserver = null, this._initialized = !1, this._container = null, this._internals = this.attachInternals(); + super(), this._contentObserver = null, this._initialized = !1, this._container = null, this._reactive = null, this._lastProps = null, this._lastErrors = [], this._lastContent = null, this._internals = this.attachInternals(); } /** * Override to provide the component's configuration. @@ -110,7 +178,7 @@ class SDn extends HTMLElement { * Derived from the props schema + any `extraObservedAttributes`. */ static get observedAttributes() { - const S = this.wippyConfig, C = Object.keys(S.propsSchema.properties), P = S.extraObservedAttributes ?? []; + const M = this.wippyConfig, C = Object.keys(M.propsSchema.properties), P = M.extraObservedAttributes ?? []; return [...C, ...P]; } /** @@ -133,88 +201,130 @@ class SDn extends HTMLElement { /** * Emit a CustomEvent that bubbles and crosses shadow DOM boundaries. */ - emitEvent(S, C) { - this.dispatchEvent(new CustomEvent(S, { + emitEvent(M, C) { + this.dispatchEvent(new CustomEvent(M, { bubbles: !0, composed: !0, detail: C })); } + /** + * Opt-in reactive adapter — framework-agnostic. Subscribe to prop + * changes, content changes, or emit typed events from a non-Vue + * consumer without re-rolling reactivity. + * + * ```ts + * class MyEl extends WippyElement<{ count: number }, { tick: { n: number } }> { + * protected onMount() { + * const ctrl = new AbortController() + * this.reactive.props.subscribe(({ count }) => { + * this.shadowRoot!.querySelector('.n')!.textContent = String(count) + * }, { signal: ctrl.signal, immediate: true }) + * } + * tick(n: number) { this.reactive.events.emit('tick', { n }) } + * } + * ``` + * + * Allocation cost is zero unless this getter is touched. Disposed on + * `disconnectedCallback`; a fresh adapter is allocated on the next + * access after reconnect. + */ + get reactive() { + if (!this._reactive) { + const M = this.constructor.wippyConfig, C = !!M.contentTemplate; + let P, L; + if (this._lastProps !== null) + P = this._lastProps, L = this._lastErrors; + else { + const m = abe(this, M.propsSchema); + M.validateProps && m.errors.push(...M.validateProps(m.props)), P = m.props, L = m.errors, this._lastProps = P, this._lastErrors = L; + } + const _ = C ? this._lastContent ?? this._extractContent(M.contentTemplate) : null; + C && this._lastContent === null && (this._lastContent = _), this._reactive = new SDn( + { props: P, errors: L, content: _, hasContent: C }, + this.emitEvent.bind(this) + ); + } + return this._reactive; + } // ── Lifecycle ────────────────────────────────────────────── connectedCallback() { this._internals.states.add("loading"); try { - const S = this.constructor.wippyConfig, C = this._initialized, P = this.shadowRoot ?? this.attachShadow({ mode: S.shadowMode ?? "open" }); + const M = this.constructor.wippyConfig, C = this._initialized, P = this.shadowRoot ?? this.attachShadow({ mode: M.shadowMode ?? "open" }); let L; if (C) L = this._container; else { - this.onInit(P), S.inlineCss && $Dn(P, S.inlineCss), (S.hostCssKeys === void 0 || S.hostCssKeys.length > 0) && xDn(P, S.hostCssKeys), L = document.createElement("div"); - const fe = S.containerClasses ?? []; - fe.length > 0 && L.classList.add(...fe), P.appendChild(L), this._container = L, aDn(fDn); + this.onInit(P), M.inlineCss && $Dn(P, M.inlineCss), (M.hostCssKeys === void 0 || M.hostCssKeys.length > 0) && xDn(P, M.hostCssKeys), L = document.createElement("div"); + const oe = M.containerClasses ?? []; + oe.length > 0 && L.classList.add(...oe), P.appendChild(L), this._container = L, aDn(fDn); } - const { props: B, errors: m } = Tfn(this, S.propsSchema); - S.validateProps && m.push(...S.validateProps(B)); - const U = B; + const { props: _, errors: m } = abe(this, M.propsSchema); + M.validateProps && m.push(...M.validateProps(_)); + const q = _; + this._lastProps = q, this._lastErrors = m; let Z = null; - S.contentTemplate && (Z = this._extractContent(S.contentTemplate), this._contentObserver = new MutationObserver(() => { - const fe = this._extractContent(S.contentTemplate); - this.onContentChanged(fe); + M.contentTemplate && (Z = this._extractContent(M.contentTemplate), this._lastContent = Z, this._contentObserver = new MutationObserver(() => { + const oe = this._extractContent(M.contentTemplate); + this._lastContent = oe, this._reactive?.notifyContent(oe), this.onContentChanged(oe); }), this._contentObserver.observe(this, { childList: !0, characterData: !0, subtree: !0 - })), this.onMount(P, L, U, m, Z, C), this._internals.states.delete("loading"), this._internals.states.add("ready"), C || (this._initialized = !0), this.onReady(), this.emitEvent("load"); - } catch (S) { - this.onError(S), this._internals.states.delete("loading"), this._internals.states.add("error"), this.emitEvent("error", { - message: S instanceof Error ? S.message : String(S), - error: S + })), this.onMount(P, L, q, m, Z, C), this._internals.states.delete("loading"), this._internals.states.add("ready"), C || (this._initialized = !0), this.onReady(), this.emitEvent("load"); + } catch (M) { + this.onError(M), this._internals.states.delete("loading"), this._internals.states.add("error"), this.emitEvent("error", { + message: M instanceof Error ? M.message : String(M), + error: M }); } } disconnectedCallback() { - this._contentObserver && (this._contentObserver.disconnect(), this._contentObserver = null), this.onUnmount(), this.emitEvent("unload"), this._internals.states.clear(), delete this.__wippyHost, delete this.__wippyHostBus; + this._contentObserver && (this._contentObserver.disconnect(), this._contentObserver = null), this.onUnmount(), this.emitEvent("unload"), this._internals.states.clear(), this._reactive?.dispose(), this._reactive = null, this._lastProps = null, this._lastErrors = [], this._lastContent = null, delete this.__wippyHost, delete this.__wippyHostBus; } - attributeChangedCallback(S, C, P) { + attributeChangedCallback(M, C, P) { if (C === P) return; - const L = this.constructor.wippyConfig, { props: B, errors: m } = Tfn(this, L.propsSchema); - L.validateProps && m.push(...L.validateProps(B)), this.onPropsChanged(B, m); + const L = this.constructor.wippyConfig, { props: _, errors: m } = abe(this, L.propsSchema); + L.validateProps && m.push(...L.validateProps(_)); + const q = _; + this._lastProps = q, this._lastErrors = m, this._reactive?.notifyProps(q, m), this.onPropsChanged(q, m); } // ── Hooks ────────────────────────────────────────────────── /** Called right after shadow DOM is attached, before CSS or container. */ - onInit(S) { + onInit(M) { } /** Called after internals state is set to ready, before the `load` event. */ onReady() { } /** Called when connectedCallback throws. Default logs to console. */ - onError(S) { - console.error(`${this.constructor.name} initialization failed:`, S); + onError(M) { + console.error(`${this.constructor.name} initialization failed:`, M); } /** Called when observed attributes change. Override to update framework state. */ - onPropsChanged(S, C) { + onPropsChanged(M, C) { } /** * Extract text from a child `<template data-type="...">` element. * Uses `.content.textContent` since `<template>` stores content in a DocumentFragment. */ - _extractContent(S) { - return this.querySelector(`template[data-type="${S}"]`)?.content.textContent?.trim() ?? null; + _extractContent(M) { + return this.querySelector(`template[data-type="${M}"]`)?.content.textContent?.trim() ?? null; } /** Called when child `<template>` content changes. Override to update framework state. */ - onContentChanged(S) { + onContentChanged(M) { } } -function IDn(k) { +function CDn(k) { return k.__wippyHostBus ?? null; } -function CDn(k) { +function PDn(k) { return k.dataset.wippyPanelId ?? null; } -class PDn extends SDn { +class ODn extends IDn { constructor() { - super(...arguments), this._vueApp = null, this._propsRef = JU({}), this._errorsRef = JU([]), this._contentRef = JU(null); + super(...arguments), this._vueApp = null, this._propsRef = JU({}), this._errorsRef = JU([]), this._contentRef = JU(null), this._bridgeAbort = null; } /** * Override to provide Vue-specific configuration. @@ -222,36 +332,35 @@ class PDn extends SDn { static get vueConfig() { throw new Error("WippyVueElement subclass must override static get vueConfig()"); } - onMount(S, C, P, L, B, m) { - const U = this.constructor.vueConfig; - this._propsRef.value = P, this._errorsRef.value = L, this._contentRef.value = B ?? null; - for (const Y of L) - this.emitEvent("invalid", { message: Y }); + onMount(M, C, P, L, _, m) { + const q = this.constructor.vueConfig; + this._propsRef.value = P, this._errorsRef.value = L, this._contentRef.value = _ ?? null; + for (const Q of L) + this.emitEvent("invalid", { message: Q }); + this._bridgeAbort = new AbortController(), this.reactive.props.subscribe((Q, ke) => { + this._propsRef.value = Q, this._errorsRef.value = [...ke]; + for (const de of ke) + this.emitEvent("invalid", { message: de }); + }, { signal: this._bridgeAbort.signal }), this.reactive.content && this.reactive.content.subscribe((Q) => { + this._contentRef.value = Q; + }, { signal: this._bridgeAbort.signal }); const Z = bDn(); - this._vueApp = tDn(U.rootComponent); - const fe = wDn(); - if (U.piniaPlugins) - for (const Y of U.piniaPlugins) - fe.use(Y); - if (this._vueApp.use(fe), U.plugins) - for (const Y of U.plugins) - this._vueApp.use(Y); - this._vueApp.provide(Zfn, this._propsRef), this._vueApp.provide(mDn, this._errorsRef), this._vueApp.provide(pDn, this.emitEvent.bind(this)), this._vueApp.provide(ehn, this._contentRef), this._vueApp.provide(vDn, CDn(this)), this._vueApp.provide(kDn, IDn(this)), this._vueApp.provide(yDn, nhn(this)), U.providers && U.providers(this._vueApp, this), this._vueApp.mount(C), Z && gDn(Z); + this._vueApp = tDn(q.rootComponent); + const oe = wDn(); + if (q.piniaPlugins) + for (const Q of q.piniaPlugins) + oe.use(Q); + if (this._vueApp.use(oe), q.plugins) + for (const Q of q.plugins) + this._vueApp.use(Q); + this._vueApp.provide(Zfn, this._propsRef), this._vueApp.provide(mDn, this._errorsRef), this._vueApp.provide(pDn, this.emitEvent.bind(this)), this._vueApp.provide(ehn, this._contentRef), this._vueApp.provide(vDn, PDn(this)), this._vueApp.provide(kDn, CDn(this)), this._vueApp.provide(yDn, nhn(this)), q.providers && q.providers(this._vueApp, this), this._vueApp.mount(C), Z && gDn(Z); } onUnmount() { - this._vueApp && (this._vueApp.unmount(), this._vueApp = null); - } - onPropsChanged(S, C) { - this._propsRef.value = S, this._errorsRef.value = C; - for (const P of C) - this.emitEvent("invalid", { message: P }); - } - onContentChanged(S) { - this._contentRef.value = S; + this._bridgeAbort?.abort(), this._bridgeAbort = null, this._vueApp && (this._vueApp.unmount(), this._vueApp = null); } } -var abe; -const ODn = /* @__PURE__ */ new Map([ +var dbe; +const LDn = /* @__PURE__ */ new Map([ [0, 65533], // C1 Unicode control character reference replacements [128, 8364], @@ -281,19 +390,19 @@ const ODn = /* @__PURE__ */ new Map([ [156, 339], [158, 382], [159, 376] -]), LDn = ( +]), DDn = ( // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, n/no-unsupported-features/es-builtins - (abe = String.fromCodePoint) !== null && abe !== void 0 ? abe : ((k) => { - let S = ""; - return k > 65535 && (k -= 65536, S += String.fromCharCode(k >>> 10 & 1023 | 55296), k = 56320 | k & 1023), S += String.fromCharCode(k), S; + (dbe = String.fromCodePoint) !== null && dbe !== void 0 ? dbe : ((k) => { + let M = ""; + return k > 65535 && (k -= 65536, M += String.fromCharCode(k >>> 10 & 1023 | 55296), k = 56320 | k & 1023), M += String.fromCharCode(k), M; }) ); -function DDn(k) { - var S; - return k >= 55296 && k <= 57343 || k > 1114111 ? 65533 : (S = ODn.get(k)) !== null && S !== void 0 ? S : k; -} function NDn(k) { - const S = ( + var M; + return k >= 55296 && k <= 57343 || k > 1114111 ? 65533 : (M = LDn.get(k)) !== null && M !== void 0 ? M : k; +} +function FDn(k) { + const M = ( // eslint-disable-next-line n/no-unsupported-features/node-builtins typeof atob == "function" ? ( // Browser (and Node >=16) @@ -310,14 +419,14 @@ function NDn(k) { new Buffer(k, "base64").toString("binary") ) ) - ), C = S.length & -2, P = new Uint16Array(C / 2); - for (let L = 0, B = 0; L < C; L += 2) { - const m = S.charCodeAt(L), U = S.charCodeAt(L + 1); - P[B++] = m | U << 8; + ), C = M.length & -2, P = new Uint16Array(C / 2); + for (let L = 0, _ = 0; L < C; L += 2) { + const m = M.charCodeAt(L), q = M.charCodeAt(L + 1); + P[_++] = m | q << 8; } return P; } -const FDn = /* @__PURE__ */ NDn("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg"); +const RDn = /* @__PURE__ */ FDn("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg"); var d1; (function(k) { k[k.VALUE_LENGTH = 49152] = "VALUE_LENGTH", k[k.FLAG13 = 8192] = "FLAG13", k[k.BRANCH_LENGTH = 8064] = "BRANCH_LENGTH", k[k.JUMP_TABLE = 127] = "JUMP_TABLE"; @@ -327,16 +436,16 @@ var No; k[k.NUM = 35] = "NUM", k[k.SEMI = 59] = "SEMI", k[k.EQUALS = 61] = "EQUALS", k[k.ZERO = 48] = "ZERO", k[k.NINE = 57] = "NINE", k[k.LOWER_A = 97] = "LOWER_A", k[k.LOWER_F = 102] = "LOWER_F", k[k.LOWER_X = 120] = "LOWER_X", k[k.LOWER_Z = 122] = "LOWER_Z", k[k.UPPER_A = 65] = "UPPER_A", k[k.UPPER_F = 70] = "UPPER_F", k[k.UPPER_Z = 90] = "UPPER_Z"; })(No || (No = {})); const Sfn = 32; -function mbe(k) { +function vbe(k) { return k >= No.ZERO && k <= No.NINE; } -function RDn(k) { +function _Dn(k) { return k >= No.UPPER_A && k <= No.UPPER_F || k >= No.LOWER_A && k <= No.LOWER_F; } function BDn(k) { - return k >= No.UPPER_A && k <= No.UPPER_Z || k >= No.LOWER_A && k <= No.LOWER_Z || mbe(k); + return k >= No.UPPER_A && k <= No.UPPER_Z || k >= No.LOWER_A && k <= No.LOWER_Z || vbe(k); } -function _Dn(k) { +function JDn(k) { return k === No.EQUALS || BDn(k); } var cl; @@ -347,13 +456,13 @@ var x4; (function(k) { k[k.Legacy = 0] = "Legacy", k[k.Strict = 1] = "Strict", k[k.Attribute = 2] = "Attribute"; })(x4 || (x4 = {})); -class JDn { - constructor(S, C, P) { - this.decodeTree = S, this.emitCodePoint = C, this.errors = P, this.state = cl.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = x4.Strict, this.runConsumed = 0; +class GDn { + constructor(M, C, P) { + this.decodeTree = M, this.emitCodePoint = C, this.errors = P, this.state = cl.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = x4.Strict, this.runConsumed = 0; } /** Resets the instance to make it reusable. */ - startEntity(S) { - this.decodeMode = S, this.state = cl.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1, this.runConsumed = 0; + startEntity(M) { + this.decodeMode = M, this.state = cl.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1, this.runConsumed = 0; } /** * Write an entity to the decoder. This can be called multiple times with partial entities. @@ -366,18 +475,18 @@ class JDn { * @param offset The offset at which the entity begins. Should be 0 if this is not the first call. * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ - write(S, C) { + write(M, C) { switch (this.state) { case cl.EntityStart: - return S.charCodeAt(C) === No.NUM ? (this.state = cl.NumericStart, this.consumed += 1, this.stateNumericStart(S, C + 1)) : (this.state = cl.NamedEntity, this.stateNamedEntity(S, C)); + return M.charCodeAt(C) === No.NUM ? (this.state = cl.NumericStart, this.consumed += 1, this.stateNumericStart(M, C + 1)) : (this.state = cl.NamedEntity, this.stateNamedEntity(M, C)); case cl.NumericStart: - return this.stateNumericStart(S, C); + return this.stateNumericStart(M, C); case cl.NumericDecimal: - return this.stateNumericDecimal(S, C); + return this.stateNumericDecimal(M, C); case cl.NumericHex: - return this.stateNumericHex(S, C); + return this.stateNumericHex(M, C); case cl.NamedEntity: - return this.stateNamedEntity(S, C); + return this.stateNamedEntity(M, C); } } /** @@ -389,8 +498,8 @@ class JDn { * @param offset The current offset. * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ - stateNumericStart(S, C) { - return C >= S.length ? -1 : (S.charCodeAt(C) | Sfn) === No.LOWER_X ? (this.state = cl.NumericHex, this.consumed += 1, this.stateNumericHex(S, C + 1)) : (this.state = cl.NumericDecimal, this.stateNumericDecimal(S, C)); + stateNumericStart(M, C) { + return C >= M.length ? -1 : (M.charCodeAt(C) | Sfn) === No.LOWER_X ? (this.state = cl.NumericHex, this.consumed += 1, this.stateNumericHex(M, C + 1)) : (this.state = cl.NumericDecimal, this.stateNumericDecimal(M, C)); } /** * Parses a hexadecimal numeric entity. @@ -401,10 +510,10 @@ class JDn { * @param offset The current offset. * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ - stateNumericHex(S, C) { - for (; C < S.length; ) { - const P = S.charCodeAt(C); - if (mbe(P) || RDn(P)) { + stateNumericHex(M, C) { + for (; C < M.length; ) { + const P = M.charCodeAt(C); + if (vbe(P) || _Dn(P)) { const L = P <= No.NINE ? P - No.ZERO : (P | Sfn) - No.LOWER_A + 10; this.result = this.result * 16 + L, this.consumed++, C++; } else @@ -421,10 +530,10 @@ class JDn { * @param offset The current offset. * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ - stateNumericDecimal(S, C) { - for (; C < S.length; ) { - const P = S.charCodeAt(C); - if (mbe(P)) + stateNumericDecimal(M, C) { + for (; C < M.length; ) { + const P = M.charCodeAt(C); + if (vbe(P)) this.result = this.result * 10 + (P - No.ZERO), this.consumed++, C++; else return this.emitNumericEntity(P, 2); @@ -444,15 +553,15 @@ class JDn { * was consumed. * @returns The number of characters that were consumed. */ - emitNumericEntity(S, C) { + emitNumericEntity(M, C) { var P; if (this.consumed <= C) return (P = this.errors) === null || P === void 0 || P.absenceOfDigitsInNumericCharacterReference(this.consumed), 0; - if (S === No.SEMI) + if (M === No.SEMI) this.consumed += 1; else if (this.decodeMode === x4.Strict) return 0; - return this.emitCodePoint(DDn(this.result), this.consumed), this.errors && (S !== No.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed; + return this.emitCodePoint(NDn(this.result), this.consumed), this.errors && (M !== No.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed; } /** * Parses a named entity. @@ -463,41 +572,41 @@ class JDn { * @param offset The current offset. * @returns The number of characters that were consumed, or -1 if the entity is incomplete. */ - stateNamedEntity(S, C) { + stateNamedEntity(M, C) { const { decodeTree: P } = this; - let L = P[this.treeIndex], B = (L & d1.VALUE_LENGTH) >> 14; - for (; C < S.length; ) { - if (B === 0 && (L & d1.FLAG13) !== 0) { - const U = (L & d1.BRANCH_LENGTH) >> 7; + let L = P[this.treeIndex], _ = (L & d1.VALUE_LENGTH) >> 14; + for (; C < M.length; ) { + if (_ === 0 && (L & d1.FLAG13) !== 0) { + const q = (L & d1.BRANCH_LENGTH) >> 7; if (this.runConsumed === 0) { const Z = L & d1.JUMP_TABLE; - if (S.charCodeAt(C) !== Z) + if (M.charCodeAt(C) !== Z) return this.result === 0 ? 0 : this.emitNotTerminatedNamedEntity(); C++, this.excess++, this.runConsumed++; } - for (; this.runConsumed < U; ) { - if (C >= S.length) + for (; this.runConsumed < q; ) { + if (C >= M.length) return -1; - const Z = this.runConsumed - 1, fe = P[this.treeIndex + 1 + (Z >> 1)], Y = Z % 2 === 0 ? fe & 255 : fe >> 8 & 255; - if (S.charCodeAt(C) !== Y) + const Z = this.runConsumed - 1, oe = P[this.treeIndex + 1 + (Z >> 1)], Q = Z % 2 === 0 ? oe & 255 : oe >> 8 & 255; + if (M.charCodeAt(C) !== Q) return this.runConsumed = 0, this.result === 0 ? 0 : this.emitNotTerminatedNamedEntity(); C++, this.excess++, this.runConsumed++; } - this.runConsumed = 0, this.treeIndex += 1 + (U >> 1), L = P[this.treeIndex], B = (L & d1.VALUE_LENGTH) >> 14; + this.runConsumed = 0, this.treeIndex += 1 + (q >> 1), L = P[this.treeIndex], _ = (L & d1.VALUE_LENGTH) >> 14; } - if (C >= S.length) + if (C >= M.length) break; - const m = S.charCodeAt(C); - if (m === No.SEMI && B !== 0 && (L & d1.FLAG13) !== 0) - return this.emitNamedEntityData(this.treeIndex, B, this.consumed + this.excess); - if (this.treeIndex = HDn(P, L, this.treeIndex + Math.max(1, B), m), this.treeIndex < 0) + const m = M.charCodeAt(C); + if (m === No.SEMI && _ !== 0 && (L & d1.FLAG13) !== 0) + return this.emitNamedEntityData(this.treeIndex, _, this.consumed + this.excess); + if (this.treeIndex = qDn(P, L, this.treeIndex + Math.max(1, _), m), this.treeIndex < 0) return this.result === 0 || // If we are parsing an attribute this.decodeMode === x4.Attribute && // We shouldn't have consumed any characters after the entity, - (B === 0 || // And there should be no invalid characters. - _Dn(m)) ? 0 : this.emitNotTerminatedNamedEntity(); - if (L = P[this.treeIndex], B = (L & d1.VALUE_LENGTH) >> 14, B !== 0) { + (_ === 0 || // And there should be no invalid characters. + JDn(m)) ? 0 : this.emitNotTerminatedNamedEntity(); + if (L = P[this.treeIndex], _ = (L & d1.VALUE_LENGTH) >> 14, _ !== 0) { if (m === No.SEMI) - return this.emitNamedEntityData(this.treeIndex, B, this.consumed + this.excess); + return this.emitNamedEntityData(this.treeIndex, _, this.consumed + this.excess); this.decodeMode !== x4.Strict && (L & d1.FLAG13) === 0 && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0); } C++, this.excess++; @@ -510,9 +619,9 @@ class JDn { * @returns The number of characters consumed. */ emitNotTerminatedNamedEntity() { - var S; + var M; const { result: C, decodeTree: P } = this, L = (P[C] & d1.VALUE_LENGTH) >> 14; - return this.emitNamedEntityData(C, L, this.consumed), (S = this.errors) === null || S === void 0 || S.missingSemicolonAfterCharacterReference(), this.consumed; + return this.emitNamedEntityData(C, L, this.consumed), (M = this.errors) === null || M === void 0 || M.missingSemicolonAfterCharacterReference(), this.consumed; } /** * Emit a named entity. @@ -523,9 +632,9 @@ class JDn { * * @returns The number of characters consumed. */ - emitNamedEntityData(S, C, P) { + emitNamedEntityData(M, C, P) { const { decodeTree: L } = this; - return this.emitCodePoint(C === 1 ? L[S] & ~(d1.VALUE_LENGTH | d1.FLAG13) : L[S + 1], P), C === 3 && this.emitCodePoint(L[S + 2], P), P; + return this.emitCodePoint(C === 1 ? L[M] & ~(d1.VALUE_LENGTH | d1.FLAG13) : L[M + 1], P), C === 3 && this.emitCodePoint(L[M + 2], P), P; } /** * Signal to the parser that the end of the input was reached. @@ -535,7 +644,7 @@ class JDn { * @returns The number of characters consumed. */ end() { - var S; + var M; switch (this.state) { case cl.NamedEntity: return this.result !== 0 && (this.decodeMode !== x4.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0; @@ -545,111 +654,92 @@ class JDn { case cl.NumericHex: return this.emitNumericEntity(0, 3); case cl.NumericStart: - return (S = this.errors) === null || S === void 0 || S.absenceOfDigitsInNumericCharacterReference(this.consumed), 0; + return (M = this.errors) === null || M === void 0 || M.absenceOfDigitsInNumericCharacterReference(this.consumed), 0; case cl.EntityStart: return 0; } } } -function GDn(k) { - let S = ""; - const C = new JDn(k, (P) => S += LDn(P)); - return function(L, B) { - let m = 0, U = 0; - for (; (U = L.indexOf("&", U)) >= 0; ) { - S += L.slice(m, U), C.startEntity(B); - const fe = C.write( +function HDn(k) { + let M = ""; + const C = new GDn(k, (P) => M += DDn(P)); + return function(L, _) { + let m = 0, q = 0; + for (; (q = L.indexOf("&", q)) >= 0; ) { + M += L.slice(m, q), C.startEntity(_); + const oe = C.write( L, // Skip the "&" - U + 1 + q + 1 ); - if (fe < 0) { - m = U + C.end(); + if (oe < 0) { + m = q + C.end(); break; } - m = U + fe, U = fe === 0 ? m + 1 : m; + m = q + oe, q = oe === 0 ? m + 1 : m; } - const Z = S + L.slice(m); - return S = "", Z; + const Z = M + L.slice(m); + return M = "", Z; }; } -function HDn(k, S, C, P) { - const L = (S & d1.BRANCH_LENGTH) >> 7, B = S & d1.JUMP_TABLE; +function qDn(k, M, C, P) { + const L = (M & d1.BRANCH_LENGTH) >> 7, _ = M & d1.JUMP_TABLE; if (L === 0) - return B !== 0 && P === B ? C : -1; - if (B) { - const fe = P - B; - return fe < 0 || fe >= L ? -1 : k[C + fe] - 1; + return _ !== 0 && P === _ ? C : -1; + if (_) { + const oe = P - _; + return oe < 0 || oe >= L ? -1 : k[C + oe] - 1; } const m = L + 1 >> 1; - let U = 0, Z = L - 1; - for (; U <= Z; ) { - const fe = U + Z >>> 1, Y = fe >> 1, de = k[C + Y] >> (fe & 1) * 8 & 255; + let q = 0, Z = L - 1; + for (; q <= Z; ) { + const oe = q + Z >>> 1, Q = oe >> 1, de = k[C + Q] >> (oe & 1) * 8 & 255; if (de < P) - U = fe + 1; + q = oe + 1; else if (de > P) - Z = fe - 1; + Z = oe - 1; else - return k[C + m + fe]; + return k[C + m + oe]; } return -1; } -const qDn = /* @__PURE__ */ GDn(FDn); -function UDn(k) { - return qDn(k, x4.Strict); +const UDn = /* @__PURE__ */ HDn(RDn); +function zDn(k) { + return UDn(k, x4.Strict); } var Ifn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function zDn(k) { +function WDn(k) { return k && k.__esModule && Object.prototype.hasOwnProperty.call(k, "default") ? k.default : k; } -function pRn(k) { - if (Object.prototype.hasOwnProperty.call(k, "__esModule")) return k; - var S = k.default; - if (typeof S == "function") { - var C = function P() { - return this instanceof P ? Reflect.construct(S, arguments, this.constructor) : S.apply(this, arguments); - }; - C.prototype = S.prototype; - } else C = {}; - return Object.defineProperty(C, "__esModule", { value: !0 }), Object.keys(k).forEach(function(P) { - var L = Object.getOwnPropertyDescriptor(k, P); - Object.defineProperty(C, P, L.get ? L : { - enumerable: !0, - get: function() { - return k[P]; - } - }); - }), C; -} function FU(k) { throw new Error('Could not dynamically require "' + k + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); } -var dbe = { exports: {} }, Cfn; -function WDn() { - return Cfn || (Cfn = 1, (function(k, S) { +var bbe = { exports: {} }, Cfn; +function XDn() { + return Cfn || (Cfn = 1, (function(k, M) { (function(C) { k.exports = C(); })(function() { return (/* @__PURE__ */ (function() { - function C(P, L, B) { - function m(fe, Y) { - if (!L[fe]) { - if (!P[fe]) { - var ye = typeof FU == "function" && FU; - if (!Y && ye) return ye(fe, !0); - if (U) return U(fe, !0); - var de = new Error("Cannot find module '" + fe + "'"); + function C(P, L, _) { + function m(oe, Q) { + if (!L[oe]) { + if (!P[oe]) { + var ke = typeof FU == "function" && FU; + if (!Q && ke) return ke(oe, !0); + if (q) return q(oe, !0); + var de = new Error("Cannot find module '" + oe + "'"); throw de.code = "MODULE_NOT_FOUND", de; } - var Oe = L[fe] = { exports: {} }; - P[fe][0].call(Oe.exports, function(Ne) { - var Q = P[fe][1][Ne]; - return m(Q || Ne); - }, Oe, Oe.exports, C, P, L, B); + var Oe = L[oe] = { exports: {} }; + P[oe][0].call(Oe.exports, function(Ne) { + var Y = P[oe][1][Ne]; + return m(Y || Ne); + }, Oe, Oe.exports, C, P, L, _); } - return L[fe].exports; + return L[oe].exports; } - for (var U = typeof FU == "function" && FU, Z = 0; Z < B.length; Z++) m(B[Z]); + for (var q = typeof FU == "function" && FU, Z = 0; Z < _.length; Z++) m(_[Z]); return m; } return C; @@ -657,43 +747,43 @@ function WDn() { Object.defineProperty(L, "__esModule", { value: !0 }), L.default = void 0; - function B(de) { + function _(de) { "@babel/helpers - typeof"; - return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(Oe) { + return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(Oe) { return typeof Oe; } : function(Oe) { return Oe && typeof Symbol == "function" && Oe.constructor === Symbol && Oe !== Symbol.prototype ? "symbol" : typeof Oe; - }, B(de); + }, _(de); } function m(de, Oe) { if (!(de instanceof Oe)) throw new TypeError("Cannot call a class as a function"); } - function U(de, Oe) { + function q(de, Oe) { for (var Ne = 0; Ne < Oe.length; Ne++) { - var Q = Oe[Ne]; - Q.enumerable = Q.enumerable || !1, Q.configurable = !0, "value" in Q && (Q.writable = !0), Object.defineProperty(de, fe(Q.key), Q); + var Y = Oe[Ne]; + Y.enumerable = Y.enumerable || !1, Y.configurable = !0, "value" in Y && (Y.writable = !0), Object.defineProperty(de, oe(Y.key), Y); } } function Z(de, Oe, Ne) { - return Oe && U(de.prototype, Oe), Object.defineProperty(de, "prototype", { writable: !1 }), de; + return Oe && q(de.prototype, Oe), Object.defineProperty(de, "prototype", { writable: !1 }), de; } - function fe(de) { - var Oe = Y(de, "string"); - return B(Oe) == "symbol" ? Oe : Oe + ""; + function oe(de) { + var Oe = Q(de, "string"); + return _(Oe) == "symbol" ? Oe : Oe + ""; } - function Y(de, Oe) { - if (B(de) != "object" || !de) return de; + function Q(de, Oe) { + if (_(de) != "object" || !de) return de; var Ne = de[Symbol.toPrimitive]; if (Ne !== void 0) { - var Q = Ne.call(de, Oe); - if (B(Q) != "object") return Q; + var Y = Ne.call(de, Oe); + if (_(Y) != "object") return Y; throw new TypeError("@@toPrimitive must return a primitive value."); } return String(de); } L.default = /* @__PURE__ */ (function() { function de() { - var Oe = this, Ne = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = Ne.defaultLayoutOptions, ft = Q === void 0 ? {} : Q, Fn = Ne.algorithms, Tt = Fn === void 0 ? ["layered", "stress", "mrtree", "radial", "force", "disco", "sporeOverlap", "sporeCompaction", "rectpacking"] : Fn, Kt = Ne.workerFactory, xt = Ne.workerUrl; + var Oe = this, Ne = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Y = Ne.defaultLayoutOptions, ft = Y === void 0 ? {} : Y, Fn = Ne.algorithms, Tt = Fn === void 0 ? ["layered", "stress", "mrtree", "radial", "force", "disco", "sporeOverlap", "sporeCompaction", "rectpacking"] : Fn, Kt = Ne.workerFactory, xt = Ne.workerUrl; if (m(this, de), this.defaultLayoutOptions = ft, this.initialized = !1, typeof xt > "u" && typeof Kt > "u") throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'."); var Lt = Kt; @@ -703,7 +793,7 @@ function WDn() { var hu = Lt(xt); if (typeof hu.postMessage != "function") throw new TypeError("Created worker does not provide the required 'postMessage' function."); - this.worker = new ye(hu), this.worker.postMessage({ + this.worker = new ke(hu), this.worker.postMessage({ cmd: "register", algorithms: Tt }).then(function(tc) { @@ -713,7 +803,7 @@ function WDn() { return Z(de, [{ key: "layout", value: function(Ne) { - var Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ft = Q.layoutOptions, Fn = ft === void 0 ? this.defaultLayoutOptions : ft, Tt = Q.logging, Kt = Tt === void 0 ? !1 : Tt, xt = Q.measureExecutionTime, Lt = xt === void 0 ? !1 : xt; + var Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ft = Y.layoutOptions, Fn = ft === void 0 ? this.defaultLayoutOptions : ft, Tt = Y.logging, Kt = Tt === void 0 ? !1 : Tt, xt = Y.measureExecutionTime, Lt = xt === void 0 ? !1 : xt; return Ne ? this.worker.postMessage({ cmd: "layout", graph: Ne, @@ -752,33 +842,33 @@ function WDn() { } }]); })(); - var ye = /* @__PURE__ */ (function() { + var ke = /* @__PURE__ */ (function() { function de(Oe) { var Ne = this; if (m(this, de), Oe === void 0) throw new Error("Missing mandatory parameter 'worker'."); - this.resolvers = {}, this.worker = Oe, this.worker.onmessage = function(Q) { + this.resolvers = {}, this.worker = Oe, this.worker.onmessage = function(Y) { setTimeout(function() { - Ne.receive(Ne, Q); + Ne.receive(Ne, Y); }, 0); }; } return Z(de, [{ key: "postMessage", value: function(Ne) { - var Q = this.id || 0; - this.id = Q + 1, Ne.id = Q; + var Y = this.id || 0; + this.id = Y + 1, Ne.id = Y; var ft = this; return new Promise(function(Fn, Tt) { - ft.resolvers[Q] = function(Kt, xt) { + ft.resolvers[Y] = function(Kt, xt) { Kt ? (ft.convertGwtStyleError(Kt), Tt(Kt)) : Fn(xt); }, ft.worker.postMessage(Ne); }); } }, { key: "receive", - value: function(Ne, Q) { - var ft = Q.data, Fn = Ne.resolvers[ft.id]; + value: function(Ne, Y) { + var ft = Y.data, Fn = Ne.resolvers[ft.id]; Fn && (delete Ne.resolvers[ft.id], ft.error ? Fn(ft.error) : Fn(null, ft.data)); } }, { @@ -790,25 +880,25 @@ function WDn() { key: "convertGwtStyleError", value: function(Ne) { if (Ne) { - var Q = Ne.__java$exception; - Q && (Q.cause && Q.cause.backingJsObject && (Ne.cause = Q.cause.backingJsObject, this.convertGwtStyleError(Ne.cause)), delete Ne.__java$exception); + var Y = Ne.__java$exception; + Y && (Y.cause && Y.cause.backingJsObject && (Ne.cause = Y.cause.backingJsObject, this.convertGwtStyleError(Ne.cause)), delete Ne.__java$exception); } } }]); })(); }, {}], 2: [function(C, P, L) { - (function(B) { + (function(_) { (function() { var m; - typeof window < "u" ? m = window : typeof B < "u" ? m = B : typeof self < "u" && (m = self); - var U; + typeof window < "u" ? m = window : typeof _ < "u" ? m = _ : typeof self < "u" && (m = self); + var q; function Z() { } - function fe() { + function oe() { } - function Y() { + function Q() { } - function ye() { + function ke() { } function de() { } @@ -816,7 +906,7 @@ function WDn() { } function Ne() { } - function Q() { + function Y() { } function ft() { } @@ -890,20 +980,18 @@ function WDn() { } function tA() { } - function xbe() { - } function $be() { } function Mbe() { } function Tbe() { } + function Sbe() { + } function MP() { } function ss() { } - function Sbe() { - } function Ibe() { } function Cbe() { @@ -922,10 +1010,10 @@ function WDn() { } function Rbe() { } - function Bbe() { - } function _be() { } + function Bbe() { + } function Jbe() { } function Gbe() { @@ -960,24 +1048,24 @@ function WDn() { } function iwe() { } + function rwe() { + } function iA() { } function WU() { } - function rwe() { + function cwe() { } function TP() { } - function cwe() { - } function uwe() { } function swe() { } - function XU() { - } function owe() { } + function XU() { + } function fwe() { } function hwe() { @@ -1004,10 +1092,10 @@ function WDn() { } function ywe() { } - function SP() { - } function jwe() { } + function SP() { + } function Ewe() { } function Awe() { @@ -1018,12 +1106,12 @@ function WDn() { } function Mwe() { } + function Twe() { + } function KU() { } function VU() { } - function Twe() { - } function Swe() { } function Iwe() { @@ -1044,10 +1132,10 @@ function WDn() { } function Rwe() { } - function Bwe() { - } function _we() { } + function Bwe() { + } function Jwe() { } function Gwe() { @@ -1152,10 +1240,10 @@ function WDn() { } function Rge() { } - function Bge() { - } function _ge() { } + function Bge() { + } function Jge() { } function Gge() { @@ -1222,10 +1310,10 @@ function WDn() { } function v2e() { } - function QU() { - } function k2e() { } + function QU() { + } function y2e() { } function j2e() { @@ -1262,10 +1350,10 @@ function WDn() { } function R2e() { } - function B2e() { - } function _2e() { } + function B2e() { + } function J2e() { } function G2e() { @@ -1370,16 +1458,16 @@ function WDn() { } function Rpe() { } - function Bpe() { - } function _pe() { } - function Jpe() { + function Bpe() { } - function YU() { + function Jpe() { } function Gpe() { } + function YU() { + } function Hpe() { } function qpe() { @@ -1396,16 +1484,16 @@ function WDn() { } function Vpe() { } + function Qpe() { + } function rA() { } function cA() { } - function Qpe() { + function Ype() { } function ZU() { } - function Ype() { - } function Zpe() { } function e3e() { @@ -1416,24 +1504,24 @@ function WDn() { } function i3e() { } + function r3e() { + } function ez() { } function nz() { } - function r3e() { + function c3e() { } function tz() { } function iz() { } - function c3e() { - } function u3e() { } - function F8() { - } function s3e() { } + function F8() { + } function o3e() { } function f3e() { @@ -1480,10 +1568,10 @@ function WDn() { } function I3e() { } - function rz() { - } function C3e() { } + function rz() { + } function P3e() { } function O3e() { @@ -1498,10 +1586,10 @@ function WDn() { } function R3e() { } - function B3e() { - } function _3e() { } + function B3e() { + } function J3e() { } function G3e() { @@ -1606,20 +1694,20 @@ function WDn() { } function Rme() { } - function Bme() { - } function _me() { } + function Bme() { + } function Jme() { } function Gme() { } function Hme() { } - function mhn() { - } function qme() { } + function mhn() { + } function Ume() { } function zme() { @@ -1686,16 +1774,16 @@ function WDn() { } function Eve() { } + function Ave() { + } function IP() { } function CP() { } - function Ave() { + function xve() { } function PP() { } - function xve() { - } function $ve() { } function Mve() { @@ -1714,38 +1802,38 @@ function WDn() { } function Lve() { } - function cz() { - } function Dve() { } - function vhn() { + function cz() { } function Nve() { } + function vhn() { + } function Fve() { } function Rve() { } - function Bve() { - } function _ve() { } + function Bve() { + } function Jve() { } function Gve() { } function Hve() { } + function qve() { + } function S0() { } - function qve() { + function Uve() { } function Tp() { } function uz() { } - function Uve() { - } function zve() { } function Wve() { @@ -1784,10 +1872,10 @@ function WDn() { } function h5e() { } - function je() { - } function l5e() { } + function je() { + } function a5e() { } function d5e() { @@ -1808,59 +1896,61 @@ function WDn() { } function y5e() { } - function OP() { - } function j5e() { } - function E5e() { + function OP() { } - function LP() { + function E5e() { } function A5e() { } + function LP() { + } function x5e() { } function $5e() { } + function M5e() { + } function DP() { } function uA() { } function sA() { } - function M5e() { + function T5e() { } function sz() { } - function T5e() { - } function S5e() { } - function oA() { - } function I5e() { } + function oA() { + } function C5e() { } function P5e() { } - function fA() { - } function O5e() { } + function fA() { + } function L5e() { } function D5e() { } function N5e() { } + function F5e() { + } function hA() { } - function F5e() { + function R5e() { } function oz() { } - function R5e() { + function _5e() { } function NP() { } @@ -1868,16 +1958,14 @@ function WDn() { } function B5e() { } - function _5e() { - } function J5e() { } function G5e() { } - function khn() { - } function H5e() { } + function khn() { + } function q5e() { } function U5e() { @@ -1896,12 +1984,12 @@ function WDn() { } function Y5e() { } + function Z5e() { + } function Pm() { } function FP() { } - function Z5e() { - } function e4e() { } function n4e() { @@ -1980,10 +2068,10 @@ function WDn() { } function R4e() { } - function B4e() { - } function _4e() { } + function B4e() { + } function J4e() { } function G4e() { @@ -2088,10 +2176,10 @@ function WDn() { } function R6e() { } - function B6e() { - } function _6e() { } + function B6e() { + } function J6e() { } function G6e() { @@ -2102,148 +2190,150 @@ function WDn() { } function U6e() { } - function hz() { - } function z6e() { } + function hz() { + } function W6e() { } + function X6e() { + } function RP() { D4(); } - function X6e() { - ane(); - } function K6e() { - jf(); + ane(); } function V6e() { - jee(); + jf(); } function Q6e() { - C7(); + jee(); } function Y6e() { - xy(); + C7(); } function Z6e() { - Y8(); + xy(); } function e9e() { - Q8(); + Y8(); } function n9e() { - jAe(); + Q8(); } function t9e() { - p3(); + EAe(); } function i9e() { - QOe(); + p3(); } function r9e() { - Iv(); + YOe(); } function c9e() { - B1(); + Iv(); } function u9e() { - EY(); + _1(); } function s9e() { - JCe(); + EY(); } function o9e() { - jY(); + GCe(); } function f9e() { - HCe(); + jY(); } function h9e() { - GCe(); + qCe(); } function l9e() { - qCe(); + HCe(); } function a9e() { - SLe(); + UCe(); } function d9e() { - UCe(); + ILe(); } function b9e() { - kNe(); + zCe(); } function w9e() { - ae(); + yNe(); } function g9e() { - RA(); + ae(); } function p9e() { - mNe(); + RA(); } function m9e() { vNe(); } function v9e() { - HPe(); + kNe(); } function k9e() { - pie(); + qPe(); } function y9e() { - yNe(); + pie(); } function j9e() { - WCe(); + jNe(); } function E9e() { - w3(); + XCe(); } function A9e() { - ORe(); + w3(); } function x9e() { - Ql(); + LRe(); } function $9e() { - Hne(); + Ql(); } function M9e() { - N7(); + Hne(); } function T9e() { - HNe(); + N7(); } function S9e() { - Tte(); + qNe(); } function I9e() { - j_e(); + Tte(); } function C9e() { - zCe(); + EBe(); } function P9e() { - Uqe(); + WCe(); } function O9e() { - Ac(); + zqe(); } function L9e() { - gh(); + Ac(); } function D9e() { - Bte(); + gh(); } function N9e() { - _1(); + _te(); } function F9e() { - mR(); + B1(); } function R9e() { + mR(); + } + function _9e() { MF(); } function B9e() { @@ -2252,13 +2342,13 @@ function WDn() { function lz() { tt(); } - function _9e() { + function J9e() { hT(); } - function J9e() { + function G9e() { AM(); } - function G9e() { + function H9e() { YZ(); } function az() { @@ -2268,42 +2358,39 @@ function WDn() { $N(); } function Nf() { - MTe(); + TTe(); } - function H9e() { + function q9e() { Gte(); } function bz(e) { Ze(e); } - function q9e(e) { + function U9e(e) { this.a = e; } function lA(e) { this.a = e; } - function U9e(e) { - this.a = e; - } function z9e(e) { this.a = e; } function W9e(e) { this.a = e; } - function wz(e) { + function X9e(e) { this.a = e; } - function gz(e) { + function wz(e) { this.a = e; } - function X9e(e) { + function gz(e) { this.a = e; } - function BP(e) { + function K9e(e) { this.a = e; } - function K9e(e) { + function _P(e) { this.a = e; } function V9e(e) { @@ -2316,15 +2403,15 @@ function WDn() { this.a = e; } function Z9e(e) { - this.c = e; + this.a = e; } function eke(e) { - this.a = e; + this.c = e; } - function _P(e) { + function nke(e) { this.a = e; } - function nke(e) { + function BP(e) { this.a = e; } function tke(e) { @@ -2333,27 +2420,27 @@ function WDn() { function ike(e) { this.a = e; } - function JP(e) { - this.a = e; - } function rke(e) { this.a = e; } - function cke(e) { + function JP(e) { this.a = e; } - function GP(e) { + function cke(e) { this.a = e; } function uke(e) { this.a = e; } - function HP(e) { + function GP(e) { this.a = e; } function ske(e) { this.a = e; } + function HP(e) { + this.a = e; + } function oke(e) { this.a = e; } @@ -2393,6 +2480,9 @@ function WDn() { function kke(e) { this.a = e; } + function yke(e) { + this.a = e; + } function pz(e) { this.a = e; } @@ -2411,7 +2501,7 @@ function WDn() { function kd() { this.a = []; } - function yke(e, n) { + function jke(e, n) { e.a = n; } function yhn(e, n) { @@ -2477,7 +2567,7 @@ function WDn() { function Lhn(e, n) { e.b = n; } - function jke(e, n) { + function Eke(e, n) { e.e = n; } function Dhn(e, n) { @@ -2501,10 +2591,10 @@ function WDn() { function zP(e, n) { e.b = n; } - function Bhn(e, n) { + function _hn(e, n) { e.n = n; } - function _hn(e, n) { + function Bhn(e, n) { e.a = n; } function Jhn(e, n) { @@ -2552,10 +2642,10 @@ function WDn() { function nln(e, n) { e.b = n; } - function Eke(e) { + function Ake(e) { e.b = e.a; } - function Ake(e) { + function xke(e) { e.c = e.d.d; } function xz(e) { @@ -2570,13 +2660,13 @@ function WDn() { function $z(e) { this.a = e; } - function B8(e) { + function _8(e) { this.a = e; } - function _8(e) { + function B8(e) { this.a = e; } - function xke(e) { + function $ke(e) { this.a = e; } function Mz(e) { @@ -2597,7 +2687,7 @@ function WDn() { function zb(e) { this.a = e; } - function $ke(e) { + function Mke(e) { this.a = e; } function XP(e) { @@ -2615,16 +2705,16 @@ function WDn() { function Zn(e) { this.a = e; } - function Mke(e) { + function Tke(e) { this.a = e; } function Sz(e) { this.a = e; } - function Tke(e) { + function Ske(e) { this.a = e; } - function Ske(e) { + function Ike(e) { this.a = e; } function Iz(e) { @@ -2639,7 +2729,7 @@ function WDn() { function x(e) { this.c = e; } - function Ike(e) { + function Cke(e) { this.c = e; } function Pz(e) { @@ -2657,16 +2747,13 @@ function WDn() { function Lm(e) { this.a = e; } - function Cke(e) { - this.a = e; - } function Pke(e) { this.a = e; } - function Dm(e) { + function Oke(e) { this.a = e; } - function Oke(e) { + function Dm(e) { this.a = e; } function Lke(e) { @@ -2684,10 +2771,10 @@ function WDn() { function Rke(e) { this.a = e; } - function Bke(e) { + function _ke(e) { this.a = e; } - function _ke(e) { + function Bke(e) { this.a = e; } function Jke(e) { @@ -2699,28 +2786,28 @@ function WDn() { function Hke(e) { this.a = e; } - function S4(e) { + function qke(e) { this.a = e; } - function qke(e) { + function S4(e) { this.a = e; } function Uke(e) { this.a = e; } - function wA(e) { + function zke(e) { this.a = e; } - function zke(e) { + function wA(e) { this.a = e; } function Wke(e) { this.a = e; } - function Nz(e) { + function Xke(e) { this.a = e; } - function Xke(e) { + function Nz(e) { this.a = e; } function Kke(e) { @@ -2729,13 +2816,16 @@ function WDn() { function Vke(e) { this.a = e; } + function Qke(e) { + this.a = e; + } function Fz(e) { this.a = e; } function Rz(e) { this.a = e; } - function Bz(e) { + function _z(e) { this.a = e; } function I4(e) { @@ -2744,16 +2834,13 @@ function WDn() { function Nm(e) { this.a = e; } - function Qke(e) { + function Yke(e) { this.a = e; } function Sp(e) { this.a = e; } - function _z(e) { - this.a = e; - } - function Yke(e) { + function Bz(e) { this.a = e; } function Zke(e) { @@ -2786,10 +2873,10 @@ function WDn() { function o8e(e) { this.a = e; } - function Jz(e) { + function f8e(e) { this.a = e; } - function f8e(e) { + function Jz(e) { this.a = e; } function h8e(e) { @@ -2879,10 +2966,10 @@ function WDn() { function R8e(e) { this.a = e; } - function B8e(e) { + function _8e(e) { this.a = e; } - function _8e(e) { + function B8e(e) { this.a = e; } function J8e(e) { @@ -2898,10 +2985,10 @@ function WDn() { this.a = e; } function U8e(e) { - this.b = e; + this.a = e; } function z8e(e) { - this.a = e; + this.b = e; } function W8e(e) { this.a = e; @@ -2919,10 +3006,10 @@ function WDn() { this.a = e; } function Y8e(e) { - this.c = e; + this.a = e; } function Z8e(e) { - this.a = e; + this.c = e; } function eye(e) { this.a = e; @@ -3002,13 +3089,13 @@ function WDn() { function xye(e) { this.a = e; } - function Bl(e) { + function $ye(e) { this.a = e; } - function Ug(e) { + function _l(e) { this.a = e; } - function $ye(e) { + function Ug(e) { this.a = e; } function Mye(e) { @@ -3047,10 +3134,10 @@ function WDn() { function Rye(e) { this.a = e; } - function Bye(e) { + function _ye(e) { this.a = e; } - function _ye(e) { + function Bye(e) { this.a = e; } function Jye(e) { @@ -3086,14 +3173,14 @@ function WDn() { function Qye(e) { this.a = e; } - function gA(e) { + function Yye(e) { this.a = e; } - function Yye(e) { - this.f = e; + function gA(e) { + this.a = e; } function Zye(e) { - this.a = e; + this.f = e; } function e7e(e) { this.a = e; @@ -3173,6 +3260,9 @@ function WDn() { function x7e(e) { this.a = e; } + function $7e(e) { + this.a = e; + } function VP(e) { this.a = e; } @@ -3182,9 +3272,6 @@ function WDn() { function It(e) { this.b = e; } - function $7e(e) { - this.a = e; - } function M7e(e) { this.a = e; } @@ -3204,18 +3291,21 @@ function WDn() { this.a = e; } function O7e(e) { - this.b = e; + this.a = e; } function L7e(e) { + this.b = e; + } + function D7e(e) { this.a = e; } function J8(e) { this.a = e; } - function D7e(e) { + function N7e(e) { this.a = e; } - function N7e(e) { + function F7e(e) { this.a = e; } function pA(e) { @@ -3236,10 +3326,10 @@ function WDn() { function QP(e) { this.a = e; } - function F7e(e) { + function R7e(e) { this.d = e; } - function R7e(e) { + function _7e(e) { this.a = e; } function qz(e) { @@ -3261,14 +3351,14 @@ function WDn() { Fc(this); } function YP() { - TIe(this); + SIe(this); } function B7e() { } function C0() { this.c = D0e; } - function _7e(e, n) { + function J7e(e, n) { e.b += n; } function iln(e, n) { @@ -3304,16 +3394,16 @@ function WDn() { function Ip(e) { this.a = Jn(e); } - function J7e() { + function G7e() { this.a = this; } function yd() { - cMe.call(this); + uMe.call(this); } function aln(e) { e.b.Mf(e.e); } - function G7e(e) { + function H7e(e) { e.b = new wO(); } function C4(e, n) { @@ -3322,7 +3412,7 @@ function WDn() { function P4(e, n) { e.a = n - e.a; } - function H7e(e, n) { + function q7e(e, n) { n.gd(e.a); } function dln(e, n) { @@ -3331,7 +3421,7 @@ function WDn() { function sn(e, n) { e.push(n); } - function q7e(e, n) { + function U7e(e, n) { e.sort(n); } function bln(e, n, t) { @@ -3343,7 +3433,7 @@ function WDn() { function wln() { AW(), FOn(); } - function U7e(e) { + function z7e(e) { av(), JJ.je(e); } function zz() { @@ -3353,15 +3443,15 @@ function WDn() { yd.call(this); } function Wz() { - cMe.call(this); + uMe.call(this); } - function z7e() { + function W7e() { yd.call(this); } function lo() { yd.call(this); } - function W7e() { + function X7e() { yd.call(this); } function H8() { @@ -3379,14 +3469,14 @@ function WDn() { function oc() { yd.call(this); } - function X7e() { + function K7e() { yd.call(this); } function yA() { this.Bb |= 256; } - function K7e() { - this.b = new r$e(); + function V7e() { + this.b = new c$e(); } function Xz() { Xz = G, new Tn(); @@ -3424,7 +3514,7 @@ function WDn() { function vi() { this.a = new Tn(); } - function V7e() { + function Q7e() { this.a = new Tn(); } function EA() { @@ -3437,16 +3527,16 @@ function WDn() { this.a = new le(); } function jd() { - this.a = new JOe(); + this.a = new GOe(); } function nO() { - this.a = new wAe(); + this.a = new gAe(); } function Qz() { - this.a = new CCe(); + this.a = new PCe(); } function Yz() { - this.a = new QMe(); + this.a = new YMe(); } function Ro() { this.a = new Bbe(); @@ -3454,43 +3544,43 @@ function WDn() { function Zz() { this.a = new WU(); } - function Q7e() { - this.a = new hPe(); - } function Y7e() { - this.a = new le(); + this.a = new lPe(); } function Z7e() { this.a = new le(); } - function eW() { + function eje() { this.a = new le(); } - function eje() { + function eW() { this.a = new le(); } function nje() { - this.d = new le(); + this.a = new le(); } function tje() { - this.a = new vi(); + this.d = new le(); } function ije() { - this.a = new Tn(); + this.a = new vi(); } function rje() { - this.b = new Tn(); + this.a = new Tn(); } function cje() { + this.b = new Tn(); + } + function uje() { this.b = new le(); } function nW() { this.e = new le(); } - function uje() { - this.a = new c9e(); - } function sje() { + this.a = new u9e(); + } + function oje() { this.d = new le(); } function O4() { @@ -3505,29 +3595,26 @@ function WDn() { function tW() { Op.call(this); } - function oje() { + function fje() { zz.call(this); } function AA() { EA.call(this); } - function fje() { - Px.call(this); - } function hje() { - eW.call(this); + Px.call(this); } function lje() { - le.call(this); + eW.call(this); } function aje() { - oCe.call(this); + le.call(this); } function dje() { - oCe.call(this); + fCe.call(this); } function bje() { - uW.call(this); + fCe.call(this); } function wje() { uW.call(this); @@ -3536,25 +3623,25 @@ function WDn() { uW.call(this); } function pje() { + uW.call(this); + } + function mje() { sW.call(this); } function L4() { - $5e.call(this); + M5e.call(this); } function iW() { - $5e.call(this); + M5e.call(this); } function ms() { Dt.call(this); } - function mje() { - Pje.call(this); - } function vje() { - Pje.call(this); + Oje.call(this); } function kje() { - Tn.call(this); + Oje.call(this); } function yje() { Tn.call(this); @@ -3562,13 +3649,16 @@ function WDn() { function jje() { Tn.call(this); } + function Eje() { + Tn.call(this); + } function iO() { - bNe.call(this); + wNe.call(this); } - function Eje() { + function Aje() { vi.call(this); } - function Aje() { + function xje() { yA.call(this); } function rO() { @@ -3583,31 +3673,31 @@ function WDn() { function uO() { Tn.call(this); } - function xje() { + function $je() { Tn.call(this); } function cW() { hA.call(this); } - function $je() { + function Mje() { cW.call(this); } - function Mje() { + function Tje() { hA.call(this); } - function Tje() { + function Sje() { hz.call(this); } function uW() { this.a = new vi(); } - function Sje() { + function Ije() { this.a = new Tn(); } - function Ije() { + function Cje() { this.a = new le(); } - function Cje() { + function Pje() { this.j = new le(); } function sW() { @@ -3616,44 +3706,44 @@ function WDn() { function Lp() { this.a = new Dt(); } - function Pje() { - this.a = new O5e(); + function Oje() { + this.a = new L5e(); } function oW() { - this.a = new gve(); + this.a = new pve(); } - function Oje() { - this.a = new IEe(); + function Lje() { + this.a = new CEe(); } function D4() { - D4 = G, OJ = new fe(); + D4 = G, OJ = new oe(); } function sO() { - sO = G, LJ = new Dje(); + sO = G, LJ = new Nje(); } function oO() { - oO = G, DJ = new Lje(); - } - function Lje() { - GP.call(this, ""); + oO = G, DJ = new Dje(); } function Dje() { GP.call(this, ""); } - function Nje(e) { - qDe.call(this, e); + function Nje() { + GP.call(this, ""); } function Fje(e) { - qDe.call(this, e); + UDe.call(this, e); + } + function Rje(e) { + UDe.call(this, e); } function fW(e) { wz.call(this, e); } function hW(e) { - HEe.call(this, e); + qEe.call(this, e); } function yln(e) { - HEe.call(this, e); + qEe.call(this, e); } function jln(e) { hW.call(this, e); @@ -3664,16 +3754,16 @@ function WDn() { function Aln(e) { hW.call(this, e); } - function Rje(e) { + function _je(e) { qD.call(this, e); } function Bje(e) { qD.call(this, e); } - function _je(e) { - G$e.call(this, e); - } function Jje(e) { + H$e.call(this, e); + } + function Gje(e) { CW.call(this, e); } function N4(e) { @@ -3682,13 +3772,13 @@ function WDn() { function lW(e) { DA.call(this, e); } - function Gje(e) { + function Hje(e) { DA.call(this, e); } function fc(e) { - NSe.call(this, e); + FSe.call(this, e); } - function Hje(e) { + function qje(e) { fc.call(this, e); } function Dp() { @@ -3697,11 +3787,11 @@ function WDn() { function fO(e) { Km(), this.a = e; } - function qje(e) { + function Uje(e) { e.b = null, e.c = 0; } function xln(e, n) { - e.e = n, qHe(e, n); + e.e = n, UHe(e, n); } function $ln(e, n) { e.a = n, REn(e); @@ -3715,13 +3805,13 @@ function WDn() { function Tln(e, n) { c0n(n.i, e.n); } - function Uje(e, n) { + function zje(e, n) { v6n(e).Ad(n); } function Sln(e, n) { return e * e / n; } - function zje(e, n) { + function Wje(e, n) { return e.g - n.g; } function Iln(e, n) { @@ -3733,8 +3823,8 @@ function WDn() { function Pln(e) { return new gw(e); } - function Wje() { - Wje = G, ise = new Z(); + function Xje() { + Xje = G, ise = new Z(); } function aW() { aW = G, rse = new Lt(); @@ -3743,13 +3833,13 @@ function WDn() { xA = G, fk = new jn(); } function $A() { - $A = G, FJ = new J$e(); + $A = G, FJ = new G$e(); } - function Xje() { - Xje = G, zQe = new Jt(); + function Kje() { + Kje = G, WQe = new Jt(); } function MA(e) { - BY(), this.a = e; + _Y(), this.a = e; } function lO(e) { XL(), this.f = e; @@ -3757,8 +3847,8 @@ function WDn() { function b1(e) { XL(), this.f = e; } - function Kje(e) { - $Te(), this.a = e; + function Vje(e) { + MTe(), this.a = e; } function TA(e) { fc.call(this, e); @@ -3766,11 +3856,11 @@ function WDn() { function lu(e) { fc.call(this, e); } - function Vje(e) { + function Qje(e) { fc.call(this, e); } function aO(e) { - NSe.call(this, e); + FSe.call(this, e); } function Rm(e) { fc.call(this, e); @@ -3781,7 +3871,7 @@ function WDn() { function qr(e) { fc.call(this, e); } - function Qje(e) { + function Yje(e) { fc.call(this, e); } function Np(e) { @@ -3814,7 +3904,7 @@ function WDn() { function ve(e) { return Ze(e), e; } - function _(e) { + function B(e) { return Ze(e), e; } function q8(e) { @@ -3850,13 +3940,13 @@ function WDn() { function gO() { this.a = zn(Jn(mu)); } - function Yje() { + function Zje() { throw $(new qn()); } function wW() { throw $(new qn()); } - function Zje() { + function eEe() { throw $(new qn()); } function Nln() { @@ -3872,16 +3962,16 @@ function WDn() { SA = G, av(); } function xa() { - _8.call(this, ""); + B8.call(this, ""); } - function B4() { - _8.call(this, ""); + function _4() { + B8.call(this, ""); } function w1() { - _8.call(this, ""); + B8.call(this, ""); } function Rp() { - _8.call(this, ""); + B8.call(this, ""); } function gW(e) { lu.call(this, e); @@ -3892,19 +3982,19 @@ function WDn() { function Dh(e) { on.call(this, e); } - function Bm(e) { + function _m(e) { Om.call(this, e); } - function eEe(e) { - Bm.call(this, e); + function nEe(e) { + _m.call(this, e); } function pO(e) { $x.call(this, e); } - function Bln(e, n, t) { + function _ln(e, n, t) { e.c.Cf(n, t); } - function _ln(e, n, t) { + function Bln(e, n, t) { n.Ad(e.a[t]); } function Jln(e, n, t) { @@ -3922,25 +4012,25 @@ function WDn() { function IA(e, n) { return rN(e, n); } - function T(e, n) { - return FCe(e, n); + function S(e, n) { + return RCe(e, n); } function Uln(e, n) { return n in e.a; } - function nEe(e) { + function tEe(e) { return e.a ? e.b : 0; } function zln(e) { return e.a ? e.b : 0; } - function tEe(e, n) { + function iEe(e, n) { return e.f = n, e; } function Wln(e, n) { return e.b = n, e; } - function iEe(e, n) { + function rEe(e, n) { return e.c = n, e; } function Xln(e, n) { @@ -3970,29 +4060,29 @@ function WDn() { function Yln(e, n) { e.b = new vr(n); } - function rEe(e, n) { + function cEe(e, n) { e._d(n), n.$d(e); } function Zln(e, n) { zs(), n.n.a += e; } function ean(e, n) { - B1(), ac(n, e); + _1(), ac(n, e); } function jW(e) { - _Ie.call(this, e); + JIe.call(this, e); } - function cEe(e) { - _Ie.call(this, e); + function uEe(e) { + JIe.call(this, e); } - function uEe() { + function sEe() { SX.call(this, ""); } - function sEe() { + function oEe() { this.b = 0, this.a = 0; } - function oEe() { - oEe = G, cYe = P7n(); + function fEe() { + fEe = G, uYe = P7n(); } function Kb(e, n) { return e.b = n, e; @@ -4012,10 +4102,10 @@ function WDn() { function EW(e, n) { return e.f = n, e; } - function _4(e, n) { + function B4(e, n) { return e.a = n, e; } - function _m(e, n) { + function Bm(e, n) { return e.b = n, e; } function Jm(e, n) { @@ -4063,13 +4153,13 @@ function WDn() { function uan(e, n) { return e ? 0 : n - 1; } - function fEe(e, n) { + function hEe(e, n) { return e ? 0 : n - 1; } function san(e, n) { return e ? n - 1 : 0; } - function hEe(e, n) { + function lEe(e, n) { return e.k = n, e; } function oan(e, n) { @@ -4084,26 +4174,26 @@ function WDn() { function g1(e) { V0.call(this, e); } - function lEe(e) { + function aEe(e) { yD.call(this, e); } - function aEe(e) { + function dEe(e) { yD.call(this, e); } - function dEe() { - dEe = G, Gi = Z7n(); + function bEe() { + bEe = G, Gi = Z7n(); } function p1() { - p1 = G, bon = Hyn(); + p1 = G, won = Hyn(); } function AW() { - AW = G, j0 = _6(); + AW = G, j0 = B6(); } function Gm() { Gm = G, L0e = qyn(); } - function bEe() { - bEe = G, Yon = Uyn(); + function wEe() { + wEe = G, Zon = Uyn(); } function xW() { xW = G, Dc = DEn(); @@ -4111,16 +4201,16 @@ function WDn() { function Ff(e) { return e.e && e.e(); } - function wEe(e, n) { - return e.c._b(n); - } function gEe(e, n) { - return bRe(e.b, n); + return e.c._b(n); } function pEe(e, n) { - return Lan(e.a, n); + return wRe(e.b, n); } function mEe(e, n) { + return Lan(e.a, n); + } + function vEe(e, n) { e.b = 0, $w(e, n); } function fan(e, n) { @@ -4142,10 +4232,7 @@ function WDn() { return Gl(e), e.o; } function $W(e) { - yze(), VOn(this, e); - } - function vEe() { - throw $(new qn()); + jze(), VOn(this, e); } function kEe() { throw $(new qn()); @@ -4162,8 +4249,11 @@ function WDn() { function AEe() { throw $(new qn()); } + function xEe() { + throw $(new qn()); + } function OA(e) { - this.a = new _p(e); + this.a = new Bp(e); } function Ma(e) { this.a = new ZL(e); @@ -4189,7 +4279,7 @@ function WDn() { function U8(e) { return e.b != e.d.c; } - function xEe(e) { + function $Ee(e) { return e.l | e.m << 22; } function vO(e) { @@ -4201,36 +4291,33 @@ function WDn() { function dan(e) { return e ? e.i : null; } - function $Ee(e, n) { + function MEe(e, n) { return dMn(e, n); } function Hm(e) { return A1(e), e.a; } - function MEe(e) { - e.c ? uqe(e) : sqe(e); - } - function TEe() { - this.b = new v9(Jle); + function TEe(e) { + e.c ? sqe(e) : oqe(e); } function SEe() { - this.b = new v9(Nq); + this.b = new v9(Jle); } function IEe() { this.b = new v9(Nq); } function CEe() { - this.a = new v9(jae); + this.b = new v9(Nq); } function PEe() { + this.a = new v9(jae); + } + function OEe() { this.a = new v9(zae); } function LA(e) { this.a = 0, this.b = e; } - function OEe() { - throw $(new qn()); - } function LEe() { throw $(new qn()); } @@ -4246,10 +4333,10 @@ function WDn() { function REe() { throw $(new qn()); } - function BEe() { + function _Ee() { throw $(new qn()); } - function _Ee() { + function BEe() { throw $(new qn()); } function JEe() { @@ -4258,6 +4345,9 @@ function WDn() { function GEe() { throw $(new qn()); } + function HEe() { + throw $(new qn()); + } function ban() { throw $(new oc()); } @@ -4265,7 +4355,7 @@ function WDn() { throw $(new oc()); } function z8(e) { - this.a = new hAe(e); + this.a = new lAe(e); } function qm(e, n) { this.e = e, this.d = n; @@ -4273,8 +4363,8 @@ function WDn() { function IW(e, n) { this.b = e, this.c = n; } - function HEe(e) { - _X(e.dc()), this.c = e; + function qEe(e) { + BX(e.dc()), this.c = e; } function W8(e, n) { u2.call(this, e, n); @@ -4282,9 +4372,6 @@ function WDn() { function Um(e, n) { W8.call(this, e, n); } - function qEe(e, n) { - this.a = e, this.b = n; - } function UEe(e, n) { this.a = e, this.b = n; } @@ -4304,24 +4391,27 @@ function WDn() { this.a = e, this.b = n; } function QEe(e, n) { - this.b = e, this.a = n; + this.a = e, this.b = n; } function YEe(e, n) { this.b = e, this.a = n; } + function ZEe(e, n) { + this.b = e, this.a = n; + } function O0(e, n) { this.g = e, this.i = n; } - function ZEe(e, n) { + function eAe(e, n) { this.a = e, this.b = n; } - function eAe(e, n) { + function nAe(e, n) { this.b = e, this.a = n; } - function nAe(e, n) { + function tAe(e, n) { this.a = e, this.b = n; } - function tAe(e, n) { + function iAe(e, n) { this.b = e, this.a = n; } function DA(e) { @@ -4330,46 +4420,46 @@ function WDn() { function NA(e) { this.b = u(Jn(e), 92); } - function _n(e, n) { + function Bn(e, n) { this.f = e, this.g = n; } function kO(e, n) { this.a = e, this.b = n; } - function iAe(e, n) { + function rAe(e, n) { this.a = e, this.f = n; } - function rAe(e) { + function cAe(e) { this.a = u(Jn(e), 16); } function CW(e) { this.a = u(Jn(e), 16); } - function cAe(e, n) { + function uAe(e, n) { this.b = e, this.c = n; } - function uAe(e) { + function sAe(e) { this.a = u(Jn(e), 92); } function gan(e, n) { this.a = e, this.b = n; } - function sAe(e, n) { + function oAe(e, n) { this.a = e, this.b = n; } - function oAe(e, n) { + function fAe(e, n) { return eu(e.b, n); } - function fAe(e, n) { + function hAe(e, n) { return e > n && n < C9; } function X8(e) { return Ph[e] != -1; } function K8(e) { - return !e || mIe(e); + return !e || vIe(e); } - function hAe(e) { + function lAe(e) { K5n(this, e, nEn()); } function pan(e, n) { @@ -4387,59 +4477,59 @@ function WDn() { function OW(e, n) { return e.b.Oc(n); } - function lAe(e, n) { + function aAe(e, n) { return e.c.uc(n); } - function aAe(e, n) { + function dAe(e, n) { return e.b.Gc(n); } - function dAe(e, n) { + function bAe(e, n) { return jt(e.c, n); } function G4(e) { return e.f.c + e.i.c; } - function Bo(e, n) { + function _o(e, n) { return e.a._b(n); } function van(e) { - return iIe(), e ? UQe : qQe; + return rIe(), e ? zQe : UQe; } function yO(e, n) { this.a = e, this.b = n; } - function Bp(e) { - this.c = e, vDe(this); + function _p(e) { + this.c = e, kDe(this); } function Dt() { - O$e(this), Fs(this); + L$e(this), Fs(this); } - function bAe() { + function wAe() { PJ == null && (PJ = []); } - function _p(e) { - DFe.call(this, e, 0); + function Bp(e) { + NFe.call(this, e, 0); } - function wAe() { + function gAe() { ZL.call(this, null); } function Ta() { - Ta = G, VQe = new Cs(); + Ta = G, QQe = new Cs(); } function zm() { zm = G, G5 = new ih(); } function Zb() { - Zb = G, WJ = new t$e(); + Zb = G, WJ = new i$e(); } function Wm() { - Wm = G, Cse = new $be(); + Wm = G, Cse = new Mbe(); } function Ad() { - Ad = G, V3 = new Mbe(); + Ad = G, V3 = new Tbe(); } function FA() { - FA = G, sYe = new i$e(); + FA = G, oYe = new r$e(); } function LW() { eN.call(this, null); @@ -4465,13 +4555,13 @@ function WDn() { function Ean(e, n) { return e.a.f = n, e; } - function gAe(e, n) { + function pAe(e, n) { return e.a.d = n, e; } - function pAe(e, n) { + function mAe(e, n) { return e.a.g = n, e; } - function mAe(e, n) { + function vAe(e, n) { return e.a.j = n, e; } function sf(e, n) { @@ -4493,61 +4583,61 @@ function WDn() { return e.b = !1, e; } function DW() { - DW = G, toe = new gwe(); + DW = G, toe = new pwe(); } - function vAe() { - vAe = G, pYe = new Obe(); + function kAe() { + kAe = G, mYe = new Lbe(); } function NW() { - NW = G, RZe = new owe(); + NW = G, _Ze = new fwe(); } function Q8() { - Q8 = G, nen = new ege(); + Q8 = G, ten = new nge(); } - function kAe() { - kAe = G, BZe = new awe(); + function yAe() { + yAe = G, BZe = new dwe(); } function FW() { - FW = G, _Ze = new MSe(); + FW = G, JZe = new TSe(); } - function yAe() { - yAe = G, KZe = new $we(); + function jAe() { + jAe = G, VZe = new Mwe(); } function H4() { - H4 = G, QZe = new Mwe(); + H4 = G, YZe = new Twe(); } - function jAe() { - jAe = G, cen = new Fge(); + function EAe() { + EAe = G, uen = new Rge(); } function Y8() { - Y8 = G, een = new er(); + Y8 = G, nen = new er(); } function q4() { - q4 = G, den = new ype(); + q4 = G, ben = new jpe(); } function RA() { - RA = G, K2 = new Upe(); - } - function BA() { - BA = G, Pin = new m5e(); + RA = G, K2 = new zpe(); } function _A() { - _A = G, Fq = new AAe(); + _A = G, Oin = new v5e(); } - function EAe() { - pNe(), this.c = new wO(); + function BA() { + BA = G, Fq = new xAe(); + } + function AAe() { + mNe(), this.c = new wO(); } function JA() { - JA = G, Rq = new $Me(); + JA = G, Rq = new MMe(); } function U4() { - U4 = G, EE = new yIe(); + U4 = G, EE = new jIe(); } function xan() { XS != 0 && (XS = 0), KS = -1; } - function AAe() { - _n.call(this, vXe, 0); + function xAe() { + Bn.call(this, kXe, 0); } function $an(e, n, t, i) { m8n(e, i, n, t); @@ -4571,48 +4661,48 @@ function WDn() { return e.a = n.g, e; } function xd() { - xd = G, aon = new x5e(); - } - function xAe() { - xAe = G, kon = new N5e(); + xd = G, don = new $5e(); } function $Ae() { - $Ae = G, Oon = new yje(); + $Ae = G, yon = new F5e(); + } + function MAe() { + MAe = G, Lon = new jje(); } function m1() { m1 = G, tf = new rW(); } - function MAe() { - MAe = G, Lon = new jje(); + function TAe() { + TAe = G, Don = new Eje(); } function RW() { - RW = G, O0e = new xje(); + RW = G, O0e = new $je(); } function GA() { GA = G, oP = new Tn(); } - function BW() { - BW = G, q0e = new le(); + function _W() { + _W = G, q0e = new le(); } function X4() { X4 = G, $U = new B$e(); } function Sa() { - Sa = G, VE = new _$e(); + Sa = G, VE = new J$e(); } function AO() { - AO = G, Xon = new q4e(); + AO = G, Kon = new U4e(); } function Sr() { - Sr = G, Von = new U4e(); + Sr = G, Qon = new z4e(); } function v1() { - v1 = G, md = new W6e(); + v1 = G, md = new X6e(); } function HA() { this.q = new m.Date(); } - function _W(e) { + function BW(e) { this.a = u(Jn(e), 229); } function qA(e) { @@ -4630,7 +4720,7 @@ function WDn() { function Oan(e) { return e.b ? e.b : e.a; } - function TAe(e, n) { + function SAe(e, n) { return Ayn(e.a, n); } function Lan(e, n) { @@ -4648,11 +4738,11 @@ function WDn() { function MO(e, n) { return iu(e, n) < 0; } - function SAe(e, n) { + function IAe(e, n) { return zL(e.a, n); } function Nan(e, n) { - PCe.call(this, e, n); + OCe.call(this, e, n); } function JW(e) { bD(), Qjn.call(this, e); @@ -4661,38 +4751,35 @@ function WDn() { bD(), JW.call(this, e); } function HW(e) { - HL(), G$e.call(this, e); + HL(), H$e.call(this, e); } function qW(e, n) { - ASe(e, e.length, n); + xSe(e, e.length, n); } function Z8(e, n) { - ZSe(e, e.length, n); + eIe(e, e.length, n); } function K4(e, n) { return e.a.get(n); } - function IAe(e, n) { + function CAe(e, n) { return eu(e.e, n); } function UW(e) { return Ze(e), !1; } - function CAe() { - return oEe(), new cYe(); + function PAe() { + return fEe(), new uYe(); } function ey(e) { return An(e.a), e.b; } - function PAe(e, n) { + function OAe(e, n) { this.b = e, this.a = n; } function UA(e, n) { this.d = e, this.e = n; } - function OAe(e, n) { - this.a = e, this.b = n; - } function LAe(e, n) { this.a = e, this.b = n; } @@ -4703,33 +4790,36 @@ function WDn() { this.a = e, this.b = n; } function FAe(e, n) { + this.a = e, this.b = n; + } + function RAe(e, n) { this.b = e, this.a = n; } function Jp(e, n) { this.a = e, this.b = n; } function zA(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function TO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function SO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function IO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function CO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function WA(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function XA(e) { He.call(this, e, 21); } - function RAe(e, n) { + function _Ae(e, n) { this.b = e, this.a = n; } function zW(e, n) { @@ -4739,13 +4829,13 @@ function WDn() { this.b = e, this.a = n; } function XW(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function PO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function ny(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function KW(e, n) { this.b = e, this.a = n; @@ -4754,28 +4844,28 @@ function WDn() { this.c = e, this.d = n; } function KA(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function VA(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function BAe(e, n) { this.e = e, this.d = n; } function Gp(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } - function _Ae(e, n) { + function JAe(e, n) { this.a = e, this.b = n; } function VW(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function ji(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function QA(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function V4(e, n, t) { e.splice(n, 0, t); @@ -4786,10 +4876,10 @@ function WDn() { function Ran(e, n, t) { n.Ne(e.a.We(t)); } - function Ban(e, n, t) { + function _an(e, n, t) { n.Bd(e.a.Xe(t)); } - function _an(e, n, t) { + function Ban(e, n, t) { n.Ad(e.a.Kb(t)); } function Jan(e, n) { @@ -4798,9 +4888,6 @@ function WDn() { function Gan(e, n) { return Yu(e.e, n); } - function JAe(e, n) { - this.a = e, this.b = n; - } function GAe(e, n) { this.a = e, this.b = n; } @@ -4823,7 +4910,7 @@ function WDn() { this.a = e, this.b = n; } function KAe(e, n) { - this.b = e, this.a = n; + this.a = e, this.b = n; } function VAe(e, n) { this.b = e, this.a = n; @@ -4832,121 +4919,121 @@ function WDn() { this.b = e, this.a = n; } function YAe(e, n) { + this.b = e, this.a = n; + } + function ZAe(e, n) { this.b = n, this.c = e; } function YA(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function ty(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function QW(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function Q4(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function ZA(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function OO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function LO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function Y4(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function Z4(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function YW(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function Xg(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function DO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function e6(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function ZW(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function nw(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function NO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function FO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function RO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function eX(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function iy(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function nX(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function Kg(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } - function BO(e, n) { - _n.call(this, e, n); + function _O(e, n) { + Bn.call(this, e, n); } function ex(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function ry(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function tw(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function nx(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function tX(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } - function _O(e, n) { - _n.call(this, e, n); + function BO(e, n) { + Bn.call(this, e, n); } function JO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function GO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function HO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function qO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function UO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function tx(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } - function ZAe(e, n) { + function exe(e, n) { this.b = e, this.a = n; } function iX(e, n) { - _n.call(this, e, n); - } - function exe(e, n) { - this.a = e, this.b = n; + Bn.call(this, e, n); } function nxe(e, n) { this.a = e, this.b = n; @@ -4954,13 +5041,16 @@ function WDn() { function txe(e, n) { this.a = e, this.b = n; } + function ixe(e, n) { + this.a = e, this.b = n; + } function rX(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function cX(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } - function ixe(e, n) { + function rxe(e, n) { this.a = e, this.b = n; } function Han(e, n) { @@ -4973,43 +5063,40 @@ function WDn() { m.clearTimeout(e); } function uX(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function sX(e, n) { - _n.call(this, e, n); - } - function rxe(e, n) { - this.a = e, this.b = n; + Bn.call(this, e, n); } function cxe(e, n) { this.a = e, this.b = n; } function uxe(e, n) { - this.b = e, this.d = n; + this.a = e, this.b = n; } function sxe(e, n) { - this.a = e, this.b = n; + this.b = e, this.d = n; } function oxe(e, n) { + this.a = e, this.b = n; + } + function fxe(e, n) { this.b = e, this.a = n; } function ix(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function L0(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function WO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function rx(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function oX(e, n) { - _n.call(this, e, n); - } - function fxe(e, n) { - this.b = e, this.a = n; + Bn.call(this, e, n); } function hxe(e, n) { this.b = e, this.a = n; @@ -5020,156 +5107,156 @@ function WDn() { function axe(e, n) { this.b = e, this.a = n; } + function dxe(e, n) { + this.b = e, this.a = n; + } function fX(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function cy(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function hX(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function XO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function cx(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function KO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function VO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function ux(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function QO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function lX(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function YO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function ZO(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function uy(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function eL(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function aX(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function sy(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function dX(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function bX(e, n) { this.a = e, this.b = n; } - function dxe(e, n) { - this.a = e, this.b = n; - } function bxe(e, n) { this.a = e, this.b = n; } - function wxe() { - Dx(), this.a = new vK(); + function wxe(e, n) { + this.a = e, this.b = n; } function gxe() { - AT(), this.a = new vi(); + Dx(), this.a = new vK(); } function pxe() { - ID(), this.b = new vi(); + AT(), this.a = new vi(); } function mxe() { - uQ(), hV.call(this); + ID(), this.b = new vi(); } function vxe() { - cQ(), sCe.call(this); + uQ(), hV.call(this); } function kxe() { - cQ(), sCe.call(this); + cQ(), oCe.call(this); + } + function yxe() { + cQ(), oCe.call(this); } function oy(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function Hp(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function n6(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function t6(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function fy(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function sx(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function nL(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function ox(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function i6(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function tL(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function fx(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function Vg(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function hy(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function r6(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function c6(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function iL(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function ly(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function hx(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function Qg(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function rL(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function cL(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function lx(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function ue(e, n) { this.a = e, this.b = n; } - function yxe(e, n) { - this.a = e, this.b = n; - } function jxe(e, n) { this.a = e, this.b = n; } @@ -5185,10 +5272,10 @@ function WDn() { function $xe(e, n) { this.a = e, this.b = n; } - function Ar(e, n) { + function Mxe(e, n) { this.a = e, this.b = n; } - function Mxe(e, n) { + function Ar(e, n) { this.a = e, this.b = n; } function Txe(e, n) { @@ -5207,7 +5294,7 @@ function WDn() { this.a = e, this.b = n; } function Oxe(e, n) { - this.b = e, this.a = n; + this.a = e, this.b = n; } function Lxe(e, n) { this.b = e, this.a = n; @@ -5219,48 +5306,51 @@ function WDn() { this.b = e, this.a = n; } function Fxe(e, n) { - this.a = e, this.b = n; + this.b = e, this.a = n; } function Rxe(e, n) { this.a = e, this.b = n; } - function Bxe(e, n) { + function _xe(e, n) { this.a = e, this.b = n; } - function _xe(e, n) { + function Bxe(e, n) { this.a = e, this.b = n; } function Jxe(e, n) { + this.a = e, this.b = n; + } + function Gxe(e, n) { this.f = e, this.c = n; } function wX(e, n) { this.i = e, this.g = n; } function ax(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function qp(e, n) { - _n.call(this, e, n); + Bn.call(this, e, n); } function dx(e, n) { this.a = e, this.b = n; } - function Gxe(e, n) { + function Hxe(e, n) { this.a = e, this.b = n; } function gX(e, n) { this.d = e, this.e = n; } - function Hxe(e, n) { - this.a = e, this.b = n; - } function qxe(e, n) { this.a = e, this.b = n; } function Uxe(e, n) { - this.d = e, this.b = n; + this.a = e, this.b = n; } function zxe(e, n) { + this.d = e, this.b = n; + } + function Wxe(e, n) { this.e = e, this.a = n; } function pX(e, n) { @@ -5269,7 +5359,7 @@ function WDn() { function Uan(e, n) { e && ht(WE, e, n); } - function Wxe(e, n) { + function Xxe(e, n) { return fF(e.a, n); } function mX(e, n) { @@ -5288,15 +5378,15 @@ function WDn() { o5n(new kn(e), n); } function Kan(e, n, t) { - G_e(n, iR(e, t)); + HBe(n, iR(e, t)); } function Van(e, n, t) { - G_e(n, iR(e, t)); + HBe(n, iR(e, t)); } - function Xxe(e, n) { + function Kxe(e, n) { Qvn(e.a, u(n, 12)); } - function Kxe(e, n) { + function Vxe(e, n) { this.a = e, this.b = n; } function ay(e, n) { @@ -5338,7 +5428,7 @@ function WDn() { function Qan(e) { return "" + (Ze(e), e); } - function Vxe(e) { + function Qxe(e) { return xs(e), e.d.gc(); } function kX(e) { @@ -5350,7 +5440,7 @@ function WDn() { function o6(e, n) { return e.a += "" + n, e; } - function Br(e, n) { + function _r(e, n) { return e.a += "" + n, e; } function f6(e, n) { @@ -5362,13 +5452,13 @@ function WDn() { function it(e, n) { return e.a += "" + n, e; } - function Qxe(e, n) { + function Yxe(e, n) { e.q.setTime(Rd(n)); } - function Yxe(e, n) { + function Zxe(e, n) { pV.call(this, e, n); } - function Zxe(e, n) { + function e$e(e, n) { pV.call(this, e, n); } function mx(e, n) { @@ -5383,32 +5473,32 @@ function WDn() { function Yan(e, n) { return e.j[n.p] == 2; } - function e$e(e, n) { + function n$e(e, n) { return e.a = n.g + 1, e; } function Rf(e) { return e.a = 0, e.b = 0, e; } - function n$e(e) { + function t$e(e) { Fc(this), G6(this, e); } - function t$e() { - this.b = 0, this.a = !1; - } function i$e() { this.b = 0, this.a = !1; } function r$e() { - this.b = new _p(Sw(12)); + this.b = 0, this.a = !1; } function c$e() { - c$e = G, VYe = Hn(pF()); + this.b = new Bp(Sw(12)); } function u$e() { - u$e = G, ren = Hn(DHe()); + u$e = G, QYe = Hn(pF()); } function s$e() { - s$e = G, Vrn = Hn(nFe()); + s$e = G, cen = Hn(NHe()); + } + function o$e() { + o$e = G, Qrn = Hn(tFe()); } function yX() { yX = G, Xz(), cse = new Tn(); @@ -5416,13 +5506,13 @@ function WDn() { function Zan(e) { return Jn(e), new h6(e); } - function o$e(e, n) { + function f$e(e, n) { return z(e) === z(n); } function vx(e) { return e < 10 ? "0" + e : "" + e; } - function f$e(e) { + function h$e(e) { return Eu(e.l, e.m, e.h); } function rc(e) { @@ -5444,7 +5534,7 @@ function WDn() { return Zc(e.a, n.a); } function t1n(e, n) { - return QSe(e.a, n.a); + return YSe(e.a, n.a); } function Nh(e, n) { return e.indexOf(n); @@ -5464,7 +5554,7 @@ function WDn() { function Zg(e, n) { wX.call(this, e, n); } - function h$e(e, n) { + function l$e(e, n) { py.call(this, e, n); } function oL(e, n) { @@ -5473,13 +5563,13 @@ function WDn() { function ul() { Iz.call(this, new T1()); } - function l$e() { + function a$e() { Qx.call(this, 0, 0, 0, 0); } function AX(e) { return dc(e.b.b, e, 0); } - function a$e(e, n) { + function d$e(e, n) { return Zc(e.g, n.g); } function i1n(e) { @@ -5503,17 +5593,17 @@ function WDn() { function f1n(e, n) { return he(e.c, n), e; } - function d$e(e, n) { + function b$e(e, n) { return he(e.a, n), n; } function xX(e, n) { return Ys(e.a, n), e; } - function b$e(e) { - this.a = CAe(), this.b = e; - } function w$e(e) { - this.a = CAe(), this.b = e; + this.a = PAe(), this.b = e; + } + function g$e(e) { + this.a = PAe(), this.b = e; } function vr(e) { this.a = e.a, this.b = e.b; @@ -5521,7 +5611,7 @@ function WDn() { function h6(e) { this.a = e, RP.call(this); } - function g$e(e) { + function p$e(e) { this.a = e, RP.call(this); } function Os(e) { @@ -5530,25 +5620,25 @@ function WDn() { function e2(e) { return e != Sh && e != ad; } - function _l(e) { + function Bl(e) { return e == Qr || e == nc; } function n2(e) { return e == Io || e == Mh; } - function p$e(e) { + function m$e(e) { return e == fp || e == op; } function kx(e) { return Ys(new wi(), e); } - function m$e(e) { + function v$e(e) { return wD(u(e, 125)); } function h1n(e, n) { return Ct(n.f, e.f); } - function v$e(e, n) { + function k$e(e, n) { return new xv(n, e); } function l1n(e, n) { @@ -5573,18 +5663,18 @@ function WDn() { Pv(e, n), yv(e, e.D); } function lL(e) { - Jxe.call(this, e, !0); + Gxe.call(this, e, !0); } function zp() { df.call(this, 0, 0, 0, 0); } - function k$e() { + function y$e() { zA.call(this, "Head", 1); } - function y$e() { + function j$e() { zA.call(this, "Tail", 3); } - function j$e(e, n, t) { + function E$e(e, n, t) { oK.call(this, e, n, t); } function N0(e) { @@ -5593,8 +5683,8 @@ function WDn() { function y1(e) { Uh(), M4n.call(this, e); } - function E$e(e) { - wu(e.Qf(), new Uke(e)); + function A$e(e) { + wu(e.Qf(), new zke(e)); } function t2(e) { return e != null ? Gt(e) : 0; @@ -5629,7 +5719,7 @@ function WDn() { function aL(e) { e.c = W(Li, Ve, 1, 0, 5, 1); } - function A$e(e, n, t) { + function x$e(e, n, t) { ai(e.c[n.g], n.g, t); } function k1n(e, n, t) { @@ -5642,10 +5732,10 @@ function WDn() { zt.call(this, e.b, n); } function j1n(e, n) { - Dn(Hc(e.a), nPe(n)); + Dn(Hc(e.a), tPe(n)); } function E1n(e, n) { - Dn(js(e.a), tPe(n)); + Dn(js(e.a), iPe(n)); } function A1n(e, n) { jh || (e.b = n); @@ -5654,36 +5744,36 @@ function WDn() { return ai(e, n, t), t; } function Un() { - Un = G, new x$e(), new le(); + Un = G, new $$e(), new le(); } - function x$e() { + function $$e() { new Tn(), new Tn(), new Tn(); } function x1n() { - throw $(new Ea(IQe)); + throw $(new Ea(CQe)); } function $1n() { - throw $(new Ea(IQe)); + throw $(new Ea(CQe)); } function M1n() { - throw $(new Ea(CQe)); + throw $(new Ea(PQe)); } function T1n() { - throw $(new Ea(CQe)); + throw $(new Ea(PQe)); } - function $$e() { - $$e = G, KH = new i9(lU); + function M$e() { + M$e = G, KH = new i9(lU); } function rh() { rh = G, m.Math.log(2); } function bo() { - bo = G, Pl = (xAe(), kon); + bo = G, Pl = ($Ae(), yon); } function l6(e) { kt(), I0.call(this, e); } - function M$e(e) { + function T$e(e) { this.a = e, GK.call(this, e); } function bL(e) { @@ -5701,7 +5791,7 @@ function WDn() { function MX(e) { return e.a < e.c.a.length; } - function T$e(e, n) { + function S$e(e, n) { return e.a ? e.b : n.Ue(); } function Zc(e, n) { @@ -5714,7 +5804,7 @@ function WDn() { return { l: e, m: n, h: t }; } function S1n(e, n) { - e.a != null && Xxe(n, e.a); + e.a != null && Kxe(n, e.a); } function I1n(e) { br(e, null), Ki(e, null); @@ -5725,31 +5815,31 @@ function WDn() { function P1n(e, n) { Jn(n), o2(e).Ic(new Tt()); } - function S$e() { + function I$e() { Oee(), this.a = new v9(noe); } function yx(e) { this.b = e, this.a = new le(); } - function I$e(e) { - this.b = new iwe(), this.a = e; + function C$e(e) { + this.b = new rwe(), this.a = e; } function SX(e) { kK.call(this), this.a = e; } - function C$e(e) { + function P$e(e) { VV.call(this), this.b = e; } - function P$e() { + function O$e() { zA.call(this, "Range", 2); } function jx(e) { - e.j = W(mse, oe, 324, 0, 0, 1); + e.j = W(mse, fe, 324, 0, 0, 1); } - function O$e(e) { + function L$e(e) { e.a = new Dl(), e.c = new Dl(); } - function L$e(e) { + function D$e(e) { e.a = new Tn(), e.e = new Tn(); } function IX(e) { @@ -5776,7 +5866,7 @@ function WDn() { function PX(e, n) { return H(rn(e.j, n)); } - function D$e(e, n) { + function N$e(e, n) { return wPn(e.a, n, null); } function a6(e, n) { @@ -5785,7 +5875,7 @@ function WDn() { function N(e, n) { return e != null && yF(e, n); } - function N$e(e, n) { + function F$e(e, n) { On(e), e.Fc(u(n, 16)); } function N1n(e, n, t) { @@ -5797,32 +5887,32 @@ function WDn() { function R1n(e, n, t) { return dPn(e, n, t), t; } - function B1n(e, n) { + function _1n(e, n) { return Ws(), n.n.b += e; } function gL(e, n) { return t6n(e.Jc(), n) != -1; } - function _1n(e, n) { - return new hMe(e.Jc(), n); + function B1n(e, n) { + return new lMe(e.Jc(), n); } function Ex(e) { return e.Ob() ? e.Pb() : null; } - function F$e(e) { + function R$e(e) { return Gh(e, 0, e.length); } - function R$e(e) { + function _$e(e) { PD(e, null), OD(e, null); } function B$e() { py.call(this, null, null); } - function _$e() { + function J$e() { Sx.call(this, null, null); } - function J$e() { - _n.call(this, "INSTANCE", 0); + function G$e() { + Bn.call(this, "INSTANCE", 0); } function r2() { this.a = W(Li, Ve, 1, 8, 5, 1); @@ -5830,8 +5920,8 @@ function WDn() { function OX(e) { this.a = e, Tn.call(this); } - function G$e(e) { - this.a = (ze(), new Bm(e)); + function H$e(e) { + this.a = (ze(), new _m(e)); } function J1n(e) { this.b = (ze(), new KP(e)); @@ -5840,13 +5930,13 @@ function WDn() { Km = G, Tse = new fO(null); } function LX() { - LX = G, LX(), oYe = new Mp(); + LX = G, LX(), fYe = new Mp(); } function he(e, n) { return sn(e.c, n), !0; } - function H$e(e, n) { - e.c && (nV(n), vCe(n)); + function q$e(e, n) { + e.c && (nV(n), kCe(n)); } function G1n(e, n) { e.q.setHours(n), A9(e, n); @@ -5879,22 +5969,22 @@ function WDn() { return e.a < IL(n) ? -1 : 1; } function W1n(e, n) { - return BQ(e.b, n.Og()); + return _Q(e.b, n.Og()); } function X1n(e, n) { - return BQ(e.f, n.Og()); + return _Q(e.f, n.Og()); } function K1n(e, n) { - return _(H(n.a)) <= e; + return B(H(n.a)) <= e; } function V1n(e, n) { - return _(H(n.a)) >= e; + return B(H(n.a)) >= e; } function Q1n(e, n, t) { return t ? n != 0 : n != e - 1; } - function q$e(e, n, t) { - e.a = n ^ 1502, e.b = t ^ $B; + function U$e(e, n, t) { + e.a = n ^ 1502, e.b = t ^ $_; } function Y1n(e, n, t) { return e.a = n, e.b = t, e; @@ -5917,7 +6007,7 @@ function WDn() { function Qu(e, n, t) { $i.call(this, e, n, t); } - function U$e(e, n, t) { + function z$e(e, n, t) { Ax.call(this, e, n, t); } function NX(e, n, t) { @@ -5926,16 +6016,16 @@ function WDn() { function c2(e, n, t) { Sy.call(this, e, n, t); } - function z$e(e, n, t) { - _x.call(this, e, n, t); + function W$e(e, n, t) { + Bx.call(this, e, n, t); } function FX(e, n, t) { - _x.call(this, e, n, t); + Bx.call(this, e, n, t); } - function W$e(e, n, t) { + function X$e(e, n, t) { FX.call(this, e, n, t); } - function X$e(e, n, t) { + function K$e(e, n, t) { NX.call(this, e, n, t); } function j1(e) { @@ -5947,43 +6037,43 @@ function WDn() { function u2(e, n) { this.a = e, NA.call(this, n); } - function K$e(e, n) { - this.a = e, bO.call(this, n); - } function V$e(e, n) { this.a = e, bO.call(this, n); } function Q$e(e, n) { this.a = e, bO.call(this, n); } + function Y$e(e, n) { + this.a = e, bO.call(this, n); + } function RX(e) { - this.a = e, Z9e.call(this, e.d); + this.a = e, eke.call(this, e.d); } - function Y$e(e) { + function Z$e(e) { e.b.Qb(), --e.d.f.d, Zx(e.d); } - function Z$e(e) { + function eMe(e) { e.a = u(hn(e.b.a, 4), 129); } - function eMe(e) { + function nMe(e) { e.a = u(hn(e.b.a, 4), 129); } function edn(e) { - Ny(e, iVe), vT(e, hOn(e)); + Ny(e, rVe), vT(e, hOn(e)); } - function BX(e, n) { + function _X(e, n) { return C9n(e, new w1(), n).a; } function ndn(e) { - return U8(e.a) ? ePe(e) : null; + return U8(e.a) ? nPe(e) : null; } - function nMe(e) { + function tMe(e) { GP.call(this, u(Jn(e), 35)); } - function tMe(e) { + function iMe(e) { GP.call(this, u(Jn(e), 35)); } - function _X(e) { + function BX(e) { if (!e) throw $(new H8()); } @@ -5992,13 +6082,13 @@ function WDn() { throw $(new Vu()); } function dn(e, n) { - return Jn(n), new fMe(e, n); + return Jn(n), new hMe(e, n); } - function iMe(e, n) { - return new zJe(e.a, e.b, n); + function rMe(e, n) { + return new WJe(e.a, e.b, n); } function tdn(e) { - return e.l + e.m * B3 + e.h * Zd; + return e.l + e.m * _3 + e.h * Zd; } function idn(e) { return e == null ? null : e.name; @@ -6010,18 +6100,18 @@ function WDn() { return e.lastIndexOf(n); } function b6(e) { - return e == null ? Bu : uc(e); + return e == null ? _u : uc(e); } function en() { - en = G, Y1 = !1, _5 = !0; + en = G, Y1 = !1, B5 = !0; } - function rMe() { - rMe = G, AO(), Kon = new H9e(); + function cMe() { + cMe = G, AO(), Von = new q9e(); } function HX() { this.Bb |= 256, this.Bb |= 512; } - function cMe() { + function uMe() { jx(this), b$(this), this.he(); } function $x(e) { @@ -6031,33 +6121,33 @@ function WDn() { qg.call(this, e), this.a = e; } function UX(e) { - Bm.call(this, e), this.a = e; + _m.call(this, e), this.a = e; } - function _o(e) { - _8.call(this, (Ze(e), e)); + function Bo(e) { + B8.call(this, (Ze(e), e)); } function Us(e) { - _8.call(this, (Ze(e), e)); + B8.call(this, (Ze(e), e)); } function vL(e) { Iz.call(this, new WQ(e)); } - function uMe(e) { + function sMe(e) { this.a = e, XP.call(this, e); } function zX(e, n) { this.a = n, bO.call(this, e); } - function sMe(e, n) { + function oMe(e, n) { this.a = n, qD.call(this, e); } - function oMe(e, n) { + function fMe(e, n) { this.a = e, qD.call(this, n); } - function fMe(e, n) { + function hMe(e, n) { this.a = n, DA.call(this, e); } - function hMe(e, n) { + function lMe(e, n) { this.a = n, DA.call(this, e); } function WX(e) { @@ -6066,10 +6156,10 @@ function WDn() { function Ls(e) { return An(e.a != null), e.a; } - function lMe(e, n) { + function aMe(e, n) { return he(n.a, e.a), e.a; } - function aMe(e, n) { + function dMe(e, n) { return he(n.b, e.a), e.a; } function F0(e, n) { @@ -6115,19 +6205,19 @@ function WDn() { return Ct(e.e.a, n.e.a); } function ldn(e, n, t) { - return QPe(e, n, t, e.b); + return YPe(e, n, t, e.b); } function KX(e, n, t) { - return QPe(e, n, t, e.c); + return YPe(e, n, t, e.c); } function adn(e) { return zs(), !!e && !e.dc(); } - function dMe() { - q4(), this.b = new M8e(this); + function bMe() { + q4(), this.b = new T8e(this); } function Tx() { - Tx = G, iI = new zt(UWe, 0); + Tx = G, iI = new zt(zWe, 0); } function Xp(e) { this.d = e, kn.call(this, e); @@ -6167,10 +6257,10 @@ function WDn() { return QL(e.c).Kd().Xb(n); } function kL(e, n) { - return new bTe(e, e.gc(), n); + return new wTe(e, e.gc(), n); } function bdn(e) { - return $A(), Gn((XCe(), BQe), e); + return $A(), Gn((KCe(), BQe), e); } function wdn(e) { return new jw(3, e); @@ -6178,7 +6268,7 @@ function WDn() { function sl(e) { return Qs(e, Ww), new bu(e); } - function bMe(e) { + function wMe(e) { return av(), parseInt(e) || -1; } function Vm(e, n, t) { @@ -6194,19 +6284,19 @@ function WDn() { var i; i = e.dd(n), i.Rb(t); } - function wMe(e, n, t, i) { + function gMe(e, n, t, i) { wV.call(this, e, n, t, i); } - function gMe(e) { + function pMe(e) { qK.call(this, e, null, null); } function yL(e) { Zb(), this.b = e, this.a = !0; } - function pMe(e) { + function mMe(e) { FA(), this.b = e, this.a = !0; } - function mMe(e) { + function vMe(e) { if (!e) throw $(new lo()); } @@ -6226,8 +6316,8 @@ function WDn() { if (!e) throw $(new Vu()); } - function vMe(e) { - e.d = new gMe(e), e.e = new Tn(); + function kMe(e) { + e.d = new pMe(e), e.e = new Tn(); } function Ym(e) { return An(e.b != 0), e.a.a.c; @@ -6238,16 +6328,16 @@ function WDn() { function mdn(e, n) { return IN(e, n, n + 1, ""), e; } - function kMe(e) { - WR(), G7e(this), this.Df(e); - } function yMe(e) { + WR(), H7e(this), this.Df(e); + } + function jMe(e) { this.c = e, this.a = 1, this.b = 1; } function my(e) { N(e, 161) && u(e, 161).mi(); } - function jMe(e) { + function EMe(e) { return e.b = u(UV(e.a), 45); } function uw(e, n) { @@ -6281,13 +6371,13 @@ function WDn() { return Ql(), t.e.a - e * n; } function $dn(e, n, t) { - return BA(), t.Lg(e, n); + return _A(), t.Lg(e, n); } function Mdn(e, n) { - return B1(), Je(e, n.e, n); + return _1(), Je(e, n.e, n); } function Tdn(e, n, t) { - return he(n, zRe(e, t)); + return he(n, WRe(e, t)); } function Sdn(e, n, t) { H$(), e.nf(n) && t.Ad(e); @@ -6295,7 +6385,7 @@ function WDn() { function sw(e, n, t) { return e.a += n, e.b += t, e; } - function EMe(e, n, t) { + function AMe(e, n, t) { return e.a -= n, e.b -= t, e; } function eK(e, n) { @@ -6304,49 +6394,49 @@ function WDn() { function Cx(e) { return e.a = -e.a, e.b = -e.b, e; } - function AMe(e) { + function xMe(e) { this.c = e, Es(e, 0), As(e, 0); } - function xMe(e) { + function $Me(e) { Dt.call(this), J6(this, e); } - function $Me() { - _n.call(this, "GROW_TREE", 0); + function MMe() { + Bn.call(this, "GROW_TREE", 0); } function Ds(e, n, t) { es.call(this, e, n, t, 2); } - function MMe(e, n) { + function TMe(e, n) { Sa(), nK.call(this, e, n); } function nK(e, n) { Sa(), Sx.call(this, e, n); } - function TMe(e, n) { + function SMe(e, n) { Sa(), Sx.call(this, e, n); } - function SMe(e, n) { + function IMe(e, n) { X4(), py.call(this, e, n); } function EL(e, n) { bo(), Kx.call(this, e, n); } - function IMe(e, n) { + function CMe(e, n) { bo(), EL.call(this, e, n); } function tK(e, n) { bo(), EL.call(this, e, n); } - function CMe(e, n) { + function PMe(e, n) { bo(), tK.call(this, e, n); } function iK(e, n) { bo(), Kx.call(this, e, n); } - function PMe(e, n) { + function OMe(e, n) { bo(), iK.call(this, e, n); } - function OMe(e, n) { + function LMe(e, n) { bo(), Kx.call(this, e, n); } function Idn(e, n) { @@ -6371,12 +6461,12 @@ function WDn() { return D1(e.e, u(n, 52)); } function Ddn(e, n, t) { - e9(Hc(e.a), n, nPe(t)); + e9(Hc(e.a), n, tPe(t)); } function Ndn(e, n, t) { - e9(js(e.a), n, tPe(t)); + e9(js(e.a), n, iPe(t)); } - function LMe(e, n) { + function DMe(e, n) { return Ze(e), e + IL(n); } function Fdn(e) { @@ -6385,10 +6475,10 @@ function WDn() { function Rdn(e) { return e == null ? null : uc(e); } - function Bdn(e) { + function _dn(e) { return e == null ? null : sEn(e); } - function _dn(e) { + function Bdn(e) { return e == null ? null : nOn(e); } function Gl(e) { @@ -6404,7 +6494,7 @@ function WDn() { return m6(e == null || Hi(e)), e; } function Jdn(e, n) { - return SF(e, n), new xIe(e, n); + return SF(e, n), new $Ie(e, n); } function vy(e, n) { this.c = e, qm.call(this, e, n); @@ -6413,12 +6503,12 @@ function WDn() { this.a = e, vy.call(this, e, n); } function Gdn(e, n) { - this.d = e, Ake(this), this.b = n; + this.d = e, xke(this), this.b = n; } function cK() { - bNe.call(this), this.Bb |= xr; + wNe.call(this), this.Bb |= xr; } - function DMe() { + function NMe() { this.a = new W0(), this.b = new W0(); } function uK(e) { @@ -6428,7 +6518,7 @@ function WDn() { s2 = G, ap = new It("root"); } function Zm() { - Zm = G, KE = new mje(), new vje(); + Zm = G, KE = new vje(), new kje(); } function ow() { ow = G, Dse = Pe((Js(), y0)); @@ -6436,14 +6526,14 @@ function WDn() { function Hdn(e, n) { n.a ? WAn(e, n) : pL(e.a, n.b); } - function NMe(e, n) { + function FMe(e, n) { jh || he(e.a, n); } function qdn(e, n) { return Y8(), Av(n.d.i, e); } function Udn(e, n) { - return p3(), new Cqe(n, e); + return p3(), new Pqe(n, e); } function zdn(e, n, t) { return e.Le(n, t) <= 0 ? t : n; @@ -6460,29 +6550,29 @@ function WDn() { function xL(e) { return u(pe(e.a, e.b), 295); } - function FMe(e) { + function RMe(e) { return new ue(e.c, e.d + e.a); } - function RMe(e) { + function _Me(e) { return Ze(e), e ? 1231 : 1237; } function BMe(e) { - return Ws(), p$e(u(e, 203)); + return Ws(), m$e(u(e, 203)); } function sK(e, n) { return u(rn(e.b, n), 278); } - function _Me(e, n, t) { + function JMe(e, n, t) { ++e.j, e.oj(n, e.Xi(n, t)); } function ky(e, n, t) { ++e.j, e.rj(), ZD(e, n, t); } function oK(e, n, t) { - _$.call(this, e, n, t, null); + B$.call(this, e, n, t, null); } - function JMe(e, n, t) { - _$.call(this, e, n, t, null); + function GMe(e, n, t) { + B$.call(this, e, n, t, null); } function fK(e, n) { eN.call(this, e), this.a = n; @@ -6499,14 +6589,14 @@ function WDn() { function $L(e, n) { Hz.call(this, e), this.a = n; } - function GMe(e, n) { + function HMe(e, n) { this.c = e, V0.call(this, n); } - function HMe(e, n) { - this.a = e, O7e.call(this, n); + function qMe(e, n) { + this.a = e, L7e.call(this, n); } function yy(e, n) { - this.a = e, O7e.call(this, n); + this.a = e, L7e.call(this, n); } function aK(e, n, t) { return t = no(e, n, 3, t), t; @@ -6523,17 +6613,17 @@ function WDn() { function wK(e, n) { return (n & pt) % e.d.length; } - function qMe(e, n, t) { + function UMe(e, n, t) { return Yte(e.c, e.b, n, t); } function Vdn(e, n, t) { return e.apply(n, t); } - function UMe(e, n, t) { + function zMe(e, n, t) { var i; i = e.dd(n), i.Rb(t); } - function zMe(e, n, t) { + function WMe(e, n, t) { return e.a += Gh(n, 0, t), e; } function jy(e) { @@ -6555,14 +6645,14 @@ function WDn() { } function Qdn(e, n) { var t; - t = e[xB], t.call(e, n); + t = e[x_], t.call(e, n); } function Ydn(e, n) { var t; - t = e[xB], t.call(e, n); + t = e[x_], t.call(e, n); } function Zdn(e, n, t) { - Ad(), yke(e, n.Te(e.a, t)); + Ad(), jke(e, n.Te(e.a, t)); } function mK(e, n, t) { return r3(e, u(n, 23), t); @@ -6582,22 +6672,22 @@ function WDn() { function TL(e) { this.a = (ze(), new WP(Jn(e))); } - function WMe(e) { + function XMe(e) { this.a = (Qs(e, Ww), new bu(e)); } - function XMe(e) { + function KMe(e) { this.a = (Qs(e, Ww), new bu(e)); } - function KMe() { + function VMe() { this.a = new le(), this.b = new le(); } - function VMe() { - this.a = new WU(), this.b = new K7e(); + function QMe() { + this.a = new WU(), this.b = new V7e(); } function vK() { this.b = new T1(), this.a = new T1(); } - function QMe() { + function YMe() { this.b = new er(), this.c = new le(); } function kK() { @@ -6606,22 +6696,22 @@ function WDn() { function Px() { this.n = new Op(), this.i = new zp(); } - function YMe() { - this.b = new vi(), this.a = new vi(); - } function ZMe() { - this.a = new le(), this.d = new le(); + this.b = new vi(), this.a = new vi(); } function eTe() { - this.a = new g9e(), this.b = new Xpe(); + this.a = new le(), this.d = new le(); } function nTe() { - this.b = new TEe(), this.a = new cme(); + this.a = new p9e(), this.b = new Kpe(); } function tTe() { - this.b = new Tn(), this.a = new Tn(); + this.b = new SEe(), this.a = new ume(); } function iTe() { + this.b = new Tn(), this.a = new Tn(); + } + function rTe() { Px.call(this), this.a = new er(); } function yK(e, n, t, i) { @@ -6636,19 +6726,19 @@ function WDn() { function r0n(e, n) { return Y8(), !Av(n.d.i, e); } - function rTe(e) { + function cTe(e) { Fc(e.e), e.d.b = e.d, e.d.a = e.d; } function Ey(e) { e.b ? Ey(e.b) : e.f.c.yc(e.e, e.d); } function c0n(e, n) { - _l(e.f) ? mxn(e, n) : hjn(e, n); + Bl(e.f) ? mxn(e, n) : hjn(e, n); } - function cTe(e, n, t) { + function uTe(e, n, t) { t != null && oM(n, PF(e, t)); } - function uTe(e, n, t) { + function sTe(e, n, t) { t != null && fM(n, PF(e, t)); } function Qp(e, n, t, i) { @@ -6657,16 +6747,16 @@ function WDn() { function jK(e, n, t, i) { ne.call(this, e, n, t, i); } - function sTe(e, n, t, i) { + function oTe(e, n, t, i) { jK.call(this, e, n, t, i); } - function oTe(e, n, t, i) { + function fTe(e, n, t, i) { c$.call(this, e, n, t, i); } function SL(e, n, t, i) { c$.call(this, e, n, t, i); } - function fTe(e, n, t, i) { + function hTe(e, n, t, i) { SL.call(this, e, n, t, i); } function EK(e, n, t, i) { @@ -6678,10 +6768,10 @@ function WDn() { function AK(e, n, t, i) { SL.call(this, e, n, t, i); } - function hTe(e, n, t, i) { + function lTe(e, n, t, i) { AK.call(this, e, n, t, i); } - function lTe(e, n, t, i) { + function aTe(e, n, t, i) { vV.call(this, e, n, t, i); } function hw(e, n) { @@ -6699,25 +6789,25 @@ function WDn() { function s0n(e, n) { return e.e = u(e.d.Kb(n), 162); } - function aTe(e, n) { + function dTe(e, n) { return ht(e.a, n, "") == null; } - function dTe(e, n) { + function bTe(e, n) { return Ze(e), z(e) === z(n); } - function _e(e, n) { + function Be(e, n) { return Ze(e), z(e) === z(n); } function MK(e, n, t) { return e.lastIndexOf(n, t); } - function bTe(e, n, t) { + function wTe(e, n, t) { this.a = e, QX.call(this, n, t); } - function wTe(e) { + function gTe(e) { this.c = e, mx.call(this, sj, 0); } - function gTe(e, n, t) { + function pTe(e, n, t) { this.c = n, this.b = t, this.a = e; } function At(e, n) { @@ -6758,18 +6848,18 @@ function WDn() { return K(n, (ae(), cE), e); } function p0n(e, n) { - return e.b.zd(new LAe(e, n)); - } - function m0n(e, n) { return e.b.zd(new DAe(e, n)); } - function pTe(e, n) { + function m0n(e, n) { return e.b.zd(new NAe(e, n)); } function mTe(e, n) { - return N(n, 16) && lqe(e.c, n); + return e.b.zd(new FAe(e, n)); } - function vTe(e) { + function vTe(e, n) { + return N(n, 16) && aqe(e.c, n); + } + function kTe(e) { return e.c ? dc(e.c.a, e, 0) : -1; } function v0n(e) { @@ -6791,9 +6881,9 @@ function WDn() { return Ldn(e, u(n, 344), t); } function j0n(e, n, t) { - return Y_e(e, u(n, 344), t); + return ZBe(e, u(n, 344), t); } - function kTe(e, n, t) { + function yTe(e, n, t) { return jjn(e, u(n, 344), t); } function p6(e, n) { @@ -6817,7 +6907,7 @@ function WDn() { return !isNaN(e) && !isFinite(e); } function CL(e) { - O$e(this), Fs(this), wr(this, e); + L$e(this), Fs(this), wr(this, e); } function os(e) { aL(this), zK(this.c, 0, e.Nc()); @@ -6825,37 +6915,37 @@ function WDn() { function Ay(e) { nv(), this.d = e, this.a = new r2(); } - function yTe(e, n, t) { + function jTe(e, n, t) { this.d = e, this.b = t, this.a = n; } function wo(e, n, t) { this.a = e, this.b = n, this.c = t; } - function jTe(e, n, t) { + function ETe(e, n, t) { this.a = e, this.b = n, this.c = t; } function CK(e, n) { this.c = e, rD.call(this, e, n); } - function ETe(e, n) { + function ATe(e, n) { Iwn.call(this, e, e.length, n); } function PL(e, n) { if (e != n) throw $(new lo()); } - function ATe(e) { + function xTe(e) { this.a = e, Ta(), Cc(Date.now()); } - function xTe(e) { + function $Te(e) { vs(e.a), qQ(e.c, e.b), e.b = null; } function OL() { - OL = G, Mse = new Hg(), uYe = new Cm(); + OL = G, Mse = new Hg(), sYe = new Cm(); } function LL(e) { var n; - return n = new qbe(), n.e = e, n; + return n = new Ube(), n.e = e, n; } function A0n(e, n, t) { return Ad(), e.a.Wd(n, t), n; @@ -6865,49 +6955,49 @@ function WDn() { } function OK(e) { var n; - return n = new nje(), n.b = e, n; + return n = new tje(), n.b = e, n; } function x0n(e) { - return qf(), Gn((yLe(), EYe), e); + return qf(), Gn((jLe(), AYe), e); } function $0n(e) { - return mv(), Gn((DLe(), fYe), e); + return mv(), Gn((NLe(), hYe), e); } function M0n(e) { - return yo(), Gn((kLe(), wYe), e); + return yo(), Gn((yLe(), gYe), e); } function T0n(e) { - return hs(), Gn((jLe(), xYe), e); + return hs(), Gn((ELe(), $Ye), e); } function S0n(e) { - return Nu(), Gn((ELe(), MYe), e); + return Nu(), Gn((ALe(), TYe), e); } function I0n(e) { - return _T(), Gn((c$e(), VYe), e); + return BT(), Gn((u$e(), QYe), e); } function C0n(e) { - return eb(), Gn((_Le(), YYe), e); + return eb(), Gn((JLe(), ZYe), e); } function P0n(e) { - return Tv(), Gn((JLe(), GZe), e); + return Tv(), Gn((GLe(), HZe), e); } function O0n(e) { - return V$(), Gn((MOe(), sZe), e); + return V$(), Gn((TOe(), oZe), e); } function L0n(e) { - return F6(), Gn((vLe(), OZe), e); + return F6(), Gn((kLe(), LZe), e); } function D0n(e) { - return zi(), Gn((SDe(), FZe), e); + return zi(), Gn((IDe(), RZe), e); } function N0n(e) { - return A3(), Gn((BLe(), XZe), e); + return A3(), Gn((BLe(), KZe), e); } function F0n(e) { - return cn(), Gn((QNe(), YZe), e); + return cn(), Gn((YNe(), ZZe), e); } function R0n(e) { - return Ev(), Gn((TOe(), ien), e); + return Ev(), Gn((SOe(), ren), e); } function DL(e) { Qx.call(this, e.d, e.c, e.a, e.b); @@ -6915,200 +7005,200 @@ function WDn() { function LK(e) { Qx.call(this, e.d, e.c, e.a, e.b); } - function B0n(e) { - return Qi(), Gn((u$e(), ren), e); - } - function $Te() { - $Te = G, xon = W(Li, Ve, 1, 0, 5, 1); + function _0n(e) { + return Qi(), Gn((s$e(), cen), e); } function MTe() { - MTe = G, Hon = W(Li, Ve, 1, 0, 5, 1); + MTe = G, $on = W(Li, Ve, 1, 0, 5, 1); + } + function TTe() { + TTe = G, qon = W(Li, Ve, 1, 0, 5, 1); } function DK() { - DK = G, qon = W(Li, Ve, 1, 0, 5, 1); + DK = G, Uon = W(Li, Ve, 1, 0, 5, 1); } function xy() { - xy = G, fI = new yge(), hI = new jge(); + xy = G, fI = new jge(), hI = new Ege(); } function Dx() { - Dx = G, fen = new Kge(), oen = new Vge(); + Dx = G, hen = new Vge(), fen = new Qge(); } function zs() { - zs = G, ben = new rpe(), wen = new cpe(); + zs = G, wen = new cpe(), gen = new upe(); } - function _0n(e) { - return Z0(), Gn((iLe(), xen), e); + function B0n(e) { + return Z0(), Gn((rLe(), $en), e); } function J0n(e) { - return vf(), Gn((ULe(), men), e); + return vf(), Gn((zLe(), ven), e); } function G0n(e) { - return Nw(), Gn((EDe(), ken), e); + return Nw(), Gn((ADe(), yen), e); } function H0n(e) { - return $T(), Gn((eFe(), $en), e); + return $T(), Gn((nFe(), Men), e); } function q0n(e) { - return T3(), Gn((iNe(), Men), e); + return T3(), Gn((rNe(), Ten), e); } function U0n(e) { - return G$(), Gn((hOe(), Ten), e); + return G$(), Gn((lOe(), Sen), e); } function z0n(e) { - return t9(), Gn((WLe(), Sen), e); + return t9(), Gn((XLe(), Ien), e); } function W0n(e) { - return rM(), Gn((YOe(), Ien), e); + return rM(), Gn((ZOe(), Cen), e); } function X0n(e) { - return H7(), Gn((uFe(), Cen), e); + return H7(), Gn((sFe(), Pen), e); } function K0n(e) { - return c7(), Gn((lOe(), Pen), e); + return c7(), Gn((aOe(), Oen), e); } function V0n(e) { - return Hd(), Gn((ZOe(), Len), e); + return Hd(), Gn((eLe(), Den), e); } function Q0n(e) { - return lT(), Gn((tNe(), Den), e); + return lT(), Gn((iNe(), Nen), e); } function Y0n(e) { - return Zy(), Gn((aOe(), Nen), e); + return Zy(), Gn((dOe(), Fen), e); } function Z0n(e) { - return D7(), Gn((eNe(), Fen), e); + return D7(), Gn((nNe(), Ren), e); } function ebn(e) { - return Kv(), Gn((nNe(), Ren), e); + return Kv(), Gn((tNe(), _en), e); } function nbn(e) { - return Pr(), Gn((EFe(), Ben), e); + return Pr(), Gn((AFe(), Ben), e); } function tbn(e) { - return Mv(), Gn((eLe(), _en), e); + return Mv(), Gn((nLe(), Jen), e); } function ibn(e) { - return P1(), Gn((nLe(), Jen), e); + return P1(), Gn((tLe(), Gen), e); } function rbn(e) { - return Kl(), Gn((tLe(), Hen), e); + return Kl(), Gn((iLe(), qen), e); } function cbn(e) { - return S$(), Gn((dOe(), qen), e); + return S$(), Gn((bOe(), Uen), e); } function ubn(e) { - return Bs(), Gn((xDe(), zen), e); + return _s(), Gn(($De(), Wen), e); } function sbn(e) { - return P$(), Gn((bOe(), Wen), e); + return P$(), Gn((wOe(), Xen), e); } function obn(e) { - return U7(), Gn((sFe(), Lin), e); + return U7(), Gn((oFe(), Din), e); } function fbn(e) { - return V6(), Gn((rLe(), Din), e); + return V6(), Gn((cLe(), Nin), e); } function hbn(e) { - return Dw(), Gn((HLe(), Nin), e); + return Dw(), Gn((qLe(), Fin), e); } function lbn(e) { - return u9(), Gn((ADe(), Fin), e); + return u9(), Gn((xDe(), Rin), e); } function abn(e) { - return G1(), Gn((jFe(), Rin), e); + return G1(), Gn((EFe(), _in), e); } function dbn(e) { - return ta(), Gn((qLe(), Bin), e); + return ta(), Gn((ULe(), Bin), e); } function bbn(e) { - return n7(), Gn((wOe(), _in), e); + return n7(), Gn((gOe(), Jin), e); } function wbn(e) { - return Cr(), Gn((cLe(), Gin), e); + return Cr(), Gn((uLe(), Hin), e); } function gbn(e) { - return vM(), Gn((uLe(), Hin), e); + return vM(), Gn((sLe(), qin), e); } function pbn(e) { - return K6(), Gn((sLe(), qin), e); + return K6(), Gn((oLe(), Uin), e); } function mbn(e) { - return Ov(), Gn((oLe(), Uin), e); + return Ov(), Gn((fLe(), zin), e); } function vbn(e) { - return iM(), Gn((fLe(), zin), e); + return iM(), Gn((hLe(), Win), e); } function kbn(e) { - return kM(), Gn((hLe(), Win), e); + return kM(), Gn((lLe(), Xin), e); } function ybn(e) { - return jM(), Gn((RLe(), sen), e); + return jM(), Gn((_Le(), oen), e); } function jbn(e) { - return Ud(), Gn((GLe(), arn), e); + return Ud(), Gn((HLe(), drn), e); } function Ebn(e, n) { return Ze(e), e + (Ze(n), n); } function Abn(e) { - return D6(), Gn((gOe(), prn), e); + return D6(), Gn((pOe(), mrn), e); } function xbn(e) { - return Rh(), Gn((mOe(), Arn), e); + return Rh(), Gn((vOe(), xrn), e); } function $bn(e) { - return uh(), Gn((pOe(), $rn), e); + return uh(), Gn((mOe(), Mrn), e); } function Mbn(e) { - return Jf(), Gn((vOe(), Jrn), e); + return Jf(), Gn((kOe(), Grn), e); } function nv() { - nv = G, Ble = (be(), an), pC = gn; + nv = G, _le = (be(), an), pC = gn; } function Tbn(e) { - return X0(), Gn((kOe(), Xrn), e); + return X0(), Gn((yOe(), Krn), e); } function Sbn(e) { - return M3(), Gn((VLe(), Krn), e); + return M3(), Gn((QLe(), Vrn), e); } function Ibn(e) { - return j9(), Gn((s$e(), Vrn), e); + return j9(), Gn((o$e(), Qrn), e); } function Cbn(e) { - return X6(), Gn((lLe(), Qrn), e); + return X6(), Gn((aLe(), Yrn), e); } function Pbn(e) { - return W6(), Gn((zLe(), kcn), e); + return W6(), Gn((WLe(), ycn), e); } function Obn(e) { - return T$(), Gn((yOe(), ycn), e); + return T$(), Gn((jOe(), jcn), e); } function Lbn(e) { - return lM(), Gn((jOe(), $cn), e); + return lM(), Gn((EOe(), Mcn), e); } function Dbn(e) { - return uT(), Gn(($De(), Tcn), e); + return uT(), Gn((MDe(), Scn), e); } function Nbn(e) { - return q$(), Gn((EOe(), Scn), e); + return q$(), Gn((AOe(), Icn), e); } function Fbn(e) { - return m7(), Gn((aLe(), Icn), e); + return m7(), Gn((dLe(), Ccn), e); } function Rbn(e) { - return YM(), Gn((KLe(), Vcn), e); - } - function Bbn(e) { - return mM(), Gn((dLe(), Qcn), e); + return YM(), Gn((VLe(), Qcn), e); } function _bn(e) { - return BM(), Gn((bLe(), Ycn), e); + return mM(), Gn((bLe(), Ycn), e); + } + function Bbn(e) { + return _M(), Gn((wLe(), Zcn), e); } function Jbn(e) { - return oT(), Gn((XLe(), eun), e); + return oT(), Gn((KLe(), nun), e); } function Gbn(e) { - return LM(), Gn((mLe(), iun), e); + return LM(), Gn((vLe(), run), e); } function Hbn(e) { return !e.e && (e.e = new le()), e.e; @@ -7116,169 +7206,169 @@ function WDn() { function Nx(e, n, t) { this.e = n, this.b = e, this.d = t; } - function TTe(e, n, t) { + function STe(e, n, t) { this.a = e, this.b = n, this.c = t; } - function STe(e, n, t) { + function ITe(e, n, t) { this.a = e, this.b = n, this.c = t; } function NK(e, n, t) { this.a = e, this.b = n, this.c = t; } - function ITe(e, n, t) { + function CTe(e, n, t) { this.a = e, this.b = n, this.c = t; } - function CTe(e, n, t) { + function PTe(e, n, t) { this.a = e, this.c = n, this.b = t; } function Fx(e, n, t) { this.b = e, this.a = n, this.c = t; } - function PTe(e, n, t) { + function OTe(e, n, t) { this.b = e, this.a = n, this.c = t; } function NL(e, n) { this.c = e, this.a = n, this.b = n - e; } function qbn(e) { - return SM(), Gn((gLe(), Mun), e); + return SM(), Gn((pLe(), Tun), e); } function Ubn(e) { - return JA(), Gn((JPe(), Oun), e); + return JA(), Gn((GPe(), Lun), e); } function zbn(e) { - return Wy(), Gn((xOe(), Lun), e); + return Wy(), Gn(($Oe(), Dun), e); } function Wbn(e) { - return F7(), Gn((TDe(), Dun), e); + return F7(), Gn((SDe(), Nun), e); } function Xbn(e) { - return _A(), Gn((_Pe(), Cun), e); + return BA(), Gn((JPe(), Pun), e); } function Kbn(e) { - return m9(), Gn((MDe(), Sun), e); + return m9(), Gn((TDe(), Iun), e); } function Vbn(e) { - return E7(), Gn((pLe(), Iun), e); + return E7(), Gn((mLe(), Cun), e); } function Qbn(e) { - return N$(), Gn((AOe(), xun), e); + return N$(), Gn((xOe(), $un), e); } function Ybn(e) { - return U$(), Gn((wLe(), $un), e); + return U$(), Gn((gLe(), Mun), e); } function Zbn(e) { - return U4(), Gn((GPe(), Qun), e); + return U4(), Gn((HPe(), Yun), e); } function ewn(e) { - return a7(), Gn(($Oe(), Yun), e); + return a7(), Gn((MOe(), Zun), e); } function nwn(e) { - return qh(), Gn((CDe(), rsn), e); + return qh(), Gn((PDe(), csn), e); } function twn(e) { - return Vd(), Gn((YNe(), usn), e); + return Vd(), Gn((ZNe(), ssn), e); } function iwn(e) { - return na(), Gn((YLe(), Gsn), e); + return na(), Gn((ZLe(), Hsn), e); } function rwn(e) { - return Mi(), Gn((IDe(), Bsn), e); + return Mi(), Gn((CDe(), Bsn), e); } function cwn(e) { - return Dv(), Gn((QLe(), _sn), e); + return Dv(), Gn((YLe(), Jsn), e); } function uwn(e) { - return lh(), Gn((ALe(), Jsn), e); + return lh(), Gn((xLe(), Gsn), e); } function swn(e) { - return wl(), Gn((VDe(), ssn), e); + return wl(), Gn((QDe(), osn), e); } function own(e) { - return Kd(), Gn((QDe(), dsn), e); + return Kd(), Gn((YDe(), bsn), e); } function fwn(e) { - return _w(), Gn((fFe(), Xsn), e); + return Bw(), Gn((hFe(), Ksn), e); } function hwn(e) { - return E2(), Gn((PDe(), Ksn), e); + return E2(), Gn((ODe(), Vsn), e); } function lwn(e) { - return Ui(), Gn((ZDe(), Vsn), e); + return Ui(), Gn((eNe(), Qsn), e); } function awn(e) { - return ls(), Gn((YDe(), Qsn), e); + return ls(), Gn((ZDe(), Ysn), e); } function dwn(e) { - return Zs(), Gn((ZLe(), Wsn), e); + return Zs(), Gn((eDe(), Xsn), e); } function bwn(e) { - return fT(), Gn((KDe(), Hsn), e); + return fT(), Gn((VDe(), qsn), e); } function wwn(e) { - return ea(), Gn(($Le(), Usn), e); + return ea(), Gn((MLe(), zsn), e); } function gwn(e) { - return O$(), Gn((eDe(), son), e); + return O$(), Gn((nDe(), oon), e); } function pwn(e) { - return Ms(), Gn((oFe(), con), e); + return Ms(), Gn((fFe(), uon), e); } function mwn(e) { - return y3(), Gn((xLe(), uon), e); + return y3(), Gn(($Le(), son), e); } function vwn(e) { - return be(), Gn((ODe(), Ysn), e); + return be(), Gn((LDe(), Zsn), e); } function kwn(e) { - return B6(), Gn((MLe(), ion), e); + return _6(), Gn((TLe(), ron), e); } function ywn(e) { - return Js(), Gn((nDe(), ron), e); + return Js(), Gn((tDe(), con), e); } function jwn(e) { - return DM(), Gn((tDe(), oon), e); + return DM(), Gn((iDe(), fon), e); } function Ewn(e) { - return EM(), Gn((iDe(), lon), e); + return EM(), Gn((rDe(), aon), e); } function Awn(e) { - return Qv(), Gn((ZNe(), Aon), e); + return Qv(), Gn((eFe(), xon), e); } - function OTe(e, n, t) { + function LTe(e, n, t) { bo(), YV.call(this, e, n, t); } function FL(e, n, t) { bo(), OV.call(this, e, n, t); } - function LTe(e, n, t) { + function DTe(e, n, t) { bo(), FL.call(this, e, n, t); } function FK(e, n, t) { bo(), FL.call(this, e, n, t); } - function DTe(e, n, t) { + function NTe(e, n, t) { bo(), FK.call(this, e, n, t); } - function NTe(e, n, t) { + function FTe(e, n, t) { bo(), RK.call(this, e, n, t); } function RK(e, n, t) { bo(), OV.call(this, e, n, t); } - function BK(e, n, t) { + function _K(e, n, t) { bo(), OV.call(this, e, n, t); } - function FTe(e, n, t) { - bo(), BK.call(this, e, n, t); - } function RTe(e, n, t) { + bo(), _K.call(this, e, n, t); + } + function _Te(e, n, t) { this.a = e, this.c = n, this.b = t; } function BTe(e, n, t) { this.a = e, this.b = n, this.c = t; } - function _K(e, n, t) { + function BK(e, n, t) { this.a = e, this.b = n, this.c = t; } function JK(e, n, t) { @@ -7287,31 +7377,31 @@ function WDn() { function RL(e, n, t) { this.a = e, this.b = n, this.c = t; } - function _Te(e, n, t) { + function JTe(e, n, t) { this.a = e, this.b = n, this.c = t; } function Ca(e, n, t) { this.e = e, this.a = n, this.c = t; } function GK(e) { - this.d = e, Ake(this), this.b = pgn(e.d); + this.d = e, xke(this), this.b = pgn(e.d); } function HK(e, n) { gan.call(this, e, PM(new yc(n))); } function $y(e, n) { - return Jn(e), Jn(n), new UEe(e, n); + return Jn(e), Jn(n), new zEe(e, n); } function Zp(e, n) { - return Jn(e), Jn(n), new QTe(e, n); + return Jn(e), Jn(n), new YTe(e, n); } function xwn(e, n) { - return Jn(e), Jn(n), new YTe(e, n); + return Jn(e), Jn(n), new ZTe(e, n); } function $wn(e, n) { - return Jn(e), Jn(n), new tAe(e, n); + return Jn(e), Jn(n), new iAe(e, n); } - function BL(e) { + function _L(e) { return An(e.b != 0), mo(e, e.a.a); } function Mwn(e) { @@ -7324,7 +7414,7 @@ function WDn() { var n; return n = new Dt(), EN(n, e), n; } - function JTe(e) { + function GTe(e) { var n; return n = new nO(), EN(n, e), n; } @@ -7340,16 +7430,16 @@ function WDn() { return m6(e == null || yF(e, n)), e; } function Iwn(e, n, t) { - _Se.call(this, n, t), this.a = e; + JSe.call(this, n, t), this.a = e; } - function GTe(e, n) { + function HTe(e, n) { this.c = e, this.b = n, this.a = !1; } - function HTe() { + function qTe() { this.a = ";,;", this.b = "", this.c = ""; } - function qTe(e, n, t) { - this.b = e, Yxe.call(this, n, t); + function UTe(e, n, t) { + this.b = e, Zxe.call(this, n, t); } function qK(e, n, t) { this.c = e, UA.call(this, n, t); @@ -7379,7 +7469,7 @@ function WDn() { } function XK(e, n) { if (!e) - throw $(new Vje(n)); + throw $(new Qje(n)); } function Pwn(e, n) { return RA(), Zc(e.d.p, n.d.p); @@ -7391,7 +7481,7 @@ function WDn() { return Ql(), Ct(e.e.a, n.e.a); } function Dwn(e, n) { - return Zc(iSe(e.d), iSe(n.d)); + return Zc(rSe(e.d), rSe(n.d)); } function Rx(e, n) { return n && h$(e, n.d) ? n : null; @@ -7402,13 +7492,13 @@ function WDn() { function Fwn(e) { return new ue(e.c + e.b, e.d + e.a); } - function UTe(e) { + function zTe(e) { return e != null && !uF(e, E8, A8); } function Rwn(e, n) { - return (MRe(e) << 4 | MRe(n)) & Ti; + return (TRe(e) << 4 | TRe(n)) & Ti; } - function zTe(e, n, t, i, r) { + function WTe(e, n, t, i, r) { e.c = n, e.d = t, e.b = i, e.a = r; } function KK(e) { @@ -7419,53 +7509,53 @@ function WDn() { var n, t; t = e.d, n = e.a, e.d = n, e.a = t; } - function Bwn(e, n) { + function _wn(e, n) { var t; return t = e.c, $Y(e, n), t; } function QK(e, n) { return n < 0 ? e.g = -1 : e.g = n, e; } - function Bx(e, n) { + function _x(e, n) { return I5n(e), e.a *= n, e.b *= n, e; } function Sy(e, n, t) { gX.call(this, e, n), this.c = t; } - function _x(e, n, t) { + function Bx(e, n, t) { gX.call(this, e, n), this.c = t; } function YK(e) { DK(), hA.call(this), this._h(e); } - function WTe() { + function XTe() { wv(), Qgn.call(this, (m1(), tf)); } - function XTe(e) { + function KTe(e) { return kt(), new fl(0, e); } - function KTe() { - KTe = G, TU = (ze(), new WP(EJ)); + function VTe() { + VTe = G, TU = (ze(), new WP(EJ)); } function Jx() { Jx = G, new lee((oO(), DJ), (sO(), LJ)); } - function VTe() { - this.b = _(H(ge((jf(), uG)))); + function QTe() { + this.b = B(H(ge((jf(), uG)))); } - function _L(e) { + function BL(e) { this.b = e, this.a = Td(this.b.a).Md(); } - function QTe(e, n) { + function YTe(e, n) { this.b = e, this.a = n, RP.call(this); } - function YTe(e, n) { + function ZTe(e, n) { this.a = e, this.b = n, RP.call(this); } - function ZTe(e, n, t) { + function eSe(e, n, t) { this.a = e, Zg.call(this, n, t); } - function eSe(e, n, t) { + function nSe(e, n, t) { this.a = e, Zg.call(this, n, t); } function iv(e, n, t) { @@ -7484,7 +7574,7 @@ function WDn() { var n; return n = e.n, e.a.b + n.d + n.a; } - function nSe(e) { + function tSe(e) { var n; return n = e.n, e.e.b + n.d + n.a; } @@ -7498,14 +7588,14 @@ function WDn() { function rt(e, n) { return ti(e, n, e.c.b, e.c), !0; } - function _wn(e) { + function Bwn(e) { return e.a ? e.a : gD(e); } function m6(e) { if (!e) throw $(new Rm(null)); } - function B0(e, n) { + function _0(e, n) { return h9(e, new Xm(n.a, n.b)); } function Jwn(e) { @@ -7514,10 +7604,10 @@ function WDn() { function Gwn(e, n) { return e.c < n.c ? -1 : e.c == n.c ? 0 : 1; } - function tSe(e) { + function iSe(e) { return e.b.c.length - e.e.c.length; } - function iSe(e) { + function rSe(e) { return e.e.c.length - e.g.c.length; } function JL(e) { @@ -7526,25 +7616,25 @@ function WDn() { function Iy(e) { return e == 0 || isNaN(e) ? e : e < 0 ? -1 : 1; } - function rSe(e) { + function cSe(e) { return w3(), W(yC, kS, 40, e, 0, 1); } - function cSe() { - cSe = G, dse = W(Ii, oe, 15, 256, 0, 1); + function uSe() { + uSe = G, dse = W(Ii, fe, 15, 256, 0, 1); } function tV() { ol(this, !1, !1, !1, !1); } - function uSe(e) { + function sSe(e) { QX.call(this, e.length, 0), this.a = e; } - function sSe(e, n) { - _Se.call(this, n, 1040), this.a = e; + function oSe(e, n) { + JSe.call(this, n, 1040), this.a = e; } function iV(e, n, t, i) { iee.call(this, e, n, t, i, 0, 0); } - function oSe(e) { + function fSe(e) { DK(), YK.call(this, e), this.a = -1; } function Hwn(e) { @@ -7588,32 +7678,32 @@ function WDn() { function Ux(e, n) { ay.call(this, e, n), this.a = this; } - function fSe() { + function hSe() { cL.call(this, "COUNT_CHILDREN", 0); } function rV(e) { this.c = e, this.b = this.c.d.vc().Jc(); } - function hSe(e) { + function lSe(e) { return e.e.Pd().gc() * e.c.Pd().gc(); } function GL(e, n, t) { - return new gTe(e2n(e).Ze(), t, n); + return new pTe(e2n(e).Ze(), t, n); } function lw(e, n, t, i, r, c) { - return H_e(e, n, t, i, r, 0, c); - } - function lSe() { - lSe = G, bse = W(Ab, oe, 190, 256, 0, 1); + return qBe(e, n, t, i, r, 0, c); } function aSe() { - aSe = G, pse = W(xb, oe, 191, 256, 0, 1); + aSe = G, bse = W(Ab, fe, 190, 256, 0, 1); } function dSe() { - dSe = G, hse = W(X3, oe, 221, 256, 0, 1); + dSe = G, pse = W(xb, fe, 191, 256, 0, 1); } function bSe() { - bSe = G, ase = W(hk, oe, 180, 128, 0, 1); + bSe = G, hse = W(X3, fe, 221, 256, 0, 1); + } + function wSe() { + wSe = G, ase = W(hk, fe, 180, 128, 0, 1); } function zx() { zx = G, RJ = new ND((ze(), ze(), $r)); @@ -7629,13 +7719,13 @@ function WDn() { e.a.jd(), u(e.a.kd(), 18).gc(), wW(); } function aw(e) { - this.a = new _p(e.gc()), wr(this, e); + this.a = new Bp(e.gc()), wr(this, e); } function cV(e) { Iz.call(this, new T1()), wr(this, e); } - function wSe(e) { - this.c = e, this.a = new Bp(this.c.a); + function gSe(e) { + this.c = e, this.a = new _p(this.c.a); } function uV(e) { if (e.e.c != e.b) @@ -7645,10 +7735,10 @@ function WDn() { if (e.c.e != e.a) throw $(new lo()); } - function gSe(e) { + function pSe(e) { return e.q ? e.q : (ze(), ze(), El); } - function pSe(e) { + function mSe(e) { return e.c - u(pe(e.a, e.b), 295).b; } function Zwn(e, n) { @@ -7672,7 +7762,7 @@ function WDn() { function cgn(e, n, t) { return Zc(e.d[n.p], e.d[t.p]); } - function mSe(e, n) { + function vSe(e, n) { return e ? 0 : m.Math.max(0, n - 1); } function Xx(e, n, t) { @@ -7687,18 +7777,18 @@ function WDn() { function pe(e, n) { return qe(n, e.c.length), e.c[n]; } - function vSe(e, n) { + function kSe(e, n) { return qe(n, e.a.length), e.a[n]; } - function kSe(e, n) { + function ySe(e, n) { return e.a += Gh(n, 0, n.length), e; } function ugn(e, n) { - return e.a == null && vqe(e), e.a[n]; + return e.a == null && kqe(e), e.a[n]; } - function ySe(e) { + function jSe(e) { var n; - return n = q_e(e), n ? ySe(n) : e; + return n = UBe(e), n ? jSe(n) : e; } function sgn(e, n) { var t; @@ -7714,10 +7804,10 @@ function WDn() { function fl(e, n) { kt(), I0.call(this, e), this.a = n; } - function jSe(e) { + function ESe(e) { this.b = new Dt(), this.a = e, this.c = -1; } - function ESe(e) { + function ASe(e) { this.a = e, this.c = new Tn(), o6n(this); } function Vx(e) { @@ -7730,7 +7820,7 @@ function WDn() { this.a = e, $i.call(this, n, t, 2); } function qL(e, n) { - return e == null ? n == null : _e(e, n); + return e == null ? n == null : Be(e, n); } function ogn(e, n) { return e == null ? n == null : JM(e, n); @@ -7739,7 +7829,7 @@ function WDn() { return kt(), new AV(e, n); } function Xn(e) { - return rc(e) ? e | 0 : xEe(e); + return rc(e) ? e | 0 : $Ee(e); } function Rt(e, n) { var t; @@ -7752,9 +7842,9 @@ function WDn() { kw(n, e.c.length), V4(e.c, n, t); } function UL(e, n, t) { - KFe(0, n, e.length), pv(e, 0, n, t); + VFe(0, n, e.length), pv(e, 0, n, t); } - function ASe(e, n, t) { + function xSe(e, n, t) { var i; for (i = 0; i < n; ++i) e[i] = t; @@ -7762,11 +7852,11 @@ function WDn() { function zL(e, n) { return N(n, 23) && Yu(e, u(n, 23)); } - function xSe(e, n) { + function $Se(e, n) { return N(n, 23) && x5n(e, u(n, 23)); } function Ur(e, n) { - return eRe(e, n, Wmn(e, e.b.Ae(n))); + return nRe(e, n, Wmn(e, e.b.Ae(n))); } function hgn(e, n) { return e.a.get(n) !== void 0; @@ -7778,16 +7868,16 @@ function WDn() { return $s(e, 26) * P9 + $s(e, 27) * O9; } function XL() { - XL = G, don = new nr((tt(), Ss), 0); - } - function $Se() { - $Se = G, FQe = new uSe(W(Li, Ve, 1, 0, 5, 1)); + XL = G, bon = new nr((tt(), Ss), 0); } function MSe() { - this.b = new wwe(), this.c = new hCe(this); + MSe = G, RQe = new sSe(W(Li, Ve, 1, 0, 5, 1)); + } + function TSe() { + this.b = new gwe(), this.c = new lCe(this); } function fV() { - this.d = new Gbe(), this.e = new fCe(this); + this.d = new Hbe(), this.e = new hCe(this); } function KL(e, n) { this.b = new Dt(), this.a = e, this.c = n; @@ -7795,7 +7885,7 @@ function WDn() { function hV() { uQ(), this.g = new Dt(), this.f = new Dt(); } - function TSe() { + function SSe() { Ws(), this.k = new Tn(), this.d = new vi(); } function lgn(e, n) { @@ -7814,21 +7904,21 @@ function WDn() { return ki(e, new Jp(n.a, t.a)); } function bgn(e, n, t) { - cHe(t, e, 1), he(n, new qAe(t, e)); + uHe(t, e, 1), he(n, new UAe(t, e)); } function wgn(e, n, t) { - f9(t, e, 1), he(n, new VAe(t, e)); - } - function SSe(e, n, t, i) { - bo(), yPe.call(this, e, n, t, i); + f9(t, e, 1), he(n, new QAe(t, e)); } function ISe(e, n, t, i) { - bo(), yPe.call(this, e, n, t, i); + bo(), jPe.call(this, e, n, t, i); } - function CSe(e, n, t) { - this.a = e, Ax.call(this, n, t, 22); + function CSe(e, n, t, i) { + bo(), jPe.call(this, e, n, t, i); } function PSe(e, n, t) { + this.a = e, Ax.call(this, n, t, 22); + } + function OSe(e, n, t) { this.a = e, Ax.call(this, n, t, 14); } function au(e, n, t) { @@ -7851,7 +7941,7 @@ function WDn() { function ggn(e, n) { (n.Bb & Lc) != 0 && !e.a.o && (e.a.o = n); } - function OSe(e) { + function LSe(e) { return e != null && tD(e) && e.Rm !== ic; } function dV(e) { @@ -7876,31 +7966,31 @@ function WDn() { var n; return n = e.i, n || (e.i = e.bc()); } - function LSe(e) { + function DSe(e) { var n; return n = e.f, n || (e.f = e.Cc()); } - function DSe(e) { + function NSe(e) { return kt(), new $D(10, e, 0); } function Sd(e) { v1(), this.a = 0, this.b = e - 1, this.c = 1; } - function NSe(e) { + function FSe(e) { jx(this), this.g = e, b$(this), this.he(); } function wV(e, n, t, i) { - this.a = e, _$.call(this, e, n, t, i); + this.a = e, B$.call(this, e, n, t, i); } function fn(e) { - this.a = ($Se(), FQe), this.d = u(Jn(e), 50); + this.a = (MSe(), RQe), this.d = u(Jn(e), 50); } function t$(e) { if (e.e.j != e.d) throw $(new lo()); } function y6(e) { - return rc(e) ? "" + e : hqe(e); + return rc(e) ? "" + e : lqe(e); } function mgn(e, n) { return $d((Ze(e), e), (Ze(n), n)); @@ -7909,15 +7999,15 @@ function WDn() { return Ct((Ze(e), e), (Ze(n), n)); } function hl(e, n) { - return C1(xJe(rc(e) ? Ho(e) : e, n)); + return C1($Je(rc(e) ? Ho(e) : e, n)); } - function _0(e, n) { + function B0(e, n) { return C1(Wne(rc(e) ? Ho(e) : e, n)); } function Id(e, n) { return C1(gEn(rc(e) ? Ho(e) : e, n)); } - function FSe(e, n) { + function RSe(e, n) { return Jn(n), e.a.Hd(n) && !e.b.Hd(n); } function vgn(e, n) { @@ -7930,12 +8020,12 @@ function WDn() { return Eu(e.l ^ n.l, e.m ^ n.m, e.h ^ n.h); } function dw(e, n) { - return y7(e, (Ze(n), new Cke(n))); + return y7(e, (Ze(n), new Pke(n))); } function t3(e, n) { - return y7(e, (Ze(n), new Pke(n))); + return y7(e, (Ze(n), new Oke(n))); } - function RSe(e) { + function _Se(e) { return ns(), u(e, 12).g.c.length != 0; } function BSe(e) { @@ -7952,10 +8042,10 @@ function WDn() { } function rv(e, n) { if (e < 0 || e >= n) - throw $(new oje()); + throw $(new fje()); } function Fc(e) { - e.f = new b$e(e), e.i = new w$e(e), ++e.g; + e.f = new w$e(e), e.i = new g$e(e), ++e.g; } function i$(e) { this.b = new bu(11), this.a = (U0(), e); @@ -7966,11 +8056,11 @@ function WDn() { function pV(e, n) { this.e = e, this.d = (n & 64) != 0 ? n | Wh : n; } - function _Se(e, n) { + function JSe(e, n) { this.c = 0, this.d = e, this.b = n | 64 | Wh; } - function JSe(e) { - this.a = JBe(e.a), this.b = new os(e.b); + function GSe(e) { + this.a = G_e(e.a), this.b = new os(e.b); } function Pa(e, n, t, i) { var r; @@ -7988,11 +8078,11 @@ function WDn() { function j6(e) { return ls(), !e.Gc(ba) && !e.Gc(dd); } - function GSe(e, n, t) { + function HSe(e, n, t) { return e5(), SN(e, n) && SN(e, t); } - function HSe(e, n, t) { - return Qze(e, u(n, 12), u(t, 12)); + function qSe(e, n, t) { + return Yze(e, u(n, 12), u(t, 12)); } function eD(e, n) { return n.Sh() ? D1(e.b, u(n, 52)) : n; @@ -8001,12 +8091,12 @@ function WDn() { return new ue(e.c + e.b / 2, e.d + e.a / 2); } function xgn(e, n, t) { - n.of(t, _(H(rn(e.b, t))) * e.a); + n.of(t, B(H(rn(e.b, t))) * e.a); } function $gn(e, n) { n.Tg("General 'Rotator", 1), JPn(e); } - function Bi(e, n, t, i, r) { + function _i(e, n, t, i, r) { tN.call(this, e, n, t, i, r, -1); } function E6(e, n, t, i, r) { @@ -8018,23 +8108,23 @@ function WDn() { function c$(e, n, t, i) { Sy.call(this, e, n, t), this.b = i; } - function qSe(e) { - Jxe.call(this, e, !1), this.a = !1; + function USe(e) { + Gxe.call(this, e, !1), this.a = !1; } - function USe() { + function zSe() { cL.call(this, "LOOKAHEAD_LAYOUT", 1); } - function zSe() { + function WSe() { cL.call(this, "LAYOUT_NEXT_LEVEL", 3); } - function WSe(e) { - this.b = e, Xp.call(this, e), Z$e(this); - } function XSe(e) { - this.b = e, gy.call(this, e), eMe(this); + this.b = e, Xp.call(this, e), eMe(this); + } + function KSe(e) { + this.b = e, gy.call(this, e), nMe(this); } - function KSe(e, n) { - this.b = e, Z9e.call(this, e.b), this.a = n; + function VSe(e, n) { + this.b = e, eke.call(this, e.b), this.a = n; } function bw(e, n, t) { this.a = e, Qp.call(this, n, t, 5, 6); @@ -8056,7 +8146,7 @@ function WDn() { return kt(), new LV(6, e, n); } function Mgn(e, n) { - return _e(e.substr(0, n.length), n); + return Be(e.substr(0, n.length), n); } function eu(e, n) { return Hi(n) ? ED(e, n) : !!Ur(e.f, n); @@ -8073,7 +8163,7 @@ function WDn() { function iD(e) { return new Ge(null, Ngn(e, e.length)); } - function VSe(e) { + function QSe(e) { if (!e) throw $(new oc()); return e.d; @@ -8109,8 +8199,8 @@ function WDn() { function Cgn(e, n, t) { rv(t, e.a.c.length), Ks(e.a, t, n); } - function q(e, n, t, i) { - KFe(n, t, e.length), Pgn(e, n, t, i); + function U(e, n, t, i) { + VFe(n, t, e.length), Pgn(e, n, t, i); } function Pgn(e, n, t, i) { var r; @@ -8125,14 +8215,14 @@ function WDn() { function A6(e) { cw(e.b != -1), La(e.c, e.a = e.b), e.b = -1; } - function Bf(e, n, t) { + function _f(e, n, t) { return P6n(e, n.g, t), mf(e.c, n), e; } function Ogn(e, n, t) { zPn(e.a, e.b, e.d, e.c, u(n, 170), t); } function Py(e, n) { - N$e(e, N(n, 163) ? n : u(n, 1998).Pl()); + F$e(e, N(n, 163) ? n : u(n, 1998).Pl()); } function jV(e, n) { if (e == null) @@ -8147,7 +8237,7 @@ function WDn() { function AV(e, n) { I0.call(this, 1), this.a = e, this.b = n; } - function QSe(e, n) { + function YSe(e, n) { return iu(e, n) < 0 ? -1 : iu(e, n) > 0 ? 1 : 0; } function x6(e) { @@ -8160,26 +8250,26 @@ function WDn() { return e == ii ? Rj : e == Ri ? "-INF" : "" + e; } function Ngn(e, n) { - return $5n(n, e.length), new sSe(e, n); + return $5n(n, e.length), new oSe(e, n); } - function YSe(e, n, t, i, r) { + function ZSe(e, n, t, i, r) { for (; n < t; ) i[r++] = or(e, n++); } - function ZSe(e, n, t) { + function eIe(e, n, t) { var i; for (i = 0; i < n; ++i) ai(e, i, t); } function Fgn(e, n, t) { var i; - return i = Aw(e, n), _D(e, n, t), i; + return i = Aw(e, n), BD(e, n, t), i; } - function eIe(e, n) { - return e.c ? eIe(e.c, n) : he(e.b, n), e; + function nIe(e, n) { + return e.c ? nIe(e.c, n) : he(e.b, n), e; } function cD(e) { - return !e.j && Yhn(e, _Tn(e.g, e.b)), e.j; + return !e.j && Yhn(e, BTn(e.g, e.b)), e.j; } function Rgn(e) { return L2(e, (Mi(), Qr)), e.d = !0, e; @@ -8187,13 +8277,13 @@ function WDn() { function s$(e, n) { ti(e.d, n, e.b.b, e.b), ++e.a, e.c = null; } - function Bgn(e, n) { + function _gn(e, n) { return Ct(e.c.c + e.c.b, n.c.c + n.c.b); } function uD(e) { return m.Math.abs(e.d.e - e.e.e) - e.a; } - function _gn(e, n) { + function Bgn(e, n) { return Ct(e.e.a + e.f.a, n.e.a + n.f.a); } function Jgn(e, n) { @@ -8205,11 +8295,11 @@ function WDn() { function ww(e) { this.d = (Ze(e), e), this.a = 0, this.c = sj; } - function nIe(e) { + function tIe(e) { VV.call(this), this.a = e, he(e.a, this); } function xV(e) { - e ? Zee(e, (Ta(), VQe)) : U2n((Ta(), e)); + e ? Zee(e, (Ta(), QQe)) : U2n((Ta(), e)); } function Ggn(e, n) { c3(e, new gw(n.f != null ? n.f : "" + n.g)); @@ -8218,13 +8308,13 @@ function WDn() { c3(e, new gw(n.f != null ? n.f : "" + n.g)); } function J0(e, n) { - fi(du(e.Mc(), new Mpe()), new R8e(n)); + fi(du(e.Mc(), new Tpe()), new _8e(n)); } function hi(e, n) { - return e.Qi() && (n = LCe(e, n)), e.Di(n); + return e.Qi() && (n = DCe(e, n)), e.Di(n); } function oD(e, n) { - return n = e.Wk(null, n), uJe(e, null, n); + return n = e.Wk(null, n), sJe(e, null, n); } function qgn(e, n) { ++e.j, UF(e, e.i, n), MAn(e, u(n, 344)); @@ -8236,19 +8326,19 @@ function WDn() { zF(e, u(Mt(n.k, t), 16), t, i, r); } function o$(e) { - e.s = NaN, e.c = NaN, WGe(e, e.e), WGe(e, e.j); + e.s = NaN, e.c = NaN, XGe(e, e.e), XGe(e, e.j); } - function tIe(e) { + function iIe(e) { e.a = null, e.e = null, Fc(e.b), e.d = 0, ++e.c; } function $n(e) { return (e.i == null && zh(e), e.i).length; } function E1() { - E1 = G, tn = $An(), Ue(), Ng && _yn(); + E1 = G, tn = $An(), Ue(), Ng && Byn(); } - function iIe() { - iIe = G, qQe = new mz(!1), UQe = new mz(!0); + function rIe() { + rIe = G, UQe = new mz(!1), zQe = new mz(!0); } function $6(e) { var n; @@ -8264,13 +8354,13 @@ function WDn() { } function zgn(e) { var n; - return n = e.i, n || (e.i = new K9e(e)); + return n = e.i, n || (e.i = new V9e(e)); } function fD(e) { var n; - return n = e.j, n || (e.j = new gke(e)); + return n = e.j, n || (e.j = new pke(e)); } - function rIe(e) { + function cIe(e) { var n; return n = e.f, n || (e.f = new RX(e)); } @@ -8284,7 +8374,7 @@ function WDn() { } function w(e, n, t) { var i; - return i = lD(e, n), oNe(t, i), i; + return i = lD(e, n), fNe(t, i), i; } function lD(e, n) { var t; @@ -8300,26 +8390,26 @@ function WDn() { throw $(new Cp()); this.a = e; } - function cIe(e) { + function uIe(e) { Xz(), this.b = new le(), this.a = e, UCn(this, e); } function TV(e) { this.b = e, this.a = u(Jo(this.b.a.e), 227); } - function uIe() { + function sIe() { T1.call(this), this.a = !0, this.b = !0; } function SV(e, n) { return bn(n, e.length + 1), e.substr(n); } - function sIe(e, n) { - return Hy(n, e.c.b.c.gc()), new qEe(e, n); + function oIe(e, n) { + return Hy(n, e.c.b.c.gc()), new UEe(e, n); } - function oIe(e, n, t) { - return kt(), new cPe(e, n, t); + function fIe(e, n, t) { + return kt(), new uPe(e, n, t); } function IV(e) { - return N(e, 606) ? e : new xCe(e); + return N(e, 606) ? e : new $Ce(e); } function ai(e, n, t) { return pdn(t == null || ASn(e, t)), e[n] = t; @@ -8331,12 +8421,12 @@ function WDn() { return e.a += String.fromCharCode(n), e; } function Wgn(e, n) { - return p3(), u(_r(e, n.d), 16).Ec(n); + return p3(), u(Br(e, n.d), 16).Ec(n); } function rn(e, n) { return Hi(n) ? nu(e, n) : hc(Ur(e.f, n)); } - function fIe(e, n) { + function hIe(e, n) { return u(Td(e.a).Kd().Xb(n), 45).jd(); } function Xgn(e, n) { @@ -8349,15 +8439,15 @@ function WDn() { var i; return i = jN(e, n, t), Ate(e, i); } - function hIe(e, n) { + function lIe(e, n) { var t; t = console[e], t.call(console, n); } function c3(e, n) { var t; - t = e.a.length, Aw(e, t), _D(e, t, n); + t = e.a.length, Aw(e, t), BD(e, t, n); } - function lIe(e, n) { + function aIe(e, n) { var t; ++e.j, t = e.Cj(), e.pj(e.Xi(t, n)); } @@ -8366,22 +8456,22 @@ function WDn() { e.Qe(n, e.c++); } function Vgn(e, n, t) { - u(n.b, 68), wu(n.a, new _K(e, t, n)); + u(n.b, 68), wu(n.a, new BK(e, t, n)); } function CV(e) { for (; e.a.b != 0; ) - xPn(e, u(kCe(e.a), 9)); + xPn(e, u(yCe(e.a), 9)); } function PV(e) { this.d = e, this.c = e.a.d.a, this.b = e.a.e.g; } - function aIe(e) { + function dIe(e) { this.c = e, this.a = new Dt(), this.b = new Dt(); } function Jc(e) { this.c = new er(), this.a = new le(), this.b = e; } - function dIe(e) { + function bIe(e) { this.b = new le(), this.a = new le(), this.c = e; } function OV(e, n, t) { @@ -8393,13 +8483,13 @@ function WDn() { function DV(e, n, t) { this.a = e, Hz.call(this, n), this.b = t; } - function bIe(e, n, t) { + function wIe(e, n, t) { this.a = e, mQ.call(this, 8, n, null, t); } function Qgn(e) { this.a = (Ze(nt), nt), this.b = e, new rW(); } - function wIe(e) { + function gIe(e) { this.c = e, this.b = this.c.a, this.a = this.c.e; } function vs(e) { @@ -8408,13 +8498,13 @@ function WDn() { function M6(e) { return m.Math.sqrt(e.a * e.a + e.b * e.b); } - function gIe(e) { + function pIe(e) { return N(e, 103) && (u(e, 19).Bb & Lc) != 0; } - function pIe(e) { + function mIe(e) { return Jo(e), N(e, 472) ? u(e, 472) : uc(e); } - function mIe(e) { + function vIe(e) { return e ? e.dc() : !e.Jc().Ob(); } function Ygn(e) { @@ -8426,7 +8516,7 @@ function WDn() { function T6(e) { e.c ? e.c.Ye() : (e.d = !0, P$n(e)); } - function vIe(e) { + function kIe(e) { GV(e.a), e.b = W(Li, Ve, 1, e.b.length, 5, 1); } function h$(e, n) { @@ -8441,11 +8531,11 @@ function WDn() { function Zgn(e, n) { return Zc(n.j.c.length, e.j.c.length); } - function kIe(e) { + function yIe(e) { var n, t; return n = e.c.i.c, t = e.d.i.c, n == t; } - function _i(e) { + function Bi(e) { return !e.a && e.c ? e.c.b : e.a; } function e2n(e) { @@ -8492,13 +8582,13 @@ function WDn() { return e.k; } function wi() { - Cje.call(this), Wb(this.j.c, 0), this.a = -1; + Pje.call(this), Wb(this.j.c, 0), this.a = -1; } - function yIe() { - _n.call(this, "DELAUNAY_TRIANGULATION", 0); + function jIe() { + Bn.call(this, "DELAUNAY_TRIANGULATION", 0); } function o2n() { - return $A(), I(T(RQe, 1), ce, 537, 0, [FJ]); + return $A(), I(S(_Qe, 1), ce, 537, 0, [FJ]); } function f2n(e, n, t) { return v3(), t.Kg(e, u(n.jd(), 147)); @@ -8523,22 +8613,22 @@ function WDn() { function FV(e) { return !e.b && (e.b = new pA(new uO())), e.b; } - function jIe(e, n) { - return Jx(), new lee(new tMe(e), new nMe(n)); + function EIe(e, n) { + return Jx(), new lee(new iMe(e), new tMe(n)); } function a2n(e) { - return Qs(e, eB), Q$(yr(yr(5, e), e / 10 | 0)); + return Qs(e, e_), Q$(yr(yr(5, e), e / 10 | 0)); } function bD() { - bD = G, JQe = new GW(I(T(s0, 1), JT, 45, 0, [])); - } - function EIe() { - une.call(this, u0, (bEe(), Yon)), ICn(this); + bD = G, GQe = new GW(I(S(s0, 1), JT, 45, 0, [])); } function AIe() { + une.call(this, u0, (wEe(), Zon)), ICn(this); + } + function xIe() { une.call(this, Wo, (Gm(), L0e)), RIn(this); } - function xIe(e, n) { + function $Ie(e, n) { J1n.call(this, Q5n(Jn(e), Jn(n))), this.a = n; } function RV(e, n, t, i) { @@ -8547,25 +8637,25 @@ function WDn() { function l$(e, n, t, i) { O0.call(this, e, t), this.a = n, this.f = i; } - function $Ie(e, n) { - this.b = e, rD.call(this, e, n), Z$e(this); - } function MIe(e, n) { - this.b = e, CK.call(this, e, n), eMe(this); + this.b = e, rD.call(this, e, n), eMe(this); + } + function TIe(e, n) { + this.b = e, CK.call(this, e, n), nMe(this); } function S6(e) { this.d = e, this.a = this.d.b, this.b = this.d.c; } - function TIe(e) { + function SIe(e) { e.b = !1, e.c = !1, e.d = !1, e.a = !1; } function fv(e) { - return !e.a && (e.a = new eEe(e.c.vc())), e.a; - } - function SIe(e) { - return !e.b && (e.b = new Bm(e.c.ec())), e.b; + return !e.a && (e.a = new nEe(e.c.vc())), e.a; } function IIe(e) { + return !e.b && (e.b = new _m(e.c.ec())), e.b; + } + function CIe(e) { return !e.d && (e.d = new Om(e.c.Bc())), e.d; } function al(e, n) { @@ -8573,14 +8663,14 @@ function WDn() { e = e << 1 | (e < 0 ? 1 : 0); return e; } - function CIe(e, n) { + function PIe(e, n) { var t; return t = new Jc(e), sn(n.c, t), t; } function d2n(e, n) { VL(u(n.b, 68), e), wu(n.a, new Nz(e)); } - function PIe(e, n) { + function OIe(e, n) { e.u.Gc((ls(), ba)) && yAn(e, n), jvn(e, n); } function Gc(e, n) { @@ -8589,19 +8679,19 @@ function WDn() { function ht(e, n, t) { return Hi(n) ? zr(e, n, t) : Ru(e.f, n, t); } - function BV(e) { + function _V(e) { return ze(), e ? e.Me() : (U0(), U0(), $se); } function b2n() { - return _A(), I(T(k1e, 1), ce, 477, 0, [Fq]); + return BA(), I(S(k1e, 1), ce, 477, 0, [Fq]); } function w2n() { - return JA(), I(T(Pun, 1), ce, 546, 0, [Rq]); + return JA(), I(S(Oun, 1), ce, 546, 0, [Rq]); } function g2n() { - return U4(), I(T(J1e, 1), ce, 527, 0, [EE]); + return U4(), I(S(J1e, 1), ce, 527, 0, [EE]); } - function _r(e, n) { + function Br(e, n) { return zL(e.a, n) ? e.b[u(n, 23).g] : null; } function p2n(e) { @@ -8614,7 +8704,7 @@ function WDn() { return e.j.c.length = 0, GV(e.c), o0n(e.a), e; } function hv(e) { - return e.e == F5 && Khn(e, Bkn(e.g, e.b)), e.e; + return e.e == F5 && Khn(e, _kn(e.g, e.b)), e.e; } function Ly(e) { return e.f == F5 && Qhn(e, Tyn(e.g, e.b)), e.f; @@ -8622,7 +8712,7 @@ function WDn() { function m2n(e) { return !e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b; } - function _V(e) { + function BV(e) { return !e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c; } function JV(e) { @@ -8633,7 +8723,7 @@ function WDn() { } function o2(e) { var n; - return n = e.b, !n && (e.b = n = new X9e(e)), n; + return n = e.b, !n && (e.b = n = new K9e(e)), n; } function GV(e) { var n; @@ -8645,25 +8735,25 @@ function WDn() { i = u(e.d.Kb(t), 162), i && i.Nb(n); } function k2n(e, n) { - return new cCe(u(Jn(e), 51), u(Jn(n), 51)); + return new uCe(u(Jn(e), 51), u(Jn(n), 51)); } function mt(e, n) { return N1(e), new Ge(e, new eY(n, e.a)); } function du(e, n) { - return N1(e), new Ge(e, new _Q(n, e.a)); + return N1(e), new Ge(e, new BQ(n, e.a)); } function pw(e, n) { - return N1(e), new fK(e, new zOe(n, e.a)); + return N1(e), new fK(e, new WOe(n, e.a)); } function a$(e, n) { - return N1(e), new hK(e, new WOe(n, e.a)); - } - function OIe(e, n) { - NZ(e, _(Yl(n, "x")), _(Yl(n, "y"))); + return N1(e), new hK(e, new XOe(n, e.a)); } function LIe(e, n) { - NZ(e, _(Yl(n, "x")), _(Yl(n, "y"))); + NZ(e, B(Yl(n, "x")), B(Yl(n, "y"))); + } + function DIe(e, n) { + NZ(e, B(Yl(n, "x")), B(Yl(n, "y"))); } function y2n(e, n) { return DW(), Ct((Ze(e), e), (Ze(n), n)); @@ -8687,13 +8777,13 @@ function WDn() { return n = Z5n(e), n || null; } function bt(e, n, t, i) { - return zNe(e, n, t, !1), TM(e, i), e; + return WNe(e, n, t, !1), TM(e, i), e; } function $2n(e, n, t) { PIn(e.a, t), Q4n(t), rxn(e.b, t), ZIn(n, t); } function u3(e, n, t, i) { - _n.call(this, e, n), this.a = t, this.b = i; + Bn.call(this, e, n), this.a = t, this.b = i; } function d$(e, n, t, i) { this.a = e, this.c = n, this.b = t, this.d = i; @@ -8701,13 +8791,13 @@ function WDn() { function HV(e, n, t, i) { this.c = e, this.b = n, this.a = t, this.d = i; } - function DIe(e, n, t, i) { + function NIe(e, n, t, i) { this.c = e, this.b = n, this.d = t, this.a = i; } function pD(e, n, t, i) { this.a = e, this.e = n, this.d = t, this.c = i; } - function NIe(e, n, t, i) { + function FIe(e, n, t, i) { this.a = e, this.d = n, this.c = t, this.b = i; } function df(e, n, t, i) { @@ -8717,13 +8807,13 @@ function WDn() { this.a = $ie, this.d = e, this.b = n, this.c = t; } function qV(e, n) { - this.b = e, this.c = n, this.a = new Bp(this.b); + this.b = e, this.c = n, this.a = new _p(this.b); } - function FIe(e, n) { + function RIe(e, n) { this.d = (Ze(e), e), this.a = 16449, this.c = n; } - function RIe(e, n, t, i) { - JFe.call(this, e, t, i, !1), this.f = n; + function _Ie(e, n, t, i) { + GFe.call(this, e, t, i, !1), this.f = n; } function vD(e, n, t) { var i, r; @@ -8740,34 +8830,34 @@ function WDn() { function BIe(e) { return !e.b && (e.b = new ne(xi, e, 12, 3)), e.b; } - function _Ie(e) { - this.a = new le(), this.e = W(Wn, oe, 54, e, 0, 2); + function JIe(e) { + this.a = new le(), this.e = W(Wn, fe, 54, e, 0, 2); } function yD(e) { - this.f = e, this.c = this.f.e, e.f > 0 && N_e(this); + this.f = e, this.c = this.f.e, e.f > 0 && FBe(this); } - function JIe(e, n, t, i) { + function GIe(e, n, t, i) { this.a = e, this.c = n, this.d = t, this.b = i; } - function GIe(e, n, t, i) { + function HIe(e, n, t, i) { this.a = e, this.b = n, this.d = t, this.c = i; } - function HIe(e, n, t, i) { + function qIe(e, n, t, i) { this.a = e, this.b = n, this.c = t, this.d = i; } - function qIe(e, n, t, i) { + function UIe(e, n, t, i) { this.a = e, this.b = n, this.c = t, this.d = i; } function Od(e, n, t, i) { this.e = e, this.a = n, this.c = t, this.d = i; } - function UIe(e, n, t, i) { - bo(), UOe.call(this, n, t, i), this.a = e; - } function zIe(e, n, t, i) { - bo(), UOe.call(this, n, t, i), this.a = e; + bo(), zOe.call(this, n, t, i), this.a = e; + } + function WIe(e, n, t, i) { + bo(), zOe.call(this, n, t, i), this.a = e; } - function WIe(e, n) { + function XIe(e, n) { this.a = e, Gdn.call(this, e, u(e.d, 16).dd(n)); } function M2n(e, n) { @@ -8800,7 +8890,7 @@ function WDn() { return e.length > 0 ? wf(e) : new le(); } function b$(e) { - return e.n && (e.e !== lWe && e.he(), e.j = null), e; + return e.n && (e.e !== aWe && e.he(), e.j = null), e; } function zV(e, n) { return e.b = n.b, e.c = n.c, e.d = n.d, e.a = n.a, e; @@ -8821,24 +8911,24 @@ function WDn() { return q4(), N9n(u(rn(e.e, n), 516), t); } function D2n(e, n, t) { - e.i = 0, e.e = 0, n != t && FFe(e, n, t); + e.i = 0, e.e = 0, n != t && RFe(e, n, t); } function N2n(e, n, t) { - e.i = 0, e.e = 0, n != t && RFe(e, n, t); + e.i = 0, e.e = 0, n != t && _Fe(e, n, t); } - function XIe(e, n, t, i) { + function KIe(e, n, t, i) { this.b = e, this.c = i, mx.call(this, n, t); } - function KIe(e, n) { - this.g = e, this.d = I(T(xl, 1), Wa, 9, 0, [n]); - } function VIe(e, n) { - e.d && !e.d.a && (_7e(e.d, n), VIe(e.d, n)); + this.g = e, this.d = I(S(xl, 1), Wa, 9, 0, [n]); } function QIe(e, n) { - e.e && !e.e.a && (_7e(e.e, n), QIe(e.e, n)); + e.d && !e.d.a && (J7e(e.d, n), QIe(e.d, n)); } function YIe(e, n) { + e.e && !e.e.a && (J7e(e.e, n), YIe(e.e, n)); + } + function ZIe(e, n) { return j2(e.j, n.s, n.c) + j2(n.e, e.s, e.c); } function F2n(e, n) { @@ -8847,31 +8937,31 @@ function WDn() { function R2n(e) { return u(e.jd(), 147).Og() + ":" + uc(e.kd()); } - function ZIe() { + function eCe() { YF(this, new az()), this.wb = (E1(), tn), Gm(); } - function eCe(e) { - this.b = new w3e(), this.a = e, m.Math.random(); - } function nCe(e) { + this.b = new g3e(), this.a = e, m.Math.random(); + } + function tCe(e) { this.b = new le(), Ci(this.b, this.b), this.a = e; } function WV(e, n) { new Dt(), this.a = new ms(), this.b = e, this.c = n; } - function tCe() { + function iCe() { fc.call(this, "There is no more element."); } - function B2n(e) { + function _2n(e) { SA(), m.setTimeout(function() { throw e; }, 0); } - function _2n(e) { + function B2n(e) { e.Tg("No crossing minimization", 1), e.Ug(); } function J2n(e, n) { - return Rs(e), Rs(n), zje(u(e, 23), u(n, 23)); + return Rs(e), Rs(n), Wje(u(e, 23), u(n, 23)); } function Ld(e, n, t) { var i, r; @@ -8880,7 +8970,7 @@ function WDn() { function jD(e, n, t, i, r, c) { Qy.call(this, e, n, t, i, r, c ? -2 : -1); } - function iCe(e, n, t, i) { + function rCe(e, n, t, i) { gX.call(this, n, t), this.b = e, this.a = i; } function XV(e) { @@ -8895,7 +8985,7 @@ function WDn() { function ee(e) { return !e.s && (e.s = new ne(Uu, e, 21, 17)), e.s; } - function rCe(e) { + function cCe(e) { return m6(e == null || tD(e) && e.Rm !== ic), e; } function g$(e, n) { @@ -8903,7 +8993,7 @@ function WDn() { throw $(new Np(n)); return e; } - function cCe(e, n) { + function uCe(e, n) { jln.call(this, new ZL(e)), this.a = e, this.b = n; } function ED(e, n) { @@ -8916,13 +9006,13 @@ function WDn() { return ze(), N(e, 59) ? new pO(e) : new $x(e); } function G2n(e) { - return Jn(e), YBe(new fn(dn(e.a.Jc(), new Q()))); + return Jn(e), Z_e(new fn(dn(e.a.Jc(), new Y()))); } function H2n(e) { - return new K$e(e, e.e.Pd().gc() * e.c.Pd().gc()); + return new V$e(e, e.e.Pd().gc() * e.c.Pd().gc()); } function q2n(e) { - return new V$e(e, e.e.Pd().gc() * e.c.Pd().gc()); + return new Q$e(e, e.e.Pd().gc() * e.c.Pd().gc()); } function KV(e) { return e && e.hashCode ? e.hashCode() : R0(e); @@ -8934,7 +9024,7 @@ function WDn() { var t; return t = DX(e.a, n), t && (n.d = null), t; } - function uCe(e, n, t) { + function sCe(e, n, t) { return e.f ? e.f.cf(n, t) : !1; } function Dy(e, n, t, i) { @@ -8944,12 +9034,12 @@ function WDn() { ai(e.c[n.g], n.g, t), ai(e.b[n.g], n.g, i); } function W2n(e, n, t) { - return _(H(t.a)) <= e && _(H(t.b)) >= n; + return B(H(t.a)) <= e && B(H(t.b)) >= n; } - function sCe() { + function oCe() { this.d = new Dt(), this.b = new Tn(), this.c = new le(); } - function oCe() { + function fCe() { this.b = new vi(), this.d = new Dt(), this.e = new AA(); } function VV() { @@ -8958,42 +9048,42 @@ function WDn() { function z0() { this.a = new ms(), this.b = (Qs(3, Ww), new bu(3)); } - function fCe(e) { - this.c = e, this.b = new Ma(u(Jn(new Jbe()), 51)); - } function hCe(e) { - this.c = e, this.b = new Ma(u(Jn(new bwe()), 51)); + this.c = e, this.b = new Ma(u(Jn(new Gbe()), 51)); } function lCe(e) { - this.b = e, this.a = new Ma(u(Jn(new twe()), 51)); + this.c = e, this.b = new Ma(u(Jn(new wwe()), 51)); + } + function aCe(e) { + this.b = e, this.a = new Ma(u(Jn(new iwe()), 51)); } function Oa(e, n) { - this.e = e, this.a = Li, this.b = Mqe(n), this.c = n; + this.e = e, this.a = Li, this.b = Tqe(n), this.c = n; } function m$(e) { this.c = e.c, this.d = e.d, this.b = e.b, this.a = e.a; } - function aCe(e, n, t, i, r, c) { + function dCe(e, n, t, i, r, c) { this.a = e, pN.call(this, n, t, i, r, c); } - function dCe(e, n, t, i, r, c) { + function bCe(e, n, t, i, r, c) { this.a = e, pN.call(this, n, t, i, r, c); } function x1(e, n, t, i, r, c, s) { return new HD(e.e, n, t, i, r, c, s); } function X2n(e, n, t) { - return t >= 0 && _e(e.substr(t, n.length), n); + return t >= 0 && Be(e.substr(t, n.length), n); } - function bCe(e, n) { - return N(n, 147) && _e(e.b, u(n, 147).Og()); + function wCe(e, n) { + return N(n, 147) && Be(e.b, u(n, 147).Og()); } function K2n(e, n) { return e.a ? n.Dh().Jc() : u(n.Dh(), 72).Gi(); } - function wCe(e, n) { + function gCe(e, n) { var t; - return t = e.b.Oc(n), oOe(t, e.b.gc()), t; + return t = e.b.Oc(n), fOe(t, e.b.gc()), t; } function Ny(e, n) { if (e == null) @@ -9001,7 +9091,7 @@ function WDn() { return e; } function Zr(e) { - return e.u || (ks(e), e.u = new HMe(e, e)), e.u; + return e.u || (ks(e), e.u = new qMe(e, e)), e.u; } function Lu(e) { var n; @@ -9014,74 +9104,74 @@ function WDn() { function Go(e, n, t) { return tr(n, t, e.length), e.substr(n, t - n); } - function gCe(e, n) { + function pCe(e, n) { Px.call(this), aY(this), this.a = e, this.c = n; } - function pCe() { + function mCe() { cL.call(this, "FIXED_INTEGER_RATIO_BOXES", 2); } function V2n() { - return G$(), I(T(Zoe, 1), ce, 422, 0, [Yoe, PG]); + return G$(), I(S(Zoe, 1), ce, 422, 0, [Yoe, PG]); } function Q2n() { - return c7(), I(T(ofe, 1), ce, 419, 0, [LI, sfe]); + return c7(), I(S(ofe, 1), ce, 419, 0, [LI, sfe]); } function Y2n() { - return Zy(), I(T(lfe, 1), ce, 476, 0, [hfe, NI]); + return Zy(), I(S(lfe, 1), ce, 476, 0, [hfe, NI]); } function Z2n() { - return S$(), I(T(xfe, 1), ce, 420, 0, [ZG, Afe]); + return S$(), I(S(xfe, 1), ce, 420, 0, [ZG, Afe]); } function epn() { - return P$(), I(T(Bfe, 1), ce, 423, 0, [fH, oH]); + return P$(), I(S(_fe, 1), ce, 423, 0, [fH, oH]); } function npn() { - return n7(), I(T($le, 1), ce, 421, 0, [JH, GH]); + return n7(), I(S($le, 1), ce, 421, 0, [JH, GH]); } function tpn() { - return D6(), I(T(grn, 1), ce, 518, 0, [zk, Uk]); + return D6(), I(S(prn, 1), ce, 518, 0, [zk, Uk]); } function ipn() { - return uh(), I(T(xrn, 1), ce, 508, 0, [p0, Ah]); + return uh(), I(S($rn, 1), ce, 508, 0, [p0, Ah]); } function rpn() { - return Rh(), I(T(Ern, 1), ce, 509, 0, [Nb, e1]); + return Rh(), I(S(Arn, 1), ce, 509, 0, [Nb, e1]); } function cpn() { - return Jf(), I(T(_rn, 1), ce, 515, 0, [jg, ud]); + return Jf(), I(S(Jrn, 1), ce, 515, 0, [jg, ud]); } function upn() { - return X0(), I(T(Wrn, 1), ce, 454, 0, [sd, hp]); + return X0(), I(S(Xrn, 1), ce, 454, 0, [sd, hp]); } function spn() { - return T$(), I(T(yae, 1), ce, 425, 0, [hq, kae]); + return T$(), I(S(yae, 1), ce, 425, 0, [hq, kae]); } function opn() { - return lM(), I(T(jae, 1), ce, 487, 0, [$C, dp]); + return lM(), I(S(jae, 1), ce, 487, 0, [$C, dp]); } function fpn() { - return q$(), I(T(Aae, 1), ce, 426, 0, [Eae, gq]); + return q$(), I(S(Aae, 1), ce, 426, 0, [Eae, gq]); } function hpn() { - return V$(), I(T(Bse, 1), ce, 424, 0, [rG, rI]); + return V$(), I(S(_se, 1), ce, 424, 0, [rG, rI]); } function lpn() { - return Ev(), I(T(ten, 1), ce, 502, 0, [zj, pG]); + return Ev(), I(S(ien, 1), ce, 502, 0, [zj, pG]); } function apn() { - return N$(), I(T(d1e, 1), ce, 478, 0, [Oq, a1e]); + return N$(), I(S(d1e, 1), ce, 478, 0, [Oq, a1e]); } function dpn() { - return Wy(), I(T(y1e, 1), ce, 428, 0, [Bq, FC]); + return Wy(), I(S(y1e, 1), ce, 428, 0, [_q, FC]); } function bpn() { - return a7(), I(T(H1e, 1), ce, 427, 0, [BC, G1e]); + return a7(), I(S(H1e, 1), ce, 427, 0, [_C, G1e]); } function k$(e, n, t, i) { return t >= 0 ? e.Rh(n, t, i) : e.zh(null, t, i); } function Fy(e) { - return e.b.b == 0 ? e.a.uf() : BL(e.b); + return e.b.b == 0 ? e.a.uf() : _L(e.b); } function wpn(e) { if (e.p != 5) throw $(new Vu()); @@ -9094,11 +9184,11 @@ function WDn() { function QV(e) { return z(e.a) === z(($N(), xU)) && ACn(e), e.a; } - function mCe(e, n) { + function vCe(e, n) { Ohn(this, new ue(e.a, e.b)), Lhn(this, My(n)); } function W0() { - Eln.call(this, new _p(Sw(12))), _X(!0), this.a = 2; + Eln.call(this, new Bp(Sw(12))), BX(!0), this.a = 2; } function $D(e, n, t) { kt(), I0.call(this, e), this.b = n, this.a = t; @@ -9107,14 +9197,14 @@ function WDn() { bo(), vA.call(this, n), this.a = e, this.b = t; } function ppn(e, n) { - var t = _J[e.charCodeAt(0)]; + var t = BJ[e.charCodeAt(0)]; return t ?? e; } function y$(e, n) { - return g$(e, "set1"), g$(n, "set2"), new sAe(e, n); + return g$(e, "set1"), g$(n, "set2"), new oAe(e, n); } function j$(e, n) { - return uOe(n), R5n(e, W(Wn, lt, 30, n, 15, 1), n); + return sOe(n), R5n(e, W(Wn, lt, 30, n, 15, 1), n); } function mpn(e, n) { e.b = n, e.c > 0 && e.b > 0 && (e.g = Xx(e.c, e.b, e.a)); @@ -9122,26 +9212,26 @@ function WDn() { function vpn(e, n) { e.c = n, e.c > 0 && e.b > 0 && (e.g = Xx(e.c, e.b, e.a)); } - function vCe(e) { + function kCe(e) { var n; n = e.c.d.b, e.b = n, e.a = e.c.d, n.a = e.c.d.b = e; } - function kCe(e) { + function yCe(e) { return e.b == 0 ? null : (An(e.b != 0), mo(e, e.a.a)); } function nu(e, n) { return n == null ? hc(Ur(e.f, null)) : K4(e.i, n); } - function yCe(e, n, t, i, r) { + function jCe(e, n, t, i, r) { return new eR(e, (mv(), VJ), n, t, i, r); } function MD(e, n, t, i) { var r; - r = new iTe(), n.a[t.g] = r, r3(e.b, i, r); + r = new rTe(), n.a[t.g] = r, r3(e.b, i, r); } - function jCe(e, n) { + function ECe(e, n) { var t, i; - return t = n, i = new T0(), oze(e, t, i), i.d; + return t = n, i = new T0(), fze(e, t, i), i.d; } function kpn(e, n) { var t; @@ -9149,10 +9239,10 @@ function WDn() { } function Ry(e) { var n; - z5n(e.a), E$e(e.a), n = new wA(e.a), UZ(n); + z5n(e.a), A$e(e.a), n = new wA(e.a), UZ(n); } function ypn(e, n) { - gqe(e, !0), wu(e.e.Pf(), new PK(e, !0, n)); + pqe(e, !0), wu(e.e.Pf(), new PK(e, !0, n)); } function jpn(e, n) { return Ql(), u(y(n, (Ac(), rl)), 15).a == e; @@ -9160,7 +9250,7 @@ function WDn() { function dr(e) { return Math.max(Math.min(e, pt), -2147483648) | 0; } - function ECe(e) { + function ACe(e) { Px.call(this), aY(this), this.a = e, this.c = !0; } function ZV(e, n, t) { @@ -9169,10 +9259,10 @@ function WDn() { function E$(e, n, t) { this.c = new le(), this.e = e, this.f = n, this.b = t; } - function ACe(e, n, t) { + function xCe(e, n, t) { this.i = new le(), this.b = e, this.g = n, this.a = t; } - function xCe(e) { + function $Ce(e) { this.a = u(Jn(e), 277), this.b = (ze(), new UX(e)); } function av() { @@ -9181,16 +9271,16 @@ function WDn() { n = !vkn(), e = new tc(), JJ = n ? new hu() : e; } function eQ() { - eQ = G, mYe = new Lbe(), kYe = new fV(), vYe = new _be(); + eQ = G, vYe = new Dbe(), yYe = new fV(), kYe = new Jbe(); } function Rh() { - Rh = G, Nb = new rX(J3, 0), e1 = new rX(_3, 1); + Rh = G, Nb = new rX(J3, 0), e1 = new rX(B3, 1); } function uh() { - uh = G, p0 = new cX(PB, 0), Ah = new cX("UP", 1); + uh = G, p0 = new cX(P_, 0), Ah = new cX("UP", 1); } function X0() { - X0 = G, sd = new sX(_3, 0), hp = new sX(J3, 1); + X0 = G, sd = new sX(B3, 0), hp = new sX(J3, 1); } function f2(e, n, t) { A$(), e && ht(jU, e, n), e && ht(WE, e, t); @@ -9199,16 +9289,16 @@ function WDn() { var i; i = e.Fh(n), i >= 0 ? e.$h(i, t) : rte(e, n, t); } - function $Ce(e, n) { + function MCe(e, n) { var t; for (Jn(n), t = e.a; t; t = t.c) n.Wd(t.g, t.i); } - function By(e, n) { + function _y(e, n) { var t; t = e.q.getHours(), e.q.setDate(n), A9(e, t); } - function MCe(e) { + function TCe(e) { var n; return n = new OA(Sw(e.length)), tZ(n, e), n; } @@ -9218,7 +9308,7 @@ function WDn() { return n.prototype = e || {}, new n(); } function Apn(e, n) { - return aFe(e, n) ? (aNe(e), !0) : !1; + return dFe(e, n) ? (dNe(e), !0) : !1; } function Ul(e, n) { if (n == null) @@ -9237,36 +9327,36 @@ function WDn() { function sh(e) { return e.Db >> 16 != 9 ? null : u(e.Cb, 26); } - function TCe(e) { + function SCe(e) { return e.Db >> 16 != 6 ? null : u(e.Cb, 85); } - function SCe(e, n) { + function ICe(e, n) { var t; return t = e.Fh(n), t >= 0 ? e.Th(t) : uR(e, n); } function TD(e, n, t) { var i; - i = PFe(e, n, t), e.b = new dM(i.c.length); + i = OFe(e, n, t), e.b = new dM(i.c.length); } - function ICe(e) { - this.a = e, this.b = W(drn, oe, 2005, e.e.length, 0, 2); + function CCe(e) { + this.a = e, this.b = W(brn, fe, 2005, e.e.length, 0, 2); } - function CCe() { + function PCe() { this.a = new ul(), this.e = new vi(), this.g = 0, this.i = 0; } - function PCe(e, n) { + function OCe(e, n) { jx(this), this.f = n, this.g = e, b$(this), this.he(); } - function OCe(e, n) { + function LCe(e, n) { return e.b += n.b, e.c += n.c, e.d += n.d, e.a += n.a, e; } function tQ(e) { var n; return n = e.d, n = e._i(e.f), Dn(e, n), n.Ob(); } - function LCe(e, n) { + function DCe(e, n) { var t; - return t = new cV(n), hJe(t, e), new os(t); + return t = new cV(n), lJe(t, e), new os(t); } function $pn(e) { if (e.p != 0) throw $(new Vu()); @@ -9276,13 +9366,13 @@ function WDn() { if (e.p != 0) throw $(new Vu()); return s6(e.k, 0); } - function DCe(e) { + function NCe(e) { return e.Db >> 16 != 7 ? null : u(e.Cb, 241); } function iQ(e) { return e.Db >> 16 != 7 ? null : u(e.Cb, 174); } - function NCe(e) { + function FCe(e) { return e.Db >> 16 != 3 ? null : u(e.Cb, 158); } function dv(e) { @@ -9317,9 +9407,9 @@ function WDn() { } function rQ(e) { var n; - return N1(e), n = new vi(), mt(e, new Rke(n)); + return N1(e), n = new vi(), mt(e, new _ke(n)); } - function FCe(e, n) { + function RCe(e, n) { var t = e.a = e.a || []; return t[n] || (t[n] = e.te(n)); } @@ -9339,27 +9429,24 @@ function WDn() { function ac(e, n) { e.i && Du(e.i.j, e), e.i = n, e.i && he(e.i.j, e); } - function RCe(e, n, t) { + function _Ce(e, n, t) { this.a = n, this.c = e, this.b = (Jn(t), new os(t)); } function BCe(e, n, t) { this.a = n, this.c = e, this.b = (Jn(t), new os(t)); } - function _Ce(e, n) { + function JCe(e, n) { this.a = e, this.c = kr(this.a), this.b = new m$(n); } function kw(e, n) { if (e < 0 || e > n) throw $(new lu(Die + e + Nie + n)); } - function JCe() { - JCe = G, Zin = au(new wi(), (zi(), Nr), (Qi(), em)); + function GCe() { + GCe = G, ern = au(new wi(), (zi(), Nr), (Qi(), em)); } function cQ() { - cQ = G, ern = au(new wi(), (zi(), Nr), (Qi(), em)); - } - function GCe() { - GCe = G, Xin = au(new wi(), (zi(), Nr), (Qi(), em)); + cQ = G, nrn = au(new wi(), (zi(), Nr), (Qi(), em)); } function HCe() { HCe = G, Kin = au(new wi(), (zi(), Nr), (Qi(), em)); @@ -9367,45 +9454,48 @@ function WDn() { function qCe() { qCe = G, Vin = au(new wi(), (zi(), Nr), (Qi(), em)); } - function uQ() { - uQ = G, Qin = au(new wi(), (zi(), Nr), (Qi(), em)); - } function UCe() { - UCe = G, mrn = et(new wi(), (zi(), Nr), (Qi(), mk)); + UCe = G, Qin = au(new wi(), (zi(), Nr), (Qi(), em)); } - function Ws() { - Ws = G, yrn = et(new wi(), (zi(), Nr), (Qi(), mk)); + function uQ() { + uQ = G, Yin = au(new wi(), (zi(), Nr), (Qi(), em)); } function zCe() { - zCe = G, jrn = et(new wi(), (zi(), Nr), (Qi(), mk)); + zCe = G, vrn = et(new wi(), (zi(), Nr), (Qi(), mk)); } - function ID() { - ID = G, Mrn = et(new wi(), (zi(), Nr), (Qi(), mk)); + function Ws() { + Ws = G, jrn = et(new wi(), (zi(), Nr), (Qi(), mk)); } function WCe() { - WCe = G, jcn = au(new wi(), (M3(), Xk), (j9(), Hle)); + WCe = G, Ern = et(new wi(), (zi(), Nr), (Qi(), mk)); + } + function ID() { + ID = G, Trn = et(new wi(), (zi(), Nr), (Qi(), mk)); } function XCe() { - XCe = G, BQe = Hn(($A(), I(T(RQe, 1), ce, 537, 0, [FJ]))); + XCe = G, Ecn = au(new wi(), (M3(), Xk), (j9(), Hle)); + } + function KCe() { + KCe = G, BQe = Hn(($A(), I(S(_Qe, 1), ce, 537, 0, [FJ]))); } function A$() { - A$ = G, jU = new Tn(), WE = new Tn(), Uan(rYe, new C5e()); + A$ = G, jU = new Tn(), WE = new Tn(), Uan(cYe, new P5e()); } function Opn(e, n) { var t, i; t = n.c, i = t != null, i && c3(e, new gw(n.c)); } - function KCe(e, n) { + function VCe(e, n) { Vgn(e, e.b, e.c), u(e.b.b, 68), n && u(n.b, 68).b; } function x$(e, n) { N(e.Cb, 184) && (u(e.Cb, 184).tb = null), gu(e, n); } function CD(e, n) { - N(e.Cb, 88) && Bw(ks(u(e.Cb, 88)), 4), gu(e, n); + N(e.Cb, 88) && _w(ks(u(e.Cb, 88)), 4), gu(e, n); } function Lpn(e, n) { - DZ(e, n), N(e.Cb, 88) && Bw(ks(u(e.Cb, 88)), 2); + DZ(e, n), N(e.Cb, 88) && _w(ks(u(e.Cb, 88)), 2); } function Dpn(e, n) { return Ct(u(e.c, 65).c.e.b, u(n.c, 65).c.e.b); @@ -9423,7 +9513,7 @@ function WDn() { e.b && Du(e.b.f, e), e.b = n, e.b && he(e.b.f, e); } function $1(e, n, t) { - ARe(n, t, e.gc()), this.c = e, this.a = n, this.b = t - n; + xRe(n, t, e.gc()), this.c = e, this.a = n, this.b = t - n; } function o3(e) { this.c = new Dt(), this.b = e.b, this.d = e.c, this.a = e.a; @@ -9438,25 +9528,25 @@ function WDn() { this.b = (Ze(e), e), this.a = (n & Xw) == 0 ? n | 64 | Wh : n; } function Fpn(e, n) { - q$e(e, Xn(qi(_0(n, 24), UT)), Xn(qi(n, UT))); + U$e(e, Xn(qi(B0(n, 24), UT)), Xn(qi(n, UT))); } - function _y(e) { + function By(e) { return Uh(), iu(e, 0) >= 0 ? F1(e) : x6(F1(Na(e))); } function Rpn() { - return yo(), I(T(Ju, 1), ce, 130, 0, [Pse, _u, Ose]); + return yo(), I(S(Ju, 1), ce, 130, 0, [Pse, Bu, Ose]); } - function VCe(e, n, t) { + function QCe(e, n, t) { return new eR(e, (mv(), KJ), null, !1, n, t); } - function QCe(e, n, t) { + function YCe(e, n, t) { return new eR(e, (mv(), QJ), n, t, null, !1); } - function YCe(e, n, t) { + function ZCe(e, n, t) { var i; - ARe(n, t, e.c.length), i = t - n, TW(e.c, n, i); + xRe(n, t, e.c.length), i = t - n, TW(e.c, n, i); } - function ZCe(e, n) { + function ePe(e, n) { var t; return t = u(Cw(s3(e.a), n), 18), t ? t.gc() : 0; } @@ -9464,119 +9554,119 @@ function WDn() { var n; return N1(e), n = (U0(), U0(), zJ), Y$(e, n); } - function ePe(e) { + function nPe(e) { for (var n; ; ) if (n = e.Pb(), !e.Ob()) return n; } - function nPe(e) { + function tPe(e) { var n, t; return t = (Gm(), n = new C0(), n), kv(t, e), t; } - function tPe(e) { + function iPe(e) { var n, t; return t = (Gm(), n = new C0(), n), kv(t, e), t; } function h2(e) { return q4(), N(e.g, 9) ? u(e.g, 9) : null; } - function Bpn() { - return Z0(), I(T(EG, 1), ce, 368, 0, [Tb, nd, Mb]); - } function _pn() { - return rM(), I(T(rfe, 1), ce, 350, 0, [ife, OI, OG]); + return Z0(), I(S(EG, 1), ce, 368, 0, [Tb, nd, Mb]); + } + function Bpn() { + return rM(), I(S(rfe, 1), ce, 350, 0, [ife, OI, OG]); } function Jpn() { - return Hd(), I(T(Oen, 1), ce, 449, 0, [JG, V5, Y2]); + return Hd(), I(S(Len, 1), ce, 449, 0, [JG, V5, Y2]); } function Gpn() { - return Mv(), I(T(QG, 1), ce, 302, 0, [KG, VG, Qj]); + return Mv(), I(S(QG, 1), ce, 302, 0, [KG, VG, Qj]); } function Hpn() { - return P1(), I(T(YG, 1), ce, 329, 0, [Yj, Efe, fg]); + return P1(), I(S(YG, 1), ce, 329, 0, [Yj, Efe, fg]); } function qpn() { - return Kl(), I(T(Gen, 1), ce, 315, 0, [Zj, ep, nm]); + return Kl(), I(S(Hen, 1), ce, 315, 0, [Zj, ep, nm]); } function Upn() { - return V6(), I(T(gle, 1), ce, 352, 0, [LH, wle, lC]); + return V6(), I(S(gle, 1), ce, 352, 0, [LH, wle, lC]); } function zpn() { - return Cr(), I(T(Jin, 1), ce, 452, 0, [Gk, bs, yu]); + return Cr(), I(S(Gin, 1), ce, 452, 0, [Gk, bs, yu]); } function Wpn() { - return vM(), I(T(Sle, 1), ce, 381, 0, [Mle, HH, Tle]); + return vM(), I(S(Sle, 1), ce, 381, 0, [Mle, HH, Tle]); } function Xpn() { - return K6(), I(T(Ile, 1), ce, 348, 0, [UH, qH, aE]); + return K6(), I(S(Ile, 1), ce, 348, 0, [UH, qH, aE]); } function Kpn() { - return Ov(), I(T(Ple, 1), ce, 349, 0, [zH, Cle, Hk]); + return Ov(), I(S(Ple, 1), ce, 349, 0, [zH, Cle, Hk]); } function Vpn() { - return iM(), I(T(Dle, 1), ce, 351, 0, [Lle, WH, Ole]); + return iM(), I(S(Dle, 1), ce, 351, 0, [Lle, WH, Ole]); } function Qpn() { - return kM(), I(T(Nle, 1), ce, 382, 0, [XH, o4, yg]); + return kM(), I(S(Nle, 1), ce, 382, 0, [XH, o4, yg]); } function Ypn() { - return F6(), I(T(eoe, 1), ce, 384, 0, [oG, sG, fG]); + return F6(), I(S(eoe, 1), ce, 384, 0, [oG, sG, fG]); } function Zpn() { - return qf(), I(T(tg, 1), ce, 237, 0, [Mc, ku, Tc]); + return qf(), I(S(tg, 1), ce, 237, 0, [Mc, ku, Tc]); } function e3n() { - return hs(), I(T(AYe, 1), ce, 461, 0, [nl, Z1, Af]); + return hs(), I(S(xYe, 1), ce, 461, 0, [nl, Z1, Af]); } function n3n() { - return Nu(), I(T($Ye, 1), ce, 462, 0, [Vf, ed, xf]); + return Nu(), I(S(MYe, 1), ce, 462, 0, [Vf, ed, xf]); } function t3n() { - return X6(), I(T(Zle, 1), ce, 385, 0, [Yle, QH, wE]); + return X6(), I(S(Zle, 1), ce, 385, 0, [Yle, QH, wE]); } function i3n() { - return m7(), I(T(Mae, 1), ce, 386, 0, [MC, xae, $ae]); + return m7(), I(S(Mae, 1), ce, 386, 0, [MC, xae, $ae]); } function r3n() { - return LM(), I(T(Kae, 1), ce, 387, 0, [Xae, Sq, Wae]); + return LM(), I(S(Kae, 1), ce, 387, 0, [Xae, Sq, Wae]); } function c3n() { - return mM(), I(T(Uae, 1), ce, 303, 0, [yq, qae, Hae]); + return mM(), I(S(Uae, 1), ce, 303, 0, [yq, qae, Hae]); } function u3n() { - return BM(), I(T(zae, 1), ce, 436, 0, [Zk, IC, jq]); + return _M(), I(S(zae, 1), ce, 436, 0, [Zk, IC, jq]); } function s3n() { - return SM(), I(T(v1e, 1), ce, 430, 0, [p1e, m1e, Dq]); + return SM(), I(S(v1e, 1), ce, 430, 0, [p1e, m1e, Dq]); } function o3n() { - return E7(), I(T(Nq, 1), ce, 435, 0, [LC, DC, NC]); + return E7(), I(S(Nq, 1), ce, 435, 0, [LC, DC, NC]); } function f3n() { - return U$(), I(T(g1e, 1), ce, 429, 0, [Lq, w1e, b1e]); + return U$(), I(S(g1e, 1), ce, 429, 0, [Lq, w1e, b1e]); } function h3n() { - return lh(), I(T(_de, 1), ce, 279, 0, [g4, Ig, p4]); + return lh(), I(S(Bde, 1), ce, 279, 0, [g4, Ig, p4]); } function l3n() { - return ea(), I(T(Yde, 1), ce, 347, 0, [XC, r1, b8]); + return ea(), I(S(Yde, 1), ce, 347, 0, [XC, r1, b8]); } function a3n() { - return B6(), I(T(r0e, 1), ce, 300, 0, [RE, dU, i0e]); + return _6(), I(S(r0e, 1), ce, 300, 0, [RE, dU, i0e]); } function d3n() { - return y3(), I(T(s0e, 1), ce, 281, 0, [u0e, Pg, eP]); + return y3(), I(S(s0e, 1), ce, 281, 0, [u0e, Pg, eP]); } function oh(e) { - return bc(I(T(Ji, 1), oe, 8, 0, [e.i.n, e.n, e.a])); + return bc(I(S(Ji, 1), fe, 8, 0, [e.i.n, e.n, e.a])); } function b3n(e, n, t) { var i; i = new vr(t.d), At(i, e), NZ(n, i.a, i.b); } - function iPe(e, n, t) { + function rPe(e, n, t) { var i; - i = new _3e(), i.b = n, i.a = t, ++n.b, he(e.d, i); + i = new J3e(), i.b = n, i.a = t, ++n.b, he(e.d, i); } function w3n(e, n, t) { var i; @@ -9601,9 +9691,9 @@ function WDn() { function m3n(e) { return e.Db >> 16 != 6 ? null : u(fR(e), 241); } - function rPe(e, n) { + function cPe(e, n) { var t, i; - return i = cv(e, n), t = e.a.dd(i), new cAe(e, t); + return i = cv(e, n), t = e.a.dd(i), new uAe(e, t); } function v3n(e, n) { var t; @@ -9616,28 +9706,28 @@ function WDn() { return e.d == (wv(), dP) && Whn(e, XSn(e.g, e.b)), e.d; } function oQ(e, n) { - yln.call(this, new _p(Sw(e))), Qs(n, cWe), this.a = n; + yln.call(this, new Bp(Sw(e))), Qs(n, uWe), this.a = n; } - function cPe(e, n, t) { + function uPe(e, n, t) { I0.call(this, 25), this.b = e, this.a = n, this.c = t; } function Xs(e) { kt(), I0.call(this, e), this.c = !1, this.a = !1; } - function uPe(e, n) { - Cd.call(this, 1, 2, I(T(Wn, 1), lt, 30, 15, [e, n])); + function sPe(e, n) { + Cd.call(this, 1, 2, I(S(Wn, 1), lt, 30, 15, [e, n])); } function qi(e, n) { return C1(vgn(rc(e) ? Ho(e) : e, rc(n) ? Ho(n) : n)); } - function Bh(e, n) { + function _h(e, n) { return C1(kgn(rc(e) ? Ho(e) : e, rc(n) ? Ho(n) : n)); } function DD(e, n) { return C1(ygn(rc(e) ? Ho(e) : e, rc(n) ? Ho(n) : n)); } function fQ(e, n) { - return xSe(e.a, n) ? ZK(e.b, u(n, 23).g, null) : null; + return $Se(e.a, n) ? ZK(e.b, u(n, 23).g, null) : null; } function Nd(e) { return Jn(e), N(e, 18) ? new os(u(e, 18)) : tv(e.Jc()); @@ -9651,7 +9741,7 @@ function WDn() { } function j3n(e, n) { var t; - t = _(H(e.a.mf((tt(), qC)))), Cze(e, n, t); + t = B(H(e.a.mf((tt(), qC)))), Pze(e, n, t); } function E3n(e, n) { return R6(), e.c == n.c ? Ct(n.d, e.d) : Ct(e.c, n.c); @@ -9686,7 +9776,7 @@ function WDn() { function Fd(e) { return e.c == null || e.c.length == 0 ? "n_" + e.g : "n_" + e.c; } - function sPe(e, n) { + function oPe(e, n) { var t; for (t = e + ""; t.length < n; ) t = "0" + t; @@ -9694,13 +9784,13 @@ function WDn() { } function S3n(e, n) { var t; - t = u(rn(e.g, n), 60), wu(n.d, new WAe(e, t)); + t = u(rn(e.g, n), 60), wu(n.d, new XAe(e, t)); } function I3n(e, n) { var t, i; - return t = o_e(e), i = o_e(n), t < i ? -1 : t > i ? 1 : 0; + return t = fBe(e), i = fBe(n), t < i ? -1 : t > i ? 1 : 0; } - function oPe(e, n) { + function fPe(e, n) { var t, i; return t = cN(n), i = t, u(rn(e.c, i), 15).a; } @@ -9710,59 +9800,59 @@ function WDn() { } function C3n(e, n, t) { var i; - e.n && n && t && (i = new E5e(), he(e.e, i)); + e.n && n && t && (i = new A5e(), he(e.e, i)); } function RD(e, n) { if (ki(e.a, n), n.d) - throw $(new fc(SWe)); + throw $(new fc(IWe)); n.d = e; } function aQ(e, n) { this.a = new le(), this.d = new le(), this.f = e, this.c = n; } - function fPe() { + function hPe() { v3(), this.b = new Tn(), this.a = new Tn(), this.c = new le(); } - function hPe() { - this.c = new S$e(), this.a = new GOe(), this.b = new rje(), yAe(); + function lPe() { + this.c = new I$e(), this.a = new HOe(), this.b = new cje(), jAe(); } - function lPe(e, n, t) { + function aPe(e, n, t) { this.d = e, this.j = n, this.e = t, this.o = -1, this.p = 3; } - function aPe(e, n, t) { + function dPe(e, n, t) { this.d = e, this.k = n, this.f = t, this.o = -1, this.p = 5; } - function dPe(e, n, t, i, r, c) { + function bPe(e, n, t, i, r, c) { dY.call(this, e, n, t, i, r), c && (this.o = -2); } - function bPe(e, n, t, i, r, c) { + function wPe(e, n, t, i, r, c) { bY.call(this, e, n, t, i, r), c && (this.o = -2); } - function wPe(e, n, t, i, r, c) { + function gPe(e, n, t, i, r, c) { TQ.call(this, e, n, t, i, r), c && (this.o = -2); } - function gPe(e, n, t, i, r, c) { + function pPe(e, n, t, i, r, c) { pY.call(this, e, n, t, i, r), c && (this.o = -2); } - function pPe(e, n, t, i, r, c) { + function mPe(e, n, t, i, r, c) { SQ.call(this, e, n, t, i, r), c && (this.o = -2); } - function mPe(e, n, t, i, r, c) { + function vPe(e, n, t, i, r, c) { wY.call(this, e, n, t, i, r), c && (this.o = -2); } - function vPe(e, n, t, i, r, c) { + function kPe(e, n, t, i, r, c) { gY.call(this, e, n, t, i, r), c && (this.o = -2); } - function kPe(e, n, t, i, r, c) { + function yPe(e, n, t, i, r, c) { IQ.call(this, e, n, t, i, r), c && (this.o = -2); } - function yPe(e, n, t, i) { + function jPe(e, n, t, i) { vA.call(this, t), this.b = e, this.c = n, this.d = i; } - function jPe(e, n) { + function EPe(e, n) { this.f = e, this.a = (wv(), aP), this.c = aP, this.b = n; } - function EPe(e, n) { + function APe(e, n) { this.g = e, this.d = (wv(), dP), this.a = dP, this.b = n; } function dQ(e, n) { @@ -9772,10 +9862,10 @@ function WDn() { return Txn(e, n, N(n, 103) && (u(n, 19).Bb & xr) != 0); } function O3n(e, n) { - return QSe(Cc(e.q.getTime()), Cc(n.q.getTime())); + return YSe(Cc(e.q.getTime()), Cc(n.q.getTime())); } - function APe(e) { - return GL(e.e.Pd().gc() * e.c.Pd().gc(), 16, new Q9e(e)); + function xPe(e) { + return GL(e.e.Pd().gc() * e.c.Pd().gc(), 16, new Y9e(e)); } function L3n(e) { return !!e.u && Hc(e.u.a).i != 0 && !(e.n && xF(e.n)); @@ -9786,44 +9876,44 @@ function WDn() { function bQ(e, n) { return n == 0 ? !!e.o && e.o.f != 0 : vF(e, n); } - function xPe(e) { + function $Pe(e) { return An(e.b.b != e.d.a), e.c = e.b = e.b.b, --e.a, e.c.c; } function C6(e) { for (; e.d > 0 && e.a[--e.d] == 0; ) ; e.a[e.d++] == 0 && (e.e = 0); } - function $Pe(e) { + function MPe(e) { return e.a ? e.e.length == 0 ? e.a.a : e.a.a + ("" + e.e) : e.c; } function Vi(e, n) { this.a = e, T4.call(this, e), kw(n, e.gc()), this.b = n; } - function MPe(e) { + function TPe(e) { this.a = W(Li, Ve, 1, YY(m.Math.max(8, e)) << 1, 5, 1); } - function TPe(e) { + function SPe(e) { xN.call(this, e, (mv(), XJ), null, !1, null, !1); } - function SPe(e, n) { + function IPe(e, n) { var t; return t = 1 - n, e.a[t] = aM(e.a[t], t), aM(e, n); } - function IPe(e, n) { + function CPe(e, n) { var t, i; - return i = qi(e, Or), t = hl(n, 32), Bh(t, i); + return i = qi(e, Or), t = hl(n, 32), _h(t, i); } function N3n(e, n, t) { var i; return i = u(e.Zb().xc(n), 18), !!i && i.Gc(t); } - function CPe(e, n, t) { + function PPe(e, n, t) { var i; return i = u(e.Zb().xc(n), 18), !!i && i.Kc(t); } - function PPe(e, n, t) { + function OPe(e, n, t) { var i; - i = (Jn(e), new os(e)), gyn(new RCe(i, n, t)); + i = (Jn(e), new os(e)), gyn(new _Ce(i, n, t)); } function Gy(e, n, t) { var i; @@ -9832,41 +9922,41 @@ function WDn() { function F3n(e, n, t) { e.a = n, e.c = t, e.b.a.$b(), Fs(e.d), Wb(e.e.a.c, 0); } - function OPe(e, n) { + function LPe(e, n) { var t; - e.e = new oW(), t = Jw(n), Di(t, e.c), rqe(e, t, 0); + e.e = new oW(), t = Jw(n), Di(t, e.c), cqe(e, t, 0); } function R3n(e, n) { - return new RL(n, EMe(kr(n.e), e, e), (en(), !0)); + return new RL(n, AMe(kr(n.e), e, e), (en(), !0)); } - function B3n(e, n) { + function _3n(e, n) { return w3(), u(y(n, (Ac(), lp)), 15).a >= e.gc(); } - function _3n(e) { + function B3n(e) { return Ws(), !hr(e) && !(!hr(e) && e.c.i.c == e.d.i.c); } - function _h(e) { + function Bh(e) { return u(ah(e, W(H5, E5, 17, e.c.length, 0, 1)), 323); } function J3n(e) { - _Re((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a), new yve()); + JRe((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a), new jve()); } function wQ() { var e, n, t; return n = (t = (e = new C0(), e), t), he(q0e, n), n; } function jc(e, n, t, i, r, c) { - return zNe(e, n, t, c), MZ(e, i), TZ(e, r), e; + return WNe(e, n, t, c), MZ(e, i), TZ(e, r), e; } - function LPe(e, n, t, i) { - return e.a += "" + Go(n == null ? Bu : uc(n), t, i), e; + function DPe(e, n, t, i) { + return e.a += "" + Go(n == null ? _u : uc(n), t, i), e; } function Hy(e, n) { if (e < 0 || e >= n) throw $(new lu(eAn(e, n))); return e; } - function DPe(e, n, t) { + function NPe(e, n, t) { if (e < 0 || n < e || n > t) throw $(new lu(yEn(e, n, t))); } @@ -9891,15 +9981,15 @@ function WDn() { var n; return rc(e) ? (n = e, n == -0 ? 0 : n) : t5n(e); } - function NPe(e, n) { - return N(n, 45) ? CF(e.a, u(n, 45)) : !1; - } function FPe(e, n) { return N(n, 45) ? CF(e.a, u(n, 45)) : !1; } function RPe(e, n) { return N(n, 45) ? CF(e.a, u(n, 45)) : !1; } + function _Pe(e, n) { + return N(n, 45) ? CF(e.a, u(n, 45)) : !1; + } function H3n(e, n) { return e.a <= e.b ? (n.Bd(e.a++), !0) : !1; } @@ -9908,11 +9998,11 @@ function WDn() { } function gQ(e) { var n; - return A1(e), n = new Hr(), Wg(e.a, new Dke(n)), n; + return A1(e), n = new Hr(), Wg(e.a, new Nke(n)), n; } function $$(e) { var n; - return A1(e), n = new Fo(), Wg(e.a, new Nke(n)), n; + return A1(e), n = new Fo(), Wg(e.a, new Fke(n)), n; } function U3n(e) { if (!("stack" in e)) @@ -9923,25 +10013,25 @@ function WDn() { return e; } function M$(e) { - return new bu((Qs(e, eB), Q$(yr(yr(5, e), e / 10 | 0)))); + return new bu((Qs(e, e_), Q$(yr(yr(5, e), e / 10 | 0)))); } function BPe(e) { - return u(ah(e, W(ZZe, iXe, 12, e.c.length, 0, 1)), 2004); + return u(ah(e, W(een, rXe, 12, e.c.length, 0, 1)), 2004); } function z3n(e) { - return GL(e.e.Pd().gc() * e.c.Pd().gc(), 273, new V9e(e)); - } - function _Pe() { - _Pe = G, Cun = Hn((_A(), I(T(k1e, 1), ce, 477, 0, [Fq]))); + return GL(e.e.Pd().gc() * e.c.Pd().gc(), 273, new Q9e(e)); } function JPe() { - JPe = G, Oun = Hn((JA(), I(T(Pun, 1), ce, 546, 0, [Rq]))); + JPe = G, Pun = Hn((BA(), I(S(k1e, 1), ce, 477, 0, [Fq]))); } function GPe() { - GPe = G, Qun = Hn((U4(), I(T(J1e, 1), ce, 527, 0, [EE]))); + GPe = G, Lun = Hn((JA(), I(S(Oun, 1), ce, 546, 0, [Rq]))); } function HPe() { - HPe = G, Rle = jIe(ie(1), ie(4)), Fle = jIe(ie(1), ie(2)); + HPe = G, Yun = Hn((U4(), I(S(J1e, 1), ce, 527, 0, [EE]))); + } + function qPe() { + qPe = G, Rle = EIe(ie(1), ie(4)), Fle = EIe(ie(1), ie(2)); } function T$() { T$ = G, hq = new oX("DFS", 0), kae = new oX("BFS", 1); @@ -9950,7 +10040,7 @@ function WDn() { S$ = G, ZG = new eX(g5, 0), Afe = new eX("TOP_LEFT", 1); } function pQ(e, n, t) { - this.d = new V8e(this), this.e = e, this.i = n, this.f = t; + this.d = new Q8e(this), this.e = e, this.i = n, this.f = t; } function mQ(e, n, t, i) { this.d = e, this.n = n, this.g = t, this.o = i, this.p = -1; @@ -9979,21 +10069,21 @@ function WDn() { return t = Ul(e, n), i = null, t && (i = gne(t)), i; } function O6(e, n) { - BOn(n, e), KK(e.d), KK(u(y(e, (ae(), rC)), 213)); + _On(n, e), KK(e.d), KK(u(y(e, (ae(), rC)), 213)); } - function BD(e, n) { - _On(n, e), VK(e.d), VK(u(y(e, (ae(), rC)), 213)); + function _D(e, n) { + BOn(n, e), VK(e.d), VK(u(y(e, (ae(), rC)), 213)); } function M1(e, n) { - Ze(n), e.b = e.b - 1 & e.a.length - 1, ai(e.a, e.b, n), w_e(e); + Ze(n), e.b = e.b - 1 & e.a.length - 1, ai(e.a, e.b, n), gBe(e); } function vQ(e, n) { - Ze(n), ai(e.a, e.c, n), e.c = e.c + 1 & e.a.length - 1, w_e(e); + Ze(n), ai(e.a, e.c, n), e.c = e.c + 1 & e.a.length - 1, gBe(e); } function Ln(e) { return An(e.b != e.d.c), e.c = e.b, e.b = e.b.a, ++e.a, e.c.c; } - function qPe(e) { + function UPe(e) { if (e.e.g != e.b) throw $(new lo()); return !!e.c && e.d > 0; @@ -10004,7 +10094,7 @@ function WDn() { function K3n(e) { return new He(O5n(u(e.a.kd(), 18).gc(), e.a.jd()), 16); } - function UPe(e) { + function zPe(e) { var n; n = e.Dh(), this.a = N(n, 72) ? u(n, 72).Gi() : n.Jc(); } @@ -10016,84 +10106,84 @@ function WDn() { var t; t = n.a, br(t, n.c.d), Ki(t, n.d.d), Mw(t.a, e.n); } - function zPe(e, n, t, i) { - return N(t, 59) ? new wMe(e, n, t, i) : new wV(e, n, t, i); + function WPe(e, n, t, i) { + return N(t, 59) ? new gMe(e, n, t, i) : new wV(e, n, t, i); } function Q3n() { - return vf(), I(T(pen, 1), ce, 413, 0, [sg, U5, z5, jG]); + return vf(), I(S(men, 1), ce, 413, 0, [sg, U5, z5, jG]); } function Y3n() { - return eb(), I(T(QYe, 1), ce, 409, 0, [Gj, Jj, tG, iG]); + return eb(), I(S(YYe, 1), ce, 409, 0, [Gj, Jj, tG, iG]); } function Z3n() { - return Tv(), I(T(JZe, 1), ce, 408, 0, [$b, rg, ig, W2]); + return Tv(), I(S(GZe, 1), ce, 408, 0, [$b, rg, ig, W2]); } function emn() { - return mv(), I(T(eI, 1), ce, 309, 0, [XJ, KJ, VJ, QJ]); + return mv(), I(S(eI, 1), ce, 309, 0, [XJ, KJ, VJ, QJ]); } function nmn() { - return A3(), I(T(roe, 1), ce, 383, 0, [gk, ioe, bG, wG]); + return A3(), I(S(roe, 1), ce, 383, 0, [gk, ioe, bG, wG]); } function tmn() { - return jM(), I(T(uen, 1), ce, 367, 0, [yG, MI, TI, Wj]); + return jM(), I(S(sen, 1), ce, 367, 0, [yG, MI, TI, Wj]); } function imn() { - return t9(), I(T(tfe, 1), ce, 301, 0, [kk, efe, Kj, nfe]); + return t9(), I(S(tfe, 1), ce, 301, 0, [kk, efe, Kj, nfe]); } function rmn() { - return Dw(), I(T(NH, 1), ce, 203, 0, [aC, DH, fp, op]); + return Dw(), I(S(NH, 1), ce, 203, 0, [aC, DH, fp, op]); } function cmn() { - return ta(), I(T(xle, 1), ce, 269, 0, [cd, Ale, BH, _H]); + return ta(), I(S(xle, 1), ce, 269, 0, [cd, Ale, _H, BH]); } function umn() { - return Ud(), I(T(lrn, 1), ce, 404, 0, [dE, qk, gC, wC]); + return Ud(), I(S(arn, 1), ce, 404, 0, [dE, qk, gC, wC]); } function smn(e) { var n; - return e.j == (be(), Mn) && (n = zGe(e), Yu(n, gn)); + return e.j == (be(), Mn) && (n = WGe(e), Yu(n, gn)); } function omn() { - return M3(), I(T(Jle, 1), ce, 398, 0, [kC, Wk, Xk, Kk]); + return M3(), I(S(Jle, 1), ce, 398, 0, [kC, Wk, Xk, Kk]); } - function WPe(e, n) { + function XPe(e, n) { return u(Ls(dw(u(Mt(e.k, n), 16).Mc(), K2)), 113); } - function XPe(e, n) { + function KPe(e, n) { return u(Ls(t3(u(Mt(e.k, n), 16).Mc(), K2)), 113); } function fmn(e, n) { return Wp(new ue(n.e.a + n.f.a / 2, n.e.b + n.f.b / 2), e); } function hmn() { - return oT(), I(T(Zcn, 1), ce, 401, 0, [$q, Eq, xq, Aq]); + return oT(), I(S(eun, 1), ce, 401, 0, [$q, Eq, xq, Aq]); } function lmn() { - return YM(), I(T(Gae, 1), ce, 354, 0, [kq, _ae, Jae, Bae]); + return YM(), I(S(Gae, 1), ce, 354, 0, [kq, Bae, Jae, _ae]); } function amn() { - return W6(), I(T(vae, 1), ce, 353, 0, [fq, xC, oq, sq]); + return W6(), I(S(vae, 1), ce, 353, 0, [fq, xC, oq, sq]); } function dmn() { - return Dv(), I(T(Bde, 1), ce, 278, 0, [PE, WC, Fde, Rde]); + return Dv(), I(S(_de, 1), ce, 278, 0, [PE, WC, Fde, Rde]); } function bmn() { - return na(), I(T(lU, 1), ce, 222, 0, [hU, OE, m4, ym]); + return na(), I(S(lU, 1), ce, 222, 0, [hU, OE, m4, ym]); } function wmn() { - return Zs(), I(T(zsn, 1), ce, 292, 0, [DE, Tl, hd, LE]); + return Zs(), I(S(Wsn, 1), ce, 292, 0, [DE, Tl, hd, LE]); } function gmn() { - return O$(), I(T(HE, 1), ce, 288, 0, [o0e, h0e, wU, f0e]); + return O$(), I(S(HE, 1), ce, 288, 0, [o0e, h0e, wU, f0e]); } function pmn() { - return Js(), I(T(v8, 1), ce, 380, 0, [_E, y0, BE, Cg]); + return Js(), I(S(v8, 1), ce, 380, 0, [BE, y0, _E, Cg]); } function mmn() { - return DM(), I(T(b0e, 1), ce, 326, 0, [gU, l0e, d0e, a0e]); + return DM(), I(S(b0e, 1), ce, 326, 0, [gU, l0e, d0e, a0e]); } function vmn() { - return EM(), I(T(hon, 1), ce, 407, 0, [pU, g0e, w0e, p0e]); + return EM(), I(S(lon, 1), ce, 407, 0, [pU, g0e, w0e, p0e]); } function go(e, n, t) { return n < 0 ? uR(e, t) : u(t, 69).uk().zk(e, e.ei(), n); @@ -10106,7 +10196,7 @@ function WDn() { var i; return i = Gv(t), TT(e.p, i, n), ht(e.q, n, t), n; } - function KPe(e) { + function VPe(e) { var n, t; return n = (p1(), t = new DP(), t), e && vT(n, e), n; } @@ -10123,16 +10213,16 @@ function WDn() { function Emn(e) { e.a = null, e.e = null, Wb(e.b.c, 0), Wb(e.f.c, 0), e.c = null; } - function VPe(e, n) { + function QPe(e, n) { var t; for (t = e.j.c.length; t < n; t++) he(e.j, e.Mg()); } - function QPe(e, n, t, i) { + function YPe(e, n, t, i) { var r; - return r = i[n.g][t.g], _(H(y(e.a, r))); + return r = i[n.g][t.g], B(H(y(e.a, r))); } - function YPe(e, n) { + function ZPe(e, n) { GA(); var t; return t = u(rn(oP, e), 58), !t || t.dk(n); @@ -10156,8 +10246,8 @@ function WDn() { function l2(e, n) { return n.e == 0 || e.e == 0 ? lk : (n5(), dR(e, n)); } - function ZPe(e, n) { - return z(n) === z(e) ? "(this Map)" : n == null ? Bu : uc(n); + function eOe(e, n) { + return z(n) === z(e) ? "(this Map)" : n == null ? _u : uc(n); } function Tmn(e, n, t) { return YL(H(hc(Ur(e.f, n))), H(hc(Ur(e.f, t)))); @@ -10166,11 +10256,11 @@ function WDn() { var i; i = u(rn(e.g, t), 60), he(e.a.c, new Ar(n, i)); } - function eOe(e, n) { + function nOe(e, n) { var t; return t = new Rp(), e.Ed(t), t.a += "..", n.Fd(t), t.a; } - function _f(e) { + function Bf(e) { var n; for (n = 0; e.Ob(); ) e.Pb(), n = yr(n, 1); @@ -10178,22 +10268,22 @@ function WDn() { } function Imn(e, n, t, i, r) { var c; - c = Gxn(r, t, i), he(n, zEn(r, c)), _jn(e, r, n); + c = Gxn(r, t, i), he(n, zEn(r, c)), Bjn(e, r, n); } - function nOe(e, n, t) { - e.i = 0, e.e = 0, n != t && (RFe(e, n, t), FFe(e, n, t)); + function tOe(e, n, t) { + e.i = 0, e.e = 0, n != t && (_Fe(e, n, t), RFe(e, n, t)); } - function tOe(e, n, t, i) { + function iOe(e, n, t, i) { this.e = null, this.c = e, this.d = n, this.a = t, this.b = i; } function jQ(e, n, t, i, r) { this.i = e, this.a = n, this.e = t, this.j = i, this.f = r; } - function iOe(e, n) { + function rOe(e, n) { VV.call(this), this.a = e, this.b = n, he(this.a.b, this); } function Wl(e, n) { - Uh(), Cd.call(this, e, 1, I(T(Wn, 1), lt, 30, 15, [n])); + Uh(), Cd.call(this, e, 1, I(S(Wn, 1), lt, 30, 15, [n])); } function Cmn(e, n, t) { return r5(e, n, t, N(n, 103) && (u(n, 19).Bb & xr) != 0); @@ -10210,14 +10300,14 @@ function WDn() { function Omn(e, n) { return u(n == null ? hc(Ur(e.f, null)) : K4(e.i, n), 290); } - function rOe(e, n) { + function cOe(e, n) { var t; for (t = n; t; ) sw(e, t.i, t.j), t = Qt(t); return e; } function Hc(e) { - return e.n || (ks(e), e.n = new CSe(e, Rr, e), Zr(e)), e.n; + return e.n || (ks(e), e.n = new PSe(e, Rr, e), Zr(e)), e.n; } function dl(e, n) { Sr(); @@ -10225,7 +10315,7 @@ function WDn() { return t = u(e, 69).tk(), Zjn(t, n), t.vl(n); } function L6(e) { - return An(e.a < e.c.a.length), e.b = e.a, vDe(e), e.c.b[e.b]; + return An(e.a < e.c.a.length), e.b = e.a, kDe(e), e.c.b[e.b]; } function AQ(e) { e.b != e.c && (e.a = W(Li, Ve, 1, 8, 5, 1), e.b = 0, e.c = 0); @@ -10234,7 +10324,7 @@ function WDn() { var t; t = e.q.getHours(), e.q.setFullYear(n + z1), A9(e, t); } - function cOe(e, n) { + function uOe(e, n) { Iv(); var t; return t = e.j.g - n.j.g, t != 0 ? t : 0; @@ -10246,7 +10336,7 @@ function WDn() { } else delete e.a[n]; } - function _D(e, n, t) { + function BD(e, n, t) { if (t) { var i = t.me(); t = i(t); @@ -10254,11 +10344,11 @@ function WDn() { t = void 0; e.a[n] = t; } - function uOe(e) { + function sOe(e) { if (e < 0) - throw $(new Qje("Negative array size: " + e)); + throw $(new Yje("Negative array size: " + e)); } - function sOe(e) { + function oOe(e) { N(e, 206) && !ve(me(e.mf((tt(), HC)))) && qSn(u(e, 26)); } function JD(e) { @@ -10272,7 +10362,7 @@ function WDn() { var t; return t = n != null ? nu(e, n) : hc(Ur(e.f, n)), px(t); } - function oOe(e, n) { + function fOe(e, n) { var t; for (t = 0; t < n; ++t) ai(e, t, new Sz(u(e[t], 45))); @@ -10287,16 +10377,16 @@ function WDn() { kt(), I0.call(this, e), this.a = n, this.c = -1, this.b = -1; } function Ew(e, n, t, i) { - lPe.call(this, 1, t, i), this.c = e, this.b = n; + aPe.call(this, 1, t, i), this.c = e, this.b = n; } function GD(e, n, t, i) { - aPe.call(this, 1, t, i), this.c = e, this.b = n; + dPe.call(this, 1, t, i), this.c = e, this.b = n; } function HD(e, n, t, i, r, c, s) { pN.call(this, n, i, r, c, s), this.c = e, this.a = t; } - function Bd(e, n, t) { - this.e = e, this.a = Li, this.b = Mqe(n), this.c = n, this.d = t; + function _d(e, n, t) { + this.e = e, this.a = Li, this.b = Tqe(n), this.c = n, this.d = t; } function qD(e) { this.e = e, this.c = this.e.a, this.b = this.e.g, this.d = this.e.i; @@ -10304,11 +10394,11 @@ function WDn() { function $Q(e) { this.d = e, this.b = this.d.a.entries(), this.a = this.b.next(); } - function fOe(e) { + function hOe(e) { this.c = e, this.a = u(Uo(e), 159), this.b = this.a.hk().ti(); } function T1() { - Tn.call(this), vMe(this), this.d.b = this.d, this.d.a = this.d; + Tn.call(this), kMe(this), this.d.b = this.d, this.d.a = this.d; } function ti(e, n, t, i) { var r; @@ -10316,17 +10406,17 @@ function WDn() { } function fs(e, n) { var t; - return n.b.Kb(uDe(e, n.c.Ve(), (t = new _ke(n), t))); + return n.b.Kb(sDe(e, n.c.Ve(), (t = new Jke(n), t))); } - function Bmn(e, n) { + function _mn(e, n) { var t; - return uOe(n), t = e.slice(0, n), t.length = n, rN(t, e); + return sOe(n), t = e.slice(0, n), t.length = n, rN(t, e); } function C$(e) { var n; return e ? new cV(e) : (n = new ul(), EN(n, e), n); } - function _mn(e, n) { + function Bmn(e, n) { var t; for (t = e.d - 1; t >= 0 && e.a[t] === n[t]; t--) ; return t < 0; @@ -10335,7 +10425,7 @@ function WDn() { var t, i; i = !1; do - t = $Fe(e, n), i = i | t; + t = MFe(e, n), i = i | t; while (t); return i; } @@ -10346,67 +10436,67 @@ function WDn() { P$ = G, fH = new nX(Wf, 0), oH = new nX("ALTERNATING", 1); } function O$() { - O$ = G, o0e = new fSe(), h0e = new USe(), wU = new pCe(), f0e = new zSe(); - } - function hOe() { - hOe = G, Ten = Hn((G$(), I(T(Zoe, 1), ce, 422, 0, [Yoe, PG]))); + O$ = G, o0e = new hSe(), h0e = new zSe(), wU = new mCe(), f0e = new WSe(); } function lOe() { - lOe = G, Pen = Hn((c7(), I(T(ofe, 1), ce, 419, 0, [LI, sfe]))); + lOe = G, Sen = Hn((G$(), I(S(Zoe, 1), ce, 422, 0, [Yoe, PG]))); } function aOe() { - aOe = G, Nen = Hn((Zy(), I(T(lfe, 1), ce, 476, 0, [hfe, NI]))); + aOe = G, Oen = Hn((c7(), I(S(ofe, 1), ce, 419, 0, [LI, sfe]))); } function dOe() { - dOe = G, qen = Hn((S$(), I(T(xfe, 1), ce, 420, 0, [ZG, Afe]))); + dOe = G, Fen = Hn((Zy(), I(S(lfe, 1), ce, 476, 0, [hfe, NI]))); } function bOe() { - bOe = G, Wen = Hn((P$(), I(T(Bfe, 1), ce, 423, 0, [fH, oH]))); + bOe = G, Uen = Hn((S$(), I(S(xfe, 1), ce, 420, 0, [ZG, Afe]))); } function wOe() { - wOe = G, _in = Hn((n7(), I(T($le, 1), ce, 421, 0, [JH, GH]))); + wOe = G, Xen = Hn((P$(), I(S(_fe, 1), ce, 423, 0, [fH, oH]))); } function gOe() { - gOe = G, prn = Hn((D6(), I(T(grn, 1), ce, 518, 0, [zk, Uk]))); + gOe = G, Jin = Hn((n7(), I(S($le, 1), ce, 421, 0, [JH, GH]))); } function pOe() { - pOe = G, $rn = Hn((uh(), I(T(xrn, 1), ce, 508, 0, [p0, Ah]))); + pOe = G, mrn = Hn((D6(), I(S(prn, 1), ce, 518, 0, [zk, Uk]))); } function mOe() { - mOe = G, Arn = Hn((Rh(), I(T(Ern, 1), ce, 509, 0, [Nb, e1]))); + mOe = G, Mrn = Hn((uh(), I(S($rn, 1), ce, 508, 0, [p0, Ah]))); } function vOe() { - vOe = G, Jrn = Hn((Jf(), I(T(_rn, 1), ce, 515, 0, [jg, ud]))); + vOe = G, xrn = Hn((Rh(), I(S(Arn, 1), ce, 509, 0, [Nb, e1]))); } function kOe() { - kOe = G, Xrn = Hn((X0(), I(T(Wrn, 1), ce, 454, 0, [sd, hp]))); + kOe = G, Grn = Hn((Jf(), I(S(Jrn, 1), ce, 515, 0, [jg, ud]))); } function yOe() { - yOe = G, ycn = Hn((T$(), I(T(yae, 1), ce, 425, 0, [hq, kae]))); + yOe = G, Krn = Hn((X0(), I(S(Xrn, 1), ce, 454, 0, [sd, hp]))); } function jOe() { - jOe = G, $cn = Hn((lM(), I(T(jae, 1), ce, 487, 0, [$C, dp]))); + jOe = G, jcn = Hn((T$(), I(S(yae, 1), ce, 425, 0, [hq, kae]))); } function EOe() { - EOe = G, Scn = Hn((q$(), I(T(Aae, 1), ce, 426, 0, [Eae, gq]))); + EOe = G, Mcn = Hn((lM(), I(S(jae, 1), ce, 487, 0, [$C, dp]))); } function AOe() { - AOe = G, xun = Hn((N$(), I(T(d1e, 1), ce, 478, 0, [Oq, a1e]))); + AOe = G, Icn = Hn((q$(), I(S(Aae, 1), ce, 426, 0, [Eae, gq]))); } function xOe() { - xOe = G, Lun = Hn((Wy(), I(T(y1e, 1), ce, 428, 0, [Bq, FC]))); + xOe = G, $un = Hn((N$(), I(S(d1e, 1), ce, 478, 0, [Oq, a1e]))); } function $Oe() { - $Oe = G, Yun = Hn((a7(), I(T(H1e, 1), ce, 427, 0, [BC, G1e]))); + $Oe = G, Dun = Hn((Wy(), I(S(y1e, 1), ce, 428, 0, [_q, FC]))); } function MOe() { - MOe = G, sZe = Hn((V$(), I(T(Bse, 1), ce, 424, 0, [rG, rI]))); + MOe = G, Zun = Hn((a7(), I(S(H1e, 1), ce, 427, 0, [_C, G1e]))); } function TOe() { - TOe = G, ien = Hn((Ev(), I(T(ten, 1), ce, 502, 0, [zj, pG]))); + TOe = G, oZe = Hn((V$(), I(S(_se, 1), ce, 424, 0, [rG, rI]))); + } + function SOe() { + SOe = G, ren = Hn((Ev(), I(S(ien, 1), ce, 502, 0, [zj, pG]))); } function L$(e) { - ene(), q$e(this, Xn(qi(_0(e, 24), UT)), Xn(qi(e, UT))); + ene(), U$e(this, Xn(qi(B0(e, 24), UT)), Xn(qi(e, UT))); } function Gmn(e) { return (e.k == (cn(), si) || e.k == Ai) && Et(e, (te(), Ak)); @@ -10415,21 +10505,21 @@ function WDn() { return u(n == null ? Ru(e.f, null, t) : nb(e.i, n, t), 290); } function qmn() { - return Mi(), I(T(a8, 1), ce, 86, 0, [Th, nc, Qr, Mh, Io]); + return Mi(), I(S(a8, 1), ce, 86, 0, [Th, nc, Qr, Mh, Io]); } function Umn() { - return be(), I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an]); + return be(), I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an]); } function zmn(e) { return SA(), function() { return G3n(e, this, arguments); }; } - function SOe(e, n) { + function IOe(e, n) { var t; return t = n.jd(), new O0(t, e.e.pc(t, u(n.kd(), 18))); } - function IOe(e, n) { + function COe(e, n) { var t, i; return t = n.jd(), i = e.De(t), !!i && Gc(i.e, n.kd()); } @@ -10448,7 +10538,7 @@ function WDn() { i += e.a[t], t -= t & -t; return i; } - function COe(e, n) { + function POe(e, n) { var t; for (t = n; t; ) sw(e, -t.i, -t.j), t = Qt(t); @@ -10462,71 +10552,71 @@ function WDn() { return (N1(e), Hm(new Ge(e, new eY(n, e.a)))).zd(V3); } function Xmn() { - return zi(), I(T(noe, 1), ce, 363, 0, [$f, Al, Xc, Kc, Nr]); + return zi(), I(S(noe, 1), ce, 363, 0, [$f, Al, Xc, Kc, Nr]); } - function POe(e) { - Xze(), G7e(this), this.a = new Dt(), fZ(this, e), rt(this.a, e); + function OOe(e) { + Kze(), H7e(this), this.a = new Dt(), fZ(this, e), rt(this.a, e); } - function OOe() { + function LOe() { aL(this), this.b = new ue(ii, ii), this.a = new ue(Ri, Ri); } function UD(e) { D$(), !jh && (this.c = e, this.e = !0, this.a = new le()); } function D$() { - D$ = G, jh = !0, lYe = !1, aYe = !1, bYe = !1, dYe = !1; + D$ = G, jh = !0, aYe = !1, dYe = !1, wYe = !1, bYe = !1; } function N$() { N$ = G, Oq = new lX(Yie, 0), a1e = new lX("TARGET_WIDTH", 1); } function Kmn() { - return uT(), I(T(Mcn, 1), ce, 364, 0, [bq, lq, wq, aq, dq]); + return uT(), I(S(Tcn, 1), ce, 364, 0, [bq, lq, wq, aq, dq]); } function Vmn() { - return Nw(), I(T(ven, 1), ce, 371, 0, [Xj, CI, PI, II, SI]); + return Nw(), I(S(ken, 1), ce, 371, 0, [Xj, CI, PI, II, SI]); } function Qmn() { - return u9(), I(T(mle, 1), ce, 328, 0, [ple, FH, RH, Bk, _k]); + return u9(), I(S(mle, 1), ce, 328, 0, [ple, FH, RH, _k, Bk]); } function Ymn() { - return Bs(), I(T(Rfe, 1), ce, 165, 0, [iE, Mk, ha, Tk, l0]); + return _s(), I(S(Rfe, 1), ce, 165, 0, [iE, Mk, ha, Tk, l0]); } function Zmn() { - return m9(), I(T(Tun, 1), ce, 369, 0, [bp, bm, c8, r8, jE]); + return m9(), I(S(Sun, 1), ce, 369, 0, [bp, bm, c8, r8, jE]); } function evn() { - return F7(), I(T(x1e, 1), ce, 330, 0, [j1e, _q, A1e, Jq, E1e]); + return F7(), I(S(x1e, 1), ce, 330, 0, [j1e, Bq, A1e, Jq, E1e]); } function nvn() { - return qh(), I(T(xh, 1), ce, 160, 0, [Xe, mi, Zf, t1, aa]); + return qh(), I(S(xh, 1), ce, 160, 0, [Xe, mi, Zf, t1, aa]); } function tvn() { - return E2(), I(T(g8, 1), ce, 257, 0, [ld, NE, Zde, w8, e0e]); + return E2(), I(S(g8, 1), ce, 257, 0, [ld, NE, Zde, w8, e0e]); } function zD(e, n) { var t; return t = u(hh(e.d, n), 21), t || u(hh(e.e, n), 21); } - function LOe(e) { + function DOe(e) { this.b = e, kn.call(this, e), this.a = u(hn(this.b.a, 4), 129); } - function DOe(e) { + function NOe(e) { this.b = e, Kp.call(this, e), this.a = u(hn(this.b.a, 4), 129); } - function NOe(e, n) { - this.c = 0, this.b = n, Zxe.call(this, e, 17493), this.a = this.c; + function FOe(e, n) { + this.c = 0, this.b = n, e$e.call(this, e, 17493), this.a = this.c; } function bf(e, n, t, i, r) { - HOe.call(this, n, i, r), this.c = e, this.b = t; + qOe.call(this, n, i, r), this.c = e, this.b = t; } function TQ(e, n, t, i, r) { - lPe.call(this, n, i, r), this.c = e, this.a = t; + aPe.call(this, n, i, r), this.c = e, this.a = t; } function SQ(e, n, t, i, r) { - aPe.call(this, n, i, r), this.c = e, this.a = t; + dPe.call(this, n, i, r), this.c = e, this.a = t; } function IQ(e, n, t, i, r) { - HOe.call(this, n, i, r), this.c = e, this.a = t; + qOe.call(this, n, i, r), this.c = e, this.a = t; } function CQ(e, n, t) { e.a.c.length = 0, SCn(e, n, t), e.a.c.length == 0 || nSn(e, n); @@ -10538,32 +10628,32 @@ function WDn() { return e.e = 3, e.d = e.Yb(), e.e != 2 ? (e.e = 0, !0) : !1; } function PQ(e, n) { - return N(n, 144) ? _e(e.c, u(n, 144).c) : !1; + return N(n, 144) ? Be(e.c, u(n, 144).c) : !1; } - function FOe(e) { + function ROe(e) { var n; return e.c || (n = e.r, N(n, 88) && (e.c = u(n, 29))), e.c; } function ks(e) { - return e.t || (e.t = new C7e(e), e9(new Kje(e), 0, e.t)), e.t; + return e.t || (e.t = new P7e(e), e9(new Vje(e), 0, e.t)), e.t; } function hr(e) { return !e.c || !e.d ? !1 : !!e.c.i && e.c.i == e.d.i; } function l3(e, n) { - return n == 0 || e.e == 0 ? e : n > 0 ? rBe(e, n) : UHe(e, -n); + return n == 0 || e.e == 0 ? e : n > 0 ? c_e(e, n) : zHe(e, -n); } function OQ(e, n) { - return n == 0 || e.e == 0 ? e : n > 0 ? UHe(e, n) : rBe(e, -n); + return n == 0 || e.e == 0 ? e : n > 0 ? zHe(e, n) : c_e(e, -n); } function pn(e) { if (xn(e)) return e.c = e.a, e.a.Pb(); throw $(new oc()); } - function ROe(e) { + function _Oe(e) { var n; - return n = e.length, _e(nn.substr(nn.length - n, n), e); + return n = e.length, Be(nn.substr(nn.length - n, n), e); } function BOe(e) { var n, t; @@ -10581,7 +10671,7 @@ function WDn() { e && s5n((aW(), rse)), --XS, e && KS != -1 && (qan(KS), KS = -1); } function LQ(e) { - Nan.call(this, e == null ? Bu : uc(e), N(e, 80) ? u(e, 80) : null); + Nan.call(this, e == null ? _u : uc(e), N(e, 80) ? u(e, 80) : null); } function XD(e) { var n; @@ -10600,7 +10690,7 @@ function WDn() { function ovn(e, n) { return m.Math.min(S1(n.a, e.d.d.c), S1(n.b, e.d.d.c)); } - function _Oe(e, n, t) { + function JOe(e, n, t) { var i; i = new OX(e.a), G6(i, e.a.a), Ru(i.f, n, t), e.a.a = i; } @@ -10634,7 +10724,7 @@ function WDn() { e.Zi(e.i + 1), d6(e, e.i, e.Xi(e.i, n)), e.Ki(e.i++, n), e.Li(); } function a3(e, n) { - return Hi(n) ? n == null ? Gne(e.f, null) : cFe(e.i, n) : Gne(e.f, n); + return Hi(n) ? n == null ? Gne(e.f, null) : uFe(e.i, n) : Gne(e.f, n); } function La(e, n) { var t; @@ -10660,7 +10750,7 @@ function WDn() { var t; t = e.q.getHours() + (n / 60 | 0), e.q.setMinutes(n), A9(e, t); } - function BQ(e, n) { + function _Q(e, n) { var t, i; return t = (Ze(e), e), i = (Ze(n), n), t == i ? 0 : t < i ? -1 : 1; } @@ -10669,34 +10759,34 @@ function WDn() { var e, n; aP = (Gm(), n = new yA(), n), dP = (e = new iO(), e); } - function JOe() { + function GOe() { this.g = new Vz(), this.b = new Vz(), this.a = new le(), this.k = new le(); } function F$() { this.e = new le(), this.c = new le(), this.d = new le(), this.b = new le(); } - function GOe() { - this.a = new eW(), this.b = new hje(), this.d = new Awe(), this.e = new Ewe(); + function HOe() { + this.a = new eW(), this.b = new lje(), this.d = new xwe(), this.e = new Awe(); } function fh(e) { this.c = e, this.a = new x(this.c.a), this.b = new x(this.c.b); } - function HOe(e, n, t) { + function qOe(e, n, t) { this.d = e, this.k = n ? 1 : 0, this.f = t ? 1 : 0, this.o = -1, this.p = 0; } - function qOe(e, n, t) { + function UOe(e, n, t) { this.a = e, this.c = n, this.d = t, he(n.e, this), he(t.b, this); } - function UOe(e, n, t) { + function zOe(e, n, t) { vA.call(this, t), this.b = e, this.c = n, this.d = (lF(), MU); } - function zOe(e, n) { - Yxe.call(this, n.xd(), n.wd() & -6), Ze(e), this.a = e, this.b = n; - } function WOe(e, n) { Zxe.call(this, n.xd(), n.wd() & -6), Ze(e), this.a = e, this.b = n; } - function _Q(e, n) { + function XOe(e, n) { + e$e.call(this, n.xd(), n.wd() & -6), Ze(e), this.a = e, this.b = n; + } + function BQ(e, n) { mx.call(this, n.xd(), n.wd() & -6), Ze(e), this.a = e, this.b = n; } function R$(e, n, t) { @@ -10713,7 +10803,7 @@ function WDn() { var i; return ++e.e, --e.f, i = u(e.d[n].ed(t), 136), i.kd(); } - function XOe(e) { + function KOe(e) { var n; return e.a || (n = e.r, N(n, 159) && (e.a = u(n, 159))), e.a; } @@ -10728,18 +10818,18 @@ function WDn() { function dvn(e, n) { return e.p < n.p ? 1 : e.p > n.p ? -1 : 0; } - function KOe(e, n) { + function VOe(e, n) { return eu(e.a, n) ? (a3(e.a, n), !0) : !1; } function bvn(e) { var n, t; - return n = e.jd(), t = u(e.kd(), 18), $y(t.Lc(), new W9e(n)); + return n = e.jd(), t = u(e.kd(), 18), $y(t.Lc(), new X9e(n)); } function QD(e) { var n; return n = e.b, n.b == 0 ? null : u(qc(n, 0), 65).b; } - function B$(e, n) { + function _$(e, n) { return Ze(n), e.c < e.d ? (e.Qe(n, e.c++), !0) : !1; } function d3(e, n, t) { @@ -10747,11 +10837,11 @@ function WDn() { } function wvn(e) { var n; - return N1(e), n = new qTe(e, e.a.e, e.a.d | 4), new fK(e, n); + return N1(e), n = new UTe(e, e.a.e, e.a.d | 4), new fK(e, n); } - function VOe(e) { + function QOe(e) { var n; - for (A1(e), n = 0; e.a.zd(new Sbe()); ) + for (A1(e), n = 0; e.a.zd(new Ibe()); ) n = yr(n, 1); return n; } @@ -10760,7 +10850,7 @@ function WDn() { for (i = 0, r = 0; r < n.length; r++) i += e.sg(n[r], i, t); } - function _$(e, n, t, i) { + function B$(e, n, t, i) { this.f = e, this.e = n, this.d = t, this.b = i, this.c = i ? i.d : null; } function bu(e) { @@ -10769,122 +10859,122 @@ function WDn() { function J$() { J$ = G, u8 = new It("org.eclipse.elk.labels.labelManager"); } - function QOe() { - QOe = G, Woe = new zt("separateLayerConnections", (jM(), yG)); + function YOe() { + YOe = G, Woe = new zt("separateLayerConnections", (jM(), yG)); } function Jf() { Jf = G, jg = new uX("REGULAR", 0), ud = new uX("CRITICAL", 1); } function Wy() { - Wy = G, Bq = new aX("FIXED", 0), FC = new aX("CENTER_NODE", 1); + Wy = G, _q = new aX("FIXED", 0), FC = new aX("CENTER_NODE", 1); } function G$() { G$ = G, Yoe = new QW("QUADRATIC", 0), PG = new QW("SCANLINE", 1); } - function YOe() { - YOe = G, Ien = Hn((rM(), I(T(rfe, 1), ce, 350, 0, [ife, OI, OG]))); - } function ZOe() { - ZOe = G, Len = Hn((Hd(), I(T(Oen, 1), ce, 449, 0, [JG, V5, Y2]))); + ZOe = G, Cen = Hn((rM(), I(S(rfe, 1), ce, 350, 0, [ife, OI, OG]))); } function eLe() { - eLe = G, _en = Hn((Mv(), I(T(QG, 1), ce, 302, 0, [KG, VG, Qj]))); + eLe = G, Den = Hn((Hd(), I(S(Len, 1), ce, 449, 0, [JG, V5, Y2]))); } function nLe() { - nLe = G, Jen = Hn((P1(), I(T(YG, 1), ce, 329, 0, [Yj, Efe, fg]))); + nLe = G, Jen = Hn((Mv(), I(S(QG, 1), ce, 302, 0, [KG, VG, Qj]))); } function tLe() { - tLe = G, Hen = Hn((Kl(), I(T(Gen, 1), ce, 315, 0, [Zj, ep, nm]))); + tLe = G, Gen = Hn((P1(), I(S(YG, 1), ce, 329, 0, [Yj, Efe, fg]))); } function iLe() { - iLe = G, xen = Hn((Z0(), I(T(EG, 1), ce, 368, 0, [Tb, nd, Mb]))); + iLe = G, qen = Hn((Kl(), I(S(Hen, 1), ce, 315, 0, [Zj, ep, nm]))); } function rLe() { - rLe = G, Din = Hn((V6(), I(T(gle, 1), ce, 352, 0, [LH, wle, lC]))); + rLe = G, $en = Hn((Z0(), I(S(EG, 1), ce, 368, 0, [Tb, nd, Mb]))); } function cLe() { - cLe = G, Gin = Hn((Cr(), I(T(Jin, 1), ce, 452, 0, [Gk, bs, yu]))); + cLe = G, Nin = Hn((V6(), I(S(gle, 1), ce, 352, 0, [LH, wle, lC]))); } function uLe() { - uLe = G, Hin = Hn((vM(), I(T(Sle, 1), ce, 381, 0, [Mle, HH, Tle]))); + uLe = G, Hin = Hn((Cr(), I(S(Gin, 1), ce, 452, 0, [Gk, bs, yu]))); } function sLe() { - sLe = G, qin = Hn((K6(), I(T(Ile, 1), ce, 348, 0, [UH, qH, aE]))); + sLe = G, qin = Hn((vM(), I(S(Sle, 1), ce, 381, 0, [Mle, HH, Tle]))); } function oLe() { - oLe = G, Uin = Hn((Ov(), I(T(Ple, 1), ce, 349, 0, [zH, Cle, Hk]))); + oLe = G, Uin = Hn((K6(), I(S(Ile, 1), ce, 348, 0, [UH, qH, aE]))); } function fLe() { - fLe = G, zin = Hn((iM(), I(T(Dle, 1), ce, 351, 0, [Lle, WH, Ole]))); + fLe = G, zin = Hn((Ov(), I(S(Ple, 1), ce, 349, 0, [zH, Cle, Hk]))); } function hLe() { - hLe = G, Win = Hn((kM(), I(T(Nle, 1), ce, 382, 0, [XH, o4, yg]))); + hLe = G, Win = Hn((iM(), I(S(Dle, 1), ce, 351, 0, [Lle, WH, Ole]))); } function lLe() { - lLe = G, Qrn = Hn((X6(), I(T(Zle, 1), ce, 385, 0, [Yle, QH, wE]))); + lLe = G, Xin = Hn((kM(), I(S(Nle, 1), ce, 382, 0, [XH, o4, yg]))); } function aLe() { - aLe = G, Icn = Hn((m7(), I(T(Mae, 1), ce, 386, 0, [MC, xae, $ae]))); + aLe = G, Yrn = Hn((X6(), I(S(Zle, 1), ce, 385, 0, [Yle, QH, wE]))); } function dLe() { - dLe = G, Qcn = Hn((mM(), I(T(Uae, 1), ce, 303, 0, [yq, qae, Hae]))); + dLe = G, Ccn = Hn((m7(), I(S(Mae, 1), ce, 386, 0, [MC, xae, $ae]))); } function bLe() { - bLe = G, Ycn = Hn((BM(), I(T(zae, 1), ce, 436, 0, [Zk, IC, jq]))); + bLe = G, Ycn = Hn((mM(), I(S(Uae, 1), ce, 303, 0, [yq, qae, Hae]))); } function wLe() { - wLe = G, $un = Hn((U$(), I(T(g1e, 1), ce, 429, 0, [Lq, w1e, b1e]))); + wLe = G, Zcn = Hn((_M(), I(S(zae, 1), ce, 436, 0, [Zk, IC, jq]))); } function gLe() { - gLe = G, Mun = Hn((SM(), I(T(v1e, 1), ce, 430, 0, [p1e, m1e, Dq]))); + gLe = G, Mun = Hn((U$(), I(S(g1e, 1), ce, 429, 0, [Lq, w1e, b1e]))); } function pLe() { - pLe = G, Iun = Hn((E7(), I(T(Nq, 1), ce, 435, 0, [LC, DC, NC]))); + pLe = G, Tun = Hn((SM(), I(S(v1e, 1), ce, 430, 0, [p1e, m1e, Dq]))); } function mLe() { - mLe = G, iun = Hn((LM(), I(T(Kae, 1), ce, 387, 0, [Xae, Sq, Wae]))); + mLe = G, Cun = Hn((E7(), I(S(Nq, 1), ce, 435, 0, [LC, DC, NC]))); } function vLe() { - vLe = G, OZe = Hn((F6(), I(T(eoe, 1), ce, 384, 0, [oG, sG, fG]))); + vLe = G, run = Hn((LM(), I(S(Kae, 1), ce, 387, 0, [Xae, Sq, Wae]))); } function kLe() { - kLe = G, wYe = Hn((yo(), I(T(Ju, 1), ce, 130, 0, [Pse, _u, Ose]))); + kLe = G, LZe = Hn((F6(), I(S(eoe, 1), ce, 384, 0, [oG, sG, fG]))); } function yLe() { - yLe = G, EYe = Hn((qf(), I(T(tg, 1), ce, 237, 0, [Mc, ku, Tc]))); + yLe = G, gYe = Hn((yo(), I(S(Ju, 1), ce, 130, 0, [Pse, Bu, Ose]))); } function jLe() { - jLe = G, xYe = Hn((hs(), I(T(AYe, 1), ce, 461, 0, [nl, Z1, Af]))); + jLe = G, AYe = Hn((qf(), I(S(tg, 1), ce, 237, 0, [Mc, ku, Tc]))); } function ELe() { - ELe = G, MYe = Hn((Nu(), I(T($Ye, 1), ce, 462, 0, [Vf, ed, xf]))); + ELe = G, $Ye = Hn((hs(), I(S(xYe, 1), ce, 461, 0, [nl, Z1, Af]))); } function ALe() { - ALe = G, Jsn = Hn((lh(), I(T(_de, 1), ce, 279, 0, [g4, Ig, p4]))); + ALe = G, TYe = Hn((Nu(), I(S(MYe, 1), ce, 462, 0, [Vf, ed, xf]))); } function xLe() { - xLe = G, uon = Hn((y3(), I(T(s0e, 1), ce, 281, 0, [u0e, Pg, eP]))); + xLe = G, Gsn = Hn((lh(), I(S(Bde, 1), ce, 279, 0, [g4, Ig, p4]))); } function $Le() { - $Le = G, Usn = Hn((ea(), I(T(Yde, 1), ce, 347, 0, [XC, r1, b8]))); + $Le = G, son = Hn((y3(), I(S(s0e, 1), ce, 281, 0, [u0e, Pg, eP]))); } function MLe() { - MLe = G, ion = Hn((B6(), I(T(r0e, 1), ce, 300, 0, [RE, dU, i0e]))); + MLe = G, zsn = Hn((ea(), I(S(Yde, 1), ce, 347, 0, [XC, r1, b8]))); + } + function TLe() { + TLe = G, ron = Hn((_6(), I(S(r0e, 1), ce, 300, 0, [RE, dU, i0e]))); } function Gf(e, n) { return !e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), fF(e.o, n); } function gvn(e) { - return !e.g && (e.g = new fA()), !e.g.d && (e.g.d = new T7e(e)), e.g.d; + return !e.g && (e.g = new fA()), !e.g.d && (e.g.d = new S7e(e)), e.g.d; } function pvn(e) { - return !e.g && (e.g = new fA()), !e.g.b && (e.g.b = new M7e(e)), e.g.b; + return !e.g && (e.g = new fA()), !e.g.b && (e.g.b = new T7e(e)), e.g.b; } function Xy(e) { - return !e.g && (e.g = new fA()), !e.g.c && (e.g.c = new I7e(e)), e.g.c; + return !e.g && (e.g = new fA()), !e.g.c && (e.g.c = new C7e(e)), e.g.c; } function mvn(e) { - return !e.g && (e.g = new fA()), !e.g.a && (e.g.a = new S7e(e)), e.g.a; + return !e.g && (e.g = new fA()), !e.g.a && (e.g.a = new I7e(e)), e.g.a; } function vvn(e, n, t, i) { return t && (i = t.Oh(n, Yt(t.Ah(), e.c.sk()), null, i)), i; @@ -10898,7 +10988,7 @@ function WDn() { } function W(e, n, t, i, r, c) { var s; - return s = u_e(r, i), r != 10 && I(T(e, c), n, t, r, s), s; + return s = sBe(r, i), r != 10 && I(S(e, c), n, t, r, s), s; } function yvn(e, n, t) { var i, r; @@ -10914,7 +11004,7 @@ function WDn() { } function jvn(e, n) { var t; - e.C && (t = u(_r(e.b, n), 127).n, t.d = e.C.d, t.a = e.C.a); + e.C && (t = u(Br(e.b, n), 127).n, t.d = e.C.d, t.a = e.C.a); } function HQ(e) { var n, t, i, r; @@ -10922,7 +11012,7 @@ function WDn() { } function qQ(e, n) { var t; - return t = new T0(), t.c = !0, t.d = n.kd(), oze(e, n.jd(), t); + return t = new T0(), t.c = !0, t.d = n.kd(), fze(e, n.jd(), t); } function Evn(e, n) { var t; @@ -10936,16 +11026,16 @@ function WDn() { n.Tg("Label management", 1), px(y(e, (J$(), u8))), n.Ug(); } function zQ(e, n, t) { - u(e.b, 68), u(e.b, 68), u(e.b, 68), wu(e.a, new TTe(t, n, e)); + u(e.b, 68), u(e.b, 68), u(e.b, 68), wu(e.a, new STe(t, n, e)); } function xvn(e, n, t, i) { - hUe(e, n, t, r5(e, n, i, N(n, 103) && (u(n, 19).Bb & xr) != 0)); + lUe(e, n, t, r5(e, n, i, N(n, 103) && (u(n, 19).Bb & xr) != 0)); } function tr(e, n, t) { if (e < 0 || n > t || n < e) throw $(new gW(zT + e + Lie + n + Cie + t)); } - function TLe(e, n, t) { + function SLe(e, n, t) { this.d = new AA(), this.c = new Tn(), this.a = e, this.e = n, this.c = t; } function eN(e) { @@ -10955,40 +11045,40 @@ function WDn() { UA.call(this, e, n), this.a = W(ILn, JT, 438, 2, 0, 1), this.b = !0; } function WQ(e) { - DFe.call(this, e, 0), vMe(this), this.d.b = this.d, this.d.a = this.d; + NFe.call(this, e, 0), kMe(this), this.d.b = this.d, this.d.a = this.d; } function XQ(e) { this.e = e, this.b = this.e.a.entries(), this.a = W(Li, Ve, 1, 0, 5, 1); } - function SLe() { - SLe = G, Yin = au(et(new wi(), (zi(), $f), (Qi(), mG)), Nr, em); + function ILe() { + ILe = G, Zin = au(et(new wi(), (zi(), $f), (Qi(), mG)), Nr, em); } function $vn() { - return T3(), I(T(K5, 1), ce, 231, 0, [X5, vk, W5, og, Q2, V2]); + return T3(), I(S(K5, 1), ce, 231, 0, [X5, vk, W5, og, Q2, V2]); } function Mvn() { - return lT(), I(T(ffe, 1), ce, 284, 0, [HG, GG, UG, qG, zG, DI]); + return lT(), I(S(ffe, 1), ce, 284, 0, [HG, GG, UG, qG, zG, DI]); } function Tvn() { - return D7(), I(T(gfe, 1), ce, 282, 0, [FI, dfe, wfe, afe, bfe, WG]); + return D7(), I(S(gfe, 1), ce, 282, 0, [FI, dfe, wfe, afe, bfe, WG]); } function Svn() { - return Kv(), I(T(jfe, 1), ce, 283, 0, [yk, mfe, yfe, kfe, vfe, pfe]); + return Kv(), I(S(jfe, 1), ce, 283, 0, [yk, mfe, yfe, kfe, vfe, pfe]); } function Ivn() { - return wl(), I(T(X1e, 1), ce, 256, 0, [Wq, AE, xE, GC, _C, JC]); + return wl(), I(S(X1e, 1), ce, 256, 0, [Wq, AE, xE, GC, BC, JC]); } function Cvn() { - return Kd(), I(T(Qq, 1), ce, 299, 0, [Vq, h8, f8, Kq, s8, o8]); + return Kd(), I(S(Qq, 1), ce, 299, 0, [Vq, h8, f8, Kq, s8, o8]); } function Pvn() { - return ls(), I(T(KC, 1), ce, 280, 0, [dd, ba, FE, m8, p8, jm]); + return ls(), I(S(KC, 1), ce, 280, 0, [dd, ba, FE, m8, p8, jm]); } function Ovn() { - return Ui(), I(T(n0e, 1), ce, 102, 0, [ad, Sh, v4, k0, Il, Vc]); + return Ui(), I(S(n0e, 1), ce, 102, 0, [ad, Sh, v4, k0, Il, Vc]); } function Lvn() { - return fT(), I(T(zde, 1), ce, 327, 0, [aU, Hde, Ude, Jde, qde, Gde]); + return fT(), I(S(zde, 1), ce, 327, 0, [aU, Hde, Ude, Jde, qde, Gde]); } function KQ(e) { var n; @@ -11000,7 +11090,7 @@ function WDn() { function Hf(e, n) { return Ny(n, "Horizontal alignment cannot be null"), e.b = n, e; } - function ILe(e, n, t) { + function CLe(e, n, t) { kt(); var i; return i = H1(e, n), t && i && Ygn(e) && (i = null), i; @@ -11020,7 +11110,7 @@ function WDn() { function YQ(e, n) { var t, i; for (i = n.Jc(); i.Ob(); ) - t = u(i.Pb(), 37), Fqe(e, t, 0, 0); + t = u(i.Pb(), 37), Rqe(e, t, 0, 0); } function Da(e, n, t) { var i, r; @@ -11044,11 +11134,11 @@ function WDn() { var t, i, r; return r = e.r, i = e.d, t = M9(e, n, !0), t.b != r || t.a != i; } - function CLe(e, n) { - return IAe(e.e, n) || Wd(e.e, n, new IBe(n)), u(hh(e.e, n), 113); + function PLe(e, n) { + return CAe(e.e, n) || Wd(e.e, n, new C_e(n)), u(hh(e.e, n), 113); } function ys(e, n, t, i) { - return Ze(e), Ze(n), Ze(t), Ze(i), new EV(e, n, new xbe()); + return Ze(e), Ze(n), Ze(t), Ze(i), new EV(e, n, new $be()); } function Vy(e, n, t) { var i, r; @@ -11056,11 +11146,11 @@ function WDn() { } function Fvn(e, n, t) { var i, r, c; - i = Ul(e, t), r = null, i && (r = gne(i)), c = r, MBe(n, t, c); + i = Ul(e, t), r = null, i && (r = gne(i)), c = r, T_e(n, t, c); } function Rvn(e, n, t) { var i, r, c; - i = Ul(e, t), r = null, i && (r = gne(i)), c = r, MBe(n, t, c); + i = Ul(e, t), r = null, i && (r = gne(i)), c = r, T_e(n, t, c); } function es(e, n, t, i) { this.$j(), this.a = n, this.b = e, this.c = new vV(this, n, t, i); @@ -11072,20 +11162,20 @@ function WDn() { mQ.call(this, n, i, r, c), this.c = e, this.a = t; } function ZQ(e, n, t, i, r) { - L$e(this), this.b = e, this.d = n, this.f = t, this.g = i, this.c = r; + D$e(this), this.b = e, this.d = n, this.f = t, this.g = i, this.c = r; } function eY(e, n) { mx.call(this, n.xd(), n.wd() & -16449), Ze(e), this.a = e, this.c = n; } - function Bvn(e, n) { + function _vn(e, n) { e.a.Le(n.d, e.b) > 0 && (he(e.c, new UK(n.c, n.d, e.d)), e.b = n.d); } function iN(e) { e.a = W(Wn, lt, 30, e.b + 1, 15, 1), e.c = W(Wn, lt, 30, e.b, 15, 1), e.d = 0; } - function _vn(e, n, t) { + function Bvn(e, n, t) { var i; - return i = PFe(e, n, t), e.b = new dM(i.c.length), gte(e, i); + return i = OFe(e, n, t), e.b = new dM(i.c.length), gte(e, i); } function Jvn(e) { if (e.b <= 0) throw $(new oc()); @@ -11094,10 +11184,10 @@ function WDn() { function Gvn(e) { var n; if (!e.a) - throw $(new tCe()); + throw $(new iCe()); return n = e.a, e.a = Qt(e.a), n; } - function PLe(e) { + function OLe(e) { var n; if (e.ll()) for (n = e.i - 1; n >= 0; --n) @@ -11106,11 +11196,11 @@ function WDn() { } function b3(e) { var n; - return Jn(e), N(e, 204) ? (n = u(e, 204), n) : new oke(e); + return Jn(e), N(e, 204) ? (n = u(e, 204), n) : new fke(e); } function Hvn(e) { for (; !e.a; ) - if (!pTe(e.c, new Fke(e))) + if (!mTe(e.c, new Rke(e))) return !1; return !0; } @@ -11118,7 +11208,7 @@ function WDn() { if (e.g == null || n >= e.i) throw $(new sL(n, e.i)); return e.g[n]; } - function OLe(e, n, t) { + function LLe(e, n, t) { if (Cv(e, t), t != null && !e.dk(t)) throw $(new ZP()); return t; @@ -11126,7 +11216,7 @@ function WDn() { function rN(e, n) { return r7(n) != 10 && I(Rs(n), n.Qm, n.__elementTypeId$, r7(n), e), e; } - function LLe(e, n) { + function DLe(e, n) { var t, i; return i = n / e.c.Pd().gc() | 0, t = n % e.c.Pd().gc(), d3(e, i, t); } @@ -11138,22 +11228,22 @@ function WDn() { return n < 0 ? fb(e, t, i) : u(t, 69).uk().wk(e, e.ei(), n, i, r); } function qvn(e, n) { - return Ct(_(H(y(e, (te(), Cb)))), _(H(y(n, Cb)))); + return Ct(B(H(y(e, (te(), Cb)))), B(H(y(n, Cb)))); } - function DLe() { - DLe = G, fYe = Hn((mv(), I(T(eI, 1), ce, 309, 0, [XJ, KJ, VJ, QJ]))); + function NLe() { + NLe = G, hYe = Hn((mv(), I(S(eI, 1), ce, 309, 0, [XJ, KJ, VJ, QJ]))); } function mv() { - mv = G, XJ = new zA("All", 0), KJ = new k$e(), VJ = new P$e(), QJ = new y$e(); + mv = G, XJ = new zA("All", 0), KJ = new y$e(), VJ = new O$e(), QJ = new j$e(); } function hs() { - hs = G, nl = new IO(_3, 0), Z1 = new IO(g5, 1), Af = new IO(J3, 2); + hs = G, nl = new IO(B3, 0), Z1 = new IO(g5, 1), Af = new IO(J3, 2); } - function NLe() { - NLe = G, CT(), Y0e = ii, dfn = Ri, Z0e = new B8(ii), bfn = new B8(Ri); + function FLe() { + FLe = G, CT(), Y0e = ii, bfn = Ri, Z0e = new _8(ii), wfn = new _8(Ri); } function H$() { - H$ = G, nsn = new Gve(), isn = new Hve(), tsn = r6n((tt(), sU), nsn, fd, isn); + H$ = G, tsn = new Hve(), rsn = new qve(), isn = r6n((tt(), sU), tsn, fd, rsn); } function Uvn(e) { H$(), u(e.mf((tt(), Mg)), 182).Ec((ls(), FE)), e.of(sU, null); @@ -11172,7 +11262,7 @@ function WDn() { t = n; return t; } - function FLe(e) { + function RLe(e) { var n, t; if (!e.b) return null; @@ -11185,65 +11275,65 @@ function WDn() { for (n = e.p + 1; n < e.c.a.c.length; ++n) --u(pe(e.c.a, n), 9).p; } - function RLe() { - RLe = G, sen = Hn((jM(), I(T(uen, 1), ce, 367, 0, [yG, MI, TI, Wj]))); + function _Le() { + _Le = G, oen = Hn((jM(), I(S(sen, 1), ce, 367, 0, [yG, MI, TI, Wj]))); } function BLe() { - BLe = G, XZe = Hn((A3(), I(T(roe, 1), ce, 383, 0, [gk, ioe, bG, wG]))); - } - function _Le() { - _Le = G, YYe = Hn((eb(), I(T(QYe, 1), ce, 409, 0, [Gj, Jj, tG, iG]))); + BLe = G, KZe = Hn((A3(), I(S(roe, 1), ce, 383, 0, [gk, ioe, bG, wG]))); } function JLe() { - JLe = G, GZe = Hn((Tv(), I(T(JZe, 1), ce, 408, 0, [$b, rg, ig, W2]))); + JLe = G, ZYe = Hn((eb(), I(S(YYe, 1), ce, 409, 0, [Gj, Jj, tG, iG]))); } function GLe() { - GLe = G, arn = Hn((Ud(), I(T(lrn, 1), ce, 404, 0, [dE, qk, gC, wC]))); + GLe = G, HZe = Hn((Tv(), I(S(GZe, 1), ce, 408, 0, [$b, rg, ig, W2]))); } function HLe() { - HLe = G, Nin = Hn((Dw(), I(T(NH, 1), ce, 203, 0, [aC, DH, fp, op]))); + HLe = G, drn = Hn((Ud(), I(S(arn, 1), ce, 404, 0, [dE, qk, gC, wC]))); } function qLe() { - qLe = G, Bin = Hn((ta(), I(T(xle, 1), ce, 269, 0, [cd, Ale, BH, _H]))); + qLe = G, Fin = Hn((Dw(), I(S(NH, 1), ce, 203, 0, [aC, DH, fp, op]))); } function ULe() { - ULe = G, men = Hn((vf(), I(T(pen, 1), ce, 413, 0, [sg, U5, z5, jG]))); + ULe = G, Bin = Hn((ta(), I(S(xle, 1), ce, 269, 0, [cd, Ale, _H, BH]))); } function zLe() { - zLe = G, kcn = Hn((W6(), I(T(vae, 1), ce, 353, 0, [fq, xC, oq, sq]))); + zLe = G, ven = Hn((vf(), I(S(men, 1), ce, 413, 0, [sg, U5, z5, jG]))); } function WLe() { - WLe = G, Sen = Hn((t9(), I(T(tfe, 1), ce, 301, 0, [kk, efe, Kj, nfe]))); + WLe = G, ycn = Hn((W6(), I(S(vae, 1), ce, 353, 0, [fq, xC, oq, sq]))); } function XLe() { - XLe = G, eun = Hn((oT(), I(T(Zcn, 1), ce, 401, 0, [$q, Eq, xq, Aq]))); + XLe = G, Ien = Hn((t9(), I(S(tfe, 1), ce, 301, 0, [kk, efe, Kj, nfe]))); } function KLe() { - KLe = G, Vcn = Hn((YM(), I(T(Gae, 1), ce, 354, 0, [kq, _ae, Jae, Bae]))); + KLe = G, nun = Hn((oT(), I(S(eun, 1), ce, 401, 0, [$q, Eq, xq, Aq]))); } function VLe() { - VLe = G, Krn = Hn((M3(), I(T(Jle, 1), ce, 398, 0, [kC, Wk, Xk, Kk]))); + VLe = G, Qcn = Hn((YM(), I(S(Gae, 1), ce, 354, 0, [kq, Bae, Jae, _ae]))); } function QLe() { - QLe = G, _sn = Hn((Dv(), I(T(Bde, 1), ce, 278, 0, [PE, WC, Fde, Rde]))); + QLe = G, Vrn = Hn((M3(), I(S(Jle, 1), ce, 398, 0, [kC, Wk, Xk, Kk]))); } function YLe() { - YLe = G, Gsn = Hn((na(), I(T(lU, 1), ce, 222, 0, [hU, OE, m4, ym]))); + YLe = G, Jsn = Hn((Dv(), I(S(_de, 1), ce, 278, 0, [PE, WC, Fde, Rde]))); } function ZLe() { - ZLe = G, Wsn = Hn((Zs(), I(T(zsn, 1), ce, 292, 0, [DE, Tl, hd, LE]))); + ZLe = G, Hsn = Hn((na(), I(S(lU, 1), ce, 222, 0, [hU, OE, m4, ym]))); } function eDe() { - eDe = G, son = Hn((O$(), I(T(HE, 1), ce, 288, 0, [o0e, h0e, wU, f0e]))); + eDe = G, Xsn = Hn((Zs(), I(S(Wsn, 1), ce, 292, 0, [DE, Tl, hd, LE]))); } function nDe() { - nDe = G, ron = Hn((Js(), I(T(v8, 1), ce, 380, 0, [_E, y0, BE, Cg]))); + nDe = G, oon = Hn((O$(), I(S(HE, 1), ce, 288, 0, [o0e, h0e, wU, f0e]))); } function tDe() { - tDe = G, oon = Hn((DM(), I(T(b0e, 1), ce, 326, 0, [gU, l0e, d0e, a0e]))); + tDe = G, con = Hn((Js(), I(S(v8, 1), ce, 380, 0, [BE, y0, _E, Cg]))); } function iDe() { - iDe = G, lon = Hn((EM(), I(T(hon, 1), ce, 407, 0, [pU, g0e, w0e, p0e]))); + iDe = G, fon = Hn((DM(), I(S(b0e, 1), ce, 326, 0, [gU, l0e, d0e, a0e]))); + } + function rDe() { + rDe = G, aon = Hn((EM(), I(S(lon, 1), ce, 407, 0, [pU, g0e, w0e, p0e]))); } function q$() { q$ = G, Eae = new hX("LEAF_NUMBER", 0), gq = new hX("NODE_SIZE", 1); @@ -11252,11 +11342,11 @@ function WDn() { Zy = G, hfe = new ZW(Wf, 0), NI = new ZW("IMPROVE_STRAIGHTNESS", 1); } function U$() { - U$ = G, Lq = new YO(zXe, 0), w1e = new YO(jce, 1), b1e = new YO(Wf, 2); + U$ = G, Lq = new YO(WXe, 0), w1e = new YO(jce, 1), b1e = new YO(Wf, 2); } - function rDe(e, n) { + function cDe(e, n) { if (n.a) - throw $(new fc(SWe)); + throw $(new fc(IWe)); ki(e.a, n), n.a = e, !e.j && (e.j = n); } function iY(e) { @@ -11269,7 +11359,7 @@ function WDn() { var n; return rc(e) && (n = 0 - e, !isNaN(n)) ? n : C1(Sv(e)); } - function cDe(e, n) { + function uDe(e, n) { var t; return t = u(a3(e.e, n), 393), t ? (nV(t), t.e) : null; } @@ -11279,11 +11369,11 @@ function WDn() { } function Xvn(e) { var n; - return A1(e), n = W(Xi, Gr, 30, 0, 15, 1), Wg(e.a, new Lke(n)), n; + return A1(e), n = W(Xi, Gr, 30, 0, 15, 1), Wg(e.a, new Dke(n)), n; } - function uDe(e, n, t) { + function sDe(e, n, t) { var i; - return A1(e), i = new MP(), i.a = n, e.a.Nb(new FAe(i, t)), i.a; + return A1(e), i = new MP(), i.a = n, e.a.Nb(new RAe(i, t)), i.a; } function dc(e, n, t) { for (; t < e.c.length; ++t) @@ -11297,7 +11387,7 @@ function WDn() { function rY(e, n) { q4(); var t, i; - return t = h3(e), i = h3(n), !!t && !!i && !DBe(t.k, i.k); + return t = h3(e), i = h3(n), !!t && !!i && !N_e(t.k, i.k); } function Vvn(e, n) { return nv(), he(e, new Ar(n, ie(n.e.c.length + n.g.c.length))); @@ -11313,8 +11403,8 @@ function WDn() { } function e7(e, n) { if (n < 0) - throw $(new lu(sKe + n)); - return VPe(e, n + 1), pe(e.j, n); + throw $(new lu(oKe + n)); + return QPe(e, n + 1), pe(e.j, n); } function F6() { F6 = G, oG = new PO("XY", 0), sG = new PO("X", 1), fG = new PO("Y", 2); @@ -11323,15 +11413,15 @@ function WDn() { n7 = G, JH = new tX("INPUT_ORDER", 0), GH = new tX("PORT_DEGREE", 1); } function js(e) { - return e.b || (e.b = new PSe(e, Rr, e), !e.a && (e.a = new yy(e, e))), e.b; + return e.b || (e.b = new OSe(e, Rr, e), !e.a && (e.a = new yy(e, e))), e.b; } function Wr(e, n) { var t, i; - return t = u(n, 682), i = t.Yk(), !i && t.al(i = new EPe(e, n)), i; + return t = u(n, 682), i = t.Yk(), !i && t.al(i = new APe(e, n)), i; } function t7(e, n) { var t, i; - return t = u(n, 680), i = t.ui(), !i && t.xi(i = new zxe(e, n)), i; + return t = u(n, 680), i = t.ui(), !i && t.xi(i = new Wxe(e, n)), i; } function cN(e) { var n, t; @@ -11341,7 +11431,7 @@ function WDn() { var t; this.f = e, this.b = n, t = u(rn(e.b, n), 262), this.c = t ? t.b : null; } - function sDe() { + function oDe() { zs(), this.b = new Tn(), this.f = new Tn(), this.g = new Tn(), this.e = new Tn(); } function W$(e) { @@ -11353,30 +11443,30 @@ function WDn() { } function X$(e) { var n, t; - return t = e.length, n = W(Oo, Xh, 30, t, 15, 1), YSe(e, 0, t, n, 0), n; + return t = e.length, n = W(Oo, Xh, 30, t, 15, 1), ZSe(e, 0, t, n, 0), n; } function i7(e) { - dSe(); + bSe(); var n, t; - return n = e + 128, t = hse[n], !t && (t = hse[n] = new xke(e)), t; + return n = e + 128, t = hse[n], !t && (t = hse[n] = new $ke(e)), t; } - function oDe(e) { + function fDe(e) { return PL(e.d.a.e.g, e.b), An(e.c != e.d.a.d), e.a = e.c, e.c = e.c.a, e.a; } - function fDe(e) { + function hDe(e) { cw(!!e.c), PL(e.f.g, e.d), e.c.Qb(), e.c = null, e.b = UY(e), e.d = e.f.g; } - function hDe(e, n) { - Nse = new iA(), ZYe = n, dk = e, u(dk.b, 68), zQ(dk, Nse, null), JUe(dk); + function lDe(e, n) { + Nse = new iA(), eZe = n, dk = e, u(dk.b, 68), zQ(dk, Nse, null), GUe(dk); } function Nu() { - Nu = G, Vf = new CO("TOP", 0), ed = new CO(g5, 1), xf = new CO(Bie, 2); + Nu = G, Vf = new CO("TOP", 0), ed = new CO(g5, 1), xf = new CO(_ie, 2); } function Kl() { - Kl = G, Zj = new RO(Wf, 0), ep = new RO("TOP", 1), nm = new RO(Bie, 2); + Kl = G, Zj = new RO(Wf, 0), ep = new RO("TOP", 1), nm = new RO(_ie, 2); } function vv() { - vv = G, use = Eu(Ts, Ts, 524287), WQe = Eu(0, 0, hj), sse = WD(1), WD(2), ose = WD(0); + vv = G, use = Eu(Ts, Ts, 524287), XQe = Eu(0, 0, hj), sse = WD(1), WD(2), ose = WD(0); } function cY(e) { var n; @@ -11391,21 +11481,21 @@ function WDn() { return t = Yt(e.d, n), t >= 0 ? WM(e, t, !0, !0) : fb(e, n, !0); } function Zvn(e, n) { - Yp(u(u(e.f, 26).mf((tt(), l8)), 102)) && _Re(JV(u(e.f, 26)), n); + Yp(u(u(e.f, 26).mf((tt(), l8)), 102)) && JRe(JV(u(e.f, 26)), n); } - function lDe(e, n) { + function aDe(e, n) { Es(e, n == null || Lx((Ze(n), n)) || isNaN((Ze(n), n)) ? 0 : (Ze(n), n)); } - function aDe(e, n) { + function dDe(e, n) { As(e, n == null || Lx((Ze(n), n)) || isNaN((Ze(n), n)) ? 0 : (Ze(n), n)); } - function dDe(e, n) { + function bDe(e, n) { Y0(e, n == null || Lx((Ze(n), n)) || isNaN((Ze(n), n)) ? 0 : (Ze(n), n)); } - function bDe(e, n) { + function wDe(e, n) { Q0(e, n == null || Lx((Ze(n), n)) || isNaN((Ze(n), n)) ? 0 : (Ze(n), n)); } - function wDe(e) { + function gDe(e) { (this.q ? this.q : (ze(), ze(), El)).zc(e.q ? e.q : (ze(), ze(), El)); } function fN(e, n, t) { @@ -11418,7 +11508,7 @@ function WDn() { } function hN(e) { var n; - return e.d != e.r && (n = Uo(e), e.e = !!n && n.jk() == WVe, e.d = n), e.e; + return e.d != e.r && (n = Uo(e), e.e = !!n && n.jk() == XVe, e.d = n), e.e; } function lN(e, n) { var t; @@ -11428,15 +11518,15 @@ function WDn() { } function hh(e, n) { var t; - return t = u(rn(e.e, n), 393), t ? (H$e(e, t), t.e) : null; + return t = u(rn(e.e, n), 393), t ? (q$e(e, t), t.e) : null; } - function gDe(e) { + function pDe(e) { var n, t; return n = e / 60 | 0, t = e % 60, t == 0 ? "" + n : "" + n + ":" + ("" + t); } function cc(e, n) { var t, i; - return N1(e), i = new _Q(n, e.a), t = new wTe(i), new Ge(e, t); + return N1(e), i = new BQ(n, e.a), t = new gTe(i), new Ge(e, t); } function Aw(e, n) { var t = e.a[n], i = (NN(), GJ)[typeof t]; @@ -11472,7 +11562,7 @@ function WDn() { } } function t5n(e) { - return Pee(e, (vv(), ose)) < 0 ? -tdn(Sv(e)) : e.l + e.m * B3 + e.h * Zd; + return Pee(e, (vv(), ose)) < 0 ? -tdn(Sv(e)) : e.l + e.m * _3 + e.h * Zd; } function r7(e) { return e.__elementTypeCategory$ == null ? 10 : e.__elementTypeCategory$; @@ -11486,11 +11576,11 @@ function WDn() { function c5n(e, n, t) { return Wp(new ue(t.e.a + t.f.a / 2, t.e.b + t.f.b / 2), e) == (Ze(n), n); } - function pDe(e, n, t, i) { + function mDe(e, n, t, i) { if (!e) - throw $(new on(y9(n, I(T(Li, 1), Ve, 1, 5, [t, i])))); + throw $(new on(y9(n, I(S(Li, 1), Ve, 1, 5, [t, i])))); } - function mDe(e) { + function vDe(e) { if (!e.e) throw $(new oc()); return e.c = e.a = e.e, e.e = e.e.e, --e.d, e.a.f; @@ -11520,7 +11610,7 @@ function WDn() { e.b = t; } } - function vDe(e) { + function kDe(e) { var n; for (++e.a, n = e.c.a.length; e.a < n; ++e.a) if (e.c.b[e.a]) @@ -11531,22 +11621,22 @@ function WDn() { for (t = 0; e.e != e.i.gc(); ) Ogn(n, En(e), ie(t)), t != pt && ++t; } - function kDe(e, n) { + function yDe(e, n) { for (; n[0] < e.length && Nh(` \r `, Fu(or(e, n[0]))) >= 0; ) ++n[0]; } - function yDe(e, n, t, i) { + function jDe(e, n, t, i) { kt(), I0.call(this, 26), this.c = e, this.a = n, this.d = t, this.b = i; } function Vl(e, n, t, i, r, c, s) { pN.call(this, n, i, r, c, s), this.c = e, this.b = t; } - function jDe(e) { + function EDe(e) { this.g = e, this.f = new le(), this.a = m.Math.min(this.g.c.c, this.g.d.c); } function R6() { - R6 = G, UZe = new pwe(), zZe = new mwe(), HZe = new vwe(), qZe = new kwe(), WZe = new ywe(); + R6 = G, zZe = new mwe(), WZe = new vwe(), qZe = new kwe(), UZe = new ywe(), XZe = new jwe(); } function V$() { V$ = G, rG = new XW("EADES", 0), rI = new XW("FRUCHTERMAN_REINGOLD", 1); @@ -11554,48 +11644,48 @@ function WDn() { function c7() { c7 = G, LI = new YW("READING_DIRECTION", 0), sfe = new YW("ROTATION", 1); } - function EDe() { - EDe = G, ken = Hn((Nw(), I(T(ven, 1), ce, 371, 0, [Xj, CI, PI, II, SI]))); - } function ADe() { - ADe = G, Fin = Hn((u9(), I(T(mle, 1), ce, 328, 0, [ple, FH, RH, Bk, _k]))); + ADe = G, yen = Hn((Nw(), I(S(ken, 1), ce, 371, 0, [Xj, CI, PI, II, SI]))); } function xDe() { - xDe = G, zen = Hn((Bs(), I(T(Rfe, 1), ce, 165, 0, [iE, Mk, ha, Tk, l0]))); + xDe = G, Rin = Hn((u9(), I(S(mle, 1), ce, 328, 0, [ple, FH, RH, _k, Bk]))); } function $De() { - $De = G, Tcn = Hn((uT(), I(T(Mcn, 1), ce, 364, 0, [bq, lq, wq, aq, dq]))); + $De = G, Wen = Hn((_s(), I(S(Rfe, 1), ce, 165, 0, [iE, Mk, ha, Tk, l0]))); } function MDe() { - MDe = G, Sun = Hn((m9(), I(T(Tun, 1), ce, 369, 0, [bp, bm, c8, r8, jE]))); + MDe = G, Scn = Hn((uT(), I(S(Tcn, 1), ce, 364, 0, [bq, lq, wq, aq, dq]))); } function TDe() { - TDe = G, Dun = Hn((F7(), I(T(x1e, 1), ce, 330, 0, [j1e, _q, A1e, Jq, E1e]))); + TDe = G, Iun = Hn((m9(), I(S(Sun, 1), ce, 369, 0, [bp, bm, c8, r8, jE]))); } function SDe() { - SDe = G, FZe = Hn((zi(), I(T(noe, 1), ce, 363, 0, [$f, Al, Xc, Kc, Nr]))); + SDe = G, Nun = Hn((F7(), I(S(x1e, 1), ce, 330, 0, [j1e, Bq, A1e, Jq, E1e]))); } function IDe() { - IDe = G, Bsn = Hn((Mi(), I(T(a8, 1), ce, 86, 0, [Th, nc, Qr, Mh, Io]))); + IDe = G, RZe = Hn((zi(), I(S(noe, 1), ce, 363, 0, [$f, Al, Xc, Kc, Nr]))); } function CDe() { - CDe = G, rsn = Hn((qh(), I(T(xh, 1), ce, 160, 0, [Xe, mi, Zf, t1, aa]))); + CDe = G, Bsn = Hn((Mi(), I(S(a8, 1), ce, 86, 0, [Th, nc, Qr, Mh, Io]))); } function PDe() { - PDe = G, Ksn = Hn((E2(), I(T(g8, 1), ce, 257, 0, [ld, NE, Zde, w8, e0e]))); + PDe = G, csn = Hn((qh(), I(S(xh, 1), ce, 160, 0, [Xe, mi, Zf, t1, aa]))); } function ODe() { - ODe = G, Ysn = Hn((be(), I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an]))); + ODe = G, Vsn = Hn((E2(), I(S(g8, 1), ce, 257, 0, [ld, NE, Zde, w8, e0e]))); } - function LDe(e) { + function LDe() { + LDe = G, Zsn = Hn((be(), I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an]))); + } + function DDe(e) { var n; return n = u(y(e, (te(), Sb)), 317), n ? n.a == e : !1; } - function DDe(e) { + function NDe(e) { var n; return n = u(y(e, (te(), Sb)), 317), n ? n.i == e : !1; } - function NDe(e, n) { + function FDe(e, n) { return Ze(n), gV(e), e.d.Ob() ? (n.Ad(e.d.Pb()), !0) : !1; } function Q$(e) { @@ -11630,31 +11720,31 @@ function WDn() { for (r = new x(t); r.a < r.c.c.length; ) i = A(r), Kee(e, n, i); } - function FDe(e, n, t) { + function RDe(e, n, t) { Px.call(this), aY(this), this.a = e, this.c = t, this.b = n.d, this.f = n.e; } - function RDe(e) { + function _De(e) { this.b = new le(), this.a = new le(), this.c = new le(), this.d = new le(), this.e = e; } function BDe(e, n) { - return n == (OL(), OL(), uYe) ? e.toLocaleLowerCase() : e.toLowerCase(); + return n == (OL(), OL(), sYe) ? e.toLocaleLowerCase() : e.toLowerCase(); } function d5n(e, n) { return w3(), -Zc(u(y(e, (Ac(), lp)), 15).a, u(y(n, lp), 15).a); } function b5n() { - return cn(), I(T(gG, 1), ce, 249, 0, [si, yi, Ai, su, _c, Eh, Uj, pk]); + return cn(), I(S(gG, 1), ce, 249, 0, [si, yi, Ai, su, Bc, Eh, Uj, pk]); } function w5n() { - return Vd(), I(T(csn, 1), ce, 285, 0, [U1e, Pi, pr, gm, ur, Vt, wm, $h]); + return Vd(), I(S(usn, 1), ce, 285, 0, [U1e, Pi, pr, gm, ur, Vt, wm, $h]); } function g5n() { - return Qv(), I(T(sP, 1), ce, 244, 0, [yU, cP, uP, rP, kU, iP, tP, vU]); + return Qv(), I(S(sP, 1), ce, 244, 0, [yU, cP, uP, rP, kU, iP, tP, vU]); } function p5n() { - return $T(), I(T(Qoe, 1), ce, 275, 0, [xG, TG, AG, CG, MG, $G, IG, SG]); + return $T(), I(S(Qoe, 1), ce, 275, 0, [xG, TG, AG, CG, MG, $G, IG, SG]); } - function _De(e, n) { + function JDe(e, n) { return !!q6(e, n, Xn(gr(vl, al(Xn(gr(n == null ? 0 : Gt(n), kl)), 15)))); } function fY(e) { @@ -11666,19 +11756,19 @@ function WDn() { } function m5n(e, n) { var t; - return t = n > 0 ? n - 1 : n, hEe(oan(cNe(QK(new Lp(), t), e.n), e.j), e.k); + return t = n > 0 ? n - 1 : n, lEe(oan(uNe(QK(new Lp(), t), e.n), e.j), e.k); } function v5n(e, n, t, i) { var r; - e.j = -1, Bne(e, pne(e, n, t), (Sr(), r = u(n, 69).tk(), r.vl(i))); + e.j = -1, _ne(e, pne(e, n, t), (Sr(), r = u(n, 69).tk(), r.vl(i))); } - function JDe(e, n, t, i, r, c) { + function GDe(e, n, t, i, r, c) { var s; s = XD(i), br(s, r), Ki(s, c), Je(e.a, i, new Fx(s, n, t.f)); } function Y$(e, n) { var t; - return N1(e), t = new XIe(e, e.a.xd(), e.a.wd() | 4, n), new Ge(e, t); + return N1(e), t = new KIe(e, e.a.xd(), e.a.wd() | 4, n), new Ge(e, t); } function k5n(e, n) { var t, i; @@ -11692,7 +11782,7 @@ function WDn() { var n; cw(!!e.c), n = e.c.a, mo(e.d, e.c), e.b == e.c ? e.b = n : --e.a, e.c = null; } - function GDe(e) { + function HDe(e) { return e.a >= -0.01 && e.a <= mh && (e.a = 0), e.b >= -0.01 && e.b <= mh && (e.b = 0), e; } function d2(e) { @@ -11704,7 +11794,7 @@ function WDn() { } function y5n(e) { var n; - return n = _(H(y(e, (ae(), Ya)))), n < 0 && (n = 0, K(e, Ya, n)), n; + return n = B(H(y(e, (ae(), Ya)))), n < 0 && (n = 0, K(e, Ya, n)), n; } function j5n(e, n) { Yp(u(y(u(e.e, 9), (ae(), oi)), 102)) && (ze(), Di(u(e.e, 9).j, n)); @@ -11721,9 +11811,9 @@ function WDn() { } function A5n(e, n, t) { var i; - i = m.Math.max(0, e.b / 2 - 0.5), f9(t, i, 1), he(n, new GAe(t, i)); + i = m.Math.max(0, e.b / 2 - 0.5), f9(t, i, 1), he(n, new HAe(t, i)); } - function HDe(e, n) { + function qDe(e, n) { var t; if (t = z7(e.Ah(), n), !t) throw $(new on(V1 + n + nJ)); @@ -11743,7 +11833,7 @@ function WDn() { var t; return t = n.c, n.a.b = n.b, n.b.a = n.a, n.a = n.b = null, n.c = null, --e.b, t; } - function qDe(e) { + function UDe(e) { this.d = e, this.c = e.c.vc().Jc(), this.b = null, this.a = null, this.e = ($A(), FJ); } function V0(e) { @@ -11755,8 +11845,8 @@ function WDn() { if (0 > e || e > n) throw $(new pW("fromIndex: 0, toIndex: " + e + Cie + n)); } - function UDe(e, n) { - Pt(e, (gl(), Tq), n.f), Pt(e, tun, n.e), Pt(e, Mq, n.d), Pt(e, nun, n.c); + function zDe(e, n) { + Pt(e, (gl(), Tq), n.f), Pt(e, iun, n.e), Pt(e, Mq, n.d), Pt(e, tun, n.c); } function wu(e, n) { var t, i, r, c; @@ -11788,11 +11878,11 @@ function WDn() { var n; return n = m.Math.sqrt(e.a * e.a + e.b * e.b), n > 0 && (e.a /= n, e.b /= n), e; } - function zDe(e, n, t) { + function WDe(e, n, t) { var i, r; i = n; do - r = _(e.p[i.p]) + t, e.p[i.p] = r, i = e.a[i.p]; + r = B(e.p[i.p]) + t, e.p[i.p] = r, i = e.a[i.p]; while (i != n); } function Vs(e) { @@ -11817,10 +11907,10 @@ function WDn() { lh = G, g4 = new nL(g5, 0), Ig = new nL("HEAD", 1), p4 = new nL("TAIL", 2); } function w3() { - w3 = G, Ecn = Hh(Hh(Hh(W4(new wi(), (M3(), Wk)), (j9(), VH)), Ule), Kle); + w3 = G, Acn = Hh(Hh(Hh(W4(new wi(), (M3(), Wk)), (j9(), VH)), Ule), Kle); } function Ql() { - Ql = G, xcn = Hh(Hh(Hh(W4(new wi(), (M3(), Kk)), (j9(), Wle)), Gle), zle); + Ql = G, $cn = Hh(Hh(Hh(W4(new wi(), (M3(), Kk)), (j9(), Wle)), Gle), zle); } function b2(e, n) { return dan(H6(e, n, Xn(gr(vl, al(Xn(gr(n == null ? 0 : Gt(n), kl)), 15))))); @@ -11836,7 +11926,7 @@ function WDn() { var t; return t = Fi(kr(u(rn(e.g, n), 8)), IX(u(rn(e.f, n), 460).b)), t; } - function WDe(e, n, t) { + function XDe(e, n, t) { var i = function() { return e.apply(i, arguments); }; @@ -11852,8 +11942,8 @@ function WDn() { function eM(e) { this.b = (Jn(e), new os(e)), this.a = new le(), this.d = new le(), this.e = new er(); } - function XDe(e) { - return N1(e), e3(!0, "n may not be negative"), new Ge(e, new dNe(e.a)); + function KDe(e) { + return N1(e), e3(!0, "n may not be negative"), new Ge(e, new bNe(e.a)); } function O5n(e, n) { ze(); @@ -11863,45 +11953,45 @@ function WDn() { return new pO(i); } function L5n(e, n) { - return B1(), Zc(e.b.c.length - e.e.c.length, n.b.c.length - n.e.c.length); + return _1(), Zc(e.b.c.length - e.e.c.length, n.b.c.length - n.e.c.length); } function D5n() { - return _w(), I(T(Fr, 1), ce, 96, 0, [Sf, da, If, Pf, Sl, Yo, uo, Cf, Qo]); - } - function KDe() { - KDe = G, Hsn = Hn((fT(), I(T(zde, 1), ce, 327, 0, [aU, Hde, Ude, Jde, qde, Gde]))); + return Bw(), I(S(Fr, 1), ce, 96, 0, [Sf, da, If, Pf, Sl, Yo, uo, Cf, Qo]); } function VDe() { - VDe = G, ssn = Hn((wl(), I(T(X1e, 1), ce, 256, 0, [Wq, AE, xE, GC, _C, JC]))); + VDe = G, qsn = Hn((fT(), I(S(zde, 1), ce, 327, 0, [aU, Hde, Ude, Jde, qde, Gde]))); } function QDe() { - QDe = G, dsn = Hn((Kd(), I(T(Qq, 1), ce, 299, 0, [Vq, h8, f8, Kq, s8, o8]))); + QDe = G, osn = Hn((wl(), I(S(X1e, 1), ce, 256, 0, [Wq, AE, xE, GC, BC, JC]))); } function YDe() { - YDe = G, Qsn = Hn((ls(), I(T(KC, 1), ce, 280, 0, [dd, ba, FE, m8, p8, jm]))); + YDe = G, bsn = Hn((Kd(), I(S(Qq, 1), ce, 299, 0, [Vq, h8, f8, Kq, s8, o8]))); } function ZDe() { - ZDe = G, Vsn = Hn((Ui(), I(T(n0e, 1), ce, 102, 0, [ad, Sh, v4, k0, Il, Vc]))); + ZDe = G, Ysn = Hn((ls(), I(S(KC, 1), ce, 280, 0, [dd, ba, FE, m8, p8, jm]))); } function eNe() { - eNe = G, Fen = Hn((D7(), I(T(gfe, 1), ce, 282, 0, [FI, dfe, wfe, afe, bfe, WG]))); + eNe = G, Qsn = Hn((Ui(), I(S(n0e, 1), ce, 102, 0, [ad, Sh, v4, k0, Il, Vc]))); } function nNe() { - nNe = G, Ren = Hn((Kv(), I(T(jfe, 1), ce, 283, 0, [yk, mfe, yfe, kfe, vfe, pfe]))); + nNe = G, Ren = Hn((D7(), I(S(gfe, 1), ce, 282, 0, [FI, dfe, wfe, afe, bfe, WG]))); } function tNe() { - tNe = G, Den = Hn((lT(), I(T(ffe, 1), ce, 284, 0, [HG, GG, UG, qG, zG, DI]))); + tNe = G, _en = Hn((Kv(), I(S(jfe, 1), ce, 283, 0, [yk, mfe, yfe, kfe, vfe, pfe]))); } function iNe() { - iNe = G, Men = Hn((T3(), I(T(K5, 1), ce, 231, 0, [X5, vk, W5, og, Q2, V2]))); + iNe = G, Nen = Hn((lT(), I(S(ffe, 1), ce, 284, 0, [HG, GG, UG, qG, zG, DI]))); } function rNe() { - rNe = G, tI = (qf(), I(T(tg, 1), ce, 237, 0, [Mc, ku, Tc])).length, eG = tI; + rNe = G, Ten = Hn((T3(), I(S(K5, 1), ce, 231, 0, [X5, vk, W5, og, Q2, V2]))); } - function B6() { - B6 = G, RE = new iL(vue, 0), dU = new iL("PARENT", 1), i0e = new iL("ROOT", 2); + function cNe() { + cNe = G, tI = (qf(), I(S(tg, 1), ce, 237, 0, [Mc, ku, Tc])).length, eG = tI; + } + function _6() { + _6 = G, RE = new iL(vue, 0), dU = new iL("PARENT", 1), i0e = new iL("ROOT", 2); } - function cNe(e, n) { + function uNe(e, n) { return e.n = n, e.n ? (e.f = new le(), e.e = new le()) : (e.f = null, e.e = null), e; } function Q0(e, n) { @@ -11958,7 +12048,7 @@ function WDn() { } function yv(e, n) { var t; - t = e.F, e.F = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 5, t, n)); + t = e.F, e.F = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 5, t, n)); } function u7(e, n) { var t; @@ -11972,13 +12062,13 @@ function WDn() { var t, i, r; return t = (i = (p1(), r = new sz(), r), n && hte(i, n), i), TY(t, e), t; } - function uNe(e, n, t) { + function sNe(e, n, t) { var i; return i = Gv(t), ht(e.c, i, n), ht(e.d, n, t), ht(e.e, n, mw(n)), n; } function Pn(e, n, t, i, r, c) { var s; - return s = lD(e, n), oNe(t, s), s.i = r ? 8 : 0, s.f = i, s.e = r, s.g = c, s; + return s = lD(e, n), fNe(t, s), s.i = r ? 8 : 0, s.f = i, s.e = r, s.g = c, s; } function dY(e, n, t, i, r) { this.d = n, this.k = i, this.f = r, this.o = -1, this.p = 1, this.c = e, this.a = t; @@ -11995,17 +12085,17 @@ function WDn() { function pY(e, n, t, i, r) { this.d = n, this.j = i, this.e = r, this.o = -1, this.p = 4, this.c = e, this.a = t; } - function sNe(e, n) { + function oNe(e, n) { var t, i, r, c; for (i = n, r = 0, c = i.length; r < c; ++r) - t = i[r], rDe(e.a, t); + t = i[r], cDe(e.a, t); return e; } function vo(e) { var n, t, i, r; for (t = e, i = 0, r = t.length; i < r; ++i) n = t[i], Jn(n); - return new g$e(e); + return new p$e(e); } function mY(e) { var n; @@ -12017,9 +12107,9 @@ function WDn() { } function F5n(e) { var n = /function(?:\s+([\w$]+))?\s*\(/, t = n.exec(e); - return t && t[1] || nB; + return t && t[1] || n_; } - function oNe(e, n) { + function fNe(e, n) { if (e) { n.n = e; var t = xpn(n); @@ -12034,7 +12124,7 @@ function WDn() { var i, r; return r = e.length, i = m.Math.min(t, r), Rne(e, 0, n, 0, i, !0), n; } - function fNe(e, n, t) { + function hNe(e, n, t) { if (Cv(e, t), !e.il() && t != null && !e.dk(t)) throw $(new ZP()); return t; @@ -12043,7 +12133,7 @@ function WDn() { var t; return Ze(n), t = e[":" + n], Ty(!!t, "Enum constant undefined: " + n), t; } - function B5n(e, n) { + function _5n(e, n) { var t, i; return t = e.c, i = n.e[e.p], i > 0 ? u(pe(t.a, i - 1), 9) : null; } @@ -12052,29 +12142,29 @@ function WDn() { throw $(new on("tolerance (" + e + ") must be >= 0")); return e; } - function _6() { - return Uq || (Uq = new $qe(), k3(Uq, I(T(Q3, 1), Ve, 148, 0, [new lz()]))), Uq; + function B6() { + return Uq || (Uq = new Mqe(), k3(Uq, I(S(Q3, 1), Ve, 148, 0, [new lz()]))), Uq; } function iM() { iM = G, Lle = new qO("NO", 0), WH = new qO(Yie, 1), Ole = new qO("LOOK_BACK", 2); } function Cr() { - Cr = G, Gk = new _O(N9, 0), bs = new _O("INPUT", 1), yu = new _O("OUTPUT", 2); + Cr = G, Gk = new BO(N9, 0), bs = new BO("INPUT", 1), yu = new BO("OUTPUT", 2); } function rM() { rM = G, ife = new OO("ARD", 0), OI = new OO("MSD", 1), OG = new OO("MANUAL", 2); } - function _5n() { - return H7(), I(T(ufe, 1), ce, 267, 0, [NG, cfe, RG, BG, FG, _G, Vj, DG, LG]); + function B5n() { + return H7(), I(S(ufe, 1), ce, 267, 0, [NG, cfe, RG, _G, FG, BG, Vj, DG, LG]); } function J5n() { - return U7(), I(T(ble, 1), ce, 268, 0, [OH, lle, ale, CH, hle, dle, hC, IH, PH]); + return U7(), I(S(ble, 1), ce, 268, 0, [OH, lle, ale, CH, hle, dle, hC, IH, PH]); } function G5n() { - return Ms(), I(T(c0e, 1), ce, 266, 0, [k4, GE, VC, k8, QC, ZC, YC, bU, JE]); + return Ms(), I(S(c0e, 1), ce, 266, 0, [k4, GE, VC, k8, QC, ZC, YC, bU, JE]); } function H5n() { - bAe(); + wAe(); for (var e = PJ, n = 0; n < arguments.length; n++) e.push(arguments[n]); } @@ -12083,9 +12173,9 @@ function WDn() { for (i = n, r = 0, c = i.length; r < c; ++r) t = i[r], ti(e, t, e.c.b, e.c); } - function hNe(e, n) { + function lNe(e, n) { var t; - return N(n, 45) ? e.c.Kc(n) : (t = fF(e, n), _M(e, n), t); + return N(n, 45) ? e.c.Kc(n) : (t = fF(e, n), BM(e, n), t); } function Jr(e, n, t) { return zd(e, n), gu(e, t), Fa(e, 0), $w(e, 1), Ga(e, !0), Ja(e, !0), e; @@ -12104,9 +12194,9 @@ function WDn() { function q5n(e) { var n, t, i, r; for (t = e.a, i = 0, r = t.length; i < r; ++i) - n = t[i], ZSe(n, n.length, null); + n = t[i], eIe(n, n.length, null); } - function lNe(e, n) { + function aNe(e, n) { var t, i; for (t = 0, i = e.gc(); t < i; ++t) if (Gc(n, e.Xb(t))) @@ -12132,22 +12222,22 @@ function WDn() { function uM(e, n) { e.b = m.Math.max(e.b, n.d), e.e += n.r + (e.a.c.length == 0 ? 0 : e.c), he(e.a, n); } - function aNe(e) { + function dNe(e) { cw(e.c >= 0), Mkn(e.d, e.c) < 0 && (e.a = e.a - 1 & e.d.a.length - 1, e.b = e.d.c), e.c = -1; } - function dNe(e) { + function bNe(e) { mx.call(this, e.yd(64) ? TX(0, qo(e.xd(), 1)) : sj, e.wd()), this.b = 1, this.a = e; } - function bNe() { + function wNe() { HX.call(this), this.n = -1, this.g = null, this.i = null, this.j = null, this.Bb |= Ef; } - function wNe(e, n, t, i) { - this.$j(), this.a = n, this.b = e, this.c = null, this.c = new lTe(this, n, t, i); + function gNe(e, n, t, i) { + this.$j(), this.a = n, this.b = e, this.c = null, this.c = new aTe(this, n, t, i); } function pN(e, n, t, i, r) { this.d = e, this.n = n, this.g = t, this.o = i, this.p = -1, r || (this.o = -2 - i - 1); } - function gNe(e) { + function pNe(e) { NW(), this.g = new Tn(), this.f = new Tn(), this.b = new Tn(), this.c = new W0(), this.i = e; } function yY() { @@ -12155,12 +12245,12 @@ function WDn() { } function z5n(e) { var n, t; - for (t = new x(a_e(e)); t.a < t.c.c.length; ) + for (t = new x(dBe(e)); t.a < t.c.c.length; ) n = u(A(t), 685), n.Zf(); } function W5n(e, n) { var t, i, r; - r = n.c.i, t = u(rn(e.f, r), 60), i = t.d.c - t.e.c, wu(n.b, new N8e(i)); + r = n.c.i, t = u(rn(e.f, r), 60), i = t.d.c - t.e.c, wu(n.b, new F8e(i)); } function sM(e, n) { return aan(q6(e.a, n, Xn(gr(vl, al(Xn(gr(n == null ? 0 : Gt(n), kl)), 15))))); @@ -12169,16 +12259,13 @@ function WDn() { return w3(), u(y(n, (Ac(), lp)), 15).a < e.gc() && u(y(n, lp), 15).a >= 0; } function jY() { - jY = G, nrn = et(et(et(new wi(), (zi(), $f), (Qi(), X2)), Al, ug), Xc, cg); + jY = G, trn = et(et(et(new wi(), (zi(), $f), (Qi(), X2)), Al, ug), Xc, cg); } - function pNe() { - pNe = G, trn = et(et(et(new wi(), (zi(), $f), (Qi(), X2)), Al, ug), Xc, cg); + function mNe() { + mNe = G, irn = et(et(et(new wi(), (zi(), $f), (Qi(), X2)), Al, ug), Xc, cg); } function EY() { - EY = G, irn = et(et(et(new wi(), (zi(), $f), (Qi(), X2)), Al, ug), Xc, cg); - } - function mNe() { - mNe = G, rrn = et(et(et(new wi(), (zi(), $f), (Qi(), X2)), Al, ug), Xc, cg); + EY = G, rrn = et(et(et(new wi(), (zi(), $f), (Qi(), X2)), Al, ug), Xc, cg); } function vNe() { vNe = G, crn = et(et(et(new wi(), (zi(), $f), (Qi(), X2)), Al, ug), Xc, cg); @@ -12187,84 +12274,87 @@ function WDn() { kNe = G, urn = et(et(et(new wi(), (zi(), $f), (Qi(), X2)), Al, ug), Xc, cg); } function yNe() { - yNe = G, frn = au(et(et(new wi(), (zi(), Xc), (Qi(), vI)), Kc, bI), Nr, mI); + yNe = G, srn = et(et(et(new wi(), (zi(), $f), (Qi(), X2)), Al, ug), Xc, cg); } function jNe() { - jNe = G, XQe = I(T(Wn, 1), lt, 30, 15, [0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15]); + jNe = G, hrn = au(et(et(new wi(), (zi(), Xc), (Qi(), vI)), Kc, bI), Nr, mI); + } + function ENe() { + ENe = G, KQe = I(S(Wn, 1), lt, 30, 15, [0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15]); } function AY(e, n) { var t; - t = e.b, e.b = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 0, t, e.b)); + t = e.b, e.b = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 0, t, e.b)); } function xY(e, n) { var t; - t = e.c, e.c = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 1, t, e.c)); + t = e.c, e.c = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 1, t, e.c)); } function mN(e, n) { var t; - t = e.c, e.c = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 4, t, e.c)); + t = e.c, e.c = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 4, t, e.c)); } function $Y(e, n) { var t; - t = e.c, e.c = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 1, t, e.c)); + t = e.c, e.c = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 1, t, e.c)); } function MY(e, n) { var t; - t = e.d, e.d = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 1, t, e.d)); + t = e.d, e.d = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 1, t, e.d)); } function jv(e, n) { var t; - t = e.k, e.k = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 2, t, e.k)); + t = e.k, e.k = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 2, t, e.k)); } function vN(e, n) { var t; - t = e.D, e.D = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 2, t, e.D)); + t = e.D, e.D = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 2, t, e.D)); } function oM(e, n) { var t; - t = e.f, e.f = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 8, t, e.f)); + t = e.f, e.f = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 8, t, e.f)); } function fM(e, n) { var t; - t = e.i, e.i = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 7, t, e.i)); + t = e.i, e.i = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 7, t, e.i)); } function TY(e, n) { var t; - t = e.a, e.a = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 8, t, e.a)); + t = e.a, e.a = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 8, t, e.a)); } function SY(e, n) { var t; - t = e.b, e.b = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 0, t, e.b)); + t = e.b, e.b = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 0, t, e.b)); } function K5n(e, n, t) { var i; - e.b = n, e.a = t, i = (e.a & 512) == 512 ? new Tje() : new hz(), e.c = $Mn(i, e.b, e.a); + e.b = n, e.a = t, i = (e.a & 512) == 512 ? new Sje() : new hz(), e.c = $Mn(i, e.b, e.a); } - function ENe(e, n) { - return ia(e.e, n) ? (Sr(), hN(n) ? new Ux(n, e) : new ay(n, e)) : new Kxe(n, e); + function ANe(e, n) { + return ia(e.e, n) ? (Sr(), hN(n) ? new Ux(n, e) : new ay(n, e)) : new Vxe(n, e); } function V5n(e) { var n, t; - return 0 > e ? new LW() : (n = e + 1, t = new NOe(n, e), new hK(null, t)); + return 0 > e ? new LW() : (n = e + 1, t = new FOe(n, e), new hK(null, t)); } function Q5n(e, n) { ze(); var t; - return t = new _p(1), Hi(e) ? zr(t, e, n) : Ru(t.f, e, n), new KP(t); + return t = new Bp(1), Hi(e) ? zr(t, e, n) : Ru(t.f, e, n), new KP(t); } function Y5n(e, n) { var t; t = new iA(), u(n.b, 68), u(n.b, 68), u(n.b, 68), wu(n.a, new JK(e, t, n)); } - function ANe(e, n) { + function xNe(e, n) { var t; return N(n, 8) ? (t = u(n, 8), e.a == t.a && e.b == t.b) : !1; } function Z5n(e) { var n; - return n = y(e, (te(), $t)), N(n, 174) ? URe(u(n, 174)) : null; + return n = y(e, (te(), $t)), N(n, 174) ? zRe(u(n, 174)) : null; } - function xNe(e) { + function $Ne(e) { var n; return e = m.Math.max(e, 2), n = YY(e), e > n ? (n <<= 1, n > 0 ? n : C9) : n; } @@ -12281,27 +12371,27 @@ function WDn() { var n; return e.b == null ? (Sa(), Sa(), VE) : (n = e.sl() ? e.rl() : e.ql(), n); } - function $Ne(e, n) { + function MNe(e, n) { var t, i; for (i = n.vc().Jc(); i.Ob(); ) t = u(i.Pb(), 45), O7(e, t.jd(), t.kd()); } function CY(e, n) { var t; - t = e.d, e.d = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 11, t, e.d)); + t = e.d, e.d = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 11, t, e.d)); } function hM(e, n) { var t; - t = e.j, e.j = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 13, t, e.j)); + t = e.j, e.j = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 13, t, e.j)); } function PY(e, n) { var t; - t = e.b, e.b = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 21, t, e.b)); + t = e.b, e.b = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 21, t, e.b)); } function OY(e, n) { e.r > 0 && e.c < e.r && (e.c += n, e.i && e.i.d > 0 && e.g != 0 && OY(e.i, n / e.r * e.i.d)); } - function MNe(e, n, t) { + function TNe(e, n, t) { var i, r, c; for (c = e.a.length - 1, r = e.b, i = 0; i < t; r = r + 1 & c, ++i) ai(n, i, e.a[r]); @@ -12310,35 +12400,35 @@ function WDn() { var t; return Ze(n), t = n.g, e.b[t] ? !1 : (ai(e.b, t, n), ++e.c, !0); } - function TNe(e, n) { + function SNe(e, n) { var t; return t = n == null ? -1 : dc(e.b, n, 0), t < 0 ? !1 : (yN(e, t), !0); } function yN(e, n) { var t; - t = La(e.b, e.b.c.length - 1), n < e.b.c.length && (Ks(e.b, n, t), cGe(e, n)); + t = La(e.b, e.b.c.length - 1), n < e.b.c.length && (Ks(e.b, n, t), uGe(e, n)); } function e4n(e, n) { - (D$(), jh ? null : n.c).length == 0 && NMe(n, new $P()), zr(e.a, jh ? null : n.c, n); + (D$(), jh ? null : n.c).length == 0 && FMe(n, new $P()), zr(e.a, jh ? null : n.c, n); } function n4n(e, n) { var t, i; return t = u(y(e, (ae(), pg)), 8), i = u(y(n, pg), 8), Ct(t.b, i.b); } - function SNe(e) { - fV.call(this), this.b = _(H(y(e, (ae(), Mf)))), this.a = u(y(e, la), 222); - } function INe(e) { + fV.call(this), this.b = B(H(y(e, (ae(), Mf)))), this.a = u(y(e, la), 222); + } + function CNe(e) { this.e = e, this.d = new OA(Sw(n3(this.e).gc())), this.c = this.e.a, this.b = this.e.c; } - function CNe(e, n, t) { - pQ.call(this, e, n, t), this.a = new Tn(), this.b = new Tn(), this.d = new iye(this); + function PNe(e, n, t) { + pQ.call(this, e, n, t), this.a = new Tn(), this.b = new Tn(), this.d = new rye(this); } function t4n(e, n) { - fi(mt(new Ge(null, new He(new Fl(e.b), 1)), new yxe(e, n)), new Exe(e, n)); + fi(mt(new Ge(null, new He(new Fl(e.b), 1)), new jxe(e, n)), new Axe(e, n)); } function I1() { - I1 = G, Z3 = new It(Uie), sI = new It(VWe), wk = new It(QWe), Hj = new It(YWe); + I1 = G, Z3 = new It(Uie), sI = new It(QWe), wk = new It(YWe), Hj = new It(ZWe); } function Ev() { Ev = G, zj = new VW("TO_INTERNAL_LTR", 0), pG = new VW("TO_INPUT_DIRECTION", 1); @@ -12366,9 +12456,9 @@ function WDn() { var i; return i = new le(), dte(e, n, i, t, !0, !0), e.b = new dM(i.c.length), i; } - function PNe(e, n) { + function ONe(e, n) { var t; - return t = u(rn(e.c, n), 456), t || (t = new sje(), t.c = n, ht(e.c, t.c, t)), t; + return t = u(rn(e.c, n), 456), t || (t = new oje(), t.c = n, ht(e.c, t.c, t)), t; } function v2(e) { var n; @@ -12378,30 +12468,30 @@ function WDn() { var t, i; return t = 1 - n, i = e.a[t], e.a[t] = i.a[n], i.a[n] = e, e.b = !0, i.b = !1, i; } - function _d(e, n) { + function Bd(e, n) { var t, i; for (t = e.Nc(), pv(t, 0, t.length, n), i = 0; i < t.length; i++) e.fd(i, t[i]); } - function ONe(e) { + function LNe(e) { var n, t; for (t = e.c.a.ec().Jc(); t.Ob(); ) - n = u(t.Pb(), 218), Thn(n, new JSe(n.f)); + n = u(t.Pb(), 218), Thn(n, new GSe(n.f)); } function DY(e) { var n, t; for (t = e.c.a.ec().Jc(); t.Ob(); ) - n = u(t.Pb(), 218), Shn(n, new mJe(n.e)); + n = u(t.Pb(), 218), Shn(n, new vJe(n.e)); } - function LNe() { - this.c = new LA(0), this.b = new LA(Ace), this.d = new LA(RXe), this.a = new LA(BXe); + function DNe() { + this.c = new LA(0), this.b = new LA(Ace), this.d = new LA(_Xe), this.a = new LA(BXe); } function dM(e) { this.b = e, this.a = W(Wn, lt, 30, e + 1, 15, 1), this.c = W(Wn, lt, 30, e, 15, 1), this.d = 0; } function gu(e, n) { var t; - t = e.zb, e.zb = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 1, t, e.zb)); + t = e.zb, e.zb = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 1, t, e.zb)); } function ci(e, n) { var t, i; @@ -12413,11 +12503,11 @@ function WDn() { } function bM(e, n) { var t; - t = e.xb, e.xb = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 3, t, e.xb)); + t = e.xb, e.xb = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 3, t, e.xb)); } function wM(e, n) { var t; - t = e.yb, e.yb = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 2, t, e.yb)); + t = e.yb, e.yb = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 2, t, e.yb)); } function EN(e, n) { var t; @@ -12429,7 +12519,7 @@ function WDn() { i = r.Pb(), t = t | e.Ec(i); return t; } - function DNe(e) { + function NNe(e) { var n, t, i; for (n = 0, i = e.Jc(); i.Ob(); ) t = i.Pb(), n += t != null ? Gt(t) : 0, n = ~~n; @@ -12441,25 +12531,25 @@ function WDn() { t.hasOwnProperty(r) && (n[i++] = r); return n; } - function NNe(e) { + function FNe(e) { var n; - return e == 0 ? "UTC" : (e < 0 ? (e = -e, n = "UTC+") : n = "UTC-", n + gDe(e)); + return e == 0 ? "UTC" : (e < 0 ? (e = -e, n = "UTC+") : n = "UTC-", n + pDe(e)); } function NY(e) { - return e.a < 54 ? e.f < 0 ? -1 : e.f > 0 ? 1 : 0 : (!e.c && (e.c = _y(Cc(e.f))), e.c).e; + return e.a < 54 ? e.f < 0 ? -1 : e.f > 0 ? 1 : 0 : (!e.c && (e.c = By(Cc(e.f))), e.c).e; } - function FNe(e, n) { + function RNe(e, n) { n ? e.B == null && (e.B = e.D, e.D = null) : e.B != null && (e.D = e.B, e.B = null); } function r4n(e, n) { - n.Tg(dXe, 1), fi(cc(new Ge(null, new He(e.b, 16)), new Jwe()), new Gwe()), n.Ug(); + n.Tg(bXe, 1), fi(cc(new Ge(null, new He(e.b, 16)), new Gwe()), new Hwe()), n.Ug(); } function xN(e, n, t, i, r, c) { var s; this.c = e, s = new le(), mee(e, s, n, e.b, t, i, r, c), this.a = new Vi(s, 0); } function di(e, n, t, i, r, c, s, f, h, l, a, d, g) { - return ZJe(e, n, t, i, r, c, s, f, h, l, a, d, g), tF(e, !1), e; + return eGe(e, n, t, i, r, c, s, f, h, l, a, d, g), tF(e, !1), e; } function c4n(e, n) { typeof window === ij && typeof window.$gwt === ij && (window.$gwt[e] = n); @@ -12475,11 +12565,11 @@ function WDn() { } function o4n(e, n) { var t; - n.Tg("General Compactor", 1), t = Z9n(u(re(e, (_1(), mq)), 386)), t.Bg(e); + n.Tg("General Compactor", 1), t = Z9n(u(re(e, (B1(), mq)), 386)), t.Bg(e); } function f4n(e, n) { var t, i; - return t = u(re(e, (_1(), TC)), 15), i = u(re(n, TC), 15), Zc(t.a, i.a); + return t = u(re(e, (B1(), TC)), 15), i = u(re(n, TC), 15), Zc(t.a, i.a); } function FY(e, n, t) { var i, r; @@ -12496,25 +12586,25 @@ function WDn() { r = new Dp(), Ld(r, "x", rT(e, n, i.a)), Ld(r, "y", cT(e, n, i.b)), c3(t, r); } function a4n() { - return G1(), I(T(Ele, 1), ce, 243, 0, [dC, hE, lE, kle, yle, vle, jle, bC, s4, Jk]); + return G1(), I(S(Ele, 1), ce, 243, 0, [dC, hE, lE, kle, yle, vle, jle, bC, s4, Jk]); } function d4n() { - return Pr(), I(T(XG, 1), ce, 261, 0, [RI, So, jk, BI, Z5, Z2, Ek, Q5, Y5, _I]); + return Pr(), I(S(XG, 1), ce, 261, 0, [RI, So, jk, _I, Z5, Z2, Ek, Q5, Y5, BI]); } function $N() { - $N = G, x8 = new Eje(), xU = I(T(Uu, 1), q2, 179, 0, []), Uon = I(T(nf, 1), Jue, 62, 0, []); + $N = G, x8 = new Aje(), xU = I(S(Uu, 1), q2, 179, 0, []), zon = I(S(nf, 1), Jue, 62, 0, []); } function p3() { p3 = G, kG = new zt("edgelabelcenterednessanalysis.includelabel", (en(), Y1)); } - function RNe(e, n) { - return _(H(Ls(y7(du(new Ge(null, new He(e.c.b, 16)), new q8e(e)), n)))); + function _Ne(e, n) { + return B(H(Ls(y7(du(new Ge(null, new He(e.c.b, 16)), new U8e(e)), n)))); } function RY(e, n) { - return _(H(Ls(y7(du(new Ge(null, new He(e.c.b, 16)), new H8e(e)), n)))); + return B(H(Ls(y7(du(new Ge(null, new He(e.c.b, 16)), new q8e(e)), n)))); } function Gt(e) { - return Hi(e) ? Ra(e) : rw(e) ? Up(e) : iw(e) ? RMe(e) : dV(e) ? e.Hb() : oV(e) ? R0(e) : KV(e); + return Hi(e) ? Ra(e) : rw(e) ? Up(e) : iw(e) ? _Me(e) : dV(e) ? e.Hb() : oV(e) ? R0(e) : KV(e); } function BNe(e, n) { return rh(), pf(mh), m.Math.abs(0 - n) <= mh || n == 0 || isNaN(0) && isNaN(n) ? 0 : e / n; @@ -12526,11 +12616,11 @@ function WDn() { return Tv(), e == $b && n == rg || e == rg && n == $b || e == W2 && n == ig || e == ig && n == W2; } function ns() { - ns = G, hoe = new Twe(), ooe = new Swe(), foe = new Iwe(), soe = new Cwe(), loe = new Pwe(), aoe = new Owe(); + ns = G, hoe = new Swe(), ooe = new Iwe(), foe = new Cwe(), soe = new Pwe(), loe = new Owe(), aoe = new Lwe(); } function g4n(e) { var n; - return n = $$(e), u6(n.a, 0) ? (FA(), FA(), sYe) : (FA(), new pMe(n.b)); + return n = $$(e), u6(n.a, 0) ? (FA(), FA(), oYe) : (FA(), new mMe(n.b)); } function MN(e) { var n; @@ -12543,10 +12633,10 @@ function WDn() { function p4n(e) { return e.b.c.i.k == (cn(), Ai) ? u(y(e.b.c.i, (te(), $t)), 12) : e.b.c; } - function _Ne(e) { + function JNe(e) { return e.b.d.i.k == (cn(), Ai) ? u(y(e.b.d.i, (te(), $t)), 12) : e.b.d; } - function JNe(e) { + function GNe(e) { switch (e.g) { case 2: return be(), an; @@ -12556,7 +12646,7 @@ function WDn() { return e; } } - function GNe(e) { + function HNe(e) { switch (e.g) { case 1: return be(), Mn; @@ -12571,21 +12661,21 @@ function WDn() { return t = tne(e), One(new ue(t.c, t.d), new ue(t.b, t.a), e.Kf(), n, e.$f()); } function v4n(e, n) { - n.Tg(dXe, 1), UZ(Aan(new wA((H4(), new pD(e, !1, !1, new KU()))))), n.Ug(); + n.Tg(bXe, 1), UZ(Aan(new wA((H4(), new pD(e, !1, !1, new KU()))))), n.Ug(); } - function BY() { - BY = G, hrn = Hh(e$e(et(et(new wi(), (zi(), Xc), (Qi(), vI)), Kc, bI), Nr), mI); + function _Y() { + _Y = G, lrn = Hh(n$e(et(et(new wi(), (zi(), Xc), (Qi(), vI)), Kc, bI), Nr), mI); } - function HNe() { - HNe = G, brn = Hh(e$e(et(et(new wi(), (zi(), Xc), (Qi(), vI)), Kc, bI), Nr), mI); + function qNe() { + qNe = G, wrn = Hh(n$e(et(et(new wi(), (zi(), Xc), (Qi(), vI)), Kc, bI), Nr), mI); } - function qNe(e, n, t) { + function UNe(e, n, t) { this.g = e, this.d = n, this.e = t, this.a = new le(), fAn(this), ze(), Di(this.a, null); } function ko(e, n, t, i, r, c, s) { - _n.call(this, e, n), this.d = t, this.e = i, this.c = r, this.b = c, this.a = wf(s); + Bn.call(this, e, n), this.d = t, this.e = i, this.c = r, this.b = c, this.a = wf(s); } - function _Y(e) { + function BY(e) { this.i = e.gc(), this.i > 0 && (this.g = this.$i(this.i + (this.i / 8 | 0) + 1), e.Oc(this.g)); } function G6(e, n) { @@ -12629,7 +12719,7 @@ function WDn() { var c; return t && (c = Yt(n.Ah(), e.c), r = t.Qh(n, -1 - (c == -1 ? i : c), null, r)), r; } - function UNe(e) { + function zNe(e) { var n; if (e.b == -2) { if (e.e == 0) @@ -12642,7 +12732,7 @@ function WDn() { } function A4n(e) { var n, t, i; - return e.j == (be(), ln) && (n = zGe(e), t = Yu(n, gn), i = Yu(n, an), i || i && t); + return e.j == (be(), ln) && (n = WGe(e), t = Yu(n, gn), i = Yu(n, an), i || i && t); } function x4n(e) { var n, t, i; @@ -12666,11 +12756,11 @@ function WDn() { return n < e.b.gc() ? u(e.b.Xb(n), 9) : n == e.b.gc() ? e.a : u(pe(e.e, n - e.b.gc() - 1), 9); } function o7(e, n) { - return en(), Hi(e) ? BQ(e, zn(n)) : rw(e) ? YL(e, H(n)) : iw(e) ? mgn(e, me(n)) : e.Dd(n); + return en(), Hi(e) ? _Q(e, zn(n)) : rw(e) ? YL(e, H(n)) : iw(e) ? mgn(e, me(n)) : e.Dd(n); } function gM(e, n) { var t; - N(n, 92) ? (u(e.c, 77).Ek(), t = u(n, 92), $Ne(e, t)) : u(e.c, 77).Wb(n); + N(n, 92) ? (u(e.c, 77).Ek(), t = u(n, 92), MNe(e, t)) : u(e.c, 77).Wb(n); } function f7(e, n) { var t, i; @@ -12678,7 +12768,7 @@ function WDn() { t = u(i.Pb(), 45), n.Wd(t.jd(), t.kd()); } function li(e, n) { - _x.call(this, zon, e, n), this.b = this, this.a = xu(e.Ah(), We(this.e.Ah(), this.c)); + Bx.call(this, Won, e, n), this.b = this, this.a = xu(e.Ah(), We(this.e.Ah(), this.c)); } function Tw(e) { this.f = e, this.e = new $Q(this.f.i), this.a = this.e, this.b = UY(this), this.d = this.f.g; @@ -12692,7 +12782,7 @@ function WDn() { var r; r = e.a.length, t > r ? t = r : bn(n, t + 1), e.a = Go(e.a, 0, n) + ("" + i) + SV(e.a, t); } - function zNe(e, n, t, i) { + function WNe(e, n, t, i) { N(e.Cb, 184) && (u(e.Cb, 184).tb = null), gu(e, t), n && xAn(e, n), i && e.el(!0); } function T4n(e, n) { @@ -12706,9 +12796,9 @@ function WDn() { u(e7(e, t), 22).Fc(u(e7(n, t), 18)); return e; } - function WNe(e, n) { + function XNe(e, n) { var t; - return t = Mte(_6(), e), t ? (Pt(n, (tt(), Tg), t), !0) : !1; + return t = Mte(B6(), e), t ? (Pt(n, (tt(), Tg), t), !0) : !1; } function Jd(e, n, t) { var i, r; @@ -12718,39 +12808,39 @@ function WDn() { var t; n.Tg("Edge and layer constraint edge reversal", 1), t = rTn(e), FPn(t), n.Ug(); } - function XNe(e, n) { + function KNe(e, n) { e.a = yr(e.a, 1), e.c = m.Math.min(e.c, n), e.b = m.Math.max(e.b, n), e.d = yr(e.d, n); } function I4n() { var e; - return YJ || (YJ = new V7e(), e = new UD(""), A1n(e, (Wm(), Cse)), e4n(YJ, e)), YJ; - } - function KNe(e) { - return ow(), e.A.Gc((Js(), Cg)) && !e.B.Gc((Ms(), GE)) ? VRe(e) : null; + return YJ || (YJ = new Q7e(), e = new UD(""), A1n(e, (Wm(), Cse)), e4n(YJ, e)), YJ; } - function VNe() { - this.a = u(ge((jf(), cI)), 15).a, this.c = _(H(ge(uI))), this.b = _(H(ge(cG))); + function VNe(e) { + return ow(), e.A.Gc((Js(), Cg)) && !e.B.Gc((Ms(), GE)) ? QRe(e) : null; } function QNe() { - QNe = G, YZe = Hn((cn(), I(T(gG, 1), ce, 249, 0, [si, yi, Ai, su, _c, Eh, Uj, pk]))); + this.a = u(ge((jf(), cI)), 15).a, this.c = B(H(ge(uI))), this.b = B(H(ge(cG))); } function YNe() { - YNe = G, usn = Hn((Vd(), I(T(csn, 1), ce, 285, 0, [U1e, Pi, pr, gm, ur, Vt, wm, $h]))); + YNe = G, ZZe = Hn((cn(), I(S(gG, 1), ce, 249, 0, [si, yi, Ai, su, Bc, Eh, Uj, pk]))); } function ZNe() { - ZNe = G, Aon = Hn((Qv(), I(T(sP, 1), ce, 244, 0, [yU, cP, uP, rP, kU, iP, tP, vU]))); + ZNe = G, ssn = Hn((Vd(), I(S(usn, 1), ce, 285, 0, [U1e, Pi, pr, gm, ur, Vt, wm, $h]))); } function eFe() { - eFe = G, $en = Hn(($T(), I(T(Qoe, 1), ce, 275, 0, [xG, TG, AG, CG, MG, $G, IG, SG]))); + eFe = G, xon = Hn((Qv(), I(S(sP, 1), ce, 244, 0, [yU, cP, uP, rP, kU, iP, tP, vU]))); } function nFe() { - return j9(), I(T(ULn, 1), ce, 264, 0, [VH, Ule, Kle, Vle, Xle, qle, Qle, Gle, Wle, zle, Hle]); + nFe = G, Men = Hn(($T(), I(S(Qoe, 1), ce, 275, 0, [xG, TG, AG, CG, MG, $G, IG, SG]))); + } + function tFe() { + return j9(), I(S(ULn, 1), ce, 264, 0, [VH, Ule, Kle, Vle, Xle, qle, Qle, Gle, Wle, zle, Hle]); } function C4n(e, n, t) { return Ct(Wp(Hv(e), new ue(n.e.a, n.e.b)), Wp(Hv(e), new ue(t.e.a, t.e.b))); } function P4n(e, n, t) { - return e == (Ud(), gC) ? new s3e() : $s(n, 1) != 0 ? new jW(t.length) : new cEe(t.length); + return e == (Ud(), gC) ? new o3e() : $s(n, 1) != 0 ? new jW(t.length) : new uEe(t.length); } function yt(e, n) { var t, i, r; @@ -12760,44 +12850,44 @@ function WDn() { } function Av(e, n) { var t, i; - for (t = e, i = _i(t).e; i; ) { + for (t = e, i = Bi(t).e; i; ) { if (t = i, t == n) return !0; - i = _i(t).e; + i = Bi(t).e; } return !1; } function C1(e) { var n; - return n = e.h, n == 0 ? e.l + e.m * B3 : n == ca ? e.l + e.m * B3 - Zd : e; + return n = e.h, n == 0 ? e.l + e.m * _3 : n == ca ? e.l + e.m * _3 - Zd : e; } function O4n(e, n, t) { var i, r; return i = e.a.f[n.p], r = e.a.f[t.p], i < r ? -1 : i == r ? 0 : 1; } function Sw(e) { - return e < 3 ? (Qs(e, fWe), e + 1) : e < C9 ? dr(m.Math.ceil(e / 0.75)) : pt; + return e < 3 ? (Qs(e, hWe), e + 1) : e < C9 ? dr(m.Math.ceil(e / 0.75)) : pt; } function Cc(e) { return lj < e && e < Zd ? e < 0 ? m.Math.ceil(e) : m.Math.floor(e) : C1(C$n(e)); } - function tFe(e) { + function iFe(e) { switch (e.a.g) { case 1: - return new gxe(); + return new pxe(); case 3: - return new b_e(); + return new wBe(); default: - return new P9e(); + return new O9e(); } } - function iFe(e, n) { - e.c && (Dqe(e, n, !0), fi(new Ge(null, new He(n, 16)), new Q8e(e))), Dqe(e, n, !1); + function rFe(e, n) { + e.c && (Nqe(e, n, !0), fi(new Ge(null, new He(n, 16)), new Y8e(e))), Nqe(e, n, !1); } function L4n(e) { - $$e(); + M$e(); var n; - return SAe(KH, e) || (n = new G3e(), n.a = e, mK(KH, e, n)), u(_r(KH, e), 635); + return IAe(KH, e) || (n = new H3e(), n.a = e, mK(KH, e, n)), u(Br(KH, e), 635); } function D4n(e) { var n; @@ -12805,9 +12895,9 @@ function WDn() { throw $(new oc()); return n = e.a, e.c = n, e.a = u(Jo(e.a.e), 227), n; } - function rFe(e) { + function cFe(e) { var n; - e.d == null ? (++e.e, e.f = 0, dRe(null)) : (++e.e, n = e.d, e.d = null, e.f = 0, dRe(n)); + e.d == null ? (++e.e, e.f = 0, bRe(null)) : (++e.e, n = e.d, e.d = null, e.f = 0, bRe(n)); } function hn(e, n) { var t; @@ -12839,7 +12929,7 @@ function WDn() { } function h7(e) { var n, t, i; - for (i = 0, t = new Bp(e.a); t.a < t.c.a.length; ) + for (i = 0, t = new _p(e.a); t.a < t.c.a.length; ) n = L6(t), e.b.Gc(n) && ++i; return i; } @@ -12851,21 +12941,21 @@ function WDn() { } function l7(e) { var n; - return e < 128 ? (bSe(), n = ase[e], !n && (n = ase[e] = new $z(e)), n) : new $z(e); + return e < 128 ? (wSe(), n = ase[e], !n && (n = ase[e] = new $z(e)), n) : new $z(e); } function Ho(e) { var n, t, i, r; - return r = e, i = 0, r < 0 && (r += Zd, i = ca), t = dr(r / B3), n = dr(r - t * B3), Eu(n, t, i); + return r = e, i = 0, r < 0 && (r += Zd, i = ca), t = dr(r / _3), n = dr(r - t * _3), Eu(n, t, i); } - function cFe(e, n) { + function uFe(e, n) { var t; return t = e.a.get(n), t === void 0 ? ++e.d : (Ydn(e.a, n), --e.c, ++e.b.g), t; } function Pc(e, n) { var t; - return n && (t = n.lf(), t.dc() || (e.q ? G6(e.q, t) : e.q = new n$e(t))), e; + return n && (t = n.lf(), t.dc() || (e.q ? G6(e.q, t) : e.q = new t$e(t))), e; } - function B4n(e, n) { + function _4n(e, n) { var t, i, r; return t = n.p - e.p, t == 0 ? (i = e.f.a * e.f.b, r = n.f.a * n.f.b, Ct(i, r)) : t; } @@ -12878,7 +12968,7 @@ function WDn() { } return bQ(e, n); } - function _4n(e) { + function B4n(e) { return e.b.c.length != 0 && u(pe(e.b, 0), 70).a ? u(pe(e.b, 0), 70).a : gD(e); } function J4n(e, n) { @@ -12898,7 +12988,7 @@ function WDn() { this.b = e, this.e = n, this.d = n.j, this.f = (Sr(), u(e, 69).vk()), this.k = xu(n.e.Ah(), e); } function HY(e, n, t, i, r) { - JFe.call(this, e, t, i, r), this.f = W(xl, Wa, 9, n.a.c.length, 0, 1), ah(n.a, this.f); + GFe.call(this, e, t, i, r), this.f = W(xl, Wa, 9, n.a.c.length, 0, 1), ah(n.a, this.f); } function U6(e, n, t, i, r) { ai(e.c[n.g], t.g, i), ai(e.c[t.g], n.g, i), ai(e.b[n.g], t.g, r), ai(e.b[t.g], n.g, r); @@ -12911,23 +13001,23 @@ function WDn() { var n; return n = u(y(e, (te(), Sc)), 64), e.k == (cn(), Ai) && (n == (be(), an) || n == gn); } - function uFe() { - uFe = G, Cen = Hn((H7(), I(T(ufe, 1), ce, 267, 0, [NG, cfe, RG, BG, FG, _G, Vj, DG, LG]))); - } function sFe() { - sFe = G, Lin = Hn((U7(), I(T(ble, 1), ce, 268, 0, [OH, lle, ale, CH, hle, dle, hC, IH, PH]))); + sFe = G, Pen = Hn((H7(), I(S(ufe, 1), ce, 267, 0, [NG, cfe, RG, _G, FG, BG, Vj, DG, LG]))); } function oFe() { - oFe = G, con = Hn((Ms(), I(T(c0e, 1), ce, 266, 0, [k4, GE, VC, k8, QC, ZC, YC, bU, JE]))); + oFe = G, Din = Hn((U7(), I(S(ble, 1), ce, 268, 0, [OH, lle, ale, CH, hle, dle, hC, IH, PH]))); } function fFe() { - fFe = G, Xsn = Hn((_w(), I(T(Fr, 1), ce, 96, 0, [Sf, da, If, Pf, Sl, Yo, uo, Cf, Qo]))); + fFe = G, uon = Hn((Ms(), I(S(c0e, 1), ce, 266, 0, [k4, GE, VC, k8, QC, ZC, YC, bU, JE]))); + } + function hFe() { + hFe = G, Ksn = Hn((Bw(), I(S(Fr, 1), ce, 96, 0, [Sf, da, If, Pf, Sl, Yo, uo, Cf, Qo]))); } function $v() { $v = G, bk = new zt("debugSVG", (en(), !1)), Fse = new zt("overlapsExisted", !0); } function eb() { - eb = G, Gj = new WA("UP", 0), Jj = new WA(PB, 1), tG = new WA(_3, 2), iG = new WA(J3, 3); + eb = G, Gj = new WA("UP", 0), Jj = new WA(P_, 1), tG = new WA(B3, 2), iG = new WA(J3, 3); } function mM() { mM = G, yq = new KO(Wf, 0), qae = new KO("POLAR_COORDINATE", 1), Hae = new KO("ID", 2); @@ -12942,30 +13032,30 @@ function WDn() { kM = G, XH = new UO("OFF", 0), o4 = new UO("SINGLE_EDGE", 1), yg = new UO("MULTI_EDGE", 2); } function vf() { - vf = G, sg = new YA(g5, 0), U5 = new YA(_3, 1), z5 = new YA(J3, 2), jG = new YA("TOP", 3); + vf = G, sg = new YA(g5, 0), U5 = new YA(B3, 1), z5 = new YA(J3, 2), jG = new YA("TOP", 3); } function a7() { - a7 = G, BC = new dX("MINIMUM_SPANNING_TREE", 0), G1e = new dX("MAXIMUM_SPANNING_TREE", 1); + a7 = G, _C = new dX("MINIMUM_SPANNING_TREE", 0), G1e = new dX("MAXIMUM_SPANNING_TREE", 1); } - function hFe(e) { + function lFe(e) { e.r = new vi(), e.w = new vi(), e.t = new le(), e.i = new le(), e.d = new vi(), e.a = new zp(), e.c = new Tn(); } function d7(e) { this.n = new le(), this.e = new Dt(), this.j = new Dt(), this.k = new le(), this.f = new le(), this.p = e; } - function lFe(e) { + function aFe(e) { switch (e.g) { case 0: - return new Sve(); + return new Ive(); case 1: - return new Cve(); + return new Pve(); case 2: default: return null; } } function H4n() { - return D$(), jh ? new UD(null) : HGe(I4n(), "com.google.common.base.Strings"); + return D$(), jh ? new UD(null) : qGe(I4n(), "com.google.common.base.Strings"); } function q4n(e) { var n; @@ -12974,7 +13064,7 @@ function WDn() { throw $(new oc()); return n.Xb(n.gc() - 1); } - return ePe(e.Jc()); + return nPe(e.Jc()); } function CN(e) { var n; @@ -12982,7 +13072,7 @@ function WDn() { } function U4n(e, n, t) { var i, r, c, s; - return c = null, s = n, r = K0(s, fJ), i = new Mxe(e, t), c = (R_e(i.a, i.b, r), r), c; + return c = null, s = n, r = K0(s, fJ), i = new Txe(e, t), c = (_Be(i.a, i.b, r), r), c; } function b7(e, n) { var t, i; @@ -12992,14 +13082,14 @@ function WDn() { return t == 1 ? (!e.n && (e.n = new ne(vc, e, 1, 7)), jr(e.n, n, i)) : hne(e, n, t, i); } function z4n(e, n, t, i) { - u(t.b, 68), u(t.b, 68), u(i.b, 68), u(i.b, 68), u(i.b, 68), wu(i.a, new _K(e, n, i)); + u(t.b, 68), u(t.b, 68), u(i.b, 68), u(i.b, 68), u(i.b, 68), wu(i.a, new BK(e, n, i)); } function W4n(e, n) { e.d == (Mi(), Qr) || e.d == Io ? u(n.a, 60).c.Ec(u(n.b, 60)) : u(n.b, 60).c.Ec(u(n.a, 60)); } function yM(e, n, t) { var i, r, c, s; - s = _i(e), i = s.d, r = s.c, c = e.n, n && (c.a = c.a - i.b - r.a), t && (c.b = c.b - i.d - r.b); + s = Bi(e), i = s.d, r = s.c, c = e.n, n && (c.a = c.a - i.b - r.a), t && (c.b = c.b - i.d - r.b); } function X4n(e, n, t) { var i, r; @@ -13016,7 +13106,7 @@ function WDn() { return !1; return !0; } - function aFe(e, n) { + function dFe(e, n) { if (n == null) return !1; for (; e.a != e.b; ) @@ -13029,14 +13119,14 @@ function WDn() { } function gi(e) { var n; - return N(e, 80) ? e : (n = e && e.__java$exception, n || (n = new rRe(e), U7e(n)), n); + return N(e, 80) ? e : (n = e && e.__java$exception, n || (n = new cRe(e), z7e(n)), n); } function ON(e) { if (N(e, 193)) return u(e, 125); if (e) return null; - throw $(new Np(tVe)); + throw $(new Np(iVe)); } function K4n(e) { switch (u(y(e, (ae(), pc)), 165).g) { @@ -13056,7 +13146,7 @@ function WDn() { for (wIn(e), t = new x(e.d); t.a < t.c.c.length; ) n = u(A(t), 107), n.i && aEn(n); } - function dFe(e, n) { + function bFe(e, n) { var t, i; for (i = new x(e.b); i.a < i.c.c.length; ) t = u(A(i), 70), K(t, (te(), um), n); @@ -13078,15 +13168,15 @@ function WDn() { i = e.Ti(t), n = 31 * n + (i == null ? 0 : Gt(i)); return n; } - function bFe(e) { + function wFe(e) { var n, t; return t = (n = new FP(), n), gu(t, "T"), Dn((!e.d && (e.d = new Qu(Iu, e, 11)), e.d), t), t; } - function wFe(e, n) { + function gFe(e, n) { var t; - return t = sl(n.a.gc()), fi(Y$(new Ge(null, new He(n, 1)), e.i), new bxe(e, t)), t; + return t = sl(n.a.gc()), fi(Y$(new Ge(null, new He(n, 1)), e.i), new wxe(e, t)), t; } - function gFe(e, n, t, i) { + function pFe(e, n, t, i) { var r; return Hy(n, e.e.Pd().gc()), Hy(t, e.c.Pd().gc()), r = e.a[n][t], ai(e.a[n], t, i), r; } @@ -13094,20 +13184,20 @@ function WDn() { return r.Pm = e, r.Qm = n, r.Rm = ic, r.__elementTypeId$ = t, r.__elementTypeCategory$ = i, r; } function Z4n(e, n, t, i, r) { - return e5(), m.Math.min(cze(e, n, t, i, r), cze(t, i, e, n, Cx(new ue(r.a, r.b)))); - } - function pFe(e, n) { - return !e || !n || e == n ? !1 : lBe(e.d.c, n.d.c + n.d.b) && lBe(n.d.c, e.d.c + e.d.b); + return e5(), m.Math.min(uze(e, n, t, i, r), uze(t, i, e, n, Cx(new ue(r.a, r.b)))); } function mFe(e, n) { + return !e || !n || e == n ? !1 : a_e(e.d.c, n.d.c + n.d.b) && a_e(n.d.c, e.d.c + e.d.b); + } + function vFe(e, n) { if (!e) - throw $(new on(y9("value already present: %s", I(T(Li, 1), Ve, 1, 5, [n])))); + throw $(new on(y9("value already present: %s", I(S(Li, 1), Ve, 1, 5, [n])))); } function e6n(e, n) { var t, i, r; return t = e.l + n.l, i = e.m + n.m + (t >> 22), r = e.h + n.h + (i >> 22), Eu(t & Ts, i & Ts, r & ca); } - function vFe(e, n) { + function kFe(e, n) { var t, i, r; return t = e.l - n.l, i = e.m - n.m + (t >> 22), r = e.h - n.h + (i >> 22), Eu(t & Ts, i & Ts, r & ca); } @@ -13121,9 +13211,9 @@ function WDn() { var n; Ua(e, !0), n = za, Et(e, (ae(), r4)) && (n += u(y(e, r4), 15).a), K(e, r4, ie(n)); } - function kFe(e, n, t) { + function yFe(e, n, t) { var i; - Fc(e.a), wu(t.i, new Hye(e)), i = new yx(u(rn(e.a, n.b), 68)), pBe(e, i, n), t.f = i; + Fc(e.a), wu(t.i, new qye(e)), i = new yx(u(rn(e.a, n.b), 68)), m_e(e, i, n), t.f = i; } function WY(e) { var n, t; @@ -13133,7 +13223,7 @@ function WDn() { var t, i; if (i = 0, e < 64 && e <= n) for (n = n < 64 ? n : 63, t = e; t <= n; t++) - i = Bh(i, hl(1, t)); + i = _h(i, hl(1, t)); return i; } function t6n(e, n) { @@ -13151,7 +13241,7 @@ function WDn() { } nR(e, n); } - function yFe(e) { + function jFe(e) { switch (e.g) { case 1: return hd; @@ -13172,45 +13262,45 @@ function WDn() { } function i6n(e) { var n; - return n = new vn(), n.a = e, n.b = f6n(e), n.c = W(ke, oe, 2, 2, 6, 1), n.c[0] = NNe(e), n.c[1] = NNe(e), n; + return n = new vn(), n.a = e, n.b = f6n(e), n.c = W(ye, fe, 2, 2, 6, 1), n.c[0] = FNe(e), n.c[1] = FNe(e), n; } function jM() { - jM = G, yG = new QA(Wf, 0), MI = new QA(gXe, 1), TI = new QA(pXe, 2), Wj = new QA("BOTH", 3); + jM = G, yG = new QA(Wf, 0), MI = new QA(pXe, 1), TI = new QA(mXe, 2), Wj = new QA("BOTH", 3); } function Tv() { Tv = G, $b = new KA("Q1", 0), rg = new KA("Q4", 1), ig = new KA("Q2", 2), W2 = new KA("Q3", 3); } function P1() { - P1 = G, Yj = new FO("ONLY_WITHIN_GROUP", 0), Efe = new FO(RB, 1), fg = new FO("ENFORCED", 2); + P1 = G, Yj = new FO("ONLY_WITHIN_GROUP", 0), Efe = new FO(R_, 1), fg = new FO("ENFORCED", 2); } function Hd() { Hd = G, JG = new DO(Wf, 0), V5 = new DO("INCOMING_ONLY", 1), Y2 = new DO("OUTGOING_ONLY", 2); } function v3() { - v3 = G, esn = new Nve(), Zun = new Fve(); + v3 = G, nsn = new Fve(), esn = new Rve(); } function NN() { - NN = G, GJ = { boolean: van, number: Cln, string: Pln, object: tGe, function: tGe, undefined: hln }; - } - function jFe() { - jFe = G, Rin = Hn((G1(), I(T(Ele, 1), ce, 243, 0, [dC, hE, lE, kle, yle, vle, jle, bC, s4, Jk]))); + NN = G, GJ = { boolean: van, number: Cln, string: Pln, object: iGe, function: iGe, undefined: hln }; } function EFe() { - EFe = G, Ben = Hn((Pr(), I(T(XG, 1), ce, 261, 0, [RI, So, jk, BI, Z5, Z2, Ek, Q5, Y5, _I]))); + EFe = G, _in = Hn((G1(), I(S(Ele, 1), ce, 243, 0, [dC, hE, lE, kle, yle, vle, jle, bC, s4, Jk]))); + } + function AFe() { + AFe = G, Ben = Hn((Pr(), I(S(XG, 1), ce, 261, 0, [RI, So, jk, _I, Z5, Z2, Ek, Q5, Y5, BI]))); } function r6n(e, n, t, i) { - return new GW(I(T(s0, 1), JT, 45, 0, [(SF(e, n), new O0(e, n)), (SF(t, i), new O0(t, i))])); + return new GW(I(S(s0, 1), JT, 45, 0, [(SF(e, n), new O0(e, n)), (SF(t, i), new O0(t, i))])); } function c6n(e, n) { var t, i; - return t = u(u(rn(e.g, n.a), 49).a, 68), i = u(u(rn(e.g, n.b), 49).a, 68), aUe(t, i); + return t = u(u(rn(e.g, n.a), 49).a, 68), i = u(u(rn(e.g, n.b), 49).a, 68), dUe(t, i); } function VY(e, n, t) { var i; if (i = e.gc(), n > i) throw $(new hw(n, i)); - return e.Qi() && (t = LCe(e, t)), e.Ci(n, t); + return e.Qi() && (t = DCe(e, t)), e.Ci(n, t); } - function AFe(e) { + function xFe(e) { var n, t, i; return t = e.n, i = e.o, n = e.d, new df(t.a - n.b, t.b - n.d, i.a + (n.b + n.c), i.b + (n.d + n.a)); } @@ -13241,18 +13331,18 @@ function WDn() { function K(e, n, t) { return t == null ? (!e.q && (e.q = new Tn()), a3(e.q, n)) : (!e.q && (e.q = new Tn()), ht(e.q, n, t)), e; } - function xFe(e) { + function $Fe(e) { var n, t; return t = new F$(), Pc(t, e), K(t, (I1(), Z3), e), n = new Tn(), eIn(e, t, n), CPn(e, t, n), t; } function s6n(e) { e5(); var n, t, i; - for (t = W(Ji, oe, 8, 2, 0, 1), i = 0, n = 0; n < 2; n++) - i += 0.5, t[n] = _8n(i, e); + for (t = W(Ji, fe, 8, 2, 0, 1), i = 0, n = 0; n < 2; n++) + i += 0.5, t[n] = B8n(i, e); return t; } - function $Fe(e, n) { + function MFe(e, n) { var t, i, r, c; for (t = !1, i = e.a[n].length, c = 0; c < i - 1; c++) r = c + 1, t = t | jkn(e, n, c, r); @@ -13261,13 +13351,13 @@ function WDn() { function o6n(e) { var n, t, i, r; for (t = e.a, i = 0, r = t.length; i < r; ++i) - n = t[i], CFe(e, n, (be(), Mn)), CFe(e, n, ln); + n = t[i], PFe(e, n, (be(), Mn)), PFe(e, n, ln); } function Sv(e) { var n, t, i; return n = ~e.l + 1 & Ts, t = ~e.m + (n == 0 ? 1 : 0) & Ts, i = ~e.h + (n == 0 && t == 0 ? 1 : 0) & ca, Eu(n, t, i); } - function MFe(e) { + function TFe(e) { var n, t; return n = e.t - e.k[e.o.p] * e.d + e.j[e.o.p] > e.f, t = e.u + e.e[e.o.p] * e.d > e.f * e.s * e.d, n || t; } @@ -13286,9 +13376,9 @@ function WDn() { } function f6n(e) { var n; - return e == 0 ? "Etc/GMT" : (e < 0 ? (e = -e, n = "Etc/GMT-") : n = "Etc/GMT+", n + gDe(e)); + return e == 0 ? "Etc/GMT" : (e < 0 ? (e = -e, n = "Etc/GMT-") : n = "Etc/GMT+", n + pDe(e)); } - function TFe(e) { + function SFe(e) { var n, t; return t = J7(e.h), t == 32 ? (n = J7(e.m), n == 32 ? J7(e.l) + 32 : n + 20 - 10) : t - 12; } @@ -13306,15 +13396,15 @@ function WDn() { function eZ(e, n) { this.c = e, this.d = n, this.b = this.d / this.c.c.Pd().gc() | 0, this.a = this.d % this.c.c.Pd().gc(); } - function SFe(e, n) { + function IFe(e, n) { this.b = e, Zg.call(this, (u(F(ee((E1(), tn).o), 10), 19), n.i), n.g), this.a = ($N(), xU); } function nZ(e, n, t) { this.q = new m.Date(), this.q.setFullYear(e + z1, n, t), this.q.setHours(0, 0, 0, 0), A9(this, 0); } - function IFe(e, n, t) { + function CFe(e, n, t) { var i, r; - return i = new nN(n, t), r = new T0(), e.b = KHe(e, e.b, i, r), r.b || ++e.c, e.b.b = !1, r.d; + return i = new nN(n, t), r = new T0(), e.b = VHe(e, e.b, i, r), r.b || ++e.c, e.b.b = !1, r.d; } function tZ(e, n) { ze(); @@ -13328,7 +13418,7 @@ function WDn() { if (s = e.length, c = t.length, n < 0 || i < 0 || r < 0 || n + r > s || i + r > c) throw $(new zz()); } - function CFe(e, n, t) { + function PFe(e, n, t) { var i, r, c, s; for (s = Y6(n, t), c = 0, r = s.Jc(); r.Ob(); ) i = u(r.Pb(), 12), ht(e.c, i, ie(c++)); @@ -13355,30 +13445,30 @@ function WDn() { t = i[r], n.a += t.a, n.b += t.b; return n; } - function PFe(e, n, t) { + function OFe(e, n, t) { var i; return i = new le(), dte(e, n, i, (be(), gn), !0, !1), dte(e, t, i, an, !1, !1), i; } - function BN(e, n, t) { + function _N(e, n, t) { var i, r, c, s; - return c = null, s = n, r = K0(s, "labels"), i = new Fxe(e, t), c = (rHe(i.a, i.b, r), r), c; + return c = null, s = n, r = K0(s, "labels"), i = new Rxe(e, t), c = (cHe(i.a, i.b, r), r), c; } - function OFe(e, n) { + function LFe(e, n) { return Wp(Hv(u(y(n, (Ac(), Fb)), 86)), new ue(e.c.e.a - e.b.e.a, e.c.e.b - e.b.e.b)) <= 0; } function a6n(e, n, t) { - return !Hm(mt(new Ge(null, new He(e.c, 16)), new Dm(new jxe(n, t)))).zd((Ad(), V3)); + return !Hm(mt(new Ge(null, new He(e.c, 16)), new Dm(new Exe(n, t)))).zd((Ad(), V3)); } function Iv() { - Iv = G, Koe = new f2e(), Voe = new h2e(), aen = new l2e(), len = new a2e(), hen = new d2e(), Xoe = (Ze(hen), new kc()); + Iv = G, Koe = new h2e(), Voe = new l2e(), den = new a2e(), aen = new d2e(), len = new b2e(), Xoe = (Ze(len), new kc()); } function d6n(e, n) { switch (n.g) { case 0: - N(e.b, 631) || (e.b = new VNe()); + N(e.b, 631) || (e.b = new QNe()); break; case 1: - N(e.b, 632) || (e.b = new VTe()); + N(e.b, 632) || (e.b = new QTe()); } } function iZ(e, n) { @@ -13390,17 +13480,17 @@ function WDn() { } return zZ(e, n); } - function LFe(e, n) { + function DFe(e, n) { for (; e.g == null && !e.c ? tQ(e) : e.g == null || e.i != 0 && u(e.g[e.i - 1], 50).Ob(); ) n.Bi(gT(e)); } - function DFe(e, n) { + function NFe(e, n) { Ty(e >= 0, "Negative initial capacity"), Ty(n >= 0, "Non-positive load factor"), Fc(this); } - function NFe(e, n) { + function FFe(e, n) { var t; for (t = 0; t < e.a.a.length; t++) - if (!u(vSe(e.a, t), 178).Lb(n)) + if (!u(kSe(e.a, t), 178).Lb(n)) return !1; return !0; } @@ -13416,16 +13506,16 @@ function WDn() { var c; return c = Wne(e, n), t && RN(c), r && (e = z8n(e, n), i ? Q1 = Sv(e) : Q1 = Eu(e.l, e.m, e.h)), c; } - function FFe(e, n, t) { - e.g = tR(e, n, (be(), gn), e.b), e.d = tR(e, t, gn, e.b), !(e.g.c == 0 || e.d.c == 0) && vJe(e); - } function RFe(e, n, t) { - e.g = tR(e, n, (be(), an), e.j), e.d = tR(e, t, an, e.j), !(e.g.c == 0 || e.d.c == 0) && vJe(e); + e.g = tR(e, n, (be(), gn), e.b), e.d = tR(e, t, gn, e.b), !(e.g.c == 0 || e.d.c == 0) && kJe(e); + } + function _Fe(e, n, t) { + e.g = tR(e, n, (be(), an), e.j), e.d = tR(e, t, an, e.j), !(e.g.c == 0 || e.d.c == 0) && kJe(e); } function p6n(e, n, t) { if (Jn(n), t.Ob()) - for (vX(n, pIe(t.Pb())); t.Ob(); ) - vX(n, e.a), vX(n, pIe(t.Pb())); + for (vX(n, mIe(t.Pb())); t.Ob(); ) + vX(n, e.a), vX(n, mIe(t.Pb())); return n; } function rZ(e) { @@ -13445,7 +13535,7 @@ function WDn() { var n, t; for (t = new x(e.a.b); t.a < t.c.c.length; ) n = u(A(t), 82), n.f.$b(); - $ln(e.b, e), FHe(e); + $ln(e.b, e), RHe(e); } function Zl(e) { var n; @@ -13463,15 +13553,15 @@ function WDn() { function BFe(e) { switch (e.g) { case 0: - return new Dve(); + return new Nve(); default: throw $(new on(AS + (e.f != null ? e.f : "" + e.g))); } } - function _Fe(e) { + function JFe(e) { switch (e.g) { case 0: - return new Lve(); + return new Dve(); default: throw $(new on(AS + (e.f != null ? e.f : "" + e.g))); } @@ -13484,13 +13574,13 @@ function WDn() { } rR(e, n, t); } - function _N(e, n, t) { + function BN(e, n, t) { this.g = e, this.e = new er(), this.f = new er(), this.d = new Dt(), this.b = new Dt(), this.a = n, this.c = t; } function JN(e, n, t, i) { this.b = new le(), this.n = new le(), this.i = i, this.j = t, this.s = e, this.t = n, this.r = 0, this.d = 0; } - function JFe(e, n, t, i) { + function GFe(e, n, t, i) { this.b = new Tn(), this.g = new Tn(), this.d = (V6(), lC), this.c = e, this.e = n, this.d = t, this.a = i; } function Cv(e, n) { @@ -13501,7 +13591,7 @@ function WDn() { function oZ(e) { switch (e.g) { case 1: - return RXe; + return _Xe; default: case 2: return 0; @@ -13512,7 +13602,7 @@ function WDn() { } } function v6n(e) { - return he(e.c, (v3(), esn)), hY(e.a, _(H(ge((oF(), fC))))) ? new v5e() : new Kye(e); + return he(e.c, (v3(), nsn)), hY(e.a, B(H(ge((oF(), fC))))) ? new k5e() : new Vye(e); } function k6n(e) { for (; !e.d || !e.d.Ob(); ) @@ -13530,13 +13620,13 @@ function WDn() { } function y6n(e) { var n, t; - n = u(y(e, (te(), ds)), 9), n && (t = n.c, Du(t.a, n), t.a.c.length == 0 && Du(_i(n).b, t)); + n = u(y(e, (te(), ds)), 9), n && (t = n.c, Du(t.a, n), t.a.c.length == 0 && Du(Bi(n).b, t)); } function j6n(e, n) { var t, i; return t = u(re(e, (gh(), kE)), 15).a, i = u(re(n, kE), 15).a, t == i || t < i ? -1 : t > i ? 1 : 0; } - function GFe(e, n) { + function HFe(e, n) { var t, i, r; for (r = e.b; r; ) { if (t = e.a.Le(n, r.d), t == 0) @@ -13550,19 +13640,19 @@ function WDn() { return n === e ? !0 : N(n, 229) ? (t = u(n, 229), jt(e.Zb(), t.Zb())) : !1; } function fZ(e, n) { - return OHe(e, n) ? (Je(e.b, u(y(n, (te(), fa)), 22), n), rt(e.a, n), !0) : !1; + return LHe(e, n) ? (Je(e.b, u(y(n, (te(), fa)), 22), n), rt(e.a, n), !0) : !1; } function E6n(e, n) { - return Et(e, (te(), _t)) && Et(n, _t) ? u(y(n, _t), 15).a - u(y(e, _t), 15).a : 0; + return Et(e, (te(), Bt)) && Et(n, Bt) ? u(y(n, Bt), 15).a - u(y(e, Bt), 15).a : 0; } function A6n(e, n) { - return Et(e, (te(), _t)) && Et(n, _t) ? u(y(e, _t), 15).a - u(y(n, _t), 15).a : 0; + return Et(e, (te(), Bt)) && Et(n, Bt) ? u(y(e, Bt), 15).a - u(y(n, Bt), 15).a : 0; } - function HFe(e) { - return jh ? W(hYe, xWe, 567, 0, 0, 1) : u(ah(e.a, W(hYe, xWe, 567, e.a.c.length, 0, 1)), 840); + function qFe(e) { + return jh ? W(lYe, $We, 567, 0, 0, 1) : u(ah(e.a, W(lYe, $We, 567, e.a.c.length, 0, 1)), 840); } function Rs(e) { - return Hi(e) ? ke : rw(e) ? Ei : iw(e) ? ui : dV(e) || oV(e) ? e.Pm : e.Pm || Array.isArray(e) && T(GQe, 1) || GQe; + return Hi(e) ? ye : rw(e) ? Ei : iw(e) ? ui : dV(e) || oV(e) ? e.Pm : e.Pm || Array.isArray(e) && S(HQe, 1) || HQe; } function k2(e, n, t) { var i, r; @@ -13570,19 +13660,19 @@ function WDn() { } function HN(e) { var n, t, i, r; - for (r = Dan(yon, e), t = r.length, i = W(ke, oe, 2, t, 6, 1), n = 0; n < t; ++n) + for (r = Dan(jon, e), t = r.length, i = W(ye, fe, 2, t, 6, 1), n = 0; n < t; ++n) i[n] = r[n]; return i; } function k3(e, n) { var t, i, r, c, s; for (i = n, r = 0, c = i.length; r < c; ++r) - t = i[r], s = new aIe(e), t.tf(s), aIn(s); + t = i[r], s = new dIe(e), t.tf(s), aIn(s); Fc(e.f); } function hZ(e, n) { var t; - n * 2 + 1 >= e.b.c.length || (hZ(e, 2 * n + 1), t = 2 * n + 2, t < e.b.c.length && hZ(e, t), cGe(e, n)); + n * 2 + 1 >= e.b.c.length || (hZ(e, 2 * n + 1), t = 2 * n + 2, t < e.b.c.length && hZ(e, t), uGe(e, n)); } function x6n(e, n) { var t, i; @@ -13610,12 +13700,12 @@ function WDn() { return e.Yl(); } } - function qFe(e, n, t) { + function UFe(e, n, t) { return e.d[n.p][t.p] || (k8n(e, n, t), e.d[n.p][t.p] = !0, e.d[t.p][n.p] = !0), e.a[n.p][t.p]; } - function UFe(e, n, t) { + function zFe(e, n, t) { var i, r; - this.g = e, this.c = n, this.a = this, this.d = this, r = xNe(t), i = W(_Qe, oj, 227, r, 0, 1), this.b = i; + this.g = e, this.c = n, this.a = this, this.d = this, r = $Ne(t), i = W(JQe, oj, 227, r, 0, 1), this.b = i; } function M6n(e, n) { var t, i; @@ -13624,7 +13714,7 @@ function WDn() { return !0; return !1; } - function zFe(e, n, t) { + function WFe(e, n, t) { var i, r, c, s; for (Ze(t), s = !1, c = e.dd(n), r = t.Jc(); r.Ob(); ) i = r.Pb(), c.Rb(i), s = !0; @@ -13634,7 +13724,7 @@ function WDn() { var t, i; return i = u(hn(e.a, 4), 129), t = W(EU, mJ, 415, n, 0, 1), i != null && zc(i, 0, t, 0, i.length), t; } - function WFe(e, n) { + function XFe(e, n) { var t; return t = new pR((e.f & 256) != 0, e.i, e.a, e.d, (e.f & 16) != 0, e.j, e.g, n), e.e != null || (t.c = e), t; } @@ -13642,7 +13732,7 @@ function WDn() { var t; return e === n ? !0 : N(n, 92) ? (t = u(n, 92), dne(Td(e), t.vc())) : !1; } - function XFe(e, n, t) { + function KFe(e, n, t) { var i, r; for (r = t.Jc(); r.Ob(); ) if (i = u(r.Pb(), 45), e.ze(n, i.kd())) @@ -13653,7 +13743,7 @@ function WDn() { EM = G, pU = new ax("ELK", 0), g0e = new ax("JSON", 1), w0e = new ax("DOT", 2), p0e = new ax("SVG", 3); } function W6() { - W6 = G, fq = new rx(RB, 0), xC = new rx(GXe, 1), oq = new rx("FAN", 2), sq = new rx("CONSTRAINT", 3); + W6 = G, fq = new rx(R_, 0), xC = new rx(HXe, 1), oq = new rx("FAN", 2), sq = new rx("CONSTRAINT", 3); } function X6() { X6 = G, Yle = new WO(Wf, 0), QH = new WO("MIDDLE_TO_MIDDLE", 1), wE = new WO("AVOID_OVERLAP", 2); @@ -13665,20 +13755,20 @@ function WDn() { K6 = G, UH = new GO("STACKED", 0), qH = new GO("REVERSE_STACKED", 1), aE = new GO("SEQUENCED", 2); } function yo() { - yo = G, Pse = new TO("CONCURRENT", 0), _u = new TO("IDENTITY_FINISH", 1), Ose = new TO("UNORDERED", 2); + yo = G, Pse = new TO("CONCURRENT", 0), Bu = new TO("IDENTITY_FINISH", 1), Ose = new TO("UNORDERED", 2); } function ea() { ea = G, XC = new tL(vue, 0), r1 = new tL("INCLUDE_CHILDREN", 1), b8 = new tL("SEPARATE_CHILDREN", 2); } function AM() { - AM = G, Qde = new N0(15), qsn = new nr((tt(), Ml), Qde), d8 = mm, Wde = wsn, Xde = v0, Vde = mp, Kde = $g; + AM = G, Qde = new N0(15), Usn = new nr((tt(), Ml), Qde), d8 = mm, Wde = gsn, Xde = v0, Vde = mp, Kde = $g; } function zN() { - zN = G, lG = MCe(I(T(a8, 1), ce, 86, 0, [(Mi(), Qr), nc])), aG = MCe(I(T(a8, 1), ce, 86, 0, [Io, Mh])); + zN = G, lG = TCe(I(S(a8, 1), ce, 86, 0, [(Mi(), Qr), nc])), aG = TCe(I(S(a8, 1), ce, 86, 0, [Io, Mh])); } function S6n(e) { var n, t, i; - for (n = 0, i = W(Ji, oe, 8, e.b, 0, 1), t = Nn(e, 0); t.b != t.d.c; ) + for (n = 0, i = W(Ji, fe, 8, e.b, 0, 1), t = Nn(e, 0); t.b != t.d.c; ) i[n++] = u(Ln(t), 8); return i; } @@ -13686,11 +13776,11 @@ function WDn() { var i, r, c; for (i = new Dt(), c = Nn(t, 0); c.b != c.d.c; ) r = u(Ln(c), 8), rt(i, new vr(r)); - zFe(e, n, i); + WFe(e, n, i); } function I6n(e, n) { var t; - t = ge((oF(), fC)) != null && n.Rg() != null ? _(H(n.Rg())) / _(H(ge(fC))) : 1, ht(e.b, n, t); + t = ge((oF(), fC)) != null && n.Rg() != null ? B(H(n.Rg())) / B(H(ge(fC))) : 1, ht(e.b, n, t); } function C6n(e, n) { var t, i; @@ -13706,27 +13796,27 @@ function WDn() { var n; if (n = e.a.c.length, n > 0) return rv(n - 1, e.a.c.length), La(e.a, n - 1); - throw $(new W7e()); + throw $(new X7e()); } function P6n(e, n, t) { if (n < 0) - throw $(new lu(sKe + n)); - n < e.j.c.length ? Ks(e.j, n, t) : (VPe(e, n), he(e.j, t)); + throw $(new lu(oKe + n)); + n < e.j.c.length ? Ks(e.j, n, t) : (QPe(e, n), he(e.j, t)); } - function KFe(e, n, t) { + function VFe(e, n, t) { if (e > n) - throw $(new on(zT + e + $We + n)); + throw $(new on(zT + e + MWe + n)); if (e < 0 || n > t) throw $(new pW(zT + e + Lie + n + Cie + t)); } - function VFe(e) { + function QFe(e) { if (!e.a || (e.a.i & 8) == 0) throw $(new qr("Enumeration class expected for layout option " + e.f)); } - function QFe(e) { - PCe.call(this, "The given string does not match the expected format for individual spacings.", e); - } function YFe(e) { + OCe.call(this, "The given string does not match the expected format for individual spacings.", e); + } + function ZFe(e) { switch (e.i) { case -2: return !0; @@ -13738,17 +13828,17 @@ function WDn() { return e.Zl(); } } - function Ba(e) { + function _a(e) { switch (e.c) { case 0: return HL(), tse; case 1: - return new Ip(hGe(new Bp(e))); + return new Ip(lGe(new _p(e))); default: - return new _je(e); + return new Jje(e); } } - function ZFe(e) { + function eRe(e) { switch (e.gc()) { case 0: return HL(), tse; @@ -13796,7 +13886,7 @@ function WDn() { var n, t; if (e == null) return null; for (n = 0, t = e.length; n < t; n++) - if (!UTe(e[n])) return e[n]; + if (!zTe(e[n])) return e[n]; return null; } function xM(e) { @@ -13811,7 +13901,7 @@ function WDn() { t = i[r], n[":" + (t.f != null ? t.f : "" + t.g)] = t; return n; } - function eRe(e, n, t) { + function nRe(e, n, t) { var i, r, c, s; for (r = t, c = 0, s = r.length; c < s; ++c) if (i = r[c], e.b.ze(n, i.jd())) @@ -13824,7 +13914,7 @@ function WDn() { function $M(e, n) { return !e || n && !e.k || N(e, 127) && u(e, 127).a.a == 0 ? 0 : e.gf(); } - function nRe(e, n) { + function tRe(e, n) { var t, i, r; t = e, r = 0; do { @@ -13832,19 +13922,19 @@ function WDn() { return r; if (i = t.e, !i) throw $(new H8()); - t = _i(i), ++r; + t = Bi(i), ++r; } while (!0); } - function tRe(e) { + function iRe(e) { var n, t, i; - for (i = 0, t = new fn(dn(e.a.Jc(), new Q())); xn(t); ) + for (i = 0, t = new fn(dn(e.a.Jc(), new Y())); xn(t); ) n = u(pn(t), 17), n.c.i == n.d.i || ++i; return i; } - function iRe(e, n) { + function rRe(e, n) { var t, i, r; for (r = n - e.f, i = new x(e.d); i.a < i.c.c.length; ) - t = u(A(i), 319), iBe(t, t.e, t.f + r); + t = u(A(i), 319), r_e(t, t.e, t.f + r); e.f = n; } function F6n(e) { @@ -13853,20 +13943,20 @@ function WDn() { pn(e); return n; } - function rRe(e) { - Wje(), jx(this), b$(this), this.e = e, qHe(this, e), this.g = e == null ? Bu : uc(e), this.a = "", this.b = e, this.a = ""; + function cRe(e) { + Xje(), jx(this), b$(this), this.e = e, UHe(this, e), this.g = e == null ? _u : uc(e), this.a = "", this.b = e, this.a = ""; } function gZ() { - this.a = new Pve(), this.f = new Nye(this), this.b = new Fye(this), this.i = new Rye(this), this.e = new Bye(this); + this.a = new Ove(), this.f = new Fye(this), this.b = new Rye(this), this.i = new _ye(this), this.e = new Bye(this); } - function cRe() { - Aln.call(this, new WQ(Sw(16))), Qs(2, cWe), this.b = 2, this.a = new RV(null, null, 0, null), G8(this.a, this.a); + function uRe() { + Aln.call(this, new WQ(Sw(16))), Qs(2, uWe), this.b = 2, this.a = new RV(null, null, 0, null), G8(this.a, this.a); } function Ud() { - Ud = G, dE = new tx("BARYCENTER", 0), qk = new tx(bXe, 1), gC = new tx(wXe, 2), wC = new tx("MEDIAN", 3); + Ud = G, dE = new tx("BARYCENTER", 0), qk = new tx(wXe, 1), gC = new tx(gXe, 2), wC = new tx("MEDIAN", 3); } function V6() { - V6 = G, LH = new BO("DUMMY_NODE_OVER", 0), wle = new BO("DUMMY_NODE_UNDER", 1), lC = new BO("EQUAL", 2); + V6 = G, LH = new _O("DUMMY_NODE_OVER", 0), wle = new _O("DUMMY_NODE_UNDER", 1), lC = new _O("EQUAL", 2); } function Ov() { Ov = G, zH = new HO("CONSERVATIVE", 0), Cle = new HO("CONSERVATIVE_SOFT", 1), Hk = new HO("SLOPPY", 2); @@ -13878,25 +13968,25 @@ function WDn() { return n; return null; } - function uRe(e, n) { + function sRe(e, n) { var t; for (t = 0; t < n.length; t++) if (e == (bn(t, n.length), n.charCodeAt(t))) return !0; return !1; } - function B6n(e, n) { + function _6n(e, n) { return n < e.length && (bn(n, e.length), e.charCodeAt(n) != 63) && (bn(n, e.length), e.charCodeAt(n) != 35); } - function sRe(e, n, t, i) { + function oRe(e, n, t, i) { var r, c; - e.a = n, c = i ? 0 : 1, e.f = (r = new LJe(e.c, e.a, t, c), new wqe(t, e.a, r, e.e, e.b, e.c == (Ud(), qk))); + e.a = n, c = i ? 0 : 1, e.f = (r = new DJe(e.c, e.a, t, c), new gqe(t, e.a, r, e.e, e.b, e.c == (Ud(), qk))); } function zd(e, n) { var t, i, r; i = e.Wk(n, null), r = null, n && (r = (Gm(), t = new C0(), t), kv(r, e.r)), i = bh(e, r, i), i && i.mj(); } - function _6n(e, n) { + function B6n(e, n) { var t, i; for (i = $s(e.d, 1) != 0, t = !0; t; ) t = !1, t = n.c.kg(n.e, i), t = t | W7(e, n, i, !1), i = !i; @@ -13904,15 +13994,15 @@ function WDn() { } function pZ(e, n) { var t, i, r; - return i = !1, t = n.q.d, n.d < e.b && (r = ste(n.q, e.b), n.q.d > r && (U_e(n.q, r), i = t != n.q.d)), i; + return i = !1, t = n.q.d, n.d < e.b && (r = ste(n.q, e.b), n.q.d > r && (zBe(n.q, r), i = t != n.q.d)), i; } - function oRe(e, n) { + function fRe(e, n) { var t, i, r, c, s, f, h, l; return h = n.i, l = n.j, i = e.f, r = i.i, c = i.j, s = h - r, f = l - c, t = m.Math.sqrt(s * s + f * f), t; } function mZ(e, n) { var t, i; - return i = GM(e), i || (t = (RR(), fHe(n)), i = new F7e(t), Dn(i.Cl(), e)), i; + return i = GM(e), i || (t = (RR(), hHe(n)), i = new R7e(t), Dn(i.Cl(), e)), i; } function v7(e, n) { var t, i; @@ -13928,17 +14018,17 @@ function WDn() { var n, t; if (e == null) return !1; for (n = 0, t = e.length; n < t; n++) - if (!UTe(e[n])) return !1; + if (!zTe(e[n])) return !1; return !0; } - function fRe(e, n) { + function hRe(e, n) { var t; for (t = 0; t < n.length; t++) if (e == (bn(t, n.length), n.charCodeAt(t))) return !0; return !1; } - function hRe(e) { + function lRe(e) { var n; if (e.c != 0) return e.c; @@ -13948,11 +14038,11 @@ function WDn() { } function MM(e) { var n; - return An(e.a != e.b), n = e.d.a[e.a], mMe(e.b == e.d.c && n != null), e.c = e.a, e.a = e.a + 1 & e.d.a.length - 1, n; + return An(e.a != e.b), n = e.d.a[e.a], vMe(e.b == e.d.c && n != null), e.c = e.a, e.a = e.a + 1 & e.d.a.length - 1, n; } function H6n(e) { var n; - return n = new jDe(e), Gy(e.a, WZe, new yc(I(T(qj, 1), Ve, 377, 0, [n]))), n.d && he(n.f, n.d), n.f; + return n = new EDe(e), Gy(e.a, XZe, new yc(I(S(qj, 1), Ve, 377, 0, [n]))), n.d && he(n.f, n.d), n.f; } function iu(e, n) { var t; @@ -13960,18 +14050,18 @@ function WDn() { } function q6n(e, n, t) { var i; - i = new OGe(e, n), Je(e.r, n.$f(), i), t && !j6(e.u) && (i.c = new ECe(e.d), wu(n.Pf(), new zke(i))); + i = new LGe(e, n), Je(e.r, n.$f(), i), t && !j6(e.u) && (i.c = new ACe(e.d), wu(n.Pf(), new Wke(i))); } function KN(e) { var n; return n = new SX(e.a), Pc(n, e), K(n, (te(), $t), e), n.o.a = e.g, n.o.b = e.f, n.n.a = e.i, n.n.b = e.j, n; } function VN(e) { - return (be(), Hu).Gc(e.j) ? _(H(y(e, (te(), e4)))) : bc(I(T(Ji, 1), oe, 8, 0, [e.i.n, e.n, e.a])).b; + return (be(), Hu).Gc(e.j) ? B(H(y(e, (te(), e4)))) : bc(I(S(Ji, 1), fe, 8, 0, [e.i.n, e.n, e.a])).b; } function U6n(e) { var n; - return n = kx(frn), u(y(e, (te(), ou)), 22).Gc((Pr(), Z5)) && et(n, (zi(), Xc), (Qi(), jI)), n; + return n = kx(hrn), u(y(e, (te(), ou)), 22).Gc((Pr(), Z5)) && et(n, (zi(), Xc), (Qi(), jI)), n; } function z6n(e) { var n, t, i, r; @@ -13982,7 +14072,7 @@ function WDn() { function W6n(e, n, t) { var i, r; for (r = n.a.a.ec().Jc(); r.Ob(); ) - if (i = u(r.Pb(), 60), uCe(e, i, t)) + if (i = u(r.Pb(), 60), sCe(e, i, t)) return !0; return !1; } @@ -14010,21 +14100,21 @@ function WDn() { } function D1(e, n) { var t, i, r, c; - return c = (r = e ? GM(e) : null, nGe((i = n, r && r.El(), i))), c == n && (t = GM(e), t && t.El()), c; + return c = (r = e ? GM(e) : null, tGe((i = n, r && r.El(), i))), c == n && (t = GM(e), t && t.El()), c; } function kZ(e, n, t) { var i, r; - return r = e.a, e.a = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new Bi(e, 1, 1, r, n), t ? t.lj(i) : t = i), t; + return r = e.a, e.a = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new _i(e, 1, 1, r, n), t ? t.lj(i) : t = i), t; } - function lRe(e, n, t) { + function aRe(e, n, t) { var i, r; - return r = e.b, e.b = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new Bi(e, 1, 3, r, n), t ? t.lj(i) : t = i), t; + return r = e.b, e.b = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new _i(e, 1, 3, r, n), t ? t.lj(i) : t = i), t; } - function aRe(e, n, t) { + function dRe(e, n, t) { var i, r; - return r = e.f, e.f = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new Bi(e, 1, 0, r, n), t ? t.lj(i) : t = i), t; + return r = e.f, e.f = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new _i(e, 1, 0, r, n), t ? t.lj(i) : t = i), t; } - function dRe(e) { + function bRe(e) { var n, t; if (e != null) for (t = 0; t < e.length; ++t) @@ -14050,7 +14140,7 @@ function WDn() { throw $(t); } } - function bRe(e, n) { + function wRe(e, n) { Jn(e); try { return e._b(n); @@ -14080,7 +14170,7 @@ function WDn() { throw $(t); } } - function wRe(e, n, t) { + function gRe(e, n, t) { var i, r; for (r = e.Jc(); r.Ob(); ) { if (i = u(r.Pb(), 9), i == n) @@ -14093,7 +14183,7 @@ function WDn() { function Z6n(e, n, t) { var i, r, c, s; for (i = t / e.gc(), r = 0, s = e.Jc(); s.Ob(); ) - c = u(s.Pb(), 186), iRe(c, c.f + i * r), t7n(c, n, i), ++r; + c = u(s.Pb(), 186), rRe(c, c.f + i * r), t7n(c, n, i), ++r; } function e9n(e) { var n, t, i; @@ -14106,7 +14196,7 @@ function WDn() { n = u(A(t), 173), i = m.Math.max(i, n.g); return i; } - function gRe(e, n) { + function pRe(e, n) { var t; return t = new dh(e), Nl(t, (cn(), yi)), K(t, (te(), $t), n), K(t, (ae(), oi), (Ui(), Vc)), t; } @@ -14121,53 +14211,53 @@ function WDn() { } XY(e, n); } - function pRe(e) { + function mRe(e) { switch (e.g) { case 0: - return new $ve(); + return new Mve(); case 1: - return new Tve(); + return new Sve(); case 2: - return new Mve(); + return new Tve(); default: return null; } } function Lv(e) { var n, t; - return e > -129 && e < 128 ? (aSe(), n = e + 128, t = pse[n], !t && (t = pse[n] = new xz(e)), t) : new xz(e); + return e > -129 && e < 128 ? (dSe(), n = e + 128, t = pse[n], !t && (t = pse[n] = new xz(e)), t) : new xz(e); } function ie(e) { var n, t; - return e > -129 && e < 128 ? (cSe(), n = e + 128, t = dse[n], !t && (t = dse[n] = new Mz(e)), t) : new Mz(e); + return e > -129 && e < 128 ? (uSe(), n = e + 128, t = dse[n], !t && (t = dse[n] = new Mz(e)), t) : new Mz(e); } function t9n(e, n, t, i, r) { n == 0 || i == 0 || (n == 1 ? r[i] = aee(r, t, i, e[0]) : i == 1 ? r[n] = aee(r, e, n, t[0]) : UAn(e, t, r, n, i)); } - function mRe(e, n) { - var t; - e.c.length != 0 && (t = u(ah(e, W(xl, Wa, 9, e.c.length, 0, 1)), 199), EX(t, new pge()), AGe(t, n)); - } function vRe(e, n) { var t; - e.c.length != 0 && (t = u(ah(e, W(xl, Wa, 9, e.c.length, 0, 1)), 199), EX(t, new mge()), AGe(t, n)); + e.c.length != 0 && (t = u(ah(e, W(xl, Wa, 9, e.c.length, 0, 1)), 199), EX(t, new mge()), xGe(t, n)); } function kRe(e, n) { var t; - e.a.c.length > 0 && (t = u(pe(e.a, e.a.c.length - 1), 565), fZ(t, n)) || he(e.a, new POe(n)); + e.c.length != 0 && (t = u(ah(e, W(xl, Wa, 9, e.c.length, 0, 1)), 199), EX(t, new vge()), xGe(t, n)); + } + function yRe(e, n) { + var t; + e.a.c.length > 0 && (t = u(pe(e.a, e.a.c.length - 1), 565), fZ(t, n)) || he(e.a, new OOe(n)); } function i9n(e) { zs(); var n, t; - n = e.d.c - e.e.c, t = u(e.g, 156), wu(t.b, new S8e(n)), wu(t.c, new I8e(n)), fr(t.i, new C8e(n)); + n = e.d.c - e.e.c, t = u(e.g, 156), wu(t.b, new I8e(n)), wu(t.c, new C8e(n)), fr(t.i, new P8e(n)); } - function yRe(e) { + function jRe(e) { var n; - return n = new w1(), n.a += "VerticalSegment ", Yc(n, e.e), n.a += " ", it(n, BX(new gO(), new x(e.k))), n.a; + return n = new w1(), n.a += "VerticalSegment ", Yc(n, e.e), n.a += " ", it(n, _X(new gO(), new x(e.k))), n.a; } function r9n(e, n) { var t; - e.c = n, e.a = tkn(n), e.a < 54 && (e.f = (t = n.d > 1 ? IPe(n.a[0], n.a[1]) : IPe(n.a[0], 0), Rd(n.e > 0 ? t : Na(t)))); + e.c = n, e.a = tkn(n), e.a < 54 && (e.f = (t = n.d > 1 ? CPe(n.a[0], n.a[1]) : CPe(n.a[0], 0), Rd(n.e > 0 ? t : Na(t)))); } function QN(e, n) { var t, i, r; @@ -14177,21 +14267,21 @@ function WDn() { } function j2(e, n, t) { var i, r, c; - for (i = 0, c = Nn(e, 0); c.b != c.d.c && (r = _(H(Ln(c))), !(r > t)); ) + for (i = 0, c = Nn(e, 0); c.b != c.d.c && (r = B(H(Ln(c))), !(r > t)); ) r >= n && ++i; return i; } function c9n(e) { var n; - return n = u(hh(e.c.c, ""), 233), n || (n = new o3(Jm(_m(new Tp(), ""), "Other")), Wd(e.c.c, "", n)), n; + return n = u(hh(e.c.c, ""), 233), n || (n = new o3(Jm(Bm(new Tp(), ""), "Other")), Wd(e.c.c, "", n)), n; } function Q6(e) { var n; - return (e.Db & 64) != 0 ? kf(e) : (n = new _o(kf(e)), n.a += " (name: ", Br(n, e.zb), n.a += ")", n.a); + return (e.Db & 64) != 0 ? kf(e) : (n = new Bo(kf(e)), n.a += " (name: ", _r(n, e.zb), n.a += ")", n.a); } function EZ(e, n, t) { var i, r; - return r = e.sb, e.sb = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new Bi(e, 1, 4, r, n), t ? t.lj(i) : t = i), t; + return r = e.sb, e.sb = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new _i(e, 1, 4, r, n), t ? t.lj(i) : t = i), t; } function k7(e, n, t) { var i; @@ -14199,7 +14289,7 @@ function WDn() { } function AZ(e, n, t) { var i, r; - return r = e.r, e.r = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new Bi(e, 1, 8, r, e.r), t ? t.lj(i) : t = i), t; + return r = e.r, e.r = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new _i(e, 1, 8, r, e.r), t ? t.lj(i) : t = i), t; } function u9n(e, n, t) { var i, r; @@ -14215,26 +14305,26 @@ function WDn() { for (t = c, i = 0, r = t.length; i < r; ++i) null.Sm(); } - function _a(e, n) { + function Ba(e, n) { var t, i; - return t = u(n, 681), i = t.cl(), !i && t.dl(i = N(n, 88) ? new Uxe(e, u(n, 29)) : new jPe(e, u(n, 159))), i; + return t = u(n, 681), i = t.cl(), !i && t.dl(i = N(n, 88) ? new zxe(e, u(n, 29)) : new EPe(e, u(n, 159))), i; } - function jRe(e) { + function ERe(e) { return e -= e >> 1 & 1431655765, e = (e >> 2 & 858993459) + (e & 858993459), e = (e >> 4) + e & 252645135, e += e >> 8, e += e >> 16, e & 63; } function f9n(e) { - return e ? (e.i & 1) != 0 ? e == zu ? ui : e == Wn ? Ii : e == Bg ? J5 : e == Xi ? Ei : e == Gb ? Ab : e == Ap ? xb : e == us ? X3 : hk : e : null; + return e ? (e.i & 1) != 0 ? e == zu ? ui : e == Wn ? Ii : e == _g ? J5 : e == Xi ? Ei : e == Gb ? Ab : e == Ap ? xb : e == us ? X3 : hk : e : null; } function jt(e, n) { - return Hi(e) ? _e(e, n) : rw(e) ? dTe(e, n) : iw(e) ? (Ze(e), z(e) === z(n)) : dV(e) ? e.Fb(n) : oV(e) ? o$e(e, n) : lQ(e, n); + return Hi(e) ? Be(e, n) : rw(e) ? bTe(e, n) : iw(e) ? (Ze(e), z(e) === z(n)) : dV(e) ? e.Fb(n) : oV(e) ? f$e(e, n) : lQ(e, n); } - function ERe(e) { + function ARe(e) { var n; return iu(e, 0) < 0 && (e = C1(Tgn(rc(e) ? Ho(e) : e))), n = Xn(Id(e, 32)), 64 - (n != 0 ? J7(n) : J7(Xn(e)) + 32); } function y7(e, n) { var t; - return t = new MP(), e.a.zd(t) ? (Km(), new fO(Ze(uDe(e, t.a, n)))) : (A1(e), Km(), Km(), Tse); + return t = new MP(), e.a.zd(t) ? (Km(), new fO(Ze(sDe(e, t.a, n)))) : (A1(e), Km(), Km(), Tse); } function Y6(e, n) { switch (n.g) { @@ -14243,16 +14333,16 @@ function WDn() { return wc(e, n); case 3: case 4: - return _s(wc(e, n)); + return Bs(wc(e, n)); } return ze(), ze(), $r; } function h9n(e, n) { var t; - return n.a && (t = n.a.a.length, e.a ? it(e.a, e.b) : e.a = new Us(e.d), LPe(e.a, n.a, n.d.length, t)), e; + return n.a && (t = n.a.a.length, e.a ? it(e.a, e.b) : e.a = new Us(e.d), DPe(e.a, n.a, n.d.length, t)), e; } function l9n(e) { - _T(); + BT(); var n, t, i, r; for (t = pF(), i = 0, r = t.length; i < r; ++i) if (n = t[i], dc(n.a, e, 0) != -1) @@ -14260,13 +14350,13 @@ function WDn() { return nG; } function xZ(e) { - throw NN(), $(new Hje("Unexpected typeof result '" + e + "'; please report this bug to the GWT team")); + throw NN(), $(new qje("Unexpected typeof result '" + e + "'; please report this bug to the GWT team")); } - function ARe(e, n, t) { + function xRe(e, n, t) { if (e < 0 || n > t) throw $(new lu(zT + e + Lie + n + ", size: " + t)); if (e > n) - throw $(new on(zT + e + $We + n)); + throw $(new on(zT + e + MWe + n)); } function jo(e, n, t) { if (n < 0) @@ -14289,9 +14379,9 @@ function WDn() { } return yee(e, n, t, i); } - function xRe(e) { + function $Re(e) { var n; - return (e.Db & 64) != 0 ? kf(e) : (n = new _o(kf(e)), n.a += " (source: ", Br(n, e.d), n.a += ")", n.a); + return (e.Db & 64) != 0 ? kf(e) : (n = new Bo(kf(e)), n.a += " (source: ", _r(n, e.d), n.a += ")", n.a); } function Ja(e, n) { var t; @@ -14315,27 +14405,27 @@ function WDn() { } function a9n(e, n, t) { var i, r; - return r = e.a, e.a = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new Bi(e, 1, 5, r, e.a), t ? zee(t, i) : t = i), t; + return r = e.a, e.a = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new _i(e, 1, 5, r, e.a), t ? zee(t, i) : t = i), t; } function Z6(e, n) { var t; return e.b == -1 && e.a && (t = e.a.nk(), e.b = t ? e.c.Eh(e.a.Jj(), t) : Yt(e.c.Ah(), e.a)), e.c.vh(e.b, n); } - function $Re(e, n) { + function MRe(e, n) { var t, i; for (i = new kn(e); i.e != i.i.gc(); ) if (t = u(En(i), 29), z(n) === z(t)) return !0; return !1; } - function MRe(e) { + function TRe(e) { return e >= 65 && e <= 70 ? e - 65 + 10 : e >= 97 && e <= 102 ? e - 97 + 10 : e >= 48 && e <= 57 ? e - 48 : 0; } function SZ(e) { var n, t; return n = e.k, n == (cn(), Ai) ? (t = u(y(e, (te(), Sc)), 64), t == (be(), ln) || t == Mn) : !1; } - function TRe(e) { + function SRe(e) { var n; return n = gQ(e), u6(n.a, 0) ? (Zb(), Zb(), WJ) : (Zb(), new yL($O(n.a, 0) ? RQ(n) / Rd(n.a) : 0)); } @@ -14352,7 +14442,7 @@ function WDn() { throw $(new on(Pj)); e.Ei(n, t); } - function SRe(e, n) { + function IRe(e, n) { var t, i; for (i = new kn(e); i.e != i.i.gc(); ) if (t = u(En(i), 143), z(n) === z(t)) @@ -14374,9 +14464,9 @@ function WDn() { return i; } function j7(e, n) { - this.e = n, this.a = ERe(e), this.a < 54 ? this.f = Rd(e) : this.c = (Uh(), iu(e, 0) >= 0 ? F1(e) : x6(F1(Na(e)))); + this.e = n, this.a = ARe(e), this.a < 54 ? this.f = Rd(e) : this.c = (Uh(), iu(e, 0) >= 0 ? F1(e) : x6(F1(Na(e)))); } - function IRe(e, n, t, i, r, c) { + function CRe(e, n, t, i, r, c) { this.e = new le(), this.f = (Cr(), Gk), he(this.e, e), this.d = n, this.a = t, this.b = i, this.f = r, this.c = c; } function Ct(e, n) { @@ -14386,7 +14476,7 @@ function WDn() { var n; return n = e.a[e.c - 1 & e.a.length - 1], n == null ? null : (e.c = e.c - 1 & e.a.length - 1, ai(e.a, e.c, null), n); } - function CRe(e) { + function PRe(e) { var n, t; for (t = e.p.a.ec().Jc(); t.Ob(); ) if (n = u(t.Pb(), 217), n.f && e.b[n.c] < -1e-10) @@ -14403,7 +14493,7 @@ function WDn() { var n; if (!e.a) throw $(new qr("Cannot offset an unassigned cut.")); - n = e.c - e.b, e.b += n, VIe(e, n), QIe(e, n); + n = e.c - e.b, e.b += n, QIe(e, n), YIe(e, n); } function SM() { SM = G, p1e = new ZO("EQUAL_BETWEEN_STRUCTURES", 0), m1e = new ZO("TO_ASPECT_RATIO", 1), Dq = new ZO(Wf, 2); @@ -14421,10 +14511,10 @@ function WDn() { na = G, hU = new ox(N9, 0), OE = new ox("POLYLINE", 1), m4 = new ox("ORTHOGONAL", 2), ym = new ox("SPLINES", 3); } function Mi() { - Mi = G, Th = new fy(N9, 0), nc = new fy(J3, 1), Qr = new fy(_3, 2), Mh = new fy(PB, 3), Io = new fy("UP", 4); + Mi = G, Th = new fy(N9, 0), nc = new fy(J3, 1), Qr = new fy(B3, 2), Mh = new fy(P_, 3), Io = new fy("UP", 4); } function v9n(e, n) { - n.Tg("Sort end labels", 1), fi(mt(cc(new Ge(null, new He(e.b, 16)), new nge()), new tge()), new ige()), n.Ug(); + n.Tg("Sort end labels", 1), fi(mt(cc(new Ge(null, new He(e.b, 16)), new tge()), new ige()), new rge()), n.Ug(); } function IZ(e, n) { switch (e.b.g) { @@ -14480,7 +14570,7 @@ function WDn() { return mc; } } - function PRe(e) { + function ORe(e) { switch (e.g) { case 2: return nc; @@ -14497,11 +14587,11 @@ function WDn() { function k9n(e) { switch (e) { case 0: - return new gje(); + return new pje(); case 1: - return new bje(); - case 2: return new wje(); + case 2: + return new gje(); default: throw $(new H8()); } @@ -14515,8 +14605,8 @@ function WDn() { K(e, f0, (Kl(), ep)); } } - function ORe() { - ORe = G, Acn = Hh(Hh(W4(Hh(Hh(W4(et(new wi(), (M3(), Wk), (j9(), VH)), Xk), Xle), Vle), Kk), qle), Qle); + function LRe() { + LRe = G, xcn = Hh(Hh(W4(Hh(Hh(W4(et(new wi(), (M3(), Wk), (j9(), VH)), Xk), Xle), Vle), Kk), qle), Qle); } function n9(e, n, t) { var i, r; @@ -14524,7 +14614,7 @@ function WDn() { } function eF(e, n) { var t, i, r; - e.d == null ? (++e.e, --e.f) : (r = n.jd(), t = n.yi(), i = (t & pt) % e.d.length, avn(e, i, gHe(e, i, t, r))); + e.d == null ? (++e.e, --e.f) : (r = n.jd(), t = n.yi(), i = (t & pt) % e.d.length, avn(e, i, pHe(e, i, t, r))); } function Nv(e, n) { var t; @@ -14538,7 +14628,7 @@ function WDn() { var t; t = (e.Bb & Xw) != 0, n ? e.Bb |= Xw : e.Bb &= -4097, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new bf(e, 1, 12, t, n)); } - function Bv(e, n) { + function _v(e, n) { var t; t = (e.Bb & q1) != 0, n ? e.Bb |= q1 : e.Bb &= -2049, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new bf(e, 1, 11, t, n)); } @@ -14548,13 +14638,13 @@ function WDn() { } function CM(e) { var n, t; - return t = u(y(e, (ae(), co)), 86), t == (Mi(), Th) ? (n = _(H(y(e, WI))), n >= 1 ? nc : Mh) : t; + return t = u(y(e, (ae(), co)), 86), t == (Mi(), Th) ? (n = B(H(y(e, WI))), n >= 1 ? nc : Mh) : t; } function E9n(e) { var n, t; - for (t = hHe(Vs(e)).Jc(); t.Ob(); ) + for (t = lHe(Vs(e)).Jc(); t.Ob(); ) if (n = zn(t.Pb()), E9(e, n)) - return Dmn(($Ae(), Oon), n); + return Dmn((MAe(), Lon), n); return null; } function A9n(e, n, t) { @@ -14576,13 +14666,13 @@ function WDn() { i = t[r], s.$l(i.Jk()) && ++c; return c; } - function LRe(e, n, t) { + function DRe(e, n, t) { var i, r; if (e.c) cne(e.c, n, t); else for (r = new x(e.b); r.a < r.c.c.length; ) - i = u(A(r), 167), LRe(i, n, t); + i = u(A(r), 167), DRe(i, n, t); } function nF(e, n) { var t, i; @@ -14609,7 +14699,7 @@ function WDn() { var t; t = (e.Bb & xr) != 0, n ? e.Bb |= xr : e.Bb &= -65537, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new bf(e, 1, 20, t, n)); } - function _v(e, n) { + function Bv(e, n) { var t; t = (e.Bb & Wh) != 0, n ? e.Bb |= Wh : e.Bb &= -16385, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new bf(e, 1, 16, t, n)); } @@ -14623,7 +14713,7 @@ function WDn() { } function wc(e, n) { var t; - return e.i || Tne(e), t = u(_r(e.g, n), 49), t ? new $1(e.j, u(t.a, 15).a, u(t.b, 15).a) : (ze(), ze(), $r); + return e.i || Tne(e), t = u(Br(e.g, n), 49), t ? new $1(e.j, u(t.a, 15).a, u(t.b, 15).a) : (ze(), ze(), $r); } function T9n(e, n, t) { var i, r; @@ -14643,7 +14733,7 @@ function WDn() { } function iF(e) { var n; - return (e.Db & 64) != 0 ? kf(e) : (n = new _o(kf(e)), n.a += " (identifier: ", Br(n, e.k), n.a += ")", n.a); + return (e.Db & 64) != 0 ? kf(e) : (n = new Bo(kf(e)), n.a += " (identifier: ", _r(n, e.k), n.a += ")", n.a); } function PM(e) { var n; @@ -14659,11 +14749,11 @@ function WDn() { function S9n(e) { switch (u(y(e, (ae(), la)), 222).g) { case 1: - return new qpe(); + return new Upe(); case 3: - return new Kpe(); + return new Vpe(); default: - return new Hpe(); + return new qpe(); } } function I9n(e) { @@ -14680,7 +14770,7 @@ function WDn() { } function qo(e, n) { var t; - return rc(e) && rc(n) && (t = e - n, lj < t && t < Zd) ? t : C1(vFe(rc(e) ? Ho(e) : e, rc(n) ? Ho(n) : n)); + return rc(e) && rc(n) && (t = e - n, lj < t && t < Zd) ? t : C1(kFe(rc(e) ? Ho(e) : e, rc(n) ? Ho(n) : n)); } function C9n(e, n, t) { var i; @@ -14711,24 +14801,24 @@ function WDn() { } function P9n(e, n, t) { var i; - i = t, !i && (i = QK(new Lp(), 0)), i.Tg(eXe, 2), HBe(e.b, n, i.dh(1)), kCn(e, n, i.dh(1)), mOn(n, i.dh(1)), i.Ug(); + i = t, !i && (i = QK(new Lp(), 0)), i.Tg(nXe, 2), q_e(e.b, n, i.dh(1)), kCn(e, n, i.dh(1)), mOn(n, i.dh(1)), i.Ug(); } function O9n(e, n, t) { var i; - t.Tg("Straight Line Edge Routing", 1), t.bh(n, Lce), i = u(re(n, (s2(), ap)), 26), SUe(e, i), t.bh(n, yS); + t.Tg("Straight Line Edge Routing", 1), t.bh(n, Lce), i = u(re(n, (s2(), ap)), 26), IUe(e, i), t.bh(n, yS); } function RZ(e, n) { - e.n.c.length == 0 && he(e.n, new E$(e.s, e.t, e.i)), he(e.b, n), pee(u(pe(e.n, e.n.c.length - 1), 208), n), gUe(e, n); + e.n.c.length == 0 && he(e.n, new E$(e.s, e.t, e.i)), he(e.b, n), pee(u(pe(e.n, e.n.c.length - 1), 208), n), pUe(e, n); } function L9n(e) { var n, t; for (t = txn(Vs(vw(e))).Jc(); t.Ob(); ) - if (n = zn(t.Pb()), E9(e, n)) return Nmn((MAe(), Lon), n); + if (n = zn(t.Pb()), E9(e, n)) return Nmn((TAe(), Don), n); return null; } - function DRe(e) { + function NRe(e) { var n, t, i, r; - for (n = new XMe(e.Pd().gc()), r = 0, i = b3(e.Pd().Jc()); i.Ob(); ) + for (n = new KMe(e.Pd().gc()), r = 0, i = b3(e.Pd().Jc()); i.Ob(); ) t = i.Pb(), I2n(n, t, ie(r++)); return oEn(n.a); } @@ -14745,7 +14835,7 @@ function WDn() { else if (e.d) throw $(new qr("Stream already terminated, can't be modified or used")); } - function NRe(e, n, t) { + function FRe(e, n, t) { switch (n.g) { case 1: e.b -= t.b / 2; @@ -14774,7 +14864,7 @@ function WDn() { return !1; } } - function FRe(e, n) { + function RRe(e, n) { switch (n.g) { case 2: return e.b; @@ -14788,16 +14878,16 @@ function WDn() { return !1; } } - function RRe(e, n, t, i, r) { - L$e(this), this.b = e, this.d = W(xl, Wa, 9, n.a.c.length, 0, 1), this.f = t, ah(n.a, this.d), this.g = i, this.c = r; + function _Re(e, n, t, i, r) { + D$e(this), this.b = e, this.d = W(xl, Wa, 9, n.a.c.length, 0, 1), this.f = t, ah(n.a, this.d), this.g = i, this.c = r; } function rF() { ene(); var e, n, t; - t = SLn++ + Date.now(), e = dr(m.Math.floor(t * bj)) & UT, n = dr(t - e * Iie), this.a = e ^ 1502, this.b = n ^ $B; + t = SLn++ + Date.now(), e = dr(m.Math.floor(t * bj)) & UT, n = dr(t - e * Iie), this.a = e ^ 1502, this.b = n ^ $_; } function F9n(e) { - return zN(), en(), !!(FRe(u(e.a, 82).j, u(e.b, 86)) || u(e.a, 82).d.e != 0 && FRe(u(e.a, 82).j, u(e.b, 86))); + return zN(), en(), !!(RRe(u(e.a, 82).j, u(e.b, 86)) || u(e.a, 82).d.e != 0 && RRe(u(e.a, 82).j, u(e.b, 86))); } function cF(e, n) { var t, i, r; @@ -14807,11 +14897,11 @@ function WDn() { } function Pe(e) { var n, t, i, r; - return t = (n = u(Ff((i = e.Pm, r = i.f, r == Bn ? i : r)), 10), new wo(n, u(af(n, n.length), 10), 0)), mf(t, e), t; + return t = (n = u(Ff((i = e.Pm, r = i.f, r == _n ? i : r)), 10), new wo(n, u(af(n, n.length), 10), 0)), mf(t, e), t; } function R9n(e, n) { var t, i, r; - i = h2(n), r = _(H(Ow(i, (ae(), Mf)))), t = m.Math.max(0, r / 2 - 0.5), f9(n, t, 1), he(e, new KAe(n, t)); + i = h2(n), r = B(H(Ow(i, (ae(), Mf)))), t = m.Math.max(0, r / 2 - 0.5), f9(n, t, 1), he(e, new VAe(n, t)); } function BRe(e, n) { var t, i; @@ -14819,7 +14909,7 @@ function WDn() { if (i = q8(H(Ln(t))), i == n) return; if (i > n) { - xPe(t); + $Pe(t); break; } } @@ -14831,7 +14921,7 @@ function WDn() { for (r = n.g, c = 0, s = r.length; c < s; ++c) i = r[c], Wd(e.c.e, i, n); } - function B9n(e, n, t, i) { + function _9n(e, n, t, i) { var r, c, s; for (r = n + 1; r < t; ++r) for (c = r; c > n && i.Le(e[c - 1], e[c]) > 0; --c) @@ -14846,7 +14936,7 @@ function WDn() { u(t, 69).uk().Ak(e, e.ei(), n, i); } } - function _9n(e, n) { + function B9n(e, n) { var t; if (t = z7(e.Ah(), n), N(t, 103)) return u(t, 19); @@ -14859,7 +14949,7 @@ function WDn() { return e.d; throw $(new on("Node " + n + " not part of edge " + e)); } - function BZ(e, n, t, i) { + function _Z(e, n, t, i) { switch (n) { case 3: return e.f; @@ -14873,13 +14963,13 @@ function WDn() { return $Z(e, n, t, i); } function J9n(e) { - return e.k != (cn(), si) ? !1 : a2(new Ge(null, new ww(new fn(dn(Ht(e).a.Jc(), new Q())))), new jpe()); + return e.k != (cn(), si) ? !1 : a2(new Ge(null, new ww(new fn(dn(Ht(e).a.Jc(), new Y())))), new Epe()); } - function Bs() { - Bs = G, iE = new iy(Wf, 0), Mk = new iy("FIRST", 1), ha = new iy(gXe, 2), Tk = new iy("LAST", 3), l0 = new iy(pXe, 4); + function _s() { + _s = G, iE = new iy(Wf, 0), Mk = new iy("FIRST", 1), ha = new iy(pXe, 2), Tk = new iy("LAST", 3), l0 = new iy(mXe, 4); } function t9() { - t9 = G, kk = new ZA("LAYER_SWEEP", 0), efe = new ZA("MEDIAN_LAYER_SWEEP", 1), Kj = new ZA(HB, 2), nfe = new ZA(Wf, 3); + t9 = G, kk = new ZA("LAYER_SWEEP", 0), efe = new ZA("MEDIAN_LAYER_SWEEP", 1), Kj = new ZA(H_, 2), nfe = new ZA(Wf, 3); } function LM() { LM = G, Xae = new QO("ASPECT_RATIO_DRIVEN", 0), Sq = new QO("MAX_SCALE_DRIVEN", 1), Wae = new QO("AREA_DRIVEN", 2); @@ -14888,16 +14978,16 @@ function WDn() { DM = G, gU = new lx(jce, 0), l0e = new lx("GROUP_DEC", 1), d0e = new lx("GROUP_MIXED", 2), a0e = new lx("GROUP_INC", 3); } function G9n(e, n) { - return _e(n.b && n.c ? Fd(n.b) + "->" + Fd(n.c) : "e_" + Gt(n), e.b && e.c ? Fd(e.b) + "->" + Fd(e.c) : "e_" + Gt(e)); + return Be(n.b && n.c ? Fd(n.b) + "->" + Fd(n.c) : "e_" + Gt(n), e.b && e.c ? Fd(e.b) + "->" + Fd(e.c) : "e_" + Gt(e)); } function H9n(e, n) { - return _e(n.b && n.c ? Fd(n.b) + "->" + Fd(n.c) : "e_" + Gt(n), e.b && e.c ? Fd(e.b) + "->" + Fd(e.c) : "e_" + Gt(e)); + return Be(n.b && n.c ? Fd(n.b) + "->" + Fd(n.c) : "e_" + Gt(n), e.b && e.c ? Fd(e.b) + "->" + Fd(e.c) : "e_" + Gt(e)); } function tb(e, n) { return rh(), pf(U1), m.Math.abs(e - n) <= U1 || e == n || isNaN(e) && isNaN(n) ? 0 : e < n ? -1 : e > n ? 1 : $d(isNaN(e), isNaN(n)); } - function _Z(e) { - oF(), this.c = wf(I(T(XLn, 1), Ve, 829, 0, [Pin])), this.b = new Tn(), this.a = e, ht(this.b, fC, 1), wu(Oin, new Xye(this)); + function BZ(e) { + oF(), this.c = wf(I(S(XLn, 1), Ve, 829, 0, [Oin])), this.b = new Tn(), this.a = e, ht(this.b, fC, 1), wu(Lin, new Kye(this)); } function i9(e) { var n; @@ -14924,10 +15014,10 @@ function WDn() { return n.c + t; return n.c + n.b.gc(); } - function _Re(e, n) { + function JRe(e, n) { Zm(); var t, i, r, c; - for (i = PLe(e), r = n, pv(i, 0, i.length, r), t = 0; t < i.length; t++) + for (i = OLe(e), r = n, pv(i, 0, i.length, r), t = 0; t < i.length; t++) c = Myn(e, i[t], t), t != c && n9(e, t, c); } function JZ(e, n) { @@ -14939,7 +15029,7 @@ function WDn() { function GZ(e) { var n, t, i; for (i = new xa(), i.a += "[", n = 0, t = e.gc(); n < t; ) - Br(i, b6(e.Ti(n))), ++n < t && (i.a += mu); + _r(i, b6(e.Ti(n))), ++n < t && (i.a += mu); return i.a += "]", i.a; } function HZ(e, n, t, i, r) { @@ -14950,17 +15040,17 @@ function WDn() { } function z9n(e) { var n, t, i, r, c; - return c = nne(e), t = K8(e.c), i = !t, i && (r = new kd(), gf(c, "knownLayouters", r), n = new A7e(r), fr(e.c, n)), c; + return c = nne(e), t = K8(e.c), i = !t, i && (r = new kd(), gf(c, "knownLayouters", r), n = new x7e(r), fr(e.c, n)), c; } function qZ(e, n) { var t; - return z(e) === z(n) ? !0 : N(n, 91) ? (t = u(n, 91), e.e == t.e && e.d == t.d && _mn(e, t.a)) : !1; + return z(e) === z(n) ? !0 : N(n, 91) ? (t = u(n, 91), e.e == t.e && e.d == t.d && Bmn(e, t.a)) : !1; } function W9n(e) { return e.e == null ? e : (!e.c && (e.c = new pR((e.f & 256) != 0, e.i, e.a, e.d, (e.f & 16) != 0, e.j, e.g, null)), e.c); } function X9n(e, n) { - return e.h == hj && e.m == 0 && e.l == 0 ? (n && (Q1 = Eu(0, 0, 0)), f$e((vv(), sse))) : (n && (Q1 = Eu(e.l, e.m, e.h)), Eu(0, 0, 0)); + return e.h == hj && e.m == 0 && e.l == 0 ? (n && (Q1 = Eu(0, 0, 0)), h$e((vv(), sse))) : (n && (Q1 = Eu(e.l, e.m, e.h)), Eu(0, 0, 0)); } function xs(e) { var n; @@ -14971,8 +15061,8 @@ function WDn() { } function UZ(e) { var n, t, i; - for (i = _(H(e.a.mf((tt(), qC)))), t = new x(e.a.Qf()); t.a < t.c.c.length; ) - n = u(A(t), 685), Cze(e, n, i); + for (i = B(H(e.a.mf((tt(), qC)))), t = new x(e.a.Qf()); t.a < t.c.c.length; ) + n = u(A(t), 685), Pze(e, n, i); } function K9n(e) { ow(); @@ -14997,11 +15087,11 @@ function WDn() { return !i || i.length == 0 ? "" : " " + i.join(` `); } - return n && (n.stack || t(e[tB])); + return n && (n.stack || t(e[t_])); } - function _s(e) { + function Bs(e) { var n, t; - return N(e, 311) ? (t = fvn(u(e, 311)), n = t, n) : N(e, 432) ? u(e, 432).a : N(e, 59) ? new Jje(e) : new CW(e); + return N(e, 311) ? (t = fvn(u(e, 311)), n = t, n) : N(e, 432) ? u(e, 432).a : N(e, 59) ? new Gje(e) : new CW(e); } function j3(e) { switch (be(), e.g) { @@ -15030,42 +15120,42 @@ function WDn() { } return GY(e, n); } - function JRe(e) { + function GRe(e) { switch (e.g) { case 0: - return new ave(); + return new dve(); case 1: - return new wve(); + return new gve(); default: - throw $(new on(_B + (e.f != null ? e.f : "" + e.g))); + throw $(new on(B_ + (e.f != null ? e.f : "" + e.g))); } } function Y9n(e) { switch (e.g) { case 0: - return new dve(); - case 1: return new bve(); + case 1: + return new wve(); default: - throw $(new on(N_ + (e.f != null ? e.f : "" + e.g))); + throw $(new on(NB + (e.f != null ? e.f : "" + e.g))); } } function Z9n(e) { switch (e.g) { case 1: - return new cve(); + return new uve(); case 2: - return new DMe(); + return new NMe(); default: - throw $(new on(N_ + (e.f != null ? e.f : "" + e.g))); + throw $(new on(NB + (e.f != null ? e.f : "" + e.g))); } } - function GRe(e) { + function HRe(e) { switch (e.g) { case 0: return new sW(); case 1: - return new pje(); + return new mje(); default: throw $(new on(AS + (e.f != null ? e.f : "" + e.g))); } @@ -15073,13 +15163,13 @@ function WDn() { function ekn(e, n, t, i, r) { Ws(), yf(ff(of(sf(hf(new Ro(), 0), r.d.e - e), n), r.d)), yf(ff(of(sf(hf(new Ro(), 0), t - r.a.e), r.a), i)); } - function HRe(e, n) { + function qRe(e, n) { var t, i, r, c; - n && (r = Yl(n, "x"), t = new g7e(e), p2(t.a, (Ze(r), r)), c = Yl(n, "y"), i = new p7e(e), m2(i.a, (Ze(c), c))); + n && (r = Yl(n, "x"), t = new p7e(e), p2(t.a, (Ze(r), r)), c = Yl(n, "y"), i = new m7e(e), m2(i.a, (Ze(c), c))); } - function qRe(e, n) { + function URe(e, n) { var t, i, r, c; - n && (r = Yl(n, "x"), t = new v7e(e), w2(t.a, (Ze(r), r)), c = Yl(n, "y"), i = new k7e(e), g2(i.a, (Ze(c), c))); + n && (r = Yl(n, "x"), t = new k7e(e), w2(t.a, (Ze(r), r)), c = Yl(n, "y"), i = new y7e(e), g2(i.a, (Ze(c), c))); } function nkn(e, n) { var t, i, r, c; @@ -15094,13 +15184,13 @@ function WDn() { return t && r.Qb(), !0; return !1; } - function URe(e) { + function zRe(e) { var n, t, i; - return t = e.ih(), t ? (n = e.Bh(), N(n, 174) && (i = URe(u(n, 174)), i != null) ? i + "." + t : t) : null; + return t = e.ih(), t ? (n = e.Bh(), N(n, 174) && (i = zRe(u(n, 174)), i != null) ? i + "." + t : t) : null; } function tkn(e) { var n, t, i; - return e.e == 0 ? 0 : (n = e.d << 5, t = e.a[e.d - 1], e.e < 0 && (i = UNe(e), i == e.d - 1 && (--t, t = t | 0)), n -= J7(t), n); + return e.e == 0 ? 0 : (n = e.d << 5, t = e.a[e.d - 1], e.e < 0 && (i = zNe(e), i == e.d - 1 && (--t, t = t | 0)), n -= J7(t), n); } function ikn(e) { var n, t; @@ -15113,7 +15203,7 @@ function WDn() { } return Wm(), Cse; } - function zRe(e, n) { + function WRe(e, n) { var t; return e.d ? eu(e.b, n) ? u(rn(e.b, n), 43) : (t = n.bg(), ht(e.b, n, t), t) : n.bg(); } @@ -15125,7 +15215,7 @@ function WDn() { i = r.Pb(), e.oj(n, e.Xi(n, i)), ++n; return !0; } - function WRe(e, n) { + function XRe(e, n) { var t, i; if (n) { for (t = 0; t < e.i; ++t) @@ -15143,10 +15233,10 @@ function WDn() { } function KZ(e) { var n; - return !e.c && (e.c = new Qbe()), Di(e.d, new Zbe()), _Mn(e), n = CMn(e), fi(new Ge(null, new He(e.d, 16)), new Wke(e)), n; + return !e.c && (e.c = new Ybe()), Di(e.d, new ewe()), BMn(e), n = CMn(e), fi(new Ge(null, new He(e.d, 16)), new Xke(e)), n; } function rkn(e, n) { - n.Tg("End label post-processing", 1), fi(mt(cc(new Ge(null, new He(e.b, 16)), new Wwe()), new Xwe()), new Kwe()), n.Ug(); + n.Tg("End label post-processing", 1), fi(mt(cc(new Ge(null, new He(e.b, 16)), new Xwe()), new Kwe()), new Vwe()), n.Ug(); } function ckn(e) { var n, t, i, r; @@ -15166,7 +15256,7 @@ function WDn() { var n, t, i, r, c; for (t = u(e.g, 679), i = e.i - 1; i >= 0; --i) for (n = t[i], r = 0; r < i; ++r) - if (c = t[r], fUe(e, n, c)) { + if (c = t[r], hUe(e, n, c)) { $3(e, i); break; } @@ -15174,22 +15264,22 @@ function WDn() { function skn(e) { H$(), u(e.mf((tt(), fd)), 182).Gc((Ms(), YC)) && (u(e.mf(Mg), 182).Ec((ls(), jm)), u(e.mf(fd), 182).Kc(YC)); } - function XRe(e) { + function KRe(e) { var n, t; n = e.d == (T3(), W5), t = Uee(e), n && !t || !n && t ? K(e.a, (ae(), tl), (wl(), xE)) : K(e.a, (ae(), tl), (wl(), AE)); } function oF() { - oF = G, BA(), fC = (ae(), g0), Oin = wf(I(T(zq, 1), yce, 147, 0, [oE, Mf, sp, w0, vg, xH, c4, u4, $H, Fk, mg, rd, kg])); + oF = G, _A(), fC = (ae(), g0), Lin = wf(I(S(zq, 1), yce, 147, 0, [oE, Mf, sp, w0, vg, xH, c4, u4, $H, Fk, mg, rd, kg])); } function okn(e, n) { var t; - return t = u(fs(e, ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), t.Oc(rSe(t.gc())); + return t = u(fs(e, ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), t.Oc(cSe(t.gc())); } function fkn(e) { var n, t, i; return e < YS.length ? YS[e] : (t = e >> 5, n = e & 31, i = W(Wn, lt, 30, t + 1, 15, 1), i[t] = 1 << n, new Cd(1, t + 1, i)); } - function KRe(e, n) { + function VRe(e, n) { var t, i; if (i = new Lm(e.a.$c(n, !0)), i.a.gc() <= 1) throw $(new Cp()); @@ -15197,7 +15287,7 @@ function WDn() { } function hkn(e, n, t) { var i, r; - return i = _(e.p[n.i.p]) + _(e.d[n.i.p]) + n.n.b + n.a.b, r = _(e.p[t.i.p]) + _(e.d[t.i.p]) + t.n.b + t.a.b, r - i; + return i = B(e.p[n.i.p]) + B(e.d[n.i.p]) + n.n.b + n.a.b, r = B(e.p[t.i.p]) + B(e.d[t.i.p]) + t.n.b + t.a.b, r - i; } function VZ(e, n) { var t; @@ -15205,26 +15295,26 @@ function WDn() { } function NM(e) { var n; - return (e.Db & 64) != 0 ? Q6(e) : (n = new _o(Q6(e)), n.a += " (instanceClassName: ", Br(n, e.D), n.a += ")", n.a); + return (e.Db & 64) != 0 ? Q6(e) : (n = new Bo(Q6(e)), n.a += " (instanceClassName: ", _r(n, e.D), n.a += ")", n.a); } function FM(e) { var n, t, i, r; for (r = 0, t = 0, i = e.length; t < i; t++) - n = (bn(t, e.length), e.charCodeAt(t)), n < 64 && (r = Bh(r, hl(1, n))); + n = (bn(t, e.length), e.charCodeAt(t)), n < 64 && (r = _h(r, hl(1, n))); return r; } function lkn(e, n, t) { var i, r; for (i = qi(t, Or), r = 0; iu(i, 0) != 0 && r < n; r++) - i = yr(i, qi(e[r], Or)), e[r] = Xn(i), i = _0(i, 32); + i = yr(i, qi(e[r], Or)), e[r] = Xn(i), i = B0(i, 32); return Xn(i); } function RM(e, n) { yX(); var t, i; - return t = jy((xA(), xA(), fk)), i = null, n == t && (i = u(nu(cse, e), 615)), i || (i = new cIe(e), n == t && zr(cse, e, i)), i; + return t = jy((xA(), xA(), fk)), i = null, n == t && (i = u(nu(cse, e), 615)), i || (i = new uIe(e), n == t && zr(cse, e, i)), i; } - function VRe(e) { + function QRe(e) { ow(); var n; return n = new vr(u(e.e.mf((tt(), mp)), 8)), e.B.Gc((Ms(), k4)) && (n.a <= 0 && (n.a = 20), n.b <= 0 && (n.b = 20)), n; @@ -15238,7 +15328,7 @@ function WDn() { } function fF(e, n) { var t, i, r; - return e.f > 0 ? (e.Zj(), i = n == null ? 0 : Gt(n), r = (i & pt) % e.d.length, t = gHe(e, r, i, n), t != -1) : !1; + return e.f > 0 ? (e.Zj(), i = n == null ? 0 : Gt(n), r = (i & pt) % e.d.length, t = pHe(e, r, i, n), t != -1) : !1; } function pu(e, n, t) { var i, r, c; @@ -15256,7 +15346,7 @@ function WDn() { var i, r; return i = new Vl(e.e, 4, 10, (r = n.c, N(r, 88) ? u(r, 29) : (Ue(), rf)), null, Ha(e, n), !1), t ? t.lj(i) : t = i, t; } - function QRe(e, n) { + function YRe(e, n) { var t, i, r; return N(n, 45) ? (t = u(n, 45), i = t.jd(), r = Cw(e.Pc(), i), Hl(r, t.kd()) && (r != null || e.Pc()._b(i))) : !1; } @@ -15290,12 +15380,12 @@ function WDn() { function F1(e) { Uh(); var n, t; - return t = Xn(e), n = Xn(Id(e, 32)), n != 0 ? new uPe(t, n) : t > 10 || t < 0 ? new Wl(1, t) : ZQe[t]; + return t = Xn(e), n = Xn(Id(e, 32)), n != 0 ? new sPe(t, n) : t > 10 || t < 0 ? new Wl(1, t) : eYe[t]; } - function YRe(e) { + function ZRe(e) { Dw(); var n; - return (e.q ? e.q : (ze(), ze(), El))._b((ae(), Lb)) ? n = u(y(e, Lb), 203) : n = u(y(_i(e), Nk), 203), n; + return (e.q ? e.q : (ze(), ze(), El))._b((ae(), Lb)) ? n = u(y(e, Lb), 203) : n = u(y(Bi(e), Nk), 203), n; } function bkn(e, n, t, i) { var r, c; @@ -15309,10 +15399,10 @@ function WDn() { } return i.i = e, !0; } - function ZRe(e, n, t) { - rNe(), fje.call(this), this.a = lw(jYe, [oe, Fie], [592, 216], 0, [tI, eG], 2), this.c = new zp(), this.g = e, this.f = n, this.d = t; + function e_e(e, n, t) { + cNe(), hje.call(this), this.a = lw(EYe, [fe, Fie], [592, 216], 0, [tI, eG], 2), this.c = new zp(), this.g = e, this.f = n, this.d = t; } - function eBe(e) { + function n_e(e) { this.e = W(Wn, lt, 30, e.length, 15, 1), this.c = W(zu, zf, 30, e.length, 16, 1), this.b = W(zu, zf, 30, e.length, 16, 1), this.f = 0; } function wkn(e) { @@ -15322,7 +15412,7 @@ function WDn() { } function gkn(e) { var n, t, i, r; - for (i = BEn(e), Di(i, nen), r = e.d, r.c.length = 0, t = new x(i); t.a < t.c.c.length; ) + for (i = _En(e), Di(i, ten), r = e.d, r.c.length = 0, t = new x(i); t.a < t.c.c.length; ) n = u(A(t), 455), Ci(r, n.b); } function r9(e, n) { @@ -15333,7 +15423,7 @@ function WDn() { var t; return rc(e) && rc(n) && (t = e % n, lj < t && t < Zd) ? t : C1((tie(rc(e) ? Ho(e) : e, rc(n) ? Ho(n) : n, !0), Q1)); } - function nBe(e, n) { + function t_e(e, n) { e.Vj(); try { e.d._c(e.e++, n), e.f = e.d.j, e.g = -1; @@ -15342,12 +15432,12 @@ function WDn() { } } function lF() { - lF = G, MU = new q5e(), N0e = new U5e(), F0e = new z5e(), R0e = new W5e(), B0e = new X5e(), _0e = new K5e(), J0e = new V5e(), G0e = new Q5e(), H0e = new Y5e(); + lF = G, MU = new U5e(), N0e = new z5e(), F0e = new W5e(), R0e = new X5e(), _0e = new K5e(), B0e = new V5e(), J0e = new Q5e(), G0e = new Y5e(), H0e = new Z5e(); } function YZ() { - YZ = G, t0e = new N0(15), eon = new nr((tt(), Ml), t0e), ton = new nr(i1, 15), non = new nr(oU, ie(0)), Zsn = new nr(a4, m5); + YZ = G, t0e = new N0(15), non = new nr((tt(), Ml), t0e), ion = new nr(i1, 15), ton = new nr(oU, ie(0)), eon = new nr(a4, m5); } - function tBe(e, n) { + function i_e(e, n) { var t, i; e.a = yr(e.a, 1), e.c = m.Math.min(e.c, n), e.b = m.Math.max(e.b, n), e.d += n, t = n - e.f, i = e.e + t, e.f = i - e.e - t, e.e = i; } @@ -15358,13 +15448,13 @@ function WDn() { } function Ow(e, n) { var t, i; - return i = null, Et(e, (ae(), sC)) && (t = u(y(e, sC), 105), t.nf(n) && (i = t.mf(n))), i == null && (i = y(_i(e), n)), i; + return i = null, Et(e, (ae(), sC)) && (t = u(y(e, sC), 105), t.nf(n) && (i = t.mf(n))), i == null && (i = y(Bi(e), n)), i; } function $7(e, n) { var t, i; for (i = n.length, t = 0; t < i; t += 2) ru(e, (bn(t, n.length), n.charCodeAt(t)), (bn(t + 1, n.length), n.charCodeAt(t + 1))); } - function iBe(e, n, t) { + function r_e(e, n, t) { var i, r, c, s; for (c = n - e.e, s = t - e.f, r = new x(e.a); r.a < r.c.c.length; ) i = u(A(r), 173), T7(i, i.s + c, i.t + s); @@ -15378,7 +15468,7 @@ function WDn() { var i, r; i = u(nu(E4, n), 121), r = u(nu(I8, n), 121), t ? (zr(E4, e, i), zr(I8, e, r)) : (zr(I8, e, i), zr(E4, e, r)); } - function rBe(e, n) { + function c_e(e, n) { var t, i, r, c; return t = n >> 5, n &= 31, r = e.d + t + (n == 0 ? 0 : 1), i = W(Wn, lt, 30, r, 15, 1), djn(i, e.a, t, n), c = new Cd(e.e, r, i), C6(c), c; } @@ -15408,9 +15498,9 @@ function WDn() { return i; } function mkn(e, n) { - n.Tg("Min Size Postprocessing", 1), Pt(e, (gl(), Eg), m.Math.max(_(H(re(e, Eg))), _(H(re(e, n8))))), n.Ug(); + n.Tg("Min Size Postprocessing", 1), Pt(e, (gl(), Eg), m.Math.max(B(H(re(e, Eg))), B(H(re(e, n8))))), n.Ug(); } - function cBe(e) { + function u_e(e) { if (e.b == null) { for (; e.a.Ob(); ) if (e.b = e.a.Pb(), !u(e.b, 52).Gh()) @@ -15426,17 +15516,17 @@ function WDn() { var n; n = e.a; do - n = u(pn(new fn(dn(Ht(n).a.Jc(), new Q()))), 17).d.i, n.k == (cn(), yi) && he(e.e, n); + n = u(pn(new fn(dn(Ht(n).a.Jc(), new Y()))), 17).d.i, n.k == (cn(), yi) && he(e.e, n); while (n.k == (cn(), yi)); } function ykn(e, n) { var t, i, r; - for (i = new fn(dn(Ht(e).a.Jc(), new Q())); xn(i); ) + for (i = new fn(dn(Ht(e).a.Jc(), new Y())); xn(i); ) if (t = u(pn(i), 17), r = t.d.i, r.c == n) return !1; return !0; } - function uBe(e, n, t) { + function s_e(e, n, t) { var i, r, c, s; for (r = u(rn(e.b, t), 171), i = 0, s = new x(n.j); s.a < s.c.c.length; ) c = u(A(s), 113), r[c.d.p] && ++i; @@ -15446,43 +15536,43 @@ function WDn() { var r, c, s; return r = !1, iPn(e.f, t, i) && (Ukn(e.f, e.a[n][t], e.a[n][i]), c = e.a[n], s = c[i], c[i] = c[t], c[t] = s, r = !0), r; } - function sBe(e) { + function o_e(e) { var n, t, i, r, c; if (e == null) return null; for (c = new le(), t = HN(e), i = 0, r = t.length; i < r; ++i) n = t[i], he(c, cu(n, !0)); return c; } - function oBe(e) { + function f_e(e) { var n, t, i, r, c; if (e == null) return null; for (c = new le(), t = HN(e), i = 0, r = t.length; i < r; ++i) n = t[i], he(c, cu(n, !0)); return c; } - function fBe(e) { + function h_e(e) { var n, t, i, r, c; if (e == null) return null; for (c = new le(), t = HN(e), i = 0, r = t.length; i < r; ++i) n = t[i], he(c, cu(n, !0)); return c; } - function hBe(e) { + function l_e(e) { var n, t; - return n = u(hn(e.a, 4), 129), n != null ? (t = W(EU, mJ, 415, n.length, 0, 1), zc(n, 0, t, 0, n.length), t) : xon; + return n = u(hn(e.a, 4), 129), n != null ? (t = W(EU, mJ, 415, n.length, 0, 1), zc(n, 0, t, 0, n.length), t) : $on; } function dF(e) { var n; - e.c != 0 && (n = u(pe(e.a, e.b), 295), n.b == 1 ? (++e.b, e.b < e.a.c.length && Eke(u(pe(e.a, e.b), 295))) : --n.b, --e.c); + e.c != 0 && (n = u(pe(e.a, e.b), 295), n.b == 1 ? (++e.b, e.b < e.a.c.length && Ake(u(pe(e.a, e.b), 295))) : --n.b, --e.c); } - function BM() { - BM = G, Zk = new VO("P1_WIDTH_APPROXIMATION", 0), IC = new VO("P2_PACKING", 1), jq = new VO("P3_WHITESPACE_ELIMINATION", 2); + function _M() { + _M = G, Zk = new VO("P1_WIDTH_APPROXIMATION", 0), IC = new VO("P2_PACKING", 1), jq = new VO("P3_WHITESPACE_ELIMINATION", 2); } function ta() { - ta = G, cd = new nx(Wf, 0), Ale = new nx("NODES_AND_EDGES", 1), BH = new nx("PREFER_EDGES", 2), _H = new nx("PREFER_NODES", 3); + ta = G, cd = new nx(Wf, 0), Ale = new nx("NODES_AND_EDGES", 1), _H = new nx("PREFER_EDGES", 2), BH = new nx("PREFER_NODES", 3); } function Js() { - Js = G, _E = new hx("PORTS", 0), y0 = new hx("PORT_LABELS", 1), BE = new hx("NODE_LABELS", 2), Cg = new hx("MINIMUM_SIZE", 3); + Js = G, BE = new hx("PORTS", 0), y0 = new hx("PORT_LABELS", 1), _E = new hx("NODE_LABELS", 2), Cg = new hx("MINIMUM_SIZE", 3); } function Ekn(e, n) { return rh(), rh(), pf(U1), (m.Math.abs(e - n) <= U1 || e == n || isNaN(e) && isNaN(n) ? 0 : e < n ? -1 : e > n ? 1 : $d(isNaN(e), isNaN(n))) > 0; @@ -15490,7 +15580,7 @@ function WDn() { function nee(e, n) { return rh(), rh(), pf(U1), (m.Math.abs(e - n) <= U1 || e == n || isNaN(e) && isNaN(n) ? 0 : e < n ? -1 : e > n ? 1 : $d(isNaN(e), isNaN(n))) < 0; } - function lBe(e, n) { + function a_e(e, n) { return rh(), rh(), pf(U1), (m.Math.abs(e - n) <= U1 || e == n || isNaN(e) && isNaN(n) ? 0 : e < n ? -1 : e > n ? 1 : $d(isNaN(e), isNaN(n))) <= 0; } function tee(e) { @@ -15526,13 +15616,13 @@ function WDn() { } function rb(e) { var n, t; - for (t = RJe(e), n = null; e.c == 2; ) - vt(e), n || (n = (kt(), kt(), new l6(2)), Qd(n, t), t = n), t.Hm(RJe(e)); + for (t = _Je(e), n = null; e.c == 2; ) + vt(e), n || (n = (kt(), kt(), new l6(2)), Qd(n, t), t = n), t.Hm(_Je(e)); return t; } - function _M(e, n) { + function BM(e, n) { var t, i, r; - return e.Zj(), i = n == null ? 0 : Gt(n), r = (i & pt) % e.d.length, t = Nne(e, r, i, n), t ? (hNe(e, t), t.kd()) : null; + return e.Zj(), i = n == null ? 0 : Gt(n), r = (i & pt) % e.d.length, t = Nne(e, r, i, n), t ? (lNe(e, t), t.kd()) : null; } function Gh(e, n, t) { var i, r, c, s; @@ -15540,26 +15630,26 @@ function WDn() { i = m.Math.min(r + 1e4, c), s += p2n(e.slice(r, i)), r = i; return s; } - function aBe(e, n) { + function d_e(e, n) { var t, i, r; if (e.c) Q0(e.c, n); else for (t = n - Ns(e), r = new x(e.a); r.a < r.c.c.length; ) - i = u(A(r), 167), aBe(i, Ns(i) + t); + i = u(A(r), 167), d_e(i, Ns(i) + t); } - function dBe(e, n) { + function b_e(e, n) { var t, i, r; if (e.c) Y0(e.c, n); else for (t = n - Zu(e), r = new x(e.d); r.a < r.c.c.length; ) - i = u(A(r), 167), dBe(i, Zu(i) + t); + i = u(A(r), 167), b_e(i, Zu(i) + t); } - function bBe(e, n) { + function w_e(e, n) { return e.e > n.e ? 1 : e.e < n.e ? -1 : e.d > n.d ? e.e : e.d < n.d ? -n.e : e.e * lZ(e.a, n.a, e.d); } - function wBe(e) { + function g_e(e) { return e >= 48 && e < 48 + m.Math.min(10, 10) ? e - 48 : e >= 97 && e < 97 ? e - 97 + 10 : e >= 65 && e < 65 ? e - 65 + 10 : -1; } function xkn(e, n) { @@ -15575,7 +15665,7 @@ function WDn() { return YX(e, e.a, n), e; } function ree(e) { - return A$(), N(e, 166) ? u(rn(WE, rYe), 296).Qg(e) : eu(WE, Rs(e)) ? u(rn(WE, Rs(e)), 296).Qg(e) : null; + return A$(), N(e, 166) ? u(rn(WE, cYe), 296).Qg(e) : eu(WE, Rs(e)) ? u(rn(WE, Rs(e)), 296).Qg(e) : null; } function Au(e) { var n, t; @@ -15587,11 +15677,11 @@ function WDn() { } function $kn(e, n, t, i) { var r, c; - n.c.length != 0 && (r = r$n(t, i), c = aAn(n), fi(Y$(new Ge(null, new He(c, 1)), new V3e()), new NIe(e, t, r, i))); + n.c.length != 0 && (r = r$n(t, i), c = aAn(n), fi(Y$(new Ge(null, new He(c, 1)), new Q3e()), new FIe(e, t, r, i))); } function Mkn(e, n) { var t, i, r, c; - return i = e.a.length - 1, t = n - e.b & i, c = e.c - n & i, r = e.c - e.b & i, mMe(t < r), t >= c ? (D6n(e, n), -1) : (L6n(e, n), 1); + return i = e.a.length - 1, t = n - e.b & i, c = e.c - n & i, r = e.c - e.b & i, vMe(t < r), t >= c ? (D6n(e, n), -1) : (L6n(e, n), 1); } function Tkn(e, n) { var t, i; @@ -15617,40 +15707,40 @@ function WDn() { case vie: return Up(e); case D3: - return RMe(e); + return _Me(e); default: return e == null ? 0 : R0(e); } } function Skn(e) { if (JM(I5, e)) - return en(), _5; - if (JM(V_, e)) + return en(), B5; + if (JM(VB, e)) return en(), Y1; throw $(new on("Expecting true or false")); } function Ikn(e, n) { return e.e < n.e ? -1 : e.e > n.e ? 1 : e.f < n.f ? -1 : e.f > n.f ? 1 : Gt(e) - Gt(n); } - function gBe(e, n) { + function p_e(e, n) { var t; return z(n) === z(e) ? !0 : !N(n, 22) || (t = u(n, 22), t.gc() != e.gc()) ? !1 : e.Hc(t); } function JM(e, n) { - return Ze(e), n == null ? !1 : _e(e, n) ? !0 : e.length == n.length && _e(e.toLowerCase(), n.toLowerCase()); + return Ze(e), n == null ? !1 : Be(e, n) ? !0 : e.length == n.length && Be(e.toLowerCase(), n.toLowerCase()); } function Lw(e) { var n, t; - return iu(e, -129) > 0 && iu(e, 128) < 0 ? (lSe(), n = Xn(e) + 128, t = bse[n], !t && (t = bse[n] = new Tz(e)), t) : new Tz(e); + return iu(e, -129) > 0 && iu(e, 128) < 0 ? (aSe(), n = Xn(e) + 128, t = bse[n], !t && (t = bse[n] = new Tz(e)), t) : new Tz(e); } function A3() { - A3 = G, gk = new VA(Wf, 0), ioe = new VA("INSIDE_PORT_SIDE_GROUPS", 1), bG = new VA("GROUP_MODEL_ORDER", 2), wG = new VA(RB, 3); + A3 = G, gk = new VA(Wf, 0), ioe = new VA("INSIDE_PORT_SIDE_GROUPS", 1), bG = new VA("GROUP_MODEL_ORDER", 2), wG = new VA(R_, 3); } function GM(e) { var n, t, i; if (i = e.Gh(), !i) for (n = 0, t = e.Mh(); t; t = t.Mh()) { - if (++n > jB) + if (++n > j_) return t.Nh(); if (i = t.Gh(), i || t == e) break; @@ -15659,7 +15749,7 @@ function WDn() { } function Ckn(e) { var n; - return e.b || fan(e, (n = f0n(e.e, e.a), !n || !_e(V_, Uf((!n.b && (n.b = new Ds((Ue(), Tr), Ic, n)), n.b), "qualified")))), e.c; + return e.b || fan(e, (n = f0n(e.e, e.a), !n || !Be(VB, Uf((!n.b && (n.b = new Ds((Ue(), Tr), Ic, n)), n.b), "qualified")))), e.c; } function Pkn(e) { var n, t; @@ -15671,7 +15761,7 @@ function WDn() { function Okn(e, n) { ID(); var t, i; - for (i = new fn(dn(Jh(e).a.Jc(), new Q())); xn(i); ) + for (i = new fn(dn(Jh(e).a.Jc(), new Y())); xn(i); ) if (t = u(pn(i), 17), t.d.i == n || t.c.i == n) return t; return null; @@ -15689,14 +15779,14 @@ function WDn() { var i, r, c; return i = u(F(js(e.a), n), 87), c = (r = i.c, r || (Ue(), Ch)), (c.Sh() ? D1(e.b, u(c, 52)) : c) == t ? ST(i) : kv(i, t), c; } - function pBe(e, n, t) { + function m_e(e, n, t) { var i, r, c; for (c = new x(t.a); c.a < c.c.c.length; ) - r = u(A(c), 225), i = new yx(u(rn(e.a, r.b), 68)), he(n.a, i), pBe(e, i, r); + r = u(A(c), 225), i = new yx(u(rn(e.a, r.b), 68)), he(n.a, i), m_e(e, i, r); } - function mBe(e, n, t) { + function v_e(e, n, t) { var i, r, c; - i = n.c.p, c = n.p, e.b[i][c] = new KIe(e, n), t && (e.a[i][c] = new Y8e(n), r = u(y(n, (te(), Ib)), 9), r && Je(e.d, r, n)); + i = n.c.p, c = n.p, e.b[i][c] = new VIe(e, n), t && (e.a[i][c] = new Z8e(n), r = u(y(n, (te(), Ib)), 9), r && Je(e.d, r, n)); } function oee(e, n, t) { this.c = e, this.f = new le(), this.e = new er(), this.j = new tV(), this.n = new tV(), this.b = n, this.g = new df(n.c, n.d, n.b, n.a), this.a = t; @@ -15706,31 +15796,31 @@ function WDn() { for (this.a = new ul(), this.d = new vi(), this.e = 0, t = e, i = 0, r = t.length; i < r; ++i) n = t[i], !this.f && (this.f = n), RD(this, n); } - function vBe(e) { - Uh(), e.length == 0 ? (this.e = 0, this.d = 1, this.a = I(T(Wn, 1), lt, 30, 15, [0])) : (this.e = 1, this.d = e.length, this.a = e, C6(this)); + function k_e(e) { + Uh(), e.length == 0 ? (this.e = 0, this.d = 1, this.a = I(S(Wn, 1), lt, 30, 15, [0])) : (this.e = 1, this.d = e.length, this.a = e, C6(this)); } function c9(e, n, t) { - fje.call(this), this.a = W(jYe, Fie, 216, (qf(), I(T(tg, 1), ce, 237, 0, [Mc, ku, Tc])).length, 0, 1), this.b = e, this.d = n, this.c = t; + hje.call(this), this.a = W(EYe, Fie, 216, (qf(), I(S(tg, 1), ce, 237, 0, [Mc, ku, Tc])).length, 0, 1), this.b = e, this.d = n, this.c = t; } function Fkn(e) { var n, t, i, r, c, s; - for (s = u(y(e, (te(), $t)), 12), K(s, e4, e.i.n.b), n = _h(e.e), i = n, r = 0, c = i.length; r < c; ++r) + for (s = u(y(e, (te(), $t)), 12), K(s, e4, e.i.n.b), n = Bh(e.e), i = n, r = 0, c = i.length; r < c; ++r) t = i[r], Ki(t, s); } function Rkn(e) { var n, t, i, r, c, s; - for (t = u(y(e, (te(), $t)), 12), K(t, e4, e.i.n.b), n = _h(e.g), r = n, c = 0, s = r.length; c < s; ++c) + for (t = u(y(e, (te(), $t)), 12), K(t, e4, e.i.n.b), n = Bh(e.g), r = n, c = 0, s = r.length; c < s; ++c) i = r[c], br(i, t); } - function kBe(e, n) { + function y_e(e, n) { var t, i; return t = n.ni(e.a), t && (i = zn(Uf((!t.b && (t.b = new Ds((Ue(), Tr), Ic, t)), t.b), gt)), i != null) ? i : n.ve(); } - function Bkn(e, n) { + function _kn(e, n) { var t, i; return t = n.ni(e.a), t && (i = zn(Uf((!t.b && (t.b = new Ds((Ue(), Tr), Ic, t)), t.b), gt)), i != null) ? i : n.ve(); } - function _kn(e, n) { + function Bkn(e, n) { var t, i; return t = Zc(e.a.c.p, n.a.c.p), t != 0 ? t : (i = Zc(e.a.d.i.p, n.a.d.i.p), i != 0 ? i : Zc(n.a.d.p, e.a.d.p)); } @@ -15745,33 +15835,33 @@ function WDn() { } function Hkn() { var e; - return XS != 0 && (e = Date.now(), e - HQe > 2e3 && (HQe = e, KS = m.setTimeout(xan, 10))), XS++ == 0 ? (u5n((aW(), rse)), !0) : !1; + return XS != 0 && (e = Date.now(), e - qQe > 2e3 && (qQe = e, KS = m.setTimeout(xan, 10))), XS++ == 0 ? (u5n((aW(), rse)), !0) : !1; } function qkn(e, n, t) { var i; - (lYe ? (ikn(e), !0) : aYe || bYe ? (Wm(), !0) : dYe && (Wm(), !1)) && (i = new ATe(n), i.b = t, Ujn(e, i)); + (aYe ? (ikn(e), !0) : dYe || wYe ? (Wm(), !0) : bYe && (Wm(), !1)) && (i = new xTe(n), i.b = t, Ujn(e, i)); } function wF(e, n) { var t; - t = !e.A.Gc((Js(), y0)) || e.q == (Ui(), Vc), e.u.Gc((ls(), ba)) ? t ? aOn(e, n) : vze(e, n) : e.u.Gc(dd) && (t ? LPn(e, n) : Lze(e, n)); + t = !e.A.Gc((Js(), y0)) || e.q == (Ui(), Vc), e.u.Gc((ls(), ba)) ? t ? aOn(e, n) : kze(e, n) : e.u.Gc(dd) && (t ? LPn(e, n) : Dze(e, n)); } function Ukn(e, n, t) { var i, r; VF(e.e, n, t, (be(), an)), VF(e.i, n, t, gn), e.a && (r = u(y(n, (te(), $t)), 12), i = u(y(t, $t), 12), FD(e.g, r, i)); } - function yBe(e) { + function j_e(e) { var n; z(re(e, (tt(), wp))) === z((ea(), XC)) && (Qt(e) ? (n = u(re(Qt(e), wp), 347), Pt(e, wp, n)) : Pt(e, wp, b8)); } - function jBe(e, n, t) { + function E_e(e, n, t) { return new df(m.Math.min(e.a, n.a) - t / 2, m.Math.min(e.b, n.b) - t / 2, m.Math.abs(e.a - n.a) + t, m.Math.abs(e.b - n.b) + t); } - function EBe(e) { + function A_e(e) { var n; - this.d = new le(), this.j = new er(), this.g = new er(), n = e.g.b, this.f = u(y(_i(n), (ae(), co)), 86), this.e = _(H(UM(n, vg))); + this.d = new le(), this.j = new er(), this.g = new er(), n = e.g.b, this.f = u(y(Bi(n), (ae(), co)), 86), this.e = B(H(UM(n, vg))); } - function ABe(e) { - this.d = new le(), this.e = new T1(), this.c = W(Wn, lt, 30, (be(), I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an])).length, 15, 1), this.b = e; + function x_e(e) { + this.d = new le(), this.e = new T1(), this.c = W(Wn, lt, 30, (be(), I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an])).length, 15, 1), this.b = e; } function fee(e, n, t) { var i; @@ -15792,7 +15882,7 @@ function WDn() { throw $(new Lh("Node did not exist in input.")); return ote(e, n), yR(e, n), Yne(e, n, t), null; } - function xBe(e, n) { + function $_e(e, n) { var t, i; for (i = e.a.length, n.length < i && (n = IA(new Array(i), n)), t = 0; t < i; ++t) ai(n, t, e.a[t]); @@ -15811,7 +15901,7 @@ function WDn() { ; return n; } - function $Be(e, n, t) { + function M_e(e, n, t) { var i, r; r = u(Fy(n.f), 214); try { @@ -15820,9 +15910,9 @@ function WDn() { throw c = gi(c), N(c, 101) ? (i = c, $(i)) : $(c); } } - function MBe(e, n, t) { + function T_e(e, n, t) { var i, r, c, s, f, h; - return i = null, f = cie(_6(), n), c = null, f && (r = null, h = iie(f, t), s = null, h != null && (s = e.of(f, h)), r = s, c = r), i = c, i; + return i = null, f = cie(B6(), n), c = null, f && (r = null, h = iie(f, t), s = null, h != null && (s = e.of(f, h)), r = s, c = r), i = c, i; } function Wkn(e, n, t, i) { var r, c, s; @@ -15837,15 +15927,15 @@ function WDn() { } function HM(e, n, t) { var i; - n.a.length > 0 && (he(e.b, new GTe(n.a, t)), i = n.a.length, 0 < i ? n.a = Go(n.a, 0, 0) : 0 > i && (n.a += F$e(W(Oo, Xh, 30, -i, 15, 1)))); + n.a.length > 0 && (he(e.b, new HTe(n.a, t)), i = n.a.length, 0 < i ? n.a = Go(n.a, 0, 0) : 0 > i && (n.a += R$e(W(Oo, Xh, 30, -i, 15, 1)))); } - function TBe(e, n, t) { + function S_e(e, n, t) { var i, r, c; if (!t[n.d]) for (t[n.d] = !0, r = new x(y2(n)); r.a < r.c.c.length; ) - i = u(A(r), 217), c = OM(i, n), TBe(e, c, t); + i = u(A(r), 217), c = OM(i, n), S_e(e, c, t); } - function SBe(e, n) { + function I_e(e, n) { var t, i, r, c; for (t = 0, r = new x(n.a); r.a < r.c.c.length; ) i = u(A(r), 9), c = i.o.a + i.d.c + i.d.b + e.j, t = m.Math.max(t, c); @@ -15853,7 +15943,7 @@ function WDn() { } function Wd(e, n, t) { var i, r, c; - return r = u(rn(e.e, n), 393), r ? (c = gK(r, t), H$e(e, r), c) : (i = new qK(e, n, t), ht(e.e, n, i), vCe(i), null); + return r = u(rn(e.e, n), 393), r ? (c = gK(r, t), q$e(e, r), c) : (i = new qK(e, n, t), ht(e.e, n, i), kCe(i), null); } function Kkn(e, n) { var t; @@ -15862,7 +15952,7 @@ function WDn() { return ote(e, n), yR(e, n), Yne(e, n, t), null; } function pF() { - return _T(), I(T(KYe, 1), ce, 168, 0, [WYe, zYe, XYe, RYe, FYe, BYe, GYe, JYe, _Ye, UYe, qYe, HYe, DYe, LYe, NYe, PYe, CYe, OYe, SYe, TYe, IYe, nG]); + return BT(), I(S(VYe, 1), ce, 168, 0, [XYe, WYe, KYe, _Ye, RYe, BYe, HYe, GYe, JYe, zYe, UYe, qYe, NYe, DYe, FYe, OYe, PYe, LYe, IYe, SYe, CYe, nG]); } function Hv(e) { switch (e.g) { @@ -15932,18 +16022,18 @@ function WDn() { else for (i = e.a.a, t = 0; t < n; ++t) i = i.a; - return new yTe(e, n, i); + return new jTe(e, n, i); } - function IBe(e) { - this.b = new le(), this.e = new le(), this.d = e, this.a = !Hm(mt(new Ge(null, new ww(new fh(e.b))), new Dm(new Epe()))).zd((Ad(), V3)); + function C_e(e) { + this.b = new le(), this.e = new le(), this.d = e, this.a = !Hm(mt(new Ge(null, new ww(new fh(e.b))), new Dm(new Ape()))).zd((Ad(), V3)); } function Ykn(e) { var n; e.g && (e.c.ig() ? e.f : e.a) && (n = e.c.ig() ? e.f : e.a, bte(n.a, e.o, !0), bte(n.a, e.o, !1), K(e.o, (ae(), oi), (Ui(), k0))); } - function CBe(e, n) { + function P_e(e, n) { var t, i, r; - r = n.d.i, i = r.k, !(i == (cn(), si) || i == Eh) && (t = new fn(dn(Ht(r).a.Jc(), new Q())), xn(t) && ht(e.k, n, u(pn(t), 17))); + r = n.d.i, i = r.k, !(i == (cn(), si) || i == Eh) && (t = new fn(dn(Ht(r).a.Jc(), new Y())), xn(t) && ht(e.k, n, u(pn(t), 17))); } function Zkn(e, n) { return Ql(), Ct((e.a.b == 0 ? new ue(e.c.e.a, e.c.e.b) : u(Ym(e.a), 8)).b, (n.a.b == 0 ? new ue(n.c.e.a, n.c.e.b) : u(Ym(n.a), 8)).b); @@ -15961,7 +16051,7 @@ function WDn() { var t, i, r; return i = We(e.Ah(), n), t = n - e.gi(), t < 0 ? (r = e.Fh(i), r >= 0 ? e.Th(r) : uR(e, i)) : t < 0 ? uR(e, i) : u(i, 69).uk().zk(e, e.ei(), t); } - function PBe(e) { + function O_e(e) { var n, t, i; for (i = (!e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), e.o), t = i.c.Jc(); t.e != t.i.gc(); ) n = u(t.Wj(), 45), n.kd(); @@ -15971,7 +16061,7 @@ function WDn() { var n; if (N(e.a, 4)) { if (n = ree(e.a), n == null) - throw $(new qr(fKe + e.b + "'. " + oKe + (Gl(XE), XE.k) + aue)); + throw $(new qr(hKe + e.b + "'. " + fKe + (Gl(XE), XE.k) + aue)); return n; } else return e.a; @@ -16002,16 +16092,16 @@ function WDn() { function qM(e) { var n, t, i, r; for (r = 0, t = 0, i = e.length; t < i; t++) - n = (bn(t, e.length), e.charCodeAt(t)), n >= 64 && n < 128 && (r = Bh(r, hl(1, n - 64))); + n = (bn(t, e.length), e.charCodeAt(t)), n >= 64 && n < 128 && (r = _h(r, hl(1, n - 64))); return r; } function UM(e, n) { var t, i; - return i = null, Et(e, (tt(), vm)) && (t = u(y(e, vm), 105), t.nf(n) && (i = t.mf(n))), i == null && _i(e) && (i = y(_i(e), n)), i; + return i = null, Et(e, (tt(), vm)) && (t = u(y(e, vm), 105), t.nf(n) && (i = t.mf(n))), i == null && Bi(e) && (i = y(Bi(e), n)), i; } function r8n(e, n) { var t; - return t = u(y(e, (ae(), Vr)), 78), gL(n, KZe) ? t ? Fs(t) : (t = new ms(), K(e, Vr, t)) : t && K(e, Vr, null), t; + return t = u(y(e, (ae(), Vr)), 78), gL(n, VZe) ? t ? Fs(t) : (t = new ms(), K(e, Vr, t)) : t && K(e, Vr, null), t; } function c8n(e, n) { var t, i, r; @@ -16019,14 +16109,14 @@ function WDn() { t = u(i.Pb(), 294), t.c == t.f ? Vv(e, t, t.c) : vEn(e, t) || sn(r.c, t); return r; } - function OBe(e, n) { + function L_e(e, n) { var t, i, r; for (t = e.o, r = u(u(Mt(e.r, n), 22), 83).Jc(); r.Ob(); ) - i = u(r.Pb(), 115), i.e.a = syn(i, t.a), i.e.b = t.b * _(H(i.b.mf(iI))); + i = u(r.Pb(), 115), i.e.a = syn(i, t.a), i.e.b = t.b * B(H(i.b.mf(iI))); } function u8n(e, n) { var t, i, r, c; - return r = e.k, t = _(H(y(e, (te(), Cb)))), c = n.k, i = _(H(y(n, Cb))), c != (cn(), Ai) ? -1 : r != Ai ? 1 : t == i ? 0 : t < i ? -1 : 1; + return r = e.k, t = B(H(y(e, (te(), Cb)))), c = n.k, i = B(H(y(n, Cb))), c != (cn(), Ai) ? -1 : r != Ai ? 1 : t == i ? 0 : t < i ? -1 : 1; } function s8n(e, n) { var t, i; @@ -16044,7 +16134,7 @@ function WDn() { switch (DW(), this.c = new le(), this.d = e, e.g) { case 0: case 2: - this.a = BV(toe), this.b = ii; + this.a = _V(toe), this.b = ii; break; case 3: case 1: @@ -16053,33 +16143,33 @@ function WDn() { } function o8n(e) { var n; - Yp(u(y(e, (ae(), oi)), 102)) && (n = e.b, MGe((qe(0, n.c.length), u(n.c[0], 25))), MGe(u(pe(n, n.c.length - 1), 25))); + Yp(u(y(e, (ae(), oi)), 102)) && (n = e.b, TGe((qe(0, n.c.length), u(n.c[0], 25))), TGe(u(pe(n, n.c.length - 1), 25))); } function f8n(e, n) { - n.Tg("Self-Loop post-processing", 1), fi(mt(mt(cc(new Ge(null, new He(e.b, 16)), new y2e()), new j2e()), new E2e()), new A2e()), n.Ug(); + n.Tg("Self-Loop post-processing", 1), fi(mt(mt(cc(new Ge(null, new He(e.b, 16)), new j2e()), new E2e()), new A2e()), new x2e()), n.Ug(); } - function LBe(e, n, t) { + function D_e(e, n, t) { var i, r; if (e.c) Es(e.c, e.c.i + n), As(e.c, e.c.j + t); else for (r = new x(e.b); r.a < r.c.c.length; ) - i = u(A(r), 167), LBe(i, n, t); + i = u(A(r), 167), D_e(i, n, t); } function h8n(e) { var n, t, i; for (i = e.c.a, e.p = (Jn(i), new os(i)), t = new x(i); t.a < t.c.c.length; ) n = u(A(t), 9), n.p = GEn(n).a; - ze(), Di(e.p, new g3e()); + ze(), Di(e.p, new p3e()); } function l8n(e, n) { var t, i; if (e.j.length != n.j.length) return !1; for (t = 0, i = e.j.length; t < i; t++) - if (!_e(e.j[t], n.j[t])) return !1; + if (!Be(e.j[t], n.j[t])) return !1; return !0; } - function DBe(e, n) { + function N_e(e, n) { ze(); var t, i, r, c; for (t = e, c = n, N(e, 22) && !N(n, 22) && (t = n, c = e), r = t.Jc(); r.Ob(); ) @@ -16098,12 +16188,12 @@ function WDn() { } return !1; } - function NBe(e) { + function F_e(e) { var n; return n = new w1(), n.a += "n", e.k != (cn(), si) && it(it((n.a += "(", n), jL(e.k).toLowerCase()), ")"), it((n.a += "_", n), I7(e)), n.a; } function u9() { - u9 = G, ple = new ry(jce, 0), FH = new ry(HB, 1), RH = new ry("LINEAR_SEGMENTS", 2), Bk = new ry("BRANDES_KOEPF", 3), _k = new ry(OXe, 4); + u9 = G, ple = new ry(jce, 0), FH = new ry(H_, 1), RH = new ry("LINEAR_SEGMENTS", 2), _k = new ry("BRANDES_KOEPF", 3), Bk = new ry(LXe, 4); } function x3(e, n, t, i) { var r; @@ -16121,7 +16211,7 @@ function WDn() { QZ(e, n); } function Pt(e, n, t) { - return t == null ? (!e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), _M(e.o, n)) : (!e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), O7(e.o, n, t)), e; + return t == null ? (!e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), BM(e.o, n)) : (!e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), O7(e.o, n, t)), e; } function qc(e, n) { var t; @@ -16132,9 +16222,9 @@ function WDn() { throw i = gi(i), N(i, 112) ? $(new lu("Can't get element " + n)) : $(i); } } - function FBe(e, n) { + function R_e(e, n) { var t; - switch (t = u(_r(e.b, n), 127).n, n.g) { + switch (t = u(Br(e.b, n), 127).n, n.g) { case 1: e.t >= 0 && (t.d = e.t); break; @@ -16147,13 +16237,13 @@ function WDn() { var n; n = e.a; do - n = u(pn(new fn(dn(bi(n).a.Jc(), new Q()))), 17).c.i, n.k == (cn(), yi) && e.b.Ec(n); + n = u(pn(new fn(dn(bi(n).a.Jc(), new Y()))), 17).c.i, n.k == (cn(), yi) && e.b.Ec(n); while (n.k == (cn(), yi)); - e.b = _s(e.b); + e.b = Bs(e.b); } - function RBe(e, n) { + function __e(e, n) { var t, i, r; - for (r = e, i = new fn(dn(bi(n).a.Jc(), new Q())); xn(i); ) + for (r = e, i = new fn(dn(bi(n).a.Jc(), new Y())); xn(i); ) t = u(pn(i), 17), t.c.i.c && (r = m.Math.max(r, t.c.i.c.p)); return r; } @@ -16169,15 +16259,15 @@ function WDn() { t = u(i.Pb(), 115), r += t.d.b + t.b.Kf().a + t.d.c, i.Ob() && (r += e.w); return r; } - function BBe(e) { + function B_e(e) { var n, t, i, r; if (i = 0, r = Jw(e), r.c.length == 0) return 1; for (t = new x(r); t.a < t.c.c.length; ) - n = u(A(t), 26), i += BBe(n); + n = u(A(t), 26), i += B_e(n); return i; } - function _Be(e) { + function J_e(e) { var n, t; for (this.b = new le(), this.c = e, this.a = !1, t = new x(e.a); t.a < t.c.c.length; ) n = u(A(t), 9), this.a = this.a | n.k == (cn(), si); @@ -16200,10 +16290,10 @@ function WDn() { } function m8n(e, n, t, i) { var r, c; - c = n.nf((tt(), pp)) ? u(n.mf(pp), 22) : e.j, r = l9n(c), r != (_T(), nG) && (t && !tee(r) || bne(Oxn(e, r, i), n)); + c = n.nf((tt(), pp)) ? u(n.mf(pp), 22) : e.j, r = l9n(c), r != (BT(), nG) && (t && !tee(r) || bne(Oxn(e, r, i), n)); } function yF(e, n) { - return Hi(e) ? !!NQe[n] : e.Qm ? !!e.Qm[n] : rw(e) ? !!DQe[n] : iw(e) ? !!LQe[n] : !1; + return Hi(e) ? !!FQe[n] : e.Qm ? !!e.Qm[n] : rw(e) ? !!NQe[n] : iw(e) ? !!DQe[n] : !1; } function v8n(e) { switch (e.g) { @@ -16229,20 +16319,20 @@ function WDn() { N2n(e.c, n, t); } else - nOe(e.c, n, t); + tOe(e.c, n, t); e.a[n.p][t.p] = e.c.i, e.a[t.p][n.p] = e.c.e; } - function JBe(e) { + function G_e(e) { var n, t; if (e == null) return null; - for (t = W(xl, oe, 199, e.length, 0, 2), n = 0; n < t.length; n++) - t[n] = u(Bmn(e[n], e[n].length), 199); + for (t = W(xl, fe, 199, e.length, 0, 2), n = 0; n < t.length; n++) + t[n] = u(_mn(e[n], e[n].length), 199); return t; } - function GBe(e) { + function H_e(e) { var n; - n = u(y(e, (Ac(), dae)), 104), K(e, (Bt(), f4), new ue(0, 0)), Jqe(new zy(), e, n.b - _(H(y(e, nq))), n.d - _(H(y(e, tq)))); + n = u(y(e, (Ac(), dae)), 104), K(e, (_t(), f4), new ue(0, 0)), Gqe(new zy(), e, n.b - B(H(y(e, nq))), n.d - B(H(y(e, tq)))); } function XM(e) { var n; @@ -16250,29 +16340,29 @@ function WDn() { return t$(e), e.sl() && (n = w9(e.e, e.b, e.c, e.a, e.j), e.j = n), e.g = e.a, ++e.a, ++e.c, e.i = 0, e.j; throw $(new oc()); } - function HBe(e, n, t) { - t.Tg("Compound graph preprocessor", 1), e.a = new W0(), wze(e, n, null), WIn(e, n), m$n(e), K(n, (te(), Sfe), e.a), e.a = null, Fc(e.b), t.Ug(); + function q_e(e, n, t) { + t.Tg("Compound graph preprocessor", 1), e.a = new W0(), gze(e, n, null), WIn(e, n), m$n(e), K(n, (te(), Sfe), e.a), e.a = null, Fc(e.b), t.Ug(); } - function qBe(e, n, t) { + function U_e(e, n, t) { var i, r, c; - for (r = new fn(dn((n ? bi(e) : Ht(e)).a.Jc(), new Q())); xn(r); ) - i = u(pn(r), 17), c = n ? i.c.i : i.d.i, c.k == (cn(), _c) && Ni(c, t); + for (r = new fn(dn((n ? bi(e) : Ht(e)).a.Jc(), new Y())); xn(r); ) + i = u(pn(r), 17), c = n ? i.c.i : i.d.i, c.k == (cn(), Bc) && Ni(c, t); } - function UBe(e, n, t) { + function z_e(e, n, t) { var i, r, c; - return i = n.i.j.c.length, Et(n, (te(), _t)) && Et(t, _t) ? (r = hb(n, t, e.b, i), c = hb(t, n, e.b, i), r < c ? -1 : r > c ? 1 : 0) : 0; + return i = n.i.j.c.length, Et(n, (te(), Bt)) && Et(t, Bt) ? (r = hb(n, t, e.b, i), c = hb(t, n, e.b, i), r < c ? -1 : r > c ? 1 : 0) : 0; } function Dw() { Dw = G, aC = new ex(Wf, 0), DH = new ex("PORT_POSITION", 1), fp = new ex("NODE_SIZE_WHERE_SPACE_PERMITS", 2), op = new ex("NODE_SIZE", 3); } function y8n(e, n) { var t, i, r; - for (n.Tg("Untreeify", 1), t = u(y(e, (Bt(), rae)), 16), r = t.Jc(); r.Ob(); ) + for (n.Tg("Untreeify", 1), t = u(y(e, (_t(), rae)), 16), r = t.Jc(); r.Ob(); ) i = u(r.Pb(), 65), rt(i.b.d, i), rt(i.c.b, i); n.Ug(); } function wl() { - wl = G, Wq = new n6("AUTOMATIC", 0), AE = new n6(_3, 1), xE = new n6(J3, 2), GC = new n6("TOP", 3), _C = new n6(Bie, 4), JC = new n6(g5, 5); + wl = G, Wq = new n6("AUTOMATIC", 0), AE = new n6(B3, 1), xE = new n6(J3, 2), GC = new n6("TOP", 3), BC = new n6(_ie, 4), JC = new n6(g5, 5); } function A2(e, n, t) { var i, r; @@ -16283,7 +16373,7 @@ function WDn() { } function Ha(e, n) { var t, i, r; - if (r = E_e(e, n), r >= 0) return r; + if (r = ABe(e, n), r >= 0) return r; if (e.ml()) { for (i = 0; i < e.i; ++i) if (t = e.nl(u(e.g[i], 57)), z(t) === z(n)) @@ -16293,7 +16383,7 @@ function WDn() { } function lee(e, n) { if (this.a = u(Jn(e), 254), this.b = u(Jn(n), 254), e.Cd(n) > 0 || e == (sO(), LJ) || n == (oO(), DJ)) - throw $(new on("Invalid range: " + eOe(e, n))); + throw $(new on("Invalid range: " + nOe(e, n))); } function aee(e, n, t, i) { n5(); @@ -16368,28 +16458,28 @@ function WDn() { case 0: return null; case 1: - return new LNe(); + return new DNe(); case 2: return new oW(); default: - throw $(new on(N_ + (e.f != null ? e.f : "" + e.g))); + throw $(new on(NB + (e.f != null ? e.f : "" + e.g))); } } - function zBe(e) { + function W_e(e) { var n; - return n = _(H(re(e, (tt(), Sg)))) * m.Math.sqrt((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a).i), new ue(n, n / _(H(re(e, b4)))); + return n = B(H(re(e, (tt(), Sg)))) * m.Math.sqrt((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a).i), new ue(n, n / B(H(re(e, b4)))); } function EF(e) { var n; - return e.f && e.f.Sh() && (n = u(e.f, 52), e.f = u(D1(e, n), 84), e.f != n && (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 9, 8, n, e.f))), e.f; + return e.f && e.f.Sh() && (n = u(e.f, 52), e.f = u(D1(e, n), 84), e.f != n && (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 9, 8, n, e.f))), e.f; } function AF(e) { var n; - return e.i && e.i.Sh() && (n = u(e.i, 52), e.i = u(D1(e, n), 84), e.i != n && (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 9, 7, n, e.i))), e.i; + return e.i && e.i.Sh() && (n = u(e.i, 52), e.i = u(D1(e, n), 84), e.i != n && (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 9, 7, n, e.i))), e.i; } function Ir(e) { var n; - return e.b && (e.b.Db & 64) != 0 && (n = e.b, e.b = u(D1(e, n), 19), e.b != n && (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 9, 21, n, e.b))), e.b; + return e.b && (e.b.Db & 64) != 0 && (n = e.b, e.b = u(D1(e, n), 19), e.b != n && (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 9, 21, n, e.b))), e.b; } function VM(e, n) { var t, i, r; @@ -16401,7 +16491,7 @@ function WDn() { } function QM() { var e; - Qs(16, fWe), e = xNe(16), this.b = W(NJ, oj, 308, e, 0, 1), this.c = W(NJ, oj, 308, e, 0, 1), this.a = null, this.e = null, this.i = 0, this.f = e - 1, this.g = 0; + Qs(16, hWe), e = $Ne(16), this.b = W(NJ, oj, 308, e, 0, 1), this.c = W(NJ, oj, 308, e, 0, 1), this.a = null, this.e = null, this.i = 0, this.f = e - 1, this.g = 0; } function dh(e) { kK.call(this), this.k = (cn(), si), this.j = (Qs(6, Ww), new bu(6)), this.b = (Qs(2, Ww), new bu(2)), this.d = new tO(), this.f = new tW(), this.a = e; @@ -16415,7 +16505,7 @@ function WDn() { function M8n(e) { var n, t, i; for (n = 0, i = new x(e.c.a); i.a < i.c.c.length; ) - t = u(A(i), 9), n += _f(new fn(dn(Ht(t).a.Jc(), new Q()))); + t = u(A(i), 9), n += Bf(new fn(dn(Ht(t).a.Jc(), new Y()))); return n / e.c.a.c.length; } function xF(e) { @@ -16432,7 +16522,7 @@ function WDn() { return !0; return !1; } - function WBe(e, n, t, i) { + function X_e(e, n, t, i) { var r, c, s; for (r = u(Mt(i ? e.a : e.b, n), 22), s = r.Jc(); s.Ob(); ) if (c = u(s.Pb(), 26), xT(e, t, c)) @@ -16447,7 +16537,7 @@ function WDn() { } function S8n(e) { var n, t; - e.c.length <= 1 || (n = tqe(e, (be(), Mn)), JJe(e, u(n.a, 15).a, u(n.b, 15).a), t = tqe(e, an), JJe(e, u(t.a, 15).a, u(t.b, 15).a)); + e.c.length <= 1 || (n = iqe(e, (be(), Mn)), GJe(e, u(n.a, 15).a, u(n.b, 15).a), t = iqe(e, an), GJe(e, u(t.a, 15).a, u(t.b, 15).a)); } function I8n(e, n, t) { var i, r; @@ -16455,17 +16545,17 @@ function WDn() { Md(r, r.c.length, new Jc(e.a)); Ni(n, (qe(t - 1, r.c.length), u(r.c[t - 1], 25))), e.b[n.p] = t; } - function XBe(e, n) { + function K_e(e, n) { var t, i, r; for (e.b[n.g] = 1, i = Nn(n.d, 0); i.b != i.d.c; ) - t = u(Ln(i), 65), r = t.c, e.b[r.g] == 1 ? rt(e.a, t) : e.b[r.g] == 2 ? e.b[r.g] = 1 : XBe(e, r); + t = u(Ln(i), 65), r = t.c, e.b[r.g] == 1 ? rt(e.a, t) : e.b[r.g] == 2 ? e.b[r.g] = 1 : K_e(e, r); } function MF() { - MF = G, _1e = (mR(), N1e), B1e = new N0(8), new nr((tt(), Ml), B1e), new nr(i1, 8), Vun = L1e, F1e = Gun, R1e = Hun, Kun = new nr(ME, (en(), !1)); + MF = G, B1e = (mR(), N1e), _1e = new N0(8), new nr((tt(), Ml), _1e), new nr(i1, 8), Qun = L1e, F1e = Hun, R1e = qun, Vun = new nr(ME, (en(), !1)); } function C8n(e, n, t) { var i; - t.Tg("Shrinking tree compaction", 1), ve(me(y(n, ($v(), bk)))) ? (Y5n(e, n.f), hDe(n.f, (i = n.c, i))) : hDe(n.f, n.c), t.Ug(); + t.Tg("Shrinking tree compaction", 1), ve(me(y(n, ($v(), bk)))) ? (Y5n(e, n.f), lDe(n.f, (i = n.c, i))) : lDe(n.f, n.c), t.Ug(); } function wee(e, n, t, i) { switch (n) { @@ -16474,11 +16564,11 @@ function WDn() { case 8: return !e.d && (e.d = new Qe(xi, e, 8, 5)), e.d; } - return BZ(e, n, t, i); + return _Z(e, n, t, i); } function TF(e) { var n; - return e.a && e.a.Sh() && (n = u(e.a, 52), e.a = u(D1(e, n), 143), e.a != n && (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 9, 5, n, e.a))), e.a; + return e.a && e.a.Sh() && (n = u(e.a, 52), e.a = u(D1(e, n), 143), e.a != n && (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 9, 5, n, e.a))), e.a; } function Xd(e) { return e < 48 || e > 102 ? -1 : e <= 57 ? e - 48 : e < 65 ? -1 : e <= 70 ? e - 65 + 10 : e < 97 ? -1 : e - 97 + 10; @@ -16489,18 +16579,18 @@ function WDn() { if (n == null) throw $(new Np("null value in entry: " + e + "=null")); } - function KBe(e, n) { + function V_e(e, n) { var t; - return t = I(T(Xi, 1), Gr, 30, 15, [XN(e.a[0], n), XN(e.a[1], n), XN(e.a[2], n)]), e.d && (t[0] = m.Math.max(t[0], t[2]), t[2] = t[0]), t; + return t = I(S(Xi, 1), Gr, 30, 15, [XN(e.a[0], n), XN(e.a[1], n), XN(e.a[2], n)]), e.d && (t[0] = m.Math.max(t[0], t[2]), t[2] = t[0]), t; } - function VBe(e, n) { + function Q_e(e, n) { var t; - return t = I(T(Xi, 1), Gr, 30, 15, [$M(e.a[0], n), $M(e.a[1], n), $M(e.a[2], n)]), e.d && (t[0] = m.Math.max(t[0], t[2]), t[2] = t[0]), t; + return t = I(S(Xi, 1), Gr, 30, 15, [$M(e.a[0], n), $M(e.a[1], n), $M(e.a[2], n)]), e.d && (t[0] = m.Math.max(t[0], t[2]), t[2] = t[0]), t; } function gee(e, n, t) { - Yp(u(y(n, (ae(), oi)), 102)) || (CQ(e, n, qa(n, t)), CQ(e, n, qa(n, (be(), Mn))), CQ(e, n, qa(n, ln)), ze(), Di(n.j, new K8e(e))); + Yp(u(y(n, (ae(), oi)), 102)) || (CQ(e, n, qa(n, t)), CQ(e, n, qa(n, (be(), Mn))), CQ(e, n, qa(n, ln)), ze(), Di(n.j, new V8e(e))); } - function QBe(e) { + function Y_e(e) { var n, t; for (e.c || TCn(e), t = new ms(), n = new x(e.a), A(n); n.a < n.c.c.length; ) rt(t, u(A(n), 410).a); @@ -16532,7 +16622,7 @@ function WDn() { for (s = 0, i = t / e.a.c.length, c = new x(e.a); c.a < c.c.c.length; ) r = u(A(c), 173), T7(r, r.s, r.t + s * i), P8n(r, e.d - r.r + n, i), ++s; } - function YBe(e) { + function Z_e(e) { var n; if (n = F6n(e), !xn(e)) throw $(new lu("position (0) must be less than the number of elements that remained (" + n + ")")); @@ -16540,9 +16630,9 @@ function WDn() { } function F8n(e, n) { var t; - return e.a || (t = W(Xi, Gr, 30, 0, 15, 1), Wg(e.b.a, new Oke(t)), q7e(t, WDe(Ps.prototype.Ke, Ps, [])), e.a = new ETe(t, e.d)), B$(e.a, n); + return e.a || (t = W(Xi, Gr, 30, 0, 15, 1), Wg(e.b.a, new Lke(t)), U7e(t, XDe(Ps.prototype.Ke, Ps, [])), e.a = new ATe(t, e.d)), _$(e.a, n); } - function ZBe(e) { + function eBe(e) { switch (e.g) { case 1: return be(), an; @@ -16566,19 +16656,19 @@ function WDn() { return !0; return !1; } - function B8n(e, n, t) { + function _8n(e, n, t) { t.Tg("Linear segments node placement", 1), e.b = u(y(n, (te(), ip)), 316), iLn(e, n), SIn(e, n), VIn(e, n), OOn(e), e.a = null, e.b = null, t.Ug(); } function pee(e, n) { return Es(n, e.e + e.d + (e.c.c.length == 0 ? 0 : e.b)), As(n, e.f), e.a = m.Math.max(e.a, n.f), e.d += n.g + (e.c.c.length == 0 ? 0 : e.b), he(e.c, n), !0; } - function _8n(e, n) { + function B8n(e, n) { var t, i, r, c, s, f; for (r = n.length - 1, s = 0, f = 0, i = 0; i <= r; i++) c = n[i], t = Vjn(r, i) * vZ(1 - e, r - i) * vZ(e, i), s += c.a * t, f += c.b * t; return new ue(s, f); } - function e_e(e, n) { + function nBe(e, n) { var t, i, r, c, s; for (t = n.gc(), e.Zi(e.i + t), c = n.Jc(), s = e.i, e.i += t, i = s; i < e.i; ++i) r = c.Pb(), d6(e, i, e.Xi(i, r)), e.Ki(i, r), e.Li(); @@ -16586,7 +16676,7 @@ function WDn() { } function J8n(e, n, t) { var i, r, c; - return e.Nj() ? (i = e.Cj(), c = e.Oj(), ++e.j, e.oj(i, e.Xi(i, n)), r = e.Gj(3, null, n, i, c), t ? t.lj(r) : t = r) : _Me(e, e.Cj(), n), t; + return e.Nj() ? (i = e.Cj(), c = e.Oj(), ++e.j, e.oj(i, e.Xi(i, n)), r = e.Gj(3, null, n, i, c), t ? t.lj(r) : t = r) : JMe(e, e.Cj(), n), t; } function G8n(e, n, t) { var i, r, c; @@ -16661,7 +16751,7 @@ function WDn() { } } function YM() { - YM = G, kq = new cx(Wf, 0), _ae = new cx(kXe, 1), Jae = new cx("EDGE_LENGTH_BY_POSITION", 2), Bae = new cx("CROSSING_MINIMIZATION_BY_POSITION", 3); + YM = G, kq = new cx(Wf, 0), Bae = new cx(yXe, 1), Jae = new cx("EDGE_LENGTH_BY_POSITION", 2), _ae = new cx("CROSSING_MINIMIZATION_BY_POSITION", 3); } function PF(e, n) { var t, i; @@ -16671,7 +16761,7 @@ function WDn() { return i; throw $(new Lh("Referenced shape does not exist: " + n)); } - function n_e(e, n) { + function tBe(e, n) { if (e.g == -1) throw $(new Vu()); e.Vj(); @@ -16710,7 +16800,7 @@ function WDn() { throw $(new on("Node " + n + " is neither source nor target of edge " + e)); } function Q8n(e, n, t) { - t.Tg("Self-Loop ordering", 1), fi(du(mt(mt(cc(new Ge(null, new He(n.b, 16)), new g2e()), new p2e()), new m2e()), new v2e()), new k8e(e)), t.Ug(); + t.Tg("Self-Loop ordering", 1), fi(du(mt(mt(cc(new Ge(null, new He(n.b, 16)), new p2e()), new m2e()), new v2e()), new k2e()), new y8e(e)), t.Ug(); } function OF(e, n, t, i, r, c) { var s, f, h, l, a; @@ -16724,14 +16814,14 @@ function WDn() { return !0; return !1; } - function t_e(e) { + function iBe(e) { var n, t, i; for (i = e.f, e.n = W(Xi, Gr, 30, i, 15, 1), e.d = W(Xi, Gr, 30, i, 15, 1), n = 0; n < i; n++) - t = u(pe(e.c.b, n), 25), e.n[n] = SBe(e, t), e.d[n] = SHe(e, t); + t = u(pe(e.c.b, n), 25), e.n[n] = I_e(e, t), e.d[n] = IHe(e, t); } - function i_e(e, n, t, i) { + function rBe(e, n, t, i) { var r; - this.c = e, this.d = n, r = new Dt(), ti(r, t, r.c.b, r.c), this.a = r, this.b = u(y(i, (Ac(), Fb)), 86), this.e = _(H(y(i, gae))), Vze(this); + this.c = e, this.d = n, r = new Dt(), ti(r, t, r.c.b, r.c), this.a = r, this.b = u(y(i, (Ac(), Fb)), 86), this.e = B(H(y(i, gae))), Qze(this); } function LF(e, n) { var t, i, r; @@ -16745,21 +16835,21 @@ function WDn() { } else return r; } - function r_e(e, n) { + function cBe(e, n) { var t, i, r, c, s; for (s = xu(e.e.Ah(), n), c = null, t = u(e.g, 122), r = 0; r < e.i; ++r) i = t[r], s.$l(i.Jk()) && (!c && (c = new oA()), Dn(c, i)); - c && Dze(e, c); + c && Nze(e, c); } - function c_e(e) { + function uBe(e) { var n, t, i; if (!e) return null; if (e.dc()) return ""; for (i = new xa(), t = e.Jc(); t.Ob(); ) - n = t.Pb(), Br(i, zn(n)), i.a += " "; + n = t.Pb(), _r(i, zn(n)), i.a += " "; return uL(i, i.a.length - 1); } - function u_e(e, n) { + function sBe(e, n) { var t = new Array(n), i; switch (e) { case 14: @@ -16780,20 +16870,20 @@ function WDn() { var n, t, i; for (t = new x(e.a.b); t.a < t.c.c.length; ) n = u(A(t), 60), n.c.$b(); - _l(e.d) ? i = e.a.c : i = e.a.d, wu(i, new qke(e)), e.c.bf(e), XHe(e); + Bl(e.d) ? i = e.a.c : i = e.a.d, wu(i, new Uke(e)), e.c.bf(e), KHe(e); } - function s_e(e) { + function oBe(e) { var n, t, i, r; for (t = new x(e.e.c); t.a < t.c.c.length; ) { for (n = u(A(t), 291), r = new x(n.b); r.a < r.c.c.length; ) i = u(A(r), 445), Vte(i); - DGe(n); + NGe(n); } } - function o_e(e) { + function fBe(e) { var n, t, i; for (i = pt, t = new x(e.a); t.a < t.c.c.length; ) - n = u(A(t), 9), Et(n, (te(), _t)) && (i = m.Math.min(i, u(y(n, _t), 15).a)); + n = u(A(t), 9), Et(n, (te(), Bt)) && (i = m.Math.min(i, u(y(n, Bt), 15).a)); return i; } function ZM(e) { @@ -16802,17 +16892,17 @@ function WDn() { n = u(A(t), 173), c = m.Math.max(c, n.r), i += n.d + (r > 0 ? e.c : 0), ++r; e.b = i, e.d = c; } - function f_e(e, n) { + function hBe(e, n) { var t; - return t = I(T(Xi, 1), Gr, 30, 15, [dee(e, (qf(), Mc), n), dee(e, ku, n), dee(e, Tc, n)]), e.f && (t[0] = m.Math.max(t[0], t[2]), t[2] = t[0]), t; + return t = I(S(Xi, 1), Gr, 30, 15, [dee(e, (qf(), Mc), n), dee(e, ku, n), dee(e, Tc, n)]), e.f && (t[0] = m.Math.max(t[0], t[2]), t[2] = t[0]), t; } - function h_e(e) { + function lBe(e) { var n; - Et(e, (ae(), Ob)) && (n = u(y(e, Ob), 22), n.Gc((_w(), Sf)) ? (n.Kc(Sf), n.Ec(If)) : n.Gc(If) && (n.Kc(If), n.Ec(Sf))); + Et(e, (ae(), Ob)) && (n = u(y(e, Ob), 22), n.Gc((Bw(), Sf)) ? (n.Kc(Sf), n.Ec(If)) : n.Gc(If) && (n.Kc(If), n.Ec(Sf))); } - function l_e(e) { + function aBe(e) { var n; - Et(e, (ae(), Ob)) && (n = u(y(e, Ob), 22), n.Gc((_w(), Pf)) ? (n.Kc(Pf), n.Ec(Yo)) : n.Gc(Yo) && (n.Kc(Yo), n.Ec(Pf))); + Et(e, (ae(), Ob)) && (n = u(y(e, Ob), 22), n.Gc((Bw(), Pf)) ? (n.Kc(Pf), n.Ec(Yo)) : n.Gc(Yo) && (n.Kc(Yo), n.Ec(Pf))); } function DF(e, n, t, i) { var r, c, s, f; @@ -16843,10 +16933,10 @@ function WDn() { var n, t; if (!e.e) for (e.e = M$(JV(u(e.f, 26)).i), t = new kn(JV(u(e.f, 26))); t.e != t.i.gc(); ) - n = u(En(t), 125), he(e.e, new Yye(n)); + n = u(En(t), 125), he(e.e, new Zye(n)); return e.e; } - function a_e(e) { + function dBe(e) { var n, t; if (!e.a) for (e.a = M$(w$(u(e.f, 26)).i), t = new kn(w$(u(e.f, 26))); t.e != t.i.gc(); ) @@ -16869,25 +16959,25 @@ function WDn() { function iyn(e) { switch (e.q.g) { case 5: - B_e(e, (be(), ln)), B_e(e, Mn); + BBe(e, (be(), ln)), BBe(e, Mn); break; case 4: - WUe(e, (be(), ln)), WUe(e, Mn); + XUe(e, (be(), ln)), XUe(e, Mn); break; default: - WJe(e, (be(), ln)), WJe(e, Mn); + XJe(e, (be(), ln)), XJe(e, Mn); } } function ryn(e) { switch (e.q.g) { case 5: - __e(e, (be(), gn)), __e(e, an); + JBe(e, (be(), gn)), JBe(e, an); break; case 4: - XUe(e, (be(), gn)), XUe(e, an); + KUe(e, (be(), gn)), KUe(e, an); break; default: - XJe(e, (be(), gn)), XJe(e, an); + KJe(e, (be(), gn)), KJe(e, an); } } function x2(e, n) { @@ -16902,7 +16992,7 @@ function WDn() { t = u(i.Pb(), 37), t5(t, 0, r.b), r.b += t.f.b + n, r.a = m.Math.max(r.a, t.f.a); return r.a > 0 && (r.a += n), r; } - function d_e(e, n) { + function bBe(e, n) { var t, i; if (n.length == 0) return 0; @@ -16910,7 +17000,7 @@ function WDn() { t += Rjn(e, i, n); return t; } - function b_e() { + function wBe() { k9(), this.c = new le(), this.i = new le(), this.e = new ul(), this.f = new ul(), this.g = new ul(), this.j = new le(), this.a = new le(), this.b = new Tn(), this.k = new Tn(); } function NF(e, n) { @@ -16930,15 +17020,15 @@ function WDn() { } function uyn(e) { var n; - return n = (jNe(), XQe), n[e >>> 28] | n[e >> 24 & 15] << 4 | n[e >> 20 & 15] << 8 | n[e >> 16 & 15] << 12 | n[e >> 12 & 15] << 16 | n[e >> 8 & 15] << 20 | n[e >> 4 & 15] << 24 | n[e & 15] << 28; + return n = (ENe(), KQe), n[e >>> 28] | n[e >> 24 & 15] << 4 | n[e >> 20 & 15] << 8 | n[e >> 16 & 15] << 12 | n[e >> 12 & 15] << 16 | n[e >> 8 & 15] << 20 | n[e >> 4 & 15] << 24 | n[e & 15] << 28; } - function w_e(e) { + function gBe(e) { var n, t, i; - e.b == e.c && (i = e.a.length, t = YY(m.Math.max(8, i)) << 1, e.b != 0 ? (n = af(e.a, t), MNe(e, n, i), e.a = n, e.b = 0) : Wb(e.a, t), e.c = i); + e.b == e.c && (i = e.a.length, t = YY(m.Math.max(8, i)) << 1, e.b != 0 ? (n = af(e.a, t), TNe(e, n, i), e.a = n, e.b = 0) : Wb(e.a, t), e.c = i); } function syn(e, n) { var t; - return t = e.b, t.nf((tt(), Ss)) ? t.$f() == (be(), an) ? -t.Kf().a - _(H(t.mf(Ss))) : n + _(H(t.mf(Ss))) : t.$f() == (be(), an) ? -t.Kf().a : n; + return t = e.b, t.nf((tt(), Ss)) ? t.$f() == (be(), an) ? -t.Kf().a - B(H(t.mf(Ss))) : n + B(H(t.mf(Ss))) : t.$f() == (be(), an) ? -t.Kf().a : n; } function I7(e) { var n; @@ -16974,7 +17064,7 @@ function WDn() { var t, i, r; if (n.dc()) return Zm(), Zm(), KE; - for (t = new GMe(e, n.gc()), r = new kn(e); r.e != r.i.gc(); ) + for (t = new HMe(e, n.gc()), r = new kn(e); r.e != r.i.gc(); ) i = En(r), n.Gc(i) && Dn(t, i); return t; } @@ -16992,7 +17082,7 @@ function WDn() { k6((ts(), sr), e), e.Bb |= 1; } function Ut(e, n, t, i, r, c, s, f, h, l, a, d, g, p) { - return ZJe(e, n, i, null, r, c, s, f, h, l, g, !0, p), DZ(e, a), N(e.Cb, 88) && Bw(ks(u(e.Cb, 88)), 2), t && PY(e, t), LZ(e, d), e; + return eGe(e, n, i, null, r, c, s, f, h, l, g, !0, p), DZ(e, a), N(e.Cb, 88) && _w(ks(u(e.Cb, 88)), 2), t && PY(e, t), LZ(e, d), e; } function lyn(e) { var n, t; @@ -17070,7 +17160,7 @@ function WDn() { if (n >= e.i) throw $(new sL(n, e.i)); return ++e.j, t = e.g[n], i = e.i - n - 1, i > 0 && zc(e.g, n + 1, e.g, n, i), ai(e.g, --e.i, null), e.Oi(n, t), e.Li(), t; } - function g_e(e, n) { + function pBe(e, n) { var t, i; return e.Db >> 16 == 17 ? e.Cb.Qh(e, 21, ef, n) : (i = Ir(u(We((t = u(hn(e, 16), 29), t || e.fi()), e.Db >> 16), 19)), e.Cb.Qh(e, i.n, i.f, n)); } @@ -17099,43 +17189,43 @@ function WDn() { return new ue(t, n); } function jee() { - jee = G, $Ze = new Fe(zie, (en(), !1)), EZe = new Fe(Wie, 100), Wse = (F6(), oG), AZe = new Fe(Xie, Wse), xZe = new Fe(Kie, Vh), MZe = new Fe(Vie, ie(pt)); + jee = G, MZe = new Fe(zie, (en(), !1)), AZe = new Fe(Wie, 100), Wse = (F6(), oG), xZe = new Fe(Xie, Wse), $Ze = new Fe(Kie, Vh), TZe = new Fe(Vie, ie(pt)); } - function p_e(e, n) { + function mBe(e, n) { var t, i, r; - for (i = new fn(dn(Jh(e).a.Jc(), new Q())); xn(i); ) + for (i = new fn(dn(Jh(e).a.Jc(), new Y())); xn(i); ) return t = u(pn(i), 17), r = u(n.Kb(t), 9), new lA(Jn(r.n.b + r.o.b / 2)); return D4(), D4(), OJ; } - function m_e(e, n, t) { + function vBe(e, n, t) { var i, r, c, s, f, h, l, a; for (l = 0, r = e.a[n], c = 0, s = r.length; c < s; ++c) for (i = r[c], a = Y6(i, t), h = a.Jc(); h.Ob(); ) f = u(h.Pb(), 12), ht(e.f, f, ie(l++)); } - function v_e(e, n, t) { + function kBe(e, n, t) { var i, r, c, s; if (t) for (r = t.a.length, i = new Sd(r), s = (i.b - i.a) * i.c < 0 ? (v1(), md) : new j1(i); s.Ob(); ) c = u(s.Pb(), 15), Je(e, n, I3(Aw(t, c.a))); } - function k_e(e, n, t) { + function yBe(e, n, t) { var i, r, c, s; if (t) for (r = t.a.length, i = new Sd(r), s = (i.b - i.a) * i.c < 0 ? (v1(), md) : new j1(i); s.Ob(); ) c = u(s.Pb(), 15), Je(e, n, I3(Aw(t, c.a))); } function Eee(e) { - B1(); + _1(); var n; - return n = u(s9(n3(e.k), W(Mr, Bc, 64, 2, 0, 1)), 126), pv(n, 0, n.length, null), n[0] == (be(), ln) && n[1] == an && (ai(n, 0, an), ai(n, 1, ln)), n; + return n = u(s9(n3(e.k), W(Mr, _c, 64, 2, 0, 1)), 126), pv(n, 0, n.length, null), n[0] == (be(), ln) && n[1] == an && (ai(n, 0, an), ai(n, 1, ln)), n; } - function y_e(e, n, t) { + function jBe(e, n, t) { var i, r, c; - return r = q$n(e, n, t), c = gte(e, r), iN(e.b), FD(e, n, t), ze(), Di(r, new rye(e)), i = gte(e, r), iN(e.b), FD(e, t, n), new Ar(ie(c), ie(i)); + return r = q$n(e, n, t), c = gte(e, r), iN(e.b), FD(e, n, t), ze(), Di(r, new cye(e)), i = gte(e, r), iN(e.b), FD(e, t, n), new Ar(ie(c), ie(i)); } - function j_e() { - j_e = G, vrn = et(new wi(), (zi(), Nr), (Qi(), mk)), mC = new zt("linearSegments.inputPrio", ie(0)), vC = new zt("linearSegments.outputPrio", ie(0)); + function EBe() { + EBe = G, krn = et(new wi(), (zi(), Nr), (Qi(), mk)), mC = new zt("linearSegments.inputPrio", ie(0)), vC = new zt("linearSegments.outputPrio", ie(0)); } function M3() { M3 = G, kC = new ix("P1_TREEIFICATION", 0), Wk = new ix("P2_NODE_ORDERING", 1), Xk = new ix("P3_NODE_PLACEMENT", 2), Kk = new ix("P4_EDGE_ROUTING", 3); @@ -17148,9 +17238,9 @@ function WDn() { return Pdn(e, u(n, 85)); if (N(n, 276)) return u(n, 276); - throw $(new on(D5 + wh(new yc(I(T(Li, 1), Ve, 1, 5, [n]))))); + throw $(new on(D5 + wh(new yc(I(S(Li, 1), Ve, 1, 5, [n]))))); } - function E_e(e, n) { + function ABe(e, n) { var t; if (e.Wi() && n != null) { for (t = 0; t < e.i; ++t) @@ -17164,15 +17254,15 @@ function WDn() { } function yyn(e, n, t) { var i, r; - return n.c == (Cr(), yu) && t.c == bs ? -1 : n.c == bs && t.c == yu ? 1 : (i = nRe(n.a, e.a), r = nRe(t.a, e.a), n.c == yu ? r - i : i - r); + return n.c == (Cr(), yu) && t.c == bs ? -1 : n.c == bs && t.c == yu ? 1 : (i = tRe(n.a, e.a), r = tRe(t.a, e.a), n.c == yu ? r - i : i - r); } function R1(e, n, t) { if (t && (n < 0 || n > t.a.c.length)) throw $(new on("index must be >= 0 and <= layer node count")); e.c && Du(e.c.a, e), e.c = t, t && Md(t.a, n, e); } - function A_e(e, n) { - this.c = new Tn(), this.a = e, this.b = n, this.d = u(y(e, (te(), ip)), 316), z(y(e, (ae(), Uhe))) === z((Zy(), NI)) ? this.e = new dje() : this.e = new aje(); + function xBe(e, n) { + this.c = new Tn(), this.a = e, this.b = n, this.d = u(y(e, (te(), ip)), 316), z(y(e, (ae(), Uhe))) === z((Zy(), NI)) ? this.e = new bje() : this.e = new dje(); } function jyn(e, n) { var t, i, r, c; @@ -17180,7 +17270,7 @@ function WDn() { t = u(A(i), 26), c += m.Math.pow(t.g * t.f - n, 2); return r = m.Math.sqrt(c / (e.c.length - 1)), r; } - function x_e(e, n) { + function $Be(e, n) { var t, i, r, c, s; for (i = 0, r = 0, t = 0, s = new x(e); s.a < s.c.c.length; ) c = u(A(s), 186), i = m.Math.max(i, c.e), r += c.b + (t > 0 ? n : 0), ++t; @@ -17189,9 +17279,9 @@ function WDn() { function Eyn(e, n) { var t, i; for (e.b = 0, e.d = new AA(), i = new x(n.a); i.a < i.c.c.length; ) - t = u(A(i), 9), u(y(t, (te(), $k)), 15).a == -1 && (aze(e, t), e.d.a.c.length = 0); + t = u(A(i), 9), u(y(t, (te(), $k)), 15).a == -1 && (dze(e, t), e.d.a.c.length = 0); } - function BF(e, n) { + function _F(e, n) { var t, i; t = e.dd(n); try { @@ -17213,7 +17303,7 @@ function WDn() { return r != e.b.c.length ? (hZ(e, 0), !0) : !1; } function C7() { - C7 = G, Qse = (tt(), SE), new nr(Yq, (en(), !0)), SZe = v0, IZe = mp, CZe = fd, TZe = pp, Zse = IE, PZe = Mg, Vse = (jee(), $Ze), Xse = AZe, Kse = xZe, Yse = MZe, oI = EZe; + C7 = G, Qse = (tt(), SE), new nr(Yq, (en(), !0)), IZe = v0, CZe = mp, PZe = fd, SZe = pp, Zse = IE, OZe = Mg, Vse = (jee(), MZe), Xse = xZe, Kse = $Ze, Yse = TZe, oI = AZe; } function xyn(e, n) { if (n == e.c) @@ -17242,9 +17332,9 @@ function WDn() { for (Ni(n, u(i.Xb(0), 25)), f = i.hd(1, i.gc()), c = u(t.Kb(n), 20).Jc(); c.Ob(); ) r = u(c.Pb(), 17), s = r.c.i == n ? r.d.i : r.c.i, xee(e, s, t, f); } - function $_e(e) { + function MBe(e) { var n; - return n = new Tn(), Et(e, (te(), uH)) ? u(y(e, uH), 92) : (fi(mt(new Ge(null, new He(e.j, 16)), new J2e()), new E8e(n)), K(e, uH, n), n); + return n = new Tn(), Et(e, (te(), uH)) ? u(y(e, uH), 92) : (fi(mt(new Ge(null, new He(e.j, 16)), new G2e()), new A8e(n)), K(e, uH, n), n); } function o9(e, n) { var t, i; @@ -17262,11 +17352,11 @@ function WDn() { var t, i; return e.Db >> 16 == 9 ? e.Cb.Qh(e, 9, Qn, n) : (i = Ir(u(We((t = u(hn(e, 16), 29), t || (Rc(), y0e)), e.Db >> 16), 19)), e.Cb.Qh(e, i.n, i.f, n)); } - function M_e(e, n) { + function TBe(e, n) { var t, i; return e.Db >> 16 == 5 ? e.Cb.Qh(e, 9, hP, n) : (i = Ir(u(We((t = u(hn(e, 16), 29), t || (Ue(), s1)), e.Db >> 16), 19)), e.Cb.Qh(e, i.n, i.f, n)); } - function T_e(e, n) { + function SBe(e, n) { var t, i; return e.Db >> 16 == 7 ? e.Cb.Qh(e, 6, eh, n) : (i = Ir(u(We((t = u(hn(e, 16), 29), t || (Ue(), f1)), e.Db >> 16), 19)), e.Cb.Qh(e, i.n, i.f, n)); } @@ -17290,7 +17380,7 @@ function WDn() { } function Tyn(e, n) { var t, i; - return t = n.ni(e.a), t ? (i = zn(Uf((!t.b && (t.b = new Ds((Ue(), Tr), Ic, t)), t.b), HS)), _e(Nj, i) ? k6(e, Vs(n.ok())) : i) : null; + return t = n.ni(e.a), t ? (i = zn(Uf((!t.b && (t.b = new Ds((Ue(), Tr), Ic, t)), t.b), HS)), Be(Nj, i) ? k6(e, Vs(n.ok())) : i) : null; } function Uv(e, n) { var t, i; @@ -17298,7 +17388,7 @@ function WDn() { if (n == e) return !0; for (t = 0, i = u(n, 52).Mh(); i && i != n; i = i.Mh()) { - if (++t > jB) + if (++t > j_) return Uv(e, i); if (i == e) return !0; @@ -17309,30 +17399,30 @@ function WDn() { function Syn(e) { switch (Tx(), e.q.g) { case 5: - wGe(e, (be(), ln)), wGe(e, Mn); + gGe(e, (be(), ln)), gGe(e, Mn); break; case 4: - yHe(e, (be(), ln)), yHe(e, Mn); + jHe(e, (be(), ln)), jHe(e, Mn); break; default: - Eze(e, (be(), ln)), Eze(e, Mn); + Aze(e, (be(), ln)), Aze(e, Mn); } } function Iyn(e) { switch (Tx(), e.q.g) { case 5: - LGe(e, (be(), gn)), LGe(e, an); + DGe(e, (be(), gn)), DGe(e, an); break; case 4: - OBe(e, (be(), gn)), OBe(e, an); + L_e(e, (be(), gn)), L_e(e, an); break; default: - Aze(e, (be(), gn)), Aze(e, an); + xze(e, (be(), gn)), xze(e, an); } } function Cyn(e) { var n, t; - n = u(y(e, (jf(), gZe)), 15), n ? (t = n.a, t == 0 ? K(e, (I1(), sI), new rF()) : K(e, (I1(), sI), new L$(t))) : K(e, (I1(), sI), new L$(1)); + n = u(y(e, (jf(), pZe)), 15), n ? (t = n.a, t == 0 ? K(e, (I1(), sI), new rF()) : K(e, (I1(), sI), new L$(t))) : K(e, (I1(), sI), new L$(1)); } function Pyn(e, n) { var t; @@ -17351,18 +17441,18 @@ function WDn() { function Oyn(e, n) { switch (e.g) { case 0: - return n == (Bs(), ha) ? MI : TI; + return n == (_s(), ha) ? MI : TI; case 1: - return n == (Bs(), ha) ? MI : Wj; + return n == (_s(), ha) ? MI : Wj; case 2: - return n == (Bs(), ha) ? Wj : TI; + return n == (_s(), ha) ? Wj : TI; default: return Wj; } } function P7(e, n) { var t, i, r; - for (Du(e.a, n), e.e -= n.r + (e.a.c.length == 0 ? 0 : e.c), r = S_, i = new x(e.a); i.a < i.c.c.length; ) + for (Du(e.a, n), e.e -= n.r + (e.a.c.length == 0 ? 0 : e.c), r = SB, i = new x(e.a); i.a < i.c.c.length; ) t = u(A(i), 173), r = m.Math.max(r, t.d); e.b = r; } @@ -17396,17 +17486,17 @@ function WDn() { } function Uo(e) { var n; - return (e.Bb & 1) == 0 && e.r && e.r.Sh() && (n = u(e.r, 52), e.r = u(D1(e, n), 143), e.r != n && (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 9, 8, n, e.r))), e.r; + return (e.Bb & 1) == 0 && e.r && e.r.Sh() && (n = u(e.r, 52), e.r = u(D1(e, n), 143), e.r != n && (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 9, 8, n, e.r))), e.r; } - function _F(e, n, t) { + function BF(e, n, t) { var i; - return i = I(T(Xi, 1), Gr, 30, 15, [ine(e, (qf(), Mc), n, t), ine(e, ku, n, t), ine(e, Tc, n, t)]), e.f && (i[0] = m.Math.max(i[0], i[2]), i[2] = i[0]), i; + return i = I(S(Xi, 1), Gr, 30, 15, [ine(e, (qf(), Mc), n, t), ine(e, ku, n, t), ine(e, Tc, n, t)]), e.f && (i[0] = m.Math.max(i[0], i[2]), i[2] = i[0]), i; } function Nyn(e, n) { var t, i, r; if (r = c8n(e, n), r.c.length != 0) - for (Di(r, new Gge()), t = r.c.length, i = 0; i < t; i++) - Vv(e, (qe(i, r.c.length), u(r.c[i], 294)), BMn(e, r, i)); + for (Di(r, new Hge()), t = r.c.length, i = 0; i < t; i++) + Vv(e, (qe(i, r.c.length), u(r.c[i], 294)), _Mn(e, r, i)); } function f9(e, n, t) { var i, r; @@ -17421,16 +17511,16 @@ function WDn() { function Ryn(e) { var n, t; if (e.k == (cn(), yi)) { - for (t = new fn(dn(Jh(e).a.Jc(), new Q())); xn(t); ) + for (t = new fn(dn(Jh(e).a.Jc(), new Y())); xn(t); ) if (n = u(pn(t), 17), !hr(n) && e.c == Ree(n, e).c) return !0; } return !1; } - function Byn(e) { + function _yn(e) { var n, t; if (e.k == (cn(), yi)) { - for (t = new fn(dn(Jh(e).a.Jc(), new Q())); xn(t); ) + for (t = new fn(dn(Jh(e).a.Jc(), new Y())); xn(t); ) if (n = u(pn(t), 17), !hr(n) && n.c.i.c == n.d.i.c) return !0; } @@ -17440,22 +17530,22 @@ function WDn() { var t, i; return e.Db >> 16 == 11 ? e.Cb.Qh(e, 10, Qn, n) : (i = Ir(u(We((t = u(hn(e, 16), 29), t || (Rc(), k0e)), e.Db >> 16), 19)), e.Cb.Qh(e, i.n, i.f, n)); } - function S_e(e, n) { + function IBe(e, n) { var t, i; return e.Db >> 16 == 10 ? e.Cb.Qh(e, 11, ef, n) : (i = Ir(u(We((t = u(hn(e, 16), 29), t || (Ue(), o1)), e.Db >> 16), 19)), e.Cb.Qh(e, i.n, i.f, n)); } - function I_e(e, n) { + function CBe(e, n) { var t, i; return e.Db >> 16 == 10 ? e.Cb.Qh(e, 12, nf, n) : (i = Ir(u(We((t = u(hn(e, 16), 29), t || (Ue(), Fg)), e.Db >> 16), 19)), e.Cb.Qh(e, i.n, i.f, n)); } - function C_e(e, n) { + function PBe(e, n) { var t, i, r, c, s; if (n) for (r = n.a.length, t = new Sd(r), s = (t.b - t.a) * t.c < 0 ? (v1(), md) : new j1(t); s.Ob(); ) - c = u(s.Pb(), 15), i = bv(n, c.a), i && wHe(e, i); + c = u(s.Pb(), 15), i = bv(n, c.a), i && gHe(e, i); } - function _yn() { - BW(); + function Byn() { + _W(); var e, n; for (sLn((E1(), tn)), QOn(tn), FF(tn), D0e = (Ue(), Ch), n = new x(q0e); n.a < n.c.c.length; ) e = u(A(n), 248), s5(e, Ch, null); @@ -17465,7 +17555,7 @@ function WDn() { var t, i, r, c, s, f, h, l; return h = e.h >> 19, l = n.h >> 19, h != l ? l - h : (r = e.h, f = n.h, r != f ? r - f : (i = e.m, s = n.m, i != s ? i - s : (t = e.l, c = n.l, t - c))); } - function P_e(e, n, t) { + function OBe(e, n, t) { var i, r, c, s, f; for (r = e[t.g], f = new x(n.d); f.a < f.c.c.length; ) s = u(A(f), 107), c = s.i, c && c.i == t && (i = s.d[t.g], r[i] = m.Math.max(r[i], c.j.b)); @@ -17476,11 +17566,11 @@ function WDn() { c = u(A(s), 319), ZM(c), i = m.Math.max(i, c.b), r += c.d + (t > 0 ? e.b : 0), ++t; n.b = i, n.e = r; } - function O_e(e) { + function LBe(e) { var n, t, i; - if (i = e.b, fAe(e.i, i.length)) { + if (i = e.b, hAe(e.i, i.length)) { for (t = i.length * 2, e.b = W(NJ, oj, 308, t, 0, 1), e.c = W(NJ, oj, 308, t, 0, 1), e.f = t - 1, e.i = 0, n = e.a; n; n = n.c) - _7(e, n, n); + B7(e, n, n); ++e.g; } } @@ -17507,7 +17597,7 @@ function WDn() { e = t, xV((Un(), e)); else throw $(t); } - return new M5e(); + return new T5e(); } function qyn() { CT(); @@ -17520,10 +17610,10 @@ function WDn() { e = t, xV((Un(), e)); else throw $(t); } - return new Z5e(); + return new e4e(); } function Uyn() { - NLe(); + FLe(); var e, n; try { if (n = u(Gee((m1(), tf), u0), 2084), n) @@ -17533,13 +17623,13 @@ function WDn() { e = t, xV((Un(), e)); else throw $(t); } - return new z4e(); + return new W4e(); } function zyn(e, n, t) { var i, r; - return r = e.e, e.e = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new Bi(e, 1, 4, r, n), t ? t.lj(i) : t = i), r != n && (n ? t = s5(e, pT(e, n), t) : t = s5(e, e.a, t)), t; + return r = e.e, e.e = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new _i(e, 1, 4, r, n), t ? t.lj(i) : t = i), r != n && (n ? t = s5(e, pT(e, n), t) : t = s5(e, e.a, t)), t; } - function L_e() { + function DBe() { HA.call(this), this.e = -1, this.a = !1, this.p = Yi, 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 = Yi; } function Wyn(e, n) { @@ -17573,12 +17663,12 @@ function WDn() { return t; } function Oee() { - Oee = G, LZe = au(et(et(et(new wi(), (zi(), Kc), (Qi(), Doe)), Kc, Noe), Nr, Foe), Nr, Aoe), NZe = et(et(new wi(), Kc, poe), Kc, xoe), DZe = au(new wi(), Nr, Moe); + Oee = G, DZe = au(et(et(et(new wi(), (zi(), Kc), (Qi(), Doe)), Kc, Noe), Nr, Foe), Nr, Aoe), FZe = et(et(new wi(), Kc, poe), Kc, xoe), NZe = au(new wi(), Nr, Moe); } function Vyn(e) { var n, t, i, r, c; for (n = u(y(e, (te(), Ak)), 92), c = e.n, i = n.Bc().Jc(); i.Ob(); ) - t = u(i.Pb(), 318), r = t.i, r.c += c.a, r.d += c.b, t.c ? uqe(t) : sqe(t); + t = u(i.Pb(), 318), r = t.i, r.c += c.a, r.d += c.b, t.c ? sqe(t) : oqe(t); K(e, Ak, null); } function Qyn(e, n, t) { @@ -17596,10 +17686,10 @@ function WDn() { return -1; } } - function D_e(e, n) { + function NBe(e, n) { var t, i; for (i = new x(n); i.a < i.c.c.length; ) - t = u(A(i), 9), e.c[t.c.p][t.p].a = WL(e.i), e.c[t.c.p][t.p].d = _(e.c[t.c.p][t.p].a), e.c[t.c.p][t.p].b = 1; + t = u(A(i), 9), e.c[t.c.p][t.p].a = WL(e.i), e.c[t.c.p][t.p].d = B(e.c[t.c.p][t.p].a), e.c[t.c.p][t.p].b = 1; } function Yyn(e, n) { var t, i, r, c; @@ -17615,7 +17705,7 @@ function WDn() { } function e7n(e) { var n, t, i, r, c; - if (i = 0, r = _2, e.b) + if (i = 0, r = B2, e.b) for (n = 0; n < 360; n++) t = n * 0.017453292519943295, Ote(e, e.d, 0, 0, t0, t), c = e.b.Cg(e.d), c < r && (i = t, r = c); Ote(e, e.d, 0, 0, t0, i); @@ -17629,9 +17719,9 @@ function WDn() { function t7n(e, n, t) { var i, r, c, s, f, h; for (r = n - e.e, c = r / e.d.c.length, s = 0, h = new x(e.d); h.a < h.c.c.length; ) - f = u(A(h), 319), i = e.b - f.b + t, iBe(f, f.e + s * c, f.f), N8n(f, c, i), ++s; + f = u(A(h), 319), i = e.b - f.b + t, r_e(f, f.e + s * c, f.f), N8n(f, c, i), ++s; } - function N_e(e) { + function FBe(e) { var n; if (e.f.Zj(), e.b != -1) { if (++e.b, n = e.f.d[e.a], e.b < n.i) @@ -17651,13 +17741,13 @@ function WDn() { t = u(t, 52).Wh((qe(i, n.c.length), zn(n.c[i]))); return t; } - function F_e(e, n, t, i) { + function RBe(e, n, t, i) { var r, c, s; - return c = pTn(e, n, t, i), s = Ate(e, c), VF(e, n, t, i), iN(e.b), ze(), Di(c, new cye(e)), r = Ate(e, c), VF(e, t, n, i), iN(e.b), new Ar(ie(s), ie(r)); + return c = pTn(e, n, t, i), s = Ate(e, c), VF(e, n, t, i), iN(e.b), ze(), Di(c, new uye(e)), r = Ate(e, c), VF(e, t, n, i), iN(e.b), new Ar(ie(s), ie(r)); } function r7n(e, n) { var t; - n.Tg("Delaunay triangulation", 1), t = new le(), wu(e.i, new Jye(t)), ve(me(y(e, ($v(), bk)))), e.e ? wr(e.e, _ze(t)) : e.e = _ze(t), n.Ug(); + n.Tg("Delaunay triangulation", 1), t = new le(), wu(e.i, new Gye(t)), ve(me(y(e, ($v(), bk)))), e.e ? wr(e.e, Jze(t)) : e.e = Jze(t), n.Ug(); } function c7n(e, n, t) { var i, r; @@ -17683,11 +17773,11 @@ function WDn() { } return PN(e, n, t, i); } - function R_e(e, n, t) { + function _Be(e, n, t) { var i, r, c, s, f; if (t) for (c = t.a.length, i = new Sd(c), f = (i.b - i.a) * i.c < 0 ? (v1(), md) : new j1(i); f.Ob(); ) - s = u(f.Pb(), 15), r = bv(t, s.a), r && bGe(e, r, n); + s = u(f.Pb(), 15), r = bv(t, s.a), r && wGe(e, r, n); } function O7(e, n, t) { var i, r, c, s, f; @@ -17695,7 +17785,7 @@ function WDn() { } function Nee(e, n) { var t, i, r, c; - switch (_a(e, n).Il()) { + switch (Ba(e, n).Il()) { case 3: case 2: { for (t = P2(n), r = 0, c = t.i; r < c; ++r) @@ -17708,28 +17798,28 @@ function WDn() { } function u7n(e) { var n, t, i, r, c; - if (fAe(e.f, e.b.length)) - for (i = W(_Qe, oj, 227, e.b.length * 2, 0, 1), e.b = i, r = i.length - 1, t = e.a; t != e; t = t.Zd()) + if (hAe(e.f, e.b.length)) + for (i = W(JQe, oj, 227, e.b.length * 2, 0, 1), e.b = i, r = i.length - 1, t = e.a; t != e; t = t.Zd()) c = u(t, 227), n = c.d & r, c.a = i[n], i[n] = c; } - function B_e(e, n) { + function BBe(e, n) { var t, i, r, c; for (c = 0, r = u(u(Mt(e.r, n), 22), 83).Jc(); r.Ob(); ) i = u(r.Pb(), 115), c = m.Math.max(c, i.e.a + i.b.Kf().a); - t = u(_r(e.b, n), 127), t.n.b = 0, t.a.a = c; + t = u(Br(e.b, n), 127), t.n.b = 0, t.a.a = c; } - function __e(e, n) { + function JBe(e, n) { var t, i, r, c; for (t = 0, c = u(u(Mt(e.r, n), 22), 83).Jc(); c.Ob(); ) r = u(c.Pb(), 115), t = m.Math.max(t, r.e.b + r.b.Kf().b); - i = u(_r(e.b, n), 127), i.n.d = 0, i.a.b = t; + i = u(Br(e.b, n), 127), i.n.d = 0, i.a.b = t; } function s7n(e) { var n, t, i; for (t = new x(e.p); t.a < t.c.c.length; ) n = u(A(t), 9), n.k == (cn(), si) && (i = n.o.b, e.i = m.Math.min(e.i, i), e.g = m.Math.max(e.g, i)); } - function J_e(e, n, t) { + function GBe(e, n, t) { var i, r, c; for (c = new x(n); c.a < c.c.c.length; ) i = u(A(c), 9), e.c[i.c.p][i.p].e = !1; @@ -17738,7 +17828,7 @@ function WDn() { } function o7n(e) { var n, t; - return t = u(y(e, (te(), ou)), 22), n = kx(Drn), t.Gc((Pr(), Z2)) && Ys(n, Rrn), t.Gc(Ek) && Ys(n, Brn), t.Gc(Q5) && Ys(n, Nrn), t.Gc(Y5) && Ys(n, Frn), n; + return t = u(y(e, (te(), ou)), 22), n = kx(Nrn), t.Gc((Pr(), Z2)) && Ys(n, _rn), t.Gc(Ek) && Ys(n, Brn), t.Gc(Q5) && Ys(n, Frn), t.Gc(Y5) && Ys(n, Rrn), n; } function Fee(e) { if (e < 0) @@ -17770,12 +17860,12 @@ function WDn() { } function h7n(e, n) { var t, i, r; - return n === e ? !0 : N(n, 668) ? (r = u(n, 2008), gBe((i = e.g, i || (e.g = new BP(e))), (t = r.g, t || (r.g = new BP(r))))) : !1; + return n === e ? !0 : N(n, 668) ? (r = u(n, 2008), p_e((i = e.g, i || (e.g = new _P(e))), (t = r.g, t || (r.g = new _P(r))))) : !1; } function l7n(e) { var n, t, i, r; for (n = "$z", t = "nz", r = m.Math.min(e.length, 5), i = r - 1; i >= 0; i--) - if (_e(e[i].d, n) || _e(e[i].d, t)) { + if (Be(e[i].d, n) || Be(e[i].d, t)) { e.length >= i + 1 && e.splice(0, i + 1); break; } @@ -17795,19 +17885,19 @@ function WDn() { function a7n(e) { var n, t, i, r; if (r = u(y(e, (te(), Tfe)), 37), r) { - for (i = new er(), n = _i(e.c.i); n != r; ) - t = n.e, n = _i(t), sw(At(At(i, t.n), n.c), n.d.b, n.d.d); + for (i = new er(), n = Bi(e.c.i); n != r; ) + t = n.e, n = Bi(t), sw(At(At(i, t.n), n.c), n.d.b, n.d.d); return i; } - return een; + return nen; } function d7n(e) { var n; - n = u(y(e, (te(), Pb)), 338), fi(cc(new Ge(null, new He(n.d, 16)), new x2e()), new y8e(e)), fi(mt(new Ge(null, new He(n.d, 16)), new $2e()), new j8e(e)); + n = u(y(e, (te(), Pb)), 338), fi(cc(new Ge(null, new He(n.d, 16)), new $2e()), new j8e(e)), fi(mt(new Ge(null, new He(n.d, 16)), new M2e()), new E8e(e)); } function JF(e, n) { var t, i, r, c; - for (r = n ? Ht(e) : bi(e), i = new fn(dn(r.a.Jc(), new Q())); xn(i); ) + for (r = n ? Ht(e) : bi(e), i = new fn(dn(r.a.Jc(), new Y())); xn(i); ) if (t = u(pn(i), 17), c = Ree(t, e), c.k == (cn(), yi) && c.c != e.c) return c; return null; @@ -17816,7 +17906,7 @@ function WDn() { var i, r; i = j2(n.j, t.s, t.c) + j2(t.e, n.s, n.c), r = j2(t.j, n.s, n.c) + j2(n.e, t.s, t.c), i == r ? i > 0 && (e.b += 2, e.a += i) : (e.b += 1, e.a += m.Math.min(i, r)); } - function G_e(e, n) { + function HBe(e, n) { var t, i; if (i = !1, Hi(n) && (i = !0, c3(e, new gw(zn(n)))), i || N(n, 242) && (i = !0, c3(e, (t = IL(u(n, 242)), new aA(t)))), !i) throw $(new aO(Iue)); @@ -17825,9 +17915,9 @@ function WDn() { var r, c, s; return r = new Vl(e.e, 1, 10, (s = n.c, N(s, 88) ? u(s, 29) : (Ue(), rf)), (c = t.c, N(c, 88) ? u(c, 29) : (Ue(), rf)), Ha(e, n), !1), i ? i.lj(r) : i = r, i; } - function Bee(e) { + function _ee(e) { var n, t; - switch (u(y(_i(e), (ae(), Fhe)), 420).g) { + switch (u(y(Bi(e), (ae(), Fhe)), 420).g) { case 0: return n = e.n, t = e.o, new ue(n.a + t.a / 2, n.b + t.b / 2); case 1: @@ -17852,18 +17942,18 @@ function WDn() { function g7n(e) { switch (e.g) { case 1: - return new sve(); - case 2: return new ove(); + case 2: + return new fve(); case 3: - return new uve(); + return new sve(); case 0: return null; default: - throw $(new on(N_ + (e.f != null ? e.f : "" + e.g))); + throw $(new on(NB + (e.f != null ? e.f : "" + e.g))); } } - function _ee(e, n, t) { + function Bee(e, n, t) { switch (n) { case 1: !e.n && (e.n = new ne(vc, e, 1, 7)), On(e.n), !e.n && (e.n = new ne(vc, e, 1, 7)), hi(e.n, u(t, 18)); @@ -17877,19 +17967,19 @@ function WDn() { function Jee(e, n, t) { switch (n) { case 3: - Q0(e, _(H(t))); + Q0(e, B(H(t))); return; case 4: - Y0(e, _(H(t))); + Y0(e, B(H(t))); return; case 5: - Es(e, _(H(t))); + Es(e, B(H(t))); return; case 6: - As(e, _(H(t))); + As(e, B(H(t))); return; } - _ee(e, n, t); + Bee(e, n, t); } function tT(e, n, t) { var i, r, c; @@ -17901,7 +17991,7 @@ function WDn() { } function p7n(e, n, t, i) { var r, c; - return Jn(n), Jn(t), c = u(p6(e.d, n), 15), pDe(!!c, "Row %s not in %s", n, e.e), r = u(p6(e.b, t), 15), pDe(!!r, "Column %s not in %s", t, e.c), gFe(e, c.a, r.a, i); + return Jn(n), Jn(t), c = u(p6(e.d, n), 15), mDe(!!c, "Row %s not in %s", n, e.e), r = u(p6(e.b, t), 15), mDe(!!r, "Column %s not in %s", t, e.c), pFe(e, c.a, r.a, i); } function m7n(e) { var n, t, i, r, c, s; @@ -17911,17 +18001,17 @@ function WDn() { T6(i); } catch (f) { if (f = gi(f), N(f, 101)) - n = f, t ? sJe(t, n) : t = n; + n = f, t ? oJe(t, n) : t = n; else throw $(f); } } t && lln(t); } - function H_e(e, n, t, i, r, c, s) { + function qBe(e, n, t, i, r, c, s) { var f, h, l, a, d; - if (a = r[c], l = c == s - 1, f = l ? i : 0, d = u_e(f, a), i != 10 && I(T(e, s - c), n[c], t[c], f, d), !l) + if (a = r[c], l = c == s - 1, f = l ? i : 0, d = sBe(f, a), i != 10 && I(S(e, s - c), n[c], t[c], f, d), !l) for (++c, h = 0; h < a; ++h) - d[h] = H_e(e, n, t, i, r, c, s); + d[h] = qBe(e, n, t, i, r, c, s); return d; } function v7n(e) { @@ -17932,8 +18022,8 @@ function WDn() { function k7n(e, n) { var t, i, r, c; for (c = new x(n.a); c.a < c.c.c.length; ) - for (r = u(A(c), 9), F4(e.d), i = new fn(dn(Ht(r).a.Jc(), new Q())); xn(i); ) - t = u(pn(i), 17), UGe(e, r, t.d.i); + for (r = u(A(c), 9), F4(e.d), i = new fn(dn(Ht(r).a.Jc(), new Y())); xn(i); ) + t = u(pn(i), 17), zGe(e, r, t.d.i); } function l9(e) { if (e.g == -1) @@ -17976,29 +18066,29 @@ function WDn() { } function E7n(e) { var n, t, i, r, c; - for (c = n3(e.k), t = (be(), I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an])), i = 0, r = t.length; i < r; ++i) + for (c = n3(e.k), t = (be(), I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an])), i = 0, r = t.length; i < r; ++i) if (n = t[i], n != mc && !c.Gc(n)) return n; return null; } function HF(e, n) { var t, i; - return i = u(Vp(Zl(mt(new Ge(null, new He(n.j, 16)), new Vpe()))), 12), i && (t = u(pe(i.e, 0), 17), t) ? u(y(t, (te(), _t)), 15).a : n5n(e.d); + return i = u(Vp(Zl(mt(new Ge(null, new He(n.j, 16)), new Qpe()))), 12), i && (t = u(pe(i.e, 0), 17), t) ? u(y(t, (te(), Bt)), 15).a : n5n(e.d); } - function q_e(e) { + function UBe(e) { var n, t; - return t = lR(e), yw(t) ? null : (n = (Jn(t), u(YBe(new fn(dn(t.a.Jc(), new Q()))), 85)), ec(u(F((!n.b && (n.b = new Qe(Cn, n, 4, 7)), n.b), 0), 84))); + return t = lR(e), yw(t) ? null : (n = (Jn(t), u(Z_e(new fn(dn(t.a.Jc(), new Y()))), 85)), ec(u(F((!n.b && (n.b = new Qe(Cn, n, 4, 7)), n.b), 0), 84))); } function iT(e) { var n; - return e.o || (n = e.sk(), n ? e.o = new DV(e, e, null) : e.$k() ? e.o = new lK(e, null) : q0(Wr((ts(), sr), e)) == 1 ? e.o = new fOe(e) : e.o = new $L(e, null)), e.o; + return e.o || (n = e.sk(), n ? e.o = new DV(e, e, null) : e.$k() ? e.o = new lK(e, null) : q0(Wr((ts(), sr), e)) == 1 ? e.o = new hOe(e) : e.o = new $L(e, null)), e.o; } function A7n(e, n, t, i) { var r, c, s, f, h; t.Uh(n) && (r = (s = n, s ? u(i, 52).di(s) : null), r && (h = t.Jh(n), f = n.t, f > 1 || f == -1 ? (c = u(h, 16), r.Wb(nkn(e, c))) : r.Wb(xR(e, u(h, 57))))); } function x7n(e, n, t, i) { - bAe(); + wAe(); var r = PJ; function c() { for (var s = 0; s < r.length; s++) @@ -18006,12 +18096,12 @@ function WDn() { } if (e) try { - xfn(c)(); + $fn(c)(); } catch (s) { e(n, s); } else - xfn(c)(); + $fn(c)(); } function $7n(e, n) { var t, i, r, c; @@ -18030,7 +18120,7 @@ function WDn() { function T7n(e) { switch (u(y(e.b, (ae(), Ihe)), 381).g) { case 1: - fi(du(cc(new Ge(null, new He(e.d, 16)), new Npe()), new Fpe()), new Rpe()); + fi(du(cc(new Ge(null, new He(e.d, 16)), new Fpe()), new Rpe()), new _pe()); break; case 2: cTn(e); @@ -18055,9 +18145,9 @@ function WDn() { Du(t.c, n), j7n(t), t.c.c.length == 0 && Du(e.n, t); break; } - IUe(e); + CUe(e); } - function U_e(e, n) { + function zBe(e, n) { var t, i, r, c, s; for (s = e.f, r = 0, c = 0, i = new x(e.a); i.a < i.c.c.length; ) t = u(A(i), 173), T7(t, e.e, s), Ky(t, n), c = m.Math.max(c, t.r), s += t.d + e.c, r = s; @@ -18068,11 +18158,11 @@ function WDn() { } function Hee(e) { var n; - return (e.Db & 64) != 0 ? NM(e) : (n = new _o(NM(e)), n.a += " (abstract: ", $a(n, (e.Bb & 256) != 0), n.a += ", interface: ", $a(n, (e.Bb & 512) != 0), n.a += ")", n.a); + return (e.Db & 64) != 0 ? NM(e) : (n = new Bo(NM(e)), n.a += " (abstract: ", $a(n, (e.Bb & 256) != 0), n.a += ", interface: ", $a(n, (e.Bb & 512) != 0), n.a += ")", n.a); } function C7n(e) { var n; - e.c == null && (n = z(e.b) === z(ise) ? null : e.b, e.d = n == null ? Bu : OSe(n) ? idn(rCe(n)) : Hi(n) ? Aie : Ed(Rs(n)), e.a = e.a + ": " + (OSe(n) ? n0n(rCe(n)) : n + ""), e.c = "(" + e.d + ") " + e.a); + e.c == null && (n = z(e.b) === z(ise) ? null : e.b, e.d = n == null ? _u : LSe(n) ? idn(cCe(n)) : Hi(n) ? Aie : Ed(Rs(n)), e.a = e.a + ": " + (LSe(n) ? n0n(cCe(n)) : n + ""), e.c = "(" + e.d + ") " + e.a); } function P7n() { function e() { @@ -18087,7 +18177,7 @@ function WDn() { function O7n(e, n) { var t, i, r, c; for (c = new Vi(e.e, 0), t = 0; c.b < c.d.gc(); ) { - if (i = _((An(c.b < c.d.gc()), H(c.d.Xb(c.c = c.b++)))), r = i - n, r > P_) + if (i = B((An(c.b < c.d.gc()), H(c.d.Xb(c.c = c.b++)))), r = i - n, r > PB) return t; r > -1e-6 && ++t; } @@ -18098,47 +18188,47 @@ function WDn() { return t$n(e, u(n, 85), t); if (N(n, 276)) return Lyn(e, u(n, 276), t); - throw $(new on(D5 + wh(new yc(I(T(Li, 1), Ve, 1, 5, [n, t]))))); + throw $(new on(D5 + wh(new yc(I(S(Li, 1), Ve, 1, 5, [n, t]))))); } function cT(e, n, t) { if (N(n, 271)) return i$n(e, u(n, 85), t); if (N(n, 276)) return Dyn(e, u(n, 276), t); - throw $(new on(D5 + wh(new yc(I(T(Li, 1), Ve, 1, 5, [n, t]))))); + throw $(new on(D5 + wh(new yc(I(S(Li, 1), Ve, 1, 5, [n, t]))))); } function qee(e, n) { var t; - n != e.b ? (t = null, e.b && (t = k$(e.b, e, -4, t)), n && (t = x3(n, e, -4, t)), t = lRe(e, n, t), t && t.mj()) : (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 3, n, n)); + n != e.b ? (t = null, e.b && (t = k$(e.b, e, -4, t)), n && (t = x3(n, e, -4, t)), t = aRe(e, n, t), t && t.mj()) : (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 3, n, n)); } - function z_e(e, n) { + function WBe(e, n) { var t; - n != e.f ? (t = null, e.f && (t = k$(e.f, e, -1, t)), n && (t = x3(n, e, -1, t)), t = aRe(e, n, t), t && t.mj()) : (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 0, n, n)); + n != e.f ? (t = null, e.f && (t = k$(e.f, e, -1, t)), n && (t = x3(n, e, -1, t)), t = dRe(e, n, t), t && t.mj()) : (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 0, n, n)); } function L7n(e, n, t, i) { var r, c, s, f; return Os(e.e) && (r = n.Jk(), f = n.kd(), c = t.kd(), s = x1(e, 1, r, f, c, r.Hk() ? r5(e, r, c, N(r, 103) && (u(r, 19).Bb & xr) != 0) : -1, !0), i ? i.lj(s) : i = s), i; } - function W_e(e) { + function XBe(e) { var n, t, i; if (e == null) return null; if (t = u(e, 16), t.dc()) return ""; for (i = new xa(), n = t.Jc(); n.Ob(); ) - Br(i, (Ot(), zn(n.Pb()))), i.a += " "; + _r(i, (Ot(), zn(n.Pb()))), i.a += " "; return uL(i, i.a.length - 1); } - function X_e(e) { + function KBe(e) { var n, t, i; if (e == null) return null; if (t = u(e, 16), t.dc()) return ""; for (i = new xa(), n = t.Jc(); n.Ob(); ) - Br(i, (Ot(), zn(n.Pb()))), i.a += " "; + _r(i, (Ot(), zn(n.Pb()))), i.a += " "; return uL(i, i.a.length - 1); } function D7n(e, n) { var t, i, r, c, s; for (c = new x(n.a); c.a < c.c.c.length; ) - for (r = u(A(c), 9), i = new fn(dn(bi(r).a.Jc(), new Q())); xn(i); ) + for (r = u(A(c), 9), i = new fn(dn(bi(r).a.Jc(), new Y())); xn(i); ) t = u(pn(i), 17), s = t.c.i.p, e.n[s] = e.n[s] - 1; } function N7n(e, n, t) { @@ -18146,33 +18236,33 @@ function WDn() { return i = e.c[n.c.p][n.p], r = e.c[t.c.p][t.p], i.a != null && r.a != null ? YL(i.a, r.a) : i.a != null ? -1 : r.a != null ? 1 : 0; } function F7n(e, n, t) { - return t.Tg("Tree layout", 1), Oy(e.b), Bf(e.b, (M3(), kC), kC), Bf(e.b, Wk, Wk), Bf(e.b, Xk, Xk), Bf(e.b, Kk, Kk), e.a = Z7(e.b, n), S7n(e, n, t.dh(1)), t.Ug(), n; + return t.Tg("Tree layout", 1), Oy(e.b), _f(e.b, (M3(), kC), kC), _f(e.b, Wk, Wk), _f(e.b, Xk, Xk), _f(e.b, Kk, Kk), e.a = Z7(e.b, n), S7n(e, n, t.dh(1)), t.Ug(), n; } - function K_e(e, n) { + function VBe(e, n) { var t, i, r, c, s, f; if (n) for (c = n.a.length, t = new Sd(c), f = (t.b - t.a) * t.c < 0 ? (v1(), md) : new j1(t); f.Ob(); ) - s = u(f.Pb(), 15), r = bv(n, s.a), i = new o7e(e), LIe(i.a, r); + s = u(f.Pb(), 15), r = bv(n, s.a), i = new f7e(e), DIe(i.a, r); } - function V_e(e, n) { + function QBe(e, n) { var t, i, r, c, s, f; if (n) for (c = n.a.length, t = new Sd(c), f = (t.b - t.a) * t.c < 0 ? (v1(), md) : new j1(t); f.Ob(); ) - s = u(f.Pb(), 15), r = bv(n, s.a), i = new Zye(e), OIe(i.a, r); + s = u(f.Pb(), 15), r = bv(n, s.a), i = new e7e(e), LIe(i.a, r); } function R7n(e) { var n; if (e != null && e.length > 0 && or(e, e.length - 1) == 33) try { - return n = fHe(Go(e, 0, e.length - 1)), n.e == null; + return n = hHe(Go(e, 0, e.length - 1)), n.e == null; } catch (t) { if (t = gi(t), !N(t, 32)) throw $(t); } return !1; } - function B7n(e, n, t) { + function _7n(e, n, t) { var i, r, c; - switch (i = _i(n), r = CM(i), c = new Uc(), ac(c, n), t.g) { + switch (i = Bi(n), r = CM(i), c = new Uc(), ac(c, n), t.g) { case 1: Oi(c, A7(j3(r))); break; @@ -18183,12 +18273,12 @@ function WDn() { } function Uee(e) { var n, t; - return n = u(pn(new fn(dn(bi(e.a).a.Jc(), new Q()))), 17), t = u(pn(new fn(dn(Ht(e.a).a.Jc(), new Q()))), 17), ve(me(y(n, (te(), Qa)))) || ve(me(y(t, Qa))); + return n = u(pn(new fn(dn(bi(e.a).a.Jc(), new Y()))), 17), t = u(pn(new fn(dn(Ht(e.a).a.Jc(), new Y()))), 17), ve(me(y(n, (te(), Qa)))) || ve(me(y(t, Qa))); } function Nw() { Nw = G, Xj = new ty("ONE_SIDE", 0), CI = new ty("TWO_SIDES_CORNER", 1), PI = new ty("TWO_SIDES_OPPOSING", 2), II = new ty("THREE_SIDES", 3), SI = new ty("FOUR_SIDES", 4); } - function Q_e(e, n) { + function YBe(e, n) { var t, i, r, c; for (c = new le(), r = 0, i = n.Jc(); i.Ob(); ) { for (t = ie(u(i.Pb(), 15).a + r); t.a < e.f && !ugn(e, t.a); ) @@ -18199,23 +18289,23 @@ function WDn() { } return c; } - function _7n(e) { + function B7n(e) { var n, t; for (t = new x(e.e.b); t.a < t.c.c.length; ) n = u(A(t), 25), kPn(e, n); - fi(mt(cc(cc(new Ge(null, new He(e.e.b, 16)), new T3e()), new L3e()), new D3e()), new vye(e)); + fi(mt(cc(cc(new Ge(null, new He(e.e.b, 16)), new S3e()), new D3e()), new N3e()), new kye(e)); } function zee(e, n) { - return n ? e.kj(n) ? !1 : e.i ? e.i.lj(n) : N(n, 151) ? (e.i = u(n, 151), !0) : (e.i = new P5e(), e.i.lj(n)) : !1; + return n ? e.kj(n) ? !1 : e.i ? e.i.lj(n) : N(n, 151) ? (e.i = u(n, 151), !0) : (e.i = new O5e(), e.i.lj(n)) : !1; } - function Y_e(e, n, t) { + function ZBe(e, n, t) { var i, r, c; return i = n.Jk(), c = n.kd(), r = i.Hk() ? x1(e, 3, i, null, c, r5(e, i, c, N(i, 103) && (u(i, 19).Bb & xr) != 0), !0) : x1(e, 1, i, i.gk(), c, -1, !0), t ? t.lj(r) : t = r, t; } function J7n(e) { - if (e = cu(e, !0), _e(I5, e) || _e("1", e)) - return en(), _5; - if (_e(V_, e) || _e("0", e)) + if (e = cu(e, !0), Be(I5, e) || Be("1", e)) + return en(), B5; + if (Be(VB, e) || Be("0", e)) return en(), Y1; throw $(new dO("Invalid boolean value: '" + e + "'")); } @@ -18231,15 +18321,15 @@ function WDn() { var n, t, i; e.B.Gc((Ms(), VC)) && (i = e.f.i, n = new m$(e.a.c), t = new Op(), t.b = n.c - i.c, t.d = n.d - i.d, t.c = i.c + i.b - (n.c + n.b), t.a = i.d + i.a - (n.d + n.a), e.e.Yf(t)); } - function Z_e(e, n, t, i) { + function eJe(e, n, t, i) { var r, c, s; - for (s = m.Math.min(t, mUe(u(e.b, 68), n, t, i)), c = new x(e.a); c.a < c.c.c.length; ) - r = u(A(c), 225), r != n && (s = m.Math.min(s, Z_e(r, n, s, i))); + for (s = m.Math.min(t, vUe(u(e.b, 68), n, t, i)), c = new x(e.a); c.a < c.c.c.length; ) + r = u(A(c), 225), r != n && (s = m.Math.min(s, eJe(r, n, s, i))); return s; } function Xee(e) { var n, t, i, r; - for (r = W(xl, oe, 199, e.b.c.length, 0, 2), i = new Vi(e.b, 0); i.b < i.d.gc(); ) + for (r = W(xl, fe, 199, e.b.c.length, 0, 2), i = new Vi(e.b, 0); i.b < i.d.gc(); ) n = (An(i.b < i.d.gc()), u(i.d.Xb(i.c = i.b++), 25)), t = i.b - 1, r[t] = Jy(n.a); return r; } @@ -18254,24 +18344,24 @@ function WDn() { KZ(s); } function Vee(e, n) { - this.f = new Tn(), this.b = new Tn(), this.j = new Tn(), this.a = e, this.c = n, this.c > 0 && m_e(this, this.c - 1, (be(), gn)), this.c < this.a.length - 1 && m_e(this, this.c + 1, (be(), an)); + this.f = new Tn(), this.b = new Tn(), this.j = new Tn(), this.a = e, this.c = n, this.c > 0 && vBe(this, this.c - 1, (be(), gn)), this.c < this.a.length - 1 && vBe(this, this.c + 1, (be(), an)); } function H7n(e, n) { var t, i, r, c, s; for (c = new x(n.d); c.a < c.c.c.length; ) - for (r = u(A(c), 107), s = u(rn(e.c, r), 116).o, i = new Bp(r.b); i.a < i.c.a.length; ) + for (r = u(A(c), 107), s = u(rn(e.c, r), 116).o, i = new _p(r.b); i.a < i.c.a.length; ) t = u(L6(i), 64), QQ(r, t, s); } function Qee(e) { - e.length > 0 && e[0].length > 0 && (this.c = ve(me(y(_i(e[0][0]), (te(), Cfe))))), this.a = W(srn, oe, 2079, e.length, 0, 2), this.b = W(orn, oe, 2080, e.length, 0, 2), this.d = new cRe(); + e.length > 0 && e[0].length > 0 && (this.c = ve(me(y(Bi(e[0][0]), (te(), Cfe))))), this.a = W(orn, fe, 2079, e.length, 0, 2), this.b = W(frn, fe, 2080, e.length, 0, 2), this.d = new uRe(); } function q7n(e) { - return e.c.length == 0 ? !1 : (qe(0, e.c.length), u(e.c[0], 17)).c.i.k == (cn(), yi) ? !0 : a2(du(new Ge(null, new He(e, 16)), new k3e()), new p3e()); + return e.c.length == 0 ? !1 : (qe(0, e.c.length), u(e.c[0], 17)).c.i.k == (cn(), yi) ? !0 : a2(du(new Ge(null, new He(e, 16)), new y3e()), new m3e()); } - function eJe(e, n) { + function nJe(e, n) { var t, i, r, c, s, f, h; for (f = Jw(n), c = n.f, h = n.g, s = m.Math.sqrt(c * c + h * h), r = 0, i = new x(f); i.a < i.c.c.length; ) - t = u(A(i), 26), r += eJe(e, t); + t = u(A(i), 26), r += nJe(e, t); return m.Math.max(r, s); } function Ui() { @@ -18281,7 +18371,7 @@ function WDn() { var t, i, r; if (t = n.ni(e.a), t) { for (r = zn(Uf((!t.b && (t.b = new Ds((Ue(), Tr), Ic, t)), t.b), Xo)), i = 1; i < (ts(), X0e).length; ++i) - if (_e(X0e[i], r)) + if (Be(X0e[i], r)) return i; } return 0; @@ -18289,7 +18379,7 @@ function WDn() { function z7n(e) { var n, t, i, r, c; if (e == null) - return Bu; + return _u; for (c = new Gd(mu, "[", "]"), t = e, i = 0, r = t.length; i < r; ++i) n = t[i], Xl(c, "" + n); return c.a ? c.e.length == 0 ? c.a.a : c.a.a + ("" + c.e) : c.c; @@ -18297,15 +18387,15 @@ function WDn() { function W7n(e) { var n, t, i, r, c; if (e == null) - return Bu; + return _u; for (c = new Gd(mu, "[", "]"), t = e, i = 0, r = t.length; i < r; ++i) n = t[i], Xl(c, "" + n); return c.a ? c.e.length == 0 ? c.a.a : c.a.a + ("" + c.e) : c.c; } - function nJe(e) { + function tJe(e) { var n, t, i; for (i = new Gd(mu, "{", "}"), t = e.vc().Jc(); t.Ob(); ) - n = u(t.Pb(), 45), Xl(i, ZPe(e, n.jd()) + "=" + ZPe(e, n.kd())); + n = u(t.Pb(), 45), Xl(i, eOe(e, n.jd()) + "=" + eOe(e, n.kd())); return i.a ? i.e.length == 0 ? i.a.a : i.a.a + ("" + i.e) : i.c; } function X7n(e) { @@ -18321,24 +18411,24 @@ function WDn() { return !1; return !0; } - function tJe(e, n) { + function iJe(e, n) { var t, i, r, c, s; - for (t = xHe(e, !1, n), r = new x(t); r.a < r.c.c.length; ) + for (t = $He(e, !1, n), r = new x(t); r.a < r.c.c.length; ) i = u(A(r), 133), i.d == 0 ? (PD(i, null), OD(i, null)) : (c = i.a, s = i.b, PD(i, s), OD(i, c)); } function K7n(e) { var n, t; - return n = new wi(), Ys(n, Grn), t = u(y(e, (te(), ou)), 22), t.Gc((Pr(), Ek)) && Ys(n, zrn), t.Gc(Q5) && Ys(n, Hrn), t.Gc(Z2) && Ys(n, Urn), t.Gc(Y5) && Ys(n, qrn), n; + return n = new wi(), Ys(n, Hrn), t = u(y(e, (te(), ou)), 22), t.Gc((Pr(), Ek)) && Ys(n, Wrn), t.Gc(Q5) && Ys(n, qrn), t.Gc(Z2) && Ys(n, zrn), t.Gc(Y5) && Ys(n, Urn), n; } function Zee(e, n, t) { var i, r, c, s, f; - for (ckn(e), r = (e.k == null && (e.k = W(BJ, oe, 80, 0, 0, 1)), e.k), c = 0, s = r.length; c < s; ++c) + for (ckn(e), r = (e.k == null && (e.k = W(_J, fe, 80, 0, 0, 1)), e.k), c = 0, s = r.length; c < s; ++c) i = r[c], Zee(i); f = e.f, f && Zee(f); } function V7n(e) { var n, t, i, r; - for (yCn(e), t = new fn(dn(Jh(e).a.Jc(), new Q())); xn(t); ) + for (yCn(e), t = new fn(dn(Jh(e).a.Jc(), new Y())); xn(t); ) n = u(pn(t), 17), i = n.c.i == e, r = i ? n.d : n.c, i ? Ki(n, null) : br(n, null), K(n, (te(), Dfe), r), KAn(e, r.i); } function Q7n(e, n, t) { @@ -18350,21 +18440,21 @@ function WDn() { function Y7n(e) { var n, t, i; for (t = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); t.e != t.i.gc(); ) - if (n = u(En(t), 26), i = lR(n), !xn(new fn(dn(i.a.Jc(), new Q())))) + if (n = u(En(t), 26), i = lR(n), !xn(new fn(dn(i.a.Jc(), new Y())))) return n; return null; } function uT() { - uT = G, bq = new cy("OVERLAP_REMOVAL", 0), lq = new cy(zXe, 1), wq = new cy("ROTATION", 2), aq = new cy("GRAPH_SIZE_CALCULATION", 3), dq = new cy("OUTGOING_EDGE_ANGLES", 4); + uT = G, bq = new cy("OVERLAP_REMOVAL", 0), lq = new cy(WXe, 1), wq = new cy("ROTATION", 2), aq = new cy("GRAPH_SIZE_CALCULATION", 3), dq = new cy("OUTGOING_EDGE_ANGLES", 4); } function Z7n() { var e; - return jon ? u(Yv((m1(), tf), L5), 2077) : (e = u(N(nu((m1(), tf), L5), 556) ? nu(tf, L5) : new KGe(), 556), jon = !0, uPn(e), kLn(e), FF(e), zr(tf, L5, e), e); + return Eon ? u(Yv((m1(), tf), L5), 2077) : (e = u(N(nu((m1(), tf), L5), 556) ? nu(tf, L5) : new VGe(), 556), Eon = !0, uPn(e), kLn(e), FF(e), zr(tf, L5, e), e); } function UF(e, n, t) { var i, r; if (e.j == 0) return t; - if (r = u(fNe(e, n, t), 75), i = t.Jk(), !i.pk() || !e.a.$l(i)) + if (r = u(hNe(e, n, t), 75), i = t.Jk(), !i.pk() || !e.a.$l(i)) throw $(new fc("Invalid entry feature '" + i.ok().zb + "." + i.ve() + "'")); return r; } @@ -18378,7 +18468,7 @@ function WDn() { } function njn(e) { var n, t, i; - return iu(e, 0) >= 0 ? (t = L7(e, HT), i = hF(e, HT)) : (n = Id(e, 1), t = L7(n, 5e8), i = hF(n, 5e8), i = yr(hl(i, 1), qi(e, 1))), Bh(hl(i, 32), qi(t, Or)); + return iu(e, 0) >= 0 ? (t = L7(e, HT), i = hF(e, HT)) : (n = Id(e, 1), t = L7(n, 5e8), i = hF(n, 5e8), i = yr(hl(i, 1), qi(e, 1))), _h(hl(i, 32), qi(t, Or)); } function tjn(e, n, t, i) { var r, c, s, f, h; @@ -18400,15 +18490,15 @@ function WDn() { function cjn(e, n, t, i, r) { var c, s; for (c = 0, s = 0; s < r; s++) - c = yr(c, qo(qi(n[s], Or), qi(i[s], Or))), e[s] = Xn(c), c = _0(c, 32); + c = yr(c, qo(qi(n[s], Or), qi(i[s], Or))), e[s] = Xn(c), c = B0(c, 32); for (; s < t; s++) - c = yr(c, qi(n[s], Or)), e[s] = Xn(c), c = _0(c, 32); + c = yr(c, qi(n[s], Or)), e[s] = Xn(c), c = B0(c, 32); } function ujn(e, n) { n5(); var t, i; for (i = (Uh(), QS), t = e; n > 1; n >>= 1) - (n & 1) != 0 && (i = l2(i, t)), t.d == 1 ? t = l2(t, t) : t = new vBe(Wqe(t.a, t.d, W(Wn, lt, 30, t.d << 1, 15, 1))); + (n & 1) != 0 && (i = l2(i, t)), t.d == 1 ? t = l2(t, t) : t = new k_e(Xqe(t.a, t.d, W(Wn, lt, 30, t.d << 1, 15, 1))); return i = l2(i, t), i; } function ene() { @@ -18422,21 +18512,21 @@ function WDn() { function sjn(e) { var n, t; if (ve(me(re(e, (ae(), dg))))) { - for (t = new fn(dn(J1(e).a.Jc(), new Q())); xn(t); ) + for (t = new fn(dn(J1(e).a.Jc(), new Y())); xn(t); ) if (n = u(pn(t), 85), ob(n) && ve(me(re(n, a0)))) return !0; } return !1; } - function iJe(e) { + function rJe(e) { var n, t, i, r; for (n = new Dt(), t = new Dt(), r = Nn(e, 0); r.b != r.d.c; ) i = u(Ln(r), 12), i.e.c.length == 0 ? ti(t, i, t.c.b, t.c) : ti(n, i, n.c.b, n.c); - return _s(n).Fc(t), n; + return Bs(n).Fc(t), n; } - function rJe(e, n) { + function cJe(e, n) { var t, i, r; - ki(e.f, n) && (n.b = e, i = n.c, dc(e.j, i, 0) != -1 || he(e.j, i), r = n.d, dc(e.j, r, 0) != -1 || he(e.j, r), t = n.a.b, t.c.length != 0 && (!e.i && (e.i = new EBe(e)), N4n(e.i, t))); + ki(e.f, n) && (n.b = e, i = n.c, dc(e.j, i, 0) != -1 || he(e.j, i), r = n.d, dc(e.j, r, 0) != -1 || he(e.j, r), t = n.a.b, t.c.length != 0 && (!e.i && (e.i = new A_e(e)), N4n(e.i, t))); } function ojn(e) { var n, t, i, r, c; @@ -18444,24 +18534,24 @@ function WDn() { } function sT(e, n) { var t, i, r, c, s, f; - r = e, s = P6(r, "layoutOptions"), !s && (s = P6(r, WKe)), s && (f = s, i = null, f && (i = (c = AN(f, W(ke, oe, 2, 0, 6, 1)), new yO(f, c))), i && (t = new Dxe(f, n), fr(i, t))); + r = e, s = P6(r, "layoutOptions"), !s && (s = P6(r, XKe)), s && (f = s, i = null, f && (i = (c = AN(f, W(ye, fe, 2, 0, 6, 1)), new yO(f, c))), i && (t = new Nxe(f, n), fr(i, t))); } function ec(e) { if (N(e, 206)) return u(e, 26); if (N(e, 193)) return sh(u(e, 125)); - throw $(e ? new Ea("Only support nodes and ports.") : new Np(tVe)); + throw $(e ? new Ea("Only support nodes and ports.") : new Np(iVe)); } function fjn(e, n, t, i) { - return (n >= 0 && _e(e.substr(n, 3), "GMT") || n >= 0 && _e(e.substr(n, 3), "UTC")) && (t[0] = n + 3), Fte(e, t, i); + return (n >= 0 && Be(e.substr(n, 3), "GMT") || n >= 0 && Be(e.substr(n, 3), "UTC")) && (t[0] = n + 3), Fte(e, t, i); } function hjn(e, n) { var t, i, r, c, s; for (c = e.g.a, s = e.g.b, i = new x(e.d); i.a < i.c.c.length; ) t = u(A(i), 70), r = t.n, r.a = c, e.i == (be(), ln) ? r.b = s + e.j.b - t.o.b : r.b = s, At(r, n), c += t.o.a + e.e; } - function cJe(e, n, t) { + function uJe(e, n, t) { if (e.b) throw $(new qr("The task is already done.")); return e.p != null ? !1 : (e.p = n, e.r = t, e.k && (e.o = (Ta(), gr(Cc(Date.now()), za))), !0); @@ -18470,9 +18560,9 @@ function WDn() { var n, t, i, r, c, s, f; return f = new Dp(), t = e.Og(), r = t != null, r && iv(f, Zh, e.Og()), i = e.ve(), c = i != null, c && iv(f, gt, e.ve()), n = e.Ng(), s = n != null, s && iv(f, "description", e.Ng()), f; } - function uJe(e, n, t) { + function sJe(e, n, t) { var i, r, c; - return c = e.q, e.q = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (r = new Bi(e, 1, 9, c, n), t ? t.lj(r) : t = r), n ? (i = n.c, i != e.r && (t = e.Wk(i, t))) : e.r && (t = e.Wk(null, t)), t; + return c = e.q, e.q = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (r = new _i(e, 1, 9, c, n), t ? t.lj(r) : t = r), n ? (i = n.c, i != e.r && (t = e.Wk(i, t))) : e.r && (t = e.Wk(null, t)), t; } function ljn(e, n, t) { var i, r, c, s, f; @@ -18512,14 +18602,14 @@ function WDn() { } function zF(e, n, t, i, r) { var c, s; - c = u(fs(mt(n.Mc(), new Spe()), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), R7(c), s = u(Jd(e.b, t, i), 16), r == 0 ? s.ad(0, c) : s.Fc(c); + c = u(fs(mt(n.Mc(), new Ipe()), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), R7(c), s = u(Jd(e.b, t, i), 16), r == 0 ? s.ad(0, c) : s.Fc(c); } function gjn(e, n, t) { - t.Tg("Grow Tree", 1), e.b = n.f, ve(me(y(n, ($v(), bk)))) ? (e.c = new iA(), KCe(e, null)) : e.c = new iA(), e.a = !1, NHe(e, n.f), K(n, Fse, (en(), !!e.a)), t.Ug(); + t.Tg("Grow Tree", 1), e.b = n.f, ve(me(y(n, ($v(), bk)))) ? (e.c = new iA(), VCe(e, null)) : e.c = new iA(), e.a = !1, FHe(e, n.f), K(n, Fse, (en(), !!e.a)), t.Ug(); } function sb(e) { var n; - this.d = new Tn(), this.c = e.c, this.e = e.d, this.b = e.b, this.f = new jSe(e.e), this.a = e.a, e.f ? this.g = e.f : this.g = (n = u(Ff(sP), 10), new wo(n, u(af(n, n.length), 10), 0)); + this.d = new Tn(), this.c = e.c, this.e = e.d, this.b = e.b, this.f = new ESe(e.e), this.a = e.a, e.f ? this.g = e.f : this.g = (n = u(Ff(sP), 10), new wo(n, u(af(n, n.length), 10), 0)); } function tne(e) { var n, t, i, r; @@ -18539,17 +18629,17 @@ function WDn() { } function bh(e, n, t) { var i; - return n != e.q ? (e.q && (t = k$(e.q, e, -10, t)), n && (t = x3(n, e, -10, t)), t = uJe(e, n, t)) : (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new Bi(e, 1, 9, n, n), t ? t.lj(i) : t = i), t; + return n != e.q ? (e.q && (t = k$(e.q, e, -10, t)), n && (t = x3(n, e, -10, t)), t = sJe(e, n, t)) : (e.Db & 4) != 0 && (e.Db & 1) == 0 && (i = new _i(e, 1, 9, n, n), t ? t.lj(i) : t = i), t; } function KF(e, n, t, i) { - return IK((t & Wh) == 0, "flatMap does not support SUBSIZED characteristic"), IK((t & 4) == 0, "flatMap does not support SORTED characteristic"), Jn(e), Jn(n), new tOe(e, n, t, i); + return IK((t & Wh) == 0, "flatMap does not support SUBSIZED characteristic"), IK((t & 4) == 0, "flatMap does not support SORTED characteristic"), Jn(e), Jn(n), new iOe(e, n, t, i); } - function sJe(e, n) { - jV(n, "Cannot suppress a null exception."), Ty(n != e, "Exception can not suppress itself."), !e.i && (e.k == null ? e.k = I(T(BJ, 1), oe, 80, 0, [n]) : e.k[e.k.length] = n); + function oJe(e, n) { + jV(n, "Cannot suppress a null exception."), Ty(n != e, "Exception can not suppress itself."), !e.i && (e.k == null ? e.k = I(S(_J, 1), fe, 80, 0, [n]) : e.k[e.k.length] = n); } function pjn(e, n) { var t; - if (t = a$e(e.b.$f(), n.b.$f()), t != 0) + if (t = d$e(e.b.$f(), n.b.$f()), t != 0) return t; switch (e.b.$f().g) { case 1: @@ -18563,7 +18653,7 @@ function WDn() { } function mjn(e) { var n, t, i; - for (i = e.e.c.length, e.a = lw(Wn, [oe, lt], [54, 30], 15, [i, i], 2), t = new x(e.c); t.a < t.c.c.length; ) + for (i = e.e.c.length, e.a = lw(Wn, [fe, lt], [54, 30], 15, [i, i], 2), t = new x(e.c); t.a < t.c.c.length; ) n = u(A(t), 291), e.a[n.c.a][n.d.a] += u(y(n, (jf(), Y3)), 15).a; } function vjn(e, n) { @@ -18583,11 +18673,11 @@ function WDn() { var t, i, r, c; return r = u(u(Mt(e.r, n), 22), 83), r.gc() >= 2 ? (i = u(r.Jc().Pb(), 115), t = e.u.Gc((ls(), m8)), c = e.u.Gc(jm), !i.a && !t && (r.gc() == 2 || c)) : !1; } - function oJe(e, n, t, i, r) { + function fJe(e, n, t, i, r) { var c, s, f; - for (c = YHe(e, n, t, i, r), f = !1; !c; ) - wT(e, r, !0), f = !0, c = YHe(e, n, t, i, r); - f && wT(e, r, !1), s = DN(r), s.c.length != 0 && (e.d && e.d.Fg(s), oJe(e, r, t, i, s)); + for (c = ZHe(e, n, t, i, r), f = !1; !c; ) + wT(e, r, !0), f = !0, c = ZHe(e, n, t, i, r); + f && wT(e, r, !1), s = DN(r), s.c.length != 0 && (e.d && e.d.Fg(s), fJe(e, r, t, i, s)); } function oT() { oT = G, $q = new ux("NODE_SIZE_REORDERER", 0), Eq = new ux("INTERACTIVE_NODE_REORDERER", 1), xq = new ux("MIN_SIZE_PRE_PROCESSOR", 2), Aq = new ux("MIN_SIZE_POST_PROCESSOR", 3); @@ -18598,7 +18688,7 @@ function WDn() { function yjn(e, n) { var t; if (!sh(e)) - throw $(new qr(OKe)); + throw $(new qr(LKe)); switch (t = sh(e), n.g) { case 1: return -(e.j + e.f); @@ -18637,12 +18727,12 @@ function WDn() { var t, i, r, c, s, f; return r = e.i, c = n.i, !r || !c || r.i != c.i || r.i == (be(), gn) || r.i == (be(), an) ? !1 : (s = r.g.a, t = s + r.j.a, f = c.g.a, i = f + c.j.a, s <= i && t >= f); } - function fJe(e) { + function hJe(e) { switch (e.g) { case 0: - return new Ave(); - case 1: return new xve(); + case 1: + return new $ve(); default: throw $(new on("No implementation is available for the width approximator " + (e.f != null ? e.f : "" + e.g))); } @@ -18656,7 +18746,7 @@ function WDn() { var t, i, r; if (t = n.ni(e.a), t && (r = Uf((!t.b && (t.b = new Ds((Ue(), Tr), Ic, t)), t.b), zo), r != null)) { for (i = 1; i < (ts(), z0e).length; ++i) - if (_e(z0e[i], r)) + if (Be(z0e[i], r)) return i; } return 0; @@ -18665,12 +18755,12 @@ function WDn() { var t, i, r; if (t = n.ni(e.a), t && (r = Uf((!t.b && (t.b = new Ds((Ue(), Tr), Ic, t)), t.b), zo), r != null)) { for (i = 1; i < (ts(), W0e).length; ++i) - if (_e(W0e[i], r)) + if (Be(W0e[i], r)) return i; } return 0; } - function hJe(e, n) { + function lJe(e, n) { var t, i, r, c; if (Ze(n), c = e.a.gc(), c < n.gc()) for (t = e.a.ec().Jc(); t.Ob(); ) @@ -18680,9 +18770,9 @@ function WDn() { i = r.Pb(), e.a.Ac(i) != null; return c != e.a.gc(); } - function lJe(e) { + function aJe(e) { var n, t; - switch (t = kr(bc(I(T(Ji, 1), oe, 8, 0, [e.i.n, e.n, e.a]))), n = e.i.d, e.j.g) { + switch (t = kr(bc(I(S(Ji, 1), fe, 8, 0, [e.i.n, e.n, e.a]))), n = e.i.d, e.j.g) { case 1: t.b -= n.d; break; @@ -18699,8 +18789,8 @@ function WDn() { } function $jn(e) { var n; - for (n = (p3(), u(pn(new fn(dn(bi(e).a.Jc(), new Q()))), 17).c.i); n.k == (cn(), yi); ) - K(n, (te(), tE), (en(), !0)), n = u(pn(new fn(dn(bi(n).a.Jc(), new Q()))), 17).c.i; + for (n = (p3(), u(pn(new fn(dn(bi(e).a.Jc(), new Y()))), 17).c.i); n.k == (cn(), yi); ) + K(n, (te(), tE), (en(), !0)), n = u(pn(new fn(dn(bi(n).a.Jc(), new Y()))), 17).c.i; } function VF(e, n, t, i) { var r, c, s, f; @@ -18713,7 +18803,7 @@ function WDn() { var i, r; for (r = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); r.e != r.i.gc(); ) i = u(En(r), 26), ao(i, i.i + n, i.j + t); - fr((!e.b && (e.b = new ne(xi, e, 12, 3)), e.b), new Axe(n, t)); + fr((!e.b && (e.b = new ne(xi, e, 12, 3)), e.b), new xxe(n, t)); } function Mjn(e, n, t, i) { var r, c; @@ -18724,10 +18814,10 @@ function WDn() { function Tjn(e) { var n, t, i, r; for (n = new le(), t = W(zu, zf, 30, e.a.c.length, 16, 1), yV(t, t.length), r = new x(e.a); r.a < r.c.c.length; ) - i = u(A(r), 124), t[i.d] || (sn(n.c, i), TBe(e, i, t)); + i = u(A(r), 124), t[i.d] || (sn(n.c, i), S_e(e, i, t)); return n; } - function aJe(e, n) { + function dJe(e, n) { var t, i, r, c, s; for (r = n == 1 ? aG : lG, i = r.a.ec().Jc(); i.Ob(); ) for (t = u(i.Pb(), 86), s = u(Mt(e.f.c, t), 22).Jc(); s.Ob(); ) @@ -18735,16 +18825,16 @@ function WDn() { } function Sjn(e, n) { var t; - n.Tg("Hierarchical port position processing", 1), t = e.b, t.c.length > 0 && Gqe((qe(0, t.c.length), u(t.c[0], 25)), e), t.c.length > 1 && Gqe(u(pe(t, t.c.length - 1), 25), e), n.Ug(); + n.Tg("Hierarchical port position processing", 1), t = e.b, t.c.length > 0 && Hqe((qe(0, t.c.length), u(t.c[0], 25)), e), t.c.length > 1 && Hqe(u(pe(t, t.c.length - 1), 25), e), n.Ug(); } function Ijn(e) { ls(); var n, t; - return n = Rt(ba, I(T(KC, 1), ce, 280, 0, [dd])), !(h7(y$(n, e)) > 1 || (t = Rt(m8, I(T(KC, 1), ce, 280, 0, [p8, jm])), h7(y$(t, e)) > 1)); + return n = Rt(ba, I(S(KC, 1), ce, 280, 0, [dd])), !(h7(y$(n, e)) > 1 || (t = Rt(m8, I(S(KC, 1), ce, 280, 0, [p8, jm])), h7(y$(t, e)) > 1)); } function une(e, n) { var t; - t = nu((m1(), tf), e), N(t, 493) ? zr(tf, e, new Hxe(this, n)) : zr(tf, e, this), YF(this, n), n == (Gm(), L0e) ? (this.wb = u(this, 2e3), u(n, 2002)) : this.wb = (E1(), tn); + t = nu((m1(), tf), e), N(t, 493) ? zr(tf, e, new qxe(this, n)) : zr(tf, e, this), YF(this, n), n == (Gm(), L0e) ? (this.wb = u(this, 2e3), u(n, 2002)) : this.wb = (E1(), tn); } function Cjn(e) { var n, t, i; @@ -18752,7 +18842,7 @@ function WDn() { return null; for (n = null, t = 0; t < j8.length; ++t) try { - return TAe(j8[t], e); + return SAe(j8[t], e); } catch (r) { if (r = gi(r), N(r, 32)) i = r, n = i; @@ -18760,8 +18850,8 @@ function WDn() { } throw $(new W$(n)); } - function dJe() { - dJe = G, tYe = I(T(ke, 1), oe, 2, 6, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]), iYe = I(T(ke, 1), oe, 2, 6, ["Jan", "Feb", "Mar", "Apr", F3, "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]); + function bJe() { + bJe = G, iYe = I(S(ye, 1), fe, 2, 6, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]), rYe = I(S(ye, 1), fe, 2, 6, ["Jan", "Feb", "Mar", "Apr", F3, "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]); } function y(e, n) { var t, i; @@ -18786,22 +18876,22 @@ function WDn() { } function Ojn(e, n, t, i) { var r, c, s, f, h; - return s = y_e(e.a, n, t), f = u(s.a, 15).a, c = u(s.b, 15).a, i && (h = u(y(n, (te(), ds)), 9), r = u(y(t, ds), 9), h && r && (nOe(e.b, h, r), f += e.b.i, c += e.b.e)), f > c; + return s = jBe(e.a, n, t), f = u(s.a, 15).a, c = u(s.b, 15).a, i && (h = u(y(n, (te(), ds)), 9), r = u(y(t, ds), 9), h && r && (tOe(e.b, h, r), f += e.b.i, c += e.b.e)), f > c; } - function bJe(e, n) { + function wJe(e, n) { var t, i, r; if (one(e, n)) return !0; for (i = new x(n); i.a < i.c.c.length; ) - if (t = u(A(i), 26), r = q_e(t), xT(e, t, r) || oRe(e, t) - e.g <= e.a) + if (t = u(A(i), 26), r = UBe(t), xT(e, t, r) || fRe(e, t) - e.g <= e.a) return !0; return !1; } function N7() { - N7 = G, RC = (mR(), N1e), qq = Xun, Hq = Wun, S1e = qun, Gq = zun, T1e = new N0(8), Fun = new nr((tt(), Ml), T1e), Run = new nr(i1, 8), Bun = L1e, $1e = _un, M1e = Jun, Nun = new nr(ME, (en(), !1)); + N7 = G, RC = (mR(), N1e), qq = Kun, Hq = Xun, S1e = Uun, Gq = Wun, T1e = new N0(8), Run = new nr((tt(), Ml), T1e), _un = new nr(i1, 8), Bun = L1e, $1e = Jun, M1e = Gun, Fun = new nr(ME, (en(), !1)); } function hT() { - hT = G, Z1e = new N0(15), lsn = new nr((tt(), Ml), Z1e), asn = new nr(i1, 15), ede = new nr(CE, ie(0)), V1e = vsn, fsn = v0, hsn = fd, K1e = new nr(a4, hKe), Q1e = SE, Y1e = mp, Xq = gsn, osn = $E; + hT = G, Z1e = new N0(15), asn = new nr((tt(), Ml), Z1e), dsn = new nr(i1, 15), ede = new nr(CE, ie(0)), V1e = ksn, hsn = v0, lsn = fd, K1e = new nr(a4, lKe), Q1e = SE, Y1e = mp, Xq = psn, fsn = $E; } function Ljn(e, n) { if (N(n, 206)) @@ -18810,7 +18900,7 @@ function WDn() { return Kkn(e, u(n, 125)); if (n) return null; - throw $(new on(D5 + wh(new yc(I(T(Li, 1), Ve, 1, 5, [n]))))); + throw $(new on(D5 + wh(new yc(I(S(Li, 1), Ve, 1, 5, [n]))))); } function Djn(e, n) { if (N(n, 362)) @@ -18819,16 +18909,16 @@ function WDn() { return NIn(e, u(n, 85)); if (n) return null; - throw $(new on(D5 + wh(new yc(I(T(Li, 1), Ve, 1, 5, [n]))))); + throw $(new on(D5 + wh(new yc(I(S(Li, 1), Ve, 1, 5, [n]))))); } function QF(e) { if ((!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b).i != 1 || (!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c).i != 1) - throw $(new on(rVe)); + throw $(new on(cVe)); return ec(u(F((!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), 0), 84)); } - function wJe(e) { + function gJe(e) { if ((!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b).i != 1 || (!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c).i != 1) - throw $(new on(rVe)); + throw $(new on(cVe)); return ec(u(F((!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c), 0), 84)); } function sne(e, n, t) { @@ -18837,12 +18927,12 @@ function WDn() { if (t >= r || t < 0) throw $(new lu(dJ + t + r0 + r)); return n != t ? i = (c = e.Aj(t), e.oj(n, c), c) : i = e.vj(t), i; } - function gJe(e) { + function pJe(e) { var n, t, i; if (i = e, e) for (n = 0, t = e.Bh(); t; t = t.Bh()) { - if (++n > jB) - return gJe(t); + if (++n > j_) + return pJe(t); if (i = t, t == e) throw $(new qr("There is a cycle in the containment hierarchy of " + e)); } @@ -18851,7 +18941,7 @@ function WDn() { function wh(e) { var n, t, i; for (i = new Gd(mu, "[", "]"), t = e.Jc(); t.Ob(); ) - n = t.Pb(), Xl(i, z(n) === z(e) ? "(this Collection)" : n == null ? Bu : uc(n)); + n = t.Pb(), Xl(i, z(n) === z(e) ? "(this Collection)" : n == null ? _u : uc(n)); return i.a ? i.e.length == 0 ? i.a.a : i.a.a + ("" + i.e) : i.c; } function one(e, n) { @@ -18862,13 +18952,13 @@ function WDn() { t < n.gc() - 1 ? i = i | xT(e, u(n.Xb(t), 26), u(n.Xb(t + 1), 26)) : i = i | xT(e, u(n.Xb(t), 26), u(n.Xb(0), 26)); return i; } - function pJe(e, n) { + function mJe(e, n) { var t; - n != e.a ? (t = null, e.a && (t = u(e.a, 52).Qh(e, 4, eh, t)), n && (t = u(n, 52).Oh(e, 4, eh, t)), t = kZ(e, n, t), t && t.mj()) : (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 1, n, n)); + n != e.a ? (t = null, e.a && (t = u(e.a, 52).Qh(e, 4, eh, t)), n && (t = u(n, 52).Oh(e, 4, eh, t)), t = kZ(e, n, t), t && t.mj()) : (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 1, n, n)); } function fne(e, n) { var t; - n != e.e ? (e.e && KOe(FV(e.e), e), n && (!n.b && (n.b = new pA(new uO())), aTe(n.b, e)), t = zyn(e, n, null), t && t.mj()) : (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 4, n, n)); + n != e.e ? (e.e && VOe(FV(e.e), e), n && (!n.b && (n.b = new pA(new uO())), dTe(n.b, e)), t = zyn(e, n, null), t && t.mj()) : (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 4, n, n)); } function Njn(e) { var n, t, i, r; @@ -18880,22 +18970,22 @@ function WDn() { } function Fjn(e, n) { var t; - t = n.o, _l(e.f) ? (e.j.a = m.Math.max(e.j.a, t.a), e.j.b += t.b, e.d.c.length > 1 && (e.j.b += e.e)) : (e.j.a += t.a, e.j.b = m.Math.max(e.j.b, t.b), e.d.c.length > 1 && (e.j.a += e.e)); + t = n.o, Bl(e.f) ? (e.j.a = m.Math.max(e.j.a, t.a), e.j.b += t.b, e.d.c.length > 1 && (e.j.b += e.e)) : (e.j.a += t.a, e.j.b = m.Math.max(e.j.b, t.b), e.d.c.length > 1 && (e.j.a += e.e)); } - function B1() { - B1 = G, jen = I(T(Mr, 1), Bc, 64, 0, [(be(), ln), gn, Mn]), yen = I(T(Mr, 1), Bc, 64, 0, [gn, Mn, an]), Een = I(T(Mr, 1), Bc, 64, 0, [Mn, an, ln]), Aen = I(T(Mr, 1), Bc, 64, 0, [an, ln, gn]); + function _1() { + _1 = G, Een = I(S(Mr, 1), _c, 64, 0, [(be(), ln), gn, Mn]), jen = I(S(Mr, 1), _c, 64, 0, [gn, Mn, an]), Aen = I(S(Mr, 1), _c, 64, 0, [Mn, an, ln]), xen = I(S(Mr, 1), _c, 64, 0, [an, ln, gn]); } - function mJe(e) { + function vJe(e) { var n, t, i, r, c, s, f, h, l; - for (this.a = JBe(e), this.b = new le(), t = e, i = 0, r = t.length; i < r; ++i) + for (this.a = G_e(e), this.b = new le(), t = e, i = 0, r = t.length; i < r; ++i) for (n = t[i], c = new le(), he(this.b, c), f = n, h = 0, l = f.length; h < l; ++h) s = f[h], he(c, new os(s.j)); } function Rjn(e, n, t) { var i, r, c; - return c = 0, i = t[n], n < t.length - 1 && (r = t[n + 1], e.b[n] ? (c = pLn(e.d, i, r), c += aD(e.a, i, (be(), gn)), c += aD(e.a, r, an)) : c = _vn(e.a, i, r)), e.c[n] && (c += lvn(e.a, i)), c; + return c = 0, i = t[n], n < t.length - 1 && (r = t[n + 1], e.b[n] ? (c = pLn(e.d, i, r), c += aD(e.a, i, (be(), gn)), c += aD(e.a, r, an)) : c = Bvn(e.a, i, r)), e.c[n] && (c += lvn(e.a, i)), c; } - function Bjn(e, n, t, i, r) { + function _jn(e, n, t, i, r) { var c, s, f, h; for (h = null, f = new x(i); f.a < f.c.c.length; ) if (s = u(A(f), 444), s != t && dc(s.e, r, 0) != -1) { @@ -18904,23 +18994,23 @@ function WDn() { } c = XD(r), br(c, t.b), Ki(c, h.b), Je(e.a, r, new Fx(c, n, t.f)); } - function vJe(e) { + function kJe(e) { for (; e.g.c != 0 && e.d.c != 0; ) - xL(e.g).c > xL(e.d).c ? (e.i += e.g.c, dF(e.d)) : xL(e.d).c > xL(e.g).c ? (e.e += e.d.c, dF(e.g)) : (e.i += pSe(e.g), e.e += pSe(e.d), dF(e.g), dF(e.d)); + xL(e.g).c > xL(e.d).c ? (e.i += e.g.c, dF(e.d)) : xL(e.d).c > xL(e.g).c ? (e.e += e.d.c, dF(e.g)) : (e.i += mSe(e.g), e.e += mSe(e.d), dF(e.g), dF(e.d)); } - function _jn(e, n, t) { + function Bjn(e, n, t) { var i, r, c, s; for (c = n.q, s = n.r, new Dd((Jf(), ud), n, c, 1), new Dd(ud, c, s, 1), r = new x(t); r.a < r.c.c.length; ) i = u(A(r), 116), i != c && i != n && i != s && (Zte(e.a, i, n), Zte(e.a, i, s)); } - function kJe(e, n, t, i) { - e.a.d = m.Math.min(n, t), e.a.a = m.Math.max(n, i) - e.a.d, n < t ? (e.b = 0.5 * (n + t), e.g = O_ * e.b + 0.9 * n, e.f = O_ * e.b + 0.9 * t) : (e.b = 0.5 * (n + i), e.g = O_ * e.b + 0.9 * i, e.f = O_ * e.b + 0.9 * n); + function yJe(e, n, t, i) { + e.a.d = m.Math.min(n, t), e.a.a = m.Math.max(n, i) - e.a.d, n < t ? (e.b = 0.5 * (n + t), e.g = OB * e.b + 0.9 * n, e.f = OB * e.b + 0.9 * t) : (e.b = 0.5 * (n + i), e.g = OB * e.b + 0.9 * i, e.f = OB * e.b + 0.9 * n); } function Jjn(e) { var n, t, i, r; if (e.b != 0) { for (n = new Dt(), r = Nn(e, 0); r.b != r.d.c; ) - i = u(Ln(r), 40), wr(n, LN(i)), t = i.e, t.a = u(y(i, (Bt(), pE)), 15).a, t.b = u(y(i, mE), 15).a; + i = u(Ln(r), 40), wr(n, LN(i)), t = i.e, t.a = u(y(i, (_t(), pE)), 15).a, t.b = u(y(i, mE), 15).a; return n; } return new Dt(); @@ -18928,26 +19018,26 @@ function WDn() { function Gjn(e) { switch (u(y(e, (ae(), pc)), 165).g) { case 1: - K(e, pc, (Bs(), Tk)); + K(e, pc, (_s(), Tk)); break; case 2: - K(e, pc, (Bs(), l0)); + K(e, pc, (_s(), l0)); break; case 3: - K(e, pc, (Bs(), Mk)); + K(e, pc, (_s(), Mk)); break; case 4: - K(e, pc, (Bs(), ha)); + K(e, pc, (_s(), ha)); } } function Hjn(e, n, t) { var i; - t.Tg("Self-Loop routing", 1), i = S9n(n), px(y(n, (J$(), u8))), fi(du(mt(mt(cc(new Ge(null, new He(n.b, 16)), new C2e()), new P2e()), new O2e()), new L2e()), new JAe(e, i)), t.Ug(); + t.Tg("Self-Loop routing", 1), i = S9n(n), px(y(n, (J$(), u8))), fi(du(mt(mt(cc(new Ge(null, new He(n.b, 16)), new P2e()), new O2e()), new L2e()), new D2e()), new GAe(e, i)), t.Ug(); } function Kv() { - Kv = G, yk = new Z4(Wf, 0), mfe = new Z4(_3, 1), yfe = new Z4(J3, 2), kfe = new Z4("LEFT_RIGHT_CONSTRAINT_LOCKING", 3), vfe = new Z4("LEFT_RIGHT_CONNECTION_LOCKING", 4), pfe = new Z4(kXe, 5); + Kv = G, yk = new Z4(Wf, 0), mfe = new Z4(B3, 1), yfe = new Z4(J3, 2), kfe = new Z4("LEFT_RIGHT_CONSTRAINT_LOCKING", 3), vfe = new Z4("LEFT_RIGHT_CONNECTION_LOCKING", 4), pfe = new Z4(yXe, 5); } - function yJe(e, n, t) { + function jJe(e, n, t) { var i, r, c, s, f, h, l; f = t.a / 2, c = t.b / 2, i = m.Math.abs(n.a - e.a), r = m.Math.abs(n.b - e.b), h = 1, l = 1, i > f && (h = f / i), r > c && (l = c / r), s = m.Math.min(h, l), e.a += s * (n.a - e.a), e.b += s * (n.b - e.b); } @@ -18963,33 +19053,33 @@ function WDn() { } function YF(e, n) { var t; - n != e.sb ? (t = null, e.sb && (t = u(e.sb, 52).Qh(e, 1, y8, t)), n && (t = u(n, 52).Oh(e, 1, y8, t)), t = EZ(e, n, t), t && t.mj()) : (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 4, n, n)); + n != e.sb ? (t = null, e.sb && (t = u(e.sb, 52).Qh(e, 1, y8, t)), n && (t = u(n, 52).Oh(e, 1, y8, t)), t = EZ(e, n, t), t && t.mj()) : (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 4, n, n)); } - function jJe(e, n) { + function EJe(e, n) { var t, i, r, c; if (n) - r = Yl(n, "x"), t = new c7e(e), w2(t.a, (Ze(r), r)), c = Yl(n, "y"), i = new u7e(e), g2(i.a, (Ze(c), c)); + r = Yl(n, "x"), t = new u7e(e), w2(t.a, (Ze(r), r)), c = Yl(n, "y"), i = new s7e(e), g2(i.a, (Ze(c), c)); else throw $(new Lh("All edge sections need an end point.")); } - function EJe(e, n) { + function AJe(e, n) { var t, i, r, c; if (n) - r = Yl(n, "x"), t = new t7e(e), p2(t.a, (Ze(r), r)), c = Yl(n, "y"), i = new i7e(e), m2(i.a, (Ze(c), c)); + r = Yl(n, "x"), t = new i7e(e), p2(t.a, (Ze(r), r)), c = Yl(n, "y"), i = new r7e(e), m2(i.a, (Ze(c), c)); else throw $(new Lh("All edge sections need a start point.")); } function Ujn(e, n) { var t, i, r, c, s, f, h; - for (i = HFe(e), c = 0, f = i.length; c < f; ++c) - $Je(n); + for (i = qFe(e), c = 0, f = i.length; c < f; ++c) + MJe(n); for (h = !jh && e.e ? jh ? null : e.d : null; h; ) { - for (t = HFe(h), r = 0, s = t.length; r < s; ++r) - $Je(n); + for (t = qFe(h), r = 0, s = t.length; r < s; ++r) + MJe(n); h = !jh && h.e ? jh ? null : h.d : null; } } - function AJe(e, n) { + function xJe(e, n) { var t, i; i = u(y(n, (ae(), oi)), 102), K(n, (te(), Nfe), i), t = n.e, t && (fi(new Ge(null, new He(t.a, 16)), new Fz(e)), fi(cc(new Ge(null, new He(t.b, 16)), new XU()), new Rz(e))); } @@ -18997,11 +19087,11 @@ function WDn() { var n, t, i, r; if (n = !1, Et(e, (te(), Ak))) for (t = u(y(e, Ak), 92), r = new x(e.j); r.a < r.c.c.length; ) - i = u(A(r), 12), Hxn(i) && (n || (sAn(_i(e)), n = !0), gkn(u(t.xc(i), 318))); + i = u(A(r), 12), Hxn(i) && (n || (sAn(Bi(e)), n = !0), gkn(u(t.xc(i), 318))); } function Wjn(e) { var n, t, i, r, c, s, f, h, l; - return l = nne(e), t = e.e, c = t != null, c && iv(l, SS, e.e), f = e.k, s = !!f, s && iv(l, "type", jL(e.k)), i = K8(e.j), r = !i, r && (h = new kd(), gf(l, hJ, h), n = new x7e(h), fr(e.j, n)), l; + return l = nne(e), t = e.e, c = t != null, c && iv(l, SS, e.e), f = e.k, s = !!f, s && iv(l, "type", jL(e.k)), i = K8(e.j), r = !i, r && (h = new kd(), gf(l, hJ, h), n = new $7e(h), fr(e.j, n)), l; } function Xjn(e) { var n, t, i, r; @@ -19009,7 +19099,7 @@ function WDn() { n = u(t.Pb(), 45), i || (r.a += mu), i = !1, Yc(Pd(Yc(r, n.jd()), 61), n.kd()); return (r.a += "}", r).a; } - function xJe(e, n) { + function $Je(e, n) { var t, i, r; return n &= 63, n < 22 ? (t = e.l << n, i = e.m << n | e.l >> 22 - n, r = e.h << n | e.m >> 22 - n) : n < 44 ? (t = 0, i = e.l << n - 22, r = e.m << n - 22 | e.l >> 44 - n) : (t = 0, i = 0, r = e.l << n - 44), Eu(t & Ts, i & Ts, r & ca); } @@ -19018,17 +19108,17 @@ function WDn() { throw $(new Dh(wb + e + '"')); return parseFloat(e); } - function $Je(e) { + function MJe(e) { var n, t, i; - n = _e(typeof console, SB) ? null : new Ibe(), n && (Wm(), t = (i = 900, i >= za ? "error" : i >= 900 ? "warn" : i >= 800 ? "info" : "log"), hIe(t, e.a), e.b && lte(n, t, e.b, "Exception: ", !0)); + n = Be(typeof console, S_) ? null : new Cbe(), n && (Wm(), t = (i = 900, i >= za ? "error" : i >= 900 ? "warn" : i >= 800 ? "info" : "log"), lIe(t, e.a), e.b && lte(n, t, e.b, "Exception: ", !0)); } - function MJe(e, n) { + function TJe(e, n) { var t, i, r, c, s; for (r = n == 1 ? aG : lG, i = r.a.ec().Jc(); i.Ob(); ) for (t = u(i.Pb(), 86), s = u(Mt(e.f.c, t), 22).Jc(); s.Ob(); ) c = u(s.Pb(), 49), he(e.b.b, u(c.b, 82)), he(e.b.a, u(c.b, 82).d); } - function TJe(e, n, t, i) { + function SJe(e, n, t, i) { var r, c, s, f, h; switch (h = e.b, c = n.d, s = c.j, f = fee(s, h.d[s.g], t), r = At(kr(c.n), c.a), c.j.g) { case 3: @@ -19067,7 +19157,7 @@ function WDn() { } function ZF(e) { var n; - return (e.Db & 64) != 0 ? iF(e) : (n = new _o(iF(e)), n.a += " (height: ", zg(n, e.f), n.a += ", width: ", zg(n, e.g), n.a += ", x: ", zg(n, e.i), n.a += ", y: ", zg(n, e.j), n.a += ")", n.a); + return (e.Db & 64) != 0 ? iF(e) : (n = new Bo(iF(e)), n.a += " (height: ", zg(n, e.f), n.a += ", width: ", zg(n, e.g), n.a += ", x: ", zg(n, e.i), n.a += ", y: ", zg(n, e.j), n.a += ")", n.a); } function Qjn(e) { var n, t, i, r, c, s, f; @@ -19079,13 +19169,13 @@ function WDn() { function Yjn(e) { var n, t, i, r, c; if (e == null) - return Bu; + return _u; for (c = new Gd(mu, "[", "]"), t = e, i = 0, r = t.length; i < r; ++i) n = t[i], Xl(c, String.fromCharCode(n)); return c.a ? c.e.length == 0 ? c.a.a : c.a.a + ("" + c.e) : c.c; } function ane() { - ane = G, Rse = (V$(), rI), nZe = new Fe(XT, Rse), ie(1), eZe = new Fe(Hie, ie(300)), ie(0), rZe = new Fe(qie, ie(0)), cZe = new Fe(LB, Vh), tZe = new Fe(DB, 5), uZe = rI, iZe = rG; + ane = G, Rse = (V$(), rI), tZe = new Fe(XT, Rse), ie(1), nZe = new Fe(Hie, ie(300)), ie(0), cZe = new Fe(qie, ie(0)), uZe = new Fe(L_, Vh), iZe = new Fe(D_, 5), sZe = rI, rZe = rG; } function Zjn(e, n) { var t; @@ -19095,11 +19185,11 @@ function WDn() { function eEn(e, n, t) { var i, r; for (r = new Vi(e.b, 0); r.b < r.d.gc(); ) - i = (An(r.b < r.d.gc()), u(r.d.Xb(r.c = r.b++), 70)), z(y(i, (te(), Lfe))) === z(n) && (vne(i.n, _i(e.c.i), t), vs(r), he(n.b, i)); + i = (An(r.b < r.d.gc()), u(r.d.Xb(r.c = r.b++), 70)), z(y(i, (te(), Lfe))) === z(n) && (vne(i.n, Bi(e.c.i), t), vs(r), he(n.b, i)); } - function SJe(e) { + function IJe(e) { var n, t; - return t = m.Math.sqrt((e.k == null && (e.k = RY(e, new r3e())), _(e.k) / (e.b * (e.g == null && (e.g = RNe(e, new nz())), _(e.g))))), n = Xn(Cc(m.Math.round(t))), n = m.Math.min(n, e.f), n; + return t = m.Math.sqrt((e.k == null && (e.k = RY(e, new c3e())), B(e.k) / (e.b * (e.g == null && (e.g = _Ne(e, new nz())), B(e.g))))), n = Xn(Cc(m.Math.round(t))), n = m.Math.min(n, e.f), n; } function nEn() { var e, n, t; @@ -19117,15 +19207,15 @@ function WDn() { return n; } function Uc() { - ns(), kK.call(this), this.j = (be(), mc), this.a = new er(), new tO(), this.f = (Qs(2, Ww), new bu(2)), this.e = (Qs(4, Ww), new bu(4)), this.g = (Qs(4, Ww), new bu(4)), this.b = new _Ae(this.e, this.g); + ns(), kK.call(this), this.j = (be(), mc), this.a = new er(), new tO(), this.f = (Qs(2, Ww), new bu(2)), this.e = (Qs(4, Ww), new bu(4)), this.g = (Qs(4, Ww), new bu(4)), this.b = new JAe(this.e, this.g); } function iEn(e, n) { var t, i; - return !(ve(me(y(n, (te(), Qa)))) || (i = n.c.i, e == (Bs(), Mk) && i.k == (cn(), _c)) || (t = u(y(i, (ae(), pc)), 165), t == ha)); + return !(ve(me(y(n, (te(), Qa)))) || (i = n.c.i, e == (_s(), Mk) && i.k == (cn(), Bc)) || (t = u(y(i, (ae(), pc)), 165), t == ha)); } function rEn(e, n) { var t, i; - return !(ve(me(y(n, (te(), Qa)))) || (i = n.d.i, e == (Bs(), Tk) && i.k == (cn(), _c)) || (t = u(y(i, (ae(), pc)), 165), t == l0)); + return !(ve(me(y(n, (te(), Qa)))) || (i = n.d.i, e == (_s(), Tk) && i.k == (cn(), Bc)) || (t = u(y(i, (ae(), pc)), 165), t == l0)); } function cEn(e, n) { var t, i, r, c, s, f, h; @@ -19146,7 +19236,7 @@ function WDn() { fi(new Ge(null, new He(n.d, 16)), new QU()); } function F7() { - F7 = G, j1e = new sy("CENTER_DISTANCE", 0), _q = new sy("CIRCLE_UNDERLAP", 1), A1e = new sy("RECTANGLE_UNDERLAP", 2), Jq = new sy("INVERTED_OVERLAP", 3), E1e = new sy("MINIMUM_ROOT_DISTANCE", 4); + F7 = G, j1e = new sy("CENTER_DISTANCE", 0), Bq = new sy("CIRCLE_UNDERLAP", 1), A1e = new sy("RECTANGLE_UNDERLAP", 2), Jq = new sy("INVERTED_OVERLAP", 3), E1e = new sy("MINIMUM_ROOT_DISTANCE", 4); } function sEn(e) { mte(); @@ -19160,9 +19250,9 @@ function WDn() { var n, t, i; switch (i = e.c.length, i) { case 0: - return bD(), JQe; + return bD(), GQe; case 1: - return n = u(hGe(new x(e)), 45), Jdn(n.jd(), n.kd()); + return n = u(lGe(new x(e)), 45), Jdn(n.jd(), n.kd()); default: return t = u(ah(e, W(s0, JT, 45, e.c.length, 0, 1)), 175), new JW(t); } @@ -19183,12 +19273,12 @@ function WDn() { } function fEn(e, n) { var t, i, r; - t = Nwn(n, e.e), i = u(rn(e.g.f, t), 15).a, r = e.a.c.length - 1, e.a.c.length != 0 && u(pe(e.a, r), 295).c == i ? (++u(pe(e.a, r), 295).a, ++u(pe(e.a, r), 295).b) : he(e.a, new yMe(i)); + t = Nwn(n, e.e), i = u(rn(e.g.f, t), 15).a, r = e.a.c.length - 1, e.a.c.length != 0 && u(pe(e.a, r), 295).c == i ? (++u(pe(e.a, r), 295).a, ++u(pe(e.a, r), 295).b) : he(e.a, new jMe(i)); } - function _1() { - _1 = G, Xcn = (tt(), mm), Kcn = i1, qcn = v0, Ucn = mp, zcn = fd, Hcn = pp, Oae = IE, Wcn = Mg, pq = (Tte(), Pcn), mq = Ocn, Dae = Fcn, vq = _cn, Nae = Rcn, Fae = Bcn, Lae = Lcn, TC = Dcn, SC = Ncn, vE = Jcn, Rae = Gcn, Pae = Ccn; + function B1() { + B1 = G, Kcn = (tt(), mm), Vcn = i1, Ucn = v0, zcn = mp, Wcn = fd, qcn = pp, Oae = IE, Xcn = Mg, pq = (Tte(), Ocn), mq = Lcn, Dae = Rcn, vq = Jcn, Nae = _cn, Fae = Bcn, Lae = Dcn, TC = Ncn, SC = Fcn, vE = Gcn, Rae = Hcn, Pae = Pcn; } - function IJe(e, n) { + function CJe(e, n) { var t, i, r, c, s; if (e.e <= n || w3n(e, e.g, n)) return e.g; @@ -19198,9 +19288,9 @@ function WDn() { } function hEn(e, n, t) { var i; - i = eqe(e, n, !0), cJe(t, "Recursive Graph Layout", i), lne(n, I(T(q1e, 1), Ve, 524, 0, [new B9e()])), Gf(n, (tt(), Tg)) || lne(n, I(T(q1e, 1), Ve, 524, 0, [new qve()])), mie(e, n, null, t), CJe(t); + i = nqe(e, n, !0), uJe(t, "Recursive Graph Layout", i), lne(n, I(S(q1e, 1), Ve, 524, 0, [new B9e()])), Gf(n, (tt(), Tg)) || lne(n, I(S(q1e, 1), Ve, 524, 0, [new Uve()])), mie(e, n, null, t), PJe(t); } - function CJe(e) { + function PJe(e) { var n; if (e.p == null) throw $(new qr("The task has not begun yet.")); @@ -19212,11 +19302,11 @@ function WDn() { n = u(En(t), 372), rt(i, new ue(n.a, n.b)); return rt(i, new ue(e.b, e.c)), i; } - function PJe(e, n, t, i, r) { + function OJe(e, n, t, i, r) { var c, s, f, h, l, a; if (r) for (h = r.a.length, c = new Sd(h), a = (c.b - c.a) * c.c < 0 ? (v1(), md) : new j1(c); a.Ob(); ) - l = u(a.Pb(), 15), f = bv(r, l.a), s = new qIe(e, n, t, i), Kqe(s.a, s.b, s.c, s.d, f); + l = u(a.Pb(), 15), f = bv(r, l.a), s = new UIe(e, n, t, i), Vqe(s.a, s.b, s.c, s.d, f); } function dne(e, n) { var t; @@ -19238,7 +19328,7 @@ function WDn() { switch (this.c = e, n.g) { case 2: if (e.a.Le(r, t) < 0) - throw $(new on(Pie + r + AWe + t)); + throw $(new on(Pie + r + xWe + t)); break; case 1: e.a.Le(r, r); @@ -19270,10 +19360,10 @@ function WDn() { } function dEn(e, n, t) { var i, r, c; - for (r = new fn(dn(Jh(t).a.Jc(), new Q())); xn(r); ) - i = u(pn(r), 17), !hr(i) && !(!hr(i) && i.c.i.c == i.d.i.c) && (c = AHe(e, i, t, new lje()), c.c.length > 1 && sn(n.c, c)); + for (r = new fn(dn(Jh(t).a.Jc(), new Y())); xn(r); ) + i = u(pn(r), 17), !hr(i) && !(!hr(i) && i.c.i.c == i.d.i.c) && (c = xHe(e, i, t, new aje()), c.c.length > 1 && sn(n.c, c)); } - function OJe(e, n, t, i, r) { + function LJe(e, n, t, i, r) { if (i < n || r < t) throw $(new on("The highx must be bigger then lowx and the highy must be bigger then lowy")); return e.a < n ? e.a = n : e.a > i && (e.a = i), e.b < t ? e.b = t : e.b > r && (e.b = r), e; @@ -19285,7 +19375,7 @@ function WDn() { return z9n(u(e, 233)); if (N(e, 21)) return Wjn(u(e, 21)); - throw $(new on(D5 + wh(new yc(I(T(Li, 1), Ve, 1, 5, [e]))))); + throw $(new on(D5 + wh(new yc(I(S(Li, 1), Ve, 1, 5, [e]))))); } function wEn(e, n, t, i, r) { var c, s, f; @@ -19303,7 +19393,7 @@ function WDn() { function wne(e, n, t, i) { var r, c, s; if (n.k == (cn(), yi)) { - for (c = new fn(dn(bi(n).a.Jc(), new Q())); xn(c); ) + for (c = new fn(dn(bi(n).a.Jc(), new Y())); xn(c); ) if (r = u(pn(c), 17), s = r.c.i.k, s == yi && e.c.a[r.c.i.c.p] == i && e.c.a[n.c.p] == t) return !0; } @@ -19313,19 +19403,19 @@ function WDn() { var t, i, r, c; return n &= 63, t = e.h & ca, n < 22 ? (c = t >>> n, r = e.m >> n | t << 22 - n, i = e.l >> n | e.m << 22 - n) : n < 44 ? (c = 0, r = t >>> n - 22, i = e.m >> n - 22 | e.h << 44 - n) : (c = 0, r = 0, i = t >>> n - 44), Eu(i & Ts, r & Ts, c & ca); } - function LJe(e, n, t, i) { + function DJe(e, n, t, i) { var r; - this.b = i, this.e = e == (Ud(), qk), r = n[t], this.d = lw(zu, [oe, zf], [171, 30], 16, [r.length, r.length], 2), this.a = lw(Wn, [oe, lt], [54, 30], 15, [r.length, r.length], 2), this.c = new Vee(n, t); + this.b = i, this.e = e == (Ud(), qk), r = n[t], this.d = lw(zu, [fe, zf], [171, 30], 16, [r.length, r.length], 2), this.a = lw(Wn, [fe, lt], [54, 30], 15, [r.length, r.length], 2), this.c = new Vee(n, t); } function pEn(e) { var n, t, i; - for (e.k = new oQ((be(), I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an])).length, e.j.c.length), i = new x(e.j); i.a < i.c.c.length; ) + for (e.k = new oQ((be(), I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an])).length, e.j.c.length), i = new x(e.j); i.a < i.c.c.length; ) t = u(A(i), 113), n = t.d.j, Je(e.k, n, t); e.e = j$n(n3(e.k)); } - function DJe(e, n) { + function NJe(e, n) { var t, i, r; - ki(e.d, n), t = new rme(), ht(e.c, n, t), t.f = VN(n.c), t.a = VN(n.d), t.d = (k9(), r = n.c.i.k, r == (cn(), si) || r == Eh), t.e = (i = n.d.i.k, i == si || i == Eh), t.b = n.c.j == (be(), an), t.c = n.d.j == gn; + ki(e.d, n), t = new cme(), ht(e.c, n, t), t.f = VN(n.c), t.a = VN(n.d), t.d = (k9(), r = n.c.i.k, r == (cn(), si) || r == Eh), t.e = (i = n.d.i.k, i == si || i == Eh), t.b = n.c.j == (be(), an), t.c = n.d.j == gn; } function mEn(e) { var n, t, i, r, c; @@ -19335,7 +19425,7 @@ function WDn() { } function vEn(e, n) { var t, i, r, c; - for (t = n.a.o.a, c = new $1(_i(n.a).b, n.c, n.f + 1), r = new T4(c); r.b < r.d.gc(); ) + for (t = n.a.o.a, c = new $1(Bi(n.a).b, n.c, n.f + 1), r = new T4(c); r.b < r.d.gc(); ) if (i = (An(r.b < r.d.gc()), u(r.d.Xb(r.c = r.b++), 25)), i.c.a >= t) return Vv(e, n, i.p), !0; return !1; @@ -19350,11 +19440,11 @@ function WDn() { var i, r, c, s, f, h, l, a; c = e.d.p, f = c.e, h = c.r, e.g = new Ay(h), s = e.d.o.c.p, i = s > 0 ? f[s - 1] : W(xl, Wa, 9, 0, 0, 1), r = f[s], l = s < f.length - 1 ? f[s + 1] : W(xl, Wa, 9, 0, 0, 1), a = n == t - 1, a ? TD(e.g, r, l) : TD(e.g, i, r); } - function NJe(e) { + function FJe(e) { var n; return (e.Db & 64) != 0 ? ZF(e) : (n = new Us(yue), !e.a || it(it((n.a += ' "', n), e.a), '"'), it(P0(it(P0(it(P0(it(P0((n.a += " (", n), e.i), ","), e.j), " | "), e.g), ","), e.f), ")"), n.a); } - function FJe(e, n, t) { + function RJe(e, n, t) { var i, r, c, s, f; for (f = xu(e.e.Ah(), n), r = u(e.g, 122), i = 0, s = 0; s < e.i; ++s) if (c = r[s], f.$l(c.Jk())) { @@ -19364,7 +19454,7 @@ function WDn() { } throw $(new lu(ek + t + r0 + i)); } - function RJe(e) { + function _Je(e) { var n, t, i; if (n = e.c, n == 2 || n == 7 || n == 1) return kt(), kt(), C8; @@ -19373,7 +19463,7 @@ function WDn() { return i; } function yEn(e, n, t) { - return e < 0 || e > t ? xne(e, t, "start index") : n < 0 || n > t ? xne(n, t, "end index") : y9("end index (%s) must not be less than start index (%s)", I(T(Li, 1), Ve, 1, 5, [ie(n), ie(e)])); + return e < 0 || e > t ? xne(e, t, "start index") : n < 0 || n > t ? xne(n, t, "end index") : y9("end index (%s) must not be less than start index (%s)", I(S(Li, 1), Ve, 1, 5, [ie(n), ie(e)])); } function BJe(e, n) { var t, i, r, c; @@ -19383,7 +19473,7 @@ function WDn() { c[1] ? c[0].Sm() && (n = fgn(n, c)) : c[0].Sm(); } catch (s) { if (s = gi(s), N(s, 80)) - t = s, SA(), B2n(N(t, 474) ? u(t, 474).ie() : t); + t = s, SA(), _2n(N(t, 474) ? u(t, 474).ie() : t); else throw $(s); } } @@ -19396,7 +19486,7 @@ function WDn() { } function jEn(e, n) { var t, i, r; - r = G$n(n), K(n, (te(), iH), r), r && (i = pt, Ur(e.f, r) && (i = u(hc(Ur(e.f, r)), 15).a), t = u(pe(n.g, 0), 17), ve(me(y(t, Qa))) || ht(e, r, ie(m.Math.min(u(y(t, _t), 15).a, i)))); + r = G$n(n), K(n, (te(), iH), r), r && (i = pt, Ur(e.f, r) && (i = u(hc(Ur(e.f, r)), 15).a), t = u(pe(n.g, 0), 17), ve(me(y(t, Qa))) || ht(e, r, ie(m.Math.min(u(y(t, Bt), 15).a, i)))); } function EEn(e) { var n, t, i, r; @@ -19404,11 +19494,11 @@ function WDn() { Et(u(pe(e.a, n), 9), (ae(), tC)) && (r = !1, i = u(y(u(pe(e.a, n), 9), tC), 15).a, t = t < i ? t : i); return r && (t = u(ge((ae(), tC)), 15).a), t; } - function _Je(e, n, t) { + function JJe(e, n, t) { var i, r, c, s, f; for (n.p = -1, f = ib(n, (Cr(), yu)).Jc(); f.Ob(); ) for (s = u(f.Pb(), 12), r = new x(s.g); r.a < r.c.c.length; ) - i = u(A(r), 17), c = i.d.i, n != c && (c.p < 0 ? t.Ec(i) : c.p > 0 && _Je(e, c, t)); + i = u(A(r), 17), c = i.d.i, n != c && (c.p < 0 ? t.Ec(i) : c.p > 0 && JJe(e, c, t)); n.p = 0; } function AEn(e) { @@ -19417,18 +19507,18 @@ function WDn() { i = (An(r.b < r.d.gc()), r.d.Xb(r.c = r.b++)), t || (n.a += ","), n.a += "" + i, t = !1; return (n.a += ")", n).a; } - function JJe(e, n, t) { + function GJe(e, n, t) { var i, r, c; if (!(t <= n + 2)) for (r = (t - n) / 2 | 0, i = 0; i < r; ++i) c = (qe(n + i, e.c.length), u(e.c[n + i], 12)), Ks(e, n + i, (qe(t - i - 1, e.c.length), u(e.c[t - i - 1], 12))), qe(t - i - 1, e.c.length), e.c[t - i - 1] = c; } - function GJe(e, n) { + function HJe(e, n) { var t, i, r; if (n.c.length != 0) { - for (t = bJe(e, n), r = !1; !t; ) - wT(e, n, !0), r = !0, t = bJe(e, n); - r && wT(e, n, !1), i = DN(n), e.b && e.b.Fg(i), e.a = oRe(e, (qe(0, n.c.length), u(n.c[0], 26))), GJe(e, i); + for (t = wJe(e, n), r = !1; !t; ) + wT(e, n, !0), r = !0, t = wJe(e, n); + r && wT(e, n, !1), i = DN(n), e.b && e.b.Fg(i), e.a = fRe(e, (qe(0, n.c.length), u(n.c[0], 26))), HJe(e, i); } } function nR(e, n) { @@ -19439,7 +19529,7 @@ function WDn() { r = e.Fh(i), r >= 0 ? e.hi(r) : Sne(e, i); else throw $(new on(V1 + i.ve() + Q9)); - else throw $(new on(qKe + n + UKe)); + else throw $(new on(UKe + n + zKe)); else jo(e, t, i); } @@ -19483,9 +19573,9 @@ function WDn() { function MEn(e) { var n, t, i, r; for (t = new Dt(), wr(t, e.o), i = new AA(); t.b != 0; ) - n = u(t.b == 0 ? null : (An(t.b != 0), mo(t, t.a.a)), 500), r = Ize(e, n, !0), r && he(i.a, n); + n = u(t.b == 0 ? null : (An(t.b != 0), mo(t, t.a.a)), 500), r = Cze(e, n, !0), r && he(i.a, n); for (; i.a.c.length != 0; ) - n = u(dZ(i), 500), Ize(e, n, !1); + n = u(dZ(i), 500), Cze(e, n, !1); } function Ee(e) { var n; @@ -19496,9 +19586,9 @@ function WDn() { } function a9(e, n) { var t, i, r, c, s; - i = m.Math.min(e.c, n.c), c = m.Math.min(e.d, n.d), r = m.Math.max(e.c + e.b, n.c + n.b), s = m.Math.max(e.d + e.a, n.d + n.a), r < i && (t = i, i = r, r = t), s < c && (t = c, c = s, s = t), zTe(e, i, c, r - i, s - c); + i = m.Math.min(e.c, n.c), c = m.Math.min(e.d, n.d), r = m.Math.max(e.c + e.b, n.c + n.b), s = m.Math.max(e.d + e.a, n.d + n.a), r < i && (t = i, i = r, r = t), s < c && (t = c, c = s, s = t), WTe(e, i, c, r - i, s - c); } - function HJe(e, n) { + function qJe(e, n) { var t, i; if (e.f) { for (; n.Ob(); ) @@ -19508,7 +19598,7 @@ function WDn() { } else return n.Ob(); } - function qJe(e, n) { + function UJe(e, n) { var t, i; if (e.f) { for (; n.Sb(); ) @@ -19519,18 +19609,18 @@ function WDn() { return n.Sb(); } function ts() { - ts = G, W0e = I(T(ke, 1), oe, 2, 6, [que, Dj, JS, oQe, GS, yJ, SS]), z0e = I(T(ke, 1), oe, 2, 6, [que, "empty", Dj, Lj, "elementOnly"]), X0e = I(T(ke, 1), oe, 2, 6, [que, "preserve", "replace", Kf]), sr = new WTe(); + ts = G, W0e = I(S(ye, 1), fe, 2, 6, [que, Dj, JS, fQe, GS, yJ, SS]), z0e = I(S(ye, 1), fe, 2, 6, [que, "empty", Dj, Lj, "elementOnly"]), X0e = I(S(ye, 1), fe, 2, 6, [que, "preserve", "replace", Kf]), sr = new XTe(); } function vne(e, n, t) { var i, r, c; if (n != t) { i = n; do - At(e, i.c), r = i.e, r && (c = i.d, sw(e, c.b, c.d), At(e, r.n), i = _i(r)); + At(e, i.c), r = i.e, r && (c = i.d, sw(e, c.b, c.d), At(e, r.n), i = Bi(r)); while (r); i = t; do - Fi(e, i.c), r = i.e, r && (c = i.d, EMe(e, c.b, c.d), Fi(e, r.n), i = _i(r)); + Fi(e, i.c), r = i.e, r && (c = i.d, AMe(e, c.b, c.d), Fi(e, r.n), i = Bi(r)); while (r); } } @@ -19538,12 +19628,12 @@ function WDn() { var r, c, s, f, h; if (i.f.c + i.i.c == 0) for (s = e.a[e.c], f = 0, h = s.length; f < h; ++f) - c = s[f], ht(i, c, new qNe(e, c, t)); - return r = u(hc(Ur(i.f, n)), 667), r.b = 0, r.c = r.f, r.c == 0 || Eke(u(pe(r.a, r.b), 295)), r; + c = s[f], ht(i, c, new UNe(e, c, t)); + return r = u(hc(Ur(i.f, n)), 667), r.b = 0, r.c = r.f, r.c == 0 || Ake(u(pe(r.a, r.b), 295)), r; } - function UJe(e) { + function zJe(e) { var n; - this.j = new le(), this.f = new vi(), this.b = (n = u(Ff(Mr), 10), new wo(n, u(af(n, n.length), 10), 0)), this.d = W(Wn, lt, 30, (be(), I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an])).length, 15, 1), this.g = e; + this.j = new le(), this.f = new vi(), this.b = (n = u(Ff(Mr), 10), new wo(n, u(af(n, n.length), 10), 0)), this.d = W(Wn, lt, 30, (be(), I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an])).length, 15, 1), this.g = e; } function T3() { T3 = G, X5 = new Q4("MEDIAN_LAYER", 0), vk = new Q4("TAIL_LAYER", 1), W5 = new Q4("HEAD_LAYER", 2), og = new Q4("SPACE_EFFICIENT_LAYER", 3), Q2 = new Q4("WIDEST_LAYER", 4), V2 = new Q4("CENTER_LAYER", 5); @@ -19581,7 +19671,7 @@ function WDn() { } function SEn(e, n) { var t; - return e.c.length == 0 ? !1 : (t = YRe((qe(0, e.c.length), u(e.c[0], 17)).c.i), Ws(), t == (Dw(), fp) || t == op ? !0 : a2(du(new Ge(null, new He(e, 16)), new y3e()), new aye(n))); + return e.c.length == 0 ? !1 : (t = ZRe((qe(0, e.c.length), u(e.c[0], 17)).c.i), Ws(), t == (Dw(), fp) || t == op ? !0 : a2(du(new Ge(null, new He(e, 16)), new j3e()), new dye(n))); } function iR(e, n) { if (N(n, 206)) @@ -19590,13 +19680,13 @@ function WDn() { return m1n(e, u(n, 125)); if (N(n, 443)) return g1n(e, u(n, 170)); - throw $(new on(D5 + wh(new yc(I(T(Li, 1), Ve, 1, 5, [n]))))); + throw $(new on(D5 + wh(new yc(I(S(Li, 1), Ve, 1, 5, [n]))))); } - function zJe(e, n, t) { + function WJe(e, n, t) { var i, r; if (this.f = e, i = u(rn(e.b, n), 262), r = i ? i.a : 0, FQ(t, r), t >= (r / 2 | 0)) for (this.e = i ? i.c : null, this.d = r; t++ < r; ) - mDe(this); + vDe(this); else for (this.c = i ? i.b : null; t-- > 0; ) oY(this); @@ -19606,36 +19696,36 @@ function WDn() { var t, i; n.a ? Z$n(e, n) : (t = u(EO(e.b, n.b), 60), t && t == e.a[n.b.f] && t.a && t.a != n.b.a && t.c.Ec(n.b), i = u(jO(e.b, n.b), 60), i && e.a[i.f] == n.b && i.a && i.a != n.b.a && n.b.c.Ec(i), pL(e.b, n.b)); } - function WJe(e, n) { + function XJe(e, n) { var t, i; - if (t = u(_r(e.b, n), 127), u(u(Mt(e.r, n), 22), 83).dc()) { + if (t = u(Br(e.b, n), 127), u(u(Mt(e.r, n), 22), 83).dc()) { t.n.b = 0, t.n.c = 0; return; } - t.n.b = e.C.b, t.n.c = e.C.c, e.A.Gc((Js(), y0)) && Eqe(e, n), i = w8n(e, n), wR(e, n) == (E2(), ld) && (i += 2 * e.w), t.a.a = i; + t.n.b = e.C.b, t.n.c = e.C.c, e.A.Gc((Js(), y0)) && Aqe(e, n), i = w8n(e, n), wR(e, n) == (E2(), ld) && (i += 2 * e.w), t.a.a = i; } - function XJe(e, n) { + function KJe(e, n) { var t, i; - if (t = u(_r(e.b, n), 127), u(u(Mt(e.r, n), 22), 83).dc()) { + if (t = u(Br(e.b, n), 127), u(u(Mt(e.r, n), 22), 83).dc()) { t.n.d = 0, t.n.a = 0; return; } - t.n.d = e.C.d, t.n.a = e.C.a, e.A.Gc((Js(), y0)) && Aqe(e, n), i = b8n(e, n), wR(e, n) == (E2(), ld) && (i += 2 * e.w), t.a.b = i; + t.n.d = e.C.d, t.n.a = e.C.a, e.A.Gc((Js(), y0)) && xqe(e, n), i = b8n(e, n), wR(e, n) == (E2(), ld) && (i += 2 * e.w), t.a.b = i; } function CEn(e, n) { var t, i, r, c; for (c = new le(), i = new x(n); i.a < i.c.c.length; ) t = u(A(i), 68), he(c, new WW(t, !0)), he(c, new WW(t, !1)); - r = new lCe(e), r.a.a.$b(), PPe(c, e.b, new yc(I(T(gYe, 1), Ve, 683, 0, [r]))); + r = new aCe(e), r.a.a.$b(), OPe(c, e.b, new yc(I(S(pYe, 1), Ve, 683, 0, [r]))); } function PEn(e, n) { var t, i, r; - n.Tg("End label pre-processing", 1), t = _(H(y(e, (ae(), sp)))), i = _(H(y(e, vg))), r = n2(u(y(e, co), 86)), fi(cc(new Ge(null, new He(e.b, 16)), new Qwe()), new STe(t, i, r)), n.Ug(); + n.Tg("End label pre-processing", 1), t = B(H(y(e, (ae(), sp)))), i = B(H(y(e, vg))), r = n2(u(y(e, co), 86)), fi(cc(new Ge(null, new He(e.b, 16)), new Ywe()), new ITe(t, i, r)), n.Ug(); } function yne(e, n) { var t, i, r; if (!e.d[n.p]) { - for (e.d[n.p] = !0, e.a[n.p] = !0, i = new fn(dn(Ht(n).a.Jc(), new Q())); xn(i); ) + for (e.d[n.p] = !0, e.a[n.p] = !0, i = new fn(dn(Ht(n).a.Jc(), new Y())); xn(i); ) t = u(pn(i), 17), !hr(t) && (r = t.d.i, e.a[r.p] ? he(e.b, t) : yne(e, r)); e.a[n.p] = !1; } @@ -19655,18 +19745,18 @@ function WDn() { case 4: i = 2 * t + e.b, ++e.b; } - return Et(n, (te(), _t)) && (i += u(y(n, _t), 15).a), i; + return Et(n, (te(), Bt)) && (i += u(y(n, Bt), 15).a), i; } - function KJe(e, n, t) { + function VJe(e, n, t) { var i, r, c; - for (t.yc(n, e), he(e.n, n), c = e.p.yg(n), n.j == e.p.zg() ? BRe(e.e, c) : BRe(e.j, c), o$(e), r = ll(vo(I(T(To, 1), Ve, 20, 0, [new Nm(n), new Sp(n)]))); xn(r); ) - i = u(pn(r), 12), t._b(i) || KJe(e, i, t); + for (t.yc(n, e), he(e.n, n), c = e.p.yg(n), n.j == e.p.zg() ? BRe(e.e, c) : BRe(e.j, c), o$(e), r = ll(vo(I(S(To, 1), Ve, 20, 0, [new Nm(n), new Sp(n)]))); xn(r); ) + i = u(pn(r), 12), t._b(i) || VJe(e, i, t); } function OEn(e, n, t) { var i, r, c; for (t.Tg("Processor set neighbors", 1), e.a = n.b.b == 0 ? 1 : n.b.b, r = null, i = Nn(n.b, 0); !r && i.b != i.d.c; ) - c = u(Ln(i), 40), ve(me(y(c, (Bt(), od)))) && (r = c); - r && iqe(e, new Bl(r), t), t.Ug(); + c = u(Ln(i), 40), ve(me(y(c, (_t(), od)))) && (r = c); + r && rqe(e, new _l(r), t), t.Ug(); } function jne(e) { var n, t, i; @@ -19675,7 +19765,7 @@ function WDn() { function Ene(e) { var n, t, i; if (!e.b) { - for (i = new J5e(), t = new Kp($9(e)); t.e != t.i.gc(); ) + for (i = new G5e(), t = new Kp($9(e)); t.e != t.i.gc(); ) n = u(kF(t), 19), (n.Bb & Lc) != 0 && Dn(i, n); Iw(i), e.b = new Zg((u(F(ee((E1(), tn).o), 8), 19), i.i), i.g), ks(e).b &= -9; } @@ -19691,14 +19781,14 @@ function WDn() { } function LEn(e, n) { var t, i, r, c, s, f, h, l; - h = u(s9(n3(n.k), W(Mr, Bc, 64, 2, 0, 1)), 126), l = n.g, t = XPe(n, h[0]), r = WPe(n, h[1]), i = DF(e, l, t, r), c = XPe(n, h[1]), f = WPe(n, h[0]), s = DF(e, l, c, f), i <= s ? (n.a = t, n.c = r) : (n.a = c, n.c = f); + h = u(s9(n3(n.k), W(Mr, _c, 64, 2, 0, 1)), 126), l = n.g, t = KPe(n, h[0]), r = XPe(n, h[1]), i = DF(e, l, t, r), c = KPe(n, h[1]), f = XPe(n, h[0]), s = DF(e, l, c, f), i <= s ? (n.a = t, n.c = r) : (n.a = c, n.c = f); } - function VJe(e, n, t, i, r) { + function QJe(e, n, t, i, r) { var c, s, f, h, l; if (n) for (f = n.Jc(); f.Ob(); ) for (s = u(f.Pb(), 9), l = jte(s, (Cr(), yu), t).Jc(); l.Ob(); ) - h = u(l.Pb(), 12), c = u(hc(Ur(r.f, h)), 116), c || (c = new d7(e.d), sn(i.c, c), KJe(c, h, r)); + h = u(l.Pb(), 12), c = u(hc(Ur(r.f, h)), 116), c || (c = new d7(e.d), sn(i.c, c), VJe(c, h, r)); } function R7(e) { var n; @@ -19714,38 +19804,38 @@ function WDn() { function aT(e, n) { var t, i, r, c, s, f; for (f = 0, c = new r2(), M1(c, n); c.b != c.c; ) - for (s = u(i3(c), 218), f += d_e(s.d, s.e), r = new x(s.b); r.a < r.c.c.length; ) + for (s = u(i3(c), 218), f += bBe(s.d, s.e), r = new x(s.b); r.a < r.c.c.length; ) i = u(A(r), 37), t = u(pe(e.b, i.p), 218), t.s || (f += aT(e, t)); return f; } - function QJe(e, n, t) { + function YJe(e, n, t) { var i, r; - hFe(this), n == (X0(), sd) ? ki(this.r, e.c) : ki(this.w, e.c), t == sd ? ki(this.r, e.d) : ki(this.w, e.d), DJe(this, e), i = VN(e.c), r = VN(e.d), kJe(this, i, r, r), this.o = (k9(), m.Math.abs(i - r) < 0.2); + lFe(this), n == (X0(), sd) ? ki(this.r, e.c) : ki(this.w, e.c), t == sd ? ki(this.r, e.d) : ki(this.w, e.d), NJe(this, e), i = VN(e.c), r = VN(e.d), yJe(this, i, r, r), this.o = (k9(), m.Math.abs(i - r) < 0.2); } - function YJe(e, n, t) { + function ZJe(e, n, t) { var i, r, c, s, f, h; if (f = u(hn(e.a, 8), 1997), f != null) for (r = f, c = 0, s = r.length; c < s; ++c) null.Sm(); - i = t, (e.a.Db & 1) == 0 && (h = new bIe(e, t, n), i.bj(h)), N(i, 676) ? u(i, 676).dj(e.a) : i.aj() == e.a && i.cj(null); + i = t, (e.a.Db & 1) == 0 && (h = new wIe(e, t, n), i.bj(h)), N(i, 676) ? u(i, 676).dj(e.a) : i.aj() == e.a && i.cj(null); } function DEn() { var e; - return wfn ? u(Yv((m1(), tf), u0), 2006) : (ZPn(), e = u(N(nu((m1(), tf), u0), 582) ? nu(tf, u0) : new EIe(), 582), wfn = !0, ROn(e), mLn(e), ht((RW(), O0e), e, new W4e()), FF(e), zr(tf, u0, e), e); + return gfn ? u(Yv((m1(), tf), u0), 2006) : (ZPn(), e = u(N(nu((m1(), tf), u0), 582) ? nu(tf, u0) : new AIe(), 582), gfn = !0, ROn(e), mLn(e), ht((RW(), O0e), e, new X4e()), FF(e), zr(tf, u0, e), e); } function NEn(e, n, t, i) { var r; - return r = T2(e, t, I(T(ke, 1), oe, 2, 6, [bB, wB, gB, pB, mB, vB, kB]), n), r < 0 && (r = T2(e, t, I(T(ke, 1), oe, 2, 6, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]), n)), r < 0 ? !1 : (i.d = r, !0); + return r = T2(e, t, I(S(ye, 1), fe, 2, 6, [b_, w_, g_, p_, m_, v_, k_]), n), r < 0 && (r = T2(e, t, I(S(ye, 1), fe, 2, 6, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]), n)), r < 0 ? !1 : (i.d = r, !0); } function FEn(e, n, t, i) { var r; - return r = T2(e, t, I(T(ke, 1), oe, 2, 6, [bB, wB, gB, pB, mB, vB, kB]), n), r < 0 && (r = T2(e, t, I(T(ke, 1), oe, 2, 6, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]), n)), r < 0 ? !1 : (i.d = r, !0); + return r = T2(e, t, I(S(ye, 1), fe, 2, 6, [b_, w_, g_, p_, m_, v_, k_]), n), r < 0 && (r = T2(e, t, I(S(ye, 1), fe, 2, 6, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]), n)), r < 0 ? !1 : (i.d = r, !0); } function Ru(e, n, t) { var i, r, c, s; if (s = e.b.Ae(n), r = (i = e.a.get(s), i ?? W(Li, Ve, 1, 0, 5, 1)), r.length == 0) e.a.set(s, r); - else if (c = eRe(e, n, r), c) + else if (c = nRe(e, n, r), c) return c.ld(t); return ai(r, r.length, new UA(n, t)), ++e.c, ++e.b.g, null; } @@ -19753,25 +19843,25 @@ function WDn() { var n, t, i; for (Nxn(e), i = new le(), t = new x(e.a.a.b); t.a < t.c.c.length; ) n = u(A(t), 82), he(i, new KW(n, !0)), he(i, new KW(n, !1)); - L8n(e.c), Gy(i, e.b, new yc(I(T(qj, 1), Ve, 377, 0, [e.c]))), YAn(e); + L8n(e.c), Gy(i, e.b, new yc(I(S(qj, 1), Ve, 377, 0, [e.c]))), YAn(e); } - function B7(e, n) { + function _7(e, n) { var t, i, r; for (r = new le(), i = new x(e.c.a.b); i.a < i.c.c.length; ) t = u(A(i), 60), n.Lb(t) && (he(r, new zW(t, !0)), he(r, new zW(t, !1))); - O8n(e.e), PPe(r, e.d, new yc(I(T(gYe, 1), Ve, 683, 0, [e.e]))); + O8n(e.e), OPe(r, e.d, new yc(I(S(pYe, 1), Ve, 683, 0, [e.e]))); } - function BEn(e) { + function _En(e) { var n, t, i, r; for (t = new Tn(), r = new x(e.d); r.a < r.c.c.length; ) - i = u(A(r), 187), n = u(i.mf((te(), rm)), 17), Ur(t.f, n) || ht(t, n, new nCe(n)), he(u(hc(Ur(t.f, n)), 455).b, i); + i = u(A(r), 187), n = u(i.mf((te(), rm)), 17), Ur(t.f, n) || ht(t, n, new tCe(n)), he(u(hc(Ur(t.f, n)), 455).b, i); return new os(new Rl(t)); } - function _En(e, n) { + function BEn(e, n) { var t, i, r, c, s; - for (i = new MPe(e.j.c.length), t = null, c = new x(e.j); c.a < c.c.c.length; ) - r = u(A(c), 12), r.j != t && (i.b == i.c || vHe(i, t, n), AQ(i), t = r.j), s = YGe(r), s && vQ(i, s); - i.b == i.c || vHe(i, t, n); + for (i = new TPe(e.j.c.length), t = null, c = new x(e.j); c.a < c.c.c.length; ) + r = u(A(c), 12), r.j != t && (i.b == i.c || kHe(i, t, n), AQ(i), t = r.j), s = ZGe(r), s && vQ(i, s); + i.b == i.c || kHe(i, t, n); } function JEn(e, n) { var t, i, r; @@ -19780,28 +19870,28 @@ function WDn() { } function GEn(e) { var n, t, i, r, c; - for (n = _f(new fn(dn(Ht(e).a.Jc(), new Q()))), r = new fn(dn(bi(e).a.Jc(), new Q())); xn(r); ) - i = u(pn(r), 17), t = i.c.i, c = _f(new fn(dn(Ht(t).a.Jc(), new Q()))), n = m.Math.max(n, c); + for (n = Bf(new fn(dn(Ht(e).a.Jc(), new Y()))), r = new fn(dn(bi(e).a.Jc(), new Y())); xn(r); ) + i = u(pn(r), 17), t = i.c.i, c = Bf(new fn(dn(Ht(t).a.Jc(), new Y()))), n = m.Math.max(n, c); return ie(n); } function Ane(e, n, t) { var i, r, c; i = u(re(e, (tt(), $E)), 22), r = 0, c = 0, n.a > t.a && (i.Gc((Kd(), s8)) ? r = (n.a - t.a) / 2 : i.Gc(o8) && (r = n.a - t.a)), n.b > t.b && (i.Gc((Kd(), h8)) ? c = (n.b - t.b) / 2 : i.Gc(f8) && (c = n.b - t.b)), cne(e, r, c); } - function ZJe(e, n, t, i, r, c, s, f, h, l, a, d, g) { - N(e.Cb, 88) && Bw(ks(u(e.Cb, 88)), 4), gu(e, t), e.f = s, Rv(e, f), Bv(e, h), Nv(e, l), Fv(e, a), Ga(e, d), _v(e, g), Ja(e, !0), Fa(e, r), e.Xk(c), zd(e, n), i != null && (e.i = null, hM(e, i)); + function eGe(e, n, t, i, r, c, s, f, h, l, a, d, g) { + N(e.Cb, 88) && _w(ks(u(e.Cb, 88)), 4), gu(e, t), e.f = s, Rv(e, f), _v(e, h), Nv(e, l), Fv(e, a), Ga(e, d), Bv(e, g), Ja(e, !0), Fa(e, r), e.Xk(c), zd(e, n), i != null && (e.i = null, hM(e, i)); } function xne(e, n, t) { if (e < 0) - return y9(eWe, I(T(Li, 1), Ve, 1, 5, [t, ie(e)])); + return y9(nWe, I(S(Li, 1), Ve, 1, 5, [t, ie(e)])); if (n < 0) - throw $(new on(nWe + n)); - return y9("%s (%s) must not be greater than size (%s)", I(T(Li, 1), Ve, 1, 5, [t, ie(e), ie(n)])); + throw $(new on(tWe + n)); + return y9("%s (%s) must not be greater than size (%s)", I(S(Li, 1), Ve, 1, 5, [t, ie(e), ie(n)])); } function $ne(e, n, t, i, r, c) { var s, f, h, l; if (s = i - t, s < 7) { - B9n(n, t, i, c); + _9n(n, t, i, c); return; } if (h = t + r, f = i + r, l = h + (f - h >> 1), $ne(n, e, h, l, -r, c), $ne(n, e, l, f, -r, c), c.Le(e[l - 1], e[l]) <= 0) { @@ -19818,20 +19908,20 @@ function WDn() { t = (t + 1) % r.c.length, c[t] = !0; } function qEn(e, n) { - if (jY(), Et(e, (te(), _t)) && Et(n, _t)) - return Zc(u(y(e, _t), 15).a, u(y(n, _t), 15).a); + if (jY(), Et(e, (te(), Bt)) && Et(n, Bt)) + return Zc(u(y(e, Bt), 15).a, u(y(n, Bt), 15).a); throw $(new Fp("The BF model order layer assigner requires all real nodes to have a model order.")); } function UEn(e, n) { - if (EY(), Et(e, (te(), _t)) && Et(n, _t)) - return Zc(u(y(e, _t), 15).a, u(y(n, _t), 15).a); + if (EY(), Et(e, (te(), Bt)) && Et(n, Bt)) + return Zc(u(y(e, Bt), 15).a, u(y(n, Bt), 15).a); throw $(new Fp("The DF model order layer assigner requires all real nodes to have a model order.")); } function zEn(e, n) { for (e.r = new d7(e.p), Phn(e.r, e), wr(e.r.j, e.j), Fs(e.j), rt(e.j, n), rt(e.r.e, n), o$(e), o$(e.r); e.f.c.length != 0; ) - R$e(u(pe(e.f, 0), 133)); + _$e(u(pe(e.f, 0), 133)); for (; e.k.c.length != 0; ) - R$e(u(pe(e.k, 0), 133)); + _$e(u(pe(e.k, 0), 133)); return e.r; } function rR(e, n, t) { @@ -19842,11 +19932,11 @@ function WDn() { c = e.Fh(r), c >= 0 ? e.$h(c, t) : rte(e, r, t); else throw $(new on(V1 + r.ve() + Q9)); - else throw $(new on(qKe + n + UKe)); + else throw $(new on(UKe + n + zKe)); else Eo(e, i, r, t); } - function eGe(e) { + function nGe(e) { var n, t; if (e.f) { for (; e.n > 0; ) { @@ -19858,12 +19948,12 @@ function WDn() { } else return e.n > 0; } - function nGe(e) { + function tGe(e) { var n, t, i, r; if (t = u(e, 52).Yh(), t) try { - if (i = null, n = Yv((m1(), tf), zqe(W9n(t))), n && (r = n.Zh(), r && (i = r.Dl(Dln(t.e)))), i && i != e) - return nGe(i); + if (i = null, n = Yv((m1(), tf), Wqe(W9n(t))), n && (r = n.Zh(), r && (i = r.Dl(Dln(t.e)))), i && i != e) + return tGe(i); } catch (c) { if (c = gi(c), !N(c, 63)) throw $(c); } @@ -19871,29 +19961,29 @@ function WDn() { } function WEn(e, n, t) { var i, r, c; - t.Tg("Remove overlaps", 1), t.bh(n, Lce), i = u(re(n, (s2(), ap)), 26), e.f = i, e.a = jF(u(re(n, (_1(), vE)), 303)), r = H(re(n, (tt(), i1))), Az(e, (Ze(r), r)), c = Jw(i), dze(e, n, c, t), t.bh(n, yS); + t.Tg("Remove overlaps", 1), t.bh(n, Lce), i = u(re(n, (s2(), ap)), 26), e.f = i, e.a = jF(u(re(n, (B1(), vE)), 303)), r = H(re(n, (tt(), i1))), Az(e, (Ze(r), r)), c = Jw(i), bze(e, n, c, t), t.bh(n, yS); } function XEn(e) { var n, t, i; if (ve(me(re(e, (tt(), TE))))) { - for (i = new le(), t = new fn(dn(J1(e).a.Jc(), new Q())); xn(t); ) + for (i = new le(), t = new fn(dn(J1(e).a.Jc(), new Y())); xn(t); ) n = u(pn(t), 85), ob(n) && ve(me(re(n, eU))) && sn(i.c, n); return i; } else return ze(), ze(), $r; } - function tGe(e) { + function iGe(e) { if (!e) - return Xje(), zQe; + return Kje(), WQe; var n = e.valueOf ? e.valueOf() : e; if (n !== e) { var t = GJ[typeof n]; return t ? t(n) : xZ(typeof n); } else return e instanceof Array || e instanceof m.Array ? new pz(e) : new R8(e); } - function iGe(e, n, t) { + function rGe(e, n, t) { var i, r, c; - switch (c = e.o, i = u(_r(e.p, t), 253), r = i.i, r.b = b9(i), r.a = d9(i), r.b = m.Math.max(r.b, c.a), r.b > c.a && !n && (r.b = c.a), r.c = -(r.b - c.a) / 2, t.g) { + switch (c = e.o, i = u(Br(e.p, t), 253), r = i.i, r.b = b9(i), r.a = d9(i), r.b = m.Math.max(r.b, c.a), r.b > c.a && !n && (r.b = c.a), r.c = -(r.b - c.a) / 2, t.g) { case 1: r.d = -r.a; break; @@ -19902,9 +19992,9 @@ function WDn() { } TR(i), SR(i); } - function rGe(e, n, t) { + function cGe(e, n, t) { var i, r, c; - switch (c = e.o, i = u(_r(e.p, t), 253), r = i.i, r.b = b9(i), r.a = d9(i), r.a = m.Math.max(r.a, c.b), r.a > c.b && !n && (r.a = c.b), r.d = -(r.a - c.b) / 2, t.g) { + switch (c = e.o, i = u(Br(e.p, t), 253), r = i.i, r.b = b9(i), r.a = d9(i), r.a = m.Math.max(r.a, c.b), r.a > c.b && !n && (r.a = c.b), r.d = -(r.a - c.b) / 2, t.g) { case 4: r.c = -r.b; break; @@ -19915,34 +20005,34 @@ function WDn() { } function KEn(e, n) { var t, i, r; - return N(n.g, 9) && u(n.g, 9).k == (cn(), Ai) ? ii : (r = h3(n), r ? m.Math.max(0, e.b / 2 - 0.5) : (t = h2(n), t ? (i = _(H(Ow(t, (ae(), g0)))), m.Math.max(0, i / 2 - 0.5)) : ii)); + return N(n.g, 9) && u(n.g, 9).k == (cn(), Ai) ? ii : (r = h3(n), r ? m.Math.max(0, e.b / 2 - 0.5) : (t = h2(n), t ? (i = B(H(Ow(t, (ae(), g0)))), m.Math.max(0, i / 2 - 0.5)) : ii)); } function VEn(e, n) { var t, i, r; - return N(n.g, 9) && u(n.g, 9).k == (cn(), Ai) ? ii : (r = h3(n), r ? m.Math.max(0, e.b / 2 - 0.5) : (t = h2(n), t ? (i = _(H(Ow(t, (ae(), g0)))), m.Math.max(0, i / 2 - 0.5)) : ii)); + return N(n.g, 9) && u(n.g, 9).k == (cn(), Ai) ? ii : (r = h3(n), r ? m.Math.max(0, e.b / 2 - 0.5) : (t = h2(n), t ? (i = B(H(Ow(t, (ae(), g0)))), m.Math.max(0, i / 2 - 0.5)) : ii)); } function QEn(e, n) { var t, i, r, c, s; if (!n.dc()) { if (r = u(n.Xb(0), 132), n.gc() == 1) { - GHe(e, r, r, 1, 0, n); + HHe(e, r, r, 1, 0, n); return; } for (t = 1; t < n.gc(); ) - (r.j || !r.o) && (c = oyn(n, t), c && (i = u(c.a, 15).a, s = u(c.b, 132), GHe(e, r, s, t, i, n), t = i + 1, r = s)); + (r.j || !r.o) && (c = oyn(n, t), c && (i = u(c.a, 15).a, s = u(c.b, 132), HHe(e, r, s, t, i, n), t = i + 1, r = s)); } } function YEn(e) { var n, t, i, r, c, s; - for (s = new os(e.d), Di(s, new _pe()), n = ($T(), I(T(Qoe, 1), ce, 275, 0, [xG, TG, AG, CG, MG, $G, IG, SG])), t = 0, c = new x(s); c.a < c.c.c.length; ) + for (s = new os(e.d), Di(s, new Jpe()), n = ($T(), I(S(Qoe, 1), ce, 275, 0, [xG, TG, AG, CG, MG, $G, IG, SG])), t = 0, c = new x(s); c.a < c.c.c.length; ) r = u(A(c), 107), i = n[t % n.length], RAn(r, i), ++t; } function Mne(e, n) { var t, i, r, c, s, f, h, l, a, d; - return a = null, d = e, s = Yl(d, "x"), t = new h7e(n), lDe(t.a, s), f = Yl(d, "y"), i = new l7e(n), aDe(i.a, f), h = Yl(d, uJ), r = new a7e(n), dDe(r.a, h), l = Yl(d, cJ), c = new d7e(n), a = (bDe(c.a, l), l), a; + return a = null, d = e, s = Yl(d, "x"), t = new l7e(n), aDe(t.a, s), f = Yl(d, "y"), i = new a7e(n), dDe(i.a, f), h = Yl(d, uJ), r = new d7e(n), bDe(r.a, h), l = Yl(d, cJ), c = new b7e(n), a = (wDe(c.a, l), l), a; } - function Bw(e, n) { - kqe(e, n), (e.b & 1) != 0 && (e.a.a = null), (e.b & 2) != 0 && (e.a.f = null), (e.b & 4) != 0 && (e.a.g = null, e.a.i = null), (e.b & 16) != 0 && (e.a.d = null, e.a.e = null), (e.b & 8) != 0 && (e.a.b = null), (e.b & 32) != 0 && (e.a.j = null, e.a.c = null); + function _w(e, n) { + yqe(e, n), (e.b & 1) != 0 && (e.a.a = null), (e.b & 2) != 0 && (e.a.f = null), (e.b & 4) != 0 && (e.a.g = null, e.a.i = null), (e.b & 16) != 0 && (e.a.d = null, e.a.e = null), (e.b & 8) != 0 && (e.a.b = null), (e.b & 32) != 0 && (e.a.j = null, e.a.c = null); } function ZEn(e, n) { var t, i, r; @@ -19956,15 +20046,15 @@ function WDn() { } function eAn(e, n) { if (e < 0) - return y9(eWe, I(T(Li, 1), Ve, 1, 5, ["index", ie(e)])); + return y9(nWe, I(S(Li, 1), Ve, 1, 5, ["index", ie(e)])); if (n < 0) - throw $(new on(nWe + n)); - return y9("%s (%s) must be less than size (%s)", I(T(Li, 1), Ve, 1, 5, ["index", ie(e), ie(n)])); + throw $(new on(tWe + n)); + return y9("%s (%s) must be less than size (%s)", I(S(Li, 1), Ve, 1, 5, ["index", ie(e), ie(n)])); } function nAn(e) { var n, t, i, r, c; if (e == null) - return Bu; + return _u; for (c = new Gd(mu, "[", "]"), t = e, i = 0, r = t.length; i < r; ++i) n = t[i], c.a ? it(c.a, c.b) : c.a = new Us(c.d), f6(c.a, "" + n); return c.a ? c.e.length == 0 ? c.a.a : c.a.a + ("" + c.e) : c.c; @@ -19972,7 +20062,7 @@ function WDn() { function tAn(e) { var n, t, i, r, c; if (e == null) - return Bu; + return _u; for (c = new Gd(mu, "[", "]"), t = e, i = 0, r = t.length; i < r; ++i) n = t[i], c.a ? it(c.a, c.b) : c.a = new Us(c.d), f6(c.a, "" + n); return c.a ? c.e.length == 0 ? c.a.a : c.a.a + ("" + c.e) : c.c; @@ -19980,7 +20070,7 @@ function WDn() { function iAn(e) { var n, t, i, r, c; if (e == null) - return Bu; + return _u; for (c = new Gd(mu, "[", "]"), t = e, i = 0, r = t.length; i < r; ++i) n = t[i], c.a ? it(c.a, c.b) : c.a = new Us(c.d), f6(c.a, "" + n); return c.a ? c.e.length == 0 ? c.a.a : c.a.a + ("" + c.e) : c.c; @@ -19988,12 +20078,12 @@ function WDn() { function rAn(e) { var n, t, i, r, c; if (e == null) - return Bu; + return _u; for (c = new Gd(mu, "[", "]"), t = e, i = 0, r = t.length; i < r; ++i) n = t[i], c.a ? it(c.a, c.b) : c.a = new Us(c.d), f6(c.a, "" + n); return c.a ? c.e.length == 0 ? c.a.a : c.a.a + ("" + c.e) : c.c; } - function cGe(e, n) { + function uGe(e, n) { var t, i, r, c, s, f; for (t = e.b.c.length, r = pe(e.b, n); n * 2 + 1 < t && (i = (c = 2 * n + 1, s = c + 1, f = c, s < t && e.a.Le(pe(e.b, s), pe(e.b, c)) < 0 && (f = s), f), !(e.a.Le(r, pe(e.b, i)) < 0)); ) Ks(e.b, n, pe(e.b, i)), n = i; @@ -20018,10 +20108,10 @@ function WDn() { } return c || (ze(), ze(), $r); } - function uGe(e, n, t) { + function sGe(e, n, t) { var i, r, c, s, f, h; - for (h = ii, c = new x(CHe(e.b)); c.a < c.c.c.length; ) - for (r = u(A(c), 177), f = new x(CHe(n.b)); f.a < f.c.c.length; ) + for (h = ii, c = new x(PHe(e.b)); c.a < c.c.c.length; ) + for (r = u(A(c), 177), f = new x(PHe(n.b)); f.a < f.c.c.length; ) s = u(A(f), 177), i = Z4n(r.a, r.b, s.a, s.b, t), h = m.Math.min(h, i); return h; } @@ -20062,35 +20152,35 @@ function WDn() { for (r = u(c.Pb(), 12), i = e.e == (be(), an) ? r.e : r.g, t = new x(i); t.a < t.c.c.length; ) n = u(A(t), 17), !hr(n) && n.c.i.c != n.d.i.c && (fEn(e, n), ++e.f, ++e.c); } - function sGe(e, n) { + function oGe(e, n) { var t, i; if (n.dc()) return ze(), ze(), $r; for (i = new le(), he(i, ie(Yi)), t = 1; t < e.f; ++t) - e.a == null && vqe(e), e.a[t] && he(i, ie(t)); + e.a == null && kqe(e), e.a[t] && he(i, ie(t)); return i.c.length == 1 ? (ze(), ze(), $r) : (he(i, ie(pt)), rIn(n, i)); } function hAn(e, n) { var t, i, r, c, s, f, h; - s = n.c.i.k != (cn(), si), h = s ? n.d : n.c, t = xyn(n, h).i, r = u(rn(e.k, h), 124), i = e.i[t.p].a, vTe(h.i) < (t.c ? dc(t.c.a, t, 0) : -1) ? (c = r, f = i) : (c = i, f = r), yf(ff(of(hf(sf(new Ro(), 0), 4), c), f)); + s = n.c.i.k != (cn(), si), h = s ? n.d : n.c, t = xyn(n, h).i, r = u(rn(e.k, h), 124), i = e.i[t.p].a, kTe(h.i) < (t.c ? dc(t.c.a, t, 0) : -1) ? (c = r, f = i) : (c = i, f = r), yf(ff(of(hf(sf(new Ro(), 0), 4), c), f)); } - function oGe(e, n, t) { + function fGe(e, n, t) { var i, r, c, s, f, h; if (t) for (r = t.a.length, i = new Sd(r), f = (i.b - i.a) * i.c < 0 ? (v1(), md) : new j1(i); f.Ob(); ) s = u(f.Pb(), 15), h = PF(e, I3(Aw(t, s.a))), h && (c = (!n.b && (n.b = new Qe(Cn, n, 4, 7)), n.b), Dn(c, h)); } - function fGe(e, n, t) { + function hGe(e, n, t) { var i, r, c, s, f, h; if (t) for (r = t.a.length, i = new Sd(r), f = (i.b - i.a) * i.c < 0 ? (v1(), md) : new j1(i); f.Ob(); ) s = u(f.Pb(), 15), h = PF(e, I3(Aw(t, s.a))), h && (c = (!n.c && (n.c = new Qe(Cn, n, 5, 8)), n.c), Dn(c, h)); } - function _7(e, n, t) { + function B7(e, n, t) { var i, r; i = n.a & e.f, n.b = e.b[i], e.b[i] = n, r = n.f & e.f, n.d = e.c[r], e.c[r] = n, t ? (n.e = t.e, n.e ? n.e.c = n : e.a = n, n.c = t.c, n.c ? n.c.e = n : e.e = n) : (n.e = e.e, n.c = null, e.e ? e.e.c = n : e.a = n, e.e = n), ++e.i, ++e.g; } - function hGe(e) { + function lGe(e) { var n, t, i; if (n = e.Pb(), !e.Ob()) return n; @@ -20100,7 +20190,7 @@ function WDn() { } function lAn(e) { var n, t; - return t = -e.a, n = I(T(Oo, 1), Xh, 30, 15, [43, 48, 48, 48, 48]), t < 0 && (n[0] = 45, t = -t), n[1] = n[1] + ((t / 60 | 0) / 10 | 0) & Ti, n[2] = n[2] + (t / 60 | 0) % 10 & Ti, n[3] = n[3] + (t % 60 / 10 | 0) & Ti, n[4] = n[4] + t % 10 & Ti, Gh(n, 0, n.length); + return t = -e.a, n = I(S(Oo, 1), Xh, 30, 15, [43, 48, 48, 48, 48]), t < 0 && (n[0] = 45, t = -t), n[1] = n[1] + ((t / 60 | 0) / 10 | 0) & Ti, n[2] = n[2] + (t / 60 | 0) % 10 & Ti, n[3] = n[3] + (t % 60 / 10 | 0) & Ti, n[4] = n[4] + t % 10 & Ti, Gh(n, 0, n.length); } function Tne(e) { var n, t, i, r; @@ -20117,7 +20207,7 @@ function WDn() { } function Ine(e) { var n, t; - return e > -140737488355328 && e < 140737488355328 ? e == 0 ? 0 : (n = e < 0, n && (e = -e), t = dr(m.Math.floor(m.Math.log(e) / 0.6931471805599453)), (!n || e != m.Math.pow(2, t)) && ++t, t) : ERe(Cc(e)); + return e > -140737488355328 && e < 140737488355328 ? e == 0 ? 0 : (n = e < 0, n && (e = -e), t = dr(m.Math.floor(m.Math.log(e) / 0.6931471805599453)), (!n || e != m.Math.pow(2, t)) && ++t, t) : ARe(Cc(e)); } function aAn(e) { var n, t, i, r, c, s, f; @@ -20126,7 +20216,7 @@ function WDn() { return c; } function dAn(e, n, t) { - t.Tg("Eades radial", 1), t.bh(n, yS), e.d = u(re(n, (s2(), ap)), 26), e.c = _(H(re(n, (_1(), SC)))), e.e = jF(u(re(n, vE), 303)), e.a = Y9n(u(re(n, Rae), 426)), e.b = g7n(u(re(n, Lae), 354)), e7n(e), t.bh(n, yS); + t.Tg("Eades radial", 1), t.bh(n, yS), e.d = u(re(n, (s2(), ap)), 26), e.c = B(H(re(n, (B1(), SC)))), e.e = jF(u(re(n, vE), 303)), e.a = Y9n(u(re(n, Rae), 426)), e.b = g7n(u(re(n, Lae), 354)), e7n(e), t.bh(n, yS); } function bAn(e, n) { if (n.Tg("Target Width Setter", 1), Gf(e, (gh(), Pq))) @@ -20135,41 +20225,41 @@ function WDn() { throw $(new Aa("A target width has to be set if the TargetWidthWidthApproximator should be used.")); n.Ug(); } - function lGe(e, n) { + function aGe(e, n) { var t, i, r; return i = new dh(e), Pc(i, n), K(i, (te(), qI), n), K(i, (ae(), oi), (Ui(), Vc)), K(i, tl, (wl(), JC)), Nl(i, (cn(), Ai)), t = new Uc(), ac(t, i), Oi(t, (be(), an)), r = new Uc(), ac(r, i), Oi(r, gn), i; } - function aGe(e, n) { + function dGe(e, n) { var t, i, r, c, s; for (e.c[n.p] = !0, he(e.a, n), s = new x(n.j); s.a < s.c.c.length; ) for (c = u(A(s), 12), i = new fh(c.b); lc(i.a) || lc(i.b); ) - t = u(lc(i.a) ? A(i.a) : A(i.b), 17), r = xkn(c, t).i, e.c[r.p] || aGe(e, r); + t = u(lc(i.a) ? A(i.a) : A(i.b), 17), r = xkn(c, t).i, e.c[r.p] || dGe(e, r); } - function dGe(e) { + function bGe(e) { var n, t, i, r, c, s, f; for (s = 0, t = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); t.e != t.i.gc(); ) - n = u(En(t), 26), f = n.g, r = n.f, i = m.Math.sqrt(f * f + r * r), s = m.Math.max(i, s), c = dGe(n), s = m.Math.max(c, s); + n = u(En(t), 26), f = n.g, r = n.f, i = m.Math.sqrt(f * f + r * r), s = m.Math.max(i, s), c = bGe(n), s = m.Math.max(c, s); return s; } function ls() { ls = G, dd = new c6("OUTSIDE", 0), ba = new c6("INSIDE", 1), FE = new c6("NEXT_TO_PORT_IF_POSSIBLE", 2), m8 = new c6("ALWAYS_SAME_SIDE", 3), p8 = new c6("ALWAYS_OTHER_SAME_SIDE", 4), jm = new c6("SPACE_EFFICIENT", 5); } - function bGe(e, n, t) { + function wGe(e, n, t) { var i, r, c, s, f, h; - return i = X3n(e, (r = (p1(), c = new L4(), c), t && kT(r, t), r), n), jv(i, zl(n, Zh)), sT(n, i), vxn(n, i), Mne(n, i), s = n, f = K0(s, "ports"), h = new Rxe(e, i), $He(h.a, h.b, f), BN(e, n, i), U4n(e, n, i), i; + return i = X3n(e, (r = (p1(), c = new L4(), c), t && kT(r, t), r), n), jv(i, zl(n, Zh)), sT(n, i), vxn(n, i), Mne(n, i), s = n, f = K0(s, "ports"), h = new _xe(e, i), MHe(h.a, h.b, f), _N(e, n, i), U4n(e, n, i), i; } function wAn(e) { var n, t; - return t = -e.a, n = I(T(Oo, 1), Xh, 30, 15, [43, 48, 48, 58, 48, 48]), t < 0 && (n[0] = 45, t = -t), n[1] = n[1] + ((t / 60 | 0) / 10 | 0) & Ti, n[2] = n[2] + (t / 60 | 0) % 10 & Ti, n[4] = n[4] + (t % 60 / 10 | 0) & Ti, n[5] = n[5] + t % 10 & Ti, Gh(n, 0, n.length); + return t = -e.a, n = I(S(Oo, 1), Xh, 30, 15, [43, 48, 48, 58, 48, 48]), t < 0 && (n[0] = 45, t = -t), n[1] = n[1] + ((t / 60 | 0) / 10 | 0) & Ti, n[2] = n[2] + (t / 60 | 0) % 10 & Ti, n[4] = n[4] + (t % 60 / 10 | 0) & Ti, n[5] = n[5] + t % 10 & Ti, Gh(n, 0, n.length); } function gAn(e) { var n; - return n = I(T(Oo, 1), Xh, 30, 15, [71, 77, 84, 45, 48, 48, 58, 48, 48]), e <= 0 && (n[3] = 43, e = -e), n[4] = n[4] + ((e / 60 | 0) / 10 | 0) & Ti, n[5] = n[5] + (e / 60 | 0) % 10 & Ti, n[7] = n[7] + (e % 60 / 10 | 0) & Ti, n[8] = n[8] + e % 10 & Ti, Gh(n, 0, n.length); + return n = I(S(Oo, 1), Xh, 30, 15, [71, 77, 84, 45, 48, 48, 58, 48, 48]), e <= 0 && (n[3] = 43, e = -e), n[4] = n[4] + ((e / 60 | 0) / 10 | 0) & Ti, n[5] = n[5] + (e / 60 | 0) % 10 & Ti, n[7] = n[7] + (e % 60 / 10 | 0) & Ti, n[8] = n[8] + e % 10 & Ti, Gh(n, 0, n.length); } function pAn(e) { var n, t, i, r, c; if (e == null) - return Bu; + return _u; for (c = new Gd(mu, "[", "]"), t = e, i = 0, r = t.length; i < r; ++i) n = t[i], c.a ? it(c.a, c.b) : c.a = new Us(c.d), f6(c.a, "" + y6(n)); return c.a ? c.e.length == 0 ? c.a.a : c.a.a + ("" + c.e) : c.c; @@ -20180,14 +20270,14 @@ function WDn() { t = u(A(i), 217), t.f && !e.c[t.c] && (e.c[t.c] = !0, r = m.Math.min(r, Cne(e, OM(t, n)))); return e.i[n.d] = e.j, e.g[n.d] = m.Math.min(r, e.j++), e.g[n.d]; } - function wGe(e, n) { + function gGe(e, n) { var t, i, r; for (r = u(u(Mt(e.r, n), 22), 83).Jc(); r.Ob(); ) - i = u(r.Pb(), 115), i.e.b = (t = i.b, t.nf((tt(), Ss)) ? t.$f() == (be(), ln) ? -t.Kf().b - _(H(t.mf(Ss))) : _(H(t.mf(Ss))) : t.$f() == (be(), ln) ? -t.Kf().b : 0); + i = u(r.Pb(), 115), i.e.b = (t = i.b, t.nf((tt(), Ss)) ? t.$f() == (be(), ln) ? -t.Kf().b - B(H(t.mf(Ss))) : B(H(t.mf(Ss))) : t.$f() == (be(), ln) ? -t.Kf().b : 0); } function Pne(e) { var n, t, i, r, c; - n = e.a, t = e.b, r = e.c, i = new ue(t.e.a + t.f.a / 2, t.e.b + t.f.b / 2), c = new ue(r.e.a + r.f.a / 2, r.e.b + r.f.b / 2), ti(n, i, n.a, n.a.a), ti(n, c, n.c.b, n.c), yJe(i, u(qc(n, 1), 8), e.b.f), yJe(c, u(qc(n, n.b - 2), 8), e.c.f); + n = e.a, t = e.b, r = e.c, i = new ue(t.e.a + t.f.a / 2, t.e.b + t.f.b / 2), c = new ue(r.e.a + r.f.a / 2, r.e.b + r.f.b / 2), ti(n, i, n.a, n.a.a), ti(n, c, n.c.b, n.c), jJe(i, u(qc(n, 1), 8), e.b.f), jJe(c, u(qc(n, n.b - 2), 8), e.c.f); } function I3(e) { var n, t; @@ -20199,18 +20289,18 @@ function WDn() { } function mAn(e, n) { var t, i, r, c, s, f; - for (c = null, r = new qSe((!e.a && (e.a = new QP(e)), e.a)); Fne(r); ) - if (t = u(gT(r), 57), i = (s = t.Ah(), f = (P2(s), s.o), !f || !t.Uh(f) ? null : xK(CN(f), t.Jh(f))), i != null && _e(i, n)) { + for (c = null, r = new USe((!e.a && (e.a = new QP(e)), e.a)); Fne(r); ) + if (t = u(gT(r), 57), i = (s = t.Ah(), f = (P2(s), s.o), !f || !t.Uh(f) ? null : xK(CN(f), t.Jh(f))), i != null && Be(i, n)) { c = t; break; } return c; } - function gGe(e, n) { + function pGe(e, n) { var t; - this.e = (Jn(e), cee(e)), this.c = (Jn(n), cee(n)), _X(this.e.Pd().dc() == this.c.Pd().dc()), this.d = DRe(this.e), this.b = DRe(this.c), t = lw(Li, [oe, Ve], [5, 1], 5, [this.e.Pd().gc(), this.c.Pd().gc()], 2), this.a = t, q5n(this); + this.e = (Jn(e), cee(e)), this.c = (Jn(n), cee(n)), BX(this.e.Pd().dc() == this.c.Pd().dc()), this.d = NRe(this.e), this.b = NRe(this.c), t = lw(Li, [fe, Ve], [5, 1], 5, [this.e.Pd().gc(), this.c.Pd().gc()], 2), this.a = t, q5n(this); } - function pGe(e, n, t) { + function mGe(e, n, t) { var i, r, c, s, f; if (Qs(t, "occurrences"), t == 0) return f = u(Cw(s3(e.a), n), 18), f ? f.gc() : 0; @@ -20225,24 +20315,24 @@ function WDn() { } function vAn(e, n, t) { var i, r, c, s; - return Qs(t, "oldCount"), Qs(0, "newCount"), i = u(Cw(s3(e.a), n), 18), (i ? i.gc() : 0) == t ? (Qs(0, "count"), r = (c = u(Cw(s3(e.a), n), 18), c ? c.gc() : 0), s = -r, s > 0 ? wW() : s < 0 && pGe(e, n, -s), !0) : !1; + return Qs(t, "oldCount"), Qs(0, "newCount"), i = u(Cw(s3(e.a), n), 18), (i ? i.gc() : 0) == t ? (Qs(0, "count"), r = (c = u(Cw(s3(e.a), n), 18), c ? c.gc() : 0), s = -r, s > 0 ? wW() : s < 0 && mGe(e, n, -s), !0) : !1; } function d9(e) { var n, t, i, r, c, s, f; if (f = 0, e.b == 0) { - for (s = KBe(e, !0), n = 0, i = s, r = 0, c = i.length; r < c; ++r) + for (s = V_e(e, !0), n = 0, i = s, r = 0, c = i.length; r < c; ++r) t = i[r], t > 0 && (f += t, ++n); n > 1 && (f += e.c * (n - 1)); } else - f = nEe(MN(pw(mt(iD(e.a), new Dbe()), new Rbe()))); + f = tEe(MN(pw(mt(iD(e.a), new Nbe()), new _be()))); return f > 0 ? f + e.n.d + e.n.a : 0; } function b9(e) { var n, t, i, r, c, s, f; if (f = 0, e.b == 0) - f = nEe(MN(pw(mt(iD(e.a), new Nbe()), new Fbe()))); + f = tEe(MN(pw(mt(iD(e.a), new Fbe()), new Rbe()))); else { - for (s = VBe(e, !0), n = 0, i = s, r = 0, c = i.length; r < c; ++r) + for (s = Q_e(e, !0), n = 0, i = s, r = 0, c = i.length; r < c; ++r) t = i[r], t > 0 && (f += t, ++n); n > 1 && (f += e.c * (n - 1)); } @@ -20254,14 +20344,14 @@ function WDn() { throw $(new qr("Order only allowed for two paths.")); n = (qe(0, e.c.length), u(e.c[0], 17)), t = (qe(1, e.c.length), u(e.c[1], 17)), n.d.i != t.c.i && (e.c.length = 0, sn(e.c, t), sn(e.c, n)); } - function mGe(e, n, t) { + function vGe(e, n, t) { var i; for (D0(t, n.g, n.f), ao(t, n.i, n.j), i = 0; i < (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a).i; i++) - mGe(e, u(F((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a), i), 26), u(F((!t.a && (t.a = new ne(Qn, t, 10, 11)), t.a), i), 26)); + vGe(e, u(F((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a), i), 26), u(F((!t.a && (t.a = new ne(Qn, t, 10, 11)), t.a), i), 26)); } function yAn(e, n) { var t, i, r, c; - for (c = u(_r(e.b, n), 127), t = c.a, r = u(u(Mt(e.r, n), 22), 83).Jc(); r.Ob(); ) + for (c = u(Br(e.b, n), 127), t = c.a, r = u(u(Mt(e.r, n), 22), 83).Jc(); r.Ob(); ) i = u(r.Pb(), 115), i.c && (t.a = m.Math.max(t.a, eV(i.c))); if (t.a > 0) switch (n.g) { @@ -20278,22 +20368,22 @@ function WDn() { } function EAn(e, n) { var t, i, r; - return t = u(y(n, (Ac(), AC)), 15).a - u(y(e, AC), 15).a, t == 0 ? (i = Fi(kr(u(y(e, (Bt(), gE)), 8)), u(y(e, f4), 8)), r = Fi(kr(u(y(n, gE), 8)), u(y(n, f4), 8)), Ct(i.a * i.b, r.a * r.b)) : t; + return t = u(y(n, (Ac(), AC)), 15).a - u(y(e, AC), 15).a, t == 0 ? (i = Fi(kr(u(y(e, (_t(), gE)), 8)), u(y(e, f4), 8)), r = Fi(kr(u(y(n, gE), 8)), u(y(n, f4), 8)), Ct(i.a * i.b, r.a * r.b)) : t; } - function vGe(e) { + function kGe(e) { var n, t; - return t = new w1(), t.a += "e_", n = _4n(e), n != null && (t.a += "" + n), e.c && e.d && (it((t.a += " ", t), nT(e.c)), it(Yc((t.a += "[", t), e.c.i), "]"), it((t.a += BB, t), nT(e.d)), it(Yc((t.a += "[", t), e.d.i), "]")), t.a; + return t = new w1(), t.a += "e_", n = B4n(e), n != null && (t.a += "" + n), e.c && e.d && (it((t.a += " ", t), nT(e.c)), it(Yc((t.a += "[", t), e.c.i), "]"), it((t.a += __, t), nT(e.d)), it(Yc((t.a += "[", t), e.d.i), "]")), t.a; } - function kGe(e) { + function yGe(e) { switch (e.g) { case 0: - return new j9e(); - case 1: return new E9e(); - case 2: + case 1: return new A9e(); - case 3: + case 2: return new x9e(); + case 3: + return new $9e(); default: throw $(new on("No implementation is available for the layout phase " + (e.f != null ? e.f : "" + e.g))); } @@ -20315,7 +20405,7 @@ function WDn() { } return c; } - function yGe(e, n, t) { + function jGe(e, n, t) { var i, r, c, s, f; if (t) for (r = t.a.length, i = new Sd(r), f = (i.b - i.a) * i.c < 0 ? (v1(), md) : new j1(i); f.Ob(); ) @@ -20327,7 +20417,7 @@ function WDn() { case -1: return !0; case 0: - return t = e.t, t > 1 || t == -1 ? (e.b = -1, !0) : (n = Uo(e), n && (Sr(), n.jk() == WVe) ? (e.b = -1, !0) : (e.b = 1, !1)); + return t = e.t, t > 1 || t == -1 ? (e.b = -1, !0) : (n = Uo(e), n && (Sr(), n.jk() == XVe) ? (e.b = -1, !0) : (e.b = 1, !1)); default: case 1: return !1; @@ -20335,14 +20425,14 @@ function WDn() { } function Dne(e, n) { var t, i, r, c; - if (vt(e), e.c != 0 || e.a != 123) throw $(new Kn(Yn((Un(), wVe)))); - if (c = n == 112, i = e.d, t = Vm(e.i, 125, i), t < 0) throw $(new Kn(Yn((Un(), gVe)))); - return r = Go(e.i, i, t), e.d = t + 1, ILe(r, c, (e.e & 512) == 512); + if (vt(e), e.c != 0 || e.a != 123) throw $(new Kn(Yn((Un(), gVe)))); + if (c = n == 112, i = e.d, t = Vm(e.i, 125, i), t < 0) throw $(new Kn(Yn((Un(), pVe)))); + return r = Go(e.i, i, t), e.d = t + 1, CLe(r, c, (e.e & 512) == 512); } function AAn(e) { var n, t, i, r, c, s, f; for (f = sl(e.c.length), r = new x(e); r.a < r.c.c.length; ) { - for (i = u(A(r), 9), s = new vi(), c = Ht(i), t = new fn(dn(c.a.Jc(), new Q())); xn(t); ) + for (i = u(A(r), 9), s = new vi(), c = Ht(i), t = new fn(dn(c.a.Jc(), new Y())); xn(t); ) n = u(pn(t), 17), n.c.i == n.d.i || ki(s, n.d.i); sn(f.c, s); } @@ -20368,7 +20458,7 @@ function WDn() { var c, s, f, h; return h = AL(e, u(r, 57)), z(h) !== z(r) ? (f = u(e.g[t], 75), c = dl(n, h), d6(e, t, UF(e, t, c)), Os(e.e) && (s = x1(e, 9, c.Jk(), r, h, i, !1), zee(s, new Vl(e.e, 9, e.c, f, c, i, !1)), sN(s)), h) : r; } - function jGe(e, n) { + function EGe(e, n) { var t, i, r; try { return r = v3n(e.a, n), r; @@ -20391,13 +20481,13 @@ function WDn() { throw $(new on(V1 + n.ve() + nJ)); } function $An() { - BW(); + _W(); var e; - return Won ? u(Yv((m1(), tf), Wo), 2e3) : (at(s0, new R4e()), gPn(), e = u(N(nu((m1(), tf), Wo), 548) ? nu(tf, Wo) : new AIe(), 548), Won = !0, wLn(e), yLn(e), ht((RW(), O0e), e, new e4e()), zr(tf, Wo, e), e); + return Xon ? u(Yv((m1(), tf), Wo), 2e3) : (at(s0, new _4e()), gPn(), e = u(N(nu((m1(), tf), Wo), 548) ? nu(tf, Wo) : new xIe(), 548), Xon = !0, wLn(e), yLn(e), ht((RW(), O0e), e, new n4e()), zr(tf, Wo, e), e); } function MAn(e, n) { var t, i, r, c; - e.j = -1, Os(e.e) ? (t = e.i, c = e.i != 0, Uy(e, n), i = new Vl(e.e, 3, e.c, null, n, t, c), r = n.xl(e.e, e.c, null), r = Y_e(e, n, r), r ? (r.lj(i), r.mj()) : yt(e.e, i)) : (Uy(e, n), r = n.xl(e.e, e.c, null), r && r.mj()); + e.j = -1, Os(e.e) ? (t = e.i, c = e.i != 0, Uy(e, n), i = new Vl(e.e, 3, e.c, null, n, t, c), r = n.xl(e.e, e.c, null), r = ZBe(e, n, r), r ? (r.lj(i), r.mj()) : yt(e.e, i)) : (Uy(e, n), r = n.xl(e.e, e.c, null), r && r.mj()); } function dT(e, n) { var t, i, r; @@ -20409,11 +20499,11 @@ function WDn() { } function TAn(e, n, t) { var i, r, c, s, f; - s = e.c, f = e.d, c = bc(I(T(Ji, 1), oe, 8, 0, [s.i.n, s.n, s.a])).b, r = (c + bc(I(T(Ji, 1), oe, 8, 0, [f.i.n, f.n, f.a])).b) / 2, i = null, s.j == (be(), gn) ? i = new ue(n + s.i.c.c.a + t, r) : i = new ue(n - t, r), Qm(e.a, 0, i); + s = e.c, f = e.d, c = bc(I(S(Ji, 1), fe, 8, 0, [s.i.n, s.n, s.a])).b, r = (c + bc(I(S(Ji, 1), fe, 8, 0, [f.i.n, f.n, f.a])).b) / 2, i = null, s.j == (be(), gn) ? i = new ue(n + s.i.c.c.a + t, r) : i = new ue(n - t, r), Qm(e.a, 0, i); } function ob(e) { var n, t, i, r; - for (n = null, i = ll(vo(I(T(To, 1), Ve, 20, 0, [(!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), (!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c)]))); xn(i); ) + for (n = null, i = ll(vo(I(S(To, 1), Ve, 20, 0, [(!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), (!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c)]))); xn(i); ) if (t = u(pn(i), 84), r = ec(t), !n) n = r; else if (n != r) @@ -20441,25 +20531,25 @@ function WDn() { function SAn(e, n) { var t, i, r; for (r = new le(), i = Nn(n.a, 0); i.b != i.d.c; ) - t = u(Ln(i), 65), t.c.g == e.g && z(y(t.b, (Ac(), rl))) !== z(y(t.c, rl)) && !a2(new Ge(null, new He(r, 16)), new Aye(t)) && sn(r.c, t); - return Di(r, new hme()), r; + t = u(Ln(i), 65), t.c.g == e.g && z(y(t.b, (Ac(), rl))) !== z(y(t.c, rl)) && !a2(new Ge(null, new He(r, 16)), new xye(t)) && sn(r.c, t); + return Di(r, new lme()), r; } - function EGe(e, n, t) { + function AGe(e, n, t) { var i, r, c, s; return N(n, 155) && N(t, 155) ? (c = u(n, 155), s = u(t, 155), e.a[c.a][s.a] + e.a[s.a][c.a]) : N(n, 251) && N(t, 251) && (i = u(n, 251), r = u(t, 251), i.a == r.a) ? u(y(r.a, (jf(), Y3)), 15).a : 0; } - function AGe(e, n) { + function xGe(e, n) { var t, i, r, c, s, f, h, l; - for (l = _(H(y(n, (ae(), Fk)))), h = e[0].n.a + e[0].o.a + e[0].d.c + l, f = 1; f < e.length; f++) + for (l = B(H(y(n, (ae(), Fk)))), h = e[0].n.a + e[0].o.a + e[0].d.c + l, f = 1; f < e.length; f++) i = e[f].n, r = e[f].o, t = e[f].d, c = i.a - t.b - h, c < 0 && (i.a -= c), s = n.f, s.a = m.Math.max(s.a, i.a + r.a), h = i.a + r.a + t.c + l; } function IAn(e, n) { var t, i, r, c, s, f; - return i = u(u(rn(e.g, n.a), 49).a, 68), r = u(u(rn(e.g, n.b), 49).a, 68), c = i.b, s = r.b, t = eCn(c, s), t >= 0 ? t : (f = M6(Fi(new ue(s.c + s.b / 2, s.d + s.a / 2), new ue(c.c + c.b / 2, c.d + c.a / 2))), -(nUe(c, s) - 1) * f); + return i = u(u(rn(e.g, n.a), 49).a, 68), r = u(u(rn(e.g, n.b), 49).a, 68), c = i.b, s = r.b, t = eCn(c, s), t >= 0 ? t : (f = M6(Fi(new ue(s.c + s.b / 2, s.d + s.a / 2), new ue(c.c + c.b / 2, c.d + c.a / 2))), -(tUe(c, s) - 1) * f); } function CAn(e, n, t) { var i; - fi(new Ge(null, (!t.a && (t.a = new ne(Wt, t, 6, 6)), new He(t.a, 16))), new xxe(e, n)), fi(new Ge(null, (!t.n && (t.n = new ne(vc, t, 1, 7)), new He(t.n, 16))), new $xe(e, n)), i = u(re(t, (tt(), gp)), 78), i && FY(i, e, n); + fi(new Ge(null, (!t.a && (t.a = new ne(Wt, t, 6, 6)), new He(t.a, 16))), new $xe(e, n)), fi(new Ge(null, (!t.n && (t.n = new ne(vc, t, 1, 7)), new He(t.n, 16))), new Mxe(e, n)), i = u(re(t, (tt(), gp)), 78), i && FY(i, e, n); } function fb(e, n, t) { var i, r, c; @@ -20502,8 +20592,8 @@ function WDn() { return QS; if (n == 1 || qZ(e, QS) || qZ(e, lk)) return e; - if (!QGe(e, 0)) { - for (t = 1; !QGe(e, t); ) + if (!YGe(e, 0)) { + for (t = 1; !YGe(e, t); ) ++t; return l2(fkn(t * n), G7(OQ(e, t), n)); } @@ -20520,42 +20610,42 @@ function WDn() { return !1; return !0; } - function xGe(e) { + function $Ge(e) { FW(); var n, t, i; - for (this.b = _Ze, this.c = (Mi(), Th), this.f = (kAe(), BZe), this.a = e, kW(this, new dwe()), yT(this), i = new x(e.b); i.a < i.c.c.length; ) - t = u(A(i), 82), t.d || (n = new bF(I(T(hG, 1), Ve, 82, 0, [t])), he(e.a, n)); + for (this.b = JZe, this.c = (Mi(), Th), this.f = (yAe(), BZe), this.a = e, kW(this, new bwe()), yT(this), i = new x(e.b); i.a < i.c.c.length; ) + t = u(A(i), 82), t.d || (n = new bF(I(S(hG, 1), Ve, 82, 0, [t])), he(e.a, n)); } - function $Ge(e) { + function MGe(e) { eQ(); var n, t; - for (this.b = mYe, this.c = kYe, this.g = (vAe(), pYe), this.d = (Mi(), Th), this.a = e, fte(this), t = new x(e.b); t.a < t.c.c.length; ) - n = u(A(t), 60), !n.a && lMe(sNe(new Qz(), I(T(nI, 1), Ve, 60, 0, [n])), e), n.e = new m$(n.d); + for (this.b = vYe, this.c = yYe, this.g = (kAe(), mYe), this.d = (Mi(), Th), this.a = e, fte(this), t = new x(e.b); t.a < t.c.c.length; ) + n = u(A(t), 60), !n.a && aMe(oNe(new Qz(), I(S(nI, 1), Ve, 60, 0, [n])), e), n.e = new m$(n.d); } function LAn(e, n, t) { var i, r, c, s, f, h; if (!e || e.c.length == 0) return null; - for (c = new gCe(n, !t), r = new x(e); r.a < r.c.c.length; ) + for (c = new pCe(n, !t), r = new x(e); r.a < r.c.c.length; ) i = u(A(r), 70), bne(c, (H4(), new kA(i))); return s = c.i, s.a = (h = c.n, c.e.b + h.d + h.a), s.b = (f = c.n, c.e.a + f.b + f.c), c; } - function MGe(e) { + function TGe(e) { var n, t, i, r, c, s, f; - for (f = Jy(e.a), EX(f, new bge()), t = null, r = f, c = 0, s = r.length; c < s && (i = r[c], i.k == (cn(), Ai)); ++c) + for (f = Jy(e.a), EX(f, new wge()), t = null, r = f, c = 0, s = r.length; c < s && (i = r[c], i.k == (cn(), Ai)); ++c) n = u(y(i, (te(), Sc)), 64), !(n != (be(), an) && n != gn) && (t && u(y(t, cm), 16).Ec(i), t = i); } function DAn(e, n, t) { var i, r, c, s, f, h, l; h = (qe(n, e.c.length), u(e.c[n], 340)), La(e, n), h.b / 2 >= t && (i = n, l = (h.c + h.a) / 2, s = l - t, h.c <= l - t && (r = new NL(h.c, s), Md(e, i++, r)), f = l + t, f <= h.a && (c = new NL(f, h.a), kw(i, e.c.length), V4(e.c, i, c))); } - function TGe(e, n, t) { + function SGe(e, n, t) { var i, r, c, s, f, h; if (!n.dc()) { for (r = new Dt(), h = n.Jc(); h.Ob(); ) - for (f = u(h.Pb(), 40), ht(e.a, ie(f.g), ie(t)), s = (i = Nn(new Bl(f).a.d, 0), new Ug(i)); U8(s.a); ) + for (f = u(h.Pb(), 40), ht(e.a, ie(f.g), ie(t)), s = (i = Nn(new _l(f).a.d, 0), new Ug(i)); U8(s.a); ) c = u(Ln(s.a), 65).c, ti(r, c, r.c.b, r.c); - TGe(e, r, t + 1); + SGe(e, r, t + 1); } } function Fne(e) { @@ -20571,7 +20661,7 @@ function WDn() { } return n == e.b && null.Tm >= null.Sm() ? (gT(e), Fne(e)) : n.Ob(); } - function SGe(e) { + function IGe(e) { if (this.a = e, e.c.i.k == (cn(), Ai)) this.c = e.c, this.d = u(y(e.c.i, (te(), Sc)), 64); else if (e.d.i.k == Ai) @@ -20579,12 +20669,12 @@ function WDn() { else throw $(new on("Edge " + e + " is not an external edge.")); } - function IGe(e, n) { + function CGe(e, n) { var t, i, r; - r = e.b, e.b = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 3, r, e.b)), n ? n != e && (gu(e, n.zb), gN(e, n.d), t = (i = n.c, i ?? n.zb), mN(e, t == null || _e(t, n.zb) ? null : t)) : (gu(e, null), gN(e, 0), mN(e, null)); + r = e.b, e.b = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 3, r, e.b)), n ? n != e && (gu(e, n.zb), gN(e, n.d), t = (i = n.c, i ?? n.zb), mN(e, t == null || Be(t, n.zb) ? null : t)) : (gu(e, null), gN(e, 0), mN(e, null)); } - function CGe(e) { - !_J && (_J = EOn()); + function PGe(e) { + !BJ && (BJ = EOn()); var n = e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g, function(t) { return ppn(t); }); @@ -20607,9 +20697,9 @@ function WDn() { function FAn(e, n) { var t, i, r, c, s; if (t = u(hn(e.a, 4), 129), s = t == null ? 0 : t.length, n >= s) throw $(new hw(n, s)); - return r = t[n], s == 1 ? i = null : (i = W(EU, mJ, 415, s - 1, 0, 1), zc(t, 0, i, 0, n), c = s - n - 1, c > 0 && zc(t, n + 1, i, n, c)), qv(e, i), YJe(e, n, r), r; + return r = t[n], s == 1 ? i = null : (i = W(EU, mJ, 415, s - 1, 0, 1), zc(t, 0, i, 0, n), c = s - n - 1, c > 0 && zc(t, n + 1, i, n, c)), qv(e, i), ZJe(e, n, r), r; } - function PGe(e) { + function OGe(e) { var n, t; if (e.f) { for (; e.n < e.o; ) { @@ -20622,28 +20712,28 @@ function WDn() { return e.n < e.o; } function C3() { - C3 = G, xm = u(F(ee((xW(), Dc).qb), 6), 38), Am = u(F(ee(Dc.qb), 3), 38), SU = u(F(ee(Dc.qb), 4), 38), IU = u(F(ee(Dc.qb), 5), 19), iT(xm), iT(Am), iT(SU), iT(IU), Qon = new yc(I(T(Uu, 1), q2, 179, 0, [xm, Am])); + C3 = G, xm = u(F(ee((xW(), Dc).qb), 6), 38), Am = u(F(ee(Dc.qb), 3), 38), SU = u(F(ee(Dc.qb), 4), 38), IU = u(F(ee(Dc.qb), 5), 19), iT(xm), iT(Am), iT(SU), iT(IU), Yon = new yc(I(S(Uu, 1), q2, 179, 0, [xm, Am])); } - function OGe(e, n) { + function LGe(e, n) { var t; this.d = new O4(), this.b = n, this.e = new vr(n.Jf()), t = e.u.Gc((ls(), FE)), e.u.Gc(ba) ? e.F ? this.a = t && !n._f() : this.a = !0 : e.u.Gc(dd) ? t ? this.a = !(n.Sf().Jc().Ob() || n.Uf().Jc().Ob()) : this.a = !1 : this.a = !1; } - function LGe(e, n) { + function DGe(e, n) { var t, i, r, c; for (t = e.o.a, c = u(u(Mt(e.r, n), 22), 83).Jc(); c.Ob(); ) - r = u(c.Pb(), 115), r.e.a = (i = r.b, i.nf((tt(), Ss)) ? i.$f() == (be(), an) ? -i.Kf().a - _(H(i.mf(Ss))) : t + _(H(i.mf(Ss))) : i.$f() == (be(), an) ? -i.Kf().a : t); + r = u(c.Pb(), 115), r.e.a = (i = r.b, i.nf((tt(), Ss)) ? i.$f() == (be(), an) ? -i.Kf().a - B(H(i.mf(Ss))) : t + B(H(i.mf(Ss))) : i.$f() == (be(), an) ? -i.Kf().a : t); } - function DGe(e) { + function NGe(e) { var n, t, i, r, c, s, f; if (i = e.a.c.length, i > 0) for (s = e.c.d, f = e.d.d, r = Jl(Fi(new ue(f.a, f.b), s), 1 / (i + 1)), c = new ue(s.a, s.b), t = new x(e.a); t.a < t.c.c.length; ) n = u(A(t), 251), n.d.a = c.a + r.a, n.d.b = c.b + r.b, c.a += r.a, c.b += r.b; } - function NGe(e, n) { + function FGe(e, n) { var t, i, r, c; t = u(y(e, (ae(), co)), 86), c = u(re(n, i4), 64), r = u(y(e, oi), 102), r != (Ui(), Sh) && r != ad ? c == (be(), mc) && (c = qte(n, t), c == mc && (c = j3(t))) : (i = BUe(n), i > 0 ? c = j3(t) : c = A7(j3(t))), Pt(n, i4, c); } - function FGe(e, n) { + function RGe(e, n) { var t, i; if (e.c.length != 0) { if (e.c.length == 2) @@ -20656,7 +20746,7 @@ function WDn() { } function RAn(e, n) { var t, i, r, c, s; - for (s = e.j, n.a != n.b && Di(s, new Jpe()), r = s.c.length / 2 | 0, i = 0; i < r; i++) + for (s = e.j, n.a != n.b && Di(s, new Gpe()), r = s.c.length / 2 | 0, i = 0; i < r; i++) c = (qe(i, s.c.length), u(s.c[i], 113)), c.c && Oi(c.d, n.a); for (t = r; t < s.c.length; t++) c = (qe(t, s.c.length), u(s.c[t], 113)), c.c && Oi(c.d, n.b); @@ -20676,13 +20766,13 @@ function WDn() { case 4: r = 2 * t + e.b, ++e.b; } - return Et(n, (te(), _t)) && (r += u(y(n, lg), 15).a * i + u(y(n, _t), 15).a), r; + return Et(n, (te(), Bt)) && (r += u(y(n, lg), 15).a * i + u(y(n, Bt), 15).a), r; } - function BAn(e, n, t) { + function _An(e, n, t) { var i, r, c; return i = e.c[n.c.p][n.p], r = e.c[t.c.p][t.p], i.a != null && r.a != null ? (c = YL(i.a, r.a), c < 0 ? X7(e, n, t) : c > 0 && X7(e, t, n), c) : i.a != null ? (X7(e, n, t), -1) : r.a != null ? (X7(e, t, n), 1) : 0; } - function RGe(e) { + function _Ge(e) { ID(); var n, t, i, r, c, s, f; for (t = new T1(), r = new x(e.e.b); r.a < r.c.c.length; ) @@ -20690,7 +20780,7 @@ function WDn() { c = u(A(s), 9), f = e.g[c.p], n = u(hh(t, f), 16), n || (n = new le(), Wd(t, f, n)), n.Ec(c); return t; } - function _An(e, n) { + function BAn(e, n) { var t, i, r, c, s; for (r = n.b.b, e.a = W(ro, Kw, 16, r, 0, 1), e.b = W(zu, zf, 30, r, 16, 1), s = Nn(n.b, 0); s.b != s.d.c; ) c = u(Ln(s), 40), e.a[c.g] = new Dt(); @@ -20699,9 +20789,9 @@ function WDn() { } function BGe(e, n) { var t, i, r, c; - e.Nj() ? (t = e.Cj(), c = e.Oj(), ++e.j, e.oj(t, e.Xi(t, n)), i = e.Gj(3, null, n, t, c), e.Kj() ? (r = e.Lj(n, null), r ? (r.lj(i), r.mj()) : e.Hj(i)) : e.Hj(i)) : (lIe(e, n), e.Kj() && (r = e.Lj(n, null), r && r.mj())); + e.Nj() ? (t = e.Cj(), c = e.Oj(), ++e.j, e.oj(t, e.Xi(t, n)), i = e.Gj(3, null, n, t, c), e.Kj() ? (r = e.Lj(n, null), r ? (r.lj(i), r.mj()) : e.Hj(i)) : e.Hj(i)) : (aIe(e, n), e.Kj() && (r = e.Lj(n, null), r && r.mj())); } - function Bne(e, n, t) { + function _ne(e, n, t) { var i, r, c; e.Nj() ? (c = e.Oj(), k7(e, n, t), i = e.Gj(3, null, t, n, c), e.Kj() ? (r = e.Lj(t, null), e.Rj() && (r = e.Sj(t, r)), r ? (r.lj(i), r.mj()) : e.Hj(i)) : e.Hj(i)) : (k7(e, n, t), e.Kj() && (r = e.Lj(t, null), r && r.mj())); } @@ -20709,13 +20799,13 @@ function WDn() { var t, i, r, c, s; for (s = xu(e.e.Ah(), n), r = new oA(), t = u(e.g, 122), c = e.i; --c >= 0; ) i = t[c], s.$l(i.Jk()) && Dn(r, i); - !Dze(e, r) && Os(e.e) && Fm(e, n.Hk() ? x1(e, 6, n, (ze(), $r), null, -1, !1) : x1(e, n.rk() ? 2 : 1, n, null, null, -1, !1)); + !Nze(e, r) && Os(e.e) && Fm(e, n.Hk() ? x1(e, 6, n, (ze(), $r), null, -1, !1) : x1(e, n.rk() ? 2 : 1, n, null, null, -1, !1)); } function JAn(e, n) { var t, i, r, c, s; return e.a == (Kv(), yk) ? !0 : (c = n.a.c, t = n.a.c + n.a.b, !(n.j && (i = n.A, s = i.c.c.a - i.o.a / 2, r = c - (i.n.a + i.o.a), r > s) || n.q && (i = n.C, s = i.c.c.a - i.o.a / 2, r = i.n.a - t, r > s))); } - function _Ge(e, n, t) { + function JGe(e, n, t) { var i, r, c, s, f, h; for (i = 0, h = t, n || (i = t * (e.c.length - 1), h *= -1), c = new x(e); c.a < c.c.c.length; ) { for (r = u(A(c), 9), K(r, (ae(), tl), (wl(), JC)), r.o.a = i, f = qa(r, (be(), gn)).Jc(); f.Ob(); ) @@ -20723,28 +20813,28 @@ function WDn() { i += h; } } - function JGe(e) { + function GGe(e) { var n; - return (e.Db & 64) != 0 ? kf(e) : (n = new _o(kf(e)), n.a += " (startX: ", zg(n, e.j), n.a += ", startY: ", zg(n, e.k), n.a += ", endX: ", zg(n, e.b), n.a += ", endY: ", zg(n, e.c), n.a += ", identifier: ", Br(n, e.d), n.a += ")", n.a); + return (e.Db & 64) != 0 ? kf(e) : (n = new Bo(kf(e)), n.a += " (startX: ", zg(n, e.j), n.a += ", startY: ", zg(n, e.k), n.a += ", endX: ", zg(n, e.b), n.a += ", endY: ", zg(n, e.c), n.a += ", identifier: ", _r(n, e.d), n.a += ")", n.a); } - function _ne(e) { + function Bne(e) { var n; - return (e.Db & 64) != 0 ? Q6(e) : (n = new _o(Q6(e)), n.a += " (ordered: ", $a(n, (e.Bb & 256) != 0), n.a += ", unique: ", $a(n, (e.Bb & 512) != 0), n.a += ", lowerBound: ", mO(n, e.s), n.a += ", upperBound: ", mO(n, e.t), n.a += ")", n.a); + return (e.Db & 64) != 0 ? Q6(e) : (n = new Bo(Q6(e)), n.a += " (ordered: ", $a(n, (e.Bb & 256) != 0), n.a += ", unique: ", $a(n, (e.Bb & 512) != 0), n.a += ", lowerBound: ", mO(n, e.s), n.a += ", upperBound: ", mO(n, e.t), n.a += ")", n.a); } - function GGe(e, n, t, i, r, c, s, f) { + function HGe(e, n, t, i, r, c, s, f) { var h; - return N(e.Cb, 88) && Bw(ks(u(e.Cb, 88)), 4), gu(e, t), e.f = i, Rv(e, r), Bv(e, c), Nv(e, s), Fv(e, !1), Ga(e, !0), _v(e, f), Ja(e, !0), Fa(e, 0), e.b = 0, $w(e, 1), h = bh(e, n, null), h && h.mj(), tF(e, !1), e; + return N(e.Cb, 88) && _w(ks(u(e.Cb, 88)), 4), gu(e, t), e.f = i, Rv(e, r), _v(e, c), Nv(e, s), Fv(e, !1), Ga(e, !0), Bv(e, f), Ja(e, !0), Fa(e, 0), e.b = 0, $w(e, 1), h = bh(e, n, null), h && h.mj(), tF(e, !1), e; } - function HGe(e, n) { + function qGe(e, n) { var t, i, r, c; - return t = u(nu(e.a, n), 511), t || (i = new UD(n), r = (D$(), jh ? null : i.c), c = Go(r, 0, m.Math.max(0, xx(r, Fu(46)))), E0n(i, HGe(e, c)), (jh ? null : i.c).length == 0 && NMe(i, new $P()), zr(e.a, jh ? null : i.c, i), i); + return t = u(nu(e.a, n), 511), t || (i = new UD(n), r = (D$(), jh ? null : i.c), c = Go(r, 0, m.Math.max(0, xx(r, Fu(46)))), E0n(i, qGe(e, c)), (jh ? null : i.c).length == 0 && FMe(i, new $P()), zr(e.a, jh ? null : i.c, i), i); } function GAn(e, n) { var t, i; return Et(e, (te(), cp)) ? Et(n, cp) ? (t = H(y(e, cp)), i = H(y(n, cp)), t != null && i != null ? Ct((Ze(t), t), (Ze(i), i)) : t != null ? -1 : i != null ? 1 : 0) : -1 : 1; } - function qGe() { - this.a = new S5e(), this.n = new QM(), this.p = new QM(), this.c = new Tn(), this.f = new QM(), this.o = new QM(), this.q = new Tn(), this.d = new Tn(), this.g = new Tn(), this.k = new Tn(), this.e = new Tn(), this.i = new Tn(), this.j = new Tn(), this.r = new Tn(), this.b = new Tn(); + function UGe() { + this.a = new I5e(), this.n = new QM(), this.p = new QM(), this.c = new Tn(), this.f = new QM(), this.o = new QM(), this.q = new Tn(), this.d = new Tn(), this.g = new Tn(), this.k = new Tn(), this.e = new Tn(), this.i = new Tn(), this.j = new Tn(), this.r = new Tn(), this.b = new Tn(); } function O3(e, n, t) { var i, r, c, s, f, h; @@ -20758,20 +20848,20 @@ function WDn() { r = u(A(c), 82), r.k = ve(me(e.e.Kb(new Ar(r, n)))), r.d.g = r.d.g & ve(me(e.e.Kb(new Ar(r, n)))); return e; } - function UGe(e, n, t) { + function zGe(e, n, t) { var i, r, c, s, f; if (!e.d[t.p]) { - for (r = new fn(dn(Ht(t).a.Jc(), new Q())); xn(r); ) { - for (i = u(pn(r), 17), f = i.d.i, s = new fn(dn(bi(f).a.Jc(), new Q())); xn(s); ) + for (r = new fn(dn(Ht(t).a.Jc(), new Y())); xn(r); ) { + for (i = u(pn(r), 17), f = i.d.i, s = new fn(dn(bi(f).a.Jc(), new Y())); xn(s); ) c = u(pn(s), 17), c.c.i == n && (e.a[c.p] = !0); - UGe(e, n, f); + zGe(e, n, f); } e.d[t.p] = !0; } } function qAn(e, n) { var t, i, r, c, s, f, h; - if (i = jRe(e.Db & 254), i == 1) + if (i = ERe(e.Db & 254), i == 1) e.Eb = null; else if (c = g3(e.Eb), i == 2) r = LF(e, n), e.Eb = c[r == 0 ? 1 : 0]; @@ -20820,7 +20910,7 @@ function WDn() { function UAn(e, n, t, i, r) { var c, s, f, h; if (z(e) === z(n) && i == r) { - Wqe(e, i, t); + Xqe(e, i, t); return; } for (f = 0; f < i; f++) { @@ -20829,7 +20919,7 @@ function WDn() { t[f + r] = Xn(s); } } - function zGe(e) { + function WGe(e) { var n, t, i, r, c; if (t = (n = u(Ff(Mr), 10), new wo(n, u(af(n, n.length), 10), 0)), c = u(y(e, (te(), ds)), 9), c) for (r = new x(c.j); r.a < r.c.c.length; ) @@ -20850,12 +20940,12 @@ function WDn() { Pa(e, n, (vf(), sg), null); } } - function WGe(e, n) { - n.b != 0 && (isNaN(e.s) ? e.s = _((An(n.b != 0), H(n.a.a.c))) : e.s = m.Math.min(e.s, _((An(n.b != 0), H(n.a.a.c)))), isNaN(e.c) ? e.c = _((An(n.b != 0), H(n.c.b.c))) : e.c = m.Math.max(e.c, _((An(n.b != 0), H(n.c.b.c))))); + function XGe(e, n) { + n.b != 0 && (isNaN(e.s) ? e.s = B((An(n.b != 0), H(n.a.a.c))) : e.s = m.Math.min(e.s, B((An(n.b != 0), H(n.a.a.c)))), isNaN(e.c) ? e.c = B((An(n.b != 0), H(n.c.b.c))) : e.c = m.Math.max(e.c, B((An(n.b != 0), H(n.c.b.c))))); } function g9(e) { var n, t, i, r; - for (n = null, i = ll(vo(I(T(To, 1), Ve, 20, 0, [(!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), (!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c)]))); xn(i); ) + for (n = null, i = ll(vo(I(S(To, 1), Ve, 20, 0, [(!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), (!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c)]))); xn(i); ) if (t = u(pn(i), 84), r = ec(t), !n) n = Qt(r); else if (n != Qt(r)) @@ -20881,12 +20971,12 @@ function WDn() { if (!e.a) throw $(new qr("IDataType class expected for layout option " + e.f)); if (n = jmn(e.a), n == null) - throw $(new qr("Couldn't create new instance of property '" + e.f + "'. " + oKe + (Gl(XE), XE.k) + aue)); + throw $(new qr("Couldn't create new instance of property '" + e.f + "'. " + fKe + (Gl(XE), XE.k) + aue)); return u(n, 414); } function fR(e) { var n, t, i, r, c; - return c = e.Mh(), c && c.Sh() && (r = D1(e, c), r != c) ? (t = e.Ch(), i = (n = e.Ch(), n >= 0 ? e.xh(null) : e.Mh().Qh(e, -1 - n, null, null)), e.yh(u(r, 52), t), i && i.mj(), e.sh() && e.th() && t > -1 && yt(e, new Bi(e, 9, t, c, r)), r) : c; + return c = e.Mh(), c && c.Sh() && (r = D1(e, c), r != c) ? (t = e.Ch(), i = (n = e.Ch(), n >= 0 ? e.xh(null) : e.Mh().Qh(e, -1 - n, null, null)), e.yh(u(r, 52), t), i && i.mj(), e.sh() && e.th() && t > -1 && yt(e, new _i(e, 9, t, c, r)), r) : c; } function Gne(e, n) { var t, i, r, c, s; @@ -20895,7 +20985,7 @@ function WDn() { return i.length == 1 ? (i.length = 0, Qdn(e.a, c)) : i.splice(s, 1), --e.c, ++e.b.g, r.kd(); return null; } - function XGe(e) { + function KGe(e) { var n, t, i, r, c, s, f, h; for (s = 0, c = e.f.e, i = 0; i < c.c.length; ++i) for (f = (qe(i, c.c.length), u(c.c[i], 155)), r = i + 1; r < c.c.length; ++r) @@ -20904,33 +20994,33 @@ function WDn() { } function KAn(e, n) { var t; - if (!Et(n, (ae(), pc)) && (t = Oyn(u(y(n, Woe), 367), u(y(e, pc), 165)), K(n, Woe, t), !xn(new fn(dn(Jh(n).a.Jc(), new Q()))))) + if (!Et(n, (ae(), pc)) && (t = Oyn(u(y(n, Woe), 367), u(y(e, pc), 165)), K(n, Woe, t), !xn(new fn(dn(Jh(n).a.Jc(), new Y()))))) switch (t.g) { case 1: - K(n, pc, (Bs(), Mk)); + K(n, pc, (_s(), Mk)); break; case 2: - K(n, pc, (Bs(), Tk)); + K(n, pc, (_s(), Tk)); } } function VAn(e, n) { var t; - sTn(e), e.a = (t = new wO(), fi(new Ge(null, new He(n.d, 16)), new B8e(t)), t), yTn(e, u(y(n.b, (ae(), pH)), 348)), A8n(e), ixn(e), Fyn(e), x8n(e), mCn(e, n), fi(cc(new Ge(null, APe(zgn(e.b).a)), new Ape()), new xpe()), n.a = !1, e.a = null; + sTn(e), e.a = (t = new wO(), fi(new Ge(null, new He(n.d, 16)), new B8e(t)), t), yTn(e, u(y(n.b, (ae(), pH)), 348)), A8n(e), ixn(e), Fyn(e), x8n(e), mCn(e, n), fi(cc(new Ge(null, xPe(zgn(e.b).a)), new xpe()), new $pe()), n.a = !1, e.a = null; } function Hne() { - Hne = G, Zrn = new Fe($ce, (en(), !1)), ecn = new Fe(Mce, 7), ie(0), rcn = new Fe(Tce, ie(0)), tcn = new Fe(Sce, ie(-1)), sae = (W6(), fq), ccn = new Fe(Ice, sae), cae = (X6(), wE), ncn = new Fe(Cce, cae), uae = (T$(), hq), icn = new Fe(Pce, uae); + Hne = G, ecn = new Fe($ce, (en(), !1)), ncn = new Fe(Mce, 7), ie(0), ccn = new Fe(Tce, ie(0)), icn = new Fe(Sce, ie(-1)), sae = (W6(), fq), ucn = new Fe(Ice, sae), cae = (X6(), wE), tcn = new Fe(Cce, cae), uae = (T$(), hq), rcn = new Fe(Pce, uae); } - function KGe() { - une.call(this, L5, (p1(), bon)), this.p = null, this.a = null, this.f = null, this.n = null, this.g = null, this.c = null, this.i = null, this.j = null, this.d = null, this.b = null, this.e = null, this.k = null, this.o = null, this.s = null, this.q = !1, this.r = !1; + function VGe() { + une.call(this, L5, (p1(), won)), this.p = null, this.a = null, this.f = null, this.n = null, this.g = null, this.c = null, this.i = null, this.j = null, this.d = null, this.b = null, this.e = null, this.k = null, this.o = null, this.s = null, this.q = !1, this.r = !1; } function Qv() { - Qv = G, yU = new qp(yXe, 0), cP = new qp("INSIDE_SELF_LOOPS", 1), uP = new qp("MULTI_EDGES", 2), rP = new qp("EDGE_LABELS", 3), kU = new qp("PORTS", 4), iP = new qp("COMPOUND", 5), tP = new qp("CLUSTERS", 6), vU = new qp("DISCONNECTED", 7); + Qv = G, yU = new qp(jXe, 0), cP = new qp("INSIDE_SELF_LOOPS", 1), uP = new qp("MULTI_EDGES", 2), rP = new qp("EDGE_LABELS", 3), kU = new qp("PORTS", 4), iP = new qp("COMPOUND", 5), tP = new qp("CLUSTERS", 6), vU = new qp("DISCONNECTED", 7); } - function VGe(e, n, t) { + function QGe(e, n, t) { var i, r, c; e.Nj() ? (c = e.Oj(), ++e.j, e.oj(n, e.Xi(n, t)), i = e.Gj(3, null, t, n, c), e.Kj() ? (r = e.Lj(t, null), r ? (r.lj(i), r.mj()) : e.Hj(i)) : e.Hj(i)) : (++e.j, e.oj(n, e.Xi(n, t)), e.Kj() && (r = e.Lj(t, null), r && r.mj())); } - function QGe(e, n) { + function YGe(e, n) { var t, i, r; if (n == 0) return (e.a[0] & 1) != 0; @@ -20939,22 +21029,22 @@ function WDn() { if (r = n >> 5, r >= e.d) return e.e < 0; if (t = e.a[r], n = 1 << (n & 31), e.e < 0) { - if (i = UNe(e), r < i) + if (i = zNe(e), r < i) return !1; i == r ? t = -t : t = ~t; } return (t & n) != 0; } - function YGe(e) { + function ZGe(e) { var n, t, i, r, c; - if (r = new le(), c = Qqe(e, r), n = u(y(e, (te(), ds)), 9), n) + if (r = new le(), c = Yqe(e, r), n = u(y(e, (te(), ds)), 9), n) for (i = new x(n.j); i.a < i.c.c.length; ) - t = u(A(i), 12), z(y(t, $t)) === z(e) && (c = m.Math.max(c, Qqe(t, r))); + t = u(A(i), 12), z(y(t, $t)) === z(e) && (c = m.Math.max(c, Yqe(t, r))); return r.c.length == 0 || K(e, np, c), c != -1 ? r : null; } function QAn(e, n, t, i) { var r; - u(t.b, 68), u(t.b, 68), u(i.b, 68), u(i.b, 68), r = Fi(kr(u(t.b, 68).c), u(i.b, 68).c), Bx(r, uGe(u(t.b, 68), u(i.b, 68), r)), u(i.b, 68), u(i.b, 68), u(i.b, 68).c.a + r.a, u(i.b, 68).c.b + r.b, u(i.b, 68), wu(i.a, new JK(e, n, i)); + u(t.b, 68), u(t.b, 68), u(i.b, 68), u(i.b, 68), r = Fi(kr(u(t.b, 68).c), u(i.b, 68).c), _x(r, sGe(u(t.b, 68), u(i.b, 68), r)), u(i.b, 68), u(i.b, 68), u(i.b, 68).c.a + r.a, u(i.b, 68).c.b + r.b, u(i.b, 68), wu(i.a, new JK(e, n, i)); } function qne(e, n) { var t, i, r, c, s, f, h; @@ -20994,18 +21084,18 @@ function WDn() { function YAn(e) { var n, t, i; for (t = new x(e.a.a.b); t.a < t.c.c.length; ) - n = u(A(t), 82), i = (Ze(0), 0), i > 0 && (!(_l(e.a.c) && n.n.d) && !(n2(e.a.c) && n.n.b) && (n.g.d += m.Math.max(0, i / 2 - 0.5)), !(_l(e.a.c) && n.n.a) && !(n2(e.a.c) && n.n.c) && (n.g.a -= i - 1)); + n = u(A(t), 82), i = (Ze(0), 0), i > 0 && (!(Bl(e.a.c) && n.n.d) && !(n2(e.a.c) && n.n.b) && (n.g.d += m.Math.max(0, i / 2 - 0.5)), !(Bl(e.a.c) && n.n.a) && !(n2(e.a.c) && n.n.c) && (n.g.a -= i - 1)); } - function ZGe(e, n, t) { + function eHe(e, n, t) { var i, r, c, s, f, h; c = u(pe(n.e, 0), 17).c, i = c.i, r = i.k, h = u(pe(t.g, 0), 17).d, s = h.i, f = s.k, r == (cn(), yi) ? K(e, (te(), Qf), u(y(i, Qf), 12)) : K(e, (te(), Qf), c), f == yi ? K(e, (te(), Vo), u(y(s, Vo), 12)) : K(e, (te(), Vo), h); } - function eHe(e, n) { + function nHe(e, n) { var t, i, r, c, s, f; for (c = new x(e.b); c.a < c.c.c.length; ) for (r = u(A(c), 25), f = new x(r.a); f.a < f.c.c.length; ) - for (s = u(A(f), 9), s.k == (cn(), _c) && L3(s, n), i = new fn(dn(Ht(s).a.Jc(), new Q())); xn(i); ) - t = u(pn(i), 17), dFe(t, n); + for (s = u(A(f), 9), s.k == (cn(), Bc) && L3(s, n), i = new fn(dn(Ht(s).a.Jc(), new Y())); xn(i); ) + t = u(pn(i), 17), bFe(t, n); } function ZAn(e, n) { var t, i, r; @@ -21015,17 +21105,17 @@ function WDn() { } function zne(e) { var n, t, i; - this.c = e, i = u(y(e, (ae(), co)), 86), n = _(H(y(e, WI))), t = _(H(y(e, ile))), i == (Mi(), Qr) || i == nc || i == Th ? this.b = n * t : this.b = 1 / (n * t), this.j = _(H(y(e, kg))), this.e = _(H(y(e, g0))), this.f = e.b.c.length; + this.c = e, i = u(y(e, (ae(), co)), 86), n = B(H(y(e, WI))), t = B(H(y(e, ile))), i == (Mi(), Qr) || i == nc || i == Th ? this.b = n * t : this.b = 1 / (n * t), this.j = B(H(y(e, kg))), this.e = B(H(y(e, g0))), this.f = e.b.c.length; } function exn(e) { var n, t; for (e.e = W(Wn, lt, 30, e.p.c.length, 15, 1), e.k = W(Wn, lt, 30, e.p.c.length, 15, 1), t = new x(e.p); t.a < t.c.c.length; ) - n = u(A(t), 9), e.e[n.p] = _f(new fn(dn(bi(n).a.Jc(), new Q()))), e.k[n.p] = _f(new fn(dn(Ht(n).a.Jc(), new Q()))); + n = u(A(t), 9), e.e[n.p] = Bf(new fn(dn(bi(n).a.Jc(), new Y()))), e.k[n.p] = Bf(new fn(dn(Ht(n).a.Jc(), new Y()))); } function nxn(e) { var n, t, i, r, c, s; for (r = 0, e.q = new le(), n = new vi(), s = new x(e.p); s.a < s.c.c.length; ) { - for (c = u(A(s), 9), c.p = r, i = new fn(dn(Ht(c).a.Jc(), new Q())); xn(i); ) + for (c = u(A(s), 9), c.p = r, i = new fn(dn(Ht(c).a.Jc(), new Y())); xn(i); ) t = u(pn(i), 17), ki(n, t.d.i); n.a.Ac(c) != null, he(e.q, new aw(n)), n.a.$b(), ++r; } @@ -21034,12 +21124,12 @@ function WDn() { var t, i, r, c, s; return n &= 63, t = e.h, i = (t & hj) != 0, i && (t |= -1048576), n < 22 ? (s = t >> n, c = e.m >> n | t << 22 - n, r = e.l >> n | e.m << 22 - n) : n < 44 ? (s = i ? ca : 0, c = t >> n - 22, r = e.m >> n - 22 | t << 44 - n) : (s = i ? ca : 0, c = i ? Ts : 0, r = t >> n - 44), Eu(r & Ts, c & Ts, s & ca); } - function nHe(e, n) { + function tHe(e, n) { var t, i, r, c, s, f, h, l, a; if (e.a.f > 0 && N(n, 45) && (e.a.Zj(), l = u(n, 45), h = l.jd(), c = h == null ? 0 : Gt(h), s = wK(e.a, c), t = e.a.d[s], t)) { for (i = u(t.g, 374), a = t.i, f = 0; f < a; ++f) if (r = i[f], r.yi() == c && r.Fb(l)) - return nHe(e, l), !0; + return tHe(e, l), !0; } return !1; } @@ -21055,11 +21145,11 @@ function WDn() { function ixn(e) { var n, t, i, r; for (r = u(Mt(e.a, (Nw(), II)), 16).Jc(); r.Ob(); ) - i = u(r.Pb(), 107), t = (n = n3(i.k), n.Gc((be(), ln)) ? n.Gc(gn) ? n.Gc(Mn) ? n.Gc(an) ? null : jen : Aen : Een : yen), uv(e, i, t[0], (Z0(), Mb), 0), uv(e, i, t[1], nd, 1), uv(e, i, t[2], Tb, 1); + i = u(r.Pb(), 107), t = (n = n3(i.k), n.Gc((be(), ln)) ? n.Gc(gn) ? n.Gc(Mn) ? n.Gc(an) ? null : Een : xen : Aen : jen), uv(e, i, t[0], (Z0(), Mb), 0), uv(e, i, t[1], nd, 1), uv(e, i, t[2], Tb, 1); } function rxn(e, n) { var t, i; - t = DTn(n), AMn(e, n, t), tJe(e.a, u(y(_i(n.b), (te(), sm)), 234)), tSn(e), H7n(e, n), i = W(Wn, lt, 30, n.b.j.c.length, 15, 1), GR(e, n, (be(), ln), i, t), GR(e, n, gn, i, t), GR(e, n, Mn, i, t), GR(e, n, an, i, t), e.a = null, e.c = null, e.b = null; + t = DTn(n), AMn(e, n, t), iJe(e.a, u(y(Bi(n.b), (te(), sm)), 234)), tSn(e), H7n(e, n), i = W(Wn, lt, 30, n.b.j.c.length, 15, 1), GR(e, n, (be(), ln), i, t), GR(e, n, gn, i, t), GR(e, n, Mn, i, t), GR(e, n, an, i, t), e.a = null, e.c = null, e.b = null; } function Xne(e, n, t) { switch (n) { @@ -21085,30 +21175,30 @@ function WDn() { } function cxn(e, n) { var t, i, r, c; - for (c = u(fs(cc(cc(new Ge(null, new He(n.b, 16)), new Age()), new xge()), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), c.Ic(new $ge()), t = 0, r = c.Jc(); r.Ob(); ) + for (c = u(fs(cc(cc(new Ge(null, new He(n.b, 16)), new xge()), new $ge()), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), c.Ic(new Mge()), t = 0, r = c.Jc(); r.Ob(); ) i = u(r.Pb(), 12), i.p == -1 && Qne(e, i, t++); } function uxn(e, n) { var t, i, r, c, s; for (n.Tg("Port side processing", 1), s = new x(e.a); s.a < s.c.c.length; ) - r = u(A(s), 9), jUe(r); + r = u(A(s), 9), EUe(r); for (i = new x(e.b); i.a < i.c.c.length; ) for (t = u(A(i), 25), c = new x(t.a); c.a < c.c.c.length; ) - r = u(A(c), 9), jUe(r); + r = u(A(c), 9), EUe(r); n.Ug(); } - function tHe(e) { + function iHe(e) { switch (e.g) { case 0: - return new C9e(); + return new P9e(); case 1: - return new d9e(); + return new b9e(); case 2: - return new I9e(); + return new C9e(); case 3: - return new pxe(); + return new mxe(); case 4: - return new TSe(); + return new SSe(); default: throw $(new on("No implementation is available for the node placer " + (e.f != null ? e.f : "" + e.g))); } @@ -21141,7 +21231,7 @@ function WDn() { return iQ(u(n, 157)); if (N(n, 271)) return Cdn(e, u(n, 85)); - throw $(new on(D5 + wh(new yc(I(T(Li, 1), Ve, 1, 5, [n]))))); + throw $(new on(D5 + wh(new yc(I(S(Li, 1), Ve, 1, 5, [n]))))); } function fxn(e, n, t) { var i; @@ -21149,15 +21239,15 @@ function WDn() { } function Qne(e, n, t) { var i, r, c; - for (n.p = t, c = ll(vo(I(T(To, 1), Ve, 20, 0, [new Nm(n), new Sp(n)]))); xn(c); ) + for (n.p = t, c = ll(vo(I(S(To, 1), Ve, 20, 0, [new Nm(n), new Sp(n)]))); xn(c); ) i = u(pn(c), 12), i.p == -1 && Qne(e, i, t); if (n.i.k == (cn(), yi)) for (r = new x(n.i.j); r.a < r.c.c.length; ) i = u(A(r), 12), i != n && i.p == -1 && Qne(e, i, t); } - function iHe(e) { + function rHe(e) { var n, t, i, r, c; - if (r = u(fs(rQ(sQ(e)), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), i = _2, r.gc() >= 2) + if (r = u(fs(rQ(sQ(e)), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), i = B2, r.gc() >= 2) for (t = r.Jc(), n = H(t.Pb()); t.Ob(); ) c = n, n = H(t.Pb()), i = m.Math.min(i, (Ze(n), n - (Ze(c), c))); return i; @@ -21165,8 +21255,8 @@ function WDn() { function hxn(e, n) { var t, i, r; for (r = new le(), i = Nn(n.a, 0); i.b != i.d.c; ) - t = u(Ln(i), 65), t.b.g == e.g && !_e(t.b.c, vS) && z(y(t.b, (Ac(), rl))) !== z(y(t.c, rl)) && !a2(new Ge(null, new He(r, 16)), new xye(t)) && sn(r.c, t); - return Di(r, new lme()), r; + t = u(Ln(i), 65), t.b.g == e.g && !Be(t.b.c, vS) && z(y(t.b, (Ac(), rl))) !== z(y(t.c, rl)) && !a2(new Ge(null, new He(r, 16)), new $ye(t)) && sn(r.c, t); + return Di(r, new ame()), r; } function lxn(e, n) { var t, i, r; @@ -21184,10 +21274,10 @@ function WDn() { } function axn(e, n, t, i, r, c) { var s, f, h, l; - for (f = !Hm(mt(e.Mc(), new Dm(new Bge()))).zd((Ad(), V3)), s = e, c == (Mi(), Io) && (s = _s(s)), l = s.Jc(); l.Ob(); ) + for (f = !Hm(mt(e.Mc(), new Dm(new Bge()))).zd((Ad(), V3)), s = e, c == (Mi(), Io) && (s = Bs(s)), l = s.Jc(); l.Ob(); ) h = u(l.Pb(), 70), h.n.a = n.a, f ? h.n.b = n.b + (i.b - h.o.b) / 2 : r ? h.n.b = n.b : h.n.b = n.b + i.b - h.o.b, n.a += h.o.a + t; } - function rHe(e, n, t) { + function cHe(e, n, t) { var i, r, c, s, f, h, l; if (t) for (c = t.a.length, i = new Sd(c), f = (i.b - i.a) * i.c < 0 ? (v1(), md) : new j1(i); f.Ob(); ) @@ -21195,17 +21285,17 @@ function WDn() { } function dxn(e, n, t) { var i, r, c, s, f; - if (f = t, !f && (f = QK(new Lp(), 0)), f.Tg(eXe, 1), tze(e.c, n), s = pPn(e.a, n), s.gc() == 1) - FUe(u(s.Xb(0), 37), f); + if (f = t, !f && (f = QK(new Lp(), 0)), f.Tg(nXe, 1), ize(e.c, n), s = pPn(e.a, n), s.gc() == 1) + RUe(u(s.Xb(0), 37), f); else for (c = 1 / s.gc(), r = s.Jc(); r.Ob(); ) { if (i = u(r.Pb(), 37), t.Zg()) return; - FUe(i, f.dh(c)); + RUe(i, f.dh(c)); } - Bln(e.a, s, n), UMn(n), f.Ug(); + _ln(e.a, s, n), UMn(n), f.Ug(); } - function cHe(e, n, t) { + function uHe(e, n, t) { var i, r, c, s, f; if (r = e.f, !r && (r = u(e.a.a.ec().Jc().Pb(), 60)), f9(r, n, t), e.a.a.gc() != 1) for (i = n * t, s = e.a.a.ec().Jc(); s.Ob(); ) @@ -21215,7 +21305,7 @@ function WDn() { var r, c, s, f, h, l, a, d; r = t, a = n, c = a; do - c = e.a[c.p], f = (d = e.g[c.p], _(e.p[d.p]) + _(e.d[c.p]) - c.d.d), h = B5n(c, i), h && (s = (l = e.g[h.p], _(e.p[l.p]) + _(e.d[h.p]) + h.o.b + h.d.a), r = m.Math.min(r, f - (s + i2(e.k, c, h)))); + c = e.a[c.p], f = (d = e.g[c.p], B(e.p[d.p]) + B(e.d[c.p]) - c.d.d), h = _5n(c, i), h && (s = (l = e.g[h.p], B(e.p[l.p]) + B(e.d[h.p]) + h.o.b + h.d.a), r = m.Math.min(r, f - (s + i2(e.k, c, h)))); while (a != c); return r; } @@ -21223,24 +21313,24 @@ function WDn() { var r, c, s, f, h, l, a, d; r = t, a = n, c = a; do - c = e.a[c.p], s = (d = e.g[c.p], _(e.p[d.p]) + _(e.d[c.p]) + c.o.b + c.d.a), h = V4n(c, i), h && (f = (l = e.g[h.p], _(e.p[l.p]) + _(e.d[h.p]) - h.d.d), r = m.Math.min(r, f - (s + i2(e.k, c, h)))); + c = e.a[c.p], s = (d = e.g[c.p], B(e.p[d.p]) + B(e.d[c.p]) + c.o.b + c.d.a), h = V4n(c, i), h && (f = (l = e.g[h.p], B(e.p[l.p]) + B(e.d[h.p]) - h.d.d), r = m.Math.min(r, f - (s + i2(e.k, c, h)))); while (a != c); return r; } - function uHe(e, n) { + function sHe(e, n) { var t; if (n.Tg("Equal Whitespace Eliminator", 1), Gf(e, (gl(), PC))) - Z6n(u(re(e, PC), 16), _(H(re(e, dm))), (t = _(H(re(e, e8))), _(H(re(e, (gh(), i8)))), t)); + Z6n(u(re(e, PC), 16), B(H(re(e, dm))), (t = B(H(re(e, e8))), B(H(re(e, (gh(), i8)))), t)); else throw $(new Aa("The graph does not contain rows.")); n.Ug(); } function re(e, n) { var t, i; - return i = (!e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), Uf(e.o, n)), i ?? (t = n.Rg(), N(t, 4) && (t == null ? (!e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), _M(e.o, n)) : (!e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), O7(e.o, n, t))), t); + return i = (!e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), Uf(e.o, n)), i ?? (t = n.Rg(), N(t, 4) && (t == null ? (!e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), BM(e.o, n)) : (!e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), O7(e.o, n, t))), t); } - function _w() { - _w = G, Sf = new Vg("H_LEFT", 0), da = new Vg("H_CENTER", 1), If = new Vg("H_RIGHT", 2), Pf = new Vg("V_TOP", 3), Sl = new Vg("V_CENTER", 4), Yo = new Vg("V_BOTTOM", 5), uo = new Vg("INSIDE", 6), Cf = new Vg("OUTSIDE", 7), Qo = new Vg("H_PRIORITY", 8); + function Bw() { + Bw = G, Sf = new Vg("H_LEFT", 0), da = new Vg("H_CENTER", 1), If = new Vg("H_RIGHT", 2), Pf = new Vg("V_TOP", 3), Sl = new Vg("V_CENTER", 4), Yo = new Vg("V_BOTTOM", 5), uo = new Vg("INSIDE", 6), Cf = new Vg("OUTSIDE", 7), Qo = new Vg("H_PRIORITY", 8); } function gxn(e, n) { var t, i, r, c, s, f, h; @@ -21253,11 +21343,11 @@ function WDn() { function pxn(e) { var n, t, i, r, c, s; if (!(e.f.e.c.length <= 1)) { - n = 0, r = XGe(e), t = ii; + n = 0, r = KGe(e), t = ii; do { for (n > 0 && (r = t), s = new x(e.f.e); s.a < s.c.c.length; ) c = u(A(s), 155), !ve(me(y(c, (C7(), Vse)))) && (i = $Sn(e, c), At(Rf(c.d), i)); - t = XGe(e); + t = KGe(e); } while (!Kgn(e, n++, r, t)); } } @@ -21266,19 +21356,19 @@ function WDn() { for (c = e.g.a, s = e.g.b, i = new x(e.d); i.a < i.c.c.length; ) t = u(A(i), 70), r = t.n, e.a == (vf(), U5) || e.i == (be(), gn) ? r.a = c : e.a == z5 || e.i == (be(), an) ? r.a = c + e.j.a - t.o.a : r.a = c + (e.j.a - t.o.a) / 2, r.b = s, At(r, n), s += t.o.b + e.e; } - function sHe(e) { + function oHe(e) { var n, t, i, r; - for (r = 0, n = u(re(e, (tt(), Rsn)), 15).a, i = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); i.e != i.i.gc(); ) + for (r = 0, n = u(re(e, (tt(), _sn)), 15).a, i = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); i.e != i.i.gc(); ) t = u(En(i), 26), !t.a && (t.a = new ne(Qn, t, 10, 11)), t.a && (!t.a && (t.a = new ne(Qn, t, 10, 11)), t.a).i > 0 ? r += n : r += 1; return r; } function vxn(e, n) { var t, i, r, c, s, f, h, l, a, d; - l = e, h = P6(l, "individualSpacings"), h && (i = Gf(n, (tt(), vm)), s = !i, s && (r = new OP(), Pt(n, vm, r)), f = u(re(n, vm), 379), d = h, c = null, d && (c = (a = AN(d, W(ke, oe, 2, 0, 6, 1)), new yO(d, a))), c && (t = new Nxe(d, f), fr(c, t))); + l = e, h = P6(l, "individualSpacings"), h && (i = Gf(n, (tt(), vm)), s = !i, s && (r = new OP(), Pt(n, vm, r)), f = u(re(n, vm), 379), d = h, c = null, d && (c = (a = AN(d, W(ye, fe, 2, 0, 6, 1)), new yO(d, a))), c && (t = new Fxe(d, f), fr(c, t))); } function kxn(e, n) { var t, i, r, c, s, f, h, l, a, d, g; - return h = null, d = e, a = null, (eVe in d.a || nVe in d.a || TS in d.a) && (l = null, g = WY(n), s = P6(d, eVe), t = new f7e(g), HRe(t.a, s), f = P6(d, nVe), i = new m7e(g), qRe(i.a, f), c = K0(d, TS), r = new y7e(g), l = (V_e(r.a, c), c), a = l), h = a, h; + return h = null, d = e, a = null, (nVe in d.a || tVe in d.a || TS in d.a) && (l = null, g = WY(n), s = P6(d, nVe), t = new h7e(g), qRe(t.a, s), f = P6(d, tVe), i = new v7e(g), URe(i.a, f), c = K0(d, TS), r = new j7e(g), l = (QBe(r.a, c), c), a = l), h = a, h; } function yxn(e, n) { var t, i, r; @@ -21288,7 +21378,7 @@ function WDn() { if (r = u(n, 833), e.a.d != r.a.d || o2(e).gc() != o2(r).gc()) return !1; for (i = o2(r).Jc(); i.Ob(); ) - if (t = u(i.Pb(), 416), ZCe(e, t.a.jd()) != u(t.a.kd(), 18).gc()) + if (t = u(i.Pb(), 416), ePe(e, t.a.jd()) != u(t.a.kd(), 18).gc()) return !1; return !0; } @@ -21297,8 +21387,8 @@ function WDn() { function jxn(e, n) { var t, i, r, c; for (c = new x(n.a); c.a < c.c.c.length; ) - for (r = u(A(c), 9), K(r, (te(), zI), (en(), !1)), K(r, om, ie(-1)), K(r, $k, ie(-1)), e.d.a.c.length = 0, i = new fn(dn(Jh(r).a.Jc(), new Q())); xn(i); ) - t = u(pn(i), 17), K(t, Uen, !1); + for (r = u(A(c), 9), K(r, (te(), zI), (en(), !1)), K(r, om, ie(-1)), K(r, $k, ie(-1)), e.d.a.c.length = 0, i = new fn(dn(Jh(r).a.Jc(), new Y())); xn(i); ) + t = u(pn(i), 17), K(t, zen, !1); } function Exn(e, n) { return e.c < n.c ? -1 : e.c > n.c ? 1 : e.b < n.b ? -1 : e.b > n.b ? 1 : e.a != n.a ? Gt(e.a) - Gt(n.a) : e.d == (D6(), zk) && n.d == Uk ? -1 : e.d == Uk && n.d == zk ? 1 : 0; @@ -21307,12 +21397,12 @@ function WDn() { var n, t, i, r, c, s, f, h; for (r = ii, i = Ri, t = new x(e.e.b); t.a < t.c.c.length; ) for (n = u(A(t), 25), s = new x(n.a); s.a < s.c.c.length; ) - c = u(A(s), 9), h = _(e.p[c.p]), f = h + _(e.b[e.g[c.p].p]), r = m.Math.min(r, h), i = m.Math.max(i, f); + c = u(A(s), 9), h = B(e.p[c.p]), f = h + B(e.b[e.g[c.p].p]), r = m.Math.min(r, h), i = m.Math.max(i, f); return i - r; } - function oHe(e, n) { + function fHe(e, n) { var t, i, r, c, s; - return c = n.a, c.c.i == n.b ? s = c.d : s = c.c, c.c.i == n.b ? i = c.c : i = c.d, r = hkn(e.a, s, i), r > 0 && r < _2 ? (t = bxn(e.a, i.i, r, e.c), zDe(e.a, i.i, -t), t > 0) : r < 0 && -r < _2 ? (t = wxn(e.a, i.i, -r, e.c), zDe(e.a, i.i, t), t > 0) : !1; + return c = n.a, c.c.i == n.b ? s = c.d : s = c.c, c.c.i == n.b ? i = c.c : i = c.d, r = hkn(e.a, s, i), r > 0 && r < B2 ? (t = bxn(e.a, i.i, r, e.c), WDe(e.a, i.i, -t), t > 0) : r < 0 && -r < B2 ? (t = wxn(e.a, i.i, -r, e.c), WDe(e.a, i.i, t), t > 0) : !1; } function Axn(e, n, t, i) { var r, c, s, f, h, l, a, d; @@ -21349,19 +21439,19 @@ function WDn() { var i, r, c, s, f, h, l, a; l = u(t, 149), a = Vne(e, n), c = null, i = null, a && (i = rT(e, a, n.i)), i != null ? c = i : (f = n.i, c = f), Ld(l, "x", c), s = null, r = null, a && (r = cT(e, a, n.j)), r != null ? s = r : (h = n.j, s = h), Ld(l, "y", s), Ld(l, uJ, n.g), Ld(l, cJ, n.f); } - function fHe(e) { + function hHe(e) { RR(); var n, t, i, r; - return i = Nh(e, Fu(35)), n = i == -1 ? e : (tr(0, i, e.length), e.substr(0, i)), t = i == -1 ? null : (bn(i + 1, e.length + 1), e.substr(i + 1)), r = Omn(P0e, n), r ? t != null && (r = WFe(r, (Ze(t), t))) : (r = fLn(n), Hmn(P0e, n, r), t != null && (r = WFe(r, t))), r; + return i = Nh(e, Fu(35)), n = i == -1 ? e : (tr(0, i, e.length), e.substr(0, i)), t = i == -1 ? null : (bn(i + 1, e.length + 1), e.substr(i + 1)), r = Omn(P0e, n), r ? t != null && (r = XFe(r, (Ze(t), t))) : (r = fLn(n), Hmn(P0e, n, r), t != null && (r = XFe(r, t))), r; } function Zne(e, n, t, i) { var r, c, s, f, h; for (r = Ste(e, n), f = 0, h = r.gc(); f < h; ++f) - if (c = u(r.Xb(f), 179), _e(i, hv(Wr(e, c)))) { + if (c = u(r.Xb(f), 179), Be(i, hv(Wr(e, c)))) { if (s = Ly(Wr(e, c)), t == null) { if (s == null) return c; - } else if (_e(t, s)) + } else if (Be(t, s)) return c; } return null; @@ -21369,11 +21459,11 @@ function WDn() { function ete(e, n, t, i) { var r, c, s, f, h; for (r = ER(e, n), f = 0, h = r.gc(); f < h; ++f) - if (c = u(r.Xb(f), 179), _e(i, hv(Wr(e, c)))) { + if (c = u(r.Xb(f), 179), Be(i, hv(Wr(e, c)))) { if (s = Ly(Wr(e, c)), t == null) { if (s == null) return c; - } else if (_e(t, s)) + } else if (Be(t, s)) return c; } return null; @@ -21388,7 +21478,7 @@ function WDn() { r = i[c], f.$l(r.Jk()) && (h = r.kd(), Dn(s, t ? w9(e, n, c, s.i, h) : h)); return yQ(s); } - function hHe(e) { + function lHe(e) { var n, t, i, r, c, s, f; if (e && (n = e.ni(Wo), n && (s = zn(Uf((!n.b && (n.b = new Ds((Ue(), Tr), Ic, n)), n.b), "conversionDelegates")), s != null))) { for (f = new le(), i = qw(s, "\\w+"), r = 0, c = i.length; r < c; ++r) @@ -21397,7 +21487,7 @@ function WDn() { } return ze(), ze(), $r; } - function lHe(e, n) { + function aHe(e, n) { var t, i, r, c, s, f, h, l; for (s = n == 1 ? aG : lG, c = s.a.ec().Jc(); c.Ob(); ) for (r = u(c.Pb(), 86), h = u(Mt(e.f.c, r), 22).Jc(); h.Ob(); ) @@ -21413,11 +21503,11 @@ function WDn() { } function Sxn(e, n) { var t, i, r, c, s; - for (t = new i9(K5), r = (T3(), I(T(K5, 1), ce, 231, 0, [X5, vk, W5, og, Q2, V2])), c = 0, s = r.length; c < s; ++c) + for (t = new i9(K5), r = (T3(), I(S(K5, 1), ce, 231, 0, [X5, vk, W5, og, Q2, V2])), c = 0, s = r.length; c < s; ++c) i = r[c], mK(t, i, new le()); - return fi(du(mt(cc(new Ge(null, new He(e.b, 16)), new _ge()), new Jge()), new d8e(n)), new b8e(t)), t; + return fi(du(mt(cc(new Ge(null, new He(e.b, 16)), new Jge()), new Gge()), new b8e(n)), new w8e(t)), t; } - function aHe(e, n) { + function dHe(e, n) { var t, i, r; for (t = 1; t < e.c.length; t++) { for (r = (qe(t, e.c.length), u(e.c[t], 9)), i = t; i > 0 && tj(n, (qe(i - 1, e.c.length), u(e.c[i - 1], 9)), r) > 0; ) @@ -21426,7 +21516,7 @@ function WDn() { } n.b = new Tn(), n.g = new Tn(); } - function dHe(e, n, t) { + function bHe(e, n, t) { var i, r, c; for (i = 1; i < e.c.length; i++) { for (c = (qe(i, e.c.length), u(e.c[i], 9)), r = i; r > 0 && n.Le((qe(r - 1, e.c.length), u(e.c[r - 1], 9)), c) > 0; ) @@ -21456,7 +21546,7 @@ function WDn() { function p9(e) { var n, t, i, r; if (e.e) - throw $(new qr((Gl(ZJ), IB + ZJ.k + CB))); + throw $(new qr((Gl(ZJ), I_ + ZJ.k + C_))); for (e.d == (Mi(), Th) && NT(e, Qr), t = new x(e.a.a); t.a < t.c.c.length; ) n = u(A(t), 320), n.g = n.i; for (r = new x(e.a.b); r.a < r.c.c.length; ) @@ -21466,19 +21556,19 @@ function WDn() { function Ixn(e, n) { var t, i, r, c, s, f, h, l, a; for (h = sl(e.c - e.b & e.a.length - 1), l = null, a = null, c = new S6(e); c.a != c.b; ) - r = u(MM(c), 9), t = (f = u(y(r, (te(), Qf)), 12), f ? f.i : null), i = (s = u(y(r, Vo), 12), s ? s.i : null), (l != t || a != i) && (FGe(h, n), l = t, a = i), sn(h.c, r); - FGe(h, n); + r = u(MM(c), 9), t = (f = u(y(r, (te(), Qf)), 12), f ? f.i : null), i = (s = u(y(r, Vo), 12), s ? s.i : null), (l != t || a != i) && (RGe(h, n), l = t, a = i), sn(h.c, r); + RGe(h, n); } - function bHe(e) { + function wHe(e) { switch (e.g) { case 0: return new MA((Ud(), dE)); case 1: return new MA((Ud(), wC)); case 2: - return new y9e(); + return new j9e(); case 3: - return new T9e(); + return new S9e(); default: throw $(new on("No implementation is available for the crossing minimizer " + (e.f != null ? e.f : "" + e.g))); } @@ -21495,13 +21585,13 @@ function WDn() { for (i = 0; i < e.b; i++) he(e.e, 1); } - function wHe(e, n) { + function gHe(e, n) { var t, i, r, c, s, f, h, l, a; if (l = n, a = u(sM(hD(e.o), l), 26), !a) throw r = zl(l, Zh), f = "Unable to find elk node for json object '" + r, h = f + "' Panic!", $(new Lh(h)); - c = K0(l, "edges"), t = new Txe(e, a), yGe(t.a, t.b, c), s = K0(l, fJ), i = new n7e(e), C_e(i.a, s); + c = K0(l, "edges"), t = new Sxe(e, a), jGe(t.a, t.b, c), s = K0(l, fJ), i = new t7e(e), PBe(i.a, s); } - function gHe(e, n, t, i) { + function pHe(e, n, t, i) { var r, c, s, f, h; if (i != null) { if (r = e.d[n], r) { @@ -21532,11 +21622,11 @@ function WDn() { } function Oxn(e, n, t) { var i, r, c; - if (r = u(_r(e.i, n), 318), !r) - if (r = new FDe(e.d, n, t), r3(e.i, n, r), tee(n)) + if (r = u(Br(e.i, n), 318), !r) + if (r = new RDe(e.d, n, t), r3(e.i, n, r), tee(n)) Z1n(e.a, n.c, n.b, r); else - switch (c = TEn(n), i = u(_r(e.p, c), 253), c.g) { + switch (c = TEn(n), i = u(Br(e.p, c), 253), c.g) { case 1: case 3: r.j = !0, hO(i, n.b, r); @@ -21557,36 +21647,36 @@ function WDn() { c = r[s], h.$l(c.Jk()) && (l = c.kd(), Dn(f, i ? w9(e, n, s, f.i, l) : l)); return VZ(f, t); } - function pHe(e, n) { + function mHe(e, n) { var t, i, r, c, s, f, h, l; if (r = e.b[n.p], r >= 0) return r; for (c = 1, f = new x(n.j); f.a < f.c.c.length; ) for (s = u(A(f), 12), i = new x(s.g); i.a < i.c.c.length; ) - t = u(A(i), 17), l = t.d.i, n != l && (h = pHe(e, l), c = m.Math.max(c, h + 1)); + t = u(A(i), 17), l = t.d.i, n != l && (h = mHe(e, l), c = m.Math.max(c, h + 1)); return V9n(e, n, c), c; } - function mHe(e, n) { + function vHe(e, n) { var t, i, r, c, s, f, h, l; if (r = e.b[n.p], r >= 0) return r; for (c = 1, f = new x(n.j); f.a < f.c.c.length; ) for (s = u(A(f), 12), i = new x(s.e); i.a < i.c.c.length; ) - t = u(A(i), 17), l = t.c.i, n != l && (h = mHe(e, l), c = m.Math.max(c, h + 1)); + t = u(A(i), 17), l = t.c.i, n != l && (h = vHe(e, l), c = m.Math.max(c, h + 1)); return I8n(e, n, c), c; } function Dxn(e) { var n, t, i, r; for (r = e.length, n = null, i = 0; i < r; i++) - t = (bn(i, e.length), e.charCodeAt(i)), Nh(".*+?{[()|\\^$", Fu(t)) >= 0 ? (n || (n = new B4(), i > 0 && Br(n, (tr(0, i, e.length), e.substr(0, i)))), n.a += "\\", sv(n, t & Ti)) : n && sv(n, t & Ti); + t = (bn(i, e.length), e.charCodeAt(i)), Nh(".*+?{[()|\\^$", Fu(t)) >= 0 ? (n || (n = new _4(), i > 0 && _r(n, (tr(0, i, e.length), e.substr(0, i)))), n.a += "\\", sv(n, t & Ti)) : n && sv(n, t & Ti); return n ? n.a : e; } function Nxn(e) { var n, t, i; for (t = new x(e.a.a.b); t.a < t.c.c.length; ) - n = u(A(t), 82), i = (Ze(0), 0), i > 0 && (!(_l(e.a.c) && n.n.d) && !(n2(e.a.c) && n.n.b) && (n.g.d -= m.Math.max(0, i / 2 - 0.5)), !(_l(e.a.c) && n.n.a) && !(n2(e.a.c) && n.n.c) && (n.g.a += m.Math.max(0, i - 1))); + n = u(A(t), 82), i = (Ze(0), 0), i > 0 && (!(Bl(e.a.c) && n.n.d) && !(n2(e.a.c) && n.n.b) && (n.g.d -= m.Math.max(0, i / 2 - 0.5)), !(Bl(e.a.c) && n.n.a) && !(n2(e.a.c) && n.n.c) && (n.g.a += m.Math.max(0, i - 1))); } - function vHe(e, n, t) { + function kHe(e, n, t) { var i, r; if ((e.c - e.b & e.a.length - 1) == 2) n == (be(), ln) || n == gn ? (Z$(u(z6(e), 16), (Zs(), Tl)), Z$(u(z6(e), 16), hd)) : (Z$(u(z6(e), 16), (Zs(), hd)), Z$(u(z6(e), 16), Tl)); @@ -21597,9 +21687,9 @@ function WDn() { function Fxn(e, n, t) { var i, r, c, s, f, h, l, a, d; for (a = -1, d = 0, f = n, h = 0, l = f.length; h < l; ++h) { - for (s = f[h], i = new RIe(e, a == -1 ? n[0] : n[a], t, (V6(), lC)), r = 0; r < s.length; r++) + for (s = f[h], i = new _Ie(e, a == -1 ? n[0] : n[a], t, (V6(), lC)), r = 0; r < s.length; r++) for (c = r + 1; c < s.length; c++) - Et(s[r], (te(), _t)) && Et(s[c], _t) && tj(i, s[r], s[c]) > 0 && ++d; + Et(s[r], (te(), Bt)) && Et(s[c], Bt) && tj(i, s[r], s[c]) > 0 && ++d; ++a; } return d; @@ -21610,21 +21700,21 @@ function WDn() { s = t; return s; } - function Bxn(e, n) { + function _xn(e, n) { var t, i, r, c; for (n.Tg("Self-Loop pre-processing", 1), i = new x(e.a); i.a < i.c.c.length; ) - t = u(A(i), 9), J9n(t) && (r = (c = new ABe(t), K(t, (te(), Pb), c), uSn(c), c), fi(du(cc(new Ge(null, new He(r.d, 16)), new T2e()), new S2e()), new I2e()), tMn(r)); + t = u(A(i), 9), J9n(t) && (r = (c = new x_e(t), K(t, (te(), Pb), c), uSn(c), c), fi(du(cc(new Ge(null, new He(r.d, 16)), new S2e()), new I2e()), new C2e()), tMn(r)); n.Ug(); } - function kHe(e, n, t) { + function yHe(e, n, t) { var i, r, c, s; - oPe(e, n) > oPe(e, t) ? (i = wc(t, (be(), gn)), e.d = i.dc() ? 0 : JL(u(i.Xb(0), 12)), s = wc(n, an), e.b = s.dc() ? 0 : JL(u(s.Xb(0), 12))) : (r = wc(t, (be(), an)), e.d = r.dc() ? 0 : JL(u(r.Xb(0), 12)), c = wc(n, gn), e.b = c.dc() ? 0 : JL(u(c.Xb(0), 12))); + fPe(e, n) > fPe(e, t) ? (i = wc(t, (be(), gn)), e.d = i.dc() ? 0 : JL(u(i.Xb(0), 12)), s = wc(n, an), e.b = s.dc() ? 0 : JL(u(s.Xb(0), 12))) : (r = wc(t, (be(), an)), e.d = r.dc() ? 0 : JL(u(r.Xb(0), 12)), c = wc(n, gn), e.b = c.dc() ? 0 : JL(u(c.Xb(0), 12))); } - function _xn(e) { + function Bxn(e) { var n, t, i, r, c, s, f, h; n = !0, r = null, c = null; e: for (h = new x(e.a); h.a < h.c.c.length; ) - for (f = u(A(h), 9), i = new fn(dn(bi(f).a.Jc(), new Q())); xn(i); ) { + for (f = u(A(h), 9), i = new fn(dn(bi(f).a.Jc(), new Y())); xn(i); ) { if (t = u(pn(i), 17), r && r != f) { n = !1; break e; @@ -21641,16 +21731,16 @@ function WDn() { var i, r, c, s, f, h, l, a; for (a = (i = u(n.e && n.e(), 10), new wo(i, u(af(i, i.length), 10), 0)), h = qw(t, "[\\[\\]\\s,]+"), c = h, s = 0, f = c.length; s < f; ++s) if (r = c[s], Rw(r).length != 0) { - if (l = jGe(e, r), l == null) + if (l = EGe(e, r), l == null) return null; mf(a, u(l, 23)); } return a; } - function yHe(e, n) { + function jHe(e, n) { var t, i, r, c; for (t = e.o.a, c = u(u(Mt(e.r, n), 22), 83).Jc(); c.Ob(); ) - r = u(c.Pb(), 115), r.e.a = t * _(H(r.b.mf(iI))), r.e.b = (i = r.b, i.nf((tt(), Ss)) ? i.$f() == (be(), ln) ? -i.Kf().b - _(H(i.mf(Ss))) : _(H(i.mf(Ss))) : i.$f() == (be(), ln) ? -i.Kf().b : 0); + r = u(c.Pb(), 115), r.e.a = t * B(H(r.b.mf(iI))), r.e.b = (i = r.b, i.nf((tt(), Ss)) ? i.$f() == (be(), ln) ? -i.Kf().b - B(H(i.mf(Ss))) : B(H(i.mf(Ss))) : i.$f() == (be(), ln) ? -i.Kf().b : 0); } function Gxn(e, n, t) { var i, r, c, s, f, h; @@ -21678,9 +21768,9 @@ function WDn() { function Hxn(e) { var n, t, i, r, c, s, f; for (n = 0, r = new x(e.e); r.a < r.c.c.length; ) - i = u(A(r), 17), t = a2(new Ge(null, new He(i.b, 16)), new rge()), t && ++n; + i = u(A(r), 17), t = a2(new Ge(null, new He(i.b, 16)), new cge()), t && ++n; for (s = new x(e.g); s.a < s.c.c.length; ) - c = u(A(s), 17), f = a2(new Ge(null, new He(c.b, 16)), new cge()), f && ++n; + c = u(A(s), 17), f = a2(new Ge(null, new He(c.b, 16)), new uge()), f && ++n; return n >= 2; } function qxn(e, n, t, i, r) { @@ -21690,14 +21780,14 @@ function WDn() { rt(i, (An(t.b != 0), u(t.c.b.c, 8))); } function Uxn(e) { - _w(); + Bw(); var n, t, i; - return t = Rt(uo, I(T(Fr, 1), ce, 96, 0, [Cf])), !(h7(y$(t, e)) > 1 || (n = Rt(Sf, I(T(Fr, 1), ce, 96, 0, [da, If])), h7(y$(n, e)) > 1) || (i = Rt(Pf, I(T(Fr, 1), ce, 96, 0, [Sl, Yo])), h7(y$(i, e)) > 1)); + return t = Rt(uo, I(S(Fr, 1), ce, 96, 0, [Cf])), !(h7(y$(t, e)) > 1 || (n = Rt(Sf, I(S(Fr, 1), ce, 96, 0, [da, If])), h7(y$(n, e)) > 1) || (i = Rt(Pf, I(S(Fr, 1), ce, 96, 0, [Sl, Yo])), h7(y$(i, e)) > 1)); } - function jHe(e) { + function EHe(e) { var n, t, i, r, c, s, f; for (n = 0, i = new x(e.a); i.a < i.c.c.length; ) - for (t = u(A(i), 9), c = new fn(dn(Ht(t).a.Jc(), new Q())); xn(c); ) + for (t = u(A(i), 9), c = new fn(dn(Ht(t).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), e == r.d.i.c && r.c.j == (be(), an) && (s = oh(r.c).b, f = oh(r.d).b, n = m.Math.max(n, m.Math.abs(f - s))); return n; } @@ -21731,22 +21821,22 @@ function WDn() { return Dn(e, n); } function cn() { - cn = G, si = new Gp("NORMAL", 0), yi = new Gp("LONG_EDGE", 1), Ai = new Gp("EXTERNAL_PORT", 2), su = new Gp("NORTH_SOUTH_PORT", 3), _c = new Gp("LABEL", 4), Eh = new Gp("BREAKING_POINT", 5), Uj = new Gp("PLACEHOLDER", 6), pk = new Gp("NONSHIFTING_PLACEHOLDER", 7); + cn = G, si = new Gp("NORMAL", 0), yi = new Gp("LONG_EDGE", 1), Ai = new Gp("EXTERNAL_PORT", 2), su = new Gp("NORTH_SOUTH_PORT", 3), Bc = new Gp("LABEL", 4), Eh = new Gp("BREAKING_POINT", 5), Uj = new Gp("PLACEHOLDER", 6), pk = new Gp("NONSHIFTING_PLACEHOLDER", 7); } function Wxn(e, n, t, i) { var r, c, s, f; - for (r = new dh(e), Nl(r, (cn(), _c)), K(r, (te(), $t), n), K(r, xk, i), K(r, (ae(), oi), (Ui(), Vc)), K(r, Qf, n.c), K(r, Vo, n.d), bR(n, r), f = m.Math.floor(t / 2), s = new x(r.j); s.a < s.c.c.length; ) + for (r = new dh(e), Nl(r, (cn(), Bc)), K(r, (te(), $t), n), K(r, xk, i), K(r, (ae(), oi), (Ui(), Vc)), K(r, Qf, n.c), K(r, Vo, n.d), bR(n, r), f = m.Math.floor(t / 2), s = new x(r.j); s.a < s.c.c.length; ) c = u(A(s), 12), c.n.b = f; return r; } function H7() { - H7 = G, NG = new Xg(Yie, 0), cfe = new Xg(vXe, 1), RG = new Xg(HB, 2), BG = new Xg(RB, 3), FG = new Xg("GREEDY_MODEL_ORDER", 4), _G = new Xg("SCC_CONNECTIVITY", 5), Vj = new Xg("SCC_NODE_TYPE", 6), DG = new Xg("DFS_NODE_ORDER", 7), LG = new Xg("BFS_NODE_ORDER", 8); + H7 = G, NG = new Xg(Yie, 0), cfe = new Xg(kXe, 1), RG = new Xg(H_, 2), _G = new Xg(R_, 3), FG = new Xg("GREEDY_MODEL_ORDER", 4), BG = new Xg("SCC_CONNECTIVITY", 5), Vj = new Xg("SCC_NODE_TYPE", 6), DG = new Xg("DFS_NODE_ORDER", 7), LG = new Xg("BFS_NODE_ORDER", 8); } - function EHe(e, n, t) { + function AHe(e, n, t) { var i, r, c, s, f; - for (t.Tg("ELK Force", 1), ve(me(re(n, (jf(), Gse)))) || Ry((i = new S4((xd(), new b1(n))), i)), f = xFe(n), Cyn(f), d6n(e, u(y(f, Jse), 424)), s = pUe(e.a, f), c = s.Jc(); c.Ob(); ) + for (t.Tg("ELK Force", 1), ve(me(re(n, (jf(), Gse)))) || Ry((i = new S4((xd(), new b1(n))), i)), f = $Fe(n), Cyn(f), d6n(e, u(y(f, Jse), 424)), s = mUe(e.a, f), c = s.Jc(); c.Ob(); ) r = u(c.Pb(), 235), LSn(e.b, r, t.dh(1 / s.gc())); - f = Sze(s), Rze(f), t.Ug(); + f = Ize(s), _ze(f), t.Ug(); } function ite(e, n, t) { switch (t.g) { @@ -21767,7 +21857,7 @@ function WDn() { for (r = new x(e.b); r.a < r.c.c.length; ) for (i = u(A(r), 25), t = 0, s = new x(i.a); s.a < s.c.c.length; ) c = u(A(s), 9), c.p = t++; - jIn(e), JHe(e, !0), JHe(e, !1); + jIn(e), GHe(e, !0), GHe(e, !1); } n.Ug(); } @@ -21787,12 +21877,12 @@ function WDn() { var n, t, i, r; if (e == null) return null; - if (i = cu(e, !0), r = Rj.length, _e(i.substr(i.length - r, r), Rj)) { + if (i = cu(e, !0), r = Rj.length, Be(i.substr(i.length - r, r), Rj)) { if (t = i.length, t == 4) { if (n = (bn(0, i.length), i.charCodeAt(0)), n == 43) return Y0e; if (n == 45) - return dfn; + return bfn; } else if (t == 3) return Y0e; } @@ -21804,27 +21894,27 @@ function WDn() { f = h[l], !Yp(u(y(f, (ae(), oi)), 102)) && (s = f.e, g = !wc(f, d).dc() && !!s, g && (c = Xee(s), e.b = new Vee(c, i ? 0 : c.length - 1)), r = r | FMn(e, f, d, g)); return r; } - function AHe(e, n, t, i) { + function xHe(e, n, t, i) { var r, c, s; if (s = Ree(n, t), sn(i.c, n), e.j[s.p] == -1 || e.j[s.p] == 2 || e.a[n.p]) return i; - for (e.j[s.p] = -1, c = new fn(dn(Jh(s).a.Jc(), new Q())); xn(c); ) + for (e.j[s.p] = -1, c = new fn(dn(Jh(s).a.Jc(), new Y())); xn(c); ) if (r = u(pn(c), 17), !(!(!hr(r) && !(!hr(r) && r.c.i.c == r.d.i.c)) || r == n)) - return AHe(e, r, s, i); + return xHe(e, r, s, i); return i; } function Qxn(e) { var n, t, i, r; for (n = 0, t = 0, r = new x(e.j); r.a < r.c.c.length; ) - if (i = u(A(r), 12), n = Xn(yr(n, VOe(mt(new Ge(null, new He(i.e, 16)), new P3e())))), t = Xn(yr(t, VOe(mt(new Ge(null, new He(i.g, 16)), new O3e())))), n > 1 || t > 1) + if (i = u(A(r), 12), n = Xn(yr(n, QOe(mt(new Ge(null, new He(i.e, 16)), new O3e())))), t = Xn(yr(t, QOe(mt(new Ge(null, new He(i.g, 16)), new L3e())))), n > 1 || t > 1) return 2; return n + t == 1 ? 2 : 0; } function $s(e, n) { var t, i, r, c, s, f; - return c = e.a * $B + e.b * 1502, f = e.b * $B + 11, t = m.Math.floor(f * bj), c += t, f -= t * Iie, c %= Iie, e.a = c, e.b = f, n <= 24 ? m.Math.floor(e.a * Sse[n]) : (r = e.a * (1 << n - 24), s = m.Math.floor(e.b * Ise[n]), i = r + s, i >= 2147483648 && (i -= 4294967296), i); + return c = e.a * $_ + e.b * 1502, f = e.b * $_ + 11, t = m.Math.floor(f * bj), c += t, f -= t * Iie, c %= Iie, e.a = c, e.b = f, n <= 24 ? m.Math.floor(e.a * Sse[n]) : (r = e.a * (1 << n - 24), s = m.Math.floor(e.b * Ise[n]), i = r + s, i >= 2147483648 && (i -= 4294967296), i); } - function xHe(e, n, t) { + function $He(e, n, t) { var i, r, c, s, f, h, l; for (c = new le(), l = new Dt(), s = new Dt(), lIn(e, l, s, n), zCn(e, l, s, n, t), h = new x(e); h.a < h.c.c.length; ) for (f = u(A(h), 116), r = new x(f.k); r.a < r.c.c.length; ) @@ -21834,7 +21924,7 @@ function WDn() { function Yxn(e, n, t) { var i, r, c, s, f, h; for (f = e.c, s = (t.q ? t.q : (ze(), ze(), El)).vc().Jc(); s.Ob(); ) - c = u(s.Pb(), 45), i = !Hm(mt(new Ge(null, new He(f, 16)), new Dm(new dxe(n, c)))).zd((Ad(), V3)), i && (h = c.kd(), N(h, 4) && (r = ree(h), r != null && (h = r)), n.of(u(c.jd(), 147), h)); + c = u(s.Pb(), 45), i = !Hm(mt(new Ge(null, new He(f, 16)), new Dm(new bxe(n, c)))).zd((Ad(), V3)), i && (h = c.kd(), N(h, 4) && (r = ree(h), r != null && (h = r)), n.of(u(c.jd(), 147), h)); } function Zxn(e, n) { var t, i, r, c; @@ -21853,7 +21943,7 @@ function WDn() { } function n$n(e, n, t) { var i, r; - if (Oy(e.b), Bf(e.b, (E7(), LC), (U4(), EE)), Bf(e.b, DC, n.g), Bf(e.b, NC, n.a), e.a = Z7(e.b, n), t.Tg("Compaction by shrinking a tree", e.a.c.length), n.i.c.length > 1) + if (Oy(e.b), _f(e.b, (E7(), LC), (U4(), EE)), _f(e.b, DC, n.g), _f(e.b, NC, n.a), e.a = Z7(e.b, n), t.Tg("Compaction by shrinking a tree", e.a.c.length), n.i.c.length > 1) for (r = new x(e.a); r.a < r.c.c.length; ) i = u(A(r), 43), i.If(n, t.dh(1)); t.Ug(); @@ -21913,20 +22003,20 @@ function WDn() { } function r$n(e, n) { var t, i, r, c, s; - for (t = new le(), r = cc(new Ge(null, new He(e, 16)), new Q3e()), c = cc(new Ge(null, new He(e, 16)), new Y3e()), s = Xvn(wvn(pw(w$n(I(T(PLn, 1), Ve, 832, 0, [r, c])), new Z3e()))), i = 1; i < s.length; i++) + for (t = new le(), r = cc(new Ge(null, new He(e, 16)), new Y3e()), c = cc(new Ge(null, new He(e, 16)), new Z3e()), s = Xvn(wvn(pw(w$n(I(S(PLn, 1), Ve, 832, 0, [r, c])), new eme()))), i = 1; i < s.length; i++) s[i] - s[i - 1] >= 2 * n && he(t, new NL(s[i - 1] + n, s[i] - n)); return t; } - function $He(e, n, t) { + function MHe(e, n, t) { var i, r, c, s, f, h, l, a; if (t) for (c = t.a.length, i = new Sd(c), f = (i.b - i.a) * i.c < 0 ? (v1(), md) : new j1(i); f.Ob(); ) - s = u(f.Pb(), 15), r = bv(t, s.a), r && (h = ymn(e, (l = (p1(), a = new iW(), a), n && cte(l, n), l), r), jv(h, zl(r, Zh)), sT(r, h), Mne(r, h), BN(e, r, h)); + s = u(f.Pb(), 15), r = bv(t, s.a), r && (h = ymn(e, (l = (p1(), a = new iW(), a), n && cte(l, n), l), r), jv(h, zl(r, Zh)), sT(r, h), Mne(r, h), _N(e, r, h)); } function mT(e) { var n, t, i, r, c, s; if (!e.j) { - if (s = new G5e(), n = x8, c = n.a.yc(e, n), c == null) { + if (s = new H5e(), n = x8, c = n.a.yc(e, n), c == null) { for (i = new kn(Zr(e)); i.e != i.i.gc(); ) t = u(En(i), 29), r = mT(t), hi(s, r), Dn(s, t); n.a.Ac(e) != null; @@ -21939,12 +22029,12 @@ function WDn() { var n, t, i, r; if (e == null) return null; - if (i = cu(e, !0), r = Rj.length, _e(i.substr(i.length - r, r), Rj)) { + if (i = cu(e, !0), r = Rj.length, Be(i.substr(i.length - r, r), Rj)) { if (t = i.length, t == 4) { if (n = (bn(0, i.length), i.charCodeAt(0)), n == 43) return Z0e; if (n == 45) - return bfn; + return wfn; } else if (t == 3) return Z0e; } @@ -21981,7 +22071,7 @@ function WDn() { for (c = new Vi(e, 0), t = (An(c.b < c.d.gc()), u(c.d.Xb(c.c = c.b++), 146)); c.b < c.d.gc(); ) i = (An(c.b < c.d.gc()), u(c.d.Xb(c.c = c.b++), 146)), r = new UK(i.c, t.d, n), An(c.b > 0), c.a.Xb(c.c = --c.b), fw(c, r), An(c.b < c.d.gc()), c.d.Xb(c.c = c.b++), r.a = !1, t = i; } - function MHe(e) { + function THe(e) { var n, t, i, r, c, s; for (r = u(y(e, (te(), JI)), 12), s = new x(e.j); s.a < s.c.c.length; ) { for (c = u(A(s), 12), i = new x(c.g); i.a < i.c.c.length; ) @@ -21991,9 +22081,9 @@ function WDn() { } return null; } - function THe(e, n, t) { + function SHe(e, n, t) { var i, r, c, s, f, h; - for (h = u(uw(e.a, n), 15).a, t ? Kee(e.a, ie(h + 1), n) : Kee(e.a, ie(h - 1), n), s = new ul(), r = new fn(dn((t ? Ht(n) : bi(n)).a.Jc(), new Q())); xn(r); ) + for (h = u(uw(e.a, n), 15).a, t ? Kee(e.a, ie(h + 1), n) : Kee(e.a, ie(h - 1), n), s = new ul(), r = new fn(dn((t ? Ht(n) : bi(n)).a.Jc(), new Y())); xn(r); ) i = u(pn(r), 17), t ? c = i.d.i : c = i.c.i, z(uw(e.a, c)) === z(uw(e.a, n)) && (f = s.a.yc(c, s), f == null); return s; } @@ -22013,18 +22103,18 @@ function WDn() { } function l$n(e) { var n, t; - for (t = 0; t < e.c.length && !(tSe((qe(t, e.c.length), u(e.c[t], 113))) > 0); t++) + for (t = 0; t < e.c.length && !(iSe((qe(t, e.c.length), u(e.c[t], 113))) > 0); t++) ; if (t > 0 && t < e.c.length - 1) return t; - for (n = 0; n < e.c.length && !(tSe((qe(n, e.c.length), u(e.c[n], 113))) > 0); n++) + for (n = 0; n < e.c.length && !(iSe((qe(n, e.c.length), u(e.c[n], 113))) > 0); n++) ; return n > 0 && t < e.c.length - 1 ? n : e.c.length / 2 | 0; } - function SHe(e, n) { + function IHe(e, n) { var t, i, r, c, s, f, h; for (r = 0, s = new x(n.a); s.a < s.c.c.length; ) - for (c = u(A(s), 9), r += c.o.b + c.d.a + c.d.d + e.e, i = new fn(dn(bi(c).a.Jc(), new Q())); xn(i); ) + for (c = u(A(s), 9), r += c.o.b + c.d.a + c.d.d + e.e, i = new fn(dn(bi(c).a.Jc(), new Y())); xn(i); ) t = u(pn(i), 17), t.c.i.k == (cn(), su) && (h = t.c.i, f = u(y(h, (te(), $t)), 9), r += f.o.b + f.d.a + f.d.d); return r; } @@ -22032,26 +22122,26 @@ function WDn() { var t, i, r, c; n.Tg("Min Size Preprocessing", 1), i = jne(e), Qt(e) && (t = (xd(), new b1(Qt(e))), c = new Ix(Qt(e) ? new b1(Qt(e)) : null, e), r = fie(t, c, !1, !0), i.a = m.Math.max(i.a, r.a), i.b = m.Math.max(i.b, r.b)), Pt(e, (gl(), n8), i.a), Pt(e, CC, i.b), n.Ug(); } - function IHe(e, n) { + function CHe(e, n) { var t, i; if (n != e.Cb || e.Db >> 16 != 6 && n) { - if (Uv(e, n)) throw $(new on(Y9 + JGe(e))); + if (Uv(e, n)) throw $(new on(Y9 + GGe(e))); i = null, e.Cb && (i = (t = e.Db >> 16, t >= 0 ? $ee(e, i) : e.Cb.Qh(e, -1 - t, null, i))), n && (i = x3(n, e, 6, i)), i = dK(e, n, i), i && i.mj(); - } else (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 6, n, n)); + } else (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 6, n, n)); } function vT(e, n) { var t, i; if (n != e.Cb || e.Db >> 16 != 3 && n) { - if (Uv(e, n)) throw $(new on(Y9 + CUe(e))); + if (Uv(e, n)) throw $(new on(Y9 + PUe(e))); i = null, e.Cb && (i = (t = e.Db >> 16, t >= 0 ? Iee(e, i) : e.Cb.Qh(e, -1 - t, null, i))), n && (i = x3(n, e, 12, i)), i = aK(e, n, i), i && i.mj(); - } else (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 3, n, n)); + } else (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 3, n, n)); } function cte(e, n) { var t, i; if (n != e.Cb || e.Db >> 16 != 9 && n) { - if (Uv(e, n)) throw $(new on(Y9 + Tqe(e))); + if (Uv(e, n)) throw $(new on(Y9 + Sqe(e))); i = null, e.Cb && (i = (t = e.Db >> 16, t >= 0 ? Tee(e, i) : e.Cb.Qh(e, -1 - t, null, i))), n && (i = x3(n, e, 9, i)), i = bK(e, n, i), i && i.mj(); - } else (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 9, n, n)); + } else (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 9, n, n)); } function Zv(e) { var n, t, i, r, c; @@ -22073,7 +22163,7 @@ function WDn() { } return null; } - function CHe(e) { + function PHe(e) { var n; return n = new le(), he(n, new Jp(new ue(e.c, e.d), new ue(e.c + e.b, e.d))), he(n, new Jp(new ue(e.c, e.d), new ue(e.c, e.d + e.a))), he(n, new Jp(new ue(e.c + e.b, e.d + e.a), new ue(e.c + e.b, e.d))), he(n, new Jp(new ue(e.c + e.b, e.d + e.a), new ue(e.c, e.d + e.a))), n; } @@ -22086,7 +22176,7 @@ function WDn() { function b$n(e) { var n, t, i; if (e == null) - return Bu; + return _u; try { return uc(e); } catch (r) { @@ -22097,19 +22187,19 @@ function WDn() { } function w$n(e) { var n, t, i, r, c, s, f, h, l; - for (i = !1, n = 336, t = 0, c = new WMe(e.length), f = e, h = 0, l = f.length; h < l; ++h) + for (i = !1, n = 336, t = 0, c = new XMe(e.length), f = e, h = 0, l = f.length; h < l; ++h) s = f[h], i = i | (N1(s), !1), r = (A1(s), s.a), he(c.a, Jn(r)), n &= r.wd(), t = O6n(t, r.xd()); - return u(u(eIe(new Ge(null, KF(new He(cee(c.a), 16), new ye(), n, t)), new kke(e)), 677), 832); + return u(u(nIe(new Ge(null, KF(new He(cee(c.a), 16), new ke(), n, t)), new yke(e)), 677), 832); } function g$n(e, n, t, i) { var r, c, s, f; - r = uBe(e, n, t), c = uBe(e, t, n), s = u(rn(e.c, n), 116), f = u(rn(e.c, t), 116), r < c ? new Dd((Jf(), jg), s, f, c - r) : c < r ? new Dd((Jf(), jg), f, s, r - c) : (r != 0 || !(!n.i || !t.i) && i[n.i.c][t.i.c]) && (new Dd((Jf(), jg), s, f, 0), new Dd(jg, f, s, 0)); + r = s_e(e, n, t), c = s_e(e, t, n), s = u(rn(e.c, n), 116), f = u(rn(e.c, t), 116), r < c ? new Dd((Jf(), jg), s, f, c - r) : c < r ? new Dd((Jf(), jg), f, s, r - c) : (r != 0 || !(!n.i || !t.i) && i[n.i.c][t.i.c]) && (new Dd((Jf(), jg), s, f, 0), new Dd(jg, f, s, 0)); } function p$n(e, n, t) { var i, r, c, s, f; for (t.Tg("Breaking Point Removing", 1), e.a = u(y(n, (ae(), la)), 222), c = new x(n.b); c.a < c.c.c.length; ) for (r = u(A(c), 25), f = new x(Nd(r.a)); f.a < f.c.c.length; ) - s = u(A(f), 9), LDe(s) && (i = u(y(s, (te(), Sb)), 317), !i.d && kze(e, i)); + s = u(A(f), 9), DDe(s) && (i = u(y(s, (te(), Sb)), 317), !i.d && yze(e, i)); t.Ug(); } function m9() { @@ -22118,7 +22208,7 @@ function WDn() { function m$n(e) { var n, t, i, r; for (i = new Tw(new Ub(e.b).a); i.b; ) - t = v2(i), r = u(t.jd(), 12), n = u(t.kd(), 9), K(n, (te(), $t), r), K(r, ds, n), K(r, nE, (en(), !0)), Oi(r, u(y(n, Sc), 64)), y(n, Sc), K(r.i, (ae(), oi), (Ui(), v4)), u(y(_i(r.i), ou), 22).Ec((Pr(), Z5)); + t = v2(i), r = u(t.jd(), 12), n = u(t.kd(), 9), K(n, (te(), $t), r), K(r, ds, n), K(r, nE, (en(), !0)), Oi(r, u(y(n, Sc), 64)), y(n, Sc), K(r.i, (ae(), oi), (Ui(), v4)), u(y(Bi(r.i), ou), 22).Ec((Pr(), Z5)); } function v$n(e) { var n, t, i, r, c, s, f; @@ -22133,7 +22223,7 @@ function WDn() { if (n != e.Cb || e.Db >> 16 != 11 && n) { if (Uv(e, n)) throw $(new on(Y9 + $te(e))); i = null, e.Cb && (i = (t = e.Db >> 16, t >= 0 ? Cee(e, i) : e.Cb.Qh(e, -1 - t, null, i))), n && (i = x3(n, e, 10, i)), i = TK(e, n, i), i && i.mj(); - } else (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 11, n, n)); + } else (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 11, n, n)); } function k$n(e, n, t) { var i, r, c, s, f, h; @@ -22175,14 +22265,14 @@ function WDn() { return null; } } - function PHe(e, n, t) { + function OHe(e, n, t) { return e5(), SN(e, n) && SN(e, t) ? !1 : HR(new ue(e.c, e.d), new ue(e.c + e.b, e.d), n, t) || HR(new ue(e.c + e.b, e.d), new ue(e.c + e.b, e.d + e.a), n, t) || HR(new ue(e.c + e.b, e.d + e.a), new ue(e.c, e.d + e.a), n, t) || HR(new ue(e.c, e.d + e.a), new ue(e.c, e.d), n, t); } function ute(e, n) { var t, i, r, c; if (!e.dc()) { for (t = 0, i = e.gc(); t < i; ++t) - if (c = zn(e.Xb(t)), c == null ? n == null : _e(c.substr(0, 3), "!##") ? n != null && (r = n.length, !_e(c.substr(c.length - r, r), n) || c.length != n.length + 3) && !_e(u0, n) : _e(c, EJ) && !_e(u0, n) || _e(c, n)) + if (c = zn(e.Xb(t)), c == null ? n == null : Be(c.substr(0, 3), "!##") ? n != null && (r = n.length, !Be(c.substr(c.length - r, r), n) || c.length != n.length + 3) && !Be(u0, n) : Be(c, EJ) && !Be(u0, n) || Be(c, n)) return !0; } return !1; @@ -22190,7 +22280,7 @@ function WDn() { function E$n(e, n, t, i) { var r, c, s, f, h, l; for (s = e.j.c.length, h = W(DLn, Fie, 318, s, 0, 1), f = 0; f < s; f++) - c = u(pe(e.j, f), 12), c.p = f, h[f] = LAn(YGe(c), t, i); + c = u(pe(e.j, f), 12), c.p = f, h[f] = LAn(ZGe(c), t, i); for (K$n(e, h, t, n, i), l = new Tn(), r = 0; r < h.length; r++) h[r] && ht(l, u(pe(e.j, r), 12), h[r]); l.f.c + l.i.c != 0 && (K(e, (te(), Ak), l), cEn(e, h)); @@ -22216,8 +22306,8 @@ function WDn() { function x$n(e, n, t) { var i, r, c; for (t.Tg("Processor determine the height for each level", 1), e.a = n.b.b == 0 ? 1 : n.b.b, r = null, i = Nn(n.b, 0); !r && i.b != i.d.c; ) - c = u(Ln(i), 40), ve(me(y(c, (Bt(), od)))) && (r = c); - r && yUe(e, wf(I(T(yC, 1), kS, 40, 0, [r])), t, u(y(n, (Ac(), Fb)), 86)), t.Ug(); + c = u(Ln(i), 40), ve(me(y(c, (_t(), od)))) && (r = c); + r && jUe(e, wf(I(S(yC, 1), kS, 40, 0, [r])), t, u(y(n, (Ac(), Fb)), 86)), t.Ug(); } function $$n(e) { var n, t, i, r, c, s; @@ -22232,7 +22322,7 @@ function WDn() { function T$n(e, n) { var t, i, r, c, s, f, h, l, a, d; if (++e.e, h = e.d == null ? 0 : e.d.length, n > h) { - for (a = e.d, e.d = W(A0e, Bue, 67, 2 * h + 4, 0, 1), c = 0; c < h; ++c) + for (a = e.d, e.d = W(A0e, _ue, 67, 2 * h + 4, 0, 1), c = 0; c < h; ++c) if (l = a[c], l) for (i = l.g, d = l.i, f = 0; f < d; ++f) r = u(i[f], 136), s = wK(e, r.yi()), t = e.d[s], !t && (t = e.d[s] = e.bk()), t.Ec(r); @@ -22254,7 +22344,7 @@ function WDn() { throw $(new on(Fj)); e9(e, n, t); } - function OHe(e, n) { + function LHe(e, n) { var t, i, r, c, s, f; for (t = u(y(n, (te(), fa)), 22), s = u(Mt((WR(), Nt), t), 22), f = u(Mt(st, t), 22), c = s.Jc(); c.Ob(); ) if (i = u(c.Pb(), 22), !u(Mt(e.b, i), 16).dc()) @@ -22265,12 +22355,12 @@ function WDn() { return !0; } function I$n(e, n, t) { - e.d = 0, e.b = 0, n.k == (cn(), su) && t.k == su && u(y(n, (te(), $t)), 9) == u(y(t, $t), 9) && (cN(n).j == (be(), ln) ? kHe(e, n, t) : kHe(e, t, n)), n.k == su && t.k == yi ? cN(n).j == (be(), ln) ? e.d = 1 : e.b = 1 : t.k == su && n.k == yi && (cN(t).j == (be(), ln) ? e.b = 1 : e.d = 1), R8n(e, n, t); + e.d = 0, e.b = 0, n.k == (cn(), su) && t.k == su && u(y(n, (te(), $t)), 9) == u(y(t, $t), 9) && (cN(n).j == (be(), ln) ? yHe(e, n, t) : yHe(e, t, n)), n.k == su && t.k == yi ? cN(n).j == (be(), ln) ? e.d = 1 : e.b = 1 : t.k == su && n.k == yi && (cN(t).j == (be(), ln) ? e.b = 1 : e.d = 1), R8n(e, n, t); } function ste(e, n) { var t, i, r, c, s, f, h, l, a; if (e.a.c.length == 1) - return IJe(u(pe(e.a, 0), 173), n); + return CJe(u(pe(e.a, 0), 173), n); for (s = n9n(e), h = 0, l = e.d, c = s, a = e.d, f = (l - c) / 2 + c; c + 1 < l; ) { for (h = 0, i = new x(e.a); i.a < i.c.c.length; ) t = u(A(i), 173), h += (r = M9(t, f, !1), r.a); @@ -22286,22 +22376,22 @@ function WDn() { for (r = u(n, 343), c = (!e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), e.o), i = r.fh().c.Jc(); i.e != i.i.gc(); ) t = u(i.Wj(), 45), s = t.kd(), O7(c, u(t.jd(), 147), s); else - !e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), $Ne(e.o, n.lf()); + !e.o && (e.o = new es((Rc(), Cl), c1, e, 0)), MNe(e.o, n.lf()); return e; } function ote(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v, j; - return a = null, v = Vne(e, n), h = null, v && (h = kyn(e, v)), j = h, t = null, r = H(rn(e.i, j)), r != null ? t = r : t = ie(0), g = t, i = null, c = H(rn(e.j, j)), c != null ? i = c : i = ie(0), p = i, l = n.i, s = LMe(l, g), ht(e.i, n, s), d = n.j, f = LMe(d, p), a = H(ht(e.j, n, f)), a; + return a = null, v = Vne(e, n), h = null, v && (h = kyn(e, v)), j = h, t = null, r = H(rn(e.i, j)), r != null ? t = r : t = ie(0), g = t, i = null, c = H(rn(e.j, j)), c != null ? i = c : i = ie(0), p = i, l = n.i, s = DMe(l, g), ht(e.i, n, s), d = n.j, f = DMe(d, p), a = H(ht(e.j, n, f)), a; } function C$n(e) { var n, t, i, r, c; - return isNaN(e) ? (vv(), ose) : e < -9223372036854776e3 ? (vv(), WQe) : e >= 9223372036854776e3 ? (vv(), use) : (r = !1, e < 0 && (r = !0, e = -e), i = 0, e >= Zd && (i = dr(e / Zd), e -= i * Zd), t = 0, e >= B3 && (t = dr(e / B3), e -= t * B3), n = dr(e), c = Eu(n, t, i), r && RN(c), c); + return isNaN(e) ? (vv(), ose) : e < -9223372036854776e3 ? (vv(), XQe) : e >= 9223372036854776e3 ? (vv(), use) : (r = !1, e < 0 && (r = !0, e = -e), i = 0, e >= Zd && (i = dr(e / Zd), e -= i * Zd), t = 0, e >= _3 && (t = dr(e / _3), e -= t * _3), n = dr(e), c = Eu(n, t, i), r && RN(c), c); } function P$n(e) { var n, t, i, r, c; - if (c = new le(), wu(e.b, new Jke(c)), e.b.c.length = 0, c.c.length != 0) { + if (c = new le(), wu(e.b, new Gke(c)), e.b.c.length = 0, c.c.length != 0) { for (n = (qe(0, c.c.length), u(c.c[0], 80)), t = 1, i = c.c.length; t < i; ++t) - r = (qe(t, c.c.length), u(c.c[t], 80)), r != n && sJe(n, r); + r = (qe(t, c.c.length), u(c.c[t], 80)), r != n && oJe(n, r); if (N(n, 63)) throw $(u(n, 63)); if (N(n, 297)) @@ -22346,7 +22436,7 @@ function WDn() { } function D$n(e) { var n, t, i, r, c, s, f, h, l, a, d; - return d = nne(e), n = e.a, h = n != null, h && iv(d, "category", e.a), r = K8(new Fl(e.d)), s = !r, s && (l = new kd(), gf(d, "knownOptions", l), t = new j7e(l), fr(new Fl(e.d), t)), c = K8(e.g), f = !c, f && (a = new kd(), gf(d, "supportedFeatures", a), i = new E7e(a), fr(e.g, i)), d; + return d = nne(e), n = e.a, h = n != null, h && iv(d, "category", e.a), r = K8(new Fl(e.d)), s = !r, s && (l = new kd(), gf(d, "knownOptions", l), t = new E7e(l), fr(new Fl(e.d), t)), c = K8(e.g), f = !c, f && (a = new kd(), gf(d, "supportedFeatures", a), i = new A7e(a), fr(e.g, i)), d; } function N$n(e, n) { var t; @@ -22355,29 +22445,29 @@ function WDn() { function hte(e, n) { var t, i; if (n != e.Cb || e.Db >> 16 != 7 && n) { - if (Uv(e, n)) throw $(new on(Y9 + NJe(e))); + if (Uv(e, n)) throw $(new on(Y9 + FJe(e))); i = null, e.Cb && (i = (t = e.Db >> 16, t >= 0 ? Mee(e, i) : e.Cb.Qh(e, -1 - t, null, i))), n && (i = u(n, 52).Oh(e, 1, qE, i)), i = lV(e, n, i), i && i.mj(); - } else (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 7, n, n)); + } else (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 7, n, n)); } - function LHe(e, n) { + function DHe(e, n) { var t, i; if (n != e.Cb || e.Db >> 16 != 3 && n) { - if (Uv(e, n)) throw $(new on(Y9 + xRe(e))); + if (Uv(e, n)) throw $(new on(Y9 + $Re(e))); i = null, e.Cb && (i = (t = e.Db >> 16, t >= 0 ? See(e, i) : e.Cb.Qh(e, -1 - t, null, i))), n && (i = u(n, 52).Oh(e, 0, zE, i)), i = aV(e, n, i), i && i.mj(); - } else (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 3, n, n)); + } else (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 3, n, n)); } function dR(e, n) { n5(); var t, i, r, c, s, f, h, l, a; - return n.d > e.d && (f = e, e = n, n = f), n.d < 63 ? jMn(e, n) : (s = (e.d & -2) << 4, l = OQ(e, s), a = OQ(n, s), i = OR(e, l3(l, s)), r = OR(n, l3(a, s)), h = dR(l, a), t = dR(i, r), c = dR(OR(l, i), OR(r, a)), c = _R(_R(c, h), t), c = l3(c, s), h = l3(h, s << 1), _R(_R(h, c), t)); + return n.d > e.d && (f = e, e = n, n = f), n.d < 63 ? jMn(e, n) : (s = (e.d & -2) << 4, l = OQ(e, s), a = OQ(n, s), i = OR(e, l3(l, s)), r = OR(n, l3(a, s)), h = dR(l, a), t = dR(i, r), c = dR(OR(l, i), OR(r, a)), c = BR(BR(c, h), t), c = l3(c, s), h = l3(h, s << 1), BR(BR(h, c), t)); } function U7() { - U7 = G, OH = new Kg(OXe, 0), lle = new Kg("LONGEST_PATH", 1), ale = new Kg("LONGEST_PATH_SOURCE", 2), CH = new Kg("COFFMAN_GRAHAM", 3), hle = new Kg(HB, 4), dle = new Kg("STRETCH_WIDTH", 5), hC = new Kg("MIN_WIDTH", 6), IH = new Kg("BF_MODEL_ORDER", 7), PH = new Kg("DF_MODEL_ORDER", 8); + U7 = G, OH = new Kg(LXe, 0), lle = new Kg("LONGEST_PATH", 1), ale = new Kg("LONGEST_PATH_SOURCE", 2), CH = new Kg("COFFMAN_GRAHAM", 3), hle = new Kg(H_, 4), dle = new Kg("STRETCH_WIDTH", 5), hC = new Kg("MIN_WIDTH", 6), IH = new Kg("BF_MODEL_ORDER", 7), PH = new Kg("DF_MODEL_ORDER", 8); } function F$n(e, n) { var t, i, r, c, s, f; if (!e.tb) { - for (c = (!e.rb && (e.rb = new bw(e, nh, e)), e.rb), f = new _p(c.i), r = new kn(c); r.e != r.i.gc(); ) + for (c = (!e.rb && (e.rb = new bw(e, nh, e)), e.rb), f = new Bp(c.i), r = new kn(c); r.e != r.i.gc(); ) i = u(En(r), 143), s = i.ve(), t = u(s == null ? Ru(f.f, null, i) : nb(f.i, s, i), 143), t && (s == null ? Ru(f.f, null, t) : nb(f.i, s, t)); e.tb = f; } @@ -22386,7 +22476,7 @@ function WDn() { function z7(e, n) { var t, i, r, c, s; if ((e.i == null && zh(e), e.i).length, !e.p) { - for (s = new _p((3 * e.g.i / 2 | 0) + 1), r = new Kp(e.g); r.e != r.i.gc(); ) + for (s = new Bp((3 * e.g.i / 2 | 0) + 1), r = new Kp(e.g); r.e != r.i.gc(); ) i = u(kF(r), 179), c = i.ve(), t = u(c == null ? Ru(s.f, null, i) : nb(s.i, c, i), 179), t && (c == null ? Ru(s.f, null, t) : nb(s.i, c, t)); e.p = s; } @@ -22394,29 +22484,29 @@ function WDn() { } function lte(e, n, t, i, r) { var c, s, f, h, l; - for (Lkn(i + v$(t, t.ge()), r), hIe(n, Q9n(t)), c = t.f, c && lte(e, n, c, "Caused by: ", !1), f = (t.k == null && (t.k = W(BJ, oe, 80, 0, 0, 1)), t.k), h = 0, l = f.length; h < l; ++h) + for (Lkn(i + v$(t, t.ge()), r), lIe(n, Q9n(t)), c = t.f, c && lte(e, n, c, "Caused by: ", !1), f = (t.k == null && (t.k = W(_J, fe, 80, 0, 0, 1)), t.k), h = 0, l = f.length; h < l; ++h) s = f[h], lte(e, n, s, "Suppressed: ", !1); console.groupEnd != null && console.groupEnd.call(console); } function W7(e, n, t, i) { var r, c, s, f, h; - for (h = n.e, f = h.length, s = n.q.tg(h, t ? 0 : f - 1, t), r = h[t ? 0 : f - 1], s = s | yqe(e, r, t, i), c = t ? 1 : f - 2; t ? c < f : c >= 0; c += t ? 1 : -1) - s = s | n.c.jg(h, c, t, i && !ve(me(y(n.j, (te(), td)))) && !ve(me(y(n.j, (te(), tp))))), s = s | n.q.tg(h, c, t), s = s | yqe(e, h[c], t, i); + for (h = n.e, f = h.length, s = n.q.tg(h, t ? 0 : f - 1, t), r = h[t ? 0 : f - 1], s = s | jqe(e, r, t, i), c = t ? 1 : f - 2; t ? c < f : c >= 0; c += t ? 1 : -1) + s = s | n.c.jg(h, c, t, i && !ve(me(y(n.j, (te(), td)))) && !ve(me(y(n.j, (te(), tp))))), s = s | n.q.tg(h, c, t), s = s | jqe(e, h[c], t, i); return ki(e.c, n), s; } function jT(e, n, t) { var i, r, c, s, f, h, l, a, d, g; for (a = BPe(e.j), d = 0, g = a.length; d < g; ++d) { if (l = a[d], t == (Cr(), bs) || t == Gk) - for (h = _h(l.g), r = h, c = 0, s = r.length; c < s; ++c) + for (h = Bh(l.g), r = h, c = 0, s = r.length; c < s; ++c) i = r[c], rEn(n, i) && Ua(i, !0); if (t == yu || t == Gk) - for (f = _h(l.e), r = f, c = 0, s = r.length; c < s; ++c) + for (f = Bh(l.e), r = f, c = 0, s = r.length; c < s; ++c) i = r[c], iEn(n, i) && Ua(i, !0); } } - function DHe() { - return Qi(), I(T(_Ln, 1), ce, 79, 0, [Eoe, koe, X2, mG, Goe, wI, xI, ug, _oe, Coe, Roe, cg, Joe, Toe, Hoe, boe, vI, vG, dI, jI, Uoe, yI, woe, Boe, zoe, EI, doe, qoe, bI, xoe, Noe, Doe, $I, moe, aI, pI, poe, q5, Ooe, Soe, Foe, mk, yoe, voe, Loe, Ioe, mI, AI, goe, kI, Poe, gI, $oe, Aoe, em, lI, Moe, joe]); + function NHe() { + return Qi(), I(S(BLn, 1), ce, 79, 0, [Eoe, koe, X2, mG, Goe, wI, xI, ug, Boe, Coe, Roe, cg, Joe, Toe, Hoe, boe, vI, vG, dI, jI, Uoe, yI, woe, _oe, zoe, EI, doe, qoe, bI, xoe, Noe, Doe, $I, moe, aI, pI, poe, q5, Ooe, Soe, Foe, mk, yoe, voe, Loe, Ioe, mI, AI, goe, kI, Poe, gI, $oe, Aoe, em, lI, Moe, joe]); } function R$n(e) { var n, t; @@ -22437,26 +22527,26 @@ function WDn() { } function v9(e) { var n; - if (Cje.call(this), this.i = new Jve(), this.g = e, this.f = u(e.e && e.e(), 10).length, this.f == 0) + if (Pje.call(this), this.i = new Gve(), this.g = e, this.f = u(e.e && e.e(), 10).length, this.f == 0) throw $(new on("There must be at least one phase in the phase enumeration.")); this.c = (n = u(Ff(this.g), 10), new wo(n, u(af(n, n.length), 10), 0)), this.a = new wi(), this.b = new Tn(); } - function B$n(e) { + function _$n(e) { var n, t, i, r, c, s; if (r = u(pe(e.j, 0), 12), r.e.c.length + r.g.c.length == 0) e.n.a = 0; else { - for (s = 0, i = ll(vo(I(T(To, 1), Ve, 20, 0, [new Nm(r), new Sp(r)]))); xn(i); ) + for (s = 0, i = ll(vo(I(S(To, 1), Ve, 20, 0, [new Nm(r), new Sp(r)]))); xn(i); ) t = u(pn(i), 12), s += t.i.n.a + t.n.a + t.a.a; n = u(y(e, (ae(), Db)), 8), c = n ? n.a : 0, e.n.a = s / (r.e.c.length + r.g.c.length) - c; } } - function NHe(e, n) { + function FHe(e, n) { var t, i, r; for (i = new x(n.a); i.a < i.c.c.length; ) - t = u(A(i), 225), VL(u(t.b, 68), Fi(kr(u(n.b, 68).c), u(n.b, 68).a)), r = nUe(u(n.b, 68).b, u(t.b, 68).b), r > 1 && (e.a = !0), lgn(u(t.b, 68), At(kr(u(n.b, 68).c), Jl(Fi(kr(u(t.b, 68).a), u(n.b, 68).a), r))), KCe(e, n), NHe(e, t); + t = u(A(i), 225), VL(u(t.b, 68), Fi(kr(u(n.b, 68).c), u(n.b, 68).a)), r = tUe(u(n.b, 68).b, u(t.b, 68).b), r > 1 && (e.a = !0), lgn(u(t.b, 68), At(kr(u(n.b, 68).c), Jl(Fi(kr(u(t.b, 68).a), u(n.b, 68).a), r))), VCe(e, n), FHe(e, t); } - function FHe(e) { + function RHe(e) { var n, t, i, r, c, s, f; for (c = new x(e.a.a); c.a < c.c.c.length; ) i = u(A(c), 194), i.e = 0, i.d.a.$b(); @@ -22465,7 +22555,7 @@ function WDn() { for (n = u(t.Pb(), 82), f = n.f.Jc(); f.Ob(); ) s = u(f.Pb(), 82), s.d != i && (ki(i.d, s), ++s.d.e); } - function _$n(e, n) { + function B$n(e, n) { var t, i, r, c, s, f, h; for (n.Tg("Constraints Postprocessor", 1), s = 0, c = new x(e.b); c.a < c.c.c.length; ) { for (r = u(A(c), 25), h = 0, f = !1, i = new x(r.a); i.a < i.c.c.length; ) @@ -22486,7 +22576,7 @@ function WDn() { case 3: i = s.e.c.length, c = s.g.c.length, i > 0 && c > 0 ? s.p = n++ : i > 0 ? s.p = t++ : c > 0 ? s.p = r++ : s.p = t++; } - ze(), Di(e.j, new e2e()); + ze(), Di(e.j, new n2e()); } function G$n(e) { var n, t; @@ -22494,8 +22584,8 @@ function WDn() { do { if (t = n.d.i, Et(t, (te(), Vo))) return u(y(t, Vo), 12).i; - if (t.k != (cn(), si) && xn(new fn(dn(Ht(t).a.Jc(), new Q())))) - n = u(pn(new fn(dn(Ht(t).a.Jc(), new Q()))), 17); + if (t.k != (cn(), si) && xn(new fn(dn(Ht(t).a.Jc(), new Y())))) + n = u(pn(new fn(dn(Ht(t).a.Jc(), new Y()))), 17); else if (t.k != si) return null; } while (t && t.k != (cn(), si)); @@ -22509,26 +22599,26 @@ function WDn() { } function hb(e, n, t, i) { var r, c; - if (r = z(y(t, (ae(), Ck))) === z((P1(), fg)), c = u(y(t, Ehe), 16), Et(e, (te(), _t))) + if (r = z(y(t, (ae(), Ck))) === z((P1(), fg)), c = u(y(t, Ehe), 16), Et(e, (te(), Bt))) if (r) { if (c.Gc(y(e, Pk)) && c.Gc(y(n, Pk))) - return i * u(y(e, Pk), 15).a + u(y(e, _t), 15).a; + return i * u(y(e, Pk), 15).a + u(y(e, Bt), 15).a; } else - return u(y(e, _t), 15).a; + return u(y(e, Bt), 15).a; else return -1; - return u(y(e, _t), 15).a; + return u(y(e, Bt), 15).a; } function q$n(e, n, t) { var i, r, c, s, f, h, l; - for (l = new Ma(new sye(e)), s = I(T(ZZe, 1), iXe, 12, 0, [n, t]), f = 0, h = s.length; f < h; ++f) + for (l = new Ma(new oye(e)), s = I(S(een, 1), rXe, 12, 0, [n, t]), f = 0, h = s.length; f < h; ++f) for (c = s[f], l.a.yc(c, (en(), Y1)) == null, r = new fh(c.b); lc(r.a) || lc(r.b); ) i = u(lc(r.a) ? A(r.a) : A(r.b), 17), i.c == i.d || Cy(l, c == i.c ? i.d : i.c); return Jn(l), new os(l); } function yf(e) { if (!e.a.d || !e.a.e) - throw $(new qr((Gl(yYe), yYe.k + " must have a source and target " + (Gl(Lse), Lse.k) + " specified."))); + throw $(new qr((Gl(jYe), jYe.k + " must have a source and target " + (Gl(Lse), Lse.k) + " specified."))); if (e.a.d == e.a.e) throw $(new qr("Network simplex does not support self-loops: " + e.a + " " + e.a.d + " " + e.a.e)); return Mx(e.a.d.g, e.a), Mx(e.a.e.b, e.a), e.a; @@ -22538,29 +22628,29 @@ function WDn() { for (t.Tg("Longest path layering", 1), e.a = n, f = e.a.a, e.b = W(Wn, lt, 30, f.c.length, 15, 1), i = 0, s = new x(f); s.a < s.c.c.length; ) r = u(A(s), 9), r.p = i, e.b[i] = -1, ++i; for (c = new x(f); c.a < c.c.c.length; ) - r = u(A(c), 9), pHe(e, r); + r = u(A(c), 9), mHe(e, r); f.c.length = 0, e.a = null, e.b = null, t.Ug(); } - function RHe(e, n, t) { + function _He(e, n, t) { var i, r, c, s, f, h; if (i = 0, n.b != 0 && t.b != 0) { - c = Nn(n, 0), s = Nn(t, 0), f = _(H(Ln(c))), h = _(H(Ln(s))), r = !0; + c = Nn(n, 0), s = Nn(t, 0), f = B(H(Ln(c))), h = B(H(Ln(s))), r = !0; do { if (f > h - e.b && f < h + e.b) return -1; - f > h - e.a && f < h + e.a && ++i, f <= h && c.b != c.d.c ? f = _(H(Ln(c))) : h <= f && s.b != s.d.c ? h = _(H(Ln(s))) : r = !1; + f > h - e.a && f < h + e.a && ++i, f <= h && c.b != c.d.c ? f = B(H(Ln(c))) : h <= f && s.b != s.d.c ? h = B(H(Ln(s))) : r = !1; } while (r); } return i; } function BHe(e, n) { var t, i; - return Oy(e.a), Bf(e.a, (lM(), $C), $C), Bf(e.a, dp, dp), i = new wi(), et(i, dp, (uT(), bq)), z(re(n, (_1(), mq))) !== z((m7(), MC)) && et(i, dp, lq), ve(me(re(n, Dae))) && et(i, dp, wq), et(i, dp, aq), ve(me(re(n, Fae))) && au(i, dp, dq), xX(e.a, i), t = Z7(e.a, n), t; + return Oy(e.a), _f(e.a, (lM(), $C), $C), _f(e.a, dp, dp), i = new wi(), et(i, dp, (uT(), bq)), z(re(n, (B1(), mq))) !== z((m7(), MC)) && et(i, dp, lq), ve(me(re(n, Dae))) && et(i, dp, wq), et(i, dp, aq), ve(me(re(n, Fae))) && au(i, dp, dq), xX(e.a, i), t = Z7(e.a, n), t; } function z$n(e, n, t, i) { var r, c, s, f, h, l, a, d, g; for (h = 0, a = new x(e.a); a.a < a.c.c.length; ) { - for (l = u(A(a), 9), f = 0, c = new fn(dn(bi(l).a.Jc(), new Q())); xn(c); ) + for (l = u(A(a), 9), f = 0, c = new fn(dn(bi(l).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), d = oh(r.c).b, g = oh(r.d).b, f = m.Math.max(f, m.Math.abs(g - d)); h = m.Math.max(h, f); } @@ -22568,9 +22658,9 @@ function WDn() { } function W$n(e) { var n, t; - for (t = new fn(dn(Ht(e).a.Jc(), new Q())); xn(t); ) - if (n = u(pn(t), 17), n.d.i.k != (cn(), _c)) - throw $(new Aa(GB + I7(e) + "' has its layer constraint set to LAST, but has at least one outgoing edge that does not go to a LAST_SEPARATE node. That must not happen.")); + for (t = new fn(dn(Ht(e).a.Jc(), new Y())); xn(t); ) + if (n = u(pn(t), 17), n.d.i.k != (cn(), Bc)) + throw $(new Aa(G_ + I7(e) + "' has its layer constraint set to LAST, but has at least one outgoing edge that does not go to a LAST_SEPARATE node. That must not happen.")); } function X$n(e, n) { var t, i, r, c, s; @@ -22578,7 +22668,7 @@ function WDn() { if (r = u(Ln(c), 40), e.b[r.g] == 0) { switch (s.g) { case 0: - XBe(e, r); + K_e(e, r); break; case 1: oxn(e, r); @@ -22587,11 +22677,11 @@ function WDn() { } for (i = Nn(e.a, 0); i.b != i.d.c; ) t = u(Ln(i), 65), Pw(t.b.d, t, !0), Pw(t.c.b, t, !0); - K(n, (Bt(), rae), e.a); + K(n, (_t(), rae), e.a); } function ate(e) { var n; - return n = new B4(), (e & 256) != 0 && (n.a += "F"), (e & 128) != 0 && (n.a += "H"), (e & 512) != 0 && (n.a += "X"), (e & 2) != 0 && (n.a += "i"), (e & 8) != 0 && (n.a += "m"), (e & 4) != 0 && (n.a += "s"), (e & 32) != 0 && (n.a += "u"), (e & 64) != 0 && (n.a += "w"), (e & 16) != 0 && (n.a += "x"), (e & Ef) != 0 && (n.a += ","), bW(n.a); + return n = new _4(), (e & 256) != 0 && (n.a += "F"), (e & 128) != 0 && (n.a += "H"), (e & 512) != 0 && (n.a += "X"), (e & 2) != 0 && (n.a += "i"), (e & 8) != 0 && (n.a += "m"), (e & 4) != 0 && (n.a += "s"), (e & 32) != 0 && (n.a += "u"), (e & 64) != 0 && (n.a += "w"), (e & 16) != 0 && (n.a += "x"), (e & Ef) != 0 && (n.a += ","), bW(n.a); } function K$n(e, n, t, i, r) { var c, s, f, h; @@ -22618,7 +22708,7 @@ function WDn() { } function Y$n(e, n) { var t, i, r, c, s, f; - n.Tg(iKe, 1), r = u(re(e, (gh(), t8)), 104), c = (!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a), s = vyn(c), f = m.Math.max(s.a, _(H(re(e, (gl(), n8)))) - (r.b + r.c)), i = m.Math.max(s.b, _(H(re(e, CC))) - (r.d + r.a)), t = i - s.b, Pt(e, e8, t), Pt(e, dm, f), Pt(e, l4, i + t), n.Ug(); + n.Tg(rKe, 1), r = u(re(e, (gh(), t8)), 104), c = (!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a), s = vyn(c), f = m.Math.max(s.a, B(H(re(e, (gl(), n8)))) - (r.b + r.c)), i = m.Math.max(s.b, B(H(re(e, CC))) - (r.d + r.a)), t = i - s.b, Pt(e, e8, t), Pt(e, dm, f), Pt(e, l4, i + t), n.Ug(); } function ET(e) { var n, t; @@ -22631,22 +22721,22 @@ function WDn() { function xu(e, n) { Sr(); var t, i, r, c; - return n ? n == (Ot(), afn) || (n == efn || n == E0 || n == Zon) && e != Q0e ? new hie(e, n) : (i = u(n, 682), t = i.Yk(), t || (hv(Wr((ts(), sr), n)), t = i.Yk()), c = (!t.i && (t.i = new Tn()), t.i), r = u(hc(Ur(c.f, e)), 2003), !r && ht(c, e, r = new hie(e, n)), r) : Von; + return n ? n == (Ot(), dfn) || (n == nfn || n == E0 || n == efn) && e != Q0e ? new hie(e, n) : (i = u(n, 682), t = i.Yk(), t || (hv(Wr((ts(), sr), n)), t = i.Yk()), c = (!t.i && (t.i = new Tn()), t.i), r = u(hc(Ur(c.f, e)), 2003), !r && ht(c, e, r = new hie(e, n)), r) : Qon; } function Z$n(e, n) { var t, i; if (i = Cy(e.b, n.b), !i) throw $(new qr("Invalid hitboxes for scanline constraint calculation.")); - (pFe(n.b, u(yan(e.b, n.b), 60)) || pFe(n.b, u(kan(e.b, n.b), 60))) && Ta(), e.a[n.b.f] = u(EO(e.b, n.b), 60), t = u(jO(e.b, n.b), 60), t && (e.a[t.f] = n.b); + (mFe(n.b, u(yan(e.b, n.b), 60)) || mFe(n.b, u(kan(e.b, n.b), 60))) && Ta(), e.a[n.b.f] = u(EO(e.b, n.b), 60), t = u(jO(e.b, n.b), 60), t && (e.a[t.f] = n.b); } function eMn(e, n) { var t, i, r, c, s, f, h, l, a; - for (h = u(y(e, (te(), $t)), 12), l = bc(I(T(Ji, 1), oe, 8, 0, [h.i.n, h.n, h.a])).a, a = e.i.n.b, t = _h(e.e), r = t, c = 0, s = r.length; c < s; ++c) + for (h = u(y(e, (te(), $t)), 12), l = bc(I(S(Ji, 1), fe, 8, 0, [h.i.n, h.n, h.a])).a, a = e.i.n.b, t = Bh(e.e), r = t, c = 0, s = r.length; c < s; ++c) i = r[c], Ki(i, h), mr(i.a, new ue(l, a)), n && (f = u(y(i, (ae(), Vr)), 78), f || (f = new ms(), K(i, Vr, f)), rt(f, new ue(l, a))); } function nMn(e, n) { var t, i, r, c, s, f, h, l, a; - for (r = u(y(e, (te(), $t)), 12), l = bc(I(T(Ji, 1), oe, 8, 0, [r.i.n, r.n, r.a])).a, a = e.i.n.b, t = _h(e.g), s = t, f = 0, h = s.length; f < h; ++f) + for (r = u(y(e, (te(), $t)), 12), l = bc(I(S(Ji, 1), fe, 8, 0, [r.i.n, r.n, r.a])).a, a = e.i.n.b, t = Bh(e.g), s = t, f = 0, h = s.length; f < h; ++f) c = s[f], br(c, r), Yg(c.a, new ue(l, a)), n && (i = u(y(c, (ae(), Vr)), 78), i || (i = new ms(), K(c, Vr, i)), rt(i, new ue(l, a))); } function tMn(e) { @@ -22658,13 +22748,13 @@ function WDn() { function iMn(e, n) { var t, i, r, c; for (n.Tg("Semi-Interactive Crossing Minimization Processor", 1), t = !1, r = new x(e.b); r.a < r.c.c.length; ) - i = u(A(r), 25), c = y7(Y$(mt(mt(new Ge(null, new He(i.a, 16)), new N2e()), new F2e()), new R2e()), new B2e()), t = t | c.a != null; + i = u(A(r), 25), c = y7(Y$(mt(mt(new Ge(null, new He(i.a, 16)), new F2e()), new R2e()), new _2e()), new B2e()), t = t | c.a != null; t && K(e, (te(), Cfe), (en(), !0)), n.Ug(); } function rMn(e, n) { var t, i, r, c, s, f; - for (e.b = new le(), e.d = u(y(n, (te(), sm)), 234), e.e = T3n(e.d), c = new Dt(), r = wf(I(T(VZe, 1), nXe, 37, 0, [n])), s = 0; s < r.c.length; ) - i = (qe(s, r.c.length), u(r.c[s], 37)), i.p = s++, t = new rze(i, e.a, e.b), Ci(r, t.b), he(e.b, t), t.s && (f = Nn(c, 0), s$(f, t)); + for (e.b = new le(), e.d = u(y(n, (te(), sm)), 234), e.e = T3n(e.d), c = new Dt(), r = wf(I(S(QZe, 1), tXe, 37, 0, [n])), s = 0; s < r.c.length; ) + i = (qe(s, r.c.length), u(r.c[s], 37)), i.p = s++, t = new cze(i, e.a, e.b), Ci(r, t.b), he(e.b, t), t.s && (f = Nn(c, 0), s$(f, t)); return e.c = new vi(), c; } function cMn(e, n) { @@ -22682,43 +22772,43 @@ function WDn() { } function sMn(e) { var n, t; - t = u(y(e, (ae(), pc)), 165), n = u(y(e, (te(), f0)), 315), t == (Bs(), ha) ? (K(e, pc, iE), K(e, f0, (Kl(), ep))) : t == l0 ? (K(e, pc, iE), K(e, f0, (Kl(), nm))) : n == (Kl(), ep) ? (K(e, pc, ha), K(e, f0, Zj)) : n == nm && (K(e, pc, l0), K(e, f0, Zj)); + t = u(y(e, (ae(), pc)), 165), n = u(y(e, (te(), f0)), 315), t == (_s(), ha) ? (K(e, pc, iE), K(e, f0, (Kl(), ep))) : t == l0 ? (K(e, pc, iE), K(e, f0, (Kl(), nm))) : n == (Kl(), ep) ? (K(e, pc, ha), K(e, f0, Zj)) : n == nm && (K(e, pc, l0), K(e, f0, Zj)); } function AT() { - AT = G, bE = new H3e(), Drn = et(new wi(), (zi(), Xc), (Qi(), dI)), Rrn = au(et(new wi(), Xc, yI), Nr, kI), Brn = Hh(Hh(W4(au(et(new wi(), $f, xI), Nr, AI), Kc), EI), $I), Nrn = au(et(et(et(new wi(), Al, wI), Kc, pI), Kc, q5), Nr, gI), Frn = au(et(et(new wi(), Kc, q5), Kc, aI), Nr, lI); + AT = G, bE = new q3e(), Nrn = et(new wi(), (zi(), Xc), (Qi(), dI)), _rn = au(et(new wi(), Xc, yI), Nr, kI), Brn = Hh(Hh(W4(au(et(new wi(), $f, xI), Nr, AI), Kc), EI), $I), Frn = au(et(et(et(new wi(), Al, wI), Kc, pI), Kc, q5), Nr, gI), Rrn = au(et(et(new wi(), Kc, q5), Kc, aI), Nr, lI); } function k9() { - k9 = G, Grn = et(au(new wi(), (zi(), Nr), (Qi(), $oe)), Xc, dI), zrn = Hh(Hh(W4(au(et(new wi(), $f, xI), Nr, AI), Kc), EI), $I), Hrn = au(et(et(et(new wi(), Al, wI), Kc, pI), Kc, q5), Nr, gI), Urn = et(et(new wi(), Xc, yI), Nr, kI), qrn = au(et(et(new wi(), Kc, q5), Kc, aI), Nr, lI); + k9 = G, Hrn = et(au(new wi(), (zi(), Nr), (Qi(), $oe)), Xc, dI), Wrn = Hh(Hh(W4(au(et(new wi(), $f, xI), Nr, AI), Kc), EI), $I), qrn = au(et(et(et(new wi(), Al, wI), Kc, pI), Kc, q5), Nr, gI), zrn = et(et(new wi(), Xc, yI), Nr, kI), Urn = au(et(et(new wi(), Kc, q5), Kc, aI), Nr, lI); } function oMn(e, n, t, i, r) { var c, s; - (!hr(n) && n.c.i.c == n.d.i.c || !ANe(bc(I(T(Ji, 1), oe, 8, 0, [r.i.n, r.n, r.a])), t)) && !hr(n) && (n.c == r ? Qm(n.a, 0, new vr(t)) : rt(n.a, new vr(t)), i && !Bo(e.a, t) && (s = u(y(n, (ae(), Vr)), 78), s || (s = new ms(), K(n, Vr, s)), c = new vr(t), ti(s, c, s.c.b, s.c), ki(e.a, c))); + (!hr(n) && n.c.i.c == n.d.i.c || !xNe(bc(I(S(Ji, 1), fe, 8, 0, [r.i.n, r.n, r.a])), t)) && !hr(n) && (n.c == r ? Qm(n.a, 0, new vr(t)) : rt(n.a, new vr(t)), i && !_o(e.a, t) && (s = u(y(n, (ae(), Vr)), 78), s || (s = new ms(), K(n, Vr, s)), c = new vr(t), ti(s, c, s.c.b, s.c), ki(e.a, c))); } - function _He(e, n) { + function JHe(e, n) { var t, i, r, c; for (c = Xn(gr(vl, al(Xn(gr(n == null ? 0 : Gt(n), kl)), 15))), t = c & e.b.length - 1, r = null, i = e.b[t]; i; r = i, i = i.a) if (i.d == c && Hl(i.i, n)) - return r ? r.a = i.a : e.b[t] = i.a, rEe(u(Jo(i.c), 593), u(Jo(i.f), 593)), G8(u(Jo(i.b), 227), u(Jo(i.e), 227)), --e.f, ++e.e, !0; + return r ? r.a = i.a : e.b[t] = i.a, cEe(u(Jo(i.c), 593), u(Jo(i.f), 593)), G8(u(Jo(i.b), 227), u(Jo(i.e), 227)), --e.f, ++e.e, !0; return !1; } function fMn(e) { var n, t; - for (t = new fn(dn(bi(e).a.Jc(), new Q())); xn(t); ) - if (n = u(pn(t), 17), n.c.i.k != (cn(), _c)) - throw $(new Aa(GB + I7(e) + "' 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.")); + for (t = new fn(dn(bi(e).a.Jc(), new Y())); xn(t); ) + if (n = u(pn(t), 17), n.c.i.k != (cn(), Bc)) + throw $(new Aa(G_ + I7(e) + "' 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 JHe(e, n) { + function GHe(e, n) { var t, i, r, c, s, f, h, l, a, d, g; - r = n ? new e3e() : new n3e(), c = !1; + r = n ? new n3e() : new t3e(), c = !1; do - for (c = !1, l = n ? _s(e.b) : e.b, h = l.Jc(); h.Ob(); ) - for (f = u(h.Pb(), 25), g = Nd(f.a), n || _s(g), d = new x(g); d.a < d.c.c.length; ) - a = u(A(d), 9), r.Mb(a) && (i = a, t = u(y(a, (te(), Sb)), 317), s = n ? t.b : t.k, c = dqe(i, s, n, !1)); + for (c = !1, l = n ? Bs(e.b) : e.b, h = l.Jc(); h.Ob(); ) + for (f = u(h.Pb(), 25), g = Nd(f.a), n || Bs(g), d = new x(g); d.a < d.c.c.length; ) + a = u(A(d), 9), r.Mb(a) && (i = a, t = u(y(a, (te(), Sb)), 317), s = n ? t.b : t.k, c = bqe(i, s, n, !1)); while (c); } function hMn(e, n, t) { var i, r, c, s, f, h, l; - if (r = jRe(e.Db & 254), r == 0) + if (r = ERe(e.Db & 254), r == 0) e.Eb = t; else { if (r == 1) @@ -22730,23 +22820,23 @@ function WDn() { } e.Db |= n; } - function GHe(e, n, t, i, r, c) { - var s, f, h, l, a, d, g, p, v, j, E, M; + function HHe(e, n, t, i, r, c) { + var s, f, h, l, a, d, g, p, v, j, E, T; for (a = i, n.j && n.o ? (p = u(rn(e.f, n.A), 60), j = p.d.c + p.d.b, --a) : j = n.a.c + n.a.b, d = r, t.q && t.o ? (p = u(rn(e.f, t.C), 60), l = p.d.c, ++d) : l = t.a.c, E = l - j, h = m.Math.max(2, d - a), f = E / h, v = j + f, g = a; g < d; ++g) - s = u(c.Xb(g), 132), M = s.a.b, s.a.c = v - M / 2, v += f; + s = u(c.Xb(g), 132), T = s.a.b, s.a.c = v - T / 2, v += f; } function dte(e, n, t, i, r, c) { var s, f, h, l, a, d; for (l = t.c.length, c && (e.c = W(Wn, lt, 30, n.length, 15, 1)), s = r ? 0 : n.length - 1; r ? s < n.length : s >= 0; s += r ? 1 : -1) { - for (f = n[s], h = i == (be(), gn) ? r ? wc(f, i) : _s(wc(f, i)) : r ? _s(wc(f, i)) : wc(f, i), c && (e.c[f.p] = h.gc()), d = h.Jc(); d.Ob(); ) + for (f = n[s], h = i == (be(), gn) ? r ? wc(f, i) : Bs(wc(f, i)) : r ? Bs(wc(f, i)) : wc(f, i), c && (e.c[f.p] = h.gc()), d = h.Jc(); d.Ob(); ) a = u(d.Pb(), 12), e.d[a.p] = l++; Ci(t, h); } } - function HHe(e, n, t) { + function qHe(e, n, t) { var i, r, c, s, f, h, l, a; - for (c = _(H(e.b.Jc().Pb())), l = _(H(q4n(n.b))), i = Jl(kr(e.a), l - t), r = Jl(kr(n.a), t - c), a = At(i, r), Jl(a, 1 / (l - c)), this.a = a, this.b = new le(), f = !0, s = e.b.Jc(), s.Pb(); s.Ob(); ) - h = _(H(s.Pb())), f && h - t > P_ && (this.b.Ec(t), f = !1), this.b.Ec(h); + for (c = B(H(e.b.Jc().Pb())), l = B(H(q4n(n.b))), i = Jl(kr(e.a), l - t), r = Jl(kr(n.a), t - c), a = At(i, r), Jl(a, 1 / (l - c)), this.a = a, this.b = new le(), f = !0, s = e.b.Jc(), s.Pb(); s.Ob(); ) + h = B(H(s.Pb())), f && h - t > PB && (this.b.Ec(t), f = !1), this.b.Ec(h); f && this.b.Ec(t); } function lMn(e) { @@ -22757,7 +22847,7 @@ function WDn() { t = u(A(i), 124), t.j && (t.e += r); F4(e.c); } - F4(e.c), Cne(e, u(A(new x(e.e.a)), 124)), zUe(e); + F4(e.c), Cne(e, u(A(new x(e.e.a)), 124)), WUe(e); } } function aMn(e, n, t) { @@ -22765,13 +22855,13 @@ function WDn() { for (t.Tg("Longest path to source layering", 1), e.a = n, f = e.a.a, e.b = W(Wn, lt, 30, f.c.length, 15, 1), i = 0, s = new x(f); s.a < s.c.c.length; ) r = u(A(s), 9), r.p = i, e.b[i] = -1, ++i; for (c = new x(f); c.a < c.c.c.length; ) - r = u(A(c), 9), mHe(e, r); + r = u(A(c), 9), vHe(e, r); f.c.length = 0, e.a = null, e.b = null, t.Ug(); } function dMn(e, n) { v3(); var t, i; - if (t = zD(_6(), n.Og()), t) { + if (t = zD(B6(), n.Og()), t) { if (i = t.j, N(e, 206)) return Cpn(u(e, 26)) ? Yu(i, (qh(), mi)) || Yu(i, Xe) : Yu(i, (qh(), mi)); if (N(e, 271)) @@ -22797,7 +22887,7 @@ function WDn() { throw $(new on(Fj)); return u(A2(e, n, t), 75); } - function qHe(e, n) { + function UHe(e, n) { if (n instanceof Object) try { if (n.__java$exception = e, navigator.userAgent.toLowerCase().indexOf("msie") != -1 && $doc.documentMode < 9) @@ -22812,10 +22902,10 @@ function WDn() { } catch { } } - function UHe(e, n) { + function zHe(e, n) { var t, i, r, c, s; if (i = n >> 5, n &= 31, i >= e.d) - return e.e < 0 ? (Uh(), YQe) : (Uh(), lk); + return e.e < 0 ? (Uh(), ZQe) : (Uh(), lk); if (c = e.d - i, r = W(Wn, lt, 30, c + 1, 15, 1), wEn(r, c, e.a, i, n), e.e < 0) { for (t = 0; t < i && e.a[t] == 0; t++) ; if (t < i || n > 0 && e.a[t] << 32 - n != 0) { @@ -22834,22 +22924,22 @@ function WDn() { var t; switch (t = u(y(e, (ae(), ZI)), 284), n.Tg("Label side selection (" + t + ")", 1), t.g) { case 0: - eHe(e, (Zs(), Tl)); + nHe(e, (Zs(), Tl)); break; case 1: - eHe(e, (Zs(), hd)); + nHe(e, (Zs(), hd)); break; case 2: - EUe(e, (Zs(), Tl)); + AUe(e, (Zs(), Tl)); break; case 3: - EUe(e, (Zs(), hd)); + AUe(e, (Zs(), hd)); break; case 4: - ZHe(e, (Zs(), Tl)); + eqe(e, (Zs(), Tl)); break; case 5: - ZHe(e, (Zs(), hd)); + eqe(e, (Zs(), hd)); } n.Ug(); } @@ -22862,23 +22952,23 @@ function WDn() { var r, c, s, f, h, l, a, d, g, p; if (h = e.c.d, l = e.d.d, h.j != l.j) for (p = e.b, a = null, f = null, s = Pkn(e), s && p.i && (a = e.b.i.i, f = p.i.j), r = h.j, d = null; r != l.j; ) - d = n == 0 ? IM(r) : CZ(r), c = fee(r, p.d[r.g], t), g = fee(d, p.d[d.g], t), s && a && f && (r == a ? NRe(c, a, f) : d == a && NRe(g, a, f)), rt(i, At(c, g)), r = d; + d = n == 0 ? IM(r) : CZ(r), c = fee(r, p.d[r.g], t), g = fee(d, p.d[d.g], t), s && a && f && (r == a ? FRe(c, a, f) : d == a && FRe(g, a, f)), rt(i, At(c, g)), r = d; } function bte(e, n, t) { var i, r, c, s, f, h; - if (i = san(t, e.length), s = e[i], c = fEe(t, s.length), s[c].k == (cn(), Ai)) + if (i = san(t, e.length), s = e[i], c = hEe(t, s.length), s[c].k == (cn(), Ai)) for (h = n.j, r = 0; r < h.c.length; r++) f = (qe(r, h.c.length), u(h.c[r], 12)), (t ? f.j == (be(), gn) : f.j == (be(), an)) && ve(me(y(f, (te(), nE)))) && (Ks(h, r, u(y(s[c], (te(), $t)), 12)), c += t ? 1 : -1); } function mMn(e, n) { var t, i, r, c, s, f, h, l; - n.Tg("Greedy Width Approximator", 1), t = _(H(re(e, (gh(), OC)))), h = u(re(e, t8), 104), c = u(re(e, f1e), 387), s = ve(me(re(e, o1e))), f = _(H(re(e, i8))), l = (!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a), LY(l), r = new ITe(t, c, s), i = $Tn(r, l, f, h), Pt(e, (gl(), Eg), i.c), n.Ug(); + n.Tg("Greedy Width Approximator", 1), t = B(H(re(e, (gh(), OC)))), h = u(re(e, t8), 104), c = u(re(e, f1e), 387), s = ve(me(re(e, o1e))), f = B(H(re(e, i8))), l = (!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a), LY(l), r = new CTe(t, c, s), i = $Tn(r, l, f, h), Pt(e, (gl(), Eg), i.c), n.Ug(); } - function zHe(e) { + function WHe(e) { if (e.g == null) switch (e.p) { case 0: - e.g = $pn(e) ? (en(), _5) : (en(), Y1); + e.g = $pn(e) ? (en(), B5) : (en(), Y1); break; case 1: e.g = i7(Amn(e)); @@ -22890,7 +22980,7 @@ function WDn() { e.g = t2n(e); break; case 4: - e.g = new B8(i2n(e)); + e.g = new _8(i2n(e)); break; case 6: e.g = Lw(r2n(e)); @@ -22907,7 +22997,7 @@ function WDn() { if (e.n == null) switch (e.p) { case 0: - e.n = Mpn(e) ? (en(), _5) : (en(), Y1); + e.n = Mpn(e) ? (en(), B5) : (en(), Y1); break; case 1: e.n = i7(xmn(e)); @@ -22919,7 +23009,7 @@ function WDn() { e.n = c2n(e); break; case 4: - e.n = new B8(u2n(e)); + e.n = new _8(u2n(e)); break; case 6: e.n = Lw(s2n(e)); @@ -22932,7 +23022,7 @@ function WDn() { } return e.n; } - function WHe(e, n, t, i) { + function XHe(e, n, t, i) { var r, c, s, f, h; if (f = (Sr(), u(n, 69).vk()), ia(e.e, n)) { if (n.Qi() && IT(e, n, i, N(n, 103) && (u(n, 19).Bb & xr) != 0)) @@ -22943,7 +23033,7 @@ function WDn() { throw $(new on(Fj)); e9(e, pne(e, n, t), f ? u(i, 75) : dl(n, i)); } - function XHe(e) { + function KHe(e) { var n, t, i, r, c, s, f; for (c = new x(e.a.a); c.a < c.c.c.length; ) i = u(A(c), 320), i.g = 0, i.i = 0, i.e.a.$b(); @@ -22962,32 +23052,32 @@ function WDn() { } function bR(e, n) { var t, i, r, c, s, f; - return c = e.d, f = _(H(y(e, (ae(), Ya)))), f < 0 && (f = 0, K(e, Ya, f)), n.o.b = f, s = m.Math.floor(f / 2), i = new Uc(), Oi(i, (be(), an)), ac(i, n), i.n.b = s, r = new Uc(), Oi(r, gn), ac(r, n), r.n.b = s, Ki(e, i), t = new z0(), Pc(t, e), K(t, Vr, null), br(t, r), Ki(t, c), CSn(n, e, t), JEn(e, t), t; + return c = e.d, f = B(H(y(e, (ae(), Ya)))), f < 0 && (f = 0, K(e, Ya, f)), n.o.b = f, s = m.Math.floor(f / 2), i = new Uc(), Oi(i, (be(), an)), ac(i, n), i.n.b = s, r = new Uc(), Oi(r, gn), ac(r, n), r.n.b = s, Ki(e, i), t = new z0(), Pc(t, e), K(t, Vr, null), br(t, r), Ki(t, c), CSn(n, e, t), JEn(e, t), t; } function yMn(e) { var n, t; - return t = u(y(e, (te(), ou)), 22), n = new wi(), t.Gc((Pr(), jk)) && (Ys(n, Crn), Ys(n, _le)), (t.Gc(Z5) || ve(me(y(e, (ae(), vH))))) && (Ys(n, _le), t.Gc(Z2) && Ys(n, Orn)), t.Gc(So) && Ys(n, Irn), t.Gc(Ek) && Ys(n, Lrn), t.Gc(BI) && Ys(n, Prn), t.Gc(Q5) && Ys(n, Trn), t.Gc(Y5) && Ys(n, Srn), n; + return t = u(y(e, (te(), ou)), 22), n = new wi(), t.Gc((Pr(), jk)) && (Ys(n, Prn), Ys(n, Ble)), (t.Gc(Z5) || ve(me(y(e, (ae(), vH))))) && (Ys(n, Ble), t.Gc(Z2) && Ys(n, Lrn)), t.Gc(So) && Ys(n, Crn), t.Gc(Ek) && Ys(n, Drn), t.Gc(_I) && Ys(n, Orn), t.Gc(Q5) && Ys(n, Srn), t.Gc(Y5) && Ys(n, Irn), n; } function jMn(e, n) { var t, i, r, c, s, f, h, l, a, d, g; - return i = e.d, c = n.d, f = i + c, h = e.e != n.e ? -1 : 1, f == 2 ? (a = gr(qi(e.a[0], Or), qi(n.a[0], Or)), g = Xn(a), d = Xn(Id(a, 32)), d == 0 ? new Wl(h, g) : new Cd(h, 2, I(T(Wn, 1), lt, 30, 15, [g, d]))) : (t = e.a, r = n.a, s = W(Wn, lt, 30, f, 15, 1), t9n(t, i, r, c, s), l = new Cd(h, f, s), C6(l), l); + return i = e.d, c = n.d, f = i + c, h = e.e != n.e ? -1 : 1, f == 2 ? (a = gr(qi(e.a[0], Or), qi(n.a[0], Or)), g = Xn(a), d = Xn(Id(a, 32)), d == 0 ? new Wl(h, g) : new Cd(h, 2, I(S(Wn, 1), lt, 30, 15, [g, d]))) : (t = e.a, r = n.a, s = W(Wn, lt, 30, f, 15, 1), t9n(t, i, r, c, s), l = new Cd(h, f, s), C6(l), l); } - function KHe(e, n, t, i) { + function VHe(e, n, t, i) { var r, c; if (n) { if (r = e.a.Le(t.d, n.d), r == 0) return i.d = gK(n, t.e), i.b = !0, n; - c = r < 0 ? 0 : 1, n.a[c] = KHe(e, n.a[c], t, i), Xb(n.a[c]) && (Xb(n.a[1 - c]) ? (n.b = !0, n.a[0].b = !1, n.a[1].b = !1) : Xb(n.a[c].a[c]) ? n = aM(n, 1 - c) : Xb(n.a[c].a[1 - c]) && (n = SPe(n, 1 - c))); + c = r < 0 ? 0 : 1, n.a[c] = VHe(e, n.a[c], t, i), Xb(n.a[c]) && (Xb(n.a[1 - c]) ? (n.b = !0, n.a[0].b = !1, n.a[1].b = !1) : Xb(n.a[c].a[c]) ? n = aM(n, 1 - c) : Xb(n.a[c].a[1 - c]) && (n = IPe(n, 1 - c))); } else return t; return n; } - function VHe(e, n, t) { + function QHe(e, n, t) { var i, r, c, s; r = e.i, i = e.n, DQ(e, (qf(), Mc), r.c + i.b, t), DQ(e, Tc, r.c + r.b - i.c - t[2], t), s = r.b - i.b - i.c, t[0] > 0 && (t[0] += e.d, s -= t[0]), t[2] > 0 && (t[2] += e.d, s -= t[2]), c = m.Math.max(0, s), t[1] = m.Math.max(t[1], s), DQ(e, ku, r.c + i.b + t[0] - (t[1] - s) / 2, t), n == ku && (e.c.b = c, e.c.c = r.c + i.b + (c - s) / 2); } - function QHe() { - this.c = W(Xi, Gr, 30, (be(), I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an])).length, 15, 1), this.b = W(Xi, Gr, 30, I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an]).length, 15, 1), this.a = W(Xi, Gr, 30, I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an]).length, 15, 1), qW(this.c, ii), qW(this.b, Ri), qW(this.a, Ri); + function YHe() { + this.c = W(Xi, Gr, 30, (be(), I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an])).length, 15, 1), this.b = W(Xi, Gr, 30, I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an]).length, 15, 1), this.a = W(Xi, Gr, 30, I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an]).length, 15, 1), qW(this.c, ii), qW(this.b, Ri), qW(this.a, Ri); } function EMn(e, n, t, i) { var r, c, s, f, h; @@ -23037,16 +23127,16 @@ function WDn() { } function Jw(e) { var n, t, i, r, c; - for (r = new le(), n = new aw((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)), i = new fn(dn(J1(e).a.Jc(), new Q())); xn(i); ) + for (r = new le(), n = new aw((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)), i = new fn(dn(J1(e).a.Jc(), new Y())); xn(i); ) t = u(pn(i), 85), N(F((!t.b && (t.b = new Qe(Cn, t, 4, 7)), t.b), 0), 193) || (c = ec(u(F((!t.c && (t.c = new Qe(Cn, t, 5, 8)), t.c), 0), 84)), n.a._b(c) || sn(r.c, c)); return r; } function $Mn(e, n, t) { var i, r, c; - if (e.e = t, e.d = 0, e.b = 0, e.f = 1, e.i = n, (e.e & 16) == 16 && (e.i = OTn(e.i)), e.j = e.i.length, vt(e), c = rb(e), e.d != e.j) throw $(new Kn(Yn((Un(), uVe)))); + if (e.e = t, e.d = 0, e.b = 0, e.f = 1, e.i = n, (e.e & 16) == 16 && (e.i = OTn(e.i)), e.j = e.i.length, vt(e), c = rb(e), e.d != e.j) throw $(new Kn(Yn((Un(), sVe)))); if (e.g) { for (i = 0; i < e.g.a.c.length; i++) - if (r = u(G0(e.g, i), 580), e.f <= r.a) throw $(new Kn(Yn((Un(), sVe)))); + if (r = u(G0(e.g, i), 580), e.f <= r.a) throw $(new Kn(Yn((Un(), oVe)))); e.g.a.c.length = 0; } return c; @@ -23060,9 +23150,9 @@ function WDn() { } n.Ug(); } - function YHe(e, n, t, i, r) { + function ZHe(e, n, t, i, r) { var c, s, f, h, l, a; - if (e.d && e.d.Fg(r), c = u(r.Xb(0), 26), WBe(e, t, c, !1) || (s = u(r.Xb(r.gc() - 1), 26), WBe(e, i, s, !0)) || one(e, r)) + if (e.d && e.d.Fg(r), c = u(r.Xb(0), 26), X_e(e, t, c, !1) || (s = u(r.Xb(r.gc() - 1), 26), X_e(e, i, s, !0)) || one(e, r)) return !0; for (a = r.Jc(); a.Ob(); ) for (l = u(a.Pb(), 26), h = n.Jc(); h.Ob(); ) @@ -23091,7 +23181,7 @@ function WDn() { } t || K(n, (te(), Qf), null), i || K(n, (te(), Vo), null); } - function ZHe(e, n) { + function eqe(e, n) { var t, i, r, c, s, f, h; for (t = new r2(), c = new x(e.b); c.a < c.c.c.length; ) { for (r = u(A(c), 25), h = !0, i = 0, f = new x(r.a); f.a < f.c.c.length; ) @@ -23102,11 +23192,11 @@ function WDn() { vQ(t, s); break; case 0: - _En(s, n); + BEn(s, n); default: - t.b == t.c || Hqe(t, i, h, !1, n), h = !1, i = 0; + t.b == t.c || qqe(t, i, h, !1, n), h = !1, i = 0; } - t.b == t.c || Hqe(t, i, h, !0, n); + t.b == t.c || qqe(t, i, h, !0, n); } } function IMn(e) { @@ -23116,7 +23206,7 @@ function WDn() { f = u(A(h), 9), f.p = l, ++l; ++r; } - for (c = e.r == (G1(), s4), s = c ? fen : oen, t = new x(e.i.b); t.a < t.c.c.length; ) + for (c = e.r == (G1(), s4), s = c ? hen : fen, t = new x(e.i.b); t.a < t.c.c.length; ) n = u(A(t), 25), Di(n.a, s), a5n(e.a, ie(n.p), n.a); } function gte(e, n) { @@ -23129,10 +23219,10 @@ function WDn() { } return t; } - function eqe(e, n, t) { + function nqe(e, n, t) { var i, r, c, s; for (c = (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a).i, r = new kn((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); r.e != r.i.gc(); ) - i = u(En(r), 26), (!i.a && (i.a = new ne(Qn, i, 10, 11)), i.a).i == 0 || (c += eqe(e, i, !1)); + i = u(En(r), 26), (!i.a && (i.a = new ne(Qn, i, 10, 11)), i.a).i == 0 || (c += nqe(e, i, !1)); if (t) for (s = Qt(n); s; ) c += (!s.a && (s.a = new ne(Qn, s, 10, 11)), s.a).i, s = Qt(s); @@ -23145,7 +23235,7 @@ function WDn() { function CMn(e) { var n, t, i, r, c, s, f, h, l, a; for (l = e.a, n = new vi(), h = 0, i = new x(e.d); i.a < i.c.c.length; ) { - for (t = u(A(i), 226), a = 0, _d(t.b, new Ybe()), s = Nn(t.b, 0); s.b != s.d.c; ) + for (t = u(A(i), 226), a = 0, Bd(t.b, new Zbe()), s = Nn(t.b, 0); s.b != s.d.c; ) c = u(Ln(s), 226), n.a._b(c) && (r = t.c, f = c.c, a < f.d + f.a + l && a + r.a + l > f.d && (a = f.d + f.a + l)); t.c.d = a, n.a.yc(t, n), h = m.Math.max(h, t.c.d + t.c.a); } @@ -23161,18 +23251,18 @@ function WDn() { case 4: Ni(c, t); } - for (r = new fn(dn(Jh(c).a.Jc(), new Q())); xn(r); ) + for (r = new fn(dn(Jh(c).a.Jc(), new Y())); xn(r); ) i = u(pn(r), 17), !(i.c && i.d) && (f = !i.d, h = u(y(i, Dfe), 12), f ? Ki(i, h) : br(i, h)); } } function Pr() { - Pr = G, RI = new nw("COMMENTS", 0), So = new nw("EXTERNAL_PORTS", 1), jk = new nw("HYPEREDGES", 2), BI = new nw("HYPERNODES", 3), Z5 = new nw("NON_FREE_PORTS", 4), Z2 = new nw("NORTH_SOUTH_PORTS", 5), Ek = new nw(yXe, 6), Q5 = new nw("CENTER_LABELS", 7), Y5 = new nw("END_LABELS", 8), _I = new nw("PARTITIONS", 9); + Pr = G, RI = new nw("COMMENTS", 0), So = new nw("EXTERNAL_PORTS", 1), jk = new nw("HYPEREDGES", 2), _I = new nw("HYPERNODES", 3), Z5 = new nw("NON_FREE_PORTS", 4), Z2 = new nw("NORTH_SOUTH_PORTS", 5), Ek = new nw(jXe, 6), Q5 = new nw("CENTER_LABELS", 7), Y5 = new nw("END_LABELS", 8), BI = new nw("PARTITIONS", 9); } function OMn(e, n, t, i, r) { - return i < 0 ? (i = T2(e, r, I(T(ke, 1), oe, 2, 6, [iB, rB, cB, uB, F3, sB, oB, fB, hB, lB, aB, dB]), n), i < 0 && (i = T2(e, r, I(T(ke, 1), oe, 2, 6, ["Jan", "Feb", "Mar", "Apr", F3, "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]), n)), i < 0 ? !1 : (t.k = i, !0)) : i > 0 ? (t.k = i - 1, !0) : !1; + return i < 0 ? (i = T2(e, r, I(S(ye, 1), fe, 2, 6, [i_, r_, c_, u_, F3, s_, o_, f_, h_, l_, a_, d_]), n), i < 0 && (i = T2(e, r, I(S(ye, 1), fe, 2, 6, ["Jan", "Feb", "Mar", "Apr", F3, "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]), n)), i < 0 ? !1 : (t.k = i, !0)) : i > 0 ? (t.k = i - 1, !0) : !1; } function LMn(e, n, t, i, r) { - return i < 0 ? (i = T2(e, r, I(T(ke, 1), oe, 2, 6, [iB, rB, cB, uB, F3, sB, oB, fB, hB, lB, aB, dB]), n), i < 0 && (i = T2(e, r, I(T(ke, 1), oe, 2, 6, ["Jan", "Feb", "Mar", "Apr", F3, "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]), n)), i < 0 ? !1 : (t.k = i, !0)) : i > 0 ? (t.k = i - 1, !0) : !1; + return i < 0 ? (i = T2(e, r, I(S(ye, 1), fe, 2, 6, [i_, r_, c_, u_, F3, s_, o_, f_, h_, l_, a_, d_]), n), i < 0 && (i = T2(e, r, I(S(ye, 1), fe, 2, 6, ["Jan", "Feb", "Mar", "Apr", F3, "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]), n)), i < 0 ? !1 : (t.k = i, !0)) : i > 0 ? (t.k = i - 1, !0) : !1; } function DMn(e, n, t, i, r, c) { var s, f, h, l; @@ -23183,28 +23273,28 @@ function WDn() { } return f == 32 && n[0] - t == 2 && r.b == 2 && (h = new HA(), l = h.q.getFullYear() - z1 + z1 - 80, s = l % 100, c.a = i == s, i += (l / 100 | 0) * 100 + (i < s ? 100 : 0)), c.p = i, !0; } - function nqe(e, n) { + function tqe(e, n) { var t, i, r, c, s; Qt(e) && (s = u(y(n, (ae(), d0)), 182), z(re(e, oi)) === z((Ui(), ad)) && Pt(e, oi, Sh), i = (xd(), new b1(Qt(e))), c = new Ix(Qt(e) ? new b1(Qt(e)) : null, e), r = fie(i, c, !1, !0), mf(s, (Js(), Cg)), t = u(y(n, t4), 8), t.a = m.Math.max(r.a, t.a), t.b = m.Math.max(r.b, t.b)); } function NMn(e) { var n, t, i, r, c, s; - for (c = new vi(), n = new aw((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)), r = new fn(dn(J1(e).a.Jc(), new Q())); xn(r); ) + for (c = new vi(), n = new aw((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)), r = new fn(dn(J1(e).a.Jc(), new Y())); xn(r); ) i = u(pn(r), 85), N(F((!i.b && (i.b = new Qe(Cn, i, 4, 7)), i.b), 0), 193) || (s = ec(u(F((!i.c && (i.c = new Qe(Cn, i, 5, 8)), i.c), 0), 84)), n.a._b(s) || (t = c.a.yc(s, c), t == null)); return c; } function e5() { - e5 = G, z1e = I(T(Gb, 1), mWe, 30, 14, [1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, 479001600, 6227020800, 87178291200, 1307674368e3, { l: 3506176, m: 794077, h: 1 }, { l: 884736, m: 916411, h: 20 }, { l: 3342336, m: 3912489, h: 363 }, { l: 589824, m: 3034138, h: 6914 }, { l: 3407872, m: 1962506, h: 138294 }]), m.Math.pow(2, -65); + e5 = G, z1e = I(S(Gb, 1), vWe, 30, 14, [1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, 479001600, 6227020800, 87178291200, 1307674368e3, { l: 3506176, m: 794077, h: 1 }, { l: 884736, m: 916411, h: 20 }, { l: 3342336, m: 3912489, h: 363 }, { l: 589824, m: 3034138, h: 6914 }, { l: 3407872, m: 1962506, h: 138294 }]), m.Math.pow(2, -65); } function n5() { n5 = G; var e, n; - for (K3 = W(z2, oe, 91, 32, 0, 1), ak = W(z2, oe, 91, 32, 0, 1), e = 1, n = 0; n <= 18; n++) + for (K3 = W(z2, fe, 91, 32, 0, 1), ak = W(z2, fe, 91, 32, 0, 1), e = 1, n = 0; n <= 18; n++) K3[n] = (Uh(), iu(e, 0) >= 0 ? F1(e) : x6(F1(Na(e)))), ak[n] = gx(hl(e, n), 0) ? F1(hl(e, n)) : x6(F1(Na(hl(e, n)))), e = gr(e, 5); for (; n < ak.length; n++) K3[n] = l2(K3[n - 1], K3[1]), ak[n] = l2(ak[n - 1], (Uh(), UJ)); } - function tqe(e, n) { + function iqe(e, n) { var t, i, r, c, s; if (e.c.length == 0) return new Ar(ie(0), ie(0)); @@ -23216,7 +23306,7 @@ function WDn() { } function FMn(e, n, t, i) { var r, c, s, f, h, l, a; - h = wc(n, t), (t == (be(), Mn) || t == an) && (h = _s(h)), s = !1; + h = wc(n, t), (t == (be(), Mn) || t == an) && (h = Bs(h)), s = !1; do for (r = !1, c = 0; c < h.gc() - 1; c++) l = u(h.Xb(c), 12), f = u(h.Xb(c + 1), 12), Ojn(e, l, f, i) && (s = !0, FD(e.a, u(h.Xb(c), 12), u(h.Xb(c + 1), 12)), a = u(h.Xb(c + 1), 12), h.fd(c + 1, u(h.Xb(c), 12)), h.fd(c, a), r = !0); @@ -23225,7 +23315,7 @@ function WDn() { } function RMn(e, n, t) { var i, r, c, s; - for (t.Tg(_Xe, 1), r = u(fs(mt(new Ge(null, new He(n.b, 16)), new Tme()), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), TGe(e, r, 0), s = Nn(n.b, 0); s.b != s.d.c; ) + for (t.Tg(JXe, 1), r = u(fs(mt(new Ge(null, new He(n.b, 16)), new Sme()), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), SGe(e, r, 0), s = Nn(n.b, 0); s.b != s.d.c; ) c = u(Ln(s), 40), i = rn(e.a, ie(c.g)) != null ? u(rn(e.a, ie(c.g)), 15).a : 0, K(c, (Ac(), rl), ie(i)); t.Ug(); } @@ -23233,7 +23323,7 @@ function WDn() { var i, r, c, s, f, h, l, a; return f = n.i - e.g / 2, h = t.i - e.g / 2, l = n.j - e.g / 2, a = t.j - e.g / 2, c = n.g + e.g, s = t.g + e.g, i = n.f + e.g, r = t.f + e.g, f < h + s && h < f && l < a + r && a < l || h < f + c && f < h && a < l + i && l < a || f < h + s && h < f && l < a && a < l + i ? !0 : h < f + c && f < h && l < a + r && a < l; } - function BMn(e, n, t) { + function _Mn(e, n, t) { var i, r, c, s, f, h, l, a, d, g; for (c = n.c.length, s = (qe(t, n.c.length), u(n.c[t], 294)), f = s.a.o.a, d = s.c, g = 0, l = s.c; l <= s.f; l++) { if (f <= e.a[l]) @@ -23244,9 +23334,9 @@ function WDn() { } return d; } - function _Mn(e) { + function BMn(e) { var n, t, i, r, c, s, f; - for (c = new Ma(u(Jn(new ewe()), 51)), f = Ri, t = new x(e.d); t.a < t.c.c.length; ) { + for (c = new Ma(u(Jn(new nwe()), 51)), f = Ri, t = new x(e.d); t.a < t.c.c.length; ) { for (n = u(A(t), 226), f = n.c.c; c.a.gc() != 0 && (s = u(c.a.Rc(), 226), s.c.c + s.c.b < f); ) c.a.Ac(s) != null; for (r = c.a.ec().Jc(); r.Ob(); ) @@ -23254,12 +23344,12 @@ function WDn() { c.a.yc(n, (en(), Y1)) == null; } } - function iqe(e, n, t) { + function rqe(e, n, t) { var i, r, c, s, f; if (!yw(n)) { - for (f = t.dh((N(n, 18) ? u(n, 18).gc() : _f(n.Jc())) / e.a | 0), f.Tg(JXe, 1), s = new Ime(), c = null, r = n.Jc(); r.Ob(); ) - i = u(r.Pb(), 40), s = vo(I(T(To, 1), Ve, 20, 0, [s, new Bl(i)])), c && (K(c, (Bt(), Yrn), i), K(i, iq, c), QD(i) == QD(c) && (K(c, rq, i), K(i, jC, c))), c = i; - f.Ug(), iqe(e, s, t); + for (f = t.dh((N(n, 18) ? u(n, 18).gc() : Bf(n.Jc())) / e.a | 0), f.Tg(GXe, 1), s = new Cme(), c = null, r = n.Jc(); r.Ob(); ) + i = u(r.Pb(), 40), s = vo(I(S(To, 1), Ve, 20, 0, [s, new _l(i)])), c && (K(c, (_t(), Zrn), i), K(i, iq, c), QD(i) == QD(c) && (K(c, rq, i), K(i, jC, c))), c = i; + f.Ug(), rqe(e, s, t); } } function JMn(e, n) { @@ -23270,7 +23360,7 @@ function WDn() { return t; } else for (i = (!e.a && (e.a = new ne(wa, e, 9, 5)), new kn(e.a)); i.e != i.i.gc(); ) - if (t = u(En(i), 684), _e(n, (r = t.c, r ?? t.zb))) + if (t = u(En(i), 684), Be(n, (r = t.c, r ?? t.zb))) return t; return null; } @@ -23291,25 +23381,25 @@ function WDn() { } return !t && (t = u(e.e.mf((tt(), jde)), 257)), t; } - function rqe(e, n, t) { + function cqe(e, n, t) { var i, r, c, s, f, h; for (r = t, c = 0, f = new x(n); f.a < f.c.c.length; ) - s = u(A(f), 26), Pt(s, (_1(), TC), ie(r++)), h = Jw(s), i = m.Math.atan2(s.j + s.f / 2, s.i + s.g / 2), i += i < 0 ? t0 : 0, i < 0.7853981633974483 || i > QXe ? Di(h, e.b) : i <= QXe && i > YXe ? Di(h, e.d) : i <= YXe && i > ZXe ? Di(h, e.c) : i <= ZXe && Di(h, e.a), c = rqe(e, h, c); + s = u(A(f), 26), Pt(s, (B1(), TC), ie(r++)), h = Jw(s), i = m.Math.atan2(s.j + s.f / 2, s.i + s.g / 2), i += i < 0 ? t0 : 0, i < 0.7853981633974483 || i > YXe ? Di(h, e.b) : i <= YXe && i > ZXe ? Di(h, e.d) : i <= ZXe && i > eKe ? Di(h, e.c) : i <= eKe && Di(h, e.a), c = cqe(e, h, c); return r; } - function cqe(e, n, t, i) { + function uqe(e, n, t, i) { var r, c, s, f, h, l; - for (r = (i.c + i.a) / 2, Fs(n.j), rt(n.j, r), Fs(t.e), rt(t.e, r), l = new sEe(), f = new x(e.f); f.a < f.c.c.length; ) + for (r = (i.c + i.a) / 2, Fs(n.j), rt(n.j, r), Fs(t.e), rt(t.e, r), l = new oEe(), f = new x(e.f); f.a < f.c.c.length; ) c = u(A(f), 133), h = c.a, GF(l, n, h), GF(l, t, h); for (s = new x(e.k); s.a < s.c.c.length; ) c = u(A(s), 133), h = c.b, GF(l, n, h), GF(l, t, h); - return l.b += 2, l.a += YIe(n, e.q), l.a += YIe(e.q, t), l; + return l.b += 2, l.a += ZIe(n, e.q), l.a += ZIe(e.q, t), l; } function GMn(e, n, t) { var i; - t.Tg("Processor arrange node", 1), ve(me(y(n, (Ac(), fae)))), i = u(Ls(Zl(mt(new Ge(null, new He(n.b, 16)), new qme()))), 40), e.a = u(y(n, mae), 353), e.a == (W6(), oq) || e.a == xC ? pze(e, new yc(I(T(yC, 1), kS, 40, 0, [i])), t.dh(1)) : e.a == sq && qze(e, new yc(I(T(yC, 1), kS, 40, 0, [i])), t.dh(1)), t.Ug(); + t.Tg("Processor arrange node", 1), ve(me(y(n, (Ac(), fae)))), i = u(Ls(Zl(mt(new Ge(null, new He(n.b, 16)), new Ume()))), 40), e.a = u(y(n, mae), 353), e.a == (W6(), oq) || e.a == xC ? mze(e, new yc(I(S(yC, 1), kS, 40, 0, [i])), t.dh(1)) : e.a == sq && Uze(e, new yc(I(S(yC, 1), kS, 40, 0, [i])), t.dh(1)), t.Ug(); } - function uqe(e) { + function sqe(e) { var n, t, i, r, c, s, f; for (t = e.i, n = e.n, f = t.d, e.f == (Nu(), ed) ? f += (t.a - e.e.b) / 2 : e.f == xf && (f += t.a - e.e.b), r = new x(e.d); r.a < r.c.c.length; ) { switch (i = u(A(r), 187), s = i.Kf(), c = new er(), c.b = f, f += s.b + e.a, e.b.g) { @@ -23325,7 +23415,7 @@ function WDn() { i.Mf(c); } } - function sqe(e) { + function oqe(e) { var n, t, i, r, c, s, f; for (t = e.i, n = e.n, f = t.c, e.b == (hs(), Z1) ? f += (t.b - e.e.a) / 2 : e.b == Af && (f += t.b - e.e.a), r = new x(e.d); r.a < r.c.c.length; ) { switch (i = u(A(r), 187), s = i.Kf(), c = new er(), c.a = f, f += s.a + e.a, e.f.g) { @@ -23343,12 +23433,12 @@ function WDn() { } function HMn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v; - a = t.a.c, s = t.a.c + t.a.b, c = u(rn(t.c, n), 457), p = c.f, v = c.a, h = new ue(a, p), d = new ue(s, v), r = a, t.p || (r += e.c), r += t.F + t.v * e.b, l = new ue(r, p), g = new ue(r, v), J6(n.a, I(T(Ji, 1), oe, 8, 0, [h, l])), f = t.d.a.gc() > 1, f && (i = new ue(r, t.b), rt(n.a, i)), J6(n.a, I(T(Ji, 1), oe, 8, 0, [g, d])); + a = t.a.c, s = t.a.c + t.a.b, c = u(rn(t.c, n), 457), p = c.f, v = c.a, h = new ue(a, p), d = new ue(s, v), r = a, t.p || (r += e.c), r += t.F + t.v * e.b, l = new ue(r, p), g = new ue(r, v), J6(n.a, I(S(Ji, 1), fe, 8, 0, [h, l])), f = t.d.a.gc() > 1, f && (i = new ue(r, t.b), rt(n.a, i)), J6(n.a, I(S(Ji, 1), fe, 8, 0, [g, d])); } function pte(e, n, t) { var i, r; - for (n < e.d.b.c.length ? (e.b = u(pe(e.d.b, n), 25), e.a = u(pe(e.d.b, n - 1), 25), e.c = n) : (e.a = new Jc(e.d), e.a.p = n - 1, he(e.d.b, e.a), e.b = new Jc(e.d), e.b.p = n, he(e.d.b, e.b), e.c = n), Ni(t, e.b), r = new fn(dn(bi(t).a.Jc(), new Q())); xn(r); ) - i = u(pn(r), 17), !i.c.i.c && i.c.i.k == (cn(), _c) && Ni(i.c.i, e.a); + for (n < e.d.b.c.length ? (e.b = u(pe(e.d.b, n), 25), e.a = u(pe(e.d.b, n - 1), 25), e.c = n) : (e.a = new Jc(e.d), e.a.p = n - 1, he(e.d.b, e.a), e.b = new Jc(e.d), e.b.p = n, he(e.d.b, e.b), e.c = n), Ni(t, e.b), r = new fn(dn(bi(t).a.Jc(), new Y())); xn(r); ) + i = u(pn(r), 17), !i.c.i.c && i.c.i.k == (cn(), Bc) && Ni(i.c.i, e.a); } function qMn(e, n) { var t, i, r, c; @@ -23357,8 +23447,8 @@ function WDn() { for (r = wc(n, ln).Jc(); r.Ob(); ) i = u(r.Pb(), 12), t = u(y(i, (te(), ds)), 9), t && yf(ff(of(hf(sf(new Ro(), 0), 0.1), e.i[t.p].d), e.i[n.p].a)); } - function oqe(e) { - ew(e, new sb(Yb(Kb(Qb(Vb(new S0(), $S), "ELK Randomizer"), 'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'), new d5e()))), se(e, $S, Qw, t0e), se(e, $S, Vw, 15), se(e, $S, KT, ie(0)), se(e, $S, v5, m5); + function fqe(e) { + ew(e, new sb(Yb(Kb(Qb(Vb(new S0(), $S), "ELK Randomizer"), 'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'), new b5e()))), se(e, $S, Qw, t0e), se(e, $S, Vw, 15), se(e, $S, KT, ie(0)), se(e, $S, v5, m5); } function mte() { mte = G; @@ -23374,8 +23464,8 @@ function WDn() { for (c = 0; c < 10; c++) wP[c] = 48 + c & Ti; for (e = 10; e <= 15; e++) wP[e] = 65 + e - 10 & Ti; } - function fqe(e, n) { - n.Tg("Process graph bounds", 1), K(e, (Bt(), nq), ey(TN(pw(new Ge(null, new He(e.b, 16)), new yme())))), K(e, tq, ey(TN(pw(new Ge(null, new He(e.b, 16)), new jme())))), K(e, tae, ey(MN(pw(new Ge(null, new He(e.b, 16)), new Eme())))), K(e, iae, ey(MN(pw(new Ge(null, new He(e.b, 16)), new Ame())))), n.Ug(); + function hqe(e, n) { + n.Tg("Process graph bounds", 1), K(e, (_t(), nq), ey(TN(pw(new Ge(null, new He(e.b, 16)), new jme())))), K(e, tq, ey(TN(pw(new Ge(null, new He(e.b, 16)), new Eme())))), K(e, tae, ey(MN(pw(new Ge(null, new He(e.b, 16)), new Ame())))), K(e, iae, ey(MN(pw(new Ge(null, new He(e.b, 16)), new xme())))), n.Ug(); } function UMn(e) { var n, t, i, r, c; @@ -23386,12 +23476,12 @@ function WDn() { for (n = !1, t = 0, r = new x(e.d.b); r.a < r.c.c.length; ) for (i = u(A(r), 25), i.p = t++, s = new x(i.a); s.a < s.c.c.length; ) c = u(A(s), 9), !n && !yw(Jh(c)) && (n = !0); - f = Rt((Mi(), Th), I(T(a8, 1), ce, 86, 0, [Qr, nc])), n || (mf(f, Io), mf(f, Mh)), e.a = new RDe(f), Fc(e.f), Fc(e.b), Fc(e.e), Fc(e.g); + f = Rt((Mi(), Th), I(S(a8, 1), ce, 86, 0, [Qr, nc])), n || (mf(f, Io), mf(f, Mh)), e.a = new _De(f), Fc(e.f), Fc(e.b), Fc(e.e), Fc(e.g); } function gR(e) { var n, t, i, r, c, s; if (!e.c) { - if (s = new R5e(), n = x8, c = n.a.yc(e, n), c == null) { + if (s = new _5e(), n = x8, c = n.a.yc(e, n), c == null) { for (i = new kn(Hc(e)); i.e != i.i.gc(); ) t = u(En(i), 87), r = ST(t), N(r, 88) && hi(s, gR(u(r, 29))), Dn(s, t); n.a.Ac(e) != null, n.a.gc() == 0; @@ -23433,16 +23523,16 @@ function WDn() { } return n; } - function hqe(e) { + function lqe(e) { var n, t, i, r, c; if (e.l == 0 && e.m == 0 && e.h == 0) return "0"; if (e.h == hj && e.m == 0 && e.l == 0) return "-9223372036854775808"; if (e.h >> 19 != 0) - return "-" + hqe(Sv(e)); + return "-" + lqe(Sv(e)); for (t = e, i = ""; !(t.l == 0 && t.m == 0 && t.h == 0); ) { - if (r = WD(HT), t = tie(t, r, !0), n = "" + xEe(Q1), !(t.l == 0 && t.m == 0 && t.h == 0)) + if (r = WD(HT), t = tie(t, r, !0), n = "" + $Ee(Q1), !(t.l == 0 && t.m == 0 && t.h == 0)) for (c = 9 - n.length; c > 0; c--) n = "0" + n; i = n + i; @@ -23460,7 +23550,7 @@ function WDn() { } function XMn(e, n, t) { var i, r, c, s, f, h, l, a, d; - for (i = t.c, r = t.d, f = oh(n.c), h = oh(n.d), i == n.c ? (f = ite(e, f, r), h = lJe(n.d)) : (f = lJe(n.c), h = ite(e, h, r)), l = new PA(n.a), ti(l, f, l.a, l.a.a), ti(l, h, l.c.b, l.c), s = n.c == i, d = new Z7e(), c = 0; c < l.b - 1; ++c) + for (i = t.c, r = t.d, f = oh(n.c), h = oh(n.d), i == n.c ? (f = ite(e, f, r), h = aJe(n.d)) : (f = aJe(n.c), h = ite(e, h, r)), l = new PA(n.a), ti(l, f, l.a, l.a.a), ti(l, h, l.c.b, l.c), s = n.c == i, d = new eje(), c = 0; c < l.b - 1; ++c) a = new Ar(u(qc(l, c), 8), u(qc(l, c + 1), 8)), s && c == 0 || !s && c == l.b - 2 ? d.b = a : he(d.a, a); return d; } @@ -23485,7 +23575,7 @@ function WDn() { } function kte(e, n, t, i) { var r, c, s, f, h; - if (_f((xy(), new fn(dn(Jh(n).a.Jc(), new Q())))) >= e.a || !Yee(n, t)) + if (Bf((xy(), new fn(dn(Jh(n).a.Jc(), new Y())))) >= e.a || !Yee(n, t)) return -1; if (yw(u(i.Kb(n), 20))) return 1; @@ -23495,9 +23585,9 @@ function WDn() { return r + 1; } function gh() { - gh = G, OC = new nr((tt(), a4), 1.3), yun = new nr($g, (en(), !1)), c1e = new N0(15), t8 = new nr(Ml, c1e), i8 = new nr(i1, 15), pun = $E, kun = v0, jun = mp, Eun = fd, vun = pp, Iq = IE, Aun = Mg, f1e = (Bte(), bun), o1e = dun, Pq = gun, h1e = wun, r1e = hun, Cq = fun, i1e = oun, s1e = aun, n1e = SE, mun = nU, kE = cun, e1e = run, yE = uun, u1e = lun, t1e = sun; + gh = G, OC = new nr((tt(), a4), 1.3), jun = new nr($g, (en(), !1)), c1e = new N0(15), t8 = new nr(Ml, c1e), i8 = new nr(i1, 15), mun = $E, yun = v0, Eun = mp, Aun = fd, kun = pp, Iq = IE, xun = Mg, f1e = (_te(), wun), o1e = bun, Pq = pun, h1e = gun, r1e = lun, Cq = hun, i1e = fun, s1e = dun, n1e = SE, vun = nU, kE = uun, e1e = cun, yE = sun, u1e = aun, t1e = oun; } - function lqe(e, n) { + function aqe(e, n) { var t, i, r, c, s, f; if (z(n) === z(e)) return !0; @@ -23513,7 +23603,7 @@ function WDn() { return !1; return !0; } - function aqe(e, n) { + function dqe(e, n) { var t, i, r, c, s, f; if (e.f > 0) { if (e.Zj(), n != null) { @@ -23542,7 +23632,7 @@ function WDn() { } function QMn(e, n, t) { var i, r, c, s; - t.Tg("Orthogonally routing hierarchical port edges", 1), e.a = 0, i = HIn(n), YCn(n, i), DCn(e, n, i), QPn(n), r = u(y(n, (ae(), oi)), 102), c = n.b, bze((qe(0, c.c.length), u(c.c[0], 25)), r, n), bze(u(pe(c, c.c.length - 1), 25), r, n), s = n.b, $Ue((qe(0, s.c.length), u(s.c[0], 25))), $Ue(u(pe(s, s.c.length - 1), 25)), t.Ug(); + t.Tg("Orthogonally routing hierarchical port edges", 1), e.a = 0, i = HIn(n), YCn(n, i), DCn(e, n, i), QPn(n), r = u(y(n, (ae(), oi)), 102), c = n.b, wze((qe(0, c.c.length), u(c.c[0], 25)), r, n), wze(u(pe(c, c.c.length - 1), 25), r, n), s = n.b, MUe((qe(0, s.c.length), u(s.c[0], 25))), MUe(u(pe(s, s.c.length - 1), 25)), t.Ug(); } function yte(e) { switch (e) { @@ -23575,32 +23665,32 @@ function WDn() { throw $(new Dh("Invalid hexadecimal")); } } - function dqe(e, n, t, i) { + function bqe(e, n, t, i) { var r, c, s, f, h, l; for (h = JF(e, t), l = JF(n, t), r = !1; h && l && (i || eyn(h, l, t)); ) s = JF(h, t), f = JF(l, t), Yy(n), Yy(e), c = h.c, JR(h, !1), JR(l, !1), t ? (R1(n, l.p, c), n.p = l.p, R1(e, h.p + 1, c), e.p = h.p) : (R1(e, h.p, c), e.p = h.p, R1(n, l.p + 1, c), n.p = l.p), Ni(h, null), Ni(l, null), h = s, l = f, r = !0; return r; } - function bqe(e) { + function wqe(e) { switch (e.g) { case 0: - return new b9e(); + return new w9e(); case 1: - return new p9e(); + return new m9e(); case 3: - return new EAe(); + return new AAe(); case 4: - return new h3e(); + return new l3e(); case 5: - return new YMe(); + return new ZMe(); case 6: - return new v9e(); + return new k9e(); case 2: - return new m9e(); + return new v9e(); case 7: - return new o9e(); + return new f9e(); case 8: - return new u9e(); + return new s9e(); default: throw $(new on("No implementation is available for the layerer " + (e.f != null ? e.f : "" + e.g))); } @@ -23639,7 +23729,7 @@ function WDn() { case 4: i = (ns(), aoe); } - return r && i ? Zp(e.j, new q9e(new yc(I(T(ALn, 1), Ve, 178, 0, [u(Jn(r), 178), u(Jn(i), 178)])))) : (ze(), ze(), $r); + return r && i ? Zp(e.j, new U9e(new yc(I(S(ALn, 1), Ve, 178, 0, [u(Jn(r), 178), u(Jn(i), 178)])))) : (ze(), ze(), $r); } function ZMn(e) { var n, t, i; @@ -23648,7 +23738,7 @@ function WDn() { K(e, tl, (wl(), GC)); break; case 2: - K(e, tl, (wl(), _C)); + K(e, tl, (wl(), BC)); break; case 3: K(e, tl, (wl(), AE)); @@ -23658,14 +23748,14 @@ function WDn() { } (e.q ? e.q : (ze(), ze(), El))._b(pg) && (t = u(y(e, pg), 8), i = t.a, t.a = t.b, t.b = i); } - function wqe(e, n, t, i, r, c) { + function gqe(e, n, t, i, r, c) { if (this.b = t, this.d = r, e >= n.length) throw $(new lu("Greedy SwitchDecider: Free layer not in graph.")); - this.c = n[e], this.e = new Ay(i), jN(this.e, this.c, (be(), an)), this.i = new Ay(i), jN(this.i, this.c, gn), this.f = new ESe(this.c), this.a = !c && r.i && !r.s && this.c[0].k == (cn(), Ai), this.a && kEn(this, e, n.length); + this.c = n[e], this.e = new Ay(i), jN(this.e, this.c, (be(), an)), this.i = new Ay(i), jN(this.i, this.c, gn), this.f = new ASe(this.c), this.a = !c && r.i && !r.s && this.c[0].k == (cn(), Ai), this.a && kEn(this, e, n.length); } - function gqe(e, n) { + function pqe(e, n) { var t, i, r, c, s, f; - c = !e.B.Gc((Ms(), JE)), s = e.B.Gc(bU), e.a = new ZRe(s, c, e.c), e.n && zV(e.a.n, e.n), hO(e.g, (qf(), ku), e.a), n || (i = new c9(1, c, e.c), i.n.a = e.k, r3(e.p, (be(), ln), i), r = new c9(1, c, e.c), r.n.d = e.k, r3(e.p, Mn, r), f = new c9(0, c, e.c), f.n.c = e.k, r3(e.p, an, f), t = new c9(0, c, e.c), t.n.b = e.k, r3(e.p, gn, t)); + c = !e.B.Gc((Ms(), JE)), s = e.B.Gc(bU), e.a = new e_e(s, c, e.c), e.n && zV(e.a.n, e.n), hO(e.g, (qf(), ku), e.a), n || (i = new c9(1, c, e.c), i.n.a = e.k, r3(e.p, (be(), ln), i), r = new c9(1, c, e.c), r.n.d = e.k, r3(e.p, Mn, r), f = new c9(0, c, e.c), f.n.c = e.k, r3(e.p, an, f), t = new c9(0, c, e.c), t.n.b = e.k, r3(e.p, gn, t)); } function eTn(e) { var n, t, i; @@ -23674,18 +23764,18 @@ function WDn() { t = GOn(e); break; case 3: - t = (i = new le(), fi(mt(du(cc(cc(new Ge(null, new He(e.d.b, 16)), new mpe()), new vpe()), new kpe()), new ipe()), new F8e(i)), i); + t = (i = new le(), fi(mt(du(cc(cc(new Ge(null, new He(e.d.b, 16)), new vpe()), new kpe()), new ype()), new rpe()), new R8e(i)), i); break; default: throw $(new qr("Compaction not supported for " + n + " edges.")); } - aCn(e, t), fr(new Fl(e.g), new O8e(e)); + aCn(e, t), fr(new Fl(e.g), new L8e(e)); } function nTn(e, n) { var t, i, r, c, s, f, h; if (n.Tg("Process directions", 1), t = u(y(e, (Ac(), Fb)), 86), t != (Mi(), Mh)) for (r = Nn(e.b, 0); r.b != r.d.c; ) { - switch (i = u(Ln(r), 40), f = u(y(i, (Bt(), pE)), 15).a, h = u(y(i, mE), 15).a, t.g) { + switch (i = u(Ln(r), 40), f = u(y(i, (_t(), pE)), 15).a, h = u(y(i, mE), 15).a, t.g) { case 4: h *= -1; break; @@ -23701,9 +23791,9 @@ function WDn() { } function tTn(e) { var n, t, i, r, c, s, f, h; - for (h = new OOe(), f = new x(e.a); f.a < f.c.c.length; ) + for (h = new LOe(), f = new x(e.a); f.a < f.c.c.length; ) if (s = u(A(f), 9), s.k != (cn(), Ai)) { - for (fxn(h, s, new er()), c = new fn(dn(Ht(s).a.Jc(), new Q())); xn(c); ) + for (fxn(h, s, new er()), c = new fn(dn(Ht(s).a.Jc(), new Y())); xn(c); ) if (r = u(pn(c), 17), !(r.c.i.k == Ai || r.d.i.k == Ai)) for (i = Nn(r.a, 0); i.b != i.d.c; ) t = u(Ln(i), 8), n = t, h9(h, new Xm(n.a, n.b)); @@ -23711,61 +23801,61 @@ function WDn() { return h; } function mR() { - mR = G, N1e = new It(H_), D1e = (U4(), EE), L1e = new Fe(z_, D1e), O1e = (a7(), BC), Xun = new Fe(uue, O1e), P1e = (F7(), _q), Wun = new Fe(sue, P1e), qun = new Fe(q_, null), C1e = (Wy(), FC), zun = new Fe(U_, C1e), I1e = (_A(), Fq), _un = new Fe(oue, I1e), Jun = new Fe(fue, (en(), !1)), Gun = new Fe(hue, ie(64)), Hun = new Fe(lue, !0), Uun = Bq; + mR = G, N1e = new It(HB), D1e = (U4(), EE), L1e = new Fe(zB, D1e), O1e = (a7(), _C), Kun = new Fe(uue, O1e), P1e = (F7(), Bq), Xun = new Fe(sue, P1e), Uun = new Fe(qB, null), C1e = (Wy(), FC), Wun = new Fe(UB, C1e), I1e = (BA(), Fq), Jun = new Fe(oue, I1e), Gun = new Fe(fue, (en(), !1)), Hun = new Fe(hue, ie(64)), qun = new Fe(lue, !0), zun = _q; } - function pqe(e, n) { + function mqe(e, n) { var t, i, r, c, s, f, h, l, a, d; for (e.p = 1, r = e.c, d = new ul(), a = ib(e, (Cr(), yu)).Jc(); a.Ob(); ) for (l = u(a.Pb(), 12), i = new x(l.g); i.a < i.c.c.length; ) t = u(A(i), 17), h = t.d.i, e != h && (c = h.c, c.p <= r.p && (s = r.p + 1, s == n.b.c.length ? (f = new Jc(n), f.p = s, he(n.b, f), Ni(h, f)) : (f = u(pe(n.b, s), 25), Ni(h, f)), d.a.yc(h, d))); return d; } - function mqe(e) { + function vqe(e) { switch (e.g) { case 0: return new hV(); case 1: - return new l9e(); - case 2: return new a9e(); + case 2: + return new d9e(); case 3: - return new s9e(); + return new o9e(); case 4: - return new mxe(); + return new vxe(); case 5: - return new kxe(); + return new yxe(); case 6: - return new vxe(); + return new kxe(); case 7: - return new f9e(); - case 8: return new h9e(); + case 8: + return new l9e(); default: throw $(new on("No implementation is available for the cycle breaker " + (e.f != null ? e.f : "" + e.g))); } } function iTn(e, n) { var t, i; - if (t = u(y(e, (Bt(), YH)), 16), !t || t.gc() < 1) + if (t = u(y(e, (_t(), YH)), 16), !t || t.gc() < 1) return null; if (t.gc() == 1) return u(t.Xb(0), 40); switch (i = null, n.g) { case 2: - i = u(Ls(t3(t.Mc(), new mme())), 40); + i = u(Ls(t3(t.Mc(), new vme())), 40); break; case 1: - i = u(Ls(dw(t.Mc(), new bme())), 40); + i = u(Ls(dw(t.Mc(), new wme())), 40); break; case 4: - i = u(Ls(t3(t.Mc(), new wme())), 40); + i = u(Ls(t3(t.Mc(), new gme())), 40); break; case 3: - i = u(Ls(dw(t.Mc(), new gme())), 40); + i = u(Ls(dw(t.Mc(), new pme())), 40); } return i; } - function vqe(e) { + function kqe(e) { var n, t, i, r, c, s; if (e.a == null) if (e.a = W(zu, zf, 30, e.c.b.c.length, 16, 1), e.a[0] = !1, Et(e.c, (ae(), SH))) @@ -23773,12 +23863,12 @@ function WDn() { n = u(t.Pb(), 15).a, n > 0 && n < e.a.length && (e.a[n] = !1); else for (s = new x(e.c.b), s.a < s.c.c.length && A(s), r = 1; s.a < s.c.c.length; ) - c = u(A(s), 25), e.a[r++] = _xn(c); + c = u(A(s), 25), e.a[r++] = Bxn(c); } function gl() { - gl = G, e8 = new It("additionalHeight"), l4 = new It("drawingHeight"), dm = new It("drawingWidth"), CC = new It("minHeight"), n8 = new It("minWidth"), PC = new It("rows"), Eg = new It("targetWidth"), Tq = new zt("minRowIncrease", 0), tun = new zt("maxRowIncrease", 0), Mq = new zt("minRowDecrease", 0), nun = new zt("maxRowDecrease", 0); + gl = G, e8 = new It("additionalHeight"), l4 = new It("drawingHeight"), dm = new It("drawingWidth"), CC = new It("minHeight"), n8 = new It("minWidth"), PC = new It("rows"), Eg = new It("targetWidth"), Tq = new zt("minRowIncrease", 0), iun = new zt("maxRowIncrease", 0), Mq = new zt("minRowDecrease", 0), tun = new zt("maxRowDecrease", 0); } - function kqe(e, n) { + function yqe(e, n) { var t, i, r, c; switch (r = e.b, n) { case 1: { @@ -23804,18 +23894,18 @@ function WDn() { } if (e.b != r && e.c) for (i = new kn(e.c); i.e != i.i.gc(); ) - c = u(En(i), 471), t = ks(c), Bw(t, n); + c = u(En(i), 471), t = ks(c), _w(t, n); } - function yqe(e, n, t, i) { + function jqe(e, n, t, i) { var r, c, s, f, h, l, a, d, g, p, v; for (r = !1, s = n, f = 0, h = s.length; f < h; ++f) - c = s[f], ve((en(), !!c.e)) && !u(pe(e.b, c.e.p), 218).s && (r = r | (l = c.e, a = u(pe(e.b, l.p), 218), d = a.e, g = fEe(t, d.length), p = d[g][0], p.k == (cn(), Ai) ? d[g] = L$n(c, d[g], t ? (be(), an) : (be(), gn)) : a.c.kg(d, t), v = W7(e, a, t, i), bte(a.e, a.o, t), v)); + c = s[f], ve((en(), !!c.e)) && !u(pe(e.b, c.e.p), 218).s && (r = r | (l = c.e, a = u(pe(e.b, l.p), 218), d = a.e, g = hEe(t, d.length), p = d[g][0], p.k == (cn(), Ai) ? d[g] = L$n(c, d[g], t ? (be(), an) : (be(), gn)) : a.c.kg(d, t), v = W7(e, a, t, i), bte(a.e, a.o, t), v)); return r; } - function jqe(e, n) { + function Eqe(e, n) { var t, i, r, c, s; for (c = (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a).i, r = new kn((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); r.e != r.i.gc(); ) - i = u(En(r), 26), z(re(i, (tt(), wp))) !== z((ea(), b8)) && (s = u(re(n, Tg), 144), t = u(re(i, Tg), 144), (s == t || s && PQ(s, t)) && (!i.a && (i.a = new ne(Qn, i, 10, 11)), i.a).i != 0 && (c += jqe(e, i))); + i = u(En(r), 26), z(re(i, (tt(), wp))) !== z((ea(), b8)) && (s = u(re(n, Tg), 144), t = u(re(i, Tg), 144), (s == t || s && PQ(s, t)) && (!i.a && (i.a = new ne(Qn, i, 10, 11)), i.a).i != 0 && (c += Eqe(e, i))); return c; } function rTn(e) { @@ -23837,7 +23927,7 @@ function WDn() { function cTn(e) { var n, t, i, r, c, s, f; for (i = 0, f = 0, s = new x(e.d); s.a < s.c.c.length; ) - c = u(A(s), 107), r = u(fs(mt(new Ge(null, new He(c.j, 16)), new YU()), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), t = null, i <= f ? (t = (be(), ln), i += r.gc()) : f < i && (t = (be(), Mn), f += r.gc()), n = t, fi(du(r.Mc(), new Bpe()), new _8e(n)); + c = u(A(s), 107), r = u(fs(mt(new Ge(null, new He(c.j, 16)), new YU()), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), t = null, i <= f ? (t = (be(), ln), i += r.gc()) : f < i && (t = (be(), Mn), f += r.gc()), n = t, fi(du(r.Mc(), new Bpe()), new J8e(n)); } function uTn(e, n) { var t; @@ -23845,11 +23935,11 @@ function WDn() { } function sTn(e) { var n, t, i, r, c, s, f, h; - for (e.b = new gGe(new yc((be(), I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an]))), new yc((Z0(), I(T(EG, 1), ce, 368, 0, [Tb, nd, Mb])))), s = I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an]), f = 0, h = s.length; f < h; ++f) - for (c = s[f], t = I(T(EG, 1), ce, 368, 0, [Tb, nd, Mb]), i = 0, r = t.length; i < r; ++i) + for (e.b = new pGe(new yc((be(), I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an]))), new yc((Z0(), I(S(EG, 1), ce, 368, 0, [Tb, nd, Mb])))), s = I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an]), f = 0, h = s.length; f < h; ++f) + for (c = s[f], t = I(S(EG, 1), ce, 368, 0, [Tb, nd, Mb]), i = 0, r = t.length; i < r; ++i) n = t[i], p7n(e.b, c, n, new le()); } - function Eqe(e, n) { + function Aqe(e, n) { var t, i, r, c, s, f, h, l, a, d; if (s = u(u(Mt(e.r, n), 22), 83), f = e.u.Gc((ls(), dd)), t = e.u.Gc(m8), i = e.u.Gc(p8), l = e.u.Gc(jm), d = e.B.Gc((Ms(), ZC)), a = !t && !i && (l || s.gc() == 2), cMn(e, n), r = null, h = null, f) { for (c = s.Jc(), r = u(c.Pb(), 115), h = r; c.Ob(); ) @@ -23858,7 +23948,7 @@ function WDn() { } d && (bjn(s), f && (r.d.b = 0, h.d.c = 0)); } - function Aqe(e, n) { + function xqe(e, n) { var t, i, r, c, s, f, h, l, a, d; if (s = u(u(Mt(e.r, n), 22), 83), f = e.u.Gc((ls(), dd)), t = e.u.Gc(m8), i = e.u.Gc(p8), h = e.u.Gc(jm), d = e.B.Gc((Ms(), ZC)), l = !t && !i && (h || s.gc() == 2), ESn(e, n), a = null, r = null, f) { for (c = s.Jc(), a = u(c.Pb(), 115), r = a; c.Ob(); ) @@ -23867,21 +23957,21 @@ function WDn() { } d && (wjn(s), f && (a.d.d = 0, r.d.a = 0)); } - function xqe(e, n, t) { + function $qe(e, n, t) { var i, r, c, s, f, h, l, a; if (r = n.k, n.p >= 0) return !1; if (n.p = t.b, he(t.e, n), r == (cn(), yi) || r == su) { for (s = new x(n.j); s.a < s.c.c.length; ) - for (c = u(A(s), 12), a = (i = new x(new Sp(c).a.g), new _z(i)); lc(a.a); ) - if (l = u(A(a.a), 17).d, f = l.i, h = f.k, n.c != f.c && (h == yi || h == su) && xqe(e, f, t)) + for (c = u(A(s), 12), a = (i = new x(new Sp(c).a.g), new Bz(i)); lc(a.a); ) + if (l = u(A(a.a), 17).d, f = l.i, h = f.k, n.c != f.c && (h == yi || h == su) && $qe(e, f, t)) return !0; } return !0; } function MT(e) { var n; - return (e.Db & 64) != 0 ? _ne(e) : (n = new _o(_ne(e)), n.a += " (changeable: ", $a(n, (e.Bb & Ef) != 0), n.a += ", volatile: ", $a(n, (e.Bb & q1) != 0), n.a += ", transient: ", $a(n, (e.Bb & Xw) != 0), n.a += ", defaultValueLiteral: ", Br(n, e.j), n.a += ", unsettable: ", $a(n, (e.Bb & rs) != 0), n.a += ", derived: ", $a(n, (e.Bb & Wh) != 0), n.a += ")", n.a); + return (e.Db & 64) != 0 ? Bne(e) : (n = new Bo(Bne(e)), n.a += " (changeable: ", $a(n, (e.Bb & Ef) != 0), n.a += ", volatile: ", $a(n, (e.Bb & q1) != 0), n.a += ", transient: ", $a(n, (e.Bb & Xw) != 0), n.a += ", defaultValueLiteral: ", _r(n, e.j), n.a += ", unsettable: ", $a(n, (e.Bb & rs) != 0), n.a += ", derived: ", $a(n, (e.Bb & Wh) != 0), n.a += ")", n.a); } function oTn(e, n) { var t, i, r, c, s; @@ -23896,34 +23986,34 @@ function WDn() { for (n.Tg("Restoring reversed edges", 1), h = new x(e.b); h.a < h.c.c.length; ) for (f = u(A(h), 25), a = new x(f.a); a.a < a.c.c.length; ) for (l = u(A(a), 9), g = new x(l.j); g.a < g.c.c.length; ) - for (d = u(A(g), 12), s = _h(d.g), i = s, r = 0, c = i.length; r < c; ++r) + for (d = u(A(g), 12), s = Bh(d.g), i = s, r = 0, c = i.length; r < c; ++r) t = i[r], ve(me(y(t, (te(), Qa)))) && Ua(t, !1); n.Ug(); } function lTn(e, n, t, i) { var r, c, s, f, h; - for (h = W(Xi, oe, 108, (be(), I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an])).length, 0, 2), c = I(T(Mr, 1), Bc, 64, 0, [mc, ln, gn, Mn, an]), s = 0, f = c.length; s < f; ++s) + for (h = W(Xi, fe, 108, (be(), I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an])).length, 0, 2), c = I(S(Mr, 1), _c, 64, 0, [mc, ln, gn, Mn, an]), s = 0, f = c.length; s < f; ++s) r = c[s], h[r.g] = W(Xi, Gr, 30, e.c[r.g], 15, 1); - return P_e(h, e, ln), P_e(h, e, Mn), OF(h, e, ln, n, t, i), OF(h, e, gn, n, t, i), OF(h, e, Mn, n, t, i), OF(h, e, an, n, t, i), h; + return OBe(h, e, ln), OBe(h, e, Mn), OF(h, e, ln, n, t, i), OF(h, e, gn, n, t, i), OF(h, e, Mn, n, t, i), OF(h, e, an, n, t, i), h; } function aTn(e, n, t) { if (eu(e.a, n)) { - if (Bo(u(rn(e.a, n), 47), t)) + if (_o(u(rn(e.a, n), 47), t)) return 1; } else ht(e.a, n, new vi()); if (eu(e.a, t)) { - if (Bo(u(rn(e.a, t), 47), n)) + if (_o(u(rn(e.a, t), 47), n)) return -1; } else ht(e.a, t, new vi()); if (eu(e.b, n)) { - if (Bo(u(rn(e.b, n), 47), t)) + if (_o(u(rn(e.b, n), 47), t)) return -1; } else ht(e.b, n, new vi()); if (eu(e.b, t)) { - if (Bo(u(rn(e.b, t), 47), n)) + if (_o(u(rn(e.b, t), 47), n)) return 1; } else ht(e.b, t, new vi()); @@ -23931,7 +24021,7 @@ function WDn() { } function dTn(e) { var n, t, i, r, c, s; - e.q == (Ui(), Il) || e.q == Vc || (r = e.f.n.d + Hx(u(_r(e.b, (be(), ln)), 127)) + e.c, n = e.f.n.a + Hx(u(_r(e.b, Mn), 127)) + e.c, i = u(_r(e.b, gn), 127), s = u(_r(e.b, an), 127), c = m.Math.max(0, i.n.d - r), c = m.Math.max(c, s.n.d - r), t = m.Math.max(0, i.n.a - n), t = m.Math.max(t, s.n.a - n), i.n.d = c, s.n.d = c, i.n.a = t, s.n.a = t); + e.q == (Ui(), Il) || e.q == Vc || (r = e.f.n.d + Hx(u(Br(e.b, (be(), ln)), 127)) + e.c, n = e.f.n.a + Hx(u(Br(e.b, Mn), 127)) + e.c, i = u(Br(e.b, gn), 127), s = u(Br(e.b, an), 127), c = m.Math.max(0, i.n.d - r), c = m.Math.max(c, s.n.d - r), t = m.Math.max(0, i.n.a - n), t = m.Math.max(t, s.n.a - n), i.n.d = c, s.n.d = c, i.n.a = t, s.n.a = t); } function Ete(e, n, t, i) { var r, c, s, f, h, l; @@ -23942,16 +24032,16 @@ function WDn() { } return c = (Sr(), u(n, 69).vk() ? u(t, 75) : dl(n, t)), Os(e.e) ? (l = !x7(e, n), i = pu(e, c, i), h = n.Hk() ? x1(e, 3, n, null, t, r5(e, n, t, N(n, 103) && (u(n, 19).Bb & xr) != 0), l) : x1(e, 1, n, n.gk(), t, -1, l), i ? i.lj(h) : i = h) : i = pu(e, c, i), i; } - function $qe() { - this.b = new T1(), this.d = new T1(), this.e = new T1(), this.c = new T1(), this.a = new Tn(), this.f = new Tn(), f2(Ji, new Uve(), new zve()), f2(W1e, new i5e(), new r5e()), f2(coe, new c5e(), new u5e()), f2(uoe, new s5e(), new o5e()), f2(fon, new f5e(), new h5e()), f2(xLn, new Wve(), new Xve()), f2(TLn, new Kve(), new Vve()), f2($Ln, new Qve(), new Yve()), f2(MLn, new Zve(), new e5e()), f2(CLn, new n5e(), new t5e()); + function Mqe() { + this.b = new T1(), this.d = new T1(), this.e = new T1(), this.c = new T1(), this.a = new Tn(), this.f = new Tn(), f2(Ji, new zve(), new Wve()), f2(W1e, new r5e(), new c5e()), f2(coe, new u5e(), new s5e()), f2(uoe, new o5e(), new f5e()), f2(hon, new h5e(), new l5e()), f2(xLn, new Xve(), new Kve()), f2(TLn, new Vve(), new Qve()), f2($Ln, new Yve(), new Zve()), f2(MLn, new e5e(), new n5e()), f2(CLn, new t5e(), new i5e()); } function y9(e, n) { var t, i, r, c, s; - for (e = e == null ? Bu : (Ze(e), e), r = 0; r < n.length; r++) + for (e = e == null ? _u : (Ze(e), e), r = 0; r < n.length; r++) n[r] = b$n(n[r]); for (t = new Rp(), s = 0, i = 0; i < n.length && (c = e.indexOf("%s", s), c != -1); ) - t.a += "" + Go(e == null ? Bu : (Ze(e), e), s, c), Yc(t, n[i++]), s = c + 2; - if (LPe(t, e, s, e.length), i < n.length) { + t.a += "" + Go(e == null ? _u : (Ze(e), e), s, c), Yc(t, n[i++]), s = c + 2; + if (DPe(t, e, s, e.length), i < n.length) { for (t.a += " [", Yc(t, n[i++]); i < n.length; ) t.a += mu, Yc(t, n[i++]); t.a += "]"; @@ -23962,13 +24052,13 @@ function WDn() { var t, i, r, c, s, f, h; for (t = 0, h = new x(n); h.a < h.c.c.length; ) { for (f = u(A(h), 12), aZ(e.b, e.d[f.p]), s = 0, r = new fh(f.b); lc(r.a) || lc(r.b); ) - i = u(lc(r.a) ? A(r.a) : A(r.b), 17), kIe(i) ? (c = SW(e, f == i.c ? i.d : i.c), c > e.d[f.p] && (t += MQ(e.b, c), M1(e.a, ie(c)))) : ++s; + i = u(lc(r.a) ? A(r.a) : A(r.b), 17), yIe(i) ? (c = SW(e, f == i.c ? i.d : i.c), c > e.d[f.p] && (t += MQ(e.b, c), M1(e.a, ie(c)))) : ++s; for (t += e.b.d * s; !R4(e.a); ) sY(e.b, u(i3(e.a), 15).a); } return t; } - function Mqe(e) { + function Tqe(e) { var n, t, i, r, c, s; return c = 0, n = Uo(e), n.ik() && (c |= 4), (e.Bb & rs) != 0 && (c |= 2), N(e, 103) ? (t = u(e, 19), r = Ir(t), (t.Bb & Lc) != 0 && (c |= 32), r && ($n(vw(r)), c |= 8, s = r.t, (s > 1 || s == -1) && (c |= 16), (r.Bb & Lc) != 0 && (c |= 64)), (t.Bb & xr) != 0 && (c |= q1), c |= Ef) : N(n, 459) ? c |= 512 : (i = n.ik(), i && (i.i & 1) != 0 && (c |= 256)), (e.Bb & 512) != 0 && (c |= 128), c; } @@ -23978,7 +24068,7 @@ function WDn() { } function wTn(e, n) { var t, i, r, c, s, f, h, l; - for (c = new le(), n.b.c.length = 0, t = u(fs(sQ(new Ge(null, new He(new Fl(e.a.b), 1))), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), r = t.Jc(); r.Ob(); ) + for (c = new le(), n.b.c.length = 0, t = u(fs(sQ(new Ge(null, new He(new Fl(e.a.b), 1))), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), r = t.Jc(); r.Ob(); ) if (i = u(r.Pb(), 15), s = kQ(e.a, i), s.b != 0) for (f = new Jc(n), sn(c.c, f), f.p = i.a, l = Nn(s, 0); l.b != l.d.c; ) h = u(Ln(l), 9), Ni(h, f); @@ -23993,7 +24083,7 @@ function WDn() { c = u(s.Pb(), 60), u(hc(Ur(f.f, c)), 16).Ec(n); for (t = new x(e.a.b); t.a < t.c.c.length; ) n = u(A(t), 60), n.c.$b(), n.c = u(hc(Ur(f.f, n)), 16); - XHe(e); + KHe(e); } function kR(e) { var n, t, i, r, c, s, f; @@ -24004,11 +24094,11 @@ function WDn() { c = u(s.Pb(), 82), u(hc(Ur(f.f, c)), 16).Ec(n); for (t = new x(e.a.b); t.a < t.c.c.length; ) n = u(A(t), 82), n.f.$b(), n.f = u(hc(Ur(f.f, n)), 16); - FHe(e); + RHe(e); } function gTn(e, n) { var t, i, r, c, s, f, h, l, a, d, g; - for (h = _i(n.a), r = _(H(y(h, (ae(), rd)))) * 2, a = _(H(y(h, kg))), l = m.Math.max(r, a), c = W(Xi, Gr, 30, n.f - n.c + 1, 15, 1), i = -l, t = 0, f = n.b.Jc(); f.Ob(); ) + for (h = Bi(n.a), r = B(H(y(h, (ae(), rd)))) * 2, a = B(H(y(h, kg))), l = m.Math.max(r, a), c = W(Xi, Gr, 30, n.f - n.c + 1, 15, 1), i = -l, t = 0, f = n.b.Jc(); f.Ob(); ) s = u(f.Pb(), 9), i += e.a[s.c.p] + l, c[t++] = i; for (i += e.a[n.a.c.p] + l, c[t++] = i, g = new x(n.e); g.a < g.c.c.length; ) d = u(A(g), 9), i += e.a[d.c.p] + l, c[t++] = i; @@ -24016,10 +24106,10 @@ function WDn() { } function pTn(e, n, t, i) { var r, c, s, f, h, l, a, d, g; - for (g = new Ma(new uye(e)), f = I(T(xl, 1), Wa, 9, 0, [n, t]), h = 0, l = f.length; h < l; ++h) + for (g = new Ma(new sye(e)), f = I(S(xl, 1), Wa, 9, 0, [n, t]), h = 0, l = f.length; h < l; ++h) for (s = f[h], d = Y6(s, i).Jc(); d.Ob(); ) for (a = u(d.Pb(), 12), c = new fh(a.b); lc(c.a) || lc(c.b); ) - r = u(lc(c.a) ? A(c.a) : A(c.b), 17), hr(r) || (g.a.yc(a, (en(), Y1)) == null, kIe(r) && Cy(g, a == r.c ? r.d : r.c)); + r = u(lc(c.a) ? A(c.a) : A(c.b), 17), hr(r) || (g.a.yc(a, (en(), Y1)) == null, yIe(r) && Cy(g, a == r.c ? r.d : r.c)); return Jn(g), new os(g); } function mTn(e, n, t, i) { @@ -24028,7 +24118,7 @@ function WDn() { } function xte(e, n, t, i) { var r, c, s; - n && (c = _(H(y(n, (Bt(), n1)))) + i, s = t + _(H(y(n, EC))) / 2, K(n, pE, ie(Xn(Cc(m.Math.round(c))))), K(n, mE, ie(Xn(Cc(m.Math.round(s))))), n.d.b == 0 || xte(e, u(Ex((r = Nn(new Bl(n).a.d, 0), new Ug(r))), 40), t + _(H(y(n, EC))) + e.b, i + _(H(y(n, h4)))), y(n, rq) != null && xte(e, u(y(n, rq), 40), t, i)); + n && (c = B(H(y(n, (_t(), n1)))) + i, s = t + B(H(y(n, EC))) / 2, K(n, pE, ie(Xn(Cc(m.Math.round(c))))), K(n, mE, ie(Xn(Cc(m.Math.round(s))))), n.d.b == 0 || xte(e, u(Ex((r = Nn(new _l(n).a.d, 0), new Ug(r))), 40), t + B(H(y(n, EC))) + e.b, i + B(H(y(n, h4)))), y(n, rq) != null && xte(e, u(y(n, rq), 40), t, i)); } function vTn(e, n) { var t, i, r, c; @@ -24053,7 +24143,7 @@ function WDn() { var n, t, i; return (e.Db & 64) != 0 ? ZF(e) : (n = new Us(jue), t = e.k, t ? it(it((n.a += ' "', n), t), '"') : (!e.n && (e.n = new ne(vc, e, 1, 7)), e.n.i > 0 && (i = (!e.n && (e.n = new ne(vc, e, 1, 7)), u(F(e.n, 0), 157)).a, !i || it(it((n.a += ' "', n), i), '"'))), it(P0(it(P0(it(P0(it(P0((n.a += " (", n), e.i), ","), e.j), " | "), e.g), ","), e.f), ")"), n.a); } - function Tqe(e) { + function Sqe(e) { var n, t, i; return (e.Db & 64) != 0 ? ZF(e) : (n = new Us(Eue), t = e.k, t ? it(it((n.a += ' "', n), t), '"') : (!e.n && (e.n = new ne(vc, e, 1, 7)), e.n.i > 0 && (i = (!e.n && (e.n = new ne(vc, e, 1, 7)), u(F(e.n, 0), 157)).a, !i || it(it((n.a += ' "', n), i), '"'))), it(P0(it(P0(it(P0(it(P0((n.a += " (", n), e.i), ","), e.j), " | "), e.g), ","), e.f), ")"), n.a); } @@ -24061,9 +24151,9 @@ function WDn() { var t, i, r, c, s, f, h, l, a, d, g, p, v; for (p = -1, v = 0, a = n, d = 0, g = a.length; d < g; ++d) { for (l = a[d], s = l, f = 0, h = s.length; f < h; ++f) - for (c = s[f], t = new ZQ(e, p == -1 ? n[0] : n[p], u(y(_i(c), (ae(), $l)), 269), $_e(c), ve(me(y(_i(c), dH)))), i = 0; i < c.j.c.length; i++) + for (c = s[f], t = new ZQ(e, p == -1 ? n[0] : n[p], u(y(Bi(c), (ae(), $l)), 269), MBe(c), ve(me(y(Bi(c), dH)))), i = 0; i < c.j.c.length; i++) for (r = i + 1; r < c.j.c.length; r++) - HSe(t, u(pe(c.j, i), 12), u(pe(c.j, r), 12)) > 0 && ++v; + qSe(t, u(pe(c.j, i), 12), u(pe(c.j, r), 12)) > 0 && ++v; ++p; } return v; @@ -24071,7 +24161,7 @@ function WDn() { function yTn(e, n) { var t, i, r, c, s; for (n == (K6(), qH) && R7(u(Mt(e.a, (Nw(), Xj)), 16)), r = u(Mt(e.a, (Nw(), Xj)), 16).Jc(); r.Ob(); ) - switch (i = u(r.Pb(), 107), t = u(pe(i.j, 0), 113).d.j, c = new os(i.j), Di(c, new Tpe()), n.g) { + switch (i = u(r.Pb(), 107), t = u(pe(i.j, 0), 113).d.j, c = new os(i.j), Di(c, new Spe()), n.g) { case 2: zF(e, c, t, (Z0(), nd), 1); break; @@ -24095,7 +24185,7 @@ function WDn() { return null; if (r = u(nu(e.a, n), 144), !r) { for (i = (f = new Rl(e.b).a.vc().Jc(), new zb(f)); i.a.Ob(); ) - if (t = (c = u(i.a.Pb(), 45), u(c.kd(), 144)), s = t.c, h = n.length, _e(s.substr(s.length - h, h), n) && (n.length == s.length || or(s, s.length - n.length - 1) == 46)) { + if (t = (c = u(i.a.Pb(), 45), u(c.kd(), 144)), s = t.c, h = n.length, Be(s.substr(s.length - h, h), n) && (n.length == s.length || or(s, s.length - n.length - 1) == 46)) { if (r) return null; r = t; @@ -24120,7 +24210,7 @@ function WDn() { for (i = u(A(r), 17), Mw(i.a, c), s = u(y(i, (ae(), Vr)), 78), s && Mw(s, c), h = new x(i.b); h.a < h.c.c.length; ) f = u(A(h), 70), At(f.n, c); } - function Sqe(e) { + function Iqe(e) { if ((!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b).i == 0) throw $(new Fp("Edges must have a source.")); if ((!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c).i == 0) @@ -24130,13 +24220,13 @@ function WDn() { } function ATn(e, n) { var t, i; - n.Tg("Partition preprocessing", 1), i = u(fs(mt(new Ge(null, new He(e.a, 16)), new c2e()), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), t = u(fs(mt(cc(mt(new Ge(null, new He(e.a, 16)), new u2e()), new s2e()), new m8e(i)), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [_u]))), 16), fi(t.Mc(), new o2e()), n.Ug(); + n.Tg("Partition preprocessing", 1), i = u(fs(mt(new Ge(null, new He(e.a, 16)), new u2e()), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), t = u(fs(mt(cc(mt(new Ge(null, new He(e.a, 16)), new s2e()), new o2e()), new v8e(i)), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [Bu]))), 16), fi(t.Mc(), new f2e()), n.Ug(); } - function Iqe(e) { + function Cqe(e) { var n, t, i; - Et(e, (ae(), Ob)) && (i = u(y(e, Ob), 22), !i.dc() && (t = (n = u(Ff(Fr), 10), new wo(n, u(af(n, n.length), 10), 0)), i.Gc((_w(), uo)) ? mf(t, uo) : mf(t, Cf), i.Gc(Qo) || mf(t, Qo), i.Gc(Sf) ? mf(t, Pf) : i.Gc(da) ? mf(t, Sl) : i.Gc(If) && mf(t, Yo), i.Gc(Pf) ? mf(t, Sf) : i.Gc(Sl) ? mf(t, da) : i.Gc(Yo) && mf(t, If), K(e, Ob, t))); + Et(e, (ae(), Ob)) && (i = u(y(e, Ob), 22), !i.dc() && (t = (n = u(Ff(Fr), 10), new wo(n, u(af(n, n.length), 10), 0)), i.Gc((Bw(), uo)) ? mf(t, uo) : mf(t, Cf), i.Gc(Qo) || mf(t, Qo), i.Gc(Sf) ? mf(t, Pf) : i.Gc(da) ? mf(t, Sl) : i.Gc(If) && mf(t, Yo), i.Gc(Pf) ? mf(t, Sf) : i.Gc(Sl) ? mf(t, da) : i.Gc(Yo) && mf(t, If), K(e, Ob, t))); } - function Cqe(e, n) { + function Pqe(e, n) { var t, i; for (this.b = new le(), this.e = new le(), this.a = e, this.d = n, d8n(this), kkn(this), this.b.dc() ? this.c = e.c.p : this.c = u(this.b.Xb(0), 9).c.p, this.e.c.length == 0 ? this.f = e.c.p : this.f = u(pe(this.e, this.e.c.length - 1), 9).c.p, i = u(y(e, (te(), xk)), 16).Jc(); i.Ob(); ) if (t = u(i.Pb(), 70), Et(t, (ae(), YI))) { @@ -24161,10 +24251,10 @@ function WDn() { function Uh() { Uh = G; var e; - for (QS = new Wl(1, 1), UJ = new Wl(1, 10), lk = new Wl(0, 0), YQe = new Wl(-1, 1), ZQe = I(T(z2, 1), oe, 91, 0, [lk, QS, new Wl(1, 2), new Wl(1, 3), new Wl(1, 4), new Wl(1, 5), new Wl(1, 6), new Wl(1, 7), new Wl(1, 8), new Wl(1, 9), UJ]), YS = W(z2, oe, 91, 32, 0, 1), e = 0; e < YS.length; e++) + for (QS = new Wl(1, 1), UJ = new Wl(1, 10), lk = new Wl(0, 0), ZQe = new Wl(-1, 1), eYe = I(S(z2, 1), fe, 91, 0, [lk, QS, new Wl(1, 2), new Wl(1, 3), new Wl(1, 4), new Wl(1, 5), new Wl(1, 6), new Wl(1, 7), new Wl(1, 8), new Wl(1, 9), UJ]), YS = W(z2, fe, 91, 32, 0, 1), e = 0; e < YS.length; e++) YS[e] = gx(hl(1, e), 0) ? F1(hl(1, e)) : x6(F1(Na(hl(1, e)))); } - function Pqe(e, n, t, i, r, c, s) { + function Oqe(e, n, t, i, r, c, s) { if (e.c = i.Jf().a, e.d = i.Jf().b, r && (e.c += r.Jf().a, e.d += r.Jf().b), e.b = n.Kf().a, e.a = n.Kf().b, !r) t ? e.c -= s + n.Kf().a : e.c += i.Kf().a + s; else @@ -24186,8 +24276,8 @@ function WDn() { function xTn(e, n, t, i) { var r, c, s, f, h, l, a, d, g, p, v; if (c = t, t < i) - for (g = (p = new d7(e.p), v = new d7(e.p), wr(p.e, e.e), p.q = e.q, p.r = v, o$(p), wr(v.j, e.j), v.r = p, o$(v), new Ar(p, v)), d = u(g.a, 116), a = u(g.b, 116), r = (qe(c, n.c.length), u(n.c[c], 340)), s = cqe(e, d, a, r), l = t + 1; l <= i; l++) - f = (qe(l, n.c.length), u(n.c[l], 340)), h = cqe(e, d, a, f), a8n(f, h, r, s) && (r = f, s = h, c = l); + for (g = (p = new d7(e.p), v = new d7(e.p), wr(p.e, e.e), p.q = e.q, p.r = v, o$(p), wr(v.j, e.j), v.r = p, o$(v), new Ar(p, v)), d = u(g.a, 116), a = u(g.b, 116), r = (qe(c, n.c.length), u(n.c[c], 340)), s = uqe(e, d, a, r), l = t + 1; l <= i; l++) + f = (qe(l, n.c.length), u(n.c[l], 340)), h = uqe(e, d, a, f), a8n(f, h, r, s) && (r = f, s = h, c = l); return c; } function $Tn(e, n, t, i) { @@ -24198,9 +24288,9 @@ function WDn() { } function MTn(e, n, t) { var i, r, c, s, f, h, l, a, d, g; - if (a = null, g = n, d = uNe(e, KPe(t), g), jv(d, zl(g, Zh)), s = K0(g, xue), i = new Sxe(e, d), oGe(i.a, i.b, s), f = K0(g, hJ), r = new Ixe(e, d), fGe(r.a, r.b, f), (!d.b && (d.b = new Qe(Cn, d, 4, 7)), d.b).i == 0 || (!d.c && (d.c = new Qe(Cn, d, 5, 8)), d.c).i == 0) - throw c = zl(g, Zh), h = QKe + c, l = h + N5, $(new Lh(l)); - return sT(g, d), LOn(e, g, d), a = BN(e, g, d), a; + if (a = null, g = n, d = sNe(e, VPe(t), g), jv(d, zl(g, Zh)), s = K0(g, xue), i = new Ixe(e, d), fGe(i.a, i.b, s), f = K0(g, hJ), r = new Cxe(e, d), hGe(r.a, r.b, f), (!d.b && (d.b = new Qe(Cn, d, 4, 7)), d.b).i == 0 || (!d.c && (d.c = new Qe(Cn, d, 5, 8)), d.c).i == 0) + throw c = zl(g, Zh), h = YKe + c, l = h + N5, $(new Lh(l)); + return sT(g, d), LOn(e, g, d), a = _N(e, g, d), a; } function TTn(e, n) { var t, i, r, c, s, f, h; @@ -24210,7 +24300,7 @@ function WDn() { for (c = u(f.b == 0 ? null : (An(f.b != 0), mo(f, f.a.a)), 124), i = b3(new x(c.g.a)); i.Ob(); ) t = u(i.Pb(), 217), h = t.e, h.e = m.Math.max(h.e, c.e + t.a), --r[h.d], r[h.d] == 0 && ti(f, h, f.c.b, f.c); } - function Oqe(e) { + function Lqe(e) { var n, t, i, r, c, s, f, h, l, a, d; for (t = Yi, r = pt, f = new x(e.e.a); f.a < f.c.c.length; ) c = u(A(f), 124), r = m.Math.min(r, c.e), t = m.Math.max(t, c.e); @@ -24226,11 +24316,11 @@ function WDn() { if (n.Tg("Edge routing", 1), r = u(y(e, (Ac(), cq)), 385), r == (X6(), QH)) Dvn(e); else if (r == wE) - for (u(Ls(Zl(mt(new Ge(null, new He(e.b, 16)), new fme()))), 40), c = _(H(y(e, gae))), s = _(H(y(e, lae))), f = u(y(e, Fb), 86), NOn(e, f, c), bLn(e, f, c, s), gLn(e, f, c, s), i = Nn(e.a, 0); i.b != i.d.c; ) + for (u(Ls(Zl(mt(new Ge(null, new He(e.b, 16)), new hme()))), 40), c = B(H(y(e, gae))), s = B(H(y(e, lae))), f = u(y(e, Fb), 86), NOn(e, f, c), bLn(e, f, c, s), gLn(e, f, c, s), i = Nn(e.a, 0); i.b != i.d.c; ) t = u(Ln(i), 65), t.a.b < 2 && Pne(t); n.Ug(); } - function Lqe(e) { + function Dqe(e) { switch (e.d) { case 9: case 8: @@ -24274,7 +24364,7 @@ function WDn() { } Yu(r, (be(), ln)) ? Yu(r, Mn) ? Yu(r, an) ? Yu(r, gn) || Pa(e, n ? an : ln, n ? (vf(), sg) : (vf(), z5), n ? null : e.c) : Pa(e, n ? gn : ln, n ? (vf(), sg) : (vf(), U5), n ? null : e.a) : Pa(e, ln, (vf(), sg), null) : Pa(e, Mn, (vf(), sg), null); } - function Dqe(e, n, t) { + function Nqe(e, n, t) { var i, r, c, s, f, h, l, a, d; for (c = new bu(n.c.length), l = new x(n); l.a < l.c.c.length; ) s = u(A(l), 9), he(c, e.b[s.c.p][s.p]); @@ -24299,10 +24389,10 @@ function WDn() { if (t = r.mg(e, i), ve(me(y(e, sle))) && (t = jCn(e, t)), !r.ng() && Et(e, oC)) switch (u(y(e, oC), 351).g) { case 2: - t = sGe(i, t); + t = oGe(i, t); break; case 1: - t = Q_e(i, t); + t = YBe(i, t); } if (t.dc()) { n.Ug(); @@ -24310,8 +24400,8 @@ function WDn() { } JOn(e, t), n.Ug(); } - function Nqe(e) { - ew(e, new sb(Yb(Kb(Qb(Vb(new S0(), P5), "ELK Fixed"), "Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."), new a5e()))), se(e, P5, Qw, Qde), se(e, P5, gS, ge(d8)), se(e, P5, wue, ge(Wde)), se(e, P5, R2, ge(Xde)), se(e, P5, q3, ge(Vde)), se(e, P5, k5, ge(Kde)); + function Fqe(e) { + ew(e, new sb(Yb(Kb(Qb(Vb(new S0(), P5), "ELK Fixed"), "Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."), new d5e()))), se(e, P5, Qw, Qde), se(e, P5, gS, ge(d8)), se(e, P5, wue, ge(Wde)), se(e, P5, R2, ge(Xde)), se(e, P5, q3, ge(Vde)), se(e, P5, k5, ge(Kde)); } function TT(e, n, t) { var i, r, c, s, f; @@ -24319,22 +24409,22 @@ function WDn() { return t; if (s = q6(e, t, f), s) throw $(new on("value already present: " + t)); - return r = new l$(n, i, t, f), c ? (I2(e, c), _7(e, r, c), c.e = null, c.c = null, c.i) : (_7(e, r, null), O_e(e), null); + return r = new l$(n, i, t, f), c ? (I2(e, c), B7(e, r, c), c.e = null, c.c = null, c.i) : (B7(e, r, null), LBe(e), null); } function PTn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v; - a = t.a.c, s = t.a.c + t.a.b, c = u(rn(t.c, n), 457), p = c.f, v = c.a, c.b ? h = new ue(s, p) : h = new ue(a, p), c.c ? d = new ue(a, v) : d = new ue(s, v), r = a, t.p || (r += e.c), r += t.F + t.v * e.b, l = new ue(r, p), g = new ue(r, v), J6(n.a, I(T(Ji, 1), oe, 8, 0, [h, l])), f = t.d.a.gc() > 1, f && (i = new ue(r, t.b), rt(n.a, i)), J6(n.a, I(T(Ji, 1), oe, 8, 0, [g, d])); + a = t.a.c, s = t.a.c + t.a.b, c = u(rn(t.c, n), 457), p = c.f, v = c.a, c.b ? h = new ue(s, p) : h = new ue(a, p), c.c ? d = new ue(a, v) : d = new ue(s, v), r = a, t.p || (r += e.c), r += t.F + t.v * e.b, l = new ue(r, p), g = new ue(r, v), J6(n.a, I(S(Ji, 1), fe, 8, 0, [h, l])), f = t.d.a.gc() > 1, f && (i = new ue(r, t.b), rt(n.a, i)), J6(n.a, I(S(Ji, 1), fe, 8, 0, [g, d])); } function G1() { G1 = G, dC = new tw(Wf, 0), hE = new tw("NIKOLOV", 1), lE = new tw("NIKOLOV_PIXEL", 2), kle = new tw("NIKOLOV_IMPROVED", 3), yle = new tw("NIKOLOV_IMPROVED_PIXEL", 4), vle = new tw("DUMMYNODE_PERCENTAGE", 5), jle = new tw("NODECOUNT_PERCENTAGE", 6), bC = new tw("NO_BOUNDARY", 7), s4 = new tw("MODEL_ORDER_LEFT_TO_RIGHT", 8), Jk = new tw("MODEL_ORDER_RIGHT_TO_LEFT", 9); } function yR(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p; - return a = null, g = Vne(e, n), i = null, f = u(re(n, (tt(), jsn)), 300), f ? i = f : i = (B6(), RE), p = i, p == (B6(), RE) && (r = null, l = u(rn(e.r, g), 300), l ? r = l : r = dU, p = r), ht(e.r, n, p), c = null, h = u(re(n, ysn), 278), h ? c = h : c = (Dv(), PE), d = c, d == (Dv(), PE) && (s = null, t = u(rn(e.b, g), 278), t ? s = t : s = WC, d = s), a = u(ht(e.b, n, d), 278), a; + return a = null, g = Vne(e, n), i = null, f = u(re(n, (tt(), Esn)), 300), f ? i = f : i = (_6(), RE), p = i, p == (_6(), RE) && (r = null, l = u(rn(e.r, g), 300), l ? r = l : r = dU, p = r), ht(e.r, n, p), c = null, h = u(re(n, jsn), 278), h ? c = h : c = (Dv(), PE), d = c, d == (Dv(), PE) && (s = null, t = u(rn(e.b, g), 278), t ? s = t : s = WC, d = s), a = u(ht(e.b, n, d), 278), a; } function OTn(e) { var n, t, i, r, c; - for (i = e.length, n = new B4(), c = 0; c < i; ) + for (i = e.length, n = new _4(), c = 0; c < i; ) if (t = or(e, c++), !(t == 9 || t == 10 || t == 12 || t == 13 || t == 32)) { if (t == 35) { for (; c < i && (t = or(e, c++), !(t == 13 || t == 10)); ) @@ -24346,7 +24436,7 @@ function WDn() { return n.a; } function Tte() { - Tte = G, Ccn = new Fe(Fce, (en(), !1)), Dcn = new Fe(Rce, ie(0)), Ncn = new Fe(Bce, 0), Fcn = new Fe(jS, !1), Tae = (m7(), MC), Ocn = new Fe(F_, Tae), ie(0), Pcn = new Fe(R_, ie(1)), Iae = (mM(), yq), Jcn = new Fe(_ce, Iae), Cae = (q$(), gq), Gcn = new Fe(Jce, Cae), Sae = (YM(), kq), Lcn = new Fe(Gce, Sae), _cn = new Fe(B_, 0), Rcn = new Fe(__, !1), Bcn = new Fe(Hce, !1); + Tte = G, Pcn = new Fe(Fce, (en(), !1)), Ncn = new Fe(Rce, ie(0)), Fcn = new Fe(_ce, 0), Rcn = new Fe(jS, !1), Tae = (m7(), MC), Lcn = new Fe(FB, Tae), ie(0), Ocn = new Fe(RB, ie(1)), Iae = (mM(), yq), Gcn = new Fe(Bce, Iae), Cae = (q$(), gq), Hcn = new Fe(Jce, Cae), Sae = (YM(), kq), Dcn = new Fe(Gce, Sae), Jcn = new Fe(_B, 0), _cn = new Fe(BB, !1), Bcn = new Fe(Hce, !1); } function LTn(e, n) { var t, i, r; @@ -24374,7 +24464,7 @@ function WDn() { var n, t, i, r, c, s, f, h, l, a; for (t = 0, f = new x(e.d); f.a < f.c.c.length; ) s = u(A(f), 107), s.i && (s.i.c = t++); - for (n = lw(zu, [oe, zf], [171, 30], 16, [t, t], 2), a = e.d, r = 0; r < a.c.length; r++) + for (n = lw(zu, [fe, zf], [171, 30], 16, [t, t], 2), a = e.d, r = 0; r < a.c.length; r++) if (h = (qe(r, a.c.length), u(a.c[r], 107)), h.i) for (c = r + 1; c < a.c.length; c++) l = (qe(c, a.c.length), u(a.c[c], 107)), l.i && (i = Ejn(h, l), n[h.i.c][l.i.c] = i, n[l.i.c][h.i.c] = i); @@ -24400,12 +24490,12 @@ function WDn() { for (e.c == null || e.c.length < n.c.length ? e.c = W(zu, zf, 30, n.c.length, 16, 1) : F4(e.c), e.a = new le(), i = 0, s = new x(n); s.a < s.c.c.length; ) r = u(A(s), 9), r.p = i++; for (t = new Dt(), c = new x(n); c.a < c.c.c.length; ) - r = u(A(c), 9), e.c[r.p] || (aGe(e, r), t.b == 0 || (An(t.b != 0), u(t.a.a.c, 16)).gc() < e.a.c.length ? Yg(t, e.a) : mr(t, e.a), e.a = new le()); + r = u(A(c), 9), e.c[r.p] || (dGe(e, r), t.b == 0 || (An(t.b != 0), u(t.a.a.c, 16)).gc() < e.a.c.length ? Yg(t, e.a) : mr(t, e.a), e.a = new le()); return t; } function FTn(e, n, t, i) { var r, c, s; - y(i.d.i, (te(), _t)) == null ? ht(n, ie(pt - (n.f.c + n.i.c)), new aw(new yc(I(T(H5, 1), E5, 17, 0, [i])))) : (s = 0, c = i.d.i, t ? (r = u(y(e.c, id), 15).a, s = r * u(y(c, (ae(), lg)), 15).a + u(y(c, _t), 15).a) : s = u(y(i.d.i, _t), 15).a, eu(n, ie(s)) ? ki(u(rn(n, ie(s)), 47), i) : ht(n, ie(s), new aw(new yc(I(T(H5, 1), E5, 17, 0, [i]))))); + y(i.d.i, (te(), Bt)) == null ? ht(n, ie(pt - (n.f.c + n.i.c)), new aw(new yc(I(S(H5, 1), E5, 17, 0, [i])))) : (s = 0, c = i.d.i, t ? (r = u(y(e.c, id), 15).a, s = r * u(y(c, (ae(), lg)), 15).a + u(y(c, Bt), 15).a) : s = u(y(i.d.i, Bt), 15).a, eu(n, ie(s)) ? ki(u(rn(n, ie(s)), 47), i) : ht(n, ie(s), new aw(new yc(I(S(H5, 1), E5, 17, 0, [i]))))); } function K7(e, n, t) { var i, r, c, s, f, h; @@ -24434,7 +24524,7 @@ function WDn() { return Gw(e, c), !0; return !1; } - function Fqe(e, n, t, i) { + function Rqe(e, n, t, i) { var r, c, s, f, h, l, a, d, g, p; for (s = sw(n.c, t, i), d = new x(n.a); d.a < d.c.c.length; ) { for (a = u(A(d), 9), At(a.n, s), p = new x(a.j); p.a < p.c.c.length; ) @@ -24444,63 +24534,63 @@ function WDn() { he(e.a, a), a.a = e; } } - function BTn(e, n) { + function _Tn(e, n) { var t, i, r, c, s; - if (n.Tg("Node and Port Label Placement and Node Sizing", 1), E$e((H4(), new pD(e, !0, !0, new Dge()))), u(y(e, (te(), ou)), 22).Gc((Pr(), So))) + if (n.Tg("Node and Port Label Placement and Node Sizing", 1), A$e((H4(), new pD(e, !0, !0, new Nge()))), u(y(e, (te(), ou)), 22).Gc((Pr(), So))) for (c = u(y(e, (ae(), gg)), 22), r = c.Gc((ls(), FE)), s = ve(me(y(e, Qhe))), i = new x(e.b); i.a < i.c.c.length; ) - t = u(A(i), 25), fi(mt(new Ge(null, new He(t.a, 16)), new Nge()), new PTe(c, r, s)); + t = u(A(i), 25), fi(mt(new Ge(null, new He(t.a, 16)), new Fge()), new OTe(c, r, s)); n.Ug(); } - function Rqe(e) { - ew(e, new sb(Yb(Kb(Qb(Vb(new S0(), T5), "ELK SPOrE Overlap Removal"), 'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'), new Ove()))), se(e, T5, H_, ge(_1e)), se(e, T5, Qw, B1e), se(e, T5, Vw, 8), se(e, T5, z_, ge(Vun)), se(e, T5, hue, ge(F1e)), se(e, T5, lue, ge(R1e)), se(e, T5, Sj, (en(), !1)); + function _qe(e) { + ew(e, new sb(Yb(Kb(Qb(Vb(new S0(), T5), "ELK SPOrE Overlap Removal"), 'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'), new Lve()))), se(e, T5, HB, ge(B1e)), se(e, T5, Qw, _1e), se(e, T5, Vw, 8), se(e, T5, zB, ge(Qun)), se(e, T5, hue, ge(F1e)), se(e, T5, lue, ge(R1e)), se(e, T5, Sj, (en(), !1)); } - function _Tn(e, n) { + function BTn(e, n) { var t, i, r, c, s, f, h; if (t = n.ni(e.a), t && (h = zn(Uf((!t.b && (t.b = new Ds((Ue(), Tr), Ic, t)), t.b), Uue)), h != null)) { for (i = new le(), c = qw(h, "\\w"), s = 0, f = c.length; s < f; ++s) - r = c[s], _e(r, "##other") ? he(i, "!##" + k6(e, Vs(n.ok()))) : _e(r, "##local") ? i.c.push(null) : _e(r, Nj) ? he(i, k6(e, Vs(n.ok()))) : sn(i.c, r); + r = c[s], Be(r, "##other") ? he(i, "!##" + k6(e, Vs(n.ok()))) : Be(r, "##local") ? i.c.push(null) : Be(r, Nj) ? he(i, k6(e, Vs(n.ok()))) : sn(i.c, r); return i; } return ze(), ze(), $r; } function C2(e, n, t, i) { - this.e = e, this.k = u(y(e, (te(), ip)), 316), this.g = W(xl, Wa, 9, n, 0, 1), this.b = W(Ei, oe, 346, n, 7, 1), this.a = W(xl, Wa, 9, n, 0, 1), this.d = W(Ei, oe, 346, n, 7, 1), this.j = W(xl, Wa, 9, n, 0, 1), this.i = W(Ei, oe, 346, n, 7, 1), this.p = W(Ei, oe, 346, n, 7, 1), this.n = W(ui, oe, 473, n, 8, 1), Z8(this.n, (en(), !1)), this.f = W(ui, oe, 473, n, 8, 1), Z8(this.f, !0), this.o = t, this.c = i; + this.e = e, this.k = u(y(e, (te(), ip)), 316), this.g = W(xl, Wa, 9, n, 0, 1), this.b = W(Ei, fe, 346, n, 7, 1), this.a = W(xl, Wa, 9, n, 0, 1), this.d = W(Ei, fe, 346, n, 7, 1), this.j = W(xl, Wa, 9, n, 0, 1), this.i = W(Ei, fe, 346, n, 7, 1), this.p = W(Ei, fe, 346, n, 7, 1), this.n = W(ui, fe, 473, n, 8, 1), Z8(this.n, (en(), !1)), this.f = W(ui, fe, 473, n, 8, 1), Z8(this.f, !0), this.o = t, this.c = i; } function V7(e) { var n, t, i, r, c, s, f, h; if (e.d) - throw $(new qr((Gl(dG), IB + dG.k + CB))); + throw $(new qr((Gl(dG), I_ + dG.k + C_))); for (e.c == (Mi(), Th) && L2(e, Qr), t = new x(e.a.a); t.a < t.c.c.length; ) n = u(A(t), 194), n.e = 0; for (s = new x(e.a.b); s.a < s.c.c.length; ) for (c = u(A(s), 82), c.o = Ri, r = c.f.Jc(); r.Ob(); ) i = u(r.Pb(), 82), ++i.d.e; - for (BPn(e), h = new x(e.a.b); h.a < h.c.c.length; ) + for (_Pn(e), h = new x(e.a.b); h.a < h.c.c.length; ) f = u(A(h), 82), f.k = !0; return e; } function JTn(e, n) { var t, i, r, c, s, f, h, l; - for (f = new UJe(e), t = new Dt(), ti(t, n, t.c.b, t.c); t.b != 0; ) { + for (f = new zJe(e), t = new Dt(), ti(t, n, t.c.b, t.c); t.b != 0; ) { for (i = u(t.b == 0 ? null : (An(t.b != 0), mo(t, t.a.a)), 113), i.d.p = 1, s = new x(i.e); s.a < s.c.c.length; ) - r = u(A(s), 341), rJe(f, r), l = r.d, l.d.p == 0 && ti(t, l, t.c.b, t.c); + r = u(A(s), 341), cJe(f, r), l = r.d, l.d.p == 0 && ti(t, l, t.c.b, t.c); for (c = new x(i.b); c.a < c.c.c.length; ) - r = u(A(c), 341), rJe(f, r), h = r.c, h.d.p == 0 && ti(t, h, t.c.b, t.c); + r = u(A(c), 341), cJe(f, r), h = r.c, h.d.p == 0 && ti(t, h, t.c.b, t.c); } return f; } function Ite(e, n) { var t, i, r, c, s, f, h; if (!e.e[n.p]) { - for (e.e[n.p] = !0, e.a[n.p] = !0, c = new Tn(), t = z(y(e.c, (ae(), hm))) === z((P1(), fg)), fr(Ht(n), new CTe(e, c, t)), s = new WX(new Fl(c)), r = s.a.ec().Jc(); r.Ob(); ) + for (e.e[n.p] = !0, e.a[n.p] = !0, c = new Tn(), t = z(y(e.c, (ae(), hm))) === z((P1(), fg)), fr(Ht(n), new PTe(e, c, t)), s = new WX(new Fl(c)), r = s.a.ec().Jc(); r.Ob(); ) i = u(r.Pb(), 15).a, f = u(u(rn(c, ie(i)), 47).a.ec().Jc().Pb(), 17), !hr(f) && (h = f.d.i, e.a[h.p] ? Ci(e.b, u(rn(c, ie(i)), 18)) : Ite(e, h)); e.a[n.p] = !1; } } function Bqe(e) { var n, t, i, r, c; - if (i = _(H(re(e, (tt(), $sn)))), i != 1) - for (D0(e, i * e.g, i * e.f), t = Zan(xwn((!e.c && (e.c = new ne(Is, e, 9, 9)), e.c), new k5e())), c = ll(vo(I(T(To, 1), Ve, 20, 0, [(!e.n && (e.n = new ne(vc, e, 1, 7)), e.n), (!e.c && (e.c = new ne(Is, e, 9, 9)), e.c), t]))); xn(c); ) + if (i = B(H(re(e, (tt(), Msn)))), i != 1) + for (D0(e, i * e.g, i * e.f), t = Zan(xwn((!e.c && (e.c = new ne(Is, e, 9, 9)), e.c), new y5e())), c = ll(vo(I(S(To, 1), Ve, 20, 0, [(!e.n && (e.n = new ne(vc, e, 1, 7)), e.n), (!e.c && (e.c = new ne(Is, e, 9, 9)), e.c), t]))); xn(c); ) r = u(pn(c), 276), r.ph(i * r.mh(), i * r.nh()), r.oh(i * r.lh(), i * r.kh()), n = u(r.mf(Ade), 8), n && (n.a *= i, n.b *= i); } function Cte(e, n, t) { @@ -24520,29 +24610,29 @@ function WDn() { for (c = u(A(s), 25), g = Jy(c.a), l = g, a = 0, d = l.length; a < d; ++a) switch (h = l[a], u(y(h, (ae(), pc)), 165).g) { case 1: - fMn(h), Ni(h, n), qBe(h, !0, i); + fMn(h), Ni(h, n), U_e(h, !0, i); break; case 3: - W$n(h), Ni(h, t), qBe(h, !1, r); + W$n(h), Ni(h, t), U_e(h, !1, r); } for (f = new Vi(e.b, 0); f.b < f.d.gc(); ) (An(f.b < f.d.gc()), u(f.d.Xb(f.c = f.b++), 25)).a.c.length == 0 && vs(f); } function HTn(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E; - for (p = n.length, h = p, bn(0, n.length), n.charCodeAt(0) == 45 ? (d = -1, g = 1, --p) : (d = 1, g = 0), c = (PR(), nYe)[10], r = p / c | 0, E = p % c, E != 0 && ++r, f = W(Wn, lt, 30, r, 15, 1), t = eYe[8], s = 0, v = g + (E == 0 ? c : E), j = g; j < h; j = v, v = j + c) + for (p = n.length, h = p, bn(0, n.length), n.charCodeAt(0) == 45 ? (d = -1, g = 1, --p) : (d = 1, g = 0), c = (PR(), tYe)[10], r = p / c | 0, E = p % c, E != 0 && ++r, f = W(Wn, lt, 30, r, 15, 1), t = nYe[8], s = 0, v = g + (E == 0 ? c : E), j = g; j < h; j = v, v = j + c) i = eo((tr(j, v, n.length), n.substr(j, v - j)), Yi, pt), l = (n5(), aee(f, f, s, t)), l += lkn(f, s, i), f[s++] = l; a = s, e.e = d, e.d = a, e.a = f, C6(e); } function qTn(e) { var n, t, i, r, c, s, f, h, l, a, d, g; for (f = e.i, r = ve(me(y(f, (ae(), dg)))), a = 0, i = 0, l = new x(e.g); l.a < l.c.c.length; ) - h = u(A(l), 17), s = hr(h), c = s && r && ve(me(y(h, a0))), g = h.d.i, s && c ? ++i : s && !c ? ++a : _i(g).e == f ? ++i : ++a; + h = u(A(l), 17), s = hr(h), c = s && r && ve(me(y(h, a0))), g = h.d.i, s && c ? ++i : s && !c ? ++a : Bi(g).e == f ? ++i : ++a; for (t = new x(e.e); t.a < t.c.c.length; ) - n = u(A(t), 17), s = hr(n), c = s && r && ve(me(y(n, a0))), d = n.c.i, s && c ? ++a : s && !c ? ++i : _i(d).e == f ? ++a : ++i; + n = u(A(t), 17), s = hr(n), c = s && r && ve(me(y(n, a0))), d = n.c.i, s && c ? ++a : s && !c ? ++i : Bi(d).e == f ? ++a : ++i; return a - i; } - function _qe(e, n) { + function Jqe(e, n) { var t, i, r, c, s, f; if (!n.dc()) if (u(n.Xb(0), 294).d == (T3(), og)) @@ -24560,17 +24650,17 @@ function WDn() { Vv(e, t, h5n(e, t)); break; case 2: - XRe(t), Vv(e, t, (c = Uee(t), c ? t.c : t.f)); + KRe(t), Vv(e, t, (c = Uee(t), c ? t.c : t.f)); break; case 1: - XRe(t), Vv(e, t, (r = Uee(t), r ? t.f : t.c)); + KRe(t), Vv(e, t, (r = Uee(t), r ? t.f : t.c)); } $jn(t.a); } } function Pte(e, n, t, i) { var r, c, s; - return s = new iAe(n, t), e.a ? i ? (r = u(Jo(u(rn(e.b, n), 262)), 262), ++r.a, s.d = i.d, s.e = i.e, s.b = i, s.c = i, i.e ? i.e.c = s : r.b = s, i.d ? i.d.b = s : e.a = s, i.d = s, i.e = s) : (u(Jo(e.e), 497).b = s, s.d = e.e, e.e = s, r = u(rn(e.b, n), 262), r ? (++r.a, c = r.c, c.c = s, s.e = c, r.c = s) : (ht(e.b, n, r = new XV(s)), ++e.c)) : (e.a = e.e = s, ht(e.b, n, new XV(s)), ++e.c), ++e.d, s; + return s = new rAe(n, t), e.a ? i ? (r = u(Jo(u(rn(e.b, n), 262)), 262), ++r.a, s.d = i.d, s.e = i.e, s.b = i, s.c = i, i.e ? i.e.c = s : r.b = s, i.d ? i.d.b = s : e.a = s, i.d = s, i.e = s) : (u(Jo(e.e), 497).b = s, s.d = e.e, e.e = s, r = u(rn(e.b, n), 262), r ? (++r.a, c = r.c, c.c = s, s.e = c, r.c = s) : (ht(e.b, n, r = new XV(s)), ++e.c)) : (e.a = e.e = s, ht(e.b, n, new XV(s)), ++e.c), ++e.d, s; } function AR(e, n) { var t, i, r, c, s; @@ -24580,9 +24670,9 @@ function WDn() { } for (c = new x(e.e.a); c.a < c.c.c.length; ) r = u(A(c), 124), r.e = 0; - for (s = e.e.a.c.length >= 40, s && PSn(e), qIn(e), lMn(e), t = CRe(e), i = 0; t && i < e.f; ) - KTn(e, t, gxn(e, t)), t = CRe(e), ++i; - s && X7n(e), e.a ? Mxn(e, Oqe(e)) : Oqe(e), e.b = null, e.d = null, e.p = null, e.c = null, e.g = null, e.i = null, e.n = null, e.o = null, n.Ug(); + for (s = e.e.a.c.length >= 40, s && PSn(e), qIn(e), lMn(e), t = PRe(e), i = 0; t && i < e.f; ) + KTn(e, t, gxn(e, t)), t = PRe(e), ++i; + s && X7n(e), e.a ? Mxn(e, Lqe(e)) : Lqe(e), e.b = null, e.d = null, e.p = null, e.c = null, e.g = null, e.i = null, e.n = null, e.o = null, n.Ug(); } function UTn(e, n) { var t, i, r, c, s, f, h; @@ -24598,25 +24688,25 @@ function WDn() { } c = e.d == (Ov(), Hk) && (r.d || r.e) && JAn(e, n) && n.d.a.gc() <= 1, c ? APn(t, n) : HMn(e, t, n); } - n.k && fr(n.d, new lge()); + n.k && fr(n.d, new age()); } } function Ote(e, n, t, i, r, c) { - var s, f, h, l, a, d, g, p, v, j, E, M, D, R; - for (g = c, f = (i + r) / 2 + g, E = t * m.Math.cos(f), M = t * m.Math.sin(f), D = E - n.g / 2, R = M - n.f / 2, Es(n, D), As(n, R), d = e.a.Dg(n), j = 2 * m.Math.acos(t / t + e.c), j < r - i ? (p = j / d, s = (i + r - j) / 2) : (p = (r - i) / d, s = i), v = Jw(n), e.e && (e.e.Eg(e.d), e.e.Fg(v)), l = new x(v); l.a < l.c.c.length; ) + var s, f, h, l, a, d, g, p, v, j, E, T, D, R; + for (g = c, f = (i + r) / 2 + g, E = t * m.Math.cos(f), T = t * m.Math.sin(f), D = E - n.g / 2, R = T - n.f / 2, Es(n, D), As(n, R), d = e.a.Dg(n), j = 2 * m.Math.acos(t / t + e.c), j < r - i ? (p = j / d, s = (i + r - j) / 2) : (p = (r - i) / d, s = i), v = Jw(n), e.e && (e.e.Eg(e.d), e.e.Fg(v)), l = new x(v); l.a < l.c.c.length; ) h = u(A(l), 26), a = e.a.Dg(h), Ote(e, h, t + e.c, s, s + p * a, c), s += p * a; } function zTn(e, n, t) { var i; switch (i = t.q.getMonth(), n) { case 5: - it(e, I(T(ke, 1), oe, 2, 6, ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"])[i]); + it(e, I(S(ye, 1), fe, 2, 6, ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"])[i]); break; case 4: - it(e, I(T(ke, 1), oe, 2, 6, [iB, rB, cB, uB, F3, sB, oB, fB, hB, lB, aB, dB])[i]); + it(e, I(S(ye, 1), fe, 2, 6, [i_, r_, c_, u_, F3, s_, o_, f_, h_, l_, a_, d_])[i]); break; case 3: - it(e, I(T(ke, 1), oe, 2, 6, ["Jan", "Feb", "Mar", "Apr", F3, "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"])[i]); + it(e, I(S(ye, 1), fe, 2, 6, ["Jan", "Feb", "Mar", "Apr", F3, "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"])[i]); break; default: bl(e, i + 1, n); @@ -24640,11 +24730,11 @@ function WDn() { for (f = u(A(h), 12), r = new fh(f.b); lc(r.a) || lc(r.b); ) i = u(lc(r.a) ? A(r.a) : A(r.b), 17), t = i.c == f ? i.d : i.c, c = t.i, n != c && (l = u(y(i, (ae(), r4)), 15).a, l < 0 && (l = 0), s = c.p, e.c[s] == 0 && (i.d == t ? (e.a[s] -= l + 1, e.a[s] <= 0 && e.d[s] > 0 && rt(e.g, c)) : (e.d[s] -= l + 1, e.d[s] <= 0 && e.a[s] > 0 && rt(e.f, c)))); } - function Jqe(e, n, t, i) { + function Gqe(e, n, t, i) { var r, c, s, f, h, l, a; - for (h = new ue(t, i), Fi(h, u(y(n, (Bt(), f4)), 8)), a = Nn(n.b, 0); a.b != a.d.c; ) + for (h = new ue(t, i), Fi(h, u(y(n, (_t(), f4)), 8)), a = Nn(n.b, 0); a.b != a.d.c; ) l = u(Ln(a), 40), At(l.e, h), rt(e.b, l); - for (f = u(fs(rQ(new Ge(null, new He(n.a, 16))), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16).Jc(); f.Ob(); ) { + for (f = u(fs(rQ(new Ge(null, new He(n.a, 16))), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16).Jc(); f.Ob(); ) { for (s = u(f.Pb(), 65), c = Nn(s.a, 0); c.b != c.d.c; ) r = u(Ln(c), 8), r.a += h.a, r.b += h.b; rt(e.a, s); @@ -24652,16 +24742,16 @@ function WDn() { } function Dte(e, n) { var t, i, r, c; - if (0 < (N(e, 18) ? u(e, 18).gc() : _f(e.Jc()))) { + if (0 < (N(e, 18) ? u(e, 18).gc() : Bf(e.Jc()))) { if (r = n, 1 < r) { - for (--r, c = new sme(), i = e.Jc(); i.Ob(); ) - t = u(i.Pb(), 40), c = vo(I(T(To, 1), Ve, 20, 0, [c, new Bl(t)])); + for (--r, c = new ome(), i = e.Jc(); i.Ob(); ) + t = u(i.Pb(), 40), c = vo(I(S(To, 1), Ve, 20, 0, [c, new _l(t)])); return Dte(c, r); } if (r < 0) { - for (c = new ome(), i = e.Jc(); i.Ob(); ) - t = u(i.Pb(), 40), c = vo(I(T(To, 1), Ve, 20, 0, [c, new Bl(t)])); - if (0 < (N(c, 18) ? u(c, 18).gc() : _f(c.Jc()))) + for (c = new fme(), i = e.Jc(); i.Ob(); ) + t = u(i.Pb(), 40), c = vo(I(S(To, 1), Ve, 20, 0, [c, new _l(t)])); + if (0 < (N(c, 18) ? u(c, 18).gc() : Bf(c.Jc()))) return Dte(c, r); } } @@ -24669,9 +24759,9 @@ function WDn() { } function XTn(e, n, t) { var i, r, c, s; - for (t.Tg("Processor order nodes", 2), e.b = _(H(y(n, (Ac(), uq)))), e.a = u(y(n, Fb), 86), e.a == (Mi(), Th) && (e.a = Mh, K(n, Fb, e.a)), r = new Dt(), s = Nn(n.b, 0); s.b != s.d.c; ) - c = u(Ln(s), 40), ve(me(y(c, (Bt(), od)))) && ti(r, c, r.c.b, r.c); - i = (An(r.b != 0), u(r.a.a.c, 40)), NUe(e, i), t.eh(1), xte(e, i, 0 - _(H(y(i, (Bt(), EC)))) / 2, 0), t.eh(1), t.Ug(); + for (t.Tg("Processor order nodes", 2), e.b = B(H(y(n, (Ac(), uq)))), e.a = u(y(n, Fb), 86), e.a == (Mi(), Th) && (e.a = Mh, K(n, Fb, e.a)), r = new Dt(), s = Nn(n.b, 0); s.b != s.d.c; ) + c = u(Ln(s), 40), ve(me(y(c, (_t(), od)))) && ti(r, c, r.c.b, r.c); + i = (An(r.b != 0), u(r.a.a.c, 40)), FUe(e, i), t.eh(1), xte(e, i, 0 - B(H(y(i, (_t(), EC)))) / 2, 0), t.eh(1), t.Ug(); } function Ms() { Ms = G, k4 = new Qg("DEFAULT_MINIMUM_SIZE", 0), GE = new Qg("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING", 1), VC = new Qg("COMPUTE_PADDING", 2), k8 = new Qg("OUTSIDE_NODE_LABELS_OVERHANG", 3), QC = new Qg("PORTS_OVERHANG", 4), ZC = new Qg("UNIFORM_PORT_SPACING", 5), YC = new Qg("SPACE_EFFICIENT_PORT_LABELS", 6), bU = new Qg("FORCE_TABULAR_NODE_LABELS", 7), JE = new Qg("ASYMMETRICAL", 8); @@ -24696,27 +24786,27 @@ function WDn() { throw $(new on("Given enter edge is a tree edge already.")); for (n.f = !1, DX(e.p, n), t.f = !0, ki(e.p, t), i = t.e.e - t.d.e - t.a, cR(e, t.e, n) || (i = -i), c = new x(e.e.a); c.a < c.c.c.length; ) r = u(A(c), 124), cR(e, r, n) || (r.e += i); - e.j = 1, F4(e.c), Cne(e, u(A(new x(e.e.a)), 124)), zUe(e); + e.j = 1, F4(e.c), Cne(e, u(A(new x(e.e.a)), 124)), WUe(e); } - function Gqe(e, n) { + function Hqe(e, n) { var t, i, r, c, s, f; if (f = u(y(n, (ae(), oi)), 102), f == (Ui(), Il) || f == Vc) for (r = new ue(n.f.a + n.d.b + n.d.c, n.f.b + n.d.d + n.d.a).b, s = new x(e.a); s.a < s.c.c.length; ) - c = u(A(s), 9), c.k == (cn(), Ai) && (t = u(y(c, (te(), Sc)), 64), !(t != (be(), gn) && t != an) && (i = _(H(y(c, Cb))), f == Il && (i *= r), c.n.b = i - u(y(c, Db), 8).b, yM(c, !1, !0))); + c = u(A(s), 9), c.k == (cn(), Ai) && (t = u(y(c, (te(), Sc)), 64), !(t != (be(), gn) && t != an) && (i = B(H(y(c, Cb))), f == Il && (i *= r), c.n.b = i - u(y(c, Db), 8).b, yM(c, !1, !0))); } - function Hqe(e, n, t, i, r) { - t && (!i || (e.c - e.b & e.a.length - 1) > 1) && n == 1 && u(e.a[e.b], 9).k == (cn(), _c) ? L3(u(e.a[e.b], 9), (Zs(), Tl)) : i && (!t || (e.c - e.b & e.a.length - 1) > 1) && n == 1 && u(e.a[e.c - 1 & e.a.length - 1], 9).k == (cn(), _c) ? L3(u(e.a[e.c - 1 & e.a.length - 1], 9), (Zs(), hd)) : (e.c - e.b & e.a.length - 1) == 2 ? (L3(u(z6(e), 9), (Zs(), Tl)), L3(u(z6(e), 9), hd)) : Ixn(e, r), AQ(e); + function qqe(e, n, t, i, r) { + t && (!i || (e.c - e.b & e.a.length - 1) > 1) && n == 1 && u(e.a[e.b], 9).k == (cn(), Bc) ? L3(u(e.a[e.b], 9), (Zs(), Tl)) : i && (!t || (e.c - e.b & e.a.length - 1) > 1) && n == 1 && u(e.a[e.c - 1 & e.a.length - 1], 9).k == (cn(), Bc) ? L3(u(e.a[e.c - 1 & e.a.length - 1], 9), (Zs(), hd)) : (e.c - e.b & e.a.length - 1) == 2 ? (L3(u(z6(e), 9), (Zs(), Tl)), L3(u(z6(e), 9), hd)) : Ixn(e, r), AQ(e); } function VTn(e) { var n, t, i, r, c, s, f, h; for (h = new Tn(), n = new eO(), s = e.Jc(); s.Ob(); ) r = u(s.Pb(), 9), f = F0(V8(new jd(), r), n), Ru(h.f, r, f); for (c = e.Jc(); c.Ob(); ) - for (r = u(c.Pb(), 9), i = new fn(dn(Ht(r).a.Jc(), new Q())); xn(i); ) + for (r = u(c.Pb(), 9), i = new fn(dn(Ht(r).a.Jc(), new Y())); xn(i); ) t = u(pn(i), 17), !hr(t) && yf(ff(of(sf(hf(new Ro(), m.Math.max(1, u(y(t, (ae(), Zhe)), 15).a)), 1), u(rn(h, t.c.i), 124)), u(rn(h, t.d.i), 124))); return n; } - function qqe(e, n, t, i) { + function Uqe(e, n, t, i) { var r, c, s, f, h, l, a, d, g, p; if (M5n(e, n, t), c = n[t], p = i ? (be(), an) : (be(), gn), Q1n(n.length, t, i)) { for (r = n[i ? t - 1 : t + 1], GQ(e, r, i ? (Cr(), yu) : (Cr(), bs)), h = c, a = 0, g = h.length; a < g; ++a) @@ -24730,7 +24820,7 @@ function WDn() { } function QTn(e, n, t, i, r) { var c, s, f, h, l, a, d; - for (ze(), Di(e, new p5e()), f = new Vi(e, 0), d = new le(), c = 0; f.b < f.d.gc(); ) + for (ze(), Di(e, new m5e()), f = new Vi(e, 0), d = new le(), c = 0; f.b < f.d.gc(); ) s = (An(f.b < f.d.gc()), u(f.d.Xb(f.c = f.b++), 167)), d.c.length != 0 && Zu(s) * Ns(s) > c * 2 ? (a = new eM(d), l = Zu(s) / Ns(s), h = UR(a, n, new Op(), t, i, r, l), At(Rf(a.e), h), d.c.length = 0, c = 0, sn(d.c, a), sn(d.c, s), c = Zu(a) * Ns(a) + Zu(s) * Ns(s)) : (sn(d.c, s), c += Zu(s) * Ns(s)); return d; } @@ -24738,7 +24828,7 @@ function WDn() { var t, i, r, c, s, f, h; for (n.Tg("Port order processing", 1), h = u(y(e, (ae(), Yhe)), 421), i = new x(e.b); i.a < i.c.c.length; ) for (t = u(A(i), 25), c = new x(t.a); c.a < c.c.c.length; ) - r = u(A(c), 9), s = u(y(r, oi), 102), f = r.j, s == (Ui(), k0) || s == Il || s == Vc ? (ze(), Di(f, Xoe)) : s != Sh && s != ad && (ze(), Di(f, aen), S8n(f), h == (n7(), GH) && Di(f, len)), r.i = !0, Tne(r); + r = u(A(c), 9), s = u(y(r, oi), 102), f = r.j, s == (Ui(), k0) || s == Il || s == Vc ? (ze(), Di(f, Xoe)) : s != Sh && s != ad && (ze(), Di(f, den), S8n(f), h == (n7(), GH) && Di(f, aen)), r.i = !0, Tne(r); n.Ug(); } function ZTn(e, n, t) { @@ -24756,23 +24846,23 @@ function WDn() { function Nte(e, n) { var t, i, r, c, s, f, h, l, a, d; for (d = 0, c = new r2(), M1(c, n); c.b != c.c; ) - for (h = u(i3(c), 218), l = 0, a = u(y(n.j, (ae(), $l)), 269), u(y(n.j, Ck), 329), s = _(H(y(n.j, rE))), f = _(H(y(n.j, lH))), a != (ta(), cd) && (l += s * Fxn(n.j, h.e, a), l += f * kTn(n.j, h.e)), d += d_e(h.d, h.e) + l, r = new x(h.b); r.a < r.c.c.length; ) + for (h = u(i3(c), 218), l = 0, a = u(y(n.j, (ae(), $l)), 269), u(y(n.j, Ck), 329), s = B(H(y(n.j, rE))), f = B(H(y(n.j, lH))), a != (ta(), cd) && (l += s * Fxn(n.j, h.e, a), l += f * kTn(n.j, h.e)), d += bBe(h.d, h.e) + l, r = new x(h.b); r.a < r.c.c.length; ) i = u(A(r), 37), t = u(pe(e.b, i.p), 218), t.s || (d += aT(e, t)); return d; } - function Uqe() { - Uqe = G, Crn = et(new wi(), (zi(), Kc), (Qi(), Ooe)), _le = et(new wi(), Xc, dI), Orn = au(et(new wi(), Xc, yI), Nr, kI), Irn = au(et(et(new wi(), Xc, Toe), Kc, Soe), Nr, Ioe), Lrn = Hh(Hh(W4(au(et(new wi(), $f, xI), Nr, AI), Kc), EI), $I), Prn = au(new wi(), Nr, Loe), Trn = au(et(et(et(new wi(), Al, wI), Kc, pI), Kc, q5), Nr, gI), Srn = au(et(et(new wi(), Kc, q5), Kc, aI), Nr, lI); + function zqe() { + zqe = G, Prn = et(new wi(), (zi(), Kc), (Qi(), Ooe)), Ble = et(new wi(), Xc, dI), Lrn = au(et(new wi(), Xc, yI), Nr, kI), Crn = au(et(et(new wi(), Xc, Toe), Kc, Soe), Nr, Ioe), Drn = Hh(Hh(W4(au(et(new wi(), $f, xI), Nr, AI), Kc), EI), $I), Orn = au(new wi(), Nr, Loe), Srn = au(et(et(et(new wi(), Al, wI), Kc, pI), Kc, q5), Nr, gI), Irn = au(et(et(new wi(), Kc, q5), Kc, aI), Nr, lI); } function eSn(e, n, t, i, r, c) { var s, f, h, l, a, d, g; - for (l = TFe(n) - TFe(e), s = xJe(n, l), h = Eu(0, 0, 0); l >= 0 && (f = dyn(e, s), !(f && (l < 22 ? h.l |= 1 << l : l < 44 ? h.m |= 1 << l - 22 : h.h |= 1 << l - 44, e.l == 0 && e.m == 0 && e.h == 0))); ) + for (l = SFe(n) - SFe(e), s = $Je(n, l), h = Eu(0, 0, 0); l >= 0 && (f = dyn(e, s), !(f && (l < 22 ? h.l |= 1 << l : l < 44 ? h.m |= 1 << l - 22 : h.h |= 1 << l - 44, e.l == 0 && e.m == 0 && e.h == 0))); ) a = s.m, d = s.h, g = s.l, s.h = d >>> 1, s.m = a >>> 1 | (d & 1) << 21, s.l = g >>> 1 | (a & 1) << 21, --l; - return t && RN(h), c && (i ? (Q1 = Sv(e), r && (Q1 = vFe(Q1, (vv(), sse)))) : Q1 = Eu(e.l, e.m, e.h)), h; + return t && RN(h), c && (i ? (Q1 = Sv(e), r && (Q1 = kFe(Q1, (vv(), sse)))) : Q1 = Eu(e.l, e.m, e.h)), h; } function nSn(e, n) { var t, i, r, c, s, f, h, l, a, d; for (l = e.e[n.c.p][n.p] + 1, h = n.c.a.c.length + 1, f = new x(e.a); f.a < f.c.c.length; ) { - for (s = u(A(f), 12), d = 0, c = 0, r = ll(vo(I(T(To, 1), Ve, 20, 0, [new Nm(s), new Sp(s)]))); xn(r); ) + for (s = u(A(f), 12), d = 0, c = 0, r = ll(vo(I(S(To, 1), Ve, 20, 0, [new Nm(s), new Sp(s)]))); xn(r); ) i = u(pn(r), 12), i.i.c == n.c && (d += H1n(e, i.i) + 1, ++c); t = d / c, a = s.j, a == (be(), gn) ? t < l ? e.f[s.p] = e.c - t : e.f[s.p] = e.b + (h - t) : a == an && (t < l ? e.f[s.p] = e.b + t : e.f[s.p] = e.c - (h - t)); } @@ -24780,9 +24870,9 @@ function WDn() { function eo(e, n, t) { var i, r, c, s, f; if (e == null) - throw $(new Dh(Bu)); + throw $(new Dh(_u)); for (c = e.length, s = c > 0 && (bn(0, e.length), e.charCodeAt(0) == 45 || (bn(0, e.length), e.charCodeAt(0) == 43)) ? 1 : 0, i = s; i < c; i++) - if (wBe((bn(i, e.length), e.charCodeAt(i))) == -1) + if (g_e((bn(i, e.length), e.charCodeAt(i))) == -1) throw $(new Dh(wb + e + '"')); if (f = parseInt(e, 10), r = f < n, isNaN(f)) throw $(new Dh(wb + e + '"')); @@ -24830,7 +24920,7 @@ function WDn() { case 73: return D2(SJ, !1); default: - throw $(new fc((n = e, xQe + n.toString(16)))); + throw $(new fc((n = e, $Qe + n.toString(16)))); } } function rSn(e) { @@ -24860,7 +24950,7 @@ function WDn() { function cSn(e, n, t) { var i, r, c, s, f; for (c = 0, r = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); r.e != r.i.gc(); ) - i = u(En(r), 26), s = "", (!i.n && (i.n = new ne(vc, i, 1, 7)), i.n).i == 0 || (s = u(F((!i.n && (i.n = new ne(vc, i, 1, 7)), i.n), 0), 157).a), f = new _N(c++, n, s), Pc(f, i), K(f, (Bt(), Qk), i), f.e.b = i.j + i.f / 2, f.f.a = m.Math.max(i.g, 1), f.e.a = i.i + i.g / 2, f.f.b = m.Math.max(i.f, 1), rt(n.b, f), Ru(t.f, i, f); + i = u(En(r), 26), s = "", (!i.n && (i.n = new ne(vc, i, 1, 7)), i.n).i == 0 || (s = u(F((!i.n && (i.n = new ne(vc, i, 1, 7)), i.n), 0), 157).a), f = new BN(c++, n, s), Pc(f, i), K(f, (_t(), Qk), i), f.e.b = i.j + i.f / 2, f.f.a = m.Math.max(i.g, 1), f.e.a = i.i + i.g / 2, f.f.b = m.Math.max(i.f, 1), rt(n.b, f), Ru(t.f, i, f); } function Fte(e, n, t) { var i, r, c, s; @@ -24888,8 +24978,8 @@ function WDn() { } function uSn(e) { var n, t, i, r, c, s, f, h, l; - for (s = new le(), i = new fn(dn(Ht(e.b).a.Jc(), new Q())); xn(i); ) - t = u(pn(i), 17), hr(t) && he(s, new qOe(t, CLe(e, t.c), CLe(e, t.d))); + for (s = new le(), i = new fn(dn(Ht(e.b).a.Jc(), new Y())); xn(i); ) + t = u(pn(i), 17), hr(t) && he(s, new UOe(t, PLe(e, t.c), PLe(e, t.d))); for (l = (c = new Rl(e.e).a.vc().Jc(), new zb(c)); l.a.Ob(); ) f = (n = u(l.a.Pb(), 45), u(n.kd(), 113)), f.d.p = 0; for (h = (r = new Rl(e.e).a.vc().Jc(), new zb(r)); h.a.Ob(); ) @@ -24899,7 +24989,7 @@ function WDn() { var t, i, r, c, s, f, h, l, a; for (s = new x(n.b); s.a < s.c.c.length; ) for (c = u(A(s), 25), l = new x(c.a); l.a < l.c.c.length; ) { - for (h = u(A(l), 9), a = new le(), f = 0, i = new fn(dn(bi(h).a.Jc(), new Q())); xn(i); ) + for (h = u(A(l), 9), a = new le(), f = 0, i = new fn(dn(bi(h).a.Jc(), new Y())); xn(i); ) t = u(pn(i), 17), !(hr(t) || !hr(t) && t.c.i.c == t.d.i.c) && (r = u(y(t, (ae(), am)), 15).a, r > f && (f = r, a.c.length = 0), r == f && he(a, new Ar(t.c.i, t))); ze(), Di(a, e.c), Md(e.b, h.p, a); } @@ -24908,7 +24998,7 @@ function WDn() { var t, i, r, c, s, f, h, l, a; for (s = new x(n.b); s.a < s.c.c.length; ) for (c = u(A(s), 25), l = new x(c.a); l.a < l.c.c.length; ) { - for (h = u(A(l), 9), a = new le(), f = 0, i = new fn(dn(Ht(h).a.Jc(), new Q())); xn(i); ) + for (h = u(A(l), 9), a = new le(), f = 0, i = new fn(dn(Ht(h).a.Jc(), new Y())); xn(i); ) t = u(pn(i), 17), !(hr(t) || !hr(t) && t.c.i.c == t.d.i.c) && (r = u(y(t, (ae(), am)), 15).a, r > f && (f = r, a.c.length = 0), r == f && he(a, new Ar(t.d.i, t))); ze(), Di(a, e.c), Md(e.f, h.p, a); } @@ -24929,8 +25019,8 @@ function WDn() { } function lSn(e, n) { var t, i, r, c, s, f, h, l; - if (l = me(y(n, (Ac(), wcn))), l == null || (Ze(l), l)) { - for (_An(e, n), r = new le(), h = Nn(n.b, 0); h.b != h.d.c; ) + if (l = me(y(n, (Ac(), gcn))), l == null || (Ze(l), l)) { + for (BAn(e, n), r = new le(), h = Nn(n.b, 0); h.b != h.d.c; ) s = u(Ln(h), 40), t = kne(e, s, null), t && (Pc(t, n), sn(r.c, t)); if (e.a = null, e.b = null, r.c.length > 1) for (i = new x(r); i.a < i.c.c.length; ) @@ -24938,42 +25028,42 @@ function WDn() { s = u(Ln(f), 40), s.g = c++; return r; } - return wf(I(T(qLn, 1), zWe, 120, 0, [n])); + return wf(I(S(qLn, 1), WWe, 120, 0, [n])); } function aSn(e, n) { var t, i, r, c, s, f; for (r = new x(n.a); r.a < r.c.c.length; ) - i = u(A(r), 9), c = y(i, (te(), $t)), N(c, 12) && (s = u(c, 12), f = lUe(n, i, s.o.a, s.o.b), s.n.a = f.a, s.n.b = f.b, Oi(s, u(y(i, Sc), 64))); - t = new ue(n.f.a + n.d.b + n.d.c, n.f.b + n.d.d + n.d.a), u(y(n, (te(), ou)), 22).Gc((Pr(), So)) ? (K(e, (ae(), oi), (Ui(), Vc)), u(y(_i(e), ou), 22).Ec(Z5), QUe(e, t, !1)) : QUe(e, t, !0); + i = u(A(r), 9), c = y(i, (te(), $t)), N(c, 12) && (s = u(c, 12), f = aUe(n, i, s.o.a, s.o.b), s.n.a = f.a, s.n.b = f.b, Oi(s, u(y(i, Sc), 64))); + t = new ue(n.f.a + n.d.b + n.d.c, n.f.b + n.d.d + n.d.a), u(y(n, (te(), ou)), 22).Gc((Pr(), So)) ? (K(e, (ae(), oi), (Ui(), Vc)), u(y(Bi(e), ou), 22).Ec(Z5), YUe(e, t, !1)) : YUe(e, t, !0); } function dSn(e) { var n, t, i, r, c, s, f, h; for (h = new ms(), n = Nn(e, 0), f = null, t = u(Ln(n), 8), r = u(Ln(n), 8); n.b != n.d.c; ) - f = t, t = r, r = u(Ln(n), 8), c = GDe(Fi(new ue(f.a, f.b), t)), s = GDe(Fi(new ue(r.a, r.b), t)), i = 10, i = m.Math.min(i, m.Math.abs(c.a + c.b) / 2), i = m.Math.min(i, m.Math.abs(s.a + s.b) / 2), c.a = Iy(c.a) * i, c.b = Iy(c.b) * i, s.a = Iy(s.a) * i, s.b = Iy(s.b) * i, rt(h, At(c, t)), rt(h, At(s, t)); + f = t, t = r, r = u(Ln(n), 8), c = HDe(Fi(new ue(f.a, f.b), t)), s = HDe(Fi(new ue(r.a, r.b), t)), i = 10, i = m.Math.min(i, m.Math.abs(c.a + c.b) / 2), i = m.Math.min(i, m.Math.abs(s.a + s.b) / 2), c.a = Iy(c.a) * i, c.b = Iy(c.b) * i, s.a = Iy(s.a) * i, s.b = Iy(s.b) * i, rt(h, At(c, t)), rt(h, At(s, t)); return h; } function bSn(e, n, t) { var i, r, c, s, f, h; - if (t.Tg("Minimize Crossings " + e.a, 1), i = n.b.c.length == 0 || !Hm(mt(new Ge(null, new He(n.b, 16)), new Dm(new a3e()))).zd((Ad(), V3)), h = n.b.c.length == 1 && u(pe(n.b, 0), 25).a.c.length == 1, c = z(y(n, (ae(), ag))) === z((ea(), r1)), i || h && !c) { + if (t.Tg("Minimize Crossings " + e.a, 1), i = n.b.c.length == 0 || !Hm(mt(new Ge(null, new He(n.b, 16)), new Dm(new d3e()))).zd((Ad(), V3)), h = n.b.c.length == 1 && u(pe(n.b, 0), 25).a.c.length == 1, c = z(y(n, (ae(), ag))) === z((ea(), r1)), i || h && !c) { t.Ug(); return; } - r = rMn(e, n), s = (f = u(qc(r, 0), 218), f.c.ig() ? f.c.cg() ? new nye(e) : new tye(e) : new eye(e)), x6n(r, s), e9n(e), t.Ug(); + r = rMn(e, n), s = (f = u(qc(r, 0), 218), f.c.ig() ? f.c.cg() ? new tye(e) : new iye(e) : new nye(e)), x6n(r, s), e9n(e), t.Ug(); } function no(e, n, t, i) { var r, c, s, f, h; - return s = e.Mh(), h = e.Gh(), r = null, h ? n && (jR(e, n, t).Bb & xr) == 0 ? (i = jr(h.Cl(), e, i), e.ai(null), r = n.Nh()) : h = null : (s && (h = s.Nh()), n && (r = n.Nh())), h != r && h && h.Gl(e), f = e.Ch(), e.yh(n, t), h != r && r && r.Fl(e), e.sh() && e.th() && (s && f >= 0 && f != t && (c = new Bi(e, 1, f, s, null), i ? i.lj(c) : i = c), t >= 0 && (c = new Bi(e, 1, t, f == t ? s : null, n), i ? i.lj(c) : i = c)), i; + return s = e.Mh(), h = e.Gh(), r = null, h ? n && (jR(e, n, t).Bb & xr) == 0 ? (i = jr(h.Cl(), e, i), e.ai(null), r = n.Nh()) : h = null : (s && (h = s.Nh()), n && (r = n.Nh())), h != r && h && h.Gl(e), f = e.Ch(), e.yh(n, t), h != r && r && r.Fl(e), e.sh() && e.th() && (s && f >= 0 && f != t && (c = new _i(e, 1, f, s, null), i ? i.lj(c) : i = c), t >= 0 && (c = new _i(e, 1, t, f == t ? s : null, n), i ? i.lj(c) : i = c)), i; } - function zqe(e) { + function Wqe(e) { var n, t, i; if (e.b == null) { - if (i = new xa(), e.i != null && (Br(i, e.i), i.a += ":"), (e.f & 256) != 0) { - for ((e.f & 256) != 0 && e.a != null && (A2n(e.i) || (i.a += "//"), Br(i, e.a)), e.d != null && (i.a += "/", Br(i, e.d)), (e.f & 16) != 0 && (i.a += "/"), n = 0, t = e.j.length; n < t; n++) - n != 0 && (i.a += "/"), Br(i, e.j[n]); - e.g != null && (i.a += "?", Br(i, e.g)); + if (i = new xa(), e.i != null && (_r(i, e.i), i.a += ":"), (e.f & 256) != 0) { + for ((e.f & 256) != 0 && e.a != null && (A2n(e.i) || (i.a += "//"), _r(i, e.a)), e.d != null && (i.a += "/", _r(i, e.d)), (e.f & 16) != 0 && (i.a += "/"), n = 0, t = e.j.length; n < t; n++) + n != 0 && (i.a += "/"), _r(i, e.j[n]); + e.g != null && (i.a += "?", _r(i, e.g)); } else - Br(i, e.a); - e.e != null && (i.a += "#", Br(i, e.e)), e.b = i.a; + _r(i, e.a); + e.e != null && (i.a += "#", _r(i, e.e)), e.b = i.a; } return e.b; } @@ -24987,9 +25077,9 @@ function WDn() { return t; if (s) throw $(new on("key already present: " + t)); - return f && I2(e, f), s && I2(e, s), c = new l$(t, r, n, h), _7(e, c, s), s && (s.e = null, s.c = null), f && (f.e = null, f.c = null), O_e(e), f ? f.g : null; + return f && I2(e, f), s && I2(e, s), c = new l$(t, r, n, h), B7(e, c, s), s && (s.e = null, s.c = null), f && (f.e = null, f.c = null), LBe(e), f ? f.g : null; } - function Wqe(e, n, t) { + function Xqe(e, n, t) { var i, r, c, s, f; for (c = 0; c < n; c++) { for (i = 0, f = c + 1; f < n; f++) @@ -25000,10 +25090,10 @@ function WDn() { i = yr(yr(gr(qi(e[r], Or), qi(e[r], Or)), qi(t[s], Or)), qi(Xn(i), Or)), t[s] = Xn(i), i = Id(i, 32), ++s, i = yr(i, qi(t[s], Or)), t[s] = Xn(i), i = Id(i, 32); return t; } - function Xqe(e, n, t) { + function Kqe(e, n, t) { var i, r, c, s, f, h, l, a; if (!yw(n)) { - for (h = _(H(Ow(t.c, (ae(), Fk)))), l = u(Ow(t.c, fE), 140), !l && (l = new O4()), i = t.a, r = null, f = n.Jc(); f.Ob(); ) + for (h = B(H(Ow(t.c, (ae(), Fk)))), l = u(Ow(t.c, fE), 140), !l && (l = new O4()), i = t.a, r = null, f = n.Jc(); f.Ob(); ) s = u(f.Pb(), 12), a = 0, r ? (a = h, a += r.o.b) : a = l.d, c = F0(V8(new jd(), s), e.f), ht(e.k, s, c), yf(ff(of(sf(hf(new Ro(), 0), dr(m.Math.ceil(a))), i), c)), r = s, i = c; yf(ff(of(sf(hf(new Ro(), 0), dr(m.Math.ceil(l.a + r.o.b))), i), t.d)); } @@ -25014,8 +25104,8 @@ function WDn() { } function mSn(e, n) { var t, i, r, c, s, f; - if (n.Tg("Partition midprocessing", 1), r = new W0(), fi(mt(new Ge(null, new He(e.a, 16)), new t2e()), new p8e(r)), r.d != 0) { - for (f = u(fs(sQ((c = r.i, new Ge(null, (c || (r.i = new u2(r, r.c))).Lc()))), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), i = f.Jc(), t = u(i.Pb(), 15); i.Ob(); ) + if (n.Tg("Partition midprocessing", 1), r = new W0(), fi(mt(new Ge(null, new He(e.a, 16)), new i2e()), new m8e(r)), r.d != 0) { + for (f = u(fs(sQ((c = r.i, new Ge(null, (c || (r.i = new u2(r, r.c))).Lc()))), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), i = f.Jc(), t = u(i.Pb(), 15); i.Ob(); ) s = u(i.Pb(), 15), h$n(u(Mt(r, t), 22), u(Mt(r, s), 22)), t = s; n.Ug(); } @@ -25031,7 +25121,7 @@ function WDn() { return t; } else for (c = 0; c < s; ++c) - if (t = r[c], _e(n, t.d)) + if (t = r[c], Be(n, t.d)) return t; } } else if (n == null) { @@ -25040,21 +25130,21 @@ function WDn() { return t; } else for (i = new kn(e.Ab); i.e != i.i.gc(); ) - if (t = u(En(i), 587), _e(n, t.d)) + if (t = u(En(i), 587), Be(n, t.d)) return t; } return null; } - function Kqe(e, n, t, i, r) { - var c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; - p = kmn(e, WY(n), r), CY(p, zl(r, Zh)), U = null, v = r, j = P6(v, VKe), E = new e7e(p), EJe(E.a, j), M = P6(v, "endPoint"), D = new r7e(p), jJe(D.a, M), R = K0(v, TS), J = new s7e(p), K_e(J.a, R), d = zl(r, Mue), c = new Cxe(e, p), cTe(c.a, c.b, d), g = zl(r, $ue), s = new Pxe(e, p), uTe(s.a, s.b, g), l = K0(r, Sue), f = new Oxe(t, p), v_e(f.b, f.a, l), a = K0(r, Tue), h = new Lxe(i, p), k_e(h.b, h.a, a); + function Vqe(e, n, t, i, r) { + var c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; + p = kmn(e, WY(n), r), CY(p, zl(r, Zh)), q = null, v = r, j = P6(v, QKe), E = new n7e(p), AJe(E.a, j), T = P6(v, "endPoint"), D = new c7e(p), EJe(D.a, T), R = K0(v, TS), J = new o7e(p), VBe(J.a, R), d = zl(r, Mue), c = new Pxe(e, p), uTe(c.a, c.b, d), g = zl(r, $ue), s = new Oxe(e, p), sTe(s.a, s.b, g), l = K0(r, Sue), f = new Lxe(t, p), kBe(f.b, f.a, l), a = K0(r, Tue), h = new Dxe(i, p), yBe(h.b, h.a, a); } - function Vqe(e, n, t) { + function Qqe(e, n, t) { var i, r, c, s, f, h, l, a; if (n.p == 0) { for (n.p = 1, s = t, s || (r = new le(), c = (i = u(Ff(Mr), 10), new wo(i, u(af(i, i.length), 10), 0)), s = new Ar(r, c)), u(s.a, 16).Ec(n), n.k == (cn(), Ai) && u(s.b, 22).Ec(u(y(n, (te(), Sc)), 64)), h = new x(n.j); h.a < h.c.c.length; ) - for (f = u(A(h), 12), a = ll(vo(I(T(To, 1), Ve, 20, 0, [new Nm(f), new Sp(f)]))); xn(a); ) - l = u(pn(a), 12), Vqe(e, l.i, s); + for (f = u(A(h), 12), a = ll(vo(I(S(To, 1), Ve, 20, 0, [new Nm(f), new Sp(f)]))); xn(a); ) + l = u(pn(a), 12), Qqe(e, l.i, s); return s; } return null; @@ -25076,10 +25166,10 @@ function WDn() { } return f && (ac(f, e), Oi(f, t), E8n(f.n, e.o, t)), f; } - function Qqe(e, n) { + function Yqe(e, n) { var t, i, r, c, s, f; for (f = -1, s = new Dt(), i = new fh(e.b); lc(i.a) || lc(i.b); ) { - for (t = u(lc(i.a) ? A(i.a) : A(i.b), 17), f = m.Math.max(f, _(H(y(t, (ae(), Ya))))), t.c == e ? fi(mt(new Ge(null, new He(t.b, 16)), new Ywe()), new u8e(s)) : fi(mt(new Ge(null, new He(t.b, 16)), new Zwe()), new s8e(s)), c = Nn(s, 0); c.b != c.d.c; ) + for (t = u(lc(i.a) ? A(i.a) : A(i.b), 17), f = m.Math.max(f, B(H(y(t, (ae(), Ya))))), t.c == e ? fi(mt(new Ge(null, new He(t.b, 16)), new Zwe()), new s8e(s)) : fi(mt(new Ge(null, new He(t.b, 16)), new ege()), new o8e(s)), c = Nn(s, 0); c.b != c.d.c; ) r = u(Ln(c), 70), Et(r, (te(), rm)) || K(r, rm, t); Ci(n, s), Fs(s); } @@ -25087,12 +25177,12 @@ function WDn() { } function lb(e, n, t, i, r) { var c, s, f, h, l; - f = r ? i.b : i.a, !Bo(e.a, i) && (l = f > t.s && f < t.c, h = !1, t.e.b != 0 && t.j.b != 0 && (h = h | (m.Math.abs(f - _(H(Ym(t.e)))) < Vh && m.Math.abs(f - _(H(Ym(t.j)))) < Vh), h = h | (m.Math.abs(f - _(H(lf(t.e)))) < Vh && m.Math.abs(f - _(H(lf(t.j)))) < Vh)), (l || h) && (s = u(y(n, (ae(), Vr)), 78), s || (s = new ms(), K(n, Vr, s)), c = new vr(i), ti(s, c, s.c.b, s.c), ki(e.a, c))); + f = r ? i.b : i.a, !_o(e.a, i) && (l = f > t.s && f < t.c, h = !1, t.e.b != 0 && t.j.b != 0 && (h = h | (m.Math.abs(f - B(H(Ym(t.e)))) < Vh && m.Math.abs(f - B(H(Ym(t.j)))) < Vh), h = h | (m.Math.abs(f - B(H(lf(t.e)))) < Vh && m.Math.abs(f - B(H(lf(t.j)))) < Vh)), (l || h) && (s = u(y(n, (ae(), Vr)), 78), s || (s = new ms(), K(n, Vr, s)), c = new vr(i), ti(s, c, s.c.b, s.c), ki(e.a, c))); } function vSn(e, n, t) { var i, r, c, s, f, h, l, a, d; for (t.Tg("Processor set coordinates", 1), e.a = n.b.b == 0 ? 1 : n.b.b, l = null, i = Nn(n.b, 0); !l && i.b != i.d.c; ) - d = u(Ln(i), 40), ve(me(y(d, (Bt(), od)))) && (l = d, h = d.e, h.a = u(y(d, pE), 15).a, h.b = u(y(d, mE), 15).a); + d = u(Ln(i), 40), ve(me(y(d, (_t(), od)))) && (l = d, h = d.e, h.a = u(y(d, pE), 15).a, h.b = u(y(d, mE), 15).a); f = LN(l), a = 1; do f = Jjn((r = f, t.dh(a), r)), a = f.b / e.a | 0; @@ -25103,23 +25193,23 @@ function WDn() { } function kSn(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v, j; - for (t = !1, a = _(H(y(n, (ae(), g0)))), v = U1 * a, r = new x(n.b); r.a < r.c.c.length; ) + for (t = !1, a = B(H(y(n, (ae(), g0)))), v = U1 * a, r = new x(n.b); r.a < r.c.c.length; ) for (i = u(A(r), 25), l = new x(i.a), c = u(A(l), 9), d = mV(e.a[c.p]); l.a < l.c.c.length; ) f = u(A(l), 9), g = mV(e.a[f.p]), d != g && (p = i2(e.b, c, f), s = c.n.b + c.o.b + c.d.a + d.a + p, h = f.n.b - f.d.d + g.a, s > h + v && (j = d.g + g.g, g.a = (g.g * g.a + d.g * d.a) / j, g.g = j, d.f = g, t = !0)), c = f, d = g; return t; } function ySn(e, n, t) { var i, r, c, s, f, h, l, a; - for (t.Tg(_Xe, 1), Fc(e.b), Fc(e.a), f = null, c = Nn(n.b, 0); !f && c.b != c.d.c; ) - l = u(Ln(c), 40), ve(me(y(l, (Bt(), od)))) && (f = l); - for (h = new Dt(), ti(h, f, h.c.b, h.c), xze(e, h), a = Nn(n.b, 0); a.b != a.d.c; ) - l = u(Ln(a), 40), s = zn(y(l, (Bt(), Vk))), r = nu(e.b, s) != null ? u(nu(e.b, s), 15).a : 0, K(l, eq, ie(r)), i = 1 + (nu(e.a, s) != null ? u(nu(e.a, s), 15).a : 0), K(l, nae, ie(i)); + for (t.Tg(JXe, 1), Fc(e.b), Fc(e.a), f = null, c = Nn(n.b, 0); !f && c.b != c.d.c; ) + l = u(Ln(c), 40), ve(me(y(l, (_t(), od)))) && (f = l); + for (h = new Dt(), ti(h, f, h.c.b, h.c), $ze(e, h), a = Nn(n.b, 0); a.b != a.d.c; ) + l = u(Ln(a), 40), s = zn(y(l, (_t(), Vk))), r = nu(e.b, s) != null ? u(nu(e.b, s), 15).a : 0, K(l, eq, ie(r)), i = 1 + (nu(e.a, s) != null ? u(nu(e.a, s), 15).a : 0), K(l, nae, ie(i)); t.Ug(); } - function Yqe(e) { - ew(e, new sb(Yb(Kb(Qb(Vb(new S0(), yb), "ELK Box"), "Algorithm for packing of unconnected boxes, i.e. graphs without edges."), new l5e()))), se(e, yb, Qw, Z1e), se(e, yb, Vw, 15), se(e, yb, mj, ie(0)), se(e, yb, due, ge(V1e)), se(e, yb, R2, ge(fsn)), se(e, yb, H3, ge(hsn)), se(e, yb, v5, hKe), se(e, yb, B9, ge(Q1e)), se(e, yb, q3, ge(Y1e)), se(e, yb, bue, ge(Xq)), se(e, yb, wS, ge(osn)); + function Zqe(e) { + ew(e, new sb(Yb(Kb(Qb(Vb(new S0(), yb), "ELK Box"), "Algorithm for packing of unconnected boxes, i.e. graphs without edges."), new a5e()))), se(e, yb, Qw, Z1e), se(e, yb, Vw, 15), se(e, yb, mj, ie(0)), se(e, yb, due, ge(V1e)), se(e, yb, R2, ge(hsn)), se(e, yb, H3, ge(lsn)), se(e, yb, v5, lKe), se(e, yb, _9, ge(Q1e)), se(e, yb, q3, ge(Y1e)), se(e, yb, bue, ge(Xq)), se(e, yb, wS, ge(fsn)); } - function Zqe(e, n) { + function eUe(e, n) { var t, i, r, c, s, f, h, l, a; if (r = e.i, s = r.o.a, c = r.o.b, s <= 0 && c <= 0) return be(), mc; @@ -25140,28 +25230,28 @@ function WDn() { } return h = (l + f / 2) / s, i = (a + t / 2) / c, h + i <= 1 && h - i <= 0 ? (be(), an) : h + i >= 1 && h - i >= 0 ? (be(), gn) : i < 0.5 ? (be(), ln) : (be(), Mn); } - function eUe(e, n, t, i, r, c, s) { + function nUe(e, n, t, i, r, c, s) { var f, h, l, a, d, g; for (g = new zp(), l = n.Jc(); l.Ob(); ) for (f = u(l.Pb(), 837), d = new x(f.Pf()); d.a < d.c.c.length; ) - a = u(A(d), 187), z(a.mf((tt(), Zq))) === z((lh(), p4)) && (Pqe(g, a, !1, i, r, c, s), a9(e, g)); + a = u(A(d), 187), z(a.mf((tt(), Zq))) === z((lh(), p4)) && (Oqe(g, a, !1, i, r, c, s), a9(e, g)); for (h = t.Jc(); h.Ob(); ) for (f = u(h.Pb(), 837), d = new x(f.Pf()); d.a < d.c.c.length; ) - a = u(A(d), 187), z(a.mf((tt(), Zq))) === z((lh(), Ig)) && (Pqe(g, a, !0, i, r, c, s), a9(e, g)); + a = u(A(d), 187), z(a.mf((tt(), Zq))) === z((lh(), Ig)) && (Oqe(g, a, !0, i, r, c, s), a9(e, g)); } function jSn(e, n, t) { var i, r, c, s, f, h, l; for (s = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); s.e != s.i.gc(); ) - for (c = u(En(s), 26), r = new fn(dn(J1(c).a.Jc(), new Q())); xn(r); ) - i = u(pn(r), 85), !g9(i) && !g9(i) && !ob(i) && (h = u(hc(Ur(t.f, c)), 40), l = u(rn(t, ec(u(F((!i.c && (i.c = new Qe(Cn, i, 5, 8)), i.c), 0), 84))), 40), h && l && (f = new WV(h, l), K(f, (Bt(), Qk), i), Pc(f, i), rt(h.d, f), rt(l.b, f), rt(n.a, f))); + for (c = u(En(s), 26), r = new fn(dn(J1(c).a.Jc(), new Y())); xn(r); ) + i = u(pn(r), 85), !g9(i) && !g9(i) && !ob(i) && (h = u(hc(Ur(t.f, c)), 40), l = u(rn(t, ec(u(F((!i.c && (i.c = new Qe(Cn, i, 5, 8)), i.c), 0), 84))), 40), h && l && (f = new WV(h, l), K(f, (_t(), Qk), i), Pc(f, i), rt(h.d, f), rt(l.b, f), rt(n.a, f))); } function ESn(e, n) { var t, i, r, c, s, f, h, l; for (h = u(u(Mt(e.r, n), 22), 83).Jc(); h.Ob(); ) - f = u(h.Pb(), 115), r = f.c ? nSe(f.c) : 0, r > 0 ? f.a ? (l = f.b.Kf().b, r > l && (e.v || f.c.d.c.length == 1 ? (s = (r - l) / 2, f.d.d = s, f.d.a = s) : (t = u(pe(f.c.d, 0), 187).Kf().b, i = (t - l) / 2, f.d.d = m.Math.max(0, i), f.d.a = r - i - l))) : f.d.a = e.t + r : j6(e.u) && (c = tne(f.b), c.d < 0 && (f.d.d = -c.d), c.d + c.a > f.b.Kf().b && (f.d.a = c.d + c.a - f.b.Kf().b)); + f = u(h.Pb(), 115), r = f.c ? tSe(f.c) : 0, r > 0 ? f.a ? (l = f.b.Kf().b, r > l && (e.v || f.c.d.c.length == 1 ? (s = (r - l) / 2, f.d.d = s, f.d.a = s) : (t = u(pe(f.c.d, 0), 187).Kf().b, i = (t - l) / 2, f.d.d = m.Math.max(0, i), f.d.a = r - i - l))) : f.d.a = e.t + r : j6(e.u) && (c = tne(f.b), c.d < 0 && (f.d.d = -c.d), c.d + c.a > f.b.Kf().b && (f.d.a = c.d + c.a - f.b.Kf().b)); } function jf() { - jf = G, Y3 = new nr((tt(), CE), ie(1)), uI = new nr(i1, 80), mZe = new nr(Sde, 5), oZe = new nr(a4, m5), gZe = new nr(oU, ie(1)), pZe = new nr(fU, (en(), !0)), Hse = new N0(50), bZe = new nr(Ml, Hse), _se = SE, qse = l8, fZe = new nr(Yq, !1), Gse = IE, aZe = $g, dZe = fd, lZe = v0, hZe = pp, wZe = Mg, Jse = (ane(), nZe), uG = cZe, cI = eZe, cG = tZe, Use = rZe, yZe = w4, jZe = UC, kZe = Sg, vZe = b4, zse = (y3(), Pg), new nr(km, zse); + jf = G, Y3 = new nr((tt(), CE), ie(1)), uI = new nr(i1, 80), vZe = new nr(Sde, 5), fZe = new nr(a4, m5), pZe = new nr(oU, ie(1)), mZe = new nr(fU, (en(), !0)), Hse = new N0(50), wZe = new nr(Ml, Hse), Bse = SE, qse = l8, hZe = new nr(Yq, !1), Gse = IE, dZe = $g, bZe = fd, aZe = v0, lZe = pp, gZe = Mg, Jse = (ane(), tZe), uG = uZe, cI = nZe, cG = iZe, Use = cZe, jZe = w4, EZe = UC, yZe = Sg, kZe = b4, zse = (y3(), Pg), new nr(km, zse); } function ASn(e, n) { var t; @@ -25190,9 +25280,9 @@ function WDn() { } function xSn(e) { var n, t, i, r; - i = e.o, ow(), e.A.dc() || jt(e.A, Dse) ? r = i.a : (e.D ? r = m.Math.max(i.a, b9(e.f)) : r = b9(e.f), e.A.Gc((Js(), BE)) && !e.B.Gc((Ms(), k8)) && (r = m.Math.max(r, b9(u(_r(e.p, (be(), ln)), 253))), r = m.Math.max(r, b9(u(_r(e.p, Mn), 253)))), n = KNe(e), n && (r = m.Math.max(r, n.a))), ve(me(e.e.Rf().mf((tt(), $g)))) ? i.a = m.Math.max(i.a, r) : i.a = r, t = e.f.i, t.c = 0, t.b = r, TR(e.f); + i = e.o, ow(), e.A.dc() || jt(e.A, Dse) ? r = i.a : (e.D ? r = m.Math.max(i.a, b9(e.f)) : r = b9(e.f), e.A.Gc((Js(), _E)) && !e.B.Gc((Ms(), k8)) && (r = m.Math.max(r, b9(u(Br(e.p, (be(), ln)), 253))), r = m.Math.max(r, b9(u(Br(e.p, Mn), 253)))), n = VNe(e), n && (r = m.Math.max(r, n.a))), ve(me(e.e.Rf().mf((tt(), $g)))) ? i.a = m.Math.max(i.a, r) : i.a = r, t = e.f.i, t.c = 0, t.b = r, TR(e.f); } - function nUe(e, n) { + function tUe(e, n) { var t, i, r, c; return i = m.Math.min(m.Math.abs(e.c - (n.c + n.b)), m.Math.abs(e.c + e.b - n.c)), c = m.Math.min(m.Math.abs(e.d - (n.d + n.a)), m.Math.abs(e.d + e.a - n.d)), t = m.Math.abs(e.c + e.b / 2 - (n.c + n.b / 2)), t > e.b / 2 + n.b / 2 || (r = m.Math.abs(e.d + e.a / 2 - (n.d + n.a / 2)), r > e.a / 2 + n.a / 2) ? 1 : t == 0 && r == 0 ? 0 : t == 0 ? c / r + 1 : r == 0 ? i / t + 1 : m.Math.min(i / t, c / r) + 1; } @@ -25209,13 +25299,13 @@ function WDn() { return new ue(f / c, h / c); } } - function tUe(e) { + function iUe(e) { var n, t, i, r, c, s; - for (t = (!e.a && (e.a = new $i(fo, e, 5)), e.a).i + 2, s = new bu(t), he(s, new ue(e.j, e.k)), fi(new Ge(null, (!e.a && (e.a = new $i(fo, e, 5)), new He(e.a, 16))), new Vye(s)), he(s, new ue(e.b, e.c)), n = 1; n < s.c.length - 1; ) + for (t = (!e.a && (e.a = new $i(fo, e, 5)), e.a).i + 2, s = new bu(t), he(s, new ue(e.j, e.k)), fi(new Ge(null, (!e.a && (e.a = new $i(fo, e, 5)), new He(e.a, 16))), new Qye(s)), he(s, new ue(e.b, e.c)), n = 1; n < s.c.length - 1; ) i = (qe(n - 1, s.c.length), u(s.c[n - 1], 8)), r = (qe(n, s.c.length), u(s.c[n], 8)), c = (qe(n + 1, s.c.length), u(s.c[n + 1], 8)), i.a == r.a && r.a == c.a || i.b == r.b && r.b == c.b ? La(s, n) : ++n; return s; } - function iUe(e, n) { + function rUe(e, n) { Iv(); var t, i, r, c, s; if (s = u(y(e.i, (ae(), oi)), 102), c = e.j.g - n.j.g, c != 0 || !(s == (Ui(), k0) || s == Il || s == Vc)) @@ -25235,35 +25325,35 @@ function WDn() { throw $(new qr(Qie)); } } - function rUe(e, n) { + function cUe(e, n) { var t, i, r, c, s, f, h; - for (t = aMe(mAe(gAe(pAe(new Yz(), n), new m$(n.e)), wen), e.a), n.j.c.length == 0 || rDe(u(pe(n.j, 0), 60).a, t), h = new YP(), ht(e.e, t, h), s = new vi(), f = new vi(), c = new x(n.k); c.a < c.c.c.length; ) + for (t = dMe(vAe(pAe(mAe(new Yz(), n), new m$(n.e)), gen), e.a), n.j.c.length == 0 || cDe(u(pe(n.j, 0), 60).a, t), h = new YP(), ht(e.e, t, h), s = new vi(), f = new vi(), c = new x(n.k); c.a < c.c.c.length; ) r = u(A(c), 17), ki(s, r.c), ki(f, r.d); - i = s.a.gc() - f.a.gc(), i < 0 ? (g7(h, !0, (Mi(), Qr)), g7(h, !1, nc)) : i > 0 && (g7(h, !1, (Mi(), Qr)), g7(h, !0, nc)), wu(n.g, new XAe(e, t)), ht(e.g, n, t); + i = s.a.gc() - f.a.gc(), i < 0 ? (g7(h, !0, (Mi(), Qr)), g7(h, !1, nc)) : i > 0 && (g7(h, !1, (Mi(), Qr)), g7(h, !0, nc)), wu(n.g, new KAe(e, t)), ht(e.g, n, t); } - function Bte() { - Bte = G, lun = new Fe(zce, (en(), !1)), ie(-1), run = new Fe(Wce, ie(-1)), ie(-1), cun = new Fe(Xce, ie(-1)), uun = new Fe(Kce, !1), sun = new Fe(Vce, !1), Zae = (N$(), Oq), wun = new Fe(Qce, Zae), gun = new Fe(Yce, -1), Yae = (LM(), Sq), bun = new Fe(Zce, Yae), dun = new Fe(eue, !0), Vae = (U$(), Lq), hun = new Fe(nue, Vae), fun = new Fe(tue, !1), ie(1), oun = new Fe(iue, ie(1)), Qae = (SM(), Dq), aun = new Fe(rue, Qae); + function _te() { + _te = G, aun = new Fe(zce, (en(), !1)), ie(-1), cun = new Fe(Wce, ie(-1)), ie(-1), uun = new Fe(Xce, ie(-1)), sun = new Fe(Kce, !1), oun = new Fe(Vce, !1), Zae = (N$(), Oq), gun = new Fe(Qce, Zae), pun = new Fe(Yce, -1), Yae = (LM(), Sq), wun = new Fe(Zce, Yae), bun = new Fe(eue, !0), Vae = (U$(), Lq), lun = new Fe(nue, Vae), hun = new Fe(tue, !1), ie(1), fun = new Fe(iue, ie(1)), Qae = (SM(), Dq), dun = new Fe(rue, Qae); } - function cUe() { - cUe = G; + function uUe() { + uUe = G; var e; - for (wse = I(T(Wn, 1), lt, 30, 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]), HJ = W(Wn, lt, 30, 37, 15, 1), KQe = I(T(Wn, 1), lt, 30, 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]), gse = W(Gb, mWe, 30, 37, 14, 1), e = 2; e <= 36; e++) + for (wse = I(S(Wn, 1), lt, 30, 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]), HJ = W(Wn, lt, 30, 37, 15, 1), VQe = I(S(Wn, 1), lt, 30, 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]), gse = W(Gb, vWe, 30, 37, 14, 1), e = 2; e <= 36; e++) HJ[e] = dr(m.Math.pow(e, wse[e])), gse[e] = L7(sj, HJ[e]); } function MSn(e) { var n; if ((!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a).i != 1) - throw $(new on(LKe + (!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a).i)); - return n = new ms(), ON(u(F((!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), 0), 84)) && wr(n, Hze(e, ON(u(F((!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), 0), 84)), !1)), ON(u(F((!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c), 0), 84)) && wr(n, Hze(e, ON(u(F((!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c), 0), 84)), !0)), n; + throw $(new on(DKe + (!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a).i)); + return n = new ms(), ON(u(F((!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), 0), 84)) && wr(n, qze(e, ON(u(F((!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), 0), 84)), !1)), ON(u(F((!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c), 0), 84)) && wr(n, qze(e, ON(u(F((!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c), 0), 84)), !0)), n; } - function uUe(e, n) { + function sUe(e, n) { var t, i, r, c, s; - for (n.d ? r = e.a.c == (Rh(), Nb) ? bi(n.b) : Ht(n.b) : r = e.a.c == (Rh(), e1) ? bi(n.b) : Ht(n.b), c = !1, i = new fn(dn(r.a.Jc(), new Q())); xn(i); ) - if (t = u(pn(i), 17), s = ve(e.a.f[e.a.g[n.b.p].p]), !(!s && !hr(t) && t.c.i.c == t.d.i.c) && !(ve(e.a.n[e.a.g[n.b.p].p]) || ve(e.a.n[e.a.g[n.b.p].p])) && (c = !0, Bo(e.b, e.a.g[V8n(t, n.b).p]))) + for (n.d ? r = e.a.c == (Rh(), Nb) ? bi(n.b) : Ht(n.b) : r = e.a.c == (Rh(), e1) ? bi(n.b) : Ht(n.b), c = !1, i = new fn(dn(r.a.Jc(), new Y())); xn(i); ) + if (t = u(pn(i), 17), s = ve(e.a.f[e.a.g[n.b.p].p]), !(!s && !hr(t) && t.c.i.c == t.d.i.c) && !(ve(e.a.n[e.a.g[n.b.p].p]) || ve(e.a.n[e.a.g[n.b.p].p])) && (c = !0, _o(e.b, e.a.g[V8n(t, n.b).p]))) return n.c = !0, n.a = t, n; return n.c = c, n.a = null, n; } - function _te(e, n, t) { + function Bte(e, n, t) { var i, r, c, s, f, h, l; if (i = t.gc(), i == 0) return !1; @@ -25281,20 +25371,20 @@ function WDn() { } return !0; } - function sUe(e, n, t) { + function oUe(e, n, t) { var i, r, c, s, f; return e.Nj() ? (r = null, c = e.Oj(), i = e.Gj(1, f = (s = e.Bj(n, e.Xi(n, t)), s), t, n, c), e.Kj() && !(e.Wi() && f ? jt(f, t) : z(f) === z(t)) && (f && (r = e.Mj(f, r)), r = e.Lj(t, r)), r ? (r.lj(i), r.mj()) : e.Hj(i), f) : (f = (s = e.Bj(n, e.Xi(n, t)), s), e.Kj() && !(e.Wi() && f ? jt(f, t) : z(f) === z(t)) && (r = null, f && (r = e.Mj(f, null)), r = e.Lj(t, r), r && r.mj()), f); } function Jte(e, n) { var t, i, r, c, s, f, h, l, a; - if (e.e = n, e.f = u(y(n, (I1(), sI)), 234), mjn(n), e.d = m.Math.max(n.e.c.length * 16 + n.c.c.length, 256), !ve(me(y(n, (jf(), _se))))) + if (e.e = n, e.f = u(y(n, (I1(), sI)), 234), mjn(n), e.d = m.Math.max(n.e.c.length * 16 + n.c.c.length, 256), !ve(me(y(n, (jf(), Bse))))) for (a = e.e.e.c.length, h = new x(n.e); h.a < h.c.c.length; ) f = u(A(h), 155), l = f.d, l.a = WL(e.f) * a, l.b = WL(e.f) * a; for (t = n.b, c = new x(n.c); c.a < c.c.c.length; ) if (r = u(A(c), 291), i = u(y(r, Use), 15).a, i > 0) { for (s = 0; s < i; s++) - he(t, new nIe(r)); - DGe(r); + he(t, new tIe(r)); + NGe(r); } } function TSn(e, n) { @@ -25320,17 +25410,17 @@ function WDn() { } n.Ug(); } - function oUe(e, n, t, i) { + function fUe(e, n, t, i) { var r, c, s, f, h, l, a, d, g, p, v; if (g = new gw(e.Yg()), gf(n, gt, g), t && !e.Wg().a.dc()) for (a = new kd(), gf(n, "logs", a), f = 0, v = new qg(e.Wg().b.Jc()); v.b.Ob(); ) - p = zn(v.b.Pb()), d = new gw(p), Aw(a, f), _D(a, f, d), ++f; + p = zn(v.b.Pb()), d = new gw(p), Aw(a, f), BD(a, f, d), ++f; if (i && (l = new aA(e.Vg()), gf(n, "executionTime", l)), !e.Xg().a.dc()) for (s = new kd(), gf(n, fJ, s), f = 0, c = new qg(e.Xg().b.Jc()); c.b.Ob(); ) - r = u(c.b.Pb(), 852), h = new Dp(), Aw(s, f), _D(s, f, h), oUe(r, h, t, i), ++f; + r = u(c.b.Pb(), 852), h = new Dp(), Aw(s, f), BD(s, f, h), fUe(r, h, t, i), ++f; } function Gte() { - Gte = G, AO(), Afn = new z6e(), I(T(Em, 2), oe, 376, 0, [I(T(Em, 1), zS, 589, 0, [new z8(wQe)])]), I(T(Em, 2), oe, 376, 0, [I(T(Em, 1), zS, 589, 0, [new z8(Kue)])]), I(T(Em, 2), oe, 376, 0, [I(T(Em, 1), zS, 589, 0, [new z8(gQe)]), I(T(Em, 1), zS, 589, 0, [new z8(Kue)])]), new y1("-1"), I(T(Em, 2), oe, 376, 0, [I(T(Em, 1), zS, 589, 0, [new z8("\\c+")])]), new y1("0"), new y1("0"), new y1("1"), new y1("0"), new y1(jQe); + Gte = G, AO(), xfn = new W6e(), I(S(Em, 2), fe, 376, 0, [I(S(Em, 1), zS, 589, 0, [new z8(gQe)])]), I(S(Em, 2), fe, 376, 0, [I(S(Em, 1), zS, 589, 0, [new z8(Kue)])]), I(S(Em, 2), fe, 376, 0, [I(S(Em, 1), zS, 589, 0, [new z8(pQe)]), I(S(Em, 1), zS, 589, 0, [new z8(Kue)])]), new y1("-1"), I(S(Em, 2), fe, 376, 0, [I(S(Em, 1), zS, 589, 0, [new z8("\\c+")])]), new y1("0"), new y1("0"), new y1("1"), new y1("0"), new y1(EQe); } function SSn(e, n, t) { var i, r, c, s, f, h, l, a, d; @@ -25355,14 +25445,14 @@ function WDn() { d = (X0(), hp); else throw $(new on("Target port must be in one of the port sets.")); - f = new QJe(c, l, d), ht(e.b, c, f), sn(r.c, f); + f = new YJe(c, l, d), ht(e.b, c, f), sn(r.c, f); } } function ST(e) { var n, t; - return e.c && e.c.Sh() && (t = u(e.c, 52), e.c = u(D1(e, t), 143), e.c != t && ((e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 9, 2, t, e.c)), N(e.Cb, 403) ? e.Db >> 16 == -15 && e.Cb.Vh() && sN(new tN(e.Cb, 9, 13, t, e.c, Ha(js(u(e.Cb, 62)), e))) : N(e.Cb, 88) && e.Db >> 16 == -23 && e.Cb.Vh() && (n = e.c, N(n, 88) || (n = (Ue(), rf)), N(t, 88) || (t = (Ue(), rf)), sN(new tN(e.Cb, 9, 10, t, n, Ha(Hc(u(e.Cb, 29)), e)))))), e.c; + return e.c && e.c.Sh() && (t = u(e.c, 52), e.c = u(D1(e, t), 143), e.c != t && ((e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 9, 2, t, e.c)), N(e.Cb, 403) ? e.Db >> 16 == -15 && e.Cb.Vh() && sN(new tN(e.Cb, 9, 13, t, e.c, Ha(js(u(e.Cb, 62)), e))) : N(e.Cb, 88) && e.Db >> 16 == -23 && e.Cb.Vh() && (n = e.c, N(n, 88) || (n = (Ue(), rf)), N(t, 88) || (t = (Ue(), rf)), sN(new tN(e.Cb, 9, 10, t, n, Ha(Hc(u(e.Cb, 29)), e)))))), e.c; } - function fUe(e, n, t) { + function hUe(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v; if (n == t) return !0; @@ -25371,14 +25461,14 @@ function WDn() { return a ? (h = i.kk(), v = a.kk(), h == v && h != null) : !1; if (s = (!n.d && (n.d = new $i(Rr, n, 1)), n.d), c = s.i, g = (!t.d && (t.d = new $i(Rr, t, 1)), t.d), c == g.i) { for (l = 0; l < c; ++l) - if (r = u(F(s, l), 87), d = u(F(g, l), 87), !fUe(e, r, d)) + if (r = u(F(s, l), 87), d = u(F(g, l), 87), !hUe(e, r, d)) return !1; } return !0; } else return f = n.e, p = t.e, f == p; } - function hUe(e, n, t, i) { + function lUe(e, n, t, i) { var r, c, s, f, h, l, a, d; if (ia(e.e, n)) { for (d = xu(e.e.Ah(), n), c = u(e.g, 122), a = null, h = -1, f = -1, r = 0, l = 0; l < e.i; ++l) @@ -25391,9 +25481,9 @@ function WDn() { } else throw $(new on("The feature must be many-valued to support move")); } - function lUe(e, n, t, i) { + function aUe(e, n, t, i) { var r, c, s, f, h; - switch (h = new vr(n.n), h.a += n.o.a / 2, h.b += n.o.b / 2, f = _(H(y(n, (ae(), wg)))), c = e.f, s = e.d, r = e.c, u(y(n, (te(), Sc)), 64).g) { + switch (h = new vr(n.n), h.a += n.o.a / 2, h.b += n.o.b / 2, f = B(H(y(n, (ae(), wg)))), c = e.f, s = e.d, r = e.c, u(y(n, (te(), Sc)), 64).g) { case 1: h.a += s.b + r.a - t / 2, h.b = -i - f, n.n.b = -(s.d + f + r.b); break; @@ -25410,7 +25500,7 @@ function WDn() { } function CSn(e, n, t) { var i, r; - i = n.c.i, r = t.d.i, i.k == (cn(), yi) ? (K(e, (te(), Qf), u(y(i, Qf), 12)), K(e, Vo, u(y(i, Vo), 12)), K(e, hg, me(y(i, hg)))) : i.k == _c ? (K(e, (te(), Qf), u(y(i, Qf), 12)), K(e, Vo, u(y(i, Vo), 12)), K(e, hg, (en(), !0))) : r.k == _c ? (K(e, (te(), Qf), u(y(r, Qf), 12)), K(e, Vo, u(y(r, Vo), 12)), K(e, hg, (en(), !0))) : (K(e, (te(), Qf), n.c), K(e, Vo, t.d)); + i = n.c.i, r = t.d.i, i.k == (cn(), yi) ? (K(e, (te(), Qf), u(y(i, Qf), 12)), K(e, Vo, u(y(i, Vo), 12)), K(e, hg, me(y(i, hg)))) : i.k == Bc ? (K(e, (te(), Qf), u(y(i, Qf), 12)), K(e, Vo, u(y(i, Vo), 12)), K(e, hg, (en(), !0))) : r.k == Bc ? (K(e, (te(), Qf), u(y(r, Qf), 12)), K(e, Vo, u(y(r, Vo), 12)), K(e, hg, (en(), !0))) : (K(e, (te(), Qf), n.c), K(e, Vo, t.d)); } function PSn(e) { var n, t, i, r, c, s, f; @@ -25419,7 +25509,7 @@ function WDn() { for (; i.b != 0; ) c = u(i.b == 0 ? null : (An(i.b != 0), mo(i, i.a.a)), 124), y2(c).c.length != 0 && (n = u(pe(y2(c), 0), 217), t = c.g.a.c.length > 0, f = OM(n, c), XX(t ? f.b : f.g, n), y2(f).c.length == 1 && ti(i, f, i.c.b, i.c), r = new Ar(c, n), M1(e.o, r), Du(e.e.a, c)); } - function aUe(e, n) { + function dUe(e, n) { var t, i, r, c, s, f, h; return i = m.Math.abs(r$(e.b).a - r$(n.b).a), f = m.Math.abs(r$(e.b).b - r$(n.b).b), r = 0, h = 0, t = 1, s = 1, i > e.b.b / 2 + n.b.b / 2 && (r = m.Math.min(m.Math.abs(e.b.c - (n.b.c + n.b.b)), m.Math.abs(e.b.c + e.b.b - n.b.c)), t = 1 - r / i), f > e.b.a / 2 + n.b.a / 2 && (h = m.Math.min(m.Math.abs(e.b.d - (n.b.d + n.b.a)), m.Math.abs(e.b.d + e.b.a - n.b.d)), s = 1 - h / f), c = m.Math.min(t, s), (1 - c) * m.Math.sqrt(i * i + f * f); } @@ -25439,7 +25529,7 @@ function WDn() { return iw(n); if (i == Wn) return N(n, 15); - if (i == Bg) + if (i == _g) return N(n, 164); if (i == us) return N(n, 221); @@ -25474,22 +25564,22 @@ function WDn() { for (e = 52, f = 0; e <= 61; ++e, f++) h1[e] = 48 + f & Ti; h1[62] = 43, h1[63] = 47; } - function dUe(e, n) { + function bUe(e, n) { var t, i, r, c, s, f; - return r = NY(e), f = NY(n), r == f ? e.e == n.e && e.a < 54 && n.a < 54 ? e.f < n.f ? -1 : e.f > n.f ? 1 : 0 : (i = e.e - n.e, t = (e.d > 0 ? e.d : m.Math.floor((e.a - 1) * vWe) + 1) - (n.d > 0 ? n.d : m.Math.floor((n.a - 1) * vWe) + 1), t > i + 1 ? r : t < i - 1 ? -r : (c = (!e.c && (e.c = _y(Cc(e.f))), e.c), s = (!n.c && (n.c = _y(Cc(n.f))), n.c), i < 0 ? c = l2(c, xUe(-i)) : i > 0 && (s = l2(s, xUe(i))), bBe(c, s))) : r < f ? -1 : 1; + return r = NY(e), f = NY(n), r == f ? e.e == n.e && e.a < 54 && n.a < 54 ? e.f < n.f ? -1 : e.f > n.f ? 1 : 0 : (i = e.e - n.e, t = (e.d > 0 ? e.d : m.Math.floor((e.a - 1) * kWe) + 1) - (n.d > 0 ? n.d : m.Math.floor((n.a - 1) * kWe) + 1), t > i + 1 ? r : t < i - 1 ? -r : (c = (!e.c && (e.c = By(Cc(e.f))), e.c), s = (!n.c && (n.c = By(Cc(n.f))), n.c), i < 0 ? c = l2(c, $Ue(-i)) : i > 0 && (s = l2(s, $Ue(i))), w_e(c, s))) : r < f ? -1 : 1; } - function bUe(e) { + function wUe(e) { var n, t, i, r, c, s; - return i = new yY(), Pc(i, e), z(y(i, (ae(), co))) === z((Mi(), Th)) && K(i, co, CM(i)), y(i, (J$(), u8)) == null && (s = u(gJe(e), 174), K(i, u8, px(s.mf(u8)))), K(i, (te(), $t), e), K(i, ou, (n = u(Ff(XG), 10), new wo(n, u(af(n, n.length), 10), 0))), r = OPn((Qt(e) && (xd(), new b1(Qt(e))), xd(), new Ix(Qt(e) ? new b1(Qt(e)) : null, e)), nc), c = u(y(i, Whe), 104), t = i.d, OCe(t, c), OCe(t, r), i; + return i = new yY(), Pc(i, e), z(y(i, (ae(), co))) === z((Mi(), Th)) && K(i, co, CM(i)), y(i, (J$(), u8)) == null && (s = u(pJe(e), 174), K(i, u8, px(s.mf(u8)))), K(i, (te(), $t), e), K(i, ou, (n = u(Ff(XG), 10), new wo(n, u(af(n, n.length), 10), 0))), r = OPn((Qt(e) && (xd(), new b1(Qt(e))), xd(), new Ix(Qt(e) ? new b1(Qt(e)) : null, e)), nc), c = u(y(i, Whe), 104), t = i.d, LCe(t, c), LCe(t, r), i; } function LSn(e, n, t) { var i, r, c, s, f, h, l, a; - for (t.Tg(KWe, 1), e.qf(n), c = 0; e.sf(c) && !t.Zg(); ) { - for (e.rf(), a = ll(vo(I(T(To, 1), Ve, 20, 0, [n.e, n.d, n.b]))); xn(a); ) - for (h = u(pn(a), 313), f = ll(vo(I(T(To, 1), Ve, 20, 0, [n.e, n.d, n.b]))); xn(f); ) + for (t.Tg(VWe, 1), e.qf(n), c = 0; e.sf(c) && !t.Zg(); ) { + for (e.rf(), a = ll(vo(I(S(To, 1), Ve, 20, 0, [n.e, n.d, n.b]))); xn(a); ) + for (h = u(pn(a), 313), f = ll(vo(I(S(To, 1), Ve, 20, 0, [n.e, n.d, n.b]))); xn(f); ) s = u(pn(f), 313), s != h && (r = e.pf(s, h), r && At(h.c, r)); - for (l = ll(vo(I(T(To, 1), Ve, 20, 0, [n.e, n.d, n.b]))); xn(l); ) - h = u(pn(l), 313), i = h.c, OJe(i, -e.d, -e.d, e.d, e.d), At(h.d, i), i.a = 0, i.b = 0; + for (l = ll(vo(I(S(To, 1), Ve, 20, 0, [n.e, n.d, n.b]))); xn(l); ) + h = u(pn(l), 313), i = h.c, LJe(i, -e.d, -e.d, e.d, e.d), At(h.d, i), i.a = 0, i.b = 0; ++c; } t.Ug(); @@ -25500,14 +25590,14 @@ function WDn() { return new er(); for (l = 0, d = 0, r = e.Jc(); r.Ob(); ) i = u(r.Pb(), 37), c = i.f, l = m.Math.max(l, c.a), d += c.a * c.b; - for (l = m.Math.max(l, m.Math.sqrt(d) * _(H(y(u(e.Jc().Pb(), 37), (ae(), WI))))), g = 0, p = 0, h = 0, t = n, f = e.Jc(); f.Ob(); ) + for (l = m.Math.max(l, m.Math.sqrt(d) * B(H(y(u(e.Jc().Pb(), 37), (ae(), WI))))), g = 0, p = 0, h = 0, t = n, f = e.Jc(); f.Ob(); ) s = u(f.Pb(), 37), a = s.f, g + a.a > l && (g = 0, p += h + n, h = 0), t5(s, g, p), t = m.Math.max(t, g + a.a), h = m.Math.max(h, a.b), g += a.a + n; return new ue(t + n, p + h + n); } function qte(e, n) { var t, i, r, c, s, f, h; if (!sh(e)) - throw $(new qr(OKe)); + throw $(new qr(LKe)); if (i = sh(e), c = i.g, r = i.f, c <= 0 && r <= 0) return be(), mc; switch (f = e.i, h = e.j, n.g) { @@ -25529,16 +25619,16 @@ function WDn() { } function NSn(e, n, t, i, r) { var c, s; - if (c = yr(qi(n[0], Or), qi(i[0], Or)), e[0] = Xn(c), c = _0(c, 32), t >= r) { + if (c = yr(qi(n[0], Or), qi(i[0], Or)), e[0] = Xn(c), c = B0(c, 32), t >= r) { for (s = 1; s < r; s++) - c = yr(c, yr(qi(n[s], Or), qi(i[s], Or))), e[s] = Xn(c), c = _0(c, 32); + c = yr(c, yr(qi(n[s], Or), qi(i[s], Or))), e[s] = Xn(c), c = B0(c, 32); for (; s < t; s++) - c = yr(c, qi(n[s], Or)), e[s] = Xn(c), c = _0(c, 32); + c = yr(c, qi(n[s], Or)), e[s] = Xn(c), c = B0(c, 32); } else { for (s = 1; s < t; s++) - c = yr(c, yr(qi(n[s], Or), qi(i[s], Or))), e[s] = Xn(c), c = _0(c, 32); + c = yr(c, yr(qi(n[s], Or), qi(i[s], Or))), e[s] = Xn(c), c = B0(c, 32); for (; s < r; s++) - c = yr(c, qi(i[s], Or)), e[s] = Xn(c), c = _0(c, 32); + c = yr(c, qi(i[s], Or)), e[s] = Xn(c), c = B0(c, 32); } iu(c, 0) != 0 && (e[s] = Xn(c)); } @@ -25562,10 +25652,10 @@ function WDn() { } function RSn(e, n) { var t, i, r, c, s, f, h, l, a; - for (n.Tg("Hierarchical port dummy size processing", 1), h = new le(), a = new le(), i = _(H(y(e, (ae(), mg)))), t = i * 2, c = new x(e.b); c.a < c.c.c.length; ) { + for (n.Tg("Hierarchical port dummy size processing", 1), h = new le(), a = new le(), i = B(H(y(e, (ae(), mg)))), t = i * 2, c = new x(e.b); c.a < c.c.c.length; ) { for (r = u(A(c), 25), h.c.length = 0, a.c.length = 0, f = new x(r.a); f.a < f.c.c.length; ) s = u(A(f), 9), s.k == (cn(), Ai) && (l = u(y(s, (te(), Sc)), 64), l == (be(), ln) ? sn(h.c, s) : l == Mn && sn(a.c, s)); - _Ge(h, !0, t), _Ge(a, !1, t); + JGe(h, !0, t), JGe(a, !1, t); } n.Ug(); } @@ -25594,9 +25684,9 @@ function WDn() { for (c = new x(e.f); c.a < c.c.c.length; ) r = u(A(c), 133), (!i || r.c == (Jf(), ud)) && (f = r.a, f.g < 0 && r.d > 0 && (dA(f, f.i - r.d), r.c == (Jf(), ud) && Chn(f, f.b - r.d), f.i <= 0 && f.d > 0 && ti(t, f, t.c.b, t.c))); } - function BSn(e, n, t, i, r) { + function _Sn(e, n, t, i, r) { var c, s, f, h, l, a, d, g, p; - for (ze(), Di(e, new w5e()), s = My(e), p = new le(), g = new le(), f = null, h = 0; s.b != 0; ) + for (ze(), Di(e, new g5e()), s = My(e), p = new le(), g = new le(), f = null, h = 0; s.b != 0; ) c = u(s.b == 0 ? null : (An(s.b != 0), mo(s, s.a.a)), 167), !f || Zu(f) * Ns(f) / 2 < Zu(c) * Ns(c) ? (f = c, sn(p.c, c)) : (h += Zu(c) * Ns(c), sn(g.c, c), g.c.length > 1 && (h > Zu(f) * Ns(f) / 2 || s.b == 0) && (d = new eM(g), a = Zu(f) / Ns(f), l = UR(d, n, new Op(), t, i, r, a), At(Rf(d.e), l), f = d, sn(p.c, d), h = 0, g.c.length = 0)); return Ci(p, g), p; } @@ -25613,22 +25703,22 @@ function WDn() { else Rne(e, n, t, i, r, !0); } - function wUe(e, n) { + function gUe(e, n) { var t, i, r, c, s, f, h, l, a; - switch (n.Tg("Box layout", 2), r = q8(H(re(e, (hT(), asn)))), c = u(re(e, lsn), 104), t = ve(me(re(e, V1e))), i = ve(me(re(e, Q1e))), u(re(e, Xq), 326).g) { + switch (n.Tg("Box layout", 2), r = q8(H(re(e, (hT(), dsn)))), c = u(re(e, asn), 104), t = ve(me(re(e, V1e))), i = ve(me(re(e, Q1e))), u(re(e, Xq), 326).g) { case 0: - s = (a = new os((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)), ze(), Di(a, new Wye(i)), a), f = jne(e), h = H(re(e, K1e)), (h == null || (Ze(h), h <= 0)) && (h = 1.3), l = TOn(s, r, c, f.a, f.b, t, (Ze(h), h)), ab(e, l.a, l.b, !1, !0); + s = (a = new os((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)), ze(), Di(a, new Xye(i)), a), f = jne(e), h = H(re(e, K1e)), (h == null || (Ze(h), h <= 0)) && (h = 1.3), l = TOn(s, r, c, f.a, f.b, t, (Ze(h), h)), ab(e, l.a, l.b, !1, !0); break; default: wCn(e, r, c, t); } n.Ug(); } - function _Sn(e, n, t, i, r) { + function BSn(e, n, t, i, r) { var c, s, f, h, l, a, d, g, p, v; for (g = O7n(e, t), h = 0; h < n; h++) { for (fw(r, t), p = new le(), v = (An(i.b < i.d.gc()), u(i.d.Xb(i.c = i.b++), 410)), a = g + h; a < e.b; a++) - f = v, v = (An(i.b < i.d.gc()), u(i.d.Xb(i.c = i.b++), 410)), he(p, new HHe(f, v, t)); + f = v, v = (An(i.b < i.d.gc()), u(i.d.Xb(i.c = i.b++), 410)), he(p, new qHe(f, v, t)); for (d = g + h; d < e.b; d++) An(i.b > 0), i.a.Xb(i.c = --i.b), d > g + h && vs(i); for (s = new x(p); s.a < s.c.c.length; ) @@ -25648,7 +25738,7 @@ function WDn() { } function qw(e, n) { var t, i, r, c, s, f, h, l; - for (t = new RegExp(n, "g"), h = W(ke, oe, 2, 0, 6, 1), i = 0, l = e, c = null; ; ) + for (t = new RegExp(n, "g"), h = W(ye, fe, 2, 0, 6, 1), i = 0, l = e, c = null; ; ) if (f = t.exec(l), f == null || l == "") { h[i] = l; break; @@ -25662,13 +25752,13 @@ function WDn() { return h; } function Ac() { - Ac = G, bae = new N0(20), dae = new nr((tt(), Ml), bae), uq = new nr(i1, 20), gae = new nr(Ide, 3), ucn = new nr(a4, m5), AC = new nr(CE, ie(1)), wcn = new nr(fU, (en(), !0)), fae = ME, hae = (Mi(), Th), Fb = new nr(m0, hae), scn = SE, ocn = nU, hcn = v0, lcn = $g, acn = mp, dcn = fd, fcn = pp, aae = IE, bcn = Mg, mae = (Hne(), ccn), wae = icn, mcn = w4, vcn = UC, pcn = Sg, gcn = b4, pae = (y3(), Pg), new nr(km, pae), lp = tcn, cq = ncn, rl = rcn, oae = Zrn, lae = ecn; + Ac = G, bae = new N0(20), dae = new nr((tt(), Ml), bae), uq = new nr(i1, 20), gae = new nr(Ide, 3), scn = new nr(a4, m5), AC = new nr(CE, ie(1)), gcn = new nr(fU, (en(), !0)), fae = ME, hae = (Mi(), Th), Fb = new nr(m0, hae), ocn = SE, fcn = nU, lcn = v0, acn = $g, dcn = mp, bcn = fd, hcn = pp, aae = IE, wcn = Mg, mae = (Hne(), ucn), wae = rcn, vcn = w4, kcn = UC, mcn = Sg, pcn = b4, pae = (y3(), Pg), new nr(km, pae), lp = icn, cq = tcn, rl = ccn, oae = ecn, lae = ncn; } function GSn(e) { var n, t, i, r, c, s, f, h, l, a, d, g; - if (f = Qt(e), d = sHe(e), n = u(re(e, (tt(), Nsn)), 15).a, f) { + if (f = Qt(e), d = oHe(e), n = u(re(e, (tt(), Fsn)), 15).a, f) { for (a = Yi, i = new kn((!f.a && (f.a = new ne(Qn, f, 10, 11)), f.a)); i.e != i.i.gc(); ) - t = u(En(i), 26), h = sHe(t), h > a && (a = h); + t = u(En(i), 26), h = oHe(t), h > a && (a = h); for (l = m.Math.pow(4, n), a > l && (l = a), g = (m.Math.log(l) - m.Math.log(1)) / n, c = m.Math.exp(g), r = c, s = 0; s < n; s++) { if (d < r) return m.Math.pow(2, s); @@ -25680,18 +25770,18 @@ function WDn() { } function HSn(e) { var n, t, i, r, c, s, f, h, l, a, d; - for (d = new J3e(), d.d = 0, s = new x(e.b); s.a < s.c.c.length; ) + for (d = new G3e(), d.d = 0, s = new x(e.b); s.a < s.c.c.length; ) c = u(A(s), 25), d.d += c.a.c.length; for (i = 0, r = 0, d.a = W(Wn, lt, 30, e.b.c.length, 15, 1), l = 0, a = 0, d.e = W(Wn, lt, 30, d.d, 15, 1), t = new x(e.b); t.a < t.c.c.length; ) for (n = u(A(t), 25), n.p = i++, d.a[n.p] = r++, a = 0, h = new x(n.a); h.a < h.c.c.length; ) f = u(A(h), 9), f.p = l++, d.e[f.p] = a++; - return d.c = new kye(d), d.b = sl(d.d), sSn(d, e), d.f = sl(d.d), oSn(d, e), d; + return d.c = new yye(d), d.b = sl(d.d), sSn(d, e), d.f = sl(d.d), oSn(d, e), d; } function qSn(e) { var n, t; - if (n = zn(re(e, (tt(), pm))), !WNe(n, e) && !Gf(e, Tg) && ((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a).i != 0 || ve(me(re(e, TE))))) + if (n = zn(re(e, (tt(), pm))), !XNe(n, e) && !Gf(e, Tg) && ((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a).i != 0 || ve(me(re(e, TE))))) if (n == null || Rw(n).length == 0) { - if (!WNe(nn, e)) + if (!XNe(nn, e)) throw t = it(it(new Us("Unable to load default layout algorithm "), nn), " for unconfigured node "), FT(e, t), $(new Aa(t.a)); } else throw t = it(it(new Us("Layout algorithm '"), n), "' not found for "), FT(e, t), $(new Aa(t.a)); @@ -25702,7 +25792,7 @@ function WDn() { for (p = t.c + n.b, g = t.b - n.b - n.c, s = e.a, h = 0, a = s.length; h < a; ++h) r = s[h], e$(r, p, g); else - i = VBe(e, !1), e$(e.a[0], t.c + n.b, i[0]), e$(e.a[2], t.c + t.b - n.c - i[2], i[2]), d = t.b - n.b - n.c, i[0] > 0 && (d -= i[0] + e.c, i[0] += e.c), i[2] > 0 && (d -= i[2] + e.c), i[1] = m.Math.max(i[1], d), e$(e.a[1], t.c + n.b + i[0] - (i[1] - d) / 2, i[1]); + i = Q_e(e, !1), e$(e.a[0], t.c + n.b, i[0]), e$(e.a[2], t.c + t.b - n.c - i[2], i[2]), d = t.b - n.b - n.c, i[0] > 0 && (d -= i[0] + e.c, i[0] += e.c), i[2] > 0 && (d -= i[2] + e.c), i[1] = m.Math.max(i[1], d), e$(e.a[1], t.c + n.b + i[0] - (i[1] - d) / 2, i[1]); for (c = e.a, f = 0, l = c.length; f < l; ++f) r = c[f], N(r, 337) && u(r, 337).hf(); } @@ -25710,23 +25800,23 @@ function WDn() { var n, t, i, r, c, s, f, h, l, a; for (a = W(Wn, lt, 30, e.b.c.length + 1, 15, 1), l = new vi(), i = 0, c = new x(e.b); c.a < c.c.c.length; ) { for (r = u(A(c), 25), a[i++] = l.a.gc(), h = new x(r.a); h.a < h.c.c.length; ) - for (s = u(A(h), 9), t = new fn(dn(Ht(s).a.Jc(), new Q())); xn(t); ) + for (s = u(A(h), 9), t = new fn(dn(Ht(s).a.Jc(), new Y())); xn(t); ) n = u(pn(t), 17), l.a.yc(n, l); for (f = new x(r.a); f.a < f.c.c.length; ) - for (s = u(A(f), 9), t = new fn(dn(bi(s).a.Jc(), new Q())); xn(t); ) + for (s = u(A(f), 9), t = new fn(dn(bi(s).a.Jc(), new Y())); xn(t); ) n = u(pn(t), 17), l.a.Ac(n) != null; } return a; } - function gUe(e, n) { + function pUe(e, n) { var t, i, r, c; for (c = u(pe(e.n, e.n.c.length - 1), 208).d, e.p = m.Math.min(e.p, n.g), e.r = m.Math.max(e.r, c), e.g = m.Math.max(e.g, n.g + (e.b.c.length == 1 ? 0 : e.i)), e.o = m.Math.min(e.o, n.f), e.e += n.f + (e.b.c.length == 1 ? 0 : e.i), e.f = m.Math.max(e.f, n.f), r = e.n.c.length > 0 ? (e.n.c.length - 1) * e.i : 0, i = new x(e.n); i.a < i.c.c.length; ) t = u(A(i), 208), r += t.a; e.d = r, e.a = e.e / e.b.c.length - e.i * ((e.b.c.length - 1) / e.b.c.length), kee(e.j); } - function pUe(e, n) { + function mUe(e, n) { var t, i, r, c, s, f, h, l, a, d; - if (a = me(y(n, (jf(), pZe))), a == null || (Ze(a), a)) { + if (a = me(y(n, (jf(), mZe))), a == null || (Ze(a), a)) { for (d = W(zu, zf, 30, n.e.c.length, 16, 1), s = NAn(n), r = new Dt(), l = new x(n.e); l.a < l.c.c.length; ) f = u(A(l), 155), t = nte(e, f, null, null, d, s), t && (Pc(t, n), ti(r, t, r.c.b, r.c)); if (r.b > 1) @@ -25735,7 +25825,7 @@ function WDn() { f = u(A(h), 155), f.a = c++; return r; } - return wf(I(T(FLn, 1), zWe, 235, 0, [n])); + return wf(I(S(FLn, 1), WWe, 235, 0, [n])); } function zh(e) { var n, t, i, r, c, s, f; @@ -25746,8 +25836,8 @@ function WDn() { n.a.Ac(e) != null, n.a.gc() == 0; } for (r = f.i, c = (!e.s && (e.s = new ne(Uu, e, 21, 17)), new kn(e.s)); c.e != c.i.gc(); ++r) - Bhn(u(En(c), 451), r); - hi(f, (!e.s && (e.s = new ne(Uu, e, 21, 17)), e.s)), Iw(f), e.g = new SFe(e, f), e.i = u(f.g, 255), e.i == null && (e.i = xU), e.p = null, ks(e).b &= -5; + _hn(u(En(c), 451), r); + hi(f, (!e.s && (e.s = new ne(Uu, e, 21, 17)), e.s)), Iw(f), e.g = new IFe(e, f), e.i = u(f.g, 255), e.i == null && (e.i = xU), e.p = null, ks(e).b &= -5; } return e.g; } @@ -25763,7 +25853,7 @@ function WDn() { function SR(e) { var n, t, i, r, c, s, f, h, l, a, d, g, p, v; if (i = e.i, t = e.n, e.b == 0) - n = KBe(e, !1), n$(e.a[0], i.d + t.d, n[0]), n$(e.a[2], i.d + i.a - t.a - n[2], n[2]), g = i.a - t.d - t.a, d = g, n[0] > 0 && (n[0] += e.c, d -= n[0]), n[2] > 0 && (d -= n[2] + e.c), n[1] = m.Math.max(n[1], d), n$(e.a[1], i.d + t.d + n[0] - (n[1] - d) / 2, n[1]); + n = V_e(e, !1), n$(e.a[0], i.d + t.d, n[0]), n$(e.a[2], i.d + i.a - t.a - n[2], n[2]), g = i.a - t.d - t.a, d = g, n[0] > 0 && (n[0] += e.c, d -= n[0]), n[2] > 0 && (d -= n[2] + e.c), n[1] = m.Math.max(n[1], d), n$(e.a[1], i.d + t.d + n[0] - (n[1] - d) / 2, n[1]); else for (v = i.d + t.d, p = i.a - t.d - t.a, s = e.a, h = 0, a = s.length; h < a; ++h) r = s[h], n$(r, v, p); @@ -25776,7 +25866,7 @@ function WDn() { if (s = u(pe(n.n, n.n.c.length - 1), 208), s.e + s.d + t.g + r <= i && (c = u(pe(n.n, n.n.c.length - 1), 208), c.f - e.f + t.f <= e.b || e.a.c.length == 1)) return RZ(n, t), !0; if (n.s + t.g <= i && n.t + n.d + t.f + r <= e.f + e.b) - return he(n.b, t), f = u(pe(n.n, n.n.c.length - 1), 208), he(n.n, new E$(n.s, f.f + f.a + n.i, n.i)), pee(u(pe(n.n, n.n.c.length - 1), 208), t), gUe(n, t), !0; + return he(n.b, t), f = u(pe(n.n, n.n.c.length - 1), 208), he(n.n, new E$(n.s, f.f + f.a + n.i, n.i)), pee(u(pe(n.n, n.n.c.length - 1), 208), t), pUe(n, t), !0; } return !1; } @@ -25816,7 +25906,7 @@ function WDn() { } return null; } - function mUe(e, n, t, i) { + function vUe(e, n, t, i) { var r, c, s, f; for (f = t, s = new x(n.a); s.a < s.c.c.length; ) { if (c = u(A(s), 225), r = u(c.b, 68), tb(e.b.c, r.b.c + r.b.b) <= 0 && tb(r.b.c, e.b.c + e.b.b) <= 0 && tb(e.b.d, r.b.d + r.b.a) <= 0 && tb(r.b.d, e.b.d + e.b.a) <= 0) { @@ -25825,8 +25915,8 @@ function WDn() { break; } } else - f = m.Math.min(f, uGe(e, r, i)); - f = m.Math.min(f, mUe(e, c, f, i)); + f = m.Math.min(f, sGe(e, r, i)); + f = m.Math.min(f, vUe(e, c, f, i)); } return f; } @@ -25835,12 +25925,12 @@ function WDn() { if (e.b < 2) throw $(new on("The vector chain must contain at least a source and a target point.")); for (r = (An(e.b != 0), u(e.a.a.c, 8)), by(n, r.a, r.b), h = new Xp((!n.a && (n.a = new $i(fo, n, 5)), n.a)), s = Nn(e, 1); s.a < e.b - 1; ) - f = u(Ln(s), 8), h.e != h.i.gc() ? t = u(En(h), 372) : (t = (p1(), i = new sA(), i), nBe(h, t)), fL(t, f.a, f.b); + f = u(Ln(s), 8), h.e != h.i.gc() ? t = u(En(h), 372) : (t = (p1(), i = new sA(), i), t_e(h, t)), fL(t, f.a, f.b); for (; h.e != h.i.gc(); ) En(h), l9(h); c = (An(e.b != 0), u(e.c.b.c, 8)), dy(n, c.a, c.b); } - function vUe(e, n, t, i) { + function kUe(e, n, t, i) { var r, c, s, f, h, l; if (l = xu(e.e.Ah(), n), s = u(e.g, 122), ia(e.e, n)) { if (n.Qi() && (c = r5(e, n, i, N(n, 103) && (u(n, 19).Bb & xr) != 0), c >= 0 && c != t)) @@ -25859,50 +25949,50 @@ function WDn() { return null; } } - function kUe(e, n) { + function yUe(e, n) { var t, i, r, c, s, f, h, l, a; for (t = 0, r = new x((qe(0, e.c.length), u(e.c[0], 107)).g.b.j); r.a < r.c.c.length; ) i = u(A(r), 12), i.p = t++; - for (n == (be(), ln) ? Di(e, new Dpe()) : Di(e, new Gpe()), f = 0, a = e.c.length - 1; f < a; ) + for (n == (be(), ln) ? Di(e, new Npe()) : Di(e, new Hpe()), f = 0, a = e.c.length - 1; f < a; ) s = (qe(f, e.c.length), u(e.c[f], 107)), l = (qe(a, e.c.length), u(e.c[a], 107)), c = n == ln ? s.c : s.a, h = n == ln ? l.a : l.c, Pa(s, n, (vf(), z5), c), Pa(l, n, U5, h), ++f, --a; f == a && Pa((qe(f, e.c.length), u(e.c[f], 107)), n, (vf(), sg), null); } function KSn(e, n, t, i) { var r, c, s, f, h, l; - for (s = new KUe(e, n, t), h = new Vi(i, 0), r = !1; h.b < h.d.gc(); ) - f = (An(h.b < h.d.gc()), u(h.d.Xb(h.c = h.b++), 239)), f == n || f == t ? vs(h) : !r && _(ch(f.g, f.d[0]).a) > _(ch(s.g, s.d[0]).a) ? (An(h.b > 0), h.a.Xb(h.c = --h.b), fw(h, s), r = !0) : f.e && f.e.gc() > 0 && (c = (!f.e && (f.e = new le()), f.e).Kc(n), l = (!f.e && (f.e = new le()), f.e).Kc(t), (c || l) && ((!f.e && (f.e = new le()), f.e).Ec(s), ++s.c)); + for (s = new VUe(e, n, t), h = new Vi(i, 0), r = !1; h.b < h.d.gc(); ) + f = (An(h.b < h.d.gc()), u(h.d.Xb(h.c = h.b++), 239)), f == n || f == t ? vs(h) : !r && B(ch(f.g, f.d[0]).a) > B(ch(s.g, s.d[0]).a) ? (An(h.b > 0), h.a.Xb(h.c = --h.b), fw(h, s), r = !0) : f.e && f.e.gc() > 0 && (c = (!f.e && (f.e = new le()), f.e).Kc(n), l = (!f.e && (f.e = new le()), f.e).Kc(t), (c || l) && ((!f.e && (f.e = new le()), f.e).Ec(s), ++s.c)); r || sn(i.c, s); } function VSn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; - return d = e.a.i + e.a.g / 2, g = e.a.i + e.a.g / 2, v = n.i + n.g / 2, E = n.j + n.f / 2, f = new ue(v, E), l = u(re(n, (tt(), mm)), 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, j = t.i + t.g / 2, M = t.j + t.f / 2, h = new ue(j, M), a = u(re(t, mm), 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 < p && f.a < p || p < l.a && p < f.a ? !1 : !(a.a < p && h.a < p || p < a.a && p < h.a); + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; + return d = e.a.i + e.a.g / 2, g = e.a.i + e.a.g / 2, v = n.i + n.g / 2, E = n.j + n.f / 2, f = new ue(v, E), l = u(re(n, (tt(), mm)), 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, j = t.i + t.g / 2, T = t.j + t.f / 2, h = new ue(j, T), a = u(re(t, mm), 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 < p && f.a < p || p < l.a && p < f.a ? !1 : !(a.a < p && h.a < p || p < a.a && p < h.a); } function QSn(e, n, t) { var i, r, c, s; - for (t.Tg(DXe, 1), e.a = n, e.c = new le(), c = m.Math.max(n.a.c.length, u(y(n, (te(), id)), 15).a); s = new TLe(e.c, e.d, e.b), jxn(s, n), Eyn(s, n), e.d.b != 0; ) { + for (t.Tg(NXe, 1), e.a = n, e.c = new le(), c = m.Math.max(n.a.c.length, u(y(n, (te(), id)), 15).a); s = new SLe(e.c, e.d, e.b), jxn(s, n), Eyn(s, n), e.d.b != 0; ) { for (e.rg(c, c * u(y(n, eE), 15).a), r = new x(e.c); r.a < r.c.c.length; ) i = u(A(r), 17), Ua(i, !1), K(i.c.i, (ae(), Lk), ie(u(y(i.c.i, Lk), 15).a + 1)), K(n, im, (en(), !0)); Fs(e.d), Fc(e.b), e.c.c.length = 0; } t.Ug(), t.ah("Execution Time: " + t.Vg()); } - function yUe(e, n, t, i) { + function jUe(e, n, t, i) { var r, c, s, f, h, l; if (!yw(n)) { - if (l = t.dh((N(n, 18) ? u(n, 18).gc() : _f(n.Jc())) / e.a | 0), l.Tg(JXe, 1), h = new Mme(), f = 0, i == (Mi(), Qr) || i == nc) + if (l = t.dh((N(n, 18) ? u(n, 18).gc() : Bf(n.Jc())) / e.a | 0), l.Tg(GXe, 1), h = new Tme(), f = 0, i == (Mi(), Qr) || i == nc) for (s = n.Jc(); s.Ob(); ) - r = u(s.Pb(), 40), h = vo(I(T(To, 1), Ve, 20, 0, [h, new Bl(r)])), f < r.f.a && (f = r.f.a); + r = u(s.Pb(), 40), h = vo(I(S(To, 1), Ve, 20, 0, [h, new _l(r)])), f < r.f.a && (f = r.f.a); else for (s = n.Jc(); s.Ob(); ) - r = u(s.Pb(), 40), h = vo(I(T(To, 1), Ve, 20, 0, [h, new Bl(r)])), f < r.f.b && (f = r.f.b); + r = u(s.Pb(), 40), h = vo(I(S(To, 1), Ve, 20, 0, [h, new _l(r)])), f < r.f.b && (f = r.f.b); for (c = n.Jc(); c.Ob(); ) - r = u(c.Pb(), 40), K(r, (Bt(), EC), f); - l.Ug(), yUe(e, h, t, i); + r = u(c.Pb(), 40), K(r, (_t(), EC), f); + l.Ug(), jUe(e, h, t, i); } } function Wte(e, n, t) { var i, r, c, s, f, h, l, a; - this.a = e, this.b = n, this.c = t, this.e = wf(I(T(LLn, 1), Ve, 177, 0, [new Jp(e, n), new Jp(n, t), new Jp(t, e)])), this.f = wf(I(T(Ji, 1), oe, 8, 0, [e, n, t])), this.d = (i = Fi(kr(this.b), this.a), r = Fi(kr(this.c), this.a), c = Fi(kr(this.c), this.b), s = i.a * (this.a.a + this.b.a) + i.b * (this.a.b + this.b.b), f = r.a * (this.a.a + this.c.a) + r.b * (this.a.b + this.c.b), h = 2 * (i.a * c.b - i.b * c.a), l = (r.b * s - i.b * f) / h, a = (i.a * f - r.a * s) / h, new ue(l, a)); + this.a = e, this.b = n, this.c = t, this.e = wf(I(S(LLn, 1), Ve, 177, 0, [new Jp(e, n), new Jp(n, t), new Jp(t, e)])), this.f = wf(I(S(Ji, 1), fe, 8, 0, [e, n, t])), this.d = (i = Fi(kr(this.b), this.a), r = Fi(kr(this.c), this.a), c = Fi(kr(this.c), this.b), s = i.a * (this.a.a + this.b.a) + i.b * (this.a.b + this.b.b), f = r.a * (this.a.a + this.c.a) + r.b * (this.a.b + this.c.b), h = 2 * (i.a * c.b - i.b * c.a), l = (r.b * s - i.b * f) / h, a = (i.a * f - r.a * s) / h, new ue(l, a)); } function Ua(e, n) { var t, i, r, c, s, f; @@ -25912,18 +26002,18 @@ function WDn() { } function YSn(e, n) { var t, i, r, c, s; - return t = Hv(u(y(n, (Ac(), Fb)), 86)), e.b.b == 0 ? null : (s = u(fs(du(new Ge(null, new He(e.b, 16)), new ame()), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), c = u(fs(mt(new Ge(null, new He(n.b, 16)), new jye(s)), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [_u]))), 16), r = H(Ls(dw(du(c.Mc(), new Eye(t)), (U0(), U0(), zJ)))), i = u(Ls(Zl(mt(c.Mc(), new sxe(t, r)))), 40), i); + return t = Hv(u(y(n, (Ac(), Fb)), 86)), e.b.b == 0 ? null : (s = u(fs(du(new Ge(null, new He(e.b, 16)), new dme()), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), c = u(fs(mt(new Ge(null, new He(n.b, 16)), new Eye(s)), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [Bu]))), 16), r = H(Ls(dw(du(c.Mc(), new Aye(t)), (U0(), U0(), zJ)))), i = u(Ls(Zl(mt(c.Mc(), new oxe(t, r)))), 40), i); } function ZSn(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E; - t = F0(new jd(), e.f), l = e.i[n.c.i.p], p = e.i[n.d.i.p], h = n.c, g = n.d, f = h.a.b, d = g.a.b, l.b || (f += h.n.b), p.b || (d += g.n.b), a = dr(m.Math.max(0, f - d)), s = dr(m.Math.max(0, d - f)), v = (j = m.Math.max(1, u(y(n, (ae(), am)), 15).a), E = EQ(n.c.i.k, n.d.i.k), j * E), r = yf(ff(of(sf(hf(new Ro(), v), s), t), u(rn(e.k, n.c), 124))), c = yf(ff(of(sf(hf(new Ro(), v), a), t), u(rn(e.k, n.d), 124))), i = new exe(r, c), e.c[n.p] = i; + t = F0(new jd(), e.f), l = e.i[n.c.i.p], p = e.i[n.d.i.p], h = n.c, g = n.d, f = h.a.b, d = g.a.b, l.b || (f += h.n.b), p.b || (d += g.n.b), a = dr(m.Math.max(0, f - d)), s = dr(m.Math.max(0, d - f)), v = (j = m.Math.max(1, u(y(n, (ae(), am)), 15).a), E = EQ(n.c.i.k, n.d.i.k), j * E), r = yf(ff(of(sf(hf(new Ro(), v), s), t), u(rn(e.k, n.c), 124))), c = yf(ff(of(sf(hf(new Ro(), v), a), t), u(rn(e.k, n.d), 124))), i = new nxe(r, c), e.c[n.p] = i; } function eIn(e, n, t) { var i, r, c, s, f, h; for (i = 0, c = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); c.e != c.i.gc(); ) - r = u(En(c), 26), s = "", (!r.n && (r.n = new ne(vc, r, 1, 7)), r.n).i == 0 || (s = u(F((!r.n && (r.n = new ne(vc, r, 1, 7)), r.n), 0), 157).a), f = new C$e(s), Pc(f, r), K(f, (I1(), Z3), r), f.a = i++, f.d.a = r.i + r.g / 2, f.d.b = r.j + r.f / 2, f.e.a = m.Math.max(r.g, 1), f.e.b = m.Math.max(r.f, 1), he(n.e, f), Ru(t.f, r, f), h = u(re(r, (jf(), qse)), 102), h == (Ui(), ad) && (h = Sh); + r = u(En(c), 26), s = "", (!r.n && (r.n = new ne(vc, r, 1, 7)), r.n).i == 0 || (s = u(F((!r.n && (r.n = new ne(vc, r, 1, 7)), r.n), 0), 157).a), f = new P$e(s), Pc(f, r), K(f, (I1(), Z3), r), f.a = i++, f.d.a = r.i + r.g / 2, f.d.b = r.j + r.f / 2, f.e.a = m.Math.max(r.g, 1), f.e.b = m.Math.max(r.f, 1), he(n.e, f), Ru(t.f, r, f), h = u(re(r, (jf(), qse)), 102), h == (Ui(), ad) && (h = Sh); } - function jUe(e) { + function EUe(e) { var n, t, i; if (e2(u(y(e, (ae(), oi)), 102))) for (t = new x(e.j); t.a < t.c.c.length; ) @@ -25969,12 +26059,12 @@ function WDn() { } return i; } - function EUe(e, n) { + function AUe(e, n) { var t, i, r, c, s, f, h, l, a; for (c = new x(e.b); c.a < c.c.c.length; ) for (r = u(A(c), 25), f = new x(r.a); f.a < f.c.c.length; ) - for (s = u(A(f), 9), s.k == (cn(), _c) && (h = (l = u(pn(new fn(dn(bi(s).a.Jc(), new Q()))), 17), a = u(pn(new fn(dn(Ht(s).a.Jc(), new Q()))), 17), !ve(me(y(l, (te(), Qa)))) || !ve(me(y(a, Qa))) ? n : yFe(n)), L3(s, h)), i = new fn(dn(Ht(s).a.Jc(), new Q())); xn(i); ) - t = u(pn(i), 17), h = ve(me(y(t, (te(), Qa)))) ? yFe(n) : n, dFe(t, h); + for (s = u(A(f), 9), s.k == (cn(), Bc) && (h = (l = u(pn(new fn(dn(bi(s).a.Jc(), new Y()))), 17), a = u(pn(new fn(dn(Ht(s).a.Jc(), new Y()))), 17), !ve(me(y(l, (te(), Qa)))) || !ve(me(y(a, Qa))) ? n : jFe(n)), L3(s, h)), i = new fn(dn(Ht(s).a.Jc(), new Y())); xn(i); ) + t = u(pn(i), 17), h = ve(me(y(t, (te(), Qa)))) ? jFe(n) : n, bFe(t, h); } function Xte(e) { var n, t, i, r, c, s; @@ -25985,9 +26075,9 @@ function WDn() { for (this.b = 3, this.d = !0, this.c = !1, Cxn(this, e.b + this.b - 1), s = new le(), c = new x(this.e), n = 0; n < this.b - 1; n++) he(s, H(A(c))); for (r = Nn(e, 0); r.b != r.d.c; ) - i = u(Ln(r), 8), he(s, H(A(c))), he(this.a, new mCe(i, s)), qe(0, s.c.length), s.c.splice(0, 1); + i = u(Ln(r), 8), he(s, H(A(c))), he(this.a, new vCe(i, s)), qe(0, s.c.length), s.c.splice(0, 1); } - function AUe(e, n, t) { + function xUe(e, n, t) { var i, r, c, s; return e.Nj() ? (r = null, c = e.Oj(), i = e.Gj(1, s = fN(e, n, t), t, n, c), e.Kj() && !(e.Wi() && s != null ? jt(s, t) : z(s) === z(t)) ? (s != null && (r = e.Mj(s, r)), r = e.Lj(t, r), e.Rj() && (r = e.Uj(s, t, r)), r ? (r.lj(i), r.mj()) : e.Hj(i)) : (e.Rj() && (r = e.Uj(s, t, r)), r ? (r.lj(i), r.mj()) : e.Hj(i)), s) : (s = fN(e, n, t), e.Kj() && !(e.Wi() && s != null ? jt(s, t) : z(s) === z(t)) && (r = null, s != null && (r = e.Mj(s, null)), r = e.Lj(t, r), r && r.mj()), s); } @@ -25997,7 +26087,7 @@ function WDn() { n.Ug(); return; } - if (r = new zne(e), s = (r.i == null && (r.i = RY(r, new ez())), _(r.i) * r.f), t = s / (r.i == null && (r.i = RY(r, new ez())), _(r.i)), r.b > t) { + if (r = new zne(e), s = (r.i == null && (r.i = RY(r, new ez())), B(r.i) * r.f), t = s / (r.i == null && (r.i = RY(r, new ez())), B(r.i)), r.b > t) { n.Ug(); return; } @@ -26014,10 +26104,10 @@ function WDn() { if (i = c.mg(e, r), !c.ng()) switch (u(y(e, oC), 351).g) { case 2: - i = sGe(r, i); + i = oGe(r, i); break; case 1: - i = Q_e(r, i); + i = YBe(r, i); } QIn(e, r, i), n.Ug(); } @@ -26027,11 +26117,11 @@ function WDn() { } function iIn(e, n) { var t, i, r, c; - if (Fpn(e.d, e.e), e.c.a.$b(), _(H(y(n.j, (ae(), rE)))) != 0 || _(H(y(n.j, rE))) != 0) - for (t = _2, z(y(n.j, $l)) !== z((ta(), cd)) && K(n.j, (te(), td), (en(), !0)), c = u(y(n.j, Rk), 15).a, r = 0; r < c && (i = gIn(e, n), !(i < t && (t = i, ONe(e), t == 0))); r++) + if (Fpn(e.d, e.e), e.c.a.$b(), B(H(y(n.j, (ae(), rE)))) != 0 || B(H(y(n.j, rE))) != 0) + for (t = B2, z(y(n.j, $l)) !== z((ta(), cd)) && K(n.j, (te(), td), (en(), !0)), c = u(y(n.j, Rk), 15).a, r = 0; r < c && (i = gIn(e, n), !(i < t && (t = i, LNe(e), t == 0))); r++) ; else - for (t = pt, z(y(n.j, $l)) !== z((ta(), cd)) && K(n.j, (te(), td), (en(), !0)), c = u(y(n.j, Rk), 15).a, r = 0; r < c && (i = TUe(e, n), !(i < t && (t = i, ONe(e), t == 0))); r++) + for (t = pt, z(y(n.j, $l)) !== z((ta(), cd)) && K(n.j, (te(), td), (en(), !0)), c = u(y(n.j, Rk), 15).a, r = 0; r < c && (i = SUe(e, n), !(i < t && (t = i, LNe(e), t == 0))); r++) ; } function rIn(e, n) { @@ -26047,28 +26137,28 @@ function WDn() { } function cIn(e, n) { var t, i, r, c, s; - for (s = new fn(dn(bi(n).a.Jc(), new Q())); xn(s); ) - if (c = u(pn(s), 17), e.f.b == 0 ? (r = c.c.i.k == (cn(), si) && !!c.c.i.c && c.c.i.c.p == e.c, xn(new fn(dn(bi(c.c.i).a.Jc(), new Q()))) ? (t = u(pn(new fn(dn(bi(c.c.i).a.Jc(), new Q()))), 17).c.i.c, i = c.c.i.k == _c && !!t && t.p == e.c) : i = !1) : (r = c.c.i.k == (cn(), si) && c.c.i.p == e.c, i = c.c.i.k == _c && u(pn(new fn(dn(bi(c.c.i).a.Jc(), new Q()))), 17).c.i.p == e.c), r || i) + for (s = new fn(dn(bi(n).a.Jc(), new Y())); xn(s); ) + if (c = u(pn(s), 17), e.f.b == 0 ? (r = c.c.i.k == (cn(), si) && !!c.c.i.c && c.c.i.c.p == e.c, xn(new fn(dn(bi(c.c.i).a.Jc(), new Y()))) ? (t = u(pn(new fn(dn(bi(c.c.i).a.Jc(), new Y()))), 17).c.i.c, i = c.c.i.k == Bc && !!t && t.p == e.c) : i = !1) : (r = c.c.i.k == (cn(), si) && c.c.i.p == e.c, i = c.c.i.k == Bc && u(pn(new fn(dn(bi(c.c.i).a.Jc(), new Y()))), 17).c.i.p == e.c), r || i) return !0; return !1; } function uIn(e, n, t, i, r) { - var c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; - for (g = new le(), M = C$(i), E = n * e.a, d = 0, v = 0, c = new vi(), s = new vi(), f = new le(), D = 0, R = 0, p = 0, j = 0, l = 0, a = 0; M.a.gc() != 0; ) - h = A9n(M, r, s), h && (M.a.Ac(h) != null, sn(f.c, h), c.a.yc(h, c), v = e.f[h.p], D += e.e[h.p] - v * e.b, d = e.c[h.p], R += d * e.b, a += v * e.b, j += e.e[h.p]), (!h || M.a.gc() == 0 || D >= E && e.e[h.p] > v * e.b || R >= t * E) && (sn(g.c, f), f = new le(), wr(s, c), c.a.$b(), l -= a, p = m.Math.max(p, l * e.b + j), l += R, D = R, R = 0, a = 0, j = 0); + var c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; + for (g = new le(), T = C$(i), E = n * e.a, d = 0, v = 0, c = new vi(), s = new vi(), f = new le(), D = 0, R = 0, p = 0, j = 0, l = 0, a = 0; T.a.gc() != 0; ) + h = A9n(T, r, s), h && (T.a.Ac(h) != null, sn(f.c, h), c.a.yc(h, c), v = e.f[h.p], D += e.e[h.p] - v * e.b, d = e.c[h.p], R += d * e.b, a += v * e.b, j += e.e[h.p]), (!h || T.a.gc() == 0 || D >= E && e.e[h.p] > v * e.b || R >= t * E) && (sn(g.c, f), f = new le(), wr(s, c), c.a.$b(), l -= a, p = m.Math.max(p, l * e.b + j), l += R, D = R, R = 0, a = 0, j = 0); return new Ar(p, g); } function IR(e) { var n, t, i, r, c, s, f; if (!e.d) { - if (f = new _5e(), n = x8, c = n.a.yc(e, n), c == null) { + if (f = new J5e(), n = x8, c = n.a.yc(e, n), c == null) { for (i = new kn(Zr(e)); i.e != i.i.gc(); ) t = u(En(i), 29), hi(f, IR(t)); n.a.Ac(e) != null, n.a.gc() == 0; } for (s = f.i, r = (!e.q && (e.q = new ne(nf, e, 11, 10)), new kn(e.q)); r.e != r.i.gc(); ++s) u(En(r), 403); - hi(f, (!e.q && (e.q = new ne(nf, e, 11, 10)), e.q)), Iw(f), e.d = new Zg((u(F(ee((E1(), tn).o), 9), 19), f.i), f.g), e.e = u(f.g, 678), e.e == null && (e.e = Uon), ks(e).b &= -17; + hi(f, (!e.q && (e.q = new ne(nf, e, 11, 10)), e.q)), Iw(f), e.d = new Zg((u(F(ee((E1(), tn).o), 9), 19), f.i), f.g), e.e = u(f.g, 678), e.e == null && (e.e = zon), ks(e).b &= -17; } return e.d; } @@ -26119,13 +26209,13 @@ function WDn() { } function oIn(e, n) { var t, i, r, c, s, f, h, l; - for (t = new kge(), r = new fn(dn(bi(n).a.Jc(), new Q())); xn(r); ) + for (t = new yge(), r = new fn(dn(bi(n).a.Jc(), new Y())); xn(r); ) if (i = u(pn(r), 17), !hr(i) && (f = i.c.i, Yee(f, hI))) { if (l = kte(e, f, hI, fI), l == -1) continue; t.b = m.Math.max(t.b, l), !t.a && (t.a = new le()), he(t.a, f); } - for (s = new fn(dn(Ht(n).a.Jc(), new Q())); xn(s); ) + for (s = new fn(dn(Ht(n).a.Jc(), new Y())); xn(s); ) if (c = u(pn(s), 17), !hr(c) && (h = c.d.i, Yee(h, fI))) { if (l = kte(e, h, fI, hI), l == -1) continue; @@ -26138,16 +26228,16 @@ function WDn() { if (t.d.i != n.i) { for (r = new dh(e), Nl(r, (cn(), yi)), K(r, (te(), $t), t), K(r, (ae(), oi), (Ui(), Vc)), sn(i.c, r), s = new Uc(), ac(s, r), Oi(s, (be(), an)), f = new Uc(), ac(f, r), Oi(f, gn), a = t.d, Ki(t, s), c = new z0(), Pc(c, t), K(c, Vr, null), br(c, f), Ki(c, a), l = new Vi(t.b, 0); l.b < l.d.gc(); ) h = (An(l.b < l.d.gc()), u(l.d.Xb(l.c = l.b++), 70)), z(y(h, il)) === z((lh(), Ig)) && (K(h, rm, t), vs(l), he(c.b, h)); - ZGe(r, s, f); + eHe(r, s, f); } } function hIn(e, n, t, i) { var r, c, s, f, h, l, a; if (t.c.i != n.i) - for (r = new dh(e), Nl(r, (cn(), yi)), K(r, (te(), $t), t), K(r, (ae(), oi), (Ui(), Vc)), sn(i.c, r), s = new Uc(), ac(s, r), Oi(s, (be(), an)), f = new Uc(), ac(f, r), Oi(f, gn), Ki(t, s), c = new z0(), Pc(c, t), K(c, Vr, null), br(c, f), Ki(c, n), ZGe(r, s, f), l = new Vi(t.b, 0); l.b < l.d.gc(); ) + for (r = new dh(e), Nl(r, (cn(), yi)), K(r, (te(), $t), t), K(r, (ae(), oi), (Ui(), Vc)), sn(i.c, r), s = new Uc(), ac(s, r), Oi(s, (be(), an)), f = new Uc(), ac(f, r), Oi(f, gn), Ki(t, s), c = new z0(), Pc(c, t), K(c, Vr, null), br(c, f), Ki(c, n), eHe(r, s, f), l = new Vi(t.b, 0); l.b < l.d.gc(); ) h = (An(l.b < l.d.gc()), u(l.d.Xb(l.c = l.b++), 70)), a = u(y(h, il), 279), a == (lh(), Ig) && (Et(h, rm) || K(h, rm, t), vs(l), he(c.b, h)); } - function xUe(e) { + function $Ue(e) { n5(); var n, t, i, r; if (n = dr(e), e < ak.length) @@ -26166,12 +26256,12 @@ function WDn() { r = l3(r, pt), t = qo(t, pt); return r = l3(r, n), r; } - function $Ue(e) { + function MUe(e) { var n, t, i, r, c, s, f, h, l, a; for (h = new x(e.a); h.a < h.c.c.length; ) if (f = u(A(h), 9), f.k == (cn(), Ai) && (r = u(y(f, (te(), Sc)), 64), r == (be(), gn) || r == an)) - for (i = new fn(dn(Jh(f).a.Jc(), new Q())); xn(i); ) - t = u(pn(i), 17), n = t.a, n.b != 0 && (l = t.c, l.i == f && (c = (An(n.b != 0), u(n.a.a.c, 8)), c.b = bc(I(T(Ji, 1), oe, 8, 0, [l.i.n, l.n, l.a])).b), a = t.d, a.i == f && (s = (An(n.b != 0), u(n.c.b.c, 8)), s.b = bc(I(T(Ji, 1), oe, 8, 0, [a.i.n, a.n, a.a])).b)); + for (i = new fn(dn(Jh(f).a.Jc(), new Y())); xn(i); ) + t = u(pn(i), 17), n = t.a, n.b != 0 && (l = t.c, l.i == f && (c = (An(n.b != 0), u(n.a.a.c, 8)), c.b = bc(I(S(Ji, 1), fe, 8, 0, [l.i.n, l.n, l.a])).b), a = t.d, a.i == f && (s = (An(n.b != 0), u(n.c.b.c, 8)), s.b = bc(I(S(Ji, 1), fe, 8, 0, [a.i.n, a.n, a.a])).b)); } function x9(e, n, t, i) { var r, c, s; @@ -26183,20 +26273,20 @@ function WDn() { function lIn(e, n, t, i) { var r, c, s, f, h, l, a; for (f = -1, a = new x(e); a.a < a.c.c.length; ) - l = u(A(a), 116), l.g = f--, r = Xn($$(a$(mt(new Ge(null, new He(l.f, 16)), new q3e()), new U3e())).d), c = Xn($$(a$(mt(new Ge(null, new He(l.k, 16)), new z3e()), new W3e())).d), s = r, h = c, i || (s = Xn($$(a$(new Ge(null, new He(l.f, 16)), new X3e())).d), h = Xn($$(a$(new Ge(null, new He(l.k, 16)), new K3e())).d)), l.d = s, l.a = r, l.i = h, l.b = c, h == 0 ? ti(t, l, t.c.b, t.c) : s == 0 && ti(n, l, n.c.b, n.c); + l = u(A(a), 116), l.g = f--, r = Xn($$(a$(mt(new Ge(null, new He(l.f, 16)), new U3e()), new z3e())).d), c = Xn($$(a$(mt(new Ge(null, new He(l.k, 16)), new W3e()), new X3e())).d), s = r, h = c, i || (s = Xn($$(a$(new Ge(null, new He(l.f, 16)), new K3e())).d), h = Xn($$(a$(new Ge(null, new He(l.k, 16)), new V3e())).d)), l.d = s, l.a = r, l.i = h, l.b = c, h == 0 ? ti(t, l, t.c.b, t.c) : s == 0 && ti(n, l, n.c.b, n.c); } function L3(e, n) { var t, i, r, c, s, f; - if (e.k == (cn(), _c) && (t = e.k == _c && !Hm(mt(u(y(e, (te(), xk)), 16).Mc(), new Dm(new VU()))).zd((Ad(), V3)) ? (Zs(), LE) : n, K(e, (te(), um), t), t != (Zs(), hd))) - for (i = u(y(e, $t), 17), f = _(H(y(i, (ae(), Ya)))), s = 0, t == Tl ? s = e.o.b - m.Math.ceil(f / 2) : t == LE && (s = m.Math.ceil(e.o.b - _(H(y(_i(e), sp))) - f) / 2, e.o.b -= _(H(y(_i(e), sp))), e.o.b -= f), c = new x(e.j); c.a < c.c.c.length; ) + if (e.k == (cn(), Bc) && (t = e.k == Bc && !Hm(mt(u(y(e, (te(), xk)), 16).Mc(), new Dm(new VU()))).zd((Ad(), V3)) ? (Zs(), LE) : n, K(e, (te(), um), t), t != (Zs(), hd))) + for (i = u(y(e, $t), 17), f = B(H(y(i, (ae(), Ya)))), s = 0, t == Tl ? s = e.o.b - m.Math.ceil(f / 2) : t == LE && (s = m.Math.ceil(e.o.b - B(H(y(Bi(e), sp))) - f) / 2, e.o.b -= B(H(y(Bi(e), sp))), e.o.b -= f), c = new x(e.j); c.a < c.c.c.length; ) r = u(A(c), 12), r.n.b = s; } - function MUe(e, n, t) { + function TUe(e, n, t) { var i, r, c, s, f, h, l, a, d; for (r = !0, s = new x(e.b); s.a < s.c.c.length; ) { for (c = u(A(s), 25), l = Ri, a = null, h = new x(c.a); h.a < h.c.c.length; ) - if (f = u(A(h), 9), d = _(n.p[f.p]) + _(n.d[f.p]) - f.d.d, i = _(n.p[f.p]) + _(n.d[f.p]) + f.o.b + f.d.a, d > l && i > l) - a = f, l = _(n.p[f.p]) + _(n.d[f.p]) + f.o.b + f.d.a; + if (f = u(A(h), 9), d = B(n.p[f.p]) + B(n.d[f.p]) - f.d.d, i = B(n.p[f.p]) + B(n.d[f.p]) + f.o.b + f.d.a, d > l && i > l) + a = f, l = B(n.p[f.p]) + B(n.d[f.p]) + f.o.b + f.d.a; else { r = !1, t.$g() && t.ah("bk node placement breaks on " + f + " which should have been after " + a); break; @@ -26209,12 +26299,12 @@ function WDn() { function Kte(e, n, t, i) { var r, c, s, f, h, l, a, d, g; if (c = new dh(e), Nl(c, (cn(), su)), K(c, (ae(), oi), (Ui(), Vc)), r = 0, n) { - for (s = new Uc(), K(s, (te(), $t), n), K(c, $t, n.i), Oi(s, (be(), an)), ac(s, c), g = _h(n.e), l = g, a = 0, d = l.length; a < d; ++a) + for (s = new Uc(), K(s, (te(), $t), n), K(c, $t, n.i), Oi(s, (be(), an)), ac(s, c), g = Bh(n.e), l = g, a = 0, d = l.length; a < d; ++a) h = l[a], Ki(h, s); K(n, ds, c), ++r; } if (t) { - for (f = new Uc(), K(c, (te(), $t), t.i), K(f, $t, t), Oi(f, (be(), gn)), ac(f, c), g = _h(t.g), l = g, a = 0, d = l.length; a < d; ++a) + for (f = new Uc(), K(c, (te(), $t), t.i), K(f, $t, t), Oi(f, (be(), gn)), ac(f, c), g = Bh(t.g), l = g, a = 0, d = l.length; a < d; ++a) h = l[a], br(h, f); K(t, ds, c), ++r; } @@ -26232,20 +26322,20 @@ function WDn() { } function dIn(e, n, t) { var i, r, c, s, f, h, l, a, d; - for (s = new L_e(), l = I(T(Wn, 1), lt, 30, 15, [0]), r = -1, c = 0, i = 0, h = 0; h < e.b.c.length; ++h) + for (s = new DBe(), l = I(S(Wn, 1), lt, 30, 15, [0]), r = -1, c = 0, i = 0, h = 0; h < e.b.c.length; ++h) if (a = u(pe(e.b, h), 434), a.b > 0) { 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 (!Tze(n, l, a, f, s)) { + if (!Sze(n, l, a, f, s)) { h = r - 1, l[0] = c; continue; } - } else if (r = -1, !Tze(n, l, a, 0, s)) + } else if (r = -1, !Sze(n, l, a, 0, s)) return 0; } else { if (r = -1, or(a.c, 0) == 32) { - if (d = l[0], kDe(n, l), l[0] > d) + if (d = l[0], yDe(n, l), l[0] > d) continue; } else if (X2n(n, a.c, l[0])) { l[0] += a.c.length; @@ -26257,15 +26347,15 @@ function WDn() { } function bIn(e, n, t) { var i, r, c, s, f, h, l, a, d, g; - for (a = new i$(new Xke(t)), f = W(zu, zf, 30, e.f.e.c.length, 16, 1), yV(f, f.length), t[n.a] = 0, l = new x(e.f.e); l.a < l.c.c.length; ) + for (a = new i$(new Kke(t)), f = W(zu, zf, 30, e.f.e.c.length, 16, 1), yV(f, f.length), t[n.a] = 0, l = new x(e.f.e); l.a < l.c.c.length; ) h = u(A(l), 155), h.a != n.a && (t[h.a] = pt), e3(Xv(a, h), b5); for (; a.b.c.length != 0; ) - for (d = u(aN(a), 155), f[d.a] = !0, c = iMe(new kO(e.b, d), 0); c.c; ) - r = u(oY(c), 291), g = K8n(r, d), !f[g.a] && (Et(r, (C7(), oI)) ? s = _(H(y(r, oI))) : s = e.c, i = t[d.a] + s, i < t[g.a] && (t[g.a] = i, TNe(a, g), e3(Xv(a, g), b5))); + for (d = u(aN(a), 155), f[d.a] = !0, c = rMe(new kO(e.b, d), 0); c.c; ) + r = u(oY(c), 291), g = K8n(r, d), !f[g.a] && (Et(r, (C7(), oI)) ? s = B(H(y(r, oI))) : s = e.c, i = t[d.a] + s, i < t[g.a] && (t[g.a] = i, SNe(a, g), e3(Xv(a, g), b5))); } function Vte(e) { var n, t, i, r, c, s, f, h; - t = ve(me(y(e, (jf(), fZe)))), c = e.a.c.d, f = e.a.d.d, t ? (s = Jl(Fi(new ue(f.a, f.b), c), 0.5), h = Jl(kr(e.e), 0.5), n = Fi(At(new ue(c.a, c.b), s), h), eK(e.d, n)) : (r = _(H(y(e.a, mZe))), i = e.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 - e.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 - e.e.b)); + t = ve(me(y(e, (jf(), hZe)))), c = e.a.c.d, f = e.a.d.d, t ? (s = Jl(Fi(new ue(f.a, f.b), c), 0.5), h = Jl(kr(e.e), 0.5), n = Fi(At(new ue(c.a, c.b), s), h), eK(e.d, n)) : (r = B(H(y(e.a, vZe))), i = e.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 - e.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 - e.e.b)); } function $9(e) { var n, t, i, r, c, s, f, h; @@ -26277,15 +26367,15 @@ function WDn() { } for (i = (!e.s && (e.s = new ne(Uu, e, 21, 17)), new kn(e.s)); i.e != i.i.gc(); ) t = u(En(i), 179), N(t, 103) && Dn(f, u(t, 19)); - Iw(f), e.r = new eSe(e, (u(F(ee((E1(), tn).o), 6), 19), f.i), f.g), hi(h, e.r), Iw(h), e.f = new Zg((u(F(ee(tn.o), 5), 19), h.i), h.g), ks(e).b &= -3; + Iw(f), e.r = new nSe(e, (u(F(ee((E1(), tn).o), 6), 19), f.i), f.g), hi(h, e.r), Iw(h), e.f = new Zg((u(F(ee(tn.o), 5), 19), h.i), h.g), ks(e).b &= -3; } return e.f; } function CT() { - CT = G, j0e = I(T(Oo, 1), Xh, 30, 15, [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 65, 66, 67, 68, 69, 70]), yon = new RegExp(`[ + CT = G, j0e = I(S(Oo, 1), Xh, 30, 15, [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 65, 66, 67, 68, 69, 70]), jon = new RegExp(`[ \r\f]+`); try { - j8 = I(T(ZLn, 1), Ve, 2076, 0, [new J8((yX(), RM("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ", jy((xA(), xA(), fk))))), new J8(RM("yyyy-MM-dd'T'HH:mm:ss'.'SSS", jy(fk))), new J8(RM("yyyy-MM-dd'T'HH:mm:ss", jy(fk))), new J8(RM("yyyy-MM-dd'T'HH:mm", jy(fk))), new J8(RM("yyyy-MM-dd", jy(fk)))]); + j8 = I(S(ZLn, 1), Ve, 2076, 0, [new J8((yX(), RM("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ", jy((xA(), xA(), fk))))), new J8(RM("yyyy-MM-dd'T'HH:mm:ss'.'SSS", jy(fk))), new J8(RM("yyyy-MM-dd'T'HH:mm:ss", jy(fk))), new J8(RM("yyyy-MM-dd'T'HH:mm", jy(fk))), new J8(RM("yyyy-MM-dd", jy(fk)))]); } catch (e) { if (e = gi(e), !N(e, 80)) throw $(e); } @@ -26296,7 +26386,7 @@ function WDn() { if (c = u(A(s), 107), r = c.i, !!r) switch (c.e.g) { case 0: - n = u(L6(new Bp(c.b)), 64), i == aE && n == (be(), ln) ? sn(t.c, c) : i == aE && n == (be(), Mn) ? sn(f.c, c) : zAn(c, n); + n = u(L6(new _p(c.b)), 64), i == aE && n == (be(), ln) ? sn(t.c, c) : i == aE && n == (be(), Mn) ? sn(f.c, c) : zAn(c, n); break; case 1: d$n(c); @@ -26308,7 +26398,7 @@ function WDn() { case 4: $En(c); } - t && (t.c.length == 0 || kUe(t, (be(), ln)), f.c.length == 0 || kUe(f, (be(), Mn))); + t && (t.c.length == 0 || yUe(t, (be(), ln)), f.c.length == 0 || yUe(f, (be(), Mn))); } function gIn(e, n) { var t, i, r, c; @@ -26322,7 +26412,7 @@ function WDn() { } while (c > t); return c; } - function TUe(e, n) { + function SUe(e, n) { var t, i, r, c; if (r = $s(e.d, 1) != 0, i = aT(e, n), i == 0 && ve(me(y(n.j, (te(), td))))) return 0; @@ -26350,12 +26440,12 @@ function WDn() { } function vIn(e) { var n, t, i, r, c, s, f, h, l, a, d, g; - for (n = RGe(e), a = (f = new Fl(n).a.vc().Jc(), new bA(f)); a.a.Ob(); ) { + for (n = _Ge(e), a = (f = new Fl(n).a.vc().Jc(), new bA(f)); a.a.Ob(); ) { for (l = (r = u(a.a.Pb(), 45), u(r.jd(), 9)), d = 0, g = 0, d = l.d.d, g = l.o.b + l.d.a, e.d[l.p] = 0, t = l; (c = e.a[t.p]) != l; ) - i = Okn(t, c), h = 0, e.c == (Rh(), e1) ? h = i.d.n.b + i.d.a.b - i.c.n.b - i.c.a.b : h = i.c.n.b + i.c.a.b - i.d.n.b - i.d.a.b, s = _(e.d[t.p]) + h, e.d[c.p] = s, d = m.Math.max(d, c.d.d - s), g = m.Math.max(g, s + c.o.b + c.d.a), t = c; + i = Okn(t, c), h = 0, e.c == (Rh(), e1) ? h = i.d.n.b + i.d.a.b - i.c.n.b - i.c.a.b : h = i.c.n.b + i.c.a.b - i.d.n.b - i.d.a.b, s = B(e.d[t.p]) + h, e.d[c.p] = s, d = m.Math.max(d, c.d.d - s), g = m.Math.max(g, s + c.o.b + c.d.a), t = c; t = l; do - e.d[t.p] = _(e.d[t.p]) + d, t = e.a[t.p]; + e.d[t.p] = B(e.d[t.p]) + d, t = e.a[t.p]; while (t != l); e.b[l.p] = d + g; } @@ -26372,26 +26462,26 @@ function WDn() { } function PT(e) { var n, t, i; - return t = z(re(e, (ae(), lm))) === z((H7(), BG)) || z(re(e, lm)) === z(LG) || z(re(e, lm)) === z(DG) || z(re(e, lm)) === z(FG) || z(re(e, lm)) === z(_G) || z(re(e, lm)) === z(Vj), i = z(re(e, nC)) === z((U7(), IH)) || z(re(e, nC)) === z(PH) || z(re(e, uE)) === z((G1(), s4)) || z(re(e, uE)) === z((G1(), Jk)), n = z(re(e, $l)) !== z((ta(), cd)) || ve(me(re(e, n4))) || z(re(e, Ik)) !== z((A3(), gk)) || _(H(re(e, rE))) != 0 || _(H(re(e, lH))) != 0, t || i || n; + return t = z(re(e, (ae(), lm))) === z((H7(), _G)) || z(re(e, lm)) === z(LG) || z(re(e, lm)) === z(DG) || z(re(e, lm)) === z(FG) || z(re(e, lm)) === z(BG) || z(re(e, lm)) === z(Vj), i = z(re(e, nC)) === z((U7(), IH)) || z(re(e, nC)) === z(PH) || z(re(e, uE)) === z((G1(), s4)) || z(re(e, uE)) === z((G1(), Jk)), n = z(re(e, $l)) !== z((ta(), cd)) || ve(me(re(e, n4))) || z(re(e, Ik)) !== z((A3(), gk)) || B(H(re(e, rE))) != 0 || B(H(re(e, lH))) != 0, t || i || n; } function P2(e) { var n, t, i, r, c, s, f, h; if (!e.a) { - if (e.o = null, h = new P7e(e), n = new B5e(), t = x8, f = t.a.yc(e, t), f == null) { + if (e.o = null, h = new O7e(e), n = new B5e(), t = x8, f = t.a.yc(e, t), f == null) { for (s = new kn(Zr(e)); s.e != s.i.gc(); ) c = u(En(s), 29), hi(h, P2(c)); t.a.Ac(e) != null, t.a.gc() == 0; } for (r = (!e.s && (e.s = new ne(Uu, e, 21, 17)), new kn(e.s)); r.e != r.i.gc(); ) i = u(En(r), 179), N(i, 335) && Dn(n, u(i, 38)); - Iw(n), e.k = new ZTe(e, (u(F(ee((E1(), tn).o), 7), 19), n.i), n.g), hi(h, e.k), Iw(h), e.a = new Zg((u(F(ee(tn.o), 4), 19), h.i), h.g), ks(e).b &= -2; + Iw(n), e.k = new eSe(e, (u(F(ee((E1(), tn).o), 7), 19), n.i), n.g), hi(h, e.k), Iw(h), e.a = new Zg((u(F(ee(tn.o), 4), 19), h.i), h.g), ks(e).b &= -2; } return e.a; } function kIn(e) { var n, t, i, r, c, s, f, h, l, a, d, g; if (f = e.d, d = u(y(e, (te(), fm)), 16), n = u(y(e, tm), 16), !(!d && !n)) { - if (c = _(H(Ow(e, (ae(), AH)))), s = _(H(Ow(e, ele))), g = 0, d) { + if (c = B(H(Ow(e, (ae(), AH)))), s = B(H(Ow(e, ele))), g = 0, d) { for (l = 0, r = d.Jc(); r.Ob(); ) i = u(r.Pb(), 9), l = m.Math.max(l, i.o.b), g += i.o.a; g += c * (d.gc() - 1), f.d += l + s; @@ -26457,7 +26547,7 @@ function WDn() { } function yIn(e) { var n, t, i, r, c, s, f, h; - for (c = new fPe(), f1n(c, (v3(), Zun)), i = (r = AN(e, W(ke, oe, 2, 0, 6, 1)), new T4(new yc(new yO(e, r).b))); i.b < i.d.gc(); ) + for (c = new hPe(), f1n(c, (v3(), esn)), i = (r = AN(e, W(ye, fe, 2, 0, 6, 1)), new T4(new yc(new yO(e, r).b))); i.b < i.d.gc(); ) t = (An(i.b < i.d.gc()), zn(i.d.Xb(i.c = i.b++))), s = cie(j0, t), s && (n = Ul(e, t), n.re() ? f = n.re().a : n.oe() ? f = "" + n.oe().a : n.pe() ? f = "" + n.pe().a : f = n.Ib(), h = iie(s, f), h != null && ((Yu(s.j, (qh(), mi)) || Yu(s.j, Xe)) && p7(dN(c, Qn), s, h), Yu(s.j, Zf) && p7(dN(c, xi), s, h), Yu(s.j, t1) && p7(dN(c, Is), s, h), Yu(s.j, aa) && p7(dN(c, vc), s, h))); return c; } @@ -26484,9 +26574,9 @@ function WDn() { var n, t, i, r, c, s, f, h; for (r = new x(e.b); r.a < r.c.c.length; ) for (i = u(A(r), 25), s = new x(Nd(i.a)); s.a < s.c.c.length; ) - if (c = u(A(s), 9), DDe(c) && (t = u(y(c, (te(), Sb)), 317), !t.g && t.d)) + if (c = u(A(s), 9), NDe(c) && (t = u(y(c, (te(), Sb)), 317), !t.g && t.d)) for (n = t, h = t.d; h; ) - dqe(h.i, h.k, !1, !0), Yy(n.a), Yy(h.i), Yy(h.k), Yy(h.b), Ki(h.c, n.c.d), Ki(n.c, null), Ni(n.a, null), Ni(h.i, null), Ni(h.k, null), Ni(h.b, null), f = new jQ(n.i, h.a, n.e, h.j, h.f), f.k = n.k, f.n = n.n, f.b = n.b, f.c = h.c, f.g = n.g, f.d = h.d, K(n.i, Sb, f), K(h.a, Sb, f), h = h.d, n = f; + bqe(h.i, h.k, !1, !0), Yy(n.a), Yy(h.i), Yy(h.k), Yy(h.b), Ki(h.c, n.c.d), Ki(n.c, null), Ni(n.a, null), Ni(h.i, null), Ni(h.k, null), Ni(h.b, null), f = new jQ(n.i, h.a, n.e, h.j, h.f), f.k = n.k, f.n = n.n, f.b = n.b, f.c = h.c, f.g = n.g, f.d = h.d, K(n.i, Sb, f), K(h.a, Sb, f), h = h.d, n = f; } function OT(e, n, t, i) { var r, c, s, f, h, l; @@ -26508,7 +26598,7 @@ function WDn() { } } function PR() { - PR = G, eYe = I(T(Wn, 1), lt, 30, 15, [Yi, 1162261467, C9, 1220703125, 362797056, 1977326743, C9, 387420489, HT, 214358881, 429981696, 815730721, 1475789056, 170859375, 268435456, 410338673, 612220032, 893871739, 128e7, 1801088541, 113379904, 148035889, 191102976, 244140625, 308915776, 387420489, 481890304, 594823321, 729e6, 887503681, C9, 1291467969, 1544804416, 1838265625, 60466176]), nYe = I(T(Wn, 1), lt, 30, 15, [-1, -1, 31, 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]); + PR = G, nYe = I(S(Wn, 1), lt, 30, 15, [Yi, 1162261467, C9, 1220703125, 362797056, 1977326743, C9, 387420489, HT, 214358881, 429981696, 815730721, 1475789056, 170859375, 268435456, 410338673, 612220032, 893871739, 128e7, 1801088541, 113379904, 148035889, 191102976, 244140625, 308915776, 387420489, 481890304, 594823321, 729e6, 887503681, C9, 1291467969, 1544804416, 1838265625, 60466176]), tYe = I(S(Wn, 1), lt, 30, 15, [-1, -1, 31, 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]); } function OR(e, n) { var t, i, r, c, s, f, h, l, a, d; @@ -26530,10 +26620,10 @@ function WDn() { } function EIn(e, n) { var t, i, r, c; - if (c = bUe(n), !n.c && (n.c = new ne(Is, n, 9, 9)), fi(new Ge(null, (!n.c && (n.c = new ne(Is, n, 9, 9)), new He(n.c, 16))), new Yke(c)), r = u(y(c, (te(), ou)), 22), vPn(n, r), r.Gc((Pr(), So))) + if (c = wUe(n), !n.c && (n.c = new ne(Is, n, 9, 9)), fi(new Ge(null, (!n.c && (n.c = new ne(Is, n, 9, 9)), new He(n.c, 16))), new Zke(c)), r = u(y(c, (te(), ou)), 22), vPn(n, r), r.Gc((Pr(), So))) for (i = new kn((!n.c && (n.c = new ne(Is, n, 9, 9)), n.c)); i.e != i.i.gc(); ) t = u(En(i), 125), qPn(e, n, c, t); - return u(re(n, (ae(), d0)), 182).gc() != 0 && nqe(n, c), ve(me(y(c, Khe))) && r.Ec(_I), Et(c, sE) && Uje(new _Z(_(H(y(c, sE)))), c), z(re(n, ag)) === z((ea(), r1)) ? aLn(e, n, c) : VPn(e, n, c), c; + return u(re(n, (ae(), d0)), 182).gc() != 0 && tqe(n, c), ve(me(y(c, Khe))) && r.Ec(BI), Et(c, sE) && zje(new BZ(B(H(y(c, sE)))), c), z(re(n, ag)) === z((ea(), r1)) ? aLn(e, n, c) : VPn(e, n, c), c; } function cu(e, n) { var t, i, r, c, s, f, h; @@ -26541,28 +26631,28 @@ function WDn() { return null; if (c = e.length, c == 0) return ""; - for (h = W(Oo, Xh, 30, c, 15, 1), tr(0, c, e.length), tr(0, c, h.length), YSe(e, 0, c, h, 0), t = null, f = n, r = 0, s = 0; r < c; r++) - i = h[r], Zze(), i <= 32 && (O[i] & 2) != 0 ? f ? (!t && (t = new _o(e)), mdn(t, r - s++)) : (f = n, i != 32 && (!t && (t = new _o(e)), IN(t, r - s, r - s + 1, " "))) : f = !1; + for (h = W(Oo, Xh, 30, c, 15, 1), tr(0, c, e.length), tr(0, c, h.length), ZSe(e, 0, c, h, 0), t = null, f = n, r = 0, s = 0; r < c; r++) + i = h[r], eWe(), i <= 32 && (O[i] & 2) != 0 ? f ? (!t && (t = new Bo(e)), mdn(t, r - s++)) : (f = n, i != 32 && (!t && (t = new Bo(e)), IN(t, r - s, r - s + 1, " "))) : f = !1; return f ? t ? (c = t.a.length, c > 0 ? Go(t.a, 0, c - 1) : "") : (tr(0, c - 1, e.length), e.substr(0, c - 1)) : t ? t.a : e; } function AIn(e, n, t) { var i, r, c; - if (Et(n, (ae(), pc)) && (z(y(n, pc)) === z((Bs(), ha)) || z(y(n, pc)) === z(l0)) || Et(t, pc) && (z(y(t, pc)) === z((Bs(), ha)) || z(y(t, pc)) === z(l0))) + if (Et(n, (ae(), pc)) && (z(y(n, pc)) === z((_s(), ha)) || z(y(n, pc)) === z(l0)) || Et(t, pc) && (z(y(t, pc)) === z((_s(), ha)) || z(y(t, pc)) === z(l0))) return 0; - if (i = _i(n), r = aTn(e, n, t), r != 0) + if (i = Bi(n), r = aTn(e, n, t), r != 0) return r; - if (Et(n, (te(), _t)) && Et(t, _t)) { + if (Et(n, (te(), Bt)) && Et(t, Bt)) { if (c = Zc(hb(n, t, i, u(y(i, id), 15).a), hb(t, n, i, u(y(i, id), 15).a)), z(y(i, Ck)) === z((P1(), Yj)) && z(y(n, Pk)) !== z(y(t, Pk)) && (c = 0), c < 0) return X7(e, n, t), c; if (c > 0) return X7(e, t, n), c; } - return BAn(e, n, t); + return _An(e, n, t); } - function SUe(e, n) { + function IUe(e, n) { var t, i, r, c, s, f, h, l, a, d, g; - for (i = new fn(dn(J1(n).a.Jc(), new Q())); xn(i); ) - t = u(pn(i), 85), N(F((!t.b && (t.b = new Qe(Cn, t, 4, 7)), t.b), 0), 193) || (h = ec(u(F((!t.c && (t.c = new Qe(Cn, t, 5, 8)), t.c), 0), 84)), g9(t) || (s = n.i + n.g / 2, f = n.j + n.f / 2, a = h.i + h.g / 2, d = h.j + h.f / 2, g = new er(), g.a = a - s, g.b = d - f, c = new ue(g.a, g.b), zv(c, n.g, n.f), g.a -= c.a, g.b -= c.b, s = a - g.a, f = d - g.b, l = new ue(g.a, g.b), zv(l, h.g, h.f), g.a -= l.a, g.b -= l.b, a = s + g.a, d = f + g.b, r = ET(t), p2(r, s), m2(r, f), w2(r, a), g2(r, d), SUe(e, h))); + for (i = new fn(dn(J1(n).a.Jc(), new Y())); xn(i); ) + t = u(pn(i), 85), N(F((!t.b && (t.b = new Qe(Cn, t, 4, 7)), t.b), 0), 193) || (h = ec(u(F((!t.c && (t.c = new Qe(Cn, t, 5, 8)), t.c), 0), 84)), g9(t) || (s = n.i + n.g / 2, f = n.j + n.f / 2, a = h.i + h.g / 2, d = h.j + h.f / 2, g = new er(), g.a = a - s, g.b = d - f, c = new ue(g.a, g.b), zv(c, n.g, n.f), g.a -= c.a, g.b -= c.b, s = a - g.a, f = d - g.b, l = new ue(g.a, g.b), zv(l, h.g, h.f), g.a -= l.a, g.b -= l.b, a = s + g.a, d = f + g.b, r = ET(t), p2(r, s), m2(r, f), w2(r, a), g2(r, d), IUe(e, h))); } function Uw(e, n) { var t, i, r, c, s; @@ -26580,7 +26670,7 @@ function WDn() { var t, i, r, c, s, f, h, l, a, d; return t = ve(me(y(e, (te(), hg)))), f = ve(me(y(n, hg))), i = u(y(e, Qf), 12), h = u(y(n, Qf), 12), r = u(y(e, Vo), 12), l = u(y(n, Vo), 12), a = !!i && i == h, d = !!r && r == l, !t && !f ? new NK(u(A(new x(e.j)), 12).p == u(A(new x(n.j)), 12).p, a, d) : (c = (!ve(me(y(e, hg))) || ve(me(y(e, tE)))) && (!ve(me(y(n, hg))) || ve(me(y(n, tE)))), s = (!ve(me(y(e, hg))) || !ve(me(y(e, tE)))) && (!ve(me(y(n, hg))) || !ve(me(y(n, tE)))), new NK(a && c || d && s, a, d)); } - function IUe(e) { + function CUe(e) { var n, t, i, r, c, s, f, h; for (i = 0, t = 0, h = new Dt(), n = 0, f = new x(e.n); f.a < f.c.c.length; ) s = u(A(f), 208), s.c.c.length == 0 ? ti(h, s, h.c.b, h.c) : (i = m.Math.max(i, s.d), t += s.a + (n > 0 ? e.i : 0)), ++n; @@ -26588,17 +26678,17 @@ function WDn() { r = u(A(c), 26), e.p = m.Math.min(e.p, r.g), e.g = m.Math.max(e.g, r.g), e.f = m.Math.max(e.f, r.f), e.o = m.Math.min(e.o, r.f), e.e += r.f + e.i; e.a = e.e / e.b.c.length - e.i * ((e.b.c.length - 1) / e.b.c.length), kee(e.j); } - function CUe(e) { + function PUe(e) { var n, t, i, r; - return (e.Db & 64) != 0 ? iF(e) : (n = new Us(kue), i = e.k, i ? it(it((n.a += ' "', n), i), '"') : (!e.n && (e.n = new ne(vc, e, 1, 7)), e.n.i > 0 && (r = (!e.n && (e.n = new ne(vc, e, 1, 7)), u(F(e.n, 0), 157)).a, !r || it(it((n.a += ' "', n), r), '"'))), t = (!e.b && (e.b = new Qe(Cn, e, 4, 7)), !(e.b.i <= 1 && (!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c.i <= 1))), t ? n.a += " [" : n.a += " ", it(n, BX(new gO(), new kn(e.b))), t && (n.a += "]"), n.a += BB, t && (n.a += "["), it(n, BX(new gO(), new kn(e.c))), t && (n.a += "]"), n.a); + return (e.Db & 64) != 0 ? iF(e) : (n = new Us(kue), i = e.k, i ? it(it((n.a += ' "', n), i), '"') : (!e.n && (e.n = new ne(vc, e, 1, 7)), e.n.i > 0 && (r = (!e.n && (e.n = new ne(vc, e, 1, 7)), u(F(e.n, 0), 157)).a, !r || it(it((n.a += ' "', n), r), '"'))), t = (!e.b && (e.b = new Qe(Cn, e, 4, 7)), !(e.b.i <= 1 && (!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c.i <= 1))), t ? n.a += " [" : n.a += " ", it(n, _X(new gO(), new kn(e.b))), t && (n.a += "]"), n.a += __, t && (n.a += "["), it(n, _X(new gO(), new kn(e.c))), t && (n.a += "]"), n.a); } function $In(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke; - for (V = e.c, X = n.c, t = dc(V.a, e, 0), i = dc(X.a, n, 0), R = u(ib(e, (Cr(), bs)).Jc().Pb(), 12), Le = u(ib(e, yu).Jc().Pb(), 12), J = u(ib(n, bs).Jc().Pb(), 12), Ke = u(ib(n, yu).Jc().Pb(), 12), M = _h(R.e), we = _h(Le.g), D = _h(J.e), De = _h(Ke.g), R1(e, i, X), s = D, a = 0, v = s.length; a < v; ++a) + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke; + for (V = e.c, X = n.c, t = dc(V.a, e, 0), i = dc(X.a, n, 0), R = u(ib(e, (Cr(), bs)).Jc().Pb(), 12), Le = u(ib(e, yu).Jc().Pb(), 12), J = u(ib(n, bs).Jc().Pb(), 12), Ke = u(ib(n, yu).Jc().Pb(), 12), T = Bh(R.e), we = Bh(Le.g), D = Bh(J.e), De = Bh(Ke.g), R1(e, i, X), s = D, a = 0, v = s.length; a < v; ++a) r = s[a], Ki(r, R); for (f = De, d = 0, j = f.length; d < j; ++d) r = f[d], br(r, Le); - for (R1(n, t, V), h = M, g = 0, E = h.length; g < E; ++g) + for (R1(n, t, V), h = T, g = 0, E = h.length; g < E; ++g) r = h[g], Ki(r, J); for (c = we, l = 0, p = c.length; l < p; ++l) r = c[l], br(r, Ke); @@ -26606,7 +26696,7 @@ function WDn() { function MIn(e) { var n, t, i, r, c, s, f; for (s = u(re(e, (s2(), ap)), 26), i = new kn((!s.e && (s.e = new Qe(xi, s, 7, 4)), s.e)); i.e != i.i.gc(); ) - t = u(En(i), 85), f = new ue(u(F((!t.a && (t.a = new ne(Wt, t, 6, 6)), t.a), 0), 170).j, u(F((!t.a && (t.a = new ne(Wt, t, 6, 6)), t.a), 0), 170).k), c = new ue(u(F((!t.a && (t.a = new ne(Wt, t, 6, 6)), t.a), 0), 170).b, u(F((!t.a && (t.a = new ne(Wt, t, 6, 6)), t.a), 0), 170).c), r = new ue(c.a - f.a, c.b - f.b), n = m.Math.atan2(r.b, r.a), u(F((!t.c && (t.c = new Qe(Cn, t, 5, 8)), t.c), 0), 84).of((_1(), vq), n); + t = u(En(i), 85), f = new ue(u(F((!t.a && (t.a = new ne(Wt, t, 6, 6)), t.a), 0), 170).j, u(F((!t.a && (t.a = new ne(Wt, t, 6, 6)), t.a), 0), 170).k), c = new ue(u(F((!t.a && (t.a = new ne(Wt, t, 6, 6)), t.a), 0), 170).b, u(F((!t.a && (t.a = new ne(Wt, t, 6, 6)), t.a), 0), 170).c), r = new ue(c.a - f.a, c.b - f.b), n = m.Math.atan2(r.b, r.a), u(F((!t.c && (t.c = new Qe(Cn, t, 5, 8)), t.c), 0), 84).of((B1(), vq), n); } function TIn(e, n) { var t, i, r, c, s, f, h, l, a; @@ -26614,7 +26704,7 @@ function WDn() { t = u(En(r), 26), Gf(t, (gh(), kE)) && sn(f.c, t); for (c = new x(f); c.a < c.c.c.length; ) t = u(A(c), 26), K$(a, t); - for (ze(), Di(f, new mve()), s = new x(f); s.a < s.c.c.length; ) + for (ze(), Di(f, new vve()), s = new x(f); s.a < s.c.c.length; ) t = u(A(s), 26), l = u(re(t, (gh(), kE)), 15).a, l = m.Math.min(l, a.i), e9(a, l, t); for (h = 0, i = new kn(a); i.e != i.i.gc(); ) t = u(En(i), 26), Pt(t, (gh(), e1e), ie(h)), ++h; @@ -26624,29 +26714,29 @@ function WDn() { var t, i, r, c, s, f, h, l, a, d, g, p, v, j; for (f = W(Wn, lt, 30, n.b.c.length, 15, 1), l = W(gG, ce, 249, n.b.c.length, 0, 1), h = W(xl, Wa, 9, n.b.c.length, 0, 1), d = e.a, g = 0, p = d.length; g < p; ++g) { for (a = d[g], j = 0, s = new x(a.e); s.a < s.c.c.length; ) - r = u(A(s), 9), i = AX(r.c), ++f[i], v = _(H(y(n, (ae(), Mf)))), f[i] > 0 && h[i] && (v = i2(e.b, h[i], r)), j = m.Math.max(j, r.c.c.b + v); + r = u(A(s), 9), i = AX(r.c), ++f[i], v = B(H(y(n, (ae(), Mf)))), f[i] > 0 && h[i] && (v = i2(e.b, h[i], r)), j = m.Math.max(j, r.c.c.b + v); for (c = new x(a.e); c.a < c.c.c.length; ) r = u(A(c), 9), r.n.b = j + r.d.d, t = r.c, t.c.b = j + r.d.d + r.o.b + r.d.a, l[dc(t.b.b, t, 0)] = r.k, h[dc(t.b.b, t, 0)] = r; } } function Zte(e, n, t) { var i, r, c, s, f, h, l, a; - return m.Math.abs(n.s - n.c) < Vh || m.Math.abs(t.s - t.c) < Vh ? 0 : (i = RHe(e, n.j, t.e), r = RHe(e, t.j, n.e), c = i == -1 || r == -1, s = 0, c ? (i == -1 && (new Dd((Jf(), ud), t, n, 1), ++s), r == -1 && (new Dd((Jf(), ud), n, t, 1), ++s)) : (f = j2(n.j, t.s, t.c), f += j2(t.e, n.s, n.c), h = j2(t.j, n.s, n.c), h += j2(n.e, t.s, t.c), l = i + 16 * f, a = r + 16 * h, l < a ? new Dd((Jf(), jg), n, t, a - l) : l > a ? new Dd((Jf(), jg), t, n, l - a) : l > 0 && a > 0 && (new Dd((Jf(), jg), n, t, 0), new Dd(jg, t, n, 0))), s); + return m.Math.abs(n.s - n.c) < Vh || m.Math.abs(t.s - t.c) < Vh ? 0 : (i = _He(e, n.j, t.e), r = _He(e, t.j, n.e), c = i == -1 || r == -1, s = 0, c ? (i == -1 && (new Dd((Jf(), ud), t, n, 1), ++s), r == -1 && (new Dd((Jf(), ud), n, t, 1), ++s)) : (f = j2(n.j, t.s, t.c), f += j2(t.e, n.s, n.c), h = j2(t.j, n.s, n.c), h += j2(n.e, t.s, t.c), l = i + 16 * f, a = r + 16 * h, l < a ? new Dd((Jf(), jg), n, t, a - l) : l > a ? new Dd((Jf(), jg), t, n, l - a) : l > 0 && a > 0 && (new Dd((Jf(), jg), n, t, 0), new Dd(jg, t, n, 0))), s); } function IIn(e, n, t) { var i, r, c; for (e.a = new le(), c = Nn(n.b, 0); c.b != c.d.c; ) { for (r = u(Ln(c), 40); u(y(r, (Ac(), rl)), 15).a > e.a.c.length - 1; ) - he(e.a, new Ar(_2, xce)); - i = u(y(r, rl), 15).a, t == (Mi(), Qr) || t == nc ? (r.e.a < _(H(u(pe(e.a, i), 49).a)) && UP(u(pe(e.a, i), 49), r.e.a), r.e.a + r.f.a > _(H(u(pe(e.a, i), 49).b)) && zP(u(pe(e.a, i), 49), r.e.a + r.f.a)) : (r.e.b < _(H(u(pe(e.a, i), 49).a)) && UP(u(pe(e.a, i), 49), r.e.b), r.e.b + r.f.b > _(H(u(pe(e.a, i), 49).b)) && zP(u(pe(e.a, i), 49), r.e.b + r.f.b)); + he(e.a, new Ar(B2, xce)); + i = u(y(r, rl), 15).a, t == (Mi(), Qr) || t == nc ? (r.e.a < B(H(u(pe(e.a, i), 49).a)) && UP(u(pe(e.a, i), 49), r.e.a), r.e.a + r.f.a > B(H(u(pe(e.a, i), 49).b)) && zP(u(pe(e.a, i), 49), r.e.a + r.f.a)) : (r.e.b < B(H(u(pe(e.a, i), 49).a)) && UP(u(pe(e.a, i), 49), r.e.b), r.e.b + r.f.b > B(H(u(pe(e.a, i), 49).b)) && zP(u(pe(e.a, i), 49), r.e.b + r.f.b)); } } - function PUe(e, n, t, i) { + function OUe(e, n, t, i) { var r, c, s, f, h, l, a; if (c = CM(i), f = ve(me(y(i, (ae(), Hhe)))), (f || ve(me(y(e, eC)))) && !e2(u(y(e, oi), 102))) r = j3(c), h = Rte(e, t, t == (Cr(), yu) ? r : A7(r)); else - switch (h = new Uc(), ac(h, e), n ? (a = h.n, a.a = n.a - e.n.a, a.b = n.b - e.n.b, OJe(a, 0, 0, e.o.a, e.o.b), Oi(h, Zqe(h, c))) : (r = j3(c), Oi(h, t == (Cr(), yu) ? r : A7(r))), s = u(y(i, (te(), ou)), 22), l = h.j, c.g) { + switch (h = new Uc(), ac(h, e), n ? (a = h.n, a.a = n.a - e.n.a, a.b = n.b - e.n.b, LJe(a, 0, 0, e.o.a, e.o.b), Oi(h, eUe(h, c))) : (r = j3(c), Oi(h, t == (Cr(), yu) ? r : A7(r))), s = u(y(i, (te(), ou)), 22), l = h.j, c.g) { case 2: case 1: (l == (be(), ln) || l == Mn) && s.Ec((Pr(), Z2)); @@ -26657,7 +26747,7 @@ function WDn() { } return h; } - function OUe(e, n) { + function LUe(e, n) { var t, i, r, c, s, f; for (s = new Tw(new Ub(e.f.b).a); s.b; ) { if (c = v2(s), r = u(c.jd(), 591), n == 1) { @@ -26692,12 +26782,12 @@ function WDn() { h = u(A(l), 9), t && (a += ZZ(h, t, d.c)), a += h.d.d, h.n.b = a, a += h.o.b + h.d.a, t = h; n.Ug(); } - function LUe(e) { - ew(e, new sb(Yb(Kb(Qb(Vb(new S0(), vb), "ELK SPOrE Compaction"), "ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."), new Ive()))), se(e, vb, H_, ge(RC)), se(e, vb, uue, ge(qq)), se(e, vb, sue, ge(Hq)), se(e, vb, q_, ge(S1e)), se(e, vb, U_, ge(Gq)), se(e, vb, Qw, T1e), se(e, vb, Vw, 8), se(e, vb, z_, ge(Bun)), se(e, vb, oue, ge($1e)), se(e, vb, fue, ge(M1e)), se(e, vb, Sj, (en(), !1)); + function DUe(e) { + ew(e, new sb(Yb(Kb(Qb(Vb(new S0(), vb), "ELK SPOrE Compaction"), "ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."), new Cve()))), se(e, vb, HB, ge(RC)), se(e, vb, uue, ge(qq)), se(e, vb, sue, ge(Hq)), se(e, vb, qB, ge(S1e)), se(e, vb, UB, ge(Gq)), se(e, vb, Qw, T1e), se(e, vb, Vw, 8), se(e, vb, zB, ge(Bun)), se(e, vb, oue, ge($1e)), se(e, vb, fue, ge(M1e)), se(e, vb, Sj, (en(), !1)); } function PIn(e, n) { var t, i, r, c; - for (T5n(n.b.j), fi(du(new Ge(null, new He(n.d, 16)), new zpe()), new Wpe()), c = new x(n.d); c.a < c.c.c.length; ) { + for (T5n(n.b.j), fi(du(new Ge(null, new He(n.d, 16)), new Wpe()), new Xpe()), c = new x(n.d); c.a < c.c.c.length; ) { switch (r = u(A(c), 107), r.e.g) { case 0: t = u(pe(r.j, 0), 113).d.j, jz(r, u(Ls(t3(u(Mt(r.k, t), 16).Mc(), K2)), 113)), yz(r, u(Ls(dw(u(Mt(r.k, t), 16).Mc(), K2)), 113)); @@ -26720,7 +26810,7 @@ function WDn() { } function LR(e, n, t) { var i, r, c, s, f, h, l, a; - return i = e.a.o == (uh(), Ah) ? ii : Ri, f = uUe(e, new uxe(n, t)), !f.a && f.c ? (rt(e.d, f), i) : f.a ? (r = f.a.c, h = f.a.d, t ? (l = e.a.c == (Rh(), Nb) ? h : r, c = e.a.c == Nb ? r : h, s = e.a.g[c.i.p], a = _(e.a.p[s.p]) + _(e.a.d[c.i.p]) + c.n.b + c.a.b - _(e.a.d[l.i.p]) - l.n.b - l.a.b) : (l = e.a.c == (Rh(), e1) ? h : r, c = e.a.c == e1 ? r : h, a = _(e.a.p[e.a.g[c.i.p].p]) + _(e.a.d[c.i.p]) + c.n.b + c.a.b - _(e.a.d[l.i.p]) - l.n.b - l.a.b), e.a.n[e.a.g[r.i.p].p] = (en(), !0), e.a.n[e.a.g[h.i.p].p] = !0, a) : i; + return i = e.a.o == (uh(), Ah) ? ii : Ri, f = sUe(e, new sxe(n, t)), !f.a && f.c ? (rt(e.d, f), i) : f.a ? (r = f.a.c, h = f.a.d, t ? (l = e.a.c == (Rh(), Nb) ? h : r, c = e.a.c == Nb ? r : h, s = e.a.g[c.i.p], a = B(e.a.p[s.p]) + B(e.a.d[c.i.p]) + c.n.b + c.a.b - B(e.a.d[l.i.p]) - l.n.b - l.a.b) : (l = e.a.c == (Rh(), e1) ? h : r, c = e.a.c == e1 ? r : h, a = B(e.a.p[e.a.g[c.i.p].p]) + B(e.a.d[c.i.p]) + c.n.b + c.a.b - B(e.a.d[l.i.p]) - l.n.b - l.a.b), e.a.n[e.a.g[r.i.p].p] = (en(), !0), e.a.n[e.a.g[h.i.p].p] = !0, a) : i; } function OIn(e, n, t, i) { var r, c, s, f, h, l, a, d; @@ -26760,7 +26850,7 @@ function WDn() { bee(e, n, t) || Dn(e, (Sr(), u(n, 69).vk() ? u(t, 75) : dl(n, t))); } } - function DUe(e, n) { + function NUe(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v, j; for (d = 0; d < n.length; d++) { for (f = e.Jc(); f.Ob(); ) @@ -26782,7 +26872,7 @@ function WDn() { } function LIn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p; - for (t.Tg(LXe, 1), d = n.a, a = d.c.length, e.c = new le(), e.d = W(zu, zf, 30, a, 16, 1), e.a = W(zu, zf, 30, a, 16, 1), e.b = new le(), s = 0, l = new x(d); l.a < l.c.c.length; ) + for (t.Tg(DXe, 1), d = n.a, a = d.c.length, e.c = new le(), e.d = W(zu, zf, 30, a, 16, 1), e.a = W(zu, zf, 30, a, 16, 1), e.b = new le(), s = 0, l = new x(d); l.a < l.c.c.length; ) h = u(A(l), 9), h.p = s, yw(bi(h)) && he(e.c, h), ++s; for (p = new x(e.c); p.a < p.c.c.length; ) g = u(A(p), 9), yne(e, g); @@ -26794,7 +26884,7 @@ function WDn() { } function DIn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p; - for (t.Tg(LXe, 1), e.c = n, d = n.a, a = d.c.length, e.d = new le(), e.e = W(zu, zf, 30, a, 16, 1), e.a = W(zu, zf, 30, a, 16, 1), e.b = new le(), s = 0, l = new x(d); l.a < l.c.c.length; ) + for (t.Tg(DXe, 1), e.c = n, d = n.a, a = d.c.length, e.d = new le(), e.e = W(zu, zf, 30, a, 16, 1), e.a = W(zu, zf, 30, a, 16, 1), e.b = new le(), s = 0, l = new x(d); l.a < l.c.c.length; ) h = u(A(l), 9), h.p = s, yw(bi(h)) && he(e.d, h), ++s; for (p = new x(e.d); p.a < p.c.c.length; ) g = u(A(p), 9), Ite(e, g); @@ -26808,19 +26898,19 @@ function WDn() { var t, i, r, c, s, f, h, l, a, d, g, p, v, j; if (v = u(rn(e.d, n), 149), !v) throw $(new Lh("Edge did not exist in input.")); - return yR(e, n), d = Gv(v), s = K8((!n.a && (n.a = new ne(Wt, n, 6, 6)), n.a)), h = !s, h && (j = new kd(), i = new GIe(e, d, j, n), Xan((!n.a && (n.a = new ne(Wt, n, 6, 6)), n.a), i), gf(v, lJ, null), gf(v, lJ, j)), c = Gf(n, (tt(), gp)), c && (g = u(re(n, gp), 78), f = !g || mIe(g), l = !f, l && (p = new kd(), r = new BTe(e, n, p), fr(g, r), gf(v, "junctionPoints", p))), t = sK(e, u(rn(e.e, n), 26)), a = t == (Dv(), WC), a && iv(v, "container", mw(n).k), null; + return yR(e, n), d = Gv(v), s = K8((!n.a && (n.a = new ne(Wt, n, 6, 6)), n.a)), h = !s, h && (j = new kd(), i = new HIe(e, d, j, n), Xan((!n.a && (n.a = new ne(Wt, n, 6, 6)), n.a), i), gf(v, lJ, null), gf(v, lJ, j)), c = Gf(n, (tt(), gp)), c && (g = u(re(n, gp), 78), f = !g || vIe(g), l = !f, l && (p = new kd(), r = new BTe(e, n, p), fr(g, r), gf(v, "junctionPoints", p))), t = sK(e, u(rn(e.e, n), 26)), a = t == (Dv(), WC), a && iv(v, "container", mw(n).k), null; } function FIn(e, n) { var t, i, r, c, s, f, h; - for (e.b = _(H(y(n, (ae(), mg)))), e.c = _(H(y(n, rd))), e.d = u(y(n, mH), 349), e.a = u(y(n, KI), 283), D8n(n), f = u(fs(mt(mt(cc(cc(new Ge(null, new He(n.b, 16)), new sge()), new oge()), new fge()), new hge()), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), r = f.Jc(); r.Ob(); ) - t = u(r.Pb(), 17), s = u(y(t, (te(), h0)), 16), s.Ic(new o8e(e)), K(t, h0, null); + for (e.b = B(H(y(n, (ae(), mg)))), e.c = B(H(y(n, rd))), e.d = u(y(n, mH), 349), e.a = u(y(n, KI), 283), D8n(n), f = u(fs(mt(mt(cc(cc(new Ge(null, new He(n.b, 16)), new oge()), new fge()), new hge()), new lge()), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), r = f.Jc(); r.Ob(); ) + t = u(r.Pb(), 17), s = u(y(t, (te(), h0)), 16), s.Ic(new f8e(e)), K(t, h0, null); for (i = f.Jc(); i.Ob(); ) t = u(i.Pb(), 17), h = u(y(t, (te(), Ffe)), 17), c = u(y(t, rp), 16), ZOn(e, c, h), K(t, rp, null); } function DR(e, n) { var t, i, r, c, s, f, h; if (e.a) { - if (f = e.a.ve(), h = null, f != null ? n.a += "" + f : (s = e.a.kk(), s != null && (c = Nh(s, Fu(91)), c != -1 ? (h = (bn(c, s.length + 1), s.substr(c)), n.a += "" + Go(s == null ? Bu : (Ze(s), s), 0, c)) : n.a += "" + s)), e.d && e.d.i != 0) { + if (f = e.a.ve(), h = null, f != null ? n.a += "" + f : (s = e.a.kk(), s != null && (c = Nh(s, Fu(91)), c != -1 ? (h = (bn(c, s.length + 1), s.substr(c)), n.a += "" + Go(s == null ? _u : (Ze(s), s), 0, c)) : n.a += "" + s)), e.d && e.d.i != 0) { for (r = !0, n.a += "<", i = new kn(e.d); i.e != i.i.gc(); ) t = u(En(i), 87), r ? r = !1 : n.a += mu, DR(t, n); n.a += ">"; @@ -26831,31 +26921,31 @@ function WDn() { function RIn(e) { e.b = null, e.a = null, e.o = null, e.q = null, e.v = null, e.w = null, e.B = null, e.p = null, e.Q = null, e.R = null, e.S = null, e.T = null, e.U = null, e.V = null, e.W = null, e.bb = null, e.eb = null, e.ab = null, e.H = null, e.db = null, e.c = null, e.d = null, e.f = null, e.n = null, e.r = null, e.s = null, e.u = null, e.G = null, e.J = null, e.e = null, e.j = null, e.i = null, e.g = null, e.k = null, e.t = null, e.F = null, e.I = null, e.L = null, e.M = null, e.O = null, e.P = null, e.$ = null, e.N = null, e.Z = null, e.cb = null, e.K = null, e.D = null, e.A = null, e.C = null, e._ = null, e.fb = null, e.X = null, e.Y = null, e.gb = !1, e.hb = !1; } - function BIn(e) { + function _In(e) { var n, t, i, r; - if (i = XR((!e.c && (e.c = _y(Cc(e.f))), e.c), 0), e.e == 0 || e.a == 0 && e.f != -1 && e.e < 0) + if (i = XR((!e.c && (e.c = By(Cc(e.f))), e.c), 0), e.e == 0 || e.a == 0 && e.f != -1 && e.e < 0) return i; if (n = NY(e) < 0 ? 1 : 0, t = e.e, r = (i.length + 1 + m.Math.abs(dr(e.e)), new Rp()), n == 1 && (r.a += "-"), e.e > 0) if (t -= i.length - n, t >= 0) { for (r.a += "0."; t > o0.length; t -= o0.length) - kSe(r, o0); - zMe(r, o0, dr(t)), it(r, (bn(n, i.length + 1), i.substr(n))); + ySe(r, o0); + WMe(r, o0, dr(t)), it(r, (bn(n, i.length + 1), i.substr(n))); } else t = n - t, it(r, Go(i, n, dr(t))), r.a += ".", it(r, SV(i, dr(t))); else { for (it(r, (bn(n, i.length + 1), i.substr(n))); t < -o0.length; t += o0.length) - kSe(r, o0); - zMe(r, o0, dr(-t)); + ySe(r, o0); + WMe(r, o0, dr(-t)); } return r.a; } function NR(e) { var n, t, i, r, c, s, f, h, l; - return !(e.k != (cn(), si) || e.j.c.length <= 1 || (c = u(y(e, (ae(), oi)), 102), c == (Ui(), Vc)) || (r = (Dw(), (e.q ? e.q : (ze(), ze(), El))._b(Lb) ? i = u(y(e, Lb), 203) : i = u(y(_i(e), Nk), 203), i), r == aC) || !(r == fp || r == op) && (s = _(H(Ow(e, Fk))), n = u(y(e, fE), 140), !n && (n = new yK(s, s, s, s)), l = wc(e, (be(), an)), h = n.d + n.a + (l.gc() - 1) * s, h > e.o.b || (t = wc(e, gn), f = n.d + n.a + (t.gc() - 1) * s, f > e.o.b))); + return !(e.k != (cn(), si) || e.j.c.length <= 1 || (c = u(y(e, (ae(), oi)), 102), c == (Ui(), Vc)) || (r = (Dw(), (e.q ? e.q : (ze(), ze(), El))._b(Lb) ? i = u(y(e, Lb), 203) : i = u(y(Bi(e), Nk), 203), i), r == aC) || !(r == fp || r == op) && (s = B(H(Ow(e, Fk))), n = u(y(e, fE), 140), !n && (n = new yK(s, s, s, s)), l = wc(e, (be(), an)), h = n.d + n.a + (l.gc() - 1) * s, h > e.o.b || (t = wc(e, gn), f = n.d + n.a + (t.gc() - 1) * s, f > e.o.b))); } - function _In(e, n) { + function BIn(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E; - n.Tg("Orthogonal edge routing", 1), l = _(H(y(e, (ae(), kg)))), t = _(H(y(e, mg))), i = _(H(y(e, rd))), g = new sD(0, t), E = 0, s = new Vi(e.b, 0), f = null, a = null, h = null, d = null; + n.Tg("Orthogonal edge routing", 1), l = B(H(y(e, (ae(), kg)))), t = B(H(y(e, mg))), i = B(H(y(e, rd))), g = new sD(0, t), E = 0, s = new Vi(e.b, 0), f = null, a = null, h = null, d = null; do a = s.b < s.d.gc() ? (An(s.b < s.d.gc()), u(s.d.Xb(s.c = s.b++), 25)) : null, d = a ? a.a : null, f && (nie(f, E), E += f.c.a), j = f ? E + i : E, v = uie(g, e, h, d, j), r = !f || wx(h, (AT(), bE)), c = !a || wx(d, (AT(), bE)), v > 0 ? (p = (v - 1) * t, f && (p += i), a && (p += i), p < l && !r && !c && (p = l), E += p) : !r && !c && (E += l), f = a, h = d; while (a); @@ -26866,10 +26956,10 @@ function WDn() { if (a = null, e.d && (a = u(nu(e.d, n), 143)), !a) { if (c = e.a.si(), d = c.i, !e.d || G4(e.d) != d) { for (h = new Tn(), e.d && G6(h, e.d), l = h.f.c + h.i.c, f = l; f < d; ++f) - i = u(F(c, f), 143), r = _a(e.e, i).ve(), t = u(r == null ? Ru(h.f, null, i) : nb(h.i, r, i), 143), t && t != i && (r == null ? Ru(h.f, null, t) : nb(h.i, r, t)); + i = u(F(c, f), 143), r = Ba(e.e, i).ve(), t = u(r == null ? Ru(h.f, null, i) : nb(h.i, r, i), 143), t && t != i && (r == null ? Ru(h.f, null, t) : nb(h.i, r, t)); if (h.f.c + h.i.c != d) for (s = 0; s < l; ++s) - i = u(F(c, s), 143), r = _a(e.e, i).ve(), t = u(r == null ? Ru(h.f, null, i) : nb(h.i, r, i), 143), t && t != i && (r == null ? Ru(h.f, null, t) : nb(h.i, r, t)); + i = u(F(c, s), 143), r = Ba(e.e, i).ve(), t = u(r == null ? Ru(h.f, null, i) : nb(h.i, r, i), 143), t && t != i && (r == null ? Ru(h.f, null, t) : nb(h.i, r, t)); e.d = h; } a = u(nu(e.d, n), 143); @@ -26878,38 +26968,38 @@ function WDn() { } function FR(e, n, t, i, r, c, s) { var f, h, l, a, d, g, p; - return d = ve(me(y(n, (ae(), qhe)))), g = null, c == (Cr(), bs) && i.c.i == t ? g = i.c : c == yu && i.d.i == t && (g = i.d), l = s, !l || !d || g ? (a = (be(), mc), g ? a = g.j : e2(u(y(t, oi), 102)) && (a = c == bs ? an : gn), h = JIn(e, n, t, c, a, i), f = XD((_i(t), i)), c == bs ? (br(f, u(pe(h.j, 0), 12)), Ki(f, r)) : (br(f, r), Ki(f, u(pe(h.j, 0), 12))), l = new IRe(i, f, h, u(y(h, (te(), $t)), 12), c, !g)) : (he(l.e, i), p = m.Math.max(_(H(y(l.d, Ya))), _(H(y(i, Ya)))), K(l.d, Ya, p)), Je(e.a, i, new Fx(l.d, n, c)), l; + return d = ve(me(y(n, (ae(), qhe)))), g = null, c == (Cr(), bs) && i.c.i == t ? g = i.c : c == yu && i.d.i == t && (g = i.d), l = s, !l || !d || g ? (a = (be(), mc), g ? a = g.j : e2(u(y(t, oi), 102)) && (a = c == bs ? an : gn), h = JIn(e, n, t, c, a, i), f = XD((Bi(t), i)), c == bs ? (br(f, u(pe(h.j, 0), 12)), Ki(f, r)) : (br(f, r), Ki(f, u(pe(h.j, 0), 12))), l = new CRe(i, f, h, u(y(h, (te(), $t)), 12), c, !g)) : (he(l.e, i), p = m.Math.max(B(H(y(l.d, Ya))), B(H(y(i, Ya)))), K(l.d, Ya, p)), Je(e.a, i, new Fx(l.d, n, c)), l; } function RR() { RR = G; var e; - P0e = new kje(), Ion = W(ke, oe, 2, 0, 6, 1), Ton = Bh(m3(33, 58), m3(1, 26)), Son = Bh(m3(97, 122), m3(65, 90)), M0e = m3(48, 57), $on = Bh(Ton, 0), Mon = Bh(Son, M0e), T0e = Bh(Bh(0, m3(1, 6)), m3(33, 38)), S0e = Bh(Bh(M0e, m3(65, 70)), m3(97, 102)), Con = Bh($on, qM("-_.!~*'()")), Pon = Bh(Mon, FM("-_.!~*'()")), qM(LVe), FM(LVe), Bh(Con, qM(";:@&=+$,")), Bh(Pon, FM(";:@&=+$,")), I0e = qM(":/?#"), C0e = FM(":/?#"), E8 = qM("/?#"), A8 = FM("/?#"), e = new vi(), e.a.yc("jar", e), e.a.yc("zip", e), e.a.yc("archive", e), fP = (ze(), new Bm(e)); + P0e = new yje(), Con = W(ye, fe, 2, 0, 6, 1), Son = _h(m3(33, 58), m3(1, 26)), Ion = _h(m3(97, 122), m3(65, 90)), M0e = m3(48, 57), Mon = _h(Son, 0), Ton = _h(Ion, M0e), T0e = _h(_h(0, m3(1, 6)), m3(33, 38)), S0e = _h(_h(M0e, m3(65, 70)), m3(97, 102)), Pon = _h(Mon, qM("-_.!~*'()")), Oon = _h(Ton, FM("-_.!~*'()")), qM(DVe), FM(DVe), _h(Pon, qM(";:@&=+$,")), _h(Oon, FM(";:@&=+$,")), I0e = qM(":/?#"), C0e = FM(":/?#"), E8 = qM("/?#"), A8 = FM("/?#"), e = new vi(), e.a.yc("jar", e), e.a.yc("zip", e), e.a.yc("archive", e), fP = (ze(), new _m(e)); } function JIn(e, n, t, i, r, c) { var s, f, h, l, a, d; - return s = null, l = i == (Cr(), bs) ? c.c : c.d, h = CM(n), l.i == t ? (s = u(rn(e.b, l), 9), s || (s = nj(l, u(y(t, (ae(), oi)), 102), r, qTn(l), null, l.n, l.o, h, n), K(s, (te(), $t), l), ht(e.b, l, s))) : (s = nj((a = new TP(), d = _(H(y(n, (ae(), Mf)))) / 2, p7(a, wg, d), a), u(y(t, oi), 102), r, i == bs ? -1 : 1, null, new er(), new ue(0, 0), h, n), f = B7n(s, t, i), K(s, (te(), $t), f), ht(e.b, f, s)), u(y(n, (te(), ou)), 22).Ec((Pr(), So)), e2(u(y(n, (ae(), oi)), 102)) ? K(n, oi, (Ui(), v4)) : K(n, oi, (Ui(), Sh)), s; + return s = null, l = i == (Cr(), bs) ? c.c : c.d, h = CM(n), l.i == t ? (s = u(rn(e.b, l), 9), s || (s = nj(l, u(y(t, (ae(), oi)), 102), r, qTn(l), null, l.n, l.o, h, n), K(s, (te(), $t), l), ht(e.b, l, s))) : (s = nj((a = new TP(), d = B(H(y(n, (ae(), Mf)))) / 2, p7(a, wg, d), a), u(y(t, oi), 102), r, i == bs ? -1 : 1, null, new er(), new ue(0, 0), h, n), f = _7n(s, t, i), K(s, (te(), $t), f), ht(e.b, f, s)), u(y(n, (te(), ou)), 22).Ec((Pr(), So)), e2(u(y(n, (ae(), oi)), 102)) ? K(n, oi, (Ui(), v4)) : K(n, oi, (Ui(), Sh)), s; } function c5(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v; f = 0, v = 0, h = j$(e.g, e.g.length), c = e.e, s = e.j, i = e.b, r = e.c; do { for (p = 0, a = new x(e.q); a.a < a.c.c.length; ) - l = u(A(a), 9), g = nze(e, l), t = !0, (e.r == (G1(), hE) || e.r == lE) && (t = ve(me(g.b))), u(g.a, 15).a < 0 && t ? (++p, h = j$(e.g, e.g.length), e.e = e.e + u(g.a, 15).a, v += c - e.e, c = e.e + u(g.a, 15).a, s = e.j, i = Nd(e.b), r = Nd(e.c)) : (e.g = j$(h, h.length), e.e = c, e.b = (Jn(i), i ? new os(i) : tv(new x(i))), e.c = (Jn(r), r ? new os(r) : tv(new x(r))), e.j = s); + l = u(A(a), 9), g = tze(e, l), t = !0, (e.r == (G1(), hE) || e.r == lE) && (t = ve(me(g.b))), u(g.a, 15).a < 0 && t ? (++p, h = j$(e.g, e.g.length), e.e = e.e + u(g.a, 15).a, v += c - e.e, c = e.e + u(g.a, 15).a, s = e.j, i = Nd(e.b), r = Nd(e.c)) : (e.g = j$(h, h.length), e.e = c, e.b = (Jn(i), i ? new os(i) : tv(new x(i))), e.c = (Jn(r), r ? new os(r) : tv(new x(r))), e.j = s); ++f, d = p != 0 && ve(me(n.Kb(new Ar(ie(v), ie(f))))); } while (d); } function GIn(e, n, t, i) { - var r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le; - return s = e.f, g = n.f, f = s == (m9(), bm) || s == r8, p = g == bm || g == r8, h = s == bp || s == c8, v = g == bp || g == c8, l = s == bp || s == bm, j = g == bp || g == bm, f && p ? e.f == r8 ? e : n : h && v ? e.f == c8 ? e : n : l && j ? (s == bp ? (d = e, a = n) : (d = n, a = e), c = (E = t.j + t.f, M = d.e + i.f, D = m.Math.max(E, M), R = D - m.Math.min(t.j, d.e), J = d.d + i.g - t.i, J * R), r = (V = t.i + t.g, X = a.d + i.g, we = m.Math.max(V, X), De = we - m.Math.min(t.i, a.d), Le = a.e + i.f - t.j, De * Le), c <= r ? e.f == bp ? e : n : e.f == bm ? e : n) : e; + var r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le; + return s = e.f, g = n.f, f = s == (m9(), bm) || s == r8, p = g == bm || g == r8, h = s == bp || s == c8, v = g == bp || g == c8, l = s == bp || s == bm, j = g == bp || g == bm, f && p ? e.f == r8 ? e : n : h && v ? e.f == c8 ? e : n : l && j ? (s == bp ? (d = e, a = n) : (d = n, a = e), c = (E = t.j + t.f, T = d.e + i.f, D = m.Math.max(E, T), R = D - m.Math.min(t.j, d.e), J = d.d + i.g - t.i, J * R), r = (V = t.i + t.g, X = a.d + i.g, we = m.Math.max(V, X), De = we - m.Math.min(t.i, a.d), Le = a.e + i.f - t.j, De * Le), c <= r ? e.f == bp ? e : n : e.f == bm ? e : n) : e; } - function NUe(e, n) { + function FUe(e, n) { var t, i, r, c, s, f, h, l, a, d; - if (K(n, (Bt(), h4), 0), h = u(y(n, jC), 40), n.d.b == 0) - h ? (a = _(H(y(h, n1))) + e.b + FZ(e, h, n), K(n, n1, a)) : K(n, n1, 0); + if (K(n, (_t(), h4), 0), h = u(y(n, jC), 40), n.d.b == 0) + h ? (a = B(H(y(h, n1))) + e.b + FZ(e, h, n), K(n, n1, a)) : K(n, n1, 0); else { - for (i = (c = Nn(new Bl(n).a.d, 0), new Ug(c)); U8(i.a); ) - t = u(Ln(i.a), 65).c, NUe(e, t); - f = u(Ex((s = Nn(new Bl(n).a.d, 0), new Ug(s))), 40), d = u(ndn((r = Nn(new Bl(n).a.d, 0), new Ug(r))), 40), l = (_(H(y(d, n1))) + _(H(y(f, n1)))) / 2, h ? (a = _(H(y(h, n1))) + e.b + FZ(e, h, n), K(n, n1, a), K(n, h4, _(H(y(n, n1))) - l), rPn(e, n)) : K(n, n1, l); + for (i = (c = Nn(new _l(n).a.d, 0), new Ug(c)); U8(i.a); ) + t = u(Ln(i.a), 65).c, FUe(e, t); + f = u(Ex((s = Nn(new _l(n).a.d, 0), new Ug(s))), 40), d = u(ndn((r = Nn(new _l(n).a.d, 0), new Ug(r))), 40), l = (B(H(y(d, n1))) + B(H(y(f, n1)))) / 2, h ? (a = B(H(y(h, n1))) + e.b + FZ(e, h, n), K(n, n1, a), K(n, h4, B(H(y(n, n1))) - l), rPn(e, n)) : K(n, n1, l); } } function HIn(e) { @@ -26938,18 +27028,18 @@ function WDn() { function UIn(e, n) { var t, i, r, c, s, f, h, l, a; if (!(n.e.c.length <= 1)) { - for (e.f = n, e.d = u(y(e.f, (C7(), Xse)), 384), e.g = u(y(e.f, Yse), 15).a, e.e = _(H(y(e.f, Kse))), e.c = _(H(y(e.f, oI))), tIe(e.b), r = new x(e.f.c); r.a < r.c.c.length; ) + for (e.f = n, e.d = u(y(e.f, (C7(), Xse)), 384), e.g = u(y(e.f, Yse), 15).a, e.e = B(H(y(e.f, Kse))), e.c = B(H(y(e.f, oI))), iIe(e.b), r = new x(e.f.c); r.a < r.c.c.length; ) i = u(A(r), 291), Pte(e.b, i.c, i, null), Pte(e.b, i.d, i, null); - for (f = e.f.e.c.length, e.a = lw(Xi, [oe, Gr], [108, 30], 15, [f, f], 2), l = new x(e.f.e); l.a < l.c.c.length; ) + for (f = e.f.e.c.length, e.a = lw(Xi, [fe, Gr], [108, 30], 15, [f, f], 2), l = new x(e.f.e); l.a < l.c.c.length; ) h = u(A(l), 155), bIn(e, h, e.a[h.a]); - for (e.i = lw(Xi, [oe, Gr], [108, 30], 15, [f, f], 2), c = 0; c < f; ++c) + for (e.i = lw(Xi, [fe, Gr], [108, 30], 15, [f, f], 2), c = 0; c < f; ++c) for (s = 0; s < f; ++s) t = e.a[c][s], a = 1 / (t * t), e.i[c][s] = a; } } - function FUe(e, n) { + function RUe(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p; - if (f = n._g(), f || n.Tg(KWe, 1), t = u(y(e, (te(), cH)), 16), s = 1 / t.gc(), n.$g()) + if (f = n._g(), f || n.Tg(VWe, 1), t = u(y(e, (te(), cH)), 16), s = 1 / t.gc(), n.$g()) for (n.ah("ELK Layered uses the following " + t.gc() + " modules:"), p = 0, g = t.Jc(); g.Ob(); ) a = u(g.Pb(), 43), i = (p < 10 ? "0" : "") + p++, n.ah(" Slot " + i + ": " + Ed(Rs(a))); for (d = t.Jc(); d.Ob(); ) { @@ -26967,15 +27057,15 @@ function WDn() { var t, i, r, c, s, f, h, l, a; if (Et(e.d.i, (ae(), bg))) return f = u(y(e.c.i, bg), 15), l = u(y(e.d.i, bg), 15), Zc(f.a, l.a) > 0; - for (f = u(y(e.c.i, bg), 15).a, c = u(fs(mt(n.Mc(), new v8e(f)), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), s = new Dt(), a = new vi(), rt(s, e.c.i), ki(a, e.c.i); s.b != 0; ) { + for (f = u(y(e.c.i, bg), 15).a, c = u(fs(mt(n.Mc(), new k8e(f)), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), s = new Dt(), a = new vi(), rt(s, e.c.i), ki(a, e.c.i); s.b != 0; ) { if (t = u(s.b == 0 ? null : (An(s.b != 0), mo(s, s.a.a)), 9), c.Gc(t)) return !0; - for (r = new fn(dn(Ht(t).a.Jc(), new Q())); xn(r); ) + for (r = new fn(dn(Ht(t).a.Jc(), new Y())); xn(r); ) i = u(pn(r), 17), h = i.d.i, a.a._b(h) || (a.a.yc(h, a), ti(s, h, s.c.b, s.c)); } return !1; } - function RUe(e, n, t) { + function _Ue(e, n, t) { var i, r, c, s, f, h, l, a, d; for (d = new le(), a = new aQ(0, t), c = 0, uM(a, new JN(0, 0, a, t)), r = 0, l = new kn(e); l.e != l.i.gc(); ) h = u(En(l), 26), i = u(pe(a.a, a.a.c.length - 1), 173), f = r + h.g + (u(pe(a.a, 0), 173).b.c.length == 0 ? 0 : t), (f > n || ve(me(re(h, (gh(), yE))))) && (r = 0, c += a.b + t, sn(d.c, a), a = new aQ(c, t), i = new JN(0, a.f, a, t), uM(a, i), r = 0), i.b.c.length == 0 || !ve(me(re(Qt(h), (gh(), Cq)))) && (h.f >= i.o && h.f <= i.f || i.a * 0.5 <= h.f && i.a * 1.5 >= h.f) ? RZ(i, h) : (s = new JN(i.s + i.r + t, a.f, a, t), uM(a, s), RZ(s, h)), r = h.i + h.g; @@ -27003,7 +27093,7 @@ function WDn() { var t, i, r, c, s, f, h; for (s = n3(e.a).Jc(); s.Ob(); ) { if (c = u(s.Pb(), 17), c.b.c.length > 0) - for (i = new os(u(Mt(e.a, c), 22)), ze(), Di(i, new Bz(n)), r = new Vi(c.b, 0); r.b < r.d.gc(); ) { + for (i = new os(u(Mt(e.a, c), 22)), ze(), Di(i, new _z(n)), r = new Vi(c.b, 0); r.b < r.d.gc(); ) { switch (t = (An(r.b < r.d.gc()), u(r.d.Xb(r.c = r.b++), 70)), f = -1, u(y(t, (ae(), il)), 279).g) { case 1: f = i.c.length - 1; @@ -27014,7 +27104,7 @@ function WDn() { case 2: f = 0; } - f != -1 && (h = (qe(f, i.c.length), u(i.c[f], 250)), he(h.b.b, t), u(y(_i(h.b.c.i), (te(), ou)), 22).Ec((Pr(), Y5)), u(y(_i(h.b.c.i), ou), 22).Ec(Q5), vs(r), K(t, Lfe, c)); + f != -1 && (h = (qe(f, i.c.length), u(i.c[f], 250)), he(h.b.b, t), u(y(Bi(h.b.c.i), (te(), ou)), 22).Ec((Pr(), Y5)), u(y(Bi(h.b.c.i), ou), 22).Ec(Q5), vs(r), K(t, Lfe, c)); } br(c, null), Ki(c, null); } @@ -27051,33 +27141,33 @@ function WDn() { t = u(En(i), 85), f = ob(t), s = f && c && ve(me(re(t, a0))), d = ec(u(F((!t.b && (t.b = new Qe(Cn, t, 4, 7)), t.b), 0), 84)), f && s ? ++a : f && !s ? ++r : Qt(d) == n || d == n ? ++a : ++r; return a - r; } - function _Ue(e) { + function JUe(e) { var n, t, i, r, c; - return e.g != null ? e.g : e.a < 32 ? (e.g = dOn(Cc(e.f), dr(e.e)), e.g) : (r = XR((!e.c && (e.c = _y(Cc(e.f))), e.c), 0), e.e == 0 ? r : (n = (!e.c && (e.c = _y(Cc(e.f))), e.c).e < 0 ? 2 : 1, t = r.length, i = -e.e + t - n, c = new w1(), c.a += "" + r, e.e > 0 && i >= -6 ? i >= 0 ? wy(c, t - dr(e.e), ".") : (IN(c, n - 1, n - 1, "0."), wy(c, n + 1, Gh(o0, 0, -dr(i) - 1))) : (t - n >= 1 && (wy(c, n, "."), ++t), wy(c, t, "E"), i > 0 && wy(c, ++t, "+"), wy(c, ++t, "" + y6(Cc(i)))), e.g = c.a, e.g)); + return e.g != null ? e.g : e.a < 32 ? (e.g = dOn(Cc(e.f), dr(e.e)), e.g) : (r = XR((!e.c && (e.c = By(Cc(e.f))), e.c), 0), e.e == 0 ? r : (n = (!e.c && (e.c = By(Cc(e.f))), e.c).e < 0 ? 2 : 1, t = r.length, i = -e.e + t - n, c = new w1(), c.a += "" + r, e.e > 0 && i >= -6 ? i >= 0 ? wy(c, t - dr(e.e), ".") : (IN(c, n - 1, n - 1, "0."), wy(c, n + 1, Gh(o0, 0, -dr(i) - 1))) : (t - n >= 1 && (wy(c, n, "."), ++t), wy(c, t, "E"), i > 0 && wy(c, ++t, "+"), wy(c, ++t, "" + y6(Cc(i)))), e.g = c.a, e.g)); } function VIn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we; - i = _(H(y(n, (ae(), zhe)))), V = u(y(n, Rk), 15).a, g = 4, r = 3, X = 20 / V, p = !1, h = 0, s = pt; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we; + i = B(H(y(n, (ae(), zhe)))), V = u(y(n, Rk), 15).a, g = 4, r = 3, X = 20 / V, p = !1, h = 0, s = pt; do { for (c = h != 1, d = h != 0, we = 0, E = e.a, D = 0, J = E.length; D < J; ++D) v = E[D], v.f = null, RPn(e, v, c, d, i), we += m.Math.abs(v.a); do f = kSn(e, n); while (f); - for (j = e.a, M = 0, R = j.length; M < R; ++M) - if (v = j[M], t = mV(v).a, t != 0) + for (j = e.a, T = 0, R = j.length; T < R; ++T) + if (v = j[T], t = mV(v).a, t != 0) for (a = new x(v.e); a.a < a.c.c.length; ) l = u(A(a), 9), l.n.b += t; h == 0 || h == 1 ? (--g, g <= 0 && (we < s || -g > V) ? (h = 2, s = pt) : h == 0 ? (h = 1, s = we) : (h = 0, s = we)) : (p = we >= s || s - we < X, s = we, p && --r); } while (!(p && r <= 0)); } - function BR(e, n, t) { + function _R(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v; for (v = new Tn(), c = e.a.ec().Jc(); c.Ob(); ) i = u(c.Pb(), 177), ht(v, i, t.$e(i)); - for (s = (Jn(e), e ? new os(e) : tv(e.a.ec().Jc())), Di(s, new Hke(v)), f = C$(s), h = new yx(n), p = new Tn(), Ru(p.f, n, h); f.a.gc() != 0; ) { + for (s = (Jn(e), e ? new os(e) : tv(e.a.ec().Jc())), Di(s, new qke(v)), f = C$(s), h = new yx(n), p = new Tn(), Ru(p.f, n, h); f.a.gc() != 0; ) { for (l = null, a = null, d = null, r = f.a.ec().Jc(); r.Ob(); ) - if (i = u(r.Pb(), 177), _(H(hc(Ur(v.f, i)))) <= ii) { + if (i = u(r.Pb(), 177), B(H(hc(Ur(v.f, i)))) <= ii) { if (eu(p, i.a) && !eu(p, i.b)) { a = i.b, d = i.a, l = i; break; @@ -27112,7 +27202,7 @@ function WDn() { jA(e.a, n); return; } - c = n.e == 0 ? 2 : n.Km().length, s.e == 0 ? (t = new B4(), i = s.Im(), i >= xr ? Br(t, OZ(i)) : sv(t, i & Ti), s = new $D(10, null, 0), Cgn(e.a, s, f - 1)) : (t = (s.Km().length + c, new B4()), Br(t, s.Km())), n.e == 0 ? (i = n.Im(), i >= xr ? Br(t, OZ(i)) : sv(t, i & Ti)) : Br(t, n.Km()), u(s, 517).b = t.a; + c = n.e == 0 ? 2 : n.Km().length, s.e == 0 ? (t = new _4(), i = s.Im(), i >= xr ? _r(t, OZ(i)) : sv(t, i & Ti), s = new $D(10, null, 0), Cgn(e.a, s, f - 1)) : (t = (s.Km().length + c, new _4()), _r(t, s.Km())), n.e == 0 ? (i = n.Im(), i >= xr ? _r(t, OZ(i)) : sv(t, i & Ti)) : _r(t, n.Km()), u(s, 517).b = t.a; } } function QIn(e, n, t) { @@ -27123,7 +27213,7 @@ function WDn() { for (E = u(pe(e.b, f), 25), p = u(pe(e.b, g), 25), j = Nd(E.a), d = new x(j); d.a < d.c.c.length; ) if (a = u(A(d), 9), R1(a, p.a.c.length, p), g == 0) for (s = Nd(bi(a)), c = new x(s); c.a < c.c.c.length; ) - r = u(A(c), 17), Ua(r, !0), K(e, (te(), im), (en(), !0)), UUe(e, r, 1); + r = u(A(c), 17), Ua(r, !0), K(e, (te(), im), (en(), !0)), zUe(e, r, 1); } ++g, ++f; } @@ -27134,12 +27224,12 @@ function WDn() { function YIn(e, n, t) { var i, r, c; if (r = u(y(n, (ae(), KI)), 283), r != (Kv(), yk)) { - switch (t.Tg("Horizontal Compaction", 1), e.a = n, c = new sDe(), i = new $Ge((c.d = n, c.c = u(y(c.d, la), 222), zMn(c), tPn(c), eTn(c), c.a)), Xln(i, e.b), u(y(n, khe), 422).g) { + switch (t.Tg("Horizontal Compaction", 1), e.a = n, c = new oDe(), i = new MGe((c.d = n, c.c = u(y(c.d, la), 222), zMn(c), tPn(c), eTn(c), c.a)), Xln(i, e.b), u(y(n, khe), 422).g) { case 1: - iEe(i, new SNe(e.a)); + rEe(i, new INe(e.a)); break; default: - iEe(i, (eQ(), vYe)); + rEe(i, (eQ(), kYe)); } switch (r.g) { case 1: @@ -27149,22 +27239,22 @@ function WDn() { p9(NT(i, (Mi(), nc))); break; case 3: - p9(tEe(NT(p9(i), (Mi(), nc)), new tpe())); + p9(iEe(NT(p9(i), (Mi(), nc)), new ipe())); break; case 4: - p9(tEe(NT(p9(i), (Mi(), nc)), new T8e(c))); + p9(iEe(NT(p9(i), (Mi(), nc)), new S8e(c))); break; case 5: - p9(Wln(i, den)); + p9(Wln(i, ben)); } NT(i, (Mi(), Qr)), i.e = !0, KPn(c), t.Ug(); } } function ZIn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; - for (s = n.b, a = s.o, h = s.d, i = _(H(UM(s, (ae(), Mf)))), r = _(H(UM(s, sp))), l = _(H(UM(s, $H))), f = new tO(), WK(f, h.d, h.c, h.a, h.b), g = lTn(n, i, r, l), M = new x(n.d); M.a < M.c.c.length; ) { - for (E = u(A(M), 107), v = E.f.a.ec().Jc(); v.Ob(); ) - p = u(v.Pb(), 341), c = p.a, d = ojn(p), t = (D = new ms(), TJe(p, p.c, g, D), pMn(p, d, g, D), TJe(p, p.d, g, D), D), t = e.lg(p, d, t), Fs(c.a), wr(c.a, t), fi(new Ge(null, new He(t, 16)), new QAe(a, f)); + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; + for (s = n.b, a = s.o, h = s.d, i = B(H(UM(s, (ae(), Mf)))), r = B(H(UM(s, sp))), l = B(H(UM(s, $H))), f = new tO(), WK(f, h.d, h.c, h.a, h.b), g = lTn(n, i, r, l), T = new x(n.d); T.a < T.c.c.length; ) { + for (E = u(A(T), 107), v = E.f.a.ec().Jc(); v.Ob(); ) + p = u(v.Pb(), 341), c = p.a, d = ojn(p), t = (D = new ms(), SJe(p, p.c, g, D), pMn(p, d, g, D), SJe(p, p.d, g, D), D), t = e.lg(p, d, t), Fs(c.a), wr(c.a, t), fi(new Ge(null, new He(t, 16)), new YAe(a, f)); j = E.i, j && (EMn(E, j, g, r), R = new vr(j.g), see(a, f, R), At(R, j.j), see(a, f, R)); } WK(h, f.d, f.c, f.a, f.b); @@ -27176,19 +27266,19 @@ function WDn() { } function nCn(e) { var n, t, i, r; - r = e.o, ow(), e.A.dc() || jt(e.A, Dse) ? n = r.b : (e.D ? n = m.Math.max(r.b, d9(e.f)) : n = d9(e.f), e.A.Gc((Js(), BE)) && !e.B.Gc((Ms(), k8)) && (n = m.Math.max(n, d9(u(_r(e.p, (be(), gn)), 253))), n = m.Math.max(n, d9(u(_r(e.p, an), 253)))), t = KNe(e), t && (n = m.Math.max(n, t.b)), e.A.Gc(_E) && (e.q == (Ui(), Il) || e.q == Vc) && (n = m.Math.max(n, Hx(u(_r(e.b, (be(), gn)), 127))), n = m.Math.max(n, Hx(u(_r(e.b, an), 127))))), ve(me(e.e.Rf().mf((tt(), $g)))) ? r.b = m.Math.max(r.b, n) : r.b = n, i = e.f.i, i.d = 0, i.a = n, SR(e.f); + r = e.o, ow(), e.A.dc() || jt(e.A, Dse) ? n = r.b : (e.D ? n = m.Math.max(r.b, d9(e.f)) : n = d9(e.f), e.A.Gc((Js(), _E)) && !e.B.Gc((Ms(), k8)) && (n = m.Math.max(n, d9(u(Br(e.p, (be(), gn)), 253))), n = m.Math.max(n, d9(u(Br(e.p, an), 253)))), t = VNe(e), t && (n = m.Math.max(n, t.b)), e.A.Gc(BE) && (e.q == (Ui(), Il) || e.q == Vc) && (n = m.Math.max(n, Hx(u(Br(e.b, (be(), gn)), 127))), n = m.Math.max(n, Hx(u(Br(e.b, an), 127))))), ve(me(e.e.Rf().mf((tt(), $g)))) ? r.b = m.Math.max(r.b, n) : r.b = n, i = e.f.i, i.d = 0, i.a = n, SR(e.f); } function tCn(e, n, t, i, r, c, s, f) { var h, l, a, d; - switch (h = wf(I(T(WLn, 1), Ve, 238, 0, [n, t, i, r])), d = null, e.b.g) { + switch (h = wf(I(S(WLn, 1), Ve, 238, 0, [n, t, i, r])), d = null, e.b.g) { case 1: - d = wf(I(T(l1e, 1), Ve, 523, 0, [new PP(), new IP(), new CP()])); + d = wf(I(S(l1e, 1), Ve, 523, 0, [new PP(), new IP(), new CP()])); break; case 0: - d = wf(I(T(l1e, 1), Ve, 523, 0, [new CP(), new IP(), new PP()])); + d = wf(I(S(l1e, 1), Ve, 523, 0, [new CP(), new IP(), new PP()])); break; case 2: - d = wf(I(T(l1e, 1), Ve, 523, 0, [new IP(), new PP(), new CP()])); + d = wf(I(S(l1e, 1), Ve, 523, 0, [new IP(), new PP(), new CP()])); } for (a = new x(d); a.a < a.c.c.length; ) l = u(A(a), 523), h.c.length > 1 && (h = l.Gg(h, e.a, f)); @@ -27196,35 +27286,35 @@ function WDn() { } function iCn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v; - r = new R8(e), c = new qGe(), i = (qy(c.n), qy(c.p), Fc(c.c), qy(c.f), qy(c.o), Fc(c.q), Fc(c.d), Fc(c.g), Fc(c.k), Fc(c.e), Fc(c.i), Fc(c.j), Fc(c.r), Fc(c.b), g = bGe(c, r, null), wHe(c, r), g), n && (h = new R8(n), s = yIn(h), lne(i, I(T(q1e, 1), Ve, 524, 0, [s]))), d = !1, a = !1, t && (h = new R8(t), CS in h.a && (d = Ul(h, CS).oe().a), cVe in h.a && (a = Ul(h, cVe).oe().a)), l = hEe(cNe(new Lp(), d), a), hEn(new Rve(), i, l), CS in r.a && gf(r, CS, null), (d || a) && (f = new Dp(), oUe(l, f, d, a), gf(r, CS, f)), p = new b7e(c), LFe(new lL(i), p), v = new w7e(c), LFe(new lL(i), v); + r = new R8(e), c = new UGe(), i = (qy(c.n), qy(c.p), Fc(c.c), qy(c.f), qy(c.o), Fc(c.q), Fc(c.d), Fc(c.g), Fc(c.k), Fc(c.e), Fc(c.i), Fc(c.j), Fc(c.r), Fc(c.b), g = wGe(c, r, null), gHe(c, r), g), n && (h = new R8(n), s = yIn(h), lne(i, I(S(q1e, 1), Ve, 524, 0, [s]))), d = !1, a = !1, t && (h = new R8(t), CS in h.a && (d = Ul(h, CS).oe().a), uVe in h.a && (a = Ul(h, uVe).oe().a)), l = lEe(uNe(new Lp(), d), a), hEn(new _ve(), i, l), CS in r.a && gf(r, CS, null), (d || a) && (f = new Dp(), fUe(l, f, d, a), gf(r, CS, f)), p = new w7e(c), DFe(new lL(i), p), v = new g7e(c), DFe(new lL(i), v); } function rCn(e, n, t) { var i, r, c, s, f, h, l; for (t.Tg("Find roots", 1), e.a.c.length = 0, r = Nn(n.b, 0); r.b != r.d.c; ) - i = u(Ln(r), 40), i.b.b == 0 && (K(i, (Bt(), od), (en(), !0)), he(e.a, i)); + i = u(Ln(r), 40), i.b.b == 0 && (K(i, (_t(), od), (en(), !0)), he(e.a, i)); switch (e.a.c.length) { case 0: - c = new _N(0, n, "DUMMY_ROOT"), K(c, (Bt(), od), (en(), !0)), K(c, ZH, !0), rt(n.b, c); + c = new BN(0, n, "DUMMY_ROOT"), K(c, (_t(), od), (en(), !0)), K(c, ZH, !0), rt(n.b, c); break; case 1: break; default: - for (s = new _N(0, n, vS), h = new x(e.a); h.a < h.c.c.length; ) - f = u(A(h), 40), l = new WV(s, f), K(l, (Bt(), ZH), (en(), !0)), rt(s.a.a, l), rt(s.d, l), rt(f.b, l), K(f, od, !1); - K(s, (Bt(), od), (en(), !0)), K(s, ZH, !0), rt(n.b, s); + for (s = new BN(0, n, vS), h = new x(e.a); h.a < h.c.c.length; ) + f = u(A(h), 40), l = new WV(s, f), K(l, (_t(), ZH), (en(), !0)), rt(s.a.a, l), rt(s.d, l), rt(f.b, l), K(f, od, !1); + K(s, (_t(), od), (en(), !0)), K(s, ZH, !0), rt(n.b, s); } t.Ug(); } - function JUe(e) { + function GUe(e) { var n, t, i, r, c, s; - for (wu(e.a, new nwe()), t = new x(e.a); t.a < t.c.c.length; ) - n = u(A(t), 225), i = Fi(kr(u(e.b, 68).c), u(n.b, 68).c), ZYe ? (s = u(e.b, 68).b, c = u(n.b, 68).b, m.Math.abs(i.a) >= m.Math.abs(i.b) ? (i.b = 0, c.d + c.a > s.d && c.d < s.d + s.a && Bx(i, m.Math.max(s.c - (c.c + c.b), c.c - (s.c + s.b)))) : (i.a = 0, c.c + c.b > s.c && c.c < s.c + s.b && Bx(i, m.Math.max(s.d - (c.d + c.a), c.d - (s.d + s.a))))) : Bx(i, aUe(u(e.b, 68), u(n.b, 68))), r = m.Math.sqrt(i.a * i.a + i.b * i.b), r = Z_e(dk, n, r, i), Bx(i, r), VL(u(n.b, 68), i), wu(n.a, new Nz(i)), u(dk.b, 68), zQ(dk, Nse, n); + for (wu(e.a, new twe()), t = new x(e.a); t.a < t.c.c.length; ) + n = u(A(t), 225), i = Fi(kr(u(e.b, 68).c), u(n.b, 68).c), eZe ? (s = u(e.b, 68).b, c = u(n.b, 68).b, m.Math.abs(i.a) >= m.Math.abs(i.b) ? (i.b = 0, c.d + c.a > s.d && c.d < s.d + s.a && _x(i, m.Math.max(s.c - (c.c + c.b), c.c - (s.c + s.b)))) : (i.a = 0, c.c + c.b > s.c && c.c < s.c + s.b && _x(i, m.Math.max(s.d - (c.d + c.a), c.d - (s.d + s.a))))) : _x(i, dUe(u(e.b, 68), u(n.b, 68))), r = m.Math.sqrt(i.a * i.a + i.b * i.b), r = eJe(dk, n, r, i), _x(i, r), VL(u(n.b, 68), i), wu(n.a, new Nz(i)), u(dk.b, 68), zQ(dk, Nse, n); } function cCn(e) { var n, t, i, r, c, s, f, h, l, a, d, g, p, v; for (e.f = new eO(), l = 0, r = 0, s = new x(e.e.b); s.a < s.c.c.length; ) for (c = u(A(s), 25), h = new x(c.a); h.a < h.c.c.length; ) { - for (f = u(A(h), 9), f.p = l++, i = new fn(dn(Ht(f).a.Jc(), new Q())); xn(i); ) + for (f = u(A(h), 9), f.p = l++, i = new fn(dn(Ht(f).a.Jc(), new Y())); xn(i); ) t = u(pn(i), 17), t.p = r++; for (n = NR(f), g = new x(f.j); g.a < g.c.c.length; ) d = u(A(g), 12), n && (v = d.a.b, v != m.Math.floor(v) && (a = v - Rd(Cc(m.Math.round(v))), d.a.b -= a)), p = d.n.b + d.a.b, p != m.Math.floor(p) && (a = p - Rd(Cc(m.Math.round(p))), d.n.b -= a); @@ -27258,17 +27348,17 @@ function WDn() { } function eie(e, n, t) { var i, r, c, s, f, h, l, a, d, g; - for (hFe(this), t == (X0(), sd) ? ki(this.r, e) : ki(this.w, e), a = ii, l = Ri, s = n.a.ec().Jc(); s.Ob(); ) - r = u(s.Pb(), 49), f = u(r.a, 454), i = u(r.b, 17), h = i.c, h == e && (h = i.d), f == sd ? ki(this.r, h) : ki(this.w, h), g = (be(), Hu).Gc(h.j) ? _(H(y(h, (te(), e4)))) : bc(I(T(Ji, 1), oe, 8, 0, [h.i.n, h.n, h.a])).b, a = m.Math.min(a, g), l = m.Math.max(l, g); - for (d = (be(), Hu).Gc(e.j) ? _(H(y(e, (te(), e4)))) : bc(I(T(Ji, 1), oe, 8, 0, [e.i.n, e.n, e.a])).b, kJe(this, d, a, l), c = n.a.ec().Jc(); c.Ob(); ) - r = u(c.Pb(), 49), DJe(this, u(r.b, 17)); + for (lFe(this), t == (X0(), sd) ? ki(this.r, e) : ki(this.w, e), a = ii, l = Ri, s = n.a.ec().Jc(); s.Ob(); ) + r = u(s.Pb(), 49), f = u(r.a, 454), i = u(r.b, 17), h = i.c, h == e && (h = i.d), f == sd ? ki(this.r, h) : ki(this.w, h), g = (be(), Hu).Gc(h.j) ? B(H(y(h, (te(), e4)))) : bc(I(S(Ji, 1), fe, 8, 0, [h.i.n, h.n, h.a])).b, a = m.Math.min(a, g), l = m.Math.max(l, g); + for (d = (be(), Hu).Gc(e.j) ? B(H(y(e, (te(), e4)))) : bc(I(S(Ji, 1), fe, 8, 0, [e.i.n, e.n, e.a])).b, yJe(this, d, a, l), c = n.a.ec().Jc(); c.Ob(); ) + r = u(c.Pb(), 49), NJe(this, u(r.b, 17)); this.o = !1; } function uCn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn; - return t = e.l & 8191, i = e.l >> 13 | (e.m & 15) << 9, r = e.m >> 4 & 8191, c = e.m >> 17 | (e.h & 255) << 5, s = (e.h & 1048320) >> 8, f = n.l & 8191, h = n.l >> 13 | (n.m & 15) << 9, l = n.m >> 4 & 8191, a = n.m >> 17 | (n.h & 255) << 5, d = (n.h & 1048320) >> 8, De = t * f, Le = i * f, Ke = r * f, Ye = c * f, yn = s * f, h != 0 && (Le += t * h, Ke += i * h, Ye += r * h, yn += c * h), l != 0 && (Ke += t * l, Ye += i * l, yn += r * l), a != 0 && (Ye += t * a, yn += i * a), d != 0 && (yn += t * d), p = De & Ts, v = (Le & 511) << 13, g = p + v, E = De >> 22, M = Le >> 9, D = (Ke & 262143) << 4, R = (Ye & 31) << 17, j = E + M + D + R, V = Ke >> 18, X = Ye >> 5, we = (yn & 4095) << 8, J = V + X + we, j += g >> 22, g &= Ts, J += j >> 22, j &= Ts, J &= ca, Eu(g, j, J); + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn; + return t = e.l & 8191, i = e.l >> 13 | (e.m & 15) << 9, r = e.m >> 4 & 8191, c = e.m >> 17 | (e.h & 255) << 5, s = (e.h & 1048320) >> 8, f = n.l & 8191, h = n.l >> 13 | (n.m & 15) << 9, l = n.m >> 4 & 8191, a = n.m >> 17 | (n.h & 255) << 5, d = (n.h & 1048320) >> 8, De = t * f, Le = i * f, Ke = r * f, Ye = c * f, yn = s * f, h != 0 && (Le += t * h, Ke += i * h, Ye += r * h, yn += c * h), l != 0 && (Ke += t * l, Ye += i * l, yn += r * l), a != 0 && (Ye += t * a, yn += i * a), d != 0 && (yn += t * d), p = De & Ts, v = (Le & 511) << 13, g = p + v, E = De >> 22, T = Le >> 9, D = (Ke & 262143) << 4, R = (Ye & 31) << 17, j = E + T + D + R, V = Ke >> 18, X = Ye >> 5, we = (yn & 4095) << 8, J = V + X + we, j += g >> 22, g &= Ts, J += j >> 22, j &= Ts, J &= ca, Eu(g, j, J); } - function GUe(e) { + function HUe(e) { var n, t, i, r, c, s, f; if (f = u(pe(e.j, 0), 12), f.g.c.length != 0 && f.e.c.length != 0) throw $(new qr("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges.")); @@ -27287,18 +27377,18 @@ function WDn() { function sCn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v, j, E; for (t.Tg("Interactive cycle breaking", 1), d = new le(), p = new x(n.a); p.a < p.c.c.length; ) - for (g = u(A(p), 9), g.p = 1, v = Bee(g).a, a = ib(g, (Cr(), yu)).Jc(); a.Ob(); ) + for (g = u(A(p), 9), g.p = 1, v = _ee(g).a, a = ib(g, (Cr(), yu)).Jc(); a.Ob(); ) for (l = u(a.Pb(), 12), c = new x(l.g); c.a < c.c.c.length; ) - i = u(A(c), 17), j = i.d.i, j != g && (E = Bee(j).a, E < v && sn(d.c, i)); + i = u(A(c), 17), j = i.d.i, j != g && (E = _ee(j).a, E < v && sn(d.c, i)); for (s = new x(d); s.a < s.c.c.length; ) i = u(A(s), 17), Ua(i, !0); for (d.c.length = 0, h = new x(n.a); h.a < h.c.c.length; ) - f = u(A(h), 9), f.p > 0 && _Je(e, f, d); + f = u(A(h), 9), f.p > 0 && JJe(e, f, d); for (r = new x(d); r.a < r.c.c.length; ) i = u(A(r), 17), Ua(i, !0); d.c.length = 0, t.Ug(); } - function HUe(e, n) { + function qUe(e, n) { var t, i, r, c, s, f, h; if (e.ml()) { if (e.i > 4) @@ -27332,10 +27422,10 @@ function WDn() { for (t = 0, a = new le(), f = new x(n); f.a < f.c.c.length; ) { switch (s = u(A(f), 12), aZ(e.b, e.d[s.p]), a.c.length = 0, s.i.k.g) { case 0: - i = u(y(s, (te(), ds)), 9), wu(i.j, new oye(a)); + i = u(y(s, (te(), ds)), 9), wu(i.j, new fye(a)); break; case 1: - S1n(Zl(mt(new Ge(null, new He(s.i.j, 16)), new fye(s))), new hye(a)); + S1n(Zl(mt(new Ge(null, new He(s.i.j, 16)), new hye(s))), new lye(a)); break; case 3: r = u(y(s, (te(), $t)), 12), he(a, new Ar(r, ie(s.e.c.length + s.g.c.length))); @@ -27349,7 +27439,7 @@ function WDn() { } function fCn(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E; - for (n.Tg(DXe, 1), p = new le(), a = m.Math.max(e.a.c.length, u(y(e, (te(), id)), 15).a), t = a * u(y(e, eE), 15).a, f = z(y(e, (ae(), hm))) === z((P1(), fg)), j = new x(e.a); j.a < j.c.c.length; ) + for (n.Tg(NXe, 1), p = new le(), a = m.Math.max(e.a.c.length, u(y(e, (te(), id)), 15).a), t = a * u(y(e, eE), 15).a, f = z(y(e, (ae(), hm))) === z((P1(), fg)), j = new x(e.a); j.a < j.c.c.length; ) for (v = u(A(j), 9), i = new F8(), h = f ? P3(i, v, t, a) : S3(i, v, a), g = ib(v, (Cr(), yu)).Jc(); g.Ob(); ) for (d = u(g.Pb(), 12), s = new x(d.g); s.a < s.c.c.length; ) r = u(A(s), 17), E = r.d.i, l = f ? P3(i, E, t, a) : S3(i, E, a), l < h && sn(p.c, r); @@ -27359,13 +27449,13 @@ function WDn() { } function hCn(e) { var n, t, i; - for (k3(j0, I(T(Q3, 1), Ve, 148, 0, [new lz()])), t = new pz(e), i = 0; i < t.a.length; ++i) - n = Aw(t, i).re().a, _e(n, "layered") ? k3(j0, I(T(Q3, 1), Ve, 148, 0, [new k9e()])) : _e(n, "force") ? k3(j0, I(T(Q3, 1), Ve, 148, 0, [new X6e()])) : _e(n, "stress") ? k3(j0, I(T(Q3, 1), Ve, 148, 0, [new V6e()])) : _e(n, "mrtree") ? k3(j0, I(T(Q3, 1), Ve, 148, 0, [new $9e()])) : _e(n, "radial") ? k3(j0, I(T(Q3, 1), Ve, 148, 0, [new S9e()])) : _e(n, "sporeOverlap") || _e(n, "sporeCompaction") ? k3(j0, I(T(Q3, 1), Ve, 148, 0, [new F9e()])) : _e(n, "rectpacking") && k3(j0, I(T(Q3, 1), Ve, 148, 0, [new D9e()])); + for (k3(j0, I(S(Q3, 1), Ve, 148, 0, [new lz()])), t = new pz(e), i = 0; i < t.a.length; ++i) + n = Aw(t, i).re().a, Be(n, "layered") ? k3(j0, I(S(Q3, 1), Ve, 148, 0, [new y9e()])) : Be(n, "force") ? k3(j0, I(S(Q3, 1), Ve, 148, 0, [new K6e()])) : Be(n, "stress") ? k3(j0, I(S(Q3, 1), Ve, 148, 0, [new Q6e()])) : Be(n, "mrtree") ? k3(j0, I(S(Q3, 1), Ve, 148, 0, [new M9e()])) : Be(n, "radial") ? k3(j0, I(S(Q3, 1), Ve, 148, 0, [new I9e()])) : Be(n, "sporeOverlap") || Be(n, "sporeCompaction") ? k3(j0, I(S(Q3, 1), Ve, 148, 0, [new R9e()])) : Be(n, "rectpacking") && k3(j0, I(S(Q3, 1), Ve, 148, 0, [new N9e()])); } function lCn(e, n) { var t, i, r, c, s, f, h, l, a, d; if (a = u(y(e, (te(), Sc)), 64), i = u(pe(e.j, 0), 12), a == (be(), ln) ? Oi(i, Mn) : a == Mn && Oi(i, ln), u(y(n, (ae(), d0)), 182).Gc((Js(), y0))) { - if (h = _(H(y(e, c4))), l = _(H(y(e, u4))), s = _(H(y(e, vg))), f = u(y(n, gg), 22), f.Gc((ls(), ba))) + if (h = B(H(y(e, c4))), l = B(H(y(e, u4))), s = B(H(y(e, vg))), f = u(y(n, gg), 22), f.Gc((ls(), ba))) for (t = l, d = e.o.a / 2 - i.n.a, c = new x(i.f); c.a < c.c.c.length; ) r = u(A(c), 70), r.n.b = t, r.n.a = d - r.o.a / 2, t += r.o.b + s; else if (f.Gc(dd)) @@ -27378,18 +27468,18 @@ function WDn() { var t, i, r, c, s, f, h, l, a; if (n.c.length != 0) { for (ze(), UL(n.c, n.c.length, null), r = new x(n), i = u(A(r), 156); r.a < r.c.c.length; ) - t = u(A(r), 156), lY(i.e.c, t.e.c) && !(nee(FMe(i.e).b, t.e.d) || nee(FMe(t.e).b, i.e.d)) ? i = (Ci(i.k, t.k), Ci(i.b, t.b), Ci(i.c, t.c), wr(i.i, t.i), Ci(i.d, t.d), Ci(i.j, t.j), c = m.Math.min(i.e.c, t.e.c), s = m.Math.min(i.e.d, t.e.d), f = m.Math.max(i.e.c + i.e.b, t.e.c + t.e.b), h = f - c, l = m.Math.max(i.e.d + i.e.a, t.e.d + t.e.a), a = l - s, zTe(i.e, c, s, h, a), M3n(i.f, t.f), !i.a && (i.a = t.a), Ci(i.g, t.g), he(i.g, t), i) : (rUe(e, i), i = t); - rUe(e, i); + t = u(A(r), 156), lY(i.e.c, t.e.c) && !(nee(RMe(i.e).b, t.e.d) || nee(RMe(t.e).b, i.e.d)) ? i = (Ci(i.k, t.k), Ci(i.b, t.b), Ci(i.c, t.c), wr(i.i, t.i), Ci(i.d, t.d), Ci(i.j, t.j), c = m.Math.min(i.e.c, t.e.c), s = m.Math.min(i.e.d, t.e.d), f = m.Math.max(i.e.c + i.e.b, t.e.c + t.e.b), h = f - c, l = m.Math.max(i.e.d + i.e.a, t.e.d + t.e.a), a = l - s, WTe(i.e, c, s, h, a), M3n(i.f, t.f), !i.a && (i.a = t.a), Ci(i.g, t.g), he(i.g, t), i) : (cUe(e, i), i = t); + cUe(e, i); } } function dCn(e, n, t, i) { - var r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V; + var r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V; for (h = new le(), c = new x(n.a); c.a < c.c.c.length; ) for (r = u(A(c), 9), f = new x(r.j); f.a < f.c.c.length; ) { - for (s = u(A(f), 12), a = null, R = _h(s.g), J = 0, V = R.length; J < V; ++J) - D = R[J], Av(D.d.i, t) || (M = FR(e, n, t, D, D.c, (Cr(), yu), a), M != a && sn(h.c, M), M.c && (a = M)); - for (l = null, v = _h(s.e), j = 0, E = v.length; j < E; ++j) - p = v[j], Av(p.c.i, t) || (M = FR(e, n, t, p, p.d, (Cr(), bs), l), M != l && sn(h.c, M), M.c && (l = M)); + for (s = u(A(f), 12), a = null, R = Bh(s.g), J = 0, V = R.length; J < V; ++J) + D = R[J], Av(D.d.i, t) || (T = FR(e, n, t, D, D.c, (Cr(), yu), a), T != a && sn(h.c, T), T.c && (a = T)); + for (l = null, v = Bh(s.e), j = 0, E = v.length; j < E; ++j) + p = v[j], Av(p.c.i, t) || (T = FR(e, n, t, p, p.d, (Cr(), bs), l), T != l && sn(h.c, T), T.c && (l = T)); } for (g = new x(h); g.a < g.c.c.length; ) d = u(A(g), 444), dc(n.a, d.a, 0) != -1 || he(n.a, d.a), d.c && sn(i.c, d); @@ -27414,13 +27504,13 @@ function WDn() { function wCn(e, n, t, i) { var r, c, s, f, h, l, a, d, g, p, v, j, E; for (d = new vr(u(re(e, (hT(), Y1e)), 8)), d.a = m.Math.max(d.a - t.b - t.c, 0), d.b = m.Math.max(d.b - t.d - t.a, 0), r = H(re(e, K1e)), (r == null || (Ze(r), r <= 0)) && (r = 1.3), f = new le(), v = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); v.e != v.i.gc(); ) - p = u(En(v), 26), s = new AMe(p), sn(f.c, s); + p = u(En(v), 26), s = new xMe(p), sn(f.c, s); switch (g = u(re(e, Xq), 326), g.g) { case 3: E = QTn(f, n, d.a, d.b, (l = i, Ze(r), l)); break; case 1: - E = BSn(f, n, d.a, d.b, (a = i, Ze(r), a)); + E = _Sn(f, n, d.a, d.b, (a = i, Ze(r), a)); break; default: E = pCn(f, n, d.a, d.b, (h = i, Ze(r), h)); @@ -27429,7 +27519,7 @@ function WDn() { } function gCn(e, n, t, i) { var r, c, s, f, h, l; - if (f = e.j, f == (be(), mc) && n != (Ui(), Sh) && n != (Ui(), ad) && (f = Zqe(e, t), Oi(e, f), !(e.q ? e.q : (ze(), ze(), El))._b((ae(), wg)) && f != mc && (e.n.a != 0 || e.n.b != 0) && K(e, wg, Pyn(e, f))), n == (Ui(), Il)) { + if (f = e.j, f == (be(), mc) && n != (Ui(), Sh) && n != (Ui(), ad) && (f = eUe(e, t), Oi(e, f), !(e.q ? e.q : (ze(), ze(), El))._b((ae(), wg)) && f != mc && (e.n.a != 0 || e.n.b != 0) && K(e, wg, Pyn(e, f))), n == (Ui(), Il)) { switch (l = 0, f.g) { case 1: case 3: @@ -27464,7 +27554,7 @@ function WDn() { var n, t, i, r, c, s, f, h, l, a; if (e.Nj()) if (a = e.Cj(), h = e.Oj(), a > 0) - if (n = new _Y(e.nj()), t = a, c = t < 100 ? null : new g1(t), ky(e, t, n.g), r = t == 1 ? e.Gj(4, F(n, 0), null, 0, h) : e.Gj(6, n, null, -1, h), e.Kj()) { + if (n = new BY(e.nj()), t = a, c = t < 100 ? null : new g1(t), ky(e, t, n.g), r = t == 1 ? e.Gj(4, F(n, 0), null, 0, h) : e.Gj(6, n, null, -1, h), e.Kj()) { for (i = new kn(n); i.e != i.i.gc(); ) c = e.Mj(En(i), c); c ? (c.lj(r), c.mj()) : e.Hj(r); @@ -27484,18 +27574,18 @@ function WDn() { } function pCn(e, n, t, i, r) { var c, s, f, h, l, a, d, g, p, v, j, E; - for (f = W(Xi, Gr, 30, e.c.length, 15, 1), g = new i$(new g5e()), Aee(g, e), l = 0, j = new le(); g.b.c.length != 0; ) + for (f = W(Xi, Gr, 30, e.c.length, 15, 1), g = new i$(new p5e()), Aee(g, e), l = 0, j = new le(); g.b.c.length != 0; ) if (s = u(g.b.c.length == 0 ? null : pe(g.b, 0), 167), l > 1 && Zu(s) * Ns(s) / 2 > f[0]) { for (c = 0; c < j.c.length - 1 && Zu(s) * Ns(s) / 2 > f[c]; ) ++c; - v = new $1(j, 0, c + 1), d = new eM(v), a = Zu(s) / Ns(s), h = UR(d, n, new Op(), t, i, r, a), At(Rf(d.e), h), e3(Xv(g, d), b5), p = new $1(j, c + 1, j.c.length), Aee(g, p), j.c.length = 0, l = 0, ASe(f, f.length, 0); + v = new $1(j, 0, c + 1), d = new eM(v), a = Zu(s) / Ns(s), h = UR(d, n, new Op(), t, i, r, a), At(Rf(d.e), h), e3(Xv(g, d), b5), p = new $1(j, c + 1, j.c.length), Aee(g, p), j.c.length = 0, l = 0, xSe(f, f.length, 0); } else E = g.b.c.length == 0 ? null : pe(g.b, 0), E != null && yN(g, 0), l > 0 && (f[l] = f[l - 1]), f[l] += Zu(s) * Ns(s), ++l, sn(j.c, s); return j; } function mCn(e, n) { var t, i, r, c; - t = n.b, c = new os(t.j), r = 0, i = t.j, i.c.length = 0, J0(u(Jd(e.b, (be(), ln), (Z0(), Tb)), 16), t), r = S7(c, r, new Ipe(), i), J0(u(Jd(e.b, ln, nd), 16), t), r = S7(c, r, new Cpe(), i), J0(u(Jd(e.b, ln, Mb), 16), t), J0(u(Jd(e.b, gn, Tb), 16), t), J0(u(Jd(e.b, gn, nd), 16), t), r = S7(c, r, new Ppe(), i), J0(u(Jd(e.b, gn, Mb), 16), t), J0(u(Jd(e.b, Mn, Tb), 16), t), r = S7(c, r, new Ope(), i), J0(u(Jd(e.b, Mn, nd), 16), t), r = S7(c, r, new Lpe(), i), J0(u(Jd(e.b, Mn, Mb), 16), t), J0(u(Jd(e.b, an, Tb), 16), t), r = S7(c, r, new $pe(), i), J0(u(Jd(e.b, an, nd), 16), t), J0(u(Jd(e.b, an, Mb), 16), t); + t = n.b, c = new os(t.j), r = 0, i = t.j, i.c.length = 0, J0(u(Jd(e.b, (be(), ln), (Z0(), Tb)), 16), t), r = S7(c, r, new Cpe(), i), J0(u(Jd(e.b, ln, nd), 16), t), r = S7(c, r, new Ppe(), i), J0(u(Jd(e.b, ln, Mb), 16), t), J0(u(Jd(e.b, gn, Tb), 16), t), J0(u(Jd(e.b, gn, nd), 16), t), r = S7(c, r, new Ope(), i), J0(u(Jd(e.b, gn, Mb), 16), t), J0(u(Jd(e.b, Mn, Tb), 16), t), r = S7(c, r, new Lpe(), i), J0(u(Jd(e.b, Mn, nd), 16), t), r = S7(c, r, new Dpe(), i), J0(u(Jd(e.b, Mn, Mb), 16), t), J0(u(Jd(e.b, an, Tb), 16), t), r = S7(c, r, new Mpe(), i), J0(u(Jd(e.b, an, nd), 16), t), J0(u(Jd(e.b, an, Mb), 16), t); } function vCn(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v, j; @@ -27507,15 +27597,15 @@ function WDn() { } r || (a = 0, l = 0), e.f.b = l - a, e.c.b -= a, n.Ug(); } - function qUe(e, n, t) { + function UUe(e, n, t) { var i, r, c, s, f, h, l, a, d, g; for (s = n.d, f = t.d; s.a - f.a == 0 && s.b - f.b == 0; ) h = !1, N(n, 251) && N(t, 251) && !h ? (l = u(n, 251).a, a = Fi(new vr(vY(l)), mY(l)), i = 2, r = new ue(a.a / m.Math.sqrt(a.a * a.a + a.b * a.b) * i, -a.b / m.Math.sqrt(a.a * a.a + a.b * a.b) * i), At(s, r), d = u(t, 251).a, g = Fi(new vr(vY(d)), mY(d)), i = a == g ? -2 : 2, c = new ue(g.a / m.Math.sqrt(g.a * g.a + g.b * g.b) * i, -(g.b / m.Math.sqrt(g.a * g.a + g.b * g.b)) * i), At(s, c), h = !0) : (s.a += $s(e, 26) * P9 + $s(e, 27) * O9 - 0.5, s.b += $s(e, 26) * P9 + $s(e, 27) * O9 - 0.5, f.a += $s(e, 26) * P9 + $s(e, 27) * O9 - 0.5, f.b += $s(e, 26) * P9 + $s(e, 27) * O9 - 0.5); } function kCn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v, j, E; - for (l = tEn(n), j = u(y(n, (ae(), Ok)), 301), fr(l, new Kke(j)), E = u(y(n, cE), 302), fr(l, new Vke(E)), v = 0, a = new le(), c = new S6(l); c.a != c.b; ) - r = u(MM(c), 37), tze(e.c, r), g = u(y(r, (te(), cH)), 16), v += g.gc(), i = g.Jc(), he(a, new Ar(r, i)); + for (l = tEn(n), j = u(y(n, (ae(), Ok)), 301), fr(l, new Vke(j)), E = u(y(n, cE), 302), fr(l, new Qke(E)), v = 0, a = new le(), c = new S6(l); c.a != c.b; ) + r = u(MM(c), 37), ize(e.c, r), g = u(y(r, (te(), cH)), 16), v += g.gc(), i = g.Jc(), he(a, new Ar(r, i)); for (t.Tg("Recursive hierarchical layout", v), p = u(u(pe(a, a.c.length - 1), 49).b, 50); p.Ob(); ) for (h = new x(a); h.a < h.c.c.length; ) for (f = u(A(h), 49), g = u(f.b, 50), s = u(f.a, 37); g.Ob(); ) @@ -27529,7 +27619,7 @@ function WDn() { t.Ug(); } function nie(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; for (c = 0, s = 0, l = new x(e.a); l.a < l.c.c.length; ) f = u(A(l), 9), c = m.Math.max(c, f.d.b), s = m.Math.max(s, f.d.c); for (h = new x(e.a); h.a < h.c.c.length; ) { @@ -27548,19 +27638,19 @@ function WDn() { g = u(A(p), 12), g.e.c.length == 0 || ++i, g.g.c.length == 0 || ++d; i + d == 0 ? v = 0.5 : v = d / (i + d); } - E = e.c, a = f.o.a, M = (E.a - a) * v, v > 0.5 ? M -= s * 2 * (v - 0.5) : v < 0.5 && (M += c * 2 * (0.5 - v)), r = f.d.b, M < r && (M = r), j = f.d.c, M > E.a - j - a && (M = E.a - j - a), f.n.a = n + M; + E = e.c, a = f.o.a, T = (E.a - a) * v, v > 0.5 ? T -= s * 2 * (v - 0.5) : v < 0.5 && (T += c * 2 * (0.5 - v)), r = f.d.b, T < r && (T = r), j = f.d.c, T > E.a - j - a && (T = E.a - j - a), f.n.a = n + T; } } function yCn(e) { var n, t, i, r, c; - if (i = u(y(e, (ae(), pc)), 165), i == (Bs(), ha)) { - for (t = new fn(dn(bi(e).a.Jc(), new Q())); xn(t); ) + if (i = u(y(e, (ae(), pc)), 165), i == (_s(), ha)) { + for (t = new fn(dn(bi(e).a.Jc(), new Y())); xn(t); ) if (n = u(pn(t), 17), !BOe(n)) - throw $(new Aa(GB + I7(e) + "' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges.")); + throw $(new Aa(G_ + I7(e) + "' 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 == l0) { - for (c = new fn(dn(Ht(e).a.Jc(), new Q())); xn(c); ) + for (c = new fn(dn(Ht(e).a.Jc(), new Y())); xn(c); ) if (r = u(pn(c), 17), !BOe(r)) - throw $(new Aa(GB + I7(e) + "' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges.")); + throw $(new Aa(G_ + I7(e) + "' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges.")); } } function Z7(e, n) { @@ -27568,18 +27658,18 @@ function WDn() { if (e.e && e.c.c < e.f) throw $(new qr("Expected " + e.f + " phases to be configured; only found " + e.c.c)); for (a = u(Ff(e.g), 10), p = sl(e.f), c = a, f = 0, l = c.length; f < l; ++f) - i = c[f], d = u(e7(e, i.g), 188), d ? he(p, u(zRe(e, d), 95)) : p.c.push(null); - for (v = new wi(), fi(mt(du(mt(new Ge(null, new He(p, 16)), new Bve()), new qye(n)), new _ve()), new Uye(v)), Ys(v, e.a), t = new le(), r = a, s = 0, h = r.length; s < h; ++s) - i = r[s], Ci(t, wFe(e, AD(u(e7(v, i.g), 20)))), g = u(pe(p, i.g), 95), g && sn(t.c, g); - return Ci(t, wFe(e, AD(u(e7(v, a[a.length - 1].g + 1), 20)))), t; + i = c[f], d = u(e7(e, i.g), 188), d ? he(p, u(WRe(e, d), 95)) : p.c.push(null); + for (v = new wi(), fi(mt(du(mt(new Ge(null, new He(p, 16)), new Bve()), new Uye(n)), new Jve()), new zye(v)), Ys(v, e.a), t = new le(), r = a, s = 0, h = r.length; s < h; ++s) + i = r[s], Ci(t, gFe(e, AD(u(e7(v, i.g), 20)))), g = u(pe(p, i.g), 95), g && sn(t.c, g); + return Ci(t, gFe(e, AD(u(e7(v, a[a.length - 1].g + 1), 20)))), t; } function jCn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; for (g = new le(), r = new le(), j = null, f = n.Jc(); f.Ob(); ) - s = u(f.Pb(), 15), c = new U8e(s.a), sn(r.c, c), j && (c.d = j, j.e = c), j = c; + s = u(f.Pb(), 15), c = new z8e(s.a), sn(r.c, c), j && (c.d = j, j.e = c), j = c; for (R = USn(e), a = 0; a < r.c.length; ++a) { for (p = null, E = JQ((qe(0, r.c.length), u(r.c[0], 650))), t = null, i = ii, d = 1; d < e.b.c.length; ++d) - M = E ? m.Math.abs(E.b - d) : m.Math.abs(d - p.b) + 1, v = p ? m.Math.abs(d - p.b) : M + 1, v < M ? (l = p, h = v) : (l = E, h = M), D = (J = _(H(y(e, (ae(), ule)))), R[d] + m.Math.pow(h, J)), D < i && (i = D, t = l, t.c = d), E && d == E.b && (p = E, E = Agn(E)); + T = E ? m.Math.abs(E.b - d) : m.Math.abs(d - p.b) + 1, v = p ? m.Math.abs(d - p.b) : T + 1, v < T ? (l = p, h = v) : (l = E, h = T), D = (J = B(H(y(e, (ae(), ule)))), R[d] + m.Math.pow(h, J)), D < i && (i = D, t = l, t.c = d), E && d == E.b && (p = E, E = Agn(E)); t && (he(g, ie(t.c)), t.a = !0, m9n(t)); } return ze(), UL(g.c, g.c.length, null), g; @@ -27594,20 +27684,20 @@ function WDn() { return X9n(e, t); if (h = !1, n.h >> 19 != 0 && (n = Sv(n), h = !h), s = u$n(n), c = !1, r = !1, i = !1, e.h == hj && e.m == 0 && e.l == 0) if (r = !0, c = !0, s == -1) - e = f$e((vv(), use)), i = !0, h = !h; + e = h$e((vv(), use)), i = !0, h = !h; else return f = Wne(e, s), h && RN(f), t && (Q1 = Eu(0, 0, 0)), f; else e.h >> 19 != 0 && (c = !0, e = Sv(e), i = !0, h = !h); return s != -1 ? g6n(e, s, h, c, t) : Pee(e, n) < 0 ? (t && (c ? Q1 = Sv(e) : Q1 = Eu(e.l, e.m, e.h)), Eu(0, 0, 0)) : eSn(i ? e : Eu(e.l, e.m, e.h), n, h, c, r, t); } - function _R(e, n) { + function BR(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v; if (s = e.e, h = n.e, s == 0) return n; if (h == 0) return e; if (c = e.d, f = n.d, c + f == 2) - return t = qi(e.a[0], Or), i = qi(n.a[0], Or), s == h ? (a = yr(t, i), v = Xn(a), p = Xn(Id(a, 32)), p == 0 ? new Wl(s, v) : new Cd(s, 2, I(T(Wn, 1), lt, 30, 15, [v, p]))) : (Uh(), gx(s < 0 ? qo(i, t) : qo(t, i), 0) ? F1(s < 0 ? qo(i, t) : qo(t, i)) : x6(F1(Na(s < 0 ? qo(i, t) : qo(t, i))))); + return t = qi(e.a[0], Or), i = qi(n.a[0], Or), s == h ? (a = yr(t, i), v = Xn(a), p = Xn(Id(a, 32)), p == 0 ? new Wl(s, v) : new Cd(s, 2, I(S(Wn, 1), lt, 30, 15, [v, p]))) : (Uh(), gx(s < 0 ? qo(i, t) : qo(t, i), 0) ? F1(s < 0 ? qo(i, t) : qo(t, i)) : x6(F1(Na(s < 0 ? qo(i, t) : qo(t, i))))); if (s == h) g = s, d = c >= f ? YD(e.a, c, n.a, f) : YD(n.a, f, e.a, c); else { @@ -27621,19 +27711,19 @@ function WDn() { var t, i, r, c, s, f, h; if (!(e.g > n.f || n.g > e.f)) { for (t = 0, i = 0, s = e.w.a.ec().Jc(); s.Ob(); ) - r = u(s.Pb(), 12), YN(bc(I(T(Ji, 1), oe, 8, 0, [r.i.n, r.n, r.a])).b, n.g, n.f) && ++t; + r = u(s.Pb(), 12), YN(bc(I(S(Ji, 1), fe, 8, 0, [r.i.n, r.n, r.a])).b, n.g, n.f) && ++t; for (f = e.r.a.ec().Jc(); f.Ob(); ) - r = u(f.Pb(), 12), YN(bc(I(T(Ji, 1), oe, 8, 0, [r.i.n, r.n, r.a])).b, n.g, n.f) && --t; + r = u(f.Pb(), 12), YN(bc(I(S(Ji, 1), fe, 8, 0, [r.i.n, r.n, r.a])).b, n.g, n.f) && --t; for (h = n.w.a.ec().Jc(); h.Ob(); ) - r = u(h.Pb(), 12), YN(bc(I(T(Ji, 1), oe, 8, 0, [r.i.n, r.n, r.a])).b, e.g, e.f) && ++i; + r = u(h.Pb(), 12), YN(bc(I(S(Ji, 1), fe, 8, 0, [r.i.n, r.n, r.a])).b, e.g, e.f) && ++i; for (c = n.r.a.ec().Jc(); c.Ob(); ) - r = u(c.Pb(), 12), YN(bc(I(T(Ji, 1), oe, 8, 0, [r.i.n, r.n, r.a])).b, e.g, e.f) && --i; + r = u(c.Pb(), 12), YN(bc(I(S(Ji, 1), fe, 8, 0, [r.i.n, r.n, r.a])).b, e.g, e.f) && --i; t < i ? new R$(e, n, i - t) : i < t ? new R$(n, e, t - i) : (new R$(n, e, 0), new R$(e, n, 0)); } } function ACn(e) { var n, t, i, r, c, s, f, h, l, a; - for (n = new NP(), t = new NP(), l = _e(Lj, (r = E9(e.b, nt), r ? zn(Uf((!r.b && (r.b = new Ds((Ue(), Tr), Ic, r)), r.b), zo)) : null)), h = 0; h < e.i; ++h) + for (n = new NP(), t = new NP(), l = Be(Lj, (r = E9(e.b, nt), r ? zn(Uf((!r.b && (r.b = new Ds((Ue(), Tr), Ic, r)), r.b), zo)) : null)), h = 0; h < e.i; ++h) f = u(e.g[h], 179), N(f, 103) ? (s = u(f, 19), (s.Bb & Lc) != 0 ? ((s.Bb & Wh) == 0 || !l && (c = E9(s, nt), (c ? zn(Uf((!c.b && (c.b = new Ds((Ue(), Tr), Ic, c)), c.b), SS)) : null) == null)) && Dn(n, s) : (a = Ir(s), a && (a.Bb & Lc) != 0 || ((s.Bb & Wh) == 0 || !l && (i = E9(s, nt), (i ? zn(Uf((!i.b && (i.b = new Ds((Ue(), Tr), Ic, i)), i.b), SS)) : null) == null)) && Dn(t, s))) : (Sr(), u(f, 69).vk() && (f.qk() || (Dn(n, f), Dn(t, f)))); Iw(n), Iw(t), e.a = u(n.g, 255), u(t.g, 255); } @@ -27643,7 +27733,7 @@ function WDn() { return t; switch (q0(Wr(e, t))) { case 2: { - if (_e("", _a(e, t.ok()).ve())) { + if (Be("", Ba(e, t.ok()).ve())) { if (h = Ly(Wr(e, t)), f = hv(Wr(e, t)), a = Zne(e, n, h, f), a) return a; for (r = Ste(e, n), s = 0, d = r.gc(); s < d; ++s) @@ -27653,11 +27743,11 @@ function WDn() { return null; } case 4: { - if (_e("", _a(e, t.ok()).ve())) { + if (Be("", Ba(e, t.ok()).ve())) { for (i = t; i; i = k3n(Wr(e, i))) if (l = Ly(Wr(e, i)), f = hv(Wr(e, i)), a = ete(e, n, l, f), a) return a; - if (h = Ly(Wr(e, t)), _e(u0, h)) + if (h = Ly(Wr(e, t)), Be(u0, h)) return Nee(e, n); for (c = ER(e, n), s = 0, d = c.gc(); s < d; ++s) if (a = u(c.Xb(s), 179), ute(cD(Wr(e, a)), h)) @@ -27701,22 +27791,22 @@ function WDn() { c = (r = u(f.a.Pb(), 45), u(r.kd(), 456)), c.b == 0 && ti(a, c, a.c.b, a.c); for (; a.b != 0; ) for (c = u(a.b == 0 ? null : (An(a.b != 0), mo(a, a.a.a)), 456), c.a == null && (c.a = 0), i = new x(c.d); i.a < i.c.c.length; ) - t = u(A(i), 652), t.b.a == null ? t.b.a = _(c.a) + t.a : n.o == (uh(), p0) ? t.b.a = m.Math.min(_(t.b.a), _(c.a) + t.a) : t.b.a = m.Math.max(_(t.b.a), _(c.a) + t.a), --t.b.b, t.b.b == 0 && rt(a, t.b); + t = u(A(i), 652), t.b.a == null ? t.b.a = B(c.a) + t.a : n.o == (uh(), p0) ? t.b.a = m.Math.min(B(t.b.a), B(c.a) + t.a) : t.b.a = m.Math.max(B(t.b.a), B(c.a) + t.a), --t.b.b, t.b.b == 0 && rt(a, t.b); for (s = (h = new Rl(e.c).a.vc().Jc(), new zb(h)); s.a.Ob(); ) c = (r = u(s.a.Pb(), 45), u(r.kd(), 456)), n.i[c.c.p] = c.a; } function MCn(e, n, t, i) { var r, c, s, f, h, l, a, d, g, p, v; for (a = t + n.c.c.a, p = new x(n.j); p.a < p.c.c.length; ) { - if (g = u(A(p), 12), r = bc(I(T(Ji, 1), oe, 8, 0, [g.i.n, g.n, g.a])), n.k == (cn(), su) && (f = u(y(g, (te(), $t)), 12), r.a = bc(I(T(Ji, 1), oe, 8, 0, [f.i.n, f.n, f.a])).a, n.n.a = r.a), s = new ue(0, r.b), g.j == (be(), gn)) + if (g = u(A(p), 12), r = bc(I(S(Ji, 1), fe, 8, 0, [g.i.n, g.n, g.a])), n.k == (cn(), su) && (f = u(y(g, (te(), $t)), 12), r.a = bc(I(S(Ji, 1), fe, 8, 0, [f.i.n, f.n, f.a])).a, n.n.a = r.a), s = new ue(0, r.b), g.j == (be(), gn)) s.a = a; else if (g.j == an) s.a = t; else continue; - if (v = m.Math.abs(r.a - s.a), !(v <= i && !Byn(n))) + if (v = m.Math.abs(r.a - s.a), !(v <= i && !_yn(n))) for (c = g.g.c.length + g.e.c.length > 1, l = new fh(g.b); lc(l.a) || lc(l.b); ) - h = u(lc(l.a) ? A(l.a) : A(l.b), 17), d = h.c == g ? h.d : h.c, m.Math.abs(bc(I(T(Ji, 1), oe, 8, 0, [d.i.n, d.n, d.a])).b - s.b) > 1 && oMn(e, h, s, c, g); + h = u(lc(l.a) ? A(l.a) : A(l.b), 17), d = h.c == g ? h.d : h.c, m.Math.abs(bc(I(S(Ji, 1), fe, 8, 0, [d.i.n, d.n, d.a])).b - s.b) > 1 && oMn(e, h, s, c, g); } } function TCn(e) { @@ -27727,10 +27817,10 @@ function WDn() { else for (t = 0; t < e.b - 1; t++) An(r.b < r.d.gc()), r.d.Xb(r.c = r.b++), vs(r); - for (n = _((An(r.b < r.d.gc()), H(r.d.Xb(r.c = r.b++)))); e.f - n > P_; ) { - for (c = n, s = 0; m.Math.abs(n - c) < P_; ) - ++s, n = _((An(r.b < r.d.gc()), H(r.d.Xb(r.c = r.b++)))), An(i.b < i.d.gc()), i.d.Xb(i.c = i.b++); - s < e.b && (An(r.b > 0), r.a.Xb(r.c = --r.b), _Sn(e, e.b - s, c, i, r), An(r.b < r.d.gc()), r.d.Xb(r.c = r.b++)), An(i.b > 0), i.a.Xb(i.c = --i.b); + for (n = B((An(r.b < r.d.gc()), H(r.d.Xb(r.c = r.b++)))); e.f - n > PB; ) { + for (c = n, s = 0; m.Math.abs(n - c) < PB; ) + ++s, n = B((An(r.b < r.d.gc()), H(r.d.Xb(r.c = r.b++)))), An(i.b < i.d.gc()), i.d.Xb(i.c = i.b++); + s < e.b && (An(r.b > 0), r.a.Xb(r.c = --r.b), BSn(e, e.b - s, c, i, r), An(r.b < r.d.gc()), r.d.Xb(r.c = r.b++)), An(i.b > 0), i.a.Xb(i.c = --i.b); } if (!e.d) for (t = 0; t < e.b - 1; t++) @@ -27738,7 +27828,7 @@ function WDn() { e.d = !0, e.c = !0; } function Ot() { - Ot = G, Q0e = (xW(), Dc).b, efn = u(F(ee(Dc.b), 0), 38), E0 = u(F(ee(Dc.b), 1), 38), Zon = u(F(ee(Dc.b), 2), 38), yp = Dc.bb, u(F(ee(Dc.bb), 0), 38), u(F(ee(Dc.bb), 1), 38), jp = Dc.fb, $8 = u(F(ee(Dc.fb), 0), 38), u(F(ee(Dc.fb), 1), 38), u(F(ee(Dc.fb), 2), 19), Jb = Dc.qb, afn = u(F(ee(Dc.qb), 0), 38), u(F(ee(Dc.qb), 1), 19), u(F(ee(Dc.qb), 2), 19), ZE = u(F(ee(Dc.qb), 3), 38), eA = u(F(ee(Dc.qb), 4), 38), T8 = u(F(ee(Dc.qb), 6), 38), M8 = u(F(ee(Dc.qb), 5), 19), nfn = Dc.j, tfn = Dc.k, ifn = Dc.q, rfn = Dc.w, cfn = Dc.B, ufn = Dc.A, sfn = Dc.C, ofn = Dc.D, ffn = Dc._, hfn = Dc.cb, lfn = Dc.hb; + Ot = G, Q0e = (xW(), Dc).b, nfn = u(F(ee(Dc.b), 0), 38), E0 = u(F(ee(Dc.b), 1), 38), efn = u(F(ee(Dc.b), 2), 38), yp = Dc.bb, u(F(ee(Dc.bb), 0), 38), u(F(ee(Dc.bb), 1), 38), jp = Dc.fb, $8 = u(F(ee(Dc.fb), 0), 38), u(F(ee(Dc.fb), 1), 38), u(F(ee(Dc.fb), 2), 19), Jb = Dc.qb, dfn = u(F(ee(Dc.qb), 0), 38), u(F(ee(Dc.qb), 1), 19), u(F(ee(Dc.qb), 2), 19), ZE = u(F(ee(Dc.qb), 3), 38), eA = u(F(ee(Dc.qb), 4), 38), T8 = u(F(ee(Dc.qb), 6), 38), M8 = u(F(ee(Dc.qb), 5), 19), tfn = Dc.j, ifn = Dc.k, rfn = Dc.q, cfn = Dc.w, ufn = Dc.B, sfn = Dc.A, ofn = Dc.C, ffn = Dc.D, hfn = Dc._, lfn = Dc.cb, afn = Dc.hb; } function SCn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p; @@ -27781,12 +27871,12 @@ function WDn() { r9(n, s); break; case 4: - e.a == (Ev(), zj) ? (r9(n, s), BD(n, s)) : (BD(n, s), r9(n, s)); + e.a == (Ev(), zj) ? (r9(n, s), _D(n, s)) : (_D(n, s), r9(n, s)); } else if (e.a == (Ev(), zj)) switch (u(y(n, co), 86).g) { case 2: - O6(n, s), BD(n, s); + O6(n, s), _D(n, s); break; case 3: r9(n, s), O6(n, s); @@ -27797,7 +27887,7 @@ function WDn() { else switch (u(y(n, co), 86).g) { case 2: - O6(n, s), BD(n, s); + O6(n, s), _D(n, s); break; case 3: O6(n, s), r9(n, s); @@ -27820,36 +27910,36 @@ function WDn() { function OCn(e) { R6(); var n, t, i, r, c, s, f; - for (f = new Y7e(), t = new x(e); t.a < t.c.c.length; ) + for (f = new Z7e(), t = new x(e); t.a < t.c.c.length; ) n = u(A(t), 146), (!f.b || n.c >= f.b.c) && (f.b = n), (!f.c || n.c <= f.c.c) && (f.d = f.c, f.c = n), (!f.e || n.d >= f.e.d) && (f.e = n), (!f.f || n.d <= f.f.d) && (f.f = n); - return i = new zM((Tv(), $b)), Gy(e, zZe, new yc(I(T(qj, 1), Ve, 377, 0, [i]))), s = new zM(rg), Gy(e, UZe, new yc(I(T(qj, 1), Ve, 377, 0, [s]))), r = new zM(ig), Gy(e, qZe, new yc(I(T(qj, 1), Ve, 377, 0, [r]))), c = new zM(W2), Gy(e, HZe, new yc(I(T(qj, 1), Ve, 377, 0, [c]))), aR(i.c, $b), aR(r.c, ig), aR(c.c, W2), aR(s.c, rg), f.a.c.length = 0, Ci(f.a, i.c), Ci(f.a, _s(r.c)), Ci(f.a, c.c), Ci(f.a, _s(s.c)), f; + return i = new zM((Tv(), $b)), Gy(e, WZe, new yc(I(S(qj, 1), Ve, 377, 0, [i]))), s = new zM(rg), Gy(e, zZe, new yc(I(S(qj, 1), Ve, 377, 0, [s]))), r = new zM(ig), Gy(e, UZe, new yc(I(S(qj, 1), Ve, 377, 0, [r]))), c = new zM(W2), Gy(e, qZe, new yc(I(S(qj, 1), Ve, 377, 0, [c]))), aR(i.c, $b), aR(r.c, ig), aR(c.c, W2), aR(s.c, rg), f.a.c.length = 0, Ci(f.a, i.c), Ci(f.a, Bs(r.c)), Ci(f.a, c.c), Ci(f.a, Bs(s.c)), f; } function LCn(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v; - for (n.Tg(iKe, 1), p = _(H(re(e, (gl(), Eg)))), s = _(H(re(e, (gh(), i8)))), f = u(re(e, t8), 104), LY((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)), a = RUe((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a), p, s), !e.a && (e.a = new ne(Qn, e, 10, 11)), l = new x(a); l.a < l.c.c.length; ) + for (n.Tg(rKe, 1), p = B(H(re(e, (gl(), Eg)))), s = B(H(re(e, (gh(), i8)))), f = u(re(e, t8), 104), LY((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)), a = _Ue((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a), p, s), !e.a && (e.a = new ne(Qn, e, 10, 11)), l = new x(a); l.a < l.c.c.length; ) for (h = u(A(l), 186), r = new x(h.a); r.a < r.c.c.length; ) - i = u(A(r), 173), g = new ZV(i.s, i.t, _(H(re(e, i8)))), JY(g, i), he(h.d, g); - d = x_e(a, s), v = m.Math.max(d.a, _(H(re(e, n8))) - (f.b + f.c)), c = m.Math.max(d.b, _(H(re(e, CC))) - (f.d + f.a)), t = c - d.b, Pt(e, e8, t), Pt(e, dm, v), Pt(e, l4, c + t), Pt(e, PC, a), n.Ug(); + i = u(A(r), 173), g = new ZV(i.s, i.t, B(H(re(e, i8)))), JY(g, i), he(h.d, g); + d = $Be(a, s), v = m.Math.max(d.a, B(H(re(e, n8))) - (f.b + f.c)), c = m.Math.max(d.b, B(H(re(e, CC))) - (f.d + f.a)), t = c - d.b, Pt(e, e8, t), Pt(e, dm, v), Pt(e, l4, c + t), Pt(e, PC, a), n.Ug(); } function DCn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v, j; - for (l = new ul(), a = new ul(), v = new ul(), j = new ul(), h = _(H(y(n, (ae(), g0)))), c = _(H(y(n, Mf))), f = new x(t); f.a < f.c.c.length; ) + for (l = new ul(), a = new ul(), v = new ul(), j = new ul(), h = B(H(y(n, (ae(), g0)))), c = B(H(y(n, Mf))), f = new x(t); f.a < f.c.c.length; ) if (s = u(A(f), 9), d = u(y(s, (te(), Sc)), 64), d == (be(), ln)) - for (a.a.yc(s, a), r = new fn(dn(bi(s).a.Jc(), new Q())); xn(r); ) + for (a.a.yc(s, a), r = new fn(dn(bi(s).a.Jc(), new Y())); xn(r); ) i = u(pn(r), 17), ki(l, i.c.i); else if (d == Mn) - for (j.a.yc(s, j), r = new fn(dn(bi(s).a.Jc(), new Q())); xn(r); ) + for (j.a.yc(s, j), r = new fn(dn(bi(s).a.Jc(), new Y())); xn(r); ) i = u(pn(r), 17), ki(v, i.c.i); l.a.gc() != 0 && (g = new sD(2, c), p = uie(g, n, l, a, -h - n.c.b), p > 0 && (e.a = h + (p - 1) * c, n.c.b += e.a, n.f.b += e.a)), v.a.gc() != 0 && (g = new sD(1, c), p = uie(g, n, v, j, n.f.b + h - n.c.b), p > 0 && (n.f.b += h + (p - 1) * c)); } - function UUe(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; - for (a = _(H(y(e, (ae(), w0)))), i = _(H(y(e, tle))), g = new OP(), K(g, w0, a + i), l = n, M = l.d, j = l.c.i, D = l.d.i, E = AX(j.c), R = AX(D.c), r = new le(), d = E; d <= R; d++) - f = new dh(e), Nl(f, (cn(), yi)), K(f, (te(), $t), l), K(f, oi, (Ui(), Vc)), K(f, sC, g), p = u(pe(e.b, d), 25), d == E ? R1(f, p.a.c.length - t, p) : Ni(f, p), J = _(H(y(l, Ya))), J < 0 && (J = 0, K(l, Ya, J)), f.o.b = J, v = m.Math.floor(J / 2), s = new Uc(), Oi(s, (be(), an)), ac(s, f), s.n.b = v, h = new Uc(), Oi(h, gn), ac(h, f), h.n.b = v, Ki(l, s), c = new z0(), Pc(c, l), K(c, Vr, null), br(c, h), Ki(c, M), Gyn(f, l, c), sn(r.c, c), l = c; + function zUe(e, n, t) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; + for (a = B(H(y(e, (ae(), w0)))), i = B(H(y(e, tle))), g = new OP(), K(g, w0, a + i), l = n, T = l.d, j = l.c.i, D = l.d.i, E = AX(j.c), R = AX(D.c), r = new le(), d = E; d <= R; d++) + f = new dh(e), Nl(f, (cn(), yi)), K(f, (te(), $t), l), K(f, oi, (Ui(), Vc)), K(f, sC, g), p = u(pe(e.b, d), 25), d == E ? R1(f, p.a.c.length - t, p) : Ni(f, p), J = B(H(y(l, Ya))), J < 0 && (J = 0, K(l, Ya, J)), f.o.b = J, v = m.Math.floor(J / 2), s = new Uc(), Oi(s, (be(), an)), ac(s, f), s.n.b = v, h = new Uc(), Oi(h, gn), ac(h, f), h.n.b = v, Ki(l, s), c = new z0(), Pc(c, l), K(c, Vr, null), br(c, h), Ki(c, T), Gyn(f, l, c), sn(r.c, c), l = c; return r; } function NCn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; if (j = n.b.c.length, !(j < 3)) { for (p = W(Wn, lt, 30, j, 15, 1), d = 0, a = new x(n.b); a.a < a.c.c.length; ) l = u(A(a), 25), p[d++] = l.a.c.length; @@ -27858,8 +27948,8 @@ function WDn() { if (R = u(A(v), 9), h == p[i + 1] - 1 || wne(e, R, i + 1, i)) { for (s = p[i] - 1, wne(e, R, i + 1, i) && (s = e.c.e[u(u(u(pe(e.c.b, R.p), 16).Xb(0), 49).a, 9).p]); f <= h; ) { if (D = u(pe(t.a, f), 9), !wne(e, D, i + 1, i)) - for (M = u(pe(e.c.b, D.p), 16).Jc(); M.Ob(); ) - E = u(M.Pb(), 49), r = e.c.e[u(E.a, 9).p], (r < c || r > s) && ki(e.b, u(E.b, 17)); + for (T = u(pe(e.c.b, D.p), 16).Jc(); T.Ob(); ) + E = u(T.Pb(), 49), r = e.c.e[u(E.a, 9).p], (r < c || r > s) && ki(e.b, u(E.b, 17)); ++f; } c = s; @@ -27867,12 +27957,12 @@ function WDn() { } } function JR(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; for (h = u(qa(e, (be(), an)).Jc().Pb(), 12).e, p = u(qa(e, gn).Jc().Pb(), 12).g, f = h.c.length, R = oh(u(pe(e.j, 0), 12)); f-- > 0; ) { for (j = (qe(0, h.c.length), u(h.c[0], 17)), r = (qe(0, p.c.length), u(p.c[0], 17)), D = r.d.e, c = dc(D, r, 0), W3n(j, r.d, c), br(r, null), Ki(r, null), v = j.a, n && rt(v, new vr(R)), i = Nn(r.a, 0); i.b != i.d.c; ) t = u(Ln(i), 8), rt(v, new vr(t)); - for (M = j.b, g = new x(r.b); g.a < g.c.c.length; ) - d = u(A(g), 70), sn(M.c, d); + for (T = j.b, g = new x(r.b); g.a < g.c.c.length; ) + d = u(A(g), 70), sn(T.c, d); if (E = u(y(j, (ae(), Vr)), 78), s = u(y(r, Vr), 78), s) for (E || (E = new ms(), K(j, Vr, E)), a = Nn(s, 0); a.b != a.d.c; ) l = u(Ln(a), 8), rt(E, new vr(l)); @@ -27881,19 +27971,19 @@ function WDn() { function FCn(e, n) { var t, i, r, c, s, f, h, l; for (n.Tg("Sort By Input Model " + y(e, (ae(), $l)), 1), c = 0, r = new x(e.b); r.a < r.c.c.length; ) { - for (i = u(A(r), 25), i.p = c, l = c == 0 ? 0 : c - 1, h = u(pe(e.b, l), 25), t = new HY(e, h, u(y(e, $l), 269), u(y(e, aH), 352), (u(y(e, Ck), 329), !0)), aHe(i.a, t), f = new x(i.a); f.a < f.c.c.length; ) - s = u(A(f), 9), z(y(s, oi)) !== z((Ui(), k0)) && z(y(s, oi)) !== z(Vc) && (ze(), Di(s.j, new RRe(e, h, u(y(e, $l), 269), $_e(s), ve(me(y(e, dH))))), n.ah("Node " + s + " ports: " + s.j)); - t = new HY(e, h, u(y(e, $l), 269), u(y(e, aH), 352), (u(y(e, Ck), 329), !1)), aHe(i.a, t), n.ah("Layer " + c + ": " + i), ++c; + for (i = u(A(r), 25), i.p = c, l = c == 0 ? 0 : c - 1, h = u(pe(e.b, l), 25), t = new HY(e, h, u(y(e, $l), 269), u(y(e, aH), 352), (u(y(e, Ck), 329), !0)), dHe(i.a, t), f = new x(i.a); f.a < f.c.c.length; ) + s = u(A(f), 9), z(y(s, oi)) !== z((Ui(), k0)) && z(y(s, oi)) !== z(Vc) && (ze(), Di(s.j, new _Re(e, h, u(y(e, $l), 269), MBe(s), ve(me(y(e, dH))))), n.ah("Node " + s + " ports: " + s.j)); + t = new HY(e, h, u(y(e, $l), 269), u(y(e, aH), 352), (u(y(e, Ck), 329), !1)), dHe(i.a, t), n.ah("Layer " + c + ": " + i), ++c; } n.Ug(); } function iie(e, n) { var t; - if (n == null || _e(n, Bu) || n.length == 0 && e.k != (Vd(), wm)) + if (n == null || Be(n, _u) || n.length == 0 && e.k != (Vd(), wm)) return null; switch (e.k.g) { case 1: - return JM(n, I5) ? (en(), _5) : JM(n, V_) ? (en(), Y1) : null; + return JM(n, I5) ? (en(), B5) : JM(n, VB) ? (en(), Y1) : null; case 2: try { return ie(eo(n, Yi, pt)); @@ -27913,9 +28003,9 @@ function WDn() { case 3: return n; case 5: - return VFe(e), jGe(e, n); + return QFe(e), EGe(e, n); case 6: - return VFe(e), Jxn(e, e.a, n); + return QFe(e), Jxn(e, e.a, n); case 7: try { return t = XAn(e), t.ag(n), t; @@ -27964,7 +28054,7 @@ function WDn() { case 7: return n != null && u(n, 191).a != Xn(e.k) << 16 >> 16; case 3: - return n != null && _(H(n)) != e.j; + return n != null && B(H(n)) != e.j; case 4: return n != null && u(n, 164).a != e.j; default: @@ -27973,9 +28063,9 @@ function WDn() { } function ej(e, n, t) { var i, r, c, s; - return e.ml() && e.ll() && (s = eD(e, u(t, 57)), z(s) !== z(t)) ? (e.vj(n), e.Bj(n, OLe(e, n, s)), e.$k() && (c = (r = u(t, 52), e.kl() ? e.il() ? r.Qh(e.b, Ir(u(We(Lu(e.b), e.Jj()), 19)).n, u(We(Lu(e.b), e.Jj()).Fk(), 29).ik(), null) : r.Qh(e.b, Yt(r.Ah(), Ir(u(We(Lu(e.b), e.Jj()), 19))), null, null) : r.Qh(e.b, -1 - e.Jj(), null, null)), !u(s, 52).Mh() && (c = (i = u(s, 52), e.kl() ? e.il() ? i.Oh(e.b, Ir(u(We(Lu(e.b), e.Jj()), 19)).n, u(We(Lu(e.b), e.Jj()).Fk(), 29).ik(), c) : i.Oh(e.b, Yt(i.Ah(), Ir(u(We(Lu(e.b), e.Jj()), 19))), null, c) : i.Oh(e.b, -1 - e.Jj(), null, c))), c && c.mj()), Os(e.b) && e.Hj(e.Gj(9, t, s, n, !1)), s) : t; + return e.ml() && e.ll() && (s = eD(e, u(t, 57)), z(s) !== z(t)) ? (e.vj(n), e.Bj(n, LLe(e, n, s)), e.$k() && (c = (r = u(t, 52), e.kl() ? e.il() ? r.Qh(e.b, Ir(u(We(Lu(e.b), e.Jj()), 19)).n, u(We(Lu(e.b), e.Jj()).Fk(), 29).ik(), null) : r.Qh(e.b, Yt(r.Ah(), Ir(u(We(Lu(e.b), e.Jj()), 19))), null, null) : r.Qh(e.b, -1 - e.Jj(), null, null)), !u(s, 52).Mh() && (c = (i = u(s, 52), e.kl() ? e.il() ? i.Oh(e.b, Ir(u(We(Lu(e.b), e.Jj()), 19)).n, u(We(Lu(e.b), e.Jj()).Fk(), 29).ik(), c) : i.Oh(e.b, Yt(i.Ah(), Ir(u(We(Lu(e.b), e.Jj()), 19))), null, c) : i.Oh(e.b, -1 - e.Jj(), null, c))), c && c.mj()), Os(e.b) && e.Hj(e.Gj(9, t, s, n, !1)), s) : t; } - function zUe(e) { + function WUe(e) { var n, t, i, r, c, s, f, h, l, a; for (i = new le(), s = new x(e.e.a); s.a < s.c.c.length; ) { for (r = u(A(s), 124), a = 0, r.k.c.length = 0, t = new x(y2(r)); t.a < t.c.c.length; ) @@ -27989,27 +28079,27 @@ function WDn() { Du(f.k, l), Du(h.k, l), f == r ? r = l.e : r = l.d; } } - function WUe(e, n) { + function XUe(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p; - if (t = u(_r(e.b, n), 127), h = u(u(Mt(e.r, n), 22), 83), h.dc()) { + if (t = u(Br(e.b, n), 127), h = u(u(Mt(e.r, n), 22), 83), h.dc()) { t.n.b = 0, t.n.c = 0; return; } for (l = e.u.Gc((ls(), ba)), s = 0, f = h.Jc(), a = null, d = 0, g = 0; f.Ob(); ) - i = u(f.Pb(), 115), r = _(H(i.b.mf((Tx(), iI)))), c = i.b.Kf().a, e.A.Gc((Js(), y0)) && Eqe(e, n), a ? (p = g + a.d.c + e.w + i.d.b, s = m.Math.max(s, (rh(), pf(mh), m.Math.abs(d - r) <= mh || d == r || isNaN(d) && isNaN(r) ? 0 : p / (r - d)))) : e.C && e.C.b > 0 && (s = m.Math.max(s, BNe(e.C.b + i.d.b, r))), a = i, d = r, g = c; + i = u(f.Pb(), 115), r = B(H(i.b.mf((Tx(), iI)))), c = i.b.Kf().a, e.A.Gc((Js(), y0)) && Aqe(e, n), a ? (p = g + a.d.c + e.w + i.d.b, s = m.Math.max(s, (rh(), pf(mh), m.Math.abs(d - r) <= mh || d == r || isNaN(d) && isNaN(r) ? 0 : p / (r - d)))) : e.C && e.C.b > 0 && (s = m.Math.max(s, BNe(e.C.b + i.d.b, r))), a = i, d = r, g = c; e.C && e.C.c > 0 && (p = g + e.C.c, l && (p += a.d.c), s = m.Math.max(s, (rh(), pf(mh), m.Math.abs(d - 1) <= mh || d == 1 || isNaN(d) && isNaN(1) ? 0 : p / (1 - d)))), t.n.b = 0, t.a.a = s; } - function XUe(e, n) { + function KUe(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p; - if (t = u(_r(e.b, n), 127), h = u(u(Mt(e.r, n), 22), 83), h.dc()) { + if (t = u(Br(e.b, n), 127), h = u(u(Mt(e.r, n), 22), 83), h.dc()) { t.n.d = 0, t.n.a = 0; return; } - for (l = e.u.Gc((ls(), ba)), s = 0, e.A.Gc((Js(), y0)) && Aqe(e, n), f = h.Jc(), a = null, g = 0, d = 0; f.Ob(); ) - i = u(f.Pb(), 115), c = _(H(i.b.mf((Tx(), iI)))), r = i.b.Kf().b, a ? (p = d + a.d.a + e.w + i.d.d, s = m.Math.max(s, (rh(), pf(mh), m.Math.abs(g - c) <= mh || g == c || isNaN(g) && isNaN(c) ? 0 : p / (c - g)))) : e.C && e.C.d > 0 && (s = m.Math.max(s, BNe(e.C.d + i.d.d, c))), a = i, g = c, d = r; + for (l = e.u.Gc((ls(), ba)), s = 0, e.A.Gc((Js(), y0)) && xqe(e, n), f = h.Jc(), a = null, g = 0, d = 0; f.Ob(); ) + i = u(f.Pb(), 115), c = B(H(i.b.mf((Tx(), iI)))), r = i.b.Kf().b, a ? (p = d + a.d.a + e.w + i.d.d, s = m.Math.max(s, (rh(), pf(mh), m.Math.abs(g - c) <= mh || g == c || isNaN(g) && isNaN(c) ? 0 : p / (c - g)))) : e.C && e.C.d > 0 && (s = m.Math.max(s, BNe(e.C.d + i.d.d, c))), a = i, g = c, d = r; e.C && e.C.a > 0 && (p = d + e.C.a, l && (p += a.d.a), s = m.Math.max(s, (rh(), pf(mh), m.Math.abs(g - 1) <= mh || g == 1 || isNaN(g) && isNaN(1) ? 0 : p / (1 - g)))), t.n.d = 0, t.a.b = s; } - function KUe(e, n, t) { + function VUe(e, n, t) { var i, r, c, s, f, h; for (this.g = e, f = n.d.length, h = t.d.length, this.d = W(xl, Wa, 9, f + h, 0, 1), s = 0; s < f; s++) this.d[s] = n.d[s]; @@ -28020,30 +28110,30 @@ function WDn() { for (r = t.e.Jc(); r.Ob(); ) i = u(r.Pb(), 239), i != n && (this.e.Gc(i) ? --i.c : this.e.Ec(i)); } else t.e && (this.e = My(t.e), this.e.Kc(n)); - this.f = n.f + t.f, this.a = n.a + t.a, this.a > 0 ? wN(this, this.f / this.a) : ch(n.g, n.d[0]).a != null && ch(t.g, t.d[0]).a != null ? wN(this, (_(ch(n.g, n.d[0]).a) + _(ch(t.g, t.d[0]).a)) / 2) : ch(n.g, n.d[0]).a != null ? wN(this, ch(n.g, n.d[0]).a) : ch(t.g, t.d[0]).a != null && wN(this, ch(t.g, t.d[0]).a); + this.f = n.f + t.f, this.a = n.a + t.a, this.a > 0 ? wN(this, this.f / this.a) : ch(n.g, n.d[0]).a != null && ch(t.g, t.d[0]).a != null ? wN(this, (B(ch(n.g, n.d[0]).a) + B(ch(t.g, t.d[0]).a)) / 2) : ch(n.g, n.d[0]).a != null ? wN(this, ch(n.g, n.d[0]).a) : ch(t.g, t.d[0]).a != null && wN(this, ch(t.g, t.d[0]).a); } function RCn(e, n, t, i, r, c, s, f) { - var h, l, a, d, g, p, v, j, E, M; - if (v = !1, l = ste(t.q, n.f + n.b - t.q.f), p = i.f > n.b && f, M = r - (t.q.e + l - s), d = (h = M9(i, M, !1), h.a), p && d > i.f) + var h, l, a, d, g, p, v, j, E, T; + if (v = !1, l = ste(t.q, n.f + n.b - t.q.f), p = i.f > n.b && f, T = r - (t.q.e + l - s), d = (h = M9(i, T, !1), h.a), p && d > i.f) return !1; if (p) { for (g = 0, E = new x(n.d); E.a < E.c.c.length; ) j = u(A(E), 319), g += ste(j, i.f) + s; - M = r - g; + T = r - g; } - return M < i.g || (a = c == e.c.length - 1 && M >= (qe(c, e.c.length), u(e.c[c], 186)).e, !p && d > n.b && !a) ? !1 : ((a || p || d <= n.b) && (a && d > n.b ? (t.d = d, Ky(t, IJe(t, d))) : (U_e(t.q, l), t.c = !0), Ky(i, r - (t.s + t.r)), T7(i, t.q.e + t.q.d, n.f), uM(n, i), e.c.length > c && (P7((qe(c, e.c.length), u(e.c[c], 186)), i), (qe(c, e.c.length), u(e.c[c], 186)).a.c.length == 0 && La(e, c)), v = !0), v); + return T < i.g || (a = c == e.c.length - 1 && T >= (qe(c, e.c.length), u(e.c[c], 186)).e, !p && d > n.b && !a) ? !1 : ((a || p || d <= n.b) && (a && d > n.b ? (t.d = d, Ky(t, CJe(t, d))) : (zBe(t.q, l), t.c = !0), Ky(i, r - (t.s + t.r)), T7(i, t.q.e + t.q.d, n.f), uM(n, i), e.c.length > c && (P7((qe(c, e.c.length), u(e.c[c], 186)), i), (qe(c, e.c.length), u(e.c[c], 186)).a.c.length == 0 && La(e, c)), v = !0), v); } - function BCn(e, n) { + function _Cn(e, n) { var t, i, r, c, s, f, h, l, a, d; - for (e.a = new dIe(l6n(a8)), i = new x(n.a); i.a < i.c.c.length; ) { - for (t = u(A(i), 839), f = new bF(I(T(hG, 1), Ve, 82, 0, [])), he(e.a.a, f), l = new x(t.d); l.a < l.c.c.length; ) + for (e.a = new bIe(l6n(a8)), i = new x(n.a); i.a < i.c.c.length; ) { + for (t = u(A(i), 839), f = new bF(I(S(hG, 1), Ve, 82, 0, [])), he(e.a.a, f), l = new x(t.d); l.a < l.c.c.length; ) h = u(A(l), 119), a = new VX(e, h), sie(a, u(y(t.c, (te(), fa)), 22)), eu(e.g, t) || (ht(e.g, t, new ue(h.c, h.d)), ht(e.f, t, a)), he(e.a.b, a), RD(f, a); for (s = new x(t.b); s.a < s.c.c.length; ) - c = u(A(s), 591), a = new VX(e, c.Bf()), ht(e.b, c, new Ar(f, a)), sie(a, u(y(t.c, (te(), fa)), 22)), c.zf() && (d = new oee(e, c.zf(), 1), sie(d, u(y(t.c, fa), 22)), r = new bF(I(T(hG, 1), Ve, 82, 0, [])), RD(r, d), Je(e.c, c.yf(), new Ar(f, d))); + c = u(A(s), 591), a = new VX(e, c.Bf()), ht(e.b, c, new Ar(f, a)), sie(a, u(y(t.c, (te(), fa)), 22)), c.zf() && (d = new oee(e, c.zf(), 1), sie(d, u(y(t.c, fa), 22)), r = new bF(I(S(hG, 1), Ve, 82, 0, [])), RD(r, d), Je(e.c, c.yf(), new Ar(f, d))); } return e.a; } - function _Cn(e, n, t) { + function BCn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p; for (t.Tg("Breadth-first cycle removal", 1), e.c = n, d = n.a, e.a = new Dt(), e.e = new vi(), e.d = new vi(), e.f = W(zu, zf, 30, d.c.length, 16, 1), e.b = new le(), f = 0, a = new x(d); a.a < a.c.c.length; ) l = u(A(a), 9), l.p = f, yw(bi(l)) && ki(e.e, l), yw(Ht(l)) && ki(e.d, l), ++f; @@ -28073,9 +28163,9 @@ function WDn() { } return t; } - function VUe(e) { + function QUe(e) { var n; - this.a = e, n = (cn(), I(T(gG, 1), ce, 249, 0, [si, yi, Ai, su, _c, Eh, Uj, pk])).length, this.b = lw(zq, [oe, yce], [590, 147], 0, [n, n], 2), this.c = lw(zq, [oe, yce], [590, 147], 0, [n, n], 2), xD(this, si, (ae(), g0), kg), U6(this, si, yi, w0, rd), Dy(this, si, su, w0), Dy(this, si, Ai, w0), U6(this, si, _c, g0, kg), xD(this, yi, Mf, mg), Dy(this, yi, su, Mf), Dy(this, yi, Ai, Mf), U6(this, yi, _c, w0, rd), A$e(this, su, Mf), Dy(this, su, Ai, Mf), Dy(this, su, _c, xH), A$e(this, Ai, Fk), U6(this, Ai, _c, u4, c4), xD(this, _c, Mf, Mf), xD(this, Eh, Mf, mg), U6(this, Eh, si, w0, rd), U6(this, Eh, _c, w0, rd), U6(this, Eh, yi, w0, rd); + this.a = e, n = (cn(), I(S(gG, 1), ce, 249, 0, [si, yi, Ai, su, Bc, Eh, Uj, pk])).length, this.b = lw(zq, [fe, yce], [590, 147], 0, [n, n], 2), this.c = lw(zq, [fe, yce], [590, 147], 0, [n, n], 2), xD(this, si, (ae(), g0), kg), U6(this, si, yi, w0, rd), Dy(this, si, su, w0), Dy(this, si, Ai, w0), U6(this, si, Bc, g0, kg), xD(this, yi, Mf, mg), Dy(this, yi, su, Mf), Dy(this, yi, Ai, Mf), U6(this, yi, Bc, w0, rd), x$e(this, su, Mf), Dy(this, su, Ai, Mf), Dy(this, su, Bc, xH), x$e(this, Ai, Fk), U6(this, Ai, Bc, u4, c4), xD(this, Bc, Mf, Mf), xD(this, Eh, Mf, mg), U6(this, Eh, si, w0, rd), U6(this, Eh, Bc, w0, rd), U6(this, Eh, yi, w0, rd); } function GCn(e, n, t, i, r, c) { var s; @@ -28084,9 +28174,9 @@ function WDn() { if (!e && !(t != null && Nh(t, Fu(35)) == -1 && t.length > 0 && (bn(0, t.length), t.charCodeAt(0) != 47))) throw $(new on("invalid opaquePart: " + t)); if (e && !(n != null && J4(fP, n.toLowerCase())) && !(t == null || !uF(t, E8, A8))) - throw $(new on(DVe + t)); + throw $(new on(NVe + t)); if (e && n != null && J4(fP, n.toLowerCase()) && !R7n(t)) - throw $(new on(DVe + t)); + throw $(new on(NVe + t)); if (!q9n(i)) throw $(new on("invalid device: " + i)); if (!G6n(r)) @@ -28094,19 +28184,19 @@ function WDn() { if (!(c == null || Nh(c, Fu(35)) == -1)) throw $(new on("invalid query: " + c)); } - function QUe(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; - if (g = new vr(e.o), M = n.a / g.a, f = n.b / g.b, j = n.a - g.a, c = n.b - g.b, t) + function YUe(e, n, t) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; + if (g = new vr(e.o), T = n.a / g.a, f = n.b / g.b, j = n.a - g.a, c = n.b - g.b, t) for (r = z(y(e, (ae(), oi))) === z((Ui(), Vc)), v = new x(e.j); v.a < v.c.c.length; ) switch (p = u(A(v), 12), p.j.g) { case 1: - r || (p.n.a *= M); + r || (p.n.a *= T); break; case 2: p.n.a += j, r || (p.n.b *= f); break; case 3: - r || (p.n.a *= M), p.n.b += c; + r || (p.n.a *= T), p.n.b += c; break; case 4: r || (p.n.b *= f); @@ -28116,13 +28206,13 @@ function WDn() { e.o.a = n.a, e.o.b = n.b, K(e, (ae(), d0), (Js(), i = u(Ff(v8), 10), new wo(i, u(af(i, i.length), 10), 0))); } function HCn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; - if (t.Tg("Network simplex layering", 1), e.b = n, M = u(y(n, (ae(), Rk)), 15).a * 4, E = e.b.a, E.c.length < 1) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; + if (t.Tg("Network simplex layering", 1), e.b = n, T = u(y(n, (ae(), Rk)), 15).a * 4, E = e.b.a, E.c.length < 1) { t.Ug(); return; } for (c = NTn(e, E), j = null, r = Nn(c, 0); r.b != r.d.c; ) { - for (i = u(Ln(r), 16), f = M * dr(m.Math.sqrt(i.gc())), s = VTn(i), AR(mW(Vln(vW(LL(s), f), j), !0), t.dh(1)), g = e.b.b, v = new x(s.a); v.a < v.c.c.length; ) { + for (i = u(Ln(r), 16), f = T * dr(m.Math.sqrt(i.gc())), s = VTn(i), AR(mW(Vln(vW(LL(s), f), j), !0), t.dh(1)), g = e.b.b, v = new x(s.a); v.a < v.c.c.length; ) { for (p = u(A(v), 124); g.c.length <= p.e; ) Md(g, g.c.length, new Jc(e.b)); a = u(p.f, 9), Ni(a, u(pe(g, p.e), 25)); @@ -28144,12 +28234,12 @@ function WDn() { s = u(iY(l), 12), e.d[s.p] = r++, sn(a.c, s); break; case 3: - wc(t, Ble).dc() || (s = u(wc(t, Ble).Xb(0), 12), e.d[s.p] = r++, sn(a.c, s)), wc(t, pC).dc() || M1(d, t); + wc(t, _le).dc() || (s = u(wc(t, _le).Xb(0), 12), e.d[s.p] = r++, sn(a.c, s)), wc(t, pC).dc() || M1(d, t); break; case 1: for (f = wc(t, (be(), an)).Jc(); f.Ob(); ) s = u(f.Pb(), 12), e.d[s.p] = r++, sn(a.c, s); - wc(t, gn).Ic(new ZAe(d, t)); + wc(t, gn).Ic(new exe(d, t)); } return HZ(e, d, a, pC, r), a; } @@ -28159,7 +28249,7 @@ function WDn() { return null; if (c = u(nu(e.f, n), 21), !c) { for (r = (p = new Rl(e.d).a.vc().Jc(), new zb(p)); r.a.Ob(); ) - if (t = (s = u(r.a.Pb(), 45), u(s.kd(), 21)), f = t.f, v = n.length, _e(f.substr(f.length - v, v), n) && (n.length == f.length || or(f, f.length - n.length - 1) == 46)) { + if (t = (s = u(r.a.Pb(), 45), u(s.kd(), 21)), f = t.f, v = n.length, Be(f.substr(f.length - v, v), n) && (n.length == f.length || or(f, f.length - n.length - 1) == 46)) { if (c) return null; c = t; @@ -28168,7 +28258,7 @@ function WDn() { for (i = (g = new Rl(e.d).a.vc().Jc(), new zb(g)); i.a.Ob(); ) if (t = (s = u(i.a.Pb(), 45), u(s.kd(), 21)), d = t.g, d != null) { for (h = d, l = 0, a = h.length; l < a; ++l) - if (f = h[l], v = n.length, _e(f.substr(f.length - v, v), n) && (n.length == f.length || or(f, f.length - n.length - 1) == 46)) { + if (f = h[l], v = n.length, Be(f.substr(f.length - v, v), n) && (n.length == f.length || or(f, f.length - n.length - 1) == 46)) { if (c) return null; c = t; @@ -28200,10 +28290,10 @@ function WDn() { HM(e, t, 0), rjn(e); } function zCn(e, n, t, i, r) { - var c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; - for (R = JTe(e), h = new le(), c = e.c.length, l = c - 1, a = c + 1; R.a.gc() != 0; ) { + var c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; + for (R = GTe(e), h = new le(), c = e.c.length, l = c - 1, a = c + 1; R.a.gc() != 0; ) { for (; t.b != 0; ) - M = (An(t.b != 0), u(mo(t, t.a.a), 116)), R.a.Ac(M) != null, M.g = l--, Ute(M, n, t, i); + T = (An(t.b != 0), u(mo(t, t.a.a), 116)), R.a.Ac(T) != null, T.g = l--, Ute(T, n, t, i); for (; n.b != 0; ) D = (An(n.b != 0), u(mo(n, n.a.a), 116)), R.a.Ac(D) != null, D.g = a++, Ute(D, n, t, i); for (f = Yi, j = R.a.ec().Jc(); j.Ob(); ) { @@ -28219,15 +28309,15 @@ function WDn() { d = u(A(g), 116), d.g < c && (d.g = d.g + E); } function WCn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; - for (l = S_, h = _2, M = new le(), v = new x(n); v.a < v.c.c.length; ) { - for (p = u(A(v), 9), r = new le(), f = new fn(dn(bi(p).a.Jc(), new Q())); xn(f); ) + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; + for (l = SB, h = B2, T = new le(), v = new x(n); v.a < v.c.c.length; ) { + for (p = u(A(v), 9), r = new le(), f = new fn(dn(bi(p).a.Jc(), new Y())); xn(f); ) c = u(pn(f), 17), E = c.d.i, j = c.c.i, E.c.p == t && sn(r.c, E), j.c.p == t && sn(r.c, j); - for (s = new fn(dn(Ht(p).a.Jc(), new Q())); xn(s); ) + for (s = new fn(dn(Ht(p).a.Jc(), new Y())); xn(s); ) c = u(pn(s), 17), E = c.d.i, j = c.c.i, E.c.p == t && sn(r.c, E), j.c.p == t && sn(r.c, j); - r.c.length == 0 ? sn(M.c, p) : (ze(), Di(r, e.b), g = _(H(y(u(pe(r, r.c.length / 2 | 0), 9), (te(), cp)))), K(p, cp, g), l = m.Math.min(l, g), h = m.Math.max(h, g)); + r.c.length == 0 ? sn(T.c, p) : (ze(), Di(r, e.b), g = B(H(y(u(pe(r, r.c.length / 2 | 0), 9), (te(), cp)))), K(p, cp, g), l = m.Math.min(l, g), h = m.Math.max(h, g)); } - for (i = (h + l) / 2, d = new x(M); d.a < d.c.c.length; ) + for (i = (h + l) / 2, d = new x(T); d.a < d.c.c.length; ) a = u(A(d), 9), K(a, (te(), cp), i); } function XCn(e, n) { @@ -28235,19 +28325,19 @@ function WDn() { for (r = new x(e.a.b); r.a < r.c.c.length; ) for (t = u(A(r), 25), h = new x(t.a); h.a < h.c.c.length; ) f = u(A(h), 9), n.j[f.p] = f, n.i[f.p] = n.o == (uh(), Ah) ? Ri : ii; - for (Fc(e.c), s = e.a.b, n.c == (Rh(), e1) && (s = _s(s)), F3n(e.e, n, e.b), Z8(n.p, null), c = s.Jc(); c.Ob(); ) - for (t = u(c.Pb(), 25), l = t.a, n.o == (uh(), Ah) && (l = _s(l)), g = l.Jc(); g.Ob(); ) - d = u(g.Pb(), 9), n.g[d.p] == d && Nze(e, d, n); + for (Fc(e.c), s = e.a.b, n.c == (Rh(), e1) && (s = Bs(s)), F3n(e.e, n, e.b), Z8(n.p, null), c = s.Jc(); c.Ob(); ) + for (t = u(c.Pb(), 25), l = t.a, n.o == (uh(), Ah) && (l = Bs(l)), g = l.Jc(); g.Ob(); ) + d = u(g.Pb(), 9), n.g[d.p] == d && Fze(e, d, n); for ($Cn(e, n), i = s.Jc(); i.Ob(); ) for (t = u(i.Pb(), 25), g = new x(t.a); g.a < g.c.c.length; ) - d = u(A(g), 9), n.p[d.p] = n.p[n.g[d.p].p], d == n.g[d.p] && (a = _(n.i[n.j[d.p].p]), (n.o == (uh(), Ah) && a > Ri || n.o == p0 && a < ii) && (n.p[d.p] = _(n.p[d.p]) + a)); + d = u(A(g), 9), n.p[d.p] = n.p[n.g[d.p].p], d == n.g[d.p] && (a = B(n.i[n.j[d.p].p]), (n.o == (uh(), Ah) && a > Ri || n.o == p0 && a < ii) && (n.p[d.p] = B(n.p[d.p]) + a)); e.e.wg(); } function KCn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v, j, E; if (ve(me(y(t, (ae(), dg))))) for (f = new x(t.j); f.a < f.c.c.length; ) - for (s = u(A(f), 12), g = _h(s.g), l = g, a = 0, d = l.length; a < d; ++a) + for (s = u(A(f), 12), g = Bh(s.g), l = g, a = 0, d = l.length; a < d; ++a) h = l[a], c = h.d.i == t, r = c && ve(me(y(h, a0))), r && (v = h.c, p = u(rn(e.b, v), 9), p || (p = nj(v, (Ui(), Sh), v.j, -1, null, null, v.o, u(y(n, co), 86), n), K(p, (te(), $t), v), ht(e.b, v, p), he(n.a, p)), E = h.d, j = u(rn(e.b, E), 9), j || (j = nj(E, (Ui(), Sh), E.j, 1, null, null, E.o, u(y(n, co), 86), n), K(j, (te(), $t), E), ht(e.b, E, j), he(n.a, j)), i = XD(h), br(i, u(pe(p.j, 0), 12)), Ki(i, u(pe(j.j, 0), 12)), Je(e.a, h, new Fx(i, n, (Cr(), yu))), u(y(n, (te(), ou)), 22).Ec((Pr(), So))); } function VCn(e, n, t, i, r) { @@ -28255,11 +28345,11 @@ function WDn() { for (c = new le(), l = new x(i); l.a < l.c.c.length; ) if (f = u(A(l), 444), s = null, f.f == (Cr(), yu)) for (v = new x(f.e); v.a < v.c.c.length; ) - p = u(A(v), 17), E = p.d.i, _i(E) == n ? JDe(e, n, f, p, f.b, p.d) : !t || Av(E, t) ? Bjn(e, n, f, i, p) : (g = FR(e, n, t, p, f.b, yu, s), g != s && sn(c.c, g), g.c && (s = g)); + p = u(A(v), 17), E = p.d.i, Bi(E) == n ? GDe(e, n, f, p, f.b, p.d) : !t || Av(E, t) ? _jn(e, n, f, i, p) : (g = FR(e, n, t, p, f.b, yu, s), g != s && sn(c.c, g), g.c && (s = g)); else for (d = new x(f.e); d.a < d.c.c.length; ) - if (a = u(A(d), 17), j = a.c.i, _i(j) == n) - JDe(e, n, f, a, a.c, f.b); + if (a = u(A(d), 17), j = a.c.i, Bi(j) == n) + GDe(e, n, f, a, a.c, f.b); else { if (!t || Av(j, t)) continue; @@ -28269,24 +28359,24 @@ function WDn() { f = u(A(h), 444), dc(n.a, f.a, 0) != -1 || he(n.a, f.a), f.c && sn(r.c, f); } function QCn(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; - for (r = u(y(e, (Bt(), Qk)), 26), l = pt, a = pt, f = Yi, h = Yi, R = Nn(e.b, 0); R.b != R.d.c; ) - M = u(Ln(R), 40), p = M.e, v = M.f, l = m.Math.min(l, p.a - v.a / 2), a = m.Math.min(a, p.b - v.b / 2), f = m.Math.max(f, p.a + v.a / 2), h = m.Math.max(h, p.b + v.b / 2); + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; + for (r = u(y(e, (_t(), Qk)), 26), l = pt, a = pt, f = Yi, h = Yi, R = Nn(e.b, 0); R.b != R.d.c; ) + T = u(Ln(R), 40), p = T.e, v = T.f, l = m.Math.min(l, p.a - v.a / 2), a = m.Math.min(a, p.b - v.b / 2), f = m.Math.max(f, p.a + v.a / 2), h = m.Math.max(h, p.b + v.b / 2); for (g = u(re(r, (Ac(), dae)), 104), D = Nn(e.b, 0); D.b != D.d.c; ) - M = u(Ln(D), 40), d = y(M, Qk), N(d, 206) && (c = u(d, 26), ao(c, M.e.a, M.e.b), q7(c, M)); + T = u(Ln(D), 40), d = y(T, Qk), N(d, 206) && (c = u(d, 26), ao(c, T.e.a, T.e.b), q7(c, T)); for (E = Nn(e.a, 0); E.b != E.d.c; ) j = u(Ln(E), 65), i = u(y(j, Qk), 85), i && (n = j.a, t = ET(i), zte(n, t)); J = f - l + (g.b + g.c), s = h - a + (g.d + g.a), ve(me(re(r, (tt(), $g)))) || ab(r, J, s, !1, !1), Pt(r, xg, J - (g.b + g.c)), Pt(r, Ag, s - (g.d + g.a)); } - function YUe(e) { + function ZUe(e) { var n, t, i, r, c, s, f; for (n = 0, c = new x(e.b.a); c.a < c.c.c.length; ) i = u(A(c), 194), i.b = 0, i.c = 0; - for (MJe(e, 0), sF(e, e.g), yT(e.c), dW(e.c), t = (Mi(), Qr), V7(zO(L2(V7(zO(L2(V7(L2(e.c, t)), PRe(t)))), t))), L2(e.c, Qr), nF(e, e.g), aJe(e, 0), OUe(e, 0), lHe(e, 1), MJe(e, 1), sF(e, e.d), yT(e.c), s = new x(e.b.a); s.a < s.c.c.length; ) + for (TJe(e, 0), sF(e, e.g), yT(e.c), dW(e.c), t = (Mi(), Qr), V7(zO(L2(V7(zO(L2(V7(L2(e.c, t)), ORe(t)))), t))), L2(e.c, Qr), nF(e, e.g), dJe(e, 0), LUe(e, 0), aHe(e, 1), TJe(e, 1), sF(e, e.d), yT(e.c), s = new x(e.b.a); s.a < s.c.c.length; ) i = u(A(s), 194), n += m.Math.abs(i.c); for (f = new x(e.b.a); f.a < f.c.c.length; ) i = u(A(f), 194), i.b = 0, i.c = 0; - for (t = Io, V7(zO(L2(V7(zO(L2(V7(dW(L2(e.c, t))), PRe(t)))), t))), L2(e.c, Qr), nF(e, e.d), aJe(e, 1), OUe(e, 1), lHe(e, 0), dW(e.c), r = new x(e.b.a); r.a < r.c.c.length; ) + for (t = Io, V7(zO(L2(V7(zO(L2(V7(dW(L2(e.c, t))), ORe(t)))), t))), L2(e.c, Qr), nF(e, e.d), dJe(e, 1), LUe(e, 1), aHe(e, 0), dW(e.c), r = new x(e.b.a); r.a < r.c.c.length; ) i = u(A(r), 194), n += m.Math.abs(i.c); return n; } @@ -28297,13 +28387,13 @@ function WDn() { case 1: case 2: case 3: - B$n(i); + _$n(i); break; case 4: - g = u(y(i, Db), 8), p = g ? g.a : 0, i.n.a = f * _(H(y(i, (te(), Cb)))) - p, yM(i, !0, !1); + g = u(y(i, Db), 8), p = g ? g.a : 0, i.n.a = f * B(H(y(i, (te(), Cb)))) - p, yM(i, !0, !1); break; case 5: - v = u(y(i, Db), 8), j = v ? v.a : 0, i.n.a = _(H(y(i, (te(), Cb)))) - j, yM(i, !0, !1), s.a = m.Math.max(s.a, i.n.a + i.o.a / 2); + v = u(y(i, Db), 8), j = v ? v.a : 0, i.n.a = B(H(y(i, (te(), Cb)))) - j, yM(i, !0, !1), s.a = m.Math.max(s.a, i.n.a + i.o.a / 2); } switch (u(y(i, (te(), Sc)), 64).g) { case 1: @@ -28316,26 +28406,26 @@ function WDn() { switch (t.g) { case 1: case 2: - mRe(l, e), mRe(d, e); + vRe(l, e), vRe(d, e); break; case 3: - vRe(l, e), vRe(d, e); + kRe(l, e), kRe(d, e); } } function ZCn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v; - for (t.Tg("Label dummy switching", 1), i = u(y(n, (ae(), YI)), 231), x4n(n), r = Sxn(n, i), e.a = W(Xi, Gr, 30, n.b.c.length, 15, 1), f = (T3(), I(T(K5, 1), ce, 231, 0, [X5, vk, W5, og, Q2, V2])), a = 0, p = f.length; a < p; ++a) + for (t.Tg("Label dummy switching", 1), i = u(y(n, (ae(), YI)), 231), x4n(n), r = Sxn(n, i), e.a = W(Xi, Gr, 30, n.b.c.length, 15, 1), f = (T3(), I(S(K5, 1), ce, 231, 0, [X5, vk, W5, og, Q2, V2])), a = 0, p = f.length; a < p; ++a) if (c = f[a], (c == Q2 || c == V2 || c == og) && !u(Yu(r.a, c) ? r.b[c.g] : null, 16).dc()) { T4n(e, n); break; } - for (h = I(T(K5, 1), ce, 231, 0, [X5, vk, W5, og, Q2, V2]), d = 0, v = h.length; d < v; ++d) - c = h[d], c == Q2 || c == V2 || c == og || _qe(e, u(Yu(r.a, c) ? r.b[c.g] : null, 16)); - for (s = I(T(K5, 1), ce, 231, 0, [X5, vk, W5, og, Q2, V2]), l = 0, g = s.length; l < g; ++l) - c = s[l], (c == Q2 || c == V2 || c == og) && _qe(e, u(Yu(r.a, c) ? r.b[c.g] : null, 16)); + for (h = I(S(K5, 1), ce, 231, 0, [X5, vk, W5, og, Q2, V2]), d = 0, v = h.length; d < v; ++d) + c = h[d], c == Q2 || c == V2 || c == og || Jqe(e, u(Yu(r.a, c) ? r.b[c.g] : null, 16)); + for (s = I(S(K5, 1), ce, 231, 0, [X5, vk, W5, og, Q2, V2]), l = 0, g = s.length; l < g; ++l) + c = s[l], (c == Q2 || c == V2 || c == og) && Jqe(e, u(Yu(r.a, c) ? r.b[c.g] : null, 16)); e.a = null, t.Ug(); } - function ZUe(e, n) { + function eze(e, n) { var t, i, r, c, s, f, h, l, a; if (l = n, !(l.b == null || e.b == null)) { for (S2(e), T9(e), S2(l), T9(l), t = W(Wn, lt, 30, e.b.length + l.b.length, 15, 1), a = 0, i = 0, s = 0; i < e.b.length && s < l.b.length; ) @@ -28355,26 +28445,26 @@ function WDn() { function ePn(e) { var n, t, i, r, c, s, f; for (n = new le(), e.g = new le(), e.d = new le(), s = new Tw(new Ub(e.f.b).a); s.b; ) - c = v2(s), he(n, u(u(c.kd(), 49).b, 82)), _l(u(c.jd(), 591).yf()) ? he(e.d, u(c.kd(), 49)) : he(e.g, u(c.kd(), 49)); - for (sF(e, e.d), sF(e, e.g), e.c = new xGe(e.b), Kln(e.c, (NW(), RZe)), nF(e, e.d), nF(e, e.g), Ci(n, e.c.a.b), e.e = new ue(ii, ii), e.a = new ue(Ri, Ri), i = new x(n); i.a < i.c.c.length; ) + c = v2(s), he(n, u(u(c.kd(), 49).b, 82)), Bl(u(c.jd(), 591).yf()) ? he(e.d, u(c.kd(), 49)) : he(e.g, u(c.kd(), 49)); + for (sF(e, e.d), sF(e, e.g), e.c = new $Ge(e.b), Kln(e.c, (NW(), _Ze)), nF(e, e.d), nF(e, e.g), Ci(n, e.c.a.b), e.e = new ue(ii, ii), e.a = new ue(Ri, Ri), i = new x(n); i.a < i.c.c.length; ) t = u(A(i), 82), e.e.a = m.Math.min(e.e.a, t.g.c), e.e.b = m.Math.min(e.e.b, t.g.d), e.a.a = m.Math.max(e.a.a, t.g.c + t.g.b), e.a.b = m.Math.max(e.a.b, t.g.d + t.g.a); - kW(e.c, new hwe()), f = 0; + kW(e.c, new lwe()), f = 0; do - r = YUe(e), ++f; + r = ZUe(e), ++f; while ((f < 2 || r > U1) && f < 10); - kW(e.c, new lwe()), YUe(e), Rgn(e.c), PCn(e.f); + kW(e.c, new awe()), ZUe(e), Rgn(e.c), PCn(e.f); } function nPn(e, n) { var t, i, r, c, s, f, h, l, a, d, g; switch (e.k.g) { case 1: if (i = u(y(e, (te(), $t)), 17), t = u(y(i, Pfe), 78), t ? ve(me(y(i, Qa))) && (t = cZ(t)) : t = new ms(), l = u(y(e, Qf), 12), l) { - if (a = bc(I(T(Ji, 1), oe, 8, 0, [l.i.n, l.n, l.a])), n <= a.a) + if (a = bc(I(S(Ji, 1), fe, 8, 0, [l.i.n, l.n, l.a])), n <= a.a) return a.b; ti(t, a, t.a, t.a.a); } if (d = u(y(e, Vo), 12), d) { - if (g = bc(I(T(Ji, 1), oe, 8, 0, [d.i.n, d.n, d.a])), g.a <= n) + if (g = bc(I(S(Ji, 1), fe, 8, 0, [d.i.n, d.n, d.a])), g.a <= n) return g.b; ti(t, g, t.c.b, t.c); } @@ -28392,7 +28482,7 @@ function WDn() { return r.n.b + r.o.b; } } - return Bee(e).b; + return _ee(e).b; } function tPn(e) { var n, t, i, r, c, s, f, h, l, a, d; @@ -28402,61 +28492,61 @@ function WDn() { i = u(G2n(Jh(f)), 17), a = i.c.i, a == f && (a = i.d.i), d = new Ar(a, Fi(kr(f.n), a.n)), ht(e.b, f, d); continue; } - r = new df(f.n.a - f.d.b, f.n.b - f.d.d, f.o.a + f.d.b + f.d.c, f.o.b + f.d.d + f.d.a), n = aMe(mAe(gAe(pAe(new Yz(), f), r), ben), e.a), lMe(Ean(sNe(new Qz(), I(T(nI, 1), Ve, 60, 0, [n])), n), e.a), l = new YP(), ht(e.e, n, l), t = _f(new fn(dn(bi(f).a.Jc(), new Q()))) - _f(new fn(dn(Ht(f).a.Jc(), new Q()))), t < 0 ? g7(l, !0, (Mi(), Qr)) : t > 0 && g7(l, !0, (Mi(), nc)), f.k == (cn(), Ai) && TIe(l), ht(e.f, f, n); + r = new df(f.n.a - f.d.b, f.n.b - f.d.d, f.o.a + f.d.b + f.d.c, f.o.b + f.d.d + f.d.a), n = dMe(vAe(pAe(mAe(new Yz(), f), r), wen), e.a), aMe(Ean(oNe(new Qz(), I(S(nI, 1), Ve, 60, 0, [n])), n), e.a), l = new YP(), ht(e.e, n, l), t = Bf(new fn(dn(bi(f).a.Jc(), new Y()))) - Bf(new fn(dn(Ht(f).a.Jc(), new Y()))), t < 0 ? g7(l, !0, (Mi(), Qr)) : t > 0 && g7(l, !0, (Mi(), nc)), f.k == (cn(), Ai) && SIe(l), ht(e.f, f, n); } } - function eze(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D; + function nze(e, n) { + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D; for (l = ii, a = ii, f = Ri, h = Ri, g = new x(n.i); g.a < g.c.c.length; ) d = u(A(g), 68), r = u(u(rn(e.g, d.a), 49).b, 26), ao(r, d.b.c, d.b.d), l = m.Math.min(l, r.i), a = m.Math.min(a, r.j), f = m.Math.max(f, r.i + r.g), h = m.Math.max(h, r.j + r.f); - for (p = u(re(e.c, (N7(), Fun)), 104), ab(e.c, f - l + (p.b + p.c), h - a + (p.d + p.a), !0, !0), cne(e.c, -l + p.b, -a + p.d), i = new kn(BIe(e.c)); i.e != i.i.gc(); ) - t = u(En(i), 85), s = ET(t), v = QF(t), E = wJe(t), j = new ue(v.i + v.g / 2, v.j + v.f / 2), c = new ue(E.i + E.g / 2, E.j + E.f / 2), M = Fi(new ue(c.a, c.b), j), zv(M, v.g, v.f), At(j, M), D = Fi(new ue(j.a, j.b), c), zv(D, E.g, E.f), At(c, D), by(s, j.a, j.b), dy(s, c.a, c.b); + for (p = u(re(e.c, (N7(), Run)), 104), ab(e.c, f - l + (p.b + p.c), h - a + (p.d + p.a), !0, !0), cne(e.c, -l + p.b, -a + p.d), i = new kn(BIe(e.c)); i.e != i.i.gc(); ) + t = u(En(i), 85), s = ET(t), v = QF(t), E = gJe(t), j = new ue(v.i + v.g / 2, v.j + v.f / 2), c = new ue(E.i + E.g / 2, E.j + E.f / 2), T = Fi(new ue(c.a, c.b), j), zv(T, v.g, v.f), At(j, T), D = Fi(new ue(j.a, j.b), c), zv(D, E.g, E.f), At(c, D), by(s, j.a, j.b), dy(s, c.a, c.b); } - function nze(e, n) { + function tze(e, n) { var t, i, r, c, s, f, h, l, a, d; - for (h = !0, r = 0, l = e.g[n.p], a = n.o.b + e.o, t = e.d[n.p][2], Ks(e.b, l, ie(u(pe(e.b, l), 15).a - 1 + t)), Ks(e.c, l, _(H(pe(e.c, l))) - a + t * e.f), ++l, l >= e.j ? (++e.j, he(e.b, ie(1)), he(e.c, a)) : (i = e.d[n.p][1], Ks(e.b, l, ie(u(pe(e.b, l), 15).a + 1 - i)), Ks(e.c, l, _(H(pe(e.c, l))) + a - i * e.f)), (e.r == (G1(), hE) && (u(pe(e.b, l), 15).a > e.k || u(pe(e.b, l - 1), 15).a > e.k) || e.r == lE && (_(H(pe(e.c, l))) > e.n || _(H(pe(e.c, l - 1))) > e.n)) && (h = !1), s = new fn(dn(bi(n).a.Jc(), new Q())); xn(s); ) - c = u(pn(s), 17), f = c.c.i, e.g[f.p] == l && (d = nze(e, f), r = r + u(d.a, 15).a, h = h && ve(me(d.b))); + for (h = !0, r = 0, l = e.g[n.p], a = n.o.b + e.o, t = e.d[n.p][2], Ks(e.b, l, ie(u(pe(e.b, l), 15).a - 1 + t)), Ks(e.c, l, B(H(pe(e.c, l))) - a + t * e.f), ++l, l >= e.j ? (++e.j, he(e.b, ie(1)), he(e.c, a)) : (i = e.d[n.p][1], Ks(e.b, l, ie(u(pe(e.b, l), 15).a + 1 - i)), Ks(e.c, l, B(H(pe(e.c, l))) + a - i * e.f)), (e.r == (G1(), hE) && (u(pe(e.b, l), 15).a > e.k || u(pe(e.b, l - 1), 15).a > e.k) || e.r == lE && (B(H(pe(e.c, l))) > e.n || B(H(pe(e.c, l - 1))) > e.n)) && (h = !1), s = new fn(dn(bi(n).a.Jc(), new Y())); xn(s); ) + c = u(pn(s), 17), f = c.c.i, e.g[f.p] == l && (d = tze(e, f), r = r + u(d.a, 15).a, h = h && ve(me(d.b))); return e.g[n.p] = l, r = r + e.d[n.p][0], new Ar(ie(r), (en(), !!h)); } function iPn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X; - return g = e.c[n], p = e.c[t], v = u(y(g, (te(), cm)), 16), !!v && v.gc() != 0 && v.Gc(p) || (j = g.k != (cn(), yi) && p.k != yi, E = u(y(g, Ib), 9), M = u(y(p, Ib), 9), D = E != M, R = !!E && E != g || !!M && M != p, J = IF(g, (be(), ln)), V = IF(p, Mn), R = R | (IF(g, Mn) || IF(p, ln)), X = R && D || J || V, j && X) || g.k == (cn(), su) && p.k == si || p.k == (cn(), su) && g.k == si ? !1 : (a = e.c[n], c = e.c[t], r = F_e(e.e, a, c, (be(), an)), h = F_e(e.i, a, c, gn), I$n(e.f, a, c), l = qFe(e.b, a, c) + u(r.a, 15).a + u(h.a, 15).a + e.f.d, f = qFe(e.b, c, a) + u(r.b, 15).a + u(h.b, 15).a + e.f.b, e.a && (d = u(y(a, $t), 12), s = u(y(c, $t), 12), i = y_e(e.g, d, s), l += u(i.a, 15).a, f += u(i.b, 15).a), l > f); + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X; + return g = e.c[n], p = e.c[t], v = u(y(g, (te(), cm)), 16), !!v && v.gc() != 0 && v.Gc(p) || (j = g.k != (cn(), yi) && p.k != yi, E = u(y(g, Ib), 9), T = u(y(p, Ib), 9), D = E != T, R = !!E && E != g || !!T && T != p, J = IF(g, (be(), ln)), V = IF(p, Mn), R = R | (IF(g, Mn) || IF(p, ln)), X = R && D || J || V, j && X) || g.k == (cn(), su) && p.k == si || p.k == (cn(), su) && g.k == si ? !1 : (a = e.c[n], c = e.c[t], r = RBe(e.e, a, c, (be(), an)), h = RBe(e.i, a, c, gn), I$n(e.f, a, c), l = UFe(e.b, a, c) + u(r.a, 15).a + u(h.a, 15).a + e.f.d, f = UFe(e.b, c, a) + u(r.b, 15).a + u(h.b, 15).a + e.f.b, e.a && (d = u(y(a, $t), 12), s = u(y(c, $t), 12), i = jBe(e.g, d, s), l += u(i.a, 15).a, f += u(i.b, 15).a), l > f); } - function tze(e, n) { + function ize(e, n) { var t, i, r, c, s; - t = _(H(y(n, (ae(), Mf)))), t < 2 && K(n, Mf, 2), i = u(y(n, co), 86), i == (Mi(), Th) && K(n, co, CM(n)), r = u(y(n, $in), 15), r.a == 0 ? K(n, (te(), sm), new rF()) : K(n, (te(), sm), new L$(r.a)), c = me(y(n, Dk)), c == null && K(n, Dk, (en(), z(y(n, la)) === z((na(), m4)))), fi(new Ge(null, new He(n.a, 16)), new Fz(e)), fi(cc(new Ge(null, new He(n.b, 16)), new XU()), new Rz(e)), s = new VUe(n), K(n, (te(), ip), s), Oy(e.a), Bf(e.a, (zi(), $f), u(y(n, lm), 188)), Bf(e.a, Al, u(y(n, nC), 188)), Bf(e.a, Xc, u(y(n, Ok), 188)), Bf(e.a, Kc, u(y(n, cC), 188)), Bf(e.a, Nr, L4n(u(y(n, la), 222))), xX(e.a, YOn(n)), K(n, cH, Z7(e.a, n)); + t = B(H(y(n, (ae(), Mf)))), t < 2 && K(n, Mf, 2), i = u(y(n, co), 86), i == (Mi(), Th) && K(n, co, CM(n)), r = u(y(n, Min), 15), r.a == 0 ? K(n, (te(), sm), new rF()) : K(n, (te(), sm), new L$(r.a)), c = me(y(n, Dk)), c == null && K(n, Dk, (en(), z(y(n, la)) === z((na(), m4)))), fi(new Ge(null, new He(n.a, 16)), new Fz(e)), fi(cc(new Ge(null, new He(n.b, 16)), new XU()), new Rz(e)), s = new QUe(n), K(n, (te(), ip), s), Oy(e.a), _f(e.a, (zi(), $f), u(y(n, lm), 188)), _f(e.a, Al, u(y(n, nC), 188)), _f(e.a, Xc, u(y(n, Ok), 188)), _f(e.a, Kc, u(y(n, cC), 188)), _f(e.a, Nr, L4n(u(y(n, la), 222))), xX(e.a, YOn(n)), K(n, cH, Z7(e.a, n)); } function uie(e, n, t, i, r) { - var c, s, f, h, l, a, d, g, p, v, j, E, M; - for (d = new Tn(), s = new le(), VJe(e, t, e.d.zg(), s, d), VJe(e, i, e.d.Ag(), s, d), e.b = 0.2 * (j = iHe(cc(new Ge(null, new He(s, 16)), new eme())), E = iHe(cc(new Ge(null, new He(s, 16)), new nme())), m.Math.min(j, E)), c = 0, f = 0; f < s.c.length - 1; f++) + var c, s, f, h, l, a, d, g, p, v, j, E, T; + for (d = new Tn(), s = new le(), QJe(e, t, e.d.zg(), s, d), QJe(e, i, e.d.Ag(), s, d), e.b = 0.2 * (j = rHe(cc(new Ge(null, new He(s, 16)), new nme())), E = rHe(cc(new Ge(null, new He(s, 16)), new tme())), m.Math.min(j, E)), c = 0, f = 0; f < s.c.length - 1; f++) for (h = (qe(f, s.c.length), u(s.c[f], 116)), v = f + 1; v < s.c.length; v++) c += Zte(e, h, (qe(v, s.c.length), u(s.c[v], 116))); - for (g = u(y(n, (te(), sm)), 234), c >= 2 && (M = xHe(s, !0, g), !e.e && (e.e = new yye(e)), $kn(e.e, M, s, e.b)), tJe(s, g), fPn(s), p = -1, a = new x(s); a.a < a.c.c.length; ) + for (g = u(y(n, (te(), sm)), 234), c >= 2 && (T = $He(s, !0, g), !e.e && (e.e = new jye(e)), $kn(e.e, T, s, e.b)), iJe(s, g), fPn(s), p = -1, a = new x(s); a.a < a.c.c.length; ) l = u(A(a), 116), !(m.Math.abs(l.s - l.c) < Vh) && (p = m.Math.max(p, l.o), e.d.xg(l, r, e.c)); return e.d.a.a.$b(), p + 1; } function rPn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; - for (d = u(Ex((s = Nn(new Bl(n).a.d, 0), new Ug(s))), 40), v = d ? u(y(d, (Bt(), iq)), 40) : null, r = 1; d && v; ) { + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; + for (d = u(Ex((s = Nn(new _l(n).a.d, 0), new Ug(s))), 40), v = d ? u(y(d, (_t(), iq)), 40) : null, r = 1; d && v; ) { for (h = 0, J = 0, t = d, i = v, f = 0; f < r; f++) - t = QD(t), i = QD(i), J += _(H(y(t, (Bt(), h4)))), h += _(H(y(i, h4))); - if (R = _(H(y(v, (Bt(), n1)))), D = _(H(y(d, n1))), g = FZ(e, d, v), p = R + h + e.b + g - D - J, 0 < p) { + t = QD(t), i = QD(i), J += B(H(y(t, (_t(), h4)))), h += B(H(y(i, h4))); + if (R = B(H(y(v, (_t(), n1)))), D = B(H(y(d, n1))), g = FZ(e, d, v), p = R + h + e.b + g - D - J, 0 < p) { for (l = n, a = 0; l && l != i; ) ++a, l = u(y(l, jC), 40); if (l) - for (M = p / a, l = n; l != i; ) - E = _(H(y(l, n1))) + p, K(l, n1, E), j = _(H(y(l, h4))) + p, K(l, h4, j), p -= M, l = u(y(l, jC), 40); + for (T = p / a, l = n; l != i; ) + E = B(H(y(l, n1))) + p, K(l, n1, E), j = B(H(y(l, h4))) + p, K(l, h4, j), p -= T, l = u(y(l, jC), 40); else return; } - ++r, d.d.b == 0 ? d = Dte(new Bl(n), r) : d = u(Ex((c = Nn(new Bl(d).a.d, 0), new Ug(c))), 40), v = d ? u(y(d, iq), 40) : null; + ++r, d.d.b == 0 ? d = Dte(new _l(n), r) : d = u(Ex((c = Nn(new _l(d).a.d, 0), new Ug(c))), 40), v = d ? u(y(d, iq), 40) : null; } } function cPn(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v; - for (n.Tg("Label dummy removal", 1), i = _(H(y(e, (ae(), sp)))), r = _(H(y(e, vg))), l = u(y(e, co), 86), h = new x(e.b); h.a < h.c.c.length; ) + for (n.Tg("Label dummy removal", 1), i = B(H(y(e, (ae(), sp)))), r = B(H(y(e, vg))), l = u(y(e, co), 86), h = new x(e.b); h.a < h.c.c.length; ) for (f = u(A(h), 25), d = new Vi(f.a, 0); d.b < d.d.gc(); ) - a = (An(d.b < d.d.gc()), u(d.d.Xb(d.c = d.b++), 9)), a.k == (cn(), _c) && (g = u(y(a, (te(), $t)), 17), v = _(H(y(g, Ya))), s = z(y(a, um)) === z((Zs(), hd)), t = new vr(a.n), s && (t.b += v + i), c = new ue(a.o.a, a.o.b + (a.k == _c && !Hm(mt(u(y(a, xk), 16).Mc(), new Dm(new VU()))).zd((Ad(), V3)) ? 0 : -v - i)), p = u(y(a, xk), 16), l == (Mi(), Io) || l == Mh ? axn(p, t, r, c, s, l) : X6n(p, t, r, c), Ci(g.b, p), JR(a, z(y(e, la)) === z((na(), OE))), vs(d)); + a = (An(d.b < d.d.gc()), u(d.d.Xb(d.c = d.b++), 9)), a.k == (cn(), Bc) && (g = u(y(a, (te(), $t)), 17), v = B(H(y(g, Ya))), s = z(y(a, um)) === z((Zs(), hd)), t = new vr(a.n), s && (t.b += v + i), c = new ue(a.o.a, a.o.b + (a.k == Bc && !Hm(mt(u(y(a, xk), 16).Mc(), new Dm(new VU()))).zd((Ad(), V3)) ? 0 : -v - i)), p = u(y(a, xk), 16), l == (Mi(), Io) || l == Mh ? axn(p, t, r, c, s, l) : X6n(p, t, r, c), Ci(g.b, p), JR(a, z(y(e, la)) === z((na(), OE))), vs(d)); n.Ug(); } function uPn(e) { @@ -28465,22 +28555,22 @@ function WDn() { function sie(e, n) { n.dc() && ol(e.j, !0, !0, !0, !0), jt(n, (be(), Of)) && ol(e.j, !0, !0, !0, !1), jt(n, Co) && ol(e.j, !1, !0, !0, !0), jt(n, so) && ol(e.j, !0, !0, !1, !0), jt(n, Zo) && ol(e.j, !0, !1, !0, !0), jt(n, ws) && ol(e.j, !1, !0, !0, !1), jt(n, Po) && ol(e.j, !1, !0, !1, !0), jt(n, oo) && ol(e.j, !0, !1, !1, !0), jt(n, Lf) && ol(e.j, !0, !1, !0, !1), jt(n, Hu) && ol(e.j, !0, !0, !0, !0), jt(n, Su) && ol(e.j, !0, !0, !0, !0), jt(n, Hu) && ol(e.j, !0, !0, !0, !0), jt(n, Gu) && ol(e.j, !0, !0, !0, !0), jt(n, qu) && ol(e.j, !0, !0, !0, !0), jt(n, gs) && ol(e.j, !0, !0, !0, !0), jt(n, fu) && ol(e.j, !0, !0, !0, !0); } - function ize(e, n, t) { + function rze(e, n, t) { var i, r, c, s, f, h, l, a, d; if (e.a != n.hk()) throw $(new on(O5 + n.ve() + jb)); - if (i = _a((ts(), sr), n).Hl(), i) + if (i = Ba((ts(), sr), n).Hl(), i) return i.hk().ti().oi(i, t); - if (s = _a(sr, n).Jl(), s) { + if (s = Ba(sr, n).Jl(), s) { if (t == null) return null; if (f = u(t, 16), f.dc()) return ""; for (d = new xa(), c = f.Jc(); c.Ob(); ) - r = c.Pb(), Br(d, s.hk().ti().oi(s, r)), d.a += " "; + r = c.Pb(), _r(d, s.hk().ti().oi(s, r)), d.a += " "; return uL(d, d.a.length - 1); } - if (a = _a(sr, n).Kl(), !a.dc()) { + if (a = Ba(sr, n).Kl(), !a.dc()) { for (l = a.Jc(); l.Ob(); ) if (h = u(l.Pb(), 159), h.dk(t)) try { @@ -28491,23 +28581,23 @@ function WDn() { } throw $(new on("Invalid value: '" + t + "' for datatype :" + n.ve())); } - return u(n, 831).mk(), t == null ? null : N(t, 180) ? "" + u(t, 180).a : Rs(t) == VS ? D$e(j8[0], u(t, 205)) : uc(t); + return u(n, 831).mk(), t == null ? null : N(t, 180) ? "" + u(t, 180).a : Rs(t) == VS ? N$e(j8[0], u(t, 205)) : uc(t); } - function rze(e, n, t) { + function cze(e, n, t) { var i, r, c, s; - this.j = e, this.e = Xee(e), this.o = this.j.e, this.i = !!this.o, this.p = this.i ? u(pe(t, _i(this.o).p), 218) : null, r = u(y(e, (te(), ou)), 22), this.g = r.Gc((Pr(), So)), this.b = new le(), this.d = new eBe(this.e), s = u(y(this.j, sm), 234), this.q = P4n(n, s, this.e), this.k = new ICe(this), c = wf(I(T(gen, 1), Ve, 220, 0, [this, this.d, this.k, this.q])), n == (Ud(), dE) && !ve(me(y(e, (ae(), n4)))) ? (i = new Qee(this.e), sn(c.c, i), this.c = new pQ(i, s, u(this.q, 406))) : n == dE && ve(me(y(e, (ae(), n4)))) ? (i = new Qee(this.e), sn(c.c, i), this.c = new CNe(i, s, u(this.q, 406))) : n == wC ? this.c = new eCe(s) : this.c = new YAe(n, this), he(c, this.c), DUe(c, this.e), this.s = POn(this.k); + this.j = e, this.e = Xee(e), this.o = this.j.e, this.i = !!this.o, this.p = this.i ? u(pe(t, Bi(this.o).p), 218) : null, r = u(y(e, (te(), ou)), 22), this.g = r.Gc((Pr(), So)), this.b = new le(), this.d = new n_e(this.e), s = u(y(this.j, sm), 234), this.q = P4n(n, s, this.e), this.k = new CCe(this), c = wf(I(S(pen, 1), Ve, 220, 0, [this, this.d, this.k, this.q])), n == (Ud(), dE) && !ve(me(y(e, (ae(), n4)))) ? (i = new Qee(this.e), sn(c.c, i), this.c = new pQ(i, s, u(this.q, 406))) : n == dE && ve(me(y(e, (ae(), n4)))) ? (i = new Qee(this.e), sn(c.c, i), this.c = new PNe(i, s, u(this.q, 406))) : n == wC ? this.c = new nCe(s) : this.c = new ZAe(n, this), he(c, this.c), NUe(c, this.e), this.s = POn(this.k); } function sPn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; for (n.Tg("Interactive crossing minimization", 1), s = 0, c = new x(e.b); c.a < c.c.c.length; ) i = u(A(c), 25), i.p = s++; - for (g = Xee(e), E = new jW(g.length), DUe(new yc(I(T(gen, 1), Ve, 220, 0, [E])), g), j = 0, s = 0, r = new x(e.b); r.a < r.c.c.length; ) { + for (g = Xee(e), E = new jW(g.length), NUe(new yc(I(S(pen, 1), Ve, 220, 0, [E])), g), j = 0, s = 0, r = new x(e.b); r.a < r.c.c.length; ) { for (i = u(A(r), 25), t = 0, d = 0, a = new x(i.a); a.a < a.c.c.length; ) for (h = u(A(a), 9), h.n.a > 0 && (t += h.n.a + h.o.a / 2, ++d), v = new x(h.j); v.a < v.c.c.length; ) p = u(A(v), 12), p.p = j++; - for (d > 0 && (t /= d), M = W(Xi, Gr, 30, i.a.c.length, 15, 1), f = 0, l = new x(i.a); l.a < l.c.c.length; ) - h = u(A(l), 9), h.p = f++, M[h.p] = nPn(h, t), h.k == (cn(), yi) && K(h, (te(), Ofe), M[h.p]); - ze(), Di(i.a, new Z8e(M)), qqe(E, g, s, !0), ++s; + for (d > 0 && (t /= d), T = W(Xi, Gr, 30, i.a.c.length, 15, 1), f = 0, l = new x(i.a); l.a < l.c.c.length; ) + h = u(A(l), 9), h.p = f++, T[h.p] = nPn(h, t), h.k == (cn(), yi) && K(h, (te(), Ofe), T[h.p]); + ze(), Di(i.a, new eye(T)), Uqe(E, g, s, !0), ++s; } n.Ug(); } @@ -28516,13 +28606,13 @@ function WDn() { for (l = new Dt(), f = new Dt(), c = new x(e); c.a < c.c.c.length; ) i = u(A(c), 132), i.v = 0, i.n = i.i.c.length, i.u = i.t.c.length, i.n == 0 && ti(l, i, l.c.b, l.c), i.u == 0 && i.r.a.gc() == 0 && ti(f, i, f.c.b, f.c); for (s = -1; l.b != 0; ) - for (i = u(BF(l, 0), 132), t = new x(i.t); t.a < t.c.c.length; ) + for (i = u(_F(l, 0), 132), t = new x(i.t); t.a < t.c.c.length; ) n = u(A(t), 273), a = n.b, a.v = m.Math.max(a.v, i.v + 1), s = m.Math.max(s, a.v), --a.n, a.n == 0 && ti(l, a, l.c.b, l.c); if (s > -1) { for (r = Nn(f, 0); r.b != r.d.c; ) i = u(Ln(r), 132), i.v = s; for (; f.b != 0; ) - for (i = u(BF(f, 0), 132), t = new x(i.i); t.a < t.c.c.length; ) + for (i = u(_F(f, 0), 132), t = new x(i.i); t.a < t.c.c.length; ) n = u(A(t), 273), h = n.a, h.r.a.gc() == 0 && (h.v = m.Math.min(h.v, i.v - 1), --h.u, h.u == 0 && ti(f, h, f.c.b, f.c)); } } @@ -28541,17 +28631,17 @@ function WDn() { n = u(A(t), 133), h = n.a, !(h.e.b > 0) && (Ez(h, m.Math.min(h.o, r.o - 1)), dA(h, h.i - 1), h.i == 0 && sn(f.c, h)); } } - function cze(e, n, t, i, r) { + function uze(e, n, t, i, r) { var c, s, f, h; return h = ii, s = !1, f = Qte(e, Fi(new ue(n.a, n.b), e), At(new ue(t.a, t.b), r), Fi(new ue(i.a, i.b), t)), c = !!f && !(m.Math.abs(f.a - e.a) <= kb && m.Math.abs(f.b - e.b) <= kb || m.Math.abs(f.a - n.a) <= kb && m.Math.abs(f.b - n.b) <= kb), f = Qte(e, Fi(new ue(n.a, n.b), e), t, r), f && ((m.Math.abs(f.a - e.a) <= kb && m.Math.abs(f.b - e.b) <= kb) == (m.Math.abs(f.a - n.a) <= kb && m.Math.abs(f.b - n.b) <= kb) || c ? h = m.Math.min(h, M6(Fi(f, t))) : s = !0), f = Qte(e, Fi(new ue(n.a, n.b), e), i, r), f && (s || (m.Math.abs(f.a - e.a) <= kb && m.Math.abs(f.b - e.b) <= kb) == (m.Math.abs(f.a - n.a) <= kb && m.Math.abs(f.b - n.b) <= kb) || c) && (h = m.Math.min(h, M6(Fi(f, i)))), h; } - function uze(e) { - ew(e, new sb(CA(Yb(Kb(Qb(Vb(new S0(), W1), ZWe), "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 uwe()), $u))), se(e, W1, B9, ge(Qse)), se(e, W1, VT, (en(), !0)), se(e, W1, R2, ge(SZe)), se(e, W1, q3, ge(IZe)), se(e, W1, H3, ge(CZe)), se(e, W1, y5, ge(TZe)), se(e, W1, _9, ge(Zse)), se(e, W1, j5, ge(PZe)), se(e, W1, zie, ge(Vse)), se(e, W1, Xie, ge(Xse)), se(e, W1, Kie, ge(Kse)), se(e, W1, Vie, ge(Yse)), se(e, W1, Wie, ge(oI)); + function sze(e) { + ew(e, new sb(CA(Yb(Kb(Qb(Vb(new S0(), W1), eXe), "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 swe()), $u))), se(e, W1, _9, ge(Qse)), se(e, W1, VT, (en(), !0)), se(e, W1, R2, ge(IZe)), se(e, W1, q3, ge(CZe)), se(e, W1, H3, ge(PZe)), se(e, W1, y5, ge(SZe)), se(e, W1, B9, ge(Zse)), se(e, W1, j5, ge(OZe)), se(e, W1, zie, ge(Vse)), se(e, W1, Xie, ge(Xse)), se(e, W1, Kie, ge(Kse)), se(e, W1, Vie, ge(Yse)), se(e, W1, Wie, ge(oI)); } function hPn(e) { var n, t, i, r, c, s, f, h; for (n = null, i = new x(e); i.a < i.c.c.length; ) - t = u(A(i), 239), _(ch(t.g, t.d[0]).a), t.b = null, t.e && t.e.gc() > 0 && t.c == 0 && (!n && (n = new le()), sn(n.c, t)); + t = u(A(i), 239), B(ch(t.g, t.d[0]).a), t.b = null, t.e && t.e.gc() > 0 && t.c == 0 && (!n && (n = new le()), sn(n.c, t)); if (n) for (; n.c.length != 0; ) { if (t = u(La(n, 0), 239), t.b && t.b.c.length > 0) { @@ -28559,7 +28649,7 @@ function WDn() { if (r = u(A(c), 239), q8(ch(r.g, r.d[0]).a) == q8(ch(t.g, t.d[0]).a)) { if (dc(e, r, 0) > dc(e, t, 0)) return new Ar(r, t); - } else if (_(ch(r.g, r.d[0]).a) > _(ch(t.g, t.d[0]).a)) + } else if (B(ch(r.g, r.d[0]).a) > B(ch(t.g, t.d[0]).a)) return new Ar(r, t); } for (f = (!t.e && (t.e = new le()), t.e).Jc(); f.Ob(); ) @@ -28570,7 +28660,7 @@ function WDn() { function I9(e, n) { var t, i, r, c, s, f, h, l, a; if (n.e == 5) { - ZUe(e, n); + eze(e, n); return; } if (l = n, !(l.b == null || e.b == null)) { @@ -28589,23 +28679,23 @@ function WDn() { } } function lPn(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; for (i = new x(e.e.b); i.a < i.c.c.length; ) for (t = u(A(i), 25), c = new x(t.a); c.a < c.c.c.length; ) - if (r = u(A(c), 9), p = e.i[r.p], l = p.a.e, h = p.d.e, r.n.b = l, M = h - l - r.o.b, n = NR(r), g = (Dw(), (r.q ? r.q : (ze(), ze(), El))._b((ae(), Lb)) ? d = u(y(r, Lb), 203) : d = u(y(_i(r), Nk), 203), d), n && (g == fp || g == op) && (r.o.b += M), n && (g == DH || g == fp || g == op)) { + if (r = u(A(c), 9), p = e.i[r.p], l = p.a.e, h = p.d.e, r.n.b = l, T = h - l - r.o.b, n = NR(r), g = (Dw(), (r.q ? r.q : (ze(), ze(), El))._b((ae(), Lb)) ? d = u(y(r, Lb), 203) : d = u(y(Bi(r), Nk), 203), d), n && (g == fp || g == op) && (r.o.b += T), n && (g == DH || g == fp || g == op)) { for (j = new x(r.j); j.a < j.c.c.length; ) v = u(A(j), 12), (be(), Su).Gc(v.j) && (a = u(rn(e.k, v), 124), v.n.b = a.e - l); for (f = new x(r.b); f.a < f.c.c.length; ) - s = u(A(f), 70), E = u(y(r, Ob), 22), E.Gc((_w(), Yo)) ? s.n.b += M : E.Gc(Sl) && (s.n.b += M / 2); - (g == fp || g == op) && wc(r, (be(), Mn)).Ic(new wye(M)); + s = u(A(f), 70), E = u(y(r, Ob), 22), E.Gc((Bw(), Yo)) ? s.n.b += T : E.Gc(Sl) && (s.n.b += T / 2); + (g == fp || g == op) && wc(r, (be(), Mn)).Ic(new gye(T)); } } function aPn(e) { var n, t, i, r, c, s, f; if (!e.A.dc()) { - if (e.A.Gc((Js(), _E)) && (u(_r(e.b, (be(), ln)), 127).k = !0, u(_r(e.b, Mn), 127).k = !0, n = e.q != (Ui(), Il) && e.q != Vc, kz(u(_r(e.b, gn), 127), n), kz(u(_r(e.b, an), 127), n), kz(e.g, n), e.A.Gc(y0) && (u(_r(e.b, ln), 127).j = !0, u(_r(e.b, Mn), 127).j = !0, u(_r(e.b, gn), 127).k = !0, u(_r(e.b, an), 127).k = !0, e.g.k = !0)), e.A.Gc(BE)) + if (e.A.Gc((Js(), BE)) && (u(Br(e.b, (be(), ln)), 127).k = !0, u(Br(e.b, Mn), 127).k = !0, n = e.q != (Ui(), Il) && e.q != Vc, kz(u(Br(e.b, gn), 127), n), kz(u(Br(e.b, an), 127), n), kz(e.g, n), e.A.Gc(y0) && (u(Br(e.b, ln), 127).j = !0, u(Br(e.b, Mn), 127).j = !0, u(Br(e.b, gn), 127).k = !0, u(Br(e.b, an), 127).k = !0, e.g.k = !0)), e.A.Gc(_E)) for (e.a.j = !0, e.a.k = !0, e.g.j = !0, e.g.k = !0, f = e.B.Gc((Ms(), k8)), r = pF(), c = 0, s = r.length; c < s; ++c) - i = r[c], t = u(_r(e.i, i), 318), t && (tee(i) ? (t.j = !0, t.k = !0) : (t.j = !f, t.k = !f)); + i = r[c], t = u(Br(e.i, i), 318), t && (tee(i) ? (t.j = !0, t.k = !0) : (t.j = !f, t.k = !f)); e.A.Gc(Cg) && e.B.Gc((Ms(), GE)) && (e.g.j = !0, e.g.j = !0, e.a.j || (e.a.j = !0, e.a.k = !0, e.a.e = !0)); } } @@ -28615,7 +28705,7 @@ function WDn() { for (s = u(A(h), 9), g = wc(s, (be(), gn)).Jc(); g.Ob(); ) for (d = u(g.Pb(), 12), r = new x(d.g); r.a < r.c.c.length; ) i = u(A(r), 17), !(!hr(i) && i.c.i.c == i.d.i.c || hr(i) || i.d.i.c != t) && sn(l.c, i); - for (f = _s(t.a).Jc(); f.Ob(); ) + for (f = Bs(t.a).Jc(); f.Ob(); ) for (s = u(f.Pb(), 9), g = wc(s, (be(), an)).Jc(); g.Ob(); ) for (d = u(g.Pb(), 12), r = new x(d.e); r.a < r.c.c.length; ) if (i = u(A(r), 17), !(!hr(i) && i.c.i.c == i.d.i.c || hr(i) || i.c.i.c != n) && l.c.length != 0) { @@ -28624,7 +28714,7 @@ function WDn() { a.b > 0 && vs(a); } } - function sze(e, n, t) { + function oze(e, n, t) { var i, r, c, s, f, h, l, a, d, g; if (t) for (i = -1, a = new Vi(n, 0); a.b < a.d.gc(); ) { @@ -28640,7 +28730,7 @@ function WDn() { } else { for (r = 0, l = new x(n); l.a < l.c.c.length; ) - f = u(A(l), 9), e.c[f.c.p][f.p].a != null && (r = m.Math.max(r, _(e.c[f.c.p][f.p].a))); + f = u(A(l), 9), e.c[f.c.p][f.p].a != null && (r = m.Math.max(r, B(e.c[f.c.p][f.p].a))); for (r += 2, h = new x(n); h.a < h.c.c.length; ) f = u(A(h), 9), e.c[f.c.p][f.p].a == null && (d = $s(e.i, 24) * bj * r - 1, e.c[f.c.p][f.p].a = d, e.c[f.c.p][f.p].d = d, e.c[f.c.p][f.p].b = 1); } @@ -28649,14 +28739,14 @@ function WDn() { var n, t, i, r, c, s, f, h, l, a, d, g; for (r = new x(e.a.a.b); r.a < r.c.c.length; ) for (i = u(A(r), 60), h = i.c.Jc(); h.Ob(); ) - f = u(h.Pb(), 60), i.a != f.a && (_l(e.a.d) ? d = e.a.g.df(i, f) : d = e.a.g.ef(i, f), c = i.b.a + i.d.b + d - f.b.a, c = m.Math.ceil(c), c = m.Math.max(0, c), rY(i, f) ? (s = F0(new jd(), e.d), l = dr(m.Math.ceil(f.b.a - i.b.a)), n = l - (f.b.a - i.b.a), a = h3(i).a, t = i, a || (a = h3(f).a, n = -n, t = f), a && (t.b.a -= n, a.n.a -= n), yf(ff(of(hf(sf(new Ro(), m.Math.max(0, l)), 1), s), e.c[i.a.d])), yf(ff(of(hf(sf(new Ro(), m.Math.max(0, -l)), 1), s), e.c[f.a.d]))) : (g = 1, (N(i.g, 156) && N(f.g, 9) || N(f.g, 156) && N(i.g, 9)) && (g = 2), yf(ff(of(hf(sf(new Ro(), dr(c)), g), e.c[i.a.d]), e.c[f.a.d])))); + f = u(h.Pb(), 60), i.a != f.a && (Bl(e.a.d) ? d = e.a.g.df(i, f) : d = e.a.g.ef(i, f), c = i.b.a + i.d.b + d - f.b.a, c = m.Math.ceil(c), c = m.Math.max(0, c), rY(i, f) ? (s = F0(new jd(), e.d), l = dr(m.Math.ceil(f.b.a - i.b.a)), n = l - (f.b.a - i.b.a), a = h3(i).a, t = i, a || (a = h3(f).a, n = -n, t = f), a && (t.b.a -= n, a.n.a -= n), yf(ff(of(hf(sf(new Ro(), m.Math.max(0, l)), 1), s), e.c[i.a.d])), yf(ff(of(hf(sf(new Ro(), m.Math.max(0, -l)), 1), s), e.c[f.a.d]))) : (g = 1, (N(i.g, 156) && N(f.g, 9) || N(f.g, 156) && N(i.g, 9)) && (g = 2), yf(ff(of(hf(sf(new Ro(), dr(c)), g), e.c[i.a.d]), e.c[f.a.d])))); } - function oze(e, n, t) { + function fze(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p; if (!e.b) return !1; for (s = null, g = null, h = new nN(null, null), r = 1, h.a[1] = e.b, d = h; d.a[r]; ) - l = r, f = g, g = d, d = d.a[r], i = e.a.Le(n, d.d), r = i < 0 ? 0 : 1, i == 0 && (!t.c || Gc(d.e, t.d)) && (s = d), !(d && d.b) && !Xb(d.a[r]) && (Xb(d.a[1 - r]) ? g = g.a[l] = aM(d, r) : Xb(d.a[1 - r]) || (p = g.a[1 - l], p && (!Xb(p.a[1 - l]) && !Xb(p.a[l]) ? (g.b = !1, p.b = !0, d.b = !0) : (c = f.a[1] == g ? 1 : 0, Xb(p.a[l]) ? f.a[c] = SPe(g, l) : Xb(p.a[1 - l]) && (f.a[c] = aM(g, l)), d.b = f.a[c].b = !0, f.a[c].a[0].b = !1, f.a[c].a[1].b = !1)))); + l = r, f = g, g = d, d = d.a[r], i = e.a.Le(n, d.d), r = i < 0 ? 0 : 1, i == 0 && (!t.c || Gc(d.e, t.d)) && (s = d), !(d && d.b) && !Xb(d.a[r]) && (Xb(d.a[1 - r]) ? g = g.a[l] = aM(d, r) : Xb(d.a[1 - r]) || (p = g.a[1 - l], p && (!Xb(p.a[1 - l]) && !Xb(p.a[l]) ? (g.b = !1, p.b = !0, d.b = !0) : (c = f.a[1] == g ? 1 : 0, Xb(p.a[l]) ? f.a[c] = IPe(g, l) : Xb(p.a[1 - l]) && (f.a[c] = aM(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 nN(d.d, d.e), Mjn(e, h, s, a), g == s && (g = a)), g.a[g.a[1] == d ? 1 : 0] = d.a[d.a[0] ? 0 : 1], --e.c), e.b = h.a[1], e.b && (e.b.b = !1), t.b; } function wPn(e, n, t) { @@ -28682,46 +28772,46 @@ function WDn() { return a.a; } function gPn() { - at(Lg, new l4e()), at(ot, new j4e()), at(ef, new O4e()), at(nh, new B4e()), at(AU, new _4e()), at(hP, new J4e()), at(wa, new G4e()), at(y8, new H4e()), at(zE, new n4e()), at(mU, new t4e()), at(bd, new i4e()), at(nf, new r4e()), at(eh, new c4e()), at(Rb, new u4e()), at(Dg, new s4e()), at(Uu, new o4e()), at(Og, new f4e()), at(Ic, new h4e()), at(Rr, new a4e()), at(Iu, new d4e()), at(ui, new b4e()), at(T(us, 1), new w4e()), at(X3, new g4e()), at(hk, new p4e()), at(VS, new m4e()), at(obe, new v4e()), at(Ei, new k4e()), at(E0e, new y4e()), at($0e, new E4e()), at(K0e, new A4e()), at(lP, new x4e()), at(J5, new $4e()), at(Ii, new M4e()), at(ese, new T4e()), at(Ab, new S4e()), at(nse, new I4e()), at(U0e, new C4e()), at(fbe, new P4e()), at(xb, new L4e()), at(ke, new D4e()), at(x0e, new N4e()), at(hbe, new F4e()); + at(Lg, new a4e()), at(ot, new E4e()), at(ef, new L4e()), at(nh, new B4e()), at(AU, new J4e()), at(hP, new G4e()), at(wa, new H4e()), at(y8, new q4e()), at(zE, new t4e()), at(mU, new i4e()), at(bd, new r4e()), at(nf, new c4e()), at(eh, new u4e()), at(Rb, new s4e()), at(Dg, new o4e()), at(Uu, new f4e()), at(Og, new h4e()), at(Ic, new l4e()), at(Rr, new d4e()), at(Iu, new b4e()), at(ui, new w4e()), at(S(us, 1), new g4e()), at(X3, new p4e()), at(hk, new m4e()), at(VS, new v4e()), at(obe, new k4e()), at(Ei, new y4e()), at(E0e, new j4e()), at($0e, new A4e()), at(K0e, new x4e()), at(lP, new $4e()), at(J5, new M4e()), at(Ii, new T4e()), at(ese, new S4e()), at(Ab, new I4e()), at(nse, new C4e()), at(U0e, new P4e()), at(fbe, new O4e()), at(xb, new D4e()), at(ye, new N4e()), at(x0e, new F4e()), at(hbe, new R4e()); } - function fze(e, n) { + function hze(e, n) { var t, i, r, c, s, f, h, l, a; if (e == null) - return Bu; + return _u; if (h = n.a.yc(e, n), h != null) return "[...]"; for (t = new Gd(mu, "[", "]"), r = e, c = 0, s = r.length; c < s; ++c) - i = r[c], i != null && (Rs(i).i & 4) != 0 ? Array.isArray(i) && (a = r7(i), !(a >= 14 && a <= 16)) ? n.a._b(i) ? (t.a ? it(t.a, t.b) : t.a = new Us(t.d), f6(t.a, "[...]")) : (f = g3(i), l = new aw(n), Xl(t, fze(f, l))) : N(i, 171) ? Xl(t, rAn(u(i, 171))) : N(i, 195) ? Xl(t, z7n(u(i, 195))) : N(i, 201) ? Xl(t, Yjn(u(i, 201))) : N(i, 2073) ? Xl(t, W7n(u(i, 2073))) : N(i, 54) ? Xl(t, iAn(u(i, 54))) : N(i, 584) ? Xl(t, pAn(u(i, 584))) : N(i, 830) ? Xl(t, tAn(u(i, 830))) : N(i, 108) && Xl(t, nAn(u(i, 108))) : Xl(t, i == null ? Bu : uc(i)); + i = r[c], i != null && (Rs(i).i & 4) != 0 ? Array.isArray(i) && (a = r7(i), !(a >= 14 && a <= 16)) ? n.a._b(i) ? (t.a ? it(t.a, t.b) : t.a = new Us(t.d), f6(t.a, "[...]")) : (f = g3(i), l = new aw(n), Xl(t, hze(f, l))) : N(i, 171) ? Xl(t, rAn(u(i, 171))) : N(i, 195) ? Xl(t, z7n(u(i, 195))) : N(i, 201) ? Xl(t, Yjn(u(i, 201))) : N(i, 2073) ? Xl(t, W7n(u(i, 2073))) : N(i, 54) ? Xl(t, iAn(u(i, 54))) : N(i, 584) ? Xl(t, pAn(u(i, 584))) : N(i, 830) ? Xl(t, tAn(u(i, 830))) : N(i, 108) && Xl(t, nAn(u(i, 108))) : Xl(t, i == null ? _u : uc(i)); return t.a ? t.e.length == 0 ? t.a.a : t.a.a + ("" + t.e) : t.c; } function u5(e, n) { var t, i, r, c; - c = e.F, n == null ? (e.F = null, Pv(e, null)) : (e.F = (Ze(n), n), i = Nh(n, Fu(60)), i != -1 ? (r = (tr(0, i, n.length), n.substr(0, i)), Nh(n, Fu(46)) == -1 && !_e(r, D3) && !_e(r, nk) && !_e(r, LS) && !_e(r, tk) && !_e(r, ik) && !_e(r, rk) && !_e(r, ck) && !_e(r, uk) && (r = XVe), t = xx(n, Fu(62)), t != -1 && (r += "" + (bn(t + 1, n.length + 1), n.substr(t + 1))), Pv(e, r)) : (r = n, Nh(n, Fu(46)) == -1 && (i = Nh(n, Fu(91)), i != -1 && (r = (tr(0, i, n.length), n.substr(0, i))), !_e(r, D3) && !_e(r, nk) && !_e(r, LS) && !_e(r, tk) && !_e(r, ik) && !_e(r, rk) && !_e(r, ck) && !_e(r, uk) ? (r = XVe, i != -1 && (r += "" + (bn(i, n.length + 1), n.substr(i)))) : r = n), Pv(e, r), r == n && (e.F = e.D))), (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new Bi(e, 1, 5, c, n)); + c = e.F, n == null ? (e.F = null, Pv(e, null)) : (e.F = (Ze(n), n), i = Nh(n, Fu(60)), i != -1 ? (r = (tr(0, i, n.length), n.substr(0, i)), Nh(n, Fu(46)) == -1 && !Be(r, D3) && !Be(r, nk) && !Be(r, LS) && !Be(r, tk) && !Be(r, ik) && !Be(r, rk) && !Be(r, ck) && !Be(r, uk) && (r = KVe), t = xx(n, Fu(62)), t != -1 && (r += "" + (bn(t + 1, n.length + 1), n.substr(t + 1))), Pv(e, r)) : (r = n, Nh(n, Fu(46)) == -1 && (i = Nh(n, Fu(91)), i != -1 && (r = (tr(0, i, n.length), n.substr(0, i))), !Be(r, D3) && !Be(r, nk) && !Be(r, LS) && !Be(r, tk) && !Be(r, ik) && !Be(r, rk) && !Be(r, ck) && !Be(r, uk) ? (r = KVe, i != -1 && (r += "" + (bn(i, n.length + 1), n.substr(i)))) : r = n), Pv(e, r), r == n && (e.F = e.D))), (e.Db & 4) != 0 && (e.Db & 1) == 0 && yt(e, new _i(e, 1, 5, c, n)); } function pPn(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v; - if (e.c = e.e, v = me(y(n, (ae(), Min))), p = v == null || (Ze(v), v), c = u(y(n, (te(), ou)), 22).Gc((Pr(), So)), r = u(y(n, oi), 102), t = !(r == (Ui(), k0) || r == Il || r == Vc), p && (t || !c)) { + if (e.c = e.e, v = me(y(n, (ae(), Tin))), p = v == null || (Ze(v), v), c = u(y(n, (te(), ou)), 22).Gc((Pr(), So)), r = u(y(n, oi), 102), t = !(r == (Ui(), k0) || r == Il || r == Vc), p && (t || !c)) { for (d = new x(n.a); d.a < d.c.c.length; ) l = u(A(d), 9), l.p = 0; for (g = new le(), a = new x(n.a); a.a < a.c.c.length; ) - if (l = u(A(a), 9), i = Vqe(e, l, null), i) { + if (l = u(A(a), 9), i = Qqe(e, l, null), i) { for (h = new yY(), Pc(h, n), K(h, fa, u(i.b, 22)), zV(h.d, n.d), K(h, t4, null), f = u(i.a, 16).Jc(); f.Ob(); ) s = u(f.Pb(), 9), he(h.a, s), s.a = h; g.Ec(h); } c && (z(y(n, Ik)) === z((A3(), bG)) ? e.c = e.b : z(y(n, Ik)) === z(wG) ? e.c = e.d : e.c = e.a); } else - g = new yc(I(T(VZe, 1), nXe, 37, 0, [n])); - return z(y(n, Ik)) !== z((A3(), gk)) && (ze(), g.gd(new jwe())), g; + g = new yc(I(S(QZe, 1), tXe, 37, 0, [n])); + return z(y(n, Ik)) !== z((A3(), gk)) && (ze(), g.gd(new Ewe())), g; } - function hze(e, n) { + function lze(e, n) { var t, i, r, c, s, f, h, l, a, d; if (h = n.length - 1, f = (bn(h, n.length), n.charCodeAt(h)), f == 93) { if (s = Nh(n, Fu(91)), s >= 0) - return r = _9n(e, (tr(1, s, n.length), n.substr(1, s - 1))), a = (tr(s + 1, h, n.length), n.substr(s + 1, h - (s + 1))), HOn(e, a, r); + return r = B9n(e, (tr(1, s, n.length), n.substr(1, s - 1))), a = (tr(s + 1, h, n.length), n.substr(s + 1, h - (s + 1))), HOn(e, a, r); } else { if (t = -1, lse == null && (lse = new RegExp("\\d")), lse.test(String.fromCharCode(f)) && (t = MK(n, Fu(46), h - 1), t >= 0)) { - i = u(KD(e, HDe(e, (tr(1, t, n.length), n.substr(1, t - 1))), !1), 61), l = 0; + i = u(KD(e, qDe(e, (tr(1, t, n.length), n.substr(1, t - 1))), !1), 61), l = 0; try { l = eo((bn(t + 1, n.length + 1), n.substr(t + 1)), Yi, pt); } catch (g) { @@ -28731,15 +28821,15 @@ function WDn() { return d = i.Xb(l), N(d, 75) && (d = u(d, 75).kd()), u(d, 57); } if (t < 0) - return u(KD(e, HDe(e, (bn(1, n.length + 1), n.substr(1))), !1), 57); + return u(KD(e, qDe(e, (bn(1, n.length + 1), n.substr(1))), !1), 57); } return null; } function mPn(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v, j; - for (n.Tg("Label dummy insertions", 1), d = new le(), s = _(H(y(e, (ae(), sp)))), l = _(H(y(e, vg))), a = u(y(e, co), 86), p = new x(e.a); p.a < p.c.c.length; ) - for (g = u(A(p), 9), c = new fn(dn(Ht(g).a.Jc(), new Q())); xn(c); ) - if (r = u(pn(c), 17), r.c.i != r.d.i && gL(r.b, cen)) { + for (n.Tg("Label dummy insertions", 1), d = new le(), s = B(H(y(e, (ae(), sp)))), l = B(H(y(e, vg))), a = u(y(e, co), 86), p = new x(e.a); p.a < p.c.c.length; ) + for (g = u(A(p), 9), c = new fn(dn(Ht(g).a.Jc(), new Y())); xn(c); ) + if (r = u(pn(c), 17), r.c.i != r.d.i && gL(r.b, uen)) { for (j = y5n(r), v = sl(r.b.c.length), t = Wxn(e, r, j, v), sn(d.c, t), i = t.o, f = new Vi(r.b, 0); f.b < f.d.gc(); ) h = (An(f.b < f.d.gc()), u(f.d.Xb(f.c = f.b++), 70)), z(y(h, il)) === z((lh(), g4)) && (a == (Mi(), Io) || a == Mh ? (i.a += h.o.a + l, i.b = m.Math.max(i.b, h.o.b)) : (i.a = m.Math.max(i.a, h.o.a), i.b += h.o.b + l), sn(v.c, h), vs(f)); a == (Mi(), Io) || a == Mh ? (i.a -= l, i.b += s + j) : i.b += s - l + j; @@ -28748,7 +28838,7 @@ function WDn() { } function s5(e, n, t) { var i, r, c, s, f, h, l; - if (l = e.c, !n && (n = D0e), e.c = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (h = new Bi(e, 1, 2, l, e.c), t ? t.lj(h) : t = h), l != n) { + if (l = e.c, !n && (n = D0e), e.c = n, (e.Db & 4) != 0 && (e.Db & 1) == 0 && (h = new _i(e, 1, 2, l, e.c), t ? t.lj(h) : t = h), l != n) { if (N(e.Cb, 293)) e.Db >> 16 == -10 ? t = u(e.Cb, 293).Wk(n, t) : e.Db >> 16 == -15 && (!n && (n = (Ue(), Ch)), !l && (l = (Ue(), Ch)), e.Cb.Vh() && (h = new Vl(e.Cb, 1, 13, l, n, Ha(js(u(e.Cb, 62)), e), !1), t ? t.lj(h) : t = h)); else if (N(e.Cb, 88)) @@ -28762,17 +28852,17 @@ function WDn() { function vPn(e, n) { var t, i, r, c, s, f, h, l, a, d, g; for (s = ve(me(re(e, (ae(), dg)))), g = u(re(e, gg), 22), h = !1, l = !1, d = new kn((!e.c && (e.c = new ne(Is, e, 9, 9)), e.c)); d.e != d.i.gc() && (!h || !l); ) { - for (c = u(En(d), 125), f = 0, r = ll(vo(I(T(To, 1), Ve, 20, 0, [(!c.d && (c.d = new Qe(xi, c, 8, 5)), c.d), (!c.e && (c.e = new Qe(xi, c, 7, 4)), c.e)]))); xn(r) && (i = u(pn(r), 85), a = s && ob(i) && ve(me(re(i, a0))), t = HUe((!i.b && (i.b = new Qe(Cn, i, 4, 7)), i.b), c) ? e == Qt(ec(u(F((!i.c && (i.c = new Qe(Cn, i, 5, 8)), i.c), 0), 84))) : e == Qt(ec(u(F((!i.b && (i.b = new Qe(Cn, i, 4, 7)), i.b), 0), 84))), !((a || t) && (++f, f > 1))); ) + for (c = u(En(d), 125), f = 0, r = ll(vo(I(S(To, 1), Ve, 20, 0, [(!c.d && (c.d = new Qe(xi, c, 8, 5)), c.d), (!c.e && (c.e = new Qe(xi, c, 7, 4)), c.e)]))); xn(r) && (i = u(pn(r), 85), a = s && ob(i) && ve(me(re(i, a0))), t = qUe((!i.b && (i.b = new Qe(Cn, i, 4, 7)), i.b), c) ? e == Qt(ec(u(F((!i.c && (i.c = new Qe(Cn, i, 5, 8)), i.c), 0), 84))) : e == Qt(ec(u(F((!i.b && (i.b = new Qe(Cn, i, 4, 7)), i.b), 0), 84))), !((a || t) && (++f, f > 1))); ) ; (f > 0 || g.Gc((ls(), ba)) && (!c.n && (c.n = new ne(vc, c, 1, 7)), c.n).i > 0) && (h = !0), f > 1 && (l = !0); } h && n.Ec((Pr(), So)), l && n.Ec((Pr(), jk)); } - function lze(e) { + function aze(e) { var n, t, i, r, c, s, f, h, l, a, d, g; if (g = u(re(e, (tt(), v0)), 22), g.dc()) return null; - if (f = 0, s = 0, g.Gc((Js(), _E))) { + if (f = 0, s = 0, g.Gc((Js(), BE))) { for (a = u(re(e, l8), 102), i = 2, t = 2, r = 2, c = 2, n = Qt(e) ? u(re(Qt(e), m0), 86) : u(re(e, m0), 86), l = new kn((!e.c && (e.c = new ne(Is, e, 9, 9)), e.c)); l.e != l.i.gc(); ) if (h = u(En(l), 125), d = u(re(h, vp), 64), d == (be(), mc) && (d = qte(h, n), Pt(h, vp, d)), a == (Ui(), Vc)) switch (d.g) { @@ -28809,23 +28899,23 @@ function WDn() { function kPn(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v, j; for (r = null, i = new x(n.a); i.a < i.c.c.length; ) - t = u(A(i), 9), NR(t) ? c = (f = F0(V8(new jd(), t), e.f), h = F0(V8(new jd(), t), e.f), l = new HV(t, !0, f, h), a = t.o.b, d = (Dw(), (t.q ? t.q : (ze(), ze(), El))._b((ae(), Lb)) ? g = u(y(t, Lb), 203) : g = u(y(_i(t), Nk), 203), g), p = 1e4, d == op && (p = 1), v = yf(ff(of(sf(hf(new Ro(), p), dr(m.Math.ceil(a))), f), h)), d == fp && ki(e.d, v), Xqe(e, _s(wc(t, (be(), an))), l), Xqe(e, wc(t, gn), l), l) : c = (j = F0(V8(new jd(), t), e.f), fi(mt(new Ge(null, new He(t.j, 16)), new j3e()), new nxe(e, j)), new HV(t, !1, j, j)), e.i[t.p] = c, r && (s = r.c.d.a + i2(e.n, r.c, t) + t.d.d, r.b || (s += r.c.o.b), yf(ff(of(hf(sf(new Ro(), dr(m.Math.ceil(s))), 0), r.d), c.a))), r = c; + t = u(A(i), 9), NR(t) ? c = (f = F0(V8(new jd(), t), e.f), h = F0(V8(new jd(), t), e.f), l = new HV(t, !0, f, h), a = t.o.b, d = (Dw(), (t.q ? t.q : (ze(), ze(), El))._b((ae(), Lb)) ? g = u(y(t, Lb), 203) : g = u(y(Bi(t), Nk), 203), g), p = 1e4, d == op && (p = 1), v = yf(ff(of(sf(hf(new Ro(), p), dr(m.Math.ceil(a))), f), h)), d == fp && ki(e.d, v), Kqe(e, Bs(wc(t, (be(), an))), l), Kqe(e, wc(t, gn), l), l) : c = (j = F0(V8(new jd(), t), e.f), fi(mt(new Ge(null, new He(t.j, 16)), new E3e()), new txe(e, j)), new HV(t, !1, j, j)), e.i[t.p] = c, r && (s = r.c.d.a + i2(e.n, r.c, t) + t.d.d, r.b || (s += r.c.o.b), yf(ff(of(hf(sf(new Ro(), dr(m.Math.ceil(s))), 0), r.d), c.a))), r = c; } function GR(e, n, t, i, r) { - var c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; - for (D = u(fs(Y$(mt(new Ge(null, new He(n.d, 16)), new J8e(t)), new G8e(t)), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), d = pt, a = Yi, h = new x(n.b.j); h.a < h.c.c.length; ) + var c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; + for (D = u(fs(Y$(mt(new Ge(null, new He(n.d, 16)), new G8e(t)), new H8e(t)), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), d = pt, a = Yi, h = new x(n.b.j); h.a < h.c.c.length; ) f = u(A(h), 12), f.j == t && (d = m.Math.min(d, f.p), a = m.Math.max(a, f.p)); if (d == pt) for (s = 0; s < D.gc(); s++) QQ(u(D.Xb(s), 107), t, s); else - for (R = W(Wn, lt, 30, r.length, 15, 1), sgn(R, R.length), M = D.Jc(); M.Ob(); ) { - for (E = u(M.Pb(), 107), c = u(rn(e.b, E), 171), l = 0, j = d; j <= a; j++) + for (R = W(Wn, lt, 30, r.length, 15, 1), sgn(R, R.length), T = D.Jc(); T.Ob(); ) { + for (E = u(T.Pb(), 107), c = u(rn(e.b, E), 171), l = 0, j = d; j <= a; j++) c[j] && (l = m.Math.max(l, i[j])); if (E.i) { for (p = E.i.c, J = new vi(), g = 0; g < r.length; g++) r[p][g] && ki(J, ie(R[g])); - for (; Bo(J, ie(l)); ) + for (; _o(J, ie(l)); ) ++l; } for (QQ(E, t, l), v = d; v <= a; v++) @@ -28833,10 +28923,10 @@ function WDn() { E.i && (R[E.i.c] = l); } } - function aze(e, n) { + function dze(e, n) { var t, i, r, c, s, f, h, l; - for (K(n, (te(), $k), ie(e.b)), K(n, om, ie(e.b)), ++e.b, d$e(e.d, n), K(n, zI, (en(), !0)), i = new fn(dn(Jh(n).a.Jc(), new Q())); xn(i); ) - t = u(pn(i), 17), !(t.c.i != n && dc(e.a, t, 0) == -1) && (t.c.i == n && dc(e.a, t, 0) != -1 || (l = null, t.d.i == n ? l = t.c.i : l = t.d.i, u(y(l, $k), 15).a == -1 ? (aze(e, l), K(n, om, ie(m.Math.min(u(y(n, om), 15).a, u(y(l, om), 15).a)))) : ve(me(y(l, zI))) && K(n, om, ie(m.Math.min(u(y(n, om), 15).a, u(y(l, $k), 15).a))))); + for (K(n, (te(), $k), ie(e.b)), K(n, om, ie(e.b)), ++e.b, b$e(e.d, n), K(n, zI, (en(), !0)), i = new fn(dn(Jh(n).a.Jc(), new Y())); xn(i); ) + t = u(pn(i), 17), !(t.c.i != n && dc(e.a, t, 0) == -1) && (t.c.i == n && dc(e.a, t, 0) != -1 || (l = null, t.d.i == n ? l = t.c.i : l = t.d.i, u(y(l, $k), 15).a == -1 ? (dze(e, l), K(n, om, ie(m.Math.min(u(y(n, om), 15).a, u(y(l, om), 15).a)))) : ve(me(y(l, zI))) && K(n, om, ie(m.Math.min(u(y(n, om), 15).a, u(y(l, $k), 15).a))))); if (z(y(n, om)) === z(y(n, $k))) { h = new vi(), c = null; do @@ -28849,9 +28939,9 @@ function WDn() { } function yPn(e, n, t, i) { var r, c, s, f, h, l, a, d, g, p; - for (c = new SGe(n), d = XMn(e, n, c), p = m.Math.max(_(H(y(n, (ae(), Ya)))), 1), a = new x(d.a); a.a < a.c.c.length; ) - l = u(A(a), 49), h = jBe(u(l.a, 8), u(l.b, 8), p), U = !0, U = U & B0(t, new ue(h.c, h.d)), U = U & B0(t, sw(new ue(h.c, h.d), h.b, 0)), U = U & B0(t, sw(new ue(h.c, h.d), 0, h.a)), U & B0(t, sw(new ue(h.c, h.d), h.b, h.a)); - switch (g = c.d, f = jBe(u(d.b.a, 8), u(d.b.b, 8), p), g == (be(), an) || g == gn ? (i.c[g.g] = m.Math.min(i.c[g.g], f.d), i.b[g.g] = m.Math.max(i.b[g.g], f.d + f.a)) : (i.c[g.g] = m.Math.min(i.c[g.g], f.c), i.b[g.g] = m.Math.max(i.b[g.g], f.c + f.b)), r = Ri, s = c.c.i.d, g.g) { + for (c = new IGe(n), d = XMn(e, n, c), p = m.Math.max(B(H(y(n, (ae(), Ya)))), 1), a = new x(d.a); a.a < a.c.c.length; ) + l = u(A(a), 49), h = E_e(u(l.a, 8), u(l.b, 8), p), q = !0, q = q & _0(t, new ue(h.c, h.d)), q = q & _0(t, sw(new ue(h.c, h.d), h.b, 0)), q = q & _0(t, sw(new ue(h.c, h.d), 0, h.a)), q & _0(t, sw(new ue(h.c, h.d), h.b, h.a)); + switch (g = c.d, f = E_e(u(d.b.a, 8), u(d.b.b, 8), p), g == (be(), an) || g == gn ? (i.c[g.g] = m.Math.min(i.c[g.g], f.d), i.b[g.g] = m.Math.max(i.b[g.g], f.d + f.a)) : (i.c[g.g] = m.Math.min(i.c[g.g], f.c), i.b[g.g] = m.Math.max(i.b[g.g], f.c + f.b)), r = Ri, s = c.c.i.d, g.g) { case 4: r = s.c; break; @@ -28869,16 +28959,16 @@ function WDn() { function jPn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p; if (c = u(y(e, (te(), $t)), 85), !!c) { - for (i = e.a, r = new vr(t), At(r, a7n(e)), Av(e.d.i, e.c.i) ? (g = e.c, d = bc(I(T(Ji, 1), oe, 8, 0, [g.n, g.a])), Fi(d, t)) : d = oh(e.c), ti(i, d, i.a, i.a.a), p = oh(e.d), y(e, sH) != null && At(p, u(y(e, sH), 8)), ti(i, p, i.c.b, i.c), Mw(i, r), s = ET(c), oM(s, u(F((!c.b && (c.b = new Qe(Cn, c, 4, 7)), c.b), 0), 84)), fM(s, u(F((!c.c && (c.c = new Qe(Cn, c, 5, 8)), c.c), 0), 84)), zte(i, s), a = new x(e.b); a.a < a.c.c.length; ) + for (i = e.a, r = new vr(t), At(r, a7n(e)), Av(e.d.i, e.c.i) ? (g = e.c, d = bc(I(S(Ji, 1), fe, 8, 0, [g.n, g.a])), Fi(d, t)) : d = oh(e.c), ti(i, d, i.a, i.a.a), p = oh(e.d), y(e, sH) != null && At(p, u(y(e, sH), 8)), ti(i, p, i.c.b, i.c), Mw(i, r), s = ET(c), oM(s, u(F((!c.b && (c.b = new Qe(Cn, c, 4, 7)), c.b), 0), 84)), fM(s, u(F((!c.c && (c.c = new Qe(Cn, c, 5, 8)), c.c), 0), 84)), zte(i, s), a = new x(e.b); a.a < a.c.c.length; ) l = u(A(a), 70), f = u(y(l, $t), 157), Y0(f, l.o.a), Q0(f, l.o.b), ao(f, l.n.a + r.a, l.n.b + r.b), Pt(f, (p3(), kG), me(y(l, kG))); h = u(y(e, (ae(), Vr)), 78), h ? (Mw(h, r), Pt(c, Vr, h)) : Pt(c, Vr, null), n == (na(), ym) ? Pt(c, la, ym) : Pt(c, la, null); } } function EPn(e, n, t, i) { - var r, c, s, f, h, l, a, d, g, p, v, j, E, M, D; + var r, c, s, f, h, l, a, d, g, p, v, j, E, T, D; for (p = n.c.length, g = 0, d = new x(e.b); d.a < d.c.c.length; ) - if (a = u(A(d), 25), M = a.a, M.c.length != 0) { - for (E = new x(M), l = 0, D = null, r = u(A(E), 9), c = null; r; ) { + if (a = u(A(d), 25), T = a.a, T.c.length != 0) { + for (E = new x(T), l = 0, D = null, r = u(A(E), 9), c = null; r; ) { if (c = u(pe(n, r.p), 263), c.c >= 0) { for (h = null, f = new Vi(a.a, l + 1); f.b < f.d.gc() && (s = (An(f.b < f.d.gc()), u(f.d.Xb(f.c = f.b++), 9)), h = u(pe(n, s.p), 263), !(h.d == c.d && h.c < c.c)); ) h = null; @@ -28890,11 +28980,11 @@ function WDn() { } } function APn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke; - f = u(rn(n.c, e), 457), D = n.a.c, h = n.a.c + n.a.b, Le = f.f, Ke = f.a, s = Le < Ke, j = new ue(D, Le), R = new ue(h, Ke), r = (D + h) / 2, E = new ue(r, Le), J = new ue(r, Ke), c = k$n(e, Le, Ke), X = oh(n.B), we = new ue(r, c), De = oh(n.D), t = s6n(I(T(Ji, 1), oe, 8, 0, [X, we, De])), p = !1, M = n.B.i, M && M.c && f.d && (l = s && M.p < M.c.a.c.length - 1 || !s && M.p > 0, l ? l && (g = M.p, s ? ++g : --g, d = u(pe(M.c.a, g), 9), i = AFe(d), p = !(PHe(i, X, t[0]) || GSe(i, X, t[0]))) : p = !0), v = !1, V = n.D.i, V && V.c && f.e && (a = s && V.p > 0 || !s && V.p < V.c.a.c.length - 1, a ? (g = V.p, s ? --g : ++g, d = u(pe(V.c.a, g), 9), i = AFe(d), v = !(PHe(i, t[0], De) || GSe(i, t[0], De))) : v = !0), p && v && rt(e.a, we), p || J6(e.a, I(T(Ji, 1), oe, 8, 0, [j, E])), v || J6(e.a, I(T(Ji, 1), oe, 8, 0, [J, R])); + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke; + f = u(rn(n.c, e), 457), D = n.a.c, h = n.a.c + n.a.b, Le = f.f, Ke = f.a, s = Le < Ke, j = new ue(D, Le), R = new ue(h, Ke), r = (D + h) / 2, E = new ue(r, Le), J = new ue(r, Ke), c = k$n(e, Le, Ke), X = oh(n.B), we = new ue(r, c), De = oh(n.D), t = s6n(I(S(Ji, 1), fe, 8, 0, [X, we, De])), p = !1, T = n.B.i, T && T.c && f.d && (l = s && T.p < T.c.a.c.length - 1 || !s && T.p > 0, l ? l && (g = T.p, s ? ++g : --g, d = u(pe(T.c.a, g), 9), i = xFe(d), p = !(OHe(i, X, t[0]) || HSe(i, X, t[0]))) : p = !0), v = !1, V = n.D.i, V && V.c && f.e && (a = s && V.p > 0 || !s && V.p < V.c.a.c.length - 1, a ? (g = V.p, s ? --g : ++g, d = u(pe(V.c.a, g), 9), i = xFe(d), v = !(OHe(i, t[0], De) || HSe(i, t[0], De))) : v = !0), p && v && rt(e.a, we), p || J6(e.a, I(S(Ji, 1), fe, 8, 0, [j, E])), v || J6(e.a, I(S(Ji, 1), fe, 8, 0, [J, R])); } - function dze(e, n, t, i) { - var r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De; + function bze(e, n, t, i) { + var r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De; if (t.c.length != 0) { for (v = new le(), p = new x(t); p.a < p.c.c.length; ) g = u(A(p), 26), he(v, new ue(g.i, g.j)); @@ -28902,19 +28992,19 @@ function WDn() { wT(e, t, !1); if (i.bh(n, "After removing overlaps"), f = 0, h = 0, r = null, t.c.length != 0 && (r = (qe(0, t.c.length), u(t.c[0], 26)), f = r.i - (qe(0, v.c.length), u(v.c[0], 8)).a, h = r.j - (qe(0, v.c.length), u(v.c[0], 8)).b), s = m.Math.sqrt(f * f + h * h), d = z6n(t), c = 1, d.a.gc() != 0) { for (a = d.a.ec().Jc(); a.Ob(); ) - l = u(a.Pb(), 26), j = e.f, E = j.i + j.g / 2, M = j.j + j.f / 2, D = l.i + l.g / 2, R = l.j + l.f / 2, J = D - E, V = R - M, X = m.Math.sqrt(J * J + V * V), we = J / X, De = V / X, Es(l, l.i + we * s), As(l, l.j + De * s); + l = u(a.Pb(), 26), j = e.f, E = j.i + j.g / 2, T = j.j + j.f / 2, D = l.i + l.g / 2, R = l.j + l.f / 2, J = D - E, V = R - T, X = m.Math.sqrt(J * J + V * V), we = J / X, De = V / X, Es(l, l.i + we * s), As(l, l.j + De * s); i.bh(n, "Child movement " + c), ++c; } - e.a && e.a.Fg(new os(d)), dze(e, n, new os(d), i); + e.a && e.a.Fg(new os(d)), bze(e, n, new os(d), i); } } function xPn(e, n) { var t, i, r, c, s, f, h, l, a, d, g; if (!e.f[n.p]) { - for (e.f[n.p] = !0, h = new Tn(), r = z(y(e.c, (ae(), hm))) === z((P1(), fg)), i = new fn(dn(Ht(n).a.Jc(), new Q())); xn(i); ) - t = u(pn(i), 17), Et(t.d.i, (te(), _t)) ? (g = 0, d = t.d.i, r ? (f = u(y(e.c, id), 15).a, g = f * u(y(d, lg), 15).a + u(y(d, _t), 15).a) : g = u(y(t.d.i, _t), 15).a, eu(h, ie(g)) ? ki(u(rn(h, ie(g)), 47), t) : ht(h, ie(g), new aw(new yc(I(T(H5, 1), E5, 17, 0, [t]))))) : ht(h, ie(pt - (h.f.c + h.i.c)), new aw(new yc(I(T(H5, 1), E5, 17, 0, [t])))); + for (e.f[n.p] = !0, h = new Tn(), r = z(y(e.c, (ae(), hm))) === z((P1(), fg)), i = new fn(dn(Ht(n).a.Jc(), new Y())); xn(i); ) + t = u(pn(i), 17), Et(t.d.i, (te(), Bt)) ? (g = 0, d = t.d.i, r ? (f = u(y(e.c, id), 15).a, g = f * u(y(d, lg), 15).a + u(y(d, Bt), 15).a) : g = u(y(t.d.i, Bt), 15).a, eu(h, ie(g)) ? ki(u(rn(h, ie(g)), 47), t) : ht(h, ie(g), new aw(new yc(I(S(H5, 1), E5, 17, 0, [t]))))) : ht(h, ie(pt - (h.f.c + h.i.c)), new aw(new yc(I(S(H5, 1), E5, 17, 0, [t])))); for (l = new WX(new Fl(h)), s = l.a.ec().Jc(); s.Ob(); ) - c = u(s.Pb(), 15).a, a = u(u(rn(h, ie(c)), 47).a.ec().Jc().Pb(), 17), !hr(a) && (d = a.d.i, e.f[d.p] && !Bo(e.e, n) && !Bo(e.d, d) ? Ci(e.b, u(rn(h, ie(c)), 18)) : rt(e.a, d)); + c = u(s.Pb(), 15).a, a = u(u(rn(h, ie(c)), 47).a.ec().Jc().Pb(), 17), !hr(a) && (d = a.d.i, e.f[d.p] && !_o(e.e, n) && !_o(e.d, d) ? Ci(e.b, u(rn(h, ie(c)), 18)) : rt(e.a, d)); } } function $Pn(e) { @@ -28924,28 +29014,28 @@ function WDn() { do r.a += "["; while ((n = Vm(t, 91, ++n)) != -1); - _e(i, D3) ? r.a += "Z" : _e(i, nk) ? r.a += "B" : _e(i, LS) ? r.a += "C" : _e(i, tk) ? r.a += "D" : _e(i, ik) ? r.a += "F" : _e(i, rk) ? r.a += "I" : _e(i, ck) ? r.a += "J" : _e(i, uk) ? r.a += "S" : (r.a += "L", r.a += "" + i, r.a += ";"); + Be(i, D3) ? r.a += "Z" : Be(i, nk) ? r.a += "B" : Be(i, LS) ? r.a += "C" : Be(i, tk) ? r.a += "D" : Be(i, ik) ? r.a += "F" : Be(i, rk) ? r.a += "I" : Be(i, ck) ? r.a += "J" : Be(i, uk) ? r.a += "S" : (r.a += "L", r.a += "" + i, r.a += ";"); try { return null; } catch (c) { if (c = gi(c), !N(c, 63)) throw $(c); } } else if (Nh(t, Fu(46)) == -1) { - if (_e(t, D3)) return zu; - if (_e(t, nk)) return us; - if (_e(t, LS)) return Oo; - if (_e(t, tk)) return Xi; - if (_e(t, ik)) return Bg; - if (_e(t, rk)) return Wn; - if (_e(t, ck)) return Gb; - if (_e(t, uk)) return Ap; + if (Be(t, D3)) return zu; + if (Be(t, nk)) return us; + if (Be(t, LS)) return Oo; + if (Be(t, tk)) return Xi; + if (Be(t, ik)) return _g; + if (Be(t, rk)) return Wn; + if (Be(t, ck)) return Gb; + if (Be(t, uk)) return Ap; } return null; } function MPn(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X; + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X; for (d = new PV(new Cz(e)); d.c != d.d.a.d; ) - for (a = oDe(d), f = u(a.d, 57), n = u(a.e, 57), s = f.Ah(), j = 0, J = (s.i == null && zh(s), s.i).length; j < J; ++j) + for (a = fDe(d), f = u(a.d, 57), n = u(a.e, 57), s = f.Ah(), j = 0, J = (s.i == null && zh(s), s.i).length; j < J; ++j) if (l = (c = (s.i == null && zh(s), s.i), j >= 0 && j < c.length ? c[j] : null), l.pk() && !l.qk()) { if (N(l, 103)) h = u(l, 19), (h.Bb & Lc) == 0 && (X = Ir(h), !(X && (X.Bb & Lc) != 0)) && sIn(e, h, f, n); @@ -28958,9 +29048,9 @@ function WDn() { r = R; } if (!t.Ml(g, r)) { - for (M = 0; M < i; ++M) - if (t.Rl(M) == g && z(t.Sl(M)) === z(r)) { - t.Ri(t.gc() - 1, M), --i; + for (T = 0; T < i; ++T) + if (t.Rl(T) == g && z(t.Sl(T)) === z(r)) { + t.Ri(t.gc() - 1, T), --i; break; } } @@ -28974,23 +29064,23 @@ function WDn() { t.Ug(); return; } - for (e.c = n, e.t = 0, e.u = 0, e.i = ii, e.g = Ri, e.d = _(H(y(n, (ae(), Mf)))), h8n(e), nxn(e), exn(e), s7n(e), wkn(e), e.i = m.Math.max(1, e.i), e.g = m.Math.max(1, e.g), e.d = e.d / e.i, e.f = e.g / e.i, e.s = M8n(e), i = new Jc(e.c), he(e.c.b, i), e.r = Nd(e.p), e.n = j$(e.k, e.k.length); e.r.c.length != 0; ) - e.o = R6n(e), !e.o || MFe(e) && e.b.a.gc() != 0 ? (D7n(e, i), i = new Jc(e.c), he(e.c.b, i), wr(e.a, e.b), e.b.a.$b(), e.t = e.u, e.u = 0) : MFe(e) ? (e.c.b.c.length = 0, i = new Jc(e.c), he(e.c.b, i), e.t = 0, e.u = 0, e.b.a.$b(), e.a.a.$b(), ++e.f, e.r = Nd(e.p), e.n = j$(e.k, e.k.length)) : (Ni(e.o, i), Du(e.r, e.o), ki(e.b, e.o), e.t = e.t - e.k[e.o.p] * e.d + e.j[e.o.p], e.u += e.e[e.o.p] * e.d); + for (e.c = n, e.t = 0, e.u = 0, e.i = ii, e.g = Ri, e.d = B(H(y(n, (ae(), Mf)))), h8n(e), nxn(e), exn(e), s7n(e), wkn(e), e.i = m.Math.max(1, e.i), e.g = m.Math.max(1, e.g), e.d = e.d / e.i, e.f = e.g / e.i, e.s = M8n(e), i = new Jc(e.c), he(e.c.b, i), e.r = Nd(e.p), e.n = j$(e.k, e.k.length); e.r.c.length != 0; ) + e.o = R6n(e), !e.o || TFe(e) && e.b.a.gc() != 0 ? (D7n(e, i), i = new Jc(e.c), he(e.c.b, i), wr(e.a, e.b), e.b.a.$b(), e.t = e.u, e.u = 0) : TFe(e) ? (e.c.b.c.length = 0, i = new Jc(e.c), he(e.c.b, i), e.t = 0, e.u = 0, e.b.a.$b(), e.a.a.$b(), ++e.f, e.r = Nd(e.p), e.n = j$(e.k, e.k.length)) : (Ni(e.o, i), Du(e.r, e.o), ki(e.b, e.o), e.t = e.t - e.k[e.o.p] * e.d + e.j[e.o.p], e.u += e.e[e.o.p] * e.d); n.a.c.length = 0, R7(n.b), t.Ug(); } function HR(e, n, t, i) { - var r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; - return h = e, a = Fi(new ue(n.a, n.b), e), l = t, d = Fi(new ue(i.a, i.b), t), g = h.a, E = h.b, v = l.a, D = l.b, p = a.a, M = a.b, j = d.a, R = d.b, r = j * M - p * R, rh(), pf(Yh), m.Math.abs(0 - r) <= Yh || r == 0 || isNaN(0) && isNaN(r) ? !1 : (s = 1 / r * ((g - v) * M - (E - D) * p), f = 1 / r * -(-(g - v) * R + (E - D) * j), c = (pf(Yh), (m.Math.abs(0 - s) <= Yh || s == 0 || isNaN(0) && isNaN(s) ? 0 : 0 < s ? -1 : 0 > s ? 1 : $d(isNaN(0), isNaN(s))) < 0 && (pf(Yh), (m.Math.abs(s - 1) <= Yh || s == 1 || isNaN(s) && isNaN(1) ? 0 : s < 1 ? -1 : s > 1 ? 1 : $d(isNaN(s), isNaN(1))) < 0) && (pf(Yh), (m.Math.abs(0 - f) <= Yh || f == 0 || isNaN(0) && isNaN(f) ? 0 : 0 < f ? -1 : 0 > f ? 1 : $d(isNaN(0), isNaN(f))) < 0) && (pf(Yh), (m.Math.abs(f - 1) <= Yh || f == 1 || isNaN(f) && isNaN(1) ? 0 : f < 1 ? -1 : f > 1 ? 1 : $d(isNaN(f), isNaN(1))) < 0)), c); + var r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; + return h = e, a = Fi(new ue(n.a, n.b), e), l = t, d = Fi(new ue(i.a, i.b), t), g = h.a, E = h.b, v = l.a, D = l.b, p = a.a, T = a.b, j = d.a, R = d.b, r = j * T - p * R, rh(), pf(Yh), m.Math.abs(0 - r) <= Yh || r == 0 || isNaN(0) && isNaN(r) ? !1 : (s = 1 / r * ((g - v) * T - (E - D) * p), f = 1 / r * -(-(g - v) * R + (E - D) * j), c = (pf(Yh), (m.Math.abs(0 - s) <= Yh || s == 0 || isNaN(0) && isNaN(s) ? 0 : 0 < s ? -1 : 0 > s ? 1 : $d(isNaN(0), isNaN(s))) < 0 && (pf(Yh), (m.Math.abs(s - 1) <= Yh || s == 1 || isNaN(s) && isNaN(1) ? 0 : s < 1 ? -1 : s > 1 ? 1 : $d(isNaN(s), isNaN(1))) < 0) && (pf(Yh), (m.Math.abs(0 - f) <= Yh || f == 0 || isNaN(0) && isNaN(f) ? 0 : 0 < f ? -1 : 0 > f ? 1 : $d(isNaN(0), isNaN(f))) < 0) && (pf(Yh), (m.Math.abs(f - 1) <= Yh || f == 1 || isNaN(f) && isNaN(1) ? 0 : f < 1 ? -1 : f > 1 ? 1 : $d(isNaN(f), isNaN(1))) < 0)), c); } function SPn(e) { var n, t, i, r, c, s, f, h, l, a, d; - for (e.j = W(Wn, lt, 30, e.g, 15, 1), e.o = new le(), fi(cc(new Ge(null, new He(e.e.b, 16)), new S3e()), new gye(e)), e.a = W(zu, zf, 30, e.b, 16, 1), y7(new Ge(null, new He(e.e.b, 16)), new mye(e)), i = (d = new le(), fi(mt(cc(new Ge(null, new He(e.e.b, 16)), new C3e()), new pye(e)), new txe(e, d)), d), h = new x(i); h.a < h.c.c.length; ) + for (e.j = W(Wn, lt, 30, e.g, 15, 1), e.o = new le(), fi(cc(new Ge(null, new He(e.e.b, 16)), new I3e()), new pye(e)), e.a = W(zu, zf, 30, e.b, 16, 1), y7(new Ge(null, new He(e.e.b, 16)), new vye(e)), i = (d = new le(), fi(mt(cc(new Ge(null, new He(e.e.b, 16)), new P3e()), new mye(e)), new ixe(e, d)), d), h = new x(i); h.a < h.c.c.length; ) if (f = u(A(h), 500), !(f.c.length <= 1)) { if (f.c.length == 2) { kAn(f), NR((qe(0, f.c.length), u(f.c[0], 17)).d.i) || he(e.o, f); continue; } - if (!(q7n(f) || SEn(f, new I3e()))) + if (!(q7n(f) || SEn(f, new C3e()))) for (l = new x(f), r = null; l.a < l.c.c.length; ) n = u(A(l), 17), t = e.c[n.p], !r || l.a >= l.c.c.length ? a = EQ((cn(), si), yi) : a = EQ((cn(), yi), yi), a *= 2, c = t.a.g, t.a.g = m.Math.max(c, c + (a - c)), s = t.b.g, t.b.g = m.Math.max(s, s + (a - s)), r = n; } @@ -28998,9 +29088,9 @@ function WDn() { function NT(e, n) { var t; if (e.e) - throw $(new qr((Gl(ZJ), IB + ZJ.k + CB))); + throw $(new qr((Gl(ZJ), I_ + ZJ.k + C_))); if (!Gan(e.a, n)) - throw $(new fc(CWe + n + PWe)); + throw $(new fc(PWe + n + OWe)); if (n == e.d) return e; switch (t = e.d, e.d = n, t.g) { @@ -29072,9 +29162,9 @@ function WDn() { function L2(e, n) { var t; if (e.d) - throw $(new qr((Gl(dG), IB + dG.k + CB))); + throw $(new qr((Gl(dG), I_ + dG.k + C_))); if (!Jan(e.a, n)) - throw $(new fc(CWe + n + PWe)); + throw $(new fc(PWe + n + OWe)); if (n == e.c) return e; switch (t = e.c, e.c = n, t.g) { @@ -29144,14 +29234,14 @@ function WDn() { return e; } function IPn(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; for (d = e.b, a = new Vi(d, 0), fw(a, new Jc(e)), D = !1, s = 1; a.b < a.d.gc(); ) { - for (l = (An(a.b < a.d.gc()), u(a.d.Xb(a.c = a.b++), 25)), j = (qe(s, d.c.length), u(d.c[s], 25)), E = Nd(l.a), M = E.c.length, v = new x(E); v.a < v.c.c.length; ) + for (l = (An(a.b < a.d.gc()), u(a.d.Xb(a.c = a.b++), 25)), j = (qe(s, d.c.length), u(d.c[s], 25)), E = Nd(l.a), T = E.c.length, v = new x(E); v.a < v.c.c.length; ) g = u(A(v), 9), Ni(g, j); if (D) { - for (p = _s(E).Jc(); p.Ob(); ) + for (p = Bs(E).Jc(); p.Ob(); ) for (g = u(p.Pb(), 9), c = new x(Nd(bi(g))); c.a < c.c.c.length; ) - r = u(A(c), 17), Ua(r, !0), K(e, (te(), im), (en(), !0)), i = UUe(e, r, M), t = u(y(g, Sb), 317), R = u(pe(i, i.c.length - 1), 17), t.k = R.c.i, t.n = R, t.b = r.d.i, t.c = r; + r = u(A(c), 17), Ua(r, !0), K(e, (te(), im), (en(), !0)), i = zUe(e, r, T), t = u(y(g, Sb), 317), R = u(pe(i, i.c.length - 1), 17), t.k = R.c.i, t.n = R, t.b = r.d.i, t.c = r; D = !1; } else E.c.length != 0 && (n = (qe(0, E.c.length), u(E.c[0], 9)), n.k == (cn(), Eh) && (D = !0, s = -1)); @@ -29162,7 +29252,7 @@ function WDn() { } function FT(e, n) { var t, i, r, c, s, f, h, l; - if (N(e.Bh(), 174) ? (FT(u(e.Bh(), 174), n), n.a += " > ") : n.a += "Root ", t = e.Ah().zb, _e(t.substr(0, 3), "Elk") ? it(n, (bn(3, t.length + 1), t.substr(3))) : n.a += "" + t, r = e.ih(), r) { + if (N(e.Bh(), 174) ? (FT(u(e.Bh(), 174), n), n.a += " > ") : n.a += "Root ", t = e.Ah().zb, Be(t.substr(0, 3), "Elk") ? it(n, (bn(3, t.length + 1), t.substr(3))) : n.a += "" + t, r = e.ih(), r) { it((n.a += " ", n), r); return; } @@ -29178,7 +29268,7 @@ function WDn() { if (N(e, 271) && (i = u(e, 85), !i.b && (i.b = new Qe(Cn, i, 4, 7)), i.b.i != 0 && (!i.c && (i.c = new Qe(Cn, i, 5, 8)), i.c.i != 0))) { for (n.a += " (", f = new Xp((!i.b && (i.b = new Qe(Cn, i, 4, 7)), i.b)); f.e != f.i.gc(); ) f.e > 0 && (n.a += mu), FT(u(En(f), 174), n); - for (n.a += BB, h = new Xp((!i.c && (i.c = new Qe(Cn, i, 5, 8)), i.c)); h.e != h.i.gc(); ) + for (n.a += __, h = new Xp((!i.c && (i.c = new Qe(Cn, i, 5, 8)), i.c)); h.e != h.i.gc(); ) h.e > 0 && (n.a += mu), FT(u(En(h), 174), n); n.a += ")"; } @@ -29186,17 +29276,17 @@ function WDn() { function CPn(e, n, t) { var i, r, c, s, f, h, l, a; for (h = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); h.e != h.i.gc(); ) - for (f = u(En(h), 26), r = new fn(dn(J1(f).a.Jc(), new Q())); xn(r); ) { + for (f = u(En(h), 26), r = new fn(dn(J1(f).a.Jc(), new Y())); xn(r); ) { if (i = u(pn(r), 85), !i.b && (i.b = new Qe(Cn, i, 4, 7)), !(i.b.i <= 1 && (!i.c && (i.c = new Qe(Cn, i, 5, 8)), i.c.i <= 1))) throw $(new Fp("Graph must not contain hyperedges.")); if (!g9(i) && f != ec(u(F((!i.c && (i.c = new Qe(Cn, i, 5, 8)), i.c), 0), 84))) - for (l = new KMe(), Pc(l, i), K(l, (I1(), Z3), i), Ahn(l, u(hc(Ur(t.f, f)), 155)), xhn(l, u(rn(t, ec(u(F((!i.c && (i.c = new Qe(Cn, i, 5, 8)), i.c), 0), 84))), 155)), he(n.c, l), s = new kn((!i.n && (i.n = new ne(vc, i, 1, 7)), i.n)); s.e != s.i.gc(); ) - c = u(En(s), 157), a = new iOe(l, c.a), Pc(a, c), K(a, Z3, c), a.e.a = m.Math.max(c.g, 1), a.e.b = m.Math.max(c.f, 1), Vte(a), he(n.d, a); + for (l = new VMe(), Pc(l, i), K(l, (I1(), Z3), i), Ahn(l, u(hc(Ur(t.f, f)), 155)), xhn(l, u(rn(t, ec(u(F((!i.c && (i.c = new Qe(Cn, i, 5, 8)), i.c), 0), 84))), 155)), he(n.c, l), s = new kn((!i.n && (i.n = new ne(vc, i, 1, 7)), i.n)); s.e != s.i.gc(); ) + c = u(En(s), 157), a = new rOe(l, c.a), Pc(a, c), K(a, Z3, c), a.e.a = m.Math.max(c.g, 1), a.e.b = m.Math.max(c.f, 1), Vte(a), he(n.d, a); } } function PPn(e, n, t) { var i, r, c, s, f, h, l, a, d, g; - switch (t.Tg("Node promotion heuristic", 1), e.i = n, e.r = u(y(n, (ae(), uE)), 243), e.r != (G1(), s4) && e.r != Jk ? rOn(e) : IMn(e), a = u(y(e.i, Jhe), 15).a, c = new Qge(), e.r.g) { + switch (t.Tg("Node promotion heuristic", 1), e.i = n, e.r = u(y(n, (ae(), uE)), 243), e.r != (G1(), s4) && e.r != Jk ? rOn(e) : IMn(e), a = u(y(e.i, Jhe), 15).a, c = new Yge(), e.r.g) { case 2: case 1: c5(e, c); @@ -29212,16 +29302,16 @@ function WDn() { l > e.n && (e.r = lE, c5(e, c)); break; case 6: - g = dr(m.Math.ceil(e.g.length * a / 100)), c5(e, new w8e(g)); + g = dr(m.Math.ceil(e.g.length * a / 100)), c5(e, new g8e(g)); break; case 5: - d = dr(m.Math.ceil(e.e * a / 100)), c5(e, new g8e(d)); + d = dr(m.Math.ceil(e.e * a / 100)), c5(e, new p8e(d)); break; case 8: - Wze(e, !0); + Xze(e, !0); break; case 9: - Wze(e, !1); + Xze(e, !1); break; default: c5(e, c); @@ -29229,18 +29319,18 @@ function WDn() { e.r != s4 && e.r != Jk ? V$n(e, n) : wTn(e, n), t.Ug(); } function OPn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; - for (d = new lie(e), ypn(d, !(n == (Mi(), Io) || n == Mh)), a = d.a, g = new Op(), r = (qf(), I(T(tg, 1), ce, 237, 0, [Mc, ku, Tc])), s = 0, h = r.length; s < h; ++s) + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; + for (d = new lie(e), ypn(d, !(n == (Mi(), Io) || n == Mh)), a = d.a, g = new Op(), r = (qf(), I(S(tg, 1), ce, 237, 0, [Mc, ku, Tc])), s = 0, h = r.length; s < h; ++s) t = r[s], l = mL(a, Mc, t), l && (g.d = m.Math.max(g.d, l.ff())); - for (i = I(T(tg, 1), ce, 237, 0, [Mc, ku, Tc]), c = 0, f = i.length; c < f; ++c) + for (i = I(S(tg, 1), ce, 237, 0, [Mc, ku, Tc]), c = 0, f = i.length; c < f; ++c) t = i[c], l = mL(a, Tc, t), l && (g.a = m.Math.max(g.a, l.ff())); - for (j = I(T(tg, 1), ce, 237, 0, [Mc, ku, Tc]), M = 0, R = j.length; M < R; ++M) - p = j[M], l = mL(a, p, Mc), l && (g.b = m.Math.max(g.b, l.gf())); - for (v = I(T(tg, 1), ce, 237, 0, [Mc, ku, Tc]), E = 0, D = v.length; E < D; ++E) + for (j = I(S(tg, 1), ce, 237, 0, [Mc, ku, Tc]), T = 0, R = j.length; T < R; ++T) + p = j[T], l = mL(a, p, Mc), l && (g.b = m.Math.max(g.b, l.gf())); + for (v = I(S(tg, 1), ce, 237, 0, [Mc, ku, Tc]), E = 0, D = v.length; E < D; ++E) p = v[E], l = mL(a, p, Tc), l && (g.c = m.Math.max(g.c, l.gf())); return g.d > 0 && (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 bze(e, n, t) { + function wze(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v; for (g = t.d, d = t.c, c = new ue(t.f.a + t.d.b + t.d.c, t.f.b + t.d.d + t.d.a), s = c.b, l = new x(e.a); l.a < l.c.c.length; ) if (f = u(A(l), 9), f.k == (cn(), Ai)) { @@ -29254,7 +29344,7 @@ function WDn() { switch (v = 0, i.g) { case 2: case 4: - n == (Ui(), Il) ? (p = _(H(y(f, Cb))), a.b = c.b * p - u(y(f, (ae(), Db)), 8).b, v = a.b + r.b, yM(f, !1, !0)) : n == Vc && (a.b = _(H(y(f, Cb))) - u(y(f, (ae(), Db)), 8).b, v = a.b + r.b, yM(f, !1, !0)); + n == (Ui(), Il) ? (p = B(H(y(f, Cb))), a.b = c.b * p - u(y(f, (ae(), Db)), 8).b, v = a.b + r.b, yM(f, !1, !0)) : n == Vc && (a.b = B(H(y(f, Cb))) - u(y(f, (ae(), Db)), 8).b, v = a.b + r.b, yM(f, !1, !0)); } s = m.Math.max(s, v); } @@ -29269,23 +29359,23 @@ function WDn() { } } function LPn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; if (a = u(u(Mt(e.r, n), 22), 83), a.gc() <= 2 || n == (be(), gn) || n == (be(), an)) { - Lze(e, n); + Dze(e, n); return; } - for (j = e.u.Gc((ls(), jm)), t = n == (be(), ln) ? (eb(), Gj) : (eb(), Jj), M = n == ln ? (Nu(), xf) : (Nu(), Vf), i = yW(OK(t), e.s), E = n == ln ? ii : Ri, l = a.Jc(); l.Ob(); ) - f = u(l.Pb(), 115), !(!f.c || f.c.d.c.length <= 0) && (v = f.b.Kf(), p = f.e, d = f.c, g = d.i, g.b = (c = d.n, d.e.a + c.b + c.c), g.a = (s = d.n, d.e.b + s.d + s.a), j ? (g.c = p.a - (r = d.n, d.e.a + r.b + r.c) - e.s, j = !1) : g.c = p.a + v.a + e.s, Ny(M, Rie), d.f = M, Hf(d, (hs(), Af)), he(i.d, new KL(g, IZ(i, g))), E = n == ln ? m.Math.min(E, p.b) : m.Math.max(E, p.b + f.b.Kf().b)); + for (j = e.u.Gc((ls(), jm)), t = n == (be(), ln) ? (eb(), Gj) : (eb(), Jj), T = n == ln ? (Nu(), xf) : (Nu(), Vf), i = yW(OK(t), e.s), E = n == ln ? ii : Ri, l = a.Jc(); l.Ob(); ) + f = u(l.Pb(), 115), !(!f.c || f.c.d.c.length <= 0) && (v = f.b.Kf(), p = f.e, d = f.c, g = d.i, g.b = (c = d.n, d.e.a + c.b + c.c), g.a = (s = d.n, d.e.b + s.d + s.a), j ? (g.c = p.a - (r = d.n, d.e.a + r.b + r.c) - e.s, j = !1) : g.c = p.a + v.a + e.s, Ny(T, Rie), d.f = T, Hf(d, (hs(), Af)), he(i.d, new KL(g, IZ(i, g))), E = n == ln ? m.Math.min(E, p.b) : m.Math.max(E, p.b + f.b.Kf().b)); for (E += n == ln ? -e.t : e.t, KZ((i.e = E, i)), h = a.Jc(); h.Ob(); ) f = u(h.Pb(), 115), !(!f.c || f.c.d.c.length <= 0) && (g = f.c.i, g.c -= f.e.a, g.d -= f.e.b); } - function wze(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; + function gze(e, n, t) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; for (r = new le(), j = new x(n.a); j.a < j.c.c.length; ) - if (v = u(A(j), 9), p = v.e, p && (i = wze(e, p, v), Ci(r, i), KCn(e, p, v), u(y(p, (te(), ou)), 22).Gc((Pr(), So)))) - for (D = u(y(v, (ae(), oi)), 102), g = u(y(v, gg), 182).Gc((ls(), ba)), M = new x(v.j); M.a < M.c.c.length; ) - for (E = u(A(M), 12), c = u(rn(e.b, E), 9), c || (c = nj(E, D, E.j, -(E.e.c.length - E.g.c.length), null, new er(), E.o, u(y(p, co), 86), p), K(c, $t, E), ht(e.b, E, c), he(p.a, c)), s = u(pe(c.j, 0), 12), a = new x(E.f); a.a < a.c.c.length; ) - l = u(A(a), 70), f = new uEe(), f.o.a = l.o.a, f.o.b = l.o.b, he(s.f, f), g || (R = E.j, d = 0, j6(u(y(v, gg), 22)) && (d = One(l.n, l.o, E.o, 0, R)), D == (Ui(), Sh) || (be(), Su).Gc(R) ? f.o.a = d : f.o.b = d); + if (v = u(A(j), 9), p = v.e, p && (i = gze(e, p, v), Ci(r, i), KCn(e, p, v), u(y(p, (te(), ou)), 22).Gc((Pr(), So)))) + for (D = u(y(v, (ae(), oi)), 102), g = u(y(v, gg), 182).Gc((ls(), ba)), T = new x(v.j); T.a < T.c.c.length; ) + for (E = u(A(T), 12), c = u(rn(e.b, E), 9), c || (c = nj(E, D, E.j, -(E.e.c.length - E.g.c.length), null, new er(), E.o, u(y(p, co), 86), p), K(c, $t, E), ht(e.b, E, c), he(p.a, c)), s = u(pe(c.j, 0), 12), a = new x(E.f); a.a < a.c.c.length; ) + l = u(A(a), 70), f = new sEe(), f.o.a = l.o.a, f.o.b = l.o.b, he(s.f, f), g || (R = E.j, d = 0, j6(u(y(v, gg), 22)) && (d = One(l.n, l.o, E.o, 0, R)), D == (Ui(), Sh) || (be(), Su).Gc(R) ? f.o.a = d : f.o.b = d); return h = new le(), VCn(e, n, t, r, h), t && dCn(e, n, t, h), h; } function oie(e, n, t) { @@ -29303,8 +29393,8 @@ function WDn() { function DPn(e) { var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E; for (v = new x(e); v.a < v.c.c.length; ) { - for (p = u(A(v), 9), Ia(p.n), Ia(p.o), HQ(p.f), Iqe(p), ZMn(p), E = new x(p.j); E.a < E.c.c.length; ) { - for (j = u(A(E), 12), Ia(j.n), Ia(j.a), Ia(j.o), Oi(j, ZBe(j.j)), c = u(y(j, (ae(), Za)), 15), c && K(j, Za, ie(-c.a)), r = new x(j.g); r.a < r.c.c.length; ) { + for (p = u(A(v), 9), Ia(p.n), Ia(p.o), HQ(p.f), Cqe(p), ZMn(p), E = new x(p.j); E.a < E.c.c.length; ) { + for (j = u(A(E), 12), Ia(j.n), Ia(j.a), Ia(j.o), Oi(j, eBe(j.j)), c = u(y(j, (ae(), Za)), 15), c && K(j, Za, ie(-c.a)), r = new x(j.g); r.a < r.c.c.length; ) { for (i = u(A(r), 17), t = Nn(i.a, 0); t.b != t.d.c; ) n = u(Ln(t), 8), Ia(n); if (h = u(y(i, Vr), 78), h) @@ -29316,15 +29406,15 @@ function WDn() { for (g = new x(j.f); g.a < g.c.c.length; ) l = u(A(g), 70), Ia(l.n), Ia(l.o); } - for (p.k == (cn(), Ai) && (K(p, (te(), Sc), ZBe(u(y(p, Sc), 64))), sMn(p)), a = new x(p.b); a.a < a.c.c.length; ) - l = u(A(a), 70), Iqe(l), Ia(l.o), Ia(l.n); + for (p.k == (cn(), Ai) && (K(p, (te(), Sc), eBe(u(y(p, Sc), 64))), sMn(p)), a = new x(p.b); a.a < a.c.c.length; ) + l = u(A(a), 70), Cqe(l), Ia(l.o), Ia(l.n); } } function NPn(e) { ow(); var n, t, i, r, c, s, f; for (i = e.f.n, s = $V(e.r).a.nc(); s.Ob(); ) { - if (c = u(s.Pb(), 115), r = 0, c.b.nf((tt(), Ss)) && (r = _(H(c.b.mf(Ss))), r < 0)) + if (c = u(s.Pb(), 115), r = 0, c.b.nf((tt(), Ss)) && (r = B(H(c.b.mf(Ss))), r < 0)) switch (c.b.$f().g) { case 1: i.d = m.Math.max(i.d, -r); @@ -29354,9 +29444,9 @@ function WDn() { } } } - function gze(e, n) { + function pze(e, n) { var t, i, r, c, s, f, h, l, a; - return l = "", n.length == 0 ? e.le($ie, nB, -1, -1) : (a = Rw(n), _e(a.substr(0, 3), "at ") && (a = (bn(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 = Rw((bn(s + 1, a.length + 1), a.substr(s + 1))), a = Rw((tr(0, s, a.length), a.substr(0, s))))) : (t = a.indexOf(")", s), l = (tr(s + 1, t, a.length), a.substr(s + 1, t - (s + 1))), a = Rw((tr(0, s, a.length), a.substr(0, s)))), s = Nh(a, Fu(46)), s != -1 && (a = (bn(s + 1, a.length + 1), a.substr(s + 1))), (a.length == 0 || _e(a, "Anonymous function")) && (a = nB), f = xx(l, Fu(58)), r = MK(l, Fu(58), f - 1), h = -1, i = -1, c = $ie, f != -1 && r != -1 && (c = (tr(0, r, l.length), l.substr(0, r)), h = bMe((tr(r + 1, f, l.length), l.substr(r + 1, f - (r + 1)))), i = bMe((bn(f + 1, l.length + 1), l.substr(f + 1)))), e.le(c, a, h, i)); + return l = "", n.length == 0 ? e.le($ie, n_, -1, -1) : (a = Rw(n), Be(a.substr(0, 3), "at ") && (a = (bn(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 = Rw((bn(s + 1, a.length + 1), a.substr(s + 1))), a = Rw((tr(0, s, a.length), a.substr(0, s))))) : (t = a.indexOf(")", s), l = (tr(s + 1, t, a.length), a.substr(s + 1, t - (s + 1))), a = Rw((tr(0, s, a.length), a.substr(0, s)))), s = Nh(a, Fu(46)), s != -1 && (a = (bn(s + 1, a.length + 1), a.substr(s + 1))), (a.length == 0 || Be(a, "Anonymous function")) && (a = n_), f = xx(l, Fu(58)), r = MK(l, Fu(58), f - 1), h = -1, i = -1, c = $ie, f != -1 && r != -1 && (c = (tr(0, r, l.length), l.substr(0, r)), h = wMe((tr(r + 1, f, l.length), l.substr(r + 1, f - (r + 1)))), i = wMe((bn(f + 1, l.length + 1), l.substr(f + 1)))), e.le(c, a, h, i)); } function FPn(e) { var n, t, i, r, c, s, f, h, l, a, d; @@ -29379,12 +29469,12 @@ function WDn() { break; } for (r = new x(a.g); r.a < r.c.c.length; ) - if (t = u(A(r), 17), f = u(y(t.d.i, pc), 165), f == (Bs(), Tk) || f == l0) { + if (t = u(A(r), 17), f = u(y(t.d.i, pc), 165), f == (_s(), Tk) || f == l0) { n = !1; break; } for (i = new x(a.e); i.a < i.c.c.length; ) - if (t = u(A(i), 17), f = u(y(t.c.i, pc), 165), f == (Bs(), Mk) || f == ha) { + if (t = u(A(i), 17), f = u(y(t.c.i, pc), 165), f == (_s(), Mk) || f == ha) { n = !1; break; } @@ -29394,9 +29484,9 @@ function WDn() { } } function RPn(e, n, t, i, r) { - var c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X; + var c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X; for (X = 0, p = 0, d = new x(n.e); d.a < d.c.c.length; ) { - for (a = u(A(d), 9), g = 0, f = 0, h = t ? u(y(a, mC), 15).a : Yi, M = i ? u(y(a, vC), 15).a : Yi, l = m.Math.max(h, M), R = new x(a.j); R.a < R.c.c.length; ) { + for (a = u(A(d), 9), g = 0, f = 0, h = t ? u(y(a, mC), 15).a : Yi, T = i ? u(y(a, vC), 15).a : Yi, l = m.Math.max(h, T), R = new x(a.j); R.a < R.c.c.length; ) { if (D = u(A(R), 12), J = a.n.b + D.n.b + D.a.b, i) for (s = new x(D.g); s.a < s.c.c.length; ) c = u(A(s), 17), j = c.d, v = j.i, n != e.a[v.p] && (E = m.Math.max(u(y(v, mC), 15).a, u(y(v, vC), 15).a), V = u(y(c, (ae(), am)), 15).a, V >= l && V >= E && (g += v.n.b + j.n.b + j.a.b - J, ++f)); @@ -29410,9 +29500,9 @@ function WDn() { } function fie(e, n, t, i) { var r, c, s, f, h; - return f = new lie(n), O$n(f, i), r = !0, e && e.nf((tt(), m0)) && (c = u(e.mf((tt(), m0)), 86), r = c == (Mi(), Th) || c == Qr || c == nc), gqe(f, !1), wu(f.e.Pf(), new PK(f, !1, r)), MD(f, f.f, (qf(), Mc), (be(), ln)), MD(f, f.f, Tc, Mn), MD(f, f.g, Mc, an), MD(f, f.g, Tc, gn), FBe(f, ln), FBe(f, Mn), PIe(f, gn), PIe(f, an), ow(), s = f.A.Gc((Js(), Cg)) && f.B.Gc((Ms(), GE)) ? VRe(f) : null, s && Yln(f.a, s), NPn(f), iyn(f), ryn(f), aPn(f), xSn(f), Syn(f), wF(f, ln), wF(f, Mn), dTn(f), nCn(f), t && (K9n(f), Iyn(f), wF(f, gn), wF(f, an), h = f.B.Gc((Ms(), k8)), iGe(f, h, ln), iGe(f, h, Mn), rGe(f, h, gn), rGe(f, h, an), fi(new Ge(null, new He(new Rl(f.i), 0)), new Wbe()), fi(mt(new Ge(null, $V(f.r).a.oc()), new Xbe()), new Kbe()), G7n(f), f.e.Nf(f.o), fi(new Ge(null, $V(f.r).a.oc()), new Vbe())), f.o; + return f = new lie(n), O$n(f, i), r = !0, e && e.nf((tt(), m0)) && (c = u(e.mf((tt(), m0)), 86), r = c == (Mi(), Th) || c == Qr || c == nc), pqe(f, !1), wu(f.e.Pf(), new PK(f, !1, r)), MD(f, f.f, (qf(), Mc), (be(), ln)), MD(f, f.f, Tc, Mn), MD(f, f.g, Mc, an), MD(f, f.g, Tc, gn), R_e(f, ln), R_e(f, Mn), OIe(f, gn), OIe(f, an), ow(), s = f.A.Gc((Js(), Cg)) && f.B.Gc((Ms(), GE)) ? QRe(f) : null, s && Yln(f.a, s), NPn(f), iyn(f), ryn(f), aPn(f), xSn(f), Syn(f), wF(f, ln), wF(f, Mn), dTn(f), nCn(f), t && (K9n(f), Iyn(f), wF(f, gn), wF(f, an), h = f.B.Gc((Ms(), k8)), rGe(f, h, ln), rGe(f, h, Mn), cGe(f, h, gn), cGe(f, h, an), fi(new Ge(null, new He(new Rl(f.i), 0)), new Xbe()), fi(mt(new Ge(null, $V(f.r).a.oc()), new Kbe()), new Vbe()), G7n(f), f.e.Nf(f.o), fi(new Ge(null, $V(f.r).a.oc()), new Qbe())), f.o; } - function BPn(e) { + function _Pn(e) { var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j; for (l = ii, i = new x(e.a.b); i.a < i.c.c.length; ) n = u(A(i), 82), l = m.Math.min(l, n.d.f.g.c + n.e.a); @@ -29423,45 +29513,45 @@ function WDn() { a = u(g.Pb(), 82), j = c.i + a.e.a, a.d.g || a.g.c < j ? a.o = j : a.o = a.g.c; for (r -= c.f.o, c.b += r, e.c == (Mi(), nc) || e.c == Mh ? c.c += r : c.c -= r, d = c.a.a.ec().Jc(); d.Ob(); ) for (a = u(d.Pb(), 82), h = a.f.Jc(); h.Ob(); ) - f = u(h.Pb(), 82), _l(e.c) ? v = e.f.wf(a, f) : v = e.f.xf(a, f), f.d.i = m.Math.max(f.d.i, a.o + a.g.b + v - f.e.a), f.k || (f.d.i = m.Math.max(f.d.i, f.g.c - f.e.a)), --f.d.e, f.d.e == 0 && rt(p, f.d); + f = u(h.Pb(), 82), Bl(e.c) ? v = e.f.wf(a, f) : v = e.f.xf(a, f), f.d.i = m.Math.max(f.d.i, a.o + a.g.b + v - f.e.a), f.k || (f.d.i = m.Math.max(f.d.i, f.g.c - f.e.a)), --f.d.e, f.d.e == 0 && rt(p, f.d); } for (t = new x(e.a.b); t.a < t.c.c.length; ) n = u(A(t), 82), n.g.c = n.o; } - function pze(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X; - for (t.Tg(UXe, 1), g = (Bt(), eq), e.a == (W6(), xC) && (g = nae), a = 0, ze(), n.gd(new VP(g)), c = n.gc(), f = n.dd(n.gc()), l = !0; l && f.Sb(); ) + function mze(e, n, t) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X; + for (t.Tg(zXe, 1), g = (_t(), eq), e.a == (W6(), xC) && (g = nae), a = 0, ze(), n.gd(new VP(g)), c = n.gc(), f = n.dd(n.gc()), l = !0; l && f.Sb(); ) D = u(f.Ub(), 40), u(y(D, g), 15).a == 0 ? --c : l = !1; if (X = n.hd(0, c), s = new CL(X), X = n.hd(c, n.gc()), h = new CL(X), s.b == 0) for (j = Nn(h, 0); j.b != j.d.c; ) v = u(Ln(j), 40), K(v, Yk, ie(a++)); else for (d = s.b, V = Nn(s, 0); V.b != V.d.c; ) { - for (J = u(Ln(V), 40), K(J, Yk, ie(a++)), i = LN(J), pze(e, i, t.dh(1 / d | 0)), _d(i, BV(new VP(Yk))), p = new Dt(), R = Nn(i, 0); R.b != R.d.c; ) - for (D = u(Ln(R), 40), M = Nn(J.d, 0); M.b != M.d.c; ) - E = u(Ln(M), 65), E.c == D && ti(p, E, p.c.b, p.c); + for (J = u(Ln(V), 40), K(J, Yk, ie(a++)), i = LN(J), mze(e, i, t.dh(1 / d | 0)), Bd(i, _V(new VP(Yk))), p = new Dt(), R = Nn(i, 0); R.b != R.d.c; ) + for (D = u(Ln(R), 40), T = Nn(J.d, 0); T.b != T.d.c; ) + E = u(Ln(T), 65), E.c == D && ti(p, E, p.c.b, p.c); for (Fs(J.d), wr(J.d, p), f = Nn(h, h.b), r = J.d.b, l = !0; 0 < r && l && f.Sb(); ) D = u(f.Ub(), 40), u(y(D, g), 15).a == 0 ? (K(D, Yk, ie(a++)), --r, f.Qb()) : l = !1; } t.Ug(); } - function mze(e, n, t) { + function vze(e, n, t) { var i, r, c, s, f, h, l, a, d, g; for (a = new dh(t), Pc(a, n), K(a, (te(), $t), n), a.o.a = n.g, a.o.b = n.f, a.n.a = n.i, a.n.b = n.j, he(t.a, a), ht(e.a, n, a), ((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a).i != 0 || ve(me(re(n, (ae(), dg))))) && K(a, Mfe, (en(), !0)), l = u(y(t, ou), 22), d = u(y(a, (ae(), oi)), 102), d == (Ui(), ad) ? K(a, oi, Sh) : d != Sh && l.Ec((Pr(), Z5)), g = 0, i = u(y(t, co), 86), h = new kn((!n.c && (n.c = new ne(Is, n, 9, 9)), n.c)); h.e != h.i.gc(); ) - f = u(En(h), 125), r = Qt(n), PT(r) && !ve(me(re(n, VI))) && Pt(f, _t, ie(g++)), ve(me(re(f, b0))) || UPn(e, f, a, l, i, d); + f = u(En(h), 125), r = Qt(n), PT(r) && !ve(me(re(n, VI))) && Pt(f, Bt, ie(g++)), ve(me(re(f, b0))) || UPn(e, f, a, l, i, d); for (s = new kn((!n.n && (n.n = new ne(vc, n, 1, 7)), n.n)); s.e != s.i.gc(); ) c = u(En(s), 157), !ve(me(re(c, b0))) && c.a && he(a.b, KN(c)); - return ve(me(y(a, Sk))) && l.Ec((Pr(), RI)), ve(me(y(a, eC))) && (l.Ec((Pr(), BI)), l.Ec(jk), K(a, oi, Sh)), a; + return ve(me(y(a, Sk))) && l.Ec((Pr(), RI)), ve(me(y(a, eC))) && (l.Ec((Pr(), _I)), l.Ec(jk), K(a, oi, Sh)), a; } - function _Pn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; + function BPn(e, n) { + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; for (n.Tg("Inverted port preprocessing", 1), a = e.b, l = new Vi(a, 0), t = null, R = new le(); l.b < l.d.gc(); ) { for (D = t, t = (An(l.b < l.d.gc()), u(l.d.Xb(l.c = l.b++), 25)), p = new x(R); p.a < p.c.c.length; ) d = u(A(p), 9), Ni(d, D); for (R.c.length = 0, v = new x(t.a); v.a < v.c.c.length; ) if (d = u(A(v), 9), d.k == (cn(), si) && e2(u(y(d, (ae(), oi)), 102))) { - for (M = jte(d, (Cr(), bs), (be(), gn)).Jc(); M.Ob(); ) - for (j = u(M.Pb(), 12), h = j.e, f = u(ah(h, W(H5, E5, 17, h.c.length, 0, 1)), 323), r = f, c = 0, s = r.length; c < s; ++c) + for (T = jte(d, (Cr(), bs), (be(), gn)).Jc(); T.Ob(); ) + for (j = u(T.Pb(), 12), h = j.e, f = u(ah(h, W(H5, E5, 17, h.c.length, 0, 1)), 323), r = f, c = 0, s = r.length; c < s; ++c) i = r[c], hIn(e, j, i, R); for (E = jte(d, yu, an).Jc(); E.Ob(); ) for (j = u(E.Pb(), 12), h = j.g, f = u(ah(h, W(H5, E5, 17, h.c.length, 0, 1)), 323), r = f, c = 0, s = r.length; c < s; ++c) @@ -29474,38 +29564,38 @@ function WDn() { } function JPn(e) { var n, t, i, r, c, s, f, h, l, a, d, g, p; - for (d = _(H(re(e, (_1(), vq)))), ve(me(re(e, Nae))) && (a = u(re(e, (s2(), ap)), 26), c = u(F(_V(u(F((!a.e && (a.e = new Qe(xi, a, 7, 4)), a.e), (!a.e && (a.e = new Qe(xi, a, 7, 4)), a.e).i - 1), 85)), 0), 26), i = u(F(_V(u(F((!a.e && (a.e = new Qe(xi, a, 7, 4)), a.e), 0), 85)), 0), 26), s = new ue(c.i + c.g / 2, c.j + c.f / 2), r = new ue(i.i + i.g / 2, i.j + i.f / 2), t = d, t <= 0 && (t += t0), g = m.Math.acos((s.a * r.a + s.b * r.b) / (m.Math.sqrt(s.a * s.a + s.b * s.b) * m.Math.sqrt(r.a * r.a + r.b * r.b))), g <= 0 && (g += t0), n = m.Math.atan2(s.b, s.a), n <= 0 && (n += t0), d = Ace - (n - t + g / 2)), h = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); h.e != h.i.gc(); ) + for (d = B(H(re(e, (B1(), vq)))), ve(me(re(e, Nae))) && (a = u(re(e, (s2(), ap)), 26), c = u(F(BV(u(F((!a.e && (a.e = new Qe(xi, a, 7, 4)), a.e), (!a.e && (a.e = new Qe(xi, a, 7, 4)), a.e).i - 1), 85)), 0), 26), i = u(F(BV(u(F((!a.e && (a.e = new Qe(xi, a, 7, 4)), a.e), 0), 85)), 0), 26), s = new ue(c.i + c.g / 2, c.j + c.f / 2), r = new ue(i.i + i.g / 2, i.j + i.f / 2), t = d, t <= 0 && (t += t0), g = m.Math.acos((s.a * r.a + s.b * r.b) / (m.Math.sqrt(s.a * s.a + s.b * s.b) * m.Math.sqrt(r.a * r.a + r.b * r.b))), g <= 0 && (g += t0), n = m.Math.atan2(s.b, s.a), n <= 0 && (n += t0), d = Ace - (n - t + g / 2)), h = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); h.e != h.i.gc(); ) f = u(En(h), 26), l = new ue(f.i + f.g / 2, f.j + f.f / 2), p = l.a * m.Math.cos(d) - l.b * m.Math.sin(d), l.b = l.a * m.Math.sin(d) + l.b * m.Math.cos(d), l.a = p, ao(f, l.a - f.g / 2, l.b - f.f / 2); } function GPn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; - if (j = e.n, E = e.o, g = e.d, d = _(H(Ow(e, (ae(), AH)))), n) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; + if (j = e.n, E = e.o, g = e.d, d = B(H(Ow(e, (ae(), AH)))), n) { for (a = d * (n.gc() - 1), p = 0, h = n.Jc(); h.Ob(); ) s = u(h.Pb(), 9), a += s.o.a, p = m.Math.max(p, s.o.b); - for (M = j.a - (a - E.a) / 2, c = j.b - g.d + p, i = E.a / (n.gc() + 1), r = i, f = n.Jc(); f.Ob(); ) - s = u(f.Pb(), 9), s.n.a = M, s.n.b = c - s.o.b, M += s.o.a + d, l = MHe(s), l.n.a = s.o.a / 2 - l.a.a, l.n.b = s.o.b, v = u(y(s, (te(), JI)), 12), v.e.c.length + v.g.c.length == 1 && (v.n.a = r - v.a.a, v.n.b = 0, ac(v, e)), r += i; + for (T = j.a - (a - E.a) / 2, c = j.b - g.d + p, i = E.a / (n.gc() + 1), r = i, f = n.Jc(); f.Ob(); ) + s = u(f.Pb(), 9), s.n.a = T, s.n.b = c - s.o.b, T += s.o.a + d, l = THe(s), l.n.a = s.o.a / 2 - l.a.a, l.n.b = s.o.b, v = u(y(s, (te(), JI)), 12), v.e.c.length + v.g.c.length == 1 && (v.n.a = r - v.a.a, v.n.b = 0, ac(v, e)), r += i; } if (t) { for (a = d * (t.gc() - 1), p = 0, h = t.Jc(); h.Ob(); ) s = u(h.Pb(), 9), a += s.o.a, p = m.Math.max(p, s.o.b); - for (M = j.a - (a - E.a) / 2, c = j.b + E.b + g.a - p, i = E.a / (t.gc() + 1), r = i, f = t.Jc(); f.Ob(); ) - s = u(f.Pb(), 9), s.n.a = M, s.n.b = c, M += s.o.a + d, l = MHe(s), l.n.a = s.o.a / 2 - l.a.a, l.n.b = 0, v = u(y(s, (te(), JI)), 12), v.e.c.length + v.g.c.length == 1 && (v.n.a = r - v.a.a, v.n.b = E.b, ac(v, e)), r += i; + for (T = j.a - (a - E.a) / 2, c = j.b + E.b + g.a - p, i = E.a / (t.gc() + 1), r = i, f = t.Jc(); f.Ob(); ) + s = u(f.Pb(), 9), s.n.a = T, s.n.b = c, T += s.o.a + d, l = THe(s), l.n.a = s.o.a / 2 - l.a.a, l.n.b = 0, v = u(y(s, (te(), JI)), 12), v.e.c.length + v.g.c.length == 1 && (v.n.a = r - v.a.a, v.n.b = E.b, ac(v, e)), r += i; } } function qR(e, n, t, i, r, c, s) { - var f, h, l, a, d, g, p, v, j, E, M, D, R; + var f, h, l, a, d, g, p, v, j, E, T, D, R; for (g = null, i == (X0(), sd) ? g = n : i == hp && (g = t), j = g.a.ec().Jc(); j.Ob(); ) { - for (v = u(j.Pb(), 12), E = bc(I(T(Ji, 1), oe, 8, 0, [v.i.n, v.n, v.a])).b, R = new vi(), f = new vi(), l = new fh(v.b); lc(l.a) || lc(l.b); ) + for (v = u(j.Pb(), 12), E = bc(I(S(Ji, 1), fe, 8, 0, [v.i.n, v.n, v.a])).b, R = new vi(), f = new vi(), l = new fh(v.b); lc(l.a) || lc(l.b); ) if (h = u(lc(l.a) ? A(l.a) : A(l.b), 17), ve(me(y(h, (te(), Qa)))) == r && dc(c, h, 0) != -1) { - if (h.d == v ? M = h.c : M = h.d, D = bc(I(T(Ji, 1), oe, 8, 0, [M.i.n, M.n, M.a])).b, m.Math.abs(D - E) < 0.2) + if (h.d == v ? T = h.c : T = h.d, D = bc(I(S(Ji, 1), fe, 8, 0, [T.i.n, T.n, T.a])).b, m.Math.abs(D - E) < 0.2) continue; - D < E ? n.a._b(M) ? ki(R, new Ar(sd, h)) : ki(R, new Ar(hp, h)) : n.a._b(M) ? ki(f, new Ar(sd, h)) : ki(f, new Ar(hp, h)); + D < E ? n.a._b(T) ? ki(R, new Ar(sd, h)) : ki(R, new Ar(hp, h)) : n.a._b(T) ? ki(f, new Ar(sd, h)) : ki(f, new Ar(hp, h)); } if (R.a.gc() > 1) - for (p = new eie(v, R, i), fr(R, new rxe(e, p)), sn(s.c, p), d = R.a.ec().Jc(); d.Ob(); ) + for (p = new eie(v, R, i), fr(R, new cxe(e, p)), sn(s.c, p), d = R.a.ec().Jc(); d.Ob(); ) a = u(d.Pb(), 49), Du(c, a.b); if (f.a.gc() > 1) - for (p = new eie(v, f, i), fr(f, new cxe(e, p)), sn(s.c, p), d = f.a.ec().Jc(); d.Ob(); ) + for (p = new eie(v, f, i), fr(f, new uxe(e, p)), sn(s.c, p), d = f.a.ec().Jc(); d.Ob(); ) a = u(d.Pb(), 49), Du(c, a.b); } } @@ -29518,31 +29608,31 @@ function WDn() { if (c = u(A(s), 9), c.k != (cn(), si)) switch (c.k.g) { case 2: - if (i = u(y(c, (ae(), pc)), 165), i == (Bs(), ha)) { - c.n.a = e.c - 10, p_e(c, new Pge()).Jb(new f8e(c)); + if (i = u(y(c, (ae(), pc)), 165), i == (_s(), ha)) { + c.n.a = e.c - 10, mBe(c, new Oge()).Jb(new h8e(c)); break; } if (i == l0) { - c.n.a = e.a + 10, p_e(c, new Oge()).Jb(new h8e(c)); + c.n.a = e.a + 10, mBe(c, new Lge()).Jb(new l8e(c)); break; } if (t = u(y(c, f0), 315), t == (Kl(), ep)) { - GUe(c).Jb(new l8e(c)), c.n.b = e.d - 10; + HUe(c).Jb(new a8e(c)), c.n.b = e.d - 10; break; } if (t == nm) { - GUe(c).Jb(new a8e(c)), c.n.b = e.b + 10; + HUe(c).Jb(new d8e(c)), c.n.b = e.b + 10; break; } break; default: - throw $(new on("The node type " + c.k + " is not supported by the " + BLn)); + throw $(new on("The node type " + c.k + " is not supported by the " + _Ln)); } } } function qPn(e, n, t, i) { var r, c, s, f, h, l, a, d, g, p, v, j, E; - for (h = new ue(i.i + i.g / 2, i.j + i.f / 2), p = BUe(i), v = u(re(n, (ae(), oi)), 102), E = u(re(i, i4), 64), Wxe(PBe(i), wg) || (i.i == 0 && i.j == 0 ? j = 0 : j = yjn(i, E), Pt(i, wg, j)), l = new ue(n.g, n.f), r = nj(i, v, E, p, l, h, new ue(i.g, i.f), u(y(t, co), 86), t), K(r, (te(), $t), i), c = u(pe(r.j, 0), 12), Mhn(c, fSn(i)), K(r, gg, (ls(), Pe(dd))), d = u(re(n, gg), 182).Gc(ba), f = new kn((!i.n && (i.n = new ne(vc, i, 1, 7)), i.n)); f.e != f.i.gc(); ) + for (h = new ue(i.i + i.g / 2, i.j + i.f / 2), p = BUe(i), v = u(re(n, (ae(), oi)), 102), E = u(re(i, i4), 64), Xxe(O_e(i), wg) || (i.i == 0 && i.j == 0 ? j = 0 : j = yjn(i, E), Pt(i, wg, j)), l = new ue(n.g, n.f), r = nj(i, v, E, p, l, h, new ue(i.g, i.f), u(y(t, co), 86), t), K(r, (te(), $t), i), c = u(pe(r.j, 0), 12), Mhn(c, fSn(i)), K(r, gg, (ls(), Pe(dd))), d = u(re(n, gg), 182).Gc(ba), f = new kn((!i.n && (i.n = new ne(vc, i, 1, 7)), i.n)); f.e != f.i.gc(); ) if (s = u(En(f), 157), !ve(me(re(s, b0))) && s.a && (g = KN(s), he(c.f, g), !d)) switch (a = 0, j6(u(re(n, gg), 22)) && (a = One(new ue(s.i, s.j), new ue(s.g, s.f), new ue(i.g, i.f), 0, E)), E.g) { case 2: @@ -29557,7 +29647,7 @@ function WDn() { } function UPn(e, n, t, i, r, c) { var s, f, h, l, a, d; - for (l = new Uc(), Pc(l, n), Oi(l, u(re(n, (ae(), i4)), 64)), K(l, (te(), $t), n), ac(l, t), d = l.o, d.a = n.g, d.b = n.f, a = l.n, a.a = n.i, a.b = n.j, ht(e.a, n, l), s = a2(du(cc(new Ge(null, (!n.e && (n.e = new Qe(xi, n, 7, 4)), new He(n.e, 16))), new Fwe()), new Lwe()), new e8e(n)), s || (s = a2(du(cc(new Ge(null, (!n.d && (n.d = new Qe(xi, n, 8, 5)), new He(n.d, 16))), new Rwe()), new Dwe()), new n8e(n))), s || (s = a2(new Ge(null, (!n.e && (n.e = new Qe(xi, n, 7, 4)), new He(n.e, 16))), new Bwe())), K(l, nE, (en(), !!s)), gCn(l, c, r, u(re(n, Db), 8)), h = new kn((!n.n && (n.n = new ne(vc, n, 1, 7)), n.n)); h.e != h.i.gc(); ) + for (l = new Uc(), Pc(l, n), Oi(l, u(re(n, (ae(), i4)), 64)), K(l, (te(), $t), n), ac(l, t), d = l.o, d.a = n.g, d.b = n.f, a = l.n, a.a = n.i, a.b = n.j, ht(e.a, n, l), s = a2(du(cc(new Ge(null, (!n.e && (n.e = new Qe(xi, n, 7, 4)), new He(n.e, 16))), new Rwe()), new Dwe()), new n8e(n)), s || (s = a2(du(cc(new Ge(null, (!n.d && (n.d = new Qe(xi, n, 8, 5)), new He(n.d, 16))), new _we()), new Nwe()), new t8e(n))), s || (s = a2(new Ge(null, (!n.e && (n.e = new Qe(xi, n, 7, 4)), new He(n.e, 16))), new Bwe())), K(l, nE, (en(), !!s)), gCn(l, c, r, u(re(n, Db), 8)), h = new kn((!n.n && (n.n = new ne(vc, n, 1, 7)), n.n)); h.e != h.i.gc(); ) f = u(En(h), 157), !ve(me(re(f, b0))) && f.a && he(l.f, KN(f)); switch (r.g) { case 2: @@ -29571,11 +29661,11 @@ function WDn() { return l; } function zPn(e, n, t, i, r, c) { - var s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut; - Ye = rn(e.g, r), Ye == null && (Ye = new Dp(), v = u(Ye, 149), R = n + "_s", J = R + c, p = new gw(J), gf(v, Zh, p)), Ke = u(Ye, 149), c3(t, Ke), ut = new Dp(), Ld(ut, "x", rT(e, i, r.j)), Ld(ut, "y", cT(e, i, r.k)), gf(Ke, VKe, ut), De = new Dp(), Ld(De, "x", rT(e, i, r.b)), Ld(De, "y", cT(e, i, r.c)), gf(Ke, "endPoint", De), g = K8((!r.a && (r.a = new $i(fo, r, 5)), r.a)), j = !g, j && (we = new kd(), s = new RTe(e, i, we), fr((!r.a && (r.a = new $i(fo, r, 5)), r.a), s), gf(Ke, TS, we)), l = EF(r), V = !!l, V && rne(e.a, Ke, Mue, iR(e, EF(r))), D = AF(r), X = !!D, X && rne(e.a, Ke, $ue, iR(e, AF(r))), a = (!r.e && (r.e = new Qe(Wt, r, 10, 9)), r.e).i == 0, E = !a, E && (Le = new kd(), f = new Bxe(e, Le), fr((!r.e && (r.e = new Qe(Wt, r, 10, 9)), r.e), f), gf(Ke, Sue, Le)), d = (!r.g && (r.g = new Qe(Wt, r, 9, 10)), r.g).i == 0, M = !d, M && (yn = new kd(), h = new _xe(e, yn), fr((!r.g && (r.g = new Qe(Wt, r, 9, 10)), r.g), h), gf(Ke, Tue, yn)); + var s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut; + Ye = rn(e.g, r), Ye == null && (Ye = new Dp(), v = u(Ye, 149), R = n + "_s", J = R + c, p = new gw(J), gf(v, Zh, p)), Ke = u(Ye, 149), c3(t, Ke), ut = new Dp(), Ld(ut, "x", rT(e, i, r.j)), Ld(ut, "y", cT(e, i, r.k)), gf(Ke, QKe, ut), De = new Dp(), Ld(De, "x", rT(e, i, r.b)), Ld(De, "y", cT(e, i, r.c)), gf(Ke, "endPoint", De), g = K8((!r.a && (r.a = new $i(fo, r, 5)), r.a)), j = !g, j && (we = new kd(), s = new _Te(e, i, we), fr((!r.a && (r.a = new $i(fo, r, 5)), r.a), s), gf(Ke, TS, we)), l = EF(r), V = !!l, V && rne(e.a, Ke, Mue, iR(e, EF(r))), D = AF(r), X = !!D, X && rne(e.a, Ke, $ue, iR(e, AF(r))), a = (!r.e && (r.e = new Qe(Wt, r, 10, 9)), r.e).i == 0, E = !a, E && (Le = new kd(), f = new Bxe(e, Le), fr((!r.e && (r.e = new Qe(Wt, r, 10, 9)), r.e), f), gf(Ke, Sue, Le)), d = (!r.g && (r.g = new Qe(Wt, r, 9, 10)), r.g).i == 0, T = !d, T && (yn = new kd(), h = new Jxe(e, yn), fr((!r.g && (r.g = new Qe(Wt, r, 9, 10)), r.g), h), gf(Ke, Tue, yn)); } function WPn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; for (n.Tg("Comment pre-processing", 1), t = 0, h = new x(e.a); h.a < h.c.c.length; ) if (f = u(A(h), 9), ve(me(y(f, (ae(), Sk))))) { for (++t, r = 0, i = null, l = null, v = new x(f.j); v.a < v.c.c.length; ) @@ -29583,41 +29673,41 @@ function WDn() { if (r == 1 && l.e.c.length + l.g.c.length == 1 && !ve(me(y(l.i, Sk)))) xOn(f, i, l, l.i), A6(h); else { - for (M = new le(), p = new x(f.j); p.a < p.c.c.length; ) { + for (T = new le(), p = new x(f.j); p.a < p.c.c.length; ) { for (g = u(A(p), 12), d = new x(g.g); d.a < d.c.c.length; ) - a = u(A(d), 17), a.d.g.c.length == 0 || sn(M.c, a); + a = u(A(d), 17), a.d.g.c.length == 0 || sn(T.c, a); for (s = new x(g.e); s.a < s.c.c.length; ) - c = u(A(s), 17), c.c.e.c.length == 0 || sn(M.c, c); + c = u(A(s), 17), c.c.e.c.length == 0 || sn(T.c, c); } - for (E = new x(M); E.a < E.c.c.length; ) + for (E = new x(T); E.a < E.c.c.length; ) j = u(A(E), 17), Ua(j, !0); } } n.$g() && n.ah("Found " + t + " comment boxes"), n.Ug(); } function XPn(e, n, t, i, r) { - var c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke; + var c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke; for (R = 0, v = 0, p = 0, g = 1, D = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); D.e != D.i.gc(); ) - E = u(En(D), 26), g += _f(new fn(dn(J1(E).a.Jc(), new Q()))), De = E.g, v = m.Math.max(v, De), d = E.f, p = m.Math.max(p, d), R += De * d; - for (j = (!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a).i, s = R + 2 * i * i * g * j, c = m.Math.sqrt(s), h = m.Math.max(c * t, v), f = m.Math.max(c / t, p), M = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); M.e != M.i.gc(); ) - E = u(En(M), 26), Le = r.b + ($s(n, 26) * P9 + $s(n, 27) * O9) * (h - E.g), Ke = r.b + ($s(n, 26) * P9 + $s(n, 27) * O9) * (f - E.f), Es(E, Le), As(E, Ke); + E = u(En(D), 26), g += Bf(new fn(dn(J1(E).a.Jc(), new Y()))), De = E.g, v = m.Math.max(v, De), d = E.f, p = m.Math.max(p, d), R += De * d; + for (j = (!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a).i, s = R + 2 * i * i * g * j, c = m.Math.sqrt(s), h = m.Math.max(c * t, v), f = m.Math.max(c / t, p), T = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); T.e != T.i.gc(); ) + E = u(En(T), 26), Le = r.b + ($s(n, 26) * P9 + $s(n, 27) * O9) * (h - E.g), Ke = r.b + ($s(n, 26) * P9 + $s(n, 27) * O9) * (f - E.f), Es(E, Le), As(E, Ke); for (we = h + (r.b + r.c), X = f + (r.d + r.a), V = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); V.e != V.i.gc(); ) - for (J = u(En(V), 26), a = new fn(dn(J1(J).a.Jc(), new Q())); xn(a); ) + for (J = u(En(V), 26), a = new fn(dn(J1(J).a.Jc(), new Y())); xn(a); ) l = u(pn(a), 85), g9(l) || eLn(l, n, we, X); we += r.b + r.c, X += r.d + r.a, ab(e, we, X, !1, !0); } function KPn(e) { var n, t, i, r; - for (fi(mt(new Ge(null, new He(e.a.b, 16)), new upe()), new spe()), v7n(e), fi(mt(new Ge(null, new He(e.a.b, 16)), new ope()), new fpe()), e.c == (na(), ym) && (fi(mt(cc(new Ge(null, new He(new Fl(e.f), 1)), new hpe()), new lpe()), new P8e(e)), fi(mt(du(cc(cc(new Ge(null, new He(e.d.b, 16)), new ape()), new dpe()), new bpe()), new wpe()), new L8e(e))), fi(mt(cc(new Ge(null, new He(new Fl(e.f), 1)), new gpe()), new ppe()), new D8e(e)), r = new ue(ii, ii), n = new ue(Ri, Ri), i = new x(e.a.b); i.a < i.c.c.length; ) + for (fi(mt(new Ge(null, new He(e.a.b, 16)), new spe()), new ope()), v7n(e), fi(mt(new Ge(null, new He(e.a.b, 16)), new fpe()), new hpe()), e.c == (na(), ym) && (fi(mt(cc(new Ge(null, new He(new Fl(e.f), 1)), new lpe()), new ape()), new O8e(e)), fi(mt(du(cc(cc(new Ge(null, new He(e.d.b, 16)), new dpe()), new bpe()), new wpe()), new gpe()), new D8e(e))), fi(mt(cc(new Ge(null, new He(new Fl(e.f), 1)), new ppe()), new mpe()), new N8e(e)), r = new ue(ii, ii), n = new ue(Ri, Ri), i = new x(e.a.b); i.a < i.c.c.length; ) t = u(A(i), 60), r.a = m.Math.min(r.a, t.d.c), r.b = m.Math.min(r.b, t.d.d), n.a = m.Math.max(n.a, t.d.c + t.d.b), n.b = m.Math.max(n.b, t.d.d + t.d.a); At(Rf(e.d.c), Cx(new ue(r.a, r.b))), At(Rf(e.d.f), Fi(new ue(n.a, n.b), r)), A$n(e, r, n), Fc(e.f), Fc(e.b), Fc(e.g), Fc(e.e), e.a.a.c.length = 0, e.a.b.c.length = 0, e.a = null, e.d = null; } function hie(e, n) { - KTe(); + VTe(); var t, i, r, c, s, f, h; if (this.a = new OX(this), this.b = e, this.c = n, this.f = cD(Wr((ts(), sr), n)), this.f.dc()) if ((f = Nee(sr, e)) == n) - for (this.e = !0, this.d = new le(), this.f = new D5e(), this.f.Ec(u0), u(DT(t7(sr, Vs(e)), ""), 29) == e && this.f.Ec(k6(sr, Vs(e))), r = ER(sr, e).Jc(); r.Ob(); ) + for (this.e = !0, this.d = new le(), this.f = new N5e(), this.f.Ec(u0), u(DT(t7(sr, Vs(e)), ""), 29) == e && this.f.Ec(k6(sr, Vs(e))), r = ER(sr, e).Jc(); r.Ob(); ) switch (i = u(r.Pb(), 179), q0(Wr(sr, i))) { case 4: { this.d.Ec(i); @@ -29632,15 +29722,15 @@ function WDn() { for (this.e = !0, this.f = null, this.d = new le(), s = 0, h = (e.i == null && zh(e), e.i).length; s < h; ++s) for (i = (t = (e.i == null && zh(e), e.i), s >= 0 && s < t.length ? t[s] : null), c = f3(Wr(sr, i)); c; c = f3(Wr(sr, c))) c == n && this.d.Ec(i); - else q0(Wr(sr, n)) == 1 && f ? (this.f = null, this.d = (C3(), Qon)) : (this.f = null, this.e = !0, this.d = (ze(), new WP(n))); + else q0(Wr(sr, n)) == 1 && f ? (this.f = null, this.d = (C3(), Yon)) : (this.f = null, this.e = !0, this.d = (ze(), new WP(n))); else this.e = q0(Wr(sr, n)) == 5, this.f.Fb(TU) && (this.f = TU); } - function vze(e, n) { + function kze(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v; for (t = 0, i = W8n(e, n), g = e.s, p = e.t, l = u(u(Mt(e.r, n), 22), 83).Jc(); l.Ob(); ) if (h = u(l.Pb(), 115), !(!h.c || h.c.d.c.length <= 0)) { - switch (v = h.b.Kf(), f = h.b.nf((tt(), Ss)) ? _(H(h.b.mf(Ss))) : 0, a = h.c, d = a.i, d.b = (s = a.n, a.e.a + s.b + s.c), d.a = (c = a.n, a.e.b + c.d + c.a), n.g) { + switch (v = h.b.Kf(), f = h.b.nf((tt(), Ss)) ? B(H(h.b.mf(Ss))) : 0, a = h.c, d = a.i, d.b = (s = a.n, a.e.a + s.b + s.c), d.a = (c = a.n, a.e.b + c.d + c.a), n.g) { case 1: d.c = h.a ? (v.a - d.b) / 2 : v.a + g, d.d = v.b + f + i, Hf(a, (hs(), Z1)), Fh(a, (Nu(), Vf)); break; @@ -29655,23 +29745,23 @@ function WDn() { } (n == (be(), ln) || n == Mn) && (t = m.Math.max(t, d.a)); } - t > 0 && (u(_r(e.b, n), 127).a.b = t); + t > 0 && (u(Br(e.b, n), 127).a.b = t); } function VPn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; for (p = 0, i = new vi(), c = new kn((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); c.e != c.i.gc(); ) - r = u(En(c), 26), ve(me(re(r, (ae(), b0)))) || (d = Qt(r), PT(d) && !ve(me(re(r, VI))) && (Pt(r, (te(), _t), ie(p)), ++p, Gf(r, lg) && ki(i, u(re(r, lg), 15))), mze(e, r, t)); + r = u(En(c), 26), ve(me(re(r, (ae(), b0)))) || (d = Qt(r), PT(d) && !ve(me(re(r, VI))) && (Pt(r, (te(), Bt), ie(p)), ++p, Gf(r, lg) && ki(i, u(re(r, lg), 15))), vze(e, r, t)); for (K(t, (te(), id), ie(p)), K(t, eE, ie(i.a.gc())), p = 0, a = new kn((!n.b && (n.b = new ne(xi, n, 12, 3)), n.b)); a.e != a.i.gc(); ) - h = u(En(a), 85), PT(n) && (Pt(h, _t, ie(p)), ++p), E = QF(h), M = wJe(h), g = ve(me(re(E, (ae(), dg)))), j = !ve(me(re(h, b0))), v = g && ob(h) && ve(me(re(h, a0))), s = Qt(E) == n && Qt(E) == Qt(M), f = (Qt(E) == n && M == n) ^ (Qt(M) == n && E == n), j && !v && (f || s) && gie(e, h, n, t); + h = u(En(a), 85), PT(n) && (Pt(h, Bt, ie(p)), ++p), E = QF(h), T = gJe(h), g = ve(me(re(E, (ae(), dg)))), j = !ve(me(re(h, b0))), v = g && ob(h) && ve(me(re(h, a0))), s = Qt(E) == n && Qt(E) == Qt(T), f = (Qt(E) == n && T == n) ^ (Qt(T) == n && E == n), j && !v && (f || s) && gie(e, h, n, t); if (Qt(n)) for (l = new kn(BIe(Qt(n))); l.e != l.i.gc(); ) h = u(En(l), 85), E = QF(h), E == n && ob(h) && (v = ve(me(re(E, (ae(), dg)))) && ve(me(re(h, a0))), v && gie(e, h, n, t)); } function QPn(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye; + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye; for (X = new le(), v = new x(e.b); v.a < v.c.c.length; ) - for (p = u(A(v), 25), M = new x(p.a); M.a < M.c.c.length; ) - if (j = u(A(M), 9), j.k == (cn(), Ai) && Et(j, (te(), qI))) { + for (p = u(A(v), 25), T = new x(p.a); T.a < T.c.c.length; ) + if (j = u(A(T), 9), j.k == (cn(), Ai) && Et(j, (te(), qI))) { for (D = null, J = null, R = null, Le = new x(j.j); Le.a < Le.c.c.length; ) switch (De = u(A(Le), 12), De.j.g) { case 4: @@ -29685,7 +29775,7 @@ function WDn() { } for (V = u(pe(R.g, 0), 17), a = new PA(V.a), l = new vr(R.n), At(l, j.n), d = Nn(a, 0), s$(d, l), we = cZ(V.a), g = new vr(R.n), At(g, j.n), ti(we, g, we.c.b, we.c), Ke = u(y(j, qI), 9), Ye = u(pe(Ke.j, 0), 12), h = u(ah(D.e, W(H5, E5, 17, 0, 0, 1)), 323), i = h, c = 0, f = i.length; c < f; ++c) n = i[c], Ki(n, Ye), WN(n.a, n.a.b, a); - for (h = _h(J.g), t = h, r = 0, s = t.length; r < s; ++r) + for (h = Bh(J.g), t = h, r = 0, s = t.length; r < s; ++r) n = t[r], br(n, Ye), WN(n.a, 0, we); br(V, null), Ki(V, null), sn(X.c, j); } @@ -29694,7 +29784,7 @@ function WDn() { } function YPn(e, n, t, i) { var r, c, s, f, h, l, a, d, g, p, v, j; - if (g = _(H(y(e, (ae(), c4)))), p = _(H(y(e, u4))), d = _(H(y(e, vg))), f = e.o, c = u(pe(e.j, 0), 12), s = c.n, j = xEn(c, d), !!j) { + if (g = B(H(y(e, (ae(), c4)))), p = B(H(y(e, u4))), d = B(H(y(e, vg))), f = e.o, c = u(pe(e.j, 0), 12), s = c.n, j = xEn(c, d), !!j) { if (n.Gc((ls(), ba))) switch (u(y(e, (te(), Sc)), 64).g) { case 1: @@ -29725,34 +29815,34 @@ function WDn() { } function lie(e) { var n; - if (this.r = k2n(new Ube(), new zbe()), this.b = new i9(u(Jn(Mr), 298)), this.p = new i9(u(Jn(Mr), 298)), this.i = new i9(u(Jn(KYe), 298)), this.e = e, this.o = new vr(e.Kf()), this.D = ve(me(e.mf((tt(), w4)))), this.F = e.Wf() || ve(me(e.mf(TE))), this.A = u(e.mf(v0), 22), this.B = u(e.mf(fd), 22), this.q = u(e.mf(l8), 102), this.u = u(e.mf(Mg), 22), !Ijn(this.u)) + if (this.r = k2n(new zbe(), new Wbe()), this.b = new i9(u(Jn(Mr), 298)), this.p = new i9(u(Jn(Mr), 298)), this.i = new i9(u(Jn(VYe), 298)), this.e = e, this.o = new vr(e.Kf()), this.D = ve(me(e.mf((tt(), w4)))), this.F = e.Wf() || ve(me(e.mf(TE))), this.A = u(e.mf(v0), 22), this.B = u(e.mf(fd), 22), this.q = u(e.mf(l8), 102), this.u = u(e.mf(Mg), 22), !Ijn(this.u)) throw $(new Aa("Invalid port label placement: " + this.u)); if (this.v = ve(me(e.mf(Mde))), this.j = u(e.mf(pp), 22), !Uxn(this.j)) throw $(new Aa("Invalid node label placement: " + this.j)); - this.n = u(o9(e, bde), 104), this.k = _(H(o9(e, qC))), this.d = _(H(o9(e, Cde))), this.w = _(H(o9(e, Nde))), this.s = _(H(o9(e, Pde))), this.t = _(H(o9(e, Ode))), this.C = u(o9(e, Lde), 140), this.c = 2 * this.d, n = !this.B.Gc((Ms(), JE)), this.f = new c9(0, n, 0), this.g = new c9(1, n, 0), hO(this.f, (qf(), ku), this.g); + this.n = u(o9(e, bde), 104), this.k = B(H(o9(e, qC))), this.d = B(H(o9(e, Cde))), this.w = B(H(o9(e, Nde))), this.s = B(H(o9(e, Pde))), this.t = B(H(o9(e, Ode))), this.C = u(o9(e, Lde), 140), this.c = 2 * this.d, n = !this.B.Gc((Ms(), JE)), this.f = new c9(0, n, 0), this.g = new c9(1, n, 0), hO(this.f, (qf(), ku), this.g); } function ZPn() { - at(QE, new c6e()), at(bP, new g6e()), at(YE, new M6e()), at(V0e, new R6e()), at(ke, new G6e()), at(T(us, 1), new H6e()), at(ui, new q6e()), at(X3, new U6e()), at(ke, new X4e()), at(ke, new K4e()), at(ke, new V4e()), at(Ei, new Q4e()), at(ke, new Y4e()), at(ro, new Z4e()), at(ro, new e6e()), at(ke, new n6e()), at(J5, new i6e()), at(ke, new r6e()), at(ke, new u6e()), at(ke, new s6e()), at(ke, new o6e()), at(ke, new f6e()), at(T(us, 1), new h6e()), at(ke, new l6e()), at(ke, new a6e()), at(ro, new d6e()), at(ro, new b6e()), at(ke, new w6e()), at(Ii, new p6e()), at(ke, new m6e()), at(Ab, new v6e()), at(ke, new k6e()), at(ke, new y6e()), at(ke, new j6e()), at(ke, new E6e()), at(ro, new A6e()), at(ro, new x6e()), at(ke, new $6e()), at(ke, new T6e()), at(ke, new S6e()), at(ke, new I6e()), at(ke, new C6e()), at(ke, new P6e()), at(xb, new O6e()), at(ke, new L6e()), at(ke, new D6e()), at(ke, new N6e()), at(xb, new F6e()), at(Ab, new B6e()), at(ke, new _6e()), at(Ii, new J6e()); + at(QE, new u6e()), at(bP, new p6e()), at(YE, new T6e()), at(V0e, new _6e()), at(ye, new H6e()), at(S(us, 1), new q6e()), at(ui, new U6e()), at(X3, new z6e()), at(ye, new K4e()), at(ye, new V4e()), at(ye, new Q4e()), at(Ei, new Y4e()), at(ye, new Z4e()), at(ro, new e6e()), at(ro, new n6e()), at(ye, new t6e()), at(J5, new r6e()), at(ye, new c6e()), at(ye, new s6e()), at(ye, new o6e()), at(ye, new f6e()), at(ye, new h6e()), at(S(us, 1), new l6e()), at(ye, new a6e()), at(ye, new d6e()), at(ro, new b6e()), at(ro, new w6e()), at(ye, new g6e()), at(Ii, new m6e()), at(ye, new v6e()), at(Ab, new k6e()), at(ye, new y6e()), at(ye, new j6e()), at(ye, new E6e()), at(ye, new A6e()), at(ro, new x6e()), at(ro, new $6e()), at(ye, new M6e()), at(ye, new S6e()), at(ye, new I6e()), at(ye, new C6e()), at(ye, new P6e()), at(ye, new O6e()), at(xb, new L6e()), at(ye, new D6e()), at(ye, new N6e()), at(ye, new F6e()), at(xb, new R6e()), at(Ab, new B6e()), at(ye, new J6e()), at(Ii, new G6e()); } - function kze(e, n) { + function yze(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v; switch (a = new ms(), e.a.g) { case 3: - g = u(y(n.e, (te(), h0)), 16), p = u(y(n.j, h0), 16), v = u(y(n.f, h0), 16), t = u(y(n.e, rp), 16), i = u(y(n.j, rp), 16), r = u(y(n.f, rp), 16), s = new le(), Ci(s, g), p.Ic(new i3e()), Ci(s, _s(p)), Ci(s, v), c = new le(), Ci(c, t), Ci(c, _s(i)), Ci(c, r), K(n.f, h0, s), K(n.f, rp, c), K(n.f, Ffe, n.f), K(n.e, h0, null), K(n.e, rp, null), K(n.j, h0, null), K(n.j, rp, null); + g = u(y(n.e, (te(), h0)), 16), p = u(y(n.j, h0), 16), v = u(y(n.f, h0), 16), t = u(y(n.e, rp), 16), i = u(y(n.j, rp), 16), r = u(y(n.f, rp), 16), s = new le(), Ci(s, g), p.Ic(new r3e()), Ci(s, Bs(p)), Ci(s, v), c = new le(), Ci(c, t), Ci(c, Bs(i)), Ci(c, r), K(n.f, h0, s), K(n.f, rp, c), K(n.f, Ffe, n.f), K(n.e, h0, null), K(n.e, rp, null), K(n.j, h0, null), K(n.j, rp, null); break; case 1: - wr(a, n.e.a), rt(a, n.i.n), wr(a, _s(n.j.a)), rt(a, n.a.n), wr(a, n.f.a); + wr(a, n.e.a), rt(a, n.i.n), wr(a, Bs(n.j.a)), rt(a, n.a.n), wr(a, n.f.a); break; default: - wr(a, n.e.a), wr(a, _s(n.j.a)), wr(a, n.f.a); + wr(a, n.e.a), wr(a, Bs(n.j.a)), wr(a, n.f.a); } - Fs(n.f.a), wr(n.f.a, a), br(n.f, n.e.c), f = u(y(n.e, (ae(), Vr)), 78), l = u(y(n.j, Vr), 78), h = u(y(n.f, Vr), 78), (f || l || h) && (d = new ms(), kV(d, h), kV(d, l), kV(d, f), K(n.f, Vr, d)), br(n.j, null), Ki(n.j, null), br(n.e, null), Ki(n.e, null), Ni(n.a, null), Ni(n.i, null), n.g && kze(e, n.g); + Fs(n.f.a), wr(n.f.a, a), br(n.f, n.e.c), f = u(y(n.e, (ae(), Vr)), 78), l = u(y(n.j, Vr), 78), h = u(y(n.f, Vr), 78), (f || l || h) && (d = new ms(), kV(d, h), kV(d, l), kV(d, f), K(n.f, Vr, d)), br(n.j, null), Ki(n.j, null), br(n.e, null), Ki(n.e, null), Ni(n.a, null), Ni(n.i, null), n.g && yze(e, n.g); } - function yze() { - yze = G; + function jze() { + jze = G; var e, n, t; - for (new j7(1, 0), new j7(10, 0), new j7(0, 0), QQe = W(qJ, oe, 247, 11, 0, 1), o0 = W(Oo, Xh, 30, 100, 15, 1), vse = I(T(Xi, 1), Gr, 30, 15, [1, 5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, 48828125, 244140625, 1220703125, 6103515625, 30517578125, 152587890625, 762939453125, 3814697265625, 19073486328125, 95367431640625, 476837158203125, 2384185791015625]), kse = W(Wn, lt, 30, vse.length, 15, 1), yse = I(T(Xi, 1), Gr, 30, 15, [1, 10, 100, za, 1e4, jB, 1e6, 1e7, 1e8, HT, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16]), jse = W(Wn, lt, 30, yse.length, 15, 1), Ese = W(qJ, oe, 247, 11, 0, 1), e = 0; e < Ese.length; e++) - QQe[e] = new j7(e, 0), Ese[e] = new j7(0, e), o0[e] = 48; + for (new j7(1, 0), new j7(10, 0), new j7(0, 0), YQe = W(qJ, fe, 247, 11, 0, 1), o0 = W(Oo, Xh, 30, 100, 15, 1), vse = I(S(Xi, 1), Gr, 30, 15, [1, 5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, 48828125, 244140625, 1220703125, 6103515625, 30517578125, 152587890625, 762939453125, 3814697265625, 19073486328125, 95367431640625, 476837158203125, 2384185791015625]), kse = W(Wn, lt, 30, vse.length, 15, 1), yse = I(S(Xi, 1), Gr, 30, 15, [1, 10, 100, za, 1e4, j_, 1e6, 1e7, 1e8, HT, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16]), jse = W(Wn, lt, 30, yse.length, 15, 1), Ese = W(qJ, fe, 247, 11, 0, 1), e = 0; e < Ese.length; e++) + YQe[e] = new j7(e, 0), Ese[e] = new j7(0, e), o0[e] = 48; for (; e < o0.length; e++) o0[e] = 48; for (t = 0; t < kse.length; t++) @@ -29771,7 +29861,7 @@ function WDn() { return this.obj[n]; }, e.prototype.set = function(n, t) { this.obj[n] = t; - }, e.prototype[xB] = function(n) { + }, e.prototype[x_] = function(n) { delete this.obj[n]; }, e.prototype.keys = function() { return Object.getOwnPropertyNames(this.obj); @@ -29788,7 +29878,7 @@ function WDn() { return this.obj[":" + n]; }, e.prototype.set = function(n, t) { this.obj[":" + n] = t; - }, e.prototype[xB] = function(n) { + }, e.prototype[x_] = function(n) { delete this.obj[":" + n]; }, e.prototype.keys = function() { var n = []; @@ -29797,8 +29887,8 @@ function WDn() { return n; }), e; } - function Bt() { - Bt = G, Qk = new It(Uie), new zt("DEPTH", ie(0)), eq = new zt("FAN", ie(0)), nae = new zt(GXe, ie(0)), od = new zt("ROOT", (en(), !1)), iq = new zt("LEFTNEIGHBOR", null), Yrn = new zt("RIGHTNEIGHBOR", null), jC = new zt("LEFTSIBLING", null), rq = new zt("RIGHTSIBLING", null), ZH = new zt("DUMMY", !1), new zt("LEVEL", ie(0)), rae = new zt("REMOVABLE_EDGES", new Dt()), pE = new zt("XCOOR", ie(0)), mE = new zt("YCOOR", ie(0)), EC = new zt("LEVELHEIGHT", 0), Yf = new zt("LEVELMIN", 0), Tf = new zt("LEVELMAX", 0), nq = new zt("GRAPH_XMIN", 0), tq = new zt("GRAPH_YMIN", 0), tae = new zt("GRAPH_XMAX", 0), iae = new zt("GRAPH_YMAX", 0), eae = new zt("COMPACT_LEVEL_ASCENSION", !1), YH = new zt("COMPACT_CONSTRAINTS", new le()), Vk = new zt("ID", ""), Yk = new zt("POSITION", ie(0)), n1 = new zt("PRELIM", 0), h4 = new zt("MODIFIER", 0), f4 = new It(QWe), gE = new It(YWe); + function _t() { + _t = G, Qk = new It(Uie), new zt("DEPTH", ie(0)), eq = new zt("FAN", ie(0)), nae = new zt(HXe, ie(0)), od = new zt("ROOT", (en(), !1)), iq = new zt("LEFTNEIGHBOR", null), Zrn = new zt("RIGHTNEIGHBOR", null), jC = new zt("LEFTSIBLING", null), rq = new zt("RIGHTSIBLING", null), ZH = new zt("DUMMY", !1), new zt("LEVEL", ie(0)), rae = new zt("REMOVABLE_EDGES", new Dt()), pE = new zt("XCOOR", ie(0)), mE = new zt("YCOOR", ie(0)), EC = new zt("LEVELHEIGHT", 0), Yf = new zt("LEVELMIN", 0), Tf = new zt("LEVELMAX", 0), nq = new zt("GRAPH_XMIN", 0), tq = new zt("GRAPH_YMIN", 0), tae = new zt("GRAPH_XMAX", 0), iae = new zt("GRAPH_YMAX", 0), eae = new zt("COMPACT_LEVEL_ASCENSION", !1), YH = new zt("COMPACT_CONSTRAINTS", new le()), Vk = new zt("ID", ""), Yk = new zt("POSITION", ie(0)), n1 = new zt("PRELIM", 0), h4 = new zt("MODIFIER", 0), f4 = new It(YWe), gE = new It(ZWe); } function nOn(e) { Hte(); @@ -29812,33 +29902,33 @@ function WDn() { } function tOn(e, n) { var t, i, r, c, s, f, h; - if (e.e == 0 && e.p > 0 && (e.p = -(e.p - 1)), e.p > Yi && xQ(n, e.p - z1), s = n.q.getDate(), By(n, 1), e.k >= 0 && Ppn(n, e.k), e.c >= 0 ? By(n, e.c) : e.k >= 0 ? (h = new nZ(n.q.getFullYear() - z1, n.q.getMonth(), 35), i = 35 - h.q.getDate(), By(n, m.Math.min(i, s))) : By(n, s), e.f < 0 && (e.f = n.q.getHours()), e.b > 0 && e.f < 12 && (e.f += 12), G1n(n, e.f == 24 && e.g ? 0 : e.f), e.j >= 0 && hvn(n, e.j), e.n >= 0 && Evn(n, e.n), e.i >= 0 && Qxe(n, yr(gr(L7(Cc(n.q.getTime()), za), za), e.i)), e.a && (r = new HA(), xQ(r, r.q.getFullYear() - z1 - 80), MO(Cc(n.q.getTime()), Cc(r.q.getTime())) && xQ(n, r.q.getFullYear() - z1 + 100)), e.d >= 0) { + if (e.e == 0 && e.p > 0 && (e.p = -(e.p - 1)), e.p > Yi && xQ(n, e.p - z1), s = n.q.getDate(), _y(n, 1), e.k >= 0 && Ppn(n, e.k), e.c >= 0 ? _y(n, e.c) : e.k >= 0 ? (h = new nZ(n.q.getFullYear() - z1, n.q.getMonth(), 35), i = 35 - h.q.getDate(), _y(n, m.Math.min(i, s))) : _y(n, s), e.f < 0 && (e.f = n.q.getHours()), e.b > 0 && e.f < 12 && (e.f += 12), G1n(n, e.f == 24 && e.g ? 0 : e.f), e.j >= 0 && hvn(n, e.j), e.n >= 0 && Evn(n, e.n), e.i >= 0 && Yxe(n, yr(gr(L7(Cc(n.q.getTime()), za), za), e.i)), e.a && (r = new HA(), xQ(r, r.q.getFullYear() - z1 - 80), MO(Cc(n.q.getTime()), Cc(r.q.getTime())) && xQ(n, r.q.getFullYear() - z1 + 100)), e.d >= 0) { if (e.c == -1) - t = (7 + e.d - n.q.getDay()) % 7, t > 3 && (t -= 7), f = n.q.getMonth(), By(n, n.q.getDate() + t), n.q.getMonth() != f && By(n, n.q.getDate() + (t > 0 ? -7 : 7)); + t = (7 + e.d - n.q.getDay()) % 7, t > 3 && (t -= 7), f = n.q.getMonth(), _y(n, n.q.getDate() + t), n.q.getMonth() != f && _y(n, n.q.getDate() + (t > 0 ? -7 : 7)); else if (n.q.getDay() != e.d) return !1; } - return e.o > Yi && (c = n.q.getTimezoneOffset(), Qxe(n, yr(Cc(n.q.getTime()), (e.o - c) * 60 * za))), !0; + return e.o > Yi && (c = n.q.getTimezoneOffset(), Yxe(n, yr(Cc(n.q.getTime()), (e.o - c) * 60 * za))), !0; } - function jze(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; + function Eze(e, n) { + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; if (r = y(n, (te(), $t)), !!N(r, 206)) { for (v = u(r, 26), j = n.e, g = new vr(n.c), c = n.d, g.a += c.b, g.b += c.d, J = u(re(v, (ae(), uC)), 182), Yu(J, (Ms(), VC)) && (p = u(re(v, Whe), 104), yhn(p, c.a), $hn(p, c.d), jhn(p, c.b), Ehn(p, c.c)), t = new le(), a = new x(n.a); a.a < a.c.c.length; ) - for (h = u(A(a), 9), N(y(h, $t), 206) ? uOn(h, g) : N(y(h, $t), 193) && !j && (i = u(y(h, $t), 125), D = lUe(n, h, i.g, i.f), ao(i, D.a, D.b)), M = new x(h.j); M.a < M.c.c.length; ) - E = u(A(M), 12), fi(mt(new Ge(null, new He(E.g, 16)), new t8e(h)), new i8e(t)); + for (h = u(A(a), 9), N(y(h, $t), 206) ? uOn(h, g) : N(y(h, $t), 193) && !j && (i = u(y(h, $t), 125), D = aUe(n, h, i.g, i.f), ao(i, D.a, D.b)), T = new x(h.j); T.a < T.c.c.length; ) + E = u(A(T), 12), fi(mt(new Ge(null, new He(E.g, 16)), new i8e(h)), new r8e(t)); if (j) - for (M = new x(j.j); M.a < M.c.c.length; ) - E = u(A(M), 12), fi(mt(new Ge(null, new He(E.g, 16)), new r8e(j)), new c8e(t)); + for (T = new x(j.j); T.a < T.c.c.length; ) + E = u(A(T), 12), fi(mt(new Ge(null, new He(E.g, 16)), new c8e(j)), new u8e(t)); for (R = u(re(v, la), 222), f = new x(t); f.a < f.c.c.length; ) s = u(A(f), 17), jPn(s, R, g); for (hSn(n), l = new x(n.a); l.a < l.c.c.length; ) - h = u(A(l), 9), d = h.e, d && jze(e, d); + h = u(A(l), 9), d = h.e, d && Eze(e, d); } } - function Eze(e, n) { + function Aze(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p; if (!u(u(Mt(e.r, n), 22), 83).dc()) { - if (s = u(_r(e.b, n), 127), h = s.i, f = s.n, a = wR(e, n), i = h.b - f.b - f.c, r = s.a.a, c = h.c + f.b, p = e.w, (a == (E2(), ld) || a == NE) && u(u(Mt(e.r, n), 22), 83).gc() == 1 && (r = a == ld ? r - 2 * e.w : r, a = w8), i < r && !e.B.Gc((Ms(), QC))) + if (s = u(Br(e.b, n), 127), h = s.i, f = s.n, a = wR(e, n), i = h.b - f.b - f.c, r = s.a.a, c = h.c + f.b, p = e.w, (a == (E2(), ld) || a == NE) && u(u(Mt(e.r, n), 22), 83).gc() == 1 && (r = a == ld ? r - 2 * e.w : r, a = w8), i < r && !e.B.Gc((Ms(), QC))) a == ld ? (p += (i - r) / (u(u(Mt(e.r, n), 22), 83).gc() + 1), c += p) : p += (i - r) / (u(u(Mt(e.r, n), 22), 83).gc() - 1); else switch (i < r && (r = a == ld ? r - 2 * e.w : r, a = w8), a.g) { @@ -29855,13 +29945,13 @@ function WDn() { t = (i - r) / (u(u(Mt(e.r, n), 22), 83).gc() - 1), p += m.Math.max(0, t); } for (g = u(u(Mt(e.r, n), 22), 83).Jc(); g.Ob(); ) - d = u(g.Pb(), 115), d.e.a = c + d.d.b, d.e.b = (l = d.b, l.nf((tt(), Ss)) ? l.$f() == (be(), ln) ? -l.Kf().b - _(H(l.mf(Ss))) : _(H(l.mf(Ss))) : l.$f() == (be(), ln) ? -l.Kf().b : 0), c += d.d.b + d.b.Kf().a + d.d.c + p; + d = u(g.Pb(), 115), d.e.a = c + d.d.b, d.e.b = (l = d.b, l.nf((tt(), Ss)) ? l.$f() == (be(), ln) ? -l.Kf().b - B(H(l.mf(Ss))) : B(H(l.mf(Ss))) : l.$f() == (be(), ln) ? -l.Kf().b : 0), c += d.d.b + d.b.Kf().a + d.d.c + p; } } - function Aze(e, n) { + function xze(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v; if (!u(u(Mt(e.r, n), 22), 83).dc()) { - if (s = u(_r(e.b, n), 127), h = s.i, f = s.n, d = wR(e, n), i = h.a - f.d - f.a, r = s.a.b, c = h.d + f.d, v = e.w, l = e.o.a, (d == (E2(), ld) || d == NE) && u(u(Mt(e.r, n), 22), 83).gc() == 1 && (r = d == ld ? r - 2 * e.w : r, d = w8), i < r && !e.B.Gc((Ms(), QC))) + if (s = u(Br(e.b, n), 127), h = s.i, f = s.n, d = wR(e, n), i = h.a - f.d - f.a, r = s.a.b, c = h.d + f.d, v = e.w, l = e.o.a, (d == (E2(), ld) || d == NE) && u(u(Mt(e.r, n), 22), 83).gc() == 1 && (r = d == ld ? r - 2 * e.w : r, d = w8), i < r && !e.B.Gc((Ms(), QC))) d == ld ? (v += (i - r) / (u(u(Mt(e.r, n), 22), 83).gc() + 1), c += v) : v += (i - r) / (u(u(Mt(e.r, n), 22), 83).gc() - 1); else switch (i < r && (r = d == ld ? r - 2 * e.w : r, d = w8), d.g) { @@ -29878,75 +29968,75 @@ function WDn() { t = (i - r) / (u(u(Mt(e.r, n), 22), 83).gc() - 1), v += m.Math.max(0, t); } for (p = u(u(Mt(e.r, n), 22), 83).Jc(); p.Ob(); ) - g = u(p.Pb(), 115), g.e.a = (a = g.b, a.nf((tt(), Ss)) ? a.$f() == (be(), an) ? -a.Kf().a - _(H(a.mf(Ss))) : l + _(H(a.mf(Ss))) : a.$f() == (be(), an) ? -a.Kf().a : l), g.e.b = c + g.d.d, c += g.d.d + g.b.Kf().b + g.d.a + v; + g = u(p.Pb(), 115), g.e.a = (a = g.b, a.nf((tt(), Ss)) ? a.$f() == (be(), an) ? -a.Kf().a - B(H(a.mf(Ss))) : l + B(H(a.mf(Ss))) : a.$f() == (be(), an) ? -a.Kf().a : l), g.e.b = c + g.d.d, c += g.d.d + g.b.Kf().b + g.d.a + v; } } function iOn(e, n) { var t, i, r, c, s; for (n.Tg("Processor determine the coords for each level", 1), i = new le(), s = Nn(e.b, 0); s.b != s.d.c; ) { for (r = u(Ln(s), 40); u(y(r, (Ac(), rl)), 15).a > i.c.length - 1; ) - he(i, new Ar(_2, xce)); - t = u(y(r, rl), 15).a, _l(u(y(e, Fb), 86)) ? (r.e.a < _(H((qe(t, i.c.length), u(i.c[t], 49)).a)) && UP((qe(t, i.c.length), u(i.c[t], 49)), r.e.a), r.e.a + r.f.a > _(H((qe(t, i.c.length), u(i.c[t], 49)).b)) && zP((qe(t, i.c.length), u(i.c[t], 49)), r.e.a + r.f.a)) : (r.e.b < _(H((qe(t, i.c.length), u(i.c[t], 49)).a)) && UP((qe(t, i.c.length), u(i.c[t], 49)), r.e.b), r.e.b + r.f.b > _(H((qe(t, i.c.length), u(i.c[t], 49)).b)) && zP((qe(t, i.c.length), u(i.c[t], 49)), r.e.b + r.f.b)); + he(i, new Ar(B2, xce)); + t = u(y(r, rl), 15).a, Bl(u(y(e, Fb), 86)) ? (r.e.a < B(H((qe(t, i.c.length), u(i.c[t], 49)).a)) && UP((qe(t, i.c.length), u(i.c[t], 49)), r.e.a), r.e.a + r.f.a > B(H((qe(t, i.c.length), u(i.c[t], 49)).b)) && zP((qe(t, i.c.length), u(i.c[t], 49)), r.e.a + r.f.a)) : (r.e.b < B(H((qe(t, i.c.length), u(i.c[t], 49)).a)) && UP((qe(t, i.c.length), u(i.c[t], 49)), r.e.b), r.e.b + r.f.b > B(H((qe(t, i.c.length), u(i.c[t], 49)).b)) && zP((qe(t, i.c.length), u(i.c[t], 49)), r.e.b + r.f.b)); } for (c = Nn(e.b, 0); c.b != c.d.c; ) - r = u(Ln(c), 40), t = u(y(r, (Ac(), rl)), 15).a, K(r, (Bt(), Yf), H((qe(t, i.c.length), u(i.c[t], 49)).a)), K(r, Tf, H((qe(t, i.c.length), u(i.c[t], 49)).b)); + r = u(Ln(c), 40), t = u(y(r, (Ac(), rl)), 15).a, K(r, (_t(), Yf), H((qe(t, i.c.length), u(i.c[t], 49)).a)), K(r, Tf, H((qe(t, i.c.length), u(i.c[t], 49)).b)); n.Ug(); } function rOn(e) { var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j; - for (e.o = _(H(y(e.i, (ae(), g0)))), e.f = _(H(y(e.i, rd))), e.j = e.i.b.c.length, f = e.j - 1, g = 0, e.k = 0, e.n = 0, e.b = wf(W(Ii, oe, 15, e.j, 0, 1)), e.c = wf(W(Ei, oe, 346, e.j, 7, 1)), s = new x(e.i.b); s.a < s.c.c.length; ) { + for (e.o = B(H(y(e.i, (ae(), g0)))), e.f = B(H(y(e.i, rd))), e.j = e.i.b.c.length, f = e.j - 1, g = 0, e.k = 0, e.n = 0, e.b = wf(W(Ii, fe, 15, e.j, 0, 1)), e.c = wf(W(Ei, fe, 346, e.j, 7, 1)), s = new x(e.i.b); s.a < s.c.c.length; ) { for (r = u(A(s), 25), r.p = f, d = new x(r.a); d.a < d.c.c.length; ) a = u(A(d), 9), a.p = g, ++g; --f; } - for (e.g = W(Wn, lt, 30, g, 15, 1), e.d = lw(Wn, [oe, lt], [54, 30], 15, [g, 3], 2), e.p = new le(), e.q = new le(), n = 0, e.e = 0, c = new x(e.i.b); c.a < c.c.c.length; ) { + for (e.g = W(Wn, lt, 30, g, 15, 1), e.d = lw(Wn, [fe, lt], [54, 30], 15, [g, 3], 2), e.p = new le(), e.q = new le(), n = 0, e.e = 0, c = new x(e.i.b); c.a < c.c.c.length; ) { for (r = u(A(c), 25), f = r.p, i = 0, j = 0, h = r.a.c.length, l = 0, d = new x(r.a); d.a < d.c.c.length; ) - a = u(A(d), 9), g = a.p, e.g[g] = a.c.p, l += a.o.b + e.o, t = _f(new fn(dn(bi(a).a.Jc(), new Q()))), v = _f(new fn(dn(Ht(a).a.Jc(), new Q()))), e.d[g][0] = v - t, e.d[g][1] = t, e.d[g][2] = v, i += t, j += v, t > 0 && he(e.q, a), he(e.p, a); + a = u(A(d), 9), g = a.p, e.g[g] = a.c.p, l += a.o.b + e.o, t = Bf(new fn(dn(bi(a).a.Jc(), new Y()))), v = Bf(new fn(dn(Ht(a).a.Jc(), new Y()))), e.d[g][0] = v - t, e.d[g][1] = t, e.d[g][2] = v, i += t, j += v, t > 0 && he(e.q, a), he(e.p, a); n -= i, p = h + n, l += n * e.f, Ks(e.b, f, ie(p)), Ks(e.c, f, l), e.k = m.Math.max(e.k, p), e.n = m.Math.max(e.n, l), e.e += n, n += j; } } - function xze(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; + function $ze(e, n) { + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; if (n.b != 0) { for (p = new Dt(), f = null, v = null, i = dr(m.Math.floor(m.Math.log(n.b) * m.Math.LOG10E) + 1), h = 0, R = Nn(n, 0); R.b != R.d.c; ) - for (M = u(Ln(R), 40), z(v) !== z(y(M, (Bt(), Vk))) && (v = zn(y(M, Vk)), h = 0), v != null ? f = v + sPe(h++, i) : f = sPe(h++, i), K(M, Vk, f), E = (r = Nn(new Bl(M).a.d, 0), new Ug(r)); U8(E.a); ) + for (T = u(Ln(R), 40), z(v) !== z(y(T, (_t(), Vk))) && (v = zn(y(T, Vk)), h = 0), v != null ? f = v + oPe(h++, i) : f = oPe(h++, i), K(T, Vk, f), E = (r = Nn(new _l(T).a.d, 0), new Ug(r)); U8(E.a); ) j = u(Ln(E.a), 65).c, ti(p, j, p.c.b, p.c), K(j, Vk, f); for (g = new Tn(), s = 0; s < f.length - i; s++) for (D = Nn(n, 0); D.b != D.d.c; ) - M = u(Ln(D), 40), l = Go(zn(y(M, (Bt(), Vk))), 0, s + 1), t = (l == null ? hc(Ur(g.f, null)) : K4(g.i, l)) != null ? u(l == null ? hc(Ur(g.f, null)) : K4(g.i, l), 15).a + 1 : 1, zr(g, l, ie(t)); + T = u(Ln(D), 40), l = Go(zn(y(T, (_t(), Vk))), 0, s + 1), t = (l == null ? hc(Ur(g.f, null)) : K4(g.i, l)) != null ? u(l == null ? hc(Ur(g.f, null)) : K4(g.i, l), 15).a + 1 : 1, zr(g, l, ie(t)); for (d = new Tw(new Ub(g).a); d.b; ) a = v2(d), c = ie(rn(e.a, a.jd()) != null ? u(rn(e.a, a.jd()), 15).a : 0), zr(e.a, zn(a.jd()), ie(u(a.kd(), 15).a + c.a)), c = u(rn(e.b, a.jd()), 15), (!c || c.a < u(a.kd(), 15).a) && zr(e.b, zn(a.jd()), u(a.kd(), 15)); - xze(e, p); + $ze(e, p); } } function cOn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; for (t.Tg("Breadth first model order layering", 1), e.a = n, E = new le(), j = new x(e.a.a); j.a < j.c.c.length; ) p = u(A(j), 9), p.k == (cn(), si) && sn(E.c, p); - for (ze(), Di(E, new o3e()), h = !0, r = new Jc(e.a), i = null, he(e.a.b, r), v = new x(E); v.a < v.c.c.length; ) + for (ze(), Di(E, new f3e()), h = !0, r = new Jc(e.a), i = null, he(e.a.b, r), v = new x(E); v.a < v.c.c.length; ) if (p = u(A(v), 9), h) Ni(p, r), h = !1; else { - for (f = new fn(dn(bi(p).a.Jc(), new Q())); xn(f); ) - c = u(pn(f), 17), (c.c.i.k == (cn(), si) && c.c.i.c == r || c.c.i.k == _c && u(pn(new fn(dn(bi(c.c.i).a.Jc(), new Q()))), 17).c.i.c == r) && (i = new Jc(e.a), he(e.a.b, i), r = new Jc(e.a), he(e.a.b, r)); - for (s = new fn(dn(bi(p).a.Jc(), new Q())); xn(s); ) - c = u(pn(s), 17), c.c.i.k == (cn(), _c) && !c.c.i.c && Ni(c.c.i, i); + for (f = new fn(dn(bi(p).a.Jc(), new Y())); xn(f); ) + c = u(pn(f), 17), (c.c.i.k == (cn(), si) && c.c.i.c == r || c.c.i.k == Bc && u(pn(new fn(dn(bi(c.c.i).a.Jc(), new Y()))), 17).c.i.c == r) && (i = new Jc(e.a), he(e.a.b, i), r = new Jc(e.a), he(e.a.b, r)); + for (s = new fn(dn(bi(p).a.Jc(), new Y())); xn(s); ) + c = u(pn(s), 17), c.c.i.k == (cn(), Bc) && !c.c.i.c && Ni(c.c.i, i); Ni(p, r); } - for (e.a.a.c.length = 0, M = new le(), d = new x(e.a.b); d.a < d.c.c.length; ) - l = u(A(d), 25), l.a.c.length == 0 && sn(M.c, l); - for (PZ(e.a.b, M), g = 0, a = new x(e.a.b); a.a < a.c.c.length; ) + for (e.a.a.c.length = 0, T = new le(), d = new x(e.a.b); d.a < d.c.c.length; ) + l = u(A(d), 25), l.a.c.length == 0 && sn(T.c, l); + for (PZ(e.a.b, T), g = 0, a = new x(e.a.b); a.a < a.c.c.length; ) l = u(A(a), 25), l.p = g, ++g; t.Ug(); } function be() { be = G; var e; - mc = new ly(N9, 0), ln = new ly("NORTH", 1), gn = new ly("EAST", 2), Mn = new ly("SOUTH", 3), an = new ly("WEST", 4), Ih = (ze(), new Bm((e = u(Ff(Mr), 10), new wo(e, u(af(e, e.length), 10), 0)))), Of = Ba(Rt(ln, I(T(Mr, 1), Bc, 64, 0, []))), Co = Ba(Rt(gn, I(T(Mr, 1), Bc, 64, 0, []))), so = Ba(Rt(Mn, I(T(Mr, 1), Bc, 64, 0, []))), Zo = Ba(Rt(an, I(T(Mr, 1), Bc, 64, 0, []))), Hu = Ba(Rt(ln, I(T(Mr, 1), Bc, 64, 0, [Mn]))), Su = Ba(Rt(gn, I(T(Mr, 1), Bc, 64, 0, [an]))), Lf = Ba(Rt(ln, I(T(Mr, 1), Bc, 64, 0, [an]))), ws = Ba(Rt(ln, I(T(Mr, 1), Bc, 64, 0, [gn]))), oo = Ba(Rt(Mn, I(T(Mr, 1), Bc, 64, 0, [an]))), Po = Ba(Rt(gn, I(T(Mr, 1), Bc, 64, 0, [Mn]))), gs = Ba(Rt(ln, I(T(Mr, 1), Bc, 64, 0, [gn, an]))), Gu = Ba(Rt(gn, I(T(Mr, 1), Bc, 64, 0, [Mn, an]))), qu = Ba(Rt(ln, I(T(Mr, 1), Bc, 64, 0, [Mn, an]))), cs = Ba(Rt(ln, I(T(Mr, 1), Bc, 64, 0, [gn, Mn]))), fu = Ba(Rt(ln, I(T(Mr, 1), Bc, 64, 0, [gn, Mn, an]))); + mc = new ly(N9, 0), ln = new ly("NORTH", 1), gn = new ly("EAST", 2), Mn = new ly("SOUTH", 3), an = new ly("WEST", 4), Ih = (ze(), new _m((e = u(Ff(Mr), 10), new wo(e, u(af(e, e.length), 10), 0)))), Of = _a(Rt(ln, I(S(Mr, 1), _c, 64, 0, []))), Co = _a(Rt(gn, I(S(Mr, 1), _c, 64, 0, []))), so = _a(Rt(Mn, I(S(Mr, 1), _c, 64, 0, []))), Zo = _a(Rt(an, I(S(Mr, 1), _c, 64, 0, []))), Hu = _a(Rt(ln, I(S(Mr, 1), _c, 64, 0, [Mn]))), Su = _a(Rt(gn, I(S(Mr, 1), _c, 64, 0, [an]))), Lf = _a(Rt(ln, I(S(Mr, 1), _c, 64, 0, [an]))), ws = _a(Rt(ln, I(S(Mr, 1), _c, 64, 0, [gn]))), oo = _a(Rt(Mn, I(S(Mr, 1), _c, 64, 0, [an]))), Po = _a(Rt(gn, I(S(Mr, 1), _c, 64, 0, [Mn]))), gs = _a(Rt(ln, I(S(Mr, 1), _c, 64, 0, [gn, an]))), Gu = _a(Rt(gn, I(S(Mr, 1), _c, 64, 0, [Mn, an]))), qu = _a(Rt(ln, I(S(Mr, 1), _c, 64, 0, [Mn, an]))), cs = _a(Rt(ln, I(S(Mr, 1), _c, 64, 0, [gn, Mn]))), fu = _a(Rt(ln, I(S(Mr, 1), _c, 64, 0, [gn, Mn, an]))); } function uOn(e, n) { var t, i, r, c, s, f, h, l, a, d, g, p, v, j; - for (i = u(y(e, (te(), $t)), 26), v = u(y(e, (ae(), QI)), 15).a, c = u(y(e, Lk), 15).a, Pt(i, QI, ie(v)), Pt(i, Lk, ie(c)), Es(i, e.n.a + n.a), As(i, e.n.b + n.b), (u(re(i, d0), 182).gc() != 0 || e.e || z(y(_i(e), cC)) === z((u9(), _k)) && p$e((Dw(), (e.q ? e.q : (ze(), ze(), El))._b(Lb) ? g = u(y(e, Lb), 203) : g = u(y(_i(e), Nk), 203), g))) && (Y0(i, e.o.a), Q0(i, e.o.b)), d = new x(e.j); d.a < d.c.c.length; ) + for (i = u(y(e, (te(), $t)), 26), v = u(y(e, (ae(), QI)), 15).a, c = u(y(e, Lk), 15).a, Pt(i, QI, ie(v)), Pt(i, Lk, ie(c)), Es(i, e.n.a + n.a), As(i, e.n.b + n.b), (u(re(i, d0), 182).gc() != 0 || e.e || z(y(Bi(e), cC)) === z((u9(), Bk)) && m$e((Dw(), (e.q ? e.q : (ze(), ze(), El))._b(Lb) ? g = u(y(e, Lb), 203) : g = u(y(Bi(e), Nk), 203), g))) && (Y0(i, e.o.a), Q0(i, e.o.b)), d = new x(e.j); d.a < d.c.c.length; ) l = u(A(d), 12), j = y(l, $t), N(j, 193) && (r = u(j, 125), ao(r, l.n.a, l.n.b), Pt(r, i4, l.j)); for (p = u(y(e, Ob), 182).gc() != 0, h = new x(e.b); h.a < h.c.c.length; ) s = u(A(h), 70), (p || u(y(s, Ob), 182).gc() != 0) && (t = u(y(s, $t), 157), D0(t, s.o.a, s.o.b), ao(t, s.n.a, s.n.b)); @@ -29956,12 +30046,12 @@ function WDn() { s = u(A(f), 70), t = u(y(s, $t), 157), Y0(t, s.o.a), Q0(t, s.o.b), ao(t, s.n.a, s.n.b); } function sOn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le; - for (n.Tg("Calculate Graph Size", 1), n.bh(e, Lce), d = _2, g = _2, l = S_, a = S_, j = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); j.e != j.i.gc(); ) + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le; + for (n.Tg("Calculate Graph Size", 1), n.bh(e, Lce), d = B2, g = B2, l = SB, a = SB, j = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); j.e != j.i.gc(); ) p = u(En(j), 26), D = p.i, R = p.j, Le = p.g, f = p.f, h = u(re(p, (tt(), d4)), 140), d = m.Math.min(d, D - h.b), g = m.Math.min(g, R - h.d), l = m.Math.max(l, D + Le + h.c), a = m.Math.max(a, R + f + h.a); - for (M = u(re(e, (tt(), Ml)), 104), E = new ue(d - M.b, g - M.d), De = l - d + (M.b + M.c), s = a - g + (M.d + M.a), ve(me(re(e, (_1(), Pae)))) && (J = u(re(e, (s2(), ap)), 26), V = u(re(J, d4), 140), X = J.i + J.g / 2 + (V.b + V.c) / 2 - E.a, we = J.j + J.f / 2 + (V.d + V.a) / 2 - E.b, r = De - X, c = s - we, r < De / 2 ? (t = r - X, De += t, E.a -= t) : (t = X - r, De += t), c < s / 2 ? (i = c - we, s += i, E.b -= i) : (i = we - c, s += i)), v = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); v.e != v.i.gc(); ) + for (T = u(re(e, (tt(), Ml)), 104), E = new ue(d - T.b, g - T.d), De = l - d + (T.b + T.c), s = a - g + (T.d + T.a), ve(me(re(e, (B1(), Pae)))) && (J = u(re(e, (s2(), ap)), 26), V = u(re(J, d4), 140), X = J.i + J.g / 2 + (V.b + V.c) / 2 - E.a, we = J.j + J.f / 2 + (V.d + V.a) / 2 - E.b, r = De - X, c = s - we, r < De / 2 ? (t = r - X, De += t, E.a -= t) : (t = X - r, De += t), c < s / 2 ? (i = c - we, s += i, E.b -= i) : (i = we - c, s += i)), v = new kn((!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a)); v.e != v.i.gc(); ) p = u(En(v), 26), Es(p, p.i - E.a), As(p, p.j - E.b); - ve(me(re(e, $g))) || (Y0(e, De), Q0(e, s)), Pt(e, xg, De - (M.b + M.c)), Pt(e, Ag, s - (M.d + M.a)), n.bh(e, yS); + ve(me(re(e, $g))) || (Y0(e, De), Q0(e, s)), Pt(e, xg, De - (T.b + T.c)), Pt(e, Ag, s - (T.d + T.a)), n.bh(e, yS); } function oOn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p; @@ -29969,7 +30059,7 @@ function WDn() { for (s = new x(n.a); s.a < s.c.c.length; ) for (c = u(A(s), 9), d = qa(c, (be(), gn)).Jc(); d.Ob(); ) for (a = u(d.Pb(), 12), ki(e.e, a), r = new x(a.g); r.a < r.c.c.length; ) - i = u(A(r), 17), !hr(i) && (he(e.c, i), CBe(e, i), f = i.c.i.k, (f == (cn(), si) || f == su || f == Ai || f == Eh) && he(e.j, i), p = i.d, g = p.i.c, g == t ? ki(e.f, p) : g == n ? ki(e.e, p) : Du(e.c, i)); + i = u(A(r), 17), !hr(i) && (he(e.c, i), P_e(e, i), f = i.c.i.k, (f == (cn(), si) || f == su || f == Ai || f == Eh) && he(e.j, i), p = i.d, g = p.i.c, g == t ? ki(e.f, p) : g == n ? ki(e.e, p) : Du(e.c, i)); if (t) for (s = new x(t.a); s.a < s.c.c.length; ) { for (c = u(A(s), 9), l = new x(c.j); l.a < l.c.c.length; ) @@ -29977,15 +30067,15 @@ function WDn() { i = u(A(r), 17), hr(i) && ki(e.g, i); for (d = qa(c, (be(), an)).Jc(); d.Ob(); ) for (a = u(d.Pb(), 12), ki(e.f, a), r = new x(a.g); r.a < r.c.c.length; ) - i = u(A(r), 17), !hr(i) && (he(e.c, i), CBe(e, i), f = i.c.i.k, (f == (cn(), si) || f == su || f == Ai || f == Eh) && he(e.j, i), p = i.d, g = p.i.c, g == t ? ki(e.f, p) : g == n ? ki(e.e, p) : Du(e.c, i)); + i = u(A(r), 17), !hr(i) && (he(e.c, i), P_e(e, i), f = i.c.i.k, (f == (cn(), si) || f == su || f == Ai || f == Eh) && he(e.j, i), p = i.d, g = p.i.c, g == t ? ki(e.f, p) : g == n ? ki(e.e, p) : Du(e.c, i)); } } function fOn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; - for (t.Tg("Polyline edge routing", 1), E = _(H(y(n, (ae(), She)))), p = _(H(y(n, kg))), r = _(H(y(n, mg))), i = m.Math.min(1, r / p), R = 0, h = 0, n.b.c.length != 0 && (J = jHe(u(pe(n.b, 0), 25)), R = 0.4 * i * J), f = new Vi(n.b, 0); f.b < f.d.gc(); ) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; + for (t.Tg("Polyline edge routing", 1), E = B(H(y(n, (ae(), She)))), p = B(H(y(n, kg))), r = B(H(y(n, mg))), i = m.Math.min(1, r / p), R = 0, h = 0, n.b.c.length != 0 && (J = EHe(u(pe(n.b, 0), 25)), R = 0.4 * i * J), f = new Vi(n.b, 0); f.b < f.d.gc(); ) { for (s = (An(f.b < f.d.gc()), u(f.d.Xb(f.c = f.b++), 25)), c = wx(s, bE), c && R > 0 && (R -= p), nie(s, R), a = 0, g = new x(s.a); g.a < g.c.c.length; ) { - for (d = u(A(g), 9), l = 0, j = new fn(dn(Ht(d).a.Jc(), new Q())); xn(j); ) - v = u(pn(j), 17), M = oh(v.c).b, D = oh(v.d).b, s == v.d.i.c && !hr(v) && (TAn(v, R, 0.4 * i * m.Math.abs(M - D)), v.c.j == (be(), an) && (M = 0, D = 0)), l = m.Math.max(l, m.Math.abs(D - M)); + for (d = u(A(g), 9), l = 0, j = new fn(dn(Ht(d).a.Jc(), new Y())); xn(j); ) + v = u(pn(j), 17), T = oh(v.c).b, D = oh(v.d).b, s == v.d.i.c && !hr(v) && (TAn(v, R, 0.4 * i * m.Math.abs(T - D)), v.c.j == (be(), an) && (T = 0, D = 0)), l = m.Math.max(l, m.Math.abs(D - T)); switch (d.k.g) { case 0: case 4: @@ -29996,13 +30086,13 @@ function WDn() { } a = m.Math.max(a, l); } - f.b < f.d.gc() && (J = jHe((An(f.b < f.d.gc()), u(f.d.Xb(f.c = f.b++), 25))), a = m.Math.max(a, J), An(f.b > 0), f.a.Xb(f.c = --f.b)), h = 0.4 * i * a, !c && f.b < f.d.gc() && (h += p), R += s.c.a + h; + f.b < f.d.gc() && (J = EHe((An(f.b < f.d.gc()), u(f.d.Xb(f.c = f.b++), 25))), a = m.Math.max(a, J), An(f.b > 0), f.a.Xb(f.c = --f.b)), h = 0.4 * i * a, !c && f.b < f.d.gc() && (h += p), R += s.c.a + h; } e.a.a.$b(), n.f.a = R, t.Ug(); } function hOn(e) { var n, t, i, r, c; - switch (Ny(e, iVe), (!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b).i + (!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c).i) { + switch (Ny(e, rVe), (!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b).i + (!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c).i) { case 0: throw $(new on("The edge must have at least one source or target.")); case 1: @@ -30016,7 +30106,7 @@ function WDn() { if (c == Qt(r)) return c; } - for (i = ll(vo(I(T(To, 1), Ve, 20, 0, [(!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), (!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c)]))), n = ec(u(pn(i), 84)); xn(i); ) + for (i = ll(vo(I(S(To, 1), Ve, 20, 0, [(!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), (!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c)]))), n = ec(u(pn(i), 84)); xn(i); ) if (t = ec(u(pn(i), 84)), t != n && !xw(t, n)) { if (Qt(t) == Qt(n)) n = Qt(t); @@ -30026,17 +30116,17 @@ function WDn() { return n; } function aie(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; if (g = n.length, g > 0 && (h = (bn(0, n.length), n.charCodeAt(0)), h != 64)) { if (h == 37 && (d = n.lastIndexOf("%"), l = !1, d != 0 && (d == g - 1 || (l = (bn(d + 1, n.length), n.charCodeAt(d + 1) == 46))))) { - if (s = (tr(1, d, n.length), n.substr(1, d - 1)), R = _e("%", s) ? null : die(s), i = 0, l) + if (s = (tr(1, d, n.length), n.substr(1, d - 1)), R = Be("%", s) ? null : die(s), i = 0, l) try { i = eo((bn(d + 2, n.length + 1), n.substr(d + 2)), Yi, pt); } catch (J) { throw J = gi(J), N(J, 131) ? (f = J, $(new W$(f))) : $(J); } for (E = IY(e.Dh()); E.Ob(); ) - if (v = pM(E), N(v, 504) && (r = u(v, 587), D = r.d, (R == null ? D == null : _e(R, D)) && i-- == 0)) + if (v = pM(E), N(v, 504) && (r = u(v, 587), D = r.d, (R == null ? D == null : Be(R, D)) && i-- == 0)) return r; return null; } @@ -30048,15 +30138,15 @@ function WDn() { p = n; else throw $(J); } - for (p = _e("%", p) ? null : die(p), j = IY(e.Dh()); j.Ob(); ) - if (v = pM(j), N(v, 197) && (c = u(v, 197), M = c.ve(), (p == null ? M == null : _e(p, M)) && t-- == 0)) + for (p = Be("%", p) ? null : die(p), j = IY(e.Dh()); j.Ob(); ) + if (v = pM(j), N(v, 197) && (c = u(v, 197), T = c.ve(), (p == null ? T == null : Be(p, T)) && t-- == 0)) return c; return null; } - return hze(e, n); + return lze(e, n); } function lOn(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D; + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D; for (a = new Tn(), h = new W0(), i = new x(e.a.a.b); i.a < i.c.c.length; ) if (n = u(A(i), 60), l = h2(n), l) Ru(a.f, l, n); @@ -30065,9 +30155,9 @@ function WDn() { r = u(A(c), 17), Je(h, r, n); for (t = new x(e.a.a.b); t.a < t.c.c.length; ) if (n = u(A(t), 60), l = h2(n), l) { - for (f = new fn(dn(Ht(l).a.Jc(), new Q())); xn(f); ) - if (s = u(pn(f), 17), !hr(s) && (v = s.c, M = s.d, !((be(), Hu).Gc(s.c.j) && Hu.Gc(s.d.j)))) { - if (j = u(rn(a, s.d.i), 60), yf(ff(of(hf(sf(new Ro(), 0), 100), e.c[n.a.d]), e.c[j.a.d])), v.j == an && RSe((ns(), v))) { + for (f = new fn(dn(Ht(l).a.Jc(), new Y())); xn(f); ) + if (s = u(pn(f), 17), !hr(s) && (v = s.c, T = s.d, !((be(), Hu).Gc(s.c.j) && Hu.Gc(s.d.j)))) { + if (j = u(rn(a, s.d.i), 60), yf(ff(of(hf(sf(new Ro(), 0), 100), e.c[n.a.d]), e.c[j.a.d])), v.j == an && _Se((ns(), v))) { for (g = u(Mt(h, s), 22).Jc(); g.Ob(); ) if (d = u(g.Pb(), 60), d.d.c < n.d.c) { if (p = e.c[d.a.d], E = e.c[n.a.d], p == E) @@ -30075,7 +30165,7 @@ function WDn() { yf(ff(of(hf(sf(new Ro(), 1), 100), p), E)); } } - if (M.j == gn && BSe((ns(), M))) { + if (T.j == gn && BSe((ns(), T))) { for (g = u(Mt(h, s), 22).Jc(); g.Ob(); ) if (d = u(g.Pb(), 60), d.d.c > n.d.c) { if (p = e.c[n.a.d], E = e.c[d.a.d], p == E) @@ -30087,14 +30177,14 @@ function WDn() { } } function aOn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X; if (g = u(u(Mt(e.r, n), 22), 83), n == (be(), gn) || n == an) { - vze(e, n); + kze(e, n); return; } - for (c = n == ln ? (eb(), Jj) : (eb(), Gj), J = n == ln ? (Nu(), Vf) : (Nu(), xf), t = u(_r(e.b, n), 127), i = t.i, r = i.c + d2(I(T(Xi, 1), Gr, 30, 15, [t.n.b, e.C.b, e.k])), M = i.c + i.b - d2(I(T(Xi, 1), Gr, 30, 15, [t.n.c, e.C.c, e.k])), s = yW(OK(c), e.t), D = n == ln ? Ri : ii, d = g.Jc(); d.Ob(); ) - l = u(d.Pb(), 115), !(!l.c || l.c.d.c.length <= 0) && (E = l.b.Kf(), j = 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), Ny(J, Rie), p.f = J, Hf(p, (hs(), Af)), v.c = j.a - (v.b - E.a) / 2, V = m.Math.min(r, j.a), X = m.Math.max(M, j.a + E.a), v.c < V ? v.c = V : v.c + v.b > X && (v.c = X - v.b), he(s.d, new KL(v, IZ(s, v))), D = n == ln ? m.Math.max(D, j.b + l.b.Kf().b) : m.Math.min(D, j.b)); - for (D += n == ln ? e.t : -e.t, R = KZ((s.e = D, s)), R > 0 && (u(_r(e.b, n), 127).a.b = R), a = g.Jc(); a.Ob(); ) + for (c = n == ln ? (eb(), Jj) : (eb(), Gj), J = n == ln ? (Nu(), Vf) : (Nu(), xf), t = u(Br(e.b, n), 127), i = t.i, r = i.c + d2(I(S(Xi, 1), Gr, 30, 15, [t.n.b, e.C.b, e.k])), T = i.c + i.b - d2(I(S(Xi, 1), Gr, 30, 15, [t.n.c, e.C.c, e.k])), s = yW(OK(c), e.t), D = n == ln ? Ri : ii, d = g.Jc(); d.Ob(); ) + l = u(d.Pb(), 115), !(!l.c || l.c.d.c.length <= 0) && (E = l.b.Kf(), j = 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), Ny(J, Rie), p.f = J, Hf(p, (hs(), Af)), v.c = j.a - (v.b - E.a) / 2, V = m.Math.min(r, j.a), X = m.Math.max(T, j.a + E.a), v.c < V ? v.c = V : v.c + v.b > X && (v.c = X - v.b), he(s.d, new KL(v, IZ(s, v))), D = n == ln ? m.Math.max(D, j.b + l.b.Kf().b) : m.Math.min(D, j.b)); + for (D += n == ln ? e.t : -e.t, R = KZ((s.e = D, s)), R > 0 && (u(Br(e.b, n), 127).a.b = R), a = g.Jc(); a.Ob(); ) l = u(a.Pb(), 115), !(!l.c || l.c.d.c.length <= 0) && (v = l.c.i, v.c -= l.e.a, v.d -= l.e.b); } function dOn(e, n) { @@ -30137,25 +30227,25 @@ function WDn() { } return v = t + 1, i = a, g = new Rp(), h && (g.a += "-"), i - v >= 1 ? (Pd(g, d[t]), g.a += ".", g.a += Gh(d, t + 1, a - t - 1)) : g.a += Gh(d, t, a - t), g.a += "E", iu(r, 0) > 0 && (g.a += "+"), g.a += "" + y6(r), g.a; } - function $ze(e) { - ew(e, new sb(CA(Yb(Kb(Qb(Vb(new S0(), xo), "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 lve()), xo))), se(e, xo, gS, ge(Xcn)), se(e, xo, Vw, ge(Kcn)), se(e, xo, R2, ge(qcn)), se(e, xo, q3, ge(Ucn)), se(e, xo, H3, ge(zcn)), se(e, xo, y5, ge(Hcn)), se(e, xo, _9, ge(Oae)), se(e, xo, j5, ge(Wcn)), se(e, xo, R_, ge(pq)), se(e, xo, F_, ge(mq)), se(e, xo, jS, ge(Dae)), se(e, xo, B_, ge(vq)), se(e, xo, __, ge(Nae)), se(e, xo, Hce, ge(Fae)), se(e, xo, Gce, ge(Lae)), se(e, xo, Rce, ge(TC)), se(e, xo, Bce, ge(SC)), se(e, xo, _ce, ge(vE)), se(e, xo, Jce, ge(Rae)), se(e, xo, Fce, ge(Pae)); + function Mze(e) { + ew(e, new sb(CA(Yb(Kb(Qb(Vb(new S0(), xo), "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 ave()), xo))), se(e, xo, gS, ge(Kcn)), se(e, xo, Vw, ge(Vcn)), se(e, xo, R2, ge(Ucn)), se(e, xo, q3, ge(zcn)), se(e, xo, H3, ge(Wcn)), se(e, xo, y5, ge(qcn)), se(e, xo, B9, ge(Oae)), se(e, xo, j5, ge(Xcn)), se(e, xo, RB, ge(pq)), se(e, xo, FB, ge(mq)), se(e, xo, jS, ge(Dae)), se(e, xo, _B, ge(vq)), se(e, xo, BB, ge(Nae)), se(e, xo, Hce, ge(Fae)), se(e, xo, Gce, ge(Lae)), se(e, xo, Rce, ge(TC)), se(e, xo, _ce, ge(SC)), se(e, xo, Bce, ge(vE)), se(e, xo, Jce, ge(Rae)), se(e, xo, Fce, ge(Pae)); } function ab(e, n, t, i, r) { - var c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X; + var c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X; if (E = new ue(e.g, e.f), j = jne(e), j.a = m.Math.max(j.a, n), j.b = m.Math.max(j.b, t), X = j.a / E.a, a = j.b / E.b, J = j.a - E.a, h = j.b - E.b, i) for (s = Qt(e) ? u(re(Qt(e), (tt(), m0)), 86) : u(re(e, (tt(), m0)), 86), f = z(re(e, (tt(), l8))) === z((Ui(), Vc)), D = new kn((!e.c && (e.c = new ne(Is, e, 9, 9)), e.c)); D.e != D.i.gc(); ) - switch (M = u(En(D), 125), R = u(re(M, vp), 64), R == (be(), mc) && (R = qte(M, s), Pt(M, vp, R)), R.g) { + switch (T = u(En(D), 125), R = u(re(T, vp), 64), R == (be(), mc) && (R = qte(T, s), Pt(T, vp, R)), R.g) { case 1: - f || Es(M, M.i * X); + f || Es(T, T.i * X); break; case 2: - Es(M, M.i + J), f || As(M, M.j * a); + Es(T, T.i + J), f || As(T, T.j * a); break; case 3: - f || Es(M, M.i * X), As(M, M.j + h); + f || Es(T, T.i * X), As(T, T.j + h); break; case 4: - f || As(M, M.j * a); + f || As(T, T.j * a); } if (D0(e, j.a, j.b), r) for (g = new kn((!e.n && (e.n = new ne(vc, e, 1, 7)), e.n)); g.e != g.i.gc(); ) @@ -30165,15 +30255,15 @@ function WDn() { function RT(e) { var n, t, i, r, c, s, f, h, l, a, d; if (e == null) - throw $(new Dh(Bu)); + throw $(new Dh(_u)); if (l = e, c = e.length, h = !1, c > 0 && (n = (bn(0, e.length), e.charCodeAt(0)), (n == 45 || n == 43) && (e = (bn(1, e.length + 1), e.substr(1)), --c, h = n == 45)), c == 0) throw $(new Dh(wb + l + '"')); for (; e.length > 0 && (bn(0, e.length), e.charCodeAt(0) == 48); ) e = (bn(1, e.length + 1), e.substr(1)), --c; - if (c > (cUe(), KQe)[10]) + if (c > (uUe(), VQe)[10]) throw $(new Dh(wb + l + '"')); for (r = 0; r < c; r++) - if (wBe((bn(r, e.length), e.charCodeAt(r))) == -1) + if (g_e((bn(r, e.length), e.charCodeAt(r))) == -1) throw $(new Dh(wb + l + '"')); for (d = 0, s = wse[10], a = HJ[10], f = Na(gse[10]), t = !0, i = c % s, i > 0 && (d = -parseInt((tr(0, i, e.length), e.substr(0, i)), 10), e = (bn(i, e.length + 1), e.substr(i)), c -= i, t = !1); c >= s; ) { if (i = parseInt((tr(0, s, e.length), e.substr(0, s)), 10), e = (bn(s, e.length + 1), e.substr(s)), c -= s, t) @@ -30225,7 +30315,7 @@ function WDn() { } return h.a; } - function Mze(e) { + function Tze(e) { var n, t, i, r, c, s, f, h, l, a, d, g, p, v; if (p = Qt(ec(u(F((!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), 0), 84))), v = Qt(ec(u(F((!e.c && (e.c = new Qe(Cn, e, 5, 8)), e.c), 0), 84))), d = p == v, f = new er(), n = u(re(e, (AM(), Wde)), 78), n && n.b >= 2) { if ((!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a).i == 0) @@ -30243,9 +30333,9 @@ function WDn() { c = u(En(s), 157), a = u(re(c, d8), 8), a && ao(c, a.a, a.b), d && (f.a = m.Math.max(f.a, c.i + c.g), f.b = m.Math.max(f.b, c.j + c.f)); return f; } - function Tze(e, n, t, i, r) { + function Sze(e, n, t, i, r) { var c, s, f; - if (kDe(e, n), s = n[0], c = or(t.c, 0), f = -1, uZ(t)) + if (yDe(e, n), s = n[0], c = or(t.c, 0), f = -1, uZ(t)) if (i > 0) { if (s + i > e.length) return !1; @@ -30254,7 +30344,7 @@ function WDn() { f = dT(e, n); switch (c) { case 71: - return f = T2(e, s, I(T(ke, 1), oe, 2, 6, [aWe, dWe]), n), r.e = f, !0; + return f = T2(e, s, I(S(ye, 1), fe, 2, 6, [dWe, bWe]), n), r.e = f, !0; case 77: return OMn(e, n, r, f, s); case 76: @@ -30264,7 +30354,7 @@ function WDn() { case 99: return FEn(e, n, s, r); case 97: - return f = T2(e, s, I(T(ke, 1), oe, 2, 6, ["AM", "PM"]), n), r.b = f, !0; + return f = T2(e, s, I(S(ye, 1), fe, 2, 6, ["AM", "PM"]), n), r.b = f, !0; case 121: return DMn(e, n, s, f, t, r); case 100: @@ -30293,77 +30383,77 @@ function WDn() { } } function bOn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De; for (R = n.c.length, r = new C2(e.a, t, null, null), De = W(Xi, Gr, 30, R, 15, 1), j = W(Xi, Gr, 30, R, 15, 1), v = W(Xi, Gr, 30, R, 15, 1), E = 0, f = 0; f < R; f++) j[f] = pt, v[f] = Yi; for (h = 0; h < R; h++) for (i = (qe(h, n.c.length), u(n.c[h], 185)), De[h] = hR(i), De[E] > De[h] && (E = h), d = new x(e.a.b); d.a < d.c.c.length; ) for (a = u(A(d), 25), D = new x(a.a); D.a < D.c.c.length; ) - M = u(A(D), 9), X = _(i.p[M.p]) + _(i.d[M.p]), j[h] = m.Math.min(j[h], X), v[h] = m.Math.max(v[h], X + M.o.b); + T = u(A(D), 9), X = B(i.p[T.p]) + B(i.d[T.p]), j[h] = m.Math.min(j[h], X), v[h] = m.Math.max(v[h], X + T.o.b); for (we = W(Xi, Gr, 30, R, 15, 1), l = 0; l < R; l++) (qe(l, n.c.length), u(n.c[l], 185)).o == (uh(), p0) ? we[l] = j[E] - j[l] : we[l] = v[E] - v[l]; for (c = W(Xi, Gr, 30, R, 15, 1), p = new x(e.a.b); p.a < p.c.c.length; ) for (g = u(A(p), 25), V = new x(g.a); V.a < V.c.c.length; ) { for (J = u(A(V), 9), s = 0; s < R; s++) - c[s] = _((qe(s, n.c.length), u(n.c[s], 185)).p[J.p]) + _((qe(s, n.c.length), u(n.c[s], 185)).d[J.p]) + we[s]; - q7e(c, WDe(Ps.prototype.Ke, Ps, [])), r.p[J.p] = (c[1] + c[2]) / 2, r.d[J.p] = 0; + c[s] = B((qe(s, n.c.length), u(n.c[s], 185)).p[J.p]) + B((qe(s, n.c.length), u(n.c[s], 185)).d[J.p]) + we[s]; + U7e(c, XDe(Ps.prototype.Ke, Ps, [])), r.p[J.p] = (c[1] + c[2]) / 2, r.d[J.p] = 0; } return r; } function wOn(e, n, t) { var i, r, c, s, f; - switch (i = n.i, c = e.i.o, r = e.i.d, f = e.n, s = bc(I(T(Ji, 1), oe, 8, 0, [f, e.a])), e.j.g) { + switch (i = n.i, c = e.i.o, r = e.i.d, f = e.n, s = bc(I(S(Ji, 1), fe, 8, 0, [f, e.a])), e.j.g) { case 1: - Fh(n, (Nu(), xf)), i.d = -r.d - t - i.a, u(u(pe(n.d, 0), 187).mf((te(), um)), 292) == (Zs(), Tl) ? (Hf(n, (hs(), Af)), i.c = s.a - _(H(y(e, np))) - t - i.b) : (Hf(n, (hs(), nl)), i.c = s.a + _(H(y(e, np))) + t); + Fh(n, (Nu(), xf)), i.d = -r.d - t - i.a, u(u(pe(n.d, 0), 187).mf((te(), um)), 292) == (Zs(), Tl) ? (Hf(n, (hs(), Af)), i.c = s.a - B(H(y(e, np))) - t - i.b) : (Hf(n, (hs(), nl)), i.c = s.a + B(H(y(e, np))) + t); break; case 2: - Hf(n, (hs(), nl)), i.c = c.a + r.c + t, u(u(pe(n.d, 0), 187).mf((te(), um)), 292) == (Zs(), Tl) ? (Fh(n, (Nu(), xf)), i.d = s.b - _(H(y(e, np))) - t - i.a) : (Fh(n, (Nu(), Vf)), i.d = s.b + _(H(y(e, np))) + t); + Hf(n, (hs(), nl)), i.c = c.a + r.c + t, u(u(pe(n.d, 0), 187).mf((te(), um)), 292) == (Zs(), Tl) ? (Fh(n, (Nu(), xf)), i.d = s.b - B(H(y(e, np))) - t - i.a) : (Fh(n, (Nu(), Vf)), i.d = s.b + B(H(y(e, np))) + t); break; case 3: - Fh(n, (Nu(), Vf)), i.d = c.b + r.a + t, u(u(pe(n.d, 0), 187).mf((te(), um)), 292) == (Zs(), Tl) ? (Hf(n, (hs(), Af)), i.c = s.a - _(H(y(e, np))) - t - i.b) : (Hf(n, (hs(), nl)), i.c = s.a + _(H(y(e, np))) + t); + Fh(n, (Nu(), Vf)), i.d = c.b + r.a + t, u(u(pe(n.d, 0), 187).mf((te(), um)), 292) == (Zs(), Tl) ? (Hf(n, (hs(), Af)), i.c = s.a - B(H(y(e, np))) - t - i.b) : (Hf(n, (hs(), nl)), i.c = s.a + B(H(y(e, np))) + t); break; case 4: - Hf(n, (hs(), Af)), i.c = -r.b - t - i.b, u(u(pe(n.d, 0), 187).mf((te(), um)), 292) == (Zs(), Tl) ? (Fh(n, (Nu(), xf)), i.d = s.b - _(H(y(e, np))) - t - i.a) : (Fh(n, (Nu(), Vf)), i.d = s.b + _(H(y(e, np))) + t); + Hf(n, (hs(), Af)), i.c = -r.b - t - i.b, u(u(pe(n.d, 0), 187).mf((te(), um)), 292) == (Zs(), Tl) ? (Fh(n, (Nu(), xf)), i.d = s.b - B(H(y(e, np))) - t - i.a) : (Fh(n, (Nu(), Vf)), i.d = s.b + B(H(y(e, np))) + t); } } function gOn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D; for (n.Tg("Interactive node layering", 1), t = new le(), g = new x(e.a); g.a < g.c.c.length; ) { for (a = u(A(g), 9), h = a.n.a, f = h + a.o.a, f = m.Math.max(h + 1, f), D = new Vi(t, 0), i = null; D.b < D.d.gc(); ) if (E = (An(D.b < D.d.gc()), u(D.d.Xb(D.c = D.b++), 564)), E.c >= f) { An(D.b > 0), D.a.Xb(D.c = --D.b); break; } else E.a > h && (i ? (Ci(i.b, E.b), i.a = m.Math.max(i.a, E.a), vs(D)) : (he(E.b, a), E.c = m.Math.min(E.c, h), E.a = m.Math.max(E.a, f), i = E)); - i || (i = new cje(), i.c = h, i.a = f, fw(D, i), he(i.b, a)); + i || (i = new uje(), i.c = h, i.a = f, fw(D, i), he(i.b, a)); } - for (s = e.b, l = 0, M = new x(t); M.a < M.c.c.length; ) - for (E = u(A(M), 564), r = new Jc(e), r.p = l++, sn(s.c, r), p = new x(E.b); p.a < p.c.c.length; ) + for (s = e.b, l = 0, T = new x(t); T.a < T.c.c.length; ) + for (E = u(A(T), 564), r = new Jc(e), r.p = l++, sn(s.c, r), p = new x(E.b); p.a < p.c.c.length; ) a = u(A(p), 9), Ni(a, r), a.p = 0; for (d = new x(e.a); d.a < d.c.c.length; ) if (a = u(A(d), 9), a.p == 0) - for (j = pqe(a, e); j.a.gc() != 0; ) - v = u(j.a.ec().Jc().Pb(), 9), j.a.Ac(v) != null, wr(j, pqe(v, e)); + for (j = mqe(a, e); j.a.gc() != 0; ) + v = u(j.a.ec().Jc().Pb(), 9), j.a.Ac(v) != null, wr(j, mqe(v, e)); for (c = new Vi(s, 0); c.b < c.d.gc(); ) (An(c.b < c.d.gc()), u(c.d.Xb(c.c = c.b++), 25)).a.c.length == 0 && vs(c); e.a.c.length = 0, n.Ug(); } function pOn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v, j; - for (t.Tg(KXe, 1), !n.a && (n.a = new ne(Qn, n, 10, 11)), i = _(H(re(n, (gh(), OC)))), a = _(H(re(n, i8))), g = u(re(n, t8), 104), p = new bX(i, a), c = Uze(p, n, g), UDe(n, p), f = u(re(n, i1e), 15).a; f > 1; ) { - if (r = $$n(n), d = c.g, v = u(re(n, t8), 104), j = _(H(re(n, OC))), (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a).i > 1 && _(H(re(n, (gl(), Tq)))) != ii && (c.c + (v.b + v.c)) / (c.b + (v.d + v.a)) < j ? Pt(r, (gl(), Eg), _(H(re(n, Eg))) + _(H(re(n, Tq)))) : (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a).i > 1 && _(H(re(n, (gl(), Mq)))) != ii && (c.c + (v.b + v.c)) / (c.b + (v.d + v.a)) > j && Pt(r, (gl(), Eg), m.Math.max(_(H(re(n, n8))), _(H(re(r, Eg))) - _(H(re(n, Mq))))), p = new bX(i, a), h = Uze(p, r, g), l = h.g, l >= d && l == l) { + for (t.Tg(VXe, 1), !n.a && (n.a = new ne(Qn, n, 10, 11)), i = B(H(re(n, (gh(), OC)))), a = B(H(re(n, i8))), g = u(re(n, t8), 104), p = new bX(i, a), c = zze(p, n, g), zDe(n, p), f = u(re(n, i1e), 15).a; f > 1; ) { + if (r = $$n(n), d = c.g, v = u(re(n, t8), 104), j = B(H(re(n, OC))), (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a).i > 1 && B(H(re(n, (gl(), Tq)))) != ii && (c.c + (v.b + v.c)) / (c.b + (v.d + v.a)) < j ? Pt(r, (gl(), Eg), B(H(re(n, Eg))) + B(H(re(n, Tq)))) : (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a).i > 1 && B(H(re(n, (gl(), Mq)))) != ii && (c.c + (v.b + v.c)) / (c.b + (v.d + v.a)) > j && Pt(r, (gl(), Eg), m.Math.max(B(H(re(n, n8))), B(H(re(r, Eg))) - B(H(re(n, Mq))))), p = new bX(i, a), h = zze(p, r, g), l = h.g, l >= d && l == l) { for (s = 0; s < (!r.a && (r.a = new ne(Qn, r, 10, 11)), r.a).i; s++) - mGe(e, u(F((!r.a && (r.a = new ne(Qn, r, 10, 11)), r.a), s), 26), u(F((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a), s), 26)); - UDe(n, p), vpn(c, h.c), mpn(c, h.b); + vGe(e, u(F((!r.a && (r.a = new ne(Qn, r, 10, 11)), r.a), s), 26), u(F((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a), s), 26)); + zDe(n, p), vpn(c, h.c), mpn(c, h.b); } --f; } Pt(n, (gl(), l4), c.b), Pt(n, dm, c.c), t.Ug(); } function mOn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le; - for (n.Tg("Compound graph postprocessor", 1), t = ve(me(y(e, (ae(), MH)))), f = u(y(e, (te(), Sfe)), 229), a = new vi(), M = f.ec().Jc(); M.Ob(); ) { - for (E = u(M.Pb(), 17), s = new os(f.cc(E)), ze(), Di(s, new Bz(e)), V = p4n((qe(0, s.c.length), u(s.c[0], 250))), we = _Ne(u(pe(s, s.c.length - 1), 250)), R = V.i, Av(we.i, R) ? D = R.e : D = _i(R), d = r8n(E, s), Fs(E.a), g = null, c = new x(s); c.a < c.c.c.length; ) - r = u(A(c), 250), j = new er(), vne(j, r.a, D), p = r.b, i = new ms(), WN(i, 0, p.a), Mw(i, j), J = new vr(oh(p.c)), X = new vr(oh(p.d)), At(J, j), At(X, j), g && (i.b == 0 ? v = X : v = (An(i.b != 0), u(i.a.a.c, 8)), De = m.Math.abs(g.a - v.a) > Vh, Le = m.Math.abs(g.b - v.b) > Vh, (!t && De && Le || t && (De || Le)) && rt(E.a, J)), wr(E.a, i), i.b == 0 ? g = J : g = (An(i.b != 0), u(i.c.b.c, 8)), X4n(p, d, j), _Ne(r) == we && (_i(we.i) != r.a && (j = new er(), vne(j, _i(we.i), D)), K(E, sH, j)), eEn(p, E, D), a.a.yc(p, a); + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le; + for (n.Tg("Compound graph postprocessor", 1), t = ve(me(y(e, (ae(), MH)))), f = u(y(e, (te(), Sfe)), 229), a = new vi(), T = f.ec().Jc(); T.Ob(); ) { + for (E = u(T.Pb(), 17), s = new os(f.cc(E)), ze(), Di(s, new _z(e)), V = p4n((qe(0, s.c.length), u(s.c[0], 250))), we = JNe(u(pe(s, s.c.length - 1), 250)), R = V.i, Av(we.i, R) ? D = R.e : D = Bi(R), d = r8n(E, s), Fs(E.a), g = null, c = new x(s); c.a < c.c.c.length; ) + r = u(A(c), 250), j = new er(), vne(j, r.a, D), p = r.b, i = new ms(), WN(i, 0, p.a), Mw(i, j), J = new vr(oh(p.c)), X = new vr(oh(p.d)), At(J, j), At(X, j), g && (i.b == 0 ? v = X : v = (An(i.b != 0), u(i.a.a.c, 8)), De = m.Math.abs(g.a - v.a) > Vh, Le = m.Math.abs(g.b - v.b) > Vh, (!t && De && Le || t && (De || Le)) && rt(E.a, J)), wr(E.a, i), i.b == 0 ? g = J : g = (An(i.b != 0), u(i.c.b.c, 8)), X4n(p, d, j), JNe(r) == we && (Bi(we.i) != r.a && (j = new er(), vne(j, Bi(we.i), D)), K(E, sH, j)), eEn(p, E, D), a.a.yc(p, a); br(E, V), Ki(E, we); } for (l = a.a.ec().Jc(); l.Ob(); ) @@ -30372,11 +30462,11 @@ function WDn() { } function vOn(e, n) { var t, i, r, c, s, f, h, l, a, d, g; - for (r = u(y(e, (Ac(), Fb)), 86), a = r == (Mi(), Qr) || r == nc ? Mh : nc, t = u(fs(mt(new Ge(null, new He(e.b, 16)), new pme()), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), h = u(fs(du(t.Mc(), new Sye(n)), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [_u]))), 16), h.Fc(u(fs(du(t.Mc(), new Iye(n)), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [_u]))), 18)), h.gd(new Cye(a)), g = new Ma(new Pye(r)), i = new Tn(), f = h.Jc(); f.Ob(); ) - s = u(f.Pb(), 240), l = u(s.a, 40), ve(me(s.c)) ? (g.a.yc(l, (en(), Y1)) == null, new Lm(g.a.Xc(l, !1)).a.gc() > 0 && ht(i, l, u(new Lm(g.a.Xc(l, !1)).a.Tc(), 40)), new Lm(g.a.$c(l, !0)).a.gc() > 1 && ht(i, KRe(g, l), l)) : (new Lm(g.a.Xc(l, !1)).a.gc() > 0 && (c = u(new Lm(g.a.Xc(l, !1)).a.Tc(), 40), z(c) === z(hc(Ur(i.f, l))) && u(y(l, (Bt(), YH)), 16).Ec(c)), new Lm(g.a.$c(l, !0)).a.gc() > 1 && (d = KRe(g, l), z(hc(Ur(i.f, d))) === z(l) && u(y(d, (Bt(), YH)), 16).Ec(l)), g.a.Ac(l) != null); + for (r = u(y(e, (Ac(), Fb)), 86), a = r == (Mi(), Qr) || r == nc ? Mh : nc, t = u(fs(mt(new Ge(null, new He(e.b, 16)), new mme()), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), h = u(fs(du(t.Mc(), new Iye(n)), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [Bu]))), 16), h.Fc(u(fs(du(t.Mc(), new Cye(n)), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [Bu]))), 18)), h.gd(new Pye(a)), g = new Ma(new Oye(r)), i = new Tn(), f = h.Jc(); f.Ob(); ) + s = u(f.Pb(), 240), l = u(s.a, 40), ve(me(s.c)) ? (g.a.yc(l, (en(), Y1)) == null, new Lm(g.a.Xc(l, !1)).a.gc() > 0 && ht(i, l, u(new Lm(g.a.Xc(l, !1)).a.Tc(), 40)), new Lm(g.a.$c(l, !0)).a.gc() > 1 && ht(i, VRe(g, l), l)) : (new Lm(g.a.Xc(l, !1)).a.gc() > 0 && (c = u(new Lm(g.a.Xc(l, !1)).a.Tc(), 40), z(c) === z(hc(Ur(i.f, l))) && u(y(l, (_t(), YH)), 16).Ec(c)), new Lm(g.a.$c(l, !0)).a.gc() > 1 && (d = VRe(g, l), z(hc(Ur(i.f, d))) === z(l) && u(y(d, (_t(), YH)), 16).Ec(l)), g.a.Ac(l) != null); } - function Sze(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; + function Ize(e) { + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; if (e.gc() == 1) return u(e.Xb(0), 235); if (e.gc() <= 0) @@ -30386,10 +30476,10 @@ function WDn() { g = u(A(p), 155), v += u(y(g, (jf(), Y3)), 15).a, a = m.Math.min(a, g.d.a - g.e.a / 2), d = m.Math.min(d, g.d.b - g.e.b / 2), h = m.Math.max(h, g.d.a + g.e.a / 2), l = m.Math.max(l, g.d.b + g.e.b / 2); K(t, (jf(), Y3), ie(v)), K(t, (I1(), wk), new ue(a, d)), K(t, Hj, new ue(h, l)); } - for (ze(), e.gd(new rwe()), j = new F$(), Pc(j, u(e.Xb(0), 105)), f = 0, D = 0, c = e.Jc(); c.Ob(); ) + for (ze(), e.gd(new cwe()), j = new F$(), Pc(j, u(e.Xb(0), 105)), f = 0, D = 0, c = e.Jc(); c.Ob(); ) t = u(c.Pb(), 235), E = Fi(kr(u(y(t, (I1(), Hj)), 8)), u(y(t, wk), 8)), f = m.Math.max(f, E.a), D += E.a * E.b; - for (f = m.Math.max(f, m.Math.sqrt(D) * _(H(y(j, (jf(), oZe))))), M = _(H(y(j, uI))), R = 0, J = 0, s = 0, n = M, i = e.Jc(); i.Ob(); ) - t = u(i.Pb(), 235), E = Fi(kr(u(y(t, (I1(), Hj)), 8)), u(y(t, wk), 8)), R + E.a > f && (R = 0, J += s + M, s = 0), WTn(j, t, R, J), n = m.Math.max(n, R + E.a), s = m.Math.max(s, E.b), R += E.a + M; + for (f = m.Math.max(f, m.Math.sqrt(D) * B(H(y(j, (jf(), fZe))))), T = B(H(y(j, uI))), R = 0, J = 0, s = 0, n = T, i = e.Jc(); i.Ob(); ) + t = u(i.Pb(), 235), E = Fi(kr(u(y(t, (I1(), Hj)), 8)), u(y(t, wk), 8)), R + E.a > f && (R = 0, J += s + T, s = 0), WTn(j, t, R, J), n = m.Math.max(n, R + E.a), s = m.Math.max(s, E.b), R += E.a + T; return j; } function kOn(e) { @@ -30405,15 +30495,15 @@ function WDn() { return !X8(s = c[a++]) || !X8(f = c[a++]) ? null : (n = Ph[s], t = Ph[f], h = c[a++], l = c[a++], Ph[h] == -1 || Ph[l] == -1 ? h == 61 && l == 61 ? (t & 15) != 0 ? null : (E = W(us, H2, 30, p * 3 + 1, 15, 1), zc(d, 0, E, 0, p * 3), E[g] = (n << 2 | t >> 4) << 24 >> 24, E) : h != 61 && l == 61 ? (i = Ph[h], (i & 3) != 0 ? null : (E = W(us, H2, 30, p * 3 + 2, 15, 1), zc(d, 0, E, 0, p * 3), E[g++] = (n << 2 | t >> 4) << 24 >> 24, E[g] = ((t & 15) << 4 | i >> 2 & 15) << 24 >> 24, E)) : null : (i = Ph[h], r = Ph[l], d[g++] = (n << 2 | t >> 4) << 24 >> 24, d[g++] = ((t & 15) << 4 | i >> 2 & 15) << 24 >> 24, d[g++] = (i << 6 | r) << 24 >> 24, d)); } function yOn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V; - for (n.Tg(mXe, 1), v = u(y(e, (ae(), la)), 222), r = new x(e.b); r.a < r.c.c.length; ) + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V; + for (n.Tg(vXe, 1), v = u(y(e, (ae(), la)), 222), r = new x(e.b); r.a < r.c.c.length; ) for (i = u(A(r), 25), l = Jy(i.a), s = l, f = 0, h = s.length; f < h; ++f) if (c = s[f], c.k == (cn(), su)) { if (v == (na(), ym)) for (d = new x(c.j); d.a < d.c.c.length; ) a = u(A(d), 12), a.e.c.length == 0 || Fkn(a), a.g.c.length == 0 || Rkn(a); else if (N(y(c, (te(), $t)), 17)) - E = u(y(c, $t), 17), M = u(qa(c, (be(), an)).Jc().Pb(), 12), D = u(qa(c, gn).Jc().Pb(), 12), R = u(y(M, $t), 12), J = u(y(D, $t), 12), br(E, J), Ki(E, R), V = new vr(D.i.n), V.a = bc(I(T(Ji, 1), oe, 8, 0, [J.i.n, J.n, J.a])).a, rt(E.a, V), V = new vr(M.i.n), V.a = bc(I(T(Ji, 1), oe, 8, 0, [R.i.n, R.n, R.a])).a, rt(E.a, V); + E = u(y(c, $t), 17), T = u(qa(c, (be(), an)).Jc().Pb(), 12), D = u(qa(c, gn).Jc().Pb(), 12), R = u(y(T, $t), 12), J = u(y(D, $t), 12), br(E, J), Ki(E, R), V = new vr(D.i.n), V.a = bc(I(S(Ji, 1), fe, 8, 0, [J.i.n, J.n, J.a])).a, rt(E.a, V), V = new vr(T.i.n), V.a = bc(I(S(Ji, 1), fe, 8, 0, [R.i.n, R.n, R.a])).a, rt(E.a, V); else { if (c.j.c.length >= 2) { for (j = !0, g = new x(c.j), t = u(A(g), 12), p = null; g.a < g.c.c.length; ) @@ -30431,25 +30521,25 @@ function WDn() { n.Ug(); } function jOn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V; for (f = new x(e.a.b); f.a < f.c.c.length; ) for (c = u(A(f), 25), R = new x(c.a); R.a < R.c.c.length; ) D = u(A(R), 9), n.g[D.p] = D, n.a[D.p] = D, n.d[D.p] = 0; - for (h = e.a.b, n.c == (Rh(), e1) && (h = _s(h)), s = h.Jc(); s.Ob(); ) - for (c = u(s.Pb(), 25), p = -1, g = c.a, n.o == (uh(), Ah) && (p = pt, g = _s(g)), V = g.Jc(); V.Ob(); ) + for (h = e.a.b, n.c == (Rh(), e1) && (h = Bs(h)), s = h.Jc(); s.Ob(); ) + for (c = u(s.Pb(), 25), p = -1, g = c.a, n.o == (uh(), Ah) && (p = pt, g = Bs(g)), V = g.Jc(); V.Ob(); ) if (J = u(V.Pb(), 9), d = null, n.c == e1 ? d = u(pe(e.b.f, J.p), 16) : d = u(pe(e.b.b, J.p), 16), d.gc() > 0) if (i = d.gc(), l = dr(m.Math.floor((i + 1) / 2)) - 1, r = dr(m.Math.ceil((i + 1) / 2)) - 1, n.o == Ah) for (a = r; a >= l; a--) - n.a[J.p] == J && (j = u(d.Xb(a), 49), v = u(j.a, 9), !Bo(t, j.b) && p > e.b.e[v.p] && (n.a[v.p] = J, n.g[J.p] = n.g[v.p], n.a[J.p] = n.g[J.p], n.f[n.g[J.p].p] = (en(), !!(ve(n.f[n.g[J.p].p]) & J.k == (cn(), yi))), p = e.b.e[v.p])); + n.a[J.p] == J && (j = u(d.Xb(a), 49), v = u(j.a, 9), !_o(t, j.b) && p > e.b.e[v.p] && (n.a[v.p] = J, n.g[J.p] = n.g[v.p], n.a[J.p] = n.g[J.p], n.f[n.g[J.p].p] = (en(), !!(ve(n.f[n.g[J.p].p]) & J.k == (cn(), yi))), p = e.b.e[v.p])); else for (a = l; a <= r; a++) - n.a[J.p] == J && (M = u(d.Xb(a), 49), E = u(M.a, 9), !Bo(t, M.b) && p < e.b.e[E.p] && (n.a[E.p] = J, n.g[J.p] = n.g[E.p], n.a[J.p] = n.g[J.p], n.f[n.g[J.p].p] = (en(), !!(ve(n.f[n.g[J.p].p]) & J.k == (cn(), yi))), p = e.b.e[E.p])); - } - function Ize(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De; - return R = e.c[(qe(0, n.c.length), u(n.c[0], 17)).p], we = e.c[(qe(1, n.c.length), u(n.c[1], 17)).p], R.a.e.e - R.a.a - (R.b.e.e - R.b.a) == 0 && we.a.e.e - we.a.a - (we.b.e.e - we.b.a) == 0 || (M = R.b.e.f, !N(M, 9)) ? !1 : (E = u(M, 9), V = e.i[E.p], X = E.c ? dc(E.c.a, E, 0) : -1, c = ii, X > 0 && (r = u(pe(E.c.a, X - 1), 9), s = e.i[r.p], De = m.Math.ceil(i2(e.n, r, E)), c = V.a.e - E.d.d - (s.a.e + r.o.b + r.d.a) - De), l = ii, X < E.c.a.c.length - 1 && (h = u(pe(E.c.a, X + 1), 9), a = e.i[h.p], De = m.Math.ceil(i2(e.n, h, E)), l = a.a.e - h.d.d - (V.a.e + E.o.b + E.d.a) - De), t && (rh(), pf(Yh), m.Math.abs(c - l) <= Yh || c == l || isNaN(c) && isNaN(l)) ? !0 : (i = uD(R.a), f = -uD(R.b), d = -uD(we.a), D = uD(we.b), j = R.a.e.e - R.a.a - (R.b.e.e - R.b.a) > 0 && we.a.e.e - we.a.a - (we.b.e.e - we.b.a) < 0, v = R.a.e.e - R.a.a - (R.b.e.e - R.b.a) < 0 && we.a.e.e - we.a.a - (we.b.e.e - we.b.a) > 0, p = R.a.e.e + R.b.a < we.b.e.e + we.a.a, g = R.a.e.e + R.b.a > we.b.e.e + we.a.a, J = 0, !j && !v && (g ? c + d > 0 ? J = d : l - i > 0 && (J = i) : p && (c + f > 0 ? J = f : l - D > 0 && (J = D))), V.a.e += J, V.b && (V.d.e += J), !1)); + n.a[J.p] == J && (T = u(d.Xb(a), 49), E = u(T.a, 9), !_o(t, T.b) && p < e.b.e[E.p] && (n.a[E.p] = J, n.g[J.p] = n.g[E.p], n.a[J.p] = n.g[J.p], n.f[n.g[J.p].p] = (en(), !!(ve(n.f[n.g[J.p].p]) & J.k == (cn(), yi))), p = e.b.e[E.p])); } function Cze(e, n, t) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De; + return R = e.c[(qe(0, n.c.length), u(n.c[0], 17)).p], we = e.c[(qe(1, n.c.length), u(n.c[1], 17)).p], R.a.e.e - R.a.a - (R.b.e.e - R.b.a) == 0 && we.a.e.e - we.a.a - (we.b.e.e - we.b.a) == 0 || (T = R.b.e.f, !N(T, 9)) ? !1 : (E = u(T, 9), V = e.i[E.p], X = E.c ? dc(E.c.a, E, 0) : -1, c = ii, X > 0 && (r = u(pe(E.c.a, X - 1), 9), s = e.i[r.p], De = m.Math.ceil(i2(e.n, r, E)), c = V.a.e - E.d.d - (s.a.e + r.o.b + r.d.a) - De), l = ii, X < E.c.a.c.length - 1 && (h = u(pe(E.c.a, X + 1), 9), a = e.i[h.p], De = m.Math.ceil(i2(e.n, h, E)), l = a.a.e - h.d.d - (V.a.e + E.o.b + E.d.a) - De), t && (rh(), pf(Yh), m.Math.abs(c - l) <= Yh || c == l || isNaN(c) && isNaN(l)) ? !0 : (i = uD(R.a), f = -uD(R.b), d = -uD(we.a), D = uD(we.b), j = R.a.e.e - R.a.a - (R.b.e.e - R.b.a) > 0 && we.a.e.e - we.a.a - (we.b.e.e - we.b.a) < 0, v = R.a.e.e - R.a.a - (R.b.e.e - R.b.a) < 0 && we.a.e.e - we.a.a - (we.b.e.e - we.b.a) > 0, p = R.a.e.e + R.b.a < we.b.e.e + we.a.a, g = R.a.e.e + R.b.a > we.b.e.e + we.a.a, J = 0, !j && !v && (g ? c + d > 0 ? J = d : l - i > 0 && (J = i) : p && (c + f > 0 ? J = f : l - D > 0 && (J = D))), V.a.e += J, V.b && (V.d.e += J), !1)); + } + function Pze(e, n, t) { var i, r, c, s, f, h, l, a, d, g; if (i = new df(n.Jf().a, n.Jf().b, n.Kf().a, n.Kf().b), r = new zp(), e.c) for (s = new x(n.Pf()); s.a < s.c.c.length; ) @@ -30462,23 +30552,23 @@ function WDn() { if (g = new ue(-t, -t), u(n.mf((tt(), Mg)), 182).Gc((ls(), dd))) for (s = new x(h.Pf()); s.a < s.c.c.length; ) c = u(A(s), 187), g.a += c.Kf().a + t, g.b += c.Kf().b + t; - g.a = m.Math.max(g.a, 0), g.b = m.Math.max(g.b, 0), eUe(i, h.Uf(), h.Sf(), n, h, g, t); + g.a = m.Math.max(g.a, 0), g.b = m.Math.max(g.b, 0), nUe(i, h.Uf(), h.Sf(), n, h, g, t); } } - e.b && eUe(i, n.Uf(), n.Sf(), n, null, null, t), f = new DL(n.Tf()), f.d = m.Math.max(0, n.Jf().b - i.d), f.a = m.Math.max(0, i.d + i.a - (n.Jf().b + n.Kf().b)), f.b = m.Math.max(0, n.Jf().a - i.c), f.c = m.Math.max(0, i.c + i.b - (n.Jf().a + n.Kf().a)), n.Xf(f); + e.b && nUe(i, n.Uf(), n.Sf(), n, null, null, t), f = new DL(n.Tf()), f.d = m.Math.max(0, n.Jf().b - i.d), f.a = m.Math.max(0, i.d + i.a - (n.Jf().b + n.Kf().b)), f.b = m.Math.max(0, n.Jf().a - i.c), f.c = m.Math.max(0, i.c + i.b - (n.Jf().a + n.Kf().a)), n.Xf(f); } function EOn() { var e = ["\\u0000", "\\u0001", "\\u0002", "\\u0003", "\\u0004", "\\u0005", "\\u0006", "\\u0007", "\\b", "\\t", "\\n", "\\u000B", "\\f", "\\r", "\\u000E", "\\u000F", "\\u0010", "\\u0011", "\\u0012", "\\u0013", "\\u0014", "\\u0015", "\\u0016", "\\u0017", "\\u0018", "\\u0019", "\\u001A", "\\u001B", "\\u001C", "\\u001D", "\\u001E", "\\u001F"]; return e[34] = '\\"', e[92] = "\\\\", e[173] = "\\u00ad", e[1536] = "\\u0600", e[1537] = "\\u0601", e[1538] = "\\u0602", e[1539] = "\\u0603", e[1757] = "\\u06dd", e[1807] = "\\u070f", e[6068] = "\\u17b4", e[6069] = "\\u17b5", e[8203] = "\\u200b", e[8204] = "\\u200c", e[8205] = "\\u200d", e[8206] = "\\u200e", e[8207] = "\\u200f", e[8232] = "\\u2028", e[8233] = "\\u2029", e[8234] = "\\u202a", e[8235] = "\\u202b", e[8236] = "\\u202c", e[8237] = "\\u202d", e[8238] = "\\u202e", e[8288] = "\\u2060", e[8289] = "\\u2061", e[8290] = "\\u2062", e[8291] = "\\u2063", e[8292] = "\\u2064", e[8298] = "\\u206a", e[8299] = "\\u206b", e[8300] = "\\u206c", e[8301] = "\\u206d", e[8302] = "\\u206e", e[8303] = "\\u206f", e[65279] = "\\ufeff", e[65529] = "\\ufff9", e[65530] = "\\ufffa", e[65531] = "\\ufffb", e; } - function Pze(e) { - ew(e, new sb(EW(CA(Yb(Kb(Qb(Vb(new S0(), $u), "ELK Force"), "Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported."), new cwe()), $u), Rt((Qv(), uP), I(T(sP, 1), ce, 244, 0, [rP]))))), se(e, $u, mj, ie(1)), se(e, $u, Vw, 80), se(e, $u, NB, 5), se(e, $u, v5, m5), se(e, $u, KT, ie(1)), se(e, $u, R9, (en(), !0)), se(e, $u, Qw, Hse), se(e, $u, B9, ge(_se)), se(e, $u, FB, ge(qse)), se(e, $u, VT, !1), se(e, $u, _9, ge(Gse)), se(e, $u, k5, ge(aZe)), se(e, $u, H3, ge(dZe)), se(e, $u, R2, ge(lZe)), se(e, $u, y5, ge(hZe)), se(e, $u, j5, ge(wZe)), se(e, $u, XT, ge(Jse)), se(e, $u, LB, ge(uG)), se(e, $u, Hie, ge(cI)), se(e, $u, DB, ge(cG)), se(e, $u, qie, ge(Use)), se(e, $u, vj, ge(yZe)), se(e, $u, kj, ge(jZe)), se(e, $u, yj, ge(kZe)), se(e, $u, jj, ge(vZe)), se(e, $u, pb, zse); + function Oze(e) { + ew(e, new sb(EW(CA(Yb(Kb(Qb(Vb(new S0(), $u), "ELK Force"), "Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported."), new uwe()), $u), Rt((Qv(), uP), I(S(sP, 1), ce, 244, 0, [rP]))))), se(e, $u, mj, ie(1)), se(e, $u, Vw, 80), se(e, $u, N_, 5), se(e, $u, v5, m5), se(e, $u, KT, ie(1)), se(e, $u, R9, (en(), !0)), se(e, $u, Qw, Hse), se(e, $u, _9, ge(Bse)), se(e, $u, F_, ge(qse)), se(e, $u, VT, !1), se(e, $u, B9, ge(Gse)), se(e, $u, k5, ge(dZe)), se(e, $u, H3, ge(bZe)), se(e, $u, R2, ge(aZe)), se(e, $u, y5, ge(lZe)), se(e, $u, j5, ge(gZe)), se(e, $u, XT, ge(Jse)), se(e, $u, L_, ge(uG)), se(e, $u, Hie, ge(cI)), se(e, $u, D_, ge(cG)), se(e, $u, qie, ge(Use)), se(e, $u, vj, ge(jZe)), se(e, $u, kj, ge(EZe)), se(e, $u, yj, ge(yZe)), se(e, $u, jj, ge(kZe)), se(e, $u, pb, zse); } function AOn(e, n, t, i) { - var r, c, s, f, h, l, a, d, g, p, v, j, E, M; - for (p = u(pe((qe(0, n.c.length), u(n.c[0], 25)).a, i), 9), t > 0 && Ni(p, (qe(t, n.c.length), u(n.c[t], 25))), c = 0, g = !0, M = _s(Nd(bi(p))), h = M.Jc(); h.Ob(); ) { + var r, c, s, f, h, l, a, d, g, p, v, j, E, T; + for (p = u(pe((qe(0, n.c.length), u(n.c[0], 25)).a, i), 9), t > 0 && Ni(p, (qe(t, n.c.length), u(n.c[t], 25))), c = 0, g = !0, T = Bs(Nd(bi(p))), h = T.Jc(); h.Ob(); ) { for (f = u(h.Pb(), 17), g = !1, d = f, l = 0; l < t; l++) - r = gRe(e, d), i + c > (qe(l, n.c.length), u(n.c[l], 25)).a.c.length ? Ni(r, (qe(l, n.c.length), u(n.c[l], 25))) : R1(r, i + c, (qe(l, n.c.length), u(n.c[l], 25))), d = bR(d, r); + r = pRe(e, d), i + c > (qe(l, n.c.length), u(n.c[l], 25)).a.c.length ? Ni(r, (qe(l, n.c.length), u(n.c[l], 25))) : R1(r, i + c, (qe(l, n.c.length), u(n.c[l], 25))), d = bR(d, r); t > 0 && (c += 1); } if (g) { @@ -30486,9 +30576,9 @@ function WDn() { r = new dh(e), Nl(r, (cn(), Uj)), i + c > (qe(l, n.c.length), u(n.c[l], 25)).a.c.length ? Ni(r, (qe(l, n.c.length), u(n.c[l], 25))) : R1(r, i + c, (qe(l, n.c.length), u(n.c[l], 25))); t > 0 && (c += 1); } - for (s = !1, j = new fn(dn(Ht(p).a.Jc(), new Q())); xn(j); ) { + for (s = !1, j = new fn(dn(Ht(p).a.Jc(), new Y())); xn(j); ) { for (v = u(pn(j), 17), d = v, a = t + 1; a < n.c.length; a++) - r = gRe(e, d), Ni(r, (qe(a, n.c.length), u(n.c[a], 25))), d = bR(d, r); + r = pRe(e, d), Ni(r, (qe(a, n.c.length), u(n.c[a], 25))), d = bR(d, r); for (l = 0; l <= t; l++) s && (E = new dh(e), Nl(E, (cn(), pk)), i + 1 > (qe(l, n.c.length), u(n.c[l], 25)).a.c.length ? Ni(E, (qe(l, n.c.length), u(n.c[l], 25))) : R1(E, i + 1, (qe(l, n.c.length), u(n.c[l], 25)))); s && (c += 1), s = !0; @@ -30499,10 +30589,10 @@ function WDn() { kt(); var t, i, r, c, s, f, h, l, a, d, g, p, v; if (G4(E4) == 0) { - for (d = W(eDn, oe, 121, gfn.length, 0, 1), s = 0; s < d.length; s++) + for (d = W(eDn, fe, 121, pfn.length, 0, 1), s = 0; s < d.length; s++) d[s] = new Xs(4); - for (i = new B4(), c = 0; c < ebe.length; c++) { - if (a = new Xs(4), c < 84 ? (f = c * 2, p = (bn(f, CJ.length), CJ.charCodeAt(f)), g = (bn(f + 1, CJ.length), CJ.charCodeAt(f + 1)), ru(a, p, g)) : (f = (c - 84) * 2, ru(a, nbe[f], nbe[f + 1])), h = ebe[c], _e(h, "Specials") && ru(a, 65520, 65533), _e(h, TQe) && (ru(a, 983040, 1048573), ru(a, 1048576, 1114109)), zr(E4, h, a), zr(I8, h, Hw(a)), l = i.a.length, 0 < l ? i.a = Go(i.a, 0, 0) : 0 > l && (i.a += F$e(W(Oo, Xh, 30, -l, 15, 1))), i.a += "Is", Nh(h, Fu(32)) >= 0) + for (i = new _4(), c = 0; c < ebe.length; c++) { + if (a = new Xs(4), c < 84 ? (f = c * 2, p = (bn(f, CJ.length), CJ.charCodeAt(f)), g = (bn(f + 1, CJ.length), CJ.charCodeAt(f + 1)), ru(a, p, g)) : (f = (c - 84) * 2, ru(a, nbe[f], nbe[f + 1])), h = ebe[c], Be(h, "Specials") && ru(a, 65520, 65533), Be(h, SQe) && (ru(a, 983040, 1048573), ru(a, 1048576, 1114109)), zr(E4, h, a), zr(I8, h, Hw(a)), l = i.a.length, 0 < l ? i.a = Go(i.a, 0, 0) : 0 > l && (i.a += R$e(W(Oo, Xh, 30, -l, 15, 1))), i.a += "Is", Nh(h, Fu(32)) >= 0) for (r = 0; r < h.length; r++) bn(r, h.length), h.charCodeAt(r) != 32 && sv(i, (bn(r, h.length), h.charCodeAt(r))); else @@ -30513,10 +30603,10 @@ function WDn() { } return v = u(nu(n ? E4 : I8, e), 137), v; } - function Oze(e) { - ew(e, new sb(EW(CA(Yb(Kb(Qb(Vb(new S0(), Tu), "ELK Mr. Tree"), "Tree-based algorithm provided by the Eclipse Layout Kernel. Computes a spanning tree of the input graph and arranges all nodes according to the resulting parent-children hierarchy. I pity the fool who doesn't use Mr. Tree Layout."), new Ome()), qXe), Pe((Qv(), vU))))), se(e, Tu, Qw, bae), se(e, Tu, Vw, 20), se(e, Tu, x_, 3), se(e, Tu, v5, m5), se(e, Tu, mj, ie(1)), se(e, Tu, R9, (en(), !0)), se(e, Tu, Sj, ge(fae)), se(e, Tu, $_, hae), se(e, Tu, B9, ge(scn)), se(e, Tu, pS, ge(ocn)), se(e, Tu, R2, ge(hcn)), se(e, Tu, k5, ge(lcn)), se(e, Tu, q3, ge(acn)), se(e, Tu, H3, ge(dcn)), se(e, Tu, y5, ge(fcn)), se(e, Tu, _9, ge(aae)), se(e, Tu, j5, ge(bcn)), se(e, Tu, Ice, ge(mae)), se(e, Tu, Pce, ge(wae)), se(e, Tu, vj, ge(mcn)), se(e, Tu, kj, ge(vcn)), se(e, Tu, yj, ge(pcn)), se(e, Tu, jj, ge(gcn)), se(e, Tu, pb, pae), se(e, Tu, Sce, ge(lp)), se(e, Tu, Cce, ge(cq)), se(e, Tu, Tce, ge(rl)), se(e, Tu, $ce, ge(oae)), se(e, Tu, Mce, ge(lae)); + function Lze(e) { + ew(e, new sb(EW(CA(Yb(Kb(Qb(Vb(new S0(), Tu), "ELK Mr. Tree"), "Tree-based algorithm provided by the Eclipse Layout Kernel. Computes a spanning tree of the input graph and arranges all nodes according to the resulting parent-children hierarchy. I pity the fool who doesn't use Mr. Tree Layout."), new Lme()), UXe), Pe((Qv(), vU))))), se(e, Tu, Qw, bae), se(e, Tu, Vw, 20), se(e, Tu, xB, 3), se(e, Tu, v5, m5), se(e, Tu, mj, ie(1)), se(e, Tu, R9, (en(), !0)), se(e, Tu, Sj, ge(fae)), se(e, Tu, $B, hae), se(e, Tu, _9, ge(ocn)), se(e, Tu, pS, ge(fcn)), se(e, Tu, R2, ge(lcn)), se(e, Tu, k5, ge(acn)), se(e, Tu, q3, ge(dcn)), se(e, Tu, H3, ge(bcn)), se(e, Tu, y5, ge(hcn)), se(e, Tu, B9, ge(aae)), se(e, Tu, j5, ge(wcn)), se(e, Tu, Ice, ge(mae)), se(e, Tu, Pce, ge(wae)), se(e, Tu, vj, ge(vcn)), se(e, Tu, kj, ge(kcn)), se(e, Tu, yj, ge(mcn)), se(e, Tu, jj, ge(pcn)), se(e, Tu, pb, pae), se(e, Tu, Sce, ge(lp)), se(e, Tu, Cce, ge(cq)), se(e, Tu, Tce, ge(rl)), se(e, Tu, $ce, ge(oae)), se(e, Tu, Mce, ge(lae)); } - function Lze(e, n) { + function Dze(e, n) { var t, i, r, c, s, f, h, l, a, d, g; for (l = u(u(Mt(e.r, n), 22), 83), s = kjn(e, n), t = e.u.Gc((ls(), p8)), h = l.Jc(); h.Ob(); ) if (f = u(h.Pb(), 115), !(!f.c || f.c.d.c.length <= 0)) { @@ -30537,11 +30627,11 @@ function WDn() { } } function xOn(e, n, t, i) { - var r, c, s, f, h, l, a, d, g, p, v, j, E, M, D; + var r, c, s, f, h, l, a, d, g, p, v, j, E, T, D; if (g = !1, d = !1, e2(u(y(i, (ae(), oi)), 102))) { s = !1, f = !1; e: for (v = new x(i.j); v.a < v.c.c.length; ) - for (p = u(A(v), 12), E = ll(vo(I(T(To, 1), Ve, 20, 0, [new Nm(p), new Sp(p)]))); xn(E); ) + for (p = u(A(v), 12), E = ll(vo(I(S(To, 1), Ve, 20, 0, [new Nm(p), new Sp(p)]))); xn(E); ) if (j = u(pn(E), 12), !ve(me(y(j.i, Sk)))) { if (p.j == (be(), ln)) { s = !0; @@ -30560,17 +30650,17 @@ function WDn() { a /= i.b.c.length, D = a >= i.o.b / 2; } else D = !d; - D ? (M = u(y(i, (te(), fm)), 16), M ? g ? c = M : (r = u(y(i, tm), 16), r ? M.gc() <= r.gc() ? c = M : c = r : (c = new le(), K(i, tm, c))) : (c = new le(), K(i, fm, c))) : (r = u(y(i, (te(), tm)), 16), r ? d ? c = r : (M = u(y(i, fm), 16), M ? r.gc() <= M.gc() ? c = r : c = M : (c = new le(), K(i, fm, c))) : (c = new le(), K(i, tm, c))), c.Ec(e), K(e, (te(), JI), t), n.d == t ? (Ki(n, null), t.e.c.length + t.g.c.length == 0 && ac(t, null), y6n(t)) : (br(n, null), t.e.c.length + t.g.c.length == 0 && ac(t, null)), Fs(n.a); + D ? (T = u(y(i, (te(), fm)), 16), T ? g ? c = T : (r = u(y(i, tm), 16), r ? T.gc() <= r.gc() ? c = T : c = r : (c = new le(), K(i, tm, c))) : (c = new le(), K(i, fm, c))) : (r = u(y(i, (te(), tm)), 16), r ? d ? c = r : (T = u(y(i, fm), 16), T ? r.gc() <= T.gc() ? c = r : c = T : (c = new le(), K(i, fm, c))) : (c = new le(), K(i, tm, c))), c.Ec(e), K(e, (te(), JI), t), n.d == t ? (Ki(n, null), t.e.c.length + t.g.c.length == 0 && ac(t, null), y6n(t)) : (br(n, null), t.e.c.length + t.g.c.length == 0 && ac(t, null)), Fs(n.a); } function $On(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni; - for (t.Tg("MinWidth layering", 1), p = n.b, we = n.a, ni = u(y(n, (ae(), Bhe)), 15).a, f = u(y(n, _he), 15).a, e.b = _(H(y(n, Mf))), e.d = ii, J = new x(we); J.a < J.c.c.length; ) + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni; + for (t.Tg("MinWidth layering", 1), p = n.b, we = n.a, ni = u(y(n, (ae(), _he)), 15).a, f = u(y(n, Bhe), 15).a, e.b = B(H(y(n, Mf))), e.d = ii, J = new x(we); J.a < J.c.c.length; ) D = u(A(J), 9), D.k == (cn(), si) && (Ke = D.o.b, e.d = m.Math.min(e.d, Ke)); for (e.d = m.Math.max(1, e.d), De = we.c.length, e.c = W(Wn, lt, 30, De, 15, 1), e.f = W(Wn, lt, 30, De, 15, 1), e.e = W(Xi, Gr, 30, De, 15, 1), l = 0, e.a = 0, V = new x(we); V.a < V.c.c.length; ) - D = u(A(V), 9), D.p = l++, e.c[D.p] = tRe(bi(D)), e.f[D.p] = tRe(Ht(D)), e.e[D.p] = D.o.b / e.d, e.a += e.e[D.p]; - for (e.b /= e.d, e.a /= De, X = AAn(we), Di(we, BV(new X8e(e))), j = ii, v = pt, s = null, ut = ni, yn = ni, c = f, r = f, ni < 0 && (ut = u(Rle.a.Gd(), 15).a, yn = u(Rle.b.Gd(), 15).a), f < 0 && (c = u(Fle.a.Gd(), 15).a, r = u(Fle.b.Gd(), 15).a), Ye = ut; Ye <= yn; Ye++) + D = u(A(V), 9), D.p = l++, e.c[D.p] = iRe(bi(D)), e.f[D.p] = iRe(Ht(D)), e.e[D.p] = D.o.b / e.d, e.a += e.e[D.p]; + for (e.b /= e.d, e.a /= De, X = AAn(we), Di(we, _V(new K8e(e))), j = ii, v = pt, s = null, ut = ni, yn = ni, c = f, r = f, ni < 0 && (ut = u(Rle.a.Gd(), 15).a, yn = u(Rle.b.Gd(), 15).a), f < 0 && (c = u(Fle.a.Gd(), 15).a, r = u(Fle.b.Gd(), 15).a), Ye = ut; Ye <= yn; Ye++) for (i = c; i <= r; i++) - Le = uIn(e, Ye, i, we, X), M = _(H(Le.a)), g = u(Le.b, 16), E = g.gc(), (M < j || M == j && E < v) && (j = M, v = E, s = g); + Le = uIn(e, Ye, i, we, X), T = B(H(Le.a)), g = u(Le.b, 16), E = g.gc(), (T < j || T == j && E < v) && (j = T, v = E, s = g); for (d = s.Jc(); d.Ob(); ) { for (a = u(d.Pb(), 16), h = new Jc(n), R = a.Jc(); R.Ob(); ) D = u(R.Pb(), 9), Ni(D, h); @@ -30579,40 +30669,40 @@ function WDn() { R7(p), we.c.length = 0, t.Ug(); } function MOn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we; - for (n.Tg(mXe, 1), j = new le(), X = new le(), l = new x(e.b); l.a < l.c.c.length; ) - for (h = u(A(l), 25), M = -1, v = Jy(h.a), d = v, g = 0, p = d.length; g < p; ++g) - if (a = d[g], ++M, !!(a.k == (cn(), si) && e2(u(y(a, (ae(), oi)), 102)))) { - for (!Yp(u(y(a, (ae(), oi)), 102)) && z(y(_i(a), $l)) === z((ta(), cd)) && J$n(a), K(a, (te(), Ib), a), j.c.length = 0, X.c.length = 0, t = new le(), J = new Dt(), EN(J, qa(a, (be(), ln))), z(y(_i(a), $l)) !== z((ta(), cd)) && (J = iJe(J)), Fze(e, J, j, X, t), f = M, we = a, c = new x(j); c.a < c.c.c.length; ) - i = u(A(c), 9), R1(i, f, h), ++M, K(i, Ib, a), s = u(pe(i.j, 0), 12), E = u(y(s, $t), 12), ve(me(y(E, hH))) || u(y(i, cm), 16).Ec(we); + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we; + for (n.Tg(vXe, 1), j = new le(), X = new le(), l = new x(e.b); l.a < l.c.c.length; ) + for (h = u(A(l), 25), T = -1, v = Jy(h.a), d = v, g = 0, p = d.length; g < p; ++g) + if (a = d[g], ++T, !!(a.k == (cn(), si) && e2(u(y(a, (ae(), oi)), 102)))) { + for (!Yp(u(y(a, (ae(), oi)), 102)) && z(y(Bi(a), $l)) === z((ta(), cd)) && J$n(a), K(a, (te(), Ib), a), j.c.length = 0, X.c.length = 0, t = new le(), J = new Dt(), EN(J, qa(a, (be(), ln))), z(y(Bi(a), $l)) !== z((ta(), cd)) && (J = rJe(J)), Rze(e, J, j, X, t), f = T, we = a, c = new x(j); c.a < c.c.c.length; ) + i = u(A(c), 9), R1(i, f, h), ++T, K(i, Ib, a), s = u(pe(i.j, 0), 12), E = u(y(s, $t), 12), ve(me(y(E, hH))) || u(y(i, cm), 16).Ec(we); for (Fs(J), R = qa(a, Mn).Jc(); R.Ob(); ) D = u(R.Pb(), 12), ti(J, D, J.a, J.a.a); - for (z(y(_i(a), $l)) !== z(cd) && (J = iJe(J)), Fze(e, J, X, null, t), V = a, r = new x(X); r.a < r.c.c.length; ) - i = u(A(r), 9), R1(i, ++M, h), K(i, Ib, a), s = u(pe(i.j, 0), 12), E = u(y(s, $t), 12), ve(me(y(E, hH))) || u(y(V, cm), 16).Ec(i); + for (z(y(Bi(a), $l)) !== z(cd) && (J = rJe(J)), Rze(e, J, X, null, t), V = a, r = new x(X); r.a < r.c.c.length; ) + i = u(A(r), 9), R1(i, ++T, h), K(i, Ib, a), s = u(pe(i.j, 0), 12), E = u(y(s, $t), 12), ve(me(y(E, hH))) || u(y(V, cm), 16).Ec(i); t.c.length == 0 || K(a, $fe, t); } n.Ug(); } function TOn(e, n, t, i, r, c, s) { - var f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni; + var f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni; for (p = 0, Ke = 0, h = new x(e); h.a < h.c.c.length; ) - f = u(A(h), 26), lze(f), p = m.Math.max(p, f.g), Ke += f.g * f.f; + f = u(A(h), 26), aze(f), p = m.Math.max(p, f.g), Ke += f.g * f.f; for (v = Ke / e.c.length, Le = jyn(e, v), Ke += e.c.length * Le, Ke += m.Math.sqrt(Ke) * (t.a + t.d), Ke += m.Math.sqrt(Ke) * t.c, p = m.Math.max(p, m.Math.sqrt(Ke * s)) + t.b, ut = t.b, ni = t.d, g = 0, a = t.b + t.c, De = new Dt(), rt(De, ie(0)), X = new Dt(), l = new Vi(e, 0); l.b < l.d.gc(); ) f = (An(l.b < l.d.gc()), u(l.d.Xb(l.c = l.b++), 26)), yn = f.g, d = f.f, ut + yn > p && (c && (mr(X, g), mr(De, ie(l.b - 1))), ut = t.b, ni += g + n, g = 0, a = m.Math.max(a, t.b + t.c + yn)), Es(f, ut), As(f, ni), a = m.Math.max(a, ut + yn + t.c), g = m.Math.max(g, d), ut += yn + n; if (a = m.Math.max(a, i), Ye = ni + g + t.a, Ye < r && (g += r - Ye, Ye = r), c) - for (ut = t.b, l = new Vi(e, 0), mr(De, ie(e.c.length)), we = Nn(De, 0), M = u(Ln(we), 15).a, mr(X, g), V = Nn(X, 0), J = 0; l.b < l.d.gc(); ) - l.b == M && (ut = t.b, J = _(H(Ln(V))), M = u(Ln(we), 15).a), f = (An(l.b < l.d.gc()), u(l.d.Xb(l.c = l.b++), 26)), D = f.f, Q0(f, J), j = J, l.b == M && (E = a - ut - t.c, R = f.g, Y0(f, E), Ane(f, new ue(E, j), new ue(R, D))), ut += f.g + n; + for (ut = t.b, l = new Vi(e, 0), mr(De, ie(e.c.length)), we = Nn(De, 0), T = u(Ln(we), 15).a, mr(X, g), V = Nn(X, 0), J = 0; l.b < l.d.gc(); ) + l.b == T && (ut = t.b, J = B(H(Ln(V))), T = u(Ln(we), 15).a), f = (An(l.b < l.d.gc()), u(l.d.Xb(l.c = l.b++), 26)), D = f.f, Q0(f, J), j = J, l.b == T && (E = a - ut - t.c, R = f.g, Y0(f, E), Ane(f, new ue(E, j), new ue(R, D))), ut += f.g + n; return new ue(a, Ye); } function SOn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn; if (t.Tg("Spline edge routing", 1), n.b.c.length == 0) { n.f.a = 0, t.Ug(); return; } - D = _(H(y(n, (ae(), kg)))), f = _(H(y(n, rd))), s = _(H(y(n, mg))), M = u(y(n, mH), 349), De = M == (Ov(), Hk), we = _(H(y(n, Che))), e.d = n, e.j.c.length = 0, e.a.c.length = 0, Fc(e.k), h = u(pe(n.b, 0), 25), a = wx(h.a, (AT(), bE)), v = u(pe(n.b, n.b.c.length - 1), 25), d = wx(v.a, bE), j = new x(n.b), E = null, yn = 0; + D = B(H(y(n, (ae(), kg)))), f = B(H(y(n, rd))), s = B(H(y(n, mg))), T = u(y(n, mH), 349), De = T == (Ov(), Hk), we = B(H(y(n, Che))), e.d = n, e.j.c.length = 0, e.a.c.length = 0, Fc(e.k), h = u(pe(n.b, 0), 25), a = wx(h.a, (AT(), bE)), v = u(pe(n.b, n.b.c.length - 1), 25), d = wx(v.a, bE), j = new x(n.b), E = null, yn = 0; do { - for (R = j.a < j.c.c.length ? u(A(j), 25) : null, oOn(e, E, R), OSn(e), Le = zln(g4n(a$(mt(new Ge(null, new He(e.i, 16)), new tme()), new ime()))), Ye = 0, J = yn, g = !E || a && E == h, p = !R || d && R == v, Le > 0 ? (l = 0, E && (l += f), l += (Le - 1) * s, R && (l += f), De && R && (l = m.Math.max(l, z$n(R, s, D, we))), l < D && !g && !p && (Ye = (D - l) / 2, l = D), J += l) : !g && !p && (J += D), R && nie(R, J), X = new x(e.i); X.a < X.c.c.length; ) + for (R = j.a < j.c.c.length ? u(A(j), 25) : null, oOn(e, E, R), OSn(e), Le = zln(g4n(a$(mt(new Ge(null, new He(e.i, 16)), new ime()), new rme()))), Ye = 0, J = yn, g = !E || a && E == h, p = !R || d && R == v, Le > 0 ? (l = 0, E && (l += f), l += (Le - 1) * s, R && (l += f), De && R && (l = m.Math.max(l, z$n(R, s, D, we))), l < D && !g && !p && (Ye = (D - l) / 2, l = D), J += l) : !g && !p && (J += D), R && nie(R, J), X = new x(e.i); X.a < X.c.c.length; ) V = u(A(X), 132), V.a.c = yn, V.a.b = J - yn, V.F = Ye, V.p = !E; Ci(e.a, e.i), yn = J, R && (yn += R.c.a), E = R, g = p; } while (R); @@ -30621,10 +30711,10 @@ function WDn() { n.f.a = yn, e.d = null, t.Ug(); } function IOn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke; for (e.b = n, e.a = u(y(n, (ae(), Ohe)), 15).a, e.c = u(y(n, Dhe), 15).a, e.c == 0 && (e.c = pt), E = new Vi(n.b, 0); E.b < E.d.gc(); ) { for (j = (An(E.b < E.d.gc()), u(E.d.Xb(E.c = E.b++), 25)), f = new le(), a = -1, J = -1, R = new x(j.a); R.a < R.c.c.length; ) - D = u(A(R), 9), _f((xy(), new fn(dn(Jh(D).a.Jc(), new Q())))) >= e.a && (i = oIn(e, D), a = m.Math.max(a, i.b), J = m.Math.max(J, i.d), he(f, new Ar(D, i))); + D = u(A(R), 9), Bf((xy(), new fn(dn(Jh(D).a.Jc(), new Y())))) >= e.a && (i = oIn(e, D), a = m.Math.max(a, i.b), J = m.Math.max(J, i.d), he(f, new Ar(D, i))); for (De = new le(), l = 0; l < a; ++l) Md(De, 0, (An(E.b > 0), E.a.Xb(E.c = --E.b), Le = new Jc(e.b), fw(E, Le), An(E.b < E.d.gc()), E.d.Xb(E.c = E.b++), Le)); for (s = new x(f); s.a < s.c.c.length; ) @@ -30638,34 +30728,34 @@ function WDn() { for (X = new x(we); X.a < X.c.c.length; ) V = u(A(X), 9), xee(e, V, hI, t); } - for (M = new Vi(n.b, 0); M.b < M.d.gc(); ) - v = (An(M.b < M.d.gc()), u(M.d.Xb(M.c = M.b++), 25)), v.a.c.length == 0 && vs(M); + for (T = new Vi(n.b, 0); T.b < T.d.gc(); ) + v = (An(T.b < T.d.gc()), u(T.d.Xb(T.c = T.b++), 25)), v.a.c.length == 0 && vs(T); } - function Dze(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; - if (j = e.i != 0, R = !1, M = null, Os(e.e)) { + function Nze(e, n) { + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; + if (j = e.i != 0, R = !1, T = null, Os(e.e)) { if (a = n.gc(), a > 0) { - for (g = a < 100 ? null : new g1(a), l = new _Y(n), v = l.g, M = W(Wn, lt, 30, a, 15, 1), i = 0, J = new V0(a), r = 0; r < e.i; ++r) { + for (g = a < 100 ? null : new g1(a), l = new BY(n), v = l.g, T = W(Wn, lt, 30, a, 15, 1), i = 0, J = new V0(a), r = 0; r < e.i; ++r) { f = e.g[r], p = f; e: for (D = 0; D < 2; ++D) { for (h = a; --h >= 0; ) if (p != null ? jt(p, v[h]) : z(p) === z(v[h])) { - M.length <= i && (E = M, M = W(Wn, lt, 30, 2 * M.length, 15, 1), zc(E, 0, M, 0, i)), M[i++] = r, Dn(J, v[h]); + T.length <= i && (E = T, T = W(Wn, lt, 30, 2 * T.length, 15, 1), zc(E, 0, T, 0, i)), T[i++] = r, Dn(J, v[h]); break e; } if (p = p, z(p) === z(f)) break; } } - if (l = J, v = J.g, a = i, i > M.length && (E = M, M = W(Wn, lt, 30, i, 15, 1), zc(E, 0, M, 0, i)), i > 0) { + if (l = J, v = J.g, a = i, i > T.length && (E = T, T = W(Wn, lt, 30, i, 15, 1), zc(E, 0, T, 0, i)), i > 0) { for (R = !0, c = 0; c < i; ++c) - p = v[c], g = kTe(e, u(p, 75), g); + p = v[c], g = yTe(e, u(p, 75), g); for (s = i; --s >= 0; ) - $3(e, M[s]); + $3(e, T[s]); if (i != a) { for (r = a; --r >= i; ) $3(l, r); - E = M, M = W(Wn, lt, 30, i, 15, 1), zc(E, 0, M, 0, i); + E = T, T = W(Wn, lt, 30, i, 15, 1), zc(E, 0, T, 0, i); } n = l; } @@ -30674,8 +30764,8 @@ function WDn() { for (n = hyn(e, n), r = e.i; --r >= 0; ) n.Gc(e.g[r]) && ($3(e, r), R = !0); if (R) { - if (M != null) { - for (t = n.gc(), d = t == 1 ? I6(e, 4, n.Jc().Pb(), null, M[0], j) : I6(e, 6, n, M, M[0], j), g = t < 100 ? null : new g1(t), r = n.Jc(); r.Ob(); ) + if (T != null) { + for (t = n.gc(), d = t == 1 ? I6(e, 4, n.Jc().Pb(), null, T[0], j) : I6(e, 6, n, T, T[0], j), g = t < 100 ? null : new g1(t), r = n.Jc(); r.Ob(); ) p = r.Pb(), g = SK(e, u(p, 75), g); g ? (g.lj(d), g.mj()) : yt(e.e, d); } else { @@ -30688,41 +30778,41 @@ function WDn() { return !1; } function COn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; - for (t = new _Be(n), t.a || rSn(n), l = tTn(n), h = new W0(), E = new QHe(), j = new x(n.a); j.a < j.c.c.length; ) - for (v = u(A(j), 9), r = new fn(dn(Ht(v).a.Jc(), new Q())); xn(r); ) + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; + for (t = new J_e(n), t.a || rSn(n), l = tTn(n), h = new W0(), E = new YHe(), j = new x(n.a); j.a < j.c.c.length; ) + for (v = u(A(j), 9), r = new fn(dn(Ht(v).a.Jc(), new Y())); xn(r); ) i = u(pn(r), 17), (i.c.i.k == (cn(), Ai) || i.d.i.k == Ai) && (a = yPn(e, i, l, E), Je(h, mF(a.d), a.a)); for (s = new le(), R = u(y(t.c, (te(), fa)), 22).Jc(); R.Ob(); ) { - switch (D = u(R.Pb(), 64), p = E.c[D.g], g = E.b[D.g], f = E.a[D.g], c = null, M = null, D.g) { + switch (D = u(R.Pb(), 64), p = E.c[D.g], g = E.b[D.g], f = E.a[D.g], c = null, T = null, D.g) { case 4: - c = new df(e.d.a, p, l.b.a - e.d.a, g - p), M = new df(e.d.a, p, f, g - p), B0(l, new ue(c.c + c.b, c.d)), B0(l, new ue(c.c + c.b, c.d + c.a)); + c = new df(e.d.a, p, l.b.a - e.d.a, g - p), T = new df(e.d.a, p, f, g - p), _0(l, new ue(c.c + c.b, c.d)), _0(l, new ue(c.c + c.b, c.d + c.a)); break; case 2: - c = new df(l.a.a, p, e.c.a - l.a.a, g - p), M = new df(e.c.a - f, p, f, g - p), B0(l, new ue(c.c, c.d)), B0(l, new ue(c.c, c.d + c.a)); + c = new df(l.a.a, p, e.c.a - l.a.a, g - p), T = new df(e.c.a - f, p, f, g - p), _0(l, new ue(c.c, c.d)), _0(l, new ue(c.c, c.d + c.a)); break; case 1: - c = new df(p, e.d.b, g - p, l.b.b - e.d.b), M = new df(p, e.d.b, g - p, f), B0(l, new ue(c.c, c.d + c.a)), B0(l, new ue(c.c + c.b, c.d + c.a)); + c = new df(p, e.d.b, g - p, l.b.b - e.d.b), T = new df(p, e.d.b, g - p, f), _0(l, new ue(c.c, c.d + c.a)), _0(l, new ue(c.c + c.b, c.d + c.a)); break; case 3: - c = new df(p, l.a.b, g - p, e.c.b - l.a.b), M = new df(p, e.c.b - f, g - p, f), B0(l, new ue(c.c, c.d)), B0(l, new ue(c.c + c.b, c.d)); + c = new df(p, l.a.b, g - p, e.c.b - l.a.b), T = new df(p, e.c.b - f, g - p, f), _0(l, new ue(c.c, c.d)), _0(l, new ue(c.c + c.b, c.d)); } - c && (d = new tje(), d.d = D, d.b = c, d.c = M, d.a = AD(u(Mt(h, mF(D)), 22)), sn(s.c, d)); + c && (d = new ije(), d.d = D, d.b = c, d.c = T, d.a = AD(u(Mt(h, mF(D)), 22)), sn(s.c, d)); } return Ci(t.b, s), t.d = H6n(OCn(l)), t; } - function Nze(e, n, t) { + function Fze(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v, j; if (t.p[n.p] == null) { f = !0, t.p[n.p] = 0, s = n, j = t.o == (uh(), p0) ? Ri : ii; do - r = e.b.e[s.p], c = s.c.a.c.length, t.o == p0 && r > 0 || t.o == Ah && r < c - 1 ? (h = null, l = null, t.o == Ah ? h = u(pe(s.c.a, r + 1), 9) : h = u(pe(s.c.a, r - 1), 9), l = t.g[h.p], Nze(e, l, t), j = e.e.vg(j, n, s), t.j[n.p] == n && (t.j[n.p] = t.j[l.p]), t.j[n.p] == t.j[l.p] ? (v = i2(e.d, s, h), t.o == Ah ? (i = _(t.p[n.p]), d = _(t.p[l.p]) + _(t.d[h.p]) - h.d.d - v - s.d.a - s.o.b - _(t.d[s.p]), f ? (f = !1, t.p[n.p] = m.Math.min(d, j)) : t.p[n.p] = m.Math.min(i, m.Math.min(d, j))) : (i = _(t.p[n.p]), d = _(t.p[l.p]) + _(t.d[h.p]) + h.o.b + h.d.a + v + s.d.d - _(t.d[s.p]), f ? (f = !1, t.p[n.p] = m.Math.max(d, j)) : t.p[n.p] = m.Math.max(i, m.Math.max(d, j)))) : (v = _(H(y(e.a, (ae(), g0)))), p = PNe(e, t.j[n.p]), a = PNe(e, t.j[l.p]), t.o == Ah ? (g = _(t.p[n.p]) + _(t.d[s.p]) + s.o.b + s.d.a + v - (_(t.p[l.p]) + _(t.d[h.p]) - h.d.d), iPe(p, a, g)) : (g = _(t.p[n.p]) + _(t.d[s.p]) - s.d.d - _(t.p[l.p]) - _(t.d[h.p]) - h.o.b - h.d.a - v, iPe(p, a, g)))) : j = e.e.vg(j, n, s), s = t.a[s.p]; + r = e.b.e[s.p], c = s.c.a.c.length, t.o == p0 && r > 0 || t.o == Ah && r < c - 1 ? (h = null, l = null, t.o == Ah ? h = u(pe(s.c.a, r + 1), 9) : h = u(pe(s.c.a, r - 1), 9), l = t.g[h.p], Fze(e, l, t), j = e.e.vg(j, n, s), t.j[n.p] == n && (t.j[n.p] = t.j[l.p]), t.j[n.p] == t.j[l.p] ? (v = i2(e.d, s, h), t.o == Ah ? (i = B(t.p[n.p]), d = B(t.p[l.p]) + B(t.d[h.p]) - h.d.d - v - s.d.a - s.o.b - B(t.d[s.p]), f ? (f = !1, t.p[n.p] = m.Math.min(d, j)) : t.p[n.p] = m.Math.min(i, m.Math.min(d, j))) : (i = B(t.p[n.p]), d = B(t.p[l.p]) + B(t.d[h.p]) + h.o.b + h.d.a + v + s.d.d - B(t.d[s.p]), f ? (f = !1, t.p[n.p] = m.Math.max(d, j)) : t.p[n.p] = m.Math.max(i, m.Math.max(d, j)))) : (v = B(H(y(e.a, (ae(), g0)))), p = ONe(e, t.j[n.p]), a = ONe(e, t.j[l.p]), t.o == Ah ? (g = B(t.p[n.p]) + B(t.d[s.p]) + s.o.b + s.d.a + v - (B(t.p[l.p]) + B(t.d[h.p]) - h.d.d), rPe(p, a, g)) : (g = B(t.p[n.p]) + B(t.d[s.p]) - s.d.d - B(t.p[l.p]) - B(t.d[h.p]) - h.o.b - h.d.a - v, rPe(p, a, g)))) : j = e.e.vg(j, n, s), s = t.a[s.p]; while (s != n); pln(e.e, n); } } function POn(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le; - if (t = _(H(y(e.a.j, (ae(), xhe)))), t < -1 || !e.a.i || Yp(u(y(e.a.o, oi), 102)) || wc(e.a.o, (be(), gn)).gc() < 2 && wc(e.a.o, an).gc() < 2) + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le; + if (t = B(H(y(e.a.j, (ae(), xhe)))), t < -1 || !e.a.i || Yp(u(y(e.a.o, oi), 102)) || wc(e.a.o, (be(), gn)).gc() < 2 && wc(e.a.o, an).gc() < 2) return !0; if (e.a.c.ig()) return !1; @@ -30732,23 +30822,23 @@ function WDn() { sn(R.c, d); continue; } - for (i = e.b[d.c.p][d.p], d.k == Ai ? (i.b = 1, u(y(d, (te(), $t)), 12).j == (be(), gn) && (J += i.a)) : (Le = wc(d, (be(), an)), Le.dc() || !gL(Le, new b3e()) ? i.c = 1 : (r = wc(d, gn), (r.dc() || !gL(r, new d3e())) && (V += i.a))), s = new fn(dn(Ht(d).a.Jc(), new Q())); xn(s); ) + for (i = e.b[d.c.p][d.p], d.k == Ai ? (i.b = 1, u(y(d, (te(), $t)), 12).j == (be(), gn) && (J += i.a)) : (Le = wc(d, (be(), an)), Le.dc() || !gL(Le, new w3e()) ? i.c = 1 : (r = wc(d, gn), (r.dc() || !gL(r, new b3e())) && (V += i.a))), s = new fn(dn(Ht(d).a.Jc(), new Y())); xn(s); ) c = u(pn(s), 17), V += i.c, J += i.b, De = c.d.i, VQ(e, i, De); - for (M = vo(I(T(To, 1), Ve, 20, 0, [wc(d, (be(), ln)), wc(d, Mn)])), we = new fn(new zX(M.a.length, M.a)); xn(we); ) + for (T = vo(I(S(To, 1), Ve, 20, 0, [wc(d, (be(), ln)), wc(d, Mn)])), we = new fn(new zX(T.a.length, T.a)); xn(we); ) X = u(pn(we), 12), D = u(y(X, (te(), ds)), 9), D && (V += i.c, J += i.b, VQ(e, i, D)); } for (v = new x(R); v.a < v.c.c.length; ) - for (d = u(A(v), 9), i = e.b[d.c.p][d.p], s = new fn(dn(Ht(d).a.Jc(), new Q())); xn(s); ) + for (d = u(A(v), 9), i = e.b[d.c.p][d.p], s = new fn(dn(Ht(d).a.Jc(), new Y())); xn(s); ) c = u(pn(s), 17), V += i.c, J += i.b, De = c.d.i, VQ(e, i, De); R.c.length = 0; } return n = V + J, E = n == 0 ? ii : (V - J) / n, E >= t; } function OOn(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke; + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke; for (R = e.a, J = 0, V = R.length; J < V; ++J) { for (D = R[J], l = pt, a = pt, v = new x(D.e); v.a < v.c.c.length; ) - g = u(A(v), 9), s = g.c ? dc(g.c.a, g, 0) : -1, s > 0 ? (d = u(pe(g.c.a, s - 1), 9), De = i2(e.b, g, d), E = g.n.b - g.d.d - (d.n.b + d.o.b + d.d.a + De)) : E = g.n.b - g.d.d, l = m.Math.min(E, l), s < g.c.a.c.length - 1 ? (d = u(pe(g.c.a, s + 1), 9), De = i2(e.b, g, d), M = d.n.b - d.d.d - (g.n.b + g.o.b + g.d.a + De)) : M = 2 * g.n.b, a = m.Math.min(M, a); + g = u(A(v), 9), s = g.c ? dc(g.c.a, g, 0) : -1, s > 0 ? (d = u(pe(g.c.a, s - 1), 9), De = i2(e.b, g, d), E = g.n.b - g.d.d - (d.n.b + d.o.b + d.d.a + De)) : E = g.n.b - g.d.d, l = m.Math.min(E, l), s < g.c.a.c.length - 1 ? (d = u(pe(g.c.a, s + 1), 9), De = i2(e.b, g, d), T = d.n.b - d.d.d - (g.n.b + g.o.b + g.d.a + De)) : T = 2 * g.n.b, a = m.Math.min(T, a); for (h = pt, c = !1, r = u(pe(D.e, 0), 9), Ke = new x(r.j); Ke.a < Ke.c.c.length; ) for (Le = u(A(Ke), 12), j = r.n.b + Le.n.b + Le.a.b, i = new x(Le.e); i.a < i.c.c.length; ) t = u(A(i), 17), X = t.c, n = X.i.n.b + X.n.b + X.a.b - j, m.Math.abs(n) < m.Math.abs(h) && m.Math.abs(n) < (n < 0 ? l : a) && (h = n, c = !0); @@ -30761,23 +30851,23 @@ function WDn() { } } function LOn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn; - for (R = n, D = new W0(), J = new W0(), a = K0(R, lJ), i = new HIe(e, t, D, J), PJe(i.a, i.b, i.c, i.d, a), h = (we = D.i, we || (D.i = new u2(D, D.c))), Le = h.Jc(); Le.Ob(); ) + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn; + for (R = n, D = new W0(), J = new W0(), a = K0(R, lJ), i = new qIe(e, t, D, J), OJe(i.a, i.b, i.c, i.d, a), h = (we = D.i, we || (D.i = new u2(D, D.c))), Le = h.Jc(); Le.Ob(); ) for (De = u(Le.Pb(), 170), r = u(Mt(D, De), 22), j = r.Jc(); j.Ob(); ) if (v = j.Pb(), V = u(b2(e.f, v), 170), V) f = (!De.e && (De.e = new Qe(Wt, De, 10, 9)), De.e), Dn(f, V); else - throw s = zl(R, Zh), g = YKe + v + ZKe + s, p = g + N5, $(new Lh(p)); + throw s = zl(R, Zh), g = ZKe + v + eVe + s, p = g + N5, $(new Lh(p)); for (l = (X = J.i, X || (J.i = new u2(J, J.c))), Ye = l.Jc(); Ye.Ob(); ) - for (Ke = u(Ye.Pb(), 170), c = u(Mt(J, Ke), 22), M = c.Jc(); M.Ob(); ) - if (E = M.Pb(), V = u(b2(e.f, E), 170), V) + for (Ke = u(Ye.Pb(), 170), c = u(Mt(J, Ke), 22), T = c.Jc(); T.Ob(); ) + if (E = T.Pb(), V = u(b2(e.f, E), 170), V) d = (!Ke.g && (Ke.g = new Qe(Wt, Ke, 9, 10)), Ke.g), Dn(d, V); else - throw s = zl(R, Zh), g = YKe + E + ZKe + s, p = g + N5, $(new Lh(p)); + throw s = zl(R, Zh), g = ZKe + E + eVe + s, p = g + N5, $(new Lh(p)); !t.b && (t.b = new Qe(Cn, t, 4, 7)), t.b.i != 0 && (!t.c && (t.c = new Qe(Cn, t, 5, 8)), t.c.i != 0) && (!t.b && (t.b = new Qe(Cn, t, 4, 7)), t.b.i <= 1 && (!t.c && (t.c = new Qe(Cn, t, 5, 8)), t.c.i <= 1)) && (!t.a && (t.a = new ne(Wt, t, 6, 6)), t.a).i == 1 && (yn = u(F((!t.a && (t.a = new ne(Wt, t, 6, 6)), t.a), 0), 170), !EF(yn) && !AF(yn) && (oM(yn, u(F((!t.b && (t.b = new Qe(Cn, t, 4, 7)), t.b), 0), 84)), fM(yn, u(F((!t.c && (t.c = new Qe(Cn, t, 5, 8)), t.c), 0), 84)))); } function DOn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; if (i = new le(), r = pt, c = pt, s = pt, t) for (r = e.f.a, j = new x(n.j); j.a < j.c.c.length; ) for (v = u(A(j), 12), h = new x(v.g); h.a < h.c.c.length; ) @@ -30787,26 +30877,26 @@ function WDn() { for (v = u(A(j), 12), h = new x(v.e); h.a < h.c.c.length; ) f = u(A(h), 17), f.a.b != 0 && (g = u(lf(f.a), 8), g.a > r && (c = g.a - r, s = pt, i.c.length = 0, r = g.a), g.a >= r && (sn(i.c, f), f.a.b > 1 && (s = m.Math.min(s, m.Math.abs(u(qc(f.a, f.a.b - 2), 8).b - g.b))))); if (i.c.length != 0 && c > n.o.a / 2 && s > n.o.b / 2) { - for (p = new Uc(), ac(p, n), Oi(p, (be(), ln)), p.n.a = n.o.a / 2, M = new Uc(), ac(M, n), Oi(M, Mn), M.n.a = n.o.a / 2, M.n.b = n.o.b, h = new x(i); h.a < h.c.c.length; ) - f = u(A(h), 17), t ? (l = u(BL(f.a), 8), E = f.a.b == 0 ? oh(f.d) : u(Ym(f.a), 8), E.b >= l.b ? br(f, M) : br(f, p)) : (l = u(Mwn(f.a), 8), E = f.a.b == 0 ? oh(f.c) : u(lf(f.a), 8), E.b >= l.b ? Ki(f, M) : Ki(f, p)), d = u(y(f, (ae(), Vr)), 78), d && Pw(d, l, !0); + for (p = new Uc(), ac(p, n), Oi(p, (be(), ln)), p.n.a = n.o.a / 2, T = new Uc(), ac(T, n), Oi(T, Mn), T.n.a = n.o.a / 2, T.n.b = n.o.b, h = new x(i); h.a < h.c.c.length; ) + f = u(A(h), 17), t ? (l = u(_L(f.a), 8), E = f.a.b == 0 ? oh(f.d) : u(Ym(f.a), 8), E.b >= l.b ? br(f, T) : br(f, p)) : (l = u(Mwn(f.a), 8), E = f.a.b == 0 ? oh(f.c) : u(lf(f.a), 8), E.b >= l.b ? Ki(f, T) : Ki(f, p)), d = u(y(f, (ae(), Vr)), 78), d && Pw(d, l, !0); n.n.a = r - n.o.a / 2; } } function NOn(e, n, t) { var i, r, c, s, f, h, l, a, d, g; for (f = Nn(e.b, 0); f.b != f.d.c; ) - if (s = u(Ln(f), 40), !_e(s.c, vS)) - for (l = hxn(s, e), n == (Mi(), Qr) || n == nc ? Di(l, new Hme()) : Di(l, new Xme()), h = l.c.length, i = 0; i < h; i++) - a = (qe(i, l.c.length), u(l.c[i], 65)).c, _e(a.c, "n11"), !(ve(me(y(s, (Bt(), eae)))) && !OFe((qe(i, l.c.length), u(l.c[i], 65)), e)) && (r = h == 1 ? 0.5 : (i + 1) / (h + 1), n == Qr ? (c = _(H(y(s, Yf))), g = s.e.b + s.f.b * r, Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(m.Math.min(c, s.e.a - t), g)), Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(s.e.a, g))) : n == nc ? (c = _(H(y(s, Tf))) + t, g = s.e.b + s.f.b * r, Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(c, g)), Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(s.e.a + s.f.a, g))) : n == Io ? (c = _(H(y(s, Yf))), d = s.e.a + s.f.a * r, Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(d, m.Math.min(s.e.b - t, c))), Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(d, s.e.b))) : (c = _(H(y(s, Tf))) + t, d = s.e.a + s.f.a * r, Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(d, c)), Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(d, s.e.b + s.f.b)))); + if (s = u(Ln(f), 40), !Be(s.c, vS)) + for (l = hxn(s, e), n == (Mi(), Qr) || n == nc ? Di(l, new qme()) : Di(l, new Kme()), h = l.c.length, i = 0; i < h; i++) + a = (qe(i, l.c.length), u(l.c[i], 65)).c, Be(a.c, "n11"), !(ve(me(y(s, (_t(), eae)))) && !LFe((qe(i, l.c.length), u(l.c[i], 65)), e)) && (r = h == 1 ? 0.5 : (i + 1) / (h + 1), n == Qr ? (c = B(H(y(s, Yf))), g = s.e.b + s.f.b * r, Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(m.Math.min(c, s.e.a - t), g)), Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(s.e.a, g))) : n == nc ? (c = B(H(y(s, Tf))) + t, g = s.e.b + s.f.b * r, Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(c, g)), Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(s.e.a + s.f.a, g))) : n == Io ? (c = B(H(y(s, Yf))), d = s.e.a + s.f.a * r, Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(d, m.Math.min(s.e.b - t, c))), Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(d, s.e.b))) : (c = B(H(y(s, Tf))) + t, d = s.e.a + s.f.a * r, Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(d, c)), Yg((qe(i, l.c.length), u(l.c[i], 65)).a, new ue(d, s.e.b + s.f.b)))); } function nj(e, n, t, i, r, c, s, f, h) { var l, a, d, g, p, v, j; - switch (p = t, a = new dh(h), Nl(a, (cn(), Ai)), K(a, (te(), Ife), s), K(a, (ae(), oi), (Ui(), Vc)), j = _(H(e.mf(wg))), K(a, wg, j), d = new Uc(), ac(d, a), n != Sh && n != ad || (i >= 0 ? p = j3(f) : p = A7(j3(f)), e.of(i4, p)), l = new er(), g = !1, e.nf(Db) ? (eK(l, u(e.mf(Db), 8)), g = !0) : Y1n(l, s.a / 2, s.b / 2), p.g) { + switch (p = t, a = new dh(h), Nl(a, (cn(), Ai)), K(a, (te(), Ife), s), K(a, (ae(), oi), (Ui(), Vc)), j = B(H(e.mf(wg))), K(a, wg, j), d = new Uc(), ac(d, a), n != Sh && n != ad || (i >= 0 ? p = j3(f) : p = A7(j3(f)), e.of(i4, p)), l = new er(), g = !1, e.nf(Db) ? (eK(l, u(e.mf(Db), 8)), g = !0) : Y1n(l, s.a / 2, s.b / 2), p.g) { case 4: - K(a, pc, (Bs(), ha)), K(a, HI, (Hd(), Y2)), a.o.b = s.b, j < 0 && (a.o.a = -j), Oi(d, (be(), gn)), g || (l.a = s.a), l.a -= s.a; + K(a, pc, (_s(), ha)), K(a, HI, (Hd(), Y2)), a.o.b = s.b, j < 0 && (a.o.a = -j), Oi(d, (be(), gn)), g || (l.a = s.a), l.a -= s.a; break; case 2: - K(a, pc, (Bs(), l0)), K(a, HI, (Hd(), V5)), a.o.b = s.b, j < 0 && (a.o.a = -j), Oi(d, (be(), an)), g || (l.a = 0); + K(a, pc, (_s(), l0)), K(a, HI, (Hd(), V5)), a.o.b = s.b, j < 0 && (a.o.a = -j), Oi(d, (be(), an)), g || (l.a = 0); break; case 1: K(a, f0, (Kl(), ep)), a.o.a = s.a, j < 0 && (a.o.b = -j), Oi(d, (be(), Mn)), g || (l.b = s.b), l.b -= s.b; @@ -30883,42 +30973,42 @@ function WDn() { }, 0); }; } - if (typeof document === SB && typeof self !== SB) { + if (typeof document === S_ && typeof self !== S_) { var t = new e(self); self.onmessage = t.saveDispatch; - } else typeof P !== SB && P.exports && (Object.defineProperty(L, "__esModule", { value: !0 }), P.exports = { default: n, Worker: n }); + } else typeof P !== S_ && P.exports && (Object.defineProperty(L, "__esModule", { value: !0 }), P.exports = { default: n, Worker: n }); } function UR(e, n, t, i, r, c, s) { - var f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni; + var f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni; for (j = 0, Ke = 0, l = new x(e.b); l.a < l.c.c.length; ) - h = u(A(l), 167), h.c && lze(h.c), j = m.Math.max(j, Zu(h)), Ke += Zu(h) * Ns(h); + h = u(A(l), 167), h.c && aze(h.c), j = m.Math.max(j, Zu(h)), Ke += Zu(h) * Ns(h); for (E = Ke / e.b.c.length, Le = Yyn(e.b, E), Ke += e.b.c.length * Le, j = m.Math.max(j, m.Math.sqrt(Ke * s)) + t.b, ut = t.b, ni = t.d, p = 0, d = t.b + t.c, De = new Dt(), rt(De, ie(0)), X = new Dt(), a = new Vi(e.b, 0), v = null, f = new le(); a.b < a.d.gc(); ) - h = (An(a.b < a.d.gc()), u(a.d.Xb(a.c = a.b++), 167)), yn = Zu(h), g = Ns(h), ut + yn > j && (c && (mr(X, p), mr(De, ie(a.b - 1)), he(e.d, v), f.c.length = 0), ut = t.b, ni += p + n, p = 0, d = m.Math.max(d, t.b + t.c + yn)), sn(f.c, h), LBe(h, ut, ni), d = m.Math.max(d, ut + yn + t.c), p = m.Math.max(p, g), ut += yn + n, v = h; + h = (An(a.b < a.d.gc()), u(a.d.Xb(a.c = a.b++), 167)), yn = Zu(h), g = Ns(h), ut + yn > j && (c && (mr(X, p), mr(De, ie(a.b - 1)), he(e.d, v), f.c.length = 0), ut = t.b, ni += p + n, p = 0, d = m.Math.max(d, t.b + t.c + yn)), sn(f.c, h), D_e(h, ut, ni), d = m.Math.max(d, ut + yn + t.c), p = m.Math.max(p, g), ut += yn + n, v = h; if (Ci(e.a, f), he(e.d, u(pe(f, f.c.length - 1), 167)), d = m.Math.max(d, i), Ye = ni + p + t.a, Ye < r && (p += r - Ye, Ye = r), c) for (ut = t.b, a = new Vi(e.b, 0), mr(De, ie(e.b.c.length)), we = Nn(De, 0), D = u(Ln(we), 15).a, mr(X, p), V = Nn(X, 0), J = 0; a.b < a.d.gc(); ) - a.b == D && (ut = t.b, J = _(H(Ln(V))), D = u(Ln(we), 15).a), h = (An(a.b < a.d.gc()), u(a.d.Xb(a.c = a.b++), 167)), aBe(h, J), a.b == D && (M = d - ut - t.c, R = Zu(h), dBe(h, M), LRe(h, (M - R) / 2, 0)), ut += Zu(h) + n; + a.b == D && (ut = t.b, J = B(H(Ln(V))), D = u(Ln(we), 15).a), h = (An(a.b < a.d.gc()), u(a.d.Xb(a.c = a.b++), 167)), d_e(h, J), a.b == D && (T = d - ut - t.c, R = Zu(h), b_e(h, T), DRe(h, (T - R) / 2, 0)), ut += Zu(h) + n; return new ue(d, Ye); } function ROn(e) { e.N || (e.N = !0, e.b = Ec(e, 0), ci(e.b, 0), ci(e.b, 1), ci(e.b, 2), e.bb = Ec(e, 1), ci(e.bb, 0), ci(e.bb, 1), e.fb = Ec(e, 2), ci(e.fb, 3), ci(e.fb, 4), qt(e.fb, 5), e.qb = Ec(e, 3), ci(e.qb, 0), qt(e.qb, 1), qt(e.qb, 2), ci(e.qb, 3), ci(e.qb, 4), qt(e.qb, 5), ci(e.qb, 6), e.a = wt(e, 4), e.c = wt(e, 5), e.d = wt(e, 6), e.e = wt(e, 7), e.f = wt(e, 8), e.g = wt(e, 9), e.i = wt(e, 10), e.j = wt(e, 11), e.k = wt(e, 12), e.n = wt(e, 13), e.o = wt(e, 14), e.p = wt(e, 15), e.q = wt(e, 16), e.s = wt(e, 17), e.r = wt(e, 18), e.t = wt(e, 19), e.u = wt(e, 20), e.v = wt(e, 21), e.w = wt(e, 22), e.B = wt(e, 23), e.A = wt(e, 24), e.C = wt(e, 25), e.D = wt(e, 26), e.F = wt(e, 27), e.G = wt(e, 28), e.H = wt(e, 29), e.J = wt(e, 30), e.I = wt(e, 31), e.K = wt(e, 32), e.M = wt(e, 33), e.L = wt(e, 34), e.P = wt(e, 35), e.Q = wt(e, 36), e.R = wt(e, 37), e.S = wt(e, 38), e.T = wt(e, 39), e.U = wt(e, 40), e.V = wt(e, 41), e.X = wt(e, 42), e.W = wt(e, 43), e.Y = wt(e, 44), e.Z = wt(e, 45), e.$ = wt(e, 46), e._ = wt(e, 47), e.ab = wt(e, 48), e.cb = wt(e, 49), e.db = wt(e, 50), e.eb = wt(e, 51), e.gb = wt(e, 52), e.hb = wt(e, 53), e.ib = wt(e, 54), e.jb = wt(e, 55), e.kb = wt(e, 56), e.lb = wt(e, 57), e.mb = wt(e, 58), e.nb = wt(e, 59), e.ob = wt(e, 60), e.pb = wt(e, 61)); } - function BOn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; + function _On(e, n) { + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; if (D = 0, n.f.a == 0) for (E = new x(e); E.a < E.c.c.length; ) v = u(A(E), 9), D = m.Math.max(D, v.n.a + v.o.a + v.d.c); else D = n.f.a - n.c.a; for (D -= n.c.a, j = new x(e); j.a < j.c.c.length; ) { - switch (v = u(A(j), 9), P4(v.n, D - v.o.a), KK(v.f), h_e(v), (v.q ? v.q : (ze(), ze(), El))._b((ae(), pg)) && P4(u(y(v, pg), 8), D - v.o.a), u(y(v, tl), 256).g) { + switch (v = u(A(j), 9), P4(v.n, D - v.o.a), KK(v.f), lBe(v), (v.q ? v.q : (ze(), ze(), El))._b((ae(), pg)) && P4(u(y(v, pg), 8), D - v.o.a), u(y(v, tl), 256).g) { case 1: K(v, tl, (wl(), xE)); break; case 2: K(v, tl, (wl(), AE)); } - for (M = v.o, J = new x(v.j); J.a < J.c.c.length; ) { - for (R = u(A(J), 12), P4(R.n, M.a - R.o.a), P4(R.a, R.o.a), Oi(R, JNe(R.j)), s = u(y(R, Za), 15), s && K(R, Za, ie(-s.a)), c = new x(R.g); c.a < c.c.c.length; ) { + for (T = v.o, J = new x(v.j); J.a < J.c.c.length; ) { + for (R = u(A(J), 12), P4(R.n, T.a - R.o.a), P4(R.a, R.o.a), Oi(R, GNe(R.j)), s = u(y(R, Za), 15), s && K(R, Za, ie(-s.a)), c = new x(R.g); c.a < c.c.c.length; ) { for (r = u(A(c), 17), i = Nn(r.a, 0); i.b != i.d.c; ) t = u(Ln(i), 8), t.a = D - t.a; if (l = u(y(r, Vr), 78), l) @@ -30930,27 +31020,27 @@ function WDn() { for (p = new x(R.f); p.a < p.c.c.length; ) a = u(A(p), 70), P4(a.n, R.o.a - a.o.a); } - for (v.k == (cn(), Ai) && (K(v, (te(), Sc), JNe(u(y(v, Sc), 64))), Gjn(v)), d = new x(v.b); d.a < d.c.c.length; ) - a = u(A(d), 70), h_e(a), P4(a.n, M.a - a.o.a); + for (v.k == (cn(), Ai) && (K(v, (te(), Sc), GNe(u(y(v, Sc), 64))), Gjn(v)), d = new x(v.b); d.a < d.c.c.length; ) + a = u(A(d), 70), lBe(a), P4(a.n, T.a - a.o.a); } } - function _On(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; + function BOn(e, n) { + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; if (D = 0, n.f.b == 0) for (E = new x(e); E.a < E.c.c.length; ) v = u(A(E), 9), D = m.Math.max(D, v.n.b + v.o.b + v.d.a); else D = n.f.b - n.c.b; for (D -= n.c.b, j = new x(e); j.a < j.c.c.length; ) { - switch (v = u(A(j), 9), C4(v.n, D - v.o.b), VK(v.f), l_e(v), (v.q ? v.q : (ze(), ze(), El))._b((ae(), pg)) && C4(u(y(v, pg), 8), D - v.o.b), u(y(v, tl), 256).g) { + switch (v = u(A(j), 9), C4(v.n, D - v.o.b), VK(v.f), aBe(v), (v.q ? v.q : (ze(), ze(), El))._b((ae(), pg)) && C4(u(y(v, pg), 8), D - v.o.b), u(y(v, tl), 256).g) { case 3: - K(v, tl, (wl(), _C)); + K(v, tl, (wl(), BC)); break; case 4: K(v, tl, (wl(), GC)); } - for (M = v.o, J = new x(v.j); J.a < J.c.c.length; ) { - for (R = u(A(J), 12), C4(R.n, M.b - R.o.b), C4(R.a, R.o.b), Oi(R, GNe(R.j)), s = u(y(R, Za), 15), s && K(R, Za, ie(-s.a)), c = new x(R.g); c.a < c.c.c.length; ) { + for (T = v.o, J = new x(v.j); J.a < J.c.c.length; ) { + for (R = u(A(J), 12), C4(R.n, T.b - R.o.b), C4(R.a, R.o.b), Oi(R, HNe(R.j)), s = u(y(R, Za), 15), s && K(R, Za, ie(-s.a)), c = new x(R.g); c.a < c.c.c.length; ) { for (r = u(A(c), 17), i = Nn(r.a, 0); i.b != i.d.c; ) t = u(Ln(i), 8), t.b = D - t.b; if (l = u(y(r, Vr), 78), l) @@ -30962,22 +31052,22 @@ function WDn() { for (p = new x(R.f); p.a < p.c.c.length; ) a = u(A(p), 70), C4(a.n, R.o.b - a.o.b); } - for (v.k == (cn(), Ai) && (K(v, (te(), Sc), GNe(u(y(v, Sc), 64))), y9n(v)), d = new x(v.b); d.a < d.c.c.length; ) - a = u(A(d), 70), l_e(a), C4(a.n, M.b - a.o.b); + for (v.k == (cn(), Ai) && (K(v, (te(), Sc), HNe(u(y(v, Sc), 64))), y9n(v)), d = new x(v.b); d.a < d.c.c.length; ) + a = u(A(d), 70), aBe(a), C4(a.n, T.b - a.o.b); } } function JOn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut; for (D = new Vi(e.b, 0), a = n.Jc(), v = 0, l = u(a.Pb(), 15).a, V = 0, t = new vi(), we = new ul(); D.b < D.d.gc(); ) { - for (M = (An(D.b < D.d.gc()), u(D.d.Xb(D.c = D.b++), 25)), J = new x(M.a); J.a < J.c.c.length; ) { - for (R = u(A(J), 9), p = new fn(dn(Ht(R).a.Jc(), new Q())); xn(p); ) + for (T = (An(D.b < D.d.gc()), u(D.d.Xb(D.c = D.b++), 25)), J = new x(T.a); J.a < J.c.c.length; ) { + for (R = u(A(J), 9), p = new fn(dn(Ht(R).a.Jc(), new Y())); xn(p); ) d = u(pn(p), 17), we.a.yc(d, we); - for (g = new fn(dn(bi(R).a.Jc(), new Q())); xn(g); ) + for (g = new fn(dn(bi(R).a.Jc(), new Y())); xn(g); ) d = u(pn(g), 17), we.a.Ac(d) != null; } if (v + 1 == l) { for (r = new Jc(e), fw(D, r), c = new Jc(e), fw(D, c), Le = we.a.ec().Jc(); Le.Ob(); ) - De = u(Le.Pb(), 17), t.a._b(De) || (++V, t.a.yc(De, t)), s = new dh(e), K(s, (ae(), oi), (Ui(), v4)), Ni(s, r), Nl(s, (cn(), Eh)), j = new Uc(), ac(j, s), Oi(j, (be(), an)), Ke = new Uc(), ac(Ke, s), Oi(Ke, gn), i = new dh(e), K(i, oi, v4), Ni(i, c), Nl(i, Eh), E = new Uc(), ac(E, i), Oi(E, an), Ye = new Uc(), ac(Ye, i), Oi(Ye, gn), X = new z0(), br(X, De.c), Ki(X, j), K(X, (te(), _t), u(y(De, _t), 15)), ut = new z0(), br(ut, Ke), Ki(ut, E), K(ut, _t, u(y(De, _t), 15)), br(De, Ye), f = new jQ(s, i, X, ut, De), K(s, Sb, f), K(i, Sb, f), yn = X.c.i, yn.k == Eh && (h = u(y(yn, Sb), 317), h.d = f, f.g = h); + De = u(Le.Pb(), 17), t.a._b(De) || (++V, t.a.yc(De, t)), s = new dh(e), K(s, (ae(), oi), (Ui(), v4)), Ni(s, r), Nl(s, (cn(), Eh)), j = new Uc(), ac(j, s), Oi(j, (be(), an)), Ke = new Uc(), ac(Ke, s), Oi(Ke, gn), i = new dh(e), K(i, oi, v4), Ni(i, c), Nl(i, Eh), E = new Uc(), ac(E, i), Oi(E, an), Ye = new Uc(), ac(Ye, i), Oi(Ye, gn), X = new z0(), br(X, De.c), Ki(X, j), K(X, (te(), Bt), u(y(De, Bt), 15)), ut = new z0(), br(ut, Ke), Ki(ut, E), K(ut, Bt, u(y(De, Bt), 15)), br(De, Ye), f = new jQ(s, i, X, ut, De), K(s, Sb, f), K(i, Sb, f), yn = X.c.i, yn.k == Eh && (h = u(y(yn, Sb), 317), h.d = f, f.g = h); if (a.Ob()) l = u(a.Pb(), 15).a; else @@ -30991,13 +31081,13 @@ function WDn() { var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E; for (j = new le(), g = new x(e.d.b); g.a < g.c.c.length; ) for (d = u(A(g), 25), v = new x(d.a); v.a < v.c.c.length; ) { - for (p = u(A(v), 9), r = u(rn(e.f, p), 60), h = new fn(dn(Ht(p).a.Jc(), new Q())); xn(h); ) + for (p = u(A(v), 9), r = u(rn(e.f, p), 60), h = new fn(dn(Ht(p).a.Jc(), new Y())); xn(h); ) if (s = u(pn(h), 17), i = Nn(s.a, 0), l = !0, a = null, i.b != i.d.c) { for (n = u(Ln(i), 8), t = null, s.c.j == (be(), ln) && (E = new x9(n, new ue(n.a, r.d.d), r, s), E.f.a = !0, E.a = s.c, sn(j.c, E)), s.c.j == Mn && (E = new x9(n, new ue(n.a, r.d.d + r.d.a), r, s), E.f.d = !0, E.a = s.c, sn(j.c, E)); i.b != i.d.c; ) t = u(Ln(i), 8), lY(n.b, t.b) || (a = new x9(n, t, null, s), sn(j.c, a), l && (l = !1, t.b < r.d.d ? a.f.a = !0 : t.b > r.d.d + r.d.a ? a.f.d = !0 : (a.f.d = !0, a.f.a = !0))), i.b != i.d.c && (n = t); a && (c = u(rn(e.f, s.d.i), 60), n.b < c.d.d ? a.f.a = !0 : n.b > c.d.d + c.d.a ? a.f.d = !0 : (a.f.d = !0, a.f.a = !0)); } - for (f = new fn(dn(bi(p).a.Jc(), new Q())); xn(f); ) + for (f = new fn(dn(bi(p).a.Jc(), new Y())); xn(f); ) s = u(pn(f), 17), s.a.b != 0 && (n = u(lf(s.a), 8), s.d.j == (be(), ln) && (E = new x9(n, new ue(n.a, r.d.d), r, s), E.f.a = !0, E.a = s.d, sn(j.c, E)), s.d.j == Mn && (E = new x9(n, new ue(n.a, r.d.d + r.d.a), r, s), E.f.d = !0, E.a = s.d, sn(j.c, E))); } return j; @@ -31030,7 +31120,7 @@ function WDn() { if (++a, n.indexOf("ull", a) == a) g.c.push(null); else - throw $(new fc(HKe)); + throw $(new fc(qKe)); a += 3; break; } @@ -31054,7 +31144,7 @@ function WDn() { if (++a, n.indexOf("ull", a) == a) he(h, new dx(i, null)); else - throw $(new fc(HKe)); + throw $(new fc(qKe)); l = a + 3; break; } @@ -31104,7 +31194,7 @@ function WDn() { case 117: case 118: case 120: - t = e.am(), t < xr ? c = (kt(), kt(), new fl(0, t)) : c = DSe(OZ(t)); + t = e.am(), t < xr ? c = (kt(), kt(), new fl(0, t)) : c = NSe(OZ(t)); break; case 99: return e.mm(); @@ -31133,13 +31223,13 @@ function WDn() { if (c = Dne(e, e.a), !c) throw $(new Kn(Yn((Un(), gJ)))); break; default: - c = XTe(e.a); + c = KTe(e.a); } vt(e); break; case 0: if (e.a == 93 || e.a == 123 || e.a == 125) throw $(new Kn(Yn((Un(), Oue)))); - c = XTe(e.a), i = e.a, vt(e), (i & 64512) == aj && e.c == 0 && (e.a & 64512) == 56320 && (r = W(Oo, Xh, 30, 2, 15, 1), r[0] = i & Ti, r[1] = e.a & Ti, c = nD(DSe(Gh(r, 0, r.length)), 0), vt(e)); + c = KTe(e.a), i = e.a, vt(e), (i & 64512) == aj && e.c == 0 && (e.a & 64512) == 56320 && (r = W(Oo, Xh, 30, 2, 15, 1), r[0] = i & Ti, r[1] = e.a & Ti, c = nD(NSe(Gh(r, 0, r.length)), 0), vt(e)); break; default: throw $(new Kn(Yn((Un(), Oue)))); @@ -31147,7 +31237,7 @@ function WDn() { return c; } function UOn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye; for (Le = new Dt(), X = new Dt(), E = -1, h = new x(e); h.a < h.c.c.length; ) { for (s = u(A(h), 132), s.s = E--, a = 0, R = 0, c = new x(s.t); c.a < c.c.c.length; ) i = u(A(c), 273), R += i.c; @@ -31155,9 +31245,9 @@ function WDn() { i = u(A(r), 273), a += i.c; s.n = a, s.u = R, R == 0 ? ti(X, s, X.c.b, X.c) : a == 0 && ti(Le, s, Le.c.b, Le.c); } - for (Ye = C$(e), d = e.c.length, j = d + 1, M = d - 1, p = new le(); Ye.a.gc() != 0; ) { + for (Ye = C$(e), d = e.c.length, j = d + 1, T = d - 1, p = new le(); Ye.a.gc() != 0; ) { for (; X.b != 0; ) - V = (An(X.b != 0), u(mo(X, X.a.a), 132)), Ye.a.Ac(V) != null, V.s = M--, tte(V, Le, X); + V = (An(X.b != 0), u(mo(X, X.a.a), 132)), Ye.a.Ac(V) != null, V.s = T--, tte(V, Le, X); for (; Le.b != 0; ) we = (An(Le.b != 0), u(mo(Le, Le.a.a), 132)), Ye.a.Ac(we) != null, we.s = j++, tte(we, Le, X); for (v = Yi, l = Ye.a.ec().Jc(); l.Ob(); ) @@ -31170,8 +31260,8 @@ function WDn() { for (we = u(A(De), 132), t = new Vi(we.t, 0); t.b < t.d.gc(); ) i = (An(t.b < t.d.gc()), u(t.d.Xb(t.c = t.b++), 273)), Ke = i.b, we.s > Ke.s && (vs(t), Du(Ke.i, i), i.c > 0 && (i.a = Ke, he(Ke.t, i), i.b = we, he(we.i, i))); } - function Fze(e, n, t, i, r) { - var c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye; + function Rze(e, n, t, i, r) { + var c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye; for (j = new bu(n.b), J = new bu(n.b), g = new bu(n.b), De = new bu(n.b), E = new bu(n.b), we = Nn(n, 0); we.b != we.d.c; ) for (V = u(Ln(we), 12), f = new x(V.g); f.a < f.c.c.length; ) if (c = u(A(f), 17), c.c.i == c.d.i) { @@ -31188,7 +31278,7 @@ function WDn() { for (s = new x(De); s.a < s.c.c.length; ) c = u(A(s), 17), Le = new dh(e), Nl(Le, (cn(), su)), K(Le, (ae(), oi), (Ui(), Vc)), K(Le, (te(), $t), c), Ke = new Uc(), K(Ke, $t, c.d), Oi(Ke, (be(), an)), ac(Ke, Le), Ye = new Uc(), K(Ye, $t, c.c), Oi(Ye, gn), ac(Ye, Le), K(c.c, ds, Le), K(c.d, ds, Le), br(c, null), Ki(c, null), sn(t.c, Le), K(Le, GI, ie(2)); for (X = Nn(n, 0); X.b != X.d.c; ) - V = u(Ln(X), 12), l = V.e.c.length > 0, M = V.g.c.length > 0, l && M ? sn(g.c, V) : l ? sn(j.c, V) : M && sn(J.c, V); + V = u(Ln(X), 12), l = V.e.c.length > 0, T = V.g.c.length > 0, l && T ? sn(g.c, V) : l ? sn(j.c, V) : T && sn(J.c, V); for (v = new x(j); v.a < v.c.c.length; ) p = u(A(v), 12), he(r, Kte(e, p, null, t)); for (R = new x(J); R.a < R.c.c.length; ) @@ -31197,87 +31287,87 @@ function WDn() { a = u(A(d), 12), he(r, Kte(e, a, a, t)); } function zR(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; for (g = ii, p = ii, a = 0, d = 0, h = new le(), f = new kn((!e.b && (e.b = new ne(xi, e, 12, 3)), e.b)); f.e != f.i.gc(); ) - c = u(En(f), 85), h = vo(I(T(To, 1), Ve, 20, 0, [h, (!c.n && (c.n = new ne(vc, c, 1, 7)), c.n)])); - for (R = ll(vo(I(T(To, 1), Ve, 20, 0, [(!e.n && (e.n = new ne(vc, e, 1, 7)), e.n), (!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a), h]))); xn(R); ) + c = u(En(f), 85), h = vo(I(S(To, 1), Ve, 20, 0, [h, (!c.n && (c.n = new ne(vc, c, 1, 7)), c.n)])); + for (R = ll(vo(I(S(To, 1), Ve, 20, 0, [(!e.n && (e.n = new ne(vc, e, 1, 7)), e.n), (!e.a && (e.a = new ne(Qn, e, 10, 11)), e.a), h]))); xn(R); ) D = u(pn(R), 276), l = u(D.mf((tt(), d4)), 140), g > D.mh() - l.b && (g = D.mh() - l.b), p > D.nh() - l.d && (p = D.nh() - l.d), a < D.mh() + D.lh() + l.c && (a = D.mh() + D.lh() + l.c), d < D.nh() + D.kh() + l.a && (d = D.nh() + D.kh() + l.a); for (s = new kn((!e.b && (e.b = new ne(xi, e, 12, 3)), e.b)); s.e != s.i.gc(); ) - for (c = u(En(s), 85), M = new kn((!c.a && (c.a = new ne(Wt, c, 6, 6)), c.a)); M.e != M.i.gc(); ) - for (E = u(En(M), 170), v = E.j, i = E.b, j = E.k, r = E.c, g = m.Math.min(g, v), g = m.Math.min(g, i), a = m.Math.max(a, v), a = m.Math.max(a, i), p = m.Math.min(p, j), p = m.Math.min(p, r), d = m.Math.max(d, j), d = m.Math.max(d, r), t = new kn((!E.a && (E.a = new $i(fo, E, 5)), E.a)); t.e != t.i.gc(); ) + for (c = u(En(s), 85), T = new kn((!c.a && (c.a = new ne(Wt, c, 6, 6)), c.a)); T.e != T.i.gc(); ) + for (E = u(En(T), 170), v = E.j, i = E.b, j = E.k, r = E.c, g = m.Math.min(g, v), g = m.Math.min(g, i), a = m.Math.max(a, v), a = m.Math.max(a, i), p = m.Math.min(p, j), p = m.Math.min(p, r), d = m.Math.max(d, j), d = m.Math.max(d, r), t = new kn((!E.a && (E.a = new $i(fo, E, 5)), E.a)); t.e != t.i.gc(); ) n = u(En(t), 372), g = m.Math.min(g, n.a), a = m.Math.max(a, n.a), p = m.Math.min(p, n.b), d = m.Math.max(d, n.b); Pt(e, (tt(), xg), a - g), Pt(e, Ag, d - p); } - function Rze(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni; - for (p = u(y(e, (I1(), Z3)), 26), R = pt, J = pt, M = Yi, D = Yi, X = new x(e.e); X.a < X.c.c.length; ) - V = u(A(X), 155), Ye = V.d, yn = V.e, R = m.Math.min(R, Ye.a - yn.a / 2), J = m.Math.min(J, Ye.b - yn.b / 2), M = m.Math.max(M, Ye.a + yn.a / 2), D = m.Math.max(D, Ye.b + yn.b / 2); + function _ze(e) { + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni; + for (p = u(y(e, (I1(), Z3)), 26), R = pt, J = pt, T = Yi, D = Yi, X = new x(e.e); X.a < X.c.c.length; ) + V = u(A(X), 155), Ye = V.d, yn = V.e, R = m.Math.min(R, Ye.a - yn.a / 2), J = m.Math.min(J, Ye.b - yn.b / 2), T = m.Math.max(T, Ye.a + yn.a / 2), D = m.Math.max(D, Ye.b + yn.b / 2); for (t = new x(e.b); t.a < t.c.c.length; ) - n = u(A(t), 251), Ye = n.d, yn = n.e, R = m.Math.min(R, Ye.a - yn.a / 2), J = m.Math.min(J, Ye.b - yn.b / 2), M = m.Math.max(M, Ye.a + yn.a / 2), D = m.Math.max(D, Ye.b + yn.b / 2); - for (Ke = u(re(p, (jf(), bZe)), 104), Le = new ue(Ke.b - R, Ke.d - J), l = new x(e.e); l.a < l.c.c.length; ) + n = u(A(t), 251), Ye = n.d, yn = n.e, R = m.Math.min(R, Ye.a - yn.a / 2), J = m.Math.min(J, Ye.b - yn.b / 2), T = m.Math.max(T, Ye.a + yn.a / 2), D = m.Math.max(D, Ye.b + yn.b / 2); + for (Ke = u(re(p, (jf(), wZe)), 104), Le = new ue(Ke.b - R, Ke.d - J), l = new x(e.e); l.a < l.c.c.length; ) h = u(A(l), 155), De = y(h, Z3), N(De, 206) && (j = u(De, 26), we = At(new vr(h.d), Le), ao(j, we.a - j.g / 2, we.b - j.f / 2)); for (c = new x(e.c); c.a < c.c.c.length; ) - r = u(A(c), 291), d = u(y(r, Z3), 85), g = ET(d), ut = new vr(mY(r)), At(ut, Le), by(g, ut.a, ut.b), wu(r.a, new RAe(Le, g)), i = new vr(vY(r)), At(i, Le), dy(g, i.a, i.b); + r = u(A(c), 291), d = u(y(r, Z3), 85), g = ET(d), ut = new vr(mY(r)), At(ut, Le), by(g, ut.a, ut.b), wu(r.a, new _Ae(Le, g)), i = new vr(vY(r)), At(i, Le), dy(g, i.a, i.b); for (f = new x(e.d); f.a < f.c.c.length; ) s = u(A(f), 445), v = u(y(s, Z3), 157), E = At(new vr(s.d), Le), ao(v, E.a, E.b); - ni = M - R + (Ke.b + Ke.c), a = D - J + (Ke.d + Ke.a), ve(me(re(p, (tt(), $g)))) || ab(p, ni, a, !1, !0), Pt(p, xg, ni - (Ke.b + Ke.c)), Pt(p, Ag, a - (Ke.d + Ke.a)); + ni = T - R + (Ke.b + Ke.c), a = D - J + (Ke.d + Ke.a), ve(me(re(p, (tt(), $g)))) || ab(p, ni, a, !1, !0), Pt(p, xg, ni - (Ke.b + Ke.c)), Pt(p, Ag, a - (Ke.d + Ke.a)); } function zOn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R; for (t.Tg("Depth first model order layering", 1), e.d = n, E = new le(), j = new x(e.d.a); j.a < j.c.c.length; ) p = u(A(j), 9), p.k == (cn(), si) && sn(E.c, p); - for (ze(), Di(E, new f3e()), s = !0, e.b = new Jc(e.d), e.a = null, he(e.d.b, e.b), e.b.p = 0, e.c = 0, e.f = new Dt(), v = new x(E); v.a < v.c.c.length; ) + for (ze(), Di(E, new h3e()), s = !0, e.b = new Jc(e.d), e.a = null, he(e.d.b, e.b), e.b.p = 0, e.c = 0, e.f = new Dt(), v = new x(E); v.a < v.c.c.length; ) if (p = u(A(v), 9), s) Ni(p, e.b), s = !1; else if (cIn(e, p)) - if (g = e.c, g = RBe(g, p), i = g + 2, a = g - e.c, e.f.b == 0) + if (g = e.c, g = __e(g, p), i = g + 2, a = g - e.c, e.f.b == 0) pte(e, i, p); else if (a > 0) { for (R = Nn(e.f, 0); R.b != R.d.c; ) D = u(Ln(R), 9), D.p += g - e.e; mne(e), Fs(e.f), pte(e, i, p); } else { - for (rt(e.f, p), p.p = i, e.e = m.Math.max(e.e, i), c = new fn(dn(bi(p).a.Jc(), new Q())); xn(c); ) - r = u(pn(c), 17), !r.c.i.c && r.c.i.k == (cn(), _c) && (rt(e.f, r.c.i), r.c.i.p = i - 1); + for (rt(e.f, p), p.p = i, e.e = m.Math.max(e.e, i), c = new fn(dn(bi(p).a.Jc(), new Y())); xn(c); ) + r = u(pn(c), 17), !r.c.i.c && r.c.i.k == (cn(), Bc) && (rt(e.f, r.c.i), r.c.i.p = i - 1); e.c = i; } else - mne(e), Fs(e.f), i = 0, xn(new fn(dn(bi(p).a.Jc(), new Q()))) ? (g = 0, g = RBe(g, p), i = g + 2, pte(e, i, p)) : (rt(e.f, p), p.p = 0, e.e = m.Math.max(e.e, 0), e.b = u(pe(e.d.b, 0), 25), e.c = 0); - for (e.f.b == 0 || mne(e), e.d.a.c.length = 0, M = new le(), l = new x(e.d.b); l.a < l.c.c.length; ) - f = u(A(l), 25), f.a.c.length == 0 && sn(M.c, f); - for (PZ(e.d.b, M), d = 0, h = new x(e.d.b); h.a < h.c.c.length; ) + mne(e), Fs(e.f), i = 0, xn(new fn(dn(bi(p).a.Jc(), new Y()))) ? (g = 0, g = __e(g, p), i = g + 2, pte(e, i, p)) : (rt(e.f, p), p.p = 0, e.e = m.Math.max(e.e, 0), e.b = u(pe(e.d.b, 0), 25), e.c = 0); + for (e.f.b == 0 || mne(e), e.d.a.c.length = 0, T = new le(), l = new x(e.d.b); l.a < l.c.c.length; ) + f = u(A(l), 25), f.a.c.length == 0 && sn(T.c, f); + for (PZ(e.d.b, T), d = 0, h = new x(e.d.b); h.a < h.c.c.length; ) f = u(A(h), 25), f.p = d, ++d; t.Ug(); } function WOn(e, n, t) { var i, r, c, s, f, h, l, a, d; - if (t.Tg("Network simplex node placement", 1), e.e = n, e.n = u(y(n, (te(), ip)), 316), cCn(e), _7n(e), fi(cc(new Ge(null, new He(e.e.b, 16)), new E3e()), new bye(e)), fi(mt(cc(mt(cc(new Ge(null, new He(e.e.b, 16)), new N3e()), new F3e()), new R3e()), new B3e()), new dye(e)), ve(me(y(e.e, (ae(), Dk)))) && (s = t.dh(1), s.Tg("Straight Edges Pre-Processing", 1), SPn(e), s.Ug()), $8n(e.f), c = u(y(n, Rk), 15).a * e.f.a.c.length, AR(mW(vW(LL(e.f), c), !1), t.dh(1)), e.d.a.gc() != 0) { - for (s = t.dh(1), s.Tg("Flexible Where Space Processing", 1), f = u(Ls(t3(du(new Ge(null, new He(e.f.a, 16)), new A3e()), new m3e())), 15).a, h = u(Ls(dw(du(new Ge(null, new He(e.f.a, 16)), new x3e()), new v3e())), 15).a, l = h - f, a = F0(new jd(), e.f), d = F0(new jd(), e.f), yf(ff(of(sf(hf(new Ro(), 2e4), l), a), d)), fi(mt(mt(iD(e.i), new $3e()), new M3e()), new DIe(f, a, l, d)), r = e.d.a.ec().Jc(); r.Ob(); ) + if (t.Tg("Network simplex node placement", 1), e.e = n, e.n = u(y(n, (te(), ip)), 316), cCn(e), B7n(e), fi(cc(new Ge(null, new He(e.e.b, 16)), new A3e()), new wye(e)), fi(mt(cc(mt(cc(new Ge(null, new He(e.e.b, 16)), new F3e()), new R3e()), new _3e()), new B3e()), new bye(e)), ve(me(y(e.e, (ae(), Dk)))) && (s = t.dh(1), s.Tg("Straight Edges Pre-Processing", 1), SPn(e), s.Ug()), $8n(e.f), c = u(y(n, Rk), 15).a * e.f.a.c.length, AR(mW(vW(LL(e.f), c), !1), t.dh(1)), e.d.a.gc() != 0) { + for (s = t.dh(1), s.Tg("Flexible Where Space Processing", 1), f = u(Ls(t3(du(new Ge(null, new He(e.f.a, 16)), new x3e()), new v3e())), 15).a, h = u(Ls(dw(du(new Ge(null, new He(e.f.a, 16)), new $3e()), new k3e())), 15).a, l = h - f, a = F0(new jd(), e.f), d = F0(new jd(), e.f), yf(ff(of(sf(hf(new Ro(), 2e4), l), a), d)), fi(mt(mt(iD(e.i), new M3e()), new T3e()), new NIe(f, a, l, d)), r = e.d.a.ec().Jc(); r.Ob(); ) i = u(r.Pb(), 217), i.g = 1; AR(mW(vW(LL(e.f), c), !1), s.dh(1)), s.Ug(); } ve(me(y(n, Dk))) && (s = t.dh(1), s.Tg("Straight Edges Post-Processing", 1), MEn(e), s.Ug()), lPn(e), e.e = null, e.f = null, e.i = null, e.c = null, Fc(e.k), e.j = null, e.a = null, e.o = null, e.d.a.$b(), t.Ug(); } function Bze(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke; - return d = DSn(Ou(e, (be(), Ih)), n), v = x2(Ou(e, Of), n), J = x2(Ou(e, so), n), De = eT(Ou(e, Zo), n), g = eT(Ou(e, Co), n), D = x2(Ou(e, Lf), n), j = x2(Ou(e, ws), n), X = x2(Ou(e, oo), n), V = x2(Ou(e, Po), n), Le = eT(Ou(e, Su), n), M = x2(Ou(e, Hu), n), R = x2(Ou(e, gs), n), we = x2(Ou(e, Gu), n), Ke = eT(Ou(e, qu), n), p = eT(Ou(e, cs), n), E = x2(Ou(e, fu), n), t = d2(I(T(Xi, 1), Gr, 30, 15, [D.a, De.a, X.a, Ke.a])), i = d2(I(T(Xi, 1), Gr, 30, 15, [v.a, d.a, J.a, E.a])), r = M.a, c = d2(I(T(Xi, 1), Gr, 30, 15, [j.a, g.a, V.a, p.a])), l = d2(I(T(Xi, 1), Gr, 30, 15, [D.b, v.b, j.b, R.b])), h = d2(I(T(Xi, 1), Gr, 30, 15, [De.b, d.b, g.b, E.b])), a = Le.b, f = d2(I(T(Xi, 1), Gr, 30, 15, [X.b, J.b, V.b, we.b])), Da(Ou(e, Ih), t + r, l + a), Da(Ou(e, fu), t + r, l + a), Da(Ou(e, Of), t + r, 0), Da(Ou(e, so), t + r, l + a + h), Da(Ou(e, Zo), 0, l + a), Da(Ou(e, Co), t + r + i, l + a), Da(Ou(e, ws), t + r + i, 0), Da(Ou(e, oo), 0, l + a + h), Da(Ou(e, Po), t + r + i, l + a + h), Da(Ou(e, Su), 0, l), Da(Ou(e, Hu), t, 0), Da(Ou(e, Gu), 0, l + a + h), Da(Ou(e, cs), t + r + i, 0), s = new er(), s.a = d2(I(T(Xi, 1), Gr, 30, 15, [t + i + r + c, Le.a, R.a, we.a])), s.b = d2(I(T(Xi, 1), Gr, 30, 15, [l + h + a + f, M.b, Ke.b, p.b])), s; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke; + return d = DSn(Ou(e, (be(), Ih)), n), v = x2(Ou(e, Of), n), J = x2(Ou(e, so), n), De = eT(Ou(e, Zo), n), g = eT(Ou(e, Co), n), D = x2(Ou(e, Lf), n), j = x2(Ou(e, ws), n), X = x2(Ou(e, oo), n), V = x2(Ou(e, Po), n), Le = eT(Ou(e, Su), n), T = x2(Ou(e, Hu), n), R = x2(Ou(e, gs), n), we = x2(Ou(e, Gu), n), Ke = eT(Ou(e, qu), n), p = eT(Ou(e, cs), n), E = x2(Ou(e, fu), n), t = d2(I(S(Xi, 1), Gr, 30, 15, [D.a, De.a, X.a, Ke.a])), i = d2(I(S(Xi, 1), Gr, 30, 15, [v.a, d.a, J.a, E.a])), r = T.a, c = d2(I(S(Xi, 1), Gr, 30, 15, [j.a, g.a, V.a, p.a])), l = d2(I(S(Xi, 1), Gr, 30, 15, [D.b, v.b, j.b, R.b])), h = d2(I(S(Xi, 1), Gr, 30, 15, [De.b, d.b, g.b, E.b])), a = Le.b, f = d2(I(S(Xi, 1), Gr, 30, 15, [X.b, J.b, V.b, we.b])), Da(Ou(e, Ih), t + r, l + a), Da(Ou(e, fu), t + r, l + a), Da(Ou(e, Of), t + r, 0), Da(Ou(e, so), t + r, l + a + h), Da(Ou(e, Zo), 0, l + a), Da(Ou(e, Co), t + r + i, l + a), Da(Ou(e, ws), t + r + i, 0), Da(Ou(e, oo), 0, l + a + h), Da(Ou(e, Po), t + r + i, l + a + h), Da(Ou(e, Su), 0, l), Da(Ou(e, Hu), t, 0), Da(Ou(e, Gu), 0, l + a + h), Da(Ou(e, cs), t + r + i, 0), s = new er(), s.a = d2(I(S(Xi, 1), Gr, 30, 15, [t + i + r + c, Le.a, R.a, we.a])), s.b = d2(I(S(Xi, 1), Gr, 30, 15, [l + h + a + f, T.b, Ke.b, p.b])), s; } function XOn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni, ps, Yr; - if (Ke = null, yn = n, Ye = uNe(e, KPe(t), yn), jv(Ye, zl(yn, Zh)), ut = u(b2(e.n, I3(Ul(yn, rJ))), 26), g = Ul(yn, "sourcePort"), i = null, g && (i = I3(g)), ni = u(b2(e.p, i), 125), !ut) + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni, ps, Yr; + if (Ke = null, yn = n, Ye = sNe(e, VPe(t), yn), jv(Ye, zl(yn, Zh)), ut = u(b2(e.n, I3(Ul(yn, rJ))), 26), g = Ul(yn, "sourcePort"), i = null, g && (i = I3(g)), ni = u(b2(e.p, i), 125), !ut) throw f = Gv(yn), v = "An edge must have a source node (edge id: '" + f, j = v + N5, $(new Lh(j)); if (ni && !Gc(sh(ni), ut)) - throw h = zl(yn, Zh), E = "The source port of an edge must be a port of the edge's source node (edge id: '" + h, M = E + N5, $(new Lh(M)); + throw h = zl(yn, Zh), E = "The source port of an edge must be a port of the edge's source node (edge id: '" + h, T = E + N5, $(new Lh(T)); if (De = (!Ye.b && (Ye.b = new Qe(Cn, Ye, 4, 7)), Ye.b), c = null, ni ? c = ni : c = ut, Dn(De, c), ps = u(b2(e.n, I3(Ul(yn, Cue))), 26), p = Ul(yn, "targetPort"), r = null, p && (r = I3(p)), Yr = u(b2(e.p, r), 125), !ps) throw d = Gv(yn), D = "An edge must have a target node (edge id: '" + d, R = D + N5, $(new Lh(R)); if (Yr && !Gc(sh(Yr), ps)) throw l = zl(yn, Zh), J = "The target port of an edge must be a port of the edge's target node (edge id: '" + l, V = J + N5, $(new Lh(V)); if (Le = (!Ye.c && (Ye.c = new Qe(Cn, Ye, 5, 8)), Ye.c), s = null, Yr ? s = Yr : s = ps, Dn(Le, s), (!Ye.b && (Ye.b = new Qe(Cn, Ye, 4, 7)), Ye.b).i == 0 || (!Ye.c && (Ye.c = new Qe(Cn, Ye, 5, 8)), Ye.c).i == 0) - throw a = zl(yn, Zh), X = QKe + a, we = X + N5, $(new Lh(we)); - return sT(yn, Ye), kxn(yn, Ye), Ke = BN(e, yn, Ye), Ke; + throw a = zl(yn, Zh), X = YKe + a, we = X + N5, $(new Lh(we)); + return sT(yn, Ye), kxn(yn, Ye), Ke = _N(e, yn, Ye), Ke; } - function _ze(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke; + function Jze(e) { + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke; for (D = new ue(ii, ii), n = new ue(Ri, Ri), De = new x(e); De.a < De.c.c.length; ) we = u(A(De), 8), D.a = m.Math.min(D.a, we.a), D.b = m.Math.min(D.b, we.b), n.a = m.Math.max(n.a, we.a), n.b = m.Math.max(n.b, we.b); for (g = new ue(n.a - D.a, n.b - D.b), l = new ue(D.a - 50, D.b - g.a - 50), a = new ue(D.a - 50, n.b + g.a + 50), d = new ue(n.a + g.b / 2 + 50, D.b + g.b / 2), p = new Wte(l, a, d), X = new vi(), c = new le(), t = new le(), X.a.yc(p, X), Ke = new x(e); Ke.a < Ke.c.c.length; ) { @@ -31289,15 +31379,15 @@ function WDn() { f = u(A(h), 321), f != R && (Gc(v, pe(f.e, 0)) || Gc(v, pe(f.e, 1)) || Gc(v, pe(f.e, 2))) && (s = !1); s && sn(t.c, v); } - for (hJe(X, c), fr(X, new Cbe()), j = new x(t); j.a < j.c.c.length; ) + for (lJe(X, c), fr(X, new Pbe()), j = new x(t); j.a < j.c.c.length; ) v = u(A(j), 177), ki(X, new Wte(Le, v.a, v.b)); } - for (M = new vi(), fr(X, new Gke(M)), r = M.a.ec().Jc(); r.Ob(); ) + for (T = new vi(), fr(X, new Hke(T)), r = T.a.ec().Jc(); r.Ob(); ) v = u(r.Pb(), 177), (z$(p, v.a) || z$(p, v.b)) && r.Qb(); - return fr(M, new Pbe()), M; + return fr(T, new Obe()), T; } function Rc() { - Rc = G, dEe(), von = Gi.a, u(F(ee(Gi.a), 0), 19), pon = Gi.f, u(F(ee(Gi.f), 0), 19), u(F(ee(Gi.f), 1), 38), mon = Gi.n, u(F(ee(Gi.n), 0), 38), u(F(ee(Gi.n), 1), 38), u(F(ee(Gi.n), 2), 38), u(F(ee(Gi.n), 3), 38), v0e = Gi.g, u(F(ee(Gi.g), 0), 19), u(F(ee(Gi.g), 1), 38), gon = Gi.c, u(F(ee(Gi.c), 0), 19), u(F(ee(Gi.c), 1), 19), k0e = Gi.i, u(F(ee(Gi.i), 0), 19), u(F(ee(Gi.i), 1), 19), u(F(ee(Gi.i), 2), 19), u(F(ee(Gi.i), 3), 19), u(F(ee(Gi.i), 4), 38), y0e = Gi.j, u(F(ee(Gi.j), 0), 19), m0e = Gi.d, u(F(ee(Gi.d), 0), 19), u(F(ee(Gi.d), 1), 19), u(F(ee(Gi.d), 2), 19), u(F(ee(Gi.d), 3), 19), u(F(ee(Gi.d), 4), 38), u(F(ee(Gi.d), 5), 38), u(F(ee(Gi.d), 6), 38), u(F(ee(Gi.d), 7), 38), won = Gi.b, u(F(ee(Gi.b), 0), 38), u(F(ee(Gi.b), 1), 38), nP = Gi.e, u(F(ee(Gi.e), 0), 38), u(F(ee(Gi.e), 1), 38), u(F(ee(Gi.e), 2), 38), u(F(ee(Gi.e), 3), 38), u(F(ee(Gi.e), 4), 19), u(F(ee(Gi.e), 5), 19), u(F(ee(Gi.e), 6), 19), u(F(ee(Gi.e), 7), 19), u(F(ee(Gi.e), 8), 19), u(F(ee(Gi.e), 9), 19), u(F(ee(Gi.e), 10), 38), Cl = Gi.k, u(F(ee(Gi.k), 0), 38), u(F(ee(Gi.k), 1), 38); + Rc = G, bEe(), kon = Gi.a, u(F(ee(Gi.a), 0), 19), mon = Gi.f, u(F(ee(Gi.f), 0), 19), u(F(ee(Gi.f), 1), 38), von = Gi.n, u(F(ee(Gi.n), 0), 38), u(F(ee(Gi.n), 1), 38), u(F(ee(Gi.n), 2), 38), u(F(ee(Gi.n), 3), 38), v0e = Gi.g, u(F(ee(Gi.g), 0), 19), u(F(ee(Gi.g), 1), 38), pon = Gi.c, u(F(ee(Gi.c), 0), 19), u(F(ee(Gi.c), 1), 19), k0e = Gi.i, u(F(ee(Gi.i), 0), 19), u(F(ee(Gi.i), 1), 19), u(F(ee(Gi.i), 2), 19), u(F(ee(Gi.i), 3), 19), u(F(ee(Gi.i), 4), 38), y0e = Gi.j, u(F(ee(Gi.j), 0), 19), m0e = Gi.d, u(F(ee(Gi.d), 0), 19), u(F(ee(Gi.d), 1), 19), u(F(ee(Gi.d), 2), 19), u(F(ee(Gi.d), 3), 19), u(F(ee(Gi.d), 4), 38), u(F(ee(Gi.d), 5), 38), u(F(ee(Gi.d), 6), 38), u(F(ee(Gi.d), 7), 38), gon = Gi.b, u(F(ee(Gi.b), 0), 38), u(F(ee(Gi.b), 1), 38), nP = Gi.e, u(F(ee(Gi.e), 0), 38), u(F(ee(Gi.e), 1), 38), u(F(ee(Gi.e), 2), 38), u(F(ee(Gi.e), 3), 38), u(F(ee(Gi.e), 4), 19), u(F(ee(Gi.e), 5), 19), u(F(ee(Gi.e), 6), 19), u(F(ee(Gi.e), 7), 19), u(F(ee(Gi.e), 8), 19), u(F(ee(Gi.e), 9), 19), u(F(ee(Gi.e), 10), 38), Cl = Gi.k, u(F(ee(Gi.k), 0), 38), u(F(ee(Gi.k), 1), 38); } function bie(e) { var n, t, i, r, c; @@ -31347,30 +31437,30 @@ function WDn() { for (i = n - 48; r < e.j && (n = or(e.i, r++)) >= 48 && n <= 57; ) if (i = i * 10 + n - 48, i < 0) throw $(new Kn(Yn((Un(), Fue)))); } else - throw $(new Kn(Yn((Un(), $Ve)))); + throw $(new Kn(Yn((Un(), MVe)))); if (t = i, n == 44) { if (r >= e.j) - throw $(new Kn(Yn((Un(), TVe)))); + throw $(new Kn(Yn((Un(), SVe)))); if ((n = or(e.i, r++)) >= 48 && n <= 57) { for (t = n - 48; r < e.j && (n = or(e.i, r++)) >= 48 && n <= 57; ) if (t = t * 10 + n - 48, t < 0) throw $(new Kn(Yn((Un(), Fue)))); - if (i > t) throw $(new Kn(Yn((Un(), SVe)))); + if (i > t) throw $(new Kn(Yn((Un(), IVe)))); } else t = -1; } - if (n != 125) throw $(new Kn(Yn((Un(), MVe)))); + if (n != 125) throw $(new Kn(Yn((Un(), TVe)))); e._l(r) ? (c = (kt(), kt(), new jw(9, c)), e.d = r + 1) : (c = (kt(), kt(), new jw(3, c)), e.d = r), c.Mm(i), c.Lm(t), vt(e); } } return c; } function KOn(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V; + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V; for (r = 1, p = new le(), i = 0; i < e.b.c.length; i++) { if (n = EEn(u(pe(e.b, i), 25)), R = Z8n(u(pe(e.b, i), 25)), a = Y8n(u(pe(e.b, i), 25)), a) { for (l = 0, t = 0, j = new x(u(pe(e.b, i), 25).a); j.a < j.c.c.length; ) v = u(A(j), 9), l = m.Math.max(l, v.o.a), t += v.o.b; - if (t /= u(pe(e.b, i), 25).a.c.length, l += m.Math.max(2 * _(H(y(e, (ae(), rd)))), m.Math.max(u(pe(e.b, i), 25).a.c.length * _(H(y(e, mg))), _(H(y(e, kg))))), t += m.Math.max(_(H(y(e, g0))), _(H(y(e, w0)))), l / t >= u(pe(e.b, i), 25).a.c.length / 4) + if (t /= u(pe(e.b, i), 25).a.c.length, l += m.Math.max(2 * B(H(y(e, (ae(), rd)))), m.Math.max(u(pe(e.b, i), 25).a.c.length * B(H(y(e, mg))), B(H(y(e, kg))))), t += m.Math.max(B(H(y(e, g0))), B(H(y(e, w0)))), l / t >= u(pe(e.b, i), 25).a.c.length / 4) continue; } if (u(pe(e.b, i), 25).a.c.length > n) { @@ -31383,8 +31473,8 @@ function WDn() { for (g = new x(p); g.a < g.c.c.length; ) d = u(A(g), 49), Md(e.b, u(d.b, 15).a, u(d.a, 25)); for (h = new x(e.b); h.a < h.c.c.length; ) - for (f = u(A(h), 25), M = new Vi(f.a, 0); M.b < M.d.gc(); ) - v = (An(M.b < M.d.gc()), u(M.d.Xb(M.c = M.b++), 9)), (v.k == (cn(), Uj) || v.k == pk) && vs(M); + for (f = u(A(h), 25), T = new Vi(f.a, 0); T.b < T.d.gc(); ) + v = (An(T.b < T.d.gc()), u(T.d.Xb(T.c = T.b++), 9)), (v.k == (cn(), Uj) || v.k == pk) && vs(T); } function db(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v, j, E; @@ -31397,7 +31487,7 @@ function WDn() { throw $(new on(tJ + t + "' is not a valid enumerator of '" + n.ve() + "'")); return E; } - switch (_a((ts(), sr), n).Ll()) { + switch (Ba((ts(), sr), n).Ll()) { case 2: { t = cu(t, !1); break; @@ -31407,21 +31497,21 @@ function WDn() { break; } } - if (i = _a(sr, n).Hl(), i) + if (i = Ba(sr, n).Hl(), i) return i.hk().ti().qi(i, t); - if (g = _a(sr, n).Jl(), g) { + if (g = Ba(sr, n).Jl(), g) { for (E = new le(), l = HN(t), a = 0, d = l.length; a < d; ++a) h = l[a], he(E, g.hk().ti().qi(g, h)); return E; } - if (j = _a(sr, n).Kl(), !j.dc()) { + if (j = Ba(sr, n).Kl(), !j.dc()) { for (v = j.Jc(); v.Ob(); ) { p = u(v.Pb(), 159); try { if (E = p.hk().ti().qi(p, t), E != null) return E; - } catch (M) { - if (M = gi(M), !N(M, 63)) throw $(M); + } catch (T) { + if (T = gi(T), !N(T, 63)) throw $(T); } } throw $(new on(tJ + t + "' does not match any member types of the union datatype '" + n.ve() + "'")); @@ -31431,19 +31521,19 @@ function WDn() { s = 0; try { s = eo(t, Yi, pt) & Ti; - } catch (M) { - if (M = gi(M), N(M, 131)) + } catch (T) { + if (T = gi(T), N(T, 131)) c = X$(t), s = c[0]; - else throw $(M); + else throw $(T); } return l7(s); } if (r == VS) { for (f = 0; f < j8.length; ++f) try { - return TAe(j8[f], t); - } catch (M) { - if (M = gi(M), !N(M, 32)) throw $(M); + return SAe(j8[f], t); + } catch (T) { + if (T = gi(T), !N(T, 32)) throw $(T); } throw $(new on(tJ + t + "' is not a date formatted string of the form yyyy-MM-dd'T'HH:mm:ss'.'SSSZ or a valid subset thereof")); } @@ -31453,15 +31543,15 @@ function WDn() { WR = G, Nt = new W0(), Je(Nt, (be(), Ih), fu), Je(Nt, Zo, fu), Je(Nt, Zo, qu), Je(Nt, Co, cs), Je(Nt, Co, fu), Je(Nt, Of, fu), Je(Nt, Of, gs), Je(Nt, so, Gu), Je(Nt, so, fu), Je(Nt, Hu, Su), Je(Nt, Hu, fu), Je(Nt, Hu, gs), Je(Nt, Hu, Gu), Je(Nt, Su, Hu), Je(Nt, Su, qu), Je(Nt, Su, cs), Je(Nt, Su, fu), Je(Nt, Lf, Lf), Je(Nt, Lf, gs), Je(Nt, Lf, qu), Je(Nt, ws, ws), Je(Nt, ws, gs), Je(Nt, ws, cs), Je(Nt, oo, oo), Je(Nt, oo, Gu), Je(Nt, oo, qu), Je(Nt, Po, Po), Je(Nt, Po, Gu), Je(Nt, Po, cs), Je(Nt, gs, Of), Je(Nt, gs, Hu), Je(Nt, gs, Lf), Je(Nt, gs, ws), Je(Nt, gs, fu), Je(Nt, gs, gs), Je(Nt, gs, qu), Je(Nt, gs, cs), Je(Nt, Gu, so), Je(Nt, Gu, Hu), Je(Nt, Gu, oo), Je(Nt, Gu, Po), Je(Nt, Gu, Gu), Je(Nt, Gu, qu), Je(Nt, Gu, cs), Je(Nt, Gu, fu), Je(Nt, qu, Zo), Je(Nt, qu, Su), Je(Nt, qu, Lf), Je(Nt, qu, oo), Je(Nt, qu, gs), Je(Nt, qu, Gu), Je(Nt, qu, qu), Je(Nt, qu, fu), Je(Nt, cs, Co), Je(Nt, cs, Su), Je(Nt, cs, ws), Je(Nt, cs, Po), Je(Nt, cs, gs), Je(Nt, cs, Gu), Je(Nt, cs, cs), Je(Nt, cs, fu), Je(Nt, fu, Ih), Je(Nt, fu, Zo), Je(Nt, fu, Co), Je(Nt, fu, Of), Je(Nt, fu, so), Je(Nt, fu, Hu), Je(Nt, fu, Su), Je(Nt, fu, gs), Je(Nt, fu, Gu), Je(Nt, fu, qu), Je(Nt, fu, cs), Je(Nt, fu, fu); } function wie(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De; for (e.d = new ue(ii, ii), e.c = new ue(Ri, Ri), g = n.Jc(); g.Ob(); ) for (a = u(g.Pb(), 37), R = new x(a.a); R.a < R.c.c.length; ) D = u(A(R), 9), e.d.a = m.Math.min(e.d.a, D.n.a - D.d.b), e.d.b = m.Math.min(e.d.b, D.n.b - D.d.d), e.c.a = m.Math.max(e.c.a, D.n.a + D.o.a + D.d.c), e.c.b = m.Math.max(e.c.b, D.n.b + D.o.b + D.d.a); - for (f = new eje(), d = n.Jc(); d.Ob(); ) + for (f = new nje(), d = n.Jc(); d.Ob(); ) a = u(d.Pb(), 37), i = COn(e, a), he(f.a, i), i.a = i.a | !u(y(i.c, (te(), fa)), 22).dc(); - for (e.b = (zN(), De = new fwe(), De.f = new gNe(t), De.b = BCn(De.f, f), De), ePn((v = e.b, new Lp(), v)), e.e = new er(), e.a = e.b.f.e, s = new x(f.a); s.a < s.c.c.length; ) + for (e.b = (zN(), De = new hwe(), De.f = new pNe(t), De.b = _Cn(De.f, f), De), ePn((v = e.b, new Lp(), v)), e.e = new er(), e.a = e.b.f.e, s = new x(f.a); s.a < s.c.c.length; ) for (r = u(A(s), 839), J = kpn(e.b, r), ETn(r.c, J.a, J.b), E = new x(r.c.a); E.a < E.c.c.length; ) - j = u(A(E), 9), j.k == (cn(), Ai) && (M = ite(e, j.n, u(y(j, (te(), Sc)), 64)), At(Rf(j.n), M)); + j = u(A(E), 9), j.k == (cn(), Ai) && (T = ite(e, j.n, u(y(j, (te(), Sc)), 64)), At(Rf(j.n), T)); for (c = new x(f.a); c.a < c.c.c.length; ) for (r = u(A(c), 839), l = new x(p9n(r)); l.a < l.c.c.length; ) for (h = u(A(l), 17), we = new PA(h.a), Qm(we, 0, oh(h.c)), rt(we, oh(h.d)), p = null, X = Nn(we, 0); X.b != X.d.c; ) { @@ -31479,10 +31569,10 @@ function WDn() { throw $(new Dh(wb + n + '"')); for (; s < c && (bn(s, n.length), n.charCodeAt(s) != 46) && (bn(s, n.length), n.charCodeAt(s) != 101) && (bn(s, n.length), n.charCodeAt(s) != 69); ) ++s; - if (l.a += "" + Go(n == null ? Bu : (Ze(n), n), t, s), s < c && (bn(s, n.length), n.charCodeAt(s) == 46)) { + if (l.a += "" + Go(n == null ? _u : (Ze(n), n), t, s), s < c && (bn(s, n.length), n.charCodeAt(s) == 46)) { for (++s, t = s; s < c && (bn(s, n.length), n.charCodeAt(s) != 101) && (bn(s, n.length), n.charCodeAt(s) != 69); ) ++s; - e.e = s - t, l.a += "" + Go(n == null ? Bu : (Ze(n), n), t, s); + e.e = s - t, l.a += "" + Go(n == null ? _u : (Ze(n), n), t, s); } else e.e = 0; if (s < c && (bn(s, n.length), n.charCodeAt(s) == 101 || (bn(s, n.length), n.charCodeAt(s) == 69)) && (++s, t = s, s < c && (bn(s, n.length), n.charCodeAt(s) == 43) && (++s, s < c && (bn(s, n.length), n.charCodeAt(s) != 45) && ++t), f = (tr(t, c, n.length), n.substr(t, c - t)), e.e = e.e - eo(f, Yi, pt), e.e != dr(e.e))) @@ -31498,17 +31588,17 @@ function WDn() { e.d == 0 && (e.d = 1); } function QOn(e) { - Rn(e.b, Wo, I(T(ke, 1), oe, 2, 6, [Eb, "ConsistentTransient"])), Rn(e.a, Wo, I(T(ke, 1), oe, 2, 6, [Eb, "WellFormedSourceURI"])), Rn(e.o, Wo, I(T(ke, 1), oe, 2, 6, [Eb, "InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])), Rn(e.p, Wo, I(T(ke, 1), oe, 2, 6, [Eb, "WellFormedInstanceTypeName UniqueTypeParameterNames"])), Rn(e.v, Wo, I(T(ke, 1), oe, 2, 6, [Eb, "UniqueEnumeratorNames UniqueEnumeratorLiterals"])), Rn(e.R, Wo, I(T(ke, 1), oe, 2, 6, [Eb, "WellFormedName"])), Rn(e.T, Wo, I(T(ke, 1), oe, 2, 6, [Eb, "UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])), Rn(e.U, Wo, I(T(ke, 1), oe, 2, 6, [Eb, "WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])), Rn(e.W, Wo, I(T(ke, 1), oe, 2, 6, [Eb, "ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])), Rn(e.bb, Wo, I(T(ke, 1), oe, 2, 6, [Eb, "ValidDefaultValueLiteral"])), Rn(e.eb, Wo, I(T(ke, 1), oe, 2, 6, [Eb, "ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])), Rn(e.H, Wo, I(T(ke, 1), oe, 2, 6, [Eb, "ConsistentType ConsistentBounds ConsistentArguments"])); + Rn(e.b, Wo, I(S(ye, 1), fe, 2, 6, [Eb, "ConsistentTransient"])), Rn(e.a, Wo, I(S(ye, 1), fe, 2, 6, [Eb, "WellFormedSourceURI"])), Rn(e.o, Wo, I(S(ye, 1), fe, 2, 6, [Eb, "InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])), Rn(e.p, Wo, I(S(ye, 1), fe, 2, 6, [Eb, "WellFormedInstanceTypeName UniqueTypeParameterNames"])), Rn(e.v, Wo, I(S(ye, 1), fe, 2, 6, [Eb, "UniqueEnumeratorNames UniqueEnumeratorLiterals"])), Rn(e.R, Wo, I(S(ye, 1), fe, 2, 6, [Eb, "WellFormedName"])), Rn(e.T, Wo, I(S(ye, 1), fe, 2, 6, [Eb, "UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])), Rn(e.U, Wo, I(S(ye, 1), fe, 2, 6, [Eb, "WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])), Rn(e.W, Wo, I(S(ye, 1), fe, 2, 6, [Eb, "ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])), Rn(e.bb, Wo, I(S(ye, 1), fe, 2, 6, [Eb, "ValidDefaultValueLiteral"])), Rn(e.eb, Wo, I(S(ye, 1), fe, 2, 6, [Eb, "ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])), Rn(e.H, Wo, I(S(ye, 1), fe, 2, 6, [Eb, "ConsistentType ConsistentBounds ConsistentArguments"])); } function YOn(e) { var n, t, i, r, c; - switch (t = u(y(e, (te(), ou)), 22), n = kx(LZe), r = u(y(e, (ae(), ag)), 347), r == (ea(), r1) && Ys(n, DZe), ve(me(y(e, vH))) ? et(n, (zi(), $f), (Qi(), vG)) : et(n, (zi(), Xc), (Qi(), vG)), y(e, (J$(), u8)) != null && Ys(n, NZe), (ve(me(y(e, Nhe))) || ve(me(y(e, Phe)))) && au(n, (zi(), Nr), (Qi(), yoe)), u(y(e, co), 86).g) { + switch (t = u(y(e, (te(), ou)), 22), n = kx(DZe), r = u(y(e, (ae(), ag)), 347), r == (ea(), r1) && Ys(n, NZe), ve(me(y(e, vH))) ? et(n, (zi(), $f), (Qi(), vG)) : et(n, (zi(), Xc), (Qi(), vG)), y(e, (J$(), u8)) != null && Ys(n, FZe), (ve(me(y(e, Nhe))) || ve(me(y(e, Phe)))) && au(n, (zi(), Nr), (Qi(), yoe)), u(y(e, co), 86).g) { case 2: case 3: case 4: au(et(n, (zi(), $f), (Qi(), Eoe)), Nr, joe); } - switch (t.Gc((Pr(), RI)) && au(et(et(n, (zi(), $f), (Qi(), koe)), Kc, moe), Nr, voe), z(y(e, uE)) !== z((G1(), dC)) && et(n, (zi(), Xc), (Qi(), Roe)), t.Gc(_I) && (et(n, (zi(), $f), (Qi(), Goe)), et(n, Al, _oe), et(n, Xc, Joe)), z(y(e, KI)) !== z((Kv(), yk)) && z(y(e, la)) !== z((na(), OE)) && au(n, (zi(), Nr), (Qi(), Poe)), ve(me(y(e, Lhe))) && et(n, (zi(), Xc), (Qi(), Coe)), ve(me(y(e, gH))) && et(n, (zi(), Xc), (Qi(), Hoe)), f$n(e) && (z(y(e, ag)) === z(r1) ? i = u(y(e, cE), 302) : i = u(y(e, wH), 302), c = i == (Mv(), KG) ? (Qi(), Boe) : (Qi(), zoe), et(n, (zi(), Kc), c)), u(y(e, Ghe), 423).g == 1 && et(n, (zi(), Kc), (Qi(), doe)), u(y(e, fle), 382).g) { + switch (t.Gc((Pr(), RI)) && au(et(et(n, (zi(), $f), (Qi(), koe)), Kc, moe), Nr, voe), z(y(e, uE)) !== z((G1(), dC)) && et(n, (zi(), Xc), (Qi(), Roe)), t.Gc(BI) && (et(n, (zi(), $f), (Qi(), Goe)), et(n, Al, Boe), et(n, Xc, Joe)), z(y(e, KI)) !== z((Kv(), yk)) && z(y(e, la)) !== z((na(), OE)) && au(n, (zi(), Nr), (Qi(), Poe)), ve(me(y(e, Lhe))) && et(n, (zi(), Xc), (Qi(), Coe)), ve(me(y(e, gH))) && et(n, (zi(), Xc), (Qi(), Hoe)), f$n(e) && (z(y(e, ag)) === z(r1) ? i = u(y(e, cE), 302) : i = u(y(e, wH), 302), c = i == (Mv(), KG) ? (Qi(), _oe) : (Qi(), zoe), et(n, (zi(), Kc), c)), u(y(e, Ghe), 423).g == 1 && et(n, (zi(), Kc), (Qi(), doe)), u(y(e, fle), 382).g) { case 1: et(n, (zi(), Kc), (Qi(), qoe)); break; @@ -31518,28 +31608,28 @@ function WDn() { return z(y(e, $l)) !== z((ta(), cd)) && et(n, (zi(), Xc), (Qi(), Uoe)), n; } function ZOn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le; if (!n.dc()) { if (r = new ms(), f = t || u(n.Xb(0), 17), v = f.c, k9(), g = v.i.k, !(g == (cn(), si) || g == su || g == Ai || g == Eh)) throw $(new on("The target node of the edge must be a normal node or a northSouthPort.")); - for (mr(r, bc(I(T(Ji, 1), oe, 8, 0, [v.i.n, v.n, v.a]))), (be(), Hu).Gc(v.j) && (E = _(H(y(v, (te(), e4)))), d = new ue(bc(I(T(Ji, 1), oe, 8, 0, [v.i.n, v.n, v.a])).a, E), ti(r, d, r.c.b, r.c)), a = null, i = !1, h = n.Jc(); h.Ob(); ) + for (mr(r, bc(I(S(Ji, 1), fe, 8, 0, [v.i.n, v.n, v.a]))), (be(), Hu).Gc(v.j) && (E = B(H(y(v, (te(), e4)))), d = new ue(bc(I(S(Ji, 1), fe, 8, 0, [v.i.n, v.n, v.a])).a, E), ti(r, d, r.c.b, r.c)), a = null, i = !1, h = n.Jc(); h.Ob(); ) s = u(h.Pb(), 17), c = s.a, c.b != 0 && (i ? (l = Jl(At(a, (An(c.b != 0), u(c.a.a.c, 8))), 0.5), ti(r, l, r.c.b, r.c), i = !1) : i = !0, a = kr((An(c.b != 0), u(c.c.b.c, 8))), wr(r, c), Fs(c)); - j = f.d, Hu.Gc(j.j) && (E = _(H(y(j, (te(), e4)))), d = new ue(bc(I(T(Ji, 1), oe, 8, 0, [j.i.n, j.n, j.a])).a, E), ti(r, d, r.c.b, r.c)), mr(r, bc(I(T(Ji, 1), oe, 8, 0, [j.i.n, j.n, j.a]))), e.d == (Ov(), zH) && (M = (An(r.b != 0), u(r.a.a.c, 8)), D = u(qc(r, 1), 8), R = new LD(oZ(v.j)), R.a *= 5, R.b *= 5, J = Fi(new ue(D.a, D.b), M), V = new ue(SD(R.a, J.a), SD(R.b, J.b)), At(V, M), X = Nn(r, 1), s$(X, V), we = (An(r.b != 0), u(r.c.b.c, 8)), De = u(qc(r, r.b - 2), 8), R = new LD(oZ(j.j)), R.a *= 5, R.b *= 5, J = Fi(new ue(De.a, De.b), we), Le = new ue(SD(R.a, J.a), SD(R.b, J.b)), At(Le, we), Qm(r, r.b - 1, Le)), p = new Xte(r), wr(f.a, QBe(p)); + j = f.d, Hu.Gc(j.j) && (E = B(H(y(j, (te(), e4)))), d = new ue(bc(I(S(Ji, 1), fe, 8, 0, [j.i.n, j.n, j.a])).a, E), ti(r, d, r.c.b, r.c)), mr(r, bc(I(S(Ji, 1), fe, 8, 0, [j.i.n, j.n, j.a]))), e.d == (Ov(), zH) && (T = (An(r.b != 0), u(r.a.a.c, 8)), D = u(qc(r, 1), 8), R = new LD(oZ(v.j)), R.a *= 5, R.b *= 5, J = Fi(new ue(D.a, D.b), T), V = new ue(SD(R.a, J.a), SD(R.b, J.b)), At(V, T), X = Nn(r, 1), s$(X, V), we = (An(r.b != 0), u(r.c.b.c, 8)), De = u(qc(r, r.b - 2), 8), R = new LD(oZ(j.j)), R.a *= 5, R.b *= 5, J = Fi(new ue(De.a, De.b), we), Le = new ue(SD(R.a, J.a), SD(R.b, J.b)), At(Le, we), Qm(r, r.b - 1, Le)), p = new Xte(r), wr(f.a, Y_e(p)); } } function eLn(e, n, t, i) { - var r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni, ps, Yr, ho, xp, l1, Df, ga; + var r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni, ps, Yr, ho, xp, l1, Df, ga; if (R = u(F((!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), 0), 84), V = R.mh(), X = R.nh(), J = R.lh() / 2, j = R.kh() / 2, N(R, 193) && (D = u(R, 125), V += sh(D).i, V += sh(D).i), V += J, X += j, Ye = u(F((!e.b && (e.b = new Qe(Cn, e, 4, 7)), e.b), 0), 84), ut = Ye.mh(), ni = Ye.nh(), yn = Ye.lh() / 2, we = Ye.kh() / 2, N(Ye, 193) && (Ke = u(Ye, 125), ut += sh(Ke).i, ut += sh(Ke).i), ut += yn, ni += we, (!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a).i == 0) f = (p1(), l = new uA(), l), Dn((!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a), f); else if ((!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a).i > 1) for (v = new Xp((!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a)); v.e != v.i.gc(); ) l9(v); - for (s = u(F((!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a), 0), 170), E = ut, ut > V + J ? E = V + J : ut < V - J && (E = V - J), M = ni, ni > X + j ? M = X + j : ni < X - j && (M = X - j), E > V - J && E < V + J && M > X - j && M < X + j && (E = V + J), p2(s, E), m2(s, M), De = V, V > ut + yn ? De = ut + yn : V < ut - yn && (De = ut - yn), Le = X, X > ni + we ? Le = ni + we : X < ni - we && (Le = ni - we), De > ut - yn && De < ut + yn && Le > ni - we && Le < ni + we && (Le = ni + we), w2(s, De), g2(s, Le), On((!s.a && (s.a = new $i(fo, s, 5)), s.a)), c = KM(n, 5), R == Ye && ++c, ho = De - E, Df = Le - M, ps = m.Math.sqrt(ho * ho + Df * Df), d = ps * 0.20000000298023224, xp = ho / (c + 1), ga = Df / (c + 1), Yr = E, l1 = M, a = 0; a < c; a++) + for (s = u(F((!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a), 0), 170), E = ut, ut > V + J ? E = V + J : ut < V - J && (E = V - J), T = ni, ni > X + j ? T = X + j : ni < X - j && (T = X - j), E > V - J && E < V + J && T > X - j && T < X + j && (E = V + J), p2(s, E), m2(s, T), De = V, V > ut + yn ? De = ut + yn : V < ut - yn && (De = ut - yn), Le = X, X > ni + we ? Le = ni + we : X < ni - we && (Le = ni - we), De > ut - yn && De < ut + yn && Le > ni - we && Le < ni + we && (Le = ni + we), w2(s, De), g2(s, Le), On((!s.a && (s.a = new $i(fo, s, 5)), s.a)), c = KM(n, 5), R == Ye && ++c, ho = De - E, Df = Le - T, ps = m.Math.sqrt(ho * ho + Df * Df), d = ps * 0.20000000298023224, xp = ho / (c + 1), ga = Df / (c + 1), Yr = E, l1 = T, a = 0; a < c; a++) Yr += xp, l1 += ga, g = Yr + $s(n, 24) * bj * d - d / 2, g < 0 ? g = 1 : g > t && (g = t - 1), p = l1 + $s(n, 24) * bj * d - d / 2, p < 0 ? p = 1 : p > i && (p = i - 1), r = (p1(), h = new sA(), h), nM(r, g), tM(r, p), Dn((!s.a && (s.a = new $i(fo, s, 5)), s.a), r); } function XR(e, n) { PR(); - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we; if (R = e.e, a = e.d, r = e.a, R == 0) switch (n) { case 0: @@ -31557,7 +31647,7 @@ function WDn() { case 6: return "0.000000"; default: - return M = new w1(), M.a += "0E", M.a += -n, M.a; + return T = new w1(), T.a += "0E", T.a += -n, T.a; } if (j = a * 10 + 1 + 7, E = W(Oo, Xh, 30, j + 1, 15, 1), t = j, a == 1) if (c = r[0], c < 0) { @@ -31575,7 +31665,7 @@ function WDn() { J = W(Wn, lt, 30, a, 15, 1), X = a, zc(r, 0, J, 0, X); e: for (; ; ) { for (D = 0, f = X - 1; f >= 0; f--) - V = yr(hl(D, 32), qi(J[f], Or)), p = njn(V), J[f] = Xn(p), D = Xn(_0(p, 32)); + V = yr(hl(D, 32), qi(J[f], Or)), p = njn(V), J[f] = Xn(p), D = Xn(B0(p, 32)); v = Xn(D), g = t; do E[--t] = 48 + v % 10 & Ti; @@ -31592,9 +31682,9 @@ function WDn() { } return l = R < 0, l && (E[--t] = 45), Gh(E, t, j - t); } - function Jze(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X; - switch (e.c = n, e.g = new Tn(), t = (xd(), new b1(e.c)), i = new wA(t), UZ(i), R = zn(re(e.c, (N7(), S1e))), h = u(re(e.c, Hq), 330), V = u(re(e.c, qq), 427), s = u(re(e.c, $1e), 477), J = u(re(e.c, Gq), 428), e.j = _(H(re(e.c, Run))), f = e.a, h.g) { + function Gze(e, n) { + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X; + switch (e.c = n, e.g = new Tn(), t = (xd(), new b1(e.c)), i = new wA(t), UZ(i), R = zn(re(e.c, (N7(), S1e))), h = u(re(e.c, Hq), 330), V = u(re(e.c, qq), 427), s = u(re(e.c, $1e), 477), J = u(re(e.c, Gq), 428), e.j = B(H(re(e.c, _un))), f = e.a, h.g) { case 0: f = e.a; break; @@ -31613,12 +31703,12 @@ function WDn() { default: throw $(new on(AS + (h.f != null ? h.f : "" + h.g))); } - if (e.d = new ACe(f, V, s), K(e.d, ($v(), bk), me(re(e.c, Nun))), e.d.c = ve(me(re(e.c, M1e))), w$(e.c).i == 0) + if (e.d = new xCe(f, V, s), K(e.d, ($v(), bk), me(re(e.c, Fun))), e.d.c = ve(me(re(e.c, M1e))), w$(e.c).i == 0) return e.d; for (d = new kn(w$(e.c)); d.e != d.i.gc(); ) { for (a = u(En(d), 26), p = a.g / 2, g = a.f / 2, X = new ue(a.i + p, a.j + g); eu(e.g, X); ) sw(X, (m.Math.random() - 0.5) * Vh, (m.Math.random() - 0.5) * Vh); - j = u(re(a, (tt(), d4)), 140), E = new _Ce(X, new df(X.a - p - e.j / 2 - j.b, X.b - g - e.j / 2 - j.d, a.g + e.j + (j.b + j.c), a.f + e.j + (j.d + j.a))), he(e.d.i, E), ht(e.g, X, new Ar(E, a)); + j = u(re(a, (tt(), d4)), 140), E = new JCe(X, new df(X.a - p - e.j / 2 - j.b, X.b - g - e.j / 2 - j.d, a.g + e.j + (j.b + j.c), a.f + e.j + (j.d + j.a))), he(e.d.i, E), ht(e.g, X, new Ar(E, a)); } switch (J.g) { case 0: @@ -31626,24 +31716,24 @@ function WDn() { e.d.d = u(pe(e.d.i, 0), 68); else for (D = new x(e.d.i); D.a < D.c.c.length; ) - E = u(A(D), 68), v = u(u(rn(e.g, E.a), 49).b, 26).ih(), v != null && _e(v, R) && (e.d.d = E); + E = u(A(D), 68), v = u(u(rn(e.g, E.a), 49).b, 26).ih(), v != null && Be(v, R) && (e.d.d = E); break; case 1: - for (r = new ue(e.c.g, e.c.f), r.a *= 0.5, r.b *= 0.5, sw(r, e.c.i, e.c.j), c = ii, M = new x(e.d.i); M.a < M.c.c.length; ) - E = u(A(M), 68), l = S1(E.a, r), l < c && (c = l, e.d.d = E); + for (r = new ue(e.c.g, e.c.f), r.a *= 0.5, r.b *= 0.5, sw(r, e.c.i, e.c.j), c = ii, T = new x(e.d.i); T.a < T.c.c.length; ) + E = u(A(T), 68), l = S1(E.a, r), l < c && (c = l, e.d.d = E); break; default: throw $(new on(AS + (J.f != null ? J.f : "" + J.g))); } return e.d; } - function Gze(e) { - ew(e, new sb(Yb(Kb(Qb(Vb(new S0(), as), "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 Eve()))), se(e, as, v5, 1.3), se(e, as, k5, (en(), !1)), se(e, as, Qw, c1e), se(e, as, Vw, 15), se(e, as, wS, ge(pun)), se(e, as, R2, ge(kun)), se(e, as, q3, ge(jun)), se(e, as, H3, ge(Eun)), se(e, as, y5, ge(vun)), se(e, as, _9, ge(Iq)), se(e, as, j5, ge(Aun)), se(e, as, Zce, ge(f1e)), se(e, as, eue, ge(o1e)), se(e, as, Yce, ge(Pq)), se(e, as, Qce, ge(h1e)), se(e, as, nue, ge(r1e)), se(e, as, tue, ge(Cq)), se(e, as, iue, ge(i1e)), se(e, as, rue, ge(s1e)), se(e, as, B9, ge(n1e)), se(e, as, pS, ge(mun)), se(e, as, Xce, ge(kE)), se(e, as, Wce, ge(e1e)), se(e, as, Kce, ge(yE)), se(e, as, zce, ge(u1e)), se(e, as, Vce, ge(t1e)); + function Hze(e) { + ew(e, new sb(Yb(Kb(Qb(Vb(new S0(), as), "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 Ave()))), se(e, as, v5, 1.3), se(e, as, k5, (en(), !1)), se(e, as, Qw, c1e), se(e, as, Vw, 15), se(e, as, wS, ge(mun)), se(e, as, R2, ge(yun)), se(e, as, q3, ge(Eun)), se(e, as, H3, ge(Aun)), se(e, as, y5, ge(kun)), se(e, as, B9, ge(Iq)), se(e, as, j5, ge(xun)), se(e, as, Zce, ge(f1e)), se(e, as, eue, ge(o1e)), se(e, as, Yce, ge(Pq)), se(e, as, Qce, ge(h1e)), se(e, as, nue, ge(r1e)), se(e, as, tue, ge(Cq)), se(e, as, iue, ge(i1e)), se(e, as, rue, ge(s1e)), se(e, as, _9, ge(n1e)), se(e, as, pS, ge(vun)), se(e, as, Xce, ge(kE)), se(e, as, Wce, ge(e1e)), se(e, as, Kce, ge(yE)), se(e, as, zce, ge(u1e)), se(e, as, Vce, ge(t1e)); } function nLn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni, ps, Yr, ho; - for (t.Tg("Greedy cycle removal", 1), e.b = n, R = n.a, ho = R.c.length, e.a = W(Wn, lt, 30, ho, 15, 1), e.d = W(Wn, lt, 30, ho, 15, 1), e.c = W(Wn, lt, 30, ho, 15, 1), l = 0, M = new x(R); M.a < M.c.c.length; ) { - for (j = u(A(M), 9), j.p = l, Le = new x(j.j); Le.a < Le.c.c.length; ) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni, ps, Yr, ho; + for (t.Tg("Greedy cycle removal", 1), e.b = n, R = n.a, ho = R.c.length, e.a = W(Wn, lt, 30, ho, 15, 1), e.d = W(Wn, lt, 30, ho, 15, 1), e.c = W(Wn, lt, 30, ho, 15, 1), l = 0, T = new x(R); T.a < T.c.c.length; ) { + for (j = u(A(T), 9), j.p = l, Le = new x(j.j); Le.a < Le.c.c.length; ) { for (X = u(A(Le), 12), f = new x(X.e); f.a < f.c.c.length; ) i = u(A(f), 17), i.c.i != j && (yn = u(y(i, (ae(), r4)), 15).a, e.a[l] += yn > 0 ? yn + 1 : 1); for (s = new x(X.g); s.a < s.c.c.length; ) @@ -31653,9 +31743,9 @@ function WDn() { } for (v = -1, p = 1, d = new le(), e.e = u(y(n, (te(), sm)), 234); ho > 0; ) { for (; e.f.b != 0; ) - ni = u(BL(e.f), 9), e.c[ni.p] = v--, Lte(e, ni), --ho; + ni = u(_L(e.f), 9), e.c[ni.p] = v--, Lte(e, ni), --ho; for (; e.g.b != 0; ) - ps = u(BL(e.g), 9), e.c[ps.p] = p++, Lte(e, ps), --ho; + ps = u(_L(e.g), 9), e.c[ps.p] = p++, Lte(e, ps), --ho; if (ho > 0) { for (g = Yi, D = new x(R); D.a < D.c.c.length; ) j = u(A(D), 9), e.c[j.p] == 0 && (J = e.d[j.p] - e.a[j.p], J >= g && (J > g && (d.c.length = 0, g = J), sn(d.c, j))); @@ -31666,28 +31756,28 @@ function WDn() { e.c[l] < 0 && (e.c[l] += ut); for (E = new x(R); E.a < E.c.c.length; ) for (j = u(A(E), 9), Ye = BPe(j.j), we = Ye, De = 0, Ke = we.length; De < Ke; ++De) - for (X = we[De], V = _h(X.g), r = V, c = 0, h = r.length; c < h; ++c) + for (X = we[De], V = Bh(X.g), r = V, c = 0, h = r.length; c < h; ++c) i = r[c], Yr = i.d.i.p, e.c[j.p] > e.c[Yr] && (Ua(i, !0), K(n, im, (en(), !0))); e.a = null, e.d = null, e.c = null, Fs(e.g), Fs(e.f), t.Ug(); } - function Hze(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X; - for (V = u(F((!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a), 0), 170), a = new ms(), J = new Tn(), X = tUe(V), Ru(J.f, V, X), g = new Tn(), i = new Dt(), v = ll(vo(I(T(To, 1), Ve, 20, 0, [(!n.d && (n.d = new Qe(xi, n, 8, 5)), n.d), (!n.e && (n.e = new Qe(xi, n, 7, 4)), n.e)]))); xn(v); ) { + function qze(e, n, t) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X; + for (V = u(F((!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a), 0), 170), a = new ms(), J = new Tn(), X = iUe(V), Ru(J.f, V, X), g = new Tn(), i = new Dt(), v = ll(vo(I(S(To, 1), Ve, 20, 0, [(!n.d && (n.d = new Qe(xi, n, 8, 5)), n.d), (!n.e && (n.e = new Qe(xi, n, 7, 4)), n.e)]))); xn(v); ) { if (p = u(pn(v), 85), (!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a).i != 1) - throw $(new on(LKe + (!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a).i)); - p != e && (E = u(F((!p.a && (p.a = new ne(Wt, p, 6, 6)), p.a), 0), 170), ti(i, E, i.c.b, i.c), j = u(hc(Ur(J.f, E)), 13), j || (j = tUe(E), Ru(J.f, E, j)), d = t ? Fi(new vr(u(pe(X, X.c.length - 1), 8)), u(pe(j, j.c.length - 1), 8)) : Fi(new vr((qe(0, X.c.length), u(X.c[0], 8))), (qe(0, j.c.length), u(j.c[0], 8))), Ru(g.f, E, d)); + throw $(new on(DKe + (!e.a && (e.a = new ne(Wt, e, 6, 6)), e.a).i)); + p != e && (E = u(F((!p.a && (p.a = new ne(Wt, p, 6, 6)), p.a), 0), 170), ti(i, E, i.c.b, i.c), j = u(hc(Ur(J.f, E)), 13), j || (j = iUe(E), Ru(J.f, E, j)), d = t ? Fi(new vr(u(pe(X, X.c.length - 1), 8)), u(pe(j, j.c.length - 1), 8)) : Fi(new vr((qe(0, X.c.length), u(X.c[0], 8))), (qe(0, j.c.length), u(j.c[0], 8))), Ru(g.f, E, d)); } if (i.b != 0) - for (M = u(pe(X, t ? X.c.length - 1 : 0), 8), l = 1; l < X.c.length; l++) { + for (T = u(pe(X, t ? X.c.length - 1 : 0), 8), l = 1; l < X.c.length; l++) { for (D = u(pe(X, t ? X.c.length - 1 - l : l), 8), r = Nn(i, 0); r.b != r.d.c; ) - E = u(Ln(r), 170), j = u(hc(Ur(J.f, E)), 13), j.c.length <= l ? bN(r) : (R = At(new vr(u(pe(j, t ? j.c.length - 1 - l : l), 8)), u(hc(Ur(g.f, E)), 8)), (D.a != R.a || D.b != R.b) && (c = D.a - M.a, f = D.b - M.b, s = R.a - M.a, h = R.b - M.b, s * f == h * c && (c == 0 || isNaN(c) ? c : c < 0 ? -1 : 1) == (s == 0 || isNaN(s) ? s : s < 0 ? -1 : 1) && (f == 0 || isNaN(f) ? f : f < 0 ? -1 : 1) == (h == 0 || isNaN(h) ? h : h < 0 ? -1 : 1) ? (m.Math.abs(c) < m.Math.abs(s) || m.Math.abs(f) < m.Math.abs(h)) && ti(a, D, a.c.b, a.c) : l > 1 && ti(a, M, a.c.b, a.c), bN(r))); - M = D; + E = u(Ln(r), 170), j = u(hc(Ur(J.f, E)), 13), j.c.length <= l ? bN(r) : (R = At(new vr(u(pe(j, t ? j.c.length - 1 - l : l), 8)), u(hc(Ur(g.f, E)), 8)), (D.a != R.a || D.b != R.b) && (c = D.a - T.a, f = D.b - T.b, s = R.a - T.a, h = R.b - T.b, s * f == h * c && (c == 0 || isNaN(c) ? c : c < 0 ? -1 : 1) == (s == 0 || isNaN(s) ? s : s < 0 ? -1 : 1) && (f == 0 || isNaN(f) ? f : f < 0 ? -1 : 1) == (h == 0 || isNaN(h) ? h : h < 0 ? -1 : 1) ? (m.Math.abs(c) < m.Math.abs(s) || m.Math.abs(f) < m.Math.abs(h)) && ti(a, D, a.c.b, a.c) : l > 1 && ti(a, T, a.c.b, a.c), bN(r))); + T = D; } return a; } - function qze(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke; - for (t.Tg(UXe, 1), Ke = u(fs(mt(new Ge(null, new He(n, 16)), new Ume()), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), a = u(fs(mt(new Ge(null, new He(n, 16)), new Lye(n)), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [_u]))), 16), v = u(fs(mt(new Ge(null, new He(n, 16)), new Oye(n)), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [_u]))), 16), j = W(yC, kS, 40, n.gc(), 0, 1), s = 0; s < a.gc(); s++) + function Uze(e, n, t) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke; + for (t.Tg(zXe, 1), Ke = u(fs(mt(new Ge(null, new He(n, 16)), new zme()), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), a = u(fs(mt(new Ge(null, new He(n, 16)), new Dye(n)), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [Bu]))), 16), v = u(fs(mt(new Ge(null, new He(n, 16)), new Lye(n)), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [Bu]))), 16), j = W(yC, kS, 40, n.gc(), 0, 1), s = 0; s < a.gc(); s++) r = u(a.Xb(s), 40), Le = u(y(r, (Ac(), lp)), 15).a, Le >= 0 && Le < a.gc() && !j[Le] && (j[Le] = r, a.ed(s), --s); for (f = 0; f < a.gc(); f++) for (r = u(a.Xb(f), 40), Le = u(y(r, (Ac(), lp)), 15).a, g = 0; ; g++) { @@ -31700,45 +31790,45 @@ function WDn() { break; } } - for (v.gd(new zme()), h = j.length - 1; h >= 0; h--) + for (v.gd(new Wme()), h = j.length - 1; h >= 0; h--) !j[h] && !v.dc() && (j[h] = u(v.Xb(0), 40), v.ed(0)); for (l = 0; l < j.length; l++) !j[l] && !Ke.dc() && (j[l] = u(Ke.Xb(0), 40), Ke.ed(0)); for (c = 0; c < j.length; c++) - K(j[c], (Bt(), Yk), ie(c)); - for (d = u(okn(mt(new Ge(null, new He(n, 16)), new Wme())), 522), X = d, we = 0, De = X.length; we < De; ++we) { - for (V = X[we], i = LN(V), qze(e, i, t.dh(1 / d.length | 0)), ze(), _d(i, new VP((Bt(), Yk))), E = new Dt(), J = Nn(i, 0); J.b != J.d.c; ) + K(j[c], (_t(), Yk), ie(c)); + for (d = u(okn(mt(new Ge(null, new He(n, 16)), new Xme())), 522), X = d, we = 0, De = X.length; we < De; ++we) { + for (V = X[we], i = LN(V), Uze(e, i, t.dh(1 / d.length | 0)), ze(), Bd(i, new VP((_t(), Yk))), E = new Dt(), J = Nn(i, 0); J.b != J.d.c; ) for (R = u(Ln(J), 40), D = Nn(V.d, 0); D.b != D.d.c; ) - M = u(Ln(D), 65), M.c == R && ti(E, M, E.c.b, E.c); + T = u(Ln(D), 65), T.c == R && ti(E, T, E.c.b, E.c); Fs(V.d), wr(V.d, E); } t.Ug(); } - function Uze(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; - for (R = _(H(re(n, (gl(), Eg)))), p = _(H(re(n, n8))), g = _(H(re(n, CC))), LY((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)), M = RUe((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a), R, e.b), E = 0; E < M.c.length; E++) - if (h = (qe(E, M.c.length), u(M.c[E], 186)), E != 0 && (v = (qe(E - 1, M.c.length), u(M.c[E - 1], 186)), iRe(h, v.f + v.b + e.b)), j = rLn(E, M, R, e.b, ve(me(re(n, (gh(), Cq))))), ve(me(j.b))) { + function zze(e, n, t) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; + for (R = B(H(re(n, (gl(), Eg)))), p = B(H(re(n, n8))), g = B(H(re(n, CC))), LY((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)), T = _Ue((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a), R, e.b), E = 0; E < T.c.length; E++) + if (h = (qe(E, T.c.length), u(T.c[E], 186)), E != 0 && (v = (qe(E - 1, T.c.length), u(T.c[E - 1], 186)), rRe(h, v.f + v.b + e.b)), j = rLn(E, T, R, e.b, ve(me(re(n, (gh(), Cq))))), ve(me(j.b))) { for (c = new x(h.a); c.a < c.c.c.length; ) - r = u(A(c), 173), r.c = !1, r.k = !1, IUe(r); + r = u(A(c), 173), r.c = !1, r.k = !1, CUe(r); h.d = new le(), h.e = R, --E; - } else if (Jyn(e, h), E + 1 < M.c.length && (e.e = m.Math.max(h.e + e.b + u(pe((qe(E + 1, M.c.length), u(M.c[E + 1], 186)).a, 0), 173).r - R, e.c), e.f = m.Math.min(h.e + e.b + u(pe((qe(E + 1, M.c.length), u(M.c[E + 1], 186)).a, 0), 173).r - R, e.d), h.d.c.length != 0 && (e.c = m.Math.max(e.c, u(pe(h.d, h.d.c.length - 1), 319).d + (h.d.c.length <= 1 ? 0 : e.b)), e.d = m.Math.min(e.c, u(pe(h.d, h.d.c.length - 1), 319).d + (h.d.c.length <= 1 ? 0 : e.b)))), M.c.length == 1) + } else if (Jyn(e, h), E + 1 < T.c.length && (e.e = m.Math.max(h.e + e.b + u(pe((qe(E + 1, T.c.length), u(T.c[E + 1], 186)).a, 0), 173).r - R, e.c), e.f = m.Math.min(h.e + e.b + u(pe((qe(E + 1, T.c.length), u(T.c[E + 1], 186)).a, 0), 173).r - R, e.d), h.d.c.length != 0 && (e.c = m.Math.max(e.c, u(pe(h.d, h.d.c.length - 1), 319).d + (h.d.c.length <= 1 ? 0 : e.b)), e.d = m.Math.min(e.c, u(pe(h.d, h.d.c.length - 1), 319).d + (h.d.c.length <= 1 ? 0 : e.b)))), T.c.length == 1) for (d = u(pe(h.d, h.d.c.length - 1), 319), a = u(pe(d.a, d.a.c.length - 1), 173), f = new x(a.n); f.a < f.c.c.length; ) s = u(A(f), 208), e.c = m.Math.max(e.c, a.r - s.d), e.d = m.Math.min(e.d, a.r - s.d), e.e = m.Math.max(e.e, s.d + e.b), e.f = m.Math.min(e.f, s.d + e.b); - return D = x_e(M, e.b), J = m.Math.max(D.a, p - (t.b + t.c)), l = m.Math.max(D.b, g - (t.d + t.a)), i = l - D.b, Pt(n, e8, i), Pt(n, PC, M), new iV(e.a, J, D.b + i, (m9(), jE)); + return D = $Be(T, e.b), J = m.Math.max(D.a, p - (t.b + t.c)), l = m.Math.max(D.b, g - (t.d + t.a)), i = l - D.b, Pt(n, e8, i), Pt(n, PC, T), new iV(e.a, J, D.b + i, (m9(), jE)); } function tLn(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn; + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn; if (we = u(y(e, (ae(), oi)), 102), we != (Ui(), Sh) && we != ad) { - for (v = e.b, p = v.c.length, a = new bu((Qs(p + 2, eB), Q$(yr(yr(5, p + 2), (p + 2) / 10 | 0)))), j = new bu((Qs(p + 2, eB), Q$(yr(yr(5, p + 2), (p + 2) / 10 | 0)))), he(a, new Tn()), he(a, new Tn()), he(j, new le()), he(j, new le()), X = new le(), n = 0; n < p; n++) + for (v = e.b, p = v.c.length, a = new bu((Qs(p + 2, e_), Q$(yr(yr(5, p + 2), (p + 2) / 10 | 0)))), j = new bu((Qs(p + 2, e_), Q$(yr(yr(5, p + 2), (p + 2) / 10 | 0)))), he(a, new Tn()), he(a, new Tn()), he(j, new le()), he(j, new le()), X = new le(), n = 0; n < p; n++) for (t = (qe(n, v.c.length), u(v.c[n], 25)), De = (qe(n, a.c.length), u(a.c[n], 92)), E = new Tn(), sn(a.c, E), Ke = (qe(n, j.c.length), u(j.c[n], 16)), D = new le(), sn(j.c, D), r = new x(t.a); r.a < r.c.c.length; ) { if (i = u(A(r), 9), SZ(i)) { sn(X.c, i); continue; } - for (l = new fn(dn(bi(i).a.Jc(), new Q())); xn(l); ) - f = u(pn(l), 17), Ye = f.c.i, SZ(Ye) && (Le = u(De.xc(y(Ye, (te(), $t))), 9), Le || (Le = lGe(e, Ye), De.yc(y(Ye, $t), Le), Ke.Ec(Le)), br(f, u(pe(Le.j, 1), 12))); - for (h = new fn(dn(Ht(i).a.Jc(), new Q())); xn(h); ) - f = u(pn(h), 17), yn = f.d.i, SZ(yn) && (M = u(rn(E, y(yn, (te(), $t))), 9), M || (M = lGe(e, yn), ht(E, y(yn, $t), M), sn(D.c, M)), Ki(f, u(pe(M.j, 0), 12))); + for (l = new fn(dn(bi(i).a.Jc(), new Y())); xn(l); ) + f = u(pn(l), 17), Ye = f.c.i, SZ(Ye) && (Le = u(De.xc(y(Ye, (te(), $t))), 9), Le || (Le = aGe(e, Ye), De.yc(y(Ye, $t), Le), Ke.Ec(Le)), br(f, u(pe(Le.j, 1), 12))); + for (h = new fn(dn(Ht(i).a.Jc(), new Y())); xn(h); ) + f = u(pn(h), 17), yn = f.d.i, SZ(yn) && (T = u(rn(E, y(yn, (te(), $t))), 9), T || (T = aGe(e, yn), ht(E, y(yn, $t), T), sn(D.c, T)), Ki(f, u(pe(T.j, 0), 12))); } for (d = 0; d < j.c.length; d++) if (R = (qe(d, j.c.length), u(j.c[d], 16)), !R.dc()) @@ -31750,7 +31840,7 @@ function WDn() { } } function iLn(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni, ps, Yr; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni, ps, Yr; for (ni = new le(), v = new x(n.b); v.a < v.c.c.length; ) for (g = u(A(v), 25), V = new x(g.a); V.a < V.c.c.length; ) { for (J = u(A(V), 9), J.p = -1, d = Yi, De = Yi, Ke = new x(J.j); Ke.a < Ke.c.c.length; ) { @@ -31761,32 +31851,32 @@ function WDn() { } K(J, mC, ie(d)), K(J, vC, ie(De)); } - for (M = 0, p = new x(n.b); p.a < p.c.c.length; ) + for (T = 0, p = new x(n.b); p.a < p.c.c.length; ) for (g = u(A(p), 25), V = new x(g.a); V.a < V.c.c.length; ) - J = u(A(V), 9), J.p < 0 && (ut = new nW(), ut.b = M++, xqe(e, J, ut), sn(ni.c, ut)); + J = u(A(V), 9), J.p < 0 && (ut = new nW(), ut.b = T++, $qe(e, J, ut), sn(ni.c, ut)); for (we = sl(ni.c.length), a = sl(ni.c.length), s = 0; s < ni.c.length; s++) he(we, new le()), he(a, ie(0)); - for (EPn(n, ni, we, a), ps = u(ah(ni, W(krn, FXe, 263, ni.c.length, 0, 1)), 838), X = u(ah(we, W(ro, Kw, 16, we.c.length, 0, 1)), 198), l = W(Wn, lt, 30, a.c.length, 15, 1), f = 0; f < l.length; f++) + for (EPn(n, ni, we, a), ps = u(ah(ni, W(yrn, RXe, 263, ni.c.length, 0, 1)), 838), X = u(ah(we, W(ro, Kw, 16, we.c.length, 0, 1)), 198), l = W(Wn, lt, 30, a.c.length, 15, 1), f = 0; f < l.length; f++) l[f] = (qe(f, a.c.length), u(a.c[f], 15)).a; for (D = 0, R = new le(), h = 0; h < ps.length; h++) l[h] == 0 && sn(R.c, ps[h]); for (E = W(Wn, lt, 30, ps.length, 15, 1); R.c.length != 0; ) for (ut = u(La(R, 0), 263), E[ut.b] = D++; !X[ut.b].dc(); ) Yr = u(X[ut.b].ed(0), 263), --l[Yr.b], l[Yr.b] == 0 && sn(R.c, Yr); - for (e.a = W(krn, FXe, 263, ps.length, 0, 1), c = 0; c < ps.length; c++) + for (e.a = W(yrn, RXe, 263, ps.length, 0, 1), c = 0; c < ps.length; c++) for (j = ps[c], yn = E[c], e.a[yn] = j, j.b = yn, V = new x(j.e); V.a < V.c.c.length; ) J = u(A(V), 9), J.p = yn; return e.a; } function rLn(e, n, t, i, r) { - var c, s, f, h, l, a, d, g, p, v, j, E, M; + var c, s, f, h, l, a, d, g, p, v, j, E, T; for (j = !1, h = !1, g = e + 1, v = (qe(e, n.c.length), u(n.c[e], 186)), f = v.a, l = null, s = 0; s < v.a.c.length; s++) if (c = (qe(s, f.c.length), u(f.c[s], 173)), !c.c) { if (c.b.c.length == 0) { Ta(), P7(v, c), --s, j = !0; continue; } - if (c.k || (l && ZM(l), l = new ZV(l ? l.e + l.d + i : 0, v.f, i), T7(c, l.e + l.d, v.f), he(v.d, l), JY(l, c), c.k = !0), a = null, a = (M = null, s < v.a.c.length - 1 ? M = u(pe(v.a, s + 1), 173) : g < n.c.length && (qe(g, n.c.length), u(n.c[g], 186)).a.c.length != 0 && (M = u(pe((qe(g, n.c.length), u(n.c[g], 186)).a, 0), 173)), M), E = !1, a && (E = !jt(a.j, v)), a) { + if (c.k || (l && ZM(l), l = new ZV(l ? l.e + l.d + i : 0, v.f, i), T7(c, l.e + l.d, v.f), he(v.d, l), JY(l, c), c.k = !0), a = null, a = (T = null, s < v.a.c.length - 1 ? T = u(pe(v.a, s + 1), 173) : g < n.c.length && (qe(g, n.c.length), u(n.c[g], 186)).a.c.length != 0 && (T = u(pe((qe(g, n.c.length), u(n.c[g], 186)).a, 0), 173)), T), E = !1, a && (E = !jt(a.j, v)), a) { if (a.b.c.length != 0 && !ve(me(u(pe(a.b, 0), 26).mf((gh(), yE))))) Ky(c, t - c.s), ZM(c.q), j = j | qjn(v, c, a, t, i); else { @@ -31909,12 +31999,12 @@ function WDn() { i = 16; else if (n == 33) i = 17; - else throw $(new Kn(Yn((Un(), oVe)))); + else throw $(new Kn(Yn((Un(), fVe)))); break; case 35: for (; e.d < e.j && (n = or(e.i, e.d++), n != 41); ) ; - if (n != 41) throw $(new Kn(Yn((Un(), fVe)))); + if (n != 41) throw $(new Kn(Yn((Un(), hVe)))); i = 21; break; default: @@ -31940,8 +32030,8 @@ function WDn() { function cLn(e, n, t) { var i, r, c, s, f, h, l, a, d, g, p, v, j, E; if (t.Tg("Process compaction", 1), !!ve(me(y(n, (Ac(), oae))))) { - for (r = u(y(n, Fb), 86), p = _(H(y(n, uq))), IIn(e, n, r), vOn(n, p / 2 / 2), v = n.b, _d(v, new $ye(r)), l = Nn(v, 0); l.b != l.d.c; ) - if (h = u(Ln(l), 40), !ve(me(y(h, (Bt(), od))))) { + for (r = u(y(n, Fb), 86), p = B(H(y(n, uq))), IIn(e, n, r), vOn(n, p / 2 / 2), v = n.b, Bd(v, new Mye(r)), l = Nn(v, 0); l.b != l.d.c; ) + if (h = u(Ln(l), 40), !ve(me(y(h, (_t(), od))))) { if (i = iTn(h, r), j = YSn(h, n), d = 0, g = 0, i) switch (E = i.e, r.g) { case 2: @@ -31970,41 +32060,41 @@ function WDn() { case 3: d = j.e.b + j.f.b + p, g = d + h.f.b; } - z(y(n, cq)) === z((X6(), wE)) ? (c = d, s = g, f = Zl(mt(new Ge(null, new He(e.a, 16)), new oxe(c, s))), f.a != null ? r == (Mi(), Qr) || r == nc ? h.e.a = d : h.e.b = d : (r == (Mi(), Qr) || r == Io ? f = Zl(mt(XDe(new Ge(null, new He(e.a, 16))), new Mye(c))) : f = Zl(mt(XDe(new Ge(null, new He(e.a, 16))), new Tye(c))), f.a != null && (r == Qr || r == nc ? h.e.a = _(H((An(f.a != null), u(f.a, 49)).a)) : h.e.b = _(H((An(f.a != null), u(f.a, 49)).a)))), f.a != null && (a = dc(e.a, (An(f.a != null), f.a), 0), a > 0 && a != u(y(h, rl), 15).a && (K(h, eae, (en(), !0)), K(h, rl, ie(a))))) : r == (Mi(), Qr) || r == nc ? h.e.a = d : h.e.b = d; + z(y(n, cq)) === z((X6(), wE)) ? (c = d, s = g, f = Zl(mt(new Ge(null, new He(e.a, 16)), new fxe(c, s))), f.a != null ? r == (Mi(), Qr) || r == nc ? h.e.a = d : h.e.b = d : (r == (Mi(), Qr) || r == Io ? f = Zl(mt(KDe(new Ge(null, new He(e.a, 16))), new Tye(c))) : f = Zl(mt(KDe(new Ge(null, new He(e.a, 16))), new Sye(c))), f.a != null && (r == Qr || r == nc ? h.e.a = B(H((An(f.a != null), u(f.a, 49)).a)) : h.e.b = B(H((An(f.a != null), u(f.a, 49)).a)))), f.a != null && (a = dc(e.a, (An(f.a != null), f.a), 0), a > 0 && a != u(y(h, rl), 15).a && (K(h, eae, (en(), !0)), K(h, rl, ie(a))))) : r == (Mi(), Qr) || r == nc ? h.e.a = d : h.e.b = d; } t.Ug(); } } function uLn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V; if (t.Tg("Coffman-Graham Layering", 1), n.a.c.length == 0) { t.Ug(); return; } for (V = u(y(n, (ae(), Rhe)), 15).a, h = 0, s = 0, g = new x(n.a); g.a < g.c.c.length; ) - for (d = u(A(g), 9), d.p = h++, c = new fn(dn(Ht(d).a.Jc(), new Q())); xn(c); ) + for (d = u(A(g), 9), d.p = h++, c = new fn(dn(Ht(d).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), r.p = s++; - for (e.d = W(zu, zf, 30, h, 16, 1), e.a = W(zu, zf, 30, s, 16, 1), e.b = W(Wn, lt, 30, h, 15, 1), e.e = W(Wn, lt, 30, h, 15, 1), e.f = W(Wn, lt, 30, h, 15, 1), cM(e.c), k7n(e, n), v = new i$(new z8e(e)), J = new x(n.a); J.a < J.c.c.length; ) { - for (D = u(A(J), 9), c = new fn(dn(bi(D).a.Jc(), new Q())); xn(c); ) + for (e.d = W(zu, zf, 30, h, 16, 1), e.a = W(zu, zf, 30, s, 16, 1), e.b = W(Wn, lt, 30, h, 15, 1), e.e = W(Wn, lt, 30, h, 15, 1), e.f = W(Wn, lt, 30, h, 15, 1), cM(e.c), k7n(e, n), v = new i$(new W8e(e)), J = new x(n.a); J.a < J.c.c.length; ) { + for (D = u(A(J), 9), c = new fn(dn(bi(D).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), e.a[r.p] || ++e.b[D.p]; e.b[D.p] == 0 && e3(Xv(v, D), b5); } for (f = 0; v.b.c.length != 0; ) - for (D = u(aN(v), 9), e.f[D.p] = f++, c = new fn(dn(Ht(D).a.Jc(), new Q())); xn(c); ) + for (D = u(aN(v), 9), e.f[D.p] = f++, c = new fn(dn(Ht(D).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), !e.a[r.p] && (E = r.d.i, --e.b[E.p], Je(e.c, E, ie(e.f[D.p])), e.b[E.p] == 0 && e3(Xv(v, E), b5)); - for (p = new i$(new W8e(e)), R = new x(n.a); R.a < R.c.c.length; ) { - for (D = u(A(R), 9), c = new fn(dn(Ht(D).a.Jc(), new Q())); xn(c); ) + for (p = new i$(new X8e(e)), R = new x(n.a); R.a < R.c.c.length; ) { + for (D = u(A(R), 9), c = new fn(dn(Ht(D).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), e.a[r.p] || ++e.e[D.p]; e.e[D.p] == 0 && e3(Xv(p, D), b5); } - for (a = new le(), i = CIe(n, a); p.b.c.length != 0; ) - for (M = u(aN(p), 9), (i.a.c.length >= V || !ykn(M, i)) && (i = CIe(n, a)), Ni(M, i), c = new fn(dn(bi(M).a.Jc(), new Q())); xn(c); ) + for (a = new le(), i = PIe(n, a); p.b.c.length != 0; ) + for (T = u(aN(p), 9), (i.a.c.length >= V || !ykn(T, i)) && (i = PIe(n, a)), Ni(T, i), c = new fn(dn(bi(T).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), !e.a[r.p] && (j = r.c.i, --e.e[j.p], e.e[j.p] == 0 && e3(Xv(p, j), b5)); for (l = a.c.length - 1; l >= 0; --l) he(n.b, (qe(l, a.c.length), u(a.c[l], 25))); n.a.c.length = 0, t.Ug(); } - function zze(e) { + function Wze(e) { var n, t, i, r, c, s, f, h, l; for (e.b = 1, vt(e), n = null, e.c == 0 && e.a == 94 ? (vt(e), n = (kt(), kt(), new Xs(4)), ru(n, 0, R5), f = new Xs(4)) : f = (kt(), kt(), new Xs(4)), r = !0; (l = e.c) != 1; ) { if (l == 0 && e.a == 93 && !r) { @@ -32036,7 +32126,7 @@ function WDn() { t = vte(e); } else if (l == 24 && !r) { - if (n && (I9(n, f), f = n), c = zze(e), I9(f, c), e.c != 0 || e.a != 93) throw $(new Kn(Yn((Un(), mVe)))); + if (n && (I9(n, f), f = n), c = Wze(e), I9(f, c), e.c != 0 || e.a != 93) throw $(new Kn(Yn((Un(), vVe)))); break; } if (vt(e), !i) { @@ -32059,7 +32149,7 @@ function WDn() { if (s == 93) throw $(new Kn(Yn((Un(), Nue)))); if (s == 45) throw $(new Kn(Yn((Un(), pJ)))); } else l == 10 && (s = vte(e)); - if (vt(e), t > s) throw $(new Kn(Yn((Un(), yVe)))); + if (vt(e), t > s) throw $(new Kn(Yn((Un(), jVe)))); ru(f, t, s); } } @@ -32069,21 +32159,21 @@ function WDn() { if (e.c == 1) throw $(new Kn(Yn((Un(), OS)))); return S2(f), T9(f), e.b = 0, vt(e), f; } - function Wze(e, n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; + function Xze(e, n) { + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; J = !1; do for (J = !1, c = n ? new Fl(e.a.b).a.gc() - 2 : 1; n ? c >= 0 : c < new Fl(e.a.b).a.gc(); c += n ? -1 : 1) for (r = kQ(e.a, ie(c)), p = 0; p < r.b; p++) - if (d = u(qc(r, p), 9), !!Et(d, (te(), _t)) && !($7n(e.a, ie(c)) && e.r == (G1(), s4) || M7n(e.a, ie(c)) && e.r == (G1(), Jk))) { - for (R = !0, M = 0; M < r.b; M++) - E = u(qc(r, M), 9), Et(E, _t) && (n && u(y(d, _t), 15).a < u(y(E, _t), 15).a || !n && u(y(d, _t), 15).a > u(y(E, _t), 15).a) && (R = !1); + if (d = u(qc(r, p), 9), !!Et(d, (te(), Bt)) && !($7n(e.a, ie(c)) && e.r == (G1(), s4) || M7n(e.a, ie(c)) && e.r == (G1(), Jk))) { + for (R = !0, T = 0; T < r.b; T++) + E = u(qc(r, T), 9), Et(E, Bt) && (n && u(y(d, Bt), 15).a < u(y(E, Bt), 15).a || !n && u(y(d, Bt), 15).a > u(y(E, Bt), 15).a) && (R = !1); if (R) { for (h = n ? c + 1 : c - 1, f = kQ(e.a, ie(h)), s = !1, D = !0, i = !1, a = Nn(f, 0); a.b != a.d.c; ) - l = u(Ln(a), 9), Et(l, _t) ? l.p != d.p && (s = s | (n ? u(y(l, _t), 15).a < u(y(d, _t), 15).a : u(y(l, _t), 15).a > u(y(d, _t), 15).a), D = !1) : !s && D && l.k == (cn(), _c) && (i = !0, n ? g = u(pn(new fn(dn(bi(l).a.Jc(), new Q()))), 17).c.i : g = u(pn(new fn(dn(Ht(l).a.Jc(), new Q()))), 17).d.i, g == d && (n ? t = u(pn(new fn(dn(Ht(l).a.Jc(), new Q()))), 17).d.i : t = u(pn(new fn(dn(bi(l).a.Jc(), new Q()))), 17).c.i, (n ? u(uw(e.a, t), 15).a - u(uw(e.a, g), 15).a : u(uw(e.a, g), 15).a - u(uw(e.a, t), 15).a) <= 2 && (D = !1))); - if (i && D && (n ? t = u(pn(new fn(dn(Ht(d).a.Jc(), new Q()))), 17).d.i : t = u(pn(new fn(dn(bi(d).a.Jc(), new Q()))), 17).c.i, (n ? u(uw(e.a, t), 15).a - u(uw(e.a, d), 15).a : u(uw(e.a, d), 15).a - u(uw(e.a, t), 15).a) <= 2 && t.k == (cn(), si) && (D = !1)), s || D) { - for (j = THe(e, d, n); j.a.gc() != 0; ) - v = u(j.a.ec().Jc().Pb(), 9), j.a.Ac(v) != null, wr(j, THe(e, v, n)); + l = u(Ln(a), 9), Et(l, Bt) ? l.p != d.p && (s = s | (n ? u(y(l, Bt), 15).a < u(y(d, Bt), 15).a : u(y(l, Bt), 15).a > u(y(d, Bt), 15).a), D = !1) : !s && D && l.k == (cn(), Bc) && (i = !0, n ? g = u(pn(new fn(dn(bi(l).a.Jc(), new Y()))), 17).c.i : g = u(pn(new fn(dn(Ht(l).a.Jc(), new Y()))), 17).d.i, g == d && (n ? t = u(pn(new fn(dn(Ht(l).a.Jc(), new Y()))), 17).d.i : t = u(pn(new fn(dn(bi(l).a.Jc(), new Y()))), 17).c.i, (n ? u(uw(e.a, t), 15).a - u(uw(e.a, g), 15).a : u(uw(e.a, g), 15).a - u(uw(e.a, t), 15).a) <= 2 && (D = !1))); + if (i && D && (n ? t = u(pn(new fn(dn(Ht(d).a.Jc(), new Y()))), 17).d.i : t = u(pn(new fn(dn(bi(d).a.Jc(), new Y()))), 17).c.i, (n ? u(uw(e.a, t), 15).a - u(uw(e.a, d), 15).a : u(uw(e.a, d), 15).a - u(uw(e.a, t), 15).a) <= 2 && t.k == (cn(), si) && (D = !1)), s || D) { + for (j = SHe(e, d, n); j.a.gc() != 0; ) + v = u(j.a.ec().Jc().Pb(), 9), j.a.Ac(v) != null, wr(j, SHe(e, v, n)); --p, J = !0; } } @@ -32091,52 +32181,52 @@ function WDn() { while (J); } function sLn(e) { - Rn(e.c, nt, I(T(ke, 1), oe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#decimal"])), Rn(e.d, nt, I(T(ke, 1), oe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#integer"])), Rn(e.e, nt, I(T(ke, 1), oe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#boolean"])), Rn(e.f, nt, I(T(ke, 1), oe, 2, 6, [ar, "EBoolean", gt, "EBoolean:Object"])), Rn(e.i, nt, I(T(ke, 1), oe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#byte"])), Rn(e.g, nt, I(T(ke, 1), oe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#hexBinary"])), Rn(e.j, nt, I(T(ke, 1), oe, 2, 6, [ar, "EByte", gt, "EByte:Object"])), Rn(e.n, nt, I(T(ke, 1), oe, 2, 6, [ar, "EChar", gt, "EChar:Object"])), Rn(e.t, nt, I(T(ke, 1), oe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#double"])), Rn(e.u, nt, I(T(ke, 1), oe, 2, 6, [ar, "EDouble", gt, "EDouble:Object"])), Rn(e.F, nt, I(T(ke, 1), oe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#float"])), Rn(e.G, nt, I(T(ke, 1), oe, 2, 6, [ar, "EFloat", gt, "EFloat:Object"])), Rn(e.I, nt, I(T(ke, 1), oe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#int"])), Rn(e.J, nt, I(T(ke, 1), oe, 2, 6, [ar, "EInt", gt, "EInt:Object"])), Rn(e.N, nt, I(T(ke, 1), oe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#long"])), Rn(e.O, nt, I(T(ke, 1), oe, 2, 6, [ar, "ELong", gt, "ELong:Object"])), Rn(e.Z, nt, I(T(ke, 1), oe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#short"])), Rn(e.$, nt, I(T(ke, 1), oe, 2, 6, [ar, "EShort", gt, "EShort:Object"])), Rn(e._, nt, I(T(ke, 1), oe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#string"])); + Rn(e.c, nt, I(S(ye, 1), fe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#decimal"])), Rn(e.d, nt, I(S(ye, 1), fe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#integer"])), Rn(e.e, nt, I(S(ye, 1), fe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#boolean"])), Rn(e.f, nt, I(S(ye, 1), fe, 2, 6, [ar, "EBoolean", gt, "EBoolean:Object"])), Rn(e.i, nt, I(S(ye, 1), fe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#byte"])), Rn(e.g, nt, I(S(ye, 1), fe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#hexBinary"])), Rn(e.j, nt, I(S(ye, 1), fe, 2, 6, [ar, "EByte", gt, "EByte:Object"])), Rn(e.n, nt, I(S(ye, 1), fe, 2, 6, [ar, "EChar", gt, "EChar:Object"])), Rn(e.t, nt, I(S(ye, 1), fe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#double"])), Rn(e.u, nt, I(S(ye, 1), fe, 2, 6, [ar, "EDouble", gt, "EDouble:Object"])), Rn(e.F, nt, I(S(ye, 1), fe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#float"])), Rn(e.G, nt, I(S(ye, 1), fe, 2, 6, [ar, "EFloat", gt, "EFloat:Object"])), Rn(e.I, nt, I(S(ye, 1), fe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#int"])), Rn(e.J, nt, I(S(ye, 1), fe, 2, 6, [ar, "EInt", gt, "EInt:Object"])), Rn(e.N, nt, I(S(ye, 1), fe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#long"])), Rn(e.O, nt, I(S(ye, 1), fe, 2, 6, [ar, "ELong", gt, "ELong:Object"])), Rn(e.Z, nt, I(S(ye, 1), fe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#short"])), Rn(e.$, nt, I(S(ye, 1), fe, 2, 6, [ar, "EShort", gt, "EShort:Object"])), Rn(e._, nt, I(S(ye, 1), fe, 2, 6, [ar, "http://www.w3.org/2001/XMLSchema#string"])); } function ae() { - ae = G, AH = (tt(), Msn), ele = Tsn, oE = Ssn, Mf = Isn, sp = Sde, w0 = Ide, vg = Cde, c4 = Pde, u4 = Ode, xH = qC, g0 = i1, $H = Csn, Fk = Nde, sC = vm, sE = (pie(), Ntn), mg = Ftn, rd = Rtn, kg = Btn, xin = new nr(CE, ie(0)), r4 = Otn, Zhe = Ltn, am = Dtn, fle = sin, tle = Gtn, ile = Utn, TH = Ytn, rle = Xtn, cle = Vtn, oC = lin, SH = oin, sle = iin, ule = nin, ole = cin, Ghe = wtn, kH = ltn, tC = htn, yH = dtn, Lb = Mtn, Nk = Ttn, mH = Bnn, Che = Jnn, Iin = w4, Cin = UC, Sin = Sg, Tin = b4, nle = (y3(), Pg), new nr(km, nle), Xhe = new N0(12), Whe = new nr(Ml, Xhe), The = (na(), m4), la = new nr(ude, The), wg = new nr(Ss, 0), $in = new nr(oU, ie(1)), WI = new nr(a4, m5), b0 = HC, oi = l8, i4 = vp, min = ME, tl = bsn, ag = wp, Min = new nr(fU, (en(), !0)), dg = TE, a0 = eU, d0 = v0, uC = fd, EH = $g, Mhe = (Mi(), Th), co = new nr(m0, Mhe), Ob = pp, rC = bde, gg = Mg, Ain = sU, Qhe = Mde, Vhe = (E2(), NE), new nr(jde, Vhe), yin = iU, jin = rU, Ein = cU, kin = tU, MH = Jtn, nC = ftn, uE = otn, Rk = _tn, pc = ntn, lm = Cnn, Ok = Inn, n4 = wnn, Ahe = gnn, wH = knn, cE = pnn, gH = Tnn, Hhe = gtn, qhe = ptn, Fhe = Knn, cC = Ctn, jH = ktn, vH = qnn, zhe = xtn, Ihe = Fnn, pH = Rnn, bH = $E, Uhe = mtn, KI = Qen, khe = Ven, XI = Ken, Lhe = Wnn, Ohe = znn, Dhe = Xnn, t4 = mp, Vr = gp, Ya = msn, il = Zq, up = Yq, xhe = jnn, Za = uU, Sk = psn, eC = ksn, Db = Ade, Khe = Esn, bg = Asn, Bhe = itn, _he = ctn, pg = mm, hH = Xen, Jhe = stn, ZI = Lnn, YI = Onn, iC = d4, Rhe = Ynn, Dk = jtn, fE = Lde, $he = Pnn, Yhe = Ptn, She = Dnn, win = Ann, gin = xnn, vin = etn, pin = $nn, Nhe = nU, Lk = ttn, QI = Mnn, $l = bnn, aH = lnn, rE = Zen, lH = enn, VI = ann, Ik = Yen, dH = dnn, lg = hnn, Pk = fnn, bin = onn, hm = nnn, Ck = snn, Ehe = unn, yhe = tnn, jhe = rnn, Phe = Unn; + ae = G, AH = (tt(), Tsn), ele = Ssn, oE = Isn, Mf = Csn, sp = Sde, w0 = Ide, vg = Cde, c4 = Pde, u4 = Ode, xH = qC, g0 = i1, $H = Psn, Fk = Nde, sC = vm, sE = (pie(), Ftn), mg = Rtn, rd = _tn, kg = Btn, $in = new nr(CE, ie(0)), r4 = Ltn, Zhe = Dtn, am = Ntn, fle = oin, tle = Htn, ile = ztn, TH = Ztn, rle = Ktn, cle = Qtn, oC = ain, SH = fin, sle = rin, ule = tin, ole = uin, Ghe = gtn, kH = atn, tC = ltn, yH = btn, Lb = Ttn, Nk = Stn, mH = Bnn, Che = Gnn, Cin = w4, Pin = UC, Iin = Sg, Sin = b4, nle = (y3(), Pg), new nr(km, nle), Xhe = new N0(12), Whe = new nr(Ml, Xhe), The = (na(), m4), la = new nr(ude, The), wg = new nr(Ss, 0), Min = new nr(oU, ie(1)), WI = new nr(a4, m5), b0 = HC, oi = l8, i4 = vp, vin = ME, tl = wsn, ag = wp, Tin = new nr(fU, (en(), !0)), dg = TE, a0 = eU, d0 = v0, uC = fd, EH = $g, Mhe = (Mi(), Th), co = new nr(m0, Mhe), Ob = pp, rC = bde, gg = Mg, xin = sU, Qhe = Mde, Vhe = (E2(), NE), new nr(jde, Vhe), jin = iU, Ein = rU, Ain = cU, yin = tU, MH = Gtn, nC = htn, uE = ftn, Rk = Jtn, pc = ttn, lm = Pnn, Ok = Cnn, n4 = gnn, Ahe = pnn, wH = ynn, cE = mnn, gH = Snn, Hhe = ptn, qhe = mtn, Fhe = Vnn, cC = Ptn, jH = ytn, vH = Unn, zhe = $tn, Ihe = Rnn, pH = _nn, bH = $E, Uhe = vtn, KI = Yen, khe = Qen, XI = Ven, Lhe = Xnn, Ohe = Wnn, Dhe = Knn, t4 = mp, Vr = gp, Ya = vsn, il = Zq, up = Yq, xhe = Enn, Za = uU, Sk = msn, eC = ysn, Db = Ade, Khe = Asn, bg = xsn, _he = rtn, Bhe = utn, pg = mm, hH = Ken, Jhe = otn, ZI = Dnn, YI = Lnn, iC = d4, Rhe = Znn, Dk = Etn, fE = Lde, $he = Onn, Yhe = Otn, She = Nnn, gin = xnn, pin = $nn, kin = ntn, min = Mnn, Nhe = nU, Lk = itn, QI = Tnn, $l = wnn, aH = ann, rE = enn, lH = nnn, VI = dnn, Ik = Zen, dH = bnn, lg = lnn, Pk = hnn, win = fnn, hm = tnn, Ck = onn, Ehe = snn, yhe = inn, jhe = cnn, Phe = znn; } function oLn(e, n, t, i, r, c, s) { var f, h, l, a, d, g, p, v; - return g = u(i.a, 15).a, p = u(i.b, 15).a, d = e.b, v = e.c, f = 0, a = 0, n == (Mi(), Qr) || n == nc ? (a = ey(TRe(pw(du(new Ge(null, new He(t.b, 16)), new Zme()), new Nme()))), d.e.b + d.f.b / 2 > a ? (l = ++p, f = _(H(Ls(dw(du(new Ge(null, new He(t.b, 16)), new lxe(r, l)), new Fme()))))) : (h = ++g, f = _(H(Ls(t3(du(new Ge(null, new He(t.b, 16)), new axe(r, h)), new Rme())))))) : (a = ey(TRe(pw(du(new Ge(null, new He(t.b, 16)), new Gme()), new Lme()))), d.e.a + d.f.a / 2 > a ? (l = ++p, f = _(H(Ls(dw(du(new Ge(null, new He(t.b, 16)), new hxe(r, l)), new Bme()))))) : (h = ++g, f = _(H(Ls(t3(du(new Ge(null, new He(t.b, 16)), new fxe(r, h)), new _me())))))), n == Qr ? (mr(e.a, new ue(_(H(y(d, (Bt(), Yf)))) - r, f)), mr(e.a, new ue(v.e.a + v.f.a + r + c, f)), mr(e.a, new ue(v.e.a + v.f.a + r + c, v.e.b + v.f.b / 2)), mr(e.a, new ue(v.e.a + v.f.a, v.e.b + v.f.b / 2))) : n == nc ? (mr(e.a, new ue(_(H(y(d, (Bt(), Tf)))) + r, d.e.b + d.f.b / 2)), mr(e.a, new ue(d.e.a + d.f.a + r, f)), mr(e.a, new ue(v.e.a - r - c, f)), mr(e.a, new ue(v.e.a - r - c, v.e.b + v.f.b / 2)), mr(e.a, new ue(v.e.a, v.e.b + v.f.b / 2))) : n == Io ? (mr(e.a, new ue(f, _(H(y(d, (Bt(), Yf)))) - r)), mr(e.a, new ue(f, v.e.b + v.f.b + r + c)), mr(e.a, new ue(v.e.a + v.f.a / 2, v.e.b + v.f.b + r + c)), mr(e.a, new ue(v.e.a + v.f.a / 2, v.e.b + v.f.b + r))) : (e.a.b == 0 || (u(lf(e.a), 8).b = _(H(y(d, (Bt(), Tf)))) + r * u(s.b, 15).a), mr(e.a, new ue(f, _(H(y(d, (Bt(), Tf)))) + r * u(s.b, 15).a)), mr(e.a, new ue(f, v.e.b - r * u(s.a, 15).a - c))), new Ar(ie(g), ie(p)); + return g = u(i.a, 15).a, p = u(i.b, 15).a, d = e.b, v = e.c, f = 0, a = 0, n == (Mi(), Qr) || n == nc ? (a = ey(SRe(pw(du(new Ge(null, new He(t.b, 16)), new eve()), new Fme()))), d.e.b + d.f.b / 2 > a ? (l = ++p, f = B(H(Ls(dw(du(new Ge(null, new He(t.b, 16)), new axe(r, l)), new Rme()))))) : (h = ++g, f = B(H(Ls(t3(du(new Ge(null, new He(t.b, 16)), new dxe(r, h)), new _me())))))) : (a = ey(SRe(pw(du(new Ge(null, new He(t.b, 16)), new Hme()), new Dme()))), d.e.a + d.f.a / 2 > a ? (l = ++p, f = B(H(Ls(dw(du(new Ge(null, new He(t.b, 16)), new lxe(r, l)), new Bme()))))) : (h = ++g, f = B(H(Ls(t3(du(new Ge(null, new He(t.b, 16)), new hxe(r, h)), new Jme())))))), n == Qr ? (mr(e.a, new ue(B(H(y(d, (_t(), Yf)))) - r, f)), mr(e.a, new ue(v.e.a + v.f.a + r + c, f)), mr(e.a, new ue(v.e.a + v.f.a + r + c, v.e.b + v.f.b / 2)), mr(e.a, new ue(v.e.a + v.f.a, v.e.b + v.f.b / 2))) : n == nc ? (mr(e.a, new ue(B(H(y(d, (_t(), Tf)))) + r, d.e.b + d.f.b / 2)), mr(e.a, new ue(d.e.a + d.f.a + r, f)), mr(e.a, new ue(v.e.a - r - c, f)), mr(e.a, new ue(v.e.a - r - c, v.e.b + v.f.b / 2)), mr(e.a, new ue(v.e.a, v.e.b + v.f.b / 2))) : n == Io ? (mr(e.a, new ue(f, B(H(y(d, (_t(), Yf)))) - r)), mr(e.a, new ue(f, v.e.b + v.f.b + r + c)), mr(e.a, new ue(v.e.a + v.f.a / 2, v.e.b + v.f.b + r + c)), mr(e.a, new ue(v.e.a + v.f.a / 2, v.e.b + v.f.b + r))) : (e.a.b == 0 || (u(lf(e.a), 8).b = B(H(y(d, (_t(), Tf)))) + r * u(s.b, 15).a), mr(e.a, new ue(f, B(H(y(d, (_t(), Tf)))) + r * u(s.b, 15).a)), mr(e.a, new ue(f, v.e.b - r * u(s.a, 15).a - c))), new Ar(ie(g), ie(p)); } function fLn(e) { var n, t, i, r, c, s, f, h, l, a, d, g, p; - if (s = !0, d = null, i = null, r = null, n = !1, p = Ion, l = null, c = null, f = 0, h = gF(e, f, I0e, C0e), h < e.length && (bn(h, e.length), e.charCodeAt(h) == 58) && (d = (tr(f, h, e.length), e.substr(f, h - f)), f = h + 1), t = d != null && J4(fP, d.toLowerCase()), t) { + if (s = !0, d = null, i = null, r = null, n = !1, p = Con, l = null, c = null, f = 0, h = gF(e, f, I0e, C0e), h < e.length && (bn(h, e.length), e.charCodeAt(h) == 58) && (d = (tr(f, h, e.length), e.substr(f, h - f)), f = h + 1), t = d != null && J4(fP, d.toLowerCase()), t) { if (h = e.lastIndexOf("!/"), h == -1) throw $(new on("no archive separator")); s = !0, i = Go(e, f, ++h), f = h; - } else f >= 0 && _e(e.substr(f, 2), "//") ? (f += 2, h = gF(e, f, E8, A8), i = (tr(f, h, e.length), e.substr(f, h - f)), f = h) : d != null && (f == e.length || (bn(f, e.length), e.charCodeAt(f) != 47)) && (s = !1, h = GX(e, Fu(35), f), h == -1 && (h = e.length), i = (tr(f, h, e.length), e.substr(f, h - f)), f = h); + } else f >= 0 && Be(e.substr(f, 2), "//") ? (f += 2, h = gF(e, f, E8, A8), i = (tr(f, h, e.length), e.substr(f, h - f)), f = h) : d != null && (f == e.length || (bn(f, e.length), e.charCodeAt(f) != 47)) && (s = !1, h = GX(e, Fu(35), f), h == -1 && (h = e.length), i = (tr(f, h, e.length), e.substr(f, h - f)), f = h); if (!t && f < e.length && (bn(f, e.length), e.charCodeAt(f) == 47) && (h = gF(e, f + 1, E8, A8), a = (tr(f + 1, h, e.length), e.substr(f + 1, h - (f + 1))), a.length > 0 && or(a, a.length - 1) == 58 && (r = a, f = h)), f < e.length && (bn(f, e.length), e.charCodeAt(f) == 47) && (++f, n = !0), f < e.length && (bn(f, e.length), e.charCodeAt(f) != 63) && (bn(f, e.length), e.charCodeAt(f) != 35)) { for (g = new le(); f < e.length && (bn(f, e.length), e.charCodeAt(f) != 63) && (bn(f, e.length), e.charCodeAt(f) != 35); ) - h = gF(e, f, E8, A8), he(g, (tr(f, h, e.length), e.substr(f, h - f))), f = h, f < e.length && (bn(f, e.length), e.charCodeAt(f) == 47) && (B6n(e, ++f) || g.c.push("")); - p = W(ke, oe, 2, g.c.length, 6, 1), ah(g, p); + h = gF(e, f, E8, A8), he(g, (tr(f, h, e.length), e.substr(f, h - f))), f = h, f < e.length && (bn(f, e.length), e.charCodeAt(f) == 47) && (_6n(e, ++f) || g.c.push("")); + p = W(ye, fe, 2, g.c.length, 6, 1), ah(g, p); } return f < e.length && (bn(f, e.length), e.charCodeAt(f) == 63) && (h = Vm(e, 35, ++f), h == -1 && (h = e.length), l = (tr(f, h, e.length), e.substr(f, h - f)), f = h), f < e.length && (c = SV(e, ++f)), GCn(s, d, i, r, p, l), new pR(s, d, i, r, n, p, l, c); } function tj(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; if (eu(e.b, n)) { - if (Bo(u(rn(e.b, n), 47), t)) + if (_o(u(rn(e.b, n), 47), t)) return 1; } else ht(e.b, n, new vi()); if (eu(e.b, t)) { - if (Bo(u(rn(e.b, t), 47), n)) + if (_o(u(rn(e.b, t), 47), n)) return -1; } else ht(e.b, t, new vi()); if (eu(e.g, n)) { - if (Bo(u(rn(e.g, n), 47), t)) + if (_o(u(rn(e.g, n), 47), t)) return -1; } else ht(e.g, n, new vi()); if (eu(e.g, t)) { - if (Bo(u(rn(e.b, t), 47), n)) + if (_o(u(rn(e.b, t), 47), n)) return 1; } else ht(e.g, t, new vi()); - if (e.e == (ta(), BH) || !Et(n, (te(), _t)) || !Et(t, (te(), _t))) { + if (e.e == (ta(), _H) || !Et(n, (te(), Bt)) || !Et(t, (te(), Bt))) { for (g = null, a = new x(n.j); a.a < a.c.c.length; ) if (h = u(A(a), 12), h.e.c.length != 0 && u(pe(h.e, 0), 17).c.i.c.p == n.c.p - 1) { g = u(pe(h.e, 0), 17).c; @@ -32158,31 +32248,31 @@ function WDn() { return r = HF(e, n), s = HF(e, t), r > s ? (Gs(e, n, t), 1) : (Gs(e, t, n), -1); } for (D = e.f, R = 0, J = D.length; R < J; ++R) { - if (M = D[R], M == d) + if (T = D[R], T == d) return Gs(e, t, n), -1; - if (M == p) + if (T == p) return Gs(e, n, t), 1; } } if (g && !v || !g && v) { - if (i = Kze(e, n, t), i != 0) + if (i = Vze(e, n, t), i != 0) return i > 0 ? Gs(e, n, t) : Gs(e, t, n), i; - if (!Et(n, (te(), _t)) || !Et(t, _t)) + if (!Et(n, (te(), Bt)) || !Et(t, Bt)) return c = HF(e, n), f = HF(e, t), c > f ? (Gs(e, n, t), 1) : (Gs(e, t, n), -1); } - if (!g && !v && (i = Kze(e, n, t), i != 0)) + if (!g && !v && (i = Vze(e, n, t), i != 0)) return i > 0 ? Gs(e, n, t) : Gs(e, t, n), i; } - return Et(n, (te(), _t)) && Et(t, _t) ? (c = hb(n, t, e.c, u(y(e.c, id), 15).a), f = hb(t, n, e.c, u(y(e.c, id), 15).a), c > f ? (Gs(e, n, t), 1) : (Gs(e, t, n), -1)) : (Gs(e, t, n), -1); + return Et(n, (te(), Bt)) && Et(t, Bt) ? (c = hb(n, t, e.c, u(y(e.c, id), 15).a), f = hb(t, n, e.c, u(y(e.c, id), 15).a), c > f ? (Gs(e, n, t), 1) : (Gs(e, t, n), -1)) : (Gs(e, t, n), -1); } - function Xze() { - Xze = G, WR(), st = new W0(), Je(st, (be(), Of), Ih), Je(st, Zo, Ih), Je(st, ws, Ih), Je(st, Lf, Ih), Je(st, qu, Ih), Je(st, gs, Ih), Je(st, Lf, Of), Je(st, Ih, Co), Je(st, Of, Co), Je(st, Zo, Co), Je(st, ws, Co), Je(st, Hu, Co), Je(st, Lf, Co), Je(st, qu, Co), Je(st, gs, Co), Je(st, Su, Co), Je(st, Ih, so), Je(st, Of, so), Je(st, Co, so), Je(st, Zo, so), Je(st, ws, so), Je(st, Hu, so), Je(st, Lf, so), Je(st, Su, so), Je(st, oo, so), Je(st, qu, so), Je(st, cs, so), Je(st, gs, so), Je(st, Of, Zo), Je(st, ws, Zo), Je(st, Lf, Zo), Je(st, gs, Zo), Je(st, Of, ws), Je(st, Zo, ws), Je(st, Lf, ws), Je(st, ws, ws), Je(st, qu, ws), Je(st, Ih, Po), Je(st, Of, Po), Je(st, Co, Po), Je(st, so, Po), Je(st, Zo, Po), Je(st, ws, Po), Je(st, Hu, Po), Je(st, Lf, Po), Je(st, oo, Po), Je(st, Su, Po), Je(st, gs, Po), Je(st, qu, Po), Je(st, fu, Po), Je(st, Ih, oo), Je(st, Of, oo), Je(st, Co, oo), Je(st, Zo, oo), Je(st, ws, oo), Je(st, Hu, oo), Je(st, Lf, oo), Je(st, Su, oo), Je(st, gs, oo), Je(st, cs, oo), Je(st, fu, oo), Je(st, Of, Su), Je(st, Zo, Su), Je(st, ws, Su), Je(st, Lf, Su), Je(st, oo, Su), Je(st, gs, Su), Je(st, qu, Su), Je(st, Ih, Gu), Je(st, Of, Gu), Je(st, Co, Gu), Je(st, Zo, Gu), Je(st, ws, Gu), Je(st, Hu, Gu), Je(st, Lf, Gu), Je(st, Su, Gu), Je(st, gs, Gu), Je(st, Of, qu), Je(st, Co, qu), Je(st, so, qu), Je(st, ws, qu), Je(st, Ih, cs), Je(st, Of, cs), Je(st, so, cs), Je(st, Zo, cs), Je(st, ws, cs), Je(st, Hu, cs), Je(st, Lf, cs), Je(st, Lf, fu), Je(st, ws, fu), Je(st, Su, Ih), Je(st, Su, Zo), Je(st, Su, Co), Je(st, Hu, Ih), Je(st, Hu, Of), Je(st, Hu, so); + function Kze() { + Kze = G, WR(), st = new W0(), Je(st, (be(), Of), Ih), Je(st, Zo, Ih), Je(st, ws, Ih), Je(st, Lf, Ih), Je(st, qu, Ih), Je(st, gs, Ih), Je(st, Lf, Of), Je(st, Ih, Co), Je(st, Of, Co), Je(st, Zo, Co), Je(st, ws, Co), Je(st, Hu, Co), Je(st, Lf, Co), Je(st, qu, Co), Je(st, gs, Co), Je(st, Su, Co), Je(st, Ih, so), Je(st, Of, so), Je(st, Co, so), Je(st, Zo, so), Je(st, ws, so), Je(st, Hu, so), Je(st, Lf, so), Je(st, Su, so), Je(st, oo, so), Je(st, qu, so), Je(st, cs, so), Je(st, gs, so), Je(st, Of, Zo), Je(st, ws, Zo), Je(st, Lf, Zo), Je(st, gs, Zo), Je(st, Of, ws), Je(st, Zo, ws), Je(st, Lf, ws), Je(st, ws, ws), Je(st, qu, ws), Je(st, Ih, Po), Je(st, Of, Po), Je(st, Co, Po), Je(st, so, Po), Je(st, Zo, Po), Je(st, ws, Po), Je(st, Hu, Po), Je(st, Lf, Po), Je(st, oo, Po), Je(st, Su, Po), Je(st, gs, Po), Je(st, qu, Po), Je(st, fu, Po), Je(st, Ih, oo), Je(st, Of, oo), Je(st, Co, oo), Je(st, Zo, oo), Je(st, ws, oo), Je(st, Hu, oo), Je(st, Lf, oo), Je(st, Su, oo), Je(st, gs, oo), Je(st, cs, oo), Je(st, fu, oo), Je(st, Of, Su), Je(st, Zo, Su), Je(st, ws, Su), Je(st, Lf, Su), Je(st, oo, Su), Je(st, gs, Su), Je(st, qu, Su), Je(st, Ih, Gu), Je(st, Of, Gu), Je(st, Co, Gu), Je(st, Zo, Gu), Je(st, ws, Gu), Je(st, Hu, Gu), Je(st, Lf, Gu), Je(st, Su, Gu), Je(st, gs, Gu), Je(st, Of, qu), Je(st, Co, qu), Je(st, so, qu), Je(st, ws, qu), Je(st, Ih, cs), Je(st, Of, cs), Je(st, so, cs), Je(st, Zo, cs), Je(st, ws, cs), Je(st, Hu, cs), Je(st, Lf, cs), Je(st, Lf, fu), Je(st, ws, fu), Je(st, Su, Ih), Je(st, Su, Zo), Je(st, Su, Co), Je(st, Hu, Ih), Je(st, Hu, Of), Je(st, Hu, so); } function hLn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X; - switch (t.Tg("Brandes & Koepf node placement", 1), e.a = n, e.c = HSn(n), i = u(y(n, (ae(), jH)), 282), p = ve(me(y(n, Dk))), e.d = i == (D7(), FI) && !p || i == WG, NCn(e, n), V = null, X = null, M = null, D = null, E = (Qs(4, Ww), new bu(4)), u(y(n, jH), 282).g) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X; + switch (t.Tg("Brandes & Koepf node placement", 1), e.a = n, e.c = HSn(n), i = u(y(n, (ae(), jH)), 282), p = ve(me(y(n, Dk))), e.d = i == (D7(), FI) && !p || i == WG, NCn(e, n), V = null, X = null, T = null, D = null, E = (Qs(4, Ww), new bu(4)), u(y(n, jH), 282).g) { case 3: - M = new C2(n, e.c.d, (uh(), p0), (Rh(), e1)), sn(E.c, M); + T = new C2(n, e.c.d, (uh(), p0), (Rh(), e1)), sn(E.c, T); break; case 1: D = new C2(n, e.c.d, (uh(), Ah), (Rh(), e1)), sn(E.c, D); @@ -32194,36 +32284,36 @@ function WDn() { X = new C2(n, e.c.d, (uh(), Ah), (Rh(), Nb)), sn(E.c, X); break; default: - M = new C2(n, e.c.d, (uh(), p0), (Rh(), e1)), D = new C2(n, e.c.d, Ah, e1), V = new C2(n, e.c.d, p0, Nb), X = new C2(n, e.c.d, Ah, Nb), sn(E.c, V), sn(E.c, X), sn(E.c, M), sn(E.c, D); + T = new C2(n, e.c.d, (uh(), p0), (Rh(), e1)), D = new C2(n, e.c.d, Ah, e1), V = new C2(n, e.c.d, p0, Nb), X = new C2(n, e.c.d, Ah, Nb), sn(E.c, V), sn(E.c, X), sn(E.c, T), sn(E.c, D); } - for (r = new ixe(n, e.c), f = new x(E); f.a < f.c.c.length; ) + for (r = new rxe(n, e.c), f = new x(E); f.a < f.c.c.length; ) c = u(A(f), 185), jOn(r, c, e.b), vIn(c); - for (g = new A_e(n, e.c), h = new x(E); h.a < h.c.c.length; ) + for (g = new xBe(n, e.c), h = new x(E); h.a < h.c.c.length; ) c = u(A(h), 185), XCn(g, c); if (t.$g()) for (l = new x(E); l.a < l.c.c.length; ) c = u(A(l), 185), t.ah(c + " size is " + hR(c)); - if (d = null, e.d && (a = bOn(e, E, e.c.d), MUe(n, a, t) && (d = a)), !d) + if (d = null, e.d && (a = bOn(e, E, e.c.d), TUe(n, a, t) && (d = a)), !d) for (l = new x(E); l.a < l.c.c.length; ) - c = u(A(l), 185), MUe(n, c, t) && (!d || hR(d) > hR(c)) && (d = c); + c = u(A(l), 185), TUe(n, c, t) && (!d || hR(d) > hR(c)) && (d = c); for (!d && (d = (qe(0, E.c.length), u(E.c[0], 185))), j = new x(n.b); j.a < j.c.c.length; ) for (v = u(A(j), 25), J = new x(v.a); J.a < J.c.c.length; ) - R = u(A(J), 9), R.n.b = _(d.p[R.p]) + _(d.d[R.p]); - for (t.$g() && (t.ah("Chosen node placement: " + d), t.ah("Blocks: " + RGe(d)), t.ah("Classes: " + sxn(d, t)), t.ah("Marked edges: " + e.b)), s = new x(E); s.a < s.c.c.length; ) + R = u(A(J), 9), R.n.b = B(d.p[R.p]) + B(d.d[R.p]); + for (t.$g() && (t.ah("Chosen node placement: " + d), t.ah("Blocks: " + _Ge(d)), t.ah("Classes: " + sxn(d, t)), t.ah("Marked edges: " + e.b)), s = new x(E); s.a < s.c.c.length; ) c = u(A(s), 185), c.g = null, c.b = null, c.a = null, c.d = null, c.j = null, c.i = null, c.p = null; Emn(e.c), e.b.a.$b(), t.Ug(); } - function Kze(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke; + function Vze(e, n, t) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke; if (n.k == (cn(), yi) && t.k == si) return c = u(pe(u(Vp(Zl(mt(new Ge(null, new He(n.j, 16)), new rA()))), 12).e, 0), 17).c, r = c.i, f = u(pe(u(Vp(Zl(mt(new Ge(null, new He(n.j, 16)), new cA()))), 12).g, 0), 17).d, s = f.i, i = n.c.p, r.c.p != i && s.c.p != i ? 0 : r == t || s == t ? (Gs(e, n, t), 1) : tj(e, r, t); if (n.k == si && t.k == yi) return c = u(pe(u(Vp(Zl(mt(new Ge(null, new He(t.j, 16)), new rA()))), 12).e, 0), 17).c, r = c.i, f = u(pe(u(Vp(Zl(mt(new Ge(null, new He(t.j, 16)), new cA()))), 12).g, 0), 17).d, s = f.i, i = n.c.p, r.c.p != i && s.c.p != i ? 0 : r == n || s == n ? (Gs(e, t, n), -1) : tj(e, n, r); if (n.k == yi && t.k == yi) { - if (g = u(pe(u(Vp(Zl(mt(new Ge(null, new He(n.j, 16)), new rA()))), 12).e, 0), 17).c, p = u(pe(u(Vp(Zl(mt(new Ge(null, new He(n.j, 16)), new cA()))), 12).g, 0), 17).d, v = g.i, j = p.i, h = n.c.p, a = !1, d = !1, J = u(pe(u(Vp(Zl(mt(new Ge(null, new He(t.j, 16)), new rA()))), 12).e, 0), 17).c, V = u(pe(u(Vp(Zl(mt(new Ge(null, new He(t.j, 16)), new cA()))), 12).g, 0), 17).d, X = J.i, we = V.i, E = t.c.p, D = !1, R = !1, l = n, M = t, v.c.p == h ? (a = !0, l = v) : j.c.p == h && (d = !0, l = j), X.c.p == E ? (D = !0, M = X) : we.c.p == E && (R = !0, M = we), l == M) + if (g = u(pe(u(Vp(Zl(mt(new Ge(null, new He(n.j, 16)), new rA()))), 12).e, 0), 17).c, p = u(pe(u(Vp(Zl(mt(new Ge(null, new He(n.j, 16)), new cA()))), 12).g, 0), 17).d, v = g.i, j = p.i, h = n.c.p, a = !1, d = !1, J = u(pe(u(Vp(Zl(mt(new Ge(null, new He(t.j, 16)), new rA()))), 12).e, 0), 17).c, V = u(pe(u(Vp(Zl(mt(new Ge(null, new He(t.j, 16)), new cA()))), 12).g, 0), 17).d, X = J.i, we = V.i, E = t.c.p, D = !1, R = !1, l = n, T = t, v.c.p == h ? (a = !0, l = v) : j.c.p == h && (d = !0, l = j), X.c.p == E ? (D = !0, T = X) : we.c.p == E && (R = !0, T = we), l == T) if (e.a) { if (a && D) - return Ke = Qze(new ZQ(e.c, e.f, e.e, null, R), g, J), Ke > 0 ? (Gs(e, t, n), 1) : (Gs(e, n, t), -1); + return Ke = Yze(new ZQ(e.c, e.f, e.e, null, R), g, J), Ke > 0 ? (Gs(e, t, n), 1) : (Gs(e, n, t), -1); if (a && R) return Gs(e, t, n), 1; if (d && D) @@ -32237,31 +32327,31 @@ function WDn() { if (J == De) return Gs(e, n, t), 1; } - return tj(e, l, M); + return tj(e, l, T); } else return 0; } function lLn(e) { - var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn; + var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn; if (e.c.length == 1) - return GBe((qe(0, e.c.length), u(e.c[0], 120))), qe(0, e.c.length), u(e.c[0], 120); + return H_e((qe(0, e.c.length), u(e.c[0], 120))), qe(0, e.c.length), u(e.c[0], 120); if (e.c.length <= 0) return new zy(); for (h = new x(e); h.a < h.c.c.length; ) { - for (s = u(A(h), 120), D = 0, v = pt, j = pt, g = Yi, p = Yi, M = Nn(s.b, 0); M.b != M.d.c; ) - E = u(Ln(M), 40), D += u(y(E, (Ac(), AC)), 15).a, v = m.Math.min(v, E.e.a), j = m.Math.min(j, E.e.b), g = m.Math.max(g, E.e.a + E.f.a), p = m.Math.max(p, E.e.b + E.f.b); - K(s, (Ac(), AC), ie(D)), K(s, (Bt(), f4), new ue(v, j)), K(s, gE, new ue(g, p)); - } - for (ze(), Di(e, new ume()), V = new zy(), Pc(V, (qe(0, e.c.length), u(e.c[0], 105))), d = 0, Ke = 0, l = new x(e); l.a < l.c.c.length; ) - s = u(A(l), 120), X = Fi(kr(u(y(s, (Bt(), gE)), 8)), u(y(s, f4), 8)), d = m.Math.max(d, X.a), Ke += X.a * X.b; - for (d = m.Math.max(d, m.Math.sqrt(Ke) * _(H(y(V, (Ac(), ucn))))), we = _(H(y(V, uq))), Ye = 0, yn = 0, a = 0, n = we, f = new x(e); f.a < f.c.c.length; ) - s = u(A(f), 120), X = Fi(kr(u(y(s, (Bt(), gE)), 8)), u(y(s, f4), 8)), Ye + X.a > d && (Ye = 0, yn += a + we, a = 0), Jqe(V, s, Ye, yn), n = m.Math.max(n, Ye + X.a), a = m.Math.max(a, X.b), Ye += X.a + we; + for (s = u(A(h), 120), D = 0, v = pt, j = pt, g = Yi, p = Yi, T = Nn(s.b, 0); T.b != T.d.c; ) + E = u(Ln(T), 40), D += u(y(E, (Ac(), AC)), 15).a, v = m.Math.min(v, E.e.a), j = m.Math.min(j, E.e.b), g = m.Math.max(g, E.e.a + E.f.a), p = m.Math.max(p, E.e.b + E.f.b); + K(s, (Ac(), AC), ie(D)), K(s, (_t(), f4), new ue(v, j)), K(s, gE, new ue(g, p)); + } + for (ze(), Di(e, new sme()), V = new zy(), Pc(V, (qe(0, e.c.length), u(e.c[0], 105))), d = 0, Ke = 0, l = new x(e); l.a < l.c.c.length; ) + s = u(A(l), 120), X = Fi(kr(u(y(s, (_t(), gE)), 8)), u(y(s, f4), 8)), d = m.Math.max(d, X.a), Ke += X.a * X.b; + for (d = m.Math.max(d, m.Math.sqrt(Ke) * B(H(y(V, (Ac(), scn))))), we = B(H(y(V, uq))), Ye = 0, yn = 0, a = 0, n = we, f = new x(e); f.a < f.c.c.length; ) + s = u(A(f), 120), X = Fi(kr(u(y(s, (_t(), gE)), 8)), u(y(s, f4), 8)), Ye + X.a > d && (Ye = 0, yn += a + we, a = 0), Gqe(V, s, Ye, yn), n = m.Math.max(n, Ye + X.a), a = m.Math.max(a, X.b), Ye += X.a + we; for (J = new Tn(), t = new Tn(), Le = new x(e); Le.a < Le.c.c.length; ) for (De = u(A(Le), 120), i = ve(me(y(De, (tt(), ME)))), R = De.q ? De.q : El, c = R.vc().Jc(); c.Ob(); ) r = u(c.Pb(), 45), eu(J, r.jd()) ? z(u(r.jd(), 147).Rg()) !== z(r.kd()) && (i && eu(t, r.jd()) ? (Ta(), "" + u(r.jd(), 147).Og()) : (ht(J, u(r.jd(), 147), r.kd()), K(V, u(r.jd(), 147), r.kd()), i && ht(t, u(r.jd(), 147), r.kd()))) : (ht(J, u(r.jd(), 147), r.kd()), K(V, u(r.jd(), 147), r.kd())); - return fqe(V, new LP()), GBe(V), V; + return hqe(V, new LP()), H_e(V), V; } - function BT(e, n) { + function _T(e, n) { switch (e.e) { case 0: case 2: @@ -32287,11 +32377,11 @@ function WDn() { case 34: case 36: case 38: - return new iCe(e.b, e.a, n, e.c); + return new rCe(e.b, e.a, n, e.c); case 1: return new Ax(e.a, n, Yt(n.Ah(), e.c)); case 43: - return new U$e(e.a, n, Yt(n.Ah(), e.c)); + return new z$e(e.a, n, Yt(n.Ah(), e.c)); case 3: return new $i(e.a, n, Yt(n.Ah(), e.c)); case 45: @@ -32299,25 +32389,25 @@ function WDn() { case 41: return new es(u(Uo(e.c), 29), e.a, n, Yt(n.Ah(), e.c)); case 50: - return new wNe(u(Uo(e.c), 29), e.a, n, Yt(n.Ah(), e.c)); + return new gNe(u(Uo(e.c), 29), e.a, n, Yt(n.Ah(), e.c)); case 5: return new jK(e.a, n, Yt(n.Ah(), e.c), e.d.n); case 47: - return new sTe(e.a, n, Yt(n.Ah(), e.c), e.d.n); + return new oTe(e.a, n, Yt(n.Ah(), e.c), e.d.n); case 7: return new ne(e.a, n, Yt(n.Ah(), e.c), e.d.n); case 49: return new Qp(e.a, n, Yt(n.Ah(), e.c), e.d.n); case 9: - return new W$e(e.a, n, Yt(n.Ah(), e.c)); + return new X$e(e.a, n, Yt(n.Ah(), e.c)); case 11: - return new z$e(e.a, n, Yt(n.Ah(), e.c)); + return new W$e(e.a, n, Yt(n.Ah(), e.c)); case 13: return new FX(e.a, n, Yt(n.Ah(), e.c)); case 15: - return new _x(e.a, n, Yt(n.Ah(), e.c)); + return new Bx(e.a, n, Yt(n.Ah(), e.c)); case 17: - return new X$e(e.a, n, Yt(n.Ah(), e.c)); + return new K$e(e.a, n, Yt(n.Ah(), e.c)); case 19: return new c2(e.a, n, Yt(n.Ah(), e.c)); case 21: @@ -32325,13 +32415,13 @@ function WDn() { case 23: return new Sy(e.a, n, Yt(n.Ah(), e.c)); case 25: - return new hTe(e.a, n, Yt(n.Ah(), e.c), e.d.n); + return new lTe(e.a, n, Yt(n.Ah(), e.c), e.d.n); case 27: return new Qe(e.a, n, Yt(n.Ah(), e.c), e.d.n); case 29: - return new fTe(e.a, n, Yt(n.Ah(), e.c), e.d.n); + return new hTe(e.a, n, Yt(n.Ah(), e.c), e.d.n); case 31: - return new oTe(e.a, n, Yt(n.Ah(), e.c), e.d.n); + return new fTe(e.a, n, Yt(n.Ah(), e.c), e.d.n); case 33: return new AK(e.a, n, Yt(n.Ah(), e.c), e.d.n); case 35: @@ -32347,30 +32437,30 @@ function WDn() { } } function aLn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut; for (f = new Dt(), we = u(y(t, (ae(), co)), 86), E = 0, i = new vi(), wr(f, (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); f.b != 0; ) - d = u(f.b == 0 ? null : (An(f.b != 0), mo(f, f.a.a)), 26), a = Qt(d), PT(a) && !ve(me(re(d, VI))) && (Pt(d, (te(), _t), ie(E++)), Gf(d, lg) && ki(i, u(re(d, lg), 15))), D = !ve(me(re(d, b0))), D && (p = (!d.a && (d.a = new ne(Qn, d, 10, 11)), d.a).i != 0, j = sjn(d), v = z(re(d, ag)) === z((ea(), r1)), ut = !Gf(d, (tt(), pm)) || ROe(zn(re(d, pm))), V = null, ut && v && (p || j) && (V = bUe(d), K(V, co, we), Et(V, sE) && Uje(new _Z(_(H(y(V, sE)))), V), u(re(d, d0), 182).gc() != 0 && (g = V, fi(new Ge(null, (!d.c && (d.c = new ne(Is, d, 9, 9)), new He(d.c, 16))), new Zke(g)), nqe(d, V))), De = t, Le = u(rn(e.a, Qt(d)), 9), Le && (De = Le.e), J = mze(e, d, De), V && (J.e = V, V.e = J, wr(f, (!d.a && (d.a = new ne(Qn, d, 10, 11)), d.a)))); + d = u(f.b == 0 ? null : (An(f.b != 0), mo(f, f.a.a)), 26), a = Qt(d), PT(a) && !ve(me(re(d, VI))) && (Pt(d, (te(), Bt), ie(E++)), Gf(d, lg) && ki(i, u(re(d, lg), 15))), D = !ve(me(re(d, b0))), D && (p = (!d.a && (d.a = new ne(Qn, d, 10, 11)), d.a).i != 0, j = sjn(d), v = z(re(d, ag)) === z((ea(), r1)), ut = !Gf(d, (tt(), pm)) || _Oe(zn(re(d, pm))), V = null, ut && v && (p || j) && (V = wUe(d), K(V, co, we), Et(V, sE) && zje(new BZ(B(H(y(V, sE)))), V), u(re(d, d0), 182).gc() != 0 && (g = V, fi(new Ge(null, (!d.c && (d.c = new ne(Is, d, 9, 9)), new He(d.c, 16))), new e8e(g)), tqe(d, V))), De = t, Le = u(rn(e.a, Qt(d)), 9), Le && (De = Le.e), J = vze(e, d, De), V && (J.e = V, V.e = J, wr(f, (!d.a && (d.a = new ne(Qn, d, 10, 11)), d.a)))); for (K(t, (te(), id), ie(E)), K(t, eE, ie(i.a.gc())), E = 0, ti(f, n, f.c.b, f.c); f.b != 0; ) { for (s = u(f.b == 0 ? null : (An(f.b != 0), mo(f, f.a.a)), 26), l = new kn((!s.b && (s.b = new ne(xi, s, 12, 3)), s.b)); l.e != l.i.gc(); ) - h = u(En(l), 85), Sqe(h), PT(n) && Pt(h, _t, ie(E++)), Ye = ec(u(F((!h.b && (h.b = new Qe(Cn, h, 4, 7)), h.b), 0), 84)), yn = ec(u(F((!h.c && (h.c = new Qe(Cn, h, 5, 8)), h.c), 0), 84)), !(ve(me(re(h, b0))) || ve(me(re(Ye, b0))) || ve(me(re(yn, b0)))) && (M = ob(h) && ve(me(re(Ye, dg))) && ve(me(re(h, a0))), X = s, M || xw(yn, Ye) ? X = Ye : xw(Ye, yn) && (X = yn), De = t, Le = u(rn(e.a, X), 9), Le && (De = Le.e), R = gie(e, h, X, De), K(R, Tfe, wMn(e, h, n, t))); + h = u(En(l), 85), Iqe(h), PT(n) && Pt(h, Bt, ie(E++)), Ye = ec(u(F((!h.b && (h.b = new Qe(Cn, h, 4, 7)), h.b), 0), 84)), yn = ec(u(F((!h.c && (h.c = new Qe(Cn, h, 5, 8)), h.c), 0), 84)), !(ve(me(re(h, b0))) || ve(me(re(Ye, b0))) || ve(me(re(yn, b0)))) && (T = ob(h) && ve(me(re(Ye, dg))) && ve(me(re(h, a0))), X = s, T || xw(yn, Ye) ? X = Ye : xw(Ye, yn) && (X = yn), De = t, Le = u(rn(e.a, X), 9), Le && (De = Le.e), R = gie(e, h, X, De), K(R, Tfe, wMn(e, h, n, t))); if (v = z(re(s, ag)) === z((ea(), r1)), v) for (c = new kn((!s.a && (s.a = new ne(Qn, s, 10, 11)), s.a)); c.e != c.i.gc(); ) - r = u(En(c), 26), ut = !Gf(r, (tt(), pm)) || ROe(zn(re(r, pm))), Ke = z(re(r, ag)) === z(r1), ut && Ke && ti(f, r, f.c.b, f.c); + r = u(En(c), 26), ut = !Gf(r, (tt(), pm)) || _Oe(zn(re(r, pm))), Ke = z(re(r, ag)) === z(r1), ut && Ke && ti(f, r, f.c.b, f.c); } } - function Vze(e) { + function Qze(e) { var n, t, i, r, c, s, f, h; for (c = 0, r = e.a.b, h = Nn(e.a, 0); h.b != h.d.c; ) { if (f = u(Ln(h), 240), s = (c + 1) / (r + 1), !e.c && !e.d) return; - e.c && !e.d ? (e.g = !0, e.b == (Mi(), Qr) ? (i = e.c.e.b + e.c.f.b + e.e * (c + 1), n = new ue(_(H(y(e.c, (Bt(), Tf)))) + e.e, i), t = new ue(_(H(y(e.c, Yf))) - e.e, i)) : e.b == nc ? (i = e.c.e.b + e.c.f.b + e.e * (c + 1), n = new ue(_(H(y(e.c, (Bt(), Yf)))) - e.e, i), t = new ue(_(H(y(e.c, Tf))) + e.e, i)) : e.b == Io ? (i = e.c.e.a + e.c.f.a + e.e * (c + 1), n = new ue(i, _(H(y(e.c, (Bt(), Tf)))) + e.e), t = new ue(i, _(H(y(e.c, Yf))) - e.e)) : (i = e.c.e.a + e.c.f.a + e.e * (c + 1), n = new ue(i, _(H(y(e.c, (Bt(), Yf)))) - e.e), t = new ue(i, _(H(y(e.c, Tf))) + e.e))) : e.c && e.d ? e.b == (Mi(), Qr) ? (i = e.d.e.b * s + (e.c.e.b + e.c.f.b) * (1 - s), n = new ue(_(H(y(e.c, (Bt(), Tf)))) + e.e, i), t = new ue(_(H(y(e.c, Yf))) - e.e, i)) : e.b == nc ? (i = e.d.e.b * s + (e.c.e.b + e.c.f.b) * (1 - s), n = new ue(_(H(y(e.c, (Bt(), Yf)))) - e.e, i), t = new ue(_(H(y(e.c, Tf))) + e.e, i)) : e.b == Io ? (i = e.d.e.a * s + (e.c.e.a + e.c.f.a) * (1 - s), n = new ue(i, _(H(y(e.c, (Bt(), Tf)))) + e.e), t = new ue(i, _(H(y(e.c, Yf))) - e.e)) : (i = e.d.e.a * s + (e.c.e.a + e.c.f.a) * (1 - s), n = new ue(i, _(H(y(e.c, (Bt(), Yf)))) - e.e), t = new ue(i, _(H(y(e.c, Tf))) + e.e)) : (e.f = !0, e.b == (Mi(), Qr) ? (i = e.d.e.b - e.e * (c + 1), n = new ue(_(H(y(e.d, (Bt(), Tf)))) + e.e, i), t = new ue(_(H(y(e.d, Yf))) - e.e, i)) : e.b == nc ? (i = e.d.e.b - e.e * (c + 1), n = new ue(_(H(y(e.d, (Bt(), Yf)))) - e.e, i), t = new ue(_(H(y(e.d, Tf))) + e.e, i)) : e.b == Io ? (i = e.d.e.a - e.e * (c + 1), n = new ue(i, _(H(y(e.d, (Bt(), Tf)))) + e.e), t = new ue(i, _(H(y(e.d, Yf))) - e.e)) : (i = e.d.e.a - e.e * (c + 1), n = new ue(i, _(H(y(e.d, (Bt(), Yf)))) - e.e), t = new ue(i, _(H(y(e.d, Tf))) + e.e))), u(f.a, 8).a = n.a, u(f.a, 8).b = n.b, f.b.a = t.a, f.b.b = t.b, ++c; + e.c && !e.d ? (e.g = !0, e.b == (Mi(), Qr) ? (i = e.c.e.b + e.c.f.b + e.e * (c + 1), n = new ue(B(H(y(e.c, (_t(), Tf)))) + e.e, i), t = new ue(B(H(y(e.c, Yf))) - e.e, i)) : e.b == nc ? (i = e.c.e.b + e.c.f.b + e.e * (c + 1), n = new ue(B(H(y(e.c, (_t(), Yf)))) - e.e, i), t = new ue(B(H(y(e.c, Tf))) + e.e, i)) : e.b == Io ? (i = e.c.e.a + e.c.f.a + e.e * (c + 1), n = new ue(i, B(H(y(e.c, (_t(), Tf)))) + e.e), t = new ue(i, B(H(y(e.c, Yf))) - e.e)) : (i = e.c.e.a + e.c.f.a + e.e * (c + 1), n = new ue(i, B(H(y(e.c, (_t(), Yf)))) - e.e), t = new ue(i, B(H(y(e.c, Tf))) + e.e))) : e.c && e.d ? e.b == (Mi(), Qr) ? (i = e.d.e.b * s + (e.c.e.b + e.c.f.b) * (1 - s), n = new ue(B(H(y(e.c, (_t(), Tf)))) + e.e, i), t = new ue(B(H(y(e.c, Yf))) - e.e, i)) : e.b == nc ? (i = e.d.e.b * s + (e.c.e.b + e.c.f.b) * (1 - s), n = new ue(B(H(y(e.c, (_t(), Yf)))) - e.e, i), t = new ue(B(H(y(e.c, Tf))) + e.e, i)) : e.b == Io ? (i = e.d.e.a * s + (e.c.e.a + e.c.f.a) * (1 - s), n = new ue(i, B(H(y(e.c, (_t(), Tf)))) + e.e), t = new ue(i, B(H(y(e.c, Yf))) - e.e)) : (i = e.d.e.a * s + (e.c.e.a + e.c.f.a) * (1 - s), n = new ue(i, B(H(y(e.c, (_t(), Yf)))) - e.e), t = new ue(i, B(H(y(e.c, Tf))) + e.e)) : (e.f = !0, e.b == (Mi(), Qr) ? (i = e.d.e.b - e.e * (c + 1), n = new ue(B(H(y(e.d, (_t(), Tf)))) + e.e, i), t = new ue(B(H(y(e.d, Yf))) - e.e, i)) : e.b == nc ? (i = e.d.e.b - e.e * (c + 1), n = new ue(B(H(y(e.d, (_t(), Yf)))) - e.e, i), t = new ue(B(H(y(e.d, Tf))) + e.e, i)) : e.b == Io ? (i = e.d.e.a - e.e * (c + 1), n = new ue(i, B(H(y(e.d, (_t(), Tf)))) + e.e), t = new ue(i, B(H(y(e.d, Yf))) - e.e)) : (i = e.d.e.a - e.e * (c + 1), n = new ue(i, B(H(y(e.d, (_t(), Yf)))) - e.e), t = new ue(i, B(H(y(e.d, Tf))) + e.e))), u(f.a, 8).a = n.a, u(f.a, 8).b = n.b, f.b.a = t.a, f.b.b = t.b, ++c; } } function dLn(e, n, t, i, r, c) { - var s, f, h, l, a, d, g, p, v, j, E, M; + var s, f, h, l, a, d, g, p, v, j, E, T; switch (n) { case 71: - f = i.q.getFullYear() - z1 >= -1900 ? 1 : 0, t >= 4 ? it(e, I(T(ke, 1), oe, 2, 6, [aWe, dWe])[f]) : it(e, I(T(ke, 1), oe, 2, 6, ["BC", "AD"])[f]); + f = i.q.getFullYear() - z1 >= -1900 ? 1 : 0, t >= 4 ? it(e, I(S(ye, 1), fe, 2, 6, [dWe, bWe])[f]) : it(e, I(S(ye, 1), fe, 2, 6, ["BC", "AD"])[f]); break; case 121: Qkn(e, t, i); @@ -32385,10 +32475,10 @@ function WDn() { o$n(e, t, r); break; case 69: - a = i.q.getDay(), t == 5 ? it(e, I(T(ke, 1), oe, 2, 6, ["S", "M", "T", "W", "T", "F", "S"])[a]) : t == 4 ? it(e, I(T(ke, 1), oe, 2, 6, [bB, wB, gB, pB, mB, vB, kB])[a]) : it(e, I(T(ke, 1), oe, 2, 6, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"])[a]); + a = i.q.getDay(), t == 5 ? it(e, I(S(ye, 1), fe, 2, 6, ["S", "M", "T", "W", "T", "F", "S"])[a]) : t == 4 ? it(e, I(S(ye, 1), fe, 2, 6, [b_, w_, g_, p_, m_, v_, k_])[a]) : it(e, I(S(ye, 1), fe, 2, 6, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"])[a]); break; case 97: - r.q.getHours() >= 12 && r.q.getHours() < 24 ? it(e, I(T(ke, 1), oe, 2, 6, ["AM", "PM"])[1]) : it(e, I(T(ke, 1), oe, 2, 6, ["AM", "PM"])[0]); + r.q.getHours() >= 12 && r.q.getHours() < 24 ? it(e, I(S(ye, 1), fe, 2, 6, ["AM", "PM"])[1]) : it(e, I(S(ye, 1), fe, 2, 6, ["AM", "PM"])[0]); break; case 104: d = r.q.getHours() % 12, d == 0 ? bl(e, 12, t) : bl(e, d, t); @@ -32400,16 +32490,16 @@ function WDn() { p = r.q.getHours(), bl(e, p, t); break; case 99: - v = i.q.getDay(), t == 5 ? it(e, I(T(ke, 1), oe, 2, 6, ["S", "M", "T", "W", "T", "F", "S"])[v]) : t == 4 ? it(e, I(T(ke, 1), oe, 2, 6, [bB, wB, gB, pB, mB, vB, kB])[v]) : t == 3 ? it(e, I(T(ke, 1), oe, 2, 6, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"])[v]) : bl(e, v, 1); + v = i.q.getDay(), t == 5 ? it(e, I(S(ye, 1), fe, 2, 6, ["S", "M", "T", "W", "T", "F", "S"])[v]) : t == 4 ? it(e, I(S(ye, 1), fe, 2, 6, [b_, w_, g_, p_, m_, v_, k_])[v]) : t == 3 ? it(e, I(S(ye, 1), fe, 2, 6, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"])[v]) : bl(e, v, 1); break; case 76: - j = i.q.getMonth(), t == 5 ? it(e, I(T(ke, 1), oe, 2, 6, ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"])[j]) : t == 4 ? it(e, I(T(ke, 1), oe, 2, 6, [iB, rB, cB, uB, F3, sB, oB, fB, hB, lB, aB, dB])[j]) : t == 3 ? it(e, I(T(ke, 1), oe, 2, 6, ["Jan", "Feb", "Mar", "Apr", F3, "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"])[j]) : bl(e, j + 1, t); + j = i.q.getMonth(), t == 5 ? it(e, I(S(ye, 1), fe, 2, 6, ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"])[j]) : t == 4 ? it(e, I(S(ye, 1), fe, 2, 6, [i_, r_, c_, u_, F3, s_, o_, f_, h_, l_, a_, d_])[j]) : t == 3 ? it(e, I(S(ye, 1), fe, 2, 6, ["Jan", "Feb", "Mar", "Apr", F3, "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"])[j]) : bl(e, j + 1, t); break; case 81: - E = i.q.getMonth() / 3 | 0, t < 4 ? it(e, I(T(ke, 1), oe, 2, 6, ["Q1", "Q2", "Q3", "Q4"])[E]) : it(e, I(T(ke, 1), oe, 2, 6, ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"])[E]); + E = i.q.getMonth() / 3 | 0, t < 4 ? it(e, I(S(ye, 1), fe, 2, 6, ["Q1", "Q2", "Q3", "Q4"])[E]) : it(e, I(S(ye, 1), fe, 2, 6, ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"])[E]); break; case 100: - M = i.q.getDate(), bl(e, M, t); + T = i.q.getDate(), bl(e, T, t); break; case 109: l = r.q.getMinutes(), bl(e, l, t); @@ -32432,10 +32522,10 @@ function WDn() { return !0; } function gie(e, n, t, i) { - var r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut; - if (Sqe(n), h = u(F((!n.b && (n.b = new Qe(Cn, n, 4, 7)), n.b), 0), 84), a = u(F((!n.c && (n.c = new Qe(Cn, n, 5, 8)), n.c), 0), 84), f = ec(h), l = ec(a), s = (!n.a && (n.a = new ne(Wt, n, 6, 6)), n.a).i == 0 ? null : u(F((!n.a && (n.a = new ne(Wt, n, 6, 6)), n.a), 0), 170), we = u(rn(e.a, f), 9), Ye = u(rn(e.a, l), 9), De = null, yn = null, N(h, 193) && (X = u(rn(e.a, h), 246), N(X, 12) ? De = u(X, 12) : N(X, 9) && (we = u(X, 9), De = u(pe(we.j, 0), 12))), N(a, 193) && (Ke = u(rn(e.a, a), 246), N(Ke, 12) ? yn = u(Ke, 12) : N(Ke, 9) && (Ye = u(Ke, 9), yn = u(pe(Ye.j, 0), 12))), !we || !Ye) + var r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut; + if (Iqe(n), h = u(F((!n.b && (n.b = new Qe(Cn, n, 4, 7)), n.b), 0), 84), a = u(F((!n.c && (n.c = new Qe(Cn, n, 5, 8)), n.c), 0), 84), f = ec(h), l = ec(a), s = (!n.a && (n.a = new ne(Wt, n, 6, 6)), n.a).i == 0 ? null : u(F((!n.a && (n.a = new ne(Wt, n, 6, 6)), n.a), 0), 170), we = u(rn(e.a, f), 9), Ye = u(rn(e.a, l), 9), De = null, yn = null, N(h, 193) && (X = u(rn(e.a, h), 246), N(X, 12) ? De = u(X, 12) : N(X, 9) && (we = u(X, 9), De = u(pe(we.j, 0), 12))), N(a, 193) && (Ke = u(rn(e.a, a), 246), N(Ke, 12) ? yn = u(Ke, 12) : N(Ke, 9) && (Ye = u(Ke, 9), yn = u(pe(Ye.j, 0), 12))), !we || !Ye) throw $(new Fp("The source or the target of edge " + n + " 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 (j = new z0(), Pc(j, n), K(j, (te(), $t), n), K(j, (ae(), Vr), null), p = u(y(i, ou), 22), we == Ye && p.Ec((Pr(), Ek)), De || (V = (Cr(), yu), Le = null, s && e2(u(y(we, oi), 102)) && (Le = new ue(s.j, s.k), rOe(Le, mw(n)), COe(Le, t), xw(l, f) && (V = bs, At(Le, we.n))), De = PUe(we, Le, V, i)), yn || (V = (Cr(), bs), ut = null, s && e2(u(y(Ye, oi), 102)) && (ut = new ue(s.b, s.c), rOe(ut, mw(n)), COe(ut, t)), yn = PUe(Ye, ut, V, _i(Ye))), br(j, De), Ki(j, yn), (De.e.c.length > 1 || De.g.c.length > 1 || yn.e.c.length > 1 || yn.g.c.length > 1) && p.Ec((Pr(), jk)), g = new kn((!n.n && (n.n = new ne(vc, n, 1, 7)), n.n)); g.e != g.i.gc(); ) + for (j = new z0(), Pc(j, n), K(j, (te(), $t), n), K(j, (ae(), Vr), null), p = u(y(i, ou), 22), we == Ye && p.Ec((Pr(), Ek)), De || (V = (Cr(), yu), Le = null, s && e2(u(y(we, oi), 102)) && (Le = new ue(s.j, s.k), cOe(Le, mw(n)), POe(Le, t), xw(l, f) && (V = bs, At(Le, we.n))), De = OUe(we, Le, V, i)), yn || (V = (Cr(), bs), ut = null, s && e2(u(y(Ye, oi), 102)) && (ut = new ue(s.b, s.c), cOe(ut, mw(n)), POe(ut, t)), yn = OUe(Ye, ut, V, Bi(Ye))), br(j, De), Ki(j, yn), (De.e.c.length > 1 || De.g.c.length > 1 || yn.e.c.length > 1 || yn.g.c.length > 1) && p.Ec((Pr(), jk)), g = new kn((!n.n && (n.n = new ne(vc, n, 1, 7)), n.n)); g.e != g.i.gc(); ) if (d = u(En(g), 157), !ve(me(re(d, b0))) && d.a) switch (E = KN(d), he(j.b, E), u(y(E, il), 279).g) { case 1: @@ -32445,7 +32535,7 @@ function WDn() { case 0: p.Ec((Pr(), Q5)), K(E, il, (lh(), g4)); } - if (c = u(y(i, Ok), 301), M = u(y(i, cC), 328), r = c == (t9(), Kj) || M == (u9(), FH), s && (!s.a && (s.a = new $i(fo, s, 5)), s.a).i != 0 && r) { + if (c = u(y(i, Ok), 301), T = u(y(i, cC), 328), r = c == (t9(), Kj) || T == (u9(), FH), s && (!s.a && (s.a = new $i(fo, s, 5)), s.a).i != 0 && r) { for (D = lEn(s), v = new ms(), J = Nn(D, 0); J.b != J.d.c; ) R = u(Ln(J), 8), rt(v, new vr(R)); K(j, Pfe, v); @@ -32453,24 +32543,24 @@ function WDn() { return j; } function bLn(e, n, t, i) { - var r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni; - for (Le = 0, Ke = 0, we = new Tn(), V = u(Ls(dw(du(new Ge(null, new He(e.b, 16)), new Jme()), new Dme())), 15).a + 1, De = W(Wn, lt, 30, V, 15, 1), E = W(Wn, lt, 30, V, 15, 1), j = 0; j < V; j++) + var r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni; + for (Le = 0, Ke = 0, we = new Tn(), V = u(Ls(dw(du(new Ge(null, new He(e.b, 16)), new Gme()), new Nme())), 15).a + 1, De = W(Wn, lt, 30, V, 15, 1), E = W(Wn, lt, 30, V, 15, 1), j = 0; j < V; j++) De[j] = 0, E[j] = 0; - for (h = u(fs(rQ(new Ge(null, new He(e.a, 16))), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), a = h.Jc(); a.Ob(); ) + for (h = u(fs(rQ(new Ge(null, new He(e.a, 16))), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), a = h.Jc(); a.Ob(); ) if (l = u(a.Pb(), 65), yn = u(y(l.b, (Ac(), rl)), 15).a, ni = u(y(l.c, rl), 15).a, J = ni - yn, J > 1) for (f = yn + 1; f < ni; f++) { - if (d = f, X = u(fs(mt(new Ge(null, new He(e.b, 16)), new Dye(d)), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [_u]))), 16), v = 0, n == (Mi(), Qr) || n == nc) { - for (X.gd(new Qme()), v = 0; v < X.gc() && (M = (f - yn) / (ni - yn), !(u(X.Xb(v), 40).e.b > l.b.e.b * (1 - M) + l.c.e.b * M)); v++) + if (d = f, X = u(fs(mt(new Ge(null, new He(e.b, 16)), new Nye(d)), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [Bu]))), 16), v = 0, n == (Mi(), Qr) || n == nc) { + for (X.gd(new Yme()), v = 0; v < X.gc() && (T = (f - yn) / (ni - yn), !(u(X.Xb(v), 40).e.b > l.b.e.b * (1 - T) + l.c.e.b * T)); v++) ; if (X.gc() > 0 && (ut = l.a.b == 0 ? kr(l.b.e) : u(lf(l.a), 8), R = At(kr(u(X.Xb(X.gc() - 1), 40).e), u(X.Xb(X.gc() - 1), 40).f), g = At(kr(u(X.Xb(0), 40).e), u(X.Xb(0), 40).f), v >= X.gc() - 1 && ut.b > R.b && l.c.e.b > R.b || v <= 0 && ut.b < g.a && l.c.e.b < g.b)) continue; } else { - for (X.gd(new Yme()), v = 0; v < X.gc() && (M = (f - yn) / (ni - yn), !(u(X.Xb(v), 40).e.a > l.b.e.a * (1 - M) + l.c.e.a * M)); v++) + for (X.gd(new Zme()), v = 0; v < X.gc() && (T = (f - yn) / (ni - yn), !(u(X.Xb(v), 40).e.a > l.b.e.a * (1 - T) + l.c.e.a * T)); v++) ; if (X.gc() > 0 && (ut = l.a.b == 0 ? kr(l.b.e) : u(lf(l.a), 8), R = At(kr(u(X.Xb(X.gc() - 1), 40).e), u(X.Xb(X.gc() - 1), 40).f), g = At(kr(u(X.Xb(0), 40).e), u(X.Xb(0), 40).f), v >= X.gc() - 1 && ut.a > R.a && l.c.e.a > R.a || v <= 0 && ut.a < g.a && l.c.e.a < g.a)) continue; } - r = new er(), c = new er(), rt(l.a, r), rt(l.a, c), s = new RL(r, c, l), D = Bh(hl(f, 32), qi(v, Or)), eu(we, Lw(D)) ? (p = u(rn(we, Lw(D)), 662), rt(p.a, s), _l(p.b) ? _d(p.a, new eve()) : _d(p.a, new nve()), Vze(p)) : (p = new i_e(v == 0 ? null : u(X.Xb(v - 1), 40), v == X.gc() ? null : u(X.Xb(v), 40), s, e), ht(we, Lw(D), p)), n == Qr || n == nc ? (p.f && p.d.e.b <= _(H(y(e, (Bt(), tq)))) && ++Le, p.g && p.c.e.b + p.c.f.b >= _(H(y(e, (Bt(), iae)))) && ++Ke) : (p.f && p.d.e.a <= _(H(y(e, (Bt(), nq)))) && ++Le, p.g && p.c.e.a + p.c.f.a >= _(H(y(e, (Bt(), tae)))) && ++Ke); + r = new er(), c = new er(), rt(l.a, r), rt(l.a, c), s = new RL(r, c, l), D = _h(hl(f, 32), qi(v, Or)), eu(we, Lw(D)) ? (p = u(rn(we, Lw(D)), 662), rt(p.a, s), Bl(p.b) ? Bd(p.a, new nve()) : Bd(p.a, new tve()), Qze(p)) : (p = new rBe(v == 0 ? null : u(X.Xb(v - 1), 40), v == X.gc() ? null : u(X.Xb(v), 40), s, e), ht(we, Lw(D), p)), n == Qr || n == nc ? (p.f && p.d.e.b <= B(H(y(e, (_t(), tq)))) && ++Le, p.g && p.c.e.b + p.c.f.b >= B(H(y(e, (_t(), iae)))) && ++Ke) : (p.f && p.d.e.a <= B(H(y(e, (_t(), nq)))) && ++Le, p.g && p.c.e.a + p.c.f.a >= B(H(y(e, (_t(), tae)))) && ++Ke); } else J == 0 ? Pne(l) : J < 0 && (++De[yn], ++E[ni], Ye = oLn(l, n, e, new Ar(ie(Le), ie(Ke)), t, i, new Ar(ie(E[ni]), ie(De[yn]))), Le = u(Ye.a, 15).a, Ke = u(Ye.b, 15).a); } @@ -32480,29 +32570,29 @@ function WDn() { function gLn(e, n, t, i) { var r, c, s, f, h, l, a, d, g, p, v; for (d = Nn(e.b, 0); d.b != d.d.c; ) - if (a = u(Ln(d), 40), !_e(a.c, vS)) - for (c = u(fs(new Ge(null, new He(SAn(a, e), 16)), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 16), n == (Mi(), Qr) || n == nc ? c.gd(new Kme()) : c.gd(new Vme()), v = c.gc(), r = 0; r < v; r++) - s = v == 1 ? 0.5 : (1 + r) / (v + 1), n == Qr ? (l = _(H(y(a, (Bt(), Tf)))), a.e.a + a.f.a + i < l ? mr(u(c.Xb(r), 65).a, new ue(l + t, a.e.b + a.f.b * s)) : u(c.Xb(r), 65).a.b > 0 && (f = u(lf(u(c.Xb(r), 65).a), 8).a, g = a.e.a + a.f.a / 2, h = u(lf(u(c.Xb(r), 65).a), 8).b, p = a.e.b + a.f.b / 2, i > 0 && m.Math.abs(h - p) / (m.Math.abs(f - g) / 40) > 50 && (p > h ? mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a + i / 5.3, a.e.b + a.f.b * s - i / 2)) : mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a + i / 5.3, a.e.b + a.f.b * s + i / 2)))), mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a, a.e.b + a.f.b * s))) : n == nc ? (l = _(H(y(a, (Bt(), Yf)))), a.e.a - i > l ? mr(u(c.Xb(r), 65).a, new ue(l - t, a.e.b + a.f.b * s)) : u(c.Xb(r), 65).a.b > 0 && (f = u(lf(u(c.Xb(r), 65).a), 8).a, g = a.e.a + a.f.a / 2, h = u(lf(u(c.Xb(r), 65).a), 8).b, p = a.e.b + a.f.b / 2, i > 0 && m.Math.abs(h - p) / (m.Math.abs(f - g) / 40) > 50 && (p > h ? mr(u(c.Xb(r), 65).a, new ue(a.e.a - i / 5.3, a.e.b + a.f.b * s - i / 2)) : mr(u(c.Xb(r), 65).a, new ue(a.e.a - i / 5.3, a.e.b + a.f.b * s + i / 2)))), mr(u(c.Xb(r), 65).a, new ue(a.e.a, a.e.b + a.f.b * s))) : n == Io ? (l = _(H(y(a, (Bt(), Tf)))), a.e.b + a.f.b + i < l ? mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s, l + t)) : u(c.Xb(r), 65).a.b > 0 && (f = u(lf(u(c.Xb(r), 65).a), 8).a, g = a.e.a + a.f.a / 2, h = u(lf(u(c.Xb(r), 65).a), 8).b, p = a.e.b + a.f.b / 2, i > 0 && m.Math.abs(f - g) / (m.Math.abs(h - p) / 40) > 50 && (g > f ? mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s - i / 2, a.e.b + i / 5.3 + a.f.b)) : mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s + i / 2, a.e.b + i / 5.3 + a.f.b)))), mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s, a.e.b + a.f.b))) : (l = _(H(y(a, (Bt(), Yf)))), OFe(u(c.Xb(r), 65), e) ? mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s, u(lf(u(c.Xb(r), 65).a), 8).b)) : a.e.b - i > l ? mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s, l - t)) : u(c.Xb(r), 65).a.b > 0 && (f = u(lf(u(c.Xb(r), 65).a), 8).a, g = a.e.a + a.f.a / 2, h = u(lf(u(c.Xb(r), 65).a), 8).b, p = a.e.b + a.f.b / 2, i > 0 && m.Math.abs(f - g) / (m.Math.abs(h - p) / 40) > 50 && (g > f ? mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s - i / 2, a.e.b - i / 5.3)) : mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s + i / 2, a.e.b - i / 5.3)))), mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s, a.e.b))); + if (a = u(Ln(d), 40), !Be(a.c, vS)) + for (c = u(fs(new Ge(null, new He(SAn(a, e), 16)), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 16), n == (Mi(), Qr) || n == nc ? c.gd(new Vme()) : c.gd(new Qme()), v = c.gc(), r = 0; r < v; r++) + s = v == 1 ? 0.5 : (1 + r) / (v + 1), n == Qr ? (l = B(H(y(a, (_t(), Tf)))), a.e.a + a.f.a + i < l ? mr(u(c.Xb(r), 65).a, new ue(l + t, a.e.b + a.f.b * s)) : u(c.Xb(r), 65).a.b > 0 && (f = u(lf(u(c.Xb(r), 65).a), 8).a, g = a.e.a + a.f.a / 2, h = u(lf(u(c.Xb(r), 65).a), 8).b, p = a.e.b + a.f.b / 2, i > 0 && m.Math.abs(h - p) / (m.Math.abs(f - g) / 40) > 50 && (p > h ? mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a + i / 5.3, a.e.b + a.f.b * s - i / 2)) : mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a + i / 5.3, a.e.b + a.f.b * s + i / 2)))), mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a, a.e.b + a.f.b * s))) : n == nc ? (l = B(H(y(a, (_t(), Yf)))), a.e.a - i > l ? mr(u(c.Xb(r), 65).a, new ue(l - t, a.e.b + a.f.b * s)) : u(c.Xb(r), 65).a.b > 0 && (f = u(lf(u(c.Xb(r), 65).a), 8).a, g = a.e.a + a.f.a / 2, h = u(lf(u(c.Xb(r), 65).a), 8).b, p = a.e.b + a.f.b / 2, i > 0 && m.Math.abs(h - p) / (m.Math.abs(f - g) / 40) > 50 && (p > h ? mr(u(c.Xb(r), 65).a, new ue(a.e.a - i / 5.3, a.e.b + a.f.b * s - i / 2)) : mr(u(c.Xb(r), 65).a, new ue(a.e.a - i / 5.3, a.e.b + a.f.b * s + i / 2)))), mr(u(c.Xb(r), 65).a, new ue(a.e.a, a.e.b + a.f.b * s))) : n == Io ? (l = B(H(y(a, (_t(), Tf)))), a.e.b + a.f.b + i < l ? mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s, l + t)) : u(c.Xb(r), 65).a.b > 0 && (f = u(lf(u(c.Xb(r), 65).a), 8).a, g = a.e.a + a.f.a / 2, h = u(lf(u(c.Xb(r), 65).a), 8).b, p = a.e.b + a.f.b / 2, i > 0 && m.Math.abs(f - g) / (m.Math.abs(h - p) / 40) > 50 && (g > f ? mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s - i / 2, a.e.b + i / 5.3 + a.f.b)) : mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s + i / 2, a.e.b + i / 5.3 + a.f.b)))), mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s, a.e.b + a.f.b))) : (l = B(H(y(a, (_t(), Yf)))), LFe(u(c.Xb(r), 65), e) ? mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s, u(lf(u(c.Xb(r), 65).a), 8).b)) : a.e.b - i > l ? mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s, l - t)) : u(c.Xb(r), 65).a.b > 0 && (f = u(lf(u(c.Xb(r), 65).a), 8).a, g = a.e.a + a.f.a / 2, h = u(lf(u(c.Xb(r), 65).a), 8).b, p = a.e.b + a.f.b / 2, i > 0 && m.Math.abs(f - g) / (m.Math.abs(h - p) / 40) > 50 && (g > f ? mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s - i / 2, a.e.b - i / 5.3)) : mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s + i / 2, a.e.b - i / 5.3)))), mr(u(c.Xb(r), 65).a, new ue(a.e.a + a.f.a * s, a.e.b))); } - function Qze(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X; + function Yze(e, n, t) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X; if (s = n, g = t, eu(e.a, s)) { - if (Bo(u(rn(e.a, s), 47), g)) + if (_o(u(rn(e.a, s), 47), g)) return 1; } else ht(e.a, s, new vi()); if (eu(e.a, g)) { - if (Bo(u(rn(e.a, g), 47), s)) + if (_o(u(rn(e.a, g), 47), s)) return -1; } else ht(e.a, g, new vi()); if (eu(e.e, s)) { - if (Bo(u(rn(e.e, s), 47), g)) + if (_o(u(rn(e.e, s), 47), g)) return -1; } else ht(e.e, s, new vi()); if (eu(e.e, g)) { - if (Bo(u(rn(e.a, g), 47), s)) + if (_o(u(rn(e.a, g), 47), s)) return 1; } else ht(e.e, g, new vi()); @@ -32516,30 +32606,30 @@ function WDn() { if (E == D) return Ao(e, s, g, X), X; } - if (a.i.k == (cn(), yi) && E.i.k == yi && h.c.p == v.c.p && h.c.p == s.i.c.p && (J = h.c, r = wRe(J, h, v), r != 0)) + if (a.i.k == (cn(), yi) && E.i.k == yi && h.c.p == v.c.p && h.c.p == s.i.c.p && (J = h.c, r = gRe(J, h, v), r != 0)) return s.j == gn && g.j == gn && (X = -X), r > 0 ? (Ao(e, s, g, X), X) : (Ao(e, g, s, X), -X); - if (i = wRe(u(fs(iD(e.d), ys(new ju(), new Pu(), new ss(), I(T(Ju, 1), ce, 130, 0, [(yo(), _u)]))), 20), h, v), i != 0) + if (i = gRe(u(fs(iD(e.d), ys(new ju(), new Pu(), new ss(), I(S(Ju, 1), ce, 130, 0, [(yo(), Bu)]))), 20), h, v), i != 0) return i > 0 ? (Ao(e, s, g, X), X) : (Ao(e, g, s, X), -X); - if (e.c && (V = UBe(e, s, g), V != 0)) + if (e.c && (V = z_e(e, s, g), V != 0)) return V > 0 ? (Ao(e, s, g, X), X) : (Ao(e, g, s, X), -X); } - return s.g.c.length != 0 && g.g.c.length != 0 ? ((s.j == (be(), an) && g.j == an || s.j == Mn && g.j == Mn) && (X = -X), d = u(y(s, (te(), iH)), 9), M = u(y(g, iH), 9), e.f == (ta(), _H) && d && M && Et(d, _t) && Et(M, _t) ? (f = hb(d, M, e.b, u(y(e.b, id), 15).a), p = hb(M, d, e.b, u(y(e.b, id), 15).a), f > p ? (Ao(e, s, g, X), X) : (Ao(e, g, s, X), -X)) : e.c && (V = UBe(e, s, g), V != 0) ? V > 0 ? (Ao(e, s, g, X), X) : (Ao(e, g, s, X), -X) : (l = 0, j = 0, Et(u(pe(s.g, 0), 17), _t) && (l = hb(u(pe(s.g, 0), 246), u(pe(g.g, 0), 246), e.b, s.g.c.length + s.e.c.length)), Et(u(pe(g.g, 0), 17), _t) && (j = hb(u(pe(g.g, 0), 246), u(pe(s.g, 0), 246), e.b, g.g.c.length + g.e.c.length)), d && d == M || e.g && (e.g._b(d) && (l = u(e.g.xc(d), 15).a), e.g._b(M) && (j = u(e.g.xc(M), 15).a)), l > j ? (Ao(e, s, g, X), X) : (Ao(e, g, s, X), -X))) : s.e.c.length != 0 && g.g.c.length != 0 ? (Ao(e, s, g, X), 1) : s.g.c.length != 0 && g.e.c.length != 0 ? (Ao(e, g, s, X), -1) : Et(s, (te(), _t)) && Et(g, _t) ? (c = s.i.j.c.length, f = hb(s, g, e.b, c), p = hb(g, s, e.b, c), (s.j == (be(), an) && g.j == an || s.j == Mn && g.j == Mn) && (X = -X), f > p ? (Ao(e, s, g, X), X) : (Ao(e, g, s, X), -X)) : (Ao(e, g, s, X), -X); + return s.g.c.length != 0 && g.g.c.length != 0 ? ((s.j == (be(), an) && g.j == an || s.j == Mn && g.j == Mn) && (X = -X), d = u(y(s, (te(), iH)), 9), T = u(y(g, iH), 9), e.f == (ta(), BH) && d && T && Et(d, Bt) && Et(T, Bt) ? (f = hb(d, T, e.b, u(y(e.b, id), 15).a), p = hb(T, d, e.b, u(y(e.b, id), 15).a), f > p ? (Ao(e, s, g, X), X) : (Ao(e, g, s, X), -X)) : e.c && (V = z_e(e, s, g), V != 0) ? V > 0 ? (Ao(e, s, g, X), X) : (Ao(e, g, s, X), -X) : (l = 0, j = 0, Et(u(pe(s.g, 0), 17), Bt) && (l = hb(u(pe(s.g, 0), 246), u(pe(g.g, 0), 246), e.b, s.g.c.length + s.e.c.length)), Et(u(pe(g.g, 0), 17), Bt) && (j = hb(u(pe(g.g, 0), 246), u(pe(s.g, 0), 246), e.b, g.g.c.length + g.e.c.length)), d && d == T || e.g && (e.g._b(d) && (l = u(e.g.xc(d), 15).a), e.g._b(T) && (j = u(e.g.xc(T), 15).a)), l > j ? (Ao(e, s, g, X), X) : (Ao(e, g, s, X), -X))) : s.e.c.length != 0 && g.g.c.length != 0 ? (Ao(e, s, g, X), 1) : s.g.c.length != 0 && g.e.c.length != 0 ? (Ao(e, g, s, X), -1) : Et(s, (te(), Bt)) && Et(g, Bt) ? (c = s.i.j.c.length, f = hb(s, g, e.b, c), p = hb(g, s, e.b, c), (s.j == (be(), an) && g.j == an || s.j == Mn && g.j == Mn) && (X = -X), f > p ? (Ao(e, s, g, X), X) : (Ao(e, g, s, X), -X)) : (Ao(e, g, s, X), -X); } function te() { te = G; var e, n; - $t = new It(Uie), Tfe = new It("coordinateOrigin"), cH = new It("processors"), Mfe = new zt("compoundNode", (en(), !1)), nE = new zt("insideConnections", !1), Pfe = new It("originalBendpoints"), Ofe = new It("originalDummyNodePosition"), Lfe = new It("originalLabelEdge"), xk = new It("representedLabels"), Ak = new It("endLabels"), rm = new It("endLabel.origin"), um = new zt("labelSide", (Zs(), DE)), np = new zt("maxEdgeThickness", 0), Qa = new zt("reversed", !1), sm = new It(VWe), Qf = new zt("longEdgeSource", null), Vo = new zt("longEdgeTarget", null), hg = new zt("longEdgeHasLabelDummies", !1), tE = new zt("longEdgeBeforeLabelDummy", !1), HI = new zt("edgeConstraint", (Hd(), JG)), Ib = new It("inLayerLayoutUnit"), f0 = new zt("inLayerConstraint", (Kl(), Zj)), cm = new zt("inLayerSuccessorConstraint", new le()), Cfe = new zt("inLayerSuccessorConstraintBetweenNonDummies", !1), ds = new It("portDummy"), GI = new zt("crossingHint", ie(0)), ou = new zt("graphProperties", (n = u(Ff(XG), 10), new wo(n, u(af(n, n.length), 10), 0))), Sc = new zt("externalPortSide", (be(), mc)), Ife = new zt("externalPortSize", new er()), eH = new It("externalPortReplacedDummies"), qI = new It("externalPortReplacedDummy"), fa = new zt("externalPortConnections", (e = u(Ff(Mr), 10), new wo(e, u(af(e, e.length), 10), 0))), Cb = new zt(UWe, 0), $fe = new It("barycenterAssociates"), fm = new It("TopSideComments"), tm = new It("BottomSideComments"), JI = new It("CommentConnectionPort"), tH = new zt("inputCollect", !1), rH = new zt("outputCollect", !1), im = new zt("cyclic", !1), Sfe = new It("crossHierarchyMap"), sH = new It("targetOffset"), new zt("splineLabelSize", new er()), ip = new It("spacings"), UI = new zt("partitionConstraint", !1), Sb = new It("breakingPoint.info"), Ffe = new It("splines.survivingEdge"), h0 = new It("splines.route.start"), rp = new It("splines.edgeChain"), Nfe = new It("originalPortConstraints"), Pb = new It("selfLoopHolder"), e4 = new It("splines.nsPortY"), _t = new It("modelOrder"), id = new It("modelOrder.maximum"), eE = new It("modelOrderGroups.cb.number"), iH = new It("longEdgeTargetNode"), td = new zt(jXe, !1), tp = new zt(jXe, !1), nH = new It("layerConstraints.hiddenNodes"), Dfe = new It("layerConstraints.opposidePort"), uH = new It("targetNode.modelOrder"), om = new zt("tarjan.lowlink", ie(pt)), $k = new zt("tarjan.id", ie(-1)), zI = new zt("tarjan.onstack", !1), Uen = new zt("partOfCycle", !1), cp = new It("medianHeuristic.weight"); + $t = new It(Uie), Tfe = new It("coordinateOrigin"), cH = new It("processors"), Mfe = new zt("compoundNode", (en(), !1)), nE = new zt("insideConnections", !1), Pfe = new It("originalBendpoints"), Ofe = new It("originalDummyNodePosition"), Lfe = new It("originalLabelEdge"), xk = new It("representedLabels"), Ak = new It("endLabels"), rm = new It("endLabel.origin"), um = new zt("labelSide", (Zs(), DE)), np = new zt("maxEdgeThickness", 0), Qa = new zt("reversed", !1), sm = new It(QWe), Qf = new zt("longEdgeSource", null), Vo = new zt("longEdgeTarget", null), hg = new zt("longEdgeHasLabelDummies", !1), tE = new zt("longEdgeBeforeLabelDummy", !1), HI = new zt("edgeConstraint", (Hd(), JG)), Ib = new It("inLayerLayoutUnit"), f0 = new zt("inLayerConstraint", (Kl(), Zj)), cm = new zt("inLayerSuccessorConstraint", new le()), Cfe = new zt("inLayerSuccessorConstraintBetweenNonDummies", !1), ds = new It("portDummy"), GI = new zt("crossingHint", ie(0)), ou = new zt("graphProperties", (n = u(Ff(XG), 10), new wo(n, u(af(n, n.length), 10), 0))), Sc = new zt("externalPortSide", (be(), mc)), Ife = new zt("externalPortSize", new er()), eH = new It("externalPortReplacedDummies"), qI = new It("externalPortReplacedDummy"), fa = new zt("externalPortConnections", (e = u(Ff(Mr), 10), new wo(e, u(af(e, e.length), 10), 0))), Cb = new zt(zWe, 0), $fe = new It("barycenterAssociates"), fm = new It("TopSideComments"), tm = new It("BottomSideComments"), JI = new It("CommentConnectionPort"), tH = new zt("inputCollect", !1), rH = new zt("outputCollect", !1), im = new zt("cyclic", !1), Sfe = new It("crossHierarchyMap"), sH = new It("targetOffset"), new zt("splineLabelSize", new er()), ip = new It("spacings"), UI = new zt("partitionConstraint", !1), Sb = new It("breakingPoint.info"), Ffe = new It("splines.survivingEdge"), h0 = new It("splines.route.start"), rp = new It("splines.edgeChain"), Nfe = new It("originalPortConstraints"), Pb = new It("selfLoopHolder"), e4 = new It("splines.nsPortY"), Bt = new It("modelOrder"), id = new It("modelOrder.maximum"), eE = new It("modelOrderGroups.cb.number"), iH = new It("longEdgeTargetNode"), td = new zt(EXe, !1), tp = new zt(EXe, !1), nH = new It("layerConstraints.hiddenNodes"), Dfe = new It("layerConstraints.opposidePort"), uH = new It("targetNode.modelOrder"), om = new zt("tarjan.lowlink", ie(pt)), $k = new zt("tarjan.id", ie(-1)), zI = new zt("tarjan.onstack", !1), zen = new zt("partOfCycle", !1), cp = new It("medianHeuristic.weight"); } function tt() { tt = G; var e, n; - pm = new It(lKe), Tg = new It(aKe), nde = (wl(), Wq), bsn = new Fe(nce, nde), a4 = new Fe(v5, null), wsn = new It(wue), ide = (Kd(), Rt(Vq, I(T(Qq, 1), ce, 299, 0, [Kq]))), $E = new Fe(wS, ide), ME = new Fe(Sj, (en(), !1)), rde = (Mi(), Th), m0 = new Fe($_, rde), sde = (na(), hU), ude = new Fe(Tj, sde), vsn = new Fe(due, !1), fde = (ea(), XC), wp = new Fe(bS, fde), kde = new N0(12), Ml = new Fe(Qw, kde), SE = new Fe(B9, !1), nU = new Fe(pS, !1), IE = new Fe(_9, !1), xde = (Ui(), ad), l8 = new Fe(FB, xde), mm = new It(gS), CE = new It(mj), oU = new It(KT), fU = new It(R9), ade = new ms(), gp = new Fe(ace, ade), psn = new Fe(gce, !1), ksn = new Fe(pce, !1), new Fe(dKe, 0), dde = new O4(), d4 = new Fe(vce, dde), HC = new Fe(Zre, !1), $sn = new Fe(bKe, 1), xg = new It(wKe), Ag = new It(gKe), w4 = new Fe(vj, !1), new Fe(pKe, !0), ie(0), new Fe(mKe, ie(100)), new Fe(vKe, !1), ie(0), new Fe(kKe, ie(4e3)), ie(0), new Fe(yKe, ie(400)), new Fe(jKe, !1), new Fe(EKe, !1), new Fe(AKe, !0), new Fe(xKe, !1), tde = (DM(), gU), gsn = new Fe(bue, tde), lde = (B6(), RE), jsn = new Fe($Ke, lde), hde = (Dv(), PE), ysn = new Fe(MKe, hde), Msn = new Fe(Jre, 10), Tsn = new Fe(Gre, 10), Ssn = new Fe(Hre, 20), Isn = new Fe(qre, 10), Sde = new Fe(NB, 2), Ide = new Fe(x_, 10), Cde = new Fe(Ure, 0), qC = new Fe(Xre, 5), Pde = new Fe(zre, 1), Ode = new Fe(Wre, 1), i1 = new Fe(Vw, 20), Csn = new Fe(Kre, 10), Nde = new Fe(Vre, 10), vm = new It(Qre), Dde = new l$e(), Lde = new Fe(kce, Dde), Asn = new It(T_), yde = !1, Esn = new Fe(M_, yde), wde = new N0(5), bde = new Fe(rce, wde), gde = (_w(), n = u(Ff(Fr), 10), new wo(n, u(af(n, n.length), 10), 0)), pp = new Fe(y5, gde), Ede = (E2(), ld), jde = new Fe(sce, Ede), iU = new It(oce), rU = new It(fce), cU = new It(hce), tU = new It(lce), pde = (e = u(Ff(v8), 10), new wo(e, u(af(e, e.length), 10), 0)), v0 = new Fe(R2, pde), vde = Pe((Ms(), k4)), fd = new Fe(H3, vde), mde = new ue(0, 0), mp = new Fe(q3, mde), $g = new Fe(k5, !1), cde = (lh(), g4), Zq = new Fe(bce, cde), Yq = new Fe(VT, !1), ie(1), new Fe(TKe, null), Ade = new It(mce), uU = new It(wce), Tde = (be(), mc), vp = new Fe(ece, Tde), Ss = new It(Yre), $de = (ls(), Pe(dd)), Mg = new Fe(j5, $de), sU = new Fe(cce, !1), Mde = new Fe(uce, !0), ie(1), Nsn = new Fe(Q_, ie(3)), ie(1), Rsn = new Fe(gue, ie(4)), UC = new Fe(kj, 1), zC = new Fe(Y_, null), Sg = new Fe(yj, 150), b4 = new Fe(jj, 1.414), km = new Fe(pb, null), Psn = new Fe(pue, 1), TE = new Fe(tce, !1), eU = new Fe(ice, !1), msn = new Fe(dce, 1), ode = (fT(), aU), new Fe(SKe, ode), xsn = !0, Fsn = (O$(), wU), Lsn = (y3(), Pg), Dsn = Pg, Osn = Pg; + pm = new It(aKe), Tg = new It(dKe), nde = (wl(), Wq), wsn = new Fe(nce, nde), a4 = new Fe(v5, null), gsn = new It(wue), ide = (Kd(), Rt(Vq, I(S(Qq, 1), ce, 299, 0, [Kq]))), $E = new Fe(wS, ide), ME = new Fe(Sj, (en(), !1)), rde = (Mi(), Th), m0 = new Fe($B, rde), sde = (na(), hU), ude = new Fe(Tj, sde), ksn = new Fe(due, !1), fde = (ea(), XC), wp = new Fe(bS, fde), kde = new N0(12), Ml = new Fe(Qw, kde), SE = new Fe(_9, !1), nU = new Fe(pS, !1), IE = new Fe(B9, !1), xde = (Ui(), ad), l8 = new Fe(F_, xde), mm = new It(gS), CE = new It(mj), oU = new It(KT), fU = new It(R9), ade = new ms(), gp = new Fe(ace, ade), msn = new Fe(gce, !1), ysn = new Fe(pce, !1), new Fe(bKe, 0), dde = new O4(), d4 = new Fe(vce, dde), HC = new Fe(Zre, !1), Msn = new Fe(wKe, 1), xg = new It(gKe), Ag = new It(pKe), w4 = new Fe(vj, !1), new Fe(mKe, !0), ie(0), new Fe(vKe, ie(100)), new Fe(kKe, !1), ie(0), new Fe(yKe, ie(4e3)), ie(0), new Fe(jKe, ie(400)), new Fe(EKe, !1), new Fe(AKe, !1), new Fe(xKe, !0), new Fe($Ke, !1), tde = (DM(), gU), psn = new Fe(bue, tde), lde = (_6(), RE), Esn = new Fe(MKe, lde), hde = (Dv(), PE), jsn = new Fe(TKe, hde), Tsn = new Fe(Jre, 10), Ssn = new Fe(Gre, 10), Isn = new Fe(Hre, 20), Csn = new Fe(qre, 10), Sde = new Fe(N_, 2), Ide = new Fe(xB, 10), Cde = new Fe(Ure, 0), qC = new Fe(Xre, 5), Pde = new Fe(zre, 1), Ode = new Fe(Wre, 1), i1 = new Fe(Vw, 20), Psn = new Fe(Kre, 10), Nde = new Fe(Vre, 10), vm = new It(Qre), Dde = new a$e(), Lde = new Fe(kce, Dde), xsn = new It(TB), yde = !1, Asn = new Fe(MB, yde), wde = new N0(5), bde = new Fe(rce, wde), gde = (Bw(), n = u(Ff(Fr), 10), new wo(n, u(af(n, n.length), 10), 0)), pp = new Fe(y5, gde), Ede = (E2(), ld), jde = new Fe(sce, Ede), iU = new It(oce), rU = new It(fce), cU = new It(hce), tU = new It(lce), pde = (e = u(Ff(v8), 10), new wo(e, u(af(e, e.length), 10), 0)), v0 = new Fe(R2, pde), vde = Pe((Ms(), k4)), fd = new Fe(H3, vde), mde = new ue(0, 0), mp = new Fe(q3, mde), $g = new Fe(k5, !1), cde = (lh(), g4), Zq = new Fe(bce, cde), Yq = new Fe(VT, !1), ie(1), new Fe(SKe, null), Ade = new It(mce), uU = new It(wce), Tde = (be(), mc), vp = new Fe(ece, Tde), Ss = new It(Yre), $de = (ls(), Pe(dd)), Mg = new Fe(j5, $de), sU = new Fe(cce, !1), Mde = new Fe(uce, !0), ie(1), Fsn = new Fe(QB, ie(3)), ie(1), _sn = new Fe(gue, ie(4)), UC = new Fe(kj, 1), zC = new Fe(YB, null), Sg = new Fe(yj, 150), b4 = new Fe(jj, 1.414), km = new Fe(pb, null), Osn = new Fe(pue, 1), TE = new Fe(tce, !1), eU = new Fe(ice, !1), vsn = new Fe(dce, 1), ode = (fT(), aU), new Fe(IKe, ode), $sn = !0, Rsn = (O$(), wU), Dsn = (y3(), Pg), Nsn = Pg, Lsn = Pg; } function Qi() { - Qi = G, Eoe = new ji("DIRECTION_PREPROCESSOR", 0), koe = new ji("COMMENT_PREPROCESSOR", 1), X2 = new ji("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER", 2), mG = new ji("INTERACTIVE_EXTERNAL_PORT_POSITIONER", 3), Goe = new ji("PARTITION_PREPROCESSOR", 4), wI = new ji("LABEL_DUMMY_INSERTER", 5), xI = new ji("SELF_LOOP_PREPROCESSOR", 6), ug = new ji("LAYER_CONSTRAINT_PREPROCESSOR", 7), _oe = new ji("PARTITION_MIDPROCESSOR", 8), Coe = new ji("HIGH_DEGREE_NODE_LAYER_PROCESSOR", 9), Roe = new ji("NODE_PROMOTION", 10), cg = new ji("LAYER_CONSTRAINT_POSTPROCESSOR", 11), Joe = new ji("PARTITION_POSTPROCESSOR", 12), Toe = new ji("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR", 13), Hoe = new ji("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR", 14), boe = new ji("BREAKING_POINT_INSERTER", 15), vI = new ji("LONG_EDGE_SPLITTER", 16), vG = new ji("PORT_SIDE_PROCESSOR", 17), dI = new ji("INVERTED_PORT_PROCESSOR", 18), jI = new ji("PORT_LIST_SORTER", 19), Uoe = new ji("SORT_BY_INPUT_ORDER_OF_MODEL", 20), yI = new ji("NORTH_SOUTH_PORT_PREPROCESSOR", 21), woe = new ji("BREAKING_POINT_PROCESSOR", 22), Boe = new ji(bXe, 23), zoe = new ji(wXe, 24), EI = new ji("SELF_LOOP_PORT_RESTORER", 25), doe = new ji("ALTERNATING_LAYER_UNZIPPER", 26), qoe = new ji("SINGLE_EDGE_GRAPH_WRAPPER", 27), bI = new ji("IN_LAYER_CONSTRAINT_PROCESSOR", 28), xoe = new ji("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR", 29), Noe = new ji("LABEL_AND_NODE_SIZE_PROCESSOR", 30), Doe = new ji("INNERMOST_NODE_MARGIN_CALCULATOR", 31), $I = new ji("SELF_LOOP_ROUTER", 32), moe = new ji("COMMENT_NODE_MARGIN_CALCULATOR", 33), aI = new ji("END_LABEL_PREPROCESSOR", 34), pI = new ji("LABEL_DUMMY_SWITCHER", 35), poe = new ji("CENTER_LABEL_MANAGEMENT_PROCESSOR", 36), q5 = new ji("LABEL_SIDE_SELECTOR", 37), Ooe = new ji("HYPEREDGE_DUMMY_MERGER", 38), Soe = new ji("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR", 39), Foe = new ji("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR", 40), mk = new ji("HIERARCHICAL_PORT_POSITION_PROCESSOR", 41), yoe = new ji("CONSTRAINTS_POSTPROCESSOR", 42), voe = new ji("COMMENT_POSTPROCESSOR", 43), Loe = new ji("HYPERNODE_PROCESSOR", 44), Ioe = new ji("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER", 45), mI = new ji("LONG_EDGE_JOINER", 46), AI = new ji("SELF_LOOP_POSTPROCESSOR", 47), goe = new ji("BREAKING_POINT_REMOVER", 48), kI = new ji("NORTH_SOUTH_PORT_POSTPROCESSOR", 49), Poe = new ji("HORIZONTAL_COMPACTOR", 50), gI = new ji("LABEL_DUMMY_REMOVER", 51), $oe = new ji("FINAL_SPLINE_BENDPOINTS_CALCULATOR", 52), Aoe = new ji("END_LABEL_SORTER", 53), em = new ji("REVERSED_EDGE_RESTORER", 54), lI = new ji("END_LABEL_POSTPROCESSOR", 55), Moe = new ji("HIERARCHICAL_NODE_RESIZER", 56), joe = new ji("DIRECTION_POSTPROCESSOR", 57); + Qi = G, Eoe = new ji("DIRECTION_PREPROCESSOR", 0), koe = new ji("COMMENT_PREPROCESSOR", 1), X2 = new ji("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER", 2), mG = new ji("INTERACTIVE_EXTERNAL_PORT_POSITIONER", 3), Goe = new ji("PARTITION_PREPROCESSOR", 4), wI = new ji("LABEL_DUMMY_INSERTER", 5), xI = new ji("SELF_LOOP_PREPROCESSOR", 6), ug = new ji("LAYER_CONSTRAINT_PREPROCESSOR", 7), Boe = new ji("PARTITION_MIDPROCESSOR", 8), Coe = new ji("HIGH_DEGREE_NODE_LAYER_PROCESSOR", 9), Roe = new ji("NODE_PROMOTION", 10), cg = new ji("LAYER_CONSTRAINT_POSTPROCESSOR", 11), Joe = new ji("PARTITION_POSTPROCESSOR", 12), Toe = new ji("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR", 13), Hoe = new ji("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR", 14), boe = new ji("BREAKING_POINT_INSERTER", 15), vI = new ji("LONG_EDGE_SPLITTER", 16), vG = new ji("PORT_SIDE_PROCESSOR", 17), dI = new ji("INVERTED_PORT_PROCESSOR", 18), jI = new ji("PORT_LIST_SORTER", 19), Uoe = new ji("SORT_BY_INPUT_ORDER_OF_MODEL", 20), yI = new ji("NORTH_SOUTH_PORT_PREPROCESSOR", 21), woe = new ji("BREAKING_POINT_PROCESSOR", 22), _oe = new ji(wXe, 23), zoe = new ji(gXe, 24), EI = new ji("SELF_LOOP_PORT_RESTORER", 25), doe = new ji("ALTERNATING_LAYER_UNZIPPER", 26), qoe = new ji("SINGLE_EDGE_GRAPH_WRAPPER", 27), bI = new ji("IN_LAYER_CONSTRAINT_PROCESSOR", 28), xoe = new ji("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR", 29), Noe = new ji("LABEL_AND_NODE_SIZE_PROCESSOR", 30), Doe = new ji("INNERMOST_NODE_MARGIN_CALCULATOR", 31), $I = new ji("SELF_LOOP_ROUTER", 32), moe = new ji("COMMENT_NODE_MARGIN_CALCULATOR", 33), aI = new ji("END_LABEL_PREPROCESSOR", 34), pI = new ji("LABEL_DUMMY_SWITCHER", 35), poe = new ji("CENTER_LABEL_MANAGEMENT_PROCESSOR", 36), q5 = new ji("LABEL_SIDE_SELECTOR", 37), Ooe = new ji("HYPEREDGE_DUMMY_MERGER", 38), Soe = new ji("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR", 39), Foe = new ji("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR", 40), mk = new ji("HIERARCHICAL_PORT_POSITION_PROCESSOR", 41), yoe = new ji("CONSTRAINTS_POSTPROCESSOR", 42), voe = new ji("COMMENT_POSTPROCESSOR", 43), Loe = new ji("HYPERNODE_PROCESSOR", 44), Ioe = new ji("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER", 45), mI = new ji("LONG_EDGE_JOINER", 46), AI = new ji("SELF_LOOP_POSTPROCESSOR", 47), goe = new ji("BREAKING_POINT_REMOVER", 48), kI = new ji("NORTH_SOUTH_PORT_POSTPROCESSOR", 49), Poe = new ji("HORIZONTAL_COMPACTOR", 50), gI = new ji("LABEL_DUMMY_REMOVER", 51), $oe = new ji("FINAL_SPLINE_BENDPOINTS_CALCULATOR", 52), Aoe = new ji("END_LABEL_SORTER", 53), em = new ji("REVERSED_EDGE_RESTORER", 54), lI = new ji("END_LABEL_POSTPROCESSOR", 55), Moe = new ji("HIERARCHICAL_NODE_RESIZER", 56), joe = new ji("DIRECTION_POSTPROCESSOR", 57); } function pLn(e, n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni, ps, Yr, ho, xp, l1, Df, ga, Lo, Mm, P8, pa, th, a1, A0, x0, Tm, $0, M0, ma, _g, lbe, Hb, O8, OU, Sm, L8, Jg, D8, LU, Mfn; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni, ps, Yr, ho, xp, l1, Df, ga, Lo, Mm, P8, pa, th, a1, A0, x0, Tm, $0, M0, ma, Bg, lbe, Hb, O8, OU, Sm, L8, Jg, D8, LU, Tfn; for (lbe = 0, ut = n, Yr = 0, l1 = ut.length; Yr < l1; ++Yr) for (Ye = ut[Yr], a1 = new x(Ye.j); a1.a < a1.c.c.length; ) { for (th = u(A(a1), 12), x0 = 0, f = new x(th.g); f.a < f.c.c.length; ) @@ -32565,7 +32655,7 @@ function WDn() { for (O8 = u(A(OU), 12), f = new x(O8.g); f.a < f.c.c.length; ) if (s = u(A(f), 17), D8 = s.d, Ye.c != D8.i.c) if (Hb = u(hc(Ur(A0.f, O8)), 467), Jg = u(hc(Ur(A0.f, D8)), 467), !Hb && !Jg) - p = new ZMe(), v.a.yc(p, v), he(p.a, s), he(p.d, O8), Ru(A0.f, O8, p), he(p.d, D8), Ru(A0.f, D8, p); + p = new eTe(), v.a.yc(p, v), he(p.a, s), he(p.d, O8), Ru(A0.f, O8, p), he(p.d, D8), Ru(A0.f, D8, p); else if (!Hb) he(Jg.a, s), he(Jg.d, O8), Ru(A0.f, O8, Jg); else if (!Jg) @@ -32577,21 +32667,21 @@ function WDn() { P8 = u(A(pa), 12), Ru(A0.f, P8, Hb); Ci(Hb.a, Jg.a), Ci(Hb.d, Jg.d), v.a.Ac(Jg) != null; } - for (j = u(s9(v, W(JLn, { 3: 1, 4: 1, 5: 1, 2007: 1 }, 467, v.a.gc(), 0, 1)), 2007), Ke = n[0].c, _g = t[0].c, a = j, d = 0, g = a.length; d < g; ++d) + for (j = u(s9(v, W(JLn, { 3: 1, 4: 1, 5: 1, 2007: 1 }, 467, v.a.gc(), 0, 1)), 2007), Ke = n[0].c, Bg = t[0].c, a = j, d = 0, g = a.length; d < g; ++d) for (l = a[d], l.e = lbe, l.f = L8, a1 = new x(l.d); a1.a < a1.c.c.length; ) - th = u(A(a1), 12), $0 = e.a[th.p], th.i.c == Ke ? ($0 < l.e && (l.e = $0), $0 > l.b && (l.b = $0)) : th.i.c == _g && ($0 < l.f && (l.f = $0), $0 > l.c && (l.c = $0)); - for (pv(j, 0, j.length, null), Sm = W(Wn, lt, 30, j.length, 15, 1), i = W(Wn, lt, 30, L8 + 1, 15, 1), M = 0; M < j.length; M++) - Sm[M] = j[M].f, i[Sm[M]] = 1; + th = u(A(a1), 12), $0 = e.a[th.p], th.i.c == Ke ? ($0 < l.e && (l.e = $0), $0 > l.b && (l.b = $0)) : th.i.c == Bg && ($0 < l.f && (l.f = $0), $0 > l.c && (l.c = $0)); + for (pv(j, 0, j.length, null), Sm = W(Wn, lt, 30, j.length, 15, 1), i = W(Wn, lt, 30, L8 + 1, 15, 1), T = 0; T < j.length; T++) + Sm[T] = j[T].f, i[Sm[T]] = 1; for (c = 0, D = 0; D < i.length; D++) i[D] == 1 ? i[D] = c : --c; for (M0 = 0, R = 0; R < Sm.length; R++) Sm[R] += i[Sm[R]], M0 = m.Math.max(M0, Sm[R] + 1); for (h = 1; h < M0; ) h *= 2; - for (Mfn = 2 * h - 1, h -= 1, LU = W(Wn, lt, 30, Mfn, 15, 1), r = 0, De = 0; De < Sm.length; De++) + for (Tfn = 2 * h - 1, h -= 1, LU = W(Wn, lt, 30, Tfn, 15, 1), r = 0, De = 0; De < Sm.length; De++) for (we = Sm[De] + h, ++LU[we]; we > 0; ) we % 2 > 0 && (r += LU[we + 1]), we = (we - 1) / 2 | 0, ++LU[we]; - for (Le = W(wrn, Ve, 370, j.length * 2, 0, 1), J = 0; J < j.length; J++) + for (Le = W(grn, Ve, 370, j.length * 2, 0, 1), J = 0; J < j.length; J++) Le[2 * J] = new d$(j[J], j[J].e, j[J].b, (D6(), zk)), Le[2 * J + 1] = new d$(j[J], j[J].b, j[J].e, Uk); for (pv(Le, 0, Le.length, null), Lo = 0, V = 0; V < Le.length; V++) switch (Le[V].d.g) { @@ -32601,7 +32691,7 @@ function WDn() { case 1: --Lo, r += Lo; } - for (ma = W(wrn, Ve, 370, j.length * 2, 0, 1), X = 0; X < j.length; X++) + for (ma = W(grn, Ve, 370, j.length * 2, 0, 1), X = 0; X < j.length; X++) ma[2 * X] = new d$(j[X], j[X].f, j[X].c, (D6(), zk)), ma[2 * X + 1] = new d$(j[X], j[X].c, j[X].f, Uk); for (pv(ma, 0, ma.length, null), Lo = 0, E = 0; E < ma.length; E++) switch (ma[E].d.g) { @@ -32614,55 +32704,55 @@ function WDn() { return r; } function kt() { - kt = G, C8 = new I0(7), ibe = new fl(8, 94), new fl(8, 64), rbe = new fl(8, 36), mfn = new fl(8, 65), vfn = new fl(8, 122), kfn = new fl(8, 90), jfn = new fl(8, 98), pfn = new fl(8, 66), yfn = new fl(8, 60), Efn = new fl(8, 62), tbe = new I0(11), gP = new Xs(4), ru(gP, 48, 57), A4 = new Xs(4), ru(A4, 48, 57), ru(A4, 65, 90), ru(A4, 95, 95), ru(A4, 97, 122), $m = new Xs(4), ru($m, 9, 9), ru($m, 10, 10), ru($m, 12, 12), ru($m, 13, 13), ru($m, 32, 32), cbe = Hw(gP), sbe = Hw(A4), ube = Hw($m), E4 = new Tn(), I8 = new Tn(), gfn = I(T(ke, 1), oe, 2, 6, ["Cn", "Lu", "Ll", "Lt", "Lm", "Lo", "Mn", "Me", "Mc", "Nd", "Nl", "No", "Zs", "Zl", "Zp", "Cc", "Cf", null, "Co", "Cs", "Pd", "Ps", "Pe", "Pc", "Po", "Sm", "Sc", "Sk", "So", "Pi", "Pf", "L", "M", "N", "Z", "C", "P", "S"]), ebe = I(T(ke, 1), oe, 2, 6, ["Basic Latin", "Latin-1 Supplement", "Latin Extended-A", "Latin Extended-B", "IPA Extensions", "Spacing Modifier Letters", "Combining Diacritical Marks", "Greek", "Cyrillic", "Armenian", "Hebrew", "Arabic", "Syriac", "Thaana", "Devanagari", "Bengali", "Gurmukhi", "Gujarati", "Oriya", "Tamil", "Telugu", "Kannada", "Malayalam", "Sinhala", "Thai", "Lao", "Tibetan", "Myanmar", "Georgian", "Hangul Jamo", "Ethiopic", "Cherokee", "Unified Canadian Aboriginal Syllabics", "Ogham", "Runic", "Khmer", "Mongolian", "Latin Extended Additional", "Greek Extended", "General Punctuation", "Superscripts and Subscripts", "Currency Symbols", "Combining Marks for Symbols", "Letterlike Symbols", "Number Forms", "Arrows", "Mathematical Operators", "Miscellaneous Technical", "Control Pictures", "Optical Character Recognition", "Enclosed Alphanumerics", "Box Drawing", "Block Elements", "Geometric Shapes", "Miscellaneous Symbols", "Dingbats", "Braille Patterns", "CJK Radicals Supplement", "Kangxi Radicals", "Ideographic Description Characters", "CJK Symbols and Punctuation", "Hiragana", "Katakana", "Bopomofo", "Hangul Compatibility Jamo", "Kanbun", "Bopomofo Extended", "Enclosed CJK Letters and Months", "CJK Compatibility", "CJK Unified Ideographs Extension A", "CJK Unified Ideographs", "Yi Syllables", "Yi Radicals", "Hangul Syllables", TQe, "CJK Compatibility Ideographs", "Alphabetic Presentation Forms", "Arabic Presentation Forms-A", "Combining Half Marks", "CJK Compatibility Forms", "Small Form Variants", "Arabic Presentation Forms-B", "Specials", "Halfwidth and Fullwidth Forms", "Old Italic", "Gothic", "Deseret", "Byzantine Musical Symbols", "Musical Symbols", "Mathematical Alphanumeric Symbols", "CJK Unified Ideographs Extension B", "CJK Compatibility Ideographs Supplement", "Tags"]), nbe = I(T(Wn, 1), lt, 30, 15, [66304, 66351, 66352, 66383, 66560, 66639, 118784, 119039, 119040, 119295, 119808, 120831, 131072, 173782, 194560, 195103, 917504, 917631]); + kt = G, C8 = new I0(7), ibe = new fl(8, 94), new fl(8, 64), rbe = new fl(8, 36), vfn = new fl(8, 65), kfn = new fl(8, 122), yfn = new fl(8, 90), Efn = new fl(8, 98), mfn = new fl(8, 66), jfn = new fl(8, 60), Afn = new fl(8, 62), tbe = new I0(11), gP = new Xs(4), ru(gP, 48, 57), A4 = new Xs(4), ru(A4, 48, 57), ru(A4, 65, 90), ru(A4, 95, 95), ru(A4, 97, 122), $m = new Xs(4), ru($m, 9, 9), ru($m, 10, 10), ru($m, 12, 12), ru($m, 13, 13), ru($m, 32, 32), cbe = Hw(gP), sbe = Hw(A4), ube = Hw($m), E4 = new Tn(), I8 = new Tn(), pfn = I(S(ye, 1), fe, 2, 6, ["Cn", "Lu", "Ll", "Lt", "Lm", "Lo", "Mn", "Me", "Mc", "Nd", "Nl", "No", "Zs", "Zl", "Zp", "Cc", "Cf", null, "Co", "Cs", "Pd", "Ps", "Pe", "Pc", "Po", "Sm", "Sc", "Sk", "So", "Pi", "Pf", "L", "M", "N", "Z", "C", "P", "S"]), ebe = I(S(ye, 1), fe, 2, 6, ["Basic Latin", "Latin-1 Supplement", "Latin Extended-A", "Latin Extended-B", "IPA Extensions", "Spacing Modifier Letters", "Combining Diacritical Marks", "Greek", "Cyrillic", "Armenian", "Hebrew", "Arabic", "Syriac", "Thaana", "Devanagari", "Bengali", "Gurmukhi", "Gujarati", "Oriya", "Tamil", "Telugu", "Kannada", "Malayalam", "Sinhala", "Thai", "Lao", "Tibetan", "Myanmar", "Georgian", "Hangul Jamo", "Ethiopic", "Cherokee", "Unified Canadian Aboriginal Syllabics", "Ogham", "Runic", "Khmer", "Mongolian", "Latin Extended Additional", "Greek Extended", "General Punctuation", "Superscripts and Subscripts", "Currency Symbols", "Combining Marks for Symbols", "Letterlike Symbols", "Number Forms", "Arrows", "Mathematical Operators", "Miscellaneous Technical", "Control Pictures", "Optical Character Recognition", "Enclosed Alphanumerics", "Box Drawing", "Block Elements", "Geometric Shapes", "Miscellaneous Symbols", "Dingbats", "Braille Patterns", "CJK Radicals Supplement", "Kangxi Radicals", "Ideographic Description Characters", "CJK Symbols and Punctuation", "Hiragana", "Katakana", "Bopomofo", "Hangul Compatibility Jamo", "Kanbun", "Bopomofo Extended", "Enclosed CJK Letters and Months", "CJK Compatibility", "CJK Unified Ideographs Extension A", "CJK Unified Ideographs", "Yi Syllables", "Yi Radicals", "Hangul Syllables", SQe, "CJK Compatibility Ideographs", "Alphabetic Presentation Forms", "Arabic Presentation Forms-A", "Combining Half Marks", "CJK Compatibility Forms", "Small Form Variants", "Arabic Presentation Forms-B", "Specials", "Halfwidth and Fullwidth Forms", "Old Italic", "Gothic", "Deseret", "Byzantine Musical Symbols", "Musical Symbols", "Mathematical Alphanumeric Symbols", "CJK Unified Ideographs Extension B", "CJK Compatibility Ideographs Supplement", "Tags"]), nbe = I(S(Wn, 1), lt, 30, 15, [66304, 66351, 66352, 66383, 66560, 66639, 118784, 119039, 119040, 119295, 119808, 120831, 131072, 173782, 194560, 195103, 917504, 917631]); } - function _T() { - _T = G, WYe = new ko("OUT_T_L", 0, (hs(), nl), (Nu(), xf), (qf(), Mc), Mc, I(T(Ko, 1), Ve, 22, 0, [Rt((_w(), Cf), I(T(Fr, 1), ce, 96, 0, [Pf, Sf]))])), zYe = new ko("OUT_T_C", 1, Z1, xf, Mc, ku, I(T(Ko, 1), Ve, 22, 0, [Rt(Cf, I(T(Fr, 1), ce, 96, 0, [Pf, da])), Rt(Cf, I(T(Fr, 1), ce, 96, 0, [Pf, da, Qo]))])), XYe = new ko("OUT_T_R", 2, Af, xf, Mc, Tc, I(T(Ko, 1), Ve, 22, 0, [Rt(Cf, I(T(Fr, 1), ce, 96, 0, [Pf, If]))])), RYe = new ko("OUT_B_L", 3, nl, Vf, Tc, Mc, I(T(Ko, 1), Ve, 22, 0, [Rt(Cf, I(T(Fr, 1), ce, 96, 0, [Yo, Sf]))])), FYe = new ko("OUT_B_C", 4, Z1, Vf, Tc, ku, I(T(Ko, 1), Ve, 22, 0, [Rt(Cf, I(T(Fr, 1), ce, 96, 0, [Yo, da])), Rt(Cf, I(T(Fr, 1), ce, 96, 0, [Yo, da, Qo]))])), BYe = new ko("OUT_B_R", 5, Af, Vf, Tc, Tc, I(T(Ko, 1), Ve, 22, 0, [Rt(Cf, I(T(Fr, 1), ce, 96, 0, [Yo, If]))])), GYe = new ko("OUT_L_T", 6, Af, Vf, Mc, Mc, I(T(Ko, 1), Ve, 22, 0, [Rt(Cf, I(T(Fr, 1), ce, 96, 0, [Sf, Pf, Qo]))])), JYe = new ko("OUT_L_C", 7, Af, ed, ku, Mc, I(T(Ko, 1), Ve, 22, 0, [Rt(Cf, I(T(Fr, 1), ce, 96, 0, [Sf, Sl])), Rt(Cf, I(T(Fr, 1), ce, 96, 0, [Sf, Sl, Qo]))])), _Ye = new ko("OUT_L_B", 8, Af, xf, Tc, Mc, I(T(Ko, 1), Ve, 22, 0, [Rt(Cf, I(T(Fr, 1), ce, 96, 0, [Sf, Yo, Qo]))])), UYe = new ko("OUT_R_T", 9, nl, Vf, Mc, Tc, I(T(Ko, 1), Ve, 22, 0, [Rt(Cf, I(T(Fr, 1), ce, 96, 0, [If, Pf, Qo]))])), qYe = new ko("OUT_R_C", 10, nl, ed, ku, Tc, I(T(Ko, 1), Ve, 22, 0, [Rt(Cf, I(T(Fr, 1), ce, 96, 0, [If, Sl])), Rt(Cf, I(T(Fr, 1), ce, 96, 0, [If, Sl, Qo]))])), HYe = new ko("OUT_R_B", 11, nl, xf, Tc, Tc, I(T(Ko, 1), Ve, 22, 0, [Rt(Cf, I(T(Fr, 1), ce, 96, 0, [If, Yo, Qo]))])), DYe = new ko("IN_T_L", 12, nl, Vf, Mc, Mc, I(T(Ko, 1), Ve, 22, 0, [Rt(uo, I(T(Fr, 1), ce, 96, 0, [Pf, Sf])), Rt(uo, I(T(Fr, 1), ce, 96, 0, [Pf, Sf, Qo]))])), LYe = new ko("IN_T_C", 13, Z1, Vf, Mc, ku, I(T(Ko, 1), Ve, 22, 0, [Rt(uo, I(T(Fr, 1), ce, 96, 0, [Pf, da])), Rt(uo, I(T(Fr, 1), ce, 96, 0, [Pf, da, Qo]))])), NYe = new ko("IN_T_R", 14, Af, Vf, Mc, Tc, I(T(Ko, 1), Ve, 22, 0, [Rt(uo, I(T(Fr, 1), ce, 96, 0, [Pf, If])), Rt(uo, I(T(Fr, 1), ce, 96, 0, [Pf, If, Qo]))])), PYe = new ko("IN_C_L", 15, nl, ed, ku, Mc, I(T(Ko, 1), Ve, 22, 0, [Rt(uo, I(T(Fr, 1), ce, 96, 0, [Sl, Sf])), Rt(uo, I(T(Fr, 1), ce, 96, 0, [Sl, Sf, Qo]))])), CYe = new ko("IN_C_C", 16, Z1, ed, ku, ku, I(T(Ko, 1), Ve, 22, 0, [Rt(uo, I(T(Fr, 1), ce, 96, 0, [Sl, da])), Rt(uo, I(T(Fr, 1), ce, 96, 0, [Sl, da, Qo]))])), OYe = new ko("IN_C_R", 17, Af, ed, ku, Tc, I(T(Ko, 1), Ve, 22, 0, [Rt(uo, I(T(Fr, 1), ce, 96, 0, [Sl, If])), Rt(uo, I(T(Fr, 1), ce, 96, 0, [Sl, If, Qo]))])), SYe = new ko("IN_B_L", 18, nl, xf, Tc, Mc, I(T(Ko, 1), Ve, 22, 0, [Rt(uo, I(T(Fr, 1), ce, 96, 0, [Yo, Sf])), Rt(uo, I(T(Fr, 1), ce, 96, 0, [Yo, Sf, Qo]))])), TYe = new ko("IN_B_C", 19, Z1, xf, Tc, ku, I(T(Ko, 1), Ve, 22, 0, [Rt(uo, I(T(Fr, 1), ce, 96, 0, [Yo, da])), Rt(uo, I(T(Fr, 1), ce, 96, 0, [Yo, da, Qo]))])), IYe = new ko("IN_B_R", 20, Af, xf, Tc, Tc, I(T(Ko, 1), Ve, 22, 0, [Rt(uo, I(T(Fr, 1), ce, 96, 0, [Yo, If])), Rt(uo, I(T(Fr, 1), ce, 96, 0, [Yo, If, Qo]))])), nG = new ko(N9, 21, null, null, null, null, I(T(Ko, 1), Ve, 22, 0, [])); + function BT() { + BT = G, XYe = new ko("OUT_T_L", 0, (hs(), nl), (Nu(), xf), (qf(), Mc), Mc, I(S(Ko, 1), Ve, 22, 0, [Rt((Bw(), Cf), I(S(Fr, 1), ce, 96, 0, [Pf, Sf]))])), WYe = new ko("OUT_T_C", 1, Z1, xf, Mc, ku, I(S(Ko, 1), Ve, 22, 0, [Rt(Cf, I(S(Fr, 1), ce, 96, 0, [Pf, da])), Rt(Cf, I(S(Fr, 1), ce, 96, 0, [Pf, da, Qo]))])), KYe = new ko("OUT_T_R", 2, Af, xf, Mc, Tc, I(S(Ko, 1), Ve, 22, 0, [Rt(Cf, I(S(Fr, 1), ce, 96, 0, [Pf, If]))])), _Ye = new ko("OUT_B_L", 3, nl, Vf, Tc, Mc, I(S(Ko, 1), Ve, 22, 0, [Rt(Cf, I(S(Fr, 1), ce, 96, 0, [Yo, Sf]))])), RYe = new ko("OUT_B_C", 4, Z1, Vf, Tc, ku, I(S(Ko, 1), Ve, 22, 0, [Rt(Cf, I(S(Fr, 1), ce, 96, 0, [Yo, da])), Rt(Cf, I(S(Fr, 1), ce, 96, 0, [Yo, da, Qo]))])), BYe = new ko("OUT_B_R", 5, Af, Vf, Tc, Tc, I(S(Ko, 1), Ve, 22, 0, [Rt(Cf, I(S(Fr, 1), ce, 96, 0, [Yo, If]))])), HYe = new ko("OUT_L_T", 6, Af, Vf, Mc, Mc, I(S(Ko, 1), Ve, 22, 0, [Rt(Cf, I(S(Fr, 1), ce, 96, 0, [Sf, Pf, Qo]))])), GYe = new ko("OUT_L_C", 7, Af, ed, ku, Mc, I(S(Ko, 1), Ve, 22, 0, [Rt(Cf, I(S(Fr, 1), ce, 96, 0, [Sf, Sl])), Rt(Cf, I(S(Fr, 1), ce, 96, 0, [Sf, Sl, Qo]))])), JYe = new ko("OUT_L_B", 8, Af, xf, Tc, Mc, I(S(Ko, 1), Ve, 22, 0, [Rt(Cf, I(S(Fr, 1), ce, 96, 0, [Sf, Yo, Qo]))])), zYe = new ko("OUT_R_T", 9, nl, Vf, Mc, Tc, I(S(Ko, 1), Ve, 22, 0, [Rt(Cf, I(S(Fr, 1), ce, 96, 0, [If, Pf, Qo]))])), UYe = new ko("OUT_R_C", 10, nl, ed, ku, Tc, I(S(Ko, 1), Ve, 22, 0, [Rt(Cf, I(S(Fr, 1), ce, 96, 0, [If, Sl])), Rt(Cf, I(S(Fr, 1), ce, 96, 0, [If, Sl, Qo]))])), qYe = new ko("OUT_R_B", 11, nl, xf, Tc, Tc, I(S(Ko, 1), Ve, 22, 0, [Rt(Cf, I(S(Fr, 1), ce, 96, 0, [If, Yo, Qo]))])), NYe = new ko("IN_T_L", 12, nl, Vf, Mc, Mc, I(S(Ko, 1), Ve, 22, 0, [Rt(uo, I(S(Fr, 1), ce, 96, 0, [Pf, Sf])), Rt(uo, I(S(Fr, 1), ce, 96, 0, [Pf, Sf, Qo]))])), DYe = new ko("IN_T_C", 13, Z1, Vf, Mc, ku, I(S(Ko, 1), Ve, 22, 0, [Rt(uo, I(S(Fr, 1), ce, 96, 0, [Pf, da])), Rt(uo, I(S(Fr, 1), ce, 96, 0, [Pf, da, Qo]))])), FYe = new ko("IN_T_R", 14, Af, Vf, Mc, Tc, I(S(Ko, 1), Ve, 22, 0, [Rt(uo, I(S(Fr, 1), ce, 96, 0, [Pf, If])), Rt(uo, I(S(Fr, 1), ce, 96, 0, [Pf, If, Qo]))])), OYe = new ko("IN_C_L", 15, nl, ed, ku, Mc, I(S(Ko, 1), Ve, 22, 0, [Rt(uo, I(S(Fr, 1), ce, 96, 0, [Sl, Sf])), Rt(uo, I(S(Fr, 1), ce, 96, 0, [Sl, Sf, Qo]))])), PYe = new ko("IN_C_C", 16, Z1, ed, ku, ku, I(S(Ko, 1), Ve, 22, 0, [Rt(uo, I(S(Fr, 1), ce, 96, 0, [Sl, da])), Rt(uo, I(S(Fr, 1), ce, 96, 0, [Sl, da, Qo]))])), LYe = new ko("IN_C_R", 17, Af, ed, ku, Tc, I(S(Ko, 1), Ve, 22, 0, [Rt(uo, I(S(Fr, 1), ce, 96, 0, [Sl, If])), Rt(uo, I(S(Fr, 1), ce, 96, 0, [Sl, If, Qo]))])), IYe = new ko("IN_B_L", 18, nl, xf, Tc, Mc, I(S(Ko, 1), Ve, 22, 0, [Rt(uo, I(S(Fr, 1), ce, 96, 0, [Yo, Sf])), Rt(uo, I(S(Fr, 1), ce, 96, 0, [Yo, Sf, Qo]))])), SYe = new ko("IN_B_C", 19, Z1, xf, Tc, ku, I(S(Ko, 1), Ve, 22, 0, [Rt(uo, I(S(Fr, 1), ce, 96, 0, [Yo, da])), Rt(uo, I(S(Fr, 1), ce, 96, 0, [Yo, da, Qo]))])), CYe = new ko("IN_B_R", 20, Af, xf, Tc, Tc, I(S(Ko, 1), Ve, 22, 0, [Rt(uo, I(S(Fr, 1), ce, 96, 0, [Yo, If])), Rt(uo, I(S(Fr, 1), ce, 96, 0, [Yo, If, Qo]))])), nG = new ko(N9, 21, null, null, null, null, I(S(Ko, 1), Ve, 22, 0, [])); } function pie() { - pie = G, Yfe = (c7(), LI), Pnn = new Fe(Zie, Yfe), qnn = new Fe(ere, (en(), !1)), rhe = (S$(), ZG), Knn = new Fe(nS, rhe), gtn = new Fe(nre, !1), ptn = new Fe(tre, !0), Xen = new Fe(ire, !1), whe = (n7(), JH), Ptn = new Fe(rre, whe), ie(1), _tn = new Fe(cre, ie(7)), Jtn = new Fe(ure, !1), Unn = new Fe(sre, !1), Qfe = (H7(), NG), Cnn = new Fe(xj, Qfe), she = (U7(), OH), ftn = new Fe($j, she), che = (Bs(), iE), ntn = new Fe(ore, che), ie(-1), etn = new Fe(fre, null), ie(-1), ttn = new Fe(hre, ie(-1)), ie(-1), itn = new Fe(qB, ie(4)), ie(-1), ctn = new Fe(UB, ie(2)), uhe = (G1(), dC), otn = new Fe(zB, uhe), ie(0), stn = new Fe(WB, ie(0)), Ynn = new Fe(XB, ie(pt)), Vfe = (t9(), kk), Inn = new Fe(q9, Vfe), wnn = new Fe(lre, !1), jnn = new Fe(KB, 0.1), Tnn = new Fe(VB, !1), Ann = new Fe(are, null), xnn = new Fe(dre, null), ie(-1), $nn = new Fe(bre, null), ie(-1), Mnn = new Fe(wre, ie(-1)), ie(0), gnn = new Fe(gre, ie(40)), Kfe = (Mv(), VG), knn = new Fe(QB, Kfe), Xfe = Qj, pnn = new Fe(tS, Xfe), bhe = (u9(), Bk), Ctn = new Fe(B2, bhe), jtn = new It(iS), lhe = (Zy(), NI), mtn = new Fe(YB, lhe), ahe = (D7(), FI), ktn = new Fe(ZB, ahe), xtn = new Fe(e_, 0.3), Mtn = new It(n_), dhe = (Dw(), aC), Ttn = new Fe(t_, dhe), nhe = (vM(), HH), Fnn = new Fe(pre, nhe), the = (K6(), UH), Rnn = new Fe(mre, the), ihe = (Ov(), Hk), Bnn = new Fe(rS, ihe), Jnn = new Fe(cS, 0.2), Dnn = new Fe(i_, 2), Ntn = new Fe(vre, null), Rtn = new Fe(kre, 10), Ftn = new Fe(yre, 10), Btn = new Fe(jre, 20), ie(0), Otn = new Fe(Ere, ie(0)), ie(0), Ltn = new Fe(Are, ie(0)), ie(0), Dtn = new Fe(xre, ie(0)), Ken = new Fe(r_, !1), Jfe = (Kv(), yk), Qen = new Fe($re, Jfe), _fe = (G$(), PG), Ven = new Fe(Mre, _fe), Wnn = new Fe(uS, !1), ie(0), znn = new Fe(c_, ie(16)), ie(0), Xnn = new Fe(u_, ie(5)), mhe = (kM(), XH), sin = new Fe(ua, mhe), Gtn = new Fe(sS, 10), Utn = new Fe(oS, 1), phe = (rM(), OI), Ytn = new Fe(U9, phe), Xtn = new It(s_), ghe = ie(1), ie(0), Vtn = new Fe(o_, ghe), vhe = (iM(), WH), lin = new Fe(fS, vhe), oin = new It(hS), iin = new Fe(lS, !0), nin = new Fe(aS, 2), cin = new Fe(f_, !0), hhe = (P$(), fH), wtn = new Fe(h_, hhe), ltn = new Fe(l_, !1), ohe = ie(2), ie(1), htn = new Fe(a_, ohe), fhe = !0, dtn = new Fe(d_, fhe), ehe = (lT(), DI), Lnn = new Fe(Tre, ehe), Zfe = (T3(), X5), Onn = new Fe(Sre, Zfe), Wfe = (ta(), cd), bnn = new Fe(dS, Wfe), dnn = new Fe(Ire, !1), ann = new Fe(Mj, !1), Gfe = (A3(), gk), Yen = new Fe(b_, Gfe), zfe = (V6(), LH), lnn = new Fe(Cre, zfe), Zen = new Fe(w_, 0), enn = new Fe(g_, 0), hnn = new Fe(p_, ie(0)), fnn = new Fe(m_, ie(0)), onn = new Fe(v_, ie(0)), Hfe = (P1(), Yj), nnn = new Fe(Pre, Hfe), tnn = new It(k_), rnn = new It(y_), Ufe = Yj, snn = new Fe(Ore, Ufe), qfe = p$(S2n(I(T(Ii, 1), oe, 15, 0, [ie(1), ie(2), ie(6), ie(7), ie(10), ie(11)]))), unn = new Fe(Lre, qfe), Qnn = RG, Vnn = Kj, rtn = hC, utn = hC, Znn = CH, Enn = (ea(), r1), Snn = kk, ynn = kk, mnn = kk, vnn = r1, Etn = _k, Atn = Bk, vtn = Bk, ytn = Bk, $tn = RH, Itn = _k, Stn = _k, _nn = (na(), ym), Gnn = ym, Hnn = Hk, Nnn = OE, Htn = o4, qtn = yg, ztn = o4, Wtn = yg, Ztn = o4, ein = yg, Ktn = OG, Qtn = OI, ain = o4, din = yg, fin = o4, hin = yg, rin = yg, tin = yg, uin = yg, atn = ie(2), btn = oH, inn = Vj, cnn = Vj; + pie = G, Yfe = (c7(), LI), Onn = new Fe(Zie, Yfe), Unn = new Fe(ere, (en(), !1)), rhe = (S$(), ZG), Vnn = new Fe(nS, rhe), ptn = new Fe(nre, !1), mtn = new Fe(tre, !0), Ken = new Fe(ire, !1), whe = (n7(), JH), Otn = new Fe(rre, whe), ie(1), Jtn = new Fe(cre, ie(7)), Gtn = new Fe(ure, !1), znn = new Fe(sre, !1), Qfe = (H7(), NG), Pnn = new Fe(xj, Qfe), she = (U7(), OH), htn = new Fe($j, she), che = (_s(), iE), ttn = new Fe(ore, che), ie(-1), ntn = new Fe(fre, null), ie(-1), itn = new Fe(hre, ie(-1)), ie(-1), rtn = new Fe(q_, ie(4)), ie(-1), utn = new Fe(U_, ie(2)), uhe = (G1(), dC), ftn = new Fe(z_, uhe), ie(0), otn = new Fe(W_, ie(0)), Znn = new Fe(X_, ie(pt)), Vfe = (t9(), kk), Cnn = new Fe(q9, Vfe), gnn = new Fe(lre, !1), Enn = new Fe(K_, 0.1), Snn = new Fe(V_, !1), xnn = new Fe(are, null), $nn = new Fe(dre, null), ie(-1), Mnn = new Fe(bre, null), ie(-1), Tnn = new Fe(wre, ie(-1)), ie(0), pnn = new Fe(gre, ie(40)), Kfe = (Mv(), VG), ynn = new Fe(Q_, Kfe), Xfe = Qj, mnn = new Fe(tS, Xfe), bhe = (u9(), _k), Ptn = new Fe(_2, bhe), Etn = new It(iS), lhe = (Zy(), NI), vtn = new Fe(Y_, lhe), ahe = (D7(), FI), ytn = new Fe(Z_, ahe), $tn = new Fe(eB, 0.3), Ttn = new It(nB), dhe = (Dw(), aC), Stn = new Fe(tB, dhe), nhe = (vM(), HH), Rnn = new Fe(pre, nhe), the = (K6(), UH), _nn = new Fe(mre, the), ihe = (Ov(), Hk), Bnn = new Fe(rS, ihe), Gnn = new Fe(cS, 0.2), Nnn = new Fe(iB, 2), Ftn = new Fe(vre, null), _tn = new Fe(kre, 10), Rtn = new Fe(yre, 10), Btn = new Fe(jre, 20), ie(0), Ltn = new Fe(Ere, ie(0)), ie(0), Dtn = new Fe(Are, ie(0)), ie(0), Ntn = new Fe(xre, ie(0)), Ven = new Fe(rB, !1), Jfe = (Kv(), yk), Yen = new Fe($re, Jfe), Bfe = (G$(), PG), Qen = new Fe(Mre, Bfe), Xnn = new Fe(uS, !1), ie(0), Wnn = new Fe(cB, ie(16)), ie(0), Knn = new Fe(uB, ie(5)), mhe = (kM(), XH), oin = new Fe(ua, mhe), Htn = new Fe(sS, 10), ztn = new Fe(oS, 1), phe = (rM(), OI), Ztn = new Fe(U9, phe), Ktn = new It(sB), ghe = ie(1), ie(0), Qtn = new Fe(oB, ghe), vhe = (iM(), WH), ain = new Fe(fS, vhe), fin = new It(hS), rin = new Fe(lS, !0), tin = new Fe(aS, 2), uin = new Fe(fB, !0), hhe = (P$(), fH), gtn = new Fe(hB, hhe), atn = new Fe(lB, !1), ohe = ie(2), ie(1), ltn = new Fe(aB, ohe), fhe = !0, btn = new Fe(dB, fhe), ehe = (lT(), DI), Dnn = new Fe(Tre, ehe), Zfe = (T3(), X5), Lnn = new Fe(Sre, Zfe), Wfe = (ta(), cd), wnn = new Fe(dS, Wfe), bnn = new Fe(Ire, !1), dnn = new Fe(Mj, !1), Gfe = (A3(), gk), Zen = new Fe(bB, Gfe), zfe = (V6(), LH), ann = new Fe(Cre, zfe), enn = new Fe(wB, 0), nnn = new Fe(gB, 0), lnn = new Fe(pB, ie(0)), hnn = new Fe(mB, ie(0)), fnn = new Fe(vB, ie(0)), Hfe = (P1(), Yj), tnn = new Fe(Pre, Hfe), inn = new It(kB), cnn = new It(yB), Ufe = Yj, onn = new Fe(Ore, Ufe), qfe = p$(S2n(I(S(Ii, 1), fe, 15, 0, [ie(1), ie(2), ie(6), ie(7), ie(10), ie(11)]))), snn = new Fe(Lre, qfe), Ynn = RG, Qnn = Kj, ctn = hC, stn = hC, etn = CH, Ann = (ea(), r1), Inn = kk, jnn = kk, vnn = kk, knn = r1, Atn = Bk, xtn = _k, ktn = _k, jtn = _k, Mtn = RH, Ctn = Bk, Itn = Bk, Jnn = (na(), ym), Hnn = ym, qnn = Hk, Fnn = OE, qtn = o4, Utn = yg, Wtn = o4, Xtn = yg, ein = o4, nin = yg, Vtn = OG, Ytn = OI, din = o4, bin = yg, hin = o4, lin = yg, cin = yg, iin = yg, sin = yg, dtn = ie(2), wtn = oH, rnn = Vj, unn = Vj; } function Ue() { - Ue = G, Ng = (E1(), tn).b, u(F(ee(tn.b), 0), 38), u(F(ee(tn.b), 1), 19), u1 = tn.a, u(F(ee(tn.a), 0), 38), u(F(ee(tn.a), 1), 19), u(F(ee(tn.a), 2), 19), u(F(ee(tn.a), 3), 19), u(F(ee(tn.a), 4), 19), wd = tn.o, u(F(ee(tn.o), 0), 38), u(F(ee(tn.o), 1), 38), Non = u(F(ee(tn.o), 2), 19), u(F(ee(tn.o), 3), 19), u(F(ee(tn.o), 4), 19), u(F(ee(tn.o), 5), 19), u(F(ee(tn.o), 6), 19), u(F(ee(tn.o), 7), 19), u(F(ee(tn.o), 8), 19), u(F(ee(tn.o), 9), 19), u(F(ee(tn.o), 10), 19), u(F(ee(tn.o), 11), 19), u(F(ee(tn.o), 12), 19), u(F(ee(tn.o), 13), 19), u(F(ee(tn.o), 14), 19), u(F(ee(tn.o), 15), 19), u(F(St(tn.o), 0), 62), u(F(St(tn.o), 1), 62), u(F(St(tn.o), 2), 62), u(F(St(tn.o), 3), 62), u(F(St(tn.o), 4), 62), u(F(St(tn.o), 5), 62), u(F(St(tn.o), 6), 62), u(F(St(tn.o), 7), 62), u(F(St(tn.o), 8), 62), u(F(St(tn.o), 9), 62), Don = tn.p, u(F(ee(tn.p), 0), 38), u(F(ee(tn.p), 1), 38), u(F(ee(tn.p), 2), 38), u(F(ee(tn.p), 3), 38), u(F(ee(tn.p), 4), 19), u(F(ee(tn.p), 5), 19), u(F(St(tn.p), 0), 62), u(F(St(tn.p), 1), 62), Fon = tn.q, u(F(ee(tn.q), 0), 38), gd = tn.v, u(F(ee(tn.v), 0), 19), u(F(St(tn.v), 0), 62), u(F(St(tn.v), 1), 62), u(F(St(tn.v), 2), 62), s1 = tn.w, u(F(ee(tn.w), 0), 38), u(F(ee(tn.w), 1), 38), u(F(ee(tn.w), 2), 38), u(F(ee(tn.w), 3), 19), pd = tn.B, u(F(ee(tn.B), 0), 19), u(F(St(tn.B), 0), 62), u(F(St(tn.B), 1), 62), u(F(St(tn.B), 2), 62), Ron = tn.Q, u(F(ee(tn.Q), 0), 19), u(F(St(tn.Q), 0), 62), Bon = tn.R, u(F(ee(tn.R), 0), 38), rf = tn.S, u(F(St(tn.S), 0), 62), u(F(St(tn.S), 1), 62), u(F(St(tn.S), 2), 62), u(F(St(tn.S), 3), 62), u(F(St(tn.S), 4), 62), u(F(St(tn.S), 5), 62), u(F(St(tn.S), 6), 62), u(F(St(tn.S), 7), 62), u(F(St(tn.S), 8), 62), u(F(St(tn.S), 9), 62), u(F(St(tn.S), 10), 62), u(F(St(tn.S), 11), 62), u(F(St(tn.S), 12), 62), u(F(St(tn.S), 13), 62), u(F(St(tn.S), 14), 62), o1 = tn.T, u(F(ee(tn.T), 0), 19), u(F(ee(tn.T), 2), 19), _on = u(F(ee(tn.T), 3), 19), u(F(ee(tn.T), 4), 19), u(F(St(tn.T), 0), 62), u(F(St(tn.T), 1), 62), u(F(ee(tn.T), 1), 19), f1 = tn.U, u(F(ee(tn.U), 0), 38), u(F(ee(tn.U), 1), 38), u(F(ee(tn.U), 2), 19), u(F(ee(tn.U), 3), 19), u(F(ee(tn.U), 4), 19), u(F(ee(tn.U), 5), 19), u(F(St(tn.U), 0), 62), Fg = tn.V, u(F(ee(tn.V), 0), 19), kp = tn.W, u(F(ee(tn.W), 0), 38), u(F(ee(tn.W), 1), 38), u(F(ee(tn.W), 2), 38), u(F(ee(tn.W), 3), 19), u(F(ee(tn.W), 4), 19), u(F(ee(tn.W), 5), 19), Jon = tn.bb, u(F(ee(tn.bb), 0), 38), u(F(ee(tn.bb), 1), 38), u(F(ee(tn.bb), 2), 38), u(F(ee(tn.bb), 3), 38), u(F(ee(tn.bb), 4), 38), u(F(ee(tn.bb), 5), 38), u(F(ee(tn.bb), 6), 38), u(F(ee(tn.bb), 7), 19), u(F(St(tn.bb), 0), 62), u(F(St(tn.bb), 1), 62), Gon = tn.eb, u(F(ee(tn.eb), 0), 38), u(F(ee(tn.eb), 1), 38), u(F(ee(tn.eb), 2), 38), u(F(ee(tn.eb), 3), 38), u(F(ee(tn.eb), 4), 38), u(F(ee(tn.eb), 5), 38), u(F(ee(tn.eb), 6), 19), u(F(ee(tn.eb), 7), 19), Tr = tn.ab, u(F(ee(tn.ab), 0), 38), u(F(ee(tn.ab), 1), 38), Bb = tn.H, u(F(ee(tn.H), 0), 19), u(F(ee(tn.H), 1), 19), u(F(ee(tn.H), 2), 19), u(F(ee(tn.H), 3), 19), u(F(ee(tn.H), 4), 19), u(F(ee(tn.H), 5), 19), u(F(St(tn.H), 0), 62), _b = tn.db, u(F(ee(tn.db), 0), 19), Ch = tn.M; + Ue = G, Ng = (E1(), tn).b, u(F(ee(tn.b), 0), 38), u(F(ee(tn.b), 1), 19), u1 = tn.a, u(F(ee(tn.a), 0), 38), u(F(ee(tn.a), 1), 19), u(F(ee(tn.a), 2), 19), u(F(ee(tn.a), 3), 19), u(F(ee(tn.a), 4), 19), wd = tn.o, u(F(ee(tn.o), 0), 38), u(F(ee(tn.o), 1), 38), Fon = u(F(ee(tn.o), 2), 19), u(F(ee(tn.o), 3), 19), u(F(ee(tn.o), 4), 19), u(F(ee(tn.o), 5), 19), u(F(ee(tn.o), 6), 19), u(F(ee(tn.o), 7), 19), u(F(ee(tn.o), 8), 19), u(F(ee(tn.o), 9), 19), u(F(ee(tn.o), 10), 19), u(F(ee(tn.o), 11), 19), u(F(ee(tn.o), 12), 19), u(F(ee(tn.o), 13), 19), u(F(ee(tn.o), 14), 19), u(F(ee(tn.o), 15), 19), u(F(St(tn.o), 0), 62), u(F(St(tn.o), 1), 62), u(F(St(tn.o), 2), 62), u(F(St(tn.o), 3), 62), u(F(St(tn.o), 4), 62), u(F(St(tn.o), 5), 62), u(F(St(tn.o), 6), 62), u(F(St(tn.o), 7), 62), u(F(St(tn.o), 8), 62), u(F(St(tn.o), 9), 62), Non = tn.p, u(F(ee(tn.p), 0), 38), u(F(ee(tn.p), 1), 38), u(F(ee(tn.p), 2), 38), u(F(ee(tn.p), 3), 38), u(F(ee(tn.p), 4), 19), u(F(ee(tn.p), 5), 19), u(F(St(tn.p), 0), 62), u(F(St(tn.p), 1), 62), Ron = tn.q, u(F(ee(tn.q), 0), 38), gd = tn.v, u(F(ee(tn.v), 0), 19), u(F(St(tn.v), 0), 62), u(F(St(tn.v), 1), 62), u(F(St(tn.v), 2), 62), s1 = tn.w, u(F(ee(tn.w), 0), 38), u(F(ee(tn.w), 1), 38), u(F(ee(tn.w), 2), 38), u(F(ee(tn.w), 3), 19), pd = tn.B, u(F(ee(tn.B), 0), 19), u(F(St(tn.B), 0), 62), u(F(St(tn.B), 1), 62), u(F(St(tn.B), 2), 62), _on = tn.Q, u(F(ee(tn.Q), 0), 19), u(F(St(tn.Q), 0), 62), Bon = tn.R, u(F(ee(tn.R), 0), 38), rf = tn.S, u(F(St(tn.S), 0), 62), u(F(St(tn.S), 1), 62), u(F(St(tn.S), 2), 62), u(F(St(tn.S), 3), 62), u(F(St(tn.S), 4), 62), u(F(St(tn.S), 5), 62), u(F(St(tn.S), 6), 62), u(F(St(tn.S), 7), 62), u(F(St(tn.S), 8), 62), u(F(St(tn.S), 9), 62), u(F(St(tn.S), 10), 62), u(F(St(tn.S), 11), 62), u(F(St(tn.S), 12), 62), u(F(St(tn.S), 13), 62), u(F(St(tn.S), 14), 62), o1 = tn.T, u(F(ee(tn.T), 0), 19), u(F(ee(tn.T), 2), 19), Jon = u(F(ee(tn.T), 3), 19), u(F(ee(tn.T), 4), 19), u(F(St(tn.T), 0), 62), u(F(St(tn.T), 1), 62), u(F(ee(tn.T), 1), 19), f1 = tn.U, u(F(ee(tn.U), 0), 38), u(F(ee(tn.U), 1), 38), u(F(ee(tn.U), 2), 19), u(F(ee(tn.U), 3), 19), u(F(ee(tn.U), 4), 19), u(F(ee(tn.U), 5), 19), u(F(St(tn.U), 0), 62), Fg = tn.V, u(F(ee(tn.V), 0), 19), kp = tn.W, u(F(ee(tn.W), 0), 38), u(F(ee(tn.W), 1), 38), u(F(ee(tn.W), 2), 38), u(F(ee(tn.W), 3), 19), u(F(ee(tn.W), 4), 19), u(F(ee(tn.W), 5), 19), Gon = tn.bb, u(F(ee(tn.bb), 0), 38), u(F(ee(tn.bb), 1), 38), u(F(ee(tn.bb), 2), 38), u(F(ee(tn.bb), 3), 38), u(F(ee(tn.bb), 4), 38), u(F(ee(tn.bb), 5), 38), u(F(ee(tn.bb), 6), 38), u(F(ee(tn.bb), 7), 19), u(F(St(tn.bb), 0), 62), u(F(St(tn.bb), 1), 62), Hon = tn.eb, u(F(ee(tn.eb), 0), 38), u(F(ee(tn.eb), 1), 38), u(F(ee(tn.eb), 2), 38), u(F(ee(tn.eb), 3), 38), u(F(ee(tn.eb), 4), 38), u(F(ee(tn.eb), 5), 38), u(F(ee(tn.eb), 6), 19), u(F(ee(tn.eb), 7), 19), Tr = tn.ab, u(F(ee(tn.ab), 0), 38), u(F(ee(tn.ab), 1), 38), _b = tn.H, u(F(ee(tn.H), 0), 19), u(F(ee(tn.H), 1), 19), u(F(ee(tn.H), 2), 19), u(F(ee(tn.H), 3), 19), u(F(ee(tn.H), 4), 19), u(F(ee(tn.H), 5), 19), u(F(St(tn.H), 0), 62), Bb = tn.db, u(F(ee(tn.db), 0), 19), Ch = tn.M; } function mLn(e) { var n; - e.O || (e.O = !0, gu(e, "type"), bM(e, "ecore.xml.type"), wM(e, u0), n = u(Yv((m1(), tf), u0), 2006), Dn(Zr(e.fb), e.b), jc(e.b, QE, "AnyType", !1, !1, !0), di(u(F(ee(e.b), 0), 38), e.wb.D, Lj, null, 0, -1, QE, !1, !1, !0, !1, !1, !1), di(u(F(ee(e.b), 1), 38), e.wb.D, "any", null, 0, -1, QE, !0, !0, !0, !1, !1, !0), di(u(F(ee(e.b), 2), 38), e.wb.D, "anyAttribute", null, 0, -1, QE, !1, !1, !0, !1, !1, !1), jc(e.bb, bP, fQe, !1, !1, !0), di(u(F(ee(e.bb), 0), 38), e.gb, "data", null, 0, 1, bP, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.bb), 1), 38), e.gb, Cue, null, 1, 1, bP, !1, !1, !0, !1, !0, !1), jc(e.fb, YE, hQe, !1, !1, !0), di(u(F(ee(e.fb), 0), 38), n.gb, "rawValue", null, 0, 1, YE, !0, !0, !0, !1, !0, !0), di(u(F(ee(e.fb), 1), 38), n.a, Z9, null, 0, 1, YE, !0, !0, !0, !1, !0, !0), Ut(u(F(ee(e.fb), 2), 19), e.wb.q, null, "instanceType", 1, 1, YE, !1, !1, !0, !1, !1, !1, !1), jc(e.qb, V0e, lQe, !1, !1, !0), di(u(F(ee(e.qb), 0), 38), e.wb.D, Lj, null, 0, -1, null, !1, !1, !0, !1, !1, !1), Ut(u(F(ee(e.qb), 1), 19), e.wb.ab, null, "xMLNSPrefixMap", 0, -1, null, !0, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.qb), 2), 19), e.wb.ab, null, "xSISchemaLocation", 0, -1, null, !0, !1, !0, !0, !1, !1, !1), di(u(F(ee(e.qb), 3), 38), e.gb, "cDATA", null, 0, -2, null, !0, !0, !0, !1, !1, !0), di(u(F(ee(e.qb), 4), 38), e.gb, "comment", null, 0, -2, null, !0, !0, !0, !1, !1, !0), Ut(u(F(ee(e.qb), 5), 19), e.bb, null, AQe, 0, -2, null, !0, !0, !0, !0, !1, !1, !0), di(u(F(ee(e.qb), 6), 38), e.gb, oJ, null, 0, -2, null, !0, !0, !0, !1, !1, !0), bt(e.a, Li, "AnySimpleType", !0), bt(e.c, ke, "AnyURI", !0), bt(e.d, T(us, 1), "Base64Binary", !0), bt(e.e, zu, "Boolean", !0), bt(e.f, ui, "BooleanObject", !0), bt(e.g, us, "Byte", !0), bt(e.i, X3, "ByteObject", !0), bt(e.j, ke, "Date", !0), bt(e.k, ke, "DateTime", !0), bt(e.n, qJ, "Decimal", !0), bt(e.o, Xi, "Double", !0), bt(e.p, Ei, "DoubleObject", !0), bt(e.q, ke, "Duration", !0), bt(e.s, ro, "ENTITIES", !0), bt(e.r, ro, "ENTITIESBase", !0), bt(e.t, ke, Wue, !0), bt(e.u, Bg, "Float", !0), bt(e.v, J5, "FloatObject", !0), bt(e.w, ke, "GDay", !0), bt(e.B, ke, "GMonth", !0), bt(e.A, ke, "GMonthDay", !0), bt(e.C, ke, "GYear", !0), bt(e.D, ke, "GYearMonth", !0), bt(e.F, T(us, 1), "HexBinary", !0), bt(e.G, ke, "ID", !0), bt(e.H, ke, "IDREF", !0), bt(e.J, ro, "IDREFS", !0), bt(e.I, ro, "IDREFSBase", !0), bt(e.K, Wn, "Int", !0), bt(e.M, z2, "Integer", !0), bt(e.L, Ii, "IntObject", !0), bt(e.P, ke, "Language", !0), bt(e.Q, Gb, "Long", !0), bt(e.R, Ab, "LongObject", !0), bt(e.S, ke, "Name", !0), bt(e.T, ke, US, !0), bt(e.U, z2, "NegativeInteger", !0), bt(e.V, ke, Vue, !0), bt(e.X, ro, "NMTOKENS", !0), bt(e.W, ro, "NMTOKENSBase", !0), bt(e.Y, z2, "NonNegativeInteger", !0), bt(e.Z, z2, "NonPositiveInteger", !0), bt(e.$, ke, "NormalizedString", !0), bt(e._, ke, "NOTATION", !0), bt(e.ab, ke, "PositiveInteger", !0), bt(e.cb, ke, "QName", !0), bt(e.db, Ap, "Short", !0), bt(e.eb, xb, "ShortObject", !0), bt(e.gb, ke, Aie, !0), bt(e.hb, ke, "Time", !0), bt(e.ib, ke, "Token", !0), bt(e.jb, Ap, "UnsignedByte", !0), bt(e.kb, xb, "UnsignedByteObject", !0), bt(e.lb, Gb, "UnsignedInt", !0), bt(e.mb, Ab, "UnsignedIntObject", !0), bt(e.nb, z2, "UnsignedLong", !0), bt(e.ob, Wn, "UnsignedShort", !0), bt(e.pb, Ii, "UnsignedShortObject", !0), mZ(e, u0), vLn(e)); + e.O || (e.O = !0, gu(e, "type"), bM(e, "ecore.xml.type"), wM(e, u0), n = u(Yv((m1(), tf), u0), 2006), Dn(Zr(e.fb), e.b), jc(e.b, QE, "AnyType", !1, !1, !0), di(u(F(ee(e.b), 0), 38), e.wb.D, Lj, null, 0, -1, QE, !1, !1, !0, !1, !1, !1), di(u(F(ee(e.b), 1), 38), e.wb.D, "any", null, 0, -1, QE, !0, !0, !0, !1, !1, !0), di(u(F(ee(e.b), 2), 38), e.wb.D, "anyAttribute", null, 0, -1, QE, !1, !1, !0, !1, !1, !1), jc(e.bb, bP, hQe, !1, !1, !0), di(u(F(ee(e.bb), 0), 38), e.gb, "data", null, 0, 1, bP, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.bb), 1), 38), e.gb, Cue, null, 1, 1, bP, !1, !1, !0, !1, !0, !1), jc(e.fb, YE, lQe, !1, !1, !0), di(u(F(ee(e.fb), 0), 38), n.gb, "rawValue", null, 0, 1, YE, !0, !0, !0, !1, !0, !0), di(u(F(ee(e.fb), 1), 38), n.a, Z9, null, 0, 1, YE, !0, !0, !0, !1, !0, !0), Ut(u(F(ee(e.fb), 2), 19), e.wb.q, null, "instanceType", 1, 1, YE, !1, !1, !0, !1, !1, !1, !1), jc(e.qb, V0e, aQe, !1, !1, !0), di(u(F(ee(e.qb), 0), 38), e.wb.D, Lj, null, 0, -1, null, !1, !1, !0, !1, !1, !1), Ut(u(F(ee(e.qb), 1), 19), e.wb.ab, null, "xMLNSPrefixMap", 0, -1, null, !0, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.qb), 2), 19), e.wb.ab, null, "xSISchemaLocation", 0, -1, null, !0, !1, !0, !0, !1, !1, !1), di(u(F(ee(e.qb), 3), 38), e.gb, "cDATA", null, 0, -2, null, !0, !0, !0, !1, !1, !0), di(u(F(ee(e.qb), 4), 38), e.gb, "comment", null, 0, -2, null, !0, !0, !0, !1, !1, !0), Ut(u(F(ee(e.qb), 5), 19), e.bb, null, xQe, 0, -2, null, !0, !0, !0, !0, !1, !1, !0), di(u(F(ee(e.qb), 6), 38), e.gb, oJ, null, 0, -2, null, !0, !0, !0, !1, !1, !0), bt(e.a, Li, "AnySimpleType", !0), bt(e.c, ye, "AnyURI", !0), bt(e.d, S(us, 1), "Base64Binary", !0), bt(e.e, zu, "Boolean", !0), bt(e.f, ui, "BooleanObject", !0), bt(e.g, us, "Byte", !0), bt(e.i, X3, "ByteObject", !0), bt(e.j, ye, "Date", !0), bt(e.k, ye, "DateTime", !0), bt(e.n, qJ, "Decimal", !0), bt(e.o, Xi, "Double", !0), bt(e.p, Ei, "DoubleObject", !0), bt(e.q, ye, "Duration", !0), bt(e.s, ro, "ENTITIES", !0), bt(e.r, ro, "ENTITIESBase", !0), bt(e.t, ye, Wue, !0), bt(e.u, _g, "Float", !0), bt(e.v, J5, "FloatObject", !0), bt(e.w, ye, "GDay", !0), bt(e.B, ye, "GMonth", !0), bt(e.A, ye, "GMonthDay", !0), bt(e.C, ye, "GYear", !0), bt(e.D, ye, "GYearMonth", !0), bt(e.F, S(us, 1), "HexBinary", !0), bt(e.G, ye, "ID", !0), bt(e.H, ye, "IDREF", !0), bt(e.J, ro, "IDREFS", !0), bt(e.I, ro, "IDREFSBase", !0), bt(e.K, Wn, "Int", !0), bt(e.M, z2, "Integer", !0), bt(e.L, Ii, "IntObject", !0), bt(e.P, ye, "Language", !0), bt(e.Q, Gb, "Long", !0), bt(e.R, Ab, "LongObject", !0), bt(e.S, ye, "Name", !0), bt(e.T, ye, US, !0), bt(e.U, z2, "NegativeInteger", !0), bt(e.V, ye, Vue, !0), bt(e.X, ro, "NMTOKENS", !0), bt(e.W, ro, "NMTOKENSBase", !0), bt(e.Y, z2, "NonNegativeInteger", !0), bt(e.Z, z2, "NonPositiveInteger", !0), bt(e.$, ye, "NormalizedString", !0), bt(e._, ye, "NOTATION", !0), bt(e.ab, ye, "PositiveInteger", !0), bt(e.cb, ye, "QName", !0), bt(e.db, Ap, "Short", !0), bt(e.eb, xb, "ShortObject", !0), bt(e.gb, ye, Aie, !0), bt(e.hb, ye, "Time", !0), bt(e.ib, ye, "Token", !0), bt(e.jb, Ap, "UnsignedByte", !0), bt(e.kb, xb, "UnsignedByteObject", !0), bt(e.lb, Gb, "UnsignedInt", !0), bt(e.mb, Ab, "UnsignedIntObject", !0), bt(e.nb, z2, "UnsignedLong", !0), bt(e.ob, Wn, "UnsignedShort", !0), bt(e.pb, Ii, "UnsignedShortObject", !0), mZ(e, u0), vLn(e)); } function mie(e, n, t, i) { - var r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni, ps, Yr, ho, xp, l1, Df, ga, Lo, Mm, P8, pa, th, a1, A0, x0, Tm, $0, M0, ma, _g; + var r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke, Ye, yn, ut, ni, ps, Yr, ho, xp, l1, Df, ga, Lo, Mm, P8, pa, th, a1, A0, x0, Tm, $0, M0, ma, Bg; if (i.Zg() || ve(me(re(n, (tt(), HC))))) return ze(), ze(), $r; if (we = (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a).i != 0, Le = XEn(n), De = !Le.dc(), we || De) { if (r = u(re(n, Tg), 144), !r) throw $(new Aa("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout.")); - if ($0 = mX(r, (Qv(), cP)), yBe(n), !we && De && !$0) + if ($0 = mX(r, (Qv(), cP)), j_e(n), !we && De && !$0) return ze(), ze(), $r; if (R = new le(), z(re(n, wp)) === z((ea(), r1)) && (mX(r, iP) || mX(r, tP))) { if (ve(me(re(n, w4)))) throw $(new Aa("Topdown layout cannot be used together with hierarchy handling.")); - for (xp = jqe(e, n), l1 = new Dt(), wr(l1, (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); l1.b != 0; ) - Yr = u(l1.b == 0 ? null : (An(l1.b != 0), mo(l1, l1.a.a)), 26), yBe(Yr), Tm = z(re(Yr, wp)) === z(b8), Tm || Gf(Yr, pm) && !PQ(r, re(Yr, Tg)) ? (E = mie(e, Yr, t, i), Ci(R, E), Pt(Yr, wp, b8), Bqe(Yr)) : wr(l1, (!Yr.a && (Yr.a = new ne(Qn, Yr, 10, 11)), Yr.a)); + for (xp = Eqe(e, n), l1 = new Dt(), wr(l1, (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); l1.b != 0; ) + Yr = u(l1.b == 0 ? null : (An(l1.b != 0), mo(l1, l1.a.a)), 26), j_e(Yr), Tm = z(re(Yr, wp)) === z(b8), Tm || Gf(Yr, pm) && !PQ(r, re(Yr, Tg)) ? (E = mie(e, Yr, t, i), Ci(R, E), Pt(Yr, wp, b8), Bqe(Yr)) : wr(l1, (!Yr.a && (Yr.a = new ne(Qn, Yr, 10, 11)), Yr.a)); } else { if (xp = (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a).i, ve(me(re(n, w4)))) { - if (M0 = i.dh(1), M0.Tg(uKe, 1), re(n, km) == null) + if (M0 = i.dh(1), M0.Tg(sKe, 1), re(n, km) == null) throw $(new Aa(n.k + " has not been assigned a top-down node type.")); if (u(re(n, km), 281) == (y3(), Pg) || u(re(n, km), 281) == eP) for (D = new kn((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); D.e != D.i.gc(); ) - M = u(En(D), 26), ps = u(re(M, Tg), 144), ga = u(re(M, Ml), 104), (!M.a && (M.a = new ne(Qn, M, 10, 11)), M.a).i > 0 && Fy(ps.f), re(M, zC) != null && (!M.a && (M.a = new ne(Qn, M, 10, 11)), !!M.a) && (!M.a && (M.a = new ne(Qn, M, 10, 11)), M.a).i > 0 ? (f = u(re(M, zC), 521), x0 = f.Sg(M), D0(M, m.Math.max(M.g, x0.a + ga.b + ga.c), m.Math.max(M.f, x0.b + ga.d + ga.a))) : (!M.a && (M.a = new ne(Qn, M, 10, 11)), M.a).i != 0 && (x0 = new ue(_(H(re(M, Sg))), _(H(re(M, Sg))) / _(H(re(M, b4)))), D0(M, m.Math.max(M.g, x0.a + ga.b + ga.c), m.Math.max(M.f, x0.b + ga.d + ga.a))); - if (Df = u(re(n, Ml), 104), p = n.g - (Df.b + Df.c), g = n.f - (Df.d + Df.a), M0.ah("Available Child Area: (" + p + "|" + g + ")"), Pt(n, a4, p / g), $Be(n, r, i.dh(xp)), u(re(n, km), 281) == eP && (zR(n), D0(n, Df.b + _(H(re(n, xg))) + Df.c, Df.d + _(H(re(n, Ag))) + Df.a)), M0.ah("Executed layout algorithm: " + zn(re(n, pm)) + " on node " + n.k), u(re(n, km), 281) == Pg) { + T = u(En(D), 26), ps = u(re(T, Tg), 144), ga = u(re(T, Ml), 104), (!T.a && (T.a = new ne(Qn, T, 10, 11)), T.a).i > 0 && Fy(ps.f), re(T, zC) != null && (!T.a && (T.a = new ne(Qn, T, 10, 11)), !!T.a) && (!T.a && (T.a = new ne(Qn, T, 10, 11)), T.a).i > 0 ? (f = u(re(T, zC), 521), x0 = f.Sg(T), D0(T, m.Math.max(T.g, x0.a + ga.b + ga.c), m.Math.max(T.f, x0.b + ga.d + ga.a))) : (!T.a && (T.a = new ne(Qn, T, 10, 11)), T.a).i != 0 && (x0 = new ue(B(H(re(T, Sg))), B(H(re(T, Sg))) / B(H(re(T, b4)))), D0(T, m.Math.max(T.g, x0.a + ga.b + ga.c), m.Math.max(T.f, x0.b + ga.d + ga.a))); + if (Df = u(re(n, Ml), 104), p = n.g - (Df.b + Df.c), g = n.f - (Df.d + Df.a), M0.ah("Available Child Area: (" + p + "|" + g + ")"), Pt(n, a4, p / g), M_e(n, r, i.dh(xp)), u(re(n, km), 281) == eP && (zR(n), D0(n, Df.b + B(H(re(n, xg))) + Df.c, Df.d + B(H(re(n, Ag))) + Df.a)), M0.ah("Executed layout algorithm: " + zn(re(n, pm)) + " on node " + n.k), u(re(n, km), 281) == Pg) { if (p < 0 || g < 0) throw $(new Aa("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. " + n.k)); - for (Gf(n, xg) || Gf(n, Ag) || zR(n), j = _(H(re(n, xg))), v = _(H(re(n, Ag))), M0.ah("Desired Child Area: (" + j + "|" + v + ")"), Mm = p / j, P8 = g / v, Lo = m.Math.min(Mm, m.Math.min(P8, _(H(re(n, Psn))))), Pt(n, UC, Lo), M0.ah(n.k + " -- Local Scale Factor (X|Y): (" + Mm + "|" + P8 + ")"), J = u(re(n, $E), 22), c = 0, s = 0, Lo < Mm && (J.Gc((Kd(), s8)) ? c = (p / 2 - j * Lo / 2) / Lo : J.Gc(o8) && (c = (p - j * Lo) / Lo)), Lo < P8 && (J.Gc((Kd(), h8)) ? s = (g / 2 - v * Lo / 2) / Lo : J.Gc(f8) && (s = (g - v * Lo) / Lo)), ma = c + (Df.b / Lo - Df.b), _g = s + (Df.d / Lo - Df.d), M0.ah("Shift: (" + ma + "|" + _g + ")"), ho = new kn((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); ho.e != ho.i.gc(); ) - Yr = u(En(ho), 26), Es(Yr, Yr.i + ma), As(Yr, Yr.j + _g); + for (Gf(n, xg) || Gf(n, Ag) || zR(n), j = B(H(re(n, xg))), v = B(H(re(n, Ag))), M0.ah("Desired Child Area: (" + j + "|" + v + ")"), Mm = p / j, P8 = g / v, Lo = m.Math.min(Mm, m.Math.min(P8, B(H(re(n, Osn))))), Pt(n, UC, Lo), M0.ah(n.k + " -- Local Scale Factor (X|Y): (" + Mm + "|" + P8 + ")"), J = u(re(n, $E), 22), c = 0, s = 0, Lo < Mm && (J.Gc((Kd(), s8)) ? c = (p / 2 - j * Lo / 2) / Lo : J.Gc(o8) && (c = (p - j * Lo) / Lo)), Lo < P8 && (J.Gc((Kd(), h8)) ? s = (g / 2 - v * Lo / 2) / Lo : J.Gc(f8) && (s = (g - v * Lo) / Lo)), ma = c + (Df.b / Lo - Df.b), Bg = s + (Df.d / Lo - Df.d), M0.ah("Shift: (" + ma + "|" + Bg + ")"), ho = new kn((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); ho.e != ho.i.gc(); ) + Yr = u(En(ho), 26), Es(Yr, Yr.i + ma), As(Yr, Yr.j + Bg); for (X = new kn((!n.b && (n.b = new ne(xi, n, 12, 3)), n.b)); X.e != X.i.gc(); ) { for (V = u(En(X), 85), th = new kn((!V.a && (V.a = new ne(Wt, V, 6, 6)), V.a)); th.e != th.i.gc(); ) - for (pa = u(En(th), 170), by(pa, pa.j + ma, pa.k + _g), dy(pa, pa.b + ma, pa.c + _g), l = new kn((!pa.a && (pa.a = new $i(fo, pa, 5)), pa.a)); l.e != l.i.gc(); ) - h = u(En(l), 372), fL(h, h.a + ma, h.b + _g); + for (pa = u(En(th), 170), by(pa, pa.j + ma, pa.k + Bg), dy(pa, pa.b + ma, pa.c + Bg), l = new kn((!pa.a && (pa.a = new $i(fo, pa, 5)), pa.a)); l.e != l.i.gc(); ) + h = u(En(l), 372), fL(h, h.a + ma, h.b + Bg); for (ni = new kn((!V.n && (V.n = new ne(vc, V, 1, 7)), V.n)); ni.e != ni.i.gc(); ) - ut = u(En(ni), 157), ao(ut, ut.i + ma, ut.j + _g); + ut = u(En(ni), 157), ao(ut, ut.i + ma, ut.j + Bg); for (yn = u(re(V, gp), 78), Ye = Nn(yn, 0); Ye.b != Ye.d.c; ) - Ke = u(Ln(Ye), 8), Ke.a += ma, Ke.b += _g; + Ke = u(Ln(Ye), 8), Ke.a += ma, Ke.b += Bg; Pt(V, gp, yn); } } @@ -32675,40 +32765,40 @@ function WDn() { return ze(), ze(), $r; for (A0 = new x(R); A0.a < A0.c.c.length; ) a1 = u(A(A0), 85), Pt(a1, HC, (en(), !0)); - return ve(me(re(n, w4))) || $Be(n, r, i.dh(xp)), iSn(R), De && $0 ? Le : (ze(), ze(), $r); + return ve(me(re(n, w4))) || M_e(n, r, i.dh(xp)), iSn(R), De && $0 ? Le : (ze(), ze(), $r); } else return ze(), ze(), $r; } function D2(e, n) { var t, i; return Ep || (Ep = new Tn(), j4 = new Tn(), i = (kt(), kt(), new Xs(4)), $7(i, ` -\r\r `), zr(Ep, MJ, i), zr(j4, MJ, Hw(i)), i = new Xs(4), $7(i, $Qe), zr(Ep, ok, i), zr(j4, ok, Hw(i)), i = new Xs(4), $7(i, $Qe), zr(Ep, ok, i), zr(j4, ok, Hw(i)), i = new Xs(4), $7(i, MQe), Uw(i, u(nu(Ep, ok), 121)), zr(Ep, $J, i), zr(j4, $J, Hw(i)), i = new Xs(4), $7(i, "-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"), zr(Ep, TJ, i), zr(j4, TJ, Hw(i)), i = new Xs(4), $7(i, MQe), ru(i, 95, 95), ru(i, 58, 58), zr(Ep, SJ, i), zr(j4, SJ, Hw(i))), t = u(nu(n ? Ep : j4, e), 137), t; +\r\r `), zr(Ep, MJ, i), zr(j4, MJ, Hw(i)), i = new Xs(4), $7(i, MQe), zr(Ep, ok, i), zr(j4, ok, Hw(i)), i = new Xs(4), $7(i, MQe), zr(Ep, ok, i), zr(j4, ok, Hw(i)), i = new Xs(4), $7(i, TQe), Uw(i, u(nu(Ep, ok), 121)), zr(Ep, $J, i), zr(j4, $J, Hw(i)), i = new Xs(4), $7(i, "-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"), zr(Ep, TJ, i), zr(j4, TJ, Hw(i)), i = new Xs(4), $7(i, TQe), ru(i, 95, 95), ru(i, 58, 58), zr(Ep, SJ, i), zr(j4, SJ, Hw(i))), t = u(nu(n ? Ep : j4, e), 137), t; } - function Yze(e) { - ew(e, new sb(EW(CA(Yb(Kb(Qb(Vb(new S0(), nn), "ELK Layered"), "Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."), new u3e()), nn), Rt((Qv(), yU), I(T(sP, 1), ce, 244, 0, [cP, uP, rP, kU, iP, tP]))))), se(e, nn, Jre, ge(AH)), se(e, nn, Gre, ge(ele)), se(e, nn, Hre, ge(oE)), se(e, nn, qre, ge(Mf)), se(e, nn, NB, ge(sp)), se(e, nn, x_, ge(w0)), se(e, nn, Ure, ge(vg)), se(e, nn, zre, ge(c4)), se(e, nn, Wre, ge(u4)), se(e, nn, Xre, ge(xH)), se(e, nn, Vw, ge(g0)), se(e, nn, Kre, ge($H)), se(e, nn, Vre, ge(Fk)), se(e, nn, Qre, ge(sC)), se(e, nn, vre, ge(sE)), se(e, nn, yre, ge(mg)), se(e, nn, kre, ge(rd)), se(e, nn, jre, ge(kg)), se(e, nn, mj, ie(0)), se(e, nn, Ere, ge(r4)), se(e, nn, Are, ge(Zhe)), se(e, nn, xre, ge(am)), se(e, nn, ua, ge(fle)), se(e, nn, sS, ge(tle)), se(e, nn, oS, ge(ile)), se(e, nn, U9, ge(TH)), se(e, nn, s_, ge(rle)), se(e, nn, o_, ge(cle)), se(e, nn, fS, ge(oC)), se(e, nn, hS, ge(SH)), se(e, nn, lS, ge(sle)), se(e, nn, aS, ge(ule)), se(e, nn, f_, ge(ole)), se(e, nn, h_, ge(Ghe)), se(e, nn, l_, ge(kH)), se(e, nn, a_, ge(tC)), se(e, nn, d_, ge(yH)), se(e, nn, n_, ge(Lb)), se(e, nn, t_, ge(Nk)), se(e, nn, rS, ge(mH)), se(e, nn, cS, ge(Che)), se(e, nn, vj, ge(Iin)), se(e, nn, kj, ge(Cin)), se(e, nn, yj, ge(Sin)), se(e, nn, jj, ge(Tin)), se(e, nn, pb, nle), se(e, nn, Qw, Xhe), se(e, nn, Tj, The), se(e, nn, Yre, 0), se(e, nn, KT, ie(1)), se(e, nn, v5, m5), se(e, nn, Zre, ge(b0)), se(e, nn, FB, ge(oi)), se(e, nn, ece, ge(i4)), se(e, nn, Sj, ge(min)), se(e, nn, nce, ge(tl)), se(e, nn, bS, ge(ag)), se(e, nn, R9, (en(), !0)), se(e, nn, tce, ge(dg)), se(e, nn, ice, ge(a0)), se(e, nn, R2, ge(d0)), se(e, nn, H3, ge(uC)), se(e, nn, k5, ge(EH)), se(e, nn, $_, Mhe), se(e, nn, y5, ge(Ob)), se(e, nn, rce, ge(rC)), se(e, nn, j5, ge(gg)), se(e, nn, cce, ge(Ain)), se(e, nn, uce, ge(Qhe)), se(e, nn, sce, Vhe), se(e, nn, oce, ge(yin)), se(e, nn, fce, ge(jin)), se(e, nn, hce, ge(Ein)), se(e, nn, lce, ge(kin)), se(e, nn, ure, ge(MH)), se(e, nn, $j, ge(nC)), se(e, nn, zB, ge(uE)), se(e, nn, cre, ge(Rk)), se(e, nn, ore, ge(pc)), se(e, nn, xj, ge(lm)), se(e, nn, q9, ge(Ok)), se(e, nn, lre, ge(n4)), se(e, nn, gre, ge(Ahe)), se(e, nn, QB, ge(wH)), se(e, nn, tS, ge(cE)), se(e, nn, VB, ge(gH)), se(e, nn, nre, ge(Hhe)), se(e, nn, tre, ge(qhe)), se(e, nn, nS, ge(Fhe)), se(e, nn, B2, ge(cC)), se(e, nn, ZB, ge(jH)), se(e, nn, ere, ge(vH)), se(e, nn, e_, ge(zhe)), se(e, nn, pre, ge(Ihe)), se(e, nn, mre, ge(pH)), se(e, nn, wS, ge(bH)), se(e, nn, YB, ge(Uhe)), se(e, nn, $re, ge(KI)), se(e, nn, Mre, ge(khe)), se(e, nn, r_, ge(XI)), se(e, nn, uS, ge(Lhe)), se(e, nn, c_, ge(Ohe)), se(e, nn, u_, ge(Dhe)), se(e, nn, q3, ge(t4)), se(e, nn, ace, ge(Vr)), se(e, nn, dce, ge(Ya)), se(e, nn, bce, ge(il)), se(e, nn, VT, ge(up)), se(e, nn, KB, ge(xhe)), se(e, nn, wce, ge(Za)), se(e, nn, gce, ge(Sk)), se(e, nn, pce, ge(eC)), se(e, nn, mce, ge(Db)), se(e, nn, M_, ge(Khe)), se(e, nn, T_, ge(bg)), se(e, nn, qB, ge(Bhe)), se(e, nn, UB, ge(_he)), se(e, nn, gS, ge(pg)), se(e, nn, ire, ge(hH)), se(e, nn, WB, ge(Jhe)), se(e, nn, Tre, ge(ZI)), se(e, nn, Sre, ge(YI)), se(e, nn, vce, ge(iC)), se(e, nn, XB, ge(Rhe)), se(e, nn, iS, ge(Dk)), se(e, nn, kce, ge(fE)), se(e, nn, Zie, ge($he)), se(e, nn, rre, ge(Yhe)), se(e, nn, i_, ge(She)), se(e, nn, are, ge(win)), se(e, nn, dre, ge(gin)), se(e, nn, fre, ge(vin)), se(e, nn, bre, ge(pin)), se(e, nn, pS, ge(Nhe)), se(e, nn, hre, ge(Lk)), se(e, nn, wre, ge(QI)), se(e, nn, dS, ge($l)), se(e, nn, Cre, ge(aH)), se(e, nn, w_, ge(rE)), se(e, nn, g_, ge(lH)), se(e, nn, Mj, ge(VI)), se(e, nn, b_, ge(Ik)), se(e, nn, Ire, ge(dH)), se(e, nn, p_, ge(lg)), se(e, nn, m_, ge(Pk)), se(e, nn, v_, ge(bin)), se(e, nn, Pre, ge(hm)), se(e, nn, Ore, ge(Ck)), se(e, nn, Lre, ge(Ehe)), se(e, nn, k_, ge(yhe)), se(e, nn, y_, ge(jhe)), se(e, nn, sre, ge(Phe)); + function Zze(e) { + ew(e, new sb(EW(CA(Yb(Kb(Qb(Vb(new S0(), nn), "ELK Layered"), "Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."), new s3e()), nn), Rt((Qv(), yU), I(S(sP, 1), ce, 244, 0, [cP, uP, rP, kU, iP, tP]))))), se(e, nn, Jre, ge(AH)), se(e, nn, Gre, ge(ele)), se(e, nn, Hre, ge(oE)), se(e, nn, qre, ge(Mf)), se(e, nn, N_, ge(sp)), se(e, nn, xB, ge(w0)), se(e, nn, Ure, ge(vg)), se(e, nn, zre, ge(c4)), se(e, nn, Wre, ge(u4)), se(e, nn, Xre, ge(xH)), se(e, nn, Vw, ge(g0)), se(e, nn, Kre, ge($H)), se(e, nn, Vre, ge(Fk)), se(e, nn, Qre, ge(sC)), se(e, nn, vre, ge(sE)), se(e, nn, yre, ge(mg)), se(e, nn, kre, ge(rd)), se(e, nn, jre, ge(kg)), se(e, nn, mj, ie(0)), se(e, nn, Ere, ge(r4)), se(e, nn, Are, ge(Zhe)), se(e, nn, xre, ge(am)), se(e, nn, ua, ge(fle)), se(e, nn, sS, ge(tle)), se(e, nn, oS, ge(ile)), se(e, nn, U9, ge(TH)), se(e, nn, sB, ge(rle)), se(e, nn, oB, ge(cle)), se(e, nn, fS, ge(oC)), se(e, nn, hS, ge(SH)), se(e, nn, lS, ge(sle)), se(e, nn, aS, ge(ule)), se(e, nn, fB, ge(ole)), se(e, nn, hB, ge(Ghe)), se(e, nn, lB, ge(kH)), se(e, nn, aB, ge(tC)), se(e, nn, dB, ge(yH)), se(e, nn, nB, ge(Lb)), se(e, nn, tB, ge(Nk)), se(e, nn, rS, ge(mH)), se(e, nn, cS, ge(Che)), se(e, nn, vj, ge(Cin)), se(e, nn, kj, ge(Pin)), se(e, nn, yj, ge(Iin)), se(e, nn, jj, ge(Sin)), se(e, nn, pb, nle), se(e, nn, Qw, Xhe), se(e, nn, Tj, The), se(e, nn, Yre, 0), se(e, nn, KT, ie(1)), se(e, nn, v5, m5), se(e, nn, Zre, ge(b0)), se(e, nn, F_, ge(oi)), se(e, nn, ece, ge(i4)), se(e, nn, Sj, ge(vin)), se(e, nn, nce, ge(tl)), se(e, nn, bS, ge(ag)), se(e, nn, R9, (en(), !0)), se(e, nn, tce, ge(dg)), se(e, nn, ice, ge(a0)), se(e, nn, R2, ge(d0)), se(e, nn, H3, ge(uC)), se(e, nn, k5, ge(EH)), se(e, nn, $B, Mhe), se(e, nn, y5, ge(Ob)), se(e, nn, rce, ge(rC)), se(e, nn, j5, ge(gg)), se(e, nn, cce, ge(xin)), se(e, nn, uce, ge(Qhe)), se(e, nn, sce, Vhe), se(e, nn, oce, ge(jin)), se(e, nn, fce, ge(Ein)), se(e, nn, hce, ge(Ain)), se(e, nn, lce, ge(yin)), se(e, nn, ure, ge(MH)), se(e, nn, $j, ge(nC)), se(e, nn, z_, ge(uE)), se(e, nn, cre, ge(Rk)), se(e, nn, ore, ge(pc)), se(e, nn, xj, ge(lm)), se(e, nn, q9, ge(Ok)), se(e, nn, lre, ge(n4)), se(e, nn, gre, ge(Ahe)), se(e, nn, Q_, ge(wH)), se(e, nn, tS, ge(cE)), se(e, nn, V_, ge(gH)), se(e, nn, nre, ge(Hhe)), se(e, nn, tre, ge(qhe)), se(e, nn, nS, ge(Fhe)), se(e, nn, _2, ge(cC)), se(e, nn, Z_, ge(jH)), se(e, nn, ere, ge(vH)), se(e, nn, eB, ge(zhe)), se(e, nn, pre, ge(Ihe)), se(e, nn, mre, ge(pH)), se(e, nn, wS, ge(bH)), se(e, nn, Y_, ge(Uhe)), se(e, nn, $re, ge(KI)), se(e, nn, Mre, ge(khe)), se(e, nn, rB, ge(XI)), se(e, nn, uS, ge(Lhe)), se(e, nn, cB, ge(Ohe)), se(e, nn, uB, ge(Dhe)), se(e, nn, q3, ge(t4)), se(e, nn, ace, ge(Vr)), se(e, nn, dce, ge(Ya)), se(e, nn, bce, ge(il)), se(e, nn, VT, ge(up)), se(e, nn, K_, ge(xhe)), se(e, nn, wce, ge(Za)), se(e, nn, gce, ge(Sk)), se(e, nn, pce, ge(eC)), se(e, nn, mce, ge(Db)), se(e, nn, MB, ge(Khe)), se(e, nn, TB, ge(bg)), se(e, nn, q_, ge(_he)), se(e, nn, U_, ge(Bhe)), se(e, nn, gS, ge(pg)), se(e, nn, ire, ge(hH)), se(e, nn, W_, ge(Jhe)), se(e, nn, Tre, ge(ZI)), se(e, nn, Sre, ge(YI)), se(e, nn, vce, ge(iC)), se(e, nn, X_, ge(Rhe)), se(e, nn, iS, ge(Dk)), se(e, nn, kce, ge(fE)), se(e, nn, Zie, ge($he)), se(e, nn, rre, ge(Yhe)), se(e, nn, iB, ge(She)), se(e, nn, are, ge(gin)), se(e, nn, dre, ge(pin)), se(e, nn, fre, ge(kin)), se(e, nn, bre, ge(min)), se(e, nn, pS, ge(Nhe)), se(e, nn, hre, ge(Lk)), se(e, nn, wre, ge(QI)), se(e, nn, dS, ge($l)), se(e, nn, Cre, ge(aH)), se(e, nn, wB, ge(rE)), se(e, nn, gB, ge(lH)), se(e, nn, Mj, ge(VI)), se(e, nn, bB, ge(Ik)), se(e, nn, Ire, ge(dH)), se(e, nn, pB, ge(lg)), se(e, nn, mB, ge(Pk)), se(e, nn, vB, ge(win)), se(e, nn, Pre, ge(hm)), se(e, nn, Ore, ge(Ck)), se(e, nn, Lre, ge(Ehe)), se(e, nn, kB, ge(yhe)), se(e, nn, yB, ge(jhe)), se(e, nn, sre, ge(Phe)); } function vLn(e) { - Rn(e.a, nt, I(T(ke, 1), oe, 2, 6, [gt, "anySimpleType"])), Rn(e.b, nt, I(T(ke, 1), oe, 2, 6, [gt, "anyType", zo, Lj])), Rn(u(F(ee(e.b), 0), 38), nt, I(T(ke, 1), oe, 2, 6, [zo, yJ, gt, ":mixed"])), Rn(u(F(ee(e.b), 1), 38), nt, I(T(ke, 1), oe, 2, 6, [zo, yJ, Uue, EJ, gt, ":1", aQe, "lax"])), Rn(u(F(ee(e.b), 2), 38), nt, I(T(ke, 1), oe, 2, 6, [zo, oQe, Uue, EJ, gt, ":2", aQe, "lax"])), Rn(e.c, nt, I(T(ke, 1), oe, 2, 6, [gt, "anyURI", Xo, Kf])), Rn(e.d, nt, I(T(ke, 1), oe, 2, 6, [gt, "base64Binary", Xo, Kf])), Rn(e.e, nt, I(T(ke, 1), oe, 2, 6, [gt, D3, Xo, Kf])), Rn(e.f, nt, I(T(ke, 1), oe, 2, 6, [gt, "boolean:Object", ar, D3])), Rn(e.g, nt, I(T(ke, 1), oe, 2, 6, [gt, nk])), Rn(e.i, nt, I(T(ke, 1), oe, 2, 6, [gt, "byte:Object", ar, nk])), Rn(e.j, nt, I(T(ke, 1), oe, 2, 6, [gt, "date", Xo, Kf])), Rn(e.k, nt, I(T(ke, 1), oe, 2, 6, [gt, "dateTime", Xo, Kf])), Rn(e.n, nt, I(T(ke, 1), oe, 2, 6, [gt, "decimal", Xo, Kf])), Rn(e.o, nt, I(T(ke, 1), oe, 2, 6, [gt, tk, Xo, Kf])), Rn(e.p, nt, I(T(ke, 1), oe, 2, 6, [gt, "double:Object", ar, tk])), Rn(e.q, nt, I(T(ke, 1), oe, 2, 6, [gt, "duration", Xo, Kf])), Rn(e.s, nt, I(T(ke, 1), oe, 2, 6, [gt, "ENTITIES", ar, dQe, zue, "1"])), Rn(e.r, nt, I(T(ke, 1), oe, 2, 6, [gt, dQe, jJ, Wue])), Rn(e.t, nt, I(T(ke, 1), oe, 2, 6, [gt, Wue, ar, US])), Rn(e.u, nt, I(T(ke, 1), oe, 2, 6, [gt, ik, Xo, Kf])), Rn(e.v, nt, I(T(ke, 1), oe, 2, 6, [gt, "float:Object", ar, ik])), Rn(e.w, nt, I(T(ke, 1), oe, 2, 6, [gt, "gDay", Xo, Kf])), Rn(e.B, nt, I(T(ke, 1), oe, 2, 6, [gt, "gMonth", Xo, Kf])), Rn(e.A, nt, I(T(ke, 1), oe, 2, 6, [gt, "gMonthDay", Xo, Kf])), Rn(e.C, nt, I(T(ke, 1), oe, 2, 6, [gt, "gYear", Xo, Kf])), Rn(e.D, nt, I(T(ke, 1), oe, 2, 6, [gt, "gYearMonth", Xo, Kf])), Rn(e.F, nt, I(T(ke, 1), oe, 2, 6, [gt, "hexBinary", Xo, Kf])), Rn(e.G, nt, I(T(ke, 1), oe, 2, 6, [gt, "ID", ar, US])), Rn(e.H, nt, I(T(ke, 1), oe, 2, 6, [gt, "IDREF", ar, US])), Rn(e.J, nt, I(T(ke, 1), oe, 2, 6, [gt, "IDREFS", ar, bQe, zue, "1"])), Rn(e.I, nt, I(T(ke, 1), oe, 2, 6, [gt, bQe, jJ, "IDREF"])), Rn(e.K, nt, I(T(ke, 1), oe, 2, 6, [gt, rk])), Rn(e.M, nt, I(T(ke, 1), oe, 2, 6, [gt, Xue])), Rn(e.L, nt, I(T(ke, 1), oe, 2, 6, [gt, "int:Object", ar, rk])), Rn(e.P, nt, I(T(ke, 1), oe, 2, 6, [gt, "language", ar, AJ, xJ, wQe])), Rn(e.Q, nt, I(T(ke, 1), oe, 2, 6, [gt, ck])), Rn(e.R, nt, I(T(ke, 1), oe, 2, 6, [gt, "long:Object", ar, ck])), Rn(e.S, nt, I(T(ke, 1), oe, 2, 6, [gt, "Name", ar, AJ, xJ, Kue])), Rn(e.T, nt, I(T(ke, 1), oe, 2, 6, [gt, US, ar, "Name", xJ, gQe])), Rn(e.U, nt, I(T(ke, 1), oe, 2, 6, [gt, "negativeInteger", ar, pQe, Bj, "-1"])), Rn(e.V, nt, I(T(ke, 1), oe, 2, 6, [gt, Vue, ar, AJ, xJ, "\\c+"])), Rn(e.X, nt, I(T(ke, 1), oe, 2, 6, [gt, "NMTOKENS", ar, mQe, zue, "1"])), Rn(e.W, nt, I(T(ke, 1), oe, 2, 6, [gt, mQe, jJ, Vue])), Rn(e.Y, nt, I(T(ke, 1), oe, 2, 6, [gt, Que, ar, Xue, _j, "0"])), Rn(e.Z, nt, I(T(ke, 1), oe, 2, 6, [gt, pQe, ar, Xue, Bj, "0"])), Rn(e.$, nt, I(T(ke, 1), oe, 2, 6, [gt, vQe, ar, KR, Xo, "replace"])), Rn(e._, nt, I(T(ke, 1), oe, 2, 6, [gt, "NOTATION", Xo, Kf])), Rn(e.ab, nt, I(T(ke, 1), oe, 2, 6, [gt, "positiveInteger", ar, Que, _j, "1"])), Rn(e.bb, nt, I(T(ke, 1), oe, 2, 6, [gt, "processingInstruction_._type", zo, "empty"])), Rn(u(F(ee(e.bb), 0), 38), nt, I(T(ke, 1), oe, 2, 6, [zo, JS, gt, "data"])), Rn(u(F(ee(e.bb), 1), 38), nt, I(T(ke, 1), oe, 2, 6, [zo, JS, gt, Cue])), Rn(e.cb, nt, I(T(ke, 1), oe, 2, 6, [gt, "QName", Xo, Kf])), Rn(e.db, nt, I(T(ke, 1), oe, 2, 6, [gt, uk])), Rn(e.eb, nt, I(T(ke, 1), oe, 2, 6, [gt, "short:Object", ar, uk])), Rn(e.fb, nt, I(T(ke, 1), oe, 2, 6, [gt, "simpleAnyType", zo, Dj])), Rn(u(F(ee(e.fb), 0), 38), nt, I(T(ke, 1), oe, 2, 6, [gt, ":3", zo, Dj])), Rn(u(F(ee(e.fb), 1), 38), nt, I(T(ke, 1), oe, 2, 6, [gt, ":4", zo, Dj])), Rn(u(F(ee(e.fb), 2), 19), nt, I(T(ke, 1), oe, 2, 6, [gt, ":5", zo, Dj])), Rn(e.gb, nt, I(T(ke, 1), oe, 2, 6, [gt, KR, Xo, "preserve"])), Rn(e.hb, nt, I(T(ke, 1), oe, 2, 6, [gt, "time", Xo, Kf])), Rn(e.ib, nt, I(T(ke, 1), oe, 2, 6, [gt, AJ, ar, vQe, Xo, Kf])), Rn(e.jb, nt, I(T(ke, 1), oe, 2, 6, [gt, kQe, Bj, "255", _j, "0"])), Rn(e.kb, nt, I(T(ke, 1), oe, 2, 6, [gt, "unsignedByte:Object", ar, kQe])), Rn(e.lb, nt, I(T(ke, 1), oe, 2, 6, [gt, yQe, Bj, "4294967295", _j, "0"])), Rn(e.mb, nt, I(T(ke, 1), oe, 2, 6, [gt, "unsignedInt:Object", ar, yQe])), Rn(e.nb, nt, I(T(ke, 1), oe, 2, 6, [gt, "unsignedLong", ar, Que, Bj, jQe, _j, "0"])), Rn(e.ob, nt, I(T(ke, 1), oe, 2, 6, [gt, EQe, Bj, "65535", _j, "0"])), Rn(e.pb, nt, I(T(ke, 1), oe, 2, 6, [gt, "unsignedShort:Object", ar, EQe])), Rn(e.qb, nt, I(T(ke, 1), oe, 2, 6, [gt, "", zo, Lj])), Rn(u(F(ee(e.qb), 0), 38), nt, I(T(ke, 1), oe, 2, 6, [zo, yJ, gt, ":mixed"])), Rn(u(F(ee(e.qb), 1), 19), nt, I(T(ke, 1), oe, 2, 6, [zo, JS, gt, "xmlns:prefix"])), Rn(u(F(ee(e.qb), 2), 19), nt, I(T(ke, 1), oe, 2, 6, [zo, JS, gt, "xsi:schemaLocation"])), Rn(u(F(ee(e.qb), 3), 38), nt, I(T(ke, 1), oe, 2, 6, [zo, GS, gt, "cDATA", HS, Nj])), Rn(u(F(ee(e.qb), 4), 38), nt, I(T(ke, 1), oe, 2, 6, [zo, GS, gt, "comment", HS, Nj])), Rn(u(F(ee(e.qb), 5), 19), nt, I(T(ke, 1), oe, 2, 6, [zo, GS, gt, AQe, HS, Nj])), Rn(u(F(ee(e.qb), 6), 38), nt, I(T(ke, 1), oe, 2, 6, [zo, GS, gt, oJ, HS, Nj])); + Rn(e.a, nt, I(S(ye, 1), fe, 2, 6, [gt, "anySimpleType"])), Rn(e.b, nt, I(S(ye, 1), fe, 2, 6, [gt, "anyType", zo, Lj])), Rn(u(F(ee(e.b), 0), 38), nt, I(S(ye, 1), fe, 2, 6, [zo, yJ, gt, ":mixed"])), Rn(u(F(ee(e.b), 1), 38), nt, I(S(ye, 1), fe, 2, 6, [zo, yJ, Uue, EJ, gt, ":1", dQe, "lax"])), Rn(u(F(ee(e.b), 2), 38), nt, I(S(ye, 1), fe, 2, 6, [zo, fQe, Uue, EJ, gt, ":2", dQe, "lax"])), Rn(e.c, nt, I(S(ye, 1), fe, 2, 6, [gt, "anyURI", Xo, Kf])), Rn(e.d, nt, I(S(ye, 1), fe, 2, 6, [gt, "base64Binary", Xo, Kf])), Rn(e.e, nt, I(S(ye, 1), fe, 2, 6, [gt, D3, Xo, Kf])), Rn(e.f, nt, I(S(ye, 1), fe, 2, 6, [gt, "boolean:Object", ar, D3])), Rn(e.g, nt, I(S(ye, 1), fe, 2, 6, [gt, nk])), Rn(e.i, nt, I(S(ye, 1), fe, 2, 6, [gt, "byte:Object", ar, nk])), Rn(e.j, nt, I(S(ye, 1), fe, 2, 6, [gt, "date", Xo, Kf])), Rn(e.k, nt, I(S(ye, 1), fe, 2, 6, [gt, "dateTime", Xo, Kf])), Rn(e.n, nt, I(S(ye, 1), fe, 2, 6, [gt, "decimal", Xo, Kf])), Rn(e.o, nt, I(S(ye, 1), fe, 2, 6, [gt, tk, Xo, Kf])), Rn(e.p, nt, I(S(ye, 1), fe, 2, 6, [gt, "double:Object", ar, tk])), Rn(e.q, nt, I(S(ye, 1), fe, 2, 6, [gt, "duration", Xo, Kf])), Rn(e.s, nt, I(S(ye, 1), fe, 2, 6, [gt, "ENTITIES", ar, bQe, zue, "1"])), Rn(e.r, nt, I(S(ye, 1), fe, 2, 6, [gt, bQe, jJ, Wue])), Rn(e.t, nt, I(S(ye, 1), fe, 2, 6, [gt, Wue, ar, US])), Rn(e.u, nt, I(S(ye, 1), fe, 2, 6, [gt, ik, Xo, Kf])), Rn(e.v, nt, I(S(ye, 1), fe, 2, 6, [gt, "float:Object", ar, ik])), Rn(e.w, nt, I(S(ye, 1), fe, 2, 6, [gt, "gDay", Xo, Kf])), Rn(e.B, nt, I(S(ye, 1), fe, 2, 6, [gt, "gMonth", Xo, Kf])), Rn(e.A, nt, I(S(ye, 1), fe, 2, 6, [gt, "gMonthDay", Xo, Kf])), Rn(e.C, nt, I(S(ye, 1), fe, 2, 6, [gt, "gYear", Xo, Kf])), Rn(e.D, nt, I(S(ye, 1), fe, 2, 6, [gt, "gYearMonth", Xo, Kf])), Rn(e.F, nt, I(S(ye, 1), fe, 2, 6, [gt, "hexBinary", Xo, Kf])), Rn(e.G, nt, I(S(ye, 1), fe, 2, 6, [gt, "ID", ar, US])), Rn(e.H, nt, I(S(ye, 1), fe, 2, 6, [gt, "IDREF", ar, US])), Rn(e.J, nt, I(S(ye, 1), fe, 2, 6, [gt, "IDREFS", ar, wQe, zue, "1"])), Rn(e.I, nt, I(S(ye, 1), fe, 2, 6, [gt, wQe, jJ, "IDREF"])), Rn(e.K, nt, I(S(ye, 1), fe, 2, 6, [gt, rk])), Rn(e.M, nt, I(S(ye, 1), fe, 2, 6, [gt, Xue])), Rn(e.L, nt, I(S(ye, 1), fe, 2, 6, [gt, "int:Object", ar, rk])), Rn(e.P, nt, I(S(ye, 1), fe, 2, 6, [gt, "language", ar, AJ, xJ, gQe])), Rn(e.Q, nt, I(S(ye, 1), fe, 2, 6, [gt, ck])), Rn(e.R, nt, I(S(ye, 1), fe, 2, 6, [gt, "long:Object", ar, ck])), Rn(e.S, nt, I(S(ye, 1), fe, 2, 6, [gt, "Name", ar, AJ, xJ, Kue])), Rn(e.T, nt, I(S(ye, 1), fe, 2, 6, [gt, US, ar, "Name", xJ, pQe])), Rn(e.U, nt, I(S(ye, 1), fe, 2, 6, [gt, "negativeInteger", ar, mQe, _j, "-1"])), Rn(e.V, nt, I(S(ye, 1), fe, 2, 6, [gt, Vue, ar, AJ, xJ, "\\c+"])), Rn(e.X, nt, I(S(ye, 1), fe, 2, 6, [gt, "NMTOKENS", ar, vQe, zue, "1"])), Rn(e.W, nt, I(S(ye, 1), fe, 2, 6, [gt, vQe, jJ, Vue])), Rn(e.Y, nt, I(S(ye, 1), fe, 2, 6, [gt, Que, ar, Xue, Bj, "0"])), Rn(e.Z, nt, I(S(ye, 1), fe, 2, 6, [gt, mQe, ar, Xue, _j, "0"])), Rn(e.$, nt, I(S(ye, 1), fe, 2, 6, [gt, kQe, ar, KR, Xo, "replace"])), Rn(e._, nt, I(S(ye, 1), fe, 2, 6, [gt, "NOTATION", Xo, Kf])), Rn(e.ab, nt, I(S(ye, 1), fe, 2, 6, [gt, "positiveInteger", ar, Que, Bj, "1"])), Rn(e.bb, nt, I(S(ye, 1), fe, 2, 6, [gt, "processingInstruction_._type", zo, "empty"])), Rn(u(F(ee(e.bb), 0), 38), nt, I(S(ye, 1), fe, 2, 6, [zo, JS, gt, "data"])), Rn(u(F(ee(e.bb), 1), 38), nt, I(S(ye, 1), fe, 2, 6, [zo, JS, gt, Cue])), Rn(e.cb, nt, I(S(ye, 1), fe, 2, 6, [gt, "QName", Xo, Kf])), Rn(e.db, nt, I(S(ye, 1), fe, 2, 6, [gt, uk])), Rn(e.eb, nt, I(S(ye, 1), fe, 2, 6, [gt, "short:Object", ar, uk])), Rn(e.fb, nt, I(S(ye, 1), fe, 2, 6, [gt, "simpleAnyType", zo, Dj])), Rn(u(F(ee(e.fb), 0), 38), nt, I(S(ye, 1), fe, 2, 6, [gt, ":3", zo, Dj])), Rn(u(F(ee(e.fb), 1), 38), nt, I(S(ye, 1), fe, 2, 6, [gt, ":4", zo, Dj])), Rn(u(F(ee(e.fb), 2), 19), nt, I(S(ye, 1), fe, 2, 6, [gt, ":5", zo, Dj])), Rn(e.gb, nt, I(S(ye, 1), fe, 2, 6, [gt, KR, Xo, "preserve"])), Rn(e.hb, nt, I(S(ye, 1), fe, 2, 6, [gt, "time", Xo, Kf])), Rn(e.ib, nt, I(S(ye, 1), fe, 2, 6, [gt, AJ, ar, kQe, Xo, Kf])), Rn(e.jb, nt, I(S(ye, 1), fe, 2, 6, [gt, yQe, _j, "255", Bj, "0"])), Rn(e.kb, nt, I(S(ye, 1), fe, 2, 6, [gt, "unsignedByte:Object", ar, yQe])), Rn(e.lb, nt, I(S(ye, 1), fe, 2, 6, [gt, jQe, _j, "4294967295", Bj, "0"])), Rn(e.mb, nt, I(S(ye, 1), fe, 2, 6, [gt, "unsignedInt:Object", ar, jQe])), Rn(e.nb, nt, I(S(ye, 1), fe, 2, 6, [gt, "unsignedLong", ar, Que, _j, EQe, Bj, "0"])), Rn(e.ob, nt, I(S(ye, 1), fe, 2, 6, [gt, AQe, _j, "65535", Bj, "0"])), Rn(e.pb, nt, I(S(ye, 1), fe, 2, 6, [gt, "unsignedShort:Object", ar, AQe])), Rn(e.qb, nt, I(S(ye, 1), fe, 2, 6, [gt, "", zo, Lj])), Rn(u(F(ee(e.qb), 0), 38), nt, I(S(ye, 1), fe, 2, 6, [zo, yJ, gt, ":mixed"])), Rn(u(F(ee(e.qb), 1), 19), nt, I(S(ye, 1), fe, 2, 6, [zo, JS, gt, "xmlns:prefix"])), Rn(u(F(ee(e.qb), 2), 19), nt, I(S(ye, 1), fe, 2, 6, [zo, JS, gt, "xsi:schemaLocation"])), Rn(u(F(ee(e.qb), 3), 38), nt, I(S(ye, 1), fe, 2, 6, [zo, GS, gt, "cDATA", HS, Nj])), Rn(u(F(ee(e.qb), 4), 38), nt, I(S(ye, 1), fe, 2, 6, [zo, GS, gt, "comment", HS, Nj])), Rn(u(F(ee(e.qb), 5), 19), nt, I(S(ye, 1), fe, 2, 6, [zo, GS, gt, xQe, HS, Nj])), Rn(u(F(ee(e.qb), 6), 38), nt, I(S(ye, 1), fe, 2, 6, [zo, GS, gt, oJ, HS, Nj])); } function Yn(e) { - return _e("_UI_EMFDiagnostic_marker", e) ? "EMF Problem" : _e("_UI_CircularContainment_diagnostic", e) ? "An object may not circularly contain itself" : _e(uVe, e) ? "Wrong character." : _e(sVe, e) ? "Invalid reference number." : _e(PS, e) ? "A character is required after \\." : _e(wJ, e) ? "'?' is not expected. '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?" : _e(oVe, e) ? "'(?<' or '(?<!' is expected." : _e(fVe, e) ? "A comment is not terminated." : _e(c0, e) ? "')' is expected." : _e(Pue, e) ? "Unexpected end of the pattern in a modifier group." : _e(hVe, e) ? "':' is expected." : _e(lVe, e) ? "Unexpected end of the pattern in a conditional group." : _e(aVe, e) ? "A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern." : _e(dVe, e) ? "There are more than three choices in a conditional group." : _e(bVe, e) ? "A character in U+0040-U+005f must follow \\c." : _e(wVe, e) ? "A '{' is required before a character category." : _e(gVe, e) ? "A property name is not closed by '}'." : _e(Oue, e) ? "Unexpected meta character." : _e(gJ, e) ? "Unknown property." : _e(Lue, e) ? "A POSIX character class must be closed by ':]'." : _e(OS, e) ? "Unexpected end of the pattern in a character class." : _e(pVe, e) ? "Unknown name for a POSIX character class." : _e("parser.cc.4", e) ? "'-' is invalid here." : _e(mVe, e) ? "']' is expected." : _e(Due, e) ? "'[' is invalid in a character class. Write '\\['." : _e(Nue, e) ? "']' is invalid in a character class. Write '\\]'." : _e(pJ, e) ? "'-' is an invalid character range. Write '\\-'." : _e(vVe, e) ? "'[' is expected." : _e(kVe, e) ? "')' or '-[' or '+[' or '&[' is expected." : _e(yVe, e) ? "The range end code point is less than the start code point." : _e(Ka, e) ? "Invalid Unicode hex notation." : _e(jVe, e) ? "Overflow in a hex notation." : _e(EVe, e) ? "'\\x{' must be closed by '}'." : _e(AVe, e) ? "Invalid Unicode code point." : _e(xVe, e) ? "An anchor must not be here." : _e(Mo, e) ? "This expression is not supported in the current option setting." : _e($Ve, e) ? "Invalid quantifier. A digit is expected." : _e(MVe, e) ? "Invalid quantifier. Invalid quantity or a '}' is missing." : _e(TVe, e) ? "Invalid quantifier. A digit or '}' is expected." : _e(SVe, e) ? "Invalid quantifier. A min quantity must be <= a max quantity." : _e(Fue, e) ? "Invalid quantifier. A quantity value overflow." : _e("_UI_PackageRegistry_extensionpoint", e) ? "Ecore Package Registry for Generated Packages" : _e("_UI_DynamicPackageRegistry_extensionpoint", e) ? "Ecore Package Registry for Dynamic Packages" : _e("_UI_FactoryRegistry_extensionpoint", e) ? "Ecore Factory Override Registry" : _e("_UI_URIExtensionParserRegistry_extensionpoint", e) ? "URI Extension Parser Registry" : _e("_UI_URIProtocolParserRegistry_extensionpoint", e) ? "URI Protocol Parser Registry" : _e("_UI_URIContentParserRegistry_extensionpoint", e) ? "URI Content Parser Registry" : _e("_UI_ContentHandlerRegistry_extensionpoint", e) ? "Content Handler Registry" : _e("_UI_URIMappingRegistry_extensionpoint", e) ? "URI Converter Mapping Registry" : _e("_UI_PackageRegistryImplementation_extensionpoint", e) ? "Ecore Package Registry Implementation" : _e("_UI_ValidationDelegateRegistry_extensionpoint", e) ? "Validation Delegate Registry" : _e("_UI_SettingDelegateRegistry_extensionpoint", e) ? "Feature Setting Delegate Factory Registry" : _e("_UI_InvocationDelegateRegistry_extensionpoint", e) ? "Operation Invocation Delegate Factory Registry" : _e("_UI_EClassInterfaceNotAbstract_diagnostic", e) ? "A class that is an interface must also be abstract" : _e("_UI_EClassNoCircularSuperTypes_diagnostic", e) ? "A class may not be a super type of itself" : _e("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic", e) ? "A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'" : _e("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic", e) ? "The opposite of the opposite may not be a reference different from this one" : _e("_UI_EReferenceOppositeNotFeatureOfType_diagnostic", e) ? "The opposite must be a feature of the reference's type" : _e("_UI_EReferenceTransientOppositeNotTransient_diagnostic", e) ? "The opposite of a transient reference must be transient if it is proxy resolving" : _e("_UI_EReferenceOppositeBothContainment_diagnostic", e) ? "The opposite of a containment reference must not be a containment reference" : _e("_UI_EReferenceConsistentUnique_diagnostic", e) ? "A containment or bidirectional reference must be unique if its upper bound is different from 1" : _e("_UI_ETypedElementNoType_diagnostic", e) ? "The typed element must have a type" : _e("_UI_EAttributeNoDataType_diagnostic", e) ? "The generic attribute type must not refer to a class" : _e("_UI_EReferenceNoClass_diagnostic", e) ? "The generic reference type must not refer to a data type" : _e("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic", e) ? "A generic type can't refer to both a type parameter and a classifier" : _e("_UI_EGenericTypeNoClass_diagnostic", e) ? "A generic super type must refer to a class" : _e("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic", e) ? "A generic type in this context must refer to a classifier or a type parameter" : _e("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic", e) ? "A generic type may have bounds only when used as a type argument" : _e("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic", e) ? "A generic type must not have both a lower and an upper bound" : _e("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic", e) ? "A generic type with bounds must not also refer to a type parameter or classifier" : _e("_UI_EGenericTypeNoArguments_diagnostic", e) ? "A generic type may have arguments only if it refers to a classifier" : _e("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic", e) ? "A generic type may only refer to a type parameter that is in scope" : e; + return Be("_UI_EMFDiagnostic_marker", e) ? "EMF Problem" : Be("_UI_CircularContainment_diagnostic", e) ? "An object may not circularly contain itself" : Be(sVe, e) ? "Wrong character." : Be(oVe, e) ? "Invalid reference number." : Be(PS, e) ? "A character is required after \\." : Be(wJ, e) ? "'?' is not expected. '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?" : Be(fVe, e) ? "'(?<' or '(?<!' is expected." : Be(hVe, e) ? "A comment is not terminated." : Be(c0, e) ? "')' is expected." : Be(Pue, e) ? "Unexpected end of the pattern in a modifier group." : Be(lVe, e) ? "':' is expected." : Be(aVe, e) ? "Unexpected end of the pattern in a conditional group." : Be(dVe, e) ? "A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern." : Be(bVe, e) ? "There are more than three choices in a conditional group." : Be(wVe, e) ? "A character in U+0040-U+005f must follow \\c." : Be(gVe, e) ? "A '{' is required before a character category." : Be(pVe, e) ? "A property name is not closed by '}'." : Be(Oue, e) ? "Unexpected meta character." : Be(gJ, e) ? "Unknown property." : Be(Lue, e) ? "A POSIX character class must be closed by ':]'." : Be(OS, e) ? "Unexpected end of the pattern in a character class." : Be(mVe, e) ? "Unknown name for a POSIX character class." : Be("parser.cc.4", e) ? "'-' is invalid here." : Be(vVe, e) ? "']' is expected." : Be(Due, e) ? "'[' is invalid in a character class. Write '\\['." : Be(Nue, e) ? "']' is invalid in a character class. Write '\\]'." : Be(pJ, e) ? "'-' is an invalid character range. Write '\\-'." : Be(kVe, e) ? "'[' is expected." : Be(yVe, e) ? "')' or '-[' or '+[' or '&[' is expected." : Be(jVe, e) ? "The range end code point is less than the start code point." : Be(Ka, e) ? "Invalid Unicode hex notation." : Be(EVe, e) ? "Overflow in a hex notation." : Be(AVe, e) ? "'\\x{' must be closed by '}'." : Be(xVe, e) ? "Invalid Unicode code point." : Be($Ve, e) ? "An anchor must not be here." : Be(Mo, e) ? "This expression is not supported in the current option setting." : Be(MVe, e) ? "Invalid quantifier. A digit is expected." : Be(TVe, e) ? "Invalid quantifier. Invalid quantity or a '}' is missing." : Be(SVe, e) ? "Invalid quantifier. A digit or '}' is expected." : Be(IVe, e) ? "Invalid quantifier. A min quantity must be <= a max quantity." : Be(Fue, e) ? "Invalid quantifier. A quantity value overflow." : Be("_UI_PackageRegistry_extensionpoint", e) ? "Ecore Package Registry for Generated Packages" : Be("_UI_DynamicPackageRegistry_extensionpoint", e) ? "Ecore Package Registry for Dynamic Packages" : Be("_UI_FactoryRegistry_extensionpoint", e) ? "Ecore Factory Override Registry" : Be("_UI_URIExtensionParserRegistry_extensionpoint", e) ? "URI Extension Parser Registry" : Be("_UI_URIProtocolParserRegistry_extensionpoint", e) ? "URI Protocol Parser Registry" : Be("_UI_URIContentParserRegistry_extensionpoint", e) ? "URI Content Parser Registry" : Be("_UI_ContentHandlerRegistry_extensionpoint", e) ? "Content Handler Registry" : Be("_UI_URIMappingRegistry_extensionpoint", e) ? "URI Converter Mapping Registry" : Be("_UI_PackageRegistryImplementation_extensionpoint", e) ? "Ecore Package Registry Implementation" : Be("_UI_ValidationDelegateRegistry_extensionpoint", e) ? "Validation Delegate Registry" : Be("_UI_SettingDelegateRegistry_extensionpoint", e) ? "Feature Setting Delegate Factory Registry" : Be("_UI_InvocationDelegateRegistry_extensionpoint", e) ? "Operation Invocation Delegate Factory Registry" : Be("_UI_EClassInterfaceNotAbstract_diagnostic", e) ? "A class that is an interface must also be abstract" : Be("_UI_EClassNoCircularSuperTypes_diagnostic", e) ? "A class may not be a super type of itself" : Be("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic", e) ? "A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'" : Be("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic", e) ? "The opposite of the opposite may not be a reference different from this one" : Be("_UI_EReferenceOppositeNotFeatureOfType_diagnostic", e) ? "The opposite must be a feature of the reference's type" : Be("_UI_EReferenceTransientOppositeNotTransient_diagnostic", e) ? "The opposite of a transient reference must be transient if it is proxy resolving" : Be("_UI_EReferenceOppositeBothContainment_diagnostic", e) ? "The opposite of a containment reference must not be a containment reference" : Be("_UI_EReferenceConsistentUnique_diagnostic", e) ? "A containment or bidirectional reference must be unique if its upper bound is different from 1" : Be("_UI_ETypedElementNoType_diagnostic", e) ? "The typed element must have a type" : Be("_UI_EAttributeNoDataType_diagnostic", e) ? "The generic attribute type must not refer to a class" : Be("_UI_EReferenceNoClass_diagnostic", e) ? "The generic reference type must not refer to a data type" : Be("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic", e) ? "A generic type can't refer to both a type parameter and a classifier" : Be("_UI_EGenericTypeNoClass_diagnostic", e) ? "A generic super type must refer to a class" : Be("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic", e) ? "A generic type in this context must refer to a classifier or a type parameter" : Be("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic", e) ? "A generic type may have bounds only when used as a type argument" : Be("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic", e) ? "A generic type must not have both a lower and an upper bound" : Be("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic", e) ? "A generic type with bounds must not also refer to a type parameter or classifier" : Be("_UI_EGenericTypeNoArguments_diagnostic", e) ? "A generic type may have arguments only if it refers to a classifier" : Be("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic", e) ? "A generic type may only refer to a type parameter that is in scope" : e; } function kLn(e) { var n, t, i, r, c, s, f, h, l, a, d, g, p, v, j; - e.r || (e.r = !0, gu(e, "graph"), bM(e, "graph"), wM(e, L5), b7(e.o, "T"), Dn(Zr(e.a), e.p), Dn(Zr(e.f), e.a), Dn(Zr(e.n), e.f), Dn(Zr(e.g), e.n), Dn(Zr(e.c), e.n), Dn(Zr(e.i), e.c), Dn(Zr(e.j), e.c), Dn(Zr(e.d), e.f), Dn(Zr(e.e), e.a), jc(e.p, NLn, XWe, !0, !0, !1), v = k2(e.p, e.p, "setProperty"), j = bFe(v), l = ql(e.o), a = (t = (i = new C0(), i), t), Dn((!l.d && (l.d = new $i(Rr, l, 1)), l.d), a), d = kD(j), qee(a, d), tT(v, l, Aue), l = kD(j), tT(v, l, Z9), v = k2(e.p, null, "getProperty"), j = bFe(v), l = ql(e.o), a = kD(j), Dn((!l.d && (l.d = new $i(Rr, l, 1)), l.d), a), tT(v, l, Aue), l = kD(j), p = bh(v, l, null), p && p.mj(), v = k2(e.p, e.wb.e, "hasProperty"), l = ql(e.o), a = (r = (c = new C0(), c), r), Dn((!l.d && (l.d = new $i(Rr, l, 1)), l.d), a), tT(v, l, Aue), v = k2(e.p, e.p, "copyProperties"), Kr(v, e.p, rJ), v = k2(e.p, null, "getAllProperties"), l = ql(e.wb.P), a = ql(e.o), Dn((!l.d && (l.d = new $i(Rr, l, 1)), l.d), a), d = (s = (f = new C0(), f), s), Dn((!a.d && (a.d = new $i(Rr, a, 1)), a.d), d), a = ql(e.wb.M), Dn((!l.d && (l.d = new $i(Rr, l, 1)), l.d), a), g = bh(v, l, null), g && g.mj(), jc(e.a, y4, DKe, !0, !1, !0), Ut(u(F(ee(e.a), 0), 19), e.k, null, WKe, 0, -1, y4, !1, !1, !0, !0, !1, !1, !1), jc(e.f, qE, FKe, !0, !1, !0), Ut(u(F(ee(e.f), 0), 19), e.g, u(F(ee(e.g), 0), 19), "labels", 0, -1, qE, !1, !1, !0, !0, !1, !1, !1), di(u(F(ee(e.f), 1), 38), e.wb._, XKe, null, 0, 1, qE, !1, !1, !0, !1, !0, !1), jc(e.n, UE, "ElkShape", !0, !1, !0), di(u(F(ee(e.n), 0), 38), e.wb.t, cJ, d5, 1, 1, UE, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.n), 1), 38), e.wb.t, uJ, d5, 1, 1, UE, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.n), 2), 38), e.wb.t, "x", d5, 1, 1, UE, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.n), 3), 38), e.wb.t, "y", d5, 1, 1, UE, !1, !1, !0, !1, !0, !1), v = k2(e.n, null, "setDimensions"), Kr(v, e.wb.t, uJ), Kr(v, e.wb.t, cJ), v = k2(e.n, null, "setLocation"), Kr(v, e.wb.t, "x"), Kr(v, e.wb.t, "y"), jc(e.g, vc, yue, !1, !1, !0), Ut(u(F(ee(e.g), 0), 19), e.f, u(F(ee(e.f), 0), 19), sJ, 0, 1, vc, !1, !1, !0, !1, !1, !1, !1), di(u(F(ee(e.g), 1), 38), e.wb._, oJ, "", 0, 1, vc, !1, !1, !0, !1, !0, !1), jc(e.c, Cn, RKe, !0, !1, !0), Ut(u(F(ee(e.c), 0), 19), e.d, u(F(ee(e.d), 1), 19), "outgoingEdges", 0, -1, Cn, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.c), 1), 19), e.d, u(F(ee(e.d), 2), 19), "incomingEdges", 0, -1, Cn, !1, !1, !0, !1, !0, !1, !1), jc(e.i, Qn, jue, !1, !1, !0), Ut(u(F(ee(e.i), 0), 19), e.j, u(F(ee(e.j), 0), 19), "ports", 0, -1, Qn, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.i), 1), 19), e.i, u(F(ee(e.i), 2), 19), fJ, 0, -1, Qn, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.i), 2), 19), e.i, u(F(ee(e.i), 1), 19), sJ, 0, 1, Qn, !1, !1, !0, !1, !1, !1, !1), Ut(u(F(ee(e.i), 3), 19), e.d, u(F(ee(e.d), 0), 19), "containedEdges", 0, -1, Qn, !1, !1, !0, !0, !1, !1, !1), di(u(F(ee(e.i), 4), 38), e.wb.e, KKe, null, 0, 1, Qn, !0, !0, !1, !1, !0, !0), jc(e.j, Is, Eue, !1, !1, !0), Ut(u(F(ee(e.j), 0), 19), e.i, u(F(ee(e.i), 0), 19), sJ, 0, 1, Is, !1, !1, !0, !1, !1, !1, !1), jc(e.d, xi, kue, !1, !1, !0), Ut(u(F(ee(e.d), 0), 19), e.i, u(F(ee(e.i), 3), 19), "containingNode", 0, 1, xi, !1, !1, !0, !1, !1, !1, !1), Ut(u(F(ee(e.d), 1), 19), e.c, u(F(ee(e.c), 0), 19), xue, 0, -1, xi, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.d), 2), 19), e.c, u(F(ee(e.c), 1), 19), hJ, 0, -1, xi, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.d), 3), 19), e.e, u(F(ee(e.e), 5), 19), lJ, 0, -1, xi, !1, !1, !0, !0, !1, !1, !1), di(u(F(ee(e.d), 4), 38), e.wb.e, "hyperedge", null, 0, 1, xi, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.d), 5), 38), e.wb.e, KKe, null, 0, 1, xi, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.d), 6), 38), e.wb.e, "selfloop", null, 0, 1, xi, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.d), 7), 38), e.wb.e, "connected", null, 0, 1, xi, !0, !0, !1, !1, !0, !0), jc(e.b, fo, NKe, !1, !1, !0), di(u(F(ee(e.b), 0), 38), e.wb.t, "x", d5, 1, 1, fo, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.b), 1), 38), e.wb.t, "y", d5, 1, 1, fo, !1, !1, !0, !1, !0, !1), v = k2(e.b, null, "set"), Kr(v, e.wb.t, "x"), Kr(v, e.wb.t, "y"), jc(e.e, Wt, BKe, !1, !1, !0), di(u(F(ee(e.e), 0), 38), e.wb.t, "startX", null, 0, 1, Wt, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.e), 1), 38), e.wb.t, "startY", null, 0, 1, Wt, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.e), 2), 38), e.wb.t, "endX", null, 0, 1, Wt, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.e), 3), 38), e.wb.t, "endY", null, 0, 1, Wt, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.e), 4), 19), e.b, null, TS, 0, -1, Wt, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.e), 5), 19), e.d, u(F(ee(e.d), 3), 19), sJ, 0, 1, Wt, !1, !1, !0, !1, !1, !1, !1), Ut(u(F(ee(e.e), 6), 19), e.c, null, $ue, 0, 1, Wt, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.e), 7), 19), e.c, null, Mue, 0, 1, Wt, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.e), 8), 19), e.e, u(F(ee(e.e), 9), 19), Tue, 0, -1, Wt, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.e), 9), 19), e.e, u(F(ee(e.e), 8), 19), Sue, 0, -1, Wt, !1, !1, !0, !1, !0, !1, !1), di(u(F(ee(e.e), 10), 38), e.wb._, XKe, null, 0, 1, Wt, !1, !1, !0, !1, !0, !1), v = k2(e.e, null, "setStartLocation"), Kr(v, e.wb.t, "x"), Kr(v, e.wb.t, "y"), v = k2(e.e, null, "setEndLocation"), Kr(v, e.wb.t, "x"), Kr(v, e.wb.t, "y"), jc(e.k, s0, "ElkPropertyToValueMapEntry", !1, !1, !1), l = ql(e.o), a = (h = (n = new C0(), n), h), Dn((!l.d && (l.d = new $i(Rr, l, 1)), l.d), a), GGe(u(F(ee(e.k), 0), 38), l, "key", s0, !1, !1, !0, !1), di(u(F(ee(e.k), 1), 38), e.s, Z9, null, 0, 1, s0, !1, !1, !0, !1, !0, !1), bt(e.o, zq, "IProperty", !0), bt(e.s, Li, "PropertyValue", !0), mZ(e, L5)); + e.r || (e.r = !0, gu(e, "graph"), bM(e, "graph"), wM(e, L5), b7(e.o, "T"), Dn(Zr(e.a), e.p), Dn(Zr(e.f), e.a), Dn(Zr(e.n), e.f), Dn(Zr(e.g), e.n), Dn(Zr(e.c), e.n), Dn(Zr(e.i), e.c), Dn(Zr(e.j), e.c), Dn(Zr(e.d), e.f), Dn(Zr(e.e), e.a), jc(e.p, NLn, KWe, !0, !0, !1), v = k2(e.p, e.p, "setProperty"), j = wFe(v), l = ql(e.o), a = (t = (i = new C0(), i), t), Dn((!l.d && (l.d = new $i(Rr, l, 1)), l.d), a), d = kD(j), qee(a, d), tT(v, l, Aue), l = kD(j), tT(v, l, Z9), v = k2(e.p, null, "getProperty"), j = wFe(v), l = ql(e.o), a = kD(j), Dn((!l.d && (l.d = new $i(Rr, l, 1)), l.d), a), tT(v, l, Aue), l = kD(j), p = bh(v, l, null), p && p.mj(), v = k2(e.p, e.wb.e, "hasProperty"), l = ql(e.o), a = (r = (c = new C0(), c), r), Dn((!l.d && (l.d = new $i(Rr, l, 1)), l.d), a), tT(v, l, Aue), v = k2(e.p, e.p, "copyProperties"), Kr(v, e.p, rJ), v = k2(e.p, null, "getAllProperties"), l = ql(e.wb.P), a = ql(e.o), Dn((!l.d && (l.d = new $i(Rr, l, 1)), l.d), a), d = (s = (f = new C0(), f), s), Dn((!a.d && (a.d = new $i(Rr, a, 1)), a.d), d), a = ql(e.wb.M), Dn((!l.d && (l.d = new $i(Rr, l, 1)), l.d), a), g = bh(v, l, null), g && g.mj(), jc(e.a, y4, NKe, !0, !1, !0), Ut(u(F(ee(e.a), 0), 19), e.k, null, XKe, 0, -1, y4, !1, !1, !0, !0, !1, !1, !1), jc(e.f, qE, RKe, !0, !1, !0), Ut(u(F(ee(e.f), 0), 19), e.g, u(F(ee(e.g), 0), 19), "labels", 0, -1, qE, !1, !1, !0, !0, !1, !1, !1), di(u(F(ee(e.f), 1), 38), e.wb._, KKe, null, 0, 1, qE, !1, !1, !0, !1, !0, !1), jc(e.n, UE, "ElkShape", !0, !1, !0), di(u(F(ee(e.n), 0), 38), e.wb.t, cJ, d5, 1, 1, UE, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.n), 1), 38), e.wb.t, uJ, d5, 1, 1, UE, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.n), 2), 38), e.wb.t, "x", d5, 1, 1, UE, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.n), 3), 38), e.wb.t, "y", d5, 1, 1, UE, !1, !1, !0, !1, !0, !1), v = k2(e.n, null, "setDimensions"), Kr(v, e.wb.t, uJ), Kr(v, e.wb.t, cJ), v = k2(e.n, null, "setLocation"), Kr(v, e.wb.t, "x"), Kr(v, e.wb.t, "y"), jc(e.g, vc, yue, !1, !1, !0), Ut(u(F(ee(e.g), 0), 19), e.f, u(F(ee(e.f), 0), 19), sJ, 0, 1, vc, !1, !1, !0, !1, !1, !1, !1), di(u(F(ee(e.g), 1), 38), e.wb._, oJ, "", 0, 1, vc, !1, !1, !0, !1, !0, !1), jc(e.c, Cn, _Ke, !0, !1, !0), Ut(u(F(ee(e.c), 0), 19), e.d, u(F(ee(e.d), 1), 19), "outgoingEdges", 0, -1, Cn, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.c), 1), 19), e.d, u(F(ee(e.d), 2), 19), "incomingEdges", 0, -1, Cn, !1, !1, !0, !1, !0, !1, !1), jc(e.i, Qn, jue, !1, !1, !0), Ut(u(F(ee(e.i), 0), 19), e.j, u(F(ee(e.j), 0), 19), "ports", 0, -1, Qn, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.i), 1), 19), e.i, u(F(ee(e.i), 2), 19), fJ, 0, -1, Qn, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.i), 2), 19), e.i, u(F(ee(e.i), 1), 19), sJ, 0, 1, Qn, !1, !1, !0, !1, !1, !1, !1), Ut(u(F(ee(e.i), 3), 19), e.d, u(F(ee(e.d), 0), 19), "containedEdges", 0, -1, Qn, !1, !1, !0, !0, !1, !1, !1), di(u(F(ee(e.i), 4), 38), e.wb.e, VKe, null, 0, 1, Qn, !0, !0, !1, !1, !0, !0), jc(e.j, Is, Eue, !1, !1, !0), Ut(u(F(ee(e.j), 0), 19), e.i, u(F(ee(e.i), 0), 19), sJ, 0, 1, Is, !1, !1, !0, !1, !1, !1, !1), jc(e.d, xi, kue, !1, !1, !0), Ut(u(F(ee(e.d), 0), 19), e.i, u(F(ee(e.i), 3), 19), "containingNode", 0, 1, xi, !1, !1, !0, !1, !1, !1, !1), Ut(u(F(ee(e.d), 1), 19), e.c, u(F(ee(e.c), 0), 19), xue, 0, -1, xi, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.d), 2), 19), e.c, u(F(ee(e.c), 1), 19), hJ, 0, -1, xi, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.d), 3), 19), e.e, u(F(ee(e.e), 5), 19), lJ, 0, -1, xi, !1, !1, !0, !0, !1, !1, !1), di(u(F(ee(e.d), 4), 38), e.wb.e, "hyperedge", null, 0, 1, xi, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.d), 5), 38), e.wb.e, VKe, null, 0, 1, xi, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.d), 6), 38), e.wb.e, "selfloop", null, 0, 1, xi, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.d), 7), 38), e.wb.e, "connected", null, 0, 1, xi, !0, !0, !1, !1, !0, !0), jc(e.b, fo, FKe, !1, !1, !0), di(u(F(ee(e.b), 0), 38), e.wb.t, "x", d5, 1, 1, fo, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.b), 1), 38), e.wb.t, "y", d5, 1, 1, fo, !1, !1, !0, !1, !0, !1), v = k2(e.b, null, "set"), Kr(v, e.wb.t, "x"), Kr(v, e.wb.t, "y"), jc(e.e, Wt, BKe, !1, !1, !0), di(u(F(ee(e.e), 0), 38), e.wb.t, "startX", null, 0, 1, Wt, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.e), 1), 38), e.wb.t, "startY", null, 0, 1, Wt, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.e), 2), 38), e.wb.t, "endX", null, 0, 1, Wt, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.e), 3), 38), e.wb.t, "endY", null, 0, 1, Wt, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.e), 4), 19), e.b, null, TS, 0, -1, Wt, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.e), 5), 19), e.d, u(F(ee(e.d), 3), 19), sJ, 0, 1, Wt, !1, !1, !0, !1, !1, !1, !1), Ut(u(F(ee(e.e), 6), 19), e.c, null, $ue, 0, 1, Wt, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.e), 7), 19), e.c, null, Mue, 0, 1, Wt, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.e), 8), 19), e.e, u(F(ee(e.e), 9), 19), Tue, 0, -1, Wt, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.e), 9), 19), e.e, u(F(ee(e.e), 8), 19), Sue, 0, -1, Wt, !1, !1, !0, !1, !0, !1, !1), di(u(F(ee(e.e), 10), 38), e.wb._, KKe, null, 0, 1, Wt, !1, !1, !0, !1, !0, !1), v = k2(e.e, null, "setStartLocation"), Kr(v, e.wb.t, "x"), Kr(v, e.wb.t, "y"), v = k2(e.e, null, "setEndLocation"), Kr(v, e.wb.t, "x"), Kr(v, e.wb.t, "y"), jc(e.k, s0, "ElkPropertyToValueMapEntry", !1, !1, !1), l = ql(e.o), a = (h = (n = new C0(), n), h), Dn((!l.d && (l.d = new $i(Rr, l, 1)), l.d), a), HGe(u(F(ee(e.k), 0), 38), l, "key", s0, !1, !1, !0, !1), di(u(F(ee(e.k), 1), 38), e.s, Z9, null, 0, 1, s0, !1, !1, !0, !1, !0, !1), bt(e.o, zq, "IProperty", !0), bt(e.s, Li, "PropertyValue", !0), mZ(e, L5)); } - function Zze() { - Zze = G, O = W(us, H2, 30, xr, 15, 1), O[9] = 35, O[10] = 19, O[13] = 19, O[32] = 51, O[33] = 49, O[34] = 33, q(O, 35, 38, 49), O[38] = 1, q(O, 39, 45, 49), q(O, 45, 47, -71), O[47] = 49, q(O, 48, 58, -71), O[58] = 61, O[59] = 49, O[60] = 1, O[61] = 49, O[62] = 33, q(O, 63, 65, 49), q(O, 65, 91, -3), q(O, 91, 93, 33), O[93] = 1, O[94] = 33, O[95] = -3, O[96] = 33, q(O, 97, 123, -3), q(O, 123, 183, 33), O[183] = -87, q(O, 184, 192, 33), q(O, 192, 215, -19), O[215] = 33, q(O, 216, 247, -19), O[247] = 33, q(O, 248, 306, -19), q(O, 306, 308, 33), q(O, 308, 319, -19), q(O, 319, 321, 33), q(O, 321, 329, -19), O[329] = 33, q(O, 330, 383, -19), O[383] = 33, q(O, 384, 452, -19), q(O, 452, 461, 33), q(O, 461, 497, -19), q(O, 497, 500, 33), q(O, 500, 502, -19), q(O, 502, 506, 33), q(O, 506, 536, -19), q(O, 536, 592, 33), q(O, 592, 681, -19), q(O, 681, 699, 33), q(O, 699, 706, -19), q(O, 706, 720, 33), q(O, 720, 722, -87), q(O, 722, 768, 33), q(O, 768, 838, -87), q(O, 838, 864, 33), q(O, 864, 866, -87), q(O, 866, 902, 33), O[902] = -19, O[903] = -87, q(O, 904, 907, -19), O[907] = 33, O[908] = -19, O[909] = 33, q(O, 910, 930, -19), O[930] = 33, q(O, 931, 975, -19), O[975] = 33, q(O, 976, 983, -19), q(O, 983, 986, 33), O[986] = -19, O[987] = 33, O[988] = -19, O[989] = 33, O[990] = -19, O[991] = 33, O[992] = -19, O[993] = 33, q(O, 994, 1012, -19), q(O, 1012, 1025, 33), q(O, 1025, 1037, -19), O[1037] = 33, q(O, 1038, 1104, -19), O[1104] = 33, q(O, 1105, 1117, -19), O[1117] = 33, q(O, 1118, 1154, -19), O[1154] = 33, q(O, 1155, 1159, -87), q(O, 1159, 1168, 33), q(O, 1168, 1221, -19), q(O, 1221, 1223, 33), q(O, 1223, 1225, -19), q(O, 1225, 1227, 33), q(O, 1227, 1229, -19), q(O, 1229, 1232, 33), q(O, 1232, 1260, -19), q(O, 1260, 1262, 33), q(O, 1262, 1270, -19), q(O, 1270, 1272, 33), q(O, 1272, 1274, -19), q(O, 1274, 1329, 33), q(O, 1329, 1367, -19), q(O, 1367, 1369, 33), O[1369] = -19, q(O, 1370, 1377, 33), q(O, 1377, 1415, -19), q(O, 1415, 1425, 33), q(O, 1425, 1442, -87), O[1442] = 33, q(O, 1443, 1466, -87), O[1466] = 33, q(O, 1467, 1470, -87), O[1470] = 33, O[1471] = -87, O[1472] = 33, q(O, 1473, 1475, -87), O[1475] = 33, O[1476] = -87, q(O, 1477, 1488, 33), q(O, 1488, 1515, -19), q(O, 1515, 1520, 33), q(O, 1520, 1523, -19), q(O, 1523, 1569, 33), q(O, 1569, 1595, -19), q(O, 1595, 1600, 33), O[1600] = -87, q(O, 1601, 1611, -19), q(O, 1611, 1619, -87), q(O, 1619, 1632, 33), q(O, 1632, 1642, -87), q(O, 1642, 1648, 33), O[1648] = -87, q(O, 1649, 1720, -19), q(O, 1720, 1722, 33), q(O, 1722, 1727, -19), O[1727] = 33, q(O, 1728, 1743, -19), O[1743] = 33, q(O, 1744, 1748, -19), O[1748] = 33, O[1749] = -19, q(O, 1750, 1765, -87), q(O, 1765, 1767, -19), q(O, 1767, 1769, -87), O[1769] = 33, q(O, 1770, 1774, -87), q(O, 1774, 1776, 33), q(O, 1776, 1786, -87), q(O, 1786, 2305, 33), q(O, 2305, 2308, -87), O[2308] = 33, q(O, 2309, 2362, -19), q(O, 2362, 2364, 33), O[2364] = -87, O[2365] = -19, q(O, 2366, 2382, -87), q(O, 2382, 2385, 33), q(O, 2385, 2389, -87), q(O, 2389, 2392, 33), q(O, 2392, 2402, -19), q(O, 2402, 2404, -87), q(O, 2404, 2406, 33), q(O, 2406, 2416, -87), q(O, 2416, 2433, 33), q(O, 2433, 2436, -87), O[2436] = 33, q(O, 2437, 2445, -19), q(O, 2445, 2447, 33), q(O, 2447, 2449, -19), q(O, 2449, 2451, 33), q(O, 2451, 2473, -19), O[2473] = 33, q(O, 2474, 2481, -19), O[2481] = 33, O[2482] = -19, q(O, 2483, 2486, 33), q(O, 2486, 2490, -19), q(O, 2490, 2492, 33), O[2492] = -87, O[2493] = 33, q(O, 2494, 2501, -87), q(O, 2501, 2503, 33), q(O, 2503, 2505, -87), q(O, 2505, 2507, 33), q(O, 2507, 2510, -87), q(O, 2510, 2519, 33), O[2519] = -87, q(O, 2520, 2524, 33), q(O, 2524, 2526, -19), O[2526] = 33, q(O, 2527, 2530, -19), q(O, 2530, 2532, -87), q(O, 2532, 2534, 33), q(O, 2534, 2544, -87), q(O, 2544, 2546, -19), q(O, 2546, 2562, 33), O[2562] = -87, q(O, 2563, 2565, 33), q(O, 2565, 2571, -19), q(O, 2571, 2575, 33), q(O, 2575, 2577, -19), q(O, 2577, 2579, 33), q(O, 2579, 2601, -19), O[2601] = 33, q(O, 2602, 2609, -19), O[2609] = 33, q(O, 2610, 2612, -19), O[2612] = 33, q(O, 2613, 2615, -19), O[2615] = 33, q(O, 2616, 2618, -19), q(O, 2618, 2620, 33), O[2620] = -87, O[2621] = 33, q(O, 2622, 2627, -87), q(O, 2627, 2631, 33), q(O, 2631, 2633, -87), q(O, 2633, 2635, 33), q(O, 2635, 2638, -87), q(O, 2638, 2649, 33), q(O, 2649, 2653, -19), O[2653] = 33, O[2654] = -19, q(O, 2655, 2662, 33), q(O, 2662, 2674, -87), q(O, 2674, 2677, -19), q(O, 2677, 2689, 33), q(O, 2689, 2692, -87), O[2692] = 33, q(O, 2693, 2700, -19), O[2700] = 33, O[2701] = -19, O[2702] = 33, q(O, 2703, 2706, -19), O[2706] = 33, q(O, 2707, 2729, -19), O[2729] = 33, q(O, 2730, 2737, -19), O[2737] = 33, q(O, 2738, 2740, -19), O[2740] = 33, q(O, 2741, 2746, -19), q(O, 2746, 2748, 33), O[2748] = -87, O[2749] = -19, q(O, 2750, 2758, -87), O[2758] = 33, q(O, 2759, 2762, -87), O[2762] = 33, q(O, 2763, 2766, -87), q(O, 2766, 2784, 33), O[2784] = -19, q(O, 2785, 2790, 33), q(O, 2790, 2800, -87), q(O, 2800, 2817, 33), q(O, 2817, 2820, -87), O[2820] = 33, q(O, 2821, 2829, -19), q(O, 2829, 2831, 33), q(O, 2831, 2833, -19), q(O, 2833, 2835, 33), q(O, 2835, 2857, -19), O[2857] = 33, q(O, 2858, 2865, -19), O[2865] = 33, q(O, 2866, 2868, -19), q(O, 2868, 2870, 33), q(O, 2870, 2874, -19), q(O, 2874, 2876, 33), O[2876] = -87, O[2877] = -19, q(O, 2878, 2884, -87), q(O, 2884, 2887, 33), q(O, 2887, 2889, -87), q(O, 2889, 2891, 33), q(O, 2891, 2894, -87), q(O, 2894, 2902, 33), q(O, 2902, 2904, -87), q(O, 2904, 2908, 33), q(O, 2908, 2910, -19), O[2910] = 33, q(O, 2911, 2914, -19), q(O, 2914, 2918, 33), q(O, 2918, 2928, -87), q(O, 2928, 2946, 33), q(O, 2946, 2948, -87), O[2948] = 33, q(O, 2949, 2955, -19), q(O, 2955, 2958, 33), q(O, 2958, 2961, -19), O[2961] = 33, q(O, 2962, 2966, -19), q(O, 2966, 2969, 33), q(O, 2969, 2971, -19), O[2971] = 33, O[2972] = -19, O[2973] = 33, q(O, 2974, 2976, -19), q(O, 2976, 2979, 33), q(O, 2979, 2981, -19), q(O, 2981, 2984, 33), q(O, 2984, 2987, -19), q(O, 2987, 2990, 33), q(O, 2990, 2998, -19), O[2998] = 33, q(O, 2999, 3002, -19), q(O, 3002, 3006, 33), q(O, 3006, 3011, -87), q(O, 3011, 3014, 33), q(O, 3014, 3017, -87), O[3017] = 33, q(O, 3018, 3022, -87), q(O, 3022, 3031, 33), O[3031] = -87, q(O, 3032, 3047, 33), q(O, 3047, 3056, -87), q(O, 3056, 3073, 33), q(O, 3073, 3076, -87), O[3076] = 33, q(O, 3077, 3085, -19), O[3085] = 33, q(O, 3086, 3089, -19), O[3089] = 33, q(O, 3090, 3113, -19), O[3113] = 33, q(O, 3114, 3124, -19), O[3124] = 33, q(O, 3125, 3130, -19), q(O, 3130, 3134, 33), q(O, 3134, 3141, -87), O[3141] = 33, q(O, 3142, 3145, -87), O[3145] = 33, q(O, 3146, 3150, -87), q(O, 3150, 3157, 33), q(O, 3157, 3159, -87), q(O, 3159, 3168, 33), q(O, 3168, 3170, -19), q(O, 3170, 3174, 33), q(O, 3174, 3184, -87), q(O, 3184, 3202, 33), q(O, 3202, 3204, -87), O[3204] = 33, q(O, 3205, 3213, -19), O[3213] = 33, q(O, 3214, 3217, -19), O[3217] = 33, q(O, 3218, 3241, -19), O[3241] = 33, q(O, 3242, 3252, -19), O[3252] = 33, q(O, 3253, 3258, -19), q(O, 3258, 3262, 33), q(O, 3262, 3269, -87), O[3269] = 33, q(O, 3270, 3273, -87), O[3273] = 33, q(O, 3274, 3278, -87), q(O, 3278, 3285, 33), q(O, 3285, 3287, -87), q(O, 3287, 3294, 33), O[3294] = -19, O[3295] = 33, q(O, 3296, 3298, -19), q(O, 3298, 3302, 33), q(O, 3302, 3312, -87), q(O, 3312, 3330, 33), q(O, 3330, 3332, -87), O[3332] = 33, q(O, 3333, 3341, -19), O[3341] = 33, q(O, 3342, 3345, -19), O[3345] = 33, q(O, 3346, 3369, -19), O[3369] = 33, q(O, 3370, 3386, -19), q(O, 3386, 3390, 33), q(O, 3390, 3396, -87), q(O, 3396, 3398, 33), q(O, 3398, 3401, -87), O[3401] = 33, q(O, 3402, 3406, -87), q(O, 3406, 3415, 33), O[3415] = -87, q(O, 3416, 3424, 33), q(O, 3424, 3426, -19), q(O, 3426, 3430, 33), q(O, 3430, 3440, -87), q(O, 3440, 3585, 33), q(O, 3585, 3631, -19), O[3631] = 33, O[3632] = -19, O[3633] = -87, q(O, 3634, 3636, -19), q(O, 3636, 3643, -87), q(O, 3643, 3648, 33), q(O, 3648, 3654, -19), q(O, 3654, 3663, -87), O[3663] = 33, q(O, 3664, 3674, -87), q(O, 3674, 3713, 33), q(O, 3713, 3715, -19), O[3715] = 33, O[3716] = -19, q(O, 3717, 3719, 33), q(O, 3719, 3721, -19), O[3721] = 33, O[3722] = -19, q(O, 3723, 3725, 33), O[3725] = -19, q(O, 3726, 3732, 33), q(O, 3732, 3736, -19), O[3736] = 33, q(O, 3737, 3744, -19), O[3744] = 33, q(O, 3745, 3748, -19), O[3748] = 33, O[3749] = -19, O[3750] = 33, O[3751] = -19, q(O, 3752, 3754, 33), q(O, 3754, 3756, -19), O[3756] = 33, q(O, 3757, 3759, -19), O[3759] = 33, O[3760] = -19, O[3761] = -87, q(O, 3762, 3764, -19), q(O, 3764, 3770, -87), O[3770] = 33, q(O, 3771, 3773, -87), O[3773] = -19, q(O, 3774, 3776, 33), q(O, 3776, 3781, -19), O[3781] = 33, O[3782] = -87, O[3783] = 33, q(O, 3784, 3790, -87), q(O, 3790, 3792, 33), q(O, 3792, 3802, -87), q(O, 3802, 3864, 33), q(O, 3864, 3866, -87), q(O, 3866, 3872, 33), q(O, 3872, 3882, -87), q(O, 3882, 3893, 33), O[3893] = -87, O[3894] = 33, O[3895] = -87, O[3896] = 33, O[3897] = -87, q(O, 3898, 3902, 33), q(O, 3902, 3904, -87), q(O, 3904, 3912, -19), O[3912] = 33, q(O, 3913, 3946, -19), q(O, 3946, 3953, 33), q(O, 3953, 3973, -87), O[3973] = 33, q(O, 3974, 3980, -87), q(O, 3980, 3984, 33), q(O, 3984, 3990, -87), O[3990] = 33, O[3991] = -87, O[3992] = 33, q(O, 3993, 4014, -87), q(O, 4014, 4017, 33), q(O, 4017, 4024, -87), O[4024] = 33, O[4025] = -87, q(O, 4026, 4256, 33), q(O, 4256, 4294, -19), q(O, 4294, 4304, 33), q(O, 4304, 4343, -19), q(O, 4343, 4352, 33), O[4352] = -19, O[4353] = 33, q(O, 4354, 4356, -19), O[4356] = 33, q(O, 4357, 4360, -19), O[4360] = 33, O[4361] = -19, O[4362] = 33, q(O, 4363, 4365, -19), O[4365] = 33, q(O, 4366, 4371, -19), q(O, 4371, 4412, 33), O[4412] = -19, O[4413] = 33, O[4414] = -19, O[4415] = 33, O[4416] = -19, q(O, 4417, 4428, 33), O[4428] = -19, O[4429] = 33, O[4430] = -19, O[4431] = 33, O[4432] = -19, q(O, 4433, 4436, 33), q(O, 4436, 4438, -19), q(O, 4438, 4441, 33), O[4441] = -19, q(O, 4442, 4447, 33), q(O, 4447, 4450, -19), O[4450] = 33, O[4451] = -19, O[4452] = 33, O[4453] = -19, O[4454] = 33, O[4455] = -19, O[4456] = 33, O[4457] = -19, q(O, 4458, 4461, 33), q(O, 4461, 4463, -19), q(O, 4463, 4466, 33), q(O, 4466, 4468, -19), O[4468] = 33, O[4469] = -19, q(O, 4470, 4510, 33), O[4510] = -19, q(O, 4511, 4520, 33), O[4520] = -19, q(O, 4521, 4523, 33), O[4523] = -19, q(O, 4524, 4526, 33), q(O, 4526, 4528, -19), q(O, 4528, 4535, 33), q(O, 4535, 4537, -19), O[4537] = 33, O[4538] = -19, O[4539] = 33, q(O, 4540, 4547, -19), q(O, 4547, 4587, 33), O[4587] = -19, q(O, 4588, 4592, 33), O[4592] = -19, q(O, 4593, 4601, 33), O[4601] = -19, q(O, 4602, 7680, 33), q(O, 7680, 7836, -19), q(O, 7836, 7840, 33), q(O, 7840, 7930, -19), q(O, 7930, 7936, 33), q(O, 7936, 7958, -19), q(O, 7958, 7960, 33), q(O, 7960, 7966, -19), q(O, 7966, 7968, 33), q(O, 7968, 8006, -19), q(O, 8006, 8008, 33), q(O, 8008, 8014, -19), q(O, 8014, 8016, 33), q(O, 8016, 8024, -19), O[8024] = 33, O[8025] = -19, O[8026] = 33, O[8027] = -19, O[8028] = 33, O[8029] = -19, O[8030] = 33, q(O, 8031, 8062, -19), q(O, 8062, 8064, 33), q(O, 8064, 8117, -19), O[8117] = 33, q(O, 8118, 8125, -19), O[8125] = 33, O[8126] = -19, q(O, 8127, 8130, 33), q(O, 8130, 8133, -19), O[8133] = 33, q(O, 8134, 8141, -19), q(O, 8141, 8144, 33), q(O, 8144, 8148, -19), q(O, 8148, 8150, 33), q(O, 8150, 8156, -19), q(O, 8156, 8160, 33), q(O, 8160, 8173, -19), q(O, 8173, 8178, 33), q(O, 8178, 8181, -19), O[8181] = 33, q(O, 8182, 8189, -19), q(O, 8189, 8400, 33), q(O, 8400, 8413, -87), q(O, 8413, 8417, 33), O[8417] = -87, q(O, 8418, 8486, 33), O[8486] = -19, q(O, 8487, 8490, 33), q(O, 8490, 8492, -19), q(O, 8492, 8494, 33), O[8494] = -19, q(O, 8495, 8576, 33), q(O, 8576, 8579, -19), q(O, 8579, 12293, 33), O[12293] = -87, O[12294] = 33, O[12295] = -19, q(O, 12296, 12321, 33), q(O, 12321, 12330, -19), q(O, 12330, 12336, -87), O[12336] = 33, q(O, 12337, 12342, -87), q(O, 12342, 12353, 33), q(O, 12353, 12437, -19), q(O, 12437, 12441, 33), q(O, 12441, 12443, -87), q(O, 12443, 12445, 33), q(O, 12445, 12447, -87), q(O, 12447, 12449, 33), q(O, 12449, 12539, -19), O[12539] = 33, q(O, 12540, 12543, -87), q(O, 12543, 12549, 33), q(O, 12549, 12589, -19), q(O, 12589, 19968, 33), q(O, 19968, 40870, -19), q(O, 40870, 44032, 33), q(O, 44032, 55204, -19), q(O, 55204, aj, 33), q(O, 57344, 65534, 33); + function eWe() { + eWe = G, O = W(us, H2, 30, xr, 15, 1), O[9] = 35, O[10] = 19, O[13] = 19, O[32] = 51, O[33] = 49, O[34] = 33, U(O, 35, 38, 49), O[38] = 1, U(O, 39, 45, 49), U(O, 45, 47, -71), O[47] = 49, U(O, 48, 58, -71), O[58] = 61, O[59] = 49, O[60] = 1, O[61] = 49, O[62] = 33, U(O, 63, 65, 49), U(O, 65, 91, -3), U(O, 91, 93, 33), O[93] = 1, O[94] = 33, O[95] = -3, O[96] = 33, U(O, 97, 123, -3), U(O, 123, 183, 33), O[183] = -87, U(O, 184, 192, 33), U(O, 192, 215, -19), O[215] = 33, U(O, 216, 247, -19), O[247] = 33, U(O, 248, 306, -19), U(O, 306, 308, 33), U(O, 308, 319, -19), U(O, 319, 321, 33), U(O, 321, 329, -19), O[329] = 33, U(O, 330, 383, -19), O[383] = 33, U(O, 384, 452, -19), U(O, 452, 461, 33), U(O, 461, 497, -19), U(O, 497, 500, 33), U(O, 500, 502, -19), U(O, 502, 506, 33), U(O, 506, 536, -19), U(O, 536, 592, 33), U(O, 592, 681, -19), U(O, 681, 699, 33), U(O, 699, 706, -19), U(O, 706, 720, 33), U(O, 720, 722, -87), U(O, 722, 768, 33), U(O, 768, 838, -87), U(O, 838, 864, 33), U(O, 864, 866, -87), U(O, 866, 902, 33), O[902] = -19, O[903] = -87, U(O, 904, 907, -19), O[907] = 33, O[908] = -19, O[909] = 33, U(O, 910, 930, -19), O[930] = 33, U(O, 931, 975, -19), O[975] = 33, U(O, 976, 983, -19), U(O, 983, 986, 33), O[986] = -19, O[987] = 33, O[988] = -19, O[989] = 33, O[990] = -19, O[991] = 33, O[992] = -19, O[993] = 33, U(O, 994, 1012, -19), U(O, 1012, 1025, 33), U(O, 1025, 1037, -19), O[1037] = 33, U(O, 1038, 1104, -19), O[1104] = 33, U(O, 1105, 1117, -19), O[1117] = 33, U(O, 1118, 1154, -19), O[1154] = 33, U(O, 1155, 1159, -87), U(O, 1159, 1168, 33), U(O, 1168, 1221, -19), U(O, 1221, 1223, 33), U(O, 1223, 1225, -19), U(O, 1225, 1227, 33), U(O, 1227, 1229, -19), U(O, 1229, 1232, 33), U(O, 1232, 1260, -19), U(O, 1260, 1262, 33), U(O, 1262, 1270, -19), U(O, 1270, 1272, 33), U(O, 1272, 1274, -19), U(O, 1274, 1329, 33), U(O, 1329, 1367, -19), U(O, 1367, 1369, 33), O[1369] = -19, U(O, 1370, 1377, 33), U(O, 1377, 1415, -19), U(O, 1415, 1425, 33), U(O, 1425, 1442, -87), O[1442] = 33, U(O, 1443, 1466, -87), O[1466] = 33, U(O, 1467, 1470, -87), O[1470] = 33, O[1471] = -87, O[1472] = 33, U(O, 1473, 1475, -87), O[1475] = 33, O[1476] = -87, U(O, 1477, 1488, 33), U(O, 1488, 1515, -19), U(O, 1515, 1520, 33), U(O, 1520, 1523, -19), U(O, 1523, 1569, 33), U(O, 1569, 1595, -19), U(O, 1595, 1600, 33), O[1600] = -87, U(O, 1601, 1611, -19), U(O, 1611, 1619, -87), U(O, 1619, 1632, 33), U(O, 1632, 1642, -87), U(O, 1642, 1648, 33), O[1648] = -87, U(O, 1649, 1720, -19), U(O, 1720, 1722, 33), U(O, 1722, 1727, -19), O[1727] = 33, U(O, 1728, 1743, -19), O[1743] = 33, U(O, 1744, 1748, -19), O[1748] = 33, O[1749] = -19, U(O, 1750, 1765, -87), U(O, 1765, 1767, -19), U(O, 1767, 1769, -87), O[1769] = 33, U(O, 1770, 1774, -87), U(O, 1774, 1776, 33), U(O, 1776, 1786, -87), U(O, 1786, 2305, 33), U(O, 2305, 2308, -87), O[2308] = 33, U(O, 2309, 2362, -19), U(O, 2362, 2364, 33), O[2364] = -87, O[2365] = -19, U(O, 2366, 2382, -87), U(O, 2382, 2385, 33), U(O, 2385, 2389, -87), U(O, 2389, 2392, 33), U(O, 2392, 2402, -19), U(O, 2402, 2404, -87), U(O, 2404, 2406, 33), U(O, 2406, 2416, -87), U(O, 2416, 2433, 33), U(O, 2433, 2436, -87), O[2436] = 33, U(O, 2437, 2445, -19), U(O, 2445, 2447, 33), U(O, 2447, 2449, -19), U(O, 2449, 2451, 33), U(O, 2451, 2473, -19), O[2473] = 33, U(O, 2474, 2481, -19), O[2481] = 33, O[2482] = -19, U(O, 2483, 2486, 33), U(O, 2486, 2490, -19), U(O, 2490, 2492, 33), O[2492] = -87, O[2493] = 33, U(O, 2494, 2501, -87), U(O, 2501, 2503, 33), U(O, 2503, 2505, -87), U(O, 2505, 2507, 33), U(O, 2507, 2510, -87), U(O, 2510, 2519, 33), O[2519] = -87, U(O, 2520, 2524, 33), U(O, 2524, 2526, -19), O[2526] = 33, U(O, 2527, 2530, -19), U(O, 2530, 2532, -87), U(O, 2532, 2534, 33), U(O, 2534, 2544, -87), U(O, 2544, 2546, -19), U(O, 2546, 2562, 33), O[2562] = -87, U(O, 2563, 2565, 33), U(O, 2565, 2571, -19), U(O, 2571, 2575, 33), U(O, 2575, 2577, -19), U(O, 2577, 2579, 33), U(O, 2579, 2601, -19), O[2601] = 33, U(O, 2602, 2609, -19), O[2609] = 33, U(O, 2610, 2612, -19), O[2612] = 33, U(O, 2613, 2615, -19), O[2615] = 33, U(O, 2616, 2618, -19), U(O, 2618, 2620, 33), O[2620] = -87, O[2621] = 33, U(O, 2622, 2627, -87), U(O, 2627, 2631, 33), U(O, 2631, 2633, -87), U(O, 2633, 2635, 33), U(O, 2635, 2638, -87), U(O, 2638, 2649, 33), U(O, 2649, 2653, -19), O[2653] = 33, O[2654] = -19, U(O, 2655, 2662, 33), U(O, 2662, 2674, -87), U(O, 2674, 2677, -19), U(O, 2677, 2689, 33), U(O, 2689, 2692, -87), O[2692] = 33, U(O, 2693, 2700, -19), O[2700] = 33, O[2701] = -19, O[2702] = 33, U(O, 2703, 2706, -19), O[2706] = 33, U(O, 2707, 2729, -19), O[2729] = 33, U(O, 2730, 2737, -19), O[2737] = 33, U(O, 2738, 2740, -19), O[2740] = 33, U(O, 2741, 2746, -19), U(O, 2746, 2748, 33), O[2748] = -87, O[2749] = -19, U(O, 2750, 2758, -87), O[2758] = 33, U(O, 2759, 2762, -87), O[2762] = 33, U(O, 2763, 2766, -87), U(O, 2766, 2784, 33), O[2784] = -19, U(O, 2785, 2790, 33), U(O, 2790, 2800, -87), U(O, 2800, 2817, 33), U(O, 2817, 2820, -87), O[2820] = 33, U(O, 2821, 2829, -19), U(O, 2829, 2831, 33), U(O, 2831, 2833, -19), U(O, 2833, 2835, 33), U(O, 2835, 2857, -19), O[2857] = 33, U(O, 2858, 2865, -19), O[2865] = 33, U(O, 2866, 2868, -19), U(O, 2868, 2870, 33), U(O, 2870, 2874, -19), U(O, 2874, 2876, 33), O[2876] = -87, O[2877] = -19, U(O, 2878, 2884, -87), U(O, 2884, 2887, 33), U(O, 2887, 2889, -87), U(O, 2889, 2891, 33), U(O, 2891, 2894, -87), U(O, 2894, 2902, 33), U(O, 2902, 2904, -87), U(O, 2904, 2908, 33), U(O, 2908, 2910, -19), O[2910] = 33, U(O, 2911, 2914, -19), U(O, 2914, 2918, 33), U(O, 2918, 2928, -87), U(O, 2928, 2946, 33), U(O, 2946, 2948, -87), O[2948] = 33, U(O, 2949, 2955, -19), U(O, 2955, 2958, 33), U(O, 2958, 2961, -19), O[2961] = 33, U(O, 2962, 2966, -19), U(O, 2966, 2969, 33), U(O, 2969, 2971, -19), O[2971] = 33, O[2972] = -19, O[2973] = 33, U(O, 2974, 2976, -19), U(O, 2976, 2979, 33), U(O, 2979, 2981, -19), U(O, 2981, 2984, 33), U(O, 2984, 2987, -19), U(O, 2987, 2990, 33), U(O, 2990, 2998, -19), O[2998] = 33, U(O, 2999, 3002, -19), U(O, 3002, 3006, 33), U(O, 3006, 3011, -87), U(O, 3011, 3014, 33), U(O, 3014, 3017, -87), O[3017] = 33, U(O, 3018, 3022, -87), U(O, 3022, 3031, 33), O[3031] = -87, U(O, 3032, 3047, 33), U(O, 3047, 3056, -87), U(O, 3056, 3073, 33), U(O, 3073, 3076, -87), O[3076] = 33, U(O, 3077, 3085, -19), O[3085] = 33, U(O, 3086, 3089, -19), O[3089] = 33, U(O, 3090, 3113, -19), O[3113] = 33, U(O, 3114, 3124, -19), O[3124] = 33, U(O, 3125, 3130, -19), U(O, 3130, 3134, 33), U(O, 3134, 3141, -87), O[3141] = 33, U(O, 3142, 3145, -87), O[3145] = 33, U(O, 3146, 3150, -87), U(O, 3150, 3157, 33), U(O, 3157, 3159, -87), U(O, 3159, 3168, 33), U(O, 3168, 3170, -19), U(O, 3170, 3174, 33), U(O, 3174, 3184, -87), U(O, 3184, 3202, 33), U(O, 3202, 3204, -87), O[3204] = 33, U(O, 3205, 3213, -19), O[3213] = 33, U(O, 3214, 3217, -19), O[3217] = 33, U(O, 3218, 3241, -19), O[3241] = 33, U(O, 3242, 3252, -19), O[3252] = 33, U(O, 3253, 3258, -19), U(O, 3258, 3262, 33), U(O, 3262, 3269, -87), O[3269] = 33, U(O, 3270, 3273, -87), O[3273] = 33, U(O, 3274, 3278, -87), U(O, 3278, 3285, 33), U(O, 3285, 3287, -87), U(O, 3287, 3294, 33), O[3294] = -19, O[3295] = 33, U(O, 3296, 3298, -19), U(O, 3298, 3302, 33), U(O, 3302, 3312, -87), U(O, 3312, 3330, 33), U(O, 3330, 3332, -87), O[3332] = 33, U(O, 3333, 3341, -19), O[3341] = 33, U(O, 3342, 3345, -19), O[3345] = 33, U(O, 3346, 3369, -19), O[3369] = 33, U(O, 3370, 3386, -19), U(O, 3386, 3390, 33), U(O, 3390, 3396, -87), U(O, 3396, 3398, 33), U(O, 3398, 3401, -87), O[3401] = 33, U(O, 3402, 3406, -87), U(O, 3406, 3415, 33), O[3415] = -87, U(O, 3416, 3424, 33), U(O, 3424, 3426, -19), U(O, 3426, 3430, 33), U(O, 3430, 3440, -87), U(O, 3440, 3585, 33), U(O, 3585, 3631, -19), O[3631] = 33, O[3632] = -19, O[3633] = -87, U(O, 3634, 3636, -19), U(O, 3636, 3643, -87), U(O, 3643, 3648, 33), U(O, 3648, 3654, -19), U(O, 3654, 3663, -87), O[3663] = 33, U(O, 3664, 3674, -87), U(O, 3674, 3713, 33), U(O, 3713, 3715, -19), O[3715] = 33, O[3716] = -19, U(O, 3717, 3719, 33), U(O, 3719, 3721, -19), O[3721] = 33, O[3722] = -19, U(O, 3723, 3725, 33), O[3725] = -19, U(O, 3726, 3732, 33), U(O, 3732, 3736, -19), O[3736] = 33, U(O, 3737, 3744, -19), O[3744] = 33, U(O, 3745, 3748, -19), O[3748] = 33, O[3749] = -19, O[3750] = 33, O[3751] = -19, U(O, 3752, 3754, 33), U(O, 3754, 3756, -19), O[3756] = 33, U(O, 3757, 3759, -19), O[3759] = 33, O[3760] = -19, O[3761] = -87, U(O, 3762, 3764, -19), U(O, 3764, 3770, -87), O[3770] = 33, U(O, 3771, 3773, -87), O[3773] = -19, U(O, 3774, 3776, 33), U(O, 3776, 3781, -19), O[3781] = 33, O[3782] = -87, O[3783] = 33, U(O, 3784, 3790, -87), U(O, 3790, 3792, 33), U(O, 3792, 3802, -87), U(O, 3802, 3864, 33), U(O, 3864, 3866, -87), U(O, 3866, 3872, 33), U(O, 3872, 3882, -87), U(O, 3882, 3893, 33), O[3893] = -87, O[3894] = 33, O[3895] = -87, O[3896] = 33, O[3897] = -87, U(O, 3898, 3902, 33), U(O, 3902, 3904, -87), U(O, 3904, 3912, -19), O[3912] = 33, U(O, 3913, 3946, -19), U(O, 3946, 3953, 33), U(O, 3953, 3973, -87), O[3973] = 33, U(O, 3974, 3980, -87), U(O, 3980, 3984, 33), U(O, 3984, 3990, -87), O[3990] = 33, O[3991] = -87, O[3992] = 33, U(O, 3993, 4014, -87), U(O, 4014, 4017, 33), U(O, 4017, 4024, -87), O[4024] = 33, O[4025] = -87, U(O, 4026, 4256, 33), U(O, 4256, 4294, -19), U(O, 4294, 4304, 33), U(O, 4304, 4343, -19), U(O, 4343, 4352, 33), O[4352] = -19, O[4353] = 33, U(O, 4354, 4356, -19), O[4356] = 33, U(O, 4357, 4360, -19), O[4360] = 33, O[4361] = -19, O[4362] = 33, U(O, 4363, 4365, -19), O[4365] = 33, U(O, 4366, 4371, -19), U(O, 4371, 4412, 33), O[4412] = -19, O[4413] = 33, O[4414] = -19, O[4415] = 33, O[4416] = -19, U(O, 4417, 4428, 33), O[4428] = -19, O[4429] = 33, O[4430] = -19, O[4431] = 33, O[4432] = -19, U(O, 4433, 4436, 33), U(O, 4436, 4438, -19), U(O, 4438, 4441, 33), O[4441] = -19, U(O, 4442, 4447, 33), U(O, 4447, 4450, -19), O[4450] = 33, O[4451] = -19, O[4452] = 33, O[4453] = -19, O[4454] = 33, O[4455] = -19, O[4456] = 33, O[4457] = -19, U(O, 4458, 4461, 33), U(O, 4461, 4463, -19), U(O, 4463, 4466, 33), U(O, 4466, 4468, -19), O[4468] = 33, O[4469] = -19, U(O, 4470, 4510, 33), O[4510] = -19, U(O, 4511, 4520, 33), O[4520] = -19, U(O, 4521, 4523, 33), O[4523] = -19, U(O, 4524, 4526, 33), U(O, 4526, 4528, -19), U(O, 4528, 4535, 33), U(O, 4535, 4537, -19), O[4537] = 33, O[4538] = -19, O[4539] = 33, U(O, 4540, 4547, -19), U(O, 4547, 4587, 33), O[4587] = -19, U(O, 4588, 4592, 33), O[4592] = -19, U(O, 4593, 4601, 33), O[4601] = -19, U(O, 4602, 7680, 33), U(O, 7680, 7836, -19), U(O, 7836, 7840, 33), U(O, 7840, 7930, -19), U(O, 7930, 7936, 33), U(O, 7936, 7958, -19), U(O, 7958, 7960, 33), U(O, 7960, 7966, -19), U(O, 7966, 7968, 33), U(O, 7968, 8006, -19), U(O, 8006, 8008, 33), U(O, 8008, 8014, -19), U(O, 8014, 8016, 33), U(O, 8016, 8024, -19), O[8024] = 33, O[8025] = -19, O[8026] = 33, O[8027] = -19, O[8028] = 33, O[8029] = -19, O[8030] = 33, U(O, 8031, 8062, -19), U(O, 8062, 8064, 33), U(O, 8064, 8117, -19), O[8117] = 33, U(O, 8118, 8125, -19), O[8125] = 33, O[8126] = -19, U(O, 8127, 8130, 33), U(O, 8130, 8133, -19), O[8133] = 33, U(O, 8134, 8141, -19), U(O, 8141, 8144, 33), U(O, 8144, 8148, -19), U(O, 8148, 8150, 33), U(O, 8150, 8156, -19), U(O, 8156, 8160, 33), U(O, 8160, 8173, -19), U(O, 8173, 8178, 33), U(O, 8178, 8181, -19), O[8181] = 33, U(O, 8182, 8189, -19), U(O, 8189, 8400, 33), U(O, 8400, 8413, -87), U(O, 8413, 8417, 33), O[8417] = -87, U(O, 8418, 8486, 33), O[8486] = -19, U(O, 8487, 8490, 33), U(O, 8490, 8492, -19), U(O, 8492, 8494, 33), O[8494] = -19, U(O, 8495, 8576, 33), U(O, 8576, 8579, -19), U(O, 8579, 12293, 33), O[12293] = -87, O[12294] = 33, O[12295] = -19, U(O, 12296, 12321, 33), U(O, 12321, 12330, -19), U(O, 12330, 12336, -87), O[12336] = 33, U(O, 12337, 12342, -87), U(O, 12342, 12353, 33), U(O, 12353, 12437, -19), U(O, 12437, 12441, 33), U(O, 12441, 12443, -87), U(O, 12443, 12445, 33), U(O, 12445, 12447, -87), U(O, 12447, 12449, 33), U(O, 12449, 12539, -19), O[12539] = 33, U(O, 12540, 12543, -87), U(O, 12543, 12549, 33), U(O, 12549, 12589, -19), U(O, 12589, 19968, 33), U(O, 19968, 40870, -19), U(O, 40870, 44032, 33), U(O, 44032, 55204, -19), U(O, 55204, aj, 33), U(O, 57344, 65534, 33); } function yLn(e) { var n, t, i, r, c, s, f; - e.hb || (e.hb = !0, gu(e, "ecore"), bM(e, "ecore"), wM(e, Wo), b7(e.fb, "E"), b7(e.L, "T"), b7(e.P, "K"), b7(e.P, "V"), b7(e.cb, "E"), Dn(Zr(e.b), e.bb), Dn(Zr(e.a), e.Q), Dn(Zr(e.o), e.p), Dn(Zr(e.p), e.R), Dn(Zr(e.q), e.p), Dn(Zr(e.v), e.q), Dn(Zr(e.w), e.R), Dn(Zr(e.B), e.Q), Dn(Zr(e.R), e.Q), Dn(Zr(e.T), e.eb), Dn(Zr(e.U), e.R), Dn(Zr(e.V), e.eb), Dn(Zr(e.W), e.bb), Dn(Zr(e.bb), e.eb), Dn(Zr(e.eb), e.R), Dn(Zr(e.db), e.R), jc(e.b, Lg, BVe, !1, !1, !0), di(u(F(ee(e.b), 0), 38), e.e, "iD", null, 0, 1, Lg, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.b), 1), 19), e.q, null, "eAttributeType", 1, 1, Lg, !0, !0, !1, !1, !0, !1, !0), jc(e.a, ot, NVe, !1, !1, !0), di(u(F(ee(e.a), 0), 38), e._, rJ, null, 0, 1, ot, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.a), 1), 19), e.ab, null, "details", 0, -1, ot, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.a), 2), 19), e.Q, u(F(ee(e.Q), 0), 19), "eModelElement", 0, 1, ot, !0, !1, !0, !1, !1, !1, !1), Ut(u(F(ee(e.a), 3), 19), e.S, null, "contents", 0, -1, ot, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.a), 4), 19), e.S, null, "references", 0, -1, ot, !1, !1, !0, !1, !0, !1, !1), jc(e.o, ef, "EClass", !1, !1, !0), di(u(F(ee(e.o), 0), 38), e.e, "abstract", null, 0, 1, ef, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.o), 1), 38), e.e, "interface", null, 0, 1, ef, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.o), 2), 19), e.o, null, "eSuperTypes", 0, -1, ef, !1, !1, !0, !1, !0, !0, !1), Ut(u(F(ee(e.o), 3), 19), e.T, u(F(ee(e.T), 0), 19), "eOperations", 0, -1, ef, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.o), 4), 19), e.b, null, "eAllAttributes", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 5), 19), e.W, null, "eAllReferences", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 6), 19), e.W, null, "eReferences", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 7), 19), e.b, null, "eAttributes", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 8), 19), e.W, null, "eAllContainments", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 9), 19), e.T, null, "eAllOperations", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 10), 19), e.bb, null, "eAllStructuralFeatures", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 11), 19), e.o, null, "eAllSuperTypes", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 12), 19), e.b, null, "eIDAttribute", 0, 1, ef, !0, !0, !1, !1, !1, !1, !0), Ut(u(F(ee(e.o), 13), 19), e.bb, u(F(ee(e.bb), 7), 19), "eStructuralFeatures", 0, -1, ef, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.o), 14), 19), e.H, null, "eGenericSuperTypes", 0, -1, ef, !1, !1, !0, !0, !1, !0, !1), Ut(u(F(ee(e.o), 15), 19), e.H, null, "eAllGenericSuperTypes", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), f = Jr(u(F(St(e.o), 0), 62), e.e, "isSuperTypeOf"), Kr(f, e.o, "someClass"), Jr(u(F(St(e.o), 1), 62), e.I, "getFeatureCount"), f = Jr(u(F(St(e.o), 2), 62), e.bb, QVe), Kr(f, e.I, "featureID"), f = Jr(u(F(St(e.o), 3), 62), e.I, YVe), Kr(f, e.bb, sk), f = Jr(u(F(St(e.o), 4), 62), e.bb, QVe), Kr(f, e._, "featureName"), Jr(u(F(St(e.o), 5), 62), e.I, "getOperationCount"), f = Jr(u(F(St(e.o), 6), 62), e.T, "getEOperation"), Kr(f, e.I, "operationID"), f = Jr(u(F(St(e.o), 7), 62), e.I, ZVe), Kr(f, e.T, Hue), f = Jr(u(F(St(e.o), 8), 62), e.T, "getOverride"), Kr(f, e.T, Hue), f = Jr(u(F(St(e.o), 9), 62), e.H, "getFeatureType"), Kr(f, e.bb, sk), jc(e.p, nh, _Ve, !0, !1, !0), di(u(F(ee(e.p), 0), 38), e._, "instanceClassName", null, 0, 1, nh, !1, !0, !0, !0, !0, !1), n = ql(e.L), t = wQ(), Dn((!n.d && (n.d = new $i(Rr, n, 1)), n.d), t), GGe(u(F(ee(e.p), 1), 38), n, "instanceClass", nh, !0, !0, !1, !0), di(u(F(ee(e.p), 2), 38), e.M, eQe, null, 0, 1, nh, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.p), 3), 38), e._, "instanceTypeName", null, 0, 1, nh, !1, !0, !0, !0, !0, !1), Ut(u(F(ee(e.p), 4), 19), e.U, u(F(ee(e.U), 3), 19), "ePackage", 0, 1, nh, !0, !1, !1, !1, !0, !1, !1), Ut(u(F(ee(e.p), 5), 19), e.db, null, nQe, 0, -1, nh, !1, !1, !0, !0, !0, !1, !1), f = Jr(u(F(St(e.p), 0), 62), e.e, tQe), Kr(f, e.M, ij), Jr(u(F(St(e.p), 1), 62), e.I, "getClassifierID"), jc(e.q, AU, "EDataType", !1, !1, !0), di(u(F(ee(e.q), 0), 38), e.e, "serializable", I5, 0, 1, AU, !1, !1, !0, !1, !0, !1), jc(e.v, hP, "EEnum", !1, !1, !0), Ut(u(F(ee(e.v), 0), 19), e.w, u(F(ee(e.w), 3), 19), "eLiterals", 0, -1, hP, !1, !1, !0, !0, !1, !1, !1), f = Jr(u(F(St(e.v), 0), 62), e.w, iQe), Kr(f, e._, gt), f = Jr(u(F(St(e.v), 1), 62), e.w, iQe), Kr(f, e.I, Z9), f = Jr(u(F(St(e.v), 2), 62), e.w, "getEEnumLiteralByLiteral"), Kr(f, e._, "literal"), jc(e.w, wa, JVe, !1, !1, !0), di(u(F(ee(e.w), 0), 38), e.I, Z9, null, 0, 1, wa, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.w), 1), 38), e.A, "instance", null, 0, 1, wa, !0, !1, !0, !1, !0, !1), di(u(F(ee(e.w), 2), 38), e._, "literal", null, 0, 1, wa, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.w), 3), 19), e.v, u(F(ee(e.v), 0), 19), "eEnum", 0, 1, wa, !0, !1, !1, !1, !1, !1, !1), jc(e.B, y8, "EFactory", !1, !1, !0), Ut(u(F(ee(e.B), 0), 19), e.U, u(F(ee(e.U), 2), 19), "ePackage", 1, 1, y8, !0, !1, !0, !1, !1, !1, !1), f = Jr(u(F(St(e.B), 0), 62), e.S, "create"), Kr(f, e.o, "eClass"), f = Jr(u(F(St(e.B), 1), 62), e.M, "createFromString"), Kr(f, e.q, "eDataType"), Kr(f, e._, "literalValue"), f = Jr(u(F(St(e.B), 2), 62), e._, "convertToString"), Kr(f, e.q, "eDataType"), Kr(f, e.M, "instanceValue"), jc(e.Q, zE, _Ke, !0, !1, !0), Ut(u(F(ee(e.Q), 0), 19), e.a, u(F(ee(e.a), 2), 19), "eAnnotations", 0, -1, zE, !1, !1, !0, !0, !1, !1, !1), f = Jr(u(F(St(e.Q), 0), 62), e.a, "getEAnnotation"), Kr(f, e._, rJ), jc(e.R, mU, JKe, !0, !1, !0), di(u(F(ee(e.R), 0), 38), e._, gt, null, 0, 1, mU, !1, !1, !0, !1, !0, !1), jc(e.S, bd, "EObject", !1, !1, !0), Jr(u(F(St(e.S), 0), 62), e.o, "eClass"), Jr(u(F(St(e.S), 1), 62), e.e, "eIsProxy"), Jr(u(F(St(e.S), 2), 62), e.X, "eResource"), Jr(u(F(St(e.S), 3), 62), e.S, "eContainer"), Jr(u(F(St(e.S), 4), 62), e.bb, "eContainingFeature"), Jr(u(F(St(e.S), 5), 62), e.W, "eContainmentFeature"), f = Jr(u(F(St(e.S), 6), 62), null, "eContents"), n = ql(e.fb), t = ql(e.S), Dn((!n.d && (n.d = new $i(Rr, n, 1)), n.d), t), r = bh(f, n, null), r && r.mj(), f = Jr(u(F(St(e.S), 7), 62), null, "eAllContents"), n = ql(e.cb), t = ql(e.S), Dn((!n.d && (n.d = new $i(Rr, n, 1)), n.d), t), c = bh(f, n, null), c && c.mj(), f = Jr(u(F(St(e.S), 8), 62), null, "eCrossReferences"), n = ql(e.fb), t = ql(e.S), Dn((!n.d && (n.d = new $i(Rr, n, 1)), n.d), t), s = bh(f, n, null), s && s.mj(), f = Jr(u(F(St(e.S), 9), 62), e.M, "eGet"), Kr(f, e.bb, sk), f = Jr(u(F(St(e.S), 10), 62), e.M, "eGet"), Kr(f, e.bb, sk), Kr(f, e.e, "resolve"), f = Jr(u(F(St(e.S), 11), 62), null, "eSet"), Kr(f, e.bb, sk), Kr(f, e.M, "newValue"), f = Jr(u(F(St(e.S), 12), 62), e.e, "eIsSet"), Kr(f, e.bb, sk), f = Jr(u(F(St(e.S), 13), 62), null, "eUnset"), Kr(f, e.bb, sk), f = Jr(u(F(St(e.S), 14), 62), e.M, "eInvoke"), Kr(f, e.T, Hue), n = ql(e.fb), t = wQ(), Dn((!n.d && (n.d = new $i(Rr, n, 1)), n.d), t), tT(f, n, "arguments"), h2n(f, e.K), jc(e.T, nf, HVe, !1, !1, !0), Ut(u(F(ee(e.T), 0), 19), e.o, u(F(ee(e.o), 3), 19), rQe, 0, 1, nf, !0, !1, !1, !1, !1, !1, !1), Ut(u(F(ee(e.T), 1), 19), e.db, null, nQe, 0, -1, nf, !1, !1, !0, !0, !0, !1, !1), Ut(u(F(ee(e.T), 2), 19), e.V, u(F(ee(e.V), 0), 19), "eParameters", 0, -1, nf, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.T), 3), 19), e.p, null, "eExceptions", 0, -1, nf, !1, !1, !0, !1, !0, !0, !1), Ut(u(F(ee(e.T), 4), 19), e.H, null, "eGenericExceptions", 0, -1, nf, !1, !1, !0, !0, !1, !0, !1), Jr(u(F(St(e.T), 0), 62), e.I, ZVe), f = Jr(u(F(St(e.T), 1), 62), e.e, "isOverrideOf"), Kr(f, e.T, "someOperation"), jc(e.U, eh, "EPackage", !1, !1, !0), di(u(F(ee(e.U), 0), 38), e._, "nsURI", null, 0, 1, eh, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.U), 1), 38), e._, "nsPrefix", null, 0, 1, eh, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.U), 2), 19), e.B, u(F(ee(e.B), 0), 19), "eFactoryInstance", 1, 1, eh, !0, !1, !0, !1, !1, !1, !1), Ut(u(F(ee(e.U), 3), 19), e.p, u(F(ee(e.p), 4), 19), "eClassifiers", 0, -1, eh, !1, !1, !0, !0, !0, !1, !1), Ut(u(F(ee(e.U), 4), 19), e.U, u(F(ee(e.U), 5), 19), "eSubpackages", 0, -1, eh, !1, !1, !0, !0, !0, !1, !1), Ut(u(F(ee(e.U), 5), 19), e.U, u(F(ee(e.U), 4), 19), "eSuperPackage", 0, 1, eh, !0, !1, !1, !1, !0, !1, !1), f = Jr(u(F(St(e.U), 0), 62), e.p, "getEClassifier"), Kr(f, e._, gt), jc(e.V, Rb, qVe, !1, !1, !0), Ut(u(F(ee(e.V), 0), 19), e.T, u(F(ee(e.T), 2), 19), "eOperation", 0, 1, Rb, !0, !1, !1, !1, !1, !1, !1), jc(e.W, Dg, UVe, !1, !1, !0), di(u(F(ee(e.W), 0), 38), e.e, "containment", null, 0, 1, Dg, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.W), 1), 38), e.e, "container", null, 0, 1, Dg, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.W), 2), 38), e.e, "resolveProxies", I5, 0, 1, Dg, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.W), 3), 19), e.W, null, "eOpposite", 0, 1, Dg, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.W), 4), 19), e.o, null, "eReferenceType", 1, 1, Dg, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.W), 5), 19), e.b, null, "eKeys", 0, -1, Dg, !1, !1, !0, !1, !0, !1, !1), jc(e.bb, Uu, RVe, !0, !1, !0), di(u(F(ee(e.bb), 0), 38), e.e, "changeable", I5, 0, 1, Uu, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.bb), 1), 38), e.e, "volatile", null, 0, 1, Uu, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.bb), 2), 38), e.e, "transient", null, 0, 1, Uu, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.bb), 3), 38), e._, "defaultValueLiteral", null, 0, 1, Uu, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.bb), 4), 38), e.M, eQe, null, 0, 1, Uu, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.bb), 5), 38), e.e, "unsettable", null, 0, 1, Uu, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.bb), 6), 38), e.e, "derived", null, 0, 1, Uu, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.bb), 7), 19), e.o, u(F(ee(e.o), 13), 19), rQe, 0, 1, Uu, !0, !1, !1, !1, !1, !1, !1), Jr(u(F(St(e.bb), 0), 62), e.I, YVe), f = Jr(u(F(St(e.bb), 1), 62), null, "getContainerClass"), n = ql(e.L), t = wQ(), Dn((!n.d && (n.d = new $i(Rr, n, 1)), n.d), t), i = bh(f, n, null), i && i.mj(), jc(e.eb, Og, FVe, !0, !1, !0), di(u(F(ee(e.eb), 0), 38), e.e, "ordered", I5, 0, 1, Og, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.eb), 1), 38), e.e, "unique", I5, 0, 1, Og, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.eb), 2), 38), e.I, "lowerBound", null, 0, 1, Og, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.eb), 3), 38), e.I, "upperBound", "1", 0, 1, Og, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.eb), 4), 38), e.e, "many", null, 0, 1, Og, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.eb), 5), 38), e.e, "required", null, 0, 1, Og, !0, !0, !1, !1, !0, !0), Ut(u(F(ee(e.eb), 6), 19), e.p, null, "eType", 0, 1, Og, !1, !0, !0, !1, !0, !0, !1), Ut(u(F(ee(e.eb), 7), 19), e.H, null, "eGenericType", 0, 1, Og, !1, !0, !0, !0, !1, !0, !1), jc(e.ab, s0, "EStringToStringMapEntry", !1, !1, !1), di(u(F(ee(e.ab), 0), 38), e._, "key", null, 0, 1, s0, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.ab), 1), 38), e._, Z9, null, 0, 1, s0, !1, !1, !0, !1, !0, !1), jc(e.H, Rr, GVe, !1, !1, !0), Ut(u(F(ee(e.H), 0), 19), e.H, null, "eUpperBound", 0, 1, Rr, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.H), 1), 19), e.H, null, "eTypeArguments", 0, -1, Rr, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.H), 2), 19), e.p, null, "eRawType", 1, 1, Rr, !0, !1, !1, !1, !0, !1, !0), Ut(u(F(ee(e.H), 3), 19), e.H, null, "eLowerBound", 0, 1, Rr, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.H), 4), 19), e.db, null, "eTypeParameter", 0, 1, Rr, !1, !1, !0, !1, !1, !1, !1), Ut(u(F(ee(e.H), 5), 19), e.p, null, "eClassifier", 0, 1, Rr, !1, !1, !0, !1, !0, !1, !1), f = Jr(u(F(St(e.H), 0), 62), e.e, tQe), Kr(f, e.M, ij), jc(e.db, Iu, zVe, !1, !1, !0), Ut(u(F(ee(e.db), 0), 19), e.H, null, "eBounds", 0, -1, Iu, !1, !1, !0, !0, !1, !1, !1), bt(e.c, qJ, "EBigDecimal", !0), bt(e.d, z2, "EBigInteger", !0), bt(e.e, zu, "EBoolean", !0), bt(e.f, ui, "EBooleanObject", !0), bt(e.i, us, "EByte", !0), bt(e.g, T(us, 1), "EByteArray", !0), bt(e.j, X3, "EByteObject", !0), bt(e.k, Oo, "EChar", !0), bt(e.n, hk, "ECharacterObject", !0), bt(e.r, VS, "EDate", !0), bt(e.s, obe, "EDiagnosticChain", !1), bt(e.t, Xi, "EDouble", !0), bt(e.u, Ei, "EDoubleObject", !0), bt(e.fb, E0e, "EEList", !1), bt(e.A, $0e, "EEnumerator", !1), bt(e.C, K0e, "EFeatureMap", !1), bt(e.D, lP, "EFeatureMapEntry", !1), bt(e.F, Bg, "EFloat", !0), bt(e.G, J5, "EFloatObject", !0), bt(e.I, Wn, "EInt", !0), bt(e.J, Ii, "EIntegerObject", !0), bt(e.L, ese, "EJavaClass", !0), bt(e.M, Li, "EJavaObject", !0), bt(e.N, Gb, "ELong", !0), bt(e.O, Ab, "ELongObject", !0), bt(e.P, nse, "EMap", !1), bt(e.X, U0e, "EResource", !1), bt(e.Y, fbe, "EResourceSet", !1), bt(e.Z, Ap, "EShort", !0), bt(e.$, xb, "EShortObject", !0), bt(e._, ke, "EString", !0), bt(e.cb, x0e, "ETreeIterator", !1), bt(e.K, hbe, "EInvocationTargetException", !1), mZ(e, Wo)); + e.hb || (e.hb = !0, gu(e, "ecore"), bM(e, "ecore"), wM(e, Wo), b7(e.fb, "E"), b7(e.L, "T"), b7(e.P, "K"), b7(e.P, "V"), b7(e.cb, "E"), Dn(Zr(e.b), e.bb), Dn(Zr(e.a), e.Q), Dn(Zr(e.o), e.p), Dn(Zr(e.p), e.R), Dn(Zr(e.q), e.p), Dn(Zr(e.v), e.q), Dn(Zr(e.w), e.R), Dn(Zr(e.B), e.Q), Dn(Zr(e.R), e.Q), Dn(Zr(e.T), e.eb), Dn(Zr(e.U), e.R), Dn(Zr(e.V), e.eb), Dn(Zr(e.W), e.bb), Dn(Zr(e.bb), e.eb), Dn(Zr(e.eb), e.R), Dn(Zr(e.db), e.R), jc(e.b, Lg, BVe, !1, !1, !0), di(u(F(ee(e.b), 0), 38), e.e, "iD", null, 0, 1, Lg, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.b), 1), 19), e.q, null, "eAttributeType", 1, 1, Lg, !0, !0, !1, !1, !0, !1, !0), jc(e.a, ot, FVe, !1, !1, !0), di(u(F(ee(e.a), 0), 38), e._, rJ, null, 0, 1, ot, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.a), 1), 19), e.ab, null, "details", 0, -1, ot, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.a), 2), 19), e.Q, u(F(ee(e.Q), 0), 19), "eModelElement", 0, 1, ot, !0, !1, !0, !1, !1, !1, !1), Ut(u(F(ee(e.a), 3), 19), e.S, null, "contents", 0, -1, ot, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.a), 4), 19), e.S, null, "references", 0, -1, ot, !1, !1, !0, !1, !0, !1, !1), jc(e.o, ef, "EClass", !1, !1, !0), di(u(F(ee(e.o), 0), 38), e.e, "abstract", null, 0, 1, ef, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.o), 1), 38), e.e, "interface", null, 0, 1, ef, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.o), 2), 19), e.o, null, "eSuperTypes", 0, -1, ef, !1, !1, !0, !1, !0, !0, !1), Ut(u(F(ee(e.o), 3), 19), e.T, u(F(ee(e.T), 0), 19), "eOperations", 0, -1, ef, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.o), 4), 19), e.b, null, "eAllAttributes", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 5), 19), e.W, null, "eAllReferences", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 6), 19), e.W, null, "eReferences", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 7), 19), e.b, null, "eAttributes", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 8), 19), e.W, null, "eAllContainments", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 9), 19), e.T, null, "eAllOperations", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 10), 19), e.bb, null, "eAllStructuralFeatures", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 11), 19), e.o, null, "eAllSuperTypes", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.o), 12), 19), e.b, null, "eIDAttribute", 0, 1, ef, !0, !0, !1, !1, !1, !1, !0), Ut(u(F(ee(e.o), 13), 19), e.bb, u(F(ee(e.bb), 7), 19), "eStructuralFeatures", 0, -1, ef, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.o), 14), 19), e.H, null, "eGenericSuperTypes", 0, -1, ef, !1, !1, !0, !0, !1, !0, !1), Ut(u(F(ee(e.o), 15), 19), e.H, null, "eAllGenericSuperTypes", 0, -1, ef, !0, !0, !1, !1, !0, !1, !0), f = Jr(u(F(St(e.o), 0), 62), e.e, "isSuperTypeOf"), Kr(f, e.o, "someClass"), Jr(u(F(St(e.o), 1), 62), e.I, "getFeatureCount"), f = Jr(u(F(St(e.o), 2), 62), e.bb, YVe), Kr(f, e.I, "featureID"), f = Jr(u(F(St(e.o), 3), 62), e.I, ZVe), Kr(f, e.bb, sk), f = Jr(u(F(St(e.o), 4), 62), e.bb, YVe), Kr(f, e._, "featureName"), Jr(u(F(St(e.o), 5), 62), e.I, "getOperationCount"), f = Jr(u(F(St(e.o), 6), 62), e.T, "getEOperation"), Kr(f, e.I, "operationID"), f = Jr(u(F(St(e.o), 7), 62), e.I, eQe), Kr(f, e.T, Hue), f = Jr(u(F(St(e.o), 8), 62), e.T, "getOverride"), Kr(f, e.T, Hue), f = Jr(u(F(St(e.o), 9), 62), e.H, "getFeatureType"), Kr(f, e.bb, sk), jc(e.p, nh, JVe, !0, !1, !0), di(u(F(ee(e.p), 0), 38), e._, "instanceClassName", null, 0, 1, nh, !1, !0, !0, !0, !0, !1), n = ql(e.L), t = wQ(), Dn((!n.d && (n.d = new $i(Rr, n, 1)), n.d), t), HGe(u(F(ee(e.p), 1), 38), n, "instanceClass", nh, !0, !0, !1, !0), di(u(F(ee(e.p), 2), 38), e.M, nQe, null, 0, 1, nh, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.p), 3), 38), e._, "instanceTypeName", null, 0, 1, nh, !1, !0, !0, !0, !0, !1), Ut(u(F(ee(e.p), 4), 19), e.U, u(F(ee(e.U), 3), 19), "ePackage", 0, 1, nh, !0, !1, !1, !1, !0, !1, !1), Ut(u(F(ee(e.p), 5), 19), e.db, null, tQe, 0, -1, nh, !1, !1, !0, !0, !0, !1, !1), f = Jr(u(F(St(e.p), 0), 62), e.e, iQe), Kr(f, e.M, ij), Jr(u(F(St(e.p), 1), 62), e.I, "getClassifierID"), jc(e.q, AU, "EDataType", !1, !1, !0), di(u(F(ee(e.q), 0), 38), e.e, "serializable", I5, 0, 1, AU, !1, !1, !0, !1, !0, !1), jc(e.v, hP, "EEnum", !1, !1, !0), Ut(u(F(ee(e.v), 0), 19), e.w, u(F(ee(e.w), 3), 19), "eLiterals", 0, -1, hP, !1, !1, !0, !0, !1, !1, !1), f = Jr(u(F(St(e.v), 0), 62), e.w, rQe), Kr(f, e._, gt), f = Jr(u(F(St(e.v), 1), 62), e.w, rQe), Kr(f, e.I, Z9), f = Jr(u(F(St(e.v), 2), 62), e.w, "getEEnumLiteralByLiteral"), Kr(f, e._, "literal"), jc(e.w, wa, GVe, !1, !1, !0), di(u(F(ee(e.w), 0), 38), e.I, Z9, null, 0, 1, wa, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.w), 1), 38), e.A, "instance", null, 0, 1, wa, !0, !1, !0, !1, !0, !1), di(u(F(ee(e.w), 2), 38), e._, "literal", null, 0, 1, wa, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.w), 3), 19), e.v, u(F(ee(e.v), 0), 19), "eEnum", 0, 1, wa, !0, !1, !1, !1, !1, !1, !1), jc(e.B, y8, "EFactory", !1, !1, !0), Ut(u(F(ee(e.B), 0), 19), e.U, u(F(ee(e.U), 2), 19), "ePackage", 1, 1, y8, !0, !1, !0, !1, !1, !1, !1), f = Jr(u(F(St(e.B), 0), 62), e.S, "create"), Kr(f, e.o, "eClass"), f = Jr(u(F(St(e.B), 1), 62), e.M, "createFromString"), Kr(f, e.q, "eDataType"), Kr(f, e._, "literalValue"), f = Jr(u(F(St(e.B), 2), 62), e._, "convertToString"), Kr(f, e.q, "eDataType"), Kr(f, e.M, "instanceValue"), jc(e.Q, zE, JKe, !0, !1, !0), Ut(u(F(ee(e.Q), 0), 19), e.a, u(F(ee(e.a), 2), 19), "eAnnotations", 0, -1, zE, !1, !1, !0, !0, !1, !1, !1), f = Jr(u(F(St(e.Q), 0), 62), e.a, "getEAnnotation"), Kr(f, e._, rJ), jc(e.R, mU, GKe, !0, !1, !0), di(u(F(ee(e.R), 0), 38), e._, gt, null, 0, 1, mU, !1, !1, !0, !1, !0, !1), jc(e.S, bd, "EObject", !1, !1, !0), Jr(u(F(St(e.S), 0), 62), e.o, "eClass"), Jr(u(F(St(e.S), 1), 62), e.e, "eIsProxy"), Jr(u(F(St(e.S), 2), 62), e.X, "eResource"), Jr(u(F(St(e.S), 3), 62), e.S, "eContainer"), Jr(u(F(St(e.S), 4), 62), e.bb, "eContainingFeature"), Jr(u(F(St(e.S), 5), 62), e.W, "eContainmentFeature"), f = Jr(u(F(St(e.S), 6), 62), null, "eContents"), n = ql(e.fb), t = ql(e.S), Dn((!n.d && (n.d = new $i(Rr, n, 1)), n.d), t), r = bh(f, n, null), r && r.mj(), f = Jr(u(F(St(e.S), 7), 62), null, "eAllContents"), n = ql(e.cb), t = ql(e.S), Dn((!n.d && (n.d = new $i(Rr, n, 1)), n.d), t), c = bh(f, n, null), c && c.mj(), f = Jr(u(F(St(e.S), 8), 62), null, "eCrossReferences"), n = ql(e.fb), t = ql(e.S), Dn((!n.d && (n.d = new $i(Rr, n, 1)), n.d), t), s = bh(f, n, null), s && s.mj(), f = Jr(u(F(St(e.S), 9), 62), e.M, "eGet"), Kr(f, e.bb, sk), f = Jr(u(F(St(e.S), 10), 62), e.M, "eGet"), Kr(f, e.bb, sk), Kr(f, e.e, "resolve"), f = Jr(u(F(St(e.S), 11), 62), null, "eSet"), Kr(f, e.bb, sk), Kr(f, e.M, "newValue"), f = Jr(u(F(St(e.S), 12), 62), e.e, "eIsSet"), Kr(f, e.bb, sk), f = Jr(u(F(St(e.S), 13), 62), null, "eUnset"), Kr(f, e.bb, sk), f = Jr(u(F(St(e.S), 14), 62), e.M, "eInvoke"), Kr(f, e.T, Hue), n = ql(e.fb), t = wQ(), Dn((!n.d && (n.d = new $i(Rr, n, 1)), n.d), t), tT(f, n, "arguments"), h2n(f, e.K), jc(e.T, nf, qVe, !1, !1, !0), Ut(u(F(ee(e.T), 0), 19), e.o, u(F(ee(e.o), 3), 19), cQe, 0, 1, nf, !0, !1, !1, !1, !1, !1, !1), Ut(u(F(ee(e.T), 1), 19), e.db, null, tQe, 0, -1, nf, !1, !1, !0, !0, !0, !1, !1), Ut(u(F(ee(e.T), 2), 19), e.V, u(F(ee(e.V), 0), 19), "eParameters", 0, -1, nf, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.T), 3), 19), e.p, null, "eExceptions", 0, -1, nf, !1, !1, !0, !1, !0, !0, !1), Ut(u(F(ee(e.T), 4), 19), e.H, null, "eGenericExceptions", 0, -1, nf, !1, !1, !0, !0, !1, !0, !1), Jr(u(F(St(e.T), 0), 62), e.I, eQe), f = Jr(u(F(St(e.T), 1), 62), e.e, "isOverrideOf"), Kr(f, e.T, "someOperation"), jc(e.U, eh, "EPackage", !1, !1, !0), di(u(F(ee(e.U), 0), 38), e._, "nsURI", null, 0, 1, eh, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.U), 1), 38), e._, "nsPrefix", null, 0, 1, eh, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.U), 2), 19), e.B, u(F(ee(e.B), 0), 19), "eFactoryInstance", 1, 1, eh, !0, !1, !0, !1, !1, !1, !1), Ut(u(F(ee(e.U), 3), 19), e.p, u(F(ee(e.p), 4), 19), "eClassifiers", 0, -1, eh, !1, !1, !0, !0, !0, !1, !1), Ut(u(F(ee(e.U), 4), 19), e.U, u(F(ee(e.U), 5), 19), "eSubpackages", 0, -1, eh, !1, !1, !0, !0, !0, !1, !1), Ut(u(F(ee(e.U), 5), 19), e.U, u(F(ee(e.U), 4), 19), "eSuperPackage", 0, 1, eh, !0, !1, !1, !1, !0, !1, !1), f = Jr(u(F(St(e.U), 0), 62), e.p, "getEClassifier"), Kr(f, e._, gt), jc(e.V, Rb, UVe, !1, !1, !0), Ut(u(F(ee(e.V), 0), 19), e.T, u(F(ee(e.T), 2), 19), "eOperation", 0, 1, Rb, !0, !1, !1, !1, !1, !1, !1), jc(e.W, Dg, zVe, !1, !1, !0), di(u(F(ee(e.W), 0), 38), e.e, "containment", null, 0, 1, Dg, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.W), 1), 38), e.e, "container", null, 0, 1, Dg, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.W), 2), 38), e.e, "resolveProxies", I5, 0, 1, Dg, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.W), 3), 19), e.W, null, "eOpposite", 0, 1, Dg, !1, !1, !0, !1, !0, !1, !1), Ut(u(F(ee(e.W), 4), 19), e.o, null, "eReferenceType", 1, 1, Dg, !0, !0, !1, !1, !0, !1, !0), Ut(u(F(ee(e.W), 5), 19), e.b, null, "eKeys", 0, -1, Dg, !1, !1, !0, !1, !0, !1, !1), jc(e.bb, Uu, _Ve, !0, !1, !0), di(u(F(ee(e.bb), 0), 38), e.e, "changeable", I5, 0, 1, Uu, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.bb), 1), 38), e.e, "volatile", null, 0, 1, Uu, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.bb), 2), 38), e.e, "transient", null, 0, 1, Uu, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.bb), 3), 38), e._, "defaultValueLiteral", null, 0, 1, Uu, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.bb), 4), 38), e.M, nQe, null, 0, 1, Uu, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.bb), 5), 38), e.e, "unsettable", null, 0, 1, Uu, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.bb), 6), 38), e.e, "derived", null, 0, 1, Uu, !1, !1, !0, !1, !0, !1), Ut(u(F(ee(e.bb), 7), 19), e.o, u(F(ee(e.o), 13), 19), cQe, 0, 1, Uu, !0, !1, !1, !1, !1, !1, !1), Jr(u(F(St(e.bb), 0), 62), e.I, ZVe), f = Jr(u(F(St(e.bb), 1), 62), null, "getContainerClass"), n = ql(e.L), t = wQ(), Dn((!n.d && (n.d = new $i(Rr, n, 1)), n.d), t), i = bh(f, n, null), i && i.mj(), jc(e.eb, Og, RVe, !0, !1, !0), di(u(F(ee(e.eb), 0), 38), e.e, "ordered", I5, 0, 1, Og, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.eb), 1), 38), e.e, "unique", I5, 0, 1, Og, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.eb), 2), 38), e.I, "lowerBound", null, 0, 1, Og, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.eb), 3), 38), e.I, "upperBound", "1", 0, 1, Og, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.eb), 4), 38), e.e, "many", null, 0, 1, Og, !0, !0, !1, !1, !0, !0), di(u(F(ee(e.eb), 5), 38), e.e, "required", null, 0, 1, Og, !0, !0, !1, !1, !0, !0), Ut(u(F(ee(e.eb), 6), 19), e.p, null, "eType", 0, 1, Og, !1, !0, !0, !1, !0, !0, !1), Ut(u(F(ee(e.eb), 7), 19), e.H, null, "eGenericType", 0, 1, Og, !1, !0, !0, !0, !1, !0, !1), jc(e.ab, s0, "EStringToStringMapEntry", !1, !1, !1), di(u(F(ee(e.ab), 0), 38), e._, "key", null, 0, 1, s0, !1, !1, !0, !1, !0, !1), di(u(F(ee(e.ab), 1), 38), e._, Z9, null, 0, 1, s0, !1, !1, !0, !1, !0, !1), jc(e.H, Rr, HVe, !1, !1, !0), Ut(u(F(ee(e.H), 0), 19), e.H, null, "eUpperBound", 0, 1, Rr, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.H), 1), 19), e.H, null, "eTypeArguments", 0, -1, Rr, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.H), 2), 19), e.p, null, "eRawType", 1, 1, Rr, !0, !1, !1, !1, !0, !1, !0), Ut(u(F(ee(e.H), 3), 19), e.H, null, "eLowerBound", 0, 1, Rr, !1, !1, !0, !0, !1, !1, !1), Ut(u(F(ee(e.H), 4), 19), e.db, null, "eTypeParameter", 0, 1, Rr, !1, !1, !0, !1, !1, !1, !1), Ut(u(F(ee(e.H), 5), 19), e.p, null, "eClassifier", 0, 1, Rr, !1, !1, !0, !1, !0, !1, !1), f = Jr(u(F(St(e.H), 0), 62), e.e, iQe), Kr(f, e.M, ij), jc(e.db, Iu, WVe, !1, !1, !0), Ut(u(F(ee(e.db), 0), 19), e.H, null, "eBounds", 0, -1, Iu, !1, !1, !0, !0, !1, !1, !1), bt(e.c, qJ, "EBigDecimal", !0), bt(e.d, z2, "EBigInteger", !0), bt(e.e, zu, "EBoolean", !0), bt(e.f, ui, "EBooleanObject", !0), bt(e.i, us, "EByte", !0), bt(e.g, S(us, 1), "EByteArray", !0), bt(e.j, X3, "EByteObject", !0), bt(e.k, Oo, "EChar", !0), bt(e.n, hk, "ECharacterObject", !0), bt(e.r, VS, "EDate", !0), bt(e.s, obe, "EDiagnosticChain", !1), bt(e.t, Xi, "EDouble", !0), bt(e.u, Ei, "EDoubleObject", !0), bt(e.fb, E0e, "EEList", !1), bt(e.A, $0e, "EEnumerator", !1), bt(e.C, K0e, "EFeatureMap", !1), bt(e.D, lP, "EFeatureMapEntry", !1), bt(e.F, _g, "EFloat", !0), bt(e.G, J5, "EFloatObject", !0), bt(e.I, Wn, "EInt", !0), bt(e.J, Ii, "EIntegerObject", !0), bt(e.L, ese, "EJavaClass", !0), bt(e.M, Li, "EJavaObject", !0), bt(e.N, Gb, "ELong", !0), bt(e.O, Ab, "ELongObject", !0), bt(e.P, nse, "EMap", !1), bt(e.X, U0e, "EResource", !1), bt(e.Y, fbe, "EResourceSet", !1), bt(e.Z, Ap, "EShort", !0), bt(e.$, xb, "EShortObject", !0), bt(e._, ye, "EString", !0), bt(e.cb, x0e, "ETreeIterator", !1), bt(e.K, hbe, "EInvocationTargetException", !1), mZ(e, Wo)); } - var ij = "object", D3 = "boolean", vie = "number", KR = "string", VR = "function", pt = 2147483647, xc = "java.lang", rj = { 3: 1 }, cj = "com.google.common.base", mu = ", ", eWe = "%s (%s) must not be negative", Ve = { 3: 1, 4: 1, 5: 1 }, nWe = "negative size: ", kie = "no calls to next() since the last call to remove()", tWe = "Optional.of(", Bu = "null", o5 = { 204: 1, 50: 1 }, Be = "com.google.common.collect", f5 = { 204: 1, 50: 1, 128: 1 }, Yd = { 229: 1, 3: 1 }, Wi = { 50: 1 }, In = "java.util", bb = { 92: 1 }, zw = { 20: 1, 31: 1, 18: 1 }, ph = 2025, is = { 20: 1, 31: 1, 18: 1, 22: 1 }, yie = { 92: 1, 138: 1, 134: 1 }, iWe = { 20: 1, 31: 1, 18: 1, 22: 1, 83: 1 }, jie = { 20: 1, 31: 1, 18: 1, 277: 1, 22: 1, 83: 1 }, pl = { 50: 1, 128: 1 }, QR = { 358: 1, 45: 1 }, rWe = "AbstractMapEntry", q1 = 2048, cWe = "expectedValuesPerKey", oe = { 3: 1, 6: 1, 4: 1, 5: 1 }, Wh = 16384, to = { 162: 1 }, mn = { 41: 1 }, uj = { 202: 1 }, sj = { l: 4194303, m: 4194303, h: 524287 }, YR = { 254: 1, 3: 1, 35: 1 }, uWe = "range unbounded on this side", ml = { 20: 1 }, sWe = { 20: 1, 18: 1 }, Eie = { 3: 1, 20: 1, 31: 1, 18: 1 }, h5 = { 311: 1, 3: 1, 20: 1, 31: 1, 18: 1, 16: 1, 59: 1 }, JT = { 3: 1, 4: 1, 5: 1, 175: 1 }, l5 = { 3: 1, 92: 1 }, ZR = { 20: 1, 18: 1, 22: 1 }, N3 = { 3: 1, 20: 1, 31: 1, 18: 1, 22: 1 }, oWe = { 20: 1, 18: 1, 22: 1, 83: 1 }, vl = 461845907, kl = -862048943, oj = { 3: 1, 6: 1, 4: 1, 5: 1, 175: 1 }, fWe = "expectedSize", za = 1e3, C9 = 1073741824, Ww = "initialArraySize", ce = { 3: 1, 6: 1, 4: 1, 10: 1, 5: 1 }, a5 = { 20: 1, 31: 1, 56: 1, 18: 1, 16: 1 }, eB = "arraySize", hWe = { 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1 }, Vn = { 48: 1 }, GT = { 375: 1 }, U1 = 1e-4, Yi = -2147483648, lWe = "__noinit__", ra = { 3: 1, 101: 1, 63: 1, 80: 1 }, fj = "com.google.gwt.core.client.impl", Aie = "String", xie = "com.google.gwt.core.client", nB = "anonymous", tB = "fnStack", $ie = "Unknown", Xh = { 201: 1, 3: 1, 4: 1 }, Ti = 65535, iB = "January", rB = "February", cB = "March", uB = "April", F3 = "May", sB = "June", oB = "July", fB = "August", hB = "September", lB = "October", aB = "November", dB = "December", z1 = 1900, lt = { 54: 1, 3: 1, 4: 1 }, aWe = "Before Christ", dWe = "Anno Domini", bB = "Sunday", wB = "Monday", gB = "Tuesday", pB = "Wednesday", mB = "Thursday", vB = "Friday", kB = "Saturday", Mie = "com.google.gwt.i18n.shared", bWe = "DateTimeFormat", yB = "com.google.gwt.i18n.client", wWe = "DefaultDateTimeFormatInfo", gWe = { 3: 1, 4: 1, 35: 1, 205: 1 }, R3 = "com.google.gwt.json.client", Ts = 4194303, ca = 1048575, hj = 524288, B3 = 4194304, Zd = 17592186044416, HT = 1e9, lj = -17592186044416, Tie = "java.io", qT = { 3: 1, 101: 1, 99: 1, 63: 1, 80: 1 }, pWe = { 3: 1, 297: 1, 80: 1 }, wb = 'For input string: "', ii = 1 / 0, Ri = -1 / 0, Xw = 4096, mWe = { 3: 1, 4: 1, 584: 1 }, nn = "org.eclipse.elk.layered", xr = 65536, aj = 55296, Gr = { 108: 1, 3: 1, 4: 1 }, jB = 1e5, vWe = 0.3010299956639812, Or = 4294967295, d5 = "0.0", EB = { 45: 1 }, b5 = "Unable to add element to queue", kWe = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 13: 1, 18: 1, 16: 1, 59: 1 }, yWe = { 3: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1 }, jWe = { 20: 1, 18: 1, 16: 1 }, AB = { 3: 1, 51: 1 }, dj = { 189: 1 }, N2 = { 3: 1, 4: 1, 92: 1 }, Sie = { 3: 1, 4: 1, 20: 1, 31: 1, 18: 1, 47: 1, 22: 1 }, xB = "delete", P9 = 14901161193847656e-24, O9 = 11102230246251565e-32, $B = 15525485, bj = 5960464477539063e-23, Iie = 16777216, UT = 16777215, Cie = ", length: ", EWe = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1 }, Pie = "subMap: ", AWe = " less than ", MB = { 3: 1, 35: 1, 23: 1, 309: 1 }, TB = "java.util.function", L9 = "java.util.logging", xWe = { 3: 1, 4: 1, 5: 1, 840: 1 }, SB = "undefined", Lr = "java.util.stream", Oie = { 520: 1, 677: 1 }, zT = "fromIndex: ", $We = " > toIndex: ", Lie = ", toIndex: ", Die = "Index: ", Nie = ", Size: ", w5 = "org.eclipse.elk.alg.common", ct = { 51: 1 }, MWe = "org.eclipse.elk.alg.common.compaction", TWe = "Scanline/EventHandler", yl = "org.eclipse.elk.alg.common.compaction.oned", SWe = "CNode belongs to another CGroup.", IWe = "ISpacingsHandler/1", IB = "The ", CB = " instance has been finished already.", CWe = "The direction ", PWe = " is not supported by the CGraph instance.", OWe = "OneDimensionalCompactor", LWe = "OneDimensionalCompactor/lambda$0$Type", DWe = "Quadruplet", NWe = "ScanlineConstraintCalculator", FWe = "ScanlineConstraintCalculator/ConstraintsScanlineHandler", RWe = "ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type", BWe = "ScanlineConstraintCalculator/Timestamp", _We = "ScanlineConstraintCalculator/lambda$0$Type", Kh = { 178: 1, 48: 1 }, D9 = "org.eclipse.elk.alg.common.networksimplex", zf = { 171: 1, 3: 1, 4: 1 }, JWe = "org.eclipse.elk.alg.common.nodespacing", e0 = "org.eclipse.elk.alg.common.nodespacing.cellsystem", g5 = "CENTER", GWe = { 216: 1, 337: 1 }, Fie = { 3: 1, 4: 1, 5: 1, 592: 1 }, _3 = "LEFT", J3 = "RIGHT", Rie = "Vertical alignment cannot be null", Bie = "BOTTOM", WT = "org.eclipse.elk.alg.common.nodespacing.internal", N9 = "UNDEFINED", mh = 0.01, wj = "org.eclipse.elk.alg.common.nodespacing.internal.algorithm", HWe = "LabelPlacer/lambda$0$Type", qWe = "LabelPlacer/lambda$1$Type", UWe = "portRatioOrPosition", p5 = "org.eclipse.elk.alg.common.overlaps", PB = "DOWN", G3 = "org.eclipse.elk.alg.common.spore", Kw = { 3: 1, 4: 1, 5: 1, 198: 1 }, zWe = { 3: 1, 6: 1, 4: 1, 5: 1, 90: 1, 110: 1 }, OB = "org.eclipse.elk.alg.force", _ie = "ComponentsProcessor", WWe = "ComponentsProcessor/1", Jie = "ElkGraphImporter/lambda$0$Type", gb = { 214: 1 }, F2 = "org.eclipse.elk.core", gj = "org.eclipse.elk.graph.properties", XWe = "IPropertyHolder", pj = "org.eclipse.elk.alg.force.graph", KWe = "Component Layout", Gie = "org.eclipse.elk.alg.force.model", gc = "org.eclipse.elk.core.data", XT = "org.eclipse.elk.force.model", Hie = "org.eclipse.elk.force.iterations", qie = "org.eclipse.elk.force.repulsivePower", LB = "org.eclipse.elk.force.temperature", Vh = 1e-3, DB = "org.eclipse.elk.force.repulsion", vh = { 148: 1 }, F9 = "org.eclipse.elk.alg.force.options", m5 = 1.600000023841858, $u = "org.eclipse.elk.force", mj = "org.eclipse.elk.priority", Vw = "org.eclipse.elk.spacing.nodeNode", NB = "org.eclipse.elk.spacing.edgeLabel", v5 = "org.eclipse.elk.aspectRatio", KT = "org.eclipse.elk.randomSeed", R9 = "org.eclipse.elk.separateConnectedComponents", Qw = "org.eclipse.elk.padding", B9 = "org.eclipse.elk.interactive", FB = "org.eclipse.elk.portConstraints", VT = "org.eclipse.elk.edgeLabels.inline", _9 = "org.eclipse.elk.omitNodeMicroLayout", k5 = "org.eclipse.elk.nodeSize.fixedGraphSize", H3 = "org.eclipse.elk.nodeSize.options", R2 = "org.eclipse.elk.nodeSize.constraints", y5 = "org.eclipse.elk.nodeLabels.placement", j5 = "org.eclipse.elk.portLabels.placement", vj = "org.eclipse.elk.topdownLayout", kj = "org.eclipse.elk.topdown.scaleFactor", yj = "org.eclipse.elk.topdown.hierarchicalNodeWidth", jj = "org.eclipse.elk.topdown.hierarchicalNodeAspectRatio", pb = "org.eclipse.elk.topdown.nodeType", Uie = "origin", VWe = "random", QWe = "boundingBox.upLeft", YWe = "boundingBox.lowRight", zie = "org.eclipse.elk.stress.fixed", Wie = "org.eclipse.elk.stress.desiredEdgeLength", Xie = "org.eclipse.elk.stress.dimension", Kie = "org.eclipse.elk.stress.epsilon", Vie = "org.eclipse.elk.stress.iterationLimit", W1 = "org.eclipse.elk.stress", ZWe = "ELK Stress", q3 = "org.eclipse.elk.nodeSize.minimum", QT = "org.eclipse.elk.alg.force.stress", eXe = "Layered layout", U3 = "org.eclipse.elk.alg.layered", Ej = "org.eclipse.elk.alg.layered.compaction.components", J9 = "org.eclipse.elk.alg.layered.compaction.oned", YT = "org.eclipse.elk.alg.layered.compaction.oned.algs", n0 = "org.eclipse.elk.alg.layered.compaction.recthull", kh = "org.eclipse.elk.alg.layered.components", Wf = "NONE", RB = "MODEL_ORDER", Bc = { 3: 1, 6: 1, 4: 1, 10: 1, 5: 1, 126: 1 }, nXe = { 3: 1, 6: 1, 4: 1, 5: 1, 135: 1, 90: 1, 110: 1 }, ZT = "org.eclipse.elk.alg.layered.compound", Ft = { 43: 1 }, Wc = "org.eclipse.elk.alg.layered.graph", BB = " -> ", tXe = "Not supported by LGraph", Qie = "Port side is undefined", E5 = { 3: 1, 6: 1, 4: 1, 5: 1, 323: 1, 135: 1, 90: 1, 110: 1 }, Wa = { 3: 1, 6: 1, 4: 1, 5: 1, 135: 1, 199: 1, 209: 1, 90: 1, 110: 1 }, iXe = { 3: 1, 6: 1, 4: 1, 5: 1, 135: 1, 2004: 1, 209: 1, 90: 1, 110: 1 }, rXe = `([{"' \r -`, cXe = `)]}"' \r -`, uXe = "The given string contains parts that cannot be parsed as numbers.", Aj = "org.eclipse.elk.core.math", sXe = { 3: 1, 4: 1, 140: 1, 213: 1, 414: 1 }, oXe = { 3: 1, 4: 1, 104: 1, 213: 1, 414: 1 }, Xa = "org.eclipse.elk.alg.layered.graph.transform", fXe = "ElkGraphImporter", hXe = "ElkGraphImporter/lambda$1$Type", lXe = "ElkGraphImporter/lambda$2$Type", aXe = "ElkGraphImporter/lambda$4$Type", wn = "org.eclipse.elk.alg.layered.intermediate", dXe = "Node margin calculation", bXe = "ONE_SIDED_GREEDY_SWITCH", wXe = "TWO_SIDED_GREEDY_SWITCH", _B = "No implementation is available for the layout processor ", JB = "IntermediateProcessorStrategy", GB = "Node '", gXe = "FIRST_SEPARATE", pXe = "LAST_SEPARATE", mXe = "Odd port side processing", pi = "org.eclipse.elk.alg.layered.intermediate.compaction", G9 = "org.eclipse.elk.alg.layered.intermediate.greedyswitch", jl = "org.eclipse.elk.alg.layered.p3order.counting", H9 = { 220: 1 }, z3 = "org.eclipse.elk.alg.layered.intermediate.loops", io = "org.eclipse.elk.alg.layered.intermediate.loops.ordering", X1 = "org.eclipse.elk.alg.layered.intermediate.loops.routing", eS = "org.eclipse.elk.alg.layered.intermediate.preserveorder", Qh = "org.eclipse.elk.alg.layered.intermediate.wrapping", $c = "org.eclipse.elk.alg.layered.options", HB = "INTERACTIVE", Yie = "GREEDY", vXe = "DEPTH_FIRST", kXe = "EDGE_LENGTH", yXe = "SELF_LOOPS", jXe = "firstTryWithInitialOrder", Zie = "org.eclipse.elk.layered.directionCongruency", ere = "org.eclipse.elk.layered.feedbackEdges", nS = "org.eclipse.elk.layered.interactiveReferencePoint", nre = "org.eclipse.elk.layered.mergeEdges", tre = "org.eclipse.elk.layered.mergeHierarchyEdges", ire = "org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides", rre = "org.eclipse.elk.layered.portSortingStrategy", cre = "org.eclipse.elk.layered.thoroughness", ure = "org.eclipse.elk.layered.unnecessaryBendpoints", sre = "org.eclipse.elk.layered.generatePositionAndLayerIds", xj = "org.eclipse.elk.layered.cycleBreaking.strategy", $j = "org.eclipse.elk.layered.layering.strategy", ore = "org.eclipse.elk.layered.layering.layerConstraint", fre = "org.eclipse.elk.layered.layering.layerChoiceConstraint", hre = "org.eclipse.elk.layered.layering.layerId", qB = "org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth", UB = "org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor", zB = "org.eclipse.elk.layered.layering.nodePromotion.strategy", WB = "org.eclipse.elk.layered.layering.nodePromotion.maxIterations", XB = "org.eclipse.elk.layered.layering.coffmanGraham.layerBound", q9 = "org.eclipse.elk.layered.crossingMinimization.strategy", lre = "org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder", KB = "org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness", VB = "org.eclipse.elk.layered.crossingMinimization.semiInteractive", are = "org.eclipse.elk.layered.crossingMinimization.inLayerPredOf", dre = "org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf", bre = "org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint", wre = "org.eclipse.elk.layered.crossingMinimization.positionId", gre = "org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold", QB = "org.eclipse.elk.layered.crossingMinimization.greedySwitch.type", tS = "org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type", B2 = "org.eclipse.elk.layered.nodePlacement.strategy", iS = "org.eclipse.elk.layered.nodePlacement.favorStraightEdges", YB = "org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening", ZB = "org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment", e_ = "org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening", n_ = "org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility", t_ = "org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default", pre = "org.eclipse.elk.layered.edgeRouting.selfLoopDistribution", mre = "org.eclipse.elk.layered.edgeRouting.selfLoopOrdering", rS = "org.eclipse.elk.layered.edgeRouting.splines.mode", cS = "org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor", i_ = "org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth", vre = "org.eclipse.elk.layered.spacing.baseValue", kre = "org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers", yre = "org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers", jre = "org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers", Ere = "org.eclipse.elk.layered.priority.direction", Are = "org.eclipse.elk.layered.priority.shortness", xre = "org.eclipse.elk.layered.priority.straightness", r_ = "org.eclipse.elk.layered.compaction.connectedComponents", $re = "org.eclipse.elk.layered.compaction.postCompaction.strategy", Mre = "org.eclipse.elk.layered.compaction.postCompaction.constraints", uS = "org.eclipse.elk.layered.highDegreeNodes.treatment", c_ = "org.eclipse.elk.layered.highDegreeNodes.threshold", u_ = "org.eclipse.elk.layered.highDegreeNodes.treeHeight", ua = "org.eclipse.elk.layered.wrapping.strategy", sS = "org.eclipse.elk.layered.wrapping.additionalEdgeSpacing", oS = "org.eclipse.elk.layered.wrapping.correctionFactor", U9 = "org.eclipse.elk.layered.wrapping.cutting.strategy", s_ = "org.eclipse.elk.layered.wrapping.cutting.cuts", o_ = "org.eclipse.elk.layered.wrapping.cutting.msd.freedom", fS = "org.eclipse.elk.layered.wrapping.validify.strategy", hS = "org.eclipse.elk.layered.wrapping.validify.forbiddenIndices", lS = "org.eclipse.elk.layered.wrapping.multiEdge.improveCuts", aS = "org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty", f_ = "org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges", h_ = "org.eclipse.elk.layered.layerUnzipping.strategy", l_ = "org.eclipse.elk.layered.layerUnzipping.minimizeEdgeLength", a_ = "org.eclipse.elk.layered.layerUnzipping.layerSplit", d_ = "org.eclipse.elk.layered.layerUnzipping.resetOnLongEdges", Tre = "org.eclipse.elk.layered.edgeLabels.sideSelection", Sre = "org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy", dS = "org.eclipse.elk.layered.considerModelOrder.strategy", Ire = "org.eclipse.elk.layered.considerModelOrder.portModelOrder", Mj = "org.eclipse.elk.layered.considerModelOrder.noModelOrder", b_ = "org.eclipse.elk.layered.considerModelOrder.components", Cre = "org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy", w_ = "org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence", g_ = "org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence", p_ = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cycleBreakingId", m_ = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.crossingMinimizationId", v_ = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.componentGroupId", Pre = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbGroupOrderStrategy", k_ = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredSourceId", y_ = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredTargetId", Ore = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmGroupOrderStrategy", Lre = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmEnforcedGroupOrders", j_ = "layering", EXe = "layering.minWidth", AXe = "layering.nodePromotion", A5 = "crossingMinimization", bS = "org.eclipse.elk.hierarchyHandling", xXe = "crossingMinimization.greedySwitch", $Xe = "nodePlacement", MXe = "nodePlacement.bk", TXe = "edgeRouting", Tj = "org.eclipse.elk.edgeRouting", yh = "spacing", Dre = "priority", Nre = "compaction", SXe = "compaction.postCompaction", IXe = "Specifies whether and how post-process compaction is applied.", Fre = "highDegreeNodes", Rre = "wrapping", CXe = "wrapping.cutting", PXe = "wrapping.validify", Bre = "wrapping.multiEdge", E_ = "layerUnzipping", A_ = "edgeLabels", z9 = "considerModelOrder", x5 = "considerModelOrder.groupModelOrder", _re = "Group ID of the Node Type", Jre = "org.eclipse.elk.spacing.commentComment", Gre = "org.eclipse.elk.spacing.commentNode", Hre = "org.eclipse.elk.spacing.componentComponent", qre = "org.eclipse.elk.spacing.edgeEdge", x_ = "org.eclipse.elk.spacing.edgeNode", Ure = "org.eclipse.elk.spacing.labelLabel", zre = "org.eclipse.elk.spacing.labelPortHorizontal", Wre = "org.eclipse.elk.spacing.labelPortVertical", Xre = "org.eclipse.elk.spacing.labelNode", Kre = "org.eclipse.elk.spacing.nodeSelfLoop", Vre = "org.eclipse.elk.spacing.portPort", Qre = "org.eclipse.elk.spacing.individual", Yre = "org.eclipse.elk.port.borderOffset", Zre = "org.eclipse.elk.noLayout", ece = "org.eclipse.elk.port.side", Sj = "org.eclipse.elk.debugMode", nce = "org.eclipse.elk.alignment", tce = "org.eclipse.elk.insideSelfLoops.activate", ice = "org.eclipse.elk.insideSelfLoops.yo", $_ = "org.eclipse.elk.direction", rce = "org.eclipse.elk.nodeLabels.padding", cce = "org.eclipse.elk.portLabels.nextToPortIfPossible", uce = "org.eclipse.elk.portLabels.treatAsGroup", sce = "org.eclipse.elk.portAlignment.default", oce = "org.eclipse.elk.portAlignment.north", fce = "org.eclipse.elk.portAlignment.south", hce = "org.eclipse.elk.portAlignment.west", lce = "org.eclipse.elk.portAlignment.east", wS = "org.eclipse.elk.contentAlignment", ace = "org.eclipse.elk.junctionPoints", dce = "org.eclipse.elk.edge.thickness", bce = "org.eclipse.elk.edgeLabels.placement", wce = "org.eclipse.elk.port.index", gce = "org.eclipse.elk.commentBox", pce = "org.eclipse.elk.hypernode", mce = "org.eclipse.elk.port.anchor", M_ = "org.eclipse.elk.partitioning.activate", T_ = "org.eclipse.elk.partitioning.partition", gS = "org.eclipse.elk.position", vce = "org.eclipse.elk.margins", kce = "org.eclipse.elk.spacing.portsSurrounding", pS = "org.eclipse.elk.interactiveLayout", Oc = "org.eclipse.elk.core.util", yce = { 3: 1, 4: 1, 5: 1, 590: 1 }, OXe = "NETWORK_SIMPLEX", jce = "SIMPLE", lr = { 95: 1, 43: 1 }, mb = "org.eclipse.elk.alg.layered.p1cycles", LXe = "Depth-first cycle removal", DXe = "Model order cycle breaking", sa = "org.eclipse.elk.alg.layered.p2layers", Ece = { 406: 1, 220: 1 }, NXe = { 830: 1, 3: 1, 4: 1 }, Mu = "org.eclipse.elk.alg.layered.p3order", _2 = 17976931348623157e292, S_ = 5e-324, Dr = "org.eclipse.elk.alg.layered.p4nodes", FXe = { 3: 1, 4: 1, 5: 1, 838: 1 }, Yh = 1e-5, K1 = "org.eclipse.elk.alg.layered.p4nodes.bk", I_ = "org.eclipse.elk.alg.layered.p5edges", Xf = "org.eclipse.elk.alg.layered.p5edges.orthogonal", C_ = "org.eclipse.elk.alg.layered.p5edges.orthogonal.direction", P_ = 1e-6, Yw = "org.eclipse.elk.alg.layered.p5edges.splines", O_ = 0.09999999999999998, mS = 1e-8, RXe = 4.71238898038469, BXe = 1.5707963267948966, Ace = 3.141592653589793, oa = "org.eclipse.elk.alg.mrtree", L_ = 0.10000000149011612, vS = "SUPER_ROOT", W9 = "org.eclipse.elk.alg.mrtree.graph", xce = -17976931348623157e292, uu = "org.eclipse.elk.alg.mrtree.intermediate", _Xe = "Processor compute fanout", kS = { 3: 1, 6: 1, 4: 1, 5: 1, 522: 1, 90: 1, 110: 1 }, JXe = "Set neighbors in level", Ij = "org.eclipse.elk.alg.mrtree.options", GXe = "DESCENDANTS", $ce = "org.eclipse.elk.mrtree.compaction", Mce = "org.eclipse.elk.mrtree.edgeEndTextureLength", Tce = "org.eclipse.elk.mrtree.treeLevel", Sce = "org.eclipse.elk.mrtree.positionConstraint", Ice = "org.eclipse.elk.mrtree.weighting", Cce = "org.eclipse.elk.mrtree.edgeRoutingMode", Pce = "org.eclipse.elk.mrtree.searchOrder", HXe = "Position Constraint", Tu = "org.eclipse.elk.mrtree", qXe = "org.eclipse.elk.tree", UXe = "Processor arrange level", $5 = "org.eclipse.elk.alg.mrtree.p2order", Hs = "org.eclipse.elk.alg.mrtree.p4route", Oce = "org.eclipse.elk.alg.radial", t0 = 6.283185307179586, Lce = "Before", yS = "After", Dce = "org.eclipse.elk.alg.radial.intermediate", zXe = "COMPACTION", D_ = "org.eclipse.elk.alg.radial.intermediate.compaction", WXe = { 3: 1, 4: 1, 5: 1, 90: 1 }, Nce = "org.eclipse.elk.alg.radial.intermediate.optimization", N_ = "No implementation is available for the layout option ", X9 = "org.eclipse.elk.alg.radial.options", XXe = "CompactionStrategy", Fce = "org.eclipse.elk.radial.centerOnRoot", Rce = "org.eclipse.elk.radial.orderId", Bce = "org.eclipse.elk.radial.radius", jS = "org.eclipse.elk.radial.rotate", F_ = "org.eclipse.elk.radial.compactor", R_ = "org.eclipse.elk.radial.compactionStepSize", _ce = "org.eclipse.elk.radial.sorter", Jce = "org.eclipse.elk.radial.wedgeCriteria", Gce = "org.eclipse.elk.radial.optimizationCriteria", B_ = "org.eclipse.elk.radial.rotation.targetAngle", __ = "org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace", Hce = "org.eclipse.elk.radial.rotation.outgoingEdgeAngles", KXe = "Compaction", qce = "rotation", xo = "org.eclipse.elk.radial", VXe = "org.eclipse.elk.alg.radial.p1position.wedge", Uce = "org.eclipse.elk.alg.radial.sorting", QXe = 5.497787143782138, YXe = 3.9269908169872414, ZXe = 2.356194490192345, eKe = "org.eclipse.elk.alg.rectpacking", K9 = "org.eclipse.elk.alg.rectpacking.intermediate", J_ = "org.eclipse.elk.alg.rectpacking.options", zce = "org.eclipse.elk.rectpacking.trybox", Wce = "org.eclipse.elk.rectpacking.currentPosition", Xce = "org.eclipse.elk.rectpacking.desiredPosition", Kce = "org.eclipse.elk.rectpacking.inNewRow", Vce = "org.eclipse.elk.rectpacking.orderBySize", Qce = "org.eclipse.elk.rectpacking.widthApproximation.strategy", Yce = "org.eclipse.elk.rectpacking.widthApproximation.targetWidth", Zce = "org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal", eue = "org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift", nue = "org.eclipse.elk.rectpacking.packing.strategy", tue = "org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation", iue = "org.eclipse.elk.rectpacking.packing.compaction.iterations", rue = "org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy", G_ = "widthApproximation", nKe = "Compaction Strategy", tKe = "packing.compaction", as = "org.eclipse.elk.rectpacking", M5 = "org.eclipse.elk.alg.rectpacking.p1widthapproximation", ES = "org.eclipse.elk.alg.rectpacking.p2packing", iKe = "No Compaction", cue = "org.eclipse.elk.alg.rectpacking.p3whitespaceelimination", Cj = "org.eclipse.elk.alg.rectpacking.util", AS = "No implementation available for ", Zw = "org.eclipse.elk.alg.spore", eg = "org.eclipse.elk.alg.spore.options", vb = "org.eclipse.elk.sporeCompaction", H_ = "org.eclipse.elk.underlyingLayoutAlgorithm", uue = "org.eclipse.elk.processingOrder.treeConstruction", sue = "org.eclipse.elk.processingOrder.spanningTreeCostFunction", q_ = "org.eclipse.elk.processingOrder.preferredRoot", U_ = "org.eclipse.elk.processingOrder.rootSelection", z_ = "org.eclipse.elk.structure.structureExtractionStrategy", oue = "org.eclipse.elk.compaction.compactionStrategy", fue = "org.eclipse.elk.compaction.orthogonal", hue = "org.eclipse.elk.overlapRemoval.maxIterations", lue = "org.eclipse.elk.overlapRemoval.runScanline", W_ = "processingOrder", rKe = "overlapRemoval", T5 = "org.eclipse.elk.sporeOverlap", cKe = "org.eclipse.elk.alg.spore.p1structure", X_ = "org.eclipse.elk.alg.spore.p2processingorder", K_ = "org.eclipse.elk.alg.spore.p3execution", uKe = "Topdown Layout", sKe = "Invalid index: ", S5 = "org.eclipse.elk.core.alg", J2 = { 342: 1 }, ng = { 296: 1 }, oKe = "Make sure its type is registered with the ", aue = " utility class.", I5 = "true", V_ = "false", fKe = "Couldn't clone property '", kb = 0.05, vu = "org.eclipse.elk.core.options", hKe = 1.2999999523162842, yb = "org.eclipse.elk.box", due = "org.eclipse.elk.expandNodes", bue = "org.eclipse.elk.box.packingMode", lKe = "org.eclipse.elk.algorithm", aKe = "org.eclipse.elk.resolvedAlgorithm", wue = "org.eclipse.elk.bendPoints", jLn = "org.eclipse.elk.labelManager", dKe = "org.eclipse.elk.softwrappingFuzziness", bKe = "org.eclipse.elk.scaleFactor", wKe = "org.eclipse.elk.childAreaWidth", gKe = "org.eclipse.elk.childAreaHeight", pKe = "org.eclipse.elk.animate", mKe = "org.eclipse.elk.animTimeFactor", vKe = "org.eclipse.elk.layoutAncestors", kKe = "org.eclipse.elk.maxAnimTime", yKe = "org.eclipse.elk.minAnimTime", jKe = "org.eclipse.elk.progressBar", EKe = "org.eclipse.elk.validateGraph", AKe = "org.eclipse.elk.validateOptions", xKe = "org.eclipse.elk.zoomToFit", $Ke = "org.eclipse.elk.json.shapeCoords", MKe = "org.eclipse.elk.json.edgeCoords", ELn = "org.eclipse.elk.font.name", TKe = "org.eclipse.elk.font.size", Q_ = "org.eclipse.elk.topdown.sizeCategories", gue = "org.eclipse.elk.topdown.sizeCategoriesHierarchicalNodeWeight", Y_ = "org.eclipse.elk.topdown.sizeApproximator", pue = "org.eclipse.elk.topdown.scaleCap", SKe = "org.eclipse.elk.edge.type", IKe = "partitioning", CKe = "nodeLabels", xS = "portAlignment", Z_ = "nodeSize", eJ = "port", mue = "portLabels", C5 = "topdown", PKe = "insideSelfLoops", vue = "INHERIT", P5 = "org.eclipse.elk.fixed", $S = "org.eclipse.elk.random", MS = { 3: 1, 35: 1, 23: 1, 521: 1, 288: 1 }, OKe = "port must have a parent node to calculate the port side", LKe = "The edge needs to have exactly one edge section. Found: ", V9 = "org.eclipse.elk.core.util.adapters", $o = "org.eclipse.emf.ecore", G2 = "org.eclipse.elk.graph", DKe = "EMapPropertyHolder", NKe = "ElkBendPoint", FKe = "ElkGraphElement", RKe = "ElkConnectableShape", kue = "ElkEdge", BKe = "ElkEdgeSection", _Ke = "EModelElement", JKe = "ENamedElement", yue = "ElkLabel", jue = "ElkNode", Eue = "ElkPort", GKe = { 94: 1, 93: 1 }, W3 = "org.eclipse.emf.common.notify.impl", V1 = "The feature '", Q9 = "' is not a valid changeable feature", HKe = "Expecting null", nJ = "' is not a valid feature", qKe = "The feature ID", UKe = " is not a valid feature ID", Lc = 32768, zKe = { 109: 1, 94: 1, 93: 1, 57: 1, 52: 1, 100: 1 }, un = "org.eclipse.emf.ecore.impl", i0 = "org.eclipse.elk.graph.impl", Y9 = "Recursive containment not allowed for ", O5 = "The datatype '", jb = "' is not a valid classifier", tJ = "The value '", H2 = { 195: 1, 3: 1, 4: 1 }, iJ = "The class '", L5 = "http://www.eclipse.org/elk/ElkGraph", Aue = "property", Z9 = "value", rJ = "source", WKe = "properties", XKe = "identifier", cJ = "height", uJ = "width", sJ = "parent", oJ = "text", fJ = "children", KKe = "hierarchical", xue = "sources", hJ = "targets", lJ = "sections", TS = "bendPoints", $ue = "outgoingShape", Mue = "incomingShape", Tue = "outgoingSections", Sue = "incomingSections", Er = "org.eclipse.emf.common.util", Iue = "Severe implementation error in the Json to ElkGraph importer.", Zh = "id", ir = "org.eclipse.elk.graph.json", D5 = "Unhandled parameter types: ", VKe = "startPoint", QKe = "An edge must have at least one source and one target (edge id: '", N5 = "').", YKe = "Referenced edge section does not exist: ", ZKe = " (edge id: '", Cue = "target", eVe = "sourcePoint", nVe = "targetPoint", SS = "group", gt = "name", tVe = "connectableShape cannot be null", iVe = "edge cannot be null", rVe = "Passed edge is not 'simple'.", IS = "org.eclipse.elk.graph.util", Pj = "The 'no duplicates' constraint is violated", aJ = "targetIndex=", r0 = ", size=", dJ = "sourceIndex=", el = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1, 71: 1, 67: 1, 61: 1 }, bJ = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 50: 1, 16: 1, 59: 1, 71: 1, 67: 1, 61: 1, 585: 1 }, CS = "logging", cVe = "measureExecutionTime", uVe = "parser.parse.1", sVe = "parser.parse.2", PS = "parser.next.1", wJ = "parser.next.2", oVe = "parser.next.3", fVe = "parser.next.4", c0 = "parser.factor.1", Pue = "parser.factor.2", hVe = "parser.factor.3", lVe = "parser.factor.4", aVe = "parser.factor.5", dVe = "parser.factor.6", bVe = "parser.atom.1", wVe = "parser.atom.2", gVe = "parser.atom.3", Oue = "parser.atom.4", gJ = "parser.atom.5", Lue = "parser.cc.1", OS = "parser.cc.2", pVe = "parser.cc.3", mVe = "parser.cc.5", Due = "parser.cc.6", Nue = "parser.cc.7", pJ = "parser.cc.8", vVe = "parser.ope.1", kVe = "parser.ope.2", yVe = "parser.ope.3", Ka = "parser.descape.1", jVe = "parser.descape.2", EVe = "parser.descape.3", AVe = "parser.descape.4", xVe = "parser.descape.5", Mo = "parser.process.1", $Ve = "parser.quantifier.1", MVe = "parser.quantifier.2", TVe = "parser.quantifier.3", SVe = "parser.quantifier.4", Fue = "parser.quantifier.5", IVe = "org.eclipse.emf.common.notify", Rue = { 415: 1, 676: 1 }, CVe = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 71: 1, 61: 1 }, Oj = { 373: 1, 151: 1 }, ek = "index=", mJ = { 3: 1, 4: 1, 5: 1, 129: 1 }, PVe = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1, 71: 1, 61: 1 }, Bue = { 3: 1, 6: 1, 4: 1, 5: 1, 198: 1 }, OVe = { 3: 1, 4: 1, 5: 1, 175: 1, 374: 1 }, Ef = 1024, LVe = ";/?:@&=+$,", DVe = "invalid authority: ", NVe = "EAnnotation", FVe = "ETypedElement", RVe = "EStructuralFeature", BVe = "EAttribute", _Ve = "EClassifier", JVe = "EEnumLiteral", GVe = "EGenericType", HVe = "EOperation", qVe = "EParameter", UVe = "EReference", zVe = "ETypeParameter", Xt = "org.eclipse.emf.ecore.util", vJ = { 77: 1 }, _ue = { 3: 1, 20: 1, 18: 1, 16: 1, 61: 1, 586: 1, 77: 1, 72: 1, 98: 1 }, WVe = "org.eclipse.emf.ecore.util.FeatureMap$Entry", rs = 8192, nk = "byte", LS = "char", tk = "double", ik = "float", rk = "int", ck = "long", uk = "short", XVe = "java.lang.Object", q2 = { 3: 1, 4: 1, 5: 1, 255: 1 }, Jue = { 3: 1, 4: 1, 5: 1, 678: 1 }, KVe = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1, 71: 1, 67: 1, 61: 1, 72: 1 }, sc = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1, 71: 1, 67: 1, 61: 1, 77: 1, 72: 1, 98: 1 }, Lj = "mixed", nt = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData", zo = "kind", VVe = { 3: 1, 4: 1, 5: 1, 679: 1 }, Gue = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 71: 1, 61: 1, 77: 1, 72: 1, 98: 1 }, DS = { 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 61: 1, 72: 1 }, NS = { 50: 1, 128: 1, 287: 1 }, FS = { 75: 1, 344: 1 }, RS = "The value of type '", BS = "' must be of type '", U2 = 1306, Wo = "http://www.eclipse.org/emf/2002/Ecore", _S = -32768, Eb = "constraints", ar = "baseType", QVe = "getEStructuralFeature", YVe = "getFeatureID", sk = "feature", ZVe = "getOperationID", Hue = "operation", eQe = "defaultValue", nQe = "eTypeParameters", tQe = "isInstance", iQe = "getEEnumLiteral", rQe = "eContainingClass", dt = { 58: 1 }, cQe = { 3: 1, 4: 1, 5: 1, 122: 1 }, uQe = "org.eclipse.emf.ecore.resource", sQe = { 94: 1, 93: 1, 588: 1, 1996: 1 }, kJ = "org.eclipse.emf.ecore.resource.impl", que = "unspecified", Dj = "simple", JS = "attribute", oQe = "attributeWildcard", GS = "element", yJ = "elementWildcard", Kf = "collapse", jJ = "itemType", HS = "namespace", Nj = "##targetNamespace", Xo = "whiteSpace", Uue = "wildcards", u0 = "http://www.eclipse.org/emf/2003/XMLType", EJ = "##any", F5 = "uninitialized", Fj = "The multiplicity constraint is violated", qS = "org.eclipse.emf.ecore.xml.type", fQe = "ProcessingInstruction", hQe = "SimpleAnyType", lQe = "XMLTypeDocumentRoot", Si = "org.eclipse.emf.ecore.xml.type.impl", Rj = "INF", aQe = "processing", dQe = "ENTITIES_._base", zue = "minLength", Wue = "ENTITY", US = "NCName", bQe = "IDREFS_._base", Xue = "integer", AJ = "token", xJ = "pattern", wQe = "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*", Kue = "\\i\\c*", gQe = "[\\i-[:]][\\c-[:]]*", pQe = "nonPositiveInteger", Bj = "maxInclusive", Vue = "NMTOKEN", mQe = "NMTOKENS_._base", Que = "nonNegativeInteger", _j = "minInclusive", vQe = "normalizedString", kQe = "unsignedByte", yQe = "unsignedInt", jQe = "18446744073709551615", EQe = "unsignedShort", AQe = "processingInstruction", Va = "org.eclipse.emf.ecore.xml.type.internal", R5 = 1114111, xQe = "Internal Error: shorthands: \\u", ok = "xml:isDigit", $J = "xml:isWord", MJ = "xml:isSpace", TJ = "xml:isNameChar", SJ = "xml:isInitialNameChar", $Qe = "09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩", MQe = "AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣", TQe = "Private Use", IJ = "ASSIGNED", CJ = "\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯", Yue = "UNASSIGNED", B5 = { 3: 1, 121: 1 }, SQe = "org.eclipse.emf.ecore.xml.type.util", zS = { 3: 1, 4: 1, 5: 1, 376: 1 }, Zue = "org.eclipse.xtext.xbase.lib", IQe = "Cannot add elements to a Range", CQe = "Cannot set elements in a Range", PQe = "Cannot remove elements from a Range", OQe = "user.agent", o, WS, PJ; + var ij = "object", D3 = "boolean", vie = "number", KR = "string", VR = "function", pt = 2147483647, xc = "java.lang", rj = { 3: 1 }, cj = "com.google.common.base", mu = ", ", nWe = "%s (%s) must not be negative", Ve = { 3: 1, 4: 1, 5: 1 }, tWe = "negative size: ", kie = "no calls to next() since the last call to remove()", iWe = "Optional.of(", _u = "null", o5 = { 204: 1, 50: 1 }, _e = "com.google.common.collect", f5 = { 204: 1, 50: 1, 128: 1 }, Yd = { 229: 1, 3: 1 }, Wi = { 50: 1 }, In = "java.util", bb = { 92: 1 }, zw = { 20: 1, 31: 1, 18: 1 }, ph = 2025, is = { 20: 1, 31: 1, 18: 1, 22: 1 }, yie = { 92: 1, 138: 1, 134: 1 }, rWe = { 20: 1, 31: 1, 18: 1, 22: 1, 83: 1 }, jie = { 20: 1, 31: 1, 18: 1, 277: 1, 22: 1, 83: 1 }, pl = { 50: 1, 128: 1 }, QR = { 358: 1, 45: 1 }, cWe = "AbstractMapEntry", q1 = 2048, uWe = "expectedValuesPerKey", fe = { 3: 1, 6: 1, 4: 1, 5: 1 }, Wh = 16384, to = { 162: 1 }, mn = { 41: 1 }, uj = { 202: 1 }, sj = { l: 4194303, m: 4194303, h: 524287 }, YR = { 254: 1, 3: 1, 35: 1 }, sWe = "range unbounded on this side", ml = { 20: 1 }, oWe = { 20: 1, 18: 1 }, Eie = { 3: 1, 20: 1, 31: 1, 18: 1 }, h5 = { 311: 1, 3: 1, 20: 1, 31: 1, 18: 1, 16: 1, 59: 1 }, JT = { 3: 1, 4: 1, 5: 1, 175: 1 }, l5 = { 3: 1, 92: 1 }, ZR = { 20: 1, 18: 1, 22: 1 }, N3 = { 3: 1, 20: 1, 31: 1, 18: 1, 22: 1 }, fWe = { 20: 1, 18: 1, 22: 1, 83: 1 }, vl = 461845907, kl = -862048943, oj = { 3: 1, 6: 1, 4: 1, 5: 1, 175: 1 }, hWe = "expectedSize", za = 1e3, C9 = 1073741824, Ww = "initialArraySize", ce = { 3: 1, 6: 1, 4: 1, 10: 1, 5: 1 }, a5 = { 20: 1, 31: 1, 56: 1, 18: 1, 16: 1 }, e_ = "arraySize", lWe = { 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1 }, Vn = { 48: 1 }, GT = { 375: 1 }, U1 = 1e-4, Yi = -2147483648, aWe = "__noinit__", ra = { 3: 1, 101: 1, 63: 1, 80: 1 }, fj = "com.google.gwt.core.client.impl", Aie = "String", xie = "com.google.gwt.core.client", n_ = "anonymous", t_ = "fnStack", $ie = "Unknown", Xh = { 201: 1, 3: 1, 4: 1 }, Ti = 65535, i_ = "January", r_ = "February", c_ = "March", u_ = "April", F3 = "May", s_ = "June", o_ = "July", f_ = "August", h_ = "September", l_ = "October", a_ = "November", d_ = "December", z1 = 1900, lt = { 54: 1, 3: 1, 4: 1 }, dWe = "Before Christ", bWe = "Anno Domini", b_ = "Sunday", w_ = "Monday", g_ = "Tuesday", p_ = "Wednesday", m_ = "Thursday", v_ = "Friday", k_ = "Saturday", Mie = "com.google.gwt.i18n.shared", wWe = "DateTimeFormat", y_ = "com.google.gwt.i18n.client", gWe = "DefaultDateTimeFormatInfo", pWe = { 3: 1, 4: 1, 35: 1, 205: 1 }, R3 = "com.google.gwt.json.client", Ts = 4194303, ca = 1048575, hj = 524288, _3 = 4194304, Zd = 17592186044416, HT = 1e9, lj = -17592186044416, Tie = "java.io", qT = { 3: 1, 101: 1, 99: 1, 63: 1, 80: 1 }, mWe = { 3: 1, 297: 1, 80: 1 }, wb = 'For input string: "', ii = 1 / 0, Ri = -1 / 0, Xw = 4096, vWe = { 3: 1, 4: 1, 584: 1 }, nn = "org.eclipse.elk.layered", xr = 65536, aj = 55296, Gr = { 108: 1, 3: 1, 4: 1 }, j_ = 1e5, kWe = 0.3010299956639812, Or = 4294967295, d5 = "0.0", E_ = { 45: 1 }, b5 = "Unable to add element to queue", yWe = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 13: 1, 18: 1, 16: 1, 59: 1 }, jWe = { 3: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1 }, EWe = { 20: 1, 18: 1, 16: 1 }, A_ = { 3: 1, 51: 1 }, dj = { 189: 1 }, N2 = { 3: 1, 4: 1, 92: 1 }, Sie = { 3: 1, 4: 1, 20: 1, 31: 1, 18: 1, 47: 1, 22: 1 }, x_ = "delete", P9 = 14901161193847656e-24, O9 = 11102230246251565e-32, $_ = 15525485, bj = 5960464477539063e-23, Iie = 16777216, UT = 16777215, Cie = ", length: ", AWe = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1 }, Pie = "subMap: ", xWe = " less than ", M_ = { 3: 1, 35: 1, 23: 1, 309: 1 }, T_ = "java.util.function", L9 = "java.util.logging", $We = { 3: 1, 4: 1, 5: 1, 840: 1 }, S_ = "undefined", Lr = "java.util.stream", Oie = { 520: 1, 677: 1 }, zT = "fromIndex: ", MWe = " > toIndex: ", Lie = ", toIndex: ", Die = "Index: ", Nie = ", Size: ", w5 = "org.eclipse.elk.alg.common", ct = { 51: 1 }, TWe = "org.eclipse.elk.alg.common.compaction", SWe = "Scanline/EventHandler", yl = "org.eclipse.elk.alg.common.compaction.oned", IWe = "CNode belongs to another CGroup.", CWe = "ISpacingsHandler/1", I_ = "The ", C_ = " instance has been finished already.", PWe = "The direction ", OWe = " is not supported by the CGraph instance.", LWe = "OneDimensionalCompactor", DWe = "OneDimensionalCompactor/lambda$0$Type", NWe = "Quadruplet", FWe = "ScanlineConstraintCalculator", RWe = "ScanlineConstraintCalculator/ConstraintsScanlineHandler", _We = "ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type", BWe = "ScanlineConstraintCalculator/Timestamp", JWe = "ScanlineConstraintCalculator/lambda$0$Type", Kh = { 178: 1, 48: 1 }, D9 = "org.eclipse.elk.alg.common.networksimplex", zf = { 171: 1, 3: 1, 4: 1 }, GWe = "org.eclipse.elk.alg.common.nodespacing", e0 = "org.eclipse.elk.alg.common.nodespacing.cellsystem", g5 = "CENTER", HWe = { 216: 1, 337: 1 }, Fie = { 3: 1, 4: 1, 5: 1, 592: 1 }, B3 = "LEFT", J3 = "RIGHT", Rie = "Vertical alignment cannot be null", _ie = "BOTTOM", WT = "org.eclipse.elk.alg.common.nodespacing.internal", N9 = "UNDEFINED", mh = 0.01, wj = "org.eclipse.elk.alg.common.nodespacing.internal.algorithm", qWe = "LabelPlacer/lambda$0$Type", UWe = "LabelPlacer/lambda$1$Type", zWe = "portRatioOrPosition", p5 = "org.eclipse.elk.alg.common.overlaps", P_ = "DOWN", G3 = "org.eclipse.elk.alg.common.spore", Kw = { 3: 1, 4: 1, 5: 1, 198: 1 }, WWe = { 3: 1, 6: 1, 4: 1, 5: 1, 90: 1, 110: 1 }, O_ = "org.eclipse.elk.alg.force", Bie = "ComponentsProcessor", XWe = "ComponentsProcessor/1", Jie = "ElkGraphImporter/lambda$0$Type", gb = { 214: 1 }, F2 = "org.eclipse.elk.core", gj = "org.eclipse.elk.graph.properties", KWe = "IPropertyHolder", pj = "org.eclipse.elk.alg.force.graph", VWe = "Component Layout", Gie = "org.eclipse.elk.alg.force.model", gc = "org.eclipse.elk.core.data", XT = "org.eclipse.elk.force.model", Hie = "org.eclipse.elk.force.iterations", qie = "org.eclipse.elk.force.repulsivePower", L_ = "org.eclipse.elk.force.temperature", Vh = 1e-3, D_ = "org.eclipse.elk.force.repulsion", vh = { 148: 1 }, F9 = "org.eclipse.elk.alg.force.options", m5 = 1.600000023841858, $u = "org.eclipse.elk.force", mj = "org.eclipse.elk.priority", Vw = "org.eclipse.elk.spacing.nodeNode", N_ = "org.eclipse.elk.spacing.edgeLabel", v5 = "org.eclipse.elk.aspectRatio", KT = "org.eclipse.elk.randomSeed", R9 = "org.eclipse.elk.separateConnectedComponents", Qw = "org.eclipse.elk.padding", _9 = "org.eclipse.elk.interactive", F_ = "org.eclipse.elk.portConstraints", VT = "org.eclipse.elk.edgeLabels.inline", B9 = "org.eclipse.elk.omitNodeMicroLayout", k5 = "org.eclipse.elk.nodeSize.fixedGraphSize", H3 = "org.eclipse.elk.nodeSize.options", R2 = "org.eclipse.elk.nodeSize.constraints", y5 = "org.eclipse.elk.nodeLabels.placement", j5 = "org.eclipse.elk.portLabels.placement", vj = "org.eclipse.elk.topdownLayout", kj = "org.eclipse.elk.topdown.scaleFactor", yj = "org.eclipse.elk.topdown.hierarchicalNodeWidth", jj = "org.eclipse.elk.topdown.hierarchicalNodeAspectRatio", pb = "org.eclipse.elk.topdown.nodeType", Uie = "origin", QWe = "random", YWe = "boundingBox.upLeft", ZWe = "boundingBox.lowRight", zie = "org.eclipse.elk.stress.fixed", Wie = "org.eclipse.elk.stress.desiredEdgeLength", Xie = "org.eclipse.elk.stress.dimension", Kie = "org.eclipse.elk.stress.epsilon", Vie = "org.eclipse.elk.stress.iterationLimit", W1 = "org.eclipse.elk.stress", eXe = "ELK Stress", q3 = "org.eclipse.elk.nodeSize.minimum", QT = "org.eclipse.elk.alg.force.stress", nXe = "Layered layout", U3 = "org.eclipse.elk.alg.layered", Ej = "org.eclipse.elk.alg.layered.compaction.components", J9 = "org.eclipse.elk.alg.layered.compaction.oned", YT = "org.eclipse.elk.alg.layered.compaction.oned.algs", n0 = "org.eclipse.elk.alg.layered.compaction.recthull", kh = "org.eclipse.elk.alg.layered.components", Wf = "NONE", R_ = "MODEL_ORDER", _c = { 3: 1, 6: 1, 4: 1, 10: 1, 5: 1, 126: 1 }, tXe = { 3: 1, 6: 1, 4: 1, 5: 1, 135: 1, 90: 1, 110: 1 }, ZT = "org.eclipse.elk.alg.layered.compound", Ft = { 43: 1 }, Wc = "org.eclipse.elk.alg.layered.graph", __ = " -> ", iXe = "Not supported by LGraph", Qie = "Port side is undefined", E5 = { 3: 1, 6: 1, 4: 1, 5: 1, 323: 1, 135: 1, 90: 1, 110: 1 }, Wa = { 3: 1, 6: 1, 4: 1, 5: 1, 135: 1, 199: 1, 209: 1, 90: 1, 110: 1 }, rXe = { 3: 1, 6: 1, 4: 1, 5: 1, 135: 1, 2004: 1, 209: 1, 90: 1, 110: 1 }, cXe = `([{"' \r +`, uXe = `)]}"' \r +`, sXe = "The given string contains parts that cannot be parsed as numbers.", Aj = "org.eclipse.elk.core.math", oXe = { 3: 1, 4: 1, 140: 1, 213: 1, 414: 1 }, fXe = { 3: 1, 4: 1, 104: 1, 213: 1, 414: 1 }, Xa = "org.eclipse.elk.alg.layered.graph.transform", hXe = "ElkGraphImporter", lXe = "ElkGraphImporter/lambda$1$Type", aXe = "ElkGraphImporter/lambda$2$Type", dXe = "ElkGraphImporter/lambda$4$Type", wn = "org.eclipse.elk.alg.layered.intermediate", bXe = "Node margin calculation", wXe = "ONE_SIDED_GREEDY_SWITCH", gXe = "TWO_SIDED_GREEDY_SWITCH", B_ = "No implementation is available for the layout processor ", J_ = "IntermediateProcessorStrategy", G_ = "Node '", pXe = "FIRST_SEPARATE", mXe = "LAST_SEPARATE", vXe = "Odd port side processing", pi = "org.eclipse.elk.alg.layered.intermediate.compaction", G9 = "org.eclipse.elk.alg.layered.intermediate.greedyswitch", jl = "org.eclipse.elk.alg.layered.p3order.counting", H9 = { 220: 1 }, z3 = "org.eclipse.elk.alg.layered.intermediate.loops", io = "org.eclipse.elk.alg.layered.intermediate.loops.ordering", X1 = "org.eclipse.elk.alg.layered.intermediate.loops.routing", eS = "org.eclipse.elk.alg.layered.intermediate.preserveorder", Qh = "org.eclipse.elk.alg.layered.intermediate.wrapping", $c = "org.eclipse.elk.alg.layered.options", H_ = "INTERACTIVE", Yie = "GREEDY", kXe = "DEPTH_FIRST", yXe = "EDGE_LENGTH", jXe = "SELF_LOOPS", EXe = "firstTryWithInitialOrder", Zie = "org.eclipse.elk.layered.directionCongruency", ere = "org.eclipse.elk.layered.feedbackEdges", nS = "org.eclipse.elk.layered.interactiveReferencePoint", nre = "org.eclipse.elk.layered.mergeEdges", tre = "org.eclipse.elk.layered.mergeHierarchyEdges", ire = "org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides", rre = "org.eclipse.elk.layered.portSortingStrategy", cre = "org.eclipse.elk.layered.thoroughness", ure = "org.eclipse.elk.layered.unnecessaryBendpoints", sre = "org.eclipse.elk.layered.generatePositionAndLayerIds", xj = "org.eclipse.elk.layered.cycleBreaking.strategy", $j = "org.eclipse.elk.layered.layering.strategy", ore = "org.eclipse.elk.layered.layering.layerConstraint", fre = "org.eclipse.elk.layered.layering.layerChoiceConstraint", hre = "org.eclipse.elk.layered.layering.layerId", q_ = "org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth", U_ = "org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor", z_ = "org.eclipse.elk.layered.layering.nodePromotion.strategy", W_ = "org.eclipse.elk.layered.layering.nodePromotion.maxIterations", X_ = "org.eclipse.elk.layered.layering.coffmanGraham.layerBound", q9 = "org.eclipse.elk.layered.crossingMinimization.strategy", lre = "org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder", K_ = "org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness", V_ = "org.eclipse.elk.layered.crossingMinimization.semiInteractive", are = "org.eclipse.elk.layered.crossingMinimization.inLayerPredOf", dre = "org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf", bre = "org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint", wre = "org.eclipse.elk.layered.crossingMinimization.positionId", gre = "org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold", Q_ = "org.eclipse.elk.layered.crossingMinimization.greedySwitch.type", tS = "org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type", _2 = "org.eclipse.elk.layered.nodePlacement.strategy", iS = "org.eclipse.elk.layered.nodePlacement.favorStraightEdges", Y_ = "org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening", Z_ = "org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment", eB = "org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening", nB = "org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility", tB = "org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default", pre = "org.eclipse.elk.layered.edgeRouting.selfLoopDistribution", mre = "org.eclipse.elk.layered.edgeRouting.selfLoopOrdering", rS = "org.eclipse.elk.layered.edgeRouting.splines.mode", cS = "org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor", iB = "org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth", vre = "org.eclipse.elk.layered.spacing.baseValue", kre = "org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers", yre = "org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers", jre = "org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers", Ere = "org.eclipse.elk.layered.priority.direction", Are = "org.eclipse.elk.layered.priority.shortness", xre = "org.eclipse.elk.layered.priority.straightness", rB = "org.eclipse.elk.layered.compaction.connectedComponents", $re = "org.eclipse.elk.layered.compaction.postCompaction.strategy", Mre = "org.eclipse.elk.layered.compaction.postCompaction.constraints", uS = "org.eclipse.elk.layered.highDegreeNodes.treatment", cB = "org.eclipse.elk.layered.highDegreeNodes.threshold", uB = "org.eclipse.elk.layered.highDegreeNodes.treeHeight", ua = "org.eclipse.elk.layered.wrapping.strategy", sS = "org.eclipse.elk.layered.wrapping.additionalEdgeSpacing", oS = "org.eclipse.elk.layered.wrapping.correctionFactor", U9 = "org.eclipse.elk.layered.wrapping.cutting.strategy", sB = "org.eclipse.elk.layered.wrapping.cutting.cuts", oB = "org.eclipse.elk.layered.wrapping.cutting.msd.freedom", fS = "org.eclipse.elk.layered.wrapping.validify.strategy", hS = "org.eclipse.elk.layered.wrapping.validify.forbiddenIndices", lS = "org.eclipse.elk.layered.wrapping.multiEdge.improveCuts", aS = "org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty", fB = "org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges", hB = "org.eclipse.elk.layered.layerUnzipping.strategy", lB = "org.eclipse.elk.layered.layerUnzipping.minimizeEdgeLength", aB = "org.eclipse.elk.layered.layerUnzipping.layerSplit", dB = "org.eclipse.elk.layered.layerUnzipping.resetOnLongEdges", Tre = "org.eclipse.elk.layered.edgeLabels.sideSelection", Sre = "org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy", dS = "org.eclipse.elk.layered.considerModelOrder.strategy", Ire = "org.eclipse.elk.layered.considerModelOrder.portModelOrder", Mj = "org.eclipse.elk.layered.considerModelOrder.noModelOrder", bB = "org.eclipse.elk.layered.considerModelOrder.components", Cre = "org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy", wB = "org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence", gB = "org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence", pB = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cycleBreakingId", mB = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.crossingMinimizationId", vB = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.componentGroupId", Pre = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbGroupOrderStrategy", kB = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredSourceId", yB = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredTargetId", Ore = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmGroupOrderStrategy", Lre = "org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmEnforcedGroupOrders", jB = "layering", AXe = "layering.minWidth", xXe = "layering.nodePromotion", A5 = "crossingMinimization", bS = "org.eclipse.elk.hierarchyHandling", $Xe = "crossingMinimization.greedySwitch", MXe = "nodePlacement", TXe = "nodePlacement.bk", SXe = "edgeRouting", Tj = "org.eclipse.elk.edgeRouting", yh = "spacing", Dre = "priority", Nre = "compaction", IXe = "compaction.postCompaction", CXe = "Specifies whether and how post-process compaction is applied.", Fre = "highDegreeNodes", Rre = "wrapping", PXe = "wrapping.cutting", OXe = "wrapping.validify", _re = "wrapping.multiEdge", EB = "layerUnzipping", AB = "edgeLabels", z9 = "considerModelOrder", x5 = "considerModelOrder.groupModelOrder", Bre = "Group ID of the Node Type", Jre = "org.eclipse.elk.spacing.commentComment", Gre = "org.eclipse.elk.spacing.commentNode", Hre = "org.eclipse.elk.spacing.componentComponent", qre = "org.eclipse.elk.spacing.edgeEdge", xB = "org.eclipse.elk.spacing.edgeNode", Ure = "org.eclipse.elk.spacing.labelLabel", zre = "org.eclipse.elk.spacing.labelPortHorizontal", Wre = "org.eclipse.elk.spacing.labelPortVertical", Xre = "org.eclipse.elk.spacing.labelNode", Kre = "org.eclipse.elk.spacing.nodeSelfLoop", Vre = "org.eclipse.elk.spacing.portPort", Qre = "org.eclipse.elk.spacing.individual", Yre = "org.eclipse.elk.port.borderOffset", Zre = "org.eclipse.elk.noLayout", ece = "org.eclipse.elk.port.side", Sj = "org.eclipse.elk.debugMode", nce = "org.eclipse.elk.alignment", tce = "org.eclipse.elk.insideSelfLoops.activate", ice = "org.eclipse.elk.insideSelfLoops.yo", $B = "org.eclipse.elk.direction", rce = "org.eclipse.elk.nodeLabels.padding", cce = "org.eclipse.elk.portLabels.nextToPortIfPossible", uce = "org.eclipse.elk.portLabels.treatAsGroup", sce = "org.eclipse.elk.portAlignment.default", oce = "org.eclipse.elk.portAlignment.north", fce = "org.eclipse.elk.portAlignment.south", hce = "org.eclipse.elk.portAlignment.west", lce = "org.eclipse.elk.portAlignment.east", wS = "org.eclipse.elk.contentAlignment", ace = "org.eclipse.elk.junctionPoints", dce = "org.eclipse.elk.edge.thickness", bce = "org.eclipse.elk.edgeLabels.placement", wce = "org.eclipse.elk.port.index", gce = "org.eclipse.elk.commentBox", pce = "org.eclipse.elk.hypernode", mce = "org.eclipse.elk.port.anchor", MB = "org.eclipse.elk.partitioning.activate", TB = "org.eclipse.elk.partitioning.partition", gS = "org.eclipse.elk.position", vce = "org.eclipse.elk.margins", kce = "org.eclipse.elk.spacing.portsSurrounding", pS = "org.eclipse.elk.interactiveLayout", Oc = "org.eclipse.elk.core.util", yce = { 3: 1, 4: 1, 5: 1, 590: 1 }, LXe = "NETWORK_SIMPLEX", jce = "SIMPLE", lr = { 95: 1, 43: 1 }, mb = "org.eclipse.elk.alg.layered.p1cycles", DXe = "Depth-first cycle removal", NXe = "Model order cycle breaking", sa = "org.eclipse.elk.alg.layered.p2layers", Ece = { 406: 1, 220: 1 }, FXe = { 830: 1, 3: 1, 4: 1 }, Mu = "org.eclipse.elk.alg.layered.p3order", B2 = 17976931348623157e292, SB = 5e-324, Dr = "org.eclipse.elk.alg.layered.p4nodes", RXe = { 3: 1, 4: 1, 5: 1, 838: 1 }, Yh = 1e-5, K1 = "org.eclipse.elk.alg.layered.p4nodes.bk", IB = "org.eclipse.elk.alg.layered.p5edges", Xf = "org.eclipse.elk.alg.layered.p5edges.orthogonal", CB = "org.eclipse.elk.alg.layered.p5edges.orthogonal.direction", PB = 1e-6, Yw = "org.eclipse.elk.alg.layered.p5edges.splines", OB = 0.09999999999999998, mS = 1e-8, _Xe = 4.71238898038469, BXe = 1.5707963267948966, Ace = 3.141592653589793, oa = "org.eclipse.elk.alg.mrtree", LB = 0.10000000149011612, vS = "SUPER_ROOT", W9 = "org.eclipse.elk.alg.mrtree.graph", xce = -17976931348623157e292, uu = "org.eclipse.elk.alg.mrtree.intermediate", JXe = "Processor compute fanout", kS = { 3: 1, 6: 1, 4: 1, 5: 1, 522: 1, 90: 1, 110: 1 }, GXe = "Set neighbors in level", Ij = "org.eclipse.elk.alg.mrtree.options", HXe = "DESCENDANTS", $ce = "org.eclipse.elk.mrtree.compaction", Mce = "org.eclipse.elk.mrtree.edgeEndTextureLength", Tce = "org.eclipse.elk.mrtree.treeLevel", Sce = "org.eclipse.elk.mrtree.positionConstraint", Ice = "org.eclipse.elk.mrtree.weighting", Cce = "org.eclipse.elk.mrtree.edgeRoutingMode", Pce = "org.eclipse.elk.mrtree.searchOrder", qXe = "Position Constraint", Tu = "org.eclipse.elk.mrtree", UXe = "org.eclipse.elk.tree", zXe = "Processor arrange level", $5 = "org.eclipse.elk.alg.mrtree.p2order", Hs = "org.eclipse.elk.alg.mrtree.p4route", Oce = "org.eclipse.elk.alg.radial", t0 = 6.283185307179586, Lce = "Before", yS = "After", Dce = "org.eclipse.elk.alg.radial.intermediate", WXe = "COMPACTION", DB = "org.eclipse.elk.alg.radial.intermediate.compaction", XXe = { 3: 1, 4: 1, 5: 1, 90: 1 }, Nce = "org.eclipse.elk.alg.radial.intermediate.optimization", NB = "No implementation is available for the layout option ", X9 = "org.eclipse.elk.alg.radial.options", KXe = "CompactionStrategy", Fce = "org.eclipse.elk.radial.centerOnRoot", Rce = "org.eclipse.elk.radial.orderId", _ce = "org.eclipse.elk.radial.radius", jS = "org.eclipse.elk.radial.rotate", FB = "org.eclipse.elk.radial.compactor", RB = "org.eclipse.elk.radial.compactionStepSize", Bce = "org.eclipse.elk.radial.sorter", Jce = "org.eclipse.elk.radial.wedgeCriteria", Gce = "org.eclipse.elk.radial.optimizationCriteria", _B = "org.eclipse.elk.radial.rotation.targetAngle", BB = "org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace", Hce = "org.eclipse.elk.radial.rotation.outgoingEdgeAngles", VXe = "Compaction", qce = "rotation", xo = "org.eclipse.elk.radial", QXe = "org.eclipse.elk.alg.radial.p1position.wedge", Uce = "org.eclipse.elk.alg.radial.sorting", YXe = 5.497787143782138, ZXe = 3.9269908169872414, eKe = 2.356194490192345, nKe = "org.eclipse.elk.alg.rectpacking", K9 = "org.eclipse.elk.alg.rectpacking.intermediate", JB = "org.eclipse.elk.alg.rectpacking.options", zce = "org.eclipse.elk.rectpacking.trybox", Wce = "org.eclipse.elk.rectpacking.currentPosition", Xce = "org.eclipse.elk.rectpacking.desiredPosition", Kce = "org.eclipse.elk.rectpacking.inNewRow", Vce = "org.eclipse.elk.rectpacking.orderBySize", Qce = "org.eclipse.elk.rectpacking.widthApproximation.strategy", Yce = "org.eclipse.elk.rectpacking.widthApproximation.targetWidth", Zce = "org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal", eue = "org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift", nue = "org.eclipse.elk.rectpacking.packing.strategy", tue = "org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation", iue = "org.eclipse.elk.rectpacking.packing.compaction.iterations", rue = "org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy", GB = "widthApproximation", tKe = "Compaction Strategy", iKe = "packing.compaction", as = "org.eclipse.elk.rectpacking", M5 = "org.eclipse.elk.alg.rectpacking.p1widthapproximation", ES = "org.eclipse.elk.alg.rectpacking.p2packing", rKe = "No Compaction", cue = "org.eclipse.elk.alg.rectpacking.p3whitespaceelimination", Cj = "org.eclipse.elk.alg.rectpacking.util", AS = "No implementation available for ", Zw = "org.eclipse.elk.alg.spore", eg = "org.eclipse.elk.alg.spore.options", vb = "org.eclipse.elk.sporeCompaction", HB = "org.eclipse.elk.underlyingLayoutAlgorithm", uue = "org.eclipse.elk.processingOrder.treeConstruction", sue = "org.eclipse.elk.processingOrder.spanningTreeCostFunction", qB = "org.eclipse.elk.processingOrder.preferredRoot", UB = "org.eclipse.elk.processingOrder.rootSelection", zB = "org.eclipse.elk.structure.structureExtractionStrategy", oue = "org.eclipse.elk.compaction.compactionStrategy", fue = "org.eclipse.elk.compaction.orthogonal", hue = "org.eclipse.elk.overlapRemoval.maxIterations", lue = "org.eclipse.elk.overlapRemoval.runScanline", WB = "processingOrder", cKe = "overlapRemoval", T5 = "org.eclipse.elk.sporeOverlap", uKe = "org.eclipse.elk.alg.spore.p1structure", XB = "org.eclipse.elk.alg.spore.p2processingorder", KB = "org.eclipse.elk.alg.spore.p3execution", sKe = "Topdown Layout", oKe = "Invalid index: ", S5 = "org.eclipse.elk.core.alg", J2 = { 342: 1 }, ng = { 296: 1 }, fKe = "Make sure its type is registered with the ", aue = " utility class.", I5 = "true", VB = "false", hKe = "Couldn't clone property '", kb = 0.05, vu = "org.eclipse.elk.core.options", lKe = 1.2999999523162842, yb = "org.eclipse.elk.box", due = "org.eclipse.elk.expandNodes", bue = "org.eclipse.elk.box.packingMode", aKe = "org.eclipse.elk.algorithm", dKe = "org.eclipse.elk.resolvedAlgorithm", wue = "org.eclipse.elk.bendPoints", jLn = "org.eclipse.elk.labelManager", bKe = "org.eclipse.elk.softwrappingFuzziness", wKe = "org.eclipse.elk.scaleFactor", gKe = "org.eclipse.elk.childAreaWidth", pKe = "org.eclipse.elk.childAreaHeight", mKe = "org.eclipse.elk.animate", vKe = "org.eclipse.elk.animTimeFactor", kKe = "org.eclipse.elk.layoutAncestors", yKe = "org.eclipse.elk.maxAnimTime", jKe = "org.eclipse.elk.minAnimTime", EKe = "org.eclipse.elk.progressBar", AKe = "org.eclipse.elk.validateGraph", xKe = "org.eclipse.elk.validateOptions", $Ke = "org.eclipse.elk.zoomToFit", MKe = "org.eclipse.elk.json.shapeCoords", TKe = "org.eclipse.elk.json.edgeCoords", ELn = "org.eclipse.elk.font.name", SKe = "org.eclipse.elk.font.size", QB = "org.eclipse.elk.topdown.sizeCategories", gue = "org.eclipse.elk.topdown.sizeCategoriesHierarchicalNodeWeight", YB = "org.eclipse.elk.topdown.sizeApproximator", pue = "org.eclipse.elk.topdown.scaleCap", IKe = "org.eclipse.elk.edge.type", CKe = "partitioning", PKe = "nodeLabels", xS = "portAlignment", ZB = "nodeSize", eJ = "port", mue = "portLabels", C5 = "topdown", OKe = "insideSelfLoops", vue = "INHERIT", P5 = "org.eclipse.elk.fixed", $S = "org.eclipse.elk.random", MS = { 3: 1, 35: 1, 23: 1, 521: 1, 288: 1 }, LKe = "port must have a parent node to calculate the port side", DKe = "The edge needs to have exactly one edge section. Found: ", V9 = "org.eclipse.elk.core.util.adapters", $o = "org.eclipse.emf.ecore", G2 = "org.eclipse.elk.graph", NKe = "EMapPropertyHolder", FKe = "ElkBendPoint", RKe = "ElkGraphElement", _Ke = "ElkConnectableShape", kue = "ElkEdge", BKe = "ElkEdgeSection", JKe = "EModelElement", GKe = "ENamedElement", yue = "ElkLabel", jue = "ElkNode", Eue = "ElkPort", HKe = { 94: 1, 93: 1 }, W3 = "org.eclipse.emf.common.notify.impl", V1 = "The feature '", Q9 = "' is not a valid changeable feature", qKe = "Expecting null", nJ = "' is not a valid feature", UKe = "The feature ID", zKe = " is not a valid feature ID", Lc = 32768, WKe = { 109: 1, 94: 1, 93: 1, 57: 1, 52: 1, 100: 1 }, un = "org.eclipse.emf.ecore.impl", i0 = "org.eclipse.elk.graph.impl", Y9 = "Recursive containment not allowed for ", O5 = "The datatype '", jb = "' is not a valid classifier", tJ = "The value '", H2 = { 195: 1, 3: 1, 4: 1 }, iJ = "The class '", L5 = "http://www.eclipse.org/elk/ElkGraph", Aue = "property", Z9 = "value", rJ = "source", XKe = "properties", KKe = "identifier", cJ = "height", uJ = "width", sJ = "parent", oJ = "text", fJ = "children", VKe = "hierarchical", xue = "sources", hJ = "targets", lJ = "sections", TS = "bendPoints", $ue = "outgoingShape", Mue = "incomingShape", Tue = "outgoingSections", Sue = "incomingSections", Er = "org.eclipse.emf.common.util", Iue = "Severe implementation error in the Json to ElkGraph importer.", Zh = "id", ir = "org.eclipse.elk.graph.json", D5 = "Unhandled parameter types: ", QKe = "startPoint", YKe = "An edge must have at least one source and one target (edge id: '", N5 = "').", ZKe = "Referenced edge section does not exist: ", eVe = " (edge id: '", Cue = "target", nVe = "sourcePoint", tVe = "targetPoint", SS = "group", gt = "name", iVe = "connectableShape cannot be null", rVe = "edge cannot be null", cVe = "Passed edge is not 'simple'.", IS = "org.eclipse.elk.graph.util", Pj = "The 'no duplicates' constraint is violated", aJ = "targetIndex=", r0 = ", size=", dJ = "sourceIndex=", el = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1, 71: 1, 67: 1, 61: 1 }, bJ = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 50: 1, 16: 1, 59: 1, 71: 1, 67: 1, 61: 1, 585: 1 }, CS = "logging", uVe = "measureExecutionTime", sVe = "parser.parse.1", oVe = "parser.parse.2", PS = "parser.next.1", wJ = "parser.next.2", fVe = "parser.next.3", hVe = "parser.next.4", c0 = "parser.factor.1", Pue = "parser.factor.2", lVe = "parser.factor.3", aVe = "parser.factor.4", dVe = "parser.factor.5", bVe = "parser.factor.6", wVe = "parser.atom.1", gVe = "parser.atom.2", pVe = "parser.atom.3", Oue = "parser.atom.4", gJ = "parser.atom.5", Lue = "parser.cc.1", OS = "parser.cc.2", mVe = "parser.cc.3", vVe = "parser.cc.5", Due = "parser.cc.6", Nue = "parser.cc.7", pJ = "parser.cc.8", kVe = "parser.ope.1", yVe = "parser.ope.2", jVe = "parser.ope.3", Ka = "parser.descape.1", EVe = "parser.descape.2", AVe = "parser.descape.3", xVe = "parser.descape.4", $Ve = "parser.descape.5", Mo = "parser.process.1", MVe = "parser.quantifier.1", TVe = "parser.quantifier.2", SVe = "parser.quantifier.3", IVe = "parser.quantifier.4", Fue = "parser.quantifier.5", CVe = "org.eclipse.emf.common.notify", Rue = { 415: 1, 676: 1 }, PVe = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 71: 1, 61: 1 }, Oj = { 373: 1, 151: 1 }, ek = "index=", mJ = { 3: 1, 4: 1, 5: 1, 129: 1 }, OVe = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1, 71: 1, 61: 1 }, _ue = { 3: 1, 6: 1, 4: 1, 5: 1, 198: 1 }, LVe = { 3: 1, 4: 1, 5: 1, 175: 1, 374: 1 }, Ef = 1024, DVe = ";/?:@&=+$,", NVe = "invalid authority: ", FVe = "EAnnotation", RVe = "ETypedElement", _Ve = "EStructuralFeature", BVe = "EAttribute", JVe = "EClassifier", GVe = "EEnumLiteral", HVe = "EGenericType", qVe = "EOperation", UVe = "EParameter", zVe = "EReference", WVe = "ETypeParameter", Xt = "org.eclipse.emf.ecore.util", vJ = { 77: 1 }, Bue = { 3: 1, 20: 1, 18: 1, 16: 1, 61: 1, 586: 1, 77: 1, 72: 1, 98: 1 }, XVe = "org.eclipse.emf.ecore.util.FeatureMap$Entry", rs = 8192, nk = "byte", LS = "char", tk = "double", ik = "float", rk = "int", ck = "long", uk = "short", KVe = "java.lang.Object", q2 = { 3: 1, 4: 1, 5: 1, 255: 1 }, Jue = { 3: 1, 4: 1, 5: 1, 678: 1 }, VVe = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1, 71: 1, 67: 1, 61: 1, 72: 1 }, sc = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1, 71: 1, 67: 1, 61: 1, 77: 1, 72: 1, 98: 1 }, Lj = "mixed", nt = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData", zo = "kind", QVe = { 3: 1, 4: 1, 5: 1, 679: 1 }, Gue = { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 71: 1, 61: 1, 77: 1, 72: 1, 98: 1 }, DS = { 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 61: 1, 72: 1 }, NS = { 50: 1, 128: 1, 287: 1 }, FS = { 75: 1, 344: 1 }, RS = "The value of type '", _S = "' must be of type '", U2 = 1306, Wo = "http://www.eclipse.org/emf/2002/Ecore", BS = -32768, Eb = "constraints", ar = "baseType", YVe = "getEStructuralFeature", ZVe = "getFeatureID", sk = "feature", eQe = "getOperationID", Hue = "operation", nQe = "defaultValue", tQe = "eTypeParameters", iQe = "isInstance", rQe = "getEEnumLiteral", cQe = "eContainingClass", dt = { 58: 1 }, uQe = { 3: 1, 4: 1, 5: 1, 122: 1 }, sQe = "org.eclipse.emf.ecore.resource", oQe = { 94: 1, 93: 1, 588: 1, 1996: 1 }, kJ = "org.eclipse.emf.ecore.resource.impl", que = "unspecified", Dj = "simple", JS = "attribute", fQe = "attributeWildcard", GS = "element", yJ = "elementWildcard", Kf = "collapse", jJ = "itemType", HS = "namespace", Nj = "##targetNamespace", Xo = "whiteSpace", Uue = "wildcards", u0 = "http://www.eclipse.org/emf/2003/XMLType", EJ = "##any", F5 = "uninitialized", Fj = "The multiplicity constraint is violated", qS = "org.eclipse.emf.ecore.xml.type", hQe = "ProcessingInstruction", lQe = "SimpleAnyType", aQe = "XMLTypeDocumentRoot", Si = "org.eclipse.emf.ecore.xml.type.impl", Rj = "INF", dQe = "processing", bQe = "ENTITIES_._base", zue = "minLength", Wue = "ENTITY", US = "NCName", wQe = "IDREFS_._base", Xue = "integer", AJ = "token", xJ = "pattern", gQe = "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*", Kue = "\\i\\c*", pQe = "[\\i-[:]][\\c-[:]]*", mQe = "nonPositiveInteger", _j = "maxInclusive", Vue = "NMTOKEN", vQe = "NMTOKENS_._base", Que = "nonNegativeInteger", Bj = "minInclusive", kQe = "normalizedString", yQe = "unsignedByte", jQe = "unsignedInt", EQe = "18446744073709551615", AQe = "unsignedShort", xQe = "processingInstruction", Va = "org.eclipse.emf.ecore.xml.type.internal", R5 = 1114111, $Qe = "Internal Error: shorthands: \\u", ok = "xml:isDigit", $J = "xml:isWord", MJ = "xml:isSpace", TJ = "xml:isNameChar", SJ = "xml:isInitialNameChar", MQe = "09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩", TQe = "AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣", SQe = "Private Use", IJ = "ASSIGNED", CJ = "\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯", Yue = "UNASSIGNED", _5 = { 3: 1, 121: 1 }, IQe = "org.eclipse.emf.ecore.xml.type.util", zS = { 3: 1, 4: 1, 5: 1, 376: 1 }, Zue = "org.eclipse.xtext.xbase.lib", CQe = "Cannot add elements to a Range", PQe = "Cannot set elements in a Range", OQe = "Cannot remove elements from a Range", LQe = "user.agent", o, WS, PJ; m.goog = m.goog || {}, m.goog.global = m.goog.global || m, WS = {}, b(1, null, {}, Z), o.Fb = function(n) { - return o$e(this, n); + return f$e(this, n); }, o.Gb = function() { return this.Pm; }, o.Hb = function() { @@ -32723,10 +32813,10 @@ function WDn() { }, o.toString = function() { return this.Ib(); }; - var LQe, DQe, NQe; + var DQe, NQe, FQe; b(298, 1, { 298: 1, 2086: 1 }, ZY), o.te = function(n) { var t; - return t = new ZY(), t.i = 4, n > 1 ? t.c = FCe(this, n - 1) : t.c = this, t; + return t = new ZY(), t.i = 4, n > 1 ? t.c = RCe(this, n - 1) : t.c = this, t; }, o.ue = function() { return Gl(this), this.b; }, o.ve = function() { @@ -32741,7 +32831,7 @@ function WDn() { return fY(this); }, o.i = 0; var Li = w(xc, "Object", 1), ese = w(xc, "Class", 298); - b(2058, 1, rj), w(cj, "Optional", 2058), b(1160, 2058, rj, fe), o.Fb = function(n) { + b(2058, 1, rj), w(cj, "Optional", 2058), b(1160, 2058, rj, oe), o.Fb = function(n) { return n === this; }, o.Hb = function() { return 2040732332; @@ -32753,10 +32843,10 @@ function WDn() { var OJ; w(cj, "Absent", 1160), b(627, 1, {}, gO), w(cj, "Joiner", 627); var ALn = Zt(cj, "Predicate"); - b(577, 1, { 178: 1, 577: 1, 3: 1, 48: 1 }, q9e), o.Mb = function(n) { - return NFe(this, n); + b(577, 1, { 178: 1, 577: 1, 3: 1, 48: 1 }, U9e), o.Mb = function(n) { + return FFe(this, n); }, o.Lb = function(n) { - return NFe(this, n); + return FFe(this, n); }, o.Fb = function(n) { var t; return N(n, 577) ? (t = u(n, 577), Kne(this.a, t.a)) : !1; @@ -32770,20 +32860,20 @@ function WDn() { }, o.Hb = function() { return 1502476572 + Gt(this.a); }, o.Ib = function() { - return tWe + this.a + ")"; + return iWe + this.a + ")"; }, o.Jb = function(n) { return new lA(g$(n.Kb(this.a), "the Function passed to Optional.transform() must not return null.")); }, w(cj, "Present", 411), b(204, 1, o5), o.Nb = function(n) { cr(this, n); }, o.Qb = function() { - Yje(); - }, w(Be, "UnmodifiableIterator", 204), b(2038, 204, f5), o.Qb = function() { - Yje(); + Zje(); + }, w(_e, "UnmodifiableIterator", 204), b(2038, 204, f5), o.Qb = function() { + Zje(); }, o.Rb = function(n) { throw $(new qn()); }, o.Wb = function(n) { throw $(new qn()); - }, w(Be, "UnmodifiableListIterator", 2038), b(392, 2038, f5), o.Ob = function() { + }, w(_e, "UnmodifiableListIterator", 2038), b(392, 2038, f5), o.Ob = function() { return this.b < this.c; }, o.Sb = function() { return this.b > 0; @@ -32799,11 +32889,11 @@ function WDn() { return this.Xb(--this.b); }, o.Vb = function() { return this.b - 1; - }, o.b = 0, o.c = 0, w(Be, "AbstractIndexedListIterator", 392), b(702, 204, o5), o.Ob = function() { + }, o.b = 0, o.c = 0, w(_e, "AbstractIndexedListIterator", 392), b(702, 204, o5), o.Ob = function() { return kN(this); }, o.Pb = function() { return iY(this); - }, o.e = 1, w(Be, "AbstractIterator", 702), b(2046, 1, { 229: 1 }), o.Zb = function() { + }, o.e = 1, w(_e, "AbstractIterator", 702), b(2046, 1, { 229: 1 }), o.Zb = function() { var n; return n = this.f, n || (this.f = this.ac()); }, o.Fb = function(n) { @@ -32816,10 +32906,10 @@ function WDn() { return n3(this); }, o.Ib = function() { return uc(this.Zb()); - }, w(Be, "AbstractMultimap", 2046), b(730, 2046, Yd), o.$b = function() { + }, w(_e, "AbstractMultimap", 2046), b(730, 2046, Yd), o.$b = function() { cM(this); }, o._b = function(n) { - return wEe(this, n); + return gEe(this, n); }, o.ac = function() { return new qm(this, this.c); }, o.ic = function(n) { @@ -32829,7 +32919,7 @@ function WDn() { }, o.jc = function() { return this.mc(this.hc()); }, o.kc = function() { - return new Fje(this); + return new Rje(this); }, o.lc = function() { return KF(this.c.vc().Lc(), new de(), 64, this.d); }, o.cc = function(n) { @@ -32841,12 +32931,12 @@ function WDn() { }, o.mc = function(n) { return ze(), new Om(n); }, o.nc = function() { - return new Nje(this); + return new Fje(this); }, o.oc = function() { - return KF(this.c.Bc().Lc(), new Y(), 64, this.d); + return KF(this.c.Bc().Lc(), new Q(), 64, this.d); }, o.pc = function(n, t) { - return new _$(this, n, t, null); - }, o.d = 0, w(Be, "AbstractMapBasedMultimap", 730), b(1661, 730, Yd), o.hc = function() { + return new B$(this, n, t, null); + }, o.d = 0, w(_e, "AbstractMapBasedMultimap", 730), b(1661, 730, Yd), o.hc = function() { return new bu(this.a); }, o.jc = function() { return ze(), ze(), $r; @@ -32865,8 +32955,8 @@ function WDn() { }, o.mc = function(n) { return p$(u(n, 16)); }, o.pc = function(n, t) { - return zPe(this, n, u(t, 16), null); - }, w(Be, "AbstractListMultimap", 1661), b(736, 1, Wi), o.Nb = function(n) { + return WPe(this, n, u(t, 16), null); + }, w(_e, "AbstractListMultimap", 1661), b(736, 1, Wi), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { return this.c.Ob() || this.e.Ob(); @@ -32875,13 +32965,13 @@ function WDn() { return this.e.Ob() || (n = u(this.c.Pb(), 45), this.b = n.jd(), this.a = u(n.kd(), 18), this.e = this.a.Jc()), this.sc(this.b, this.e.Pb()); }, o.Qb = function() { this.e.Qb(), u(Jo(this.a), 18).dc() && this.c.Qb(), --this.d.d; - }, w(Be, "AbstractMapBasedMultimap/Itr", 736), b(1098, 736, Wi, Nje), o.sc = function(n, t) { + }, w(_e, "AbstractMapBasedMultimap/Itr", 736), b(1098, 736, Wi, Fje), o.sc = function(n, t) { return t; - }, w(Be, "AbstractMapBasedMultimap/1", 1098), b(1099, 1, {}, Y), o.Kb = function(n) { + }, w(_e, "AbstractMapBasedMultimap/1", 1098), b(1099, 1, {}, Q), o.Kb = function(n) { return u(n, 18).Lc(); - }, w(Be, "AbstractMapBasedMultimap/1methodref$spliterator$Type", 1099), b(1100, 736, Wi, Fje), o.sc = function(n, t) { + }, w(_e, "AbstractMapBasedMultimap/1methodref$spliterator$Type", 1099), b(1100, 736, Wi, Rje), o.sc = function(n, t) { return new O0(n, t); - }, w(Be, "AbstractMapBasedMultimap/2", 1100); + }, w(_e, "AbstractMapBasedMultimap/2", 1100); var nse = Zt(In, "Map"); b(2027, 1, bb), o.wc = function(n) { f7(this, n); @@ -32924,29 +33014,29 @@ function WDn() { }, o.gc = function() { return this.vc().gc(); }, o.Ib = function() { - return nJe(this); + return tJe(this); }, o.Bc = function() { return new Rl(this); }, w(In, "AbstractMap", 2027), b(2047, 2027, bb), o.bc = function() { return new NA(this); }, o.vc = function() { - return LSe(this); + return DSe(this); }, o.ec = function() { var n; return n = this.g, n || (this.g = this.bc()); }, o.Bc = function() { var n; - return n = this.i, n || (this.i = new uAe(this)); - }, w(Be, "Maps/ViewCachingAbstractMap", 2047), b(395, 2047, bb, qm), o.xc = function(n) { + return n = this.i, n || (this.i = new sAe(this)); + }, w(_e, "Maps/ViewCachingAbstractMap", 2047), b(395, 2047, bb, qm), o.xc = function(n) { return k5n(this, n); }, o.Ac = function(n) { return C6n(this, n); }, o.$b = function() { this.d == this.e.c ? this.e.$b() : Wx(new rV(this)); }, o._b = function(n) { - return bRe(this.d, n); + return wRe(this.d, n); }, o.Dc = function() { - return new U9e(this); + return new z9e(this); }, o.Cc = function() { return this.Dc(); }, o.Fb = function(n) { @@ -32959,7 +33049,7 @@ function WDn() { return this.d.gc(); }, o.Ib = function() { return uc(this.d); - }, w(Be, "AbstractMapBasedMultimap/AsMap", 395); + }, w(_e, "AbstractMapBasedMultimap/AsMap", 395); var To = Zt(xc, "Iterable"); b(31, 1, zw), o.Ic = function(n) { fr(this, n); @@ -32992,13 +33082,13 @@ function WDn() { b(ph, 31, is), o.Lc = function() { return new He(this, 1); }, o.Fb = function(n) { - return gBe(this, n); + return p_e(this, n); }, o.Hb = function() { return KY(this); - }, w(In, "AbstractSet", ph), b(2030, ph, is), w(Be, "Sets/ImprovedAbstractSet", 2030), b(2031, 2030, is), o.$b = function() { + }, w(In, "AbstractSet", ph), b(2030, ph, is), w(_e, "Sets/ImprovedAbstractSet", 2030), b(2031, 2030, is), o.$b = function() { this.Pc().$b(); }, o.Gc = function(n) { - return QRe(this, n); + return YRe(this, n); }, o.dc = function() { return this.Pc().dc(); }, o.Kc = function(n) { @@ -33006,7 +33096,7 @@ function WDn() { return this.Gc(n) && N(n, 45) ? (t = u(n, 45), this.Pc().ec().Kc(t.jd())) : !1; }, o.gc = function() { return this.Pc().gc(); - }, w(Be, "Maps/EntrySet", 2031), b(1096, 2031, is, U9e), o.Gc = function(n) { + }, w(_e, "Maps/EntrySet", 2031), b(1096, 2031, is, z9e), o.Gc = function(n) { return yZ(this.a.d.vc(), n); }, o.Jc = function() { return new rV(this.a); @@ -33016,24 +33106,24 @@ function WDn() { var t; return yZ(this.a.d.vc(), n) ? (t = u(Jo(u(n, 45)), 45), rvn(this.a.e, t.jd()), !0) : !1; }, o.Lc = function() { - return $y(this.a.d.vc().Lc(), new z9e(this.a)); - }, w(Be, "AbstractMapBasedMultimap/AsMap/AsMapEntries", 1096), b(1097, 1, {}, z9e), o.Kb = function(n) { - return SOe(this.a, u(n, 45)); - }, w(Be, "AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type", 1097), b(734, 1, Wi, rV), o.Nb = function(n) { + return $y(this.a.d.vc().Lc(), new W9e(this.a)); + }, w(_e, "AbstractMapBasedMultimap/AsMap/AsMapEntries", 1096), b(1097, 1, {}, W9e), o.Kb = function(n) { + return IOe(this.a, u(n, 45)); + }, w(_e, "AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type", 1097), b(734, 1, Wi, rV), o.Nb = function(n) { cr(this, n); }, o.Pb = function() { var n; - return n = u(this.b.Pb(), 45), this.a = u(n.kd(), 18), SOe(this.c, n); + return n = u(this.b.Pb(), 45), this.a = u(n.kd(), 18), IOe(this.c, n); }, o.Ob = function() { return this.b.Ob(); }, o.Qb = function() { ev(!!this.a), this.b.Qb(), this.c.e.d -= this.a.gc(), this.a.$b(), this.a = null; - }, w(Be, "AbstractMapBasedMultimap/AsMap/AsMapIterator", 734), b(530, 2030, is, NA), o.$b = function() { + }, w(_e, "AbstractMapBasedMultimap/AsMap/AsMapIterator", 734), b(530, 2030, is, NA), o.$b = function() { this.b.$b(); }, o.Gc = function(n) { return this.b._b(n); }, o.Ic = function(n) { - Jn(n), this.b.wc(new hke(n)); + Jn(n), this.b.wc(new lke(n)); }, o.dc = function() { return this.b.dc(); }, o.Jc = function() { @@ -33042,7 +33132,7 @@ function WDn() { return this.b._b(n) ? (this.b.Ac(n), !0) : !1; }, o.gc = function() { return this.b.gc(); - }, w(Be, "Maps/KeySet", 530), b(332, 530, is, u2), o.$b = function() { + }, w(_e, "Maps/KeySet", 530), b(332, 530, is, u2), o.$b = function() { var n; Wx((n = this.b.vc().Jc(), new IW(this, n))); }, o.Hc = function(n) { @@ -33059,7 +33149,7 @@ function WDn() { return i = 0, t = u(this.b.Ac(n), 18), t && (i = t.gc(), t.$b(), this.a.d -= i), i > 0; }, o.Lc = function() { return this.b.ec().Lc(); - }, w(Be, "AbstractMapBasedMultimap/KeySet", 332), b(735, 1, Wi, IW), o.Nb = function(n) { + }, w(_e, "AbstractMapBasedMultimap/KeySet", 332), b(735, 1, Wi, IW), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { return this.c.Ob(); @@ -33068,7 +33158,7 @@ function WDn() { }, o.Qb = function() { var n; ev(!!this.a), n = u(this.a.kd(), 18), this.c.Qb(), this.b.a.d -= n.gc(), n.$b(), this.a = null; - }, w(Be, "AbstractMapBasedMultimap/KeySet/1", 735), b(489, 395, { 92: 1, 134: 1 }, vy), o.bc = function() { + }, w(_e, "AbstractMapBasedMultimap/KeySet/1", 735), b(489, 395, { 92: 1, 134: 1 }, vy), o.bc = function() { return this.Qc(); }, o.ec = function() { return this.Sc(); @@ -33083,7 +33173,7 @@ function WDn() { return this.Uc().Tc(); }, o.Uc = function() { return u(this.d, 134); - }, w(Be, "AbstractMapBasedMultimap/SortedAsMap", 489), b(437, 489, yie, g6), o.bc = function() { + }, w(_e, "AbstractMapBasedMultimap/SortedAsMap", 489), b(437, 489, yie, g6), o.bc = function() { return new Um(this.a, u(u(this.d, 134), 138)); }, o.Qc = function() { return new Um(this.a, u(u(this.d, 134), 138)); @@ -33107,9 +33197,9 @@ function WDn() { return u(u(this.d, 134), 138).Zc(n); }, o.$c = function(n, t) { return new g6(this.a, u(u(this.d, 134), 138).$c(n, t)); - }, w(Be, "AbstractMapBasedMultimap/NavigableAsMap", 437), b(488, 332, iWe, W8), o.Lc = function() { + }, w(_e, "AbstractMapBasedMultimap/NavigableAsMap", 437), b(488, 332, rWe, W8), o.Lc = function() { return this.b.ec().Lc(); - }, w(Be, "AbstractMapBasedMultimap/SortedKeySet", 488), b(394, 488, jie, Um), w(Be, "AbstractMapBasedMultimap/NavigableKeySet", 394), b(539, 31, zw, _$), o.Ec = function(n) { + }, w(_e, "AbstractMapBasedMultimap/SortedKeySet", 488), b(394, 488, jie, Um), w(_e, "AbstractMapBasedMultimap/NavigableKeySet", 394), b(539, 31, zw, B$), o.Ec = function(n) { var t, i; return xs(this), i = this.d.dc(), t = this.d.Ec(n), t && (++this.f.d, i && Ey(this)), t; }, o.Fc = function(n) { @@ -33132,15 +33222,15 @@ function WDn() { var t; return xs(this), t = this.d.Kc(n), t && (--this.f.d, Zx(this)), t; }, o.gc = function() { - return Vxe(this); + return Qxe(this); }, o.Lc = function() { return xs(this), this.d.Lc(); }, o.Ib = function() { return xs(this), uc(this.d); - }, w(Be, "AbstractMapBasedMultimap/WrappedCollection", 539); + }, w(_e, "AbstractMapBasedMultimap/WrappedCollection", 539); var ro = Zt(In, "List"); b(732, 539, { 20: 1, 31: 1, 18: 1, 16: 1 }, wV), o.gd = function(n) { - _d(this, n); + Bd(this, n); }, o.Lc = function() { return xs(this), this.d.Lc(); }, o._c = function(n, t) { @@ -33154,29 +33244,29 @@ function WDn() { }, o.bd = function(n) { return xs(this), u(this.d, 16).bd(n); }, o.cd = function() { - return xs(this), new M$e(this); + return xs(this), new T$e(this); }, o.dd = function(n) { - return xs(this), new WIe(this, n); + return xs(this), new XIe(this, n); }, o.ed = function(n) { var t; return xs(this), t = u(this.d, 16).ed(n), --this.a.d, Zx(this), t; }, o.fd = function(n, t) { return xs(this), u(this.d, 16).fd(n, t); }, o.hd = function(n, t) { - return xs(this), zPe(this.a, this.e, u(this.d, 16).hd(n, t), this.b ? this.b : this); - }, w(Be, "AbstractMapBasedMultimap/WrappedList", 732), b(1095, 732, { 20: 1, 31: 1, 18: 1, 16: 1, 59: 1 }, wMe), w(Be, "AbstractMapBasedMultimap/RandomAccessWrappedList", 1095), b(619, 1, Wi, GK), o.Nb = function(n) { + return xs(this), WPe(this.a, this.e, u(this.d, 16).hd(n, t), this.b ? this.b : this); + }, w(_e, "AbstractMapBasedMultimap/WrappedList", 732), b(1095, 732, { 20: 1, 31: 1, 18: 1, 16: 1, 59: 1 }, gMe), w(_e, "AbstractMapBasedMultimap/RandomAccessWrappedList", 1095), b(619, 1, Wi, GK), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { return lv(this), this.b.Ob(); }, o.Pb = function() { return lv(this), this.b.Pb(); }, o.Qb = function() { - Y$e(this); - }, w(Be, "AbstractMapBasedMultimap/WrappedCollection/WrappedIterator", 619), b(733, 619, pl, M$e, WIe), o.Qb = function() { - Y$e(this); + Z$e(this); + }, w(_e, "AbstractMapBasedMultimap/WrappedCollection/WrappedIterator", 619), b(733, 619, pl, T$e, XIe), o.Qb = function() { + Z$e(this); }, o.Rb = function(n) { var t; - t = Vxe(this.a) == 0, (lv(this), u(this.b, 128)).Rb(n), ++this.a.a.d, t && Ey(this.a); + t = Qxe(this.a) == 0, (lv(this), u(this.b, 128)).Rb(n), ++this.a.a.d, t && Ey(this.a); }, o.Sb = function() { return (lv(this), u(this.b, 128)).Sb(); }, o.Tb = function() { @@ -33187,15 +33277,15 @@ function WDn() { return (lv(this), u(this.b, 128)).Vb(); }, o.Wb = function(n) { (lv(this), u(this.b, 128)).Wb(n); - }, w(Be, "AbstractMapBasedMultimap/WrappedList/WrappedListIterator", 733), b(731, 539, iWe, oK), o.Lc = function() { + }, w(_e, "AbstractMapBasedMultimap/WrappedList/WrappedListIterator", 733), b(731, 539, rWe, oK), o.Lc = function() { return xs(this), this.d.Lc(); - }, w(Be, "AbstractMapBasedMultimap/WrappedSortedSet", 731), b(1094, 731, jie, j$e), w(Be, "AbstractMapBasedMultimap/WrappedNavigableSet", 1094), b(1093, 539, is, JMe), o.Lc = function() { + }, w(_e, "AbstractMapBasedMultimap/WrappedSortedSet", 731), b(1094, 731, jie, E$e), w(_e, "AbstractMapBasedMultimap/WrappedNavigableSet", 1094), b(1093, 539, is, GMe), o.Lc = function() { return xs(this), this.d.Lc(); - }, w(Be, "AbstractMapBasedMultimap/WrappedSet", 1093), b(1102, 1, {}, de), o.Kb = function(n) { + }, w(_e, "AbstractMapBasedMultimap/WrappedSet", 1093), b(1102, 1, {}, de), o.Kb = function(n) { return bvn(u(n, 45)); - }, w(Be, "AbstractMapBasedMultimap/lambda$1$Type", 1102), b(1101, 1, {}, W9e), o.Kb = function(n) { + }, w(_e, "AbstractMapBasedMultimap/lambda$1$Type", 1102), b(1101, 1, {}, X9e), o.Kb = function(n) { return new O0(this.a, n); - }, w(Be, "AbstractMapBasedMultimap/lambda$2$Type", 1101); + }, w(_e, "AbstractMapBasedMultimap/lambda$2$Type", 1101); var s0 = Zt(In, "Map/Entry"); b(358, 1, QR), o.Fb = function(n) { var t; @@ -33207,29 +33297,29 @@ function WDn() { throw $(new qn()); }, o.Ib = function() { return this.jd() + "=" + this.kd(); - }, w(Be, rWe, 358), b(q1, 31, zw), o.$b = function() { + }, w(_e, cWe, 358), b(q1, 31, zw), o.$b = function() { this.md().$b(); }, o.Gc = function(n) { var t; return N(n, 45) ? (t = u(n, 45), N3n(this.md(), t.jd(), t.kd())) : !1; }, o.Kc = function(n) { var t; - return N(n, 45) ? (t = u(n, 45), CPe(this.md(), t.jd(), t.kd())) : !1; + return N(n, 45) ? (t = u(n, 45), PPe(this.md(), t.jd(), t.kd())) : !1; }, o.gc = function() { return this.md().d; - }, w(Be, "Multimaps/Entries", q1), b(737, q1, zw, wz), o.Jc = function() { + }, w(_e, "Multimaps/Entries", q1), b(737, q1, zw, wz), o.Jc = function() { return this.a.kc(); }, o.md = function() { return this.a; }, o.Lc = function() { return this.a.lc(); - }, w(Be, "AbstractMultimap/Entries", 737), b(738, 737, is, fW), o.Lc = function() { + }, w(_e, "AbstractMultimap/Entries", 737), b(738, 737, is, fW), o.Lc = function() { return this.a.lc(); }, o.Fb = function(n) { return dne(this, n); }, o.Hb = function() { - return DNe(this); - }, w(Be, "AbstractMultimap/EntrySet", 738), b(739, 31, zw, gz), o.$b = function() { + return NNe(this); + }, w(_e, "AbstractMultimap/EntrySet", 738), b(739, 31, zw, gz), o.$b = function() { this.a.$b(); }, o.Gc = function(n) { return M6n(this.a, n); @@ -33239,8 +33329,8 @@ function WDn() { return this.a.d; }, o.Lc = function() { return this.a.oc(); - }, w(Be, "AbstractMultimap/Values", 739), b(2049, 31, { 833: 1, 20: 1, 31: 1, 18: 1 }), o.Ic = function(n) { - Jn(n), o2(this).Ic(new mke(n)); + }, w(_e, "AbstractMultimap/Values", 739), b(2049, 31, { 833: 1, 20: 1, 31: 1, 18: 1 }), o.Ic = function(n) { + Jn(n), o2(this).Ic(new vke(n)); }, o.Lc = function() { var n; return n = o2(this).Lc(), KF(n, new xt(), 64 | n.wd() & 1296, this.a.d); @@ -33258,22 +33348,22 @@ function WDn() { }, o.dc = function() { return o2(this).dc(); }, o.Kc = function(n) { - return pGe(this, n, 1) > 0; + return mGe(this, n, 1) > 0; }, o.Ib = function() { return uc(o2(this)); - }, w(Be, "AbstractMultiset", 2049), b(2051, 2030, is), o.$b = function() { + }, w(_e, "AbstractMultiset", 2049), b(2051, 2030, is), o.$b = function() { cM(this.a.a); }, o.Gc = function(n) { var t, i; - return N(n, 490) ? (i = u(n, 416), u(i.a.kd(), 18).gc() <= 0 ? !1 : (t = ZCe(this.a, i.a.jd()), t == u(i.a.kd(), 18).gc())) : !1; + return N(n, 490) ? (i = u(n, 416), u(i.a.kd(), 18).gc() <= 0 ? !1 : (t = ePe(this.a, i.a.jd()), t == u(i.a.kd(), 18).gc())) : !1; }, o.Kc = function(n) { var t, i, r, c; return N(n, 490) && (i = u(n, 416), t = i.a.jd(), r = u(i.a.kd(), 18).gc(), r != 0) ? (c = this.a, vAn(c, t, r)) : !1; - }, w(Be, "Multisets/EntrySet", 2051), b(1108, 2051, is, X9e), o.Jc = function() { - return new Gje(LSe(s3(this.a.a)).Jc()); + }, w(_e, "Multisets/EntrySet", 2051), b(1108, 2051, is, K9e), o.Jc = function() { + return new Hje(DSe(s3(this.a.a)).Jc()); }, o.gc = function() { return s3(this.a.a).gc(); - }, w(Be, "AbstractMultiset/EntrySet", 1108), b(618, 730, Yd), o.hc = function() { + }, w(_e, "AbstractMultiset/EntrySet", 1108), b(618, 730, Yd), o.hc = function() { return this.nd(); }, o.jc = function() { return this.od(); @@ -33293,10 +33383,10 @@ function WDn() { }, o.qd = function(n) { return u(v7(this, n), 22); }, o.mc = function(n) { - return ze(), new Bm(u(n, 22)); + return ze(), new _m(u(n, 22)); }, o.pc = function(n, t) { - return new JMe(this, n, u(t, 22)); - }, w(Be, "AbstractSetMultimap", 618), b(1689, 618, Yd), o.hc = function() { + return new GMe(this, n, u(t, 22)); + }, w(_e, "AbstractSetMultimap", 618), b(1689, 618, Yd), o.hc = function() { return new Ma(this.b); }, o.nd = function() { return new Ma(this.b); @@ -33318,8 +33408,8 @@ function WDn() { var n; return n = this.f, n || (this.f = N(this.c, 138) ? new g6(this, u(this.c, 138)) : N(this.c, 134) ? new vy(this, u(this.c, 134)) : new qm(this, this.c)); }, o.pc = function(n, t) { - return N(t, 277) ? new j$e(this, n, u(t, 277)) : new oK(this, n, u(t, 83)); - }, w(Be, "AbstractSortedSetMultimap", 1689), b(1690, 1689, Yd), o.Zb = function() { + return N(t, 277) ? new E$e(this, n, u(t, 277)) : new oK(this, n, u(t, 83)); + }, w(_e, "AbstractSortedSetMultimap", 1689), b(1690, 1689, Yd), o.Zb = function() { var n; return n = this.f, u(u(n || (this.f = N(this.c, 138) ? new g6(this, u(this.c, 138)) : N(this.c, 134) ? new vy(this, u(this.c, 134)) : new qm(this, this.c)), 134), 138); }, o.ec = function() { @@ -33327,69 +33417,69 @@ function WDn() { return n = this.i, u(u(n || (this.i = N(this.c, 138) ? new Um(this, u(this.c, 138)) : N(this.c, 134) ? new W8(this, u(this.c, 134)) : new u2(this, this.c)), 83), 277); }, o.bc = function() { return N(this.c, 138) ? new Um(this, u(this.c, 138)) : N(this.c, 134) ? new W8(this, u(this.c, 134)) : new u2(this, this.c); - }, w(Be, "AbstractSortedKeySortedSetMultimap", 1690), b(2071, 1, { 2008: 1 }), o.Fb = function(n) { + }, w(_e, "AbstractSortedKeySortedSetMultimap", 1690), b(2071, 1, { 2008: 1 }), o.Fb = function(n) { return h7n(this, n); }, o.Hb = function() { var n; - return KY((n = this.g, n || (this.g = new BP(this)))); + return KY((n = this.g, n || (this.g = new _P(this)))); }, o.Ib = function() { var n; - return nJe((n = this.f, n || (this.f = new RX(this)))); - }, w(Be, "AbstractTable", 2071), b(669, ph, is, BP), o.$b = function() { - Zje(); + return tJe((n = this.f, n || (this.f = new RX(this)))); + }, w(_e, "AbstractTable", 2071), b(669, ph, is, _P), o.$b = function() { + eEe(); }, o.Gc = function(n) { var t, i; - return N(n, 468) ? (t = u(n, 687), i = u(Cw(rIe(this.a), k1(t.c.e, t.b)), 92), !!i && yZ(i.vc(), new O0(k1(t.c.c, t.a), d3(t.c, t.b, t.a)))) : !1; + return N(n, 468) ? (t = u(n, 687), i = u(Cw(cIe(this.a), k1(t.c.e, t.b)), 92), !!i && yZ(i.vc(), new O0(k1(t.c.c, t.a), d3(t.c, t.b, t.a)))) : !1; }, o.Jc = function() { return H2n(this.a); }, o.Kc = function(n) { var t, i; - return N(n, 468) ? (t = u(n, 687), i = u(Cw(rIe(this.a), k1(t.c.e, t.b)), 92), !!i && Q6n(i.vc(), new O0(k1(t.c.c, t.a), d3(t.c, t.b, t.a)))) : !1; + return N(n, 468) ? (t = u(n, 687), i = u(Cw(cIe(this.a), k1(t.c.e, t.b)), 92), !!i && Q6n(i.vc(), new O0(k1(t.c.c, t.a), d3(t.c, t.b, t.a)))) : !1; }, o.gc = function() { - return hSe(this.a); + return lSe(this.a); }, o.Lc = function() { return z3n(this.a); - }, w(Be, "AbstractTable/CellSet", 669), b(1987, 31, zw, K9e), o.$b = function() { - Zje(); + }, w(_e, "AbstractTable/CellSet", 669), b(1987, 31, zw, V9e), o.$b = function() { + eEe(); }, o.Gc = function(n) { return ejn(this.a, n); }, o.Jc = function() { return q2n(this.a); }, o.gc = function() { - return hSe(this.a); + return lSe(this.a); }, o.Lc = function() { - return APe(this.a); - }, w(Be, "AbstractTable/Values", 1987), b(1662, 1661, Yd), w(Be, "ArrayListMultimapGwtSerializationDependencies", 1662), b(506, 1662, Yd, wO, oQ), o.hc = function() { + return xPe(this.a); + }, w(_e, "AbstractTable/Values", 1987), b(1662, 1661, Yd), w(_e, "ArrayListMultimapGwtSerializationDependencies", 1662), b(506, 1662, Yd, wO, oQ), o.hc = function() { return new bu(this.a); - }, o.a = 0, w(Be, "ArrayListMultimap", 506), b(668, 2071, { 668: 1, 2008: 1, 3: 1 }, gGe), w(Be, "ArrayTable", 668), b(1983, 392, f5, K$e), o.Xb = function(n) { + }, o.a = 0, w(_e, "ArrayListMultimap", 506), b(668, 2071, { 668: 1, 2008: 1, 3: 1 }, pGe), w(_e, "ArrayTable", 668), b(1983, 392, f5, V$e), o.Xb = function(n) { return new eZ(this.a, n); - }, w(Be, "ArrayTable/1", 1983), b(1984, 1, {}, V9e), o.rd = function(n) { + }, w(_e, "ArrayTable/1", 1983), b(1984, 1, {}, Q9e), o.rd = function(n) { return new eZ(this.a, n); - }, w(Be, "ArrayTable/1methodref$getCell$Type", 1984), b(2072, 1, { 687: 1 }), o.Fb = function(n) { + }, w(_e, "ArrayTable/1methodref$getCell$Type", 1984), b(2072, 1, { 687: 1 }), o.Fb = function(n) { var t; return n === this ? !0 : N(n, 468) ? (t = u(n, 687), Hl(k1(this.c.e, this.b), k1(t.c.e, t.b)) && Hl(k1(this.c.c, this.a), k1(t.c.c, t.a)) && Hl(d3(this.c, this.b, this.a), d3(t.c, t.b, t.a))) : !1; }, o.Hb = function() { - return xM(I(T(Li, 1), Ve, 1, 5, [k1(this.c.e, this.b), k1(this.c.c, this.a), d3(this.c, this.b, this.a)])); + return xM(I(S(Li, 1), Ve, 1, 5, [k1(this.c.e, this.b), k1(this.c.c, this.a), d3(this.c, this.b, this.a)])); }, o.Ib = function() { return "(" + k1(this.c.e, this.b) + "," + k1(this.c.c, this.a) + ")=" + d3(this.c, this.b, this.a); - }, w(Be, "Tables/AbstractCell", 2072), b(468, 2072, { 468: 1, 687: 1 }, eZ), o.a = 0, o.b = 0, o.d = 0, w(Be, "ArrayTable/2", 468), b(1986, 1, {}, Q9e), o.rd = function(n) { - return LLe(this.a, n); - }, w(Be, "ArrayTable/2methodref$getValue$Type", 1986), b(1985, 392, f5, V$e), o.Xb = function(n) { - return LLe(this.a, n); - }, w(Be, "ArrayTable/3", 1985), b(2039, 2027, bb), o.$b = function() { + }, w(_e, "Tables/AbstractCell", 2072), b(468, 2072, { 468: 1, 687: 1 }, eZ), o.a = 0, o.b = 0, o.d = 0, w(_e, "ArrayTable/2", 468), b(1986, 1, {}, Y9e), o.rd = function(n) { + return DLe(this.a, n); + }, w(_e, "ArrayTable/2methodref$getValue$Type", 1986), b(1985, 392, f5, Q$e), o.Xb = function(n) { + return DLe(this.a, n); + }, w(_e, "ArrayTable/3", 1985), b(2039, 2027, bb), o.$b = function() { Wx(this.kc()); }, o.vc = function() { - return new dke(this); + return new bke(this); }, o.lc = function() { - return new FIe(this.kc(), this.gc()); - }, w(Be, "Maps/IteratorBasedAbstractMap", 2039), b(826, 2039, bb), o.$b = function() { + return new RIe(this.kc(), this.gc()); + }, w(_e, "Maps/IteratorBasedAbstractMap", 2039), b(826, 2039, bb), o.$b = function() { throw $(new qn()); }, o._b = function(n) { - return gEe(this.c, n); + return pEe(this.c, n); }, o.kc = function() { - return new Q$e(this, this.c.b.c.gc()); + return new Y$e(this, this.c.b.c.gc()); }, o.lc = function() { - return GL(this.c.b.c.gc(), 16, new Y9e(this)); + return GL(this.c.b.c.gc(), 16, new Z9e(this)); }, o.xc = function(n) { var t; return t = u(p6(this.c, n), 15), t ? this.td(t.a) : null; @@ -33406,78 +33496,78 @@ function WDn() { throw $(new qn()); }, o.gc = function() { return this.c.b.c.gc(); - }, w(Be, "ArrayTable/ArrayMap", 826), b(1982, 1, {}, Y9e), o.rd = function(n) { - return sIe(this.a, n); - }, w(Be, "ArrayTable/ArrayMap/0methodref$getEntry$Type", 1982), b(1980, 358, QR, qEe), o.jd = function() { + }, w(_e, "ArrayTable/ArrayMap", 826), b(1982, 1, {}, Z9e), o.rd = function(n) { + return oIe(this.a, n); + }, w(_e, "ArrayTable/ArrayMap/0methodref$getEntry$Type", 1982), b(1980, 358, QR, UEe), o.jd = function() { return ddn(this.a, this.b); }, o.kd = function() { return this.a.td(this.b); }, o.ld = function(n) { return this.a.ud(this.b, n); - }, o.b = 0, w(Be, "ArrayTable/ArrayMap/1", 1980), b(1981, 392, f5, Q$e), o.Xb = function(n) { - return sIe(this.a, n); - }, w(Be, "ArrayTable/ArrayMap/2", 1981), b(1979, 826, bb, KSe), o.sd = function() { + }, o.b = 0, w(_e, "ArrayTable/ArrayMap/1", 1980), b(1981, 392, f5, Y$e), o.Xb = function(n) { + return oIe(this.a, n); + }, w(_e, "ArrayTable/ArrayMap/2", 1981), b(1979, 826, bb, VSe), o.sd = function() { return "Column"; }, o.td = function(n) { return d3(this.b, this.a, n); }, o.ud = function(n, t) { - return gFe(this.b, this.a, n, t); - }, o.a = 0, w(Be, "ArrayTable/Row", 1979), b(827, 826, bb, RX), o.td = function(n) { - return new KSe(this.a, n); + return pFe(this.b, this.a, n, t); + }, o.a = 0, w(_e, "ArrayTable/Row", 1979), b(827, 826, bb, RX), o.td = function(n) { + return new VSe(this.a, n); }, o.yc = function(n, t) { return u(t, 92), Nln(); }, o.ud = function(n, t) { return u(t, 92), Fln(); }, o.sd = function() { return "Row"; - }, w(Be, "ArrayTable/RowMap", 827), b(1126, 1, to, UEe), o.yd = function(n) { + }, w(_e, "ArrayTable/RowMap", 827), b(1126, 1, to, zEe), o.yd = function(n) { return (this.a.wd() & -262 & n) != 0; }, o.wd = function() { return this.a.wd() & -262; }, o.xd = function() { return this.a.xd(); }, o.Nb = function(n) { - this.a.Nb(new WEe(n, this.b)); + this.a.Nb(new XEe(n, this.b)); }, o.zd = function(n) { - return this.a.zd(new zEe(n, this.b)); - }, w(Be, "CollectSpliterators/1", 1126), b(1127, 1, mn, zEe), o.Ad = function(n) { + return this.a.zd(new WEe(n, this.b)); + }, w(_e, "CollectSpliterators/1", 1126), b(1127, 1, mn, WEe), o.Ad = function(n) { this.a.Ad(this.b.Kb(n)); - }, w(Be, "CollectSpliterators/1/lambda$0$Type", 1127), b(1128, 1, mn, WEe), o.Ad = function(n) { + }, w(_e, "CollectSpliterators/1/lambda$0$Type", 1127), b(1128, 1, mn, XEe), o.Ad = function(n) { this.a.Ad(this.b.Kb(n)); - }, w(Be, "CollectSpliterators/1/lambda$1$Type", 1128), b(1123, 1, to, gTe), o.yd = function(n) { + }, w(_e, "CollectSpliterators/1/lambda$1$Type", 1128), b(1123, 1, to, pTe), o.yd = function(n) { return ((16464 | this.b) & n) != 0; }, o.wd = function() { return 16464 | this.b; }, o.xd = function() { return this.a.xd(); }, o.Nb = function(n) { - this.a.Oe(new KEe(n, this.c)); + this.a.Oe(new VEe(n, this.c)); }, o.zd = function(n) { - return this.a.Pe(new XEe(n, this.c)); - }, o.b = 0, w(Be, "CollectSpliterators/1WithCharacteristics", 1123), b(1124, 1, uj, XEe), o.Bd = function(n) { + return this.a.Pe(new KEe(n, this.c)); + }, o.b = 0, w(_e, "CollectSpliterators/1WithCharacteristics", 1123), b(1124, 1, uj, KEe), o.Bd = function(n) { this.a.Ad(this.b.rd(n)); - }, w(Be, "CollectSpliterators/1WithCharacteristics/lambda$0$Type", 1124), b(1125, 1, uj, KEe), o.Bd = function(n) { + }, w(_e, "CollectSpliterators/1WithCharacteristics/lambda$0$Type", 1124), b(1125, 1, uj, VEe), o.Bd = function(n) { this.a.Ad(this.b.rd(n)); - }, w(Be, "CollectSpliterators/1WithCharacteristics/lambda$1$Type", 1125), b(1119, 1, to), o.yd = function(n) { + }, w(_e, "CollectSpliterators/1WithCharacteristics/lambda$1$Type", 1125), b(1119, 1, to), o.yd = function(n) { return (this.a & n) != 0; }, o.wd = function() { return this.a; }, o.xd = function() { return this.e && (this.b = TX(this.b, this.e.xd())), TX(this.b, 0); }, o.Nb = function(n) { - this.e && (this.e.Nb(n), this.e = null), this.c.Nb(new VEe(this, n)), this.b = 0; + this.e && (this.e.Nb(n), this.e = null), this.c.Nb(new QEe(this, n)), this.b = 0; }, o.zd = function(n) { for (; ; ) { if (this.e && this.e.zd(n)) return s6(this.b, sj) && (this.b = qo(this.b, 1)), !0; - if (this.e = null, !this.c.zd(new cke(this))) + if (this.e = null, !this.c.zd(new uke(this))) return !1; } - }, o.a = 0, o.b = 0, w(Be, "CollectSpliterators/FlatMapSpliterator", 1119), b(1121, 1, mn, cke), o.Ad = function(n) { + }, o.a = 0, o.b = 0, w(_e, "CollectSpliterators/FlatMapSpliterator", 1119), b(1121, 1, mn, uke), o.Ad = function(n) { s0n(this.a, n); - }, w(Be, "CollectSpliterators/FlatMapSpliterator/lambda$0$Type", 1121), b(1122, 1, mn, VEe), o.Ad = function(n) { + }, w(_e, "CollectSpliterators/FlatMapSpliterator/lambda$0$Type", 1121), b(1122, 1, mn, QEe), o.Ad = function(n) { v2n(this.a, this.b, n); - }, w(Be, "CollectSpliterators/FlatMapSpliterator/lambda$1$Type", 1122), b(1120, 1119, to, tOe), w(Be, "CollectSpliterators/FlatMapSpliteratorOfObject", 1120), b(254, 1, YR), o.Dd = function(n) { + }, w(_e, "CollectSpliterators/FlatMapSpliterator/lambda$1$Type", 1122), b(1120, 1119, to, iOe), w(_e, "CollectSpliterators/FlatMapSpliteratorOfObject", 1120), b(254, 1, YR), o.Dd = function(n) { return this.Cd(u(n, 254)); }, o.Cd = function(n) { var t; @@ -33486,14 +33576,14 @@ function WDn() { return this.a; }, o.Fb = function(n) { return vee(this, n); - }, w(Be, "Cut", 254), b(1793, 254, YR, Dje), o.Cd = function(n) { + }, w(_e, "Cut", 254), b(1793, 254, YR, Nje), o.Cd = function(n) { return n == this ? 0 : 1; }, o.Ed = function(n) { throw $(new Wz()); }, o.Fd = function(n) { n.a += "+∞)"; }, o.Gd = function() { - throw $(new qr(uWe)); + throw $(new qr(sWe)); }, o.Hb = function() { return Ta(), uee(this); }, o.Hd = function(n) { @@ -33502,7 +33592,7 @@ function WDn() { return "+∞"; }; var LJ; - w(Be, "Cut/AboveAll", 1793), b(513, 254, { 254: 1, 513: 1, 3: 1, 35: 1 }, nMe), o.Ed = function(n) { + w(_e, "Cut/AboveAll", 1793), b(513, 254, { 254: 1, 513: 1, 3: 1, 35: 1 }, tMe), o.Ed = function(n) { Yc((n.a += "(", n), this.a); }, o.Fd = function(n) { Pd(Yc(n, this.a), 93); @@ -33512,14 +33602,14 @@ function WDn() { return Jx(), o7(this.a, n) < 0; }, o.Ib = function() { return "/" + this.a + "\\"; - }, w(Be, "Cut/AboveValue", 513), b(1792, 254, YR, Lje), o.Cd = function(n) { + }, w(_e, "Cut/AboveValue", 513), b(1792, 254, YR, Dje), o.Cd = function(n) { return n == this ? 0 : -1; }, o.Ed = function(n) { n.a += "(-∞"; }, o.Fd = function(n) { throw $(new Wz()); }, o.Gd = function() { - throw $(new qr(uWe)); + throw $(new qr(sWe)); }, o.Hb = function() { return Ta(), uee(this); }, o.Hd = function(n) { @@ -33528,7 +33618,7 @@ function WDn() { return "-∞"; }; var DJ; - w(Be, "Cut/BelowAll", 1792), b(1794, 254, YR, tMe), o.Ed = function(n) { + w(_e, "Cut/BelowAll", 1792), b(1794, 254, YR, iMe), o.Ed = function(n) { Yc((n.a += "[", n), this.a); }, o.Fd = function(n) { Pd(Yc(n, this.a), 41); @@ -33538,23 +33628,23 @@ function WDn() { return Jx(), o7(this.a, n) <= 0; }, o.Ib = function() { return "\\" + this.a + "/"; - }, w(Be, "Cut/BelowValue", 1794), b(535, 1, ml), o.Ic = function(n) { + }, w(_e, "Cut/BelowValue", 1794), b(535, 1, ml), o.Ic = function(n) { fr(this, n); }, o.Ib = function() { return M9n(u(g$(this, "use Optional.orNull() instead of Optional.or(null)"), 20).Jc()); - }, w(Be, "FluentIterable", 535), b(433, 535, ml, h6), o.Jc = function() { - return new fn(dn(this.a.Jc(), new Q())); - }, w(Be, "FluentIterable/2", 433), b(36, 1, {}, Q), o.Kb = function(n) { + }, w(_e, "FluentIterable", 535), b(433, 535, ml, h6), o.Jc = function() { + return new fn(dn(this.a.Jc(), new Y())); + }, w(_e, "FluentIterable/2", 433), b(36, 1, {}, Y), o.Kb = function(n) { return u(n, 20).Jc(); }, o.Fb = function(n) { return this === n; - }, w(Be, "FluentIterable/2/0methodref$iterator$Type", 36), b(1040, 535, ml, g$e), o.Jc = function() { + }, w(_e, "FluentIterable/2/0methodref$iterator$Type", 36), b(1040, 535, ml, p$e), o.Jc = function() { return ll(this); - }, w(Be, "FluentIterable/3", 1040), b(714, 392, f5, zX), o.Xb = function(n) { + }, w(_e, "FluentIterable/3", 1040), b(714, 392, f5, zX), o.Xb = function(n) { return this.a[n].Jc(); - }, w(Be, "FluentIterable/3/1", 714), b(2032, 1, {}), o.Ib = function() { + }, w(_e, "FluentIterable/3/1", 714), b(2032, 1, {}), o.Ib = function() { return uc(this.Id().b); - }, w(Be, "ForwardingObject", 2032), b(2033, 2032, sWe), o.Id = function() { + }, w(_e, "ForwardingObject", 2032), b(2033, 2032, oWe), o.Id = function() { return this.Jd(); }, o.Ic = function(n) { fr(this, n); @@ -33563,11 +33653,11 @@ function WDn() { }, o.Mc = function() { return new Ge(null, this.Lc()); }, o.Ec = function(n) { - return this.Jd(), kEe(); - }, o.Fc = function(n) { return this.Jd(), yEe(); + }, o.Fc = function(n) { + return this.Jd(), jEe(); }, o.$b = function() { - this.Jd(), jEe(); + this.Jd(), EEe(); }, o.Gc = function(n) { return this.Jd().Gc(n); }, o.Hc = function(n) { @@ -33577,14 +33667,14 @@ function WDn() { }, o.Jc = function() { return this.Jd().Jc(); }, o.Kc = function(n) { - return this.Jd(), EEe(); + return this.Jd(), AEe(); }, o.gc = function() { return this.Jd().b.gc(); }, o.Nc = function() { return this.Jd().Nc(); }, o.Oc = function(n) { return this.Jd().Oc(n); - }, w(Be, "ForwardingCollection", 2033), b(2040, 31, Eie), o.Jc = function() { + }, w(_e, "ForwardingCollection", 2033), b(2040, 31, Eie), o.Jc = function() { return this.Md(); }, o.Ec = function(n) { throw $(new qn()); @@ -33608,7 +33698,7 @@ function WDn() { } }, o.Kc = function(n) { throw $(new qn()); - }, w(Be, "ImmutableCollection", 2040), b(1259, 2040, Eie, uke), o.Jc = function() { + }, w(_e, "ImmutableCollection", 2040), b(1259, 2040, Eie, ske), o.Jc = function() { return b3(new qg(this.a.b.Jc())); }, o.Gc = function(n) { return n != null && J4(this.a, n); @@ -33626,14 +33716,14 @@ function WDn() { return OW(this.a, n); }, o.Ib = function() { return uc(this.a.b); - }, w(Be, "ForwardingImmutableCollection", 1259), b(311, 2040, h5), o.Jc = function() { + }, w(_e, "ForwardingImmutableCollection", 1259), b(311, 2040, h5), o.Jc = function() { return this.Md(); }, o.cd = function() { return this.Nd(0); }, o.dd = function(n) { return this.Nd(n); }, o.gd = function(n) { - _d(this, n); + Bd(this, n); }, o.Lc = function() { return new He(this, 16); }, o.hd = function(n, t) { @@ -33660,8 +33750,8 @@ function WDn() { throw $(new qn()); }, o.Od = function(n, t) { var i; - return PM((i = new rAe(this), new $1(i, n, t))); - }, w(Be, "ImmutableList", 311), b(2067, 311, h5), o.Jc = function() { + return PM((i = new cAe(this), new $1(i, n, t))); + }, w(_e, "ImmutableList", 311), b(2067, 311, h5), o.Jc = function() { return b3(this.Pd().Jc()); }, o.hd = function(n, t) { return PM(this.Pd().hd(n, t)); @@ -33691,7 +33781,7 @@ function WDn() { return this.Pd().Oc(n); }, o.Ib = function() { return uc(this.Pd()); - }, w(Be, "ForwardingImmutableList", 2067), b(717, 1, l5), o.vc = function() { + }, w(_e, "ForwardingImmutableList", 2067), b(717, 1, l5), o.vc = function() { return Td(this); }, o.wc = function(n) { f7(this, n); @@ -33706,9 +33796,9 @@ function WDn() { }, o.uc = function(n) { return this.Td().Gc(n); }, o.Rd = function() { - return new nke(this); - }, o.Sd = function() { return new tke(this); + }, o.Sd = function() { + return new ike(this); }, o.Fb = function(n) { return T6n(this, n); }, o.Hb = function() { @@ -33723,18 +33813,18 @@ function WDn() { return Xjn(this); }, o.Td = function() { return this.e ? this.e : this.e = this.Sd(); - }, o.c = null, o.d = null, o.e = null, w(Be, "ImmutableMap", 717), b(718, 717, l5), o._b = function(n) { - return gEe(this, n); + }, o.c = null, o.d = null, o.e = null, w(_e, "ImmutableMap", 717), b(718, 717, l5), o._b = function(n) { + return pEe(this, n); }, o.uc = function(n) { - return lAe(this.b, n); + return aAe(this.b, n); }, o.Qd = function() { - return ZFe(new rke(this)); + return eRe(new cke(this)); }, o.Rd = function() { - return ZFe(SIe(this.b)); + return eRe(IIe(this.b)); }, o.Sd = function() { - return new uke(IIe(this.b)); + return new ske(CIe(this.b)); }, o.Fb = function(n) { - return dAe(this.b, n); + return bAe(this.b, n); }, o.xc = function(n) { return p6(this, n); }, o.Hb = function() { @@ -33745,7 +33835,7 @@ function WDn() { return this.b.c.gc(); }, o.Ib = function() { return uc(this.b.c); - }, w(Be, "ForwardingImmutableMap", 718), b(2034, 2033, ZR), o.Id = function() { + }, w(_e, "ForwardingImmutableMap", 718), b(2034, 2033, ZR), o.Id = function() { return this.Ud(); }, o.Jd = function() { return this.Ud(); @@ -33755,7 +33845,7 @@ function WDn() { return n === this || this.Ud().Fb(n); }, o.Hb = function() { return this.Ud().Hb(); - }, w(Be, "ForwardingSet", 2034), b(1055, 2034, ZR, rke), o.Id = function() { + }, w(_e, "ForwardingSet", 2034), b(1055, 2034, ZR, cke), o.Id = function() { return fv(this.a.b); }, o.Jd = function() { return fv(this.a.b); @@ -33763,7 +33853,7 @@ function WDn() { if (N(n, 45) && u(n, 45).jd() == null) return !1; try { - return aAe(fv(this.a.b), n); + return dAe(fv(this.a.b), n); } catch (t) { if (t = gi(t), N(t, 211)) return !1; @@ -33773,16 +33863,16 @@ function WDn() { return fv(this.a.b); }, o.Oc = function(n) { var t, i; - return t = wCe(fv(this.a.b), n), fv(this.a.b).b.gc() < t.length && (i = t, ai(i, fv(this.a.b).b.gc(), null)), t; - }, w(Be, "ForwardingImmutableMap/1", 1055), b(2041, 2040, N3), o.Jc = function() { + return t = gCe(fv(this.a.b), n), fv(this.a.b).b.gc() < t.length && (i = t, ai(i, fv(this.a.b).b.gc(), null)), t; + }, w(_e, "ForwardingImmutableMap/1", 1055), b(2041, 2040, N3), o.Jc = function() { return this.Md(); }, o.Lc = function() { return new He(this, 1); }, o.Fb = function(n) { return dne(this, n); }, o.Hb = function() { - return DNe(this); - }, w(Be, "ImmutableSet", 2041), b(709, 2041, N3), o.Jc = function() { + return NNe(this); + }, w(_e, "ImmutableSet", 2041), b(709, 2041, N3), o.Jc = function() { return b3(new qg(this.a.b.Jc())); }, o.Gc = function(n) { return n != null && J4(this.a, n); @@ -33802,7 +33892,7 @@ function WDn() { return OW(this.a, n); }, o.Ib = function() { return uc(this.a.b); - }, w(Be, "ForwardingImmutableSet", 709), b(2035, 2034, oWe), o.Id = function() { + }, w(_e, "ForwardingImmutableSet", 709), b(2035, 2034, fWe), o.Id = function() { return this.b; }, o.Jd = function() { return this.b; @@ -33810,7 +33900,7 @@ function WDn() { return this.b; }, o.Lc = function() { return new XA(this); - }, w(Be, "ForwardingSortedSet", 2035), b(531, 2039, l5, QM), o.zc = function(n) { + }, w(_e, "ForwardingSortedSet", 2035), b(531, 2039, l5, QM), o.zc = function(n) { G6(this, n); }, o.Bc = function() { var n; @@ -33820,11 +33910,11 @@ function WDn() { }, o._b = function(n) { return !!H6(this, n, Xn(gr(vl, al(Xn(gr(n == null ? 0 : Gt(n), kl)), 15)))); }, o.uc = function(n) { - return _De(this, n); + return JDe(this, n); }, o.kc = function() { - return new sMe(this, this); + return new oMe(this, this); }, o.wc = function(n) { - $Ce(this, n); + MCe(this, n); }, o.xc = function(n) { return b2(this, n); }, o.ec = function() { @@ -33839,13 +33929,13 @@ function WDn() { }, o.vd = function() { var n; return n = this.d, new bL(n || (this.d = new HP(this))); - }, o.f = 0, o.g = 0, o.i = 0, w(Be, "HashBiMap", 531), b(532, 1, Wi), o.Nb = function(n) { + }, o.f = 0, o.g = 0, o.i = 0, w(_e, "HashBiMap", 531), b(532, 1, Wi), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { - return qPe(this); + return UPe(this); }, o.Pb = function() { var n; - if (!qPe(this)) + if (!UPe(this)) throw $(new oc()); return n = u(Jo(this.c), 308), this.c = n.c, this.f = n, --this.d, this.Vd(n); }, o.Qb = function() { @@ -33854,23 +33944,23 @@ function WDn() { if (!this.f) throw $(new qr(kie)); I2(this.e, this.f), this.b = this.e.g, this.f = null; - }, o.b = 0, o.d = 0, o.f = null, w(Be, "HashBiMap/Itr", 532), b(1005, 532, Wi, sMe), o.Vd = function(n) { - return new QEe(this, n); - }, w(Be, "HashBiMap/1", 1005), b(1006, 358, QR, QEe), o.jd = function() { + }, o.b = 0, o.d = 0, o.f = null, w(_e, "HashBiMap/Itr", 532), b(1005, 532, Wi, oMe), o.Vd = function(n) { + return new YEe(this, n); + }, w(_e, "HashBiMap/1", 1005), b(1006, 358, QR, YEe), o.jd = function() { return this.a.g; }, o.kd = function() { return this.a.i; }, o.ld = function(n) { var t, i, r; - return i = this.a.i, r = Xn(gr(vl, al(Xn(gr(n == null ? 0 : Gt(n), kl)), 15))), r == this.a.f && (z(n) === z(i) || n != null && jt(n, i)) ? n : (mFe(!q6(this.b.a, n, r), n), I2(this.b.a, this.a), t = new l$(this.a.g, this.a.a, n, r), _7(this.b.a, t, this.a), this.a.e = null, this.a.c = null, this.b.b = this.b.a.g, this.b.f == this.a && (this.b.f = t), this.a = t, i); - }, w(Be, "HashBiMap/1/MapEntry", 1006), b(245, 358, { 358: 1, 245: 1, 3: 1, 45: 1 }, O0), o.jd = function() { + return i = this.a.i, r = Xn(gr(vl, al(Xn(gr(n == null ? 0 : Gt(n), kl)), 15))), r == this.a.f && (z(n) === z(i) || n != null && jt(n, i)) ? n : (vFe(!q6(this.b.a, n, r), n), I2(this.b.a, this.a), t = new l$(this.a.g, this.a.a, n, r), B7(this.b.a, t, this.a), this.a.e = null, this.a.c = null, this.b.b = this.b.a.g, this.b.f == this.a && (this.b.f = t), this.a = t, i); + }, w(_e, "HashBiMap/1/MapEntry", 1006), b(245, 358, { 358: 1, 245: 1, 3: 1, 45: 1 }, O0), o.jd = function() { return this.g; }, o.kd = function() { return this.i; }, o.ld = function(n) { throw $(new qn()); - }, w(Be, "ImmutableEntry", 245), b(308, 245, { 358: 1, 308: 1, 245: 1, 3: 1, 45: 1 }, l$), o.a = 0, o.f = 0; - var NJ = w(Be, "HashBiMap/BiEntry", 308); + }, w(_e, "ImmutableEntry", 245), b(308, 245, { 358: 1, 308: 1, 245: 1, 3: 1, 45: 1 }, l$), o.a = 0, o.f = 0; + var NJ = w(_e, "HashBiMap/BiEntry", 308); b(609, 2039, l5, HP), o.zc = function(n) { G6(this, n); }, o.Bc = function() { @@ -33878,11 +33968,11 @@ function WDn() { }, o.$b = function() { qy(this.a); }, o._b = function(n) { - return _De(this.a, n); + return JDe(this.a, n); }, o.kc = function() { - return new oMe(this, this.a); + return new fMe(this, this.a); }, o.wc = function(n) { - Jn(n), $Ce(this.a, new ske(n)); + Jn(n), MCe(this.a, new oke(n)); }, o.xc = function(n) { return sM(this, n); }, o.ec = function() { @@ -33896,63 +33986,63 @@ function WDn() { return this.a.i; }, o.vd = function() { return new wL(this.a); - }, w(Be, "HashBiMap/Inverse", 609), b(1002, 532, Wi, oMe), o.Vd = function(n) { - return new YEe(this, n); - }, w(Be, "HashBiMap/Inverse/1", 1002), b(1003, 358, QR, YEe), o.jd = function() { + }, w(_e, "HashBiMap/Inverse", 609), b(1002, 532, Wi, fMe), o.Vd = function(n) { + return new ZEe(this, n); + }, w(_e, "HashBiMap/Inverse/1", 1002), b(1003, 358, QR, ZEe), o.jd = function() { return this.a.i; }, o.kd = function() { return this.a.g; }, o.ld = function(n) { var t, i, r; - return r = this.a.g, t = Xn(gr(vl, al(Xn(gr(n == null ? 0 : Gt(n), kl)), 15))), t == this.a.a && (z(n) === z(r) || n != null && jt(n, r)) ? n : (mFe(!H6(this.b.a.a, n, t), n), I2(this.b.a.a, this.a), i = new l$(n, t, this.a.i, this.a.f), this.a = i, _7(this.b.a.a, i, null), this.b.b = this.b.a.a.g, r); - }, w(Be, "HashBiMap/Inverse/1/InverseEntry", 1003), b(610, 530, is, bL), o.Jc = function() { - return new Rje(this.a.a); + return r = this.a.g, t = Xn(gr(vl, al(Xn(gr(n == null ? 0 : Gt(n), kl)), 15))), t == this.a.a && (z(n) === z(r) || n != null && jt(n, r)) ? n : (vFe(!H6(this.b.a.a, n, t), n), I2(this.b.a.a, this.a), i = new l$(n, t, this.a.i, this.a.f), this.a = i, B7(this.b.a.a, i, null), this.b.b = this.b.a.a.g, r); + }, w(_e, "HashBiMap/Inverse/1/InverseEntry", 1003), b(610, 530, is, bL), o.Jc = function() { + return new _je(this.a.a); }, o.Kc = function(n) { var t; return t = q6(this.a.a, n, Xn(gr(vl, al(Xn(gr(n == null ? 0 : Gt(n), kl)), 15)))), t ? (I2(this.a.a, t), !0) : !1; - }, w(Be, "HashBiMap/Inverse/InverseKeySet", 610), b(1001, 532, Wi, Rje), o.Vd = function(n) { + }, w(_e, "HashBiMap/Inverse/InverseKeySet", 610), b(1001, 532, Wi, _je), o.Vd = function(n) { return n.i; - }, w(Be, "HashBiMap/Inverse/InverseKeySet/1", 1001), b(1004, 1, {}, ske), o.Wd = function(n, t) { + }, w(_e, "HashBiMap/Inverse/InverseKeySet/1", 1001), b(1004, 1, {}, oke), o.Wd = function(n, t) { bln(this.a, n, t); - }, w(Be, "HashBiMap/Inverse/lambda$0$Type", 1004), b(608, 530, is, wL), o.Jc = function() { + }, w(_e, "HashBiMap/Inverse/lambda$0$Type", 1004), b(608, 530, is, wL), o.Jc = function() { return new Bje(this.a); }, o.Kc = function(n) { var t; return t = H6(this.a, n, Xn(gr(vl, al(Xn(gr(n == null ? 0 : Gt(n), kl)), 15)))), t ? (I2(this.a, t), t.e = null, t.c = null, !0) : !1; - }, w(Be, "HashBiMap/KeySet", 608), b(za, 532, Wi, Bje), o.Vd = function(n) { + }, w(_e, "HashBiMap/KeySet", 608), b(za, 532, Wi, Bje), o.Vd = function(n) { return n.g; - }, w(Be, "HashBiMap/KeySet/1", za), b(1092, 618, Yd), w(Be, "HashMultimapGwtSerializationDependencies", 1092), b(272, 1092, Yd, W0), o.hc = function() { + }, w(_e, "HashBiMap/KeySet/1", za), b(1092, 618, Yd), w(_e, "HashMultimapGwtSerializationDependencies", 1092), b(272, 1092, Yd, W0), o.hc = function() { return new OA(Sw(this.a)); }, o.nd = function() { return new OA(Sw(this.a)); - }, o.a = 2, w(Be, "HashMultimap", 272), b(2059, 311, h5), o.Gc = function(n) { + }, o.a = 2, w(_e, "HashMultimap", 272), b(2059, 311, h5), o.Gc = function(n) { return this.Xd().Gc(n); }, o.dc = function() { return this.Xd().dc(); }, o.gc = function() { return this.Xd().gc(); - }, w(Be, "ImmutableAsList", 2059), b(1992, 718, l5), o.Td = function() { + }, w(_e, "ImmutableAsList", 2059), b(1992, 718, l5), o.Td = function() { return new Ip(this.a); }, o.Bc = function() { return new Ip(this.a); }, o.vd = function() { return new Ip(this.a); - }, w(Be, "ImmutableBiMap", 1992), b(2037, 1, {}), w(Be, "ImmutableCollection/Builder", 2037), b(1016, 709, N3, _je), w(Be, "ImmutableEnumSet", 1016), b(962, 392, f5, bTe), o.Xb = function(n) { + }, w(_e, "ImmutableBiMap", 1992), b(2037, 1, {}), w(_e, "ImmutableCollection/Builder", 2037), b(1016, 709, N3, Jje), w(_e, "ImmutableEnumSet", 1016), b(962, 392, f5, wTe), o.Xb = function(n) { return this.a.Xb(n); - }, w(Be, "ImmutableList/1", 962), b(961, 2037, {}, WMe), w(Be, "ImmutableList/Builder", 961), b(613, 204, o5, _P), o.Ob = function() { + }, w(_e, "ImmutableList/1", 962), b(961, 2037, {}, XMe), w(_e, "ImmutableList/Builder", 961), b(613, 204, o5, BP), o.Ob = function() { return this.a.Ob(); }, o.Pb = function() { return u(this.a.Pb(), 45).jd(); - }, w(Be, "ImmutableMap/1", 613), b(1035, 1, {}, Oe), o.Kb = function(n) { + }, w(_e, "ImmutableMap/1", 613), b(1035, 1, {}, Oe), o.Kb = function(n) { return u(n, 45).jd(); - }, w(Be, "ImmutableMap/2methodref$getKey$Type", 1035), b(1034, 1, {}, XMe), w(Be, "ImmutableMap/Builder", 1034), b(2060, 2041, N3), o.Kd = function() { + }, w(_e, "ImmutableMap/2methodref$getKey$Type", 1035), b(1034, 1, {}, KMe), w(_e, "ImmutableMap/Builder", 1034), b(2060, 2041, N3), o.Kd = function() { var n; return n = this.b, n || (this.b = new JP(this)); }, o.Ld = function() { return new HK(this, s9(this, W(Li, Ve, 1, this.gc(), 5, 1))); - }, w(Be, "ImmutableSet/CachingAsList", 2060), b(2061, 2060, N3), o.Jc = function() { + }, w(_e, "ImmutableSet/CachingAsList", 2060), b(2061, 2060, N3), o.Jc = function() { var n; - return n = Td(this.a).Md(), new _P(n); + return n = Td(this.a).Md(), new BP(n); }, o.Ld = function() { return new JP(this); }, o.Ic = function(n) { @@ -33963,76 +34053,76 @@ function WDn() { var n; return n = this.b, kL(n || (this.b = new JP(this)), 0); }, o.Lc = function() { - return GL(this.gc(), 1296, new ike(this)); - }, w(Be, "IndexedImmutableSet", 2061), b(1195, 2061, N3, nke), o.Jc = function() { + return GL(this.gc(), 1296, new rke(this)); + }, w(_e, "IndexedImmutableSet", 2061), b(1195, 2061, N3, tke), o.Jc = function() { var n; - return n = Td(this.a).Md(), new _P(n); + return n = Td(this.a).Md(), new BP(n); }, o.Gc = function(n) { return this.a._b(n); }, o.Ic = function(n) { - Jn(n), f7(this.a, new eke(n)); + Jn(n), f7(this.a, new nke(n)); }, o.Md = function() { var n; - return n = Td(this.a).Md(), new _P(n); + return n = Td(this.a).Md(), new BP(n); }, o.gc = function() { return this.a.gc(); }, o.Lc = function() { return $y(Td(this.a).Lc(), new Oe()); - }, w(Be, "ImmutableMapKeySet", 1195), b(1196, 1, {}, eke), o.Wd = function(n, t) { + }, w(_e, "ImmutableMapKeySet", 1195), b(1196, 1, {}, nke), o.Wd = function(n, t) { this.a.Ad(n); - }, w(Be, "ImmutableMapKeySet/lambda$0$Type", 1196), b(1192, 2040, Eie, tke), o.Jc = function() { - return new _L(this); + }, w(_e, "ImmutableMapKeySet/lambda$0$Type", 1196), b(1192, 2040, Eie, ike), o.Jc = function() { + return new BL(this); }, o.Kd = function() { var n; - return n = Td(this.a).Kd(), new ZEe(this, n); + return n = Td(this.a).Kd(), new eAe(this, n); }, o.Gc = function(n) { - return n != null && f7n(new _L(this), n); + return n != null && f7n(new BL(this), n); }, o.Md = function() { - return new _L(this); + return new BL(this); }, o.gc = function() { return this.a.gc(); }, o.Lc = function() { return $y(Td(this.a).Lc(), new Ne()); - }, w(Be, "ImmutableMapValues", 1192), b(1193, 1, {}, Ne), o.Kb = function(n) { + }, w(_e, "ImmutableMapValues", 1192), b(1193, 1, {}, Ne), o.Kb = function(n) { return u(n, 45).kd(); - }, w(Be, "ImmutableMapValues/0methodref$getValue$Type", 1193), b(628, 204, o5, _L), o.Ob = function() { + }, w(_e, "ImmutableMapValues/0methodref$getValue$Type", 1193), b(628, 204, o5, BL), o.Ob = function() { return this.a.Ob(); }, o.Pb = function() { return u(this.a.Pb(), 45).kd(); - }, w(Be, "ImmutableMapValues/1", 628), b(1194, 2059, h5, ZEe), o.Xd = function() { + }, w(_e, "ImmutableMapValues/1", 628), b(1194, 2059, h5, eAe), o.Xd = function() { return this.a; }, o.Xb = function(n) { return u(this.b.Xb(n), 45).kd(); - }, w(Be, "ImmutableMapValues/2", 1194), b(1197, 1, {}, ike), o.rd = function(n) { - return fIe(this.a, n); - }, w(Be, "IndexedImmutableSet/0methodref$get$Type", 1197), b(629, 2059, h5, JP), o.Xd = function() { + }, w(_e, "ImmutableMapValues/2", 1194), b(1197, 1, {}, rke), o.rd = function(n) { + return hIe(this.a, n); + }, w(_e, "IndexedImmutableSet/0methodref$get$Type", 1197), b(629, 2059, h5, JP), o.Xd = function() { return this.a; }, o.Xb = function(n) { - return fIe(this.a, n); + return hIe(this.a, n); }, o.gc = function() { return this.a.a.gc(); - }, w(Be, "IndexedImmutableSet/1", 629), b(1036, 535, ml, QTe), o.Ic = function(n) { - Jn(n), this.b.Ic(new eAe(this.a, n)); + }, w(_e, "IndexedImmutableSet/1", 629), b(1036, 535, ml, YTe), o.Ic = function(n) { + Jn(n), this.b.Ic(new nAe(this.a, n)); }, o.Jc = function() { return $X(this); - }, w(Be, "Iterables/4", 1036), b(1037, 1, mn, eAe), o.Ad = function(n) { + }, w(_e, "Iterables/4", 1036), b(1037, 1, mn, nAe), o.Ad = function(n) { Fan(this.b, this.a, n); - }, w(Be, "Iterables/4/lambda$0$Type", 1037), b(1038, 535, ml, YTe), o.Ic = function(n) { - Jn(n), fr(this.a, new nAe(n, this.b)); + }, w(_e, "Iterables/4/lambda$0$Type", 1037), b(1038, 535, ml, ZTe), o.Ic = function(n) { + Jn(n), fr(this.a, new tAe(n, this.b)); }, o.Jc = function() { return dn(new kn(this.a), this.b); - }, w(Be, "Iterables/5", 1038), b(1039, 1, mn, nAe), o.Ad = function(n) { - this.a.Ad(m$e(n)); - }, w(Be, "Iterables/5/lambda$0$Type", 1039), b(1057, 204, o5, oke), o.Ob = function() { + }, w(_e, "Iterables/5", 1038), b(1039, 1, mn, tAe), o.Ad = function(n) { + this.a.Ad(v$e(n)); + }, w(_e, "Iterables/5/lambda$0$Type", 1039), b(1057, 204, o5, fke), o.Ob = function() { return this.a.Ob(); }, o.Pb = function() { return this.a.Pb(); - }, w(Be, "Iterators/1", 1057), b(1058, 702, o5, tAe), o.Yb = function() { + }, w(_e, "Iterators/1", 1057), b(1058, 702, o5, iAe), o.Yb = function() { for (var n; this.b.Ob(); ) if (n = this.b.Pb(), this.a.Lb(n)) return n; return this.e = 2, null; - }, w(Be, "Iterators/5", 1058), b(483, 1, Wi), o.Nb = function(n) { + }, w(_e, "Iterators/5", 1058), b(483, 1, Wi), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { return this.b.Ob(); @@ -34040,13 +34130,13 @@ function WDn() { return this.Yd(this.b.Pb()); }, o.Qb = function() { this.b.Qb(); - }, w(Be, "TransformedIterator", 483), b(1059, 483, Wi, fMe), o.Yd = function(n) { + }, w(_e, "TransformedIterator", 483), b(1059, 483, Wi, hMe), o.Yd = function(n) { return this.a.Kb(n); - }, w(Be, "Iterators/6", 1059), b(1056, 392, f5, uSe), o.Xb = function(n) { + }, w(_e, "Iterators/6", 1059), b(1056, 392, f5, sSe), o.Xb = function(n) { return this.a[n]; }; - var FQe; - w(Be, "Iterators/ArrayItr", 1056), b(34, 1, { 34: 1, 50: 1 }, fn), o.Nb = function(n) { + var RQe; + w(_e, "Iterators/ArrayItr", 1056), b(34, 1, { 34: 1, 50: 1 }, fn), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { return xn(this); @@ -34056,8 +34146,8 @@ function WDn() { if (!this.c) throw $(new qr(kie)); this.c.Qb(), this.c = null; - }, w(Be, "Iterators/ConcatenatedIterator", 34), b(23, 1, { 3: 1, 35: 1, 23: 1 }), o.Dd = function(n) { - return zje(this, u(n, 23)); + }, w(_e, "Iterators/ConcatenatedIterator", 34), b(23, 1, { 3: 1, 35: 1, 23: 1 }), o.Dd = function(n) { + return Wje(this, u(n, 23)); }, o.Fb = function(n) { return this === n; }, o.Hb = function() { @@ -34065,8 +34155,8 @@ function WDn() { }, o.Ib = function() { return jL(this); }, o.g = 0; - var Bn = w(xc, "Enum", 23); - b(537, 23, { 537: 1, 3: 1, 35: 1, 23: 1, 50: 1 }, J$e), o.Nb = function(n) { + var _n = w(xc, "Enum", 23); + b(537, 23, { 537: 1, 3: 1, 35: 1, 23: 1, 50: 1 }, G$e), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { return !1; @@ -34075,21 +34165,21 @@ function WDn() { }, o.Qb = function() { ev(!1); }; - var FJ, RQe = Pn(Be, "Iterators/EmptyModifiableIterator", 537, Bn, o2n, bdn), BQe; + var FJ, _Qe = Pn(_e, "Iterators/EmptyModifiableIterator", 537, _n, o2n, bdn), BQe; b(720, 204, o5, vz), o.Ob = function() { return !this.a; }, o.Pb = function() { if (this.a) throw $(new oc()); return this.a = !0, this.b; - }, o.a = !1, w(Be, "Iterators/SingletonIterator", 720), b(1877, 618, Yd), w(Be, "LinkedHashMultimapGwtSerializationDependencies", 1877), b(1878, 1877, Yd, cRe), o.hc = function() { + }, o.a = !1, w(_e, "Iterators/SingletonIterator", 720), b(1877, 618, Yd), w(_e, "LinkedHashMultimapGwtSerializationDependencies", 1877), b(1878, 1877, Yd, uRe), o.hc = function() { return new vL(Sw(this.b)); }, o.$b = function() { cM(this), G8(this.a, this.a); }, o.nd = function() { return new vL(Sw(this.b)); }, o.ic = function(n) { - return new UFe(this, n, this.b); + return new zFe(this, n, this.b); }, o.kc = function() { return new TV(this); }, o.lc = function() { @@ -34103,30 +34193,30 @@ function WDn() { }, o.oc = function() { var n; return $y(new He((n = this.g, u(n || (this.g = new fW(this)), 22)), 17), new ft()); - }, o.b = 2, w(Be, "LinkedHashMultimap", 1878), b(1881, 1, {}, ft), o.Kb = function(n) { + }, o.b = 2, w(_e, "LinkedHashMultimap", 1878), b(1881, 1, {}, ft), o.Kb = function(n) { return u(n, 45).kd(); - }, w(Be, "LinkedHashMultimap/0methodref$getValue$Type", 1881), b(818, 1, Wi, TV), o.Nb = function(n) { + }, w(_e, "LinkedHashMultimap/0methodref$getValue$Type", 1881), b(818, 1, Wi, TV), o.Nb = function(n) { cr(this, n); }, o.Pb = function() { return D4n(this); }, o.Ob = function() { return this.a != this.b.a; }, o.Qb = function() { - ev(!!this.c), CPe(this.b, this.c.g, this.c.i), this.c = null; - }, w(Be, "LinkedHashMultimap/1", 818), b(227, 245, { 358: 1, 245: 1, 227: 1, 593: 1, 3: 1, 45: 1 }, RV), o.Zd = function() { + ev(!!this.c), PPe(this.b, this.c.g, this.c.i), this.c = null; + }, w(_e, "LinkedHashMultimap/1", 818), b(227, 245, { 358: 1, 245: 1, 227: 1, 593: 1, 3: 1, 45: 1 }, RV), o.Zd = function() { return u(Jo(this.f), 593); }, o.$d = function(n) { this.c = n; }, o._d = function(n) { this.f = n; }, o.d = 0; - var _Qe = w(Be, "LinkedHashMultimap/ValueEntry", 227); - b(1879, 2030, { 593: 1, 20: 1, 31: 1, 18: 1, 22: 1 }, UFe), o.Ec = function(n) { + var JQe = w(_e, "LinkedHashMultimap/ValueEntry", 227); + b(1879, 2030, { 593: 1, 20: 1, 31: 1, 18: 1, 22: 1 }, zFe), o.Ec = function(n) { var t, i, r, c, s; for (s = Xn(gr(vl, al(Xn(gr(n == null ? 0 : Gt(n), kl)), 15))), t = s & this.b.length - 1, c = this.b[t], i = c; i; i = i.a) if (i.d == s && Hl(i.i, n)) return !1; - return r = new RV(this.c, n, s, c), rEe(this.d, r), r.f = this, this.d = r, G8(u(Jo(this.g.a.b), 227), r), G8(r, this.g.a), this.b[t] = r, ++this.f, ++this.e, u7n(this), !0; + return r = new RV(this.c, n, s, c), cEe(this.d, r), r.f = this, this.d = r, G8(u(Jo(this.g.a.b), 227), r), G8(r, this.g.a), this.b[t] = r, ++this.f, ++this.e, u7n(this), !0; }, o.$b = function() { var n, t; for (Z8(this.b, null), this.f = 0, n = this.a; n != this; n = n.Zd()) @@ -34145,16 +34235,16 @@ function WDn() { }, o.Zd = function() { return this.a; }, o.Jc = function() { - return new wIe(this); + return new gIe(this); }, o.Kc = function(n) { - return _He(this, n); + return JHe(this, n); }, o.$d = function(n) { this.d = n; }, o._d = function(n) { this.a = n; }, o.gc = function() { return this.f; - }, o.e = 0, o.f = 0, w(Be, "LinkedHashMultimap/ValueSet", 1879), b(1880, 1, Wi, wIe), o.Nb = function(n) { + }, o.e = 0, o.f = 0, w(_e, "LinkedHashMultimap/ValueSet", 1879), b(1880, 1, Wi, gIe), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { return sV(this), this.b != this.c; @@ -34164,10 +34254,10 @@ function WDn() { throw $(new oc()); return n = u(this.b, 227), t = n.i, this.d = n, this.b = u(Jo(n.f), 593), t; }, o.Qb = function() { - sV(this), ev(!!this.d), _He(this.c, this.d.i), this.a = this.c.e, this.d = null; - }, o.a = 0, w(Be, "LinkedHashMultimap/ValueSet/1", 1880), b(767, 2046, Yd, r$e), o.Zb = function() { + sV(this), ev(!!this.d), JHe(this.c, this.d.i), this.a = this.c.e, this.d = null; + }, o.a = 0, w(_e, "LinkedHashMultimap/ValueSet/1", 1880), b(767, 2046, Yd, c$e), o.Zb = function() { var n; - return n = this.f, n || (this.f = new _W(this)); + return n = this.f, n || (this.f = new BW(this)); }, o.Fb = function(n) { return GN(this, n); }, o.cc = function(n) { @@ -34175,13 +34265,13 @@ function WDn() { }, o.fc = function(n) { return UQ(this, n); }, o.$b = function() { - tIe(this); + iIe(this); }, o._b = function(n) { - return oAe(this, n); + return fAe(this, n); }, o.ac = function() { - return new _W(this); + return new BW(this); }, o.bc = function() { - return new ake(this); + return new dke(this); }, o.qc = function(n) { return new kO(this, n); }, o.dc = function() { @@ -34190,8 +34280,8 @@ function WDn() { return UQ(this, n); }, o.gc = function() { return this.d; - }, o.c = 0, o.d = 0, w(Be, "LinkedListMultimap", 767), b(56, 31, a5), o.gd = function(n) { - _d(this, n); + }, o.c = 0, o.d = 0, w(_e, "LinkedListMultimap", 767), b(56, 31, a5), o.gd = function(n) { + Bd(this, n); }, o.Lc = function() { return new He(this, 16); }, o._c = function(n, t) { @@ -34210,7 +34300,7 @@ function WDn() { }, o.Hb = function() { return rZ(this); }, o.bd = function(n) { - return lNe(this, n); + return aNe(this, n); }, o.Jc = function() { return new T4(this); }, o.cd = function() { @@ -34230,13 +34320,13 @@ function WDn() { }, o.j = 0, w(In, "AbstractList", 56), b(2024, 56, a5), o._c = function(n, t) { Qm(this, n, t); }, o.ad = function(n, t) { - return zFe(this, n, t); + return WFe(this, n, t); }, o.Xb = function(n) { return qc(this, n); }, o.Jc = function() { return this.dd(0); }, o.ed = function(n) { - return BF(this, n); + return _F(this, n); }, o.fd = function(n, t) { var i, r; i = this.dd(n); @@ -34246,19 +34336,19 @@ function WDn() { throw c = gi(c), N(c, 112) ? $(new lu("Can't set element " + n)) : $(c); } }, w(In, "AbstractSequentialList", 2024), b(636, 2024, a5, kO), o.dd = function(n) { - return iMe(this, n); + return rMe(this, n); }, o.gc = function() { var n; return n = u(rn(this.a.b, this.b), 262), n ? n.a : 0; - }, w(Be, "LinkedListMultimap/1", 636), b(1280, 2030, is, ake), o.Gc = function(n) { - return oAe(this.a, n); + }, w(_e, "LinkedListMultimap/1", 636), b(1280, 2030, is, dke), o.Gc = function(n) { + return fAe(this.a, n); }, o.Jc = function() { - return new INe(this.a); + return new CNe(this.a); }, o.Kc = function(n) { return !UQ(this.a, n).a.dc(); }, o.gc = function() { return G4(this.a.b); - }, w(Be, "LinkedListMultimap/1KeySetImpl", 1280), b(1279, 1, Wi, INe), o.Nb = function(n) { + }, w(_e, "LinkedListMultimap/1KeySetImpl", 1280), b(1279, 1, Wi, CNe), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { return uV(this), !!this.c; @@ -34272,14 +34362,14 @@ function WDn() { return this.a.a; }, o.Qb = function() { uV(this), ev(!!this.a), Wx(new uN(this.e, this.a.a)), this.a = null, this.b = this.e.c; - }, o.b = 0, w(Be, "LinkedListMultimap/DistinctKeyIterator", 1279), b(262, 1, { 262: 1 }, XV), o.a = 0, w(Be, "LinkedListMultimap/KeyList", 262), b(497, 358, { 358: 1, 497: 1, 45: 1 }, iAe), o.jd = function() { + }, o.b = 0, w(_e, "LinkedListMultimap/DistinctKeyIterator", 1279), b(262, 1, { 262: 1 }, XV), o.a = 0, w(_e, "LinkedListMultimap/KeyList", 262), b(497, 358, { 358: 1, 497: 1, 45: 1 }, rAe), o.jd = function() { return this.a; }, o.kd = function() { return this.f; }, o.ld = function(n) { var t; return t = this.f, this.f = n, t; - }, w(Be, "LinkedListMultimap/Node", 497), b(555, 1, pl, uN, zJe), o.Nb = function(n) { + }, w(_e, "LinkedListMultimap/Node", 497), b(555, 1, pl, uN, WJe), o.Nb = function(n) { cr(this, n); }, o.Rb = function(n) { this.e = Pte(this.f, this.b, n, this.c), ++this.d, this.a = null; @@ -34292,14 +34382,14 @@ function WDn() { }, o.Tb = function() { return this.d; }, o.Ub = function() { - return mDe(this); + return vDe(this); }, o.Vb = function() { return this.d - 1; }, o.Qb = function() { ev(!!this.a), this.a != this.c ? (this.e = this.a.e, --this.d) : this.c = this.a.c, s$n(this.f, this.a), this.a = null; }, o.Wb = function(n) { JX(!!this.a), this.a.f = n; - }, o.d = 0, w(Be, "LinkedListMultimap/ValueForKeyIterator", 555), b(1012, 56, a5), o._c = function(n, t) { + }, o.d = 0, w(_e, "LinkedListMultimap/ValueForKeyIterator", 555), b(1012, 56, a5), o._c = function(n, t) { this.a._c(n, t); }, o.ad = function(n, t) { return this.a.ad(n, t); @@ -34313,29 +34403,29 @@ function WDn() { return this.a.fd(n, t); }, o.gc = function() { return this.a.gc(); - }, w(Be, "Lists/AbstractListWrapper", 1012), b(1013, 1012, hWe), w(Be, "Lists/RandomAccessListWrapper", 1013), b(1015, 1013, hWe, rAe), o.dd = function(n) { + }, w(_e, "Lists/AbstractListWrapper", 1012), b(1013, 1012, lWe), w(_e, "Lists/RandomAccessListWrapper", 1013), b(1015, 1013, lWe, cAe), o.dd = function(n) { return this.a.dd(n); - }, w(Be, "Lists/1", 1015), b(432, 56, { 432: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1 }, CW), o._c = function(n, t) { + }, w(_e, "Lists/1", 1015), b(432, 56, { 432: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1 }, CW), o._c = function(n, t) { this.a._c(cv(this, n), t); }, o.$b = function() { this.a.$b(); }, o.Xb = function(n) { return this.a.Xb(MV(this, n)); }, o.Jc = function() { - return rPe(this, 0); + return cPe(this, 0); }, o.dd = function(n) { - return rPe(this, n); + return cPe(this, n); }, o.ed = function(n) { return this.a.ed(MV(this, n)); }, o.ae = function(n, t) { - (DPe(n, t, this.a.gc()), _s(this.a.hd(cv(this, t), cv(this, n)))).$b(); + (NPe(n, t, this.a.gc()), Bs(this.a.hd(cv(this, t), cv(this, n)))).$b(); }, o.fd = function(n, t) { return this.a.fd(MV(this, n), t); }, o.gc = function() { return this.a.gc(); }, o.hd = function(n, t) { - return DPe(n, t, this.a.gc()), _s(this.a.hd(cv(this, t), cv(this, n))); - }, w(Be, "Lists/ReverseList", 432), b(1011, 432, { 432: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1 }, Jje), w(Be, "Lists/RandomAccessReverseList", 1011), b(1014, 1, pl, cAe), o.Nb = function(n) { + return NPe(n, t, this.a.gc()), Bs(this.a.hd(cv(this, t), cv(this, n))); + }, w(_e, "Lists/ReverseList", 432), b(1011, 432, { 432: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 59: 1 }, Gje), w(_e, "Lists/RandomAccessReverseList", 1011), b(1014, 1, pl, uAe), o.Nb = function(n) { cr(this, n); }, o.Rb = function(n) { this.c.Rb(n), this.c.Ub(), this.a = !1; @@ -34359,13 +34449,13 @@ function WDn() { ev(this.a), this.c.Qb(), this.a = !1; }, o.Wb = function(n) { JX(this.a), this.c.Wb(n); - }, o.a = !1, w(Be, "Lists/ReverseList/1", 1014), b(431, 483, Wi, N4), o.Yd = function(n) { + }, o.a = !1, w(_e, "Lists/ReverseList/1", 1014), b(431, 483, Wi, N4), o.Yd = function(n) { return qA(n); - }, w(Be, "Maps/1", 431), b(701, 483, Wi, lW), o.Yd = function(n) { + }, w(_e, "Maps/1", 431), b(701, 483, Wi, lW), o.Yd = function(n) { return u(n, 45).kd(); - }, w(Be, "Maps/2", 701), b(958, 483, Wi, hMe), o.Yd = function(n) { - return new O0(n, pEe(this.a, n)); - }, w(Be, "Maps/3", 958), b(955, 2031, is, dke), o.Ic = function(n) { + }, w(_e, "Maps/2", 701), b(958, 483, Wi, lMe), o.Yd = function(n) { + return new O0(n, mEe(this.a, n)); + }, w(_e, "Maps/3", 958), b(955, 2031, is, bke), o.Ic = function(n) { kln(this.a, n); }, o.Jc = function() { return this.a.kc(); @@ -34373,14 +34463,14 @@ function WDn() { return this.a; }, o.Lc = function() { return this.a.lc(); - }, w(Be, "Maps/IteratorBasedAbstractMap/1", 955), b(956, 1, {}, hke), o.Wd = function(n, t) { + }, w(_e, "Maps/IteratorBasedAbstractMap/1", 955), b(956, 1, {}, lke), o.Wd = function(n, t) { this.a.Ad(n); - }, w(Be, "Maps/KeySet/lambda$0$Type", 956), b(954, 31, zw, uAe), o.$b = function() { + }, w(_e, "Maps/KeySet/lambda$0$Type", 956), b(954, 31, zw, sAe), o.$b = function() { this.a.$b(); }, o.Gc = function(n) { return this.a.uc(n); }, o.Ic = function(n) { - Jn(n), this.a.wc(new lke(n)); + Jn(n), this.a.wc(new ake(n)); }, o.dc = function() { return this.a.dc(); }, o.Jc = function() { @@ -34399,9 +34489,9 @@ function WDn() { } }, o.gc = function() { return this.a.gc(); - }, w(Be, "Maps/Values", 954), b(957, 1, {}, lke), o.Wd = function(n, t) { + }, w(_e, "Maps/Values", 954), b(957, 1, {}, ake), o.Wd = function(n, t) { this.a.Ad(t); - }, w(Be, "Maps/Values/lambda$0$Type", 957), b(740, 2047, bb, _W), o.xc = function(n) { + }, w(_e, "Maps/Values/lambda$0$Type", 957), b(740, 2047, bb, BW), o.xc = function(n) { return this.a._b(n) ? this.a.cc(n) : null; }, o.Ac = function(n) { return this.a._b(n) ? this.a.fc(n) : null; @@ -34410,7 +34500,7 @@ function WDn() { }, o._b = function(n) { return this.a._b(n); }, o.Dc = function() { - return new wke(this); + return new gke(this); }, o.Cc = function() { return this.Dc(); }, o.dc = function() { @@ -34419,34 +34509,34 @@ function WDn() { return this.a.ec(); }, o.gc = function() { return this.a.ec().gc(); - }, w(Be, "Multimaps/AsMap", 740), b(1103, 2031, is, wke), o.Jc = function() { - return _1n(this.a.a.ec(), new fke(this)); + }, w(_e, "Multimaps/AsMap", 740), b(1103, 2031, is, gke), o.Jc = function() { + return B1n(this.a.a.ec(), new hke(this)); }, o.Pc = function() { return this.a; }, o.Kc = function(n) { var t; - return QRe(this, n) ? (t = u(Jo(u(n, 45)), 45), Iln(this.a, t.jd()), !0) : !1; - }, w(Be, "Multimaps/AsMap/EntrySet", 1103), b(1107, 1, {}, fke), o.Kb = function(n) { - return pEe(this, n); + return YRe(this, n) ? (t = u(Jo(u(n, 45)), 45), Iln(this.a, t.jd()), !0) : !1; + }, w(_e, "Multimaps/AsMap/EntrySet", 1103), b(1107, 1, {}, hke), o.Kb = function(n) { + return mEe(this, n); }, o.Fb = function(n) { return this === n; - }, w(Be, "Multimaps/AsMap/EntrySet/lambda$0$Type", 1107), b(540, 2049, { 540: 1, 833: 1, 20: 1, 31: 1, 18: 1 }, gke), o.$b = function() { + }, w(_e, "Multimaps/AsMap/EntrySet/lambda$0$Type", 1107), b(540, 2049, { 540: 1, 833: 1, 20: 1, 31: 1, 18: 1 }, pke), o.$b = function() { cM(this.a); }, o.Gc = function(n) { - return wEe(this.a, n); + return gEe(this.a, n); }, o.Ic = function(n) { - Jn(n), fr($6(this.a), new bke(n)); + Jn(n), fr($6(this.a), new wke(n)); }, o.Jc = function() { return new N4($6(this.a).a.kc()); }, o.gc = function() { return this.a.d; }, o.Lc = function() { return $y($6(this.a).Lc(), new Fn()); - }, w(Be, "Multimaps/Keys", 540), b(1105, 1, {}, Fn), o.Kb = function(n) { + }, w(_e, "Multimaps/Keys", 540), b(1105, 1, {}, Fn), o.Kb = function(n) { return u(n, 45).jd(); - }, w(Be, "Multimaps/Keys/0methodref$getKey$Type", 1105), b(1104, 483, Wi, Gje), o.Yd = function(n) { - return new pke(u(n, 45)); - }, w(Be, "Multimaps/Keys/1", 1104), b(2050, 1, { 416: 1 }), o.Fb = function(n) { + }, w(_e, "Multimaps/Keys/0methodref$getKey$Type", 1105), b(1104, 483, Wi, Hje), o.Yd = function(n) { + return new mke(u(n, 45)); + }, w(_e, "Multimaps/Keys/1", 1104), b(2050, 1, { 416: 1 }), o.Fb = function(n) { var t; return N(n, 490) ? (t = u(n, 416), u(this.a.kd(), 18).gc() == u(t.a.kd(), 18).gc() && Hl(this.a.jd(), t.a.jd())) : !1; }, o.Hb = function() { @@ -34455,26 +34545,26 @@ function WDn() { }, o.Ib = function() { var n, t; return t = b6(this.a.jd()), n = u(this.a.kd(), 18).gc(), n == 1 ? t : t + " x " + n; - }, w(Be, "Multisets/AbstractEntry", 2050), b(490, 2050, { 490: 1, 416: 1 }, pke), w(Be, "Multimaps/Keys/1/1", 490), b(1106, 1, mn, bke), o.Ad = function(n) { + }, w(_e, "Multisets/AbstractEntry", 2050), b(490, 2050, { 490: 1, 416: 1 }, mke), w(_e, "Multimaps/Keys/1/1", 490), b(1106, 1, mn, wke), o.Ad = function(n) { this.a.Ad(u(n, 45).jd()); - }, w(Be, "Multimaps/Keys/lambda$1$Type", 1106), b(1109, 1, mn, Tt), o.Ad = function(n) { + }, w(_e, "Multimaps/Keys/lambda$1$Type", 1106), b(1109, 1, mn, Tt), o.Ad = function(n) { Ywn(u(n, 416)); - }, w(Be, "Multiset/lambda$0$Type", 1109), b(741, 1, mn, mke), o.Ad = function(n) { + }, w(_e, "Multiset/lambda$0$Type", 1109), b(741, 1, mn, vke), o.Ad = function(n) { E5n(this.a, u(n, 416)); - }, w(Be, "Multiset/lambda$1$Type", 741), b(1110, 1, {}, Kt), w(Be, "Multisets/0methodref$add$Type", 1110), b(742, 1, {}, xt), o.Kb = function(n) { + }, w(_e, "Multiset/lambda$1$Type", 741), b(1110, 1, {}, Kt), w(_e, "Multisets/0methodref$add$Type", 1110), b(742, 1, {}, xt), o.Kb = function(n) { return K3n(u(n, 416)); - }, w(Be, "Multisets/lambda$1$Type", 742), b(2068, 1, rj), w(Be, "RangeGwtSerializationDependencies", 2068), b(507, 2068, { 178: 1, 507: 1, 3: 1, 48: 1 }, lee), o.Lb = function(n) { - return FSe(this, u(n, 35)); + }, w(_e, "Multisets/lambda$1$Type", 742), b(2068, 1, rj), w(_e, "RangeGwtSerializationDependencies", 2068), b(507, 2068, { 178: 1, 507: 1, 3: 1, 48: 1 }, lee), o.Lb = function(n) { + return RSe(this, u(n, 35)); }, o.Mb = function(n) { - return FSe(this, u(n, 35)); + return RSe(this, u(n, 35)); }, o.Fb = function(n) { var t; return N(n, 507) ? (t = u(n, 507), vee(this.a, t.a) && vee(this.b, t.b)) : !1; }, o.Hb = function() { return this.a.Hb() * 31 + this.b.Hb(); }, o.Ib = function() { - return eOe(this.a, this.b); - }, w(Be, "Range", 507), b(642, 2059, h5, HK), o.dd = function(n) { + return nOe(this.a, this.b); + }, w(_e, "Range", 507), b(642, 2059, h5, HK), o.dd = function(n) { return kL(this.b, n); }, o.Xd = function() { return this.a; @@ -34482,15 +34572,15 @@ function WDn() { return k1(this.b, n); }, o.Nd = function(n) { return kL(this.b, n); - }, w(Be, "RegularImmutableAsList", 642), b(645, 2067, h5, ND), o.Pd = function() { + }, w(_e, "RegularImmutableAsList", 642), b(645, 2067, h5, ND), o.Pd = function() { return this.a; }; var RJ; - w(Be, "RegularImmutableList", 645), b(536, 718, l5, JW, GW); - var JQe; - w(Be, "RegularImmutableMap", 536), b(719, 709, N3, HW); + w(_e, "RegularImmutableList", 645), b(536, 718, l5, JW, GW); + var GQe; + w(_e, "RegularImmutableMap", 536), b(719, 709, N3, HW); var tse; - w(Be, "RegularImmutableSet", 719), b(2036, ph, is), o.Jc = function() { + w(_e, "RegularImmutableSet", 719), b(2036, ph, is), o.Jc = function() { return new qV(this.a, this.b); }, o.Ec = function(n) { throw $(new qn()); @@ -34500,26 +34590,26 @@ function WDn() { throw $(new qn()); }, o.Kc = function(n) { throw $(new qn()); - }, w(Be, "Sets/SetView", 2036), b(959, 2036, is, sAe), o.Jc = function() { + }, w(_e, "Sets/SetView", 2036), b(959, 2036, is, oAe), o.Jc = function() { return new qV(this.a, this.b); }, o.Gc = function(n) { return zL(this.a, n) && this.b.Gc(n); }, o.Hc = function(n) { return w7(this.a, n) && this.b.Hc(n); }, o.dc = function() { - return DBe(this.b, this.a); + return N_e(this.b, this.a); }, o.gc = function() { return h7(this); }, o.Mc = function() { - return mt(new Ge(null, new He(this.a, 1)), new vke(this.b)); - }, w(Be, "Sets/2", 959), b(960, 1, Vn, vke), o.Mb = function(n) { + return mt(new Ge(null, new He(this.a, 1)), new kke(this.b)); + }, w(_e, "Sets/2", 959), b(960, 1, Vn, kke), o.Mb = function(n) { return this.a.Gc(n); - }, w(Be, "Sets/2/0methodref$contains$Type", 960), b(703, 702, o5, qV), o.Yb = function() { + }, w(_e, "Sets/2/0methodref$contains$Type", 960), b(703, 702, o5, qV), o.Yb = function() { for (var n; MX(this.a); ) if (n = L6(this.a), this.c.Gc(n)) return n; return this.e = 2, null; - }, w(Be, "Sets/2/1", 703), b(606, 2035, { 606: 1, 3: 1, 20: 1, 18: 1, 277: 1, 22: 1, 83: 1 }, xCe), o.Id = function() { + }, w(_e, "Sets/2/1", 703), b(606, 2035, { 606: 1, 3: 1, 20: 1, 18: 1, 277: 1, 22: 1, 83: 1 }, $Ce), o.Id = function() { return this.b; }, o.Jd = function() { return this.b; @@ -34529,15 +34619,15 @@ function WDn() { this.a.Ic(n); }, o.Mc = function() { return this.a.Mc(); - }, w(Be, "Sets/UnmodifiableNavigableSet", 606), b(1993, 1992, l5, xIe), o.Td = function() { + }, w(_e, "Sets/UnmodifiableNavigableSet", 606), b(1993, 1992, l5, $Ie), o.Td = function() { return new Ip(this.a); }, o.Bc = function() { return new Ip(this.a); }, o.vd = function() { return new Ip(this.a); - }, w(Be, "SingletonImmutableBiMap", 1993), b(646, 2067, h5, TL), o.Pd = function() { + }, w(_e, "SingletonImmutableBiMap", 1993), b(646, 2067, h5, TL), o.Pd = function() { return this.a; - }, w(Be, "SingletonImmutableList", 646), b(359, 2041, N3, Ip), o.Jc = function() { + }, w(_e, "SingletonImmutableList", 646), b(359, 2041, N3, Ip), o.Jc = function() { return new vz(this.a); }, o.Gc = function(n) { return jt(this.a, n); @@ -34545,11 +34635,11 @@ function WDn() { return new vz(this.a); }, o.gc = function() { return 1; - }, w(Be, "SingletonImmutableSet", 359), b(1117, 1, {}, ye), o.Kb = function(n) { + }, w(_e, "SingletonImmutableSet", 359), b(1117, 1, {}, ke), o.Kb = function(n) { return u(n, 162); - }, w(Be, "Streams/lambda$0$Type", 1117), b(1118, 1, GT, kke), o.be = function() { + }, w(_e, "Streams/lambda$0$Type", 1117), b(1118, 1, GT, yke), o.be = function() { m7n(this.a); - }, w(Be, "Streams/lambda$1$Type", 1118), b(1691, 1690, Yd, cCe), o.Zb = function() { + }, w(_e, "Streams/lambda$1$Type", 1118), b(1691, 1690, Yd, uCe), o.Zb = function() { var n; return n = this.f, u(u(n || (this.f = N(this.c, 138) ? new g6(this, u(this.c, 138)) : N(this.c, 134) ? new vy(this, u(this.c, 134)) : new qm(this, this.c)), 134), 138); }, o.hc = function() { @@ -34563,13 +34653,13 @@ function WDn() { return N(this.c, 138) ? new g6(this, u(this.c, 138)) : N(this.c, 134) ? new vy(this, u(this.c, 134)) : new qm(this, this.c); }, o.ic = function(n) { return n == null && this.a.Le(n, n), new Ma(this.b); - }, w(Be, "TreeMultimap", 1691), b(80, 1, { 3: 1, 80: 1 }), o.ce = function(n) { + }, w(_e, "TreeMultimap", 1691), b(80, 1, { 3: 1, 80: 1 }), o.ce = function(n) { return new Error(n); }, o.de = function() { return this.e; }, o.ee = function() { var n, t, i; - for (i = (this.k == null && (this.k = W(BJ, oe, 80, 0, 0, 1)), this.k), t = W(Li, Ve, 1, i.length, 5, 1), n = 0; n < i.length; n++) + for (i = (this.k == null && (this.k = W(_J, fe, 80, 0, 0, 1)), this.k), t = W(Li, Ve, 1, i.length, 5, 1), n = 0; n < i.length; n++) t[n] = i[n].e; return t; }, o.fe = function() { @@ -34577,28 +34667,28 @@ function WDn() { }, o.ge = function() { return this.g; }, o.he = function() { - xln(this, U3n(this.ce(v$(this, this.g)))), U7e(this); + xln(this, U3n(this.ce(v$(this, this.g)))), z7e(this); }, o.Ib = function() { return v$(this, this.ge()); - }, o.e = lWe, o.i = !1, o.n = !0; - var BJ = w(xc, "Throwable", 80); - b(101, 80, { 3: 1, 101: 1, 80: 1 }), w(xc, "Exception", 101), b(63, 101, ra, yd, fc), w(xc, "RuntimeException", 63), b(596, 63, ra), w(xc, "JsException", 596), b(856, 596, ra), w(fj, "JavaScriptExceptionBase", 856), b(474, 856, { 474: 1, 3: 1, 101: 1, 63: 1, 80: 1 }, rRe), o.ge = function() { + }, o.e = aWe, o.i = !1, o.n = !0; + var _J = w(xc, "Throwable", 80); + b(101, 80, { 3: 1, 101: 1, 80: 1 }), w(xc, "Exception", 101), b(63, 101, ra, yd, fc), w(xc, "RuntimeException", 63), b(596, 63, ra), w(xc, "JsException", 596), b(856, 596, ra), w(fj, "JavaScriptExceptionBase", 856), b(474, 856, { 474: 1, 3: 1, 101: 1, 63: 1, 80: 1 }, cRe), o.ge = function() { return C7n(this), this.c; }, o.ie = function() { return z(this.b) === z(ise) ? null : this.b; }; var ise; w(xie, "JavaScriptException", 474); - var GQe = w(xie, "JavaScriptObject$", 0), _J; + var HQe = w(xie, "JavaScriptObject$", 0), BJ; b(2009, 1, {}), w(xie, "Scheduler", 2009); - var XS = 0, HQe = 0, KS = -1; + var XS = 0, qQe = 0, KS = -1; b(883, 2009, {}, Lt); var rse; w(fj, "SchedulerImpl", 883); var JJ; b(2020, 1, {}), w(fj, "StackTraceCreator/Collector", 2020), b(857, 2020, {}, hu), o.je = function(n) { var t = {}, i = []; - n[tB] = i; + n[t_] = i; for (var r = arguments.callee.caller; r; ) { var c = (av(), r.name || (r.name = F5n(r.toString()))); i.push(c); @@ -34613,7 +34703,7 @@ function WDn() { } }, o.ke = function(n) { var t, i, r, c; - for (r = (av(), n && n[tB] ? n[tB] : []), i = r.length, c = W(mse, oe, 324, i, 0, 1), t = 0; t < i; t++) + for (r = (av(), n && n[t_] ? n[t_] : []), i = r.length, c = W(mse, fe, 324, i, 0, 1), t = 0; t < i; t++) c[t] = new mD(r[t], null, -1); return c; }, w(fj, "StackTraceCreator/CollectorLegacy", 857), b(2021, 2020, {}), o.je = function(n) { @@ -34621,18 +34711,18 @@ function WDn() { return new mD(t, n + "@" + r, i < 0 ? -1 : i); }, o.ke = function(n) { var t, i, r, c, s, f; - if (c = cyn(n), s = W(mse, oe, 324, 0, 0, 1), t = 0, r = c.length, r == 0) + if (c = cyn(n), s = W(mse, fe, 324, 0, 0, 1), t = 0, r = c.length, r == 0) return s; - for (f = gze(this, c[0]), _e(f.d, nB) || (s[t++] = f), i = 1; i < r; i++) - s[t++] = gze(this, c[i]); + for (f = pze(this, c[0]), Be(f.d, n_) || (s[t++] = f), i = 1; i < r; i++) + s[t++] = pze(this, c[i]); return s; }, w(fj, "StackTraceCreator/CollectorModern", 2021), b(858, 2021, {}, tc), o.le = function(n, t, i, r) { return new mD(t, n, -1); - }, w(fj, "StackTraceCreator/CollectorModernNoSourceMap", 858), b(1044, 1, {}), w(Mie, bWe, 1044), b(615, 1044, { 615: 1 }, cIe); + }, w(fj, "StackTraceCreator/CollectorModernNoSourceMap", 858), b(1044, 1, {}), w(Mie, wWe, 1044), b(615, 1044, { 615: 1 }, uIe); var cse; - w(yB, bWe, 615), b(2063, 1, {}), w(Mie, wWe, 2063), b(2064, 2063, {}), w(yB, wWe, 2064), b(1089, 1, {}, jn); + w(y_, wWe, 615), b(2063, 1, {}), w(Mie, gWe, 2063), b(2064, 2063, {}), w(y_, gWe, 2064), b(1089, 1, {}, jn); var fk; - w(yB, "LocaleInfo", 1089), b(1989, 1, {}, vn), o.a = 0, w(yB, "TimeZone", 1989), b(1256, 2064, {}, rr), w("com.google.gwt.i18n.client.impl.cldr", "DateTimeFormatInfoImpl", 1256), b(434, 1, { 434: 1 }, GTe), o.a = !1, o.b = 0, w(Mie, "DateTimeFormat/PatternPart", 434), b(205, 1, gWe, HA, nZ, uK), o.Dd = function(n) { + w(y_, "LocaleInfo", 1089), b(1989, 1, {}, vn), o.a = 0, w(y_, "TimeZone", 1989), b(1256, 2064, {}, rr), w("com.google.gwt.i18n.client.impl.cldr", "DateTimeFormatInfoImpl", 1256), b(434, 1, { 434: 1 }, HTe), o.a = !1, o.b = 0, w(Mie, "DateTimeFormat/PatternPart", 434), b(205, 1, pWe, HA, nZ, uK), o.Dd = function(n) { return O3n(this, u(n, 205)); }, o.Fb = function(n) { return N(n, 205) && u6(Cc(this.q.getTime()), Cc(u(n, 205).q.getTime())); @@ -34641,10 +34731,10 @@ function WDn() { return n = Cc(this.q.getTime()), Xn(DD(n, Id(n, 32))); }, o.Ib = function() { var n, t, i; - return i = -this.q.getTimezoneOffset(), n = (i >= 0 ? "+" : "") + (i / 60 | 0), t = vx(m.Math.abs(i) % 60), (dJe(), tYe)[this.q.getDay()] + " " + iYe[this.q.getMonth()] + " " + vx(this.q.getDate()) + " " + vx(this.q.getHours()) + ":" + vx(this.q.getMinutes()) + ":" + vx(this.q.getSeconds()) + " GMT" + n + t + " " + this.q.getFullYear(); + return i = -this.q.getTimezoneOffset(), n = (i >= 0 ? "+" : "") + (i / 60 | 0), t = vx(m.Math.abs(i) % 60), (bJe(), iYe)[this.q.getDay()] + " " + rYe[this.q.getMonth()] + " " + vx(this.q.getDate()) + " " + vx(this.q.getHours()) + ":" + vx(this.q.getMinutes()) + ":" + vx(this.q.getSeconds()) + " GMT" + n + t + " " + this.q.getFullYear(); }; var VS = w(In, "Date", 205); - b(1977, 205, gWe, L_e), 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, w("com.google.gwt.i18n.shared.impl", "DateRecord", 1977), b(2026, 1, {}), o.ne = function() { + b(1977, 205, pWe, DBe), 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, w("com.google.gwt.i18n.shared.impl", "DateRecord", 1977), b(2026, 1, {}), o.ne = function() { return null; }, o.oe = function() { return null; @@ -34674,13 +34764,13 @@ function WDn() { }, o.Ib = function() { return en(), "" + this.a; }, o.a = !1; - var qQe, UQe; - w(R3, "JSONBoolean", 479), b(981, 63, ra, Hje), w(R3, "JSONException", 981), b(1017, 2026, {}, Jt), o.me = function() { + var UQe, zQe; + w(R3, "JSONBoolean", 479), b(981, 63, ra, qje), w(R3, "JSONException", 981), b(1017, 2026, {}, Jt), o.me = function() { return fln; }, o.Ib = function() { - return Bu; + return _u; }; - var zQe; + var WQe; w(R3, "JSONNull", 1017), b(265, 2026, { 265: 1 }, aA), o.Fb = function(n) { return N(n, 265) ? this.a == u(n, 265).a : !1; }, o.me = function() { @@ -34701,8 +34791,8 @@ function WDn() { return this; }, o.Ib = function() { var n, t, i, r, c, s, f; - for (f = new Us("{"), n = !0, s = AN(this, W(ke, oe, 2, 0, 6, 1)), i = s, r = 0, c = i.length; r < c; ++r) - t = i[r], n ? n = !1 : f.a += mu, it(f, CGe(t)), f.a += ":", Yc(f, Ul(this, t)); + for (f = new Us("{"), n = !0, s = AN(this, W(ye, fe, 2, 0, 6, 1)), i = s, r = 0, c = i.length; r < c; ++r) + t = i[r], n ? n = !1 : f.a += mu, it(f, PGe(t)), f.a += ":", Yc(f, Ul(this, t)); return f.a += "}", f.a; }, w(R3, "JSONObject", 149), b(594, ph, is, yO), o.Gc = function(n) { return Hi(n) && Uln(this.a, zn(n)); @@ -34713,7 +34803,7 @@ function WDn() { }, w(R3, "JSONObject/1", 594); var GJ; b(210, 2026, { 210: 1 }, gw), o.Fb = function(n) { - return N(n, 210) ? _e(this.a, u(n, 210).a) : !1; + return N(n, 210) ? Be(this.a, u(n, 210).a) : !1; }, o.me = function() { return oln; }, o.Hb = function() { @@ -34721,16 +34811,16 @@ function WDn() { }, o.re = function() { return this; }, o.Ib = function() { - return CGe(this.a); + return PGe(this.a); }, w(R3, "JSONString", 210); - var Q1, use, WQe, sse, ose; + var Q1, use, XQe, sse, ose; b(2022, 1, { 520: 1 }), w(Tie, "OutputStream", 2022), b(2023, 2022, { 520: 1 }), w(Tie, "FilterOutputStream", 2023), b(859, 2023, { 520: 1 }, Cs), w(Tie, "PrintStream", 859), b(418, 1, { 472: 1 }), o.Ib = function() { return this.a; - }, w(xc, "AbstractStringBuilder", 418), b(526, 63, ra, TA), w(xc, "ArithmeticException", 526), b(99, 63, qT, zz, lu), w(xc, "IndexOutOfBoundsException", 99), b(643, 99, qT, oje, pW), w(xc, "ArrayIndexOutOfBoundsException", 643), b(525, 63, ra, ZP, Vje), w(xc, "ArrayStoreException", 525), b(297, 80, pWe, aO), w(xc, "Error", 297), b(200, 297, pWe, Wz, LQ), w(xc, "AssertionError", 200), LQe = { 3: 1, 473: 1, 35: 1 }; - var Y1, _5, ui = w(xc, "Boolean", 473); + }, w(xc, "AbstractStringBuilder", 418), b(526, 63, ra, TA), w(xc, "ArithmeticException", 526), b(99, 63, qT, zz, lu), w(xc, "IndexOutOfBoundsException", 99), b(643, 99, qT, fje, pW), w(xc, "ArrayIndexOutOfBoundsException", 643), b(525, 63, ra, ZP, Qje), w(xc, "ArrayStoreException", 525), b(297, 80, mWe, aO), w(xc, "Error", 297), b(200, 297, mWe, Wz, LQ), w(xc, "AssertionError", 200), DQe = { 3: 1, 473: 1, 35: 1 }; + var Y1, B5, ui = w(xc, "Boolean", 473); b(242, 1, { 3: 1, 242: 1 }); var fse; - w(xc, "Number", 242), b(221, 242, { 3: 1, 221: 1, 35: 1, 242: 1 }, xke), o.Dd = function(n) { + w(xc, "Number", 242), b(221, 242, { 3: 1, 221: 1, 35: 1, 242: 1 }, $ke), o.Dd = function(n) { return Gln(this, u(n, 221)); }, o.se = function() { return this.a; @@ -34752,21 +34842,21 @@ function WDn() { return String.fromCharCode(this.a); }, o.a = 0; var lse, hk = w(xc, "Character", 180), ase; - b(211, 63, { 3: 1, 211: 1, 101: 1, 63: 1, 80: 1 }, z7e, Rm), w(xc, "ClassCastException", 211), DQe = { 3: 1, 35: 1, 346: 1, 242: 1 }; + b(211, 63, { 3: 1, 211: 1, 101: 1, 63: 1, 80: 1 }, W7e, Rm), w(xc, "ClassCastException", 211), NQe = { 3: 1, 35: 1, 346: 1, 242: 1 }; var Ei = w(xc, "Double", 346); - b(164, 242, { 3: 1, 35: 1, 164: 1, 242: 1 }, B8, Kz), o.Dd = function(n) { + b(164, 242, { 3: 1, 35: 1, 164: 1, 242: 1 }, _8, Kz), o.Dd = function(n) { return n1n(this, u(n, 164)); }, o.se = function() { return this.a; }, o.Fb = function(n) { - return N(n, 164) && dTe(this.a, u(n, 164).a); + return N(n, 164) && bTe(this.a, u(n, 164).a); }, o.Hb = function() { return dr(this.a); }, o.Ib = function() { return "" + this.a; }, o.a = 0; var J5 = w(xc, "Float", 164); - b(32, 63, { 3: 1, 101: 1, 32: 1, 63: 1, 80: 1 }, H8, on, QFe), w(xc, "IllegalArgumentException", 32), b(73, 63, ra, Vu, qr), w(xc, "IllegalStateException", 73), b(15, 242, { 3: 1, 35: 1, 15: 1, 242: 1 }, Mz), o.Dd = function(n) { + b(32, 63, { 3: 1, 101: 1, 32: 1, 63: 1, 80: 1 }, H8, on, YFe), w(xc, "IllegalArgumentException", 32), b(73, 63, ra, Vu, qr), w(xc, "IllegalStateException", 73), b(15, 242, { 3: 1, 35: 1, 15: 1, 242: 1 }, Mz), o.Dd = function(n) { return jX(this, u(n, 15)); }, o.se = function() { return this.a; @@ -34777,7 +34867,7 @@ function WDn() { }, o.Ib = function() { return "" + this.a; }, o.a = 0; - var Ii = w(xc, "Integer", 15), dse, XQe; + var Ii = w(xc, "Integer", 15), dse, KQe; b(190, 242, { 3: 1, 35: 1, 190: 1, 242: 1 }, Tz), o.Dd = function(n) { return t1n(this, u(n, 190)); }, o.se = function() { @@ -34790,10 +34880,10 @@ function WDn() { return "" + y6(this.a); }, o.a = 0; var Ab = w(xc, "Long", 190), bse; - b(2102, 1, {}), b(1874, 63, ra, Qje), w(xc, "NegativeArraySizeException", 1874), b(172, 596, { 3: 1, 101: 1, 172: 1, 63: 1, 80: 1 }, Cp, Np), o.ce = function(n) { + b(2102, 1, {}), b(1874, 63, ra, Yje), w(xc, "NegativeArraySizeException", 1874), b(172, 596, { 3: 1, 101: 1, 172: 1, 63: 1, 80: 1 }, Cp, Np), o.ce = function(n) { return new TypeError(n); }, w(xc, "NullPointerException", 172); - var wse, HJ, KQe, gse; + var wse, HJ, VQe, gse; b(131, 32, { 3: 1, 101: 1, 32: 1, 131: 1, 63: 1, 80: 1 }, Dh), w(xc, "NumberFormatException", 131), b(191, 242, { 3: 1, 35: 1, 242: 1, 191: 1 }, xz), o.Dd = function(n) { return qln(this, u(n, 191)); }, o.se = function() { @@ -34810,47 +34900,47 @@ function WDn() { var t; return N(n, 324) ? (t = u(n, 324), this.c == t.c && this.d == t.d && this.a == t.a && this.b == t.b) : !1; }, o.Hb = function() { - return xM(I(T(Li, 1), Ve, 1, 5, [ie(this.c), this.a, this.d, this.b])); + return xM(I(S(Li, 1), Ve, 1, 5, [ie(this.c), this.a, this.d, this.b])); }, o.Ib = function() { return this.a + "." + this.d + "(" + (this.b != null ? this.b : "Unknown Source") + (this.c >= 0 ? ":" + this.c : "") + ")"; }, o.c = 0; var mse = w(xc, "StackTraceElement", 324); - NQe = { 3: 1, 472: 1, 35: 1, 2: 1 }; - var ke = w(xc, Aie, 2); - b(111, 418, { 472: 1 }, xa, B4, _o), w(xc, "StringBuffer", 111), b(106, 418, { 472: 1 }, w1, Rp, Us), w(xc, "StringBuilder", 106), b(691, 99, qT, gW), w(xc, "StringIndexOutOfBoundsException", 691), b(2107, 1, {}); - var VQe; + FQe = { 3: 1, 472: 1, 35: 1, 2: 1 }; + var ye = w(xc, Aie, 2); + b(111, 418, { 472: 1 }, xa, _4, Bo), w(xc, "StringBuffer", 111), b(106, 418, { 472: 1 }, w1, Rp, Us), w(xc, "StringBuilder", 106), b(691, 99, qT, gW), w(xc, "StringIndexOutOfBoundsException", 691), b(2107, 1, {}); + var QQe; b(46, 63, { 3: 1, 101: 1, 63: 1, 80: 1, 46: 1 }, qn, Ea), w(xc, "UnsupportedOperationException", 46), b(247, 242, { 3: 1, 35: 1, 242: 1, 247: 1 }, j7, $W), o.Dd = function(n) { - return dUe(this, u(n, 247)); + return bUe(this, u(n, 247)); }, o.se = function() { - return Fw(_Ue(this)); + return Fw(JUe(this)); }, o.Fb = function(n) { var t; - return this === n ? !0 : N(n, 247) ? (t = u(n, 247), this.e == t.e && dUe(this, t) == 0) : !1; + return this === n ? !0 : N(n, 247) ? (t = u(n, 247), this.e == t.e && bUe(this, t) == 0) : !1; }, o.Hb = function() { var n; - return this.b != 0 ? this.b : this.a < 54 ? (n = Cc(this.f), this.b = Xn(qi(n, -1)), this.b = 33 * this.b + Xn(qi(_0(n, 32), -1)), this.b = 17 * this.b + dr(this.e), this.b) : (this.b = 17 * hRe(this.c) + dr(this.e), this.b); + return this.b != 0 ? this.b : this.a < 54 ? (n = Cc(this.f), this.b = Xn(qi(n, -1)), this.b = 33 * this.b + Xn(qi(B0(n, 32), -1)), this.b = 17 * this.b + dr(this.e), this.b) : (this.b = 17 * lRe(this.c) + dr(this.e), this.b); }, o.Ib = function() { - return _Ue(this); + return JUe(this); }, o.a = 0, o.b = 0, o.d = 0, o.e = 0, o.f = 0; - var QQe, o0, vse, kse, yse, jse, Ese, Ase, qJ = w("java.math", "BigDecimal", 247); - b(91, 242, { 3: 1, 35: 1, 242: 1, 91: 1 }, Wl, uPe, Cd, vBe, y1), o.Dd = function(n) { - return bBe(this, u(n, 91)); + var YQe, o0, vse, kse, yse, jse, Ese, Ase, qJ = w("java.math", "BigDecimal", 247); + b(91, 242, { 3: 1, 35: 1, 242: 1, 91: 1 }, Wl, sPe, Cd, k_e, y1), o.Dd = function(n) { + return w_e(this, u(n, 91)); }, o.se = function() { return Fw(XR(this, 0)); }, o.Fb = function(n) { return qZ(this, n); }, o.Hb = function() { - return hRe(this); + return lRe(this); }, o.Ib = function() { return XR(this, 0); }, o.b = -2, o.c = 0, o.d = 0, o.e = 0; - var YQe, QS, ZQe, UJ, YS, lk, z2 = w("java.math", "BigInteger", 91), eYe, nYe, K3, ak; + var ZQe, QS, eYe, UJ, YS, lk, z2 = w("java.math", "BigInteger", 91), nYe, tYe, K3, ak; b(484, 2027, bb), o.$b = function() { Fc(this); }, o._b = function(n) { return eu(this, n); }, o.uc = function(n) { - return XFe(this, n, this.i) || XFe(this, n, this.f); + return KFe(this, n, this.i) || KFe(this, n, this.f); }, o.vc = function() { return new Ub(this); }, o.xc = function(n) { @@ -34864,12 +34954,12 @@ function WDn() { }, o.g = 0, w(In, "AbstractHashMap", 484), b(306, ph, is, Ub), o.$b = function() { this.a.$b(); }, o.Gc = function(n) { - return NPe(this, n); + return FPe(this, n); }, o.Jc = function() { return new Tw(this.a); }, o.Kc = function(n) { var t; - return NPe(this, n) ? (t = u(n, 45).jd(), this.a.Ac(t), !0) : !1; + return FPe(this, n) ? (t = u(n, 45).jd(), this.a.Ac(t), !0) : !1; }, o.gc = function() { return this.a.gc(); }, w(In, "AbstractHashMap/EntrySet", 306), b(307, 1, Wi, Tw), o.Nb = function(n) { @@ -34879,7 +34969,7 @@ function WDn() { }, o.Ob = function() { return this.b; }, o.Qb = function() { - fDe(this); + hDe(this); }, o.b = !1, o.d = 0, w(In, "AbstractHashMap/EntrySetIterator", 307), b(417, 1, Wi, T4), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { @@ -34964,23 +35054,23 @@ function WDn() { return gK(this, n); }, o.Ib = function() { return this.d + "=" + this.e; - }, w(In, "AbstractMap/AbstractEntry", 480), b(390, 480, { 480: 1, 390: 1, 45: 1 }, UA), w(In, "AbstractMap/SimpleEntry", 390), b(2044, 1, EB), o.Fb = function(n) { + }, w(In, "AbstractMap/AbstractEntry", 480), b(390, 480, { 480: 1, 390: 1, 45: 1 }, UA), w(In, "AbstractMap/SimpleEntry", 390), b(2044, 1, E_), o.Fb = function(n) { var t; return N(n, 45) ? (t = u(n, 45), Gc(this.jd(), t.jd()) && Gc(this.kd(), t.kd())) : !1; }, o.Hb = function() { return t2(this.jd()) ^ t2(this.kd()); }, o.Ib = function() { return this.jd() + "=" + this.kd(); - }, w(In, rWe, 2044), b(2052, 2027, yie), o.Vc = function(n) { + }, w(In, cWe, 2044), b(2052, 2027, yie), o.Vc = function(n) { return vO(this.Ce(n)); }, o.tc = function(n) { - return IOe(this, n); + return COe(this, n); }, o._b = function(n) { return pK(this, n); }, o.vc = function() { return new XP(this); }, o.Rc = function() { - return VSe(this.Ee()); + return QSe(this.Ee()); }, o.Wc = function(n) { return vO(this.Fe(n)); }, o.xc = function(n) { @@ -34989,13 +35079,13 @@ function WDn() { }, o.Yc = function(n) { return vO(this.Ge(n)); }, o.ec = function() { - return new $ke(this); + return new Mke(this); }, o.Tc = function() { - return VSe(this.He()); + return QSe(this.He()); }, o.Zc = function(n) { return vO(this.Ie(n)); }, w(In, "AbstractNavigableMap", 2052), b(620, ph, is, XP), o.Gc = function(n) { - return N(n, 45) && IOe(this.b, u(n, 45)); + return N(n, 45) && COe(this.b, u(n, 45)); }, o.Jc = function() { return this.b.Be(); }, o.Kc = function(n) { @@ -35003,7 +35093,7 @@ function WDn() { return N(n, 45) ? (t = u(n, 45), this.b.Je(t)) : !1; }, o.gc = function() { return this.b.gc(); - }, w(In, "AbstractNavigableMap/EntrySet", 620), b(1115, ph, jie, $ke), o.Lc = function() { + }, w(In, "AbstractNavigableMap/EntrySet", 620), b(1115, ph, jie, Mke), o.Lc = function() { return new XA(this); }, o.$b = function() { this.a.$b(); @@ -35011,32 +35101,32 @@ function WDn() { return pK(this.a, n); }, o.Jc = function() { var n; - return n = this.a.vc().b.Be(), new Tke(n); + return n = this.a.vc().b.Be(), new Ske(n); }, o.Kc = function(n) { return pK(this.a, n) ? (this.a.Ac(n), !0) : !1; }, o.gc = function() { return this.a.gc(); - }, w(In, "AbstractNavigableMap/NavigableKeySet", 1115), b(1116, 1, Wi, Tke), o.Nb = function(n) { + }, w(In, "AbstractNavigableMap/NavigableKeySet", 1115), b(1116, 1, Wi, Ske), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { return xO(this.a.a); }, o.Pb = function() { var n; - return n = jMe(this.a), n.jd(); + return n = EMe(this.a), n.jd(); }, o.Qb = function() { - xTe(this.a); + $Te(this.a); }, w(In, "AbstractNavigableMap/NavigableKeySet/1", 1116), b(2065, 31, zw), o.Ec = function(n) { return e3(Xv(this, n), b5), !0; }, o.Fc = function(n) { return Ze(n), Ty(n != this, "Can't add a queue to itself"), wr(this, n); }, o.$b = function() { for (; aN(this) != null; ) ; - }, w(In, "AbstractQueue", 2065), b(314, 31, { 4: 1, 20: 1, 31: 1, 18: 1 }, r2, MPe), o.Ec = function(n) { + }, w(In, "AbstractQueue", 2065), b(314, 31, { 4: 1, 20: 1, 31: 1, 18: 1 }, r2, TPe), o.Ec = function(n) { return vQ(this, n), !0; }, o.$b = function() { AQ(this); }, o.Gc = function(n) { - return aFe(new S6(this), n); + return dFe(new S6(this), n); }, o.dc = function() { return R4(this); }, o.Jc = function() { @@ -35049,7 +35139,7 @@ function WDn() { return new He(this, 272); }, o.Oc = function(n) { var t; - return t = this.c - this.b & this.a.length - 1, n.length < t && (n = IA(new Array(t), n)), MNe(this, n, t), n.length > t && ai(n, t, null), n; + return t = this.c - this.b & this.a.length - 1, n.length < t && (n = IA(new Array(t), n)), TNe(this, n, t), n.length > t && ai(n, t, null), n; }, o.b = 0, o.c = 0, w(In, "ArrayDeque", 314), b(448, 1, Wi, S6), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { @@ -35057,8 +35147,8 @@ function WDn() { }, o.Pb = function() { return MM(this); }, o.Qb = function() { - aNe(this); - }, o.a = 0, o.b = 0, o.c = -1, w(In, "ArrayDeque/IteratorImpl", 448), b(13, 56, kWe, le, bu, os), o._c = function(n, t) { + dNe(this); + }, o.a = 0, o.b = 0, o.c = -1, w(In, "ArrayDeque/IteratorImpl", 448), b(13, 56, yWe, le, bu, os), o._c = function(n, t) { Md(this, n, t); }, o.Ec = function(n) { return he(this, n); @@ -35085,7 +35175,7 @@ function WDn() { }, o.Kc = function(n) { return Du(this, n); }, o.ae = function(n, t) { - YCe(this, n, t); + ZCe(this, n, t); }, o.fd = function(n, t) { return Ks(this, n, t); }, o.gc = function() { @@ -35108,14 +35198,14 @@ function WDn() { A6(this); }, o.a = 0, o.b = -1, w(In, "ArrayList/1", 7), b(2074, m.Function, {}, Ps), o.Ke = function(n, t) { return Ct(n, t); - }, b(123, 56, yWe, yc), o.Gc = function(n) { - return lNe(this, n) != -1; + }, b(123, 56, jWe, yc), o.Gc = function(n) { + return aNe(this, n) != -1; }, o.Ic = function(n) { var t, i, r, c; for (Ze(n), i = this.a, r = 0, c = i.length; r < c; ++r) t = i[r], n.Ad(t); }, o.Xb = function(n) { - return vSe(this, n); + return kSe(this, n); }, o.fd = function(n, t) { var i; return i = (qe(n, this.a.length), this.a[n]), ai(this.a, n, t), i; @@ -35124,12 +35214,12 @@ function WDn() { }, o.gd = function(n) { UL(this.a, this.a.length, n); }, o.Nc = function() { - return xBe(this, W(Li, Ve, 1, this.a.length, 5, 1)); + return $_e(this, W(Li, Ve, 1, this.a.length, 5, 1)); }, o.Oc = function(n) { - return xBe(this, n); + return $_e(this, n); }, w(In, "Arrays/ArrayList", 123); var $r, El, ZS; - b(936, 56, yWe, ja), o.Gc = function(n) { + b(936, 56, jWe, ja), o.Gc = function(n) { return !1; }, o.Xb = function(n) { return kX(n); @@ -35187,18 +35277,18 @@ function WDn() { return qe(n, 1), this.a; }, o.gc = function() { return 1; - }, w(In, "Collections/SingletonList", 597), b(378, 1, sWe, Om), o.Ic = function(n) { + }, w(In, "Collections/SingletonList", 597), b(378, 1, oWe, Om), o.Ic = function(n) { fr(this, n); }, o.Lc = function() { return new He(this, 0); }, o.Mc = function() { return new Ge(null, this.Lc()); }, o.Ec = function(n) { - return kEe(); - }, o.Fc = function(n) { return yEe(); + }, o.Fc = function(n) { + return jEe(); }, o.$b = function() { - jEe(); + EEe(); }, o.Gc = function(n) { return J4(this, n); }, o.Hc = function(n) { @@ -35208,7 +35298,7 @@ function WDn() { }, o.Jc = function() { return new qg(this.b.Jc()); }, o.Kc = function(n) { - return EEe(); + return AEe(); }, o.gc = function() { return this.b.gc(); }, o.Nc = function() { @@ -35224,8 +35314,8 @@ function WDn() { }, o.Pb = function() { return this.b.Pb(); }, o.Qb = function() { - AEe(); - }, w(In, "Collections/UnmodifiableCollectionIterator", 325), b(528, 378, jWe, $x), o.Lc = function() { + xEe(); + }, w(In, "Collections/UnmodifiableCollectionIterator", 325), b(528, 378, EWe, $x), o.Lc = function() { return new He(this, 16); }, o._c = function(n, t) { throw $(new qn()); @@ -35254,7 +35344,7 @@ function WDn() { }, o.hd = function(n, t) { return new $x(this.a.hd(n, t)); }, w(In, "Collections/UnmodifiableList", 528), b(694, 325, pl, qX), o.Qb = function() { - AEe(); + xEe(); }, o.Rb = function(n) { throw $(new qn()); }, o.Sb = function() { @@ -35274,11 +35364,11 @@ function WDn() { }, o._b = function(n) { return this.c._b(n); }, o.uc = function(n) { - return lAe(this, n); + return aAe(this, n); }, o.vc = function() { return fv(this); }, o.Fb = function(n) { - return dAe(this, n); + return bAe(this, n); }, o.xc = function(n) { return this.c.xc(n); }, o.Hb = function() { @@ -35286,7 +35376,7 @@ function WDn() { }, o.dc = function() { return this.c.dc(); }, o.ec = function() { - return SIe(this); + return IIe(this); }, o.yc = function(n, t) { throw $(new qn()); }, o.Ac = function(n) { @@ -35296,26 +35386,26 @@ function WDn() { }, o.Ib = function() { return uc(this.c); }, o.Bc = function() { - return IIe(this); - }, w(In, "Collections/UnmodifiableMap", 598), b(389, 378, ZR, Bm), o.Lc = function() { + return CIe(this); + }, w(In, "Collections/UnmodifiableMap", 598), b(389, 378, ZR, _m), o.Lc = function() { return new He(this, 1); }, o.Fb = function(n) { return jt(this.b, n); }, o.Hb = function() { return Gt(this.b); - }, w(In, "Collections/UnmodifiableSet", 389), b(940, 389, ZR, eEe), o.Gc = function(n) { - return aAe(this, n); + }, w(In, "Collections/UnmodifiableSet", 389), b(940, 389, ZR, nEe), o.Gc = function(n) { + return dAe(this, n); }, o.Hc = function(n) { return this.b.Hc(n); }, o.Jc = function() { var n; - return n = this.b.Jc(), new Mke(n); + return n = this.b.Jc(), new Tke(n); }, o.Nc = function() { var n; - return n = this.b.Nc(), oOe(n, n.length), n; + return n = this.b.Nc(), fOe(n, n.length), n; }, o.Oc = function(n) { - return wCe(this, n); - }, w(In, "Collections/UnmodifiableMap/UnmodifiableEntrySet", 940), b(941, 1, Wi, Mke), o.Nb = function(n) { + return gCe(this, n); + }, w(In, "Collections/UnmodifiableMap/UnmodifiableEntrySet", 940), b(941, 1, Wi, Tke), o.Nb = function(n) { cr(this, n); }, o.Pb = function() { return new Sz(u(this.a.Pb(), 45)); @@ -35323,7 +35413,7 @@ function WDn() { return this.a.Ob(); }, o.Qb = function() { throw $(new qn()); - }, w(In, "Collections/UnmodifiableMap/UnmodifiableEntrySet/1", 941), b(692, 1, EB, Sz), o.Fb = function(n) { + }, w(In, "Collections/UnmodifiableMap/UnmodifiableEntrySet/1", 941), b(692, 1, E_, Sz), o.Fb = function(n) { return this.a.Fb(n); }, o.jd = function() { return this.a.jd(); @@ -35335,103 +35425,103 @@ function WDn() { throw $(new qn()); }, o.Ib = function() { return uc(this.a); - }, w(In, "Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry", 692), b(599, 528, { 20: 1, 18: 1, 16: 1, 59: 1 }, pO), w(In, "Collections/UnmodifiableRandomAccessList", 599), b(693, 389, oWe, UX), o.Lc = function() { + }, w(In, "Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry", 692), b(599, 528, { 20: 1, 18: 1, 16: 1, 59: 1 }, pO), w(In, "Collections/UnmodifiableRandomAccessList", 599), b(693, 389, fWe, UX), o.Lc = function() { return new XA(this); }, o.Fb = function(n) { return jt(this.a, n); }, o.Hb = function() { return Gt(this.a); - }, w(In, "Collections/UnmodifiableSortedSet", 693), b(842, 1, AB, kc), o.Le = function(n, t) { + }, w(In, "Collections/UnmodifiableSortedSet", 693), b(842, 1, A_, kc), o.Le = function(n, t) { var i; - return i = cOe(u(n, 12), u(t, 12)), i != 0 ? i : iUe(u(n, 12), u(t, 12)); + return i = uOe(u(n, 12), u(t, 12)), i != 0 ? i : rUe(u(n, 12), u(t, 12)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); }, w(In, "Comparator/lambda$0$Type", 842); var xse, zJ, $se; - b(756, 1, AB, Xu), o.Le = function(n, t) { + b(756, 1, A_, Xu), o.Le = function(n, t) { return Zwn(u(n, 35), u(t, 35)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return U0(), $se; - }, w(In, "Comparators/NaturalOrderComparator", 756), b(1191, 1, AB, Ku), o.Le = function(n, t) { + }, w(In, "Comparators/NaturalOrderComparator", 756), b(1191, 1, A_, Ku), o.Le = function(n, t) { return egn(u(n, 35), u(t, 35)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return U0(), zJ; - }, w(In, "Comparators/ReverseNaturalOrderComparator", 1191), b(55, 1, AB, Zn), o.Fb = function(n) { + }, w(In, "Comparators/ReverseNaturalOrderComparator", 1191), b(55, 1, A_, Zn), o.Fb = function(n) { return this === n; }, o.Le = function(n, t) { return this.a.Le(t, n); }, o.Me = function() { return this.a; }, w(In, "Comparators/ReversedComparator", 55), b(176, 63, ra, lo), w(In, "ConcurrentModificationException", 176); - var tYe, iYe; + var iYe, rYe; b(1352, 1, dj, Hr), o.Ne = function(n) { - tBe(this, n); + i_e(this, n); }, o.Ib = function() { return "DoubleSummaryStatistics[count = " + y6(this.a) + ", avg = " + ($O(this.a, 0) ? RQ(this) / Rd(this.a) : 0) + ", min = " + this.c + ", max = " + this.b + ", sum = " + RQ(this) + "]"; - }, o.a = 0, o.b = Ri, o.c = ii, o.d = 0, o.e = 0, o.f = 0, w(In, "DoubleSummaryStatistics", 1352), b(1847, 63, ra, W7e), w(In, "EmptyStackException", 1847), b(450, 2027, bb, i9), o.yc = function(n, t) { + }, o.a = 0, o.b = Ri, o.c = ii, o.d = 0, o.e = 0, o.f = 0, w(In, "DoubleSummaryStatistics", 1352), b(1847, 63, ra, X7e), w(In, "EmptyStackException", 1847), b(450, 2027, bb, i9), o.yc = function(n, t) { return mK(this, n, t); }, o.$b = function() { - vIe(this); + kIe(this); }, o._b = function(n) { - return SAe(this, n); + return IAe(this, n); }, o.uc = function(n) { var t, i; - for (i = new Bp(this.a); i.a < i.c.a.length; ) + for (i = new _p(this.a); i.a < i.c.a.length; ) if (t = L6(i), Gc(n, this.b[t.g])) return !0; return !1; }, o.vc = function() { - return new Ske(this); + return new Ike(this); }, o.xc = function(n) { - return _r(this, n); + return Br(this, n); }, o.Ac = function(n) { return fQ(this, n); }, o.gc = function() { return this.a.c; - }, w(In, "EnumMap", 450), b(1292, ph, is, Ske), o.$b = function() { - vIe(this.a); + }, w(In, "EnumMap", 450), b(1292, ph, is, Ike), o.$b = function() { + kIe(this.a); }, o.Gc = function(n) { - return FPe(this, n); + return RPe(this, n); }, o.Jc = function() { - return new wSe(this.a); + return new gSe(this.a); }, o.Kc = function(n) { var t; - return FPe(this, n) ? (t = u(n, 45).jd(), fQ(this.a, t), !0) : !1; + return RPe(this, n) ? (t = u(n, 45).jd(), fQ(this.a, t), !0) : !1; }, o.gc = function() { return this.a.a.c; - }, w(In, "EnumMap/EntrySet", 1292), b(1293, 1, Wi, wSe), o.Nb = function(n) { + }, w(In, "EnumMap/EntrySet", 1292), b(1293, 1, Wi, gSe), o.Nb = function(n) { cr(this, n); }, o.Pb = function() { - return this.b = L6(this.a), new PAe(this.c, this.b); + return this.b = L6(this.a), new OAe(this.c, this.b); }, o.Ob = function() { return MX(this.a); }, o.Qb = function() { cw(!!this.b), fQ(this.c, this.b), this.b = null; - }, w(In, "EnumMap/EntrySetIterator", 1293), b(1294, 2044, EB, PAe), o.jd = function() { + }, w(In, "EnumMap/EntrySetIterator", 1293), b(1294, 2044, E_, OAe), o.jd = function() { return this.a; }, o.kd = function() { return this.b.b[this.a.g]; }, o.ld = function(n) { return ZK(this.b.b, this.a.g, n); }, w(In, "EnumMap/MapEntry", 1294), b(182, ph, { 20: 1, 31: 1, 18: 1, 182: 1, 22: 1 }); - var rYe = w(In, "EnumSet", 182); + var cYe = w(In, "EnumSet", 182); b(166, 182, { 20: 1, 31: 1, 18: 1, 182: 1, 166: 1, 22: 1 }, wo), o.Ec = function(n) { return mf(this, u(n, 23)); }, o.Gc = function(n) { return zL(this, n); }, o.Jc = function() { - return new Bp(this); + return new _p(this); }, o.Kc = function(n) { - return xSe(this, n); + return $Se(this, n); }, o.gc = function() { return this.c; - }, o.c = 0, w(In, "EnumSet/EnumSetImpl", 166), b(356, 1, Wi, Bp), o.Nb = function(n) { + }, o.c = 0, w(In, "EnumSet/EnumSetImpl", 166), b(356, 1, Wi, _p), o.Nb = function(n) { cr(this, n); }, o.Pb = function() { return L6(this); @@ -35439,7 +35529,7 @@ function WDn() { return MX(this); }, o.Qb = function() { cw(this.b != -1), ai(this.c.b, this.b, null), --this.c.c, this.b = -1; - }, o.a = -1, o.b = -1, w(In, "EnumSet/EnumSetImpl/IteratorImpl", 356), b(44, 484, N2, Tn, _p, n$e), o.ze = function(n, t) { + }, o.a = -1, o.b = -1, w(In, "EnumSet/EnumSetImpl/IteratorImpl", 356), b(44, 484, N2, Tn, Bp, t$e), o.ze = function(n, t) { return z(n) === z(t) || n != null && jt(n, t); }, o.Ae = function(n) { var t; @@ -35449,7 +35539,7 @@ function WDn() { }, o.$b = function() { this.a.$b(); }, o.Gc = function(n) { - return Bo(this, n); + return _o(this, n); }, o.dc = function() { return this.a.gc() == 0; }, o.Jc = function() { @@ -35461,10 +35551,10 @@ function WDn() { }; var $Ln = w(In, "HashSet", 47); b(1867, 1, uj, Fo), o.Bd = function(n) { - XNe(this, n); + KNe(this, n); }, o.Ib = function() { return "IntSummaryStatistics[count = " + y6(this.a) + ", avg = " + ($O(this.a, 0) ? Rd(this.d) / Rd(this.a) : 0) + ", min = " + this.c + ", max = " + this.b + ", sum = " + y6(this.d) + "]"; - }, o.a = 0, o.b = Yi, o.c = pt, o.d = 0, w(In, "IntSummaryStatistics", 1867), b(1043, 1, ml, b$e), o.Ic = function(n) { + }, o.a = 0, o.b = Yi, o.c = pt, o.d = 0, w(In, "IntSummaryStatistics", 1867), b(1043, 1, ml, w$e), o.Ic = function(n) { fr(this, n); }, o.Jc = function() { return new XQ(this); @@ -35478,29 +35568,29 @@ function WDn() { }, o.Qb = function() { Gne(this.e, this.d.jd()), this.c != 0 && --this.c; }, o.c = 0, o.d = null, w(In, "InternalHashCodeMap/1", 716); - var cYe; - b(1041, 1, ml, w$e), o.Ic = function(n) { + var uYe; + b(1041, 1, ml, g$e), o.Ic = function(n) { fr(this, n); }, o.Jc = function() { return new $Q(this); }, o.c = 0, o.d = 0, w(In, "InternalStringMap", 1041), b(715, 1, Wi, $Q), o.Nb = function(n) { cr(this, n); }, o.Pb = function() { - return this.c = this.a, this.a = this.b.next(), new jTe(this.d, this.c, this.d.d); + return this.c = this.a, this.a = this.b.next(), new ETe(this.d, this.c, this.d.d); }, o.Ob = function() { return !this.a.done; }, o.Qb = function() { - cFe(this.d, this.c.value[0]); - }, w(In, "InternalStringMap/1", 715), b(1042, 2044, EB, jTe), o.jd = function() { + uFe(this.d, this.c.value[0]); + }, w(In, "InternalStringMap/1", 715), b(1042, 2044, E_, ETe), o.jd = function() { return this.b.value[0]; }, o.kd = function() { return this.a.d != this.c ? K4(this.a, this.b.value[0]) : this.b.value[1]; }, o.ld = function(n) { return nb(this.a, this.b.value[0], n); }, o.c = 0, w(In, "InternalStringMap/2", 1042), b(223, 44, N2, T1, WQ), o.$b = function() { - rTe(this); + cTe(this); }, o._b = function(n) { - return IAe(this, n); + return CAe(this, n); }, o.uc = function(n) { var t; for (t = this.d.a; t != this.d; ) { @@ -35516,24 +35606,24 @@ function WDn() { }, o.yc = function(n, t) { return Wd(this, n, t); }, o.Ac = function(n) { - return cDe(this, n); + return uDe(this, n); }, o.gc = function() { return G4(this.e); - }, o.c = !1, w(In, "LinkedHashMap", 223), b(393, 390, { 480: 1, 390: 1, 393: 1, 45: 1 }, gMe, qK), w(In, "LinkedHashMap/ChainEntry", 393), b(704, ph, is, Cz), o.$b = function() { - rTe(this.a); + }, o.c = !1, w(In, "LinkedHashMap", 223), b(393, 390, { 480: 1, 390: 1, 393: 1, 45: 1 }, pMe, qK), w(In, "LinkedHashMap/ChainEntry", 393), b(704, ph, is, Cz), o.$b = function() { + cTe(this.a); }, o.Gc = function(n) { - return RPe(this, n); + return _Pe(this, n); }, o.Jc = function() { return new PV(this); }, o.Kc = function(n) { var t; - return RPe(this, n) ? (t = u(n, 45).jd(), cDe(this.a, t), !0) : !1; + return _Pe(this, n) ? (t = u(n, 45).jd(), uDe(this.a, t), !0) : !1; }, o.gc = function() { return G4(this.a.e); }, w(In, "LinkedHashMap/EntrySet", 704), b(705, 1, Wi, PV), o.Nb = function(n) { cr(this, n); }, o.Pb = function() { - return oDe(this); + return fDe(this); }, o.Ob = function() { return this.c != this.d.a.d; }, o.Qb = function() { @@ -35550,7 +35640,7 @@ function WDn() { return this.b; }, o.b = 0; var TLn = w(In, "LinkedList", 66); - b(963, 1, pl, yTe), o.Nb = function(n) { + b(963, 1, pl, jTe), o.Nb = function(n) { cr(this, n); }, o.Rb = function(n) { s$(this, n); @@ -35563,7 +35653,7 @@ function WDn() { }, o.Tb = function() { return this.a; }, o.Ub = function() { - return xPe(this); + return $Pe(this); }, o.Vb = function() { return this.a - 1; }, o.Qb = function() { @@ -35571,21 +35661,21 @@ function WDn() { }, o.Wb = function(n) { cw(!!this.c), this.c.c = n; }, o.a = 0, o.c = null, w(In, "LinkedList/ListIteratorImpl", 963), b(607, 1, {}, Dl), w(In, "LinkedList/Node", 607), b(2019, 1, {}); - var Mse, uYe; + var Mse, sYe; w(In, "Locale", 2019), b(854, 2019, {}, Hg), o.Ib = function() { return ""; }, w(In, "Locale/1", 854), b(855, 2019, {}, Cm), o.Ib = function() { return "unknown"; - }, w(In, "Locale/4", 855), b(112, 63, { 3: 1, 101: 1, 63: 1, 80: 1, 112: 1 }, oc, tCe), w(In, "NoSuchElementException", 112), b(458, 1, { 458: 1 }, fO), o.Fb = function(n) { + }, w(In, "Locale/4", 855), b(112, 63, { 3: 1, 101: 1, 63: 1, 80: 1, 112: 1 }, oc, iCe), w(In, "NoSuchElementException", 112), b(458, 1, { 458: 1 }, fO), o.Fb = function(n) { var t; return n === this ? !0 : N(n, 458) ? (t = u(n, 458), Gc(this.a, t.a)) : !1; }, o.Hb = function() { return t2(this.a); }, o.Ib = function() { - return this.a != null ? tWe + b6(this.a) + ")" : "Optional.empty()"; + return this.a != null ? iWe + b6(this.a) + ")" : "Optional.empty()"; }; var Tse; - w(In, "Optional", 458), b(400, 1, { 400: 1 }, t$e, yL), o.Fb = function(n) { + w(In, "Optional", 458), b(400, 1, { 400: 1 }, i$e, yL), o.Fb = function(n) { var t; return n === this ? !0 : N(n, 400) ? (t = u(n, 400), this.a == t.a && Ct(this.b, t.b) == 0) : !1; }, o.Hb = function() { @@ -35594,7 +35684,7 @@ function WDn() { return this.a ? "OptionalDouble.of(" + ("" + this.b) + ")" : "OptionalDouble.empty()"; }, o.a = !1, o.b = 0; var WJ; - w(In, "OptionalDouble", 400), b(510, 1, { 510: 1 }, i$e, pMe), o.Fb = function(n) { + w(In, "OptionalDouble", 400), b(510, 1, { 510: 1 }, r$e, mMe), o.Fb = function(n) { var t; return n === this ? !0 : N(n, 510) ? (t = u(n, 510), this.a == t.a && Zc(this.b, t.b) == 0) : !1; }, o.Hb = function() { @@ -35602,7 +35692,7 @@ function WDn() { }, o.Ib = function() { return this.a ? "OptionalInt.of(" + ("" + this.b) + ")" : "OptionalInt.empty()"; }, o.a = !1, o.b = 0; - var sYe; + var oYe; w(In, "OptionalInt", 510), b(496, 2065, zw, i$), o.Fc = function(n) { return Aee(this, n); }, o.$b = function() { @@ -35610,9 +35700,9 @@ function WDn() { }, o.Gc = function(n) { return (n == null ? -1 : dc(this.b, n, 0)) != -1; }, o.Jc = function() { - return new Ike(this); + return new Cke(this); }, o.Kc = function(n) { - return TNe(this, n); + return SNe(this, n); }, o.gc = function() { return this.b.c.length; }, o.Lc = function() { @@ -35621,7 +35711,7 @@ function WDn() { return Gx(this.b.c); }, o.Oc = function(n) { return ah(this.b, n); - }, w(In, "PriorityQueue", 496), b(1260, 1, Wi, Ike), o.Nb = function(n) { + }, w(In, "PriorityQueue", 496), b(1260, 1, Wi, Cke), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { return this.a < this.c.b.c.length; @@ -35631,7 +35721,7 @@ function WDn() { cw(this.b != -1), yN(this.c, this.a = this.b), this.b = -1; }, o.a = 0, o.b = -1, w(In, "PriorityQueue/1", 1260), b(234, 1, { 234: 1 }, rF, L$), o.a = 0, o.b = 0; var Sse, Ise, SLn = 0; - w(In, "Random", 234), b(27, 1, to, He, ww, FIe), o.yd = function(n) { + w(In, "Random", 234), b(27, 1, to, He, ww, RIe), o.yd = function(n) { return (this.a & n) != 0; }, o.wd = function() { return this.a; @@ -35640,7 +35730,7 @@ function WDn() { }, o.Nb = function(n) { gV(this), this.d.Nb(n); }, o.zd = function(n) { - return NDe(this, n); + return FDe(this, n); }, o.a = 0, o.c = 0, w(In, "Spliterators/IteratorSpliterator", 27), b(481, 27, to, XA), w(In, "SortedSet/1", 481), b(600, 1, dj, Pz), o.Ne = function(n) { this.a.Ad(n); }, w(In, "Spliterator/OfDouble/0methodref$accept$Type", 600), b(601, 1, dj, Oz), o.Ne = function(n) { @@ -35677,22 +35767,22 @@ function WDn() { return this.b; }, o.xd = function() { return this.d - this.c; - }, o.b = 0, o.c = 0, o.d = 0, w(In, "Spliterators/BaseArraySpliterator", 695), b(943, 695, to, sSe), o.Qe = function(n, t) { - _ln(this, u(n, 41), t); + }, o.b = 0, o.c = 0, o.d = 0, w(In, "Spliterators/BaseArraySpliterator", 695), b(943, 695, to, oSe), o.Qe = function(n, t) { + Bln(this, u(n, 41), t); }, o.Nb = function(n) { dD(this, n); }, o.zd = function(n) { - return B$(this, n); - }, w(In, "Spliterators/ArraySpliterator", 943), b(696, 695, to, ETe), o.Qe = function(n, t) { + return _$(this, n); + }, w(In, "Spliterators/ArraySpliterator", 943), b(696, 695, to, ATe), o.Qe = function(n, t) { Jln(this, u(n, 189), t); }, o.Oe = function(n) { dD(this, n); }, o.Nb = function(n) { N(n, 189) ? dD(this, u(n, 189)) : dD(this, new Oz(n)); }, o.Pe = function(n) { - return B$(this, n); + return _$(this, n); }, o.zd = function(n) { - return N(n, 189) ? B$(this, u(n, 189)) : B$(this, new Pz(n)); + return N(n, 189) ? _$(this, u(n, 189)) : _$(this, new Pz(n)); }, w(In, "Spliterators/DoubleArraySpliterator", 696), b(2028, 1, to), o.Nb = function(n) { MW(this, n); }, o.yd = function(n) { @@ -35702,7 +35792,7 @@ function WDn() { }, o.xd = function() { return 0; }; - var oYe; + var fYe; w(In, "Spliterators/EmptySpliterator", 2028), b(942, 2028, to, Mp), o.Oe = function(n) { bz(n); }, o.Nb = function(n) { @@ -35711,7 +35801,7 @@ function WDn() { return UW(n); }, o.zd = function(n) { return N(n, 202) ? UW(u(n, 202)) : UW(new Lz(n)); - }, w(In, "Spliterators/EmptySpliterator/OfInt", 942), b(574, 56, EWe, EA), o._c = function(n, t) { + }, w(In, "Spliterators/EmptySpliterator/OfInt", 942), b(574, 56, AWe, EA), o._c = function(n, t) { rv(n, this.a.c.length + 1), Md(this.a, n, t); }, o.Ec = function(n) { return he(this.a, n); @@ -35738,7 +35828,7 @@ function WDn() { }, o.ed = function(n) { return rv(n, this.a.c.length), La(this.a, n); }, o.ae = function(n, t) { - YCe(this.a, n, t); + ZCe(this.a, n, t); }, o.fd = function(n, t) { return rv(n, this.a.c.length), Ks(this.a, n, t); }, o.gc = function() { @@ -35753,18 +35843,18 @@ function WDn() { return ah(this.a, n); }, o.Ib = function() { return wh(this.a); - }, w(In, "Vector", 574), b(575, 574, EWe, AA), w(In, "Stack", 575), b(212, 1, { 212: 1 }, Gd), o.Ib = function() { - return $Pe(this); - }, w(In, "StringJoiner", 212), b(541, 2052, { 3: 1, 92: 1, 138: 1, 134: 1 }, wAe, ZL), o.$b = function() { - qje(this); + }, w(In, "Vector", 574), b(575, 574, AWe, AA), w(In, "Stack", 575), b(212, 1, { 212: 1 }, Gd), o.Ib = function() { + return MPe(this); + }, w(In, "StringJoiner", 212), b(541, 2052, { 3: 1, 92: 1, 138: 1, 134: 1 }, gAe, ZL), o.$b = function() { + Uje(this); }, o.Be = function() { - return new TPe(this); + return new SPe(this); }, o.vc = function() { - return new uMe(this); + return new sMe(this); }, o.Ce = function(n) { return Jv(this, n, !0); }, o.De = function(n) { - return GFe(this, n); + return HFe(this, n); }, o.Ee = function() { return tY(this); }, o.Fe = function(n) { @@ -35772,31 +35862,31 @@ function WDn() { }, o.Ge = function(n) { return Jv(this, n, !1); }, o.He = function() { - return FLe(this); + return RLe(this); }, o.Ie = function(n) { return M7(this, n, !1); }, o.Xc = function(n, t) { - return VCe(this, n, t); + return QCe(this, n, t); }, o.yc = function(n, t) { - return IFe(this, n, t); + return CFe(this, n, t); }, o.Ac = function(n) { - return jCe(this, n); + return ECe(this, n); }, o.Je = function(n) { return qQ(this, n); }, o.gc = function() { return this.c; }, o.$c = function(n, t) { - return QCe(this, n, t); - }, o.c = 0, w(In, "TreeMap", 541), b(542, 1, Wi, TPe, xN), o.Nb = function(n) { + return YCe(this, n, t); + }, o.c = 0, w(In, "TreeMap", 541), b(542, 1, Wi, SPe, xN), o.Nb = function(n) { cr(this, n); }, o.Pb = function() { - return jMe(this); + return EMe(this); }, o.Ob = function() { return xO(this.a); }, o.Qb = function() { - xTe(this); - }, w(In, "TreeMap/EntryIterator", 542), b(1111, 620, is, uMe), o.$b = function() { - qje(this.a); + $Te(this); + }, w(In, "TreeMap/EntryIterator", 542), b(1111, 620, is, sMe), o.$b = function() { + Uje(this.a); }, w(In, "TreeMap/EntrySet", 1111), b(438, 390, { 480: 1, 390: 1, 45: 1, 438: 1 }, nN), o.b = !1; var ILn = w(In, "TreeMap/Node", 438); b(621, 1, {}, T0), o.Ib = function() { @@ -35808,7 +35898,7 @@ function WDn() { }, o.Ce = function(n) { return Rx(this, Jv(this.c, n, !0)); }, o.De = function(n) { - return Rx(this, GFe(this.c, n)); + return Rx(this, HFe(this.c, n)); }, o.Ee = function() { var n; return this.f.Re() ? this.a ? n = Jv(this.c, this.b, !0) : n = Jv(this.c, this.b, !1) : n = tY(this.c), n && h$(this, n.d) ? n : null; @@ -35818,20 +35908,20 @@ function WDn() { return Rx(this, Jv(this.c, n, !1)); }, o.He = function() { var n; - return this.f.Se() ? this.d ? n = M7(this.c, this.e, !0) : n = M7(this.c, this.e, !1) : n = FLe(this.c), n && h$(this, n.d) ? n : null; + return this.f.Se() ? this.d ? n = M7(this.c, this.e, !0) : n = M7(this.c, this.e, !1) : n = RLe(this.c), n && h$(this, n.d) ? n : null; }, o.Ie = function(n) { return Rx(this, M7(this.c, n, !1)); }, o.Xc = function(n, t) { if (this.f.Se() && this.c.a.Le(n, this.e) > 0) throw $(new on(Pie + n + " greater than " + this.e)); - return this.f.Re() ? yCe(this.c, this.b, this.a, n, t) : VCe(this.c, n, t); + return this.f.Re() ? jCe(this.c, this.b, this.a, n, t) : QCe(this.c, n, t); }, o.yc = function(n, t) { if (!RF(this.c, this.f, n, this.b, this.a, this.e, this.d)) throw $(new on(n + " outside the range " + this.b + " to " + this.e)); - return IFe(this.c, n, t); + return CFe(this.c, n, t); }, o.Ac = function(n) { var t; - return t = n, RF(this.c, this.f, t, this.b, this.a, this.e, this.d) ? jCe(this.c, t) : null; + return t = n, RF(this.c, this.f, t, this.b, this.a, this.e, this.d) ? ECe(this.c, t) : null; }, o.Je = function(n) { return h$(this, n.jd()) && qQ(this.c, n); }, o.gc = function() { @@ -35843,24 +35933,24 @@ function WDn() { return n; }, o.$c = function(n, t) { if (this.f.Re() && this.c.a.Le(n, this.b) < 0) - throw $(new on(Pie + n + AWe + this.b)); - return this.f.Se() ? yCe(this.c, n, t, this.e, this.d) : QCe(this.c, n, t); - }, o.a = !1, o.d = !1, w(In, "TreeMap/SubMap", 622), b(309, 23, MB, zA), o.Re = function() { + throw $(new on(Pie + n + xWe + this.b)); + return this.f.Se() ? jCe(this.c, n, t, this.e, this.d) : YCe(this.c, n, t); + }, o.a = !1, o.d = !1, w(In, "TreeMap/SubMap", 622), b(309, 23, M_, zA), o.Re = function() { return !1; }, o.Se = function() { return !1; }; - var XJ, KJ, VJ, QJ, eI = Pn(In, "TreeMap/SubMapType", 309, Bn, emn, $0n); - b(1112, 309, MB, k$e), o.Se = function() { + var XJ, KJ, VJ, QJ, eI = Pn(In, "TreeMap/SubMapType", 309, _n, emn, $0n); + b(1112, 309, M_, y$e), o.Se = function() { return !0; - }, Pn(In, "TreeMap/SubMapType/1", 1112, eI, null, null), b(1113, 309, MB, P$e), o.Re = function() { + }, Pn(In, "TreeMap/SubMapType/1", 1112, eI, null, null), b(1113, 309, M_, O$e), o.Re = function() { return !0; }, o.Se = function() { return !0; - }, Pn(In, "TreeMap/SubMapType/2", 1113, eI, null, null), b(1114, 309, MB, y$e), o.Re = function() { + }, Pn(In, "TreeMap/SubMapType/2", 1113, eI, null, null), b(1114, 309, M_, j$e), o.Re = function() { return !0; }, Pn(In, "TreeMap/SubMapType/3", 1114, eI, null, null); - var fYe; + var hYe; b(141, ph, { 3: 1, 20: 1, 31: 1, 18: 1, 277: 1, 22: 1, 83: 1, 141: 1 }, nO, WX, Ma, Lm), o.Lc = function() { return new XA(this); }, o.Ec = function(n) { @@ -35877,41 +35967,41 @@ function WDn() { return this.a.gc(); }; var CLn = w(In, "TreeSet", 141); - b(1052, 1, {}, Cke), o.Te = function(n, t) { + b(1052, 1, {}, Pke), o.Te = function(n, t) { return zdn(this.a, n, t); - }, w(TB, "BinaryOperator/lambda$0$Type", 1052), b(1053, 1, {}, Pke), o.Te = function(n, t) { + }, w(T_, "BinaryOperator/lambda$0$Type", 1052), b(1053, 1, {}, Oke), o.Te = function(n, t) { return Wdn(this.a, n, t); - }, w(TB, "BinaryOperator/lambda$1$Type", 1053), b(935, 1, {}, xbe), o.Kb = function(n) { + }, w(T_, "BinaryOperator/lambda$1$Type", 1053), b(935, 1, {}, $be), o.Kb = function(n) { return n; - }, w(TB, "Function/lambda$0$Type", 935), b(388, 1, Vn, Dm), o.Mb = function(n) { + }, w(T_, "Function/lambda$0$Type", 935), b(388, 1, Vn, Dm), o.Mb = function(n) { return !this.a.Mb(n); - }, w(TB, "Predicate/lambda$2$Type", 388), b(567, 1, { 567: 1 }); - var hYe = w(L9, "Handler", 567); + }, w(T_, "Predicate/lambda$2$Type", 388), b(567, 1, { 567: 1 }); + var lYe = w(L9, "Handler", 567); b(2069, 1, rj), o.ve = function() { return "DUMMY"; }, o.Ib = function() { return this.ve(); }; var Cse; - w(L9, "Level", 2069), b(1672, 2069, rj, $be), o.ve = function() { + w(L9, "Level", 2069), b(1672, 2069, rj, Mbe), o.ve = function() { return "INFO"; - }, w(L9, "Level/LevelInfo", 1672), b(1824, 1, {}, V7e); + }, w(L9, "Level/LevelInfo", 1672), b(1824, 1, {}, Q7e); var YJ; - w(L9, "LogManager", 1824), b(1866, 1, rj, ATe), o.b = null, w(L9, "LogRecord", 1866), b(511, 1, { 511: 1 }, UD), o.e = !1; - var lYe = !1, aYe = !1, jh = !1, dYe = !1, bYe = !1; + w(L9, "LogManager", 1824), b(1866, 1, rj, xTe), o.b = null, w(L9, "LogRecord", 1866), b(511, 1, { 511: 1 }, UD), o.e = !1; + var aYe = !1, dYe = !1, jh = !1, bYe = !1, wYe = !1; w(L9, "Logger", 511), b(819, 567, { 567: 1 }, $P), w(L9, "SimpleConsoleLogHandler", 819), b(130, 23, { 3: 1, 35: 1, 23: 1, 130: 1 }, TO); - var Pse, _u, Ose, Ju = Pn(Lr, "Collector/Characteristics", 130, Bn, Rpn, M0n), wYe; + var Pse, Bu, Ose, Ju = Pn(Lr, "Collector/Characteristics", 130, _n, Rpn, M0n), gYe; b(746, 1, {}, EV), w(Lr, "CollectorImpl", 746), b(1050, 1, {}, qb), o.Te = function(n, t) { return h9n(u(n, 212), u(t, 212)); }, w(Lr, "Collectors/10methodref$merge$Type", 1050), b(1051, 1, {}, zU), o.Kb = function(n) { - return $Pe(u(n, 212)); + return MPe(u(n, 212)); }, w(Lr, "Collectors/11methodref$toString$Type", 1051), b(152, 1, {}, Pu), o.Wd = function(n, t) { u(n, 18).Ec(t); }, w(Lr, "Collectors/20methodref$add$Type", 152), b(154, 1, {}, ju), o.Ve = function() { return new le(); }, w(Lr, "Collectors/21methodref$ctor$Type", 154), b(1049, 1, {}, tA), o.Wd = function(n, t) { Xl(u(n, 212), u(t, 472)); - }, w(Lr, "Collectors/9methodref$add$Type", 1049), b(1048, 1, {}, HTe), o.Ve = function() { + }, w(Lr, "Collectors/9methodref$add$Type", 1049), b(1048, 1, {}, qTe), o.Ve = function() { return new Gd(this.a, this.b, this.c); }, w(Lr, "Collectors/lambda$15$Type", 1048), b(153, 1, {}, ss), o.Te = function(n, t) { return jan(u(n, 18), u(t, 18)); @@ -35919,15 +36009,15 @@ function WDn() { T6(this); }, o.d = !1, w(Lr, "TerminatableStream", 538), b(768, 538, Oie, fK), o.Ye = function() { T6(this); - }, w(Lr, "DoubleStreamImpl", 768), b(1297, 724, to, qTe), o.Pe = function(n) { + }, w(Lr, "DoubleStreamImpl", 768), b(1297, 724, to, UTe), o.Pe = function(n) { return F8n(this, u(n, 189)); - }, o.a = null, w(Lr, "DoubleStreamImpl/2", 1297), b(1298, 1, dj, Oke), o.Ne = function(n) { + }, o.a = null, w(Lr, "DoubleStreamImpl/2", 1297), b(1298, 1, dj, Lke), o.Ne = function(n) { w1n(this.a, n); - }, w(Lr, "DoubleStreamImpl/2/lambda$0$Type", 1298), b(1295, 1, dj, Lke), o.Ne = function(n) { + }, w(Lr, "DoubleStreamImpl/2/lambda$0$Type", 1298), b(1295, 1, dj, Dke), o.Ne = function(n) { b1n(this.a, n); - }, w(Lr, "DoubleStreamImpl/lambda$0$Type", 1295), b(1296, 1, dj, Dke), o.Ne = function(n) { - tBe(this.a, n); - }, w(Lr, "DoubleStreamImpl/lambda$2$Type", 1296), b(1351, 723, to, NOe), o.Pe = function(n) { + }, w(Lr, "DoubleStreamImpl/lambda$0$Type", 1295), b(1296, 1, dj, Nke), o.Ne = function(n) { + i_e(this.a, n); + }, w(Lr, "DoubleStreamImpl/lambda$2$Type", 1296), b(1351, 723, to, FOe), o.Pe = function(n) { return H3n(this, u(n, 202)); }, o.a = 0, o.b = 0, o.c = 0, w(Lr, "IntStream/5", 1351), b(793, 538, Oie, hK), o.Ye = function() { T6(this); @@ -35936,77 +36026,77 @@ function WDn() { }, w(Lr, "IntStreamImpl", 793), b(794, 538, Oie, LW), o.Ye = function() { T6(this); }, o.Ze = function() { - return A1(this), LX(), oYe; - }, w(Lr, "IntStreamImpl/Empty", 794), b(1651, 1, uj, Nke), o.Bd = function(n) { - XNe(this.a, n); + return A1(this), LX(), fYe; + }, w(Lr, "IntStreamImpl/Empty", 794), b(1651, 1, uj, Fke), o.Bd = function(n) { + KNe(this.a, n); }, w(Lr, "IntStreamImpl/lambda$4$Type", 1651); var PLn = Zt(Lr, "Stream"); b(28, 538, { 520: 1, 677: 1, 832: 1 }, Ge), o.Ye = function() { T6(this); }; var V3; - w(Lr, "StreamImpl", 28), b(1072, 486, to, wTe), o.zd = function(n) { + w(Lr, "StreamImpl", 28), b(1072, 486, to, gTe), o.zd = function(n) { for (; Hvn(this); ) { if (this.a.zd(n)) return !0; T6(this.b), this.b = null, this.a = null; } return !1; - }, w(Lr, "StreamImpl/1", 1072), b(1073, 1, mn, Fke), o.Ad = function(n) { + }, w(Lr, "StreamImpl/1", 1072), b(1073, 1, mn, Rke), o.Ad = function(n) { Cwn(this.a, u(n, 832)); - }, w(Lr, "StreamImpl/1/lambda$0$Type", 1073), b(1074, 1, Vn, Rke), o.Mb = function(n) { + }, w(Lr, "StreamImpl/1/lambda$0$Type", 1073), b(1074, 1, Vn, _ke), o.Mb = function(n) { return ki(this.a, n); - }, w(Lr, "StreamImpl/1methodref$add$Type", 1074), b(1075, 486, to, XIe), o.zd = function(n) { + }, w(Lr, "StreamImpl/1methodref$add$Type", 1074), b(1075, 486, to, KIe), o.zd = function(n) { var t; - return this.a || (t = new le(), this.b.a.Nb(new Bke(t)), ze(), Di(t, this.c), this.a = new He(t, 16)), NDe(this.a, n); + return this.a || (t = new le(), this.b.a.Nb(new Bke(t)), ze(), Di(t, this.c), this.a = new He(t, 16)), FDe(this.a, n); }, o.a = null, w(Lr, "StreamImpl/5", 1075), b(1076, 1, mn, Bke), o.Ad = function(n) { he(this.a, n); }, w(Lr, "StreamImpl/5/2methodref$add$Type", 1076), b(725, 486, to, eY), o.zd = function(n) { - for (this.b = !1; !this.b && this.c.zd(new OAe(this, n)); ) ; + for (this.b = !1; !this.b && this.c.zd(new LAe(this, n)); ) ; return this.b; - }, o.b = !1, w(Lr, "StreamImpl/FilterSpliterator", 725), b(1066, 1, mn, OAe), o.Ad = function(n) { + }, o.b = !1, w(Lr, "StreamImpl/FilterSpliterator", 725), b(1066, 1, mn, LAe), o.Ad = function(n) { Egn(this.a, this.b, n); - }, w(Lr, "StreamImpl/FilterSpliterator/lambda$0$Type", 1066), b(1061, 724, to, zOe), o.Pe = function(n) { + }, w(Lr, "StreamImpl/FilterSpliterator/lambda$0$Type", 1066), b(1061, 724, to, WOe), o.Pe = function(n) { return p0n(this, u(n, 189)); - }, w(Lr, "StreamImpl/MapToDoubleSpliterator", 1061), b(1065, 1, mn, LAe), o.Ad = function(n) { + }, w(Lr, "StreamImpl/MapToDoubleSpliterator", 1061), b(1065, 1, mn, DAe), o.Ad = function(n) { Ran(this.a, this.b, n); - }, w(Lr, "StreamImpl/MapToDoubleSpliterator/lambda$0$Type", 1065), b(1060, 723, to, WOe), o.Pe = function(n) { + }, w(Lr, "StreamImpl/MapToDoubleSpliterator/lambda$0$Type", 1065), b(1060, 723, to, XOe), o.Pe = function(n) { return m0n(this, u(n, 202)); - }, w(Lr, "StreamImpl/MapToIntSpliterator", 1060), b(1064, 1, mn, DAe), o.Ad = function(n) { - Ban(this.a, this.b, n); - }, w(Lr, "StreamImpl/MapToIntSpliterator/lambda$0$Type", 1064), b(722, 486, to, _Q), o.zd = function(n) { - return pTe(this, n); - }, w(Lr, "StreamImpl/MapToObjSpliterator", 722), b(1063, 1, mn, NAe), o.Ad = function(n) { + }, w(Lr, "StreamImpl/MapToIntSpliterator", 1060), b(1064, 1, mn, NAe), o.Ad = function(n) { _an(this.a, this.b, n); - }, w(Lr, "StreamImpl/MapToObjSpliterator/lambda$0$Type", 1063), b(1062, 486, to, dNe), o.zd = function(n) { + }, w(Lr, "StreamImpl/MapToIntSpliterator/lambda$0$Type", 1064), b(722, 486, to, BQ), o.zd = function(n) { + return mTe(this, n); + }, w(Lr, "StreamImpl/MapToObjSpliterator", 722), b(1063, 1, mn, FAe), o.Ad = function(n) { + Ban(this.a, this.b, n); + }, w(Lr, "StreamImpl/MapToObjSpliterator/lambda$0$Type", 1063), b(1062, 486, to, bNe), o.zd = function(n) { for (; $O(this.b, 0); ) { - if (!this.a.zd(new Tbe())) + if (!this.a.zd(new Sbe())) return !1; this.b = qo(this.b, 1); } return this.a.zd(n); - }, o.b = 0, w(Lr, "StreamImpl/SkipSpliterator", 1062), b(1067, 1, mn, Tbe), o.Ad = function(n) { + }, o.b = 0, w(Lr, "StreamImpl/SkipSpliterator", 1062), b(1067, 1, mn, Sbe), o.Ad = function(n) { }, w(Lr, "StreamImpl/SkipSpliterator/lambda$0$Type", 1067), b(617, 1, mn, MP), o.Ad = function(n) { - yke(this, n); - }, w(Lr, "StreamImpl/ValueConsumer", 617), b(1068, 1, mn, Mbe), o.Ad = function(n) { + jke(this, n); + }, w(Lr, "StreamImpl/ValueConsumer", 617), b(1068, 1, mn, Tbe), o.Ad = function(n) { Ad(); - }, w(Lr, "StreamImpl/lambda$0$Type", 1068), b(1069, 1, mn, Sbe), o.Ad = function(n) { + }, w(Lr, "StreamImpl/lambda$0$Type", 1068), b(1069, 1, mn, Ibe), o.Ad = function(n) { Ad(); - }, w(Lr, "StreamImpl/lambda$1$Type", 1069), b(1070, 1, {}, _ke), o.Te = function(n, t) { + }, w(Lr, "StreamImpl/lambda$1$Type", 1069), b(1070, 1, {}, Jke), o.Te = function(n, t) { return A0n(this.a, n, t); - }, w(Lr, "StreamImpl/lambda$4$Type", 1070), b(1071, 1, mn, FAe), o.Ad = function(n) { + }, w(Lr, "StreamImpl/lambda$4$Type", 1070), b(1071, 1, mn, RAe), o.Ad = function(n) { Zdn(this.b, this.a, n); - }, w(Lr, "StreamImpl/lambda$5$Type", 1071), b(1077, 1, mn, Jke), o.Ad = function(n) { + }, w(Lr, "StreamImpl/lambda$5$Type", 1071), b(1077, 1, mn, Gke), o.Ad = function(n) { J4n(this.a, u(n, 375)); - }, w(Lr, "TerminatableStream/lambda$0$Type", 1077), b(2104, 1, {}), b(1976, 1, {}, Ibe), w("javaemul.internal", "ConsoleLogger", 1976); + }, w(Lr, "TerminatableStream/lambda$0$Type", 1077), b(2104, 1, {}), b(1976, 1, {}, Cbe), w("javaemul.internal", "ConsoleLogger", 1976); var OLn = 0; - b(2096, 1, {}), b(1800, 1, mn, Cbe), o.Ad = function(n) { + b(2096, 1, {}), b(1800, 1, mn, Pbe), o.Ad = function(n) { u(n, 321); - }, w(w5, "BowyerWatsonTriangulation/lambda$0$Type", 1800), b(1801, 1, mn, Gke), o.Ad = function(n) { + }, w(w5, "BowyerWatsonTriangulation/lambda$0$Type", 1800), b(1801, 1, mn, Hke), o.Ad = function(n) { wr(this.a, u(n, 321).e); - }, w(w5, "BowyerWatsonTriangulation/lambda$1$Type", 1801), b(1802, 1, mn, Pbe), o.Ad = function(n) { + }, w(w5, "BowyerWatsonTriangulation/lambda$1$Type", 1801), b(1802, 1, mn, Obe), o.Ad = function(n) { u(n, 177); - }, w(w5, "BowyerWatsonTriangulation/lambda$2$Type", 1802), b(1797, 1, ct, Hke), o.Le = function(n, t) { + }, w(w5, "BowyerWatsonTriangulation/lambda$2$Type", 1802), b(1797, 1, ct, qke), o.Le = function(n, t) { return Tmn(this.a, u(n, 177), u(t, 177)); }, o.Fb = function(n) { return this === n; @@ -36024,20 +36114,20 @@ function WDn() { return N(n, 321) ? (t = u(n, 321), z$(this, t.a) && z$(this, t.b) && z$(this, t.c)) : !1; }, o.Hb = function() { return t2(this.a) + t2(this.b) + t2(this.c); - }, w(w5, "TTriangle", 321), b(225, 1, { 225: 1 }, yx), w(w5, "Tree", 225), b(1183, 1, {}, RCe), w(MWe, "Scanline", 1183); - var gYe = Zt(MWe, TWe); - b(1728, 1, {}, RDe), w(yl, "CGraph", 1728), b(320, 1, { 320: 1 }, CCe), o.b = 0, o.c = 0, o.d = 0, o.g = 0, o.i = 0, o.k = Ri, w(yl, "CGroup", 320), b(814, 1, {}, Qz), w(yl, "CGroup/CGroupBuilder", 814), b(60, 1, { 60: 1 }, QMe), o.Ib = function() { + }, w(w5, "TTriangle", 321), b(225, 1, { 225: 1 }, yx), w(w5, "Tree", 225), b(1183, 1, {}, _Ce), w(TWe, "Scanline", 1183); + var pYe = Zt(TWe, SWe); + b(1728, 1, {}, _De), w(yl, "CGraph", 1728), b(320, 1, { 320: 1 }, PCe), o.b = 0, o.c = 0, o.d = 0, o.g = 0, o.i = 0, o.k = Ri, w(yl, "CGroup", 320), b(814, 1, {}, Qz), w(yl, "CGroup/CGroupBuilder", 814), b(60, 1, { 60: 1 }, YMe), o.Ib = function() { var n; return this.j ? zn(this.j.Kb(this)) : (Gl(nI), nI.o + "@" + (n = R0(this) >>> 0, n.toString(16))); }, o.f = 0, o.i = Ri; var nI = w(yl, "CNode", 60); b(813, 1, {}, Yz), w(yl, "CNode/CNodeBuilder", 813); - var pYe; - b(1551, 1, {}, Obe), o.df = function(n, t) { + var mYe; + b(1551, 1, {}, Lbe), o.df = function(n, t) { return 0; }, o.ef = function(n, t) { return 0; - }, w(yl, IWe, 1551), b(1830, 1, {}, Lbe), o.af = function(n) { + }, w(yl, CWe, 1551), b(1830, 1, {}, Dbe), o.af = function(n) { var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E; for (a = ii, r = new x(n.a.b); r.a < r.c.c.length; ) t = u(A(r), 60), a = m.Math.min(a, t.a.j.d.c + t.b.a); @@ -36048,38 +36138,38 @@ function WDn() { d = u(p.Pb(), 60), E = s.k + d.b.a, !W6n(n, s, n.d) || d.d.c < E ? d.i = E : d.i = d.d.c; for (c -= s.j.i, s.b += c, n.d == (Mi(), nc) || n.d == Mh ? s.c += c : s.c -= c, g = s.a.a.ec().Jc(); g.Ob(); ) for (d = u(g.Pb(), 60), l = d.c.Jc(); l.Ob(); ) - h = u(l.Pb(), 60), _l(n.d) ? j = n.g.df(d, h) : j = n.g.ef(d, h), h.a.k = m.Math.max(h.a.k, d.i + d.d.b + j - h.b.a), uCe(n, h, n.d) && (h.a.k = m.Math.max(h.a.k, h.d.c - h.b.a)), --h.a.g, h.a.g == 0 && rt(v, h.a); + h = u(l.Pb(), 60), Bl(n.d) ? j = n.g.df(d, h) : j = n.g.ef(d, h), h.a.k = m.Math.max(h.a.k, d.i + d.d.b + j - h.b.a), sCe(n, h, n.d) && (h.a.k = m.Math.max(h.a.k, h.d.c - h.b.a)), --h.a.g, h.a.g == 0 && rt(v, h.a); } for (i = new x(n.a.b); i.a < i.c.c.length; ) t = u(A(i), 60), t.d.c = t.i; - }, w(yl, "LongestPathCompaction", 1830), b(1726, 1, {}, $Ge), o.e = !1; - var mYe, vYe, kYe, ZJ = w(yl, OWe, 1726); - b(1727, 1, mn, qke), o.Ad = function(n) { + }, w(yl, "LongestPathCompaction", 1830), b(1726, 1, {}, MGe), o.e = !1; + var vYe, kYe, yYe, ZJ = w(yl, LWe, 1726); + b(1727, 1, mn, Uke), o.Ad = function(n) { W4n(this.a, u(n, 49)); - }, w(yl, LWe, 1727), b(1831, 1, {}, _be), o.bf = function(n) { + }, w(yl, DWe, 1727), b(1831, 1, {}, Jbe), o.bf = function(n) { var t, i, r, c, s, f, h; for (i = new x(n.a.b); i.a < i.c.c.length; ) t = u(A(i), 60), t.c.$b(); for (c = new x(n.a.b); c.a < c.c.c.length; ) for (r = u(A(c), 60), f = new x(n.a.b); f.a < f.c.c.length; ) - s = u(A(f), 60), r != s && (r.a && r.a == s.a || (_l(n.d) ? h = n.g.ef(r, s) : h = n.g.df(r, s), (s.d.c > r.d.c || r.d.c == s.d.c && r.d.b < s.d.b) && Ekn(s.d.d + s.d.a + h, r.d.d) && nee(s.d.d, r.d.d + r.d.a + h) && r.c.Ec(s))); - }, w(yl, "QuadraticConstraintCalculation", 1831), b(516, 1, { 516: 1 }, YP), o.a = !1, o.b = !1, o.c = !1, o.d = !1, w(yl, DWe, 516), b(804, 1, {}, fV), o.bf = function(n) { - this.c = n, B7(this, new Hbe()); - }, w(yl, NWe, 804), b(1754, 1, { 683: 1 }, fCe), o._e = function(n) { + s = u(A(f), 60), r != s && (r.a && r.a == s.a || (Bl(n.d) ? h = n.g.ef(r, s) : h = n.g.df(r, s), (s.d.c > r.d.c || r.d.c == s.d.c && r.d.b < s.d.b) && Ekn(s.d.d + s.d.a + h, r.d.d) && nee(s.d.d, r.d.d + r.d.a + h) && r.c.Ec(s))); + }, w(yl, "QuadraticConstraintCalculation", 1831), b(516, 1, { 516: 1 }, YP), o.a = !1, o.b = !1, o.c = !1, o.d = !1, w(yl, NWe, 516), b(804, 1, {}, fV), o.bf = function(n) { + this.c = n, _7(this, new qbe()); + }, w(yl, FWe, 804), b(1754, 1, { 683: 1 }, hCe), o._e = function(n) { IEn(this, u(n, 463)); - }, w(yl, FWe, 1754), b(1755, 1, ct, Jbe), o.Le = function(n, t) { + }, w(yl, RWe, 1754), b(1755, 1, ct, Gbe), o.Le = function(n, t) { return j2n(u(n, 60), u(t, 60)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(yl, RWe, 1755), b(463, 1, { 463: 1 }, zW), o.a = !1, w(yl, BWe, 463), b(1756, 1, ct, Gbe), o.Le = function(n, t) { + }, w(yl, _We, 1755), b(463, 1, { 463: 1 }, zW), o.a = !1, w(yl, BWe, 463), b(1756, 1, ct, Hbe), o.Le = function(n, t) { return Wyn(u(n, 463), u(t, 463)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(yl, _We, 1756), b(1757, 1, Kh, Hbe), o.Lb = function(n) { + }, w(yl, JWe, 1756), b(1757, 1, Kh, qbe), o.Lb = function(n) { return u(n, 60), !0; }, o.Fb = function(n) { return this === n; @@ -36088,13 +36178,13 @@ function WDn() { }, w(yl, "ScanlineConstraintCalculator/lambda$1$Type", 1757), b(217, 1, { 217: 1 }, Bbe), o.Ib = function() { return "NEdge[id=" + this.b + " w=" + this.g + " d=" + this.a + "]"; }, o.a = 1, o.b = 0, o.c = 0, o.f = !1, o.g = 0; - var yYe = w(D9, "NEdge", 217); - b(183, 1, {}, Ro), w(D9, "NEdge/NEdgeBuilder", 183), b(651, 1, {}, eO), w(D9, "NGraph", 651), b(124, 1, { 124: 1 }, JOe), o.c = -1, o.d = 0, o.e = 0, o.i = -1, o.j = !1; + var jYe = w(D9, "NEdge", 217); + b(183, 1, {}, Ro), w(D9, "NEdge/NEdgeBuilder", 183), b(651, 1, {}, eO), w(D9, "NGraph", 651), b(124, 1, { 124: 1 }, GOe), o.c = -1, o.d = 0, o.e = 0, o.i = -1, o.j = !1; var Lse = w(D9, "NNode", 124); - b(795, 1, jWe, Vz), o.Ic = function(n) { + b(795, 1, EWe, Vz), o.Ic = function(n) { fr(this, n); }, o.gd = function(n) { - _d(this, n); + Bd(this, n); }, o.Lc = function() { return new He(this, 16); }, o.Mc = function() { @@ -36139,47 +36229,47 @@ function WDn() { return Gx(this.a.c); }, o.Oc = function(n) { return ah(this.a, n); - }, o.b = 0, w(D9, "NNode/ChangeAwareArrayList", 795), b(274, 1, {}, jd), w(D9, "NNode/NNodeBuilder", 274), b(1660, 1, {}, qbe), o.a = !1, o.f = pt, o.j = 0, w(D9, "NetworkSimplex", 1660), b(1278, 1, mn, Uke), o.Ad = function(n) { + }, o.b = 0, w(D9, "NNode/ChangeAwareArrayList", 795), b(274, 1, {}, jd), w(D9, "NNode/NNodeBuilder", 274), b(1660, 1, {}, Ube), o.a = !1, o.f = pt, o.j = 0, w(D9, "NetworkSimplex", 1660), b(1278, 1, mn, zke), o.Ad = function(n) { fie(this.a, u(n, 685), !0, !1); - }, w(JWe, "NodeLabelAndSizeCalculator/lambda$0$Type", 1278), b(554, 1, {}, wA), o.b = !0, o.c = !0, o.d = !0, o.e = !0, w(JWe, "NodeMarginCalculator", 554), b(216, 1, { 216: 1 }), o.j = !1, o.k = !1; - var jYe = w(e0, "Cell", 216); - b(127, 216, { 127: 1, 216: 1 }, iTe), o.ff = function() { + }, w(GWe, "NodeLabelAndSizeCalculator/lambda$0$Type", 1278), b(554, 1, {}, wA), o.b = !0, o.c = !0, o.d = !0, o.e = !0, w(GWe, "NodeMarginCalculator", 554), b(216, 1, { 216: 1 }), o.j = !1, o.k = !1; + var EYe = w(e0, "Cell", 216); + b(127, 216, { 127: 1, 216: 1 }, rTe), o.ff = function() { return Hx(this); }, o.gf = function() { var n; return n = this.n, this.a.a + n.b + n.c; }, w(e0, "AtomicCell", 127), b(237, 23, { 3: 1, 35: 1, 23: 1, 237: 1 }, SO); - var Mc, ku, Tc, tg = Pn(e0, "ContainerArea", 237, Bn, Zpn, x0n), EYe; - b(337, 216, GWe), w(e0, "ContainerCell", 337), b(1499, 337, GWe, ZRe), o.ff = function() { + var Mc, ku, Tc, tg = Pn(e0, "ContainerArea", 237, _n, Zpn, x0n), AYe; + b(337, 216, HWe), w(e0, "ContainerCell", 337), b(1499, 337, HWe, e_e), o.ff = function() { var n; - return n = 0, this.e ? this.b ? n = this.b.b : this.a[1][1] && (n = this.a[1][1].ff()) : n = JZ(this, f_e(this, !0)), n > 0 ? n + this.n.d + this.n.a : 0; + return n = 0, this.e ? this.b ? n = this.b.b : this.a[1][1] && (n = this.a[1][1].ff()) : n = JZ(this, hBe(this, !0)), n > 0 ? n + this.n.d + this.n.a : 0; }, o.gf = function() { var n, t, i, r, c; if (c = 0, this.e) this.b ? c = this.b.a : this.a[1][1] && (c = this.a[1][1].gf()); else if (this.g) - c = JZ(this, _F(this, null, !0)); + c = JZ(this, BF(this, null, !0)); else - for (t = (qf(), I(T(tg, 1), ce, 237, 0, [Mc, ku, Tc])), i = 0, r = t.length; i < r; ++i) - n = t[i], c = m.Math.max(c, JZ(this, _F(this, n, !0))); + for (t = (qf(), I(S(tg, 1), ce, 237, 0, [Mc, ku, Tc])), i = 0, r = t.length; i < r; ++i) + n = t[i], c = m.Math.max(c, JZ(this, BF(this, n, !0))); return c > 0 ? c + this.n.b + this.n.c : 0; }, o.hf = function() { var n, t, i, r, c; if (this.g) - for (n = _F(this, null, !1), i = (qf(), I(T(tg, 1), ce, 237, 0, [Mc, ku, Tc])), r = 0, c = i.length; r < c; ++r) - t = i[r], VHe(this, t, n); + for (n = BF(this, null, !1), i = (qf(), I(S(tg, 1), ce, 237, 0, [Mc, ku, Tc])), r = 0, c = i.length; r < c; ++r) + t = i[r], QHe(this, t, n); else - for (i = (qf(), I(T(tg, 1), ce, 237, 0, [Mc, ku, Tc])), r = 0, c = i.length; r < c; ++r) - t = i[r], n = _F(this, t, !1), VHe(this, t, n); + for (i = (qf(), I(S(tg, 1), ce, 237, 0, [Mc, ku, Tc])), r = 0, c = i.length; r < c; ++r) + t = i[r], n = BF(this, t, !1), QHe(this, t, n); }, o.jf = function() { var n, t, i, r; - t = this.i, n = this.n, r = f_e(this, !1), NQ(this, (qf(), Mc), t.d + n.d, r), NQ(this, Tc, t.d + t.a - n.a - r[2], r), i = t.a - n.d - n.a, r[0] > 0 && (r[0] += this.d, i -= r[0]), r[2] > 0 && (r[2] += this.d, i -= r[2]), this.c.a = m.Math.max(0, i), this.c.d = t.d + n.d + (this.c.a - i) / 2, r[1] = m.Math.max(r[1], i), NQ(this, ku, t.d + n.d + r[0] - (r[1] - i) / 2, r); + t = this.i, n = this.n, r = hBe(this, !1), NQ(this, (qf(), Mc), t.d + n.d, r), NQ(this, Tc, t.d + t.a - n.a - r[2], r), i = t.a - n.d - n.a, r[0] > 0 && (r[0] += this.d, i -= r[0]), r[2] > 0 && (r[2] += this.d, i -= r[2]), this.c.a = m.Math.max(0, i), this.c.d = t.d + n.d + (this.c.a - i) / 2, r[1] = m.Math.max(r[1], i), NQ(this, ku, t.d + n.d + r[0] - (r[1] - i) / 2, r); }, o.b = null, o.d = 0, o.e = !1, o.f = !1, o.g = !1; var eG = 0, tI = 0; w(e0, "GridContainerCell", 1499), b(461, 23, { 3: 1, 35: 1, 23: 1, 461: 1 }, IO); - var Z1, nl, Af, AYe = Pn(e0, "HorizontalLabelAlignment", 461, Bn, e3n, T0n), xYe; - b(318, 216, { 216: 1, 318: 1 }, ECe, FDe, gCe), o.ff = function() { - return nSe(this); + var Z1, nl, Af, xYe = Pn(e0, "HorizontalLabelAlignment", 461, _n, e3n, T0n), $Ye; + b(318, 216, { 216: 1, 318: 1 }, ACe, RDe, pCe), o.ff = function() { + return tSe(this); }, o.gf = function() { return eV(this); }, o.a = 0, o.c = !1; @@ -36192,312 +36282,312 @@ function WDn() { TR(this); }, o.jf = function() { SR(this); - }, o.b = 0, o.c = 0, o.d = !1, w(e0, "StripContainerCell", 253), b(1655, 1, Vn, Nbe), o.Mb = function(n) { + }, o.b = 0, o.c = 0, o.d = !1, w(e0, "StripContainerCell", 253), b(1655, 1, Vn, Fbe), o.Mb = function(n) { return Oln(u(n, 216)); - }, w(e0, "StripContainerCell/lambda$0$Type", 1655), b(1656, 1, {}, Fbe), o.We = function(n) { + }, w(e0, "StripContainerCell/lambda$0$Type", 1655), b(1656, 1, {}, Rbe), o.We = function(n) { return u(n, 216).gf(); - }, w(e0, "StripContainerCell/lambda$1$Type", 1656), b(1657, 1, Vn, Dbe), o.Mb = function(n) { + }, w(e0, "StripContainerCell/lambda$1$Type", 1656), b(1657, 1, Vn, Nbe), o.Mb = function(n) { return Lln(u(n, 216)); - }, w(e0, "StripContainerCell/lambda$2$Type", 1657), b(1658, 1, {}, Rbe), o.We = function(n) { + }, w(e0, "StripContainerCell/lambda$2$Type", 1657), b(1658, 1, {}, _be), o.We = function(n) { return u(n, 216).ff(); }, w(e0, "StripContainerCell/lambda$3$Type", 1658), b(462, 23, { 3: 1, 35: 1, 23: 1, 462: 1 }, CO); - var xf, ed, Vf, $Ye = Pn(e0, "VerticalLabelAlignment", 462, Bn, n3n, S0n), MYe; - b(787, 1, {}, lie), 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, w(WT, "NodeContext", 787), b(1497, 1, ct, Ube), o.Le = function(n, t) { - return a$e(u(n, 64), u(t, 64)); + var xf, ed, Vf, MYe = Pn(e0, "VerticalLabelAlignment", 462, _n, n3n, S0n), TYe; + b(787, 1, {}, lie), 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, w(WT, "NodeContext", 787), b(1497, 1, ct, zbe), o.Le = function(n, t) { + return d$e(u(n, 64), u(t, 64)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(WT, "NodeContext/0methodref$comparePortSides$Type", 1497), b(1498, 1, ct, zbe), o.Le = function(n, t) { + }, w(WT, "NodeContext/0methodref$comparePortSides$Type", 1497), b(1498, 1, ct, Wbe), o.Le = function(n, t) { return pjn(u(n, 115), u(t, 115)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); }, w(WT, "NodeContext/1methodref$comparePortContexts$Type", 1498), b(168, 23, { 3: 1, 35: 1, 23: 1, 168: 1 }, ko); - var TYe, SYe, IYe, CYe, PYe, OYe, LYe, DYe, NYe, FYe, RYe, BYe, _Ye, JYe, GYe, HYe, qYe, UYe, zYe, WYe, XYe, nG, KYe = Pn(WT, "NodeLabelLocation", 168, Bn, pF, I0n), VYe; - b(115, 1, { 115: 1 }, OGe), o.a = !1, w(WT, "PortContext", 115), b(1502, 1, mn, Wbe), o.Ad = function(n) { - MEe(u(n, 318)); - }, w(wj, HWe, 1502), b(1503, 1, Vn, Xbe), o.Mb = function(n) { + var SYe, IYe, CYe, PYe, OYe, LYe, DYe, NYe, FYe, RYe, _Ye, BYe, JYe, GYe, HYe, qYe, UYe, zYe, WYe, XYe, KYe, nG, VYe = Pn(WT, "NodeLabelLocation", 168, _n, pF, I0n), QYe; + b(115, 1, { 115: 1 }, LGe), o.a = !1, w(WT, "PortContext", 115), b(1502, 1, mn, Xbe), o.Ad = function(n) { + TEe(u(n, 318)); + }, w(wj, qWe, 1502), b(1503, 1, Vn, Kbe), o.Mb = function(n) { return !!u(n, 115).c; - }, w(wj, qWe, 1503), b(1504, 1, mn, Kbe), o.Ad = function(n) { - MEe(u(n, 115).c); + }, w(wj, UWe, 1503), b(1504, 1, mn, Vbe), o.Ad = function(n) { + TEe(u(n, 115).c); }, w(wj, "LabelPlacer/lambda$2$Type", 1504); var Dse; - b(1501, 1, mn, Vbe), o.Ad = function(n) { + b(1501, 1, mn, Qbe), o.Ad = function(n) { ow(), aln(u(n, 115)); }, w(wj, "NodeLabelAndSizeUtilities/lambda$0$Type", 1501), b(788, 1, mn, PK), o.Ad = function(n) { $an(this.b, this.c, this.a, u(n, 187)); - }, o.a = !1, o.c = !1, w(wj, "NodeLabelCellCreator/lambda$0$Type", 788), b(1500, 1, mn, zke), o.Ad = function(n) { + }, o.a = !1, o.c = !1, w(wj, "NodeLabelCellCreator/lambda$0$Type", 788), b(1500, 1, mn, Wke), o.Ad = function(n) { gln(this.a, u(n, 187)); }, w(wj, "PortContextCreator/lambda$0$Type", 1500); var iI; - b(1872, 1, {}, Qbe), w(p5, "GreedyRectangleStripOverlapRemover", 1872), b(1873, 1, ct, Ybe), o.Le = function(n, t) { + b(1872, 1, {}, Ybe), w(p5, "GreedyRectangleStripOverlapRemover", 1872), b(1873, 1, ct, Zbe), o.Le = function(n, t) { return rdn(u(n, 226), u(t, 226)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(p5, "GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type", 1873), b(1826, 1, {}, nje), o.a = 5, o.e = 0, w(p5, "RectangleStripOverlapRemover", 1826), b(1827, 1, ct, Zbe), o.Le = function(n, t) { + }, w(p5, "GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type", 1873), b(1826, 1, {}, tje), o.a = 5, o.e = 0, w(p5, "RectangleStripOverlapRemover", 1826), b(1827, 1, ct, ewe), o.Le = function(n, t) { return cdn(u(n, 226), u(t, 226)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(p5, "RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type", 1827), b(1829, 1, ct, ewe), o.Le = function(n, t) { - return Bgn(u(n, 226), u(t, 226)); + }, w(p5, "RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type", 1827), b(1829, 1, ct, nwe), o.Le = function(n, t) { + return _gn(u(n, 226), u(t, 226)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); }, w(p5, "RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type", 1829), b(409, 23, { 3: 1, 35: 1, 23: 1, 409: 1 }, WA); - var Jj, tG, iG, Gj, QYe = Pn(p5, "RectangleStripOverlapRemover/OverlapRemovalDirection", 409, Bn, Y3n, C0n), YYe; - b(226, 1, { 226: 1 }, KL), w(p5, "RectangleStripOverlapRemover/RectangleNode", 226), b(1828, 1, mn, Wke), o.Ad = function(n) { + var Jj, tG, iG, Gj, YYe = Pn(p5, "RectangleStripOverlapRemover/OverlapRemovalDirection", 409, _n, Y3n, C0n), ZYe; + b(226, 1, { 226: 1 }, KL), w(p5, "RectangleStripOverlapRemover/RectangleNode", 226), b(1828, 1, mn, Xke), o.Ad = function(n) { X8n(this.a, u(n, 226)); }, w(p5, "RectangleStripOverlapRemover/lambda$1$Type", 1828); - var ZYe = !1, dk, Nse; - b(1798, 1, mn, nwe), o.Ad = function(n) { - JUe(u(n, 225)); + var eZe = !1, dk, Nse; + b(1798, 1, mn, twe), o.Ad = function(n) { + GUe(u(n, 225)); }, w(G3, "DepthFirstCompaction/0methodref$compactTree$Type", 1798), b(810, 1, mn, Nz), o.Ad = function(n) { d2n(this.a, u(n, 225)); - }, w(G3, "DepthFirstCompaction/lambda$1$Type", 810), b(1799, 1, mn, TTe), o.Ad = function(n) { + }, w(G3, "DepthFirstCompaction/lambda$1$Type", 810), b(1799, 1, mn, STe), o.Ad = function(n) { Dkn(this.a, this.b, this.c, u(n, 225)); }, w(G3, "DepthFirstCompaction/lambda$2$Type", 1799); var bk, Fse; - b(68, 1, { 68: 1 }, _Ce), w(G3, "Node", 68), b(1179, 1, {}, I$e), w(G3, "ScanlineOverlapCheck", 1179), b(1180, 1, { 683: 1 }, lCe), o._e = function(n) { + b(68, 1, { 68: 1 }, JCe), w(G3, "Node", 68), b(1179, 1, {}, C$e), w(G3, "ScanlineOverlapCheck", 1179), b(1180, 1, { 683: 1 }, aCe), o._e = function(n) { Hdn(this, u(n, 442)); - }, w(G3, "ScanlineOverlapCheck/OverlapsScanlineHandler", 1180), b(1181, 1, ct, twe), o.Le = function(n, t) { + }, w(G3, "ScanlineOverlapCheck/OverlapsScanlineHandler", 1180), b(1181, 1, ct, iwe), o.Le = function(n, t) { return j9n(u(n, 68), u(t, 68)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(G3, "ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type", 1181), b(442, 1, { 442: 1 }, WW), o.a = !1, w(G3, "ScanlineOverlapCheck/Timestamp", 442), b(1182, 1, ct, iwe), o.Le = function(n, t) { + }, w(G3, "ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type", 1181), b(442, 1, { 442: 1 }, WW), o.a = !1, w(G3, "ScanlineOverlapCheck/Timestamp", 442), b(1182, 1, ct, rwe), o.Le = function(n, t) { return Xyn(u(n, 442), u(t, 442)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(G3, "ScanlineOverlapCheck/lambda$0$Type", 1182), b(545, 1, {}, iA), w("org.eclipse.elk.alg.common.utils", "SVGImage", 545), b(748, 1, {}, WU), w(OB, _ie, 748), b(1164, 1, ct, rwe), o.Le = function(n, t) { + }, w(G3, "ScanlineOverlapCheck/lambda$0$Type", 1182), b(545, 1, {}, iA), w("org.eclipse.elk.alg.common.utils", "SVGImage", 545), b(748, 1, {}, WU), w(O_, Bie, 748), b(1164, 1, ct, cwe), o.Le = function(n, t) { return jAn(u(n, 235), u(t, 235)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(OB, WWe, 1164), b(1165, 1, mn, RAe), o.Ad = function(n) { + }, w(O_, XWe, 1164), b(1165, 1, mn, _Ae), o.Ad = function(n) { b3n(this.b, this.a, u(n, 251)); - }, w(OB, Jie, 1165), b(214, 1, gb), w(F2, "AbstractLayoutProvider", 214), b(726, 214, gb, Zz), o.kf = function(n, t) { - EHe(this, n, t); - }, w(OB, "ForceLayoutProvider", 726); - var NLn = Zt(gj, XWe); + }, w(O_, Jie, 1165), b(214, 1, gb), w(F2, "AbstractLayoutProvider", 214), b(726, 214, gb, Zz), o.kf = function(n, t) { + AHe(this, n, t); + }, w(O_, "ForceLayoutProvider", 726); + var NLn = Zt(gj, KWe); b(150, 1, { 3: 1, 105: 1, 150: 1 }, TP), o.of = function(n, t) { return p7(this, n, t); }, o.lf = function() { - return gSe(this); + return pSe(this); }, o.mf = function(n) { return y(this, n); }, o.nf = function(n) { return Et(this, n); - }, w(gj, "MapPropertyHolder", 150), b(313, 150, { 3: 1, 313: 1, 105: 1, 150: 1 }), w(pj, "FParticle", 313), b(251, 313, { 3: 1, 251: 1, 313: 1, 105: 1, 150: 1 }, nIe), o.Ib = function() { + }, w(gj, "MapPropertyHolder", 150), b(313, 150, { 3: 1, 313: 1, 105: 1, 150: 1 }), w(pj, "FParticle", 313), b(251, 313, { 3: 1, 251: 1, 313: 1, 105: 1, 150: 1 }, tIe), o.Ib = function() { var n; return this.a ? (n = dc(this.a.a, this, 0), n >= 0 ? "b" + n + "[" + JD(this.a) + "]" : "b[" + JD(this.a) + "]") : "b_" + R0(this); - }, w(pj, "FBendpoint", 251), b(291, 150, { 3: 1, 291: 1, 105: 1, 150: 1 }, KMe), o.Ib = function() { + }, w(pj, "FBendpoint", 251), b(291, 150, { 3: 1, 291: 1, 105: 1, 150: 1 }, VMe), o.Ib = function() { return JD(this); }, w(pj, "FEdge", 291), b(235, 150, { 3: 1, 235: 1, 105: 1, 150: 1 }, F$); var FLn = w(pj, "FGraph", 235); - b(445, 313, { 3: 1, 445: 1, 313: 1, 105: 1, 150: 1 }, iOe), o.Ib = function() { + b(445, 313, { 3: 1, 445: 1, 313: 1, 105: 1, 150: 1 }, rOe), o.Ib = function() { return this.b == null || this.b.length == 0 ? "l[" + JD(this.a) + "]" : "l_" + this.b; - }, w(pj, "FLabel", 445), b(155, 313, { 3: 1, 155: 1, 313: 1, 105: 1, 150: 1 }, C$e), o.Ib = function() { + }, w(pj, "FLabel", 445), b(155, 313, { 3: 1, 155: 1, 313: 1, 105: 1, 150: 1 }, P$e), o.Ib = function() { return hQ(this); }, o.a = 0, w(pj, "FNode", 155), b(2062, 1, {}), o.qf = function(n) { Jte(this, n); }, o.rf = function() { - s_e(this); - }, o.d = 0, w(Gie, "AbstractForceModel", 2062), b(631, 2062, { 631: 1 }, VNe), o.pf = function(n, t) { + oBe(this); + }, o.d = 0, w(Gie, "AbstractForceModel", 2062), b(631, 2062, { 631: 1 }, QNe), o.pf = function(n, t) { var i, r, c, s, f; - return qUe(this.f, n, t), c = Fi(kr(t.d), n.d), f = m.Math.sqrt(c.a * c.a + c.b * c.b), r = m.Math.max(0, f - M6(n.e) / 2 - M6(t.e) / 2), i = EGe(this.e, n, t), i > 0 ? s = -Ign(r, this.c) * i : s = vdn(r, this.b) * u(y(n, (jf(), Y3)), 15).a, Jl(c, s / f), c; + return UUe(this.f, n, t), c = Fi(kr(t.d), n.d), f = m.Math.sqrt(c.a * c.a + c.b * c.b), r = m.Math.max(0, f - M6(n.e) / 2 - M6(t.e) / 2), i = AGe(this.e, n, t), i > 0 ? s = -Ign(r, this.c) * i : s = vdn(r, this.b) * u(y(n, (jf(), Y3)), 15).a, Jl(c, s / f), c; }, o.qf = function(n) { - Jte(this, n), this.a = u(y(n, (jf(), cI)), 15).a, this.c = _(H(y(n, uI))), this.b = _(H(y(n, cG))); + Jte(this, n), this.a = u(y(n, (jf(), cI)), 15).a, this.c = B(H(y(n, uI))), this.b = B(H(y(n, cG))); }, o.sf = function(n) { return n < this.a; - }, o.a = 0, o.b = 0, o.c = 0, w(Gie, "EadesModel", 631), b(632, 2062, { 632: 1 }, VTe), o.pf = function(n, t) { + }, o.a = 0, o.b = 0, o.c = 0, w(Gie, "EadesModel", 631), b(632, 2062, { 632: 1 }, QTe), o.pf = function(n, t) { var i, r, c, s, f; - return qUe(this.f, n, t), c = Fi(kr(t.d), n.d), f = m.Math.sqrt(c.a * c.a + c.b * c.b), r = m.Math.max(0, f - M6(n.e) / 2 - M6(t.e) / 2), s = kdn(r, this.a) * u(y(n, (jf(), Y3)), 15).a, i = EGe(this.e, n, t), i > 0 && (s -= Sln(r, this.a) * i), Jl(c, s * this.b / f), c; + return UUe(this.f, n, t), c = Fi(kr(t.d), n.d), f = m.Math.sqrt(c.a * c.a + c.b * c.b), r = m.Math.max(0, f - M6(n.e) / 2 - M6(t.e) / 2), s = kdn(r, this.a) * u(y(n, (jf(), Y3)), 15).a, i = AGe(this.e, n, t), i > 0 && (s -= Sln(r, this.a) * i), Jl(c, s * this.b / f), c; }, o.qf = function(n) { var t, i, r, c, s, f, h; - for (Jte(this, n), this.b = _(H(y(n, (jf(), uG)))), this.c = this.b / u(y(n, cI), 15).a, r = n.e.c.length, s = 0, c = 0, h = new x(n.e); h.a < h.c.c.length; ) + for (Jte(this, n), this.b = B(H(y(n, (jf(), uG)))), this.c = this.b / u(y(n, cI), 15).a, r = n.e.c.length, s = 0, c = 0, h = new x(n.e); h.a < h.c.c.length; ) f = u(A(h), 155), s += f.e.a, c += f.e.b; - t = s * c, i = _(H(y(n, uI))) * mh, this.a = m.Math.sqrt(t / (2 * r)) * i; + t = s * c, i = B(H(y(n, uI))) * mh, this.a = m.Math.sqrt(t / (2 * r)) * i; }, o.rf = function() { - s_e(this), this.b -= this.c; + oBe(this), this.b -= this.c; }, o.sf = function(n) { return this.b > 0; }, o.a = 0, o.b = 0, o.c = 0, w(Gie, "FruchtermanReingoldModel", 632); var Q3 = Zt(gc, "ILayoutMetaDataProvider"); - b(844, 1, vh, X6e), o.tf = function(n) { - Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), XT), ""), "Force Model"), "Determines the model for force calculation."), Rse), (Vd(), Vt)), Bse), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Hie), ""), "Iterations"), "The number of iterations on the force model."), ie(300)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), qie), ""), "Repulsive Power"), "Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"), ie(0)), pr), Ii), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), LB), ""), "FR Temperature"), "The temperature is used as a scaling factor for particle displacements."), Vh), ur), Ei), Pe(Xe)))), ei(n, LB, XT, uZe), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), DB), ""), "Eades Repulsion"), "Factor for repulsive forces in Eades' model."), 5), ur), Ei), Pe(Xe)))), ei(n, DB, XT, iZe), Pze((new K6e(), n)); + b(844, 1, vh, K6e), o.tf = function(n) { + Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), XT), ""), "Force Model"), "Determines the model for force calculation."), Rse), (Vd(), Vt)), _se), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Hie), ""), "Iterations"), "The number of iterations on the force model."), ie(300)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), qie), ""), "Repulsive Power"), "Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"), ie(0)), pr), Ii), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), L_), ""), "FR Temperature"), "The temperature is used as a scaling factor for particle displacements."), Vh), ur), Ei), Pe(Xe)))), ei(n, L_, XT, sZe), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), D_), ""), "Eades Repulsion"), "Factor for repulsive forces in Eades' model."), 5), ur), Ei), Pe(Xe)))), ei(n, D_, XT, rZe), Oze((new V6e(), n)); }; - var eZe, nZe, Rse, tZe, iZe, rZe, cZe, uZe; + var nZe, tZe, Rse, iZe, rZe, cZe, uZe, sZe; w(F9, "ForceMetaDataProvider", 844), b(424, 23, { 3: 1, 35: 1, 23: 1, 424: 1 }, XW); - var rG, rI, Bse = Pn(F9, "ForceModelStrategy", 424, Bn, hpn, O0n), sZe; - b(984, 1, vh, K6e), o.tf = function(n) { - Pze(n); + var rG, rI, _se = Pn(F9, "ForceModelStrategy", 424, _n, hpn, O0n), oZe; + b(984, 1, vh, V6e), o.tf = function(n) { + Oze(n); }; - var oZe, fZe, _se, cI, Jse, hZe, lZe, aZe, dZe, Gse, bZe, Hse, qse, wZe, Y3, gZe, cG, Use, pZe, mZe, uI, uG, vZe, kZe, yZe, zse, jZe; - w(F9, "ForceOptions", 984), b(985, 1, {}, cwe), o.uf = function() { + var fZe, hZe, Bse, cI, Jse, lZe, aZe, dZe, bZe, Gse, wZe, Hse, qse, gZe, Y3, pZe, cG, Use, mZe, vZe, uI, uG, kZe, yZe, jZe, zse, EZe; + w(F9, "ForceOptions", 984), b(985, 1, {}, uwe), o.uf = function() { var n; return n = new Zz(), n; }, o.vf = function(n) { }, w(F9, "ForceOptions/ForceFactory", 985); var Hj, wk, Z3, sI; - b(845, 1, vh, V6e), o.tf = function(n) { - Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), zie), ""), "Fixed Position"), "Prevent that the node is moved by the layout algorithm."), (en(), !1)), (Vd(), Pi)), ui), Pe((qh(), mi))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Wie), ""), "Desired Edge Length"), "Either specified for parent nodes or for individual edges, where the latter takes higher precedence."), 100), ur), Ei), Rt(Xe, I(T(xh, 1), ce, 160, 0, [Zf]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Xie), ""), "Layout Dimension"), "Dimensions that are permitted to be altered during layout."), Wse), Vt), eoe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Kie), ""), "Stress Epsilon"), "Termination criterion for the iterative process."), Vh), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Vie), ""), "Iteration Limit"), "Maximum number of performed iterations. Takes higher precedence than 'epsilon'."), ie(pt)), pr), Ii), Pe(Xe)))), uze((new Q6e(), n)); + b(845, 1, vh, Q6e), o.tf = function(n) { + Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), zie), ""), "Fixed Position"), "Prevent that the node is moved by the layout algorithm."), (en(), !1)), (Vd(), Pi)), ui), Pe((qh(), mi))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Wie), ""), "Desired Edge Length"), "Either specified for parent nodes or for individual edges, where the latter takes higher precedence."), 100), ur), Ei), Rt(Xe, I(S(xh, 1), ce, 160, 0, [Zf]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Xie), ""), "Layout Dimension"), "Dimensions that are permitted to be altered during layout."), Wse), Vt), eoe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Kie), ""), "Stress Epsilon"), "Termination criterion for the iterative process."), Vh), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Vie), ""), "Iteration Limit"), "Maximum number of performed iterations. Takes higher precedence than 'epsilon'."), ie(pt)), pr), Ii), Pe(Xe)))), sze((new Y6e(), n)); }; - var EZe, AZe, Wse, xZe, $Ze, MZe; - w(F9, "StressMetaDataProvider", 845), b(988, 1, vh, Q6e), o.tf = function(n) { - uze(n); + var AZe, xZe, Wse, $Ze, MZe, TZe; + w(F9, "StressMetaDataProvider", 845), b(988, 1, vh, Y6e), o.tf = function(n) { + sze(n); }; - var oI, Xse, Kse, Vse, Qse, Yse, TZe, SZe, IZe, CZe, Zse, PZe; - w(F9, "StressOptions", 988), b(989, 1, {}, uwe), o.uf = function() { + var oI, Xse, Kse, Vse, Qse, Yse, SZe, IZe, CZe, PZe, Zse, OZe; + w(F9, "StressOptions", 988), b(989, 1, {}, swe), o.uf = function() { var n; - return n = new VMe(), n; + return n = new QMe(), n; }, o.vf = function(n) { - }, w(F9, "StressOptions/StressFactory", 989), b(1080, 214, gb, VMe), o.kf = function(n, t) { + }, w(F9, "StressOptions/StressFactory", 989), b(1080, 214, gb, QMe), o.kf = function(n, t) { var i, r, c, s, f; - for (t.Tg(ZWe, 1), ve(me(re(n, (C7(), Qse)))) ? ve(me(re(n, Zse))) || Ry((i = new S4((xd(), new b1(n))), i)) : EHe(new Zz(), n, t.dh(1)), c = xFe(n), r = pUe(this.a, c), f = r.Jc(); f.Ob(); ) - s = u(f.Pb(), 235), !(s.e.c.length <= 1) && (UIn(this.b, s), pxn(this.b), wu(s.d, new swe())); - c = Sze(r), Rze(c), t.Ug(); - }, w(QT, "StressLayoutProvider", 1080), b(1081, 1, mn, swe), o.Ad = function(n) { + for (t.Tg(eXe, 1), ve(me(re(n, (C7(), Qse)))) ? ve(me(re(n, Zse))) || Ry((i = new S4((xd(), new b1(n))), i)) : AHe(new Zz(), n, t.dh(1)), c = $Fe(n), r = mUe(this.a, c), f = r.Jc(); f.Ob(); ) + s = u(f.Pb(), 235), !(s.e.c.length <= 1) && (UIn(this.b, s), pxn(this.b), wu(s.d, new owe())); + c = Ize(r), _ze(c), t.Ug(); + }, w(QT, "StressLayoutProvider", 1080), b(1081, 1, mn, owe), o.Ad = function(n) { Vte(u(n, 445)); - }, w(QT, "StressLayoutProvider/lambda$0$Type", 1081), b(986, 1, {}, K7e), o.c = 0, o.e = 0, o.g = 0, w(QT, "StressMajorization", 986), b(384, 23, { 3: 1, 35: 1, 23: 1, 384: 1 }, PO); - var sG, oG, fG, eoe = Pn(QT, "StressMajorization/Dimension", 384, Bn, Ypn, L0n), OZe; - b(987, 1, ct, Xke), o.Le = function(n, t) { + }, w(QT, "StressLayoutProvider/lambda$0$Type", 1081), b(986, 1, {}, V7e), o.c = 0, o.e = 0, o.g = 0, w(QT, "StressMajorization", 986), b(384, 23, { 3: 1, 35: 1, 23: 1, 384: 1 }, PO); + var sG, oG, fG, eoe = Pn(QT, "StressMajorization/Dimension", 384, _n, Ypn, L0n), LZe; + b(987, 1, ct, Kke), o.Le = function(n, t) { return h0n(this.a, u(n, 155), u(t, 155)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(QT, "StressMajorization/lambda$0$Type", 987), b(1161, 1, {}, hPe), w(U3, "ElkLayered", 1161), b(1162, 1, mn, Kke), o.Ad = function(n) { + }, w(QT, "StressMajorization/lambda$0$Type", 987), b(1161, 1, {}, lPe), w(U3, "ElkLayered", 1161), b(1162, 1, mn, Vke), o.Ad = function(n) { cAn(this.a, u(n, 37)); - }, w(U3, "ElkLayered/lambda$0$Type", 1162), b(1163, 1, mn, Vke), o.Ad = function(n) { + }, w(U3, "ElkLayered/lambda$0$Type", 1162), b(1163, 1, mn, Qke), o.Ad = function(n) { g0n(this.a, u(n, 37)); - }, w(U3, "ElkLayered/lambda$1$Type", 1163), b(1246, 1, {}, S$e); - var LZe, DZe, NZe; + }, w(U3, "ElkLayered/lambda$1$Type", 1163), b(1246, 1, {}, I$e); + var DZe, NZe, FZe; w(U3, "GraphConfigurator", 1246), b(757, 1, mn, Fz), o.Ad = function(n) { - AJe(this.a, u(n, 9)); + xJe(this.a, u(n, 9)); }, w(U3, "GraphConfigurator/lambda$0$Type", 757), b(758, 1, {}, XU), o.Kb = function(n) { return Oee(), new Ge(null, new He(u(n, 25).a, 16)); }, w(U3, "GraphConfigurator/lambda$1$Type", 758), b(759, 1, mn, Rz), o.Ad = function(n) { - AJe(this.a, u(n, 9)); - }, w(U3, "GraphConfigurator/lambda$2$Type", 759), b(1079, 214, gb, Q7e), o.kf = function(n, t) { + xJe(this.a, u(n, 9)); + }, w(U3, "GraphConfigurator/lambda$2$Type", 759), b(1079, 214, gb, Y7e), o.kf = function(n, t) { var i; - i = EIn(new ije(), n), z(re(n, (ae(), ag))) === z((ea(), r1)) ? P9n(this.a, i, t) : dxn(this.a, i, t), t.Zg() || jze(new Z6e(), i); + i = EIn(new rje(), n), z(re(n, (ae(), ag))) === z((ea(), r1)) ? P9n(this.a, i, t) : dxn(this.a, i, t), t.Zg() || Eze(new e9e(), i); }, w(U3, "LayeredLayoutProvider", 1079), b(363, 23, { 3: 1, 35: 1, 23: 1, 363: 1 }, ny); - var $f, Al, Xc, Kc, Nr, noe = Pn(U3, "LayeredPhases", 363, Bn, Xmn, D0n), FZe; - b(1683, 1, {}, gNe), o.i = 0; - var RZe; + var $f, Al, Xc, Kc, Nr, noe = Pn(U3, "LayeredPhases", 363, _n, Xmn, D0n), RZe; + b(1683, 1, {}, pNe), o.i = 0; + var _Ze; w(Ej, "ComponentsToCGraphTransformer", 1683); var BZe; - b(1684, 1, {}, owe), o.wf = function(n, t) { - return m.Math.min(n.a != null ? _(n.a) : n.c.i, t.a != null ? _(t.a) : t.c.i); + b(1684, 1, {}, fwe), o.wf = function(n, t) { + return m.Math.min(n.a != null ? B(n.a) : n.c.i, t.a != null ? B(t.a) : t.c.i); }, o.xf = function(n, t) { - return m.Math.min(n.a != null ? _(n.a) : n.c.i, t.a != null ? _(t.a) : t.c.i); + return m.Math.min(n.a != null ? B(n.a) : n.c.i, t.a != null ? B(t.a) : t.c.i); }, w(Ej, "ComponentsToCGraphTransformer/1", 1684), b(82, 1, { 82: 1 }), o.i = 0, o.k = !0, o.o = Ri; var hG = w(J9, "CNode", 82); b(460, 82, { 460: 1, 82: 1 }, VX, oee), o.Ib = function() { return ""; - }, w(Ej, "ComponentsToCGraphTransformer/CRectNode", 460), b(1652, 1, {}, fwe); + }, w(Ej, "ComponentsToCGraphTransformer/CRectNode", 460), b(1652, 1, {}, hwe); var lG, aG; - w(Ej, "OneDimensionalComponentsCompaction", 1652), b(1653, 1, {}, hwe), o.Kb = function(n) { + w(Ej, "OneDimensionalComponentsCompaction", 1652), b(1653, 1, {}, lwe), o.Kb = function(n) { return Ipn(u(n, 49)); }, o.Fb = function(n) { return this === n; - }, w(Ej, "OneDimensionalComponentsCompaction/lambda$0$Type", 1653), b(1654, 1, {}, lwe), o.Kb = function(n) { + }, w(Ej, "OneDimensionalComponentsCompaction/lambda$0$Type", 1653), b(1654, 1, {}, awe), o.Kb = function(n) { return F9n(u(n, 49)); }, o.Fb = function(n) { return this === n; - }, w(Ej, "OneDimensionalComponentsCompaction/lambda$1$Type", 1654), b(1686, 1, {}, dIe), w(J9, "CGraph", 1686), b(194, 1, { 194: 1 }, bF), o.b = 0, o.c = 0, o.e = 0, o.g = !0, o.i = Ri, w(J9, "CGroup", 194), b(1685, 1, {}, awe), o.wf = function(n, t) { - return m.Math.max(n.a != null ? _(n.a) : n.c.i, t.a != null ? _(t.a) : t.c.i); + }, w(Ej, "OneDimensionalComponentsCompaction/lambda$1$Type", 1654), b(1686, 1, {}, bIe), w(J9, "CGraph", 1686), b(194, 1, { 194: 1 }, bF), o.b = 0, o.c = 0, o.e = 0, o.g = !0, o.i = Ri, w(J9, "CGroup", 194), b(1685, 1, {}, dwe), o.wf = function(n, t) { + return m.Math.max(n.a != null ? B(n.a) : n.c.i, t.a != null ? B(t.a) : t.c.i); }, o.xf = function(n, t) { - return m.Math.max(n.a != null ? _(n.a) : n.c.i, t.a != null ? _(t.a) : t.c.i); - }, w(J9, IWe, 1685), b(1687, 1, {}, xGe), o.d = !1; - var _Ze, dG = w(J9, OWe, 1687); - b(1688, 1, {}, dwe), o.Kb = function(n) { + return m.Math.max(n.a != null ? B(n.a) : n.c.i, t.a != null ? B(t.a) : t.c.i); + }, w(J9, CWe, 1685), b(1687, 1, {}, $Ge), o.d = !1; + var JZe, dG = w(J9, LWe, 1687); + b(1688, 1, {}, bwe), o.Kb = function(n) { return FW(), en(), u(u(n, 49).a, 82).d.e != 0; }, o.Fb = function(n) { return this === n; - }, w(J9, LWe, 1688), b(817, 1, {}, tV), o.a = !1, o.b = !1, o.c = !1, o.d = !1, w(J9, DWe, 817), b(1868, 1, {}, MSe), w(YT, NWe, 1868); - var qj = Zt(n0, TWe); - b(1869, 1, { 377: 1 }, hCe), o._e = function(n) { + }, w(J9, DWe, 1688), b(817, 1, {}, tV), o.a = !1, o.b = !1, o.c = !1, o.d = !1, w(J9, NWe, 817), b(1868, 1, {}, TSe), w(YT, FWe, 1868); + var qj = Zt(n0, SWe); + b(1869, 1, { 377: 1 }, lCe), o._e = function(n) { kMn(this, u(n, 465)); - }, w(YT, FWe, 1869), b(1870, 1, ct, bwe), o.Le = function(n, t) { + }, w(YT, RWe, 1869), b(1870, 1, ct, wwe), o.Le = function(n, t) { return E2n(u(n, 82), u(t, 82)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(YT, RWe, 1870), b(465, 1, { 465: 1 }, KW), o.a = !1, w(YT, BWe, 465), b(1871, 1, ct, wwe), o.Le = function(n, t) { + }, w(YT, _We, 1870), b(465, 1, { 465: 1 }, KW), o.a = !1, w(YT, BWe, 465), b(1871, 1, ct, gwe), o.Le = function(n, t) { return Kyn(u(n, 465), u(t, 465)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(YT, _We, 1871), b(146, 1, { 146: 1 }, Xm, UK), o.Fb = function(n) { + }, w(YT, JWe, 1871), b(146, 1, { 146: 1 }, Xm, UK), o.Fb = function(n) { var t; return n == null || RLn != Rs(n) ? !1 : (t = u(n, 146), Gc(this.c, t.c) && Gc(this.d, t.d)); }, o.Hb = function() { - return xM(I(T(Li, 1), Ve, 1, 5, [this.c, this.d])); + return xM(I(S(Li, 1), Ve, 1, 5, [this.c, this.d])); }, o.Ib = function() { return "(" + this.c + mu + this.d + (this.a ? "cx" : "") + this.b + ")"; }, o.a = !0, o.c = 0, o.d = 0; var RLn = w(n0, "Point", 146); b(408, 23, { 3: 1, 35: 1, 23: 1, 408: 1 }, KA); - var $b, ig, W2, rg, JZe = Pn(n0, "Point/Quadrant", 408, Bn, Z3n, P0n), GZe; - b(1674, 1, {}, Y7e), o.b = null, o.c = null, o.d = null, o.e = null, o.f = null; - var HZe, qZe, UZe, zZe, WZe; + var $b, ig, W2, rg, GZe = Pn(n0, "Point/Quadrant", 408, _n, Z3n, P0n), HZe; + b(1674, 1, {}, Z7e), o.b = null, o.c = null, o.d = null, o.e = null, o.f = null; + var qZe, UZe, zZe, WZe, XZe; w(n0, "RectilinearConvexHull", 1674), b(569, 1, { 377: 1 }, zM), o._e = function(n) { - Bvn(this, u(n, 146)); + _vn(this, u(n, 146)); }, o.b = 0; var toe; - w(n0, "RectilinearConvexHull/MaximalElementsEventHandler", 569), b(1676, 1, ct, gwe), o.Le = function(n, t) { + w(n0, "RectilinearConvexHull/MaximalElementsEventHandler", 569), b(1676, 1, ct, pwe), o.Le = function(n, t) { return y2n(H(n), H(t)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(n0, "RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type", 1676), b(1675, 1, { 377: 1 }, jDe), o._e = function(n) { + }, w(n0, "RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type", 1676), b(1675, 1, { 377: 1 }, EDe), o._e = function(n) { N$n(this, u(n, 146)); - }, o.a = 0, o.b = null, o.c = null, o.d = null, o.e = null, w(n0, "RectilinearConvexHull/RectangleEventHandler", 1675), b(1677, 1, ct, pwe), o.Le = function(n, t) { + }, o.a = 0, o.b = null, o.c = null, o.d = null, o.e = null, w(n0, "RectilinearConvexHull/RectangleEventHandler", 1675), b(1677, 1, ct, mwe), o.Le = function(n, t) { return E3n(u(n, 146), u(t, 146)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(n0, "RectilinearConvexHull/lambda$0$Type", 1677), b(1678, 1, ct, mwe), o.Le = function(n, t) { + }, w(n0, "RectilinearConvexHull/lambda$0$Type", 1677), b(1678, 1, ct, vwe), o.Le = function(n, t) { return A3n(u(n, 146), u(t, 146)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(n0, "RectilinearConvexHull/lambda$1$Type", 1678), b(1679, 1, ct, vwe), o.Le = function(n, t) { + }, w(n0, "RectilinearConvexHull/lambda$1$Type", 1678), b(1679, 1, ct, kwe), o.Le = function(n, t) { return $3n(u(n, 146), u(t, 146)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(n0, "RectilinearConvexHull/lambda$2$Type", 1679), b(1680, 1, ct, kwe), o.Le = function(n, t) { + }, w(n0, "RectilinearConvexHull/lambda$2$Type", 1679), b(1680, 1, ct, ywe), o.Le = function(n, t) { return x3n(u(n, 146), u(t, 146)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(n0, "RectilinearConvexHull/lambda$3$Type", 1680), b(1681, 1, ct, ywe), o.Le = function(n, t) { + }, w(n0, "RectilinearConvexHull/lambda$3$Type", 1680), b(1681, 1, ct, jwe), o.Le = function(n, t) { return Pjn(u(n, 146), u(t, 146)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(n0, "RectilinearConvexHull/lambda$4$Type", 1681), b(1682, 1, {}, BCe), w(n0, "Scanline", 1682), b(2066, 1, {}), w(kh, "AbstractGraphPlacer", 2066), b(336, 1, { 336: 1 }, kMe), o.Df = function(n) { + }, w(n0, "RectilinearConvexHull/lambda$4$Type", 1681), b(1682, 1, {}, BCe), w(n0, "Scanline", 1682), b(2066, 1, {}), w(kh, "AbstractGraphPlacer", 2066), b(336, 1, { 336: 1 }, yMe), o.Df = function(n) { return this.Ef(n) ? (Je(this.b, u(y(n, (te(), fa)), 22), n), !0) : !1; }, o.Ef = function(n) { var t, i, r, c; @@ -36512,7 +36602,7 @@ function WDn() { for (i = new x(this.a); i.a < i.c.c.length; ) if (t = u(A(i), 336), t.Df(n)) return; - he(this.a, new kMe(n)); + he(this.a, new yMe(n)); }, o.Cf = function(n, t) { var i, r, c, s, f, h, l, a, d, g, p, v, j; if (this.a.c.length = 0, t.a.c.length = 0, n.dc()) { @@ -36521,7 +36611,7 @@ function WDn() { } for (f = u(n.Xb(0), 37), Pc(t, f), c = n.Jc(); c.Ob(); ) r = u(c.Pb(), 37), this.Ff(r); - for (j = new er(), s = _(H(y(f, (ae(), oE)))), a = new x(this.a); a.a < a.c.c.length; ) + for (j = new er(), s = B(H(y(f, (ae(), oE)))), a = new x(this.a); a.a < a.c.c.length; ) h = u(A(a), 336), d = Bze(h, s), Da(f$(h.b), j.a, j.b), j.a += d.a, j.b += d.b; if (t.f.a = j.a - s, t.f.b = j.b - s, ve(me(y(f, XI))) && z(y(f, la)) === z((na(), m4))) { for (v = n.Jc(); v.Ob(); ) @@ -36532,40 +36622,40 @@ function WDn() { } for (l = new x(this.a); l.a < l.c.c.length; ) h = u(A(l), 336), YQ(t, f$(h.b)); - }, w(kh, "ComponentGroupGraphPlacer", 766), b(1276, 766, {}, hje), o.Ff = function(n) { - kRe(this, n); + }, w(kh, "ComponentGroupGraphPlacer", 766), b(1276, 766, {}, lje), o.Ff = function(n) { + yRe(this, n); }, o.Cf = function(n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J; if (this.a.c.length = 0, t.a.c.length = 0, n.dc()) { t.f.a = 0, t.f.b = 0; return; } for (f = u(n.Xb(0), 37), Pc(t, f), c = n.Jc(); c.Ob(); ) - r = u(c.Pb(), 37), kRe(this, r); - for (J = new er(), R = new er(), E = new er(), j = new er(), s = _(H(y(f, (ae(), oE)))), a = new x(this.a); a.a < a.c.c.length; ) { - if (h = u(A(a), 336), _l(u(y(t, (tt(), m0)), 86))) { + r = u(c.Pb(), 37), yRe(this, r); + for (J = new er(), R = new er(), E = new er(), j = new er(), s = B(H(y(f, (ae(), oE)))), a = new x(this.a); a.a < a.c.c.length; ) { + if (h = u(A(a), 336), Bl(u(y(t, (tt(), m0)), 86))) { for (E.a = J.a, D = new N4($6(fD(h.b).a).a.kc()); D.b.Ob(); ) - if (M = u(qA(D.b.Pb()), 22), M.Gc((be(), ln))) { + if (T = u(qA(D.b.Pb()), 22), T.Gc((be(), ln))) { E.a = R.a; break; } } else if (n2(u(y(t, m0), 86))) { for (E.b = J.b, D = new N4($6(fD(h.b).a).a.kc()); D.b.Ob(); ) - if (M = u(qA(D.b.Pb()), 22), M.Gc((be(), an))) { + if (T = u(qA(D.b.Pb()), 22), T.Gc((be(), an))) { E.b = R.b; break; } } - if (d = Bze(u(h, 565), s), Da(f$(h.b), E.a, E.b), _l(u(y(t, m0), 86))) { + if (d = Bze(u(h, 565), s), Da(f$(h.b), E.a, E.b), Bl(u(y(t, m0), 86))) { for (R.a = E.a + d.a, j.a = m.Math.max(j.a, R.a), D = new N4($6(fD(h.b).a).a.kc()); D.b.Ob(); ) - if (M = u(qA(D.b.Pb()), 22), M.Gc((be(), Mn))) { + if (T = u(qA(D.b.Pb()), 22), T.Gc((be(), Mn))) { J.a = E.a + d.a; break; } R.b = E.b + d.b, E.b = R.b, j.b = m.Math.max(j.b, E.b); } else if (n2(u(y(t, m0), 86))) { for (R.b = E.b + d.b, j.b = m.Math.max(j.b, R.b), D = new N4($6(fD(h.b).a).a.kc()); D.b.Ob(); ) - if (M = u(qA(D.b.Pb()), 22), M.Gc((be(), gn))) { + if (T = u(qA(D.b.Pb()), 22), T.Gc((be(), gn))) { J.b = E.b + d.b; break; } @@ -36582,14 +36672,14 @@ function WDn() { for (l = new x(this.a); l.a < l.c.c.length; ) h = u(A(l), 336), YQ(t, f$(h.b)); }, w(kh, "ComponentGroupModelOrderGraphPlacer", 1276), b(383, 23, { 3: 1, 35: 1, 23: 1, 383: 1 }, VA); - var bG, ioe, wG, gk, roe = Pn(kh, "ComponentOrderingStrategy", 383, Bn, nmn, N0n), XZe; - b(648, 1, {}, SP), w(kh, "ComponentsCompactor", 648), b(1494, 13, kWe, OOe), o.Ec = function(n) { + var bG, ioe, wG, gk, roe = Pn(kh, "ComponentOrderingStrategy", 383, _n, nmn, N0n), KZe; + b(648, 1, {}, SP), w(kh, "ComponentsCompactor", 648), b(1494, 13, yWe, LOe), o.Ec = function(n) { return h9(this, u(n, 146)); - }, w(kh, "ComponentsCompactor/Hullpoints", 1494), b(1491, 1, { 839: 1 }, _Be), o.a = !1, w(kh, "ComponentsCompactor/InternalComponent", 1491), b(1490, 1, ml, eje), o.Ic = function(n) { + }, w(kh, "ComponentsCompactor/Hullpoints", 1494), b(1491, 1, { 839: 1 }, J_e), o.a = !1, w(kh, "ComponentsCompactor/InternalComponent", 1491), b(1490, 1, ml, nje), o.Ic = function(n) { fr(this, n); }, o.Jc = function() { return new x(this.a); - }, w(kh, "ComponentsCompactor/InternalConnectedComponents", 1490), b(1493, 1, { 591: 1 }, SGe), o.zf = function() { + }, w(kh, "ComponentsCompactor/InternalConnectedComponents", 1490), b(1493, 1, { 591: 1 }, IGe), o.zf = function() { return null; }, o.Af = function() { return this.a; @@ -36597,7 +36687,7 @@ function WDn() { return mF(this.d); }, o.Bf = function() { return this.b; - }, w(kh, "ComponentsCompactor/InternalExternalExtension", 1493), b(1492, 1, { 591: 1 }, tje), o.Af = function() { + }, w(kh, "ComponentsCompactor/InternalExternalExtension", 1493), b(1492, 1, { 591: 1 }, ije), o.Af = function() { return this.a; }, o.yf = function() { return mF(this.d); @@ -36605,22 +36695,22 @@ function WDn() { return this.c; }, o.Bf = function() { return this.b; - }, w(kh, "ComponentsCompactor/InternalUnionExternalExtension", 1492), b(1496, 1, {}, QHe), w(kh, "ComponentsCompactor/OuterSegments", 1496), b(1495, 1, {}, Z7e), w(kh, "ComponentsCompactor/Segments", 1495), b(1247, 1, {}, GOe), w(kh, _ie, 1247), b(1248, 1, ct, jwe), o.Le = function(n, t) { + }, w(kh, "ComponentsCompactor/InternalUnionExternalExtension", 1492), b(1496, 1, {}, YHe), w(kh, "ComponentsCompactor/OuterSegments", 1496), b(1495, 1, {}, eje), w(kh, "ComponentsCompactor/Segments", 1495), b(1247, 1, {}, HOe), w(kh, Bie, 1247), b(1248, 1, ct, Ewe), o.Le = function(n, t) { return I3n(u(n, 37), u(t, 37)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(kh, "ComponentsProcessor/lambda$0$Type", 1248), b(565, 336, { 336: 1, 565: 1 }, POe), o.Df = function(n) { + }, w(kh, "ComponentsProcessor/lambda$0$Type", 1248), b(565, 336, { 336: 1, 565: 1 }, OOe), o.Df = function(n) { return fZ(this, n); }, o.Ef = function(n) { - return OHe(this, n); + return LHe(this, n); }; var st; - w(kh, "ModelOrderComponentGroup", 565), b(1274, 2066, {}, Ewe), o.Cf = function(n, t) { + w(kh, "ModelOrderComponentGroup", 565), b(1274, 2066, {}, Awe), o.Cf = function(n, t) { var i, r, c, s, f, h, l, a, d, g, p; if (n.gc() == 1) { - g = u(n.Xb(0), 37), g != t && (t.a.c.length = 0, Fqe(t, g, 0, 0), Pc(t, g), zV(t.d, g.d), t.f.a = g.f.a, t.f.b = g.f.b); + g = u(n.Xb(0), 37), g != t && (t.a.c.length = 0, Rqe(t, g, 0, 0), Pc(t, g), zV(t.d, g.d), t.f.a = g.f.a, t.f.b = g.f.b); return; } else if (n.dc()) { t.a.c.length = 0, t.f.a = 0, t.f.b = 0; @@ -36628,7 +36718,7 @@ function WDn() { } for (this.Hf(n, t), c = u(n.Xb(0), 37), t.a.c.length = 0, Pc(t, c), a = 0, p = 0, f = n.Jc(); f.Ob(); ) s = u(f.Pb(), 37), d = s.f, a = m.Math.max(a, d.a), p += d.a * d.b; - if (a = m.Math.max(a, m.Math.sqrt(p) * _(H(y(t, (ae(), WI))))), r = _(H(y(t, oE))), this.Gf(n, t, a, r), ve(me(y(c, XI)))) { + if (a = m.Math.max(a, m.Math.sqrt(p) * B(H(y(t, (ae(), WI))))), r = B(H(y(t, oE))), this.Gf(n, t, a, r), ve(me(y(c, XI)))) { for (i = new SP(), wie(i, n, r), l = n.Jc(); l.Ob(); ) h = u(l.Pb(), 37), At(Rf(h.c), i.e); At(Rf(t.f), i.a); @@ -36644,26 +36734,26 @@ function WDn() { if (z(y(t, (ae(), Ik))) === z((A3(), gk))) { for (r = n.Jc(); r.Ob(); ) { for (i = u(r.Pb(), 37), f = 0, s = new x(i.a); s.a < s.c.c.length; ) - c = u(A(s), 9), f += u(y(c, xin), 15).a; + c = u(A(s), 9), f += u(y(c, $in), 15).a; i.p = f; } - ze(), n.gd(new xwe()); + ze(), n.gd(new $we()); } - }, w(kh, "SimpleRowGraphPlacer", 1274), b(1277, 1274, {}, Awe), o.Gf = function(n, t, i, r) { + }, w(kh, "SimpleRowGraphPlacer", 1274), b(1277, 1274, {}, xwe), o.Gf = function(n, t, i, r) { var c, s, f, h, l, a, d, g, p, v; for (p = 0, v = 0, h = 0, c = r, l = null, g = 0, f = n.Jc(); f.Ob(); ) s = u(f.Pb(), 37), d = s.f, (p + d.a > i && !u(y(s, (te(), fa)), 22).Gc((be(), ln)) || l && u(y(l, (te(), fa)), 22).Gc((be(), gn)) || u(y(s, (te(), fa)), 22).Gc((be(), an))) && (p = g, v += h + r, h = 0), a = s.c, u(y(s, (te(), fa)), 22).Gc((be(), ln)) && (p = c + r), t5(s, p + a.a, v + a.b), c = m.Math.max(c, p + d.a), u(y(s, fa), 22).Gc(Mn) && (g = m.Math.max(g, p + d.a + r)), Rf(a), h = m.Math.max(h, d.b), p += d.a + r, l = s; t.f.a = c, t.f.b = v + h; }, o.Hf = function(n, t) { - }, w(kh, "ModelOrderRowGraphPlacer", 1277), b(1275, 1, ct, xwe), o.Le = function(n, t) { - return B4n(u(n, 37), u(t, 37)); + }, w(kh, "ModelOrderRowGraphPlacer", 1277), b(1275, 1, ct, $we), o.Le = function(n, t) { + return _4n(u(n, 37), u(t, 37)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); }, w(kh, "SimpleRowGraphPlacer/1", 1275); - var KZe; - b(1245, 1, Kh, $we), o.Lb = function(n) { + var VZe; + b(1245, 1, Kh, Mwe), o.Lb = function(n) { var t; return t = u(y(u(n, 250).b, (ae(), Vr)), 78), !!t && t.b != 0; }, o.Fb = function(n) { @@ -36671,18 +36761,18 @@ function WDn() { }, o.Mb = function(n) { var t; return t = u(y(u(n, 250).b, (ae(), Vr)), 78), !!t && t.b != 0; - }, w(ZT, "CompoundGraphPostprocessor/1", 1245), b(1244, 1, Ft, rje), o.If = function(n, t) { - HBe(this, u(n, 37), t); - }, w(ZT, "CompoundGraphPreprocessor", 1244), b(444, 1, { 444: 1 }, IRe), o.c = !1, w(ZT, "CompoundGraphPreprocessor/ExternalPort", 444), b(250, 1, { 250: 1 }, Fx), o.Ib = function() { - return jL(this.c) + ":" + vGe(this.b); - }, w(ZT, "CrossHierarchyEdge", 250), b(764, 1, ct, Bz), o.Le = function(n, t) { + }, w(ZT, "CompoundGraphPostprocessor/1", 1245), b(1244, 1, Ft, cje), o.If = function(n, t) { + q_e(this, u(n, 37), t); + }, w(ZT, "CompoundGraphPreprocessor", 1244), b(444, 1, { 444: 1 }, CRe), o.c = !1, w(ZT, "CompoundGraphPreprocessor/ExternalPort", 444), b(250, 1, { 250: 1 }, Fx), o.Ib = function() { + return jL(this.c) + ":" + kGe(this.b); + }, w(ZT, "CrossHierarchyEdge", 250), b(764, 1, ct, _z), o.Le = function(n, t) { return yyn(this, u(n, 250), u(t, 250)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); }, w(ZT, "CrossHierarchyEdgeComparator", 764), b(246, 150, { 3: 1, 246: 1, 105: 1, 150: 1 }), o.p = 0, w(Wc, "LGraphElement", 246), b(17, 246, { 3: 1, 17: 1, 246: 1, 105: 1, 150: 1 }, z0), o.Ib = function() { - return vGe(this); + return kGe(this); }; var H5 = w(Wc, "LEdge", 17); b(37, 246, { 3: 1, 20: 1, 37: 1, 246: 1, 105: 1, 150: 1 }, yY), o.Ic = function(n) { @@ -36692,7 +36782,7 @@ function WDn() { }, o.Ib = function() { return this.b.c.length == 0 ? "G-unlayered" + wh(this.a) : this.a.c.length == 0 ? "G-layered" + wh(this.b) : "G[layerless" + wh(this.a) + ", layers" + wh(this.b) + "]"; }; - var VZe = w(Wc, "LGraph", 37), QZe; + var QZe = w(Wc, "LGraph", 37), YZe; b(655, 1, {}), o.Jf = function() { return this.e.n; }, o.mf = function(n) { @@ -36731,7 +36821,7 @@ function WDn() { } return this.b; }, o.Jf = function() { - throw $(new Ea(tXe)); + throw $(new Ea(iXe)); }, o.mf = function(n) { return y(this.a, n); }, o.Kf = function() { @@ -36741,7 +36831,7 @@ function WDn() { }, o.nf = function(n) { return Et(this.a, n); }, o.Mf = function(n) { - throw $(new Ea(tXe)); + throw $(new Ea(iXe)); }, o.Nf = function(n) { this.a.f.a = n.a, this.a.f.b = n.b; }, o.Of = function(n) { @@ -36774,7 +36864,7 @@ function WDn() { }, o.Yf = function(n) { u(this.e, 9).f.b = n.b, u(this.e, 9).f.d = n.d, u(this.e, 9).f.c = n.c, u(this.e, 9).f.a = n.a; }, o.Zf = function() { - j5n(this, (H4(), QZe)); + j5n(this, (H4(), YZe)); }, o.a = null, o.b = null, o.c = null, o.d = !1, w(Wc, "LGraphAdapters/LNodeAdapter", 570), b(1758, 655, { 836: 1 }, BAe), o.Sf = function() { var n, t, i, r, c, s, f, h; if (this.d && u(this.e, 12).i.k == (cn(), su)) @@ -36783,7 +36873,7 @@ function WDn() { for (this.a = new le(), i = new x(u(this.e, 12).e); i.a < i.c.c.length; ) n = u(A(i), 17), he(this.a, new I4(n)); if (this.d && (r = u(y(u(this.e, 12), (te(), ds)), 9), r)) - for (t = new fn(dn(bi(r).a.Jc(), new Q())); xn(t); ) + for (t = new fn(dn(bi(r).a.Jc(), new Y())); xn(t); ) n = u(pn(t), 17), he(this.a, new I4(n)); if (Et(u(this.e, 12).i, (te(), Pb)) && (f = u(y(u(this.e, 12).i, Pb), 338), h = u(hh(f.e, this.e), 113), h)) for (s = new x(h.b); s.a < s.c.c.length; ) @@ -36804,7 +36894,7 @@ function WDn() { for (this.c = new le(), i = new x(u(this.e, 12).g); i.a < i.c.c.length; ) n = u(A(i), 17), he(this.c, new I4(n)); if (this.d && (r = u(y(u(this.e, 12), (te(), ds)), 9), r)) - for (t = new fn(dn(Ht(r).a.Jc(), new Q())); xn(t); ) + for (t = new fn(dn(Ht(r).a.Jc(), new Y())); xn(t); ) n = u(pn(t), 17), he(this.c, new I4(n)); if (Et(u(this.e, 12).i, (te(), Pb)) && (f = u(y(u(this.e, 12).i, Pb), 338), h = u(hh(f.e, this.e), 113), h)) for (s = new x(h.e); s.a < s.c.c.length; ) @@ -36815,7 +36905,7 @@ function WDn() { return u(this.e, 12).j; }, o._f = function() { return ve(me(y(u(this.e, 12), (te(), nE)))); - }, o.a = null, o.b = null, o.c = null, o.d = !1, w(Wc, "LGraphAdapters/LPortAdapter", 1758), b(1759, 1, ct, Mwe), o.Le = function(n, t) { + }, o.a = null, o.b = null, o.c = null, o.d = !1, w(Wc, "LGraphAdapters/LPortAdapter", 1758), b(1759, 1, ct, Twe), o.Le = function(n, t) { return KMn(u(n, 12), u(t, 12)); }, o.Fb = function(n) { return this === n; @@ -36823,9 +36913,9 @@ function WDn() { return new Zn(this); }, w(Wc, "LGraphAdapters/PortComparator", 1759), b(805, 1, Vn, KU), o.Mb = function(n) { return u(n, 9), H4(), !0; - }, w(Wc, "LGraphAdapters/lambda$0$Type", 805), b(397, 246, { 3: 1, 246: 1, 397: 1, 105: 1, 150: 1 }), w(Wc, "LShape", 397), b(70, 397, { 3: 1, 246: 1, 70: 1, 397: 1, 105: 1, 150: 1 }, uEe, SX), o.Ib = function() { + }, w(Wc, "LGraphAdapters/lambda$0$Type", 805), b(397, 246, { 3: 1, 246: 1, 397: 1, 105: 1, 150: 1 }), w(Wc, "LShape", 397), b(70, 397, { 3: 1, 246: 1, 70: 1, 397: 1, 105: 1, 150: 1 }, sEe, SX), o.Ib = function() { var n; - return n = _wn(this), n == null ? "label" : "l_" + n; + return n = Bwn(this), n == null ? "label" : "l_" + n; }, w(Wc, "LLabel", 70), b(213, 1, { 3: 1, 4: 1, 213: 1, 414: 1 }), o.Fb = function(n) { var t; return N(n, 213) ? (t = u(n, 213), this.d == t.d && this.a == t.a && this.b == t.b && this.c == t.c) : !1; @@ -36834,9 +36924,9 @@ function WDn() { return n = Up(this.b) << 16, n |= Up(this.a) & Ti, t = Up(this.c) << 16, t |= Up(this.d) & Ti, n ^ t; }, o.ag = function(n) { var t, i, r, c, s, f, h, l, a, d, g; - for (s = 0; s < n.length && uRe((bn(s, n.length), n.charCodeAt(s)), rXe); ) + for (s = 0; s < n.length && sRe((bn(s, n.length), n.charCodeAt(s)), cXe); ) ++s; - for (t = n.length; t > 0 && uRe((bn(t - 1, n.length), n.charCodeAt(t - 1)), cXe); ) + for (t = n.length; t > 0 && sRe((bn(t - 1, n.length), n.charCodeAt(t - 1)), uXe); ) --t; if (s < t) { d = qw((tr(s, t, n.length), n.substr(s, t - s)), ",|;"); @@ -36844,37 +36934,37 @@ function WDn() { for (h = d, l = 0, a = h.length; l < a; ++l) { if (f = h[l], c = qw(f, "="), c.length != 2) throw $(new on("Expecting a list of key-value pairs.")); - r = Rw(c[0]), g = Fw(Rw(c[1])), _e(r, "top") ? this.d = g : _e(r, "left") ? this.b = g : _e(r, "bottom") ? this.a = g : _e(r, "right") && (this.c = g); + r = Rw(c[0]), g = Fw(Rw(c[1])), Be(r, "top") ? this.d = g : Be(r, "left") ? this.b = g : Be(r, "bottom") ? this.a = g : Be(r, "right") && (this.c = g); } } catch (p) { - throw p = gi(p), N(p, 131) ? (i = p, $(new on(uXe + i))) : $(p); + throw p = gi(p), N(p, 131) ? (i = p, $(new on(sXe + i))) : $(p); } } }, o.Ib = function() { return "[top=" + this.d + ",left=" + this.b + ",bottom=" + this.a + ",right=" + this.c + "]"; - }, o.a = 0, o.b = 0, o.c = 0, o.d = 0, w(Aj, "Spacing", 213), b(140, 213, sXe, O4, l$e, yK, DL); + }, o.a = 0, o.b = 0, o.c = 0, o.d = 0, w(Aj, "Spacing", 213), b(140, 213, oXe, O4, a$e, yK, DL); var coe = w(Aj, "ElkMargin", 140); - b(649, 140, sXe, tO), w(Wc, "LMargin", 649), b(9, 397, { 3: 1, 246: 1, 9: 1, 397: 1, 105: 1, 150: 1 }, dh), o.Ib = function() { - return NBe(this); + b(649, 140, oXe, tO), w(Wc, "LMargin", 649), b(9, 397, { 3: 1, 246: 1, 9: 1, 397: 1, 105: 1, 150: 1 }, dh), o.Ib = function() { + return F_e(this); }, o.i = !1; var xl = w(Wc, "LNode", 9); b(249, 23, { 3: 1, 35: 1, 23: 1, 249: 1 }, Gp); - var Eh, Ai, _c, yi, pk, si, su, Uj, gG = Pn(Wc, "LNode/NodeType", 249, Bn, b5n, F0n), YZe; + var Eh, Ai, Bc, yi, pk, si, su, Uj, gG = Pn(Wc, "LNode/NodeType", 249, _n, b5n, F0n), ZZe; b(762, 1, Vn, VU), o.Mb = function(n) { return ve(me(y(u(n, 70), (ae(), up)))); - }, w(Wc, "LNode/lambda$0$Type", 762), b(104, 213, oXe, Op, N0, LK); + }, w(Wc, "LNode/lambda$0$Type", 762), b(104, 213, fXe, Op, N0, LK); var uoe = w(Aj, "ElkPadding", 104); - b(765, 104, oXe, tW), w(Wc, "LPadding", 765), b(12, 397, { 3: 1, 246: 1, 12: 1, 397: 1, 105: 1, 150: 1 }, Uc), o.Ib = function() { + b(765, 104, fXe, tW), w(Wc, "LPadding", 765), b(12, 397, { 3: 1, 246: 1, 12: 1, 397: 1, 105: 1, 150: 1 }, Uc), o.Ib = function() { var n, t, i; return n = new w1(), it((n.a += "p_", n), nT(this)), this.i && it(Yc((n.a += "[", n), this.i), "]"), this.e.c.length == 1 && this.g.c.length == 0 && u(pe(this.e, 0), 17).c != this && (t = u(pe(this.e, 0), 17).c, it((n.a += " << ", n), nT(t)), it(Yc((n.a += "[", n), t.i), "]")), this.e.c.length == 0 && this.g.c.length == 1 && u(pe(this.g, 0), 17).d != this && (i = u(pe(this.g, 0), 17).d, it((n.a += " >> ", n), nT(i)), it(Yc((n.a += "[", n), i.i), "]")), n.a; }, o.c = !0, o.d = !1; - var soe, ooe, foe, hoe, loe, aoe, ZZe = w(Wc, "LPort", 12); + var soe, ooe, foe, hoe, loe, aoe, een = w(Wc, "LPort", 12); b(399, 1, ml, Nm), o.Ic = function(n) { fr(this, n); }, o.Jc = function() { var n; - return n = new x(this.a.e), new Qke(n); - }, w(Wc, "LPort/1", 399), b(1273, 1, Wi, Qke), o.Nb = function(n) { + return n = new x(this.a.e), new Yke(n); + }, w(Wc, "LPort/1", 399), b(1273, 1, Wi, Yke), o.Nb = function(n) { cr(this, n); }, o.Pb = function() { return u(A(this.a), 17).c; @@ -36886,8 +36976,8 @@ function WDn() { fr(this, n); }, o.Jc = function() { var n; - return n = new x(this.a.g), new _z(n); - }, w(Wc, "LPort/2", 365), b(763, 1, Wi, _z), o.Nb = function(n) { + return n = new x(this.a.g), new Bz(n); + }, w(Wc, "LPort/2", 365), b(763, 1, Wi, Bz), o.Nb = function(n) { cr(this, n); }, o.Pb = function() { return u(A(this.a), 17).d; @@ -36895,49 +36985,49 @@ function WDn() { return lc(this.a); }, o.Qb = function() { A6(this.a); - }, w(Wc, "LPort/2/1", 763), b(1266, 1, ml, _Ae), o.Ic = function(n) { + }, w(Wc, "LPort/2/1", 763), b(1266, 1, ml, JAe), o.Ic = function(n) { fr(this, n); }, o.Jc = function() { return new fh(this); }, w(Wc, "LPort/CombineIter", 1266), b(207, 1, Wi, fh), o.Nb = function(n) { cr(this, n); }, o.Qb = function() { - vEe(); + kEe(); }, o.Ob = function() { return w6(this); }, o.Pb = function() { return lc(this.a) ? A(this.a) : A(this.b); - }, w(Wc, "LPort/CombineIter/1", 207), b(1267, 1, Kh, Twe), o.Lb = function(n) { - return RSe(n); + }, w(Wc, "LPort/CombineIter/1", 207), b(1267, 1, Kh, Swe), o.Lb = function(n) { + return _Se(n); }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return ns(), u(n, 12).g.c.length != 0; - }, w(Wc, "LPort/lambda$0$Type", 1267), b(1268, 1, Kh, Swe), o.Lb = function(n) { + }, w(Wc, "LPort/lambda$0$Type", 1267), b(1268, 1, Kh, Iwe), o.Lb = function(n) { return BSe(n); }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return ns(), u(n, 12).e.c.length != 0; - }, w(Wc, "LPort/lambda$1$Type", 1268), b(1269, 1, Kh, Iwe), o.Lb = function(n) { + }, w(Wc, "LPort/lambda$1$Type", 1268), b(1269, 1, Kh, Cwe), o.Lb = function(n) { return ns(), u(n, 12).j == (be(), ln); }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return ns(), u(n, 12).j == (be(), ln); - }, w(Wc, "LPort/lambda$2$Type", 1269), b(1270, 1, Kh, Cwe), o.Lb = function(n) { + }, w(Wc, "LPort/lambda$2$Type", 1269), b(1270, 1, Kh, Pwe), o.Lb = function(n) { return ns(), u(n, 12).j == (be(), gn); }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return ns(), u(n, 12).j == (be(), gn); - }, w(Wc, "LPort/lambda$3$Type", 1270), b(1271, 1, Kh, Pwe), o.Lb = function(n) { + }, w(Wc, "LPort/lambda$3$Type", 1270), b(1271, 1, Kh, Owe), o.Lb = function(n) { return ns(), u(n, 12).j == (be(), Mn); }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return ns(), u(n, 12).j == (be(), Mn); - }, w(Wc, "LPort/lambda$4$Type", 1271), b(1272, 1, Kh, Owe), o.Lb = function(n) { + }, w(Wc, "LPort/lambda$4$Type", 1271), b(1272, 1, Kh, Lwe), o.Lb = function(n) { return ns(), u(n, 12).j == (be(), an); }, o.Fb = function(n) { return this === n; @@ -36949,521 +37039,521 @@ function WDn() { return new x(this.a); }, o.Ib = function() { return "L_" + dc(this.b.b, this, 0) + wh(this.a); - }, w(Wc, "Layer", 25), b(1659, 1, {}, TLe), o.b = 0, w(Wc, "Tarjan", 1659), b(1282, 1, {}, ije), w(Xa, fXe, 1282), b(1286, 1, {}, Lwe), o.Kb = function(n) { + }, w(Wc, "Layer", 25), b(1659, 1, {}, SLe), o.b = 0, w(Wc, "Tarjan", 1659), b(1282, 1, {}, rje), w(Xa, hXe, 1282), b(1286, 1, {}, Dwe), o.Kb = function(n) { return ec(u(n, 84)); - }, w(Xa, "ElkGraphImporter/0methodref$connectableShapeToNode$Type", 1286), b(1289, 1, {}, Dwe), o.Kb = function(n) { + }, w(Xa, "ElkGraphImporter/0methodref$connectableShapeToNode$Type", 1286), b(1289, 1, {}, Nwe), o.Kb = function(n) { return ec(u(n, 84)); - }, w(Xa, "ElkGraphImporter/1methodref$connectableShapeToNode$Type", 1289), b(1283, 1, mn, Yke), o.Ad = function(n) { - NGe(this.a, u(n, 125)); - }, w(Xa, Jie, 1283), b(1284, 1, mn, Zke), o.Ad = function(n) { - NGe(this.a, u(n, 125)); - }, w(Xa, hXe, 1284), b(1285, 1, {}, Fwe), o.Kb = function(n) { - return new Ge(null, new He(_V(u(n, 85)), 16)); - }, w(Xa, lXe, 1285), b(1287, 1, Vn, e8e), o.Mb = function(n) { + }, w(Xa, "ElkGraphImporter/1methodref$connectableShapeToNode$Type", 1289), b(1283, 1, mn, Zke), o.Ad = function(n) { + FGe(this.a, u(n, 125)); + }, w(Xa, Jie, 1283), b(1284, 1, mn, e8e), o.Ad = function(n) { + FGe(this.a, u(n, 125)); + }, w(Xa, lXe, 1284), b(1285, 1, {}, Rwe), o.Kb = function(n) { + return new Ge(null, new He(BV(u(n, 85)), 16)); + }, w(Xa, aXe, 1285), b(1287, 1, Vn, n8e), o.Mb = function(n) { return a1n(this.a, u(n, 26)); - }, w(Xa, aXe, 1287), b(1288, 1, {}, Rwe), o.Kb = function(n) { + }, w(Xa, dXe, 1287), b(1288, 1, {}, _we), o.Kb = function(n) { return new Ge(null, new He(m2n(u(n, 85)), 16)); - }, w(Xa, "ElkGraphImporter/lambda$5$Type", 1288), b(1290, 1, Vn, n8e), o.Mb = function(n) { + }, w(Xa, "ElkGraphImporter/lambda$5$Type", 1288), b(1290, 1, Vn, t8e), o.Mb = function(n) { return d1n(this.a, u(n, 26)); }, w(Xa, "ElkGraphImporter/lambda$7$Type", 1290), b(1291, 1, Vn, Bwe), o.Mb = function(n) { return O2n(u(n, 85)); - }, w(Xa, "ElkGraphImporter/lambda$8$Type", 1291), b(1261, 1, {}, Z6e); - var een; - w(Xa, "ElkGraphLayoutTransferrer", 1261), b(1262, 1, Vn, t8e), o.Mb = function(n) { + }, w(Xa, "ElkGraphImporter/lambda$8$Type", 1291), b(1261, 1, {}, e9e); + var nen; + w(Xa, "ElkGraphLayoutTransferrer", 1261), b(1262, 1, Vn, i8e), o.Mb = function(n) { return r0n(this.a, u(n, 17)); - }, w(Xa, "ElkGraphLayoutTransferrer/lambda$0$Type", 1262), b(1263, 1, mn, i8e), o.Ad = function(n) { + }, w(Xa, "ElkGraphLayoutTransferrer/lambda$0$Type", 1262), b(1263, 1, mn, r8e), o.Ad = function(n) { Y8(), he(this.a, u(n, 17)); - }, w(Xa, "ElkGraphLayoutTransferrer/lambda$1$Type", 1263), b(1264, 1, Vn, r8e), o.Mb = function(n) { + }, w(Xa, "ElkGraphLayoutTransferrer/lambda$1$Type", 1263), b(1264, 1, Vn, c8e), o.Mb = function(n) { return qdn(this.a, u(n, 17)); - }, w(Xa, "ElkGraphLayoutTransferrer/lambda$2$Type", 1264), b(1265, 1, mn, c8e), o.Ad = function(n) { + }, w(Xa, "ElkGraphLayoutTransferrer/lambda$2$Type", 1264), b(1265, 1, mn, u8e), o.Ad = function(n) { Y8(), he(this.a, u(n, 17)); - }, w(Xa, "ElkGraphLayoutTransferrer/lambda$3$Type", 1265), b(806, 1, {}, vK), w(wn, "BiLinkedHashMultiMap", 806), b(1511, 1, Ft, _we), o.If = function(n, t) { + }, w(Xa, "ElkGraphLayoutTransferrer/lambda$3$Type", 1265), b(806, 1, {}, vK), w(wn, "BiLinkedHashMultiMap", 806), b(1511, 1, Ft, Jwe), o.If = function(n, t) { r4n(u(n, 37), t); - }, w(wn, "CommentNodeMarginCalculator", 1511), b(1512, 1, {}, Jwe), o.Kb = function(n) { + }, w(wn, "CommentNodeMarginCalculator", 1511), b(1512, 1, {}, Gwe), o.Kb = function(n) { return new Ge(null, new He(u(n, 25).a, 16)); - }, w(wn, "CommentNodeMarginCalculator/lambda$0$Type", 1512), b(1513, 1, mn, Gwe), o.Ad = function(n) { + }, w(wn, "CommentNodeMarginCalculator/lambda$0$Type", 1512), b(1513, 1, mn, Hwe), o.Ad = function(n) { kIn(u(n, 9)); - }, w(wn, "CommentNodeMarginCalculator/lambda$1$Type", 1513), b(1514, 1, Ft, Nwe), o.If = function(n, t) { + }, w(wn, "CommentNodeMarginCalculator/lambda$1$Type", 1513), b(1514, 1, Ft, Fwe), o.If = function(n, t) { MMn(u(n, 37), t); - }, w(wn, "CommentPostprocessor", 1514), b(1515, 1, Ft, Hwe), o.If = function(n, t) { + }, w(wn, "CommentPostprocessor", 1514), b(1515, 1, Ft, qwe), o.If = function(n, t) { WPn(u(n, 37), t); - }, w(wn, "CommentPreprocessor", 1515), b(1516, 1, Ft, qwe), o.If = function(n, t) { - _$n(u(n, 37), t); - }, w(wn, "ConstraintsPostprocessor", 1516), b(1517, 1, Ft, Uwe), o.If = function(n, t) { + }, w(wn, "CommentPreprocessor", 1515), b(1516, 1, Ft, Uwe), o.If = function(n, t) { + B$n(u(n, 37), t); + }, w(wn, "ConstraintsPostprocessor", 1516), b(1517, 1, Ft, zwe), o.If = function(n, t) { S4n(u(n, 37), t); - }, w(wn, "EdgeAndLayerConstraintEdgeReverser", 1517), b(1518, 1, Ft, zwe), o.If = function(n, t) { + }, w(wn, "EdgeAndLayerConstraintEdgeReverser", 1517), b(1518, 1, Ft, Wwe), o.If = function(n, t) { rkn(u(n, 37), t); - }, w(wn, "EndLabelPostprocessor", 1518), b(1519, 1, {}, Wwe), o.Kb = function(n) { + }, w(wn, "EndLabelPostprocessor", 1518), b(1519, 1, {}, Xwe), o.Kb = function(n) { return new Ge(null, new He(u(n, 25).a, 16)); - }, w(wn, "EndLabelPostprocessor/lambda$0$Type", 1519), b(1520, 1, Vn, Xwe), o.Mb = function(n) { + }, w(wn, "EndLabelPostprocessor/lambda$0$Type", 1519), b(1520, 1, Vn, Kwe), o.Mb = function(n) { return Gmn(u(n, 9)); - }, w(wn, "EndLabelPostprocessor/lambda$1$Type", 1520), b(1521, 1, mn, Kwe), o.Ad = function(n) { + }, w(wn, "EndLabelPostprocessor/lambda$1$Type", 1520), b(1521, 1, mn, Vwe), o.Ad = function(n) { Vyn(u(n, 9)); - }, w(wn, "EndLabelPostprocessor/lambda$2$Type", 1521), b(1522, 1, Ft, Vwe), o.If = function(n, t) { + }, w(wn, "EndLabelPostprocessor/lambda$2$Type", 1521), b(1522, 1, Ft, Qwe), o.If = function(n, t) { PEn(u(n, 37), t); - }, w(wn, "EndLabelPreprocessor", 1522), b(1523, 1, {}, Qwe), o.Kb = function(n) { + }, w(wn, "EndLabelPreprocessor", 1522), b(1523, 1, {}, Ywe), o.Kb = function(n) { return new Ge(null, new He(u(n, 25).a, 16)); - }, w(wn, "EndLabelPreprocessor/lambda$0$Type", 1523), b(1524, 1, mn, STe), o.Ad = function(n) { + }, w(wn, "EndLabelPreprocessor/lambda$0$Type", 1523), b(1524, 1, mn, ITe), o.Ad = function(n) { Man(this.a, this.b, this.c, u(n, 9)); - }, o.a = 0, o.b = 0, o.c = !1, w(wn, "EndLabelPreprocessor/lambda$1$Type", 1524), b(1525, 1, Vn, Ywe), o.Mb = function(n) { + }, o.a = 0, o.b = 0, o.c = !1, w(wn, "EndLabelPreprocessor/lambda$1$Type", 1524), b(1525, 1, Vn, Zwe), o.Mb = function(n) { return z(y(u(n, 70), (ae(), il))) === z((lh(), p4)); - }, w(wn, "EndLabelPreprocessor/lambda$2$Type", 1525), b(1526, 1, mn, u8e), o.Ad = function(n) { + }, w(wn, "EndLabelPreprocessor/lambda$2$Type", 1525), b(1526, 1, mn, s8e), o.Ad = function(n) { rt(this.a, u(n, 70)); - }, w(wn, "EndLabelPreprocessor/lambda$3$Type", 1526), b(1527, 1, Vn, Zwe), o.Mb = function(n) { + }, w(wn, "EndLabelPreprocessor/lambda$3$Type", 1526), b(1527, 1, Vn, ege), o.Mb = function(n) { return z(y(u(n, 70), (ae(), il))) === z((lh(), Ig)); - }, w(wn, "EndLabelPreprocessor/lambda$4$Type", 1527), b(1528, 1, mn, s8e), o.Ad = function(n) { + }, w(wn, "EndLabelPreprocessor/lambda$4$Type", 1527), b(1528, 1, mn, o8e), o.Ad = function(n) { rt(this.a, u(n, 70)); - }, w(wn, "EndLabelPreprocessor/lambda$5$Type", 1528), b(1576, 1, Ft, e9e), o.If = function(n, t) { + }, w(wn, "EndLabelPreprocessor/lambda$5$Type", 1528), b(1576, 1, Ft, n9e), o.If = function(n, t) { v9n(u(n, 37), t); }; - var nen; - w(wn, "EndLabelSorter", 1576), b(1577, 1, ct, ege), o.Le = function(n, t) { - return _kn(u(n, 455), u(t, 455)); + var ten; + w(wn, "EndLabelSorter", 1576), b(1577, 1, ct, nge), o.Le = function(n, t) { + return Bkn(u(n, 455), u(t, 455)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(wn, "EndLabelSorter/1", 1577), b(455, 1, { 455: 1 }, nCe), w(wn, "EndLabelSorter/LabelGroup", 455), b(1578, 1, {}, nge), o.Kb = function(n) { + }, w(wn, "EndLabelSorter/1", 1577), b(455, 1, { 455: 1 }, tCe), w(wn, "EndLabelSorter/LabelGroup", 455), b(1578, 1, {}, tge), o.Kb = function(n) { return Q8(), new Ge(null, new He(u(n, 25).a, 16)); - }, w(wn, "EndLabelSorter/lambda$0$Type", 1578), b(1579, 1, Vn, tge), o.Mb = function(n) { + }, w(wn, "EndLabelSorter/lambda$0$Type", 1578), b(1579, 1, Vn, ige), o.Mb = function(n) { return Q8(), u(n, 9).k == (cn(), si); - }, w(wn, "EndLabelSorter/lambda$1$Type", 1579), b(1580, 1, mn, ige), o.Ad = function(n) { + }, w(wn, "EndLabelSorter/lambda$1$Type", 1579), b(1580, 1, mn, rge), o.Ad = function(n) { zjn(u(n, 9)); - }, w(wn, "EndLabelSorter/lambda$2$Type", 1580), b(1581, 1, Vn, rge), o.Mb = function(n) { + }, w(wn, "EndLabelSorter/lambda$2$Type", 1580), b(1581, 1, Vn, cge), o.Mb = function(n) { return Q8(), z(y(u(n, 70), (ae(), il))) === z((lh(), Ig)); - }, w(wn, "EndLabelSorter/lambda$3$Type", 1581), b(1582, 1, Vn, cge), o.Mb = function(n) { + }, w(wn, "EndLabelSorter/lambda$3$Type", 1581), b(1582, 1, Vn, uge), o.Mb = function(n) { return Q8(), z(y(u(n, 70), (ae(), il))) === z((lh(), p4)); - }, w(wn, "EndLabelSorter/lambda$4$Type", 1582), b(1529, 1, Ft, uge), o.If = function(n, t) { + }, w(wn, "EndLabelSorter/lambda$4$Type", 1582), b(1529, 1, Ft, sge), o.If = function(n, t) { FIn(this, u(n, 37)); - }, o.b = 0, o.c = 0, w(wn, "FinalSplineBendpointsCalculator", 1529), b(1530, 1, {}, sge), o.Kb = function(n) { + }, o.b = 0, o.c = 0, w(wn, "FinalSplineBendpointsCalculator", 1529), b(1530, 1, {}, oge), o.Kb = function(n) { return new Ge(null, new He(u(n, 25).a, 16)); - }, w(wn, "FinalSplineBendpointsCalculator/lambda$0$Type", 1530), b(1531, 1, {}, oge), o.Kb = function(n) { - return new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Q())))); - }, w(wn, "FinalSplineBendpointsCalculator/lambda$1$Type", 1531), b(1532, 1, Vn, fge), o.Mb = function(n) { + }, w(wn, "FinalSplineBendpointsCalculator/lambda$0$Type", 1530), b(1531, 1, {}, fge), o.Kb = function(n) { + return new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Y())))); + }, w(wn, "FinalSplineBendpointsCalculator/lambda$1$Type", 1531), b(1532, 1, Vn, hge), o.Mb = function(n) { return !hr(u(n, 17)); - }, w(wn, "FinalSplineBendpointsCalculator/lambda$2$Type", 1532), b(1533, 1, Vn, hge), o.Mb = function(n) { + }, w(wn, "FinalSplineBendpointsCalculator/lambda$2$Type", 1532), b(1533, 1, Vn, lge), o.Mb = function(n) { return Et(u(n, 17), (te(), h0)); - }, w(wn, "FinalSplineBendpointsCalculator/lambda$3$Type", 1533), b(1534, 1, mn, o8e), o.Ad = function(n) { + }, w(wn, "FinalSplineBendpointsCalculator/lambda$3$Type", 1533), b(1534, 1, mn, f8e), o.Ad = function(n) { UTn(this.a, u(n, 132)); - }, w(wn, "FinalSplineBendpointsCalculator/lambda$4$Type", 1534), b(1535, 1, mn, lge), o.Ad = function(n) { + }, w(wn, "FinalSplineBendpointsCalculator/lambda$4$Type", 1534), b(1535, 1, mn, age), o.Ad = function(n) { R7(u(n, 17).a); }, w(wn, "FinalSplineBendpointsCalculator/lambda$5$Type", 1535), b(790, 1, Ft, Jz), o.If = function(n, t) { CCn(this, u(n, 37), t); }, w(wn, "GraphTransformer", 790), b(502, 23, { 3: 1, 35: 1, 23: 1, 502: 1 }, VW); - var pG, zj, ten = Pn(wn, "GraphTransformer/Mode", 502, Bn, lpn, R0n), ien; - b(1536, 1, Ft, age), o.If = function(n, t) { + var pG, zj, ien = Pn(wn, "GraphTransformer/Mode", 502, _n, lpn, R0n), ren; + b(1536, 1, Ft, dge), o.If = function(n, t) { Zxn(u(n, 37), t); - }, w(wn, "HierarchicalNodeResizingProcessor", 1536), b(1537, 1, Ft, dge), o.If = function(n, t) { + }, w(wn, "HierarchicalNodeResizingProcessor", 1536), b(1537, 1, Ft, bge), o.If = function(n, t) { U5n(u(n, 37), t); - }, w(wn, "HierarchicalPortConstraintProcessor", 1537), b(1538, 1, ct, bge), o.Le = function(n, t) { + }, w(wn, "HierarchicalPortConstraintProcessor", 1537), b(1538, 1, ct, wge), o.Le = function(n, t) { return u8n(u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(wn, "HierarchicalPortConstraintProcessor/NodeComparator", 1538), b(1539, 1, Ft, wge), o.If = function(n, t) { + }, w(wn, "HierarchicalPortConstraintProcessor/NodeComparator", 1538), b(1539, 1, Ft, gge), o.If = function(n, t) { RSn(u(n, 37), t); - }, w(wn, "HierarchicalPortDummySizeProcessor", 1539), b(1540, 1, Ft, gge), o.If = function(n, t) { + }, w(wn, "HierarchicalPortDummySizeProcessor", 1539), b(1540, 1, Ft, pge), o.If = function(n, t) { QMn(this, u(n, 37), t); - }, o.a = 0, w(wn, "HierarchicalPortOrthogonalEdgeRouter", 1540), b(1541, 1, ct, pge), o.Le = function(n, t) { + }, o.a = 0, w(wn, "HierarchicalPortOrthogonalEdgeRouter", 1540), b(1541, 1, ct, mge), o.Le = function(n, t) { return udn(u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(wn, "HierarchicalPortOrthogonalEdgeRouter/1", 1541), b(1542, 1, ct, mge), o.Le = function(n, t) { + }, w(wn, "HierarchicalPortOrthogonalEdgeRouter/1", 1541), b(1542, 1, ct, vge), o.Le = function(n, t) { return qvn(u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(wn, "HierarchicalPortOrthogonalEdgeRouter/2", 1542), b(1543, 1, Ft, vge), o.If = function(n, t) { + }, w(wn, "HierarchicalPortOrthogonalEdgeRouter/2", 1542), b(1543, 1, Ft, kge), o.If = function(n, t) { Sjn(u(n, 37), t); - }, w(wn, "HierarchicalPortPositionProcessor", 1543), b(1544, 1, Ft, Y6e), o.If = function(n, t) { + }, w(wn, "HierarchicalPortPositionProcessor", 1543), b(1544, 1, Ft, Z6e), o.If = function(n, t) { IOn(this, u(n, 37)); }, o.a = 0, o.c = 0; var fI, hI; - w(wn, "HighDegreeNodeLayeringProcessor", 1544), b(566, 1, { 566: 1 }, kge), o.b = -1, o.d = -1, w(wn, "HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation", 566), b(1545, 1, {}, yge), o.Kb = function(n) { + w(wn, "HighDegreeNodeLayeringProcessor", 1544), b(566, 1, { 566: 1 }, yge), o.b = -1, o.d = -1, w(wn, "HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation", 566), b(1545, 1, {}, jge), o.Kb = function(n) { return xy(), bi(u(n, 9)); }, o.Fb = function(n) { return this === n; - }, w(wn, "HighDegreeNodeLayeringProcessor/lambda$0$Type", 1545), b(1546, 1, {}, jge), o.Kb = function(n) { + }, w(wn, "HighDegreeNodeLayeringProcessor/lambda$0$Type", 1545), b(1546, 1, {}, Ege), o.Kb = function(n) { return xy(), Ht(u(n, 9)); }, o.Fb = function(n) { return this === n; - }, w(wn, "HighDegreeNodeLayeringProcessor/lambda$1$Type", 1546), b(1552, 1, Ft, Ege), o.If = function(n, t) { + }, w(wn, "HighDegreeNodeLayeringProcessor/lambda$1$Type", 1546), b(1552, 1, Ft, Age), o.If = function(n, t) { SSn(this, u(n, 37), t); - }, w(wn, "HyperedgeDummyMerger", 1552), b(791, 1, {}, NK), o.a = !1, o.b = !1, o.c = !1, w(wn, "HyperedgeDummyMerger/MergeState", 791), b(1553, 1, {}, Age), o.Kb = function(n) { + }, w(wn, "HyperedgeDummyMerger", 1552), b(791, 1, {}, NK), o.a = !1, o.b = !1, o.c = !1, w(wn, "HyperedgeDummyMerger/MergeState", 791), b(1553, 1, {}, xge), o.Kb = function(n) { return new Ge(null, new He(u(n, 25).a, 16)); - }, w(wn, "HyperedgeDummyMerger/lambda$0$Type", 1553), b(1554, 1, {}, xge), o.Kb = function(n) { + }, w(wn, "HyperedgeDummyMerger/lambda$0$Type", 1553), b(1554, 1, {}, $ge), o.Kb = function(n) { return new Ge(null, new He(u(n, 9).j, 16)); - }, w(wn, "HyperedgeDummyMerger/lambda$1$Type", 1554), b(1555, 1, mn, $ge), o.Ad = function(n) { + }, w(wn, "HyperedgeDummyMerger/lambda$1$Type", 1554), b(1555, 1, mn, Mge), o.Ad = function(n) { u(n, 12).p = -1; - }, w(wn, "HyperedgeDummyMerger/lambda$2$Type", 1555), b(1556, 1, Ft, Tge), o.If = function(n, t) { + }, w(wn, "HyperedgeDummyMerger/lambda$2$Type", 1555), b(1556, 1, Ft, Sge), o.If = function(n, t) { TSn(u(n, 37), t); - }, w(wn, "HypernodesProcessor", 1556), b(1557, 1, Ft, Sge), o.If = function(n, t) { + }, w(wn, "HypernodesProcessor", 1556), b(1557, 1, Ft, Ige), o.If = function(n, t) { FSn(u(n, 37), t); - }, w(wn, "InLayerConstraintProcessor", 1557), b(1558, 1, Ft, Ige), o.If = function(n, t) { + }, w(wn, "InLayerConstraintProcessor", 1557), b(1558, 1, Ft, Cge), o.If = function(n, t) { v4n(u(n, 37), t); - }, w(wn, "InnermostNodeMarginCalculator", 1558), b(1559, 1, Ft, Cge), o.If = function(n, t) { + }, w(wn, "InnermostNodeMarginCalculator", 1558), b(1559, 1, Ft, Pge), o.If = function(n, t) { HPn(this, u(n, 37)); }, o.a = Ri, o.b = Ri, o.c = ii, o.d = ii; - var BLn = w(wn, "InteractiveExternalPortPositioner", 1559); - b(1560, 1, {}, Pge), o.Kb = function(n) { + var _Ln = w(wn, "InteractiveExternalPortPositioner", 1559); + b(1560, 1, {}, Oge), o.Kb = function(n) { return u(n, 17).d.i; }, o.Fb = function(n) { return this === n; - }, w(wn, "InteractiveExternalPortPositioner/lambda$0$Type", 1560), b(1561, 1, {}, f8e), o.Kb = function(n) { + }, w(wn, "InteractiveExternalPortPositioner/lambda$0$Type", 1560), b(1561, 1, {}, h8e), o.Kb = function(n) { return sdn(this.a, H(n)); }, o.Fb = function(n) { return this === n; - }, w(wn, "InteractiveExternalPortPositioner/lambda$1$Type", 1561), b(1562, 1, {}, Oge), o.Kb = function(n) { + }, w(wn, "InteractiveExternalPortPositioner/lambda$1$Type", 1561), b(1562, 1, {}, Lge), o.Kb = function(n) { return u(n, 17).c.i; }, o.Fb = function(n) { return this === n; - }, w(wn, "InteractiveExternalPortPositioner/lambda$2$Type", 1562), b(1563, 1, {}, h8e), o.Kb = function(n) { + }, w(wn, "InteractiveExternalPortPositioner/lambda$2$Type", 1562), b(1563, 1, {}, l8e), o.Kb = function(n) { return odn(this.a, H(n)); }, o.Fb = function(n) { return this === n; - }, w(wn, "InteractiveExternalPortPositioner/lambda$3$Type", 1563), b(1564, 1, {}, l8e), o.Kb = function(n) { + }, w(wn, "InteractiveExternalPortPositioner/lambda$3$Type", 1563), b(1564, 1, {}, a8e), o.Kb = function(n) { return t0n(this.a, H(n)); }, o.Fb = function(n) { return this === n; - }, w(wn, "InteractiveExternalPortPositioner/lambda$4$Type", 1564), b(1565, 1, {}, a8e), o.Kb = function(n) { + }, w(wn, "InteractiveExternalPortPositioner/lambda$4$Type", 1564), b(1565, 1, {}, d8e), o.Kb = function(n) { return i0n(this.a, H(n)); }, o.Fb = function(n) { return this === n; }, w(wn, "InteractiveExternalPortPositioner/lambda$5$Type", 1565), b(79, 23, { 3: 1, 35: 1, 23: 1, 79: 1, 196: 1 }, ji), o.bg = function() { switch (this.g) { case 15: - return new Ype(); - case 22: return new Zpe(); + case 22: + return new e3e(); case 48: - return new t3e(); + return new i3e(); case 29: case 36: - return new Hge(); + return new qge(); case 33: - return new _we(); + return new Jwe(); case 43: - return new Nwe(); + return new Fwe(); case 1: - return new Hwe(); - case 42: return new qwe(); + case 42: + return new Uwe(); case 57: return new Jz((Ev(), zj)); case 0: return new Jz((Ev(), pG)); case 2: - return new Uwe(); - case 55: return new zwe(); + case 55: + return new Wwe(); case 34: - return new Vwe(); + return new Qwe(); case 52: - return new uge(); + return new sge(); case 56: - return new age(); - case 13: return new dge(); + case 13: + return new bge(); case 39: - return new wge(); - case 45: return new gge(); + case 45: + return new pge(); case 41: - return new vge(); + return new kge(); case 9: - return new Y6e(); + return new Z6e(); case 50: - return new dMe(); + return new bMe(); case 38: - return new Ege(); + return new Age(); case 44: - return new Tge(); - case 28: return new Sge(); - case 31: + case 28: return new Ige(); - case 3: + case 31: return new Cge(); + case 3: + return new Pge(); case 18: - return new Mge(); + return new Tge(); case 30: - return new Lge(); + return new Dge(); case 5: - return new n9e(); + return new t9e(); case 51: - return new Rge(); + return new _ge(); case 35: - return new t9e(); + return new i9e(); case 37: - return new qge(); + return new Uge(); case 53: - return new e9e(); + return new n9e(); case 11: - return new Uge(); + return new zge(); case 7: - return new i9e(); + return new r9e(); case 40: - return new zge(); - case 46: return new Wge(); - case 16: + case 46: return new Xge(); + case 16: + return new Kge(); case 10: - return new wxe(); + return new gxe(); case 49: - return new Yge(); - case 21: return new Zge(); + case 21: + return new e2e(); case 23: return new MA((Ud(), qk)); case 8: - return new n2e(); + return new t2e(); case 12: - return new i2e(); - case 4: return new r2e(); + case 4: + return new c2e(); case 19: - return new r9e(); + return new c9e(); case 17: - return new b2e(); - case 54: return new w2e(); + case 54: + return new g2e(); case 6: - return new M2e(); + return new T2e(); case 25: - return new uje(); + return new sje(); case 26: - return new Qpe(); + return new Ype(); case 47: - return new k2e(); + return new y2e(); case 32: - return new eTe(); + return new nTe(); case 14: - return new D2e(); + return new N2e(); case 27: - return new c3e(); + return new u3e(); case 20: - return new _2e(); + return new J2e(); case 24: return new MA((Ud(), gC)); default: - throw $(new on(_B + (this.f != null ? this.f : "" + this.g))); + throw $(new on(B_ + (this.f != null ? this.f : "" + this.g))); } }; - var doe, boe, woe, goe, poe, moe, voe, koe, yoe, joe, Eoe, X2, lI, aI, Aoe, xoe, $oe, Moe, Toe, Soe, Ioe, mk, Coe, Poe, Ooe, Loe, Doe, mG, dI, bI, Noe, wI, gI, pI, q5, cg, ug, Foe, mI, vI, Roe, kI, yI, Boe, _oe, Joe, Goe, jI, vG, em, EI, AI, xI, $I, Hoe, qoe, Uoe, zoe, _Ln = Pn(wn, JB, 79, Bn, DHe, B0n), ren; - b(1566, 1, Ft, Mge), o.If = function(n, t) { - _Pn(u(n, 37), t); - }, w(wn, "InvertedPortProcessor", 1566), b(1567, 1, Ft, Lge), o.If = function(n, t) { - BTn(u(n, 37), t); - }, w(wn, "LabelAndNodeSizeProcessor", 1567), b(1568, 1, Vn, Dge), o.Mb = function(n) { + var doe, boe, woe, goe, poe, moe, voe, koe, yoe, joe, Eoe, X2, lI, aI, Aoe, xoe, $oe, Moe, Toe, Soe, Ioe, mk, Coe, Poe, Ooe, Loe, Doe, mG, dI, bI, Noe, wI, gI, pI, q5, cg, ug, Foe, mI, vI, Roe, kI, yI, _oe, Boe, Joe, Goe, jI, vG, em, EI, AI, xI, $I, Hoe, qoe, Uoe, zoe, BLn = Pn(wn, J_, 79, _n, NHe, _0n), cen; + b(1566, 1, Ft, Tge), o.If = function(n, t) { + BPn(u(n, 37), t); + }, w(wn, "InvertedPortProcessor", 1566), b(1567, 1, Ft, Dge), o.If = function(n, t) { + _Tn(u(n, 37), t); + }, w(wn, "LabelAndNodeSizeProcessor", 1567), b(1568, 1, Vn, Nge), o.Mb = function(n) { return u(n, 9).k == (cn(), si); - }, w(wn, "LabelAndNodeSizeProcessor/lambda$0$Type", 1568), b(1569, 1, Vn, Nge), o.Mb = function(n) { + }, w(wn, "LabelAndNodeSizeProcessor/lambda$0$Type", 1568), b(1569, 1, Vn, Fge), o.Mb = function(n) { return u(n, 9).k == (cn(), Ai); - }, w(wn, "LabelAndNodeSizeProcessor/lambda$1$Type", 1569), b(1570, 1, mn, PTe), o.Ad = function(n) { + }, w(wn, "LabelAndNodeSizeProcessor/lambda$1$Type", 1569), b(1570, 1, mn, OTe), o.Ad = function(n) { Tan(this.b, this.a, this.c, u(n, 9)); - }, o.a = !1, o.c = !1, w(wn, "LabelAndNodeSizeProcessor/lambda$2$Type", 1570), b(1571, 1, Ft, n9e), o.If = function(n, t) { + }, o.a = !1, o.c = !1, w(wn, "LabelAndNodeSizeProcessor/lambda$2$Type", 1570), b(1571, 1, Ft, t9e), o.If = function(n, t) { mPn(u(n, 37), t); }; - var cen; - w(wn, "LabelDummyInserter", 1571), b(1572, 1, Kh, Fge), o.Lb = function(n) { + var uen; + w(wn, "LabelDummyInserter", 1571), b(1572, 1, Kh, Rge), o.Lb = function(n) { return z(y(u(n, 70), (ae(), il))) === z((lh(), g4)); }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return z(y(u(n, 70), (ae(), il))) === z((lh(), g4)); - }, w(wn, "LabelDummyInserter/1", 1572), b(1573, 1, Ft, Rge), o.If = function(n, t) { + }, w(wn, "LabelDummyInserter/1", 1572), b(1573, 1, Ft, _ge), o.If = function(n, t) { cPn(u(n, 37), t); }, w(wn, "LabelDummyRemover", 1573), b(1574, 1, Vn, Bge), o.Mb = function(n) { return ve(me(y(u(n, 70), (ae(), up)))); - }, w(wn, "LabelDummyRemover/lambda$0$Type", 1574), b(1332, 1, Ft, t9e), o.If = function(n, t) { + }, w(wn, "LabelDummyRemover/lambda$0$Type", 1574), b(1332, 1, Ft, i9e), o.If = function(n, t) { ZCn(this, u(n, 37), t); }, o.a = null; var kG; - w(wn, "LabelDummySwitcher", 1332), b(294, 1, { 294: 1 }, Cqe), o.c = 0, o.d = null, o.f = 0, w(wn, "LabelDummySwitcher/LabelDummyInfo", 294), b(1333, 1, {}, _ge), o.Kb = function(n) { + w(wn, "LabelDummySwitcher", 1332), b(294, 1, { 294: 1 }, Pqe), o.c = 0, o.d = null, o.f = 0, w(wn, "LabelDummySwitcher/LabelDummyInfo", 294), b(1333, 1, {}, Jge), o.Kb = function(n) { return p3(), new Ge(null, new He(u(n, 25).a, 16)); - }, w(wn, "LabelDummySwitcher/lambda$0$Type", 1333), b(1334, 1, Vn, Jge), o.Mb = function(n) { - return p3(), u(n, 9).k == (cn(), _c); - }, w(wn, "LabelDummySwitcher/lambda$1$Type", 1334), b(1335, 1, {}, d8e), o.Kb = function(n) { + }, w(wn, "LabelDummySwitcher/lambda$0$Type", 1333), b(1334, 1, Vn, Gge), o.Mb = function(n) { + return p3(), u(n, 9).k == (cn(), Bc); + }, w(wn, "LabelDummySwitcher/lambda$1$Type", 1334), b(1335, 1, {}, b8e), o.Kb = function(n) { return Udn(this.a, u(n, 9)); - }, w(wn, "LabelDummySwitcher/lambda$2$Type", 1335), b(1336, 1, mn, b8e), o.Ad = function(n) { + }, w(wn, "LabelDummySwitcher/lambda$2$Type", 1335), b(1336, 1, mn, w8e), o.Ad = function(n) { Wgn(this.a, u(n, 294)); - }, w(wn, "LabelDummySwitcher/lambda$3$Type", 1336), b(1337, 1, ct, Gge), o.Le = function(n, t) { + }, w(wn, "LabelDummySwitcher/lambda$3$Type", 1336), b(1337, 1, ct, Hge), o.Le = function(n, t) { return jgn(u(n, 294), u(t, 294)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(wn, "LabelDummySwitcher/lambda$4$Type", 1337), b(789, 1, Ft, Hge), o.If = function(n, t) { + }, w(wn, "LabelDummySwitcher/lambda$4$Type", 1337), b(789, 1, Ft, qge), o.If = function(n, t) { Avn(u(n, 37), t); - }, w(wn, "LabelManagementProcessor", 789), b(1575, 1, Ft, qge), o.If = function(n, t) { + }, w(wn, "LabelManagementProcessor", 789), b(1575, 1, Ft, Uge), o.If = function(n, t) { gMn(u(n, 37), t); - }, w(wn, "LabelSideSelector", 1575), b(1583, 1, Ft, Uge), o.If = function(n, t) { + }, w(wn, "LabelSideSelector", 1575), b(1583, 1, Ft, zge), o.If = function(n, t) { nIn(u(n, 37), t); - }, w(wn, "LayerConstraintPostprocessor", 1583), b(1584, 1, Ft, i9e), o.If = function(n, t) { + }, w(wn, "LayerConstraintPostprocessor", 1583), b(1584, 1, Ft, r9e), o.If = function(n, t) { ZAn(u(n, 37), t); }; var Woe; w(wn, "LayerConstraintPreprocessor", 1584), b(367, 23, { 3: 1, 35: 1, 23: 1, 367: 1 }, QA); - var Wj, MI, TI, yG, uen = Pn(wn, "LayerConstraintPreprocessor/HiddenNodeConnections", 367, Bn, tmn, ybn), sen; - b(1585, 1, Ft, zge), o.If = function(n, t) { + var Wj, MI, TI, yG, sen = Pn(wn, "LayerConstraintPreprocessor/HiddenNodeConnections", 367, _n, tmn, ybn), oen; + b(1585, 1, Ft, Wge), o.If = function(n, t) { vCn(u(n, 37), t); - }, w(wn, "LayerSizeAndGraphHeightCalculator", 1585), b(1586, 1, Ft, Wge), o.If = function(n, t) { + }, w(wn, "LayerSizeAndGraphHeightCalculator", 1585), b(1586, 1, Ft, Xge), o.If = function(n, t) { e$n(u(n, 37), t); - }, w(wn, "LongEdgeJoiner", 1586), b(1587, 1, Ft, Xge), o.If = function(n, t) { + }, w(wn, "LongEdgeJoiner", 1586), b(1587, 1, Ft, Kge), o.If = function(n, t) { KIn(u(n, 37), t); - }, w(wn, "LongEdgeSplitter", 1587), b(1588, 1, Ft, wxe), o.If = function(n, t) { + }, w(wn, "LongEdgeSplitter", 1587), b(1588, 1, Ft, gxe), o.If = function(n, t) { PPn(this, u(n, 37), t); }, o.e = 0, o.f = 0, o.j = 0, o.k = 0, o.n = 0, o.o = 0; - var oen, fen; - w(wn, "NodePromotion", 1588), b(1589, 1, ct, Kge), o.Le = function(n, t) { + var fen, hen; + w(wn, "NodePromotion", 1588), b(1589, 1, ct, Vge), o.Le = function(n, t) { return E6n(u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(wn, "NodePromotion/1", 1589), b(1590, 1, ct, Vge), o.Le = function(n, t) { + }, w(wn, "NodePromotion/1", 1589), b(1590, 1, ct, Qge), o.Le = function(n, t) { return A6n(u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(wn, "NodePromotion/2", 1590), b(1591, 1, {}, Qge), o.Kb = function(n) { + }, w(wn, "NodePromotion/2", 1590), b(1591, 1, {}, Yge), o.Kb = function(n) { return u(n, 49), Dx(), en(), !0; }, o.Fb = function(n) { return this === n; - }, w(wn, "NodePromotion/lambda$0$Type", 1591), b(1592, 1, {}, w8e), o.Kb = function(n) { + }, w(wn, "NodePromotion/lambda$0$Type", 1591), b(1592, 1, {}, g8e), o.Kb = function(n) { return Spn(this.a, u(n, 49)); }, o.Fb = function(n) { return this === n; - }, o.a = 0, w(wn, "NodePromotion/lambda$1$Type", 1592), b(1593, 1, {}, g8e), o.Kb = function(n) { + }, o.a = 0, w(wn, "NodePromotion/lambda$1$Type", 1592), b(1593, 1, {}, p8e), o.Kb = function(n) { return Tpn(this.a, u(n, 49)); }, o.Fb = function(n) { return this === n; - }, o.a = 0, w(wn, "NodePromotion/lambda$2$Type", 1593), b(1594, 1, Ft, Yge), o.If = function(n, t) { + }, o.a = 0, w(wn, "NodePromotion/lambda$2$Type", 1593), b(1594, 1, Ft, Zge), o.If = function(n, t) { yOn(u(n, 37), t); - }, w(wn, "NorthSouthPortPostprocessor", 1594), b(1595, 1, Ft, Zge), o.If = function(n, t) { + }, w(wn, "NorthSouthPortPostprocessor", 1594), b(1595, 1, Ft, e2e), o.If = function(n, t) { MOn(u(n, 37), t); - }, w(wn, "NorthSouthPortPreprocessor", 1595), b(1596, 1, ct, e2e), o.Le = function(n, t) { + }, w(wn, "NorthSouthPortPreprocessor", 1595), b(1596, 1, ct, n2e), o.Le = function(n, t) { return G4n(u(n, 12), u(t, 12)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(wn, "NorthSouthPortPreprocessor/lambda$0$Type", 1596), b(1597, 1, Ft, n2e), o.If = function(n, t) { + }, w(wn, "NorthSouthPortPreprocessor/lambda$0$Type", 1596), b(1597, 1, Ft, t2e), o.If = function(n, t) { mSn(u(n, 37), t); - }, w(wn, "PartitionMidprocessor", 1597), b(1598, 1, Vn, t2e), o.Mb = function(n) { + }, w(wn, "PartitionMidprocessor", 1597), b(1598, 1, Vn, i2e), o.Mb = function(n) { return Et(u(n, 9), (ae(), bg)); - }, w(wn, "PartitionMidprocessor/lambda$0$Type", 1598), b(1599, 1, mn, p8e), o.Ad = function(n) { + }, w(wn, "PartitionMidprocessor/lambda$0$Type", 1598), b(1599, 1, mn, m8e), o.Ad = function(n) { P2n(this.a, u(n, 9)); - }, w(wn, "PartitionMidprocessor/lambda$1$Type", 1599), b(1600, 1, Ft, i2e), o.If = function(n, t) { + }, w(wn, "PartitionMidprocessor/lambda$1$Type", 1599), b(1600, 1, Ft, r2e), o.If = function(n, t) { y$n(u(n, 37), t); - }, w(wn, "PartitionPostprocessor", 1600), b(1601, 1, Ft, r2e), o.If = function(n, t) { + }, w(wn, "PartitionPostprocessor", 1600), b(1601, 1, Ft, c2e), o.If = function(n, t) { ATn(u(n, 37), t); - }, w(wn, "PartitionPreprocessor", 1601), b(1602, 1, Vn, c2e), o.Mb = function(n) { + }, w(wn, "PartitionPreprocessor", 1601), b(1602, 1, Vn, u2e), o.Mb = function(n) { return Et(u(n, 9), (ae(), bg)); - }, w(wn, "PartitionPreprocessor/lambda$0$Type", 1602), b(1603, 1, Vn, u2e), o.Mb = function(n) { + }, w(wn, "PartitionPreprocessor/lambda$0$Type", 1602), b(1603, 1, Vn, s2e), o.Mb = function(n) { return Et(u(n, 9), (ae(), bg)); - }, w(wn, "PartitionPreprocessor/lambda$1$Type", 1603), b(1604, 1, {}, s2e), o.Kb = function(n) { - return new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Q())))); - }, w(wn, "PartitionPreprocessor/lambda$2$Type", 1604), b(1605, 1, Vn, m8e), o.Mb = function(n) { + }, w(wn, "PartitionPreprocessor/lambda$1$Type", 1603), b(1604, 1, {}, o2e), o.Kb = function(n) { + return new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Y())))); + }, w(wn, "PartitionPreprocessor/lambda$2$Type", 1604), b(1605, 1, Vn, v8e), o.Mb = function(n) { return lan(this.a, u(n, 17)); - }, w(wn, "PartitionPreprocessor/lambda$3$Type", 1605), b(1606, 1, mn, o2e), o.Ad = function(n) { + }, w(wn, "PartitionPreprocessor/lambda$3$Type", 1605), b(1606, 1, mn, f2e), o.Ad = function(n) { n6n(u(n, 17)); - }, w(wn, "PartitionPreprocessor/lambda$4$Type", 1606), b(1607, 1, Vn, v8e), o.Mb = function(n) { + }, w(wn, "PartitionPreprocessor/lambda$4$Type", 1606), b(1607, 1, Vn, k8e), o.Mb = function(n) { return Xgn(this.a, u(n, 9)); - }, o.a = 0, w(wn, "PartitionPreprocessor/lambda$5$Type", 1607), b(1608, 1, Ft, r9e), o.If = function(n, t) { + }, o.a = 0, w(wn, "PartitionPreprocessor/lambda$5$Type", 1607), b(1608, 1, Ft, c9e), o.If = function(n, t) { YTn(u(n, 37), t); }; - var Xoe, hen, len, aen, Koe, Voe; - w(wn, "PortListSorter", 1608), b(1609, 1, {}, f2e), o.Kb = function(n) { + var Xoe, len, aen, den, Koe, Voe; + w(wn, "PortListSorter", 1608), b(1609, 1, {}, h2e), o.Kb = function(n) { return Iv(), u(n, 12).e; - }, w(wn, "PortListSorter/lambda$0$Type", 1609), b(1610, 1, {}, h2e), o.Kb = function(n) { + }, w(wn, "PortListSorter/lambda$0$Type", 1609), b(1610, 1, {}, l2e), o.Kb = function(n) { return Iv(), u(n, 12).g; - }, w(wn, "PortListSorter/lambda$1$Type", 1610), b(1611, 1, ct, l2e), o.Le = function(n, t) { - return cOe(u(n, 12), u(t, 12)); + }, w(wn, "PortListSorter/lambda$1$Type", 1610), b(1611, 1, ct, a2e), o.Le = function(n, t) { + return uOe(u(n, 12), u(t, 12)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(wn, "PortListSorter/lambda$2$Type", 1611), b(1612, 1, ct, a2e), o.Le = function(n, t) { + }, w(wn, "PortListSorter/lambda$2$Type", 1611), b(1612, 1, ct, d2e), o.Le = function(n, t) { return byn(u(n, 12), u(t, 12)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(wn, "PortListSorter/lambda$3$Type", 1612), b(1613, 1, ct, d2e), o.Le = function(n, t) { - return iUe(u(n, 12), u(t, 12)); + }, w(wn, "PortListSorter/lambda$3$Type", 1612), b(1613, 1, ct, b2e), o.Le = function(n, t) { + return rUe(u(n, 12), u(t, 12)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(wn, "PortListSorter/lambda$4$Type", 1613), b(1614, 1, Ft, b2e), o.If = function(n, t) { + }, w(wn, "PortListSorter/lambda$4$Type", 1613), b(1614, 1, Ft, w2e), o.If = function(n, t) { uxn(u(n, 37), t); - }, w(wn, "PortSideProcessor", 1614), b(1615, 1, Ft, w2e), o.If = function(n, t) { + }, w(wn, "PortSideProcessor", 1614), b(1615, 1, Ft, g2e), o.If = function(n, t) { hTn(u(n, 37), t); - }, w(wn, "ReversedEdgeRestorer", 1615), b(1620, 1, Ft, uje), o.If = function(n, t) { + }, w(wn, "ReversedEdgeRestorer", 1615), b(1620, 1, Ft, sje), o.If = function(n, t) { Q8n(this, u(n, 37), t); - }, w(wn, "SelfLoopPortRestorer", 1620), b(1621, 1, {}, g2e), o.Kb = function(n) { + }, w(wn, "SelfLoopPortRestorer", 1620), b(1621, 1, {}, p2e), o.Kb = function(n) { return new Ge(null, new He(u(n, 25).a, 16)); - }, w(wn, "SelfLoopPortRestorer/lambda$0$Type", 1621), b(1622, 1, Vn, p2e), o.Mb = function(n) { + }, w(wn, "SelfLoopPortRestorer/lambda$0$Type", 1621), b(1622, 1, Vn, m2e), o.Mb = function(n) { return u(n, 9).k == (cn(), si); - }, w(wn, "SelfLoopPortRestorer/lambda$1$Type", 1622), b(1623, 1, Vn, m2e), o.Mb = function(n) { + }, w(wn, "SelfLoopPortRestorer/lambda$1$Type", 1622), b(1623, 1, Vn, v2e), o.Mb = function(n) { return Et(u(n, 9), (te(), Pb)); - }, w(wn, "SelfLoopPortRestorer/lambda$2$Type", 1623), b(1624, 1, {}, v2e), o.Kb = function(n) { + }, w(wn, "SelfLoopPortRestorer/lambda$2$Type", 1623), b(1624, 1, {}, k2e), o.Kb = function(n) { return u(y(u(n, 9), (te(), Pb)), 338); - }, w(wn, "SelfLoopPortRestorer/lambda$3$Type", 1624), b(1625, 1, mn, k8e), o.Ad = function(n) { + }, w(wn, "SelfLoopPortRestorer/lambda$3$Type", 1624), b(1625, 1, mn, y8e), o.Ad = function(n) { uEn(this.a, u(n, 338)); }, w(wn, "SelfLoopPortRestorer/lambda$4$Type", 1625), b(792, 1, mn, QU), o.Ad = function(n) { pEn(u(n, 107)); - }, w(wn, "SelfLoopPortRestorer/lambda$5$Type", 792), b(1627, 1, Ft, k2e), o.If = function(n, t) { + }, w(wn, "SelfLoopPortRestorer/lambda$5$Type", 792), b(1627, 1, Ft, y2e), o.If = function(n, t) { f8n(u(n, 37), t); - }, w(wn, "SelfLoopPostProcessor", 1627), b(1628, 1, {}, y2e), o.Kb = function(n) { + }, w(wn, "SelfLoopPostProcessor", 1627), b(1628, 1, {}, j2e), o.Kb = function(n) { return new Ge(null, new He(u(n, 25).a, 16)); - }, w(wn, "SelfLoopPostProcessor/lambda$0$Type", 1628), b(1629, 1, Vn, j2e), o.Mb = function(n) { + }, w(wn, "SelfLoopPostProcessor/lambda$0$Type", 1628), b(1629, 1, Vn, E2e), o.Mb = function(n) { return u(n, 9).k == (cn(), si); - }, w(wn, "SelfLoopPostProcessor/lambda$1$Type", 1629), b(1630, 1, Vn, E2e), o.Mb = function(n) { + }, w(wn, "SelfLoopPostProcessor/lambda$1$Type", 1629), b(1630, 1, Vn, A2e), o.Mb = function(n) { return Et(u(n, 9), (te(), Pb)); - }, w(wn, "SelfLoopPostProcessor/lambda$2$Type", 1630), b(1631, 1, mn, A2e), o.Ad = function(n) { + }, w(wn, "SelfLoopPostProcessor/lambda$2$Type", 1630), b(1631, 1, mn, x2e), o.Ad = function(n) { d7n(u(n, 9)); - }, w(wn, "SelfLoopPostProcessor/lambda$3$Type", 1631), b(1632, 1, {}, x2e), o.Kb = function(n) { + }, w(wn, "SelfLoopPostProcessor/lambda$3$Type", 1631), b(1632, 1, {}, $2e), o.Kb = function(n) { return new Ge(null, new He(u(n, 107).f, 1)); - }, w(wn, "SelfLoopPostProcessor/lambda$4$Type", 1632), b(1633, 1, mn, y8e), o.Ad = function(n) { + }, w(wn, "SelfLoopPostProcessor/lambda$4$Type", 1632), b(1633, 1, mn, j8e), o.Ad = function(n) { V3n(this.a, u(n, 341)); - }, w(wn, "SelfLoopPostProcessor/lambda$5$Type", 1633), b(1634, 1, Vn, $2e), o.Mb = function(n) { + }, w(wn, "SelfLoopPostProcessor/lambda$5$Type", 1633), b(1634, 1, Vn, M2e), o.Mb = function(n) { return !!u(n, 107).i; - }, w(wn, "SelfLoopPostProcessor/lambda$6$Type", 1634), b(1635, 1, mn, j8e), o.Ad = function(n) { + }, w(wn, "SelfLoopPostProcessor/lambda$6$Type", 1634), b(1635, 1, mn, E8e), o.Ad = function(n) { Tln(this.a, u(n, 107)); - }, w(wn, "SelfLoopPostProcessor/lambda$7$Type", 1635), b(1616, 1, Ft, M2e), o.If = function(n, t) { - Bxn(u(n, 37), t); - }, w(wn, "SelfLoopPreProcessor", 1616), b(1617, 1, {}, T2e), o.Kb = function(n) { + }, w(wn, "SelfLoopPostProcessor/lambda$7$Type", 1635), b(1616, 1, Ft, T2e), o.If = function(n, t) { + _xn(u(n, 37), t); + }, w(wn, "SelfLoopPreProcessor", 1616), b(1617, 1, {}, S2e), o.Kb = function(n) { return new Ge(null, new He(u(n, 107).f, 1)); - }, w(wn, "SelfLoopPreProcessor/lambda$0$Type", 1617), b(1618, 1, {}, S2e), o.Kb = function(n) { + }, w(wn, "SelfLoopPreProcessor/lambda$0$Type", 1617), b(1618, 1, {}, I2e), o.Kb = function(n) { return u(n, 341).a; - }, w(wn, "SelfLoopPreProcessor/lambda$1$Type", 1618), b(1619, 1, mn, I2e), o.Ad = function(n) { + }, w(wn, "SelfLoopPreProcessor/lambda$1$Type", 1618), b(1619, 1, mn, C2e), o.Ad = function(n) { I1n(u(n, 17)); - }, w(wn, "SelfLoopPreProcessor/lambda$2$Type", 1619), b(1636, 1, Ft, eTe), o.If = function(n, t) { + }, w(wn, "SelfLoopPreProcessor/lambda$2$Type", 1619), b(1636, 1, Ft, nTe), o.If = function(n, t) { Hjn(this, u(n, 37), t); - }, w(wn, "SelfLoopRouter", 1636), b(1637, 1, {}, C2e), o.Kb = function(n) { + }, w(wn, "SelfLoopRouter", 1636), b(1637, 1, {}, P2e), o.Kb = function(n) { return new Ge(null, new He(u(n, 25).a, 16)); - }, w(wn, "SelfLoopRouter/lambda$0$Type", 1637), b(1638, 1, Vn, P2e), o.Mb = function(n) { + }, w(wn, "SelfLoopRouter/lambda$0$Type", 1637), b(1638, 1, Vn, O2e), o.Mb = function(n) { return u(n, 9).k == (cn(), si); - }, w(wn, "SelfLoopRouter/lambda$1$Type", 1638), b(1639, 1, Vn, O2e), o.Mb = function(n) { + }, w(wn, "SelfLoopRouter/lambda$1$Type", 1638), b(1639, 1, Vn, L2e), o.Mb = function(n) { return Et(u(n, 9), (te(), Pb)); - }, w(wn, "SelfLoopRouter/lambda$2$Type", 1639), b(1640, 1, {}, L2e), o.Kb = function(n) { + }, w(wn, "SelfLoopRouter/lambda$2$Type", 1639), b(1640, 1, {}, D2e), o.Kb = function(n) { return u(y(u(n, 9), (te(), Pb)), 338); - }, w(wn, "SelfLoopRouter/lambda$3$Type", 1640), b(1641, 1, mn, JAe), o.Ad = function(n) { + }, w(wn, "SelfLoopRouter/lambda$3$Type", 1640), b(1641, 1, mn, GAe), o.Ad = function(n) { $2n(this.a, this.b, u(n, 338)); - }, w(wn, "SelfLoopRouter/lambda$4$Type", 1641), b(1642, 1, Ft, D2e), o.If = function(n, t) { + }, w(wn, "SelfLoopRouter/lambda$4$Type", 1641), b(1642, 1, Ft, N2e), o.If = function(n, t) { iMn(u(n, 37), t); - }, w(wn, "SemiInteractiveCrossMinProcessor", 1642), b(1643, 1, Vn, N2e), o.Mb = function(n) { + }, w(wn, "SemiInteractiveCrossMinProcessor", 1642), b(1643, 1, Vn, F2e), o.Mb = function(n) { return u(n, 9).k == (cn(), si); - }, w(wn, "SemiInteractiveCrossMinProcessor/lambda$0$Type", 1643), b(1644, 1, Vn, F2e), o.Mb = function(n) { - return gSe(u(n, 9))._b((ae(), pg)); - }, w(wn, "SemiInteractiveCrossMinProcessor/lambda$1$Type", 1644), b(1645, 1, ct, R2e), o.Le = function(n, t) { + }, w(wn, "SemiInteractiveCrossMinProcessor/lambda$0$Type", 1643), b(1644, 1, Vn, R2e), o.Mb = function(n) { + return pSe(u(n, 9))._b((ae(), pg)); + }, w(wn, "SemiInteractiveCrossMinProcessor/lambda$1$Type", 1644), b(1645, 1, ct, _2e), o.Le = function(n, t) { return n4n(u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; @@ -37471,167 +37561,167 @@ function WDn() { return new Zn(this); }, w(wn, "SemiInteractiveCrossMinProcessor/lambda$2$Type", 1645), b(1646, 1, {}, B2e), o.Te = function(n, t) { return C2n(u(n, 9), u(t, 9)); - }, w(wn, "SemiInteractiveCrossMinProcessor/lambda$3$Type", 1646), b(1648, 1, Ft, _2e), o.If = function(n, t) { + }, w(wn, "SemiInteractiveCrossMinProcessor/lambda$3$Type", 1646), b(1648, 1, Ft, J2e), o.If = function(n, t) { FCn(u(n, 37), t); - }, w(wn, "SortByInputModelProcessor", 1648), b(1649, 1, Vn, J2e), o.Mb = function(n) { + }, w(wn, "SortByInputModelProcessor", 1648), b(1649, 1, Vn, G2e), o.Mb = function(n) { return u(n, 12).g.c.length != 0; - }, w(wn, "SortByInputModelProcessor/lambda$0$Type", 1649), b(1650, 1, mn, E8e), o.Ad = function(n) { + }, w(wn, "SortByInputModelProcessor/lambda$0$Type", 1649), b(1650, 1, mn, A8e), o.Ad = function(n) { jEn(this.a, u(n, 12)); - }, w(wn, "SortByInputModelProcessor/lambda$1$Type", 1650), b(1729, 804, {}, SNe), o.bf = function(n) { + }, w(wn, "SortByInputModelProcessor/lambda$1$Type", 1650), b(1729, 804, {}, INe), o.bf = function(n) { var t, i, r, c; switch (this.c = n, this.a.g) { case 2: - t = new le(), fi(mt(new Ge(null, new He(this.c.a.b, 16)), new npe()), new zAe(this, t)), B7(this, new H2e()), wu(t, new q2e()), t.c.length = 0, fi(mt(new Ge(null, new He(this.c.a.b, 16)), new U2e()), new x8e(t)), B7(this, new z2e()), wu(t, new W2e()), t.c.length = 0, i = T$e(TN(pw(new Ge(null, new He(this.c.a.b, 16)), new $8e(this))), new X2e()), fi(new Ge(null, new He(this.c.a.a, 16)), new HAe(i, t)), B7(this, new V2e()), wu(t, new Q2e()), t.c.length = 0; + t = new le(), fi(mt(new Ge(null, new He(this.c.a.b, 16)), new tpe()), new WAe(this, t)), _7(this, new q2e()), wu(t, new U2e()), t.c.length = 0, fi(mt(new Ge(null, new He(this.c.a.b, 16)), new z2e()), new $8e(t)), _7(this, new W2e()), wu(t, new X2e()), t.c.length = 0, i = S$e(TN(pw(new Ge(null, new He(this.c.a.b, 16)), new M8e(this))), new K2e()), fi(new Ge(null, new He(this.c.a.a, 16)), new qAe(i, t)), _7(this, new Q2e()), wu(t, new Y2e()), t.c.length = 0; break; case 3: - r = new le(), B7(this, new G2e()), c = T$e(TN(pw(new Ge(null, new He(this.c.a.b, 16)), new A8e(this))), new K2e()), fi(mt(new Ge(null, new He(this.c.a.b, 16)), new Y2e()), new UAe(c, r)), B7(this, new Z2e()), wu(r, new epe()), r.c.length = 0; + r = new le(), _7(this, new H2e()), c = S$e(TN(pw(new Ge(null, new He(this.c.a.b, 16)), new x8e(this))), new V2e()), fi(mt(new Ge(null, new He(this.c.a.b, 16)), new Z2e()), new zAe(c, r)), _7(this, new epe()), wu(r, new npe()), r.c.length = 0; break; default: - throw $(new X7e()); + throw $(new K7e()); } - }, o.b = 0, w(pi, "EdgeAwareScanlineConstraintCalculation", 1729), b(1730, 1, Kh, G2e), o.Lb = function(n) { + }, o.b = 0, w(pi, "EdgeAwareScanlineConstraintCalculation", 1729), b(1730, 1, Kh, H2e), o.Lb = function(n) { return N(u(n, 60).g, 156); }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return N(u(n, 60).g, 156); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$0$Type", 1730), b(1731, 1, {}, A8e), o.We = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$0$Type", 1730), b(1731, 1, {}, x8e), o.We = function(n) { return KEn(this.a, u(n, 60)); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$1$Type", 1731), b(1739, 1, GT, GAe), o.be = function() { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$1$Type", 1731), b(1739, 1, GT, HAe), o.be = function() { f9(this.a, this.b, -1); - }, o.b = 0, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$10$Type", 1739), b(1741, 1, Kh, H2e), o.Lb = function(n) { + }, o.b = 0, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$10$Type", 1739), b(1741, 1, Kh, q2e), o.Lb = function(n) { return N(u(n, 60).g, 156); }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return N(u(n, 60).g, 156); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$11$Type", 1741), b(1742, 1, mn, q2e), o.Ad = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$11$Type", 1741), b(1742, 1, mn, U2e), o.Ad = function(n) { u(n, 375).be(); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$12$Type", 1742), b(1743, 1, Vn, U2e), o.Mb = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$12$Type", 1742), b(1743, 1, Vn, z2e), o.Mb = function(n) { return N(u(n, 60).g, 9); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$13$Type", 1743), b(1745, 1, mn, x8e), o.Ad = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$13$Type", 1743), b(1745, 1, mn, $8e), o.Ad = function(n) { R9n(this.a, u(n, 60)); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$14$Type", 1745), b(1744, 1, GT, KAe), o.be = function() { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$14$Type", 1745), b(1744, 1, GT, VAe), o.be = function() { f9(this.b, this.a, -1); - }, o.a = 0, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$15$Type", 1744), b(1746, 1, Kh, z2e), o.Lb = function(n) { + }, o.a = 0, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$15$Type", 1744), b(1746, 1, Kh, W2e), o.Lb = function(n) { return N(u(n, 60).g, 9); }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return N(u(n, 60).g, 9); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$16$Type", 1746), b(1747, 1, mn, W2e), o.Ad = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$16$Type", 1746), b(1747, 1, mn, X2e), o.Ad = function(n) { u(n, 375).be(); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$17$Type", 1747), b(1748, 1, {}, $8e), o.We = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$17$Type", 1747), b(1748, 1, {}, M8e), o.We = function(n) { return VEn(this.a, u(n, 60)); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$18$Type", 1748), b(1749, 1, {}, X2e), o.Ue = function() { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$18$Type", 1748), b(1749, 1, {}, K2e), o.Ue = function() { return 0; - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$19$Type", 1749), b(1732, 1, {}, K2e), o.Ue = function() { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$19$Type", 1749), b(1732, 1, {}, V2e), o.Ue = function() { return 0; - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$2$Type", 1732), b(1751, 1, mn, HAe), o.Ad = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$2$Type", 1732), b(1751, 1, mn, qAe), o.Ad = function(n) { bgn(this.a, this.b, u(n, 320)); - }, o.a = 0, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$20$Type", 1751), b(1750, 1, GT, qAe), o.be = function() { - cHe(this.a, this.b, -1); - }, o.b = 0, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$21$Type", 1750), b(1752, 1, Kh, V2e), o.Lb = function(n) { + }, o.a = 0, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$20$Type", 1751), b(1750, 1, GT, UAe), o.be = function() { + uHe(this.a, this.b, -1); + }, o.b = 0, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$21$Type", 1750), b(1752, 1, Kh, Q2e), o.Lb = function(n) { return u(n, 60), !0; }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return u(n, 60), !0; - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$22$Type", 1752), b(1753, 1, mn, Q2e), o.Ad = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$22$Type", 1752), b(1753, 1, mn, Y2e), o.Ad = function(n) { u(n, 375).be(); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$23$Type", 1753), b(1733, 1, Vn, Y2e), o.Mb = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$23$Type", 1753), b(1733, 1, Vn, Z2e), o.Mb = function(n) { return N(u(n, 60).g, 9); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$3$Type", 1733), b(1735, 1, mn, UAe), o.Ad = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$3$Type", 1733), b(1735, 1, mn, zAe), o.Ad = function(n) { wgn(this.a, this.b, u(n, 60)); - }, o.a = 0, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$4$Type", 1735), b(1734, 1, GT, VAe), o.be = function() { + }, o.a = 0, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$4$Type", 1735), b(1734, 1, GT, QAe), o.be = function() { f9(this.b, this.a, -1); - }, o.a = 0, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$5$Type", 1734), b(1736, 1, Kh, Z2e), o.Lb = function(n) { + }, o.a = 0, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$5$Type", 1734), b(1736, 1, Kh, epe), o.Lb = function(n) { return u(n, 60), !0; }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return u(n, 60), !0; - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$6$Type", 1736), b(1737, 1, mn, epe), o.Ad = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$6$Type", 1736), b(1737, 1, mn, npe), o.Ad = function(n) { u(n, 375).be(); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$7$Type", 1737), b(1738, 1, Vn, npe), o.Mb = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$7$Type", 1737), b(1738, 1, Vn, tpe), o.Mb = function(n) { return N(u(n, 60).g, 156); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$8$Type", 1738), b(1740, 1, mn, zAe), o.Ad = function(n) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$8$Type", 1738), b(1740, 1, mn, WAe), o.Ad = function(n) { A5n(this.a, this.b, u(n, 60)); - }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$9$Type", 1740), b(1547, 1, Ft, dMe), o.If = function(n, t) { + }, w(pi, "EdgeAwareScanlineConstraintCalculation/lambda$9$Type", 1740), b(1547, 1, Ft, bMe), o.If = function(n, t) { YIn(this, u(n, 37), t); }; - var den; - w(pi, "HorizontalGraphCompactor", 1547), b(1548, 1, {}, M8e), o.df = function(n, t) { + var ben; + w(pi, "HorizontalGraphCompactor", 1547), b(1548, 1, {}, T8e), o.df = function(n, t) { var i, r, c; return rY(n, t) || (i = h2(n), r = h2(t), i && i.k == (cn(), Ai) || r && r.k == (cn(), Ai)) ? 0 : (c = u(y(this.a.a, (te(), ip)), 316), ldn(c, i ? i.k : (cn(), yi), r ? r.k : (cn(), yi))); }, o.ef = function(n, t) { var i, r, c; return rY(n, t) ? 1 : (i = h2(n), r = h2(t), c = u(y(this.a.a, (te(), ip)), 316), KX(c, i ? i.k : (cn(), yi), r ? r.k : (cn(), yi))); - }, w(pi, "HorizontalGraphCompactor/1", 1548), b(1549, 1, {}, tpe), o.cf = function(n, t) { + }, w(pi, "HorizontalGraphCompactor/1", 1548), b(1549, 1, {}, ipe), o.cf = function(n, t) { return q4(), n.a.i == 0; - }, w(pi, "HorizontalGraphCompactor/lambda$0$Type", 1549), b(1550, 1, {}, T8e), o.cf = function(n, t) { + }, w(pi, "HorizontalGraphCompactor/lambda$0$Type", 1549), b(1550, 1, {}, S8e), o.cf = function(n, t) { return L2n(this.a, n, t); - }, w(pi, "HorizontalGraphCompactor/lambda$1$Type", 1550), b(1696, 1, {}, sDe); - var ben, wen; - w(pi, "LGraphToCGraphTransformer", 1696), b(1704, 1, Vn, ipe), o.Mb = function(n) { + }, w(pi, "HorizontalGraphCompactor/lambda$1$Type", 1550), b(1696, 1, {}, oDe); + var wen, gen; + w(pi, "LGraphToCGraphTransformer", 1696), b(1704, 1, Vn, rpe), o.Mb = function(n) { return n != null; - }, w(pi, "LGraphToCGraphTransformer/0methodref$nonNull$Type", 1704), b(1697, 1, {}, rpe), o.Kb = function(n) { + }, w(pi, "LGraphToCGraphTransformer/0methodref$nonNull$Type", 1704), b(1697, 1, {}, cpe), o.Kb = function(n) { return zs(), uc(y(u(u(n, 60).g, 9), (te(), $t))); - }, w(pi, "LGraphToCGraphTransformer/lambda$0$Type", 1697), b(1698, 1, {}, cpe), o.Kb = function(n) { - return zs(), yRe(u(u(n, 60).g, 156)); - }, w(pi, "LGraphToCGraphTransformer/lambda$1$Type", 1698), b(1707, 1, Vn, upe), o.Mb = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$0$Type", 1697), b(1698, 1, {}, upe), o.Kb = function(n) { + return zs(), jRe(u(u(n, 60).g, 156)); + }, w(pi, "LGraphToCGraphTransformer/lambda$1$Type", 1698), b(1707, 1, Vn, spe), o.Mb = function(n) { return zs(), N(u(n, 60).g, 9); - }, w(pi, "LGraphToCGraphTransformer/lambda$10$Type", 1707), b(1708, 1, mn, spe), o.Ad = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$10$Type", 1707), b(1708, 1, mn, ope), o.Ad = function(n) { x2n(u(n, 60)); - }, w(pi, "LGraphToCGraphTransformer/lambda$11$Type", 1708), b(1709, 1, Vn, ope), o.Mb = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$11$Type", 1708), b(1709, 1, Vn, fpe), o.Mb = function(n) { return zs(), N(u(n, 60).g, 156); - }, w(pi, "LGraphToCGraphTransformer/lambda$12$Type", 1709), b(1713, 1, mn, fpe), o.Ad = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$12$Type", 1709), b(1713, 1, mn, hpe), o.Ad = function(n) { i9n(u(n, 60)); - }, w(pi, "LGraphToCGraphTransformer/lambda$13$Type", 1713), b(1710, 1, mn, S8e), o.Ad = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$13$Type", 1713), b(1710, 1, mn, I8e), o.Ad = function(n) { u1n(this.a, u(n, 8)); - }, o.a = 0, w(pi, "LGraphToCGraphTransformer/lambda$14$Type", 1710), b(1711, 1, mn, I8e), o.Ad = function(n) { + }, o.a = 0, w(pi, "LGraphToCGraphTransformer/lambda$14$Type", 1710), b(1711, 1, mn, C8e), o.Ad = function(n) { o1n(this.a, u(n, 119)); - }, o.a = 0, w(pi, "LGraphToCGraphTransformer/lambda$15$Type", 1711), b(1712, 1, mn, C8e), o.Ad = function(n) { + }, o.a = 0, w(pi, "LGraphToCGraphTransformer/lambda$15$Type", 1711), b(1712, 1, mn, P8e), o.Ad = function(n) { s1n(this.a, u(n, 8)); - }, o.a = 0, w(pi, "LGraphToCGraphTransformer/lambda$16$Type", 1712), b(1714, 1, {}, hpe), o.Kb = function(n) { - return zs(), new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Q())))); - }, w(pi, "LGraphToCGraphTransformer/lambda$17$Type", 1714), b(1715, 1, Vn, lpe), o.Mb = function(n) { + }, o.a = 0, w(pi, "LGraphToCGraphTransformer/lambda$16$Type", 1712), b(1714, 1, {}, lpe), o.Kb = function(n) { + return zs(), new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Y())))); + }, w(pi, "LGraphToCGraphTransformer/lambda$17$Type", 1714), b(1715, 1, Vn, ape), o.Mb = function(n) { return zs(), hr(u(n, 17)); - }, w(pi, "LGraphToCGraphTransformer/lambda$18$Type", 1715), b(1716, 1, mn, P8e), o.Ad = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$18$Type", 1715), b(1716, 1, mn, O8e), o.Ad = function(n) { e5n(this.a, u(n, 17)); - }, w(pi, "LGraphToCGraphTransformer/lambda$19$Type", 1716), b(1700, 1, mn, O8e), o.Ad = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$19$Type", 1716), b(1700, 1, mn, L8e), o.Ad = function(n) { S3n(this.a, u(n, 156)); - }, w(pi, "LGraphToCGraphTransformer/lambda$2$Type", 1700), b(1717, 1, {}, ape), o.Kb = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$2$Type", 1700), b(1717, 1, {}, dpe), o.Kb = function(n) { return zs(), new Ge(null, new He(u(n, 25).a, 16)); - }, w(pi, "LGraphToCGraphTransformer/lambda$20$Type", 1717), b(1718, 1, {}, dpe), o.Kb = function(n) { - return zs(), new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Q())))); - }, w(pi, "LGraphToCGraphTransformer/lambda$21$Type", 1718), b(1719, 1, {}, bpe), o.Kb = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$20$Type", 1717), b(1718, 1, {}, bpe), o.Kb = function(n) { + return zs(), new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Y())))); + }, w(pi, "LGraphToCGraphTransformer/lambda$21$Type", 1718), b(1719, 1, {}, wpe), o.Kb = function(n) { return zs(), u(y(u(n, 17), (te(), h0)), 16); - }, w(pi, "LGraphToCGraphTransformer/lambda$22$Type", 1719), b(1720, 1, Vn, wpe), o.Mb = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$22$Type", 1719), b(1720, 1, Vn, gpe), o.Mb = function(n) { return adn(u(n, 16)); - }, w(pi, "LGraphToCGraphTransformer/lambda$23$Type", 1720), b(1721, 1, mn, L8e), o.Ad = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$23$Type", 1720), b(1721, 1, mn, D8e), o.Ad = function(n) { QEn(this.a, u(n, 16)); - }, w(pi, "LGraphToCGraphTransformer/lambda$24$Type", 1721), b(1722, 1, {}, gpe), o.Kb = function(n) { - return zs(), new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Q())))); - }, w(pi, "LGraphToCGraphTransformer/lambda$25$Type", 1722), b(1723, 1, Vn, ppe), o.Mb = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$24$Type", 1721), b(1722, 1, {}, ppe), o.Kb = function(n) { + return zs(), new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Y())))); + }, w(pi, "LGraphToCGraphTransformer/lambda$25$Type", 1722), b(1723, 1, Vn, mpe), o.Mb = function(n) { return zs(), hr(u(n, 17)); - }, w(pi, "LGraphToCGraphTransformer/lambda$26$Type", 1723), b(1725, 1, mn, D8e), o.Ad = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$26$Type", 1723), b(1725, 1, mn, N8e), o.Ad = function(n) { W5n(this.a, u(n, 17)); - }, w(pi, "LGraphToCGraphTransformer/lambda$27$Type", 1725), b(1724, 1, mn, N8e), o.Ad = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$27$Type", 1725), b(1724, 1, mn, F8e), o.Ad = function(n) { Zln(this.a, u(n, 70)); - }, o.a = 0, w(pi, "LGraphToCGraphTransformer/lambda$28$Type", 1724), b(1699, 1, mn, WAe), o.Ad = function(n) { + }, o.a = 0, w(pi, "LGraphToCGraphTransformer/lambda$28$Type", 1724), b(1699, 1, mn, XAe), o.Ad = function(n) { Smn(this.a, this.b, u(n, 156)); - }, w(pi, "LGraphToCGraphTransformer/lambda$3$Type", 1699), b(1701, 1, {}, mpe), o.Kb = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$3$Type", 1699), b(1701, 1, {}, vpe), o.Kb = function(n) { return zs(), new Ge(null, new He(u(n, 25).a, 16)); - }, w(pi, "LGraphToCGraphTransformer/lambda$4$Type", 1701), b(1702, 1, {}, vpe), o.Kb = function(n) { - return zs(), new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Q())))); - }, w(pi, "LGraphToCGraphTransformer/lambda$5$Type", 1702), b(1703, 1, {}, kpe), o.Kb = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$4$Type", 1701), b(1702, 1, {}, kpe), o.Kb = function(n) { + return zs(), new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Y())))); + }, w(pi, "LGraphToCGraphTransformer/lambda$5$Type", 1702), b(1703, 1, {}, ype), o.Kb = function(n) { return zs(), u(y(u(n, 17), (te(), h0)), 16); - }, w(pi, "LGraphToCGraphTransformer/lambda$6$Type", 1703), b(1705, 1, mn, F8e), o.Ad = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$6$Type", 1703), b(1705, 1, mn, R8e), o.Ad = function(n) { oAn(this.a, u(n, 16)); - }, w(pi, "LGraphToCGraphTransformer/lambda$8$Type", 1705), b(1706, 1, mn, XAe), o.Ad = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$8$Type", 1705), b(1706, 1, mn, KAe), o.Ad = function(n) { C1n(this.a, this.b, u(n, 156)); - }, w(pi, "LGraphToCGraphTransformer/lambda$9$Type", 1706), b(1695, 1, {}, ype), o.af = function(n) { + }, w(pi, "LGraphToCGraphTransformer/lambda$9$Type", 1706), b(1695, 1, {}, jpe), o.af = function(n) { var t, i, r, c, s; for (this.a = n, this.d = new eO(), this.c = W(Lse, Ve, 124, this.a.a.a.c.length, 0, 1), this.b = 0, i = new x(this.a.a.a); i.a < i.c.c.length; ) t = u(A(i), 320), t.d = this.b, s = F0(V8(new jd(), t), this.d), this.c[this.b] = s, ++this.b; @@ -37640,16 +37730,16 @@ function WDn() { }, o.b = 0, w(pi, "NetworkSimplexCompaction", 1695), b(156, 1, { 35: 1, 156: 1 }, x9), o.Dd = function(n) { return f5n(this, u(n, 156)); }, o.Ib = function() { - return yRe(this); - }, w(pi, "VerticalSegment", 156), b(825, 1, {}, Vee), o.c = 0, o.e = 0, o.i = 0, w(G9, "BetweenLayerEdgeTwoNodeCrossingsCounter", 825), b(667, 1, { 667: 1 }, qNe), o.Ib = function() { + return jRe(this); + }, w(pi, "VerticalSegment", 156), b(825, 1, {}, Vee), o.c = 0, o.e = 0, o.i = 0, w(G9, "BetweenLayerEdgeTwoNodeCrossingsCounter", 825), b(667, 1, { 667: 1 }, UNe), o.Ib = function() { return "AdjacencyList [node=" + this.d + ", adjacencies= " + this.a + "]"; - }, o.b = 0, o.c = 0, o.f = 0, w(G9, "BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList", 667), b(295, 1, { 35: 1, 295: 1 }, yMe), o.Dd = function(n) { + }, o.b = 0, o.c = 0, o.f = 0, w(G9, "BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList", 667), b(295, 1, { 35: 1, 295: 1 }, jMe), o.Dd = function(n) { return Gwn(this, u(n, 295)); }, o.Ib = function() { return "Adjacency [position=" + this.c + ", cardinality=" + this.a + ", currentCardinality=" + this.b + "]"; - }, o.a = 0, o.b = 0, o.c = 0, w(G9, "BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency", 295), b(1988, 1, {}, LJe), o.b = 0, o.e = !1, w(G9, "CrossingMatrixFiller", 1988); - var gen = Zt(jl, "IInitializable"); - b(1846, 1, H9, YAe), o.eg = function(n, t, i, r, c, s) { + }, o.a = 0, o.b = 0, o.c = 0, w(G9, "BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency", 295), b(1988, 1, {}, DJe), o.b = 0, o.e = !1, w(G9, "CrossingMatrixFiller", 1988); + var pen = Zt(jl, "IInitializable"); + b(1846, 1, H9, ZAe), o.eg = function(n, t, i, r, c, s) { }, o.gg = function(n, t, i) { }, o.cg = function() { return this.c != (Ud(), qk); @@ -37662,71 +37752,71 @@ function WDn() { }, o.ig = function() { return !0; }, o.jg = function(n, t, i, r) { - return sRe(this, n, t, i), Jmn(this, t); + return oRe(this, n, t, i), Jmn(this, t); }, o.kg = function(n, t) { var i; - return i = uan(t, n.length), sRe(this, n, i, t), $Fe(this, i); - }, o.d = 0, w(G9, "GreedySwitchHeuristic", 1846), b(1991, 1, {}, ESe), o.b = 0, o.d = 0, w(G9, "NorthSouthEdgeNeighbouringNodeCrossingsCounter", 1991), b(1978, 1, {}, wqe), o.a = !1, w(G9, "SwitchDecider", 1978), b(107, 1, { 107: 1 }, UJe), o.a = null, o.c = null, o.i = null, w(z3, "SelfHyperLoop", 107), b(1975, 1, {}, EBe), o.c = 0, o.e = 0, w(z3, "SelfHyperLoopLabels", 1975), b(413, 23, { 3: 1, 35: 1, 23: 1, 413: 1 }, YA); - var sg, U5, z5, jG, pen = Pn(z3, "SelfHyperLoopLabels/Alignment", 413, Bn, Q3n, J0n), men; - b(341, 1, { 341: 1 }, qOe), w(z3, "SelfLoopEdge", 341), b(338, 1, { 338: 1 }, ABe), o.a = !1, w(z3, "SelfLoopHolder", 338), b(1760, 1, Vn, jpe), o.Mb = function(n) { + return i = uan(t, n.length), oRe(this, n, i, t), MFe(this, i); + }, o.d = 0, w(G9, "GreedySwitchHeuristic", 1846), b(1991, 1, {}, ASe), o.b = 0, o.d = 0, w(G9, "NorthSouthEdgeNeighbouringNodeCrossingsCounter", 1991), b(1978, 1, {}, gqe), o.a = !1, w(G9, "SwitchDecider", 1978), b(107, 1, { 107: 1 }, zJe), o.a = null, o.c = null, o.i = null, w(z3, "SelfHyperLoop", 107), b(1975, 1, {}, A_e), o.c = 0, o.e = 0, w(z3, "SelfHyperLoopLabels", 1975), b(413, 23, { 3: 1, 35: 1, 23: 1, 413: 1 }, YA); + var sg, U5, z5, jG, men = Pn(z3, "SelfHyperLoopLabels/Alignment", 413, _n, Q3n, J0n), ven; + b(341, 1, { 341: 1 }, UOe), w(z3, "SelfLoopEdge", 341), b(338, 1, { 338: 1 }, x_e), o.a = !1, w(z3, "SelfLoopHolder", 338), b(1760, 1, Vn, Epe), o.Mb = function(n) { return hr(u(n, 17)); - }, w(z3, "SelfLoopHolder/lambda$0$Type", 1760), b(113, 1, { 113: 1 }, IBe), o.a = !1, o.c = !1, w(z3, "SelfLoopPort", 113), b(1832, 1, Vn, Epe), o.Mb = function(n) { + }, w(z3, "SelfLoopHolder/lambda$0$Type", 1760), b(113, 1, { 113: 1 }, C_e), o.a = !1, o.c = !1, w(z3, "SelfLoopPort", 113), b(1832, 1, Vn, Ape), o.Mb = function(n) { return hr(u(n, 17)); }, w(z3, "SelfLoopPort/lambda$0$Type", 1832), b(371, 23, { 3: 1, 35: 1, 23: 1, 371: 1 }, ty); - var SI, Xj, II, CI, PI, ven = Pn(z3, "SelfLoopType", 371, Bn, Vmn, G0n), ken; - b(1768, 1, {}, c9e); - var yen, jen, Een, Aen; + var SI, Xj, II, CI, PI, ken = Pn(z3, "SelfLoopType", 371, _n, Vmn, G0n), yen; + b(1768, 1, {}, u9e); + var jen, Een, Aen, xen; w(io, "PortRestorer", 1768), b(368, 23, { 3: 1, 35: 1, 23: 1, 368: 1 }, LO); - var Mb, nd, Tb, EG = Pn(io, "PortRestorer/PortSideArea", 368, Bn, Bpn, _0n), xen; - b(1769, 1, {}, Ape), o.Kb = function(n) { - return B1(), u(n, 16).Mc(); - }, w(io, "PortRestorer/lambda$0$Type", 1769), b(1770, 1, mn, xpe), o.Ad = function(n) { - B1(), u(n, 113).c = !1; - }, w(io, "PortRestorer/lambda$1$Type", 1770), b(1779, 1, Vn, $pe), o.Mb = function(n) { - return B1(), u(n, 12).j == (be(), an); - }, w(io, "PortRestorer/lambda$10$Type", 1779), b(1780, 1, {}, Mpe), o.Kb = function(n) { - return B1(), u(n, 113).d; - }, w(io, "PortRestorer/lambda$11$Type", 1780), b(1781, 1, mn, R8e), o.Ad = function(n) { + var Mb, nd, Tb, EG = Pn(io, "PortRestorer/PortSideArea", 368, _n, _pn, B0n), $en; + b(1769, 1, {}, xpe), o.Kb = function(n) { + return _1(), u(n, 16).Mc(); + }, w(io, "PortRestorer/lambda$0$Type", 1769), b(1770, 1, mn, $pe), o.Ad = function(n) { + _1(), u(n, 113).c = !1; + }, w(io, "PortRestorer/lambda$1$Type", 1770), b(1779, 1, Vn, Mpe), o.Mb = function(n) { + return _1(), u(n, 12).j == (be(), an); + }, w(io, "PortRestorer/lambda$10$Type", 1779), b(1780, 1, {}, Tpe), o.Kb = function(n) { + return _1(), u(n, 113).d; + }, w(io, "PortRestorer/lambda$11$Type", 1780), b(1781, 1, mn, _8e), o.Ad = function(n) { ean(this.a, u(n, 12)); }, w(io, "PortRestorer/lambda$12$Type", 1781), b(1771, 1, mn, B8e), o.Ad = function(n) { Mdn(this.a, u(n, 107)); - }, w(io, "PortRestorer/lambda$2$Type", 1771), b(1772, 1, ct, Tpe), o.Le = function(n, t) { + }, w(io, "PortRestorer/lambda$2$Type", 1771), b(1772, 1, ct, Spe), o.Le = function(n, t) { return L5n(u(n, 113), u(t, 113)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(io, "PortRestorer/lambda$3$Type", 1772), b(1773, 1, Vn, Spe), o.Mb = function(n) { - return B1(), u(n, 113).c; - }, w(io, "PortRestorer/lambda$4$Type", 1773), b(1774, 1, Vn, Ipe), o.Mb = function(n) { + }, w(io, "PortRestorer/lambda$3$Type", 1772), b(1773, 1, Vn, Ipe), o.Mb = function(n) { + return _1(), u(n, 113).c; + }, w(io, "PortRestorer/lambda$4$Type", 1773), b(1774, 1, Vn, Cpe), o.Mb = function(n) { return A4n(u(n, 12)); - }, w(io, "PortRestorer/lambda$5$Type", 1774), b(1775, 1, Vn, Cpe), o.Mb = function(n) { - return B1(), u(n, 12).j == (be(), ln); - }, w(io, "PortRestorer/lambda$6$Type", 1775), b(1776, 1, Vn, Ppe), o.Mb = function(n) { - return B1(), u(n, 12).j == (be(), gn); - }, w(io, "PortRestorer/lambda$7$Type", 1776), b(1777, 1, Vn, Ope), o.Mb = function(n) { + }, w(io, "PortRestorer/lambda$5$Type", 1774), b(1775, 1, Vn, Ppe), o.Mb = function(n) { + return _1(), u(n, 12).j == (be(), ln); + }, w(io, "PortRestorer/lambda$6$Type", 1775), b(1776, 1, Vn, Ope), o.Mb = function(n) { + return _1(), u(n, 12).j == (be(), gn); + }, w(io, "PortRestorer/lambda$7$Type", 1776), b(1777, 1, Vn, Lpe), o.Mb = function(n) { return smn(u(n, 12)); - }, w(io, "PortRestorer/lambda$8$Type", 1777), b(1778, 1, Vn, Lpe), o.Mb = function(n) { - return B1(), u(n, 12).j == (be(), Mn); + }, w(io, "PortRestorer/lambda$8$Type", 1777), b(1778, 1, Vn, Dpe), o.Mb = function(n) { + return _1(), u(n, 12).j == (be(), Mn); }, w(io, "PortRestorer/lambda$9$Type", 1778), b(275, 23, { 3: 1, 35: 1, 23: 1, 275: 1 }, u3); - var AG, xG, $G, MG, TG, SG, IG, CG, Qoe = Pn(io, "PortSideAssigner/Target", 275, Bn, p5n, H0n), $en; - b(1761, 1, {}, Npe), o.Kb = function(n) { + var AG, xG, $G, MG, TG, SG, IG, CG, Qoe = Pn(io, "PortSideAssigner/Target", 275, _n, p5n, H0n), Men; + b(1761, 1, {}, Fpe), o.Kb = function(n) { return mt(new Ge(null, new He(u(n, 107).j, 16)), new YU()); - }, w(io, "PortSideAssigner/lambda$1$Type", 1761), b(1762, 1, {}, Fpe), o.Kb = function(n) { + }, w(io, "PortSideAssigner/lambda$1$Type", 1761), b(1762, 1, {}, Rpe), o.Kb = function(n) { return u(n, 113).d; - }, w(io, "PortSideAssigner/lambda$2$Type", 1762), b(1763, 1, mn, Rpe), o.Ad = function(n) { + }, w(io, "PortSideAssigner/lambda$2$Type", 1762), b(1763, 1, mn, _pe), o.Ad = function(n) { Oi(u(n, 12), (be(), ln)); }, w(io, "PortSideAssigner/lambda$3$Type", 1763), b(1764, 1, {}, Bpe), o.Kb = function(n) { return u(n, 113).d; - }, w(io, "PortSideAssigner/lambda$4$Type", 1764), b(1765, 1, mn, _8e), o.Ad = function(n) { + }, w(io, "PortSideAssigner/lambda$4$Type", 1764), b(1765, 1, mn, J8e), o.Ad = function(n) { dln(this.a, u(n, 12)); - }, w(io, "PortSideAssigner/lambda$5$Type", 1765), b(1766, 1, ct, _pe), o.Le = function(n, t) { + }, w(io, "PortSideAssigner/lambda$5$Type", 1765), b(1766, 1, ct, Jpe), o.Le = function(n, t) { return Zgn(u(n, 107), u(t, 107)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(io, "PortSideAssigner/lambda$6$Type", 1766), b(1767, 1, ct, Jpe), o.Le = function(n, t) { + }, w(io, "PortSideAssigner/lambda$6$Type", 1766), b(1767, 1, ct, Gpe), o.Le = function(n, t) { return Dwn(u(n, 113), u(t, 113)); }, o.Fb = function(n) { return this === n; @@ -37734,76 +37824,76 @@ function WDn() { return new Zn(this); }, w(io, "PortSideAssigner/lambda$7$Type", 1767), b(807, 1, Vn, YU), o.Mb = function(n) { return u(n, 113).c; - }, w(io, "PortSideAssigner/lambda$8$Type", 807), b(2070, 1, {}), w(X1, "AbstractSelfLoopRouter", 2070), b(1786, 1, ct, Dpe), o.Le = function(n, t) { + }, w(io, "PortSideAssigner/lambda$8$Type", 807), b(2070, 1, {}), w(X1, "AbstractSelfLoopRouter", 2070), b(1786, 1, ct, Npe), o.Le = function(n, t) { return l0n(u(n, 107), u(t, 107)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(X1, HWe, 1786), b(1787, 1, ct, Gpe), o.Le = function(n, t) { + }, w(X1, qWe, 1786), b(1787, 1, ct, Hpe), o.Le = function(n, t) { return a0n(u(n, 107), u(t, 107)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(X1, qWe, 1787), b(1833, 2070, {}, Hpe), o.lg = function(n, t, i) { + }, w(X1, UWe, 1787), b(1833, 2070, {}, qpe), o.lg = function(n, t, i) { return i; - }, w(X1, "OrthogonalSelfLoopRouter", 1833), b(1835, 1, mn, QAe), o.Ad = function(n) { + }, w(X1, "OrthogonalSelfLoopRouter", 1833), b(1835, 1, mn, YAe), o.Ad = function(n) { see(this.b, this.a, u(n, 8)); - }, w(X1, "OrthogonalSelfLoopRouter/lambda$0$Type", 1835), b(1834, 1833, {}, qpe), o.lg = function(n, t, i) { + }, w(X1, "OrthogonalSelfLoopRouter/lambda$0$Type", 1835), b(1834, 1833, {}, Upe), o.lg = function(n, t, i) { var r, c; return r = n.c.d, Qm(i, 0, At(kr(r.n), r.a)), c = n.d.d, rt(i, At(kr(c.n), c.a)), dSn(i); - }, w(X1, "PolylineSelfLoopRouter", 1834), b(1782, 1, {}, g9e), o.a = null; + }, w(X1, "PolylineSelfLoopRouter", 1834), b(1782, 1, {}, p9e), o.a = null; var K2; - w(X1, "RoutingDirector", 1782), b(1783, 1, ct, Upe), o.Le = function(n, t) { + w(X1, "RoutingDirector", 1782), b(1783, 1, ct, zpe), o.Le = function(n, t) { return Pwn(u(n, 113), u(t, 113)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(X1, "RoutingDirector/lambda$0$Type", 1783), b(1784, 1, {}, zpe), o.Kb = function(n) { + }, w(X1, "RoutingDirector/lambda$0$Type", 1783), b(1784, 1, {}, Wpe), o.Kb = function(n) { return RA(), u(n, 107).j; - }, w(X1, "RoutingDirector/lambda$1$Type", 1784), b(1785, 1, mn, Wpe), o.Ad = function(n) { + }, w(X1, "RoutingDirector/lambda$1$Type", 1784), b(1785, 1, mn, Xpe), o.Ad = function(n) { RA(), u(n, 16).gd(K2); - }, w(X1, "RoutingDirector/lambda$2$Type", 1785), b(1788, 1, {}, Xpe), w(X1, "RoutingSlotAssigner", 1788), b(1789, 1, Vn, J8e), o.Mb = function(n) { + }, w(X1, "RoutingDirector/lambda$2$Type", 1785), b(1788, 1, {}, Kpe), w(X1, "RoutingSlotAssigner", 1788), b(1789, 1, Vn, G8e), o.Mb = function(n) { return zan(this.a, u(n, 107)); - }, w(X1, "RoutingSlotAssigner/lambda$0$Type", 1789), b(1790, 1, ct, G8e), o.Le = function(n, t) { + }, w(X1, "RoutingSlotAssigner/lambda$0$Type", 1789), b(1790, 1, ct, H8e), o.Le = function(n, t) { return ngn(this.a, u(n, 107), u(t, 107)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(X1, "RoutingSlotAssigner/lambda$1$Type", 1790), b(1836, 1833, {}, Kpe), o.lg = function(n, t, i) { + }, w(X1, "RoutingSlotAssigner/lambda$1$Type", 1790), b(1836, 1833, {}, Vpe), o.lg = function(n, t, i) { var r, c, s, f; - return r = _(H(UM(n.b.g.b, (ae(), sp)))), f = new xMe(I(T(Ji, 1), oe, 8, 0, [(s = n.c.d, At(new vr(s.n), s.a))])), qxn(n, t, i, f, r), rt(f, (c = n.d.d, At(new vr(c.n), c.a))), QBe(new Xte(f)); - }, w(X1, "SplineSelfLoopRouter", 1836), b(512, 1, ct, HY, RIe), o.Le = function(n, t) { + return r = B(H(UM(n.b.g.b, (ae(), sp)))), f = new $Me(I(S(Ji, 1), fe, 8, 0, [(s = n.c.d, At(new vr(s.n), s.a))])), qxn(n, t, i, f, r), rt(f, (c = n.d.d, At(new vr(c.n), c.a))), Y_e(new Xte(f)); + }, w(X1, "SplineSelfLoopRouter", 1836), b(512, 1, ct, HY, _Ie), o.Le = function(n, t) { return tj(this, u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, o.a = !1, w(eS, "ModelOrderNodeComparator", 512), b(1791, 1, Vn, Vpe), o.Mb = function(n) { + }, o.a = !1, w(eS, "ModelOrderNodeComparator", 512), b(1791, 1, Vn, Qpe), o.Mb = function(n) { return u(n, 12).e.c.length != 0; }, w(eS, "ModelOrderNodeComparator/lambda$0$Type", 1791), b(572, 1, Vn, rA), o.Mb = function(n) { return u(n, 12).e.c.length != 0; }, w(eS, "ModelOrderNodeComparator/lambda$1$Type", 572), b(573, 1, Vn, cA), o.Mb = function(n) { return u(n, 12).g.c.length != 0; - }, w(eS, "ModelOrderNodeComparator/lambda$2$Type", 573), b(656, 1, ct, RRe, ZQ), o.Le = function(n, t) { - return HSe(this, n, t); + }, w(eS, "ModelOrderNodeComparator/lambda$2$Type", 573), b(656, 1, ct, _Re, ZQ), o.Le = function(n, t) { + return qSe(this, n, t); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, o.c = !1, w(eS, "ModelOrderPortComparator", 656), b(1626, 1, Ft, Qpe), o.If = function(n, t) { + }, o.c = !1, w(eS, "ModelOrderPortComparator", 656), b(1626, 1, Ft, Ype), o.If = function(n, t) { KOn(u(n, 37)); }, w("org.eclipse.elk.alg.layered.intermediate.unzipping", "AlternatingLayerUnzipper", 1626), b(802, 1, {}, ZU), o.mg = function(n, t) { var i, r, c, s; - for (c = SJe(t), i = new le(), s = t.f / c, r = 1; r < c; ++r) + for (c = IJe(t), i = new le(), s = t.f / c, r = 1; r < c; ++r) he(i, ie(Xn(Cc(m.Math.round(r * s))))); return i; }, o.ng = function() { return !1; - }, w(Qh, "ARDCutIndexHeuristic", 802), b(1505, 1, Ft, Ype), o.If = function(n, t) { + }, w(Qh, "ARDCutIndexHeuristic", 802), b(1505, 1, Ft, Zpe), o.If = function(n, t) { CTn(u(n, 37), t); }, w(Qh, "BreakingPointInserter", 1505), b(317, 1, { 317: 1 }, jQ), o.Ib = function() { var n; @@ -37817,41 +37907,41 @@ function WDn() { startInLayerEdge=`, Yc(n, this.n), n.a += ` endInLayerDummy=`, Yc(n, this.b), n.a += ` endInLayerEdge=`, Yc(n, this.c), n.a; - }, w(Qh, "BreakingPointInserter/BPInfo", 317), b(650, 1, { 650: 1 }, U8e), o.a = !1, o.b = 0, o.c = 0, w(Qh, "BreakingPointInserter/Cut", 650), b(1506, 1, Ft, Zpe), o.If = function(n, t) { + }, w(Qh, "BreakingPointInserter/BPInfo", 317), b(650, 1, { 650: 1 }, z8e), o.a = !1, o.b = 0, o.c = 0, w(Qh, "BreakingPointInserter/Cut", 650), b(1506, 1, Ft, e3e), o.If = function(n, t) { Xxn(u(n, 37), t); - }, w(Qh, "BreakingPointProcessor", 1506), b(1507, 1, Vn, e3e), o.Mb = function(n) { - return LDe(u(n, 9)); - }, w(Qh, "BreakingPointProcessor/0methodref$isEnd$Type", 1507), b(1508, 1, Vn, n3e), o.Mb = function(n) { + }, w(Qh, "BreakingPointProcessor", 1506), b(1507, 1, Vn, n3e), o.Mb = function(n) { return DDe(u(n, 9)); - }, w(Qh, "BreakingPointProcessor/1methodref$isStart$Type", 1508), b(1509, 1, Ft, t3e), o.If = function(n, t) { + }, w(Qh, "BreakingPointProcessor/0methodref$isEnd$Type", 1507), b(1508, 1, Vn, t3e), o.Mb = function(n) { + return NDe(u(n, 9)); + }, w(Qh, "BreakingPointProcessor/1methodref$isStart$Type", 1508), b(1509, 1, Ft, i3e), o.If = function(n, t) { p$n(this, u(n, 37), t); - }, w(Qh, "BreakingPointRemover", 1509), b(1510, 1, mn, i3e), o.Ad = function(n) { + }, w(Qh, "BreakingPointRemover", 1509), b(1510, 1, mn, r3e), o.Ad = function(n) { u(n, 132).k = !0; }, w(Qh, "BreakingPointRemover/lambda$0$Type", 1510), b(798, 1, {}, zne), o.b = 0, o.e = 0, o.f = 0, o.j = 0, w(Qh, "GraphStats", 798), b(799, 1, {}, ez), o.Te = function(n, t) { - return m.Math.max(_(H(n)), _(H(t))); + return m.Math.max(B(H(n)), B(H(t))); }, w(Qh, "GraphStats/0methodref$max$Type", 799), b(800, 1, {}, nz), o.Te = function(n, t) { - return m.Math.max(_(H(n)), _(H(t))); - }, w(Qh, "GraphStats/2methodref$max$Type", 800), b(1692, 1, {}, r3e), o.Te = function(n, t) { + return m.Math.max(B(H(n)), B(H(t))); + }, w(Qh, "GraphStats/2methodref$max$Type", 800), b(1692, 1, {}, c3e), o.Te = function(n, t) { return Ebn(H(n), H(t)); - }, w(Qh, "GraphStats/lambda$1$Type", 1692), b(1693, 1, {}, H8e), o.Kb = function(n) { - return SBe(this.a, u(n, 25)); - }, w(Qh, "GraphStats/lambda$2$Type", 1693), b(1694, 1, {}, q8e), o.Kb = function(n) { - return SHe(this.a, u(n, 25)); + }, w(Qh, "GraphStats/lambda$1$Type", 1692), b(1693, 1, {}, q8e), o.Kb = function(n) { + return I_e(this.a, u(n, 25)); + }, w(Qh, "GraphStats/lambda$2$Type", 1693), b(1694, 1, {}, U8e), o.Kb = function(n) { + return IHe(this.a, u(n, 25)); }, w(Qh, "GraphStats/lambda$6$Type", 1694), b(801, 1, {}, tz), o.mg = function(n, t) { var i; return i = u(y(n, (ae(), rle)), 16), i || (ze(), ze(), $r); }, o.ng = function() { return !1; }, w(Qh, "ICutIndexCalculator/ManualCutIndexCalculator", 801), b(803, 1, {}, iz), o.mg = function(n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V; - for (V = (t.n == null && t_e(t), t.n), l = (t.d == null && t_e(t), t.d), J = W(Xi, Gr, 30, V.length, 15, 1), J[0] = V[0], D = V[0], a = 1; a < V.length; a++) + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V; + for (V = (t.n == null && iBe(t), t.n), l = (t.d == null && iBe(t), t.d), J = W(Xi, Gr, 30, V.length, 15, 1), J[0] = V[0], D = V[0], a = 1; a < V.length; a++) J[a] = J[a - 1] + V[a], D += V[a]; - for (c = SJe(t) - 1, f = u(y(n, (ae(), cle)), 15).a, r = Ri, i = new le(), p = m.Math.max(0, c - f); p <= m.Math.min(t.f - 1, c + f); p++) { - if (E = D / (p + 1), M = 0, d = 1, s = new le(), R = Ri, g = 0, h = 0, j = l[0], p == 0) - R = D, h = (t.g == null && (t.g = RNe(t, new nz())), _(t.g)); + for (c = IJe(t) - 1, f = u(y(n, (ae(), cle)), 15).a, r = Ri, i = new le(), p = m.Math.max(0, c - f); p <= m.Math.min(t.f - 1, c + f); p++) { + if (E = D / (p + 1), T = 0, d = 1, s = new le(), R = Ri, g = 0, h = 0, j = l[0], p == 0) + R = D, h = (t.g == null && (t.g = _Ne(t, new nz())), B(t.g)); else { for (; d < t.f; ) - J[d - 1] - M >= E && (he(s, ie(d)), R = m.Math.max(R, J[d - 1] - g), h += j, M += J[d - 1] - M, g = J[d - 1], j = l[d]), j = m.Math.max(j, l[d]), ++d; + J[d - 1] - T >= E && (he(s, ie(d)), R = m.Math.max(R, J[d - 1] - g), h += j, T += J[d - 1] - T, g = J[d - 1], j = l[d]), j = m.Math.max(j, l[d]), ++d; h += j; } v = m.Math.min(1 / R, 1 / t.b / h), v > r && (r = v, i = s); @@ -37859,149 +37949,149 @@ function WDn() { return i; }, o.ng = function() { return !1; - }, w(Qh, "MSDCutIndexHeuristic", 803), b(1647, 1, Ft, c3e), o.If = function(n, t) { + }, w(Qh, "MSDCutIndexHeuristic", 803), b(1647, 1, Ft, u3e), o.If = function(n, t) { tIn(u(n, 37), t); }, w(Qh, "SingleEdgeGraphWrapper", 1647), b(231, 23, { 3: 1, 35: 1, 23: 1, 231: 1 }, Q4); - var V2, W5, X5, og, vk, Q2, K5 = Pn($c, "CenterEdgeLabelPlacementStrategy", 231, Bn, $vn, q0n), Men; + var V2, W5, X5, og, vk, Q2, K5 = Pn($c, "CenterEdgeLabelPlacementStrategy", 231, _n, $vn, q0n), Ten; b(422, 23, { 3: 1, 35: 1, 23: 1, 422: 1 }, QW); - var Yoe, PG, Zoe = Pn($c, "ConstraintCalculationStrategy", 422, Bn, V2n, U0n), Ten; + var Yoe, PG, Zoe = Pn($c, "ConstraintCalculationStrategy", 422, _n, V2n, U0n), Sen; b(301, 23, { 3: 1, 35: 1, 23: 1, 301: 1, 188: 1, 196: 1 }, ZA), o.bg = function() { - return bHe(this); + return wHe(this); }, o.og = function() { - return bHe(this); + return wHe(this); }; - var Kj, kk, efe, nfe, tfe = Pn($c, "CrossingMinimizationStrategy", 301, Bn, imn, z0n), Sen; + var Kj, kk, efe, nfe, tfe = Pn($c, "CrossingMinimizationStrategy", 301, _n, imn, z0n), Ien; b(350, 23, { 3: 1, 35: 1, 23: 1, 350: 1 }, OO); - var ife, OG, OI, rfe = Pn($c, "CuttingStrategy", 350, Bn, _pn, W0n), Ien; + var ife, OG, OI, rfe = Pn($c, "CuttingStrategy", 350, _n, Bpn, W0n), Cen; b(267, 23, { 3: 1, 35: 1, 23: 1, 267: 1, 188: 1, 196: 1 }, Xg), o.bg = function() { - return mqe(this); + return vqe(this); }, o.og = function() { - return mqe(this); + return vqe(this); }; - var LG, cfe, DG, NG, FG, RG, BG, _G, Vj, ufe = Pn($c, "CycleBreakingStrategy", 267, Bn, _5n, X0n), Cen; + var LG, cfe, DG, NG, FG, RG, _G, BG, Vj, ufe = Pn($c, "CycleBreakingStrategy", 267, _n, B5n, X0n), Pen; b(419, 23, { 3: 1, 35: 1, 23: 1, 419: 1 }, YW); - var LI, sfe, ofe = Pn($c, "DirectionCongruency", 419, Bn, Q2n, K0n), Pen; + var LI, sfe, ofe = Pn($c, "DirectionCongruency", 419, _n, Q2n, K0n), Oen; b(449, 23, { 3: 1, 35: 1, 23: 1, 449: 1 }, DO); - var V5, JG, Y2, Oen = Pn($c, "EdgeConstraint", 449, Bn, Jpn, V0n), Len; + var V5, JG, Y2, Len = Pn($c, "EdgeConstraint", 449, _n, Jpn, V0n), Den; b(284, 23, { 3: 1, 35: 1, 23: 1, 284: 1 }, e6); - var GG, HG, qG, UG, DI, zG, ffe = Pn($c, "EdgeLabelSideSelection", 284, Bn, Mvn, Q0n), Den; + var GG, HG, qG, UG, DI, zG, ffe = Pn($c, "EdgeLabelSideSelection", 284, _n, Mvn, Q0n), Nen; b(476, 23, { 3: 1, 35: 1, 23: 1, 476: 1 }, ZW); - var NI, hfe, lfe = Pn($c, "EdgeStraighteningStrategy", 476, Bn, Y2n, Y0n), Nen; + var NI, hfe, lfe = Pn($c, "EdgeStraighteningStrategy", 476, _n, Y2n, Y0n), Fen; b(282, 23, { 3: 1, 35: 1, 23: 1, 282: 1 }, Y4); - var WG, afe, dfe, FI, bfe, wfe, gfe = Pn($c, "FixedAlignment", 282, Bn, Tvn, Z0n), Fen; + var WG, afe, dfe, FI, bfe, wfe, gfe = Pn($c, "FixedAlignment", 282, _n, Tvn, Z0n), Ren; b(283, 23, { 3: 1, 35: 1, 23: 1, 283: 1 }, Z4); - var pfe, mfe, vfe, kfe, yk, yfe, jfe = Pn($c, "GraphCompactionStrategy", 283, Bn, Svn, ebn), Ren; + var pfe, mfe, vfe, kfe, yk, yfe, jfe = Pn($c, "GraphCompactionStrategy", 283, _n, Svn, ebn), _en; b(261, 23, { 3: 1, 35: 1, 23: 1, 261: 1 }, nw); - var Q5, RI, Y5, So, jk, BI, Z5, Z2, _I, Ek, XG = Pn($c, "GraphProperties", 261, Bn, d4n, nbn), Ben; + var Q5, RI, Y5, So, jk, _I, Z5, Z2, BI, Ek, XG = Pn($c, "GraphProperties", 261, _n, d4n, nbn), Ben; b(302, 23, { 3: 1, 35: 1, 23: 1, 302: 1 }, NO); - var Qj, KG, VG, QG = Pn($c, "GreedySwitchType", 302, Bn, Gpn, tbn), _en; + var Qj, KG, VG, QG = Pn($c, "GreedySwitchType", 302, _n, Gpn, tbn), Jen; b(329, 23, { 3: 1, 35: 1, 23: 1, 329: 1 }, FO); - var fg, Efe, Yj, YG = Pn($c, "GroupOrderStrategy", 329, Bn, Hpn, ibn), Jen; + var fg, Efe, Yj, YG = Pn($c, "GroupOrderStrategy", 329, _n, Hpn, ibn), Gen; b(315, 23, { 3: 1, 35: 1, 23: 1, 315: 1 }, RO); - var nm, Zj, ep, Gen = Pn($c, "InLayerConstraint", 315, Bn, qpn, rbn), Hen; + var nm, Zj, ep, Hen = Pn($c, "InLayerConstraint", 315, _n, qpn, rbn), qen; b(420, 23, { 3: 1, 35: 1, 23: 1, 420: 1 }, eX); - var ZG, Afe, xfe = Pn($c, "InteractiveReferencePoint", 420, Bn, Z2n, cbn), qen, $fe, tm, Sb, eE, JI, Mfe, Tfe, GI, Sfe, im, HI, Ak, rm, fa, eH, qI, Sc, Ife, td, ou, nH, tH, nE, f0, Ib, cm, Cfe, Uen, um, tE, hg, Qf, Vo, iH, np, id, _t, $t, Pfe, Ofe, Lfe, Dfe, Nfe, rH, UI, ds, Cb, cH, sm, xk, Qa, tp, Pb, ip, rp, e4, h0, Ffe, uH, sH, $k, om, zI, fm, cp; + var ZG, Afe, xfe = Pn($c, "InteractiveReferencePoint", 420, _n, Z2n, cbn), Uen, $fe, tm, Sb, eE, JI, Mfe, Tfe, GI, Sfe, im, HI, Ak, rm, fa, eH, qI, Sc, Ife, td, ou, nH, tH, nE, f0, Ib, cm, Cfe, zen, um, tE, hg, Qf, Vo, iH, np, id, Bt, $t, Pfe, Ofe, Lfe, Dfe, Nfe, rH, UI, ds, Cb, cH, sm, xk, Qa, tp, Pb, ip, rp, e4, h0, Ffe, uH, sH, $k, om, zI, fm, cp; b(165, 23, { 3: 1, 35: 1, 23: 1, 165: 1 }, iy); - var Mk, ha, Tk, l0, iE, Rfe = Pn($c, "LayerConstraint", 165, Bn, Ymn, ubn), zen; + var Mk, ha, Tk, l0, iE, Rfe = Pn($c, "LayerConstraint", 165, _n, Ymn, ubn), Wen; b(423, 23, { 3: 1, 35: 1, 23: 1, 423: 1 }, nX); - var oH, fH, Bfe = Pn($c, "LayerUnzippingStrategy", 423, Bn, epn, sbn), Wen; - b(843, 1, vh, k9e), o.tf = function(n) { - Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Zie), ""), "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."), Yfe), (Vd(), Vt)), ofe), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ere), ""), "Feedback Edges"), "Whether feedback edges should be highlighted by routing around the nodes."), (en(), !1)), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), nS), ""), "Interactive Reference Point"), "Determines which point of a node is considered by interactive layout phases."), rhe), Vt), xfe), Pe(Xe)))), ei(n, nS, xj, Qnn), ei(n, nS, q9, Vnn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), nre), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), tre), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(nan(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ire), ""), "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), ui), Pe(t1)), I(T(ke, 1), oe, 2, 6, ["org.eclipse.elk.layered.northOrSouthPort"])))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), rre), ""), "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."), whe), Vt), $le), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), cre), ""), "Thoroughness"), "How much effort should be spent to produce a nice layout."), ie(7)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ure), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), sre), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), xj), "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)."), Qfe), Vt), ufe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), $j), j_), "Node Layering Strategy"), "Strategy for node layering."), she), Vt), ble), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ore), j_), "Layer Constraint"), "Determines a constraint on the placement of the node regarding the layering."), che), Vt), Rfe), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), fre), j_), "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), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), hre), j_), "Layer ID"), "Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."), ie(-1)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), qB), EXe), "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."), ie(4)), pr), Ii), Pe(Xe)))), ei(n, qB, $j, rtn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), UB), EXe), "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."), ie(2)), pr), Ii), Pe(Xe)))), ei(n, UB, $j, utn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), zB), AXe), "Node Promotion Strategy"), "Reduces number of dummy nodes after layering phase (if possible)."), uhe), Vt), Ele), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), WB), AXe), "Max Node Promotion Iterations"), "Limits the number of iterations for node promotion."), ie(0)), pr), Ii), Pe(Xe)))), ei(n, WB, zB, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), XB), "layering.coffmanGraham"), "Layer Bound"), "The maximum number of nodes allowed per layer."), ie(pt)), pr), Ii), Pe(Xe)))), ei(n, XB, $j, Znn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), q9), A5), "Crossing Minimization Strategy"), "Strategy for crossing minimization."), Vfe), Vt), tfe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), lre), A5), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), KB), A5), "Hierarchical Sweepiness"), "How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."), 0.1), ur), Ei), Pe(Xe)))), ei(n, KB, bS, Enn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), VB), A5), "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), ui), Pe(Xe)))), ei(n, VB, q9, Snn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), are), A5), "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), gm), ke), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), dre), A5), "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), gm), ke), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), bre), A5), "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), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), wre), A5), "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."), ie(-1)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), gre), xXe), "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."), ie(40)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), QB), xXe), "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."), Kfe), Vt), QG), Pe(Xe)))), ei(n, QB, q9, ynn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), tS), "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."), Xfe), Vt), QG), Pe(Xe)))), ei(n, tS, q9, mnn), ei(n, tS, bS, vnn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), B2), $Xe), "Node Placement Strategy"), "Strategy for node placement."), bhe), Vt), mle), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), iS), $Xe), "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), ui), Pe(Xe)))), ei(n, iS, B2, Etn), ei(n, iS, B2, Atn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), YB), MXe), "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."), lhe), Vt), lfe), Pe(Xe)))), ei(n, YB, B2, vtn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ZB), MXe), "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."), ahe), Vt), gfe), Pe(Xe)))), ei(n, ZB, B2, ytn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), e_), "nodePlacement.linearSegments"), "Linear Segments Deflection Dampening"), "Dampens the movement of nodes to keep the diagram from getting too large."), 0.3), ur), Ei), Pe(Xe)))), ei(n, e_, B2, $tn), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), n_), "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."), Vt), NH), Pe(mi)))), ei(n, n_, B2, Itn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), t_), "nodePlacement.networkSimplex.nodeFlexibility"), "Node Flexibility Default"), "Default value of the 'nodeFlexibility' option for the children of a hierarchical node."), dhe), Vt), NH), Pe(Xe)))), ei(n, t_, B2, Stn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), pre), TXe), "Self-Loop Distribution"), "Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."), nhe), Vt), Sle), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), mre), TXe), "Self-Loop Ordering"), "Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."), the), Vt), Ile), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), rS), "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."), ihe), Vt), Ple), Pe(Xe)))), ei(n, rS, Tj, _nn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), cS), "edgeRouting.splines.sloppy"), "Sloppy Spline Layer Spacing Factor"), "Spacing factor for routing area between layers when using sloppy spline routing."), 0.2), ur), Ei), Pe(Xe)))), ei(n, cS, Tj, Gnn), ei(n, cS, rS, Hnn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), i_), "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), ur), Ei), Pe(Xe)))), ei(n, i_, Tj, Nnn), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), vre), yh), "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."), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), kre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), yre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), jre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Ere), Dre), "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."), ie(0)), pr), Ii), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Are), Dre), "Shortness Priority"), "Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."), ie(0)), pr), Ii), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), xre), Dre), "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."), ie(0)), pr), Ii), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), r_), Nre), "Connected Components Compaction"), "Tries to further compact components (disconnected sub-graphs)."), !1), Pi), ui), Pe(Xe)))), ei(n, r_, R9, !0), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), $re), SXe), "Post Compaction Strategy"), IXe), Jfe), Vt), jfe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Mre), SXe), "Post Compaction Constraint Calculation"), IXe), _fe), Vt), Zoe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), uS), Fre), "High Degree Node Treatment"), "Makes room around high degree nodes to place leafs and trees."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), c_), Fre), "High Degree Node Threshold"), "Whether a node is considered to have a high degree."), ie(16)), pr), Ii), Pe(Xe)))), ei(n, c_, uS, !0), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), u_), Fre), "High Degree Node Maximum Tree Height"), "Maximum height of a subtree connected to a high degree node to be moved to separate layers."), ie(5)), pr), Ii), Pe(Xe)))), ei(n, u_, uS, !0), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ua), Rre), "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'."), mhe), Vt), Nle), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), sS), Rre), "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), ur), Ei), Pe(Xe)))), ei(n, sS, ua, Htn), ei(n, sS, ua, qtn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), oS), Rre), "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), ur), Ei), Pe(Xe)))), ei(n, oS, ua, ztn), ei(n, oS, ua, Wtn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), U9), CXe), "Cutting Strategy"), "The strategy by which the layer indexes are determined at which the layering crumbles into chunks."), phe), Vt), rfe), Pe(Xe)))), ei(n, U9, ua, Ztn), ei(n, U9, ua, ein), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), s_), CXe), "Manually Specified Cuts"), "Allows the user to specify her own cuts for a certain graph."), $h), ro), Pe(Xe)))), ei(n, s_, U9, Ktn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), o_), "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."), ghe), pr), Ii), Pe(Xe)))), ei(n, o_, U9, Qtn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), fS), PXe), "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."), vhe), Vt), Dle), Pe(Xe)))), ei(n, fS, ua, ain), ei(n, fS, ua, din), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), hS), PXe), "Valid Indices for Wrapping"), null), $h), ro), Pe(Xe)))), ei(n, hS, ua, fin), ei(n, hS, ua, hin), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), lS), Bre), "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), ui), Pe(Xe)))), ei(n, lS, ua, rin), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), aS), Bre), "Distance Penalty When Improving Cuts"), null), 2), ur), Ei), Pe(Xe)))), ei(n, aS, ua, tin), ei(n, aS, lS, !0), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), f_), Bre), "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), ui), Pe(Xe)))), ei(n, f_, ua, uin), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), h_), E_), "Layer Unzipping Strategy"), "The strategy to use for unzipping a layer into multiple sublayers while maintaining the existing ordering of nodes and edges after crossing minimization. The default value is 'NONE'."), hhe), Vt), Bfe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), l_), E_), "Minimize Edge Length Heuristic"), "Use a heuristic to decide whether or not to actually perform the layer split with the goal of minimizing the total edge length. This option only works when layerSplit is set to 2. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to true, then the value is set to true for the entire layer."), !1), Pi), ui), Pe(mi)))), ei(n, l_, a_, atn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), a_), E_), "Unzipping Layer Split"), "Defines the number of sublayers to split a layer into. The property can be set to the nodes in a layer, which then applies the property for the layer. If multiple nodes set the value to different values, then the lowest value is chosen."), ohe), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), d_), E_), "Reset Alternation on Long Edges"), "If set to true, nodes will always be placed in the first sublayer after a long edge when using the ALTERNATING strategy. Otherwise long edge dummies are treated the same as regular nodes. The default value is true. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to false, then the value is set to false for the entire layer."), fhe), Pi), ui), Pe(mi)))), ei(n, d_, h_, btn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Tre), A_), "Edge Label Side Selection"), "Method to decide on edge label sides."), ehe), Vt), ffe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Sre), A_), "Edge Center Label Placement Strategy"), "Determines in which layer center labels of long edges should be placed."), Zfe), Vt), K5), Rt(Xe, I(T(xh, 1), ce, 160, 0, [aa]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), dS), z9), "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."), Wfe), Vt), xle), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Ire), z9), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Mj), z9), "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), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), b_), z9), "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."), Gfe), Vt), roe), Pe(Xe)))), ei(n, b_, R9, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Cre), z9), "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."), zfe), Vt), gle), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), w_), z9), "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), ur), Ei), Pe(Xe)))), ei(n, w_, dS, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), g_), z9), "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), ur), Ei), Pe(Xe)))), ei(n, g_, dS, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), p_), x5), _re), "Used to define partial ordering groups during cycle breaking. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."), ie(0)), pr), Ii), Pe(mi)))), ei(n, p_, Mj, !1), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), m_), x5), _re), "Used to define partial ordering groups during crossing minimization. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."), ie(0)), pr), Ii), Rt(mi, I(T(xh, 1), ce, 160, 0, [Zf, t1]))))), ei(n, m_, Mj, !1), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), v_), x5), _re), "Used to define partial ordering groups during component packing. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."), ie(0)), pr), Ii), Rt(mi, I(T(xh, 1), ce, 160, 0, [Zf, t1]))))), ei(n, v_, Mj, !1), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Pre), x5), "Cycle Breaking Group Ordering Strategy"), "Determines how to count ordering violations during cycle breaking. NONE: They do not count. ENFORCED: A group with a higher model order is before a node with a smaller. MODEL_ORDER: The model order counts instead of the model order group id ordering."), Hfe), Vt), YG), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), k_), x5), "Cycle Breaking Preferred Source Id"), "The model order group id for which should be preferred as a source if possible."), pr), Ii), Pe(Xe)))), ei(n, k_, xj, inn), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), y_), x5), "Cycle Breaking Preferred Target Id"), "The model order group id for which should be preferred as a target if possible."), pr), Ii), Pe(Xe)))), ei(n, y_, xj, cnn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Ore), x5), "Crossing Minimization Group Ordering Strategy"), "Determines how to count ordering violations during crossing minimization. NONE: They do not count. ENFORCED: A group with a lower id is before a group with a higher id. MODEL_ORDER: The model order counts instead of the model order group id ordering."), Ufe), Vt), YG), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Lre), x5), "Crossing Minimization Enforced Group Orders"), "Holds all group ids which are enforcing their order during crossing minimization strategies. E.g. if only groups 2 and -1 (default) enforce their ordering. Other groups e.g. the group of timer nodes can be ordered arbitrarily if it helps and the mentioned groups may not change their order."), qfe), $h), ro), Pe(Xe)))), Yze((new w9e(), n)); + var oH, fH, _fe = Pn($c, "LayerUnzippingStrategy", 423, _n, epn, sbn), Xen; + b(843, 1, vh, y9e), o.tf = function(n) { + Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Zie), ""), "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."), Yfe), (Vd(), Vt)), ofe), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ere), ""), "Feedback Edges"), "Whether feedback edges should be highlighted by routing around the nodes."), (en(), !1)), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), nS), ""), "Interactive Reference Point"), "Determines which point of a node is considered by interactive layout phases."), rhe), Vt), xfe), Pe(Xe)))), ei(n, nS, xj, Ynn), ei(n, nS, q9, Qnn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), nre), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), tre), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(nan(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ire), ""), "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), ui), Pe(t1)), I(S(ye, 1), fe, 2, 6, ["org.eclipse.elk.layered.northOrSouthPort"])))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), rre), ""), "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."), whe), Vt), $le), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), cre), ""), "Thoroughness"), "How much effort should be spent to produce a nice layout."), ie(7)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ure), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), sre), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), xj), "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)."), Qfe), Vt), ufe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), $j), jB), "Node Layering Strategy"), "Strategy for node layering."), she), Vt), ble), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ore), jB), "Layer Constraint"), "Determines a constraint on the placement of the node regarding the layering."), che), Vt), Rfe), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), fre), jB), "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), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), hre), jB), "Layer ID"), "Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."), ie(-1)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), q_), AXe), "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."), ie(4)), pr), Ii), Pe(Xe)))), ei(n, q_, $j, ctn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), U_), AXe), "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."), ie(2)), pr), Ii), Pe(Xe)))), ei(n, U_, $j, stn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), z_), xXe), "Node Promotion Strategy"), "Reduces number of dummy nodes after layering phase (if possible)."), uhe), Vt), Ele), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), W_), xXe), "Max Node Promotion Iterations"), "Limits the number of iterations for node promotion."), ie(0)), pr), Ii), Pe(Xe)))), ei(n, W_, z_, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), X_), "layering.coffmanGraham"), "Layer Bound"), "The maximum number of nodes allowed per layer."), ie(pt)), pr), Ii), Pe(Xe)))), ei(n, X_, $j, etn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), q9), A5), "Crossing Minimization Strategy"), "Strategy for crossing minimization."), Vfe), Vt), tfe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), lre), A5), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), K_), A5), "Hierarchical Sweepiness"), "How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."), 0.1), ur), Ei), Pe(Xe)))), ei(n, K_, bS, Ann), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), V_), A5), "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), ui), Pe(Xe)))), ei(n, V_, q9, Inn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), are), A5), "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), gm), ye), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), dre), A5), "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), gm), ye), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), bre), A5), "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), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), wre), A5), "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."), ie(-1)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), gre), $Xe), "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."), ie(40)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Q_), $Xe), "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."), Kfe), Vt), QG), Pe(Xe)))), ei(n, Q_, q9, jnn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), tS), "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."), Xfe), Vt), QG), Pe(Xe)))), ei(n, tS, q9, vnn), ei(n, tS, bS, knn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), _2), MXe), "Node Placement Strategy"), "Strategy for node placement."), bhe), Vt), mle), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), iS), MXe), "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), ui), Pe(Xe)))), ei(n, iS, _2, Atn), ei(n, iS, _2, xtn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Y_), TXe), "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."), lhe), Vt), lfe), Pe(Xe)))), ei(n, Y_, _2, ktn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Z_), TXe), "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."), ahe), Vt), gfe), Pe(Xe)))), ei(n, Z_, _2, jtn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), eB), "nodePlacement.linearSegments"), "Linear Segments Deflection Dampening"), "Dampens the movement of nodes to keep the diagram from getting too large."), 0.3), ur), Ei), Pe(Xe)))), ei(n, eB, _2, Mtn), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), nB), "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."), Vt), NH), Pe(mi)))), ei(n, nB, _2, Ctn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), tB), "nodePlacement.networkSimplex.nodeFlexibility"), "Node Flexibility Default"), "Default value of the 'nodeFlexibility' option for the children of a hierarchical node."), dhe), Vt), NH), Pe(Xe)))), ei(n, tB, _2, Itn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), pre), SXe), "Self-Loop Distribution"), "Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."), nhe), Vt), Sle), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), mre), SXe), "Self-Loop Ordering"), "Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."), the), Vt), Ile), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), rS), "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."), ihe), Vt), Ple), Pe(Xe)))), ei(n, rS, Tj, Jnn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), cS), "edgeRouting.splines.sloppy"), "Sloppy Spline Layer Spacing Factor"), "Spacing factor for routing area between layers when using sloppy spline routing."), 0.2), ur), Ei), Pe(Xe)))), ei(n, cS, Tj, Hnn), ei(n, cS, rS, qnn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), iB), "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), ur), Ei), Pe(Xe)))), ei(n, iB, Tj, Fnn), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), vre), yh), "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."), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), kre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), yre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), jre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Ere), Dre), "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."), ie(0)), pr), Ii), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Are), Dre), "Shortness Priority"), "Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."), ie(0)), pr), Ii), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), xre), Dre), "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."), ie(0)), pr), Ii), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), rB), Nre), "Connected Components Compaction"), "Tries to further compact components (disconnected sub-graphs)."), !1), Pi), ui), Pe(Xe)))), ei(n, rB, R9, !0), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), $re), IXe), "Post Compaction Strategy"), CXe), Jfe), Vt), jfe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Mre), IXe), "Post Compaction Constraint Calculation"), CXe), Bfe), Vt), Zoe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), uS), Fre), "High Degree Node Treatment"), "Makes room around high degree nodes to place leafs and trees."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), cB), Fre), "High Degree Node Threshold"), "Whether a node is considered to have a high degree."), ie(16)), pr), Ii), Pe(Xe)))), ei(n, cB, uS, !0), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), uB), Fre), "High Degree Node Maximum Tree Height"), "Maximum height of a subtree connected to a high degree node to be moved to separate layers."), ie(5)), pr), Ii), Pe(Xe)))), ei(n, uB, uS, !0), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ua), Rre), "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'."), mhe), Vt), Nle), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), sS), Rre), "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), ur), Ei), Pe(Xe)))), ei(n, sS, ua, qtn), ei(n, sS, ua, Utn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), oS), Rre), "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), ur), Ei), Pe(Xe)))), ei(n, oS, ua, Wtn), ei(n, oS, ua, Xtn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), U9), PXe), "Cutting Strategy"), "The strategy by which the layer indexes are determined at which the layering crumbles into chunks."), phe), Vt), rfe), Pe(Xe)))), ei(n, U9, ua, ein), ei(n, U9, ua, nin), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), sB), PXe), "Manually Specified Cuts"), "Allows the user to specify her own cuts for a certain graph."), $h), ro), Pe(Xe)))), ei(n, sB, U9, Vtn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), oB), "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."), ghe), pr), Ii), Pe(Xe)))), ei(n, oB, U9, Ytn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), fS), OXe), "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."), vhe), Vt), Dle), Pe(Xe)))), ei(n, fS, ua, din), ei(n, fS, ua, bin), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), hS), OXe), "Valid Indices for Wrapping"), null), $h), ro), Pe(Xe)))), ei(n, hS, ua, hin), ei(n, hS, ua, lin), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), lS), _re), "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), ui), Pe(Xe)))), ei(n, lS, ua, cin), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), aS), _re), "Distance Penalty When Improving Cuts"), null), 2), ur), Ei), Pe(Xe)))), ei(n, aS, ua, iin), ei(n, aS, lS, !0), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), fB), _re), "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), ui), Pe(Xe)))), ei(n, fB, ua, sin), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), hB), EB), "Layer Unzipping Strategy"), "The strategy to use for unzipping a layer into multiple sublayers while maintaining the existing ordering of nodes and edges after crossing minimization. The default value is 'NONE'."), hhe), Vt), _fe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), lB), EB), "Minimize Edge Length Heuristic"), "Use a heuristic to decide whether or not to actually perform the layer split with the goal of minimizing the total edge length. This option only works when layerSplit is set to 2. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to true, then the value is set to true for the entire layer."), !1), Pi), ui), Pe(mi)))), ei(n, lB, aB, dtn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), aB), EB), "Unzipping Layer Split"), "Defines the number of sublayers to split a layer into. The property can be set to the nodes in a layer, which then applies the property for the layer. If multiple nodes set the value to different values, then the lowest value is chosen."), ohe), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), dB), EB), "Reset Alternation on Long Edges"), "If set to true, nodes will always be placed in the first sublayer after a long edge when using the ALTERNATING strategy. Otherwise long edge dummies are treated the same as regular nodes. The default value is true. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to false, then the value is set to false for the entire layer."), fhe), Pi), ui), Pe(mi)))), ei(n, dB, hB, wtn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Tre), AB), "Edge Label Side Selection"), "Method to decide on edge label sides."), ehe), Vt), ffe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Sre), AB), "Edge Center Label Placement Strategy"), "Determines in which layer center labels of long edges should be placed."), Zfe), Vt), K5), Rt(Xe, I(S(xh, 1), ce, 160, 0, [aa]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), dS), z9), "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."), Wfe), Vt), xle), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Ire), z9), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Mj), z9), "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), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), bB), z9), "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."), Gfe), Vt), roe), Pe(Xe)))), ei(n, bB, R9, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Cre), z9), "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."), zfe), Vt), gle), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), wB), z9), "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), ur), Ei), Pe(Xe)))), ei(n, wB, dS, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), gB), z9), "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), ur), Ei), Pe(Xe)))), ei(n, gB, dS, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), pB), x5), Bre), "Used to define partial ordering groups during cycle breaking. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."), ie(0)), pr), Ii), Pe(mi)))), ei(n, pB, Mj, !1), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), mB), x5), Bre), "Used to define partial ordering groups during crossing minimization. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."), ie(0)), pr), Ii), Rt(mi, I(S(xh, 1), ce, 160, 0, [Zf, t1]))))), ei(n, mB, Mj, !1), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), vB), x5), Bre), "Used to define partial ordering groups during component packing. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."), ie(0)), pr), Ii), Rt(mi, I(S(xh, 1), ce, 160, 0, [Zf, t1]))))), ei(n, vB, Mj, !1), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Pre), x5), "Cycle Breaking Group Ordering Strategy"), "Determines how to count ordering violations during cycle breaking. NONE: They do not count. ENFORCED: A group with a higher model order is before a node with a smaller. MODEL_ORDER: The model order counts instead of the model order group id ordering."), Hfe), Vt), YG), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), kB), x5), "Cycle Breaking Preferred Source Id"), "The model order group id for which should be preferred as a source if possible."), pr), Ii), Pe(Xe)))), ei(n, kB, xj, rnn), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), yB), x5), "Cycle Breaking Preferred Target Id"), "The model order group id for which should be preferred as a target if possible."), pr), Ii), Pe(Xe)))), ei(n, yB, xj, unn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Ore), x5), "Crossing Minimization Group Ordering Strategy"), "Determines how to count ordering violations during crossing minimization. NONE: They do not count. ENFORCED: A group with a lower id is before a group with a higher id. MODEL_ORDER: The model order counts instead of the model order group id ordering."), Ufe), Vt), YG), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Lre), x5), "Crossing Minimization Enforced Group Orders"), "Holds all group ids which are enforcing their order during crossing minimization strategies. E.g. if only groups 2 and -1 (default) enforce their ordering. Other groups e.g. the group of timer nodes can be ordered arbitrarily if it helps and the mentioned groups may not change their order."), qfe), $h), ro), Pe(Xe)))), Zze((new g9e(), n)); }; - var Xen, Ken, Ven, _fe, Qen, Jfe, Yen, Gfe, Zen, enn, nnn, Hfe, tnn, inn, rnn, cnn, unn, qfe, snn, Ufe, onn, fnn, hnn, lnn, zfe, ann, dnn, bnn, Wfe, wnn, gnn, pnn, Xfe, mnn, vnn, knn, Kfe, ynn, jnn, Enn, Ann, xnn, $nn, Mnn, Tnn, Snn, Inn, Vfe, Cnn, Qfe, Pnn, Yfe, Onn, Zfe, Lnn, ehe, Dnn, Nnn, Fnn, nhe, Rnn, the, Bnn, ihe, _nn, Jnn, Gnn, Hnn, qnn, Unn, znn, Wnn, Xnn, Knn, rhe, Vnn, Qnn, Ynn, Znn, etn, ntn, che, ttn, itn, rtn, ctn, utn, stn, otn, uhe, ftn, she, htn, ohe, ltn, atn, dtn, fhe, btn, wtn, hhe, gtn, ptn, mtn, lhe, vtn, ktn, ahe, ytn, jtn, Etn, Atn, xtn, $tn, Mtn, Ttn, dhe, Stn, Itn, Ctn, bhe, Ptn, whe, Otn, Ltn, Dtn, Ntn, Ftn, Rtn, Btn, _tn, Jtn, Gtn, Htn, qtn, Utn, ztn, Wtn, Xtn, Ktn, Vtn, ghe, Qtn, Ytn, phe, Ztn, ein, nin, tin, iin, rin, cin, uin, sin, mhe, oin, fin, hin, lin, vhe, ain, din; - w($c, "LayeredMetaDataProvider", 843), b(982, 1, vh, w9e), o.tf = function(n) { - Yze(n); + var Ken, Ven, Qen, Bfe, Yen, Jfe, Zen, Gfe, enn, nnn, tnn, Hfe, inn, rnn, cnn, unn, snn, qfe, onn, Ufe, fnn, hnn, lnn, ann, zfe, dnn, bnn, wnn, Wfe, gnn, pnn, mnn, Xfe, vnn, knn, ynn, Kfe, jnn, Enn, Ann, xnn, $nn, Mnn, Tnn, Snn, Inn, Cnn, Vfe, Pnn, Qfe, Onn, Yfe, Lnn, Zfe, Dnn, ehe, Nnn, Fnn, Rnn, nhe, _nn, the, Bnn, ihe, Jnn, Gnn, Hnn, qnn, Unn, znn, Wnn, Xnn, Knn, Vnn, rhe, Qnn, Ynn, Znn, etn, ntn, ttn, che, itn, rtn, ctn, utn, stn, otn, ftn, uhe, htn, she, ltn, ohe, atn, dtn, btn, fhe, wtn, gtn, hhe, ptn, mtn, vtn, lhe, ktn, ytn, ahe, jtn, Etn, Atn, xtn, $tn, Mtn, Ttn, Stn, dhe, Itn, Ctn, Ptn, bhe, Otn, whe, Ltn, Dtn, Ntn, Ftn, Rtn, _tn, Btn, Jtn, Gtn, Htn, qtn, Utn, ztn, Wtn, Xtn, Ktn, Vtn, Qtn, ghe, Ytn, Ztn, phe, ein, nin, tin, iin, rin, cin, uin, sin, oin, mhe, fin, hin, lin, ain, vhe, din, bin; + w($c, "LayeredMetaDataProvider", 843), b(982, 1, vh, g9e), o.tf = function(n) { + Zze(n); }; - var tl, hH, WI, Sk, XI, khe, KI, Ik, rE, lH, hm, yhe, jhe, Ehe, Ck, bin, Pk, lg, aH, VI, dH, $l, bH, n4, Ahe, cE, wH, xhe, win, gin, pin, QI, gH, Ok, lm, min, co, $he, Mhe, YI, up, il, ZI, la, The, She, Ihe, pH, mH, Che, Ya, vH, Phe, ag, Ohe, Lhe, Dhe, eC, dg, a0, Nhe, Fhe, Vr, Rhe, vin, pc, Lk, Bhe, _he, Jhe, uE, nC, tC, kH, yH, Ghe, iC, Hhe, qhe, rC, Ob, Uhe, jH, Dk, zhe, Lb, Nk, cC, d0, EH, t4, uC, b0, Whe, Xhe, Khe, bg, Vhe, kin, yin, jin, Ein, Db, wg, oi, Za, Ain, gg, Qhe, i4, Yhe, pg, xin, r4, Zhe, am, $in, Min, sE, AH, ele, oE, Mf, mg, sp, w0, rd, sC, vg, xH, c4, u4, g0, kg, $H, fE, Fk, Rk, Tin, Sin, Iin, nle, Cin, MH, tle, ile, rle, cle, TH, ule, sle, ole, fle, SH, oC; - w($c, "LayeredOptions", 982), b(983, 1, {}, u3e), o.uf = function() { + var tl, hH, WI, Sk, XI, khe, KI, Ik, rE, lH, hm, yhe, jhe, Ehe, Ck, win, Pk, lg, aH, VI, dH, $l, bH, n4, Ahe, cE, wH, xhe, gin, pin, min, QI, gH, Ok, lm, vin, co, $he, Mhe, YI, up, il, ZI, la, The, She, Ihe, pH, mH, Che, Ya, vH, Phe, ag, Ohe, Lhe, Dhe, eC, dg, a0, Nhe, Fhe, Vr, Rhe, kin, pc, Lk, _he, Bhe, Jhe, uE, nC, tC, kH, yH, Ghe, iC, Hhe, qhe, rC, Ob, Uhe, jH, Dk, zhe, Lb, Nk, cC, d0, EH, t4, uC, b0, Whe, Xhe, Khe, bg, Vhe, yin, jin, Ein, Ain, Db, wg, oi, Za, xin, gg, Qhe, i4, Yhe, pg, $in, r4, Zhe, am, Min, Tin, sE, AH, ele, oE, Mf, mg, sp, w0, rd, sC, vg, xH, c4, u4, g0, kg, $H, fE, Fk, Rk, Sin, Iin, Cin, nle, Pin, MH, tle, ile, rle, cle, TH, ule, sle, ole, fle, SH, oC; + w($c, "LayeredOptions", 982), b(983, 1, {}, s3e), o.uf = function() { var n; - return n = new Q7e(), n; + return n = new Y7e(), n; }, o.vf = function(n) { }, w($c, "LayeredOptions/LayeredFactory", 983), b(1345, 1, {}), o.a = 0; - var Pin; - w(Oc, "ElkSpacings/AbstractSpacingsBuilder", 1345), b(778, 1345, {}, _Z); - var fC, Oin; + var Oin; + w(Oc, "ElkSpacings/AbstractSpacingsBuilder", 1345), b(778, 1345, {}, BZ); + var fC, Lin; w($c, "LayeredSpacings/LayeredSpacingsBuilder", 778), b(268, 23, { 3: 1, 35: 1, 23: 1, 268: 1, 188: 1, 196: 1 }, Kg), o.bg = function() { - return bqe(this); + return wqe(this); }, o.og = function() { - return bqe(this); + return wqe(this); }; - var IH, CH, PH, hle, lle, ale, hC, OH, dle, ble = Pn($c, "LayeringStrategy", 268, Bn, J5n, obn), Lin; - b(352, 23, { 3: 1, 35: 1, 23: 1, 352: 1 }, BO); - var LH, wle, lC, gle = Pn($c, "LongEdgeOrderingStrategy", 352, Bn, Upn, fbn), Din; + var IH, CH, PH, hle, lle, ale, hC, OH, dle, ble = Pn($c, "LayeringStrategy", 268, _n, J5n, obn), Din; + b(352, 23, { 3: 1, 35: 1, 23: 1, 352: 1 }, _O); + var LH, wle, lC, gle = Pn($c, "LongEdgeOrderingStrategy", 352, _n, Upn, fbn), Nin; b(203, 23, { 3: 1, 35: 1, 23: 1, 203: 1 }, ex); - var op, fp, aC, DH, NH = Pn($c, "NodeFlexibility", 203, Bn, rmn, hbn), Nin; + var op, fp, aC, DH, NH = Pn($c, "NodeFlexibility", 203, _n, rmn, hbn), Fin; b(328, 23, { 3: 1, 35: 1, 23: 1, 328: 1, 188: 1, 196: 1 }, ry), o.bg = function() { - return tHe(this); + return iHe(this); }, o.og = function() { - return tHe(this); + return iHe(this); }; - var Bk, FH, RH, _k, ple, mle = Pn($c, "NodePlacementStrategy", 328, Bn, Qmn, lbn), Fin; + var _k, FH, RH, Bk, ple, mle = Pn($c, "NodePlacementStrategy", 328, _n, Qmn, lbn), Rin; b(243, 23, { 3: 1, 35: 1, 23: 1, 243: 1 }, tw); - var vle, s4, Jk, hE, kle, yle, lE, jle, dC, bC, Ele = Pn($c, "NodePromotionStrategy", 243, Bn, a4n, abn), Rin; + var vle, s4, Jk, hE, kle, yle, lE, jle, dC, bC, Ele = Pn($c, "NodePromotionStrategy", 243, _n, a4n, abn), _in; b(269, 23, { 3: 1, 35: 1, 23: 1, 269: 1 }, nx); - var Ale, cd, BH, _H, xle = Pn($c, "OrderingStrategy", 269, Bn, cmn, dbn), Bin; + var Ale, cd, _H, BH, xle = Pn($c, "OrderingStrategy", 269, _n, cmn, dbn), Bin; b(421, 23, { 3: 1, 35: 1, 23: 1, 421: 1 }, tX); - var JH, GH, $le = Pn($c, "PortSortingStrategy", 421, Bn, npn, bbn), _in; - b(452, 23, { 3: 1, 35: 1, 23: 1, 452: 1 }, _O); - var bs, yu, Gk, Jin = Pn($c, "PortType", 452, Bn, zpn, wbn), Gin; + var JH, GH, $le = Pn($c, "PortSortingStrategy", 421, _n, npn, bbn), Jin; + b(452, 23, { 3: 1, 35: 1, 23: 1, 452: 1 }, BO); + var bs, yu, Gk, Gin = Pn($c, "PortType", 452, _n, zpn, wbn), Hin; b(381, 23, { 3: 1, 35: 1, 23: 1, 381: 1 }, JO); - var Mle, HH, Tle, Sle = Pn($c, "SelfLoopDistributionStrategy", 381, Bn, Wpn, gbn), Hin; + var Mle, HH, Tle, Sle = Pn($c, "SelfLoopDistributionStrategy", 381, _n, Wpn, gbn), qin; b(348, 23, { 3: 1, 35: 1, 23: 1, 348: 1 }, GO); - var qH, aE, UH, Ile = Pn($c, "SelfLoopOrderingStrategy", 348, Bn, Xpn, pbn), qin; - b(316, 1, { 316: 1 }, VUe), w($c, "Spacings", 316), b(349, 23, { 3: 1, 35: 1, 23: 1, 349: 1 }, HO); - var zH, Cle, Hk, Ple = Pn($c, "SplineRoutingMode", 349, Bn, Kpn, mbn), Uin; + var qH, aE, UH, Ile = Pn($c, "SelfLoopOrderingStrategy", 348, _n, Xpn, pbn), Uin; + b(316, 1, { 316: 1 }, QUe), w($c, "Spacings", 316), b(349, 23, { 3: 1, 35: 1, 23: 1, 349: 1 }, HO); + var zH, Cle, Hk, Ple = Pn($c, "SplineRoutingMode", 349, _n, Kpn, mbn), zin; b(351, 23, { 3: 1, 35: 1, 23: 1, 351: 1 }, qO); - var WH, Ole, Lle, Dle = Pn($c, "ValidifyStrategy", 351, Bn, Vpn, vbn), zin; + var WH, Ole, Lle, Dle = Pn($c, "ValidifyStrategy", 351, _n, Vpn, vbn), Win; b(382, 23, { 3: 1, 35: 1, 23: 1, 382: 1 }, UO); - var yg, XH, o4, Nle = Pn($c, "WrappingStrategy", 382, Bn, Qpn, kbn), Win; - b(1361, 1, lr, h9e), o.pg = function(n) { - return u(n, 37), Xin; + var yg, XH, o4, Nle = Pn($c, "WrappingStrategy", 382, _n, Qpn, kbn), Xin; + b(1361, 1, lr, l9e), o.pg = function(n) { + return u(n, 37), Kin; }, o.If = function(n, t) { - _Cn(this, u(n, 37), t); + BCn(this, u(n, 37), t); }; - var Xin; - w(mb, "BFSNodeOrderCycleBreaker", 1361), b(1359, 1, lr, f9e), o.pg = function(n) { - return u(n, 37), Kin; + var Kin; + w(mb, "BFSNodeOrderCycleBreaker", 1361), b(1359, 1, lr, h9e), o.pg = function(n) { + return u(n, 37), Vin; }, o.If = function(n, t) { DIn(this, u(n, 37), t); }; - var Kin; - w(mb, "DFSNodeOrderCycleBreaker", 1359), b(1360, 1, mn, CTe), o.Ad = function(n) { + var Vin; + w(mb, "DFSNodeOrderCycleBreaker", 1359), b(1360, 1, mn, PTe), o.Ad = function(n) { FTn(this.a, this.c, this.b, u(n, 17)); - }, o.b = !1, w(mb, "DFSNodeOrderCycleBreaker/lambda$0$Type", 1360), b(1353, 1, lr, l9e), o.pg = function(n) { - return u(n, 37), Vin; + }, o.b = !1, w(mb, "DFSNodeOrderCycleBreaker/lambda$0$Type", 1360), b(1353, 1, lr, a9e), o.pg = function(n) { + return u(n, 37), Qin; }, o.If = function(n, t) { LIn(this, u(n, 37), t); }; - var Vin; + var Qin; w(mb, "DepthFirstCycleBreaker", 1353), b(779, 1, lr, hV), o.pg = function(n) { - return u(n, 37), Qin; + return u(n, 37), Yin; }, o.If = function(n, t) { nLn(this, u(n, 37), t); }, o.qg = function(n) { return u(pe(n, KM(this.e, n.c.length)), 9); }; - var Qin; - w(mb, "GreedyCycleBreaker", 779), b(1356, 779, lr, mxe), o.qg = function(n) { + var Yin; + w(mb, "GreedyCycleBreaker", 779), b(1356, 779, lr, vxe), o.qg = function(n) { var t, i, r, c, s, f, h, l, a; for (a = null, r = pt, l = m.Math.max(this.b.a.c.length, u(y(this.b, (te(), id)), 15).a), t = l * u(y(this.b, eE), 15).a, c = new F8(), i = z(y(this.b, (ae(), hm))) === z((P1(), fg)), h = new x(n); h.a < h.c.c.length; ) - f = u(A(h), 9), Et(f, _t) && (s = i ? P3(c, f, t, l) : S3(c, f, l), r > s && (r = s, a = f)); + f = u(A(h), 9), Et(f, Bt) && (s = i ? P3(c, f, t, l) : S3(c, f, l), r > s && (r = s, a = f)); return a || u(pe(n, KM(this.e, n.c.length)), 9); - }, w(mb, "GreedyModelOrderCycleBreaker", 1356), b(505, 1, {}, F8), o.a = 0, o.b = 0, w(mb, "GroupModelOrderCalculator", 505), b(1354, 1, lr, a9e), o.pg = function(n) { - return u(n, 37), Yin; + }, w(mb, "GreedyModelOrderCycleBreaker", 1356), b(505, 1, {}, F8), o.a = 0, o.b = 0, w(mb, "GroupModelOrderCalculator", 505), b(1354, 1, lr, d9e), o.pg = function(n) { + return u(n, 37), Zin; }, o.If = function(n, t) { sCn(this, u(n, 37), t); }; - var Yin; - w(mb, "InteractiveCycleBreaker", 1354), b(1355, 1, lr, s9e), o.pg = function(n) { - return u(n, 37), Zin; + var Zin; + w(mb, "InteractiveCycleBreaker", 1354), b(1355, 1, lr, o9e), o.pg = function(n) { + return u(n, 37), ern; }, o.If = function(n, t) { fCn(u(n, 37), t); }; - var Zin; + var ern; w(mb, "ModelOrderCycleBreaker", 1355), b(780, 1, lr), o.pg = function(n) { - return u(n, 37), ern; + return u(n, 37), nrn; }, o.If = function(n, t) { QSn(this, u(n, 37), t); }, o.rg = function(n, t) { @@ -38009,124 +38099,124 @@ function WDn() { for (f = 0; f < this.d.b; f++) { for (h = null, i = new F8(), l = Yi, g = u(qc(this.d, f), 22).Jc(); g.Ob(); ) d = u(g.Pb(), 9), s = z(y(this.a, (ae(), hm))) === z((P1(), fg)), h ? (a = s ? P3(i, d, t, n) : S3(i, d, n), l < a && (h = d, l = a)) : (h = d, l = s ? P3(i, d, t, n) : S3(i, d, n)); - for (c = new fn(dn(Ht(h).a.Jc(), new Q())); xn(c); ) + for (c = new fn(dn(Ht(h).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), u(qc(this.d, f), 22).Gc(r.d.i) && he(this.c, r); } }; - var ern; - w(mb, "SCCModelOrderCycleBreaker", 780), b(1358, 780, lr, vxe), o.rg = function(n, t) { + var nrn; + w(mb, "SCCModelOrderCycleBreaker", 780), b(1358, 780, lr, kxe), o.rg = function(n, t) { var i, r, c, s, f, h, l, a, d, g, p, v; for (f = 0; f < this.d.b; f++) if (!(u(qc(this.d, f), 22).gc() <= 1)) { for (l = null, h = null, g = pt, d = Yi, s = z(y(this.a, (ae(), hm))) === z((P1(), fg)), i = new F8(), v = u(qc(this.d, f), 22).Jc(); v.Ob(); ) p = u(v.Pb(), 9), !l || !h ? (l = p, g = s ? P3(i, p, t, n) : S3(i, p, n), h = p, d = g) : (a = s ? P3(i, p, t, n) : S3(i, p, n), g > a && (l = p, g = a), d < a && (h = p, d = a)); if (z(y(l, lg)) === z(y(this.a, yhe))) - for (c = new fn(dn(bi(l).a.Jc(), new Q())); xn(c); ) + for (c = new fn(dn(bi(l).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), u(qc(this.d, f), 22).Gc(r.c.i) && he(this.c, r); else if (z(y(h, lg)) === z(y(this.a, jhe))) - for (c = new fn(dn(Ht(h).a.Jc(), new Q())); xn(c); ) + for (c = new fn(dn(Ht(h).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), u(qc(this.d, f), 22).Gc(r.c.i) && he(this.c, r); - else if (_f(new fn(dn(bi(l).a.Jc(), new Q()))) > _f(new fn(dn(Ht(h).a.Jc(), new Q())))) - for (c = new fn(dn(bi(l).a.Jc(), new Q())); xn(c); ) + else if (Bf(new fn(dn(bi(l).a.Jc(), new Y()))) > Bf(new fn(dn(Ht(h).a.Jc(), new Y())))) + for (c = new fn(dn(bi(l).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), u(qc(this.d, f), 22).Gc(r.c.i) && he(this.c, r); else - for (c = new fn(dn(Ht(h).a.Jc(), new Q())); xn(c); ) + for (c = new fn(dn(Ht(h).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), u(qc(this.d, f), 22).Gc(r.d.i) && he(this.c, r); } - }, w(mb, "SCCNodeTypeCycleBreaker", 1358), b(1357, 780, lr, kxe), o.rg = function(n, t) { + }, w(mb, "SCCNodeTypeCycleBreaker", 1358), b(1357, 780, lr, yxe), o.rg = function(n, t) { var i, r, c, s, f, h, l, a, d, g, p, v; for (f = 0; f < this.d.b; f++) if (!(u(qc(this.d, f), 22).gc() <= 1)) { for (l = null, h = null, g = pt, d = Yi, s = z(y(this.a, (ae(), hm))) === z((P1(), fg)), i = new F8(), v = u(qc(this.d, f), 22).Jc(); v.Ob(); ) p = u(v.Pb(), 9), !l || !h ? (l = p, g = s ? P3(i, p, t, n) : S3(i, p, n), h = p, d = g) : (a = s ? P3(i, p, t, n) : S3(i, p, n), g > a && (l = p, g = a), d < a && (h = p, d = a)); - if (_f(new fn(dn(bi(l).a.Jc(), new Q()))) > _f(new fn(dn(Ht(h).a.Jc(), new Q())))) - for (c = new fn(dn(bi(l).a.Jc(), new Q())); xn(c); ) + if (Bf(new fn(dn(bi(l).a.Jc(), new Y()))) > Bf(new fn(dn(Ht(h).a.Jc(), new Y())))) + for (c = new fn(dn(bi(l).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), u(qc(this.d, f), 22).Gc(r.c.i) && he(this.c, r); else - for (c = new fn(dn(Ht(h).a.Jc(), new Q())); xn(c); ) + for (c = new fn(dn(Ht(h).a.Jc(), new Y())); xn(c); ) r = u(pn(c), 17), u(qc(this.d, f), 22).Gc(r.d.i) && he(this.c, r); } - }, w(mb, "SCConnectivity", 1357), b(1373, 1, lr, o9e), o.pg = function(n) { - return u(n, 37), nrn; + }, w(mb, "SCConnectivity", 1357), b(1373, 1, lr, f9e), o.pg = function(n) { + return u(n, 37), trn; }, o.If = function(n, t) { cOn(this, u(n, 37), t); }; - var nrn; - w(sa, "BreadthFirstModelOrderLayerer", 1373), b(1374, 1, ct, o3e), o.Le = function(n, t) { + var trn; + w(sa, "BreadthFirstModelOrderLayerer", 1373), b(1374, 1, ct, f3e), o.Le = function(n, t) { return qEn(u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(sa, "BreadthFirstModelOrderLayerer/lambda$0$Type", 1374), b(1364, 1, lr, EAe), o.pg = function(n) { - return u(n, 37), trn; + }, w(sa, "BreadthFirstModelOrderLayerer/lambda$0$Type", 1374), b(1364, 1, lr, AAe), o.pg = function(n) { + return u(n, 37), irn; }, o.If = function(n, t) { uLn(this, u(n, 37), t); }; - var trn; - w(sa, "CoffmanGrahamLayerer", 1364), b(1365, 1, ct, z8e), o.Le = function(n, t) { + var irn; + w(sa, "CoffmanGrahamLayerer", 1364), b(1365, 1, ct, W8e), o.Le = function(n, t) { return Q$n(this.a, u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(sa, "CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type", 1365), b(1366, 1, ct, W8e), o.Le = function(n, t) { + }, w(sa, "CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type", 1365), b(1366, 1, ct, X8e), o.Le = function(n, t) { return agn(this.a, u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(sa, "CoffmanGrahamLayerer/lambda$1$Type", 1366), b(1375, 1, lr, u9e), o.pg = function(n) { - return u(n, 37), irn; + }, w(sa, "CoffmanGrahamLayerer/lambda$1$Type", 1366), b(1375, 1, lr, s9e), o.pg = function(n) { + return u(n, 37), rrn; }, o.If = function(n, t) { zOn(this, u(n, 37), t); }, o.c = 0, o.e = 0; - var irn; - w(sa, "DepthFirstModelOrderLayerer", 1375), b(1376, 1, ct, f3e), o.Le = function(n, t) { + var rrn; + w(sa, "DepthFirstModelOrderLayerer", 1375), b(1376, 1, ct, h3e), o.Le = function(n, t) { return UEn(u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(sa, "DepthFirstModelOrderLayerer/lambda$0$Type", 1376), b(1367, 1, lr, h3e), o.pg = function(n) { + }, w(sa, "DepthFirstModelOrderLayerer/lambda$0$Type", 1376), b(1367, 1, lr, l3e), o.pg = function(n) { return u(n, 37), et(et(et(new wi(), (zi(), $f), (Qi(), mG)), Al, ug), Xc, cg); }, o.If = function(n, t) { gOn(u(n, 37), t); - }, w(sa, "InteractiveLayerer", 1367), b(564, 1, { 564: 1 }, cje), o.a = 0, o.c = 0, w(sa, "InteractiveLayerer/LayerSpan", 564), b(1363, 1, lr, p9e), o.pg = function(n) { - return u(n, 37), rrn; + }, w(sa, "InteractiveLayerer", 1367), b(564, 1, { 564: 1 }, uje), o.a = 0, o.c = 0, w(sa, "InteractiveLayerer/LayerSpan", 564), b(1363, 1, lr, m9e), o.pg = function(n) { + return u(n, 37), crn; }, o.If = function(n, t) { U$n(this, u(n, 37), t); }; - var rrn; - w(sa, "LongestPathLayerer", 1363), b(1372, 1, lr, m9e), o.pg = function(n) { - return u(n, 37), crn; + var crn; + w(sa, "LongestPathLayerer", 1363), b(1372, 1, lr, v9e), o.pg = function(n) { + return u(n, 37), urn; }, o.If = function(n, t) { aMn(this, u(n, 37), t); }; - var crn; - w(sa, "LongestPathSourceLayerer", 1372), b(1370, 1, lr, v9e), o.pg = function(n) { + var urn; + w(sa, "LongestPathSourceLayerer", 1372), b(1370, 1, lr, k9e), o.pg = function(n) { return u(n, 37), et(et(et(new wi(), (zi(), $f), (Qi(), X2)), Al, ug), Xc, cg); }, o.If = function(n, t) { $On(this, u(n, 37), t); }, o.a = 0, o.b = 0, o.d = 0; var Fle, Rle; - w(sa, "MinWidthLayerer", 1370), b(1371, 1, ct, X8e), o.Le = function(n, t) { + w(sa, "MinWidthLayerer", 1370), b(1371, 1, ct, K8e), o.Le = function(n, t) { return O4n(this, u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(sa, "MinWidthLayerer/MinOutgoingEdgesComparator", 1371), b(1362, 1, lr, b9e), o.pg = function(n) { - return u(n, 37), urn; + }, w(sa, "MinWidthLayerer/MinOutgoingEdgesComparator", 1371), b(1362, 1, lr, w9e), o.pg = function(n) { + return u(n, 37), srn; }, o.If = function(n, t) { HCn(this, u(n, 37), t); }; - var urn; - w(sa, "NetworkSimplexLayerer", 1362), b(1368, 1, lr, YMe), o.pg = function(n) { + var srn; + w(sa, "NetworkSimplexLayerer", 1362), b(1368, 1, lr, ZMe), o.pg = function(n) { return u(n, 37), et(et(et(new wi(), (zi(), $f), (Qi(), X2)), Al, ug), Xc, cg); }, o.If = function(n, t) { TPn(this, u(n, 37), t); - }, o.d = 0, o.f = 0, o.g = 0, o.i = 0, o.s = 0, o.t = 0, o.u = 0, w(sa, "StretchWidthLayerer", 1368), b(1369, 1, ct, g3e), o.Le = function(n, t) { + }, o.d = 0, o.f = 0, o.g = 0, o.i = 0, o.s = 0, o.t = 0, o.u = 0, w(sa, "StretchWidthLayerer", 1368), b(1369, 1, ct, p3e), o.Le = function(n, t) { return dvn(u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; @@ -38134,9 +38224,9 @@ function WDn() { return new Zn(this); }, w(sa, "StretchWidthLayerer/1", 1369), b(406, 1, Ece), o.eg = function(n, t, i, r, c, s) { }, o.tg = function(n, t, i) { - return qqe(this, n, t, i); + return Uqe(this, n, t, i); }, o.dg = function() { - this.g = W(Bg, NXe, 30, this.d, 15, 1), this.f = W(Bg, NXe, 30, this.d, 15, 1); + this.g = W(_g, FXe, 30, this.d, 15, 1), this.f = W(_g, FXe, 30, this.d, 15, 1); }, o.fg = function(n, t) { this.e[n] = W(Wn, lt, 30, t[n].length, 15, 1); }, o.gg = function(n, t, i) { @@ -38144,7 +38234,7 @@ function WDn() { r = i[n][t], r.p = t, this.e[n][t] = t; }, o.hg = function(n, t, i, r) { u(pe(r[n][t].j, i), 12).p = this.d++; - }, o.b = 0, o.c = 0, o.d = 0, w(Mu, "AbstractBarycenterPortDistributor", 406), b(1663, 1, ct, K8e), o.Le = function(n, t) { + }, o.b = 0, o.c = 0, o.d = 0, w(Mu, "AbstractBarycenterPortDistributor", 406), b(1663, 1, ct, V8e), o.Le = function(n, t) { return Jkn(this.a, u(n, 12), u(t, 12)); }, o.Fb = function(n) { return this === n; @@ -38162,22 +38252,22 @@ function WDn() { }, o.ig = function() { return !1; }, o.ug = function(n, t, i, r) { - i ? D_e(this, n) : (J_e(this, n, r), sze(this, n, t)), n.c.length > 1 && (ve(me(y(_i((qe(0, n.c.length), u(n.c[0], 9))), (ae(), n4)))) ? dHe(n, this.d, u(this, 660)) : (ze(), Di(n, this.d)), iFe(this.e, n)); + i ? NBe(this, n) : (GBe(this, n, r), oze(this, n, t)), n.c.length > 1 && (ve(me(y(Bi((qe(0, n.c.length), u(n.c[0], 9))), (ae(), n4)))) ? bHe(n, this.d, u(this, 660)) : (ze(), Di(n, this.d)), rFe(this.e, n)); }, o.jg = function(n, t, i, r) { var c, s, f, h, l, a, d; - for (t != mSe(i, n.length) && (s = n[t - (i ? 1 : -1)], GQ(this.f, s, i ? (Cr(), yu) : (Cr(), bs))), c = n[t][0], d = !r || c.k == (cn(), Ai), a = wf(n[t]), this.ug(a, d, !1, i), f = 0, l = new x(a); l.a < l.c.c.length; ) + for (t != vSe(i, n.length) && (s = n[t - (i ? 1 : -1)], GQ(this.f, s, i ? (Cr(), yu) : (Cr(), bs))), c = n[t][0], d = !r || c.k == (cn(), Ai), a = wf(n[t]), this.ug(a, d, !1, i), f = 0, l = new x(a); l.a < l.c.c.length; ) h = u(A(l), 9), n[t][f++] = h; return !1; }, o.kg = function(n, t) { var i, r, c, s, f; - for (f = mSe(t, n.length), s = wf(n[f]), this.ug(s, !1, !0, t), i = 0, c = new x(s); c.a < c.c.c.length; ) + for (f = vSe(t, n.length), s = wf(n[f]), this.ug(s, !1, !0, t), i = 0, c = new x(s); c.a < c.c.c.length; ) r = u(A(c), 9), n[f][i++] = r; return !1; - }, w(Mu, "BarycenterHeuristic", 816), b(658, 1, { 658: 1 }, Y8e), o.Ib = function() { + }, w(Mu, "BarycenterHeuristic", 816), b(658, 1, { 658: 1 }, Z8e), o.Ib = function() { return "BarycenterState [node=" + this.c + ", summedWeight=" + this.d + ", degree=" + this.b + ", barycenter=" + this.a + ", visited=" + this.e + "]"; }, o.b = 0, o.d = 0, o.e = !1; - var srn = w(Mu, "BarycenterHeuristic/BarycenterState", 658); - b(1842, 1, ct, V8e), o.Le = function(n, t) { + var orn = w(Mu, "BarycenterHeuristic/BarycenterState", 658); + b(1842, 1, ct, Q8e), o.Le = function(n, t) { return N7n(this.a, u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; @@ -38187,19 +38277,19 @@ function WDn() { }, o.eg = function(n, t, i, r, c, s) { }, o.hg = function(n, t, i, r) { }, o.fg = function(n, t) { - this.a[n] = W(srn, { 3: 1, 4: 1, 5: 1, 2079: 1 }, 658, t[n].length, 0, 1), this.b[n] = W(orn, { 3: 1, 4: 1, 5: 1, 2080: 1 }, 239, t[n].length, 0, 1); + this.a[n] = W(orn, { 3: 1, 4: 1, 5: 1, 2079: 1 }, 658, t[n].length, 0, 1), this.b[n] = W(frn, { 3: 1, 4: 1, 5: 1, 2080: 1 }, 239, t[n].length, 0, 1); }, o.gg = function(n, t, i) { - mBe(this, i[n][t], !0); - }, o.c = !1, w(Mu, "ForsterConstraintResolver", 815), b(239, 1, { 239: 1 }, KIe, KUe), o.Ib = function() { + v_e(this, i[n][t], !0); + }, o.c = !1, w(Mu, "ForsterConstraintResolver", 815), b(239, 1, { 239: 1 }, VIe, VUe), o.Ib = function() { var n, t; for (t = new w1(), t.a += "[", n = 0; n < this.d.length; n++) - it(t, NBe(this.d[n])), ch(this.g, this.d[0]).a != null && it(it((t.a += "<", t), Qan(ch(this.g, this.d[0]).a)), ">"), n < this.d.length - 1 && (t.a += mu); + it(t, F_e(this.d[n])), ch(this.g, this.d[0]).a != null && it(it((t.a += "<", t), Qan(ch(this.g, this.d[0]).a)), ">"), n < this.d.length - 1 && (t.a += mu); return (t.a += "]", t).a; }, o.a = 0, o.c = 0, o.f = 0; - var orn = w(Mu, "ForsterConstraintResolver/ConstraintGroup", 239); - b(1837, 1, mn, Q8e), o.Ad = function(n) { - mBe(this.a, u(n, 9), !1); - }, w(Mu, "ForsterConstraintResolver/lambda$0$Type", 1837), b(218, 1, { 218: 1, 220: 1 }, rze), o.eg = function(n, t, i, r, c, s) { + var frn = w(Mu, "ForsterConstraintResolver/ConstraintGroup", 239); + b(1837, 1, mn, Y8e), o.Ad = function(n) { + v_e(this.a, u(n, 9), !1); + }, w(Mu, "ForsterConstraintResolver/lambda$0$Type", 1837), b(218, 1, { 218: 1, 220: 1 }, cze), o.eg = function(n, t, i, r, c, s) { }, o.fg = function(n, t) { }, o.dg = function() { this.r = W(Wn, lt, 30, this.n, 15, 1); @@ -38209,8 +38299,8 @@ function WDn() { }, o.hg = function(n, t, i, r) { ++this.n; }, o.Ib = function() { - return fze(this.e, new vi()); - }, o.g = !1, o.i = !1, o.n = 0, o.s = !1, w(Mu, "GraphInfoHolder", 218), b(1875, 1, H9, s3e), o.eg = function(n, t, i, r, c, s) { + return hze(this.e, new vi()); + }, o.g = !1, o.i = !1, o.n = 0, o.s = !1, w(Mu, "GraphInfoHolder", 218), b(1875, 1, H9, o3e), o.eg = function(n, t, i, r, c, s) { }, o.fg = function(n, t) { }, o.hg = function(n, t, i, r) { }, o.tg = function(n, t, i) { @@ -38220,13 +38310,13 @@ function WDn() { }, o.gg = function(n, t, i) { var r; r = i[n][t], this.c += r.j.c.length; - }, o.c = 0, w(Mu, "GreedyPortDistributor", 1875), b(1381, 1, lr, y9e), o.pg = function(n) { + }, o.c = 0, w(Mu, "GreedyPortDistributor", 1875), b(1381, 1, lr, j9e), o.pg = function(n) { return U6n(u(n, 37)); }, o.If = function(n, t) { sPn(u(n, 37), t); }; - var frn; - w(Mu, "InteractiveCrossingMinimizer", 1381), b(1382, 1, ct, Z8e), o.Le = function(n, t) { + var hrn; + w(Mu, "InteractiveCrossingMinimizer", 1381), b(1382, 1, ct, eye), o.Le = function(n, t) { return w7n(this, u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; @@ -38234,46 +38324,46 @@ function WDn() { return new Zn(this); }, w(Mu, "InteractiveCrossingMinimizer/1", 1382), b(453, 1, { 453: 1, 95: 1, 43: 1 }, MA), o.pg = function(n) { var t; - return u(n, 37), t = kx(hrn), et(t, (zi(), Xc), (Qi(), jI)), t; + return u(n, 37), t = kx(lrn), et(t, (zi(), Xc), (Qi(), jI)), t; }, o.If = function(n, t) { bSn(this, u(n, 37), t); }, o.e = 0; - var hrn; - w(Mu, "LayerSweepCrossingMinimizer", 453), b(1378, 1, mn, eye), o.Ad = function(n) { + var lrn; + w(Mu, "LayerSweepCrossingMinimizer", 453), b(1378, 1, mn, nye), o.Ad = function(n) { iIn(this.a, u(n, 218)); - }, w(Mu, "LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type", 1378), b(1379, 1, mn, nye), o.Ad = function(n) { - _6n(this.a, u(n, 218)); - }, w(Mu, "LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type", 1379), b(1380, 1, mn, tye), o.Ad = function(n) { - TUe(this.a, u(n, 218)); + }, w(Mu, "LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type", 1378), b(1379, 1, mn, tye), o.Ad = function(n) { + B6n(this.a, u(n, 218)); + }, w(Mu, "LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type", 1379), b(1380, 1, mn, iye), o.Ad = function(n) { + SUe(this.a, u(n, 218)); }, w(Mu, "LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type", 1380), b(404, 23, { 3: 1, 35: 1, 23: 1, 404: 1 }, tx); - var dE, wC, qk, gC, lrn = Pn(Mu, "LayerSweepCrossingMinimizer/CrossMinType", 404, Bn, umn, jbn), arn; - b(1377, 1, Vn, a3e), o.Mb = function(n) { - return BY(), u(n, 25).a.c.length == 0; - }, w(Mu, "LayerSweepCrossingMinimizer/lambda$0$Type", 1377), b(1839, 1, H9, ICe), o.dg = function() { + var dE, wC, qk, gC, arn = Pn(Mu, "LayerSweepCrossingMinimizer/CrossMinType", 404, _n, umn, jbn), drn; + b(1377, 1, Vn, d3e), o.Mb = function(n) { + return _Y(), u(n, 25).a.c.length == 0; + }, w(Mu, "LayerSweepCrossingMinimizer/lambda$0$Type", 1377), b(1839, 1, H9, CCe), o.dg = function() { }, o.eg = function(n, t, i, r, c, s) { }, o.hg = function(n, t, i, r) { }, o.fg = function(n, t) { - t[n][0].c.p = n, this.b[n] = W(drn, { 3: 1, 4: 1, 5: 1, 2005: 1 }, 659, t[n].length, 0, 1); + t[n][0].c.p = n, this.b[n] = W(brn, { 3: 1, 4: 1, 5: 1, 2005: 1 }, 659, t[n].length, 0, 1); }, o.gg = function(n, t, i) { var r; - r = i[n][t], r.p = t, ai(this.b[n], t, new l3e()); - }, w(Mu, "LayerSweepTypeDecider", 1839), b(659, 1, { 659: 1 }, l3e), o.Ib = function() { + r = i[n][t], r.p = t, ai(this.b[n], t, new a3e()); + }, w(Mu, "LayerSweepTypeDecider", 1839), b(659, 1, { 659: 1 }, a3e), o.Ib = function() { return "NodeInfo [connectedEdges=" + this.a + ", hierarchicalInfluence=" + this.b + ", randomInfluence=" + this.c + "]"; }, o.a = 0, o.b = 0, o.c = 0; - var drn = w(Mu, "LayerSweepTypeDecider/NodeInfo", 659); - b(1840, 1, Kh, d3e), o.Lb = function(n) { + var brn = w(Mu, "LayerSweepTypeDecider/NodeInfo", 659); + b(1840, 1, Kh, b3e), o.Lb = function(n) { return w6(new fh(u(n, 12).b)); }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return w6(new fh(u(n, 12).b)); - }, w(Mu, "LayerSweepTypeDecider/lambda$0$Type", 1840), b(1841, 1, Kh, b3e), o.Lb = function(n) { + }, w(Mu, "LayerSweepTypeDecider/lambda$0$Type", 1840), b(1841, 1, Kh, w3e), o.Lb = function(n) { return w6(new fh(u(n, 12).b)); }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return w6(new fh(u(n, 12).b)); - }, w(Mu, "LayerSweepTypeDecider/lambda$1$Type", 1841), b(1876, 406, Ece, cEe), o.sg = function(n, t, i) { + }, w(Mu, "LayerSweepTypeDecider/lambda$1$Type", 1841), b(1876, 406, Ece, uEe), o.sg = function(n, t, i) { var r, c, s, f, h, l, a, d, g; switch (a = this.g, i.g) { case 1: { @@ -38291,7 +38381,7 @@ function WDn() { default: throw $(new H8()); } - }, w(Mu, "LayerTotalPortDistributor", 1876), b(1844, 1, H9, eCe), o.dg = function() { + }, w(Mu, "LayerTotalPortDistributor", 1876), b(1844, 1, H9, nCe), o.dg = function() { }, o.eg = function(n, t, i, r, c, s) { }, o.fg = function(n, t) { }, o.gg = function(n, t, i) { @@ -38312,27 +38402,27 @@ function WDn() { for (ze(), Di(r, this.b), c = 0, f = new x(r); f.a < f.c.c.length; ) s = u(A(f), 9), n[i][c++] = s, K(s, (te(), cp), c); return !1; - }, w(Mu, "MedianHeuristic", 1844), b(1845, 1, ct, w3e), o.Le = function(n, t) { + }, w(Mu, "MedianHeuristic", 1844), b(1845, 1, ct, g3e), o.Le = function(n, t) { return GAn(u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Mu, "MedianHeuristic/lambda$0$Type", 1845), b(660, 816, { 660: 1, 220: 1 }, CNe), o.ug = function(n, t, i, r) { - i ? D_e(this, n) : (J_e(this, n, r), sze(this, n, t)), n.c.length > 1 && (ve(me(y(_i((qe(0, n.c.length), u(n.c[0], 9))), (ae(), n4)))) ? dHe(n, this.d, this) : (ze(), Di(n, this.d)), ve(me(y(_i((qe(0, n.c.length), u(n.c[0], 9))), n4))) || iFe(this.e, n)); - }, w(Mu, "ModelOrderBarycenterHeuristic", 660), b(1843, 1, ct, iye), o.Le = function(n, t) { + }, w(Mu, "MedianHeuristic/lambda$0$Type", 1845), b(660, 816, { 660: 1, 220: 1 }, PNe), o.ug = function(n, t, i, r) { + i ? NBe(this, n) : (GBe(this, n, r), oze(this, n, t)), n.c.length > 1 && (ve(me(y(Bi((qe(0, n.c.length), u(n.c[0], 9))), (ae(), n4)))) ? bHe(n, this.d, this) : (ze(), Di(n, this.d)), ve(me(y(Bi((qe(0, n.c.length), u(n.c[0], 9))), n4))) || rFe(this.e, n)); + }, w(Mu, "ModelOrderBarycenterHeuristic", 660), b(1843, 1, ct, rye), o.Le = function(n, t) { return AIn(this.a, u(n, 9), u(t, 9)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Mu, "ModelOrderBarycenterHeuristic/lambda$0$Type", 1843), b(1383, 1, lr, T9e), o.pg = function(n) { + }, w(Mu, "ModelOrderBarycenterHeuristic/lambda$0$Type", 1843), b(1383, 1, lr, S9e), o.pg = function(n) { var t; - return u(n, 37), t = kx(brn), et(t, (zi(), Xc), (Qi(), jI)), t; + return u(n, 37), t = kx(wrn), et(t, (zi(), Xc), (Qi(), jI)), t; }, o.If = function(n, t) { - _2n((u(n, 37), t)); + B2n((u(n, 37), t)); }; - var brn; + var wrn; w(Mu, "NoCrossingMinimizer", 1383), b(796, 406, Ece, jW), o.sg = function(n, t, i) { var r, c, s, f, h, l, a, d, g, p, v; switch (g = this.g, i.g) { @@ -38354,10 +38444,10 @@ function WDn() { throw $(new on("Port type is undefined")); } return 1; - }, w(Mu, "NodeRelativePortDistributor", 796), b(808, 1, {}, JSe, mJe), w(Mu, "SweepCopy", 808), b(1838, 1, H9, eBe), o.fg = function(n, t) { + }, w(Mu, "NodeRelativePortDistributor", 796), b(808, 1, {}, GSe, vJe), w(Mu, "SweepCopy", 808), b(1838, 1, H9, n_e), o.fg = function(n, t) { }, o.dg = function() { var n; - n = W(Wn, lt, 30, this.f, 15, 1), this.d = new lye(n), this.a = new Ay(n); + n = W(Wn, lt, 30, this.f, 15, 1), this.d = new aye(n), this.a = new Ay(n); }, o.eg = function(n, t, i, r, c, s) { var f; f = u(pe(s[n][t].j, i), 12), c.c == f && c.c.i.c == c.d.i.c && ++this.e[n]; @@ -38368,38 +38458,38 @@ function WDn() { var c; c = u(pe(r[n][t].j, i), 12), c.p = this.f++, c.g.c.length + c.e.c.length > 1 && (c.j == (be(), gn) ? this.b[n] = !0 : c.j == an && n > 0 && (this.b[n - 1] = !0)); }, o.f = 0, w(jl, "AllCrossingsCounter", 1838), b(583, 1, {}, dM), o.b = 0, o.d = 0, w(jl, "BinaryIndexedTree", 583), b(519, 1, {}, Ay); - var Ble, pC; - w(jl, "CrossingsCounter", 519), b(1912, 1, ct, rye), o.Le = function(n, t) { + var _le, pC; + w(jl, "CrossingsCounter", 519), b(1912, 1, ct, cye), o.Le = function(n, t) { return tgn(this.a, u(n, 12), u(t, 12)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(jl, "CrossingsCounter/lambda$0$Type", 1912), b(1913, 1, ct, cye), o.Le = function(n, t) { + }, w(jl, "CrossingsCounter/lambda$0$Type", 1912), b(1913, 1, ct, uye), o.Le = function(n, t) { return ign(this.a, u(n, 12), u(t, 12)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(jl, "CrossingsCounter/lambda$1$Type", 1913), b(1914, 1, ct, uye), o.Le = function(n, t) { + }, w(jl, "CrossingsCounter/lambda$1$Type", 1913), b(1914, 1, ct, sye), o.Le = function(n, t) { return rgn(this.a, u(n, 12), u(t, 12)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(jl, "CrossingsCounter/lambda$2$Type", 1914), b(1915, 1, ct, sye), o.Le = function(n, t) { + }, w(jl, "CrossingsCounter/lambda$2$Type", 1914), b(1915, 1, ct, oye), o.Le = function(n, t) { return cgn(this.a, u(n, 12), u(t, 12)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(jl, "CrossingsCounter/lambda$3$Type", 1915), b(1916, 1, mn, oye), o.Ad = function(n) { + }, w(jl, "CrossingsCounter/lambda$3$Type", 1915), b(1916, 1, mn, fye), o.Ad = function(n) { Vvn(this.a, u(n, 12)); - }, w(jl, "CrossingsCounter/lambda$4$Type", 1916), b(1917, 1, Vn, fye), o.Mb = function(n) { + }, w(jl, "CrossingsCounter/lambda$4$Type", 1916), b(1917, 1, Vn, hye), o.Mb = function(n) { return Han(this.a, u(n, 12)); - }, w(jl, "CrossingsCounter/lambda$5$Type", 1917), b(1918, 1, mn, hye), o.Ad = function(n) { - Xxe(this, n); - }, w(jl, "CrossingsCounter/lambda$6$Type", 1918), b(1919, 1, mn, ZAe), o.Ad = function(n) { + }, w(jl, "CrossingsCounter/lambda$5$Type", 1917), b(1918, 1, mn, lye), o.Ad = function(n) { + Kxe(this, n); + }, w(jl, "CrossingsCounter/lambda$6$Type", 1918), b(1919, 1, mn, exe), o.Ad = function(n) { var t; nv(), M1(this.b, (t = this.a, u(n, 12), t)); }, w(jl, "CrossingsCounter/lambda$7$Type", 1919), b(823, 1, Kh, rz), o.Lb = function(n) { @@ -38408,28 +38498,28 @@ function WDn() { return this === n; }, o.Mb = function(n) { return nv(), Et(u(n, 12), (te(), ds)); - }, w(jl, "CrossingsCounter/lambda$8$Type", 823), b(1911, 1, {}, lye), w(jl, "HyperedgeCrossingsCounter", 1911), b(467, 1, { 35: 1, 467: 1 }, ZMe), o.Dd = function(n) { + }, w(jl, "CrossingsCounter/lambda$8$Type", 823), b(1911, 1, {}, aye), w(jl, "HyperedgeCrossingsCounter", 1911), b(467, 1, { 35: 1, 467: 1 }, eTe), o.Dd = function(n) { return Ikn(this, u(n, 467)); }, o.b = 0, o.c = 0, o.e = 0, o.f = 0; var JLn = w(jl, "HyperedgeCrossingsCounter/Hyperedge", 467); b(370, 1, { 35: 1, 370: 1 }, d$), o.Dd = function(n) { return Exn(this, u(n, 370)); }, o.b = 0, o.c = 0; - var wrn = w(jl, "HyperedgeCrossingsCounter/HyperedgeCorner", 370); + var grn = w(jl, "HyperedgeCrossingsCounter/HyperedgeCorner", 370); b(518, 23, { 3: 1, 35: 1, 23: 1, 518: 1 }, iX); - var Uk, zk, grn = Pn(jl, "HyperedgeCrossingsCounter/HyperedgeCorner/Type", 518, Bn, tpn, Abn), prn; - b(1385, 1, lr, d9e), o.pg = function(n) { - return u(y(u(n, 37), (te(), ou)), 22).Gc((Pr(), So)) ? mrn : null; + var Uk, zk, prn = Pn(jl, "HyperedgeCrossingsCounter/HyperedgeCorner/Type", 518, _n, tpn, Abn), mrn; + b(1385, 1, lr, b9e), o.pg = function(n) { + return u(y(u(n, 37), (te(), ou)), 22).Gc((Pr(), So)) ? vrn : null; }, o.If = function(n, t) { Zyn(this, u(n, 37), t); }; - var mrn; - w(Dr, "InteractiveNodePlacer", 1385), b(1386, 1, lr, I9e), o.pg = function(n) { - return u(y(u(n, 37), (te(), ou)), 22).Gc((Pr(), So)) ? vrn : null; + var vrn; + w(Dr, "InteractiveNodePlacer", 1385), b(1386, 1, lr, C9e), o.pg = function(n) { + return u(y(u(n, 37), (te(), ou)), 22).Gc((Pr(), So)) ? krn : null; }, o.If = function(n, t) { - B8n(this, u(n, 37), t); + _8n(this, u(n, 37), t); }; - var vrn, mC, vC; + var krn, mC, vC; w(Dr, "LinearSegmentsNodePlacer", 1386), b(263, 1, { 35: 1, 263: 1 }, nW), o.Dd = function(n) { return ian(this, u(n, 263)); }, o.Fb = function(n) { @@ -38440,164 +38530,164 @@ function WDn() { }, o.Ib = function() { return "ls" + wh(this.e); }, o.a = 0, o.b = 0, o.c = -1, o.d = -1, o.g = 0; - var krn = w(Dr, "LinearSegmentsNodePlacer/LinearSegment", 263); - b(1388, 1, lr, TSe), o.pg = function(n) { - return u(y(u(n, 37), (te(), ou)), 22).Gc((Pr(), So)) ? yrn : null; + var yrn = w(Dr, "LinearSegmentsNodePlacer/LinearSegment", 263); + b(1388, 1, lr, SSe), o.pg = function(n) { + return u(y(u(n, 37), (te(), ou)), 22).Gc((Pr(), So)) ? jrn : null; }, o.If = function(n, t) { WOn(this, u(n, 37), t); }, o.b = 0, o.g = 0; - var yrn; - w(Dr, "NetworkSimplexPlacer", 1388), b(1407, 1, ct, m3e), o.Le = function(n, t) { + var jrn; + w(Dr, "NetworkSimplexPlacer", 1388), b(1407, 1, ct, v3e), o.Le = function(n, t) { return Zc(u(n, 15).a, u(t, 15).a); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Dr, "NetworkSimplexPlacer/0methodref$compare$Type", 1407), b(1409, 1, ct, v3e), o.Le = function(n, t) { + }, w(Dr, "NetworkSimplexPlacer/0methodref$compare$Type", 1407), b(1409, 1, ct, k3e), o.Le = function(n, t) { return Zc(u(n, 15).a, u(t, 15).a); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Dr, "NetworkSimplexPlacer/1methodref$compare$Type", 1409), b(644, 1, { 644: 1 }, exe); + }, w(Dr, "NetworkSimplexPlacer/1methodref$compare$Type", 1409), b(644, 1, { 644: 1 }, nxe); var GLn = w(Dr, "NetworkSimplexPlacer/EdgeRep", 644); b(405, 1, { 405: 1 }, HV), o.b = !1; var HLn = w(Dr, "NetworkSimplexPlacer/NodeRep", 405); - b(500, 13, { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 13: 1, 18: 1, 16: 1, 59: 1, 500: 1 }, lje), w(Dr, "NetworkSimplexPlacer/Path", 500), b(1389, 1, {}, k3e), o.Kb = function(n) { + b(500, 13, { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 13: 1, 18: 1, 16: 1, 59: 1, 500: 1 }, aje), w(Dr, "NetworkSimplexPlacer/Path", 500), b(1389, 1, {}, y3e), o.Kb = function(n) { return u(n, 17).d.i.k; - }, w(Dr, "NetworkSimplexPlacer/Path/lambda$0$Type", 1389), b(1390, 1, Vn, p3e), o.Mb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/Path/lambda$0$Type", 1389), b(1390, 1, Vn, m3e), o.Mb = function(n) { return u(n, 249) == (cn(), yi); - }, w(Dr, "NetworkSimplexPlacer/Path/lambda$1$Type", 1390), b(1391, 1, {}, y3e), o.Kb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/Path/lambda$1$Type", 1390), b(1391, 1, {}, j3e), o.Kb = function(n) { return u(n, 17).d.i; - }, w(Dr, "NetworkSimplexPlacer/Path/lambda$2$Type", 1391), b(1392, 1, Vn, aye), o.Mb = function(n) { - return BMe(YRe(u(n, 9))); - }, w(Dr, "NetworkSimplexPlacer/Path/lambda$3$Type", 1392), b(1393, 1, Vn, j3e), o.Mb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/Path/lambda$2$Type", 1391), b(1392, 1, Vn, dye), o.Mb = function(n) { + return BMe(ZRe(u(n, 9))); + }, w(Dr, "NetworkSimplexPlacer/Path/lambda$3$Type", 1392), b(1393, 1, Vn, E3e), o.Mb = function(n) { return Hwn(u(n, 12)); - }, w(Dr, "NetworkSimplexPlacer/lambda$0$Type", 1393), b(1394, 1, mn, nxe), o.Ad = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$0$Type", 1393), b(1394, 1, mn, txe), o.Ad = function(n) { D1n(this.a, this.b, u(n, 12)); - }, w(Dr, "NetworkSimplexPlacer/lambda$1$Type", 1394), b(1403, 1, mn, dye), o.Ad = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$1$Type", 1394), b(1403, 1, mn, bye), o.Ad = function(n) { hAn(this.a, u(n, 17)); - }, w(Dr, "NetworkSimplexPlacer/lambda$10$Type", 1403), b(1404, 1, {}, E3e), o.Kb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$10$Type", 1403), b(1404, 1, {}, A3e), o.Kb = function(n) { return Ws(), new Ge(null, new He(u(n, 25).a, 16)); - }, w(Dr, "NetworkSimplexPlacer/lambda$11$Type", 1404), b(1405, 1, mn, bye), o.Ad = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$11$Type", 1404), b(1405, 1, mn, wye), o.Ad = function(n) { qMn(this.a, u(n, 9)); - }, w(Dr, "NetworkSimplexPlacer/lambda$12$Type", 1405), b(1406, 1, {}, A3e), o.Kb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$12$Type", 1405), b(1406, 1, {}, x3e), o.Kb = function(n) { return Ws(), ie(u(n, 124).e); - }, w(Dr, "NetworkSimplexPlacer/lambda$13$Type", 1406), b(1408, 1, {}, x3e), o.Kb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$13$Type", 1406), b(1408, 1, {}, $3e), o.Kb = function(n) { return Ws(), ie(u(n, 124).e); - }, w(Dr, "NetworkSimplexPlacer/lambda$15$Type", 1408), b(1410, 1, Vn, $3e), o.Mb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$15$Type", 1408), b(1410, 1, Vn, M3e), o.Mb = function(n) { return Ws(), u(n, 405).c.k == (cn(), si); - }, w(Dr, "NetworkSimplexPlacer/lambda$17$Type", 1410), b(1411, 1, Vn, M3e), o.Mb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$17$Type", 1410), b(1411, 1, Vn, T3e), o.Mb = function(n) { return Ws(), u(n, 405).c.j.c.length > 1; - }, w(Dr, "NetworkSimplexPlacer/lambda$18$Type", 1411), b(1412, 1, mn, DIe), o.Ad = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$18$Type", 1411), b(1412, 1, mn, NIe), o.Ad = function(n) { ekn(this.c, this.b, this.d, this.a, u(n, 405)); - }, o.c = 0, o.d = 0, w(Dr, "NetworkSimplexPlacer/lambda$19$Type", 1412), b(1395, 1, {}, T3e), o.Kb = function(n) { + }, o.c = 0, o.d = 0, w(Dr, "NetworkSimplexPlacer/lambda$19$Type", 1412), b(1395, 1, {}, S3e), o.Kb = function(n) { return Ws(), new Ge(null, new He(u(n, 25).a, 16)); - }, w(Dr, "NetworkSimplexPlacer/lambda$2$Type", 1395), b(1413, 1, mn, wye), o.Ad = function(n) { - B1n(this.a, u(n, 12)); - }, o.a = 0, w(Dr, "NetworkSimplexPlacer/lambda$20$Type", 1413), b(1414, 1, {}, S3e), o.Kb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$2$Type", 1395), b(1413, 1, mn, gye), o.Ad = function(n) { + _1n(this.a, u(n, 12)); + }, o.a = 0, w(Dr, "NetworkSimplexPlacer/lambda$20$Type", 1413), b(1414, 1, {}, I3e), o.Kb = function(n) { return Ws(), new Ge(null, new He(u(n, 25).a, 16)); - }, w(Dr, "NetworkSimplexPlacer/lambda$21$Type", 1414), b(1415, 1, mn, gye), o.Ad = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$21$Type", 1414), b(1415, 1, mn, pye), o.Ad = function(n) { U1n(this.a, u(n, 9)); - }, w(Dr, "NetworkSimplexPlacer/lambda$22$Type", 1415), b(1416, 1, Vn, I3e), o.Mb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$22$Type", 1415), b(1416, 1, Vn, C3e), o.Mb = function(n) { return BMe(n); - }, w(Dr, "NetworkSimplexPlacer/lambda$23$Type", 1416), b(1417, 1, {}, C3e), o.Kb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$23$Type", 1416), b(1417, 1, {}, P3e), o.Kb = function(n) { return Ws(), new Ge(null, new He(u(n, 25).a, 16)); - }, w(Dr, "NetworkSimplexPlacer/lambda$24$Type", 1417), b(1418, 1, Vn, pye), o.Mb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$24$Type", 1417), b(1418, 1, Vn, mye), o.Mb = function(n) { return Yan(this.a, u(n, 9)); - }, w(Dr, "NetworkSimplexPlacer/lambda$25$Type", 1418), b(1419, 1, mn, txe), o.Ad = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$25$Type", 1418), b(1419, 1, mn, ixe), o.Ad = function(n) { dEn(this.a, this.b, u(n, 9)); - }, w(Dr, "NetworkSimplexPlacer/lambda$26$Type", 1419), b(1420, 1, Vn, P3e), o.Mb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$26$Type", 1419), b(1420, 1, Vn, O3e), o.Mb = function(n) { return Ws(), !hr(u(n, 17)); - }, w(Dr, "NetworkSimplexPlacer/lambda$27$Type", 1420), b(1421, 1, Vn, O3e), o.Mb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$27$Type", 1420), b(1421, 1, Vn, L3e), o.Mb = function(n) { return Ws(), !hr(u(n, 17)); - }, w(Dr, "NetworkSimplexPlacer/lambda$28$Type", 1421), b(1422, 1, {}, mye), o.Te = function(n, t) { + }, w(Dr, "NetworkSimplexPlacer/lambda$28$Type", 1421), b(1422, 1, {}, vye), o.Te = function(n, t) { return R1n(this.a, u(n, 25), u(t, 25)); - }, w(Dr, "NetworkSimplexPlacer/lambda$29$Type", 1422), b(1396, 1, {}, L3e), o.Kb = function(n) { - return Ws(), new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Q())))); - }, w(Dr, "NetworkSimplexPlacer/lambda$3$Type", 1396), b(1397, 1, Vn, D3e), o.Mb = function(n) { - return Ws(), _3n(u(n, 17)); - }, w(Dr, "NetworkSimplexPlacer/lambda$4$Type", 1397), b(1398, 1, mn, vye), o.Ad = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$29$Type", 1422), b(1396, 1, {}, D3e), o.Kb = function(n) { + return Ws(), new Ge(null, new ww(new fn(dn(Ht(u(n, 9)).a.Jc(), new Y())))); + }, w(Dr, "NetworkSimplexPlacer/lambda$3$Type", 1396), b(1397, 1, Vn, N3e), o.Mb = function(n) { + return Ws(), B3n(u(n, 17)); + }, w(Dr, "NetworkSimplexPlacer/lambda$4$Type", 1397), b(1398, 1, mn, kye), o.Ad = function(n) { ZSn(this.a, u(n, 17)); - }, w(Dr, "NetworkSimplexPlacer/lambda$5$Type", 1398), b(1399, 1, {}, N3e), o.Kb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$5$Type", 1398), b(1399, 1, {}, F3e), o.Kb = function(n) { return Ws(), new Ge(null, new He(u(n, 25).a, 16)); - }, w(Dr, "NetworkSimplexPlacer/lambda$6$Type", 1399), b(1400, 1, Vn, F3e), o.Mb = function(n) { + }, w(Dr, "NetworkSimplexPlacer/lambda$6$Type", 1399), b(1400, 1, Vn, R3e), o.Mb = function(n) { return Ws(), u(n, 9).k == (cn(), si); - }, w(Dr, "NetworkSimplexPlacer/lambda$7$Type", 1400), b(1401, 1, {}, R3e), o.Kb = function(n) { - return Ws(), new Ge(null, new ww(new fn(dn(Jh(u(n, 9)).a.Jc(), new Q())))); + }, w(Dr, "NetworkSimplexPlacer/lambda$7$Type", 1400), b(1401, 1, {}, _3e), o.Kb = function(n) { + return Ws(), new Ge(null, new ww(new fn(dn(Jh(u(n, 9)).a.Jc(), new Y())))); }, w(Dr, "NetworkSimplexPlacer/lambda$8$Type", 1401), b(1402, 1, Vn, B3e), o.Mb = function(n) { return Ws(), Jwn(u(n, 17)); - }, w(Dr, "NetworkSimplexPlacer/lambda$9$Type", 1402), b(1384, 1, lr, C9e), o.pg = function(n) { - return u(y(u(n, 37), (te(), ou)), 22).Gc((Pr(), So)) ? jrn : null; + }, w(Dr, "NetworkSimplexPlacer/lambda$9$Type", 1402), b(1384, 1, lr, P9e), o.pg = function(n) { + return u(y(u(n, 37), (te(), ou)), 22).Gc((Pr(), So)) ? Ern : null; }, o.If = function(n, t) { CIn(u(n, 37), t); }; - var jrn; + var Ern; w(Dr, "SimpleNodePlacer", 1384), b(185, 1, { 185: 1 }, C2), o.Ib = function() { var n; - return n = "", this.c == (Rh(), Nb) ? n += J3 : this.c == e1 && (n += _3), this.o == (uh(), p0) ? n += PB : this.o == Ah ? n += "UP" : n += "BALANCED", n; + return n = "", this.c == (Rh(), Nb) ? n += J3 : this.c == e1 && (n += B3), this.o == (uh(), p0) ? n += P_ : this.o == Ah ? n += "UP" : n += "BALANCED", n; }, w(K1, "BKAlignedLayout", 185), b(509, 23, { 3: 1, 35: 1, 23: 1, 509: 1 }, rX); - var e1, Nb, Ern = Pn(K1, "BKAlignedLayout/HDirection", 509, Bn, rpn, xbn), Arn; + var e1, Nb, Arn = Pn(K1, "BKAlignedLayout/HDirection", 509, _n, rpn, xbn), xrn; b(508, 23, { 3: 1, 35: 1, 23: 1, 508: 1 }, cX); - var p0, Ah, xrn = Pn(K1, "BKAlignedLayout/VDirection", 508, Bn, ipn, $bn), $rn; - b(1664, 1, {}, ixe), w(K1, "BKAligner", 1664), b(1667, 1, {}, A_e), w(K1, "BKCompactor", 1667), b(652, 1, { 652: 1 }, _3e), o.a = 0, w(K1, "BKCompactor/ClassEdge", 652), b(456, 1, { 456: 1 }, sje), o.a = null, o.b = 0, w(K1, "BKCompactor/ClassNode", 456), b(1387, 1, lr, pxe), o.pg = function(n) { - return u(y(u(n, 37), (te(), ou)), 22).Gc((Pr(), So)) ? Mrn : null; + var p0, Ah, $rn = Pn(K1, "BKAlignedLayout/VDirection", 508, _n, ipn, $bn), Mrn; + b(1664, 1, {}, rxe), w(K1, "BKAligner", 1664), b(1667, 1, {}, xBe), w(K1, "BKCompactor", 1667), b(652, 1, { 652: 1 }, J3e), o.a = 0, w(K1, "BKCompactor/ClassEdge", 652), b(456, 1, { 456: 1 }, oje), o.a = null, o.b = 0, w(K1, "BKCompactor/ClassNode", 456), b(1387, 1, lr, mxe), o.pg = function(n) { + return u(y(u(n, 37), (te(), ou)), 22).Gc((Pr(), So)) ? Trn : null; }, o.If = function(n, t) { hLn(this, u(n, 37), t); }, o.d = !1; - var Mrn; - w(K1, "BKNodePlacer", 1387), b(1665, 1, {}, J3e), o.d = 0, w(K1, "NeighborhoodInformation", 1665), b(1666, 1, ct, kye), o.Le = function(n, t) { + var Trn; + w(K1, "BKNodePlacer", 1387), b(1665, 1, {}, G3e), o.d = 0, w(K1, "NeighborhoodInformation", 1665), b(1666, 1, ct, yye), o.Le = function(n, t) { return l5n(this, u(n, 49), u(t, 49)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(K1, "NeighborhoodInformation/NeighborComparator", 1666), b(809, 1, {}), w(K1, "ThresholdStrategy", 809), b(1795, 809, {}, aje), o.vg = function(n, t, i) { + }, w(K1, "NeighborhoodInformation/NeighborComparator", 1666), b(809, 1, {}), w(K1, "ThresholdStrategy", 809), b(1795, 809, {}, dje), o.vg = function(n, t, i) { return this.a.o == (uh(), Ah) ? ii : Ri; }, o.wg = function() { - }, w(K1, "ThresholdStrategy/NullThresholdStrategy", 1795), b(576, 1, { 576: 1 }, uxe), o.c = !1, o.d = !1, w(K1, "ThresholdStrategy/Postprocessable", 576), b(1796, 809, {}, dje), o.vg = function(n, t, i) { + }, w(K1, "ThresholdStrategy/NullThresholdStrategy", 1795), b(576, 1, { 576: 1 }, sxe), o.c = !1, o.d = !1, w(K1, "ThresholdStrategy/Postprocessable", 576), b(1796, 809, {}, bje), o.vg = function(n, t, i) { var r, c, s; return c = t == i, r = this.a.a[i.p] == t, c || r ? (s = n, this.a.c == (Rh(), Nb) ? (c && (s = LR(this, t, !0)), !isNaN(s) && !isFinite(s) && r && (s = LR(this, i, !1))) : (c && (s = LR(this, t, !0)), !isNaN(s) && !isFinite(s) && r && (s = LR(this, i, !1))), s) : n; }, o.wg = function() { for (var n, t, i, r, c; this.d.b != 0; ) - c = u(kCe(this.d), 576), r = uUe(this, c), r.a && (n = r.a, i = ve(this.a.f[this.a.g[c.b.p].p]), !(!i && !hr(n) && n.c.i.c == n.d.i.c) && (t = oHe(this, c), t || d$e(this.e, c))); + c = u(yCe(this.d), 576), r = sUe(this, c), r.a && (n = r.a, i = ve(this.a.f[this.a.g[c.b.p].p]), !(!i && !hr(n) && n.c.i.c == n.d.i.c) && (t = fHe(this, c), t || b$e(this.e, c))); for (; this.e.a.c.length != 0; ) - oHe(this, u(dZ(this.e), 576)); - }, w(K1, "ThresholdStrategy/SimpleThresholdStrategy", 1796), b(635, 1, { 635: 1, 188: 1, 196: 1 }, G3e), o.bg = function() { - return tFe(this); + fHe(this, u(dZ(this.e), 576)); + }, w(K1, "ThresholdStrategy/SimpleThresholdStrategy", 1796), b(635, 1, { 635: 1, 188: 1, 196: 1 }, H3e), o.bg = function() { + return iFe(this); }, o.og = function() { - return tFe(this); + return iFe(this); }; var KH; - w(I_, "EdgeRouterFactory", 635), b(1445, 1, lr, P9e), o.pg = function(n) { + w(IB, "EdgeRouterFactory", 635), b(1445, 1, lr, O9e), o.pg = function(n) { return yMn(u(n, 37)); }, o.If = function(n, t) { - _In(u(n, 37), t); + BIn(u(n, 37), t); }; - var Trn, Srn, Irn, Crn, Prn, _le, Orn, Lrn; - w(I_, "OrthogonalEdgeRouter", 1445), b(1438, 1, lr, gxe), o.pg = function(n) { + var Srn, Irn, Crn, Prn, Orn, Ble, Lrn, Drn; + w(IB, "OrthogonalEdgeRouter", 1445), b(1438, 1, lr, pxe), o.pg = function(n) { return o7n(u(n, 37)); }, o.If = function(n, t) { fOn(this, u(n, 37), t); }; - var Drn, Nrn, Frn, Rrn, bE, Brn; - w(I_, "PolylineEdgeRouter", 1438), b(1439, 1, Kh, H3e), o.Lb = function(n) { + var Nrn, Frn, Rrn, _rn, bE, Brn; + w(IB, "PolylineEdgeRouter", 1438), b(1439, 1, Kh, q3e), o.Lb = function(n) { return qY(u(n, 9)); }, o.Fb = function(n) { return this === n; }, o.Mb = function(n) { return qY(u(n, 9)); - }, w(I_, "PolylineEdgeRouter/1", 1439), b(1851, 1, Vn, q3e), o.Mb = function(n) { + }, w(IB, "PolylineEdgeRouter/1", 1439), b(1851, 1, Vn, U3e), o.Mb = function(n) { return u(n, 133).c == (Jf(), ud); - }, w(Xf, "HyperEdgeCycleDetector/lambda$0$Type", 1851), b(1852, 1, {}, U3e), o.Xe = function(n) { + }, w(Xf, "HyperEdgeCycleDetector/lambda$0$Type", 1851), b(1852, 1, {}, z3e), o.Xe = function(n) { return u(n, 133).d; - }, w(Xf, "HyperEdgeCycleDetector/lambda$1$Type", 1852), b(1853, 1, Vn, z3e), o.Mb = function(n) { + }, w(Xf, "HyperEdgeCycleDetector/lambda$1$Type", 1852), b(1853, 1, Vn, W3e), o.Mb = function(n) { return u(n, 133).c == (Jf(), ud); - }, w(Xf, "HyperEdgeCycleDetector/lambda$2$Type", 1853), b(1854, 1, {}, W3e), o.Xe = function(n) { + }, w(Xf, "HyperEdgeCycleDetector/lambda$2$Type", 1853), b(1854, 1, {}, X3e), o.Xe = function(n) { return u(n, 133).d; - }, w(Xf, "HyperEdgeCycleDetector/lambda$3$Type", 1854), b(1855, 1, {}, X3e), o.Xe = function(n) { + }, w(Xf, "HyperEdgeCycleDetector/lambda$3$Type", 1854), b(1855, 1, {}, K3e), o.Xe = function(n) { return u(n, 133).d; - }, w(Xf, "HyperEdgeCycleDetector/lambda$4$Type", 1855), b(1856, 1, {}, K3e), o.Xe = function(n) { + }, w(Xf, "HyperEdgeCycleDetector/lambda$4$Type", 1855), b(1856, 1, {}, V3e), o.Xe = function(n) { return u(n, 133).d; }, w(Xf, "HyperEdgeCycleDetector/lambda$5$Type", 1856), b(116, 1, { 35: 1, 116: 1 }, d7), o.Dd = function(n) { return ran(this, u(n, 116)); @@ -38609,138 +38699,138 @@ function WDn() { }, o.Ib = function() { var n, t, i, r; for (n = new Us("{"), r = new x(this.n); r.a < r.c.c.length; ) - i = u(A(r), 12), t = I7(i.i), t == null && (t = "n" + vTe(i.i)), n.a += "" + t, r.a < r.c.c.length && (n.a += ","); + i = u(A(r), 12), t = I7(i.i), t == null && (t = "n" + kTe(i.i)), n.a += "" + t, r.a < r.c.c.length && (n.a += ","); return n.a += "}", n.a; }, o.a = 0, o.b = 0, o.c = NaN, o.d = 0, o.g = 0, o.i = 0, o.o = 0, o.s = NaN, w(Xf, "HyperEdgeSegment", 116), b(133, 1, { 133: 1 }, Dd), o.Ib = function() { return this.a + "->" + this.b + " (" + ydn(this.c) + ")"; }, o.d = 0, w(Xf, "HyperEdgeSegmentDependency", 133), b(515, 23, { 3: 1, 35: 1, 23: 1, 515: 1 }, uX); - var ud, jg, _rn = Pn(Xf, "HyperEdgeSegmentDependency/DependencyType", 515, Bn, cpn, Mbn), Jrn; - b(1857, 1, {}, yye), w(Xf, "HyperEdgeSegmentSplitter", 1857), b(1858, 1, {}, sEe), o.a = 0, o.b = 0, w(Xf, "HyperEdgeSegmentSplitter/AreaRating", 1858), b(340, 1, { 340: 1 }, NL), o.a = 0, o.b = 0, o.c = 0, w(Xf, "HyperEdgeSegmentSplitter/FreeArea", 340), b(1859, 1, ct, V3e), o.Le = function(n, t) { + var ud, jg, Jrn = Pn(Xf, "HyperEdgeSegmentDependency/DependencyType", 515, _n, cpn, Mbn), Grn; + b(1857, 1, {}, jye), w(Xf, "HyperEdgeSegmentSplitter", 1857), b(1858, 1, {}, oEe), o.a = 0, o.b = 0, w(Xf, "HyperEdgeSegmentSplitter/AreaRating", 1858), b(340, 1, { 340: 1 }, NL), o.a = 0, o.b = 0, o.c = 0, w(Xf, "HyperEdgeSegmentSplitter/FreeArea", 340), b(1859, 1, ct, Q3e), o.Le = function(n, t) { return d0n(u(n, 116), u(t, 116)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Xf, "HyperEdgeSegmentSplitter/lambda$0$Type", 1859), b(1860, 1, mn, NIe), o.Ad = function(n) { + }, w(Xf, "HyperEdgeSegmentSplitter/lambda$0$Type", 1859), b(1860, 1, mn, FIe), o.Ad = function(n) { Imn(this.a, this.d, this.c, this.b, u(n, 116)); - }, o.b = 0, w(Xf, "HyperEdgeSegmentSplitter/lambda$1$Type", 1860), b(1861, 1, {}, Q3e), o.Kb = function(n) { + }, o.b = 0, w(Xf, "HyperEdgeSegmentSplitter/lambda$1$Type", 1860), b(1861, 1, {}, Y3e), o.Kb = function(n) { return new Ge(null, new He(u(n, 116).e, 16)); - }, w(Xf, "HyperEdgeSegmentSplitter/lambda$2$Type", 1861), b(1862, 1, {}, Y3e), o.Kb = function(n) { + }, w(Xf, "HyperEdgeSegmentSplitter/lambda$2$Type", 1861), b(1862, 1, {}, Z3e), o.Kb = function(n) { return new Ge(null, new He(u(n, 116).j, 16)); - }, w(Xf, "HyperEdgeSegmentSplitter/lambda$3$Type", 1862), b(1863, 1, {}, Z3e), o.We = function(n) { - return _(H(n)); - }, w(Xf, "HyperEdgeSegmentSplitter/lambda$4$Type", 1863), b(653, 1, {}, sD), o.a = 0, o.b = 0, o.c = 0, w(Xf, "OrthogonalRoutingGenerator", 653), b(1668, 1, {}, eme), o.Kb = function(n) { + }, w(Xf, "HyperEdgeSegmentSplitter/lambda$3$Type", 1862), b(1863, 1, {}, eme), o.We = function(n) { + return B(H(n)); + }, w(Xf, "HyperEdgeSegmentSplitter/lambda$4$Type", 1863), b(653, 1, {}, sD), o.a = 0, o.b = 0, o.c = 0, w(Xf, "OrthogonalRoutingGenerator", 653), b(1668, 1, {}, nme), o.Kb = function(n) { return new Ge(null, new He(u(n, 116).e, 16)); - }, w(Xf, "OrthogonalRoutingGenerator/lambda$0$Type", 1668), b(1669, 1, {}, nme), o.Kb = function(n) { + }, w(Xf, "OrthogonalRoutingGenerator/lambda$0$Type", 1668), b(1669, 1, {}, tme), o.Kb = function(n) { return new Ge(null, new He(u(n, 116).j, 16)); - }, w(Xf, "OrthogonalRoutingGenerator/lambda$1$Type", 1669), b(661, 1, {}), w(C_, "BaseRoutingDirectionStrategy", 661), b(1849, 661, {}, bje), o.xg = function(n, t, i) { + }, w(Xf, "OrthogonalRoutingGenerator/lambda$1$Type", 1669), b(661, 1, {}), w(CB, "BaseRoutingDirectionStrategy", 661), b(1849, 661, {}, wje), o.xg = function(n, t, i) { var r, c, s, f, h, l, a, d, g, p, v, j, E; if (!(n.r && !n.q)) for (d = t + n.o * i, a = new x(n.n); a.a < a.c.c.length; ) - for (l = u(A(a), 12), g = bc(I(T(Ji, 1), oe, 8, 0, [l.i.n, l.n, l.a])).a, h = new x(l.g); h.a < h.c.c.length; ) - f = u(A(h), 17), hr(f) || (j = f.d, E = bc(I(T(Ji, 1), oe, 8, 0, [j.i.n, j.n, j.a])).a, m.Math.abs(g - E) > Vh && (s = d, c = n, r = new ue(g, s), rt(f.a, r), lb(this, f, c, r, !1), p = n.r, p && (v = _(H(qc(p.e, 0))), r = new ue(v, s), rt(f.a, r), lb(this, f, c, r, !1), s = t + p.o * i, c = p, r = new ue(v, s), rt(f.a, r), lb(this, f, c, r, !1)), r = new ue(E, s), rt(f.a, r), lb(this, f, c, r, !1))); + for (l = u(A(a), 12), g = bc(I(S(Ji, 1), fe, 8, 0, [l.i.n, l.n, l.a])).a, h = new x(l.g); h.a < h.c.c.length; ) + f = u(A(h), 17), hr(f) || (j = f.d, E = bc(I(S(Ji, 1), fe, 8, 0, [j.i.n, j.n, j.a])).a, m.Math.abs(g - E) > Vh && (s = d, c = n, r = new ue(g, s), rt(f.a, r), lb(this, f, c, r, !1), p = n.r, p && (v = B(H(qc(p.e, 0))), r = new ue(v, s), rt(f.a, r), lb(this, f, c, r, !1), s = t + p.o * i, c = p, r = new ue(v, s), rt(f.a, r), lb(this, f, c, r, !1)), r = new ue(E, s), rt(f.a, r), lb(this, f, c, r, !1))); }, o.yg = function(n) { return n.i.n.a + n.n.a + n.a.a; }, o.zg = function() { return be(), Mn; }, o.Ag = function() { return be(), ln; - }, w(C_, "NorthToSouthRoutingStrategy", 1849), b(1850, 661, {}, wje), o.xg = function(n, t, i) { + }, w(CB, "NorthToSouthRoutingStrategy", 1849), b(1850, 661, {}, gje), o.xg = function(n, t, i) { var r, c, s, f, h, l, a, d, g, p, v, j, E; if (!(n.r && !n.q)) for (d = t - n.o * i, a = new x(n.n); a.a < a.c.c.length; ) - for (l = u(A(a), 12), g = bc(I(T(Ji, 1), oe, 8, 0, [l.i.n, l.n, l.a])).a, h = new x(l.g); h.a < h.c.c.length; ) - f = u(A(h), 17), hr(f) || (j = f.d, E = bc(I(T(Ji, 1), oe, 8, 0, [j.i.n, j.n, j.a])).a, m.Math.abs(g - E) > Vh && (s = d, c = n, r = new ue(g, s), rt(f.a, r), lb(this, f, c, r, !1), p = n.r, p && (v = _(H(qc(p.e, 0))), r = new ue(v, s), rt(f.a, r), lb(this, f, c, r, !1), s = t - p.o * i, c = p, r = new ue(v, s), rt(f.a, r), lb(this, f, c, r, !1)), r = new ue(E, s), rt(f.a, r), lb(this, f, c, r, !1))); + for (l = u(A(a), 12), g = bc(I(S(Ji, 1), fe, 8, 0, [l.i.n, l.n, l.a])).a, h = new x(l.g); h.a < h.c.c.length; ) + f = u(A(h), 17), hr(f) || (j = f.d, E = bc(I(S(Ji, 1), fe, 8, 0, [j.i.n, j.n, j.a])).a, m.Math.abs(g - E) > Vh && (s = d, c = n, r = new ue(g, s), rt(f.a, r), lb(this, f, c, r, !1), p = n.r, p && (v = B(H(qc(p.e, 0))), r = new ue(v, s), rt(f.a, r), lb(this, f, c, r, !1), s = t - p.o * i, c = p, r = new ue(v, s), rt(f.a, r), lb(this, f, c, r, !1)), r = new ue(E, s), rt(f.a, r), lb(this, f, c, r, !1))); }, o.yg = function(n) { return n.i.n.a + n.n.a + n.a.a; }, o.zg = function() { return be(), ln; }, o.Ag = function() { return be(), Mn; - }, w(C_, "SouthToNorthRoutingStrategy", 1850), b(1848, 661, {}, gje), o.xg = function(n, t, i) { + }, w(CB, "SouthToNorthRoutingStrategy", 1850), b(1848, 661, {}, pje), o.xg = function(n, t, i) { var r, c, s, f, h, l, a, d, g, p, v, j, E; if (!(n.r && !n.q)) for (d = t + n.o * i, a = new x(n.n); a.a < a.c.c.length; ) - for (l = u(A(a), 12), g = bc(I(T(Ji, 1), oe, 8, 0, [l.i.n, l.n, l.a])).b, h = new x(l.g); h.a < h.c.c.length; ) - f = u(A(h), 17), hr(f) || (j = f.d, E = bc(I(T(Ji, 1), oe, 8, 0, [j.i.n, j.n, j.a])).b, m.Math.abs(g - E) > Vh && (s = d, c = n, r = new ue(s, g), rt(f.a, r), lb(this, f, c, r, !0), p = n.r, p && (v = _(H(qc(p.e, 0))), r = new ue(s, v), rt(f.a, r), lb(this, f, c, r, !0), s = t + p.o * i, c = p, r = new ue(s, v), rt(f.a, r), lb(this, f, c, r, !0)), r = new ue(s, E), rt(f.a, r), lb(this, f, c, r, !0))); + for (l = u(A(a), 12), g = bc(I(S(Ji, 1), fe, 8, 0, [l.i.n, l.n, l.a])).b, h = new x(l.g); h.a < h.c.c.length; ) + f = u(A(h), 17), hr(f) || (j = f.d, E = bc(I(S(Ji, 1), fe, 8, 0, [j.i.n, j.n, j.a])).b, m.Math.abs(g - E) > Vh && (s = d, c = n, r = new ue(s, g), rt(f.a, r), lb(this, f, c, r, !0), p = n.r, p && (v = B(H(qc(p.e, 0))), r = new ue(s, v), rt(f.a, r), lb(this, f, c, r, !0), s = t + p.o * i, c = p, r = new ue(s, v), rt(f.a, r), lb(this, f, c, r, !0)), r = new ue(s, E), rt(f.a, r), lb(this, f, c, r, !0))); }, o.yg = function(n) { return n.i.n.b + n.n.b + n.a.b; }, o.zg = function() { return be(), gn; }, o.Ag = function() { return be(), an; - }, w(C_, "WestToEastRoutingStrategy", 1848), b(812, 1, {}, Xte), o.Ib = function() { + }, w(CB, "WestToEastRoutingStrategy", 1848), b(812, 1, {}, Xte), o.Ib = function() { return wh(this.a); - }, o.b = 0, o.c = !1, o.d = !1, o.f = 0, w(Yw, "NubSpline", 812), b(410, 1, { 410: 1 }, HHe, mCe), w(Yw, "NubSpline/PolarCP", 410), b(1440, 1, lr, b_e), o.pg = function(n) { + }, o.b = 0, o.c = !1, o.d = !1, o.f = 0, w(Yw, "NubSpline", 812), b(410, 1, { 410: 1 }, qHe, vCe), w(Yw, "NubSpline/PolarCP", 410), b(1440, 1, lr, wBe), o.pg = function(n) { return K7n(u(n, 37)); }, o.If = function(n, t) { SOn(this, u(n, 37), t); }; - var Grn, Hrn, qrn, Urn, zrn; + var Hrn, qrn, Urn, zrn, Wrn; w(Yw, "SplineEdgeRouter", 1440), b(273, 1, { 273: 1 }, R$), o.Ib = function() { return this.a + " ->(" + this.c + ") " + this.b; }, o.c = 0, w(Yw, "SplineEdgeRouter/Dependency", 273), b(454, 23, { 3: 1, 35: 1, 23: 1, 454: 1 }, sX); - var sd, hp, Wrn = Pn(Yw, "SplineEdgeRouter/SideToProcess", 454, Bn, upn, Tbn), Xrn; - b(1441, 1, Vn, tme), o.Mb = function(n) { + var sd, hp, Xrn = Pn(Yw, "SplineEdgeRouter/SideToProcess", 454, _n, upn, Tbn), Krn; + b(1441, 1, Vn, ime), o.Mb = function(n) { return k9(), !u(n, 132).o; - }, w(Yw, "SplineEdgeRouter/lambda$0$Type", 1441), b(1442, 1, {}, ime), o.Xe = function(n) { + }, w(Yw, "SplineEdgeRouter/lambda$0$Type", 1441), b(1442, 1, {}, rme), o.Xe = function(n) { return k9(), u(n, 132).v + 1; - }, w(Yw, "SplineEdgeRouter/lambda$1$Type", 1442), b(1443, 1, mn, rxe), o.Ad = function(n) { + }, w(Yw, "SplineEdgeRouter/lambda$1$Type", 1442), b(1443, 1, mn, cxe), o.Ad = function(n) { zwn(this.a, this.b, u(n, 49)); - }, w(Yw, "SplineEdgeRouter/lambda$2$Type", 1443), b(1444, 1, mn, cxe), o.Ad = function(n) { + }, w(Yw, "SplineEdgeRouter/lambda$2$Type", 1443), b(1444, 1, mn, uxe), o.Ad = function(n) { Wwn(this.a, this.b, u(n, 49)); - }, w(Yw, "SplineEdgeRouter/lambda$3$Type", 1444), b(132, 1, { 35: 1, 132: 1 }, QJe, eie), o.Dd = function(n) { + }, w(Yw, "SplineEdgeRouter/lambda$3$Type", 1444), b(132, 1, { 35: 1, 132: 1 }, YJe, eie), o.Dd = function(n) { return can(this, u(n, 132)); - }, 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, w(Yw, "SplineSegment", 132), b(457, 1, { 457: 1 }, rme), o.a = 0, o.b = !1, o.c = !1, o.d = !1, o.e = !1, o.f = 0, w(Yw, "SplineSegment/EdgeInformation", 457), b(1167, 1, {}, cme), w(oa, _ie, 1167), b(1168, 1, ct, ume), o.Le = function(n, t) { + }, 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, w(Yw, "SplineSegment", 132), b(457, 1, { 457: 1 }, cme), o.a = 0, o.b = !1, o.c = !1, o.d = !1, o.e = !1, o.f = 0, w(Yw, "SplineSegment/EdgeInformation", 457), b(1167, 1, {}, ume), w(oa, Bie, 1167), b(1168, 1, ct, sme), o.Le = function(n, t) { return EAn(u(n, 120), u(t, 120)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(oa, WWe, 1168), b(1166, 1, {}, TEe), w(oa, "MrTree", 1166), b(398, 23, { 3: 1, 35: 1, 23: 1, 398: 1, 188: 1, 196: 1 }, ix), o.bg = function() { - return kGe(this); + }, w(oa, XWe, 1168), b(1166, 1, {}, SEe), w(oa, "MrTree", 1166), b(398, 23, { 3: 1, 35: 1, 23: 1, 398: 1, 188: 1, 196: 1 }, ix), o.bg = function() { + return yGe(this); }, o.og = function() { - return kGe(this); + return yGe(this); }; - var kC, Wk, Xk, Kk, Jle = Pn(oa, "TreeLayoutPhases", 398, Bn, omn, Sbn), Krn; - b(1082, 214, gb, nTe), o.kf = function(n, t) { + var kC, Wk, Xk, Kk, Jle = Pn(oa, "TreeLayoutPhases", 398, _n, omn, Sbn), Vrn; + b(1082, 214, gb, tTe), o.kf = function(n, t) { var i, r, c, s, f, h, l, a; - for (ve(me(re(n, (Ac(), aae)))) || Ry((i = new S4((xd(), new b1(n))), i)), f = t.dh(L_), f.Tg("build tGraph", 1), h = (l = new zy(), Pc(l, n), K(l, (Bt(), Qk), n), a = new Tn(), cSn(n, l, a), jSn(n, l, a), l), f.Ug(), f = t.dh(L_), f.Tg("Split graph", 1), s = lSn(this.a, h), f.Ug(), c = new x(s); c.a < c.c.c.length; ) + for (ve(me(re(n, (Ac(), aae)))) || Ry((i = new S4((xd(), new b1(n))), i)), f = t.dh(LB), f.Tg("build tGraph", 1), h = (l = new zy(), Pc(l, n), K(l, (_t(), Qk), n), a = new Tn(), cSn(n, l, a), jSn(n, l, a), l), f.Ug(), f = t.dh(LB), f.Tg("Split graph", 1), s = lSn(this.a, h), f.Ug(), c = new x(s); c.a < c.c.c.length; ) r = u(A(c), 120), F7n(this.b, r, t.dh(0.5999999940395355 / s.c.length)); - f = t.dh(L_), f.Tg("Pack components", 1), h = lLn(s), f.Ug(), f = t.dh(L_), f.Tg("Apply layout results", 1), QCn(h), f.Ug(); - }, w(oa, "TreeLayoutProvider", 1082), b(1812, 1, ml, sme), o.Ic = function(n) { + f = t.dh(LB), f.Tg("Pack components", 1), h = lLn(s), f.Ug(), f = t.dh(LB), f.Tg("Apply layout results", 1), QCn(h), f.Ug(); + }, w(oa, "TreeLayoutProvider", 1082), b(1812, 1, ml, ome), o.Ic = function(n) { fr(this, n); }, o.Jc = function() { return ze(), zm(), G5; - }, w(oa, "TreeUtil/1", 1812), b(1813, 1, ml, ome), o.Ic = function(n) { + }, w(oa, "TreeUtil/1", 1812), b(1813, 1, ml, fme), o.Ic = function(n) { fr(this, n); }, o.Jc = function() { return ze(), zm(), G5; - }, w(oa, "TreeUtil/2", 1813), b(1803, 1, Vn, fme), o.Mb = function(n) { - return ve(me(y(u(n, 40), (Bt(), od)))); - }, w(oa, "TreeUtil/lambda$0$Type", 1803), b(1809, 1, Vn, jye), o.Mb = function(n) { + }, w(oa, "TreeUtil/2", 1813), b(1803, 1, Vn, hme), o.Mb = function(n) { + return ve(me(y(u(n, 40), (_t(), od)))); + }, w(oa, "TreeUtil/lambda$0$Type", 1803), b(1809, 1, Vn, Eye), o.Mb = function(n) { return this.a.Gc(u(n, 40)); - }, w(oa, "TreeUtil/lambda$10$Type", 1809), b(1810, 1, {}, Eye), o.Kb = function(n) { + }, w(oa, "TreeUtil/lambda$10$Type", 1809), b(1810, 1, {}, Aye), o.Kb = function(n) { return fmn(this.a, u(n, 40)); - }, w(oa, "TreeUtil/lambda$11$Type", 1810), b(1811, 1, Vn, sxe), o.Mb = function(n) { + }, w(oa, "TreeUtil/lambda$11$Type", 1810), b(1811, 1, Vn, oxe), o.Mb = function(n) { return c5n(this.a, this.b, u(n, 40)); - }, w(oa, "TreeUtil/lambda$12$Type", 1811), b(1804, 1, Vn, Aye), o.Mb = function(n) { + }, w(oa, "TreeUtil/lambda$12$Type", 1811), b(1804, 1, Vn, xye), o.Mb = function(n) { return G9n(this.a, u(n, 65)); - }, w(oa, "TreeUtil/lambda$3$Type", 1804), b(1805, 1, ct, hme), o.Le = function(n, t) { + }, w(oa, "TreeUtil/lambda$3$Type", 1804), b(1805, 1, ct, lme), o.Le = function(n, t) { return b0n(u(n, 65), u(t, 65)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(oa, "TreeUtil/lambda$4$Type", 1805), b(1806, 1, Vn, xye), o.Mb = function(n) { + }, w(oa, "TreeUtil/lambda$4$Type", 1805), b(1806, 1, Vn, $ye), o.Mb = function(n) { return H9n(this.a, u(n, 65)); - }, w(oa, "TreeUtil/lambda$7$Type", 1806), b(1807, 1, ct, lme), o.Le = function(n, t) { + }, w(oa, "TreeUtil/lambda$7$Type", 1806), b(1807, 1, ct, ame), o.Le = function(n, t) { return w0n(u(n, 65), u(t, 65)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(oa, "TreeUtil/lambda$8$Type", 1807), b(1808, 1, {}, ame), o.Kb = function(n) { + }, w(oa, "TreeUtil/lambda$8$Type", 1807), b(1808, 1, {}, dme), o.Kb = function(n) { return u(n, 65).b; }, w(oa, "TreeUtil/lambda$9$Type", 1808), b(494, 150, { 3: 1, 494: 1, 105: 1, 150: 1 }), o.g = 0, w(W9, "TGraphElement", 494), b(65, 494, { 3: 1, 65: 1, 494: 1, 105: 1, 150: 1 }, WV), o.Ib = function() { return this.b && this.c ? Fd(this.b) + "->" + Fd(this.c) : "e_" + Gt(this); @@ -38755,11 +38845,11 @@ function WDn() { return c; }; var qLn = w(W9, "TGraph", 120); - b(633, 494, { 3: 1, 494: 1, 633: 1, 105: 1, 150: 1 }), w(W9, "TShape", 633), b(40, 633, { 3: 1, 494: 1, 40: 1, 633: 1, 105: 1, 150: 1 }, _N), o.Ib = function() { + b(633, 494, { 3: 1, 494: 1, 633: 1, 105: 1, 150: 1 }), w(W9, "TShape", 633), b(40, 633, { 3: 1, 494: 1, 40: 1, 633: 1, 105: 1, 150: 1 }, BN), o.Ib = function() { return Fd(this); }; var yC = w(W9, "TNode", 40); - b(236, 1, ml, Bl), o.Ic = function(n) { + b(236, 1, ml, _l), o.Ic = function(n) { fr(this, n); }, o.Jc = function() { var n; @@ -38772,282 +38862,282 @@ function WDn() { return U8(this.a); }, o.Qb = function() { bN(this.a); - }, w(W9, "TNode/2/1", 334), b(1893, 1, Ft, dme), o.If = function(n, t) { + }, w(W9, "TNode/2/1", 334), b(1893, 1, Ft, bme), o.If = function(n, t) { cLn(this, u(n, 120), t); - }, w(uu, "CompactionProcessor", 1893), b(1894, 1, ct, $ye), o.Le = function(n, t) { + }, w(uu, "CompactionProcessor", 1893), b(1894, 1, ct, Mye), o.Le = function(n, t) { return C4n(this.a, u(n, 40), u(t, 40)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(uu, "CompactionProcessor/lambda$0$Type", 1894), b(1895, 1, Vn, oxe), o.Mb = function(n) { + }, w(uu, "CompactionProcessor/lambda$0$Type", 1894), b(1895, 1, Vn, fxe), o.Mb = function(n) { return W2n(this.b, this.a, u(n, 49)); - }, o.a = 0, o.b = 0, w(uu, "CompactionProcessor/lambda$1$Type", 1895), b(1904, 1, ct, bme), o.Le = function(n, t) { - return _gn(u(n, 40), u(t, 40)); + }, o.a = 0, o.b = 0, w(uu, "CompactionProcessor/lambda$1$Type", 1895), b(1904, 1, ct, wme), o.Le = function(n, t) { + return Bgn(u(n, 40), u(t, 40)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(uu, "CompactionProcessor/lambda$10$Type", 1904), b(1905, 1, ct, wme), o.Le = function(n, t) { + }, w(uu, "CompactionProcessor/lambda$10$Type", 1904), b(1905, 1, ct, gme), o.Le = function(n, t) { return fdn(u(n, 40), u(t, 40)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(uu, "CompactionProcessor/lambda$11$Type", 1905), b(1906, 1, ct, gme), o.Le = function(n, t) { + }, w(uu, "CompactionProcessor/lambda$11$Type", 1905), b(1906, 1, ct, pme), o.Le = function(n, t) { return Jgn(u(n, 40), u(t, 40)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(uu, "CompactionProcessor/lambda$12$Type", 1906), b(1896, 1, Vn, Mye), o.Mb = function(n) { + }, w(uu, "CompactionProcessor/lambda$12$Type", 1906), b(1896, 1, Vn, Tye), o.Mb = function(n) { return K1n(this.a, u(n, 49)); - }, o.a = 0, w(uu, "CompactionProcessor/lambda$2$Type", 1896), b(1897, 1, Vn, Tye), o.Mb = function(n) { + }, o.a = 0, w(uu, "CompactionProcessor/lambda$2$Type", 1896), b(1897, 1, Vn, Sye), o.Mb = function(n) { return V1n(this.a, u(n, 49)); - }, o.a = 0, w(uu, "CompactionProcessor/lambda$3$Type", 1897), b(1898, 1, Vn, pme), o.Mb = function(n) { + }, o.a = 0, w(uu, "CompactionProcessor/lambda$3$Type", 1897), b(1898, 1, Vn, mme), o.Mb = function(n) { return u(n, 40).c.indexOf(vS) == -1; - }, w(uu, "CompactionProcessor/lambda$4$Type", 1898), b(1899, 1, {}, Sye), o.Kb = function(n) { + }, w(uu, "CompactionProcessor/lambda$4$Type", 1898), b(1899, 1, {}, Iye), o.Kb = function(n) { return R3n(this.a, u(n, 40)); - }, o.a = 0, w(uu, "CompactionProcessor/lambda$5$Type", 1899), b(z1, 1, {}, Iye), o.Kb = function(n) { + }, o.a = 0, w(uu, "CompactionProcessor/lambda$5$Type", 1899), b(z1, 1, {}, Cye), o.Kb = function(n) { return Yvn(this.a, u(n, 40)); - }, o.a = 0, w(uu, "CompactionProcessor/lambda$6$Type", z1), b(1901, 1, ct, Cye), o.Le = function(n, t) { + }, o.a = 0, w(uu, "CompactionProcessor/lambda$6$Type", z1), b(1901, 1, ct, Pye), o.Le = function(n, t) { return uvn(this.a, u(n, 240), u(t, 240)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(uu, "CompactionProcessor/lambda$7$Type", 1901), b(1902, 1, ct, Pye), o.Le = function(n, t) { + }, w(uu, "CompactionProcessor/lambda$7$Type", 1901), b(1902, 1, ct, Oye), o.Le = function(n, t) { return svn(this.a, u(n, 40), u(t, 40)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(uu, "CompactionProcessor/lambda$8$Type", 1902), b(1903, 1, ct, mme), o.Le = function(n, t) { + }, w(uu, "CompactionProcessor/lambda$8$Type", 1902), b(1903, 1, ct, vme), o.Le = function(n, t) { return hdn(u(n, 40), u(t, 40)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(uu, "CompactionProcessor/lambda$9$Type", 1903), b(1891, 1, Ft, vme), o.If = function(n, t) { + }, w(uu, "CompactionProcessor/lambda$9$Type", 1903), b(1891, 1, Ft, kme), o.If = function(n, t) { nTn(u(n, 120), t); - }, w(uu, "DirectionProcessor", 1891), b(1883, 1, Ft, tTe), o.If = function(n, t) { + }, w(uu, "DirectionProcessor", 1891), b(1883, 1, Ft, iTe), o.If = function(n, t) { ySn(this, u(n, 120), t); - }, w(uu, "FanProcessor", 1883), b(1251, 1, Ft, kme), o.If = function(n, t) { - fqe(u(n, 120), t); - }, w(uu, "GraphBoundsProcessor", 1251), b(1252, 1, {}, yme), o.We = function(n) { + }, w(uu, "FanProcessor", 1883), b(1251, 1, Ft, yme), o.If = function(n, t) { + hqe(u(n, 120), t); + }, w(uu, "GraphBoundsProcessor", 1251), b(1252, 1, {}, jme), o.We = function(n) { return u(n, 40).e.a; - }, w(uu, "GraphBoundsProcessor/lambda$0$Type", 1252), b(1253, 1, {}, jme), o.We = function(n) { + }, w(uu, "GraphBoundsProcessor/lambda$0$Type", 1252), b(1253, 1, {}, Eme), o.We = function(n) { return u(n, 40).e.b; - }, w(uu, "GraphBoundsProcessor/lambda$1$Type", 1253), b(1254, 1, {}, Eme), o.We = function(n) { + }, w(uu, "GraphBoundsProcessor/lambda$1$Type", 1253), b(1254, 1, {}, Ame), o.We = function(n) { return Can(u(n, 40)); - }, w(uu, "GraphBoundsProcessor/lambda$2$Type", 1254), b(1255, 1, {}, Ame), o.We = function(n) { + }, w(uu, "GraphBoundsProcessor/lambda$2$Type", 1254), b(1255, 1, {}, xme), o.We = function(n) { return Pan(u(n, 40)); }, w(uu, "GraphBoundsProcessor/lambda$3$Type", 1255), b(264, 23, { 3: 1, 35: 1, 23: 1, 264: 1, 196: 1 }, L0), o.bg = function() { switch (this.g) { case 0: - return new Ije(); + return new Cje(); case 1: - return new tTe(); + return new iTe(); case 2: - return new Sje(); + return new Ije(); case 3: - return new Sme(); + return new Ime(); case 4: - return new $me(); + return new Mme(); case 8: - return new xme(); + return new $me(); case 5: - return new vme(); + return new kme(); case 6: - return new Cme(); + return new Pme(); case 7: - return new dme(); + return new bme(); case 9: - return new kme(); + return new yme(); case 10: - return new Pme(); + return new Ome(); default: - throw $(new on(_B + (this.f != null ? this.f : "" + this.g))); + throw $(new on(B_ + (this.f != null ? this.f : "" + this.g))); } }; - var Gle, Hle, qle, Ule, zle, Wle, Xle, Kle, Vle, Qle, VH, ULn = Pn(uu, JB, 264, Bn, nFe, Ibn), Vrn; - b(1890, 1, Ft, xme), o.If = function(n, t) { + var Gle, Hle, qle, Ule, zle, Wle, Xle, Kle, Vle, Qle, VH, ULn = Pn(uu, J_, 264, _n, tFe, Ibn), Qrn; + b(1890, 1, Ft, $me), o.If = function(n, t) { iOn(u(n, 120), t); - }, w(uu, "LevelCoordinatesProcessor", 1890), b(1888, 1, Ft, $me), o.If = function(n, t) { + }, w(uu, "LevelCoordinatesProcessor", 1890), b(1888, 1, Ft, Mme), o.If = function(n, t) { x$n(this, u(n, 120), t); - }, o.a = 0, w(uu, "LevelHeightProcessor", 1888), b(1889, 1, ml, Mme), o.Ic = function(n) { + }, o.a = 0, w(uu, "LevelHeightProcessor", 1888), b(1889, 1, ml, Tme), o.Ic = function(n) { fr(this, n); }, o.Jc = function() { return ze(), zm(), G5; - }, w(uu, "LevelHeightProcessor/1", 1889), b(1884, 1, Ft, Sje), o.If = function(n, t) { + }, w(uu, "LevelHeightProcessor/1", 1889), b(1884, 1, Ft, Ije), o.If = function(n, t) { RMn(this, u(n, 120), t); - }, w(uu, "LevelProcessor", 1884), b(1885, 1, Vn, Tme), o.Mb = function(n) { - return ve(me(y(u(n, 40), (Bt(), od)))); - }, w(uu, "LevelProcessor/lambda$0$Type", 1885), b(1886, 1, Ft, Sme), o.If = function(n, t) { + }, w(uu, "LevelProcessor", 1884), b(1885, 1, Vn, Sme), o.Mb = function(n) { + return ve(me(y(u(n, 40), (_t(), od)))); + }, w(uu, "LevelProcessor/lambda$0$Type", 1885), b(1886, 1, Ft, Ime), o.If = function(n, t) { OEn(this, u(n, 120), t); - }, o.a = 0, w(uu, "NeighborsProcessor", 1886), b(1887, 1, ml, Ime), o.Ic = function(n) { + }, o.a = 0, w(uu, "NeighborsProcessor", 1886), b(1887, 1, ml, Cme), o.Ic = function(n) { fr(this, n); }, o.Jc = function() { return ze(), zm(), G5; - }, w(uu, "NeighborsProcessor/1", 1887), b(1892, 1, Ft, Cme), o.If = function(n, t) { + }, w(uu, "NeighborsProcessor/1", 1887), b(1892, 1, Ft, Pme), o.If = function(n, t) { vSn(this, u(n, 120), t); - }, o.a = 0, w(uu, "NodePositionProcessor", 1892), b(1882, 1, Ft, Ije), o.If = function(n, t) { + }, o.a = 0, w(uu, "NodePositionProcessor", 1892), b(1882, 1, Ft, Cje), o.If = function(n, t) { rCn(this, u(n, 120), t); - }, w(uu, "RootProcessor", 1882), b(1907, 1, Ft, Pme), o.If = function(n, t) { + }, w(uu, "RootProcessor", 1882), b(1907, 1, Ft, Ome), o.If = function(n, t) { y8n(u(n, 120), t); }, w(uu, "Untreeifyer", 1907), b(385, 23, { 3: 1, 35: 1, 23: 1, 385: 1 }, WO); - var wE, QH, Yle, Zle = Pn(Ij, "EdgeRoutingMode", 385, Bn, t3n, Cbn), Qrn, gE, f4, YH, eae, nae, ZH, eq, tae, nq, iae, tq, Vk, iq, jC, EC, Tf, Yf, h4, Qk, Yk, n1, rae, Yrn, rq, od, pE, mE; - b(846, 1, vh, $9e), o.tf = function(n) { - Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), $ce), ""), HXe), "Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"), (en(), !1)), (Vd(), Pi)), ui), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Mce), ""), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Tce), ""), "Tree Level"), "The index for the tree level the node is in"), ie(0)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Sce), ""), HXe), "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"), ie(-1)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Ice), ""), "Weighting of Nodes"), "Which weighting to use when computing a node order."), sae), Vt), vae), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Cce), ""), "Edge Routing Mode"), "Chooses an Edge Routing algorithm."), cae), Vt), Zle), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Pce), ""), "Search Order"), "Which search order to use when computing a spanning tree."), uae), Vt), yae), Pe(Xe)))), Oze((new O9e(), n)); + var wE, QH, Yle, Zle = Pn(Ij, "EdgeRoutingMode", 385, _n, t3n, Cbn), Yrn, gE, f4, YH, eae, nae, ZH, eq, tae, nq, iae, tq, Vk, iq, jC, EC, Tf, Yf, h4, Qk, Yk, n1, rae, Zrn, rq, od, pE, mE; + b(846, 1, vh, M9e), o.tf = function(n) { + Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), $ce), ""), qXe), "Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"), (en(), !1)), (Vd(), Pi)), ui), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Mce), ""), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Tce), ""), "Tree Level"), "The index for the tree level the node is in"), ie(0)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Sce), ""), qXe), "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"), ie(-1)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Ice), ""), "Weighting of Nodes"), "Which weighting to use when computing a node order."), sae), Vt), vae), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Cce), ""), "Edge Routing Mode"), "Chooses an Edge Routing algorithm."), cae), Vt), Zle), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Pce), ""), "Search Order"), "Which search order to use when computing a spanning tree."), uae), Vt), yae), Pe(Xe)))), Lze((new L9e(), n)); }; - var Zrn, ecn, ncn, cae, tcn, icn, uae, rcn, ccn, sae; - w(Ij, "MrTreeMetaDataProvider", 846), b(990, 1, vh, O9e), o.tf = function(n) { - Oze(n); + var ecn, ncn, tcn, cae, icn, rcn, uae, ccn, ucn, sae; + w(Ij, "MrTreeMetaDataProvider", 846), b(990, 1, vh, L9e), o.tf = function(n) { + Lze(n); }; - var ucn, oae, fae, Fb, hae, lae, cq, scn, ocn, fcn, hcn, lcn, acn, dcn, aae, dae, bae, bcn, lp, AC, wae, wcn, gae, uq, gcn, pcn, mcn, pae, vcn, rl, mae; - w(Ij, "MrTreeOptions", 990), b(991, 1, {}, Ome), o.uf = function() { + var scn, oae, fae, Fb, hae, lae, cq, ocn, fcn, hcn, lcn, acn, dcn, bcn, aae, dae, bae, wcn, lp, AC, wae, gcn, gae, uq, pcn, mcn, vcn, pae, kcn, rl, mae; + w(Ij, "MrTreeOptions", 990), b(991, 1, {}, Lme), o.uf = function() { var n; - return n = new nTe(), n; + return n = new tTe(), n; }, o.vf = function(n) { }, w(Ij, "MrTreeOptions/MrtreeFactory", 991), b(353, 23, { 3: 1, 35: 1, 23: 1, 353: 1 }, rx); - var sq, xC, oq, fq, vae = Pn(Ij, "OrderWeighting", 353, Bn, amn, Pbn), kcn; + var sq, xC, oq, fq, vae = Pn(Ij, "OrderWeighting", 353, _n, amn, Pbn), ycn; b(425, 23, { 3: 1, 35: 1, 23: 1, 425: 1 }, oX); - var kae, hq, yae = Pn(Ij, "TreeifyingOrder", 425, Bn, spn, Obn), ycn; - b(1446, 1, lr, j9e), o.pg = function(n) { - return u(n, 120), jcn; + var kae, hq, yae = Pn(Ij, "TreeifyingOrder", 425, _n, spn, Obn), jcn; + b(1446, 1, lr, E9e), o.pg = function(n) { + return u(n, 120), Ecn; }, o.If = function(n, t) { s4n(this, u(n, 120), t); }; - var jcn; - w("org.eclipse.elk.alg.mrtree.p1treeify", "DFSTreeifyer", 1446), b(1447, 1, lr, E9e), o.pg = function(n) { - return u(n, 120), Ecn; + var Ecn; + w("org.eclipse.elk.alg.mrtree.p1treeify", "DFSTreeifyer", 1446), b(1447, 1, lr, A9e), o.pg = function(n) { + return u(n, 120), Acn; }, o.If = function(n, t) { GMn(this, u(n, 120), t); }; - var Ecn; + var Acn; w($5, "NodeOrderer", 1447), b(1454, 1, {}, mhn), o.rd = function(n) { - return rSe(n); - }, w($5, "NodeOrderer/0methodref$lambda$6$Type", 1454), b(1448, 1, Vn, qme), o.Mb = function(n) { - return w3(), ve(me(y(u(n, 40), (Bt(), od)))); - }, w($5, "NodeOrderer/lambda$0$Type", 1448), b(1449, 1, Vn, Ume), o.Mb = function(n) { + return cSe(n); + }, w($5, "NodeOrderer/0methodref$lambda$6$Type", 1454), b(1448, 1, Vn, Ume), o.Mb = function(n) { + return w3(), ve(me(y(u(n, 40), (_t(), od)))); + }, w($5, "NodeOrderer/lambda$0$Type", 1448), b(1449, 1, Vn, zme), o.Mb = function(n) { return w3(), u(y(u(n, 40), (Ac(), lp)), 15).a < 0; - }, w($5, "NodeOrderer/lambda$1$Type", 1449), b(1450, 1, Vn, Lye), o.Mb = function(n) { + }, w($5, "NodeOrderer/lambda$1$Type", 1449), b(1450, 1, Vn, Dye), o.Mb = function(n) { return X5n(this.a, u(n, 40)); - }, w($5, "NodeOrderer/lambda$2$Type", 1450), b(1451, 1, Vn, Oye), o.Mb = function(n) { - return B3n(this.a, u(n, 40)); - }, w($5, "NodeOrderer/lambda$3$Type", 1451), b(1452, 1, ct, zme), o.Le = function(n, t) { + }, w($5, "NodeOrderer/lambda$2$Type", 1450), b(1451, 1, Vn, Lye), o.Mb = function(n) { + return _3n(this.a, u(n, 40)); + }, w($5, "NodeOrderer/lambda$3$Type", 1451), b(1452, 1, ct, Wme), o.Le = function(n, t) { return d5n(u(n, 40), u(t, 40)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w($5, "NodeOrderer/lambda$4$Type", 1452), b(1453, 1, Vn, Wme), o.Mb = function(n) { - return w3(), u(y(u(n, 40), (Bt(), eq)), 15).a != 0; - }, w($5, "NodeOrderer/lambda$5$Type", 1453), b(1455, 1, lr, A9e), o.pg = function(n) { - return u(n, 120), Acn; + }, w($5, "NodeOrderer/lambda$4$Type", 1452), b(1453, 1, Vn, Xme), o.Mb = function(n) { + return w3(), u(y(u(n, 40), (_t(), eq)), 15).a != 0; + }, w($5, "NodeOrderer/lambda$5$Type", 1453), b(1455, 1, lr, x9e), o.pg = function(n) { + return u(n, 120), xcn; }, o.If = function(n, t) { XTn(this, u(n, 120), t); }, o.b = 0; - var Acn; - w("org.eclipse.elk.alg.mrtree.p3place", "NodePlacer", 1455), b(1456, 1, lr, x9e), o.pg = function(n) { - return u(n, 120), xcn; + var xcn; + w("org.eclipse.elk.alg.mrtree.p3place", "NodePlacer", 1455), b(1456, 1, lr, $9e), o.pg = function(n) { + return u(n, 120), $cn; }, o.If = function(n, t) { STn(u(n, 120), t); }; - var xcn, zLn = w(Hs, "EdgeRouter", 1456); - b(1458, 1, ct, Dme), o.Le = function(n, t) { + var $cn, zLn = w(Hs, "EdgeRouter", 1456); + b(1458, 1, ct, Nme), o.Le = function(n, t) { return Zc(u(n, 15).a, u(t, 15).a); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Hs, "EdgeRouter/0methodref$compare$Type", 1458), b(1463, 1, {}, Nme), o.We = function(n) { - return _(H(n)); - }, w(Hs, "EdgeRouter/1methodref$doubleValue$Type", 1463), b(1465, 1, ct, Fme), o.Le = function(n, t) { - return Ct(_(H(n)), _(H(t))); + }, w(Hs, "EdgeRouter/0methodref$compare$Type", 1458), b(1463, 1, {}, Fme), o.We = function(n) { + return B(H(n)); + }, w(Hs, "EdgeRouter/1methodref$doubleValue$Type", 1463), b(1465, 1, ct, Rme), o.Le = function(n, t) { + return Ct(B(H(n)), B(H(t))); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Hs, "EdgeRouter/2methodref$compare$Type", 1465), b(1467, 1, ct, Rme), o.Le = function(n, t) { - return Ct(_(H(n)), _(H(t))); + }, w(Hs, "EdgeRouter/2methodref$compare$Type", 1465), b(1467, 1, ct, _me), o.Le = function(n, t) { + return Ct(B(H(n)), B(H(t))); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Hs, "EdgeRouter/3methodref$compare$Type", 1467), b(1469, 1, {}, Lme), o.We = function(n) { - return _(H(n)); + }, w(Hs, "EdgeRouter/3methodref$compare$Type", 1467), b(1469, 1, {}, Dme), o.We = function(n) { + return B(H(n)); }, w(Hs, "EdgeRouter/4methodref$doubleValue$Type", 1469), b(1471, 1, ct, Bme), o.Le = function(n, t) { - return Ct(_(H(n)), _(H(t))); + return Ct(B(H(n)), B(H(t))); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Hs, "EdgeRouter/5methodref$compare$Type", 1471), b(1473, 1, ct, _me), o.Le = function(n, t) { - return Ct(_(H(n)), _(H(t))); + }, w(Hs, "EdgeRouter/5methodref$compare$Type", 1471), b(1473, 1, ct, Jme), o.Le = function(n, t) { + return Ct(B(H(n)), B(H(t))); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Hs, "EdgeRouter/6methodref$compare$Type", 1473), b(1457, 1, {}, Jme), o.Kb = function(n) { + }, w(Hs, "EdgeRouter/6methodref$compare$Type", 1473), b(1457, 1, {}, Gme), o.Kb = function(n) { return Ql(), u(y(u(n, 40), (Ac(), rl)), 15); - }, w(Hs, "EdgeRouter/lambda$0$Type", 1457), b(1468, 1, {}, Gme), o.Kb = function(n) { + }, w(Hs, "EdgeRouter/lambda$0$Type", 1457), b(1468, 1, {}, Hme), o.Kb = function(n) { return jdn(u(n, 40)); - }, w(Hs, "EdgeRouter/lambda$11$Type", 1468), b(1470, 1, {}, hxe), o.Kb = function(n) { + }, w(Hs, "EdgeRouter/lambda$11$Type", 1468), b(1470, 1, {}, lxe), o.Kb = function(n) { return qwn(this.b, this.a, u(n, 40)); - }, o.a = 0, o.b = 0, w(Hs, "EdgeRouter/lambda$13$Type", 1470), b(1472, 1, {}, fxe), o.Kb = function(n) { + }, o.a = 0, o.b = 0, w(Hs, "EdgeRouter/lambda$13$Type", 1470), b(1472, 1, {}, hxe), o.Kb = function(n) { return xdn(this.b, this.a, u(n, 40)); - }, o.a = 0, o.b = 0, w(Hs, "EdgeRouter/lambda$15$Type", 1472), b(1474, 1, ct, Hme), o.Le = function(n, t) { + }, o.a = 0, o.b = 0, w(Hs, "EdgeRouter/lambda$15$Type", 1472), b(1474, 1, ct, qme), o.Le = function(n, t) { return Zkn(u(n, 65), u(t, 65)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Hs, "EdgeRouter/lambda$17$Type", 1474), b(1475, 1, ct, Xme), o.Le = function(n, t) { + }, w(Hs, "EdgeRouter/lambda$17$Type", 1474), b(1475, 1, ct, Kme), o.Le = function(n, t) { return e8n(u(n, 65), u(t, 65)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Hs, "EdgeRouter/lambda$18$Type", 1475), b(1476, 1, ct, Kme), o.Le = function(n, t) { + }, w(Hs, "EdgeRouter/lambda$18$Type", 1475), b(1476, 1, ct, Vme), o.Le = function(n, t) { return t8n(u(n, 65), u(t, 65)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Hs, "EdgeRouter/lambda$19$Type", 1476), b(1459, 1, Vn, Dye), o.Mb = function(n) { + }, w(Hs, "EdgeRouter/lambda$19$Type", 1476), b(1459, 1, Vn, Nye), o.Mb = function(n) { return jpn(this.a, u(n, 40)); - }, o.a = 0, w(Hs, "EdgeRouter/lambda$2$Type", 1459), b(1477, 1, ct, Vme), o.Le = function(n, t) { + }, o.a = 0, w(Hs, "EdgeRouter/lambda$2$Type", 1459), b(1477, 1, ct, Qme), o.Le = function(n, t) { return n8n(u(n, 65), u(t, 65)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Hs, "EdgeRouter/lambda$20$Type", 1477), b(1460, 1, ct, Qme), o.Le = function(n, t) { + }, w(Hs, "EdgeRouter/lambda$20$Type", 1477), b(1460, 1, ct, Yme), o.Le = function(n, t) { return Own(u(n, 40), u(t, 40)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Hs, "EdgeRouter/lambda$3$Type", 1460), b(1461, 1, ct, Yme), o.Le = function(n, t) { + }, w(Hs, "EdgeRouter/lambda$3$Type", 1460), b(1461, 1, ct, Zme), o.Le = function(n, t) { return Lwn(u(n, 40), u(t, 40)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Hs, "EdgeRouter/lambda$4$Type", 1461), b(1462, 1, {}, Zme), o.Kb = function(n) { + }, w(Hs, "EdgeRouter/lambda$4$Type", 1461), b(1462, 1, {}, eve), o.Kb = function(n) { return Edn(u(n, 40)); - }, w(Hs, "EdgeRouter/lambda$5$Type", 1462), b(1464, 1, {}, lxe), o.Kb = function(n) { + }, w(Hs, "EdgeRouter/lambda$5$Type", 1462), b(1464, 1, {}, axe), o.Kb = function(n) { return Uwn(this.b, this.a, u(n, 40)); - }, o.a = 0, o.b = 0, w(Hs, "EdgeRouter/lambda$7$Type", 1464), b(1466, 1, {}, axe), o.Kb = function(n) { + }, o.a = 0, o.b = 0, w(Hs, "EdgeRouter/lambda$7$Type", 1464), b(1466, 1, {}, dxe), o.Kb = function(n) { return Adn(this.b, this.a, u(n, 40)); - }, o.a = 0, o.b = 0, w(Hs, "EdgeRouter/lambda$9$Type", 1466), b(662, 1, { 662: 1 }, i_e), o.e = 0, o.f = !1, o.g = !1, w(Hs, "MultiLevelEdgeNodeNodeGap", 662), b(1864, 1, ct, eve), o.Le = function(n, t) { + }, o.a = 0, o.b = 0, w(Hs, "EdgeRouter/lambda$9$Type", 1466), b(662, 1, { 662: 1 }, rBe), o.e = 0, o.f = !1, o.g = !1, w(Hs, "MultiLevelEdgeNodeNodeGap", 662), b(1864, 1, ct, nve), o.Le = function(n, t) { return Dpn(u(n, 240), u(t, 240)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Hs, "MultiLevelEdgeNodeNodeGap/lambda$0$Type", 1864), b(1865, 1, ct, nve), o.Le = function(n, t) { + }, w(Hs, "MultiLevelEdgeNodeNodeGap/lambda$0$Type", 1864), b(1865, 1, ct, tve), o.Le = function(n, t) { return Npn(u(n, 240), u(t, 240)); }, o.Fb = function(n) { return this === n; @@ -39056,16 +39146,16 @@ function WDn() { }, w(Hs, "MultiLevelEdgeNodeNodeGap/lambda$1$Type", 1865); var ap; b(487, 23, { 3: 1, 35: 1, 23: 1, 487: 1, 188: 1, 196: 1 }, fX), o.bg = function() { - return JRe(this); + return GRe(this); }, o.og = function() { - return JRe(this); + return GRe(this); }; - var $C, dp, jae = Pn(Oce, "RadialLayoutPhases", 487, Bn, opn, Lbn), $cn; - b(1083, 214, gb, CEe), o.kf = function(n, t) { + var $C, dp, jae = Pn(Oce, "RadialLayoutPhases", 487, _n, opn, Lbn), Mcn; + b(1083, 214, gb, PEe), o.kf = function(n, t) { var i, r, c, s, f, h; - if (i = BHe(this, n), t.Tg("Radial layout", i.c.length), ve(me(re(n, (_1(), Oae)))) || Ry((r = new S4((xd(), new b1(n))), r)), h = Y7n(n), Pt(n, (s2(), ap), h), !h) + if (i = BHe(this, n), t.Tg("Radial layout", i.c.length), ve(me(re(n, (B1(), Oae)))) || Ry((r = new S4((xd(), new b1(n))), r)), h = Y7n(n), Pt(n, (s2(), ap), h), !h) throw $(new on("The given graph is not a tree!")); - for (c = _(H(re(n, SC))), c == 0 && (c = dGe(n)), Pt(n, SC, c), f = new x(BHe(this, n)); f.a < f.c.c.length; ) + for (c = B(H(re(n, SC))), c == 0 && (c = bGe(n)), Pt(n, SC, c), f = new x(BHe(this, n)); f.a < f.c.c.length; ) s = u(A(f), 43), s.If(n, t.dh(1)); t.Ug(); }, w(Oce, "RadialLayoutProvider", 1083), b(544, 1, ct, LA), o.Le = function(n, t) { @@ -39074,108 +39164,108 @@ function WDn() { return this === n; }, o.Me = function() { return new Zn(this); - }, o.a = 0, o.b = 0, w(Oce, "RadialUtil/lambda$0$Type", 544), b(1349, 1, Ft, tve), o.If = function(n, t) { + }, o.a = 0, o.b = 0, w(Oce, "RadialUtil/lambda$0$Type", 544), b(1349, 1, Ft, ive), o.If = function(n, t) { sOn(u(n, 26), t); - }, w(Dce, "CalculateGraphSize", 1349), b(1350, 1, Ft, ive), o.If = function(n, t) { + }, w(Dce, "CalculateGraphSize", 1349), b(1350, 1, Ft, rve), o.If = function(n, t) { MIn(u(n, 26)); }, w(Dce, "EdgeAngleCalculator", 1350), b(364, 23, { 3: 1, 35: 1, 23: 1, 364: 1, 196: 1 }, cy), o.bg = function() { switch (this.g) { case 0: - return new fve(); + return new hve(); case 1: - return new rve(); + return new cve(); case 2: - return new hve(); + return new lve(); case 3: - return new tve(); - case 4: return new ive(); + case 4: + return new rve(); default: - throw $(new on(_B + (this.f != null ? this.f : "" + this.g))); + throw $(new on(B_ + (this.f != null ? this.f : "" + this.g))); } }; - var lq, aq, dq, bq, wq, Mcn = Pn(Dce, JB, 364, Bn, Kmn, Dbn), Tcn; - b(641, 1, {}), o.e = 1, o.g = 0, w(D_, "AbstractRadiusExtensionCompaction", 641), b(1815, 641, {}, DMe), o.Bg = function(n) { + var lq, aq, dq, bq, wq, Tcn = Pn(Dce, J_, 364, _n, Kmn, Dbn), Scn; + b(641, 1, {}), o.e = 1, o.g = 0, w(DB, "AbstractRadiusExtensionCompaction", 641), b(1815, 641, {}, NMe), o.Bg = function(n) { var t, i, r, c, s, f, h, l, a; - for (this.c = u(re(n, (s2(), ap)), 26), Dhn(this, this.c), this.d = jF(u(re(n, (_1(), vE)), 303)), l = u(re(n, pq), 15), l && jke(this, l.a), h = H(re(n, (tt(), i1))), Az(this, (Ze(h), h)), a = Jw(this.c), this.d && this.d.Fg(a), LTn(this, a), f = new yc(I(T(Qn, 1), WXe, 26, 0, [this.c])), i = 0; i < 2; i++) + for (this.c = u(re(n, (s2(), ap)), 26), Dhn(this, this.c), this.d = jF(u(re(n, (B1(), vE)), 303)), l = u(re(n, pq), 15), l && Eke(this, l.a), h = H(re(n, (tt(), i1))), Az(this, (Ze(h), h)), a = Jw(this.c), this.d && this.d.Fg(a), LTn(this, a), f = new yc(I(S(Qn, 1), XXe, 26, 0, [this.c])), i = 0; i < 2; i++) for (t = 0; t < a.c.length; t++) - c = new yc(I(T(Qn, 1), WXe, 26, 0, [(qe(t, a.c.length), u(a.c[t], 26))])), s = t < a.c.length - 1 ? (qe(t + 1, a.c.length), u(a.c[t + 1], 26)) : (qe(0, a.c.length), u(a.c[0], 26)), r = t == 0 ? u(pe(a, a.c.length - 1), 26) : (qe(t - 1, a.c.length), u(a.c[t - 1], 26)), oJe(this, (qe(t, a.c.length), u(a.c[t], 26), f), r, s, c); - }, w(D_, "AnnulusWedgeCompaction", 1815), b(1347, 1, Ft, rve), o.If = function(n, t) { + c = new yc(I(S(Qn, 1), XXe, 26, 0, [(qe(t, a.c.length), u(a.c[t], 26))])), s = t < a.c.length - 1 ? (qe(t + 1, a.c.length), u(a.c[t + 1], 26)) : (qe(0, a.c.length), u(a.c[0], 26)), r = t == 0 ? u(pe(a, a.c.length - 1), 26) : (qe(t - 1, a.c.length), u(a.c[t - 1], 26)), fJe(this, (qe(t, a.c.length), u(a.c[t], 26), f), r, s, c); + }, w(DB, "AnnulusWedgeCompaction", 1815), b(1347, 1, Ft, cve), o.If = function(n, t) { o4n(u(n, 26), t); - }, w(D_, "GeneralCompactor", 1347), b(1814, 641, {}, cve), o.Bg = function(n) { + }, w(DB, "GeneralCompactor", 1347), b(1814, 641, {}, uve), o.Bg = function(n) { var t, i, r, c; - i = u(re(n, (s2(), ap)), 26), this.f = i, this.b = jF(u(re(n, (_1(), vE)), 303)), c = u(re(n, pq), 15), c && jke(this, c.a), r = H(re(n, (tt(), i1))), Az(this, (Ze(r), r)), t = Jw(i), this.b && this.b.Fg(t), GJe(this, t); - }, o.a = 0, w(D_, "RadialCompaction", 1814), b(1823, 1, {}, uve), o.Cg = function(n) { + i = u(re(n, (s2(), ap)), 26), this.f = i, this.b = jF(u(re(n, (B1(), vE)), 303)), c = u(re(n, pq), 15), c && Eke(this, c.a), r = H(re(n, (tt(), i1))), Az(this, (Ze(r), r)), t = Jw(i), this.b && this.b.Fg(t), HJe(this, t); + }, o.a = 0, w(DB, "RadialCompaction", 1814), b(1823, 1, {}, sve), o.Cg = function(n) { var t, i, r, c, s, f; for (this.a = n, t = 0, f = Jw(n), r = 0, s = new x(f); s.a < s.c.c.length; ) for (c = u(A(s), 26), ++r, i = r; i < f.c.length; i++) VSn(this, c, (qe(i, f.c.length), u(f.c[i], 26))) && (t += 1); return t; - }, w(Nce, "CrossingMinimizationPosition", 1823), b(1821, 1, {}, sve), o.Cg = function(n) { + }, w(Nce, "CrossingMinimizationPosition", 1823), b(1821, 1, {}, ove), o.Cg = function(n) { var t, i, r, c, s, f, h, l, a, d, g, p, v; - for (r = 0, i = new fn(dn(J1(n).a.Jc(), new Q())); xn(i); ) + for (r = 0, i = new fn(dn(J1(n).a.Jc(), new Y())); xn(i); ) t = u(pn(i), 85), h = ec(u(F((!t.c && (t.c = new Qe(Cn, t, 5, 8)), t.c), 0), 84)), a = h.i + h.g / 2, d = h.j + h.f / 2, c = n.i + n.g / 2, s = n.j + n.f / 2, g = new er(), g.a = a - c, g.b = d - s, f = new ue(g.a, g.b), zv(f, n.g, n.f), g.a -= f.a, g.b -= f.b, c = a - g.a, s = d - g.b, l = new ue(g.a, g.b), zv(l, h.g, h.f), g.a -= l.a, g.b -= l.b, a = c + g.a, d = s + g.b, p = a - c, v = d - s, r += m.Math.sqrt(p * p + v * v); return r; - }, w(Nce, "EdgeLengthOptimization", 1821), b(1822, 1, {}, ove), o.Cg = function(n) { + }, w(Nce, "EdgeLengthOptimization", 1821), b(1822, 1, {}, fve), o.Cg = function(n) { var t, i, r, c, s, f, h, l, a, d, g; - for (r = 0, i = new fn(dn(J1(n).a.Jc(), new Q())); xn(i); ) + for (r = 0, i = new fn(dn(J1(n).a.Jc(), new Y())); xn(i); ) t = u(pn(i), 85), h = ec(u(F((!t.c && (t.c = new Qe(Cn, t, 5, 8)), t.c), 0), 84)), l = h.i + h.g / 2, a = h.j + h.f / 2, c = u(re(h, (tt(), mm)), 8), s = n.i + c.a + n.g / 2, f = n.j + c.b + n.f, d = l - s, g = a - f, r += m.Math.sqrt(d * d + g * g); return r; - }, w(Nce, "EdgeLengthPositionOptimization", 1822), b(1346, 641, Ft, fve), o.If = function(n, t) { + }, w(Nce, "EdgeLengthPositionOptimization", 1822), b(1346, 641, Ft, hve), o.If = function(n, t) { WEn(this, u(n, 26), t); - }, w("org.eclipse.elk.alg.radial.intermediate.overlaps", "RadiusExtensionOverlapRemoval", 1346), b(1348, 1, Ft, hve), o.If = function(n, t) { + }, w("org.eclipse.elk.alg.radial.intermediate.overlaps", "RadiusExtensionOverlapRemoval", 1346), b(1348, 1, Ft, lve), o.If = function(n, t) { $gn(u(n, 26), t); }, w("org.eclipse.elk.alg.radial.intermediate.rotation", "GeneralRotator", 1348), b(426, 23, { 3: 1, 35: 1, 23: 1, 426: 1 }, hX); - var Eae, gq, Aae = Pn(X9, "AnnulusWedgeCriteria", 426, Bn, fpn, Nbn), Scn; + var Eae, gq, Aae = Pn(X9, "AnnulusWedgeCriteria", 426, _n, fpn, Nbn), Icn; b(386, 23, { 3: 1, 35: 1, 23: 1, 386: 1 }, XO); - var MC, xae, $ae, Mae = Pn(X9, XXe, 386, Bn, i3n, Fbn), Icn; - b(847, 1, vh, S9e), o.tf = function(n) { - Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Fce), ""), "Center On Root"), "Centers the layout on the root of the tree i.e. so that the central node is also the center node of the final layout. This introduces additional whitespace."), (en(), !1)), (Vd(), Pi)), ui), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Rce), ""), "Order ID"), "The id can be used to define an order for nodes of one radius. This can be used to sort them in the layer accordingly."), ie(0)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Bce), ""), "Radius"), "The radius option can be used to set the initial radius for the radial layouter."), 0), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), jS), ""), "Rotate"), "The rotate option determines whether a rotation of the layout should be performed."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), F_), ""), KXe), "With the compacter option it can be determined how compaction on the graph is done. It can be chosen between none, the radial compaction or the compaction of wedges separately."), Tae), Vt), Mae), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), R_), ""), "Compaction Step Size"), "Determine the size of steps with which the compaction is done. Step size 1 correlates to a compaction of 1 pixel per Iteration."), ie(1)), pr), Ii), Pe(Xe)))), ei(n, R_, F_, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), _ce), ""), "Sorter"), "Sort the nodes per radius according to the sorting algorithm. The strategies are none, by the given order id, or sorting them by polar coordinates."), Iae), Vt), Uae), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Jce), ""), "Annulus Wedge Criteria"), "Determine how the wedge for the node placement is calculated. It can be chosen between wedge determination by the number of leaves or by the maximum sum of diagonals."), Cae), Vt), Aae), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Gce), ""), "Translation Optimization"), "Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."), Sae), Vt), Gae), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), B_), qce), "Target Angle"), "The angle in radians that the layout should be rotated to after layout."), 0), ur), Ei), Pe(Xe)))), ei(n, B_, jS, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), __), qce), "Additional Wedge Space"), "If set to true, modifies the target angle by rotating further such that space is left for an edge to pass in between the nodes. This option should only be used in conjunction with top-down layout."), !1), Pi), ui), Pe(Xe)))), ei(n, __, jS, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Hce), qce), "Outgoing Edge Angles"), "Calculate the required angle of connected nodes to leave space for an incoming edge. This option should only be used in conjunction with top-down layout."), !1), Pi), ui), Pe(Xe)))), $ze((new N9e(), n)); + var MC, xae, $ae, Mae = Pn(X9, KXe, 386, _n, i3n, Fbn), Ccn; + b(847, 1, vh, I9e), o.tf = function(n) { + Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Fce), ""), "Center On Root"), "Centers the layout on the root of the tree i.e. so that the central node is also the center node of the final layout. This introduces additional whitespace."), (en(), !1)), (Vd(), Pi)), ui), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Rce), ""), "Order ID"), "The id can be used to define an order for nodes of one radius. This can be used to sort them in the layer accordingly."), ie(0)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), _ce), ""), "Radius"), "The radius option can be used to set the initial radius for the radial layouter."), 0), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), jS), ""), "Rotate"), "The rotate option determines whether a rotation of the layout should be performed."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), FB), ""), VXe), "With the compacter option it can be determined how compaction on the graph is done. It can be chosen between none, the radial compaction or the compaction of wedges separately."), Tae), Vt), Mae), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), RB), ""), "Compaction Step Size"), "Determine the size of steps with which the compaction is done. Step size 1 correlates to a compaction of 1 pixel per Iteration."), ie(1)), pr), Ii), Pe(Xe)))), ei(n, RB, FB, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Bce), ""), "Sorter"), "Sort the nodes per radius according to the sorting algorithm. The strategies are none, by the given order id, or sorting them by polar coordinates."), Iae), Vt), Uae), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Jce), ""), "Annulus Wedge Criteria"), "Determine how the wedge for the node placement is calculated. It can be chosen between wedge determination by the number of leaves or by the maximum sum of diagonals."), Cae), Vt), Aae), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Gce), ""), "Translation Optimization"), "Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."), Sae), Vt), Gae), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), _B), qce), "Target Angle"), "The angle in radians that the layout should be rotated to after layout."), 0), ur), Ei), Pe(Xe)))), ei(n, _B, jS, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), BB), qce), "Additional Wedge Space"), "If set to true, modifies the target angle by rotating further such that space is left for an edge to pass in between the nodes. This option should only be used in conjunction with top-down layout."), !1), Pi), ui), Pe(Xe)))), ei(n, BB, jS, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Hce), qce), "Outgoing Edge Angles"), "Calculate the required angle of connected nodes to leave space for an incoming edge. This option should only be used in conjunction with top-down layout."), !1), Pi), ui), Pe(Xe)))), Mze((new F9e(), n)); }; - var Ccn, Pcn, Ocn, Tae, Lcn, Sae, Dcn, Ncn, Fcn, Rcn, Bcn, _cn, Jcn, Iae, Gcn, Cae; - w(X9, "RadialMetaDataProvider", 847), b(992, 1, vh, N9e), o.tf = function(n) { - $ze(n); + var Pcn, Ocn, Lcn, Tae, Dcn, Sae, Ncn, Fcn, Rcn, _cn, Bcn, Jcn, Gcn, Iae, Hcn, Cae; + w(X9, "RadialMetaDataProvider", 847), b(992, 1, vh, F9e), o.tf = function(n) { + Mze(n); }; - var Pae, pq, mq, Hcn, qcn, Ucn, zcn, Oae, Lae, TC, Wcn, Xcn, SC, Dae, Nae, Fae, vq, vE, Kcn, Rae; - w(X9, "RadialOptions", 992), b(993, 1, {}, lve), o.uf = function() { + var Pae, pq, mq, qcn, Ucn, zcn, Wcn, Oae, Lae, TC, Xcn, Kcn, SC, Dae, Nae, Fae, vq, vE, Vcn, Rae; + w(X9, "RadialOptions", 992), b(993, 1, {}, ave), o.uf = function() { var n; - return n = new CEe(), n; + return n = new PEe(), n; }, o.vf = function(n) { }, w(X9, "RadialOptions/RadialFactory", 993), b(354, 23, { 3: 1, 35: 1, 23: 1, 354: 1 }, cx); - var Bae, _ae, Jae, kq, Gae = Pn(X9, "RadialTranslationStrategy", 354, Bn, lmn, Rbn), Vcn; + var _ae, Bae, Jae, kq, Gae = Pn(X9, "RadialTranslationStrategy", 354, _n, lmn, Rbn), Qcn; b(303, 23, { 3: 1, 35: 1, 23: 1, 303: 1 }, KO); - var Hae, yq, qae, Uae = Pn(X9, "SortingStrategy", 303, Bn, c3n, Bbn), Qcn; - b(1436, 1, lr, ave), o.pg = function(n) { + var Hae, yq, qae, Uae = Pn(X9, "SortingStrategy", 303, _n, c3n, _bn), Ycn; + b(1436, 1, lr, dve), o.pg = function(n) { return u(n, 26), null; }, o.If = function(n, t) { dAn(this, u(n, 26), t); - }, o.c = 0, w("org.eclipse.elk.alg.radial.p1position", "EadesRadial", 1436), b(1819, 1, {}, dve), o.Dg = function(n) { - return BBe(n); - }, w(VXe, "AnnulusWedgeByLeafs", 1819), b(1820, 1, {}, bve), o.Dg = function(n) { - return eJe(this, n); - }, w(VXe, "AnnulusWedgeByNodeSpace", 1820), b(1437, 1, lr, wve), o.pg = function(n) { + }, o.c = 0, w("org.eclipse.elk.alg.radial.p1position", "EadesRadial", 1436), b(1819, 1, {}, bve), o.Dg = function(n) { + return B_e(n); + }, w(QXe, "AnnulusWedgeByLeafs", 1819), b(1820, 1, {}, wve), o.Dg = function(n) { + return nJe(this, n); + }, w(QXe, "AnnulusWedgeByNodeSpace", 1820), b(1437, 1, lr, gve), o.pg = function(n) { return u(n, 26), null; }, o.If = function(n, t) { O9n(this, u(n, 26), t); }, w("org.eclipse.elk.alg.radial.p2routing", "StraightLineEdgeRouter", 1437), b(811, 1, {}, oW), o.Eg = function(n) { }, o.Fg = function(n) { - H7e(this, n); - }, w(Uce, "IDSorter", 811), b(1818, 1, ct, gve), o.Le = function(n, t) { + q7e(this, n); + }, w(Uce, "IDSorter", 811), b(1818, 1, ct, pve), o.Le = function(n, t) { return f4n(u(n, 26), u(t, 26)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Uce, "IDSorter/lambda$0$Type", 1818), b(1817, 1, {}, LNe), o.Eg = function(n) { - OPe(this, n); + }, w(Uce, "IDSorter/lambda$0$Type", 1818), b(1817, 1, {}, DNe), o.Eg = function(n) { + LPe(this, n); }, o.Fg = function(n) { var t; - n.dc() || (this.e || (t = ySe(u(n.Xb(0), 26)), OPe(this, t)), H7e(this.e, n)); + n.dc() || (this.e || (t = jSe(u(n.Xb(0), 26)), LPe(this, t)), q7e(this.e, n)); }, w(Uce, "PolarCoordinateSorter", 1817), b(436, 23, { 3: 1, 35: 1, 23: 1, 436: 1 }, VO); - var Zk, IC, jq, zae = Pn(eKe, "RectPackingLayoutPhases", 436, Bn, u3n, _bn), Ycn; - b(1087, 214, gb, PEe), o.kf = function(n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke; - if (t.Tg("Rectangle Packing", 1), g = u(re(n, (gh(), t8)), 104), l = ve(me(re(n, yun))), d = _(H(re(n, i8))), Le = ve(me(re(n, u1e))), J = (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a), ve(me(re(n, Iq))) || Ry((c = new S4((xd(), new b1(n))), c)), De = !1, Le && J.i >= 3) + var Zk, IC, jq, zae = Pn(nKe, "RectPackingLayoutPhases", 436, _n, u3n, Bbn), Zcn; + b(1087, 214, gb, OEe), o.kf = function(n, t) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke; + if (t.Tg("Rectangle Packing", 1), g = u(re(n, (gh(), t8)), 104), l = ve(me(re(n, jun))), d = B(H(re(n, i8))), Le = ve(me(re(n, u1e))), J = (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a), ve(me(re(n, Iq))) || Ry((c = new S4((xd(), new b1(n))), c)), De = !1, Le && J.i >= 3) for (X = u(F(J, 0), 26), we = u(F(J, 1), 26), s = 0; s + 2 < J.i; ) if (V = X, X = we, we = u(F(J, s + 2), 26), V.f >= X.f + we.f + d || we.f >= V.f + X.f + d) { De = !0; @@ -39187,20 +39277,20 @@ function WDn() { if (!De) { for (p = J.i, h = new kn(J); h.e != h.i.gc(); ) f = u(En(h), 26), Pt(f, (tt(), CE), ie(p)), --p; - wUe(n, new Lp()), t.Ug(); + gUe(n, new Lp()), t.Ug(); return; } - for (i = (Oy(this.a), Bf(this.a, (BM(), Zk), u(re(n, h1e), 188)), Bf(this.a, IC, u(re(n, r1e), 188)), Bf(this.a, jq, u(re(n, s1e), 188)), xX(this.a, (Ke = new wi(), et(Ke, Zk, (oT(), xq)), et(Ke, IC, Aq), ve(me(re(n, t1e))) && et(Ke, Zk, $q), ve(me(re(n, n1e))) && et(Ke, Zk, Eq), Ke)), Z7(this.a, n)), a = 1 / i.c.length, j = new x(i); j.a < j.c.c.length; ) { + for (i = (Oy(this.a), _f(this.a, (_M(), Zk), u(re(n, h1e), 188)), _f(this.a, IC, u(re(n, r1e), 188)), _f(this.a, jq, u(re(n, s1e), 188)), xX(this.a, (Ke = new wi(), et(Ke, Zk, (oT(), xq)), et(Ke, IC, Aq), ve(me(re(n, t1e))) && et(Ke, Zk, $q), ve(me(re(n, n1e))) && et(Ke, Zk, Eq), Ke)), Z7(this.a, n)), a = 1 / i.c.length, j = new x(i); j.a < j.c.c.length; ) { if (v = u(A(j), 43), t.Zg()) return; v.If(n, t.dh(a)); } - for (M = 0, E = 0, R = new kn(J); R.e != R.i.gc(); ) - D = u(En(R), 26), M = m.Math.max(M, D.i + D.g), E = m.Math.max(E, D.j + D.f); - Ane(n, new ue(_(H(re(n, (gl(), dm)))), _(H(re(n, l4)))), new ue(M, E)), F4n(J, g), l || ab(n, _(H(re(n, dm))) + (g.b + g.c), _(H(re(n, l4))) + (g.d + g.a), !1, !0), ve(me(re(n, Iq))) || Ry((r = new S4((xd(), new b1(n))), r)), t.Ug(); - }, w(eKe, "RectPackingLayoutProvider", 1087), b(1479, 1, Ft, pve), o.If = function(n, t) { + for (T = 0, E = 0, R = new kn(J); R.e != R.i.gc(); ) + D = u(En(R), 26), T = m.Math.max(T, D.i + D.g), E = m.Math.max(E, D.j + D.f); + Ane(n, new ue(B(H(re(n, (gl(), dm)))), B(H(re(n, l4)))), new ue(T, E)), F4n(J, g), l || ab(n, B(H(re(n, dm))) + (g.b + g.c), B(H(re(n, l4))) + (g.d + g.a), !1, !0), ve(me(re(n, Iq))) || Ry((r = new S4((xd(), new b1(n))), r)), t.Ug(); + }, w(nKe, "RectPackingLayoutProvider", 1087), b(1479, 1, Ft, mve), o.If = function(n, t) { TIn(u(n, 26), t); - }, w(K9, "InteractiveNodeReorderer", 1479), b(1480, 1, ct, mve), o.Le = function(n, t) { + }, w(K9, "InteractiveNodeReorderer", 1479), b(1480, 1, ct, vve), o.Le = function(n, t) { return j6n(u(n, 26), u(t, 26)); }, o.Fb = function(n) { return this === n; @@ -39209,46 +39299,46 @@ function WDn() { }, w(K9, "InteractiveNodeReorderer/lambda$0$Type", 1480), b(401, 23, { 3: 1, 35: 1, 23: 1, 401: 1, 196: 1 }, ux), o.bg = function() { switch (this.g) { case 0: - return new jve(); + return new Eve(); case 1: - return new pve(); + return new mve(); case 2: - return new kve(); + return new yve(); case 3: - return new vve(); + return new kve(); } return null; }; - var Eq, Aq, xq, $q, Zcn = Pn(K9, JB, 401, Bn, hmn, Jbn), eun; - b(1482, 1, Ft, vve), o.If = function(n, t) { + var Eq, Aq, xq, $q, eun = Pn(K9, J_, 401, _n, hmn, Jbn), nun; + b(1482, 1, Ft, kve), o.If = function(n, t) { mkn(u(n, 26), t); - }, w(K9, "MinSizePostProcessor", 1482), b(1481, 1, Ft, kve), o.If = function(n, t) { + }, w(K9, "MinSizePostProcessor", 1482), b(1481, 1, Ft, yve), o.If = function(n, t) { a$n(u(n, 26), t); - }, w(K9, "MinSizePreProcessor", 1481), b(1671, 1, ct, yve), o.Le = function(n, t) { + }, w(K9, "MinSizePreProcessor", 1481), b(1671, 1, ct, jve), o.Le = function(n, t) { return h1n(u(n, 26), u(t, 26)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(K9, "NodeSizeComparator", 1671), b(1478, 1, Ft, jve), o.If = function(n, t) { + }, w(K9, "NodeSizeComparator", 1671), b(1478, 1, Ft, Eve), o.If = function(n, t) { J3n(u(n, 26)); }, w(K9, "NodeSizeReorderer", 1478); - var e8, l4, dm, nun, tun, CC, Mq, Tq, n8, PC, Eg; + var e8, l4, dm, tun, iun, CC, Mq, Tq, n8, PC, Eg; b(387, 23, { 3: 1, 35: 1, 23: 1, 387: 1 }, QO); - var Wae, Xae, Sq, Kae = Pn(J_, "OptimizationGoal", 387, Bn, r3n, Gbn), iun; - b(849, 1, vh, D9e), o.tf = function(n) { - Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), zce), ""), "Try box layout first"), "Whether one should check whether the regions are stackable to see whether box layout would do the job. For example, nodes with the same height are not stackable inside a row. Therefore, box layout will perform better and faster."), (en(), !1)), (Vd(), Pi)), ui), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Wce), ""), "Current position of a node in the order of nodes"), "The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."), ie(-1)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Xce), ""), "Desired index of node"), "The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."), ie(-1)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Kce), ""), "In new Row"), "If set to true this node begins in a new row. Consequently this node cannot be moved in a previous layer during compaction. Width approximation does does not take this into account."), !1), Pi), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Vce), ""), "Order nodes by height"), "If set to true the nodes will be sorted by their height before computing the layout. The largest node will be in the first position."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Qce), G_), "Width Approximation Strategy"), "Strategy for finding an initial width of the drawing."), Zae), Vt), d1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Yce), G_), "Target Width"), "Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."), -1), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Zce), G_), "Optimization Goal"), "Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."), Yae), Vt), Kae), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), eue), G_), "Shift Last Placed."), "When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."), !0), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), nue), "packing"), nKe), "Strategy for finding an initial placement on nodes."), Vae), Vt), g1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), tue), tKe), "Row Height Reevaluation"), "During the compaction step the height of a row is normally not changed. If this options is set, the blocks of other rows might be added if they exceed the row height. If this is the case the whole row has to be packed again to be optimal regarding the new row height. This option should, therefore, be used with care since it might be computation heavy."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), iue), tKe), "Compaction iterations"), "Defines the number of compaction iterations. E.g. if set to 2 the width is initially approximated, then the drawing is compacted and based on the resulting drawing the target width is decreased or increased and a second compaction step is executed and the result compared to the first one. The best run is used based on the scale measure."), ie(1)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), rue), "whiteSpaceElimination"), "White Space Approximation Strategy"), "Strategy for expanding nodes such that whitespace in the parent is eliminated."), Qae), Vt), v1e), Pe(Xe)))), Gze((new L9e(), n)); + var Wae, Xae, Sq, Kae = Pn(JB, "OptimizationGoal", 387, _n, r3n, Gbn), run; + b(849, 1, vh, N9e), o.tf = function(n) { + Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), zce), ""), "Try box layout first"), "Whether one should check whether the regions are stackable to see whether box layout would do the job. For example, nodes with the same height are not stackable inside a row. Therefore, box layout will perform better and faster."), (en(), !1)), (Vd(), Pi)), ui), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Wce), ""), "Current position of a node in the order of nodes"), "The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."), ie(-1)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Xce), ""), "Desired index of node"), "The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."), ie(-1)), pr), Ii), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Kce), ""), "In new Row"), "If set to true this node begins in a new row. Consequently this node cannot be moved in a previous layer during compaction. Width approximation does does not take this into account."), !1), Pi), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Vce), ""), "Order nodes by height"), "If set to true the nodes will be sorted by their height before computing the layout. The largest node will be in the first position."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Qce), GB), "Width Approximation Strategy"), "Strategy for finding an initial width of the drawing."), Zae), Vt), d1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Yce), GB), "Target Width"), "Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."), -1), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Zce), GB), "Optimization Goal"), "Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."), Yae), Vt), Kae), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), eue), GB), "Shift Last Placed."), "When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."), !0), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), nue), "packing"), tKe), "Strategy for finding an initial placement on nodes."), Vae), Vt), g1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), tue), iKe), "Row Height Reevaluation"), "During the compaction step the height of a row is normally not changed. If this options is set, the blocks of other rows might be added if they exceed the row height. If this is the case the whole row has to be packed again to be optimal regarding the new row height. This option should, therefore, be used with care since it might be computation heavy."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), iue), iKe), "Compaction iterations"), "Defines the number of compaction iterations. E.g. if set to 2 the width is initially approximated, then the drawing is compacted and based on the resulting drawing the target width is decreased or increased and a second compaction step is executed and the result compared to the first one. The best run is used based on the scale measure."), ie(1)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), rue), "whiteSpaceElimination"), "White Space Approximation Strategy"), "Strategy for expanding nodes such that whitespace in the parent is eliminated."), Qae), Vt), v1e), Pe(Xe)))), Hze((new D9e(), n)); }; - var run, cun, uun, sun, oun, fun, hun, Vae, lun, aun, Qae, dun, bun, Yae, wun, Zae, gun; - w(J_, "RectPackingMetaDataProvider", 849), b(998, 1, vh, L9e), o.tf = function(n) { - Gze(n); + var cun, uun, sun, oun, fun, hun, lun, Vae, aun, dun, Qae, bun, wun, Yae, gun, Zae, pun; + w(JB, "RectPackingMetaDataProvider", 849), b(998, 1, vh, D9e), o.tf = function(n) { + Hze(n); }; - var OC, pun, e1e, kE, n1e, mun, yE, vun, kun, yun, jun, Eun, Iq, t1e, i1e, Cq, r1e, t8, c1e, Aun, i8, u1e, s1e, o1e, f1e, h1e, Pq; - w(J_, "RectPackingOptions", 998), b(999, 1, {}, Eve), o.uf = function() { + var OC, mun, e1e, kE, n1e, vun, yE, kun, yun, jun, Eun, Aun, Iq, t1e, i1e, Cq, r1e, t8, c1e, xun, i8, u1e, s1e, o1e, f1e, h1e, Pq; + w(JB, "RectPackingOptions", 998), b(999, 1, {}, Ave), o.uf = function() { var n; - return n = new PEe(), n; + return n = new OEe(), n; }, o.vf = function(n) { - }, w(J_, "RectPackingOptions/RectpackingFactory", 999), b(1670, 1, {}, ITe), o.a = 0, o.c = !1, w(M5, "AreaApproximation", 1670); + }, w(JB, "RectPackingOptions/RectpackingFactory", 999), b(1670, 1, {}, CTe), o.a = 0, o.c = !1, w(M5, "AreaApproximation", 1670); var l1e = Zt(M5, "BestCandidateFilter"); b(664, 1, { 523: 1 }, IP), o.Gg = function(n, t, i) { var r, c, s, f, h, l; @@ -39264,7 +39354,7 @@ function WDn() { for (c = new x(n); c.a < c.c.c.length; ) r = u(A(c), 238), m.Math.abs((r.c + (i.b + i.c)) / (r.b + (i.d + i.a)) - t) == l && sn(h.c, r); return h; - }, w(M5, "AspectRatioFilter", 665), b(1429, 1, lr, Ave), o.pg = function(n) { + }, w(M5, "AspectRatioFilter", 665), b(1429, 1, lr, xve), o.pg = function(n) { return u(n, 26), null; }, o.If = function(n, t) { mMn(u(n, 26), t); @@ -39275,191 +39365,191 @@ function WDn() { for (c = new x(n); c.a < c.c.c.length; ) r = u(A(c), 238), Xx(r.c + (i.b + i.c), r.b + (i.d + i.a), r.a) == s && sn(l.c, r); return l; - }, w(M5, "ScaleMeasureFilter", 663), b(1430, 1, lr, xve), o.pg = function(n) { + }, w(M5, "ScaleMeasureFilter", 663), b(1430, 1, lr, $ve), o.pg = function(n) { return u(n, 26), null; }, o.If = function(n, t) { bAn(u(n, 26), t); }, w(M5, "TargetWidthWidthApproximator", 1430), b(478, 23, { 3: 1, 35: 1, 23: 1, 478: 1, 188: 1, 196: 1 }, lX), o.bg = function() { - return fJe(this); + return hJe(this); }, o.og = function() { - return fJe(this); + return hJe(this); }; - var Oq, a1e, d1e = Pn(M5, "WidthApproximationStrategy", 478, Bn, apn, Qbn), xun; - b(1431, 1, lr, $ve), o.pg = function(n) { + var Oq, a1e, d1e = Pn(M5, "WidthApproximationStrategy", 478, _n, apn, Qbn), $un; + b(1431, 1, lr, Mve), o.pg = function(n) { return u(n, 26), null; }, o.If = function(n, t) { pOn(this, u(n, 26), t); - }, w(ES, "Compactor", 1431), b(1433, 1, lr, Mve), o.pg = function(n) { + }, w(ES, "Compactor", 1431), b(1433, 1, lr, Tve), o.pg = function(n) { return u(n, 26), null; }, o.If = function(n, t) { Y$n(u(n, 26), t); }, w(ES, "NoPlacement", 1433), b(429, 23, { 3: 1, 35: 1, 23: 1, 429: 1, 188: 1, 196: 1 }, YO), o.bg = function() { - return pRe(this); + return mRe(this); }, o.og = function() { - return pRe(this); + return mRe(this); }; - var Lq, b1e, w1e, g1e = Pn(ES, "PackingStrategy", 429, Bn, f3n, Ybn), $un; - b(797, 1, {}, bX), o.a = 0, o.b = 0, o.c = 0, o.d = ii, o.e = 0, o.f = ii, w(ES, "RowFillingAndCompaction", 797), b(1432, 1, lr, Tve), o.pg = function(n) { + var Lq, b1e, w1e, g1e = Pn(ES, "PackingStrategy", 429, _n, f3n, Ybn), Mun; + b(797, 1, {}, bX), o.a = 0, o.b = 0, o.c = 0, o.d = ii, o.e = 0, o.f = ii, w(ES, "RowFillingAndCompaction", 797), b(1432, 1, lr, Sve), o.pg = function(n) { return u(n, 26), null; }, o.If = function(n, t) { LCn(u(n, 26), t); - }, w(ES, "SimplePlacement", 1432), b(1434, 1, lr, Sve), o.pg = function(n) { + }, w(ES, "SimplePlacement", 1432), b(1434, 1, lr, Ive), o.pg = function(n) { return u(n, 26), null; }, o.If = function(n, t) { this.Hg(u(n, 26), t); }, o.Hg = function(n, t) { - uHe(n, t); - }, w(cue, "EqualWhitespaceEliminator", 1434), b(1435, 1434, lr, Cve), o.Hg = function(n, t) { + sHe(n, t); + }, w(cue, "EqualWhitespaceEliminator", 1434), b(1435, 1434, lr, Pve), o.Hg = function(n, t) { var i, r, c, s, f; - t.Tg("To Aspect Ratio Whitesapce Eliminator", 1), f = _(H(re(n, (gl(), dm)))), s = _(H(re(n, l4))), c = _(H(re(n, (gh(), OC)))), i = _(H(re(n, e8))), r = f / s, r < c ? (f = s * c, Pt(n, dm, f)) : (i += f / c - s, Pt(n, e8, i), Pt(n, l4, s + i)), uHe(n, t), t.Ug(); + t.Tg("To Aspect Ratio Whitesapce Eliminator", 1), f = B(H(re(n, (gl(), dm)))), s = B(H(re(n, l4))), c = B(H(re(n, (gh(), OC)))), i = B(H(re(n, e8))), r = f / s, r < c ? (f = s * c, Pt(n, dm, f)) : (i += f / c - s, Pt(n, e8, i), Pt(n, l4, s + i)), sHe(n, t), t.Ug(); }, w(cue, "ToAspectratioNodeExpander", 1435), b(430, 23, { 3: 1, 35: 1, 23: 1, 430: 1, 188: 1, 196: 1 }, ZO), o.bg = function() { - return lFe(this); + return aFe(this); }, o.og = function() { - return lFe(this); + return aFe(this); }; - var p1e, Dq, m1e, v1e = Pn(cue, "WhiteSpaceEliminationStrategy", 430, Bn, s3n, qbn), Mun; + var p1e, Dq, m1e, v1e = Pn(cue, "WhiteSpaceEliminationStrategy", 430, _n, s3n, qbn), Tun; b(173, 1, { 173: 1 }, JN), o.a = 0, o.c = !1, o.d = 0, o.e = 0, o.f = 0, o.g = 0, o.i = 0, o.k = !1, o.o = ii, o.p = ii, o.r = 0, o.s = 0, o.t = 0, w(Cj, "Block", 173), b(208, 1, { 208: 1 }, E$), o.a = 0, o.b = 0, o.d = 0, o.e = 0, o.f = 0, w(Cj, "BlockRow", 208), b(319, 1, { 319: 1 }, ZV), o.b = 0, o.c = 0, o.d = 0, o.e = 0, o.f = 0, w(Cj, "BlockStack", 319), b(238, 1, { 238: 1 }, iV, iee), o.a = 0, o.b = 0, o.c = 0, o.d = 0, o.e = 0, o.g = 0; var WLn = w(Cj, "DrawingData", 238); b(369, 23, { 3: 1, 35: 1, 23: 1, 369: 1 }, uy); - var bm, bp, r8, c8, jE, Tun = Pn(Cj, "DrawingDataDescriptor", 369, Bn, Zmn, Kbn), Sun; - b(186, 1, { 186: 1 }, aQ), o.b = 0, o.c = 0, o.e = 0, o.f = 0, w(Cj, "RectRow", 186), b(750, 1, {}, gZ), o.j = 0, w(Zw, fXe, 750), b(1174, 1, {}, Pve), o.$e = function(n) { + var bm, bp, r8, c8, jE, Sun = Pn(Cj, "DrawingDataDescriptor", 369, _n, Zmn, Kbn), Iun; + b(186, 1, { 186: 1 }, aQ), o.b = 0, o.c = 0, o.e = 0, o.f = 0, w(Cj, "RectRow", 186), b(750, 1, {}, gZ), o.j = 0, w(Zw, hXe, 750), b(1174, 1, {}, Ove), o.$e = function(n) { return S1(n.a, n.b); - }, w(Zw, Jie, 1174), b(1175, 1, {}, Nye), o.$e = function(n) { + }, w(Zw, Jie, 1174), b(1175, 1, {}, Fye), o.$e = function(n) { return ovn(this.a, n); - }, w(Zw, hXe, 1175), b(1176, 1, {}, Fye), o.$e = function(n) { + }, w(Zw, lXe, 1175), b(1176, 1, {}, Rye), o.$e = function(n) { return s8n(this.a, n); - }, w(Zw, lXe, 1176), b(1177, 1, {}, Rye), o.$e = function(n) { + }, w(Zw, aXe, 1176), b(1177, 1, {}, _ye), o.$e = function(n) { return c6n(this.a, n); }, w(Zw, "ElkGraphImporter/lambda$3$Type", 1177), b(1178, 1, {}, Bye), o.$e = function(n) { return IAn(this.a, n); - }, w(Zw, aXe, 1178), b(1084, 214, gb, SEe), o.kf = function(n, t) { + }, w(Zw, dXe, 1178), b(1084, 214, gb, IEe), o.kf = function(n, t) { var i, r, c, s, f, h, l, a, d, g, p, v; - for (Gf(n, (N7(), RC)) && (v = zn(re(n, (MF(), _1e))), s = Mte(_6(), v), s && (f = u(Fy(s.f), 214), f.kf(n, t.dh(1)))), Pt(n, Gq, (Wy(), FC)), Pt(n, Hq, (F7(), Jq)), Pt(n, qq, (a7(), BC)), h = u(re(n, (MF(), F1e)), 15).a, t.Tg("Overlap removal", 1), ve(me(re(n, Kun))), l = new vi(), a = new _ye(l), r = new gZ(), i = Jze(r, n), d = !0, c = 0; c < h && d; ) { + for (Gf(n, (N7(), RC)) && (v = zn(re(n, (MF(), B1e))), s = Mte(B6(), v), s && (f = u(Fy(s.f), 214), f.kf(n, t.dh(1)))), Pt(n, Gq, (Wy(), FC)), Pt(n, Hq, (F7(), Jq)), Pt(n, qq, (a7(), _C)), h = u(re(n, (MF(), F1e)), 15).a, t.Tg("Overlap removal", 1), ve(me(re(n, Vun))), l = new vi(), a = new Jye(l), r = new gZ(), i = Gze(r, n), d = !0, c = 0; c < h && d; ) { if (ve(me(re(n, R1e)))) { - if (l.a.$b(), CEn(new I$e(a), i.i), l.a.gc() == 0) + if (l.a.$b(), CEn(new C$e(a), i.i), l.a.gc() == 0) break; i.e = l; } - for (Oy(this.b), Bf(this.b, (E7(), LC), (U4(), EE)), Bf(this.b, DC, i.g), Bf(this.b, NC, (JA(), Rq)), this.a = Z7(this.b, i), p = new x(this.a); p.a < p.c.c.length; ) + for (Oy(this.b), _f(this.b, (E7(), LC), (U4(), EE)), _f(this.b, DC, i.g), _f(this.b, NC, (JA(), Rq)), this.a = Z7(this.b, i), p = new x(this.a); p.a < p.c.c.length; ) g = u(A(p), 43), g.If(i, t.dh(1)); n7n(r, i), d = ve(me(y(i, ($v(), Fse)))), ++c; } - eze(r, i), t.Ug(); - }, w(Zw, "OverlapRemovalLayoutProvider", 1084), b(1085, 1, {}, _ye), w(Zw, "OverlapRemovalLayoutProvider/lambda$0$Type", 1085), b(435, 23, { 3: 1, 35: 1, 23: 1, 435: 1 }, eL); - var LC, DC, NC, Nq = Pn(Zw, "SPOrEPhases", 435, Bn, o3n, Vbn), Iun; - b(1184, 1, {}, IEe), w(Zw, "ShrinkTree", 1184), b(1086, 214, gb, Oje), o.kf = function(n, t) { + nze(r, i), t.Ug(); + }, w(Zw, "OverlapRemovalLayoutProvider", 1084), b(1085, 1, {}, Jye), w(Zw, "OverlapRemovalLayoutProvider/lambda$0$Type", 1085), b(435, 23, { 3: 1, 35: 1, 23: 1, 435: 1 }, eL); + var LC, DC, NC, Nq = Pn(Zw, "SPOrEPhases", 435, _n, o3n, Vbn), Cun; + b(1184, 1, {}, CEe), w(Zw, "ShrinkTree", 1184), b(1086, 214, gb, Lje), o.kf = function(n, t) { var i, r, c, s, f; - Gf(n, (N7(), RC)) && (f = zn(re(n, RC)), c = Mte(_6(), f), c && (s = u(Fy(c.f), 214), s.kf(n, t.dh(1)))), r = new gZ(), i = Jze(r, n), n$n(this.a, i, t.dh(1)), eze(r, i); - }, w(Zw, "ShrinkTreeLayoutProvider", 1086), b(310, 150, { 3: 1, 310: 1, 105: 1, 150: 1 }, ACe), o.c = !1, w("org.eclipse.elk.alg.spore.graph", "Graph", 310), b(477, 23, { 3: 1, 35: 1, 23: 1, 477: 1, 188: 1, 196: 1 }, AAe), o.bg = function() { + Gf(n, (N7(), RC)) && (f = zn(re(n, RC)), c = Mte(B6(), f), c && (s = u(Fy(c.f), 214), s.kf(n, t.dh(1)))), r = new gZ(), i = Gze(r, n), n$n(this.a, i, t.dh(1)), nze(r, i); + }, w(Zw, "ShrinkTreeLayoutProvider", 1086), b(310, 150, { 3: 1, 310: 1, 105: 1, 150: 1 }, xCe), o.c = !1, w("org.eclipse.elk.alg.spore.graph", "Graph", 310), b(477, 23, { 3: 1, 35: 1, 23: 1, 477: 1, 188: 1, 196: 1 }, xAe), o.bg = function() { return BFe(this); }, o.og = function() { return BFe(this); }; - var Fq, k1e = Pn(eg, XXe, 477, Bn, b2n, Xbn), Cun; - b(546, 23, { 3: 1, 35: 1, 23: 1, 546: 1, 188: 1, 196: 1 }, $Me), o.bg = function() { + var Fq, k1e = Pn(eg, KXe, 477, _n, b2n, Xbn), Pun; + b(546, 23, { 3: 1, 35: 1, 23: 1, 546: 1, 188: 1, 196: 1 }, MMe), o.bg = function() { return new cz(); }, o.og = function() { return new cz(); }; - var Rq, Pun = Pn(eg, "OverlapRemovalStrategy", 546, Bn, w2n, Ubn), Oun; + var Rq, Oun = Pn(eg, "OverlapRemovalStrategy", 546, _n, w2n, Ubn), Lun; b(428, 23, { 3: 1, 35: 1, 23: 1, 428: 1 }, aX); - var FC, Bq, y1e = Pn(eg, "RootSelection", 428, Bn, dpn, zbn), Lun; + var FC, _q, y1e = Pn(eg, "RootSelection", 428, _n, dpn, zbn), Dun; b(330, 23, { 3: 1, 35: 1, 23: 1, 330: 1 }, sy); - var j1e, _q, Jq, E1e, A1e, x1e = Pn(eg, "SpanningTreeCostFunction", 330, Bn, evn, Wbn), Dun; - b(996, 1, vh, M9e), o.tf = function(n) { - LUe(n); + var j1e, Bq, Jq, E1e, A1e, x1e = Pn(eg, "SpanningTreeCostFunction", 330, _n, evn, Wbn), Nun; + b(996, 1, vh, T9e), o.tf = function(n) { + DUe(n); }; - var $1e, M1e, Nun, Fun, T1e, S1e, Gq, Hq, qq, Run, Bun, RC; - w(eg, "SporeCompactionOptions", 996), b(997, 1, {}, Ive), o.uf = function() { + var $1e, M1e, Fun, Run, T1e, S1e, Gq, Hq, qq, _un, Bun, RC; + w(eg, "SporeCompactionOptions", 996), b(997, 1, {}, Cve), o.uf = function() { var n; - return n = new Oje(), n; + return n = new Lje(), n; }, o.vf = function(n) { - }, w(eg, "SporeCompactionOptions/SporeCompactionFactory", 997), b(848, 1, vh, F9e), o.tf = function(n) { - Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), H_), ""), "Underlying Layout Algorithm"), "A layout algorithm that is applied to the graph before it is compacted. If this is null, nothing is applied before compaction."), (Vd(), gm)), ke), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), z_), "structure"), "Structure Extraction Strategy"), "This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."), D1e), Vt), J1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), uue), W_), "Tree Construction Strategy"), "Whether a minimum spanning tree or a maximum spanning tree should be constructed."), O1e), Vt), H1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), sue), W_), "Cost Function for Spanning Tree"), "The cost function is used in the creation of the spanning tree."), P1e), Vt), x1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), q_), W_), "Root node for spanning tree construction"), "The identifier of the node that is preferred as the root of the spanning tree. If this is null, the first node is chosen."), null), gm), ke), Pe(Xe)))), ei(n, q_, U_, Uun), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), U_), W_), "Root selection for spanning tree"), "This sets the method used to select a root node for the construction of a spanning tree"), C1e), Vt), y1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), oue), Nre), nKe), "This option defines how the compaction is applied."), I1e), Vt), k1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), fue), Nre), "Orthogonal Compaction"), "Restricts the translation of nodes to orthogonal directions in the compaction phase."), (en(), !1)), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), hue), rKe), "Upper limit for iterations of overlap removal"), null), ie(64)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), lue), rKe), "Whether to run a supplementary scanline overlap check."), null), !0), Pi), ui), Pe(Xe)))), Rqe((new R9e(), n)), LUe((new M9e(), n)); + }, w(eg, "SporeCompactionOptions/SporeCompactionFactory", 997), b(848, 1, vh, R9e), o.tf = function(n) { + Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), HB), ""), "Underlying Layout Algorithm"), "A layout algorithm that is applied to the graph before it is compacted. If this is null, nothing is applied before compaction."), (Vd(), gm)), ye), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), zB), "structure"), "Structure Extraction Strategy"), "This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."), D1e), Vt), J1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), uue), WB), "Tree Construction Strategy"), "Whether a minimum spanning tree or a maximum spanning tree should be constructed."), O1e), Vt), H1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), sue), WB), "Cost Function for Spanning Tree"), "The cost function is used in the creation of the spanning tree."), P1e), Vt), x1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), qB), WB), "Root node for spanning tree construction"), "The identifier of the node that is preferred as the root of the spanning tree. If this is null, the first node is chosen."), null), gm), ye), Pe(Xe)))), ei(n, qB, UB, zun), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), UB), WB), "Root selection for spanning tree"), "This sets the method used to select a root node for the construction of a spanning tree"), C1e), Vt), y1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), oue), Nre), tKe), "This option defines how the compaction is applied."), I1e), Vt), k1e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), fue), Nre), "Orthogonal Compaction"), "Restricts the translation of nodes to orthogonal directions in the compaction phase."), (en(), !1)), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), hue), cKe), "Upper limit for iterations of overlap removal"), null), ie(64)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), lue), cKe), "Whether to run a supplementary scanline overlap check."), null), !0), Pi), ui), Pe(Xe)))), _qe((new _9e(), n)), DUe((new T9e(), n)); }; - var _un, I1e, Jun, Gun, Hun, qun, Uun, zun, C1e, Wun, P1e, Xun, O1e, L1e, D1e, N1e; - w(eg, "SporeMetaDataProvider", 848), b(994, 1, vh, R9e), o.tf = function(n) { - Rqe(n); + var Jun, I1e, Gun, Hun, qun, Uun, zun, Wun, C1e, Xun, P1e, Kun, O1e, L1e, D1e, N1e; + w(eg, "SporeMetaDataProvider", 848), b(994, 1, vh, _9e), o.tf = function(n) { + _qe(n); }; - var Kun, F1e, R1e, B1e, Vun, _1e; - w(eg, "SporeOverlapRemovalOptions", 994), b(995, 1, {}, Ove), o.uf = function() { + var Vun, F1e, R1e, _1e, Qun, B1e; + w(eg, "SporeOverlapRemovalOptions", 994), b(995, 1, {}, Lve), o.uf = function() { var n; - return n = new SEe(), n; + return n = new IEe(), n; }, o.vf = function(n) { - }, w(eg, "SporeOverlapRemovalOptions/SporeOverlapFactory", 995), b(527, 23, { 3: 1, 35: 1, 23: 1, 527: 1, 188: 1, 196: 1 }, yIe), o.bg = function() { - return _Fe(this); + }, w(eg, "SporeOverlapRemovalOptions/SporeOverlapFactory", 995), b(527, 23, { 3: 1, 35: 1, 23: 1, 527: 1, 188: 1, 196: 1 }, jIe), o.bg = function() { + return JFe(this); }, o.og = function() { - return _Fe(this); + return JFe(this); }; - var EE, J1e = Pn(eg, "StructureExtractionStrategy", 527, Bn, g2n, Zbn), Qun; + var EE, J1e = Pn(eg, "StructureExtractionStrategy", 527, _n, g2n, Zbn), Yun; b(427, 23, { 3: 1, 35: 1, 23: 1, 427: 1, 188: 1, 196: 1 }, dX), o.bg = function() { - return GRe(this); + return HRe(this); }, o.og = function() { - return GRe(this); + return HRe(this); }; - var G1e, BC, H1e = Pn(eg, "TreeConstructionStrategy", 427, Bn, bpn, ewn), Yun; - b(1423, 1, lr, Lve), o.pg = function(n) { + var G1e, _C, H1e = Pn(eg, "TreeConstructionStrategy", 427, _n, bpn, ewn), Zun; + b(1423, 1, lr, Dve), o.pg = function(n) { return u(n, 310), new wi(); }, o.If = function(n, t) { r7n(u(n, 310), t); - }, w(cKe, "DelaunayTriangulationPhase", 1423), b(1424, 1, mn, Jye), o.Ad = function(n) { + }, w(uKe, "DelaunayTriangulationPhase", 1423), b(1424, 1, mn, Gye), o.Ad = function(n) { he(this.a, u(n, 68).a); - }, w(cKe, "DelaunayTriangulationPhase/lambda$0$Type", 1424), b(781, 1, lr, sW), o.pg = function(n) { + }, w(uKe, "DelaunayTriangulationPhase/lambda$0$Type", 1424), b(781, 1, lr, sW), o.pg = function(n) { return u(n, 310), new wi(); }, o.If = function(n, t) { this.Ig(u(n, 310), t); }, o.Ig = function(n, t) { var i, r, c; - t.Tg("Minimum spanning tree construction", 1), n.d ? r = n.d.a : r = u(pe(n.i, 0), 68).a, ve(me(y(n, ($v(), bk)))) ? c = BR(n.e, r, (i = n.b, i)) : c = BR(n.e, r, n.b), kFe(this, c, n), t.Ug(); - }, w(X_, "MinSTPhase", 781), b(1426, 781, lr, pje), o.Ig = function(n, t) { + t.Tg("Minimum spanning tree construction", 1), n.d ? r = n.d.a : r = u(pe(n.i, 0), 68).a, ve(me(y(n, ($v(), bk)))) ? c = _R(n.e, r, (i = n.b, i)) : c = _R(n.e, r, n.b), yFe(this, c, n), t.Ug(); + }, w(XB, "MinSTPhase", 781), b(1426, 781, lr, mje), o.Ig = function(n, t) { var i, r, c, s; - t.Tg("Maximum spanning tree construction", 1), i = new Gye(n), n.d ? c = n.d.c : c = u(pe(n.i, 0), 68).c, ve(me(y(n, ($v(), bk)))) ? s = BR(n.e, c, (r = i, r)) : s = BR(n.e, c, i), kFe(this, s, n), t.Ug(); - }, w(X_, "MaxSTPhase", 1426), b(1427, 1, {}, Gye), o.$e = function(n) { + t.Tg("Maximum spanning tree construction", 1), i = new Hye(n), n.d ? c = n.d.c : c = u(pe(n.i, 0), 68).c, ve(me(y(n, ($v(), bk)))) ? s = _R(n.e, c, (r = i, r)) : s = _R(n.e, c, i), yFe(this, s, n), t.Ug(); + }, w(XB, "MaxSTPhase", 1426), b(1427, 1, {}, Hye), o.$e = function(n) { return Wan(this.a, n); - }, w(X_, "MaxSTPhase/lambda$0$Type", 1427), b(1425, 1, mn, Hye), o.Ad = function(n) { + }, w(XB, "MaxSTPhase/lambda$0$Type", 1427), b(1425, 1, mn, qye), o.Ad = function(n) { L1n(this.a, u(n, 68)); - }, w(X_, "MinSTPhase/lambda$0$Type", 1425), b(783, 1, lr, cz), o.pg = function(n) { + }, w(XB, "MinSTPhase/lambda$0$Type", 1425), b(783, 1, lr, cz), o.pg = function(n) { return u(n, 310), new wi(); }, o.If = function(n, t) { gjn(this, u(n, 310), t); - }, o.a = !1, w(K_, "GrowTreePhase", 783), b(784, 1, mn, _K), o.Ad = function(n) { + }, o.a = !1, w(KB, "GrowTreePhase", 783), b(784, 1, mn, BK), o.Ad = function(n) { z4n(this.a, this.b, this.c, u(n, 225)); - }, w(K_, "GrowTreePhase/lambda$0$Type", 784), b(1428, 1, lr, Dve), o.pg = function(n) { + }, w(KB, "GrowTreePhase/lambda$0$Type", 784), b(1428, 1, lr, Nve), o.pg = function(n) { return u(n, 310), new wi(); }, o.If = function(n, t) { C8n(this, u(n, 310), t); - }, w(K_, "ShrinkTreeCompactionPhase", 1428), b(782, 1, mn, JK), o.Ad = function(n) { + }, w(KB, "ShrinkTreeCompactionPhase", 1428), b(782, 1, mn, JK), o.Ad = function(n) { QAn(this.a, this.b, this.c, u(n, 225)); - }, w(K_, "ShrinkTreeCompactionPhase/lambda$0$Type", 782); + }, w(KB, "ShrinkTreeCompactionPhase/lambda$0$Type", 782); var q1e = Zt(Oc, "IGraphElementVisitor"); - b(853, 1, { 524: 1 }, fPe), o.Jg = function(n) { + b(853, 1, { 524: 1 }, hPe), o.Jg = function(n) { var t; t = uTn(this, n), Pc(t, u(rn(this.b, n), 105)), Yxn(this, n, t); }; - var Zun, esn; + var esn, nsn; w(F2, "LayoutConfigurator", 853); var XLn = Zt(F2, "LayoutConfigurator/IPropertyHolderOptionFilter"); b(928, 1, { 1994: 1 }, vhn), o.Kg = function(n, t) { - return $Ee(n, t); - }, w(F2, "LayoutConfigurator/lambda$0$Type", 928), b(926, 1, { 829: 1 }, Nve), o.Lg = function(n, t) { + return MEe(n, t); + }, w(F2, "LayoutConfigurator/lambda$0$Type", 928), b(926, 1, { 829: 1 }, Fve), o.Lg = function(n, t) { return v3(), !n.nf(t); - }, w(F2, "LayoutConfigurator/lambda$1$Type", 926), b(927, 1, { 1994: 1 }, Fve), o.Kg = function(n, t) { + }, w(F2, "LayoutConfigurator/lambda$1$Type", 926), b(927, 1, { 1994: 1 }, Rve), o.Kg = function(n, t) { return v3(), !n.nf(t); - }, w(F2, "LayoutConfigurator/lambda$2$Type", 927), b(929, 1, Vn, dxe), o.Mb = function(n) { + }, w(F2, "LayoutConfigurator/lambda$2$Type", 927), b(929, 1, Vn, bxe), o.Mb = function(n) { return f2n(this.a, this.b, u(n, 1994)); - }, w(F2, "LayoutConfigurator/lambda$3$Type", 929), b(851, 1, {}, Rve), w(F2, "RecursiveGraphLayoutEngine", 851), b(224, 63, ra, X7e, Aa), w(F2, "UnsupportedConfigurationException", 224), b(366, 63, ra, Fp), w(F2, "UnsupportedGraphException", 366), b(749, 1, {}), w(Oc, "AbstractRandomListAccessor", 749), b(441, 749, {}, v9), o.Mg = function() { + }, w(F2, "LayoutConfigurator/lambda$3$Type", 929), b(851, 1, {}, _ve), w(F2, "RecursiveGraphLayoutEngine", 851), b(224, 63, ra, K7e, Aa), w(F2, "UnsupportedConfigurationException", 224), b(366, 63, ra, Fp), w(F2, "UnsupportedGraphException", 366), b(749, 1, {}), w(Oc, "AbstractRandomListAccessor", 749), b(441, 749, {}, v9), o.Mg = function() { return null; }, o.d = !0, o.e = !0, o.f = 0, w(S5, "AlgorithmAssembler", 441), b(1169, 1, Vn, Bve), o.Mb = function(n) { return !!u(n, 95); - }, w(S5, "AlgorithmAssembler/lambda$0$Type", 1169), b(1170, 1, {}, qye), o.Kb = function(n) { + }, w(S5, "AlgorithmAssembler/lambda$0$Type", 1169), b(1170, 1, {}, Uye), o.Kb = function(n) { return tan(this.a, u(n, 95)); - }, w(S5, "AlgorithmAssembler/lambda$1$Type", 1170), b(1171, 1, Vn, _ve), o.Mb = function(n) { + }, w(S5, "AlgorithmAssembler/lambda$1$Type", 1170), b(1171, 1, Vn, Jve), o.Mb = function(n) { return !!u(n, 74); - }, w(S5, "AlgorithmAssembler/lambda$2$Type", 1171), b(1172, 1, mn, Uye), o.Ad = function(n) { + }, w(S5, "AlgorithmAssembler/lambda$2$Type", 1171), b(1172, 1, mn, zye), o.Ad = function(n) { Ys(this.a, u(n, 74)); - }, w(S5, "AlgorithmAssembler/lambda$3$Type", 1172), b(1173, 1, mn, bxe), o.Ad = function(n) { + }, w(S5, "AlgorithmAssembler/lambda$3$Type", 1172), b(1173, 1, mn, wxe), o.Ad = function(n) { Tdn(this.a, this.b, u(n, 196)); - }, w(S5, "AlgorithmAssembler/lambda$4$Type", 1173), b(1299, 1, ct, Jve), o.Le = function(n, t) { + }, w(S5, "AlgorithmAssembler/lambda$4$Type", 1173), b(1299, 1, ct, Gve), o.Le = function(n, t) { return J2n(u(n, 196), u(t, 196)); }, o.Fb = function(n) { return this === n; @@ -39468,14 +39558,14 @@ function WDn() { }, w(S5, "EnumBasedFactoryComparator", 1299), b(74, 749, { 74: 1 }, wi), o.Mg = function() { return new vi(); }, o.a = 0, w(S5, "LayoutProcessorConfiguration", 74), b(1007, 1, { 524: 1 }, B9e), o.Jg = function(n) { - f7(tsn, new zye(n)); + f7(isn, new Wye(n)); }; - var nsn, tsn, isn; - w(gc, "DeprecatedLayoutOptionReplacer", 1007), b(1008, 1, mn, Gve), o.Ad = function(n) { + var tsn, isn, rsn; + w(gc, "DeprecatedLayoutOptionReplacer", 1007), b(1008, 1, mn, Hve), o.Ad = function(n) { Uvn(u(n, 174)); - }, w(gc, "DeprecatedLayoutOptionReplacer/lambda$0$Type", 1008), b(1009, 1, mn, Hve), o.Ad = function(n) { + }, w(gc, "DeprecatedLayoutOptionReplacer/lambda$0$Type", 1008), b(1009, 1, mn, qve), o.Ad = function(n) { skn(u(n, 174)); - }, w(gc, "DeprecatedLayoutOptionReplacer/lambda$1$Type", 1009), b(1010, 1, {}, zye), o.Wd = function(n, t) { + }, w(gc, "DeprecatedLayoutOptionReplacer/lambda$1$Type", 1009), b(1010, 1, {}, Wye), o.Wd = function(n, t) { Sdn(this.a, u(n, 147), u(t, 41)); }, w(gc, "DeprecatedLayoutOptionReplacer/lambda$2$Type", 1010), b(144, 1, { 690: 1, 144: 1 }, sb), o.Fb = function(n) { return PQ(this, n); @@ -39491,10 +39581,10 @@ function WDn() { return "Layout Algorithm: " + this.c; }; var KLn = w(gc, "LayoutAlgorithmData", 144); - b(289, 1, {}, S0), w(gc, "LayoutAlgorithmData/Builder", 289), b(707, 1, { 524: 1 }, qve), o.Jg = function(n) { - sOe(n); + b(289, 1, {}, S0), w(gc, "LayoutAlgorithmData/Builder", 289), b(707, 1, { 524: 1 }, Uve), o.Jg = function(n) { + oOe(n); }, w(gc, "LayoutAlgorithmResolver", 707), b(233, 1, { 690: 1, 233: 1 }, o3), o.Fb = function(n) { - return N(n, 233) ? _e(this.b, u(n, 233).b) : !1; + return N(n, 233) ? Be(this.b, u(n, 233).b) : !1; }, o.Ng = function() { return this.a; }, o.Og = function() { @@ -39505,59 +39595,59 @@ function WDn() { return Ra(this.b); }, o.Ib = function() { return "Layout Type: " + this.b; - }, w(gc, "LayoutCategoryData", 233), b(357, 1, {}, Tp), w(gc, "LayoutCategoryData/Builder", 357), b(860, 1, {}, $qe); + }, w(gc, "LayoutCategoryData", 233), b(357, 1, {}, Tp), w(gc, "LayoutCategoryData/Builder", 357), b(860, 1, {}, Mqe); var Uq; - w(gc, "LayoutMetaDataService", 860), b(861, 1, {}, aIe), w(gc, "LayoutMetaDataService/Registry", 861), b(475, 1, { 475: 1 }, uz), w(gc, "LayoutMetaDataService/Registry/Triple", 475), b(862, 1, J2, Uve), o.Pg = function() { + w(gc, "LayoutMetaDataService", 860), b(861, 1, {}, dIe), w(gc, "LayoutMetaDataService/Registry", 861), b(475, 1, { 475: 1 }, uz), w(gc, "LayoutMetaDataService/Registry/Triple", 475), b(862, 1, J2, zve), o.Pg = function() { return new er(); - }, w(gc, "LayoutMetaDataService/lambda$0$Type", 862), b(863, 1, ng, zve), o.Qg = function(n) { + }, w(gc, "LayoutMetaDataService/lambda$0$Type", 862), b(863, 1, ng, Wve), o.Qg = function(n) { return kr(u(n, 8)); - }, w(gc, "LayoutMetaDataService/lambda$1$Type", 863), b(872, 1, J2, Wve), o.Pg = function() { + }, w(gc, "LayoutMetaDataService/lambda$1$Type", 863), b(872, 1, J2, Xve), o.Pg = function() { return new le(); - }, w(gc, "LayoutMetaDataService/lambda$10$Type", 872), b(873, 1, ng, Xve), o.Qg = function(n) { + }, w(gc, "LayoutMetaDataService/lambda$10$Type", 872), b(873, 1, ng, Kve), o.Qg = function(n) { return new os(u(n, 13)); - }, w(gc, "LayoutMetaDataService/lambda$11$Type", 873), b(874, 1, J2, Kve), o.Pg = function() { + }, w(gc, "LayoutMetaDataService/lambda$11$Type", 873), b(874, 1, J2, Vve), o.Pg = function() { return new Dt(); - }, w(gc, "LayoutMetaDataService/lambda$12$Type", 874), b(875, 1, ng, Vve), o.Qg = function(n) { + }, w(gc, "LayoutMetaDataService/lambda$12$Type", 874), b(875, 1, ng, Qve), o.Qg = function(n) { return My(u(n, 66)); - }, w(gc, "LayoutMetaDataService/lambda$13$Type", 875), b(876, 1, J2, Qve), o.Pg = function() { + }, w(gc, "LayoutMetaDataService/lambda$13$Type", 875), b(876, 1, J2, Yve), o.Pg = function() { return new vi(); - }, w(gc, "LayoutMetaDataService/lambda$14$Type", 876), b(877, 1, ng, Yve), o.Qg = function(n) { + }, w(gc, "LayoutMetaDataService/lambda$14$Type", 876), b(877, 1, ng, Zve), o.Qg = function(n) { return AD(u(n, 47)); - }, w(gc, "LayoutMetaDataService/lambda$15$Type", 877), b(878, 1, J2, Zve), o.Pg = function() { + }, w(gc, "LayoutMetaDataService/lambda$15$Type", 877), b(878, 1, J2, e5e), o.Pg = function() { return new ul(); - }, w(gc, "LayoutMetaDataService/lambda$16$Type", 878), b(879, 1, ng, e5e), o.Qg = function(n) { + }, w(gc, "LayoutMetaDataService/lambda$16$Type", 878), b(879, 1, ng, n5e), o.Qg = function(n) { return C$(u(n, 47)); - }, w(gc, "LayoutMetaDataService/lambda$17$Type", 879), b(880, 1, J2, n5e), o.Pg = function() { + }, w(gc, "LayoutMetaDataService/lambda$17$Type", 879), b(880, 1, J2, t5e), o.Pg = function() { return new nO(); - }, w(gc, "LayoutMetaDataService/lambda$18$Type", 880), b(881, 1, ng, t5e), o.Qg = function(n) { - return JTe(u(n, 141)); - }, w(gc, "LayoutMetaDataService/lambda$19$Type", 881), b(864, 1, J2, i5e), o.Pg = function() { + }, w(gc, "LayoutMetaDataService/lambda$18$Type", 880), b(881, 1, ng, i5e), o.Qg = function(n) { + return GTe(u(n, 141)); + }, w(gc, "LayoutMetaDataService/lambda$19$Type", 881), b(864, 1, J2, r5e), o.Pg = function() { return new ms(); - }, w(gc, "LayoutMetaDataService/lambda$2$Type", 864), b(865, 1, ng, r5e), o.Qg = function(n) { + }, w(gc, "LayoutMetaDataService/lambda$2$Type", 864), b(865, 1, ng, c5e), o.Qg = function(n) { return new PA(u(n, 78)); - }, w(gc, "LayoutMetaDataService/lambda$3$Type", 865), b(866, 1, J2, c5e), o.Pg = function() { + }, w(gc, "LayoutMetaDataService/lambda$3$Type", 865), b(866, 1, J2, u5e), o.Pg = function() { return new O4(); - }, w(gc, "LayoutMetaDataService/lambda$4$Type", 866), b(867, 1, ng, u5e), o.Qg = function(n) { + }, w(gc, "LayoutMetaDataService/lambda$4$Type", 866), b(867, 1, ng, s5e), o.Qg = function(n) { return new DL(u(n, 140)); - }, w(gc, "LayoutMetaDataService/lambda$5$Type", 867), b(868, 1, J2, s5e), o.Pg = function() { + }, w(gc, "LayoutMetaDataService/lambda$5$Type", 867), b(868, 1, J2, o5e), o.Pg = function() { return new Op(); - }, w(gc, "LayoutMetaDataService/lambda$6$Type", 868), b(869, 1, ng, o5e), o.Qg = function(n) { + }, w(gc, "LayoutMetaDataService/lambda$6$Type", 868), b(869, 1, ng, f5e), o.Qg = function(n) { return new LK(u(n, 104)); - }, w(gc, "LayoutMetaDataService/lambda$7$Type", 869), b(870, 1, J2, f5e), o.Pg = function() { + }, w(gc, "LayoutMetaDataService/lambda$7$Type", 869), b(870, 1, J2, h5e), o.Pg = function() { return new OP(); - }, w(gc, "LayoutMetaDataService/lambda$8$Type", 870), b(871, 1, ng, h5e), o.Qg = function(n) { - return new wDe(u(n, 379)); + }, w(gc, "LayoutMetaDataService/lambda$8$Type", 870), b(871, 1, ng, l5e), o.Qg = function(n) { + return new gDe(u(n, 379)); }, w(gc, "LayoutMetaDataService/lambda$9$Type", 871); var zq = Zt(gj, "IProperty"); b(21, 1, { 35: 1, 690: 1, 21: 1, 147: 1 }, Ee), o.Dd = function(n) { return X1n(this, u(n, 147)); }, o.Fb = function(n) { - return N(n, 21) ? _e(this.f, u(n, 21).f) : N(n, 147) && _e(this.f, u(n, 147).Og()); + return N(n, 21) ? Be(this.f, u(n, 21).f) : N(n, 147) && Be(this.f, u(n, 147).Og()); }, o.Rg = function() { var n; if (N(this.b, 4)) { if (n = ree(this.b), n == null) - throw $(new qr(fKe + this.f + "'. Make sure it's type is registered with the " + (Gl(XE), XE.k) + aue)); + throw $(new qr(hKe + this.f + "'. Make sure it's type is registered with the " + (Gl(XE), XE.k) + aue)); return n; } else return this.b; @@ -39572,25 +39662,25 @@ function WDn() { }, o.Ib = function() { return "Layout Option: " + this.f; }, w(gc, "LayoutOptionData", 21), b(24, 1, {}, je), w(gc, "LayoutOptionData/Builder", 24), b(160, 23, { 3: 1, 35: 1, 23: 1, 160: 1 }, oy); - var Zf, aa, mi, Xe, t1, xh = Pn(gc, "LayoutOptionData/Target", 160, Bn, nvn, nwn), rsn; + var Zf, aa, mi, Xe, t1, xh = Pn(gc, "LayoutOptionData/Target", 160, _n, nvn, nwn), csn; b(285, 23, { 3: 1, 35: 1, 23: 1, 285: 1 }, Hp); - var Pi, ur, Vt, wm, pr, $h, gm, U1e, csn = Pn(gc, "LayoutOptionData/Type", 285, Bn, w5n, twn), usn, u8, z1e; + var Pi, ur, Vt, wm, pr, $h, gm, U1e, usn = Pn(gc, "LayoutOptionData/Type", 285, _n, w5n, twn), ssn, u8, z1e; b(119, 1, { 119: 1 }, zp, df, m$), o.Fb = function(n) { var t; return n == null || !N(n, 119) ? !1 : (t = u(n, 119), Gc(this.c, t.c) && Gc(this.d, t.d) && Gc(this.b, t.b) && Gc(this.a, t.a)); }, o.Hb = function() { - return xM(I(T(Li, 1), Ve, 1, 5, [this.c, this.d, this.b, this.a])); + return xM(I(S(Li, 1), Ve, 1, 5, [this.c, this.d, this.b, this.a])); }, o.Ib = function() { return "Rect[x=" + this.c + ",y=" + this.d + ",w=" + this.b + ",h=" + this.a + "]"; }, o.a = 0, o.b = 0, o.c = 0, o.d = 0, w(Aj, "ElkRectangle", 119), b(8, 1, { 3: 1, 4: 1, 8: 1, 414: 1 }, er, LD, ue, vr), o.Fb = function(n) { - return ANe(this, n); + return xNe(this, n); }, o.Hb = function() { return Up(this.a) + uyn(Up(this.b)); }, o.ag = function(n) { var t, i, r, c; - for (r = 0; r < n.length && fRe((bn(r, n.length), n.charCodeAt(r)), rXe); ) + for (r = 0; r < n.length && hRe((bn(r, n.length), n.charCodeAt(r)), cXe); ) ++r; - for (t = n.length; t > 0 && fRe((bn(t - 1, n.length), n.charCodeAt(t - 1)), cXe); ) + for (t = n.length; t > 0 && hRe((bn(t - 1, n.length), n.charCodeAt(t - 1)), uXe); ) --t; if (r >= t) throw $(new on("The given string does not contain any numbers.")); @@ -39600,13 +39690,13 @@ function WDn() { try { this.a = Fw(Rw(c[0])), this.b = Fw(Rw(c[1])); } catch (s) { - throw s = gi(s), N(s, 131) ? (i = s, $(new on(uXe + i))) : $(s); + throw s = gi(s), N(s, 131) ? (i = s, $(new on(sXe + i))) : $(s); } }, o.Ib = function() { return "(" + this.a + "," + this.b + ")"; }, o.a = 0, o.b = 0; var Ji = w(Aj, "KVector", 8); - b(78, 66, { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 66: 1, 16: 1, 78: 1, 414: 1 }, ms, PA, xMe), o.Nc = function() { + b(78, 66, { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 66: 1, 16: 1, 78: 1, 414: 1 }, ms, PA, $Me), o.Nc = function() { return S6n(this); }, o.ag = function(n) { var t, i, r, c, s, f; @@ -39626,77 +39716,77 @@ function WDn() { }; var W1e = w(Aj, "KVectorChain", 78); b(256, 23, { 3: 1, 35: 1, 23: 1, 256: 1 }, n6); - var Wq, _C, JC, AE, xE, GC, X1e = Pn(vu, "Alignment", 256, Bn, Ivn, swn), ssn; - b(975, 1, vh, _9e), o.tf = function(n) { - Yqe(n); + var Wq, BC, JC, AE, xE, GC, X1e = Pn(vu, "Alignment", 256, _n, Ivn, swn), osn; + b(975, 1, vh, J9e), o.tf = function(n) { + Zqe(n); }; - var K1e, Xq, osn, V1e, Q1e, fsn, Y1e, hsn, lsn, Z1e, ede, asn; - w(vu, "BoxLayouterOptions", 975), b(976, 1, {}, l5e), o.uf = function() { + var K1e, Xq, fsn, V1e, Q1e, hsn, Y1e, lsn, asn, Z1e, ede, dsn; + w(vu, "BoxLayouterOptions", 975), b(976, 1, {}, a5e), o.uf = function() { var n; - return n = new b5e(), n; + return n = new w5e(), n; }, o.vf = function(n) { }, w(vu, "BoxLayouterOptions/BoxFactory", 976), b(299, 23, { 3: 1, 35: 1, 23: 1, 299: 1 }, t6); - var s8, Kq, o8, f8, h8, Vq, Qq = Pn(vu, "ContentAlignment", 299, Bn, Cvn, own), dsn; + var s8, Kq, o8, f8, h8, Vq, Qq = Pn(vu, "ContentAlignment", 299, _n, Cvn, own), bsn; b(689, 1, vh, lz), o.tf = function(n) { - Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), lKe), ""), "Layout Algorithm"), "Select a specific layout algorithm."), (Vd(), gm)), ke), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), aKe), ""), "Resolved Layout Algorithm"), "Meta data associated with the selected algorithm."), $h), KLn), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), nce), ""), "Alignment"), "Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."), nde), Vt), X1e), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), v5), ""), "Aspect Ratio"), "The desired aspect ratio of the drawing, that is the quotient of width by height."), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), wue), ""), "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."), $h), W1e), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), wS), ""), "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."), ide), wm), Qq), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Sj), ""), "Debug Mode"), "Whether additional debug information shall be generated."), (en(), !1)), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), $_), ""), "Direction"), "Overall direction of edges: horizontal (right / left) or vertical (down / up)."), rde), Vt), a8), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Tj), ""), "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."), sde), Vt), lU), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), due), ""), "Expand Nodes"), "If active, nodes are expanded to fill the area of their parent."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), bS), ""), "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`."), fde), Vt), Yde), Rt(Xe, I(T(xh, 1), ce, 160, 0, [mi]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Qw), ""), "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."), kde), $h), uoe), Rt(Xe, I(T(xh, 1), ce, 160, 0, [mi]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), B9), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), pS), ""), "interactive Layout"), "Whether the graph should be changeable interactively and by setting constraints"), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), _9), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), FB), ""), "Port Constraints"), "Defines constraints of the position of the ports of a node."), xde), Vt), n0e), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), gS), ""), "Position"), "The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."), $h), Ji), Rt(mi, I(T(xh, 1), ce, 160, 0, [t1, aa]))))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), mj), ""), "Priority"), "Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."), pr), Ii), Rt(mi, I(T(xh, 1), ce, 160, 0, [Zf]))))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), KT), ""), "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)."), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), R9), ""), "Separate Connected Components"), "Whether each connected component should be processed separately."), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ace), ""), "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."), ade), $h), W1e), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), gce), ""), "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), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), pce), ""), "Hypernode"), "Whether the node should be handled as a hypernode."), !1), Pi), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), jLn), ""), "Label Manager"), "Label managers can shorten labels upon a layout algorithm's request."), $h), nDn), Rt(Xe, I(T(xh, 1), ce, 160, 0, [aa]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), dKe), ""), "Softwrapping Fuzziness"), "Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line."), 0), ur), Ei), Pe(aa)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), vce), ""), "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."), dde), $h), coe), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Zre), ""), "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), ui), Rt(mi, I(T(xh, 1), ce, 160, 0, [Zf, t1, aa]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), bKe), ""), "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), ur), Ei), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), wKe), ""), "Child Area Width"), "The width of the area occupied by the laid out children of a node."), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), gKe), ""), "Child Area Height"), "The height of the area occupied by the laid out children of a node."), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), vj), ""), uKe), "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), ui), Pe(Xe)))), ei(n, vj, pb, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), pKe), ""), "Animate"), "Whether the shift from the old layout to the new computed layout shall be animated."), !0), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), mKe), ""), "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'."), ie(100)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), vKe), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), kKe), ""), "Maximal Animation Time"), "The maximal time for animations, in milliseconds."), ie(4e3)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), yKe), ""), "Minimal Animation Time"), "The minimal time for animations, in milliseconds."), ie(400)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), jKe), ""), "Progress Bar"), "Whether a progress bar shall be displayed during layout computations."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), EKe), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), AKe), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), xKe), ""), "Zoom to Fit"), "Whether the zoom level shall be set to view the whole diagram after layout."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), bue), "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."), tde), Vt), b0e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), $Ke), "json"), "Shape Coords"), "For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports."), lde), Vt), r0e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), MKe), "json"), "Edge Coords"), "For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."), hde), Vt), Bde), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Jre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Gre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Hre), yh), "Components Spacing"), "Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."), 20), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), qre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), NB), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), x_), yh), "Edge Node Spacing"), "Spacing to be preserved between nodes and edges."), 10), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Ure), yh), "Label Spacing"), "Determines the amount of space to be left between two labels of the same graph element."), 0), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Xre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), zre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Wre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Vw), yh), "Node Spacing"), "The minimal distance to be preserved between each two nodes."), 20), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Kre), yh), "Node Self Loop Spacing"), "Spacing to be preserved between a node and its self loops."), 10), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Vre), yh), "Port Spacing"), "Spacing between pairs of ports of the same node."), 10), ur), Ei), Rt(Xe, I(T(xh, 1), ce, 160, 0, [mi]))))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), Qre), yh), "Individual Spacing"), "Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."), $h), fon), Rt(mi, I(T(xh, 1), ce, 160, 0, [Zf, t1, aa]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), kce), yh), "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."), Dde), $h), coe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), T_), IKe), "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)."), pr), Ii), Rt(Xe, I(T(xh, 1), ce, 160, 0, [mi]))))), ei(n, T_, M_, xsn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), M_), IKe), "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."), yde), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), rce), CKe), "Node Label Padding"), "Define padding for node labels that are placed inside of a node."), wde), $h), uoe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), y5), CKe), "Node Label Placement"), "Hints for where node labels are to be placed; if empty, the node label's position is not modified."), gde), wm), Fr), Rt(mi, I(T(xh, 1), ce, 160, 0, [aa]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), sce), xS), "Port Alignment"), "Defines the default port distribution for a node. May be overridden for each side individually."), Ede), Vt), g8), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), oce), xS), "Port Alignment (North)"), "Defines how ports on the northern side are placed, overriding the node's general port alignment."), Vt), g8), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), fce), xS), "Port Alignment (South)"), "Defines how ports on the southern side are placed, overriding the node's general port alignment."), Vt), g8), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), hce), xS), "Port Alignment (West)"), "Defines how ports on the western side are placed, overriding the node's general port alignment."), Vt), g8), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), lce), xS), "Port Alignment (East)"), "Defines how ports on the eastern side are placed, overriding the node's general port alignment."), Vt), g8), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), R2), Z_), "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."), pde), wm), v8), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), H3), Z_), "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."), vde), wm), c0e), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), q3), Z_), "Node Size Minimum"), "The minimal size to which a node can be reduced."), mde), $h), Ji), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), k5), Z_), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), bce), A_), "Edge Label Placement"), "Gives a hint on where to put edge labels."), cde), Vt), _de), Pe(aa)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), VT), A_), "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), ui), Pe(aa)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), ELn), "font"), "Font Name"), "Font name used for a label."), gm), ke), Pe(aa)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), TKe), "font"), "Font Size"), "Font size used for a label."), pr), Ii), Pe(aa)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), mce), eJ), "Port Anchor Offset"), "The offset to the port position where connections shall be attached."), $h), Ji), Pe(t1)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), wce), eJ), "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."), pr), Ii), Pe(t1)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ece), eJ), "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."), Tde), Vt), Mr), Pe(t1)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), Yre), eJ), "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."), ur), Ei), Pe(t1)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), j5), mue), "Port Label Placement"), "Decides on a placement method for port labels; if empty, the node label's position is not modified."), $de), wm), KC), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), cce), mue), "Port Labels Next to Port"), "Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."), !1), Pi), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), uce), mue), "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), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Q_), C5), "Number of size categories"), "Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."), ie(3)), pr), Ii), Pe(Xe)))), ei(n, Q_, Y_, Fsn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), gue), C5), "Weight of a node containing children for determining the graph size"), "When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five."), ie(4)), pr), Ii), Pe(Xe)))), ei(n, gue, Q_, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), kj), C5), "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), ur), Ei), Pe(Xe)))), ei(n, kj, pb, Lsn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Y_), C5), "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), $h), VLn), Pe(mi)))), ei(n, Y_, pb, Dsn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), yj), C5), "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), ur), Ei), Rt(Xe, I(T(xh, 1), ce, 160, 0, [mi]))))), ei(n, yj, pb, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), jj), C5), "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), ur), Ei), Rt(Xe, I(T(xh, 1), ce, 160, 0, [mi]))))), ei(n, jj, pb, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), pb), C5), "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), Vt), s0e), Pe(mi)))), ei(n, pb, k5, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), pue), C5), "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), ur), Ei), Pe(Xe)))), ei(n, pue, pb, Osn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), tce), PKe), "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), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ice), PKe), "Inside Self Loop"), "Whether a self loop should be routed inside a node instead of around that node."), !1), Pi), ui), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), dce), "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), ur), Ei), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), SKe), "edge"), "Edge Type"), "The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."), ode), Vt), zde), Pe(Zf)))), z4(n, new o3(_4(Jm(_m(new Tp(), nn), "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.'))), z4(n, new o3(_4(Jm(_m(new Tp(), "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.`))), z4(n, new o3(_4(Jm(_m(new Tp(), $u), "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."))), z4(n, new o3(_4(Jm(_m(new Tp(), "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."))), z4(n, new o3(_4(Jm(_m(new Tp(), qXe), "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."))), z4(n, new o3(_4(Jm(_m(new Tp(), "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."))), z4(n, new o3(_4(Jm(_m(new Tp(), xo), "Radial"), "Radial layout algorithms usually position the nodes of the graph on concentric circles."))), Nqe((new J9e(), n)), Yqe((new _9e(), n)), oqe((new G9e(), n)); + Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), aKe), ""), "Layout Algorithm"), "Select a specific layout algorithm."), (Vd(), gm)), ye), Pe((qh(), Xe))))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), dKe), ""), "Resolved Layout Algorithm"), "Meta data associated with the selected algorithm."), $h), KLn), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), nce), ""), "Alignment"), "Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."), nde), Vt), X1e), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), v5), ""), "Aspect Ratio"), "The desired aspect ratio of the drawing, that is the quotient of width by height."), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), wue), ""), "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."), $h), W1e), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), wS), ""), "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."), ide), wm), Qq), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Sj), ""), "Debug Mode"), "Whether additional debug information shall be generated."), (en(), !1)), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), $B), ""), "Direction"), "Overall direction of edges: horizontal (right / left) or vertical (down / up)."), rde), Vt), a8), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Tj), ""), "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."), sde), Vt), lU), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), due), ""), "Expand Nodes"), "If active, nodes are expanded to fill the area of their parent."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), bS), ""), "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`."), fde), Vt), Yde), Rt(Xe, I(S(xh, 1), ce, 160, 0, [mi]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Qw), ""), "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."), kde), $h), uoe), Rt(Xe, I(S(xh, 1), ce, 160, 0, [mi]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), _9), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), pS), ""), "interactive Layout"), "Whether the graph should be changeable interactively and by setting constraints"), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), B9), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), F_), ""), "Port Constraints"), "Defines constraints of the position of the ports of a node."), xde), Vt), n0e), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), gS), ""), "Position"), "The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."), $h), Ji), Rt(mi, I(S(xh, 1), ce, 160, 0, [t1, aa]))))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), mj), ""), "Priority"), "Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."), pr), Ii), Rt(mi, I(S(xh, 1), ce, 160, 0, [Zf]))))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), KT), ""), "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)."), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), R9), ""), "Separate Connected Components"), "Whether each connected component should be processed separately."), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ace), ""), "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."), ade), $h), W1e), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), gce), ""), "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), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), pce), ""), "Hypernode"), "Whether the node should be handled as a hypernode."), !1), Pi), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), jLn), ""), "Label Manager"), "Label managers can shorten labels upon a layout algorithm's request."), $h), nDn), Rt(Xe, I(S(xh, 1), ce, 160, 0, [aa]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), bKe), ""), "Softwrapping Fuzziness"), "Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line."), 0), ur), Ei), Pe(aa)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), vce), ""), "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."), dde), $h), coe), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Zre), ""), "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), ui), Rt(mi, I(S(xh, 1), ce, 160, 0, [Zf, t1, aa]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), wKe), ""), "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), ur), Ei), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), gKe), ""), "Child Area Width"), "The width of the area occupied by the laid out children of a node."), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), pKe), ""), "Child Area Height"), "The height of the area occupied by the laid out children of a node."), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), vj), ""), sKe), "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), ui), Pe(Xe)))), ei(n, vj, pb, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), mKe), ""), "Animate"), "Whether the shift from the old layout to the new computed layout shall be animated."), !0), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), vKe), ""), "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'."), ie(100)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), kKe), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), yKe), ""), "Maximal Animation Time"), "The maximal time for animations, in milliseconds."), ie(4e3)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), jKe), ""), "Minimal Animation Time"), "The minimal time for animations, in milliseconds."), ie(400)), pr), Ii), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), EKe), ""), "Progress Bar"), "Whether a progress bar shall be displayed during layout computations."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), AKe), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), xKe), ""), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), $Ke), ""), "Zoom to Fit"), "Whether the zoom level shall be set to view the whole diagram after layout."), !1), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), bue), "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."), tde), Vt), b0e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), MKe), "json"), "Shape Coords"), "For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports."), lde), Vt), r0e), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), TKe), "json"), "Edge Coords"), "For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."), hde), Vt), _de), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Jre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Gre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Hre), yh), "Components Spacing"), "Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."), 20), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), qre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), N_), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), xB), yh), "Edge Node Spacing"), "Spacing to be preserved between nodes and edges."), 10), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Ure), yh), "Label Spacing"), "Determines the amount of space to be left between two labels of the same graph element."), 0), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Xre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), zre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Wre), yh), "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), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Vw), yh), "Node Spacing"), "The minimal distance to be preserved between each two nodes."), 20), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Kre), yh), "Node Self Loop Spacing"), "Spacing to be preserved between a node and its self loops."), 10), ur), Ei), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), Vre), yh), "Port Spacing"), "Spacing between pairs of ports of the same node."), 10), ur), Ei), Rt(Xe, I(S(xh, 1), ce, 160, 0, [mi]))))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), Qre), yh), "Individual Spacing"), "Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."), $h), hon), Rt(mi, I(S(xh, 1), ce, 160, 0, [Zf, t1, aa]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), kce), yh), "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."), Dde), $h), coe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), TB), CKe), "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)."), pr), Ii), Rt(Xe, I(S(xh, 1), ce, 160, 0, [mi]))))), ei(n, TB, MB, $sn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), MB), CKe), "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."), yde), Pi), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), rce), PKe), "Node Label Padding"), "Define padding for node labels that are placed inside of a node."), wde), $h), uoe), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), y5), PKe), "Node Label Placement"), "Hints for where node labels are to be placed; if empty, the node label's position is not modified."), gde), wm), Fr), Rt(mi, I(S(xh, 1), ce, 160, 0, [aa]))))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), sce), xS), "Port Alignment"), "Defines the default port distribution for a node. May be overridden for each side individually."), Ede), Vt), g8), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), oce), xS), "Port Alignment (North)"), "Defines how ports on the northern side are placed, overriding the node's general port alignment."), Vt), g8), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), fce), xS), "Port Alignment (South)"), "Defines how ports on the southern side are placed, overriding the node's general port alignment."), Vt), g8), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), hce), xS), "Port Alignment (West)"), "Defines how ports on the western side are placed, overriding the node's general port alignment."), Vt), g8), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), lce), xS), "Port Alignment (East)"), "Defines how ports on the eastern side are placed, overriding the node's general port alignment."), Vt), g8), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), R2), ZB), "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."), pde), wm), v8), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), H3), ZB), "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."), vde), wm), c0e), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), q3), ZB), "Node Size Minimum"), "The minimal size to which a node can be reduced."), mde), $h), Ji), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), k5), ZB), "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), ui), Pe(Xe)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), bce), AB), "Edge Label Placement"), "Gives a hint on where to put edge labels."), cde), Vt), Bde), Pe(aa)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), VT), AB), "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), ui), Pe(aa)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), ELn), "font"), "Font Name"), "Font name used for a label."), gm), ye), Pe(aa)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), SKe), "font"), "Font Size"), "Font size used for a label."), pr), Ii), Pe(aa)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), mce), eJ), "Port Anchor Offset"), "The offset to the port position where connections shall be attached."), $h), Ji), Pe(t1)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), wce), eJ), "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."), pr), Ii), Pe(t1)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ece), eJ), "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."), Tde), Vt), Mr), Pe(t1)))), Ce(n, new Ee(Se(Te(Ie(Ae(Me(xe($e(new je(), Yre), eJ), "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."), ur), Ei), Pe(t1)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), j5), mue), "Port Label Placement"), "Decides on a placement method for port labels; if empty, the node label's position is not modified."), $de), wm), KC), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), cce), mue), "Port Labels Next to Port"), "Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."), !1), Pi), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), uce), mue), "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), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), QB), C5), "Number of size categories"), "Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."), ie(3)), pr), Ii), Pe(Xe)))), ei(n, QB, YB, Rsn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), gue), C5), "Weight of a node containing children for determining the graph size"), "When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five."), ie(4)), pr), Ii), Pe(Xe)))), ei(n, gue, QB, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), kj), C5), "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), ur), Ei), Pe(Xe)))), ei(n, kj, pb, Dsn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), YB), C5), "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), $h), VLn), Pe(mi)))), ei(n, YB, pb, Nsn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), yj), C5), "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), ur), Ei), Rt(Xe, I(S(xh, 1), ce, 160, 0, [mi]))))), ei(n, yj, pb, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), jj), C5), "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), ur), Ei), Rt(Xe, I(S(xh, 1), ce, 160, 0, [mi]))))), ei(n, jj, pb, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), pb), C5), "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), Vt), s0e), Pe(mi)))), ei(n, pb, k5, null), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), pue), C5), "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), ur), Ei), Pe(Xe)))), ei(n, pue, pb, Lsn), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), tce), OKe), "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), ui), Pe(mi)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), ice), OKe), "Inside Self Loop"), "Whether a self loop should be routed inside a node instead of around that node."), !1), Pi), ui), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), dce), "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), ur), Ei), Pe(Zf)))), Ce(n, new Ee(Se(Te(Ie(Re(Ae(Me(xe($e(new je(), IKe), "edge"), "Edge Type"), "The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."), ode), Vt), zde), Pe(Zf)))), z4(n, new o3(B4(Jm(Bm(new Tp(), nn), "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.'))), z4(n, new o3(B4(Jm(Bm(new Tp(), "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.`))), z4(n, new o3(B4(Jm(Bm(new Tp(), $u), "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."))), z4(n, new o3(B4(Jm(Bm(new Tp(), "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."))), z4(n, new o3(B4(Jm(Bm(new Tp(), UXe), "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."))), z4(n, new o3(B4(Jm(Bm(new Tp(), "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."))), z4(n, new o3(B4(Jm(Bm(new Tp(), xo), "Radial"), "Radial layout algorithms usually position the nodes of the graph on concentric circles."))), Fqe((new G9e(), n)), Zqe((new J9e(), n)), fqe((new H9e(), n)); }; - var pm, bsn, nde, a4, wsn, gsn, tde, Ag, xg, psn, $E, ide, ME, m0, rde, Yq, Zq, cde, ude, sde, msn, ode, vsn, wp, fde, ksn, TE, eU, SE, nU, ysn, hde, jsn, lde, gp, ade, d4, dde, bde, wde, pp, gde, v0, pde, $g, mp, mde, fd, vde, HC, IE, Ml, kde, Esn, yde, Asn, xsn, jde, Ede, tU, iU, rU, cU, Ade, Ss, l8, xde, uU, sU, Mg, $de, Mde, vp, Tde, mm, CE, oU, Tg, $sn, fU, Msn, Tsn, Ssn, Isn, Sde, Ide, vm, Cde, qC, Pde, Ode, i1, Csn, Lde, Dde, Nde, b4, Sg, w4, km, Psn, Osn, UC, Lsn, zC, Dsn, Nsn, Fsn, Rsn; + var pm, wsn, nde, a4, gsn, psn, tde, Ag, xg, msn, $E, ide, ME, m0, rde, Yq, Zq, cde, ude, sde, vsn, ode, ksn, wp, fde, ysn, TE, eU, SE, nU, jsn, hde, Esn, lde, gp, ade, d4, dde, bde, wde, pp, gde, v0, pde, $g, mp, mde, fd, vde, HC, IE, Ml, kde, Asn, yde, xsn, $sn, jde, Ede, tU, iU, rU, cU, Ade, Ss, l8, xde, uU, sU, Mg, $de, Mde, vp, Tde, mm, CE, oU, Tg, Msn, fU, Tsn, Ssn, Isn, Csn, Sde, Ide, vm, Cde, qC, Pde, Ode, i1, Psn, Lde, Dde, Nde, b4, Sg, w4, km, Osn, Lsn, UC, Dsn, zC, Nsn, Fsn, Rsn, _sn; w(vu, "CoreOptions", 689), b(86, 23, { 3: 1, 35: 1, 23: 1, 86: 1 }, fy); - var Mh, Qr, nc, Th, Io, a8 = Pn(vu, "Direction", 86, Bn, qmn, rwn), Bsn; + var Mh, Qr, nc, Th, Io, a8 = Pn(vu, "Direction", 86, _n, qmn, rwn), Bsn; b(278, 23, { 3: 1, 35: 1, 23: 1, 278: 1 }, sx); - var WC, PE, Fde, Rde, Bde = Pn(vu, "EdgeCoords", 278, Bn, dmn, cwn), _sn; + var WC, PE, Fde, Rde, _de = Pn(vu, "EdgeCoords", 278, _n, dmn, cwn), Jsn; b(279, 23, { 3: 1, 35: 1, 23: 1, 279: 1 }, nL); - var g4, Ig, p4, _de = Pn(vu, "EdgeLabelPlacement", 279, Bn, h3n, uwn), Jsn; + var g4, Ig, p4, Bde = Pn(vu, "EdgeLabelPlacement", 279, _n, h3n, uwn), Gsn; b(222, 23, { 3: 1, 35: 1, 23: 1, 222: 1 }, ox); - var m4, OE, ym, hU, lU = Pn(vu, "EdgeRouting", 222, Bn, bmn, iwn), Gsn; + var m4, OE, ym, hU, lU = Pn(vu, "EdgeRouting", 222, _n, bmn, iwn), Hsn; b(327, 23, { 3: 1, 35: 1, 23: 1, 327: 1 }, i6); - var Jde, Gde, Hde, qde, aU, Ude, zde = Pn(vu, "EdgeType", 327, Bn, Lvn, bwn), Hsn; - b(973, 1, vh, J9e), o.tf = function(n) { - Nqe(n); + var Jde, Gde, Hde, qde, aU, Ude, zde = Pn(vu, "EdgeType", 327, _n, Lvn, bwn), qsn; + b(973, 1, vh, G9e), o.tf = function(n) { + Fqe(n); }; - var Wde, Xde, Kde, Vde, qsn, Qde, d8; - w(vu, "FixedLayouterOptions", 973), b(974, 1, {}, a5e), o.uf = function() { + var Wde, Xde, Kde, Vde, Usn, Qde, d8; + w(vu, "FixedLayouterOptions", 973), b(974, 1, {}, d5e), o.uf = function() { var n; - return n = new y5e(), n; + return n = new j5e(), n; }, o.vf = function(n) { }, w(vu, "FixedLayouterOptions/FixedFactory", 974), b(347, 23, { 3: 1, 35: 1, 23: 1, 347: 1 }, tL); - var r1, XC, b8, Yde = Pn(vu, "HierarchyHandling", 347, Bn, l3n, wwn), Usn, VLn = Zt(vu, "ITopdownSizeApproximator"); + var r1, XC, b8, Yde = Pn(vu, "HierarchyHandling", 347, _n, l3n, wwn), zsn, VLn = Zt(vu, "ITopdownSizeApproximator"); b(292, 23, { 3: 1, 35: 1, 23: 1, 292: 1 }, fx); - var Tl, hd, LE, DE, zsn = Pn(vu, "LabelSide", 292, Bn, wmn, dwn), Wsn; + var Tl, hd, LE, DE, Wsn = Pn(vu, "LabelSide", 292, _n, wmn, dwn), Xsn; b(96, 23, { 3: 1, 35: 1, 23: 1, 96: 1 }, Vg); - var da, Sf, Qo, If, uo, Cf, Yo, Sl, Pf, Fr = Pn(vu, "NodeLabelPlacement", 96, Bn, D5n, fwn), Xsn; + var da, Sf, Qo, If, uo, Cf, Yo, Sl, Pf, Fr = Pn(vu, "NodeLabelPlacement", 96, _n, D5n, fwn), Ksn; b(257, 23, { 3: 1, 35: 1, 23: 1, 257: 1 }, hy); - var Zde, w8, ld, e0e, NE, g8 = Pn(vu, "PortAlignment", 257, Bn, tvn, hwn), Ksn; + var Zde, w8, ld, e0e, NE, g8 = Pn(vu, "PortAlignment", 257, _n, tvn, hwn), Vsn; b(102, 23, { 3: 1, 35: 1, 23: 1, 102: 1 }, r6); - var k0, Vc, Il, v4, Sh, ad, n0e = Pn(vu, "PortConstraints", 102, Bn, Ovn, lwn), Vsn; + var k0, Vc, Il, v4, Sh, ad, n0e = Pn(vu, "PortConstraints", 102, _n, Ovn, lwn), Qsn; b(280, 23, { 3: 1, 35: 1, 23: 1, 280: 1 }, c6); - var p8, m8, ba, FE, dd, jm, KC = Pn(vu, "PortLabelPlacement", 280, Bn, Pvn, awn), Qsn; + var p8, m8, ba, FE, dd, jm, KC = Pn(vu, "PortLabelPlacement", 280, _n, Pvn, awn), Ysn; b(64, 23, { 3: 1, 35: 1, 23: 1, 64: 1 }, ly); - var gn, ln, Co, Po, Gu, Su, Ih, Of, ws, cs, fu, gs, Hu, qu, Lf, so, oo, Zo, Mn, mc, an, Mr = Pn(vu, "PortSide", 64, Bn, Umn, vwn), Ysn; - b(977, 1, vh, G9e), o.tf = function(n) { - oqe(n); + var gn, ln, Co, Po, Gu, Su, Ih, Of, ws, cs, fu, gs, Hu, qu, Lf, so, oo, Zo, Mn, mc, an, Mr = Pn(vu, "PortSide", 64, _n, Umn, vwn), Zsn; + b(977, 1, vh, H9e), o.tf = function(n) { + fqe(n); }; - var Zsn, eon, t0e, non, ton; - w(vu, "RandomLayouterOptions", 977), b(978, 1, {}, d5e), o.uf = function() { + var eon, non, t0e, ton, ion; + w(vu, "RandomLayouterOptions", 977), b(978, 1, {}, b5e), o.uf = function() { var n; - return n = new A5e(), n; + return n = new x5e(), n; }, o.vf = function(n) { }, w(vu, "RandomLayouterOptions/RandomFactory", 978), b(300, 23, { 3: 1, 35: 1, 23: 1, 300: 1 }, iL); - var RE, dU, i0e, r0e = Pn(vu, "ShapeCoords", 300, Bn, a3n, kwn), ion; + var RE, dU, i0e, r0e = Pn(vu, "ShapeCoords", 300, _n, a3n, kwn), ron; b(380, 23, { 3: 1, 35: 1, 23: 1, 380: 1 }, hx); - var Cg, BE, _E, y0, v8 = Pn(vu, "SizeConstraint", 380, Bn, pmn, ywn), ron; + var Cg, _E, BE, y0, v8 = Pn(vu, "SizeConstraint", 380, _n, pmn, ywn), con; b(266, 23, { 3: 1, 35: 1, 23: 1, 266: 1 }, Qg); - var JE, VC, k4, bU, GE, k8, QC, YC, ZC, c0e = Pn(vu, "SizeOptions", 266, Bn, G5n, pwn), con; + var JE, VC, k4, bU, GE, k8, QC, YC, ZC, c0e = Pn(vu, "SizeOptions", 266, _n, G5n, pwn), uon; b(281, 23, { 3: 1, 35: 1, 23: 1, 281: 1 }, rL); - var Pg, u0e, eP, s0e = Pn(vu, "TopdownNodeTypes", 281, Bn, d3n, mwn), uon; + var Pg, u0e, eP, s0e = Pn(vu, "TopdownNodeTypes", 281, _n, d3n, mwn), son; b(288, 23, MS); - var o0e, wU, f0e, h0e, HE = Pn(vu, "TopdownSizeApproximator", 288, Bn, gmn, gwn); - b(969, 288, MS, fSe), o.Sg = function(n) { - return zBe(n); - }, Pn(vu, "TopdownSizeApproximator/1", 969, HE, null, null), b(970, 288, MS, USe), o.Sg = function(n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le, Ke; + var o0e, wU, f0e, h0e, HE = Pn(vu, "TopdownSizeApproximator", 288, _n, gmn, gwn); + b(969, 288, MS, hSe), o.Sg = function(n) { + return W_e(n); + }, Pn(vu, "TopdownSizeApproximator/1", 969, HE, null, null), b(970, 288, MS, zSe), o.Sg = function(n) { + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le, Ke; for (t = u(re(n, (tt(), Tg)), 144), we = (p1(), v = new L4(), v), q7(we, n), De = new Tn(), s = new kn((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); s.e != s.i.gc(); ) - r = u(En(s), 26), R = (p = new L4(), p), kT(R, we), q7(R, r), Ke = zBe(r), D0(R, m.Math.max(r.g, Ke.a), m.Math.max(r.f, Ke.b)), Ru(De.f, r, R); + r = u(En(s), 26), R = (p = new L4(), p), kT(R, we), q7(R, r), Ke = W_e(r), D0(R, m.Math.max(r.g, Ke.a), m.Math.max(r.f, Ke.b)), Ru(De.f, r, R); for (c = new kn((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); c.e != c.i.gc(); ) for (r = u(En(c), 26), d = new kn((!r.e && (r.e = new Qe(xi, r, 7, 4)), r.e)); d.e != d.i.gc(); ) a = u(En(d), 85), V = u(hc(Ur(De.f, r)), 26), X = u(rn(De, F((!a.c && (a.c = new Qe(Cn, a, 5, 8)), a.c), 0)), 26), J = (g = new DP(), g), Dn((!J.b && (J.b = new Qe(Cn, J, 4, 7)), J.b), V), Dn((!J.c && (J.c = new Qe(Cn, J, 5, 8)), J.c), X), vT(J, Qt(V)), q7(J, a); @@ -39706,27 +39796,27 @@ function WDn() { } catch (Ye) { throw Ye = gi(Ye), N(Ye, 101) ? (j = Ye, $(j)) : $(Ye); } - return Gf(we, xg) || Gf(we, Ag) || zR(we), l = _(H(re(we, xg))), h = _(H(re(we, Ag))), f = l / h, i = _(H(re(we, Sg))) * m.Math.sqrt((!we.a && (we.a = new ne(Qn, we, 10, 11)), we.a).i), Le = u(re(we, Ml), 104), D = Le.b + Le.c + 1, M = Le.d + Le.a + 1, new ue(m.Math.max(D, i), m.Math.max(M, i / f)); - }, Pn(vu, "TopdownSizeApproximator/2", 970, HE, null, null), b(971, 288, MS, pCe), o.Sg = function(n) { + return Gf(we, xg) || Gf(we, Ag) || zR(we), l = B(H(re(we, xg))), h = B(H(re(we, Ag))), f = l / h, i = B(H(re(we, Sg))) * m.Math.sqrt((!we.a && (we.a = new ne(Qn, we, 10, 11)), we.a).i), Le = u(re(we, Ml), 104), D = Le.b + Le.c + 1, T = Le.d + Le.a + 1, new ue(m.Math.max(D, i), m.Math.max(T, i / f)); + }, Pn(vu, "TopdownSizeApproximator/2", 970, HE, null, null), b(971, 288, MS, mCe), o.Sg = function(n) { var t, i, r, c, s, f; - return i = _(H(re(n, (tt(), Sg)))), t = i / _(H(re(n, b4))), r = GSn(n), s = u(re(n, Ml), 104), c = _(H(ge(i1))), Qt(n) && (c = _(H(re(Qt(n), i1)))), f = Jl(new ue(i, t), r), At(f, new ue(-(s.b + s.c) - c, -(s.d + s.a) - c)); - }, Pn(vu, "TopdownSizeApproximator/3", 971, HE, null, null), b(972, 288, MS, zSe), o.Sg = function(n) { + return i = B(H(re(n, (tt(), Sg)))), t = i / B(H(re(n, b4))), r = GSn(n), s = u(re(n, Ml), 104), c = B(H(ge(i1))), Qt(n) && (c = B(H(re(Qt(n), i1)))), f = Jl(new ue(i, t), r), At(f, new ue(-(s.b + s.c) - c, -(s.d + s.a) - c)); + }, Pn(vu, "TopdownSizeApproximator/3", 971, HE, null, null), b(972, 288, MS, WSe), o.Sg = function(n) { var t, i, r, c, s, f, h, l, a, d; for (f = new kn((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); f.e != f.i.gc(); ) - s = u(En(f), 26), re(s, (tt(), zC)) != null && (!s.a && (s.a = new ne(Qn, s, 10, 11)), !!s.a) && (!s.a && (s.a = new ne(Qn, s, 10, 11)), s.a).i > 0 ? (i = u(re(s, zC), 521), d = i.Sg(s), a = u(re(s, Ml), 104), D0(s, m.Math.max(s.g, d.a + a.b + a.c), m.Math.max(s.f, d.b + a.d + a.a))) : (!s.a && (s.a = new ne(Qn, s, 10, 11)), s.a).i != 0 && D0(s, _(H(re(s, Sg))), _(H(re(s, Sg))) / _(H(re(s, b4)))); + s = u(En(f), 26), re(s, (tt(), zC)) != null && (!s.a && (s.a = new ne(Qn, s, 10, 11)), !!s.a) && (!s.a && (s.a = new ne(Qn, s, 10, 11)), s.a).i > 0 ? (i = u(re(s, zC), 521), d = i.Sg(s), a = u(re(s, Ml), 104), D0(s, m.Math.max(s.g, d.a + a.b + a.c), m.Math.max(s.f, d.b + a.d + a.a))) : (!s.a && (s.a = new ne(Qn, s, 10, 11)), s.a).i != 0 && D0(s, B(H(re(s, Sg))), B(H(re(s, Sg))) / B(H(re(s, b4)))); t = u(re(n, (tt(), Tg)), 144), l = u(Fy(t.f), 214); try { l.kf(n, new LP()), NV(t.f, l); } catch (g) { throw g = gi(g), N(g, 101) ? (h = g, $(h)) : $(g); } - return Pt(n, pm, P5), sOe(n), zR(n), c = _(H(re(n, xg))), r = _(H(re(n, Ag))), new ue(c, r); + return Pt(n, pm, P5), oOe(n), zR(n), c = B(H(re(n, xg))), r = B(H(re(n, Ag))), new ue(c, r); }, Pn(vu, "TopdownSizeApproximator/4", 972, HE, null, null); - var son; + var oon; b(345, 1, { 852: 1 }, Lp), o.Tg = function(n, t) { - return cJe(this, n, t); + return uJe(this, n, t); }, o.Ug = function() { - CJe(this); + PJe(this); }, o.Vg = function() { return this.q; }, o.Wg = function() { @@ -39746,67 +39836,67 @@ function WDn() { this.n && (t = n, he(this.f, t)); }, o.bh = function(n, t) { var i, r; - this.n && n && C3n(this, (i = new uIe(), r = xR(i, n), MPn(i), r), (EM(), pU)); + this.n && n && C3n(this, (i = new sIe(), r = xR(i, n), MPn(i), r), (EM(), pU)); }, o.dh = function(n) { var t; return this.b ? null : (t = m5n(this, this.g), rt(this.a, t), t.i = this, this.d = n, t); }, o.eh = function(n) { n > 0 && !this.b && OY(this, n); - }, 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, w(Oc, "BasicProgressMonitor", 345), b(706, 214, gb, b5e), o.kf = function(n, t) { - wUe(n, t); - }, w(Oc, "BoxLayoutProvider", 706), b(965, 1, ct, Wye), o.Le = function(n, t) { + }, 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, w(Oc, "BasicProgressMonitor", 345), b(706, 214, gb, w5e), o.kf = function(n, t) { + gUe(n, t); + }, w(Oc, "BoxLayoutProvider", 706), b(965, 1, ct, Xye), o.Le = function(n, t) { return M$n(this, u(n, 26), u(t, 26)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, o.a = !1, w(Oc, "BoxLayoutProvider/1", 965), b(167, 1, { 167: 1 }, eM, AMe), o.Ib = function() { + }, o.a = !1, w(Oc, "BoxLayoutProvider/1", 965), b(167, 1, { 167: 1 }, eM, xMe), o.Ib = function() { return this.c ? $te(this.c) : wh(this.b); }, w(Oc, "BoxLayoutProvider/Group", 167), b(326, 23, { 3: 1, 35: 1, 23: 1, 326: 1 }, lx); - var l0e, a0e, d0e, gU, b0e = Pn(Oc, "BoxLayoutProvider/PackingMode", 326, Bn, mmn, jwn), oon; - b(966, 1, ct, w5e), o.Le = function(n, t) { + var l0e, a0e, d0e, gU, b0e = Pn(Oc, "BoxLayoutProvider/PackingMode", 326, _n, mmn, jwn), fon; + b(966, 1, ct, g5e), o.Le = function(n, t) { return F2n(u(n, 167), u(t, 167)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Oc, "BoxLayoutProvider/lambda$0$Type", 966), b(967, 1, ct, g5e), o.Le = function(n, t) { + }, w(Oc, "BoxLayoutProvider/lambda$0$Type", 966), b(967, 1, ct, p5e), o.Le = function(n, t) { return M2n(u(n, 167), u(t, 167)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Oc, "BoxLayoutProvider/lambda$1$Type", 967), b(968, 1, ct, p5e), o.Le = function(n, t) { + }, w(Oc, "BoxLayoutProvider/lambda$1$Type", 967), b(968, 1, ct, m5e), o.Le = function(n, t) { return T2n(u(n, 167), u(t, 167)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); - }, w(Oc, "BoxLayoutProvider/lambda$2$Type", 968), b(1338, 1, { 829: 1 }, m5e), o.Lg = function(n, t) { - return BA(), !N(t, 174) || $Ee((v3(), u(n, 174)), t); - }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type", 1338), b(1339, 1, mn, Xye), o.Ad = function(n) { + }, w(Oc, "BoxLayoutProvider/lambda$2$Type", 968), b(1338, 1, { 829: 1 }, v5e), o.Lg = function(n, t) { + return _A(), !N(t, 174) || MEe((v3(), u(n, 174)), t); + }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type", 1338), b(1339, 1, mn, Kye), o.Ad = function(n) { I6n(this.a, u(n, 147)); - }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type", 1339), b(1340, 1, mn, v5e), o.Ad = function(n) { - u(n, 105), BA(); - }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type", 1340), b(1344, 1, mn, Kye), o.Ad = function(n) { + }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type", 1339), b(1340, 1, mn, k5e), o.Ad = function(n) { + u(n, 105), _A(); + }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type", 1340), b(1344, 1, mn, Vye), o.Ad = function(n) { t4n(this.a, u(n, 105)); - }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type", 1344), b(1342, 1, Vn, yxe), o.Mb = function(n) { + }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type", 1344), b(1342, 1, Vn, jxe), o.Mb = function(n) { return a6n(this.a, this.b, u(n, 147)); - }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type", 1342), b(1341, 1, Vn, jxe), o.Mb = function(n) { + }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type", 1342), b(1341, 1, Vn, Exe), o.Mb = function(n) { return $dn(this.a, this.b, u(n, 829)); - }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type", 1341), b(1343, 1, mn, Exe), o.Ad = function(n) { + }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type", 1341), b(1343, 1, mn, Axe), o.Ad = function(n) { xgn(this.a, this.b, u(n, 147)); - }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type", 1343), b(930, 1, {}, k5e), o.Kb = function(n) { - return m$e(n); + }, w(Oc, "ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type", 1343), b(930, 1, {}, y5e), o.Kb = function(n) { + return v$e(n); }, o.Fb = function(n) { return this === n; - }, w(Oc, "ElkUtil/lambda$0$Type", 930), b(931, 1, mn, Axe), o.Ad = function(n) { + }, w(Oc, "ElkUtil/lambda$0$Type", 930), b(931, 1, mn, xxe), o.Ad = function(n) { CAn(this.a, this.b, u(n, 85)); - }, o.a = 0, o.b = 0, w(Oc, "ElkUtil/lambda$1$Type", 931), b(932, 1, mn, xxe), o.Ad = function(n) { + }, o.a = 0, o.b = 0, w(Oc, "ElkUtil/lambda$1$Type", 931), b(932, 1, mn, $xe), o.Ad = function(n) { Mln(this.a, this.b, u(n, 170)); - }, o.a = 0, o.b = 0, w(Oc, "ElkUtil/lambda$2$Type", 932), b(933, 1, mn, $xe), o.Ad = function(n) { + }, o.a = 0, o.b = 0, w(Oc, "ElkUtil/lambda$2$Type", 932), b(933, 1, mn, Mxe), o.Ad = function(n) { y1n(this.a, this.b, u(n, 157)); - }, o.a = 0, o.b = 0, w(Oc, "ElkUtil/lambda$3$Type", 933), b(934, 1, mn, Vye), o.Ad = function(n) { + }, o.a = 0, o.b = 0, w(Oc, "ElkUtil/lambda$3$Type", 933), b(934, 1, mn, Qye), o.Ad = function(n) { Xwn(this.a, u(n, 372)); }, w(Oc, "ElkUtil/lambda$4$Type", 934), b(331, 1, { 35: 1, 331: 1 }, tln), o.Dd = function(n) { return z1n(this, u(n, 242)); @@ -39817,47 +39907,47 @@ function WDn() { return dr(this.a); }, o.Ib = function() { return this.a + " (exclusive)"; - }, o.a = 0, w(Oc, "ExclusiveBounds/ExclusiveLowerBound", 331), b(1088, 214, gb, y5e), o.kf = function(n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D, R, J, V, X, we, De, Le; + }, o.a = 0, w(Oc, "ExclusiveBounds/ExclusiveLowerBound", 331), b(1088, 214, gb, j5e), o.kf = function(n, t) { + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D, R, J, V, X, we, De, Le; for (t.Tg("Fixed Layout", 1), s = u(re(n, (tt(), ude)), 222), g = 0, p = 0, R = new kn((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); R.e != R.i.gc(); ) { - for (M = u(En(R), 26), Le = u(re(M, (AM(), d8)), 8), Le && (ao(M, Le.a, Le.b), u(re(M, Xde), 182).Gc((Js(), Cg)) && (v = u(re(M, Vde), 8), v.a > 0 && v.b > 0 && ab(M, v.a, v.b, !0, !0))), g = m.Math.max(g, M.i + M.g), p = m.Math.max(p, M.j + M.f), a = new kn((!M.n && (M.n = new ne(vc, M, 1, 7)), M.n)); a.e != a.i.gc(); ) - h = u(En(a), 157), Le = u(re(h, d8), 8), Le && ao(h, Le.a, Le.b), g = m.Math.max(g, M.i + h.i + h.g), p = m.Math.max(p, M.j + h.j + h.f); - for (X = new kn((!M.c && (M.c = new ne(Is, M, 9, 9)), M.c)); X.e != X.i.gc(); ) - for (V = u(En(X), 125), Le = u(re(V, d8), 8), Le && ao(V, Le.a, Le.b), we = M.i + V.i, De = M.j + V.j, g = m.Math.max(g, we + V.g), p = m.Math.max(p, De + V.f), l = new kn((!V.n && (V.n = new ne(vc, V, 1, 7)), V.n)); l.e != l.i.gc(); ) + for (T = u(En(R), 26), Le = u(re(T, (AM(), d8)), 8), Le && (ao(T, Le.a, Le.b), u(re(T, Xde), 182).Gc((Js(), Cg)) && (v = u(re(T, Vde), 8), v.a > 0 && v.b > 0 && ab(T, v.a, v.b, !0, !0))), g = m.Math.max(g, T.i + T.g), p = m.Math.max(p, T.j + T.f), a = new kn((!T.n && (T.n = new ne(vc, T, 1, 7)), T.n)); a.e != a.i.gc(); ) + h = u(En(a), 157), Le = u(re(h, d8), 8), Le && ao(h, Le.a, Le.b), g = m.Math.max(g, T.i + h.i + h.g), p = m.Math.max(p, T.j + h.j + h.f); + for (X = new kn((!T.c && (T.c = new ne(Is, T, 9, 9)), T.c)); X.e != X.i.gc(); ) + for (V = u(En(X), 125), Le = u(re(V, d8), 8), Le && ao(V, Le.a, Le.b), we = T.i + V.i, De = T.j + V.j, g = m.Math.max(g, we + V.g), p = m.Math.max(p, De + V.f), l = new kn((!V.n && (V.n = new ne(vc, V, 1, 7)), V.n)); l.e != l.i.gc(); ) h = u(En(l), 157), Le = u(re(h, d8), 8), Le && ao(h, Le.a, Le.b), g = m.Math.max(g, we + h.i + h.g), p = m.Math.max(p, De + h.j + h.f); - for (c = new fn(dn(J1(M).a.Jc(), new Q())); xn(c); ) - i = u(pn(c), 85), d = Mze(i), g = m.Math.max(g, d.a), p = m.Math.max(p, d.b); - for (r = new fn(dn(lR(M).a.Jc(), new Q())); xn(r); ) - i = u(pn(r), 85), Qt(QF(i)) != n && (d = Mze(i), g = m.Math.max(g, d.a), p = m.Math.max(p, d.b)); + for (c = new fn(dn(J1(T).a.Jc(), new Y())); xn(c); ) + i = u(pn(c), 85), d = Tze(i), g = m.Math.max(g, d.a), p = m.Math.max(p, d.b); + for (r = new fn(dn(lR(T).a.Jc(), new Y())); xn(r); ) + i = u(pn(r), 85), Qt(QF(i)) != n && (d = Tze(i), g = m.Math.max(g, d.a), p = m.Math.max(p, d.b)); } if (s == (na(), m4)) for (D = new kn((!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a)); D.e != D.i.gc(); ) - for (M = u(En(D), 26), r = new fn(dn(J1(M).a.Jc(), new Q())); xn(r); ) + for (T = u(En(D), 26), r = new fn(dn(J1(T).a.Jc(), new Y())); xn(r); ) i = u(pn(r), 85), f = MSn(i), f.b == 0 ? Pt(i, gp, null) : Pt(i, gp, f); - ve(me(re(n, (AM(), Kde)))) || (J = u(re(n, qsn), 104), E = g + J.b + J.c, j = p + J.d + J.a, ab(n, E, j, !0, !0)), t.Ug(); - }, w(Oc, "FixedLayoutProvider", 1088), b(379, 150, { 3: 1, 414: 1, 379: 1, 105: 1, 150: 1 }, OP, wDe), o.ag = function(n) { + ve(me(re(n, (AM(), Kde)))) || (J = u(re(n, Usn), 104), E = g + J.b + J.c, j = p + J.d + J.a, ab(n, E, j, !0, !0)), t.Ug(); + }, w(Oc, "FixedLayoutProvider", 1088), b(379, 150, { 3: 1, 414: 1, 379: 1, 105: 1, 150: 1 }, OP, gDe), o.ag = function(n) { var t, i, r, c, s, f, h, l, a; if (n) try { for (l = qw(n, ";,;"), s = l, f = 0, h = s.length; f < h; ++f) { - if (c = s[f], i = qw(c, "\\:"), r = cie(_6(), i[0]), !r) + if (c = s[f], i = qw(c, "\\:"), r = cie(B6(), i[0]), !r) throw $(new on("Invalid option id: " + i[0])); if (a = iie(r, i[1]), a == null) throw $(new on("Invalid option value: " + i[1])); a == null ? (!this.q && (this.q = new Tn()), a3(this.q, r)) : (!this.q && (this.q = new Tn()), ht(this.q, r, a)); } } catch (d) { - throw d = gi(d), N(d, 101) ? (t = d, $(new QFe(t))) : $(d); + throw d = gi(d), N(d, 101) ? (t = d, $(new YFe(t))) : $(d); } }, o.Ib = function() { var n; - return n = zn(fs(du((this.q ? this.q : (ze(), ze(), El)).vc().Mc(), new j5e()), Kvn(new HTe(), new tA(), new qb(), new zU(), I(T(Ju, 1), ce, 130, 0, [])))), n; + return n = zn(fs(du((this.q ? this.q : (ze(), ze(), El)).vc().Mc(), new E5e()), Kvn(new qTe(), new tA(), new qb(), new zU(), I(S(Ju, 1), ce, 130, 0, [])))), n; }; - var fon = w(Oc, "IndividualSpacings", 379); - b(964, 1, {}, j5e), o.Kb = function(n) { + var hon = w(Oc, "IndividualSpacings", 379); + b(964, 1, {}, E5e), o.Kb = function(n) { return R2n(u(n, 45)); - }, w(Oc, "IndividualSpacings/lambda$0$Type", 964), b(708, 1, {}, jSe), o.c = 0, w(Oc, "InstancePool", 708), b(1816, 1, {}, E5e), w(Oc, "LoggedGraph", 1816), b(407, 23, { 3: 1, 35: 1, 23: 1, 407: 1 }, ax); - var w0e, pU, g0e, p0e, hon = Pn(Oc, "LoggedGraph/Type", 407, Bn, vmn, Ewn), lon; + }, w(Oc, "IndividualSpacings/lambda$0$Type", 964), b(708, 1, {}, ESe), o.c = 0, w(Oc, "InstancePool", 708), b(1816, 1, {}, A5e), w(Oc, "LoggedGraph", 1816), b(407, 23, { 3: 1, 35: 1, 23: 1, 407: 1 }, ax); + var w0e, pU, g0e, p0e, lon = Pn(Oc, "LoggedGraph/Type", 407, _n, vmn, Ewn), aon; b(614, 1, { 852: 1 }, LP), o.Tg = function(n, t) { return !1; }, o.Ug = function() { @@ -39889,10 +39979,10 @@ function WDn() { var n, t, i, r, c, s; return i = this.a == null ? 0 : Gt(this.a), n = i & Ti, t = i & -65536, s = this.b == null ? 0 : Gt(this.b), r = s & Ti, c = s & -65536, n ^ c >> 16 & Ti | t ^ r << 16; }, o.Jc = function() { - return new Qye(this); + return new Yye(this); }, o.Ib = function() { return this.a == null && this.b == null ? "pair(null,null)" : this.a == null ? "pair(null," + uc(this.b) + ")" : this.b == null ? "pair(" + uc(this.a) + ",null)" : "pair(" + uc(this.a) + "," + uc(this.b) + ")"; - }, w(Oc, "Pair", 49), b(979, 1, Wi, Qye), o.Nb = function(n) { + }, w(Oc, "Pair", 49), b(979, 1, Wi, Yye), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { return !this.c && (!this.b && this.a.a != null || this.a.b != null); @@ -39904,25 +39994,25 @@ function WDn() { throw $(new oc()); }, o.Qb = function() { throw this.c && this.a.b != null ? this.a.b = null : this.b && this.a.a != null && (this.a.a = null), $(new Vu()); - }, o.b = !1, o.c = !1, w(Oc, "Pair/1", 979), b(1078, 214, gb, A5e), o.kf = function(n, t) { + }, o.b = !1, o.c = !1, w(Oc, "Pair/1", 979), b(1078, 214, gb, x5e), o.kf = function(n, t) { var i, r, c, s, f; if (t.Tg("Random Layout", 1), (!n.a && (n.a = new ne(Qn, n, 10, 11)), n.a).i == 0) { t.Ug(); return; } - s = u(re(n, (YZ(), non)), 15), s && s.a != 0 ? c = new L$(s.a) : c = new rF(), i = q8(H(re(n, Zsn))), f = q8(H(re(n, ton))), r = u(re(n, eon), 104), XPn(n, c, i, f, r), t.Ug(); + s = u(re(n, (YZ(), ton)), 15), s && s.a != 0 ? c = new L$(s.a) : c = new rF(), i = q8(H(re(n, eon))), f = q8(H(re(n, ion))), r = u(re(n, non), 104), XPn(n, c, i, f, r), t.Ug(); }, w(Oc, "RandomLayoutProvider", 1078), b(240, 1, { 240: 1 }, RL), o.Fb = function(n) { return Gc(this.a, u(n, 240).a) && Gc(this.b, u(n, 240).b) && Gc(this.c, u(n, 240).c); }, o.Hb = function() { - return xM(I(T(Li, 1), Ve, 1, 5, [this.a, this.b, this.c])); + return xM(I(S(Li, 1), Ve, 1, 5, [this.a, this.b, this.c])); }, o.Ib = function() { return "(" + this.a + mu + this.b + mu + this.c + ")"; }, w(Oc, "Triple", 240); - var aon; + var don; b(550, 1, {}), o.Jf = function() { return new ue(this.f.i, this.f.j); }, o.mf = function(n) { - return bCe(n, (tt(), Ss)) ? re(this.f, don) : re(this.f, n); + return wCe(n, (tt(), Ss)) ? re(this.f, bon) : re(this.f, n); }, o.Kf = function() { return new ue(this.f.g, this.f.f); }, o.Lf = function() { @@ -39936,7 +40026,7 @@ function WDn() { }, o.Of = function(n) { this.g = n; }, o.g = 0; - var don; + var bon; w(V9, "ElkGraphAdapters/AbstractElkGraphElementAdapter", 550), b(552, 1, { 837: 1 }, gA), o.Pf = function() { var n, t; if (!this.b) @@ -39944,7 +40034,7 @@ function WDn() { n = u(En(t), 157), he(this.b, new lO(n)); return this.b; }, o.b = null, w(V9, "ElkGraphAdapters/ElkEdgeAdapter", 552), b(260, 550, {}, b1), o.Qf = function() { - return a_e(this); + return dBe(this); }, o.a = null, w(V9, "ElkGraphAdapters/ElkGraphAdapter", 260), b(630, 550, { 187: 1 }, lO), w(V9, "ElkGraphAdapters/ElkLabelAdapter", 630), b(551, 550, { 685: 1 }, Ix), o.Pf = function() { return nyn(this); }, o.Tf = function() { @@ -39962,20 +40052,20 @@ function WDn() { }, o.Sf = function() { var n, t; if (!this.a) - for (this.a = new le(), t = new fn(dn(lR(u(this.f, 26)).a.Jc(), new Q())); xn(t); ) + for (this.a = new le(), t = new fn(dn(lR(u(this.f, 26)).a.Jc(), new Y())); xn(t); ) n = u(pn(t), 85), he(this.a, new gA(n)); return this.a; }, o.Uf = function() { var n, t; if (!this.c) - for (this.c = new le(), t = new fn(dn(J1(u(this.f, 26)).a.Jc(), new Q())); xn(t); ) + for (this.c = new le(), t = new fn(dn(J1(u(this.f, 26)).a.Jc(), new Y())); xn(t); ) n = u(pn(t), 85), he(this.c, new gA(n)); return this.c; }, o.Wf = function() { return w$(u(this.f, 26)).i != 0 || ve(me(u(this.f, 26).mf((tt(), TE)))); }, o.Zf = function() { - Zvn(this, (xd(), aon)); - }, o.a = null, o.b = null, o.c = null, o.d = null, o.e = null, w(V9, "ElkGraphAdapters/ElkNodeAdapter", 551), b(1249, 550, { 836: 1 }, Yye), o.Pf = function() { + Zvn(this, (xd(), don)); + }, o.a = null, o.b = null, o.c = null, o.d = null, o.e = null, w(V9, "ElkGraphAdapters/ElkNodeAdapter", 551), b(1249, 550, { 836: 1 }, Zye), o.Pf = function() { return fyn(this); }, o.Sf = function() { var n, t; @@ -40005,15 +40095,15 @@ function WDn() { if (c = u(En(s), 84), xw(ec(c), r)) return !0; return !1; - }, o.a = null, o.b = null, o.c = null, w(V9, "ElkGraphAdapters/ElkPortAdapter", 1249), b(1250, 1, ct, x5e), o.Le = function(n, t) { + }, o.a = null, o.b = null, o.c = null, w(V9, "ElkGraphAdapters/ElkPortAdapter", 1249), b(1250, 1, ct, $5e), o.Le = function(n, t) { return vTn(u(n, 125), u(t, 125)); }, o.Fb = function(n) { return this === n; }, o.Me = function() { return new Zn(this); }, w(V9, "ElkGraphAdapters/PortComparator", 1250); - var bd = Zt($o, "EObject"), y4 = Zt(G2, DKe), fo = Zt(G2, NKe), qE = Zt(G2, FKe), UE = Zt(G2, "ElkShape"), Cn = Zt(G2, RKe), xi = Zt(G2, kue), Wt = Zt(G2, BKe), zE = Zt($o, _Ke), y8 = Zt($o, "EFactory"), bon, mU = Zt($o, JKe), eh = Zt($o, "EPackage"), Gi, won, gon, m0e, nP, pon, v0e, k0e, y0e, Cl, mon, von, vc = Zt(G2, yue), Qn = Zt(G2, jue), Is = Zt(G2, Eue); - b(93, 1, GKe), o.qh = function() { + var bd = Zt($o, "EObject"), y4 = Zt(G2, NKe), fo = Zt(G2, FKe), qE = Zt(G2, RKe), UE = Zt(G2, "ElkShape"), Cn = Zt(G2, _Ke), xi = Zt(G2, kue), Wt = Zt(G2, BKe), zE = Zt($o, JKe), y8 = Zt($o, "EFactory"), won, mU = Zt($o, GKe), eh = Zt($o, "EPackage"), Gi, gon, pon, m0e, nP, mon, v0e, k0e, y0e, Cl, von, kon, vc = Zt(G2, yue), Qn = Zt(G2, jue), Is = Zt(G2, Eue); + b(93, 1, HKe), o.qh = function() { return this.rh(), null; }, o.rh = function() { return null; @@ -40023,7 +40113,7 @@ function WDn() { return !1; }, o.uh = function(n) { yt(this, n); - }, w(W3, "BasicNotifierImpl", 93), b(100, 93, zKe), o.Vh = function() { + }, w(W3, "BasicNotifierImpl", 93), b(100, 93, WKe), o.Vh = function() { return Os(this); }, o.vh = function(n, t) { return n; @@ -40084,9 +40174,9 @@ function WDn() { }, o.Th = function(n) { return vF(this, n); }, o.Uh = function(n) { - return SCe(this, n); + return ICe(this, n); }, o.Wh = function(n) { - return hze(this, n); + return lze(this, n); }, o.Xh = function() { throw $(new qn()); }, o.Yh = function() { @@ -40116,7 +40206,7 @@ function WDn() { throw $(new on(V1 + n.ve() + nJ)); else if (n.Hk()) return r = this.Fh(n), u(r >= 0 ? this.Ih(r, !1, !0) : fb(this, n, !1), 77); - return h = new Gxe(this, n), h; + return h = new Hxe(this, n), h; }, o.ei = function() { return cY(this); }, o.fi = function() { @@ -40128,7 +40218,7 @@ function WDn() { }, o.Ib = function() { return kf(this); }, w(un, "BasicEObjectImpl", 100); - var kon; + var yon; b(117, 100, { 109: 1, 94: 1, 93: 1, 57: 1, 114: 1, 52: 1, 100: 1, 117: 1 }), o.ii = function(n) { var t; return t = uY(this), t[n]; @@ -40194,11 +40284,11 @@ function WDn() { }, o.$h = function(n, t) { sZ(this, n, t); }, o.fi = function() { - return Rc(), von; + return Rc(), kon; }, o.hi = function(n) { XY(this, n); }, o.lf = function() { - return PBe(this); + return O_e(this); }, o.fh = function() { return !this.o && (this.o = new es((Rc(), Cl), c1, this, 0)), this.o; }, o.mf = function(n) { @@ -40226,15 +40316,15 @@ function WDn() { }, o.$h = function(n, t) { switch (n) { case 0: - nM(this, _(H(t))); + nM(this, B(H(t))); return; case 1: - tM(this, _(H(t))); + tM(this, B(H(t))); return; } rR(this, n, t); }, o.fi = function() { - return Rc(), won; + return Rc(), gon; }, o.hi = function(n) { switch (n) { case 0: @@ -40247,7 +40337,7 @@ function WDn() { nR(this, n); }, o.Ib = function() { var n; - return (this.Db & 64) != 0 ? kf(this) : (n = new _o(kf(this)), n.a += " (x: ", zg(n, this.a), n.a += ", y: ", zg(n, this.b), n.a += ")", n.a); + return (this.Db & 64) != 0 ? kf(this) : (n = new Bo(kf(this)), n.a += " (x: ", zg(n, this.a), n.a += ", y: ", zg(n, this.b), n.a += ")", n.a); }, o.a = 0, o.b = 0, w(i0, "ElkBendPointImpl", 559), b(727, 2045, { 109: 1, 343: 1, 174: 1, 105: 1, 94: 1, 93: 1, 57: 1, 114: 1, 52: 1, 100: 1, 117: 1, 118: 1 }), o.Ih = function(n, t, i) { return $Z(this, n, t, i); }, o.Ph = function(n, t, i) { @@ -40257,9 +40347,9 @@ function WDn() { }, o.Th = function(n) { return GY(this, n); }, o.$h = function(n, t) { - _ee(this, n, t); + Bee(this, n, t); }, o.fi = function() { - return Rc(), pon; + return Rc(), mon; }, o.hi = function(n) { jZ(this, n); }, o.ih = function() { @@ -40269,13 +40359,13 @@ function WDn() { }, o.Ib = function() { return iF(this); }, o.k = null, w(i0, "ElkGraphElementImpl", 727), b(728, 727, { 109: 1, 343: 1, 174: 1, 276: 1, 105: 1, 94: 1, 93: 1, 57: 1, 114: 1, 52: 1, 100: 1, 117: 1, 118: 1 }), o.Ih = function(n, t, i) { - return BZ(this, n, t, i); + return _Z(this, n, t, i); }, o.Th = function(n) { return zZ(this, n); }, o.$h = function(n, t) { Jee(this, n, t); }, o.fi = function() { - return Rc(), mon; + return Rc(), von; }, o.hi = function(n) { QZ(this, n); }, o.kh = function() { @@ -40303,7 +40393,7 @@ function WDn() { }, o.$h = function(n, t) { Xne(this, n, t); }, o.fi = function() { - return Rc(), gon; + return Rc(), pon; }, o.hi = function(n) { hee(this, n); }, o.gh = function() { @@ -40392,7 +40482,7 @@ function WDn() { !this.a && (this.a = new ne(Wt, this, 6, 6)), On(this.a), !this.a && (this.a = new ne(Wt, this, 6, 6)), hi(this.a, u(t, 18)); return; } - _ee(this, n, t); + Bee(this, n, t); }, o.fi = function() { return Rc(), m0e; }, o.hi = function(n) { @@ -40412,7 +40502,7 @@ function WDn() { } jZ(this, n); }, o.Ib = function() { - return CUe(this); + return PUe(this); }, w(i0, "ElkEdgeImpl", 271), b(443, 2045, { 109: 1, 343: 1, 170: 1, 443: 1, 105: 1, 94: 1, 93: 1, 57: 1, 114: 1, 52: 1, 100: 1, 117: 1, 118: 1 }, uA), o.xh = function(n) { return $ee(this, n); }, o.Ih = function(n, t, i) { @@ -40428,7 +40518,7 @@ function WDn() { case 5: return !this.a && (this.a = new $i(fo, this, 5)), this.a; case 6: - return TCe(this); + return SCe(this); case 7: return t ? AF(this) : this.i; case 8: @@ -40477,7 +40567,7 @@ function WDn() { case 5: return !!this.a && this.a.i != 0; case 6: - return !!TCe(this); + return !!SCe(this); case 7: return !!this.i; case 8: @@ -40493,22 +40583,22 @@ function WDn() { }, o.$h = function(n, t) { switch (n) { case 1: - p2(this, _(H(t))); + p2(this, B(H(t))); return; case 2: - m2(this, _(H(t))); + m2(this, B(H(t))); return; case 3: - w2(this, _(H(t))); + w2(this, B(H(t))); return; case 4: - g2(this, _(H(t))); + g2(this, B(H(t))); return; case 5: !this.a && (this.a = new $i(fo, this, 5)), On(this.a), !this.a && (this.a = new $i(fo, this, 5)), hi(this.a, u(t, 18)); return; case 6: - IHe(this, u(t, 85)); + CHe(this, u(t, 85)); return; case 7: fM(this, u(t, 84)); @@ -40547,7 +40637,7 @@ function WDn() { !this.a && (this.a = new $i(fo, this, 5)), On(this.a); return; case 6: - IHe(this, null); + CHe(this, null); return; case 7: fM(this, null); @@ -40567,7 +40657,7 @@ function WDn() { } XY(this, n); }, o.Ib = function() { - return JGe(this); + return GGe(this); }, o.b = 0, o.c = 0, o.d = null, o.j = 0, o.k = 0, w(i0, "ElkEdgeSectionImpl", 443), b(161, 118, { 109: 1, 94: 1, 93: 1, 158: 1, 57: 1, 114: 1, 52: 1, 100: 1, 161: 1, 117: 1, 118: 1 }), o.Ih = function(n, t, i) { var r; return n == 0 ? (!this.Ab && (this.Ab = new ne(ot, this, 0, 3)), this.Ab) : po(this, n - $n(this.fi()), We((r = u(hn(this, 16), 29), r || this.fi()), n), t, i); @@ -40593,7 +40683,7 @@ function WDn() { }, o.ai = function(n) { E3(this, 128, n); }, o.fi = function() { - return Ue(), Ron; + return Ue(), _on; }, o.hi = function(n) { var t; switch (n) { @@ -40607,7 +40697,7 @@ function WDn() { }, o.ni = function(n) { return E9(this, n); }, o.Bb = 0, w(un, "EModelElementImpl", 161), b(710, 161, { 109: 1, 94: 1, 93: 1, 469: 1, 158: 1, 57: 1, 114: 1, 52: 1, 100: 1, 161: 1, 117: 1, 118: 1 }, az), o.oi = function(n, t) { - return ize(this, n, t); + return rze(this, n, t); }, o.pi = function(n) { var t, i, r, c, s; if (this.a != Vs(n) || (n.Bb & 256) != 0) @@ -40617,7 +40707,7 @@ function WDn() { return c = Vs(i).ti().pi(i), u(c, 52)._h(n), c; r = Zr(i); } - return (n.D != null ? n.D : n.B) == "java.util.Map$Entry" ? new oSe(n) : new YK(n); + return (n.D != null ? n.D : n.B) == "java.util.Map$Entry" ? new fSe(n) : new YK(n); }, o.qi = function(n, t) { return db(this, n, t); }, o.Ih = function(n, t, i) { @@ -40663,7 +40753,7 @@ function WDn() { !this.Ab && (this.Ab = new ne(ot, this, 0, 3)), On(this.Ab), !this.Ab && (this.Ab = new ne(ot, this, 0, 3)), hi(this.Ab, u(t, 18)); return; case 1: - pJe(this, u(t, 241)); + mJe(this, u(t, 241)); return; } Eo(this, n - $n((Ue(), pd)), We((i = u(hn(this, 16), 29), i || pd), n), t); @@ -40676,13 +40766,13 @@ function WDn() { !this.Ab && (this.Ab = new ne(ot, this, 0, 3)), On(this.Ab); return; case 1: - pJe(this, null); + mJe(this, null); return; } jo(this, n - $n((Ue(), pd)), We((t = u(hn(this, 16), 29), t || pd), n)); }; - var j8, j0e, yon; - w(un, "EFactoryImpl", 710), b(1018, 710, { 109: 1, 2075: 1, 94: 1, 93: 1, 469: 1, 158: 1, 57: 1, 114: 1, 52: 1, 100: 1, 161: 1, 117: 1, 118: 1 }, M5e), o.oi = function(n, t) { + var j8, j0e, jon; + w(un, "EFactoryImpl", 710), b(1018, 710, { 109: 1, 2075: 1, 94: 1, 93: 1, 469: 1, 158: 1, 57: 1, 114: 1, 52: 1, 100: 1, 161: 1, 117: 1, 118: 1 }, T5e), o.oi = function(n, t) { switch (n.fk()) { case 12: return u(t, 147).Og(); @@ -40707,7 +40797,7 @@ function WDn() { case 10: return c = new uA(), c; case 11: - return l = new T5e(), l; + return l = new S5e(), l; default: throw $(new on(iJ + n.zb + jb)); } @@ -40721,7 +40811,7 @@ function WDn() { } }, w(i0, "ElkGraphFactoryImpl", 1018), b(439, 161, { 109: 1, 94: 1, 93: 1, 158: 1, 197: 1, 57: 1, 114: 1, 52: 1, 100: 1, 161: 1, 117: 1, 118: 1 }), o.Dh = function() { var n, t; - return t = (n = u(hn(this, 16), 29), QV(zh(n || this.fi()))), t == null ? (X4(), X4(), $U) : new SMe(this, t); + return t = (n = u(hn(this, 16), 29), QV(zh(n || this.fi()))), t == null ? (X4(), X4(), $U) : new IMe(this, t); }, o.Ih = function(n, t, i) { var r; switch (n) { @@ -40770,8 +40860,8 @@ function WDn() { gu(this, n); }, o.Ib = function() { return Q6(this); - }, o.zb = null, w(un, "ENamedElementImpl", 439), b(184, 439, { 109: 1, 94: 1, 93: 1, 158: 1, 197: 1, 57: 1, 241: 1, 114: 1, 52: 1, 100: 1, 161: 1, 184: 1, 117: 1, 118: 1, 680: 1 }, ZIe), o.xh = function(n) { - return T_e(this, n); + }, o.zb = null, w(un, "ENamedElementImpl", 439), b(184, 439, { 109: 1, 94: 1, 93: 1, 158: 1, 197: 1, 57: 1, 241: 1, 114: 1, 52: 1, 100: 1, 161: 1, 184: 1, 117: 1, 118: 1, 680: 1 }, eCe), o.xh = function(n) { + return SBe(this, n); }, o.Ih = function(n, t, i) { var r; switch (n) { @@ -40790,7 +40880,7 @@ function WDn() { case 6: return !this.vb && (this.vb = new Qp(eh, this, 6, 7)), this.vb; case 7: - return t ? this.Db >> 16 == 7 ? u(this.Cb, 241) : null : DCe(this); + return t ? this.Db >> 16 == 7 ? u(this.Cb, 241) : null : NCe(this); } return po(this, n - $n((Ue(), f1)), We((r = u(hn(this, 16), 29), r || f1), n), t, i); }, o.Ph = function(n, t, i) { @@ -40805,7 +40895,7 @@ function WDn() { case 6: return !this.vb && (this.vb = new Qp(eh, this, 6, 7)), pu(this.vb, n, i); case 7: - return this.Cb && (i = (c = this.Db >> 16, c >= 0 ? T_e(this, i) : this.Cb.Qh(this, -1 - c, null, i))), no(this, n, 7, i); + return this.Cb && (i = (c = this.Db >> 16, c >= 0 ? SBe(this, i) : this.Cb.Qh(this, -1 - c, null, i))), no(this, n, 7, i); } return s = u(We((r = u(hn(this, 16), 29), r || (Ue(), f1)), t), 69), s.uk().xk(this, Au(this), t - $n((Ue(), f1)), n, i); }, o.Rh = function(n, t, i) { @@ -40841,7 +40931,7 @@ function WDn() { case 6: return !!this.vb && this.vb.i != 0; case 7: - return !!DCe(this); + return !!NCe(this); } return go(this, n - $n((Ue(), f1)), We((t = u(hn(this, 16), 29), t || f1), n)); }, o.Wh = function(n) { @@ -40923,9 +41013,9 @@ function WDn() { this.ub = n; }, o.Ib = function() { var n; - return (this.Db & 64) != 0 ? Q6(this) : (n = new _o(Q6(this)), n.a += " (nsURI: ", Br(n, this.yb), n.a += ", nsPrefix: ", Br(n, this.xb), n.a += ")", n.a); - }, o.xb = null, o.yb = null, w(un, "EPackageImpl", 184), b(556, 184, { 109: 1, 2077: 1, 556: 1, 94: 1, 93: 1, 158: 1, 197: 1, 57: 1, 241: 1, 114: 1, 52: 1, 100: 1, 161: 1, 184: 1, 117: 1, 118: 1, 680: 1 }, KGe), o.q = !1, o.r = !1; - var jon = !1; + return (this.Db & 64) != 0 ? Q6(this) : (n = new Bo(Q6(this)), n.a += " (nsURI: ", _r(n, this.yb), n.a += ", nsPrefix: ", _r(n, this.xb), n.a += ")", n.a); + }, o.xb = null, o.yb = null, w(un, "EPackageImpl", 184), b(556, 184, { 109: 1, 2077: 1, 556: 1, 94: 1, 93: 1, 158: 1, 197: 1, 57: 1, 241: 1, 114: 1, 52: 1, 100: 1, 161: 1, 184: 1, 117: 1, 118: 1, 680: 1 }, VGe), o.q = !1, o.r = !1; + var Eon = !1; w(i0, "ElkGraphPackageImpl", 556), b(362, 728, { 109: 1, 343: 1, 174: 1, 157: 1, 276: 1, 362: 1, 105: 1, 94: 1, 93: 1, 57: 1, 114: 1, 52: 1, 100: 1, 117: 1, 118: 1 }, sz), o.xh = function(n) { return Mee(this, n); }, o.Ih = function(n, t, i) { @@ -40935,7 +41025,7 @@ function WDn() { case 8: return this.a; } - return BZ(this, n, t, i); + return _Z(this, n, t, i); }, o.Ph = function(n, t, i) { var r; switch (t) { @@ -40950,7 +41040,7 @@ function WDn() { case 7: return !!iQ(this); case 8: - return !_e("", this.a); + return !Be("", this.a); } return zZ(this, n); }, o.$h = function(n, t) { @@ -40976,7 +41066,7 @@ function WDn() { } QZ(this, n); }, o.Ib = function() { - return NJe(this); + return FJe(this); }, o.a = "", w(i0, "ElkLabelImpl", 362), b(206, 729, { 109: 1, 343: 1, 84: 1, 174: 1, 26: 1, 276: 1, 206: 1, 105: 1, 94: 1, 93: 1, 57: 1, 114: 1, 52: 1, 100: 1, 117: 1, 118: 1 }, L4), o.xh = function(n) { return Cee(this, n); }, o.Ih = function(n, t, i) { @@ -41100,10 +41190,10 @@ function WDn() { } hee(this, n); }, o.Ib = function() { - return Tqe(this); + return Sqe(this); }, w(i0, "ElkPortImpl", 193); - var Eon = Zt(Er, "BasicEMap/Entry"); - b(1091, 118, { 109: 1, 45: 1, 94: 1, 93: 1, 136: 1, 57: 1, 114: 1, 52: 1, 100: 1, 117: 1, 118: 1 }, T5e), o.Fb = function(n) { + var Aon = Zt(Er, "BasicEMap/Entry"); + b(1091, 118, { 109: 1, 45: 1, 94: 1, 93: 1, 136: 1, 57: 1, 114: 1, 52: 1, 100: 1, 117: 1, 118: 1 }, S5e), o.Fb = function(n) { return this === n; }, o.jd = function() { return this.b; @@ -41161,105 +41251,105 @@ function WDn() { return t = this.c, xY(this, n), t; }, o.Ib = function() { var n; - return (this.Db & 64) != 0 ? kf(this) : (n = new w1(), it(it(it(n, this.b ? this.b.Og() : Bu), BB), b6(this.c)), n.a); + return (this.Db & 64) != 0 ? kf(this) : (n = new w1(), it(it(it(n, this.b ? this.b.Og() : _u), __), b6(this.c)), n.a); }, o.a = -1, o.c = null; var c1 = w(i0, "ElkPropertyToValueMapEntryImpl", 1091); - b(980, 1, {}, S5e), w(ir, "JsonAdapter", 980), b(215, 63, ra, Lh), w(ir, "JsonImportException", 215), b(850, 1, {}, qGe), w(ir, "JsonImporter", 850), b(884, 1, {}, Mxe), o.Bi = function(n) { - R_e(this.a, this.b, u(n, 139)); - }, w(ir, "JsonImporter/lambda$0$Type", 884), b(885, 1, {}, Txe), o.Bi = function(n) { - yGe(this.a, this.b, u(n, 139)); - }, w(ir, "JsonImporter/lambda$1$Type", 885), b(893, 1, {}, Zye), o.Bi = function(n) { - OIe(this.a, u(n, 149)); - }, w(ir, "JsonImporter/lambda$10$Type", 893), b(895, 1, {}, Sxe), o.Bi = function(n) { - oGe(this.a, this.b, u(n, 139)); - }, w(ir, "JsonImporter/lambda$11$Type", 895), b(896, 1, {}, Ixe), o.Bi = function(n) { + b(980, 1, {}, I5e), w(ir, "JsonAdapter", 980), b(215, 63, ra, Lh), w(ir, "JsonImportException", 215), b(850, 1, {}, UGe), w(ir, "JsonImporter", 850), b(884, 1, {}, Txe), o.Bi = function(n) { + _Be(this.a, this.b, u(n, 139)); + }, w(ir, "JsonImporter/lambda$0$Type", 884), b(885, 1, {}, Sxe), o.Bi = function(n) { + jGe(this.a, this.b, u(n, 139)); + }, w(ir, "JsonImporter/lambda$1$Type", 885), b(893, 1, {}, e7e), o.Bi = function(n) { + LIe(this.a, u(n, 149)); + }, w(ir, "JsonImporter/lambda$10$Type", 893), b(895, 1, {}, Ixe), o.Bi = function(n) { fGe(this.a, this.b, u(n, 139)); - }, w(ir, "JsonImporter/lambda$12$Type", 896), b(902, 1, {}, HIe), o.Bi = function(n) { - PJe(this.a, this.b, this.c, this.d, u(n, 139)); - }, w(ir, "JsonImporter/lambda$13$Type", 902), b(901, 1, {}, qIe), o.Bi = function(n) { - Kqe(this.a, this.b, this.c, this.d, u(n, 149)); - }, w(ir, "JsonImporter/lambda$14$Type", 901), b(897, 1, {}, Cxe), o.Bi = function(n) { - cTe(this.a, this.b, zn(n)); - }, w(ir, "JsonImporter/lambda$15$Type", 897), b(898, 1, {}, Pxe), o.Bi = function(n) { + }, w(ir, "JsonImporter/lambda$11$Type", 895), b(896, 1, {}, Cxe), o.Bi = function(n) { + hGe(this.a, this.b, u(n, 139)); + }, w(ir, "JsonImporter/lambda$12$Type", 896), b(902, 1, {}, qIe), o.Bi = function(n) { + OJe(this.a, this.b, this.c, this.d, u(n, 139)); + }, w(ir, "JsonImporter/lambda$13$Type", 902), b(901, 1, {}, UIe), o.Bi = function(n) { + Vqe(this.a, this.b, this.c, this.d, u(n, 149)); + }, w(ir, "JsonImporter/lambda$14$Type", 901), b(897, 1, {}, Pxe), o.Bi = function(n) { uTe(this.a, this.b, zn(n)); - }, w(ir, "JsonImporter/lambda$16$Type", 898), b(899, 1, {}, Oxe), o.Bi = function(n) { - v_e(this.b, this.a, u(n, 139)); - }, w(ir, "JsonImporter/lambda$17$Type", 899), b(900, 1, {}, Lxe), o.Bi = function(n) { - k_e(this.b, this.a, u(n, 139)); - }, w(ir, "JsonImporter/lambda$18$Type", 900), b(905, 1, {}, e7e), o.Bi = function(n) { + }, w(ir, "JsonImporter/lambda$15$Type", 897), b(898, 1, {}, Oxe), o.Bi = function(n) { + sTe(this.a, this.b, zn(n)); + }, w(ir, "JsonImporter/lambda$16$Type", 898), b(899, 1, {}, Lxe), o.Bi = function(n) { + kBe(this.b, this.a, u(n, 139)); + }, w(ir, "JsonImporter/lambda$17$Type", 899), b(900, 1, {}, Dxe), o.Bi = function(n) { + yBe(this.b, this.a, u(n, 139)); + }, w(ir, "JsonImporter/lambda$18$Type", 900), b(905, 1, {}, n7e), o.Bi = function(n) { + AJe(this.a, u(n, 149)); + }, w(ir, "JsonImporter/lambda$19$Type", 905), b(886, 1, {}, t7e), o.Bi = function(n) { + PBe(this.a, u(n, 139)); + }, w(ir, "JsonImporter/lambda$2$Type", 886), b(903, 1, {}, i7e), o.Bi = function(n) { + p2(this.a, B(H(n))); + }, w(ir, "JsonImporter/lambda$20$Type", 903), b(904, 1, {}, r7e), o.Bi = function(n) { + m2(this.a, B(H(n))); + }, w(ir, "JsonImporter/lambda$21$Type", 904), b(908, 1, {}, c7e), o.Bi = function(n) { EJe(this.a, u(n, 149)); - }, w(ir, "JsonImporter/lambda$19$Type", 905), b(886, 1, {}, n7e), o.Bi = function(n) { - C_e(this.a, u(n, 139)); - }, w(ir, "JsonImporter/lambda$2$Type", 886), b(903, 1, {}, t7e), o.Bi = function(n) { - p2(this.a, _(H(n))); - }, w(ir, "JsonImporter/lambda$20$Type", 903), b(904, 1, {}, i7e), o.Bi = function(n) { - m2(this.a, _(H(n))); - }, w(ir, "JsonImporter/lambda$21$Type", 904), b(908, 1, {}, r7e), o.Bi = function(n) { - jJe(this.a, u(n, 149)); - }, w(ir, "JsonImporter/lambda$22$Type", 908), b(906, 1, {}, c7e), o.Bi = function(n) { - w2(this.a, _(H(n))); - }, w(ir, "JsonImporter/lambda$23$Type", 906), b(907, 1, {}, u7e), o.Bi = function(n) { - g2(this.a, _(H(n))); - }, w(ir, "JsonImporter/lambda$24$Type", 907), b(910, 1, {}, s7e), o.Bi = function(n) { - K_e(this.a, u(n, 139)); - }, w(ir, "JsonImporter/lambda$25$Type", 910), b(909, 1, {}, o7e), o.Bi = function(n) { - LIe(this.a, u(n, 149)); - }, w(ir, "JsonImporter/lambda$26$Type", 909), b(911, 1, mn, Dxe), o.Ad = function(n) { + }, w(ir, "JsonImporter/lambda$22$Type", 908), b(906, 1, {}, u7e), o.Bi = function(n) { + w2(this.a, B(H(n))); + }, w(ir, "JsonImporter/lambda$23$Type", 906), b(907, 1, {}, s7e), o.Bi = function(n) { + g2(this.a, B(H(n))); + }, w(ir, "JsonImporter/lambda$24$Type", 907), b(910, 1, {}, o7e), o.Bi = function(n) { + VBe(this.a, u(n, 139)); + }, w(ir, "JsonImporter/lambda$25$Type", 910), b(909, 1, {}, f7e), o.Bi = function(n) { + DIe(this.a, u(n, 149)); + }, w(ir, "JsonImporter/lambda$26$Type", 909), b(911, 1, mn, Nxe), o.Ad = function(n) { Fvn(this.b, this.a, zn(n)); - }, w(ir, "JsonImporter/lambda$27$Type", 911), b(912, 1, mn, Nxe), o.Ad = function(n) { + }, w(ir, "JsonImporter/lambda$27$Type", 911), b(912, 1, mn, Fxe), o.Ad = function(n) { Rvn(this.b, this.a, zn(n)); - }, w(ir, "JsonImporter/lambda$28$Type", 912), b(913, 1, {}, Fxe), o.Bi = function(n) { - rHe(this.a, this.b, u(n, 139)); - }, w(ir, "JsonImporter/lambda$29$Type", 913), b(889, 1, {}, f7e), o.Bi = function(n) { - HRe(this.a, u(n, 149)); - }, w(ir, "JsonImporter/lambda$3$Type", 889), b(914, 1, {}, Rxe), o.Bi = function(n) { - $He(this.a, this.b, u(n, 139)); - }, w(ir, "JsonImporter/lambda$30$Type", 914), b(915, 1, {}, h7e), o.Bi = function(n) { - lDe(this.a, H(n)); - }, w(ir, "JsonImporter/lambda$31$Type", 915), b(916, 1, {}, l7e), o.Bi = function(n) { + }, w(ir, "JsonImporter/lambda$28$Type", 912), b(913, 1, {}, Rxe), o.Bi = function(n) { + cHe(this.a, this.b, u(n, 139)); + }, w(ir, "JsonImporter/lambda$29$Type", 913), b(889, 1, {}, h7e), o.Bi = function(n) { + qRe(this.a, u(n, 149)); + }, w(ir, "JsonImporter/lambda$3$Type", 889), b(914, 1, {}, _xe), o.Bi = function(n) { + MHe(this.a, this.b, u(n, 139)); + }, w(ir, "JsonImporter/lambda$30$Type", 914), b(915, 1, {}, l7e), o.Bi = function(n) { aDe(this.a, H(n)); - }, w(ir, "JsonImporter/lambda$32$Type", 916), b(917, 1, {}, a7e), o.Bi = function(n) { + }, w(ir, "JsonImporter/lambda$31$Type", 915), b(916, 1, {}, a7e), o.Bi = function(n) { dDe(this.a, H(n)); - }, w(ir, "JsonImporter/lambda$33$Type", 917), b(918, 1, {}, d7e), o.Bi = function(n) { + }, w(ir, "JsonImporter/lambda$32$Type", 916), b(917, 1, {}, d7e), o.Bi = function(n) { bDe(this.a, H(n)); - }, w(ir, "JsonImporter/lambda$34$Type", 918), b(919, 1, {}, b7e), o.Bi = function(n) { + }, w(ir, "JsonImporter/lambda$33$Type", 917), b(918, 1, {}, b7e), o.Bi = function(n) { + wDe(this.a, H(n)); + }, w(ir, "JsonImporter/lambda$34$Type", 918), b(919, 1, {}, w7e), o.Bi = function(n) { Ljn(this.a, u(n, 57)); - }, w(ir, "JsonImporter/lambda$35$Type", 919), b(920, 1, {}, w7e), o.Bi = function(n) { + }, w(ir, "JsonImporter/lambda$35$Type", 919), b(920, 1, {}, g7e), o.Bi = function(n) { Djn(this.a, u(n, 57)); - }, w(ir, "JsonImporter/lambda$36$Type", 920), b(924, 1, {}, GIe), w(ir, "JsonImporter/lambda$37$Type", 924), b(921, 1, mn, RTe), o.Ad = function(n) { + }, w(ir, "JsonImporter/lambda$36$Type", 920), b(924, 1, {}, HIe), w(ir, "JsonImporter/lambda$37$Type", 924), b(921, 1, mn, _Te), o.Ad = function(n) { h4n(this.a, this.c, this.b, u(n, 372)); }, w(ir, "JsonImporter/lambda$38$Type", 921), b(922, 1, mn, Bxe), o.Ad = function(n) { Kan(this.a, this.b, u(n, 170)); - }, w(ir, "JsonImporter/lambda$39$Type", 922), b(887, 1, {}, g7e), o.Bi = function(n) { - p2(this.a, _(H(n))); - }, w(ir, "JsonImporter/lambda$4$Type", 887), b(923, 1, mn, _xe), o.Ad = function(n) { + }, w(ir, "JsonImporter/lambda$39$Type", 922), b(887, 1, {}, p7e), o.Bi = function(n) { + p2(this.a, B(H(n))); + }, w(ir, "JsonImporter/lambda$4$Type", 887), b(923, 1, mn, Jxe), o.Ad = function(n) { Van(this.a, this.b, u(n, 170)); }, w(ir, "JsonImporter/lambda$40$Type", 923), b(925, 1, mn, BTe), o.Ad = function(n) { l4n(this.a, this.b, this.c, u(n, 8)); - }, w(ir, "JsonImporter/lambda$41$Type", 925), b(888, 1, {}, p7e), o.Bi = function(n) { - m2(this.a, _(H(n))); - }, w(ir, "JsonImporter/lambda$5$Type", 888), b(892, 1, {}, m7e), o.Bi = function(n) { - qRe(this.a, u(n, 149)); - }, w(ir, "JsonImporter/lambda$6$Type", 892), b(890, 1, {}, v7e), o.Bi = function(n) { - w2(this.a, _(H(n))); - }, w(ir, "JsonImporter/lambda$7$Type", 890), b(891, 1, {}, k7e), o.Bi = function(n) { - g2(this.a, _(H(n))); - }, w(ir, "JsonImporter/lambda$8$Type", 891), b(894, 1, {}, y7e), o.Bi = function(n) { - V_e(this.a, u(n, 139)); - }, w(ir, "JsonImporter/lambda$9$Type", 894), b(944, 1, mn, j7e), o.Ad = function(n) { + }, w(ir, "JsonImporter/lambda$41$Type", 925), b(888, 1, {}, m7e), o.Bi = function(n) { + m2(this.a, B(H(n))); + }, w(ir, "JsonImporter/lambda$5$Type", 888), b(892, 1, {}, v7e), o.Bi = function(n) { + URe(this.a, u(n, 149)); + }, w(ir, "JsonImporter/lambda$6$Type", 892), b(890, 1, {}, k7e), o.Bi = function(n) { + w2(this.a, B(H(n))); + }, w(ir, "JsonImporter/lambda$7$Type", 890), b(891, 1, {}, y7e), o.Bi = function(n) { + g2(this.a, B(H(n))); + }, w(ir, "JsonImporter/lambda$8$Type", 891), b(894, 1, {}, j7e), o.Bi = function(n) { + QBe(this.a, u(n, 139)); + }, w(ir, "JsonImporter/lambda$9$Type", 894), b(944, 1, mn, E7e), o.Ad = function(n) { c3(this.a, new gw(zn(n))); - }, w(ir, "JsonMetaDataConverter/lambda$0$Type", 944), b(945, 1, mn, E7e), o.Ad = function(n) { + }, w(ir, "JsonMetaDataConverter/lambda$0$Type", 944), b(945, 1, mn, A7e), o.Ad = function(n) { Ggn(this.a, u(n, 244)); - }, w(ir, "JsonMetaDataConverter/lambda$1$Type", 945), b(946, 1, mn, A7e), o.Ad = function(n) { + }, w(ir, "JsonMetaDataConverter/lambda$1$Type", 945), b(946, 1, mn, x7e), o.Ad = function(n) { Opn(this.a, u(n, 144)); - }, w(ir, "JsonMetaDataConverter/lambda$2$Type", 946), b(947, 1, mn, x7e), o.Ad = function(n) { + }, w(ir, "JsonMetaDataConverter/lambda$2$Type", 946), b(947, 1, mn, $7e), o.Ad = function(n) { Hgn(this.a, u(n, 160)); }, w(ir, "JsonMetaDataConverter/lambda$3$Type", 947), b(244, 23, { 3: 1, 35: 1, 23: 1, 244: 1 }, qp); - var tP, iP, vU, rP, cP, uP, kU, yU, sP = Pn(gj, "GraphFeature", 244, Bn, g5n, Awn), Aon; + var tP, iP, vU, rP, cP, uP, kU, yU, sP = Pn(gj, "GraphFeature", 244, _n, g5n, Awn), xon; b(11, 1, { 35: 1, 147: 1 }, It, zt, Fe, nr), o.Dd = function(n) { return W1n(this, u(n, 147)); }, o.Fb = function(n) { - return bCe(this, n); + return wCe(this, n); }, o.Rg = function() { return ge(this); }, o.Og = function() { @@ -41279,7 +41369,7 @@ function WDn() { }, o.Pb = function() { return Gvn(this); }, o.Qb = function() { - vEe(); + kEe(); }, o.Ob = function() { return !!this.a; }, w(IS, "ElkGraphUtil/AncestorIterator", 698); @@ -41308,7 +41398,7 @@ function WDn() { }, o.Oi = function(n, t) { }, o.Pi = function(n, t, i) { }, o.Fb = function(n) { - return lqe(this, n); + return aqe(this, n); }, o.Hb = function() { return zY(this); }, o.Qi = function() { @@ -41335,10 +41425,10 @@ function WDn() { return !0; }, o.Xi = function(n, t) { return Cv(this, t); - }, w(Er, "AbstractEList", 71), b(67, 71, el, oA, V0, _Y), o.Ci = function(n, t) { + }, w(Er, "AbstractEList", 71), b(67, 71, el, oA, V0, BY), o.Ci = function(n, t) { return XF(this, n, t); }, o.Di = function(n) { - return e_e(this, n); + return nBe(this, n); }, o.Ei = function(n, t) { k7(this, n, t); }, o.Fi = function(n) { @@ -41355,7 +41445,7 @@ function WDn() { var t, i, r; ++this.j, i = this.g == null ? 0 : this.g.length, n > i && (r = this.g, t = i + (i / 2 | 0) + 4, t < n && (t = n), this.g = this.$i(t), r != null && zc(r, 0, this.g, 0, this.i)); }, o.bd = function(n) { - return E_e(this, n); + return ABe(this, n); }, o.dc = function() { return this.i == 0; }, o.Ri = function(n, t) { @@ -41388,15 +41478,15 @@ function WDn() { this.e.Qb(); }, o.c = !1, w(Er, "AbstractTreeIterator", 697), b(604, 697, bJ, lL), o._i = function(n) { var t; - return t = u(n, 57).Dh().Jc(), N(t, 287) && u(t, 287).ul(new I5e()), t; - }, w(IS, "ElkGraphUtil/PropertiesSkippingTreeIterator", 604), b(948, 1, {}, I5e), w(IS, "ElkGraphUtil/PropertiesSkippingTreeIterator/1", 948); + return t = u(n, 57).Dh().Jc(), N(t, 287) && u(t, 287).ul(new C5e()), t; + }, w(IS, "ElkGraphUtil/PropertiesSkippingTreeIterator", 604), b(948, 1, {}, C5e), w(IS, "ElkGraphUtil/PropertiesSkippingTreeIterator/1", 948); var WE, jU, XE = w(IS, "ElkReflect", null); - b(882, 1, ng, C5e), o.Qg = function(n) { + b(882, 1, ng, P5e), o.Qg = function(n) { return A$(), y3n(u(n, 182)); }, w(IS, "ElkReflect/lambda$0$Type", 882); var j0; Zt(Er, "ResourceLocator"), b(1045, 1, {}), w(Er, "DelegatingResourceLocator", 1045), b(1046, 1045, {}), w("org.eclipse.emf.common", "EMFPlugin", 1046); - var EU = Zt(IVe, "Adapter"), QLn = Zt(IVe, "Notification"); + var EU = Zt(CVe, "Adapter"), QLn = Zt(CVe, "Notification"); b(1143, 1, Rue), o.aj = function() { return this.d; }, o.bj = function(n) { @@ -41404,7 +41494,7 @@ function WDn() { this.d = n; }, o.dj = function(n) { this.d == n && (this.d = null); - }, o.d = null, w(W3, "AdapterImpl", 1143), b(2055, 71, CVe), o.Ci = function(n, t) { + }, o.d = null, w(W3, "AdapterImpl", 1143), b(2055, 71, PVe), o.Ci = function(n, t) { return WZ(this, n, t); }, o.Di = function(n) { var t, i, r; @@ -41414,9 +41504,9 @@ function WDn() { i = r.Pb(), this.pj(this.Xi(t, i)), ++t; return !0; }, o.Ei = function(n, t) { - _Me(this, n, t); + JMe(this, n, t); }, o.Fi = function(n) { - lIe(this, n); + aIe(this, n); }, o.nj = function() { return this.qj(); }, o.$b = function() { @@ -41488,12 +41578,12 @@ function WDn() { return this.Ej(n); }, o.Ib = function() { return this.Fj(); - }, w(Er, "DelegatingEList", 2055), b(2056, 2055, CVe), o.Ci = function(n, t) { - return _te(this, n, t); + }, w(Er, "DelegatingEList", 2055), b(2056, 2055, PVe), o.Ci = function(n, t) { + return Bte(this, n, t); }, o.Di = function(n) { return this.Ci(this.Cj(), n); }, o.Ei = function(n, t) { - VGe(this, n, t); + QGe(this, n, t); }, o.Fi = function(n) { BGe(this, n); }, o.Ji = function() { @@ -41501,7 +41591,7 @@ function WDn() { }, o.$b = function() { S9(this); }, o.Gj = function(n, t, i, r, c) { - return new aCe(this, n, t, i, r, c); + return new dCe(this, n, t, i, r, c); }, o.Hj = function(n) { yt(this.hj(), n); }, o.Ij = function() { @@ -41527,7 +41617,7 @@ function WDn() { var t, i, r, c; return this.Nj() ? (i = null, r = this.Oj(), t = this.Gj(4, c = qx(this, n), null, n, r), this.Kj() && c ? (i = this.Mj(c, i), i ? (i.lj(t), i.mj()) : this.Hj(t)) : i ? (i.lj(t), i.mj()) : this.Hj(t), c) : (c = qx(this, n), this.Kj() && c && (i = this.Mj(c, null), i && i.mj()), c); }, o.Vi = function(n, t) { - return sUe(this, n, t); + return oUe(this, n, t); }, w(W3, "DelegatingNotifyingListImpl", 2056), b(151, 1, Oj), o.lj = function(n) { return zee(this, n); }, o.mj = function() { @@ -41541,7 +41631,7 @@ function WDn() { }, o.fj = function(n) { return -1; }, o.gj = function() { - return zHe(this); + return WHe(this); }, o.hj = function() { return null; }, o.ij = function() { @@ -41565,7 +41655,7 @@ function WDn() { switch (c = n.ej(), c) { case 4: { if (s = n.hj(), z(s) === z(this.hj()) && this.fj(null) == n.fj(null)) - return a = rie(this), l = this.o < 0 ? this.o < -2 ? -2 - this.o - 1 : -1 : this.o, f = n.jj(), this.d = 6, g = new V0(2), l <= f ? (Dn(g, this.n), Dn(g, n.ij()), this.g = I(T(Wn, 1), lt, 30, 15, [this.o = l, f + 1])) : (Dn(g, n.ij()), Dn(g, this.n), this.g = I(T(Wn, 1), lt, 30, 15, [this.o = f, l])), this.n = g, a || (this.o = -2 - this.o - 1), !0; + return a = rie(this), l = this.o < 0 ? this.o < -2 ? -2 - this.o - 1 : -1 : this.o, f = n.jj(), this.d = 6, g = new V0(2), l <= f ? (Dn(g, this.n), Dn(g, n.ij()), this.g = I(S(Wn, 1), lt, 30, 15, [this.o = l, f + 1])) : (Dn(g, n.ij()), Dn(g, this.n), this.g = I(S(Wn, 1), lt, 30, 15, [this.o = f, l])), this.n = g, a || (this.o = -2 - this.o - 1), !0; break; } } @@ -41590,7 +41680,7 @@ function WDn() { return !1; }, o.Ib = function() { var n, t, i, r; - switch (r = new _o(Ed(this.Pm) + "@" + (t = Gt(this) >>> 0, t.toString(16))), r.a += " (eventType: ", this.d) { + switch (r = new Bo(Ed(this.Pm) + "@" + (t = Gt(this) >>> 0, t.toString(16))), r.a += " (eventType: ", this.d) { case 1: { r.a += "SET"; break; @@ -41632,30 +41722,30 @@ function WDn() { break; } } - if (Lqe(this) && (r.a += ", touch: true"), r.a += ", position: ", mO(r, this.o < 0 ? this.o < -2 ? -2 - this.o - 1 : -1 : this.o), r.a += ", notifier: ", o6(r, this.hj()), r.a += ", feature: ", o6(r, this.Ij()), r.a += ", oldValue: ", o6(r, wte(this)), r.a += ", newValue: ", this.d == 6 && N(this.g, 54)) { + if (Dqe(this) && (r.a += ", touch: true"), r.a += ", position: ", mO(r, this.o < 0 ? this.o < -2 ? -2 - this.o - 1 : -1 : this.o), r.a += ", notifier: ", o6(r, this.hj()), r.a += ", feature: ", o6(r, this.Ij()), r.a += ", oldValue: ", o6(r, wte(this)), r.a += ", newValue: ", this.d == 6 && N(this.g, 54)) { for (i = u(this.g, 54), r.a += "[", n = 0; n < i.length; ) r.a += i[n], ++n < i.length && (r.a += mu); r.a += "]"; } else - o6(r, zHe(this)); - return r.a += ", isTouch: ", $a(r, Lqe(this)), r.a += ", wasSet: ", $a(r, rie(this)), r.a += ")", r.a; - }, o.d = 0, o.e = 0, o.f = 0, o.j = 0, o.k = 0, o.o = 0, o.p = 0, w(W3, "NotificationImpl", 151), b(1157, 151, Oj, aCe), o.Ij = function() { + o6(r, WHe(this)); + return r.a += ", isTouch: ", $a(r, Dqe(this)), r.a += ", wasSet: ", $a(r, rie(this)), r.a += ")", r.a; + }, o.d = 0, o.e = 0, o.f = 0, o.j = 0, o.k = 0, o.o = 0, o.p = 0, w(W3, "NotificationImpl", 151), b(1157, 151, Oj, dCe), o.Ij = function() { return this.a.Ij(); }, o.fj = function(n) { return this.a.Jj(); }, o.hj = function() { return this.a.hj(); - }, w(W3, "DelegatingNotifyingListImpl/1", 1157), b(252, 67, el, P5e, g1), o.Ec = function(n) { - return WRe(this, u(n, 373)); + }, w(W3, "DelegatingNotifyingListImpl/1", 1157), b(252, 67, el, O5e, g1), o.Ec = function(n) { + return XRe(this, u(n, 373)); }, o.lj = function(n) { - return WRe(this, n); + return XRe(this, n); }, o.mj = function() { var n, t, i; for (n = 0; n < this.i; ++n) t = u(this.g[n], 373), i = t.hj(), i != null && t.ej() != -1 && u(i, 94).uh(t); }, o.$i = function(n) { return W(QLn, Ve, 373, n, 0, 1); - }, w(W3, "NotificationChainImpl", 252), b(1485, 93, GKe), o.rh = function() { + }, w(W3, "NotificationChainImpl", 252), b(1485, 93, HKe), o.rh = function() { return this.e; }, o.th = function() { return (this.f & 1) != 0; @@ -41664,7 +41754,7 @@ function WDn() { }, o.Di = function(n) { return this.Ci(this.i, n); }, o.Ei = function(n, t) { - Bne(this, n, t); + _ne(this, n, t); }, o.Fi = function(n) { oR(this, n); }, o.Ji = function() { @@ -41672,7 +41762,7 @@ function WDn() { }, o.$b = function() { On(this); }, o.Gj = function(n, t, i, r, c) { - return new dCe(this, n, t, i, r, c); + return new bCe(this, n, t, i, r, c); }, o.Hj = function(n) { yt(this.hj(), n); }, o.Ij = function() { @@ -41698,21 +41788,21 @@ function WDn() { }, o.ed = function(n) { return Gw(this, n); }, o.Vi = function(n, t) { - return AUe(this, n, t); + return xUe(this, n, t); }, o.Sj = function(n, t) { return t; }, o.Tj = function(n, t) { return t; }, o.Uj = function(n, t, i) { return i; - }, w(W3, "NotifyingListImpl", 2053), b(1156, 151, Oj, dCe), o.Ij = function() { + }, w(W3, "NotifyingListImpl", 2053), b(1156, 151, Oj, bCe), o.Ij = function() { return this.a.Ij(); }, o.fj = function(n) { return this.a.Jj(); }, o.hj = function() { return this.a.hj(); - }, w(W3, "NotifyingListImpl/1", 1156), b(949, 67, el, GMe), o.Gc = function(n) { - return this.i > 10 ? ((!this.b || this.c.j != this.a) && (this.b = new aw(this), this.a = this.j), Bo(this.b, n)) : Wv(this, n); + }, w(W3, "NotifyingListImpl/1", 1156), b(949, 67, el, HMe), o.Gc = function(n) { + return this.i > 10 ? ((!this.b || this.c.j != this.a) && (this.b = new aw(this), this.a = this.j), _o(this.b, n)) : Wv(this, n); }, o.Wi = function() { return !0; }, o.a = 0, w(Er, "AbstractEList/1", 949), b(305, 99, qT, hw), w(Er, "AbstractEList/BasicIndexOutOfBoundsException", 305), b(42, 1, Wi, kn), o.Nb = function(n) { @@ -41731,7 +41821,7 @@ function WDn() { }, o.e = 0, o.f = 0, o.g = -1, w(Er, "AbstractEList/EIterator", 42), b(286, 42, pl, Xp, rD), o.Qb = function() { l9(this); }, o.Rb = function(n) { - nBe(this, n); + t_e(this, n); }, o.Xj = function() { var n; try { @@ -41740,7 +41830,7 @@ function WDn() { throw t = gi(t), N(t, 99) ? (this.Vj(), $(new oc())) : $(t); } }, o.Yj = function(n) { - n_e(this, n); + tBe(this, n); }, o.Sb = function() { return this.e != 0; }, o.Tb = function() { @@ -41775,7 +41865,7 @@ function WDn() { throw $(new qn()); }, o.Wb = function(n) { throw $(new qn()); - }, w(Er, "AbstractEList/NonResolvingEListIterator", 391), b(2042, 71, PVe), o.Ci = function(n, t) { + }, w(Er, "AbstractEList/NonResolvingEListIterator", 391), b(2042, 71, OVe), o.Ci = function(n, t) { var i, r, c, s, f, h, l, a, d, g, p; if (c = t.gc(), c != 0) { for (a = u(hn(this.a, 4), 129), d = a == null ? 0 : a.length, p = d + c, r = UN(this, p), g = d - n, g > 0 && zc(a, n, r, n + c, g), l = t.Jc(), f = 0; f < c; ++f) @@ -41802,13 +41892,13 @@ function WDn() { var t, i, r; r = (i = u(hn(this.a, 4), 129), i == null ? 0 : i.length), t = UN(this, r + 1), dL(t, r, Cv(this, n)), qv(this, t), this.Ki(r, n); }, o.Gi = function() { - return new DOe(this); + return new NOe(this); }, o.Hi = function() { - return new XSe(this); + return new KSe(this); }, o.Ii = function(n) { var t, i; if (i = (t = u(hn(this.a, 4), 129), t == null ? 0 : t.length), n < 0 || n > i) throw $(new hw(n, i)); - return new MIe(this, n); + return new TIe(this, n); }, o.$b = function() { var n, t; ++this.j, n = u(hn(this.a, 4), 129), t = n == null ? 0 : n.length, qv(this, null), ZD(this, t, n); @@ -41845,16 +41935,16 @@ function WDn() { }, o.dc = function() { return u(hn(this.a, 4), 129) == null; }, o.Jc = function() { - return new LOe(this); + return new DOe(this); }, o.cd = function() { - return new WSe(this); + return new XSe(this); }, o.dd = function(n) { var t, i; if (i = (t = u(hn(this.a, 4), 129), t == null ? 0 : t.length), n < 0 || n > i) throw $(new hw(n, i)); - return new $Ie(this, n); + return new MIe(this, n); }, o.Ri = function(n, t) { var i, r, c; - if (i = hBe(this), c = i == null ? 0 : i.length, n >= c) throw $(new lu(aJ + n + r0 + c)); + if (i = l_e(this), c = i == null ? 0 : i.length, n >= c) throw $(new lu(aJ + n + r0 + c)); if (t >= c) throw $(new lu(dJ + t + r0 + c)); return r = i[t], n != t && (n < t ? zc(i, n, i, n + 1, t - n) : zc(i, t + 1, i, t, n - t), ai(i, n, r), qv(this, i)), r; }, o.Ti = function(n) { @@ -41863,7 +41953,7 @@ function WDn() { return FAn(this, n); }, o.Vi = function(n, t) { var i, r; - return i = hBe(this), r = i[n], dL(i, n, Cv(this, t)), qv(this, i), r; + return i = l_e(this), r = i[n], dL(i, n, Cv(this, t)), qv(this, i), r; }, o.gc = function() { var n; return n = u(hn(this.a, 4), 129), n == null ? 0 : n.length; @@ -41874,23 +41964,23 @@ function WDn() { var t, i, r; return t = u(hn(this.a, 4), 129), r = t == null ? 0 : t.length, r > 0 && (n.length < r && (i = u7(Rs(n).c, r), n = i), zc(t, 0, n, 0, r)), n.length > r && ai(n, r, null), n; }; - var xon; - w(Er, "ArrayDelegatingEList", 2042), b(1032, 42, Wi, LOe), o.Vj = function() { + var $on; + w(Er, "ArrayDelegatingEList", 2042), b(1032, 42, Wi, DOe), o.Vj = function() { if (this.b.j != this.f || z(u(hn(this.b.a, 4), 129)) !== z(this.a)) throw $(new lo()); }, o.Qb = function() { l9(this), this.a = u(hn(this.b.a, 4), 129); - }, w(Er, "ArrayDelegatingEList/EIterator", 1032), b(712, 286, pl, WSe, $Ie), o.Vj = function() { + }, w(Er, "ArrayDelegatingEList/EIterator", 1032), b(712, 286, pl, XSe, MIe), o.Vj = function() { if (this.b.j != this.f || z(u(hn(this.b.a, 4), 129)) !== z(this.a)) throw $(new lo()); }, o.Yj = function(n) { - n_e(this, n), this.a = u(hn(this.b.a, 4), 129); + tBe(this, n), this.a = u(hn(this.b.a, 4), 129); }, o.Qb = function() { l9(this), this.a = u(hn(this.b.a, 4), 129); - }, w(Er, "ArrayDelegatingEList/EListIterator", 712), b(1033, 355, Wi, DOe), o.Vj = function() { + }, w(Er, "ArrayDelegatingEList/EListIterator", 712), b(1033, 355, Wi, NOe), o.Vj = function() { if (this.b.j != this.f || z(u(hn(this.b.a, 4), 129)) !== z(this.a)) throw $(new lo()); - }, w(Er, "ArrayDelegatingEList/NonResolvingEIterator", 1033), b(713, 391, pl, XSe, MIe), o.Vj = function() { + }, w(Er, "ArrayDelegatingEList/NonResolvingEIterator", 1033), b(713, 391, pl, KSe, TIe), o.Vj = function() { if (this.b.j != this.f || z(u(hn(this.b.a, 4), 129)) !== z(this.a)) throw $(new lo()); }, w(Er, "ArrayDelegatingEList/NonResolvingEListIterator", 713), b(605, 305, qT, sL), w(Er, "BasicEList/BasicIndexOutOfBoundsException", 605), b(699, 67, el, wX), o._c = function(n, t) { @@ -41938,7 +42028,7 @@ function WDn() { }, o.fd = function(n, t) { return Ugn(this, n, u(t, 45)); }, o.gd = function(n) { - _d(this, n); + Bd(this, n); }, o.Lc = function() { return new He(this, 16); }, o.Mc = function() { @@ -41956,18 +42046,18 @@ function WDn() { }, o.Zj = function() { var n, t, i; if (this.d == null) { - for (this.d = W(A0e, Bue, 67, 2 * this.f + 1, 0, 1), i = this.e, this.f = 0, t = this.c.Jc(); t.e != t.i.gc(); ) + for (this.d = W(A0e, _ue, 67, 2 * this.f + 1, 0, 1), i = this.e, this.f = 0, t = this.c.Jc(); t.e != t.i.gc(); ) n = u(t.Wj(), 136), VM(this, n); this.e = i; } }, o.Fb = function(n) { - return mTe(this, n); + return vTe(this, n); }, o.Hb = function() { return zY(this.c); }, o.bd = function(n) { return this.c.bd(n); }, o.$j = function() { - this.c = new $7e(this); + this.c = new M7e(this); }, o.dc = function() { return this.f == 0; }, o.Jc = function() { @@ -41979,11 +42069,11 @@ function WDn() { }, o._j = function() { return Xy(this); }, o.ak = function(n, t, i) { - return new _Te(n, t, i); + return new JTe(n, t, i); }, o.bk = function() { - return new L5e(); + return new D5e(); }, o.Kc = function(n) { - return hNe(this, n); + return lNe(this, n); }, o.gc = function() { return this.f; }, o.hd = function(n, t) { @@ -41994,7 +42084,7 @@ function WDn() { return this.c.Oc(n); }, o.Ib = function() { return GZ(this.c); - }, o.e = 0, o.f = 0, w(Er, "BasicEMap", 711), b(1027, 67, el, $7e), o.Ki = function(n, t) { + }, o.e = 0, o.f = 0, w(Er, "BasicEMap", 711), b(1027, 67, el, M7e), o.Ki = function(n, t) { mln(this, u(t, 136)); }, o.Ni = function(n, t, i) { var r; @@ -42004,29 +42094,29 @@ function WDn() { }, o.Pi = function(n, t, i) { gdn(this, u(t, 136), u(i, 136)); }, o.Mi = function(n, t) { - rFe(this.a); - }, w(Er, "BasicEMap/1", 1027), b(1028, 67, el, L5e), o.$i = function(n) { - return W(YLn, OVe, 611, n, 0, 1); - }, w(Er, "BasicEMap/2", 1028), b(1029, ph, is, M7e), o.$b = function() { + cFe(this.a); + }, w(Er, "BasicEMap/1", 1027), b(1028, 67, el, D5e), o.$i = function(n) { + return W(YLn, LVe, 611, n, 0, 1); + }, w(Er, "BasicEMap/2", 1028), b(1029, ph, is, T7e), o.$b = function() { this.a.c.$b(); }, o.Gc = function(n) { return fF(this.a, n); }, o.Jc = function() { - return this.a.f == 0 ? (Zm(), KE.a) : new lEe(this.a); + return this.a.f == 0 ? (Zm(), KE.a) : new aEe(this.a); }, o.Kc = function(n) { var t; - return t = this.a.f, _M(this.a, n), this.a.f != t; + return t = this.a.f, BM(this.a, n), this.a.f != t; }, o.gc = function() { return this.a.f; - }, w(Er, "BasicEMap/3", 1029), b(1030, 31, zw, T7e), o.$b = function() { + }, w(Er, "BasicEMap/3", 1029), b(1030, 31, zw, S7e), o.$b = function() { this.a.c.$b(); }, o.Gc = function(n) { - return aqe(this.a, n); + return dqe(this.a, n); }, o.Jc = function() { - return this.a.f == 0 ? (Zm(), KE.a) : new aEe(this.a); + return this.a.f == 0 ? (Zm(), KE.a) : new dEe(this.a); }, o.gc = function() { return this.a.f; - }, w(Er, "BasicEMap/4", 1030), b(1031, ph, is, S7e), o.$b = function() { + }, w(Er, "BasicEMap/4", 1030), b(1031, ph, is, I7e), o.$b = function() { this.a.c.$b(); }, o.Gc = function(n) { var t, i, r, c, s, f, h, l, a; @@ -42039,7 +42129,7 @@ function WDn() { }, o.Jc = function() { return this.a.f == 0 ? (Zm(), KE.a) : new yD(this.a); }, o.Kc = function(n) { - return nHe(this, n); + return tHe(this, n); }, o.gc = function() { return this.a.f; }, w(Er, "BasicEMap/5", 1031), b(612, 1, Wi, yD), o.Nb = function(n) { @@ -42052,7 +42142,7 @@ function WDn() { throw $(new lo()); if (this.b == -1) throw $(new oc()); - return this.d = this.a, this.e = this.b, N_e(this), n = u(this.f.d[this.d].g[this.e], 136), this.ck(n); + return this.d = this.a, this.e = this.b, FBe(this), n = u(this.f.d[this.d].g[this.e], 136), this.ck(n); }, o.Qb = function() { if (this.f.e != this.c) throw $(new lo()); @@ -42061,22 +42151,22 @@ function WDn() { this.f.c.Kc(F(this.f.d[this.d], this.e)), this.c = this.f.e, this.e = -1, this.a == this.d && this.b != -1 && --this.b; }, o.ck = function(n) { return n; - }, o.a = 0, o.b = -1, o.c = 0, o.d = 0, o.e = 0, w(Er, "BasicEMap/BasicEMapIterator", 612), b(1025, 612, Wi, lEe), o.ck = function(n) { + }, o.a = 0, o.b = -1, o.c = 0, o.d = 0, o.e = 0, w(Er, "BasicEMap/BasicEMapIterator", 612), b(1025, 612, Wi, aEe), o.ck = function(n) { return n.jd(); - }, w(Er, "BasicEMap/BasicEMapKeyIterator", 1025), b(1026, 612, Wi, aEe), o.ck = function(n) { + }, w(Er, "BasicEMap/BasicEMapKeyIterator", 1025), b(1026, 612, Wi, dEe), o.ck = function(n) { return n.kd(); - }, w(Er, "BasicEMap/BasicEMapValueIterator", 1026), b(Ef, 1, bb, I7e), o.wc = function(n) { + }, w(Er, "BasicEMap/BasicEMapValueIterator", 1026), b(Ef, 1, bb, C7e), o.wc = function(n) { f7(this, n); }, o.$b = function() { this.a.c.$b(); }, o._b = function(n) { - return Wxe(this, n); + return Xxe(this, n); }, o.uc = function(n) { - return aqe(this.a, n); + return dqe(this.a, n); }, o.vc = function() { return mvn(this.a); }, o.Fb = function(n) { - return mTe(this.a, n); + return vTe(this.a, n); }, o.xc = function(n) { return Uf(this.a, n); }, o.Hb = function() { @@ -42088,14 +42178,14 @@ function WDn() { }, o.yc = function(n, t) { return O7(this.a, n, t); }, o.Ac = function(n) { - return _M(this.a, n); + return BM(this.a, n); }, o.gc = function() { return this.a.f; }, o.Ib = function() { return GZ(this.a.c); }, o.Bc = function() { return gvn(this.a); - }, w(Er, "BasicEMap/DelegatingMap", Ef), b(611, 1, { 45: 1, 136: 1, 611: 1 }, _Te), o.Fb = function(n) { + }, w(Er, "BasicEMap/DelegatingMap", Ef), b(611, 1, { 45: 1, 136: 1, 611: 1 }, JTe), o.Fb = function(n) { var t; return N(n, 45) ? (t = u(n, 45), (this.b != null ? jt(this.b, t.jd()) : z(this.b) === z(t.jd())) && (this.c != null ? jt(this.c, t.kd()) : z(this.c) === z(t.kd()))) : !1; }, o.yi = function() { @@ -42125,7 +42215,7 @@ function WDn() { return rZ((ze(), $r)); }, o.Ib = function() { return wh((ze(), $r)); - }, w(Er, "ECollections/BasicEmptyUnmodifiableEList", 769), b(1302, 1, pl, O5e), o.Nb = function(n) { + }, w(Er, "ECollections/BasicEmptyUnmodifiableEList", 769), b(1302, 1, pl, L5e), o.Nb = function(n) { cr(this, n); }, o.Rb = function(n) { throw $(new qn()); @@ -42145,16 +42235,16 @@ function WDn() { throw $(new qn()); }, o.Wb = function(n) { throw $(new qn()); - }, w(Er, "ECollections/BasicEmptyUnmodifiableEList/1", 1302), b(1300, 769, { 20: 1, 18: 1, 16: 1, 61: 1 }, mje), o._c = function(n, t) { - LEe(); + }, w(Er, "ECollections/BasicEmptyUnmodifiableEList/1", 1302), b(1300, 769, { 20: 1, 18: 1, 16: 1, 61: 1 }, vje), o._c = function(n, t) { + DEe(); }, o.Ec = function(n) { - return OEe(); + return LEe(); }, o.ad = function(n, t) { - return DEe(); - }, o.Fc = function(n) { return NEe(); + }, o.Fc = function(n) { + return FEe(); }, o.$b = function() { - FEe(); + REe(); }, o.Gc = function(n) { return !1; }, o.Hc = function(n) { @@ -42174,19 +42264,19 @@ function WDn() { }, o.dd = function(n) { return this.a; }, o.Ri = function(n, t) { - return REe(); + return _Ee(); }, o.Si = function(n, t) { BEe(); }, o.ed = function(n) { - return _Ee(); - }, o.Kc = function(n) { return JEe(); - }, o.fd = function(n, t) { + }, o.Kc = function(n) { return GEe(); + }, o.fd = function(n, t) { + return HEe(); }, o.gc = function() { return 0; }, o.gd = function(n) { - _d(this, n); + Bd(this, n); }, o.Lc = function() { return new He(this, 16); }, o.Mc = function() { @@ -42197,16 +42287,16 @@ function WDn() { return bV((ze(), $r)); }, o.Oc = function(n) { return ze(), s9($r, n); - }, w(Er, "ECollections/EmptyUnmodifiableEList", 1300), b(1301, 769, { 20: 1, 18: 1, 16: 1, 61: 1, 586: 1 }, vje), o._c = function(n, t) { - LEe(); + }, w(Er, "ECollections/EmptyUnmodifiableEList", 1300), b(1301, 769, { 20: 1, 18: 1, 16: 1, 61: 1, 586: 1 }, kje), o._c = function(n, t) { + DEe(); }, o.Ec = function(n) { - return OEe(); + return LEe(); }, o.ad = function(n, t) { - return DEe(); - }, o.Fc = function(n) { return NEe(); + }, o.Fc = function(n) { + return FEe(); }, o.$b = function() { - FEe(); + REe(); }, o.Gc = function(n) { return !1; }, o.Hc = function(n) { @@ -42226,19 +42316,19 @@ function WDn() { }, o.dd = function(n) { return this.a; }, o.Ri = function(n, t) { - return REe(); + return _Ee(); }, o.Si = function(n, t) { BEe(); }, o.ed = function(n) { - return _Ee(); - }, o.Kc = function(n) { return JEe(); - }, o.fd = function(n, t) { + }, o.Kc = function(n) { return GEe(); + }, o.fd = function(n, t) { + return HEe(); }, o.gc = function() { return 0; }, o.gd = function(n) { - _d(this, n); + Bd(this, n); }, o.Lc = function() { return new He(this, 16); }, o.Mc = function() { @@ -42259,41 +42349,41 @@ function WDn() { }, o.Hb = function() { return this.f; }, o.Ib = function() { - return zqe(this); + return Wqe(this); }, o.f = 0; - var $on = 0, Mon = 0, Ton = 0, Son = 0, M0e = 0, T0e = 0, S0e = 0, I0e = 0, C0e = 0, Ion, E8 = 0, A8 = 0, Con = 0, Pon = 0, fP, P0e; - w(Er, "URI", 290), b(1090, 44, N2, kje), o.yc = function(n, t) { + var Mon = 0, Ton = 0, Son = 0, Ion = 0, M0e = 0, T0e = 0, S0e = 0, I0e = 0, C0e = 0, Con, E8 = 0, A8 = 0, Pon = 0, Oon = 0, fP, P0e; + w(Er, "URI", 290), b(1090, 44, N2, yje), o.yc = function(n, t) { return u(zr(this, zn(n), u(t, 290)), 290); - }, w(Er, "URI/URICache", 1090), b(492, 67, el, D5e, Vx), o.Qi = function() { + }, w(Er, "URI/URICache", 1090), b(492, 67, el, N5e, Vx), o.Qi = function() { return !0; }, w(Er, "UniqueEList", 492), b(578, 63, ra, W$), w(Er, "WrappedException", 578); - var ot = Zt($o, NVe), Og = Zt($o, FVe), Uu = Zt($o, RVe), Lg = Zt($o, BVe), nh = Zt($o, _Ve), ef = Zt($o, "EClass"), AU = Zt($o, "EDataType"), Oon; - b(1198, 44, N2, yje), o.xc = function(n) { + var ot = Zt($o, FVe), Og = Zt($o, RVe), Uu = Zt($o, _Ve), Lg = Zt($o, BVe), nh = Zt($o, JVe), ef = Zt($o, "EClass"), AU = Zt($o, "EDataType"), Lon; + b(1198, 44, N2, jje), o.xc = function(n) { return Hi(n) ? nu(this, n) : hc(Ur(this.f, n)); }, w($o, "EDataType/Internal/ConversionDelegate/Factory/Registry/Impl", 1198); - var hP = Zt($o, "EEnum"), wa = Zt($o, JVe), Rr = Zt($o, GVe), nf = Zt($o, HVe), tf, Rb = Zt($o, qVe), Dg = Zt($o, UVe); - b(1023, 1, {}, N5e), o.Ib = function() { + var hP = Zt($o, "EEnum"), wa = Zt($o, GVe), Rr = Zt($o, HVe), nf = Zt($o, qVe), tf, Rb = Zt($o, UVe), Dg = Zt($o, zVe); + b(1023, 1, {}, F5e), o.Ib = function() { return "NIL"; }, w($o, "EStructuralFeature/Internal/DynamicValueHolder/1", 1023); - var Lon; - b(1022, 44, N2, jje), o.xc = function(n) { + var Don; + b(1022, 44, N2, Eje), o.xc = function(n) { return Hi(n) ? nu(this, n) : hc(Ur(this.f, n)); }, w($o, "EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl", 1022); - var Iu = Zt($o, zVe), Em = Zt($o, "EValidator/PatternMatcher"), O0e, L0e, tn, u1, Ng, wd, Don, Non, Fon, gd, s1, pd, Bb, Ch, Ron, Bon, rf, o1, _on, f1, Fg, kp, Tr, Jon, Gon, _b, lP = Zt(Xt, "FeatureMap/Entry"); + var Iu = Zt($o, WVe), Em = Zt($o, "EValidator/PatternMatcher"), O0e, L0e, tn, u1, Ng, wd, Non, Fon, Ron, gd, s1, pd, _b, Ch, _on, Bon, rf, o1, Jon, f1, Fg, kp, Tr, Gon, Hon, Bb, lP = Zt(Xt, "FeatureMap/Entry"); b(533, 1, { 75: 1 }, dx), o.Jk = function() { return this.a; }, o.kd = function() { return this.b; - }, w(un, "BasicEObjectImpl/1", 533), b(1021, 1, vJ, Gxe), o.Dk = function(n) { + }, w(un, "BasicEObjectImpl/1", 533), b(1021, 1, vJ, Hxe), o.Dk = function(n) { return KD(this.a, this.b, n); }, o.Oj = function() { - return SCe(this.a, this.b); + return ICe(this.a, this.b); }, o.Wb = function(n) { nQ(this.a, this.b, n); }, o.Ek = function() { l2n(this.a, this.b); }, w(un, "BasicEObjectImpl/4", 1021), b(2043, 1, { 114: 1 }), o.Kk = function(n) { - this.e = n == 0 ? Hon : W(Li, Ve, 1, n, 5, 1); + this.e = n == 0 ? qon : W(Li, Ve, 1, n, 5, 1); }, o.ii = function(n) { return this.e[n]; }, o.ji = function(n, t) { @@ -42319,7 +42409,7 @@ function WDn() { }, o.Tk = function(n) { this.d = n; }; - var Hon; + var qon; w(un, "BasicEObjectImpl/EPropertiesHolderBaseImpl", 2043), b(192, 2043, { 114: 1 }, Nf), o.Mk = function() { return this.a; }, o.Nk = function() { @@ -42328,7 +42418,7 @@ function WDn() { this.a = n; }, o.Sk = function(n) { this.b = n; - }, w(un, "BasicEObjectImpl/EPropertiesHolderImpl", 192), b(501, 100, zKe, hA), o.rh = function() { + }, w(un, "BasicEObjectImpl/EPropertiesHolderImpl", 192), b(501, 100, WKe, hA), o.rh = function() { return this.f; }, o.wh = function() { return this.k; @@ -42367,17 +42457,17 @@ function WDn() { }, o.Lh = function() { return this.e != null; }, o.Xh = function() { - return !this.k && (this.k = new F5e()), this.k; + return !this.k && (this.k = new R5e()), this.k; }, o._h = function(n) { this.d = n; }, o.ei = function() { var n; - return this.e == null && (n = $n(this.d), this.e = n == 0 ? qon : W(Li, Ve, 1, n, 5, 1)), this; + return this.e == null && (n = $n(this.d), this.e = n == 0 ? Uon : W(Li, Ve, 1, n, 5, 1)), this; }, o.gi = function() { return 0; }; - var qon; - w(un, "DynamicEObjectImpl", 785), b(1483, 785, { 109: 1, 45: 1, 94: 1, 93: 1, 136: 1, 57: 1, 114: 1, 52: 1, 100: 1 }, oSe), o.Fb = function(n) { + var Uon; + w(un, "DynamicEObjectImpl", 785), b(1483, 785, { 109: 1, 45: 1, 94: 1, 93: 1, 136: 1, 57: 1, 114: 1, 52: 1, 100: 1 }, fSe), o.Fb = function(n) { return this === n; }, o.Hb = function() { return R0(this); @@ -42397,7 +42487,7 @@ function WDn() { }, o.ld = function(n) { var t; return t = oN(this, this.c), nQ(this, this.c, n), t; - }, o.a = 0, w(un, "DynamicEObjectImpl/BasicEMapEntry", 1483), b(1484, 1, { 114: 1 }, F5e), o.Kk = function(n) { + }, o.a = 0, w(un, "DynamicEObjectImpl/BasicEMapEntry", 1483), b(1484, 1, { 114: 1 }, R5e), o.Kk = function(n) { throw $(new qn()); }, o.ii = function(n) { throw $(new qn()); @@ -42435,7 +42525,7 @@ function WDn() { case 2: return i ? (!this.b && (this.b = new Ds((Ue(), Tr), Ic, this)), this.b) : (!this.b && (this.b = new Ds((Ue(), Tr), Ic, this)), Xy(this.b)); case 3: - return NCe(this); + return FCe(this); case 4: return !this.a && (this.a = new $i(bd, this, 4)), this.a; case 5: @@ -42474,7 +42564,7 @@ function WDn() { case 2: return !!this.b && this.b.f != 0; case 3: - return !!NCe(this); + return !!FCe(this); case 4: return !!this.a && this.a.i != 0; case 5: @@ -42494,7 +42584,7 @@ function WDn() { !this.b && (this.b = new Ds((Ue(), Tr), Ic, this)), gM(this.b, t); return; case 3: - LHe(this, u(t, 158)); + DHe(this, u(t, 158)); return; case 4: !this.a && (this.a = new $i(bd, this, 4)), On(this.a), !this.a && (this.a = new $i(bd, this, 4)), hi(this.a, u(t, 18)); @@ -42519,7 +42609,7 @@ function WDn() { !this.b && (this.b = new Ds((Ue(), Tr), Ic, this)), this.b.c.$b(); return; case 3: - LHe(this, null); + DHe(this, null); return; case 4: !this.a && (this.a = new $i(bd, this, 4)), On(this.a); @@ -42530,8 +42620,8 @@ function WDn() { } jo(this, n - $n((Ue(), u1)), We((t = u(hn(this, 16), 29), t || u1), n)); }, o.Ib = function() { - return xRe(this); - }, o.d = null, w(un, "EAnnotationImpl", 504), b(142, 711, _ue, es), o.Ei = function(n, t) { + return $Re(this); + }, o.d = null, w(un, "EAnnotationImpl", 504), b(142, 711, Bue, es), o.Ei = function(n, t) { k1n(this, n, u(t, 45)); }, o.Uk = function(n, t) { return k0n(this, u(n, 45), t); @@ -42559,10 +42649,10 @@ function WDn() { gM(this, n); }, o.Ek = function() { u(this.c, 77).Ek(); - }, w(Xt, "EcoreEMap", 142), b(169, 142, _ue, Ds), o.Zj = function() { + }, w(Xt, "EcoreEMap", 142), b(169, 142, Bue, Ds), o.Zj = function() { var n, t, i, r, c, s; if (this.d == null) { - for (s = W(A0e, Bue, 67, 2 * this.f + 1, 0, 1), i = this.c.Jc(); i.e != i.i.gc(); ) + for (s = W(A0e, _ue, 67, 2 * this.f + 1, 0, 1), i = this.c.Jc(); i.e != i.i.gc(); ) t = u(i.Wj(), 136), r = t.yi(), c = (r & pt) % s.length, n = s[c], !n && (n = s[c] = new qz(this)), n.Ec(t); this.d = s; } @@ -42655,7 +42745,7 @@ function WDn() { } Eo(this, n - $n(this.fi()), We((i = u(hn(this, 16), 29), i || this.fi()), n), t); }, o.fi = function() { - return Ue(), Gon; + return Ue(), Hon; }, o.hi = function(n) { var t, i; switch (n) { @@ -42701,9 +42791,9 @@ function WDn() { }, o.Xk = function(n) { $w(this, n); }, o.Ib = function() { - return _ne(this); + return Bne(this); }, o.s = 0, o.t = 1, w(un, "ETypedElementImpl", 293), b(451, 293, { 109: 1, 94: 1, 93: 1, 158: 1, 197: 1, 57: 1, 179: 1, 69: 1, 114: 1, 470: 1, 52: 1, 100: 1, 161: 1, 451: 1, 293: 1, 117: 1, 118: 1, 682: 1 }), o.xh = function(n) { - return g_e(this, n); + return pBe(this, n); }, o.Ih = function(n, t, i) { var r, c; switch (n) { @@ -42751,7 +42841,7 @@ function WDn() { case 0: return !this.Ab && (this.Ab = new ne(ot, this, 0, 3)), pu(this.Ab, n, i); case 17: - return this.Cb && (i = (c = this.Db >> 16, c >= 0 ? g_e(this, i) : this.Cb.Qh(this, -1 - c, null, i))), no(this, n, 17, i); + return this.Cb && (i = (c = this.Db >> 16, c >= 0 ? pBe(this, i) : this.Cb.Qh(this, -1 - c, null, i))), no(this, n, 17, i); } return s = u(We((r = u(hn(this, 16), 29), r || this.fi()), t), 69), s.uk().xk(this, Au(this), t - $n(this.fi()), n, i); }, o.Rh = function(n, t, i) { @@ -42837,7 +42927,7 @@ function WDn() { Nv(this, ve(me(t))); return; case 11: - Bv(this, ve(me(t))); + _v(this, ve(me(t))); return; case 12: Rv(this, ve(me(t))); @@ -42849,12 +42939,12 @@ function WDn() { Fv(this, ve(me(t))); return; case 16: - _v(this, ve(me(t))); + Bv(this, ve(me(t))); return; } Eo(this, n - $n(this.fi()), We((i = u(hn(this, 16), 29), i || this.fi()), n), t); }, o.fi = function() { - return Ue(), Jon; + return Ue(), Gon; }, o.hi = function(n) { var t, i; switch (n) { @@ -42862,7 +42952,7 @@ function WDn() { !this.Ab && (this.Ab = new ne(ot, this, 0, 3)), On(this.Ab); return; case 1: - N(this.Cb, 88) && Bw(ks(u(this.Cb, 88)), 4), gu(this, null); + N(this.Cb, 88) && _w(ks(u(this.Cb, 88)), 4), gu(this, null); return; case 2: Ja(this, !0); @@ -42886,7 +42976,7 @@ function WDn() { Nv(this, !0); return; case 11: - Bv(this, !1); + _v(this, !1); return; case 12: Rv(this, !1); @@ -42898,7 +42988,7 @@ function WDn() { Fv(this, !1); return; case 16: - _v(this, !1); + Bv(this, !1); return; } jo(this, n - $n(this.fi()), We((t = u(hn(this, 16), 29), t || this.fi()), n)); @@ -42920,7 +43010,7 @@ function WDn() { return iT(this); }, o.uk = function() { var n, t, i, r, c, s, f, h, l; - return this.p || (i = vw(this), (i.i == null && zh(i), i.i).length, r = this.sk(), r && $n(vw(r)), c = Uo(this), f = c.ik(), n = f ? (f.i & 1) != 0 ? f == zu ? ui : f == Wn ? Ii : f == Bg ? J5 : f == Xi ? Ei : f == Gb ? Ab : f == Ap ? xb : f == us ? X3 : hk : f : null, t = Zv(this), h = c.gk(), L9n(this), (this.Bb & Wh) != 0 && ((s = Nee((ts(), sr), i)) && s != this || (s = f3(Wr(sr, this)))) ? this.p = new qxe(this, s) : this.Hk() ? this.$k() ? r ? (this.Bb & rs) != 0 ? n ? this._k() ? this.p = new Od(47, n, this, r) : this.p = new Od(5, n, this, r) : this._k() ? this.p = new Bd(46, this, r) : this.p = new Bd(4, this, r) : n ? this._k() ? this.p = new Od(49, n, this, r) : this.p = new Od(7, n, this, r) : this._k() ? this.p = new Bd(48, this, r) : this.p = new Bd(6, this, r) : (this.Bb & rs) != 0 ? n ? n == s0 ? this.p = new Ca(50, Eon, this) : this._k() ? this.p = new Ca(43, n, this) : this.p = new Ca(1, n, this) : this._k() ? this.p = new Oa(42, this) : this.p = new Oa(0, this) : n ? n == s0 ? this.p = new Ca(41, Eon, this) : this._k() ? this.p = new Ca(45, n, this) : this.p = new Ca(3, n, this) : this._k() ? this.p = new Oa(44, this) : this.p = new Oa(2, this) : N(c, 159) ? n == lP ? this.p = new Oa(40, this) : (this.Bb & 512) != 0 ? (this.Bb & rs) != 0 ? n ? this.p = new Ca(9, n, this) : this.p = new Oa(8, this) : n ? this.p = new Ca(11, n, this) : this.p = new Oa(10, this) : (this.Bb & rs) != 0 ? n ? this.p = new Ca(13, n, this) : this.p = new Oa(12, this) : n ? this.p = new Ca(15, n, this) : this.p = new Oa(14, this) : r ? (l = r.t, l > 1 || l == -1 ? this._k() ? (this.Bb & rs) != 0 ? n ? this.p = new Od(25, n, this, r) : this.p = new Bd(24, this, r) : n ? this.p = new Od(27, n, this, r) : this.p = new Bd(26, this, r) : (this.Bb & rs) != 0 ? n ? this.p = new Od(29, n, this, r) : this.p = new Bd(28, this, r) : n ? this.p = new Od(31, n, this, r) : this.p = new Bd(30, this, r) : this._k() ? (this.Bb & rs) != 0 ? n ? this.p = new Od(33, n, this, r) : this.p = new Bd(32, this, r) : n ? this.p = new Od(35, n, this, r) : this.p = new Bd(34, this, r) : (this.Bb & rs) != 0 ? n ? this.p = new Od(37, n, this, r) : this.p = new Bd(36, this, r) : n ? this.p = new Od(39, n, this, r) : this.p = new Bd(38, this, r)) : this._k() ? (this.Bb & rs) != 0 ? n ? this.p = new Ca(17, n, this) : this.p = new Oa(16, this) : n ? this.p = new Ca(19, n, this) : this.p = new Oa(18, this) : (this.Bb & rs) != 0 ? n ? this.p = new Ca(21, n, this) : this.p = new Oa(20, this) : n ? this.p = new Ca(23, n, this) : this.p = new Oa(22, this) : this.Zk() ? this._k() ? this.p = new OTe(u(c, 29), this, r) : this.p = new YV(u(c, 29), this, r) : N(c, 159) ? n == lP ? this.p = new Oa(40, this) : (this.Bb & rs) != 0 ? n ? this.p = new ISe(t, h, this, (lF(), f == Wn ? J0e : f == zu ? N0e : f == Gb ? G0e : f == Bg ? _0e : f == Xi ? B0e : f == Ap ? H0e : f == us ? F0e : f == Oo ? R0e : MU)) : this.p = new zIe(u(c, 159), t, h, this) : n ? this.p = new SSe(t, h, this, (lF(), f == Wn ? J0e : f == zu ? N0e : f == Gb ? G0e : f == Bg ? _0e : f == Xi ? B0e : f == Ap ? H0e : f == us ? F0e : f == Oo ? R0e : MU)) : this.p = new UIe(u(c, 159), t, h, this) : this.$k() ? r ? (this.Bb & rs) != 0 ? this._k() ? this.p = new DTe(u(c, 29), this, r) : this.p = new FK(u(c, 29), this, r) : this._k() ? this.p = new LTe(u(c, 29), this, r) : this.p = new FL(u(c, 29), this, r) : (this.Bb & rs) != 0 ? this._k() ? this.p = new CMe(u(c, 29), this) : this.p = new tK(u(c, 29), this) : this._k() ? this.p = new IMe(u(c, 29), this) : this.p = new EL(u(c, 29), this) : this._k() ? r ? (this.Bb & rs) != 0 ? this.p = new NTe(u(c, 29), this, r) : this.p = new RK(u(c, 29), this, r) : (this.Bb & rs) != 0 ? this.p = new PMe(u(c, 29), this) : this.p = new iK(u(c, 29), this) : r ? (this.Bb & rs) != 0 ? this.p = new FTe(u(c, 29), this, r) : this.p = new BK(u(c, 29), this, r) : (this.Bb & rs) != 0 ? this.p = new OMe(u(c, 29), this) : this.p = new Kx(u(c, 29), this)), this.p; + return this.p || (i = vw(this), (i.i == null && zh(i), i.i).length, r = this.sk(), r && $n(vw(r)), c = Uo(this), f = c.ik(), n = f ? (f.i & 1) != 0 ? f == zu ? ui : f == Wn ? Ii : f == _g ? J5 : f == Xi ? Ei : f == Gb ? Ab : f == Ap ? xb : f == us ? X3 : hk : f : null, t = Zv(this), h = c.gk(), L9n(this), (this.Bb & Wh) != 0 && ((s = Nee((ts(), sr), i)) && s != this || (s = f3(Wr(sr, this)))) ? this.p = new Uxe(this, s) : this.Hk() ? this.$k() ? r ? (this.Bb & rs) != 0 ? n ? this._k() ? this.p = new Od(47, n, this, r) : this.p = new Od(5, n, this, r) : this._k() ? this.p = new _d(46, this, r) : this.p = new _d(4, this, r) : n ? this._k() ? this.p = new Od(49, n, this, r) : this.p = new Od(7, n, this, r) : this._k() ? this.p = new _d(48, this, r) : this.p = new _d(6, this, r) : (this.Bb & rs) != 0 ? n ? n == s0 ? this.p = new Ca(50, Aon, this) : this._k() ? this.p = new Ca(43, n, this) : this.p = new Ca(1, n, this) : this._k() ? this.p = new Oa(42, this) : this.p = new Oa(0, this) : n ? n == s0 ? this.p = new Ca(41, Aon, this) : this._k() ? this.p = new Ca(45, n, this) : this.p = new Ca(3, n, this) : this._k() ? this.p = new Oa(44, this) : this.p = new Oa(2, this) : N(c, 159) ? n == lP ? this.p = new Oa(40, this) : (this.Bb & 512) != 0 ? (this.Bb & rs) != 0 ? n ? this.p = new Ca(9, n, this) : this.p = new Oa(8, this) : n ? this.p = new Ca(11, n, this) : this.p = new Oa(10, this) : (this.Bb & rs) != 0 ? n ? this.p = new Ca(13, n, this) : this.p = new Oa(12, this) : n ? this.p = new Ca(15, n, this) : this.p = new Oa(14, this) : r ? (l = r.t, l > 1 || l == -1 ? this._k() ? (this.Bb & rs) != 0 ? n ? this.p = new Od(25, n, this, r) : this.p = new _d(24, this, r) : n ? this.p = new Od(27, n, this, r) : this.p = new _d(26, this, r) : (this.Bb & rs) != 0 ? n ? this.p = new Od(29, n, this, r) : this.p = new _d(28, this, r) : n ? this.p = new Od(31, n, this, r) : this.p = new _d(30, this, r) : this._k() ? (this.Bb & rs) != 0 ? n ? this.p = new Od(33, n, this, r) : this.p = new _d(32, this, r) : n ? this.p = new Od(35, n, this, r) : this.p = new _d(34, this, r) : (this.Bb & rs) != 0 ? n ? this.p = new Od(37, n, this, r) : this.p = new _d(36, this, r) : n ? this.p = new Od(39, n, this, r) : this.p = new _d(38, this, r)) : this._k() ? (this.Bb & rs) != 0 ? n ? this.p = new Ca(17, n, this) : this.p = new Oa(16, this) : n ? this.p = new Ca(19, n, this) : this.p = new Oa(18, this) : (this.Bb & rs) != 0 ? n ? this.p = new Ca(21, n, this) : this.p = new Oa(20, this) : n ? this.p = new Ca(23, n, this) : this.p = new Oa(22, this) : this.Zk() ? this._k() ? this.p = new LTe(u(c, 29), this, r) : this.p = new YV(u(c, 29), this, r) : N(c, 159) ? n == lP ? this.p = new Oa(40, this) : (this.Bb & rs) != 0 ? n ? this.p = new CSe(t, h, this, (lF(), f == Wn ? J0e : f == zu ? N0e : f == Gb ? G0e : f == _g ? B0e : f == Xi ? _0e : f == Ap ? H0e : f == us ? F0e : f == Oo ? R0e : MU)) : this.p = new WIe(u(c, 159), t, h, this) : n ? this.p = new ISe(t, h, this, (lF(), f == Wn ? J0e : f == zu ? N0e : f == Gb ? G0e : f == _g ? B0e : f == Xi ? _0e : f == Ap ? H0e : f == us ? F0e : f == Oo ? R0e : MU)) : this.p = new zIe(u(c, 159), t, h, this) : this.$k() ? r ? (this.Bb & rs) != 0 ? this._k() ? this.p = new NTe(u(c, 29), this, r) : this.p = new FK(u(c, 29), this, r) : this._k() ? this.p = new DTe(u(c, 29), this, r) : this.p = new FL(u(c, 29), this, r) : (this.Bb & rs) != 0 ? this._k() ? this.p = new PMe(u(c, 29), this) : this.p = new tK(u(c, 29), this) : this._k() ? this.p = new CMe(u(c, 29), this) : this.p = new EL(u(c, 29), this) : this._k() ? r ? (this.Bb & rs) != 0 ? this.p = new FTe(u(c, 29), this, r) : this.p = new RK(u(c, 29), this, r) : (this.Bb & rs) != 0 ? this.p = new OMe(u(c, 29), this) : this.p = new iK(u(c, 29), this) : r ? (this.Bb & rs) != 0 ? this.p = new RTe(u(c, 29), this, r) : this.p = new _K(u(c, 29), this, r) : (this.Bb & rs) != 0 ? this.p = new LMe(u(c, 29), this) : this.p = new Kx(u(c, 29), this)), this.p; }, o.pk = function() { return (this.Bb & Ef) != 0; }, o.Zk = function() { @@ -42983,7 +43073,7 @@ function WDn() { case 18: return en(), (this.Bb & Lc) != 0; case 19: - return t ? CN(this) : XOe(this); + return t ? CN(this) : KOe(this); } return po(this, n - $n((Ue(), Ng)), We((r = u(hn(this, 16), 29), r || Ng), n), t, i); }, o.Th = function(n) { @@ -43028,7 +43118,7 @@ function WDn() { case 18: return (this.Bb & Lc) != 0; case 19: - return !!XOe(this); + return !!KOe(this); } return go(this, n - $n((Ue(), Ng)), We((t = u(hn(this, 16), 29), t || Ng), n)); }, o.$h = function(n, t) { @@ -43050,7 +43140,7 @@ function WDn() { Fa(this, u(t, 15).a); return; case 5: - mEe(this, u(t, 15).a); + vEe(this, u(t, 15).a); return; case 8: zd(this, u(t, 143)); @@ -43062,7 +43152,7 @@ function WDn() { Nv(this, ve(me(t))); return; case 11: - Bv(this, ve(me(t))); + _v(this, ve(me(t))); return; case 12: Rv(this, ve(me(t))); @@ -43074,7 +43164,7 @@ function WDn() { Fv(this, ve(me(t))); return; case 16: - _v(this, ve(me(t))); + Bv(this, ve(me(t))); return; case 18: tF(this, ve(me(t))); @@ -43090,7 +43180,7 @@ function WDn() { !this.Ab && (this.Ab = new ne(ot, this, 0, 3)), On(this.Ab); return; case 1: - N(this.Cb, 88) && Bw(ks(u(this.Cb, 88)), 4), gu(this, null); + N(this.Cb, 88) && _w(ks(u(this.Cb, 88)), 4), gu(this, null); return; case 2: Ja(this, !0); @@ -43114,7 +43204,7 @@ function WDn() { Nv(this, !0); return; case 11: - Bv(this, !1); + _v(this, !1); return; case 12: Rv(this, !1); @@ -43126,7 +43216,7 @@ function WDn() { Fv(this, !1); return; case 16: - _v(this, !1); + Bv(this, !1); return; case 18: tF(this, !1); @@ -43140,10 +43230,10 @@ function WDn() { }, o.Wk = function(n, t) { return this.b = 0, this.a = null, AZ(this, n, t); }, o.Xk = function(n) { - mEe(this, n); + vEe(this, n); }, o.Ib = function() { var n; - return (this.Db & 64) != 0 ? MT(this) : (n = new _o(MT(this)), n.a += " (iD: ", $a(n, (this.Bb & Lc) != 0), n.a += ")", n.a); + return (this.Db & 64) != 0 ? MT(this) : (n = new Bo(MT(this)), n.a += " (iD: ", $a(n, (this.Bb & Lc) != 0), n.a += ")", n.a); }, o.b = 0, w(un, "EAttributeImpl", 335), b(360, 439, { 109: 1, 94: 1, 93: 1, 143: 1, 158: 1, 197: 1, 57: 1, 114: 1, 52: 1, 100: 1, 360: 1, 161: 1, 117: 1, 118: 1, 681: 1 }), o.bl = function(n) { return n.Ah() == this; }, o.xh = function(n) { @@ -43233,7 +43323,7 @@ function WDn() { } Eo(this, n - $n(this.fi()), We((i = u(hn(this, 16), 29), i || this.fi()), n), t); }, o.fi = function() { - return Ue(), Don; + return Ue(), Non; }, o.hi = function(n) { var t; switch (n) { @@ -43274,7 +43364,7 @@ function WDn() { }, o.dl = function(n) { this.v = n; }, o.el = function(n) { - FNe(this, n); + RNe(this, n); }, o.fl = function(n) { this.C = n; }, o.ri = function(n) { @@ -43508,17 +43598,17 @@ function WDn() { if (this.q) for (n = 0, t = this.q.i; n < t; ++n) my(F(this.q, n)); - _a((ts(), sr), this).ve(), this.Bb |= 1; + Ba((ts(), sr), this).ve(), this.Bb |= 1; }, o.Ib = function() { return Hee(this); }, o.k = null, o.r = null; - var x8, Uon, xU; - w(un, "EClassImpl", 88), b(2054, 2053, KVe), o.Ci = function(n, t) { + var x8, zon, xU; + w(un, "EClassImpl", 88), b(2054, 2053, VVe), o.Ci = function(n, t) { return MR(this, n, t); }, o.Di = function(n) { return MR(this, this.i, n); }, o.Ei = function(n, t) { - Bne(this, n, t); + _ne(this, n, t); }, o.Fi = function(n) { oR(this, n); }, o.Uk = function(n, t) { @@ -43528,7 +43618,7 @@ function WDn() { }, o.Vk = function(n, t) { return jr(this, n, t); }, o.Vi = function(n, t) { - return AUe(this, n, t); + return xUe(this, n, t); }, o.Gi = function() { return new Kp(this); }, o.Hi = function() { @@ -43536,7 +43626,7 @@ function WDn() { }, o.Ii = function(n) { return s7(this, n); }, w(Xt, "NotifyingInternalEListImpl", 2054), b(623, 2054, sc), o.Gc = function(n) { - return HUe(this, n); + return qUe(this, n); }, o.Gj = function(n, t, i, r, c) { return I6(this, n, t, i, r, c); }, o.Hj = function(n) { @@ -43576,7 +43666,7 @@ function WDn() { }, o.ml = function() { return !0; }, o.dk = function(n) { - return YPe(this.d, n); + return ZPe(this.d, n); }, o.Nj = function() { return Os(this.e); }, o.Oj = function() { @@ -43588,9 +43678,9 @@ function WDn() { }, o.nl = function(n) { return n.Sh() ? D1(this.e, u(n, 52)) : n; }, o.Wb = function(n) { - N$e(this, n); + F$e(this, n); }, o.Nc = function() { - return PLe(this); + return OLe(this); }, o.Oc = function(n) { var t; if (this.ll()) @@ -43600,7 +43690,7 @@ function WDn() { }, o.Ek = function() { On(this); }, o.Xi = function(n, t) { - return fNe(this, n, t); + return hNe(this, n, t); }, w(Xt, "EcoreEList", 623), b(491, 623, sc, Sy), o.Ji = function() { return !1; }, o.Jj = function() { @@ -43628,9 +43718,9 @@ function WDn() { }, o.Ek = function() { var n; On(this), Os(this.e) ? (n = this.b, this.b = !1, yt(this.e, new bf(this.e, 2, this.c, n, !1))) : this.b = !1; - }, o.b = !1, w(Xt, "EObjectContainmentEList/Unsettable", 543), b(1130, 543, sc, CSe), o.Ri = function(n, t) { + }, o.b = !1, w(Xt, "EObjectContainmentEList/Unsettable", 543), b(1130, 543, sc, PSe), o.Ri = function(n, t) { var i, r; - return i = u(n9(this, n, t), 87), Os(this.e) && Fm(this, new Qy(this.a, 7, (Ue(), Non), ie(t), (r = i.c, N(r, 88) ? u(r, 29) : rf), n)), i; + return i = u(n9(this, n, t), 87), Os(this.e) && Fm(this, new Qy(this.a, 7, (Ue(), Fon), ie(t), (r = i.c, N(r, 88) ? u(r, 29) : rf), n)), i; }, o.Sj = function(n, t) { return akn(this, u(n, 87), t); }, o.Tj = function(n, t) { @@ -43686,13 +43776,13 @@ function WDn() { this.ol(r); } }, o.ol = function(n) { - kqe(this, n); - }, o.b = 63, w(un, "ESuperAdapter", 1144), b(1145, 1144, Rue, C7e), o.ol = function(n) { - Bw(this, n); + yqe(this, n); + }, o.b = 63, w(un, "ESuperAdapter", 1144), b(1145, 1144, Rue, P7e), o.ol = function(n) { + _w(this, n); }, w(un, "EClassImpl/10", 1145), b(1134, 699, sc), o.Ci = function(n, t) { return XF(this, n, t); }, o.Di = function(n) { - return e_e(this, n); + return nBe(this, n); }, o.Ei = function(n, t) { k7(this, n, t); }, o.Fi = function(n) { @@ -43721,7 +43811,7 @@ function WDn() { throw $(new qn()); }, w(Xt, "EcoreEList/UnmodifiableEList", 1134), b(333, 1134, sc, Zg), o.Wi = function() { return !1; - }, w(Xt, "EcoreEList/UnmodifiableEList/FastCompare", 333), b(1137, 333, sc, SFe), o.bd = function(n) { + }, w(Xt, "EcoreEList/UnmodifiableEList/FastCompare", 333), b(1137, 333, sc, IFe), o.bd = function(n) { var t, i, r; if (N(n, 179) && (t = u(n, 179), i = t.Jj(), i != -1)) { for (r = this.i; i < r; ++i) @@ -43729,8 +43819,8 @@ function WDn() { return i; } return -1; - }, w(un, "EClassImpl/1EAllStructuralFeaturesList", 1137), b(1131, 492, el, R5e), o.$i = function(n) { - return W(Rr, VVe, 87, n, 0, 1); + }, w(un, "EClassImpl/1EAllStructuralFeaturesList", 1137), b(1131, 492, el, _5e), o.$i = function(n) { + return W(Rr, QVe, 87, n, 0, 1); }, o.Wi = function() { return !1; }, w(un, "EClassImpl/1EGenericSuperTypeEList", 1131), b(624, 492, el, NP), o.$i = function(n) { @@ -43741,7 +43831,7 @@ function WDn() { return W(Dg, q2, 19, n, 0, 1); }, o.Wi = function() { return !1; - }, w(un, "EClassImpl/1ReferenceList", 743), b(1132, 492, el, P7e), o.Ki = function(n, t) { + }, w(un, "EClassImpl/1ReferenceList", 743), b(1132, 492, el, O7e), o.Ki = function(n, t) { ggn(this, u(t, 38)); }, o.$i = function(n) { return W(Lg, q2, 38, n, 0, 1); @@ -43751,28 +43841,28 @@ function WDn() { return W(Lg, q2, 38, n, 0, 1); }, o.Wi = function() { return !1; - }, w(un, "EClassImpl/3", 1133), b(1135, 333, sc, ZTe), o.Ec = function(n) { + }, w(un, "EClassImpl/3", 1133), b(1135, 333, sc, eSe), o.Ec = function(n) { return Fmn(this, u(n, 38)); }, o.Fi = function(n) { pan(this, u(n, 38)); - }, w(un, "EClassImpl/4", 1135), b(1136, 333, sc, eSe), o.Ec = function(n) { + }, w(un, "EClassImpl/4", 1135), b(1136, 333, sc, nSe), o.Ec = function(n) { return Rmn(this, u(n, 19)); }, o.Fi = function(n) { man(this, u(n, 19)); - }, w(un, "EClassImpl/5", 1136), b(1138, 492, el, _5e), o.$i = function(n) { + }, w(un, "EClassImpl/5", 1136), b(1138, 492, el, J5e), o.$i = function(n) { return W(nf, Jue, 62, n, 0, 1); }, o.Wi = function() { return !1; - }, w(un, "EClassImpl/6", 1138), b(1139, 492, el, J5e), o.$i = function(n) { + }, w(un, "EClassImpl/6", 1138), b(1139, 492, el, G5e), o.$i = function(n) { return W(Dg, q2, 19, n, 0, 1); }, o.Wi = function() { return !1; }, w(un, "EClassImpl/7", 1139), b(2057, 2056, { 3: 1, 4: 1, 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 71: 1, 61: 1, 72: 1 }), o.Ci = function(n, t) { - return _te(this, n, t); + return Bte(this, n, t); }, o.Di = function(n) { - return _te(this, this.Cj(), n); + return Bte(this, this.Cj(), n); }, o.Ei = function(n, t) { - VGe(this, n, t); + QGe(this, n, t); }, o.Fi = function(n) { BGe(this, n); }, o.Uk = function(n, t) { @@ -43780,7 +43870,7 @@ function WDn() { }, o.Vk = function(n, t) { return g8n(this, n, t); }, o.Vi = function(n, t) { - return sUe(this, n, t); + return oUe(this, n, t); }, o.Yi = function(n) { return this.vj(n); }, o.Gi = function() { @@ -43895,8 +43985,8 @@ function WDn() { }, o.Ek = function() { S9(this); }, o.Xi = function(n, t) { - return OLe(this, n, t); - }, w(Xt, "DelegatingEcoreEList", 744), b(1140, 744, Gue, HMe), o.oj = function(n, t) { + return LLe(this, n, t); + }, w(Xt, "DelegatingEcoreEList", 744), b(1140, 744, Gue, qMe), o.oj = function(n, t) { Ddn(this, n, u(t, 29)); }, o.pj = function(n) { j1n(this, u(n, 29)); @@ -43913,15 +44003,15 @@ function WDn() { }, o.Gj = function(n, t, i, r, c) { return null; }, o.qj = function() { - return new L7e(this); + return new D7e(this); }, o.rj = function() { On(Hc(this.a)); }, o.sj = function(n) { - return $Re(this, n); + return MRe(this, n); }, o.tj = function(n) { var t, i; for (i = n.Jc(); i.Ob(); ) - if (t = i.Pb(), !$Re(this, t)) + if (t = i.Pb(), !MRe(this, t)) return !1; return !0; }, o.uj = function(n) { @@ -43965,7 +44055,7 @@ function WDn() { }, o.Fj = function() { var n, t, i, r, c; for (c = new xa(), c.a += "[", n = Hc(this.a), t = 0, r = Hc(this.a).i; t < r; ) - Br(c, b6((i = u(F(n, t), 87).c, N(i, 88) ? u(i, 29) : (Ue(), rf)))), ++t < r && (c.a += mu); + _r(c, b6((i = u(F(n, t), 87).c, N(i, 88) ? u(i, 29) : (Ue(), rf)))), ++t < r && (c.a += mu); return c.a += "]", c.a; }, o.Hj = function(n) { }, o.Jj = function() { @@ -43992,15 +44082,15 @@ function WDn() { return !0; }, o.Wi = function() { return !0; - }, w(un, "EClassImpl/8", 1140), b(1141, 2024, a5, L7e), o.dd = function(n) { + }, w(un, "EClassImpl/8", 1140), b(1141, 2024, a5, D7e), o.dd = function(n) { return s7(this.a, n); }, o.gc = function() { return Hc(this.a.a).i; - }, w(un, "EClassImpl/8/1", 1141), b(1142, 492, el, G5e), o.$i = function(n) { + }, w(un, "EClassImpl/8/1", 1141), b(1142, 492, el, H5e), o.$i = function(n) { return W(nh, Ve, 143, n, 0, 1); }, o.Wi = function() { return !1; - }, w(un, "EClassImpl/9", 1142), b(1129, 47, Sie, Eje), w(un, "EClassImpl/MyHashSet", 1129), b(563, 360, { 109: 1, 94: 1, 93: 1, 143: 1, 159: 1, 831: 1, 158: 1, 197: 1, 57: 1, 114: 1, 52: 1, 100: 1, 360: 1, 161: 1, 117: 1, 118: 1, 681: 1 }, yA), o.Ih = function(n, t, i) { + }, w(un, "EClassImpl/9", 1142), b(1129, 47, Sie, Aje), w(un, "EClassImpl/MyHashSet", 1129), b(563, 360, { 109: 1, 94: 1, 93: 1, 143: 1, 159: 1, 831: 1, 158: 1, 197: 1, 57: 1, 114: 1, 52: 1, 100: 1, 360: 1, 161: 1, 117: 1, 118: 1, 681: 1 }, yA), o.Ih = function(n, t, i) { var r; switch (n) { case 0: @@ -44070,7 +44160,7 @@ function WDn() { } Eo(this, n - $n(this.fi()), We((i = u(hn(this, 16), 29), i || this.fi()), n), t); }, o.fi = function() { - return Ue(), Fon; + return Ue(), Ron; }, o.hi = function(n) { var t; switch (n) { @@ -44095,10 +44185,10 @@ function WDn() { } jo(this, n - $n(this.fi()), We((t = u(hn(this, 16), 29), t || this.fi()), n)); }, o.mi = function() { - _a((ts(), sr), this).ve(), this.Bb |= 1; + Ba((ts(), sr), this).ve(), this.Bb |= 1; }, o.mk = function() { var n, t, i; - if (!this.c && (n = hHe(Vs(this)), !n.dc())) + if (!this.c && (n = lHe(Vs(this)), !n.dc())) for (i = n.Jc(); i.Ob(); ) t = zn(i.Pb()), E9(this, t) && E9n(this); return this.b; @@ -44111,7 +44201,7 @@ function WDn() { } catch (t) { if (t = gi(t), !N(t, 101)) throw $(t); } - this.d = null, n && (n.i & 1) != 0 && (n == zu ? this.d = (en(), Y1) : n == Wn ? this.d = ie(0) : n == Bg ? this.d = new B8(0) : n == Xi ? this.d = 0 : n == Gb ? this.d = Lw(0) : n == Ap ? this.d = Lv(0) : n == us ? this.d = i7(0) : this.d = l7(0)), this.e = !0; + this.d = null, n && (n.i & 1) != 0 && (n == zu ? this.d = (en(), Y1) : n == Wn ? this.d = ie(0) : n == _g ? this.d = new _8(0) : n == Xi ? this.d = 0 : n == Gb ? this.d = Lw(0) : n == Ap ? this.d = Lv(0) : n == us ? this.d = i7(0) : this.d = l7(0)), this.e = !0; } return this.d; }, o.lk = function() { @@ -44119,13 +44209,13 @@ function WDn() { }, o.pl = function(n) { n && (this.D = "org.eclipse.emf.common.util.AbstractEnumerator"); }, o.el = function(n) { - FNe(this, n), this.pl(n); + RNe(this, n), this.pl(n); }, o.fl = function(n) { this.C = n, this.e = !1; }, o.Ib = function() { var n; - return (this.Db & 64) != 0 ? NM(this) : (n = new _o(NM(this)), n.a += " (serializable: ", $a(n, (this.Bb & 256) != 0), n.a += ")", n.a); - }, o.c = !1, o.d = null, o.e = !1, w(un, "EDataTypeImpl", 563), b(459, 563, { 109: 1, 94: 1, 93: 1, 143: 1, 159: 1, 831: 1, 675: 1, 158: 1, 197: 1, 57: 1, 114: 1, 52: 1, 100: 1, 360: 1, 459: 1, 161: 1, 117: 1, 118: 1, 681: 1 }, Aje), o.Ih = function(n, t, i) { + return (this.Db & 64) != 0 ? NM(this) : (n = new Bo(NM(this)), n.a += " (serializable: ", $a(n, (this.Bb & 256) != 0), n.a += ")", n.a); + }, o.c = !1, o.d = null, o.e = !1, w(un, "EDataTypeImpl", 563), b(459, 563, { 109: 1, 94: 1, 93: 1, 143: 1, 159: 1, 831: 1, 675: 1, 158: 1, 197: 1, 57: 1, 114: 1, 52: 1, 100: 1, 360: 1, 459: 1, 161: 1, 117: 1, 118: 1, 681: 1 }, xje), o.Ih = function(n, t, i) { var r; switch (n) { case 0: @@ -44258,16 +44348,16 @@ function WDn() { if (this.a) for (n = 0, t = this.a.i; n < t; ++n) my(F(this.a, n)); - _a((ts(), sr), this).ve(), this.Bb |= 1; + Ba((ts(), sr), this).ve(), this.Bb |= 1; }, o.gk = function() { return bZ(this); }, o.dk = function(n) { return n != null; }, o.pl = function(n) { - }, w(un, "EEnumImpl", 459), b(568, 439, { 109: 1, 94: 1, 93: 1, 2001: 1, 684: 1, 158: 1, 197: 1, 57: 1, 114: 1, 52: 1, 100: 1, 568: 1, 161: 1, 117: 1, 118: 1 }, J7e), o.ve = function() { + }, w(un, "EEnumImpl", 459), b(568, 439, { 109: 1, 94: 1, 93: 1, 2001: 1, 684: 1, 158: 1, 197: 1, 57: 1, 114: 1, 52: 1, 100: 1, 568: 1, 161: 1, 117: 1, 118: 1 }, G7e), o.ve = function() { return this.zb; }, o.xh = function(n) { - return M_e(this, n); + return TBe(this, n); }, o.Ih = function(n, t, i) { var r, c; switch (n) { @@ -44291,7 +44381,7 @@ function WDn() { case 0: return !this.Ab && (this.Ab = new ne(ot, this, 0, 3)), pu(this.Ab, n, i); case 5: - return this.Cb && (i = (c = this.Db >> 16, c >= 0 ? M_e(this, i) : this.Cb.Qh(this, -1 - c, null, i))), no(this, n, 5, i); + return this.Cb && (i = (c = this.Db >> 16, c >= 0 ? TBe(this, i) : this.Cb.Qh(this, -1 - c, null, i))), no(this, n, 5, i); } return s = u(We((r = u(hn(this, 16), 29), r || (Ue(), s1)), t), 69), s.uk().xk(this, Au(this), t - $n((Ue(), s1)), n, i); }, o.Rh = function(n, t, i) { @@ -44333,7 +44423,7 @@ function WDn() { gN(this, u(t, 15).a); return; case 3: - IGe(this, u(t, 2001)); + CGe(this, u(t, 2001)); return; case 4: mN(this, zn(t)); @@ -44355,7 +44445,7 @@ function WDn() { gN(this, 0); return; case 3: - IGe(this, null); + CGe(this, null); return; case 4: mN(this, null); @@ -44386,18 +44476,18 @@ function WDn() { case 5: return t ? TF(this) : this.a; } - return po(this, n - $n((Ue(), Bb)), We((r = u(hn(this, 16), 29), r || Bb), n), t, i); + return po(this, n - $n((Ue(), _b)), We((r = u(hn(this, 16), 29), r || _b), n), t, i); }, o.Rh = function(n, t, i) { var r, c; switch (t) { case 0: - return aRe(this, null, i); + return dRe(this, null, i); case 1: return !this.d && (this.d = new $i(Rr, this, 1)), jr(this.d, n, i); case 3: - return lRe(this, null, i); + return aRe(this, null, i); } - return c = u(We((r = u(hn(this, 16), 29), r || (Ue(), Bb)), t), 69), c.uk().yk(this, Au(this), t - $n((Ue(), Bb)), n, i); + return c = u(We((r = u(hn(this, 16), 29), r || (Ue(), _b)), t), 69), c.uk().yk(this, Au(this), t - $n((Ue(), _b)), n, i); }, o.Th = function(n) { var t; switch (n) { @@ -44414,12 +44504,12 @@ function WDn() { case 5: return !!this.a; } - return go(this, n - $n((Ue(), Bb)), We((t = u(hn(this, 16), 29), t || Bb), n)); + return go(this, n - $n((Ue(), _b)), We((t = u(hn(this, 16), 29), t || _b), n)); }, o.$h = function(n, t) { var i; switch (n) { case 0: - z_e(this, u(t, 87)); + WBe(this, u(t, 87)); return; case 1: !this.d && (this.d = new $i(Rr, this, 1)), On(this.d), !this.d && (this.d = new $i(Rr, this, 1)), hi(this.d, u(t, 18)); @@ -44434,14 +44524,14 @@ function WDn() { kv(this, u(t, 143)); return; } - Eo(this, n - $n((Ue(), Bb)), We((i = u(hn(this, 16), 29), i || Bb), n), t); + Eo(this, n - $n((Ue(), _b)), We((i = u(hn(this, 16), 29), i || _b), n), t); }, o.fi = function() { - return Ue(), Bb; + return Ue(), _b; }, o.hi = function(n) { var t; switch (n) { case 0: - z_e(this, null); + WBe(this, null); return; case 1: !this.d && (this.d = new $i(Rr, this, 1)), On(this.d); @@ -44456,22 +44546,22 @@ function WDn() { kv(this, null); return; } - jo(this, n - $n((Ue(), Bb)), We((t = u(hn(this, 16), 29), t || Bb), n)); + jo(this, n - $n((Ue(), _b)), We((t = u(hn(this, 16), 29), t || _b), n)); }, o.Ib = function() { var n; return n = new Us(kf(this)), n.a += " (expression: ", DR(this, n), n.a += ")", n.a; }; var D0e; w(un, "EGenericTypeImpl", 248), b(2029, 2024, DS), o.Ei = function(n, t) { - UMe(this, n, t); + zMe(this, n, t); }, o.Uk = function(n, t) { - return UMe(this, this.gc(), n), t; + return zMe(this, this.gc(), n), t; }, o.Yi = function(n) { return qc(this.nj(), n); }, o.Gi = function() { return this.Hi(); }, o.nj = function() { - return new R7e(this); + return new _7e(this); }, o.Hi = function() { return this.Ii(0); }, o.Ii = function(n) { @@ -44480,7 +44570,7 @@ function WDn() { return Pw(this, n, !0), t; }, o.Ri = function(n, t) { var i, r; - return r = BF(this, t), i = this.dd(n), i.Rb(r), r; + return r = _F(this, t), i = this.dd(n), i.Rb(r), r; }, o.Si = function(n, t) { var i; Pw(this, t, !0), i = this.dd(n), i.Rb(t); @@ -44489,7 +44579,7 @@ function WDn() { }, o.Gi = function() { return this.b == null ? (Sa(), Sa(), VE) : this.ql(); }, o.nj = function() { - return new h$e(this.a, this.b); + return new l$e(this.a, this.b); }, o.Hi = function() { return this.b == null ? (Sa(), Sa(), VE) : this.ql(); }, o.Ii = function(n) { @@ -44509,7 +44599,7 @@ function WDn() { if (n = this.b[i], !this.tl() || this.a.Uh(n)) { if (s = this.a.Kh(n, !1), Sr(), u(n, 69).vk()) { for (t = u(s, 163), r = 0, c = t.gc(); r < c; ++r) - if (gIe(t.Rl(r)) && t.Sl(r) != null) + if (pIe(t.Rl(r)) && t.Sl(r) != null) return !1; } else if (n.Hk()) { if (!u(s, 18).dc()) @@ -44548,7 +44638,7 @@ function WDn() { if (n = this.b[i], !this.tl() || this.a.Uh(n)) if (f = this.a.Kh(n, !1), Sr(), u(n, 69).vk()) for (t = u(f, 163), r = 0, s = t.gc(); r < s; ++r) - gIe(t.Rl(r)) && t.Sl(r) != null && ++c; + pIe(t.Rl(r)) && t.Sl(r) != null && ++c; else n.Hk() ? c += u(f, 18).gc() : f != null && ++c; } return c; @@ -44556,10 +44646,10 @@ function WDn() { return !0; }; var $U; - w(Xt, "EContentsEList", 482), b(1146, 482, DS, SMe), o.ql = function() { - return new TMe(this.a, this.b); + w(Xt, "EContentsEList", 482), b(1146, 482, DS, IMe), o.ql = function() { + return new SMe(this.a, this.b); }, o.rl = function() { - return new MMe(this.a, this.b); + return new TMe(this.a, this.b); }, o.tl = function() { return !1; }, w(un, "ENamedElementImpl/1", 1146), b(287, 1, NS, Sx), o.Nb = function(n) { @@ -44581,11 +44671,11 @@ function WDn() { case -3: this.p ? this.p.Pb() : ++this.n; default: - if (!this.k || (this.p ? !HJe(this, this.p) : !PGe(this))) { + if (!this.k || (this.p ? !qJe(this, this.p) : !OGe(this))) { for (; this.d < this.c.length; ) if (t = this.c[this.d++], (!this.e || t.nk() != y4 || t.Jj() != 0) && (!this.tl() || this.b.Uh(t))) { if (s = this.b.Kh(t, this.sl()), this.f = (Sr(), u(t, 69).vk()), this.f || t.Hk()) { - if (this.sl() ? (r = u(s, 16), this.k = r) : (r = u(s, 72), this.k = this.j = r), N(this.k, 59) ? (this.p = null, this.o = this.k.gc(), this.n = 0) : this.p = this.j ? this.j.Hi() : this.k.cd(), this.p ? HJe(this, this.p) : PGe(this)) + if (this.sl() ? (r = u(s, 16), this.k = r) : (r = u(s, 72), this.k = this.j = r), N(this.k, 59) ? (this.p = null, this.o = this.k.gc(), this.n = 0) : this.p = this.j ? this.j.Hi() : this.k.cd(), this.p ? qJe(this, this.p) : OGe(this)) return c = this.p ? this.p.Pb() : this.j ? this.j.Yi(this.n++) : this.k.Xb(this.n++), this.f ? (n = u(c, 75), n.Jk(), i = n.kd(), 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; @@ -44605,11 +44695,11 @@ function WDn() { case 3: this.p ? this.p.Ub() : --this.n; default: - if (!this.k || (this.p ? !qJe(this, this.p) : !eGe(this))) { + if (!this.k || (this.p ? !UJe(this, this.p) : !nGe(this))) { for (; this.d > 0; ) if (t = this.c[--this.d], (!this.e || t.nk() != y4 || t.Jj() != 0) && (!this.tl() || this.b.Uh(t))) { if (s = this.b.Kh(t, this.sl()), this.f = (Sr(), u(t, 69).vk()), this.f || t.Hk()) { - if (this.sl() ? (r = u(s, 16), this.k = r) : (r = u(s, 72), this.k = this.j = r), N(this.k, 59) ? (this.o = this.k.gc(), this.n = this.o) : this.p = this.j ? this.j.Ii(this.k.gc()) : this.k.dd(this.k.gc()), this.p ? qJe(this, this.p) : eGe(this)) + if (this.sl() ? (r = u(s, 16), this.k = r) : (r = u(s, 72), this.k = this.j = r), N(this.k, 59) ? (this.o = this.k.gc(), this.n = this.o) : this.p = this.j ? this.j.Ii(this.k.gc()) : this.k.dd(this.k.gc()), this.p ? UJe(this, this.p) : nGe(this)) return c = this.p ? this.p.Ub() : this.j ? this.j.Yi(--this.n) : this.k.Xb(--this.n), this.f ? (n = u(c, 75), n.Jk(), i = n.kd(), 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; @@ -44641,11 +44731,11 @@ function WDn() { var VE; w(Xt, "EContentsEList/FeatureIteratorImpl", 287), b(700, 287, NS, nK), o.sl = function() { return !0; - }, w(Xt, "EContentsEList/ResolvingFeatureIteratorImpl", 700), b(1147, 700, NS, MMe), o.tl = function() { + }, w(Xt, "EContentsEList/ResolvingFeatureIteratorImpl", 700), b(1147, 700, NS, TMe), o.tl = function() { return !1; - }, w(un, "ENamedElementImpl/1/1", 1147), b(1148, 287, NS, TMe), o.tl = function() { + }, w(un, "ENamedElementImpl/1/1", 1147), b(1148, 287, NS, SMe), o.tl = function() { return !1; - }, w(un, "ENamedElementImpl/1/2", 1148), b(39, 151, Oj, Ew, GD, Bi, tN, Vl, bf, dY, dPe, bY, bPe, TQ, wPe, pY, gPe, SQ, pPe, wY, mPe, E6, Qy, jD, gY, vPe, IQ, kPe), o.Ij = function() { + }, w(un, "ENamedElementImpl/1/2", 1148), b(39, 151, Oj, Ew, GD, _i, tN, Vl, bf, dY, bPe, bY, wPe, TQ, gPe, pY, pPe, SQ, mPe, wY, vPe, E6, Qy, jD, gY, kPe, IQ, yPe), o.Ij = function() { return KQ(this); }, o.Pj = function() { var n; @@ -44658,7 +44748,7 @@ function WDn() { var n; return n = KQ(this), n ? n.rk() : !1; }, o.b = -1, w(un, "ENotificationImpl", 39), b(403, 293, { 109: 1, 94: 1, 93: 1, 158: 1, 197: 1, 57: 1, 62: 1, 114: 1, 470: 1, 52: 1, 100: 1, 161: 1, 403: 1, 293: 1, 117: 1, 118: 1 }, rO), o.xh = function(n) { - return S_e(this, n); + return IBe(this, n); }, o.Ih = function(n, t, i) { var r, c, s; switch (n) { @@ -44700,7 +44790,7 @@ function WDn() { case 0: return !this.Ab && (this.Ab = new ne(ot, this, 0, 3)), pu(this.Ab, n, i); case 10: - return this.Cb && (i = (c = this.Db >> 16, c >= 0 ? S_e(this, i) : this.Cb.Qh(this, -1 - c, null, i))), no(this, n, 10, i); + return this.Cb && (i = (c = this.Db >> 16, c >= 0 ? IBe(this, i) : this.Cb.Qh(this, -1 - c, null, i))), no(this, n, 10, i); case 12: return !this.c && (this.c = new ne(Rb, this, 12, 10)), pu(this.c, n, i); } @@ -44864,15 +44954,15 @@ function WDn() { }, o.Gj = function(n, t, i, r, c) { return null; }, o.qj = function() { - return new D7e(this); + return new N7e(this); }, o.rj = function() { On(js(this.a)); }, o.sj = function(n) { - return SRe(this, n); + return IRe(this, n); }, o.tj = function(n) { var t, i; for (i = n.Jc(); i.Ob(); ) - if (t = i.Pb(), !SRe(this, t)) + if (t = i.Pb(), !IRe(this, t)) return !1; return !0; }, o.uj = function(n) { @@ -44916,7 +45006,7 @@ function WDn() { }, o.Fj = function() { var n, t, i, r, c; for (c = new xa(), c.a += "[", n = js(this.a), t = 0, r = js(this.a).i; t < r; ) - Br(c, b6((i = u(F(n, t), 87).c, i || (Ue(), Ch)))), ++t < r && (c.a += mu); + _r(c, b6((i = u(F(n, t), 87).c, i || (Ue(), Ch)))), ++t < r && (c.a += mu); return c.a += "]", c.a; }, o.Hj = function(n) { }, o.Jj = function() { @@ -44943,13 +45033,13 @@ function WDn() { return !0; }, o.Wi = function() { return !0; - }, w(un, "EOperationImpl/1", 499), b(1330, 2024, a5, D7e), o.dd = function(n) { + }, w(un, "EOperationImpl/1", 499), b(1330, 2024, a5, N7e), o.dd = function(n) { return s7(this.a, n); }, o.gc = function() { return js(this.a.a).i; - }, w(un, "EOperationImpl/1/1", 1330), b(1331, 543, sc, PSe), o.Ri = function(n, t) { + }, w(un, "EOperationImpl/1/1", 1330), b(1331, 543, sc, OSe), o.Ri = function(n, t) { var i, r; - return i = u(n9(this, n, t), 87), Os(this.e) && Fm(this, new Qy(this.a, 7, (Ue(), _on), ie(t), (r = i.c, r || Ch), n)), i; + return i = u(n9(this, n, t), 87), Os(this.e) && Fm(this, new Qy(this.a, 7, (Ue(), Jon), ie(t), (r = i.c, r || Ch), n)), i; }, o.Sj = function(n, t) { return u9n(this, u(n, 87), t); }, o.Tj = function(n, t) { @@ -44971,7 +45061,7 @@ function WDn() { return $F(this); }, o.Ek = function() { On(this); - }, w(un, "EOperationImpl/2", 1331), b(493, 1, { 1999: 1, 493: 1 }, Hxe), w(un, "EPackageImpl/1", 493), b(14, 81, sc, ne), o.gl = function() { + }, w(un, "EOperationImpl/2", 1331), b(493, 1, { 1999: 1, 493: 1 }, qxe), w(un, "EPackageImpl/1", 493), b(14, 81, sc, ne), o.gl = function() { return this.d; }, o.hl = function() { return this.b; @@ -44986,7 +45076,7 @@ function WDn() { }, w(un, "EPackageImpl/2", 312), b(1243, 1, {}, khn), w(un, "EPackageImpl/3", 1243), b(721, 44, N2, rW), o._b = function(n) { return Hi(n) ? ED(this, n) : !!Ur(this.f, n); }, w(un, "EPackageRegistryImpl", 721), b(503, 293, { 109: 1, 94: 1, 93: 1, 158: 1, 197: 1, 57: 1, 2078: 1, 114: 1, 470: 1, 52: 1, 100: 1, 161: 1, 503: 1, 293: 1, 117: 1, 118: 1 }, cO), o.xh = function(n) { - return I_e(this, n); + return CBe(this, n); }, o.Ih = function(n, t, i) { var r, c, s; switch (n) { @@ -45020,7 +45110,7 @@ function WDn() { case 0: return !this.Ab && (this.Ab = new ne(ot, this, 0, 3)), pu(this.Ab, n, i); case 10: - return this.Cb && (i = (c = this.Db >> 16, c >= 0 ? I_e(this, i) : this.Cb.Qh(this, -1 - c, null, i))), no(this, n, 10, i); + return this.Cb && (i = (c = this.Db >> 16, c >= 0 ? CBe(this, i) : this.Cb.Qh(this, -1 - c, null, i))), no(this, n, 10, i); } return s = u(We((r = u(hn(this, 16), 29), r || (Ue(), Fg)), t), 69), s.uk().xk(this, Au(this), t - $n((Ue(), Fg)), n, i); }, o.Rh = function(n, t, i) { @@ -45111,7 +45201,7 @@ function WDn() { case 21: return t ? Ir(this) : this.b; case 22: - return t ? QY(this) : FOe(this); + return t ? QY(this) : ROe(this); case 23: return !this.a && (this.a = new c2(Lg, this, 23)), this.a; } @@ -45164,7 +45254,7 @@ function WDn() { case 21: return !!this.b; case 22: - return !!FOe(this); + return !!ROe(this); case 23: return !!this.a && this.a.i != 0; } @@ -45200,7 +45290,7 @@ function WDn() { Nv(this, ve(me(t))); return; case 11: - Bv(this, ve(me(t))); + _v(this, ve(me(t))); return; case 12: Rv(this, ve(me(t))); @@ -45212,7 +45302,7 @@ function WDn() { Fv(this, ve(me(t))); return; case 16: - _v(this, ve(me(t))); + Bv(this, ve(me(t))); return; case 18: Lpn(this, ve(me(t))); @@ -45237,7 +45327,7 @@ function WDn() { !this.Ab && (this.Ab = new ne(ot, this, 0, 3)), On(this.Ab); return; case 1: - N(this.Cb, 88) && Bw(ks(u(this.Cb, 88)), 4), gu(this, null); + N(this.Cb, 88) && _w(ks(u(this.Cb, 88)), 4), gu(this, null); return; case 2: Ja(this, !0); @@ -45261,7 +45351,7 @@ function WDn() { Nv(this, !0); return; case 11: - Bv(this, !1); + _v(this, !1); return; case 12: Rv(this, !1); @@ -45273,10 +45363,10 @@ function WDn() { Fv(this, !1); return; case 16: - _v(this, !1); + Bv(this, !1); return; case 18: - DZ(this, !1), N(this.Cb, 88) && Bw(ks(u(this.Cb, 88)), 2); + DZ(this, !1), N(this.Cb, 88) && _w(ks(u(this.Cb, 88)), 2); return; case 20: LZ(this, !0); @@ -45304,8 +45394,8 @@ function WDn() { return this.c = null, AZ(this, n, t); }, o.Ib = function() { var n; - return (this.Db & 64) != 0 ? MT(this) : (n = new _o(MT(this)), n.a += " (containment: ", $a(n, (this.Bb & Lc) != 0), n.a += ", resolveProxies: ", $a(n, (this.Bb & xr) != 0), n.a += ")", n.a); - }, w(un, "EReferenceImpl", 103), b(549, 118, { 109: 1, 45: 1, 94: 1, 93: 1, 136: 1, 57: 1, 114: 1, 52: 1, 100: 1, 549: 1, 117: 1, 118: 1 }, H5e), o.Fb = function(n) { + return (this.Db & 64) != 0 ? MT(this) : (n = new Bo(MT(this)), n.a += " (containment: ", $a(n, (this.Bb & Lc) != 0), n.a += ", resolveProxies: ", $a(n, (this.Bb & xr) != 0), n.a += ")", n.a); + }, w(un, "EReferenceImpl", 103), b(549, 118, { 109: 1, 45: 1, 94: 1, 93: 1, 136: 1, 57: 1, 114: 1, 52: 1, 100: 1, 549: 1, 117: 1, 118: 1 }, q5e), o.Fb = function(n) { return this === n; }, o.jd = function() { return this.b; @@ -45316,7 +45406,7 @@ function WDn() { }, o.Ai = function(n) { Vwn(this, zn(n)); }, o.ld = function(n) { - return Bwn(this, zn(n)); + return _wn(this, zn(n)); }, o.Ih = function(n, t, i) { var r; switch (n) { @@ -45366,9 +45456,9 @@ function WDn() { this.a = n; }, o.Ib = function() { var n; - return (this.Db & 64) != 0 ? kf(this) : (n = new _o(kf(this)), n.a += " (key: ", Br(n, this.b), n.a += ", value: ", Br(n, this.c), n.a += ")", n.a); + return (this.Db & 64) != 0 ? kf(this) : (n = new Bo(kf(this)), n.a += " (key: ", _r(n, this.b), n.a += ", value: ", _r(n, this.c), n.a += ")", n.a); }, o.a = -1, o.b = null, o.c = null; - var Ic = w(un, "EStringToStringMapEntryImpl", 549), zon = Zt(Xt, "FeatureMap/Entry/Internal"); + var Ic = w(un, "EStringToStringMapEntryImpl", 549), Won = Zt(Xt, "FeatureMap/Entry/Internal"); b(562, 1, FS), o.vl = function(n) { return this.wl(u(n, 52)); }, o.wl = function(n) { @@ -45392,7 +45482,7 @@ function WDn() { return j4n(this, n, this.a, t, i); }, o.yl = function(n, t, i) { return E4n(this, n, this.a, t, i); - }, w(un, "EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry", 777), b(1304, 1, {}, qxe), o.wk = function(n, t, i, r, c) { + }, w(un, "EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry", 777), b(1304, 1, {}, Uxe), o.wk = function(n, t, i, r, c) { var s; return s = u(gv(n, this.b), 219), s.Wl(this.a).Dk(r); }, o.xk = function(n, t, i, r, c) { @@ -45412,9 +45502,9 @@ function WDn() { }, o.Ck = function(n, t, i) { var r; r = u(gv(n, this.b), 219), r.Wl(this.a).Ek(); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator", 1304), b(89, 1, {}, Ca, Od, Oa, Bd), o.wk = function(n, t, i, r, c) { + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator", 1304), b(89, 1, {}, Ca, Od, Oa, _d), o.wk = function(n, t, i, r, c) { var s; - if (s = t.ii(i), s == null && t.ji(i, s = BT(this, n)), !c) + if (s = t.ii(i), s == null && t.ji(i, s = _T(this, n)), !c) switch (this.e) { case 50: case 41: @@ -45425,7 +45515,7 @@ function WDn() { return s; }, o.xk = function(n, t, i, r, c) { var s, f; - return f = t.ii(i), f == null && t.ji(i, f = BT(this, n)), s = u(f, 72).Uk(r, c), s; + return f = t.ii(i), f == null && t.ji(i, f = _T(this, n)), s = u(f, 72).Uk(r, c), s; }, o.yk = function(n, t, i, r, c) { var s; return s = t.ii(i), s != null && (c = u(s, 72).Vk(r, c)), c; @@ -45434,22 +45524,22 @@ function WDn() { return r = t.ii(i), r != null && u(r, 77).Oj(); }, o.Ak = function(n, t, i, r) { var c; - c = u(t.ii(i), 77), !c && t.ji(i, c = BT(this, n)), c.Wb(r); + c = u(t.ii(i), 77), !c && t.ji(i, c = _T(this, n)), c.Wb(r); }, o.Bk = function(n, t, i) { var r, c; - return c = t.ii(i), c == null && t.ji(i, c = BT(this, n)), N(c, 77) ? u(c, 77) : (r = u(t.ii(i), 16), new N7e(r)); + return c = t.ii(i), c == null && t.ji(i, c = _T(this, n)), N(c, 77) ? u(c, 77) : (r = u(t.ii(i), 16), new F7e(r)); }, o.Ck = function(n, t, i) { var r; - r = u(t.ii(i), 77), !r && t.ji(i, r = BT(this, n)), r.Ek(); + r = u(t.ii(i), 77), !r && t.ji(i, r = _T(this, n)), r.Ek(); }, o.b = 0, o.e = 0, w(un, "EStructuralFeatureImpl/InternalSettingDelegateMany", 89), b(498, 1, {}), o.xk = function(n, t, i, r, c) { throw $(new qn()); }, o.yk = function(n, t, i, r, c) { throw $(new qn()); }, o.Bk = function(n, t, i) { - return new JIe(this, n, t, i); + return new GIe(this, n, t, i); }; var Pl; - w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingle", 498), b(1321, 1, vJ, JIe), o.Dk = function(n) { + w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingle", 498), b(1321, 1, vJ, GIe), o.Dk = function(n) { return this.a.wk(this.c, this.d, this.b, n, !0); }, o.Oj = function() { return this.a.zk(this.c, this.d, this.b); @@ -45471,18 +45561,18 @@ function WDn() { }, o.Ak = function(n, t, i, r) { var c, s, f, h, l; if (r != null && !$R(this.a, r)) - throw $(new Rm(RS + (N(r, 57) ? Hee(u(r, 57).Ah()) : fY(Rs(r))) + BS + this.a + "'")); + throw $(new Rm(RS + (N(r, 57) ? Hee(u(r, 57).Ah()) : fY(Rs(r))) + _S + this.a + "'")); if (c = n.Mh(), f = Yt(n.Ah(), this.e), z(r) !== z(c) || n.Ch() != f && r != null) { if (Uv(n, u(r, 57))) throw $(new on(Y9 + n.Ib())); l = null, c && (l = (s = n.Ch(), s >= 0 ? n.xh(l) : n.Mh().Qh(n, -1 - s, null, l))), h = u(r, 52), h && (l = h.Oh(n, Yt(h.Ah(), this.b), null, l)), l = n.zh(h, f, l), l && l.mj(); } else - n.sh() && n.th() && yt(n, new Bi(n, 1, f, r, r)); + n.sh() && n.th() && yt(n, new _i(n, 1, f, r, r)); }, o.Ck = function(n, t, i) { var r, c, s, f; r = n.Mh(), r ? (f = (c = n.Ch(), c >= 0 ? n.xh(null) : n.Mh().Qh(n, -1 - c, null, null)), s = Yt(n.Ah(), this.e), f = n.zh(null, s, f), f && f.mj()) : n.sh() && n.th() && yt(n, new E6(n, 1, this.e, null, null)); }, o._k = function() { return !1; - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleContainer", 770), b(1305, 770, {}, OTe), o._k = function() { + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleContainer", 770), b(1305, 770, {}, LTe), o._k = function() { return !0; }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving", 1305), b(560, 498, {}), o.wk = function(n, t, i, r, c) { var s; @@ -45497,49 +45587,49 @@ function WDn() { var r, c; n.sh() && n.th() ? (r = (c = t.ii(i), c == null ? this.b : z(c) === z(Pl) ? null : c), t.ki(i), yt(n, this.d.Al(n, 1, this.e, r, this.b))) : t.ki(i); }, o.zl = function(n) { - throw $(new z7e()); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData", 560), b(U2, 1, {}, q5e), o.Al = function(n, t, i, r, c) { + throw $(new W7e()); + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData", 560), b(U2, 1, {}, U5e), o.Al = function(n, t, i, r, c) { return new E6(n, t, i, r, c); }, o.Bl = function(n, t, i, r, c, s) { return new jD(n, t, i, r, c, s); }; - var N0e, F0e, R0e, B0e, _0e, J0e, G0e, MU, H0e; - w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator", U2), b(1322, U2, {}, U5e), o.Al = function(n, t, i, r, c) { + var N0e, F0e, R0e, _0e, B0e, J0e, G0e, MU, H0e; + w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator", U2), b(1322, U2, {}, z5e), o.Al = function(n, t, i, r, c) { return new IQ(n, t, i, ve(me(r)), ve(me(c))); }, o.Bl = function(n, t, i, r, c, s) { - return new kPe(n, t, i, ve(me(r)), ve(me(c)), s); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1", 1322), b(1323, U2, {}, z5e), o.Al = function(n, t, i, r, c) { + return new yPe(n, t, i, ve(me(r)), ve(me(c)), s); + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1", 1322), b(1323, U2, {}, W5e), o.Al = function(n, t, i, r, c) { return new dY(n, t, i, u(r, 221).a, u(c, 221).a); }, o.Bl = function(n, t, i, r, c, s) { - return new dPe(n, t, i, u(r, 221).a, u(c, 221).a, s); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2", 1323), b(1324, U2, {}, W5e), o.Al = function(n, t, i, r, c) { + return new bPe(n, t, i, u(r, 221).a, u(c, 221).a, s); + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2", 1323), b(1324, U2, {}, X5e), o.Al = function(n, t, i, r, c) { return new bY(n, t, i, u(r, 180).a, u(c, 180).a); }, o.Bl = function(n, t, i, r, c, s) { - return new bPe(n, t, i, u(r, 180).a, u(c, 180).a, s); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3", 1324), b(1325, U2, {}, X5e), o.Al = function(n, t, i, r, c) { - return new TQ(n, t, i, _(H(r)), _(H(c))); + return new wPe(n, t, i, u(r, 180).a, u(c, 180).a, s); + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3", 1324), b(1325, U2, {}, K5e), o.Al = function(n, t, i, r, c) { + return new TQ(n, t, i, B(H(r)), B(H(c))); }, o.Bl = function(n, t, i, r, c, s) { - return new wPe(n, t, i, _(H(r)), _(H(c)), s); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4", 1325), b(1326, U2, {}, K5e), o.Al = function(n, t, i, r, c) { + return new gPe(n, t, i, B(H(r)), B(H(c)), s); + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4", 1325), b(1326, U2, {}, V5e), o.Al = function(n, t, i, r, c) { return new pY(n, t, i, u(r, 164).a, u(c, 164).a); }, o.Bl = function(n, t, i, r, c, s) { - return new gPe(n, t, i, u(r, 164).a, u(c, 164).a, s); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5", 1326), b(1327, U2, {}, V5e), o.Al = function(n, t, i, r, c) { + return new pPe(n, t, i, u(r, 164).a, u(c, 164).a, s); + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5", 1326), b(1327, U2, {}, Q5e), o.Al = function(n, t, i, r, c) { return new SQ(n, t, i, u(r, 15).a, u(c, 15).a); }, o.Bl = function(n, t, i, r, c, s) { - return new pPe(n, t, i, u(r, 15).a, u(c, 15).a, s); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6", 1327), b(1328, U2, {}, Q5e), o.Al = function(n, t, i, r, c) { + return new mPe(n, t, i, u(r, 15).a, u(c, 15).a, s); + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6", 1327), b(1328, U2, {}, Y5e), o.Al = function(n, t, i, r, c) { return new wY(n, t, i, u(r, 190).a, u(c, 190).a); }, o.Bl = function(n, t, i, r, c, s) { - return new mPe(n, t, i, u(r, 190).a, u(c, 190).a, s); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7", 1328), b(1329, U2, {}, Y5e), o.Al = function(n, t, i, r, c) { + return new vPe(n, t, i, u(r, 190).a, u(c, 190).a, s); + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7", 1328), b(1329, U2, {}, Z5e), o.Al = function(n, t, i, r, c) { return new gY(n, t, i, u(r, 191).a, u(c, 191).a); }, o.Bl = function(n, t, i, r, c, s) { - return new vPe(n, t, i, u(r, 191).a, u(c, 191).a, s); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8", 1329), b(1307, 560, {}, UIe), o.zl = function(n) { + return new kPe(n, t, i, u(r, 191).a, u(c, 191).a, s); + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8", 1329), b(1307, 560, {}, zIe), o.zl = function(n) { if (!this.a.dk(n)) - throw $(new Rm(RS + Rs(n) + BS + this.a + "'")); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic", 1307), b(1308, 560, {}, SSe), o.zl = function(n) { + throw $(new Rm(RS + Rs(n) + _S + this.a + "'")); + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic", 1307), b(1308, 560, {}, ISe), o.zl = function(n) { }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic", 1308), b(771, 560, {}), o.zk = function(n, t, i) { var r; return r = t.ii(i), r != null; @@ -45549,10 +45639,10 @@ function WDn() { }, o.Ck = function(n, t, i) { var r, c; n.sh() && n.th() ? (r = !0, c = t.ii(i), c == null ? (r = !1, c = this.b) : z(c) === z(Pl) && (c = null), t.ki(i), yt(n, this.d.Bl(n, 2, this.e, c, this.b, r))) : t.ki(i); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable", 771), b(1309, 771, {}, zIe), o.zl = function(n) { + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable", 771), b(1309, 771, {}, WIe), o.zl = function(n) { if (!this.a.dk(n)) - throw $(new Rm(RS + Rs(n) + BS + this.a + "'")); - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic", 1309), b(1310, 771, {}, ISe), o.zl = function(n) { + throw $(new Rm(RS + Rs(n) + _S + this.a + "'")); + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic", 1309), b(1310, 771, {}, CSe), o.zl = function(n) { }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic", 1310), b(402, 498, {}, Kx), o.wk = function(n, t, i, r, c) { var s, f, h, l, a; if (a = t.ii(i), this.rk() && z(a) === z(Pl)) @@ -45560,7 +45650,7 @@ function WDn() { if (this._k() && r && a != null) { if (h = u(a, 52), h.Sh() && (l = D1(n, h), h != l)) { if (!$R(this.a, l)) - throw $(new Rm(RS + Rs(l) + BS + this.a + "'")); + throw $(new Rm(RS + Rs(l) + _S + this.a + "'")); t.ji(i, a = l), this.$k() && (s = u(l, 52), f = h.Qh(n, this.b ? Yt(h.Ah(), this.b) : -1 - Yt(n.Ah(), this.e), null, null), !s.Mh() && (f = s.Oh(n, this.b ? Yt(s.Ah(), this.b) : -1 - Yt(n.Ah(), this.e), null, f)), f && f.mj()), n.sh() && n.th() && yt(n, new E6(n, 9, this.e, h, l)); } return a; @@ -45578,7 +45668,7 @@ function WDn() { }, o.Ak = function(n, t, i, r) { var c, s, f, h, l; if (r != null && !$R(this.a, r)) - throw $(new Rm(RS + (N(r, 57) ? Hee(u(r, 57).Ah()) : fY(Rs(r))) + BS + this.a + "'")); + throw $(new Rm(RS + (N(r, 57) ? Hee(u(r, 57).Ah()) : fY(Rs(r))) + _S + this.a + "'")); l = t.ii(i), h = l != null, this.rk() && z(l) === z(Pl) && (l = null), f = null, this.Kj() ? z(l) !== z(r) && (l != null && (c = u(l, 52), f = c.Qh(n, Yt(c.Ah(), this.b), null, f)), r != null && (c = u(r, 52), f = c.Oh(n, Yt(c.Ah(), this.b), null, f))) : this.$k() && z(l) !== z(r) && (l != null && (f = u(l, 52).Qh(n, -1 - Yt(n.Ah(), this.e), null, f)), r != null && (f = u(r, 52).Oh(n, -1 - Yt(n.Ah(), this.e), null, f))), r == null && this.rk() ? t.ji(i, Pl) : t.ji(i, r), n.sh() && n.th() ? (s = new jD(n, 1, this.e, l, r, this.rk() && !h), f ? (f.lj(s), f.mj()) : yt(n, s)) : f && f.mj(); }, o.Ck = function(n, t, i) { var r, c, s, f, h; @@ -45593,33 +45683,33 @@ function WDn() { return !1; }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObject", 402), b(561, 402, {}, EL), o.$k = function() { return !0; - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment", 561), b(1313, 561, {}, IMe), o._k = function() { + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment", 561), b(1313, 561, {}, CMe), o._k = function() { return !0; }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving", 1313), b(773, 561, {}, tK), o.rk = function() { return !0; - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable", 773), b(1315, 773, {}, CMe), o._k = function() { + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable", 773), b(1315, 773, {}, PMe), o._k = function() { return !0; }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving", 1315), b(638, 561, {}, FL), o.Kj = function() { return !0; - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse", 638), b(1314, 638, {}, LTe), o._k = function() { + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse", 638), b(1314, 638, {}, DTe), o._k = function() { return !0; }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving", 1314), b(774, 638, {}, FK), o.rk = function() { return !0; - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable", 774), b(1316, 774, {}, DTe), o._k = function() { + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable", 774), b(1316, 774, {}, NTe), o._k = function() { return !0; }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving", 1316), b(639, 402, {}, iK), o._k = function() { return !0; - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving", 639), b(1317, 639, {}, PMe), o.rk = function() { + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving", 639), b(1317, 639, {}, OMe), o.rk = function() { return !0; }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable", 1317), b(775, 639, {}, RK), o.Kj = function() { return !0; - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse", 775), b(1318, 775, {}, NTe), o.rk = function() { + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse", 775), b(1318, 775, {}, FTe), o.rk = function() { return !0; - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable", 1318), b(1311, 402, {}, OMe), o.rk = function() { + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable", 1318), b(1311, 402, {}, LMe), o.rk = function() { return !0; - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable", 1311), b(772, 402, {}, BK), o.Kj = function() { + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable", 1311), b(772, 402, {}, _K), o.Kj = function() { return !0; - }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse", 772), b(1312, 772, {}, FTe), o.rk = function() { + }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse", 772), b(1312, 772, {}, RTe), o.rk = function() { return !0; }, w(un, "EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable", 1312), b(776, 562, FS, DV), o.wl = function(n) { return new DV(this.a, this.c, n); @@ -45629,7 +45719,7 @@ function WDn() { return vvn(this, n, this.b, i); }, o.yl = function(n, t, i) { return kvn(this, n, this.b, i); - }, w(un, "EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry", 776), b(1319, 1, vJ, N7e), o.Dk = function(n) { + }, w(un, "EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry", 776), b(1319, 1, vJ, F7e), o.Dk = function(n) { return this.a; }, o.Oj = function() { return N(this.a, 98) ? u(this.a, 98).Oj() : !this.a.dc(); @@ -45637,7 +45727,7 @@ function WDn() { this.a.$b(), this.a.Fc(u(n, 16)); }, o.Ek = function() { N(this.a, 98) ? u(this.a, 98).Ek() : this.a.$b(); - }, w(un, "EStructuralFeatureImpl/SettingMany", 1319), b(1320, 562, FS, fOe), o.vl = function(n) { + }, w(un, "EStructuralFeatureImpl/SettingMany", 1319), b(1320, 562, FS, hOe), o.vl = function(n) { return new $L((Ot(), T8), this.b.oi(this.a, n)); }, o.kd = function() { return null; @@ -45667,7 +45757,7 @@ function WDn() { case 2: return !this.a && (this.a = new v6(this, Rr, this)), this.a; } - return po(this, n - $n((Ue(), _b)), We((r = u(hn(this, 16), 29), r || _b), n), t, i); + return po(this, n - $n((Ue(), Bb)), We((r = u(hn(this, 16), 29), r || Bb), n), t, i); }, o.Rh = function(n, t, i) { var r, c; switch (t) { @@ -45676,7 +45766,7 @@ function WDn() { case 2: return !this.a && (this.a = new v6(this, Rr, this)), jr(this.a, n, i); } - return c = u(We((r = u(hn(this, 16), 29), r || (Ue(), _b)), t), 69), c.uk().yk(this, Au(this), t - $n((Ue(), _b)), n, i); + return c = u(We((r = u(hn(this, 16), 29), r || (Ue(), Bb)), t), 69), c.uk().yk(this, Au(this), t - $n((Ue(), Bb)), n, i); }, o.Th = function(n) { var t; switch (n) { @@ -45687,7 +45777,7 @@ function WDn() { case 2: return !!this.a && this.a.i != 0; } - return go(this, n - $n((Ue(), _b)), We((t = u(hn(this, 16), 29), t || _b), n)); + return go(this, n - $n((Ue(), Bb)), We((t = u(hn(this, 16), 29), t || Bb), n)); }, o.$h = function(n, t) { var i; switch (n) { @@ -45701,9 +45791,9 @@ function WDn() { !this.a && (this.a = new v6(this, Rr, this)), On(this.a), !this.a && (this.a = new v6(this, Rr, this)), hi(this.a, u(t, 18)); return; } - Eo(this, n - $n((Ue(), _b)), We((i = u(hn(this, 16), 29), i || _b), n), t); + Eo(this, n - $n((Ue(), Bb)), We((i = u(hn(this, 16), 29), i || Bb), n), t); }, o.fi = function() { - return Ue(), _b; + return Ue(), Bb; }, o.hi = function(n) { var t; switch (n) { @@ -45717,7 +45807,7 @@ function WDn() { !this.a && (this.a = new v6(this, Rr, this)), On(this.a); return; } - jo(this, n - $n((Ue(), _b)), We((t = u(hn(this, 16), 29), t || _b), n)); + jo(this, n - $n((Ue(), Bb)), We((t = u(hn(this, 16), 29), t || Bb), n)); }, w(un, "ETypeParameterImpl", 446), b(447, 81, sc, v6), o.Lj = function(n, t) { return ljn(this, u(n, 87), t); }, o.Mj = function(n, t) { @@ -45725,7 +45815,7 @@ function WDn() { }, w(un, "ETypeParameterImpl/1", 447), b(637, 44, N2, uO), o.ec = function() { return new pA(this); }, w(un, "ETypeParameterImpl/2", 637), b(557, ph, is, pA), o.Ec = function(n) { - return aTe(this, u(n, 87)); + return dTe(this, u(n, 87)); }, o.Fc = function(n) { var t, i, r; for (r = !1, i = n.Jc(); i.Ob(); ) @@ -45739,7 +45829,7 @@ function WDn() { var n; return n = new Tw(new Ub(this.a).a), new mA(n); }, o.Kc = function(n) { - return KOe(this, n); + return VOe(this, n); }, o.gc = function() { return G4(this.a); }, w(un, "ETypeParameterImpl/2/1", 557), b(558, 1, Wi, mA), o.Nb = function(n) { @@ -45749,13 +45839,13 @@ function WDn() { }, o.Ob = function() { return this.a.b; }, o.Qb = function() { - fDe(this.a); - }, w(un, "ETypeParameterImpl/2/1/1", 558), b(1281, 44, N2, xje), o._b = function(n) { + hDe(this.a); + }, w(un, "ETypeParameterImpl/2/1/1", 558), b(1281, 44, N2, $je), o._b = function(n) { return Hi(n) ? ED(this, n) : !!Ur(this.f, n); }, o.xc = function(n) { var t, i; - return t = Hi(n) ? nu(this, n) : hc(Ur(this.f, n)), N(t, 835) ? (i = u(t, 835), t = i.Ik(), ht(this, u(n, 241), t), t) : t ?? (n == null ? (AO(), Xon) : null); - }, w(un, "EValidatorRegistryImpl", 1281), b(1303, 710, { 109: 1, 94: 1, 93: 1, 469: 1, 158: 1, 57: 1, 114: 1, 2002: 1, 52: 1, 100: 1, 161: 1, 117: 1, 118: 1 }, Z5e), o.oi = function(n, t) { + return t = Hi(n) ? nu(this, n) : hc(Ur(this.f, n)), N(t, 835) ? (i = u(t, 835), t = i.Ik(), ht(this, u(n, 241), t), t) : t ?? (n == null ? (AO(), Kon) : null); + }, w(un, "EValidatorRegistryImpl", 1281), b(1303, 710, { 109: 1, 94: 1, 93: 1, 469: 1, 158: 1, 57: 1, 114: 1, 2002: 1, 52: 1, 100: 1, 161: 1, 117: 1, 118: 1 }, e4e), o.oi = function(n, t) { switch (n.fk()) { case 21: case 22: @@ -45781,7 +45871,7 @@ function WDn() { case 28: return Wvn(t); case 29: - return t == null ? null : D$e(j8[0], u(t, 205)); + return t == null ? null : N$e(j8[0], u(t, 205)); case 41: return t == null ? "" : Ed(u(t, 298)); case 42: @@ -45792,7 +45882,7 @@ function WDn() { throw $(new on(O5 + n.ve() + jb)); } }, o.pi = function(n) { - var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, M; + var t, i, r, c, s, f, h, l, a, d, g, p, v, j, E, T; switch (n.G == -1 && (n.G = (p = Vs(n), p ? Ha(p.si(), n) : -1)), n.G) { case 0: return i = new iO(), i; @@ -45803,9 +45893,9 @@ function WDn() { case 4: return c = new yA(), c; case 5: - return s = new Aje(), s; + return s = new xje(), s; case 6: - return f = new J7e(), f; + return f = new G7e(), f; case 7: return h = new az(), h; case 10: @@ -45813,17 +45903,17 @@ function WDn() { case 11: return d = new rO(), d; case 12: - return g = new ZIe(), g; + return g = new eCe(), g; case 13: return v = new cO(), v; case 14: return j = new cK(), j; case 17: - return E = new H5e(), E; + return E = new q5e(), E; case 18: return l = new C0(), l; case 19: - return M = new FP(), M; + return T = new FP(), T; default: throw $(new on(iJ + n.zb + jb)); } @@ -45865,165 +45955,165 @@ function WDn() { return t == null ? null : Lw(RT(t)); case 49: case 48: - return t == null ? null : Lv(eo(t, _S, 32767) << 16 >> 16); + return t == null ? null : Lv(eo(t, BS, 32767) << 16 >> 16); case 50: return t; default: throw $(new on(O5 + n.ve() + jb)); } - }, w(un, "EcoreFactoryImpl", 1303), b(548, 184, { 109: 1, 94: 1, 93: 1, 158: 1, 197: 1, 57: 1, 241: 1, 114: 1, 2e3: 1, 52: 1, 100: 1, 161: 1, 184: 1, 548: 1, 117: 1, 118: 1, 680: 1 }, AIe), o.gb = !1, o.hb = !1; - var q0e, Won = !1; - w(un, "EcorePackageImpl", 548), b(1199, 1, { 835: 1 }, e4e), o.Ik = function() { - return rMe(), Kon; - }, w(un, "EcorePackageImpl/1", 1199), b(1208, 1, dt, n4e), o.dk = function(n) { + }, w(un, "EcoreFactoryImpl", 1303), b(548, 184, { 109: 1, 94: 1, 93: 1, 158: 1, 197: 1, 57: 1, 241: 1, 114: 1, 2e3: 1, 52: 1, 100: 1, 161: 1, 184: 1, 548: 1, 117: 1, 118: 1, 680: 1 }, xIe), o.gb = !1, o.hb = !1; + var q0e, Xon = !1; + w(un, "EcorePackageImpl", 548), b(1199, 1, { 835: 1 }, n4e), o.Ik = function() { + return cMe(), Von; + }, w(un, "EcorePackageImpl/1", 1199), b(1208, 1, dt, t4e), o.dk = function(n) { return N(n, 158); }, o.ek = function(n) { return W(zE, Ve, 158, n, 0, 1); - }, w(un, "EcorePackageImpl/10", 1208), b(1209, 1, dt, t4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/10", 1208), b(1209, 1, dt, i4e), o.dk = function(n) { return N(n, 197); }, o.ek = function(n) { return W(mU, Ve, 197, n, 0, 1); - }, w(un, "EcorePackageImpl/11", 1209), b(1210, 1, dt, i4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/11", 1209), b(1210, 1, dt, r4e), o.dk = function(n) { return N(n, 57); }, o.ek = function(n) { return W(bd, Ve, 57, n, 0, 1); - }, w(un, "EcorePackageImpl/12", 1210), b(1211, 1, dt, r4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/12", 1210), b(1211, 1, dt, c4e), o.dk = function(n) { return N(n, 403); }, o.ek = function(n) { return W(nf, Jue, 62, n, 0, 1); - }, w(un, "EcorePackageImpl/13", 1211), b(1212, 1, dt, c4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/13", 1211), b(1212, 1, dt, u4e), o.dk = function(n) { return N(n, 241); }, o.ek = function(n) { return W(eh, Ve, 241, n, 0, 1); - }, w(un, "EcorePackageImpl/14", 1212), b(1213, 1, dt, u4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/14", 1212), b(1213, 1, dt, s4e), o.dk = function(n) { return N(n, 503); }, o.ek = function(n) { return W(Rb, Ve, 2078, n, 0, 1); - }, w(un, "EcorePackageImpl/15", 1213), b(1214, 1, dt, s4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/15", 1213), b(1214, 1, dt, o4e), o.dk = function(n) { return N(n, 103); }, o.ek = function(n) { return W(Dg, q2, 19, n, 0, 1); - }, w(un, "EcorePackageImpl/16", 1214), b(1215, 1, dt, o4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/16", 1214), b(1215, 1, dt, f4e), o.dk = function(n) { return N(n, 179); }, o.ek = function(n) { return W(Uu, q2, 179, n, 0, 1); - }, w(un, "EcorePackageImpl/17", 1215), b(1216, 1, dt, f4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/17", 1215), b(1216, 1, dt, h4e), o.dk = function(n) { return N(n, 470); }, o.ek = function(n) { return W(Og, Ve, 470, n, 0, 1); - }, w(un, "EcorePackageImpl/18", 1216), b(1217, 1, dt, h4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/18", 1216), b(1217, 1, dt, l4e), o.dk = function(n) { return N(n, 549); }, o.ek = function(n) { - return W(Ic, OVe, 549, n, 0, 1); - }, w(un, "EcorePackageImpl/19", 1217), b(1200, 1, dt, l4e), o.dk = function(n) { + return W(Ic, LVe, 549, n, 0, 1); + }, w(un, "EcorePackageImpl/19", 1217), b(1200, 1, dt, a4e), o.dk = function(n) { return N(n, 335); }, o.ek = function(n) { return W(Lg, q2, 38, n, 0, 1); - }, w(un, "EcorePackageImpl/2", 1200), b(1218, 1, dt, a4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/2", 1200), b(1218, 1, dt, d4e), o.dk = function(n) { return N(n, 248); }, o.ek = function(n) { - return W(Rr, VVe, 87, n, 0, 1); - }, w(un, "EcorePackageImpl/20", 1218), b(1219, 1, dt, d4e), o.dk = function(n) { + return W(Rr, QVe, 87, n, 0, 1); + }, w(un, "EcorePackageImpl/20", 1218), b(1219, 1, dt, b4e), o.dk = function(n) { return N(n, 446); }, o.ek = function(n) { return W(Iu, Ve, 834, n, 0, 1); - }, w(un, "EcorePackageImpl/21", 1219), b(1220, 1, dt, b4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/21", 1219), b(1220, 1, dt, w4e), o.dk = function(n) { return iw(n); }, o.ek = function(n) { - return W(ui, oe, 473, n, 8, 1); - }, w(un, "EcorePackageImpl/22", 1220), b(1221, 1, dt, w4e), o.dk = function(n) { + return W(ui, fe, 473, n, 8, 1); + }, w(un, "EcorePackageImpl/22", 1220), b(1221, 1, dt, g4e), o.dk = function(n) { return N(n, 195); }, o.ek = function(n) { - return W(us, oe, 195, n, 0, 2); - }, w(un, "EcorePackageImpl/23", 1221), b(1222, 1, dt, g4e), o.dk = function(n) { + return W(us, fe, 195, n, 0, 2); + }, w(un, "EcorePackageImpl/23", 1221), b(1222, 1, dt, p4e), o.dk = function(n) { return N(n, 221); }, o.ek = function(n) { - return W(X3, oe, 221, n, 0, 1); - }, w(un, "EcorePackageImpl/24", 1222), b(1223, 1, dt, p4e), o.dk = function(n) { + return W(X3, fe, 221, n, 0, 1); + }, w(un, "EcorePackageImpl/24", 1222), b(1223, 1, dt, m4e), o.dk = function(n) { return N(n, 180); }, o.ek = function(n) { - return W(hk, oe, 180, n, 0, 1); - }, w(un, "EcorePackageImpl/25", 1223), b(1224, 1, dt, m4e), o.dk = function(n) { + return W(hk, fe, 180, n, 0, 1); + }, w(un, "EcorePackageImpl/25", 1223), b(1224, 1, dt, v4e), o.dk = function(n) { return N(n, 205); }, o.ek = function(n) { - return W(VS, oe, 205, n, 0, 1); - }, w(un, "EcorePackageImpl/26", 1224), b(1225, 1, dt, v4e), o.dk = function(n) { + return W(VS, fe, 205, n, 0, 1); + }, w(un, "EcorePackageImpl/26", 1224), b(1225, 1, dt, k4e), o.dk = function(n) { return !1; }, o.ek = function(n) { return W(obe, Ve, 2174, n, 0, 1); - }, w(un, "EcorePackageImpl/27", 1225), b(1226, 1, dt, k4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/27", 1225), b(1226, 1, dt, y4e), o.dk = function(n) { return rw(n); }, o.ek = function(n) { - return W(Ei, oe, 346, n, 7, 1); - }, w(un, "EcorePackageImpl/28", 1226), b(1227, 1, dt, y4e), o.dk = function(n) { + return W(Ei, fe, 346, n, 7, 1); + }, w(un, "EcorePackageImpl/28", 1226), b(1227, 1, dt, j4e), o.dk = function(n) { return N(n, 61); }, o.ek = function(n) { return W(E0e, Kw, 61, n, 0, 1); - }, w(un, "EcorePackageImpl/29", 1227), b(1201, 1, dt, j4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/29", 1227), b(1201, 1, dt, E4e), o.dk = function(n) { return N(n, 504); }, o.ek = function(n) { return W(ot, { 3: 1, 4: 1, 5: 1, 1995: 1 }, 587, n, 0, 1); - }, w(un, "EcorePackageImpl/3", 1201), b(1228, 1, dt, E4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/3", 1201), b(1228, 1, dt, A4e), o.dk = function(n) { return N(n, 568); }, o.ek = function(n) { return W($0e, Ve, 2001, n, 0, 1); - }, w(un, "EcorePackageImpl/30", 1228), b(1229, 1, dt, A4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/30", 1228), b(1229, 1, dt, x4e), o.dk = function(n) { return N(n, 163); }, o.ek = function(n) { return W(K0e, Kw, 163, n, 0, 1); - }, w(un, "EcorePackageImpl/31", 1229), b(1230, 1, dt, x4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/31", 1229), b(1230, 1, dt, $4e), o.dk = function(n) { return N(n, 75); }, o.ek = function(n) { - return W(lP, cQe, 75, n, 0, 1); - }, w(un, "EcorePackageImpl/32", 1230), b(1231, 1, dt, $4e), o.dk = function(n) { + return W(lP, uQe, 75, n, 0, 1); + }, w(un, "EcorePackageImpl/32", 1230), b(1231, 1, dt, M4e), o.dk = function(n) { return N(n, 164); }, o.ek = function(n) { - return W(J5, oe, 164, n, 0, 1); - }, w(un, "EcorePackageImpl/33", 1231), b(1232, 1, dt, M4e), o.dk = function(n) { + return W(J5, fe, 164, n, 0, 1); + }, w(un, "EcorePackageImpl/33", 1231), b(1232, 1, dt, T4e), o.dk = function(n) { return N(n, 15); }, o.ek = function(n) { - return W(Ii, oe, 15, n, 0, 1); - }, w(un, "EcorePackageImpl/34", 1232), b(1233, 1, dt, T4e), o.dk = function(n) { + return W(Ii, fe, 15, n, 0, 1); + }, w(un, "EcorePackageImpl/34", 1232), b(1233, 1, dt, S4e), o.dk = function(n) { return N(n, 298); }, o.ek = function(n) { return W(ese, Ve, 298, n, 0, 1); - }, w(un, "EcorePackageImpl/35", 1233), b(1234, 1, dt, S4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/35", 1233), b(1234, 1, dt, I4e), o.dk = function(n) { return N(n, 190); }, o.ek = function(n) { - return W(Ab, oe, 190, n, 0, 1); - }, w(un, "EcorePackageImpl/36", 1234), b(1235, 1, dt, I4e), o.dk = function(n) { + return W(Ab, fe, 190, n, 0, 1); + }, w(un, "EcorePackageImpl/36", 1234), b(1235, 1, dt, C4e), o.dk = function(n) { return N(n, 92); }, o.ek = function(n) { return W(nse, Ve, 92, n, 0, 1); - }, w(un, "EcorePackageImpl/37", 1235), b(1236, 1, dt, C4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/37", 1235), b(1236, 1, dt, P4e), o.dk = function(n) { return N(n, 588); }, o.ek = function(n) { return W(U0e, Ve, 588, n, 0, 1); - }, w(un, "EcorePackageImpl/38", 1236), b(1237, 1, dt, P4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/38", 1236), b(1237, 1, dt, O4e), o.dk = function(n) { return !1; }, o.ek = function(n) { return W(fbe, Ve, 2175, n, 0, 1); - }, w(un, "EcorePackageImpl/39", 1237), b(1202, 1, dt, O4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/39", 1237), b(1202, 1, dt, L4e), o.dk = function(n) { return N(n, 88); }, o.ek = function(n) { return W(ef, Ve, 29, n, 0, 1); - }, w(un, "EcorePackageImpl/4", 1202), b(1238, 1, dt, L4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/4", 1202), b(1238, 1, dt, D4e), o.dk = function(n) { return N(n, 191); }, o.ek = function(n) { - return W(xb, oe, 191, n, 0, 1); - }, w(un, "EcorePackageImpl/40", 1238), b(1239, 1, dt, D4e), o.dk = function(n) { + return W(xb, fe, 191, n, 0, 1); + }, w(un, "EcorePackageImpl/40", 1238), b(1239, 1, dt, N4e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(un, "EcorePackageImpl/41", 1239), b(1240, 1, dt, N4e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(un, "EcorePackageImpl/41", 1239), b(1240, 1, dt, F4e), o.dk = function(n) { return N(n, 585); }, o.ek = function(n) { return W(x0e, Ve, 585, n, 0, 1); - }, w(un, "EcorePackageImpl/42", 1240), b(1241, 1, dt, F4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/42", 1240), b(1241, 1, dt, R4e), o.dk = function(n) { return !1; }, o.ek = function(n) { - return W(hbe, oe, 2176, n, 0, 1); - }, w(un, "EcorePackageImpl/43", 1241), b(1242, 1, dt, R4e), o.dk = function(n) { + return W(hbe, fe, 2176, n, 0, 1); + }, w(un, "EcorePackageImpl/43", 1241), b(1242, 1, dt, _4e), o.dk = function(n) { return N(n, 45); }, o.ek = function(n) { return W(s0, JT, 45, n, 0, 1); @@ -46031,31 +46121,31 @@ function WDn() { return N(n, 143); }, o.ek = function(n) { return W(nh, Ve, 143, n, 0, 1); - }, w(un, "EcorePackageImpl/5", 1203), b(1204, 1, dt, _4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/5", 1203), b(1204, 1, dt, J4e), o.dk = function(n) { return N(n, 159); }, o.ek = function(n) { return W(AU, Ve, 159, n, 0, 1); - }, w(un, "EcorePackageImpl/6", 1204), b(1205, 1, dt, J4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/6", 1204), b(1205, 1, dt, G4e), o.dk = function(n) { return N(n, 459); }, o.ek = function(n) { return W(hP, Ve, 675, n, 0, 1); - }, w(un, "EcorePackageImpl/7", 1205), b(1206, 1, dt, G4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/7", 1205), b(1206, 1, dt, H4e), o.dk = function(n) { return N(n, 568); }, o.ek = function(n) { return W(wa, Ve, 684, n, 0, 1); - }, w(un, "EcorePackageImpl/8", 1206), b(1207, 1, dt, H4e), o.dk = function(n) { + }, w(un, "EcorePackageImpl/8", 1206), b(1207, 1, dt, q4e), o.dk = function(n) { return N(n, 469); }, o.ek = function(n) { return W(y8, Ve, 469, n, 0, 1); - }, w(un, "EcorePackageImpl/9", 1207), b(1019, 2042, PVe, Kje), o.Ki = function(n, t) { + }, w(un, "EcorePackageImpl/9", 1207), b(1019, 2042, OVe, Vje), o.Ki = function(n, t) { o9n(this, u(t, 415)); }, o.Oi = function(n, t) { - YJe(this, n, u(t, 415)); - }, w(un, "MinimalEObjectImpl/1ArrayDelegatingAdapterList", 1019), b(1020, 151, Oj, bIe), o.hj = function() { + ZJe(this, n, u(t, 415)); + }, w(un, "MinimalEObjectImpl/1ArrayDelegatingAdapterList", 1019), b(1020, 151, Oj, wIe), o.hj = function() { return this.a.a; - }, w(un, "MinimalEObjectImpl/1ArrayDelegatingAdapterList/1", 1020), b(1047, 1046, {}, x$e), w("org.eclipse.emf.ecore.plugin", "EcorePlugin", 1047); - var U0e = Zt(uQe, "Resource"); - b(786, 1485, sQe), o.Fl = function(n) { + }, w(un, "MinimalEObjectImpl/1ArrayDelegatingAdapterList/1", 1020), b(1047, 1046, {}, $$e), w("org.eclipse.emf.ecore.plugin", "EcorePlugin", 1047); + var U0e = Zt(sQe, "Resource"); + b(786, 1485, oQe), o.Fl = function(n) { }, o.Gl = function(n) { }, o.Cl = function() { return !this.a && (this.a = new QP(this)), this.a; @@ -46074,13 +46164,13 @@ function WDn() { }, o.Ib = function() { var n; return Ed(this.Pm) + "@" + (n = Gt(this) >>> 0, n.toString(16)) + " uri='" + this.d + "'"; - }, o.b = !1, w(kJ, "ResourceImpl", 786), b(1486, 786, sQe, F7e), w(kJ, "BinaryResourceImpl", 1486), b(1159, 697, bJ), o._i = function(n) { + }, o.b = !1, w(kJ, "ResourceImpl", 786), b(1486, 786, oQe, R7e), w(kJ, "BinaryResourceImpl", 1486), b(1159, 697, bJ), o._i = function(n) { return N(n, 57) ? K2n(this, u(n, 57)) : N(n, 588) ? new kn(u(n, 588).Cl()) : z(n) === z(this.f) ? u(n, 18).Jc() : (Zm(), KE.a); }, o.Ob = function() { return Fne(this); - }, o.a = !1, w(Xt, "EcoreUtil/ContentTreeIterator", 1159), b(1487, 1159, bJ, qSe), o._i = function(n) { - return z(n) === z(this.f) ? u(n, 16).Jc() : new UPe(u(n, 57)); - }, w(kJ, "ResourceImpl/5", 1487), b(647, 2054, KVe, QP), o.Gc = function(n) { + }, o.a = !1, w(Xt, "EcoreUtil/ContentTreeIterator", 1159), b(1487, 1159, bJ, USe), o._i = function(n) { + return z(n) === z(this.f) ? u(n, 16).Jc() : new zPe(u(n, 57)); + }, w(kJ, "ResourceImpl/5", 1487), b(647, 2054, VVe, QP), o.Gc = function(n) { return this.i <= 4 ? Wv(this, n) : N(n, 52) && u(n, 52).Gh() == this.a; }, o.Ki = function(n, t) { n == this.i - 1 && (this.a.b || (this.a.b = !0)); @@ -46108,27 +46198,27 @@ function WDn() { return W(bd, Ve, 57, n, 0, 1); }, o.Wi = function() { return !1; - }, w(kJ, "ResourceImpl/ContentsEList", 647), b(953, 2024, a5, R7e), o.dd = function(n) { + }, w(kJ, "ResourceImpl/ContentsEList", 647), b(953, 2024, a5, _7e), o.dd = function(n) { return this.a.Ii(n); }, o.gc = function() { return this.a.gc(); }, w(Xt, "AbstractSequentialInternalEList/1", 953); var z0e, W0e, sr, X0e; - b(625, 1, {}, WTe); + b(625, 1, {}, XTe); var aP, dP; - w(Xt, "BasicExtendedMetaData", 625), b(1150, 1, {}, Uxe), o.Hl = function() { + w(Xt, "BasicExtendedMetaData", 625), b(1150, 1, {}, zxe), o.Hl = function() { return null; }, o.Il = function() { - return this.a == -2 && _hn(this, Ajn(this.d, this.b)), this.a; + return this.a == -2 && Bhn(this, Ajn(this.d, this.b)), this.a; }, o.Jl = function() { return null; }, o.Kl = function() { return ze(), ze(), $r; }, o.ve = function() { - return this.c == F5 && Jhn(this, kBe(this.d, this.b)), this.c; + return this.c == F5 && Jhn(this, y_e(this.d, this.b)), this.c; }, o.Ll = function() { return 0; - }, o.a = -2, o.c = F5, w(Xt, "BasicExtendedMetaData/EClassExtendedMetaDataImpl", 1150), b(1151, 1, {}, jPe), o.Hl = function() { + }, o.a = -2, o.c = F5, w(Xt, "BasicExtendedMetaData/EClassExtendedMetaDataImpl", 1150), b(1151, 1, {}, EPe), o.Hl = function() { return this.a == (wv(), aP) && qhn(this, oTn(this.f, this.b)), this.a; }, o.Il = function() { return 0; @@ -46137,10 +46227,10 @@ function WDn() { }, o.Kl = function() { return !this.d && zhn(this, zSn(this.f, this.b)), this.d; }, o.ve = function() { - return this.e == F5 && Xhn(this, kBe(this.f, this.b)), this.e; + return this.e == F5 && Xhn(this, y_e(this.f, this.b)), this.e; }, o.Ll = function() { return this.g == -2 && Vhn(this, U7n(this.f, this.b)), this.g; - }, o.e = F5, o.g = -2, w(Xt, "BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl", 1151), b(1149, 1, {}, zxe), o.b = !1, o.c = !1, w(Xt, "BasicExtendedMetaData/EPackageExtendedMetaDataImpl", 1149), b(1152, 1, {}, EPe), o.c = -2, o.e = F5, o.f = F5, w(Xt, "BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl", 1152), b(581, 623, sc, _x), o.Jj = function() { + }, o.e = F5, o.g = -2, w(Xt, "BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl", 1151), b(1149, 1, {}, Wxe), o.b = !1, o.c = !1, w(Xt, "BasicExtendedMetaData/EPackageExtendedMetaDataImpl", 1149), b(1152, 1, {}, APe), o.c = -2, o.e = F5, o.f = F5, w(Xt, "BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl", 1152), b(581, 623, sc, Bx), o.Jj = function() { return this.c; }, o.ml = function() { return !1; @@ -46167,7 +46257,7 @@ function WDn() { }, o.Sj = function(n, t) { return j0n(this, u(n, 75), t); }, o.Tj = function(n, t) { - return kTe(this, u(n, 75), t); + return yTe(this, u(n, 75), t); }, o.Uj = function(n, t, i) { return L7n(this, u(n, 75), u(t, 75), i); }, o.Xi = function(n, t) { @@ -46227,7 +46317,7 @@ function WDn() { }, o.Ul = function(n) { return !x7(this, n); }, o.$i = function(n) { - return W(zon, cQe, 344, n, 0, 1); + return W(Won, uQe, 344, n, 0, 1); }, o.nl = function(n) { return AL(this, n); }, o.Wb = function(n) { @@ -46235,9 +46325,9 @@ function WDn() { }, o.Vl = function(n, t) { LT(this, n, t); }, o.Wl = function(n) { - return ENe(this, n); + return ANe(this, n); }, o.Xl = function(n) { - r_e(this, n); + cBe(this, n); }, w(Xt, "BasicFeatureMap", 76), b(1922, 1, pl), o.Nb = function(n) { cr(this, n); }, o.Rb = function(n) { @@ -46245,21 +46335,21 @@ function WDn() { throw $(new Vu()); t$(this); try { - WHe(this.e, this.b, this.a, n), this.d = this.e.j, XM(this); + XHe(this.e, this.b, this.a, n), this.d = this.e.j, XM(this); } catch (t) { throw t = gi(t), N(t, 99) ? $(new lo()) : $(t); } }, o.Ob = function() { return qN(this); }, o.Sb = function() { - return YFe(this); + return ZFe(this); }, o.Pb = function() { return XM(this); }, o.Tb = function() { return this.a; }, o.Ub = function() { var n; - if (YFe(this)) + if (ZFe(this)) return t$(this), this.g = --this.a, this.sl() && (n = w9(this.e, this.b, this.c, this.a, this.j), this.j = n), this.i = 0, this.j; throw $(new oc()); }, o.Vb = function() { @@ -46269,7 +46359,7 @@ function WDn() { throw $(new Vu()); t$(this); try { - FJe(this.e, this.b, this.g), this.d = this.e.j, this.g < this.a && (--this.a, --this.c), --this.g; + RJe(this.e, this.b, this.g), this.d = this.e.j, this.g < this.a && (--this.a, --this.c), --this.g; } catch (n) { throw n = gi(n), N(n, 99) ? $(new lo()) : $(n); } @@ -46280,7 +46370,7 @@ function WDn() { throw $(new Vu()); t$(this); try { - vUe(this.e, this.b, this.g, n), this.d = this.e.j; + kUe(this.e, this.b, this.g, n), this.d = this.e.j; } catch (t) { throw t = gi(t), N(t, 99) ? $(new lo()) : $(t); } @@ -46302,9 +46392,9 @@ function WDn() { return !0; }, w(Xt, "BasicFeatureMap/ResolvingFeatureEIterator", 666), b(951, 482, DS, B$e), o.nj = function() { return this; - }, w(Xt, "EContentsEList/1", 951), b(952, 482, DS, h$e), o.sl = function() { + }, w(Xt, "EContentsEList/1", 951), b(952, 482, DS, l$e), o.sl = function() { return !1; - }, w(Xt, "EContentsEList/2", 952), b(950, 287, NS, _$e), o.ul = function(n) { + }, w(Xt, "EContentsEList/2", 952), b(950, 287, NS, J$e), o.ul = function(n) { }, o.Ob = function() { return !1; }, o.Sb = function() { @@ -46316,15 +46406,15 @@ function WDn() { }, o.Ek = function() { var n; On(this), Os(this.e) ? (n = this.a, this.a = !1, yt(this.e, new bf(this.e, 2, this.c, n, !1))) : this.a = !1; - }, o.a = !1, w(Xt, "EDataTypeEList/Unsettable", 824), b(1920, 581, sc, z$e), o.Qi = function() { + }, o.a = !1, w(Xt, "EDataTypeEList/Unsettable", 824), b(1920, 581, sc, W$e), o.Qi = function() { return !0; - }, w(Xt, "EDataTypeUniqueEList", 1920), b(1921, 824, sc, W$e), o.Qi = function() { + }, w(Xt, "EDataTypeUniqueEList", 1920), b(1921, 824, sc, X$e), o.Qi = function() { return !0; }, w(Xt, "EDataTypeUniqueEList/Unsettable", 1921), b(145, 81, sc, Qu), o.ll = function() { return !0; }, o.Ui = function(n, t) { return O3(this, n, u(t, 57)); - }, w(Xt, "EObjectContainmentEList/Resolving", 145), b(1153, 543, sc, U$e), o.ll = function() { + }, w(Xt, "EObjectContainmentEList/Resolving", 145), b(1153, 543, sc, z$e), o.ll = function() { return !0; }, o.Ui = function(n, t) { return O3(this, n, u(t, 57)); @@ -46335,7 +46425,7 @@ function WDn() { }, o.Ek = function() { var n; On(this), Os(this.e) ? (n = this.a, this.a = !1, yt(this.e, new bf(this.e, 2, this.c, n, !1))) : this.a = !1; - }, o.a = !1, w(Xt, "EObjectContainmentWithInverseEList/Unsettable", 753), b(1187, 753, sc, sTe), o.ll = function() { + }, o.a = !1, w(Xt, "EObjectContainmentWithInverseEList/Unsettable", 753), b(1187, 753, sc, oTe), o.ll = function() { return !0; }, o.Ui = function(n, t) { return O3(this, n, u(t, 57)); @@ -46350,12 +46440,12 @@ function WDn() { return !0; }, o.Ui = function(n, t) { return O3(this, n, u(t, 57)); - }, w(Xt, "EObjectResolvingEList", 339), b(1825, 745, sc, X$e), o.ll = function() { + }, w(Xt, "EObjectResolvingEList", 339), b(1825, 745, sc, K$e), o.ll = function() { return !0; }, o.Ui = function(n, t) { return O3(this, n, u(t, 57)); - }, w(Xt, "EObjectResolvingEList/Unsettable", 1825), b(1488, 1, {}, q4e); - var Xon; + }, w(Xt, "EObjectResolvingEList/Unsettable", 1825), b(1488, 1, {}, U4e); + var Kon; w(Xt, "EObjectValidator", 1488), b(547, 491, sc, c$), o.gl = function() { return this.d; }, o.hl = function() { @@ -46364,7 +46454,7 @@ function WDn() { return !0; }, o.kl = function() { return !0; - }, o.b = 0, w(Xt, "EObjectWithInverseEList", 547), b(1190, 547, sc, oTe), o.jl = function() { + }, o.b = 0, w(Xt, "EObjectWithInverseEList", 547), b(1190, 547, sc, fTe), o.jl = function() { return !0; }, w(Xt, "EObjectWithInverseEList/ManyInverse", 1190), b(626, 547, sc, SL), o.Li = function() { this.a = !0; @@ -46373,7 +46463,7 @@ function WDn() { }, o.Ek = function() { var n; On(this), Os(this.e) ? (n = this.a, this.a = !1, yt(this.e, new bf(this.e, 2, this.c, n, !1))) : this.a = !1; - }, o.a = !1, w(Xt, "EObjectWithInverseEList/Unsettable", 626), b(1189, 626, sc, fTe), o.jl = function() { + }, o.a = !1, w(Xt, "EObjectWithInverseEList/Unsettable", 626), b(1189, 626, sc, hTe), o.jl = function() { return !0; }, w(Xt, "EObjectWithInverseEList/Unsettable/ManyInverse", 1189), b(754, 547, sc, EK), o.ll = function() { return !0; @@ -46385,7 +46475,7 @@ function WDn() { return !0; }, o.Ui = function(n, t) { return O3(this, n, u(t, 57)); - }, w(Xt, "EObjectWithInverseResolvingEList/Unsettable", 755), b(1188, 755, sc, hTe), o.jl = function() { + }, w(Xt, "EObjectWithInverseResolvingEList/Unsettable", 755), b(1188, 755, sc, lTe), o.jl = function() { return !0; }, w(Xt, "EObjectWithInverseResolvingEList/Unsettable/ManyInverse", 1188), b(1154, 623, sc), o.Ji = function() { return (this.b & 1792) == 0; @@ -46406,7 +46496,7 @@ function WDn() { }, o.ml = function() { return (this.b & Ef) != 0; }, o.dk = function(n) { - return this.d ? YPe(this.d, n) : this.Jk().Fk().dk(n); + return this.d ? ZPe(this.d, n) : this.Jk().Fk().dk(n); }, o.Oj = function() { return (this.b & 2) != 0 ? (this.b & 1) != 0 : this.i != 0; }, o.Qi = function() { @@ -46416,14 +46506,14 @@ function WDn() { On(this), (this.b & 2) != 0 && (Os(this.e) ? (n = (this.b & 1) != 0, this.b &= -2, Fm(this, new bf(this.e, 2, Yt(this.e.Ah(), this.Jk()), n, !1))) : this.b &= -2); }, o.Wi = function() { return (this.b & 1536) == 0; - }, o.b = 0, w(Xt, "EcoreEList/Generic", 1154), b(1155, 1154, sc, iCe), o.Jk = function() { + }, o.b = 0, w(Xt, "EcoreEList/Generic", 1154), b(1155, 1154, sc, rCe), o.Jk = function() { return this.a; }, w(Xt, "EcoreEList/Dynamic", 1155), b(752, 67, el, qz), o.$i = function(n) { return u7(this.a.a, n); }, w(Xt, "EcoreEMap/1", 752), b(751, 81, sc, vV), o.Ki = function(n, t) { VM(this.b, u(t, 136)); }, o.Mi = function(n, t) { - rFe(this.b); + cFe(this.b); }, o.Ni = function(n, t, i) { var r; ++(r = this.b, u(t, 136), r).e; @@ -46431,35 +46521,35 @@ function WDn() { eF(this.b, u(t, 136)); }, o.Pi = function(n, t, i) { eF(this.b, u(i, 136)), z(i) === z(t) && u(i, 136).zi(v1n(u(t, 136).jd())), VM(this.b, u(t, 136)); - }, w(Xt, "EcoreEMap/DelegateEObjectContainmentEList", 751), b(1185, 142, _ue, wNe), w(Xt, "EcoreEMap/Unsettable", 1185), b(1186, 751, sc, lTe), o.Li = function() { + }, w(Xt, "EcoreEMap/DelegateEObjectContainmentEList", 751), b(1185, 142, Bue, gNe), w(Xt, "EcoreEMap/Unsettable", 1185), b(1186, 751, sc, aTe), o.Li = function() { this.a = !0; }, o.Oj = function() { return this.a; }, o.Ek = function() { var n; On(this), Os(this.e) ? (n = this.a, this.a = !1, yt(this.e, new bf(this.e, 2, this.c, n, !1))) : this.a = !1; - }, o.a = !1, w(Xt, "EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList", 1186), b(1158, 223, N2, uIe), o.a = !1, o.b = !1, w(Xt, "EcoreUtil/Copier", 1158), b(747, 1, Wi, UPe), o.Nb = function(n) { + }, o.a = !1, w(Xt, "EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList", 1186), b(1158, 223, N2, sIe), o.a = !1, o.b = !1, w(Xt, "EcoreUtil/Copier", 1158), b(747, 1, Wi, zPe), o.Nb = function(n) { cr(this, n); }, o.Ob = function() { - return cBe(this); + return u_e(this); }, o.Pb = function() { var n; - return cBe(this), n = this.b, this.b = null, n; + return u_e(this), n = this.b, this.b = null, n; }, o.Qb = function() { this.a.Qb(); - }, w(Xt, "EcoreUtil/ProperContentIterator", 747), b(1489, 1488, {}, H9e); - var Kon; - w(Xt, "EcoreValidator", 1489); + }, w(Xt, "EcoreUtil/ProperContentIterator", 747), b(1489, 1488, {}, q9e); var Von; - Zt(Xt, "FeatureMapUtil/Validator"), b(1258, 1, { 2003: 1 }, U4e), o.$l = function(n) { + w(Xt, "EcoreValidator", 1489); + var Qon; + Zt(Xt, "FeatureMapUtil/Validator"), b(1258, 1, { 2003: 1 }, z4e), o.$l = function(n) { return !0; }, w(Xt, "FeatureMapUtil/1", 1258), b(760, 1, { 2003: 1 }, hie), o.$l = function(n) { var t; - return this.c == n ? !0 : (t = me(rn(this.a, n)), t == null ? bTn(this, n) ? (_Oe(this.a, n, (en(), _5)), !0) : (_Oe(this.a, n, (en(), Y1)), !1) : t == (en(), _5)); + return this.c == n ? !0 : (t = me(rn(this.a, n)), t == null ? bTn(this, n) ? (JOe(this.a, n, (en(), B5)), !0) : (JOe(this.a, n, (en(), Y1)), !1) : t == (en(), B5)); }, o.e = !1; var TU; w(Xt, "FeatureMapUtil/BasicValidator", 760), b(761, 44, N2, OX), w(Xt, "FeatureMapUtil/BasicValidator/Cache", 761), b(495, 56, { 20: 1, 31: 1, 56: 1, 18: 1, 16: 1, 61: 1, 77: 1, 72: 1, 98: 1 }, ay), o._c = function(n, t) { - WHe(this.c, this.b, n, t); + XHe(this.c, this.b, n, t); }, o.Ec = function(n) { return Cte(this.c, this.b, n); }, o.ad = function(n, t) { @@ -46473,13 +46563,13 @@ function WDn() { }, o.Yi = function(n) { return OT(this.c, this.b, n, !1); }, o.Gi = function() { - return v$e(this.c, this.b); + return k$e(this.c, this.b); }, o.Hi = function() { return l1n(this.c, this.b); }, o.Ii = function(n) { return yvn(this.c, this.b, n); }, o.Vk = function(n, t) { - return qMe(this, n, t); + return UMe(this, n, t); }, o.$b = function() { Pp(this); }, o.Gc = function(n) { @@ -46503,15 +46593,15 @@ function WDn() { }, o.dd = function(n) { return x9n(this.c, this.b, n); }, o.Ri = function(n, t) { - return hUe(this.c, this.b, n, t); + return lUe(this.c, this.b, n, t); }, o.Si = function(n, t) { xvn(this.c, this.b, n, t); }, o.ed = function(n) { - return FJe(this.c, this.b, n); + return RJe(this.c, this.b, n); }, o.Kc = function(n) { return RTn(this.c, this.b, n); }, o.fd = function(n, t) { - return vUe(this.c, this.b, n, t); + return kUe(this.c, this.b, n, t); }, o.Wb = function(n) { bT(this.c, this.b), a6(this, u(n, 16)); }, o.gc = function() { @@ -46522,8 +46612,8 @@ function WDn() { return Pmn(this.c, this.b, n); }, o.Ib = function() { var n, t; - for (t = new xa(), t.a += "[", n = v$e(this.c, this.b); qN(n); ) - Br(t, b6(XM(n))), qN(n) && (t.a += mu); + for (t = new xa(), t.a += "[", n = k$e(this.c, this.b); qN(n); ) + _r(t, b6(XM(n))), qN(n) && (t.a += mu); return t.a += "]", t.a; }, o.Ek = function() { bT(this.c, this.b); @@ -46567,7 +46657,7 @@ function WDn() { } case 4: { if (s = n.hj(), z(s) === z(this.c) && Z6(this, null) == n.fj(null)) - return this.d = 6, h = new V0(2), Dn(h, this.n), Dn(h, n.ij()), this.n = h, f = I(T(Wn, 1), lt, 30, 15, [this.o, n.jj()]), this.g = f, !0; + return this.d = 6, h = new V0(2), Dn(h, this.n), Dn(h, n.ij()), this.n = h, f = I(S(Wn, 1), lt, 30, 15, [this.o, n.jj()]), this.g = f, !0; break; } } @@ -46606,10 +46696,10 @@ function WDn() { }, o.Vl = function(n, t) { LT(this.c, n, t); }, o.Wl = function(n) { - return ENe(this.c, n); + return ANe(this.c, n); }, o.Xl = function(n) { - r_e(this.c, n); - }, w(Xt, "FeatureMapUtil/FeatureFeatureMap", 553), b(1257, 1, vJ, Kxe), o.Dk = function(n) { + cBe(this.c, n); + }, w(Xt, "FeatureMapUtil/FeatureFeatureMap", 553), b(1257, 1, vJ, Vxe), o.Dk = function(n) { return OT(this.b, this.a, -1, n); }, o.Oj = function() { return !x7(this.b, this.a); @@ -46618,9 +46708,9 @@ function WDn() { }, o.Ek = function() { bT(this.b, this.a); }, w(Xt, "FeatureMapUtil/FeatureValue", 1257); - var Am, SU, IU, xm, Qon, QE = Zt(qS, "AnyType"); + var Am, SU, IU, xm, Yon, QE = Zt(qS, "AnyType"); b(670, 63, ra, dO), w(qS, "InvalidDatatypeValueException", 670); - var bP = Zt(qS, fQe), YE = Zt(qS, hQe), V0e = Zt(qS, lQe), Yon, Dc, Q0e, E0, Zon, efn, nfn, tfn, ifn, rfn, cfn, ufn, sfn, ofn, ffn, yp, hfn, jp, $8, lfn, Jb, ZE, eA, afn, M8, T8; + var bP = Zt(qS, hQe), YE = Zt(qS, lQe), V0e = Zt(qS, aQe), Zon, Dc, Q0e, E0, efn, nfn, tfn, ifn, rfn, cfn, ufn, sfn, ofn, ffn, hfn, yp, lfn, jp, $8, afn, Jb, ZE, eA, dfn, M8, T8; b(828, 501, { 109: 1, 94: 1, 93: 1, 57: 1, 52: 1, 100: 1, 841: 1 }, cW), o.Ih = function(n, t, i) { switch (n) { case 0: @@ -46682,8 +46772,8 @@ function WDn() { jo(this, n - $n(this.fi()), We((this.j & 2) == 0 ? this.fi() : (!this.k && (this.k = new Nf()), this.k).Lk(), n)); }, o.Ib = function() { var n; - return (this.j & 4) != 0 ? kf(this) : (n = new _o(kf(this)), n.a += " (mixed: ", o6(n, this.c), n.a += ", anyAttribute: ", o6(n, this.b), n.a += ")", n.a); - }, w(Si, "AnyTypeImpl", 828), b(671, 501, { 109: 1, 94: 1, 93: 1, 57: 1, 52: 1, 100: 1, 2081: 1, 671: 1 }, t6e), o.Ih = function(n, t, i) { + return (this.j & 4) != 0 ? kf(this) : (n = new Bo(kf(this)), n.a += " (mixed: ", o6(n, this.c), n.a += ", anyAttribute: ", o6(n, this.b), n.a += ")", n.a); + }, w(Si, "AnyTypeImpl", 828), b(671, 501, { 109: 1, 94: 1, 93: 1, 57: 1, 52: 1, 100: 1, 2081: 1, 671: 1 }, i6e), o.Ih = function(n, t, i) { switch (n) { case 0: return this.a; @@ -46723,8 +46813,8 @@ function WDn() { jo(this, n - $n((Ot(), yp)), We((this.j & 2) == 0 ? yp : (!this.k && (this.k = new Nf()), this.k).Lk(), n)); }, o.Ib = function() { var n; - return (this.j & 4) != 0 ? kf(this) : (n = new _o(kf(this)), n.a += " (data: ", Br(n, this.a), n.a += ", target: ", Br(n, this.b), n.a += ")", n.a); - }, o.a = null, o.b = null, w(Si, "ProcessingInstructionImpl", 671), b(672, 828, { 109: 1, 94: 1, 93: 1, 57: 1, 52: 1, 100: 1, 841: 1, 2082: 1, 672: 1 }, $je), o.Ih = function(n, t, i) { + return (this.j & 4) != 0 ? kf(this) : (n = new Bo(kf(this)), n.a += " (data: ", _r(n, this.a), n.a += ", target: ", _r(n, this.b), n.a += ")", n.a); + }, o.a = null, o.b = null, w(Si, "ProcessingInstructionImpl", 671), b(672, 828, { 109: 1, 94: 1, 93: 1, 57: 1, 52: 1, 100: 1, 841: 1, 2082: 1, 672: 1 }, Mje), o.Ih = function(n, t, i) { switch (n) { case 0: return i ? (!this.c && (this.c = new li(this, 0)), this.c) : (!this.c && (this.c = new li(this, 0)), this.c.b); @@ -46802,7 +46892,7 @@ function WDn() { return; } jo(this, n - $n((Ot(), jp)), We((this.j & 2) == 0 ? jp : (!this.k && (this.k = new Nf()), this.k).Lk(), n)); - }, w(Si, "SimpleAnyTypeImpl", 672), b(673, 501, { 109: 1, 94: 1, 93: 1, 57: 1, 52: 1, 100: 1, 2083: 1, 673: 1 }, Mje), o.Ih = function(n, t, i) { + }, w(Si, "SimpleAnyTypeImpl", 672), b(673, 501, { 109: 1, 94: 1, 93: 1, 57: 1, 52: 1, 100: 1, 2083: 1, 673: 1 }, Tje), o.Ih = function(n, t, i) { switch (n) { case 0: return i ? (!this.a && (this.a = new li(this, 0)), this.a) : (!this.a && (this.a = new li(this, 0)), this.a.b); @@ -46830,7 +46920,7 @@ function WDn() { case 2: return !this.c && (this.c = new es((Ue(), Tr), Ic, this, 2)), Ox(this.c, n, i); case 5: - return !this.a && (this.a = new li(this, 0)), qMe(tu(this.a, (Ot(), M8)), n, i); + return !this.a && (this.a = new li(this, 0)), UMe(tu(this.a, (Ot(), M8)), n, i); } return r = u(We((this.j & 2) == 0 ? (Ot(), Jb) : (!this.k && (this.k = new Nf()), this.k).Lk(), t), 69), r.uk().yk(this, cY(this), t - $n((Ot(), Jb)), n, i); }, o.Th = function(n) { @@ -46905,8 +46995,8 @@ function WDn() { jo(this, n - $n((Ot(), Jb)), We((this.j & 2) == 0 ? Jb : (!this.k && (this.k = new Nf()), this.k).Lk(), n)); }, o.Ib = function() { var n; - return (this.j & 4) != 0 ? kf(this) : (n = new _o(kf(this)), n.a += " (mixed: ", o6(n, this.a), n.a += ")", n.a); - }, w(Si, "XMLTypeDocumentRootImpl", 673), b(1990, 710, { 109: 1, 94: 1, 93: 1, 469: 1, 158: 1, 57: 1, 114: 1, 52: 1, 100: 1, 161: 1, 117: 1, 118: 1, 2084: 1 }, z4e), o.oi = function(n, t) { + return (this.j & 4) != 0 ? kf(this) : (n = new Bo(kf(this)), n.a += " (mixed: ", o6(n, this.a), n.a += ")", n.a); + }, w(Si, "XMLTypeDocumentRootImpl", 673), b(1990, 710, { 109: 1, 94: 1, 93: 1, 469: 1, 158: 1, 57: 1, 114: 1, 52: 1, 100: 1, 161: 1, 117: 1, 118: 1, 2084: 1 }, W4e), o.oi = function(n, t) { switch (n.fk()) { case 7: case 8: @@ -46949,36 +47039,36 @@ function WDn() { case 5: return zn(t); case 6: - return _dn(u(t, 195)); + return Bdn(u(t, 195)); case 12: case 47: case 49: case 11: - return ize(this, n, t); + return rze(this, n, t); case 13: - return t == null ? null : BIn(u(t, 247)); + return t == null ? null : _In(u(t, 247)); case 15: case 14: - return t == null ? null : Lgn(_(H(t))); + return t == null ? null : Lgn(B(H(t))); case 17: - return W_e((Ot(), t)); + return XBe((Ot(), t)); case 18: - return W_e(t); + return XBe(t); case 21: case 20: return t == null ? null : Dgn(u(t, 164).a); case 27: - return Bdn(u(t, 195)); + return _dn(u(t, 195)); case 30: - return c_e((Ot(), u(t, 16))); + return uBe((Ot(), u(t, 16))); case 31: - return c_e(u(t, 16)); + return uBe(u(t, 16)); case 40: return Rdn((Ot(), t)); case 42: - return X_e((Ot(), t)); + return KBe((Ot(), t)); case 43: - return X_e(t); + return KBe(t); case 59: case 48: return Fdn((Ot(), t)); @@ -46991,16 +47081,16 @@ function WDn() { case 0: return t = new cW(), t; case 1: - return r = new t6e(), r; + return r = new i6e(), r; case 2: - return c = new $je(), c; + return c = new Mje(), c; case 3: - return s = new Mje(), s; + return s = new Tje(), s; default: throw $(new on(iJ + n.zb + jb)); } }, o.qi = function(n, t) { - var i, r, c, s, f, h, l, a, d, g, p, v, j, E, M, D; + var i, r, c, s, f, h, l, a, d, g, p, v, j, E, T, D; switch (n.fk()) { case 5: case 52: @@ -47016,20 +47106,20 @@ function WDn() { case 10: return t == null ? null : i7(eo((c = cu(t, !0), c.length > 0 && (bn(0, c.length), c.charCodeAt(0) == 43) ? (bn(1, c.length + 1), c.substr(1)) : c), -128, 127) << 24 >> 24); case 11: - return zn(db(this, (Ot(), nfn), t)); - case 12: return zn(db(this, (Ot(), tfn), t)); + case 12: + return zn(db(this, (Ot(), ifn), t)); case 13: return t == null ? null : new $W(cu(t, !0)); case 15: case 14: return Kxn(t); case 16: - return zn(db(this, (Ot(), ifn), t)); + return zn(db(this, (Ot(), rfn), t)); case 17: - return sBe((Ot(), t)); + return o_e((Ot(), t)); case 18: - return sBe(t); + return o_e(t); case 28: case 29: case 35: @@ -47043,21 +47133,21 @@ function WDn() { case 20: return c$n(t); case 22: - return zn(db(this, (Ot(), rfn), t)); - case 23: return zn(db(this, (Ot(), cfn), t)); - case 24: + case 23: return zn(db(this, (Ot(), ufn), t)); - case 25: + case 24: return zn(db(this, (Ot(), sfn), t)); - case 26: + case 25: return zn(db(this, (Ot(), ofn), t)); + case 26: + return zn(db(this, (Ot(), ffn), t)); case 27: return Xkn(t); case 30: - return oBe((Ot(), t)); + return f_e((Ot(), t)); case 31: - return oBe(t); + return f_e(t); case 32: return t == null ? null : ie(eo((d = cu(t, !0), d.length > 0 && (bn(0, d.length), d.charCodeAt(0) == 43) ? (bn(1, d.length + 1), d.substr(1)) : d), Yi, pt)); case 33: @@ -47071,32 +47161,32 @@ function WDn() { case 40: return q8n((Ot(), t)); case 42: - return fBe((Ot(), t)); + return h_e((Ot(), t)); case 43: - return fBe(t); + return h_e(t); case 44: return t == null ? null : new y1((E = cu(t, !0), E.length > 0 && (bn(0, E.length), E.charCodeAt(0) == 43) ? (bn(1, E.length + 1), E.substr(1)) : E)); case 45: - return t == null ? null : new y1((M = cu(t, !0), M.length > 0 && (bn(0, M.length), M.charCodeAt(0) == 43) ? (bn(1, M.length + 1), M.substr(1)) : M)); + return t == null ? null : new y1((T = cu(t, !0), T.length > 0 && (bn(0, T.length), T.charCodeAt(0) == 43) ? (bn(1, T.length + 1), T.substr(1)) : T)); case 46: return cu(t, !1); case 47: - return zn(db(this, (Ot(), ffn), t)); + return zn(db(this, (Ot(), hfn), t)); case 59: case 48: return H8n((Ot(), t)); case 49: - return zn(db(this, (Ot(), hfn), t)); + return zn(db(this, (Ot(), lfn), t)); case 50: - return t == null ? null : Lv(eo((D = cu(t, !0), D.length > 0 && (bn(0, D.length), D.charCodeAt(0) == 43) ? (bn(1, D.length + 1), D.substr(1)) : D), _S, 32767) << 16 >> 16); + return t == null ? null : Lv(eo((D = cu(t, !0), D.length > 0 && (bn(0, D.length), D.charCodeAt(0) == 43) ? (bn(1, D.length + 1), D.substr(1)) : D), BS, 32767) << 16 >> 16); case 51: - return t == null ? null : Lv(eo((s = cu(t, !0), s.length > 0 && (bn(0, s.length), s.charCodeAt(0) == 43) ? (bn(1, s.length + 1), s.substr(1)) : s), _S, 32767) << 16 >> 16); + return t == null ? null : Lv(eo((s = cu(t, !0), s.length > 0 && (bn(0, s.length), s.charCodeAt(0) == 43) ? (bn(1, s.length + 1), s.substr(1)) : s), BS, 32767) << 16 >> 16); case 53: - return zn(db(this, (Ot(), lfn), t)); + return zn(db(this, (Ot(), afn), t)); case 55: - return t == null ? null : Lv(eo((f = cu(t, !0), f.length > 0 && (bn(0, f.length), f.charCodeAt(0) == 43) ? (bn(1, f.length + 1), f.substr(1)) : f), _S, 32767) << 16 >> 16); + return t == null ? null : Lv(eo((f = cu(t, !0), f.length > 0 && (bn(0, f.length), f.charCodeAt(0) == 43) ? (bn(1, f.length + 1), f.substr(1)) : f), BS, 32767) << 16 >> 16); case 56: - return t == null ? null : Lv(eo((h = cu(t, !0), h.length > 0 && (bn(0, h.length), h.charCodeAt(0) == 43) ? (bn(1, h.length + 1), h.substr(1)) : h), _S, 32767) << 16 >> 16); + return t == null ? null : Lv(eo((h = cu(t, !0), h.length > 0 && (bn(0, h.length), h.charCodeAt(0) == 43) ? (bn(1, h.length + 1), h.substr(1)) : h), BS, 32767) << 16 >> 16); case 57: return t == null ? null : Lw(RT((l = cu(t, !0), l.length > 0 && (bn(0, l.length), l.charCodeAt(0) == 43) ? (bn(1, l.length + 1), l.substr(1)) : l))); case 58: @@ -47109,215 +47199,215 @@ function WDn() { throw $(new on(O5 + n.ve() + jb)); } }; - var dfn, Y0e, bfn, Z0e; - w(Si, "XMLTypeFactoryImpl", 1990), b(582, 184, { 109: 1, 94: 1, 93: 1, 158: 1, 197: 1, 57: 1, 241: 1, 114: 1, 52: 1, 100: 1, 161: 1, 184: 1, 117: 1, 118: 1, 680: 1, 2006: 1, 582: 1 }, EIe), o.N = !1, o.O = !1; - var wfn = !1; - w(Si, "XMLTypePackageImpl", 582), b(1923, 1, { 835: 1 }, W4e), o.Ik = function() { - return Gte(), Afn; - }, w(Si, "XMLTypePackageImpl/1", 1923), b(1932, 1, dt, X4e), o.dk = function(n) { + var bfn, Y0e, wfn, Z0e; + w(Si, "XMLTypeFactoryImpl", 1990), b(582, 184, { 109: 1, 94: 1, 93: 1, 158: 1, 197: 1, 57: 1, 241: 1, 114: 1, 52: 1, 100: 1, 161: 1, 184: 1, 117: 1, 118: 1, 680: 1, 2006: 1, 582: 1 }, AIe), o.N = !1, o.O = !1; + var gfn = !1; + w(Si, "XMLTypePackageImpl", 582), b(1923, 1, { 835: 1 }, X4e), o.Ik = function() { + return Gte(), xfn; + }, w(Si, "XMLTypePackageImpl/1", 1923), b(1932, 1, dt, K4e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/10", 1932), b(1933, 1, dt, K4e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/10", 1932), b(1933, 1, dt, V4e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/11", 1933), b(1934, 1, dt, V4e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/11", 1933), b(1934, 1, dt, Q4e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/12", 1934), b(1935, 1, dt, Q4e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/12", 1934), b(1935, 1, dt, Y4e), o.dk = function(n) { return rw(n); }, o.ek = function(n) { - return W(Ei, oe, 346, n, 7, 1); - }, w(Si, "XMLTypePackageImpl/13", 1935), b(1936, 1, dt, Y4e), o.dk = function(n) { + return W(Ei, fe, 346, n, 7, 1); + }, w(Si, "XMLTypePackageImpl/13", 1935), b(1936, 1, dt, Z4e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/14", 1936), b(1937, 1, dt, Z4e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/14", 1936), b(1937, 1, dt, e6e), o.dk = function(n) { return N(n, 16); }, o.ek = function(n) { return W(ro, Kw, 16, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/15", 1937), b(1938, 1, dt, e6e), o.dk = function(n) { + }, w(Si, "XMLTypePackageImpl/15", 1937), b(1938, 1, dt, n6e), o.dk = function(n) { return N(n, 16); }, o.ek = function(n) { return W(ro, Kw, 16, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/16", 1938), b(1939, 1, dt, n6e), o.dk = function(n) { + }, w(Si, "XMLTypePackageImpl/16", 1938), b(1939, 1, dt, t6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/17", 1939), b(1940, 1, dt, i6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/17", 1939), b(1940, 1, dt, r6e), o.dk = function(n) { return N(n, 164); }, o.ek = function(n) { - return W(J5, oe, 164, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/18", 1940), b(1941, 1, dt, r6e), o.dk = function(n) { + return W(J5, fe, 164, n, 0, 1); + }, w(Si, "XMLTypePackageImpl/18", 1940), b(1941, 1, dt, c6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/19", 1941), b(1924, 1, dt, c6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/19", 1941), b(1924, 1, dt, u6e), o.dk = function(n) { return N(n, 841); }, o.ek = function(n) { return W(QE, Ve, 841, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/2", 1924), b(1942, 1, dt, u6e), o.dk = function(n) { + }, w(Si, "XMLTypePackageImpl/2", 1924), b(1942, 1, dt, s6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/20", 1942), b(1943, 1, dt, s6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/20", 1942), b(1943, 1, dt, o6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/21", 1943), b(1944, 1, dt, o6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/21", 1943), b(1944, 1, dt, f6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/22", 1944), b(1945, 1, dt, f6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/22", 1944), b(1945, 1, dt, h6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/23", 1945), b(1946, 1, dt, h6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/23", 1945), b(1946, 1, dt, l6e), o.dk = function(n) { return N(n, 195); }, o.ek = function(n) { - return W(us, oe, 195, n, 0, 2); - }, w(Si, "XMLTypePackageImpl/24", 1946), b(1947, 1, dt, l6e), o.dk = function(n) { + return W(us, fe, 195, n, 0, 2); + }, w(Si, "XMLTypePackageImpl/24", 1946), b(1947, 1, dt, a6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/25", 1947), b(1948, 1, dt, a6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/25", 1947), b(1948, 1, dt, d6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/26", 1948), b(1949, 1, dt, d6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/26", 1948), b(1949, 1, dt, b6e), o.dk = function(n) { return N(n, 16); }, o.ek = function(n) { return W(ro, Kw, 16, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/27", 1949), b(1950, 1, dt, b6e), o.dk = function(n) { + }, w(Si, "XMLTypePackageImpl/27", 1949), b(1950, 1, dt, w6e), o.dk = function(n) { return N(n, 16); }, o.ek = function(n) { return W(ro, Kw, 16, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/28", 1950), b(1951, 1, dt, w6e), o.dk = function(n) { + }, w(Si, "XMLTypePackageImpl/28", 1950), b(1951, 1, dt, g6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/29", 1951), b(1925, 1, dt, g6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/29", 1951), b(1925, 1, dt, p6e), o.dk = function(n) { return N(n, 671); }, o.ek = function(n) { return W(bP, Ve, 2081, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/3", 1925), b(1952, 1, dt, p6e), o.dk = function(n) { + }, w(Si, "XMLTypePackageImpl/3", 1925), b(1952, 1, dt, m6e), o.dk = function(n) { return N(n, 15); }, o.ek = function(n) { - return W(Ii, oe, 15, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/30", 1952), b(1953, 1, dt, m6e), o.dk = function(n) { + return W(Ii, fe, 15, n, 0, 1); + }, w(Si, "XMLTypePackageImpl/30", 1952), b(1953, 1, dt, v6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/31", 1953), b(1954, 1, dt, v6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/31", 1953), b(1954, 1, dt, k6e), o.dk = function(n) { return N(n, 190); }, o.ek = function(n) { - return W(Ab, oe, 190, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/32", 1954), b(1955, 1, dt, k6e), o.dk = function(n) { + return W(Ab, fe, 190, n, 0, 1); + }, w(Si, "XMLTypePackageImpl/32", 1954), b(1955, 1, dt, y6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/33", 1955), b(1956, 1, dt, y6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/33", 1955), b(1956, 1, dt, j6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/34", 1956), b(1957, 1, dt, j6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/34", 1956), b(1957, 1, dt, E6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/35", 1957), b(1958, 1, dt, E6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/35", 1957), b(1958, 1, dt, A6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/36", 1958), b(1959, 1, dt, A6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/36", 1958), b(1959, 1, dt, x6e), o.dk = function(n) { return N(n, 16); }, o.ek = function(n) { return W(ro, Kw, 16, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/37", 1959), b(1960, 1, dt, x6e), o.dk = function(n) { + }, w(Si, "XMLTypePackageImpl/37", 1959), b(1960, 1, dt, $6e), o.dk = function(n) { return N(n, 16); }, o.ek = function(n) { return W(ro, Kw, 16, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/38", 1960), b(1961, 1, dt, $6e), o.dk = function(n) { + }, w(Si, "XMLTypePackageImpl/38", 1960), b(1961, 1, dt, M6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/39", 1961), b(1926, 1, dt, M6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/39", 1961), b(1926, 1, dt, T6e), o.dk = function(n) { return N(n, 672); }, o.ek = function(n) { return W(YE, Ve, 2082, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/4", 1926), b(1962, 1, dt, T6e), o.dk = function(n) { + }, w(Si, "XMLTypePackageImpl/4", 1926), b(1962, 1, dt, S6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/40", 1962), b(1963, 1, dt, S6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/40", 1962), b(1963, 1, dt, I6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/41", 1963), b(1964, 1, dt, I6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/41", 1963), b(1964, 1, dt, C6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/42", 1964), b(1965, 1, dt, C6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/42", 1964), b(1965, 1, dt, P6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/43", 1965), b(1966, 1, dt, P6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/43", 1965), b(1966, 1, dt, O6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/44", 1966), b(1967, 1, dt, O6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/44", 1966), b(1967, 1, dt, L6e), o.dk = function(n) { return N(n, 191); }, o.ek = function(n) { - return W(xb, oe, 191, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/45", 1967), b(1968, 1, dt, L6e), o.dk = function(n) { + return W(xb, fe, 191, n, 0, 1); + }, w(Si, "XMLTypePackageImpl/45", 1967), b(1968, 1, dt, D6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/46", 1968), b(1969, 1, dt, D6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/46", 1968), b(1969, 1, dt, N6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/47", 1969), b(1970, 1, dt, N6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/47", 1969), b(1970, 1, dt, F6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/48", 1970), b(1971, 1, dt, F6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/48", 1970), b(1971, 1, dt, R6e), o.dk = function(n) { return N(n, 191); }, o.ek = function(n) { - return W(xb, oe, 191, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/49", 1971), b(1927, 1, dt, R6e), o.dk = function(n) { + return W(xb, fe, 191, n, 0, 1); + }, w(Si, "XMLTypePackageImpl/49", 1971), b(1927, 1, dt, _6e), o.dk = function(n) { return N(n, 673); }, o.ek = function(n) { return W(V0e, Ve, 2083, n, 0, 1); }, w(Si, "XMLTypePackageImpl/5", 1927), b(1972, 1, dt, B6e), o.dk = function(n) { return N(n, 190); }, o.ek = function(n) { - return W(Ab, oe, 190, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/50", 1972), b(1973, 1, dt, _6e), o.dk = function(n) { + return W(Ab, fe, 190, n, 0, 1); + }, w(Si, "XMLTypePackageImpl/50", 1972), b(1973, 1, dt, J6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/51", 1973), b(1974, 1, dt, J6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/51", 1973), b(1974, 1, dt, G6e), o.dk = function(n) { return N(n, 15); }, o.ek = function(n) { - return W(Ii, oe, 15, n, 0, 1); - }, w(Si, "XMLTypePackageImpl/52", 1974), b(1928, 1, dt, G6e), o.dk = function(n) { + return W(Ii, fe, 15, n, 0, 1); + }, w(Si, "XMLTypePackageImpl/52", 1974), b(1928, 1, dt, H6e), o.dk = function(n) { return Hi(n); }, o.ek = function(n) { - return W(ke, oe, 2, n, 6, 1); - }, w(Si, "XMLTypePackageImpl/6", 1928), b(1929, 1, dt, H6e), o.dk = function(n) { + return W(ye, fe, 2, n, 6, 1); + }, w(Si, "XMLTypePackageImpl/6", 1928), b(1929, 1, dt, q6e), o.dk = function(n) { return N(n, 195); }, o.ek = function(n) { - return W(us, oe, 195, n, 0, 2); - }, w(Si, "XMLTypePackageImpl/7", 1929), b(1930, 1, dt, q6e), o.dk = function(n) { + return W(us, fe, 195, n, 0, 2); + }, w(Si, "XMLTypePackageImpl/7", 1929), b(1930, 1, dt, U6e), o.dk = function(n) { return iw(n); }, o.ek = function(n) { - return W(ui, oe, 473, n, 8, 1); - }, w(Si, "XMLTypePackageImpl/8", 1930), b(1931, 1, dt, U6e), o.dk = function(n) { + return W(ui, fe, 473, n, 8, 1); + }, w(Si, "XMLTypePackageImpl/8", 1930), b(1931, 1, dt, z6e), o.dk = function(n) { return N(n, 221); }, o.ek = function(n) { - return W(X3, oe, 221, n, 0, 1); + return W(X3, fe, 221, n, 0, 1); }, w(Si, "XMLTypePackageImpl/9", 1931); var Ph, h1, S8, wP, O; b(53, 63, ra, Kn), w(Va, "RegEx/ParseException", 53), b(820, 1, {}, hz), o._l = function(n) { @@ -47348,11 +47438,11 @@ function WDn() { do { if (vt(this), this.c != 0) throw $(new Kn(Yn((Un(), Ka)))); if ((c = Xd(this.a)) < 0) break; - if (i > i * 16) throw $(new Kn(Yn((Un(), jVe)))); + if (i > i * 16) throw $(new Kn(Yn((Un(), EVe)))); i = i * 16 + c; } while (!0); - if (this.a != 125) throw $(new Kn(Yn((Un(), EVe)))); - if (i > R5) throw $(new Kn(Yn((Un(), AVe)))); + if (this.a != 125) throw $(new Kn(Yn((Un(), AVe)))); + if (i > R5) throw $(new Kn(Yn((Un(), xVe)))); n = i; } else { if (c = 0, this.c != 0 || (c = Xd(this.a)) < 0) throw $(new Kn(Yn((Un(), Ka)))); @@ -47380,7 +47470,7 @@ function WDn() { case 65: case 90: case 122: - throw $(new Kn(Yn((Un(), xVe)))); + throw $(new Kn(Yn((Un(), $Ve)))); } return n; }, o.bm = function(n) { @@ -47405,7 +47495,7 @@ function WDn() { i = (this.e & 32) == 32 ? H1("IsSpace", !1) : (kt(), ube); break; default: - throw $(new fc((t = n, xQe + t.toString(16)))); + throw $(new fc((t = n, $Qe + t.toString(16)))); } return i; }, o.cm = function(n) { @@ -47437,7 +47527,7 @@ function WDn() { } else if (p == 20) { if (f = Vm(this.i, 58, this.d), f < 0) throw $(new Kn(Yn((Un(), Lue)))); - if (h = !0, or(this.i, this.d) == 94 && (++this.d, h = !1), s = Go(this.i, this.d, f), l = ILe(s, h, (this.e & 512) == 512), !l) throw $(new Kn(Yn((Un(), pVe)))); + if (h = !0, or(this.i, this.d) == 94 && (++this.d, h = !1), s = Go(this.i, this.d, f), l = CLe(s, h, (this.e & 512) == 512), !l) throw $(new Kn(Yn((Un(), mVe)))); if (Uw(d, l), r = !0, f + 1 >= this.j || or(this.i, f + 1) != 93) throw $(new Kn(Yn((Un(), Lue)))); this.d = f + 2; } @@ -47456,21 +47546,21 @@ function WDn() { var n, t, i, r; for (i = this.cm(!1); (r = this.c) != 7; ) if (n = this.a, r == 0 && (n == 45 || n == 38) || r == 4) { - if (vt(this), this.c != 9) throw $(new Kn(Yn((Un(), vVe)))); + if (vt(this), this.c != 9) throw $(new Kn(Yn((Un(), kVe)))); if (t = this.cm(!1), r == 4) Uw(i, t); else if (n == 45) I9(i, t); - else if (n == 38) ZUe(i, t); + else if (n == 38) eze(i, t); else throw $(new fc("ASSERT")); } else - throw $(new Kn(Yn((Un(), kVe)))); + throw $(new Kn(Yn((Un(), yVe)))); return vt(this), i; }, o.em = function() { var n, t; return n = this.a - 48, t = (kt(), kt(), new $D(12, null, n)), !this.g && (this.g = new EA()), jA(this.g, new Uz(n)), vt(this), t; }, o.fm = function() { - return vt(this), kt(), mfn; + return vt(this), kt(), vfn; }, o.gm = function() { - return vt(this), kt(), pfn; + return vt(this), kt(), mfn; }, o.hm = function() { throw $(new Kn(Yn((Un(), Mo)))); }, o.im = function() { @@ -47478,31 +47568,31 @@ function WDn() { }, o.jm = function() { return vt(this), m6n(); }, o.km = function() { - return vt(this), kt(), kfn; + return vt(this), kt(), yfn; }, o.lm = function() { - return vt(this), kt(), jfn; + return vt(this), kt(), Efn; }, o.mm = function() { var n; - if (this.d >= this.j || ((n = or(this.i, this.d++)) & 65504) != 64) throw $(new Kn(Yn((Un(), bVe)))); + if (this.d >= this.j || ((n = or(this.i, this.d++)) & 65504) != 64) throw $(new Kn(Yn((Un(), wVe)))); return vt(this), kt(), kt(), new fl(0, n - 64); }, o.nm = function() { return vt(this), JSn(); }, o.om = function() { - return vt(this), kt(), Efn; + return vt(this), kt(), Afn; }, o.pm = function() { var n; return n = (kt(), kt(), new fl(0, 105)), vt(this), n; }, o.qm = function() { - return vt(this), kt(), yfn; + return vt(this), kt(), jfn; }, o.rm = function() { - return vt(this), kt(), vfn; + return vt(this), kt(), kfn; }, o.sm = function(n, t) { return this.am(); }, o.tm = function() { return vt(this), kt(), ibe; }, o.um = function() { var n, t, i, r, c; - if (this.d + 1 >= this.j) throw $(new Kn(Yn((Un(), lVe)))); + if (this.d + 1 >= this.j) throw $(new Kn(Yn((Un(), aVe)))); if (r = -1, t = null, n = or(this.i, this.d), 49 <= n && n <= 57) { if (r = n - 48, !this.g && (this.g = new EA()), jA(this.g, new Uz(r)), ++this.d, or(this.i, this.d) != 41) throw $(new Kn(Yn((Un(), c0)))); ++this.d; @@ -47517,14 +47607,14 @@ function WDn() { if (this.c != 7) throw $(new Kn(Yn((Un(), c0)))); break; default: - throw $(new Kn(Yn((Un(), aVe)))); + throw $(new Kn(Yn((Un(), dVe)))); } if (vt(this), c = rb(this), i = null, c.e == 2) { - if (c.Nm() != 2) throw $(new Kn(Yn((Un(), dVe)))); + if (c.Nm() != 2) throw $(new Kn(Yn((Un(), bVe)))); i = c.Jm(1), c = c.Jm(0); } if (this.c != 7) throw $(new Kn(Yn((Un(), c0)))); - return vt(this), kt(), kt(), new yDe(r, t, c, i); + return vt(this), kt(), kt(), new jDe(r, t, c, i); }, o.vm = function() { return vt(this), kt(), rbe; }, o.wm = function() { @@ -47550,11 +47640,11 @@ function WDn() { if (this.d >= this.j) throw $(new Kn(Yn((Un(), Pue)))); } if (t == 58) { - if (++this.d, vt(this), r = oIe(rb(this), n, i), this.c != 7) throw $(new Kn(Yn((Un(), c0)))); + if (++this.d, vt(this), r = fIe(rb(this), n, i), this.c != 7) throw $(new Kn(Yn((Un(), c0)))); vt(this); } else if (t == 41) - ++this.d, vt(this), r = oIe(rb(this), n, i); - else throw $(new Kn(Yn((Un(), hVe)))); + ++this.d, vt(this), r = fIe(rb(this), n, i); + else throw $(new Kn(Yn((Un(), lVe)))); return r; }, o.Am = function() { var n; @@ -47579,14 +47669,14 @@ function WDn() { return vt(this), t = (kt(), kt(), new l6(2)), this.c == 5 ? (vt(this), Qd(t, C8), Qd(t, n)) : (Qd(t, n), Qd(t, C8)), t; }, o.Gm = function(n) { return vt(this), this.c == 5 ? (vt(this), kt(), kt(), new jw(9, n)) : (kt(), kt(), new jw(3, n)); - }, o.a = 0, o.b = 0, o.c = 0, o.d = 0, o.e = 0, o.f = 1, o.g = null, o.j = 0, w(Va, "RegEx/RegexParser", 820), b(1910, 820, {}, Tje), o._l = function(n) { + }, o.a = 0, o.b = 0, o.c = 0, o.d = 0, o.e = 0, o.f = 1, o.g = null, o.j = 0, w(Va, "RegEx/RegexParser", 820), b(1910, 820, {}, Sje), o._l = function(n) { return !1; }, o.am = function() { return vte(this); }, o.bm = function(n) { return i5(n); }, o.cm = function(n) { - return zze(this); + return Wze(this); }, o.dm = function() { throw $(new Kn(Yn((Un(), Mo)))); }, o.em = function() { @@ -47652,7 +47742,7 @@ function WDn() { return vt(this), kt(), kt(), new jw(3, n); }; var Ep = null, j4 = null; - w(Va, "RegEx/ParserForXMLSchema", 1910), b(121, 1, B5, I0), o.Hm = function(n) { + w(Va, "RegEx/ParserForXMLSchema", 1910), b(121, 1, _5, I0), o.Hm = function(n) { throw $(new fc("Not supported.")); }, o.Im = function() { return -1; @@ -47669,7 +47759,7 @@ function WDn() { }, o.Om = function(n) { return this.e == 11 ? "." : ""; }, o.e = 0; - var ebe, E4, I8, gfn, nbe, Rg = null, gP, CU = null, tbe, C8, PU = null, ibe, rbe, cbe, ube, sbe, pfn, $m, mfn, vfn, kfn, yfn, A4, jfn, Efn, eDn = w(Va, "RegEx/Token", 121); + var ebe, E4, I8, pfn, nbe, Rg = null, gP, CU = null, tbe, C8, PU = null, ibe, rbe, cbe, ube, sbe, mfn, $m, vfn, kfn, yfn, jfn, A4, Efn, Afn, eDn = w(Va, "RegEx/Token", 121); b(137, 121, { 3: 1, 137: 1, 121: 1 }, Xs), o.Om = function(n) { var t, i, r; if (this.e == 4) @@ -47679,7 +47769,7 @@ function WDn() { else if (this == $m) i = "\\s"; else { for (r = new xa(), r.a += "[", t = 0; t < this.b.length; t += 2) - (n & Ef) != 0 && t > 0 && (r.a += ","), this.b[t] === this.b[t + 1] ? Br(r, Q7(this.b[t])) : (Br(r, Q7(this.b[t])), r.a += "-", Br(r, Q7(this.b[t + 1]))); + (n & Ef) != 0 && t > 0 && (r.a += ","), this.b[t] === this.b[t + 1] ? _r(r, Q7(this.b[t])) : (_r(r, Q7(this.b[t])), r.a += "-", _r(r, Q7(this.b[t + 1]))); r.a += "]", i = r.a; } else if (this == cbe) i = "\\D"; @@ -47687,18 +47777,18 @@ function WDn() { else if (this == ube) i = "\\S"; else { for (r = new xa(), r.a += "[^", t = 0; t < this.b.length; t += 2) - (n & Ef) != 0 && t > 0 && (r.a += ","), this.b[t] === this.b[t + 1] ? Br(r, Q7(this.b[t])) : (Br(r, Q7(this.b[t])), r.a += "-", Br(r, Q7(this.b[t + 1]))); + (n & Ef) != 0 && t > 0 && (r.a += ","), this.b[t] === this.b[t + 1] ? _r(r, Q7(this.b[t])) : (_r(r, Q7(this.b[t])), r.a += "-", _r(r, Q7(this.b[t + 1]))); r.a += "]", i = r.a; } return i; - }, o.a = !1, o.c = !1, w(Va, "RegEx/RangeToken", 137), b(580, 1, { 580: 1 }, Uz), o.a = 0, w(Va, "RegEx/RegexParser/ReferencePosition", 580), b(579, 1, { 3: 1, 579: 1 }, hAe), o.Fb = function(n) { + }, o.a = !1, o.c = !1, w(Va, "RegEx/RangeToken", 137), b(580, 1, { 580: 1 }, Uz), o.a = 0, w(Va, "RegEx/RegexParser/ReferencePosition", 580), b(579, 1, { 3: 1, 579: 1 }, lAe), o.Fb = function(n) { var t; - return n == null || !N(n, 579) ? !1 : (t = u(n, 579), _e(this.b, t.b) && this.a == t.a); + return n == null || !N(n, 579) ? !1 : (t = u(n, 579), Be(this.b, t.b) && this.a == t.a); }, o.Hb = function() { return Ra(this.b + "/" + ate(this.a)); }, o.Ib = function() { return this.c.Om(this.a); - }, o.a = 0, w(Va, "RegEx/RegularExpression", 579), b(228, 121, B5, fl), o.Im = function() { + }, o.a = 0, w(Va, "RegEx/RegularExpression", 579), b(228, 121, _5, fl), o.Im = function() { return this.a; }, o.Om = function(n) { var t, i, r; @@ -47743,7 +47833,7 @@ function WDn() { r = null; } return r; - }, o.a = 0, w(Va, "RegEx/Token/CharToken", 228), b(322, 121, B5, jw), o.Jm = function(n) { + }, o.a = 0, w(Va, "RegEx/Token/CharToken", 228), b(322, 121, _5, jw), o.Jm = function(n) { return this.a; }, o.Lm = function(n) { this.b = n; @@ -47773,14 +47863,14 @@ function WDn() { t = this.a.Om(n) + "{" + this.c + ",}?"; else throw $(new fc("Token#toString(): NONGREEDYCLOSURE " + this.c + mu + this.b)); return t; - }, o.b = 0, o.c = 0, w(Va, "RegEx/Token/ClosureToken", 322), b(821, 121, B5, AV), o.Jm = function(n) { + }, o.b = 0, o.c = 0, w(Va, "RegEx/Token/ClosureToken", 322), b(821, 121, _5, AV), o.Jm = function(n) { return n == 0 ? this.a : this.b; }, o.Nm = function() { return 2; }, o.Om = function(n) { var t; return this.b.e == 3 && this.b.Jm(0) == this.a ? t = this.a.Om(n) + "+" : this.b.e == 9 && this.b.Jm(0) == this.a ? t = this.a.Om(n) + "+?" : t = this.a.Om(n) + ("" + this.b.Om(n)), t; - }, w(Va, "RegEx/Token/ConcatToken", 821), b(1908, 121, B5, yDe), o.Jm = function(n) { + }, w(Va, "RegEx/Token/ConcatToken", 821), b(1908, 121, _5, jDe), o.Jm = function(n) { if (n == 0) return this.d; if (n == 1) return this.b; throw $(new fc("Internal Error: " + n)); @@ -47789,13 +47879,13 @@ function WDn() { }, o.Om = function(n) { 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, w(Va, "RegEx/Token/ConditionToken", 1908), b(1909, 121, B5, cPe), o.Jm = function(n) { + }, o.c = 0, w(Va, "RegEx/Token/ConditionToken", 1908), b(1909, 121, _5, uPe), o.Jm = function(n) { return this.b; }, o.Nm = function() { return 1; }, o.Om = function(n) { return "(?" + (this.a == 0 ? "" : ate(this.a)) + (this.c == 0 ? "" : ate(this.c)) + ":" + this.b.Om(n) + ")"; - }, o.a = 0, o.c = 0, w(Va, "RegEx/Token/ModifierToken", 1909), b(822, 121, B5, LV), o.Jm = function(n) { + }, o.a = 0, o.c = 0, w(Va, "RegEx/Token/ModifierToken", 1909), b(822, 121, _5, LV), o.Jm = function(n) { return this.a; }, o.Nm = function() { return 1; @@ -47825,7 +47915,7 @@ function WDn() { return this.b; }, o.Om = function(n) { return this.e == 12 ? "\\" + this.a : Dxn(this.b); - }, o.a = 0, w(Va, "RegEx/Token/StringToken", 517), b(466, 121, B5, l6), o.Hm = function(n) { + }, o.a = 0, w(Va, "RegEx/Token/StringToken", 517), b(466, 121, _5, l6), o.Hm = function(n) { Qd(this, n); }, o.Jm = function(n) { return u(G0(this.a, n), 121); @@ -47838,7 +47928,7 @@ function WDn() { t = u(G0(this.a, 0), 121), i = u(G0(this.a, 1), 121), i.e == 3 && i.Jm(0) == t ? c = t.Om(n) + "+" : i.e == 9 && i.Jm(0) == t ? c = t.Om(n) + "+?" : c = t.Om(n) + ("" + i.Om(n)); else { for (s = new xa(), r = 0; r < this.a.a.c.length; r++) - Br(s, u(G0(this.a, r), 121).Om(n)); + _r(s, u(G0(this.a, r), 121).Om(n)); c = s.a; } return c; @@ -47848,22 +47938,22 @@ function WDn() { else if (this.a.a.c.length == 2 && u(G0(this.a, 0), 121).e == 7) c = u(G0(this.a, 1), 121).Om(n) + "??"; else { - for (s = new xa(), Br(s, u(G0(this.a, 0), 121).Om(n)), r = 1; r < this.a.a.c.length; r++) - s.a += "|", Br(s, u(G0(this.a, r), 121).Om(n)); + for (s = new xa(), _r(s, u(G0(this.a, 0), 121).Om(n)), r = 1; r < this.a.a.c.length; r++) + s.a += "|", _r(s, u(G0(this.a, r), 121).Om(n)); c = s.a; } return c; }, w(Va, "RegEx/Token/UnionToken", 466), b(514, 1, { 589: 1 }, z8), o.Ib = function() { return this.a.b; - }, w(SQe, "XMLTypeUtil/PatternMatcherImpl", 514), b(1673, 1488, {}, z6e); - var Afn; - w(SQe, "XMLTypeValidator", 1673), b(270, 1, ml, Sd), o.Ic = function(n) { + }, w(IQe, "XMLTypeUtil/PatternMatcherImpl", 514), b(1673, 1488, {}, W6e); + var xfn; + w(IQe, "XMLTypeValidator", 1673), b(270, 1, ml, Sd), o.Ic = function(n) { fr(this, n); }, o.Jc = function() { return (this.b - this.a) * this.c < 0 ? md : new j1(this); }, o.a = 0, o.b = 0, o.c = 0; var md; - w(Zue, "ExclusiveRange", 270), b(1054, 1, pl, W6e), o.Rb = function(n) { + w(Zue, "ExclusiveRange", 270), b(1054, 1, pl, X6e), o.Rb = function(n) { u(n, 15), x1n(); }, o.Nb = function(n) { cr(this, n); @@ -47882,7 +47972,7 @@ function WDn() { }, o.Vb = function() { return -1; }, o.Qb = function() { - throw $(new Ea(PQe)); + throw $(new Ea(OQe)); }, w(Zue, "ExclusiveRange/1", 1054), b(259, 1, pl, j1), o.Rb = function(n) { u(n, 15), $1n(); }, o.Nb = function(n) { @@ -47902,46 +47992,46 @@ function WDn() { }, o.Vb = function() { return this.b - 1; }, o.Qb = function() { - throw $(new Ea(PQe)); + throw $(new Ea(OQe)); }, o.a = 0, o.b = 0, w(Zue, "ExclusiveRange/RangeIterator", 259); - var Oo = ov(LS, "C"), Wn = ov(rk, "I"), zu = ov(D3, "Z"), Gb = ov(ck, "J"), us = ov(nk, "B"), Xi = ov(tk, "D"), Bg = ov(ik, "F"), Ap = ov(uk, "S"), nDn = Zt("org.eclipse.elk.core.labels", "ILabelManager"), obe = Zt(Er, "DiagnosticChain"), fbe = Zt(uQe, "ResourceSet"), hbe = w(Er, "InvocationTargetException", null), xfn = (SA(), zmn), $fn = $fn = x7n; - H5n(wln), c4n("permProps", [[["locale", "default"], [OQe, "gecko1_8"]], [["locale", "default"], [OQe, "safari"]]]), $fn(null, "elk", null); + var Oo = ov(LS, "C"), Wn = ov(rk, "I"), zu = ov(D3, "Z"), Gb = ov(ck, "J"), us = ov(nk, "B"), Xi = ov(tk, "D"), _g = ov(ik, "F"), Ap = ov(uk, "S"), nDn = Zt("org.eclipse.elk.core.labels", "ILabelManager"), obe = Zt(Er, "DiagnosticChain"), fbe = Zt(sQe, "ResourceSet"), hbe = w(Er, "InvocationTargetException", null), $fn = (SA(), zmn), Mfn = Mfn = x7n; + H5n(wln), c4n("permProps", [[["locale", "default"], [LQe, "gecko1_8"]], [["locale", "default"], [LQe, "safari"]]]), Mfn(null, "elk", null); }).call(this); }).call(this, typeof Ifn < "u" ? Ifn : typeof self < "u" ? self : typeof window < "u" ? window : {}); }, {}], 3: [function(C, P, L) { - function B(Fn) { + function _(Fn) { "@babel/helpers - typeof"; - return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(Tt) { + return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(Tt) { return typeof Tt; } : function(Tt) { return Tt && typeof Symbol == "function" && Tt.constructor === Symbol && Tt !== Symbol.prototype ? "symbol" : typeof Tt; - }, B(Fn); + }, _(Fn); } function m(Fn, Tt, Kt) { return Object.defineProperty(Fn, "prototype", { writable: !1 }), Fn; } - function U(Fn, Tt) { + function q(Fn, Tt) { if (!(Fn instanceof Tt)) throw new TypeError("Cannot call a class as a function"); } function Z(Fn, Tt, Kt) { - return Tt = de(Tt), fe(Fn, ye() ? Reflect.construct(Tt, Kt || [], de(Fn).constructor) : Tt.apply(Fn, Kt)); + return Tt = de(Tt), oe(Fn, ke() ? Reflect.construct(Tt, Kt || [], de(Fn).constructor) : Tt.apply(Fn, Kt)); } - function fe(Fn, Tt) { - if (Tt && (B(Tt) == "object" || typeof Tt == "function")) return Tt; + function oe(Fn, Tt) { + if (Tt && (_(Tt) == "object" || typeof Tt == "function")) return Tt; if (Tt !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); - return Y(Fn); + return Q(Fn); } - function Y(Fn) { + function Q(Fn) { if (Fn === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return Fn; } - function ye() { + function ke() { try { var Fn = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } - return (ye = function() { + return (ke = function() { return !!Fn; })(); } @@ -47959,10 +48049,10 @@ function WDn() { return Kt.__proto__ = xt, Kt; }, Ne(Fn, Tt); } - var Q = C("./elk-api.js").default, ft = /* @__PURE__ */ (function(Fn) { + var Y = C("./elk-api.js").default, ft = /* @__PURE__ */ (function(Fn) { function Tt() { var Kt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; - U(this, Tt); + q(this, Tt); var xt = Object.assign({}, Kt), Lt = !1; try { C.resolve("web-worker"), Lt = !0; @@ -47987,19 +48077,19 @@ Consider installing the package or pass your own 'workerFactory' to ELK's constr return Z(this, Tt, [xt]); } return Oe(Tt, Fn), m(Tt); - })(Q); + })(Y); Object.defineProperty(P.exports, "__esModule", { value: !0 }), P.exports = ft, ft.default = ft; }, { "./elk-api.js": 1, "./elk-worker.min.js": 2, "web-worker": 4 }], 4: [function(C, P, L) { - var B = typeof Worker < "u" ? Worker : void 0; - P.exports = B; + var _ = typeof Worker < "u" ? Worker : void 0; + P.exports = _; }, {}] }, {}, [3])(3); }); - })(dbe)), dbe.exports; + })(bbe)), bbe.exports; } -var XDn = WDn(); -const KDn = /* @__PURE__ */ zDn(XDn); +var KDn = XDn(); +const VDn = /* @__PURE__ */ WDn(KDn); var Pfn = { bg: "#FFFFFF", fg: "#27272A" @@ -48026,10 +48116,10 @@ var Pfn = { /** Key badge background opacity (ER diagrams) */ keyBadge: 10 }; -function AP(k, S) { +function AP(k, M) { const C = [ `@import url('https://fonts.googleapis.com/css2?family=${encodeURIComponent(k)}:wght@400;500;600;700&display=swap');`, - ...S ? ["@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');"] : [] + ...M ? ["@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');"] : [] ], P = ` /* Derived from --bg and --fg (overridable via --line, --accent, etc.) */ --_text: var(--fg); @@ -48049,14 +48139,14 @@ function AP(k, S) { ` ${C.join(` `)}`, ` text { font-family: '${k}', system-ui, sans-serif; }`, - ...S ? [" .mono { font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace; }"] : [], + ...M ? [" .mono { font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace; }"] : [], ` svg {${P}`, " }", "</style>" ].join(` `); } -function xP(k, S, C, P) { +function xP(k, M, C, P) { const L = [ `--bg:${C.bg}`, `--fg:${C.fg}`, @@ -48066,13 +48156,13 @@ function xP(k, S, C, P) { C.surface ? `--surface:${C.surface}` : "", C.border ? `--border:${C.border}` : "" ].filter(Boolean).join(";"); - return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${k} ${S}" width="${k}" height="${S}" style="${L}${P ? "" : ";background:var(--bg)"}">`; + return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${k} ${M}" width="${k}" height="${M}" style="${L}${P ? "" : ";background:var(--bg)"}">`; } -var VDn = /* @__PURE__ */ new Set(["i", "l", "t", "f", "j", "I", "1", "!", "|", ".", ",", ":", ";", "'"]), QDn = /* @__PURE__ */ new Set(["W", "M", "w", "m", "@", "%"]), YDn = /* @__PURE__ */ new Set(["W", "M"]), ZDn = /* @__PURE__ */ new Set(["(", ")", "[", "]", "{", "}", "/", "\\", "-", '"', "`"]); -function eNn(k) { +var QDn = /* @__PURE__ */ new Set(["i", "l", "t", "f", "j", "I", "1", "!", "|", ".", ",", ":", ";", "'"]), YDn = /* @__PURE__ */ new Set(["W", "M", "w", "m", "@", "%"]), ZDn = /* @__PURE__ */ new Set(["W", "M"]), eNn = /* @__PURE__ */ new Set(["(", ")", "[", "]", "{", "}", "/", "\\", "-", '"', "`"]); +function nNn(k) { return k >= 768 && k <= 879 || k >= 6832 && k <= 6911 || k >= 7616 && k <= 7679 || k >= 8400 && k <= 8447 || k >= 65056 && k <= 65071; } -function nNn(k) { +function tNn(k) { return k >= 4352 && k <= 4447 || // Hangul Jamo k >= 11904 && k <= 12031 || // CJK Radicals Supplement k >= 12032 && k <= 12255 || // Kangxi Radicals @@ -48091,33 +48181,33 @@ function nNn(k) { k >= 65504 && k <= 65510 || // Fullwidth symbols k >= 131072; } -var tNn = /\p{Emoji_Presentation}|\p{Extended_Pictographic}/u; -function iNn(k) { - return tNn.test(k); -} +var iNn = /\p{Emoji_Presentation}|\p{Extended_Pictographic}/u; function rNn(k) { - const S = k.codePointAt(0); - return S === void 0 || eNn(S) ? 0 : nNn(S) || iNn(k) ? 2 : k === " " ? 0.3 : YDn.has(k) ? 1.5 : QDn.has(k) ? 1.2 : VDn.has(k) ? 0.4 : ZDn.has(k) ? 0.5 : k === "r" ? 0.8 : S >= 65 && S <= 90 ? 1.2 : (S >= 48 && S <= 57, 1); + return iNn.test(k); } -function thn(k, S, C) { +function cNn(k) { + const M = k.codePointAt(0); + return M === void 0 || nNn(M) ? 0 : tNn(M) || rNn(k) ? 2 : k === " " ? 0.3 : ZDn.has(k) ? 1.5 : YDn.has(k) ? 1.2 : QDn.has(k) ? 0.4 : eNn.has(k) ? 0.5 : k === "r" ? 0.8 : M >= 65 && M <= 90 ? 1.2 : (M >= 48 && M <= 57, 1); +} +function thn(k, M, C) { const P = C >= 600 ? 0.6 : C >= 500 ? 0.57 : 0.54; let L = 0; for (const m of k) - L += rNn(m); - const B = S * 0.15; - return L * S * P + B; + L += cNn(m); + const _ = M * 0.15; + return L * M * P + _; } var ihn = 1.3; -function M4(k, S, C) { +function M4(k, M, C) { const P = k.split(` -`), L = S * ihn; - let B = 0; +`), L = M * ihn; + let _ = 0; for (const m of P) { - const U = m.replace(/<\/?(?:b|strong|i|em|u|s|del)\s*>/gi, ""), Z = thn(U, S, C); - Z > B && (B = Z); + const q = m.replace(/<\/?(?:b|strong|i|em|u|s|del)\s*>/gi, ""), Z = thn(q, M, C); + Z > _ && (_ = Z); } return { - width: B, + width: _, height: P.length * L, lines: P, lineHeight: L @@ -48132,60 +48222,60 @@ function yP(k) { return k.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"); } var Ofn = /<(\/)?(?:(b|strong)|(i|em)|(u)|(s|del))\s*>/gi; -function cNn(k) { - const S = []; - let C = !1, P = !1, L = !1, B = !1, m = 0; +function uNn(k) { + const M = []; + let C = !1, P = !1, L = !1, _ = !1, m = 0; Ofn.lastIndex = 0; - let U; - for (; (U = Ofn.exec(k)) !== null; ) { - U.index > m && S.push({ text: k.slice(m, U.index), bold: C, italic: P, underline: L, strikethrough: B }), m = U.index + U[0].length; - const Z = !!U[1]; - U[2] ? C = !Z : U[3] ? P = !Z : U[4] ? L = !Z : U[5] && (B = !Z); + let q; + for (; (q = Ofn.exec(k)) !== null; ) { + q.index > m && M.push({ text: k.slice(m, q.index), bold: C, italic: P, underline: L, strikethrough: _ }), m = q.index + q[0].length; + const Z = !!q[1]; + q[2] ? C = !Z : q[3] ? P = !Z : q[4] ? L = !Z : q[5] && (_ = !Z); } - return m < k.length && S.push({ text: k.slice(m), bold: C, italic: P, underline: L, strikethrough: B }), S; + return m < k.length && M.push({ text: k.slice(m), bold: C, italic: P, underline: L, strikethrough: _ }), M; } -var uNn = /<\/?(?:b|strong|i|em|u|s|del)\s*>/i; +var sNn = /<\/?(?:b|strong|i|em|u|s|del)\s*>/i; function Lfn(k) { - if (!uNn.test(k)) return yP(k); - const S = cNn(k); - return S.length === 0 ? "" : S.every((P) => !P.bold && !P.italic && !P.underline && !P.strikethrough) ? S.map((P) => yP(P.text)).join("") : S.map((P) => { + if (!sNn.test(k)) return yP(k); + const M = uNn(k); + return M.length === 0 ? "" : M.every((P) => !P.bold && !P.italic && !P.underline && !P.strikethrough) ? M.map((P) => yP(P.text)).join("") : M.map((P) => { const L = yP(P.text); if (!P.bold && !P.italic && !P.underline && !P.strikethrough) return L; - const B = []; - P.bold && B.push('font-weight="bold"'), P.italic && B.push('font-style="italic"'); + const _ = []; + P.bold && _.push('font-weight="bold"'), P.italic && _.push('font-style="italic"'); const m = []; - return P.underline && m.push("underline"), P.strikethrough && m.push("line-through"), m.length && B.push(`text-decoration="${m.join(" ")}"`), `<tspan ${B.join(" ")}>${L}</tspan>`; + return P.underline && m.push("underline"), P.strikethrough && m.push("line-through"), m.length && _.push(`text-decoration="${m.join(" ")}"`), `<tspan ${_.join(" ")}>${L}</tspan>`; }).join(""); } -function ya(k, S, C, P, L, B = 0.35) { +function ya(k, M, C, P, L, _ = 0.35) { const m = k.split(` `); if (m.length === 1) { - const Y = P * B; - return `<text x="${S}" y="${C}" ${L} dy="${Y}">${Lfn(k)}</text>`; + const Q = P * _; + return `<text x="${M}" y="${C}" ${L} dy="${Q}">${Lfn(k)}</text>`; } - const U = P * ihn, Z = -((m.length - 1) / 2) * U + P * B, fe = m.map((Y, ye) => `<tspan x="${S}" dy="${ye === 0 ? Z : U}">${Lfn(Y)}</tspan>`).join(""); - return `<text x="${S}" y="${C}" ${L}>${fe}</text>`; + const q = P * ihn, Z = -((m.length - 1) / 2) * q + P * _, oe = m.map((Q, ke) => `<tspan x="${M}" dy="${ke === 0 ? Z : q}">${Lfn(Q)}</tspan>`).join(""); + return `<text x="${M}" y="${C}" ${L}>${oe}</text>`; } -function sNn(k, S, C, P, L, B, m, U, Z) { - const fe = P + m * 2, Y = L + m * 2, ye = `<rect x="${S - fe / 2}" y="${C - Y / 2}" width="${fe}" height="${Y}" ${Z} />`, de = ya(k, S, C, B, U); - return `${ye} +function oNn(k, M, C, P, L, _, m, q, Z) { + const oe = P + m * 2, Q = L + m * 2, ke = `<rect x="${M - oe / 2}" y="${C - Q / 2}" width="${oe}" height="${Q}" ${Z} />`, de = ya(k, M, C, _, q); + return `${ke} ${de}`; } -function oNn(k) { - const S = k.split(` +function fNn(k) { + const M = k.split(` `).map((P) => P.trim()).filter((P) => P.length > 0 && !P.startsWith("%%")); - if (S.length === 0) + if (M.length === 0) throw new Error("Empty mermaid diagram"); - const C = S[0]; - return /^stateDiagram(-v2)?\s*$/i.test(C) ? hNn(S) : fNn(S); + const C = M[0]; + return /^stateDiagram(-v2)?\s*$/i.test(C) ? lNn(M) : hNn(M); } -function fNn(k) { - const S = k[0].match(/^(?:graph|flowchart)\s+(TD|TB|LR|BT|RL)\s*$/i); - if (!S) +function hNn(k) { + const M = k[0].match(/^(?:graph|flowchart)\s+(TD|TB|LR|BT|RL)\s*$/i); + if (!M) throw new Error(`Invalid mermaid header: "${k[0]}". Expected "graph TD", "flowchart LR", "stateDiagram-v2", etc.`); const P = { - direction: S[1].toUpperCase(), + direction: M[1].toUpperCase(), nodes: /* @__PURE__ */ new Map(), edges: [], subgraphs: [], @@ -48194,50 +48284,50 @@ function fNn(k) { nodeStyles: /* @__PURE__ */ new Map(), linkStyles: /* @__PURE__ */ new Map() }, L = []; - for (let B = 1; B < k.length; B++) { - const m = k[B], U = m.match(/^classDef\s+(\w+)\s+(.+)$/); - if (U) { - const Oe = U[1], Ne = U[2], Q = GU(Ne); - P.classDefs.set(Oe, Q); + for (let _ = 1; _ < k.length; _++) { + const m = k[_], q = m.match(/^classDef\s+(\w+)\s+(.+)$/); + if (q) { + const Oe = q[1], Ne = q[2], Y = GU(Ne); + P.classDefs.set(Oe, Y); continue; } const Z = m.match(/^class\s+([\w,-]+)\s+(\w+)$/); if (Z) { - const Oe = Z[1].split(",").map((Q) => Q.trim()), Ne = Z[2]; - for (const Q of Oe) - P.classAssignments.set(Q, Ne); + const Oe = Z[1].split(",").map((Y) => Y.trim()), Ne = Z[2]; + for (const Y of Oe) + P.classAssignments.set(Y, Ne); continue; } - const fe = m.match(/^style\s+([\w,-]+)\s+(.+)$/); - if (fe) { - const Oe = fe[1].split(",").map((Q) => Q.trim()), Ne = GU(fe[2]); - for (const Q of Oe) - P.nodeStyles.set(Q, { ...P.nodeStyles.get(Q), ...Ne }); + const oe = m.match(/^style\s+([\w,-]+)\s+(.+)$/); + if (oe) { + const Oe = oe[1].split(",").map((Y) => Y.trim()), Ne = GU(oe[2]); + for (const Y of Oe) + P.nodeStyles.set(Y, { ...P.nodeStyles.get(Y), ...Ne }); continue; } - const Y = m.match(/^linkStyle\s+(default|[\d,\s]+)\s+(.+)$/); - if (Y) { - const Oe = Y[1].trim(), Ne = GU(Y[2]); + const Q = m.match(/^linkStyle\s+(default|[\d,\s]+)\s+(.+)$/); + if (Q) { + const Oe = Q[1].trim(), Ne = GU(Q[2]); if (Oe === "default") P.linkStyles.set("default", { ...P.linkStyles.get("default"), ...Ne }); else { - const Q = Oe.split(",").map((ft) => parseInt(ft.trim(), 10)); - for (const ft of Q) + const Y = Oe.split(",").map((ft) => parseInt(ft.trim(), 10)); + for (const ft of Y) isNaN(ft) || P.linkStyles.set(ft, { ...P.linkStyles.get(ft), ...Ne }); } continue; } - const ye = m.match(/^direction\s+(TD|TB|LR|BT|RL)\s*$/i); - if (ye && L.length > 0) { - L[L.length - 1].direction = ye[1].toUpperCase(); + const ke = m.match(/^direction\s+(TD|TB|LR|BT|RL)\s*$/i); + if (ke && L.length > 0) { + L[L.length - 1].direction = ke[1].toUpperCase(); continue; } const de = m.match(/^subgraph\s+(.+)$/); if (de) { const Oe = de[1].trim(), Ne = Oe.match(/^([\w-]+)\s*\[(.+)\]$/); - let Q, ft; - Ne ? (Q = Ne[1], ft = Oh(Ne[2])) : (ft = Oh(Oe), Q = Oe.replace(/\s+/g, "_").replace(/[^\w]/g, "")); - const Fn = { id: Q, label: ft, nodeIds: [], children: [] }; + let Y, ft; + Ne ? (Y = Ne[1], ft = Oh(Ne[2])) : (ft = Oh(Oe), Y = Oe.replace(/\s+/g, "_").replace(/[^\w]/g, "")); + const Fn = { id: Y, label: ft, nodeIds: [], children: [] }; L.push(Fn); continue; } @@ -48246,12 +48336,12 @@ function fNn(k) { Oe && (L.length > 0 ? L[L.length - 1].children.push(Oe) : P.subgraphs.push(Oe)); continue; } - gNn(m, P, L); + pNn(m, P, L); } return P; } -function hNn(k) { - const S = { +function lNn(k) { + const M = { direction: "TD", nodes: /* @__PURE__ */ new Map(), edges: [], @@ -48261,49 +48351,49 @@ function hNn(k) { nodeStyles: /* @__PURE__ */ new Map(), linkStyles: /* @__PURE__ */ new Map() }, C = [], P = /* @__PURE__ */ new Set(); - let L = 0, B = 0; + let L = 0, _ = 0; for (let m = 1; m < k.length; m++) { - const U = k[m], Z = U.match(/^direction\s+(TD|TB|LR|BT|RL)\s*$/i); + const q = k[m], Z = q.match(/^direction\s+(TD|TB|LR|BT|RL)\s*$/i); if (Z) { - C.length > 0 ? C[C.length - 1].direction = Z[1].toUpperCase() : S.direction = Z[1].toUpperCase(); + C.length > 0 ? C[C.length - 1].direction = Z[1].toUpperCase() : M.direction = Z[1].toUpperCase(); continue; } - const fe = U.match(/^linkStyle\s+(default|[\d,\s]+)\s+(.+)$/); - if (fe) { - const Ne = fe[1].trim(), Q = GU(fe[2]); + const oe = q.match(/^linkStyle\s+(default|[\d,\s]+)\s+(.+)$/); + if (oe) { + const Ne = oe[1].trim(), Y = GU(oe[2]); if (Ne === "default") - S.linkStyles.set("default", { ...S.linkStyles.get("default"), ...Q }); + M.linkStyles.set("default", { ...M.linkStyles.get("default"), ...Y }); else { const ft = Ne.split(",").map((Fn) => parseInt(Fn.trim(), 10)); for (const Fn of ft) - isNaN(Fn) || S.linkStyles.set(Fn, { ...S.linkStyles.get(Fn), ...Q }); + isNaN(Fn) || M.linkStyles.set(Fn, { ...M.linkStyles.get(Fn), ...Y }); } continue; } - const Y = U.match(/^state\s+(?:"([^"]+)"\s+as\s+)?([\w\p{L}]+)\s*\{$/u); - if (Y) { - const Ne = Y[1] ?? Y[2], Q = Y[2], ft = { id: Q, label: Ne, nodeIds: [], children: [] }; - C.push(ft), P.add(Q), S.nodes.delete(Q); + const Q = q.match(/^state\s+(?:"([^"]+)"\s+as\s+)?([\w\p{L}]+)\s*\{$/u); + if (Q) { + const Ne = Q[1] ?? Q[2], Y = Q[2], ft = { id: Y, label: Ne, nodeIds: [], children: [] }; + C.push(ft), P.add(Y), M.nodes.delete(Y); continue; } - if (U === "}") { + if (q === "}") { const Ne = C.pop(); - Ne && (C.length > 0 ? C[C.length - 1].children.push(Ne) : S.subgraphs.push(Ne)); + Ne && (C.length > 0 ? C[C.length - 1].children.push(Ne) : M.subgraphs.push(Ne)); continue; } - const ye = U.match(/^state\s+"([^"]+)"\s+as\s+([\w\p{L}]+)\s*$/u); - if (ye) { - const Ne = Oh(ye[1]), Q = ye[2]; - vP(S, C, { id: Q, label: Ne, shape: "rounded" }); + const ke = q.match(/^state\s+"([^"]+)"\s+as\s+([\w\p{L}]+)\s*$/u); + if (ke) { + const Ne = Oh(ke[1]), Y = ke[2]; + vP(M, C, { id: Y, label: Ne, shape: "rounded" }); continue; } - const de = U.match(/^(\[\*\]|[\w\p{L}-]+)\s*(-->)\s*(\[\*\]|[\w\p{L}-]+)(?:\s*:\s*(.+))?$/u); + const de = q.match(/^(\[\*\]|[\w\p{L}-]+)\s*(-->)\s*(\[\*\]|[\w\p{L}-]+)(?:\s*:\s*(.+))?$/u); if (de) { - let Ne = de[1], Q = de[3]; + let Ne = de[1], Y = de[3]; const ft = de[4]?.trim(), Fn = ft ? Oh(ft) : void 0; - Ne === "[*]" ? (L++, Ne = `_start${L > 1 ? L : ""}`, vP(S, C, { id: Ne, label: "", shape: "state-start" })) : P.has(Ne) || Dfn(S, C, Ne), Q === "[*]" ? (B++, Q = `_end${B > 1 ? B : ""}`, vP(S, C, { id: Q, label: "", shape: "state-end" })) : P.has(Q) || Dfn(S, C, Q), S.edges.push({ + Ne === "[*]" ? (L++, Ne = `_start${L > 1 ? L : ""}`, vP(M, C, { id: Ne, label: "", shape: "state-start" })) : P.has(Ne) || Dfn(M, C, Ne), Y === "[*]" ? (_++, Y = `_end${_ > 1 ? _ : ""}`, vP(M, C, { id: Y, label: "", shape: "state-end" })) : P.has(Y) || Dfn(M, C, Y), M.edges.push({ source: Ne, - target: Q, + target: Y, label: Fn, style: "solid", hasArrowStart: !1, @@ -48311,41 +48401,41 @@ function hNn(k) { }); continue; } - const Oe = U.match(/^([\w\p{L}-]+)\s*:\s*(.+)$/u); + const Oe = q.match(/^([\w\p{L}-]+)\s*:\s*(.+)$/u); if (Oe) { - const Ne = Oe[1], Q = Oh(Oe[2].trim()); - vP(S, C, { id: Ne, label: Q, shape: "rounded" }); + const Ne = Oe[1], Y = Oh(Oe[2].trim()); + vP(M, C, { id: Ne, label: Y, shape: "rounded" }); continue; } } - return S; + return M; } -function vP(k, S, C) { - if (!k.nodes.has(C.id) && k.nodes.set(C.id, C), S.length > 0) { - const L = S[S.length - 1]; +function vP(k, M, C) { + if (!k.nodes.has(C.id) && k.nodes.set(C.id, C), M.length > 0) { + const L = M[M.length - 1]; L.nodeIds.includes(C.id) || L.nodeIds.push(C.id); } } -function Dfn(k, S, C) { +function Dfn(k, M, C) { if (!k.nodes.has(C)) - vP(k, S, { id: C, label: C, shape: "rounded" }); - else if (S.length > 0) { - const P = S[S.length - 1]; + vP(k, M, { id: C, label: C, shape: "rounded" }); + else if (M.length > 0) { + const P = M[M.length - 1]; P.nodeIds.includes(C) || P.nodeIds.push(C); } } function GU(k) { - const S = k.replace(/;\s*$/, ""), C = {}; - for (const P of S.split(",")) { + const M = k.replace(/;\s*$/, ""), C = {}; + for (const P of M.split(",")) { const L = P.indexOf(":"); if (L > 0) { - const B = P.slice(0, L).trim(), m = P.slice(L + 1).trim(); - B && m && (C[B] = m); + const _ = P.slice(0, L).trim(), m = P.slice(L + 1).trim(); + _ && m && (C[_] = m); } } return C; } -var lNn = /^(<)?(-->|-.->|==>|---|-\.-|===)(?:\|([^|]*)\|)?/, aNn = /^(<)?(--|-\.|==)\s+(.+?)\s+(-->|---|\.\->|-\.\-|==>|===)/, dNn = [ +var aNn = /^(<)?(-->|-.->|==>|---|-\.-|===)(?:\|([^|]*)\|)?/, dNn = /^(<)?(--|-\.|==)\s+(.+?)\s+(-->|---|\.\->|-\.\-|==>|===)/, bNn = [ // Triple delimiters (must be first) { regex: /^([\w-]+)\(\(\((.+?)\)\)\)/, shape: "doublecircle" }, // A(((text))) @@ -48376,300 +48466,300 @@ var lNn = /^(<)?(-->|-.->|==>|---|-\.-|===)(?:\|([^|]*)\|)?/, aNn = /^(<)?(--|-\ // A(text) { regex: /^([\w-]+)\{(.+?)\}/, shape: "diamond" } // A{text} -], bNn = /^([\w-]+)/, wNn = /^:::([\w][\w-]*)/; -function gNn(k, S, C) { +], wNn = /^([\w-]+)/, gNn = /^:::([\w][\w-]*)/; +function pNn(k, M, C) { let P = k.trim(); - const L = Nfn(P, S, C); + const L = Nfn(P, M, C); if (!L || L.ids.length === 0) return; P = L.remaining.trim(); - let B = L.ids; + let _ = L.ids; for (; P.length > 0; ) { - let m, U, Z, fe; - const Y = P.match(lNn); - if (Y) { - m = !!Y[1]; - const de = Y[2], Oe = Y[3]?.trim(); - fe = Oe ? Oh(Oe) : void 0, P = P.slice(Y[0].length).trim(), U = mNn(de), Z = de.endsWith(">"); + let m, q, Z, oe; + const Q = P.match(aNn); + if (Q) { + m = !!Q[1]; + const de = Q[2], Oe = Q[3]?.trim(); + oe = Oe ? Oh(Oe) : void 0, P = P.slice(Q[0].length).trim(), q = vNn(de), Z = de.endsWith(">"); } else { - const de = P.match(aNn); + const de = P.match(dNn); if (!de) break; m = !!de[1]; const Oe = de[3].trim(); - fe = Oe ? Oh(Oe) : void 0; - const Ne = de[2], Q = de[4]; - P = P.slice(de[0].length).trim(), U = vNn(Ne, Q), Z = Q.endsWith(">"); + oe = Oe ? Oh(Oe) : void 0; + const Ne = de[2], Y = de[4]; + P = P.slice(de[0].length).trim(), q = kNn(Ne, Y), Z = Y.endsWith(">"); } - const ye = Nfn(P, S, C); - if (!ye || ye.ids.length === 0) break; - P = ye.remaining.trim(); - for (const de of B) - for (const Oe of ye.ids) - S.edges.push({ + const ke = Nfn(P, M, C); + if (!ke || ke.ids.length === 0) break; + P = ke.remaining.trim(); + for (const de of _) + for (const Oe of ke.ids) + M.edges.push({ source: de, target: Oe, - label: fe, - style: U, + label: oe, + style: q, hasArrowStart: m, hasArrowEnd: Z }); - B = ye.ids; + _ = ke.ids; } } -function Nfn(k, S, C) { - const P = Ffn(k, S, C); +function Nfn(k, M, C) { + const P = Ffn(k, M, C); if (!P) return null; const L = [P.id]; - let B = P.remaining.trim(); - for (; B.startsWith("&"); ) { - B = B.slice(1).trim(); - const m = Ffn(B, S, C); + let _ = P.remaining.trim(); + for (; _.startsWith("&"); ) { + _ = _.slice(1).trim(); + const m = Ffn(_, M, C); if (!m) break; - L.push(m.id), B = m.remaining.trim(); + L.push(m.id), _ = m.remaining.trim(); } - return { ids: L, remaining: B }; + return { ids: L, remaining: _ }; } -function Ffn(k, S, C) { +function Ffn(k, M, C) { let P = null, L = k; - for (const { regex: m, shape: U } of dNn) { + for (const { regex: m, shape: q } of bNn) { const Z = k.match(m); if (Z) { P = Z[1]; - const fe = Oh(Z[2]); - Rfn(S, C, { id: P, label: fe, shape: U }), L = k.slice(Z[0].length); + const oe = Oh(Z[2]); + Rfn(M, C, { id: P, label: oe, shape: q }), L = k.slice(Z[0].length); break; } } if (P === null) { - const m = k.match(bNn); - m && (P = m[1], S.nodes.has(P) || Rfn(S, C, { id: P, label: P, shape: "rectangle" }), L = k.slice(m[0].length)); + const m = k.match(wNn); + m && (P = m[1], M.nodes.has(P) || Rfn(M, C, { id: P, label: P, shape: "rectangle" }), L = k.slice(m[0].length)); } if (P === null) return null; - const B = L.match(wNn); - return B && (S.classAssignments.set(P, B[1]), L = L.slice(B[0].length)), { id: P, remaining: L }; + const _ = L.match(gNn); + return _ && (M.classAssignments.set(P, _[1]), L = L.slice(_[0].length)), { id: P, remaining: L }; } -function Rfn(k, S, C) { - !k.nodes.has(C.id) && k.nodes.set(C.id, C), pNn(S, C.id); +function Rfn(k, M, C) { + !k.nodes.has(C.id) && k.nodes.set(C.id, C), mNn(M, C.id); } -function pNn(k, S) { +function mNn(k, M) { if (k.length > 0) { const C = k[k.length - 1]; - C.nodeIds.includes(S) || C.nodeIds.push(S); + C.nodeIds.includes(M) || C.nodeIds.push(M); } } -function mNn(k) { +function vNn(k) { return k === "-.->" || k === "-.-" ? "dotted" : k === "==>" || k === "===" ? "thick" : "solid"; } -function vNn(k, S) { - return k === "-." || S === ".->" || S === "-.-" ? "dotted" : k === "==" || S === "==>" || S === "===" ? "thick" : "solid"; +function kNn(k, M) { + return k === "-." || M === ".->" || M === "-.-" ? "dotted" : k === "==" || M === "==>" || M === "===" ? "thick" : "solid"; } -function kNn(k) { - const S = { +function yNn(k) { + const M = { actors: [], messages: [], blocks: [], notes: [] }, C = /* @__PURE__ */ new Set(), P = []; for (let L = 1; L < k.length; L++) { - const B = k[L], m = B.match(/^(participant|actor)\s+(\S+?)(?:\s+as\s+(.+))?$/); + const _ = k[L], m = _.match(/^(participant|actor)\s+(\S+?)(?:\s+as\s+(.+))?$/); if (m) { - const de = m[1], Oe = m[2], Ne = m[3]?.trim() ?? Oe, Q = Oh(Ne); - C.has(Oe) || (C.add(Oe), S.actors.push({ id: Oe, label: Q, type: de })); + const de = m[1], Oe = m[2], Ne = m[3]?.trim() ?? Oe, Y = Oh(Ne); + C.has(Oe) || (C.add(Oe), M.actors.push({ id: Oe, label: Y, type: de })); continue; } - const U = B.match(/^Note\s+(left of|right of|over)\s+([^:]+):\s*(.+)$/i); - if (U) { - const de = U[1].toLowerCase(), Oe = U[2].trim(), Ne = Oh(U[3].trim()), Q = Oe.split(",").map((Fn) => Fn.trim()); - for (const Fn of Q) - pP(S, C, Fn); + const q = _.match(/^Note\s+(left of|right of|over)\s+([^:]+):\s*(.+)$/i); + if (q) { + const de = q[1].toLowerCase(), Oe = q[2].trim(), Ne = Oh(q[3].trim()), Y = Oe.split(",").map((Fn) => Fn.trim()); + for (const Fn of Y) + pP(M, C, Fn); let ft = "over"; - de === "left of" ? ft = "left" : de === "right of" && (ft = "right"), S.notes.push({ - actorIds: Q, + de === "left of" ? ft = "left" : de === "right of" && (ft = "right"), M.notes.push({ + actorIds: Y, text: Ne, position: ft, - afterIndex: S.messages.length - 1 + afterIndex: M.messages.length - 1 }); continue; } - const Z = B.match(/^(loop|alt|opt|par|critical|break|rect)\s*(.*)$/); + const Z = _.match(/^(loop|alt|opt|par|critical|break|rect)\s*(.*)$/); if (Z) { const de = Z[1], Oe = Z[2]?.trim() ?? "", Ne = Oh(Oe); P.push({ type: de, label: Ne, - startIndex: S.messages.length, + startIndex: M.messages.length, dividers: [] }); continue; } - const fe = B.match(/^(else|and)\s*(.*)$/); - if (fe && P.length > 0) { - const de = fe[2]?.trim() ?? "", Oe = Oh(de); + const oe = _.match(/^(else|and)\s*(.*)$/); + if (oe && P.length > 0) { + const de = oe[2]?.trim() ?? "", Oe = Oh(de); P[P.length - 1].dividers.push({ - index: S.messages.length, + index: M.messages.length, label: Oe }); continue; } - if (B === "end" && P.length > 0) { + if (_ === "end" && P.length > 0) { const de = P.pop(); - S.blocks.push({ + M.blocks.push({ type: de.type, label: de.label, startIndex: de.startIndex, - endIndex: Math.max(S.messages.length - 1, de.startIndex), + endIndex: Math.max(M.messages.length - 1, de.startIndex), dividers: de.dividers }); continue; } - const Y = B.match( + const Q = _.match( /^(\S+?)\s*(--?>?>|--?[)x]|--?>>|--?>)\s*([+-]?)(\S+?)\s*:\s*(.+)$/ ); - if (Y) { - const de = Y[1], Oe = Y[2], Ne = Y[3], Q = Y[4], ft = Oh(Y[5].trim()); - pP(S, C, de), pP(S, C, Q); + if (Q) { + const de = Q[1], Oe = Q[2], Ne = Q[3], Y = Q[4], ft = Oh(Q[5].trim()); + pP(M, C, de), pP(M, C, Y); const Fn = Oe.startsWith("--") ? "dashed" : "solid", Tt = Oe.includes(">>") || Oe.includes("x") ? "filled" : "open", Kt = { from: de, - to: Q, + to: Y, label: ft, lineStyle: Fn, arrowHead: Tt }; - Ne === "+" && (Kt.activate = !0), Ne === "-" && (Kt.deactivate = !0), S.messages.push(Kt); + Ne === "+" && (Kt.activate = !0), Ne === "-" && (Kt.deactivate = !0), M.messages.push(Kt); continue; } - const ye = B.match( + const ke = _.match( /^(\S+?)\s*(->>|-->>|-\)|--\)|-x|--x|->|-->)\s*([+-]?)(\S+?)\s*:\s*(.+)$/ ); - if (ye) { - const de = ye[1], Oe = ye[2], Ne = ye[3], Q = ye[4], ft = Oh(ye[5].trim()); - pP(S, C, de), pP(S, C, Q); - const Fn = Oe.startsWith("--") ? "dashed" : "solid", Tt = Oe.includes(">>") || Oe.includes("x") ? "filled" : "open", Kt = { from: de, to: Q, label: ft, lineStyle: Fn, arrowHead: Tt }; - Ne === "+" && (Kt.activate = !0), Ne === "-" && (Kt.deactivate = !0), S.messages.push(Kt); + if (ke) { + const de = ke[1], Oe = ke[2], Ne = ke[3], Y = ke[4], ft = Oh(ke[5].trim()); + pP(M, C, de), pP(M, C, Y); + const Fn = Oe.startsWith("--") ? "dashed" : "solid", Tt = Oe.includes(">>") || Oe.includes("x") ? "filled" : "open", Kt = { from: de, to: Y, label: ft, lineStyle: Fn, arrowHead: Tt }; + Ne === "+" && (Kt.activate = !0), Ne === "-" && (Kt.deactivate = !0), M.messages.push(Kt); continue; } } - return S; + return M; } -function pP(k, S, C) { - S.has(C) || (S.add(C), k.actors.push({ id: C, label: C, type: "participant" })); +function pP(k, M, C) { + M.has(C) || (M.add(C), k.actors.push({ id: C, label: C, type: "participant" })); } -function yNn(k) { - const S = { +function jNn(k) { + const M = { classes: [], relationships: [], namespaces: [] }, C = /* @__PURE__ */ new Map(); - let P = null, L = null, B = 0; + let P = null, L = null, _ = 0; for (let m = 1; m < k.length; m++) { - const U = k[m]; - if (L && B > 0) { - if (U === "}") { - B--, B === 0 && (L = null); + const q = k[m]; + if (L && _ > 0) { + if (q === "}") { + _--, _ === 0 && (L = null); continue; } - const Ne = U.match(/^<<(\w+)>>$/); + const Ne = q.match(/^<<(\w+)>>$/); if (Ne) { L.annotation = Ne[1]; continue; } - const Q = Bfn(U); - Q && (Q.isMethod ? L.methods.push(Q.member) : L.attributes.push(Q.member)); + const Y = _fn(q); + Y && (Y.isMethod ? L.methods.push(Y.member) : L.attributes.push(Y.member)); continue; } - const Z = U.match(/^namespace\s+(\S+)\s*\{$/); + const Z = q.match(/^namespace\s+(\S+)\s*\{$/); if (Z) { P = { name: Z[1], classIds: [] }; continue; } - if (U === "}" && P) { - S.namespaces.push(P), P = null; + if (q === "}" && P) { + M.namespaces.push(P), P = null; continue; } - const fe = U.match(/^class\s+(\S+?)(?:\s*~(\w+)~)?\s*\{$/); - if (fe) { - const Ne = fe[1], Q = fe[2], ft = nA(C, Ne); - Q && (ft.label = `${Ne}<${Q}>`), L = ft, B = 1, P && P.classIds.push(Ne); + const oe = q.match(/^class\s+(\S+?)(?:\s*~(\w+)~)?\s*\{$/); + if (oe) { + const Ne = oe[1], Y = oe[2], ft = nA(C, Ne); + Y && (ft.label = `${Ne}<${Y}>`), L = ft, _ = 1, P && P.classIds.push(Ne); continue; } - const Y = U.match(/^class\s+(\S+?)(?:\s*~(\w+)~)?\s*$/); - if (Y) { - const Ne = Y[1], Q = Y[2], ft = nA(C, Ne); - Q && (ft.label = `${Ne}<${Q}>`), P && P.classIds.push(Ne); + const Q = q.match(/^class\s+(\S+?)(?:\s*~(\w+)~)?\s*$/); + if (Q) { + const Ne = Q[1], Y = Q[2], ft = nA(C, Ne); + Y && (ft.label = `${Ne}<${Y}>`), P && P.classIds.push(Ne); continue; } - const ye = U.match(/^class\s+(\S+?)\s*\{\s*<<(\w+)>>\s*\}$/); - if (ye) { - const Ne = nA(C, ye[1]); - Ne.annotation = ye[2]; + const ke = q.match(/^class\s+(\S+?)\s*\{\s*<<(\w+)>>\s*\}$/); + if (ke) { + const Ne = nA(C, ke[1]); + Ne.annotation = ke[2]; continue; } - const de = U.match(/^(\S+?)\s*:\s*(.+)$/); + const de = q.match(/^(\S+?)\s*:\s*(.+)$/); if (de) { const Ne = de[2]; if (!Ne.match(/<\|--|--|\*--|o--|-->|\.\.>|\.\.\|>/)) { - const Q = nA(C, de[1]), ft = Bfn(Ne); - ft && (ft.isMethod ? Q.methods.push(ft.member) : Q.attributes.push(ft.member)); + const Y = nA(C, de[1]), ft = _fn(Ne); + ft && (ft.isMethod ? Y.methods.push(ft.member) : Y.attributes.push(ft.member)); continue; } } - const Oe = jNn(U); + const Oe = ENn(q); if (Oe) { - nA(C, Oe.from), nA(C, Oe.to), S.relationships.push(Oe); + nA(C, Oe.from), nA(C, Oe.to), M.relationships.push(Oe); continue; } } - return S.classes = [...C.values()], S; + return M.classes = [...C.values()], M; } -function nA(k, S) { - let C = k.get(S); - return C || (C = { id: S, label: S, attributes: [], methods: [] }, k.set(S, C)), C; +function nA(k, M) { + let C = k.get(M); + return C || (C = { id: M, label: M, attributes: [], methods: [] }, k.set(M, C)), C; } -function Bfn(k) { - const S = k.trim().replace(/;$/, ""); - if (!S) return null; - let C = "", P = S; +function _fn(k) { + const M = k.trim().replace(/;$/, ""); + if (!M) return null; + let C = "", P = M; /^[+\-#~]/.test(P) && (C = P[0], P = P.slice(1).trim()); const L = P.match(/^(.+?)\(([^)]*)\)(?:\s*(.+))?$/); if (L) { - const Y = L[1].trim(), ye = L[2]?.trim() || void 0, de = L[3]?.trim(), Oe = Y.endsWith("$") || P.includes("$"), Ne = Y.endsWith("*") || P.includes("*"); + const Q = L[1].trim(), ke = L[2]?.trim() || void 0, de = L[3]?.trim(), Oe = Q.endsWith("$") || P.includes("$"), Ne = Q.endsWith("*") || P.includes("*"); return { member: { visibility: C, - name: Y.replace(/[$*]$/, ""), + name: Q.replace(/[$*]$/, ""), type: de || void 0, isStatic: Oe, isAbstract: Ne, isMethod: !0, - params: ye + params: ke }, isMethod: !0 }; } - const B = P.split(/\s+/); - let m, U; - B.length >= 2 ? (U = B[0], m = B.slice(1).join(" ")) : m = B[0] ?? P; - const Z = m.endsWith("$"), fe = m.endsWith("*"); + const _ = P.split(/\s+/); + let m, q; + _.length >= 2 ? (q = _[0], m = _.slice(1).join(" ")) : m = _[0] ?? P; + const Z = m.endsWith("$"), oe = m.endsWith("*"); return { member: { visibility: C, name: m.replace(/[$*]$/, ""), - type: U || void 0, + type: q || void 0, isStatic: Z, - isAbstract: fe, + isAbstract: oe, isMethod: !1 }, isMethod: !1 }; } -function jNn(k) { - const S = k.match( +function ENn(k) { + const M = k.match( /^(\S+?)\s+(?:"([^"]*?)"\s+)?(<\|--|<\|\.\.|\*--|o--|-->|--\*|--o|--\|>|\.\.>|\.\.\|>|<--|<\.\.?|--)\s+(?:"([^"]*?)"\s+)?(\S+?)(?:\s*:\s*(.+))?$/ ); - if (!S) return null; - const C = S[1], P = S[2], L = P ? Oh(P) : void 0, B = S[3].trim(), m = S[4], U = m ? Oh(m) : void 0, Z = S[5], fe = S[6]?.trim(), Y = fe ? Oh(fe) : void 0, ye = ENn(B); - return ye ? { from: C, to: Z, type: ye.type, markerAt: ye.markerAt, label: Y, fromCardinality: L, toCardinality: U } : null; + if (!M) return null; + const C = M[1], P = M[2], L = P ? Oh(P) : void 0, _ = M[3].trim(), m = M[4], q = m ? Oh(m) : void 0, Z = M[5], oe = M[6]?.trim(), Q = oe ? Oh(oe) : void 0, ke = ANn(_); + return ke ? { from: C, to: Z, type: ke.type, markerAt: ke.markerAt, label: Q, fromCardinality: L, toCardinality: q } : null; } -function ENn(k) { +function ANn(k) { switch (k.trim()) { case "<|--": return { type: "inheritance", markerAt: "from" }; @@ -48701,98 +48791,98 @@ function ENn(k) { return null; } } -function ANn(k) { - const S = { +function xNn(k) { + const M = { entities: [], relationships: [] }, C = /* @__PURE__ */ new Map(); let P = null; for (let L = 1; L < k.length; L++) { - const B = k[L]; + const _ = k[L]; if (P) { - if (B === "}") { + if (_ === "}") { P = null; continue; } - const Z = xNn(B); + const Z = $Nn(_); Z && P.attributes.push(Z); continue; } - const m = B.match(/^(\S+)\s*\{$/); + const m = _.match(/^(\S+)\s*\{$/); if (m) { const Z = m[1]; - P = bbe(C, Z); + P = wbe(C, Z); continue; } - const U = $Nn(B); - if (U) { - bbe(C, U.entity1), bbe(C, U.entity2), S.relationships.push(U); + const q = MNn(_); + if (q) { + wbe(C, q.entity1), wbe(C, q.entity2), M.relationships.push(q); continue; } } - return S.entities = [...C.values()], S; + return M.entities = [...C.values()], M; } -function bbe(k, S) { - let C = k.get(S); - return C || (C = { id: S, label: S, attributes: [] }, k.set(S, C)), C; +function wbe(k, M) { + let C = k.get(M); + return C || (C = { id: M, label: M, attributes: [] }, k.set(M, C)), C; } -function xNn(k) { - const S = k.match(/^(\S+)\s+(\S+)(?:\s+(.+))?$/); - if (!S) return null; - const C = S[1], P = S[2], L = S[3]?.trim() ?? "", B = []; +function $Nn(k) { + const M = k.match(/^(\S+)\s+(\S+)(?:\s+(.+))?$/); + if (!M) return null; + const C = M[1], P = M[2], L = M[3]?.trim() ?? "", _ = []; let m; - const U = L.match(/"([^"]*)"/); - U && (m = Oh(U[1])); + const q = L.match(/"([^"]*)"/); + q && (m = Oh(q[1])); const Z = L.replace(/"[^"]*"/, "").trim(); - for (const fe of Z.split(/\s+/)) { - const Y = fe.toUpperCase(); - (Y === "PK" || Y === "FK" || Y === "UK") && B.push(Y); + for (const oe of Z.split(/\s+/)) { + const Q = oe.toUpperCase(); + (Q === "PK" || Q === "FK" || Q === "UK") && _.push(Q); } - return { type: C, name: P, keys: B, comment: m }; + return { type: C, name: P, keys: _, comment: m }; } -function $Nn(k) { - const S = k.match(/^(\S+)\s+([|o}{]+(?:--|\.\.)[|o}{]+)\s+(\S+)\s*:\s*(.+)$/); - if (!S) return null; - const C = S[1], P = S[2], L = S[3], B = S[4].trim().replace(/^["']|["']$/g, ""), m = Oh(B), U = P.match(/^([|o}{]+)(--|\.\.?)([|o}{]+)$/); - if (!U) return null; - const Z = U[1], fe = U[2], Y = U[3], ye = _fn(Z), de = _fn(Y), Oe = fe === "--"; - return !ye || !de ? null : { entity1: C, entity2: L, cardinality1: ye, cardinality2: de, label: m, identifying: Oe }; +function MNn(k) { + const M = k.match(/^(\S+)\s+([|o}{]+(?:--|\.\.)[|o}{]+)\s+(\S+)\s*:\s*(.+)$/); + if (!M) return null; + const C = M[1], P = M[2], L = M[3], _ = M[4].trim().replace(/^["']|["']$/g, ""), m = Oh(_), q = P.match(/^([|o}{]+)(--|\.\.?)([|o}{]+)$/); + if (!q) return null; + const Z = q[1], oe = q[2], Q = q[3], ke = Bfn(Z), de = Bfn(Q), Oe = oe === "--"; + return !ke || !de ? null : { entity1: C, entity2: L, cardinality1: ke, cardinality2: de, label: m, identifying: Oe }; } -function _fn(k) { - const S = k.split("").sort().join(""); - return S === "||" ? "one" : S === "o|" ? "zero-one" : S === "|}" || S === "{|" ? "many" : S === "{o" || S === "o{" ? "zero-many" : null; +function Bfn(k) { + const M = k.split("").sort().join(""); + return M === "||" ? "one" : M === "o|" ? "zero-one" : M === "|}" || M === "{|" ? "many" : M === "{o" || M === "o{" ? "zero-many" : null; } -function MNn(k) { - const S = {}, C = {}, P = []; - let L, B = !1; +function TNn(k) { + const M = {}, C = {}, P = []; + let L, _ = !1; for (const m of k) { if (/^xychart(-beta)?\b/i.test(m)) { - /\bhorizontal\b/i.test(m) && (B = !0); + /\bhorizontal\b/i.test(m) && (_ = !0); continue; } - const U = m.match(/^title\s+"([^"]+)"/); - if (U) { - L = U[1]; + const q = m.match(/^title\s+"([^"]+)"/); + if (q) { + L = q[1]; continue; } const Z = m.match(/^x-axis\s+(?:"([^"]*)"\s*)?\[([^\]]+)\]/); if (Z) { - Z[1] && (S.title = Z[1]), S.categories = Z[2].split(",").map((Ne) => Ne.trim()); + Z[1] && (M.title = Z[1]), M.categories = Z[2].split(",").map((Ne) => Ne.trim()); continue; } - const fe = m.match(/^x-axis\s+(?:"([^"]*)"\s+)?(-?\d+(?:\.\d+)?)\s*-->\s*(-?\d+(?:\.\d+)?)/); - if (fe) { - fe[1] && (S.title = fe[1]), S.range = { min: parseFloat(fe[2]), max: parseFloat(fe[3]) }; + const oe = m.match(/^x-axis\s+(?:"([^"]*)"\s+)?(-?\d+(?:\.\d+)?)\s*-->\s*(-?\d+(?:\.\d+)?)/); + if (oe) { + oe[1] && (M.title = oe[1]), M.range = { min: parseFloat(oe[2]), max: parseFloat(oe[3]) }; continue; } - const Y = m.match(/^y-axis\s+(?:"([^"]*)"\s+)?(-?\d+(?:\.\d+)?)\s*-->\s*(-?\d+(?:\.\d+)?)/); - if (Y) { - Y[1] && (C.title = Y[1]), C.range = { min: parseFloat(Y[2]), max: parseFloat(Y[3]) }; + const Q = m.match(/^y-axis\s+(?:"([^"]*)"\s+)?(-?\d+(?:\.\d+)?)\s*-->\s*(-?\d+(?:\.\d+)?)/); + if (Q) { + Q[1] && (C.title = Q[1]), C.range = { min: parseFloat(Q[2]), max: parseFloat(Q[3]) }; continue; } - const ye = m.match(/^y-axis\s+"([^"]+)"\s*$/); - if (ye) { - C.title = ye[1]; + const ke = m.match(/^y-axis\s+"([^"]+)"\s*$/); + if (ke) { + C.title = ke[1]; continue; } const de = m.match(/^bar\s+\[([^\]]+)\]/); @@ -48807,47 +48897,47 @@ function MNn(k) { } } if (!C.range && P.length > 0) { - const m = P.flatMap((Y) => Y.data); - let U = Math.min(...m), Z = Math.max(...m); - const fe = Z - U || 1; - U = U - fe * 0.1, Z = Z + fe * 0.1, U > 0 && U < fe * 0.5 && (U = 0), C.range = { min: U, max: Z }; + const m = P.flatMap((Q) => Q.data); + let q = Math.min(...m), Z = Math.max(...m); + const oe = Z - q || 1; + q = q - oe * 0.1, Z = Z + oe * 0.1, q > 0 && q < oe * 0.5 && (q = 0), C.range = { min: q, max: Z }; } - return C.range || (C.range = { min: 0, max: 100 }), { title: L, horizontal: B, xAxis: S, yAxis: C, series: P }; + return C.range || (C.range = { min: 0, max: 100 }), { title: L, horizontal: _, xAxis: M, yAxis: C, series: P }; } function Jfn(k) { - return k.split(",").map((S) => parseFloat(S.trim())); + return k.split(",").map((M) => parseFloat(M.trim())); } -var vbe = "#3b82f6"; +var kbe = "#3b82f6"; function rhn(k) { - const S = k.replace("#", ""), C = parseInt(S.substring(0, 2), 16) / 255, P = parseInt(S.substring(2, 4), 16) / 255, L = parseInt(S.substring(4, 6), 16) / 255, B = Math.max(C, P, L), m = Math.min(C, P, L), U = (B + m) / 2; - if (B === m) return [0, 0, U * 100]; - const Z = B - m, fe = U > 0.5 ? Z / (2 - B - m) : Z / (B + m); - let Y; - return B === C ? Y = ((P - L) / Z + (P < L ? 6 : 0)) / 6 : B === P ? Y = ((L - C) / Z + 2) / 6 : Y = ((C - P) / Z + 4) / 6, [Y * 360, fe * 100, U * 100]; + const M = k.replace("#", ""), C = parseInt(M.substring(0, 2), 16) / 255, P = parseInt(M.substring(2, 4), 16) / 255, L = parseInt(M.substring(4, 6), 16) / 255, _ = Math.max(C, P, L), m = Math.min(C, P, L), q = (_ + m) / 2; + if (_ === m) return [0, 0, q * 100]; + const Z = _ - m, oe = q > 0.5 ? Z / (2 - _ - m) : Z / (_ + m); + let Q; + return _ === C ? Q = ((P - L) / Z + (P < L ? 6 : 0)) / 6 : _ === P ? Q = ((L - C) / Z + 2) / 6 : Q = ((C - P) / Z + 4) / 6, [Q * 360, oe * 100, q * 100]; } -function TNn(k, S, C) { - const P = S / 100, L = C / 100, B = (1 - Math.abs(2 * L - 1)) * P, m = B * (1 - Math.abs(k / 60 % 2 - 1)), U = L - B / 2; - let Z, fe, Y; - k < 60 ? (Z = B, fe = m, Y = 0) : k < 120 ? (Z = m, fe = B, Y = 0) : k < 180 ? (Z = 0, fe = B, Y = m) : k < 240 ? (Z = 0, fe = m, Y = B) : k < 300 ? (Z = m, fe = 0, Y = B) : (Z = B, fe = 0, Y = m); - const ye = (de) => Math.round((de + U) * 255).toString(16).padStart(2, "0"); - return `#${ye(Z)}${ye(fe)}${ye(Y)}`; +function SNn(k, M, C) { + const P = M / 100, L = C / 100, _ = (1 - Math.abs(2 * L - 1)) * P, m = _ * (1 - Math.abs(k / 60 % 2 - 1)), q = L - _ / 2; + let Z, oe, Q; + k < 60 ? (Z = _, oe = m, Q = 0) : k < 120 ? (Z = m, oe = _, Q = 0) : k < 180 ? (Z = 0, oe = _, Q = m) : k < 240 ? (Z = 0, oe = m, Q = _) : k < 300 ? (Z = m, oe = 0, Q = _) : (Z = _, oe = 0, Q = m); + const ke = (de) => Math.round((de + q) * 255).toString(16).padStart(2, "0"); + return `#${ke(Z)}${ke(oe)}${ke(Q)}`; } function Gfn(k) { return /^#[0-9a-fA-F]{6}$/.test(k); } -function SNn(k) { +function INn(k) { return rhn(k)[2] < 50; } -function INn(k, S, C) { - if (k === 0) return S; - const P = Gfn(S) ? S : vbe, L = C && Gfn(C) ? C : void 0, [B, m] = rhn(P), U = Math.max(55, Math.min(85, m)), Z = Math.ceil(k / 2), fe = k % 2 === 1, Y = L && SNn(L) ? !fe : fe, ye = Y ? Math.max(25, 48 - Z * 13) : Math.min(78, 55 + Z * 11), de = (Y ? -8 : 12) * Z, Oe = ((B + de) % 360 + 360) % 360; - return TNn(Oe, U, ye); +function CNn(k, M, C) { + if (k === 0) return M; + const P = Gfn(M) ? M : kbe, L = C && Gfn(C) ? C : void 0, [_, m] = rhn(P), q = Math.max(55, Math.min(85, m)), Z = Math.ceil(k / 2), oe = k % 2 === 1, Q = L && INn(L) ? !oe : oe, ke = Q ? Math.max(25, 48 - Z * 13) : Math.min(78, 55 + Z * 11), de = (Q ? -8 : 12) * Z, Oe = ((_ + de) % 360 + 360) % 360; + return SNn(Oe, q, ke); } -function ka(k, S, C) { - return thn(k, S, C); +function ka(k, M, C) { + return thn(k, M, C); } -function chn(k, S) { - return k.length * S * 0.6; +function chn(k, M) { + return k.length * M * 0.6; } var Zi = { /** Node label text */ @@ -48875,65 +48965,65 @@ var Zi = { }, va = "0.35em", N8 = { width: 8, height: 5 -}, wbe = null, kP = null; -function CNn() { - if (wbe) return; - const k = [], S = globalThis.setTimeout; - globalThis.setTimeout = (B, m) => m === 0 ? (k.push(B), 0) : S(B, m); +}, gbe = null, kP = null; +function PNn() { + if (gbe) return; + const k = [], M = globalThis.setTimeout; + globalThis.setTimeout = (_, m) => m === 0 ? (k.push(_), 0) : M(_, m); const C = globalThis, P = "self" in C, L = C.self; - P && typeof C.document > "u" && delete C.self, wbe = new KDn(), P && (C.self = L), globalThis.setTimeout = S, k.forEach((B) => B()), kP = wbe.worker.worker; + P && typeof C.document > "u" && delete C.self, gbe = new VDn(), P && (C.self = L), globalThis.setTimeout = M, k.forEach((_) => _()), kP = gbe.worker.worker; } -function jbe(k) { - CNn(); - let S, C; +function Ebe(k) { + PNn(); + let M, C; const P = kP.onmessage; if (kP.onmessage = (L) => { - L.data.error ? C = L.data.error : S = L.data.data; + L.data.error ? C = L.data.error : M = L.data.data; }, kP.dispatcher.saveDispatch({ data: { id: 0, cmd: "layout", graph: k } }), kP.onmessage = P, C) throw C; - if (!S) throw new Error("ELK layout did not return synchronously"); - return S; + if (!M) throw new Error("ELK layout did not return synchronously"); + return M; } -function Hfn(k, S, C) { - if (k.length < 2 || S.shape === "rectangle" || S.shape === "rounded" || S.shape === "stadium") +function Hfn(k, M, C) { + if (k.length < 2 || M.shape === "rectangle" || M.shape === "rounded" || M.shape === "stadium") return k; const P = [...k]; - if (S.shape === "diamond") + if (M.shape === "diamond") if (C) - P[0] = qfn(k[0], k[1], S); + P[0] = qfn(k[0], k[1], M); else { const L = k.length - 1; - P[L] = qfn(k[L], k[L - 1], S); + P[L] = qfn(k[L], k[L - 1], M); } return P; } -function qfn(k, S, C) { +function qfn(k, M, C) { const P = C.x + C.width / 2, L = C.y + C.height / 2; C.width / 2, C.height / 2; - const B = { x: P, y: C.y }, m = { x: C.x + C.width, y: L }, U = { x: P, y: C.y + C.height }, Z = { x: C.x, y: L }, fe = k.x - S.x, Y = k.y - S.y; - if (Math.abs(fe) < Math.abs(Y)) { + const _ = { x: P, y: C.y }, m = { x: C.x + C.width, y: L }, q = { x: P, y: C.y + C.height }, Z = { x: C.x, y: L }, oe = k.x - M.x, Q = k.y - M.y; + if (Math.abs(oe) < Math.abs(Q)) { const de = k.x; - return Y > 0 ? de <= P ? BU(de, Z, B) ?? B : BU(de, B, m) ?? B : de <= P ? BU(de, U, Z) ?? U : BU(de, m, U) ?? U; + return Q > 0 ? de <= P ? _U(de, Z, _) ?? _ : _U(de, _, m) ?? _ : de <= P ? _U(de, q, Z) ?? q : _U(de, m, q) ?? q; } else { const de = k.y; - return fe > 0 ? de <= L ? RU(de, B, Z) ?? Z : RU(de, Z, U) ?? Z : de <= L ? RU(de, B, m) ?? m : RU(de, m, U) ?? m; + return oe > 0 ? de <= L ? RU(de, _, Z) ?? Z : RU(de, Z, q) ?? Z : de <= L ? RU(de, _, m) ?? m : RU(de, m, q) ?? m; } } -function RU(k, S, C) { - const P = C.y - S.y; +function RU(k, M, C) { + const P = C.y - M.y; if (Math.abs(P) < 1e-3) return null; - const L = (k - S.y) / P; - return L < 0 || L > 1 ? null : { x: S.x + L * (C.x - S.x), y: k }; + const L = (k - M.y) / P; + return L < 0 || L > 1 ? null : { x: M.x + L * (C.x - M.x), y: k }; } -function BU(k, S, C) { - const P = C.x - S.x; +function _U(k, M, C) { + const P = C.x - M.x; if (Math.abs(P) < 1e-3) return null; - const L = (k - S.x) / P; + const L = (k - M.x) / P; if (L < 0 || L > 1) return null; - const B = S.y + L * (C.y - S.y); - return { x: k, y: B }; + const _ = M.y + L * (C.y - M.y); + return { x: k, y: _ }; } var EP = { font: "Inter", @@ -48957,41 +49047,41 @@ function uhn(k) { return "DOWN"; } } -function shn(k, S, C) { - const P = M4(S, Zi.nodeLabel, Cu.nodeLabel); - let L = P.width + mP.horizontal * 2, B = P.height + mP.vertical * 2; +function shn(k, M, C) { + const P = M4(M, Zi.nodeLabel, Cu.nodeLabel); + let L = P.width + mP.horizontal * 2, _ = P.height + mP.vertical * 2; if (C === "diamond") { - const m = Math.max(L, B) + mP.diamondExtra; - L = m, B = m; + const m = Math.max(L, _) + mP.diamondExtra; + L = m, _ = m; } if (C === "circle" || C === "doublecircle") { - const m = Math.ceil(Math.sqrt(L * L + B * B)) + 8; - L = C === "doublecircle" ? m + 12 : m, B = L; + const m = Math.ceil(Math.sqrt(L * L + _ * _)) + 8; + L = C === "doublecircle" ? m + 12 : m, _ = L; } - return C === "hexagon" && (L += mP.horizontal), (C === "trapezoid" || C === "trapezoid-alt") && (L += mP.horizontal), C === "asymmetric" && (L += 12), C === "cylinder" && (B += 14), C === "state-start" || C === "state-end" ? { width: 28, height: 28 } : (L = Math.max(L, 60), B = Math.max(B, 36), { width: L, height: B }); + return C === "hexagon" && (L += mP.horizontal), (C === "trapezoid" || C === "trapezoid-alt") && (L += mP.horizontal), C === "asymmetric" && (L += 12), C === "cylinder" && (_ += 14), C === "state-start" || C === "state-end" ? { width: 28, height: 28 } : (L = Math.max(L, 60), _ = Math.max(_, 36), { width: L, height: _ }); } -function PNn(k, S) { +function ONn(k, M) { const C = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set(); - for (const Y of k.subgraphs) - P.add(Y.id), fhn(Y, C, P); - const L = ONn(k.subgraphs), B = /* @__PURE__ */ new Map(); - B.set(null, []); + for (const Q of k.subgraphs) + P.add(Q.id), fhn(Q, C, P); + const L = LNn(k.subgraphs), _ = /* @__PURE__ */ new Map(); + _.set(null, []); const m = []; - for (let Y = 0; Y < k.edges.length; Y++) { - const ye = k.edges[Y], de = L.get(ye.source), Oe = L.get(ye.target); - de && de === Oe ? (B.has(de) || B.set(de, []), B.get(de).push({ index: Y, edge: ye })) : !de && !Oe ? B.get(null).push({ index: Y, edge: ye }) : m.push({ index: Y, edge: ye, sourceSubgraph: de, targetSubgraph: Oe }); + for (let Q = 0; Q < k.edges.length; Q++) { + const ke = k.edges[Q], de = L.get(ke.source), Oe = L.get(ke.target); + de && de === Oe ? (_.has(de) || _.set(de, []), _.get(de).push({ index: Q, edge: ke })) : !de && !Oe ? _.get(null).push({ index: Q, edge: ke }) : m.push({ index: Q, edge: ke, sourceSubgraph: de, targetSubgraph: Oe }); } - const U = k.subgraphs.some((Y) => Y.direction !== void 0), Z = { + const q = k.subgraphs.some((Q) => Q.direction !== void 0), Z = { id: "root", layoutOptions: { "elk.algorithm": "layered", "elk.direction": uhn(k.direction), - "elk.spacing.nodeNode": String(S.nodeSpacing), - "elk.layered.spacing.nodeNodeBetweenLayers": String(S.layerSpacing), + "elk.spacing.nodeNode": String(M.nodeSpacing), + "elk.layered.spacing.nodeNodeBetweenLayers": String(M.layerSpacing), "elk.spacing.edgeEdge": "12", "elk.layered.spacing.edgeEdgeBetweenLayers": "12", "elk.layered.spacing.edgeNodeBetweenLayers": "12", - "elk.padding": `[top=${S.padding},left=${S.padding},bottom=${S.padding},right=${S.padding}]`, + "elk.padding": `[top=${M.padding},left=${M.padding},bottom=${M.padding},right=${M.padding}]`, "elk.edgeRouting": "ORTHOGONAL", "elk.layered.nodePlacement.bk.fixedAlignment": "BALANCED", "elk.contentAlignment": "H_CENTER V_CENTER", @@ -49003,54 +49093,54 @@ function PNn(k, S) { "elk.layered.wrapping.strategy": "OFF", // Use SEPARATE when subgraphs have direction overrides (enables proper direction handling) // Use INCLUDE_CHILDREN otherwise (simpler cross-hierarchy edge routing) - "elk.hierarchyHandling": U ? "SEPARATE" : "INCLUDE_CHILDREN" + "elk.hierarchyHandling": q ? "SEPARATE" : "INCLUDE_CHILDREN" }, children: [], edges: [] - }, fe = /* @__PURE__ */ new Map(); - if (U) - for (const { index: Y, edge: ye, sourceSubgraph: de, targetSubgraph: Oe } of m) { + }, oe = /* @__PURE__ */ new Map(); + if (q) + for (const { index: Q, edge: ke, sourceSubgraph: de, targetSubgraph: Oe } of m) { if (de) { - const Ne = `${de}_out_${Y}`; - fe.has(de) || fe.set(de, []), fe.get(de).push({ + const Ne = `${de}_out_${Q}`; + oe.has(de) || oe.set(de, []), oe.get(de).push({ portId: Ne, - edgeIndex: Y, + edgeIndex: Q, direction: "outgoing", - internalNodeId: ye.source + internalNodeId: ke.source }); } if (Oe) { - const Ne = `${Oe}_in_${Y}`; - fe.has(Oe) || fe.set(Oe, []), fe.get(Oe).push({ + const Ne = `${Oe}_in_${Q}`; + oe.has(Oe) || oe.set(Oe, []), oe.get(Oe).push({ portId: Ne, - edgeIndex: Y, + edgeIndex: Q, direction: "incoming", - internalNodeId: ye.target + internalNodeId: ke.target }); } } - for (const [Y, ye] of k.nodes) - if (!C.has(Y) && !P.has(Y)) { - const de = shn(Y, ye.label, ye.shape); + for (const [Q, ke] of k.nodes) + if (!C.has(Q) && !P.has(Q)) { + const de = shn(Q, ke.label, ke.shape); Z.children.push({ - id: Y, + id: Q, width: de.width, height: de.height, - labels: [{ text: ye.label }] + labels: [{ text: ke.label }] }); } - for (const Y of k.subgraphs) - Z.children.push(ohn(Y, k, S, B, fe)); - for (const { index: Y, edge: ye } of B.get(null)) { + for (const Q of k.subgraphs) + Z.children.push(ohn(Q, k, M, _, oe)); + for (const { index: Q, edge: ke } of _.get(null)) { const de = { - id: `e${Y}`, - sources: [ye.source], - targets: [ye.target] + id: `e${Q}`, + sources: [ke.source], + targets: [ke.target] }; - if (ye.label) { - const Oe = M4(ye.label, Zi.edgeLabel, Cu.edgeLabel); + if (ke.label) { + const Oe = M4(ke.label, Zi.edgeLabel, Cu.edgeLabel); de.labels = [{ - text: ye.label, + text: ke.label, width: Oe.width + 8, height: Oe.height + 6, layoutOptions: { @@ -49061,18 +49151,18 @@ function PNn(k, S) { } Z.edges.push(de); } - for (const { index: Y, edge: ye, sourceSubgraph: de, targetSubgraph: Oe } of m) { + for (const { index: Q, edge: ke, sourceSubgraph: de, targetSubgraph: Oe } of m) { const Ne = { - id: `e${Y}`, - sources: U && de ? [`${de}_out_${Y}`] : [ye.source], - targets: U && Oe ? [`${Oe}_in_${Y}`] : [ye.target] + id: `e${Q}`, + sources: q && de ? [`${de}_out_${Q}`] : [ke.source], + targets: q && Oe ? [`${Oe}_in_${Q}`] : [ke.target] }; - if (ye.label) { - const Q = M4(ye.label, Zi.edgeLabel, Cu.edgeLabel); + if (ke.label) { + const Y = M4(ke.label, Zi.edgeLabel, Cu.edgeLabel); Ne.labels = [{ - text: ye.label, - width: Q.width + 8, - height: Q.height + 6, + text: ke.label, + width: Y.width + 8, + height: Y.height + 6, layoutOptions: { "elk.edgeLabels.inline": "true", "elk.edgeLabels.placement": "CENTER" @@ -49083,8 +49173,8 @@ function PNn(k, S) { } return Z; } -function ohn(k, S, C, P, L) { - const B = { +function ohn(k, M, C, P, L) { + const _ = { "elk.algorithm": "layered", "elk.padding": "[top=44,left=16,bottom=16,right=16]", // Top = headerHeight(28) + gap(16) to match bottom padding @@ -49097,43 +49187,43 @@ function ohn(k, S, C, P, L) { "elk.layered.spacing.nodeNodeBetweenLayers": String(C.layerSpacing), "elk.spacing.nodeNode": String(C.nodeSpacing) }; - k.direction && (B["elk.direction"] = uhn(k.direction)); + k.direction && (_["elk.direction"] = uhn(k.direction)); const m = { id: k.id, - layoutOptions: B, + layoutOptions: _, labels: k.label ? [{ text: k.label }] : void 0, children: [], edges: [] - }, U = L.get(k.id) ?? []; - U.length > 0 && (m.ports = U.map((fe) => ({ - id: fe.portId + }, q = L.get(k.id) ?? []; + q.length > 0 && (m.ports = q.map((oe) => ({ + id: oe.portId // Port side is determined by ELK based on edge direction }))); - for (const fe of k.nodeIds) { - const Y = S.nodes.get(fe); - if (Y) { - const ye = shn(fe, Y.label, Y.shape); + for (const oe of k.nodeIds) { + const Q = M.nodes.get(oe); + if (Q) { + const ke = shn(oe, Q.label, Q.shape); m.children.push({ - id: fe, - width: ye.width, - height: ye.height, - labels: [{ text: Y.label }] + id: oe, + width: ke.width, + height: ke.height, + labels: [{ text: Q.label }] }); } } - for (const fe of k.children) - m.children.push(ohn(fe, S, C, P, L)); + for (const oe of k.children) + m.children.push(ohn(oe, M, C, P, L)); const Z = P.get(k.id) ?? []; - for (const { index: fe, edge: Y } of Z) { - const ye = { - id: `e${fe}`, - sources: [Y.source], - targets: [Y.target] + for (const { index: oe, edge: Q } of Z) { + const ke = { + id: `e${oe}`, + sources: [Q.source], + targets: [Q.target] }; - if (Y.label) { - const de = M4(Y.label, Zi.edgeLabel, Cu.edgeLabel); - ye.labels = [{ - text: Y.label, + if (Q.label) { + const de = M4(Q.label, Zi.edgeLabel, Cu.edgeLabel); + ke.labels = [{ + text: Q.label, width: de.width + 8, height: de.height + 6, layoutOptions: { @@ -49142,326 +49232,326 @@ function ohn(k, S, C, P, L) { } }]; } - m.edges.push(ye); + m.edges.push(ke); } - for (const fe of U) { - const Y = `e${fe.edgeIndex}_internal`, ye = fe.direction === "incoming" ? { id: Y, sources: [fe.portId], targets: [fe.internalNodeId] } : { id: Y, sources: [fe.internalNodeId], targets: [fe.portId] }; - m.edges.push(ye); + for (const oe of q) { + const Q = `e${oe.edgeIndex}_internal`, ke = oe.direction === "incoming" ? { id: Q, sources: [oe.portId], targets: [oe.internalNodeId] } : { id: Q, sources: [oe.internalNodeId], targets: [oe.portId] }; + m.edges.push(ke); } return m; } -function fhn(k, S, C) { +function fhn(k, M, C) { for (const P of k.nodeIds) - S.add(P); + M.add(P); for (const P of k.children) - C.add(P.id), fhn(P, S, C); + C.add(P.id), fhn(P, M, C); } -function ONn(k) { - const S = /* @__PURE__ */ new Map(); +function LNn(k) { + const M = /* @__PURE__ */ new Map(); function C(P) { for (const L of P.nodeIds) - S.set(L, P.id); + M.set(L, P.id); for (const L of P.children) C(L); } for (const P of k) C(P); - return S; + return M; } function hhn(k) { - const S = []; + const M = []; for (const C of k) - S.push({ x: C.x, y: C.y, right: C.x + C.width, bottom: C.y + C.height }), S.push(...hhn(C.children)); - return S; + M.push({ x: C.x, y: C.y, right: C.x + C.width, bottom: C.y + C.height }), M.push(...hhn(C.children)); + return M; } -function LNn(k, S, C = !1) { - const P = [], L = [], B = [], m = /* @__PURE__ */ new Set(); - for (const Ne of S.subgraphs) +function DNn(k, M, C = !1) { + const P = [], L = [], _ = [], m = /* @__PURE__ */ new Set(); + for (const Ne of M.subgraphs) dhn(Ne, m); - kbe(k, S, m, P, B, 0, 0); - const U = hhn(B), Z = U.length > 0 ? { - leftX: Math.min(...U.map((Ne) => Ne.x)) - 20, - rightX: Math.max(...U.map((Ne) => Ne.right)) + 20 + ybe(k, M, m, P, _, 0, 0); + const q = hhn(_), Z = q.length > 0 ? { + leftX: Math.min(...q.map((Ne) => Ne.x)) - 20, + rightX: Math.max(...q.map((Ne) => Ne.right)) + 20 } : void 0; - DNn(k, S, L, 0, 0, Z), BNn(P, L, S.direction), C && _Nn(L, P, B, S.direction); - const fe = new Map(P.map((Ne) => [Ne.id, Ne])); + NNn(k, M, L, 0, 0, Z), BNn(P, L, M.direction), C && JNn(L, P, _, M.direction); + const oe = new Map(P.map((Ne) => [Ne.id, Ne])); for (const Ne of L) { - const Q = fe.get(Ne.source), ft = fe.get(Ne.target); - Q && (Ne.points = Hfn(Ne.points, Q, !0)), ft && (Ne.points = Hfn(Ne.points, ft, !1)); + const Y = oe.get(Ne.source), ft = oe.get(Ne.target); + Y && (Ne.points = Hfn(Ne.points, Y, !0)), ft && (Ne.points = Hfn(Ne.points, ft, !1)); } - let Y = k.width ?? 800, ye = k.height ?? 600; + let Q = k.width ?? 800, ke = k.height ?? 600; const de = N8.width, Oe = EP.padding; for (const Ne of L) { - for (const Q of Ne.points) - Y = Math.max(Y, Q.x + de + Oe), ye = Math.max(ye, Q.y + de + Oe); - Ne.labelPosition && (Y = Math.max(Y, Ne.labelPosition.x + 60 + Oe), ye = Math.max(ye, Ne.labelPosition.y + 20 + Oe)); + for (const Y of Ne.points) + Q = Math.max(Q, Y.x + de + Oe), ke = Math.max(ke, Y.y + de + Oe); + Ne.labelPosition && (Q = Math.max(Q, Ne.labelPosition.x + 60 + Oe), ke = Math.max(ke, Ne.labelPosition.y + 20 + Oe)); } return { - width: Y, - height: ye, + width: Q, + height: ke, nodes: P, edges: L, - groups: B + groups: _ }; } -function kbe(k, S, C, P, L, B, m) { +function ybe(k, M, C, P, L, _, m) { if (k.children) - for (const U of k.children) { - const Z = (U.x ?? 0) + B, fe = (U.y ?? 0) + m, Y = U.width ?? 0, ye = U.height ?? 0; - if (C.has(U.id)) { + for (const q of k.children) { + const Z = (q.x ?? 0) + _, oe = (q.y ?? 0) + m, Q = q.width ?? 0, ke = q.height ?? 0; + if (C.has(q.id)) { const de = []; - kbe(U, S, C, P, de, Z, fe); - const Oe = ahn(S.subgraphs, U.id); + ybe(q, M, C, P, de, Z, oe); + const Oe = ahn(M.subgraphs, q.id); L.push({ - id: U.id, + id: q.id, label: Oe?.label ?? "", x: Z, - y: fe, - width: Y, - height: ye, + y: oe, + width: Q, + height: ke, children: de }); } else { - const de = S.nodes.get(U.id); + const de = M.nodes.get(q.id); if (de) { - const Oe = FNn(U.id, S); + const Oe = RNn(q.id, M); P.push({ - id: U.id, + id: q.id, label: de.label, shape: de.shape, x: Z, - y: fe, - width: Y, - height: ye, + y: oe, + width: Q, + height: ke, inlineStyle: Oe }); } - U.children && U.children.length > 0 && kbe(U, S, C, P, L, Z, fe); + q.children && q.children.length > 0 && ybe(q, M, C, P, L, Z, oe); } } } function Ufn(k) { if (k.length === 0) return { x: 0, y: 0 }; if (k.length === 1) return k[0]; - let S = 0; + let M = 0; for (let P = 1; P < k.length; P++) { - const L = k[P].x - k[P - 1].x, B = k[P].y - k[P - 1].y; - S += Math.sqrt(L * L + B * B); + const L = k[P].x - k[P - 1].x, _ = k[P].y - k[P - 1].y; + M += Math.sqrt(L * L + _ * _); } - let C = S / 2; + let C = M / 2; for (let P = 1; P < k.length; P++) { - const L = k[P].x - k[P - 1].x, B = k[P].y - k[P - 1].y, m = Math.sqrt(L * L + B * B); + const L = k[P].x - k[P - 1].x, _ = k[P].y - k[P - 1].y, m = Math.sqrt(L * L + _ * _); if (C <= m) { - const U = C / m; + const q = C / m; return { - x: k[P - 1].x + U * L, - y: k[P - 1].y + U * B + x: k[P - 1].x + q * L, + y: k[P - 1].y + q * _ }; } C -= m; } return k[k.length - 1]; } -function DNn(k, S, C, P, L, B) { +function NNn(k, M, C, P, L, _) { const m = /* @__PURE__ */ new Map(); lhn(k, m, 0, 0); - let U = 0; - for (const [Z, fe] of m) { - const Y = S.edges[Z]; - if (!Y) continue; - const ye = []; - fe.outgoing && fe.outgoing.points.length > 0 && ye.push(...fe.outgoing.points), fe.external && fe.external.points.length > 0 && (ye.length > 0 ? ye.push(...fe.external.points.slice(1)) : ye.push(...fe.external.points)), fe.incoming && fe.incoming.points.length > 0 && (ye.length > 0 ? ye.push(...fe.incoming.points.slice(1)) : ye.push(...fe.incoming.points)); + let q = 0; + for (const [Z, oe] of m) { + const Q = M.edges[Z]; + if (!Q) continue; + const ke = []; + oe.outgoing && oe.outgoing.points.length > 0 && ke.push(...oe.outgoing.points), oe.external && oe.external.points.length > 0 && (ke.length > 0 ? ke.push(...oe.external.points.slice(1)) : ke.push(...oe.external.points)), oe.incoming && oe.incoming.points.length > 0 && (ke.length > 0 ? ke.push(...oe.incoming.points.slice(1)) : ke.push(...oe.incoming.points)); let de; - Y.label && ye.length >= 2 && (de = fe.external?.labelPosition ?? Ufn(ye)); - const Oe = NNn(ye, B, U); - Oe !== ye && U++, Y.label && Oe !== ye && Oe.length >= 2 && (de = Ufn(Oe)), C.push({ - source: Y.source, - target: Y.target, - label: Y.label, - style: Y.style, - hasArrowStart: Y.hasArrowStart, - hasArrowEnd: Y.hasArrowEnd, + Q.label && ke.length >= 2 && (de = oe.external?.labelPosition ?? Ufn(ke)); + const Oe = FNn(ke, _, q); + Oe !== ke && q++, Q.label && Oe !== ke && Oe.length >= 2 && (de = Ufn(Oe)), C.push({ + source: Q.source, + target: Q.target, + label: Q.label, + style: Q.style, + hasArrowStart: Q.hasArrowStart, + hasArrowEnd: Q.hasArrowEnd, points: Oe, labelPosition: de, - inlineStyle: RNn(Z, S) + inlineStyle: _Nn(Z, M) }); } } -function NNn(k, S, C = 0) { +function FNn(k, M, C = 0) { if (k.length < 2) return k; let P = !1; for (let m = 1; m < k.length; m++) { - const U = Math.abs(k[m].x - k[m - 1].x), Z = Math.abs(k[m].y - k[m - 1].y); - if (U > 1 && Z > 1) { + const q = Math.abs(k[m].x - k[m - 1].x), Z = Math.abs(k[m].y - k[m - 1].y); + if (q > 1 && Z > 1) { P = !0; break; } } if (!P) return k; - const L = 12, B = [k[0]]; + const L = 12, _ = [k[0]]; for (let m = 1; m < k.length; m++) { - const U = B[B.length - 1], Z = k[m], fe = Math.abs(Z.x - U.x), Y = Math.abs(Z.y - U.y); - if (fe > 1 && Y > 1) - if (S) { - const ye = C % 2 === 0, de = Math.floor(C / 2) * L, Oe = ye ? S.rightX + de : S.leftX - de; - B.push({ x: Oe, y: U.y }), B.push({ x: Oe, y: Z.y }); + const q = _[_.length - 1], Z = k[m], oe = Math.abs(Z.x - q.x), Q = Math.abs(Z.y - q.y); + if (oe > 1 && Q > 1) + if (M) { + const ke = C % 2 === 0, de = Math.floor(C / 2) * L, Oe = ke ? M.rightX + de : M.leftX - de; + _.push({ x: Oe, y: q.y }), _.push({ x: Oe, y: Z.y }); } else { - const ye = (U.y + Z.y) / 2; - B.push({ x: U.x, y: ye }), B.push({ x: Z.x, y: ye }); + const ke = (q.y + Z.y) / 2; + _.push({ x: q.x, y: ke }), _.push({ x: Z.x, y: ke }); } - B.push(Z); + _.push(Z); } - return B; + return _; } -function lhn(k, S, C, P) { +function lhn(k, M, C, P) { if (k.edges) for (const L of k.edges) { - const B = L.id.endsWith("_internal"), m = parseInt(L.id.substring(1), 10); + const _ = L.id.endsWith("_internal"), m = parseInt(L.id.substring(1), 10); if (isNaN(m)) continue; - const U = []; + const q = []; if (L.sections && L.sections.length > 0) { - const Y = L.sections[0]; - if (U.push({ - x: Y.startPoint.x + C, - y: Y.startPoint.y + P - }), Y.bendPoints) - for (const ye of Y.bendPoints) - U.push({ x: ye.x + C, y: ye.y + P }); - U.push({ - x: Y.endPoint.x + C, - y: Y.endPoint.y + P + const Q = L.sections[0]; + if (q.push({ + x: Q.startPoint.x + C, + y: Q.startPoint.y + P + }), Q.bendPoints) + for (const ke of Q.bendPoints) + q.push({ x: ke.x + C, y: ke.y + P }); + q.push({ + x: Q.endPoint.x + C, + y: Q.endPoint.y + P }); } let Z; if (L.labels && L.labels.length > 0) { - const Y = L.labels[0]; - Y.x != null && Y.y != null && (Z = { - x: Y.x + (Y.width ?? 0) / 2 + C, - y: Y.y + (Y.height ?? 0) / 2 + P + const Q = L.labels[0]; + Q.x != null && Q.y != null && (Z = { + x: Q.x + (Q.width ?? 0) / 2 + C, + y: Q.y + (Q.height ?? 0) / 2 + P }); } - S.has(m) || S.set(m, {}); - const fe = S.get(m); - if (B) { - const Y = L.sources?.[0] ?? "", ye = L.targets?.[0] ?? "", de = Y.includes("_in_") || Y.includes("_out_"), Oe = ye.includes("_in_") || ye.includes("_out_"); - de ? fe.incoming = { edgeIndex: m, isInternal: B, points: U, labelPosition: Z } : Oe && (fe.outgoing = { edgeIndex: m, isInternal: B, points: U, labelPosition: Z }); + M.has(m) || M.set(m, {}); + const oe = M.get(m); + if (_) { + const Q = L.sources?.[0] ?? "", ke = L.targets?.[0] ?? "", de = Q.includes("_in_") || Q.includes("_out_"), Oe = ke.includes("_in_") || ke.includes("_out_"); + de ? oe.incoming = { edgeIndex: m, isInternal: _, points: q, labelPosition: Z } : Oe && (oe.outgoing = { edgeIndex: m, isInternal: _, points: q, labelPosition: Z }); } else - fe.external = { edgeIndex: m, isInternal: B, points: U, labelPosition: Z }; + oe.external = { edgeIndex: m, isInternal: _, points: q, labelPosition: Z }; } if (k.children) for (const L of k.children) - lhn(L, S, C + (L.x ?? 0), P + (L.y ?? 0)); + lhn(L, M, C + (L.x ?? 0), P + (L.y ?? 0)); } -function ahn(k, S) { +function ahn(k, M) { for (const C of k) { - if (C.id === S) return C; - const P = ahn(C.children, S); + if (C.id === M) return C; + const P = ahn(C.children, M); if (P) return P; } } -function dhn(k, S) { - S.add(k.id); +function dhn(k, M) { + M.add(k.id); for (const C of k.children) - dhn(C, S); + dhn(C, M); } -function FNn(k, S) { +function RNn(k, M) { let C; - const P = S.classAssignments.get(k); + const P = M.classAssignments.get(k); if (P) { - const B = S.classDefs.get(P); - B && (C = { ...B }); + const _ = M.classDefs.get(P); + _ && (C = { ..._ }); } - const L = S.nodeStyles.get(k); + const L = M.nodeStyles.get(k); return L && (C = C ? { ...C, ...L } : { ...L }), C; } -function RNn(k, S) { +function _Nn(k, M) { let C; - const P = S.linkStyles.get("default"); + const P = M.linkStyles.get("default"); P && (C = { ...P }); - const L = S.linkStyles.get(k); + const L = M.linkStyles.get(k); return L && (C = C ? { ...C, ...L } : { ...L }), C; } -function BNn(k, S, C) { +function BNn(k, M, C) { if (k.length === 0) return; const P = C === "LR" || C === "RL", L = /* @__PURE__ */ new Set(); - for (const Y of S) - L.add(`${Y.source}:${Y.target}`), L.add(`${Y.target}:${Y.source}`); - const B = EP.layerSpacing * 0.6, m = [...k].sort( - (Y, ye) => P ? Y.x - ye.x : Y.y - ye.y - ), U = []; + for (const Q of M) + L.add(`${Q.source}:${Q.target}`), L.add(`${Q.target}:${Q.source}`); + const _ = EP.layerSpacing * 0.6, m = [...k].sort( + (Q, ke) => P ? Q.x - ke.x : Q.y - ke.y + ), q = []; let Z = [m[0]]; - for (let Y = 1; Y < m.length; Y++) { - const ye = P ? m[Y].x : m[Y].y, de = P ? m[Y - 1].x : m[Y - 1].y, Oe = ye - de, Ne = Z.some( - (Q) => L.has(`${Q.id}:${m[Y].id}`) + for (let Q = 1; Q < m.length; Q++) { + const ke = P ? m[Q].x : m[Q].y, de = P ? m[Q - 1].x : m[Q - 1].y, Oe = ke - de, Ne = Z.some( + (Y) => L.has(`${Y.id}:${m[Q].id}`) ); - Oe <= B && !Ne ? Z.push(m[Y]) : (U.push(Z), Z = [m[Y]]); + Oe <= _ && !Ne ? Z.push(m[Q]) : (q.push(Z), Z = [m[Q]]); } - U.push(Z); - const fe = /* @__PURE__ */ new Map(); - for (const Y of U) { - if (Y.length <= 1) continue; - const ye = Y.map((Q) => P ? Q.x : Q.y), de = Math.min(...ye), Oe = Math.max(...ye); + q.push(Z); + const oe = /* @__PURE__ */ new Map(); + for (const Q of q) { + if (Q.length <= 1) continue; + const ke = Q.map((Y) => P ? Y.x : Y.y), de = Math.min(...ke), Oe = Math.max(...ke); if (Oe - de <= 1) continue; const Ne = (de + Oe) / 2; - for (const Q of Y) { - const ft = P ? Q.x : Q.y, Fn = Ne - ft; - Math.abs(Fn) > 0.5 && (P ? Q.x = Ne : Q.y = Ne, fe.set(Q.id, Fn)); + for (const Y of Q) { + const ft = P ? Y.x : Y.y, Fn = Ne - ft; + Math.abs(Fn) > 0.5 && (P ? Y.x = Ne : Y.y = Ne, oe.set(Y.id, Fn)); } } - if (fe.size !== 0) { - new Map(k.map((Y) => [Y.id, Y])); - for (const Y of S) { - if (Y.points.length < 2) continue; - const ye = fe.get(Y.source), de = fe.get(Y.target); - if (ye != null) { - const Oe = Y.points[0]; - P ? (Oe.x += ye, Y.points.length > 1 && Y.points[1].x === Oe.x - ye && (Y.points[1].x += ye)) : (Oe.y += ye, Y.points.length > 1 && Y.points[1].y === Oe.y - ye && (Y.points[1].y += ye)); + if (oe.size !== 0) { + new Map(k.map((Q) => [Q.id, Q])); + for (const Q of M) { + if (Q.points.length < 2) continue; + const ke = oe.get(Q.source), de = oe.get(Q.target); + if (ke != null) { + const Oe = Q.points[0]; + P ? (Oe.x += ke, Q.points.length > 1 && Q.points[1].x === Oe.x - ke && (Q.points[1].x += ke)) : (Oe.y += ke, Q.points.length > 1 && Q.points[1].y === Oe.y - ke && (Q.points[1].y += ke)); } if (de != null) { - const Oe = Y.points[Y.points.length - 1]; + const Oe = Q.points[Q.points.length - 1]; if (P) { - if (Oe.x += de, Y.points.length > 1) { - const Ne = Y.points[Y.points.length - 2]; + if (Oe.x += de, Q.points.length > 1) { + const Ne = Q.points[Q.points.length - 2]; Ne.x === Oe.x - de && (Ne.x += de); } - } else if (Oe.y += de, Y.points.length > 1) { - const Ne = Y.points[Y.points.length - 2]; + } else if (Oe.y += de, Q.points.length > 1) { + const Ne = Q.points[Q.points.length - 2]; Ne.y === Oe.y - de && (Ne.y += de); } } } } } -function ybe(k, S, C) { +function jbe(k, M, C) { const P = []; for (const L of C) - k >= L.x && k <= L.x + L.width && S >= L.y && S <= L.y + L.height && (P.push(L), P.push(...ybe(k, S, L.children))); + k >= L.x && k <= L.x + L.width && M >= L.y && M <= L.y + L.height && (P.push(L), P.push(...jbe(k, M, L.children))); return P; } -function _U(k, S, C, P, L) { - const m = L === "LR", U = L === "RL", Z = L === "BT", fe = m || U, Y = new Set(ybe(S, C, P).map((Q) => Q.id)), Ne = ybe(fe ? k : S, fe ? C : k, P).find((Q) => !Y.has(Q.id)); - return Ne ? m ? Ne.x - 12 : U ? Ne.x + Ne.width + 12 : Z ? Ne.y + Ne.height + 12 : Ne.y - 12 : k; +function BU(k, M, C, P, L) { + const m = L === "LR", q = L === "RL", Z = L === "BT", oe = m || q, Q = new Set(jbe(M, C, P).map((Y) => Y.id)), Ne = jbe(oe ? k : M, oe ? C : k, P).find((Y) => !Q.has(Y.id)); + return Ne ? m ? Ne.x - 12 : q ? Ne.x + Ne.width + 12 : Z ? Ne.y + Ne.height + 12 : Ne.y - 12 : k; } -function _Nn(k, S, C, P) { - const L = new Map(S.map((de) => [de.id, de])), B = /* @__PURE__ */ new Set(), m = P === "LR", U = P === "RL", Z = P === "BT", fe = m || U, Y = /* @__PURE__ */ new Map(); +function JNn(k, M, C, P) { + const L = new Map(M.map((de) => [de.id, de])), _ = /* @__PURE__ */ new Set(), m = P === "LR", q = P === "RL", Z = P === "BT", oe = m || q, Q = /* @__PURE__ */ new Map(); for (const de of k) - de.source !== de.target && (Y.has(de.source) || Y.set(de.source, []), Y.get(de.source).push(de)); - for (const [de, Oe] of Y) { + de.source !== de.target && (Q.has(de.source) || Q.set(de.source, []), Q.get(de.source).push(de)); + for (const [de, Oe] of Q) { if (Oe.length < 2) continue; const Ne = Oe[0].style; if (Oe.some((xt) => xt.label || xt.style !== Ne)) continue; - const Q = L.get(de); - if (!Q) continue; + const Y = L.get(de); + if (!Y) continue; const ft = Oe.filter((xt) => { const Lt = L.get(xt.target); - return Lt ? m ? Lt.x > Q.x + Q.width : U ? Lt.x + Lt.width < Q.x : Z ? Lt.y + Lt.height < Q.y : Lt.y > Q.y + Q.height : !1; + return Lt ? m ? Lt.x > Y.x + Y.width : q ? Lt.x + Lt.width < Y.x : Z ? Lt.y + Lt.height < Y.y : Lt.y > Y.y + Y.height : !1; }); if (ft.length < 2) continue; - const Fn = ft.map((xt) => ({ edge: xt, node: L.get(xt.target) })), Tt = Q.x + Q.width / 2, Kt = Q.y + Q.height / 2; - if (fe) { - const xt = m ? Q.x + Q.width : Q.x, Lt = Kt, hu = m ? Math.min(...Fn.map((jn) => jn.node.x)) : Math.max(...Fn.map((jn) => jn.node.x + jn.node.width)); + const Fn = ft.map((xt) => ({ edge: xt, node: L.get(xt.target) })), Tt = Y.x + Y.width / 2, Kt = Y.y + Y.height / 2; + if (oe) { + const xt = m ? Y.x + Y.width : Y.x, Lt = Kt, hu = m ? Math.min(...Fn.map((jn) => jn.node.x)) : Math.max(...Fn.map((jn) => jn.node.x + jn.node.width)); let tc = xt + (hu - xt) / 2; - tc = _U(tc, Tt, Kt, C, P); + tc = BU(tc, Tt, Kt, C, P); for (const { edge: jn, node: vn } of Fn) { const Jt = m ? vn.x : vn.x + vn.width, rr = vn.y + vn.height / 2; jn.points = [ @@ -49469,12 +49559,12 @@ function _Nn(k, S, C, P) { { x: tc, y: Lt }, { x: tc, y: rr }, { x: Jt, y: rr } - ], B.add(jn); + ], _.add(jn); } } else { - const xt = Tt, Lt = Z ? Q.y : Q.y + Q.height, hu = Z ? Math.max(...Fn.map((jn) => jn.node.y + jn.node.height)) : Math.min(...Fn.map((jn) => jn.node.y)); + const xt = Tt, Lt = Z ? Y.y : Y.y + Y.height, hu = Z ? Math.max(...Fn.map((jn) => jn.node.y + jn.node.height)) : Math.min(...Fn.map((jn) => jn.node.y)); let tc = Lt + (hu - Lt) / 2; - tc = _U(tc, Tt, Kt, C, P); + tc = BU(tc, Tt, Kt, C, P); for (const { edge: jn, node: vn } of Fn) { const Jt = vn.x + vn.width / 2, rr = Z ? vn.y + vn.height : vn.y; jn.points = [ @@ -49482,29 +49572,29 @@ function _Nn(k, S, C, P) { { x: xt, y: tc }, { x: Jt, y: tc }, { x: Jt, y: rr } - ], B.add(jn); + ], _.add(jn); } } } - const ye = /* @__PURE__ */ new Map(); + const ke = /* @__PURE__ */ new Map(); for (const de of k) - B.has(de) || de.source === de.target || (ye.has(de.target) || ye.set(de.target, []), ye.get(de.target).push(de)); - for (const [de, Oe] of ye) { + _.has(de) || de.source === de.target || (ke.has(de.target) || ke.set(de.target, []), ke.get(de.target).push(de)); + for (const [de, Oe] of ke) { if (Oe.length < 2) continue; const Ne = Oe[0].style; if (Oe.some((xt) => xt.label || xt.style !== Ne)) continue; - const Q = L.get(de); - if (!Q) continue; + const Y = L.get(de); + if (!Y) continue; const ft = Oe.filter((xt) => { const Lt = L.get(xt.source); - return Lt ? m ? Lt.x + Lt.width < Q.x : U ? Lt.x > Q.x + Q.width : Z ? Lt.y > Q.y + Q.height : Lt.y + Lt.height < Q.y : !1; + return Lt ? m ? Lt.x + Lt.width < Y.x : q ? Lt.x > Y.x + Y.width : Z ? Lt.y > Y.y + Y.height : Lt.y + Lt.height < Y.y : !1; }); if (ft.length < 2) continue; - const Fn = ft.map((xt) => ({ edge: xt, node: L.get(xt.source) })), Tt = Q.x + Q.width / 2, Kt = Q.y + Q.height / 2; - if (fe) { - const xt = m ? Q.x : Q.x + Q.width, Lt = Kt, hu = m ? Math.max(...Fn.map((jn) => jn.node.x + jn.node.width)) : Math.min(...Fn.map((jn) => jn.node.x)); + const Fn = ft.map((xt) => ({ edge: xt, node: L.get(xt.source) })), Tt = Y.x + Y.width / 2, Kt = Y.y + Y.height / 2; + if (oe) { + const xt = m ? Y.x : Y.x + Y.width, Lt = Kt, hu = m ? Math.max(...Fn.map((jn) => jn.node.x + jn.node.width)) : Math.min(...Fn.map((jn) => jn.node.x)); let tc = hu + (xt - hu) / 2; - tc = _U(tc, Tt, Kt, C, P); + tc = BU(tc, Tt, Kt, C, P); for (const { edge: jn, node: vn } of Fn) { const Jt = m ? vn.x + vn.width : vn.x, rr = vn.y + vn.height / 2; jn.points = [ @@ -49515,9 +49605,9 @@ function _Nn(k, S, C, P) { ]; } } else { - const xt = Tt, Lt = Z ? Q.y + Q.height : Q.y, hu = Z ? Math.min(...Fn.map((jn) => jn.node.y)) : Math.max(...Fn.map((jn) => jn.node.y + jn.node.height)); + const xt = Tt, Lt = Z ? Y.y + Y.height : Y.y, hu = Z ? Math.min(...Fn.map((jn) => jn.node.y)) : Math.max(...Fn.map((jn) => jn.node.y + jn.node.height)); let tc = hu + (Lt - hu) / 2; - tc = _U(tc, Tt, Kt, C, P); + tc = BU(tc, Tt, Kt, C, P); for (const { edge: jn, node: vn } of Fn) { const Jt = vn.x + vn.width / 2, rr = Z ? vn.y : vn.y + vn.height; jn.points = [ @@ -49530,55 +49620,55 @@ function _Nn(k, S, C, P) { } } } -function JNn(k, S = {}) { - const C = { ...EP, ...S }, P = PNn(k, C), L = jbe(P); - return LNn(L, k, EP.mergeEdges); +function GNn(k, M = {}) { + const C = { ...EP, ...M }, P = ONn(k, C), L = Ebe(P); + return DNn(L, k, EP.mergeEdges); } -function GNn(k, S, C = "Inter", P = !1) { +function HNn(k, M, C = "Inter", P = !1) { const L = []; - L.push(xP(k.width, k.height, S, P)), L.push(AP(C, !1)), L.push("<defs>"), L.push(HNn()); - const B = /* @__PURE__ */ new Set(); + L.push(xP(k.width, k.height, M, P)), L.push(AP(C, !1)), L.push("<defs>"), L.push(qNn()); + const _ = /* @__PURE__ */ new Set(); for (const m of k.edges) - m.inlineStyle?.stroke && B.add(m.inlineStyle.stroke); - for (const m of B) - L.push(qNn(m)); + m.inlineStyle?.stroke && _.add(m.inlineStyle.stroke); + for (const m of _) + L.push(UNn(m)); L.push("</defs>"); for (const m of k.groups) L.push(whn(m)); for (const m of k.edges) - L.push(UNn(m)); + L.push(zNn(m)); for (const m of k.edges) - m.label && L.push(WNn(m)); + m.label && L.push(XNn(m)); for (const m of k.nodes) - L.push(KNn(m)); + L.push(VNn(m)); return L.push("</svg>"), L.join(` `); } -function HNn() { - const k = N8.width, S = N8.height, C = 'fill="var(--_arrow)" stroke="var(--_arrow)" stroke-width="0.75" stroke-linejoin="round"', P = k - 1; +function qNn() { + const k = N8.width, M = N8.height, C = 'fill="var(--_arrow)" stroke="var(--_arrow)" stroke-width="0.75" stroke-linejoin="round"', P = k - 1; return ( // Forward arrow (marker-end) — orient="auto" ensures arrow points along line direction - ` <marker id="arrowhead" markerWidth="${k}" markerHeight="${S}" refX="${P}" refY="${S / 2}" orient="auto"> - <polygon points="0 0, ${k} ${S / 2}, 0 ${S}" ${C} /> + ` <marker id="arrowhead" markerWidth="${k}" markerHeight="${M}" refX="${P}" refY="${M / 2}" orient="auto"> + <polygon points="0 0, ${k} ${M / 2}, 0 ${M}" ${C} /> </marker> - <marker id="arrowhead-start" markerWidth="${k}" markerHeight="${S}" refX="1" refY="${S / 2}" orient="auto-start-reverse"> - <polygon points="${k} 0, 0 ${S / 2}, ${k} ${S}" ${C} /> + <marker id="arrowhead-start" markerWidth="${k}" markerHeight="${M}" refX="1" refY="${M / 2}" orient="auto-start-reverse"> + <polygon points="${k} 0, 0 ${M / 2}, ${k} ${M}" ${C} /> </marker>` ); } -function qNn(k) { - const S = N8.width, C = N8.height, P = Ll(k), L = `fill="${P}" stroke="${P}" stroke-width="0.75" stroke-linejoin="round"`, B = S - 1, m = bhn(k); - return ` <marker id="arrowhead-${m}" markerWidth="${S}" markerHeight="${C}" refX="${B}" refY="${C / 2}" orient="auto"> - <polygon points="0 0, ${S} ${C / 2}, 0 ${C}" ${L} /> +function UNn(k) { + const M = N8.width, C = N8.height, P = Ll(k), L = `fill="${P}" stroke="${P}" stroke-width="0.75" stroke-linejoin="round"`, _ = M - 1, m = bhn(k); + return ` <marker id="arrowhead-${m}" markerWidth="${M}" markerHeight="${C}" refX="${_}" refY="${C / 2}" orient="auto"> + <polygon points="0 0, ${M} ${C / 2}, 0 ${C}" ${L} /> </marker> - <marker id="arrowhead-start-${m}" markerWidth="${S}" markerHeight="${C}" refX="1" refY="${C / 2}" orient="auto-start-reverse"> - <polygon points="${S} 0, 0 ${C / 2}, ${S} ${C}" ${L} /> + <marker id="arrowhead-start-${m}" markerWidth="${M}" markerHeight="${C}" refX="1" refY="${C / 2}" orient="auto-start-reverse"> + <polygon points="${M} 0, 0 ${C / 2}, ${M} ${C}" ${L} /> </marker>`; } function bhn(k) { - return k.replace(/[^a-zA-Z0-9]/g, (S) => S.charCodeAt(0).toString(16)); + return k.replace(/[^a-zA-Z0-9]/g, (M) => M.charCodeAt(0).toString(16)); } -function whn(k, S) { +function whn(k, M) { const C = Zi.groupHeader + 16, P = []; P.push( `<g class="subgraph" data-id="${Ll(k.id)}" data-label="${Ll(k.label)}">` @@ -49600,11 +49690,11 @@ function whn(k, S) { return P.push("</g>"), P.join(` `); } -function UNn(k) { +function zNn(k) { if (k.points.length < 2) return ""; - const S = zNn(k.points), C = k.style === "dotted" ? ' stroke-dasharray="4 4"' : "", P = k.style === "thick" ? qs.connector * 2 : qs.connector, L = Ll(k.inlineStyle?.stroke ?? "var(--_line)"), B = Ll(k.inlineStyle?.["stroke-width"] ?? String(P)), m = k.inlineStyle?.stroke ? `-${bhn(k.inlineStyle.stroke)}` : ""; - let U = ""; - k.hasArrowEnd && (U += ` marker-end="url(#arrowhead${m})"`), k.hasArrowStart && (U += ` marker-start="url(#arrowhead-start${m})"`); + const M = WNn(k.points), C = k.style === "dotted" ? ' stroke-dasharray="4 4"' : "", P = k.style === "thick" ? qs.connector * 2 : qs.connector, L = Ll(k.inlineStyle?.stroke ?? "var(--_line)"), _ = Ll(k.inlineStyle?.["stroke-width"] ?? String(P)), m = k.inlineStyle?.stroke ? `-${bhn(k.inlineStyle.stroke)}` : ""; + let q = ""; + k.hasArrowEnd && (q += ` marker-end="url(#arrowhead${m})"`), k.hasArrowStart && (q += ` marker-start="url(#arrowhead-start${m})"`); const Z = [ 'class="edge"', `data-from="${Ll(k.source)}"`, @@ -49613,18 +49703,18 @@ function UNn(k) { `data-arrow-start="${k.hasArrowStart}"`, `data-arrow-end="${k.hasArrowEnd}"` ]; - return k.label && Z.push(`data-label="${Ll(k.label)}"`), `<polyline ${Z.join(" ")} points="${S}" fill="none" stroke="${L}" stroke-width="${B}"${C}${U} />`; + return k.label && Z.push(`data-label="${Ll(k.label)}"`), `<polyline ${Z.join(" ")} points="${M}" fill="none" stroke="${L}" stroke-width="${_}"${C}${q} />`; } -function zNn(k) { - return k.map((S) => `${S.x},${S.y}`).join(" "); +function WNn(k) { + return k.map((M) => `${M.x},${M.y}`).join(" "); } -function WNn(k, S) { - const C = k.labelPosition ?? XNn(k.points), P = k.label, L = 8, B = M4(P, Zi.edgeLabel, Cu.edgeLabel), m = sNn( +function XNn(k, M) { + const C = k.labelPosition ?? KNn(k.points), P = k.label, L = 8, _ = M4(P, Zi.edgeLabel, Cu.edgeLabel), m = oNn( P, C.x, C.y, - B.width, - B.height, + _.width, + _.height, Zi.edgeLabel, L, // Use --_text-sec for better contrast (was --_text-muted) @@ -49637,31 +49727,31 @@ function WNn(k, S) { `)} </g>`; } -function XNn(k) { +function KNn(k) { if (k.length === 0) return { x: 0, y: 0 }; if (k.length === 1) return k[0]; - let S = 0; + let M = 0; for (let P = 1; P < k.length; P++) - S += zfn(k[P - 1], k[P]); - let C = S / 2; + M += zfn(k[P - 1], k[P]); + let C = M / 2; for (let P = 1; P < k.length; P++) { const L = zfn(k[P - 1], k[P]); if (C <= L) { - const B = C / L; + const _ = C / L; return { - x: k[P - 1].x + B * (k[P].x - k[P - 1].x), - y: k[P - 1].y + B * (k[P].y - k[P - 1].y) + x: k[P - 1].x + _ * (k[P].x - k[P - 1].x), + y: k[P - 1].y + _ * (k[P].y - k[P - 1].y) }; } C -= L; } return k[k.length - 1]; } -function zfn(k, S) { - return Math.sqrt((S.x - k.x) ** 2 + (S.y - k.y) ** 2); +function zfn(k, M) { + return Math.sqrt((M.x - k.x) ** 2 + (M.y - k.y) ** 2); } -function KNn(k, S) { - const C = VNn(k), P = lFn(k), L = []; +function VNn(k, M) { + const C = QNn(k), P = aFn(k), L = []; return L.push( `<g class="node" data-id="${Ll(k.id)}" data-label="${Ll(k.label)}" data-shape="${k.shape}">` ), L.push(` ${C.replace(/\n/g, ` @@ -49669,155 +49759,155 @@ function KNn(k, S) { `)}`), L.push("</g>"), L.join(` `); } -function VNn(k) { - const { x: S, y: C, width: P, height: L, shape: B, inlineStyle: m } = k, U = Ll(m?.fill ?? "var(--_node-fill)"), Z = Ll(m?.stroke ?? "var(--_node-stroke)"), fe = Ll(m?.["stroke-width"] ?? String(qs.innerBox)); - switch (B) { +function QNn(k) { + const { x: M, y: C, width: P, height: L, shape: _, inlineStyle: m } = k, q = Ll(m?.fill ?? "var(--_node-fill)"), Z = Ll(m?.stroke ?? "var(--_node-stroke)"), oe = Ll(m?.["stroke-width"] ?? String(qs.innerBox)); + switch (_) { case "diamond": - return nFn(S, C, P, L, U, Z, fe); + return tFn(M, C, P, L, q, Z, oe); case "rounded": - return YNn(S, C, P, L, U, Z, fe); + return ZNn(M, C, P, L, q, Z, oe); case "stadium": - return ZNn(S, C, P, L, U, Z, fe); + return eFn(M, C, P, L, q, Z, oe); case "circle": - return eFn(S, C, P, L, U, Z, fe); + return nFn(M, C, P, L, q, Z, oe); case "subroutine": - return tFn(S, C, P, L, U, Z, fe); + return iFn(M, C, P, L, q, Z, oe); case "doublecircle": - return iFn(S, C, P, L, U, Z, fe); + return rFn(M, C, P, L, q, Z, oe); case "hexagon": - return rFn(S, C, P, L, U, Z, fe); + return cFn(M, C, P, L, q, Z, oe); case "cylinder": - return cFn(S, C, P, L, U, Z, fe); + return uFn(M, C, P, L, q, Z, oe); case "asymmetric": - return uFn(S, C, P, L, U, Z, fe); + return sFn(M, C, P, L, q, Z, oe); case "trapezoid": - return sFn(S, C, P, L, U, Z, fe); + return oFn(M, C, P, L, q, Z, oe); case "trapezoid-alt": - return oFn(S, C, P, L, U, Z, fe); + return fFn(M, C, P, L, q, Z, oe); case "state-start": - return fFn(S, C, P, L); + return hFn(M, C, P, L); case "state-end": - return hFn(S, C, P, L); + return lFn(M, C, P, L); case "rectangle": default: - return QNn(S, C, P, L, U, Z, fe); + return YNn(M, C, P, L, q, Z, oe); } } -function QNn(k, S, C, P, L, B, m) { - return `<rect x="${k}" y="${S}" width="${C}" height="${P}" rx="0" ry="0" fill="${L}" stroke="${B}" stroke-width="${m}" />`; +function YNn(k, M, C, P, L, _, m) { + return `<rect x="${k}" y="${M}" width="${C}" height="${P}" rx="0" ry="0" fill="${L}" stroke="${_}" stroke-width="${m}" />`; } -function YNn(k, S, C, P, L, B, m) { - return `<rect x="${k}" y="${S}" width="${C}" height="${P}" rx="6" ry="6" fill="${L}" stroke="${B}" stroke-width="${m}" />`; +function ZNn(k, M, C, P, L, _, m) { + return `<rect x="${k}" y="${M}" width="${C}" height="${P}" rx="6" ry="6" fill="${L}" stroke="${_}" stroke-width="${m}" />`; } -function ZNn(k, S, C, P, L, B, m) { - const U = P / 2; - return `<rect x="${k}" y="${S}" width="${C}" height="${P}" rx="${U}" ry="${U}" fill="${L}" stroke="${B}" stroke-width="${m}" />`; +function eFn(k, M, C, P, L, _, m) { + const q = P / 2; + return `<rect x="${k}" y="${M}" width="${C}" height="${P}" rx="${q}" ry="${q}" fill="${L}" stroke="${_}" stroke-width="${m}" />`; } -function eFn(k, S, C, P, L, B, m) { - const U = k + C / 2, Z = S + P / 2, fe = Math.min(C, P) / 2; - return `<circle cx="${U}" cy="${Z}" r="${fe}" fill="${L}" stroke="${B}" stroke-width="${m}" />`; +function nFn(k, M, C, P, L, _, m) { + const q = k + C / 2, Z = M + P / 2, oe = Math.min(C, P) / 2; + return `<circle cx="${q}" cy="${Z}" r="${oe}" fill="${L}" stroke="${_}" stroke-width="${m}" />`; } -function nFn(k, S, C, P, L, B, m) { - const U = k + C / 2, Z = S + P / 2, fe = C / 2, Y = P / 2; +function tFn(k, M, C, P, L, _, m) { + const q = k + C / 2, Z = M + P / 2, oe = C / 2, Q = P / 2; return `<polygon points="${[ - `${U},${Z - Y}`, + `${q},${Z - Q}`, // top - `${U + fe},${Z}`, + `${q + oe},${Z}`, // right - `${U},${Z + Y}`, + `${q},${Z + Q}`, // bottom - `${U - fe},${Z}` + `${q - oe},${Z}` // left - ].join(" ")}" fill="${L}" stroke="${B}" stroke-width="${m}" />`; + ].join(" ")}" fill="${L}" stroke="${_}" stroke-width="${m}" />`; } -function tFn(k, S, C, P, L, B, m) { - return `<rect x="${k}" y="${S}" width="${C}" height="${P}" rx="0" ry="0" fill="${L}" stroke="${B}" stroke-width="${m}" /> -<line x1="${k + 8}" y1="${S}" x2="${k + 8}" y2="${S + P}" stroke="${B}" stroke-width="${m}" /> -<line x1="${k + C - 8}" y1="${S}" x2="${k + C - 8}" y2="${S + P}" stroke="${B}" stroke-width="${m}" />`; +function iFn(k, M, C, P, L, _, m) { + return `<rect x="${k}" y="${M}" width="${C}" height="${P}" rx="0" ry="0" fill="${L}" stroke="${_}" stroke-width="${m}" /> +<line x1="${k + 8}" y1="${M}" x2="${k + 8}" y2="${M + P}" stroke="${_}" stroke-width="${m}" /> +<line x1="${k + C - 8}" y1="${M}" x2="${k + C - 8}" y2="${M + P}" stroke="${_}" stroke-width="${m}" />`; } -function iFn(k, S, C, P, L, B, m) { - const U = k + C / 2, Z = S + P / 2, fe = Math.min(C, P) / 2, Y = fe - 5; - return `<circle cx="${U}" cy="${Z}" r="${fe}" fill="${L}" stroke="${B}" stroke-width="${m}" /> -<circle cx="${U}" cy="${Z}" r="${Y}" fill="${L}" stroke="${B}" stroke-width="${m}" />`; +function rFn(k, M, C, P, L, _, m) { + const q = k + C / 2, Z = M + P / 2, oe = Math.min(C, P) / 2, Q = oe - 5; + return `<circle cx="${q}" cy="${Z}" r="${oe}" fill="${L}" stroke="${_}" stroke-width="${m}" /> +<circle cx="${q}" cy="${Z}" r="${Q}" fill="${L}" stroke="${_}" stroke-width="${m}" />`; } -function rFn(k, S, C, P, L, B, m) { - const U = P / 4; +function cFn(k, M, C, P, L, _, m) { + const q = P / 4; return `<polygon points="${[ - `${k + U},${S}`, + `${k + q},${M}`, // top-left - `${k + C - U},${S}`, + `${k + C - q},${M}`, // top-right - `${k + C},${S + P / 2}`, + `${k + C},${M + P / 2}`, // mid-right - `${k + C - U},${S + P}`, + `${k + C - q},${M + P}`, // bottom-right - `${k + U},${S + P}`, + `${k + q},${M + P}`, // bottom-left - `${k},${S + P / 2}` + `${k},${M + P / 2}` // mid-left - ].join(" ")}" fill="${L}" stroke="${B}" stroke-width="${m}" />`; + ].join(" ")}" fill="${L}" stroke="${_}" stroke-width="${m}" />`; } -function cFn(k, S, C, P, L, B, m) { - const Z = k + C / 2, fe = S + 7, Y = P - 14; +function uFn(k, M, C, P, L, _, m) { + const Z = k + C / 2, oe = M + 7, Q = P - 14; return ( // Body rectangle (no top border — covered by top ellipse) - `<rect x="${k}" y="${fe}" width="${C}" height="${Y}" fill="${L}" stroke="none" /> -<line x1="${k}" y1="${fe}" x2="${k}" y2="${fe + Y}" stroke="${B}" stroke-width="${m}" /> -<line x1="${k + C}" y1="${fe}" x2="${k + C}" y2="${fe + Y}" stroke="${B}" stroke-width="${m}" /> -<ellipse cx="${Z}" cy="${S + P - 7}" rx="${C / 2}" ry="7" fill="${L}" stroke="${B}" stroke-width="${m}" /> -<ellipse cx="${Z}" cy="${fe}" rx="${C / 2}" ry="7" fill="${L}" stroke="${B}" stroke-width="${m}" />` + `<rect x="${k}" y="${oe}" width="${C}" height="${Q}" fill="${L}" stroke="none" /> +<line x1="${k}" y1="${oe}" x2="${k}" y2="${oe + Q}" stroke="${_}" stroke-width="${m}" /> +<line x1="${k + C}" y1="${oe}" x2="${k + C}" y2="${oe + Q}" stroke="${_}" stroke-width="${m}" /> +<ellipse cx="${Z}" cy="${M + P - 7}" rx="${C / 2}" ry="7" fill="${L}" stroke="${_}" stroke-width="${m}" /> +<ellipse cx="${Z}" cy="${oe}" rx="${C / 2}" ry="7" fill="${L}" stroke="${_}" stroke-width="${m}" />` ); } -function uFn(k, S, C, P, L, B, m) { +function sFn(k, M, C, P, L, _, m) { return `<polygon points="${[ - `${k + 12},${S}`, + `${k + 12},${M}`, // top-left (indented) - `${k + C},${S}`, + `${k + C},${M}`, // top-right - `${k + C},${S + P}`, + `${k + C},${M + P}`, // bottom-right - `${k + 12},${S + P}`, + `${k + 12},${M + P}`, // bottom-left (indented) - `${k},${S + P / 2}` + `${k},${M + P / 2}` // left point - ].join(" ")}" fill="${L}" stroke="${B}" stroke-width="${m}" />`; + ].join(" ")}" fill="${L}" stroke="${_}" stroke-width="${m}" />`; } -function sFn(k, S, C, P, L, B, m) { - const U = C * 0.15; +function oFn(k, M, C, P, L, _, m) { + const q = C * 0.15; return `<polygon points="${[ - `${k + U},${S}`, + `${k + q},${M}`, // top-left (indented) - `${k + C - U},${S}`, + `${k + C - q},${M}`, // top-right (indented) - `${k + C},${S + P}`, + `${k + C},${M + P}`, // bottom-right (full width) - `${k},${S + P}` + `${k},${M + P}` // bottom-left (full width) - ].join(" ")}" fill="${L}" stroke="${B}" stroke-width="${m}" />`; + ].join(" ")}" fill="${L}" stroke="${_}" stroke-width="${m}" />`; } -function oFn(k, S, C, P, L, B, m) { - const U = C * 0.15; +function fFn(k, M, C, P, L, _, m) { + const q = C * 0.15; return `<polygon points="${[ - `${k},${S}`, + `${k},${M}`, // top-left (full width) - `${k + C},${S}`, + `${k + C},${M}`, // top-right (full width) - `${k + C - U},${S + P}`, + `${k + C - q},${M + P}`, // bottom-right (indented) - `${k + U},${S + P}` + `${k + q},${M + P}` // bottom-left (indented) - ].join(" ")}" fill="${L}" stroke="${B}" stroke-width="${m}" />`; + ].join(" ")}" fill="${L}" stroke="${_}" stroke-width="${m}" />`; } -function fFn(k, S, C, P) { - const L = k + C / 2, B = S + P / 2, m = Math.min(C, P) / 2 - 2; - return `<circle cx="${L}" cy="${B}" r="${m}" fill="var(--_text)" stroke="none" />`; +function hFn(k, M, C, P) { + const L = k + C / 2, _ = M + P / 2, m = Math.min(C, P) / 2 - 2; + return `<circle cx="${L}" cy="${_}" r="${m}" fill="var(--_text)" stroke="none" />`; } -function hFn(k, S, C, P) { - const L = k + C / 2, B = S + P / 2, m = Math.min(C, P) / 2 - 2, U = m - 4; - return `<circle cx="${L}" cy="${B}" r="${m}" fill="none" stroke="var(--_text)" stroke-width="${qs.innerBox * 2}" /> -<circle cx="${L}" cy="${B}" r="${U}" fill="var(--_text)" stroke="none" />`; +function lFn(k, M, C, P) { + const L = k + C / 2, _ = M + P / 2, m = Math.min(C, P) / 2 - 2, q = m - 4; + return `<circle cx="${L}" cy="${_}" r="${m}" fill="none" stroke="var(--_text)" stroke-width="${qs.innerBox * 2}" /> +<circle cx="${L}" cy="${_}" r="${q}" fill="var(--_text)" stroke="none" />`; } -function lFn(k, S) { +function aFn(k, M) { if ((k.shape === "state-start" || k.shape === "state-end") && !k.label) return ""; const C = k.x + k.width / 2, P = k.y + k.height / 2, L = Ll(k.inlineStyle?.color ?? "var(--_text)"); @@ -49863,7 +49953,7 @@ var Nc = { notePadY: 6, noteGap: 10 }; -function aFn(k, S = {}) { +function dFn(k, M = {}) { if (k.actors.length === 0) return { width: 0, height: 0, actors: [], lifelines: [], messages: [], activations: [], blocks: [], notes: [] }; const C = k.actors.map((vn) => { @@ -49878,10 +49968,10 @@ function aFn(k, S = {}) { } P.push(L); } - const B = /* @__PURE__ */ new Map(); + const _ = /* @__PURE__ */ new Map(); for (let vn = 0; vn < k.actors.length; vn++) - B.set(k.actors[vn].id, vn); - const m = Nc.padding, U = k.actors.map((vn, Jt) => ({ + _.set(k.actors[vn].id, vn); + const m = Nc.padding, q = k.actors.map((vn, Jt) => ({ id: vn.id, label: vn.label, type: vn.type, @@ -49891,26 +49981,26 @@ function aFn(k, S = {}) { height: Nc.actorHeight })); let Z = m + Nc.actorHeight + Nc.headerGap; - const fe = [], Y = /* @__PURE__ */ new Map(); + const oe = [], Q = /* @__PURE__ */ new Map(); for (const vn of k.blocks) { - const Jt = Y.get(vn.startIndex) ?? 0; - Y.set(vn.startIndex, Math.max(Jt, Nc.blockHeaderExtra)); + const Jt = Q.get(vn.startIndex) ?? 0; + Q.set(vn.startIndex, Math.max(Jt, Nc.blockHeaderExtra)); for (const rr of vn.dividers) { - const ic = Y.get(rr.index) ?? 0; - Y.set(rr.index, Math.max(ic, Nc.dividerExtra)); + const ic = Q.get(rr.index) ?? 0; + Q.set(rr.index, Math.max(ic, Nc.dividerExtra)); } } - const ye = /* @__PURE__ */ new Map(); + const ke = /* @__PURE__ */ new Map(); for (const vn of k.notes) { - const Jt = ye.get(vn.afterIndex) ?? []; - Jt.push(vn), ye.set(vn.afterIndex, Jt); + const Jt = ke.get(vn.afterIndex) ?? []; + Jt.push(vn), ke.set(vn.afterIndex, Jt); } - const de = [], Oe = /* @__PURE__ */ new Map(), Ne = [], Q = 4; + const de = [], Oe = /* @__PURE__ */ new Map(), Ne = [], Y = 4; for (let vn = 0; vn < k.messages.length; vn++) { - const Jt = k.messages[vn], rr = B.get(Jt.from) ?? 0, ic = B.get(Jt.to) ?? 0, G = Jt.from === Jt.to, Cs = Y.get(vn) ?? 0; + const Jt = k.messages[vn], rr = _.get(Jt.from) ?? 0, ic = _.get(Jt.to) ?? 0, G = Jt.from === Jt.to, Cs = Q.get(vn) ?? 0; Cs > 0 && (Z += Cs); const Ps = P[rr], ja = P[ic]; - if (fe.push({ + if (oe.push({ from: Jt.from, to: Jt.to, label: Jt.label, @@ -49928,7 +50018,7 @@ function aFn(k, S = {}) { if (Jt.deactivate) { const uf = Oe.get(Jt.from); if (uf && uf.length > 0) { - const { startY: Qc, depth: kc } = uf.pop(), Xu = B.get(Jt.from) ?? 0, Ku = kc * Q; + const { startY: Qc, depth: kc } = uf.pop(), Xu = _.get(Jt.from) ?? 0, Ku = kc * Y; Ne.push({ actorId: Jt.from, x: P[Xu] - Nc.activationWidth / 2 + Ku, @@ -49939,22 +50029,22 @@ function aFn(k, S = {}) { } } Z += G ? Nc.selfMessageHeight + Nc.messageRowHeight : Nc.messageRowHeight; - const ih = ye.get(vn); + const ih = ke.get(vn); if (ih && ih.length > 0) { const uf = G ? Nc.selfMessageHeight : 0; - let Qc = fe[vn].y + uf + 8; + let Qc = oe[vn].y + uf + 8; for (const kc of ih) { const Xu = Math.max( Nc.noteWidth, ka(kc.text, Zi.edgeLabel, Cu.edgeLabel) + Nc.notePadX * 2 - ), Ku = Zi.edgeLabel + Nc.notePadY * 2, Hr = B.get(kc.actorIds[0] ?? "") ?? 0; + ), Ku = Zi.edgeLabel + Nc.notePadY * 2, Hr = _.get(kc.actorIds[0] ?? "") ?? 0; let Fo; if (kc.position === "left") Fo = P[Hr] - C[Hr] / 2 - Xu - Nc.noteGap; else if (kc.position === "right") Fo = P[Hr] + C[Hr] / 2 + Nc.noteGap; else if (kc.actorIds.length > 1) { - const Dl = B.get(kc.actorIds[kc.actorIds.length - 1] ?? "") ?? Hr; + const Dl = _.get(kc.actorIds[kc.actorIds.length - 1] ?? "") ?? Hr; Fo = (P[Hr] + P[Dl]) / 2 - Xu / 2; } else Fo = P[Hr] - Xu / 2; @@ -49973,7 +50063,7 @@ function aFn(k, S = {}) { } for (const [vn, Jt] of Oe) for (const { startY: rr, depth: ic } of Jt) { - const G = B.get(vn) ?? 0, Cs = ic * Q; + const G = _.get(vn) ?? 0, Cs = ic * Y; Ne.push({ actorId: vn, x: P[G] - Nc.activationWidth / 2 + Cs, @@ -49983,15 +50073,15 @@ function aFn(k, S = {}) { }); } const ft = k.blocks.map((vn) => { - const Jt = fe[vn.startIndex], rr = fe[vn.endIndex], ic = (Jt?.y ?? Z) - Nc.blockPadTop, G = (rr?.y ?? Z) + Nc.blockPadBottom + 12, Cs = /* @__PURE__ */ new Set(); + const Jt = oe[vn.startIndex], rr = oe[vn.endIndex], ic = (Jt?.y ?? Z) - Nc.blockPadTop, G = (rr?.y ?? Z) + Nc.blockPadBottom + 12, Cs = /* @__PURE__ */ new Set(); for (let kc = vn.startIndex; kc <= vn.endIndex; kc++) { const Xu = k.messages[kc]; - Xu && (Cs.add(B.get(Xu.from) ?? 0), Cs.add(B.get(Xu.to) ?? 0)); + Xu && (Cs.add(_.get(Xu.from) ?? 0), Cs.add(_.get(Xu.to) ?? 0)); } if (Cs.size === 0) for (let kc = 0; kc < k.actors.length; kc++) Cs.add(kc); const Ps = Math.min(...Cs), ja = Math.max(...Cs), ih = P[Ps] - C[Ps] / 2 - Nc.blockPadX, uf = P[ja] + C[ja] / 2 + Nc.blockPadX, Qc = vn.dividers.map((kc) => { - const Xu = fe[kc.index], Ku = Xu?.y ?? Z; + const Xu = oe[kc.index], Ku = Xu?.y ?? Z; let Hr = 28; if (kc.label && Xu?.label) { const Fo = `[${kc.label}]`, Dl = ka(Fo, Zi.edgeLabel, Cu.edgeLabel), Hg = ih + 8, Cm = Hg + Dl, Mp = ka(Xu.label, Zi.edgeLabel, Cu.edgeLabel), T0 = Xu.isSelf ? Xu.x1 + 36 : (Xu.x1 + Xu.x2) / 2 - Mp / 2, qb = T0 + Mp; @@ -50010,21 +50100,21 @@ function aFn(k, S = {}) { }; }), Fn = de, Tt = Z + Nc.padding; let Kt = Nc.padding, xt = 0; - for (const vn of U) + for (const vn of q) Kt = Math.min(Kt, vn.x - vn.width / 2), xt = Math.max(xt, vn.x + vn.width / 2); for (const vn of ft) Kt = Math.min(Kt, vn.x), xt = Math.max(xt, vn.x + vn.width); for (const vn of Fn) Kt = Math.min(Kt, vn.x), xt = Math.max(xt, vn.x + vn.width); - for (const vn of fe) + for (const vn of oe) if (vn.isSelf && vn.label) { const ic = vn.x1 + 30 + 8, G = ka(vn.label, Zi.edgeLabel, Cu.edgeLabel); xt = Math.max(xt, ic + G + 8); } const Lt = Kt < Nc.padding ? Nc.padding - Kt : 0; if (Lt > 0) { - for (const vn of U) vn.x += Lt; - for (const vn of fe) + for (const vn of q) vn.x += Lt; + for (const vn of oe) vn.x1 += Lt, vn.x2 += Lt; for (const vn of Ne) vn.x += Lt; for (const vn of ft) @@ -50041,49 +50131,49 @@ function aFn(k, S = {}) { return { width: Math.max(tc, 200), height: Math.max(jn, 100), - actors: U, + actors: q, lifelines: hu, - messages: fe, + messages: oe, activations: Ne, blocks: ft, notes: Fn }; } -function dFn(k, S, C = "Inter", P = !1) { +function bFn(k, M, C = "Inter", P = !1) { const L = []; - L.push(xP(k.width, k.height, S, P)), L.push(AP(C, !1)), L.push("<defs>"), L.push(bFn()), L.push("</defs>"); - for (const B of k.blocks) - L.push(vFn(B)); - for (const B of k.lifelines) - L.push(gFn(B)); - for (const B of k.activations) - L.push(pFn(B)); - for (const B of k.messages) - L.push(mFn(B)); - for (const B of k.notes) - L.push(kFn(B)); - for (const B of k.actors) - L.push(wFn(B)); + L.push(xP(k.width, k.height, M, P)), L.push(AP(C, !1)), L.push("<defs>"), L.push(wFn()), L.push("</defs>"); + for (const _ of k.blocks) + L.push(kFn(_)); + for (const _ of k.lifelines) + L.push(pFn(_)); + for (const _ of k.activations) + L.push(mFn(_)); + for (const _ of k.messages) + L.push(vFn(_)); + for (const _ of k.notes) + L.push(yFn(_)); + for (const _ of k.actors) + L.push(gFn(_)); return L.push("</svg>"), L.join(` `); } -function bFn() { - const k = N8.width, S = N8.height; - return ` <marker id="seq-arrow" markerWidth="${k}" markerHeight="${S}" refX="${k}" refY="${S / 2}" orient="auto-start-reverse"> - <polygon points="0 0, ${k} ${S / 2}, 0 ${S}" fill="var(--_arrow)" /> +function wFn() { + const k = N8.width, M = N8.height; + return ` <marker id="seq-arrow" markerWidth="${k}" markerHeight="${M}" refX="${k}" refY="${M / 2}" orient="auto-start-reverse"> + <polygon points="0 0, ${k} ${M / 2}, 0 ${M}" fill="var(--_arrow)" /> </marker> - <marker id="seq-arrow-open" markerWidth="${k}" markerHeight="${S}" refX="${k}" refY="${S / 2}" orient="auto-start-reverse"> - <polyline points="0 0, ${k} ${S / 2}, 0 ${S}" fill="none" stroke="var(--_arrow)" stroke-width="1" /> + <marker id="seq-arrow-open" markerWidth="${k}" markerHeight="${M}" refX="${k}" refY="${M / 2}" orient="auto-start-reverse"> + <polyline points="0 0, ${k} ${M / 2}, 0 ${M}" fill="none" stroke="var(--_arrow)" stroke-width="1" /> </marker>`; } -function wFn(k) { - const { id: S, x: C, y: P, width: L, height: B, label: m, type: U } = k, Z = []; +function gFn(k) { + const { id: M, x: C, y: P, width: L, height: _, label: m, type: q } = k, Z = []; if (Z.push( - `<g class="actor" data-id="${Gg(S)}" data-label="${Gg(m)}" data-type="${U}">` - ), U === "actor") { - const fe = B / 24 * 0.9, Y = C - 12 * fe, ye = P + (B - 24 * fe) / 2, de = qs.outerBox / fe, Oe = "var(--_line)"; + `<g class="actor" data-id="${Gg(M)}" data-label="${Gg(m)}" data-type="${q}">` + ), q === "actor") { + const oe = _ / 24 * 0.9, Q = C - 12 * oe, ke = P + (_ - 24 * oe) / 2, de = qs.outerBox / oe, Oe = "var(--_line)"; Z.push( - ` <g transform="translate(${Y},${ye}) scale(${fe})"> + ` <g transform="translate(${Q},${ke}) scale(${oe})"> <path d="M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z" fill="none" stroke="${Oe}" stroke-width="${de}" /> <path d="M15 10C15 11.6569 13.6569 13 12 13C10.3431 13 9 11.6569 9 10C9 8.34315 10.3431 7 12 7C13.6569 7 15 8.34315 15 10Z" fill="none" stroke="${Oe}" stroke-width="${de}" /> <path d="M5.62842 18.3563C7.08963 17.0398 9.39997 16 12 16C14.6 16 16.9104 17.0398 18.3716 18.3563" fill="none" stroke="${Oe}" stroke-width="${de}" /> @@ -50092,20 +50182,20 @@ function wFn(k) { " " + ya( m, C, - P + B + 14, + P + _ + 14, Zi.nodeLabel, `font-size="${Zi.nodeLabel}" text-anchor="middle" font-weight="${Cu.nodeLabel}" fill="var(--_text)"` ) ); } else { - const fe = C - L / 2; + const oe = C - L / 2; Z.push( - ` <rect x="${fe}" y="${P}" width="${L}" height="${B}" rx="4" ry="4" fill="var(--_node-fill)" stroke="var(--_node-stroke)" stroke-width="${qs.outerBox}" />` + ` <rect x="${oe}" y="${P}" width="${L}" height="${_}" rx="4" ry="4" fill="var(--_node-fill)" stroke="var(--_node-stroke)" stroke-width="${qs.outerBox}" />` ), Z.push( " " + ya( m, C, - P + B / 2, + P + _ / 2, Zi.nodeLabel, `font-size="${Zi.nodeLabel}" text-anchor="middle" font-weight="${Cu.nodeLabel}" fill="var(--_text)"` ) @@ -50114,20 +50204,20 @@ function wFn(k) { return Z.push("</g>"), Z.join(` `); } -function gFn(k) { +function pFn(k) { return `<line class="lifeline" data-actor="${Gg(k.actorId)}" x1="${k.x}" y1="${k.topY}" x2="${k.x}" y2="${k.bottomY}" stroke="var(--_line)" stroke-width="0.75" stroke-dasharray="6 4" />`; } -function pFn(k) { +function mFn(k) { return `<rect class="activation" data-actor="${Gg(k.actorId)}" x="${k.x}" y="${k.topY}" width="${k.width}" height="${k.bottomY - k.topY}" fill="var(--_node-fill)" stroke="var(--_node-stroke)" stroke-width="${qs.innerBox}" />`; } -function mFn(k) { - const S = [], C = k.lineStyle === "dashed" ? ' stroke-dasharray="6 4"' : "", P = k.arrowHead === "filled" ? "seq-arrow" : "seq-arrow-open"; - if (S.push( +function vFn(k) { + const M = [], C = k.lineStyle === "dashed" ? ' stroke-dasharray="6 4"' : "", P = k.arrowHead === "filled" ? "seq-arrow" : "seq-arrow-open"; + if (M.push( `<g class="message" data-from="${Gg(k.from)}" data-to="${Gg(k.to)}" data-label="${Gg(k.label)}" data-line-style="${k.lineStyle}" data-arrow-head="${k.arrowHead}" data-self="${k.isSelf}">` ), k.isSelf) - S.push( + M.push( ` <polyline points="${k.x1},${k.y} ${k.x1 + 30},${k.y} ${k.x1 + 30},${k.y + 20} ${k.x2},${k.y + 20}" fill="none" stroke="var(--_line)" stroke-width="${qs.connector}"${C} marker-end="url(#${P})" />` - ), S.push( + ), M.push( " " + ya( k.label, k.x1 + 30 + 8, @@ -50137,11 +50227,11 @@ function mFn(k) { ) ); else { - S.push( + M.push( ` <line x1="${k.x1}" y1="${k.y}" x2="${k.x2}" y2="${k.y}" stroke="var(--_line)" stroke-width="${qs.connector}"${C} marker-end="url(#${P})" />` ); const L = (k.x1 + k.x2) / 2; - S.push( + M.push( " " + ya( k.label, L, @@ -50151,21 +50241,21 @@ function mFn(k) { ) ); } - return S.push("</g>"), S.join(` + return M.push("</g>"), M.join(` `); } -function vFn(k) { - const S = [], C = k.label ? ` data-label="${Gg(k.label)}"` : ""; - S.push( +function kFn(k) { + const M = [], C = k.label ? ` data-label="${Gg(k.label)}"` : ""; + M.push( `<g class="block" data-type="${Gg(k.type)}"${C}>` - ), S.push( + ), M.push( ` <rect x="${k.x}" y="${k.y}" width="${k.width}" height="${k.height}" rx="0" ry="0" fill="none" stroke="var(--_node-stroke)" stroke-width="${qs.outerBox}" />` ); const P = `${k.type}${k.label ? ` [${k.label}]` : ""}`, L = P.split(` -`)[0], B = ka(L, Zi.edgeLabel, Cu.groupHeader) + 16, m = 18; - S.push( - ` <rect x="${k.x}" y="${k.y}" width="${B}" height="${m}" fill="var(--_group-hdr)" stroke="var(--_node-stroke)" stroke-width="${qs.outerBox}" />` - ), S.push( +`)[0], _ = ka(L, Zi.edgeLabel, Cu.groupHeader) + 16, m = 18; + M.push( + ` <rect x="${k.x}" y="${k.y}" width="${_}" height="${m}" fill="var(--_group-hdr)" stroke="var(--_node-stroke)" stroke-width="${qs.outerBox}" />` + ), M.push( " " + ya( P, k.x + 6, @@ -50174,36 +50264,36 @@ function vFn(k) { `font-size="${Zi.edgeLabel}" font-weight="${Cu.groupHeader}" fill="var(--_text-sec)"` ) ); - for (const U of k.dividers) - S.push( - ` <line x1="${k.x}" y1="${U.y}" x2="${k.x + k.width}" y2="${U.y}" stroke="var(--_line)" stroke-width="0.75" stroke-dasharray="6 4" />` - ), U.label && S.push( + for (const q of k.dividers) + M.push( + ` <line x1="${k.x}" y1="${q.y}" x2="${k.x + k.width}" y2="${q.y}" stroke="var(--_line)" stroke-width="0.75" stroke-dasharray="6 4" />` + ), q.label && M.push( " " + ya( - `[${U.label}]`, + `[${q.label}]`, k.x + 8, - U.y + 14, + q.y + 14, Zi.edgeLabel, `font-size="${Zi.edgeLabel}" text-anchor="start" font-weight="${Cu.edgeLabel}" fill="var(--_text-muted)"` ) ); - return S.push("</g>"), S.join(` + return M.push("</g>"), M.join(` `); } -function kFn(k) { - const { x: C, y: P, width: L, height: B } = k, m = k.actors && k.actors.length > 0 ? ` data-actors="${k.actors.map(Gg).join(",")}"` : "", U = k.position ? ` data-position="${Gg(k.position)}"` : "", Z = [ +function yFn(k) { + const { x: C, y: P, width: L, height: _ } = k, m = k.actors && k.actors.length > 0 ? ` data-actors="${k.actors.map(Gg).join(",")}"` : "", q = k.position ? ` data-position="${Gg(k.position)}"` : "", Z = [ `${C},${P}`, `${C + L - 6},${P}`, `${C + L},${P + 6}`, - `${C + L},${P + B}`, - `${C},${P + B}` + `${C + L},${P + _}`, + `${C},${P + _}` ].join(" "); - return `<g class="note"${U}${m}> + return `<g class="note"${q}${m}> <polygon points="${Z}" fill="var(--bg)" stroke="var(--_node-stroke)" stroke-width="${qs.innerBox}" /> <polygon points="${C + L - 6},${P} ${C + L},${P + 6} ${C + L - 6},${P + 6}" fill="var(--_inner-stroke)" stroke="var(--_node-stroke)" stroke-width="${qs.innerBox}" /> ${ya( k.text, C + L / 2, - P + B / 2, + P + _ / 2, Zi.edgeLabel, `font-size="${Zi.edgeLabel}" text-anchor="middle" font-weight="${Cu.edgeLabel}" fill="var(--_text-muted)"` )} @@ -50225,11 +50315,11 @@ var cf = { nodeSpacing: 40, layerSpacing: 60 }; -function yFn(k, S) { +function jFn(k, M) { const C = /* @__PURE__ */ new Map(); for (const L of k.classes) { - const B = L.annotation ? cf.headerBaseHeight + cf.annotationHeight : cf.headerBaseHeight, m = L.attributes.length > 0 ? L.attributes.length * cf.memberRowHeight + cf.sectionPadY : cf.emptySectionHeight, U = L.methods.length > 0 ? L.methods.length * cf.memberRowHeight + cf.sectionPadY : cf.emptySectionHeight, Z = ka(L.label, Zi.nodeLabel, Cu.nodeLabel), fe = Wfn(L.attributes), Y = Wfn(L.methods), ye = Math.max(cf.minWidth, Z + cf.boxPadX * 2, fe + cf.boxPadX * 2, Y + cf.boxPadX * 2), de = B + m + U; - C.set(L.id, { width: ye, height: de, headerHeight: B, attrHeight: m, methodHeight: U }); + const _ = L.annotation ? cf.headerBaseHeight + cf.annotationHeight : cf.headerBaseHeight, m = L.attributes.length > 0 ? L.attributes.length * cf.memberRowHeight + cf.sectionPadY : cf.emptySectionHeight, q = L.methods.length > 0 ? L.methods.length * cf.memberRowHeight + cf.sectionPadY : cf.emptySectionHeight, Z = ka(L.label, Zi.nodeLabel, Cu.nodeLabel), oe = Wfn(L.attributes), Q = Wfn(L.methods), ke = Math.max(cf.minWidth, Z + cf.boxPadX * 2, oe + cf.boxPadX * 2, Q + cf.boxPadX * 2), de = _ + m + q; + C.set(L.id, { width: ke, height: de, headerHeight: _, attrHeight: m, methodHeight: q }); } const P = { id: "root", @@ -50246,33 +50336,33 @@ function yFn(k, S) { edges: [] }; for (const L of k.classes) { - const B = C.get(L.id); - P.children.push({ id: L.id, width: B.width, height: B.height }); + const _ = C.get(L.id); + P.children.push({ id: L.id, width: _.width, height: _.height }); } for (let L = 0; L < k.relationships.length; L++) { - const B = k.relationships[L], m = { id: `e${L}`, sources: [B.from], targets: [B.to] }; - if (B.label) { - const U = M4(B.label, Zi.edgeLabel, Cu.edgeLabel); - m.labels = [{ text: B.label, width: U.width + 8, height: U.height + 6 }]; + const _ = k.relationships[L], m = { id: `e${L}`, sources: [_.from], targets: [_.to] }; + if (_.label) { + const q = M4(_.label, Zi.edgeLabel, Cu.edgeLabel); + m.labels = [{ text: _.label, width: q.width + 8, height: q.height + 6 }]; } P.edges.push(m); } return { elkGraph: P, classSizes: C }; } -function jFn(k, S, C) { +function EFn(k, M, C) { const P = /* @__PURE__ */ new Map(); - for (const m of S.classes) P.set(m.id, m); + for (const m of M.classes) P.set(m.id, m); const L = []; for (const m of k.children ?? []) { - const U = P.get(m.id); - if (U) { - const Z = C.get(U.id); + const q = P.get(m.id); + if (q) { + const Z = C.get(q.id); L.push({ - id: U.id, - label: U.label, - annotation: U.annotation, - attributes: U.attributes, - methods: U.methods, + id: q.id, + label: q.label, + annotation: q.annotation, + attributes: q.attributes, + methods: q.methods, x: m.x ?? 0, y: m.y ?? 0, width: m.width ?? Z.width, @@ -50283,25 +50373,25 @@ function jFn(k, S, C) { }); } } - const B = []; + const _ = []; for (let m = 0; m < (k.edges?.length ?? 0); m++) { - const U = k.edges[m], Z = S.relationships[m], fe = []; - if (U.sections && U.sections.length > 0) { - const ye = U.sections[0]; - if (fe.push({ x: ye.startPoint.x, y: ye.startPoint.y }), ye.bendPoints) - for (const de of ye.bendPoints) - fe.push({ x: de.x, y: de.y }); - fe.push({ x: ye.endPoint.x, y: ye.endPoint.y }); + const q = k.edges[m], Z = M.relationships[m], oe = []; + if (q.sections && q.sections.length > 0) { + const ke = q.sections[0]; + if (oe.push({ x: ke.startPoint.x, y: ke.startPoint.y }), ke.bendPoints) + for (const de of ke.bendPoints) + oe.push({ x: de.x, y: de.y }); + oe.push({ x: ke.endPoint.x, y: ke.endPoint.y }); } - let Y; - if (U.labels && U.labels.length > 0) { - const ye = U.labels[0]; - ye.x != null && ye.y != null && (Y = { - x: ye.x + (ye.width ?? 0) / 2, - y: ye.y + (ye.height ?? 0) / 2 + let Q; + if (q.labels && q.labels.length > 0) { + const ke = q.labels[0]; + ke.x != null && ke.y != null && (Q = { + x: ke.x + (ke.width ?? 0) / 2, + y: ke.y + (ke.height ?? 0) / 2 }); } - B.push({ + _.push({ from: Z.from, to: Z.to, type: Z.type, @@ -50309,35 +50399,35 @@ function jFn(k, S, C) { label: Z.label, fromCardinality: Z.fromCardinality, toCardinality: Z.toCardinality, - points: fe, - labelPosition: Y + points: oe, + labelPosition: Q }); } return { width: k.width ?? 600, height: k.height ?? 400, classes: L, - relationships: B + relationships: _ }; } -function EFn(k, S = {}) { +function AFn(k, M = {}) { if (k.classes.length === 0) return { width: 0, height: 0, classes: [], relationships: [] }; - const { elkGraph: C, classSizes: P } = yFn(k), L = jbe(C); - return jFn(L, k, P); + const { elkGraph: C, classSizes: P } = jFn(k), L = Ebe(C); + return EFn(L, k, P); } function Wfn(k) { if (k.length === 0) return 0; - let S = 0; + let M = 0; for (const C of k) { - const P = AFn(C), L = chn(P, cf.memberFontSize); - L > S && (S = L); + const P = xFn(C), L = chn(P, cf.memberFontSize); + L > M && (M = L); } - return S; + return M; } -function AFn(k) { - const S = k.visibility ? `${k.visibility} ` : "", C = k.isMethod ? `${k.name}(${k.params || ""})` : k.name, P = k.type ? `: ${k.type}` : ""; - return `${S}${C}${P}`; +function xFn(k) { + const M = k.visibility ? `${k.visibility} ` : "", C = k.isMethod ? `${k.name}(${k.params || ""})` : k.name, P = k.type ? `: ${k.type}` : ""; + return `${M}${C}${P}`; } var qU = { memberSize: 11, @@ -50345,19 +50435,19 @@ var qU = { annotationSize: 10, annotationWeight: 500 }; -function xFn(k, S, C = "Inter", P = !1) { +function $Fn(k, M, C = "Inter", P = !1) { const L = []; - L.push(xP(k.width, k.height, S, P)), L.push(AP(C, !0)), L.push("<defs>"), L.push($Fn()), L.push("</defs>"); - for (const B of k.relationships) - L.push(TFn(B)); - for (const B of k.classes) - L.push(MFn(B)); - for (const B of k.relationships) - L.push(CFn(B)); + L.push(xP(k.width, k.height, M, P)), L.push(AP(C, !0)), L.push("<defs>"), L.push(MFn()), L.push("</defs>"); + for (const _ of k.relationships) + L.push(SFn(_)); + for (const _ of k.classes) + L.push(TFn(_)); + for (const _ of k.relationships) + L.push(PFn(_)); return L.push("</svg>"), L.join(` `); } -function $Fn() { +function MFn() { return ( // Hollow triangle (inheritance, realization) — points at target ` <marker id="cls-inherit" markerWidth="12" markerHeight="10" refX="12" refY="5" orient="auto-start-reverse"> @@ -50374,73 +50464,73 @@ function $Fn() { </marker>` ); } -function MFn(k) { - const { x: S, y: C, width: P, height: L, headerHeight: B, attrHeight: m, methodHeight: U } = k, Z = [], fe = k.annotation ? ` data-annotation="${$4(k.annotation)}"` : ""; +function TFn(k) { + const { x: M, y: C, width: P, height: L, headerHeight: _, attrHeight: m, methodHeight: q } = k, Z = [], oe = k.annotation ? ` data-annotation="${$4(k.annotation)}"` : ""; Z.push( - `<g class="class-node" data-id="${$4(k.id)}" data-label="${$4(k.label)}"${fe}>` + `<g class="class-node" data-id="${$4(k.id)}" data-label="${$4(k.label)}"${oe}>` ), Z.push( - ` <rect x="${S}" y="${C}" width="${P}" height="${L}" rx="0" ry="0" fill="var(--_node-fill)" stroke="var(--_node-stroke)" stroke-width="${qs.outerBox}" />` + ` <rect x="${M}" y="${C}" width="${P}" height="${L}" rx="0" ry="0" fill="var(--_node-fill)" stroke="var(--_node-stroke)" stroke-width="${qs.outerBox}" />` ), Z.push( - ` <rect x="${S}" y="${C}" width="${P}" height="${B}" rx="0" ry="0" fill="var(--_group-hdr)" stroke="var(--_node-stroke)" stroke-width="${qs.outerBox}" />` + ` <rect x="${M}" y="${C}" width="${P}" height="${_}" rx="0" ry="0" fill="var(--_group-hdr)" stroke="var(--_node-stroke)" stroke-width="${qs.outerBox}" />` ); - let Y = C + B / 2; + let Q = C + _ / 2; if (k.annotation) { const Ne = C + 12; Z.push( - ` <text x="${S + P / 2}" y="${Ne}" text-anchor="middle" dy="${va}" font-size="${qU.annotationSize}" font-weight="${qU.annotationWeight}" font-style="italic" fill="var(--_text-muted)"><<${HU(k.annotation)}>></text>` - ), Y = C + B / 2 + 6; + ` <text x="${M + P / 2}" y="${Ne}" text-anchor="middle" dy="${va}" font-size="${qU.annotationSize}" font-weight="${qU.annotationWeight}" font-style="italic" fill="var(--_text-muted)"><<${HU(k.annotation)}>></text>` + ), Q = C + _ / 2 + 6; } Z.push( " " + ya( k.label, - S + P / 2, - Y, + M + P / 2, + Q, Zi.nodeLabel, `text-anchor="middle" font-size="${Zi.nodeLabel}" font-weight="700" fill="var(--_text)"` ) ); - const ye = C + B; + const ke = C + _; Z.push( - ` <line x1="${S}" y1="${ye}" x2="${S + P}" y2="${ye}" stroke="var(--_node-stroke)" stroke-width="${qs.innerBox}" />` + ` <line x1="${M}" y1="${ke}" x2="${M + P}" y2="${ke}" stroke="var(--_node-stroke)" stroke-width="${qs.innerBox}" />` ); const de = 20; for (let Ne = 0; Ne < k.attributes.length; Ne++) { - const Q = k.attributes[Ne], ft = ye + 4 + Ne * de + de / 2; - Z.push(" " + Xfn(Q, S + cf.boxPadX, ft)); + const Y = k.attributes[Ne], ft = ke + 4 + Ne * de + de / 2; + Z.push(" " + Xfn(Y, M + cf.boxPadX, ft)); } - const Oe = ye + m; + const Oe = ke + m; Z.push( - ` <line x1="${S}" y1="${Oe}" x2="${S + P}" y2="${Oe}" stroke="var(--_node-stroke)" stroke-width="${qs.innerBox}" />` + ` <line x1="${M}" y1="${Oe}" x2="${M + P}" y2="${Oe}" stroke="var(--_node-stroke)" stroke-width="${qs.innerBox}" />` ); for (let Ne = 0; Ne < k.methods.length; Ne++) { - const Q = k.methods[Ne], ft = Oe + 4 + Ne * de + de / 2; - Z.push(" " + Xfn(Q, S + cf.boxPadX, ft)); + const Y = k.methods[Ne], ft = Oe + 4 + Ne * de + de / 2; + Z.push(" " + Xfn(Y, M + cf.boxPadX, ft)); } return Z.push("</g>"), Z.join(` `); } -function Xfn(k, S, C) { - const P = k.isAbstract ? ' font-style="italic"' : "", L = k.isStatic ? ' text-decoration="underline"' : "", B = []; - k.visibility && B.push(`<tspan fill="var(--_text-faint)">${HU(k.visibility)} </tspan>`); +function Xfn(k, M, C) { + const P = k.isAbstract ? ' font-style="italic"' : "", L = k.isStatic ? ' text-decoration="underline"' : "", _ = []; + k.visibility && _.push(`<tspan fill="var(--_text-faint)">${HU(k.visibility)} </tspan>`); const m = k.isMethod ? `${k.name}(${k.params || ""})` : k.name; - return B.push(`<tspan fill="var(--_text-sec)">${HU(m)}</tspan>`), k.type && (B.push('<tspan fill="var(--_text-faint)">: </tspan>'), B.push(`<tspan fill="var(--_text-muted)">${HU(k.type)}</tspan>`)), `<text x="${S}" y="${C}" class="mono" dy="${va}" font-size="${qU.memberSize}" font-weight="${qU.memberWeight}"${P}${L}>${B.join("")}</text>`; + return _.push(`<tspan fill="var(--_text-sec)">${HU(m)}</tspan>`), k.type && (_.push('<tspan fill="var(--_text-faint)">: </tspan>'), _.push(`<tspan fill="var(--_text-muted)">${HU(k.type)}</tspan>`)), `<text x="${M}" y="${C}" class="mono" dy="${va}" font-size="${qU.memberSize}" font-weight="${qU.memberWeight}"${P}${L}>${_.join("")}</text>`; } -function TFn(k) { +function SFn(k) { if (k.points.length < 2) return ""; - const S = k.points.map((m) => `${m.x},${m.y}`).join(" "), P = k.type === "dependency" || k.type === "realization" ? ' stroke-dasharray="6 4"' : "", L = SFn(k.type, k.markerAt), B = [ + const M = k.points.map((m) => `${m.x},${m.y}`).join(" "), P = k.type === "dependency" || k.type === "realization" ? ' stroke-dasharray="6 4"' : "", L = IFn(k.type, k.markerAt), _ = [ 'class="class-relationship"', `data-from="${$4(k.from)}"`, `data-to="${$4(k.to)}"`, `data-type="${k.type}"`, `data-marker-at="${k.markerAt}"` ]; - return k.label && B.push(`data-label="${$4(k.label)}"`), k.fromCardinality && B.push(`data-from-cardinality="${$4(k.fromCardinality)}"`), k.toCardinality && B.push(`data-to-cardinality="${$4(k.toCardinality)}"`), `<polyline ${B.join(" ")} points="${S}" fill="none" stroke="var(--_line)" stroke-width="${qs.connector}"${P}${L} />`; + return k.label && _.push(`data-label="${$4(k.label)}"`), k.fromCardinality && _.push(`data-from-cardinality="${$4(k.fromCardinality)}"`), k.toCardinality && _.push(`data-to-cardinality="${$4(k.toCardinality)}"`), `<polyline ${_.join(" ")} points="${M}" fill="none" stroke="var(--_line)" stroke-width="${qs.connector}"${P}${L} />`; } -function SFn(k, S) { - const C = IFn(k); - return C ? S === "from" ? ` marker-start="url(#${C})"` : ` marker-end="url(#${C})"` : ""; +function IFn(k, M) { + const C = CFn(k); + return C ? M === "from" ? ` marker-start="url(#${C})"` : ` marker-end="url(#${C})"` : ""; } -function IFn(k) { +function CFn(k) { switch (k) { case "inheritance": case "realization": @@ -50456,12 +50546,12 @@ function IFn(k) { return null; } } -function CFn(k) { +function PFn(k) { if (!k.label && !k.fromCardinality && !k.toCardinality || k.points.length < 2) return ""; - const S = []; + const M = []; if (k.label) { - const C = k.labelPosition ?? PFn(k.points); - S.push( + const C = k.labelPosition ?? OFn(k.points); + M.push( ya( k.label, C.x, @@ -50473,7 +50563,7 @@ function CFn(k) { } if (k.fromCardinality) { const C = k.points[0], P = k.points[1], L = Kfn(C, P); - S.push( + M.push( ya( k.fromCardinality, C.x + L.x, @@ -50485,7 +50575,7 @@ function CFn(k) { } if (k.toCardinality) { const C = k.points[k.points.length - 1], P = k.points[k.points.length - 2], L = Kfn(C, P); - S.push( + M.push( ya( k.toCardinality, C.x + L.x, @@ -50495,16 +50585,16 @@ function CFn(k) { ) ); } - return S.join(` + return M.join(` `); } -function PFn(k) { +function OFn(k) { if (k.length === 0) return { x: 0, y: 0 }; - const S = Math.floor(k.length / 2); - return k[S]; + const M = Math.floor(k.length / 2); + return k[M]; } -function Kfn(k, S) { - const C = S.x - k.x, P = S.y - k.y; +function Kfn(k, M) { + const C = M.x - k.x, P = M.y - k.y; return Math.abs(C) > Math.abs(P) ? { x: C > 0 ? 14 : -14, y: -10 } : { x: -14, y: P > 0 ? 14 : -14 }; } var HU = yP; @@ -50521,17 +50611,17 @@ var vd = { nodeSpacing: 70, layerSpacing: 90 }; -function OFn(k, S) { +function LFn(k, M) { const C = /* @__PURE__ */ new Map(); for (const L of k.entities) { - const B = ka(L.label, Zi.nodeLabel, Cu.nodeLabel); + const _ = ka(L.label, Zi.nodeLabel, Cu.nodeLabel); let m = 0; - for (const fe of L.attributes) { - const Y = `${fe.type} ${fe.name}${fe.keys.length > 0 ? " " + fe.keys.join(",") : ""}`, ye = chn(Y, vd.attrFontSize); - ye > m && (m = ye); + for (const oe of L.attributes) { + const Q = `${oe.type} ${oe.name}${oe.keys.length > 0 ? " " + oe.keys.join(",") : ""}`, ke = chn(Q, vd.attrFontSize); + ke > m && (m = ke); } - const U = Math.max(vd.minWidth, B + vd.boxPadX * 2, m + vd.boxPadX * 2), Z = vd.headerHeight + Math.max(L.attributes.length, 1) * vd.rowHeight; - C.set(L.id, { width: U, height: Z }); + const q = Math.max(vd.minWidth, _ + vd.boxPadX * 2, m + vd.boxPadX * 2), Z = vd.headerHeight + Math.max(L.attributes.length, 1) * vd.rowHeight; + C.set(L.id, { width: q, height: Z }); } const P = { id: "root", @@ -50548,65 +50638,65 @@ function OFn(k, S) { edges: [] }; for (const L of k.entities) { - const B = C.get(L.id); - P.children.push({ id: L.id, width: B.width, height: B.height }); + const _ = C.get(L.id); + P.children.push({ id: L.id, width: _.width, height: _.height }); } for (let L = 0; L < k.relationships.length; L++) { - const B = k.relationships[L], m = M4(B.label, Zi.edgeLabel, Cu.edgeLabel), U = { id: `e${L}`, sources: [B.entity1], targets: [B.entity2] }; - B.label && (U.labels = [{ text: B.label, width: m.width + 8, height: m.height + 6 }]), P.edges.push(U); + const _ = k.relationships[L], m = M4(_.label, Zi.edgeLabel, Cu.edgeLabel), q = { id: `e${L}`, sources: [_.entity1], targets: [_.entity2] }; + _.label && (q.labels = [{ text: _.label, width: m.width + 8, height: m.height + 6 }]), P.edges.push(q); } return { elkGraph: P, entitySizes: C }; } -function LFn(k, S, C) { +function DFn(k, M, C) { const P = /* @__PURE__ */ new Map(); - for (const m of S.entities) P.set(m.id, m); + for (const m of M.entities) P.set(m.id, m); const L = []; for (const m of k.children ?? []) { - const U = P.get(m.id); - U && L.push({ - id: U.id, - label: U.label, - attributes: U.attributes, + const q = P.get(m.id); + q && L.push({ + id: q.id, + label: q.label, + attributes: q.attributes, x: m.x ?? 0, y: m.y ?? 0, - width: m.width ?? C.get(U.id).width, - height: m.height ?? C.get(U.id).height, + width: m.width ?? C.get(q.id).width, + height: m.height ?? C.get(q.id).height, headerHeight: vd.headerHeight, rowHeight: vd.rowHeight }); } - const B = []; + const _ = []; for (let m = 0; m < (k.edges?.length ?? 0); m++) { - const U = k.edges[m], Z = S.relationships[m], fe = []; - if (U.sections && U.sections.length > 0) { - const Y = U.sections[0]; - if (fe.push({ x: Y.startPoint.x, y: Y.startPoint.y }), Y.bendPoints) - for (const ye of Y.bendPoints) - fe.push({ x: ye.x, y: ye.y }); - fe.push({ x: Y.endPoint.x, y: Y.endPoint.y }); + const q = k.edges[m], Z = M.relationships[m], oe = []; + if (q.sections && q.sections.length > 0) { + const Q = q.sections[0]; + if (oe.push({ x: Q.startPoint.x, y: Q.startPoint.y }), Q.bendPoints) + for (const ke of Q.bendPoints) + oe.push({ x: ke.x, y: ke.y }); + oe.push({ x: Q.endPoint.x, y: Q.endPoint.y }); } - B.push({ + _.push({ entity1: Z.entity1, entity2: Z.entity2, cardinality1: Z.cardinality1, cardinality2: Z.cardinality2, label: Z.label, identifying: Z.identifying, - points: fe + points: oe }); } return { width: k.width ?? 600, height: k.height ?? 400, entities: L, - relationships: B + relationships: _ }; } -function DFn(k, S = {}) { +function NFn(k, M = {}) { if (k.entities.length === 0) return { width: 0, height: 0, entities: [], relationships: [] }; - const { elkGraph: C, entitySizes: P } = OFn(k), L = jbe(C); - return LFn(L, k, P); + const { elkGraph: C, entitySizes: P } = LFn(k), L = Ebe(C); + return DFn(L, k, P); } var Im = { attrSize: 11, @@ -50614,29 +50704,29 @@ var Im = { keySize: 9, keyWeight: 600 }; -function NFn(k, S, C = "Inter", P = !1) { +function FFn(k, M, C = "Inter", P = !1) { const L = []; - L.push(xP(k.width, k.height, S, P)), L.push(AP(C, !0)), L.push("<defs>"), L.push("</defs>"); - for (const B of k.relationships) - L.push(BFn(B)); - for (const B of k.entities) - L.push(FFn(B)); - for (const B of k.relationships) - L.push(JFn(B)); - for (const B of k.relationships) - L.push(_Fn(B)); + L.push(xP(k.width, k.height, M, P)), L.push(AP(C, !0)), L.push("<defs>"), L.push("</defs>"); + for (const _ of k.relationships) + L.push(BFn(_)); + for (const _ of k.entities) + L.push(RFn(_)); + for (const _ of k.relationships) + L.push(GFn(_)); + for (const _ of k.relationships) + L.push(JFn(_)); return L.push("</svg>"), L.join(` `); } -function FFn(k) { - const { id: S, x: C, y: P, width: L, height: B, headerHeight: m, rowHeight: U, label: Z, attributes: fe } = k, Y = []; - Y.push( - `<g class="entity" data-id="${jP(S)}" data-label="${jP(Z)}">` - ), Y.push( - ` <rect x="${C}" y="${P}" width="${L}" height="${B}" rx="0" ry="0" fill="var(--_node-fill)" stroke="var(--_node-stroke)" stroke-width="${qs.outerBox}" />` - ), Y.push( +function RFn(k) { + const { id: M, x: C, y: P, width: L, height: _, headerHeight: m, rowHeight: q, label: Z, attributes: oe } = k, Q = []; + Q.push( + `<g class="entity" data-id="${jP(M)}" data-label="${jP(Z)}">` + ), Q.push( + ` <rect x="${C}" y="${P}" width="${L}" height="${_}" rx="0" ry="0" fill="var(--_node-fill)" stroke="var(--_node-stroke)" stroke-width="${qs.outerBox}" />` + ), Q.push( ` <rect x="${C}" y="${P}" width="${L}" height="${m}" rx="0" ry="0" fill="var(--_group-hdr)" stroke="var(--_node-stroke)" stroke-width="${qs.outerBox}" />` - ), Y.push( + ), Q.push( " " + ya( Z, C + L / 2, @@ -50645,49 +50735,49 @@ function FFn(k) { `text-anchor="middle" font-size="${Zi.nodeLabel}" font-weight="700" fill="var(--_text)"` ) ); - const ye = P + m; - Y.push( - ` <line x1="${C}" y1="${ye}" x2="${C + L}" y2="${ye}" stroke="var(--_node-stroke)" stroke-width="${qs.innerBox}" />` + const ke = P + m; + Q.push( + ` <line x1="${C}" y1="${ke}" x2="${C + L}" y2="${ke}" stroke="var(--_node-stroke)" stroke-width="${qs.innerBox}" />` ); - for (let de = 0; de < fe.length; de++) { - const Oe = fe[de], Ne = ye + de * U + U / 2; - Y.push(" " + RFn(Oe, C, Ne, L).replace(/\n/g, ` + for (let de = 0; de < oe.length; de++) { + const Oe = oe[de], Ne = ke + de * q + q / 2; + Q.push(" " + _Fn(Oe, C, Ne, L).replace(/\n/g, ` `)); } - return fe.length === 0 && Y.push( - ` <text x="${C + L / 2}" y="${ye + U / 2}" text-anchor="middle" dy="${va}" font-size="${Im.attrSize}" fill="var(--_text-faint)" font-style="italic">(no attributes)</text>` - ), Y.push("</g>"), Y.join(` + return oe.length === 0 && Q.push( + ` <text x="${C + L / 2}" y="${ke + q / 2}" text-anchor="middle" dy="${va}" font-size="${Im.attrSize}" fill="var(--_text-faint)" font-style="italic">(no attributes)</text>` + ), Q.push("</g>"), Q.join(` `); } -function RFn(k, S, C, P) { - const L = [], B = k.comment && k.comment.length > 0; - if (B) { - const fe = k.comment.replace(/<br\s*\/?>/gi, ` +function _Fn(k, M, C, P) { + const L = [], _ = k.comment && k.comment.length > 0; + if (_) { + const oe = k.comment.replace(/<br\s*\/?>/gi, ` `); - L.push(`<g><title>${gbe(fe)}`); + L.push(`${pbe(oe)}`); } let m = 0; if (k.keys.length > 0) { - const fe = k.keys.join(","); - m = ka(fe, Im.keySize, Im.keyWeight) + 8, L.push( - `` + const oe = k.keys.join(","); + m = ka(oe, Im.keySize, Im.keyWeight) + 8, L.push( + `` ), L.push( - `${k.keys.join(",")}` + `${k.keys.join(",")}` ); } - const U = S + 8 + (m > 0 ? m + 6 : 0); + const q = M + 8 + (m > 0 ? m + 6 : 0); L.push( - `${gbe(k.type)}` + `${pbe(k.type)}` ); - const Z = S + P - 8; + const Z = M + P - 8; return L.push( - `${gbe(k.name)}` - ), B && L.push(""), L.join(` + `${pbe(k.name)}` + ), _ && L.push(""), L.join(` `); } function BFn(k) { if (k.points.length < 2) return ""; - const S = k.points.map((B) => `${B.x},${B.y}`).join(" "), C = k.identifying ? "" : ' stroke-dasharray="6 4"', P = k.label ? ` data-label="${jP(k.label)}"` : ""; + const M = k.points.map((_) => `${_.x},${_.y}`).join(" "), C = k.identifying ? "" : ' stroke-dasharray="6 4"', P = k.label ? ` data-label="${jP(k.label)}"` : ""; return ``; + ].join(" ")}${P} points="${M}" fill="none" stroke="var(--_line)" stroke-width="${qs.connector}"${C} />`; } -function _Fn(k) { +function JFn(k) { if (!k.label || k.points.length < 2) return ""; - const S = GFn(k.points), C = M4(k.label, Zi.edgeLabel, Cu.edgeLabel), P = C.width + 8, L = C.height + 6; - return ` + const M = HFn(k.points), C = M4(k.label, Zi.edgeLabel, Cu.edgeLabel), P = C.width + 8, L = C.height + 6; + return ` ${ya( k.label, - S.x, - S.y, + M.x, + M.y, Zi.edgeLabel, `text-anchor="middle" font-size="${Zi.edgeLabel}" font-weight="${Cu.edgeLabel}" fill="var(--_text-muted)"` )}`; } -function JFn(k) { +function GFn(k) { if (k.points.length < 2) return ""; - const S = [], C = k.points[0], P = k.points[1]; - S.push(Vfn(C, P, k.cardinality1)); - const L = k.points[k.points.length - 1], B = k.points[k.points.length - 2]; - return S.push(Vfn(L, B, k.cardinality2)), S.join(` + const M = [], C = k.points[0], P = k.points[1]; + M.push(Vfn(C, P, k.cardinality1)); + const L = k.points[k.points.length - 1], _ = k.points[k.points.length - 2]; + return M.push(Vfn(L, _, k.cardinality2)), M.join(` `); } -function Vfn(k, S, C) { - const P = [], L = qs.connector + 0.25, B = k.x - S.x, m = k.y - S.y, U = Math.sqrt(B * B + m * m); - if (U === 0) return ""; - const Z = B / U, fe = m / U, Y = -fe, ye = Z, de = k.x - Z * 4, Oe = k.y - fe * 4, Ne = k.x - Z * 16, Q = k.y - fe * 16, ft = C === "one" || C === "zero-one", Fn = C === "many" || C === "zero-many", Tt = C === "zero-one" || C === "zero-many"; +function Vfn(k, M, C) { + const P = [], L = qs.connector + 0.25, _ = k.x - M.x, m = k.y - M.y, q = Math.sqrt(_ * _ + m * m); + if (q === 0) return ""; + const Z = _ / q, oe = m / q, Q = -oe, ke = Z, de = k.x - Z * 4, Oe = k.y - oe * 4, Ne = k.x - Z * 16, Y = k.y - oe * 16, ft = C === "one" || C === "zero-one", Fn = C === "many" || C === "zero-many", Tt = C === "zero-one" || C === "zero-many"; if (ft) { P.push( - `` + `` ); - const xt = de - Z * 4, Lt = Oe - fe * 4; + const xt = de - Z * 4, Lt = Oe - oe * 4; P.push( - `` + `` ); } if (Fn) { const xt = de, Lt = Oe; P.push( // Top fan line - `` + `` ), P.push( // Center line - `` + `` ), P.push( // Bottom fan line - `` + `` ); } if (Tt) { - const Kt = Fn ? 20 : 12, xt = k.x - Z * Kt, Lt = k.y - fe * Kt; + const Kt = Fn ? 20 : 12, xt = k.x - Z * Kt, Lt = k.y - oe * Kt; P.push( `` ); @@ -50752,31 +50842,31 @@ function Vfn(k, S, C) { return P.join(` `); } -function GFn(k) { +function HFn(k) { if (k.length === 0) return { x: 0, y: 0 }; if (k.length === 1) return k[0]; - let S = 0; + let M = 0; for (let L = 1; L < k.length; L++) { - const B = k[L].x - k[L - 1].x, m = k[L].y - k[L - 1].y; - S += Math.sqrt(B * B + m * m); + const _ = k[L].x - k[L - 1].x, m = k[L].y - k[L - 1].y; + M += Math.sqrt(_ * _ + m * m); } - if (S === 0) return k[0]; - const C = S / 2; + if (M === 0) return k[0]; + const C = M / 2; let P = 0; for (let L = 1; L < k.length; L++) { - const B = k[L].x - k[L - 1].x, m = k[L].y - k[L - 1].y, U = Math.sqrt(B * B + m * m); - if (P + U >= C) { - const Z = U > 0 ? (C - P) / U : 0; + const _ = k[L].x - k[L - 1].x, m = k[L].y - k[L - 1].y, q = Math.sqrt(_ * _ + m * m); + if (P + q >= C) { + const Z = q > 0 ? (C - P) / q : 0; return { - x: k[L - 1].x + B * Z, + x: k[L - 1].x + _ * Z, y: k[L - 1].y + m * Z }; } - P += U; + P += q; } return k[k.length - 1]; } -var gbe = yP; +var pbe = yP; function jP(k) { return k.replace(/&/g, "&").replace(/"/g, """).replace(//g, ">"); } @@ -50803,56 +50893,56 @@ var ri = { legendGap: 6, legendItemGap: 16 }; -function HFn(k, S = {}) { - return k.horizontal ? UFn(k) : qFn(k); +function qFn(k, M = {}) { + return k.horizontal ? zFn(k) : UFn(k); } -function qFn(k) { - const S = !!k.title, C = !!k.xAxis.title, P = !!k.yAxis.title, L = k.series.length > 1, B = k.yAxis.range, m = ghn(B.min, B.max), U = Math.max( +function UFn(k) { + const M = !!k.title, C = !!k.xAxis.title, P = !!k.yAxis.title, L = k.series.length > 1, _ = k.yAxis.range, m = ghn(_.min, _.max), q = Math.max( ...m.map((Qc) => ka(UU(Qc), ri.axisLabelFontSize, ri.axisLabelFontWeight)), ri.yLabelWidth - ), Z = ri.padding + (S ? ri.titleHeight : 0) + (L ? ri.legendHeight : 0), fe = ri.padding + ri.xLabelHeight + (C ? ri.axisTitlePad : 0), Y = ri.padding + U + ri.yLabelGap + (P ? ri.axisTitlePad : 0), ye = ri.padding, de = ri.plotWidth, Oe = ri.plotHeight, Ne = Y + de + ye, Q = Z + Oe + fe, ft = { x: Y, y: Z, width: de, height: Oe }, Fn = Ebe(k), Tt = (Qc) => Y + (Qc + 0.5) * (de / Fn), Kt = de / Fn, xt = (Qc) => { - const kc = (Qc - B.min) / (B.max - B.min || 1); + ), Z = ri.padding + (M ? ri.titleHeight : 0) + (L ? ri.legendHeight : 0), oe = ri.padding + ri.xLabelHeight + (C ? ri.axisTitlePad : 0), Q = ri.padding + q + ri.yLabelGap + (P ? ri.axisTitlePad : 0), ke = ri.padding, de = ri.plotWidth, Oe = ri.plotHeight, Ne = Q + de + ke, Y = Z + Oe + oe, ft = { x: Q, y: Z, width: de, height: Oe }, Fn = Abe(k), Tt = (Qc) => Q + (Qc + 0.5) * (de / Fn), Kt = de / Fn, xt = (Qc) => { + const kc = (Qc - _.min) / (_.max - _.min || 1); return Z + Oe - kc * Oe; - }, Lt = zFn(k, Tt, Z + Oe), hu = m.map((Qc) => ({ + }, Lt = WFn(k, Tt, Z + Oe), hu = m.map((Qc) => ({ label: UU(Qc), - x: Y, + x: Q, y: xt(Qc), - tx: Y - ri.tickLength, + tx: Q - ri.tickLength, ty: xt(Qc), - labelX: Y - ri.yLabelGap, + labelX: Q - ri.yLabelGap, labelY: xt(Qc), textAnchor: "end" })), tc = m.map((Qc) => ({ - x1: Y, + x1: Q, y1: xt(Qc), - x2: Y + de, + x2: Q + de, y2: xt(Qc) - })), jn = Abe(k, Fn), vn = k.series.map((Qc, kc) => kc), Jt = WFn(k, Tt, xt, Kt, B.min, jn, vn), rr = XFn(k, Tt, xt, jn, vn), ic = ri.padding + (S ? ri.titleHeight : 0) + ri.legendHeight / 2, G = L ? phn(k, Ne / 2, ic, vn) : [], Cs = { x1: Y, y1: Z + Oe, x2: Y + de, y2: Z + Oe }, Ps = { x1: Y, y1: Z, x2: Y, y2: Z + Oe }, ja = { + })), jn = xbe(k, Fn), vn = k.series.map((Qc, kc) => kc), Jt = XFn(k, Tt, xt, Kt, _.min, jn, vn), rr = KFn(k, Tt, xt, jn, vn), ic = ri.padding + (M ? ri.titleHeight : 0) + ri.legendHeight / 2, G = L ? phn(k, Ne / 2, ic, vn) : [], Cs = { x1: Q, y1: Z + Oe, x2: Q + de, y2: Z + Oe }, Ps = { x1: Q, y1: Z, x2: Q, y2: Z + Oe }, ja = { ticks: Lt, line: Cs, - ...C ? { title: { text: k.xAxis.title, x: Y + de / 2, y: Q - ri.padding } } : {} + ...C ? { title: { text: k.xAxis.title, x: Q + de / 2, y: Y - ri.padding } } : {} }, ih = { ticks: hu, line: Ps, ...P ? { title: { text: k.yAxis.title, x: ri.padding + 4, y: Z + Oe / 2, rotate: -90 } } : {} - }, uf = S ? { text: k.title, x: Ne / 2, y: ri.padding + ri.titleFontSize } : void 0; - return { width: Ne, height: Q, title: uf, xAxis: ja, yAxis: ih, plotArea: ft, bars: Jt, lines: rr, gridLines: tc, legend: G }; + }, uf = M ? { text: k.title, x: Ne / 2, y: ri.padding + ri.titleFontSize } : void 0; + return { width: Ne, height: Y, title: uf, xAxis: ja, yAxis: ih, plotArea: ft, bars: Jt, lines: rr, gridLines: tc, legend: G }; } -function UFn(k) { - const S = !!k.title, C = !!k.xAxis.title, P = !!k.yAxis.title, L = k.series.length > 1, B = k.yAxis.range, m = ghn(B.min, B.max), U = Ebe(k), Z = Abe(k, U), fe = Math.max( +function zFn(k) { + const M = !!k.title, C = !!k.xAxis.title, P = !!k.yAxis.title, L = k.series.length > 1, _ = k.yAxis.range, m = ghn(_.min, _.max), q = Abe(k), Z = xbe(k, q), oe = Math.max( ...Z.map((Hr) => ka(Hr, ri.axisLabelFontSize, ri.axisLabelFontWeight)), 40 - ), Y = ri.padding + (S ? ri.titleHeight : 0) + (L ? ri.legendHeight : 0), ye = ri.padding + ri.xLabelHeight + (P ? ri.axisTitlePad : 0), de = ri.padding + fe + ri.yLabelGap + (C ? ri.axisTitlePad : 0), Oe = ri.padding, Ne = ri.plotWidth, Q = ri.plotHeight, ft = de + Ne + Oe, Fn = Y + Q + ye, Tt = { x: de, y: Y, width: Ne, height: Q }, Kt = (Hr) => { - const Fo = (Hr - B.min) / (B.max - B.min || 1); + ), Q = ri.padding + (M ? ri.titleHeight : 0) + (L ? ri.legendHeight : 0), ke = ri.padding + ri.xLabelHeight + (P ? ri.axisTitlePad : 0), de = ri.padding + oe + ri.yLabelGap + (C ? ri.axisTitlePad : 0), Oe = ri.padding, Ne = ri.plotWidth, Y = ri.plotHeight, ft = de + Ne + Oe, Fn = Q + Y + ke, Tt = { x: de, y: Q, width: Ne, height: Y }, Kt = (Hr) => { + const Fo = (Hr - _.min) / (_.max - _.min || 1); return de + Fo * Ne; - }, xt = Q / U, Lt = (Hr) => Y + (Hr + 0.5) * xt, hu = m.map((Hr) => ({ + }, xt = Y / q, Lt = (Hr) => Q + (Hr + 0.5) * xt, hu = m.map((Hr) => ({ label: UU(Hr), x: Kt(Hr), - y: Y + Q, + y: Q + Y, tx: Kt(Hr), - ty: Y + Q + ri.tickLength, + ty: Q + Y + ri.tickLength, labelX: Kt(Hr), - labelY: Y + Q + 18, + labelY: Q + Y + 18, textAnchor: "middle" })), tc = Z.map((Hr, Fo) => ({ label: Hr, @@ -50865,9 +50955,9 @@ function UFn(k) { textAnchor: "end" })), jn = m.map((Hr) => ({ x1: Kt(Hr), - y1: Y, + y1: Q, x2: Kt(Hr), - y2: Y + Q + y2: Q + Y })), vn = k.series.map((Hr, Fo) => Fo), rr = k.series.filter((Hr) => Hr.type === "bar").length, ic = []; if (rr > 0) { const Hr = xt * (1 - ri.barPadRatio), Fo = rr > 1 ? (Hr - (rr - 1) * ri.barGroupGap) / rr : Hr, Dl = Math.min(Fo, ri.maxBarWidth), Hg = rr > 1 ? Dl * rr + ri.barGroupGap * (rr - 1) : Dl; @@ -50878,7 +50968,7 @@ function UFn(k) { continue; } for (let qb = 0; qb < T0.data.length; qb++) { - const Pu = Lt(qb) - Hg / 2 + Cm * (Dl + ri.barGroupGap), ju = Kt(Math.max(T0.data[qb], B.min)), tA = Kt(Math.max(0, B.min)); + const Pu = Lt(qb) - Hg / 2 + Cm * (Dl + ri.barGroupGap), ju = Kt(Math.max(T0.data[qb], _.min)), tA = Kt(Math.max(0, _.min)); ic.push({ x: Math.min(tA, ju), y: Pu, @@ -50903,112 +50993,112 @@ function UFn(k) { const Fo = Hr.data.map((Dl, Hg) => ({ x: Kt(Dl), y: Lt(Hg), value: Dl, label: Z[Hg] })); G.push({ points: Fo, seriesIndex: Cs, colorIndex: vn[Ps] }), Cs++, Ps++; } - const ja = { x1: de, y1: Y + Q, x2: de + Ne, y2: Y + Q }, ih = { x1: de, y1: Y, x2: de, y2: Y + Q }, uf = { + const ja = { x1: de, y1: Q + Y, x2: de + Ne, y2: Q + Y }, ih = { x1: de, y1: Q, x2: de, y2: Q + Y }, uf = { ticks: hu, line: ja, ...P ? { title: { text: k.yAxis.title, x: de + Ne / 2, y: Fn - ri.padding } } : {} }, Qc = { ticks: tc, line: ih, - ...C ? { title: { text: k.xAxis.title, x: ri.padding + 4, y: Y + Q / 2, rotate: -90 } } : {} - }, kc = S ? { text: k.title, x: ft / 2, y: ri.padding + ri.titleFontSize } : void 0, Xu = ri.padding + (S ? ri.titleHeight : 0) + ri.legendHeight / 2, Ku = L ? phn(k, ft / 2, Xu, vn) : []; + ...C ? { title: { text: k.xAxis.title, x: ri.padding + 4, y: Q + Y / 2, rotate: -90 } } : {} + }, kc = M ? { text: k.title, x: ft / 2, y: ri.padding + ri.titleFontSize } : void 0, Xu = ri.padding + (M ? ri.titleHeight : 0) + ri.legendHeight / 2, Ku = L ? phn(k, ft / 2, Xu, vn) : []; return { width: ft, height: Fn, horizontal: !0, title: kc, xAxis: uf, yAxis: Qc, plotArea: Tt, bars: ic, lines: G, gridLines: jn, legend: Ku }; } -function Ebe(k) { +function Abe(k) { if (k.xAxis.categories) return k.xAxis.categories.length; - for (const S of k.series) - if (S.data.length > 0) return S.data.length; + for (const M of k.series) + if (M.data.length > 0) return M.data.length; return 1; } -function Abe(k, S) { +function xbe(k, M) { if (k.xAxis.categories) return k.xAxis.categories; if (k.xAxis.range) { - const { min: C, max: P } = k.xAxis.range, L = S > 1 ? (P - C) / (S - 1) : 0; - return Array.from({ length: S }, (B, m) => UU(C + L * m)); + const { min: C, max: P } = k.xAxis.range, L = M > 1 ? (P - C) / (M - 1) : 0; + return Array.from({ length: M }, (_, m) => UU(C + L * m)); } - return Array.from({ length: S }, (C, P) => String(P + 1)); + return Array.from({ length: M }, (C, P) => String(P + 1)); } -function zFn(k, S, C, P) { - const L = Ebe(k); - return Abe(k, L).map((m, U) => ({ +function WFn(k, M, C, P) { + const L = Abe(k); + return xbe(k, L).map((m, q) => ({ label: m, - x: S(U), + x: M(q), y: C, - tx: S(U), + tx: M(q), ty: C + ri.tickLength, - labelX: S(U), + labelX: M(q), labelY: C + 18, textAnchor: "middle" })); } -function WFn(k, S, C, P, L, B, m) { +function XFn(k, M, C, P, L, _, m) { const Z = k.series.filter((ft) => ft.type === "bar").length; if (Z === 0) return []; - const fe = P * (1 - ri.barPadRatio), Y = Z > 1 ? (fe - (Z - 1) * ri.barGroupGap) / Z : fe, ye = Math.min(Y, ri.maxBarWidth), de = Z > 1 ? ye * Z + ri.barGroupGap * (Z - 1) : ye, Oe = []; - let Ne = 0, Q = 0; + const oe = P * (1 - ri.barPadRatio), Q = Z > 1 ? (oe - (Z - 1) * ri.barGroupGap) / Z : oe, ke = Math.min(Q, ri.maxBarWidth), de = Z > 1 ? ke * Z + ri.barGroupGap * (Z - 1) : ke, Oe = []; + let Ne = 0, Y = 0; for (const ft of k.series) { if (ft.type !== "bar") { - Q++; + Y++; continue; } for (let Fn = 0; Fn < ft.data.length; Fn++) { - const xt = S(Fn) - de / 2 + Ne * (ye + ri.barGroupGap), Lt = C(ft.data[Fn]), hu = C(Math.max(0, L)); + const xt = M(Fn) - de / 2 + Ne * (ke + ri.barGroupGap), Lt = C(ft.data[Fn]), hu = C(Math.max(0, L)); Oe.push({ x: xt, y: Math.min(Lt, hu), - width: ye, + width: ke, height: Math.abs(hu - Lt), value: ft.data[Fn], - label: B[Fn], + label: _[Fn], seriesIndex: Ne, - colorIndex: m[Q] + colorIndex: m[Y] }); } - Ne++, Q++; + Ne++, Y++; } return Oe; } -function XFn(k, S, C, P, L) { - const B = []; - let m = 0, U = 0; +function KFn(k, M, C, P, L) { + const _ = []; + let m = 0, q = 0; for (const Z of k.series) { if (Z.type !== "line") { - U++; + q++; continue; } - const fe = Z.data.map((Y, ye) => ({ x: S(ye), y: C(Y), value: Y, label: P[ye] })); - B.push({ points: fe, seriesIndex: m, colorIndex: L[U] }), m++, U++; + const oe = Z.data.map((Q, ke) => ({ x: M(ke), y: C(Q), value: Q, label: P[ke] })); + _.push({ points: oe, seriesIndex: m, colorIndex: L[q] }), m++, q++; } - return B; + return _; } -function ghn(k, S) { - const C = S - k; +function ghn(k, M) { + const C = M - k; if (C <= 0) return [k]; - const P = C / 6, L = Math.pow(10, Math.floor(Math.log10(P))), B = P / L; + const P = C / 6, L = Math.pow(10, Math.floor(Math.log10(P))), _ = P / L; let m; - B <= 1.5 ? m = L : B <= 3 ? m = 2 * L : B <= 7 ? m = 5 * L : m = 10 * L; - const U = Math.ceil(k / m) * m, Z = []; - for (let fe = U; fe <= S + m * 1e-3; fe += m) - Z.push(Math.round(fe * 1e10) / 1e10); + _ <= 1.5 ? m = L : _ <= 3 ? m = 2 * L : _ <= 7 ? m = 5 * L : m = 10 * L; + const q = Math.ceil(k / m) * m, Z = []; + for (let oe = q; oe <= M + m * 1e-3; oe += m) + Z.push(Math.round(oe * 1e10) / 1e10); return Z; } function UU(k) { return Number.isInteger(k) ? String(k) : k.toFixed(Math.abs(k) < 10 ? 1 : 0); } -function phn(k, S, C, P) { +function phn(k, M, C, P) { const L = []; - let B = 0, m = 0; - for (let Y = 0; Y < k.series.length; Y++) { - const ye = k.series[Y], de = ye.type === "bar" ? `Bar ${B + 1}` : `Line ${m + 1}`; - L.push({ label: de, x: 0, y: C, type: ye.type, seriesIndex: ye.type === "bar" ? B : m, colorIndex: P[Y] }), ye.type === "bar" ? B++ : m++; + let _ = 0, m = 0; + for (let Q = 0; Q < k.series.length; Q++) { + const ke = k.series[Q], de = ke.type === "bar" ? `Bar ${_ + 1}` : `Line ${m + 1}`; + L.push({ label: de, x: 0, y: C, type: ke.type, seriesIndex: ke.type === "bar" ? _ : m, colorIndex: P[Q] }), ke.type === "bar" ? _++ : m++; } - const U = L.map((Y) => { - const ye = ka(Y.label, ri.legendFontSize, ri.legendFontWeight); - return ri.legendSwatchW + ri.legendGap + ye; - }), Z = U.reduce((Y, ye) => Y + ye, 0) + (L.length - 1) * ri.legendItemGap; - let fe = S - Z / 2; - for (let Y = 0; Y < L.length; Y++) - L[Y].x = fe, fe += U[Y] + ri.legendItemGap; + const q = L.map((Q) => { + const ke = ka(Q.label, ri.legendFontSize, ri.legendFontWeight); + return ri.legendSwatchW + ri.legendGap + ke; + }), Z = q.reduce((Q, ke) => Q + ke, 0) + (L.length - 1) * ri.legendItemGap; + let oe = M - Z / 2; + for (let Q = 0; Q < L.length; Q++) + L[Q].x = oe, oe += q[Q] + ri.legendItemGap; return L; } var Do = { @@ -51033,22 +51123,22 @@ var Do = { minY: 4, pointerSize: 6 }; -function KFn(k, S, C = "Inter", P = !1, L = !1) { - const B = [], m = Math.max(0, ...k.bars.map((jn) => jn.colorIndex), ...k.lines.map((jn) => jn.colorIndex)), U = xP(k.width, k.height, S, P).replace(" jn.points.length), 0), fe = Z > 0 && Z <= 12, { style: Y } = VFn(k, L, fe, S.accent, S.bg); - B.push(Y); - const { plotArea: ye } = k, de = k.xAxis.ticks.map((jn) => jn.x), Oe = k.horizontal ? k.yAxis.ticks.map((jn) => jn.y) : k.gridLines.map((jn) => jn.y1), Ne = de.length > 1 ? Math.abs(de[1] - de[0]) : ye.width / 6, Q = Oe.length > 1 ? Math.abs(Oe[1] - Oe[0]) : ye.height / 6, ft = Ne / Math.max(1, Math.round(Ne / 20)), Fn = Q / Math.max(1, Math.round(Q / 20)), Tt = de[0] ?? ye.x, Kt = Oe[0] ?? ye.y, xt = Tt - Math.ceil((Tt - ye.x) / ft) * ft, Lt = Kt - Math.ceil((Kt - ye.y) / Fn) * Fn; - for (let jn = Lt; jn <= ye.y + ye.height + 0.5; jn += Fn) - for (let vn = xt; vn <= ye.x + ye.width + 0.5; vn += ft) - B.push(``); +function VFn(k, M, C = "Inter", P = !1, L = !1) { + const _ = [], m = Math.max(0, ...k.bars.map((jn) => jn.colorIndex), ...k.lines.map((jn) => jn.colorIndex)), q = xP(k.width, k.height, M, P).replace(" jn.points.length), 0), oe = Z > 0 && Z <= 12, { style: Q } = QFn(k, L, oe, M.accent, M.bg); + _.push(Q); + const { plotArea: ke } = k, de = k.xAxis.ticks.map((jn) => jn.x), Oe = k.horizontal ? k.yAxis.ticks.map((jn) => jn.y) : k.gridLines.map((jn) => jn.y1), Ne = de.length > 1 ? Math.abs(de[1] - de[0]) : ke.width / 6, Y = Oe.length > 1 ? Math.abs(Oe[1] - Oe[0]) : ke.height / 6, ft = Ne / Math.max(1, Math.round(Ne / 20)), Fn = Y / Math.max(1, Math.round(Y / 20)), Tt = de[0] ?? ke.x, Kt = Oe[0] ?? ke.y, xt = Tt - Math.ceil((Tt - ke.x) / ft) * ft, Lt = Kt - Math.ceil((Kt - ke.y) / Fn) * Fn; + for (let jn = Lt; jn <= ke.y + ke.height + 0.5; jn += Fn) + for (let vn = xt; vn <= ke.x + ke.width + 0.5; vn += ft) + _.push(``); const hu = []; for (const jn of k.bars) { - const vn = ` data-value="${jn.value}"${jn.label ? ` data-label="${Ol(jn.label)}"` : ""}`, Jt = k.horizontal ? YFn(jn.x, jn.y, jn.width, jn.height, Do.barRadius) : QFn(jn.x, jn.y, jn.width, jn.height, Do.barRadius); - if (B.push( + const vn = ` data-value="${jn.value}"${jn.label ? ` data-label="${Ol(jn.label)}"` : ""}`, Jt = k.horizontal ? ZFn(jn.x, jn.y, jn.width, jn.height, Do.barRadius) : YFn(jn.x, jn.y, jn.width, jn.height, Do.barRadius); + if (_.push( `` ), L) { - const rr = pbe(jn.value), ic = jn.label ? `${jn.label}: ${rr}` : rr, G = Qfn(jn.x + jn.width / 2, jn.y, rr); + const rr = mbe(jn.value), ic = jn.label ? `${jn.label}: ${rr}` : rr, G = Qfn(jn.x + jn.width / 2, jn.y, rr); hu.push( `${Ol(ic)}` + G + "" ); @@ -51056,11 +51146,11 @@ function KFn(k, S, C = "Inter", P = !1, L = !1) { } for (const jn of k.lines) { if (jn.points.length === 0) continue; - const vn = ZFn(jn.points); - B.push(``), B.push(``); + const vn = eRn(jn.points); + _.push(``), _.push(``); } const tc = []; - if (L || fe) { + if (L || oe) { const jn = /* @__PURE__ */ new Map(); for (const Jt of k.legend) Jt.type === "line" && jn.set(Jt.seriesIndex, Jt.label); @@ -51074,9 +51164,9 @@ function KFn(k, S, C = "Inter", P = !1, L = !1) { const rr = Jt[0].x, ic = Jt[0].label || ""; if (L && Jt.length > 1) { const G = Math.min(...Jt.map((Ku) => Ku.y)), Cs = Math.max(...Jt.map((Ku) => Ku.y)), Ps = Do.dotRadius * 3, ja = ``, ih = Jt.map((Ku) => ({ - text: pbe(Ku.value), + text: mbe(Ku.value), legendLabel: jn.get(Ku.seriesIndex) || `Line ${Ku.seriesIndex + 1}` - })), uf = eRn(rr, G - Do.dotRadius, ic, ih), Qc = ih.map((Ku) => Ku.text), kc = ic ? `${ic}: ${Qc.join(" · ")}` : Qc.join(" · "); + })), uf = nRn(rr, G - Do.dotRadius, ic, ih), Qc = ih.map((Ku) => Ku.text), kc = ic ? `${ic}: ${Qc.join(" · ")}` : Qc.join(" · "); let Xu = `${ja}`; for (const Ku of Jt) { const Hr = ` data-value="${Ku.value}"${Ku.label ? ` data-label="${Ol(Ku.label)}"` : ""}`; @@ -51084,85 +51174,85 @@ function KFn(k, S, C = "Inter", P = !1, L = !1) { } Xu += `${Ol(kc)}${uf}`, tc.push(Xu); } else if (L) { - const G = Jt[0], Cs = ` data-value="${G.value}"${G.label ? ` data-label="${Ol(G.label)}"` : ""}`, Ps = pbe(G.value), ja = G.label ? `${G.label}: ${Ps}` : Ps, ih = Qfn(rr, G.y - Do.dotRadius, Ps), uf = fe ? `` : ""; + const G = Jt[0], Cs = ` data-value="${G.value}"${G.label ? ` data-label="${Ol(G.label)}"` : ""}`, Ps = mbe(G.value), ja = G.label ? `${G.label}: ${Ps}` : Ps, ih = Qfn(rr, G.y - Do.dotRadius, Ps), uf = oe ? `` : ""; tc.push( `${uf}${Ol(ja)}${ih}` ); } else for (const G of Jt) { const Cs = ` data-value="${G.value}"${G.label ? ` data-label="${Ol(G.label)}"` : ""}`; - B.push( + _.push( `` ); } } } for (const jn of k.xAxis.ticks) - B.push( + _.push( `${Ol(jn.label)}` ); for (const jn of k.yAxis.ticks) - B.push( + _.push( `${Ol(jn.label)}` ); if (k.xAxis.title) { const jn = k.xAxis.title, vn = jn.rotate ? ` transform="rotate(${jn.rotate},${jn.x},${jn.y})"` : ""; - B.push( + _.push( `${Ol(jn.text)}` ); } if (k.yAxis.title) { const jn = k.yAxis.title, vn = jn.rotate ? ` transform="rotate(${jn.rotate},${jn.x},${jn.y})"` : ""; - B.push( + _.push( `${Ol(jn.text)}` ); } - k.title && B.push( + k.title && _.push( `${Ol(k.title.text)}` ); for (const jn of k.legend) { if (jn.type === "bar") - B.push( + _.push( `` ); else { const ic = jn.y; - B.push( + _.push( `` ); } - B.push( + _.push( `${Ol(jn.label)}` ); } - for (const jn of hu) B.push(jn); - for (const jn of tc) B.push(jn); - return B.push(""), B.join(` + for (const jn of hu) _.push(jn); + for (const jn of tc) _.push(jn); + return _.push(""), _.join(` `); } -function VFn(k, S, C, P, L) { - const B = P ?? vbe, m = /* @__PURE__ */ new Set(); +function QFn(k, M, C, P, L) { + const _ = P ?? kbe, m = /* @__PURE__ */ new Set(); for (const de of k.bars) m.add(de.colorIndex); for (const de of k.lines) m.add(de.colorIndex); - const U = []; + const q = []; for (const de of [...m].sort((Oe, Ne) => Oe - Ne)) { - const Oe = de === 0 ? `var(--accent, ${vbe})` : INn(de, B, L); - U.push(` --xychart-color-${de}: ${Oe};`), U.push(` --xychart-bar-fill-${de}: color-mix(in srgb, var(--bg) 75%, var(--xychart-color-${de}) 25%);`); + const Oe = de === 0 ? `var(--accent, ${kbe})` : CNn(de, _, L); + q.push(` --xychart-color-${de}: ${Oe};`), q.push(` --xychart-bar-fill-${de}: color-mix(in srgb, var(--bg) 75%, var(--xychart-color-${de}) 25%);`); } const Z = []; for (const de of [...m].sort((Oe, Ne) => Oe - Ne)) { const Oe = `var(--xychart-color-${de})`; Z.push(` .xychart-bar.xychart-color-${de} { stroke: ${Oe}; fill: var(--xychart-bar-fill-${de}); }`), Z.push(` path.xychart-color-${de}, line.xychart-color-${de} { stroke: ${Oe}; }`), Z.push(` circle.xychart-color-${de} { fill: ${Oe}; }`); } - const fe = S ? ` + const oe = M ? ` .xychart-tip { opacity: 0; pointer-events: none; } .xychart-tip-bg { fill: var(--_text); filter: drop-shadow(0 1px 3px color-mix(in srgb, var(--fg) 20%, transparent)); } .xychart-tip-text { fill: var(--bg); font-size: ${Wu.fontSize}px; font-weight: ${Wu.fontWeight}; } .xychart-tip-ptr { fill: var(--_text); } .xychart-bar-group:hover .xychart-tip, - .xychart-dot-group:hover .xychart-tip { opacity: 1; }` : "", Y = U.length > 0 ? ` + .xychart-dot-group:hover .xychart-tip { opacity: 1; }` : "", Q = q.length > 0 ? ` svg { -${U.join(` +${q.join(` `)} }` : ""; return { style: ``, defs: "" }; } -function QFn(k, S, C, P, L) { - const B = Math.min(L, C / 2, P / 2); - return B <= 0 ? `M${Sn(k)},${Sn(S)} h${Sn(C)} v${Sn(P)} h${Sn(-C)} Z` : [ - `M${Sn(k)},${Sn(S + B)}`, +function YFn(k, M, C, P, L) { + const _ = Math.min(L, C / 2, P / 2); + return _ <= 0 ? `M${Sn(k)},${Sn(M)} h${Sn(C)} v${Sn(P)} h${Sn(-C)} Z` : [ + `M${Sn(k)},${Sn(M + _)}`, // start below top-left - `Q${Sn(k)},${Sn(S)} ${Sn(k + B)},${Sn(S)}`, + `Q${Sn(k)},${Sn(M)} ${Sn(k + _)},${Sn(M)}`, // top-left - `L${Sn(k + C - B)},${Sn(S)}`, + `L${Sn(k + C - _)},${Sn(M)}`, // top edge - `Q${Sn(k + C)},${Sn(S)} ${Sn(k + C)},${Sn(S + B)}`, + `Q${Sn(k + C)},${Sn(M)} ${Sn(k + C)},${Sn(M + _)}`, // top-right - `L${Sn(k + C)},${Sn(S + P - B)}`, + `L${Sn(k + C)},${Sn(M + P - _)}`, // right edge - `Q${Sn(k + C)},${Sn(S + P)} ${Sn(k + C - B)},${Sn(S + P)}`, + `Q${Sn(k + C)},${Sn(M + P)} ${Sn(k + C - _)},${Sn(M + P)}`, // bottom-right - `L${Sn(k + B)},${Sn(S + P)}`, + `L${Sn(k + _)},${Sn(M + P)}`, // bottom edge - `Q${Sn(k)},${Sn(S + P)} ${Sn(k)},${Sn(S + P - B)}`, + `Q${Sn(k)},${Sn(M + P)} ${Sn(k)},${Sn(M + P - _)}`, // bottom-left "Z" ].join(" "); } -function YFn(k, S, C, P, L) { - const B = Math.min(L, C / 2, P / 2); - return B <= 0 ? `M${Sn(k)},${Sn(S)} h${Sn(C)} v${Sn(P)} h${Sn(-C)} Z` : [ - `M${Sn(k + B)},${Sn(S)}`, +function ZFn(k, M, C, P, L) { + const _ = Math.min(L, C / 2, P / 2); + return _ <= 0 ? `M${Sn(k)},${Sn(M)} h${Sn(C)} v${Sn(P)} h${Sn(-C)} Z` : [ + `M${Sn(k + _)},${Sn(M)}`, // start after top-left - `L${Sn(k + C - B)},${Sn(S)}`, + `L${Sn(k + C - _)},${Sn(M)}`, // top edge - `Q${Sn(k + C)},${Sn(S)} ${Sn(k + C)},${Sn(S + B)}`, + `Q${Sn(k + C)},${Sn(M)} ${Sn(k + C)},${Sn(M + _)}`, // top-right - `L${Sn(k + C)},${Sn(S + P - B)}`, + `L${Sn(k + C)},${Sn(M + P - _)}`, // right edge - `Q${Sn(k + C)},${Sn(S + P)} ${Sn(k + C - B)},${Sn(S + P)}`, + `Q${Sn(k + C)},${Sn(M + P)} ${Sn(k + C - _)},${Sn(M + P)}`, // bottom-right - `L${Sn(k + B)},${Sn(S + P)}`, + `L${Sn(k + _)},${Sn(M + P)}`, // bottom edge - `Q${Sn(k)},${Sn(S + P)} ${Sn(k)},${Sn(S + P - B)}`, + `Q${Sn(k)},${Sn(M + P)} ${Sn(k)},${Sn(M + P - _)}`, // bottom-left - `L${Sn(k)},${Sn(S + B)}`, + `L${Sn(k)},${Sn(M + _)}`, // left edge - `Q${Sn(k)},${Sn(S)} ${Sn(k + B)},${Sn(S)}`, + `Q${Sn(k)},${Sn(M)} ${Sn(k + _)},${Sn(M)}`, // top-left "Z" ].join(" "); } -function ZFn(k) { +function eRn(k) { if (k.length === 0) return ""; if (k.length === 1) return `M${Sn(k[0].x)},${Sn(k[0].y)}`; if (k.length === 2) return `M${Sn(k[0].x)},${Sn(k[0].y)} L${Sn(k[1].x)},${Sn(k[1].y)}`; - const S = k.length, C = [], P = []; - for (let U = 0; U < S - 1; U++) - C.push(k[U + 1].x - k[U].x), P.push(C[U] === 0 ? 0 : (k[U + 1].y - k[U].y) / C[U]); - const L = new Array(S).fill(0); - if (S > 2) { - const U = new Array(S).fill(0), Z = new Array(S).fill(0); - for (let fe = 1; fe < S - 1; fe++) { - const Y = 2 * (C[fe - 1] + C[fe]), ye = 3 * (P[fe] - P[fe - 1]); - if (fe === 1) - U[fe] = C[fe] / Y, Z[fe] = ye / Y; + const M = k.length, C = [], P = []; + for (let q = 0; q < M - 1; q++) + C.push(k[q + 1].x - k[q].x), P.push(C[q] === 0 ? 0 : (k[q + 1].y - k[q].y) / C[q]); + const L = new Array(M).fill(0); + if (M > 2) { + const q = new Array(M).fill(0), Z = new Array(M).fill(0); + for (let oe = 1; oe < M - 1; oe++) { + const Q = 2 * (C[oe - 1] + C[oe]), ke = 3 * (P[oe] - P[oe - 1]); + if (oe === 1) + q[oe] = C[oe] / Q, Z[oe] = ke / Q; else { - const de = Y - C[fe - 1] * U[fe - 1]; - U[fe] = C[fe] / de, Z[fe] = (ye - C[fe - 1] * Z[fe - 1]) / de; + const de = Q - C[oe - 1] * q[oe - 1]; + q[oe] = C[oe] / de, Z[oe] = (ke - C[oe - 1] * Z[oe - 1]) / de; } } - for (let fe = S - 2; fe >= 1; fe--) - L[fe] = Z[fe] - U[fe] * L[fe + 1]; + for (let oe = M - 2; oe >= 1; oe--) + L[oe] = Z[oe] - q[oe] * L[oe + 1]; } - const B = new Array(S).fill(0); - for (let U = 0; U < S - 1; U++) - B[U] = P[U] - C[U] * (2 * L[U] + L[U + 1]) / 3; - B[S - 1] = P[S - 2] + C[S - 2] * L[S - 2] / 3; + const _ = new Array(M).fill(0); + for (let q = 0; q < M - 1; q++) + _[q] = P[q] - C[q] * (2 * L[q] + L[q + 1]) / 3; + _[M - 1] = P[M - 2] + C[M - 2] * L[M - 2] / 3; let m = `M${Sn(k[0].x)},${Sn(k[0].y)}`; - for (let U = 0; U < S - 1; U++) { - const Z = C[U] / 3, fe = k[U].x + Z, Y = k[U].y + B[U] * Z, ye = k[U + 1].x - Z, de = k[U + 1].y - B[U + 1] * Z; - m += ` C${Sn(fe)},${Sn(Y)} ${Sn(ye)},${Sn(de)} ${Sn(k[U + 1].x)},${Sn(k[U + 1].y)}`; + for (let q = 0; q < M - 1; q++) { + const Z = C[q] / 3, oe = k[q].x + Z, Q = k[q].y + _[q] * Z, ke = k[q + 1].x - Z, de = k[q + 1].y - _[q + 1] * Z; + m += ` C${Sn(oe)},${Sn(Q)} ${Sn(ke)},${Sn(de)} ${Sn(k[q + 1].x)},${Sn(k[q + 1].y)}`; } return m; } -function eRn(k, S, C, P) { - const U = ka(C, Wu.fontSize, 600), Z = Math.max(...P.map((Lt) => { +function nRn(k, M, C, P) { + const q = ka(C, Wu.fontSize, 600), Z = Math.max(...P.map((Lt) => { const hu = ka(Lt.legendLabel, Wu.fontSize, Wu.fontWeight), tc = ka(Lt.text, Wu.fontSize, Wu.fontWeight); return hu + 10 + tc; - })), fe = Math.max(U, Z) + Wu.padX * 2, Y = 26 + P.length * 20 + 6, ye = Math.max(Wu.minY, S - Wu.offsetY - Y - Wu.pointerSize), de = k - fe / 2, Oe = k, Ne = ye + Y, Q = Wu.pointerSize, ft = ``; - let Fn = ``; + })), oe = Math.max(q, Z) + Wu.padX * 2, Q = 26 + P.length * 20 + 6, ke = Math.max(Wu.minY, M - Wu.offsetY - Q - Wu.pointerSize), de = k - oe / 2, Oe = k, Ne = ke + Q, Y = Wu.pointerSize, ft = ``; + let Fn = ``; Fn += ft; - let Tt = ye + 6 + 20 / 2; + let Tt = ke + 6 + 20 / 2; Fn += `${Ol(C)}`; - const Kt = de + Wu.padX, xt = de + fe - Wu.padX; + const Kt = de + Wu.padX, xt = de + oe - Wu.padX; for (const Lt of P) Tt += 20, Fn += `${Ol(Lt.legendLabel)}`, Fn += `${Ol(Lt.text)}`; return Fn; } -function Qfn(k, S, C) { - const L = ka(C, Wu.fontSize, Wu.fontWeight) + Wu.padX * 2, B = Wu.height, m = Math.max(Wu.minY, S - Wu.offsetY - B - Wu.pointerSize), U = k - L / 2, Z = k, fe = m + B / 2, Y = k, ye = m + B, de = Wu.pointerSize, Oe = ``; - return `` + Oe + `${Ol(C)}`; +function Qfn(k, M, C) { + const L = ka(C, Wu.fontSize, Wu.fontWeight) + Wu.padX * 2, _ = Wu.height, m = Math.max(Wu.minY, M - Wu.offsetY - _ - Wu.pointerSize), q = k - L / 2, Z = k, oe = m + _ / 2, Q = k, ke = m + _, de = Wu.pointerSize, Oe = ``; + return `` + Oe + `${Ol(C)}`; } -function pbe(k) { +function mbe(k) { return Number.isInteger(k) ? k.toLocaleString("en-US") : k.toFixed(Math.abs(k) < 10 ? 1 : 0); } function Sn(k) { @@ -51285,11 +51375,11 @@ function Sn(k) { function Ol(k) { return k.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """); } -function nRn(k) { - const S = k.trim().split(/[\n;]/)[0]?.trim().toLowerCase() ?? ""; - return /^xychart(-beta)?\b/.test(S) ? "xychart" : /^sequencediagram\s*$/.test(S) ? "sequence" : /^classdiagram\s*$/.test(S) ? "class" : /^erdiagram\s*$/.test(S) ? "er" : "flowchart"; -} function tRn(k) { + const M = k.trim().split(/[\n;]/)[0]?.trim().toLowerCase() ?? ""; + return /^xychart(-beta)?\b/.test(M) ? "xychart" : /^sequencediagram\s*$/.test(M) ? "sequence" : /^classdiagram\s*$/.test(M) ? "class" : /^erdiagram\s*$/.test(M) ? "er" : "flowchart"; +} +function iRn(k) { return { bg: k.bg ?? Pfn.bg, fg: k.fg ?? Pfn.fg, @@ -51300,48 +51390,48 @@ function tRn(k) { border: k.border }; } -function iRn(k, S = {}) { - k = UDn(k); - const C = tRn(S), P = S.font ?? "Inter", L = S.transparent ?? !1, B = nRn(k), m = k.split(` -`).map((U) => U.trim()).filter((U) => U.length > 0 && !U.startsWith("%%")); - switch (B) { +function rRn(k, M = {}) { + k = zDn(k); + const C = iRn(M), P = M.font ?? "Inter", L = M.transparent ?? !1, _ = tRn(k), m = k.split(` +`).map((q) => q.trim()).filter((q) => q.length > 0 && !q.startsWith("%%")); + switch (_) { case "sequence": { - const U = kNn(m), Z = aFn(U, S); - return dFn(Z, C, P, L); + const q = yNn(m), Z = dFn(q, M); + return bFn(Z, C, P, L); } case "class": { - const U = yNn(m), Z = EFn(U, S); - return xFn(Z, C, P, L); + const q = jNn(m), Z = AFn(q, M); + return $Fn(Z, C, P, L); } case "er": { - const U = ANn(m), Z = DFn(U, S); - return NFn(Z, C, P, L); + const q = xNn(m), Z = NFn(q, M); + return FFn(Z, C, P, L); } case "xychart": { - const U = MNn(m), Z = HFn(U, S); - return KFn(Z, C, P, L, S.interactive ?? !1); + const q = TNn(m), Z = qFn(q, M); + return VFn(Z, C, P, L, M.interactive ?? !1); } case "flowchart": default: { - const U = oNn(k), Z = JNn(U, S); - return GNn(Z, C, P, L); + const q = fNn(k), Z = GNn(q, M); + return HNn(Z, C, P, L); } } } -const rRn = () => jDn(), cRn = { +const cRn = () => jDn(), uRn = { key: 0, class: "mermaid-loading", role: "status" -}, uRn = { +}, sRn = { key: 1, class: "mermaid-error", role: "alert" -}, sRn = ["innerHTML"], oRn = /* @__PURE__ */ iDn({ +}, oRn = ["innerHTML"], fRn = /* @__PURE__ */ iDn({ __name: "mermaid-diagram", setup(k) { - const S = rRn(), C = EDn(), P = rDn("rootEl"), L = cDn( - () => (S.value.definition || C.value || "").trim() - ), B = JU({ kind: "empty" }); + const M = cRn(), C = EDn(), P = rDn("rootEl"), L = cDn( + () => (M.value.definition || C.value || "").trim() + ), _ = JU({ kind: "empty" }); function m() { return { bg: "var(--p-content-background)", @@ -51351,66 +51441,65 @@ const rRn = () => jDn(), cRn = { muted: "var(--p-text-muted-color)", surface: "var(--p-content-background)", border: "var(--p-content-border-color)", - transparent: S.value.transparent ?? !0 + transparent: M.value.transparent ?? !0 }; } - return uDn(async (U) => { + return uDn(async (q) => { const Z = L.value; if (!Z) { - B.value = { kind: "empty" }; + _.value = { kind: "empty" }; return; } try { - B.value = { kind: "svg", svg: iRn(Z, m()) }; + _.value = { kind: "svg", svg: rRn(Z, m()) }; return; } catch { } - let fe = !1; - U(() => { - fe = !0; - }), B.value = { kind: "loading" }; + let oe = !1; + q(() => { + oe = !0; + }), _.value = { kind: "loading" }; try { - const Y = P.value ?? document.documentElement, { renderWithMermaid: ye } = await import("./mermaid-fallback-VWXePaQd.js"), de = await ye(Z, Y); - fe || (B.value = { kind: "svg", svg: de }); - } catch (Y) { - if (!fe) { - const ye = Y instanceof Error ? Y.message : String(Y); - B.value = { kind: "error", message: ye }; + const Q = P.value ?? document.documentElement, { renderWithMermaid: ke } = await import("./mermaid-fallback-WGg5-jvU.js"), de = await ke(Z, Q); + oe || (_.value = { kind: "svg", svg: de }); + } catch (Q) { + if (!oe) { + const ke = Q instanceof Error ? Q.message : String(Q); + _.value = { kind: "error", message: ke }; } } - }), (U, Z) => (DU(), NU("div", { + }), (q, Z) => (DU(), NU("div", { ref_key: "rootEl", ref: P }, [ - B.value.kind === "loading" ? (DU(), NU("div", cRn, " Rendering diagram… ")) : B.value.kind === "error" ? (DU(), NU("div", uRn, sDn(B.value.message), 1)) : B.value.kind === "svg" ? (DU(), NU("div", { + _.value.kind === "loading" ? (DU(), NU("div", uRn, " Rendering diagram… ")) : _.value.kind === "error" ? (DU(), NU("div", sRn, sDn(_.value.message), 1)) : _.value.kind === "svg" ? (DU(), NU("div", { key: 2, class: "mermaid-container", role: "img", "aria-label": "Mermaid diagram", - innerHTML: B.value.svg - }, null, 8, sRn)) : oDn("", !0) + innerHTML: _.value.svg + }, null, 8, oRn)) : oDn("", !0) ], 512)); } -}), fRn = ":root{--p-primary: rgb(0, 95, 178);--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white);--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white);--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white);--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white);--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white);--p-primary-500: var(--p-primary);--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black);--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black);--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black);--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black);--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black);--p-secondary: #6f7385;--p-secondary-50: color-mix(in srgb, var(--p-secondary) 5%, white);--p-secondary-100: color-mix(in srgb, var(--p-secondary) 10%, white);--p-secondary-200: color-mix(in srgb, var(--p-secondary) 20%, white);--p-secondary-300: color-mix(in srgb, var(--p-secondary) 35%, white);--p-secondary-400: color-mix(in srgb, var(--p-secondary) 65%, white);--p-secondary-500: var(--p-secondary);--p-secondary-600: color-mix(in srgb, var(--p-secondary) 80%, black);--p-secondary-700: color-mix(in srgb, var(--p-secondary) 65%, black);--p-secondary-800: color-mix(in srgb, var(--p-secondary) 55%, black);--p-secondary-900: color-mix(in srgb, var(--p-secondary) 50%, black);--p-secondary-950: color-mix(in srgb, var(--p-secondary) 30%, black);--p-danger: rgb(239, 68, 68);--p-danger-50: color-mix(in srgb, var(--p-danger) 5%, white);--p-danger-100: color-mix(in srgb, var(--p-danger) 10%, white);--p-danger-200: color-mix(in srgb, var(--p-danger) 20%, white);--p-danger-300: color-mix(in srgb, var(--p-danger) 30%, white);--p-danger-400: color-mix(in srgb, var(--p-danger) 40%, white);--p-danger-500: var(--p-danger);--p-danger-600: color-mix(in srgb, var(--p-danger) 80%, black);--p-danger-700: color-mix(in srgb, var(--p-danger) 70%, black);--p-danger-800: color-mix(in srgb, var(--p-danger) 60%, black);--p-danger-900: color-mix(in srgb, var(--p-danger) 50%, black);--p-danger-950: color-mix(in srgb, var(--p-danger) 40%, black);--p-success: rgb(34, 197, 94);--p-success-50: color-mix(in srgb, var(--p-success) 5%, white);--p-success-100: color-mix(in srgb, var(--p-success) 10%, white);--p-success-200: color-mix(in srgb, var(--p-success) 20%, white);--p-success-300: color-mix(in srgb, var(--p-success) 30%, white);--p-success-400: color-mix(in srgb, var(--p-success) 40%, white);--p-success-500: var(--p-success);--p-success-600: color-mix(in srgb, var(--p-success) 80%, black);--p-success-700: color-mix(in srgb, var(--p-success) 70%, black);--p-success-800: color-mix(in srgb, var(--p-success) 60%, black);--p-success-900: color-mix(in srgb, var(--p-success) 50%, black);--p-success-950: color-mix(in srgb, var(--p-success) 40%, black);--p-warn: rgb(249, 115, 22);--p-warn-50: color-mix(in srgb, var(--p-warn) 5%, white);--p-warn-100: color-mix(in srgb, var(--p-warn) 10%, white);--p-warn-200: color-mix(in srgb, var(--p-warn) 20%, white);--p-warn-300: color-mix(in srgb, var(--p-warn) 30%, white);--p-warn-400: color-mix(in srgb, var(--p-warn) 40%, white);--p-warn-500: var(--p-warn);--p-warn-600: color-mix(in srgb, var(--p-warn) 80%, black);--p-warn-700: color-mix(in srgb, var(--p-warn) 70%, black);--p-warn-800: color-mix(in srgb, var(--p-warn) 60%, black);--p-warn-900: color-mix(in srgb, var(--p-warn) 50%, black);--p-warn-950: color-mix(in srgb, var(--p-warn) 40%, black);--p-info: rgb(14, 165, 233);--p-info-50: color-mix(in srgb, var(--p-info) 5%, white);--p-info-100: color-mix(in srgb, var(--p-info) 10%, white);--p-info-200: color-mix(in srgb, var(--p-info) 20%, white);--p-info-300: color-mix(in srgb, var(--p-info) 30%, white);--p-info-400: color-mix(in srgb, var(--p-info) 40%, white);--p-info-500: var(--p-info);--p-info-600: color-mix(in srgb, var(--p-info) 80%, black);--p-info-700: color-mix(in srgb, var(--p-info) 70%, black);--p-info-800: color-mix(in srgb, var(--p-info) 60%, black);--p-info-900: color-mix(in srgb, var(--p-info) 50%, black);--p-info-950: color-mix(in srgb, var(--p-info) 40%, black);--p-help: rgb(168, 85, 247);--p-help-50: color-mix(in srgb, var(--p-help) 5%, white);--p-help-100: color-mix(in srgb, var(--p-help) 10%, white);--p-help-200: color-mix(in srgb, var(--p-help) 20%, white);--p-help-300: color-mix(in srgb, var(--p-help) 30%, white);--p-help-400: color-mix(in srgb, var(--p-help) 40%, white);--p-help-500: var(--p-help);--p-help-600: color-mix(in srgb, var(--p-help) 80%, black);--p-help-700: color-mix(in srgb, var(--p-help) 70%, black);--p-help-800: color-mix(in srgb, var(--p-help) 60%, black);--p-help-900: color-mix(in srgb, var(--p-help) 50%, black);--p-help-950: color-mix(in srgb, var(--p-help) 40%, black);--p-accent: rgb(20, 184, 166);--p-accent-50: color-mix(in srgb, var(--p-accent) 5%, white);--p-accent-100: color-mix(in srgb, var(--p-accent) 10%, white);--p-accent-200: color-mix(in srgb, var(--p-accent) 20%, white);--p-accent-300: color-mix(in srgb, var(--p-accent) 30%, white);--p-accent-400: color-mix(in srgb, var(--p-accent) 40%, white);--p-accent-500: var(--p-accent);--p-accent-600: color-mix(in srgb, var(--p-accent) 80%, black);--p-accent-700: color-mix(in srgb, var(--p-accent) 70%, black);--p-accent-800: color-mix(in srgb, var(--p-accent) 60%, black);--p-accent-900: color-mix(in srgb, var(--p-accent) 50%, black);--p-accent-950: color-mix(in srgb, var(--p-accent) 40%, black);--p-surface-0: #ffffff;--p-surface-50: #fafafa;--p-surface-100: #f5f5f5;--p-surface-200: #e5e5e5;--p-surface-300: #d4d4d4;--p-surface-400: #a3a3a3;--p-surface-500: #737373;--p-surface-600: #525252;--p-surface-700: #404040;--p-surface-800: #262626;--p-surface-850: color-mix(in srgb, var(--p-surface-800) 50%, var(--p-surface-900));--p-surface-900: #171717;--p-surface-950: #0a0a0a;--p-content-border-radius: 6px}:root{--p-primary-color: var(--p-primary-500);--p-primary-contrast-color: var(--p-surface-0);--p-primary-hover-color: var(--p-primary-600);--p-primary-active-color: var(--p-primary-700);--p-content-border-color: var(--p-surface-200);--p-content-hover-background: var(--p-surface-100);--p-content-hover-color: var(--p-surface-800);--p-highlight-background: var(--p-primary-50);--p-highlight-color: var(--p-primary-700);--p-highlight-focus-background: var(--p-primary-100);--p-highlight-focus-color: var(--p-primary-800);--p-content-background: var(--p-surface-0);--p-text-color: var(--p-surface-700);--p-text-hover-color: var(--p-surface-800);--p-text-muted-color: var(--p-surface-500);--p-text-hover-muted-color: var(--p-surface-600)}@media(prefers-color-scheme:dark){:root{--p-surface-D: #fff;--p-surface-0: #fff;--p-surface-50: #fafafa;--p-surface-100: #f4f4f5;--p-surface-200: #e4e4e7;--p-surface-300: #d4d4d8;--p-surface-400: #a1a1aa;--p-surface-500: #71717a;--p-surface-600: #545250;--p-surface-700: #403e3c;--p-surface-800: #2b2927;--p-surface-850: color-mix(in srgb, var(--p-surface-800) 50%, var(--p-surface-900));--p-surface-900: #1c1a19;--p-surface-950: #0f0e0d;--p-primary: rgb(0, 125, 178);--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white);--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white);--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white);--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white);--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white);--p-primary-500: var(--p-primary);--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black);--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black);--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black);--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black);--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black);--p-primary-color: var(--p-primary-400);--p-primary-contrast-color: var(--p-surface-900);--p-primary-hover-color: var(--p-primary-300);--p-primary-active-color: var(--p-primary-200);--p-content-border-color: var(--p-surface-700);--p-content-hover-background: var(--p-surface-800);--p-content-hover-color: var(--p-surface-0);--p-highlight-background: color-mix(in srgb, var(--p-primary-400), transparent 84%);--p-highlight-color: rgba(255, 255, 255, 87%);--p-highlight-focus-background: color-mix(in srgb, var(--p-primary-400), transparent 76%);--p-highlight-focus-color: rgba(255, 255, 255, 87%);--p-content-background: var(--p-surface-900);--p-text-color: var(--p-surface-0);--p-text-hover-color: var(--p-surface-0);--p-text-muted-color: var(--p-surface-400);--p-text-hover-muted-color: var(--p-surface-300)}}.mermaid-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%;box-sizing:border-box;overflow:auto}.mermaid-container svg{max-width:100%;height:auto}.mermaid-error{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--p-red-500, #ef4444);text-align:center;font-size:14px}", hRn = { props: { type: "object", properties: { definition: { type: "string", default: "", description: "Mermaid v11 diagram source. Newlines must be real LF characters in the attribute value." }, transparent: { type: "boolean", default: !0, description: "Whether the diagram background is transparent (set false to render on a solid card)" } } } }, lRn = { - wippy: hRn +}), hRn = ":root{--p-primary: rgb(0, 95, 178);--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white);--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white);--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white);--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white);--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white);--p-primary-500: var(--p-primary);--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black);--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black);--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black);--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black);--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black);--p-secondary: #6f7385;--p-secondary-50: color-mix(in srgb, var(--p-secondary) 5%, white);--p-secondary-100: color-mix(in srgb, var(--p-secondary) 10%, white);--p-secondary-200: color-mix(in srgb, var(--p-secondary) 20%, white);--p-secondary-300: color-mix(in srgb, var(--p-secondary) 35%, white);--p-secondary-400: color-mix(in srgb, var(--p-secondary) 65%, white);--p-secondary-500: var(--p-secondary);--p-secondary-600: color-mix(in srgb, var(--p-secondary) 80%, black);--p-secondary-700: color-mix(in srgb, var(--p-secondary) 65%, black);--p-secondary-800: color-mix(in srgb, var(--p-secondary) 55%, black);--p-secondary-900: color-mix(in srgb, var(--p-secondary) 50%, black);--p-secondary-950: color-mix(in srgb, var(--p-secondary) 30%, black);--p-danger: rgb(239, 68, 68);--p-danger-50: color-mix(in srgb, var(--p-danger) 5%, white);--p-danger-100: color-mix(in srgb, var(--p-danger) 10%, white);--p-danger-200: color-mix(in srgb, var(--p-danger) 20%, white);--p-danger-300: color-mix(in srgb, var(--p-danger) 30%, white);--p-danger-400: color-mix(in srgb, var(--p-danger) 40%, white);--p-danger-500: var(--p-danger);--p-danger-600: color-mix(in srgb, var(--p-danger) 80%, black);--p-danger-700: color-mix(in srgb, var(--p-danger) 70%, black);--p-danger-800: color-mix(in srgb, var(--p-danger) 60%, black);--p-danger-900: color-mix(in srgb, var(--p-danger) 50%, black);--p-danger-950: color-mix(in srgb, var(--p-danger) 40%, black);--p-success: rgb(34, 197, 94);--p-success-50: color-mix(in srgb, var(--p-success) 5%, white);--p-success-100: color-mix(in srgb, var(--p-success) 10%, white);--p-success-200: color-mix(in srgb, var(--p-success) 20%, white);--p-success-300: color-mix(in srgb, var(--p-success) 30%, white);--p-success-400: color-mix(in srgb, var(--p-success) 40%, white);--p-success-500: var(--p-success);--p-success-600: color-mix(in srgb, var(--p-success) 80%, black);--p-success-700: color-mix(in srgb, var(--p-success) 70%, black);--p-success-800: color-mix(in srgb, var(--p-success) 60%, black);--p-success-900: color-mix(in srgb, var(--p-success) 50%, black);--p-success-950: color-mix(in srgb, var(--p-success) 40%, black);--p-warn: rgb(249, 115, 22);--p-warn-50: color-mix(in srgb, var(--p-warn) 5%, white);--p-warn-100: color-mix(in srgb, var(--p-warn) 10%, white);--p-warn-200: color-mix(in srgb, var(--p-warn) 20%, white);--p-warn-300: color-mix(in srgb, var(--p-warn) 30%, white);--p-warn-400: color-mix(in srgb, var(--p-warn) 40%, white);--p-warn-500: var(--p-warn);--p-warn-600: color-mix(in srgb, var(--p-warn) 80%, black);--p-warn-700: color-mix(in srgb, var(--p-warn) 70%, black);--p-warn-800: color-mix(in srgb, var(--p-warn) 60%, black);--p-warn-900: color-mix(in srgb, var(--p-warn) 50%, black);--p-warn-950: color-mix(in srgb, var(--p-warn) 40%, black);--p-info: rgb(14, 165, 233);--p-info-50: color-mix(in srgb, var(--p-info) 5%, white);--p-info-100: color-mix(in srgb, var(--p-info) 10%, white);--p-info-200: color-mix(in srgb, var(--p-info) 20%, white);--p-info-300: color-mix(in srgb, var(--p-info) 30%, white);--p-info-400: color-mix(in srgb, var(--p-info) 40%, white);--p-info-500: var(--p-info);--p-info-600: color-mix(in srgb, var(--p-info) 80%, black);--p-info-700: color-mix(in srgb, var(--p-info) 70%, black);--p-info-800: color-mix(in srgb, var(--p-info) 60%, black);--p-info-900: color-mix(in srgb, var(--p-info) 50%, black);--p-info-950: color-mix(in srgb, var(--p-info) 40%, black);--p-help: rgb(168, 85, 247);--p-help-50: color-mix(in srgb, var(--p-help) 5%, white);--p-help-100: color-mix(in srgb, var(--p-help) 10%, white);--p-help-200: color-mix(in srgb, var(--p-help) 20%, white);--p-help-300: color-mix(in srgb, var(--p-help) 30%, white);--p-help-400: color-mix(in srgb, var(--p-help) 40%, white);--p-help-500: var(--p-help);--p-help-600: color-mix(in srgb, var(--p-help) 80%, black);--p-help-700: color-mix(in srgb, var(--p-help) 70%, black);--p-help-800: color-mix(in srgb, var(--p-help) 60%, black);--p-help-900: color-mix(in srgb, var(--p-help) 50%, black);--p-help-950: color-mix(in srgb, var(--p-help) 40%, black);--p-accent: rgb(20, 184, 166);--p-accent-50: color-mix(in srgb, var(--p-accent) 5%, white);--p-accent-100: color-mix(in srgb, var(--p-accent) 10%, white);--p-accent-200: color-mix(in srgb, var(--p-accent) 20%, white);--p-accent-300: color-mix(in srgb, var(--p-accent) 30%, white);--p-accent-400: color-mix(in srgb, var(--p-accent) 40%, white);--p-accent-500: var(--p-accent);--p-accent-600: color-mix(in srgb, var(--p-accent) 80%, black);--p-accent-700: color-mix(in srgb, var(--p-accent) 70%, black);--p-accent-800: color-mix(in srgb, var(--p-accent) 60%, black);--p-accent-900: color-mix(in srgb, var(--p-accent) 50%, black);--p-accent-950: color-mix(in srgb, var(--p-accent) 40%, black);--p-surface-0: #ffffff;--p-surface-50: #fafafa;--p-surface-100: #f5f5f5;--p-surface-200: #e5e5e5;--p-surface-300: #d4d4d4;--p-surface-400: #a3a3a3;--p-surface-500: #737373;--p-surface-600: #525252;--p-surface-700: #404040;--p-surface-800: #262626;--p-surface-850: color-mix(in srgb, var(--p-surface-800) 50%, var(--p-surface-900));--p-surface-900: #171717;--p-surface-950: #0a0a0a;--p-content-border-radius: 6px}:root{--p-primary-color: var(--p-primary-500);--p-primary-contrast-color: var(--p-surface-0);--p-primary-hover-color: var(--p-primary-600);--p-primary-active-color: var(--p-primary-700);--p-content-border-color: var(--p-surface-200);--p-content-hover-background: var(--p-surface-100);--p-content-hover-color: var(--p-surface-800);--p-highlight-background: var(--p-primary-50);--p-highlight-color: var(--p-primary-700);--p-highlight-focus-background: var(--p-primary-100);--p-highlight-focus-color: var(--p-primary-800);--p-content-background: var(--p-surface-0);--p-text-color: var(--p-surface-700);--p-text-hover-color: var(--p-surface-800);--p-text-muted-color: var(--p-surface-500);--p-text-hover-muted-color: var(--p-surface-600)}@media(prefers-color-scheme:dark){:root{--p-surface-D: #fff;--p-surface-0: #fff;--p-surface-50: #fafafa;--p-surface-100: #f4f4f5;--p-surface-200: #e4e4e7;--p-surface-300: #d4d4d8;--p-surface-400: #a1a1aa;--p-surface-500: #71717a;--p-surface-600: #545250;--p-surface-700: #403e3c;--p-surface-800: #2b2927;--p-surface-850: color-mix(in srgb, var(--p-surface-800) 50%, var(--p-surface-900));--p-surface-900: #1c1a19;--p-surface-950: #0f0e0d;--p-primary: rgb(0, 125, 178);--p-primary-50: color-mix(in srgb, var(--p-primary) 5%, white);--p-primary-100: color-mix(in srgb, var(--p-primary) 10%, white);--p-primary-200: color-mix(in srgb, var(--p-primary) 20%, white);--p-primary-300: color-mix(in srgb, var(--p-primary) 30%, white);--p-primary-400: color-mix(in srgb, var(--p-primary) 40%, white);--p-primary-500: var(--p-primary);--p-primary-600: color-mix(in srgb, var(--p-primary) 80%, black);--p-primary-700: color-mix(in srgb, var(--p-primary) 70%, black);--p-primary-800: color-mix(in srgb, var(--p-primary) 60%, black);--p-primary-900: color-mix(in srgb, var(--p-primary) 50%, black);--p-primary-950: color-mix(in srgb, var(--p-primary) 40%, black);--p-primary-color: var(--p-primary-400);--p-primary-contrast-color: var(--p-surface-900);--p-primary-hover-color: var(--p-primary-300);--p-primary-active-color: var(--p-primary-200);--p-content-border-color: var(--p-surface-700);--p-content-hover-background: var(--p-surface-800);--p-content-hover-color: var(--p-surface-0);--p-highlight-background: color-mix(in srgb, var(--p-primary-400), transparent 84%);--p-highlight-color: rgba(255, 255, 255, 87%);--p-highlight-focus-background: color-mix(in srgb, var(--p-primary-400), transparent 76%);--p-highlight-focus-color: rgba(255, 255, 255, 87%);--p-content-background: var(--p-surface-900);--p-text-color: var(--p-surface-0);--p-text-hover-color: var(--p-surface-0);--p-text-muted-color: var(--p-surface-400);--p-text-hover-muted-color: var(--p-surface-300)}}.mermaid-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%;box-sizing:border-box;overflow:auto}.mermaid-container svg{max-width:100%;height:auto}.mermaid-error{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--p-red-500, #ef4444);text-align:center;font-size:14px}", lRn = { props: { type: "object", properties: { definition: { type: "string", default: "", description: "Mermaid v11 diagram source. Newlines must be real LF characters in the attribute value." }, transparent: { type: "boolean", default: !0, description: "Whether the diagram background is transparent (set false to render on a solid card)" } } } }, aRn = { + wippy: lRn }; -class aRn extends PDn { +class dRn extends ODn { static get wippyConfig() { return { - propsSchema: lRn.wippy.props, + propsSchema: aRn.wippy.props, hostCssKeys: ["themeConfigUrl"], - inlineCss: fRn, + inlineCss: hRn, contentTemplate: "text/vnd.mermaid" }; } static get vueConfig() { return { - rootComponent: oRn + rootComponent: fRn }; } } -dDn(import.meta.url, aRn); +dDn(import.meta.url, dRn); export { - pRn as a, - zDn as g + WDn as g }; diff --git a/src/wc-content-kit/public/mermaid/info-OMHHGYJF-Urp_Ase5.js b/src/wc-content-kit/public/mermaid/info-OMHHGYJF-Urp_Ase5.js deleted file mode 100644 index 852e808..0000000 --- a/src/wc-content-kit/public/mermaid/info-OMHHGYJF-Urp_Ase5.js +++ /dev/null @@ -1,6 +0,0 @@ -import { c as e } from "./mermaid-parser.core-DQ6c91Zg.js"; -import { I as t } from "./mermaid-parser.core-DQ6c91Zg.js"; -export { - t as InfoModule, - e as createInfoServices -}; diff --git a/src/wc-content-kit/public/mermaid/infoDiagram-42DDH7IO-C3QWADuJ.js b/src/wc-content-kit/public/mermaid/infoDiagram-42DDH7IO-C3QWADuJ.js deleted file mode 100644 index 9b6c0e3..0000000 --- a/src/wc-content-kit/public/mermaid/infoDiagram-42DDH7IO-C3QWADuJ.js +++ /dev/null @@ -1,24 +0,0 @@ -import { _ as a, l as s, I as o, e as i } from "./mermaid.core-Jw3znkh4.js"; -import { p as g } from "./mermaid-parser.core-DQ6c91Zg.js"; -var p = { - parse: /* @__PURE__ */ a(async (r) => { - const e = await g("info", r); - s.debug(e); - }, "parse") -}, v = { - version: "11.14.0" -}, d = /* @__PURE__ */ a(() => v.version, "getVersion"), m = { - getVersion: d -}, c = /* @__PURE__ */ a((r, e, n) => { - s.debug(`rendering info diagram -` + r); - const t = o(e); - i(t, 100, 400, !0), t.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${n}`); -}, "draw"), l = { draw: c }, _ = { - parser: p, - db: m, - renderer: l -}; -export { - _ as diagram -}; diff --git a/src/wc-content-kit/public/mermaid/infoDiagram-5YYISTIA-CedyRb4M.js b/src/wc-content-kit/public/mermaid/infoDiagram-5YYISTIA-CedyRb4M.js new file mode 100644 index 0000000..777ad0a --- /dev/null +++ b/src/wc-content-kit/public/mermaid/infoDiagram-5YYISTIA-CedyRb4M.js @@ -0,0 +1,24 @@ +import { b as e, aD as s, a$ as o, E as i } from "./mermaid.core-FRDjOodn.js"; +import { p as g } from "./wardley-L42UT6IY-C-B6soca.js"; +var p = { + parse: /* @__PURE__ */ e(async (r) => { + const a = await g("info", r); + s.debug(a); + }, "parse") +}, v = { + version: "11.15.0" +}, d = /* @__PURE__ */ e(() => v.version, "getVersion"), m = { + getVersion: d +}, c = /* @__PURE__ */ e((r, a, n) => { + s.debug(`rendering info diagram +` + r); + const t = o(a); + i(t, 100, 400, !0), t.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${n}`); +}, "draw"), f = { draw: c }, b = { + parser: p, + db: m, + renderer: f +}; +export { + b as diagram +}; diff --git a/src/wc-content-kit/public/mermaid/ishikawaDiagram-UXIWVN3A-DpfbOS-L.js b/src/wc-content-kit/public/mermaid/ishikawaDiagram-YF4QCWOH-CiiBUUql.js similarity index 91% rename from src/wc-content-kit/public/mermaid/ishikawaDiagram-UXIWVN3A-DpfbOS-L.js rename to src/wc-content-kit/public/mermaid/ishikawaDiagram-YF4QCWOH-CiiBUUql.js index 8f3b4d9..c41afb9 100644 --- a/src/wc-content-kit/public/mermaid/ishikawaDiagram-UXIWVN3A-DpfbOS-L.js +++ b/src/wc-content-kit/public/mermaid/ishikawaDiagram-YF4QCWOH-CiiBUUql.js @@ -1,4 +1,4 @@ -import { _ as l, c as lt, N as ct, I as ut, as as dt, z as yt, k as ft, p as et, a as pt, b as gt, g as kt, s as mt, q as wt, e as _t } from "./mermaid.core-Jw3znkh4.js"; +import { b as l, a4 as lt, aM as ct, a$ as ut, l as dt, t as yt, z as ft, b3 as et, a2 as pt, b1 as gt, a1 as kt, b0 as mt, a5 as wt, E as _t } from "./mermaid.core-FRDjOodn.js"; var Q = (function() { var t = /* @__PURE__ */ l(function(T, e, s, i) { for (s = s || {}, i = T.length; i--; s[T[i]] = e) ; @@ -36,31 +36,31 @@ var Q = (function() { }, "parseError"), parse: /* @__PURE__ */ l(function(e) { var s = this, i = [0], h = [], f = [null], r = [], v = this.table, w = "", I = 0, $ = 0, L = 2, A = 1, C = r.slice.call(arguments, 1), b = Object.create(this.lexer), S = { yy: {} }; - for (var N in this.yy) - Object.prototype.hasOwnProperty.call(this.yy, N) && (S.yy[N] = this.yy[N]); + for (var P in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, P) && (S.yy[P] = this.yy[P]); b.setInput(e, S.yy), S.yy.lexer = b, S.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {}); var R = b.yylloc; r.push(R); var H = b.options && b.options.ranges; typeof S.yy.parseError == "function" ? this.parseError = S.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; - function X(P) { - i.length = i.length - 2 * P, f.length = f.length - P, r.length = r.length - P; + function X(B) { + i.length = i.length - 2 * B, f.length = f.length - B, r.length = r.length - B; } l(X, "popStack"); function J() { - var P; - return P = h.pop() || b.lex() || A, typeof P != "number" && (P instanceof Array && (h = P, P = h.pop()), P = s.symbols_[P] || P), P; + var B; + return B = h.pop() || b.lex() || A, typeof B != "number" && (B instanceof Array && (h = B, B = h.pop()), B = s.symbols_[B] || B), B; } l(J, "lex"); - for (var M, W, B, Y, z = {}, G, V, tt, U; ; ) { - if (W = i[i.length - 1], this.defaultActions[W] ? B = this.defaultActions[W] : ((M === null || typeof M > "u") && (M = J()), B = v[W] && v[W][M]), typeof B > "u" || !B.length || !B[0]) { - var q = ""; + for (var M, W, N, Y, z = {}, G, V, tt, U; ; ) { + if (W = i[i.length - 1], this.defaultActions[W] ? N = this.defaultActions[W] : ((M === null || typeof M > "u") && (M = J()), N = v[W] && v[W][M]), typeof N > "u" || !N.length || !N[0]) { + var K = ""; U = []; for (G in v[W]) this.terminals_[G] && G > L && U.push("'" + this.terminals_[G] + "'"); - b.showPosition ? q = "Parse error on line " + (I + 1) + `: + b.showPosition ? K = "Parse error on line " + (I + 1) + `: ` + b.showPosition() + ` -Expecting ` + U.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "Parse error on line " + (I + 1) + ": Unexpected " + (M == A ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(q, { +Expecting ` + U.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : K = "Parse error on line " + (I + 1) + ": Unexpected " + (M == A ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(K, { text: b.match, token: this.terminals_[M] || M, line: b.yylineno, @@ -68,14 +68,14 @@ Expecting ` + U.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = " expected: U }); } - if (B[0] instanceof Array && B.length > 1) + if (N[0] instanceof Array && N.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + W + ", token: " + M); - switch (B[0]) { + switch (N[0]) { case 1: - i.push(M), f.push(b.yytext), r.push(b.yylloc), i.push(B[1]), M = null, $ = b.yyleng, w = b.yytext, I = b.yylineno, R = b.yylloc; + i.push(M), f.push(b.yytext), r.push(b.yylloc), i.push(N[1]), M = null, $ = b.yyleng, w = b.yytext, I = b.yylineno, R = b.yylloc; break; case 2: - if (V = this.productions_[B[1]][1], z.$ = f[f.length - V], z._$ = { + if (V = this.productions_[N[1]][1], z.$ = f[f.length - V], z._$ = { first_line: r[r.length - (V || 1)].first_line, last_line: r[r.length - 1].last_line, first_column: r[r.length - (V || 1)].first_column, @@ -88,12 +88,12 @@ Expecting ` + U.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = " $, I, S.yy, - B[1], + N[1], f, r ].concat(C)), typeof Y < "u") return Y; - V && (i = i.slice(0, -1 * V * 2), f = f.slice(0, -1 * V), r = r.slice(0, -1 * V)), i.push(this.productions_[B[1]][0]), f.push(z.$), r.push(z._$), tt = v[i[i.length - 2]][i[i.length - 1]], i.push(tt); + V && (i = i.slice(0, -1 * V * 2), f = f.slice(0, -1 * V), r = r.slice(0, -1 * V)), i.push(this.productions_[N[1]][0]), f.push(z.$), r.push(z._$), tt = v[i[i.length - 2]][i[i.length - 1]], i.push(tt); break; case 3: return !0; @@ -368,23 +368,23 @@ var bt = Q, xt = class { return; } i -= 20; - const r = _.filter((S, N) => N % 2 === 0), v = _.filter((S, N) => N % 2 === 1), w = at(r), I = at(v), $ = w.total + I.total; + const r = _.filter((S, P) => P % 2 === 0), v = _.filter((S, P) => P % 2 === 1), w = at(r), I = at(v), $ = w.total + I.total; let L = F, A = F; if ($ > 0) { - const S = F * 2, N = F * 0.3; - L = Math.max(N, S * (w.total / $)), A = Math.max(N, S * (I.total / $)); + const S = F * 2, P = F * 0.3; + L = Math.max(P, S * (w.total / $)), A = Math.max(P, S * (I.total / $)); } const C = k * 2; L = Math.max(L, w.max * C), A = Math.max(A, I.max * C), h = Math.max(L, F), f && f.attr("y1", h).attr("y2", h), E.select(".ishikawa-head-group").attr("transform", `translate(0,${h})`); const b = Math.ceil(_.length / 2); for (let S = 0; S < b; S++) { - const N = E.append("g").attr("class", "ishikawa-pair"); + const P = E.append("g").attr("class", "ishikawa-pair"); for (const [R, H, X] of [ [_[S * 2], -1, L], [_[S * 2 + 1], 1, A] ]) - R && Mt(N, R, i, h, H, X, k, e); - i = N.selectAll("text").nodes().reduce((R, H) => Math.min(R, H.getBBox().x), 1 / 0); + R && Mt(P, R, i, h, H, X, k, e); + i = P.selectAll("text").nodes().reduce((R, H) => Math.min(R, H.getBBox().x), 1 / 0); } if (g) j(E, i, h, 0, h, "ishikawa-spine", e); @@ -472,7 +472,7 @@ var bt = Q, xt = class { u.insert(() => k, ":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"), K = /* @__PURE__ */ l((t, d, n, a, o, y) => { +}, "drawCauseLabel"), q = /* @__PURE__ */ l((t, d, n, a, o, y) => { const p = Math.sqrt(a * a + o * o); if (p === 0) return; @@ -487,7 +487,7 @@ var bt = Q, xt = class { t.append(() => O); }, "drawArrowMarker"), Mt = /* @__PURE__ */ l((t, d, n, a, o, y, p, u) => { const m = d.children ?? [], c = y * (m.length ? 1 : 0.2), k = -it * c, g = st * c * o, _ = n + k, x = a + g; - if (j(t, n, a, _, x, "ishikawa-branch", u), u && K(t, n, a, n - _, a - x, u), Tt(t, d.text, _, x, o, p, u), !m.length) + if (j(t, n, a, _, x, "ishikawa-branch", u), u && q(t, n, a, n - _, a - x, u), Tt(t, d.text, _, x, o, p, u), !m.length) return; const { entries: D, yOrder: O } = Lt(m, o), E = D.length, T = new Array(E); for (const [f, r] of O.entries()) @@ -507,10 +507,10 @@ var bt = Q, xt = class { let $ = 0, L = 0, A = 0; if (r.depth % 2 === 0) { const C = w.y1 - w.y0; - $ = rt(w.x0, w.x1, C ? (v - w.y0) / C : 0.5), L = v, A = $ - (r.childCount > 0 ? $t + r.childCount * Et : St), j(I, $, v, A, v, "ishikawa-sub-branch", u), u && K(I, $, v, 1, 0, u), Z(I, r.text, A, v, "ishikawa-label align", "end", p); + $ = rt(w.x0, w.x1, C ? (v - w.y0) / C : 0.5), L = v, A = $ - (r.childCount > 0 ? $t + r.childCount * Et : St), j(I, $, v, A, v, "ishikawa-sub-branch", u), u && q(I, $, v, 1, 0, u), Z(I, r.text, A, v, "ishikawa-label align", "end", p); } else { const C = w.childrenDrawn++; - $ = rt(w.x0, w.x1, (w.childCount - C) / (w.childCount + 1)), L = w.y0, A = $ + s * ((v - L) / i), j(I, $, L, A, v, "ishikawa-sub-branch", u), u && K(I, $, L, $ - A, L - v, u), Z(I, r.text, A, v, h, "end", p); + $ = rt(w.x0, w.x1, (w.childCount - C) / (w.childCount + 1)), L = w.y0, A = $ + s * ((v - L) / i), j(I, $, L, A, v, "ishikawa-sub-branch", u), u && q(I, $, L, $ - A, L - v, u), Z(I, r.text, A, v, h, "end", p); } r.childCount > 0 && e.set(f, { x0: $, @@ -521,7 +521,7 @@ var bt = Q, xt = class { childrenDrawn: 0 }); } -}, "drawBranch"), Nt = /* @__PURE__ */ l((t) => t.split(/|\n/), "splitLines"), ht = /* @__PURE__ */ l((t, d) => { +}, "drawBranch"), Pt = /* @__PURE__ */ l((t) => t.split(/|\n/), "splitLines"), ht = /* @__PURE__ */ l((t, d) => { if (t.length <= d) return t; const n = []; @@ -532,7 +532,7 @@ var bt = Q, xt = class { return n.join(` `); }, "wrapText"), Z = /* @__PURE__ */ l((t, d, n, a, o, y, p) => { - const u = Nt(d), m = p * 1.05, c = t.append("text").attr("class", o).attr("text-anchor", y).attr("x", n).attr("y", a - (u.length - 1) * m / 2); + const u = Pt(d), m = p * 1.05, c = t.append("text").attr("class", o).attr("text-anchor", y).attr("x", n).attr("y", a - (u.length - 1) * m / 2); for (const [k, g] of u.entries()) c.append("tspan").attr("x", n).attr("dy", k === 0 ? 0 : m).text(g); return c; @@ -548,7 +548,7 @@ var bt = Q, xt = class { return; } return t.append("line").attr("class", y).attr("x1", d).attr("y1", n).attr("x2", a).attr("y2", o); -}, "drawLine"), Pt = { draw: At }, Bt = /* @__PURE__ */ l((t) => ` +}, "drawLine"), Bt = { draw: At }, Nt = /* @__PURE__ */ l((t) => ` .ishikawa .ishikawa-spine, .ishikawa .ishikawa-branch, .ishikawa .ishikawa-sub-branch { @@ -611,12 +611,12 @@ var bt = Q, xt = class { .ishikawa .ishikawa-label.down { dominant-baseline: hanging; } -`, "getStyles"), Dt = Bt, Ct = { +`, "getStyles"), Dt = Nt, Ct = { parser: bt, get db() { return new xt(); }, - renderer: Pt, + renderer: Bt, styles: Dt }; export { diff --git a/src/wc-content-kit/public/mermaid/journeyDiagram-VCZTEJTY-BjKGMf6G.js b/src/wc-content-kit/public/mermaid/journeyDiagram-JHISSGLW-cravMGgb.js similarity index 99% rename from src/wc-content-kit/public/mermaid/journeyDiagram-VCZTEJTY-BjKGMf6G.js rename to src/wc-content-kit/public/mermaid/journeyDiagram-JHISSGLW-cravMGgb.js index 9ed22e2..9962d69 100644 --- a/src/wc-content-kit/public/mermaid/journeyDiagram-VCZTEJTY-BjKGMf6G.js +++ b/src/wc-content-kit/public/mermaid/journeyDiagram-JHISSGLW-cravMGgb.js @@ -1,7 +1,7 @@ -import { g as gt } from "./chunk-FMBD7UC4-GcD7N4Rf.js"; -import { a as mt, g as lt, h as xt, d as kt } from "./chunk-YZCP3GAM-fs19uw3J.js"; -import { g as _t, s as vt, a as bt, b as wt, q as Tt, p as St, _ as s, c as R, d as X, e as $t, z as Mt } from "./mermaid.core-Jw3znkh4.js"; -import { d as it } from "./arc-P0Wtuqay.js"; +import { g as gt } from "./chunk-FMBD7UC4-BsNoqpHi.js"; +import { d as mt, g as lt, f as xt, e as kt } from "./chunk-ND2GUHAM-B58vhIOR.js"; +import { a1 as _t, b0 as vt, a2 as bt, b1 as wt, a5 as Tt, b3 as St, b as s, a4 as R, a_ as X, E as $t, t as Mt } from "./mermaid.core-FRDjOodn.js"; +import { d as it } from "./arc-DoJBinwv.js"; var U = (function() { var t = /* @__PURE__ */ s(function(h, r, n, l) { for (n = n || {}, l = h.length; l--; n[h[l]] = r) ; diff --git a/src/wc-content-kit/public/mermaid/kanban-definition-6JOO6SKY-Cj5VW-_i.js b/src/wc-content-kit/public/mermaid/kanban-definition-UN3LZRKU-BPM9GFPR.js similarity index 77% rename from src/wc-content-kit/public/mermaid/kanban-definition-6JOO6SKY-Cj5VW-_i.js rename to src/wc-content-kit/public/mermaid/kanban-definition-UN3LZRKU-BPM9GFPR.js index 1170677..8f7e8d6 100644 --- a/src/wc-content-kit/public/mermaid/kanban-definition-6JOO6SKY-Cj5VW-_i.js +++ b/src/wc-content-kit/public/mermaid/kanban-definition-UN3LZRKU-BPM9GFPR.js @@ -1,17 +1,17 @@ -import { _ as o, l as te, c as H, I as fe, af as ye, ag as be, ah as me, Y as _e, G as Y, i as j, t as ke, J as Ee, V as Se, W as ce, X as le } from "./mermaid.core-Jw3znkh4.js"; -import { g as Ne } from "./chunk-FMBD7UC4-GcD7N4Rf.js"; +import { b as o, aD as te, a4 as H, a$ as fe, ak as ye, an as be, aQ as me, b6 as ke, S as K, aZ as F, aC as Ee, J as _e, au as Se, az as ce, L as le } from "./mermaid.core-FRDjOodn.js"; +import { g as Ne } from "./chunk-FMBD7UC4-BsNoqpHi.js"; var $ = (function() { - var e = /* @__PURE__ */ o(function(O, i, n, r) { - for (n = n || {}, r = O.length; r--; n[O[r]] = i) ; + var e = /* @__PURE__ */ o(function(O, s, n, r) { + for (n = n || {}, r = O.length; r--; n[O[r]] = s) ; return n; - }, "o"), h = [1, 4], p = [1, 13], s = [1, 12], d = [1, 15], _ = [1, 16], m = [1, 20], l = [1, 19], D = [6, 7, 8], I = [1, 26], g = [1, 24], w = [1, 25], k = [6, 7, 11], F = [1, 31], N = [6, 7, 11, 24], V = [1, 6, 13, 16, 17, 20, 23], f = [1, 35], A = [1, 36], L = [1, 6, 7, 11, 13, 16, 17, 20, 23], M = [1, 38], T = { + }, "o"), h = [1, 4], p = [1, 13], i = [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], G = [1, 31], N = [6, 7, 11, 24], V = [1, 6, 13, 16, 17, 20, 23], f = [1, 35], A = [1, 36], L = [1, 6, 7, 11, 13, 16, 17, 20, 23], M = [1, 38], T = { trace: /* @__PURE__ */ 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: /* @__PURE__ */ o(function(i, n, r, a, u, t, U) { + performAction: /* @__PURE__ */ o(function(s, n, r, a, u, t, U) { var c = t.length - 1; switch (u) { case 6: @@ -71,23 +71,23 @@ var $ = (function() { break; } }, "anonymous"), - table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: h }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: h }, { 6: p, 7: [1, 10], 9: 9, 12: 11, 13: s, 14: 14, 16: d, 17: _, 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: s, 14: 14, 16: d, 17: _, 18: 17, 19: 18, 20: m, 23: l }, { 6: p, 9: 22, 12: 11, 13: s, 14: 14, 16: d, 17: _, 18: 17, 19: 18, 20: m, 23: l }, { 6: I, 7: g, 10: 23, 11: w }, e(k, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: m, 23: l }), e(k, [2, 19]), e(k, [2, 21], { 15: 30, 24: F }), e(k, [2, 22]), e(k, [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: s, 14: 14, 16: d, 17: _, 18: 17, 19: 18, 20: m, 23: l }, e(V, [2, 14], { 7: f, 11: A }), e(L, [2, 8]), e(L, [2, 9]), e(L, [2, 10]), e(k, [2, 16], { 15: 37, 24: F }), e(k, [2, 17]), e(k, [2, 18]), e(k, [2, 20], { 24: M }), e(N, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, e(V, [2, 13], { 7: f, 11: A }), e(L, [2, 11]), e(L, [2, 12]), e(k, [2, 15], { 24: M }), e(N, [2, 30]), { 22: [1, 41] }, e(N, [2, 27]), e(N, [2, 29])], + table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: h }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: h }, { 6: p, 7: [1, 10], 9: 9, 12: 11, 13: i, 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: i, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, { 6: p, 9: 22, 12: 11, 13: i, 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: G }), 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: i, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, e(V, [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: G }), e(E, [2, 17]), e(E, [2, 18]), e(E, [2, 20], { 24: M }), e(N, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, e(V, [2, 13], { 7: f, 11: A }), e(L, [2, 11]), e(L, [2, 12]), e(E, [2, 15], { 24: M }), e(N, [2, 30]), { 22: [1, 41] }, e(N, [2, 27]), e(N, [2, 29])], defaultActions: { 2: [2, 1], 6: [2, 2] }, - parseError: /* @__PURE__ */ o(function(i, n) { + parseError: /* @__PURE__ */ o(function(s, n) { if (n.recoverable) - this.trace(i); + this.trace(s); else { - var r = new Error(i); + var r = new Error(s); throw r.hash = n, r; } }, "parseError"), - parse: /* @__PURE__ */ o(function(i) { - var n = this, r = [0], a = [], u = [null], t = [], U = this.table, c = "", W = 0, se = 0, ue = 2, re = 1, ge = t.slice.call(arguments, 1), b = Object.create(this.lexer), R = { yy: {} }; + parse: /* @__PURE__ */ o(function(s) { + var n = this, r = [0], a = [], u = [null], t = [], U = this.table, c = "", W = 0, ie = 0, ue = 2, re = 1, ge = t.slice.call(arguments, 1), b = Object.create(this.lexer), R = { yy: {} }; for (var J in this.yy) Object.prototype.hasOwnProperty.call(this.yy, J) && (R.yy[J] = this.yy[J]); - b.setInput(i, R.yy), R.yy.lexer = b, R.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {}); - var q = b.yylloc; - t.push(q); + b.setInput(s, R.yy), R.yy.lexer = b, R.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {}); + var Q = b.yylloc; + t.push(Q); var de = b.options && b.options.ranges; typeof R.yy.parseError == "function" ? this.parseError = R.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; function pe(S) { @@ -99,48 +99,48 @@ var $ = (function() { return S = a.pop() || b.lex() || re, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = n.symbols_[S] || S), S; } o(ae, "lex"); - for (var E, P, x, Q, G = {}, z, C, oe, X; ; ) { - if (P = r[r.length - 1], this.defaultActions[P] ? x = this.defaultActions[P] : ((E === null || typeof E > "u") && (E = ae()), x = U[P] && U[P][E]), typeof x > "u" || !x.length || !x[0]) { - var Z = ""; + for (var _, P, x, Z, j = {}, z, C, oe, X; ; ) { + if (P = r[r.length - 1], this.defaultActions[P] ? x = this.defaultActions[P] : ((_ === null || typeof _ > "u") && (_ = ae()), x = U[P] && U[P][_]), typeof x > "u" || !x.length || !x[0]) { + var q = ""; X = []; for (z in U[P]) this.terminals_[z] && z > ue && X.push("'" + this.terminals_[z] + "'"); - b.showPosition ? Z = "Parse error on line " + (W + 1) + `: + b.showPosition ? q = "Parse error on line " + (W + 1) + `: ` + b.showPosition() + ` -Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "Parse error on line " + (W + 1) + ": Unexpected " + (E == re ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(Z, { +Expecting ` + X.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : q = "Parse error on line " + (W + 1) + ": Unexpected " + (_ == re ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(q, { text: b.match, - token: this.terminals_[E] || E, + token: this.terminals_[_] || _, line: b.yylineno, - loc: q, + loc: Q, expected: X }); } if (x[0] instanceof Array && x.length > 1) - throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + E); + throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + _); switch (x[0]) { case 1: - r.push(E), u.push(b.yytext), t.push(b.yylloc), r.push(x[1]), E = null, se = b.yyleng, c = b.yytext, W = b.yylineno, q = b.yylloc; + r.push(_), u.push(b.yytext), t.push(b.yylloc), r.push(x[1]), _ = null, ie = b.yyleng, c = b.yytext, W = b.yylineno, Q = b.yylloc; break; case 2: - if (C = this.productions_[x[1]][1], G.$ = u[u.length - C], G._$ = { + if (C = this.productions_[x[1]][1], j.$ = u[u.length - C], j._$ = { 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 - }, de && (G._$.range = [ + }, de && (j._$.range = [ t[t.length - (C || 1)].range[0], t[t.length - 1].range[1] - ]), Q = this.performAction.apply(G, [ + ]), Z = this.performAction.apply(j, [ c, - se, + ie, W, R.yy, x[1], u, t - ].concat(ge)), typeof Q < "u") - return Q; - C && (r = r.slice(0, -1 * C * 2), u = u.slice(0, -1 * C), t = t.slice(0, -1 * C)), r.push(this.productions_[x[1]][0]), u.push(G.$), t.push(G._$), oe = U[r[r.length - 2]][r[r.length - 1]], r.push(oe); + ].concat(ge)), typeof Z < "u") + return Z; + C && (r = r.slice(0, -1 * C * 2), u = u.slice(0, -1 * C), t = t.slice(0, -1 * C)), r.push(this.productions_[x[1]][0]), u.push(j.$), t.push(j._$), oe = U[r[r.length - 2]][r[r.length - 1]], r.push(oe); break; case 3: return !0; @@ -148,7 +148,7 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = " } return !0; }, "parse") - }, K = /* @__PURE__ */ (function() { + }, Y = /* @__PURE__ */ (function() { var O = { EOF: 1, parseError: /* @__PURE__ */ o(function(n, r) { @@ -158,8 +158,8 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = " throw new Error(n); }, "parseError"), // resets the lexer, sets new input - setInput: /* @__PURE__ */ 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 = { + setInput: /* @__PURE__ */ o(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, @@ -168,15 +168,15 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = " }, "setInput"), // consumes and returns one char from the input input: /* @__PURE__ */ 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; + 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"), // unshifts one char (or a string) into the input - unput: /* @__PURE__ */ o(function(i) { - var n = i.length, r = i.split(/(?:\r\n?|\n)/g); - this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n; + unput: /* @__PURE__ */ o(function(s) { + var n = s.length, r = 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 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), r.length - 1 && (this.yylineno -= r.length - 1); var u = this.yylloc.range; @@ -205,27 +205,27 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = " return this; }, "reject"), // retain first n characters of the match - less: /* @__PURE__ */ o(function(i) { - this.unput(this.match.slice(i)); + less: /* @__PURE__ */ o(function(s) { + this.unput(this.match.slice(s)); }, "less"), // displays already matched input, i.e. for error messages pastInput: /* @__PURE__ */ o(function() { - var i = this.matched.substr(0, this.matched.length - this.match.length); - return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, ""); + var s = this.matched.substr(0, this.matched.length - this.match.length); + return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, ""); }, "pastInput"), // displays upcoming input, i.e. for error messages upcomingInput: /* @__PURE__ */ 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, ""); + 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"), // displays the character position where the lexing error occurred, i.e. for error messages showPosition: /* @__PURE__ */ o(function() { - var i = this.pastInput(), n = new Array(i.length + 1).join("-"); - return i + this.upcomingInput() + ` + var s = this.pastInput(), n = new Array(s.length + 1).join("-"); + return s + this.upcomingInput() + ` ` + n + "^"; }, "showPosition"), // test the lexed token: return FALSE when not a match, otherwise return token - test_match: /* @__PURE__ */ o(function(i, n) { + test_match: /* @__PURE__ */ o(function(s, n) { var r, a, u; if (this.options.backtrack_lexer && (u = { yylineno: this.yylineno, @@ -246,12 +246,12 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = " yy: this.yy, conditionStack: this.conditionStack.slice(0), done: this.done - }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), a = i[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = { + }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), a = s[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], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r) + last_column: a ? a[a.length - 1].length - a[a.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], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r) return r; if (this._backtrack) { for (var t in u) @@ -265,13 +265,13 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = " if (this.done) return this.EOF; this._input || (this.done = !0); - var i, n, r, a; + var s, n, r, a; this._more || (this.yytext = "", this.match = ""); for (var u = this._currentRules(), t = 0; t < u.length; t++) if (r = this._input.match(this.rules[u[t]]), r && (!n || r[0].length > n[0].length)) { if (n = r, a = t, this.options.backtrack_lexer) { - if (i = this.test_match(r, u[t]), i !== !1) - return i; + if (s = this.test_match(r, u[t]), s !== !1) + return s; if (this._backtrack) { n = !1; continue; @@ -280,7 +280,7 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = " } else if (!this.options.flex) break; } - return n ? (i = this.test_match(n, u[a]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text. + return n ? (s = this.test_match(n, u[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text. ` + this.showPosition(), { text: "", token: null, @@ -423,46 +423,46 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = " }; return O; })(); - T.lexer = K; + T.lexer = Y; function B() { this.yy = {}; } return o(B, "Parser"), B.prototype = T, T.Parser = B, new B(); })(); $.parser = $; -var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => { - v = [], ne = [], ee = 0, ie = {}; +var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => { + v = [], ne = [], ee = 0, se = {}; }, "clear"), De = /* @__PURE__ */ o((e) => { if (v.length === 0) return null; const h = v[0].level; let p = null; - for (let s = v.length - 1; s >= 0; s--) - if (v[s].level === h && !p && (p = v[s]), v[s].level < h) - throw new Error('Items without section detected, found section ("' + v[s].label + '")'); + for (let i = v.length - 1; i >= 0; i--) + if (v[i].level === h && !p && (p = v[i]), v[i].level < h) + throw new Error('Items without section detected, found section ("' + v[i].label + '")'); return e === p?.level ? null : p; }, "getSection"), he = /* @__PURE__ */ o(function() { return ne; }, "getSections"), Le = /* @__PURE__ */ o(function() { - const e = [], h = [], p = he(), s = H(); + const e = [], h = [], p = he(), i = H(); for (const d of p) { - const _ = { + const k = { id: d.id, - label: j(d.label ?? "", s), + label: F(d.label ?? "", i), labelType: "markdown", isGroup: !0, ticket: d.ticket, shape: "kanbanSection", level: d.level, - look: s.look + look: i.look }; - h.push(_); + h.push(k); const m = v.filter((l) => l.parentId === d.id); for (const l of m) { const D = { id: l.id, parentId: d.id, - label: j(l.label ?? "", s), + label: F(l.label ?? "", i), labelType: "markdown", isGroup: !1, ticket: l?.ticket, @@ -479,20 +479,20 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => { } } return { nodes: h, edges: e, other: {}, config: H() }; -}, "getData"), Oe = /* @__PURE__ */ o((e, h, p, s, d) => { - const _ = H(); - let m = _.mindmap?.padding ?? Y.mindmap.padding; - switch (s) { +}, "getData"), Oe = /* @__PURE__ */ o((e, h, p, i, d) => { + const k = H(); + let m = k.mindmap?.padding ?? K.mindmap.padding; + switch (i) { case y.ROUNDED_RECT: case y.RECT: case y.HEXAGON: m *= 2; } const l = { - id: j(h, _) || "kbn" + ee++, + id: F(h, k) || "kbn" + ee++, level: e, - label: j(p, _), - width: _.mindmap?.maxNodeWidth ?? Y.mindmap.maxNodeWidth, + label: F(p, k), + width: k.mindmap?.maxNodeWidth ?? K.mindmap.maxNodeWidth, padding: m, isGroup: !1 }; @@ -503,7 +503,7 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => { ` : I = `{ ` + d + ` }`; - const g = ke(I, { schema: Ee }); + const g = Ee(I, { schema: _e }); 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); @@ -537,12 +537,12 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => { return y.DEFAULT; } }, "getType"), Ce = /* @__PURE__ */ o((e, h) => { - ie[e] = h; + se[e] = h; }, "setElementForId"), we = /* @__PURE__ */ o((e) => { if (!e) return; const h = H(), p = v[v.length - 1]; - e.icon && (p.icon = j(e.icon, h)), e.class && (p.cssClasses = j(e.class, h)); + e.icon && (p.icon = F(e.icon, h)), e.class && (p.cssClasses = F(e.class, h)); }, "decorateNode"), Ae = /* @__PURE__ */ o((e) => { switch (e) { case y.DEFAULT: @@ -563,7 +563,7 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => { default: return "no-border"; } -}, "type2Str"), Te = /* @__PURE__ */ o(() => te, "getLogger"), Re = /* @__PURE__ */ o((e) => ie[e], "getElementById"), Pe = { +}, "type2Str"), Te = /* @__PURE__ */ o(() => te, "getLogger"), Re = /* @__PURE__ */ o((e) => se[e], "getElementById"), Pe = { clear: ve, addNode: Oe, getSections: he, @@ -575,84 +575,84 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => { type2Str: Ae, getLogger: Te, getElementById: Re -}, Ve = Pe, Be = /* @__PURE__ */ o(async (e, h, p, s) => { +}, Ve = Pe, Be = /* @__PURE__ */ o(async (e, h, p, i) => { te.debug(`Rendering kanban diagram ` + e); - const _ = s.db.getData(), m = H(); + const k = i.db.getData(), m = H(); m.htmlLabels = !1; const l = fe(h); - for (const f of _.nodes) + for (const f of k.nodes) f.domId = `${h}-${f.id}`; const D = l.append("g"); D.attr("class", "sections"); const I = l.append("g"); I.attr("class", "items"); - const g = _.nodes.filter( + const g = k.nodes.filter( // TODO: TypeScript 5.5 will infer this predicate automatically (f) => f.isGroup ); let w = 0; - const k = 10, F = []; + const E = 10, G = []; let N = 25; for (const f of g) { const A = m?.kanban?.sectionWidth || 200; - w = w + 1, f.x = A * w + (w - 1) * k / 2, f.width = A, f.y = 0, f.height = A * 3, f.rx = 5, f.ry = 5, f.cssClasses = f.cssClasses + " section-" + w; + 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; const L = await ye(D, f); - N = Math.max(N, L?.labelBBox?.height), F.push(L); + N = Math.max(N, L?.labelBBox?.height), G.push(L); } let V = 0; for (const f of g) { - const A = F[V]; + const A = G[V]; V = V + 1; const L = m?.kanban?.sectionWidth || 200, M = -L * 3 / 2 + N; let T = M; - const K = _.nodes.filter((i) => i.parentId === f.id); - for (const i of K) { - if (i.isGroup) + const Y = k.nodes.filter((s) => s.parentId === f.id); + for (const s of Y) { + if (s.isGroup) throw new Error("Groups within groups are not allowed in Kanban diagrams"); - i.x = f.x, i.width = L - 1.5 * k; - const r = (await be(I, i, { config: m })).node().getBBox(); - i.y = T + r.height / 2, await me(i), T = i.y + r.height / 2 + k / 2; + s.x = f.x, s.width = L - 1.5 * E; + const r = (await be(I, s, { config: m })).node().getBBox(); + s.y = T + r.height / 2, await me(s), T = s.y + r.height / 2 + E / 2; } - const B = A.cluster.select("rect"), O = Math.max(T - M + 3 * k, 50) + (N - 25); + const B = A.cluster.select("rect"), O = Math.max(T - M + 3 * E, 50) + (N - 25); B.attr("height", O); } - _e( + ke( void 0, l, - m.mindmap?.padding ?? Y.kanban.padding, - m.mindmap?.useMaxWidth ?? Y.kanban.useMaxWidth + m.mindmap?.padding ?? K.kanban.padding, + m.mindmap?.useMaxWidth ?? K.kanban.useMaxWidth ); -}, "draw"), Ge = { +}, "draw"), je = { draw: Be -}, je = /* @__PURE__ */ o((e) => { +}, Fe = /* @__PURE__ */ o((e) => { let h = ""; - for (let s = 0; s < e.THEME_COLOR_LIMIT; s++) - e["lineColor" + s] = e["lineColor" + s] || e["cScaleInv" + s], Se(e["lineColor" + s]) ? e["lineColor" + s] = ce(e["lineColor" + s], 20) : e["lineColor" + s] = le(e["lineColor" + s], 20); - const p = /* @__PURE__ */ o((s, d) => e.darkMode ? le(s, d) : ce(s, d), "adjuster"); - for (let s = 0; s < e.THEME_COLOR_LIMIT; s++) { - const d = "" + (17 - 3 * s); + for (let i = 0; i < e.THEME_COLOR_LIMIT; i++) + e["lineColor" + i] = e["lineColor" + i] || e["cScaleInv" + i], Se(e["lineColor" + i]) ? e["lineColor" + i] = ce(e["lineColor" + i], 20) : e["lineColor" + i] = le(e["lineColor" + i], 20); + const p = /* @__PURE__ */ o((i, d) => e.darkMode ? le(i, d) : ce(i, d), "adjuster"); + for (let i = 0; i < e.THEME_COLOR_LIMIT; i++) { + const d = "" + (17 - 3 * i); h += ` - .section-${s - 1} rect, .section-${s - 1} path, .section-${s - 1} circle, .section-${s - 1} polygon, .section-${s - 1} path { - fill: ${p(e["cScale" + s], 10)}; - stroke: ${p(e["cScale" + s], 10)}; + .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path { + fill: ${p(e["cScale" + i], 10)}; + stroke: ${p(e["cScale" + i], 10)}; } - .section-${s - 1} text { - fill: ${e["cScaleLabel" + s]}; + .section-${i - 1} text { + fill: ${e["cScaleLabel" + i]}; } - .node-icon-${s - 1} { + .node-icon-${i - 1} { font-size: 40px; - color: ${e["cScaleLabel" + s]}; + color: ${e["cScaleLabel" + i]}; } - .section-edge-${s - 1}{ - stroke: ${e["cScale" + s]}; + .section-edge-${i - 1}{ + stroke: ${e["cScale" + i]}; } - .edge-depth-${s - 1}{ + .edge-depth-${i - 1}{ stroke-width: ${d}; } - .section-${s - 1} line { - stroke: ${e["cScaleInv" + s]} ; + .section-${i - 1} line { + stroke: ${e["cScaleInv" + i]} ; stroke-width: 3; } @@ -681,11 +681,11 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => { `; } return h; -}, "genSections"), Fe = /* @__PURE__ */ o((e) => ` +}, "genSections"), Ge = /* @__PURE__ */ o((e) => ` .edge { stroke-width: 3; } - ${je(e)} + ${Fe(e)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${e.git0}; } @@ -713,9 +713,9 @@ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => { text-align: center; } ${Ne()} -`, "getStyles"), Me = Fe, We = { +`, "getStyles"), Me = Ge, We = { db: Ve, - renderer: Ge, + renderer: je, parser: xe, styles: Me }; diff --git a/src/wc-content-kit/public/mermaid/katex-D3uLT2GX.js b/src/wc-content-kit/public/mermaid/katex-DoRnZ_sp.js similarity index 72% rename from src/wc-content-kit/public/mermaid/katex-D3uLT2GX.js rename to src/wc-content-kit/public/mermaid/katex-DoRnZ_sp.js index b316b71..e06fb2c 100644 --- a/src/wc-content-kit/public/mermaid/katex-D3uLT2GX.js +++ b/src/wc-content-kit/public/mermaid/katex-DoRnZ_sp.js @@ -1,27 +1,25 @@ class S extends Error { - // Error start position based on passed-in Token or ParseNode. - // Length of affected text based on passed-in Token or ParseNode. // The underlying error message without any context added. constructor(e, t) { - var a = "KaTeX parse error: " + e, n, l, u = t && t.loc; + var a = "KaTeX parse error: " + e, i, s, u = t && t.loc; if (u && u.start <= u.end) { var h = u.lexer.input; - n = u.start, l = u.end, n === h.length ? a += " at end of input: " : a += " at position " + (n + 1) + ": "; - var c = h.slice(n, l).replace(/[^]/g, "$&̲"), v; - n > 15 ? v = "…" + h.slice(n - 15, n) : v = h.slice(0, n); - var g; - l + 15 < h.length ? g = h.slice(l, l + 15) + "…" : g = h.slice(l), a += v + c + g; + 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, "$&̲"), v; + i > 15 ? v = "…" + h.slice(i - 15, i) : v = h.slice(0, i); + var p; + s + 15 < h.length ? p = h.slice(s, s + 15) + "…" : p = h.slice(s), a += v + c + p; } - super(a), this.name = "ParseError", Object.setPrototypeOf(this, S.prototype), this.position = n, n != null && l != null && (this.length = l - n), this.rawMessage = e; + super(a), this.name = "ParseError", this.position = void 0, this.length = void 0, this.rawMessage = void 0, Object.setPrototypeOf(this, S.prototype), this.position = i, i != null && s != null && (this.length = s - i), this.rawMessage = e; } } -var I1 = /([A-Z])/g, Tt = (r) => r.replace(I1, "-$1").toLowerCase(), N1 = { +var Y1 = /([A-Z])/g, $1 = (r) => r.replace(Y1, "-$1").toLowerCase(), W1 = { "&": "&", ">": ">", "<": "<", '"': """, "'": "'" -}, O1 = /[&><"']/g, n0 = (r) => String(r).replace(O1, (e) => N1[e]), De = (r) => r.type === "ordgroup" || r.type === "color" ? r.body.length === 1 ? De(r.body[0]) : r : r.type === "font" ? De(r.body) : r, H1 = /* @__PURE__ */ new Set(["mathord", "textord", "atom"]), C0 = (r) => H1.has(De(r).type), F1 = (r) => { +}, j1 = /[&><"']/g, i0 = (r) => String(r).replace(j1, (e) => W1[e]), Ce = (r) => r.type === "ordgroup" || r.type === "color" ? r.body.length === 1 ? Ce(r.body[0]) : r : r.type === "font" ? Ce(r.body) : r, Z1 = /* @__PURE__ */ new Set(["mathord", "textord", "atom"]), D0 = (r) => Z1.has(Ce(r).type), K1 = (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"; }, dt = { @@ -111,13 +109,10 @@ var I1 = /([A-Z])/g, Tt = (r) => r.replace(I1, "-$1").toLowerCase(), N1 = { cli: !1 } }; -function L1(r) { - if ("default" in r) - return r.default; - var e = r.type, t = Array.isArray(e) ? e[0] : e; - if (typeof t != "string") - return t.enum[0]; - switch (t) { +function J1(r) { + if (typeof r != "string") + return r.enum[0]; + switch (r) { case "boolean": return !1; case "string": @@ -126,14 +121,26 @@ function L1(r) { return 0; case "object": return {}; + default: + throw new Error("Unexpected schema type; settings must declare an explicit default."); } } -class Bt { +function Q1(r) { + if (r.default !== void 0) + return r.default; + var e = Array.isArray(r.type) ? r.type[0] : r.type; + return J1(e); +} +function _1(r, e, t, a) { + var i = t[e]; + r[e] = i !== void 0 ? a.processor ? a.processor(i) : i : Q1(a); +} +class Et { constructor(e) { - e === void 0 && (e = {}), e = 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(dt)) { - var a = dt[t], n = e[t]; - this[t] = n !== void 0 ? a.processor ? a.processor(n) : n : L1(a); + var a = dt[t]; + a && _1(this, t, e, a); } } /** @@ -141,11 +148,11 @@ class Bt { * Can safely not be called if `this.strict` is false in JavaScript. */ reportNonstrict(e, t, a) { - var n = this.strict; - if (typeof n == "function" && (n = n(e, t, a)), !(!n || n === "ignore")) { - if (n === !0 || n === "error") + var i = this.strict; + if (typeof i == "function" && (i = i(e, t, a)), !(!i || i === "ignore")) { + if (i === !0 || i === "error") throw new S("LaTeX-incompatible input and strict mode is set to 'error': " + (t + " [" + e + "]"), a); - n === "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 '" + n + "': " + t + " [" + e + "]")); + 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 + "]")); } } /** @@ -157,14 +164,14 @@ class Bt { * This is for the second category of `errorCode`s listed in the README. */ useStrictBehavior(e, t, a) { - var n = this.strict; - if (typeof n == "function") + var i = this.strict; + if (typeof i == "function") try { - n = n(e, t, a); + i = i(e, t, a); } catch { - n = "error"; + i = "error"; } - return !n || n === "ignore" ? !1 : n === !0 || n === "error" ? !0 : n === "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 '" + n + "': " + t + " [" + e + "]")), !1); + 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); } /** * Check whether to test potentially dangerous input, and return @@ -176,7 +183,7 @@ class Bt { */ isTrusted(e) { if ("url" in e && e.url && !e.protocol) { - var t = F1(e.url); + var t = K1(e.url); if (t == null) return !1; e.protocol = t; @@ -185,48 +192,48 @@ class Bt { return !!a; } } -class O0 { +class F0 { constructor(e, t, a) { - this.id = e, this.size = t, this.cramped = a; + this.id = void 0, this.size = void 0, this.cramped = void 0, this.id = e, this.size = t, this.cramped = a; } /** * Get the style of a superscript given a base in the current style. */ sup() { - return w0[P1[this.id]]; + return w0[ea[this.id]]; } /** * Get the style of a subscript given a base in the current style. */ sub() { - return w0[G1[this.id]]; + return w0[ta[this.id]]; } /** * Get the style of a fraction numerator given the fraction in the current * style. */ fracNum() { - return w0[U1[this.id]]; + return w0[ra[this.id]]; } /** * Get the style of a fraction denominator given the fraction in the current * style. */ fracDen() { - return w0[V1[this.id]]; + return w0[aa[this.id]]; } /** * Get the cramped version of a style (in particular, cramping a cramped style * doesn't change the style). */ cramp() { - return w0[X1[this.id]]; + return w0[ia[this.id]]; } /** * Get a text or display version of this style. */ text() { - return w0[Y1[this.id]]; + return w0[na[this.id]]; } /** * Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle) @@ -235,10 +242,10 @@ class O0 { return this.size >= 2; } } -var Dt = 0, qe = 1, _0 = 2, B0 = 3, he = 4, g0 = 5, ee = 6, u0 = 7, w0 = [new O0(Dt, 0, !1), new O0(qe, 0, !0), new O0(_0, 1, !1), new O0(B0, 1, !0), new O0(he, 2, !1), new O0(g0, 2, !0), new O0(ee, 3, !1), new O0(u0, 3, !0)], P1 = [he, g0, he, g0, ee, u0, ee, u0], G1 = [g0, g0, g0, g0, u0, u0, u0, u0], U1 = [_0, B0, he, g0, ee, u0, ee, u0], V1 = [B0, B0, g0, g0, u0, u0, u0, u0], X1 = [qe, qe, B0, B0, g0, g0, u0, u0], Y1 = [Dt, qe, _0, B0, _0, B0, _0, B0], N = { - DISPLAY: w0[Dt], +var Rt = 0, qe = 1, _0 = 2, B0 = 3, me = 4, p0 = 5, ee = 6, l0 = 7, w0 = [new F0(Rt, 0, !1), new F0(qe, 0, !0), new F0(_0, 1, !1), new F0(B0, 1, !0), new F0(me, 2, !1), new F0(p0, 2, !0), new F0(ee, 3, !1), new F0(l0, 3, !0)], ea = [me, p0, me, p0, ee, l0, ee, l0], ta = [p0, p0, p0, p0, l0, l0, l0, l0], ra = [_0, B0, me, p0, ee, l0, ee, l0], aa = [B0, B0, p0, p0, l0, l0, l0, l0], ia = [qe, qe, B0, B0, p0, p0, l0, l0], na = [Rt, qe, _0, B0, _0, B0, _0, B0], N = { + DISPLAY: w0[Rt], TEXT: w0[_0], - SCRIPT: w0[he], + SCRIPT: w0[me], SCRIPTSCRIPT: w0[ee] }, ft = [{ // Latin characters beyond the Latin-1 characters we have metrics for. @@ -299,24 +306,24 @@ var Dt = 0, qe = 1, _0 = 2, B0 = 3, he = 4, g0 = 5, ee = 6, u0 = 7, w0 = [new O0 name: "hangul", blocks: [[44032, 55215]] }]; -function W1(r) { +function sa(r) { for (var e = 0; e < ft.length; e++) for (var t = ft[e], a = 0; a < t.blocks.length; a++) { - var n = t.blocks[a]; - if (r >= n[0] && r <= n[1]) + var i = t.blocks[a]; + if (r >= i[0] && r <= i[1]) return t.name; } return null; } -var Ce = []; -ft.forEach((r) => r.blocks.forEach((e) => Ce.push(...e))); -function Cr(r) { - for (var e = 0; e < Ce.length; e += 2) - if (r >= Ce[e] && r <= Ce[e + 1]) +var De = []; +ft.forEach((r) => r.blocks.forEach((e) => De.push(...e))); +function Gr(r) { + for (var e = 0; e < De.length; e += 2) + if (r >= De[e] && r <= De[e + 1]) return !0; return !1; } -var r0 = (r) => r + " " + r, Q0 = 80, $1 = function(e, t) { +var r0 = (r) => r + " " + r, Q0 = 80, la = 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 @@ -329,7 +336,7 @@ 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"; -}, j1 = function(e, t) { +}, ua = 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 @@ -341,7 +348,7 @@ 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"; -}, Z1 = function(e, t) { +}, oa = function(e, t) { return "M983 " + (10 + e + t) + ` l` + e / 3.13 + " -" + e + ` c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + ` @@ -352,7 +359,7 @@ 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"; -}, K1 = function(e, t) { +}, ha = 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 @@ -364,7 +371,7 @@ 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"; -}, J1 = function(e, t) { +}, ma = 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 @@ -373,40 +380,40 @@ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1 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"; -}, Q1 = function(e) { +}, ca = function(e) { var t = e / 2; return "M400000 " + e + " H0 L" + t + " 0 l65 45 L145 " + (e - 80) + " H400000z"; -}, _1 = function(e, t, a) { - var n = a - 54 - t - e; +}, da = function(e, t, a) { + var i = a - 54 - t - e; return "M702 " + (e + t) + "H400000" + (40 + e) + ` -H742v` + n + `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 +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"; -}, ea = function(e, t, a) { +}, fa = function(e, t, a) { t = 1e3 * t; - var n = ""; + var i = ""; switch (e) { case "sqrtMain": - n = $1(t, Q0); + i = la(t, Q0); break; case "sqrtSize1": - n = j1(t, Q0); + i = ua(t, Q0); break; case "sqrtSize2": - n = Z1(t, Q0); + i = oa(t, Q0); break; case "sqrtSize3": - n = K1(t, Q0); + i = ha(t, Q0); break; case "sqrtSize4": - n = J1(t, Q0); + i = ma(t, Q0); break; case "sqrtTall": - n = _1(t, Q0, a); + i = da(t, Q0, a); } - return n; -}, ta = function(e, t) { + return i; +}, va = function(e, t) { switch (e) { case "⎜": return r0("M291 0 H417 V" + t + " H291z"); @@ -429,7 +436,7 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 default: return ""; } -}, Qt = { +}, ar = { // The doubleleftarrow geometry is from glyph U+21D0 in the font KaTeX Main 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 @@ -681,11 +688,11 @@ 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` -}, ra = function(e, t) { +}, pa = function(e, t) { switch (e) { case "lbrack": - return "M403 1759 V84 H666 V0 H319 V1759 v" + t + ` v1759 h347 v-84 -H403z M403 1759 V0 H319 V1759 v` + t + " v1759 h84z"; + 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"; @@ -735,10 +742,13 @@ l0,-` + (t + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, throw new Error("Unknown stretchy delimiter."); } }; +function ga(r) { + return "toText" in r; +} class ae { // Never used; needed for satisfying interface. constructor(e) { - this.children = e, this.classes = [], this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = {}; + 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); @@ -760,8 +770,11 @@ class ae { * MathDomNode's only. */ toText() { - var e = (t) => t.toText(); - return this.children.map(e).join(""); + return this.children.map((e) => { + if (ga(e)) + return e.toText(); + throw new Error("Expected MathDomNode with toText, got " + e.constructor.name); + }).join(""); } } var vt = { @@ -792,12 +805,12 @@ var vt = { // https://tex.stackexchange.com/a/41371 px: 803 / 800 // \pdfpxdimen defaults to 1 bp in pdfTeX and LuaTeX -}, aa = { +}, ba = { ex: !0, em: !0, mu: !0 -}, qr = function(e) { - return typeof e != "string" && (e = e.unit), e in vt || e in aa || e === "ex"; +}, Ur = function(e) { + return typeof e != "string" && (e = e.unit), e in vt || e in ba || e === "ex"; }, K = function(e, t) { var a; if (e.unit in vt) @@ -805,56 +818,59 @@ var vt = { else if (e.unit === "mu") a = t.fontMetrics().cssEmPerMu; else { - var n; - if (t.style.isTight() ? n = t.havingStyle(t.style.text()) : n = t, e.unit === "ex") - a = n.fontMetrics().xHeight; + 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 = n.fontMetrics().quad; + a = i.fontMetrics().quad; else throw new S("Invalid unit: '" + e.unit + "'"); - n !== t && (a *= n.sizeMultiplier / t.sizeMultiplier); + i !== t && (a *= i.sizeMultiplier / t.sizeMultiplier); } return Math.min(e.number * a, t.maxSize); }, A = function(e) { return +e.toFixed(4) + "em"; }, L0 = function(e) { return e.filter((t) => t).join(" "); -}, Er = function(e, t, a) { +}, It = function(e) { + var t = ""; + for (var a of Object.keys(e)) { + var i = e[a]; + i !== void 0 && (t += $1(a) + ":" + i + ";"); + } + return t; +}, Vr = 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 n = t.getColor(); - n && (this.style.color = n); + var i = t.getColor(); + i && (this.style.color = i); } -}, Rr = function(e) { +}, Xr = function(e) { var t = document.createElement(e); - t.className = L0(this.classes); - for (var a of Object.keys(this.style)) - t.style[a] = this.style[a]; - for (var n of Object.keys(this.attributes)) - t.setAttribute(n, this.attributes[n]); - for (var l = 0; l < this.children.length; l++) - t.appendChild(this.children[l].toNode()); + t.className = L0(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 < this.children.length; i++) + t.appendChild(this.children[i].toNode()); return t; -}, na = /[\s"'>/=\x00-\x1f]/, Ir = function(e) { +}, ya = /[\s"'>/=\x00-\x1f]/, Yr = function(e) { var t = "<" + e; - this.classes.length && (t += ' class="' + n0(L0(this.classes)) + '"'); - var a = ""; - for (var n of Object.keys(this.style)) - a += Tt(n) + ":" + this.style[n] + ";"; - a && (t += ' style="' + n0(a) + '"'); - for (var l of Object.keys(this.attributes)) { - if (na.test(l)) - throw new S("Invalid attribute name '" + l + "'"); - t += " " + l + '="' + n0(this.attributes[l]) + '"'; + this.classes.length && (t += ' class="' + i0(L0(this.classes)) + '"'); + var a = It(this.style); + a && (t += ' style="' + i0(a) + '"'); + for (var i of Object.keys(this.attributes)) { + if (ya.test(i)) + throw new S("Invalid attribute name '" + i + "'"); + t += " " + i + '="' + i0(this.attributes[i]) + '"'; } t += ">"; - for (var u = 0; u < this.children.length; u++) - t += this.children[u].toMarkup(); + for (var s = 0; s < this.children.length; s++) + t += this.children[s].toMarkup(); return t += "", t; }; -class ne { - constructor(e, t, a, n) { - Er.call(this, e, a, n), this.children = t || []; +class ie { + 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, Vr.call(this, e, a, i), this.children = t || []; } /** * Sets an arbitrary attribute on the span. Warning: use this wisely. Not @@ -868,15 +884,15 @@ class ne { return this.classes.includes(e); } toNode() { - return Rr.call(this, "span"); + return Xr.call(this, "span"); } toMarkup() { - return Ir.call(this, "span"); + return Yr.call(this, "span"); } } -class Oe { - constructor(e, t, a, n) { - Er.call(this, t, n), this.children = a || [], this.setAttribute("href", e); +class Fe { + 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, Vr.call(this, t, i), this.children = a || [], this.setAttribute("href", e); } setAttribute(e, t) { this.attributes[e] = t; @@ -885,45 +901,40 @@ class Oe { return this.classes.includes(e); } toNode() { - return Rr.call(this, "a"); + return Xr.call(this, "a"); } toMarkup() { - return Ir.call(this, "a"); + return Yr.call(this, "a"); } } -class ia { +class xa { constructor(e, t, a) { - this.alt = t, this.src = e, this.classes = ["mord"], this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = 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"); - e.src = this.src, e.alt = this.alt, e.className = "mord"; - for (var t of Object.keys(this.style)) - e.style[t] = this.style[t]; - return e; + 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 = L0(this.classes)); - for (var a of Object.keys(this.style)) - t = t || document.createElement("span"), t.style[a] = this.style[a]; - return t ? (t.appendChild(e), t) : e; + return this.italic > 0 && (t = document.createElement("span"), t.style.marginRight = A(this.italic)), this.classes.length > 0 && (t = t || document.createElement("span"), t.className = L0(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; } /** * Creates markup for a symbol node. */ toMarkup() { var e = !1, t = " 0 && (a += "margin-right:" + A(this.italic) + ";"); - for (var n of Object.keys(this.style)) - a += Tt(n) + ":" + this.style[n] + ";"; - a && (e = !0, t += ' style="' + n0(a) + '"'); - var l = n0(this.text); - return e ? (t += ">", t += l, t += "", t) : l; + this.italic > 0 && (a += "margin-right:" + A(this.italic) + ";"), a += It(this.style), a && (e = !0, t += ' style="' + i0(a) + '"'); + var i = i0(this.text); + return e ? (t += ">", t += i, t += "", t) : i; } } -class D0 { +class C0 { constructor(e, t) { - this.children = e || [], this.attributes = 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 n = 0; n < this.children.length; n++) - t.appendChild(this.children[n].toNode()); + for (var i = 0; i < this.children.length; i++) + t.appendChild(this.children[i].toNode()); return t; } toMarkup() { var e = '' : ''; + return this.alternate ? '' : ''; } } class pt { constructor(e) { - this.attributes = e || {}; + this.attributes = void 0, this.attributes = e || {}; } toNode() { var e = "http://www.w3.org/2000/svg", t = document.createElementNS(e, "line"); @@ -1001,21 +1006,21 @@ class pt { toMarkup() { var e = " but got " + String(r) + "."); } -var oa = (r) => r instanceof ne || r instanceof Oe || r instanceof ae, k0 = { +var za = (r) => r instanceof ie || r instanceof Fe || r instanceof ae, k0 = { "AMS-Regular": { 32: [0, 0, 0, 0, 0.25], 65: [0, 0.68889, 0, 0, 0.72222], @@ -3090,7 +3095,7 @@ var oa = (r) => r instanceof ne || r instanceof Oe || r instanceof ae, k0 = { 8242: [0, 0.61111, 0, 0, 0.525], 9251: [0.11111, 0.21944, 0, 0, 0.525] } -}, xe = { +}, we = { slant: [0.25, 0.25, 0.25], // sigma1 space: [0, 0, 0], @@ -3171,7 +3176,7 @@ var oa = (r) => r instanceof ne || r instanceof Oe || r instanceof ae, k0 = { // 3 pt / ptPerEm fboxrule: [0.04, 0.04, 0.04] // 0.4 pt / ptPerEm -}, _t = { +}, ir = { // Latin-1 Å: "A", Ð: "D", @@ -3245,858 +3250,889 @@ var oa = (r) => r instanceof ne || r instanceof Oe || r instanceof ae, k0 = { ю: "m", я: "r" }; -function ha(r, e) { +function Aa(r, e) { k0[r] = e; } -function Ct(r, e, t) { +function Nt(r, e, t) { if (!k0[e]) throw new Error("Font metrics not found for font: " + e + "."); - var a = r.charCodeAt(0), n = k0[e][a]; - if (!n && r[0] in _t && (a = _t[r[0]].charCodeAt(0), n = k0[e][a]), !n && t === "text" && Cr(a) && (n = k0[e][77]), n) + var a = r.charCodeAt(0), i = k0[e][a]; + if (!i && r[0] in ir && (a = ir[r[0]].charCodeAt(0), i = k0[e][a]), !i && t === "text" && Gr(a) && (i = k0[e][77]), i) return { - depth: n[0], - height: n[1], - italic: n[2], - skew: n[3], - width: n[4] + depth: i[0], + height: i[1], + italic: i[2], + skew: i[3], + width: i[4] }; } var Je = {}; -function ma(r) { +function Ma(r) { var e; if (r >= 5 ? e = 0 : r >= 3 ? e = 1 : e = 2, !Je[e]) { var t = Je[e] = { - cssEmPerMu: xe.quad[e] / 18 + cssEmPerMu: we.quad[e] / 18 }; - for (var a in xe) - xe.hasOwnProperty(a) && (t[a] = xe[a][e]); + for (var a in we) + we.hasOwnProperty(a) && (t[a] = we[a][e]); } return Je[e]; } -var ca = { - bin: 1, - close: 1, - inner: 1, - open: 1, - punct: 1, - rel: 1 -}, da = { - "accent-token": 1, - mathord: 1, - "op-token": 1, - spacing: 1, - textord: 1 -}, $ = { +var W = { math: {}, text: {} }; -function i(r, e, t, a, n, l) { - $[r][n] = { +function n(r, e, t, a, i, s) { + W[r][i] = { font: e, group: t, replace: a - }, l && a && ($[r][a] = $[r][n]); + }, s && a && (W[r][a] = W[r][i]); } -var s = "math", w = "text", o = "main", d = "ams", j = "accent-token", D = "bin", o0 = "close", ie = "inner", E = "mathord", e0 = "op-token", v0 = "open", ce = "punct", f = "rel", q0 = "spacing", p = "textord"; -i(s, o, f, "≡", "\\equiv", !0); -i(s, o, f, "≺", "\\prec", !0); -i(s, o, f, "≻", "\\succ", !0); -i(s, o, f, "∼", "\\sim", !0); -i(s, o, f, "⊥", "\\perp"); -i(s, o, f, "⪯", "\\preceq", !0); -i(s, o, f, "⪰", "\\succeq", !0); -i(s, o, f, "≃", "\\simeq", !0); -i(s, o, f, "∣", "\\mid", !0); -i(s, o, f, "≪", "\\ll", !0); -i(s, o, f, "≫", "\\gg", !0); -i(s, o, f, "≍", "\\asymp", !0); -i(s, o, f, "∥", "\\parallel"); -i(s, o, f, "⋈", "\\bowtie", !0); -i(s, o, f, "⌣", "\\smile", !0); -i(s, o, f, "⊑", "\\sqsubseteq", !0); -i(s, o, f, "⊒", "\\sqsupseteq", !0); -i(s, o, f, "≐", "\\doteq", !0); -i(s, o, f, "⌢", "\\frown", !0); -i(s, o, f, "∋", "\\ni", !0); -i(s, o, f, "∝", "\\propto", !0); -i(s, o, f, "⊢", "\\vdash", !0); -i(s, o, f, "⊣", "\\dashv", !0); -i(s, o, f, "∋", "\\owns"); -i(s, o, ce, ".", "\\ldotp"); -i(s, o, ce, "⋅", "\\cdotp"); -i(s, o, ce, "⋅", "·"); -i(w, o, p, "⋅", "·"); -i(s, o, p, "#", "\\#"); -i(w, o, p, "#", "\\#"); -i(s, o, p, "&", "\\&"); -i(w, o, p, "&", "\\&"); -i(s, o, p, "ℵ", "\\aleph", !0); -i(s, o, p, "∀", "\\forall", !0); -i(s, o, p, "ℏ", "\\hbar", !0); -i(s, o, p, "∃", "\\exists", !0); -i(s, o, p, "∇", "\\nabla", !0); -i(s, o, p, "♭", "\\flat", !0); -i(s, o, p, "ℓ", "\\ell", !0); -i(s, o, p, "♮", "\\natural", !0); -i(s, o, p, "♣", "\\clubsuit", !0); -i(s, o, p, "℘", "\\wp", !0); -i(s, o, p, "♯", "\\sharp", !0); -i(s, o, p, "♢", "\\diamondsuit", !0); -i(s, o, p, "ℜ", "\\Re", !0); -i(s, o, p, "♡", "\\heartsuit", !0); -i(s, o, p, "ℑ", "\\Im", !0); -i(s, o, p, "♠", "\\spadesuit", !0); -i(s, o, p, "§", "\\S", !0); -i(w, o, p, "§", "\\S"); -i(s, o, p, "¶", "\\P", !0); -i(w, o, p, "¶", "\\P"); -i(s, o, p, "†", "\\dag"); -i(w, o, p, "†", "\\dag"); -i(w, o, p, "†", "\\textdagger"); -i(s, o, p, "‡", "\\ddag"); -i(w, o, p, "‡", "\\ddag"); -i(w, o, p, "‡", "\\textdaggerdbl"); -i(s, o, o0, "⎱", "\\rmoustache", !0); -i(s, o, v0, "⎰", "\\lmoustache", !0); -i(s, o, o0, "⟯", "\\rgroup", !0); -i(s, o, v0, "⟮", "\\lgroup", !0); -i(s, o, D, "∓", "\\mp", !0); -i(s, o, D, "⊖", "\\ominus", !0); -i(s, o, D, "⊎", "\\uplus", !0); -i(s, o, D, "⊓", "\\sqcap", !0); -i(s, o, D, "∗", "\\ast"); -i(s, o, D, "⊔", "\\sqcup", !0); -i(s, o, D, "◯", "\\bigcirc", !0); -i(s, o, D, "∙", "\\bullet", !0); -i(s, o, D, "‡", "\\ddagger"); -i(s, o, D, "≀", "\\wr", !0); -i(s, o, D, "⨿", "\\amalg"); -i(s, o, D, "&", "\\And"); -i(s, o, f, "⟵", "\\longleftarrow", !0); -i(s, o, f, "⇐", "\\Leftarrow", !0); -i(s, o, f, "⟸", "\\Longleftarrow", !0); -i(s, o, f, "⟶", "\\longrightarrow", !0); -i(s, o, f, "⇒", "\\Rightarrow", !0); -i(s, o, f, "⟹", "\\Longrightarrow", !0); -i(s, o, f, "↔", "\\leftrightarrow", !0); -i(s, o, f, "⟷", "\\longleftrightarrow", !0); -i(s, o, f, "⇔", "\\Leftrightarrow", !0); -i(s, o, f, "⟺", "\\Longleftrightarrow", !0); -i(s, o, f, "↦", "\\mapsto", !0); -i(s, o, f, "⟼", "\\longmapsto", !0); -i(s, o, f, "↗", "\\nearrow", !0); -i(s, o, f, "↩", "\\hookleftarrow", !0); -i(s, o, f, "↪", "\\hookrightarrow", !0); -i(s, o, f, "↘", "\\searrow", !0); -i(s, o, f, "↼", "\\leftharpoonup", !0); -i(s, o, f, "⇀", "\\rightharpoonup", !0); -i(s, o, f, "↙", "\\swarrow", !0); -i(s, o, f, "↽", "\\leftharpoondown", !0); -i(s, o, f, "⇁", "\\rightharpoondown", !0); -i(s, o, f, "↖", "\\nwarrow", !0); -i(s, o, f, "⇌", "\\rightleftharpoons", !0); -i(s, d, f, "≮", "\\nless", !0); -i(s, d, f, "", "\\@nleqslant"); -i(s, d, f, "", "\\@nleqq"); -i(s, d, f, "⪇", "\\lneq", !0); -i(s, d, f, "≨", "\\lneqq", !0); -i(s, d, f, "", "\\@lvertneqq"); -i(s, d, f, "⋦", "\\lnsim", !0); -i(s, d, f, "⪉", "\\lnapprox", !0); -i(s, d, f, "⊀", "\\nprec", !0); -i(s, d, f, "⋠", "\\npreceq", !0); -i(s, d, f, "⋨", "\\precnsim", !0); -i(s, d, f, "⪹", "\\precnapprox", !0); -i(s, d, f, "≁", "\\nsim", !0); -i(s, d, f, "", "\\@nshortmid"); -i(s, d, f, "∤", "\\nmid", !0); -i(s, d, f, "⊬", "\\nvdash", !0); -i(s, d, f, "⊭", "\\nvDash", !0); -i(s, d, f, "⋪", "\\ntriangleleft"); -i(s, d, f, "⋬", "\\ntrianglelefteq", !0); -i(s, d, f, "⊊", "\\subsetneq", !0); -i(s, d, f, "", "\\@varsubsetneq"); -i(s, d, f, "⫋", "\\subsetneqq", !0); -i(s, d, f, "", "\\@varsubsetneqq"); -i(s, d, f, "≯", "\\ngtr", !0); -i(s, d, f, "", "\\@ngeqslant"); -i(s, d, f, "", "\\@ngeqq"); -i(s, d, f, "⪈", "\\gneq", !0); -i(s, d, f, "≩", "\\gneqq", !0); -i(s, d, f, "", "\\@gvertneqq"); -i(s, d, f, "⋧", "\\gnsim", !0); -i(s, d, f, "⪊", "\\gnapprox", !0); -i(s, d, f, "⊁", "\\nsucc", !0); -i(s, d, f, "⋡", "\\nsucceq", !0); -i(s, d, f, "⋩", "\\succnsim", !0); -i(s, d, f, "⪺", "\\succnapprox", !0); -i(s, d, f, "≆", "\\ncong", !0); -i(s, d, f, "", "\\@nshortparallel"); -i(s, d, f, "∦", "\\nparallel", !0); -i(s, d, f, "⊯", "\\nVDash", !0); -i(s, d, f, "⋫", "\\ntriangleright"); -i(s, d, f, "⋭", "\\ntrianglerighteq", !0); -i(s, d, f, "", "\\@nsupseteqq"); -i(s, d, f, "⊋", "\\supsetneq", !0); -i(s, d, f, "", "\\@varsupsetneq"); -i(s, d, f, "⫌", "\\supsetneqq", !0); -i(s, d, f, "", "\\@varsupsetneqq"); -i(s, d, f, "⊮", "\\nVdash", !0); -i(s, d, f, "⪵", "\\precneqq", !0); -i(s, d, f, "⪶", "\\succneqq", !0); -i(s, d, f, "", "\\@nsubseteqq"); -i(s, d, D, "⊴", "\\unlhd"); -i(s, d, D, "⊵", "\\unrhd"); -i(s, d, f, "↚", "\\nleftarrow", !0); -i(s, d, f, "↛", "\\nrightarrow", !0); -i(s, d, f, "⇍", "\\nLeftarrow", !0); -i(s, d, f, "⇏", "\\nRightarrow", !0); -i(s, d, f, "↮", "\\nleftrightarrow", !0); -i(s, d, f, "⇎", "\\nLeftrightarrow", !0); -i(s, d, f, "△", "\\vartriangle"); -i(s, d, p, "ℏ", "\\hslash"); -i(s, d, p, "▽", "\\triangledown"); -i(s, d, p, "◊", "\\lozenge"); -i(s, d, p, "Ⓢ", "\\circledS"); -i(s, d, p, "®", "\\circledR"); -i(w, d, p, "®", "\\circledR"); -i(s, d, p, "∡", "\\measuredangle", !0); -i(s, d, p, "∄", "\\nexists"); -i(s, d, p, "℧", "\\mho"); -i(s, d, p, "Ⅎ", "\\Finv", !0); -i(s, d, p, "⅁", "\\Game", !0); -i(s, d, p, "‵", "\\backprime"); -i(s, d, p, "▲", "\\blacktriangle"); -i(s, d, p, "▼", "\\blacktriangledown"); -i(s, d, p, "■", "\\blacksquare"); -i(s, d, p, "⧫", "\\blacklozenge"); -i(s, d, p, "★", "\\bigstar"); -i(s, d, p, "∢", "\\sphericalangle", !0); -i(s, d, p, "∁", "\\complement", !0); -i(s, d, p, "ð", "\\eth", !0); -i(w, o, p, "ð", "ð"); -i(s, d, p, "╱", "\\diagup"); -i(s, d, p, "╲", "\\diagdown"); -i(s, d, p, "□", "\\square"); -i(s, d, p, "□", "\\Box"); -i(s, d, p, "◊", "\\Diamond"); -i(s, d, p, "¥", "\\yen", !0); -i(w, d, p, "¥", "\\yen", !0); -i(s, d, p, "✓", "\\checkmark", !0); -i(w, d, p, "✓", "\\checkmark"); -i(s, d, p, "ℶ", "\\beth", !0); -i(s, d, p, "ℸ", "\\daleth", !0); -i(s, d, p, "ℷ", "\\gimel", !0); -i(s, d, p, "ϝ", "\\digamma", !0); -i(s, d, p, "ϰ", "\\varkappa"); -i(s, d, v0, "┌", "\\@ulcorner", !0); -i(s, d, o0, "┐", "\\@urcorner", !0); -i(s, d, v0, "└", "\\@llcorner", !0); -i(s, d, o0, "┘", "\\@lrcorner", !0); -i(s, d, f, "≦", "\\leqq", !0); -i(s, d, f, "⩽", "\\leqslant", !0); -i(s, d, f, "⪕", "\\eqslantless", !0); -i(s, d, f, "≲", "\\lesssim", !0); -i(s, d, f, "⪅", "\\lessapprox", !0); -i(s, d, f, "≊", "\\approxeq", !0); -i(s, d, D, "⋖", "\\lessdot"); -i(s, d, f, "⋘", "\\lll", !0); -i(s, d, f, "≶", "\\lessgtr", !0); -i(s, d, f, "⋚", "\\lesseqgtr", !0); -i(s, d, f, "⪋", "\\lesseqqgtr", !0); -i(s, d, f, "≑", "\\doteqdot"); -i(s, d, f, "≓", "\\risingdotseq", !0); -i(s, d, f, "≒", "\\fallingdotseq", !0); -i(s, d, f, "∽", "\\backsim", !0); -i(s, d, f, "⋍", "\\backsimeq", !0); -i(s, d, f, "⫅", "\\subseteqq", !0); -i(s, d, f, "⋐", "\\Subset", !0); -i(s, d, f, "⊏", "\\sqsubset", !0); -i(s, d, f, "≼", "\\preccurlyeq", !0); -i(s, d, f, "⋞", "\\curlyeqprec", !0); -i(s, d, f, "≾", "\\precsim", !0); -i(s, d, f, "⪷", "\\precapprox", !0); -i(s, d, f, "⊲", "\\vartriangleleft"); -i(s, d, f, "⊴", "\\trianglelefteq"); -i(s, d, f, "⊨", "\\vDash", !0); -i(s, d, f, "⊪", "\\Vvdash", !0); -i(s, d, f, "⌣", "\\smallsmile"); -i(s, d, f, "⌢", "\\smallfrown"); -i(s, d, f, "≏", "\\bumpeq", !0); -i(s, d, f, "≎", "\\Bumpeq", !0); -i(s, d, f, "≧", "\\geqq", !0); -i(s, d, f, "⩾", "\\geqslant", !0); -i(s, d, f, "⪖", "\\eqslantgtr", !0); -i(s, d, f, "≳", "\\gtrsim", !0); -i(s, d, f, "⪆", "\\gtrapprox", !0); -i(s, d, D, "⋗", "\\gtrdot"); -i(s, d, f, "⋙", "\\ggg", !0); -i(s, d, f, "≷", "\\gtrless", !0); -i(s, d, f, "⋛", "\\gtreqless", !0); -i(s, d, f, "⪌", "\\gtreqqless", !0); -i(s, d, f, "≖", "\\eqcirc", !0); -i(s, d, f, "≗", "\\circeq", !0); -i(s, d, f, "≜", "\\triangleq", !0); -i(s, d, f, "∼", "\\thicksim"); -i(s, d, f, "≈", "\\thickapprox"); -i(s, d, f, "⫆", "\\supseteqq", !0); -i(s, d, f, "⋑", "\\Supset", !0); -i(s, d, f, "⊐", "\\sqsupset", !0); -i(s, d, f, "≽", "\\succcurlyeq", !0); -i(s, d, f, "⋟", "\\curlyeqsucc", !0); -i(s, d, f, "≿", "\\succsim", !0); -i(s, d, f, "⪸", "\\succapprox", !0); -i(s, d, f, "⊳", "\\vartriangleright"); -i(s, d, f, "⊵", "\\trianglerighteq"); -i(s, d, f, "⊩", "\\Vdash", !0); -i(s, d, f, "∣", "\\shortmid"); -i(s, d, f, "∥", "\\shortparallel"); -i(s, d, f, "≬", "\\between", !0); -i(s, d, f, "⋔", "\\pitchfork", !0); -i(s, d, f, "∝", "\\varpropto"); -i(s, d, f, "◀", "\\blacktriangleleft"); -i(s, d, f, "∴", "\\therefore", !0); -i(s, d, f, "∍", "\\backepsilon"); -i(s, d, f, "▶", "\\blacktriangleright"); -i(s, d, f, "∵", "\\because", !0); -i(s, d, f, "⋘", "\\llless"); -i(s, d, f, "⋙", "\\gggtr"); -i(s, d, D, "⊲", "\\lhd"); -i(s, d, D, "⊳", "\\rhd"); -i(s, d, f, "≂", "\\eqsim", !0); -i(s, o, f, "⋈", "\\Join"); -i(s, d, f, "≑", "\\Doteq", !0); -i(s, d, D, "∔", "\\dotplus", !0); -i(s, d, D, "∖", "\\smallsetminus"); -i(s, d, D, "⋒", "\\Cap", !0); -i(s, d, D, "⋓", "\\Cup", !0); -i(s, d, D, "⩞", "\\doublebarwedge", !0); -i(s, d, D, "⊟", "\\boxminus", !0); -i(s, d, D, "⊞", "\\boxplus", !0); -i(s, d, D, "⋇", "\\divideontimes", !0); -i(s, d, D, "⋉", "\\ltimes", !0); -i(s, d, D, "⋊", "\\rtimes", !0); -i(s, d, D, "⋋", "\\leftthreetimes", !0); -i(s, d, D, "⋌", "\\rightthreetimes", !0); -i(s, d, D, "⋏", "\\curlywedge", !0); -i(s, d, D, "⋎", "\\curlyvee", !0); -i(s, d, D, "⊝", "\\circleddash", !0); -i(s, d, D, "⊛", "\\circledast", !0); -i(s, d, D, "⋅", "\\centerdot"); -i(s, d, D, "⊺", "\\intercal", !0); -i(s, d, D, "⋒", "\\doublecap"); -i(s, d, D, "⋓", "\\doublecup"); -i(s, d, D, "⊠", "\\boxtimes", !0); -i(s, d, f, "⇢", "\\dashrightarrow", !0); -i(s, d, f, "⇠", "\\dashleftarrow", !0); -i(s, d, f, "⇇", "\\leftleftarrows", !0); -i(s, d, f, "⇆", "\\leftrightarrows", !0); -i(s, d, f, "⇚", "\\Lleftarrow", !0); -i(s, d, f, "↞", "\\twoheadleftarrow", !0); -i(s, d, f, "↢", "\\leftarrowtail", !0); -i(s, d, f, "↫", "\\looparrowleft", !0); -i(s, d, f, "⇋", "\\leftrightharpoons", !0); -i(s, d, f, "↶", "\\curvearrowleft", !0); -i(s, d, f, "↺", "\\circlearrowleft", !0); -i(s, d, f, "↰", "\\Lsh", !0); -i(s, d, f, "⇈", "\\upuparrows", !0); -i(s, d, f, "↿", "\\upharpoonleft", !0); -i(s, d, f, "⇃", "\\downharpoonleft", !0); -i(s, o, f, "⊶", "\\origof", !0); -i(s, o, f, "⊷", "\\imageof", !0); -i(s, d, f, "⊸", "\\multimap", !0); -i(s, d, f, "↭", "\\leftrightsquigarrow", !0); -i(s, d, f, "⇉", "\\rightrightarrows", !0); -i(s, d, f, "⇄", "\\rightleftarrows", !0); -i(s, d, f, "↠", "\\twoheadrightarrow", !0); -i(s, d, f, "↣", "\\rightarrowtail", !0); -i(s, d, f, "↬", "\\looparrowright", !0); -i(s, d, f, "↷", "\\curvearrowright", !0); -i(s, d, f, "↻", "\\circlearrowright", !0); -i(s, d, f, "↱", "\\Rsh", !0); -i(s, d, f, "⇊", "\\downdownarrows", !0); -i(s, d, f, "↾", "\\upharpoonright", !0); -i(s, d, f, "⇂", "\\downharpoonright", !0); -i(s, d, f, "⇝", "\\rightsquigarrow", !0); -i(s, d, f, "⇝", "\\leadsto"); -i(s, d, f, "⇛", "\\Rrightarrow", !0); -i(s, d, f, "↾", "\\restriction"); -i(s, o, p, "‘", "`"); -i(s, o, p, "$", "\\$"); -i(w, o, p, "$", "\\$"); -i(w, o, p, "$", "\\textdollar"); -i(s, o, p, "%", "\\%"); -i(w, o, p, "%", "\\%"); -i(s, o, p, "_", "\\_"); -i(w, o, p, "_", "\\_"); -i(w, o, p, "_", "\\textunderscore"); -i(s, o, p, "∠", "\\angle", !0); -i(s, o, p, "∞", "\\infty", !0); -i(s, o, p, "′", "\\prime"); -i(s, o, p, "△", "\\triangle"); -i(s, o, p, "Γ", "\\Gamma", !0); -i(s, o, p, "Δ", "\\Delta", !0); -i(s, o, p, "Θ", "\\Theta", !0); -i(s, o, p, "Λ", "\\Lambda", !0); -i(s, o, p, "Ξ", "\\Xi", !0); -i(s, o, p, "Π", "\\Pi", !0); -i(s, o, p, "Σ", "\\Sigma", !0); -i(s, o, p, "Υ", "\\Upsilon", !0); -i(s, o, p, "Φ", "\\Phi", !0); -i(s, o, p, "Ψ", "\\Psi", !0); -i(s, o, p, "Ω", "\\Omega", !0); -i(s, o, p, "A", "Α"); -i(s, o, p, "B", "Β"); -i(s, o, p, "E", "Ε"); -i(s, o, p, "Z", "Ζ"); -i(s, o, p, "H", "Η"); -i(s, o, p, "I", "Ι"); -i(s, o, p, "K", "Κ"); -i(s, o, p, "M", "Μ"); -i(s, o, p, "N", "Ν"); -i(s, o, p, "O", "Ο"); -i(s, o, p, "P", "Ρ"); -i(s, o, p, "T", "Τ"); -i(s, o, p, "X", "Χ"); -i(s, o, p, "¬", "\\neg", !0); -i(s, o, p, "¬", "\\lnot"); -i(s, o, p, "⊤", "\\top"); -i(s, o, p, "⊥", "\\bot"); -i(s, o, p, "∅", "\\emptyset"); -i(s, d, p, "∅", "\\varnothing"); -i(s, o, E, "α", "\\alpha", !0); -i(s, o, E, "β", "\\beta", !0); -i(s, o, E, "γ", "\\gamma", !0); -i(s, o, E, "δ", "\\delta", !0); -i(s, o, E, "ϵ", "\\epsilon", !0); -i(s, o, E, "ζ", "\\zeta", !0); -i(s, o, E, "η", "\\eta", !0); -i(s, o, E, "θ", "\\theta", !0); -i(s, o, E, "ι", "\\iota", !0); -i(s, o, E, "κ", "\\kappa", !0); -i(s, o, E, "λ", "\\lambda", !0); -i(s, o, E, "μ", "\\mu", !0); -i(s, o, E, "ν", "\\nu", !0); -i(s, o, E, "ξ", "\\xi", !0); -i(s, o, E, "ο", "\\omicron", !0); -i(s, o, E, "π", "\\pi", !0); -i(s, o, E, "ρ", "\\rho", !0); -i(s, o, E, "σ", "\\sigma", !0); -i(s, o, E, "τ", "\\tau", !0); -i(s, o, E, "υ", "\\upsilon", !0); -i(s, o, E, "ϕ", "\\phi", !0); -i(s, o, E, "χ", "\\chi", !0); -i(s, o, E, "ψ", "\\psi", !0); -i(s, o, E, "ω", "\\omega", !0); -i(s, o, E, "ε", "\\varepsilon", !0); -i(s, o, E, "ϑ", "\\vartheta", !0); -i(s, o, E, "ϖ", "\\varpi", !0); -i(s, o, E, "ϱ", "\\varrho", !0); -i(s, o, E, "ς", "\\varsigma", !0); -i(s, o, E, "φ", "\\varphi", !0); -i(s, o, D, "∗", "*", !0); -i(s, o, D, "+", "+"); -i(s, o, D, "−", "-", !0); -i(s, o, D, "⋅", "\\cdot", !0); -i(s, o, D, "∘", "\\circ", !0); -i(s, o, D, "÷", "\\div", !0); -i(s, o, D, "±", "\\pm", !0); -i(s, o, D, "×", "\\times", !0); -i(s, o, D, "∩", "\\cap", !0); -i(s, o, D, "∪", "\\cup", !0); -i(s, o, D, "∖", "\\setminus", !0); -i(s, o, D, "∧", "\\land"); -i(s, o, D, "∨", "\\lor"); -i(s, o, D, "∧", "\\wedge", !0); -i(s, o, D, "∨", "\\vee", !0); -i(s, o, p, "√", "\\surd"); -i(s, o, v0, "⟨", "\\langle", !0); -i(s, o, v0, "∣", "\\lvert"); -i(s, o, v0, "∥", "\\lVert"); -i(s, o, o0, "?", "?"); -i(s, o, o0, "!", "!"); -i(s, o, o0, "⟩", "\\rangle", !0); -i(s, o, o0, "∣", "\\rvert"); -i(s, o, o0, "∥", "\\rVert"); -i(s, o, f, "=", "="); -i(s, o, f, ":", ":"); -i(s, o, f, "≈", "\\approx", !0); -i(s, o, f, "≅", "\\cong", !0); -i(s, o, f, "≥", "\\ge"); -i(s, o, f, "≥", "\\geq", !0); -i(s, o, f, "←", "\\gets"); -i(s, o, f, ">", "\\gt", !0); -i(s, o, f, "∈", "\\in", !0); -i(s, o, f, "", "\\@not"); -i(s, o, f, "⊂", "\\subset", !0); -i(s, o, f, "⊃", "\\supset", !0); -i(s, o, f, "⊆", "\\subseteq", !0); -i(s, o, f, "⊇", "\\supseteq", !0); -i(s, d, f, "⊈", "\\nsubseteq", !0); -i(s, d, f, "⊉", "\\nsupseteq", !0); -i(s, o, f, "⊨", "\\models"); -i(s, o, f, "←", "\\leftarrow", !0); -i(s, o, f, "≤", "\\le"); -i(s, o, f, "≤", "\\leq", !0); -i(s, o, f, "<", "\\lt", !0); -i(s, o, f, "→", "\\rightarrow", !0); -i(s, o, f, "→", "\\to"); -i(s, d, f, "≱", "\\ngeq", !0); -i(s, d, f, "≰", "\\nleq", !0); -i(s, o, q0, " ", "\\ "); -i(s, o, q0, " ", "\\space"); -i(s, o, q0, " ", "\\nobreakspace"); -i(w, o, q0, " ", "\\ "); -i(w, o, q0, " ", " "); -i(w, o, q0, " ", "\\space"); -i(w, o, q0, " ", "\\nobreakspace"); -i(s, o, q0, null, "\\nobreak"); -i(s, o, q0, null, "\\allowbreak"); -i(s, o, ce, ",", ","); -i(s, o, ce, ";", ";"); -i(s, d, D, "⊼", "\\barwedge", !0); -i(s, d, D, "⊻", "\\veebar", !0); -i(s, o, D, "⊙", "\\odot", !0); -i(s, o, D, "⊕", "\\oplus", !0); -i(s, o, D, "⊗", "\\otimes", !0); -i(s, o, p, "∂", "\\partial", !0); -i(s, o, D, "⊘", "\\oslash", !0); -i(s, d, D, "⊚", "\\circledcirc", !0); -i(s, d, D, "⊡", "\\boxdot", !0); -i(s, o, D, "△", "\\bigtriangleup"); -i(s, o, D, "▽", "\\bigtriangledown"); -i(s, o, D, "†", "\\dagger"); -i(s, o, D, "⋄", "\\diamond"); -i(s, o, D, "⋆", "\\star"); -i(s, o, D, "◃", "\\triangleleft"); -i(s, o, D, "▹", "\\triangleright"); -i(s, o, v0, "{", "\\{"); -i(w, o, p, "{", "\\{"); -i(w, o, p, "{", "\\textbraceleft"); -i(s, o, o0, "}", "\\}"); -i(w, o, p, "}", "\\}"); -i(w, o, p, "}", "\\textbraceright"); -i(s, o, v0, "{", "\\lbrace"); -i(s, o, o0, "}", "\\rbrace"); -i(s, o, v0, "[", "\\lbrack", !0); -i(w, o, p, "[", "\\lbrack", !0); -i(s, o, o0, "]", "\\rbrack", !0); -i(w, o, p, "]", "\\rbrack", !0); -i(s, o, v0, "(", "\\lparen", !0); -i(s, o, o0, ")", "\\rparen", !0); -i(w, o, p, "<", "\\textless", !0); -i(w, o, p, ">", "\\textgreater", !0); -i(s, o, v0, "⌊", "\\lfloor", !0); -i(s, o, o0, "⌋", "\\rfloor", !0); -i(s, o, v0, "⌈", "\\lceil", !0); -i(s, o, o0, "⌉", "\\rceil", !0); -i(s, o, p, "\\", "\\backslash"); -i(s, o, p, "∣", "|"); -i(s, o, p, "∣", "\\vert"); -i(w, o, p, "|", "\\textbar", !0); -i(s, o, p, "∥", "\\|"); -i(s, o, p, "∥", "\\Vert"); -i(w, o, p, "∥", "\\textbardbl"); -i(w, o, p, "~", "\\textasciitilde"); -i(w, o, p, "\\", "\\textbackslash"); -i(w, o, p, "^", "\\textasciicircum"); -i(s, o, f, "↑", "\\uparrow", !0); -i(s, o, f, "⇑", "\\Uparrow", !0); -i(s, o, f, "↓", "\\downarrow", !0); -i(s, o, f, "⇓", "\\Downarrow", !0); -i(s, o, f, "↕", "\\updownarrow", !0); -i(s, o, f, "⇕", "\\Updownarrow", !0); -i(s, o, e0, "∐", "\\coprod"); -i(s, o, e0, "⋁", "\\bigvee"); -i(s, o, e0, "⋀", "\\bigwedge"); -i(s, o, e0, "⨄", "\\biguplus"); -i(s, o, e0, "⋂", "\\bigcap"); -i(s, o, e0, "⋃", "\\bigcup"); -i(s, o, e0, "∫", "\\int"); -i(s, o, e0, "∫", "\\intop"); -i(s, o, e0, "∬", "\\iint"); -i(s, o, e0, "∭", "\\iiint"); -i(s, o, e0, "∏", "\\prod"); -i(s, o, e0, "∑", "\\sum"); -i(s, o, e0, "⨂", "\\bigotimes"); -i(s, o, e0, "⨁", "\\bigoplus"); -i(s, o, e0, "⨀", "\\bigodot"); -i(s, o, e0, "∮", "\\oint"); -i(s, o, e0, "∯", "\\oiint"); -i(s, o, e0, "∰", "\\oiiint"); -i(s, o, e0, "⨆", "\\bigsqcup"); -i(s, o, e0, "∫", "\\smallint"); -i(w, o, ie, "…", "\\textellipsis"); -i(s, o, ie, "…", "\\mathellipsis"); -i(w, o, ie, "…", "\\ldots", !0); -i(s, o, ie, "…", "\\ldots", !0); -i(s, o, ie, "⋯", "\\@cdots", !0); -i(s, o, ie, "⋱", "\\ddots", !0); -i(s, o, p, "⋮", "\\varvdots"); -i(w, o, p, "⋮", "\\varvdots"); -i(s, o, j, "ˊ", "\\acute"); -i(s, o, j, "ˋ", "\\grave"); -i(s, o, j, "¨", "\\ddot"); -i(s, o, j, "~", "\\tilde"); -i(s, o, j, "ˉ", "\\bar"); -i(s, o, j, "˘", "\\breve"); -i(s, o, j, "ˇ", "\\check"); -i(s, o, j, "^", "\\hat"); -i(s, o, j, "⃗", "\\vec"); -i(s, o, j, "˙", "\\dot"); -i(s, o, j, "˚", "\\mathring"); -i(s, o, E, "", "\\@imath"); -i(s, o, E, "", "\\@jmath"); -i(s, o, p, "ı", "ı"); -i(s, o, p, "ȷ", "ȷ"); -i(w, o, p, "ı", "\\i", !0); -i(w, o, p, "ȷ", "\\j", !0); -i(w, o, p, "ß", "\\ss", !0); -i(w, o, p, "æ", "\\ae", !0); -i(w, o, p, "œ", "\\oe", !0); -i(w, o, p, "ø", "\\o", !0); -i(w, o, p, "Æ", "\\AE", !0); -i(w, o, p, "Œ", "\\OE", !0); -i(w, o, p, "Ø", "\\O", !0); -i(w, o, j, "ˊ", "\\'"); -i(w, o, j, "ˋ", "\\`"); -i(w, o, j, "ˆ", "\\^"); -i(w, o, j, "˜", "\\~"); -i(w, o, j, "ˉ", "\\="); -i(w, o, j, "˘", "\\u"); -i(w, o, j, "˙", "\\."); -i(w, o, j, "¸", "\\c"); -i(w, o, j, "˚", "\\r"); -i(w, o, j, "ˇ", "\\v"); -i(w, o, j, "¨", '\\"'); -i(w, o, j, "˝", "\\H"); -i(w, o, j, "◯", "\\textcircled"); -var Nr = { +var l = "math", w = "text", o = "main", d = "ams", j = "accent-token", D = "bin", u0 = "close", ne = "inner", E = "mathord", t0 = "op-token", f0 = "open", de = "punct", f = "rel", q0 = "spacing", g = "textord"; +n(l, o, f, "≡", "\\equiv", !0); +n(l, o, f, "≺", "\\prec", !0); +n(l, o, f, "≻", "\\succ", !0); +n(l, o, f, "∼", "\\sim", !0); +n(l, o, f, "⊥", "\\perp"); +n(l, o, f, "⪯", "\\preceq", !0); +n(l, o, f, "⪰", "\\succeq", !0); +n(l, o, f, "≃", "\\simeq", !0); +n(l, o, f, "∣", "\\mid", !0); +n(l, o, f, "≪", "\\ll", !0); +n(l, o, f, "≫", "\\gg", !0); +n(l, o, f, "≍", "\\asymp", !0); +n(l, o, f, "∥", "\\parallel"); +n(l, o, f, "⋈", "\\bowtie", !0); +n(l, o, f, "⌣", "\\smile", !0); +n(l, o, f, "⊑", "\\sqsubseteq", !0); +n(l, o, f, "⊒", "\\sqsupseteq", !0); +n(l, o, f, "≐", "\\doteq", !0); +n(l, o, f, "⌢", "\\frown", !0); +n(l, o, f, "∋", "\\ni", !0); +n(l, o, f, "∝", "\\propto", !0); +n(l, o, f, "⊢", "\\vdash", !0); +n(l, o, f, "⊣", "\\dashv", !0); +n(l, o, f, "∋", "\\owns"); +n(l, o, de, ".", "\\ldotp"); +n(l, o, de, "⋅", "\\cdotp"); +n(l, o, de, "⋅", "·"); +n(w, o, g, "⋅", "·"); +n(l, o, g, "#", "\\#"); +n(w, o, g, "#", "\\#"); +n(l, o, g, "&", "\\&"); +n(w, o, g, "&", "\\&"); +n(l, o, g, "ℵ", "\\aleph", !0); +n(l, o, g, "∀", "\\forall", !0); +n(l, o, g, "ℏ", "\\hbar", !0); +n(l, o, g, "∃", "\\exists", !0); +n(l, o, g, "∇", "\\nabla", !0); +n(l, o, g, "♭", "\\flat", !0); +n(l, o, g, "ℓ", "\\ell", !0); +n(l, o, g, "♮", "\\natural", !0); +n(l, o, g, "♣", "\\clubsuit", !0); +n(l, o, g, "℘", "\\wp", !0); +n(l, o, g, "♯", "\\sharp", !0); +n(l, o, g, "♢", "\\diamondsuit", !0); +n(l, o, g, "ℜ", "\\Re", !0); +n(l, o, g, "♡", "\\heartsuit", !0); +n(l, o, g, "ℑ", "\\Im", !0); +n(l, o, g, "♠", "\\spadesuit", !0); +n(l, o, g, "§", "\\S", !0); +n(w, o, g, "§", "\\S"); +n(l, o, g, "¶", "\\P", !0); +n(w, o, g, "¶", "\\P"); +n(l, o, g, "†", "\\dag"); +n(w, o, g, "†", "\\dag"); +n(w, o, g, "†", "\\textdagger"); +n(l, o, g, "‡", "\\ddag"); +n(w, o, g, "‡", "\\ddag"); +n(w, o, g, "‡", "\\textdaggerdbl"); +n(l, o, u0, "⎱", "\\rmoustache", !0); +n(l, o, f0, "⎰", "\\lmoustache", !0); +n(l, o, u0, "⟯", "\\rgroup", !0); +n(l, o, f0, "⟮", "\\lgroup", !0); +n(l, o, D, "∓", "\\mp", !0); +n(l, o, D, "⊖", "\\ominus", !0); +n(l, o, D, "⊎", "\\uplus", !0); +n(l, o, D, "⊓", "\\sqcap", !0); +n(l, o, D, "∗", "\\ast"); +n(l, o, D, "⊔", "\\sqcup", !0); +n(l, o, D, "◯", "\\bigcirc", !0); +n(l, o, D, "∙", "\\bullet", !0); +n(l, o, D, "‡", "\\ddagger"); +n(l, o, D, "≀", "\\wr", !0); +n(l, o, D, "⨿", "\\amalg"); +n(l, o, D, "&", "\\And"); +n(l, o, f, "⟵", "\\longleftarrow", !0); +n(l, o, f, "⇐", "\\Leftarrow", !0); +n(l, o, f, "⟸", "\\Longleftarrow", !0); +n(l, o, f, "⟶", "\\longrightarrow", !0); +n(l, o, f, "⇒", "\\Rightarrow", !0); +n(l, o, f, "⟹", "\\Longrightarrow", !0); +n(l, o, f, "↔", "\\leftrightarrow", !0); +n(l, o, f, "⟷", "\\longleftrightarrow", !0); +n(l, o, f, "⇔", "\\Leftrightarrow", !0); +n(l, o, f, "⟺", "\\Longleftrightarrow", !0); +n(l, o, f, "↦", "\\mapsto", !0); +n(l, o, f, "⟼", "\\longmapsto", !0); +n(l, o, f, "↗", "\\nearrow", !0); +n(l, o, f, "↩", "\\hookleftarrow", !0); +n(l, o, f, "↪", "\\hookrightarrow", !0); +n(l, o, f, "↘", "\\searrow", !0); +n(l, o, f, "↼", "\\leftharpoonup", !0); +n(l, o, f, "⇀", "\\rightharpoonup", !0); +n(l, o, f, "↙", "\\swarrow", !0); +n(l, o, f, "↽", "\\leftharpoondown", !0); +n(l, o, f, "⇁", "\\rightharpoondown", !0); +n(l, o, f, "↖", "\\nwarrow", !0); +n(l, o, f, "⇌", "\\rightleftharpoons", !0); +n(l, d, f, "≮", "\\nless", !0); +n(l, d, f, "", "\\@nleqslant"); +n(l, d, f, "", "\\@nleqq"); +n(l, d, f, "⪇", "\\lneq", !0); +n(l, d, f, "≨", "\\lneqq", !0); +n(l, d, f, "", "\\@lvertneqq"); +n(l, d, f, "⋦", "\\lnsim", !0); +n(l, d, f, "⪉", "\\lnapprox", !0); +n(l, d, f, "⊀", "\\nprec", !0); +n(l, d, f, "⋠", "\\npreceq", !0); +n(l, d, f, "⋨", "\\precnsim", !0); +n(l, d, f, "⪹", "\\precnapprox", !0); +n(l, d, f, "≁", "\\nsim", !0); +n(l, d, f, "", "\\@nshortmid"); +n(l, d, f, "∤", "\\nmid", !0); +n(l, d, f, "⊬", "\\nvdash", !0); +n(l, d, f, "⊭", "\\nvDash", !0); +n(l, d, f, "⋪", "\\ntriangleleft"); +n(l, d, f, "⋬", "\\ntrianglelefteq", !0); +n(l, d, f, "⊊", "\\subsetneq", !0); +n(l, d, f, "", "\\@varsubsetneq"); +n(l, d, f, "⫋", "\\subsetneqq", !0); +n(l, d, f, "", "\\@varsubsetneqq"); +n(l, d, f, "≯", "\\ngtr", !0); +n(l, d, f, "", "\\@ngeqslant"); +n(l, d, f, "", "\\@ngeqq"); +n(l, d, f, "⪈", "\\gneq", !0); +n(l, d, f, "≩", "\\gneqq", !0); +n(l, d, f, "", "\\@gvertneqq"); +n(l, d, f, "⋧", "\\gnsim", !0); +n(l, d, f, "⪊", "\\gnapprox", !0); +n(l, d, f, "⊁", "\\nsucc", !0); +n(l, d, f, "⋡", "\\nsucceq", !0); +n(l, d, f, "⋩", "\\succnsim", !0); +n(l, d, f, "⪺", "\\succnapprox", !0); +n(l, d, f, "≆", "\\ncong", !0); +n(l, d, f, "", "\\@nshortparallel"); +n(l, d, f, "∦", "\\nparallel", !0); +n(l, d, f, "⊯", "\\nVDash", !0); +n(l, d, f, "⋫", "\\ntriangleright"); +n(l, d, f, "⋭", "\\ntrianglerighteq", !0); +n(l, d, f, "", "\\@nsupseteqq"); +n(l, d, f, "⊋", "\\supsetneq", !0); +n(l, d, f, "", "\\@varsupsetneq"); +n(l, d, f, "⫌", "\\supsetneqq", !0); +n(l, d, f, "", "\\@varsupsetneqq"); +n(l, d, f, "⊮", "\\nVdash", !0); +n(l, d, f, "⪵", "\\precneqq", !0); +n(l, d, f, "⪶", "\\succneqq", !0); +n(l, d, f, "", "\\@nsubseteqq"); +n(l, d, D, "⊴", "\\unlhd"); +n(l, d, D, "⊵", "\\unrhd"); +n(l, d, f, "↚", "\\nleftarrow", !0); +n(l, d, f, "↛", "\\nrightarrow", !0); +n(l, d, f, "⇍", "\\nLeftarrow", !0); +n(l, d, f, "⇏", "\\nRightarrow", !0); +n(l, d, f, "↮", "\\nleftrightarrow", !0); +n(l, d, f, "⇎", "\\nLeftrightarrow", !0); +n(l, d, f, "△", "\\vartriangle"); +n(l, d, g, "ℏ", "\\hslash"); +n(l, d, g, "▽", "\\triangledown"); +n(l, d, g, "◊", "\\lozenge"); +n(l, d, g, "Ⓢ", "\\circledS"); +n(l, d, g, "®", "\\circledR"); +n(w, d, g, "®", "\\circledR"); +n(l, d, g, "∡", "\\measuredangle", !0); +n(l, d, g, "∄", "\\nexists"); +n(l, d, g, "℧", "\\mho"); +n(l, d, g, "Ⅎ", "\\Finv", !0); +n(l, d, g, "⅁", "\\Game", !0); +n(l, d, g, "‵", "\\backprime"); +n(l, d, g, "▲", "\\blacktriangle"); +n(l, d, g, "▼", "\\blacktriangledown"); +n(l, d, g, "■", "\\blacksquare"); +n(l, d, g, "⧫", "\\blacklozenge"); +n(l, d, g, "★", "\\bigstar"); +n(l, d, g, "∢", "\\sphericalangle", !0); +n(l, d, g, "∁", "\\complement", !0); +n(l, d, g, "ð", "\\eth", !0); +n(w, o, g, "ð", "ð"); +n(l, d, g, "╱", "\\diagup"); +n(l, d, g, "╲", "\\diagdown"); +n(l, d, g, "□", "\\square"); +n(l, d, g, "□", "\\Box"); +n(l, d, g, "◊", "\\Diamond"); +n(l, d, g, "¥", "\\yen", !0); +n(w, d, g, "¥", "\\yen", !0); +n(l, d, g, "✓", "\\checkmark", !0); +n(w, d, g, "✓", "\\checkmark"); +n(l, d, g, "ℶ", "\\beth", !0); +n(l, d, g, "ℸ", "\\daleth", !0); +n(l, d, g, "ℷ", "\\gimel", !0); +n(l, d, g, "ϝ", "\\digamma", !0); +n(l, d, g, "ϰ", "\\varkappa"); +n(l, d, f0, "┌", "\\@ulcorner", !0); +n(l, d, u0, "┐", "\\@urcorner", !0); +n(l, d, f0, "└", "\\@llcorner", !0); +n(l, d, u0, "┘", "\\@lrcorner", !0); +n(l, d, f, "≦", "\\leqq", !0); +n(l, d, f, "⩽", "\\leqslant", !0); +n(l, d, f, "⪕", "\\eqslantless", !0); +n(l, d, f, "≲", "\\lesssim", !0); +n(l, d, f, "⪅", "\\lessapprox", !0); +n(l, d, f, "≊", "\\approxeq", !0); +n(l, d, D, "⋖", "\\lessdot"); +n(l, d, f, "⋘", "\\lll", !0); +n(l, d, f, "≶", "\\lessgtr", !0); +n(l, d, f, "⋚", "\\lesseqgtr", !0); +n(l, d, f, "⪋", "\\lesseqqgtr", !0); +n(l, d, f, "≑", "\\doteqdot"); +n(l, d, f, "≓", "\\risingdotseq", !0); +n(l, d, f, "≒", "\\fallingdotseq", !0); +n(l, d, f, "∽", "\\backsim", !0); +n(l, d, f, "⋍", "\\backsimeq", !0); +n(l, d, f, "⫅", "\\subseteqq", !0); +n(l, d, f, "⋐", "\\Subset", !0); +n(l, d, f, "⊏", "\\sqsubset", !0); +n(l, d, f, "≼", "\\preccurlyeq", !0); +n(l, d, f, "⋞", "\\curlyeqprec", !0); +n(l, d, f, "≾", "\\precsim", !0); +n(l, d, f, "⪷", "\\precapprox", !0); +n(l, d, f, "⊲", "\\vartriangleleft"); +n(l, d, f, "⊴", "\\trianglelefteq"); +n(l, d, f, "⊨", "\\vDash", !0); +n(l, d, f, "⊪", "\\Vvdash", !0); +n(l, d, f, "⌣", "\\smallsmile"); +n(l, d, f, "⌢", "\\smallfrown"); +n(l, d, f, "≏", "\\bumpeq", !0); +n(l, d, f, "≎", "\\Bumpeq", !0); +n(l, d, f, "≧", "\\geqq", !0); +n(l, d, f, "⩾", "\\geqslant", !0); +n(l, d, f, "⪖", "\\eqslantgtr", !0); +n(l, d, f, "≳", "\\gtrsim", !0); +n(l, d, f, "⪆", "\\gtrapprox", !0); +n(l, d, D, "⋗", "\\gtrdot"); +n(l, d, f, "⋙", "\\ggg", !0); +n(l, d, f, "≷", "\\gtrless", !0); +n(l, d, f, "⋛", "\\gtreqless", !0); +n(l, d, f, "⪌", "\\gtreqqless", !0); +n(l, d, f, "≖", "\\eqcirc", !0); +n(l, d, f, "≗", "\\circeq", !0); +n(l, d, f, "≜", "\\triangleq", !0); +n(l, d, f, "∼", "\\thicksim"); +n(l, d, f, "≈", "\\thickapprox"); +n(l, d, f, "⫆", "\\supseteqq", !0); +n(l, d, f, "⋑", "\\Supset", !0); +n(l, d, f, "⊐", "\\sqsupset", !0); +n(l, d, f, "≽", "\\succcurlyeq", !0); +n(l, d, f, "⋟", "\\curlyeqsucc", !0); +n(l, d, f, "≿", "\\succsim", !0); +n(l, d, f, "⪸", "\\succapprox", !0); +n(l, d, f, "⊳", "\\vartriangleright"); +n(l, d, f, "⊵", "\\trianglerighteq"); +n(l, d, f, "⊩", "\\Vdash", !0); +n(l, d, f, "∣", "\\shortmid"); +n(l, d, f, "∥", "\\shortparallel"); +n(l, d, f, "≬", "\\between", !0); +n(l, d, f, "⋔", "\\pitchfork", !0); +n(l, d, f, "∝", "\\varpropto"); +n(l, d, f, "◀", "\\blacktriangleleft"); +n(l, d, f, "∴", "\\therefore", !0); +n(l, d, f, "∍", "\\backepsilon"); +n(l, d, f, "▶", "\\blacktriangleright"); +n(l, d, f, "∵", "\\because", !0); +n(l, d, f, "⋘", "\\llless"); +n(l, d, f, "⋙", "\\gggtr"); +n(l, d, D, "⊲", "\\lhd"); +n(l, d, D, "⊳", "\\rhd"); +n(l, d, f, "≂", "\\eqsim", !0); +n(l, o, f, "⋈", "\\Join"); +n(l, d, f, "≑", "\\Doteq", !0); +n(l, d, D, "∔", "\\dotplus", !0); +n(l, d, D, "∖", "\\smallsetminus"); +n(l, d, D, "⋒", "\\Cap", !0); +n(l, d, D, "⋓", "\\Cup", !0); +n(l, d, D, "⩞", "\\doublebarwedge", !0); +n(l, d, D, "⊟", "\\boxminus", !0); +n(l, d, D, "⊞", "\\boxplus", !0); +n(l, d, D, "⋇", "\\divideontimes", !0); +n(l, d, D, "⋉", "\\ltimes", !0); +n(l, d, D, "⋊", "\\rtimes", !0); +n(l, d, D, "⋋", "\\leftthreetimes", !0); +n(l, d, D, "⋌", "\\rightthreetimes", !0); +n(l, d, D, "⋏", "\\curlywedge", !0); +n(l, d, D, "⋎", "\\curlyvee", !0); +n(l, d, D, "⊝", "\\circleddash", !0); +n(l, d, D, "⊛", "\\circledast", !0); +n(l, d, D, "⋅", "\\centerdot"); +n(l, d, D, "⊺", "\\intercal", !0); +n(l, d, D, "⋒", "\\doublecap"); +n(l, d, D, "⋓", "\\doublecup"); +n(l, d, D, "⊠", "\\boxtimes", !0); +n(l, d, f, "⇢", "\\dashrightarrow", !0); +n(l, d, f, "⇠", "\\dashleftarrow", !0); +n(l, d, f, "⇇", "\\leftleftarrows", !0); +n(l, d, f, "⇆", "\\leftrightarrows", !0); +n(l, d, f, "⇚", "\\Lleftarrow", !0); +n(l, d, f, "↞", "\\twoheadleftarrow", !0); +n(l, d, f, "↢", "\\leftarrowtail", !0); +n(l, d, f, "↫", "\\looparrowleft", !0); +n(l, d, f, "⇋", "\\leftrightharpoons", !0); +n(l, d, f, "↶", "\\curvearrowleft", !0); +n(l, d, f, "↺", "\\circlearrowleft", !0); +n(l, d, f, "↰", "\\Lsh", !0); +n(l, d, f, "⇈", "\\upuparrows", !0); +n(l, d, f, "↿", "\\upharpoonleft", !0); +n(l, d, f, "⇃", "\\downharpoonleft", !0); +n(l, o, f, "⊶", "\\origof", !0); +n(l, o, f, "⊷", "\\imageof", !0); +n(l, d, f, "⊸", "\\multimap", !0); +n(l, d, f, "↭", "\\leftrightsquigarrow", !0); +n(l, d, f, "⇉", "\\rightrightarrows", !0); +n(l, d, f, "⇄", "\\rightleftarrows", !0); +n(l, d, f, "↠", "\\twoheadrightarrow", !0); +n(l, d, f, "↣", "\\rightarrowtail", !0); +n(l, d, f, "↬", "\\looparrowright", !0); +n(l, d, f, "↷", "\\curvearrowright", !0); +n(l, d, f, "↻", "\\circlearrowright", !0); +n(l, d, f, "↱", "\\Rsh", !0); +n(l, d, f, "⇊", "\\downdownarrows", !0); +n(l, d, f, "↾", "\\upharpoonright", !0); +n(l, d, f, "⇂", "\\downharpoonright", !0); +n(l, d, f, "⇝", "\\rightsquigarrow", !0); +n(l, d, f, "⇝", "\\leadsto"); +n(l, d, f, "⇛", "\\Rrightarrow", !0); +n(l, d, f, "↾", "\\restriction"); +n(l, o, g, "‘", "`"); +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, "∠", "\\angle", !0); +n(l, o, g, "∞", "\\infty", !0); +n(l, o, g, "′", "\\prime"); +n(l, o, g, "△", "\\triangle"); +n(l, o, g, "Γ", "\\Gamma", !0); +n(l, o, g, "Δ", "\\Delta", !0); +n(l, o, g, "Θ", "\\Theta", !0); +n(l, o, g, "Λ", "\\Lambda", !0); +n(l, o, g, "Ξ", "\\Xi", !0); +n(l, o, g, "Π", "\\Pi", !0); +n(l, o, g, "Σ", "\\Sigma", !0); +n(l, o, g, "Υ", "\\Upsilon", !0); +n(l, o, g, "Φ", "\\Phi", !0); +n(l, o, g, "Ψ", "\\Psi", !0); +n(l, o, g, "Ω", "\\Omega", !0); +n(l, o, g, "A", "Α"); +n(l, o, g, "B", "Β"); +n(l, o, g, "E", "Ε"); +n(l, o, g, "Z", "Ζ"); +n(l, o, g, "H", "Η"); +n(l, o, g, "I", "Ι"); +n(l, o, g, "K", "Κ"); +n(l, o, g, "M", "Μ"); +n(l, o, g, "N", "Ν"); +n(l, o, g, "O", "Ο"); +n(l, o, g, "P", "Ρ"); +n(l, o, g, "T", "Τ"); +n(l, o, g, "X", "Χ"); +n(l, o, g, "¬", "\\neg", !0); +n(l, o, g, "¬", "\\lnot"); +n(l, o, g, "⊤", "\\top"); +n(l, o, g, "⊥", "\\bot"); +n(l, o, g, "∅", "\\emptyset"); +n(l, d, g, "∅", "\\varnothing"); +n(l, o, E, "α", "\\alpha", !0); +n(l, o, E, "β", "\\beta", !0); +n(l, o, E, "γ", "\\gamma", !0); +n(l, o, E, "δ", "\\delta", !0); +n(l, o, E, "ϵ", "\\epsilon", !0); +n(l, o, E, "ζ", "\\zeta", !0); +n(l, o, E, "η", "\\eta", !0); +n(l, o, E, "θ", "\\theta", !0); +n(l, o, E, "ι", "\\iota", !0); +n(l, o, E, "κ", "\\kappa", !0); +n(l, o, E, "λ", "\\lambda", !0); +n(l, o, E, "μ", "\\mu", !0); +n(l, o, E, "ν", "\\nu", !0); +n(l, o, E, "ξ", "\\xi", !0); +n(l, o, E, "ο", "\\omicron", !0); +n(l, o, E, "π", "\\pi", !0); +n(l, o, E, "ρ", "\\rho", !0); +n(l, o, E, "σ", "\\sigma", !0); +n(l, o, E, "τ", "\\tau", !0); +n(l, o, E, "υ", "\\upsilon", !0); +n(l, o, E, "ϕ", "\\phi", !0); +n(l, o, E, "χ", "\\chi", !0); +n(l, o, E, "ψ", "\\psi", !0); +n(l, o, E, "ω", "\\omega", !0); +n(l, o, E, "ε", "\\varepsilon", !0); +n(l, o, E, "ϑ", "\\vartheta", !0); +n(l, o, E, "ϖ", "\\varpi", !0); +n(l, o, E, "ϱ", "\\varrho", !0); +n(l, o, E, "ς", "\\varsigma", !0); +n(l, o, E, "φ", "\\varphi", !0); +n(l, o, D, "∗", "*", !0); +n(l, o, D, "+", "+"); +n(l, o, D, "−", "-", !0); +n(l, o, D, "⋅", "\\cdot", !0); +n(l, o, D, "∘", "\\circ", !0); +n(l, o, D, "÷", "\\div", !0); +n(l, o, D, "±", "\\pm", !0); +n(l, o, D, "×", "\\times", !0); +n(l, o, D, "∩", "\\cap", !0); +n(l, o, D, "∪", "\\cup", !0); +n(l, o, D, "∖", "\\setminus", !0); +n(l, o, D, "∧", "\\land"); +n(l, o, D, "∨", "\\lor"); +n(l, o, D, "∧", "\\wedge", !0); +n(l, o, D, "∨", "\\vee", !0); +n(l, o, g, "√", "\\surd"); +n(l, o, f0, "⟨", "\\langle", !0); +n(l, o, f0, "∣", "\\lvert"); +n(l, o, f0, "∥", "\\lVert"); +n(l, o, u0, "?", "?"); +n(l, o, u0, "!", "!"); +n(l, o, u0, "⟩", "\\rangle", !0); +n(l, o, u0, "∣", "\\rvert"); +n(l, o, u0, "∥", "\\rVert"); +n(l, o, f, "=", "="); +n(l, o, f, ":", ":"); +n(l, o, f, "≈", "\\approx", !0); +n(l, o, f, "≅", "\\cong", !0); +n(l, o, f, "≥", "\\ge"); +n(l, o, f, "≥", "\\geq", !0); +n(l, o, f, "←", "\\gets"); +n(l, o, f, ">", "\\gt", !0); +n(l, o, f, "∈", "\\in", !0); +n(l, o, f, "", "\\@not"); +n(l, o, f, "⊂", "\\subset", !0); +n(l, o, f, "⊃", "\\supset", !0); +n(l, o, f, "⊆", "\\subseteq", !0); +n(l, o, f, "⊇", "\\supseteq", !0); +n(l, d, f, "⊈", "\\nsubseteq", !0); +n(l, d, f, "⊉", "\\nsupseteq", !0); +n(l, o, f, "⊨", "\\models"); +n(l, o, f, "←", "\\leftarrow", !0); +n(l, o, f, "≤", "\\le"); +n(l, o, f, "≤", "\\leq", !0); +n(l, o, f, "<", "\\lt", !0); +n(l, o, f, "→", "\\rightarrow", !0); +n(l, o, f, "→", "\\to"); +n(l, d, f, "≱", "\\ngeq", !0); +n(l, d, f, "≰", "\\nleq", !0); +n(l, o, q0, " ", "\\ "); +n(l, o, q0, " ", "\\space"); +n(l, o, q0, " ", "\\nobreakspace"); +n(w, o, q0, " ", "\\ "); +n(w, o, q0, " ", " "); +n(w, o, q0, " ", "\\space"); +n(w, o, q0, " ", "\\nobreakspace"); +n(l, o, q0, "", "\\nobreak"); +n(l, o, q0, "", "\\allowbreak"); +n(l, o, de, ",", ","); +n(l, o, de, ";", ";"); +n(l, d, D, "⊼", "\\barwedge", !0); +n(l, d, D, "⊻", "\\veebar", !0); +n(l, o, D, "⊙", "\\odot", !0); +n(l, o, D, "⊕", "\\oplus", !0); +n(l, o, D, "⊗", "\\otimes", !0); +n(l, o, g, "∂", "\\partial", !0); +n(l, o, D, "⊘", "\\oslash", !0); +n(l, d, D, "⊚", "\\circledcirc", !0); +n(l, d, D, "⊡", "\\boxdot", !0); +n(l, o, D, "△", "\\bigtriangleup"); +n(l, o, D, "▽", "\\bigtriangledown"); +n(l, o, D, "†", "\\dagger"); +n(l, o, D, "⋄", "\\diamond"); +n(l, o, D, "⋆", "\\star"); +n(l, o, D, "◃", "\\triangleleft"); +n(l, o, D, "▹", "\\triangleright"); +n(l, o, f0, "{", "\\{"); +n(w, o, g, "{", "\\{"); +n(w, o, g, "{", "\\textbraceleft"); +n(l, o, u0, "}", "\\}"); +n(w, o, g, "}", "\\}"); +n(w, o, g, "}", "\\textbraceright"); +n(l, o, f0, "{", "\\lbrace"); +n(l, o, u0, "}", "\\rbrace"); +n(l, o, f0, "[", "\\lbrack", !0); +n(w, o, g, "[", "\\lbrack", !0); +n(l, o, u0, "]", "\\rbrack", !0); +n(w, o, g, "]", "\\rbrack", !0); +n(l, o, f0, "(", "\\lparen", !0); +n(l, o, u0, ")", "\\rparen", !0); +n(w, o, g, "<", "\\textless", !0); +n(w, o, g, ">", "\\textgreater", !0); +n(l, o, f0, "⌊", "\\lfloor", !0); +n(l, o, u0, "⌋", "\\rfloor", !0); +n(l, o, f0, "⌈", "\\lceil", !0); +n(l, o, u0, "⌉", "\\rceil", !0); +n(l, o, g, "\\", "\\backslash"); +n(l, o, g, "∣", "|"); +n(l, o, g, "∣", "\\vert"); +n(w, o, g, "|", "\\textbar", !0); +n(l, o, g, "∥", "\\|"); +n(l, o, g, "∥", "\\Vert"); +n(w, o, g, "∥", "\\textbardbl"); +n(w, o, g, "~", "\\textasciitilde"); +n(w, o, g, "\\", "\\textbackslash"); +n(w, o, g, "^", "\\textasciicircum"); +n(l, o, f, "↑", "\\uparrow", !0); +n(l, o, f, "⇑", "\\Uparrow", !0); +n(l, o, f, "↓", "\\downarrow", !0); +n(l, o, f, "⇓", "\\Downarrow", !0); +n(l, o, f, "↕", "\\updownarrow", !0); +n(l, o, f, "⇕", "\\Updownarrow", !0); +n(l, o, t0, "∐", "\\coprod"); +n(l, o, t0, "⋁", "\\bigvee"); +n(l, o, t0, "⋀", "\\bigwedge"); +n(l, o, t0, "⨄", "\\biguplus"); +n(l, o, t0, "⋂", "\\bigcap"); +n(l, o, t0, "⋃", "\\bigcup"); +n(l, o, t0, "∫", "\\int"); +n(l, o, t0, "∫", "\\intop"); +n(l, o, t0, "∬", "\\iint"); +n(l, o, t0, "∭", "\\iiint"); +n(l, o, t0, "∏", "\\prod"); +n(l, o, t0, "∑", "\\sum"); +n(l, o, t0, "⨂", "\\bigotimes"); +n(l, o, t0, "⨁", "\\bigoplus"); +n(l, o, t0, "⨀", "\\bigodot"); +n(l, o, t0, "∮", "\\oint"); +n(l, o, t0, "∯", "\\oiint"); +n(l, o, t0, "∰", "\\oiiint"); +n(l, o, t0, "⨆", "\\bigsqcup"); +n(l, o, t0, "∫", "\\smallint"); +n(w, o, ne, "…", "\\textellipsis"); +n(l, o, ne, "…", "\\mathellipsis"); +n(w, o, ne, "…", "\\ldots", !0); +n(l, o, ne, "…", "\\ldots", !0); +n(l, o, ne, "⋯", "\\@cdots", !0); +n(l, o, ne, "⋱", "\\ddots", !0); +n(l, o, g, "⋮", "\\varvdots"); +n(w, o, g, "⋮", "\\varvdots"); +n(l, o, j, "ˊ", "\\acute"); +n(l, o, j, "ˋ", "\\grave"); +n(l, o, j, "¨", "\\ddot"); +n(l, o, j, "~", "\\tilde"); +n(l, o, j, "ˉ", "\\bar"); +n(l, o, j, "˘", "\\breve"); +n(l, o, j, "ˇ", "\\check"); +n(l, o, j, "^", "\\hat"); +n(l, o, j, "⃗", "\\vec"); +n(l, o, j, "˙", "\\dot"); +n(l, o, j, "˚", "\\mathring"); +n(l, o, E, "", "\\@imath"); +n(l, o, E, "", "\\@jmath"); +n(l, o, g, "ı", "ı"); +n(l, o, g, "ȷ", "ȷ"); +n(w, o, g, "ı", "\\i", !0); +n(w, o, g, "ȷ", "\\j", !0); +n(w, o, g, "ß", "\\ss", !0); +n(w, o, g, "æ", "\\ae", !0); +n(w, o, g, "œ", "\\oe", !0); +n(w, o, g, "ø", "\\o", !0); +n(w, o, g, "Æ", "\\AE", !0); +n(w, o, g, "Œ", "\\OE", !0); +n(w, o, g, "Ø", "\\O", !0); +n(w, o, j, "ˊ", "\\'"); +n(w, o, j, "ˋ", "\\`"); +n(w, o, j, "ˆ", "\\^"); +n(w, o, j, "˜", "\\~"); +n(w, o, j, "ˉ", "\\="); +n(w, o, j, "˘", "\\u"); +n(w, o, j, "˙", "\\."); +n(w, o, j, "¸", "\\c"); +n(w, o, j, "˚", "\\r"); +n(w, o, j, "ˇ", "\\v"); +n(w, o, j, "¨", '\\"'); +n(w, o, j, "˝", "\\H"); +n(w, o, j, "◯", "\\textcircled"); +var $r = { "--": !0, "---": !0, "``": !0, "''": !0 }; -i(w, o, p, "–", "--", !0); -i(w, o, p, "–", "\\textendash"); -i(w, o, p, "—", "---", !0); -i(w, o, p, "—", "\\textemdash"); -i(w, o, p, "‘", "`", !0); -i(w, o, p, "‘", "\\textquoteleft"); -i(w, o, p, "’", "'", !0); -i(w, o, p, "’", "\\textquoteright"); -i(w, o, p, "“", "``", !0); -i(w, o, p, "“", "\\textquotedblleft"); -i(w, o, p, "”", "''", !0); -i(w, o, p, "”", "\\textquotedblright"); -i(s, o, p, "°", "\\degree", !0); -i(w, o, p, "°", "\\degree"); -i(w, o, p, "°", "\\textdegree", !0); -i(s, o, p, "£", "\\pounds"); -i(s, o, p, "£", "\\mathsterling", !0); -i(w, o, p, "£", "\\pounds"); -i(w, o, p, "£", "\\textsterling", !0); -i(s, d, p, "✠", "\\maltese"); -i(w, d, p, "✠", "\\maltese"); -var er = '0123456789/@."'; -for (var Qe = 0; Qe < er.length; Qe++) { - var tr = er.charAt(Qe); - i(s, o, p, tr, tr); +n(w, o, g, "–", "--", !0); +n(w, o, g, "–", "\\textendash"); +n(w, o, g, "—", "---", !0); +n(w, o, g, "—", "\\textemdash"); +n(w, o, g, "‘", "`", !0); +n(w, o, g, "‘", "\\textquoteleft"); +n(w, o, g, "’", "'", !0); +n(w, o, g, "’", "\\textquoteright"); +n(w, o, g, "“", "``", !0); +n(w, o, g, "“", "\\textquotedblleft"); +n(w, o, g, "”", "''", !0); +n(w, o, g, "”", "\\textquotedblright"); +n(l, o, g, "°", "\\degree", !0); +n(w, o, g, "°", "\\degree"); +n(w, o, g, "°", "\\textdegree", !0); +n(l, o, g, "£", "\\pounds"); +n(l, o, g, "£", "\\mathsterling", !0); +n(w, o, g, "£", "\\pounds"); +n(w, o, g, "£", "\\textsterling", !0); +n(l, d, g, "✠", "\\maltese"); +n(w, d, g, "✠", "\\maltese"); +var nr = '0123456789/@."'; +for (var Qe = 0; Qe < nr.length; Qe++) { + var sr = nr.charAt(Qe); + n(l, o, g, sr, sr); } -var rr = '0123456789!@*()-=+";:?/.,'; -for (var _e = 0; _e < rr.length; _e++) { - var ar = rr.charAt(_e); - i(w, o, p, ar, ar); +var lr = '0123456789!@*()-=+";:?/.,'; +for (var _e = 0; _e < lr.length; _e++) { + var ur = lr.charAt(_e); + n(w, o, g, ur, ur); } var Ee = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; for (var et = 0; et < Ee.length; et++) { - var we = Ee.charAt(et); - i(s, o, E, we, we), i(w, o, p, we, we); + var ke = Ee.charAt(et); + n(l, o, E, ke, ke), n(w, o, g, ke, ke); } -i(s, d, p, "C", "ℂ"); -i(w, d, p, "C", "ℂ"); -i(s, d, p, "H", "ℍ"); -i(w, d, p, "H", "ℍ"); -i(s, d, p, "N", "ℕ"); -i(w, d, p, "N", "ℕ"); -i(s, d, p, "P", "ℙ"); -i(w, d, p, "P", "ℙ"); -i(s, d, p, "Q", "ℚ"); -i(w, d, p, "Q", "ℚ"); -i(s, d, p, "R", "ℝ"); -i(w, d, p, "R", "ℝ"); -i(s, d, p, "Z", "ℤ"); -i(w, d, p, "Z", "ℤ"); -i(s, o, E, "h", "ℎ"); -i(w, o, E, "h", "ℎ"); -var R = ""; -for (var l0 = 0; l0 < Ee.length; l0++) { - var J = Ee.charAt(l0); - R = String.fromCharCode(55349, 56320 + l0), i(s, o, E, J, R), i(w, o, p, J, R), R = String.fromCharCode(55349, 56372 + l0), i(s, o, E, J, R), i(w, o, p, J, R), R = String.fromCharCode(55349, 56424 + l0), i(s, o, E, J, R), i(w, o, p, J, R), R = String.fromCharCode(55349, 56580 + l0), i(s, o, E, J, R), i(w, o, p, J, R), R = String.fromCharCode(55349, 56684 + l0), i(s, o, E, J, R), i(w, o, p, J, R), R = String.fromCharCode(55349, 56736 + l0), i(s, o, E, J, R), i(w, o, p, J, R), R = String.fromCharCode(55349, 56788 + l0), i(s, o, E, J, R), i(w, o, p, J, R), R = String.fromCharCode(55349, 56840 + l0), i(s, o, E, J, R), i(w, o, p, J, R), R = String.fromCharCode(55349, 56944 + l0), i(s, o, E, J, R), i(w, o, p, J, R), l0 < 26 && (R = String.fromCharCode(55349, 56632 + l0), i(s, o, E, J, R), i(w, o, p, J, R), R = String.fromCharCode(55349, 56476 + l0), i(s, o, E, J, R), i(w, o, p, J, R)); +n(l, d, g, "C", "ℂ"); +n(w, d, g, "C", "ℂ"); +n(l, d, g, "H", "ℍ"); +n(w, d, g, "H", "ℍ"); +n(l, d, g, "N", "ℕ"); +n(w, d, g, "N", "ℕ"); +n(l, d, g, "P", "ℙ"); +n(w, d, g, "P", "ℙ"); +n(l, d, g, "Q", "ℚ"); +n(w, d, g, "Q", "ℚ"); +n(l, d, g, "R", "ℝ"); +n(w, d, g, "R", "ℝ"); +n(l, d, g, "Z", "ℤ"); +n(w, d, g, "Z", "ℤ"); +n(l, o, E, "h", "ℎ"); +n(w, o, E, "h", "ℎ"); +var I; +for (var n0 = 0; n0 < Ee.length; n0++) { + var J = Ee.charAt(n0); + I = String.fromCharCode(55349, 56320 + n0), n(l, o, E, J, I), n(w, o, g, J, I), I = String.fromCharCode(55349, 56372 + n0), n(l, o, E, J, I), n(w, o, g, J, I), I = String.fromCharCode(55349, 56424 + n0), n(l, o, E, J, I), n(w, o, g, J, I), I = String.fromCharCode(55349, 56580 + n0), n(l, o, E, J, I), n(w, o, g, J, I), I = String.fromCharCode(55349, 56684 + n0), n(l, o, E, J, I), n(w, o, g, J, I), I = String.fromCharCode(55349, 56736 + n0), n(l, o, E, J, I), n(w, o, g, J, I), I = String.fromCharCode(55349, 56788 + n0), n(l, o, E, J, I), n(w, o, g, J, I), I = String.fromCharCode(55349, 56840 + n0), n(l, o, E, J, I), n(w, o, g, J, I), I = String.fromCharCode(55349, 56944 + n0), n(l, o, E, J, I), n(w, o, g, J, I), n0 < 26 && (I = String.fromCharCode(55349, 56632 + n0), n(l, o, E, J, I), n(w, o, g, J, I), I = String.fromCharCode(55349, 56476 + n0), n(l, o, E, J, I), n(w, o, g, J, I)); } -R = "𝕜"; -i(s, o, E, "k", R); -i(w, o, p, "k", R); -for (var Y0 = 0; Y0 < 10; Y0++) { - var H0 = Y0.toString(); - R = String.fromCharCode(55349, 57294 + Y0), i(s, o, E, H0, R), i(w, o, p, H0, R), R = String.fromCharCode(55349, 57314 + Y0), i(s, o, E, H0, R), i(w, o, p, H0, R), R = String.fromCharCode(55349, 57324 + Y0), i(s, o, E, H0, R), i(w, o, p, H0, R), R = String.fromCharCode(55349, 57334 + Y0), i(s, o, E, H0, R), i(w, o, p, H0, R); +I = "𝕜"; +n(l, o, E, "k", I); +n(w, o, g, "k", I); +for (var X0 = 0; X0 < 10; X0++) { + var H0 = X0.toString(); + I = String.fromCharCode(55349, 57294 + X0), n(l, o, E, H0, I), n(w, o, g, H0, I), I = String.fromCharCode(55349, 57314 + X0), n(l, o, E, H0, I), n(w, o, g, H0, I), I = String.fromCharCode(55349, 57324 + X0), n(l, o, E, H0, I), n(w, o, g, H0, I), I = String.fromCharCode(55349, 57334 + X0), n(l, o, E, H0, I), n(w, o, g, H0, I); } var gt = "ÐÞþ"; for (var tt = 0; tt < gt.length; tt++) { - var ke = gt.charAt(tt); - i(s, o, E, ke, ke), i(w, o, p, ke, ke); + var Se = gt.charAt(tt); + n(l, o, E, Se, Se), n(w, o, g, Se, Se); } -var Se = [ - ["mathbf", "textbf", "Main-Bold"], - // A-Z bold upright - ["mathbf", "textbf", "Main-Bold"], - // a-z bold upright - ["mathnormal", "textit", "Math-Italic"], - // A-Z italic - ["mathnormal", "textit", "Math-Italic"], - // a-z italic - ["boldsymbol", "boldsymbol", "Main-BoldItalic"], - // A-Z bold italic - ["boldsymbol", "boldsymbol", "Main-BoldItalic"], - // a-z bold italic +var bt = { + mathClass: "mathbf", + textClass: "textbf", + font: "Main-Bold" +}, or = { + mathClass: "mathnormal", + textClass: "textit", + font: "Math-Italic" +}, hr = { + mathClass: "boldsymbol", + textClass: "boldsymbol", + font: "Main-BoldItalic" +}, Ta = { + mathClass: "mathscr", + textClass: "textscr", + font: "Script-Regular" +}, $0 = { + mathClass: "", + textClass: "", + font: "" +}, mr = { + mathClass: "mathfrak", + textClass: "textfrak", + font: "Fraktur-Regular" +}, cr = { + mathClass: "mathbb", + textClass: "textbb", + font: "AMS-Regular" +}, dr = { + mathClass: "mathboldfrak", + textClass: "textboldfrak", + font: "Fraktur-Regular" +}, yt = { + mathClass: "mathsf", + textClass: "textsf", + font: "SansSerif-Regular" +}, xt = { + mathClass: "mathboldsf", + textClass: "textboldsf", + font: "SansSerif-Bold" +}, fr = { + mathClass: "mathitsf", + textClass: "textitsf", + font: "SansSerif-Italic" +}, wt = { + mathClass: "mathtt", + textClass: "texttt", + font: "Typewriter-Regular" +}, vr = [ + bt, + bt, + // A-Z, a-z + or, + or, + // A-Z, a-z + hr, + hr, + // A-Z, a-z // Map fancy A-Z letters to script, not calligraphic. // This aligns with unicode-math and math fonts (except Cambria Math). - ["mathscr", "textscr", "Script-Regular"], - // A-Z script - ["", "", ""], - // a-z script. No font - ["", "", ""], - // A-Z bold script. No font - ["", "", ""], - // a-z bold script. No font - ["mathfrak", "textfrak", "Fraktur-Regular"], - // A-Z Fraktur - ["mathfrak", "textfrak", "Fraktur-Regular"], - // a-z Fraktur - ["mathbb", "textbb", "AMS-Regular"], - // A-Z double-struck - ["mathbb", "textbb", "AMS-Regular"], - // k double-struck + Ta, + $0, + // A-Z script, a-z — no font + $0, + $0, + // A-Z bold script, a-z bold script — no font + mr, + mr, + // A-Z, a-z + cr, + cr, + // A-Z double-struck, k double-struck // Note that we are using a bold font, but font metrics for regular Fraktur. - ["mathboldfrak", "textboldfrak", "Fraktur-Regular"], - // A-Z bold Fraktur - ["mathboldfrak", "textboldfrak", "Fraktur-Regular"], - // a-z bold Fraktur - ["mathsf", "textsf", "SansSerif-Regular"], - // A-Z sans-serif - ["mathsf", "textsf", "SansSerif-Regular"], - // a-z sans-serif - ["mathboldsf", "textboldsf", "SansSerif-Bold"], - // A-Z bold sans-serif - ["mathboldsf", "textboldsf", "SansSerif-Bold"], - // a-z bold sans-serif - ["mathitsf", "textitsf", "SansSerif-Italic"], - // A-Z italic sans-serif - ["mathitsf", "textitsf", "SansSerif-Italic"], - // a-z italic sans-serif - ["", "", ""], - // A-Z bold italic sans. No font - ["", "", ""], - // a-z bold italic sans. No font - ["mathtt", "texttt", "Typewriter-Regular"], - // A-Z monospace - ["mathtt", "texttt", "Typewriter-Regular"] - // a-z monospace -], nr = [ - ["mathbf", "textbf", "Main-Bold"], - // 0-9 bold - ["", "", ""], + dr, + dr, + // A-Z, a-z + yt, + yt, + // A-Z, a-z + xt, + xt, + // A-Z, a-z + fr, + fr, + // A-Z, a-z + $0, + $0, + // A-Z bold italic sans, a-z bold italic sans - no font + wt, + wt + // A-Z, a-z +], Ba = [ + bt, + // 0-9 + $0, // 0-9 double-struck. No KaTeX font. - ["mathsf", "textsf", "SansSerif-Regular"], - // 0-9 sans-serif - ["mathboldsf", "textboldsf", "SansSerif-Bold"], - // 0-9 bold sans-serif - ["mathtt", "texttt", "Typewriter-Regular"] - // 0-9 monospace -], fa = (r, e) => { - var t = r.charCodeAt(0), a = r.charCodeAt(1), n = (t - 55296) * 1024 + (a - 56320) + 65536, l = e === "math" ? 0 : 1; - if (119808 <= n && n < 120484) { - var u = Math.floor((n - 119808) / 26); - return [Se[u][2], Se[u][l]]; - } else if (120782 <= n && n <= 120831) { - var h = Math.floor((n - 120782) / 10); - return [nr[h][2], nr[h][l]]; + yt, + // 0-9 + xt, + // 0-9 + wt + // 0-9 +], Ca = (r) => { + 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 vr[i]; + } else if (120782 <= a && a <= 120831) { + var s = Math.floor((a - 120782) / 10); + return Ba[s]; } else { - if (n === 120485 || n === 120486) - return [Se[0][2], Se[0][l]]; - if (120486 < n && n < 120782) - return ["", ""]; + if (a === 120485 || a === 120486) + return vr[0]; + if (120486 < a && a < 120782) + return $0; throw new S("Unsupported character: " + r); } }, He = function(e, t, a) { - if ($[a][e]) { - var n = $[a][e].replace; - n && (e = n); + if (W[a][e]) { + var i = W[a][e].replace; + i && (e = i); } return { value: e, - metrics: Ct(e, t, a) + metrics: Nt(e, t, a) }; -}, s0 = function(e, t, a, n, l) { +}, s0 = function(e, t, a, i, s) { var u = He(e, t, a), h = u.metrics; e = u.value; var c; if (h) { var v = h.italic; - (a === "text" || n && n.font === "mathit") && (v = 0), c = new f0(e, h.height, h.depth, v, h.skew, h.width, l); + (a === "text" || i && i.font === "mathit") && (v = 0), c = new d0(e, h.height, h.depth, v, h.skew, h.width, s); } else - typeof console < "u" && console.warn("No character metrics " + ("for '" + e + "' in style '" + t + "' and mode '" + a + "'")), c = new f0(e, 0, 0, 0, 0, 0, l); - if (n) { - c.maxFontSize = n.sizeMultiplier, n.style.isTight() && c.classes.push("mtight"); - var g = n.getColor(); - g && (c.style.color = g); + typeof console < "u" && console.warn("No character metrics " + ("for '" + e + "' in style '" + t + "' and mode '" + a + "'")), c = new d0(e, 0, 0, 0, 0, 0, s); + if (i) { + c.maxFontSize = i.sizeMultiplier, i.style.isTight() && c.classes.push("mtight"); + var p = i.getColor(); + p && (c.style.color = p); } return c; -}, qt = function(e, t, a, n) { - return n === void 0 && (n = []), a.font === "boldsymbol" && He(e, "Main-Bold", t).metrics ? s0(e, "Main-Bold", t, a, n.concat(["mathbf"])) : e === "\\" || $[t][e].font === "main" ? s0(e, "Main-Regular", t, a, n) : s0(e, "AMS-Regular", t, a, n.concat(["amsrm"])); -}, va = function(e, t, a, n, l) { - return l !== "textord" && He(e, "Math-BoldItalic", t).metrics ? { +}, Ft = function(e, t, a, i) { + return i === void 0 && (i = []), a.font === "boldsymbol" && He(e, "Main-Bold", t).metrics ? s0(e, "Main-Bold", t, a, i.concat(["mathbf"])) : e === "\\" || W[t][e].font === "main" ? s0(e, "Main-Regular", t, a, i) : s0(e, "AMS-Regular", t, a, i.concat(["amsrm"])); +}, Da = function(e, t, a) { + return a !== "textord" && He(e, "Math-BoldItalic", t).metrics ? { fontName: "Math-BoldItalic", fontClass: "boldsymbol" } : { fontName: "Main-Bold", fontClass: "mathbf" }; -}, Fe = function(e, t, a) { - var n = e.mode, l = e.text, u = ["mord"], h = n === "math" || n === "text" && t.font, c = h ? t.font : t.fontFamily, v = "", g = ""; - if (l.charCodeAt(0) === 55349 && ([v, g] = fa(l, n)), v.length > 0) - return s0(l, v, n, t, u.concat(g)); - if (c) { - var b, y; - if (c === "boldsymbol") { - var x = va(l, n, t, u, a); - b = x.fontName, y = [x.fontClass]; - } else h ? (b = bt[c].fontName, y = [c]) : (b = ze(c, t.fontWeight, t.fontShape), y = [c, t.fontWeight, t.fontShape]); - if (He(l, b, n).metrics) - return s0(l, b, n, t, u.concat(y)); - if (Nr.hasOwnProperty(l) && b.slice(0, 10) === "Typewriter") { - for (var M = [], T = 0; T < l.length; T++) - M.push(s0(l[T], b, n, t, u.concat(y))); - return E0(M); +}, Oe = function(e, t, a) { + var i = e.mode, s = e.text, u = ["mord"], { + font: h, + fontFamily: c, + fontWeight: v, + fontShape: p + } = t, b = i === "math" || i === "text" && !!h, x = b ? h : c, y = "", T = ""; + if (s.charCodeAt(0) === 55349) { + var M = Ca(s); + y = M.font, T = M[i + "Class"]; + } + if (y) + return s0(s, y, i, t, u.concat(T)); + if (x) { + var q, C; + if (x === "boldsymbol") { + var R = Da(s, i, a); + q = R.fontName, C = [R.fontClass]; + } else b ? (q = kt[h].fontName, C = [h]) : (q = ze(c, v, p), C = [c, v, p]); + if (He(s, q, i).metrics) + return s0(s, q, i, t, u.concat(C)); + if ($r.hasOwnProperty(s) && q.slice(0, 10) === "Typewriter") { + for (var F = [], L = 0; L < s.length; L++) + F.push(s0(s[L], q, i, t, u.concat(C))); + return E0(F); } } if (a === "mathord") - return s0(l, "Math-Italic", n, t, u.concat(["mathnormal"])); + return s0(s, "Math-Italic", i, t, u.concat(["mathnormal"])); if (a === "textord") { - var C = $[n][l] && $[n][l].font; - if (C === "ams") { - var q = ze("amsrm", t.fontWeight, t.fontShape); - return s0(l, q, n, t, u.concat("amsrm", t.fontWeight, t.fontShape)); - } else if (C === "main" || !C) { - var I = ze("textrm", t.fontWeight, t.fontShape); - return s0(l, I, n, t, u.concat(t.fontWeight, t.fontShape)); + var O = W[i][s] && W[i][s].font; + if (O === "ams") { + var P = ze("amsrm", v, p); + return s0(s, P, i, t, u.concat("amsrm", v, p)); + } else if (O === "main" || !O) { + var G = ze("textrm", v, p); + return s0(s, G, i, t, u.concat(v, p)); } else { - var O = ze(C, t.fontWeight, t.fontShape); - return s0(l, O, n, t, u.concat(O, t.fontWeight, t.fontShape)); + var Y = ze(O, v, p); + return s0(s, Y, i, t, u.concat(Y, v, p)); } } else throw new Error("unexpected type: " + a + " in makeOrd"); -}, pa = (r, e) => { +}, qa = (r, e) => { if (L0(r.classes) !== L0(e.classes) || r.skew !== e.skew || r.maxFontSize !== e.maxFontSize || r.italic !== 0 && r.hasClass("mathnormal")) return !1; if (r.classes.length === 1) { @@ -4107,67 +4143,67 @@ var Se = [ for (var a of Object.keys(r.style)) if (r.style[a] !== e.style[a]) return !1; - for (var n of Object.keys(e.style)) - if (r.style[n] !== e.style[n]) + for (var i of Object.keys(e.style)) + if (r.style[i] !== e.style[i]) return !1; return !0; -}, Or = (r) => { +}, Wr = (r) => { for (var e = 0; e < r.length - 1; e++) { var t = r[e], a = r[e + 1]; - t instanceof f0 && a instanceof f0 && pa(t, a) && (t.text += a.text, t.height = Math.max(t.height, a.height), t.depth = Math.max(t.depth, a.depth), t.italic = a.italic, r.splice(e + 1, 1), e--); + t instanceof d0 && a instanceof d0 && qa(t, a) && (t.text += a.text, t.height = Math.max(t.height, a.height), t.depth = Math.max(t.depth, a.depth), t.italic = a.italic, r.splice(e + 1, 1), e--); } return r; -}, Et = function(e) { - for (var t = 0, a = 0, n = 0, l = 0; l < e.children.length; l++) { - var u = e.children[l]; - u.height > t && (t = u.height), u.depth > a && (a = u.depth), u.maxFontSize > n && (n = u.maxFontSize); - } - e.height = t, e.depth = a, e.maxFontSize = n; -}, k = function(e, t, a, n) { - var l = new ne(e, t, a, n); - return Et(l), l; -}, G0 = (r, e, t, a) => new ne(r, e, t, a), te = function(e, t, a) { - var n = k([e], [], t); - return n.height = Math.max(a || t.fontMetrics().defaultRuleThickness, t.minRuleThickness), n.style.borderBottomWidth = A(n.height), n.maxFontSize = 1, n; -}, ga = function(e, t, a, n) { - var l = new Oe(e, t, a, n); - return Et(l), l; +}, Ht = function(e) { + for (var t = 0, a = 0, i = 0, s = 0; s < e.children.length; s++) { + var u = e.children[s]; + u.height > t && (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 ie(e, t, a, i); + return Ht(s), s; +}, G0 = (r, e, t, a) => new ie(r, e, t, a), te = 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; +}, Ea = function(e, t, a, i) { + var s = new Fe(e, t, a, i); + return Ht(s), s; }, E0 = function(e) { var t = new ae(e); - return Et(t), t; + return Ht(t), t; }, re = function(e, t) { return e instanceof ae ? k([], [e], t) : e; -}, ba = function(e) { +}, Ra = function(e) { if (e.positionType === "individualShift") { - for (var t = e.children, a = [t[0]], n = -t[0].shift - t[0].elem.depth, l = n, u = 1; u < t.length; u++) { - var h = -t[u].shift - l - t[u].elem.depth, c = h - (t[u - 1].elem.height + t[u - 1].elem.depth); - l = l + h, a.push({ + for (var t = e.children, a = [t[0]], i = -t[0].shift - t[0].elem.depth, s = i, u = 1; u < t.length; u++) { + var h = -t[u].shift - s - t[u].elem.depth, c = h - (t[u - 1].elem.height + t[u - 1].elem.depth); + s = s + h, a.push({ type: "kern", size: c }), a.push(t[u]); } return { children: a, - depth: n + depth: i }; } var v; if (e.positionType === "top") { - for (var g = e.positionData, b = 0; b < e.children.length; b++) { - var y = e.children[b]; - g -= y.type === "kern" ? y.size : y.elem.height + y.elem.depth; + for (var p = e.positionData, b = 0; b < e.children.length; b++) { + var x = e.children[b]; + p -= x.type === "kern" ? x.size : x.elem.height + x.elem.depth; } - v = g; + v = p; } else if (e.positionType === "bottom") v = -e.positionData; else { - var x = e.children[0]; - if (x.type !== "elem") + var y = e.children[0]; + if (y.type !== "elem") throw new Error('First child must have type "elem".'); if (e.positionType === "shift") - v = -x.elem.depth - e.positionData; + v = -y.elem.depth - e.positionData; else if (e.positionType === "firstBaseline") - v = -x.elem.depth; + v = -y.elem.depth; else throw new Error("Invalid positionType " + e.positionType + "."); } @@ -4175,66 +4211,65 @@ var Se = [ children: e.children, depth: v }; -}, G = function(e, t) { +}, V = function(e, t) { for (var { children: a, - depth: n - } = ba(e), l = 0, u = 0; u < a.length; u++) { + depth: i + } = Ra(e), s = 0, u = 0; u < a.length; u++) { var h = a[u]; if (h.type === "elem") { var c = h.elem; - l = Math.max(l, c.maxFontSize, c.height); + s = Math.max(s, c.maxFontSize, c.height); } } - l += 2; + s += 2; var v = k(["pstrut"], []); - v.style.height = A(l); - for (var g = [], b = n, y = n, x = n, M = 0; M < a.length; M++) { - var T = a[M]; - if (T.type === "kern") - x += T.size; + v.style.height = A(s); + for (var p = [], b = i, x = i, y = i, T = 0; T < a.length; T++) { + var M = a[T]; + if (M.type === "kern") + y += M.size; else { - var C = T.elem, q = T.wrapperClasses || [], I = T.wrapperStyle || {}, O = k(q, [v, C], void 0, I); - O.style.top = A(-l - x - C.depth), T.marginLeft && (O.style.marginLeft = T.marginLeft), T.marginRight && (O.style.marginRight = T.marginRight), g.push(O), x += C.height + C.depth; + var q = M.elem, C = M.wrapperClasses || [], R = M.wrapperStyle || {}, F = k(C, [v, q], void 0, R); + F.style.top = A(-s - y - q.depth), M.marginLeft && (F.style.marginLeft = M.marginLeft), M.marginRight && (F.style.marginRight = M.marginRight), p.push(F), y += q.height + q.depth; } - b = Math.min(b, x), y = Math.max(y, x); + b = Math.min(b, y), x = Math.max(x, y); } - var F = k(["vlist"], g); - F.style.height = A(y); - var V; + var L = k(["vlist"], p); + L.style.height = A(x); + var O; if (b < 0) { - var L = k([], []), P = k(["vlist"], [L]); - P.style.height = A(-b); - var W = k(["vlist-s"], [new f0("​")]); - V = [k(["vlist-r"], [F, W]), k(["vlist-r"], [P])]; + var P = k([], []), G = k(["vlist"], [P]); + G.style.height = A(-b); + var Y = k(["vlist-s"], [new d0("​")]); + O = [k(["vlist-r"], [L, Y]), k(["vlist-r"], [G])]; } else - V = [k(["vlist-r"], [F])]; - var X = k(["vlist-t"], V); - return V.length === 2 && X.classes.push("vlist-t2"), X.height = y, X.depth = -b, X; -}, Hr = (r, e) => { + O = [k(["vlist-r"], [L])]; + var U = k(["vlist-t"], O); + return O.length === 2 && U.classes.push("vlist-t2"), U.height = x, U.depth = -b, U; +}, jr = (r, e) => { var t = k(["mspace"], [], e), a = K(r, e); return t.style.marginRight = A(a), t; -}, ze = function(e, t, a) { - var n = ""; - switch (e) { +}, ze = (r, e, t) => { + var a, i; + switch (r) { case "amsrm": - n = "AMS"; + a = "AMS"; break; case "textrm": - n = "Main"; + a = "Main"; break; case "textsf": - n = "SansSerif"; + a = "SansSerif"; break; case "texttt": - n = "Typewriter"; + a = "Typewriter"; break; default: - n = e; + a = r; } - var l; - return t === "textbf" && a === "textit" ? l = "BoldItalic" : t === "textbf" ? l = "Bold" : t === "textit" ? l = "Italic" : l = "Regular", n + "-" + l; -}, bt = { + return e === "textbf" && t === "textit" ? i = "BoldItalic" : e === "textbf" ? i = "Bold" : t === "textit" ? i = "Italic" : i = "Regular", a + "-" + i; +}, kt = { // styles mathbf: { variant: "bold", @@ -4288,7 +4323,7 @@ var Se = [ variant: "monospace", fontName: "Typewriter-Regular" } -}, Fr = { +}, Zr = { // path, width, height vec: ["vec", 0.471, 0.714], // values from the font glyph @@ -4297,29 +4332,29 @@ var Se = [ oiintSize2: ["oiintSize2", 1.472, 0.659], oiiintSize1: ["oiiintSize1", 1.304, 0.499], oiiintSize2: ["oiiintSize2", 1.98, 0.659] -}, Lr = function(e, t) { - var [a, n, l] = Fr[e], u = new P0(a), h = new D0([u], { - width: A(n), - height: A(l), +}, Kr = function(e, t) { + var [a, i, s] = Zr[e], u = new P0(a), h = new C0([u], { + width: A(i), + height: A(s), // Override CSS rule `.katex svg { width: 100% }` - style: "width:" + A(n), - viewBox: "0 0 " + 1e3 * n + " " + 1e3 * l, + style: "width:" + A(i), + viewBox: "0 0 " + 1e3 * i + " " + 1e3 * s, preserveAspectRatio: "xMinYMin" }), c = G0(["overlay"], [h], t); - return c.height = l, c.style.height = A(l), c.style.width = A(n), c; + return c.height = s, c.style.height = A(s), c.style.width = A(i), c; }, Z = { number: 3, unit: "mu" -}, W0 = { +}, Y0 = { number: 4, unit: "mu" }, M0 = { number: 5, unit: "mu" -}, ya = { +}, Ia = { mord: { mop: Z, - mbin: W0, + mbin: Y0, mrel: M0, minner: Z }, @@ -4330,10 +4365,10 @@ var Se = [ minner: Z }, mbin: { - mord: W0, - mop: W0, - mopen: W0, - minner: W0 + mord: Y0, + mop: Y0, + mopen: Y0, + minner: Y0 }, mrel: { mord: M0, @@ -4344,7 +4379,7 @@ var Se = [ mopen: {}, mclose: { mop: Z, - mbin: W0, + mbin: Y0, mrel: M0, minner: Z }, @@ -4360,13 +4395,13 @@ var Se = [ minner: { mord: Z, mop: Z, - mbin: W0, + mbin: Y0, mrel: M0, mopen: Z, mpunct: Z, minner: Z } -}, xa = { +}, Na = { mord: { mop: Z }, @@ -4384,14 +4419,14 @@ var Se = [ minner: { mop: Z } -}, Pr = {}, Re = {}, Ie = {}; +}, Jr = {}, Re = {}, Ie = {}; function B(r) { for (var { type: e, names: t, props: a, - handler: n, - htmlBuilder: l, + handler: i, + htmlBuilder: s, mathmlBuilder: u } = r, h = { type: e, @@ -4403,12 +4438,12 @@ function B(r) { numOptionalArgs: a.numOptionalArgs || 0, infix: !!a.infix, primitive: !!a.primitive, - handler: n + handler: i }, c = 0; c < t.length; ++c) - Pr[t[c]] = h; - e && (l && (Re[e] = l), u && (Ie[e] = u)); + Jr[t[c]] = h; + e && (s && (Re[e] = s), u && (Ie[e] = u)); } -function $0(r) { +function W0(r) { var { type: e, htmlBuilder: t, @@ -4429,14 +4464,14 @@ function $0(r) { } var Ne = function(e) { return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e; -}, Q = function(e) { +}, _ = function(e) { return e.type === "ordgroup" ? e.body : [e]; -}, wa = /* @__PURE__ */ new Set(["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"]), ka = /* @__PURE__ */ new Set(["rightmost", "mrel", "mclose", "mpunct"]), Sa = { +}, Fa = /* @__PURE__ */ new Set(["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"]), Ha = /* @__PURE__ */ new Set(["rightmost", "mrel", "mclose", "mpunct"]), Oa = { display: N.DISPLAY, text: N.TEXT, script: N.SCRIPT, scriptscript: N.SCRIPTSCRIPT -}, za = { +}, La = { mord: "mord", mop: "mop", mbin: "mbin", @@ -4445,88 +4480,88 @@ var Ne = function(e) { mclose: "mclose", mpunct: "mpunct", minner: "minner" -}, a0 = function(e, t, a, n) { - n === void 0 && (n = [null, null]); - for (var l = [], u = 0; u < e.length; u++) { - var h = U(e[u], t); +}, a0 = function(e, t, a, i) { + i === void 0 && (i = [null, null]); + for (var s = [], u = 0; u < e.length; u++) { + var h = X(e[u], t); if (h instanceof ae) { var c = h.children; - l.push(...c); + s.push(...c); } else - l.push(h); + s.push(h); } - if (Or(l), !a) - return l; + if (Wr(s), !a) + return s; var v = t; if (e.length === 1) { - var g = e[0]; - g.type === "sizing" ? v = t.havingSize(g.size) : g.type === "styling" && (v = t.havingStyle(Sa[g.style])); + var p = e[0]; + p.type === "sizing" ? v = t.havingSize(p.size) : p.type === "styling" && (v = t.havingStyle(Oa[p.style])); } - var b = k([n[0] || "leftmost"], [], t), y = k([n[1] || "rightmost"], [], t), x = a === "root"; - return yt(l, (M, T) => { - var C = T.classes[0], q = M.classes[0]; - C === "mbin" && ka.has(q) ? T.classes[0] = "mord" : q === "mbin" && wa.has(C) && (M.classes[0] = "mord"); + var b = k([i[0] || "leftmost"], [], t), x = k([i[1] || "rightmost"], [], t), y = a === "root"; + return St(s, (T, M) => { + var q = M.classes[0], C = T.classes[0]; + q === "mbin" && Ha.has(C) ? M.classes[0] = "mord" : C === "mbin" && Fa.has(q) && (T.classes[0] = "mord"); }, { node: b - }, y, x), yt(l, (M, T) => { - var C, q, I = wt(T), O = wt(M), F = I && O ? M.hasClass("mtight") ? (C = xa[I]) == null ? void 0 : C[O] : (q = ya[I]) == null ? void 0 : q[O] : null; - if (F) - return Hr(F, v); + }, x, y), St(s, (T, M) => { + var q, C, R = At(M), F = At(T), L = R && F ? T.hasClass("mtight") ? (q = Na[R]) == null ? void 0 : q[F] : (C = Ia[R]) == null ? void 0 : C[F] : null; + if (L) + return jr(L, v); }, { node: b - }, y, x), l; -}, yt = function(e, t, a, n, l) { - n && e.push(n); + }, x, y), s; +}, St = function(e, t, a, i, s) { + i && e.push(i); for (var u = 0; u < e.length; u++) { - var h = e[u], c = Gr(h); + var h = e[u], c = Qr(h); if (c) { - yt(c.children, t, a, null, l); + St(c.children, t, a, null, s); continue; } var v = !h.hasClass("mspace"); if (v) { - var g = t(h, a.node); - g && (a.insertAfter ? a.insertAfter(g) : (e.unshift(g), u++)); + var p = t(h, a.node); + p && (a.insertAfter ? a.insertAfter(p) : (e.unshift(p), u++)); } - v ? a.node = h : l && h.hasClass("newline") && (a.node = k(["leftmost"])), a.insertAfter = /* @__PURE__ */ ((b) => (y) => { - e.splice(b + 1, 0, y), u++; + v ? a.node = h : s && h.hasClass("newline") && (a.node = k(["leftmost"])), a.insertAfter = /* @__PURE__ */ ((b) => (x) => { + e.splice(b + 1, 0, x), u++; })(u); } - n && e.pop(); -}, Gr = function(e) { - return e instanceof ae || e instanceof Oe || e instanceof ne && e.hasClass("enclosing") ? e : null; -}, xt = function(e, t) { - var a = Gr(e); + i && e.pop(); +}, Qr = function(e) { + return e instanceof ae || e instanceof Fe || e instanceof ie && e.hasClass("enclosing") ? e : null; +}, zt = function(e, t) { + var a = Qr(e); if (a) { - var n = a.children; - if (n.length) { + var i = a.children; + if (i.length) { if (t === "right") - return xt(n[n.length - 1], "right"); + return zt(i[i.length - 1], "right"); if (t === "left") - return xt(n[0], "left"); + return zt(i[0], "left"); } } return e; -}, wt = function(e, t) { +}, At = function(e, t) { if (!e) return null; - t && (e = xt(e, t)); + t && (e = zt(e, t)); var a = e.classes[0]; - return za[a] || null; -}, me = function(e, t) { + return La[a] || null; +}, ce = function(e, t) { var a = ["nulldelimiter"].concat(e.baseSizingClasses()); return k(t.concat(a)); -}, U = function(e, t, a) { +}, X = function(e, t, a) { if (!e) return k(); if (Re[e.type]) { - var n = Re[e.type](e, t); + var i = Re[e.type](e, t); if (a && t.size !== a.size) { - n = k(t.sizingClasses(a), [n], t); - var l = t.sizeMultiplier / a.sizeMultiplier; - n.height *= l, n.depth *= l; + i = k(t.sizingClasses(a), [i], t); + var s = t.sizeMultiplier / a.sizeMultiplier; + i.height *= s, i.depth *= s; } - return n; + return i; } else throw new S("Got group of unknown type: '" + e.type + "'"); }; @@ -4534,33 +4569,33 @@ function Ae(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 kt(r, e) { +function Mt(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"), n; - a.length === 2 && a[1].hasClass("tag") && (n = a.pop()); - for (var l = [], u = [], h = 0; h < a.length; h++) + var a = a0(r, e, "root"), i; + a.length === 2 && a[1].hasClass("tag") && (i = a.pop()); + for (var s = [], u = [], h = 0; h < a.length; h++) if (u.push(a[h]), a[h].hasClass("mbin") || a[h].hasClass("mrel") || a[h].hasClass("allowbreak")) { for (var c = !1; h < a.length - 1 && a[h + 1].hasClass("mspace") && !a[h + 1].hasClass("newline"); ) h++, u.push(a[h]), a[h].hasClass("nobreak") && (c = !0); - c || (l.push(Ae(u, e)), u = []); - } else a[h].hasClass("newline") && (u.pop(), u.length > 0 && (l.push(Ae(u, e)), u = []), l.push(a[h])); - u.length > 0 && l.push(Ae(u, e)); + c || (s.push(Ae(u, e)), u = []); + } else a[h].hasClass("newline") && (u.pop(), u.length > 0 && (s.push(Ae(u, e)), u = []), s.push(a[h])); + u.length > 0 && s.push(Ae(u, e)); var v; - t ? (v = Ae(a0(t, e, !0), e), v.classes = ["tag"], l.push(v)) : n && l.push(n); - var g = k(["katex-html"], l); - if (g.setAttribute("aria-hidden", "true"), v) { + t ? (v = Ae(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(g.height + g.depth), g.depth && (b.style.verticalAlign = A(-g.depth)); + b.style.height = A(p.height + p.depth), p.depth && (b.style.verticalAlign = A(-p.depth)); } - return g; + return p; } -function Ur(r) { +function _r(r) { return new ae(r); } class z { constructor(e, t, a) { - this.type = e, this.attributes = {}, this.children = t || [], this.classes = 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 || []; } /** * Sets an attribute on a MathML node. MathML depends on attributes to convey a @@ -4584,10 +4619,10 @@ class z { Object.prototype.hasOwnProperty.call(this.attributes, t) && e.setAttribute(t, this.attributes[t]); this.classes.length > 0 && (e.className = L0(this.classes)); for (var a = 0; a < this.children.length; a++) - if (this.children[a] instanceof _ && this.children[a + 1] instanceof _) { - for (var n = this.children[a].toText() + this.children[++a].toText(); this.children[a + 1] instanceof _; ) - n += this.children[++a].toText(); - e.appendChild(new _(n).toNode()); + if (this.children[a] instanceof e0 && this.children[a + 1] instanceof e0) { + for (var i = this.children[a].toText() + this.children[++a].toText(); this.children[a + 1] instanceof e0; ) + i += this.children[++a].toText(); + e.appendChild(new e0(i).toNode()); } else e.appendChild(this.children[a].toNode()); return e; @@ -4598,8 +4633,8 @@ class z { toMarkup() { var e = "<" + this.type; for (var t in this.attributes) - Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e += n0(this.attributes[t]), e += '"'); - this.classes.length > 0 && (e += ' class ="' + n0(L0(this.classes)) + '"'), e += ">"; + Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e += i0(this.attributes[t]), e += '"'); + this.classes.length > 0 && (e += ' class ="' + i0(L0(this.classes)) + '"'), e += ">"; for (var a = 0; a < this.children.length; a++) e += this.children[a].toMarkup(); return e += "", e; @@ -4611,9 +4646,9 @@ class z { return this.children.map((e) => e.toText()).join(""); } } -class _ { +class e0 { constructor(e) { - this.text = e; + this.text = void 0, this.text = e; } /** * Converts the text node into a DOM text node. @@ -4626,7 +4661,7 @@ class _ { * (representing the text itself). */ toMarkup() { - return n0(this.toText()); + return i0(this.toText()); } /** * Converts the text node into a string @@ -4636,12 +4671,12 @@ class _ { return this.text; } } -class Vr { +class e1 { /** * Create a Space node with width given in CSS ems. */ constructor(e) { - this.width = e, e >= 0.05555 && e <= 0.05556 ? this.character = " " : e >= 0.1666 && e <= 0.1667 ? this.character = " " : e >= 0.2222 && e <= 0.2223 ? this.character = " " : e >= 0.2777 && e <= 0.2778 ? this.character = "  " : e >= -0.05556 && e <= -0.05555 ? this.character = " ⁣" : e >= -0.1667 && e <= -0.1666 ? this.character = " ⁣" : e >= -0.2223 && e <= -0.2222 ? this.character = " ⁣" : e >= -0.2778 && e <= -0.2777 ? this.character = " ⁣" : this.character = null; + this.width = void 0, this.character = void 0, this.width = e, e >= 0.05555 && e <= 0.05556 ? this.character = " " : e >= 0.1666 && e <= 0.1667 ? this.character = " " : e >= 0.2222 && e <= 0.2223 ? this.character = " " : e >= 0.2777 && e <= 0.2778 ? this.character = "  " : e >= -0.05556 && e <= -0.05555 ? this.character = " ⁣" : e >= -0.1667 && e <= -0.1666 ? this.character = " ⁣" : e >= -0.2223 && e <= -0.2222 ? this.character = " ⁣" : e >= -0.2778 && e <= -0.2777 ? this.character = " ⁣" : this.character = null; } /** * Converts the math node into a MathML-namespaced DOM element. @@ -4665,72 +4700,69 @@ class Vr { return this.character ? this.character : " "; } } -var Aa = /* @__PURE__ */ new Set(["\\imath", "\\jmath"]), Ma = /* @__PURE__ */ new Set(["mrow", "mtable"]), b0 = function(e, t, a) { - return $[t][e] && $[t][e].replace && e.charCodeAt(0) !== 55349 && !(Nr.hasOwnProperty(e) && a && (a.fontFamily && a.fontFamily.slice(4, 6) === "tt" || a.font && a.font.slice(4, 6) === "tt")) && (e = $[t][e].replace), new _(e); -}, Rt = function(e) { +var Pa = /* @__PURE__ */ new Set(["\\imath", "\\jmath"]), Ga = /* @__PURE__ */ new Set(["mrow", "mtable"]), g0 = function(e, t, a) { + return W[t][e] && W[t][e].replace && e.charCodeAt(0) !== 55349 && !($r.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 e0(e); +}, Ot = function(e) { return e.length === 1 ? e[0] : new z("mrow", e); -}, It = function(e, t) { - if (t.fontFamily === "texttt") - return "monospace"; - if (t.fontFamily === "textsf") - return t.fontShape === "textit" && t.fontWeight === "textbf" ? "sans-serif-bold-italic" : t.fontShape === "textit" ? "sans-serif-italic" : t.fontWeight === "textbf" ? "bold-sans-serif" : "sans-serif"; - if (t.fontShape === "textit" && t.fontWeight === "textbf") - return "bold-italic"; - if (t.fontShape === "textit") - return "italic"; - if (t.fontWeight === "textbf") - return "bold"; - var a = t.font; - if (!a || a === "mathnormal") +}, Ua = { + 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" +}, Lt = (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 n = e.mode; - if (a === "mathit") - return "italic"; - if (a === "boldsymbol") - return e.type === "textord" ? "bold" : "bold-italic"; - if (a === "mathbf") - return "bold"; - if (a === "mathbb") - return "double-struck"; - if (a === "mathsfit") - return "sans-serif-italic"; - if (a === "mathfrak") - return "fraktur"; - if (a === "mathscr" || a === "mathcal") - return "script"; - if (a === "mathsf") - return "sans-serif"; - if (a === "mathtt") - return "monospace"; - var l = e.text; - if (Aa.has(l)) + var a = r.mode, i = Ua[t]; + if (i) + return typeof i == "function" ? i(r) : i; + var s = r.text; + if (Pa.has(s)) return null; - if ($[n][l]) { - var u = $[n][l].replace; - u && (l = u); + if (W[a][s]) { + var u = W[a][s].replace; + u && (s = u); } - var h = bt[a].fontName; - return Ct(l, h, n) ? bt[a].variant : null; + var h = kt[t].fontName; + return Nt(s, h, a) ? kt[t].variant : null; }; function rt(r) { if (!r) return !1; if (r.type === "mi" && r.children.length === 1) { var e = r.children[0]; - return e instanceof _ && e.text === "."; + return e instanceof e0 && 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 _ && t.text === ","; + return t instanceof e0 && t.text === ","; } else return !1; } -var p0 = function(e, t, a) { +var v0 = function(e, t, a) { if (e.length === 1) { - var n = Y(e[0], t); - return a && n instanceof z && n.type === "mo" && (n.setAttribute("lspace", "0em"), n.setAttribute("rspace", "0em")), [n]; + var i = $(e[0], t); + return a && i instanceof z && i.type === "mo" && (i.setAttribute("lspace", "0em"), i.setAttribute("rspace", "0em")), [i]; } - for (var l = [], u, h = 0; h < e.length; h++) { - var c = Y(e[h], t); + for (var s = [], u, h = 0; h < e.length; h++) { + var c = $(e[h], t); if (c instanceof z && u instanceof z) { if (c.type === "mtext" && u.type === "mtext" && c.getAttribute("mathvariant") === u.getAttribute("mathvariant")) { u.children.push(...c.children); @@ -4742,43 +4774,41 @@ var p0 = function(e, t, a) { u.children.push(...c.children); continue; } else if (c.type === "mn" && rt(u)) - c.children = [...u.children, ...c.children], l.pop(); + c.children = [...u.children, ...c.children], s.pop(); else if ((c.type === "msup" || c.type === "msub") && c.children.length >= 1 && (u.type === "mn" || rt(u))) { var v = c.children[0]; - v instanceof z && v.type === "mn" && (v.children = [...u.children, ...v.children], l.pop()); + v instanceof z && v.type === "mn" && (v.children = [...u.children, ...v.children], s.pop()); } else if (u.type === "mi" && u.children.length === 1) { - var g = u.children[0]; - if (g instanceof _ && g.text === "̸" && (c.type === "mo" || c.type === "mi" || c.type === "mn")) { + var p = u.children[0]; + if (p instanceof e0 && p.text === "̸" && (c.type === "mo" || c.type === "mi" || c.type === "mn")) { var b = c.children[0]; - b instanceof _ && b.text.length > 0 && (b.text = b.text.slice(0, 1) + "̸" + b.text.slice(1), l.pop()); + b instanceof e0 && b.text.length > 0 && (b.text = b.text.slice(0, 1) + "̸" + b.text.slice(1), s.pop()); } } } - l.push(c), u = c; + s.push(c), u = c; } - return l; + return s; }, U0 = function(e, t, a) { - return Rt(p0(e, t, a)); -}, Y = function(e, t) { + return Ot(v0(e, t, a)); +}, $ = function(e, t) { if (!e) return new z("mrow"); - if (Ie[e.type]) { - var a = Ie[e.type](e, t); - return a; - } else - throw new S("Got group of unknown type: '" + e.type + "'"); + if (Ie[e.type]) + return Ie[e.type](e, t); + throw new S("Got group of unknown type: '" + e.type + "'"); }; -function ir(r, e, t, a, n) { - var l = p0(r, t), u; - l.length === 1 && l[0] instanceof z && Ma.has(l[0].type) ? u = l[0] : u = new z("mrow", l); - var h = new z("annotation", [new _(e)]); +function pr(r, e, t, a, i) { + var s = v0(r, t), u; + s.length === 1 && s[0] instanceof z && Ga.has(s[0].type) ? u = s[0] : u = new z("mrow", s); + var h = new z("annotation", [new e0(e)]); h.setAttribute("encoding", "application/x-tex"); var c = new z("semantics", [u, h]), v = new z("math", [c]); v.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"), a && v.setAttribute("display", "block"); - var g = n ? "katex" : "katex-mathml"; - return k([g], [v]); + var p = i ? "katex" : "katex-mathml"; + return k([p], [v]); } -var Ta = [ +var Va = [ // Each element contains [textsize, scriptsize, scriptscriptsize]. // The size mappings are taken from TeX with \normalsize=10pt. [1, 1, 1], @@ -4803,7 +4833,7 @@ var Ta = [ // size10: [20.74, 14.4, 12] \huge [11, 10, 9] // size11: [24.88, 20.74, 17.28] \HUGE -], lr = [ +], gr = [ // fontMetrics.js:getGlobalMetrics also uses size indexes, so if // you change size indexes, change that function. 0.5, @@ -4817,12 +4847,12 @@ var Ta = [ 1.728, 2.074, 2.488 -], sr = function(e, t) { - return t.size < 2 ? e : Ta[e - 1][t.size - 1]; +], br = function(e, t) { + return t.size < 2 ? e : Va[e - 1][t.size - 1]; }; class T0 { constructor(e) { - this.style = e.style, this.color = e.color, this.size = e.size || T0.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 = lr[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0; + 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 || T0.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 = gr[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0; } /** * Returns a new options object with the same properties as "this". Properties @@ -4851,7 +4881,7 @@ class T0 { havingStyle(e) { return this.style === e ? this : this.extend({ style: e, - size: sr(this.textSize, e) + size: br(this.textSize, e) }); } /** @@ -4870,7 +4900,7 @@ class T0 { style: this.style.text(), size: e, textSize: e, - sizeMultiplier: lr[e - 1] + sizeMultiplier: gr[e - 1] }); } /** @@ -4879,7 +4909,7 @@ class T0 { */ havingBaseStyle(e) { e = e || this.style.text(); - var t = sr(T0.BASESIZE, e); + var t = br(T0.BASESIZE, e); return this.size === t && this.textSize === T0.BASESIZE && this.style === e ? this : this.extend({ style: e, size: t @@ -4978,7 +5008,7 @@ class T0 { * Return the font metrics for this size. */ fontMetrics() { - return this._fontMetrics || (this._fontMetrics = ma(this.size)), this._fontMetrics; + return this._fontMetrics || (this._fontMetrics = Ma(this.size)), this._fontMetrics; } /** * Gets the CSS color of the current options object @@ -4988,34 +5018,34 @@ class T0 { } } T0.BASESIZE = 6; -var Xr = function(e) { +var t1 = function(e) { return new T0({ style: e.displayMode ? N.DISPLAY : N.TEXT, maxSize: e.maxSize, minRuleThickness: e.minRuleThickness }); -}, Yr = function(e, t) { +}, r1 = 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; -}, Ba = function(e, t, a) { - var n = Xr(a), l; +}, Xa = function(e, t, a) { + var i = t1(a), s; if (a.output === "mathml") - return ir(e, t, n, a.displayMode, !0); + return pr(e, t, i, a.displayMode, !0); if (a.output === "html") { - var u = kt(e, n); - l = k(["katex"], [u]); + var u = Mt(e, i); + s = k(["katex"], [u]); } else { - var h = ir(e, t, n, a.displayMode, !1), c = kt(e, n); - l = k(["katex"], [h, c]); - } - return Yr(l, a); -}, Da = function(e, t, a) { - var n = Xr(a), l = kt(e, n), u = k(["katex"], [l]); - return Yr(u, a); -}, Ca = { + var h = pr(e, t, i, a.displayMode, !1), c = Mt(e, i); + s = k(["katex"], [h, c]); + } + return r1(s, a); +}, Ya = function(e, t, a) { + var i = t1(a), s = Mt(e, i), u = k(["katex"], [s]); + return r1(u, a); +}, $a = { widehat: "^", widecheck: "ˇ", widetilde: "~", @@ -5063,9 +5093,9 @@ var Xr = function(e) { "\\cdleftarrow": "←", "\\cdlongequal": "=" }, Le = function(e) { - var t = new z("mo", [new _(Ca[e.replace(/^\\/, "")])]); + var t = new z("mo", [new e0($a[e.replace(/^\\/, "")])]); return t.setAttribute("stretchy", "true"), t; -}, qa = { +}, Wa = { // path(s), minWidth, height, align overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"], @@ -5114,73 +5144,77 @@ var Xr = function(e) { xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901], xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716], xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716] -}, Ea = /* @__PURE__ */ new Set(["widehat", "widecheck", "widetilde", "utilde"]), Pe = function(e, t) { +}, ja = /* @__PURE__ */ new Set(["widehat", "widecheck", "widetilde", "utilde"]), Pe = function(e, t) { function a() { var h = 4e5, c = e.label.slice(1); - if (Ea.has(c)) { - var v = e, g = v.base.type === "ordgroup" ? v.base.body.length : 1, b, y, x; - if (g > 5) - c === "widehat" || c === "widecheck" ? (b = 420, h = 2364, x = 0.42, y = c + "4") : (b = 312, h = 2340, x = 0.34, y = "tilde4"); + if (ja.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 = 0.42, b = c + "4") : (p = 312, h = 2340, x = 0.34, b = "tilde4"); else { - var M = [1, 1, 2, 2, 3, 3][g]; - c === "widehat" || c === "widecheck" ? (h = [0, 1062, 2364, 2364, 2364][M], b = [0, 239, 300, 360, 420][M], x = [0, 0.24, 0.3, 0.3, 0.36, 0.42][M], y = c + M) : (h = [0, 600, 1033, 2339, 2340][M], b = [0, 260, 286, 306, 312][M], x = [0, 0.26, 0.286, 0.3, 0.306, 0.34][M], y = "tilde" + M); + 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, 0.24, 0.3, 0.3, 0.36, 0.42][y], b = c + y) : (h = [0, 600, 1033, 2339, 2340][y], p = [0, 260, 286, 306, 312][y], x = [0, 0.26, 0.286, 0.3, 0.306, 0.34][y], b = "tilde" + y); } - var T = new P0(y), C = new D0([T], { + var T = new P0(b), M = new C0([T], { width: "100%", height: A(x), - viewBox: "0 0 " + h + " " + b, + viewBox: "0 0 " + h + " " + p, preserveAspectRatio: "none" }); return { - span: G0([], [C], t), + span: G0([], [M], t), minWidth: 0, height: x }; } else { - var q = [], I = qa[c], [O, F, V] = I, L = V / 1e3, P = O.length, W, X; + var q = [], C = Wa[c]; + if (!C) + throw new Error('No SVG data for "' + c + '".'); + var [R, F, L] = C, O = L / 1e3, P = R.length, G, Y; if (P === 1) { - var h0 = I[3]; - W = ["hide-tail"], X = [h0]; + 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) - W = ["halfarrow-left", "halfarrow-right"], X = ["xMinYMin", "xMaxYMin"]; + G = ["halfarrow-left", "halfarrow-right"], Y = ["xMinYMin", "xMaxYMin"]; else if (P === 3) - W = ["brace-left", "brace-center", "brace-right"], X = ["xMinYMin", "xMidYMin", "xMaxYMin"]; + 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 i0 = 0; i0 < P; i0++) { - var t0 = new P0(O[i0]), X0 = new D0([t0], { + for (var U = 0; U < P; U++) { + var o0 = new P0(R[U]), m0 = new C0([o0], { width: "400em", - height: A(L), - viewBox: "0 0 " + h + " " + V, - preserveAspectRatio: X[i0] + " slice" - }), m0 = G0([W[i0]], [X0], t); + height: A(O), + viewBox: "0 0 " + h + " " + L, + preserveAspectRatio: Y[U] + " slice" + }), Q = G0([G[U]], [m0], t); if (P === 1) return { - span: m0, + span: Q, minWidth: F, - height: L + height: O }; - m0.style.height = A(L), q.push(m0); + Q.style.height = A(O), q.push(Q); } return { span: k(["stretchy"], q, t), minWidth: F, - height: L + height: O }; } } var { - span: n, - minWidth: l, + span: i, + minWidth: s, height: u } = a(); - return n.height = u, n.style.height = A(u), l > 0 && (n.style.minWidth = A(l)), n; -}, Ra = function(e, t, a, n, l) { - var u, h = e.height + e.depth + a + n; + return i.height = u, i.style.height = A(u), s > 0 && (i.style.minWidth = A(s)), i; +}, Za = 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], [], l), t === "fbox") { - var c = l.color && l.getColor(); + if (u = k(["stretchy", t], [], s), t === "fbox") { + var c = s.color && s.getColor(); c && (u.style.borderColor = c); } } else { @@ -5198,14 +5232,30 @@ var Xr = function(e) { y2: "0", "stroke-width": "0.046em" })); - var g = new D0(v, { + var p = new C0(v, { width: "100%", height: A(h) }); - u = G0([], [g], l); + u = G0([], [p], s); } return u.height = h, u.style.height = A(h), u; +}, Ka = { + bin: 1, + close: 1, + inner: 1, + open: 1, + punct: 1, + rel: 1 +}, Ja = { + "accent-token": 1, + mathord: 1, + "op-token": 1, + spacing: 1, + textord: 1 }; +function Qa(r) { + return r in Ka; +} function H(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))); @@ -5218,31 +5268,31 @@ function Ge(r) { return e; } function Ue(r) { - return r && (r.type === "atom" || da.hasOwnProperty(r.type)) ? r : null; + return r && (r.type === "atom" || Ja.hasOwnProperty(r.type)) ? r : null; } -var Wr = (r) => { - if (r instanceof f0) +var a1 = (r) => { + if (r instanceof d0) return r; - if (oa(r) && r.children.length === 1) - return Wr(r.children[0]); -}, Nt = (r, e) => { - var t, a, n; - r && r.type === "supsub" ? (a = H(r.base, "accent"), t = a.base, r.base = t, n = ua(U(r, e)), r.base = a) : (a = H(r, "accent"), t = a.base); - var l = U(t, e.havingCrampedStyle()), u = a.isShifty && C0(t), h = 0; + if (za(r) && r.children.length === 1) + return a1(r.children[0]); +}, Pt = (r, e) => { + var t, a, i; + r && r.type === "supsub" ? (a = H(r.base, "accent"), t = a.base, r.base = t, i = Sa(X(r, e)), r.base = a) : (a = H(r, "accent"), t = a.base); + var s = X(t, e.havingCrampedStyle()), u = a.isShifty && D0(t), h = 0; if (u) { var c, v; - h = (c = (v = Wr(l)) == null ? void 0 : v.skew) != null ? c : 0; + h = (c = (v = a1(s)) == null ? void 0 : v.skew) != null ? c : 0; } - var g = a.label === "\\c", b = g ? l.height + l.depth : Math.min(l.height, e.fontMetrics().xHeight), y; + var p = a.label === "\\c", b = p ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), x; if (a.isStretchy) - y = Pe(a, e), y = G({ + x = Pe(a, e), x = V({ positionType: "firstBaseline", children: [{ type: "elem", - elem: l + elem: s }, { type: "elem", - elem: y, + elem: x, wrapperClasses: ["svg-align"], wrapperStyle: h > 0 ? { width: "calc(100% - " + A(2 * h) + ")", @@ -5251,34 +5301,34 @@ var Wr = (r) => { }] }); else { - var x, M; - a.label === "\\vec" ? (x = Lr("vec", e), M = Fr.vec[1]) : (x = Fe({ + var y, T; + a.label === "\\vec" ? (y = Kr("vec", e), T = Zr.vec[1]) : (y = Oe({ mode: a.mode, text: a.label - }, e, "textord"), x = sa(x), x.italic = 0, M = x.width, g && (b += x.depth)), y = k(["accent-body"], [x]); - var T = a.label === "\\textcircled"; - T && (y.classes.push("accent-full"), b = l.height); - var C = h; - T || (C -= M / 2), y.style.left = A(C), a.label === "\\textcircled" && (y.style.top = ".2em"), y = G({ + }, e, "textord"), y = ka(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: l + elem: s }, { type: "kern", size: -b }, { type: "elem", - elem: y + elem: x }] }); } - var q = k(["mord", "accent"], [y], e); - return n ? (n.children[0] = q, n.height = Math.max(q.height, n.height), n.classes[0] = "mord", n) : q; -}, $r = (r, e) => { - var t = r.isStretchy ? Le(r.label) : new z("mo", [b0(r.label, r.mode)]), a = new z("mover", [Y(r.base, e), t]); + 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; +}, i1 = (r, e) => { + var t = r.isStretchy ? Le(r.label) : new z("mo", [g0(r.label, r.mode)]), a = new z("mover", [$(r.base, e), t]); return a.setAttribute("accent", "true"), a; -}, Ia = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((r) => "\\" + r).join("|")); +}, _a = 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"], @@ -5286,18 +5336,18 @@ B({ numArgs: 1 }, handler: (r, e) => { - var t = Ne(e[0]), a = !Ia.test(r.funcName), n = !a || r.funcName === "\\widehat" || r.funcName === "\\widetilde" || r.funcName === "\\widecheck"; + var t = Ne(e[0]), a = !_a.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: n, + isShifty: i, base: t }; }, - htmlBuilder: Nt, - mathmlBuilder: $r + htmlBuilder: Pt, + mathmlBuilder: i1 }); B({ type: "accent", @@ -5320,8 +5370,8 @@ B({ base: t }; }, - htmlBuilder: Nt, - mathmlBuilder: $r + htmlBuilder: Pt, + mathmlBuilder: i1 }); B({ type: "accentUnder", @@ -5333,16 +5383,16 @@ B({ var { parser: t, funcName: a - } = r, n = e[0]; + } = r, i = e[0]; return { type: "accentUnder", mode: t.mode, label: a, - base: n + base: i }; }, htmlBuilder: (r, e) => { - var t = U(r.base, e), a = Pe(r, e), n = r.label === "\\utilde" ? 0.12 : 0, l = G({ + var t = X(r.base, e), a = Pe(r, e), i = r.label === "\\utilde" ? 0.12 : 0, s = V({ positionType: "top", positionData: t.height, children: [{ @@ -5351,16 +5401,16 @@ B({ wrapperClasses: ["svg-align"] }, { type: "kern", - size: n + size: i }, { type: "elem", elem: t }] }); - return k(["mord", "accentunder"], [l], e); + return k(["mord", "accentunder"], [s], e); }, mathmlBuilder: (r, e) => { - var t = Le(r.label), a = new z("munder", [Y(r.base, e), t]); + var t = Le(r.label), a = new z("munder", [$(r.base, e), t]); return a.setAttribute("accentunder", "true"), a; } }); @@ -5407,36 +5457,37 @@ B({ handler(r, e, t) { var { parser: a, - funcName: n + funcName: i } = r; return { type: "xArrow", mode: a.mode, - label: n, + label: i, body: e[0], below: t[0] }; }, htmlBuilder(r, e) { - var t = e.style, a = e.havingStyle(t.sup()), n = re(U(r.body, a, e), e), l = r.label.slice(0, 2) === "\\x" ? "x" : "cd"; - n.classes.push(l + "-arrow-pad"); + var t = e.style, a = e.havingStyle(t.sup()), i = re(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 = re(U(r.below, a, e), e), u.classes.push(l + "-arrow-pad")); + r.below && (a = e.havingStyle(t.sub()), u = re(X(r.below, a, e), e), u.classes.push(s + "-arrow-pad")); var h = Pe(r, e), c = -e.fontMetrics().axisHeight + 0.5 * h.height, v = -e.fontMetrics().axisHeight - 0.5 * h.height - 0.111; - (n.depth > 0.25 || r.label === "\\xleftequilibrium") && (v -= n.depth); - var g; + (i.depth > 0.25 || r.label === "\\xleftequilibrium") && (v -= i.depth); + var p; if (u) { var b = -e.fontMetrics().axisHeight + u.height + 0.5 * h.height + 0.111; - g = G({ + p = V({ positionType: "individualShift", children: [{ type: "elem", - elem: n, + elem: i, shift: v }, { type: "elem", elem: h, - shift: c + shift: c, + wrapperClasses: ["svg-align"] }, { type: "elem", elem: u, @@ -5444,45 +5495,46 @@ B({ }] }); } else - g = G({ + p = V({ positionType: "individualShift", children: [{ type: "elem", - elem: n, + elem: i, shift: v }, { type: "elem", elem: h, - shift: c + shift: c, + wrapperClasses: ["svg-align"] }] }); - return g.children[0].children[0].children[1].classes.push("svg-align"), k(["mrel", "x-arrow"], [g], e); + return k(["mrel", "x-arrow"], [p], e); }, mathmlBuilder(r, e) { var t = Le(r.label); t.setAttribute("minsize", r.label.charAt(0) === "x" ? "1.75em" : "3.0em"); var a; if (r.body) { - var n = Me(Y(r.body, e)); + var i = Me($(r.body, e)); if (r.below) { - var l = Me(Y(r.below, e)); - a = new z("munderover", [t, l, n]); + var s = Me($(r.below, e)); + a = new z("munderover", [t, s, i]); } else - a = new z("mover", [t, n]); + a = new z("mover", [t, i]); } else if (r.below) { - var u = Me(Y(r.below, e)); + var u = Me($(r.below, e)); a = new z("munder", [t, u]); } else a = Me(), a = new z("mover", [t, a]); return a; } }); -function jr(r, e) { +function n1(r, e) { var t = a0(r.body, e, !0); return k([r.mclass], t, e); } -function Zr(r, e) { - var t, a = p0(r.body, e); +function s1(r, e) { + var t, a = v0(r.body, e); return r.mclass === "minner" ? t = new z("mpadded", a) : r.mclass === "mord" ? r.isCharacterBox ? (t = a[0], t.type = "mi") : t = new z("mi", a) : (r.isCharacterBox ? (t = a[0], t.type = "mo") : t = new z("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({ @@ -5496,18 +5548,18 @@ B({ var { parser: t, funcName: a - } = r, n = e[0]; + } = r, i = e[0]; return { type: "mclass", mode: t.mode, mclass: "m" + a.slice(5), // TODO(kevinb): don't prefix with 'm' - body: Q(n), - isCharacterBox: C0(n) + body: _(i), + isCharacterBox: D0(i) }; }, - htmlBuilder: jr, - mathmlBuilder: Zr + htmlBuilder: n1, + mathmlBuilder: s1 }); var Ve = (r) => { var e = r.type === "ordgroup" && r.body.length ? r.body[0] : r; @@ -5527,8 +5579,8 @@ B({ type: "mclass", mode: t.mode, mclass: Ve(e[0]), - body: Q(e[1]), - isCharacterBox: C0(e[1]) + body: _(e[1]), + isCharacterBox: D0(e[1]) }; } }); @@ -5542,34 +5594,34 @@ B({ var { parser: t, funcName: a - } = r, n = e[1], l = e[0], u; - a !== "\\stackrel" ? u = Ve(n) : u = "mrel"; + } = r, i = e[1], s = e[0], u; + a !== "\\stackrel" ? u = Ve(i) : u = "mrel"; var h = { type: "op", - mode: n.mode, + mode: i.mode, limits: !0, alwaysHandleSupSub: !0, parentIsSupSub: !1, symbol: !1, suppressBaseShift: a !== "\\stackrel", - body: Q(n) + body: _(i) }, c = { type: "supsub", - mode: l.mode, + mode: s.mode, base: h, - sup: a === "\\underset" ? null : l, - sub: a === "\\underset" ? l : null + sup: a === "\\underset" ? null : s, + sub: a === "\\underset" ? s : null }; return { type: "mclass", mode: t.mode, mclass: u, body: [c], - isCharacterBox: C0(c) + isCharacterBox: D0(c) }; }, - htmlBuilder: jr, - mathmlBuilder: Zr + htmlBuilder: n1, + mathmlBuilder: s1 }); B({ type: "pmb", @@ -5586,7 +5638,7 @@ B({ type: "pmb", mode: t.mode, mclass: Ve(e[0]), - body: Q(e[0]) + body: _(e[0]) }; }, htmlBuilder(r, e) { @@ -5594,11 +5646,11 @@ B({ return a.style.textShadow = "0.02em 0.01em 0.04px", a; }, mathmlBuilder(r, e) { - var t = p0(r.body, e), a = new z("mstyle", t); + var t = v0(r.body, e), a = new z("mstyle", t); return a.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), a; } }); -var Na = { +var e4 = { ">": "\\\\cdrightarrow", "<": "\\\\cdleftarrow", "=": "\\\\cdlongequal", @@ -5606,29 +5658,30 @@ var Na = { V: "\\downarrow", "|": "\\Vert", ".": "no arrow" -}, ur = () => ({ +}, yr = () => ({ type: "styling", body: [], mode: "math", - style: "display" -}), or = (r) => r.type === "textord" && r.text === "@", Oa = (r, e) => (r.type === "mathord" || r.type === "atom") && r.text === e; -function Ha(r, e, t) { - var a = Na[r]; + style: "display", + resetFont: !0 +}), xr = (r) => r.type === "textord" && r.text === "@", t4 = (r, e) => (r.type === "mathord" || r.type === "atom") && r.text === e; +function r4(r, e, t) { + var a = e4[r]; switch (a) { case "\\\\cdrightarrow": case "\\\\cdleftarrow": return t.callFunction(a, [e[0]], [e[1]]); case "\\uparrow": case "\\downarrow": { - var n = t.callFunction("\\\\cdleft", [e[0]], []), l = { + var i = t.callFunction("\\\\cdleft", [e[0]], []), s = { type: "atom", text: a, mode: "math", family: "rel" - }, u = t.callFunction("\\Big", [l], []), h = t.callFunction("\\\\cdright", [e[1]], []), c = { + }, u = t.callFunction("\\Big", [s], []), h = t.callFunction("\\\\cdright", [e[1]], []), c = { type: "ordgroup", mode: "math", - body: [n, u, h] + body: [i, u, h] }; return t.callFunction("\\\\cdparent", [c], []); } @@ -5650,7 +5703,7 @@ function Ha(r, e, t) { }; } } -function Fa(r) { +function a4(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(); @@ -5663,50 +5716,51 @@ function Fa(r) { } else throw new S("Expected \\\\ or \\cr or \\end", r.nextToken); } - for (var a = [], n = [a], l = 0; l < e.length; l++) { - for (var u = e[l], h = ur(), c = 0; c < u.length; c++) - if (!or(u[c])) + for (var a = [], i = [a], s = 0; s < e.length; s++) { + for (var u = e[s], h = yr(), c = 0; c < u.length; c++) + if (!xr(u[c])) h.body.push(u[c]); else { a.push(h), c += 1; - var v = Ge(u[c]).text, g = new Array(2); - if (g[0] = { + var v = Ge(u[c]).text, p = new Array(2); + if (p[0] = { type: "ordgroup", mode: "math", body: [] - }, g[1] = { + }, p[1] = { type: "ordgroup", mode: "math", body: [] }, !"=|.".includes(v)) if ("<>AV".includes(v)) for (var b = 0; b < 2; b++) { - for (var y = !0, x = c + 1; x < u.length; x++) { - if (Oa(u[x], v)) { - y = !1, c = x; + for (var x = !0, y = c + 1; y < u.length; y++) { + if (t4(u[y], v)) { + x = !1, c = y; break; } - if (or(u[x])) - throw new S("Missing a " + v + " character to complete a CD arrow.", u[x]); - g[b].body.push(u[x]); + if (xr(u[y])) + throw new S("Missing a " + v + " character to complete a CD arrow.", u[y]); + p[b].body.push(u[y]); } - if (y) + if (x) throw new S("Missing a " + v + " character to complete a CD arrow.", u[c]); } else throw new S('Expected one of "<>AV=|." after @', u[c]); - var M = Ha(v, g, r), T = { + var T = r4(v, p, r), M = { type: "styling", - body: [M], + body: [T], mode: "math", - style: "display" + style: "display", // CD is always displaystyle. + resetFont: !0 }; - a.push(T), h = ur(); + a.push(M), h = yr(); } - l % 2 === 0 ? a.push(h) : a.shift(), a = [], n.push(a); + s % 2 === 0 ? a.push(h) : a.shift(), a = [], i.push(a); } r.gullet.endGroup(), r.gullet.endGroup(); - var C = new Array(n[0].length).fill({ + var q = new Array(i[0].length).fill({ type: "align", align: "c", pregap: 0.25, @@ -5717,13 +5771,13 @@ function Fa(r) { return { type: "array", mode: "math", - body: n, + body: i, arraystretch: 1, addJot: !0, rowGaps: [null], - cols: C, + cols: q, colSeparationType: "CD", - hLinesBeforeRow: new Array(n.length + 1).fill([]) + hLinesBeforeRow: new Array(i.length + 1).fill([]) }; } B({ @@ -5745,11 +5799,11 @@ B({ }; }, htmlBuilder(r, e) { - var t = e.havingStyle(e.style.sup()), a = re(U(r.label, t, e), e); + var t = e.havingStyle(e.style.sup()), a = re(X(r.label, t, e), e); return a.classes.push("cd-label-" + r.side), a.style.bottom = A(0.8 - a.depth), a.height = 0, a.depth = 0, a; }, mathmlBuilder(r, e) { - var t = new z("mrow", [Y(r.label, e)]); + var t = new z("mrow", [$(r.label, e)]); return t = new z("mpadded", [t]), t.setAttribute("width", "0"), r.side === "left" && t.setAttribute("lspace", "-1width"), t.setAttribute("voffset", "0.7em"), t = new z("mstyle", [t]), t.setAttribute("displaystyle", "false"), t.setAttribute("scriptlevel", "1"), t; } }); @@ -5770,11 +5824,11 @@ B({ }; }, htmlBuilder(r, e) { - var t = re(U(r.fragment, e), e); + var t = re(X(r.fragment, e), e); return t.classes.push("cd-vert-arrow"), t; }, mathmlBuilder(r, e) { - return new z("mrow", [Y(r.fragment, e)]); + return new z("mrow", [$(r.fragment, e)]); } }); B({ @@ -5787,15 +5841,15 @@ B({ handler(r, e) { for (var { parser: t - } = r, a = H(e[0], "ordgroup"), n = a.body, l = "", u = 0; u < n.length; u++) { - var h = H(n[u], "textord"); - l += h.text; + } = r, a = H(e[0], "ordgroup"), i = a.body, s = "", u = 0; u < i.length; u++) { + var h = H(i[u], "textord"); + s += h.text; } - var c = parseInt(l), v; + var c = parseInt(s), v; if (isNaN(c)) - throw new S("\\@char has non-numeric argument " + l); + throw new S("\\@char has non-numeric argument " + s); if (c < 0 || c >= 1114111) - throw new S("\\@char with invalid code point " + l); + throw new S("\\@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, @@ -5803,11 +5857,11 @@ B({ }; } }); -var Kr = (r, e) => { +var l1 = (r, e) => { var t = a0(r.body, e.withColor(r.color), !1); return E0(t); -}, Jr = (r, e) => { - var t = p0(r.body, e.withColor(r.color)), a = new z("mstyle", t); +}, u1 = (r, e) => { + var t = v0(r.body, e.withColor(r.color)), a = new z("mstyle", t); return a.setAttribute("mathcolor", r.color), a; }; B({ @@ -5821,16 +5875,16 @@ B({ handler(r, e) { var { parser: t - } = r, a = H(e[0], "color-token").color, n = e[1]; + } = r, a = H(e[0], "color-token").color, i = e[1]; return { type: "color", mode: t.mode, color: a, - body: Q(n) + body: _(i) }; }, - htmlBuilder: Kr, - mathmlBuilder: Jr + htmlBuilder: l1, + mathmlBuilder: u1 }); B({ type: "color", @@ -5844,18 +5898,18 @@ B({ var { parser: t, breakOnTokenText: a - } = r, n = H(e[0], "color-token").color; - t.gullet.macros.set("\\current@color", n); - var l = t.parseExpression(!0, a); + } = r, i = H(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: n, - body: l + color: i, + body: s }; }, - htmlBuilder: Kr, - mathmlBuilder: Jr + htmlBuilder: l1, + mathmlBuilder: u1 }); B({ type: "cr", @@ -5868,12 +5922,12 @@ B({ handler(r, e, t) { var { parser: a - } = r, n = a.gullet.future().text === "[" ? a.parseSizeGroup(!0) : null, l = !a.settings.displayMode || !a.settings.useStrictBehavior("newLineInDisplayMode", "In LaTeX, \\\\ or \\newline does nothing in display mode"); + } = 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: l, - size: n && H(n, "size").value + newLine: s, + size: i && H(i, "size").value }; }, // The following builders are called only at the top level, @@ -5887,7 +5941,7 @@ B({ return r.newLine && (t.setAttribute("linebreak", "newline"), r.size && t.setAttribute("height", A(K(r.size, e)))), t; } }); -var St = { +var Tt = { "\\global": "\\global", "\\long": "\\\\globallong", "\\\\globallong": "\\\\globallong", @@ -5897,22 +5951,22 @@ var St = { "\\xdef": "\\xdef", "\\let": "\\\\globallet", "\\futurelet": "\\\\globalfuture" -}, Qr = (r) => { +}, o1 = (r) => { var e = r.text; if (/^(?:[\\{}$&#^_]|EOF)$/.test(e)) throw new S("Expected a control sequence", r); return e; -}, La = (r) => { +}, i4 = (r) => { var e = r.gullet.popToken(); return e.text === "=" && (e = r.gullet.popToken(), e.text === " " && (e = r.gullet.popToken())), e; -}, _r = (r, e, t, a) => { - var n = r.gullet.macros.get(t.text); - n == null && (t.noexpand = !0, n = { +}, h1 = (r, e, t, a) => { + var i = r.gullet.macros.get(t.text); + i == null && (t.noexpand = !0, i = { tokens: [t], numArgs: 0, // reproduce the same behavior in expansion unexpandable: !r.gullet.isExpandable(t.text) - }), r.gullet.macros.set(e, n, a); + }), r.gullet.macros.set(e, i, a); }; B({ type: "internal", @@ -5933,8 +5987,8 @@ B({ } = r; e.consumeSpaces(); var a = e.fetch(); - if (St[a.text]) - return (t === "\\global" || t === "\\\\globallong") && (a.text = St[a.text]), H(e.parseFunction(), "internal"); + if (Tt[a.text]) + return (t === "\\global" || t === "\\\\globallong") && (a.text = Tt[a.text]), H(e.parseFunction(), "internal"); throw new S("Invalid token after macro prefix", a); } }); @@ -5950,33 +6004,33 @@ B({ var { parser: e, funcName: t - } = r, a = e.gullet.popToken(), n = a.text; - if (/^(?:[\\{}$&#^_]|EOF)$/.test(n)) + } = r, a = e.gullet.popToken(), i = a.text; + if (/^(?:[\\{}$&#^_]|EOF)$/.test(i)) throw new S("Expected a control sequence", a); - for (var l = 0, u, h = [[]]; e.gullet.future().text !== "{"; ) + 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[l].push("{"); + u = e.gullet.future(), h[s].push("{"); break; } if (a = e.gullet.popToken(), !/^[1-9]$/.test(a.text)) throw new S('Invalid argument number "' + a.text + '"'); - if (parseInt(a.text) !== l + 1) + if (parseInt(a.text) !== s + 1) throw new S('Argument number "' + a.text + '" out of order'); - l++, h.push([]); + s++, h.push([]); } else { if (a.text === "EOF") throw new S("Expected a macro definition"); - h[l].push(a.text); + 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(n, { + return u && c.unshift(u), (t === "\\edef" || t === "\\xdef") && (c = e.gullet.expandTokens(c), c.reverse()), e.gullet.macros.set(i, { tokens: c, - numArgs: l, + numArgs: s, delimiters: h - }, t === St[t]), { + }, t === Tt[t]), { type: "internal", mode: e.mode }; @@ -5998,10 +6052,10 @@ B({ var { parser: e, funcName: t - } = r, a = Qr(e.gullet.popToken()); + } = r, a = o1(e.gullet.popToken()); e.gullet.consumeSpaces(); - var n = La(e); - return _r(e, a, n, t === "\\\\globallet"), { + var i = i4(e); + return h1(e, a, i, t === "\\\\globallet"), { type: "internal", mode: e.mode }; @@ -6023,122 +6077,122 @@ B({ var { parser: e, funcName: t - } = r, a = Qr(e.gullet.popToken()), n = e.gullet.popToken(), l = e.gullet.popToken(); - return _r(e, a, l, t === "\\\\globalfuture"), e.gullet.pushToken(l), e.gullet.pushToken(n), { + } = r, a = o1(e.gullet.popToken()), i = e.gullet.popToken(), s = e.gullet.popToken(); + return h1(e, a, s, t === "\\\\globalfuture"), e.gullet.pushToken(s), e.gullet.pushToken(i), { type: "internal", mode: e.mode }; } }); -var ue = function(e, t, a) { - var n = $.math[e] && $.math[e].replace, l = Ct(n || e, t, a); - if (!l) +var oe = function(e, t, a) { + var i = W.math[e] && W.math[e].replace, s = Nt(i || e, t, a); + if (!s) throw new Error("Unsupported symbol " + e + " and font size " + t + "."); - return l; -}, Ot = function(e, t, a, n) { - var l = a.havingBaseStyle(t), u = k(n.concat(l.sizingClasses(a)), [e], a), h = l.sizeMultiplier / a.sizeMultiplier; - return u.height *= h, u.depth *= h, u.maxFontSize = l.sizeMultiplier, u; -}, e1 = function(e, t, a) { - var n = t.havingBaseStyle(a), l = (1 - t.sizeMultiplier / n.sizeMultiplier) * t.fontMetrics().axisHeight; - e.classes.push("delimcenter"), e.style.top = A(l), e.height -= l, e.depth += l; -}, Pa = function(e, t, a, n, l, u) { - var h = s0(e, "Main-Regular", l, n), c = Ot(h, t, n, u); - return e1(c, n, t), c; -}, Ga = function(e, t, a, n) { - return s0(e, "Size" + t + "-Regular", a, n); -}, t1 = function(e, t, a, n, l, u) { - var h = Ga(e, t, l, n), c = Ot(k(["delimsizing", "size" + t], [h], n), N.TEXT, n, u); - return a && e1(c, n, N.TEXT), c; + return s; +}, Gt = 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; +}, m1 = 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; +}, n4 = function(e, t, a, i, s, u) { + var h = s0(e, "Main-Regular", s, i), c = Gt(h, t, i, u); + return m1(c, i, t), c; +}, s4 = function(e, t, a, i) { + return s0(e, "Size" + t + "-Regular", a, i); +}, c1 = function(e, t, a, i, s, u) { + var h = s4(e, t, s, i), c = Gt(k(["delimsizing", "size" + t], [h], i), N.TEXT, i, u); + return a && m1(c, i, N.TEXT), c; }, at = function(e, t, a) { - var n; - t === "Size1-Regular" ? n = "delim-size1" : n = "delim-size4"; - var l = k(["delimsizinginner", n], [k([], [s0(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: l + elem: s }; -}, nt = function(e, t, a) { - var n = k0["Size4-Regular"][e.charCodeAt(0)] ? k0["Size4-Regular"][e.charCodeAt(0)][4] : k0["Size1-Regular"][e.charCodeAt(0)][4], l = new P0("inner", ta(e, Math.round(1e3 * t))), u = new D0([l], { - width: A(n), +}, it = function(e, t, a) { + var i = k0["Size4-Regular"][e.charCodeAt(0)] ? k0["Size4-Regular"][e.charCodeAt(0)][4] : k0["Size1-Regular"][e.charCodeAt(0)][4], s = new P0("inner", va(e, Math.round(1e3 * t))), u = new C0([s], { + width: A(i), height: A(t), // Override CSS rule `.katex svg { width: 100% }` - style: "width:" + A(n), - viewBox: "0 0 " + 1e3 * n + " " + Math.round(1e3 * t), + style: "width:" + A(i), + viewBox: "0 0 " + 1e3 * i + " " + Math.round(1e3 * t), preserveAspectRatio: "xMinYMin" }), h = G0([], [u], a); - return h.height = t, h.style.height = A(t), h.style.width = A(n), { + return h.height = t, h.style.height = A(t), h.style.width = A(i), { type: "elem", elem: h }; -}, zt = 8e-3, Te = { +}, Bt = 8e-3, Te = { type: "kern", - size: -1 * zt -}, Ua = /* @__PURE__ */ new Set(["|", "\\lvert", "\\rvert", "\\vert"]), Va = /* @__PURE__ */ new Set(["\\|", "\\lVert", "\\rVert", "\\Vert"]), r1 = function(e, t, a, n, l, u) { - var h, c, v, g, b = "", y = 0; - h = v = g = e, c = null; - var x = "Size1-Regular"; - e === "\\uparrow" ? v = g = "⏐" : e === "\\Uparrow" ? v = g = "‖" : e === "\\downarrow" ? h = v = "⏐" : e === "\\Downarrow" ? h = v = "‖" : e === "\\updownarrow" ? (h = "\\uparrow", v = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (h = "\\Uparrow", v = "‖", g = "\\Downarrow") : Ua.has(e) ? (v = "∣", b = "vert", y = 333) : Va.has(e) ? (v = "∥", b = "doublevert", y = 556) : e === "[" || e === "\\lbrack" ? (h = "⎡", v = "⎢", g = "⎣", x = "Size4-Regular", b = "lbrack", y = 667) : e === "]" || e === "\\rbrack" ? (h = "⎤", v = "⎥", g = "⎦", x = "Size4-Regular", b = "rbrack", y = 667) : e === "\\lfloor" || e === "⌊" ? (v = h = "⎢", g = "⎣", x = "Size4-Regular", b = "lfloor", y = 667) : e === "\\lceil" || e === "⌈" ? (h = "⎡", v = g = "⎢", x = "Size4-Regular", b = "lceil", y = 667) : e === "\\rfloor" || e === "⌋" ? (v = h = "⎥", g = "⎦", x = "Size4-Regular", b = "rfloor", y = 667) : e === "\\rceil" || e === "⌉" ? (h = "⎤", v = g = "⎥", x = "Size4-Regular", b = "rceil", y = 667) : e === "(" || e === "\\lparen" ? (h = "⎛", v = "⎜", g = "⎝", x = "Size4-Regular", b = "lparen", y = 875) : e === ")" || e === "\\rparen" ? (h = "⎞", v = "⎟", g = "⎠", x = "Size4-Regular", b = "rparen", y = 875) : e === "\\{" || e === "\\lbrace" ? (h = "⎧", c = "⎨", g = "⎩", v = "⎪", x = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (h = "⎫", c = "⎬", g = "⎭", v = "⎪", x = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (h = "⎧", g = "⎩", v = "⎪", x = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (h = "⎫", g = "⎭", v = "⎪", x = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (h = "⎧", g = "⎭", v = "⎪", x = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (h = "⎫", g = "⎩", v = "⎪", x = "Size4-Regular"); - var M = ue(h, x, l), T = M.height + M.depth, C = ue(v, x, l), q = C.height + C.depth, I = ue(g, x, l), O = I.height + I.depth, F = 0, V = 1; + size: -1 * Bt +}, l4 = /* @__PURE__ */ new Set(["|", "\\lvert", "\\rvert", "\\vert"]), u4 = /* @__PURE__ */ new Set(["\\|", "\\lVert", "\\rVert", "\\Vert"]), d1 = 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 = "⏐" : e === "\\Uparrow" ? v = p = "‖" : e === "\\downarrow" ? h = v = "⏐" : e === "\\Downarrow" ? h = v = "‖" : e === "\\updownarrow" ? (h = "\\uparrow", v = "⏐", p = "\\downarrow") : e === "\\Updownarrow" ? (h = "\\Uparrow", v = "‖", p = "\\Downarrow") : l4.has(e) ? (v = "∣", b = "vert", x = 333) : u4.has(e) ? (v = "∥", b = "doublevert", x = 556) : e === "[" || e === "\\lbrack" ? (h = "⎡", v = "⎢", p = "⎣", y = "Size4-Regular", b = "lbrack", x = 667) : e === "]" || e === "\\rbrack" ? (h = "⎤", v = "⎥", p = "⎦", y = "Size4-Regular", b = "rbrack", x = 667) : e === "\\lfloor" || e === "⌊" ? (v = h = "⎢", p = "⎣", y = "Size4-Regular", b = "lfloor", x = 667) : e === "\\lceil" || e === "⌈" ? (h = "⎡", v = p = "⎢", y = "Size4-Regular", b = "lceil", x = 667) : e === "\\rfloor" || e === "⌋" ? (v = h = "⎥", p = "⎦", y = "Size4-Regular", b = "rfloor", x = 667) : e === "\\rceil" || e === "⌉" ? (h = "⎤", v = p = "⎥", y = "Size4-Regular", b = "rceil", x = 667) : e === "(" || e === "\\lparen" ? (h = "⎛", v = "⎜", p = "⎝", y = "Size4-Regular", b = "lparen", x = 875) : e === ")" || e === "\\rparen" ? (h = "⎞", v = "⎟", p = "⎠", y = "Size4-Regular", b = "rparen", x = 875) : e === "\\{" || e === "\\lbrace" ? (h = "⎧", c = "⎨", p = "⎩", v = "⎪", y = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (h = "⎫", c = "⎬", p = "⎭", v = "⎪", y = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (h = "⎧", p = "⎩", v = "⎪", y = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (h = "⎫", p = "⎭", v = "⎪", y = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (h = "⎧", p = "⎭", v = "⎪", y = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (h = "⎫", p = "⎩", v = "⎪", y = "Size4-Regular"); + var T = oe(h, y, s), M = T.height + T.depth, q = oe(v, y, s), C = q.height + q.depth, R = oe(p, y, s), F = R.height + R.depth, L = 0, O = 1; if (c !== null) { - var L = ue(c, x, l); - F = L.height + L.depth, V = 2; + var P = oe(c, y, s); + L = P.height + P.depth, O = 2; } - var P = T + O + F, W = Math.max(0, Math.ceil((t - P) / (V * q))), X = P + W * V * q, h0 = n.fontMetrics().axisHeight; - a && (h0 *= n.sizeMultiplier); - var i0 = X / 2 - h0, t0 = []; + var G = M + F + L, Y = Math.max(0, Math.ceil((t - G) / (O * C))), U = G + Y * O * C, o0 = i.fontMetrics().axisHeight; + a && (o0 *= i.sizeMultiplier); + var m0 = U / 2 - o0, Q = []; if (b.length > 0) { - var X0 = X - T - O, m0 = Math.round(X * 1e3), y0 = ra(b, Math.round(X0 * 1e3)), R0 = new P0(b, y0), j0 = A(y / 1e3), Z0 = A(m0 / 1e3), Ze = new D0([R0], { + var le = U - M - F, x0 = Math.round(U * 1e3), b0 = pa(b, Math.round(le * 1e3)), R0 = new P0(b, b0), j0 = A(x / 1e3), Z0 = A(x0 / 1e3), Ze = new C0([R0], { width: j0, height: Z0, - viewBox: "0 0 " + y + " " + m0 - }), I0 = G0([], [Ze], n); - I0.height = m0 / 1e3, I0.style.width = j0, I0.style.height = Z0, t0.push({ + viewBox: "0 0 " + x + " " + x0 + }), I0 = G0([], [Ze], i); + I0.height = x0 / 1e3, I0.style.width = j0, I0.style.height = Z0, Q.push({ type: "elem", elem: I0 }); } else { - if (t0.push(at(g, x, l)), t0.push(Te), c === null) { - var N0 = X - T - O + 2 * zt; - t0.push(nt(v, N0, n)); + if (Q.push(at(p, y, s)), Q.push(Te), c === null) { + var N0 = U - M - F + 2 * Bt; + Q.push(it(v, N0, i)); } else { - var se = (X - T - O - F) / 2 + 2 * zt; - t0.push(nt(v, se, n)), t0.push(Te), t0.push(at(c, x, l)), t0.push(Te), t0.push(nt(v, se, n)); + var ue = (U - M - F - L) / 2 + 2 * Bt; + Q.push(it(v, ue, i)), Q.push(Te), Q.push(at(c, y, s)), Q.push(Te), Q.push(it(v, ue, i)); } - t0.push(Te), t0.push(at(h, x, l)); + Q.push(Te), Q.push(at(h, y, s)); } - var x0 = n.havingBaseStyle(N.TEXT), fe = G({ + var y0 = i.havingBaseStyle(N.TEXT), ve = V({ positionType: "bottom", - positionData: i0, - children: t0 + positionData: m0, + children: Q }); - return Ot(k(["delimsizing", "mult"], [fe], x0), N.TEXT, n, u); -}, it = 80, lt = 0.08, st = function(e, t, a, n, l) { - var u = ea(e, n, a), h = new P0(e, u), c = new D0([h], { + return Gt(k(["delimsizing", "mult"], [ve], y0), N.TEXT, i, u); +}, nt = 80, st = 0.08, lt = function(e, t, a, i, s) { + var u = fa(e, i, a), h = new P0(e, u), c = new C0([h], { // Note: 1000:1 ratio of viewBox to document em width. width: "400em", height: A(t), viewBox: "0 0 400000 " + a, preserveAspectRatio: "xMinYMin slice" }); - return G0(["hide-tail"], [c], l); -}, Xa = function(e, t) { - var a = t.havingBaseSizing(), n = s1("\\surd", e * a.sizeMultiplier, l1, a), l = a.sizeMultiplier, u = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), h, c = 0, v = 0, g = 0, b; - return n.type === "small" ? (g = 1e3 + 1e3 * u + it, e < 1 ? l = 1 : e < 1.4 && (l = 0.7), c = (1 + u + lt) / l, v = (1 + u) / l, h = st("sqrtMain", c, g, u, t), h.style.minWidth = "0.853em", b = 0.833 / l) : n.type === "large" ? (g = (1e3 + it) * oe[n.size], v = (oe[n.size] + u) / l, c = (oe[n.size] + u + lt) / l, h = st("sqrtSize" + n.size, c, g, u, t), h.style.minWidth = "1.02em", b = 1 / l) : (c = e + u + lt, v = e + u, g = Math.floor(1e3 * e + u) + it, h = st("sqrtTall", c, g, u, t), h.style.minWidth = "0.742em", b = 1.056), h.height = v, h.style.height = A(c), { + return G0(["hide-tail"], [c], s); +}, o4 = function(e, t) { + var a = t.havingBaseSizing(), i = b1("\\surd", e * a.sizeMultiplier, g1, 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 + nt, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), c = (1 + u + st) / s, v = (1 + u) / s, h = lt("sqrtMain", c, p, u, t), h.style.minWidth = "0.853em", b = 0.833 / s) : i.type === "large" ? (p = (1e3 + nt) * he[i.size], v = (he[i.size] + u) / s, c = (he[i.size] + u + st) / s, h = lt("sqrtSize" + i.size, c, p, u, t), h.style.minWidth = "1.02em", b = 1 / s) : (c = e + u + st, v = e + u, p = Math.floor(1e3 * e + u) + nt, h = lt("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, // Calculate the actual line width. // This actually should depend on the chosen font -- e.g. \boldmath // should use the thicker surd symbols from e.g. KaTeX_Main-Bold, and // have thicker rules. - ruleWidth: (t.fontMetrics().sqrtRuleThickness + u) * l + ruleWidth: (t.fontMetrics().sqrtRuleThickness + u) * s }; -}, a1 = /* @__PURE__ */ new Set(["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"]), Ya = /* @__PURE__ */ new Set(["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"]), n1 = /* @__PURE__ */ new Set(["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"]), oe = [0, 1.2, 1.8, 2.4, 3], i1 = function(e, t, a, n, l) { - if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), a1.has(e) || n1.has(e)) - return t1(e, t, !1, a, n, l); - if (Ya.has(e)) - return r1(e, oe[t], !1, a, n, l); +}, f1 = /* @__PURE__ */ new Set(["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"]), h4 = /* @__PURE__ */ new Set(["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"]), v1 = /* @__PURE__ */ new Set(["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"]), he = [0, 1.2, 1.8, 2.4, 3], p1 = function(e, t, a, i, s) { + if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), f1.has(e) || v1.has(e)) + return c1(e, t, !1, a, i, s); + if (h4.has(e)) + return d1(e, he[t], !1, a, i, s); throw new S("Illegal delimiter: '" + e + "'"); -}, Wa = [{ +}, m4 = [{ type: "small", style: N.SCRIPTSCRIPT }, { @@ -6159,7 +6213,7 @@ var ue = function(e, t, a) { }, { type: "large", size: 4 -}], $a = [{ +}], c4 = [{ type: "small", style: N.SCRIPTSCRIPT }, { @@ -6170,7 +6224,7 @@ var ue = function(e, t, a) { style: N.TEXT }, { type: "stack" -}], l1 = [{ +}], g1 = [{ type: "small", style: N.SCRIPTSCRIPT }, { @@ -6193,7 +6247,7 @@ var ue = function(e, t, a) { size: 4 }, { type: "stack" -}], ja = function(e) { +}], d4 = function(e) { if (e.type === "small") return "Main-Regular"; if (e.type === "large") @@ -6202,28 +6256,28 @@ var ue = function(e, t, a) { return "Size4-Regular"; var t = e.type; throw new Error("Add support for delim type '" + t + "' here."); -}, s1 = function(e, t, a, n) { - for (var l = Math.min(2, 3 - n.style.size), u = l; u < a.length; u++) { +}, b1 = function(e, t, a, i) { + for (var s = Math.min(2, 3 - i.style.size), u = s; u < a.length; u++) { var h = a[u]; if (h.type === "stack") break; - var c = ue(e, ja(h), "math"), v = c.height + c.depth; + var c = oe(e, d4(h), "math"), v = c.height + c.depth; if (h.type === "small") { - var g = n.havingBaseStyle(h.style); - v *= g.sizeMultiplier; + var p = i.havingBaseStyle(h.style); + v *= p.sizeMultiplier; } if (v > t) return h; } return a[a.length - 1]; -}, At = function(e, t, a, n, l, u) { +}, Ct = function(e, t, a, i, s, u) { e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"); var h; - n1.has(e) ? h = Wa : a1.has(e) ? h = l1 : h = $a; - var c = s1(e, t, h, n); - return c.type === "small" ? Pa(e, c.style, a, n, l, u) : c.type === "large" ? t1(e, c.size, a, n, l, u) : r1(e, t, a, n, l, u); -}, ut = function(e, t, a, n, l, u) { - var h = n.fontMetrics().axisHeight * n.sizeMultiplier, c = 901, v = 5 / n.fontMetrics().ptPerEm, g = Math.max(t - h, a + h), b = Math.max( + v1.has(e) ? h = m4 : f1.has(e) ? h = g1 : h = c4; + var c = b1(e, t, h, i); + return c.type === "small" ? n4(e, c.style, a, i, s, u) : c.type === "large" ? c1(e, c.size, a, i, s, u) : d1(e, t, a, i, s, u); +}, ut = 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( // In real TeX, calculations are done using integral values which are // 65536 per pt, or 655360 per em. So, the division here truncates in // TeX but doesn't here, producing different results. If we wanted to @@ -6233,11 +6287,11 @@ var ue = function(e, t, a) { // (To see the difference, compare // x^{x^{\left(\rule{0.1em}{0.68em}\right)}} // in TeX and KaTeX) - g / 500 * c, - 2 * g - v + p / 500 * c, + 2 * p - v ); - return At(e, b, !0, n, l, u); -}, hr = { + return Ct(e, b, !0, i, s, u); +}, wr = { "\\bigl": { mclass: "mopen", size: 1 @@ -6302,10 +6356,13 @@ var ue = function(e, t, a) { mclass: "mord", size: 4 } -}, Za = /* @__PURE__ */ new Set(["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]); +}, f4 = /* @__PURE__ */ new Set(["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]); +function kr(r) { + return "isMiddle" in r; +} function Xe(r, e) { var t = Ue(r); - if (t && Za.has(t.text)) + if (t && f4.has(t.text)) return t; throw t ? new S("Invalid delimiter '" + t.text + "' after '" + e.funcName + "'", r) : new S("Invalid delimiter type '" + r.type + "'", r); } @@ -6321,22 +6378,22 @@ B({ return { type: "delimsizing", mode: r.parser.mode, - size: hr[r.funcName].size, - mclass: hr[r.funcName].mclass, + size: wr[r.funcName].size, + mclass: wr[r.funcName].mclass, delim: t.text }; }, - htmlBuilder: (r, e) => r.delim === "." ? k([r.mclass]) : i1(r.delim, r.size, e, r.mode, [r.mclass]), + htmlBuilder: (r, e) => r.delim === "." ? k([r.mclass]) : p1(r.delim, r.size, e, r.mode, [r.mclass]), mathmlBuilder: (r) => { var e = []; - r.delim !== "." && e.push(b0(r.delim, r.mode)); + r.delim !== "." && e.push(g0(r.delim, r.mode)); var t = new z("mo", e); r.mclass === "mopen" || r.mclass === "mclose" ? t.setAttribute("fence", "true") : t.setAttribute("fence", "false"), t.setAttribute("stretchy", "true"); - var a = A(oe[r.size]); + var a = A(he[r.size]); return t.setAttribute("minsize", a), t.setAttribute("maxsize", a), t; } }); -function mr(r) { +function Sr(r) { if (!r.body) throw new Error("Bug: The leftright ParseNode wasn't fully parsed."); } @@ -6370,50 +6427,55 @@ B({ handler: (r, e) => { var t = Xe(e[0], r), a = r.parser; ++a.leftrightDepth; - var n = a.parseExpression(!1); + var i = a.parseExpression(!1); --a.leftrightDepth, a.expect("\\right", !1); - var l = H(a.parseFunction(), "leftright-right"); + var s = H(a.parseFunction(), "leftright-right"); return { type: "leftright", mode: a.mode, - body: n, + body: i, left: t.text, - right: l.delim, - rightColor: l.color + right: s.delim, + rightColor: s.color }; }, htmlBuilder: (r, e) => { - mr(r); - for (var t = a0(r.body, e, !0, ["mopen", "mclose"]), a = 0, n = 0, l = !1, u = 0; u < t.length; u++) - t[u].isMiddle ? l = !0 : (a = Math.max(t[u].height, a), n = Math.max(t[u].depth, n)); - a *= e.sizeMultiplier, n *= e.sizeMultiplier; - var h; - if (r.left === "." ? h = me(e, ["mopen"]) : h = ut(r.left, a, n, e, r.mode, ["mopen"]), t.unshift(h), l) - for (var c = 1; c < t.length; c++) { - var v = t[c], g = v.isMiddle; - g && (t[c] = ut(g.delim, a, n, g.options, r.mode, [])); + Sr(r); + for (var t = a0(r.body, e, !0, ["mopen", "mclose"]), a = 0, i = 0, s = !1, u = 0; u < t.length; u++) { + var h = t[u]; + kr(h) ? s = !0 : (a = Math.max(t[u].height, a), i = Math.max(t[u].depth, i)); + } + a *= e.sizeMultiplier, i *= e.sizeMultiplier; + var c; + if (r.left === "." ? c = ce(e, ["mopen"]) : c = ut(r.left, a, i, e, r.mode, ["mopen"]), t.unshift(c), s) + for (var v = 1; v < t.length; v++) { + var p = t[v]; + if (kr(p)) { + var b = p.isMiddle; + t[v] = ut(b.delim, a, i, b.options, r.mode, []); + } } - var b; + var x; if (r.right === ".") - b = me(e, ["mclose"]); + x = ce(e, ["mclose"]); else { var y = r.rightColor ? e.withColor(r.rightColor) : e; - b = ut(r.right, a, n, y, r.mode, ["mclose"]); + x = ut(r.right, a, i, y, r.mode, ["mclose"]); } - return t.push(b), k(["minner"], t, e); + return t.push(x), k(["minner"], t, e); }, mathmlBuilder: (r, e) => { - mr(r); - var t = p0(r.body, e); + Sr(r); + var t = v0(r.body, e); if (r.left !== ".") { - var a = new z("mo", [b0(r.left, r.mode)]); + var a = new z("mo", [g0(r.left, r.mode)]); a.setAttribute("fence", "true"), t.unshift(a); } if (r.right !== ".") { - var n = new z("mo", [b0(r.right, r.mode)]); - n.setAttribute("fence", "true"), r.rightColor && n.setAttribute("mathcolor", r.rightColor), t.push(n); + var i = new z("mo", [g0(r.right, r.mode)]); + i.setAttribute("fence", "true"), r.rightColor && i.setAttribute("mathcolor", r.rightColor), t.push(i); } - return Rt(t); + return Ot(t); } }); B({ @@ -6435,27 +6497,20 @@ B({ }, htmlBuilder: (r, e) => { var t; - if (r.delim === ".") - t = me(e, []); - else { - t = i1(r.delim, 1, e, r.mode, []); - var a = { - delim: r.delim, - options: e - }; - t.isMiddle = a; - } - return t; + return r.delim === "." ? t = ce(e, []) : (t = p1(r.delim, 1, e, r.mode, []), t.isMiddle = { + delim: r.delim, + options: e + }), t; }, mathmlBuilder: (r, e) => { - var t = r.delim === "\\vert" || r.delim === "|" ? b0("|", "text") : b0(r.delim, r.mode), a = new z("mo", [t]); + var t = r.delim === "\\vert" || r.delim === "|" ? g0("|", "text") : g0(r.delim, r.mode), a = new z("mo", [t]); return a.setAttribute("fence", "true"), a.setAttribute("lspace", "0.05em"), a.setAttribute("rspace", "0.05em"), a; } }); var Ye = (r, e) => { - var t = re(U(r.body, e), e), a = r.label.slice(1), n = e.sizeMultiplier, l, u = 0, h = C0(r.body); + var t = re(X(r.body, e), e), a = r.label.slice(1), i = e.sizeMultiplier, s, u, h = D0(r.body); if (a === "sout") - l = k(["stretchy", "sout"]), l.height = e.fontMetrics().defaultRuleThickness / n, u = -0.5 * e.fontMetrics().xHeight; + s = k(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / i, u = -0.5 * e.fontMetrics().xHeight; else if (a === "phase") { var c = K({ number: 0.6, @@ -6463,35 +6518,35 @@ var Ye = (r, e) => { }, e), v = K({ number: 0.35, unit: "ex" - }, e), g = e.havingBaseSizing(); - n = n / g.sizeMultiplier; + }, e), p = e.havingBaseSizing(); + i = i / p.sizeMultiplier; var b = t.height + t.depth + c + v; t.style.paddingLeft = A(b / 2 + c); - var y = Math.floor(1e3 * b * n), x = Q1(y), M = new D0([new P0("phase", x)], { + var x = Math.floor(1e3 * b * i), y = ca(x), T = new C0([new P0("phase", y)], { width: "400em", - height: A(y / 1e3), - viewBox: "0 0 400000 " + y, + height: A(x / 1e3), + viewBox: "0 0 400000 " + x, preserveAspectRatio: "xMinYMin slice" }); - l = G0(["hide-tail"], [M], e), l.style.height = A(b), u = t.depth + c + v; + s = G0(["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 T = 0, C = 0, q = 0; - /box/.test(a) ? (q = Math.max( + var M, q, C = 0; + /box/.test(a) ? (C = Math.max( e.fontMetrics().fboxrule, // default e.minRuleThickness - ), T = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : q), C = T) : a === "angl" ? (q = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), T = 4 * q, C = Math.max(0, 0.25 - t.depth)) : (T = h ? 0.2 : 0, C = T), l = Ra(t, a, T, C, e), /fbox|boxed|fcolorbox/.test(a) ? (l.style.borderStyle = "solid", l.style.borderWidth = A(q)) : a === "angl" && q !== 0.049 && (l.style.borderTopWidth = A(q), l.style.borderRightWidth = A(q)), u = t.depth + C, r.backgroundColor && (l.style.backgroundColor = r.backgroundColor, r.borderColor && (l.style.borderColor = r.borderColor)); + ), 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, 0.25 - t.depth)) : (M = h ? 0.2 : 0, q = M), s = Za(t, a, M, q, e), /fbox|boxed|fcolorbox/.test(a) ? (s.style.borderStyle = "solid", s.style.borderWidth = A(C)) : a === "angl" && C !== 0.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 I; + var R; if (r.backgroundColor) - I = G({ + R = V({ positionType: "individualShift", children: [ // Put the color background behind inner; { type: "elem", - elem: l, + elem: s, shift: u }, { @@ -6502,8 +6557,8 @@ var Ye = (r, e) => { ] }); else { - var O = /cancel|phase/.test(a) ? ["svg-align"] : []; - I = G({ + var F = /cancel|phase/.test(a) ? ["svg-align"] : []; + R = V({ positionType: "individualShift", children: [ // Write the \cancel stroke on top of inner. @@ -6514,16 +6569,16 @@ var Ye = (r, e) => { }, { type: "elem", - elem: l, + elem: s, shift: u, - wrapperClasses: O + wrapperClasses: F } ] }); } - return /cancel/.test(a) && (I.height = t.height, I.depth = t.depth), /cancel/.test(a) && !h ? k(["mord", "cancel-lap"], [I], e) : k(["mord"], [I], e); -}, We = (r, e) => { - var t = 0, a = new z(r.label.includes("colorbox") ? "mpadded" : "menclose", [Y(r.body, e)]); + 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); +}, $e = (r, e) => { + var t, a = new z(r.label.includes("colorbox") ? "mpadded" : "menclose", [$(r.body, e)]); switch (r.label) { case "\\cancel": a.setAttribute("notation", "updiagonalstrike"); @@ -6546,12 +6601,12 @@ var Ye = (r, e) => { 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 n = Math.max( + var i = Math.max( e.fontMetrics().fboxrule, // default e.minRuleThickness ); - a.setAttribute("style", "border: " + A(n) + " solid " + r.borderColor); + a.setAttribute("style", "border: " + A(i) + " solid " + r.borderColor); } break; case "\\xcancel": @@ -6566,23 +6621,23 @@ B({ props: { numArgs: 2, allowedInText: !0, - argTypes: ["color", "text"] + argTypes: ["color", "hbox"] }, handler(r, e, t) { var { parser: a, - funcName: n - } = r, l = H(e[0], "color-token").color, u = e[1]; + funcName: i + } = r, s = H(e[0], "color-token").color, u = e[1]; return { type: "enclose", mode: a.mode, - label: n, - backgroundColor: l, + label: i, + backgroundColor: s, body: u }; }, htmlBuilder: Ye, - mathmlBuilder: We + mathmlBuilder: $e }); B({ type: "enclose", @@ -6590,24 +6645,24 @@ B({ props: { numArgs: 3, allowedInText: !0, - argTypes: ["color", "color", "text"] + argTypes: ["color", "color", "hbox"] }, handler(r, e, t) { var { parser: a, - funcName: n - } = r, l = H(e[0], "color-token").color, u = H(e[1], "color-token").color, h = e[2]; + funcName: i + } = r, s = H(e[0], "color-token").color, u = H(e[1], "color-token").color, h = e[2]; return { type: "enclose", mode: a.mode, - label: n, + label: i, backgroundColor: u, - borderColor: l, + borderColor: s, body: h }; }, htmlBuilder: Ye, - mathmlBuilder: We + mathmlBuilder: $e }); B({ type: "enclose", @@ -6639,16 +6694,16 @@ B({ var { parser: t, funcName: a - } = r, n = e[0]; + } = r, i = e[0]; return { type: "enclose", mode: t.mode, label: a, - body: n + body: i }; }, htmlBuilder: Ye, - mathmlBuilder: We + mathmlBuilder: $e }); B({ type: "enclose", @@ -6663,16 +6718,16 @@ B({ funcName: a } = r; t.mode === "math" && t.settings.reportNonstrict("mathVsSout", "LaTeX's \\sout works only in text mode"); - var n = e[0]; + var i = e[0]; return { type: "enclose", mode: t.mode, label: a, - body: n + body: i }; }, htmlBuilder: Ye, - mathmlBuilder: We + mathmlBuilder: $e }); B({ type: "enclose", @@ -6694,36 +6749,33 @@ B({ }; } }); -var u1 = {}; +var y1 = {}; function S0(r) { for (var { type: e, names: t, props: a, - handler: n, - htmlBuilder: l, + handler: i, + htmlBuilder: s, mathmlBuilder: u } = r, h = { type: e, numArgs: a.numArgs || 0, allowedInText: !1, numOptionalArgs: 0, - handler: n + handler: i }, c = 0; c < t.length; ++c) - u1[t[c]] = h; - l && (Re[e] = l), u && (Ie[e] = u); + y1[t[c]] = h; + s && (Re[e] = s), u && (Ie[e] = u); } -var o1 = {}; +var x1 = {}; function m(r, e) { - o1[r] = e; + x1[r] = e; } -class c0 { - // The + prefix indicates that these fields aren't writeable - // Lexer holding the input string. - // Start offset, zero-based inclusive. +class h0 { // End offset, zero-based exclusive. constructor(e, t, a) { - this.lexer = e, this.start = t, this.end = a; + this.lexer = void 0, this.start = void 0, this.end = void 0, this.lexer = e, this.start = t, this.end = a; } /** * Merges two `SourceLocation`s from location providers, given they are @@ -6734,24 +6786,23 @@ class c0 { * - Otherwise, returns null. */ static range(e, t) { - return t ? !e || !e.loc || !t.loc || e.loc.lexer !== t.loc.lexer ? null : new c0(e.loc.lexer, e.loc.start, t.loc.end) : e && e.loc; + return t ? !e || !e.loc || !t.loc || e.loc.lexer !== t.loc.lexer ? null : new h0(e.loc.lexer, e.loc.start, t.loc.end) : e && e.loc; } } -class d0 { - // don't expand the token +class c0 { // used in \noexpand constructor(e, t) { - this.text = e, this.loc = t; + this.text = void 0, this.loc = void 0, this.noexpand = void 0, this.treatAsRelax = void 0, this.text = e, this.loc = t; } /** * Given a pair of tokens (this and endToken), compute a `Token` encompassing * the whole input range enclosed by these two. */ range(e, t) { - return new d0(t, c0.range(this, e)); + return new c0(t, h0.range(this, e)); } } -function cr(r) { +function zr(r) { var e = []; r.consumeSpaces(); var t = r.fetch().text; @@ -6759,129 +6810,135 @@ function cr(r) { r.consume(), e.push(t === "\\hdashline"), r.consumeSpaces(), t = r.fetch().text; return e; } -var $e = (r) => { +var We = (r) => { var e = r.parser.settings; if (!e.displayMode) throw new S("{" + r.envName + "} can be used only in display mode."); -}, Ka = /* @__PURE__ */ new Set(["gather", "gather*"]); -function Ht(r) { +}, v4 = /* @__PURE__ */ new Set(["gather", "gather*"]); +function Ut(r) { if (!r.includes("ed")) return !r.includes("*"); } function V0(r, e, t) { var { hskipBeforeAndAfter: a, - addJot: n, - cols: l, + addJot: i, + cols: s, arraystretch: u, colSeparationType: h, autoTag: c, singleRow: v, - emptySingleRow: g, + emptySingleRow: p, maxNumCols: b, - leqno: y + leqno: x } = e; if (r.gullet.beginGroup(), v || r.gullet.macros.set("\\cr", "\\\\\\relax"), !u) { - var x = r.gullet.expandMacroAsText("\\arraystretch"); - if (x == null) + var y = r.gullet.expandMacroAsText("\\arraystretch"); + if (y == null) u = 1; - else if (u = parseFloat(x), !u || u < 0) - throw new S("Invalid \\arraystretch: " + x); + else if (u = parseFloat(y), !u || u < 0) + throw new S("Invalid \\arraystretch: " + y); } r.gullet.beginGroup(); - var M = [], T = [M], C = [], q = [], I = c != null ? [] : void 0; - function O() { + var T = [], M = [T], q = [], C = [], R = c != null ? [] : void 0; + function F() { c && r.gullet.macros.set("\\@eqnsw", "1", !0); } - function F() { - I && (r.gullet.macros.get("\\df@tag") ? (I.push(r.subparse([new d0("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : I.push(!!c && r.gullet.macros.get("\\@eqnsw") === "1")); + function L() { + R && (r.gullet.macros.get("\\df@tag") ? (R.push(r.subparse([new c0("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : R.push(!!c && r.gullet.macros.get("\\@eqnsw") === "1")); } - for (O(), q.push(cr(r)); ; ) { - var V = r.parseExpression(!1, v ? "\\end" : "\\\\"); + for (F(), C.push(zr(r)); ; ) { + var O = r.parseExpression(!1, v ? "\\end" : "\\\\"); r.gullet.endGroup(), r.gullet.beginGroup(); - var L = { + var P = { type: "ordgroup", mode: r.mode, - body: V + body: O }; - t && (L = { + t && (P = { type: "styling", mode: r.mode, style: t, - body: [L] - }), M.push(L); - var P = r.fetch().text; - if (P === "&") { - if (b && M.length === b) { + resetFont: !0, + body: [P] + }), T.push(P); + var G = r.fetch().text; + if (G === "&") { + if (b && T.length === b) { if (v || h) throw new S("Too many tab characters: &", r.nextToken); r.settings.reportNonstrict("textEnv", "Too few columns specified in the {array} column argument."); } r.consume(); - } else if (P === "\\end") { - F(), M.length === 1 && L.type === "styling" && L.body.length === 1 && L.body[0].type === "ordgroup" && L.body[0].body.length === 0 && (T.length > 1 || !g) && T.pop(), q.length < T.length + 1 && q.push([]); + } 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.length < M.length + 1 && C.push([]); break; - } else if (P === "\\\\") { + } else if (G === "\\\\") { r.consume(); - var W = void 0; - r.gullet.future().text !== " " && (W = r.parseSizeGroup(!0)), C.push(W ? W.value : null), F(), q.push(cr(r)), M = [], T.push(M), O(); + var Y = void 0; + r.gullet.future().text !== " " && (Y = r.parseSizeGroup(!0)), q.push(Y ? Y.value : null), L(), C.push(zr(r)), T = [], M.push(T), F(); } else throw new S("Expected & or \\\\ or \\cr or \\end", r.nextToken); } return r.gullet.endGroup(), r.gullet.endGroup(), { type: "array", mode: r.mode, - addJot: n, + addJot: i, arraystretch: u, - body: T, - cols: l, - rowGaps: C, + body: M, + cols: s, + rowGaps: q, hskipBeforeAndAfter: a, - hLinesBeforeRow: q, + hLinesBeforeRow: C, colSeparationType: h, - tags: I, - leqno: y + tags: R, + leqno: x }; } -function Ft(r) { +function Vt(r) { return r.slice(0, 1) === "d" ? "display" : "text"; } var z0 = function(e, t) { - var a, n, l = e.body.length, u = e.hLinesBeforeRow, h = 0, c = new Array(l), v = [], g = Math.max( + var a, i, s = e.body.length, u = e.hLinesBeforeRow, h = 0, c = new Array(s), v = [], p = Math.max( // From LaTeX \showthe\arrayrulewidth. Equals 0.04 em. t.fontMetrics().arrayRuleWidth, t.minRuleThickness - ), b = 1 / t.fontMetrics().ptPerEm, y = 5 * b; + ), b = 1 / t.fontMetrics().ptPerEm, x = 5 * b; if (e.colSeparationType && e.colSeparationType === "small") { - var x = t.havingStyle(N.SCRIPT).sizeMultiplier; - y = 0.2778 * (x / t.sizeMultiplier); + var y = t.havingStyle(N.SCRIPT).sizeMultiplier; + x = 0.2778 * (y / t.sizeMultiplier); } - var M = e.colSeparationType === "CD" ? K({ + var T = e.colSeparationType === "CD" ? K({ number: 3, unit: "ex" - }, t) : 12 * b, T = 3 * b, C = e.arraystretch * M, q = 0.7 * C, I = 0.3 * C, O = 0; - function F(be) { - for (var ye = 0; ye < be.length; ++ye) - ye > 0 && (O += 0.25), v.push({ - pos: O, - isDashed: be[ye] + }, t) : 12 * b, M = 3 * b, q = e.arraystretch * T, C = 0.7 * q, R = 0.3 * q, F = 0; + function L(ye) { + for (var xe = 0; xe < ye.length; ++xe) + xe > 0 && (F += 0.25), v.push({ + pos: F, + isDashed: ye[xe] }); } - for (F(u[0]), a = 0; a < e.body.length; ++a) { - var V = e.body[a], L = q, P = I; - h < V.length && (h = V.length); - var W = new Array(V.length); - for (n = 0; n < V.length; ++n) { - var X = U(V[n], t); - P < X.depth && (P = X.depth), L < X.height && (L = X.height), W[n] = X; + for (L(u[0]), a = 0; a < e.body.length; ++a) { + var O = e.body[a], P = C, G = R; + h < O.length && (h = O.length); + var Y = { + cells: new Array(O.length), + height: 0, + depth: 0, + pos: 0 + }; + for (i = 0; i < O.length; ++i) { + var U = X(O[i], t); + G < U.depth && (G = U.depth), P < U.height && (P = U.height), Y.cells[i] = U; } - var h0 = e.rowGaps[a], i0 = 0; - h0 && (i0 = K(h0, t), i0 > 0 && (i0 += I, P < i0 && (P = i0), i0 = 0)), e.addJot && a < e.body.length - 1 && (P += T), W.height = L, W.depth = P, O += L, W.pos = O, O += P + i0, c[a] = W, F(u[a + 1]); + var o0 = e.rowGaps[a], m0 = 0; + o0 && (m0 = K(o0, t), m0 > 0 && (m0 += R, G < m0 && (G = m0), m0 = 0)), e.addJot && a < e.body.length - 1 && (G += M), Y.height = P, Y.depth = G, F += P, Y.pos = F, F += G + m0, c[a] = Y, L(u[a + 1]); } - var t0 = O / 2 + t.fontMetrics().axisHeight, X0 = e.cols || [], m0 = [], y0, R0, j0 = []; - if (e.tags && e.tags.some((be) => be)) - for (a = 0; a < l; ++a) { - var Z0 = c[a], Ze = Z0.pos - t0, I0 = e.tags[a], N0 = void 0; + var Q = F / 2 + t.fontMetrics().axisHeight, le = e.cols || [], x0 = [], b0, R0, j0 = []; + if (e.tags && e.tags.some((ye) => ye)) + for (a = 0; a < s; ++a) { + var Z0 = c[a], Ze = Z0.pos - Q, I0 = e.tags[a], N0 = void 0; I0 === !0 ? N0 = k(["eqn-num"], [], t) : I0 === !1 ? N0 = k([], [], t) : N0 = k([], a0(I0, t, !0), t), N0.depth = Z0.depth, N0.height = Z0.height, j0.push({ type: "elem", elem: N0, @@ -6889,122 +6946,122 @@ var z0 = function(e, t) { }); } for ( - n = 0, R0 = 0; + i = 0, R0 = 0; // Continue while either there are more columns or more column // descriptions, so trailing separators don't get lost. - n < h || R0 < X0.length; - ++n, ++R0 + i < h || R0 < le.length; + ++i, ++R0 ) { - for (var se, x0 = X0[R0], fe = !0; ((Vt = x0) == null ? void 0 : Vt.type) === "separator"; ) { - var Vt; - if (fe || (y0 = k(["arraycolsep"], []), y0.style.width = A(t.fontMetrics().doubleRuleSep), m0.push(y0)), x0.separator === "|" || x0.separator === ":") { - var M1 = x0.separator === "|" ? "solid" : "dashed", K0 = k(["vertical-separator"], [], t); - K0.style.height = A(O), K0.style.borderRightWidth = A(g), K0.style.borderRightStyle = M1, K0.style.margin = "0 " + A(-g / 2); - var Xt = O - t0; - Xt && (K0.style.verticalAlign = A(-Xt)), m0.push(K0); + for (var ue, y0 = le[R0], ve = !0; ((jt = y0) == null ? void 0 : jt.type) === "separator"; ) { + var jt; + if (ve || (b0 = k(["arraycolsep"], []), b0.style.width = A(t.fontMetrics().doubleRuleSep), x0.push(b0)), y0.separator === "|" || y0.separator === ":") { + var H1 = y0.separator === "|" ? "solid" : "dashed", K0 = k(["vertical-separator"], [], t); + K0.style.height = A(F), K0.style.borderRightWidth = A(p), K0.style.borderRightStyle = H1, K0.style.margin = "0 " + A(-p / 2); + var Zt = F - Q; + Zt && (K0.style.verticalAlign = A(-Zt)), x0.push(K0); } else - throw new S("Invalid separator type: " + x0.separator); - R0++, x0 = X0[R0], fe = !1; + throw new S("Invalid separator type: " + y0.separator); + R0++, y0 = le[R0], ve = !1; } - if (!(n >= h)) { + if (!(i >= h)) { var J0 = void 0; - if (n > 0 || e.hskipBeforeAndAfter) { - var Yt, Wt; - J0 = (Yt = (Wt = x0) == null ? void 0 : Wt.pregap) != null ? Yt : y, J0 !== 0 && (y0 = k(["arraycolsep"], []), y0.style.width = A(J0), m0.push(y0)); + if (i > 0 || e.hskipBeforeAndAfter) { + var Kt, Jt; + J0 = (Kt = (Jt = y0) == null ? void 0 : Jt.pregap) != null ? Kt : x, J0 !== 0 && (b0 = k(["arraycolsep"], []), b0.style.width = A(J0), x0.push(b0)); } - var $t = []; - for (a = 0; a < l; ++a) { - var ve = c[a], pe = ve[n]; - if (pe) { - var T1 = ve.pos - t0; - pe.depth = ve.depth, pe.height = ve.height, $t.push({ + var Qt = []; + for (a = 0; a < s; ++a) { + var pe = c[a], ge = pe.cells[i]; + if (ge) { + var O1 = pe.pos - Q; + ge.depth = pe.depth, ge.height = pe.height, Qt.push({ type: "elem", - elem: pe, - shift: T1 + elem: ge, + shift: O1 }); } } - var B1 = G({ + var L1 = V({ positionType: "individualShift", - children: $t - }), D1 = k(["col-align-" + (((se = x0) == null ? void 0 : se.align) || "c")], [B1]); - if (m0.push(D1), n < h - 1 || e.hskipBeforeAndAfter) { - var jt, Zt; - J0 = (jt = (Zt = x0) == null ? void 0 : Zt.postgap) != null ? jt : y, J0 !== 0 && (y0 = k(["arraycolsep"], []), y0.style.width = A(J0), m0.push(y0)); + children: Qt + }), P1 = k(["col-align-" + (((ue = y0) == null ? void 0 : ue.align) || "c")], [L1]); + if (x0.push(P1), i < h - 1 || e.hskipBeforeAndAfter) { + var _t, er; + J0 = (_t = (er = y0) == null ? void 0 : er.postgap) != null ? _t : x, J0 !== 0 && (b0 = k(["arraycolsep"], []), b0.style.width = A(J0), x0.push(b0)); } } } - var ge = k(["mtable"], m0); + var be = k(["mtable"], x0); if (v.length > 0) { - for (var C1 = te("hline", t, g), q1 = te("hdashline", t, g), Ke = [{ + for (var G1 = te("hline", t, p), U1 = te("hdashline", t, p), Ke = [{ type: "elem", - elem: ge, + elem: be, shift: 0 }]; v.length > 0; ) { - var Kt = v.pop(), Jt = Kt.pos - t0; - Kt.isDashed ? Ke.push({ + var tr = v.pop(), rr = tr.pos - Q; + tr.isDashed ? Ke.push({ type: "elem", - elem: q1, - shift: Jt + elem: U1, + shift: rr }) : Ke.push({ type: "elem", - elem: C1, - shift: Jt + elem: G1, + shift: rr }); } - ge = G({ + be = V({ positionType: "individualShift", children: Ke }); } if (j0.length === 0) - return k(["mord"], [ge], t); - var E1 = G({ + return k(["mord"], [be], t); + var V1 = V({ positionType: "individualShift", children: j0 - }), R1 = k(["tag"], [E1], t); - return E0([ge, R1]); -}, Ja = { + }), X1 = k(["tag"], [V1], t); + return E0([be, X1]); +}, p4 = { c: "center ", l: "left ", r: "right " }, A0 = function(e, t) { - for (var a = [], n = new z("mtd", [], ["mtr-glue"]), l = new z("mtd", [], ["mml-eqn-num"]), u = 0; u < e.body.length; u++) { + for (var a = [], i = new z("mtd", [], ["mtr-glue"]), s = new z("mtd", [], ["mml-eqn-num"]), u = 0; u < e.body.length; u++) { for (var h = e.body[u], c = [], v = 0; v < h.length; v++) - c.push(new z("mtd", [Y(h[v], t)])); - e.tags && e.tags[u] && (c.unshift(n), c.push(n), e.leqno ? c.unshift(l) : c.push(l)), a.push(new z("mtr", c)); + c.push(new z("mtd", [$(h[v], t)])); + e.tags && e.tags[u] && (c.unshift(i), c.push(i), e.leqno ? c.unshift(s) : c.push(s)), a.push(new z("mtr", c)); } - var g = new z("mtable", a), b = e.arraystretch === 0.5 ? 0.1 : 0.16 + e.arraystretch - 1 + (e.addJot ? 0.09 : 0); - g.setAttribute("rowspacing", A(b)); - var y = "", x = ""; + var p = new z("mtable", a), b = e.arraystretch === 0.5 ? 0.1 : 0.16 + e.arraystretch - 1 + (e.addJot ? 0.09 : 0); + p.setAttribute("rowspacing", A(b)); + var x = "", y = ""; if (e.cols && e.cols.length > 0) { - var M = e.cols, T = "", C = !1, q = 0, I = M.length; - M[0].type === "separator" && (y += "top ", q = 1), M[M.length - 1].type === "separator" && (y += "bottom ", I -= 1); - for (var O = q; O < I; O++) { - var F = M[O]; - F.type === "align" ? (x += Ja[F.align], C && (T += "none "), C = !0) : F.type === "separator" && C && (T += F.separator === "|" ? "solid " : "dashed ", C = !1); + 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; F < R; F++) { + var L = T[F]; + L.type === "align" ? (y += p4[L.align], q && (M += "none "), q = !0) : L.type === "separator" && q && (M += L.separator === "|" ? "solid " : "dashed ", q = !1); } - g.setAttribute("columnalign", x.trim()), /[sd]/.test(T) && g.setAttribute("columnlines", T.trim()); + p.setAttribute("columnalign", y.trim()), /[sd]/.test(M) && p.setAttribute("columnlines", M.trim()); } if (e.colSeparationType === "align") { - for (var V = e.cols || [], L = "", P = 1; P < V.length; P++) - L += P % 2 ? "0em " : "1em "; - g.setAttribute("columnspacing", L.trim()); - } else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? g.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? g.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? g.setAttribute("columnspacing", "0.5em") : g.setAttribute("columnspacing", "1em"); - var W = "", X = e.hLinesBeforeRow; - y += X[0].length > 0 ? "left " : "", y += X[X.length - 1].length > 0 ? "right " : ""; - for (var h0 = 1; h0 < X.length - 1; h0++) - W += X[h0].length === 0 ? "none " : X[h0][0] ? "dashed " : "solid "; - return /[sd]/.test(W) && g.setAttribute("rowlines", W.trim()), y !== "" && (g = new z("menclose", [g]), g.setAttribute("notation", y.trim())), e.arraystretch && e.arraystretch < 1 && (g = new z("mstyle", [g]), g.setAttribute("scriptlevel", "1")), g; -}, h1 = function(e, t) { - e.envName.includes("ed") || $e(e); - var a = [], n = e.envName.includes("at") ? "alignat" : "align", l = e.envName === "split", u = V0(e.parser, { + for (var O = e.cols || [], P = "", G = 1; G < O.length; G++) + P += G % 2 ? "0em " : "1em "; + p.setAttribute("columnspacing", P.trim()); + } else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? p.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? p.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? p.setAttribute("columnspacing", "0.5em") : p.setAttribute("columnspacing", "1em"); + var Y = "", U = e.hLinesBeforeRow; + x += U[0].length > 0 ? "left " : "", x += U[U.length - 1].length > 0 ? "right " : ""; + for (var o0 = 1; o0 < U.length - 1; o0++) + Y += U[o0].length === 0 ? "none " : U[o0][0] ? "dashed " : "solid "; + return /[sd]/.test(Y) && p.setAttribute("rowlines", Y.trim()), x !== "" && (p = new z("menclose", [p]), p.setAttribute("notation", x.trim())), e.arraystretch && e.arraystretch < 1 && (p = new z("mstyle", [p]), p.setAttribute("scriptlevel", "1")), p; +}, w1 = function(e, t) { + e.envName.includes("ed") || We(e); + var a = [], i = e.envName.includes("at") ? "alignat" : "align", s = e.envName === "split", u = V0(e.parser, { cols: a, addJot: !0, - autoTag: l ? void 0 : Ht(e.envName), + autoTag: s ? void 0 : Ut(e.envName), emptySingleRow: !0, - colSeparationType: n, - maxNumCols: l ? 2 : void 0, + colSeparationType: i, + maxNumCols: s ? 2 : void 0, leqno: e.parser.settings.leqno }, "display"), h = 0, c = 0, v = { type: "ordgroup", @@ -7012,36 +7069,36 @@ var z0 = function(e, t) { body: [] }; if (t[0] && t[0].type === "ordgroup") { - for (var g = "", b = 0; b < t[0].body.length; b++) { - var y = H(t[0].body[b], "textord"); - g += y.text; + for (var p = "", b = 0; b < t[0].body.length; b++) { + var x = H(t[0].body[b], "textord"); + p += x.text; } - h = Number(g), c = h * 2; + h = Number(p), c = h * 2; } - var x = !c; - u.body.forEach(function(q) { - for (var I = 1; I < q.length; I += 2) { - var O = H(q[I], "styling"), F = H(O.body[0], "ordgroup"); - F.body.unshift(v); + var y = !c; + u.body.forEach(function(C) { + for (var R = 1; R < C.length; R += 2) { + var F = H(C[R], "styling"), L = H(F.body[0], "ordgroup"); + L.body.unshift(v); } - if (x) - c < q.length && (c = q.length); + if (y) + c < C.length && (c = C.length); else { - var V = q.length / 2; - if (h < V) - throw new S("Too many math in a row: " + ("expected " + h + ", but got " + V), q[0]); + var O = C.length / 2; + if (h < O) + throw new S("Too many math in a row: " + ("expected " + h + ", but got " + O), C[0]); } }); - for (var M = 0; M < c; ++M) { - var T = "r", C = 0; - M % 2 === 1 ? T = "l" : M > 0 && x && (C = 1), a[M] = { + for (var T = 0; T < c; ++T) { + var M = "r", q = 0; + T % 2 === 1 ? M = "l" : T > 0 && y && (q = 1), a[T] = { type: "align", - align: T, - pregap: C, + align: M, + pregap: q, postgap: 0 }; } - return u.colSeparationType = x ? "align" : "alignat", u; + return u.colSeparationType = y ? "align" : "alignat", u; }; S0({ type: "array", @@ -7050,7 +7107,7 @@ S0({ numArgs: 1 }, handler(r, e) { - var t = Ue(e[0]), a = t ? [e[0]] : H(e[0], "ordgroup").body, n = a.map(function(u) { + var t = Ue(e[0]), a = t ? [e[0]] : H(e[0], "ordgroup").body, i = a.map(function(u) { var h = Ge(u), c = h.text; if ("lcr".includes(c)) return { @@ -7068,13 +7125,13 @@ S0({ separator: ":" }; throw new S("Unknown column alignment: " + c, u); - }), l = { - cols: n, + }), s = { + cols: i, hskipBeforeAndAfter: !0, // \@preamble in lttab.dtx - maxNumCols: n.length + maxNumCols: i.length }; - return V0(r.parser, l, Ft(r.envName)); + return V0(r.parser, s, Vt(r.envName)); }, htmlBuilder: z0, mathmlBuilder: A0 @@ -7101,29 +7158,29 @@ S0({ }] }; if (r.envName.charAt(r.envName.length - 1) === "*") { - var n = r.parser; - if (n.consumeSpaces(), n.fetch().text === "[") { - if (n.consume(), n.consumeSpaces(), t = n.fetch().text, !"lcr".includes(t)) - throw new S("Expected l or c or r", n.nextToken); - n.consume(), n.consumeSpaces(), n.expect("]"), n.consume(), a.cols = [{ + var i = r.parser; + if (i.consumeSpaces(), i.fetch().text === "[") { + if (i.consume(), i.consumeSpaces(), t = i.fetch().text, !"lcr".includes(t)) + throw new S("Expected l or c or r", i.nextToken); + i.consume(), i.consumeSpaces(), i.expect("]"), i.consume(), a.cols = [{ type: "align", align: t }]; } } - var l = V0(r.parser, a, Ft(r.envName)), u = Math.max(0, ...l.body.map((h) => h.length)); - return l.cols = new Array(u).fill({ + var s = V0(r.parser, a, Vt(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: [l], + body: [s], left: e[0], right: e[1], rightColor: void 0 // \right uninfluenced by \color in array - } : l; + } : s; }, htmlBuilder: z0, mathmlBuilder: A0 @@ -7150,7 +7207,7 @@ S0({ numArgs: 1 }, handler(r, e) { - var t = Ue(e[0]), a = t ? [e[0]] : H(e[0], "ordgroup").body, n = a.map(function(h) { + var t = Ue(e[0]), a = t ? [e[0]] : H(e[0], "ordgroup").body, i = a.map(function(h) { var c = Ge(h), v = c.text; if ("lc".includes(v)) return { @@ -7159,13 +7216,13 @@ S0({ }; throw new S("Unknown column alignment: " + v, h); }); - if (n.length > 1) + if (i.length > 1) throw new S("{subarray} can contain only one column"); - var l = { - cols: n, + var s = { + cols: i, hskipBeforeAndAfter: !1, arraystretch: 0.5 - }, u = V0(r.parser, l, "script"); + }, u = V0(r.parser, s, "script"); if (u.body.length > 0 && u.body[0].length > 1) throw new S("{subarray} can contain only one column"); return u; @@ -7198,7 +7255,7 @@ S0({ pregap: 0, postgap: 0 }] - }, t = V0(r.parser, e, Ft(r.envName)); + }, t = V0(r.parser, e, Vt(r.envName)); return { type: "leftright", mode: r.mode, @@ -7217,7 +7274,7 @@ S0({ props: { numArgs: 0 }, - handler: h1, + handler: w1, htmlBuilder: z0, mathmlBuilder: A0 }); @@ -7228,7 +7285,7 @@ S0({ numArgs: 0 }, handler(r) { - Ka.has(r.envName) && $e(r); + v4.has(r.envName) && We(r); var e = { cols: [{ type: "align", @@ -7236,7 +7293,7 @@ S0({ }], addJot: !0, colSeparationType: "gather", - autoTag: Ht(r.envName), + autoTag: Ut(r.envName), emptySingleRow: !0, leqno: r.parser.settings.leqno }; @@ -7251,7 +7308,7 @@ S0({ props: { numArgs: 1 }, - handler: h1, + handler: w1, htmlBuilder: z0, mathmlBuilder: A0 }); @@ -7262,9 +7319,9 @@ S0({ numArgs: 0 }, handler(r) { - $e(r); + We(r); var e = { - autoTag: Ht(r.envName), + autoTag: Ut(r.envName), emptySingleRow: !0, singleRow: !0, maxNumCols: 1, @@ -7282,7 +7339,7 @@ S0({ numArgs: 0 }, handler(r) { - return $e(r), Fa(r.parser); + return We(r), a4(r.parser); }, htmlBuilder: z0, mathmlBuilder: A0 @@ -7302,7 +7359,7 @@ B({ throw new S(r.funcName + " valid only within array environment"); } }); -var dr = u1; +var Ar = y1; B({ type: "environment", names: ["\\begin", "\\end"], @@ -7314,47 +7371,46 @@ B({ var { parser: t, funcName: a - } = r, n = e[0]; - if (n.type !== "ordgroup") - throw new S("Invalid environment name", n); - for (var l = "", u = 0; u < n.body.length; ++u) - l += H(n.body[u], "textord").text; + } = r, i = e[0]; + if (i.type !== "ordgroup") + throw new S("Invalid environment name", i); + for (var s = "", u = 0; u < i.body.length; ++u) + s += H(i.body[u], "textord").text; if (a === "\\begin") { - if (!dr.hasOwnProperty(l)) - throw new S("No such environment: " + l, n); - var h = dr[l], { + if (!Ar.hasOwnProperty(s)) + throw new S("No such environment: " + s, i); + var h = Ar[s], { args: c, optArgs: v - } = t.parseArguments("\\begin{" + l + "}", h), g = { + } = t.parseArguments("\\begin{" + s + "}", h), p = { mode: t.mode, - envName: l, + envName: s, parser: t - }, b = h.handler(g, c, v); + }, b = h.handler(p, c, v); t.expect("\\end", !1); - var y = t.nextToken, x = H(t.parseFunction(), "environment"); - if (x.name !== l) - throw new S("Mismatch: \\begin{" + l + "} matched by \\end{" + x.name + "}", y); + var x = t.nextToken, y = H(t.parseFunction(), "environment"); + if (y.name !== s) + throw new S("Mismatch: \\begin{" + s + "} matched by \\end{" + y.name + "}", x); return b; } return { type: "environment", mode: t.mode, - name: l, - nameGroup: n + name: s, + nameGroup: i }; } }); -var m1 = (r, e) => { +var k1 = (r, e) => { var t = r.font, a = e.withFont(t); - return U(r.body, a); -}, c1 = (r, e) => { + return X(r.body, a); +}, S1 = (r, e) => { var t = r.font, a = e.withFont(t); - return Y(r.body, a); -}, fr = { + return $(r.body, a); +}, Mr = { "\\Bbb": "\\mathbb", "\\bold": "\\mathbf", - "\\frak": "\\mathfrak", - "\\bm": "\\boldsymbol" + "\\frak": "\\mathfrak" }; B({ type: "font", @@ -7385,16 +7441,16 @@ B({ var { parser: t, funcName: a - } = r, n = Ne(e[0]), l = a; - return l in fr && (l = fr[l]), { + } = r, i = Ne(e[0]), s = a; + return s in Mr && (s = Mr[s]), { type: "font", mode: t.mode, - font: l.slice(1), - body: n + font: s.slice(1), + body: i }; }, - htmlBuilder: m1, - mathmlBuilder: c1 + htmlBuilder: k1, + mathmlBuilder: S1 }); B({ type: "mclass", @@ -7416,7 +7472,7 @@ B({ font: "boldsymbol", body: a }], - isCharacterBox: C0(a) + isCharacterBox: D0(a) }; } }); @@ -7431,14 +7487,14 @@ B({ var { parser: t, funcName: a, - breakOnTokenText: n + breakOnTokenText: i } = r, { - mode: l - } = t, u = t.parseExpression(!0, n), h = "math" + a.slice(1); + mode: s + } = t, u = t.parseExpression(!0, i); return { type: "font", - mode: l, - font: h, + mode: s, + font: "math" + a.slice(1), body: { type: "ordgroup", mode: t.mode, @@ -7446,65 +7502,65 @@ B({ } }; }, - htmlBuilder: m1, - mathmlBuilder: c1 + htmlBuilder: k1, + mathmlBuilder: S1 }); -var Qa = (r, e) => { - var t = e.style, a = t.fracNum(), n = t.fracDen(), l; - l = e.havingStyle(a); - var u = U(r.numer, l, e); +var g4 = (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.height < h ? h : u.height, u.depth = u.depth < c ? c : u.depth; } - l = e.havingStyle(n); - var v = U(r.denom, l, e), g, b, y; - r.hasBarLine ? (r.barSize ? (b = K(r.barSize, e), g = te("frac-line", e, b)) : g = te("frac-line", e), b = g.height, y = g.height) : (g = null, b = 0, y = e.fontMetrics().defaultRuleThickness); - var x, M, T; - t.size === N.DISPLAY.size ? (x = e.fontMetrics().num1, b > 0 ? M = 3 * y : M = 7 * y, T = e.fontMetrics().denom1) : (b > 0 ? (x = e.fontMetrics().num2, M = y) : (x = e.fontMetrics().num3, M = 3 * y), T = e.fontMetrics().denom2); - var C; - if (g) { - var I = e.fontMetrics().axisHeight; - x - u.depth - (I + 0.5 * b) < M && (x += M - (x - u.depth - (I + 0.5 * b))), I - 0.5 * b - (v.height - T) < M && (T += M - (I - 0.5 * b - (v.height - T))); - var O = -(I - 0.5 * b); - C = G({ + s = e.havingStyle(i); + var v = X(r.denom, s, e), p, b, x; + r.hasBarLine ? (r.barSize ? (b = K(r.barSize, e), p = te("frac-line", e, b)) : p = te("frac-line", e), b = p.height, x = p.height) : (p = null, b = 0, x = e.fontMetrics().defaultRuleThickness); + var y, T, M; + t.size === N.DISPLAY.size ? (y = e.fontMetrics().num1, b > 0 ? 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 + 0.5 * b) < T && (y += T - (y - u.depth - (R + 0.5 * b))), R - 0.5 * b - (v.height - M) < T && (M += T - (R - 0.5 * b - (v.height - M))); + var F = -(R - 0.5 * b); + q = V({ positionType: "individualShift", children: [{ type: "elem", elem: v, - shift: T + shift: M }, { type: "elem", - elem: g, - shift: O + elem: p, + shift: F }, { type: "elem", elem: u, - shift: -x + shift: -y }] }); } else { - var q = x - u.depth - (v.height - T); - q < M && (x += 0.5 * (M - q), T += 0.5 * (M - q)), C = G({ + var C = y - u.depth - (v.height - M); + C < T && (y += 0.5 * (T - C), M += 0.5 * (T - C)), q = V({ positionType: "individualShift", children: [{ type: "elem", elem: v, - shift: T + shift: M }, { type: "elem", elem: u, - shift: -x + shift: -y }] }); } - l = e.havingStyle(t), C.height *= l.sizeMultiplier / e.sizeMultiplier, C.depth *= l.sizeMultiplier / e.sizeMultiplier; - var F; - t.size === N.DISPLAY.size ? F = e.fontMetrics().delim1 : t.size === N.SCRIPTSCRIPT.size ? F = e.havingStyle(N.SCRIPT).fontMetrics().delim2 : F = e.fontMetrics().delim2; - var V, L; - return r.leftDelim == null ? V = me(e, ["mopen"]) : V = At(r.leftDelim, F, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? L = k([]) : r.rightDelim == null ? L = me(e, ["mclose"]) : L = At(r.rightDelim, F, !0, e.havingStyle(t), r.mode, ["mclose"]), k(["mord"].concat(l.sizingClasses(e)), [V, k(["mfrac"], [C]), L], e); -}, _a = (r, e) => { - var t = new z("mfrac", [Y(r.numer, e), Y(r.denom, e)]); + s = e.havingStyle(t), q.height *= s.sizeMultiplier / e.sizeMultiplier, q.depth *= s.sizeMultiplier / e.sizeMultiplier; + var L; + t.size === N.DISPLAY.size ? L = e.fontMetrics().delim1 : t.size === N.SCRIPTSCRIPT.size ? L = e.havingStyle(N.SCRIPT).fontMetrics().delim2 : L = e.fontMetrics().delim2; + var O, P; + return r.leftDelim == null ? O = ce(e, ["mopen"]) : O = Ct(r.leftDelim, L, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? P = k([]) : r.rightDelim == null ? P = ce(e, ["mclose"]) : P = Ct(r.rightDelim, L, !0, e.havingStyle(t), r.mode, ["mclose"]), k(["mord"].concat(s.sizingClasses(e)), [O, k(["mfrac"], [q]), P], e); +}, b4 = (r, e) => { + var t = new z("mfrac", [$(r.numer, e), $(r.denom, e)]); if (!r.hasBarLine) t.setAttribute("linethickness", "0px"); else if (r.barSize) { @@ -7512,19 +7568,19 @@ var Qa = (r, e) => { t.setAttribute("linethickness", A(a)); } if (r.leftDelim != null || r.rightDelim != null) { - var n = []; + var i = []; if (r.leftDelim != null) { - var l = new z("mo", [new _(r.leftDelim.replace("\\", ""))]); - l.setAttribute("fence", "true"), n.push(l); + var s = new z("mo", [new e0(r.leftDelim.replace("\\", ""))]); + s.setAttribute("fence", "true"), i.push(s); } - if (n.push(t), r.rightDelim != null) { - var u = new z("mo", [new _(r.rightDelim.replace("\\", ""))]); - u.setAttribute("fence", "true"), n.push(u); + if (i.push(t), r.rightDelim != null) { + var u = new z("mo", [new e0(r.rightDelim.replace("\\", ""))]); + u.setAttribute("fence", "true"), i.push(u); } - return Rt(n); + return Ot(i); } return t; -}, d1 = (r, e) => { +}, z1 = (r, e) => { if (!e) return r; var t = { @@ -7559,7 +7615,7 @@ B({ var { parser: t, funcName: a - } = r, n = e[0], l = e[1], u, h = null, c = null; + } = r, i = e[0], s = e[1], u, h = null, c = null; switch (a) { case "\\cfrac": case "\\dfrac": @@ -7584,21 +7640,21 @@ B({ default: throw new Error("Unrecognized genfrac command"); } - var v = a === "\\cfrac", g = null; - return v || a.startsWith("\\d") ? g = "display" : a.startsWith("\\t") && (g = "text"), d1({ + var v = a === "\\cfrac", p = null; + return v || a.startsWith("\\d") ? p = "display" : a.startsWith("\\t") && (p = "text"), z1({ type: "genfrac", mode: t.mode, - numer: n, - denom: l, + numer: i, + denom: s, continued: v, hasBarLine: u, leftDelim: h, rightDelim: c, barSize: null - }, g); + }, p); }, - htmlBuilder: Qa, - mathmlBuilder: _a + htmlBuilder: g4, + mathmlBuilder: b4 }); B({ type: "infix", @@ -7612,22 +7668,22 @@ B({ parser: e, funcName: t, token: a - } = r, n; + } = r, i; switch (t) { case "\\over": - n = "\\frac"; + i = "\\frac"; break; case "\\choose": - n = "\\binom"; + i = "\\binom"; break; case "\\atop": - n = "\\\\atopfrac"; + i = "\\\\atopfrac"; break; case "\\brace": - n = "\\\\bracefrac"; + i = "\\\\bracefrac"; break; case "\\brack": - n = "\\\\brackfrac"; + i = "\\\\brackfrac"; break; default: throw new Error("Unrecognized infix genfrac command"); @@ -7635,12 +7691,12 @@ B({ return { type: "infix", mode: e.mode, - replaceWith: n, + replaceWith: i, token: a }; } }); -var vr = ["display", "text", "script", "scriptscript"], pr = function(e) { +var Tr = ["display", "text", "script", "scriptscript"], Br = function(e) { var t = null; return e.length > 0 && (t = e, t = t === "." ? null : t), t; }; @@ -7655,27 +7711,27 @@ B({ handler(r, e) { var { parser: t - } = r, a = e[4], n = e[5], l = Ne(e[0]), u = l.type === "atom" && l.family === "open" ? pr(l.text) : null, h = Ne(e[1]), c = h.type === "atom" && h.family === "close" ? pr(h.text) : null, v = H(e[2], "size"), g, b = null; - v.isBlank ? g = !0 : (b = v.value, g = b.number > 0); - var y = null, x = e[3]; - if (x.type === "ordgroup") { - if (x.body.length > 0) { - var M = H(x.body[0], "textord"); - y = vr[Number(M.text)]; + } = r, a = e[4], i = e[5], s = Ne(e[0]), u = s.type === "atom" && s.family === "open" ? Br(s.text) : null, h = Ne(e[1]), c = h.type === "atom" && h.family === "close" ? Br(h.text) : null, v = H(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 = H(y.body[0], "textord"); + x = Tr[Number(T.text)]; } } else - x = H(x, "textord"), y = vr[Number(x.text)]; - return d1({ + y = H(y, "textord"), x = Tr[Number(y.text)]; + return z1({ type: "genfrac", mode: t.mode, numer: a, - denom: n, + denom: i, continued: !1, - hasBarLine: g, + hasBarLine: p, barSize: b, leftDelim: u, rightDelim: c - }, y); + }, x); } }); B({ @@ -7690,14 +7746,14 @@ B({ var { parser: t, funcName: a, - token: n + token: i } = r; return { type: "infix", mode: t.mode, replaceWith: "\\\\abovefrac", size: H(e[0], "size").value, - token: n + token: i }; } }); @@ -7712,55 +7768,57 @@ B({ var { parser: t, funcName: a - } = r, n = e[0], l = H(e[1], "infix").size; - if (!l) - throw new Error("\\\\abovefrac expected size, but got " + String(l)); - var u = e[2], h = l.number > 0; + } = r, i = e[0], s = H(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: n, + numer: i, denom: u, continued: !1, hasBarLine: h, - barSize: l, + barSize: s, leftDelim: null, rightDelim: null }; } }); -var f1 = (r, e) => { - var t = e.style, a, n; - r.type === "supsub" ? (a = r.sup ? U(r.sup, e.havingStyle(t.sup()), e) : U(r.sub, e.havingStyle(t.sub()), e), n = H(r.base, "horizBrace")) : n = H(r, "horizBrace"); - var l = U(n.base, e.havingBaseStyle(N.DISPLAY)), u = Pe(n, e), h; - if (n.isOver ? (h = G({ +var A1 = (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 = H(r.base, "horizBrace")) : i = H(r, "horizBrace"); + var s = X(i.base, e.havingBaseStyle(N.DISPLAY)), u = Pe(i, e), h; + if (i.isOver ? h = V({ positionType: "firstBaseline", children: [{ type: "elem", - elem: l + elem: s }, { type: "kern", size: 0.1 }, { type: "elem", - elem: u + elem: u, + wrapperClasses: ["svg-align"] }] - }), h.children[0].children[0].children[1].classes.push("svg-align")) : (h = G({ + }) : h = V({ positionType: "bottom", - positionData: l.depth + 0.1 + u.height, + positionData: s.depth + 0.1 + u.height, children: [{ type: "elem", - elem: u + elem: u, + wrapperClasses: ["svg-align"] }, { type: "kern", size: 0.1 }, { type: "elem", - elem: l + elem: s }] - }), h.children[0].children[0].children[0].classes.push("svg-align")), a) { - var c = k(["minner", n.isOver ? "mover" : "munder"], [h], e); - n.isOver ? h = G({ + }), a) { + var c = k(["minner", i.isOver ? "mover" : "munder"], [h], e); + i.isOver ? h = V({ positionType: "firstBaseline", children: [{ type: "elem", @@ -7772,7 +7830,7 @@ var f1 = (r, e) => { type: "elem", elem: a }] - }) : h = G({ + }) : h = V({ positionType: "bottom", positionData: c.depth + 0.2 + a.height + a.depth, children: [{ @@ -7787,10 +7845,10 @@ var f1 = (r, e) => { }] }); } - return k(["minner", n.isOver ? "mover" : "munder"], [h], e); -}, e4 = (r, e) => { + return k(["minner", i.isOver ? "mover" : "munder"], [h], e); +}, y4 = (r, e) => { var t = Le(r.label); - return new z(r.isOver ? "mover" : "munder", [Y(r.base, e), t]); + return new z(r.isOver ? "mover" : "munder", [$(r.base, e), t]); }; B({ type: "horizBrace", @@ -7811,8 +7869,8 @@ B({ base: e[0] }; }, - htmlBuilder: f1, - mathmlBuilder: e4 + htmlBuilder: A1, + mathmlBuilder: y4 }); B({ type: "href", @@ -7825,20 +7883,20 @@ B({ handler: (r, e) => { var { parser: t - } = r, a = e[1], n = H(e[0], "url").url; + } = r, a = e[1], i = H(e[0], "url").url; return t.settings.isTrusted({ command: "\\href", - url: n + url: i }) ? { type: "href", mode: t.mode, - href: n, - body: Q(a) + href: i, + body: _(a) } : t.formatUnsupportedCmd("\\href"); }, htmlBuilder: (r, e) => { var t = a0(r.body, e, !1); - return ga(r.href, [], t, e); + return Ea(r.href, [], t, e); }, mathmlBuilder: (r, e) => { var t = U0(r.body, e); @@ -7862,9 +7920,9 @@ B({ url: a })) return t.formatUnsupportedCmd("\\url"); - for (var n = [], l = 0; l < a.length; l++) { - var u = a[l]; - u === "~" && (u = "\\textasciitilde"), n.push({ + for (var i = [], s = 0; s < a.length; s++) { + var u = a[s]; + u === "~" && (u = "\\textasciitilde"), i.push({ type: "textord", mode: "text", text: u @@ -7874,13 +7932,13 @@ B({ type: "text", mode: t.mode, font: "\\texttt", - body: n + body: i }; return { type: "href", mode: t.mode, href: a, - body: Q(h) + body: _(h) }; } }); @@ -7900,15 +7958,15 @@ B({ return { type: "hbox", mode: t.mode, - body: Q(e[0]) + body: _(e[0]) }; }, htmlBuilder(r, e) { - var t = a0(r.body, e, !1); + var t = a0(r.body, e.withFont(""), !1); return E0(t); }, mathmlBuilder(r, e) { - return new z("mrow", p0(r.body, e)); + return new z("mrow", v0(r.body, e.withFont(""))); } }); B({ @@ -7923,36 +7981,36 @@ B({ var { parser: t, funcName: a, - token: n - } = r, l = H(e[0], "raw").string, u = e[1]; + token: i + } = r, s = H(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 = l, h = { + c.class = s, h = { command: "\\htmlClass", - class: l + class: s }; break; case "\\htmlId": - c.id = l, h = { + c.id = s, h = { command: "\\htmlId", - id: l + id: s }; break; case "\\htmlStyle": - c.style = l, h = { + c.style = s, h = { command: "\\htmlStyle", - style: l + style: s }; break; case "\\htmlData": { - for (var v = l.split(","), g = 0; g < v.length; g++) { - var b = v[g], y = b.indexOf("="); - if (y < 0) + for (var v = s.split(","), p = 0; p < v.length; p++) { + var b = v[p], x = b.indexOf("="); + if (x < 0) throw new S("\\htmlData key/value '" + b + "' missing equals sign"); - var x = b.slice(0, y), M = b.slice(y + 1); - c["data-" + x.trim()] = M; + var y = b.slice(0, x), T = b.slice(x + 1); + c["data-" + y.trim()] = T; } h = { command: "\\htmlData", @@ -7967,16 +8025,16 @@ B({ type: "html", mode: t.mode, attributes: c, - body: Q(u) + body: _(u) } : t.formatUnsupportedCmd(a); }, htmlBuilder: (r, e) => { var t = a0(r.body, e, !1), a = ["enclosing"]; r.attributes.class && a.push(...r.attributes.class.trim().split(/\s+/)); - var n = k(a, t, e); - for (var l in r.attributes) - l !== "class" && r.attributes.hasOwnProperty(l) && n.setAttribute(l, r.attributes[l]); - return n; + 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) => U0(r.body, e) }); @@ -7995,8 +8053,8 @@ B({ return { type: "htmlmathml", mode: t.mode, - html: Q(e[0]), - mathml: Q(e[1]) + html: _(e[0]), + mathml: _(e[1]) }; }, htmlBuilder: (r, e) => { @@ -8019,7 +8077,7 @@ var ot = function(e) { // sign + magnitude, cast to number unit: t[3] }; - if (!qr(a)) + if (!Ur(a)) throw new S("Invalid unit: '" + a.unit + "' in \\includegraphics."); return a; }; @@ -8035,10 +8093,10 @@ B({ handler: (r, e, t) => { var { parser: a - } = r, n = { + } = r, i = { number: 0, unit: "em" - }, l = { + }, s = { number: 0.9, unit: "em" }, u = { @@ -8046,61 +8104,61 @@ B({ unit: "em" }, h = ""; if (t[0]) - for (var c = H(t[0], "raw").string, v = c.split(","), g = 0; g < v.length; g++) { - var b = v[g].split("="); + for (var c = H(t[0], "raw").string, v = c.split(","), p = 0; p < v.length; p++) { + var b = v[p].split("="); if (b.length === 2) { - var y = b[1].trim(); + var x = b[1].trim(); switch (b[0].trim()) { case "alt": - h = y; + h = x; break; case "width": - n = ot(y); + i = ot(x); break; case "height": - l = ot(y); + s = ot(x); break; case "totalheight": - u = ot(y); + u = ot(x); break; default: throw new S("Invalid key: '" + b[0] + "' in \\includegraphics."); } } } - var x = H(e[0], "url").url; - return h === "" && (h = x, h = h.replace(/^.*[\\/]/, ""), h = h.substring(0, h.lastIndexOf("."))), a.settings.isTrusted({ + var y = H(e[0], "url").url; + return h === "" && (h = y, h = h.replace(/^.*[\\/]/, ""), h = h.substring(0, h.lastIndexOf("."))), a.settings.isTrusted({ command: "\\includegraphics", - url: x + url: y }) ? { type: "includegraphics", mode: a.mode, alt: h, - width: n, - height: l, + width: i, + height: s, totalheight: u, - src: x + src: y } : a.formatUnsupportedCmd("\\includegraphics"); }, htmlBuilder: (r, e) => { var t = K(r.height, e), a = 0; r.totalheight.number > 0 && (a = K(r.totalheight, e) - t); - var n = 0; - r.width.number > 0 && (n = K(r.width, e)); - var l = { + var i = 0; + r.width.number > 0 && (i = K(r.width, e)); + var s = { height: A(t + a) }; - n > 0 && (l.width = A(n)), a > 0 && (l.verticalAlign = A(-a)); - var u = new ia(r.src, r.alt, l); + i > 0 && (s.width = A(i)), a > 0 && (s.verticalAlign = A(-a)); + var u = new xa(r.src, r.alt, s); return u.height = t, u.depth = a, u; }, mathmlBuilder: (r, e) => { var t = new z("mglyph", []); t.setAttribute("alt", r.alt); - var a = K(r.height, e), n = 0; - if (r.totalheight.number > 0 && (n = K(r.totalheight, e) - a, t.setAttribute("valign", A(-n))), t.setAttribute("height", A(a + n)), r.width.number > 0) { - var l = K(r.width, e); - t.setAttribute("width", A(l)); + var a = K(r.height, e), i = 0; + if (r.totalheight.number > 0 && (i = K(r.totalheight, e) - a, t.setAttribute("valign", A(-i))), t.setAttribute("height", A(a + i)), r.width.number > 0) { + var s = K(r.width, e); + t.setAttribute("width", A(s)); } return t.setAttribute("src", r.src), t; } @@ -8118,23 +8176,23 @@ B({ var { parser: t, funcName: a - } = r, n = H(e[0], "size"); + } = r, i = H(e[0], "size"); if (t.settings.strict) { - var l = a[1] === "m", u = n.value.unit === "mu"; - l ? (u || t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + a + " supports only mu units, " + ("not " + n.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"); + 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: n.value + dimension: i.value }; }, htmlBuilder(r, e) { - return Hr(r.dimension, e); + return jr(r.dimension, e); }, mathmlBuilder(r, e) { var t = K(r.dimension, e); - return new Vr(t); + return new e1(t); } }); B({ @@ -8148,22 +8206,22 @@ B({ var { parser: t, funcName: a - } = r, n = e[0]; + } = r, i = e[0]; return { type: "lap", mode: t.mode, alignment: a.slice(5), - body: n + body: i }; }, htmlBuilder: (r, e) => { var t; - r.alignment === "clap" ? (t = k([], [U(r.body, e)]), t = k(["inner"], [t], e)) : t = k(["inner"], [U(r.body, e)]); - var a = k(["fix"], []), n = k([r.alignment], [t, a], e), l = k(["strut"]); - return l.style.height = A(n.height + n.depth), n.depth && (l.style.verticalAlign = A(-n.depth)), n.children.unshift(l), n = k(["thinbox"], [n], e), k(["mord", "vbox"], [n], e); + 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 z("mpadded", [Y(r.body, e)]); + var t = new z("mpadded", [$(r.body, e)]); if (r.alignment !== "rlap") { var a = r.alignment === "llap" ? "-1" : "-0.5"; t.setAttribute("lspace", a + "width"); @@ -8183,13 +8241,14 @@ B({ var { funcName: t, parser: a - } = r, n = a.mode; + } = r, i = a.mode; a.switchMode("math"); - var l = t === "\\(" ? "\\)" : "$", u = a.parseExpression(!1, l); - return a.expect(l), a.switchMode(n), { + 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 }; } @@ -8207,7 +8266,7 @@ B({ throw new S("Mismatched " + r.funcName); } }); -var gr = (r, e) => { +var Cr = (r, e) => { switch (e.style.size) { case N.DISPLAY.size: return r.display; @@ -8235,51 +8294,51 @@ B({ return { type: "mathchoice", mode: t.mode, - display: Q(e[0]), - text: Q(e[1]), - script: Q(e[2]), - scriptscript: Q(e[3]) + display: _(e[0]), + text: _(e[1]), + script: _(e[2]), + scriptscript: _(e[3]) }; }, htmlBuilder: (r, e) => { - var t = gr(r, e), a = a0(t, e, !1); + var t = Cr(r, e), a = a0(t, e, !1); return E0(a); }, mathmlBuilder: (r, e) => { - var t = gr(r, e); + var t = Cr(r, e); return U0(t, e); } }); -var v1 = (r, e, t, a, n, l, u) => { +var M1 = (r, e, t, a, i, s, u) => { r = k([], [r]); - var h = t && C0(t), c, v; + var h = t && D0(t), c, v; if (e) { - var g = U(e, a.havingStyle(n.sup()), a); + var p = X(e, a.havingStyle(i.sup()), a); v = { - elem: g, - kern: Math.max(a.fontMetrics().bigOpSpacing1, a.fontMetrics().bigOpSpacing3 - g.depth) + elem: p, + kern: Math.max(a.fontMetrics().bigOpSpacing1, a.fontMetrics().bigOpSpacing3 - p.depth) }; } if (t) { - var b = U(t, a.havingStyle(n.sub()), a); + var b = X(t, a.havingStyle(i.sub()), a); c = { elem: b, kern: Math.max(a.fontMetrics().bigOpSpacing2, a.fontMetrics().bigOpSpacing4 - b.height) }; } - var y; + var x; if (v && c) { - var x = a.fontMetrics().bigOpSpacing5 + c.elem.height + c.elem.depth + c.kern + r.depth + u; - y = G({ + var y = a.fontMetrics().bigOpSpacing5 + c.elem.height + c.elem.depth + c.kern + r.depth + u; + x = V({ positionType: "bottom", - positionData: x, + positionData: y, children: [{ type: "kern", size: a.fontMetrics().bigOpSpacing5 }, { type: "elem", elem: c.elem, - marginLeft: A(-l) + marginLeft: A(-s) }, { type: "kern", size: c.kern @@ -8292,24 +8351,24 @@ var v1 = (r, e, t, a, n, l, u) => { }, { type: "elem", elem: v.elem, - marginLeft: A(l) + marginLeft: A(s) }, { type: "kern", size: a.fontMetrics().bigOpSpacing5 }] }); } else if (c) { - var M = r.height - u; - y = G({ + var T = r.height - u; + x = V({ positionType: "top", - positionData: M, + positionData: T, children: [{ type: "kern", size: a.fontMetrics().bigOpSpacing5 }, { type: "elem", elem: c.elem, - marginLeft: A(-l) + marginLeft: A(-s) }, { type: "kern", size: c.kern @@ -8319,10 +8378,10 @@ var v1 = (r, e, t, a, n, l, u) => { }] }); } else if (v) { - var T = r.depth + u; - y = G({ + var M = r.depth + u; + x = V({ positionType: "bottom", - positionData: T, + positionData: M, children: [{ type: "elem", elem: r @@ -8332,7 +8391,7 @@ var v1 = (r, e, t, a, n, l, u) => { }, { type: "elem", elem: v.elem, - marginLeft: A(l) + marginLeft: A(s) }, { type: "kern", size: a.fontMetrics().bigOpSpacing5 @@ -8340,23 +8399,23 @@ var v1 = (r, e, t, a, n, l, u) => { }); } else return r; - var C = [y]; - if (c && l !== 0 && !h) { - var q = k(["mspace"], [], a); - q.style.marginRight = A(l), C.unshift(q); - } - return k(["mop", "op-limits"], C, a); -}, p1 = /* @__PURE__ */ new Set(["\\smallint"]), le = (r, e) => { - var t, a, n = !1, l; - r.type === "supsub" ? (t = r.sup, a = r.sub, l = H(r.base, "op"), n = !0) : l = H(r, "op"); + 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); +}, T1 = /* @__PURE__ */ new Set(["\\smallint"]), se = (r, e) => { + var t, a, i = !1, s; + r.type === "supsub" ? (t = r.sup, a = r.sub, s = H(r.base, "op"), i = !0) : s = H(r, "op"); var u = e.style, h = !1; - u.size === N.DISPLAY.size && l.symbol && !p1.has(l.name) && (h = !0); - var c; - if (l.symbol) { - var v = h ? "Size2-Regular" : "Size1-Regular", g = ""; - if ((l.name === "\\oiint" || l.name === "\\oiiint") && (g = l.name.slice(1), l.name = g === "oiint" ? "\\iint" : "\\iiint"), c = s0(l.name, v, "math", e, ["mop", "op-symbol", h ? "large-op" : "small-op"]), g.length > 0) { - var b = c.italic, y = Lr(g + "Size" + (h ? "2" : "1"), e); - c = G({ + u.size === N.DISPLAY.size && s.symbol && !T1.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 = Kr(b + "Size" + (h ? "2" : "1"), e); + c = V({ positionType: "individualShift", children: [{ type: "elem", @@ -8364,34 +8423,38 @@ var v1 = (r, e, t, a, n, l, u) => { shift: 0 }, { type: "elem", - elem: y, + elem: x, shift: h ? 0.08 : 0 }] - }), l.name = "\\" + g, c.classes.unshift("mop"), c.italic = b; + }), s.name = "\\" + b, c.classes.unshift("mop"), c.italic = v; } - } else if (l.body) { - var x = a0(l.body, e, !0); - x.length === 1 && x[0] instanceof f0 ? (c = x[0], c.classes[0] = "mop") : c = k(["mop"], x, e); + } else if (s.body) { + var y = a0(s.body, e, !0); + y.length === 1 && y[0] instanceof d0 ? (c = y[0], c.classes[0] = "mop") : c = k(["mop"], y, e); } else { - for (var M = [], T = 1; T < l.name.length; T++) - M.push(qt(l.name[T], l.mode, e)); - c = k(["mop"], M, e); + for (var T = [], M = 1; M < s.name.length; M++) + T.push(Ft(s.name[M], s.mode, e)); + c = k(["mop"], T, e); + } + var q = 0, C = 0; + if ((c instanceof d0 || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift) { + var R; + q = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, C = (R = c.italic) != null ? R : 0; } - var C = 0, q = 0; - return (c instanceof f0 || l.name === "\\oiint" || l.name === "\\oiiint") && !l.suppressBaseShift && (C = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, q = c.italic || 0), n ? v1(c, t, a, e, u, q, C) : (C && (c.style.position = "relative", c.style.top = A(C)), c); -}, de = (r, e) => { + return i ? M1(c, t, a, e, u, C, q) : (q && (c.style.position = "relative", c.style.top = A(q)), c); +}, fe = (r, e) => { var t; if (r.symbol) - t = new z("mo", [b0(r.name, r.mode)]), p1.has(r.name) && t.setAttribute("largeop", "false"); + t = new z("mo", [g0(r.name, r.mode)]), T1.has(r.name) && t.setAttribute("largeop", "false"); else if (r.body) - t = new z("mo", p0(r.body, e)); + t = new z("mo", v0(r.body, e)); else { - t = new z("mi", [new _(r.name.slice(1))]); - var a = new z("mo", [b0("⁡", "text")]); - r.parentIsSupSub ? t = new z("mrow", [t, a]) : t = Ur([t, a]); + t = new z("mi", [new e0(r.name.slice(1))]); + var a = new z("mo", [g0("⁡", "text")]); + r.parentIsSupSub ? t = new z("mrow", [t, a]) : t = _r([t, a]); } return t; -}, t4 = { +}, x4 = { "∏": "\\prod", "∐": "\\coprod", "∑": "\\sum", @@ -8415,18 +8478,18 @@ B({ var { parser: t, funcName: a - } = r, n = a; - return n.length === 1 && (n = t4[n]), { + } = r, i = a; + return i.length === 1 && (i = x4[i]), { type: "op", mode: t.mode, limits: !0, parentIsSupSub: !1, symbol: !0, - name: n + name: i }; }, - htmlBuilder: le, - mathmlBuilder: de + htmlBuilder: se, + mathmlBuilder: fe }); B({ type: "op", @@ -8445,13 +8508,13 @@ B({ limits: !1, parentIsSupSub: !1, symbol: !1, - body: Q(a) + body: _(a) }; }, - htmlBuilder: le, - mathmlBuilder: de + htmlBuilder: se, + mathmlBuilder: fe }); -var r4 = { +var w4 = { "∫": "\\int", "∬": "\\iint", "∭": "\\iiint", @@ -8479,8 +8542,8 @@ B({ name: t }; }, - htmlBuilder: le, - mathmlBuilder: de + htmlBuilder: se, + mathmlBuilder: fe }); B({ type: "op", @@ -8502,8 +8565,8 @@ B({ name: t }; }, - htmlBuilder: le, - mathmlBuilder: de + htmlBuilder: se, + mathmlBuilder: fe }); B({ type: "op", @@ -8517,7 +8580,7 @@ B({ parser: e, funcName: t } = r, a = t; - return a.length === 1 && (a = r4[a]), { + return a.length === 1 && (a = w4[a]), { type: "op", mode: e.mode, limits: !1, @@ -8526,34 +8589,34 @@ B({ name: a }; }, - htmlBuilder: le, - mathmlBuilder: de + htmlBuilder: se, + mathmlBuilder: fe }); -var g1 = (r, e) => { - var t, a, n = !1, l; - r.type === "supsub" ? (t = r.sup, a = r.sub, l = H(r.base, "operatorname"), n = !0) : l = H(r, "operatorname"); +var B1 = (r, e) => { + var t, a, i = !1, s; + r.type === "supsub" ? (t = r.sup, a = r.sub, s = H(r.base, "operatorname"), i = !0) : s = H(r, "operatorname"); var u; - if (l.body.length > 0) { - for (var h = l.body.map((b) => { - var y = "text" in b ? b.text : void 0; - return typeof y == "string" ? { + 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: y + text: x } : b; }), c = a0(h, e.withFont("mathrm"), !0), v = 0; v < c.length; v++) { - var g = c[v]; - g instanceof f0 && (g.text = g.text.replace(/\u2212/, "-").replace(/\u2217/, "*")); + var p = c[v]; + p instanceof d0 && (p.text = p.text.replace(/\u2212/, "-").replace(/\u2217/, "*")); } u = k(["mop"], c, e); } else u = k(["mop"], [], e); - return n ? v1(u, t, a, e, e.style, 0, 0) : u; -}, a4 = (r, e) => { - for (var t = p0(r.body, e.withFont("mathrm")), a = !0, n = 0; n < t.length; n++) { - var l = t[n]; - if (!(l instanceof Vr)) if (l instanceof z) - switch (l.type) { + return i ? M1(u, t, a, e, e.style, 0, 0) : u; +}, k4 = (r, e) => { + for (var t = v0(r.body, e.withFont("mathrm")), a = !0, i = 0; i < t.length; i++) { + var s = t[i]; + if (!(s instanceof e1)) if (s instanceof z) + switch (s.type) { case "mi": case "mn": case "mspace": @@ -8561,8 +8624,8 @@ var g1 = (r, e) => { break; // Do nothing yet. case "mo": { - var u = l.children[0]; - l.children.length === 1 && u instanceof _ ? u.text = u.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : a = !1; + var u = s.children[0]; + s.children.length === 1 && u instanceof e0 ? u.text = u.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : a = !1; break; } default: @@ -8572,13 +8635,13 @@ var g1 = (r, e) => { a = !1; } if (a) { - var h = t.map((g) => g.toText()).join(""); - t = [new _(h)]; + var h = t.map((p) => p.toText()).join(""); + t = [new e0(h)]; } var c = new z("mi", t); c.setAttribute("mathvariant", "normal"); - var v = new z("mo", [b0("⁡", "text")]); - return r.parentIsSupSub ? new z("mrow", [c, v]) : Ur([c, v]); + var v = new z("mo", [g0("⁡", "text")]); + return r.parentIsSupSub ? new z("mrow", [c, v]) : _r([c, v]); }; B({ type: "operatorname", @@ -8590,21 +8653,21 @@ B({ var { parser: t, funcName: a - } = r, n = e[0]; + } = r, i = e[0]; return { type: "operatorname", mode: t.mode, - body: Q(n), + body: _(i), alwaysHandleSupSub: a === "\\operatornamewithlimits", limits: !1, parentIsSupSub: !1 }; }, - htmlBuilder: g1, - mathmlBuilder: a4 + htmlBuilder: B1, + mathmlBuilder: k4 }); m("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@"); -$0({ +W0({ type: "ordgroup", htmlBuilder(r, e) { return r.semisimple ? E0(a0(r.body, e, !1)) : k(["mord"], a0(r.body, e, !0), e); @@ -8630,28 +8693,28 @@ B({ }; }, htmlBuilder(r, e) { - var t = U(r.body, e.havingCrampedStyle()), a = te("overline-line", e), n = e.fontMetrics().defaultRuleThickness, l = G({ + var t = X(r.body, e.havingCrampedStyle()), a = te("overline-line", e), i = e.fontMetrics().defaultRuleThickness, s = V({ positionType: "firstBaseline", children: [{ type: "elem", elem: t }, { type: "kern", - size: 3 * n + size: 3 * i }, { type: "elem", elem: a }, { type: "kern", - size: n + size: i }] }); - return k(["mord", "overline"], [l], e); + return k(["mord", "overline"], [s], e); }, mathmlBuilder(r, e) { - var t = new z("mo", [new _("‾")]); + var t = new z("mo", [new e0("‾")]); t.setAttribute("stretchy", "true"); - var a = new z("mover", [Y(r.body, e), t]); + var a = new z("mover", [$(r.body, e), t]); return a.setAttribute("accent", "true"), a; } }); @@ -8669,7 +8732,7 @@ B({ return { type: "phantom", mode: t.mode, - body: Q(a) + body: _(a) }; }, htmlBuilder: (r, e) => { @@ -8677,7 +8740,7 @@ B({ return E0(t); }, mathmlBuilder: (r, e) => { - var t = p0(r.body, e); + var t = v0(r.body, e); return new z("mphantom", t); } }); @@ -8700,12 +8763,12 @@ B({ }; }, htmlBuilder: (r, e) => { - var t = k(["inner"], [U(r.body, e.withPhantom())]), a = k(["fix"], []); + var t = k(["inner"], [X(r.body, e.withPhantom())]), a = k(["fix"], []); return k(["mord", "rlap"], [t, a], e); }, mathmlBuilder: (r, e) => { - var t = p0(Q(r.body), e), a = new z("mphantom", t), n = new z("mpadded", [a]); - return n.setAttribute("width", "0px"), n; + var t = v0(_(r.body), e), a = new z("mphantom", t), i = new z("mpadded", [a]); + return i.setAttribute("width", "0px"), i; } }); B({ @@ -8719,17 +8782,17 @@ B({ handler(r, e) { var { parser: t - } = r, a = H(e[0], "size").value, n = e[1]; + } = r, a = H(e[0], "size").value, i = e[1]; return { type: "raisebox", mode: t.mode, dy: a, - body: n + body: i }; }, htmlBuilder(r, e) { - var t = U(r.body, e), a = K(r.dy, e); - return G({ + var t = X(r.body, e), a = K(r.dy, e); + return V({ positionType: "shift", positionData: -a, children: [{ @@ -8739,7 +8802,7 @@ B({ }); }, mathmlBuilder(r, e) { - var t = new z("mpadded", [Y(r.body, e)]), a = r.dy.number + r.dy.unit; + var t = new z("mpadded", [$(r.body, e)]), a = r.dy.number + r.dy.unit; return t.setAttribute("voffset", a), t; } }); @@ -8774,40 +8837,40 @@ B({ handler(r, e, t) { var { parser: a - } = r, n = t[0], l = H(e[0], "size"), u = H(e[1], "size"); + } = r, i = t[0], s = H(e[0], "size"), u = H(e[1], "size"); return { type: "rule", mode: a.mode, - shift: n && H(n, "size").value, - width: l.value, + shift: i && H(i, "size").value, + width: s.value, height: u.value }; }, htmlBuilder(r, e) { - var t = k(["mord", "rule"], [], e), a = K(r.width, e), n = K(r.height, e), l = r.shift ? K(r.shift, e) : 0; - return t.style.borderRightWidth = A(a), t.style.borderTopWidth = A(n), t.style.bottom = A(l), t.width = a, t.height = n + l, t.depth = -l, t.maxFontSize = n * 1.125 * e.sizeMultiplier, t; + var t = k(["mord", "rule"], [], e), a = K(r.width, e), i = K(r.height, e), s = r.shift ? K(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 = K(r.width, e), a = K(r.height, e), n = r.shift ? K(r.shift, e) : 0, l = e.color && e.getColor() || "black", u = new z("mspace"); - u.setAttribute("mathbackground", l), u.setAttribute("width", A(t)), u.setAttribute("height", A(a)); + var t = K(r.width, e), a = K(r.height, e), i = r.shift ? K(r.shift, e) : 0, s = e.color && e.getColor() || "black", u = new z("mspace"); + u.setAttribute("mathbackground", s), u.setAttribute("width", A(t)), u.setAttribute("height", A(a)); var h = new z("mpadded", [u]); - return n >= 0 ? h.setAttribute("height", A(n)) : (h.setAttribute("height", A(n)), h.setAttribute("depth", A(-n))), h.setAttribute("voffset", A(n)), h; + 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 b1(r, e, t) { - for (var a = a0(r, e, !1), n = e.sizeMultiplier / t.sizeMultiplier, l = 0; l < a.length; l++) { - var u = a[l].classes.indexOf("sizing"); - u < 0 ? Array.prototype.push.apply(a[l].classes, e.sizingClasses(t)) : a[l].classes[u + 1] === "reset-size" + e.size && (a[l].classes[u + 1] = "reset-size" + t.size), a[l].height *= n, a[l].depth *= n; +function C1(r, e, t) { + for (var a = a0(r, e, !1), i = e.sizeMultiplier / t.sizeMultiplier, s = 0; s < a.length; s++) { + var u = a[s].classes.indexOf("sizing"); + u < 0 ? Array.prototype.push.apply(a[s].classes, e.sizingClasses(t)) : a[s].classes[u + 1] === "reset-size" + e.size && (a[s].classes[u + 1] = "reset-size" + t.size), a[s].height *= i, a[s].depth *= i; } return E0(a); } -var br = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], n4 = (r, e) => { +var Dr = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], S4 = (r, e) => { var t = e.havingSize(r.size); - return b1(r.body, t, e); + return C1(r.body, t, e); }; B({ type: "sizing", - names: br, + names: Dr, props: { numArgs: 0, allowedInText: !0 @@ -8816,20 +8879,20 @@ B({ var { breakOnTokenText: t, funcName: a, - parser: n - } = r, l = n.parseExpression(!1, t); + parser: i + } = r, s = i.parseExpression(!1, t); return { type: "sizing", - mode: n.mode, + mode: i.mode, // Figure out what size to use based on the list of functions above - size: br.indexOf(a) + 1, - body: l + size: Dr.indexOf(a) + 1, + body: s }; }, - htmlBuilder: n4, + htmlBuilder: S4, mathmlBuilder: (r, e) => { - var t = e.havingSize(r.size), a = p0(r.body, t), n = new z("mstyle", a); - return n.setAttribute("mathsize", A(t.sizeMultiplier)), n; + var t = e.havingSize(r.size), a = v0(r.body, t), i = new z("mstyle", a); + return i.setAttribute("mathsize", A(t.sizeMultiplier)), i; } }); B({ @@ -8843,32 +8906,32 @@ B({ handler: (r, e, t) => { var { parser: a - } = r, n = !1, l = !1, u = t[0] && H(t[0], "ordgroup"); + } = r, i = !1, s = !1, u = t[0] && H(t[0], "ordgroup"); if (u) - for (var h = "", c = 0; c < u.body.length; ++c) { + for (var h, c = 0; c < u.body.length; ++c) { var v = u.body[c]; if (h = Ge(v).text, h === "t") - n = !0; + i = !0; else if (h === "b") - l = !0; + s = !0; else { - n = !1, l = !1; + i = !1, s = !1; break; } } else - n = !0, l = !0; - var g = e[0]; + i = !0, s = !0; + var p = e[0]; return { type: "smash", mode: a.mode, - body: g, - smashHeight: n, - smashDepth: l + body: p, + smashHeight: i, + smashDepth: s }; }, htmlBuilder: (r, e) => { - var t = k([], [U(r.body, e)]); + 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) @@ -8876,17 +8939,17 @@ B({ if (t.children) for (var a = 0; a < t.children.length; a++) r.smashHeight && (t.children[a].height = 0), r.smashDepth && (t.children[a].depth = 0); - var n = G({ + var i = V({ positionType: "firstBaseline", children: [{ type: "elem", elem: t }] }); - return k(["mord"], [n], e); + return k(["mord"], [i], e); }, mathmlBuilder: (r, e) => { - var t = new z("mpadded", [Y(r.body, e)]); + var t = new z("mpadded", [$(r.body, e)]); return r.smashHeight && t.setAttribute("height", "0px"), r.smashDepth && t.setAttribute("depth", "0px"), t; } }); @@ -8900,28 +8963,28 @@ B({ handler(r, e, t) { var { parser: a - } = r, n = t[0], l = e[0]; + } = r, i = t[0], s = e[0]; return { type: "sqrt", mode: a.mode, - body: l, - index: n + body: s, + index: i }; }, htmlBuilder(r, e) { - var t = U(r.body, e.havingCrampedStyle()); + var t = X(r.body, e.havingCrampedStyle()); t.height === 0 && (t.height = e.fontMetrics().xHeight), t = re(t, e); - var a = e.fontMetrics(), n = a.defaultRuleThickness, l = n; - e.style.id < N.TEXT.id && (l = e.fontMetrics().xHeight); - var u = n + l / 4, h = t.height + t.depth + u + n, { + var a = e.fontMetrics(), i = a.defaultRuleThickness, s = i; + e.style.id < N.TEXT.id && (s = e.fontMetrics().xHeight); + var u = i + s / 4, h = t.height + t.depth + u + i, { span: c, ruleWidth: v, - advanceWidth: g - } = Xa(h, e), b = c.height - v; + advanceWidth: p + } = o4(h, e), b = c.height - v; b > t.height + t.depth + u && (u = (u + b - t.height - t.depth) / 2); - var y = c.height - t.height - u - v; - t.style.paddingLeft = A(g); - var x = G({ + var x = c.height - t.height - u - v; + t.style.paddingLeft = A(p); + var y = V({ positionType: "firstBaseline", children: [{ type: "elem", @@ -8929,7 +8992,7 @@ B({ wrapperClasses: ["svg-align"] }, { type: "kern", - size: -(t.height + y) + size: -(t.height + x) }, { type: "elem", elem: c @@ -8939,32 +9002,35 @@ B({ }] }); if (r.index) { - var M = e.havingStyle(N.SCRIPTSCRIPT), T = U(r.index, M, e), C = 0.6 * (x.height - x.depth), q = G({ + var T = e.havingStyle(N.SCRIPTSCRIPT), M = X(r.index, T, e), q = 0.6 * (y.height - y.depth), C = V({ positionType: "shift", - positionData: -C, + positionData: -q, children: [{ type: "elem", - elem: T + elem: M }] - }), I = k(["root"], [q]); - return k(["mord", "sqrt"], [I, x], e); + }), R = k(["root"], [C]); + return k(["mord", "sqrt"], [R, y], e); } else - return k(["mord", "sqrt"], [x], e); + return k(["mord", "sqrt"], [y], e); }, mathmlBuilder(r, e) { var { body: t, index: a } = r; - return a ? new z("mroot", [Y(t, e), Y(a, e)]) : new z("msqrt", [Y(t, e)]); + return a ? new z("mroot", [$(t, e), $(a, e)]) : new z("msqrt", [$(t, e)]); } }); -var yr = { +var Dt = { display: N.DISPLAY, text: N.TEXT, script: N.SCRIPT, scriptscript: N.SCRIPTSCRIPT }; +function z4(r) { + return r in Dt; +} B({ type: "styling", names: ["\\displaystyle", "\\textstyle", "\\scriptstyle", "\\scriptscriptstyle"], @@ -8977,135 +9043,142 @@ B({ var { breakOnTokenText: t, funcName: a, - parser: n - } = r, l = n.parseExpression(!0, t), u = a.slice(1, a.length - 5); + parser: i + } = r, s = i.parseExpression(!0, t), u = a.slice(1, a.length - 5); + if (!z4(u)) + throw new Error("Unknown style: " + u); return { type: "styling", - mode: n.mode, + mode: i.mode, // Figure out what style to use by pulling out the style from // the function name style: u, - body: l + body: s }; }, htmlBuilder(r, e) { - var t = yr[r.style], a = e.havingStyle(t).withFont(""); - return b1(r.body, a, e); + var t = Dt[r.style], a = e.havingStyle(t); + return r.resetFont && (a = a.withFont("")), C1(r.body, a, e); }, mathmlBuilder(r, e) { - var t = yr[r.style], a = e.havingStyle(t), n = p0(r.body, a), l = new z("mstyle", n), u = { + var t = Dt[r.style], a = e.havingStyle(t); + r.resetFont && (a = a.withFont("")); + var i = v0(r.body, a), s = new z("mstyle", i), u = { display: ["0", "true"], text: ["0", "false"], script: ["1", "false"], scriptscript: ["2", "false"] }, h = u[r.style]; - return l.setAttribute("scriptlevel", h[0]), l.setAttribute("displaystyle", h[1]), l; + return s.setAttribute("scriptlevel", h[0]), s.setAttribute("displaystyle", h[1]), s; } }); -var i4 = function(e, t) { +var A4 = function(e, t) { var a = e.base; if (a) if (a.type === "op") { - var n = a.limits && (t.style.size === N.DISPLAY.size || a.alwaysHandleSupSub); - return n ? le : null; + var i = a.limits && (t.style.size === N.DISPLAY.size || a.alwaysHandleSupSub); + return i ? se : null; } else if (a.type === "operatorname") { - var l = a.alwaysHandleSupSub && (t.style.size === N.DISPLAY.size || a.limits); - return l ? g1 : null; + var s = a.alwaysHandleSupSub && (t.style.size === N.DISPLAY.size || a.limits); + return s ? B1 : null; } else { if (a.type === "accent") - return C0(a.base) ? Nt : null; + return D0(a.base) ? Pt : null; if (a.type === "horizBrace") { var u = !e.sub; - return u === a.isOver ? f1 : null; + return u === a.isOver ? A1 : null; } else return null; } else return null; }; -$0({ +W0({ type: "supsub", htmlBuilder(r, e) { - var t = i4(r, e); + var t = A4(r, e); if (t) return t(r, e); var { base: a, - sup: n, - sub: l - } = r, u = U(a, e), h, c, v = e.fontMetrics(), g = 0, b = 0, y = a && C0(a); - if (n) { - var x = e.havingStyle(e.style.sup()); - h = U(n, x, e), y || (g = u.height - x.fontMetrics().supDrop * x.sizeMultiplier / e.sizeMultiplier); + sup: i, + sub: s + } = r, u = X(a, e), h, c, v = e.fontMetrics(), p = 0, b = 0, x = a && D0(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 (l) { - var M = e.havingStyle(e.style.sub()); - c = U(l, M, e), y || (b = u.depth + M.fontMetrics().subDrop * M.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 T; - e.style === N.DISPLAY ? T = v.sup1 : e.style.cramped ? T = v.sup3 : T = v.sup2; - var C = e.sizeMultiplier, q = A(0.5 / v.ptPerEm / C), I = null; + var M; + e.style === N.DISPLAY ? M = v.sup1 : e.style.cramped ? M = v.sup3 : M = v.sup2; + var q = e.sizeMultiplier, C = A(0.5 / v.ptPerEm / q), R = null; if (c) { - var O = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint"); - (u instanceof f0 || O) && (I = A(-u.italic)); + var F = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint"); + if (u instanceof d0 || F) { + var L; + R = A(-((L = u.italic) != null ? L : 0)); + } } - var F; + var O; if (h && c) { - g = Math.max(g, T, h.depth + 0.25 * v.xHeight), b = Math.max(b, v.sub2); - var V = v.defaultRuleThickness, L = 4 * V; - if (g - h.depth - (c.height - b) < L) { - b = L - (g - h.depth) + c.height; - var P = 0.8 * v.xHeight - (g - h.depth); - P > 0 && (g += P, b -= P); + p = Math.max(p, M, h.depth + 0.25 * v.xHeight), b = Math.max(b, v.sub2); + var P = v.defaultRuleThickness, G = 4 * P; + if (p - h.depth - (c.height - b) < G) { + b = G - (p - h.depth) + c.height; + var Y = 0.8 * v.xHeight - (p - h.depth); + Y > 0 && (p += Y, b -= Y); } - var W = [{ + var U = [{ type: "elem", elem: c, shift: b, - marginRight: q, - marginLeft: I + marginRight: C, + marginLeft: R }, { type: "elem", elem: h, - shift: -g, - marginRight: q + shift: -p, + marginRight: C }]; - F = G({ + O = V({ positionType: "individualShift", - children: W + children: U }); } else if (c) { b = Math.max(b, v.sub1, c.height - 0.8 * v.xHeight); - var X = [{ + var o0 = [{ type: "elem", elem: c, - marginLeft: I, - marginRight: q + marginLeft: R, + marginRight: C }]; - F = G({ + O = V({ positionType: "shift", positionData: b, - children: X + children: o0 }); } else if (h) - g = Math.max(g, T, h.depth + 0.25 * v.xHeight), F = G({ + p = Math.max(p, M, h.depth + 0.25 * v.xHeight), O = V({ positionType: "shift", - positionData: -g, + positionData: -p, children: [{ type: "elem", elem: h, - marginRight: q + marginRight: C }] }); else throw new Error("supsub must have either sup or sub."); - var h0 = wt(u, "right") || "mord"; - return k([h0], [u, k(["msupsub"], [F])], e); + var m0 = At(u, "right") || "mord"; + return k([m0], [u, k(["msupsub"], [O])], e); }, mathmlBuilder(r, e) { - var t = !1, a, n; - r.base && r.base.type === "horizBrace" && (n = !!r.sup, n === r.base.isOver && (t = !0, a = r.base.isOver)), r.base && (r.base.type === "op" || r.base.type === "operatorname") && (r.base.parentIsSupSub = !0); - var l = [Y(r.base, e)]; - r.sub && l.push(Y(r.sub, e)), r.sup && l.push(Y(r.sup, 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"; @@ -9121,46 +9194,46 @@ $0({ 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 z(u, l); + return new z(u, s); } }); -$0({ +W0({ type: "atom", htmlBuilder(r, e) { - return qt(r.text, r.mode, e, ["m" + r.family]); + return Ft(r.text, r.mode, e, ["m" + r.family]); }, mathmlBuilder(r, e) { - var t = new z("mo", [b0(r.text, r.mode)]); + var t = new z("mo", [g0(r.text, r.mode)]); if (r.family === "bin") { - var a = It(r, e); + var a = Lt(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 y1 = { +var D1 = { mi: "italic", mn: "normal", mtext: "normal" }; -$0({ +W0({ type: "mathord", htmlBuilder(r, e) { - return Fe(r, e, "mathord"); + return Oe(r, e, "mathord"); }, mathmlBuilder(r, e) { - var t = new z("mi", [b0(r.text, r.mode, e)]), a = It(r, e) || "italic"; - return a !== y1[t.type] && t.setAttribute("mathvariant", a), t; + var t = new z("mi", [g0(r.text, r.mode, e)]), a = Lt(r, e) || "italic"; + return a !== D1[t.type] && t.setAttribute("mathvariant", a), t; } }); -$0({ +W0({ type: "textord", htmlBuilder(r, e) { - return Fe(r, e, "textord"); + return Oe(r, e, "textord"); }, mathmlBuilder(r, e) { - var t = b0(r.text, r.mode, e), a = It(r, e) || "normal", n; - return r.mode === "text" ? n = new z("mtext", [t]) : /[0-9]/.test(r.text) ? n = new z("mn", [t]) : r.text === "\\prime" ? n = new z("mo", [t]) : n = new z("mi", [t]), a !== y1[n.type] && n.setAttribute("mathvariant", a), n; + var t = g0(r.text, r.mode, e), a = Lt(r, e) || "normal", i; + return r.mode === "text" ? i = new z("mtext", [t]) : /[0-9]/.test(r.text) ? i = new z("mn", [t]) : r.text === "\\prime" ? i = new z("mo", [t]) : i = new z("mi", [t]), a !== D1[i.type] && i.setAttribute("mathvariant", a), i; } }); var ht = { @@ -9177,16 +9250,16 @@ var ht = { className: "nobreak" } }; -$0({ +W0({ type: "spacing", htmlBuilder(r, e) { if (mt.hasOwnProperty(r.text)) { var t = mt[r.text].className || ""; if (r.mode === "text") { - var a = Fe(r, e, "textord"); + var a = Oe(r, e, "textord"); return a.classes.push(t), a; } else - return k(["mspace", t], [qt(r.text, r.mode, e)], e); + return k(["mspace", t], [Ft(r.text, r.mode, e)], e); } else { if (ht.hasOwnProperty(r.text)) return k(["mspace", ht[r.text]], [], e); @@ -9196,7 +9269,7 @@ $0({ mathmlBuilder(r, e) { var t; if (mt.hasOwnProperty(r.text)) - t = new z("mtext", [new _(" ")]); + t = new z("mtext", [new e0(" ")]); else { if (ht.hasOwnProperty(r.text)) return new z("mspace"); @@ -9205,40 +9278,40 @@ $0({ return t; } }); -var xr = () => { +var qr = () => { var r = new z("mtd", []); return r.setAttribute("width", "50%"), r; }; -$0({ +W0({ type: "tag", mathmlBuilder(r, e) { - var t = new z("mtable", [new z("mtr", [xr(), new z("mtd", [U0(r.body, e)]), xr(), new z("mtd", [U0(r.tag, e)])])]); + var t = new z("mtable", [new z("mtr", [qr(), new z("mtd", [U0(r.body, e)]), qr(), new z("mtd", [U0(r.tag, e)])])]); return t.setAttribute("width", "100%"), t; } }); -var wr = { +var Er = { "\\text": void 0, "\\textrm": "textrm", "\\textsf": "textsf", "\\texttt": "texttt", "\\textnormal": "textrm" -}, kr = { +}, Rr = { "\\textbf": "textbf", "\\textmd": "textmd" -}, l4 = { +}, M4 = { "\\textit": "textit", "\\textup": "textup" -}, Sr = (r, e) => { +}, Ir = (r, e) => { var t = r.font; if (t) { - if (wr[t]) - return e.withTextFontFamily(wr[t]); - if (kr[t]) - return e.withTextFontWeight(kr[t]); + if (Er[t]) + return e.withTextFontFamily(Er[t]); + if (Rr[t]) + return e.withTextFontWeight(Rr[t]); if (t === "\\emph") return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit"); } else return e; - return e.withTextFontShape(l4[t]); + return e.withTextFontShape(M4[t]); }; B({ type: "text", @@ -9267,20 +9340,20 @@ B({ var { parser: t, funcName: a - } = r, n = e[0]; + } = r, i = e[0]; return { type: "text", mode: t.mode, - body: Q(n), + body: _(i), font: a }; }, htmlBuilder(r, e) { - var t = Sr(r, e), a = a0(r.body, t, !0); + var t = Ir(r, e), a = a0(r.body, t, !0); return k(["mord", "text"], a, t); }, mathmlBuilder(r, e) { - var t = Sr(r, e); + var t = Ir(r, e); return U0(r.body, t); } }); @@ -9302,29 +9375,29 @@ B({ }; }, htmlBuilder(r, e) { - var t = U(r.body, e), a = te("underline-line", e), n = e.fontMetrics().defaultRuleThickness, l = G({ + var t = X(r.body, e), a = te("underline-line", e), i = e.fontMetrics().defaultRuleThickness, s = V({ positionType: "top", positionData: t.height, children: [{ type: "kern", - size: n + size: i }, { type: "elem", elem: a }, { type: "kern", - size: 3 * n + size: 3 * i }, { type: "elem", elem: t }] }); - return k(["mord", "underline"], [l], e); + return k(["mord", "underline"], [s], e); }, mathmlBuilder(r, e) { - var t = new z("mo", [new _("‾")]); + var t = new z("mo", [new e0("‾")]); t.setAttribute("stretchy", "true"); - var a = new z("munder", [Y(r.body, e), t]); + var a = new z("munder", [$(r.body, e), t]); return a.setAttribute("accentunder", "true"), a; } }); @@ -9348,10 +9421,10 @@ B({ }; }, htmlBuilder(r, e) { - var t = U(r.body, e), a = e.fontMetrics().axisHeight, n = 0.5 * (t.height - a - (t.depth + a)); - return G({ + var t = X(r.body, e), a = e.fontMetrics().axisHeight, i = 0.5 * (t.height - a - (t.depth + a)); + return V({ positionType: "shift", - positionData: n, + positionData: i, children: [{ type: "elem", elem: t @@ -9359,7 +9432,7 @@ B({ }); }, mathmlBuilder(r, e) { - var t = new z("mpadded", [Y(r.body, e)], ["vcenter"]); + var t = new z("mpadded", [$(r.body, e)], ["vcenter"]); return new z("mrow", [t]); } }); @@ -9374,34 +9447,32 @@ B({ throw new S("\\verb ended by end of line instead of matching delimiter"); }, htmlBuilder(r, e) { - for (var t = zr(r), a = [], n = e.havingStyle(e.style.text()), l = 0; l < t.length; l++) { - var u = t[l]; - u === "~" && (u = "\\textasciitilde"), a.push(s0(u, "Typewriter-Regular", r.mode, n, ["mord", "texttt"])); + for (var t = Nr(r), a = [], i = e.havingStyle(e.style.text()), s = 0; s < t.length; s++) { + var u = t[s]; + u === "~" && (u = "\\textasciitilde"), a.push(s0(u, "Typewriter-Regular", r.mode, i, ["mord", "texttt"])); } - return k(["mord", "text"].concat(n.sizingClasses(e)), Or(a), n); + return k(["mord", "text"].concat(i.sizingClasses(e)), Wr(a), i); }, mathmlBuilder(r, e) { - var t = new _(zr(r)), a = new z("mtext", [t]); + var t = new e0(Nr(r)), a = new z("mtext", [t]); return a.setAttribute("mathvariant", "monospace"), a; } }); -var zr = (r) => r.body.replace(/ /g, r.star ? "␣" : " "), F0 = Pr, x1 = `[ \r - ]`, s4 = "\\\\[a-zA-Z@]+", u4 = "\\\\[^\uD800-\uDFFF]", o4 = "(" + s4 + ")" + x1 + "*", h4 = `\\\\( +var Nr = (r) => r.body.replace(/ /g, r.star ? "␣" : " "), O0 = Jr, q1 = `[ \r + ]`, T4 = "\\\\[a-zA-Z@]+", B4 = "\\\\[^\uD800-\uDFFF]", C4 = "(" + T4 + ")" + q1 + "*", D4 = `\\\\( |[ \r ]+ -?)[ \r ]*`, Mt = "[̀-ͯ]", m4 = new RegExp(Mt + "+$"), c4 = "(" + x1 + "+)|" + // whitespace -(h4 + "|") + // \whitespace +?)[ \r ]*`, qt = "[̀-ͯ]", q4 = new RegExp(qt + "+$"), E4 = "(" + q1 + "+)|" + // whitespace +(D4 + "|") + // \whitespace "([!-\\[\\]-‧‪-퟿豈-￿]" + // single codepoint -(Mt + "*") + // ...plus accents +(qt + "*") + // ...plus accents "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + // surrogate pair -(Mt + "*") + // ...plus accents +(qt + "*") + // ...plus accents "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + // \verb unstarred -("|" + o4) + // \macroName + spaces -("|" + u4 + ")"); -class Ar { - // Category codes. The lexer only supports comment characters (14) for now. - // MacroExpander additionally distinguishes active (13). +("|" + C4) + // \macroName + spaces +("|" + B4 + ")"); +class Fr { constructor(e, t) { - this.input = e, this.settings = t, this.tokenRegex = new RegExp(c4, "g"), this.catcodes = { + 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(E4, "g"), this.catcodes = { "%": 14, // comment character "~": 13 @@ -9417,20 +9488,20 @@ class Ar { lex() { var e = this.input, t = this.tokenRegex.lastIndex; if (t === e.length) - return new d0("EOF", new c0(this, t, t)); + return new c0("EOF", new h0(this, t, t)); var a = this.tokenRegex.exec(e); if (a === null || a.index !== t) - throw new S("Unexpected character: '" + e[t] + "'", new d0(e[t], new c0(this, t, t + 1))); - var n = a[6] || a[3] || (a[2] ? "\\ " : " "); - if (this.catcodes[n] === 14) { - var l = e.indexOf(` + throw new S("Unexpected character: '" + e[t] + "'", new c0(e[t], new h0(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 l === -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 = l + 1, this.lex(); + 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(n, new c0(this, t, this.tokenRegex.lastIndex)); + return new c0(i, new h0(this, t, this.tokenRegex.lastIndex)); } } -class d4 { +class R4 { /** * Both arguments are optional. The first argument is an object of * built-in mappings which never change. The second argument is an object @@ -9438,7 +9509,7 @@ class d4 { * according to any global/top-level `set`s done. */ constructor(e, t) { - e === void 0 && (e = {}), t === void 0 && (t = {}), this.current = t, this.builtins = e, this.undefStack = []; + 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 = []; } /** * Start a new nested group, affecting future local `set`s. @@ -9491,17 +9562,17 @@ class d4 { */ set(e, t, a) { if (a === void 0 && (a = !1), a) { - for (var n = 0; n < this.undefStack.length; n++) - delete this.undefStack[n][e]; + for (var i = 0; i < this.undefStack.length; i++) + delete this.undefStack[i][e]; this.undefStack.length > 0 && (this.undefStack[this.undefStack.length - 1][e] = t); } else { - var l = this.undefStack[this.undefStack.length - 1]; - l && !l.hasOwnProperty(e) && (l[e] = this.current[e]); + 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; } } -var f4 = o1; +var I4 = x1; m("\\noexpand", function(r) { var e = r.popToken(); return r.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), { @@ -9553,7 +9624,7 @@ m("\\TextOrMath", function(r) { numArgs: 0 }; }); -var Mr = { +var Hr = { 0: 0, 1: 1, 2: 2, @@ -9594,38 +9665,38 @@ m("\\char", function(r) { else t = 10; if (t) { - if (a = Mr[e.text], a == null || a >= t) + if (a = Hr[e.text], a == null || a >= t) throw new S("Invalid base-" + t + " digit " + e.text); - for (var n; (n = Mr[r.future().text]) != null && n < t; ) - a *= t, a += n, r.popToken(); + for (var i; (i = Hr[r.future().text]) != null && i < t; ) + a *= t, a += i, r.popToken(); } return "\\@char{" + a + "}"; }); -var Lt = (r, e, t, a) => { - var n = r.consumeArg().tokens; - if (n.length !== 1) +var Xt = (r, e, t, a) => { + var i = r.consumeArg().tokens; + if (i.length !== 1) throw new S("\\newcommand's first argument must be a macro name"); - var l = n[0].text, u = r.isDefined(l); + var s = i[0].text, u = r.isDefined(s); if (u && !e) - throw new S("\\newcommand{" + l + "} attempting to redefine " + (l + "; use \\renewcommand")); + throw new S("\\newcommand{" + s + "} attempting to redefine " + (s + "; use \\renewcommand")); if (!u && !t) - throw new S("\\renewcommand{" + l + "} when command " + l + " does not yet exist; use \\newcommand"); + throw new S("\\renewcommand{" + s + "} when command " + s + " does not yet exist; use \\newcommand"); var h = 0; - if (n = r.consumeArg().tokens, n.length === 1 && n[0].text === "[") { + 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 S("Invalid number of arguments: " + c); - h = parseInt(c), n = r.consumeArg().tokens; + h = parseInt(c), i = r.consumeArg().tokens; } - return u && a || r.macros.set(l, { - tokens: n, + return u && a || r.macros.set(s, { + tokens: i, numArgs: h }), ""; }; -m("\\newcommand", (r) => Lt(r, !1, !0, !1)); -m("\\renewcommand", (r) => Lt(r, !0, !1, !1)); -m("\\providecommand", (r) => Lt(r, !0, !0, !0)); +m("\\newcommand", (r) => Xt(r, !1, !0, !1)); +m("\\renewcommand", (r) => Xt(r, !0, !1, !1)); +m("\\providecommand", (r) => Xt(r, !0, !0, !0)); m("\\message", (r) => { var e = r.consumeArgs(1)[0]; return console.log(e.reverse().map((t) => t.text).join("")), ""; @@ -9636,7 +9707,7 @@ m("\\errmessage", (r) => { }); m("\\show", (r) => { var e = r.popToken(), t = e.text; - return console.log(e, r.macros.get(t), F0[t], $.math[t], $.text[t]), ""; + return console.log(e, r.macros.get(t), O0[t], W.math[t], W.text[t]), ""; }); m("\\bgroup", "{"); m("\\egroup", "}"); @@ -9712,7 +9783,7 @@ 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 Tr = { +var Or = { ",": "\\dotsc", "\\not": "\\dotsb", // \keybin@ checks for the following: @@ -9766,12 +9837,12 @@ var Tr = { "\\idotsint": "\\dotsi", // Symbols whose definition starts with \DOTSX: "\\DOTSX": "\\dotsx" -}, v4 = /* @__PURE__ */ new Set(["bin", "rel"]); +}, N4 = /* @__PURE__ */ new Set(["bin", "rel"]); m("\\dots", function(r) { var e = "\\dotso", t = r.expandAfterFuture().text; - return t in Tr ? e = Tr[t] : (t.slice(0, 4) === "\\not" || t in $.math && v4.has($.math[t].group)) && (e = "\\dotsb"), e; + return t in Or ? e = Or[t] : (t.slice(0, 4) === "\\not" || t in W.math && N4.has(W.math[t].group)) && (e = "\\dotsb"), e; }); -var Pt = { +var Yt = { // \rightdelim@ checks for the following: ")": !0, "]": !0, @@ -9797,15 +9868,15 @@ var Pt = { }; m("\\dotso", function(r) { var e = r.future().text; - return e in Pt ? "\\ldots\\," : "\\ldots"; + return e in Yt ? "\\ldots\\," : "\\ldots"; }); m("\\dotsc", function(r) { var e = r.future().text; - return e in Pt && e !== "," ? "\\ldots\\," : "\\ldots"; + return e in Yt && e !== "," ? "\\ldots\\," : "\\ldots"; }); m("\\cdots", function(r) { var e = r.future().text; - return e in Pt ? "\\@cdots\\," : "\\@cdots"; + return e in Yt ? "\\@cdots\\," : "\\@cdots"; }); m("\\dotsb", "\\cdots"); m("\\dotsm", "\\cdots"); @@ -9843,9 +9914,9 @@ 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 w1 = A(k0["Main-Regular"][84][1] - 0.7 * k0["Main-Regular"][65][1]); -m("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + w1 + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"); -m("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + w1 + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"); +var E1 = A(k0["Main-Regular"][84][1] - 0.7 * k0["Main-Regular"][65][1]); +m("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + E1 + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"); +m("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + E1 + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"); m("\\hspace", "\\@ifstar\\@hspacer\\@hspace"); m("\\@hspace", "\\hskip #1\\relax"); m("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax"); @@ -9991,35 +10062,35 @@ m("\\ket", "\\mathinner{|{#1}\\rangle}"); m("\\braket", "\\mathinner{\\langle{#1}\\rangle}"); m("\\Bra", "\\left\\langle#1\\right|"); m("\\Ket", "\\left|#1\\right\\rangle"); -var k1 = (r) => (e) => { - var t = e.consumeArg().tokens, a = e.consumeArg().tokens, n = e.consumeArg().tokens, l = e.consumeArg().tokens, u = e.macros.get("|"), h = e.macros.get("\\|"); +var R1 = (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) => (y) => { - r && (y.macros.set("|", u), n.length && y.macros.set("\\|", h)); - var x = b; - if (!b && n.length) { - var M = y.future(); - M.text === "|" && (y.popToken(), x = !0); + 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: x ? n : a, + tokens: y ? i : a, numArgs: 0 }; }; - e.macros.set("|", c(!1)), n.length && e.macros.set("\\|", c(!0)); - var v = e.consumeArg().tokens, g = e.expandTokens([ - ...l, + e.macros.set("|", c(!1)), i.length && e.macros.set("\\|", c(!0)); + var v = e.consumeArg().tokens, p = e.expandTokens([ + ...s, ...v, ...t // reversed ]); return e.macros.endGroup(), { - tokens: g.reverse(), + tokens: p.reverse(), numArgs: 0 }; }; -m("\\bra@ket", k1(!1)); -m("\\bra@set", k1(!0)); +m("\\bra@ket", R1(!1)); +m("\\bra@set", R1(!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}{}{\\,\\}}"); @@ -10080,7 +10151,7 @@ m("\\grayH", "\\textcolor{##3b3e40}{#1}"); m("\\grayI", "\\textcolor{##21242c}{#1}"); m("\\kaBlue", "\\textcolor{##314453}{#1}"); m("\\kaGreen", "\\textcolor{##71B307}{#1}"); -var S1 = { +var I1 = { "^": !0, // Parser.js _: !0, @@ -10090,16 +10161,16 @@ var S1 = { "\\nolimits": !0 // Parser.js }; -class p4 { +class F4 { constructor(e, t, a) { - this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new d4(f4, t.macros), this.mode = a, this.stack = []; + 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 R4(I4, t.macros), this.mode = a, this.stack = []; } /** * Feed a new input string to the same MacroExpander * (with existing macros etc.). */ feed(e) { - this.lexer = new Ar(e, this.settings); + this.lexer = new Fr(e, this.settings); } /** * Switches between "text" and "math" modes. @@ -10157,21 +10228,21 @@ class p4 { * tokens to the token stack. Uses Token as a container for the result. */ scanArgument(e) { - var t, a, n; + var t, a, i; if (e) { if (this.consumeSpaces(), this.future().text !== "[") return null; t = this.popToken(), { - tokens: n, + tokens: i, end: a } = this.consumeArg(["]"]); } else ({ - tokens: n, + tokens: i, start: t, end: a } = this.consumeArg()); - return this.pushToken(new d0("EOF", a.loc)), this.pushTokens(n), new d0("", c0.range(t, a)); + return this.pushToken(new c0("EOF", a.loc)), this.pushTokens(i), new c0("", h0.range(t, a)); } /** * Consume all following space tokens, without expansion. @@ -10192,17 +10263,17 @@ class p4 { consumeArg(e) { var t = [], a = e && e.length > 0; a || this.consumeSpaces(); - var n = this.future(), l, u = 0, h = 0; + var i = this.future(), s, u = 0, h = 0; do { - if (l = this.popToken(), t.push(l), l.text === "{") + if (s = this.popToken(), t.push(s), s.text === "{") ++u; - else if (l.text === "}") { + else if (s.text === "}") { if (--u, u === -1) - throw new S("Extra }", l); - } else if (l.text === "EOF") - throw new S("Unexpected end of input in a macro argument, expected '" + (e && a ? e[h] : "}") + "'", l); + throw new S("Extra }", s); + } else if (s.text === "EOF") + throw new S("Unexpected end of input in a macro argument, expected '" + (e && a ? e[h] : "}") + "'", s); if (e && a) - if ((u === 0 || u === 1 && e[h] === "{") && l.text === e[h]) { + if ((u === 0 || u === 1 && e[h] === "{") && s.text === e[h]) { if (++h, h === e.length) { t.splice(-h, h); break; @@ -10210,10 +10281,10 @@ class p4 { } else h = 0; } while (u !== 0 || a); - return n.text === "{" && t[t.length - 1].text === "}" && (t.pop(), t.shift()), t.reverse(), { + return i.text === "{" && t[t.length - 1].text === "}" && (t.pop(), t.shift()), t.reverse(), { tokens: t, - start: n, - end: l + start: i, + end: s }; } /** @@ -10224,10 +10295,10 @@ class p4 { if (t) { if (t.length !== e + 1) throw new S("The length of delimiters doesn't match the number of args!"); - for (var a = t[0], n = 0; n < a.length; n++) { - var l = this.popToken(); - if (a[n] !== l.text) - throw new S("Use of the macro doesn't match its definition", l); + for (var a = t[0], i = 0; i < a.length; i++) { + var s = this.popToken(); + if (a[i] !== s.text) + throw new S("Use of the macro doesn't match its definition", s); } } for (var u = [], h = 0; h < e; h++) @@ -10262,31 +10333,31 @@ class p4 { * an undefined control sequence results in an error. */ expandOnce(e) { - var t = this.popToken(), a = t.text, n = t.noexpand ? null : this._getExpansion(a); - if (n == null || e && n.unexpandable) { - if (e && n == null && a[0] === "\\" && !this.isDefined(a)) + 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 S("Undefined control sequence: " + a); return this.pushToken(t), !1; } this.countExpansion(1); - var l = n.tokens, u = this.consumeArgs(n.numArgs, n.delimiters); - if (n.numArgs) { - l = l.slice(); - for (var h = l.length - 1; h >= 0; --h) { - var c = l[h]; + 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 S("Incomplete placeholder at end of macro body", c); - if (c = l[--h], c.text === "#") - l.splice(h + 1, 1); + if (c = s[--h], c.text === "#") + s.splice(h + 1, 1); else if (/^[1-9]$/.test(c.text)) - l.splice(h, 2, ...u[+c.text - 1]); + s.splice(h, 2, ...u[+c.text - 1]); else throw new S("Not a valid argument number", c); } } } - return this.pushTokens(l), l.length; + return this.pushTokens(s), s.length; } /** * Expand the next token only once (if possible), and return the resulting @@ -10312,7 +10383,7 @@ class p4 { * tokens, or return `undefined` if no such macro is defined. */ expandMacro(e) { - return this.macros.has(e) ? this.expandTokens([new d0(e)]) : void 0; + return this.macros.has(e) ? this.expandTokens([new c0(e)]) : void 0; } /** * Fully expand the given token stream and return the resulting list of @@ -10323,8 +10394,8 @@ class p4 { var t = [], a = this.stack.length; for (this.pushTokens(e); this.stack.length > a; ) if (this.expandOnce(!0) === !1) { - var n = this.stack.pop(); - n.treatAsRelax && (n.noexpand = !1, n.treatAsRelax = !1), t.push(n); + var i = this.stack.pop(); + i.treatAsRelax && (i.noexpand = !1, i.treatAsRelax = !1), t.push(i); } return this.countExpansion(t.length), t; } @@ -10349,22 +10420,22 @@ class p4 { if (a != null && a !== 13) return; } - var n = typeof t == "function" ? t(this) : t; - if (typeof n == "string") { - var l = 0; - if (n.includes("#")) - for (var u = n.replace(/##/g, ""); u.includes("#" + (l + 1)); ) - ++l; - for (var h = new Ar(n, this.settings), c = [], v = h.lex(); v.text !== "EOF"; ) + 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 Fr(i, this.settings), c = [], v = h.lex(); v.text !== "EOF"; ) c.push(v), v = h.lex(); c.reverse(); - var g = { + var p = { tokens: c, - numArgs: l + numArgs: s }; - return g; + return p; } - return n; + return i; } /** * Determine whether a command is currently "defined" (has some @@ -10373,17 +10444,17 @@ class p4 { * `implicitCommands`. */ isDefined(e) { - return this.macros.has(e) || F0.hasOwnProperty(e) || $.math.hasOwnProperty(e) || $.text.hasOwnProperty(e) || S1.hasOwnProperty(e); + return this.macros.has(e) || O0.hasOwnProperty(e) || W.math.hasOwnProperty(e) || W.text.hasOwnProperty(e) || I1.hasOwnProperty(e); } /** * Determine whether a command is expandable. */ isExpandable(e) { var t = this.macros.get(e); - return t != null ? typeof t == "string" || typeof t == "function" || !t.unexpandable : F0.hasOwnProperty(e) && !F0[e].primitive; + return t != null ? typeof t == "string" || typeof t == "function" || !t.unexpandable : O0.hasOwnProperty(e) && !O0[e].primitive; } } -var Br = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, Be = Object.freeze({ +var Lr = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, Be = Object.freeze({ "₊": "+", "₋": "-", "₌": "=", @@ -10533,7 +10604,7 @@ var Br = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ "̧": { text: "\\c" } -}, Dr = { +}, Pr = { á: "á", à: "à", ä: "ä", @@ -10881,7 +10952,7 @@ var Br = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ }; class je { constructor(e, t) { - this.mode = "math", this.gullet = new p4(e, t, this.mode), this.settings = t, this.leftrightDepth = 0, this.nextToken = null; + 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 F4(e, t, this.mode), this.settings = t, this.leftrightDepth = 0, this.nextToken = null; } /** * Checks a result to make sure it has the right type, and throws an @@ -10930,7 +11001,7 @@ class je { */ subparse(e) { var t = this.nextToken; - this.consume(), this.gullet.pushToken(new d0("}")), this.gullet.pushTokens(e); + this.consume(), this.gullet.pushToken(new c0("}")), this.gullet.pushTokens(e); var a = this.parseExpression(!1); return this.expect("}"), this.nextToken = t, a; } @@ -10948,15 +11019,15 @@ class je { parseExpression(e, t) { for (var a = []; ; ) { this.mode === "math" && this.consumeSpaces(); - var n = this.fetch(); - if (je.endOfExpression.has(n.text) || t && n.text === t || e && F0[n.text] && F0[n.text].infix) + var i = this.fetch(); + if (je.endOfExpression.has(i.text) || t && i.text === t || e && O0[i.text] && O0[i.text].infix) break; - var l = this.parseAtom(t); - if (l) { - if (l.type === "internal") + var s = this.parseAtom(t); + if (s) { + if (s.type === "internal") continue; } else break; - a.push(l); + a.push(s); } return this.mode === "text" && this.formLigatures(a), this.handleInfixNodes(a); } @@ -10968,12 +11039,12 @@ class je { * then the expression is ambiguous. This can be resolved by adding {}. */ handleInfixNodes(e) { - for (var t = -1, a, n = 0; n < e.length; n++) { - var l = e[n]; - if (l.type === "infix") { + for (var t = -1, a, i = 0; i < e.length; i++) { + var s = e[i]; + if (s.type === "infix") { if (t !== -1) - throw new S("only one infix operator per group", l.token); - t = n, a = l.replaceWith; + throw new S("only one infix operator per group", s.token); + t = i, a = s.replaceWith; } } if (t !== -1 && a) { @@ -10987,8 +11058,8 @@ class je { mode: this.mode, body: v }; - var g; - return a === "\\\\abovefrac" ? g = this.callFunction(a, [u, e[t], h], []) : g = this.callFunction(a, [u, h], []), [g]; + var p; + return a === "\\\\abovefrac" ? p = this.callFunction(a, [u, e[t], h], []) : p = this.callFunction(a, [u, h], []), [p]; } else return e; } @@ -10998,14 +11069,14 @@ class je { handleSupSubscript(e) { var t = this.fetch(), a = t.text; this.consume(), this.consumeSpaces(); - var n; + var i; do { - var l; - n = this.parseGroup(e); - } while (((l = n) == null ? void 0 : l.type) === "internal"); - if (!n) + var s; + i = this.parseGroup(e); + } while (((s = i) == null ? void 0 : s.type) === "internal"); + if (!i) throw new S("Expected group after '" + a + "'", t); - return n; + return i; } /** * Converts the textual input of an unsupported command into a text node @@ -11018,17 +11089,17 @@ class je { mode: "text", text: e[a] }); - var n = { + var i = { type: "text", mode: this.mode, body: t - }, l = { + }, s = { type: "color", mode: this.mode, color: this.settings.errorColor, - body: [n] + body: [i] }; - return l; + return s; } /** * Parses a group with optional super/subscripts. @@ -11037,29 +11108,29 @@ class je { var t = this.parseGroup("atom", e); if (t?.type === "internal" || this.mode === "text") return t; - for (var a, n; ; ) { + for (var a, i; ; ) { this.consumeSpaces(); - var l = this.fetch(); - if (l.text === "\\limits" || l.text === "\\nolimits") { + var s = this.fetch(); + if (s.text === "\\limits" || s.text === "\\nolimits") { if (t && t.type === "op") { - var u = l.text === "\\limits"; + var u = s.text === "\\limits"; t.limits = u, t.alwaysHandleSupSub = !0; } else if (t && t.type === "operatorname") - t.alwaysHandleSupSub && (t.limits = l.text === "\\limits"); + t.alwaysHandleSupSub && (t.limits = s.text === "\\limits"); else - throw new S("Limit controls must follow a math operator", l); + throw new S("Limit controls must follow a math operator", s); this.consume(); - } else if (l.text === "^") { + } else if (s.text === "^") { if (a) - throw new S("Double superscript", l); + throw new S("Double superscript", s); a = this.handleSupSubscript("superscript"); - } else if (l.text === "_") { - if (n) - throw new S("Double subscript", l); - n = this.handleSupSubscript("subscript"); - } else if (l.text === "'") { + } else if (s.text === "_") { + if (i) + throw new S("Double subscript", s); + i = this.handleSupSubscript("subscript"); + } else if (s.text === "'") { if (a) - throw new S("Double superscript", l); + throw new S("Double superscript", s); var h = { type: "textord", mode: this.mode, @@ -11072,64 +11143,64 @@ class je { mode: this.mode, body: c }; - } else if (Be[l.text]) { - var v = Br.test(l.text), g = []; - for (g.push(new d0(Be[l.text])), this.consume(); ; ) { + } else if (Be[s.text]) { + var v = Lr.test(s.text), p = []; + for (p.push(new c0(Be[s.text])), this.consume(); ; ) { var b = this.fetch().text; - if (!Be[b] || Br.test(b) !== v) + if (!Be[b] || Lr.test(b) !== v) break; - g.unshift(new d0(Be[b])), this.consume(); + p.unshift(new c0(Be[b])), this.consume(); } - var y = this.subparse(g); - v ? n = { + var x = this.subparse(p); + v ? i = { type: "ordgroup", mode: "math", - body: y + body: x } : a = { type: "ordgroup", mode: "math", - body: y + body: x }; } else break; } - return a || n ? { + return a || i ? { type: "supsub", mode: this.mode, base: t, sup: a, - sub: n + sub: i } : t; } /** * Parses an entire function, including its base and all of its arguments. */ parseFunction(e, t) { - var a = this.fetch(), n = a.text, l = F0[n]; - if (!l) + var a = this.fetch(), i = a.text, s = O0[i]; + if (!s) return null; - if (this.consume(), t && t !== "atom" && !l.allowedInArgument) - throw new S("Got function '" + n + "' with no arguments" + (t ? " as " + t : ""), a); - if (this.mode === "text" && !l.allowedInText) - throw new S("Can't use function '" + n + "' in text mode", a); - if (this.mode === "math" && l.allowedInMath === !1) - throw new S("Can't use function '" + n + "' in math mode", a); + if (this.consume(), t && t !== "atom" && !s.allowedInArgument) + throw new S("Got function '" + i + "' with no arguments" + (t ? " as " + t : ""), a); + if (this.mode === "text" && !s.allowedInText) + throw new S("Can't use function '" + i + "' in text mode", a); + if (this.mode === "math" && s.allowedInMath === !1) + throw new S("Can't use function '" + i + "' in math mode", a); var { args: u, optArgs: h - } = this.parseArguments(n, l); - return this.callFunction(n, u, h, a, e); + } = this.parseArguments(i, s); + return this.callFunction(i, u, h, a, e); } /** * Call a function handler with a suitable context and arguments. */ - callFunction(e, t, a, n, l) { + callFunction(e, t, a, i, s) { var u = { funcName: e, parser: this, - token: n, - breakOnTokenText: l - }, h = F0[e]; + token: i, + breakOnTokenText: s + }, h = O0[e]; if (h && h.handler) return h.handler(u, t, a); throw new S("No function handler for " + e); @@ -11144,21 +11215,21 @@ class je { args: [], optArgs: [] }; - for (var n = [], l = [], u = 0; u < a; u++) { + for (var i = [], s = [], u = 0; u < a; u++) { var h = t.argTypes && t.argTypes[u], c = u < t.numOptionalArgs; ("primitive" in t && t.primitive && h == null || // \sqrt expands into primitive if optional argument doesn't exist - t.type === "sqrt" && u === 1 && l[0] == null) && (h = "primitive"); + t.type === "sqrt" && u === 1 && s[0] == null) && (h = "primitive"); var v = this.parseGroupOfType("argument to '" + e + "'", h, c); if (c) - l.push(v); + s.push(v); else if (v != null) - n.push(v); + i.push(v); else throw new S("Null argument, please report this as a bug"); } return { - args: n, - optArgs: l + args: i, + optArgs: s }; } /** @@ -11176,21 +11247,22 @@ class je { case "text": return this.parseArgumentGroup(a, t); case "hbox": { - var n = this.parseArgumentGroup(a, "text"); - return n != null ? { + var i = this.parseArgumentGroup(a, "text"); + return i != null ? { type: "styling", - mode: n.mode, - body: [n], - style: "text" + mode: i.mode, + body: [i], + style: "text", // simulate \textstyle + resetFont: !0 } : null; } case "raw": { - var l = this.parseStringGroup("raw", a); - return l != null ? { + var s = this.parseStringGroup("raw", a); + return s != null ? { type: "raw", mode: "text", - string: l.text + string: s.text } : null; } case "primitive": { @@ -11224,9 +11296,9 @@ class je { var a = this.gullet.scanArgument(t); if (a == null) return null; - for (var n = "", l; (l = this.fetch()).text !== "EOF"; ) - n += l.text, this.consume(); - return this.consume(), a.text = n, a; + for (var i = "", s; (s = this.fetch()).text !== "EOF"; ) + i += s.text, this.consume(); + return this.consume(), a.text = i, a; } /** * Parses a regex-delimited group: the largest sequence of tokens @@ -11234,11 +11306,11 @@ class je { * formed by the tokens plus some position information. */ parseRegexGroup(e, t) { - for (var a = this.fetch(), n = a, l = "", u; (u = this.fetch()).text !== "EOF" && e.test(l + u.text); ) - n = u, l += n.text, this.consume(); - if (l === "") + for (var a = this.fetch(), i = a, s = "", u; (u = this.fetch()).text !== "EOF" && e.test(s + u.text); ) + i = u, s += i.text, this.consume(); + if (s === "") throw new S("Invalid " + t + ": '" + a.text + "'", a); - return a.range(n, l); + return a.range(i, s); } /** * Parses a color description. @@ -11250,11 +11322,11 @@ class je { var a = /^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text); if (!a) throw new S("Invalid color: '" + t.text + "'", t); - var n = a[0]; - return /^[0-9a-f]{6}$/i.test(n) && (n = "#" + n), { + var i = a[0]; + return /^[0-9a-f]{6}$/i.test(i) && (i = "#" + i), { type: "color-token", mode: this.mode, - color: n + color: i }; } /** @@ -11265,20 +11337,20 @@ class je { if (this.gullet.consumeSpaces(), !e && this.gullet.future().text !== "{" ? t = this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/, "size") : t = this.parseStringGroup("size", e), !t) return null; !e && t.text.length === 0 && (t.text = "0pt", a = !0); - var n = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text); - if (!n) + var i = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text); + if (!i) throw new S("Invalid size: '" + t.text + "'", t); - var l = { - number: +(n[1] + n[2]), + var s = { + number: +(i[1] + i[2]), // sign + magnitude, cast to number - unit: n[3] + unit: i[3] }; - if (!qr(l)) - throw new S("Invalid unit: '" + l.unit + "'", t); + if (!Ur(s)) + throw new S("Invalid unit: '" + s.unit + "'", t); return { type: "size", mode: this.mode, - value: l, + value: s, isBlank: a }; } @@ -11305,17 +11377,17 @@ class je { var a = this.gullet.scanArgument(e); if (a == null) return null; - var n = this.mode; + var i = this.mode; t && this.switchMode(t), this.gullet.beginGroup(); - var l = this.parseExpression(!1, "EOF"); + var s = this.parseExpression(!1, "EOF"); this.expect("EOF"), this.gullet.endGroup(); var u = { type: "ordgroup", mode: this.mode, loc: a.loc, - body: l + body: s }; - return t && this.switchMode(n), u; + return t && this.switchMode(i), u; } /** * Parses an ordinary group, which is either a single nucleus (like "x") @@ -11324,29 +11396,29 @@ class je { * group ends, or at EOF. */ parseGroup(e, t) { - var a = this.fetch(), n = a.text, l; - if (n === "{" || n === "\\begingroup") { + var a = this.fetch(), i = a.text, s; + if (i === "{" || i === "\\begingroup") { this.consume(); - var u = n === "{" ? "}" : "\\endgroup"; + var u = i === "{" ? "}" : "\\endgroup"; this.gullet.beginGroup(); var h = this.parseExpression(!1, u), c = this.fetch(); - this.expect(u), this.gullet.endGroup(), l = { + this.expect(u), this.gullet.endGroup(), s = { type: "ordgroup", mode: this.mode, - loc: c0.range(a, c), + loc: h0.range(a, c), body: h, // A group formed by \begingroup...\endgroup is a semi-simple group // which doesn't affect spacing in math mode, i.e., is transparent. // https://tex.stackexchange.com/questions/1930/when-should-one- // use-begingroup-instead-of-bgroup - semisimple: n === "\\begingroup" || void 0 + semisimple: i === "\\begingroup" || void 0 }; - } else if (l = this.parseFunction(t, e) || this.parseSymbol(), l == null && n[0] === "\\" && !S1.hasOwnProperty(n)) { + } else if (s = this.parseFunction(t, e) || this.parseSymbol(), s == null && i[0] === "\\" && !I1.hasOwnProperty(i)) { if (this.settings.throwOnError) - throw new S("Undefined control sequence: " + n, a); - l = this.formatUnsupportedCmd(n), this.consume(); + throw new S("Undefined control sequence: " + i, a); + s = this.formatUnsupportedCmd(i), this.consume(); } - return l; + return s; } /** * Form ligature-like combinations of characters for text mode. @@ -11358,29 +11430,29 @@ class je { */ formLigatures(e) { for (var t = e.length - 1, a = 0; a < t; ++a) { - var n = e[a]; - if (n.type === "textord") { - var l = n.text, u = e[a + 1]; + var i = e[a]; + if (i.type === "textord") { + var s = i.text, u = e[a + 1]; if (!(!u || u.type !== "textord")) { - if (l === "-" && u.text === "-") { + if (s === "-" && u.text === "-") { var h = e[a + 2]; a + 1 < t && h && h.type === "textord" && h.text === "-" ? (e.splice(a, 3, { type: "textord", mode: "text", - loc: c0.range(n, h), + loc: h0.range(i, h), text: "---" }), t -= 2) : (e.splice(a, 2, { type: "textord", mode: "text", - loc: c0.range(n, u), + loc: h0.range(i, u), text: "--" }), t -= 1); } - (l === "'" || l === "`") && u.text === l && (e.splice(a, 2, { + (s === "'" || s === "`") && u.text === s && (e.splice(a, 2, { type: "textord", mode: "text", - loc: c0.range(n, u), - text: l + l + loc: h0.range(i, u), + text: s + s }), t -= 1); } } @@ -11394,66 +11466,60 @@ class je { var e = this.fetch(), t = e.text; if (/^\\verb[^a-zA-Z]/.test(t)) { this.consume(); - var a = t.slice(5), n = a.charAt(0) === "*"; - if (n && (a = a.slice(1)), a.length < 2 || a.charAt(0) !== a.slice(-1)) + var a = t.slice(5), i = a.charAt(0) === "*"; + if (i && (a = a.slice(1)), a.length < 2 || a.charAt(0) !== a.slice(-1)) throw new S(`\\verb assertion failed -- please report what input caused this bug`); return a = a.slice(1, -1), { type: "verb", mode: "text", body: a, - star: n + star: i }; } - Dr.hasOwnProperty(t[0]) && !$[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + t[0] + '" used in math mode', e), t = Dr[t[0]] + t.slice(1)); - var l = m4.exec(t); - l && (t = t.substring(0, l.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ")); + Pr.hasOwnProperty(t[0]) && !W[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + t[0] + '" used in math mode', e), t = Pr[t[0]] + t.slice(1)); + var s = q4.exec(t); + s && (t = t.substring(0, s.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ")); var u; - if ($[this.mode][t]) { + if (W[this.mode][t]) { this.settings.strict && this.mode === "math" && gt.includes(t) && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e); - var h = $[this.mode][t].group, c = c0.range(e), v; - if (ca.hasOwnProperty(h)) { - var g = h; - v = { - type: "atom", - mode: this.mode, - family: g, - loc: c, - text: t - }; - } else - v = { - type: h, - mode: this.mode, - loc: c, - text: t - }; - u = v; + var h = W[this.mode][t].group, c = h0.range(e), v; + Qa(h) ? v = { + type: "atom", + mode: this.mode, + family: h, + loc: c, + text: t + } : v = { + type: h, + mode: this.mode, + loc: c, + text: t + }, u = v; } else if (t.charCodeAt(0) >= 128) - this.settings.strict && (Cr(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 = { + this.settings.strict && (Gr(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: c0.range(e), + loc: h0.range(e), text: t }; else return null; - if (this.consume(), l) - for (var b = 0; b < l[0].length; b++) { - var y = l[0][b]; - if (!ct[y]) - throw new S("Unknown accent ' " + y + "'", e); - var x = ct[y][this.mode] || ct[y].text; + if (this.consume(), s) + for (var p = 0; p < s[0].length; p++) { + var b = s[0][p]; + if (!ct[b]) + throw new S("Unknown accent ' " + b + "'", e); + var x = ct[b][this.mode] || ct[b].text; if (!x) - throw new S("Accent " + y + " unsupported in " + this.mode + " mode", e); + throw new S("Accent " + b + " unsupported in " + this.mode + " mode", e); u = { type: "accent", mode: this.mode, - loc: c0.range(e), + loc: h0.range(e), label: x, isStretchy: !1, isShifty: !0, - // TODO(ts) base: u }; } @@ -11461,80 +11527,80 @@ class je { } } je.endOfExpression = /* @__PURE__ */ new Set(["}", "\\endgroup", "\\end", "\\right", "&"]); -var Gt = function(e, t) { +var $t = function(e, t) { if (!(typeof e == "string" || e instanceof String)) throw new TypeError("KaTeX can only parse string typed expression"); var a = new je(e, t); delete a.gullet.macros.current["\\df@tag"]; - var n = a.parse(); + var i = a.parse(); if (delete a.gullet.macros.current["\\current@color"], delete a.gullet.macros.current["\\color"], a.gullet.macros.get("\\df@tag")) { if (!t.displayMode) throw new S("\\tag works only in display equations"); - n = [{ + i = [{ type: "tag", mode: "text", - body: n, - tag: a.subparse([new d0("\\df@tag")]) + body: i, + tag: a.subparse([new c0("\\df@tag")]) }]; } - return n; -}, z1 = function(e, t, a) { + return i; +}, N1 = function(e, t, a) { t.textContent = ""; - var n = Ut(e, a).toNode(); - t.appendChild(n); + var i = Wt(e, a).toNode(); + t.appendChild(i); }; -typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), z1 = function() { +typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), N1 = function() { throw new S("KaTeX doesn't work in quirks mode."); }); -var g4 = function(e, t) { - var a = Ut(e, t).toMarkup(); +var H4 = function(e, t) { + var a = Wt(e, t).toMarkup(); return a; -}, b4 = function(e, t) { - var a = new Bt(t); - return Gt(e, a); -}, A1 = function(e, t, a) { +}, O4 = function(e, t) { + var a = new Et(t); + return $t(e, a); +}, F1 = function(e, t, a) { if (a.throwOnError || !(e instanceof S)) throw e; - var n = k(["katex-error"], [new f0(t)]); - return n.setAttribute("title", e.toString()), n.setAttribute("style", "color:" + a.errorColor), n; -}, Ut = function(e, t) { - var a = new Bt(t); + var i = k(["katex-error"], [new d0(t)]); + return i.setAttribute("title", e.toString()), i.setAttribute("style", "color:" + a.errorColor), i; +}, Wt = function(e, t) { + var a = new Et(t); try { - var n = Gt(e, a); - return Ba(n, e, a); - } catch (l) { - return A1(l, e, a); + var i = $t(e, a); + return Xa(i, e, a); + } catch (s) { + return F1(s, e, a); } -}, y4 = function(e, t) { - var a = new Bt(t); +}, L4 = function(e, t) { + var a = new Et(t); try { - var n = Gt(e, a); - return Da(n, e, a); - } catch (l) { - return A1(l, e, a); - } -}, x4 = "0.16.45", w4 = { - Span: ne, - Anchor: Oe, - SymbolNode: f0, - SvgNode: D0, + var i = $t(e, a); + return Ya(i, e, a); + } catch (s) { + return F1(s, e, a); + } +}, P4 = "0.16.47", G4 = { + Span: ie, + Anchor: Fe, + SymbolNode: d0, + SvgNode: C0, PathNode: P0, LineNode: pt -}, k4 = { +}, U4 = { /** * Current KaTeX version */ - version: x4, + version: P4, /** * Renders the given LaTeX into an HTML+MathML combination, and adds * it as a child to the specified DOM node. */ - render: z1, + render: N1, /** * Renders the given LaTeX into an HTML+MathML combination string, * for sending to the client. */ - renderToString: g4, + renderToString: H4, /** * KaTeX error, usually during parsing. */ @@ -11551,7 +11617,7 @@ var g4 = function(e, t) { * The internal tree representation is unstable and is very likely * to change. Use at your own risk. */ - __parse: b4, + __parse: O4, /** * Renders the given LaTeX into an HTML+MathML internal DOM tree * representation, without flattening that representation to a string. @@ -11560,7 +11626,7 @@ var g4 = function(e, t) { * The internal tree representation is unstable and is very likely * to change. Use at your own risk. */ - __renderToDomTree: Ut, + __renderToDomTree: Wt, /** * Renders the given LaTeX into an HTML internal DOM tree representation, * without MathML and without flattening that representation to a string. @@ -11569,16 +11635,16 @@ var g4 = function(e, t) { * The internal tree representation is unstable and is very likely * to change. Use at your own risk. */ - __renderToHTMLTree: y4, + __renderToHTMLTree: L4, /** * extends internal font metrics object with a new object * each key in the new object represents a font name */ - __setFontMetrics: ha, + __setFontMetrics: Aa, /** * adds a new symbol to builtin symbols table */ - __defineSymbol: i, + __defineSymbol: n, /** * adds a new function to builtin function list, * which directly produce parse tree elements @@ -11596,21 +11662,21 @@ var g4 = function(e, t) { * The internal tree representation is unstable and is very likely * to change. Use at your own risk. */ - __domTree: w4 + __domTree: G4 }; export { S as ParseError, dt as SETTINGS_SCHEMA, B as __defineFunction, m as __defineMacro, - i as __defineSymbol, - w4 as __domTree, - b4 as __parse, - Ut as __renderToDomTree, - y4 as __renderToHTMLTree, - ha as __setFontMetrics, - k4 as default, - z1 as render, - g4 as renderToString, - x4 as version + n as __defineSymbol, + G4 as __domTree, + O4 as __parse, + Wt as __renderToDomTree, + L4 as __renderToHTMLTree, + Aa as __setFontMetrics, + U4 as default, + N1 as render, + H4 as renderToString, + P4 as version }; diff --git a/src/wc-content-kit/public/mermaid/layout-DivnQK5l.js b/src/wc-content-kit/public/mermaid/layout-DivnQK5l.js new file mode 100644 index 0000000..b9ad2b0 --- /dev/null +++ b/src/wc-content-kit/public/mermaid/layout-DivnQK5l.js @@ -0,0 +1,1728 @@ +import { O as Y, L as O, t as Ee, u as q, F as K, K as Ke, o as fe, N as Xe, c as jn, h as He, Z as Mn, W as Rn, V as $n, M as de, m as Fn, R as se, Y as Bn, y as ze, _ as Gn, e as Dn, l as Yn, U as Te, a as Pe, z as ce, p as le, T as U, I as Je, S as Ze, b as Un, E as N, x as Vn, P as Wn, H as qn, D as Le, J as Kn, i as Qe, n as C, g as Xn, f as Hn, d as B, q as en, j as nn, B as zn, C as he, r as rn, $ as Jn, k as tn, A as Zn, a0 as Qn, G as E, w as c, s as er, Q as x, v as R, a1 as I, X } from "./graph-yNRfypD2.js"; +var nr = /\s/; +function rr(e) { + for (var n = e.length; n-- && nr.test(e.charAt(n)); ) + ; + return n; +} +var tr = /^\s+/; +function ir(e) { + return e && e.slice(0, rr(e) + 1).replace(tr, ""); +} +var Ne = NaN, ar = /^[-+]0x[0-9a-f]+$/i, or = /^0b[01]+$/i, ur = /^0o[0-7]+$/i, fr = parseInt; +function dr(e) { + if (typeof e == "number") + return e; + if (Y(e)) + return Ne; + if (O(e)) { + var n = typeof e.valueOf == "function" ? e.valueOf() : e; + e = O(n) ? n + "" : n; + } + if (typeof e != "string") + return e === 0 ? e : +e; + e = ir(e); + var r = or.test(e); + return r || ur.test(e) ? fr(e.slice(2), r ? 2 : 8) : ar.test(e) ? Ne : +e; +} +var Ie = 1 / 0, sr = 17976931348623157e292; +function G(e) { + if (!e) + return e === 0 ? e : 0; + if (e = dr(e), e === Ie || e === -Ie) { + var n = e < 0 ? -1 : 1; + return n * sr; + } + return e === e ? e : 0; +} +function cr(e) { + var n = G(e), r = n % 1; + return n === n ? r ? n - r : n : 0; +} +var _e = Object.create, lr = /* @__PURE__ */ (function() { + function e() { + } + return function(n) { + if (!O(n)) + return {}; + if (_e) + return _e(n); + e.prototype = n; + var r = new e(); + return e.prototype = void 0, r; + }; +})(); +function an(e, n) { + var r = -1, t = e.length; + for (n || (n = Array(t)); ++r < t; ) + n[r] = e[r]; + return n; +} +function H(e, n, r) { + n == "__proto__" && Ee ? Ee(e, n, { + configurable: !0, + enumerable: !0, + value: r, + writable: !0 + }) : e[n] = r; +} +var hr = Object.prototype, vr = hr.hasOwnProperty; +function z(e, n, r) { + var t = e[n]; + (!(vr.call(e, n) && q(t, r)) || r === void 0 && !(n in e)) && H(e, n, r); +} +function $(e, n, r, t) { + var i = !r; + r || (r = {}); + for (var o = -1, a = n.length; ++o < a; ) { + var u = n[o], f = void 0; + f === void 0 && (f = e[u]), i ? H(r, u, f) : z(r, u, f); + } + return r; +} +function S(e, n, r) { + if (!O(r)) + return !1; + var t = typeof n; + return (t == "number" ? K(r) && Ke(n, r.length) : t == "string" && n in r) ? q(r[n], e) : !1; +} +function pr(e) { + return fe(function(n, r) { + var t = -1, i = r.length, o = i > 1 ? r[i - 1] : void 0, a = i > 2 ? r[2] : void 0; + for (o = e.length > 3 && typeof o == "function" ? (i--, o) : void 0, a && S(r[0], r[1], a) && (o = i < 3 ? void 0 : o, i = 1), n = Object(n); ++t < i; ) { + var u = r[t]; + u && e(n, u, t, o); + } + return n; + }); +} +function br(e) { + var n = []; + if (e != null) + for (var r in Object(e)) + n.push(r); + return n; +} +var wr = Object.prototype, gr = wr.hasOwnProperty; +function mr(e) { + if (!O(e)) + return br(e); + var n = Xe(e), r = []; + for (var t in e) + t == "constructor" && (n || !gr.call(e, t)) || r.push(t); + return r; +} +function P(e) { + return K(e) ? jn(e, !0) : mr(e); +} +function A(e) { + var n = e == null ? 0 : e.length; + return n ? He(e) : []; +} +function yr(e) { + return Mn(Rn(e, void 0, A), e + ""); +} +var ve = $n(Object.getPrototypeOf, Object), xr = "[object Object]", Or = Function.prototype, Er = Object.prototype, on = Or.toString, Tr = Er.hasOwnProperty, Pr = on.call(Object); +function Lr(e) { + if (!de(e) || Fn(e) != xr) + return !1; + var n = ve(e); + if (n === null) + return !0; + var r = Tr.call(n, "constructor") && n.constructor; + return typeof r == "function" && r instanceof r && on.call(r) == Pr; +} +function Nr(e, n) { + return e && $(n, se(n), e); +} +function Ir(e, n) { + return e && $(n, P(n), e); +} +var un = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = un && typeof module == "object" && module && !module.nodeType && module, _r = Ce && Ce.exports === un, Ae = _r ? Bn.Buffer : void 0, ke = Ae ? Ae.allocUnsafe : void 0; +function fn(e, n) { + if (n) + return e.slice(); + var r = e.length, t = ke ? ke(r) : new e.constructor(r); + return e.copy(t), t; +} +function Cr(e, n) { + return $(e, ze(e), n); +} +var Ar = Object.getOwnPropertySymbols, dn = Ar ? function(e) { + for (var n = []; e; ) + Dn(n, ze(e)), e = ve(e); + return n; +} : Gn; +function kr(e, n) { + return $(e, dn(e), n); +} +function Sr(e) { + return Yn(e, P, dn); +} +var jr = Object.prototype, Mr = jr.hasOwnProperty; +function Rr(e) { + var n = e.length, r = new e.constructor(n); + return n && typeof e[0] == "string" && Mr.call(e, "index") && (r.index = e.index, r.input = e.input), r; +} +function pe(e) { + var n = new e.constructor(e.byteLength); + return new Te(n).set(new Te(e)), n; +} +function $r(e, n) { + var r = n ? pe(e.buffer) : e.buffer; + return new e.constructor(r, e.byteOffset, e.byteLength); +} +var Fr = /\w*$/; +function Br(e) { + var n = new e.constructor(e.source, Fr.exec(e)); + return n.lastIndex = e.lastIndex, n; +} +var Se = Pe ? Pe.prototype : void 0, je = Se ? Se.valueOf : void 0; +function Gr(e) { + return je ? Object(je.call(e)) : {}; +} +function sn(e, n) { + var r = n ? pe(e.buffer) : e.buffer; + return new e.constructor(r, e.byteOffset, e.length); +} +var Dr = "[object Boolean]", Yr = "[object Date]", Ur = "[object Map]", Vr = "[object Number]", Wr = "[object RegExp]", qr = "[object Set]", Kr = "[object String]", Xr = "[object Symbol]", Hr = "[object ArrayBuffer]", zr = "[object DataView]", Jr = "[object Float32Array]", Zr = "[object Float64Array]", Qr = "[object Int8Array]", et = "[object Int16Array]", nt = "[object Int32Array]", rt = "[object Uint8Array]", tt = "[object Uint8ClampedArray]", it = "[object Uint16Array]", at = "[object Uint32Array]"; +function ot(e, n, r) { + var t = e.constructor; + switch (n) { + case Hr: + return pe(e); + case Dr: + case Yr: + return new t(+e); + case zr: + return $r(e, r); + case Jr: + case Zr: + case Qr: + case et: + case nt: + case rt: + case tt: + case it: + case at: + return sn(e, r); + case Ur: + return new t(); + case Vr: + case Kr: + return new t(e); + case Wr: + return Br(e); + case qr: + return new t(); + case Xr: + return Gr(e); + } +} +function cn(e) { + return typeof e.constructor == "function" && !Xe(e) ? lr(ve(e)) : {}; +} +var ut = "[object Map]"; +function ft(e) { + return de(e) && ce(e) == ut; +} +var Me = U && U.isMap, dt = Me ? le(Me) : ft, st = "[object Set]"; +function ct(e) { + return de(e) && ce(e) == st; +} +var Re = U && U.isSet, lt = Re ? le(Re) : ct, ht = 1, vt = 2, pt = 4, ln = "[object Arguments]", bt = "[object Array]", wt = "[object Boolean]", gt = "[object Date]", mt = "[object Error]", hn = "[object Function]", yt = "[object GeneratorFunction]", xt = "[object Map]", Ot = "[object Number]", vn = "[object Object]", Et = "[object RegExp]", Tt = "[object Set]", Pt = "[object String]", Lt = "[object Symbol]", Nt = "[object WeakMap]", It = "[object ArrayBuffer]", _t = "[object DataView]", Ct = "[object Float32Array]", At = "[object Float64Array]", kt = "[object Int8Array]", St = "[object Int16Array]", jt = "[object Int32Array]", Mt = "[object Uint8Array]", Rt = "[object Uint8ClampedArray]", $t = "[object Uint16Array]", Ft = "[object Uint32Array]", b = {}; +b[ln] = b[bt] = b[It] = b[_t] = b[wt] = b[gt] = b[Ct] = b[At] = b[kt] = b[St] = b[jt] = b[xt] = b[Ot] = b[vn] = b[Et] = b[Tt] = b[Pt] = b[Lt] = b[Mt] = b[Rt] = b[$t] = b[Ft] = !0; +b[mt] = b[hn] = b[Nt] = !1; +function D(e, n, r, t, i, o) { + var a, u = n & ht, f = n & vt, d = n & pt; + if (a !== void 0) + return a; + if (!O(e)) + return e; + var s = N(e); + if (s) { + if (a = Rr(e), !u) + return an(e, a); + } else { + var l = ce(e), h = l == hn || l == yt; + if (Je(e)) + return fn(e, u); + if (l == vn || l == ln || h && !i) { + if (a = f || h ? {} : cn(e), !u) + return f ? kr(e, Ir(a, e)) : Cr(e, Nr(a, e)); + } else { + if (!b[l]) + return i ? e : {}; + a = ot(e, l, u); + } + } + o || (o = new Ze()); + var v = o.get(e); + if (v) + return v; + o.set(e, a), lt(e) ? e.forEach(function(m) { + a.add(D(m, n, r, m, e, o)); + }) : dt(e) && e.forEach(function(m, y) { + a.set(y, D(m, n, r, y, e, o)); + }); + var p = d ? f ? Sr : Vn : f ? P : se, w = s ? void 0 : p(e); + return Un(w || e, function(m, y) { + w && (y = m, m = e[y]), z(a, y, D(m, n, r, y, e, o)); + }), a; +} +var Bt = 1, Gt = 4; +function Dt(e) { + return D(e, Bt | Gt); +} +var pn = Object.prototype, Yt = pn.hasOwnProperty, Ut = fe(function(e, n) { + e = Object(e); + var r = -1, t = n.length, i = t > 2 ? n[2] : void 0; + for (i && S(n[0], n[1], i) && (t = 1); ++r < t; ) + for (var o = n[r], a = P(o), u = -1, f = a.length; ++u < f; ) { + var d = a[u], s = e[d]; + (s === void 0 || q(s, pn[d]) && !Yt.call(e, d)) && (e[d] = o[d]); + } + return e; +}); +function ie(e, n, r) { + (r !== void 0 && !q(e[n], r) || r === void 0 && !(n in e)) && H(e, n, r); +} +function ae(e, n) { + if (!(n === "constructor" && typeof e[n] == "function") && n != "__proto__") + return e[n]; +} +function Vt(e) { + return $(e, P(e)); +} +function Wt(e, n, r, t, i, o, a) { + var u = ae(e, r), f = ae(n, r), d = a.get(f); + if (d) { + ie(e, r, d); + return; + } + var s = o ? o(u, f, r + "", e, n, a) : void 0, l = s === void 0; + if (l) { + var h = N(f), v = !h && Je(f), p = !h && !v && Wn(f); + s = f, h || v || p ? N(u) ? s = u : qn(u) ? s = an(u) : v ? (l = !1, s = fn(f, !0)) : p ? (l = !1, s = sn(f, !0)) : s = [] : Lr(f) || Le(f) ? (s = u, Le(u) ? s = Vt(u) : (!O(u) || Kn(u)) && (s = cn(f))) : l = !1; + } + l && (a.set(f, s), i(s, f, t, o, a), a.delete(f)), ie(e, r, s); +} +function bn(e, n, r, t, i) { + e !== n && Qe(n, function(o, a) { + if (i || (i = new Ze()), O(o)) + Wt(e, n, a, r, bn, t, i); + else { + var u = t ? t(ae(e, a), o, a + "", e, n, i) : void 0; + u === void 0 && (u = o), ie(e, a, u); + } + }, P); +} +function V(e) { + var n = e == null ? 0 : e.length; + return n ? e[n - 1] : void 0; +} +function qt(e) { + return function(n, r, t) { + var i = Object(n); + if (!K(n)) { + var o = C(r); + n = se(n), r = function(u) { + return o(i[u], u, i); + }; + } + var a = e(n, r, t); + return a > -1 ? i[o ? n[a] : a] : void 0; + }; +} +var Kt = Math.max; +function Xt(e, n, r) { + var t = e == null ? 0 : e.length; + if (!t) + return -1; + var i = r == null ? 0 : cr(r); + return i < 0 && (i = Kt(t + i, 0)), Xn(e, C(n), i); +} +var be = qt(Xt); +function wn(e, n) { + var r = -1, t = K(e) ? Array(e.length) : []; + return Hn(e, function(i, o, a) { + t[++r] = n(i, o, a); + }), t; +} +function g(e, n) { + var r = N(e) ? B : wn; + return r(e, C(n)); +} +function Ht(e, n) { + return e == null ? e : Qe(e, en(n), P); +} +function zt(e, n) { + return e && nn(e, en(n)); +} +function Jt(e, n) { + return e > n; +} +var Zt = Object.prototype, Qt = Zt.hasOwnProperty; +function ei(e, n) { + return e != null && Qt.call(e, n); +} +function gn(e, n) { + return e != null && zn(e, n, ei); +} +function mn(e, n) { + return e < n; +} +function J(e, n) { + var r = {}; + return n = C(n), nn(e, function(t, i, o) { + H(r, i, n(t, i, o)); + }), r; +} +function we(e, n, r) { + for (var t = -1, i = e.length; ++t < i; ) { + var o = e[t], a = n(o); + if (a != null && (u === void 0 ? a === a && !Y(a) : r(a, u))) + var u = a, f = o; + } + return f; +} +function T(e) { + return e && e.length ? we(e, he, Jt) : void 0; +} +var oe = pr(function(e, n, r) { + bn(e, n, r); +}); +function j(e) { + return e && e.length ? we(e, he, mn) : void 0; +} +function ge(e, n) { + return e && e.length ? we(e, C(n), mn) : void 0; +} +function ni(e, n, r, t) { + if (!O(e)) + return e; + n = rn(n, e); + for (var i = -1, o = n.length, a = o - 1, u = e; u != null && ++i < o; ) { + var f = Jn(n[i]), d = r; + if (f === "__proto__" || f === "constructor" || f === "prototype") + return e; + if (i != a) { + var s = u[f]; + d = void 0, d === void 0 && (d = O(s) ? s : Ke(n[i + 1]) ? [] : {}); + } + z(u, f, d), u = u[f]; + } + return e; +} +function ri(e, n, r) { + for (var t = -1, i = n.length, o = {}; ++t < i; ) { + var a = n[t], u = tn(e, a); + r(u, a) && ni(o, rn(a, e), u); + } + return o; +} +function ti(e, n) { + var r = e.length; + for (e.sort(n); r--; ) + e[r] = e[r].value; + return e; +} +function ii(e, n) { + if (e !== n) { + var r = e !== void 0, t = e === null, i = e === e, o = Y(e), a = n !== void 0, u = n === null, f = n === n, d = Y(n); + if (!u && !d && !o && e > n || o && a && f && !u && !d || t && a && f || !r && f || !i) + return 1; + if (!t && !o && !d && e < n || d && r && i && !t && !o || u && r && i || !a && i || !f) + return -1; + } + return 0; +} +function ai(e, n, r) { + for (var t = -1, i = e.criteria, o = n.criteria, a = i.length, u = r.length; ++t < a; ) { + var f = ii(i[t], o[t]); + if (f) { + if (t >= u) + return f; + var d = r[t]; + return f * (d == "desc" ? -1 : 1); + } + } + return e.index - n.index; +} +function oi(e, n, r) { + n.length ? n = B(n, function(o) { + return N(o) ? function(a) { + return tn(a, o.length === 1 ? o[0] : o); + } : o; + }) : n = [he]; + var t = -1; + n = B(n, le(C)); + var i = wn(e, function(o, a, u) { + var f = B(n, function(d) { + return d(o); + }); + return { criteria: f, index: ++t, value: o }; + }); + return ti(i, function(o, a) { + return ai(o, a, r); + }); +} +function ui(e, n) { + return ri(e, n, function(r, t) { + return Zn(e, t); + }); +} +var W = yr(function(e, n) { + return e == null ? {} : ui(e, n); +}), fi = Math.ceil, di = Math.max; +function si(e, n, r, t) { + for (var i = -1, o = di(fi((n - e) / (r || 1)), 0), a = Array(o); o--; ) + a[++i] = e, e += r; + return a; +} +function ci(e) { + return function(n, r, t) { + return t && typeof t != "number" && S(n, r, t) && (r = t = void 0), n = G(n), r === void 0 ? (r = n, n = 0) : r = G(r), t = t === void 0 ? n < r ? 1 : -1 : G(t), si(n, r, t); + }; +} +var _ = ci(), F = fe(function(e, n) { + if (e == null) + return []; + var r = n.length; + return r > 1 && S(e, n[0], n[1]) ? n = [] : r > 2 && S(n[0], n[1], n[2]) && (n = [n[0]]), oi(e, He(n), []); +}), li = 0; +function me(e) { + var n = ++li; + return Qn(e) + n; +} +function hi(e, n, r) { + for (var t = -1, i = e.length, o = n.length, a = {}; ++t < i; ) { + var u = t < o ? n[t] : void 0; + r(a, e[t], u); + } + return a; +} +function vi(e, n) { + return hi(e || [], n || [], z); +} +class pi { + constructor() { + var n = {}; + n._next = n._prev = n, this._sentinel = n; + } + dequeue() { + var n = this._sentinel, r = n._prev; + if (r !== n) + return $e(r), r; + } + enqueue(n) { + var r = this._sentinel; + n._prev && n._next && $e(n), n._next = r._next, r._next._prev = n, r._next = n, n._prev = r; + } + toString() { + for (var n = [], r = this._sentinel, t = r._prev; t !== r; ) + n.push(JSON.stringify(t, bi)), t = t._prev; + return "[" + n.join(", ") + "]"; + } +} +function $e(e) { + e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev; +} +function bi(e, n) { + if (e !== "_next" && e !== "_prev") + return n; +} +var wi = er(1); +function gi(e, n) { + if (e.nodeCount() <= 1) + return []; + var r = yi(e, n || wi), t = mi(r.graph, r.buckets, r.zeroIdx); + return A( + g(t, function(i) { + return e.outEdges(i.v, i.w); + }) + ); +} +function mi(e, n, r) { + for (var t = [], i = n[n.length - 1], o = n[0], a; e.nodeCount(); ) { + for (; a = o.dequeue(); ) + Q(e, n, r, a); + for (; a = i.dequeue(); ) + Q(e, n, r, a); + if (e.nodeCount()) { + for (var u = n.length - 2; u > 0; --u) + if (a = n[u].dequeue(), a) { + t = t.concat(Q(e, n, r, a, !0)); + break; + } + } + } + return t; +} +function Q(e, n, r, t, i) { + var o = i ? [] : void 0; + return c(e.inEdges(t.v), function(a) { + var u = e.edge(a), f = e.node(a.v); + i && o.push({ v: a.v, w: a.w }), f.out -= u, ue(n, r, f); + }), c(e.outEdges(t.v), function(a) { + var u = e.edge(a), f = a.w, d = e.node(f); + d.in -= u, ue(n, r, d); + }), e.removeNode(t.v), o; +} +function yi(e, n) { + var r = new E(), t = 0, i = 0; + c(e.nodes(), function(u) { + r.setNode(u, { v: u, in: 0, out: 0 }); + }), c(e.edges(), function(u) { + var f = r.edge(u.v, u.w) || 0, d = n(u), s = f + d; + r.setEdge(u.v, u.w, s), i = Math.max(i, r.node(u.v).out += d), t = Math.max(t, r.node(u.w).in += d); + }); + var o = _(i + t + 3).map(function() { + return new pi(); + }), a = t + 1; + return c(r.nodes(), function(u) { + ue(o, a, r.node(u)); + }), { graph: r, buckets: o, zeroIdx: a }; +} +function ue(e, n, r) { + r.out ? r.in ? e[r.out - r.in + n].enqueue(r) : e[e.length - 1].enqueue(r) : e[0].enqueue(r); +} +function xi(e) { + var n = e.graph().acyclicer === "greedy" ? gi(e, r(e)) : Oi(e); + c(n, function(t) { + var i = e.edge(t); + e.removeEdge(t), i.forwardName = t.name, i.reversed = !0, e.setEdge(t.w, t.v, i, me("rev")); + }); + function r(t) { + return function(i) { + return t.edge(i).weight; + }; + } +} +function Oi(e) { + var n = [], r = {}, t = {}; + function i(o) { + Object.prototype.hasOwnProperty.call(t, o) || (t[o] = !0, r[o] = !0, c(e.outEdges(o), function(a) { + Object.prototype.hasOwnProperty.call(r, a.w) ? n.push(a) : i(a.w); + }), delete r[o]); + } + return c(e.nodes(), i), n; +} +function Ei(e) { + c(e.edges(), function(n) { + var r = e.edge(n); + if (r.reversed) { + e.removeEdge(n); + var t = r.forwardName; + delete r.reversed, delete r.forwardName, e.setEdge(n.w, n.v, r, t); + } + }); +} +function k(e, n, r, t) { + var i; + do + i = me(t); + while (e.hasNode(i)); + return r.dummy = n, e.setNode(i, r), i; +} +function Ti(e) { + var n = new E().setGraph(e.graph()); + return c(e.nodes(), function(r) { + n.setNode(r, e.node(r)); + }), c(e.edges(), function(r) { + var t = n.edge(r.v, r.w) || { weight: 0, minlen: 1 }, i = e.edge(r); + n.setEdge(r.v, r.w, { + weight: t.weight + i.weight, + minlen: Math.max(t.minlen, i.minlen) + }); + }), n; +} +function yn(e) { + var n = new E({ multigraph: e.isMultigraph() }).setGraph(e.graph()); + return c(e.nodes(), function(r) { + e.children(r).length || n.setNode(r, e.node(r)); + }), c(e.edges(), function(r) { + n.setEdge(r, e.edge(r)); + }), n; +} +function Fe(e, n) { + var r = e.x, t = e.y, i = n.x - r, o = n.y - t, a = e.width / 2, u = e.height / 2; + if (!i && !o) + throw new Error("Not possible to find intersection inside of the rectangle"); + var f, d; + return Math.abs(o) * a > Math.abs(i) * u ? (o < 0 && (u = -u), f = u * i / o, d = u) : (i < 0 && (a = -a), f = a, d = a * o / i), { x: r + f, y: t + d }; +} +function Z(e) { + var n = g(_(xn(e) + 1), function() { + return []; + }); + return c(e.nodes(), function(r) { + var t = e.node(r), i = t.rank; + x(i) || (n[i][t.order] = r); + }), n; +} +function Pi(e) { + var n = j( + g(e.nodes(), function(r) { + return e.node(r).rank; + }) + ); + c(e.nodes(), function(r) { + var t = e.node(r); + gn(t, "rank") && (t.rank -= n); + }); +} +function Li(e) { + var n = j( + g(e.nodes(), function(o) { + return e.node(o).rank; + }) + ), r = []; + c(e.nodes(), function(o) { + var a = e.node(o).rank - n; + r[a] || (r[a] = []), r[a].push(o); + }); + var t = 0, i = e.graph().nodeRankFactor; + c(r, function(o, a) { + x(o) && a % i !== 0 ? --t : t && c(o, function(u) { + e.node(u).rank += t; + }); + }); +} +function Be(e, n, r, t) { + var i = { + width: 0, + height: 0 + }; + return arguments.length >= 4 && (i.rank = r, i.order = t), k(e, "border", i, n); +} +function xn(e) { + return T( + g(e.nodes(), function(n) { + var r = e.node(n).rank; + if (!x(r)) + return r; + }) + ); +} +function Ni(e, n) { + var r = { lhs: [], rhs: [] }; + return c(e, function(t) { + n(t) ? r.lhs.push(t) : r.rhs.push(t); + }), r; +} +function Ii(e, n) { + return n(); +} +function _i(e) { + function n(r) { + var t = e.children(r), i = e.node(r); + if (t.length && c(t, n), Object.prototype.hasOwnProperty.call(i, "minRank")) { + i.borderLeft = [], i.borderRight = []; + for (var o = i.minRank, a = i.maxRank + 1; o < a; ++o) + Ge(e, "borderLeft", "_bl", r, i, o), Ge(e, "borderRight", "_br", r, i, o); + } + } + c(e.children(), n); +} +function Ge(e, n, r, t, i, o) { + var a = { width: 0, height: 0, rank: o, borderType: n }, u = i[n][o - 1], f = k(e, "border", a, r); + i[n][o] = f, e.setParent(f, t), u && e.setEdge(u, f, { weight: 1 }); +} +function Ci(e) { + var n = e.graph().rankdir.toLowerCase(); + (n === "lr" || n === "rl") && On(e); +} +function Ai(e) { + var n = e.graph().rankdir.toLowerCase(); + (n === "bt" || n === "rl") && ki(e), (n === "lr" || n === "rl") && (Si(e), On(e)); +} +function On(e) { + c(e.nodes(), function(n) { + De(e.node(n)); + }), c(e.edges(), function(n) { + De(e.edge(n)); + }); +} +function De(e) { + var n = e.width; + e.width = e.height, e.height = n; +} +function ki(e) { + c(e.nodes(), function(n) { + ee(e.node(n)); + }), c(e.edges(), function(n) { + var r = e.edge(n); + c(r.points, ee), Object.prototype.hasOwnProperty.call(r, "y") && ee(r); + }); +} +function ee(e) { + e.y = -e.y; +} +function Si(e) { + c(e.nodes(), function(n) { + ne(e.node(n)); + }), c(e.edges(), function(n) { + var r = e.edge(n); + c(r.points, ne), Object.prototype.hasOwnProperty.call(r, "x") && ne(r); + }); +} +function ne(e) { + var n = e.x; + e.x = e.y, e.y = n; +} +function ji(e) { + e.graph().dummyChains = [], c(e.edges(), function(n) { + Mi(e, n); + }); +} +function Mi(e, n) { + var r = n.v, t = e.node(r).rank, i = n.w, o = e.node(i).rank, a = n.name, u = e.edge(n), f = u.labelRank; + if (o !== t + 1) { + e.removeEdge(n); + var d = void 0, s, l; + for (l = 0, ++t; t < o; ++l, ++t) + u.points = [], d = { + width: 0, + height: 0, + edgeLabel: u, + edgeObj: n, + rank: t + }, s = k(e, "edge", d, "_d"), t === f && (d.width = u.width, d.height = u.height, d.dummy = "edge-label", d.labelpos = u.labelpos), e.setEdge(r, s, { weight: u.weight }, a), l === 0 && e.graph().dummyChains.push(s), r = s; + e.setEdge(r, i, { weight: u.weight }, a); + } +} +function Ri(e) { + c(e.graph().dummyChains, function(n) { + var r = e.node(n), t = r.edgeLabel, i; + for (e.setEdge(r.edgeObj, t); r.dummy; ) + i = e.successors(n)[0], e.removeNode(n), t.points.push({ x: r.x, y: r.y }), r.dummy === "edge-label" && (t.x = r.x, t.y = r.y, t.width = r.width, t.height = r.height), n = i, r = e.node(n); + }); +} +function ye(e) { + var n = {}; + function r(t) { + var i = e.node(t); + if (Object.prototype.hasOwnProperty.call(n, t)) + return i.rank; + n[t] = !0; + var o = j( + g(e.outEdges(t), function(a) { + return r(a.w) - e.edge(a).minlen; + }) + ); + return (o === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3 + o === void 0 || // return value of _.map([]) for Lodash 4 + o === null) && (o = 0), i.rank = o; + } + c(e.sources(), r); +} +function M(e, n) { + return e.node(n.w).rank - e.node(n.v).rank - e.edge(n).minlen; +} +function En(e) { + var n = new E({ directed: !1 }), r = e.nodes()[0], t = e.nodeCount(); + n.setNode(r, {}); + for (var i, o; $i(n, e) < t; ) + i = Fi(n, e), o = n.hasNode(i.v) ? M(e, i) : -M(e, i), Bi(n, e, o); + return n; +} +function $i(e, n) { + function r(t) { + c(n.nodeEdges(t), function(i) { + var o = i.v, a = t === o ? i.w : o; + !e.hasNode(a) && !M(n, i) && (e.setNode(a, {}), e.setEdge(t, a, {}), r(a)); + }); + } + return c(e.nodes(), r), e.nodeCount(); +} +function Fi(e, n) { + return ge(n.edges(), function(r) { + if (e.hasNode(r.v) !== e.hasNode(r.w)) + return M(n, r); + }); +} +function Bi(e, n, r) { + c(e.nodes(), function(t) { + n.node(t).rank += r; + }); +} +function Gi() { +} +Gi.prototype = new Error(); +function Tn(e, n, r) { + N(n) || (n = [n]); + var t = (e.isDirected() ? e.successors : e.neighbors).bind(e), i = [], o = {}; + return c(n, function(a) { + if (!e.hasNode(a)) + throw new Error("Graph does not have node: " + a); + Pn(e, a, r === "post", o, t, i); + }), i; +} +function Pn(e, n, r, t, i, o) { + Object.prototype.hasOwnProperty.call(t, n) || (t[n] = !0, r || o.push(n), c(i(n), function(a) { + Pn(e, a, r, t, i, o); + }), r && o.push(n)); +} +function Di(e, n) { + return Tn(e, n, "post"); +} +function Yi(e, n) { + return Tn(e, n, "pre"); +} +L.initLowLimValues = Oe; +L.initCutValues = xe; +L.calcCutValue = Ln; +L.leaveEdge = In; +L.enterEdge = _n; +L.exchangeEdges = Cn; +function L(e) { + e = Ti(e), ye(e); + var n = En(e); + Oe(n), xe(n, e); + for (var r, t; r = In(n); ) + t = _n(n, e, r), Cn(n, e, r, t); +} +function xe(e, n) { + var r = Di(e, e.nodes()); + r = r.slice(0, r.length - 1), c(r, function(t) { + Ui(e, n, t); + }); +} +function Ui(e, n, r) { + var t = e.node(r), i = t.parent; + e.edge(r, i).cutvalue = Ln(e, n, r); +} +function Ln(e, n, r) { + var t = e.node(r), i = t.parent, o = !0, a = n.edge(r, i), u = 0; + return a || (o = !1, a = n.edge(i, r)), u = a.weight, c(n.nodeEdges(r), function(f) { + var d = f.v === r, s = d ? f.w : f.v; + if (s !== i) { + var l = d === o, h = n.edge(f).weight; + if (u += l ? h : -h, Wi(e, r, s)) { + var v = e.edge(r, s).cutvalue; + u += l ? -v : v; + } + } + }), u; +} +function Oe(e, n) { + arguments.length < 2 && (n = e.nodes()[0]), Nn(e, {}, 1, n); +} +function Nn(e, n, r, t, i) { + var o = r, a = e.node(t); + return n[t] = !0, c(e.neighbors(t), function(u) { + Object.prototype.hasOwnProperty.call(n, u) || (r = Nn(e, n, r, u, t)); + }), a.low = o, a.lim = r++, i ? a.parent = i : delete a.parent, r; +} +function In(e) { + return be(e.edges(), function(n) { + return e.edge(n).cutvalue < 0; + }); +} +function _n(e, n, r) { + var t = r.v, i = r.w; + n.hasEdge(t, i) || (t = r.w, i = r.v); + var o = e.node(t), a = e.node(i), u = o, f = !1; + o.lim > a.lim && (u = a, f = !0); + var d = R(n.edges(), function(s) { + return f === Ye(e, e.node(s.v), u) && f !== Ye(e, e.node(s.w), u); + }); + return ge(d, function(s) { + return M(n, s); + }); +} +function Cn(e, n, r, t) { + var i = r.v, o = r.w; + e.removeEdge(i, o), e.setEdge(t.v, t.w, {}), Oe(e), xe(e, n), Vi(e, n); +} +function Vi(e, n) { + var r = be(e.nodes(), function(i) { + return !n.node(i).parent; + }), t = Yi(e, r); + t = t.slice(1), c(t, function(i) { + var o = e.node(i).parent, a = n.edge(i, o), u = !1; + a || (a = n.edge(o, i), u = !0), n.node(i).rank = n.node(o).rank + (u ? a.minlen : -a.minlen); + }); +} +function Wi(e, n, r) { + return e.hasEdge(n, r); +} +function Ye(e, n, r) { + return r.low <= n.lim && n.lim <= r.lim; +} +function qi(e) { + switch (e.graph().ranker) { + case "network-simplex": + Ue(e); + break; + case "tight-tree": + Xi(e); + break; + case "longest-path": + Ki(e); + break; + default: + Ue(e); + } +} +var Ki = ye; +function Xi(e) { + ye(e), En(e); +} +function Ue(e) { + L(e); +} +function Hi(e) { + var n = k(e, "root", {}, "_root"), r = zi(e), t = T(I(r)) - 1, i = 2 * t + 1; + e.graph().nestingRoot = n, c(e.edges(), function(a) { + e.edge(a).minlen *= i; + }); + var o = Ji(e) + 1; + c(e.children(), function(a) { + An(e, n, i, o, t, r, a); + }), e.graph().nodeRankFactor = i; +} +function An(e, n, r, t, i, o, a) { + var u = e.children(a); + if (!u.length) { + a !== n && e.setEdge(n, a, { weight: 0, minlen: r }); + return; + } + var f = Be(e, "_bt"), d = Be(e, "_bb"), s = e.node(a); + e.setParent(f, a), s.borderTop = f, e.setParent(d, a), s.borderBottom = d, c(u, function(l) { + An(e, n, r, t, i, o, l); + var h = e.node(l), v = h.borderTop ? h.borderTop : l, p = h.borderBottom ? h.borderBottom : l, w = h.borderTop ? t : 2 * t, m = v !== p ? 1 : i - o[a] + 1; + e.setEdge(f, v, { + weight: w, + minlen: m, + nestingEdge: !0 + }), e.setEdge(p, d, { + weight: w, + minlen: m, + nestingEdge: !0 + }); + }), e.parent(a) || e.setEdge(n, f, { weight: 0, minlen: i + o[a] }); +} +function zi(e) { + var n = {}; + function r(t, i) { + var o = e.children(t); + o && o.length && c(o, function(a) { + r(a, i + 1); + }), n[t] = i; + } + return c(e.children(), function(t) { + r(t, 1); + }), n; +} +function Ji(e) { + return X( + e.edges(), + function(n, r) { + return n + e.edge(r).weight; + }, + 0 + ); +} +function Zi(e) { + var n = e.graph(); + e.removeNode(n.nestingRoot), delete n.nestingRoot, c(e.edges(), function(r) { + var t = e.edge(r); + t.nestingEdge && e.removeEdge(r); + }); +} +function Qi(e, n, r) { + var t = {}, i; + c(r, function(o) { + for (var a = e.parent(o), u, f; a; ) { + if (u = e.parent(a), u ? (f = t[u], t[u] = a) : (f = i, i = a), f && f !== a) { + n.setEdge(f, a); + return; + } + a = u; + } + }); +} +function ea(e, n, r) { + var t = na(e), i = new E({ compound: !0 }).setGraph({ root: t }).setDefaultNodeLabel(function(o) { + return e.node(o); + }); + return c(e.nodes(), function(o) { + var a = e.node(o), u = e.parent(o); + (a.rank === n || a.minRank <= n && n <= a.maxRank) && (i.setNode(o), i.setParent(o, u || t), c(e[r](o), function(f) { + var d = f.v === o ? f.w : f.v, s = i.edge(d, o), l = x(s) ? 0 : s.weight; + i.setEdge(d, o, { weight: e.edge(f).weight + l }); + }), Object.prototype.hasOwnProperty.call(a, "minRank") && i.setNode(o, { + borderLeft: a.borderLeft[n], + borderRight: a.borderRight[n] + })); + }), i; +} +function na(e) { + for (var n; e.hasNode(n = me("_root")); ) ; + return n; +} +function ra(e, n) { + for (var r = 0, t = 1; t < n.length; ++t) + r += ta(e, n[t - 1], n[t]); + return r; +} +function ta(e, n, r) { + for (var t = vi( + r, + g(r, function(d, s) { + return s; + }) + ), i = A( + g(n, function(d) { + return F( + g(e.outEdges(d), function(s) { + return { pos: t[s.w], weight: e.edge(s).weight }; + }), + "pos" + ); + }) + ), o = 1; o < r.length; ) o <<= 1; + var a = 2 * o - 1; + o -= 1; + var u = g(new Array(a), function() { + return 0; + }), f = 0; + return c( + // @ts-expect-error + i.forEach(function(d) { + var s = d.pos + o; + u[s] += d.weight; + for (var l = 0; s > 0; ) + s % 2 && (l += u[s + 1]), s = s - 1 >> 1, u[s] += d.weight; + f += d.weight * l; + }) + ), f; +} +function ia(e) { + var n = {}, r = R(e.nodes(), function(u) { + return !e.children(u).length; + }), t = T( + g(r, function(u) { + return e.node(u).rank; + }) + ), i = g(_(t + 1), function() { + return []; + }); + function o(u) { + if (!gn(n, u)) { + n[u] = !0; + var f = e.node(u); + i[f.rank].push(u), c(e.successors(u), o); + } + } + var a = F(r, function(u) { + return e.node(u).rank; + }); + return c(a, o), i; +} +function aa(e, n) { + return g(n, function(r) { + var t = e.inEdges(r); + if (t.length) { + var i = X( + t, + function(o, a) { + var u = e.edge(a), f = e.node(a.v); + return { + sum: o.sum + u.weight * f.order, + weight: o.weight + u.weight + }; + }, + { sum: 0, weight: 0 } + ); + return { + v: r, + barycenter: i.sum / i.weight, + weight: i.weight + }; + } else + return { v: r }; + }); +} +function oa(e, n) { + var r = {}; + c(e, function(i, o) { + var a = r[i.v] = { + indegree: 0, + in: [], + out: [], + vs: [i.v], + i: o + }; + x(i.barycenter) || (a.barycenter = i.barycenter, a.weight = i.weight); + }), c(n.edges(), function(i) { + var o = r[i.v], a = r[i.w]; + !x(o) && !x(a) && (a.indegree++, o.out.push(r[i.w])); + }); + var t = R(r, function(i) { + return !i.indegree; + }); + return ua(t); +} +function ua(e) { + var n = []; + function r(o) { + return function(a) { + a.merged || (x(a.barycenter) || x(o.barycenter) || a.barycenter >= o.barycenter) && fa(o, a); + }; + } + function t(o) { + return function(a) { + a.in.push(o), --a.indegree === 0 && e.push(a); + }; + } + for (; e.length; ) { + var i = e.pop(); + n.push(i), c(i.in.reverse(), r(i)), c(i.out, t(i)); + } + return g( + R(n, function(o) { + return !o.merged; + }), + function(o) { + return W(o, ["vs", "i", "barycenter", "weight"]); + } + ); +} +function fa(e, n) { + var r = 0, t = 0; + e.weight && (r += e.barycenter * e.weight, t += e.weight), n.weight && (r += n.barycenter * n.weight, t += n.weight), e.vs = n.vs.concat(e.vs), e.barycenter = r / t, e.weight = t, e.i = Math.min(n.i, e.i), n.merged = !0; +} +function da(e, n) { + var r = Ni(e, function(s) { + return Object.prototype.hasOwnProperty.call(s, "barycenter"); + }), t = r.lhs, i = F(r.rhs, function(s) { + return -s.i; + }), o = [], a = 0, u = 0, f = 0; + t.sort(sa(!!n)), f = Ve(o, i, f), c(t, function(s) { + f += s.vs.length, o.push(s.vs), a += s.barycenter * s.weight, u += s.weight, f = Ve(o, i, f); + }); + var d = { vs: A(o) }; + return u && (d.barycenter = a / u, d.weight = u), d; +} +function Ve(e, n, r) { + for (var t; n.length && (t = V(n)).i <= r; ) + n.pop(), e.push(t.vs), r++; + return r; +} +function sa(e) { + return function(n, r) { + return n.barycenter < r.barycenter ? -1 : n.barycenter > r.barycenter ? 1 : e ? r.i - n.i : n.i - r.i; + }; +} +function kn(e, n, r, t) { + var i = e.children(n), o = e.node(n), a = o ? o.borderLeft : void 0, u = o ? o.borderRight : void 0, f = {}; + a && (i = R(i, function(p) { + return p !== a && p !== u; + })); + var d = aa(e, i); + c(d, function(p) { + if (e.children(p.v).length) { + var w = kn(e, p.v, r, t); + f[p.v] = w, Object.prototype.hasOwnProperty.call(w, "barycenter") && la(p, w); + } + }); + var s = oa(d, r); + ca(s, f); + var l = da(s, t); + if (a && (l.vs = A([a, l.vs, u]), e.predecessors(a).length)) { + var h = e.node(e.predecessors(a)[0]), v = e.node(e.predecessors(u)[0]); + Object.prototype.hasOwnProperty.call(l, "barycenter") || (l.barycenter = 0, l.weight = 0), l.barycenter = (l.barycenter * l.weight + h.order + v.order) / (l.weight + 2), l.weight += 2; + } + return l; +} +function ca(e, n) { + c(e, function(r) { + r.vs = A( + r.vs.map(function(t) { + return n[t] ? n[t].vs : t; + }) + ); + }); +} +function la(e, n) { + x(e.barycenter) ? (e.barycenter = n.barycenter, e.weight = n.weight) : (e.barycenter = (e.barycenter * e.weight + n.barycenter * n.weight) / (e.weight + n.weight), e.weight += n.weight); +} +function ha(e) { + var n = xn(e), r = We(e, _(1, n + 1), "inEdges"), t = We(e, _(n - 1, -1, -1), "outEdges"), i = ia(e); + qe(e, i); + for (var o = Number.POSITIVE_INFINITY, a, u = 0, f = 0; f < 4; ++u, ++f) { + va(u % 2 ? r : t, u % 4 >= 2), i = Z(e); + var d = ra(e, i); + d < o && (f = 0, a = Dt(i), o = d); + } + qe(e, a); +} +function We(e, n, r) { + return g(n, function(t) { + return ea(e, t, r); + }); +} +function va(e, n) { + var r = new E(); + c(e, function(t) { + var i = t.graph().root, o = kn(t, i, r, n); + c(o.vs, function(a, u) { + t.node(a).order = u; + }), Qi(t, r, o.vs); + }); +} +function qe(e, n) { + c(n, function(r) { + c(r, function(t, i) { + e.node(t).order = i; + }); + }); +} +function pa(e) { + var n = wa(e); + c(e.graph().dummyChains, function(r) { + for (var t = e.node(r), i = t.edgeObj, o = ba(e, n, i.v, i.w), a = o.path, u = o.lca, f = 0, d = a[f], s = !0; r !== i.w; ) { + if (t = e.node(r), s) { + for (; (d = a[f]) !== u && e.node(d).maxRank < t.rank; ) + f++; + d === u && (s = !1); + } + if (!s) { + for (; f < a.length - 1 && e.node(d = a[f + 1]).minRank <= t.rank; ) + f++; + d = a[f]; + } + e.setParent(r, d), r = e.successors(r)[0]; + } + }); +} +function ba(e, n, r, t) { + var i = [], o = [], a = Math.min(n[r].low, n[t].low), u = Math.max(n[r].lim, n[t].lim), f, d; + f = r; + do + f = e.parent(f), i.push(f); + while (f && (n[f].low > a || u > n[f].lim)); + for (d = f, f = t; (f = e.parent(f)) !== d; ) + o.push(f); + return { path: i.concat(o.reverse()), lca: d }; +} +function wa(e) { + var n = {}, r = 0; + function t(i) { + var o = r; + c(e.children(i), t), n[i] = { low: o, lim: r++ }; + } + return c(e.children(), t), n; +} +function ga(e, n) { + var r = {}; + function t(i, o) { + var a = 0, u = 0, f = i.length, d = V(o); + return c(o, function(s, l) { + var h = ya(e, s), v = h ? e.node(h).order : f; + (h || s === d) && (c(o.slice(u, l + 1), function(p) { + c(e.predecessors(p), function(w) { + var m = e.node(w), y = m.order; + (y < a || v < y) && !(m.dummy && e.node(p).dummy) && Sn(r, w, p); + }); + }), u = l + 1, a = v); + }), o; + } + return X(n, t), r; +} +function ma(e, n) { + var r = {}; + function t(o, a, u, f, d) { + var s; + c(_(a, u), function(l) { + s = o[l], e.node(s).dummy && c(e.predecessors(s), function(h) { + var v = e.node(h); + v.dummy && (v.order < f || v.order > d) && Sn(r, h, s); + }); + }); + } + function i(o, a) { + var u = -1, f, d = 0; + return c(a, function(s, l) { + if (e.node(s).dummy === "border") { + var h = e.predecessors(s); + h.length && (f = e.node(h[0]).order, t(a, d, l, u, f), d = l, u = f); + } + t(a, d, a.length, f, o.length); + }), a; + } + return X(n, i), r; +} +function ya(e, n) { + if (e.node(n).dummy) + return be(e.predecessors(n), function(r) { + return e.node(r).dummy; + }); +} +function Sn(e, n, r) { + if (n > r) { + var t = n; + n = r, r = t; + } + Object.prototype.hasOwnProperty.call(e, n) || Object.defineProperty(e, n, { + enumerable: !0, + configurable: !0, + value: {}, + writable: !0 + }); + var i = e[n]; + Object.defineProperty(i, r, { + enumerable: !0, + configurable: !0, + value: !0, + writable: !0 + }); +} +function xa(e, n, r) { + if (n > r) { + var t = n; + n = r, r = t; + } + return !!e[n] && Object.prototype.hasOwnProperty.call(e[n], r); +} +function Oa(e, n, r, t) { + var i = {}, o = {}, a = {}; + return c(n, function(u) { + c(u, function(f, d) { + i[f] = f, o[f] = f, a[f] = d; + }); + }), c(n, function(u) { + var f = -1; + c(u, function(d) { + var s = t(d); + if (s.length) { + s = F(s, function(w) { + return a[w]; + }); + for (var l = (s.length - 1) / 2, h = Math.floor(l), v = Math.ceil(l); h <= v; ++h) { + var p = s[h]; + o[d] === d && f < a[p] && !xa(r, d, p) && (o[p] = d, o[d] = i[d] = i[p], f = a[p]); + } + } + }); + }), { root: i, align: o }; +} +function Ea(e, n, r, t, i) { + var o = {}, a = Ta(e, n, r, i), u = i ? "borderLeft" : "borderRight"; + function f(l, h) { + for (var v = a.nodes(), p = v.pop(), w = {}; p; ) + w[p] ? l(p) : (w[p] = !0, v.push(p), v = v.concat(h(p))), p = v.pop(); + } + function d(l) { + o[l] = a.inEdges(l).reduce(function(h, v) { + return Math.max(h, o[v.v] + a.edge(v)); + }, 0); + } + function s(l) { + var h = a.outEdges(l).reduce(function(p, w) { + return Math.min(p, o[w.w] - a.edge(w)); + }, Number.POSITIVE_INFINITY), v = e.node(l); + h !== Number.POSITIVE_INFINITY && v.borderType !== u && (o[l] = Math.max(o[l], h)); + } + return f(d, a.predecessors.bind(a)), f(s, a.successors.bind(a)), c(t, function(l) { + o[l] = o[r[l]]; + }), o; +} +function Ta(e, n, r, t) { + var i = new E(), o = e.graph(), a = _a(o.nodesep, o.edgesep, t); + return c(n, function(u) { + var f; + c(u, function(d) { + var s = r[d]; + if (i.setNode(s), f) { + var l = r[f], h = i.edge(l, s); + i.setEdge(l, s, Math.max(a(e, d, f), h || 0)); + } + f = d; + }); + }), i; +} +function Pa(e, n) { + return ge(I(n), function(r) { + var t = Number.NEGATIVE_INFINITY, i = Number.POSITIVE_INFINITY; + return Ht(r, function(o, a) { + var u = Ca(e, a) / 2; + t = Math.max(o + u, t), i = Math.min(o - u, i); + }), t - i; + }); +} +function La(e, n) { + var r = I(n), t = j(r), i = T(r); + c(["u", "d"], function(o) { + c(["l", "r"], function(a) { + var u = o + a, f = e[u], d; + if (f !== n) { + var s = I(f); + d = a === "l" ? t - j(s) : i - T(s), d && (e[u] = J(f, function(l) { + return l + d; + })); + } + }); + }); +} +function Na(e, n) { + return J(e.ul, function(r, t) { + if (n) + return e[n.toLowerCase()][t]; + var i = F(g(e, t)); + return (i[1] + i[2]) / 2; + }); +} +function Ia(e) { + var n = Z(e), r = oe(ga(e, n), ma(e, n)), t = {}, i; + c(["u", "d"], function(a) { + i = a === "u" ? n : I(n).reverse(), c(["l", "r"], function(u) { + u === "r" && (i = g(i, function(l) { + return I(l).reverse(); + })); + var f = (a === "u" ? e.predecessors : e.successors).bind(e), d = Oa(e, i, r, f), s = Ea(e, i, d.root, d.align, u === "r"); + u === "r" && (s = J(s, function(l) { + return -l; + })), t[a + u] = s; + }); + }); + var o = Pa(e, t); + return La(t, o), Na(t, e.graph().align); +} +function _a(e, n, r) { + return function(t, i, o) { + var a = t.node(i), u = t.node(o), f = 0, d; + if (f += a.width / 2, Object.prototype.hasOwnProperty.call(a, "labelpos")) + switch (a.labelpos.toLowerCase()) { + case "l": + d = -a.width / 2; + break; + case "r": + d = a.width / 2; + break; + } + if (d && (f += r ? d : -d), d = 0, f += (a.dummy ? n : e) / 2, f += (u.dummy ? n : e) / 2, f += u.width / 2, Object.prototype.hasOwnProperty.call(u, "labelpos")) + switch (u.labelpos.toLowerCase()) { + case "l": + d = u.width / 2; + break; + case "r": + d = -u.width / 2; + break; + } + return d && (f += r ? d : -d), d = 0, f; + }; +} +function Ca(e, n) { + return e.node(n).width; +} +function Aa(e) { + e = yn(e), ka(e), zt(Ia(e), function(n, r) { + e.node(r).x = n; + }); +} +function ka(e) { + var n = Z(e), r = e.graph().ranksep, t = 0; + c(n, function(i) { + var o = T( + g(i, function(a) { + return e.node(a).height; + }) + ); + c(i, function(a) { + e.node(a).y = t + o / 2; + }), t += o + r; + }); +} +function to(e, n) { + var r = Ii; + r("layout", () => { + var t = r(" buildLayoutGraph", () => Ua(e)); + r(" runLayout", () => Sa(t, r)), r(" updateInputGraph", () => ja(e, t)); + }); +} +function Sa(e, n) { + n(" makeSpaceForEdgeLabels", () => Va(e)), n(" removeSelfEdges", () => Qa(e)), n(" acyclic", () => xi(e)), n(" nestingGraph.run", () => Hi(e)), n(" rank", () => qi(yn(e))), n(" injectEdgeLabelProxies", () => Wa(e)), n(" removeEmptyRanks", () => Li(e)), n(" nestingGraph.cleanup", () => Zi(e)), n(" normalizeRanks", () => Pi(e)), n(" assignRankMinMax", () => qa(e)), n(" removeEdgeLabelProxies", () => Ka(e)), n(" normalize.run", () => ji(e)), n(" parentDummyChains", () => pa(e)), n(" addBorderSegments", () => _i(e)), n(" order", () => ha(e)), n(" insertSelfEdges", () => eo(e)), n(" adjustCoordinateSystem", () => Ci(e)), n(" position", () => Aa(e)), n(" positionSelfEdges", () => no(e)), n(" removeBorderNodes", () => Za(e)), n(" normalize.undo", () => Ri(e)), n(" fixupEdgeLabelCoords", () => za(e)), n(" undoCoordinateSystem", () => Ai(e)), n(" translateGraph", () => Xa(e)), n(" assignNodeIntersects", () => Ha(e)), n(" reversePoints", () => Ja(e)), n(" acyclic.undo", () => Ei(e)); +} +function ja(e, n) { + c(e.nodes(), function(r) { + var t = e.node(r), i = n.node(r); + t && (t.x = i.x, t.y = i.y, n.children(r).length && (t.width = i.width, t.height = i.height)); + }), c(e.edges(), function(r) { + var t = e.edge(r), i = n.edge(r); + t.points = i.points, Object.prototype.hasOwnProperty.call(i, "x") && (t.x = i.x, t.y = i.y); + }), e.graph().width = n.graph().width, e.graph().height = n.graph().height; +} +var Ma = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], Ra = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, $a = ["acyclicer", "ranker", "rankdir", "align"], Fa = ["width", "height"], Ba = { width: 0, height: 0 }, Ga = ["minlen", "weight", "width", "height", "labeloffset"], Da = { + minlen: 1, + weight: 1, + width: 0, + height: 0, + labeloffset: 10, + labelpos: "r" +}, Ya = ["labelpos"]; +function Ua(e) { + var n = new E({ multigraph: !0, compound: !0 }), r = te(e.graph()); + return n.setGraph( + oe({}, Ra, re(r, Ma), W(r, $a)) + ), c(e.nodes(), function(t) { + var i = te(e.node(t)); + n.setNode(t, Ut(re(i, Fa), Ba)), n.setParent(t, e.parent(t)); + }), c(e.edges(), function(t) { + var i = te(e.edge(t)); + n.setEdge( + t, + oe({}, Da, re(i, Ga), W(i, Ya)) + ); + }), n; +} +function Va(e) { + var n = e.graph(); + n.ranksep /= 2, c(e.edges(), function(r) { + var t = e.edge(r); + t.minlen *= 2, t.labelpos.toLowerCase() !== "c" && (n.rankdir === "TB" || n.rankdir === "BT" ? t.width += t.labeloffset : t.height += t.labeloffset); + }); +} +function Wa(e) { + c(e.edges(), function(n) { + var r = e.edge(n); + if (r.width && r.height) { + var t = e.node(n.v), i = e.node(n.w), o = { rank: (i.rank - t.rank) / 2 + t.rank, e: n }; + k(e, "edge-proxy", o, "_ep"); + } + }); +} +function qa(e) { + var n = 0; + c(e.nodes(), function(r) { + var t = e.node(r); + t.borderTop && (t.minRank = e.node(t.borderTop).rank, t.maxRank = e.node(t.borderBottom).rank, n = T(n, t.maxRank)); + }), e.graph().maxRank = n; +} +function Ka(e) { + c(e.nodes(), function(n) { + var r = e.node(n); + r.dummy === "edge-proxy" && (e.edge(r.e).labelRank = r.rank, e.removeNode(n)); + }); +} +function Xa(e) { + var n = Number.POSITIVE_INFINITY, r = 0, t = Number.POSITIVE_INFINITY, i = 0, o = e.graph(), a = o.marginx || 0, u = o.marginy || 0; + function f(d) { + var s = d.x, l = d.y, h = d.width, v = d.height; + n = Math.min(n, s - h / 2), r = Math.max(r, s + h / 2), t = Math.min(t, l - v / 2), i = Math.max(i, l + v / 2); + } + c(e.nodes(), function(d) { + f(e.node(d)); + }), c(e.edges(), function(d) { + var s = e.edge(d); + Object.prototype.hasOwnProperty.call(s, "x") && f(s); + }), n -= a, t -= u, c(e.nodes(), function(d) { + var s = e.node(d); + s.x -= n, s.y -= t; + }), c(e.edges(), function(d) { + var s = e.edge(d); + c(s.points, function(l) { + l.x -= n, l.y -= t; + }), Object.prototype.hasOwnProperty.call(s, "x") && (s.x -= n), Object.prototype.hasOwnProperty.call(s, "y") && (s.y -= t); + }), o.width = r - n + a, o.height = i - t + u; +} +function Ha(e) { + c(e.edges(), function(n) { + var r = e.edge(n), t = e.node(n.v), i = e.node(n.w), o, a; + r.points ? (o = r.points[0], a = r.points[r.points.length - 1]) : (r.points = [], o = i, a = t), r.points.unshift(Fe(t, o)), r.points.push(Fe(i, a)); + }); +} +function za(e) { + c(e.edges(), function(n) { + var r = e.edge(n); + if (Object.prototype.hasOwnProperty.call(r, "x")) + switch ((r.labelpos === "l" || r.labelpos === "r") && (r.width -= r.labeloffset), r.labelpos) { + case "l": + r.x -= r.width / 2 + r.labeloffset; + break; + case "r": + r.x += r.width / 2 + r.labeloffset; + break; + } + }); +} +function Ja(e) { + c(e.edges(), function(n) { + var r = e.edge(n); + r.reversed && r.points.reverse(); + }); +} +function Za(e) { + c(e.nodes(), function(n) { + if (e.children(n).length) { + var r = e.node(n), t = e.node(r.borderTop), i = e.node(r.borderBottom), o = e.node(V(r.borderLeft)), a = e.node(V(r.borderRight)); + r.width = Math.abs(a.x - o.x), r.height = Math.abs(i.y - t.y), r.x = o.x + r.width / 2, r.y = t.y + r.height / 2; + } + }), c(e.nodes(), function(n) { + e.node(n).dummy === "border" && e.removeNode(n); + }); +} +function Qa(e) { + c(e.edges(), function(n) { + if (n.v === n.w) { + var r = e.node(n.v); + r.selfEdges || (r.selfEdges = []), r.selfEdges.push({ e: n, label: e.edge(n) }), e.removeEdge(n); + } + }); +} +function eo(e) { + var n = Z(e); + c(n, function(r) { + var t = 0; + c(r, function(i, o) { + var a = e.node(i); + a.order = o + t, c(a.selfEdges, function(u) { + k( + e, + "selfedge", + { + width: u.label.width, + height: u.label.height, + rank: a.rank, + order: o + ++t, + e: u.e, + label: u.label + }, + "_se" + ); + }), delete a.selfEdges; + }); + }); +} +function no(e) { + c(e.nodes(), function(n) { + var r = e.node(n); + if (r.dummy === "selfedge") { + var t = e.node(r.e.v), i = t.x + t.width / 2, o = t.y, a = r.x - i, u = t.height / 2; + e.setEdge(r.e, r.label), e.removeNode(n), r.label.points = [ + { x: i + 2 * a / 3, y: o - u }, + { x: i + 5 * a / 6, y: o - u }, + { x: i + a, y: o }, + { x: i + 5 * a / 6, y: o + u }, + { x: i + 2 * a / 3, y: o + u } + ], r.label.x = r.x, r.label.y = r.y; + } + }); +} +function re(e, n) { + return J(W(e, n), Number); +} +function te(e) { + var n = {}; + return c(e, function(r, t) { + n[t.toLowerCase()] = r; + }), n; +} +export { + D as b, + to as l, + g as m +}; diff --git a/src/wc-content-kit/public/mermaid/layout-DnbSog08.js b/src/wc-content-kit/public/mermaid/layout-DnbSog08.js deleted file mode 100644 index 19f8463..0000000 --- a/src/wc-content-kit/public/mermaid/layout-DnbSog08.js +++ /dev/null @@ -1,1441 +0,0 @@ -import { b as Ve, G as g, i as m, v as E } from "./graph-DgQ8kYSl.js"; -import { i as z, c as C, k as Ye, o as $e, p as ve, q as pe, t as De, u as we, v as qe, w as be, d as V, x as We, b as ze, y as Xe, n as f, m as I, r as B } from "./_baseUniq-B0FPZyMQ.js"; -import { f as O, b as me, a as He, c as Ue, m as w, d as P } from "./min-Ds2tR2xq.js"; -import { a$ as M, by as Ze, bz as Je, b6 as ge, bA as S, aS as ye, br as Ke, aG as Qe, bw as en, bB as nn, aI as xe, bv as rn, b5 as Ee, aH as ke, aZ as tn, b8 as an, bC as X } from "./mermaid.core-Jw3znkh4.js"; -var on = /\s/; -function un(e) { - for (var n = e.length; n-- && on.test(e.charAt(n)); ) - ; - return n; -} -var dn = /^\s+/; -function sn(e) { - return e && e.slice(0, un(e) + 1).replace(dn, ""); -} -var re = NaN, fn = /^[-+]0x[0-9a-f]+$/i, cn = /^0b[01]+$/i, ln = /^0o[0-7]+$/i, hn = parseInt; -function vn(e) { - if (typeof e == "number") - return e; - if (z(e)) - return re; - if (M(e)) { - var n = typeof e.valueOf == "function" ? e.valueOf() : e; - e = M(n) ? n + "" : n; - } - if (typeof e != "string") - return e === 0 ? e : +e; - e = sn(e); - var r = cn.test(e); - return r || ln.test(e) ? hn(e.slice(2), r ? 2 : 8) : fn.test(e) ? re : +e; -} -var te = 1 / 0, pn = 17976931348623157e292; -function T(e) { - if (!e) - return e === 0 ? e : 0; - if (e = vn(e), e === te || e === -te) { - var n = e < 0 ? -1 : 1; - return n * pn; - } - return e === e ? e : 0; -} -function wn(e) { - var n = T(e), r = n % 1; - return n === n ? r ? n - r : n : 0; -} -function bn(e) { - return Ze(Je(e, void 0, O), e + ""); -} -var mn = 1, gn = 4; -function yn(e) { - return Ve(e, mn | gn); -} -var Oe = Object.prototype, xn = Oe.hasOwnProperty, En = ge(function(e, n) { - e = Object(e); - var r = -1, t = n.length, i = t > 2 ? n[2] : void 0; - for (i && S(n[0], n[1], i) && (t = 1); ++r < t; ) - for (var o = n[r], a = ye(o), u = -1, d = a.length; ++u < d; ) { - var s = a[u], c = e[s]; - (c === void 0 || Ke(c, Oe[s]) && !xn.call(e, s)) && (e[s] = o[s]); - } - return e; -}); -function F(e) { - var n = e == null ? 0 : e.length; - return n ? e[n - 1] : void 0; -} -function kn(e) { - return function(n, r, t) { - var i = Object(n); - if (!Qe(n)) { - var o = C(r); - n = Ye(n), r = function(u) { - return o(i[u], u, i); - }; - } - var a = e(n, r, t); - return a > -1 ? i[o ? n[a] : a] : void 0; - }; -} -var On = Math.max; -function Nn(e, n, r) { - var t = e == null ? 0 : e.length; - if (!t) - return -1; - var i = r == null ? 0 : wn(r); - return i < 0 && (i = On(t + i, 0)), $e(e, C(n), i); -} -var U = kn(Nn); -function Ln(e, n) { - return e == null ? e : en(e, ve(n), ye); -} -function Pn(e, n) { - return e && pe(e, ve(n)); -} -function _n(e, n) { - return e > n; -} -var Cn = Object.prototype, In = Cn.hasOwnProperty; -function Rn(e, n) { - return e != null && In.call(e, n); -} -function Ne(e, n) { - return e != null && De(e, n, Rn); -} -function j(e, n) { - var r = {}; - return n = C(n), pe(e, function(t, i, o) { - nn(r, i, n(t, i, o)); - }), r; -} -function y(e) { - return e && e.length ? me(e, xe, _n) : void 0; -} -function Z(e, n) { - return e && e.length ? me(e, C(n), He) : void 0; -} -function Tn(e, n, r, t) { - if (!M(e)) - return e; - n = we(n, e); - for (var i = -1, o = n.length, a = o - 1, u = e; u != null && ++i < o; ) { - var d = qe(n[i]), s = r; - if (d === "__proto__" || d === "constructor" || d === "prototype") - return e; - if (i != a) { - var c = u[d]; - s = void 0, s === void 0 && (s = M(c) ? c : rn(n[i + 1]) ? [] : {}); - } - Ee(u, d, s), u = u[d]; - } - return e; -} -function Mn(e, n, r) { - for (var t = -1, i = n.length, o = {}; ++t < i; ) { - var a = n[t], u = be(e, a); - r(u, a) && Tn(o, we(a, e), u); - } - return o; -} -function Sn(e, n) { - var r = e.length; - for (e.sort(n); r--; ) - e[r] = e[r].value; - return e; -} -function Fn(e, n) { - if (e !== n) { - var r = e !== void 0, t = e === null, i = e === e, o = z(e), a = n !== void 0, u = n === null, d = n === n, s = z(n); - if (!u && !s && !o && e > n || o && a && d && !u && !s || t && a && d || !r && d || !i) - return 1; - if (!t && !o && !s && e < n || s && r && i && !t && !o || u && r && i || !a && i || !d) - return -1; - } - return 0; -} -function An(e, n, r) { - for (var t = -1, i = e.criteria, o = n.criteria, a = i.length, u = r.length; ++t < a; ) { - var d = Fn(i[t], o[t]); - if (d) { - if (t >= u) - return d; - var s = r[t]; - return d * (s == "desc" ? -1 : 1); - } - } - return e.index - n.index; -} -function Bn(e, n, r) { - n.length ? n = V(n, function(o) { - return ke(o) ? function(a) { - return be(a, o.length === 1 ? o[0] : o); - } : o; - }) : n = [xe]; - var t = -1; - n = V(n, tn(C)); - var i = Ue(e, function(o, a, u) { - var d = V(n, function(s) { - return s(o); - }); - return { criteria: d, index: ++t, value: o }; - }); - return Sn(i, function(o, a) { - return An(o, a, r); - }); -} -function jn(e, n) { - return Mn(e, n, function(r, t) { - return We(e, t); - }); -} -var A = bn(function(e, n) { - return e == null ? {} : jn(e, n); -}), Gn = Math.ceil, Vn = Math.max; -function Yn(e, n, r, t) { - for (var i = -1, o = Vn(Gn((n - e) / (r || 1)), 0), a = Array(o); o--; ) - a[++i] = e, e += r; - return a; -} -function $n(e) { - return function(n, r, t) { - return t && typeof t != "number" && S(n, r, t) && (r = t = void 0), n = T(n), r === void 0 ? (r = n, n = 0) : r = T(r), t = t === void 0 ? n < r ? 1 : -1 : T(t), Yn(n, r, t); - }; -} -var k = $n(), R = ge(function(e, n) { - if (e == null) - return []; - var r = n.length; - return r > 1 && S(e, n[0], n[1]) ? n = [] : r > 2 && S(n[0], n[1], n[2]) && (n = [n[0]]), Bn(e, ze(n), []); -}), Dn = 0; -function J(e) { - var n = ++Dn; - return Xe(e) + n; -} -function qn(e, n, r) { - for (var t = -1, i = e.length, o = n.length, a = {}; ++t < i; ) { - var u = t < o ? n[t] : void 0; - r(a, e[t], u); - } - return a; -} -function Wn(e, n) { - return qn(e || [], n || [], Ee); -} -class zn { - constructor() { - var n = {}; - n._next = n._prev = n, this._sentinel = n; - } - dequeue() { - var n = this._sentinel, r = n._prev; - if (r !== n) - return ie(r), r; - } - enqueue(n) { - var r = this._sentinel; - n._prev && n._next && ie(n), n._next = r._next, r._next._prev = n, r._next = n, n._prev = r; - } - toString() { - for (var n = [], r = this._sentinel, t = r._prev; t !== r; ) - n.push(JSON.stringify(t, Xn)), t = t._prev; - return "[" + n.join(", ") + "]"; - } -} -function ie(e) { - e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev; -} -function Xn(e, n) { - if (e !== "_next" && e !== "_prev") - return n; -} -var Hn = an(1); -function Un(e, n) { - if (e.nodeCount() <= 1) - return []; - var r = Jn(e, n || Hn), t = Zn(r.graph, r.buckets, r.zeroIdx); - return O( - w(t, function(i) { - return e.outEdges(i.v, i.w); - }) - ); -} -function Zn(e, n, r) { - for (var t = [], i = n[n.length - 1], o = n[0], a; e.nodeCount(); ) { - for (; a = o.dequeue(); ) - Y(e, n, r, a); - for (; a = i.dequeue(); ) - Y(e, n, r, a); - if (e.nodeCount()) { - for (var u = n.length - 2; u > 0; --u) - if (a = n[u].dequeue(), a) { - t = t.concat(Y(e, n, r, a, !0)); - break; - } - } - } - return t; -} -function Y(e, n, r, t, i) { - var o = i ? [] : void 0; - return f(e.inEdges(t.v), function(a) { - var u = e.edge(a), d = e.node(a.v); - i && o.push({ v: a.v, w: a.w }), d.out -= u, H(n, r, d); - }), f(e.outEdges(t.v), function(a) { - var u = e.edge(a), d = a.w, s = e.node(d); - s.in -= u, H(n, r, s); - }), e.removeNode(t.v), o; -} -function Jn(e, n) { - var r = new g(), t = 0, i = 0; - f(e.nodes(), function(u) { - r.setNode(u, { v: u, in: 0, out: 0 }); - }), f(e.edges(), function(u) { - var d = r.edge(u.v, u.w) || 0, s = n(u), c = d + s; - r.setEdge(u.v, u.w, c), i = Math.max(i, r.node(u.v).out += s), t = Math.max(t, r.node(u.w).in += s); - }); - var o = k(i + t + 3).map(function() { - return new zn(); - }), a = t + 1; - return f(r.nodes(), function(u) { - H(o, a, r.node(u)); - }), { graph: r, buckets: o, zeroIdx: a }; -} -function H(e, n, r) { - r.out ? r.in ? e[r.out - r.in + n].enqueue(r) : e[e.length - 1].enqueue(r) : e[0].enqueue(r); -} -function Kn(e) { - var n = e.graph().acyclicer === "greedy" ? Un(e, r(e)) : Qn(e); - f(n, function(t) { - var i = e.edge(t); - e.removeEdge(t), i.forwardName = t.name, i.reversed = !0, e.setEdge(t.w, t.v, i, J("rev")); - }); - function r(t) { - return function(i) { - return t.edge(i).weight; - }; - } -} -function Qn(e) { - var n = [], r = {}, t = {}; - function i(o) { - Object.prototype.hasOwnProperty.call(t, o) || (t[o] = !0, r[o] = !0, f(e.outEdges(o), function(a) { - Object.prototype.hasOwnProperty.call(r, a.w) ? n.push(a) : i(a.w); - }), delete r[o]); - } - return f(e.nodes(), i), n; -} -function er(e) { - f(e.edges(), function(n) { - var r = e.edge(n); - if (r.reversed) { - e.removeEdge(n); - var t = r.forwardName; - delete r.reversed, delete r.forwardName, e.setEdge(n.w, n.v, r, t); - } - }); -} -function N(e, n, r, t) { - var i; - do - i = J(t); - while (e.hasNode(i)); - return r.dummy = n, e.setNode(i, r), i; -} -function nr(e) { - var n = new g().setGraph(e.graph()); - return f(e.nodes(), function(r) { - n.setNode(r, e.node(r)); - }), f(e.edges(), function(r) { - var t = n.edge(r.v, r.w) || { weight: 0, minlen: 1 }, i = e.edge(r); - n.setEdge(r.v, r.w, { - weight: t.weight + i.weight, - minlen: Math.max(t.minlen, i.minlen) - }); - }), n; -} -function Le(e) { - var n = new g({ multigraph: e.isMultigraph() }).setGraph(e.graph()); - return f(e.nodes(), function(r) { - e.children(r).length || n.setNode(r, e.node(r)); - }), f(e.edges(), function(r) { - n.setEdge(r, e.edge(r)); - }), n; -} -function ae(e, n) { - var r = e.x, t = e.y, i = n.x - r, o = n.y - t, a = e.width / 2, u = e.height / 2; - if (!i && !o) - throw new Error("Not possible to find intersection inside of the rectangle"); - var d, s; - return Math.abs(o) * a > Math.abs(i) * u ? (o < 0 && (u = -u), d = u * i / o, s = u) : (i < 0 && (a = -a), d = a, s = a * o / i), { x: r + d, y: t + s }; -} -function G(e) { - var n = w(k(Pe(e) + 1), function() { - return []; - }); - return f(e.nodes(), function(r) { - var t = e.node(r), i = t.rank; - m(i) || (n[i][t.order] = r); - }), n; -} -function rr(e) { - var n = P( - w(e.nodes(), function(r) { - return e.node(r).rank; - }) - ); - f(e.nodes(), function(r) { - var t = e.node(r); - Ne(t, "rank") && (t.rank -= n); - }); -} -function tr(e) { - var n = P( - w(e.nodes(), function(o) { - return e.node(o).rank; - }) - ), r = []; - f(e.nodes(), function(o) { - var a = e.node(o).rank - n; - r[a] || (r[a] = []), r[a].push(o); - }); - var t = 0, i = e.graph().nodeRankFactor; - f(r, function(o, a) { - m(o) && a % i !== 0 ? --t : t && f(o, function(u) { - e.node(u).rank += t; - }); - }); -} -function oe(e, n, r, t) { - var i = { - width: 0, - height: 0 - }; - return arguments.length >= 4 && (i.rank = r, i.order = t), N(e, "border", i, n); -} -function Pe(e) { - return y( - w(e.nodes(), function(n) { - var r = e.node(n).rank; - if (!m(r)) - return r; - }) - ); -} -function ir(e, n) { - var r = { lhs: [], rhs: [] }; - return f(e, function(t) { - n(t) ? r.lhs.push(t) : r.rhs.push(t); - }), r; -} -function ar(e, n) { - return n(); -} -function or(e) { - function n(r) { - var t = e.children(r), i = e.node(r); - if (t.length && f(t, n), Object.prototype.hasOwnProperty.call(i, "minRank")) { - i.borderLeft = [], i.borderRight = []; - for (var o = i.minRank, a = i.maxRank + 1; o < a; ++o) - ue(e, "borderLeft", "_bl", r, i, o), ue(e, "borderRight", "_br", r, i, o); - } - } - f(e.children(), n); -} -function ue(e, n, r, t, i, o) { - var a = { width: 0, height: 0, rank: o, borderType: n }, u = i[n][o - 1], d = N(e, "border", a, r); - i[n][o] = d, e.setParent(d, t), u && e.setEdge(u, d, { weight: 1 }); -} -function ur(e) { - var n = e.graph().rankdir.toLowerCase(); - (n === "lr" || n === "rl") && _e(e); -} -function dr(e) { - var n = e.graph().rankdir.toLowerCase(); - (n === "bt" || n === "rl") && sr(e), (n === "lr" || n === "rl") && (fr(e), _e(e)); -} -function _e(e) { - f(e.nodes(), function(n) { - de(e.node(n)); - }), f(e.edges(), function(n) { - de(e.edge(n)); - }); -} -function de(e) { - var n = e.width; - e.width = e.height, e.height = n; -} -function sr(e) { - f(e.nodes(), function(n) { - $(e.node(n)); - }), f(e.edges(), function(n) { - var r = e.edge(n); - f(r.points, $), Object.prototype.hasOwnProperty.call(r, "y") && $(r); - }); -} -function $(e) { - e.y = -e.y; -} -function fr(e) { - f(e.nodes(), function(n) { - D(e.node(n)); - }), f(e.edges(), function(n) { - var r = e.edge(n); - f(r.points, D), Object.prototype.hasOwnProperty.call(r, "x") && D(r); - }); -} -function D(e) { - var n = e.x; - e.x = e.y, e.y = n; -} -function cr(e) { - e.graph().dummyChains = [], f(e.edges(), function(n) { - lr(e, n); - }); -} -function lr(e, n) { - var r = n.v, t = e.node(r).rank, i = n.w, o = e.node(i).rank, a = n.name, u = e.edge(n), d = u.labelRank; - if (o !== t + 1) { - e.removeEdge(n); - var s = void 0, c, l; - for (l = 0, ++t; t < o; ++l, ++t) - u.points = [], s = { - width: 0, - height: 0, - edgeLabel: u, - edgeObj: n, - rank: t - }, c = N(e, "edge", s, "_d"), t === d && (s.width = u.width, s.height = u.height, s.dummy = "edge-label", s.labelpos = u.labelpos), e.setEdge(r, c, { weight: u.weight }, a), l === 0 && e.graph().dummyChains.push(c), r = c; - e.setEdge(r, i, { weight: u.weight }, a); - } -} -function hr(e) { - f(e.graph().dummyChains, function(n) { - var r = e.node(n), t = r.edgeLabel, i; - for (e.setEdge(r.edgeObj, t); r.dummy; ) - i = e.successors(n)[0], e.removeNode(n), t.points.push({ x: r.x, y: r.y }), r.dummy === "edge-label" && (t.x = r.x, t.y = r.y, t.width = r.width, t.height = r.height), n = i, r = e.node(n); - }); -} -function K(e) { - var n = {}; - function r(t) { - var i = e.node(t); - if (Object.prototype.hasOwnProperty.call(n, t)) - return i.rank; - n[t] = !0; - var o = P( - w(e.outEdges(t), function(a) { - return r(a.w) - e.edge(a).minlen; - }) - ); - return (o === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3 - o === void 0 || // return value of _.map([]) for Lodash 4 - o === null) && (o = 0), i.rank = o; - } - f(e.sources(), r); -} -function _(e, n) { - return e.node(n.w).rank - e.node(n.v).rank - e.edge(n).minlen; -} -function Ce(e) { - var n = new g({ directed: !1 }), r = e.nodes()[0], t = e.nodeCount(); - n.setNode(r, {}); - for (var i, o; vr(n, e) < t; ) - i = pr(n, e), o = n.hasNode(i.v) ? _(e, i) : -_(e, i), wr(n, e, o); - return n; -} -function vr(e, n) { - function r(t) { - f(n.nodeEdges(t), function(i) { - var o = i.v, a = t === o ? i.w : o; - !e.hasNode(a) && !_(n, i) && (e.setNode(a, {}), e.setEdge(t, a, {}), r(a)); - }); - } - return f(e.nodes(), r), e.nodeCount(); -} -function pr(e, n) { - return Z(n.edges(), function(r) { - if (e.hasNode(r.v) !== e.hasNode(r.w)) - return _(n, r); - }); -} -function wr(e, n, r) { - f(e.nodes(), function(t) { - n.node(t).rank += r; - }); -} -function br() { -} -br.prototype = new Error(); -function Ie(e, n, r) { - ke(n) || (n = [n]); - var t = (e.isDirected() ? e.successors : e.neighbors).bind(e), i = [], o = {}; - return f(n, function(a) { - if (!e.hasNode(a)) - throw new Error("Graph does not have node: " + a); - Re(e, a, r === "post", o, t, i); - }), i; -} -function Re(e, n, r, t, i, o) { - Object.prototype.hasOwnProperty.call(t, n) || (t[n] = !0, r || o.push(n), f(i(n), function(a) { - Re(e, a, r, t, i, o); - }), r && o.push(n)); -} -function mr(e, n) { - return Ie(e, n, "post"); -} -function gr(e, n) { - return Ie(e, n, "pre"); -} -x.initLowLimValues = ee; -x.initCutValues = Q; -x.calcCutValue = Te; -x.leaveEdge = Se; -x.enterEdge = Fe; -x.exchangeEdges = Ae; -function x(e) { - e = nr(e), K(e); - var n = Ce(e); - ee(n), Q(n, e); - for (var r, t; r = Se(n); ) - t = Fe(n, e, r), Ae(n, e, r, t); -} -function Q(e, n) { - var r = mr(e, e.nodes()); - r = r.slice(0, r.length - 1), f(r, function(t) { - yr(e, n, t); - }); -} -function yr(e, n, r) { - var t = e.node(r), i = t.parent; - e.edge(r, i).cutvalue = Te(e, n, r); -} -function Te(e, n, r) { - var t = e.node(r), i = t.parent, o = !0, a = n.edge(r, i), u = 0; - return a || (o = !1, a = n.edge(i, r)), u = a.weight, f(n.nodeEdges(r), function(d) { - var s = d.v === r, c = s ? d.w : d.v; - if (c !== i) { - var l = s === o, h = n.edge(d).weight; - if (u += l ? h : -h, Er(e, r, c)) { - var v = e.edge(r, c).cutvalue; - u += l ? -v : v; - } - } - }), u; -} -function ee(e, n) { - arguments.length < 2 && (n = e.nodes()[0]), Me(e, {}, 1, n); -} -function Me(e, n, r, t, i) { - var o = r, a = e.node(t); - return n[t] = !0, f(e.neighbors(t), function(u) { - Object.prototype.hasOwnProperty.call(n, u) || (r = Me(e, n, r, u, t)); - }), a.low = o, a.lim = r++, i ? a.parent = i : delete a.parent, r; -} -function Se(e) { - return U(e.edges(), function(n) { - return e.edge(n).cutvalue < 0; - }); -} -function Fe(e, n, r) { - var t = r.v, i = r.w; - n.hasEdge(t, i) || (t = r.w, i = r.v); - var o = e.node(t), a = e.node(i), u = o, d = !1; - o.lim > a.lim && (u = a, d = !0); - var s = I(n.edges(), function(c) { - return d === se(e, e.node(c.v), u) && d !== se(e, e.node(c.w), u); - }); - return Z(s, function(c) { - return _(n, c); - }); -} -function Ae(e, n, r, t) { - var i = r.v, o = r.w; - e.removeEdge(i, o), e.setEdge(t.v, t.w, {}), ee(e), Q(e, n), xr(e, n); -} -function xr(e, n) { - var r = U(e.nodes(), function(i) { - return !n.node(i).parent; - }), t = gr(e, r); - t = t.slice(1), f(t, function(i) { - var o = e.node(i).parent, a = n.edge(i, o), u = !1; - a || (a = n.edge(o, i), u = !0), n.node(i).rank = n.node(o).rank + (u ? a.minlen : -a.minlen); - }); -} -function Er(e, n, r) { - return e.hasEdge(n, r); -} -function se(e, n, r) { - return r.low <= n.lim && n.lim <= r.lim; -} -function kr(e) { - switch (e.graph().ranker) { - case "network-simplex": - fe(e); - break; - case "tight-tree": - Nr(e); - break; - case "longest-path": - Or(e); - break; - default: - fe(e); - } -} -var Or = K; -function Nr(e) { - K(e), Ce(e); -} -function fe(e) { - x(e); -} -function Lr(e) { - var n = N(e, "root", {}, "_root"), r = Pr(e), t = y(E(r)) - 1, i = 2 * t + 1; - e.graph().nestingRoot = n, f(e.edges(), function(a) { - e.edge(a).minlen *= i; - }); - var o = _r(e) + 1; - f(e.children(), function(a) { - Be(e, n, i, o, t, r, a); - }), e.graph().nodeRankFactor = i; -} -function Be(e, n, r, t, i, o, a) { - var u = e.children(a); - if (!u.length) { - a !== n && e.setEdge(n, a, { weight: 0, minlen: r }); - return; - } - var d = oe(e, "_bt"), s = oe(e, "_bb"), c = e.node(a); - e.setParent(d, a), c.borderTop = d, e.setParent(s, a), c.borderBottom = s, f(u, function(l) { - Be(e, n, r, t, i, o, l); - var h = e.node(l), v = h.borderTop ? h.borderTop : l, p = h.borderBottom ? h.borderBottom : l, b = h.borderTop ? t : 2 * t, L = v !== p ? 1 : i - o[a] + 1; - e.setEdge(d, v, { - weight: b, - minlen: L, - nestingEdge: !0 - }), e.setEdge(p, s, { - weight: b, - minlen: L, - nestingEdge: !0 - }); - }), e.parent(a) || e.setEdge(n, d, { weight: 0, minlen: i + o[a] }); -} -function Pr(e) { - var n = {}; - function r(t, i) { - var o = e.children(t); - o && o.length && f(o, function(a) { - r(a, i + 1); - }), n[t] = i; - } - return f(e.children(), function(t) { - r(t, 1); - }), n; -} -function _r(e) { - return B( - e.edges(), - function(n, r) { - return n + e.edge(r).weight; - }, - 0 - ); -} -function Cr(e) { - var n = e.graph(); - e.removeNode(n.nestingRoot), delete n.nestingRoot, f(e.edges(), function(r) { - var t = e.edge(r); - t.nestingEdge && e.removeEdge(r); - }); -} -function Ir(e, n, r) { - var t = {}, i; - f(r, function(o) { - for (var a = e.parent(o), u, d; a; ) { - if (u = e.parent(a), u ? (d = t[u], t[u] = a) : (d = i, i = a), d && d !== a) { - n.setEdge(d, a); - return; - } - a = u; - } - }); -} -function Rr(e, n, r) { - var t = Tr(e), i = new g({ compound: !0 }).setGraph({ root: t }).setDefaultNodeLabel(function(o) { - return e.node(o); - }); - return f(e.nodes(), function(o) { - var a = e.node(o), u = e.parent(o); - (a.rank === n || a.minRank <= n && n <= a.maxRank) && (i.setNode(o), i.setParent(o, u || t), f(e[r](o), function(d) { - var s = d.v === o ? d.w : d.v, c = i.edge(s, o), l = m(c) ? 0 : c.weight; - i.setEdge(s, o, { weight: e.edge(d).weight + l }); - }), Object.prototype.hasOwnProperty.call(a, "minRank") && i.setNode(o, { - borderLeft: a.borderLeft[n], - borderRight: a.borderRight[n] - })); - }), i; -} -function Tr(e) { - for (var n; e.hasNode(n = J("_root")); ) ; - return n; -} -function Mr(e, n) { - for (var r = 0, t = 1; t < n.length; ++t) - r += Sr(e, n[t - 1], n[t]); - return r; -} -function Sr(e, n, r) { - for (var t = Wn( - r, - w(r, function(s, c) { - return c; - }) - ), i = O( - w(n, function(s) { - return R( - w(e.outEdges(s), function(c) { - return { pos: t[c.w], weight: e.edge(c).weight }; - }), - "pos" - ); - }) - ), o = 1; o < r.length; ) o <<= 1; - var a = 2 * o - 1; - o -= 1; - var u = w(new Array(a), function() { - return 0; - }), d = 0; - return f( - // @ts-expect-error - i.forEach(function(s) { - var c = s.pos + o; - u[c] += s.weight; - for (var l = 0; c > 0; ) - c % 2 && (l += u[c + 1]), c = c - 1 >> 1, u[c] += s.weight; - d += s.weight * l; - }) - ), d; -} -function Fr(e) { - var n = {}, r = I(e.nodes(), function(u) { - return !e.children(u).length; - }), t = y( - w(r, function(u) { - return e.node(u).rank; - }) - ), i = w(k(t + 1), function() { - return []; - }); - function o(u) { - if (!Ne(n, u)) { - n[u] = !0; - var d = e.node(u); - i[d.rank].push(u), f(e.successors(u), o); - } - } - var a = R(r, function(u) { - return e.node(u).rank; - }); - return f(a, o), i; -} -function Ar(e, n) { - return w(n, function(r) { - var t = e.inEdges(r); - if (t.length) { - var i = B( - t, - function(o, a) { - var u = e.edge(a), d = e.node(a.v); - return { - sum: o.sum + u.weight * d.order, - weight: o.weight + u.weight - }; - }, - { sum: 0, weight: 0 } - ); - return { - v: r, - barycenter: i.sum / i.weight, - weight: i.weight - }; - } else - return { v: r }; - }); -} -function Br(e, n) { - var r = {}; - f(e, function(i, o) { - var a = r[i.v] = { - indegree: 0, - in: [], - out: [], - vs: [i.v], - i: o - }; - m(i.barycenter) || (a.barycenter = i.barycenter, a.weight = i.weight); - }), f(n.edges(), function(i) { - var o = r[i.v], a = r[i.w]; - !m(o) && !m(a) && (a.indegree++, o.out.push(r[i.w])); - }); - var t = I(r, function(i) { - return !i.indegree; - }); - return jr(t); -} -function jr(e) { - var n = []; - function r(o) { - return function(a) { - a.merged || (m(a.barycenter) || m(o.barycenter) || a.barycenter >= o.barycenter) && Gr(o, a); - }; - } - function t(o) { - return function(a) { - a.in.push(o), --a.indegree === 0 && e.push(a); - }; - } - for (; e.length; ) { - var i = e.pop(); - n.push(i), f(i.in.reverse(), r(i)), f(i.out, t(i)); - } - return w( - I(n, function(o) { - return !o.merged; - }), - function(o) { - return A(o, ["vs", "i", "barycenter", "weight"]); - } - ); -} -function Gr(e, n) { - var r = 0, t = 0; - e.weight && (r += e.barycenter * e.weight, t += e.weight), n.weight && (r += n.barycenter * n.weight, t += n.weight), e.vs = n.vs.concat(e.vs), e.barycenter = r / t, e.weight = t, e.i = Math.min(n.i, e.i), n.merged = !0; -} -function Vr(e, n) { - var r = ir(e, function(c) { - return Object.prototype.hasOwnProperty.call(c, "barycenter"); - }), t = r.lhs, i = R(r.rhs, function(c) { - return -c.i; - }), o = [], a = 0, u = 0, d = 0; - t.sort(Yr(!!n)), d = ce(o, i, d), f(t, function(c) { - d += c.vs.length, o.push(c.vs), a += c.barycenter * c.weight, u += c.weight, d = ce(o, i, d); - }); - var s = { vs: O(o) }; - return u && (s.barycenter = a / u, s.weight = u), s; -} -function ce(e, n, r) { - for (var t; n.length && (t = F(n)).i <= r; ) - n.pop(), e.push(t.vs), r++; - return r; -} -function Yr(e) { - return function(n, r) { - return n.barycenter < r.barycenter ? -1 : n.barycenter > r.barycenter ? 1 : e ? r.i - n.i : n.i - r.i; - }; -} -function je(e, n, r, t) { - var i = e.children(n), o = e.node(n), a = o ? o.borderLeft : void 0, u = o ? o.borderRight : void 0, d = {}; - a && (i = I(i, function(p) { - return p !== a && p !== u; - })); - var s = Ar(e, i); - f(s, function(p) { - if (e.children(p.v).length) { - var b = je(e, p.v, r, t); - d[p.v] = b, Object.prototype.hasOwnProperty.call(b, "barycenter") && Dr(p, b); - } - }); - var c = Br(s, r); - $r(c, d); - var l = Vr(c, t); - if (a && (l.vs = O([a, l.vs, u]), e.predecessors(a).length)) { - var h = e.node(e.predecessors(a)[0]), v = e.node(e.predecessors(u)[0]); - Object.prototype.hasOwnProperty.call(l, "barycenter") || (l.barycenter = 0, l.weight = 0), l.barycenter = (l.barycenter * l.weight + h.order + v.order) / (l.weight + 2), l.weight += 2; - } - return l; -} -function $r(e, n) { - f(e, function(r) { - r.vs = O( - r.vs.map(function(t) { - return n[t] ? n[t].vs : t; - }) - ); - }); -} -function Dr(e, n) { - m(e.barycenter) ? (e.barycenter = n.barycenter, e.weight = n.weight) : (e.barycenter = (e.barycenter * e.weight + n.barycenter * n.weight) / (e.weight + n.weight), e.weight += n.weight); -} -function qr(e) { - var n = Pe(e), r = le(e, k(1, n + 1), "inEdges"), t = le(e, k(n - 1, -1, -1), "outEdges"), i = Fr(e); - he(e, i); - for (var o = Number.POSITIVE_INFINITY, a, u = 0, d = 0; d < 4; ++u, ++d) { - Wr(u % 2 ? r : t, u % 4 >= 2), i = G(e); - var s = Mr(e, i); - s < o && (d = 0, a = yn(i), o = s); - } - he(e, a); -} -function le(e, n, r) { - return w(n, function(t) { - return Rr(e, t, r); - }); -} -function Wr(e, n) { - var r = new g(); - f(e, function(t) { - var i = t.graph().root, o = je(t, i, r, n); - f(o.vs, function(a, u) { - t.node(a).order = u; - }), Ir(t, r, o.vs); - }); -} -function he(e, n) { - f(n, function(r) { - f(r, function(t, i) { - e.node(t).order = i; - }); - }); -} -function zr(e) { - var n = Hr(e); - f(e.graph().dummyChains, function(r) { - for (var t = e.node(r), i = t.edgeObj, o = Xr(e, n, i.v, i.w), a = o.path, u = o.lca, d = 0, s = a[d], c = !0; r !== i.w; ) { - if (t = e.node(r), c) { - for (; (s = a[d]) !== u && e.node(s).maxRank < t.rank; ) - d++; - s === u && (c = !1); - } - if (!c) { - for (; d < a.length - 1 && e.node(s = a[d + 1]).minRank <= t.rank; ) - d++; - s = a[d]; - } - e.setParent(r, s), r = e.successors(r)[0]; - } - }); -} -function Xr(e, n, r, t) { - var i = [], o = [], a = Math.min(n[r].low, n[t].low), u = Math.max(n[r].lim, n[t].lim), d, s; - d = r; - do - d = e.parent(d), i.push(d); - while (d && (n[d].low > a || u > n[d].lim)); - for (s = d, d = t; (d = e.parent(d)) !== s; ) - o.push(d); - return { path: i.concat(o.reverse()), lca: s }; -} -function Hr(e) { - var n = {}, r = 0; - function t(i) { - var o = r; - f(e.children(i), t), n[i] = { low: o, lim: r++ }; - } - return f(e.children(), t), n; -} -function Ur(e, n) { - var r = {}; - function t(i, o) { - var a = 0, u = 0, d = i.length, s = F(o); - return f(o, function(c, l) { - var h = Jr(e, c), v = h ? e.node(h).order : d; - (h || c === s) && (f(o.slice(u, l + 1), function(p) { - f(e.predecessors(p), function(b) { - var L = e.node(b), ne = L.order; - (ne < a || v < ne) && !(L.dummy && e.node(p).dummy) && Ge(r, b, p); - }); - }), u = l + 1, a = v); - }), o; - } - return B(n, t), r; -} -function Zr(e, n) { - var r = {}; - function t(o, a, u, d, s) { - var c; - f(k(a, u), function(l) { - c = o[l], e.node(c).dummy && f(e.predecessors(c), function(h) { - var v = e.node(h); - v.dummy && (v.order < d || v.order > s) && Ge(r, h, c); - }); - }); - } - function i(o, a) { - var u = -1, d, s = 0; - return f(a, function(c, l) { - if (e.node(c).dummy === "border") { - var h = e.predecessors(c); - h.length && (d = e.node(h[0]).order, t(a, s, l, u, d), s = l, u = d); - } - t(a, s, a.length, d, o.length); - }), a; - } - return B(n, i), r; -} -function Jr(e, n) { - if (e.node(n).dummy) - return U(e.predecessors(n), function(r) { - return e.node(r).dummy; - }); -} -function Ge(e, n, r) { - if (n > r) { - var t = n; - n = r, r = t; - } - Object.prototype.hasOwnProperty.call(e, n) || Object.defineProperty(e, n, { - enumerable: !0, - configurable: !0, - value: {}, - writable: !0 - }); - var i = e[n]; - Object.defineProperty(i, r, { - enumerable: !0, - configurable: !0, - value: !0, - writable: !0 - }); -} -function Kr(e, n, r) { - if (n > r) { - var t = n; - n = r, r = t; - } - return !!e[n] && Object.prototype.hasOwnProperty.call(e[n], r); -} -function Qr(e, n, r, t) { - var i = {}, o = {}, a = {}; - return f(n, function(u) { - f(u, function(d, s) { - i[d] = d, o[d] = d, a[d] = s; - }); - }), f(n, function(u) { - var d = -1; - f(u, function(s) { - var c = t(s); - if (c.length) { - c = R(c, function(b) { - return a[b]; - }); - for (var l = (c.length - 1) / 2, h = Math.floor(l), v = Math.ceil(l); h <= v; ++h) { - var p = c[h]; - o[s] === s && d < a[p] && !Kr(r, s, p) && (o[p] = s, o[s] = i[s] = i[p], d = a[p]); - } - } - }); - }), { root: i, align: o }; -} -function et(e, n, r, t, i) { - var o = {}, a = nt(e, n, r, i), u = i ? "borderLeft" : "borderRight"; - function d(l, h) { - for (var v = a.nodes(), p = v.pop(), b = {}; p; ) - b[p] ? l(p) : (b[p] = !0, v.push(p), v = v.concat(h(p))), p = v.pop(); - } - function s(l) { - o[l] = a.inEdges(l).reduce(function(h, v) { - return Math.max(h, o[v.v] + a.edge(v)); - }, 0); - } - function c(l) { - var h = a.outEdges(l).reduce(function(p, b) { - return Math.min(p, o[b.w] - a.edge(b)); - }, Number.POSITIVE_INFINITY), v = e.node(l); - h !== Number.POSITIVE_INFINITY && v.borderType !== u && (o[l] = Math.max(o[l], h)); - } - return d(s, a.predecessors.bind(a)), d(c, a.successors.bind(a)), f(t, function(l) { - o[l] = o[r[l]]; - }), o; -} -function nt(e, n, r, t) { - var i = new g(), o = e.graph(), a = ot(o.nodesep, o.edgesep, t); - return f(n, function(u) { - var d; - f(u, function(s) { - var c = r[s]; - if (i.setNode(c), d) { - var l = r[d], h = i.edge(l, c); - i.setEdge(l, c, Math.max(a(e, s, d), h || 0)); - } - d = s; - }); - }), i; -} -function rt(e, n) { - return Z(E(n), function(r) { - var t = Number.NEGATIVE_INFINITY, i = Number.POSITIVE_INFINITY; - return Ln(r, function(o, a) { - var u = ut(e, a) / 2; - t = Math.max(o + u, t), i = Math.min(o - u, i); - }), t - i; - }); -} -function tt(e, n) { - var r = E(n), t = P(r), i = y(r); - f(["u", "d"], function(o) { - f(["l", "r"], function(a) { - var u = o + a, d = e[u], s; - if (d !== n) { - var c = E(d); - s = a === "l" ? t - P(c) : i - y(c), s && (e[u] = j(d, function(l) { - return l + s; - })); - } - }); - }); -} -function it(e, n) { - return j(e.ul, function(r, t) { - if (n) - return e[n.toLowerCase()][t]; - var i = R(w(e, t)); - return (i[1] + i[2]) / 2; - }); -} -function at(e) { - var n = G(e), r = X(Ur(e, n), Zr(e, n)), t = {}, i; - f(["u", "d"], function(a) { - i = a === "u" ? n : E(n).reverse(), f(["l", "r"], function(u) { - u === "r" && (i = w(i, function(l) { - return E(l).reverse(); - })); - var d = (a === "u" ? e.predecessors : e.successors).bind(e), s = Qr(e, i, r, d), c = et(e, i, s.root, s.align, u === "r"); - u === "r" && (c = j(c, function(l) { - return -l; - })), t[a + u] = c; - }); - }); - var o = rt(e, t); - return tt(t, o), it(t, e.graph().align); -} -function ot(e, n, r) { - return function(t, i, o) { - var a = t.node(i), u = t.node(o), d = 0, s; - if (d += a.width / 2, Object.prototype.hasOwnProperty.call(a, "labelpos")) - switch (a.labelpos.toLowerCase()) { - case "l": - s = -a.width / 2; - break; - case "r": - s = a.width / 2; - break; - } - if (s && (d += r ? s : -s), s = 0, d += (a.dummy ? n : e) / 2, d += (u.dummy ? n : e) / 2, d += u.width / 2, Object.prototype.hasOwnProperty.call(u, "labelpos")) - switch (u.labelpos.toLowerCase()) { - case "l": - s = u.width / 2; - break; - case "r": - s = -u.width / 2; - break; - } - return s && (d += r ? s : -s), s = 0, d; - }; -} -function ut(e, n) { - return e.node(n).width; -} -function dt(e) { - e = Le(e), st(e), Pn(at(e), function(n, r) { - e.node(r).x = n; - }); -} -function st(e) { - var n = G(e), r = e.graph().ranksep, t = 0; - f(n, function(i) { - var o = y( - w(i, function(a) { - return e.node(a).height; - }) - ); - f(i, function(a) { - e.node(a).y = t + o / 2; - }), t += o + r; - }); -} -function Bt(e, n) { - var r = ar; - r("layout", () => { - var t = r(" buildLayoutGraph", () => yt(e)); - r(" runLayout", () => ft(t, r)), r(" updateInputGraph", () => ct(e, t)); - }); -} -function ft(e, n) { - n(" makeSpaceForEdgeLabels", () => xt(e)), n(" removeSelfEdges", () => It(e)), n(" acyclic", () => Kn(e)), n(" nestingGraph.run", () => Lr(e)), n(" rank", () => kr(Le(e))), n(" injectEdgeLabelProxies", () => Et(e)), n(" removeEmptyRanks", () => tr(e)), n(" nestingGraph.cleanup", () => Cr(e)), n(" normalizeRanks", () => rr(e)), n(" assignRankMinMax", () => kt(e)), n(" removeEdgeLabelProxies", () => Ot(e)), n(" normalize.run", () => cr(e)), n(" parentDummyChains", () => zr(e)), n(" addBorderSegments", () => or(e)), n(" order", () => qr(e)), n(" insertSelfEdges", () => Rt(e)), n(" adjustCoordinateSystem", () => ur(e)), n(" position", () => dt(e)), n(" positionSelfEdges", () => Tt(e)), n(" removeBorderNodes", () => Ct(e)), n(" normalize.undo", () => hr(e)), n(" fixupEdgeLabelCoords", () => Pt(e)), n(" undoCoordinateSystem", () => dr(e)), n(" translateGraph", () => Nt(e)), n(" assignNodeIntersects", () => Lt(e)), n(" reversePoints", () => _t(e)), n(" acyclic.undo", () => er(e)); -} -function ct(e, n) { - f(e.nodes(), function(r) { - var t = e.node(r), i = n.node(r); - t && (t.x = i.x, t.y = i.y, n.children(r).length && (t.width = i.width, t.height = i.height)); - }), f(e.edges(), function(r) { - var t = e.edge(r), i = n.edge(r); - t.points = i.points, Object.prototype.hasOwnProperty.call(i, "x") && (t.x = i.x, t.y = i.y); - }), e.graph().width = n.graph().width, e.graph().height = n.graph().height; -} -var lt = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], ht = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, vt = ["acyclicer", "ranker", "rankdir", "align"], pt = ["width", "height"], wt = { width: 0, height: 0 }, bt = ["minlen", "weight", "width", "height", "labeloffset"], mt = { - minlen: 1, - weight: 1, - width: 0, - height: 0, - labeloffset: 10, - labelpos: "r" -}, gt = ["labelpos"]; -function yt(e) { - var n = new g({ multigraph: !0, compound: !0 }), r = W(e.graph()); - return n.setGraph( - X({}, ht, q(r, lt), A(r, vt)) - ), f(e.nodes(), function(t) { - var i = W(e.node(t)); - n.setNode(t, En(q(i, pt), wt)), n.setParent(t, e.parent(t)); - }), f(e.edges(), function(t) { - var i = W(e.edge(t)); - n.setEdge( - t, - X({}, mt, q(i, bt), A(i, gt)) - ); - }), n; -} -function xt(e) { - var n = e.graph(); - n.ranksep /= 2, f(e.edges(), function(r) { - var t = e.edge(r); - t.minlen *= 2, t.labelpos.toLowerCase() !== "c" && (n.rankdir === "TB" || n.rankdir === "BT" ? t.width += t.labeloffset : t.height += t.labeloffset); - }); -} -function Et(e) { - f(e.edges(), function(n) { - var r = e.edge(n); - if (r.width && r.height) { - var t = e.node(n.v), i = e.node(n.w), o = { rank: (i.rank - t.rank) / 2 + t.rank, e: n }; - N(e, "edge-proxy", o, "_ep"); - } - }); -} -function kt(e) { - var n = 0; - f(e.nodes(), function(r) { - var t = e.node(r); - t.borderTop && (t.minRank = e.node(t.borderTop).rank, t.maxRank = e.node(t.borderBottom).rank, n = y(n, t.maxRank)); - }), e.graph().maxRank = n; -} -function Ot(e) { - f(e.nodes(), function(n) { - var r = e.node(n); - r.dummy === "edge-proxy" && (e.edge(r.e).labelRank = r.rank, e.removeNode(n)); - }); -} -function Nt(e) { - var n = Number.POSITIVE_INFINITY, r = 0, t = Number.POSITIVE_INFINITY, i = 0, o = e.graph(), a = o.marginx || 0, u = o.marginy || 0; - function d(s) { - var c = s.x, l = s.y, h = s.width, v = s.height; - n = Math.min(n, c - h / 2), r = Math.max(r, c + h / 2), t = Math.min(t, l - v / 2), i = Math.max(i, l + v / 2); - } - f(e.nodes(), function(s) { - d(e.node(s)); - }), f(e.edges(), function(s) { - var c = e.edge(s); - Object.prototype.hasOwnProperty.call(c, "x") && d(c); - }), n -= a, t -= u, f(e.nodes(), function(s) { - var c = e.node(s); - c.x -= n, c.y -= t; - }), f(e.edges(), function(s) { - var c = e.edge(s); - f(c.points, function(l) { - l.x -= n, l.y -= t; - }), Object.prototype.hasOwnProperty.call(c, "x") && (c.x -= n), Object.prototype.hasOwnProperty.call(c, "y") && (c.y -= t); - }), o.width = r - n + a, o.height = i - t + u; -} -function Lt(e) { - f(e.edges(), function(n) { - var r = e.edge(n), t = e.node(n.v), i = e.node(n.w), o, a; - r.points ? (o = r.points[0], a = r.points[r.points.length - 1]) : (r.points = [], o = i, a = t), r.points.unshift(ae(t, o)), r.points.push(ae(i, a)); - }); -} -function Pt(e) { - f(e.edges(), function(n) { - var r = e.edge(n); - if (Object.prototype.hasOwnProperty.call(r, "x")) - switch ((r.labelpos === "l" || r.labelpos === "r") && (r.width -= r.labeloffset), r.labelpos) { - case "l": - r.x -= r.width / 2 + r.labeloffset; - break; - case "r": - r.x += r.width / 2 + r.labeloffset; - break; - } - }); -} -function _t(e) { - f(e.edges(), function(n) { - var r = e.edge(n); - r.reversed && r.points.reverse(); - }); -} -function Ct(e) { - f(e.nodes(), function(n) { - if (e.children(n).length) { - var r = e.node(n), t = e.node(r.borderTop), i = e.node(r.borderBottom), o = e.node(F(r.borderLeft)), a = e.node(F(r.borderRight)); - r.width = Math.abs(a.x - o.x), r.height = Math.abs(i.y - t.y), r.x = o.x + r.width / 2, r.y = t.y + r.height / 2; - } - }), f(e.nodes(), function(n) { - e.node(n).dummy === "border" && e.removeNode(n); - }); -} -function It(e) { - f(e.edges(), function(n) { - if (n.v === n.w) { - var r = e.node(n.v); - r.selfEdges || (r.selfEdges = []), r.selfEdges.push({ e: n, label: e.edge(n) }), e.removeEdge(n); - } - }); -} -function Rt(e) { - var n = G(e); - f(n, function(r) { - var t = 0; - f(r, function(i, o) { - var a = e.node(i); - a.order = o + t, f(a.selfEdges, function(u) { - N( - e, - "selfedge", - { - width: u.label.width, - height: u.label.height, - rank: a.rank, - order: o + ++t, - e: u.e, - label: u.label - }, - "_se" - ); - }), delete a.selfEdges; - }); - }); -} -function Tt(e) { - f(e.nodes(), function(n) { - var r = e.node(n); - if (r.dummy === "selfedge") { - var t = e.node(r.e.v), i = t.x + t.width / 2, o = t.y, a = r.x - i, u = t.height / 2; - e.setEdge(r.e, r.label), e.removeNode(n), r.label.points = [ - { x: i + 2 * a / 3, y: o - u }, - { x: i + 5 * a / 6, y: o - u }, - { x: i + a, y: o }, - { x: i + 5 * a / 6, y: o + u }, - { x: i + 2 * a / 3, y: o + u } - ], r.label.x = r.x, r.label.y = r.y; - } - }); -} -function q(e, n) { - return j(A(e, n), Number); -} -function W(e) { - var n = {}; - return f(e, function(r, t) { - n[t.toLowerCase()] = r; - }), n; -} -export { - Bt as l -}; diff --git a/src/wc-content-kit/public/mermaid/linear-CnlusoK8.js b/src/wc-content-kit/public/mermaid/linear-Covz6sHd.js similarity index 88% rename from src/wc-content-kit/public/mermaid/linear-CnlusoK8.js rename to src/wc-content-kit/public/mermaid/linear-Covz6sHd.js index b837aeb..35245f1 100644 --- a/src/wc-content-kit/public/mermaid/linear-CnlusoK8.js +++ b/src/wc-content-kit/public/mermaid/linear-Covz6sHd.js @@ -1,7 +1,7 @@ -import { aM as j, aN as p, aO as w, aP as k, aQ as q } from "./mermaid.core-Jw3znkh4.js"; +import { G as j, ar as p, x as w, as as k, at as q } from "./mermaid.core-FRDjOodn.js"; import { i as D } from "./init-DjUOC4st.js"; -import { e as M, f as F, a as P, b as z } from "./defaultLocale-BgPVtth8.js"; -function g(n, r) { +import { e as g, b as F, a as x, f as z } from "./defaultLocale-Chz5Z13b.js"; +function M(n, r) { return n == null || r == null ? NaN : n < r ? -1 : n > r ? 1 : n >= r ? 0 : NaN; } function B(n, r) { @@ -9,7 +9,7 @@ function B(n, r) { } function R(n) { let r, t, e; - n.length !== 2 ? (r = g, t = (o, c) => g(n(o), c), e = (o, c) => n(o) - c) : (r = n === g || n === B ? n : I, t = n, e = n); + n.length !== 2 ? (r = M, t = (o, c) => M(n(o), c), e = (o, c) => n(o) - c) : (r = n === M || n === B ? n : I, t = n, e = n); function u(o, c, i = 0, h = o.length) { if (i < h) { if (r(c, c) !== 0) return h; @@ -39,14 +39,14 @@ function R(n) { function I() { return 0; } -function O(n) { +function P(n) { return n === null ? NaN : +n; } -const V = R(g), $ = V.right; -R(O).center; -const x = Math.sqrt(50), Q = Math.sqrt(10), T = Math.sqrt(2); +const V = R(M), $ = V.right; +R(P).center; +const G = Math.sqrt(50), O = Math.sqrt(10), T = Math.sqrt(2); function v(n, r, t) { - const e = (r - n) / Math.max(0, t), u = Math.floor(Math.log10(e)), f = e / Math.pow(10, u), a = f >= x ? 10 : f >= Q ? 5 : f >= T ? 2 : 1; + const e = (r - n) / Math.max(0, t), u = Math.floor(Math.log10(e)), f = e / Math.pow(10, u), a = f >= G ? 10 : f >= O ? 5 : f >= T ? 2 : 1; let o, c, i; return u < 0 ? (i = Math.pow(10, -u) / a, o = Math.round(n * i), c = Math.round(r * i), o / i < n && ++o, c / i > r && --c, i = -i) : (i = Math.pow(10, u) * a, o = Math.round(n / i), c = Math.round(r / i), o * i < n && ++o, c * i > r && --c), c < o && 0.5 <= t && t < 2 ? v(n, r, t * 2) : [o, c, i]; } @@ -71,7 +71,7 @@ function E(n, r, t) { const e = r < n, u = e ? y(r, n, t) : y(n, r, t); return (e ? -1 : 1) * (u < 0 ? 1 / -u : u); } -function G(n, r) { +function H(n, r) { r || (r = []); var t = n ? Math.min(r.length, n.length) : 0, e = r.slice(), u; return function(f) { @@ -79,10 +79,10 @@ function G(n, r) { return e; }; } -function H(n) { +function J(n) { return ArrayBuffer.isView(n) && !(n instanceof DataView); } -function J(n, r) { +function K(n, r) { var t = r ? r.length : 0, e = n ? Math.min(t, n.length) : 0, u = new Array(e), f = new Array(t), a; for (a = 0; a < e; ++a) u[a] = d(n[a], r[a]); for (; a < t; ++a) f[a] = r[a]; @@ -91,13 +91,13 @@ function J(n, r) { return f; }; } -function K(n, r) { +function L(n, r) { var t = /* @__PURE__ */ new Date(); return n = +n, r = +r, function(e) { return t.setTime(n * (1 - e) + r * e), t; }; } -function L(n, r) { +function Q(n, r) { var t = {}, e = {}, u; (n === null || typeof n != "object") && (n = {}), (r === null || typeof r != "object") && (r = {}); for (u in r) @@ -109,7 +109,7 @@ function L(n, r) { } function d(n, r) { var t = typeof r, e; - return r == null || t === "boolean" ? j(r) : (t === "number" ? p : t === "string" ? (e = w(r)) ? (r = e, k) : q : r instanceof w ? k : r instanceof Date ? K : H(r) ? G : Array.isArray(r) ? J : typeof r.valueOf != "function" && typeof r.toString != "function" || isNaN(r) ? L : p)(n, r); + return r == null || t === "boolean" ? j(r) : (t === "number" ? p : t === "string" ? (e = w(r)) ? (r = e, k) : q : r instanceof w ? k : r instanceof Date ? L : J(r) ? H : Array.isArray(r) ? K : typeof r.valueOf != "function" && typeof r.toString != "function" || isNaN(r) ? Q : p)(n, r); } function U(n, r) { return n = +n, r = +r, function(t) { @@ -117,13 +117,13 @@ function U(n, r) { }; } function W(n) { - return Math.max(0, -M(Math.abs(n))); + return Math.max(0, -g(Math.abs(n))); } function X(n, r) { - return Math.max(0, Math.max(-8, Math.min(8, Math.floor(M(r) / 3))) * 3 - M(Math.abs(n))); + return Math.max(0, Math.max(-8, Math.min(8, Math.floor(g(r) / 3))) * 3 - g(Math.abs(n))); } function Y(n, r) { - return n = Math.abs(n), r = Math.abs(r) - n, Math.max(0, M(r) - M(n)) + 1; + return n = Math.abs(n), r = Math.abs(r) - n, Math.max(0, g(r) - g(n)) + 1; } function Z(n) { return function() { @@ -201,7 +201,7 @@ function an(n, r, t, e) { switch (e = F(e ?? ",f"), e.type) { case "s": { var a = Math.max(Math.abs(n), Math.abs(r)); - return e.precision == null && !isNaN(f = X(u, a)) && (e.precision = f), P(e, a); + return e.precision == null && !isNaN(f = X(u, a)) && (e.precision = f), x(e, a); } case "": case "e": diff --git a/src/wc-content-kit/public/mermaid/mermaid-fallback-VWXePaQd.js b/src/wc-content-kit/public/mermaid/mermaid-fallback-WGg5-jvU.js similarity index 91% rename from src/wc-content-kit/public/mermaid/mermaid-fallback-VWXePaQd.js rename to src/wc-content-kit/public/mermaid/mermaid-fallback-WGg5-jvU.js index cd2ff86..a19b718 100644 --- a/src/wc-content-kit/public/mermaid/mermaid-fallback-VWXePaQd.js +++ b/src/wc-content-kit/public/mermaid/mermaid-fallback-WGg5-jvU.js @@ -1,6 +1,6 @@ let a = null; function i() { - return a || (a = import("./mermaid.core-Jw3znkh4.js").then((e) => e.bD).then((e) => e.default)), a; + return a || (a = import("./mermaid.core-FRDjOodn.js").then((e) => e.aH).then((e) => e.default)), a; } function l(e) { const o = getComputedStyle(e), r = (n) => o.getPropertyValue(n).trim(), t = r("font-family") || "inherit"; diff --git a/src/wc-content-kit/public/mermaid/mermaid-parser.core-DQ6c91Zg.js b/src/wc-content-kit/public/mermaid/mermaid-parser.core-DQ6c91Zg.js deleted file mode 100644 index 66400df..0000000 --- a/src/wc-content-kit/public/mermaid/mermaid-parser.core-DQ6c91Zg.js +++ /dev/null @@ -1,18442 +0,0 @@ -import { m as Ft, f as Dd, d as Md } from "./min-Ds2tR2xq.js"; -import { b as Fd, l as Gd, c as jd, m as zd, r as Zl, n as hs } from "./_baseUniq-B0FPZyMQ.js"; -import { ba as Ud } from "./mermaid.core-Jw3znkh4.js"; -import { a as qd } from "./index.js"; -function Bd(t, e) { - return Fd(Ft(t, e)); -} -function Wd(t, e) { - return t && t.length ? Gd(t, jd(e)) : []; -} -function Fe(t) { - return typeof t == "object" && t !== null && typeof t.$type == "string"; -} -function ut(t) { - return typeof t == "object" && t !== null && typeof t.$refText == "string" && "ref" in t; -} -function Jt(t) { - return typeof t == "object" && t !== null && typeof t.$refText == "string" && "items" in t; -} -function Kd(t) { - return typeof t == "object" && t !== null && typeof t.name == "string" && typeof t.type == "string" && typeof t.path == "string"; -} -function Nn(t) { - return typeof t == "object" && t !== null && typeof t.info == "object" && typeof t.message == "string"; -} -class Qu { - constructor() { - this.subtypes = {}, this.allSubtypes = {}; - } - getAllTypes() { - return Object.keys(this.types); - } - getReferenceType(e) { - const r = this.types[e.container.$type]; - if (!r) - throw new Error(`Type ${e.container.$type || "undefined"} not found.`); - const n = r.properties[e.property]?.referenceType; - if (!n) - throw new Error(`Property ${e.property || "undefined"} of type ${e.container.$type} is not a reference.`); - return n; - } - getTypeMetaData(e) { - const r = this.types[e]; - return r || { - name: e, - properties: {}, - superTypes: [] - }; - } - isInstance(e, r) { - return Fe(e) && this.isSubtype(e.$type, r); - } - isSubtype(e, r) { - if (e === r) - return !0; - let n = this.subtypes[e]; - n || (n = this.subtypes[e] = {}); - const i = n[r]; - if (i !== void 0) - return i; - { - const a = this.types[e], s = a ? a.superTypes.some((o) => this.isSubtype(o, r)) : !1; - return n[r] = s, s; - } - } - getAllSubTypes(e) { - const r = this.allSubtypes[e]; - if (r) - return r; - { - const n = this.getAllTypes(), i = []; - for (const a of n) - this.isSubtype(a, e) && i.push(a); - return this.allSubtypes[e] = i, i; - } - } -} -function ci(t) { - return typeof t == "object" && t !== null && Array.isArray(t.content); -} -function ef(t) { - return typeof t == "object" && t !== null && typeof t.tokenType == "object"; -} -function tf(t) { - return ci(t) && typeof t.fullText == "string"; -} -class xe { - constructor(e, r) { - this.startFn = e, this.nextFn = r; - } - iterator() { - const e = { - state: this.startFn(), - next: () => this.nextFn(e.state), - [Symbol.iterator]: () => e - }; - return e; - } - [Symbol.iterator]() { - return this.iterator(); - } - isEmpty() { - return !!this.iterator().next().done; - } - count() { - const e = this.iterator(); - let r = 0, n = e.next(); - for (; !n.done; ) - r++, n = e.next(); - return r; - } - toArray() { - const e = [], r = this.iterator(); - let n; - do - n = r.next(), n.value !== void 0 && e.push(n.value); - while (!n.done); - return e; - } - toSet() { - return new Set(this); - } - toMap(e, r) { - const n = this.map((i) => [ - e ? e(i) : i, - r ? r(i) : i - ]); - return new Map(n); - } - toString() { - return this.join(); - } - concat(e) { - return new xe(() => ({ first: this.startFn(), firstDone: !1, iterator: e[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 Ze; - }); - } - join(e = ",") { - const r = this.iterator(); - let n = "", i, a = !1; - do - i = r.next(), i.done || (a && (n += e), n += Vd(i.value)), a = !0; - while (!i.done); - return n; - } - indexOf(e, r = 0) { - const n = this.iterator(); - let i = 0, a = n.next(); - for (; !a.done; ) { - if (i >= r && a.value === e) - return i; - a = n.next(), i++; - } - return -1; - } - every(e) { - const r = this.iterator(); - let n = r.next(); - for (; !n.done; ) { - if (!e(n.value)) - return !1; - n = r.next(); - } - return !0; - } - some(e) { - const r = this.iterator(); - let n = r.next(); - for (; !n.done; ) { - if (e(n.value)) - return !0; - n = r.next(); - } - return !1; - } - forEach(e) { - const r = this.iterator(); - let n = 0, i = r.next(); - for (; !i.done; ) - e(i.value, n), i = r.next(), n++; - } - map(e) { - return new xe(this.startFn, (r) => { - const { done: n, value: i } = this.nextFn(r); - return n ? Ze : { done: !1, value: e(i) }; - }); - } - filter(e) { - return new xe(this.startFn, (r) => { - let n; - do - if (n = this.nextFn(r), !n.done && e(n.value)) - return n; - while (!n.done); - return Ze; - }); - } - nonNullable() { - return this.filter((e) => e != null); - } - reduce(e, r) { - const n = this.iterator(); - let i = r, a = n.next(); - for (; !a.done; ) - i === void 0 ? i = a.value : i = e(i, a.value), a = n.next(); - return i; - } - reduceRight(e, r) { - return this.recursiveReduce(this.iterator(), e, r); - } - recursiveReduce(e, r, n) { - const i = e.next(); - if (i.done) - return n; - const a = this.recursiveReduce(e, r, n); - return a === void 0 ? i.value : r(a, i.value); - } - find(e) { - const r = this.iterator(); - let n = r.next(); - for (; !n.done; ) { - if (e(n.value)) - return n.value; - n = r.next(); - } - } - findIndex(e) { - const r = this.iterator(); - let n = 0, i = r.next(); - for (; !i.done; ) { - if (e(i.value)) - return n; - i = r.next(), n++; - } - return -1; - } - includes(e) { - const r = this.iterator(); - let n = r.next(); - for (; !n.done; ) { - if (n.value === e) - return !0; - n = r.next(); - } - return !1; - } - flatMap(e) { - return new xe(() => ({ this: this.startFn() }), (r) => { - do { - if (r.iterator) { - const a = r.iterator.next(); - if (a.done) - r.iterator = void 0; - else - return a; - } - const { done: n, value: i } = this.nextFn(r.this); - if (!n) { - const a = e(i); - if (Na(a)) - r.iterator = a[Symbol.iterator](); - else - return { done: !1, value: a }; - } - } while (r.iterator); - return Ze; - }); - } - flat(e) { - if (e === void 0 && (e = 1), e <= 0) - return this; - const r = e > 1 ? this.flat(e - 1) : this; - return new xe(() => ({ this: r.startFn() }), (n) => { - do { - if (n.iterator) { - const s = n.iterator.next(); - if (s.done) - n.iterator = void 0; - else - return s; - } - const { done: i, value: a } = r.nextFn(n.this); - if (!i) - if (Na(a)) - n.iterator = a[Symbol.iterator](); - else - return { done: !1, value: a }; - } while (n.iterator); - return Ze; - }); - } - head() { - const r = this.iterator().next(); - if (!r.done) - return r.value; - } - tail(e = 1) { - return new xe(() => { - const r = this.startFn(); - for (let n = 0; n < e; n++) - if (this.nextFn(r).done) - return r; - return r; - }, this.nextFn); - } - limit(e) { - return new xe(() => ({ size: 0, state: this.startFn() }), (r) => (r.size++, r.size > e ? Ze : this.nextFn(r.state))); - } - distinct(e) { - return new xe(() => ({ set: /* @__PURE__ */ new Set(), internalState: this.startFn() }), (r) => { - let n; - do - if (n = this.nextFn(r.internalState), !n.done) { - const i = e ? e(n.value) : n.value; - if (!r.set.has(i)) - return r.set.add(i), n; - } - while (!n.done); - return Ze; - }); - } - exclude(e, r) { - const n = /* @__PURE__ */ new Set(); - for (const i of e) { - const a = r ? r(i) : i; - n.add(a); - } - return this.filter((i) => { - const a = r ? r(i) : i; - return !n.has(a); - }); - } -} -function Vd(t) { - return typeof t == "string" ? t : typeof t > "u" ? "undefined" : typeof t.toString == "function" ? t.toString() : Object.prototype.toString.call(t); -} -function Na(t) { - return !!t && typeof t[Symbol.iterator] == "function"; -} -const rf = new xe(() => { -}, () => Ze), Ze = Object.freeze({ done: !0, value: void 0 }); -function fe(...t) { - if (t.length === 1) { - const e = t[0]; - if (e instanceof xe) - return e; - if (Na(e)) - return new xe(() => e[Symbol.iterator](), (r) => r.next()); - if (typeof e.length == "number") - return new xe(() => ({ index: 0 }), (r) => r.index < e.length ? { done: !1, value: e[r.index++] } : Ze); - } - return t.length > 1 ? new xe(() => ({ collIndex: 0, arrIndex: 0 }), (e) => { - do { - if (e.iterator) { - const r = e.iterator.next(); - if (!r.done) - return r; - e.iterator = void 0; - } - if (e.array) { - if (e.arrIndex < e.array.length) - return { done: !1, value: e.array[e.arrIndex++] }; - e.array = void 0, e.arrIndex = 0; - } - if (e.collIndex < t.length) { - const r = t[e.collIndex++]; - Na(r) ? e.iterator = r[Symbol.iterator]() : r && typeof r.length == "number" && (e.array = r); - } - } while (e.iterator || e.array || e.collIndex < t.length); - return Ze; - }) : rf; -} -class Nl extends xe { - constructor(e, r, n) { - super(() => ({ - iterators: n?.includeRoot ? [[e][Symbol.iterator]()] : [r(e)[Symbol.iterator]()], - pruned: !1 - }), (i) => { - for (i.pruned && (i.iterators.pop(), i.pruned = !1); i.iterators.length > 0; ) { - const s = i.iterators[i.iterators.length - 1].next(); - if (s.done) - i.iterators.pop(); - else - return i.iterators.push(r(s.value)[Symbol.iterator]()), s; - } - return Ze; - }); - } - iterator() { - const e = { - state: this.startFn(), - next: () => this.nextFn(e.state), - prune: () => { - e.state.pruned = !0; - }, - [Symbol.iterator]: () => e - }; - return e; - } -} -var qs; -(function(t) { - function e(a) { - return a.reduce((s, o) => s + o, 0); - } - t.sum = e; - function r(a) { - return a.reduce((s, o) => s * o, 0); - } - t.product = r; - function n(a) { - return a.reduce((s, o) => Math.min(s, o)); - } - t.min = n; - function i(a) { - return a.reduce((s, o) => Math.max(s, o)); - } - t.max = i; -})(qs || (qs = {})); -function Bs(t, e = {}) { - for (const [r, n] of Object.entries(t)) - r.startsWith("$") || (Array.isArray(n) ? n.forEach((i, a) => { - Fe(i) && (i.$container = t, i.$containerProperty = r, i.$containerIndex = a, e.deep && Bs(i, e)); - }) : Fe(n) && (n.$container = t, n.$containerProperty = r, e.deep && Bs(n, e))); -} -function Ja(t, e) { - let r = t; - for (; r; ) { - if (e(r)) - return r; - r = r.$container; - } -} -function Gt(t) { - const r = pa(t).$document; - if (!r) - throw new Error("AST node has no document."); - return r; -} -function pa(t) { - for (; t.$container; ) - t = t.$container; - return t; -} -function Ql(t) { - return ut(t) ? t.ref ? [t.ref] : [] : Jt(t) ? t.items.map((e) => e.ref) : []; -} -function _l(t, e) { - if (!t) - throw new Error("Node must be an AstNode."); - const r = e?.range; - return new xe(() => ({ - keys: Object.keys(t), - keyIndex: 0, - arrayIndex: 0 - }), (n) => { - for (; n.keyIndex < n.keys.length; ) { - const i = n.keys[n.keyIndex]; - if (!i.startsWith("$")) { - const a = t[i]; - if (Fe(a)) { - if (n.keyIndex++, ec(a, r)) - return { done: !1, value: a }; - } else if (Array.isArray(a)) { - for (; n.arrayIndex < a.length; ) { - const s = n.arrayIndex++, o = a[s]; - if (Fe(o) && ec(o, r)) - return { done: !1, value: o }; - } - n.arrayIndex = 0; - } - } - n.keyIndex++; - } - return Ze; - }); -} -function Ei(t, e) { - if (!t) - throw new Error("Root node must be an AstNode."); - return new Nl(t, (r) => _l(r, e)); -} -function jt(t, e) { - if (!t) - throw new Error("Root node must be an AstNode."); - return new Nl(t, (r) => _l(r, e), { includeRoot: !0 }); -} -function ec(t, e) { - if (!e) - return !0; - const r = t.$cstNode?.range; - return r ? gh(r, e) : !1; -} -function _a(t) { - return new xe(() => ({ - keys: Object.keys(t), - keyIndex: 0, - arrayIndex: 0 - }), (e) => { - for (; e.keyIndex < e.keys.length; ) { - const r = e.keys[e.keyIndex]; - if (!r.startsWith("$")) { - const n = t[r]; - if (ut(n) || Jt(n)) - return e.keyIndex++, { done: !1, value: { reference: n, container: t, property: r } }; - if (Array.isArray(n)) { - for (; e.arrayIndex < n.length; ) { - const i = e.arrayIndex++, a = n[i]; - if (ut(a) || Jt(n)) - return { done: !1, value: { reference: a, container: t, property: r, index: i } }; - } - e.arrayIndex = 0; - } - } - e.keyIndex++; - } - return Ze; - }); -} -function Hd(t, e) { - const r = t.getTypeMetaData(e.$type), n = e; - for (const i of Object.values(r.properties)) - i.defaultValue !== void 0 && n[i.name] === void 0 && (n[i.name] = nf(i.defaultValue)); -} -function nf(t) { - return Array.isArray(t) ? [...t.map(nf)] : t; -} -const Je = { - $type: "AbstractElement", - cardinality: "cardinality" -}; -function Xd(t) { - return J.isInstance(t, Je.$type); -} -const ma = { - $type: "AbstractParserRule" -}; -function Ai(t) { - return J.isInstance(t, ma.$type); -} -const Vi = { - $type: "AbstractRule" -}, ot = { - $type: "AbstractType" -}, Tr = { - $type: "Action", - cardinality: "cardinality", - feature: "feature", - inferredType: "inferredType", - operator: "operator", - type: "type" -}; -function Za(t) { - return J.isInstance(t, Tr.$type); -} -const ga = { - $type: "Alternatives", - cardinality: "cardinality", - elements: "elements" -}; -function af(t) { - return J.isInstance(t, ga.$type); -} -const tc = { - $type: "ArrayLiteral", - elements: "elements" -}, rc = { - $type: "ArrayType", - elementType: "elementType" -}, Rr = { - $type: "Assignment", - cardinality: "cardinality", - feature: "feature", - operator: "operator", - predicate: "predicate", - terminal: "terminal" -}; -function kr(t) { - return J.isInstance(t, Rr.$type); -} -const Ws = { - $type: "BooleanLiteral", - true: "true" -}; -function Yd(t) { - return J.isInstance(t, Ws.$type); -} -const vr = { - $type: "CharacterRange", - cardinality: "cardinality", - left: "left", - lookahead: "lookahead", - parenthesized: "parenthesized", - right: "right" -}; -function Jd(t) { - return J.isInstance(t, vr.$type); -} -const Dr = { - $type: "Condition" -}, ya = { - $type: "Conjunction", - left: "left", - right: "right" -}; -function Zd(t) { - return J.isInstance(t, ya.$type); -} -const Er = { - $type: "CrossReference", - cardinality: "cardinality", - deprecatedSyntax: "deprecatedSyntax", - isMulti: "isMulti", - terminal: "terminal", - type: "type" -}; -function Qa(t) { - return J.isInstance(t, Er.$type); -} -const Ta = { - $type: "Disjunction", - left: "left", - right: "right" -}; -function Qd(t) { - return J.isInstance(t, Ta.$type); -} -const Ks = { - $type: "EndOfFile", - cardinality: "cardinality" -}; -function eh(t) { - return J.isInstance(t, Ks.$type); -} -const ir = { - $type: "Grammar", - imports: "imports", - interfaces: "interfaces", - isDeclared: "isDeclared", - name: "name", - rules: "rules", - types: "types" -}, nc = { - $type: "GrammarImport", - path: "path" -}, Ur = { - $type: "Group", - cardinality: "cardinality", - elements: "elements", - guardCondition: "guardCondition", - predicate: "predicate" -}; -function Il(t) { - return J.isInstance(t, Ur.$type); -} -const Vs = { - $type: "InferredType", - name: "name" -}; -function sf(t) { - return J.isInstance(t, Vs.$type); -} -const Ot = { - $type: "InfixRule", - call: "call", - dataType: "dataType", - inferredType: "inferredType", - name: "name", - operators: "operators", - parameters: "parameters", - returnType: "returnType" -}; -function Ia(t) { - return J.isInstance(t, Ot.$type); -} -const ps = { - $type: "InfixRuleOperatorList", - associativity: "associativity", - operators: "operators" -}, ic = { - $type: "InfixRuleOperators", - precedences: "precedences" -}, Qn = { - $type: "Interface", - attributes: "attributes", - name: "name", - superTypes: "superTypes" -}; -function th(t) { - return J.isInstance(t, Qn.$type); -} -const ei = { - $type: "Keyword", - cardinality: "cardinality", - predicate: "predicate", - value: "value" -}; -function wr(t) { - return J.isInstance(t, ei.$type); -} -const Hi = { - $type: "NamedArgument", - calledByName: "calledByName", - parameter: "parameter", - value: "value" -}, qr = { - $type: "NegatedToken", - cardinality: "cardinality", - lookahead: "lookahead", - parenthesized: "parenthesized", - terminal: "terminal" -}; -function rh(t) { - return J.isInstance(t, qr.$type); -} -const Hs = { - $type: "Negation", - value: "value" -}; -function nh(t) { - return J.isInstance(t, Hs.$type); -} -const ac = { - $type: "NumberLiteral", - value: "value" -}, Xi = { - $type: "Parameter", - name: "name" -}, Xs = { - $type: "ParameterReference", - parameter: "parameter" -}; -function ih(t) { - return J.isInstance(t, Xs.$type); -} -const pt = { - $type: "ParserRule", - dataType: "dataType", - definition: "definition", - entry: "entry", - fragment: "fragment", - inferredType: "inferredType", - name: "name", - parameters: "parameters", - returnType: "returnType" -}; -function qt(t) { - return J.isInstance(t, pt.$type); -} -const ms = { - $type: "ReferenceType", - isMulti: "isMulti", - referenceType: "referenceType" -}, Br = { - $type: "RegexToken", - cardinality: "cardinality", - lookahead: "lookahead", - parenthesized: "parenthesized", - regex: "regex" -}; -function ah(t) { - return J.isInstance(t, Br.$type); -} -const Ys = { - $type: "ReturnType", - name: "name" -}; -function sh(t) { - return J.isInstance(t, Ys.$type); -} -const Wr = { - $type: "RuleCall", - arguments: "arguments", - cardinality: "cardinality", - predicate: "predicate", - rule: "rule" -}; -function br(t) { - return J.isInstance(t, Wr.$type); -} -const ti = { - $type: "SimpleType", - primitiveType: "primitiveType", - stringType: "stringType", - typeRef: "typeRef" -}; -function oh(t) { - return J.isInstance(t, ti.$type); -} -const sc = { - $type: "StringLiteral", - value: "value" -}, Kr = { - $type: "TerminalAlternatives", - cardinality: "cardinality", - elements: "elements", - lookahead: "lookahead", - parenthesized: "parenthesized" -}; -function lh(t) { - return J.isInstance(t, Kr.$type); -} -const rt = { - $type: "TerminalElement", - cardinality: "cardinality", - lookahead: "lookahead", - parenthesized: "parenthesized" -}, Vr = { - $type: "TerminalGroup", - cardinality: "cardinality", - elements: "elements", - lookahead: "lookahead", - parenthesized: "parenthesized" -}; -function ch(t) { - return J.isInstance(t, Vr.$type); -} -const Yt = { - $type: "TerminalRule", - definition: "definition", - fragment: "fragment", - hidden: "hidden", - name: "name", - type: "type" -}; -function Bt(t) { - return J.isInstance(t, Yt.$type); -} -const Hr = { - $type: "TerminalRuleCall", - cardinality: "cardinality", - lookahead: "lookahead", - parenthesized: "parenthesized", - rule: "rule" -}; -function uh(t) { - return J.isInstance(t, Hr.$type); -} -const Ra = { - $type: "Type", - name: "name", - type: "type" -}; -function fh(t) { - return J.isInstance(t, Ra.$type); -} -const _n = { - $type: "TypeAttribute", - defaultValue: "defaultValue", - isOptional: "isOptional", - name: "name", - type: "type" -}, In = { - $type: "TypeDefinition" -}, oc = { - $type: "UnionType", - types: "types" -}, va = { - $type: "UnorderedGroup", - cardinality: "cardinality", - elements: "elements" -}; -function of(t) { - return J.isInstance(t, va.$type); -} -const Xr = { - $type: "UntilToken", - cardinality: "cardinality", - lookahead: "lookahead", - parenthesized: "parenthesized", - terminal: "terminal" -}; -function dh(t) { - return J.isInstance(t, Xr.$type); -} -const Pn = { - $type: "ValueLiteral" -}, ri = { - $type: "Wildcard", - cardinality: "cardinality", - lookahead: "lookahead", - parenthesized: "parenthesized" -}; -function hh(t) { - return J.isInstance(t, ri.$type); -} -class lf extends Qu { - constructor() { - super(...arguments), this.types = { - AbstractElement: { - name: Je.$type, - properties: { - cardinality: { - name: Je.cardinality - } - }, - superTypes: [] - }, - AbstractParserRule: { - name: ma.$type, - properties: {}, - superTypes: [Vi.$type, ot.$type] - }, - AbstractRule: { - name: Vi.$type, - properties: {}, - superTypes: [] - }, - AbstractType: { - name: ot.$type, - properties: {}, - superTypes: [] - }, - Action: { - name: Tr.$type, - properties: { - cardinality: { - name: Tr.cardinality - }, - feature: { - name: Tr.feature - }, - inferredType: { - name: Tr.inferredType - }, - operator: { - name: Tr.operator - }, - type: { - name: Tr.type, - referenceType: ot.$type - } - }, - superTypes: [Je.$type] - }, - Alternatives: { - name: ga.$type, - properties: { - cardinality: { - name: ga.cardinality - }, - elements: { - name: ga.elements, - defaultValue: [] - } - }, - superTypes: [Je.$type] - }, - ArrayLiteral: { - name: tc.$type, - properties: { - elements: { - name: tc.elements, - defaultValue: [] - } - }, - superTypes: [Pn.$type] - }, - ArrayType: { - name: rc.$type, - properties: { - elementType: { - name: rc.elementType - } - }, - superTypes: [In.$type] - }, - Assignment: { - name: Rr.$type, - properties: { - cardinality: { - name: Rr.cardinality - }, - feature: { - name: Rr.feature - }, - operator: { - name: Rr.operator - }, - predicate: { - name: Rr.predicate - }, - terminal: { - name: Rr.terminal - } - }, - superTypes: [Je.$type] - }, - BooleanLiteral: { - name: Ws.$type, - properties: { - true: { - name: Ws.true, - defaultValue: !1 - } - }, - superTypes: [Dr.$type, Pn.$type] - }, - CharacterRange: { - name: vr.$type, - properties: { - cardinality: { - name: vr.cardinality - }, - left: { - name: vr.left - }, - lookahead: { - name: vr.lookahead - }, - parenthesized: { - name: vr.parenthesized, - defaultValue: !1 - }, - right: { - name: vr.right - } - }, - superTypes: [rt.$type] - }, - Condition: { - name: Dr.$type, - properties: {}, - superTypes: [] - }, - Conjunction: { - name: ya.$type, - properties: { - left: { - name: ya.left - }, - right: { - name: ya.right - } - }, - superTypes: [Dr.$type] - }, - CrossReference: { - name: Er.$type, - properties: { - cardinality: { - name: Er.cardinality - }, - deprecatedSyntax: { - name: Er.deprecatedSyntax, - defaultValue: !1 - }, - isMulti: { - name: Er.isMulti, - defaultValue: !1 - }, - terminal: { - name: Er.terminal - }, - type: { - name: Er.type, - referenceType: ot.$type - } - }, - superTypes: [Je.$type] - }, - Disjunction: { - name: Ta.$type, - properties: { - left: { - name: Ta.left - }, - right: { - name: Ta.right - } - }, - superTypes: [Dr.$type] - }, - EndOfFile: { - name: Ks.$type, - properties: { - cardinality: { - name: Ks.cardinality - } - }, - superTypes: [Je.$type] - }, - Grammar: { - name: ir.$type, - properties: { - imports: { - name: ir.imports, - defaultValue: [] - }, - interfaces: { - name: ir.interfaces, - defaultValue: [] - }, - isDeclared: { - name: ir.isDeclared, - defaultValue: !1 - }, - name: { - name: ir.name - }, - rules: { - name: ir.rules, - defaultValue: [] - }, - types: { - name: ir.types, - defaultValue: [] - } - }, - superTypes: [] - }, - GrammarImport: { - name: nc.$type, - properties: { - path: { - name: nc.path - } - }, - superTypes: [] - }, - Group: { - name: Ur.$type, - properties: { - cardinality: { - name: Ur.cardinality - }, - elements: { - name: Ur.elements, - defaultValue: [] - }, - guardCondition: { - name: Ur.guardCondition - }, - predicate: { - name: Ur.predicate - } - }, - superTypes: [Je.$type] - }, - InferredType: { - name: Vs.$type, - properties: { - name: { - name: Vs.name - } - }, - superTypes: [ot.$type] - }, - InfixRule: { - name: Ot.$type, - properties: { - call: { - name: Ot.call - }, - dataType: { - name: Ot.dataType - }, - inferredType: { - name: Ot.inferredType - }, - name: { - name: Ot.name - }, - operators: { - name: Ot.operators - }, - parameters: { - name: Ot.parameters, - defaultValue: [] - }, - returnType: { - name: Ot.returnType, - referenceType: ot.$type - } - }, - superTypes: [ma.$type] - }, - InfixRuleOperatorList: { - name: ps.$type, - properties: { - associativity: { - name: ps.associativity - }, - operators: { - name: ps.operators, - defaultValue: [] - } - }, - superTypes: [] - }, - InfixRuleOperators: { - name: ic.$type, - properties: { - precedences: { - name: ic.precedences, - defaultValue: [] - } - }, - superTypes: [] - }, - Interface: { - name: Qn.$type, - properties: { - attributes: { - name: Qn.attributes, - defaultValue: [] - }, - name: { - name: Qn.name - }, - superTypes: { - name: Qn.superTypes, - defaultValue: [], - referenceType: ot.$type - } - }, - superTypes: [ot.$type] - }, - Keyword: { - name: ei.$type, - properties: { - cardinality: { - name: ei.cardinality - }, - predicate: { - name: ei.predicate - }, - value: { - name: ei.value - } - }, - superTypes: [Je.$type] - }, - NamedArgument: { - name: Hi.$type, - properties: { - calledByName: { - name: Hi.calledByName, - defaultValue: !1 - }, - parameter: { - name: Hi.parameter, - referenceType: Xi.$type - }, - value: { - name: Hi.value - } - }, - superTypes: [] - }, - NegatedToken: { - name: qr.$type, - properties: { - cardinality: { - name: qr.cardinality - }, - lookahead: { - name: qr.lookahead - }, - parenthesized: { - name: qr.parenthesized, - defaultValue: !1 - }, - terminal: { - name: qr.terminal - } - }, - superTypes: [rt.$type] - }, - Negation: { - name: Hs.$type, - properties: { - value: { - name: Hs.value - } - }, - superTypes: [Dr.$type] - }, - NumberLiteral: { - name: ac.$type, - properties: { - value: { - name: ac.value - } - }, - superTypes: [Pn.$type] - }, - Parameter: { - name: Xi.$type, - properties: { - name: { - name: Xi.name - } - }, - superTypes: [] - }, - ParameterReference: { - name: Xs.$type, - properties: { - parameter: { - name: Xs.parameter, - referenceType: Xi.$type - } - }, - superTypes: [Dr.$type] - }, - ParserRule: { - name: pt.$type, - properties: { - dataType: { - name: pt.dataType - }, - definition: { - name: pt.definition - }, - entry: { - name: pt.entry, - defaultValue: !1 - }, - fragment: { - name: pt.fragment, - defaultValue: !1 - }, - inferredType: { - name: pt.inferredType - }, - name: { - name: pt.name - }, - parameters: { - name: pt.parameters, - defaultValue: [] - }, - returnType: { - name: pt.returnType, - referenceType: ot.$type - } - }, - superTypes: [ma.$type] - }, - ReferenceType: { - name: ms.$type, - properties: { - isMulti: { - name: ms.isMulti, - defaultValue: !1 - }, - referenceType: { - name: ms.referenceType - } - }, - superTypes: [In.$type] - }, - RegexToken: { - name: Br.$type, - properties: { - cardinality: { - name: Br.cardinality - }, - lookahead: { - name: Br.lookahead - }, - parenthesized: { - name: Br.parenthesized, - defaultValue: !1 - }, - regex: { - name: Br.regex - } - }, - superTypes: [rt.$type] - }, - ReturnType: { - name: Ys.$type, - properties: { - name: { - name: Ys.name - } - }, - superTypes: [] - }, - RuleCall: { - name: Wr.$type, - properties: { - arguments: { - name: Wr.arguments, - defaultValue: [] - }, - cardinality: { - name: Wr.cardinality - }, - predicate: { - name: Wr.predicate - }, - rule: { - name: Wr.rule, - referenceType: Vi.$type - } - }, - superTypes: [Je.$type] - }, - SimpleType: { - name: ti.$type, - properties: { - primitiveType: { - name: ti.primitiveType - }, - stringType: { - name: ti.stringType - }, - typeRef: { - name: ti.typeRef, - referenceType: ot.$type - } - }, - superTypes: [In.$type] - }, - StringLiteral: { - name: sc.$type, - properties: { - value: { - name: sc.value - } - }, - superTypes: [Pn.$type] - }, - TerminalAlternatives: { - name: Kr.$type, - properties: { - cardinality: { - name: Kr.cardinality - }, - elements: { - name: Kr.elements, - defaultValue: [] - }, - lookahead: { - name: Kr.lookahead - }, - parenthesized: { - name: Kr.parenthesized, - defaultValue: !1 - } - }, - superTypes: [rt.$type] - }, - TerminalElement: { - name: rt.$type, - properties: { - cardinality: { - name: rt.cardinality - }, - lookahead: { - name: rt.lookahead - }, - parenthesized: { - name: rt.parenthesized, - defaultValue: !1 - } - }, - superTypes: [Je.$type] - }, - TerminalGroup: { - name: Vr.$type, - properties: { - cardinality: { - name: Vr.cardinality - }, - elements: { - name: Vr.elements, - defaultValue: [] - }, - lookahead: { - name: Vr.lookahead - }, - parenthesized: { - name: Vr.parenthesized, - defaultValue: !1 - } - }, - superTypes: [rt.$type] - }, - TerminalRule: { - name: Yt.$type, - properties: { - definition: { - name: Yt.definition - }, - fragment: { - name: Yt.fragment, - defaultValue: !1 - }, - hidden: { - name: Yt.hidden, - defaultValue: !1 - }, - name: { - name: Yt.name - }, - type: { - name: Yt.type - } - }, - superTypes: [Vi.$type] - }, - TerminalRuleCall: { - name: Hr.$type, - properties: { - cardinality: { - name: Hr.cardinality - }, - lookahead: { - name: Hr.lookahead - }, - parenthesized: { - name: Hr.parenthesized, - defaultValue: !1 - }, - rule: { - name: Hr.rule, - referenceType: Yt.$type - } - }, - superTypes: [rt.$type] - }, - Type: { - name: Ra.$type, - properties: { - name: { - name: Ra.name - }, - type: { - name: Ra.type - } - }, - superTypes: [ot.$type] - }, - TypeAttribute: { - name: _n.$type, - properties: { - defaultValue: { - name: _n.defaultValue - }, - isOptional: { - name: _n.isOptional, - defaultValue: !1 - }, - name: { - name: _n.name - }, - type: { - name: _n.type - } - }, - superTypes: [] - }, - TypeDefinition: { - name: In.$type, - properties: {}, - superTypes: [] - }, - UnionType: { - name: oc.$type, - properties: { - types: { - name: oc.types, - defaultValue: [] - } - }, - superTypes: [In.$type] - }, - UnorderedGroup: { - name: va.$type, - properties: { - cardinality: { - name: va.cardinality - }, - elements: { - name: va.elements, - defaultValue: [] - } - }, - superTypes: [Je.$type] - }, - UntilToken: { - name: Xr.$type, - properties: { - cardinality: { - name: Xr.cardinality - }, - lookahead: { - name: Xr.lookahead - }, - parenthesized: { - name: Xr.parenthesized, - defaultValue: !1 - }, - terminal: { - name: Xr.terminal - } - }, - superTypes: [rt.$type] - }, - ValueLiteral: { - name: Pn.$type, - properties: {}, - superTypes: [] - }, - Wildcard: { - name: ri.$type, - properties: { - cardinality: { - name: ri.cardinality - }, - lookahead: { - name: ri.lookahead - }, - parenthesized: { - name: ri.parenthesized, - defaultValue: !1 - } - }, - superTypes: [rt.$type] - } - }; - } -} -const J = new lf(); -function Js(t) { - return new Nl(t, (e) => ci(e) ? e.content : [], { includeRoot: !0 }); -} -function ph(t, e) { - for (; t.container; ) - if (t = t.container, t === e) - return !0; - return !1; -} -function Zs(t) { - return { - start: { - character: t.startColumn - 1, - line: t.startLine - 1 - }, - end: { - character: t.endColumn, - // endColumn uses the correct index - line: t.endLine - 1 - } - }; -} -function Pa(t) { - if (!t) - return; - const { offset: e, end: r, range: n } = t; - return { - range: n, - offset: e, - end: r, - length: r - e - }; -} -var Dt; -(function(t) { - t[t.Before = 0] = "Before", t[t.After = 1] = "After", t[t.OverlapFront = 2] = "OverlapFront", t[t.OverlapBack = 3] = "OverlapBack", t[t.Inside = 4] = "Inside", t[t.Outside = 5] = "Outside"; -})(Dt || (Dt = {})); -function mh(t, e) { - if (t.end.line < e.start.line || t.end.line === e.start.line && t.end.character <= e.start.character) - return Dt.Before; - if (t.start.line > e.end.line || t.start.line === e.end.line && t.start.character >= e.end.character) - return Dt.After; - const r = t.start.line > e.start.line || t.start.line === e.start.line && t.start.character >= e.start.character, n = t.end.line < e.end.line || t.end.line === e.end.line && t.end.character <= e.end.character; - return r && n ? Dt.Inside : r ? Dt.OverlapBack : n ? Dt.OverlapFront : Dt.Outside; -} -function gh(t, e) { - return mh(t, e) > Dt.After; -} -const yh = /^[\w\p{L}]$/u; -function Th(t, e) { - if (t) { - const r = Rh(t, !0); - if (r && lc(r, e)) - return r; - if (tf(t)) { - const n = t.content.findIndex((i) => !i.hidden); - for (let i = n - 1; i >= 0; i--) { - const a = t.content[i]; - if (lc(a, e)) - return a; - } - } - } -} -function lc(t, e) { - return ef(t) && e.includes(t.tokenType.name); -} -function Rh(t, e = !0) { - for (; t.container; ) { - const r = t.container; - let n = r.content.indexOf(t); - for (; n > 0; ) { - n--; - const i = r.content[n]; - if (e || !i.hidden) - return i; - } - t = r; - } -} -class cf extends Error { - constructor(e, r) { - super(e ? `${r} at ${e.range.start.line}:${e.range.start.character}` : r); - } -} -function $i(t, e = "Error: Got unexpected value.") { - throw new Error(e); -} -function U(t) { - return t.charCodeAt(0); -} -function gs(t, e) { - Array.isArray(t) ? t.forEach(function(r) { - e.push(r); - }) : e.push(t); -} -function On(t, e) { - if (t[e] === !0) - throw "duplicate flag " + e; - t[e], t[e] = !0; -} -function Mr(t) { - if (t === void 0) - throw Error("Internal Error - Should never get here!"); - return !0; -} -function vh() { - throw Error("Internal Error - Should never get here!"); -} -function cc(t) { - return t.type === "Character"; -} -const Oa = []; -for (let t = U("0"); t <= U("9"); t++) - Oa.push(t); -const La = [U("_")].concat(Oa); -for (let t = U("a"); t <= U("z"); t++) - La.push(t); -for (let t = U("A"); t <= U("Z"); t++) - La.push(t); -const uc = [ - U(" "), - U("\f"), - U(` -`), - U("\r"), - U(" "), - U("\v"), - U(" "), - U(" "), - U(" "), - U(" "), - U(" "), - U(" "), - U(" "), - U(" "), - U(" "), - U(" "), - U(" "), - U(" "), - U(" "), - U(" "), - U("\u2028"), - U("\u2029"), - U(" "), - U(" "), - U(" "), - U("\uFEFF") -], Eh = /[0-9a-fA-F]/, Yi = /[0-9]/, Ah = /[1-9]/; -class uf { - 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("/"); - const r = this.disjunction(); - this.consumeChar("/"); - const 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": - On(n, "global"); - break; - case "i": - On(n, "ignoreCase"); - break; - case "m": - On(n, "multiLine"); - break; - case "u": - On(n, "unicode"); - break; - case "y": - On(n, "sticky"); - break; - } - if (this.idx !== this.input.length) - throw Error("Redundant input: " + this.input.substring(this.idx)); - return { - type: "Pattern", - flags: n, - value: r, - loc: this.loc(0) - }; - } - disjunction() { - const e = [], r = this.idx; - for (e.push(this.alternative()); this.peekChar() === "|"; ) - this.consumeChar("|"), e.push(this.alternative()); - return { type: "Disjunction", value: e, loc: this.loc(r) }; - } - alternative() { - const e = [], r = this.idx; - for (; this.isTerm(); ) - e.push(this.term()); - return { type: "Alternative", value: e, loc: this.loc(r) }; - } - term() { - return this.isAssertion() ? this.assertion() : this.atom(); - } - assertion() { - const e = this.idx; - switch (this.popChar()) { - case "^": - return { - type: "StartAnchor", - loc: this.loc(e) - }; - case "$": - return { type: "EndAnchor", loc: this.loc(e) }; - // '\b' or '\B' - 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"); - // '(?=' or '(?!' - case "(": - this.consumeChar("?"); - let r; - switch (this.popChar()) { - case "=": - r = "Lookahead"; - break; - case "!": - r = "NegativeLookahead"; - break; - case "<": { - switch (this.popChar()) { - case "=": - r = "Lookbehind"; - break; - case "!": - r = "NegativeLookbehind"; - } - break; - } - } - Mr(r); - const n = this.disjunction(); - return this.consumeChar(")"), { - type: r, - value: n, - loc: this.loc(e) - }; - } - return vh(); - } - quantifier(e = !1) { - let r; - const n = this.idx; - switch (this.popChar()) { - case "*": - r = { - atLeast: 0, - atMost: 1 / 0 - }; - break; - case "+": - r = { - atLeast: 1, - atMost: 1 / 0 - }; - break; - case "?": - r = { - atLeast: 0, - atMost: 1 - }; - break; - case "{": - const i = this.integerIncludingZero(); - switch (this.popChar()) { - case "}": - r = { - atLeast: i, - atMost: i - }; - break; - case ",": - let a; - this.isDigit() ? (a = this.integerIncludingZero(), r = { - atLeast: i, - atMost: a - }) : r = { - atLeast: i, - atMost: 1 / 0 - }, this.consumeChar("}"); - break; - } - if (e === !0 && r === void 0) - return; - Mr(r); - break; - } - if (!(e === !0 && r === void 0) && Mr(r)) - return this.peekChar(0) === "?" ? (this.consumeChar("?"), r.greedy = !1) : r.greedy = !0, r.type = "Quantifier", r.loc = this.loc(n), r; - } - atom() { - let e; - const r = 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; - } - if (e === void 0 && this.isPatternCharacter() && (e = this.patternCharacter()), Mr(e)) - return e.loc = this.loc(r), this.isQuantifier() && (e.quantifier = this.quantifier()), e; - } - dotAll() { - return this.consumeChar("."), { - type: "Set", - complement: !0, - value: [U(` -`), U("\r"), U("\u2028"), U("\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, r = !1; - switch (this.popChar()) { - case "d": - e = Oa; - break; - case "D": - e = Oa, r = !0; - break; - case "s": - e = uc; - break; - case "S": - e = uc, r = !0; - break; - case "w": - e = La; - break; - case "W": - e = La, r = !0; - break; - } - if (Mr(e)) - return { type: "Set", value: e, complement: r }; - } - controlEscapeAtom() { - let e; - switch (this.popChar()) { - case "f": - e = U("\f"); - break; - case "n": - e = U(` -`); - break; - case "r": - e = U("\r"); - break; - case "t": - e = U(" "); - break; - case "v": - e = U("\v"); - break; - } - if (Mr(e)) - return { type: "Character", value: e }; - } - controlLetterEscapeAtom() { - this.consumeChar("c"); - const 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: U("\0") }; - } - hexEscapeSequenceAtom() { - return this.consumeChar("x"), this.parseHexDigits(2); - } - regExpUnicodeEscapeSequenceAtom() { - return this.consumeChar("u"), this.parseHexDigits(4); - } - identityEscapeAtom() { - const e = this.popChar(); - return { type: "Character", value: U(e) }; - } - classPatternCharacterAtom() { - switch (this.peekChar()) { - // istanbul ignore next - case ` -`: - // istanbul ignore next - case "\r": - // istanbul ignore next - case "\u2028": - // istanbul ignore next - case "\u2029": - // istanbul ignore next - case "\\": - // istanbul ignore next - case "]": - throw Error("TBD"); - default: - const e = this.popChar(); - return { type: "Character", value: U(e) }; - } - } - characterClass() { - const e = []; - let r = !1; - for (this.consumeChar("["), this.peekChar(0) === "^" && (this.consumeChar("^"), r = !0); this.isClassAtom(); ) { - const n = this.classAtom(); - if (n.type, cc(n) && this.isRangeDash()) { - this.consumeChar("-"); - const i = this.classAtom(); - if (i.type, cc(i)) { - if (i.value < n.value) - throw Error("Range out of order in character class"); - e.push({ from: n.value, to: i.value }); - } else - gs(n.value, e), e.push(U("-")), gs(i.value, e); - } else - gs(n.value, e); - } - return this.consumeChar("]"), { type: "Set", complement: r, value: e }; - } - classAtom() { - switch (this.peekChar()) { - // istanbul ignore next - case "]": - // istanbul ignore next - case ` -`: - // istanbul ignore next - case "\r": - // istanbul ignore next - case "\u2028": - // istanbul ignore next - case "\u2029": - throw Error("TBD"); - case "\\": - return this.classEscape(); - default: - return this.classPatternCharacterAtom(); - } - } - classEscape() { - switch (this.consumeChar("\\"), this.peekChar()) { - // Matches a backspace. - // (Not to be confused with \b word boundary outside characterClass) - case "b": - return this.consumeChar("b"), { type: "Character", value: U("\b") }; - 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(); - } - } - group() { - let e = !0; - switch (this.consumeChar("("), this.peekChar(0)) { - case "?": - this.consumeChar("?"), this.consumeChar(":"), e = !1; - break; - default: - this.groupIdx++; - break; - } - const r = this.disjunction(); - this.consumeChar(")"); - const n = { - type: "Group", - capturing: e, - value: r - }; - return e && (n.idx = this.groupIdx), n; - } - positiveInteger() { - let e = this.popChar(); - if (Ah.test(e) === !1) - throw Error("Expecting a positive integer"); - for (; Yi.test(this.peekChar(0)); ) - e += this.popChar(); - return parseInt(e, 10); - } - integerIncludingZero() { - let e = this.popChar(); - if (Yi.test(e) === !1) - throw Error("Expecting an integer"); - for (; Yi.test(this.peekChar(0)); ) - e += this.popChar(); - return parseInt(e, 10); - } - patternCharacter() { - const e = this.popChar(); - switch (e) { - // istanbul ignore next - case ` -`: - // istanbul ignore next - case "\r": - // istanbul ignore next - case "\u2028": - // istanbul ignore next - case "\u2029": - // istanbul ignore next - case "^": - // istanbul ignore next - case "$": - // istanbul ignore next - case "\\": - // istanbul ignore next - case ".": - // istanbul ignore next - case "*": - // istanbul ignore next - case "+": - // istanbul ignore next - case "?": - // istanbul ignore next - case "(": - // istanbul ignore next - case ")": - // istanbul ignore next - case "[": - // istanbul ignore next - case "|": - throw Error("TBD"); - default: - return { type: "Character", value: U(e) }; - } - } - isRegExpFlag() { - switch (this.peekChar(0)) { - case "g": - case "i": - case "m": - case "u": - case "y": - return !0; - default: - return !1; - } - } - isRangeDash() { - return this.peekChar() === "-" && this.isClassAtom(1); - } - isDigit() { - return Yi.test(this.peekChar(0)); - } - isClassAtom(e = 0) { - switch (this.peekChar(e)) { - case "]": - case ` -`: - case "\r": - case "\u2028": - case "\u2029": - return !1; - default: - return !0; - } - } - isTerm() { - return this.isAtom() || this.isAssertion(); - } - isAtom() { - if (this.isPatternCharacter()) - return !0; - switch (this.peekChar(0)) { - case ".": - case "\\": - // atomEscape - case "[": - // characterClass - // TODO: isAtom must be called before isAssertion - disambiguate - case "(": - return !0; - default: - return !1; - } - } - isAssertion() { - switch (this.peekChar(0)) { - case "^": - case "$": - return !0; - // '\b' or '\B' - case "\\": - switch (this.peekChar(1)) { - case "b": - case "B": - return !0; - default: - return !1; - } - // '(?=' or '(?!' or `(?<=` or `(?= this.input.length) - throw Error("Unexpected end of input"); - this.idx++; - } - loc(e) { - return { begin: e, end: this.idx }; - } -} -class es { - visitChildren(e) { - for (const r in e) { - const n = e[r]; - e.hasOwnProperty(r) && (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) { - } - // Assertion - visitStartAnchor(e) { - } - visitEndAnchor(e) { - } - visitWordBoundary(e) { - } - visitNonWordBoundary(e) { - } - visitLookahead(e) { - } - visitNegativeLookahead(e) { - } - visitLookbehind(e) { - } - visitNegativeLookbehind(e) { - } - // atoms - visitCharacter(e) { - } - visitSet(e) { - } - visitGroup(e) { - } - visitGroupBackReference(e) { - } - visitQuantifier(e) { - } -} -const $h = /\r?\n/gm, Ch = new uf(); -class Sh extends es { - 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) { - const r = String.fromCharCode(e.value); - if (!this.multiline && r === ` -` && (this.multiline = !0), e.quantifier) - this.isStarting = !1, this.endRegexpStack = []; - else { - const n = ts(r); - this.endRegexpStack.push(n), this.isStarting && (this.startRegexp += n); - } - } - visitSet(e) { - if (!this.multiline) { - const r = this.regex.substring(e.loc.begin, e.loc.end), n = new RegExp(r); - this.multiline = !!` -`.match(n); - } - if (e.quantifier) - this.isStarting = !1, this.endRegexpStack = []; - else { - const r = this.regex.substring(e.loc.begin, e.loc.end); - this.endRegexpStack.push(r), this.isStarting && (this.startRegexp += r); - } - } - visitChildren(e) { - e.type === "Group" && e.quantifier || super.visitChildren(e); - } -} -const ys = new Sh(); -function kh(t) { - try { - return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), ys.reset(t), ys.visit(Ch.pattern(t)), ys.multiline; - } catch { - return !1; - } -} -const wh = `\f -\r \v              \u2028\u2029   \uFEFF`.split(""); -function ff(t) { - const e = typeof t == "string" ? new RegExp(t) : t; - return wh.some((r) => e.test(r)); -} -function ts(t) { - return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); -} -function bh(t, e) { - const r = Nh(t), n = e.match(r); - return !!n && n[0].length > 0; -} -function Nh(t) { - typeof t == "string" && (t = new RegExp(t)); - const e = t, r = t.source; - let n = 0; - function i() { - let a = "", s; - function o(c) { - a += r.substr(n, c), n += c; - } - function l(c) { - a += "(?:" + r.substr(n, c) + "|$)", n += c; - } - for (; n < r.length; ) - switch (r[n]) { - case "\\": - switch (r[n + 1]) { - case "c": - l(3); - break; - case "x": - l(4); - break; - case "u": - e.unicode ? r[n + 2] === "{" ? l(r.indexOf("}", n) - n + 1) : l(6) : l(2); - break; - case "p": - case "P": - e.unicode ? l(r.indexOf("}", n) - n + 1) : l(2); - break; - case "k": - l(r.indexOf(">", n) - n + 1); - break; - default: - l(2); - break; - } - break; - case "[": - s = /\[(?:\\.|.)*?\]/g, s.lastIndex = n, s = s.exec(r) || [], l(s[0].length); - break; - case "|": - case "^": - case "$": - case "*": - case "+": - case "?": - o(1); - break; - case "{": - s = /\{\d+,?\d*\}/g, s.lastIndex = n, s = s.exec(r), s ? o(s[0].length) : l(1); - break; - case "(": - if (r[n + 1] === "?") - switch (r[n + 2]) { - case ":": - a += "(?:", n += 3, a += i() + "|$)"; - break; - case "=": - a += "(?=", n += 3, a += i() + ")"; - break; - case "!": - s = n, n += 3, i(), a += r.substr(s, n - s); - break; - case "<": - switch (r[n + 3]) { - case "=": - case "!": - s = n, n += 4, i(), a += r.substr(s, n - s); - break; - default: - o(r.indexOf(">", n) - n + 1), a += i() + "|$)"; - break; - } - break; - } - else - o(1), a += i() + "|$)"; - break; - case ")": - return ++n, a; - default: - l(1); - break; - } - return a; - } - return new RegExp(i(), t.flags); -} -function _h(t) { - return t.rules.find((e) => qt(e) && e.entry); -} -function Ih(t) { - return t.rules.filter((e) => Bt(e) && e.hidden); -} -function df(t, e) { - const r = /* @__PURE__ */ new Set(), n = _h(t); - if (!n) - return new Set(t.rules); - const i = [n].concat(Ih(t)); - for (const s of i) - hf(s, r, e); - const a = /* @__PURE__ */ new Set(); - for (const s of t.rules) - (r.has(s.name) || Bt(s) && s.hidden) && a.add(s); - return a; -} -function hf(t, e, r) { - e.add(t.name), Ei(t).forEach((n) => { - if (br(n) || r) { - const i = n.rule.ref; - i && !e.has(i.name) && hf(i, e, r); - } - }); -} -function Ph(t) { - if (t.terminal) - return t.terminal; - if (t.type.ref) - return mf(t.type.ref)?.terminal; -} -function Oh(t) { - return t.hidden && !ff(Ol(t)); -} -function Lh(t, e) { - return !t || !e ? [] : Pl(t, e, t.astNode, !0); -} -function pf(t, e, r) { - if (!t || !e) - return; - const n = Pl(t, e, t.astNode, !0); - if (n.length !== 0) - return r !== void 0 ? r = Math.max(0, Math.min(r, n.length - 1)) : r = 0, n[r]; -} -function Pl(t, e, r, n) { - if (!n) { - const i = Ja(t.grammarSource, kr); - if (i && i.feature === e) - return [t]; - } - return ci(t) && t.astNode === r ? t.content.flatMap((i) => Pl(i, e, r, !1)) : []; -} -function xh(t, e, r) { - if (!t) - return; - const n = Dh(t, e, t?.astNode); - if (n.length !== 0) - return r !== void 0 ? r = Math.max(0, Math.min(r, n.length - 1)) : r = 0, n[r]; -} -function Dh(t, e, r) { - if (t.astNode !== r) - return []; - if (wr(t.grammarSource) && t.grammarSource.value === e) - return [t]; - const n = Js(t).iterator(); - let i; - const a = []; - do - if (i = n.next(), !i.done) { - const s = i.value; - s.astNode === r ? wr(s.grammarSource) && s.grammarSource.value === e && a.push(s) : n.prune(); - } - while (!i.done); - return a; -} -function Mh(t) { - const e = t.astNode; - for (; e === t.container?.astNode; ) { - const r = Ja(t.grammarSource, kr); - if (r) - return r; - t = t.container; - } -} -function mf(t) { - let e = t; - return sf(e) && (Za(e.$container) ? e = e.$container.$container : Ai(e.$container) ? e = e.$container : $i(e.$container)), gf(t, e, /* @__PURE__ */ new Map()); -} -function gf(t, e, r) { - function n(i, a) { - let s; - return Ja(i, kr) || (s = gf(a, a, r)), r.set(t, s), s; - } - if (r.has(t)) - return r.get(t); - r.set(t, void 0); - for (const i of Ei(e)) { - if (kr(i) && i.feature.toLowerCase() === "name") - return r.set(t, i), i; - if (br(i) && qt(i.rule.ref)) - return n(i, i.rule.ref); - if (oh(i) && i.typeRef?.ref) - return n(i, i.typeRef.ref); - } -} -function yf(t) { - return Tf(t, /* @__PURE__ */ new Set()); -} -function Tf(t, e) { - if (e.has(t)) - return !0; - e.add(t); - for (const r of Ei(t)) - if (br(r)) { - if (!r.rule.ref || qt(r.rule.ref) && !Tf(r.rule.ref, e) || Ia(r.rule.ref)) - return !1; - } else { - if (kr(r)) - return !1; - if (Za(r)) - return !1; - } - return !!t.definition; -} -function Rf(t) { - if (!Bt(t)) { - if (t.inferredType) - return t.inferredType.name; - if (t.dataType) - return t.dataType; - if (t.returnType) { - const e = t.returnType.ref; - if (e) - return e.name; - } - } -} -function ui(t) { - if (Ai(t)) - return qt(t) && yf(t) ? t.name : Rf(t) ?? t.name; - if (th(t) || fh(t) || sh(t)) - return t.name; - if (Za(t)) { - const e = Fh(t); - if (e) - return e; - } else if (sf(t)) - return t.name; - throw new Error("Cannot get name of Unknown Type"); -} -function Fh(t) { - if (t.inferredType) - return t.inferredType.name; - if (t.type?.ref) - return ui(t.type.ref); -} -function Gh(t) { - return Bt(t) ? t.type?.name ?? "string" : Rf(t) ?? t.name; -} -function Ol(t) { - const e = { - s: !1, - i: !1, - u: !1 - }, r = fn(t.definition, e), n = Object.entries(e).filter(([, i]) => i).map(([i]) => i).join(""); - return new RegExp(r, n); -} -const Ll = /[\s\S]/.source; -function fn(t, e) { - if (lh(t)) - return jh(t); - if (ch(t)) - return zh(t); - if (Jd(t)) - return Bh(t); - if (uh(t)) { - const r = t.rule.ref; - if (!r) - throw new Error("Missing rule reference."); - return zt(fn(r.definition), { - cardinality: t.cardinality, - lookahead: t.lookahead, - parenthesized: t.parenthesized - }); - } else { - if (rh(t)) - return qh(t); - if (dh(t)) - return Uh(t); - if (ah(t)) { - const r = t.regex.lastIndexOf("/"), n = t.regex.substring(1, r), i = t.regex.substring(r + 1); - return e && (e.i = i.includes("i"), e.s = i.includes("s"), e.u = i.includes("u")), zt(n, { - cardinality: t.cardinality, - lookahead: t.lookahead, - parenthesized: t.parenthesized, - wrap: !1 - }); - } else { - if (hh(t)) - return zt(Ll, { - cardinality: t.cardinality, - lookahead: t.lookahead, - parenthesized: t.parenthesized - }); - throw new Error(`Invalid terminal element: ${t?.$type}, ${t?.$cstNode?.text}`); - } - } -} -function jh(t) { - return zt(t.elements.map((e) => fn(e)).join("|"), { - cardinality: t.cardinality, - lookahead: t.lookahead, - parenthesized: t.parenthesized, - wrap: !1 - // wrapping is not required for top level alternatives, and nested alternatives are already parenthesized according to the grammar - }); -} -function zh(t) { - return zt(t.elements.map((e) => fn(e)).join(""), { - cardinality: t.cardinality, - lookahead: t.lookahead, - parenthesized: t.parenthesized, - wrap: !1 - // wrapping is not required for top level group, and nested group are already parenthesized according to the grammar - }); -} -function Uh(t) { - return zt(`${Ll}*?${fn(t.terminal)}`, { - cardinality: t.cardinality, - lookahead: t.lookahead, - parenthesized: t.parenthesized - }); -} -function qh(t) { - return zt(`(?!${fn(t.terminal)})${Ll}*?`, { - cardinality: t.cardinality, - lookahead: t.lookahead, - parenthesized: t.parenthesized - }); -} -function Bh(t) { - return t.right ? zt(`[${Ts(t.left)}-${Ts(t.right)}]`, { - cardinality: t.cardinality, - lookahead: t.lookahead, - parenthesized: t.parenthesized, - wrap: !1 - }) : zt(Ts(t.left), { - cardinality: t.cardinality, - lookahead: t.lookahead, - parenthesized: t.parenthesized, - wrap: !1 - }); -} -function Ts(t) { - return ts(t.value); -} -function zt(t, e) { - return (e.parenthesized || e.lookahead || e.wrap !== !1) && (t = `(${e.lookahead ?? (e.parenthesized ? "" : "?:")}${t})`), e.cardinality ? `${t}${e.cardinality}` : t; -} -function Wh(t) { - const e = [], r = t.Grammar; - for (const n of r.rules) - Bt(n) && Oh(n) && kh(Ol(n)) && e.push(n.name); - return { - multilineCommentRules: e, - nameRegexp: yh - }; -} -function Qs(t) { - console && console.error && console.error(`Error: ${t}`); -} -function vf(t) { - console && console.warn && console.warn(`Warning: ${t}`); -} -function Ef(t) { - const e = (/* @__PURE__ */ new Date()).getTime(), r = t(); - return { time: (/* @__PURE__ */ new Date()).getTime() - e, value: r }; -} -function Af(t) { - function e() { - } - e.prototype = t; - const r = new e(); - function n() { - return typeof r.bar; - } - return n(), n(), t; -} -function Kh(t) { - return Vh(t) ? t.LABEL : t.name; -} -function Vh(t) { - return typeof t.LABEL == "string" && t.LABEL !== ""; -} -class Tt { - get definition() { - return this._definition; - } - set definition(e) { - this._definition = e; - } - constructor(e) { - this._definition = e; - } - accept(e) { - e.visit(this), this.definition.forEach((r) => { - r.accept(e); - }); - } -} -class qe extends Tt { - constructor(e) { - super([]), this.idx = 1, Object.assign(this, Rt(e)); - } - set definition(e) { - } - get definition() { - return this.referencedRule !== void 0 ? this.referencedRule.definition : []; - } - accept(e) { - e.visit(this); - } -} -class dn extends Tt { - constructor(e) { - super(e.definition), this.orgText = "", Object.assign(this, Rt(e)); - } -} -class Ke extends Tt { - constructor(e) { - super(e.definition), this.ignoreAmbiguities = !1, Object.assign(this, Rt(e)); - } -} -let Me = class extends Tt { - constructor(e) { - super(e.definition), this.idx = 1, Object.assign(this, Rt(e)); - } -}; -class et extends Tt { - constructor(e) { - super(e.definition), this.idx = 1, Object.assign(this, Rt(e)); - } -} -class tt extends Tt { - constructor(e) { - super(e.definition), this.idx = 1, Object.assign(this, Rt(e)); - } -} -class Te extends Tt { - constructor(e) { - super(e.definition), this.idx = 1, Object.assign(this, Rt(e)); - } -} -class Ve extends Tt { - constructor(e) { - super(e.definition), this.idx = 1, Object.assign(this, Rt(e)); - } -} -class He extends Tt { - 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, Object.assign(this, Rt(e)); - } -} -class ae { - constructor(e) { - this.idx = 1, Object.assign(this, Rt(e)); - } - accept(e) { - e.visit(this); - } -} -function Hh(t) { - return t.map(Ea); -} -function Ea(t) { - function e(r) { - return r.map(Ea); - } - if (t instanceof qe) { - const r = { - type: "NonTerminal", - name: t.nonTerminalName, - idx: t.idx - }; - return typeof t.label == "string" && (r.label = t.label), r; - } else { - if (t instanceof Ke) - return { - type: "Alternative", - definition: e(t.definition) - }; - if (t instanceof Me) - return { - type: "Option", - idx: t.idx, - definition: e(t.definition) - }; - if (t instanceof et) - return { - type: "RepetitionMandatory", - idx: t.idx, - definition: e(t.definition) - }; - if (t instanceof tt) - return { - type: "RepetitionMandatoryWithSeparator", - idx: t.idx, - separator: Ea(new ae({ terminalType: t.separator })), - definition: e(t.definition) - }; - if (t instanceof Ve) - return { - type: "RepetitionWithSeparator", - idx: t.idx, - separator: Ea(new ae({ terminalType: t.separator })), - definition: e(t.definition) - }; - if (t instanceof Te) - return { - type: "Repetition", - idx: t.idx, - definition: e(t.definition) - }; - if (t instanceof He) - return { - type: "Alternation", - idx: t.idx, - definition: e(t.definition) - }; - if (t instanceof ae) { - const r = { - type: "Terminal", - name: t.terminalType.name, - label: Kh(t.terminalType), - idx: t.idx - }; - typeof t.label == "string" && (r.terminalLabel = t.label); - const n = t.terminalType.PATTERN; - return t.terminalType.PATTERN && (r.pattern = n instanceof RegExp ? n.source : n), r; - } else { - if (t instanceof dn) - return { - type: "Rule", - name: t.name, - orgText: t.orgText, - definition: e(t.definition) - }; - throw Error("non exhaustive match"); - } - } -} -function Rt(t) { - return Object.fromEntries(Object.entries(t).filter(([, e]) => e !== void 0)); -} -class hn { - visit(e) { - const r = e; - switch (r.constructor) { - case qe: - return this.visitNonTerminal(r); - case Ke: - return this.visitAlternative(r); - case Me: - return this.visitOption(r); - case et: - return this.visitRepetitionMandatory(r); - case tt: - return this.visitRepetitionMandatoryWithSeparator(r); - case Ve: - return this.visitRepetitionWithSeparator(r); - case Te: - return this.visitRepetition(r); - case He: - return this.visitAlternation(r); - case ae: - return this.visitTerminal(r); - case dn: - return this.visitRule(r); - /* c8 ignore next 2 */ - default: - throw Error("non exhaustive match"); - } - } - /* c8 ignore next */ - visitNonTerminal(e) { - } - /* c8 ignore next */ - visitAlternative(e) { - } - /* c8 ignore next */ - visitOption(e) { - } - /* c8 ignore next */ - visitRepetition(e) { - } - /* c8 ignore next */ - visitRepetitionMandatory(e) { - } - /* c8 ignore next 3 */ - visitRepetitionMandatoryWithSeparator(e) { - } - /* c8 ignore next */ - visitRepetitionWithSeparator(e) { - } - /* c8 ignore next */ - visitAlternation(e) { - } - /* c8 ignore next */ - visitTerminal(e) { - } - /* c8 ignore next */ - visitRule(e) { - } -} -function Xh(t) { - return t instanceof Ke || t instanceof Me || t instanceof Te || t instanceof et || t instanceof tt || t instanceof Ve || t instanceof ae || t instanceof dn; -} -function xa(t, e = []) { - return t instanceof Me || t instanceof Te || t instanceof Ve ? !0 : t instanceof He ? t.definition.some((n) => xa(n, e)) : t instanceof qe && e.includes(t) ? !1 : t instanceof Tt ? (t instanceof qe && e.push(t), t.definition.every((n) => xa(n, e))) : !1; -} -function Yh(t) { - return t instanceof He; -} -function mt(t) { - if (t instanceof qe) - return "SUBRULE"; - if (t instanceof Me) - return "OPTION"; - if (t instanceof He) - return "OR"; - if (t instanceof et) - return "AT_LEAST_ONE"; - if (t instanceof tt) - return "AT_LEAST_ONE_SEP"; - if (t instanceof Ve) - return "MANY_SEP"; - if (t instanceof Te) - return "MANY"; - if (t instanceof ae) - return "CONSUME"; - throw Error("non exhaustive match"); -} -class rs { - walk(e, r = []) { - e.definition.forEach((n, i) => { - const a = e.definition.slice(i + 1); - if (n instanceof qe) - this.walkProdRef(n, a, r); - else if (n instanceof ae) - this.walkTerminal(n, a, r); - else if (n instanceof Ke) - this.walkFlat(n, a, r); - else if (n instanceof Me) - this.walkOption(n, a, r); - else if (n instanceof et) - this.walkAtLeastOne(n, a, r); - else if (n instanceof tt) - this.walkAtLeastOneSep(n, a, r); - else if (n instanceof Ve) - this.walkManySep(n, a, r); - else if (n instanceof Te) - this.walkMany(n, a, r); - else if (n instanceof He) - this.walkOr(n, a, r); - else - throw Error("non exhaustive match"); - }); - } - walkTerminal(e, r, n) { - } - walkProdRef(e, r, n) { - } - walkFlat(e, r, n) { - const i = r.concat(n); - this.walk(e, i); - } - walkOption(e, r, n) { - const i = r.concat(n); - this.walk(e, i); - } - walkAtLeastOne(e, r, n) { - const i = [ - new Me({ definition: e.definition }) - ].concat(r, n); - this.walk(e, i); - } - walkAtLeastOneSep(e, r, n) { - const i = fc(e, r, n); - this.walk(e, i); - } - walkMany(e, r, n) { - const i = [ - new Me({ definition: e.definition }) - ].concat(r, n); - this.walk(e, i); - } - walkManySep(e, r, n) { - const i = fc(e, r, n); - this.walk(e, i); - } - walkOr(e, r, n) { - const i = r.concat(n); - e.definition.forEach((a) => { - const s = new Ke({ definition: [a] }); - this.walk(s, i); - }); - } -} -function fc(t, e, r) { - return [ - new Me({ - definition: [ - new ae({ terminalType: t.separator }) - ].concat(t.definition) - }) - ].concat(e, r); -} -function Ci(t) { - if (t instanceof qe) - return Ci(t.referencedRule); - if (t instanceof ae) - return Qh(t); - if (Xh(t)) - return Jh(t); - if (Yh(t)) - return Zh(t); - throw Error("non exhaustive match"); -} -function Jh(t) { - let e = []; - const r = t.definition; - let n = 0, i = r.length > n, a, s = !0; - for (; i && s; ) - a = r[n], s = xa(a), e = e.concat(Ci(a)), n = n + 1, i = r.length > n; - return [...new Set(e)]; -} -function Zh(t) { - const e = t.definition.map((r) => Ci(r)); - return [...new Set(e.flat())]; -} -function Qh(t) { - return [t.terminalType]; -} -const $f = "_~IN~_"; -class ep extends rs { - constructor(e) { - super(), this.topProd = e, this.follows = {}; - } - startWalking() { - return this.walk(this.topProd), this.follows; - } - walkTerminal(e, r, n) { - } - walkProdRef(e, r, n) { - const i = rp(e.referencedRule, e.idx) + this.topProd.name, a = r.concat(n), s = new Ke({ definition: a }), o = Ci(s); - this.follows[i] = o; - } -} -function tp(t) { - const e = {}; - return t.forEach((r) => { - const n = new ep(r).startWalking(); - Object.assign(e, n); - }), e; -} -function rp(t, e) { - return t.name + e + $f; -} -let Aa = {}; -const np = new uf(); -function ns(t) { - const e = t.toString(); - if (Aa.hasOwnProperty(e)) - return Aa[e]; - { - const r = np.pattern(e); - return Aa[e] = r, r; - } -} -function ip() { - Aa = {}; -} -const Cf = "Complement Sets are not supported for first char optimization", Da = `Unable to use "first char" lexer optimizations: -`; -function ap(t, e = !1) { - try { - const r = ns(t); - return eo(r.value, {}, r.flags.ignoreCase); - } catch (r) { - if (r.message === Cf) - e && vf(`${Da} 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.`), Qs(`${Da} - 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 eo(t, e, r) { - switch (t.type) { - case "Disjunction": - for (let i = 0; i < t.value.length; i++) - eo(t.value[i], e, r); - break; - case "Alternative": - const n = t.value; - for (let i = 0; i < n.length; i++) { - const a = n[i]; - switch (a.type) { - case "EndAnchor": - // A group back reference cannot affect potential starting char. - // because if a back reference is the first production than automatically - // the group being referenced has had to come BEFORE so its codes have already been added - case "GroupBackReference": - // assertions do not affect potential starting codes - case "Lookahead": - case "NegativeLookahead": - case "Lookbehind": - case "NegativeLookbehind": - case "StartAnchor": - case "WordBoundary": - case "NonWordBoundary": - continue; - } - const s = a; - switch (s.type) { - case "Character": - Ji(s.value, e, r); - break; - case "Set": - if (s.complement === !0) - throw Error(Cf); - s.value.forEach((l) => { - if (typeof l == "number") - Ji(l, e, r); - else { - const c = l; - if (r === !0) - for (let u = c.from; u <= c.to; u++) - Ji(u, e, r); - else { - for (let u = c.from; u <= c.to && u < ii; u++) - Ji(u, e, r); - if (c.to >= ii) { - const u = c.from >= ii ? c.from : ii, d = c.to, p = Zt(u), m = Zt(d); - for (let A = p; A <= m; A++) - e[A] = A; - } - } - } - }); - break; - case "Group": - eo(s.value, e, r); - break; - /* istanbul ignore next */ - default: - throw Error("Non Exhaustive Match"); - } - const o = s.quantifier !== void 0 && s.quantifier.atLeast === 0; - if ( - // A group may be optional due to empty contents /(?:)/ - // or if everything inside it is optional /((a)?)/ - s.type === "Group" && to(s) === !1 || // If this term is not a group it may only be optional if it has an optional quantifier - s.type !== "Group" && o === !1 - ) - break; - } - break; - /* istanbul ignore next */ - default: - throw Error("non exhaustive match!"); - } - return Object.values(e); -} -function Ji(t, e, r) { - const n = Zt(t); - e[n] = n, r === !0 && sp(t, e); -} -function sp(t, e) { - const r = String.fromCharCode(t), n = r.toUpperCase(); - if (n !== r) { - const i = Zt(n.charCodeAt(0)); - e[i] = i; - } else { - const i = r.toLowerCase(); - if (i !== r) { - const a = Zt(i.charCodeAt(0)); - e[a] = a; - } - } -} -function dc(t, e) { - return t.value.find((r) => { - if (typeof r == "number") - return e.includes(r); - { - const n = r; - return e.find((i) => n.from <= i && i <= n.to) !== void 0; - } - }); -} -function to(t) { - const e = t.quantifier; - return e && e.atLeast === 0 ? !0 : t.value ? Array.isArray(t.value) ? t.value.every(to) : to(t.value) : !1; -} -class op extends es { - 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) { - this.targetCharCodes.includes(e.value) && (this.found = !0); - } - visitSet(e) { - e.complement ? dc(e, this.targetCharCodes) === void 0 && (this.found = !0) : dc(e, this.targetCharCodes) !== void 0 && (this.found = !0); - } -} -function xl(t, e) { - if (e instanceof RegExp) { - const r = ns(e), n = new op(t); - return n.visit(r), n.found; - } else { - for (const r of e) { - const n = r.charCodeAt(0); - if (t.includes(n)) - return !0; - } - return !1; - } -} -const Nr = "PATTERN", ni = "defaultMode", Zi = "modes"; -function lp(t, e) { - e = Object.assign({ safeMode: !1, positionTracking: "full", lineTerminatorCharacters: ["\r", ` -`], tracer: (S, C) => C() }, e); - const r = e.tracer; - r("initCharCodeToOptimizedIndexMap", () => { - Pp(); - }); - let n; - r("Reject Lexer.NA", () => { - n = t.filter((S) => S[Nr] !== We.NA); - }); - let i = !1, a; - r("Transform Patterns", () => { - i = !1, a = n.map((S) => { - const C = S[Nr]; - if (C instanceof RegExp) { - const P = C.source; - return P.length === 1 && // only these regExp meta characters which can appear in a length one regExp - P !== "^" && P !== "$" && P !== "." && !C.ignoreCase ? P : P.length === 2 && P[0] === "\\" && // not a meta character - ![ - "d", - "D", - "s", - "S", - "t", - "r", - "n", - "t", - "0", - "c", - "b", - "B", - "f", - "v", - "w", - "W" - ].includes(P[1]) ? P[1] : hc(C); - } else { - if (typeof C == "function") - return i = !0, { exec: C }; - if (typeof C == "object") - return i = !0, C; - if (typeof C == "string") { - if (C.length === 1) - return C; - { - const P = C.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&"), W = new RegExp(P); - return hc(W); - } - } else - throw Error("non exhaustive match"); - } - }); - }); - let s, o, l, c, u; - r("misc mapping", () => { - s = n.map((S) => S.tokenTypeIdx), o = n.map((S) => { - const C = S.GROUP; - if (C !== We.SKIPPED) { - if (typeof C == "string") - return C; - if (C === void 0) - return !1; - throw Error("non exhaustive match"); - } - }), l = n.map((S) => { - const C = S.LONGER_ALT; - if (C) - return Array.isArray(C) ? C.map((W) => n.indexOf(W)) : [n.indexOf(C)]; - }), c = n.map((S) => S.PUSH_MODE), u = n.map((S) => Object.hasOwn(S, "POP_MODE")); - }); - let d; - r("Line Terminator Handling", () => { - const S = wf(e.lineTerminatorCharacters); - d = n.map((C) => !1), e.positionTracking !== "onlyOffset" && (d = n.map((C) => Object.hasOwn(C, "LINE_BREAKS") ? !!C.LINE_BREAKS : kf(C, S) === !1 && xl(S, C.PATTERN))); - }); - let p, m, A, b; - r("Misc Mapping #2", () => { - p = n.map(Sf), m = a.map(Np), A = n.reduce((S, C) => { - const P = C.GROUP; - return typeof P == "string" && P !== We.SKIPPED && (S[P] = []), S; - }, {}), b = a.map((S, C) => ({ - pattern: a[C], - longerAlt: l[C], - canLineTerminator: d[C], - isCustom: p[C], - short: m[C], - group: o[C], - push: c[C], - pop: u[C], - tokenTypeIdx: s[C], - tokenType: n[C] - })); - }); - let I = !0, k = []; - return e.safeMode || r("First Char Optimization", () => { - k = n.reduce((S, C, P) => { - if (typeof C.PATTERN == "string") { - const W = C.PATTERN.charCodeAt(0), B = Zt(W); - Rs(S, B, b[P]); - } else if (Array.isArray(C.START_CHARS_HINT)) { - let W; - C.START_CHARS_HINT.forEach((B) => { - const H = typeof B == "string" ? B.charCodeAt(0) : B, ne = Zt(H); - W !== ne && (W = ne, Rs(S, ne, b[P])); - }); - } else if (C.PATTERN instanceof RegExp) - if (C.PATTERN.unicode) - I = !1, e.ensureOptimizations && Qs(`${Da} Unable to analyze < ${C.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 { - const W = ap(C.PATTERN, e.ensureOptimizations); - W.length === 0 && (I = !1), W.forEach((B) => { - Rs(S, B, b[P]); - }); - } - else - e.ensureOptimizations && Qs(`${Da} TokenType: <${C.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`), I = !1; - return S; - }, []); - }), { - emptyGroups: A, - patternIdxToConfig: b, - charCodeToPatternIdxToConfig: k, - hasCustom: i, - canBeOptimized: I - }; -} -function cp(t, e) { - let r = []; - const n = fp(t); - r = r.concat(n.errors); - const i = dp(n.valid), a = i.valid; - return r = r.concat(i.errors), r = r.concat(up(a)), r = r.concat(vp(a)), r = r.concat(Ep(a, e)), r = r.concat(Ap(a)), r; -} -function up(t) { - let e = []; - const r = t.filter((n) => n[Nr] instanceof RegExp); - return e = e.concat(pp(r)), e = e.concat(yp(r)), e = e.concat(Tp(r)), e = e.concat(Rp(r)), e = e.concat(mp(r)), e; -} -function fp(t) { - const e = t.filter((i) => !Object.hasOwn(i, Nr)), r = e.map((i) => ({ - message: "Token Type: ->" + i.name + "<- missing static 'PATTERN' property", - type: Re.MISSING_PATTERN, - tokenTypes: [i] - })), n = t.filter((i) => !e.includes(i)); - return { errors: r, valid: n }; -} -function dp(t) { - const e = t.filter((i) => { - const a = i[Nr]; - return !(a instanceof RegExp) && typeof a != "function" && !Object.hasOwn(a, "exec") && typeof a != "string"; - }), r = e.map((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: Re.INVALID_PATTERN, - tokenTypes: [i] - })), n = t.filter((i) => !e.includes(i)); - return { errors: r, valid: n }; -} -const hp = /[^\\][$]/; -function pp(t) { - class e extends es { - constructor() { - super(...arguments), this.found = !1; - } - visitEndAnchor(a) { - this.found = !0; - } - } - return t.filter((i) => { - const a = i.PATTERN; - try { - const s = ns(a), o = new e(); - return o.visit(s), o.found; - } catch { - return hp.test(a.source); - } - }).map((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: Re.EOI_ANCHOR_FOUND, - tokenTypes: [i] - })); -} -function mp(t) { - return t.filter((n) => n.PATTERN.test("")).map((n) => ({ - message: "Token Type: ->" + n.name + "<- static 'PATTERN' must not match an empty string", - type: Re.EMPTY_MATCH_PATTERN, - tokenTypes: [n] - })); -} -const gp = /[^\\[][\^]|^\^/; -function yp(t) { - class e extends es { - constructor() { - super(...arguments), this.found = !1; - } - visitStartAnchor(a) { - this.found = !0; - } - } - return t.filter((i) => { - const a = i.PATTERN; - try { - const s = ns(a), o = new e(); - return o.visit(s), o.found; - } catch { - return gp.test(a.source); - } - }).map((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: Re.SOI_ANCHOR_FOUND, - tokenTypes: [i] - })); -} -function Tp(t) { - return t.filter((n) => { - const i = n[Nr]; - return i instanceof RegExp && (i.multiline || i.global); - }).map((n) => ({ - message: "Token Type: ->" + n.name + "<- static 'PATTERN' may NOT contain global('g') or multiline('m')", - type: Re.UNSUPPORTED_FLAGS_FOUND, - tokenTypes: [n] - })); -} -function Rp(t) { - const e = []; - let r = t.map((a) => t.reduce((s, o) => (a.PATTERN.source === o.PATTERN.source && !e.includes(o) && o.PATTERN !== We.NA && (e.push(o), s.push(o)), s), [])); - return r = r.filter(Boolean), r.filter((a) => a.length > 1).map((a) => { - const s = a.map((l) => l.name); - return { - message: `The same RegExp pattern ->${a[0].PATTERN}<-has been used in all of the following Token Types: ${s.join(", ")} <-`, - type: Re.DUPLICATE_PATTERNS_FOUND, - tokenTypes: a - }; - }); -} -function vp(t) { - return t.filter((n) => { - if (!Object.hasOwn(n, "GROUP")) - return !1; - const i = n.GROUP; - return i !== We.SKIPPED && i !== We.NA && typeof i != "string"; - }).map((n) => ({ - message: "Token Type: ->" + n.name + "<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String", - type: Re.INVALID_GROUP_TYPE_FOUND, - tokenTypes: [n] - })); -} -function Ep(t, e) { - return t.filter((i) => i.PUSH_MODE !== void 0 && !e.includes(i.PUSH_MODE)).map((i) => ({ - message: `Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`, - type: Re.PUSH_MODE_DOES_NOT_EXIST, - tokenTypes: [i] - })); -} -function Ap(t) { - const e = [], r = t.reduce((n, i, a) => { - const s = i.PATTERN; - return s === We.NA || (typeof s == "string" ? n.push({ str: s, idx: a, tokenType: i }) : s instanceof RegExp && Cp(s) && n.push({ str: s.source, idx: a, tokenType: i })), n; - }, []); - return t.forEach((n, i) => { - r.forEach(({ str: a, idx: s, tokenType: o }) => { - if (i < s && $p(a, n.PATTERN)) { - const l = `Token: ->${o.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: l, - type: Re.UNREACHABLE_PATTERN, - tokenTypes: [n, o] - }); - } - }); - }), e; -} -function $p(t, e) { - if (e instanceof RegExp) { - if (Sp(e)) - return !1; - const r = e.exec(t); - return r !== null && r.index === 0; - } else { - if (typeof e == "function") - return e(t, 0, [], {}); - if (Object.hasOwn(e, "exec")) - return e.exec(t, 0, [], {}); - if (typeof e == "string") - return e === t; - throw Error("non exhaustive match"); - } -} -function Cp(t) { - return [ - ".", - "\\", - "[", - "]", - "|", - "^", - "$", - "(", - ")", - "?", - "*", - "+", - "{" - ].find((r) => t.source.indexOf(r) !== -1) === void 0; -} -function Sp(t) { - return /(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition -`, - type: Re.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE - }), Object.hasOwn(t, Zi) || n.push({ - message: "A MultiMode Lexer cannot be initialized without a <" + Zi + `> property in its definition -`, - type: Re.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY - }), Object.hasOwn(t, Zi) && Object.hasOwn(t, ni) && !Object.hasOwn(t.modes, t.defaultMode) && n.push({ - message: `A MultiMode Lexer cannot be initialized with a ${ni}: <${t.defaultMode}>which does not exist -`, - type: Re.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST - }), Object.hasOwn(t, Zi) && Object.keys(t.modes).forEach((i) => { - const a = t.modes[i]; - a.forEach((s, o) => { - s === void 0 ? n.push({ - message: `A Lexer cannot be initialized using an undefined Token Type. Mode:<${i}> at index: <${o}> -`, - type: Re.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED - }) : Object.hasOwn(s, "LONGER_ALT") && (Array.isArray(s.LONGER_ALT) ? s.LONGER_ALT : [s.LONGER_ALT]).forEach((c) => { - c !== void 0 && !a.includes(c) && n.push({ - message: `A MultiMode Lexer cannot be initialized with a longer_alt <${c.name}> on token <${s.name}> outside of mode <${i}> -`, - type: Re.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE - }); - }); - }); - }), n; -} -function wp(t, e, r) { - const n = []; - let i = !1; - const s = Object.values(t.modes || {}).flat().filter(Boolean).filter((l) => l[Nr] !== We.NA), o = wf(r); - return e && s.forEach((l) => { - const c = kf(l, o); - if (c !== !1) { - const d = { - message: Ip(l, c), - type: c.issue, - tokenType: l - }; - n.push(d); - } else - Object.hasOwn(l, "LINE_BREAKS") ? l.LINE_BREAKS === !0 && (i = !0) : xl(o, l.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: Re.NO_LINE_BREAKS_FLAGS - }), n; -} -function bp(t) { - const e = {}; - return Object.keys(t).forEach((n) => { - const i = t[n]; - if (Array.isArray(i)) - e[n] = []; - else - throw Error("non exhaustive match"); - }), e; -} -function Sf(t) { - const e = t.PATTERN; - if (e instanceof RegExp) - return !1; - if (typeof e == "function") - return !0; - if (Object.hasOwn(e, "exec")) - return !0; - if (typeof e == "string") - return !1; - throw Error("non exhaustive match"); -} -function Np(t) { - return typeof t == "string" && t.length === 1 ? t.charCodeAt(0) : !1; -} -const _p = { - // implements /\n|\r\n?/g.test - test: function(t) { - const e = t.length; - for (let r = this.lastIndex; r < e; r++) { - const n = t.charCodeAt(r); - if (n === 10) - return this.lastIndex = r + 1, !0; - if (n === 13) - return t.charCodeAt(r + 1) === 10 ? this.lastIndex = r + 2 : this.lastIndex = r + 1, !0; - } - return !1; - }, - lastIndex: 0 -}; -function kf(t, e) { - if (Object.hasOwn(t, "LINE_BREAKS")) - return !1; - if (t.PATTERN instanceof RegExp) { - try { - xl(e, t.PATTERN); - } catch (r) { - return { - issue: Re.IDENTIFY_TERMINATOR, - errMsg: r.message - }; - } - return !1; - } else { - if (typeof t.PATTERN == "string") - return !1; - if (Sf(t)) - return { issue: Re.CUSTOM_LINE_BREAK }; - throw Error("non exhaustive match"); - } -} -function Ip(t, e) { - if (e.issue === Re.IDENTIFY_TERMINATOR) - return `Warning: unable to identify line terminator usage in pattern. - The problem is in the <${t.name}> Token Type - Root cause: ${e.errMsg}. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`; - if (e.issue === Re.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 wf(t) { - return t.map((r) => typeof r == "string" ? r.charCodeAt(0) : r); -} -function Rs(t, e, r) { - t[e] === void 0 ? t[e] = [r] : t[e].push(r); -} -const ii = 256; -let $a = []; -function Zt(t) { - return t < ii ? t : $a[t]; -} -function Pp() { - if ($a.length === 0) { - $a = new Array(65536); - for (let t = 0; t < 65536; t++) - $a[t] = t > 255 ? 255 + ~~(t / 255) : t; - } -} -function Si(t, e) { - const r = t.tokenTypeIdx; - return r === e.tokenTypeIdx ? !0 : e.isParent === !0 && e.categoryMatchesMap[r] === !0; -} -function Ma(t, e) { - return t.tokenTypeIdx === e.tokenTypeIdx; -} -let pc = 1; -const bf = {}; -function ki(t) { - const e = Op(t); - Lp(e), Dp(e), xp(e), e.forEach((r) => { - r.isParent = r.categoryMatches.length > 0; - }); -} -function Op(t) { - let e = [...t], r = t, n = !0; - for (; n; ) { - r = r.map((a) => a.CATEGORIES).flat().filter(Boolean); - const i = r.filter((a) => !e.includes(a)); - e = e.concat(i), i.length === 0 ? n = !1 : r = i; - } - return e; -} -function Lp(t) { - t.forEach((e) => { - _f(e) || (bf[pc] = e, e.tokenTypeIdx = pc++), mc(e) && !Array.isArray(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), mc(e) || (e.CATEGORIES = []), Mp(e) || (e.categoryMatches = []), Fp(e) || (e.categoryMatchesMap = {}); - }); -} -function xp(t) { - t.forEach((e) => { - e.categoryMatches = [], Object.keys(e.categoryMatchesMap).forEach((r) => { - e.categoryMatches.push(bf[r].tokenTypeIdx); - }); - }); -} -function Dp(t) { - t.forEach((e) => { - Nf([], e); - }); -} -function Nf(t, e) { - t.forEach((r) => { - e.categoryMatchesMap[r.tokenTypeIdx] = !0; - }), e.CATEGORIES.forEach((r) => { - const n = t.concat(e); - n.includes(r) || Nf(n, r); - }); -} -function _f(t) { - return Object.hasOwn(t ?? {}, "tokenTypeIdx"); -} -function mc(t) { - return Object.hasOwn(t ?? {}, "CATEGORIES"); -} -function Mp(t) { - return Object.hasOwn(t ?? {}, "categoryMatches"); -} -function Fp(t) { - return Object.hasOwn(t ?? {}, "categoryMatchesMap"); -} -function Gp(t) { - return Object.hasOwn(t ?? {}, "tokenTypeIdx"); -} -const ro = { - buildUnableToPopLexerModeMessage(t) { - return `Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`; - }, - buildUnexpectedCharactersMessage(t, e, r, n, i, a) { - return `unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${r} characters.`; - } -}; -var Re; -(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"; -})(Re || (Re = {})); -const ai = { - deferDefinitionErrorsHandling: !1, - positionTracking: "full", - lineTerminatorsPattern: /\n|\r\n?/g, - lineTerminatorCharacters: [` -`, "\r"], - ensureOptimizations: !1, - safeMode: !1, - errorMessageProvider: ro, - traceInitPerf: !1, - skipValidations: !1, - recoveryEnabled: !0 -}; -Object.freeze(ai); -class We { - constructor(e, r = ai) { - 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, a) => { - if (this.traceInitPerf === !0) { - this.traceInitIndent++; - const s = new Array(this.traceInitIndent + 1).join(" "); - this.traceInitIndent < this.traceInitMaxIdent && console.log(`${s}--> <${i}>`); - const { time: o, value: l } = Ef(a), c = o > 10 ? console.warn : console.log; - return this.traceInitIndent < this.traceInitMaxIdent && c(`${s}<-- <${i}> time: ${o}ms`), this.traceInitIndent--, l; - } else - return a(); - }, typeof r == "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 = Object.assign({}, ai, r); - const 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, a = !0; - this.TRACE_INIT("Lexer Config handling", () => { - if (this.config.lineTerminatorsPattern === ai.lineTerminatorsPattern) - this.config.lineTerminatorsPattern = _p; - else if (this.config.lineTerminatorCharacters === ai.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 (r.safeMode && r.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), Array.isArray(e) ? i = { - modes: { defaultMode: [...e] }, - defaultMode: ni - } : (a = !1, i = Object.assign({}, e)); - }), this.config.skipValidations === !1 && (this.TRACE_INIT("performRuntimeChecks", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(kp(i, this.trackStartLines, this.config.lineTerminatorCharacters)); - }), this.TRACE_INIT("performWarningRuntimeChecks", () => { - this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(wp(i, this.trackStartLines, this.config.lineTerminatorCharacters)); - })), i.modes = i.modes ? i.modes : {}, Object.entries(i.modes).forEach(([o, l]) => { - i.modes[o] = l.filter((c) => c !== void 0); - }); - const s = Object.keys(i.modes); - if (Object.entries(i.modes).forEach(([o, l]) => { - this.TRACE_INIT(`Mode: <${o}> processing`, () => { - if (this.modes.push(o), this.config.skipValidations === !1 && this.TRACE_INIT("validatePatterns", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(cp(l, s)); - }), this.lexerDefinitionErrors.length === 0) { - ki(l); - let c; - this.TRACE_INIT("analyzeTokenTypes", () => { - c = lp(l, { - lineTerminatorCharacters: this.config.lineTerminatorCharacters, - positionTracking: r.positionTracking, - ensureOptimizations: r.ensureOptimizations, - safeMode: r.safeMode, - tracer: this.TRACE_INIT - }); - }), this.patternIdxToConfig[o] = c.patternIdxToConfig, this.charCodeToPatternIdxToConfig[o] = c.charCodeToPatternIdxToConfig, this.emptyGroups = Object.assign({}, this.emptyGroups, c.emptyGroups), this.hasCustom = c.hasCustom || this.hasCustom, this.canModeBeOptimized[o] = c.canBeOptimized; - } - }); - }), this.defaultMode = i.defaultMode, this.lexerDefinitionErrors.length > 0 && !this.config.deferDefinitionErrorsHandling) { - const l = this.lexerDefinitionErrors.map((c) => c.message).join(`----------------------- -`); - throw new Error(`Errors detected in definition of Lexer: -` + l); - } - this.lexerDefinitionWarning.forEach((o) => { - vf(o.message); - }), this.TRACE_INIT("Choosing sub-methods implementations", () => { - if (a && (this.handleModes = () => { - }), this.trackStartLines === !1 && (this.computeNewColumn = (o) => o), this.trackEndLines === !1 && (this.updateTokenEndLineColumnLocation = () => { - }), /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", () => { - const o = Object.entries(this.canModeBeOptimized).reduce((l, [c, u]) => (u === !1 && l.push(c), l), []); - if (r.ensureOptimizations && o.length > 0) - 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", () => { - ip(); - }), this.TRACE_INIT("toFastProperties", () => { - Af(this); - }); - }); - } - tokenize(e, r = this.defaultMode) { - if (this.lexerDefinitionErrors.length > 0) { - const i = this.lexerDefinitionErrors.map((a) => a.message).join(`----------------------- -`); - throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer: -` + i); - } - return this.tokenizeInternal(e, r); - } - // There is quite a bit of duplication between this and "tokenizeInternalLazy" - // This is intentional due to performance considerations. - // this method also used quite a bit of `!` none null assertions because it is too optimized - // for `tsc` to always understand it is "safe" - tokenizeInternal(e, r) { - let n, i, a, s, o, l, c, u, d, p, m, A, b, I, k; - const S = e, C = S.length; - let P = 0, W = 0; - const B = this.hasCustom ? 0 : Math.floor(e.length / 10), H = new Array(B), ne = []; - let se = this.trackStartLines ? 1 : void 0, oe = this.trackStartLines ? 1 : void 0; - const N = bp(this.emptyGroups), T = this.trackStartLines, g = this.config.lineTerminatorsPattern; - let $ = 0, y = [], R = []; - const E = [], L = []; - Object.freeze(L); - let D = !1; - const x = (z) => { - if (E.length === 1 && // if we have both a POP_MODE and a PUSH_MODE this is in-fact a "transition" - // So no error should occur. - z.tokenType.PUSH_MODE === void 0) { - const Q = this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(z); - ne.push({ - offset: z.startOffset, - line: z.startLine, - column: z.startColumn, - length: z.image.length, - message: Q - }); - } else { - E.pop(); - const Q = E.at(-1); - y = this.patternIdxToConfig[Q], R = this.charCodeToPatternIdxToConfig[Q], $ = y.length; - const _e = this.canModeBeOptimized[Q] && this.config.safeMode === !1; - R && _e ? D = !0 : D = !1; - } - }; - function j(z) { - E.push(z), R = this.charCodeToPatternIdxToConfig[z], y = this.patternIdxToConfig[z], $ = y.length, $ = y.length; - const Q = this.canModeBeOptimized[z] && this.config.safeMode === !1; - R && Q ? D = !0 : D = !1; - } - j.call(this, r); - let F; - const te = this.config.recoveryEnabled; - for (; P < C; ) { - l = null, d = -1; - const z = S.charCodeAt(P); - let Q; - if (D) { - const me = Zt(z), le = R[me]; - Q = le !== void 0 ? le : L; - } else - Q = y; - const _e = Q.length; - for (n = 0; n < _e; n++) { - F = Q[n]; - const me = F.pattern; - c = null; - const le = F.short; - if (le !== !1 ? z === le && (d = 1, l = me) : F.isCustom === !0 ? (k = me.exec(S, P, H, N), k !== null ? (l = k[0], d = l.length, k.payload !== void 0 && (c = k.payload)) : l = null) : (me.lastIndex = P, d = this.matchLength(me, e, P)), d !== -1) { - if (o = F.longerAlt, o !== void 0) { - l = e.substring(P, P + d); - const we = o.length; - for (a = 0; a < we; a++) { - const Ie = y[o[a]], Ce = Ie.pattern; - if (u = null, Ie.isCustom === !0 ? (k = Ce.exec(S, P, H, N), k !== null ? (s = k[0], k.payload !== void 0 && (u = k.payload)) : s = null) : (Ce.lastIndex = P, s = this.match(Ce, e, P)), s && s.length > l.length) { - l = s, d = s.length, c = u, F = Ie; - break; - } - } - } - break; - } - } - if (d !== -1) { - if (p = F.group, p !== void 0 && (l = l !== null ? l : e.substring(P, P + d), m = F.tokenTypeIdx, A = this.createTokenInstance(l, P, m, F.tokenType, se, oe, d), this.handlePayload(A, c), p === !1 ? W = this.addToken(H, W, A) : N[p].push(A)), T === !0 && F.canLineTerminator === !0) { - let me = 0, le, we; - g.lastIndex = 0; - do - l = l !== null ? l : e.substring(P, P + d), le = g.test(l), le === !0 && (we = g.lastIndex - 1, me++); - while (le === !0); - me !== 0 ? (se = se + me, oe = d - we, this.updateTokenEndLineColumnLocation(A, p, we, me, se, oe, d)) : oe = this.computeNewColumn(oe, d); - } else - oe = this.computeNewColumn(oe, d); - P = P + d, this.handleModes(F, x, j, A); - } else { - const me = P, le = se, we = oe; - let Ie = te === !1; - for (; Ie === !1 && P < C; ) - for (P++, i = 0; i < $; i++) { - const Ce = y[i], Y = Ce.pattern, Xe = Ce.short; - if (Xe !== !1 ? S.charCodeAt(P) === Xe && (Ie = !0) : Ce.isCustom === !0 ? Ie = Y.exec(S, P, H, N) !== null : (Y.lastIndex = P, Ie = Y.exec(e) !== null), Ie === !0) - break; - } - if (b = P - me, oe = this.computeNewColumn(oe, b), I = this.config.errorMessageProvider.buildUnexpectedCharactersMessage(S, me, b, le, we, E.at(-1)), ne.push({ - offset: me, - line: le, - column: we, - length: b, - message: I - }), te === !1) - break; - } - } - return this.hasCustom || (H.length = W), { - tokens: H, - groups: N, - errors: ne - }; - } - handleModes(e, r, n, i) { - if (e.pop === !0) { - const a = e.push; - r(i), a !== void 0 && n.call(this, a); - } else e.push !== void 0 && n.call(this, e.push); - } - // TODO: decrease this under 600 characters? inspect stripping comments option in TSC compiler - updateTokenEndLineColumnLocation(e, r, n, i, a, s, o) { - let l, c; - r !== void 0 && (l = n === o - 1, c = l ? -1 : 0, i === 1 && l === !0 || (e.endLine = a + c, e.endColumn = s - 1 + -c)); - } - computeNewColumn(e, r) { - return e + r; - } - createOffsetOnlyToken(e, r, n, i) { - return { - image: e, - startOffset: r, - tokenTypeIdx: n, - tokenType: i - }; - } - createStartOnlyToken(e, r, n, i, a, s) { - return { - image: e, - startOffset: r, - startLine: a, - startColumn: s, - tokenTypeIdx: n, - tokenType: i - }; - } - createFullToken(e, r, n, i, a, s, o) { - return { - image: e, - startOffset: r, - endOffset: r + o - 1, - startLine: a, - endLine: a, - startColumn: s, - endColumn: s + o - 1, - tokenTypeIdx: n, - tokenType: i - }; - } - addTokenUsingPush(e, r, n) { - return e.push(n), r; - } - addTokenUsingMemberAccess(e, r, n) { - return e[r] = n, r++, r; - } - handlePayloadNoCustom(e, r) { - } - handlePayloadWithCustom(e, r) { - r !== null && (e.payload = r); - } - match(e, r, n) { - return e.test(r) === !0 ? r.substring(n, e.lastIndex) : null; - } - matchLength(e, r, n) { - return e.test(r) === !0 ? e.lastIndex - n : -1; - } -} -We.SKIPPED = "This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace."; -We.NA = /NOT_APPLICABLE/; -function nn(t) { - return If(t) ? t.LABEL : t.name; -} -function If(t) { - return typeof t.LABEL == "string" && t.LABEL !== ""; -} -const jp = "parent", gc = "categories", yc = "label", Tc = "group", Rc = "push_mode", vc = "pop_mode", Ec = "longer_alt", Ac = "line_breaks", $c = "start_chars_hint"; -function Pf(t) { - return zp(t); -} -function zp(t) { - const e = t.pattern, r = {}; - if (r.name = t.name, e !== void 0 && (r.PATTERN = e), Object.hasOwn(t, jp)) - throw `The parent property is no longer supported. -See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`; - return Object.hasOwn(t, gc) && (r.CATEGORIES = t[gc]), ki([r]), Object.hasOwn(t, yc) && (r.LABEL = t[yc]), Object.hasOwn(t, Tc) && (r.GROUP = t[Tc]), Object.hasOwn(t, vc) && (r.POP_MODE = t[vc]), Object.hasOwn(t, Rc) && (r.PUSH_MODE = t[Rc]), Object.hasOwn(t, Ec) && (r.LONGER_ALT = t[Ec]), Object.hasOwn(t, Ac) && (r.LINE_BREAKS = t[Ac]), Object.hasOwn(t, $c) && (r.START_CHARS_HINT = t[$c]), r; -} -const Qt = Pf({ name: "EOF", pattern: We.NA }); -ki([Qt]); -function Dl(t, e, r, n, i, a, s, o) { - return { - image: e, - startOffset: r, - endOffset: n, - startLine: i, - endLine: a, - startColumn: s, - endColumn: o, - tokenTypeIdx: t.tokenTypeIdx, - tokenType: t - }; -} -function Of(t, e) { - return Si(t, e); -} -const tn = { - buildMismatchTokenMessage({ expected: t, actual: e, previous: r, ruleName: n }) { - return `Expecting ${If(t) ? `--> ${nn(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: r, customUserDescription: n, ruleName: i }) { - const a = "Expecting: ", o = ` -but found: '` + e[0].image + "'"; - if (n) - return a + n + o; - { - const d = `one of these possible Token sequences: -${t.reduce((p, m) => p.concat(m), []).map((p) => `[${p.map((m) => nn(m)).join(", ")}]`).map((p, m) => ` ${m + 1}. ${p}`).join(` -`)}`; - return a + d + o; - } - }, - buildEarlyExitMessage({ expectedIterationPaths: t, actual: e, customUserDescription: r, ruleName: n }) { - const i = "Expecting: ", s = ` -but found: '` + e[0].image + "'"; - if (r) - return i + r + s; - { - const l = `expecting at least one iteration which starts with one of these possible Token sequences:: - <${t.map((c) => `[${c.map((u) => nn(u)).join(",")}]`).join(" ,")}>`; - return i + l + s; - } - } -}; -Object.freeze(tn); -const Up = { - buildRuleNotFoundError(t, e) { - return "Invalid grammar, reference to a rule which is not defined: ->" + e.nonTerminalName + `<- -inside top level rule: ->` + t.name + "<-"; - } -}, Cr = { - buildDuplicateFoundError(t, e) { - function r(u) { - return u instanceof ae ? u.terminalType.name : u instanceof qe ? u.nonTerminalName : ""; - } - const n = t.name, i = e[0], a = i.idx, s = mt(i), o = r(i), l = a > 0; - let c = `->${s}${l ? a : ""}<- ${o ? `with argument: ->${o}<-` : ""} - 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 c = c.replace(/[ \t]+/g, " "), c = c.replace(/\s\s+/g, ` -`), c; - }, - 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) { - const e = t.prefixPath.map((i) => nn(i)).join(", "), r = 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) { - const e = t.alternation.idx === 0 ? "" : t.alternation.idx, r = t.prefixPath.length === 0; - let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(" ,")}> in inside <${t.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 { - const i = t.prefixPath.map((a) => nn(a)).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 = mt(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.`; - }, - // TODO: remove - `errors_public` from nyc.config.js exclude - // once this method is fully removed from this file - 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) { - const e = t.topLevelRule.name, r = t.leftRecursionPath.map((a) => a.name), n = `${e} --> ${r.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.`; - }, - // TODO: remove - `errors_public` from nyc.config.js exclude - // once this method is fully removed from this file - buildInvalidRuleNameError(t) { - return "deprecated"; - }, - buildDuplicateRuleNameError(t) { - let e; - return t.topLevelRule instanceof dn ? e = t.topLevelRule.name : e = t.topLevelRule, `Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`; - } -}; -function qp(t, e) { - const r = new Bp(t, e); - return r.resolveRefs(), r.errors; -} -class Bp extends hn { - constructor(e, r) { - super(), this.nameToTopRule = e, this.errMsgProvider = r, this.errors = []; - } - resolveRefs() { - Object.values(this.nameToTopRule).forEach((e) => { - this.currTopLevel = e, e.accept(this); - }); - } - visitNonTerminal(e) { - const r = this.nameToTopRule[e.nonTerminalName]; - if (r) - e.referencedRule = r; - else { - const n = this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel, e); - this.errors.push({ - message: n, - type: Be.UNRESOLVED_SUBRULE_REF, - ruleName: this.currTopLevel.name, - unresolvedRefName: e.nonTerminalName - }); - } - } -} -class Wp extends rs { - constructor(e, r) { - super(), this.topProd = e, this.path = r, 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 = [...this.path.ruleStack].reverse(), this.occurrenceStack = [...this.path.occurrenceStack].reverse(), this.ruleStack.pop(), this.occurrenceStack.pop(), this.updateExpectedNext(), this.walk(this.topProd), this.possibleTokTypes; - } - walk(e, r = []) { - this.found || super.walk(e, r); - } - walkProdRef(e, r, n) { - if (e.referencedRule.name === this.nextProductionName && e.idx === this.nextProductionOccurrence) { - const i = r.concat(n); - this.updateExpectedNext(), this.walk(e.referencedRule, i); - } - } - updateExpectedNext() { - this.ruleStack.length === 0 ? (this.nextProductionName = "", this.nextProductionOccurrence = 0, this.isAtEndOfPath = !0) : (this.nextProductionName = this.ruleStack.pop(), this.nextProductionOccurrence = this.occurrenceStack.pop()); - } -} -class Kp extends Wp { - constructor(e, r) { - super(e, r), this.path = r, this.nextTerminalName = "", this.nextTerminalOccurrence = 0, this.nextTerminalName = this.path.lastTok.name, this.nextTerminalOccurrence = this.path.lastTokOccurrence; - } - walkTerminal(e, r, n) { - if (this.isAtEndOfPath && e.terminalType.name === this.nextTerminalName && e.idx === this.nextTerminalOccurrence && !this.found) { - const i = r.concat(n), a = new Ke({ definition: i }); - this.possibleTokTypes = Ci(a), this.found = !0; - } - } -} -class is extends rs { - constructor(e, r) { - super(), this.topRule = e, this.occurrence = r, this.result = { - token: void 0, - occurrence: void 0, - isEndOfRule: void 0 - }; - } - startWalking() { - return this.walk(this.topRule), this.result; - } -} -class Vp extends is { - walkMany(e, r, n) { - if (e.idx === this.occurrence) { - const i = r.concat(n)[0]; - this.result.isEndOfRule = i === void 0, i instanceof ae && (this.result.token = i.terminalType, this.result.occurrence = i.idx); - } else - super.walkMany(e, r, n); - } -} -class Cc extends is { - walkManySep(e, r, n) { - if (e.idx === this.occurrence) { - const i = r.concat(n)[0]; - this.result.isEndOfRule = i === void 0, i instanceof ae && (this.result.token = i.terminalType, this.result.occurrence = i.idx); - } else - super.walkManySep(e, r, n); - } -} -class Hp extends is { - walkAtLeastOne(e, r, n) { - if (e.idx === this.occurrence) { - const i = r.concat(n)[0]; - this.result.isEndOfRule = i === void 0, i instanceof ae && (this.result.token = i.terminalType, this.result.occurrence = i.idx); - } else - super.walkAtLeastOne(e, r, n); - } -} -class Sc extends is { - walkAtLeastOneSep(e, r, n) { - if (e.idx === this.occurrence) { - const i = r.concat(n)[0]; - this.result.isEndOfRule = i === void 0, i instanceof ae && (this.result.token = i.terminalType, this.result.occurrence = i.idx); - } else - super.walkAtLeastOneSep(e, r, n); - } -} -function no(t, e, r = []) { - r = [...r]; - let n = [], i = 0; - function a(o) { - return o.concat(t.slice(i + 1)); - } - function s(o) { - const l = no(a(o), e, r); - return n.concat(l); - } - for (; r.length < e && i < t.length; ) { - const o = t[i]; - if (o instanceof Ke) - return s(o.definition); - if (o instanceof qe) - return s(o.definition); - if (o instanceof Me) - n = s(o.definition); - else if (o instanceof et) { - const l = o.definition.concat([ - new Te({ - definition: o.definition - }) - ]); - return s(l); - } else if (o instanceof tt) { - const l = [ - new Ke({ definition: o.definition }), - new Te({ - definition: [new ae({ terminalType: o.separator })].concat(o.definition) - }) - ]; - return s(l); - } else if (o instanceof Ve) { - const l = o.definition.concat([ - new Te({ - definition: [new ae({ terminalType: o.separator })].concat(o.definition) - }) - ]); - n = s(l); - } else if (o instanceof Te) { - const l = o.definition.concat([ - new Te({ - definition: o.definition - }) - ]); - n = s(l); - } else { - if (o instanceof He) - return o.definition.forEach((l) => { - l.definition.length !== 0 && (n = s(l.definition)); - }), n; - if (o instanceof ae) - r.push(o.terminalType); - else - throw Error("non exhaustive match"); - } - i++; - } - return n.push({ - partialPath: r, - suffixDef: t.slice(i) - }), n; -} -function Xp(t, e, r, n) { - const i = "EXIT_NONE_TERMINAL", a = [i], s = "EXIT_ALTERNATIVE"; - let o = !1; - const l = e.length, c = l - n - 1, u = [], d = []; - for (d.push({ - idx: -1, - def: t, - ruleStack: [], - occurrenceStack: [] - }); d.length !== 0; ) { - const p = d.pop(); - if (p === s) { - o && d.at(-1).idx <= c && d.pop(); - continue; - } - const m = p.def, A = p.idx, b = p.ruleStack, I = p.occurrenceStack; - if (m.length === 0) - continue; - const k = m[0]; - if (k === i) { - const S = { - idx: A, - def: m.slice(1), - ruleStack: b.slice(0, -1), - occurrenceStack: I.slice(0, -1) - }; - d.push(S); - } else if (k instanceof ae) - if (A < l - 1) { - const S = A + 1, C = e[S]; - if (r(C, k.terminalType)) { - const P = { - idx: S, - def: m.slice(1), - ruleStack: b, - occurrenceStack: I - }; - d.push(P); - } - } else if (A === l - 1) - u.push({ - nextTokenType: k.terminalType, - nextTokenOccurrence: k.idx, - ruleStack: b, - occurrenceStack: I - }), o = !0; - else - throw Error("non exhaustive match"); - else if (k instanceof qe) { - const S = [...b]; - S.push(k.nonTerminalName); - const C = [...I]; - C.push(k.idx); - const P = { - idx: A, - def: k.definition.concat(a, m.slice(1)), - ruleStack: S, - occurrenceStack: C - }; - d.push(P); - } else if (k instanceof Me) { - const S = { - idx: A, - def: m.slice(1), - ruleStack: b, - occurrenceStack: I - }; - d.push(S), d.push(s); - const C = { - idx: A, - def: k.definition.concat(m.slice(1)), - ruleStack: b, - occurrenceStack: I - }; - d.push(C); - } else if (k instanceof et) { - const S = new Te({ - definition: k.definition, - idx: k.idx - }), C = k.definition.concat([S], m.slice(1)), P = { - idx: A, - def: C, - ruleStack: b, - occurrenceStack: I - }; - d.push(P); - } else if (k instanceof tt) { - const S = new ae({ - terminalType: k.separator - }), C = new Te({ - definition: [S].concat(k.definition), - idx: k.idx - }), P = k.definition.concat([C], m.slice(1)), W = { - idx: A, - def: P, - ruleStack: b, - occurrenceStack: I - }; - d.push(W); - } else if (k instanceof Ve) { - const S = { - idx: A, - def: m.slice(1), - ruleStack: b, - occurrenceStack: I - }; - d.push(S), d.push(s); - const C = new ae({ - terminalType: k.separator - }), P = new Te({ - definition: [C].concat(k.definition), - idx: k.idx - }), W = k.definition.concat([P], m.slice(1)), B = { - idx: A, - def: W, - ruleStack: b, - occurrenceStack: I - }; - d.push(B); - } else if (k instanceof Te) { - const S = { - idx: A, - def: m.slice(1), - ruleStack: b, - occurrenceStack: I - }; - d.push(S), d.push(s); - const C = new Te({ - definition: k.definition, - idx: k.idx - }), P = k.definition.concat([C], m.slice(1)), W = { - idx: A, - def: P, - ruleStack: b, - occurrenceStack: I - }; - d.push(W); - } else if (k instanceof He) - for (let S = k.definition.length - 1; S >= 0; S--) { - const C = k.definition[S], P = { - idx: A, - def: C.definition.concat(m.slice(1)), - ruleStack: b, - occurrenceStack: I - }; - d.push(P), d.push(s); - } - else if (k instanceof Ke) - d.push({ - idx: A, - def: k.definition.concat(m.slice(1)), - ruleStack: b, - occurrenceStack: I - }); - else if (k instanceof dn) - d.push(Yp(k, A, b, I)); - else - throw Error("non exhaustive match"); - } - return u; -} -function Yp(t, e, r, n) { - const i = [...r]; - i.push(t.name); - const a = [...n]; - return a.push(1), { - idx: e, - def: t.definition, - ruleStack: i, - occurrenceStack: a - }; -} -var de; -(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"; -})(de || (de = {})); -function Ml(t) { - if (t instanceof Me || t === "Option") - return de.OPTION; - if (t instanceof Te || t === "Repetition") - return de.REPETITION; - if (t instanceof et || t === "RepetitionMandatory") - return de.REPETITION_MANDATORY; - if (t instanceof tt || t === "RepetitionMandatoryWithSeparator") - return de.REPETITION_MANDATORY_WITH_SEPARATOR; - if (t instanceof Ve || t === "RepetitionWithSeparator") - return de.REPETITION_WITH_SEPARATOR; - if (t instanceof He || t === "Alternation") - return de.ALTERNATION; - throw Error("non exhaustive match"); -} -function kc(t) { - const { occurrence: e, rule: r, prodType: n, maxLookahead: i } = t, a = Ml(n); - return a === de.ALTERNATION ? as(e, r, i) : ss(e, r, a, i); -} -function Jp(t, e, r, n, i, a) { - const s = as(t, e, r), o = Df(s) ? Ma : Si; - return a(s, n, o, i); -} -function Zp(t, e, r, n, i, a) { - const s = ss(t, e, i, r), o = Df(s) ? Ma : Si; - return a(s[0], o, n); -} -function Qp(t, e, r, n) { - const i = t.length, a = t.every((s) => s.every((o) => o.length === 1)); - if (e) - return function(s) { - const o = s.map((l) => l.GATE); - for (let l = 0; l < i; l++) { - const c = t[l], u = c.length, d = o[l]; - if (!(d !== void 0 && d.call(this) === !1)) - e: for (let p = 0; p < u; p++) { - const m = c[p], A = m.length; - for (let b = 0; b < A; b++) { - const I = this.LA_FAST(b + 1); - if (r(I, m[b]) === !1) - continue e; - } - return l; - } - } - }; - if (a && !n) { - const o = t.map((l) => l.flat()).reduce((l, c, u) => (c.forEach((d) => { - d.tokenTypeIdx in l || (l[d.tokenTypeIdx] = u), d.categoryMatches.forEach((p) => { - Object.hasOwn(l, p) || (l[p] = u); - }); - }), l), {}); - return function() { - const l = this.LA_FAST(1); - return o[l.tokenTypeIdx]; - }; - } else - return function() { - for (let s = 0; s < i; s++) { - const o = t[s], l = o.length; - e: for (let c = 0; c < l; c++) { - const u = o[c], d = u.length; - for (let p = 0; p < d; p++) { - const m = this.LA_FAST(p + 1); - if (r(m, u[p]) === !1) - continue e; - } - return s; - } - } - }; -} -function em(t, e, r) { - const n = t.every((a) => a.length === 1), i = t.length; - if (n && !r) { - const a = t.flat(); - if (a.length === 1 && a[0].categoryMatches.length === 0) { - const o = a[0].tokenTypeIdx; - return function() { - return this.LA_FAST(1).tokenTypeIdx === o; - }; - } else { - const s = a.reduce((o, l, c) => (o[l.tokenTypeIdx] = !0, l.categoryMatches.forEach((u) => { - o[u] = !0; - }), o), []); - return function() { - const o = this.LA_FAST(1); - return s[o.tokenTypeIdx] === !0; - }; - } - } else - return function() { - e: for (let a = 0; a < i; a++) { - const s = t[a], o = s.length; - for (let l = 0; l < o; l++) { - const c = this.LA_FAST(l + 1); - if (e(c, s[l]) === !1) - continue e; - } - return !0; - } - return !1; - }; -} -class tm extends rs { - constructor(e, r, n) { - super(), this.topProd = e, this.targetOccurrence = r, this.targetProdType = n; - } - startWalking() { - return this.walk(this.topProd), this.restDef; - } - checkIsTarget(e, r, n, i) { - return e.idx === this.targetOccurrence && this.targetProdType === r ? (this.restDef = n.concat(i), !0) : !1; - } - walkOption(e, r, n) { - this.checkIsTarget(e, de.OPTION, r, n) || super.walkOption(e, r, n); - } - walkAtLeastOne(e, r, n) { - this.checkIsTarget(e, de.REPETITION_MANDATORY, r, n) || super.walkOption(e, r, n); - } - walkAtLeastOneSep(e, r, n) { - this.checkIsTarget(e, de.REPETITION_MANDATORY_WITH_SEPARATOR, r, n) || super.walkOption(e, r, n); - } - walkMany(e, r, n) { - this.checkIsTarget(e, de.REPETITION, r, n) || super.walkOption(e, r, n); - } - walkManySep(e, r, n) { - this.checkIsTarget(e, de.REPETITION_WITH_SEPARATOR, r, n) || super.walkOption(e, r, n); - } -} -class Lf extends hn { - constructor(e, r, n) { - super(), this.targetOccurrence = e, this.targetProdType = r, this.targetRef = n, this.result = []; - } - checkIsTarget(e, r) { - e.idx === this.targetOccurrence && this.targetProdType === r && (this.targetRef === void 0 || e === this.targetRef) && (this.result = e.definition); - } - visitOption(e) { - this.checkIsTarget(e, de.OPTION); - } - visitRepetition(e) { - this.checkIsTarget(e, de.REPETITION); - } - visitRepetitionMandatory(e) { - this.checkIsTarget(e, de.REPETITION_MANDATORY); - } - visitRepetitionMandatoryWithSeparator(e) { - this.checkIsTarget(e, de.REPETITION_MANDATORY_WITH_SEPARATOR); - } - visitRepetitionWithSeparator(e) { - this.checkIsTarget(e, de.REPETITION_WITH_SEPARATOR); - } - visitAlternation(e) { - this.checkIsTarget(e, de.ALTERNATION); - } -} -function wc(t) { - const e = new Array(t); - for (let r = 0; r < t; r++) - e[r] = []; - return e; -} -function vs(t) { - let e = [""]; - for (let r = 0; r < t.length; r++) { - const n = t[r], i = []; - for (let a = 0; a < e.length; a++) { - const s = e[a]; - i.push(s + "_" + n.tokenTypeIdx); - for (let o = 0; o < n.categoryMatches.length; o++) { - const l = "_" + n.categoryMatches[o]; - i.push(s + l); - } - } - e = i; - } - return e; -} -function rm(t, e, r) { - for (let n = 0; n < t.length; n++) { - if (n === r) - continue; - const i = t[n]; - for (let a = 0; a < e.length; a++) { - const s = e[a]; - if (i[s] === !0) - return !1; - } - } - return !0; -} -function xf(t, e) { - const r = t.map((s) => no([s], 1)), n = wc(r.length), i = r.map((s) => { - const o = {}; - return s.forEach((l) => { - vs(l.partialPath).forEach((u) => { - o[u] = !0; - }); - }), o; - }); - let a = r; - for (let s = 1; s <= e; s++) { - const o = a; - a = wc(o.length); - for (let l = 0; l < o.length; l++) { - const c = o[l]; - for (let u = 0; u < c.length; u++) { - const d = c[u].partialPath, p = c[u].suffixDef, m = vs(d); - if (rm(i, m, l) || p.length === 0 || d.length === e) { - const b = n[l]; - if (io(b, d) === !1) { - b.push(d); - for (let I = 0; I < m.length; I++) { - const k = m[I]; - i[l][k] = !0; - } - } - } else { - const b = no(p, s + 1, d); - a[l] = a[l].concat(b), b.forEach((I) => { - vs(I.partialPath).forEach((S) => { - i[l][S] = !0; - }); - }); - } - } - } - } - return n; -} -function as(t, e, r, n) { - const i = new Lf(t, de.ALTERNATION, n); - return e.accept(i), xf(i.result, r); -} -function ss(t, e, r, n) { - const i = new Lf(t, r); - e.accept(i); - const a = i.result, o = new tm(e, t, r).startWalking(), l = new Ke({ definition: a }), c = new Ke({ definition: o }); - return xf([l, c], n); -} -function io(t, e) { - e: for (let r = 0; r < t.length; r++) { - const n = t[r]; - if (n.length === e.length) { - for (let i = 0; i < n.length; i++) { - const a = e[i], s = n[i]; - if ((a === s || s.categoryMatchesMap[a.tokenTypeIdx] !== void 0) === !1) - continue e; - } - return !0; - } - } - return !1; -} -function nm(t, e) { - return t.length < e.length && t.every((r, n) => { - const i = e[n]; - return r === i || i.categoryMatchesMap[r.tokenTypeIdx]; - }); -} -function Df(t) { - return t.every((e) => e.every((r) => r.every((n) => n.categoryMatches.length === 0))); -} -function im(t) { - return t.lookaheadStrategy.validate({ - rules: t.rules, - tokenTypes: t.tokenTypes, - grammarName: t.grammarName - }).map((r) => Object.assign({ type: Be.CUSTOM_LOOKAHEAD_VALIDATION }, r)); -} -function am(t, e, r, n) { - const i = t.flatMap((l) => sm(l, r)), a = Tm(t, e, r), s = t.flatMap((l) => pm(l, r)), o = t.flatMap((l) => cm(l, t, n, r)); - return i.concat(a, s, o); -} -function sm(t, e) { - const r = new lm(); - t.accept(r); - const n = r.allProductions, i = Object.groupBy(n, om), a = Object.fromEntries(Object.entries(i).filter(([o, l]) => l.length > 1)); - return Object.values(a).map((o) => { - const l = o[0], c = e.buildDuplicateFoundError(t, o), u = mt(l), d = { - message: c, - type: Be.DUPLICATE_PRODUCTIONS, - ruleName: t.name, - dslName: u, - occurrence: l.idx - }, p = Mf(l); - return p && (d.parameter = p), d; - }); -} -function om(t) { - return `${mt(t)}_#_${t.idx}_#_${Mf(t)}`; -} -function Mf(t) { - return t instanceof ae ? t.terminalType.name : t instanceof qe ? t.nonTerminalName : ""; -} -class lm extends hn { - 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 cm(t, e, r, n) { - const i = []; - if (e.reduce((s, o) => o.name === t.name ? s + 1 : s, 0) > 1) { - const s = n.buildDuplicateRuleNameError({ - topLevelRule: t, - grammarName: r - }); - i.push({ - message: s, - type: Be.DUPLICATE_RULE_NAME, - ruleName: t.name - }); - } - return i; -} -function um(t, e, r) { - const n = []; - let i; - return e.includes(t) || (i = `Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `, n.push({ - message: i, - type: Be.INVALID_RULE_OVERRIDE, - ruleName: t - })), n; -} -function Ff(t, e, r, n = []) { - const i = [], a = Ca(e.definition); - if (a.length === 0) - return []; - { - const s = t.name; - a.includes(t) && i.push({ - message: r.buildLeftRecursionError({ - topLevelRule: t, - leftRecursionPath: n - }), - type: Be.LEFT_RECURSION, - ruleName: s - }); - const l = n.concat([t]), u = a.filter((d) => !l.includes(d)).flatMap((d) => { - const p = [...n]; - return p.push(d), Ff(t, d, r, p); - }); - return i.concat(u); - } -} -function Ca(t) { - let e = []; - if (t.length === 0) - return e; - const r = t[0]; - if (r instanceof qe) - e.push(r.referencedRule); - else if (r instanceof Ke || r instanceof Me || r instanceof et || r instanceof tt || r instanceof Ve || r instanceof Te) - e = e.concat(Ca(r.definition)); - else if (r instanceof He) - e = r.definition.map((a) => Ca(a.definition)).flat(); - else if (!(r instanceof ae)) throw Error("non exhaustive match"); - const n = xa(r), i = t.length > 1; - if (n && i) { - const a = t.slice(1); - return e.concat(Ca(a)); - } else - return e; -} -class Fl extends hn { - constructor() { - super(...arguments), this.alternations = []; - } - visitAlternation(e) { - this.alternations.push(e); - } -} -function fm(t, e) { - const r = new Fl(); - return t.accept(r), r.alternations.flatMap((a) => a.definition.slice(0, -1).flatMap((o, l) => Xp([o], [], Si, 1).length === 0 ? [ - { - message: e.buildEmptyAlternationError({ - topLevelRule: t, - alternation: a, - emptyChoiceIdx: l - }), - type: Be.NONE_LAST_EMPTY_ALT, - ruleName: t.name, - occurrence: a.idx, - alternative: l + 1 - } - ] : [])); -} -function dm(t, e, r) { - const n = new Fl(); - t.accept(n); - let i = n.alternations; - return i = i.filter((s) => s.ignoreAmbiguities !== !0), i.flatMap((s) => { - const o = s.idx, l = s.maxLookahead || e, c = as(o, t, l, s), u = gm(c, s, t, r), d = ym(c, s, t, r); - return u.concat(d); - }); -} -class hm extends hn { - 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 pm(t, e) { - const r = new Fl(); - return t.accept(r), r.alternations.flatMap((a) => a.definition.length > 255 ? [ - { - message: e.buildTooManyAlternativesError({ - topLevelRule: t, - alternation: a - }), - type: Be.TOO_MANY_ALTS, - ruleName: t.name, - occurrence: a.idx - } - ] : []); -} -function mm(t, e, r) { - const n = []; - return t.forEach((i) => { - const a = new hm(); - i.accept(a), a.allProductions.forEach((o) => { - const l = Ml(o), c = o.maxLookahead || e, u = o.idx; - if (ss(u, i, l, c)[0].flat().length === 0) { - const m = r.buildEmptyRepetitionError({ - topLevelRule: i, - repetition: o - }); - n.push({ - message: m, - type: Be.NO_NON_EMPTY_LOOKAHEAD, - ruleName: i.name - }); - } - }); - }), n; -} -function gm(t, e, r, n) { - const i = []; - return t.reduce((o, l, c) => (e.definition[c].ignoreAmbiguities === !0 || l.forEach((u) => { - const d = [c]; - t.forEach((p, m) => { - c !== m && io(p, u) && // ignore (skip) ambiguities with this "other" alternative - e.definition[m].ignoreAmbiguities !== !0 && d.push(m); - }), d.length > 1 && !io(i, u) && (i.push(u), o.push({ - alts: d, - path: u - })); - }), o), []).map((o) => { - const l = o.alts.map((u) => u + 1); - return { - message: n.buildAlternationAmbiguityError({ - topLevelRule: r, - alternation: e, - ambiguityIndices: l, - prefixPath: o.path - }), - type: Be.AMBIGUOUS_ALTS, - ruleName: r.name, - occurrence: e.idx, - alternatives: o.alts - }; - }); -} -function ym(t, e, r, n) { - const i = t.reduce((s, o, l) => { - const c = o.map((u) => ({ idx: l, path: u })); - return s.concat(c); - }, []); - return i.flatMap((s) => { - if (e.definition[s.idx].ignoreAmbiguities === !0) - return []; - const l = s.idx, c = s.path; - return i.filter((p) => ( - // ignore (skip) ambiguities with this "other" alternative - e.definition[p.idx].ignoreAmbiguities !== !0 && p.idx < l && // checking for strict prefix because identical lookaheads - // will be be detected using a different validation. - nm(p.path, c) - )).map((p) => { - const m = [p.idx + 1, l + 1], A = e.idx === 0 ? "" : e.idx; - return { - message: n.buildAlternationPrefixAmbiguityError({ - topLevelRule: r, - alternation: e, - ambiguityIndices: m, - prefixPath: p.path - }), - type: Be.AMBIGUOUS_PREFIX_ALTS, - ruleName: r.name, - occurrence: A, - alternatives: m - }; - }); - }); -} -function Tm(t, e, r) { - const n = [], i = e.map((a) => a.name); - return t.forEach((a) => { - const s = a.name; - if (i.includes(s)) { - const o = r.buildNamespaceConflictError(a); - n.push({ - message: o, - type: Be.CONFLICT_TOKENS_RULES_NAMESPACE, - ruleName: s - }); - } - }), n; -} -function Rm(t) { - const e = Object.assign({ errMsgProvider: Up }, t), r = {}; - return t.rules.forEach((n) => { - r[n.name] = n; - }), qp(r, e.errMsgProvider); -} -function vm(t) { - var e; - const r = (e = t.errMsgProvider) !== null && e !== void 0 ? e : Cr; - return am(t.rules, t.tokenTypes, r, t.grammarName); -} -const Gf = "MismatchedTokenException", jf = "NoViableAltException", zf = "EarlyExitException", Uf = "NotAllInputParsedException", qf = [ - Gf, - jf, - zf, - Uf -]; -Object.freeze(qf); -function Fa(t) { - return qf.includes(t.name); -} -class os extends Error { - constructor(e, r) { - super(e), this.token = r, this.resyncedTokens = [], Object.setPrototypeOf(this, new.target.prototype), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor); - } -} -class Bf extends os { - constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = Gf; - } -} -class Em extends os { - constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = jf; - } -} -class Am extends os { - constructor(e, r) { - super(e, r), this.name = Uf; - } -} -class $m extends os { - constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = zf; - } -} -const Es = {}, Wf = "InRuleRecoveryException"; -class Cm extends Error { - constructor(e) { - super(e), this.name = Wf; - } -} -class Sm { - initRecoverable(e) { - this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = Object.hasOwn(e, "recoveryEnabled") ? e.recoveryEnabled : Ut.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = km); - } - getTokenToInsert(e) { - const r = Dl(e, "", NaN, NaN, NaN, NaN, NaN, NaN); - return r.isInsertedInRecovery = !0, r; - } - canTokenTypeBeInsertedInRecovery(e) { - return !0; - } - canTokenTypeBeDeletedInRecovery(e) { - return !0; - } - tryInRepetitionRecovery(e, r, n, i) { - const a = this.findReSyncTokenType(), s = this.exportLexerState(), o = []; - let l = !1; - const c = this.LA_FAST(1); - let u = this.LA_FAST(1); - const d = () => { - const p = this.LA(0), m = this.errorMessageProvider.buildMismatchTokenMessage({ - expected: i, - actual: c, - previous: p, - ruleName: this.getCurrRuleFullName() - }), A = new Bf(m, c, this.LA(0)); - A.resyncedTokens = o.slice(0, -1), this.SAVE_ERROR(A); - }; - for (; !l; ) - if (this.tokenMatcher(u, i)) { - d(); - return; - } else if (n.call(this)) { - d(), e.apply(this, r); - return; - } else this.tokenMatcher(u, a) ? l = !0 : (u = this.SKIP_TOKEN(), this.addToResyncTokens(u, o)); - this.importLexerState(s); - } - shouldInRepetitionRecoveryBeTried(e, r, n) { - return !(n === !1 || this.tokenMatcher(this.LA_FAST(1), e) || this.isBackTracking() || this.canPerformInRuleRecovery(e, this.getFollowsForInRuleRecovery(e, r))); - } - // TODO: should this be a member method or a utility? it does not have any state or usage of 'this'... - // TODO: should this be more explicitly part of the public API? - getNextPossibleTokenTypes(e) { - const r = e.ruleStack[0], i = this.getGAstProductions()[r]; - return new Kp(i, e).startWalking(); - } - // Error Recovery functionality - getFollowsForInRuleRecovery(e, r) { - const n = this.getCurrentGrammarPath(e, r); - return this.getNextPossibleTokenTypes(n); - } - tryInRuleRecovery(e, r) { - if (this.canRecoverWithSingleTokenInsertion(e, r)) - return this.getTokenToInsert(e); - if (this.canRecoverWithSingleTokenDeletion(e)) { - const n = this.SKIP_TOKEN(); - return this.consumeToken(), n; - } - throw new Cm("sad sad panda"); - } - canPerformInRuleRecovery(e, r) { - return this.canRecoverWithSingleTokenInsertion(e, r) || this.canRecoverWithSingleTokenDeletion(e); - } - canRecoverWithSingleTokenInsertion(e, r) { - if (!this.canTokenTypeBeInsertedInRecovery(e) || r.length === 0) - return !1; - const n = this.LA_FAST(1); - return r.find((a) => this.tokenMatcher(n, a)) !== void 0; - } - canRecoverWithSingleTokenDeletion(e) { - return this.canTokenTypeBeDeletedInRecovery(e) ? this.tokenMatcher( - // not using LA_FAST because LA(2) might be un-safe with maxLookahead=1 - // in some edge cases (?) - this.LA(2), - e - ) : !1; - } - isInCurrentRuleReSyncSet(e) { - const r = this.getCurrFollowKey(); - return this.getFollowSetFromFollowKey(r).includes(e); - } - findReSyncTokenType() { - const e = this.flattenFollowSet(); - let r = this.LA_FAST(1), n = 2; - for (; ; ) { - const i = e.find((a) => Of(r, a)); - if (i !== void 0) - return i; - r = this.LA(n), n++; - } - } - getCurrFollowKey() { - if (this.RULE_STACK_IDX === 0) - return Es; - const e = this.currRuleShortName, r = this.getLastExplicitRuleOccurrenceIndex(), n = this.getPreviousExplicitRuleShortName(); - return { - ruleName: this.shortRuleNameToFullName(e), - idxInCallingRule: r, - inRule: this.shortRuleNameToFullName(n) - }; - } - buildFullFollowKeyStack() { - const e = this.RULE_STACK, r = this.RULE_OCCURRENCE_STACK, n = this.RULE_STACK_IDX + 1, i = new Array(n); - for (let a = 0; a < n; a++) - a === 0 ? i[a] = Es : i[a] = { - ruleName: this.shortRuleNameToFullName(e[a]), - idxInCallingRule: r[a], - inRule: this.shortRuleNameToFullName(e[a - 1]) - }; - return i; - } - flattenFollowSet() { - return this.buildFullFollowKeyStack().map((r) => this.getFollowSetFromFollowKey(r)).flat(); - } - getFollowSetFromFollowKey(e) { - if (e === Es) - return [Qt]; - const r = e.ruleName + e.idxInCallingRule + $f + e.inRule; - return this.resyncFollows[r]; - } - // It does not make any sense to include a virtual EOF token in the list of resynced tokens - // as EOF does not really exist and thus does not contain any useful information (line/column numbers) - addToResyncTokens(e, r) { - return this.tokenMatcher(e, Qt) || r.push(e), r; - } - reSyncTo(e) { - const r = []; - let n = this.LA_FAST(1); - for (; this.tokenMatcher(n, e) === !1; ) - n = this.SKIP_TOKEN(), this.addToResyncTokens(n, r); - return r.slice(0, -1); - } - attemptInRepetitionRecovery(e, r, n, i, a, s, o) { - } - getCurrentGrammarPath(e, r) { - const n = this.getHumanReadableRuleStack(), i = this.RULE_OCCURRENCE_STACK.slice(0, this.RULE_OCCURRENCE_STACK_IDX + 1); - return { - ruleStack: n, - occurrenceStack: i, - lastTok: e, - lastTokOccurrence: r - }; - } - getHumanReadableRuleStack() { - const e = this.RULE_STACK_IDX + 1, r = new Array(e); - for (let n = 0; n < e; n++) - r[n] = this.shortRuleNameToFullName(this.RULE_STACK[n]); - return r; - } -} -function km(t, e, r, n, i, a, s) { - const o = this.getKeyForAutomaticLookahead(n, i); - let l = this.firstAfterRepMap[o]; - if (l === void 0) { - const p = this.getCurrRuleFullName(), m = this.getGAstProductions()[p]; - l = new a(m, i).startWalking(), this.firstAfterRepMap[o] = l; - } - let c = l.token, u = l.occurrence; - const d = l.isEndOfRule; - this.RULE_STACK_IDX === 0 && d && c === void 0 && (c = Qt, u = 1), !(c === void 0 || u === void 0) && this.shouldInRepetitionRecoveryBeTried(c, u, s) && this.tryInRepetitionRecovery(t, e, r, c); -} -const wm = 4, tr = 8, Kf = 1 << tr, Vf = 2 << tr, ao = 3 << tr, so = 4 << tr, oo = 5 << tr, Sa = 6 << tr; -function As(t, e, r) { - return r | e | t; -} -class Gl { - constructor(e) { - var r; - this.maxLookahead = (r = e?.maxLookahead) !== null && r !== void 0 ? r : Ut.maxLookahead; - } - validate(e) { - const r = this.validateNoLeftRecursion(e.rules); - if (r.length === 0) { - const n = this.validateEmptyOrAlternatives(e.rules), i = this.validateAmbiguousAlternationAlternatives(e.rules, this.maxLookahead), a = this.validateSomeNonEmptyLookaheadPath(e.rules, this.maxLookahead); - return [ - ...r, - ...n, - ...i, - ...a - ]; - } - return r; - } - validateNoLeftRecursion(e) { - return e.flatMap((r) => Ff(r, r, Cr)); - } - validateEmptyOrAlternatives(e) { - return e.flatMap((r) => fm(r, Cr)); - } - validateAmbiguousAlternationAlternatives(e, r) { - return e.flatMap((n) => dm(n, r, Cr)); - } - validateSomeNonEmptyLookaheadPath(e, r) { - return mm(e, r, Cr); - } - buildLookaheadForAlternation(e) { - return Jp(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, Qp); - } - buildLookaheadForOptional(e) { - return Zp(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, Ml(e.prodType), em); - } -} -class bm { - initLooksAhead(e) { - this.dynamicTokensEnabled = Object.hasOwn(e, "dynamicTokensEnabled") ? e.dynamicTokensEnabled : Ut.dynamicTokensEnabled, this.maxLookahead = Object.hasOwn(e, "maxLookahead") ? e.maxLookahead : Ut.maxLookahead, this.lookaheadStrategy = Object.hasOwn(e, "lookaheadStrategy") ? e.lookaheadStrategy : new Gl({ maxLookahead: this.maxLookahead }), this.lookAheadFuncsCache = /* @__PURE__ */ new Map(); - } - preComputeLookaheadFunctions(e) { - e.forEach((r) => { - this.TRACE_INIT(`${r.name} Rule Lookahead`, () => { - const { alternation: n, repetition: i, option: a, repetitionMandatory: s, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = _m(r); - n.forEach((c) => { - const u = c.idx === 0 ? "" : c.idx; - this.TRACE_INIT(`${mt(c)}${u}`, () => { - const d = this.lookaheadStrategy.buildLookaheadForAlternation({ - prodOccurrence: c.idx, - rule: r, - maxLookahead: c.maxLookahead || this.maxLookahead, - hasPredicates: c.hasPredicates, - dynamicTokensEnabled: this.dynamicTokensEnabled - }), p = As(this.fullRuleNameToShort[r.name], Kf, c.idx); - this.setLaFuncCache(p, d); - }); - }), i.forEach((c) => { - this.computeLookaheadFunc(r, c.idx, ao, "Repetition", c.maxLookahead, mt(c)); - }), a.forEach((c) => { - this.computeLookaheadFunc(r, c.idx, Vf, "Option", c.maxLookahead, mt(c)); - }), s.forEach((c) => { - this.computeLookaheadFunc(r, c.idx, so, "RepetitionMandatory", c.maxLookahead, mt(c)); - }), o.forEach((c) => { - this.computeLookaheadFunc(r, c.idx, Sa, "RepetitionMandatoryWithSeparator", c.maxLookahead, mt(c)); - }), l.forEach((c) => { - this.computeLookaheadFunc(r, c.idx, oo, "RepetitionWithSeparator", c.maxLookahead, mt(c)); - }); - }); - }); - } - computeLookaheadFunc(e, r, n, i, a, s) { - this.TRACE_INIT(`${s}${r === 0 ? "" : r}`, () => { - const o = this.lookaheadStrategy.buildLookaheadForOptional({ - prodOccurrence: r, - rule: e, - maxLookahead: a || this.maxLookahead, - dynamicTokensEnabled: this.dynamicTokensEnabled, - prodType: i - }), l = As(this.fullRuleNameToShort[e.name], n, r); - this.setLaFuncCache(l, o); - }); - } - // this actually returns a number, but it is always used as a string (object prop key) - getKeyForAutomaticLookahead(e, r) { - return As(this.currRuleShortName, e, r); - } - getLaFuncFromCache(e) { - return this.lookAheadFuncsCache.get(e); - } - /* istanbul ignore next */ - setLaFuncCache(e, r) { - this.lookAheadFuncsCache.set(e, r); - } -} -class Nm extends hn { - 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); - } -} -const Qi = new Nm(); -function _m(t) { - Qi.reset(), t.accept(Qi); - const e = Qi.dslMethods; - return Qi.reset(), e; -} -function bc(t, e) { - isNaN(t.startOffset) === !0 ? (t.startOffset = e.startOffset, t.endOffset = e.endOffset) : t.endOffset < e.endOffset && (t.endOffset = e.endOffset); -} -function Nc(t, e) { - isNaN(t.startOffset) === !0 ? (t.startOffset = e.startOffset, t.startColumn = e.startColumn, t.startLine = e.startLine, t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine) : t.endOffset < e.endOffset && (t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine); -} -function Im(t, e, r) { - t.children[r] === void 0 ? t.children[r] = [e] : t.children[r].push(e); -} -function Pm(t, e, r) { - t.children[e] === void 0 ? t.children[e] = [r] : t.children[e].push(r); -} -const Om = "name"; -function Hf(t, e) { - Object.defineProperty(t, Om, { - enumerable: !1, - configurable: !0, - writable: !1, - value: e - }); -} -function Lm(t, e) { - const r = Object.keys(t), n = r.length; - for (let i = 0; i < n; i++) { - const a = r[i], s = t[a], o = s.length; - for (let l = 0; l < o; l++) { - const c = s[l]; - c.tokenTypeIdx === void 0 && this[c.name](c.children, e); - } - } -} -function xm(t, e) { - const r = function() { - }; - Hf(r, t + "BaseSemantics"); - const n = { - visit: function(i, a) { - if (Array.isArray(i) && (i = i[0]), i !== void 0) - return this[i.name](i.children, a); - }, - validateVisitor: function() { - const i = Mm(this, e); - if (i.length !== 0) { - const a = i.map((s) => s.msg); - throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: - ${a.join(` - -`).replace(/\n/g, ` - `)}`); - } - } - }; - return r.prototype = n, r.prototype.constructor = r, r._RULE_NAMES = e, r; -} -function Dm(t, e, r) { - const n = function() { - }; - Hf(n, t + "BaseSemanticsWithDefaults"); - const i = Object.create(r.prototype); - return e.forEach((a) => { - i[a] = Lm; - }), n.prototype = i, n.prototype.constructor = n, n; -} -var lo; -(function(t) { - t[t.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", t[t.MISSING_METHOD = 1] = "MISSING_METHOD"; -})(lo || (lo = {})); -function Mm(t, e) { - return Fm(t, e); -} -function Fm(t, e) { - return e.filter((i) => typeof t[i] != "function").map((i) => ({ - msg: `Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`, - type: lo.MISSING_METHOD, - methodName: i - })).filter(Boolean); -} -class Gm { - initTreeBuilder(e) { - if (this.CST_STACK = [], this.outputCst = e.outputCst, this.nodeLocationTracking = Object.hasOwn(e, "nodeLocationTracking") ? e.nodeLocationTracking : Ut.nodeLocationTracking, !this.outputCst) - this.cstInvocationStateUpdate = () => { - }, this.cstFinallyStateUpdate = () => { - }, this.cstPostTerminal = () => { - }, this.cstPostNonTerminal = () => { - }, this.cstPostRule = () => { - }; - else if (/full/i.test(this.nodeLocationTracking)) - this.recoveryEnabled ? (this.setNodeLocationFromToken = Nc, this.setNodeLocationFromNode = Nc, this.cstPostRule = () => { - }, this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery) : (this.setNodeLocationFromToken = () => { - }, this.setNodeLocationFromNode = () => { - }, this.cstPostRule = this.cstPostRuleFull, this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular); - else if (/onlyOffset/i.test(this.nodeLocationTracking)) - this.recoveryEnabled ? (this.setNodeLocationFromToken = bc, this.setNodeLocationFromNode = bc, this.cstPostRule = () => { - }, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery) : (this.setNodeLocationFromToken = () => { - }, this.setNodeLocationFromNode = () => { - }, this.cstPostRule = this.cstPostRuleOnlyOffset, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular); - else if (/none/i.test(this.nodeLocationTracking)) - this.setNodeLocationFromToken = () => { - }, this.setNodeLocationFromNode = () => { - }, this.cstPostRule = () => { - }, this.setInitialNodeLocation = () => { - }; - else - throw Error(`Invalid config option: "${e.nodeLocationTracking}"`); - } - setInitialNodeLocationOnlyOffsetRecovery(e) { - e.location = { - startOffset: NaN, - endOffset: NaN - }; - } - setInitialNodeLocationOnlyOffsetRegular(e) { - e.location = { - // without error recovery the starting Location of a new CstNode is guaranteed - // To be the next Token's startOffset (for valid inputs). - // For invalid inputs there won't be any CSTOutput so this potential - // inaccuracy does not matter - startOffset: this.LA_FAST(1).startOffset, - endOffset: NaN - }; - } - setInitialNodeLocationFullRecovery(e) { - e.location = { - startOffset: NaN, - startLine: NaN, - startColumn: NaN, - endOffset: NaN, - endLine: NaN, - endColumn: NaN - }; - } - /** - * @see setInitialNodeLocationOnlyOffsetRegular for explanation why this work - - * @param cstNode - */ - setInitialNodeLocationFullRegular(e) { - const r = this.LA_FAST(1); - e.location = { - startOffset: r.startOffset, - startLine: r.startLine, - startColumn: r.startColumn, - endOffset: NaN, - endLine: NaN, - endColumn: NaN - }; - } - cstInvocationStateUpdate(e) { - const r = { - name: e, - children: /* @__PURE__ */ Object.create(null) - }; - this.setInitialNodeLocation(r), this.CST_STACK.push(r); - } - cstFinallyStateUpdate() { - this.CST_STACK.pop(); - } - cstPostRuleFull(e) { - const r = this.LA(0), n = e.location; - n.startOffset <= r.startOffset ? (n.endOffset = r.endOffset, n.endLine = r.endLine, n.endColumn = r.endColumn) : (n.startOffset = NaN, n.startLine = NaN, n.startColumn = NaN); - } - cstPostRuleOnlyOffset(e) { - const r = this.LA(0), n = e.location; - n.startOffset <= r.startOffset ? n.endOffset = r.endOffset : n.startOffset = NaN; - } - cstPostTerminal(e, r) { - const n = this.CST_STACK[this.CST_STACK.length - 1]; - Im(n, r, e), this.setNodeLocationFromToken(n.location, r); - } - cstPostNonTerminal(e, r) { - const n = this.CST_STACK[this.CST_STACK.length - 1]; - Pm(n, r, e), this.setNodeLocationFromNode(n.location, e.location); - } - getBaseCstVisitorConstructor() { - if (this.baseCstVisitorConstructor === void 0) { - const e = xm(this.className, Object.keys(this.gastProductionsCache)); - return this.baseCstVisitorConstructor = e, e; - } - return this.baseCstVisitorConstructor; - } - getBaseCstVisitorConstructorWithDefaults() { - if (this.baseCstVisitorWithDefaultsConstructor === void 0) { - const e = Dm(this.className, Object.keys(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); - return this.baseCstVisitorWithDefaultsConstructor = e, e; - } - return this.baseCstVisitorWithDefaultsConstructor; - } - getPreviousExplicitRuleShortName() { - return this.RULE_STACK[this.RULE_STACK_IDX - 1]; - } - getLastExplicitRuleOccurrenceIndex() { - return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]; - } -} -class jm { - 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; - } - // skips a token and returns the next token - SKIP_TOKEN() { - return this.currIdx <= this.tokVectorLength - 2 ? (this.consumeToken(), this.LA_FAST(1)) : an; - } - // Lexer (accessing Token vector) related methods which can be overridden to implement lazy lexers - // or lexers dependent on parser context. - // Performance Optimized version of LA without bound checks - // note that token beyond the end of the token vector EOF Token will still be returned - // due to using sentinels at the end of the token vector. (for K=max lookahead) - LA_FAST(e) { - const r = this.currIdx + e; - return this.tokVector[r]; - } - LA(e) { - const r = this.currIdx + e; - return r < 0 || this.tokVectorLength <= r ? an : this.tokVector[r]; - } - consumeToken() { - this.currIdx++; - } - exportLexerState() { - return this.currIdx; - } - importLexerState(e) { - this.currIdx = e; - } - resetLexerState() { - this.currIdx = -1; - } - moveToTerminatedState() { - this.currIdx = this.tokVectorLength - 1; - } - getLexerPosition() { - return this.exportLexerState(); - } -} -class zm { - ACTION(e) { - return e.call(this); - } - consume(e, r, n) { - return this.consumeInternal(r, e, n); - } - subrule(e, r, n) { - return this.subruleInternal(r, e, n); - } - option(e, r) { - return this.optionInternal(r, e); - } - or(e, r) { - return this.orInternal(r, e); - } - many(e, r) { - return this.manyInternal(e, r); - } - atLeastOne(e, r) { - return this.atLeastOneInternal(e, r); - } - CONSUME(e, r) { - return this.consumeInternal(e, 0, r); - } - CONSUME1(e, r) { - return this.consumeInternal(e, 1, r); - } - CONSUME2(e, r) { - return this.consumeInternal(e, 2, r); - } - CONSUME3(e, r) { - return this.consumeInternal(e, 3, r); - } - CONSUME4(e, r) { - return this.consumeInternal(e, 4, r); - } - CONSUME5(e, r) { - return this.consumeInternal(e, 5, r); - } - CONSUME6(e, r) { - return this.consumeInternal(e, 6, r); - } - CONSUME7(e, r) { - return this.consumeInternal(e, 7, r); - } - CONSUME8(e, r) { - return this.consumeInternal(e, 8, r); - } - CONSUME9(e, r) { - return this.consumeInternal(e, 9, r); - } - SUBRULE(e, r) { - return this.subruleInternal(e, 0, r); - } - SUBRULE1(e, r) { - return this.subruleInternal(e, 1, r); - } - SUBRULE2(e, r) { - return this.subruleInternal(e, 2, r); - } - SUBRULE3(e, r) { - return this.subruleInternal(e, 3, r); - } - SUBRULE4(e, r) { - return this.subruleInternal(e, 4, r); - } - SUBRULE5(e, r) { - return this.subruleInternal(e, 5, r); - } - SUBRULE6(e, r) { - return this.subruleInternal(e, 6, r); - } - SUBRULE7(e, r) { - return this.subruleInternal(e, 7, r); - } - SUBRULE8(e, r) { - return this.subruleInternal(e, 8, r); - } - SUBRULE9(e, r) { - return this.subruleInternal(e, 9, r); - } - 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, r, n = ja) { - if (this.definedRulesNames.includes(e)) { - const s = { - message: Cr.buildDuplicateRuleNameError({ - topLevelRule: e, - grammarName: this.className - }), - type: Be.DUPLICATE_RULE_NAME, - ruleName: e - }; - this.definitionErrors.push(s); - } - this.definedRulesNames.push(e); - const i = this.defineRule(e, r, n); - return this[e] = i, i; - } - OVERRIDE_RULE(e, r, n = ja) { - const i = um(e, this.definedRulesNames, this.className); - this.definitionErrors = this.definitionErrors.concat(i); - const a = this.defineRule(e, r, n); - return this[e] = a, a; - } - BACKTRACK(e, r) { - var n; - const i = (n = e.coreRule) !== null && n !== void 0 ? n : e; - return function() { - this.isBackTrackingStack.push(1); - const a = this.saveRecogState(); - try { - return i.apply(this, r), !0; - } catch (s) { - if (Fa(s)) - return !1; - throw s; - } finally { - this.reloadRecogState(a), this.isBackTrackingStack.pop(); - } - }; - } - // GAST export APIs - getGAstProductions() { - return this.gastProductionsCache; - } - getSerializedGastProductions() { - return Hh(Object.values(this.gastProductionsCache)); - } -} -class Um { - initRecognizerEngine(e, r) { - if (this.className = this.constructor.name, this.shortRuleNameToFull = {}, this.fullRuleNameToShort = {}, this.ruleShortNameIdx = 256, this.tokenMatcher = Ma, this.subruleIdx = 0, this.currRuleShortName = 0, this.definedRulesNames = [], this.tokensMap = {}, this.isBackTrackingStack = [], this.RULE_STACK = [], this.RULE_STACK_IDX = -1, this.RULE_OCCURRENCE_STACK = [], this.RULE_OCCURRENCE_STACK_IDX = -1, this.gastProductionsCache = {}, Object.hasOwn(r, "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 (Array.isArray(e)) { - if (e.length === 0) - 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 (Array.isArray(e)) - this.tokensMap = e.reduce((a, s) => (a[s.name] = s, a), {}); - else if (Object.hasOwn(e, "modes") && Object.values(e.modes).flat().every(Gp)) { - const a = Object.values(e.modes).flat(), s = [...new Set(a)]; - this.tokensMap = s.reduce((o, l) => (o[l.name] = l, o), {}); - } else if (typeof e == "object" && e !== null) - this.tokensMap = Object.assign({}, e); - else - throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition"); - this.tokensMap.EOF = Qt; - const i = (Object.hasOwn(e, "modes") ? Object.values(e.modes).flat() : Object.values(e)).every( - // intentional "==" to also cover "undefined" - (a) => { - var s; - return ((s = a.categoryMatches) === null || s === void 0 ? void 0 : s.length) == 0; - } - ); - this.tokenMatcher = i ? Ma : Si, ki(Object.values(this.tokensMap)); - } - defineRule(e, r, 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.`); - const i = Object.hasOwn(n, "resyncEnabled") ? n.resyncEnabled : ja.resyncEnabled, a = Object.hasOwn(n, "recoveryValueFunc") ? n.recoveryValueFunc : ja.recoveryValueFunc, s = this.ruleShortNameIdx << wm + tr; - this.ruleShortNameIdx++, this.shortRuleNameToFull[s] = e, this.fullRuleNameToShort[e] = s; - let o; - return this.outputCst === !0 ? o = function(...d) { - try { - this.ruleInvocationStateUpdate(s, e, this.subruleIdx), r.apply(this, d); - const p = this.CST_STACK[this.CST_STACK.length - 1]; - return this.cstPostRule(p), p; - } catch (p) { - return this.invokeRuleCatch(p, i, a); - } finally { - this.ruleFinallyStateUpdate(); - } - } : o = function(...d) { - try { - return this.ruleInvocationStateUpdate(s, e, this.subruleIdx), r.apply(this, d); - } catch (p) { - return this.invokeRuleCatch(p, i, a); - } finally { - this.ruleFinallyStateUpdate(); - } - }, Object.assign(function(...d) { - this.onBeforeParse(e); - try { - return o.apply(this, d); - } finally { - this.onAfterParse(e); - } - }, { ruleName: e, originalGrammarAction: r, coreRule: o }); - } - invokeRuleCatch(e, r, n) { - const i = this.RULE_STACK_IDX === 0, a = r && !this.isBackTracking() && this.recoveryEnabled; - if (Fa(e)) { - const s = e; - if (a) { - const o = this.findReSyncTokenType(); - if (this.isInCurrentRuleReSyncSet(o)) - if (s.resyncedTokens = this.reSyncTo(o), this.outputCst) { - const l = this.CST_STACK[this.CST_STACK.length - 1]; - return l.recoveredNode = !0, l; - } else - return n(e); - else { - if (this.outputCst) { - const l = this.CST_STACK[this.CST_STACK.length - 1]; - l.recoveredNode = !0, s.partialCstResult = l; - } - throw s; - } - } else { - if (i) - return this.moveToTerminatedState(), n(e); - throw s; - } - } else - throw e; - } - // Implementation of parsing DSL - optionInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(Vf, r); - return this.optionInternalLogic(e, r, n); - } - optionInternalLogic(e, r, n) { - let i = this.getLaFuncFromCache(n), a; - if (typeof e != "function") { - a = e.DEF; - const s = e.GATE; - if (s !== void 0) { - const o = i; - i = () => s.call(this) && o.call(this); - } - } else - a = e; - if (i.call(this) === !0) - return a.call(this); - } - atLeastOneInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(so, e); - return this.atLeastOneInternalLogic(e, r, n); - } - atLeastOneInternalLogic(e, r, n) { - let i = this.getLaFuncFromCache(n), a; - if (typeof r != "function") { - a = r.DEF; - const s = r.GATE; - if (s !== void 0) { - const o = i; - i = () => s.call(this) && o.call(this); - } - } else - a = r; - if (i.call(this) === !0) { - let s = this.doSingleRepetition(a); - for (; i.call(this) === !0 && s === !0; ) - s = this.doSingleRepetition(a); - } else - throw this.raiseEarlyExitException(e, de.REPETITION_MANDATORY, r.ERR_MSG); - this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, r], i, so, e, Hp); - } - atLeastOneSepFirstInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(Sa, e); - this.atLeastOneSepFirstInternalLogic(e, r, n); - } - atLeastOneSepFirstInternalLogic(e, r, n) { - const i = r.DEF, a = r.SEP; - if (this.getLaFuncFromCache(n).call(this) === !0) { - i.call(this); - const o = () => this.tokenMatcher(this.LA_FAST(1), a); - for (; this.tokenMatcher(this.LA_FAST(1), a) === !0; ) - this.CONSUME(a), i.call(this); - this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [ - e, - a, - o, - i, - Sc - ], o, Sa, e, Sc); - } else - throw this.raiseEarlyExitException(e, de.REPETITION_MANDATORY_WITH_SEPARATOR, r.ERR_MSG); - } - manyInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(ao, e); - return this.manyInternalLogic(e, r, n); - } - manyInternalLogic(e, r, n) { - let i = this.getLaFuncFromCache(n), a; - if (typeof r != "function") { - a = r.DEF; - const o = r.GATE; - if (o !== void 0) { - const l = i; - i = () => o.call(this) && l.call(this); - } - } else - a = r; - let s = !0; - for (; i.call(this) === !0 && s === !0; ) - s = this.doSingleRepetition(a); - this.attemptInRepetitionRecovery( - this.manyInternal, - [e, r], - i, - ao, - e, - Vp, - // The notStuck parameter is only relevant when "attemptInRepetitionRecovery" - // is invoked from manyInternal, in the MANY_SEP case and AT_LEAST_ONE[_SEP] - // An infinite loop cannot occur as: - // - Either the lookahead is guaranteed to consume something (Single Token Separator) - // - AT_LEAST_ONE by definition is guaranteed to consume something (or error out). - s - ); - } - manySepFirstInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(oo, e); - this.manySepFirstInternalLogic(e, r, n); - } - manySepFirstInternalLogic(e, r, n) { - const i = r.DEF, a = r.SEP; - if (this.getLaFuncFromCache(n).call(this) === !0) { - i.call(this); - const o = () => this.tokenMatcher(this.LA_FAST(1), a); - for (; this.tokenMatcher(this.LA_FAST(1), a) === !0; ) - this.CONSUME(a), i.call(this); - this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [ - e, - a, - o, - i, - Cc - ], o, oo, e, Cc); - } - } - repetitionSepSecondInternal(e, r, n, i, a) { - for (; n(); ) - this.CONSUME(r), i.call(this); - this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [ - e, - r, - n, - i, - a - ], n, Sa, e, a); - } - doSingleRepetition(e) { - const r = this.getLexerPosition(); - return e.call(this), this.getLexerPosition() > r; - } - orInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(Kf, r), i = Array.isArray(e) ? e : e.DEF, s = this.getLaFuncFromCache(n).call(this, i); - if (s !== void 0) - return i[s].ALT.call(this); - this.raiseNoAltException(r, e.ERR_MSG); - } - ruleFinallyStateUpdate() { - this.RULE_STACK_IDX--, this.RULE_OCCURRENCE_STACK_IDX--, this.RULE_STACK_IDX >= 0 && (this.currRuleShortName = this.RULE_STACK[this.RULE_STACK_IDX]), this.cstFinallyStateUpdate(); - } - subruleInternal(e, r, n) { - let i; - try { - const a = n !== void 0 ? n.ARGS : void 0; - return this.subruleIdx = r, i = e.coreRule.apply(this, a), this.cstPostNonTerminal(i, n !== void 0 && n.LABEL !== void 0 ? n.LABEL : e.ruleName), i; - } catch (a) { - throw this.subruleInternalError(a, n, e.ruleName); - } - } - subruleInternalError(e, r, n) { - throw Fa(e) && e.partialCstResult !== void 0 && (this.cstPostNonTerminal(e.partialCstResult, r !== void 0 && r.LABEL !== void 0 ? r.LABEL : n), delete e.partialCstResult), e; - } - consumeInternal(e, r, n) { - let i; - try { - const a = this.LA_FAST(1); - this.tokenMatcher(a, e) === !0 ? (this.consumeToken(), i = a) : this.consumeInternalError(e, a, n); - } catch (a) { - i = this.consumeInternalRecovery(e, r, a); - } - return this.cstPostTerminal(n !== void 0 && n.LABEL !== void 0 ? n.LABEL : e.name, i), i; - } - consumeInternalError(e, r, n) { - let i; - const a = this.LA(0); - throw n !== void 0 && n.ERR_MSG ? i = n.ERR_MSG : i = this.errorMessageProvider.buildMismatchTokenMessage({ - expected: e, - actual: r, - previous: a, - ruleName: this.getCurrRuleFullName() - }), this.SAVE_ERROR(new Bf(i, r, a)); - } - consumeInternalRecovery(e, r, n) { - if (this.recoveryEnabled && // TODO: more robust checking of the exception type. Perhaps Typescript extending expressions? - n.name === "MismatchedTokenException" && !this.isBackTracking()) { - const i = this.getFollowsForInRuleRecovery(e, r); - try { - return this.tryInRuleRecovery(e, i); - } catch (a) { - throw a.name === Wf ? n : a; - } - } else - throw n; - } - saveRecogState() { - const e = this.errors, r = this.RULE_STACK.slice(0, this.RULE_STACK_IDX + 1); - return { - errors: e, - lexerState: this.exportLexerState(), - RULE_STACK: r, - CST_STACK: this.CST_STACK - }; - } - reloadRecogState(e) { - this.errors = e.errors, this.importLexerState(e.lexerState); - const r = e.RULE_STACK; - for (let n = 0; n < r.length; n++) - this.RULE_STACK[n] = r[n]; - this.RULE_STACK_IDX = r.length - 1, this.RULE_STACK_IDX >= 0 && (this.currRuleShortName = this.RULE_STACK[this.RULE_STACK_IDX]); - } - ruleInvocationStateUpdate(e, r, n) { - this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX] = n, this.RULE_STACK[++this.RULE_STACK_IDX] = e, this.currRuleShortName = e, this.cstInvocationStateUpdate(r); - } - isBackTracking() { - return this.isBackTrackingStack.length !== 0; - } - getCurrRuleFullName() { - const e = this.currRuleShortName; - return this.shortRuleNameToFull[e]; - } - shortRuleNameToFullName(e) { - return this.shortRuleNameToFull[e]; - } - isAtEndOfInput() { - return this.tokenMatcher(this.LA(1), Qt); - } - reset() { - this.resetLexerState(), this.subruleIdx = 0, this.currRuleShortName = 0, this.isBackTrackingStack = [], this.errors = [], this.RULE_STACK_IDX = -1, this.RULE_OCCURRENCE_STACK_IDX = -1, this.CST_STACK = []; - } - /** - * Hook called before the root-level parsing rule is invoked. - * This is only called when a rule is invoked directly by the consumer - * (e.g., `parser.json()`), not when invoked as a sub-rule via SUBRULE. - * - * Override this method to perform actions before parsing begins. - * The default implementation is a no-op. - * - * @param ruleName - The name of the root rule being invoked. - */ - onBeforeParse(e) { - for (let r = 0; r < this.maxLookahead + 1; r++) - this.tokVector.push(an); - } - /** - * Hook called after the root-level parsing rule has completed (or thrown). - * This is only called when a rule is invoked directly by the consumer - * (e.g., `parser.json()`), not when invoked as a sub-rule via SUBRULE. - * - * This hook is called in a `finally` block, so it executes regardless of - * whether parsing succeeded or threw an error. - * - * Override this method to perform actions after parsing completes. - * The default implementation is a no-op. - * - * @param ruleName - The name of the root rule that was invoked. - */ - onAfterParse(e) { - if (this.isAtEndOfInput() === !1) { - const r = this.LA(1), n = this.errorMessageProvider.buildNotAllInputParsedMessage({ - firstRedundant: r, - ruleName: this.getCurrRuleFullName() - }); - this.SAVE_ERROR(new Am(n, r)); - } - for (; this.tokVector.at(-1) === an; ) - this.tokVector.pop(); - } -} -class qm { - initErrorHandler(e) { - this._errors = [], this.errorMessageProvider = Object.hasOwn(e, "errorMessageProvider") ? e.errorMessageProvider : Ut.errorMessageProvider; - } - SAVE_ERROR(e) { - if (Fa(e)) - return e.context = { - ruleStack: this.getHumanReadableRuleStack(), - ruleOccurrenceStack: this.RULE_OCCURRENCE_STACK.slice(0, this.RULE_OCCURRENCE_STACK_IDX + 1) - }, this._errors.push(e), e; - throw Error("Trying to save an Error which is not a RecognitionException"); - } - get errors() { - return [...this._errors]; - } - set errors(e) { - this._errors = e; - } - // TODO: consider caching the error message computed information - raiseEarlyExitException(e, r, n) { - const i = this.getCurrRuleFullName(), a = this.getGAstProductions()[i], o = ss(e, a, r, this.maxLookahead)[0], l = []; - for (let u = 1; u <= this.maxLookahead; u++) - l.push(this.LA(u)); - const c = this.errorMessageProvider.buildEarlyExitMessage({ - expectedIterationPaths: o, - actual: l, - previous: this.LA(0), - customUserDescription: n, - ruleName: i - }); - throw this.SAVE_ERROR(new $m(c, this.LA(1), this.LA(0))); - } - // TODO: consider caching the error message computed information - raiseNoAltException(e, r) { - const n = this.getCurrRuleFullName(), i = this.getGAstProductions()[n], a = as(e, i, this.maxLookahead), s = []; - for (let c = 1; c <= this.maxLookahead; c++) - s.push(this.LA(c)); - const o = this.LA(0), l = this.errorMessageProvider.buildNoViableAltMessage({ - expectedPathsPerAlt: a, - actual: s, - previous: o, - customUserDescription: r, - ruleName: this.getCurrRuleFullName() - }); - throw this.SAVE_ERROR(new Em(l, this.LA(1), o)); - } -} -const ls = { - description: "This Object indicates the Parser is during Recording Phase" -}; -Object.freeze(ls); -const _c = !0, Ic = Math.pow(2, tr) - 1, Xf = Pf({ name: "RECORDING_PHASE_TOKEN", pattern: We.NA }); -ki([Xf]); -const Yf = Dl( - Xf, - `This IToken indicates the Parser is in Recording Phase - See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, - // Using "-1" instead of NaN (as in EOF) because an actual number is less likely to - // cause errors if the output of LA or CONSUME would be (incorrectly) used during the recording phase. - -1, - -1, - -1, - -1, - -1, - -1 -); -Object.freeze(Yf); -const Bm = { - name: `This CSTNode indicates the Parser is in Recording Phase - See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, - children: {} -}; -class Wm { - 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++) { - const r = e > 0 ? e : ""; - this[`CONSUME${r}`] = function(n, i) { - return this.consumeInternalRecord(n, e, i); - }, this[`SUBRULE${r}`] = function(n, i) { - return this.subruleInternalRecord(n, e, i); - }, this[`OPTION${r}`] = function(n) { - return this.optionInternalRecord(n, e); - }, this[`OR${r}`] = function(n) { - return this.orInternalRecord(n, e); - }, this[`MANY${r}`] = function(n) { - this.manyInternalRecord(e, n); - }, this[`MANY_SEP${r}`] = function(n) { - this.manySepFirstInternalRecord(e, n); - }, this[`AT_LEAST_ONE${r}`] = function(n) { - this.atLeastOneInternalRecord(e, n); - }, this[`AT_LEAST_ONE_SEP${r}`] = function(n) { - this.atLeastOneSepFirstInternalRecord(e, n); - }; - } - this.consume = function(e, r, n) { - return this.consumeInternalRecord(r, e, n); - }, this.subrule = function(e, r, n) { - return this.subruleInternalRecord(r, e, n); - }, this.option = function(e, r) { - return this.optionInternalRecord(r, e); - }, this.or = function(e, r) { - return this.orInternalRecord(r, e); - }, this.many = function(e, r) { - this.manyInternalRecord(e, r); - }, this.atLeastOne = function(e, r) { - this.atLeastOneInternalRecord(e, r); - }, 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", () => { - const e = this; - for (let r = 0; r < 10; r++) { - const n = r > 0 ? r : ""; - 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; - }); - } - // Parser methods are called inside an ACTION? - // Maybe try/catch/finally on ACTIONS while disabling the recorders state changes? - // @ts-expect-error -- noop place holder - ACTION_RECORD(e) { - } - // Executing backtracking logic will break our recording logic assumptions - BACKTRACK_RECORD(e, r) { - return () => !0; - } - // LA is part of the official API and may be used for custom lookahead logic - // by end users who may forget to wrap it in ACTION or inside a GATE - LA_RECORD(e) { - return an; - } - topLevelRuleRecord(e, r) { - try { - const n = new dn({ definition: [], name: e }); - return n.name = e, this.recordingProdStack.push(n), r.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; - } - } - // Implementation of parsing DSL - optionInternalRecord(e, r) { - return Ln.call(this, Me, e, r); - } - atLeastOneInternalRecord(e, r) { - Ln.call(this, et, r, e); - } - atLeastOneSepFirstInternalRecord(e, r) { - Ln.call(this, tt, r, e, _c); - } - manyInternalRecord(e, r) { - Ln.call(this, Te, r, e); - } - manySepFirstInternalRecord(e, r) { - Ln.call(this, Ve, r, e, _c); - } - orInternalRecord(e, r) { - return Km.call(this, e, r); - } - subruleInternalRecord(e, r, n) { - if (Ga(r), !e || !Object.hasOwn(e, "ruleName")) { - const 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; - } - const i = this.recordingProdStack.at(-1), a = e.ruleName, s = new qe({ - idx: r, - nonTerminalName: a, - label: n?.LABEL, - // The resolving of the `referencedRule` property will be done once all the Rule's GASTs have been created - referencedRule: void 0 - }); - return i.definition.push(s), this.outputCst ? Bm : ls; - } - consumeInternalRecord(e, r, n) { - if (Ga(r), !_f(e)) { - const s = new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> - inside top level rule: <${this.recordingProdStack[0].name}>`); - throw s.KNOWN_RECORDER_ERROR = !0, s; - } - const i = this.recordingProdStack.at(-1), a = new ae({ - idx: r, - terminalType: e, - label: n?.LABEL - }); - return i.definition.push(a), Yf; - } -} -function Ln(t, e, r, n = !1) { - Ga(r); - const i = this.recordingProdStack.at(-1), a = typeof e == "function" ? e : e.DEF, s = new t({ definition: [], idx: r }); - return n && (s.separator = e.SEP), Object.hasOwn(e, "MAX_LOOKAHEAD") && (s.maxLookahead = e.MAX_LOOKAHEAD), this.recordingProdStack.push(s), a.call(this), i.definition.push(s), this.recordingProdStack.pop(), ls; -} -function Km(t, e) { - Ga(e); - const r = this.recordingProdStack.at(-1), n = Array.isArray(t) === !1, i = n === !1 ? t : t.DEF, a = new He({ - definition: [], - idx: e, - ignoreAmbiguities: n && t.IGNORE_AMBIGUITIES === !0 - }); - Object.hasOwn(t, "MAX_LOOKAHEAD") && (a.maxLookahead = t.MAX_LOOKAHEAD); - const s = i.some((o) => typeof o.GATE == "function"); - return a.hasPredicates = s, r.definition.push(a), i.forEach((o) => { - const l = new Ke({ definition: [] }); - a.definition.push(l), Object.hasOwn(o, "IGNORE_AMBIGUITIES") ? l.ignoreAmbiguities = o.IGNORE_AMBIGUITIES : Object.hasOwn(o, "GATE") && (l.ignoreAmbiguities = !0), this.recordingProdStack.push(l), o.ALT.call(this), this.recordingProdStack.pop(); - }), ls; -} -function Pc(t) { - return t === 0 ? "" : `${t}`; -} -function Ga(t) { - if (t < 0 || t > Ic) { - const e = new Error( - // The stack trace will contain all the needed details - `Invalid DSL Method idx value: <${t}> - Idx value must be a none negative value smaller than ${Ic + 1}` - ); - throw e.KNOWN_RECORDER_ERROR = !0, e; - } -} -class Vm { - initPerformanceTracer(e) { - if (Object.hasOwn(e, "traceInitPerf")) { - const r = e.traceInitPerf, n = typeof r == "number"; - this.traceInitMaxIdent = n ? r : 1 / 0, this.traceInitPerf = n ? r > 0 : r; - } else - this.traceInitMaxIdent = 0, this.traceInitPerf = Ut.traceInitPerf; - this.traceInitIndent = -1; - } - TRACE_INIT(e, r) { - if (this.traceInitPerf === !0) { - this.traceInitIndent++; - const n = new Array(this.traceInitIndent + 1).join(" "); - this.traceInitIndent < this.traceInitMaxIdent && console.log(`${n}--> <${e}>`); - const { time: i, value: a } = Ef(r), s = i > 10 ? console.warn : console.log; - return this.traceInitIndent < this.traceInitMaxIdent && s(`${n}<-- <${e}> time: ${i}ms`), this.traceInitIndent--, a; - } else - return r(); - } -} -function Hm(t, e) { - e.forEach((r) => { - const n = r.prototype; - Object.getOwnPropertyNames(n).forEach((i) => { - if (i === "constructor") - return; - const a = Object.getOwnPropertyDescriptor(n, i); - a && (a.get || a.set) ? Object.defineProperty(t.prototype, i, a) : t.prototype[i] = r.prototype[i]; - }); - }); -} -const an = Dl(Qt, "", NaN, NaN, NaN, NaN, NaN, NaN); -Object.freeze(an); -const Ut = Object.freeze({ - recoveryEnabled: !1, - maxLookahead: 3, - dynamicTokensEnabled: !1, - outputCst: !0, - errorMessageProvider: tn, - nodeLocationTracking: "none", - traceInitPerf: !1, - skipValidations: !1 -}), ja = Object.freeze({ - recoveryValueFunc: () => { - }, - resyncEnabled: !0 -}); -var Be; -(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"; -})(Be || (Be = {})); -function Oc(t = void 0) { - return function() { - return t; - }; -} -class wi { - /** - * @deprecated use the **instance** method with the same name instead - */ - 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; - const r = this.className; - this.TRACE_INIT("toFastProps", () => { - Af(this); - }), this.TRACE_INIT("Grammar Recording", () => { - try { - this.enableRecording(), this.definedRulesNames.forEach((i) => { - const s = this[i].originalGrammarAction; - let o; - this.TRACE_INIT(`${i} Rule`, () => { - o = this.topLevelRuleRecord(i, s); - }), this.gastProductionsCache[i] = o; - }); - } finally { - this.disableRecording(); - } - }); - let n = []; - if (this.TRACE_INIT("Grammar Resolving", () => { - n = Rm({ - rules: Object.values(this.gastProductionsCache) - }), this.definitionErrors = this.definitionErrors.concat(n); - }), this.TRACE_INIT("Grammar Validations", () => { - if (n.length === 0 && this.skipValidations === !1) { - const i = vm({ - rules: Object.values(this.gastProductionsCache), - tokenTypes: Object.values(this.tokensMap), - errMsgProvider: Cr, - grammarName: r - }), a = im({ - lookaheadStrategy: this.lookaheadStrategy, - rules: Object.values(this.gastProductionsCache), - tokenTypes: Object.values(this.tokensMap), - grammarName: r - }); - this.definitionErrors = this.definitionErrors.concat(i, a); - } - }), this.definitionErrors.length === 0 && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => { - const i = tp(Object.values(this.gastProductionsCache)); - this.resyncFollows = i; - }), this.TRACE_INIT("ComputeLookaheadFunctions", () => { - var i, a; - (a = (i = this.lookaheadStrategy).initialize) === null || a === void 0 || a.call(i, { - rules: Object.values(this.gastProductionsCache) - }), this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache)); - })), !wi.DEFER_DEFINITION_ERRORS_HANDLING && this.definitionErrors.length !== 0) - throw e = this.definitionErrors.map((i) => i.message), new Error(`Parser Definition Errors detected: - ${e.join(` -------------------------------- -`)}`); - }); - } - constructor(e, r) { - this.definitionErrors = [], this.selfAnalysisDone = !1; - const n = this; - if (n.initErrorHandler(r), n.initLexerAdapter(), n.initLooksAhead(r), n.initRecognizerEngine(e, r), n.initRecoverable(r), n.initTreeBuilder(r), n.initGastRecorder(r), n.initPerformanceTracer(r), Object.hasOwn(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 = Object.hasOwn(r, "skipValidations") ? r.skipValidations : Ut.skipValidations; - } -} -wi.DEFER_DEFINITION_ERRORS_HANDLING = !1; -Hm(wi, [ - Sm, - bm, - Gm, - jm, - Um, - zm, - qm, - Wm, - Vm -]); -class Xm extends wi { - constructor(e, r = Ut) { - const n = Object.assign({}, r); - n.outputCst = !1, super(e, n); - } -} -function sn(t, e, r) { - return `${t.name}_${e}_${r}`; -} -const er = 1, Ym = 2, Jf = 4, Zf = 5, cs = 7, Jm = 8, Zm = 9, Qm = 10, eg = 11, Qf = 12; -class jl { - constructor(e) { - this.target = e; - } - isEpsilon() { - return !1; - } -} -class zl extends jl { - constructor(e, r) { - super(e), this.tokenType = r; - } -} -class ed extends jl { - constructor(e) { - super(e); - } - isEpsilon() { - return !0; - } -} -class Ul extends jl { - constructor(e, r, n) { - super(e), this.rule = r, this.followState = n; - } - isEpsilon() { - return !0; - } -} -function tg(t) { - const e = { - decisionMap: {}, - decisionStates: [], - ruleToStartState: /* @__PURE__ */ new Map(), - ruleToStopState: /* @__PURE__ */ new Map(), - states: [] - }; - rg(e, t); - const r = t.length; - for (let n = 0; n < r; n++) { - const i = t[n], a = Pr(e, i, i); - a !== void 0 && hg(e, i, a); - } - return e; -} -function rg(t, e) { - const r = e.length; - for (let n = 0; n < r; n++) { - const i = e[n], a = Ne(t, i, void 0, { - type: Ym - }), s = Ne(t, i, void 0, { - type: cs - }); - a.stop = s, t.ruleToStartState.set(i, a), t.ruleToStopState.set(i, s); - } -} -function td(t, e, r) { - return r instanceof ae ? ql(t, e, r.terminalType, r) : r instanceof qe ? dg(t, e, r) : r instanceof He ? og(t, e, r) : r instanceof Me ? lg(t, e, r) : r instanceof Te ? ng(t, e, r) : r instanceof Ve ? ig(t, e, r) : r instanceof et ? ag(t, e, r) : r instanceof tt ? sg(t, e, r) : Pr(t, e, r); -} -function ng(t, e, r) { - const n = Ne(t, e, r, { - type: Zf - }); - rr(t, n); - const i = pn(t, e, n, r, Pr(t, e, r)); - return nd(t, e, r, i); -} -function ig(t, e, r) { - const n = Ne(t, e, r, { - type: Zf - }); - rr(t, n); - const i = pn(t, e, n, r, Pr(t, e, r)), a = ql(t, e, r.separator, r); - return nd(t, e, r, i, a); -} -function ag(t, e, r) { - const n = Ne(t, e, r, { - type: Jf - }); - rr(t, n); - const i = pn(t, e, n, r, Pr(t, e, r)); - return rd(t, e, r, i); -} -function sg(t, e, r) { - const n = Ne(t, e, r, { - type: Jf - }); - rr(t, n); - const i = pn(t, e, n, r, Pr(t, e, r)), a = ql(t, e, r.separator, r); - return rd(t, e, r, i, a); -} -function og(t, e, r) { - const n = Ne(t, e, r, { - type: er - }); - rr(t, n); - const i = Ft(r.definition, (s) => td(t, e, s)); - return pn(t, e, n, r, ...i); -} -function lg(t, e, r) { - const n = Ne(t, e, r, { - type: er - }); - rr(t, n); - const i = pn(t, e, n, r, Pr(t, e, r)); - return cg(t, e, r, i); -} -function Pr(t, e, r) { - const n = zd(Ft(r.definition, (i) => td(t, e, i)), (i) => i !== void 0); - return n.length === 1 ? n[0] : n.length === 0 ? void 0 : fg(t, n); -} -function rd(t, e, r, n, i) { - const a = n.left, s = n.right, o = Ne(t, e, r, { - type: eg - }); - rr(t, o); - const l = Ne(t, e, r, { - type: Qf - }); - return a.loopback = o, l.loopback = o, t.decisionMap[sn(e, i ? "RepetitionMandatoryWithSeparator" : "RepetitionMandatory", r.idx)] = o, Se(s, o), i === void 0 ? (Se(o, a), Se(o, l)) : (Se(o, l), Se(o, i.left), Se(i.right, a)), { - left: a, - right: l - }; -} -function nd(t, e, r, n, i) { - const a = n.left, s = n.right, o = Ne(t, e, r, { - type: Qm - }); - rr(t, o); - const l = Ne(t, e, r, { - type: Qf - }), c = Ne(t, e, r, { - type: Zm - }); - return o.loopback = c, l.loopback = c, Se(o, a), Se(o, l), Se(s, c), i !== void 0 ? (Se(c, l), Se(c, i.left), Se(i.right, a)) : Se(c, o), t.decisionMap[sn(e, i ? "RepetitionWithSeparator" : "Repetition", r.idx)] = o, { - left: o, - right: l - }; -} -function cg(t, e, r, n) { - const i = n.left, a = n.right; - return Se(i, a), t.decisionMap[sn(e, "Option", r.idx)] = i, n; -} -function rr(t, e) { - return t.decisionStates.push(e), e.decision = t.decisionStates.length - 1, e.decision; -} -function pn(t, e, r, n, ...i) { - const a = Ne(t, e, n, { - type: Jm, - start: r - }); - r.end = a; - for (const o of i) - o !== void 0 ? (Se(r, o.left), Se(o.right, a)) : Se(r, a); - const s = { - left: r, - right: a - }; - return t.decisionMap[sn(e, ug(n), n.idx)] = r, s; -} -function ug(t) { - if (t instanceof He) - return "Alternation"; - if (t instanceof Me) - return "Option"; - if (t instanceof Te) - return "Repetition"; - if (t instanceof Ve) - return "RepetitionWithSeparator"; - if (t instanceof et) - return "RepetitionMandatory"; - if (t instanceof tt) - return "RepetitionMandatoryWithSeparator"; - throw new Error("Invalid production type encountered"); -} -function fg(t, e) { - const r = e.length; - for (let a = 0; a < r - 1; a++) { - const s = e[a]; - let o; - s.left.transitions.length === 1 && (o = s.left.transitions[0]); - const l = o instanceof Ul, c = o, u = e[a + 1].left; - s.left.type === er && s.right.type === er && o !== void 0 && (l && c.followState === s.right || o.target === s.right) ? (l ? c.followState = u : o.target = u, pg(t, s.right)) : Se(s.right, u); - } - const n = e[0], i = e[r - 1]; - return { - left: n.left, - right: i.right - }; -} -function ql(t, e, r, n) { - const i = Ne(t, e, n, { - type: er - }), a = Ne(t, e, n, { - type: er - }); - return Bl(i, new zl(a, r)), { - left: i, - right: a - }; -} -function dg(t, e, r) { - const n = r.referencedRule, i = t.ruleToStartState.get(n), a = Ne(t, e, r, { - type: er - }), s = Ne(t, e, r, { - type: er - }), o = new Ul(i, n, s); - return Bl(a, o), { - left: a, - right: s - }; -} -function hg(t, e, r) { - const n = t.ruleToStartState.get(e); - Se(n, r.left); - const i = t.ruleToStopState.get(e); - return Se(r.right, i), { - left: n, - right: i - }; -} -function Se(t, e) { - const r = new ed(e); - Bl(t, r); -} -function Ne(t, e, r, n) { - const i = Object.assign({ - atn: t, - production: r, - epsilonOnlyTransitions: !1, - rule: e, - transitions: [], - nextTokenWithinRule: [], - stateNumber: t.states.length - }, n); - return t.states.push(i), i; -} -function Bl(t, e) { - t.transitions.length === 0 && (t.epsilonOnlyTransitions = e.isEpsilon()), t.transitions.push(e); -} -function pg(t, e) { - t.states.splice(t.states.indexOf(e), 1); -} -const za = {}; -class co { - constructor() { - this.map = {}, this.configs = []; - } - get size() { - return this.configs.length; - } - finalize() { - this.map = {}; - } - add(e) { - const r = id(e); - r in this.map || (this.map[r] = this.configs.length, this.configs.push(e)); - } - get elements() { - return this.configs; - } - get alts() { - return Ft(this.configs, (e) => e.alt); - } - get key() { - let e = ""; - for (const r in this.map) - e += r + ":"; - return e; - } -} -function id(t, e = !0) { - return `${e ? `a${t.alt}` : ""}s${t.state.stateNumber}:${t.stack.map((r) => r.stateNumber.toString()).join("_")}`; -} -function mg(t, e) { - const r = {}; - return (n) => { - const i = n.toString(); - let a = r[i]; - return a !== void 0 || (a = { - atnStartState: t, - decision: e, - states: {} - }, r[i] = a), a; - }; -} -class ad { - constructor() { - this.predicates = []; - } - is(e) { - return e >= this.predicates.length || this.predicates[e]; - } - set(e, r) { - this.predicates[e] = r; - } - toString() { - let e = ""; - const r = this.predicates.length; - for (let n = 0; n < r; n++) - e += this.predicates[n] === !0 ? "1" : "0"; - return e; - } -} -const Lc = new ad(); -class gg extends Gl { - constructor(e) { - var r; - super(), this.logging = (r = e?.logging) !== null && r !== void 0 ? r : ((n) => console.log(n)); - } - initialize(e) { - this.atn = tg(e.rules), this.dfas = yg(this.atn); - } - validateAmbiguousAlternationAlternatives() { - return []; - } - validateEmptyOrAlternatives() { - return []; - } - buildLookaheadForAlternation(e) { - const { prodOccurrence: r, rule: n, hasPredicates: i, dynamicTokensEnabled: a } = e, s = this.dfas, o = this.logging, l = sn(n, "Alternation", r), u = this.atn.decisionMap[l].decision, d = Ft(kc({ - maxLookahead: 1, - occurrence: r, - prodType: "Alternation", - rule: n - }), (p) => Ft(p, (m) => m[0])); - if (xc(d, !1) && !a) { - const p = Zl(d, (m, A, b) => (hs(A, (I) => { - I && (m[I.tokenTypeIdx] = b, hs(I.categoryMatches, (k) => { - m[k] = b; - })); - }), m), {}); - return i ? function(m) { - var A; - const b = this.LA_FAST(1), I = p[b.tokenTypeIdx]; - if (m !== void 0 && I !== void 0) { - const k = (A = m[I]) === null || A === void 0 ? void 0 : A.GATE; - if (k !== void 0 && k.call(this) === !1) - return; - } - return I; - } : function() { - const m = this.LA_FAST(1); - return p[m.tokenTypeIdx]; - }; - } else return i ? function(p) { - const m = new ad(), A = p === void 0 ? 0 : p.length; - for (let I = 0; I < A; I++) { - const k = p?.[I].GATE; - m.set(I, k === void 0 || k.call(this)); - } - const b = $s.call(this, s, u, m, o); - return typeof b == "number" ? b : void 0; - } : function() { - const p = $s.call(this, s, u, Lc, o); - return typeof p == "number" ? p : void 0; - }; - } - buildLookaheadForOptional(e) { - const { prodOccurrence: r, rule: n, prodType: i, dynamicTokensEnabled: a } = e, s = this.dfas, o = this.logging, l = sn(n, i, r), u = this.atn.decisionMap[l].decision, d = Ft(kc({ - maxLookahead: 1, - occurrence: r, - prodType: i, - rule: n - }), (p) => Ft(p, (m) => m[0])); - if (xc(d) && d[0][0] && !a) { - const p = d[0], m = Dd(p); - if (m.length === 1 && Ud(m[0].categoryMatches)) { - const b = m[0].tokenTypeIdx; - return function() { - return this.LA_FAST(1).tokenTypeIdx === b; - }; - } else { - const A = Zl(m, (b, I) => (I !== void 0 && (b[I.tokenTypeIdx] = !0, hs(I.categoryMatches, (k) => { - b[k] = !0; - })), b), {}); - return function() { - const b = this.LA_FAST(1); - return A[b.tokenTypeIdx] === !0; - }; - } - } - return function() { - const p = $s.call(this, s, u, Lc, o); - return typeof p == "object" ? !1 : p === 0; - }; - } -} -function xc(t, e = !0) { - const r = /* @__PURE__ */ new Set(); - for (const n of t) { - const i = /* @__PURE__ */ new Set(); - for (const a of n) { - if (a === void 0) { - if (e) - break; - return !1; - } - const s = [a.tokenTypeIdx].concat(a.categoryMatches); - for (const o of s) - if (r.has(o)) { - if (!i.has(o)) - return !1; - } else - r.add(o), i.add(o); - } - } - return !0; -} -function yg(t) { - const e = t.decisionStates.length, r = Array(e); - for (let n = 0; n < e; n++) - r[n] = mg(t.decisionStates[n], n); - return r; -} -function $s(t, e, r, n) { - const i = t[e](r); - let a = i.start; - if (a === void 0) { - const o = bg(i.atnStartState); - a = od(i, sd(o)), i.start = a; - } - return Tg.apply(this, [i, a, r, n]); -} -function Tg(t, e, r, n) { - let i = e, a = 1; - const s = []; - let o = this.LA_FAST(a++); - for (; ; ) { - let l = Cg(i, o); - if (l === void 0 && (l = Rg.apply(this, [t, i, o, a, r, n])), l === za) - return $g(s, i, o); - if (l.isAcceptState === !0) - return l.prediction; - i = l, s.push(o), o = this.LA(a++); - } -} -function Rg(t, e, r, n, i, a) { - const s = Sg(e.configs, r, i); - if (s.size === 0) - return Dc(t, e, r, za), za; - let o = sd(s); - const l = wg(s, i); - if (l !== void 0) - o.isAcceptState = !0, o.prediction = l, o.configs.uniqueAlt = l; - else if (Ig(s)) { - const c = Md(s.alts); - o.isAcceptState = !0, o.prediction = c, o.configs.uniqueAlt = c, vg.apply(this, [t, n, s.alts, a]); - } - return o = Dc(t, e, r, o), o; -} -function vg(t, e, r, n) { - const i = []; - for (let c = 1; c <= e; c++) - i.push(this.LA(c).tokenType); - const a = t.atnStartState, s = a.rule, o = a.production, l = Eg({ - topLevelRule: s, - ambiguityIndices: r, - production: o, - prefixPath: i - }); - n(l); -} -function Eg(t) { - const e = Ft(t.prefixPath, (i) => nn(i)).join(", "), r = t.production.idx === 0 ? "" : t.production.idx; - let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${Ag(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, -<${e}> 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; -} -function Ag(t) { - if (t instanceof qe) - return "SUBRULE"; - if (t instanceof Me) - return "OPTION"; - if (t instanceof He) - return "OR"; - if (t instanceof et) - return "AT_LEAST_ONE"; - if (t instanceof tt) - return "AT_LEAST_ONE_SEP"; - if (t instanceof Ve) - return "MANY_SEP"; - if (t instanceof Te) - return "MANY"; - if (t instanceof ae) - return "CONSUME"; - throw Error("non exhaustive match"); -} -function $g(t, e, r) { - const n = Bd(e.configs.elements, (a) => a.state.transitions), i = Wd(n.filter((a) => a instanceof zl).map((a) => a.tokenType), (a) => a.tokenTypeIdx); - return { - actualToken: r, - possibleTokenTypes: i, - tokenPath: t - }; -} -function Cg(t, e) { - return t.edges[e.tokenTypeIdx]; -} -function Sg(t, e, r) { - const n = new co(), i = []; - for (const s of t.elements) { - if (r.is(s.alt) === !1) - continue; - if (s.state.type === cs) { - i.push(s); - continue; - } - const o = s.state.transitions.length; - for (let l = 0; l < o; l++) { - const c = s.state.transitions[l], u = kg(c, e); - u !== void 0 && n.add({ - state: u, - alt: s.alt, - stack: s.stack - }); - } - } - let a; - if (i.length === 0 && n.size === 1 && (a = n), a === void 0) { - a = new co(); - for (const s of n.elements) - Ua(s, a); - } - if (i.length > 0 && a.size === 0) - for (const s of i) - a.add(s); - return a; -} -function kg(t, e) { - if (t instanceof zl && Of(e, t.tokenType)) - return t.target; -} -function wg(t, e) { - let r; - for (const n of t.elements) - if (e.is(n.alt) === !0) { - if (r === void 0) - r = n.alt; - else if (r !== n.alt) - return; - } - return r; -} -function sd(t) { - return { - configs: t, - edges: {}, - isAcceptState: !1, - prediction: -1 - }; -} -function Dc(t, e, r, n) { - return n = od(t, n), e.edges[r.tokenTypeIdx] = n, n; -} -function od(t, e) { - if (e === za) - return e; - const r = e.configs.key, n = t.states[r]; - return n !== void 0 ? n : (e.configs.finalize(), t.states[r] = e, e); -} -function bg(t) { - const e = new co(), r = t.transitions.length; - for (let n = 0; n < r; n++) { - const a = { - state: t.transitions[n].target, - alt: n, - stack: [] - }; - Ua(a, e); - } - return e; -} -function Ua(t, e) { - const r = t.state; - if (r.type === cs) { - if (t.stack.length > 0) { - const i = [...t.stack], s = { - state: i.pop(), - alt: t.alt, - stack: i - }; - Ua(s, e); - } else - e.add(t); - return; - } - r.epsilonOnlyTransitions || e.add(t); - const n = r.transitions.length; - for (let i = 0; i < n; i++) { - const a = r.transitions[i], s = Ng(t, a); - s !== void 0 && Ua(s, e); - } -} -function Ng(t, e) { - if (e instanceof ed) - return { - state: e.target, - alt: t.alt, - stack: t.stack - }; - if (e instanceof Ul) { - const r = [...t.stack, e.followState]; - return { - state: e.target, - alt: t.alt, - stack: r - }; - } -} -function _g(t) { - for (const e of t.elements) - if (e.state.type !== cs) - return !1; - return !0; -} -function Ig(t) { - if (_g(t)) - return !0; - const e = Pg(t.elements); - return Og(e) && !Lg(e); -} -function Pg(t) { - const e = /* @__PURE__ */ new Map(); - for (const r of t) { - const n = id(r, !1); - let i = e.get(n); - i === void 0 && (i = {}, e.set(n, i)), i[r.alt] = !0; - } - return e; -} -function Og(t) { - for (const e of Array.from(t.values())) - if (Object.keys(e).length > 1) - return !0; - return !1; -} -function Lg(t) { - for (const e of Array.from(t.values())) - if (Object.keys(e).length === 1) - return !0; - return !1; -} -var uo; -(function(t) { - function e(r) { - return typeof r == "string"; - } - t.is = e; -})(uo || (uo = {})); -var qa; -(function(t) { - function e(r) { - return typeof r == "string"; - } - t.is = e; -})(qa || (qa = {})); -var fo; -(function(t) { - t.MIN_VALUE = -2147483648, t.MAX_VALUE = 2147483647; - function e(r) { - return typeof r == "number" && t.MIN_VALUE <= r && r <= t.MAX_VALUE; - } - t.is = e; -})(fo || (fo = {})); -var fi; -(function(t) { - t.MIN_VALUE = 0, t.MAX_VALUE = 2147483647; - function e(r) { - return typeof r == "number" && t.MIN_VALUE <= r && r <= t.MAX_VALUE; - } - t.is = e; -})(fi || (fi = {})); -var Z; -(function(t) { - function e(n, i) { - return n === Number.MAX_VALUE && (n = fi.MAX_VALUE), i === Number.MAX_VALUE && (i = fi.MAX_VALUE), { line: n, character: i }; - } - t.create = e; - function r(n) { - let i = n; - return v.objectLiteral(i) && v.uinteger(i.line) && v.uinteger(i.character); - } - t.is = r; -})(Z || (Z = {})); -var V; -(function(t) { - function e(n, i, a, s) { - if (v.uinteger(n) && v.uinteger(i) && v.uinteger(a) && v.uinteger(s)) - return { start: Z.create(n, i), end: Z.create(a, s) }; - if (Z.is(n) && Z.is(i)) - return { start: n, end: i }; - throw new Error(`Range#create called with invalid arguments[${n}, ${i}, ${a}, ${s}]`); - } - t.create = e; - function r(n) { - let i = n; - return v.objectLiteral(i) && Z.is(i.start) && Z.is(i.end); - } - t.is = r; -})(V || (V = {})); -var di; -(function(t) { - function e(n, i) { - return { uri: n, range: i }; - } - t.create = e; - function r(n) { - let i = n; - return v.objectLiteral(i) && V.is(i.range) && (v.string(i.uri) || v.undefined(i.uri)); - } - t.is = r; -})(di || (di = {})); -var ho; -(function(t) { - function e(n, i, a, s) { - return { targetUri: n, targetRange: i, targetSelectionRange: a, originSelectionRange: s }; - } - t.create = e; - function r(n) { - let i = n; - return v.objectLiteral(i) && V.is(i.targetRange) && v.string(i.targetUri) && V.is(i.targetSelectionRange) && (V.is(i.originSelectionRange) || v.undefined(i.originSelectionRange)); - } - t.is = r; -})(ho || (ho = {})); -var Ba; -(function(t) { - function e(n, i, a, s) { - return { - red: n, - green: i, - blue: a, - alpha: s - }; - } - t.create = e; - function r(n) { - const i = n; - return v.objectLiteral(i) && v.numberRange(i.red, 0, 1) && v.numberRange(i.green, 0, 1) && v.numberRange(i.blue, 0, 1) && v.numberRange(i.alpha, 0, 1); - } - t.is = r; -})(Ba || (Ba = {})); -var po; -(function(t) { - function e(n, i) { - return { - range: n, - color: i - }; - } - t.create = e; - function r(n) { - const i = n; - return v.objectLiteral(i) && V.is(i.range) && Ba.is(i.color); - } - t.is = r; -})(po || (po = {})); -var mo; -(function(t) { - function e(n, i, a) { - return { - label: n, - textEdit: i, - additionalTextEdits: a - }; - } - t.create = e; - function r(n) { - const i = n; - return v.objectLiteral(i) && v.string(i.label) && (v.undefined(i.textEdit) || yt.is(i)) && (v.undefined(i.additionalTextEdits) || v.typedArray(i.additionalTextEdits, yt.is)); - } - t.is = r; -})(mo || (mo = {})); -var go; -(function(t) { - t.Comment = "comment", t.Imports = "imports", t.Region = "region"; -})(go || (go = {})); -var yo; -(function(t) { - function e(n, i, a, s, o, l) { - const c = { - startLine: n, - endLine: i - }; - return v.defined(a) && (c.startCharacter = a), v.defined(s) && (c.endCharacter = s), v.defined(o) && (c.kind = o), v.defined(l) && (c.collapsedText = l), c; - } - t.create = e; - function r(n) { - const i = n; - return v.objectLiteral(i) && v.uinteger(i.startLine) && v.uinteger(i.startLine) && (v.undefined(i.startCharacter) || v.uinteger(i.startCharacter)) && (v.undefined(i.endCharacter) || v.uinteger(i.endCharacter)) && (v.undefined(i.kind) || v.string(i.kind)); - } - t.is = r; -})(yo || (yo = {})); -var Wa; -(function(t) { - function e(n, i) { - return { - location: n, - message: i - }; - } - t.create = e; - function r(n) { - let i = n; - return v.defined(i) && di.is(i.location) && v.string(i.message); - } - t.is = r; -})(Wa || (Wa = {})); -var To; -(function(t) { - t.Error = 1, t.Warning = 2, t.Information = 3, t.Hint = 4; -})(To || (To = {})); -var Ro; -(function(t) { - t.Unnecessary = 1, t.Deprecated = 2; -})(Ro || (Ro = {})); -var vo; -(function(t) { - function e(r) { - const n = r; - return v.objectLiteral(n) && v.string(n.href); - } - t.is = e; -})(vo || (vo = {})); -var hi; -(function(t) { - function e(n, i, a, s, o, l) { - let c = { range: n, message: i }; - return v.defined(a) && (c.severity = a), v.defined(s) && (c.code = s), v.defined(o) && (c.source = o), v.defined(l) && (c.relatedInformation = l), c; - } - t.create = e; - function r(n) { - var i; - let a = n; - return v.defined(a) && V.is(a.range) && v.string(a.message) && (v.number(a.severity) || v.undefined(a.severity)) && (v.integer(a.code) || v.string(a.code) || v.undefined(a.code)) && (v.undefined(a.codeDescription) || v.string((i = a.codeDescription) === null || i === void 0 ? void 0 : i.href)) && (v.string(a.source) || v.undefined(a.source)) && (v.undefined(a.relatedInformation) || v.typedArray(a.relatedInformation, Wa.is)); - } - t.is = r; -})(hi || (hi = {})); -var _r; -(function(t) { - function e(n, i, ...a) { - let s = { title: n, command: i }; - return v.defined(a) && a.length > 0 && (s.arguments = a), s; - } - t.create = e; - function r(n) { - let i = n; - return v.defined(i) && v.string(i.title) && v.string(i.command); - } - t.is = r; -})(_r || (_r = {})); -var yt; -(function(t) { - function e(a, s) { - return { range: a, newText: s }; - } - t.replace = e; - function r(a, s) { - return { range: { start: a, end: a }, newText: s }; - } - t.insert = r; - function n(a) { - return { range: a, newText: "" }; - } - t.del = n; - function i(a) { - const s = a; - return v.objectLiteral(s) && v.string(s.newText) && V.is(s.range); - } - t.is = i; -})(yt || (yt = {})); -var Sr; -(function(t) { - function e(n, i, a) { - const s = { label: n }; - return i !== void 0 && (s.needsConfirmation = i), a !== void 0 && (s.description = a), s; - } - t.create = e; - function r(n) { - const i = n; - return v.objectLiteral(i) && v.string(i.label) && (v.boolean(i.needsConfirmation) || i.needsConfirmation === void 0) && (v.string(i.description) || i.description === void 0); - } - t.is = r; -})(Sr || (Sr = {})); -var De; -(function(t) { - function e(r) { - const n = r; - return v.string(n); - } - t.is = e; -})(De || (De = {})); -var Mt; -(function(t) { - function e(a, s, o) { - return { range: a, newText: s, annotationId: o }; - } - t.replace = e; - function r(a, s, o) { - return { range: { start: a, end: a }, newText: s, annotationId: o }; - } - t.insert = r; - function n(a, s) { - return { range: a, newText: "", annotationId: s }; - } - t.del = n; - function i(a) { - const s = a; - return yt.is(s) && (Sr.is(s.annotationId) || De.is(s.annotationId)); - } - t.is = i; -})(Mt || (Mt = {})); -var pi; -(function(t) { - function e(n, i) { - return { textDocument: n, edits: i }; - } - t.create = e; - function r(n) { - let i = n; - return v.defined(i) && mi.is(i.textDocument) && Array.isArray(i.edits); - } - t.is = r; -})(pi || (pi = {})); -var on; -(function(t) { - function e(n, i, a) { - let s = { - kind: "create", - uri: n - }; - return i !== void 0 && (i.overwrite !== void 0 || i.ignoreIfExists !== void 0) && (s.options = i), a !== void 0 && (s.annotationId = a), s; - } - t.create = e; - function r(n) { - let i = n; - return i && i.kind === "create" && v.string(i.uri) && (i.options === void 0 || (i.options.overwrite === void 0 || v.boolean(i.options.overwrite)) && (i.options.ignoreIfExists === void 0 || v.boolean(i.options.ignoreIfExists))) && (i.annotationId === void 0 || De.is(i.annotationId)); - } - t.is = r; -})(on || (on = {})); -var ln; -(function(t) { - function e(n, i, a, s) { - let o = { - kind: "rename", - oldUri: n, - newUri: i - }; - return a !== void 0 && (a.overwrite !== void 0 || a.ignoreIfExists !== void 0) && (o.options = a), s !== void 0 && (o.annotationId = s), o; - } - t.create = e; - function r(n) { - let i = n; - return i && i.kind === "rename" && v.string(i.oldUri) && v.string(i.newUri) && (i.options === void 0 || (i.options.overwrite === void 0 || v.boolean(i.options.overwrite)) && (i.options.ignoreIfExists === void 0 || v.boolean(i.options.ignoreIfExists))) && (i.annotationId === void 0 || De.is(i.annotationId)); - } - t.is = r; -})(ln || (ln = {})); -var cn; -(function(t) { - function e(n, i, a) { - let s = { - kind: "delete", - uri: n - }; - return i !== void 0 && (i.recursive !== void 0 || i.ignoreIfNotExists !== void 0) && (s.options = i), a !== void 0 && (s.annotationId = a), s; - } - t.create = e; - function r(n) { - let i = n; - return i && i.kind === "delete" && v.string(i.uri) && (i.options === void 0 || (i.options.recursive === void 0 || v.boolean(i.options.recursive)) && (i.options.ignoreIfNotExists === void 0 || v.boolean(i.options.ignoreIfNotExists))) && (i.annotationId === void 0 || De.is(i.annotationId)); - } - t.is = r; -})(cn || (cn = {})); -var Ka; -(function(t) { - function e(r) { - let n = r; - return n && (n.changes !== void 0 || n.documentChanges !== void 0) && (n.documentChanges === void 0 || n.documentChanges.every((i) => v.string(i.kind) ? on.is(i) || ln.is(i) || cn.is(i) : pi.is(i))); - } - t.is = e; -})(Ka || (Ka = {})); -class ea { - constructor(e, r) { - this.edits = e, this.changeAnnotations = r; - } - insert(e, r, n) { - let i, a; - if (n === void 0 ? i = yt.insert(e, r) : De.is(n) ? (a = n, i = Mt.insert(e, r, n)) : (this.assertChangeAnnotations(this.changeAnnotations), a = this.changeAnnotations.manage(n), i = Mt.insert(e, r, a)), this.edits.push(i), a !== void 0) - return a; - } - replace(e, r, n) { - let i, a; - if (n === void 0 ? i = yt.replace(e, r) : De.is(n) ? (a = n, i = Mt.replace(e, r, n)) : (this.assertChangeAnnotations(this.changeAnnotations), a = this.changeAnnotations.manage(n), i = Mt.replace(e, r, a)), this.edits.push(i), a !== void 0) - return a; - } - delete(e, r) { - let n, i; - if (r === void 0 ? n = yt.del(e) : De.is(r) ? (i = r, n = Mt.del(e, r)) : (this.assertChangeAnnotations(this.changeAnnotations), i = this.changeAnnotations.manage(r), n = Mt.del(e, i)), this.edits.push(n), i !== void 0) - return i; - } - 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."); - } -} -class Mc { - constructor(e) { - this._annotations = e === void 0 ? /* @__PURE__ */ Object.create(null) : e, this._counter = 0, this._size = 0; - } - all() { - return this._annotations; - } - get size() { - return this._size; - } - manage(e, r) { - let n; - if (De.is(e) ? n = e : (n = this.nextId(), r = e), this._annotations[n] !== void 0) - throw new Error(`Id ${n} is already in use.`); - if (r === void 0) - throw new Error(`No annotation provided for id ${n}`); - return this._annotations[n] = r, this._size++, n; - } - nextId() { - return this._counter++, this._counter.toString(); - } -} -class xg { - constructor(e) { - this._textEditChanges = /* @__PURE__ */ Object.create(null), e !== void 0 ? (this._workspaceEdit = e, e.documentChanges ? (this._changeAnnotations = new Mc(e.changeAnnotations), e.changeAnnotations = this._changeAnnotations.all(), e.documentChanges.forEach((r) => { - if (pi.is(r)) { - const n = new ea(r.edits, this._changeAnnotations); - this._textEditChanges[r.textDocument.uri] = n; - } - })) : e.changes && Object.keys(e.changes).forEach((r) => { - const n = new ea(e.changes[r]); - this._textEditChanges[r] = n; - })) : this._workspaceEdit = {}; - } - /** - * Returns the underlying {@link WorkspaceEdit} literal - * use to be returned from a workspace edit operation like rename. - */ - 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 (mi.is(e)) { - if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) - throw new Error("Workspace edit is not configured for document changes."); - const r = { uri: e.uri, version: e.version }; - let n = this._textEditChanges[r.uri]; - if (!n) { - const i = [], a = { - textDocument: r, - edits: i - }; - this._workspaceEdit.documentChanges.push(a), n = new ea(i, this._changeAnnotations), this._textEditChanges[r.uri] = n; - } - return n; - } else { - if (this.initChanges(), this._workspaceEdit.changes === void 0) - throw new Error("Workspace edit is not configured for normal text edit changes."); - let r = this._textEditChanges[e]; - if (!r) { - let n = []; - this._workspaceEdit.changes[e] = n, r = new ea(n), this._textEditChanges[e] = r; - } - return r; - } - } - initDocumentChanges() { - this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._changeAnnotations = new Mc(), this._workspaceEdit.documentChanges = [], this._workspaceEdit.changeAnnotations = this._changeAnnotations.all()); - } - initChanges() { - this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._workspaceEdit.changes = /* @__PURE__ */ Object.create(null)); - } - createFile(e, r, n) { - if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) - throw new Error("Workspace edit is not configured for document changes."); - let i; - Sr.is(r) || De.is(r) ? i = r : n = r; - let a, s; - if (i === void 0 ? a = on.create(e, n) : (s = De.is(i) ? i : this._changeAnnotations.manage(i), a = on.create(e, n, s)), this._workspaceEdit.documentChanges.push(a), s !== void 0) - return s; - } - renameFile(e, r, n, i) { - if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) - throw new Error("Workspace edit is not configured for document changes."); - let a; - Sr.is(n) || De.is(n) ? a = n : i = n; - let s, o; - if (a === void 0 ? s = ln.create(e, r, i) : (o = De.is(a) ? a : this._changeAnnotations.manage(a), s = ln.create(e, r, i, o)), this._workspaceEdit.documentChanges.push(s), o !== void 0) - return o; - } - deleteFile(e, r, n) { - if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) - throw new Error("Workspace edit is not configured for document changes."); - let i; - Sr.is(r) || De.is(r) ? i = r : n = r; - let a, s; - if (i === void 0 ? a = cn.create(e, n) : (s = De.is(i) ? i : this._changeAnnotations.manage(i), a = cn.create(e, n, s)), this._workspaceEdit.documentChanges.push(a), s !== void 0) - return s; - } -} -var Eo; -(function(t) { - function e(n) { - return { uri: n }; - } - t.create = e; - function r(n) { - let i = n; - return v.defined(i) && v.string(i.uri); - } - t.is = r; -})(Eo || (Eo = {})); -var Ao; -(function(t) { - function e(n, i) { - return { uri: n, version: i }; - } - t.create = e; - function r(n) { - let i = n; - return v.defined(i) && v.string(i.uri) && v.integer(i.version); - } - t.is = r; -})(Ao || (Ao = {})); -var mi; -(function(t) { - function e(n, i) { - return { uri: n, version: i }; - } - t.create = e; - function r(n) { - let i = n; - return v.defined(i) && v.string(i.uri) && (i.version === null || v.integer(i.version)); - } - t.is = r; -})(mi || (mi = {})); -var $o; -(function(t) { - function e(n, i, a, s) { - return { uri: n, languageId: i, version: a, text: s }; - } - t.create = e; - function r(n) { - let i = n; - return v.defined(i) && v.string(i.uri) && v.string(i.languageId) && v.integer(i.version) && v.string(i.text); - } - t.is = r; -})($o || ($o = {})); -var Va; -(function(t) { - t.PlainText = "plaintext", t.Markdown = "markdown"; - function e(r) { - const n = r; - return n === t.PlainText || n === t.Markdown; - } - t.is = e; -})(Va || (Va = {})); -var un; -(function(t) { - function e(r) { - const n = r; - return v.objectLiteral(r) && Va.is(n.kind) && v.string(n.value); - } - t.is = e; -})(un || (un = {})); -var Co; -(function(t) { - t.Text = 1, t.Method = 2, t.Function = 3, t.Constructor = 4, t.Field = 5, t.Variable = 6, t.Class = 7, t.Interface = 8, t.Module = 9, t.Property = 10, t.Unit = 11, t.Value = 12, t.Enum = 13, t.Keyword = 14, t.Snippet = 15, t.Color = 16, t.File = 17, t.Reference = 18, t.Folder = 19, t.EnumMember = 20, t.Constant = 21, t.Struct = 22, t.Event = 23, t.Operator = 24, t.TypeParameter = 25; -})(Co || (Co = {})); -var So; -(function(t) { - t.PlainText = 1, t.Snippet = 2; -})(So || (So = {})); -var ko; -(function(t) { - t.Deprecated = 1; -})(ko || (ko = {})); -var wo; -(function(t) { - function e(n, i, a) { - return { newText: n, insert: i, replace: a }; - } - t.create = e; - function r(n) { - const i = n; - return i && v.string(i.newText) && V.is(i.insert) && V.is(i.replace); - } - t.is = r; -})(wo || (wo = {})); -var bo; -(function(t) { - t.asIs = 1, t.adjustIndentation = 2; -})(bo || (bo = {})); -var No; -(function(t) { - function e(r) { - const n = r; - return n && (v.string(n.detail) || n.detail === void 0) && (v.string(n.description) || n.description === void 0); - } - t.is = e; -})(No || (No = {})); -var _o; -(function(t) { - function e(r) { - return { label: r }; - } - t.create = e; -})(_o || (_o = {})); -var Io; -(function(t) { - function e(r, n) { - return { items: r || [], isIncomplete: !!n }; - } - t.create = e; -})(Io || (Io = {})); -var gi; -(function(t) { - function e(n) { - return n.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&"); - } - t.fromPlainText = e; - function r(n) { - const i = n; - return v.string(i) || v.objectLiteral(i) && v.string(i.language) && v.string(i.value); - } - t.is = r; -})(gi || (gi = {})); -var Po; -(function(t) { - function e(r) { - let n = r; - return !!n && v.objectLiteral(n) && (un.is(n.contents) || gi.is(n.contents) || v.typedArray(n.contents, gi.is)) && (r.range === void 0 || V.is(r.range)); - } - t.is = e; -})(Po || (Po = {})); -var Oo; -(function(t) { - function e(r, n) { - return n ? { label: r, documentation: n } : { label: r }; - } - t.create = e; -})(Oo || (Oo = {})); -var Lo; -(function(t) { - function e(r, n, ...i) { - let a = { label: r }; - return v.defined(n) && (a.documentation = n), v.defined(i) ? a.parameters = i : a.parameters = [], a; - } - t.create = e; -})(Lo || (Lo = {})); -var xo; -(function(t) { - t.Text = 1, t.Read = 2, t.Write = 3; -})(xo || (xo = {})); -var Do; -(function(t) { - function e(r, n) { - let i = { range: r }; - return v.number(n) && (i.kind = n), i; - } - t.create = e; -})(Do || (Do = {})); -var Mo; -(function(t) { - t.File = 1, t.Module = 2, t.Namespace = 3, t.Package = 4, t.Class = 5, t.Method = 6, t.Property = 7, t.Field = 8, t.Constructor = 9, t.Enum = 10, t.Interface = 11, t.Function = 12, t.Variable = 13, t.Constant = 14, t.String = 15, t.Number = 16, t.Boolean = 17, t.Array = 18, t.Object = 19, t.Key = 20, t.Null = 21, t.EnumMember = 22, t.Struct = 23, t.Event = 24, t.Operator = 25, t.TypeParameter = 26; -})(Mo || (Mo = {})); -var Fo; -(function(t) { - t.Deprecated = 1; -})(Fo || (Fo = {})); -var Go; -(function(t) { - function e(r, n, i, a, s) { - let o = { - name: r, - kind: n, - location: { uri: a, range: i } - }; - return s && (o.containerName = s), o; - } - t.create = e; -})(Go || (Go = {})); -var jo; -(function(t) { - function e(r, n, i, a) { - return a !== void 0 ? { name: r, kind: n, location: { uri: i, range: a } } : { name: r, kind: n, location: { uri: i } }; - } - t.create = e; -})(jo || (jo = {})); -var zo; -(function(t) { - function e(n, i, a, s, o, l) { - let c = { - name: n, - detail: i, - kind: a, - range: s, - selectionRange: o - }; - return l !== void 0 && (c.children = l), c; - } - t.create = e; - function r(n) { - let i = n; - return i && v.string(i.name) && v.number(i.kind) && V.is(i.range) && V.is(i.selectionRange) && (i.detail === void 0 || v.string(i.detail)) && (i.deprecated === void 0 || v.boolean(i.deprecated)) && (i.children === void 0 || Array.isArray(i.children)) && (i.tags === void 0 || Array.isArray(i.tags)); - } - t.is = r; -})(zo || (zo = {})); -var Uo; -(function(t) { - t.Empty = "", t.QuickFix = "quickfix", t.Refactor = "refactor", t.RefactorExtract = "refactor.extract", t.RefactorInline = "refactor.inline", t.RefactorRewrite = "refactor.rewrite", t.Source = "source", t.SourceOrganizeImports = "source.organizeImports", t.SourceFixAll = "source.fixAll"; -})(Uo || (Uo = {})); -var yi; -(function(t) { - t.Invoked = 1, t.Automatic = 2; -})(yi || (yi = {})); -var qo; -(function(t) { - function e(n, i, a) { - let s = { diagnostics: n }; - return i != null && (s.only = i), a != null && (s.triggerKind = a), s; - } - t.create = e; - function r(n) { - let i = n; - return v.defined(i) && v.typedArray(i.diagnostics, hi.is) && (i.only === void 0 || v.typedArray(i.only, v.string)) && (i.triggerKind === void 0 || i.triggerKind === yi.Invoked || i.triggerKind === yi.Automatic); - } - t.is = r; -})(qo || (qo = {})); -var Bo; -(function(t) { - function e(n, i, a) { - let s = { title: n }, o = !0; - return typeof i == "string" ? (o = !1, s.kind = i) : _r.is(i) ? s.command = i : s.edit = i, o && a !== void 0 && (s.kind = a), s; - } - t.create = e; - function r(n) { - let i = n; - return i && v.string(i.title) && (i.diagnostics === void 0 || v.typedArray(i.diagnostics, hi.is)) && (i.kind === void 0 || v.string(i.kind)) && (i.edit !== void 0 || i.command !== void 0) && (i.command === void 0 || _r.is(i.command)) && (i.isPreferred === void 0 || v.boolean(i.isPreferred)) && (i.edit === void 0 || Ka.is(i.edit)); - } - t.is = r; -})(Bo || (Bo = {})); -var Wo; -(function(t) { - function e(n, i) { - let a = { range: n }; - return v.defined(i) && (a.data = i), a; - } - t.create = e; - function r(n) { - let i = n; - return v.defined(i) && V.is(i.range) && (v.undefined(i.command) || _r.is(i.command)); - } - t.is = r; -})(Wo || (Wo = {})); -var Ko; -(function(t) { - function e(n, i) { - return { tabSize: n, insertSpaces: i }; - } - t.create = e; - function r(n) { - let i = n; - return v.defined(i) && v.uinteger(i.tabSize) && v.boolean(i.insertSpaces); - } - t.is = r; -})(Ko || (Ko = {})); -var Vo; -(function(t) { - function e(n, i, a) { - return { range: n, target: i, data: a }; - } - t.create = e; - function r(n) { - let i = n; - return v.defined(i) && V.is(i.range) && (v.undefined(i.target) || v.string(i.target)); - } - t.is = r; -})(Vo || (Vo = {})); -var Ho; -(function(t) { - function e(n, i) { - return { range: n, parent: i }; - } - t.create = e; - function r(n) { - let i = n; - return v.objectLiteral(i) && V.is(i.range) && (i.parent === void 0 || t.is(i.parent)); - } - t.is = r; -})(Ho || (Ho = {})); -var Xo; -(function(t) { - t.namespace = "namespace", t.type = "type", t.class = "class", t.enum = "enum", t.interface = "interface", t.struct = "struct", t.typeParameter = "typeParameter", t.parameter = "parameter", t.variable = "variable", t.property = "property", t.enumMember = "enumMember", t.event = "event", t.function = "function", t.method = "method", t.macro = "macro", t.keyword = "keyword", t.modifier = "modifier", t.comment = "comment", t.string = "string", t.number = "number", t.regexp = "regexp", t.operator = "operator", t.decorator = "decorator"; -})(Xo || (Xo = {})); -var Yo; -(function(t) { - t.declaration = "declaration", t.definition = "definition", t.readonly = "readonly", t.static = "static", t.deprecated = "deprecated", t.abstract = "abstract", t.async = "async", t.modification = "modification", t.documentation = "documentation", t.defaultLibrary = "defaultLibrary"; -})(Yo || (Yo = {})); -var Jo; -(function(t) { - function e(r) { - const n = r; - return v.objectLiteral(n) && (n.resultId === void 0 || typeof n.resultId == "string") && Array.isArray(n.data) && (n.data.length === 0 || typeof n.data[0] == "number"); - } - t.is = e; -})(Jo || (Jo = {})); -var Zo; -(function(t) { - function e(n, i) { - return { range: n, text: i }; - } - t.create = e; - function r(n) { - const i = n; - return i != null && V.is(i.range) && v.string(i.text); - } - t.is = r; -})(Zo || (Zo = {})); -var Qo; -(function(t) { - function e(n, i, a) { - return { range: n, variableName: i, caseSensitiveLookup: a }; - } - t.create = e; - function r(n) { - const i = n; - return i != null && V.is(i.range) && v.boolean(i.caseSensitiveLookup) && (v.string(i.variableName) || i.variableName === void 0); - } - t.is = r; -})(Qo || (Qo = {})); -var el; -(function(t) { - function e(n, i) { - return { range: n, expression: i }; - } - t.create = e; - function r(n) { - const i = n; - return i != null && V.is(i.range) && (v.string(i.expression) || i.expression === void 0); - } - t.is = r; -})(el || (el = {})); -var tl; -(function(t) { - function e(n, i) { - return { frameId: n, stoppedLocation: i }; - } - t.create = e; - function r(n) { - const i = n; - return v.defined(i) && V.is(n.stoppedLocation); - } - t.is = r; -})(tl || (tl = {})); -var Ha; -(function(t) { - t.Type = 1, t.Parameter = 2; - function e(r) { - return r === 1 || r === 2; - } - t.is = e; -})(Ha || (Ha = {})); -var Xa; -(function(t) { - function e(n) { - return { value: n }; - } - t.create = e; - function r(n) { - const i = n; - return v.objectLiteral(i) && (i.tooltip === void 0 || v.string(i.tooltip) || un.is(i.tooltip)) && (i.location === void 0 || di.is(i.location)) && (i.command === void 0 || _r.is(i.command)); - } - t.is = r; -})(Xa || (Xa = {})); -var rl; -(function(t) { - function e(n, i, a) { - const s = { position: n, label: i }; - return a !== void 0 && (s.kind = a), s; - } - t.create = e; - function r(n) { - const i = n; - return v.objectLiteral(i) && Z.is(i.position) && (v.string(i.label) || v.typedArray(i.label, Xa.is)) && (i.kind === void 0 || Ha.is(i.kind)) && i.textEdits === void 0 || v.typedArray(i.textEdits, yt.is) && (i.tooltip === void 0 || v.string(i.tooltip) || un.is(i.tooltip)) && (i.paddingLeft === void 0 || v.boolean(i.paddingLeft)) && (i.paddingRight === void 0 || v.boolean(i.paddingRight)); - } - t.is = r; -})(rl || (rl = {})); -var nl; -(function(t) { - function e(r) { - return { kind: "snippet", value: r }; - } - t.createSnippet = e; -})(nl || (nl = {})); -var il; -(function(t) { - function e(r, n, i, a) { - return { insertText: r, filterText: n, range: i, command: a }; - } - t.create = e; -})(il || (il = {})); -var al; -(function(t) { - function e(r) { - return { items: r }; - } - t.create = e; -})(al || (al = {})); -var sl; -(function(t) { - t.Invoked = 0, t.Automatic = 1; -})(sl || (sl = {})); -var ol; -(function(t) { - function e(r, n) { - return { range: r, text: n }; - } - t.create = e; -})(ol || (ol = {})); -var ll; -(function(t) { - function e(r, n) { - return { triggerKind: r, selectedCompletionInfo: n }; - } - t.create = e; -})(ll || (ll = {})); -var cl; -(function(t) { - function e(r) { - const n = r; - return v.objectLiteral(n) && qa.is(n.uri) && v.string(n.name); - } - t.is = e; -})(cl || (cl = {})); -const Dg = [` -`, `\r -`, "\r"]; -var ul; -(function(t) { - function e(a, s, o, l) { - return new Mg(a, s, o, l); - } - t.create = e; - function r(a) { - let s = a; - return !!(v.defined(s) && v.string(s.uri) && (v.undefined(s.languageId) || v.string(s.languageId)) && v.uinteger(s.lineCount) && v.func(s.getText) && v.func(s.positionAt) && v.func(s.offsetAt)); - } - t.is = r; - function n(a, s) { - let o = a.getText(), l = i(s, (u, d) => { - let p = u.range.start.line - d.range.start.line; - return p === 0 ? u.range.start.character - d.range.start.character : p; - }), c = o.length; - for (let u = l.length - 1; u >= 0; u--) { - let d = l[u], p = a.offsetAt(d.range.start), m = a.offsetAt(d.range.end); - if (m <= c) - o = o.substring(0, p) + d.newText + o.substring(m, o.length); - else - throw new Error("Overlapping edit"); - c = p; - } - return o; - } - t.applyEdits = n; - function i(a, s) { - if (a.length <= 1) - return a; - const o = a.length / 2 | 0, l = a.slice(0, o), c = a.slice(o); - i(l, s), i(c, s); - let u = 0, d = 0, p = 0; - for (; u < l.length && d < c.length; ) - s(l[u], c[d]) <= 0 ? a[p++] = l[u++] : a[p++] = c[d++]; - for (; u < l.length; ) - a[p++] = l[u++]; - for (; d < c.length; ) - a[p++] = c[d++]; - return a; - } -})(ul || (ul = {})); -let Mg = class { - constructor(e, r, n, i) { - this._uri = e, this._languageId = r, this._version = n, this._content = i, this._lineOffsets = void 0; - } - get uri() { - return this._uri; - } - get languageId() { - return this._languageId; - } - get version() { - return this._version; - } - getText(e) { - if (e) { - let r = this.offsetAt(e.start), n = this.offsetAt(e.end); - return this._content.substring(r, n); - } - return this._content; - } - update(e, r) { - this._content = e.text, this._version = r, this._lineOffsets = void 0; - } - getLineOffsets() { - if (this._lineOffsets === void 0) { - let e = [], r = this._content, n = !0; - for (let i = 0; i < r.length; i++) { - n && (e.push(i), n = !1); - let a = r.charAt(i); - n = a === "\r" || a === ` -`, a === "\r" && i + 1 < r.length && r.charAt(i + 1) === ` -` && i++; - } - n && r.length > 0 && e.push(r.length), this._lineOffsets = e; - } - return this._lineOffsets; - } - positionAt(e) { - e = Math.max(Math.min(e, this._content.length), 0); - let r = this.getLineOffsets(), n = 0, i = r.length; - if (i === 0) - return Z.create(0, e); - for (; n < i; ) { - let s = Math.floor((n + i) / 2); - r[s] > e ? i = s : n = s + 1; - } - let a = n - 1; - return Z.create(a, e - r[a]); - } - offsetAt(e) { - let r = this.getLineOffsets(); - if (e.line >= r.length) - return this._content.length; - if (e.line < 0) - return 0; - let n = r[e.line], i = e.line + 1 < r.length ? r[e.line + 1] : this._content.length; - return Math.max(Math.min(n + e.character, i), n); - } - get lineCount() { - return this.getLineOffsets().length; - } -}; -var v; -(function(t) { - const e = Object.prototype.toString; - function r(m) { - return typeof m < "u"; - } - t.defined = r; - function n(m) { - return typeof m > "u"; - } - t.undefined = n; - function i(m) { - return m === !0 || m === !1; - } - t.boolean = i; - function a(m) { - return e.call(m) === "[object String]"; - } - t.string = a; - function s(m) { - return e.call(m) === "[object Number]"; - } - t.number = s; - function o(m, A, b) { - return e.call(m) === "[object Number]" && A <= m && m <= b; - } - t.numberRange = o; - function l(m) { - return e.call(m) === "[object Number]" && -2147483648 <= m && m <= 2147483647; - } - t.integer = l; - function c(m) { - return e.call(m) === "[object Number]" && 0 <= m && m <= 2147483647; - } - t.uinteger = c; - function u(m) { - return e.call(m) === "[object Function]"; - } - t.func = u; - function d(m) { - return m !== null && typeof m == "object"; - } - t.objectLiteral = d; - function p(m, A) { - return Array.isArray(m) && m.every(A); - } - t.typedArray = p; -})(v || (v = {})); -const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - get AnnotatedTextEdit() { - return Mt; - }, - get ChangeAnnotation() { - return Sr; - }, - get ChangeAnnotationIdentifier() { - return De; - }, - get CodeAction() { - return Bo; - }, - get CodeActionContext() { - return qo; - }, - get CodeActionKind() { - return Uo; - }, - get CodeActionTriggerKind() { - return yi; - }, - get CodeDescription() { - return vo; - }, - get CodeLens() { - return Wo; - }, - get Color() { - return Ba; - }, - get ColorInformation() { - return po; - }, - get ColorPresentation() { - return mo; - }, - get Command() { - return _r; - }, - get CompletionItem() { - return _o; - }, - get CompletionItemKind() { - return Co; - }, - get CompletionItemLabelDetails() { - return No; - }, - get CompletionItemTag() { - return ko; - }, - get CompletionList() { - return Io; - }, - get CreateFile() { - return on; - }, - get DeleteFile() { - return cn; - }, - get Diagnostic() { - return hi; - }, - get DiagnosticRelatedInformation() { - return Wa; - }, - get DiagnosticSeverity() { - return To; - }, - get DiagnosticTag() { - return Ro; - }, - get DocumentHighlight() { - return Do; - }, - get DocumentHighlightKind() { - return xo; - }, - get DocumentLink() { - return Vo; - }, - get DocumentSymbol() { - return zo; - }, - get DocumentUri() { - return uo; - }, - EOL: Dg, - get FoldingRange() { - return yo; - }, - get FoldingRangeKind() { - return go; - }, - get FormattingOptions() { - return Ko; - }, - get Hover() { - return Po; - }, - get InlayHint() { - return rl; - }, - get InlayHintKind() { - return Ha; - }, - get InlayHintLabelPart() { - return Xa; - }, - get InlineCompletionContext() { - return ll; - }, - get InlineCompletionItem() { - return il; - }, - get InlineCompletionList() { - return al; - }, - get InlineCompletionTriggerKind() { - return sl; - }, - get InlineValueContext() { - return tl; - }, - get InlineValueEvaluatableExpression() { - return el; - }, - get InlineValueText() { - return Zo; - }, - get InlineValueVariableLookup() { - return Qo; - }, - get InsertReplaceEdit() { - return wo; - }, - get InsertTextFormat() { - return So; - }, - get InsertTextMode() { - return bo; - }, - get Location() { - return di; - }, - get LocationLink() { - return ho; - }, - get MarkedString() { - return gi; - }, - get MarkupContent() { - return un; - }, - get MarkupKind() { - return Va; - }, - get OptionalVersionedTextDocumentIdentifier() { - return mi; - }, - get ParameterInformation() { - return Oo; - }, - get Position() { - return Z; - }, - get Range() { - return V; - }, - get RenameFile() { - return ln; - }, - get SelectedCompletionInfo() { - return ol; - }, - get SelectionRange() { - return Ho; - }, - get SemanticTokenModifiers() { - return Yo; - }, - get SemanticTokenTypes() { - return Xo; - }, - get SemanticTokens() { - return Jo; - }, - get SignatureInformation() { - return Lo; - }, - get StringValue() { - return nl; - }, - get SymbolInformation() { - return Go; - }, - get SymbolKind() { - return Mo; - }, - get SymbolTag() { - return Fo; - }, - get TextDocument() { - return ul; - }, - get TextDocumentEdit() { - return pi; - }, - get TextDocumentIdentifier() { - return Eo; - }, - get TextDocumentItem() { - return $o; - }, - get TextEdit() { - return yt; - }, - get URI() { - return qa; - }, - get VersionedTextDocumentIdentifier() { - return Ao; - }, - WorkspaceChange: xg, - get WorkspaceEdit() { - return Ka; - }, - get WorkspaceFolder() { - return cl; - }, - get WorkspaceSymbol() { - return jo; - }, - get integer() { - return fo; - }, - get uinteger() { - return fi; - } -}, Symbol.toStringTag, { value: "Module" })); -class Gg { - constructor() { - this.nodeStack = []; - } - get current() { - return this.nodeStack[this.nodeStack.length - 1] ?? this.rootNode; - } - buildRootNode(e) { - return this.rootNode = new cd(e), this.rootNode.root = this.rootNode, this.nodeStack = [this.rootNode], this.rootNode; - } - buildCompositeNode(e) { - const r = new Wl(); - return r.grammarSource = e, r.root = this.rootNode, this.current.content.push(r), this.nodeStack.push(r), r; - } - buildLeafNode(e, r) { - const n = new fl(e.startOffset, e.image.length, Zs(e), e.tokenType, !r); - return n.grammarSource = r, n.root = this.rootNode, this.current.content.push(n), n; - } - removeNode(e) { - const r = e.container; - if (r) { - const n = r.content.indexOf(e); - n >= 0 && r.content.splice(n, 1); - } - } - addHiddenNodes(e) { - const r = []; - for (const a of e) { - const s = new fl(a.startOffset, a.image.length, Zs(a), a.tokenType, !0); - s.root = this.rootNode, r.push(s); - } - let n = this.current, i = !1; - if (n.content.length > 0) { - n.content.push(...r); - return; - } - for (; n.container; ) { - const a = n.container.content.indexOf(n); - if (a > 0) { - n.container.content.splice(a, 0, ...r), i = !0; - break; - } - n = n.container; - } - i || this.rootNode.content.unshift(...r); - } - construct(e) { - const r = this.current; - typeof e.$type == "string" && !e.$infixName && (this.current.astNode = e), e.$cstNode = r; - const n = this.nodeStack.pop(); - n?.content.length === 0 && this.removeNode(n); - } -} -class ld { - get hidden() { - return !1; - } - get astNode() { - const 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); - } -} -class fl extends ld { - 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, r, n, i, a = !1) { - super(), this._hidden = a, this._offset = e, this._tokenType = i, this._length = r, this._range = n; - } -} -class Wl extends ld { - constructor() { - super(...arguments), this.content = new Kl(this); - } - get offset() { - return this.firstNonHiddenNode?.offset ?? 0; - } - get length() { - return this.end - this.offset; - } - get end() { - return this.lastNonHiddenNode?.end ?? 0; - } - get range() { - const e = this.firstNonHiddenNode, r = this.lastNonHiddenNode; - if (e && r) { - if (this._rangeCache === void 0) { - const { range: n } = e, { range: i } = r; - this._rangeCache = { start: n.start, end: i.end.line < n.start.line ? n.start : i.end }; - } - return this._rangeCache; - } else - return { start: Z.create(0, 0), end: Z.create(0, 0) }; - } - get firstNonHiddenNode() { - for (const e of this.content) - if (!e.hidden) - return e; - return this.content[0]; - } - get lastNonHiddenNode() { - for (let e = this.content.length - 1; e >= 0; e--) { - const r = this.content[e]; - if (!r.hidden) - return r; - } - return this.content[this.content.length - 1]; - } -} -class Kl extends Array { - constructor(e) { - super(), this.parent = e, Object.setPrototypeOf(this, Kl.prototype); - } - push(...e) { - return this.addParents(e), super.push(...e); - } - unshift(...e) { - return this.addParents(e), super.unshift(...e); - } - splice(e, r, ...n) { - return this.addParents(n), super.splice(e, r, ...n); - } - addParents(e) { - for (const r of e) - r.container = this.parent; - } -} -class cd extends Wl { - get text() { - return this._text.substring(this.offset, this.end); - } - get fullText() { - return this._text; - } - constructor(e) { - super(), this._text = "", this._text = e ?? ""; - } -} -const dl = Symbol("Datatype"); -function Cs(t) { - return t.$type === dl; -} -const Fc = "​", ud = (t) => t.endsWith(Fc) ? t : t + Fc; -class fd { - constructor(e) { - this._unorderedGroups = /* @__PURE__ */ new Map(), this.allRules = /* @__PURE__ */ new Map(), this.lexer = e.parser.Lexer; - const r = this.lexer.definition, n = e.LanguageMetaData.mode === "production"; - e.shared.profilers.LangiumProfiler?.isActive("parsing") ? this.wrapper = new Bg(r, { - ...e.parser.ParserConfig, - skipValidations: n, - errorMessageProvider: e.parser.ParserErrorMessageProvider - }, e.shared.profilers.LangiumProfiler.createTask("parsing", e.LanguageMetaData.languageId)) : this.wrapper = new hd(r, { - ...e.parser.ParserConfig, - skipValidations: n, - errorMessageProvider: e.parser.ParserErrorMessageProvider - }); - } - alternatives(e, r) { - this.wrapper.wrapOr(e, r); - } - optional(e, r) { - this.wrapper.wrapOption(e, r); - } - many(e, r) { - this.wrapper.wrapMany(e, r); - } - atLeastOne(e, r) { - this.wrapper.wrapAtLeastOne(e, r); - } - 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(); - } -} -class jg extends fd { - get current() { - return this.stack[this.stack.length - 1]; - } - constructor(e) { - super(e), this.nodeBuilder = new Gg(), this.stack = [], this.assignmentMap = /* @__PURE__ */ new Map(), this.operatorPrecedence = /* @__PURE__ */ new Map(), this.linker = e.references.Linker, this.converter = e.parser.ValueConverter, this.astReflection = e.shared.AstReflection; - } - rule(e, r) { - const n = this.computeRuleType(e); - let i; - Ia(e) && (i = e.name, this.registerPrecedenceMap(e)); - const a = this.wrapper.DEFINE_RULE(ud(e.name), this.startImplementation(n, i, r).bind(this)); - return this.allRules.set(e.name, a), qt(e) && e.entry && (this.mainRule = a), a; - } - registerPrecedenceMap(e) { - const r = e.name, n = /* @__PURE__ */ new Map(); - for (let i = 0; i < e.operators.precedences.length; i++) { - const a = e.operators.precedences[i]; - for (const s of a.operators) - n.set(s.value, { - precedence: i, - rightAssoc: a.associativity === "right" - }); - } - this.operatorPrecedence.set(r, n); - } - computeRuleType(e) { - return Ia(e) ? ui(e) : e.fragment ? void 0 : yf(e) ? dl : ui(e); - } - parse(e, r = {}) { - this.nodeBuilder.buildRootNode(e); - const n = this.lexerResult = this.lexer.tokenize(e); - this.wrapper.input = n.tokens; - const i = r.rule ? this.allRules.get(r.rule) : this.mainRule; - if (!i) - throw new Error(r.rule ? `No rule found with name '${r.rule}'` : "No main rule available."); - const a = this.doParse(i); - return this.nodeBuilder.addHiddenNodes(n.hidden), this.unorderedGroups.clear(), this.lexerResult = void 0, Bs(a, { deep: !0 }), { - value: a, - lexerErrors: n.errors, - lexerReport: n.report, - parserErrors: this.wrapper.errors - }; - } - doParse(e) { - let r = this.wrapper.rule(e); - if (this.stack.length > 0 && (r = this.construct()), r === 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 r; - } - startImplementation(e, r, n) { - return (i) => { - const a = !this.isRecording() && e !== void 0; - if (a) { - const s = { $type: e }; - this.stack.push(s), e === dl ? s.value = "" : r !== void 0 && (s.$infixName = r); - } - return n(i), a ? this.construct() : void 0; - }; - } - extractHiddenTokens(e) { - const r = this.lexerResult.hidden; - if (!r.length) - return []; - const n = e.startOffset; - for (let i = 0; i < r.length; i++) - if (r[i].startOffset > n) - return r.splice(0, i); - return r.splice(0, r.length); - } - consume(e, r, n) { - const i = this.wrapper.wrapConsume(e, r); - if (!this.isRecording() && this.isValidToken(i)) { - const a = this.extractHiddenTokens(i); - this.nodeBuilder.addHiddenNodes(a); - const s = this.nodeBuilder.buildLeafNode(i, n), { assignment: o, crossRef: l } = this.getAssignment(n), c = this.current; - if (o) { - const u = wr(n) ? i.image : this.converter.convert(i.image, s); - this.assign(o.operator, o.feature, u, s, l); - } else if (Cs(c)) { - let u = i.image; - wr(n) || (u = this.converter.convert(u, s).toString()), c.value += u; - } - } - } - /** - * Most consumed parser tokens are valid. However there are two cases in which they are not valid: - * - * 1. They were inserted during error recovery by the parser. These tokens don't really exist and should not be further processed - * 2. They contain invalid token ranges. This might include the special EOF token, or other tokens produced by invalid token builders. - */ - isValidToken(e) { - return !e.isInsertedInRecovery && !isNaN(e.startOffset) && typeof e.endOffset == "number" && !isNaN(e.endOffset); - } - subrule(e, r, n, i, a) { - let s; - !this.isRecording() && !n && (s = this.nodeBuilder.buildCompositeNode(i)); - let o; - try { - o = this.wrapper.wrapSubrule(e, r, a); - } finally { - this.isRecording() || (o === void 0 && !n && (o = this.construct()), o !== void 0 && s && s.length > 0 && this.performSubruleAssignment(o, i, s)); - } - } - performSubruleAssignment(e, r, n) { - const { assignment: i, crossRef: a } = this.getAssignment(r); - if (i) - this.assign(i.operator, i.feature, e, n, a); - else if (!i) { - const s = this.current; - if (Cs(s)) - s.value += e.toString(); - else if (typeof e == "object" && e) { - const l = this.assignWithoutOverride(e, s); - this.stack.pop(), this.stack.push(l); - } - } - } - action(e, r) { - if (!this.isRecording()) { - let n = this.current; - if (r.feature && r.operator) { - n = this.construct(), this.nodeBuilder.removeNode(n.$cstNode), this.nodeBuilder.buildCompositeNode(r).content.push(n.$cstNode); - const a = { $type: e }; - this.stack.push(a), this.assign(r.operator, r.feature, n, n.$cstNode); - } else - n.$type = e; - } - } - construct() { - if (this.isRecording()) - return; - const e = this.stack.pop(); - return this.nodeBuilder.construct(e), "$infixName" in e ? this.constructInfix(e, this.operatorPrecedence.get(e.$infixName)) : Cs(e) ? this.converter.convert(e.value, e.$cstNode) : (Hd(this.astReflection, e), e); - } - constructInfix(e, r) { - const n = e.parts; - if (!Array.isArray(n) || n.length === 0) - return; - const i = e.operators; - if (!Array.isArray(i) || n.length < 2) - return n[0]; - let a = 0, s = -1; - for (let b = 0; b < i.length; b++) { - const I = i[b], k = r.get(I) ?? { - precedence: 1 / 0, - rightAssoc: !1 - }; - k.precedence > s ? (s = k.precedence, a = b) : k.precedence === s && (k.rightAssoc || (a = b)); - } - const o = i.slice(0, a), l = i.slice(a + 1), c = n.slice(0, a + 1), u = n.slice(a + 1), d = { - $infixName: e.$infixName, - $type: e.$type, - $cstNode: e.$cstNode, - parts: c, - operators: o - }, p = { - $infixName: e.$infixName, - $type: e.$type, - $cstNode: e.$cstNode, - parts: u, - operators: l - }, m = this.constructInfix(d, r), A = this.constructInfix(p, r); - return { - $type: e.$type, - $cstNode: e.$cstNode, - left: m, - operator: i[a], - right: A - }; - } - getAssignment(e) { - if (!this.assignmentMap.has(e)) { - const r = Ja(e, kr); - this.assignmentMap.set(e, { - assignment: r, - crossRef: r && Qa(r.terminal) ? r.terminal.isMulti ? "multi" : "single" : void 0 - }); - } - return this.assignmentMap.get(e); - } - assign(e, r, n, i, a) { - const s = this.current; - let o; - switch (a === "single" && typeof n == "string" ? o = this.linker.buildReference(s, r, i, n) : a === "multi" && typeof n == "string" ? o = this.linker.buildMultiReference(s, r, i, n) : o = n, e) { - case "=": { - s[r] = o; - break; - } - case "?=": { - s[r] = !0; - break; - } - case "+=": - Array.isArray(s[r]) || (s[r] = []), s[r].push(o); - } - } - assignWithoutOverride(e, r) { - for (const [i, a] of Object.entries(r)) { - const s = e[i]; - s === void 0 ? e[i] = a : Array.isArray(s) && Array.isArray(a) && (a.push(...s), e[i] = a); - } - const n = e.$cstNode; - return n && (n.astNode = void 0, e.$cstNode = void 0), e; - } - get definitionErrors() { - return this.wrapper.definitionErrors; - } -} -class zg { - buildMismatchTokenMessage(e) { - return tn.buildMismatchTokenMessage(e); - } - buildNotAllInputParsedMessage(e) { - return tn.buildNotAllInputParsedMessage(e); - } - buildNoViableAltMessage(e) { - return tn.buildNoViableAltMessage(e); - } - buildEarlyExitMessage(e) { - return tn.buildEarlyExitMessage(e); - } -} -class dd extends zg { - buildMismatchTokenMessage({ expected: e, actual: r }) { - 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 \`${r.image}\`.`; - } - buildNotAllInputParsedMessage({ firstRedundant: e }) { - return `Expecting end of file but found \`${e.image}\`.`; - } -} -class Ug extends fd { - constructor() { - super(...arguments), this.tokens = [], this.elementStack = [], this.lastElementStack = [], this.nextTokenIndex = 0, this.stackSize = 0; - } - action() { - } - construct() { - } - parse(e) { - this.resetState(); - const r = this.lexer.tokenize(e, { mode: "partial" }); - return this.tokens = r.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, r) { - const n = this.wrapper.DEFINE_RULE(ud(e.name), this.startImplementation(r).bind(this)); - return this.allRules.set(e.name, n), e.entry && (this.mainRule = n), n; - } - resetState() { - this.elementStack = [], this.lastElementStack = [], this.nextTokenIndex = 0, this.stackSize = 0; - } - startImplementation(e) { - return (r) => { - const n = this.keepStackSize(); - try { - e(r); - } finally { - this.resetStackSize(n); - } - }; - } - removeUnexpectedElements() { - this.elementStack.splice(this.stackSize); - } - keepStackSize() { - const e = this.elementStack.length; - return this.stackSize = e, e; - } - resetStackSize(e) { - this.removeUnexpectedElements(), this.stackSize = e; - } - consume(e, r, n) { - this.wrapper.wrapConsume(e, r), this.isRecording() || (this.lastElementStack = [...this.elementStack, n], this.nextTokenIndex = this.currIdx + 1); - } - subrule(e, r, n, i, a) { - this.before(i), this.wrapper.wrapSubrule(e, r, a), this.after(i); - } - before(e) { - this.isRecording() || this.elementStack.push(e); - } - after(e) { - if (!this.isRecording()) { - const r = this.elementStack.lastIndexOf(e); - r >= 0 && this.elementStack.splice(r); - } - } - get currIdx() { - return this.wrapper.currIdx; - } -} -const qg = { - recoveryEnabled: !0, - nodeLocationTracking: "full", - skipValidations: !0, - errorMessageProvider: new dd() -}; -class hd extends Xm { - constructor(e, r) { - const n = r && "maxLookahead" in r; - super(e, { - ...qg, - lookaheadStrategy: n ? new Gl({ maxLookahead: r.maxLookahead }) : new gg({ - // If validations are skipped, don't log the lookahead warnings - logging: r.skipValidations ? () => { - } : void 0 - }), - ...r - }); - } - get IS_RECORDING() { - return this.RECORDING_PHASE; - } - DEFINE_RULE(e, r, n) { - return this.RULE(e, r, n); - } - wrapSelfAnalysis() { - this.performSelfAnalysis(); - } - wrapConsume(e, r) { - return this.consume(e, r, void 0); - } - wrapSubrule(e, r, n) { - return this.subrule(e, r, { - ARGS: [n] - }); - } - wrapOr(e, r) { - this.or(e, r); - } - wrapOption(e, r) { - this.option(e, r); - } - wrapMany(e, r) { - this.many(e, r); - } - wrapAtLeastOne(e, r) { - this.atLeastOne(e, r); - } - rule(e) { - return e.call(this, {}); - } -} -class Bg extends hd { - constructor(e, r, n) { - super(e, r), this.task = n; - } - 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, r, n) { - this.task.startSubTask(this.ruleName(r)); - try { - return super.subrule(e, r, n); - } finally { - this.task.stopSubTask(this.ruleName(r)); - } - } -} -function pd(t, e, r) { - return Wg({ - parser: e, - tokens: r, - ruleNames: /* @__PURE__ */ new Map() - }, t), e; -} -function Wg(t, e) { - const r = df(e, !1), n = fe(e.rules).filter(qt).filter((a) => r.has(a)); - for (const a of n) { - const s = { - ...t, - consume: 1, - optional: 1, - subrule: 1, - many: 1, - or: 1 - }; - t.parser.rule(a, Ir(s, a.definition)); - } - const i = fe(e.rules).filter(Ia).filter((a) => r.has(a)); - for (const a of i) - t.parser.rule(a, Kg(t, a)); -} -function Kg(t, e) { - const r = e.call.rule.ref; - if (!r) - throw new Error("Could not resolve reference to infix operator rule: " + e.call.rule.$refText); - if (Bt(r)) - throw new Error("Cannot use terminal rule in infix expression"); - const n = e.operators.precedences.flatMap((m) => m.operators), i = { - $type: "Group", - elements: [] - }, a = { - $container: i, - $type: "Assignment", - feature: "parts", - operator: "+=", - terminal: e.call - }, s = { - $container: i, - $type: "Group", - elements: [], - cardinality: "*" - }; - i.elements.push(a, s); - const l = { - $container: s, - $type: "Assignment", - feature: "operators", - operator: "+=", - terminal: { - $type: "Alternatives", - elements: n - } - }, c = { - ...a, - $container: s - }; - s.elements.push(l, c); - const d = n.map((m) => t.tokens[m.value]).map((m, A) => ({ - ALT: () => t.parser.consume(A, m, l) - })); - let p; - return (m) => { - p ?? (p = Vl(t, r)), t.parser.subrule(0, p, !1, a, m), t.parser.many(0, { - DEF: () => { - t.parser.alternatives(0, d), t.parser.subrule(1, p, !1, c, m); - } - }); - }; -} -function Ir(t, e, r = !1) { - let n; - if (wr(e)) - n = Qg(t, e); - else if (Za(e)) - n = Vg(t, e); - else if (kr(e)) - n = Ir(t, e.terminal); - else if (Qa(e)) - n = md(t, e); - else if (br(e)) - n = Hg(t, e); - else if (af(e)) - n = Yg(t, e); - else if (of(e)) - n = Jg(t, e); - else if (Il(e)) - n = Zg(t, e); - else if (eh(e)) { - const i = t.consume++; - n = () => t.parser.consume(i, Qt, e); - } else - throw new cf(e.$cstNode, `Unexpected element type: ${e.$type}`); - return gd(t, r ? void 0 : Ya(e), n, e.cardinality); -} -function Vg(t, e) { - const r = ui(e); - return () => t.parser.action(r, e); -} -function Hg(t, e) { - const r = e.rule.ref; - if (Ai(r)) { - const n = t.subrule++, i = qt(r) && r.fragment, a = e.arguments.length > 0 ? Xg(r, e.arguments) : () => ({}); - let s; - return (o) => { - s ?? (s = Vl(t, r)), t.parser.subrule(n, s, i, e, a(o)); - }; - } else if (Bt(r)) { - const n = t.consume++, i = hl(t, r.name); - return () => t.parser.consume(n, i, e); - } else if (r) - $i(); - else - throw new cf(e.$cstNode, `Undefined rule: ${e.rule.$refText}`); -} -function Xg(t, e) { - if (e.some((n) => n.calledByName)) { - const n = e.map((i) => ({ - parameterName: i.parameter?.ref?.name, - predicate: gt(i.value) - })); - return (i) => { - const a = {}; - for (const { parameterName: s, predicate: o } of n) - s && (a[s] = o(i)); - return a; - }; - } else { - const n = e.map((i) => gt(i.value)); - return (i) => { - const a = {}; - for (let s = 0; s < n.length; s++) - if (s < t.parameters.length) { - const o = t.parameters[s].name, l = n[s]; - a[o] = l(i); - } - return a; - }; - } -} -function gt(t) { - if (Qd(t)) { - const e = gt(t.left), r = gt(t.right); - return (n) => e(n) || r(n); - } else if (Zd(t)) { - const e = gt(t.left), r = gt(t.right); - return (n) => e(n) && r(n); - } else if (nh(t)) { - const e = gt(t.value); - return (r) => !e(r); - } else if (ih(t)) { - const e = t.parameter.ref.name; - return (r) => r !== void 0 && r[e] === !0; - } else if (Yd(t)) { - const e = !!t.true; - return () => e; - } - $i(); -} -function Yg(t, e) { - if (e.elements.length === 1) - return Ir(t, e.elements[0]); - { - const r = []; - for (const i of e.elements) { - const a = { - // Since we handle the guard condition in the alternative already - // We can ignore the group guard condition inside - ALT: Ir(t, i, !0) - }, s = Ya(i); - s && (a.GATE = gt(s)), r.push(a); - } - const n = t.or++; - return (i) => t.parser.alternatives(n, r.map((a) => { - const s = { - ALT: () => a.ALT(i) - }, o = a.GATE; - return o && (s.GATE = () => o(i)), s; - })); - } -} -function Jg(t, e) { - if (e.elements.length === 1) - return Ir(t, e.elements[0]); - const r = []; - for (const o of e.elements) { - const l = { - // Since we handle the guard condition in the alternative already - // We can ignore the group guard condition inside - ALT: Ir(t, o, !0) - }, c = Ya(o); - c && (l.GATE = gt(c)), r.push(l); - } - const n = t.or++, i = (o, l) => { - const c = l.getRuleStack().join("-"); - return `uGroup_${o}_${c}`; - }, a = (o) => t.parser.alternatives(n, r.map((l, c) => { - const u = { ALT: () => !0 }, d = t.parser; - u.ALT = () => { - if (l.ALT(o), !d.isRecording()) { - const m = i(n, d); - d.unorderedGroups.get(m) || d.unorderedGroups.set(m, []); - const A = d.unorderedGroups.get(m); - typeof A?.[c] > "u" && (A[c] = !0); - } - }; - const p = l.GATE; - return p ? u.GATE = () => p(o) : u.GATE = () => !d.unorderedGroups.get(i(n, d))?.[c], u; - })), s = gd(t, Ya(e), a, "*"); - return (o) => { - s(o), t.parser.isRecording() || t.parser.unorderedGroups.delete(i(n, t.parser)); - }; -} -function Zg(t, e) { - const r = e.elements.map((n) => Ir(t, n)); - return (n) => r.forEach((i) => i(n)); -} -function Ya(t) { - if (Il(t)) - return t.guardCondition; -} -function md(t, e, r = e.terminal) { - if (r) - if (br(r) && qt(r.rule.ref)) { - const n = r.rule.ref, i = t.subrule++; - let a; - return (s) => { - a ?? (a = Vl(t, n)), t.parser.subrule(i, a, !1, e, s); - }; - } else if (br(r) && Bt(r.rule.ref)) { - const n = t.consume++, i = hl(t, r.rule.ref.name); - return () => t.parser.consume(n, i, e); - } else if (wr(r)) { - const n = t.consume++, i = hl(t, r.value); - return () => t.parser.consume(n, i, e); - } else - throw new Error("Could not build cross reference parser"); - else { - if (!e.type.ref) - throw new Error("Could not resolve reference to type: " + e.type.$refText); - const i = mf(e.type.ref)?.terminal; - if (!i) - throw new Error("Could not find name assignment for type: " + ui(e.type.ref)); - return md(t, e, i); - } -} -function Qg(t, e) { - const r = t.consume++, n = t.tokens[e.value]; - if (!n) - throw new Error("Could not find token for keyword: " + e.value); - return () => t.parser.consume(r, n, e); -} -function gd(t, e, r, n) { - const i = e && gt(e); - if (!n) - if (i) { - const a = t.or++; - return (s) => t.parser.alternatives(a, [ - { - ALT: () => r(s), - GATE: () => i(s) - }, - { - ALT: Oc(), - GATE: () => !i(s) - } - ]); - } else - return r; - if (n === "*") { - const a = t.many++; - return (s) => t.parser.many(a, { - DEF: () => r(s), - GATE: i ? () => i(s) : void 0 - }); - } else if (n === "+") { - const a = t.many++; - if (i) { - const s = t.or++; - return (o) => t.parser.alternatives(s, [ - { - ALT: () => t.parser.atLeastOne(a, { - DEF: () => r(o) - }), - GATE: () => i(o) - }, - { - ALT: Oc(), - GATE: () => !i(o) - } - ]); - } else - return (s) => t.parser.atLeastOne(a, { - DEF: () => r(s) - }); - } else if (n === "?") { - const a = t.optional++; - return (s) => t.parser.optional(a, { - DEF: () => r(s), - GATE: i ? () => i(s) : void 0 - }); - } else - $i(); -} -function Vl(t, e) { - const r = ey(t, e), n = t.parser.getRule(r); - if (!n) - throw new Error(`Rule "${r}" not found."`); - return n; -} -function ey(t, e) { - if (Ai(e)) - return e.name; - if (t.ruleNames.has(e)) - return t.ruleNames.get(e); - { - let r = e, n = r.$container, i = e.$type; - for (; !qt(n); ) - (Il(n) || af(n) || of(n)) && (i = n.elements.indexOf(r).toString() + ":" + i), r = n, n = n.$container; - return i = n.name + ":" + i, t.ruleNames.set(e, i), i; - } -} -function hl(t, e) { - const r = t.tokens[e]; - if (!r) - throw new Error(`Token "${e}" not found."`); - return r; -} -function ty(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new Ug(t); - return pd(e, n, r.definition), n.finalize(), n; -} -function ry(t) { - const e = ny(t); - return e.finalize(), e; -} -function ny(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new jg(t); - return pd(e, n, r.definition); -} -class yd { - constructor() { - this.diagnostics = []; - } - buildTokens(e, r) { - const n = fe(df(e, !1)), i = this.buildTerminalTokens(n), a = this.buildKeywordTokens(n, i, r); - return a.push(...i), a; - } - // eslint-disable-next-line @typescript-eslint/no-unused-vars - flushLexingReport(e) { - return { diagnostics: this.popDiagnostics() }; - } - popDiagnostics() { - const e = [...this.diagnostics]; - return this.diagnostics = [], e; - } - buildTerminalTokens(e) { - return e.filter(Bt).filter((r) => !r.fragment).map((r) => this.buildTerminalToken(r)).toArray(); - } - buildTerminalToken(e) { - const r = Ol(e), n = this.requiresCustomPattern(r) ? this.regexPatternFunction(r) : r, i = { - name: e.name, - PATTERN: n - }; - return typeof n == "function" && (i.LINE_BREAKS = !0), e.hidden && (i.GROUP = ff(r) ? We.SKIPPED : "hidden"), i; - } - requiresCustomPattern(e) { - return !!(e.flags.includes("u") || e.flags.includes("s")); - } - regexPatternFunction(e) { - const r = new RegExp(e, e.flags + "y"); - return (n, i) => (r.lastIndex = i, r.exec(n)); - } - buildKeywordTokens(e, r, n) { - return e.filter(Ai).flatMap((i) => Ei(i).filter(wr)).distinct((i) => i.value).toArray().sort((i, a) => a.value.length - i.value.length).map((i) => this.buildKeywordToken(i, r, !!n?.caseInsensitive)); - } - buildKeywordToken(e, r, n) { - const i = this.buildKeywordPattern(e, n), a = { - name: e.value, - PATTERN: i, - LONGER_ALT: this.findLongerAlt(e, r) - }; - return typeof i == "function" && (a.LINE_BREAKS = !0), a; - } - buildKeywordPattern(e, r) { - return r ? new RegExp(ts(e.value), "i") : e.value; - } - findLongerAlt(e, r) { - return r.reduce((n, i) => { - const a = i?.PATTERN; - return a?.source && bh("^" + a.source + "$", e.value) && n.push(i), n; - }, []); - } -} -class Td { - convert(e, r) { - let n = r.grammarSource; - if (Qa(n) && (n = Ph(n)), br(n)) { - const i = n.rule.ref; - if (!i) - throw new Error("This cst node was not parsed by a rule."); - return this.runConverter(i, e, r); - } - return e; - } - // eslint-disable-next-line @typescript-eslint/no-unused-vars - runConverter(e, r, n) { - switch (e.name.toUpperCase()) { - case "INT": - return xt.convertInt(r); - case "STRING": - return xt.convertString(r); - case "ID": - return xt.convertID(r); - } - switch (Gh(e)?.toLowerCase()) { - case "number": - return xt.convertNumber(r); - case "boolean": - return xt.convertBoolean(r); - case "bigint": - return xt.convertBigint(r); - case "date": - return xt.convertDate(r); - default: - return r; - } - } -} -var xt; -(function(t) { - function e(c) { - let u = ""; - for (let d = 1; d < c.length - 1; d++) { - const p = c.charAt(d); - if (p === "\\") { - const m = c.charAt(++d); - u += r(m); - } else - u += p; - } - return u; - } - t.convertString = e; - function r(c) { - switch (c) { - case "b": - return "\b"; - case "f": - return "\f"; - case "n": - return ` -`; - case "r": - return "\r"; - case "t": - return " "; - case "v": - return "\v"; - case "0": - return "\0"; - default: - return c; - } - } - function n(c) { - return c.charAt(0) === "^" ? c.substring(1) : c; - } - t.convertID = n; - function i(c) { - return parseInt(c); - } - t.convertInt = i; - function a(c) { - return BigInt(c); - } - t.convertBigint = a; - function s(c) { - return new Date(c); - } - t.convertDate = s; - function o(c) { - return Number(c); - } - t.convertNumber = o; - function l(c) { - return c.toLowerCase() === "true"; - } - t.convertBoolean = l; -})(xt || (xt = {})); -var ar = {}, ta = {}, Gc; -function Or() { - if (Gc) return ta; - Gc = 1, Object.defineProperty(ta, "__esModule", { value: !0 }); - let t; - function e() { - if (t === void 0) - throw new Error("No runtime abstraction layer installed"); - return t; - } - return (function(r) { - function n(i) { - if (i === void 0) - throw new Error("No runtime abstraction layer provided"); - t = i; - } - r.install = n; - })(e || (e = {})), ta.default = e, ta; -} -var Pe = {}, jc; -function bi() { - if (jc) return Pe; - jc = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.stringArray = Pe.array = Pe.func = Pe.error = Pe.number = Pe.string = Pe.boolean = void 0; - function t(o) { - return o === !0 || o === !1; - } - Pe.boolean = t; - function e(o) { - return typeof o == "string" || o instanceof String; - } - Pe.string = e; - function r(o) { - return typeof o == "number" || o instanceof Number; - } - Pe.number = r; - function n(o) { - return o instanceof Error; - } - Pe.error = n; - function i(o) { - return typeof o == "function"; - } - Pe.func = i; - function a(o) { - return Array.isArray(o); - } - Pe.array = a; - function s(o) { - return a(o) && o.every((l) => e(l)); - } - return Pe.stringArray = s, Pe; -} -var sr = {}, zc; -function mn() { - if (zc) return sr; - zc = 1, Object.defineProperty(sr, "__esModule", { value: !0 }), sr.Emitter = sr.Event = void 0; - const t = Or(); - var e; - (function(i) { - const a = { dispose() { - } }; - i.None = function() { - return a; - }; - })(e || (sr.Event = e = {})); - class r { - add(a, s = null, o) { - this._callbacks || (this._callbacks = [], this._contexts = []), this._callbacks.push(a), this._contexts.push(s), Array.isArray(o) && o.push({ dispose: () => this.remove(a, s) }); - } - remove(a, s = null) { - if (!this._callbacks) - return; - let o = !1; - for (let l = 0, c = this._callbacks.length; l < c; l++) - if (this._callbacks[l] === a) - if (this._contexts[l] === s) { - this._callbacks.splice(l, 1), this._contexts.splice(l, 1); - return; - } else - o = !0; - if (o) - throw new Error("When adding a listener with a context, you should remove it with the same context"); - } - invoke(...a) { - if (!this._callbacks) - return []; - const s = [], o = this._callbacks.slice(0), l = this._contexts.slice(0); - for (let c = 0, u = o.length; c < u; c++) - try { - s.push(o[c].apply(l[c], a)); - } catch (d) { - (0, t.default)().console.error(d); - } - return s; - } - isEmpty() { - return !this._callbacks || this._callbacks.length === 0; - } - dispose() { - this._callbacks = void 0, this._contexts = void 0; - } - } - class n { - constructor(a) { - this._options = a; - } - /** - * For the public to allow to subscribe - * to events from this Emitter - */ - get event() { - return this._event || (this._event = (a, s, o) => { - this._callbacks || (this._callbacks = new r()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(a, s); - const l = { - dispose: () => { - this._callbacks && (this._callbacks.remove(a, s), l.dispose = n._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this)); - } - }; - return Array.isArray(o) && o.push(l), l; - }), this._event; - } - /** - * To be kept private to fire an event to - * subscribers - */ - fire(a) { - this._callbacks && this._callbacks.invoke.call(this._callbacks, a); - } - dispose() { - this._callbacks && (this._callbacks.dispose(), this._callbacks = void 0); - } - } - return sr.Emitter = n, n._noop = function() { - }, sr; -} -var Uc; -function us() { - if (Uc) return ar; - Uc = 1, Object.defineProperty(ar, "__esModule", { value: !0 }), ar.CancellationTokenSource = ar.CancellationToken = void 0; - const t = Or(), e = bi(), r = mn(); - var n; - (function(o) { - o.None = Object.freeze({ - isCancellationRequested: !1, - onCancellationRequested: r.Event.None - }), o.Cancelled = Object.freeze({ - isCancellationRequested: !0, - onCancellationRequested: r.Event.None - }); - function l(c) { - const u = c; - return u && (u === o.None || u === o.Cancelled || e.boolean(u.isCancellationRequested) && !!u.onCancellationRequested); - } - o.is = l; - })(n || (ar.CancellationToken = n = {})); - const i = Object.freeze(function(o, l) { - const c = (0, t.default)().timer.setTimeout(o.bind(l), 0); - return { dispose() { - c.dispose(); - } }; - }); - class a { - 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 r.Emitter()), this._emitter.event); - } - dispose() { - this._emitter && (this._emitter.dispose(), this._emitter = void 0); - } - } - class s { - get token() { - return this._token || (this._token = new a()), this._token; - } - cancel() { - this._token ? this._token.cancel() : this._token = n.Cancelled; - } - dispose() { - this._token ? this._token instanceof a && this._token.dispose() : this._token = n.None; - } - } - return ar.CancellationTokenSource = s, ar; -} -var he = us(); -function iy() { - return new Promise((t) => { - typeof setImmediate > "u" ? setTimeout(t, 0) : setImmediate(t); - }); -} -let ka = 0, ay = 10; -function sy() { - return ka = performance.now(), new he.CancellationTokenSource(); -} -const rn = Symbol("OperationCancelled"); -function fs(t) { - return t === rn; -} -async function Ue(t) { - if (t === he.CancellationToken.None) - return; - const e = performance.now(); - if (e - ka >= ay && (ka = e, await iy(), ka = performance.now()), t.isCancellationRequested) - throw rn; -} -class Hl { - constructor() { - this.promise = new Promise((e, r) => { - this.resolve = (n) => (e(n), this), this.reject = (n) => (r(n), this); - }); - } -} -class Ti { - constructor(e, r, n, i) { - this._uri = e, this._languageId = r, this._version = n, this._content = i, this._lineOffsets = void 0; - } - get uri() { - return this._uri; - } - get languageId() { - return this._languageId; - } - get version() { - return this._version; - } - getText(e) { - if (e) { - const r = this.offsetAt(e.start), n = this.offsetAt(e.end); - return this._content.substring(r, n); - } - return this._content; - } - update(e, r) { - for (const n of e) - if (Ti.isIncremental(n)) { - const i = vd(n.range), a = this.offsetAt(i.start), s = this.offsetAt(i.end); - this._content = this._content.substring(0, a) + n.text + this._content.substring(s, this._content.length); - const o = Math.max(i.start.line, 0), l = Math.max(i.end.line, 0); - let c = this._lineOffsets; - const u = qc(n.text, !1, a); - if (l - o === u.length) - for (let p = 0, m = u.length; p < m; p++) - c[p + o + 1] = u[p]; - else - u.length < 1e4 ? c.splice(o + 1, l - o, ...u) : this._lineOffsets = c = c.slice(0, o + 1).concat(u, c.slice(l + 1)); - const d = n.text.length - (s - a); - if (d !== 0) - for (let p = o + 1 + u.length, m = c.length; p < m; p++) - c[p] = c[p] + d; - } else if (Ti.isFull(n)) - this._content = n.text, this._lineOffsets = void 0; - else - throw new Error("Unknown change event received"); - this._version = r; - } - getLineOffsets() { - return this._lineOffsets === void 0 && (this._lineOffsets = qc(this._content, !0)), this._lineOffsets; - } - positionAt(e) { - e = Math.max(Math.min(e, this._content.length), 0); - const r = this.getLineOffsets(); - let n = 0, i = r.length; - if (i === 0) - return { line: 0, character: e }; - for (; n < i; ) { - const s = Math.floor((n + i) / 2); - r[s] > e ? i = s : n = s + 1; - } - const a = n - 1; - return e = this.ensureBeforeEOL(e, r[a]), { line: a, character: e - r[a] }; - } - offsetAt(e) { - const r = this.getLineOffsets(); - if (e.line >= r.length) - return this._content.length; - if (e.line < 0) - return 0; - const n = r[e.line]; - if (e.character <= 0) - return n; - const i = e.line + 1 < r.length ? r[e.line + 1] : this._content.length, a = Math.min(n + e.character, i); - return this.ensureBeforeEOL(a, n); - } - ensureBeforeEOL(e, r) { - for (; e > r && Rd(this._content.charCodeAt(e - 1)); ) - e--; - return e; - } - get lineCount() { - return this.getLineOffsets().length; - } - static isIncremental(e) { - const r = e; - return r != null && typeof r.text == "string" && r.range !== void 0 && (r.rangeLength === void 0 || typeof r.rangeLength == "number"); - } - static isFull(e) { - const r = e; - return r != null && typeof r.text == "string" && r.range === void 0 && r.rangeLength === void 0; - } -} -var pl; -(function(t) { - function e(i, a, s, o) { - return new Ti(i, a, s, o); - } - t.create = e; - function r(i, a, s) { - if (i instanceof Ti) - return i.update(a, s), i; - throw new Error("TextDocument.update: document must be created by TextDocument.create"); - } - t.update = r; - function n(i, a) { - const s = i.getText(), o = ml(a.map(oy), (u, d) => { - const p = u.range.start.line - d.range.start.line; - return p === 0 ? u.range.start.character - d.range.start.character : p; - }); - let l = 0; - const c = []; - for (const u of o) { - const d = i.offsetAt(u.range.start); - if (d < l) - throw new Error("Overlapping edit"); - d > l && c.push(s.substring(l, d)), u.newText.length && c.push(u.newText), l = i.offsetAt(u.range.end); - } - return c.push(s.substr(l)), c.join(""); - } - t.applyEdits = n; -})(pl || (pl = {})); -function ml(t, e) { - if (t.length <= 1) - return t; - const r = t.length / 2 | 0, n = t.slice(0, r), i = t.slice(r); - ml(n, e), ml(i, e); - let a = 0, s = 0, o = 0; - for (; a < n.length && s < i.length; ) - e(n[a], i[s]) <= 0 ? t[o++] = n[a++] : t[o++] = i[s++]; - for (; a < n.length; ) - t[o++] = n[a++]; - for (; s < i.length; ) - t[o++] = i[s++]; - return t; -} -function qc(t, e, r = 0) { - const n = e ? [r] : []; - for (let i = 0; i < t.length; i++) { - const a = t.charCodeAt(i); - Rd(a) && (a === 13 && i + 1 < t.length && t.charCodeAt(i + 1) === 10 && i++, n.push(r + i + 1)); - } - return n; -} -function Rd(t) { - return t === 13 || t === 10; -} -function vd(t) { - const e = t.start, r = t.end; - return e.line > r.line || e.line === r.line && e.character > r.character ? { start: r, end: e } : t; -} -function oy(t) { - const e = vd(t.range); - return e !== t.range ? { newText: t.newText, range: e } : t; -} -var Ed; -(() => { - var t = { 975: (N) => { - function T(y) { - if (typeof y != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(y)); - } - function g(y, R) { - for (var E, L = "", D = 0, x = -1, j = 0, F = 0; F <= y.length; ++F) { - if (F < y.length) E = y.charCodeAt(F); - else { - if (E === 47) break; - E = 47; - } - if (E === 47) { - if (!(x === F - 1 || j === 1)) if (x !== F - 1 && j === 2) { - if (L.length < 2 || D !== 2 || L.charCodeAt(L.length - 1) !== 46 || L.charCodeAt(L.length - 2) !== 46) { - if (L.length > 2) { - var te = L.lastIndexOf("/"); - if (te !== L.length - 1) { - te === -1 ? (L = "", D = 0) : D = (L = L.slice(0, te)).length - 1 - L.lastIndexOf("/"), x = F, j = 0; - continue; - } - } else if (L.length === 2 || L.length === 1) { - L = "", D = 0, x = F, j = 0; - continue; - } - } - R && (L.length > 0 ? L += "/.." : L = "..", D = 2); - } else L.length > 0 ? L += "/" + y.slice(x + 1, F) : L = y.slice(x + 1, F), D = F - x - 1; - x = F, j = 0; - } else E === 46 && j !== -1 ? ++j : j = -1; - } - return L; - } - var $ = { resolve: function() { - for (var y, R = "", E = !1, L = arguments.length - 1; L >= -1 && !E; L--) { - var D; - L >= 0 ? D = arguments[L] : (y === void 0 && (y = process.cwd()), D = y), T(D), D.length !== 0 && (R = D + "/" + R, E = D.charCodeAt(0) === 47); - } - return R = g(R, !E), E ? R.length > 0 ? "/" + R : "/" : R.length > 0 ? R : "."; - }, normalize: function(y) { - if (T(y), y.length === 0) return "."; - var R = y.charCodeAt(0) === 47, E = y.charCodeAt(y.length - 1) === 47; - return (y = g(y, !R)).length !== 0 || R || (y = "."), y.length > 0 && E && (y += "/"), R ? "/" + y : y; - }, isAbsolute: function(y) { - return T(y), y.length > 0 && y.charCodeAt(0) === 47; - }, join: function() { - if (arguments.length === 0) return "."; - for (var y, R = 0; R < arguments.length; ++R) { - var E = arguments[R]; - T(E), E.length > 0 && (y === void 0 ? y = E : y += "/" + E); - } - return y === void 0 ? "." : $.normalize(y); - }, relative: function(y, R) { - if (T(y), T(R), y === R || (y = $.resolve(y)) === (R = $.resolve(R))) return ""; - for (var E = 1; E < y.length && y.charCodeAt(E) === 47; ++E) ; - for (var L = y.length, D = L - E, x = 1; x < R.length && R.charCodeAt(x) === 47; ++x) ; - for (var j = R.length - x, F = D < j ? D : j, te = -1, z = 0; z <= F; ++z) { - if (z === F) { - if (j > F) { - if (R.charCodeAt(x + z) === 47) return R.slice(x + z + 1); - if (z === 0) return R.slice(x + z); - } else D > F && (y.charCodeAt(E + z) === 47 ? te = z : z === 0 && (te = 0)); - break; - } - var Q = y.charCodeAt(E + z); - if (Q !== R.charCodeAt(x + z)) break; - Q === 47 && (te = z); - } - var _e = ""; - for (z = E + te + 1; z <= L; ++z) z !== L && y.charCodeAt(z) !== 47 || (_e.length === 0 ? _e += ".." : _e += "/.."); - return _e.length > 0 ? _e + R.slice(x + te) : (x += te, R.charCodeAt(x) === 47 && ++x, R.slice(x)); - }, _makeLong: function(y) { - return y; - }, dirname: function(y) { - if (T(y), y.length === 0) return "."; - for (var R = y.charCodeAt(0), E = R === 47, L = -1, D = !0, x = y.length - 1; x >= 1; --x) if ((R = y.charCodeAt(x)) === 47) { - if (!D) { - L = x; - break; - } - } else D = !1; - return L === -1 ? E ? "/" : "." : E && L === 1 ? "//" : y.slice(0, L); - }, basename: function(y, R) { - if (R !== void 0 && typeof R != "string") throw new TypeError('"ext" argument must be a string'); - T(y); - var E, L = 0, D = -1, x = !0; - if (R !== void 0 && R.length > 0 && R.length <= y.length) { - if (R.length === y.length && R === y) return ""; - var j = R.length - 1, F = -1; - for (E = y.length - 1; E >= 0; --E) { - var te = y.charCodeAt(E); - if (te === 47) { - if (!x) { - L = E + 1; - break; - } - } else F === -1 && (x = !1, F = E + 1), j >= 0 && (te === R.charCodeAt(j) ? --j == -1 && (D = E) : (j = -1, D = F)); - } - return L === D ? D = F : D === -1 && (D = y.length), y.slice(L, D); - } - for (E = y.length - 1; E >= 0; --E) if (y.charCodeAt(E) === 47) { - if (!x) { - L = E + 1; - break; - } - } else D === -1 && (x = !1, D = E + 1); - return D === -1 ? "" : y.slice(L, D); - }, extname: function(y) { - T(y); - for (var R = -1, E = 0, L = -1, D = !0, x = 0, j = y.length - 1; j >= 0; --j) { - var F = y.charCodeAt(j); - if (F !== 47) L === -1 && (D = !1, L = j + 1), F === 46 ? R === -1 ? R = j : x !== 1 && (x = 1) : R !== -1 && (x = -1); - else if (!D) { - E = j + 1; - break; - } - } - return R === -1 || L === -1 || x === 0 || x === 1 && R === L - 1 && R === E + 1 ? "" : y.slice(R, L); - }, format: function(y) { - if (y === null || typeof y != "object") throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof y); - return (function(R, E) { - var L = E.dir || E.root, D = E.base || (E.name || "") + (E.ext || ""); - return L ? L === E.root ? L + D : L + "/" + D : D; - })(0, y); - }, parse: function(y) { - T(y); - var R = { root: "", dir: "", base: "", ext: "", name: "" }; - if (y.length === 0) return R; - var E, L = y.charCodeAt(0), D = L === 47; - D ? (R.root = "/", E = 1) : E = 0; - for (var x = -1, j = 0, F = -1, te = !0, z = y.length - 1, Q = 0; z >= E; --z) if ((L = y.charCodeAt(z)) !== 47) F === -1 && (te = !1, F = z + 1), L === 46 ? x === -1 ? x = z : Q !== 1 && (Q = 1) : x !== -1 && (Q = -1); - else if (!te) { - j = z + 1; - break; - } - return x === -1 || F === -1 || Q === 0 || Q === 1 && x === F - 1 && x === j + 1 ? F !== -1 && (R.base = R.name = j === 0 && D ? y.slice(1, F) : y.slice(j, F)) : (j === 0 && D ? (R.name = y.slice(1, x), R.base = y.slice(1, F)) : (R.name = y.slice(j, x), R.base = y.slice(j, F)), R.ext = y.slice(x, F)), j > 0 ? R.dir = y.slice(0, j - 1) : D && (R.dir = "/"), R; - }, sep: "/", delimiter: ":", win32: null, posix: null }; - $.posix = $, N.exports = $; - } }, e = {}; - function r(N) { - var T = e[N]; - if (T !== void 0) return T.exports; - var g = e[N] = { exports: {} }; - return t[N](g, g.exports, r), g.exports; - } - r.d = (N, T) => { - for (var g in T) r.o(T, g) && !r.o(N, g) && Object.defineProperty(N, g, { enumerable: !0, get: T[g] }); - }, r.o = (N, T) => Object.prototype.hasOwnProperty.call(N, T), r.r = (N) => { - typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(N, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(N, "__esModule", { value: !0 }); - }; - var n = {}; - let i; - r.r(n), r.d(n, { URI: () => p, Utils: () => oe }), typeof process == "object" ? i = process.platform === "win32" : typeof navigator == "object" && (i = navigator.userAgent.indexOf("Windows") >= 0); - const a = /^\w[\w\d+.-]*$/, s = /^\//, o = /^\/\//; - function l(N, T) { - if (!N.scheme && T) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${N.authority}", path: "${N.path}", query: "${N.query}", fragment: "${N.fragment}"}`); - if (N.scheme && !a.test(N.scheme)) throw new Error("[UriError]: Scheme contains illegal characters."); - if (N.path) { - if (N.authority) { - if (!s.test(N.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 (o.test(N.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'); - } - } - const c = "", u = "/", d = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/; - class p { - static isUri(T) { - return T instanceof p || !!T && typeof T.authority == "string" && typeof T.fragment == "string" && typeof T.path == "string" && typeof T.query == "string" && typeof T.scheme == "string" && typeof T.fsPath == "string" && typeof T.with == "function" && typeof T.toString == "function"; - } - scheme; - authority; - path; - query; - fragment; - constructor(T, g, $, y, R, E = !1) { - typeof T == "object" ? (this.scheme = T.scheme || c, this.authority = T.authority || c, this.path = T.path || c, this.query = T.query || c, this.fragment = T.fragment || c) : (this.scheme = /* @__PURE__ */ (function(L, D) { - return L || D ? L : "file"; - })(T, E), this.authority = g || c, this.path = (function(L, D) { - switch (L) { - case "https": - case "http": - case "file": - D ? D[0] !== u && (D = u + D) : D = u; - } - return D; - })(this.scheme, $ || c), this.query = y || c, this.fragment = R || c, l(this, E)); - } - get fsPath() { - return S(this); - } - with(T) { - if (!T) return this; - let { scheme: g, authority: $, path: y, query: R, fragment: E } = T; - return g === void 0 ? g = this.scheme : g === null && (g = c), $ === void 0 ? $ = this.authority : $ === null && ($ = c), y === void 0 ? y = this.path : y === null && (y = c), R === void 0 ? R = this.query : R === null && (R = c), E === void 0 ? E = this.fragment : E === null && (E = c), g === this.scheme && $ === this.authority && y === this.path && R === this.query && E === this.fragment ? this : new A(g, $, y, R, E); - } - static parse(T, g = !1) { - const $ = d.exec(T); - return $ ? new A($[2] || c, B($[4] || c), B($[5] || c), B($[7] || c), B($[9] || c), g) : new A(c, c, c, c, c); - } - static file(T) { - let g = c; - if (i && (T = T.replace(/\\/g, u)), T[0] === u && T[1] === u) { - const $ = T.indexOf(u, 2); - $ === -1 ? (g = T.substring(2), T = u) : (g = T.substring(2, $), T = T.substring($) || u); - } - return new A("file", g, T, c, c); - } - static from(T) { - const g = new A(T.scheme, T.authority, T.path, T.query, T.fragment); - return l(g, !0), g; - } - toString(T = !1) { - return C(this, T); - } - toJSON() { - return this; - } - static revive(T) { - if (T) { - if (T instanceof p) return T; - { - const g = new A(T); - return g._formatted = T.external, g._fsPath = T._sep === m ? T.fsPath : null, g; - } - } - return T; - } - } - const m = i ? 1 : void 0; - class A extends p { - _formatted = null; - _fsPath = null; - get fsPath() { - return this._fsPath || (this._fsPath = S(this)), this._fsPath; - } - toString(T = !1) { - return T ? C(this, !0) : (this._formatted || (this._formatted = C(this, !1)), this._formatted); - } - toJSON() { - const T = { $mid: 1 }; - return this._fsPath && (T.fsPath = this._fsPath, T._sep = m), this._formatted && (T.external = this._formatted), this.path && (T.path = this.path), this.scheme && (T.scheme = this.scheme), this.authority && (T.authority = this.authority), this.query && (T.query = this.query), this.fragment && (T.fragment = this.fragment), T; - } - } - const b = { 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 I(N, T, g) { - let $, y = -1; - for (let R = 0; R < N.length; R++) { - const E = N.charCodeAt(R); - if (E >= 97 && E <= 122 || E >= 65 && E <= 90 || E >= 48 && E <= 57 || E === 45 || E === 46 || E === 95 || E === 126 || T && E === 47 || g && E === 91 || g && E === 93 || g && E === 58) y !== -1 && ($ += encodeURIComponent(N.substring(y, R)), y = -1), $ !== void 0 && ($ += N.charAt(R)); - else { - $ === void 0 && ($ = N.substr(0, R)); - const L = b[E]; - L !== void 0 ? (y !== -1 && ($ += encodeURIComponent(N.substring(y, R)), y = -1), $ += L) : y === -1 && (y = R); - } - } - return y !== -1 && ($ += encodeURIComponent(N.substring(y))), $ !== void 0 ? $ : N; - } - function k(N) { - let T; - for (let g = 0; g < N.length; g++) { - const $ = N.charCodeAt(g); - $ === 35 || $ === 63 ? (T === void 0 && (T = N.substr(0, g)), T += b[$]) : T !== void 0 && (T += N[g]); - } - return T !== void 0 ? T : N; - } - function S(N, T) { - let g; - return g = N.authority && N.path.length > 1 && N.scheme === "file" ? `//${N.authority}${N.path}` : N.path.charCodeAt(0) === 47 && (N.path.charCodeAt(1) >= 65 && N.path.charCodeAt(1) <= 90 || N.path.charCodeAt(1) >= 97 && N.path.charCodeAt(1) <= 122) && N.path.charCodeAt(2) === 58 ? N.path[1].toLowerCase() + N.path.substr(2) : N.path, i && (g = g.replace(/\//g, "\\")), g; - } - function C(N, T) { - const g = T ? k : I; - let $ = "", { scheme: y, authority: R, path: E, query: L, fragment: D } = N; - if (y && ($ += y, $ += ":"), (R || y === "file") && ($ += u, $ += u), R) { - let x = R.indexOf("@"); - if (x !== -1) { - const j = R.substr(0, x); - R = R.substr(x + 1), x = j.lastIndexOf(":"), x === -1 ? $ += g(j, !1, !1) : ($ += g(j.substr(0, x), !1, !1), $ += ":", $ += g(j.substr(x + 1), !1, !0)), $ += "@"; - } - R = R.toLowerCase(), x = R.lastIndexOf(":"), x === -1 ? $ += g(R, !1, !0) : ($ += g(R.substr(0, x), !1, !0), $ += R.substr(x)); - } - if (E) { - if (E.length >= 3 && E.charCodeAt(0) === 47 && E.charCodeAt(2) === 58) { - const x = E.charCodeAt(1); - x >= 65 && x <= 90 && (E = `/${String.fromCharCode(x + 32)}:${E.substr(3)}`); - } else if (E.length >= 2 && E.charCodeAt(1) === 58) { - const x = E.charCodeAt(0); - x >= 65 && x <= 90 && (E = `${String.fromCharCode(x + 32)}:${E.substr(2)}`); - } - $ += g(E, !0, !1); - } - return L && ($ += "?", $ += g(L, !1, !1)), D && ($ += "#", $ += T ? D : I(D, !1, !1)), $; - } - function P(N) { - try { - return decodeURIComponent(N); - } catch { - return N.length > 3 ? N.substr(0, 3) + P(N.substr(3)) : N; - } - } - const W = /(%[0-9A-Za-z][0-9A-Za-z])+/g; - function B(N) { - return N.match(W) ? N.replace(W, ((T) => P(T))) : N; - } - var H = r(975); - const ne = H.posix || H, se = "/"; - var oe; - (function(N) { - N.joinPath = function(T, ...g) { - return T.with({ path: ne.join(T.path, ...g) }); - }, N.resolvePath = function(T, ...g) { - let $ = T.path, y = !1; - $[0] !== se && ($ = se + $, y = !0); - let R = ne.resolve($, ...g); - return y && R[0] === se && !T.authority && (R = R.substring(1)), T.with({ path: R }); - }, N.dirname = function(T) { - if (T.path.length === 0 || T.path === se) return T; - let g = ne.dirname(T.path); - return g.length === 1 && g.charCodeAt(0) === 46 && (g = ""), T.with({ path: g }); - }, N.basename = function(T) { - return ne.basename(T.path); - }, N.extname = function(T) { - return ne.extname(T.path); - }; - })(oe || (oe = {})), Ed = n; -})(); -const { URI: ft, Utils: xn } = Ed; -var Qe; -(function(t) { - t.basename = xn.basename, t.dirname = xn.dirname, t.extname = xn.extname, t.joinPath = xn.joinPath, t.resolvePath = xn.resolvePath; - const e = typeof process == "object" && process?.platform === "win32"; - function r(s, o) { - return s?.toString() === o?.toString(); - } - t.equals = r; - function n(s, o) { - const l = typeof s == "string" ? ft.parse(s).path : s.path, c = typeof o == "string" ? ft.parse(o).path : o.path, u = l.split("/").filter((b) => b.length > 0), d = c.split("/").filter((b) => b.length > 0); - if (e) { - const b = /^[A-Z]:$/; - if (u[0] && b.test(u[0]) && (u[0] = u[0].toLowerCase()), d[0] && b.test(d[0]) && (d[0] = d[0].toLowerCase()), u[0] !== d[0]) - return c.substring(1); - } - let p = 0; - for (; p < u.length && u[p] === d[p]; p++) - ; - const m = "../".repeat(u.length - p), A = d.slice(p).join("/"); - return m + A; - } - t.relative = n; - function i(s) { - return ft.parse(s.toString()).toString(); - } - t.normalize = i; - function a(s, o) { - let l = typeof s == "string" ? s : s.path, c = typeof o == "string" ? o : o.path; - return c.charAt(c.length - 1) === "/" && (c = c.slice(0, -1)), l.charAt(l.length - 1) === "/" && (l = l.slice(0, -1)), c === l ? !0 : c.length < l.length || c.charAt(l.length) !== "/" ? !1 : c.startsWith(l); - } - t.contains = a; -})(Qe || (Qe = {})); -class ly { - constructor() { - this.root = { name: "", children: /* @__PURE__ */ new Map() }; - } - normalizeUri(e) { - return Qe.normalize(e); - } - clear() { - this.root.children.clear(); - } - insert(e, r) { - const n = this.getNode(this.normalizeUri(e), !0); - n.element = r; - } - delete(e) { - const r = this.getNode(this.normalizeUri(e), !1); - r?.parent && r.parent.children.delete(r.name); - } - has(e) { - return this.getNode(this.normalizeUri(e), !1)?.element !== void 0; - } - hasNode(e) { - return this.getNode(this.normalizeUri(e), !1) !== void 0; - } - find(e) { - return this.getNode(this.normalizeUri(e), !1)?.element; - } - findNode(e) { - const r = this.normalizeUri(e), n = this.getNode(r, !1); - if (n) - return { - name: n.name, - uri: Qe.joinPath(ft.parse(r), n.name).toString(), - element: n.element - }; - } - findChildren(e) { - const r = this.normalizeUri(e), n = this.getNode(r, !1); - return n ? Array.from(n.children.values()).map((i) => ({ - name: i.name, - uri: Qe.joinPath(ft.parse(r), i.name).toString(), - element: i.element - })) : []; - } - all() { - return this.collectValues(this.root); - } - findAll(e) { - const r = this.getNode(Qe.normalize(e), !1); - return r ? this.collectValues(r) : []; - } - getNode(e, r) { - const n = e.split("/"); - e.charAt(e.length - 1) === "/" && n.pop(); - let i = this.root; - for (const a of n) { - let s = i.children.get(a); - if (!s) - if (r) - s = { - name: a, - children: /* @__PURE__ */ new Map(), - parent: i - }, i.children.set(a, s); - else - return; - i = s; - } - return i; - } - collectValues(e) { - const r = []; - e.element && r.push(e.element); - for (const n of e.children.values()) - r.push(...this.collectValues(n)); - return r; - } -} -var K; -(function(t) { - t[t.Changed = 0] = "Changed", t[t.Parsed = 1] = "Parsed", t[t.IndexedContent = 2] = "IndexedContent", t[t.ComputedScopes = 3] = "ComputedScopes", t[t.Linked = 4] = "Linked", t[t.IndexedReferences = 5] = "IndexedReferences", t[t.Validated = 6] = "Validated"; -})(K || (K = {})); -class cy { - constructor(e) { - this.serviceRegistry = e.ServiceRegistry, this.textDocuments = e.workspace.TextDocuments, this.fileSystemProvider = e.workspace.FileSystemProvider; - } - async fromUri(e, r = he.CancellationToken.None) { - const n = await this.fileSystemProvider.readFile(e); - return this.createAsync(e, n, r); - } - fromTextDocument(e, r, n) { - return r = r ?? ft.parse(e.uri), he.CancellationToken.is(n) ? this.createAsync(r, e, n) : this.create(r, e, n); - } - fromString(e, r, n) { - return he.CancellationToken.is(n) ? this.createAsync(r, e, n) : this.create(r, e, n); - } - fromModel(e, r) { - return this.create(r, { $model: e }); - } - create(e, r, n) { - if (typeof r == "string") { - const i = this.parse(e, r, n); - return this.createLangiumDocument(i, e, void 0, r); - } else if ("$model" in r) { - const i = { value: r.$model, parserErrors: [], lexerErrors: [] }; - return this.createLangiumDocument(i, e); - } else { - const i = this.parse(e, r.getText(), n); - return this.createLangiumDocument(i, e, r); - } - } - async createAsync(e, r, n) { - if (typeof r == "string") { - const i = await this.parseAsync(e, r, n); - return this.createLangiumDocument(i, e, void 0, r); - } else { - const i = await this.parseAsync(e, r.getText(), n); - return this.createLangiumDocument(i, e, r); - } - } - /** - * Create a LangiumDocument from a given parse result. - * - * A TextDocument is created on demand if it is not provided as argument here. Usually this - * should not be necessary because the main purpose of the TextDocument is to convert between - * text ranges and offsets, which is done solely in LSP request handling. - * - * With the introduction of {@link update} below this method is supposed to be mainly called - * during workspace initialization and on addition/recognition of new files, while changes in - * existing documents are processed via {@link update}. - */ - createLangiumDocument(e, r, n, i) { - let a; - if (n) - a = { - parseResult: e, - uri: r, - state: K.Parsed, - references: [], - textDocument: n - }; - else { - const s = this.createTextDocumentGetter(r, i); - a = { - parseResult: e, - uri: r, - state: K.Parsed, - references: [], - get textDocument() { - return s(); - } - }; - } - return e.value.$document = a, a; - } - async update(e, r) { - const n = e.parseResult.value.$cstNode?.root.fullText, i = this.textDocuments?.get(e.uri.toString()), a = i ? i.getText() : await this.fileSystemProvider.readFile(e.uri); - if (i) - Object.defineProperty(e, "textDocument", { - value: i - }); - else { - const s = this.createTextDocumentGetter(e.uri, a); - Object.defineProperty(e, "textDocument", { - get: s - }); - } - return n !== a && (e.parseResult = await this.parseAsync(e.uri, a, r), e.parseResult.value.$document = e), e.state = K.Parsed, e; - } - parse(e, r, n) { - return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(r, n); - } - parseAsync(e, r, n) { - return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(r, n); - } - createTextDocumentGetter(e, r) { - const n = this.serviceRegistry; - let i; - return () => i ?? (i = pl.create(e.toString(), n.getServices(e).LanguageMetaData.languageId, 0, r ?? "")); - } -} -class uy { - constructor(e) { - this.documentTrie = new ly(), this.services = e, this.langiumDocumentFactory = e.workspace.LangiumDocumentFactory, this.documentBuilder = () => e.workspace.DocumentBuilder; - } - get all() { - return fe(this.documentTrie.all()); - } - addDocument(e) { - const r = e.uri.toString(); - if (this.documentTrie.has(r)) - throw new Error(`A document with the URI '${r}' is already present.`); - this.documentTrie.insert(r, e); - } - getDocument(e) { - const r = e.toString(); - return this.documentTrie.find(r); - } - getDocuments(e) { - const r = e.toString(); - return this.documentTrie.findAll(r); - } - async getOrCreateDocument(e, r) { - let n = this.getDocument(e); - return n || (n = await this.langiumDocumentFactory.fromUri(e, r), this.addDocument(n), n); - } - createDocument(e, r, n) { - if (n) - return this.langiumDocumentFactory.fromString(r, e, n).then((i) => (this.addDocument(i), i)); - { - const i = this.langiumDocumentFactory.fromString(r, e); - return this.addDocument(i), i; - } - } - hasDocument(e) { - return this.documentTrie.has(e.toString()); - } - /** - * @deprecated Since 4.2 use `DocumentBuilder.resetToState(DocumentState.Changed)` instead - * TODO remove this for the next major release - */ - invalidateDocument(e) { - const r = e.toString(), n = this.documentTrie.find(r); - return n && this.documentBuilder().resetToState(n, K.Changed), n; - } - deleteDocument(e) { - const r = e.toString(), n = this.documentTrie.find(r); - return n && (n.state = K.Changed, this.documentTrie.delete(r)), n; - } - deleteDocuments(e) { - const r = e.toString(), n = this.documentTrie.findAll(r); - for (const i of n) - i.state = K.Changed; - return this.documentTrie.delete(r), n; - } -} -const Fr = Symbol("RefResolving"); -class fy { - 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, r = he.CancellationToken.None) { - if (this.profiler?.isActive("linking")) { - const n = this.profiler.createTask("linking", this.languageId); - n.start(); - try { - for (const i of jt(e.parseResult.value)) - await Ue(r), _a(i).forEach((a) => { - const s = `${i.$type}:${a.property}`; - n.startSubTask(s); - try { - this.doLink(a, e); - } finally { - n.stopSubTask(s); - } - }); - } finally { - n.stop(); - } - } else - for (const n of jt(e.parseResult.value)) - await Ue(r), _a(n).forEach((i) => this.doLink(i, e)); - } - doLink(e, r) { - const n = e.reference; - if ("_ref" in n && n._ref === void 0) { - n._ref = Fr; - try { - const i = this.getCandidate(e); - if (Nn(i)) - n._ref = i; - else { - n._nodeDescription = i; - const a = this.loadAstNode(i); - n._ref = a ?? this.createLinkingError(e, i); - } - } catch (i) { - console.error(`An error occurred while resolving reference to '${n.$refText}':`, i); - const a = i.message ?? String(i); - n._ref = { - info: e, - message: `An error occurred while resolving reference to '${n.$refText}': ${a}` - }; - } - r.references.push(n); - } else if ("_items" in n && n._items === void 0) { - n._items = Fr; - try { - const i = this.getCandidates(e), a = []; - if (Nn(i)) - n._linkingError = i; - else - for (const s of i) { - const o = this.loadAstNode(s); - o && a.push({ ref: o, $nodeDescription: s }); - } - n._items = a; - } catch (i) { - n._linkingError = { - info: e, - message: `An error occurred while resolving reference to '${n.$refText}': ${i}` - }, n._items = []; - } - r.references.push(n); - } - } - unlink(e) { - for (const r of e.references) - "_ref" in r ? (r._ref = void 0, delete r._nodeDescription) : "_items" in r && (r._items = void 0, delete r._linkingError); - e.references = []; - } - getCandidate(e) { - return this.scopeProvider.getScope(e).getElement(e.reference.$refText) ?? this.createLinkingError(e); - } - getCandidates(e) { - const n = this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct((i) => `${i.documentUri}#${i.path}`).toArray(); - return n.length > 0 ? n : this.createLinkingError(e); - } - buildReference(e, r, n, i) { - const a = this, s = { - $refNode: n, - $refText: i, - _ref: void 0, - get ref() { - if (Fe(this._ref)) - return this._ref; - if (Kd(this._nodeDescription)) { - const o = a.loadAstNode(this._nodeDescription); - this._ref = o ?? a.createLinkingError({ reference: s, container: e, property: r }, this._nodeDescription); - } else if (this._ref === void 0) { - this._ref = Fr; - const o = pa(e).$document, l = a.getLinkedNode({ reference: s, container: e, property: r }); - if (l.error && o && o.state < K.ComputedScopes) - return this._ref = void 0; - this._ref = l.node ?? l.error, this._nodeDescription = l.descr, o?.references.push(this); - } else this._ref === Fr && a.throwCyclicReferenceError(e, r, i); - return Fe(this._ref) ? this._ref : void 0; - }, - get $nodeDescription() { - return this._nodeDescription; - }, - get error() { - return Nn(this._ref) ? this._ref : void 0; - } - }; - return s; - } - buildMultiReference(e, r, n, i) { - const a = this, s = { - $refNode: n, - $refText: i, - _items: void 0, - get items() { - if (Array.isArray(this._items)) - return this._items; - if (this._items === void 0) { - this._items = Fr; - const o = pa(e).$document, l = a.getCandidates({ - reference: s, - container: e, - property: r - }), c = []; - if (Nn(l)) - this._linkingError = l; - else - for (const u of l) { - const d = a.loadAstNode(u); - d && c.push({ ref: d, $nodeDescription: u }); - } - this._items = c, o?.references.push(this); - } else this._items === Fr && a.throwCyclicReferenceError(e, r, i); - return Array.isArray(this._items) ? this._items : []; - }, - get error() { - if (this._linkingError) - return this._linkingError; - if (!(this.items.length > 0)) - return this._linkingError = a.createLinkingError({ reference: s, container: e, property: r }); - } - }; - return s; - } - throwCyclicReferenceError(e, r, n) { - throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${r} (symbol '${n}')`); - } - getLinkedNode(e) { - try { - const r = this.getCandidate(e); - if (Nn(r)) - return { error: r }; - const n = this.loadAstNode(r); - return n ? { node: n, descr: r } : { - descr: r, - error: this.createLinkingError(e, r) - }; - } catch (r) { - console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`, r); - const n = r.message ?? String(r); - return { - error: { - info: e, - message: `An error occurred while resolving reference to '${e.reference.$refText}': ${n}` - } - }; - } - } - loadAstNode(e) { - if (e.node) - return e.node; - const r = this.langiumDocuments().getDocument(e.documentUri); - if (r) - return this.astNodeLocator.getAstNode(r.parseResult.value, e.path); - } - createLinkingError(e, r) { - const n = pa(e.container).$document; - n && n.state < K.ComputedScopes && console.warn(`Attempted reference resolution before document reached ComputedScopes state (${n.uri}).`); - const i = this.reflection.getReferenceType(e); - return { - info: e, - message: `Could not resolve reference to ${i} named '${e.reference.$refText}'.`, - targetDescription: r - }; - } -} -function dy(t) { - return typeof t.name == "string"; -} -class hy { - getName(e) { - if (dy(e)) - return e.name; - } - getNameNode(e) { - return pf(e.$cstNode, "name"); - } -} -class py { - constructor(e) { - this.nameProvider = e.references.NameProvider, this.index = e.shared.workspace.IndexManager, this.nodeLocator = e.workspace.AstNodeLocator, this.documents = e.shared.workspace.LangiumDocuments, this.hasMultiReference = jt(e.Grammar).some((r) => Qa(r) && r.isMulti); - } - findDeclarations(e) { - if (e) { - const r = Mh(e), n = e.astNode; - if (r && n) { - const i = n[r.feature]; - if (ut(i) || Jt(i)) - return Ql(i); - if (Array.isArray(i)) { - for (const a of i) - if ((ut(a) || Jt(a)) && a.$refNode && a.$refNode.offset <= e.offset && a.$refNode.end >= e.end) - return Ql(a); - } - } - if (n) { - const i = this.nameProvider.getNameNode(n); - if (i && (i === e || ph(e, i))) - return this.getSelfNodes(n); - } - } - return []; - } - /** - * Returns all self-references for the specified node. - * Since the node can be part of a multi-reference, this method returns all nodes that are part of the same multi-reference. - */ - getSelfNodes(e) { - if (this.hasMultiReference) { - const r = this.index.findAllReferences(e, this.nodeLocator.getAstNodePath(e)), n = this.getNodeFromReferenceDescription(r.head()); - if (n) { - for (const i of _a(n)) - if (Jt(i.reference) && i.reference.items.some((a) => a.ref === e)) - return i.reference.items.map((a) => a.ref); - } - return [e]; - } else - return [e]; - } - getNodeFromReferenceDescription(e) { - if (!e) - return; - const r = this.documents.getDocument(e.sourceUri); - if (r) - return this.nodeLocator.getAstNode(r.parseResult.value, e.sourcePath); - } - findDeclarationNodes(e) { - const r = this.findDeclarations(e), n = []; - for (const i of r) { - const a = this.nameProvider.getNameNode(i) ?? i.$cstNode; - a && n.push(a); - } - return n; - } - findReferences(e, r) { - const n = []; - r.includeDeclaration && n.push(...this.getSelfReferences(e)); - let i = this.index.findAllReferences(e, this.nodeLocator.getAstNodePath(e)); - return r.documentUri && (i = i.filter((a) => Qe.equals(a.sourceUri, r.documentUri))), n.push(...i), fe(n); - } - getSelfReferences(e) { - const r = this.getSelfNodes(e), n = []; - for (const i of r) { - const a = this.nameProvider.getNameNode(i); - if (a) { - const s = Gt(i), o = this.nodeLocator.getAstNodePath(i); - n.push({ - sourceUri: s.uri, - sourcePath: o, - targetUri: s.uri, - targetPath: o, - segment: Pa(a), - local: !0 - }); - } - } - return n; - } -} -class Ri { - constructor(e) { - if (this.map = /* @__PURE__ */ new Map(), e) - for (const [r, n] of e) - this.add(r, n); - } - /** - * The total number of values in the multimap. - */ - get size() { - return qs.sum(fe(this.map.values()).map((e) => e.length)); - } - /** - * Clear all entries in the multimap. - */ - clear() { - this.map.clear(); - } - /** - * Operates differently depending on whether a `value` is given: - * * With a value, this method deletes the specific key / value pair from the multimap. - * * Without a value, all values associated with the given key are deleted. - * - * @returns `true` if a value existed and has been removed, or `false` if the specified - * key / value does not exist. - */ - delete(e, r) { - if (r === void 0) - return this.map.delete(e); - { - const n = this.map.get(e); - if (n) { - const i = n.indexOf(r); - if (i >= 0) - return n.length === 1 ? this.map.delete(e) : n.splice(i, 1), !0; - } - return !1; - } - } - /** - * Returns an array of all values associated with the given key. If no value exists, - * an empty array is returned. - * - * _Note:_ The returned array is assumed not to be modified. Use the `set` method to add a - * value and `delete` to remove a value from the multimap. - */ - get(e) { - return this.map.get(e) ?? []; - } - /** - * Returns a stream of all values associated with the given key. If no value exists, - * {@link EMPTY_STREAM} is returned. - */ - getStream(e) { - const r = this.map.get(e); - return r ? fe(r) : rf; - } - /** - * Operates differently depending on whether a `value` is given: - * * With a value, this method returns `true` if the specific key / value pair is present in the multimap. - * * Without a value, this method returns `true` if the given key is present in the multimap. - */ - has(e, r) { - if (r === void 0) - return this.map.has(e); - { - const n = this.map.get(e); - return n ? n.indexOf(r) >= 0 : !1; - } - } - /** - * Add the given key / value pair to the multimap. - */ - add(e, r) { - return this.map.has(e) ? this.map.get(e).push(r) : this.map.set(e, [r]), this; - } - /** - * Add the given set of key / value pairs to the multimap. - */ - addAll(e, r) { - return this.map.has(e) ? this.map.get(e).push(...r) : this.map.set(e, Array.from(r)), this; - } - /** - * Invokes the given callback function for every key / value pair in the multimap. - */ - forEach(e) { - this.map.forEach((r, n) => r.forEach((i) => e(i, n, this))); - } - /** - * Returns an iterator of key, value pairs for every entry in the map. - */ - [Symbol.iterator]() { - return this.entries().iterator(); - } - /** - * Returns a stream of key, value pairs for every entry in the map. - */ - entries() { - return fe(this.map.entries()).flatMap(([e, r]) => r.map((n) => [e, n])); - } - /** - * Returns a stream of keys in the map. - */ - keys() { - return fe(this.map.keys()); - } - /** - * Returns a stream of values in the map. - */ - values() { - return fe(this.map.values()).flat(); - } - /** - * Returns a stream of key, value set pairs for every key in the map. - */ - entriesGroupedByKey() { - return fe(this.map.entries()); - } -} -class Bc { - get size() { - return this.map.size; - } - constructor(e) { - if (this.map = /* @__PURE__ */ new Map(), this.inverse = /* @__PURE__ */ new Map(), e) - for (const [r, n] of e) - this.set(r, n); - } - clear() { - this.map.clear(), this.inverse.clear(); - } - set(e, r) { - return this.map.set(e, r), this.inverse.set(r, e), this; - } - get(e) { - return this.map.get(e); - } - getKey(e) { - return this.inverse.get(e); - } - delete(e) { - const r = this.map.get(e); - return r !== void 0 ? (this.map.delete(e), this.inverse.delete(r), !0) : !1; - } -} -class my { - constructor(e) { - this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider; - } - async collectExportedSymbols(e, r = he.CancellationToken.None) { - return this.collectExportedSymbolsForNode(e.parseResult.value, e, void 0, r); - } - /** - * Creates {@link AstNodeDescription AstNodeDescriptions} for the given {@link AstNode parentNode} and its children. - * The list of children to be considered is determined by the function parameter {@link children}. - * By default only the direct children of {@link parentNode} are visited, nested nodes are not exported. - * - * @param parentNode AST node to be exported, i.e., of which an {@link AstNodeDescription} shall be added to the returned list. - * @param document The document containing the AST node to be exported. - * @param children A function called with {@link parentNode} as single argument and returning an {@link Iterable} supplying the children to be visited, which must be directly or transitively contained in {@link parentNode}. - * @param cancelToken Indicates when to cancel the current operation. - * @throws `OperationCancelled` if a user action occurs during execution. - * @returns A list of {@link AstNodeDescription AstNodeDescriptions} to be published to index. - */ - async collectExportedSymbolsForNode(e, r, n = _l, i = he.CancellationToken.None) { - const a = []; - this.addExportedSymbol(e, a, r); - for (const s of n(e)) - await Ue(i), this.addExportedSymbol(s, a, r); - return a; - } - /** - * Adds a single node to the list of exports if it has a name. Override this method to change how - * symbols are exported, e.g. by modifying their exported name. - */ - addExportedSymbol(e, r, n) { - const i = this.nameProvider.getName(e); - i && r.push(this.descriptions.createDescription(e, i, n)); - } - // --- local symbols gathering --- - async collectLocalSymbols(e, r = he.CancellationToken.None) { - const n = e.parseResult.value, i = new Ri(); - for (const a of Ei(n)) - await Ue(r), this.addLocalSymbol(a, e, i); - return i; - } - /** - * Adds a single node to the local symbols of its containing document if it has a name. - * The default implementation makes the node visible in the subtree of its container if it does have a container. - * Override this method to change this, e.g. by increasing the visibility to a higher level in the AST. - */ - addLocalSymbol(e, r, n) { - const i = e.$container; - if (i) { - const a = this.nameProvider.getName(e); - a && n.add(i, this.descriptions.createDescription(e, a, r)); - } - } -} -class Wc { - constructor(e, r, n) { - this.elements = e, this.outerScope = r, this.caseInsensitive = n?.caseInsensitive ?? !1, this.concatOuterScope = n?.concatOuterScope ?? !0; - } - getAllElements() { - return this.outerScope ? this.elements.concat(this.outerScope.getAllElements()) : this.elements; - } - getElement(e) { - const r = this.caseInsensitive ? e.toLowerCase() : e, n = this.caseInsensitive ? this.elements.find((i) => i.name.toLowerCase() === r) : this.elements.find((i) => i.name === e); - if (n) - return n; - if (this.outerScope) - return this.outerScope.getElement(e); - } - getElements(e) { - const r = this.caseInsensitive ? e.toLowerCase() : e, n = this.caseInsensitive ? this.elements.filter((i) => i.name.toLowerCase() === r) : this.elements.filter((i) => i.name === e); - return (this.concatOuterScope || n.isEmpty()) && this.outerScope ? n.concat(this.outerScope.getElements(e)) : n; - } -} -class gy { - constructor(e, r, n) { - this.elements = new Ri(), this.caseInsensitive = n?.caseInsensitive ?? !1, this.concatOuterScope = n?.concatOuterScope ?? !0; - for (const i of e) { - const a = this.caseInsensitive ? i.name.toLowerCase() : i.name; - this.elements.add(a, i); - } - this.outerScope = r; - } - getElement(e) { - const r = this.caseInsensitive ? e.toLowerCase() : e, n = this.elements.get(r)[0]; - if (n) - return n; - if (this.outerScope) - return this.outerScope.getElement(e); - } - getElements(e) { - const r = this.caseInsensitive ? e.toLowerCase() : e, n = this.elements.get(r); - return (this.concatOuterScope || n.length === 0) && this.outerScope ? fe(n).concat(this.outerScope.getElements(e)) : fe(n); - } - getAllElements() { - let e = fe(this.elements.values()); - return this.outerScope && (e = e.concat(this.outerScope.getAllElements())), e; - } -} -class Ad { - 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"); - } -} -class yy extends Ad { - constructor() { - super(...arguments), this.cache = /* @__PURE__ */ new Map(); - } - has(e) { - return this.throwIfDisposed(), this.cache.has(e); - } - set(e, r) { - this.throwIfDisposed(), this.cache.set(e, r); - } - get(e, r) { - if (this.throwIfDisposed(), this.cache.has(e)) - return this.cache.get(e); - if (r) { - const n = r(); - return this.cache.set(e, n), n; - } else - return; - } - delete(e) { - return this.throwIfDisposed(), this.cache.delete(e); - } - clear() { - this.throwIfDisposed(), this.cache.clear(); - } -} -class Ty extends Ad { - constructor(e) { - super(), this.cache = /* @__PURE__ */ new Map(), this.converter = e ?? ((r) => r); - } - has(e, r) { - return this.throwIfDisposed(), this.cacheForContext(e).has(r); - } - set(e, r, n) { - this.throwIfDisposed(), this.cacheForContext(e).set(r, n); - } - get(e, r, n) { - this.throwIfDisposed(); - const i = this.cacheForContext(e); - if (i.has(r)) - return i.get(r); - if (n) { - const a = n(); - return i.set(r, a), a; - } else - return; - } - delete(e, r) { - return this.throwIfDisposed(), this.cacheForContext(e).delete(r); - } - clear(e) { - if (this.throwIfDisposed(), e) { - const r = this.converter(e); - this.cache.delete(r); - } else - this.cache.clear(); - } - cacheForContext(e) { - const r = this.converter(e); - let n = this.cache.get(r); - return n || (n = /* @__PURE__ */ new Map(), this.cache.set(r, n)), n; - } -} -class Ry extends yy { - /** - * Creates a new workspace cache. - * - * @param sharedServices Service container instance to hook into document lifecycle events. - * @param state Optional document state on which the cache should evict. - * If not provided, the cache will evict on `DocumentBuilder#onUpdate`. - * *Deleted* documents are considered in both cases. - */ - constructor(e, r) { - super(), r ? (this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(r, () => { - this.clear(); - })), this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n, i) => { - i.length > 0 && this.clear(); - }))) : this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(() => { - this.clear(); - })); - } -} -class vy { - 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 Ry(e.shared); - } - getScope(e) { - const r = [], n = this.reflection.getReferenceType(e), i = Gt(e.container).localSymbols; - if (i) { - let s = e.container; - do - i.has(s) && r.push(i.getStream(s).filter((o) => this.reflection.isSubtype(o.type, n))), s = s.$container; - while (s); - } - let a = this.getGlobalScope(n, e); - for (let s = r.length - 1; s >= 0; s--) - a = this.createScope(r[s], a); - return a; - } - /** - * Create a scope for the given collection of AST node descriptions. - */ - createScope(e, r, n) { - return new Wc(fe(e), r, n); - } - /** - * Create a scope for the given collection of AST nodes, which need to be transformed into respective - * descriptions first. This is done using the `NameProvider` and `AstNodeDescriptionProvider` services. - */ - createScopeForNodes(e, r, n) { - const i = fe(e).map((a) => { - const s = this.nameProvider.getName(a); - if (s) - return this.descriptions.createDescription(a, s); - }).nonNullable(); - return new Wc(i, r, n); - } - /** - * Create a global scope filtered for the given reference type. - */ - getGlobalScope(e, r) { - return this.globalScopeCache.get(e, () => new gy(this.indexManager.allElements(e))); - } -} -function Ey(t) { - return typeof t.$comment == "string"; -} -function Kc(t) { - return typeof t == "object" && !!t && ("$ref" in t || "$error" in t); -} -class Ay { - constructor(e) { - this.ignoreProperties = /* @__PURE__ */ 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, r) { - const n = r ?? {}, i = r?.replacer, a = (o, l) => this.replacer(o, l, n), s = i ? (o, l) => i(o, l, a) : a; - try { - return this.currentDocument = Gt(e), JSON.stringify(e, s, r?.space); - } finally { - this.currentDocument = void 0; - } - } - deserialize(e, r) { - const n = r ?? {}, i = JSON.parse(e); - return this.linkNode(i, i, n), i; - } - replacer(e, r, { refText: n, sourceText: i, textRegions: a, comments: s, uriConverter: o }) { - if (!this.ignoreProperties.has(e)) - if (ut(r)) { - const l = r.ref, c = n ? r.$refText : void 0; - if (l) { - const u = Gt(l); - let d = ""; - this.currentDocument && this.currentDocument !== u && (o ? d = o(u.uri, l) : d = u.uri.toString()); - const p = this.astNodeLocator.getAstNodePath(l); - return { - $ref: `${d}#${p}`, - $refText: c - }; - } else - return { - $error: r.error?.message ?? "Could not resolve reference", - $refText: c - }; - } else if (Jt(r)) { - const l = n ? r.$refText : void 0, c = []; - for (const u of r.items) { - const d = u.ref, p = Gt(u.ref); - let m = ""; - this.currentDocument && this.currentDocument !== p && (o ? m = o(p.uri, d) : m = p.uri.toString()); - const A = this.astNodeLocator.getAstNodePath(d); - c.push(`${m}#${A}`); - } - return { - $refs: c, - $refText: l - }; - } else if (Fe(r)) { - let l; - if (a && (l = this.addAstNodeRegionWithAssignmentsTo({ ...r }), (!e || r.$document) && l?.$textRegion && (l.$textRegion.documentURI = this.currentDocument?.uri.toString())), i && !e && (l ?? (l = { ...r }), l.$sourceText = r.$cstNode?.text), s) { - l ?? (l = { ...r }); - const c = this.commentProvider.getComment(r); - c && (l.$comment = c.replace(/\r/g, "")); - } - return l ?? r; - } else - return r; - } - addAstNodeRegionWithAssignmentsTo(e) { - const r = (n) => ({ - offset: n.offset, - end: n.end, - length: n.length, - range: n.range - }); - if (e.$cstNode) { - const n = e.$textRegion = r(e.$cstNode), i = n.assignments = {}; - return Object.keys(e).filter((a) => !a.startsWith("$")).forEach((a) => { - const s = Lh(e.$cstNode, a).map(r); - s.length !== 0 && (i[a] = s); - }), e; - } - } - linkNode(e, r, n, i, a, s) { - for (const [l, c] of Object.entries(e)) - if (Array.isArray(c)) - for (let u = 0; u < c.length; u++) { - const d = c[u]; - Kc(d) ? c[u] = this.reviveReference(e, l, r, d, n) : Fe(d) && this.linkNode(d, r, n, e, l, u); - } - else Kc(c) ? e[l] = this.reviveReference(e, l, r, c, n) : Fe(c) && this.linkNode(c, r, n, e, l); - const o = e; - o.$container = i, o.$containerProperty = a, o.$containerIndex = s; - } - reviveReference(e, r, n, i, a) { - let s = i.$refText, o = i.$error, l; - if (i.$ref) { - const c = this.getRefNode(n, i.$ref, a.uriConverter); - if (Fe(c)) - return s || (s = this.nameProvider.getName(c)), { - $refText: s ?? "", - ref: c - }; - o = c; - } else if (i.$refs) { - const c = []; - for (const u of i.$refs) { - const d = this.getRefNode(n, u, a.uriConverter); - Fe(d) && c.push({ ref: d }); - } - if (c.length === 0) - l = { - $refText: s ?? "", - items: c - }, o ?? (o = "Could not resolve multi-reference"); - else - return { - $refText: s ?? "", - items: c - }; - } - if (o) - return l ?? (l = { - $refText: s ?? "", - ref: void 0 - }), l.error = { - info: { - container: e, - property: r, - reference: l - }, - message: o - }, l; - } - getRefNode(e, r, n) { - try { - const i = r.indexOf("#"); - if (i === 0) { - const l = this.astNodeLocator.getAstNode(e, r.substring(1)); - return l || "Could not resolve path: " + r; - } - if (i < 0) { - const l = n ? n(r) : ft.parse(r), c = this.langiumDocuments.getDocument(l); - return c ? c.parseResult.value : "Could not find document for URI: " + r; - } - const a = n ? n(r.substring(0, i)) : ft.parse(r.substring(0, i)), s = this.langiumDocuments.getDocument(a); - if (!s) - return "Could not find document for URI: " + r; - if (i === r.length - 1) - return s.parseResult.value; - const o = this.astNodeLocator.getAstNode(s.parseResult.value, r.substring(i + 1)); - return o || "Could not resolve URI: " + r; - } catch (i) { - return String(i); - } - } -} -class $y { - /** - * @deprecated Since 3.1.0. Use the new `fileExtensionMap` (or `languageIdMap`) property instead. - */ - get map() { - return this.fileExtensionMap; - } - constructor(e) { - this.languageIdMap = /* @__PURE__ */ new Map(), this.fileExtensionMap = /* @__PURE__ */ new Map(), this.fileNameMap = /* @__PURE__ */ new Map(), this.textDocuments = e?.workspace.TextDocuments; - } - register(e) { - const r = e.LanguageMetaData; - for (const n of r.fileExtensions) - this.fileExtensionMap.has(n) && console.warn(`The file extension ${n} is used by multiple languages. It is now assigned to '${r.languageId}'.`), this.fileExtensionMap.set(n, e); - if (r.fileNames) - for (const n of r.fileNames) - this.fileNameMap.has(n) && console.warn(`The file name ${n} is used by multiple languages. It is now assigned to '${r.languageId}'.`), this.fileNameMap.set(n, e); - this.languageIdMap.set(r.languageId, e); - } - getServices(e) { - if (this.languageIdMap.size === 0) - throw new Error("The service registry is empty. Use `register` to register the services of a language."); - const r = this.textDocuments?.get(e)?.languageId; - if (r !== void 0) { - const s = this.languageIdMap.get(r); - if (s) - return s; - } - const n = Qe.extname(e), i = Qe.basename(e), a = this.fileNameMap.get(i) ?? this.fileExtensionMap.get(n); - if (!a) - throw r ? new Error(`The service registry contains no services for the extension '${n}' for language '${r}'.`) : new Error(`The service registry contains no services for the extension '${n}'.`); - return a; - } - hasServices(e) { - try { - return this.getServices(e), !0; - } catch { - return !1; - } - } - get all() { - return Array.from(this.languageIdMap.values()); - } -} -function si(t) { - return { code: t }; -} -var gl; -(function(t) { - t.defaults = ["fast", "slow", "built-in"], t.all = t.defaults; -})(gl || (gl = {})); -class Cy { - constructor(e) { - this.entries = new Ri(), this.knownCategories = new Set(gl.defaults), this.entriesBefore = [], this.entriesAfter = [], this.reflection = e.shared.AstReflection; - } - /** - * Register a set of validation checks. Each value in the record can be either a single validation check (i.e. a function) - * or an array of validation checks. - * - * @param checksRecord Set of validation checks to register. - * @param thisObj Optional object to be used as `this` when calling the validation check functions. - * @param category Optional category for the validation checks (defaults to `'fast'`). - */ - register(e, r = this, n = "fast") { - if (n === "built-in") - throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors."); - this.knownCategories.add(n); - for (const [i, a] of Object.entries(e)) { - const s = a; - if (Array.isArray(s)) - for (const o of s) { - const l = { - check: this.wrapValidationException(o, r), - category: n - }; - this.addEntry(i, l); - } - else if (typeof s == "function") { - const o = { - check: this.wrapValidationException(s, r), - category: n - }; - this.addEntry(i, o); - } else - $i(); - } - } - wrapValidationException(e, r) { - return async (n, i, a) => { - await this.handleException(() => e.call(r, n, i, a), "An error occurred during validation", i, n); - }; - } - async handleException(e, r, n, i) { - try { - await e(); - } catch (a) { - if (fs(a)) - throw a; - console.error(`${r}:`, a), a instanceof Error && a.stack && console.error(a.stack); - const s = a instanceof Error ? a.message : String(a); - n("error", `${r}: ${s}`, { node: i }); - } - } - addEntry(e, r) { - if (e === "AstNode") { - this.entries.add("AstNode", r); - return; - } - for (const n of this.reflection.getAllSubTypes(e)) - this.entries.add(n, r); - } - getChecks(e, r) { - let n = fe(this.entries.get(e)).concat(this.entries.get("AstNode")); - return r && (n = n.filter((i) => r.includes(i.category))), n.map((i) => i.check); - } - /** - * Register logic which will be executed once before validating all the nodes of an AST/Langium document. - * This helps to prepare or initialize some information which are required or reusable for the following checks on the AstNodes. - * - * As an example, for validating unique fully-qualified names of nodes in the AST, - * here the map for mapping names to nodes could be established. - * During the usual checks on the nodes, they are put into this map with their name. - * - * Note that this approach makes validations stateful, which is relevant e.g. when cancelling the validation. - * Therefore it is recommended to clear stored information - * _before_ validating an AST to validate each AST unaffected from other ASTs - * AND _after_ validating the AST to free memory by information which are no longer used. - * - * @param checkBefore a set-up function which will be called once before actually validating an AST - * @param thisObj Optional object to be used as `this` when calling the validation check functions. - */ - registerBeforeDocument(e, r = this) { - this.entriesBefore.push(this.wrapPreparationException(e, "An error occurred during set-up of the validation", r)); - } - /** - * Register logic which will be executed once after validating all the nodes of an AST/Langium document. - * This helps to finally evaluate information which are collected during the checks on the AstNodes. - * - * As an example, for validating unique fully-qualified names of nodes in the AST, - * here the map with all the collected nodes and their names is checked - * and validation hints are created for all nodes with the same name. - * - * Note that this approach makes validations stateful, which is relevant e.g. when cancelling the validation. - * Therefore it is recommended to clear stored information - * _before_ validating an AST to validate each AST unaffected from other ASTs - * AND _after_ validating the AST to free memory by information which are no longer used. - * - * @param checkBefore a set-up function which will be called once before actually validating an AST - * @param thisObj Optional object to be used as `this` when calling the validation check functions. - */ - registerAfterDocument(e, r = this) { - this.entriesAfter.push(this.wrapPreparationException(e, "An error occurred during tear-down of the validation", r)); - } - wrapPreparationException(e, r, n) { - return async (i, a, s, o) => { - await this.handleException(() => e.call(n, i, a, s, o), r, a, i); - }; - } - get checksBefore() { - return this.entriesBefore; - } - get checksAfter() { - return this.entriesAfter; - } - getAllValidationCategories(e) { - return this.knownCategories; - } -} -const Sy = Object.freeze({ - validateNode: !0, - validateChildren: !0 -}); -class ky { - 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, r = {}, n = he.CancellationToken.None) { - const i = e.parseResult, a = []; - if (await Ue(n), (!r.categories || r.categories.includes("built-in")) && (this.processLexingErrors(i, a, r), r.stopAfterLexingErrors && a.some((s) => s.data?.code === ct.LexingError) || (this.processParsingErrors(i, a, r), r.stopAfterParsingErrors && a.some((s) => s.data?.code === ct.ParsingError)) || (this.processLinkingErrors(e, a, r), r.stopAfterLinkingErrors && a.some((s) => s.data?.code === ct.LinkingError)))) - return a; - try { - a.push(...await this.validateAst(i.value, r, n)); - } catch (s) { - if (fs(s)) - throw s; - console.error("An error occurred during validation:", s); - } - return await Ue(n), a; - } - processLexingErrors(e, r, n) { - const i = [...e.lexerErrors, ...e.lexerReport?.diagnostics ?? []]; - for (const a of i) { - const s = a.severity ?? "error", o = { - severity: Ss(s), - 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: by(s), - source: this.getSource() - }; - r.push(o); - } - } - processParsingErrors(e, r, n) { - for (const i of e.parserErrors) { - let a; - if (isNaN(i.token.startOffset)) { - if ("previousToken" in i) { - const s = i.previousToken; - if (isNaN(s.startOffset)) { - const o = { line: 0, character: 0 }; - a = { start: o, end: o }; - } else { - const o = { line: s.endLine - 1, character: s.endColumn }; - a = { start: o, end: o }; - } - } - } else - a = Zs(i.token); - if (a) { - const s = { - severity: Ss("error"), - range: a, - message: i.message, - data: si(ct.ParsingError), - source: this.getSource() - }; - r.push(s); - } - } - } - processLinkingErrors(e, r, n) { - for (const i of e.references) { - const a = i.error; - if (a) { - const s = { - node: a.info.container, - range: i.$refNode?.range, - property: a.info.property, - index: a.info.index, - data: { - code: ct.LinkingError, - containerType: a.info.container.$type, - property: a.info.property, - refText: a.info.reference.$refText - } - }; - r.push(this.toDiagnostic("error", a.message, s)); - } - } - } - async validateAst(e, r, n = he.CancellationToken.None) { - const i = [], a = (s, o, l) => { - i.push(this.toDiagnostic(s, o, l)); - }; - return await this.validateAstBefore(e, r, a, n), await this.validateAstNodes(e, r, a, n), await this.validateAstAfter(e, r, a, n), i; - } - async validateAstBefore(e, r, n, i = he.CancellationToken.None) { - const a = this.validationRegistry.checksBefore; - for (const s of a) - await Ue(i), await s(e, n, r.categories ?? [], i); - } - async validateAstNodes(e, r, n, i = he.CancellationToken.None) { - if (this.profiler?.isActive("validating")) { - const a = this.profiler.createTask("validating", this.languageId); - a.start(); - try { - const s = jt(e).iterator(); - for (const o of s) { - a.startSubTask(o.$type); - const l = this.validateSingleNodeOptions(o, r); - if (l.validateNode) - try { - const c = this.validationRegistry.getChecks(o.$type, r.categories); - for (const u of c) - await u(o, n, i); - } finally { - a.stopSubTask(o.$type); - } - l.validateChildren || s.prune(); - } - } finally { - a.stop(); - } - } else { - const a = jt(e).iterator(); - for (const s of a) { - await Ue(i); - const o = this.validateSingleNodeOptions(s, r); - if (o.validateNode) { - const l = this.validationRegistry.getChecks(s.$type, r.categories); - for (const c of l) - await c(s, n, i); - } - o.validateChildren || a.prune(); - } - } - } - validateSingleNodeOptions(e, r) { - return Sy; - } - async validateAstAfter(e, r, n, i = he.CancellationToken.None) { - const a = this.validationRegistry.checksAfter; - for (const s of a) - await Ue(i), await s(e, n, r.categories ?? [], i); - } - toDiagnostic(e, r, n) { - return { - message: r, - range: wy(n), - severity: Ss(e), - code: n.code, - codeDescription: n.codeDescription, - tags: n.tags, - relatedInformation: n.relatedInformation, - data: n.data, - source: this.getSource() - }; - } - getSource() { - return this.metadata.languageId; - } -} -function wy(t) { - if (t.range) - return t.range; - let e; - return typeof t.property == "string" ? e = pf(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = xh(t.node.$cstNode, t.keyword, t.index)), e ?? (e = t.node.$cstNode), e ? e.range : { - start: { line: 0, character: 0 }, - end: { line: 0, character: 0 } - }; -} -function Ss(t) { - switch (t) { - case "error": - return 1; - case "warning": - return 2; - case "info": - return 3; - case "hint": - return 4; - default: - throw new Error("Invalid diagnostic severity: " + t); - } -} -function by(t) { - switch (t) { - case "error": - return si(ct.LexingError); - case "warning": - return si(ct.LexingWarning); - case "info": - return si(ct.LexingInfo); - case "hint": - return si(ct.LexingHint); - default: - throw new Error("Invalid diagnostic severity: " + t); - } -} -var ct; -(function(t) { - t.LexingError = "lexing-error", t.LexingWarning = "lexing-warning", t.LexingInfo = "lexing-info", t.LexingHint = "lexing-hint", t.ParsingError = "parsing-error", t.LinkingError = "linking-error"; -})(ct || (ct = {})); -class Ny { - constructor(e) { - this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider; - } - createDescription(e, r, n) { - const i = n ?? Gt(e); - r ?? (r = this.nameProvider.getName(e)); - const a = this.astNodeLocator.getAstNodePath(e); - if (!r) - throw new Error(`Node at path ${a} has no name.`); - let s; - const o = () => s ?? (s = Pa(this.nameProvider.getNameNode(e) ?? e.$cstNode)); - return { - node: e, - name: r, - get nameSegment() { - return o(); - }, - selectionSegment: Pa(e.$cstNode), - type: e.$type, - documentUri: i.uri, - path: a - }; - } -} -class _y { - constructor(e) { - this.nodeLocator = e.workspace.AstNodeLocator; - } - async createDescriptions(e, r = he.CancellationToken.None) { - const n = [], i = e.parseResult.value; - for (const a of jt(i)) - await Ue(r), _a(a).forEach((s) => { - s.reference.error || n.push(...this.createInfoDescriptions(s)); - }); - return n; - } - createInfoDescriptions(e) { - const r = e.reference; - if (r.error || !r.$refNode) - return []; - let n = []; - ut(r) && r.$nodeDescription ? n = [r.$nodeDescription] : Jt(r) && (n = r.items.map((l) => l.$nodeDescription).filter((l) => l !== void 0)); - const i = Gt(e.container).uri, a = this.nodeLocator.getAstNodePath(e.container), s = [], o = Pa(r.$refNode); - for (const l of n) - s.push({ - sourceUri: i, - sourcePath: a, - targetUri: l.documentUri, - targetPath: l.path, - segment: o, - local: Qe.equals(l.documentUri, i) - }); - return s; - } -} -class Iy { - constructor() { - this.segmentSeparator = "/", this.indexSeparator = "@"; - } - getAstNodePath(e) { - if (e.$container) { - const r = this.getAstNodePath(e.$container), n = this.getPathSegment(e); - return r + this.segmentSeparator + n; - } - return ""; - } - getPathSegment({ $containerProperty: e, $containerIndex: r }) { - if (!e) - throw new Error("Missing '$containerProperty' in AST node."); - return r !== void 0 ? e + this.indexSeparator + r : e; - } - getAstNode(e, r) { - return r.split(this.segmentSeparator).reduce((i, a) => { - if (!i || a.length === 0) - return i; - const s = a.indexOf(this.indexSeparator); - if (s > 0) { - const o = a.substring(0, s), l = parseInt(a.substring(s + 1)); - return i[o]?.[l]; - } - return i[a]; - }, e); - } -} -var Py = mn(); -class Oy { - constructor(e) { - this._ready = new Hl(), this.onConfigurationSectionUpdateEmitter = new Py.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) { - const r = this.serviceRegistry.all; - e.register({ - // Listen to configuration changes for all languages - section: r.map((n) => this.toSectionName(n.LanguageMetaData.languageId)) - }); - } - if (e.fetchConfiguration) { - const r = this.serviceRegistry.all.map((i) => ({ - // Fetch the configuration changes for all languages - section: this.toSectionName(i.LanguageMetaData.languageId) - })), n = await e.fetchConfiguration(r); - r.forEach((i, a) => { - this.updateSectionConfiguration(i.section, n[a]); - }); - } - } - this._ready.resolve(); - } - /** - * Updates the cached configurations using the `change` notification parameters. - * - * @param change The parameters of a change configuration notification. - * `settings` property of the change object could be expressed as `Record>` - */ - updateConfiguration(e) { - typeof e.settings != "object" || e.settings === null || Object.entries(e.settings).forEach(([r, n]) => { - this.updateSectionConfiguration(r, n), this.onConfigurationSectionUpdateEmitter.fire({ section: r, configuration: n }); - }); - } - updateSectionConfiguration(e, r) { - this.settings[e] = r; - } - /** - * Returns a configuration value stored for the given language. - * - * @param language The language id - * @param configuration Configuration name - */ - async getConfiguration(e, r) { - await this.ready; - const n = this.toSectionName(e); - if (this.settings[n]) - return this.settings[n][r]; - } - toSectionName(e) { - return `${e}`; - } - get onConfigurationSectionUpdate() { - return this.onConfigurationSectionUpdateEmitter.event; - } -} -var or = {}, lr = {}, ra = {}, ks = {}, G = {}, Vc; -function $d() { - if (Vc) return G; - Vc = 1, Object.defineProperty(G, "__esModule", { value: !0 }), G.Message = G.NotificationType9 = G.NotificationType8 = G.NotificationType7 = G.NotificationType6 = G.NotificationType5 = G.NotificationType4 = G.NotificationType3 = G.NotificationType2 = G.NotificationType1 = G.NotificationType0 = G.NotificationType = G.RequestType9 = G.RequestType8 = G.RequestType7 = G.RequestType6 = G.RequestType5 = G.RequestType4 = G.RequestType3 = G.RequestType2 = G.RequestType1 = G.RequestType = G.RequestType0 = G.AbstractMessageSignature = G.ParameterStructures = G.ResponseError = G.ErrorCodes = void 0; - const t = bi(); - var e; - (function(T) { - T.ParseError = -32700, T.InvalidRequest = -32600, T.MethodNotFound = -32601, T.InvalidParams = -32602, T.InternalError = -32603, T.jsonrpcReservedErrorRangeStart = -32099, T.serverErrorStart = -32099, T.MessageWriteError = -32099, T.MessageReadError = -32098, T.PendingResponseRejected = -32097, T.ConnectionInactive = -32096, T.ServerNotInitialized = -32002, T.UnknownErrorCode = -32001, T.jsonrpcReservedErrorRangeEnd = -32e3, T.serverErrorEnd = -32e3; - })(e || (G.ErrorCodes = e = {})); - class r extends Error { - constructor(g, $, y) { - super($), this.code = t.number(g) ? g : e.UnknownErrorCode, this.data = y, Object.setPrototypeOf(this, r.prototype); - } - toJson() { - const g = { - code: this.code, - message: this.message - }; - return this.data !== void 0 && (g.data = this.data), g; - } - } - G.ResponseError = r; - class n { - constructor(g) { - this.kind = g; - } - static is(g) { - return g === n.auto || g === n.byName || g === n.byPosition; - } - toString() { - return this.kind; - } - } - G.ParameterStructures = n, n.auto = new n("auto"), n.byPosition = new n("byPosition"), n.byName = new n("byName"); - class i { - constructor(g, $) { - this.method = g, this.numberOfParams = $; - } - get parameterStructures() { - return n.auto; - } - } - G.AbstractMessageSignature = i; - class a extends i { - constructor(g) { - super(g, 0); - } - } - G.RequestType0 = a; - class s extends i { - constructor(g, $ = n.auto) { - super(g, 1), this._parameterStructures = $; - } - get parameterStructures() { - return this._parameterStructures; - } - } - G.RequestType = s; - class o extends i { - constructor(g, $ = n.auto) { - super(g, 1), this._parameterStructures = $; - } - get parameterStructures() { - return this._parameterStructures; - } - } - G.RequestType1 = o; - class l extends i { - constructor(g) { - super(g, 2); - } - } - G.RequestType2 = l; - class c extends i { - constructor(g) { - super(g, 3); - } - } - G.RequestType3 = c; - class u extends i { - constructor(g) { - super(g, 4); - } - } - G.RequestType4 = u; - class d extends i { - constructor(g) { - super(g, 5); - } - } - G.RequestType5 = d; - class p extends i { - constructor(g) { - super(g, 6); - } - } - G.RequestType6 = p; - class m extends i { - constructor(g) { - super(g, 7); - } - } - G.RequestType7 = m; - class A extends i { - constructor(g) { - super(g, 8); - } - } - G.RequestType8 = A; - class b extends i { - constructor(g) { - super(g, 9); - } - } - G.RequestType9 = b; - class I extends i { - constructor(g, $ = n.auto) { - super(g, 1), this._parameterStructures = $; - } - get parameterStructures() { - return this._parameterStructures; - } - } - G.NotificationType = I; - class k extends i { - constructor(g) { - super(g, 0); - } - } - G.NotificationType0 = k; - class S extends i { - constructor(g, $ = n.auto) { - super(g, 1), this._parameterStructures = $; - } - get parameterStructures() { - return this._parameterStructures; - } - } - G.NotificationType1 = S; - class C extends i { - constructor(g) { - super(g, 2); - } - } - G.NotificationType2 = C; - class P extends i { - constructor(g) { - super(g, 3); - } - } - G.NotificationType3 = P; - class W extends i { - constructor(g) { - super(g, 4); - } - } - G.NotificationType4 = W; - class B extends i { - constructor(g) { - super(g, 5); - } - } - G.NotificationType5 = B; - class H extends i { - constructor(g) { - super(g, 6); - } - } - G.NotificationType6 = H; - class ne extends i { - constructor(g) { - super(g, 7); - } - } - G.NotificationType7 = ne; - class se extends i { - constructor(g) { - super(g, 8); - } - } - G.NotificationType8 = se; - class oe extends i { - constructor(g) { - super(g, 9); - } - } - G.NotificationType9 = oe; - var N; - return (function(T) { - function g(R) { - const E = R; - return E && t.string(E.method) && (t.string(E.id) || t.number(E.id)); - } - T.isRequest = g; - function $(R) { - const E = R; - return E && t.string(E.method) && R.id === void 0; - } - T.isNotification = $; - function y(R) { - const E = R; - return E && (E.result !== void 0 || !!E.error) && (t.string(E.id) || t.number(E.id) || E.id === null); - } - T.isResponse = y; - })(N || (G.Message = N = {})), G; -} -var St = {}, Hc; -function Cd() { - if (Hc) return St; - Hc = 1; - var t; - Object.defineProperty(St, "__esModule", { value: !0 }), St.LRUCache = St.LinkedMap = St.Touch = void 0; - var e; - (function(i) { - i.None = 0, i.First = 1, i.AsOld = i.First, i.Last = 2, i.AsNew = i.Last; - })(e || (St.Touch = e = {})); - class r { - constructor() { - this[t] = "LinkedMap", this._map = /* @__PURE__ */ 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(a) { - return this._map.has(a); - } - get(a, s = e.None) { - const o = this._map.get(a); - if (o) - return s !== e.None && this.touch(o, s), o.value; - } - set(a, s, o = e.None) { - let l = this._map.get(a); - if (l) - l.value = s, o !== e.None && this.touch(l, o); - else { - switch (l = { key: a, value: s, next: void 0, previous: void 0 }, o) { - case e.None: - this.addItemLast(l); - break; - case e.First: - this.addItemFirst(l); - break; - case e.Last: - this.addItemLast(l); - break; - default: - this.addItemLast(l); - break; - } - this._map.set(a, l), this._size++; - } - return this; - } - delete(a) { - return !!this.remove(a); - } - remove(a) { - const s = this._map.get(a); - if (s) - return this._map.delete(a), this.removeItem(s), this._size--, s.value; - } - shift() { - if (!this._head && !this._tail) - return; - if (!this._head || !this._tail) - throw new Error("Invalid list"); - const a = this._head; - return this._map.delete(a.key), this.removeItem(a), this._size--, a.value; - } - forEach(a, s) { - const o = this._state; - let l = this._head; - for (; l; ) { - if (s ? a.bind(s)(l.value, l.key, this) : a(l.value, l.key, this), this._state !== o) - throw new Error("LinkedMap got modified during iteration."); - l = l.next; - } - } - keys() { - const a = this._state; - let s = this._head; - const o = { - [Symbol.iterator]: () => o, - next: () => { - if (this._state !== a) - throw new Error("LinkedMap got modified during iteration."); - if (s) { - const l = { value: s.key, done: !1 }; - return s = s.next, l; - } else - return { value: void 0, done: !0 }; - } - }; - return o; - } - values() { - const a = this._state; - let s = this._head; - const o = { - [Symbol.iterator]: () => o, - next: () => { - if (this._state !== a) - throw new Error("LinkedMap got modified during iteration."); - if (s) { - const l = { value: s.value, done: !1 }; - return s = s.next, l; - } else - return { value: void 0, done: !0 }; - } - }; - return o; - } - entries() { - const a = this._state; - let s = this._head; - const o = { - [Symbol.iterator]: () => o, - next: () => { - if (this._state !== a) - throw new Error("LinkedMap got modified during iteration."); - if (s) { - const l = { value: [s.key, s.value], done: !1 }; - return s = s.next, l; - } else - return { value: void 0, done: !0 }; - } - }; - return o; - } - [(t = Symbol.toStringTag, Symbol.iterator)]() { - return this.entries(); - } - trimOld(a) { - if (a >= this.size) - return; - if (a === 0) { - this.clear(); - return; - } - let s = this._head, o = this.size; - for (; s && o > a; ) - this._map.delete(s.key), s = s.next, o--; - this._head = s, this._size = o, s && (s.previous = void 0), this._state++; - } - addItemFirst(a) { - if (!this._head && !this._tail) - this._tail = a; - else if (this._head) - a.next = this._head, this._head.previous = a; - else - throw new Error("Invalid list"); - this._head = a, this._state++; - } - addItemLast(a) { - if (!this._head && !this._tail) - this._head = a; - else if (this._tail) - a.previous = this._tail, this._tail.next = a; - else - throw new Error("Invalid list"); - this._tail = a, this._state++; - } - removeItem(a) { - if (a === this._head && a === this._tail) - this._head = void 0, this._tail = void 0; - else if (a === this._head) { - if (!a.next) - throw new Error("Invalid list"); - a.next.previous = void 0, this._head = a.next; - } else if (a === this._tail) { - if (!a.previous) - throw new Error("Invalid list"); - a.previous.next = void 0, this._tail = a.previous; - } else { - const s = a.next, o = a.previous; - if (!s || !o) - throw new Error("Invalid list"); - s.previous = o, o.next = s; - } - a.next = void 0, a.previous = void 0, this._state++; - } - touch(a, s) { - if (!this._head || !this._tail) - throw new Error("Invalid list"); - if (!(s !== e.First && s !== e.Last)) { - if (s === e.First) { - if (a === this._head) - return; - const o = a.next, l = a.previous; - a === this._tail ? (l.next = void 0, this._tail = l) : (o.previous = l, l.next = o), a.previous = void 0, a.next = this._head, this._head.previous = a, this._head = a, this._state++; - } else if (s === e.Last) { - if (a === this._tail) - return; - const o = a.next, l = a.previous; - a === this._head ? (o.previous = void 0, this._head = o) : (o.previous = l, l.next = o), a.next = void 0, a.previous = this._tail, this._tail.next = a, this._tail = a, this._state++; - } - } - } - toJSON() { - const a = []; - return this.forEach((s, o) => { - a.push([o, s]); - }), a; - } - fromJSON(a) { - this.clear(); - for (const [s, o] of a) - this.set(s, o); - } - } - St.LinkedMap = r; - class n extends r { - constructor(a, s = 1) { - super(), this._limit = a, this._ratio = Math.min(Math.max(0, s), 1); - } - get limit() { - return this._limit; - } - set limit(a) { - this._limit = a, this.checkTrim(); - } - get ratio() { - return this._ratio; - } - set ratio(a) { - this._ratio = Math.min(Math.max(0, a), 1), this.checkTrim(); - } - get(a, s = e.AsNew) { - return super.get(a, s); - } - peek(a) { - return super.get(a, e.None); - } - set(a, s) { - return super.set(a, s, e.Last), this.checkTrim(), this; - } - checkTrim() { - this.size > this._limit && this.trimOld(Math.round(this._limit * this._ratio)); - } - } - return St.LRUCache = n, St; -} -var Dn = {}, Xc; -function Ly() { - if (Xc) return Dn; - Xc = 1, Object.defineProperty(Dn, "__esModule", { value: !0 }), Dn.Disposable = void 0; - var t; - return (function(e) { - function r(n) { - return { - dispose: n - }; - } - e.create = r; - })(t || (Dn.Disposable = t = {})), Dn; -} -var cr = {}, Yc; -function xy() { - if (Yc) return cr; - Yc = 1, Object.defineProperty(cr, "__esModule", { value: !0 }), cr.SharedArrayReceiverStrategy = cr.SharedArraySenderStrategy = void 0; - const t = us(); - var e; - (function(s) { - s.Continue = 0, s.Cancelled = 1; - })(e || (e = {})); - class r { - constructor() { - this.buffers = /* @__PURE__ */ new Map(); - } - enableCancellation(o) { - if (o.id === null) - return; - const l = new SharedArrayBuffer(4), c = new Int32Array(l, 0, 1); - c[0] = e.Continue, this.buffers.set(o.id, l), o.$cancellationData = l; - } - async sendCancellation(o, l) { - const c = this.buffers.get(l); - if (c === void 0) - return; - const u = new Int32Array(c, 0, 1); - Atomics.store(u, 0, e.Cancelled); - } - cleanup(o) { - this.buffers.delete(o); - } - dispose() { - this.buffers.clear(); - } - } - cr.SharedArraySenderStrategy = r; - class n { - constructor(o) { - this.data = new Int32Array(o, 0, 1); - } - get isCancellationRequested() { - return Atomics.load(this.data, 0) === e.Cancelled; - } - get onCancellationRequested() { - throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events"); - } - } - class i { - constructor(o) { - this.token = new n(o); - } - cancel() { - } - dispose() { - } - } - class a { - constructor() { - this.kind = "request"; - } - createCancellationTokenSource(o) { - const l = o.$cancellationData; - return l === void 0 ? new t.CancellationTokenSource() : new i(l); - } - } - return cr.SharedArrayReceiverStrategy = a, cr; -} -var kt = {}, Mn = {}, Jc; -function Sd() { - if (Jc) return Mn; - Jc = 1, Object.defineProperty(Mn, "__esModule", { value: !0 }), Mn.Semaphore = void 0; - const t = Or(); - class e { - 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((i, a) => { - this._waiting.push({ thunk: n, resolve: i, reject: a }), 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; - const n = this._waiting.shift(); - if (this._active++, this._active > this._capacity) - throw new Error("To many thunks active"); - try { - const i = n.thunk(); - i instanceof Promise ? i.then((a) => { - this._active--, n.resolve(a), this.runNext(); - }, (a) => { - this._active--, n.reject(a), this.runNext(); - }) : (this._active--, n.resolve(i), this.runNext()); - } catch (i) { - this._active--, n.reject(i), this.runNext(); - } - } - } - return Mn.Semaphore = e, Mn; -} -var Zc; -function Dy() { - if (Zc) return kt; - Zc = 1, Object.defineProperty(kt, "__esModule", { value: !0 }), kt.ReadableStreamMessageReader = kt.AbstractMessageReader = kt.MessageReader = void 0; - const t = Or(), e = bi(), r = mn(), n = Sd(); - var i; - (function(l) { - function c(u) { - let d = u; - return d && e.func(d.listen) && e.func(d.dispose) && e.func(d.onError) && e.func(d.onClose) && e.func(d.onPartialMessage); - } - l.is = c; - })(i || (kt.MessageReader = i = {})); - class a { - constructor() { - this.errorEmitter = new r.Emitter(), this.closeEmitter = new r.Emitter(), this.partialMessageEmitter = new r.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: ${e.string(c.message) ? c.message : "unknown"}`); - } - } - kt.AbstractMessageReader = a; - var s; - (function(l) { - function c(u) { - let d, p; - const m = /* @__PURE__ */ new Map(); - let A; - const b = /* @__PURE__ */ new Map(); - if (u === void 0 || typeof u == "string") - d = u ?? "utf-8"; - else { - if (d = u.charset ?? "utf-8", u.contentDecoder !== void 0 && (p = u.contentDecoder, m.set(p.name, p)), u.contentDecoders !== void 0) - for (const I of u.contentDecoders) - m.set(I.name, I); - if (u.contentTypeDecoder !== void 0 && (A = u.contentTypeDecoder, b.set(A.name, A)), u.contentTypeDecoders !== void 0) - for (const I of u.contentTypeDecoders) - b.set(I.name, I); - } - return A === void 0 && (A = (0, t.default)().applicationJson.decoder, b.set(A.name, A)), { charset: d, contentDecoder: p, contentDecoders: m, contentTypeDecoder: A, contentTypeDecoders: b }; - } - l.fromOptions = c; - })(s || (s = {})); - class o extends a { - constructor(c, u) { - super(), this.readable = c, this.options = s.fromOptions(u), this.buffer = (0, t.default)().messageBuffer.create(this.options.charset), this._partialMessageTimeout = 1e4, this.nextMessageLength = -1, this.messageToken = 0, this.readSemaphore = new n.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; - const u = this.readable.onData((d) => { - this.onData(d); - }); - return this.readable.onError((d) => this.fireError(d)), this.readable.onClose(() => this.fireClose()), u; - } - onData(c) { - try { - for (this.buffer.append(c); ; ) { - if (this.nextMessageLength === -1) { - const d = this.buffer.tryReadHeaders(!0); - if (!d) - return; - const p = d.get("content-length"); - if (!p) { - this.fireError(new Error(`Header must provide a Content-Length property. -${JSON.stringify(Object.fromEntries(d))}`)); - return; - } - const m = parseInt(p); - if (isNaN(m)) { - this.fireError(new Error(`Content-Length value must be a number. Got ${p}`)); - return; - } - this.nextMessageLength = m; - } - const u = this.buffer.tryReadBody(this.nextMessageLength); - if (u === void 0) { - this.setPartialMessageTimer(); - return; - } - this.clearPartialMessageTimer(), this.nextMessageLength = -1, this.readSemaphore.lock(async () => { - const d = this.options.contentDecoder !== void 0 ? await this.options.contentDecoder.decode(u) : u, p = await this.options.contentTypeDecoder.decode(d, this.options); - this.callback(p); - }).catch((d) => { - this.fireError(d); - }); - } - } catch (u) { - this.fireError(u); - } - } - clearPartialMessageTimer() { - this.partialMessageTimer && (this.partialMessageTimer.dispose(), this.partialMessageTimer = void 0); - } - setPartialMessageTimer() { - this.clearPartialMessageTimer(), !(this._partialMessageTimeout <= 0) && (this.partialMessageTimer = (0, t.default)().timer.setTimeout((c, u) => { - this.partialMessageTimer = void 0, c === this.messageToken && (this.firePartialMessage({ messageToken: c, waitingTime: u }), this.setPartialMessageTimer()); - }, this._partialMessageTimeout, this.messageToken, this._partialMessageTimeout)); - } - } - return kt.ReadableStreamMessageReader = o, kt; -} -var wt = {}, Qc; -function My() { - if (Qc) return wt; - Qc = 1, Object.defineProperty(wt, "__esModule", { value: !0 }), wt.WriteableStreamMessageWriter = wt.AbstractMessageWriter = wt.MessageWriter = void 0; - const t = Or(), e = bi(), r = Sd(), n = mn(), i = "Content-Length: ", a = `\r -`; - var s; - (function(u) { - function d(p) { - let m = p; - return m && e.func(m.dispose) && e.func(m.onClose) && e.func(m.onError) && e.func(m.write); - } - u.is = d; - })(s || (wt.MessageWriter = s = {})); - class o { - constructor() { - this.errorEmitter = new n.Emitter(), this.closeEmitter = new n.Emitter(); - } - dispose() { - this.errorEmitter.dispose(), this.closeEmitter.dispose(); - } - get onError() { - return this.errorEmitter.event; - } - fireError(d, p, m) { - this.errorEmitter.fire([this.asError(d), p, m]); - } - get onClose() { - return this.closeEmitter.event; - } - fireClose() { - this.closeEmitter.fire(void 0); - } - asError(d) { - return d instanceof Error ? d : new Error(`Writer received error. Reason: ${e.string(d.message) ? d.message : "unknown"}`); - } - } - wt.AbstractMessageWriter = o; - var l; - (function(u) { - function d(p) { - return p === void 0 || typeof p == "string" ? { charset: p ?? "utf-8", contentTypeEncoder: (0, t.default)().applicationJson.encoder } : { charset: p.charset ?? "utf-8", contentEncoder: p.contentEncoder, contentTypeEncoder: p.contentTypeEncoder ?? (0, t.default)().applicationJson.encoder }; - } - u.fromOptions = d; - })(l || (l = {})); - class c extends o { - constructor(d, p) { - super(), this.writable = d, this.options = l.fromOptions(p), this.errorCount = 0, this.writeSemaphore = new r.Semaphore(1), this.writable.onError((m) => this.fireError(m)), this.writable.onClose(() => this.fireClose()); - } - async write(d) { - return this.writeSemaphore.lock(async () => this.options.contentTypeEncoder.encode(d, this.options).then((m) => this.options.contentEncoder !== void 0 ? this.options.contentEncoder.encode(m) : m).then((m) => { - const A = []; - return A.push(i, m.byteLength.toString(), a), A.push(a), this.doWrite(d, A, m); - }, (m) => { - throw this.fireError(m), m; - })); - } - async doWrite(d, p, m) { - try { - return await this.writable.write(p.join(""), "ascii"), this.writable.write(m); - } catch (A) { - return this.handleError(A, d), Promise.reject(A); - } - } - handleError(d, p) { - this.errorCount++, this.fireError(d, p, this.errorCount); - } - end() { - this.writable.end(); - } - } - return wt.WriteableStreamMessageWriter = c, wt; -} -var Fn = {}, eu; -function Fy() { - if (eu) return Fn; - eu = 1, Object.defineProperty(Fn, "__esModule", { value: !0 }), Fn.AbstractMessageBuffer = void 0; - const t = 13, e = 10, r = `\r -`; - class n { - constructor(a = "utf-8") { - this._encoding = a, this._chunks = [], this._totalLength = 0; - } - get encoding() { - return this._encoding; - } - append(a) { - const s = typeof a == "string" ? this.fromString(a, this._encoding) : a; - this._chunks.push(s), this._totalLength += s.byteLength; - } - tryReadHeaders(a = !1) { - if (this._chunks.length === 0) - return; - let s = 0, o = 0, l = 0, c = 0; - e: for (; o < this._chunks.length; ) { - const m = this._chunks[o]; - for (l = 0; l < m.length; ) { - switch (m[l]) { - case t: - switch (s) { - case 0: - s = 1; - break; - case 2: - s = 3; - break; - default: - s = 0; - } - break; - case e: - switch (s) { - case 1: - s = 2; - break; - case 3: - s = 4, l++; - break e; - default: - s = 0; - } - break; - default: - s = 0; - } - l++; - } - c += m.byteLength, o++; - } - if (s !== 4) - return; - const u = this._read(c + l), d = /* @__PURE__ */ new Map(), p = this.toString(u, "ascii").split(r); - if (p.length < 2) - return d; - for (let m = 0; m < p.length - 2; m++) { - const A = p[m], b = A.indexOf(":"); - if (b === -1) - throw new Error(`Message header must separate key and value using ':' -${A}`); - const I = A.substr(0, b), k = A.substr(b + 1).trim(); - d.set(a ? I.toLowerCase() : I, k); - } - return d; - } - tryReadBody(a) { - if (!(this._totalLength < a)) - return this._read(a); - } - get numberOfBytes() { - return this._totalLength; - } - _read(a) { - if (a === 0) - return this.emptyBuffer(); - if (a > this._totalLength) - throw new Error("Cannot read so many bytes!"); - if (this._chunks[0].byteLength === a) { - const c = this._chunks[0]; - return this._chunks.shift(), this._totalLength -= a, this.asNative(c); - } - if (this._chunks[0].byteLength > a) { - const c = this._chunks[0], u = this.asNative(c, a); - return this._chunks[0] = c.slice(a), this._totalLength -= a, u; - } - const s = this.allocNative(a); - let o = 0, l = 0; - for (; a > 0; ) { - const c = this._chunks[l]; - if (c.byteLength > a) { - const u = c.slice(0, a); - s.set(u, o), o += a, this._chunks[l] = c.slice(a), this._totalLength -= a, a -= a; - } else - s.set(c, o), o += c.byteLength, this._chunks.shift(), this._totalLength -= c.byteLength, a -= c.byteLength; - } - return s; - } - } - return Fn.AbstractMessageBuffer = n, Fn; -} -var ws = {}, tu; -function Gy() { - return tu || (tu = 1, (function(t) { - Object.defineProperty(t, "__esModule", { value: !0 }), t.createMessageConnection = t.ConnectionOptions = t.MessageStrategy = t.CancellationStrategy = t.CancellationSenderStrategy = t.CancellationReceiverStrategy = t.RequestCancellationReceiverStrategy = t.IdCancellationReceiverStrategy = t.ConnectionStrategy = t.ConnectionError = t.ConnectionErrors = t.LogTraceNotification = t.SetTraceNotification = t.TraceFormat = t.TraceValues = t.Trace = t.NullLogger = t.ProgressType = t.ProgressToken = void 0; - const e = Or(), r = bi(), n = $d(), i = Cd(), a = mn(), s = us(); - var o; - (function(g) { - g.type = new n.NotificationType("$/cancelRequest"); - })(o || (o = {})); - var l; - (function(g) { - function $(y) { - return typeof y == "string" || typeof y == "number"; - } - g.is = $; - })(l || (t.ProgressToken = l = {})); - var c; - (function(g) { - g.type = new n.NotificationType("$/progress"); - })(c || (c = {})); - class u { - constructor() { - } - } - t.ProgressType = u; - var d; - (function(g) { - function $(y) { - return r.func(y); - } - g.is = $; - })(d || (d = {})), t.NullLogger = Object.freeze({ - error: () => { - }, - warn: () => { - }, - info: () => { - }, - log: () => { - } - }); - var p; - (function(g) { - g[g.Off = 0] = "Off", g[g.Messages = 1] = "Messages", g[g.Compact = 2] = "Compact", g[g.Verbose = 3] = "Verbose"; - })(p || (t.Trace = p = {})); - var m; - (function(g) { - g.Off = "off", g.Messages = "messages", g.Compact = "compact", g.Verbose = "verbose"; - })(m || (t.TraceValues = m = {})), (function(g) { - function $(R) { - if (!r.string(R)) - return g.Off; - switch (R = R.toLowerCase(), R) { - case "off": - return g.Off; - case "messages": - return g.Messages; - case "compact": - return g.Compact; - case "verbose": - return g.Verbose; - default: - return g.Off; - } - } - g.fromString = $; - function y(R) { - switch (R) { - case g.Off: - return "off"; - case g.Messages: - return "messages"; - case g.Compact: - return "compact"; - case g.Verbose: - return "verbose"; - default: - return "off"; - } - } - g.toString = y; - })(p || (t.Trace = p = {})); - var A; - (function(g) { - g.Text = "text", g.JSON = "json"; - })(A || (t.TraceFormat = A = {})), (function(g) { - function $(y) { - return r.string(y) ? (y = y.toLowerCase(), y === "json" ? g.JSON : g.Text) : g.Text; - } - g.fromString = $; - })(A || (t.TraceFormat = A = {})); - var b; - (function(g) { - g.type = new n.NotificationType("$/setTrace"); - })(b || (t.SetTraceNotification = b = {})); - var I; - (function(g) { - g.type = new n.NotificationType("$/logTrace"); - })(I || (t.LogTraceNotification = I = {})); - var k; - (function(g) { - g[g.Closed = 1] = "Closed", g[g.Disposed = 2] = "Disposed", g[g.AlreadyListening = 3] = "AlreadyListening"; - })(k || (t.ConnectionErrors = k = {})); - class S extends Error { - constructor($, y) { - super(y), this.code = $, Object.setPrototypeOf(this, S.prototype); - } - } - t.ConnectionError = S; - var C; - (function(g) { - function $(y) { - const R = y; - return R && r.func(R.cancelUndispatched); - } - g.is = $; - })(C || (t.ConnectionStrategy = C = {})); - var P; - (function(g) { - function $(y) { - const R = y; - return R && (R.kind === void 0 || R.kind === "id") && r.func(R.createCancellationTokenSource) && (R.dispose === void 0 || r.func(R.dispose)); - } - g.is = $; - })(P || (t.IdCancellationReceiverStrategy = P = {})); - var W; - (function(g) { - function $(y) { - const R = y; - return R && R.kind === "request" && r.func(R.createCancellationTokenSource) && (R.dispose === void 0 || r.func(R.dispose)); - } - g.is = $; - })(W || (t.RequestCancellationReceiverStrategy = W = {})); - var B; - (function(g) { - g.Message = Object.freeze({ - createCancellationTokenSource(y) { - return new s.CancellationTokenSource(); - } - }); - function $(y) { - return P.is(y) || W.is(y); - } - g.is = $; - })(B || (t.CancellationReceiverStrategy = B = {})); - var H; - (function(g) { - g.Message = Object.freeze({ - sendCancellation(y, R) { - return y.sendNotification(o.type, { id: R }); - }, - cleanup(y) { - } - }); - function $(y) { - const R = y; - return R && r.func(R.sendCancellation) && r.func(R.cleanup); - } - g.is = $; - })(H || (t.CancellationSenderStrategy = H = {})); - var ne; - (function(g) { - g.Message = Object.freeze({ - receiver: B.Message, - sender: H.Message - }); - function $(y) { - const R = y; - return R && B.is(R.receiver) && H.is(R.sender); - } - g.is = $; - })(ne || (t.CancellationStrategy = ne = {})); - var se; - (function(g) { - function $(y) { - const R = y; - return R && r.func(R.handleMessage); - } - g.is = $; - })(se || (t.MessageStrategy = se = {})); - var oe; - (function(g) { - function $(y) { - const R = y; - return R && (ne.is(R.cancellationStrategy) || C.is(R.connectionStrategy) || se.is(R.messageStrategy)); - } - g.is = $; - })(oe || (t.ConnectionOptions = oe = {})); - var N; - (function(g) { - g[g.New = 1] = "New", g[g.Listening = 2] = "Listening", g[g.Closed = 3] = "Closed", g[g.Disposed = 4] = "Disposed"; - })(N || (N = {})); - function T(g, $, y, R) { - const E = y !== void 0 ? y : t.NullLogger; - let L = 0, D = 0, x = 0; - const j = "2.0"; - let F; - const te = /* @__PURE__ */ new Map(); - let z; - const Q = /* @__PURE__ */ new Map(), _e = /* @__PURE__ */ new Map(); - let me, le = new i.LinkedMap(), we = /* @__PURE__ */ new Map(), Ie = /* @__PURE__ */ new Set(), Ce = /* @__PURE__ */ new Map(), Y = p.Off, Xe = A.Text, ge, it = N.New; - const Lr = new a.Emitter(), Tn = new a.Emitter(), Rn = new a.Emitter(), vn = new a.Emitter(), En = new a.Emitter(), at = R && R.cancellationStrategy ? R.cancellationStrategy : ne.Message; - function An(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(); - } - function Ni(h) { - return h === null ? "res-unknown-" + (++x).toString() : "res-" + h.toString(); - } - function _i() { - return "not-" + (++D).toString(); - } - function Ii(h, w) { - n.Message.isRequest(w) ? h.set(An(w.id), w) : n.Message.isResponse(w) ? h.set(Ni(w.id), w) : h.set(_i(), w); - } - function Pi(h) { - } - function $n() { - return it === N.Listening; - } - function Cn() { - return it === N.Closed; - } - function $t() { - return it === N.Disposed; - } - function Sn() { - (it === N.New || it === N.Listening) && (it = N.Closed, Tn.fire(void 0)); - } - function Oi(h) { - Lr.fire([h, void 0, void 0]); - } - function Li(h) { - Lr.fire(h); - } - g.onClose(Sn), g.onError(Oi), $.onClose(Sn), $.onError(Li); - function kn() { - me || le.size === 0 || (me = (0, e.default)().timer.setImmediate(() => { - me = void 0, xi(); - })); - } - function wn(h) { - n.Message.isRequest(h) ? Mi(h) : n.Message.isNotification(h) ? Gi(h) : n.Message.isResponse(h) ? Fi(h) : ji(h); - } - function xi() { - if (le.size === 0) - return; - const h = le.shift(); - try { - const w = R?.messageStrategy; - se.is(w) ? w.handleMessage(h, wn) : wn(h); - } finally { - kn(); - } - } - const Di = (h) => { - try { - if (n.Message.isNotification(h) && h.method === o.type.method) { - const w = h.params.id, O = An(w), M = le.get(O); - if (n.Message.isRequest(M)) { - const re = R?.connectionStrategy, ye = re && re.cancelUndispatched ? re.cancelUndispatched(M, Pi) : void 0; - if (ye && (ye.error !== void 0 || ye.result !== void 0)) { - le.delete(O), Ce.delete(w), ye.id = M.id, nr(ye, h.method, Date.now()), $.write(ye).catch(() => E.error("Sending response for canceled message failed.")); - return; - } - } - const ie = Ce.get(w); - if (ie !== void 0) { - ie.cancel(), xr(h); - return; - } else - Ie.add(w); - } - Ii(le, h); - } finally { - kn(); - } - }; - function Mi(h) { - if ($t()) - return; - function w(X, ce, ee) { - const be = { - jsonrpc: j, - id: h.id - }; - X instanceof n.ResponseError ? be.error = X.toJson() : be.result = X === void 0 ? null : X, nr(be, ce, ee), $.write(be).catch(() => E.error("Sending response failed.")); - } - function O(X, ce, ee) { - const be = { - jsonrpc: j, - id: h.id, - error: X.toJson() - }; - nr(be, ce, ee), $.write(be).catch(() => E.error("Sending response failed.")); - } - function M(X, ce, ee) { - X === void 0 && (X = null); - const be = { - jsonrpc: j, - id: h.id, - result: X - }; - nr(be, ce, ee), $.write(be).catch(() => E.error("Sending response failed.")); - } - qi(h); - const ie = te.get(h.method); - let re, ye; - ie && (re = ie.type, ye = ie.handler); - const Ae = Date.now(); - if (ye || F) { - const X = h.id ?? String(Date.now()), ce = P.is(at.receiver) ? at.receiver.createCancellationTokenSource(X) : at.receiver.createCancellationTokenSource(h); - h.id !== null && Ie.has(h.id) && ce.cancel(), h.id !== null && Ce.set(X, ce); - try { - let ee; - if (ye) - if (h.params === void 0) { - if (re !== void 0 && re.numberOfParams !== 0) { - O(new n.ResponseError(n.ErrorCodes.InvalidParams, `Request ${h.method} defines ${re.numberOfParams} params but received none.`), h.method, Ae); - return; - } - ee = ye(ce.token); - } else if (Array.isArray(h.params)) { - if (re !== void 0 && re.parameterStructures === n.ParameterStructures.byName) { - O(new n.ResponseError(n.ErrorCodes.InvalidParams, `Request ${h.method} defines parameters by name but received parameters by position`), h.method, Ae); - return; - } - ee = ye(...h.params, ce.token); - } else { - if (re !== void 0 && re.parameterStructures === n.ParameterStructures.byPosition) { - O(new n.ResponseError(n.ErrorCodes.InvalidParams, `Request ${h.method} defines parameters by position but received parameters by name`), h.method, Ae); - return; - } - ee = ye(h.params, ce.token); - } - else F && (ee = F(h.method, h.params, ce.token)); - const be = ee; - ee ? be.then ? be.then((Ge) => { - Ce.delete(X), w(Ge, h.method, Ae); - }, (Ge) => { - Ce.delete(X), Ge instanceof n.ResponseError ? O(Ge, h.method, Ae) : Ge && r.string(Ge.message) ? O(new n.ResponseError(n.ErrorCodes.InternalError, `Request ${h.method} failed with message: ${Ge.message}`), h.method, Ae) : O(new n.ResponseError(n.ErrorCodes.InternalError, `Request ${h.method} failed unexpectedly without providing any details.`), h.method, Ae); - }) : (Ce.delete(X), w(ee, h.method, Ae)) : (Ce.delete(X), M(ee, h.method, Ae)); - } catch (ee) { - Ce.delete(X), ee instanceof n.ResponseError ? w(ee, h.method, Ae) : ee && r.string(ee.message) ? O(new n.ResponseError(n.ErrorCodes.InternalError, `Request ${h.method} failed with message: ${ee.message}`), h.method, Ae) : O(new n.ResponseError(n.ErrorCodes.InternalError, `Request ${h.method} failed unexpectedly without providing any details.`), h.method, Ae); - } - } else - O(new n.ResponseError(n.ErrorCodes.MethodNotFound, `Unhandled method ${h.method}`), h.method, Ae); - } - function Fi(h) { - if (!$t()) - if (h.id === null) - h.error ? E.error(`Received response message without id: Error is: -${JSON.stringify(h.error, void 0, 4)}`) : E.error("Received response message without id. No further error information provided."); - else { - const w = h.id, O = we.get(w); - if (Bi(h, O), O !== void 0) { - we.delete(w); - try { - if (h.error) { - const M = h.error; - O.reject(new n.ResponseError(M.code, M.message, M.data)); - } else if (h.result !== void 0) - O.resolve(h.result); - else - throw new Error("Should never happen."); - } catch (M) { - M.message ? E.error(`Response handler '${O.method}' failed with message: ${M.message}`) : E.error(`Response handler '${O.method}' failed unexpectedly.`); - } - } - } - } - function Gi(h) { - if ($t()) - return; - let w, O; - if (h.method === o.type.method) { - const M = h.params.id; - Ie.delete(M), xr(h); - return; - } else { - const M = Q.get(h.method); - M && (O = M.handler, w = M.type); - } - if (O || z) - try { - if (xr(h), O) - if (h.params === void 0) - w !== void 0 && w.numberOfParams !== 0 && w.parameterStructures !== n.ParameterStructures.byName && E.error(`Notification ${h.method} defines ${w.numberOfParams} params but received none.`), O(); - else if (Array.isArray(h.params)) { - const M = h.params; - h.method === c.type.method && M.length === 2 && l.is(M[0]) ? O({ token: M[0], value: M[1] }) : (w !== void 0 && (w.parameterStructures === n.ParameterStructures.byName && E.error(`Notification ${h.method} defines parameters by name but received parameters by position`), w.numberOfParams !== h.params.length && E.error(`Notification ${h.method} defines ${w.numberOfParams} params but received ${M.length} arguments`)), O(...M)); - } else - w !== void 0 && w.parameterStructures === n.ParameterStructures.byPosition && E.error(`Notification ${h.method} defines parameters by position but received parameters by name`), O(h.params); - else z && z(h.method, h.params); - } catch (M) { - M.message ? E.error(`Notification handler '${h.method}' failed with message: ${M.message}`) : E.error(`Notification handler '${h.method}' failed unexpectedly.`); - } - else - Rn.fire(h); - } - function ji(h) { - if (!h) { - E.error("Received empty message."); - return; - } - E.error(`Received message which is neither a response nor a notification message: -${JSON.stringify(h, null, 4)}`); - const w = h; - if (r.string(w.id) || r.number(w.id)) { - const O = w.id, M = we.get(O); - M && M.reject(new Error("The received response has neither a result nor an error property.")); - } - } - function st(h) { - if (h != null) - switch (Y) { - case p.Verbose: - return JSON.stringify(h, null, 4); - case p.Compact: - return JSON.stringify(h); - default: - return; - } - } - function zi(h) { - if (!(Y === p.Off || !ge)) - if (Xe === A.Text) { - let w; - (Y === p.Verbose || Y === p.Compact) && h.params && (w = `Params: ${st(h.params)} - -`), ge.log(`Sending request '${h.method} - (${h.id})'.`, w); - } else - Ct("send-request", h); - } - function Ui(h) { - if (!(Y === p.Off || !ge)) - if (Xe === A.Text) { - let w; - (Y === p.Verbose || Y === p.Compact) && (h.params ? w = `Params: ${st(h.params)} - -` : w = `No parameters provided. - -`), ge.log(`Sending notification '${h.method}'.`, w); - } else - Ct("send-notification", h); - } - function nr(h, w, O) { - if (!(Y === p.Off || !ge)) - if (Xe === A.Text) { - let M; - (Y === p.Verbose || Y === p.Compact) && (h.error && h.error.data ? M = `Error data: ${st(h.error.data)} - -` : h.result ? M = `Result: ${st(h.result)} - -` : h.error === void 0 && (M = `No result returned. - -`)), ge.log(`Sending response '${w} - (${h.id})'. Processing request took ${Date.now() - O}ms`, M); - } else - Ct("send-response", h); - } - function qi(h) { - if (!(Y === p.Off || !ge)) - if (Xe === A.Text) { - let w; - (Y === p.Verbose || Y === p.Compact) && h.params && (w = `Params: ${st(h.params)} - -`), ge.log(`Received request '${h.method} - (${h.id})'.`, w); - } else - Ct("receive-request", h); - } - function xr(h) { - if (!(Y === p.Off || !ge || h.method === I.type.method)) - if (Xe === A.Text) { - let w; - (Y === p.Verbose || Y === p.Compact) && (h.params ? w = `Params: ${st(h.params)} - -` : w = `No parameters provided. - -`), ge.log(`Received notification '${h.method}'.`, w); - } else - Ct("receive-notification", h); - } - function Bi(h, w) { - if (!(Y === p.Off || !ge)) - if (Xe === A.Text) { - let O; - if ((Y === p.Verbose || Y === p.Compact) && (h.error && h.error.data ? O = `Error data: ${st(h.error.data)} - -` : h.result ? O = `Result: ${st(h.result)} - -` : h.error === void 0 && (O = `No result returned. - -`)), w) { - const M = h.error ? ` Request failed: ${h.error.message} (${h.error.code}).` : ""; - ge.log(`Received response '${w.method} - (${h.id})' in ${Date.now() - w.timerStart}ms.${M}`, O); - } else - ge.log(`Received response ${h.id} without active response promise.`, O); - } else - Ct("receive-response", h); - } - function Ct(h, w) { - if (!ge || Y === p.Off) - return; - const O = { - isLSPMessage: !0, - type: h, - message: w, - timestamp: Date.now() - }; - ge.log(O); - } - function Ht() { - if (Cn()) - throw new S(k.Closed, "Connection is closed."); - if ($t()) - throw new S(k.Disposed, "Connection is disposed."); - } - function Wi() { - if ($n()) - throw new S(k.AlreadyListening, "Connection is already listening"); - } - function Ki() { - if (!$n()) - throw new Error("Call listen() first."); - } - function Xt(h) { - return h === void 0 ? null : h; - } - function bn(h) { - if (h !== null) - return h; - } - function f(h) { - return h != null && !Array.isArray(h) && typeof h == "object"; - } - function ve(h, w) { - switch (h) { - case n.ParameterStructures.auto: - return f(w) ? bn(w) : [Xt(w)]; - case n.ParameterStructures.byName: - if (!f(w)) - throw new Error("Received parameters by name but param is not an object literal."); - return bn(w); - case n.ParameterStructures.byPosition: - return [Xt(w)]; - default: - throw new Error(`Unknown parameter structure ${h.toString()}`); - } - } - function Ee(h, w) { - let O; - const M = h.numberOfParams; - switch (M) { - case 0: - O = void 0; - break; - case 1: - O = ve(h.parameterStructures, w[0]); - break; - default: - O = []; - for (let ie = 0; ie < w.length && ie < M; ie++) - O.push(Xt(w[ie])); - if (w.length < M) - for (let ie = w.length; ie < M; ie++) - O.push(null); - break; - } - return O; - } - const q = { - sendNotification: (h, ...w) => { - Ht(); - let O, M; - if (r.string(h)) { - O = h; - const re = w[0]; - let ye = 0, Ae = n.ParameterStructures.auto; - n.ParameterStructures.is(re) && (ye = 1, Ae = re); - let X = w.length; - const ce = X - ye; - switch (ce) { - case 0: - M = void 0; - break; - case 1: - M = ve(Ae, w[ye]); - break; - default: - if (Ae === n.ParameterStructures.byName) - throw new Error(`Received ${ce} parameters for 'by Name' notification parameter structure.`); - M = w.slice(ye, X).map((ee) => Xt(ee)); - break; - } - } else { - const re = w; - O = h.method, M = Ee(h, re); - } - const ie = { - jsonrpc: j, - method: O, - params: M - }; - return Ui(ie), $.write(ie).catch((re) => { - throw E.error("Sending notification failed."), re; - }); - }, - onNotification: (h, w) => { - Ht(); - let O; - return r.func(h) ? z = h : w && (r.string(h) ? (O = h, Q.set(h, { type: void 0, handler: w })) : (O = h.method, Q.set(h.method, { type: h, handler: w }))), { - dispose: () => { - O !== void 0 ? Q.delete(O) : z = void 0; - } - }; - }, - onProgress: (h, w, O) => { - if (_e.has(w)) - throw new Error(`Progress handler for token ${w} already registered`); - return _e.set(w, O), { - dispose: () => { - _e.delete(w); - } - }; - }, - sendProgress: (h, w, O) => q.sendNotification(c.type, { token: w, value: O }), - onUnhandledProgress: vn.event, - sendRequest: (h, ...w) => { - Ht(), Ki(); - let O, M, ie; - if (r.string(h)) { - O = h; - const X = w[0], ce = w[w.length - 1]; - let ee = 0, be = n.ParameterStructures.auto; - n.ParameterStructures.is(X) && (ee = 1, be = X); - let Ge = w.length; - s.CancellationToken.is(ce) && (Ge = Ge - 1, ie = ce); - const dt = Ge - ee; - switch (dt) { - case 0: - M = void 0; - break; - case 1: - M = ve(be, w[ee]); - break; - default: - if (be === n.ParameterStructures.byName) - throw new Error(`Received ${dt} parameters for 'by Name' request parameter structure.`); - M = w.slice(ee, Ge).map((xd) => Xt(xd)); - break; - } - } else { - const X = w; - O = h.method, M = Ee(h, X); - const ce = h.numberOfParams; - ie = s.CancellationToken.is(X[ce]) ? X[ce] : void 0; - } - const re = L++; - let ye; - ie && (ye = ie.onCancellationRequested(() => { - const X = at.sender.sendCancellation(q, re); - return X === void 0 ? (E.log(`Received no promise from cancellation strategy when cancelling id ${re}`), Promise.resolve()) : X.catch(() => { - E.log(`Sending cancellation messages for id ${re} failed`); - }); - })); - const Ae = { - jsonrpc: j, - id: re, - method: O, - params: M - }; - return zi(Ae), typeof at.sender.enableCancellation == "function" && at.sender.enableCancellation(Ae), new Promise(async (X, ce) => { - const ee = (dt) => { - X(dt), at.sender.cleanup(re), ye?.dispose(); - }, be = (dt) => { - ce(dt), at.sender.cleanup(re), ye?.dispose(); - }, Ge = { method: O, timerStart: Date.now(), resolve: ee, reject: be }; - try { - await $.write(Ae), we.set(re, Ge); - } catch (dt) { - throw E.error("Sending request failed."), Ge.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError, dt.message ? dt.message : "Unknown reason")), dt; - } - }); - }, - onRequest: (h, w) => { - Ht(); - let O = null; - return d.is(h) ? (O = void 0, F = h) : r.string(h) ? (O = null, w !== void 0 && (O = h, te.set(h, { handler: w, type: void 0 }))) : w !== void 0 && (O = h.method, te.set(h.method, { type: h, handler: w })), { - dispose: () => { - O !== null && (O !== void 0 ? te.delete(O) : F = void 0); - } - }; - }, - hasPendingResponse: () => we.size > 0, - trace: async (h, w, O) => { - let M = !1, ie = A.Text; - O !== void 0 && (r.boolean(O) ? M = O : (M = O.sendNotification || !1, ie = O.traceFormat || A.Text)), Y = h, Xe = ie, Y === p.Off ? ge = void 0 : ge = w, M && !Cn() && !$t() && await q.sendNotification(b.type, { value: p.toString(h) }); - }, - onError: Lr.event, - onClose: Tn.event, - onUnhandledNotification: Rn.event, - onDispose: En.event, - end: () => { - $.end(); - }, - dispose: () => { - if ($t()) - return; - it = N.Disposed, En.fire(void 0); - const h = new n.ResponseError(n.ErrorCodes.PendingResponseRejected, "Pending response rejected since connection got disposed"); - for (const w of we.values()) - w.reject(h); - we = /* @__PURE__ */ new Map(), Ce = /* @__PURE__ */ new Map(), Ie = /* @__PURE__ */ new Set(), le = new i.LinkedMap(), r.func($.dispose) && $.dispose(), r.func(g.dispose) && g.dispose(); - }, - listen: () => { - Ht(), Wi(), it = N.Listening, g.listen(Di); - }, - inspect: () => { - (0, e.default)().console.log("inspect"); - } - }; - return q.onNotification(I.type, (h) => { - if (Y === p.Off || !ge) - return; - const w = Y === p.Verbose || Y === p.Compact; - ge.log(h.message, w ? h.verbose : void 0); - }), q.onNotification(c.type, (h) => { - const w = _e.get(h.token); - w ? w(h.value) : vn.fire(h); - }), q; - } - t.createMessageConnection = T; - })(ws)), ws; -} -var ru; -function yl() { - return ru || (ru = 1, (function(t) { - Object.defineProperty(t, "__esModule", { value: !0 }), t.ProgressType = t.ProgressToken = t.createMessageConnection = t.NullLogger = t.ConnectionOptions = t.ConnectionStrategy = t.AbstractMessageBuffer = t.WriteableStreamMessageWriter = t.AbstractMessageWriter = t.MessageWriter = t.ReadableStreamMessageReader = t.AbstractMessageReader = t.MessageReader = t.SharedArrayReceiverStrategy = t.SharedArraySenderStrategy = t.CancellationToken = t.CancellationTokenSource = t.Emitter = t.Event = t.Disposable = t.LRUCache = t.Touch = t.LinkedMap = t.ParameterStructures = t.NotificationType9 = t.NotificationType8 = t.NotificationType7 = t.NotificationType6 = t.NotificationType5 = t.NotificationType4 = t.NotificationType3 = t.NotificationType2 = t.NotificationType1 = t.NotificationType0 = t.NotificationType = t.ErrorCodes = t.ResponseError = t.RequestType9 = t.RequestType8 = t.RequestType7 = t.RequestType6 = t.RequestType5 = t.RequestType4 = t.RequestType3 = t.RequestType2 = t.RequestType1 = t.RequestType0 = t.RequestType = t.Message = t.RAL = void 0, t.MessageStrategy = t.CancellationStrategy = t.CancellationSenderStrategy = t.CancellationReceiverStrategy = t.ConnectionError = t.ConnectionErrors = t.LogTraceNotification = t.SetTraceNotification = t.TraceFormat = t.TraceValues = t.Trace = void 0; - const e = $d(); - Object.defineProperty(t, "Message", { enumerable: !0, get: function() { - return e.Message; - } }), Object.defineProperty(t, "RequestType", { enumerable: !0, get: function() { - return e.RequestType; - } }), Object.defineProperty(t, "RequestType0", { enumerable: !0, get: function() { - return e.RequestType0; - } }), Object.defineProperty(t, "RequestType1", { enumerable: !0, get: function() { - return e.RequestType1; - } }), Object.defineProperty(t, "RequestType2", { enumerable: !0, get: function() { - return e.RequestType2; - } }), Object.defineProperty(t, "RequestType3", { enumerable: !0, get: function() { - return e.RequestType3; - } }), Object.defineProperty(t, "RequestType4", { enumerable: !0, get: function() { - return e.RequestType4; - } }), Object.defineProperty(t, "RequestType5", { enumerable: !0, get: function() { - return e.RequestType5; - } }), Object.defineProperty(t, "RequestType6", { enumerable: !0, get: function() { - return e.RequestType6; - } }), Object.defineProperty(t, "RequestType7", { enumerable: !0, get: function() { - return e.RequestType7; - } }), Object.defineProperty(t, "RequestType8", { enumerable: !0, get: function() { - return e.RequestType8; - } }), Object.defineProperty(t, "RequestType9", { enumerable: !0, get: function() { - return e.RequestType9; - } }), Object.defineProperty(t, "ResponseError", { enumerable: !0, get: function() { - return e.ResponseError; - } }), Object.defineProperty(t, "ErrorCodes", { enumerable: !0, get: function() { - return e.ErrorCodes; - } }), Object.defineProperty(t, "NotificationType", { enumerable: !0, get: function() { - return e.NotificationType; - } }), Object.defineProperty(t, "NotificationType0", { enumerable: !0, get: function() { - return e.NotificationType0; - } }), Object.defineProperty(t, "NotificationType1", { enumerable: !0, get: function() { - return e.NotificationType1; - } }), Object.defineProperty(t, "NotificationType2", { enumerable: !0, get: function() { - return e.NotificationType2; - } }), Object.defineProperty(t, "NotificationType3", { enumerable: !0, get: function() { - return e.NotificationType3; - } }), Object.defineProperty(t, "NotificationType4", { enumerable: !0, get: function() { - return e.NotificationType4; - } }), Object.defineProperty(t, "NotificationType5", { enumerable: !0, get: function() { - return e.NotificationType5; - } }), Object.defineProperty(t, "NotificationType6", { enumerable: !0, get: function() { - return e.NotificationType6; - } }), Object.defineProperty(t, "NotificationType7", { enumerable: !0, get: function() { - return e.NotificationType7; - } }), Object.defineProperty(t, "NotificationType8", { enumerable: !0, get: function() { - return e.NotificationType8; - } }), Object.defineProperty(t, "NotificationType9", { enumerable: !0, get: function() { - return e.NotificationType9; - } }), Object.defineProperty(t, "ParameterStructures", { enumerable: !0, get: function() { - return e.ParameterStructures; - } }); - const r = Cd(); - Object.defineProperty(t, "LinkedMap", { enumerable: !0, get: function() { - return r.LinkedMap; - } }), Object.defineProperty(t, "LRUCache", { enumerable: !0, get: function() { - return r.LRUCache; - } }), Object.defineProperty(t, "Touch", { enumerable: !0, get: function() { - return r.Touch; - } }); - const n = Ly(); - Object.defineProperty(t, "Disposable", { enumerable: !0, get: function() { - return n.Disposable; - } }); - const i = mn(); - Object.defineProperty(t, "Event", { enumerable: !0, get: function() { - return i.Event; - } }), Object.defineProperty(t, "Emitter", { enumerable: !0, get: function() { - return i.Emitter; - } }); - const a = us(); - Object.defineProperty(t, "CancellationTokenSource", { enumerable: !0, get: function() { - return a.CancellationTokenSource; - } }), Object.defineProperty(t, "CancellationToken", { enumerable: !0, get: function() { - return a.CancellationToken; - } }); - const s = xy(); - Object.defineProperty(t, "SharedArraySenderStrategy", { enumerable: !0, get: function() { - return s.SharedArraySenderStrategy; - } }), Object.defineProperty(t, "SharedArrayReceiverStrategy", { enumerable: !0, get: function() { - return s.SharedArrayReceiverStrategy; - } }); - const o = Dy(); - Object.defineProperty(t, "MessageReader", { enumerable: !0, get: function() { - return o.MessageReader; - } }), Object.defineProperty(t, "AbstractMessageReader", { enumerable: !0, get: function() { - return o.AbstractMessageReader; - } }), Object.defineProperty(t, "ReadableStreamMessageReader", { enumerable: !0, get: function() { - return o.ReadableStreamMessageReader; - } }); - const l = My(); - Object.defineProperty(t, "MessageWriter", { enumerable: !0, get: function() { - return l.MessageWriter; - } }), Object.defineProperty(t, "AbstractMessageWriter", { enumerable: !0, get: function() { - return l.AbstractMessageWriter; - } }), Object.defineProperty(t, "WriteableStreamMessageWriter", { enumerable: !0, get: function() { - return l.WriteableStreamMessageWriter; - } }); - const c = Fy(); - Object.defineProperty(t, "AbstractMessageBuffer", { enumerable: !0, get: function() { - return c.AbstractMessageBuffer; - } }); - const u = Gy(); - Object.defineProperty(t, "ConnectionStrategy", { enumerable: !0, get: function() { - return u.ConnectionStrategy; - } }), Object.defineProperty(t, "ConnectionOptions", { enumerable: !0, get: function() { - return u.ConnectionOptions; - } }), Object.defineProperty(t, "NullLogger", { enumerable: !0, get: function() { - return u.NullLogger; - } }), Object.defineProperty(t, "createMessageConnection", { enumerable: !0, get: function() { - return u.createMessageConnection; - } }), Object.defineProperty(t, "ProgressToken", { enumerable: !0, get: function() { - return u.ProgressToken; - } }), Object.defineProperty(t, "ProgressType", { enumerable: !0, get: function() { - return u.ProgressType; - } }), Object.defineProperty(t, "Trace", { enumerable: !0, get: function() { - return u.Trace; - } }), Object.defineProperty(t, "TraceValues", { enumerable: !0, get: function() { - return u.TraceValues; - } }), Object.defineProperty(t, "TraceFormat", { enumerable: !0, get: function() { - return u.TraceFormat; - } }), Object.defineProperty(t, "SetTraceNotification", { enumerable: !0, get: function() { - return u.SetTraceNotification; - } }), Object.defineProperty(t, "LogTraceNotification", { enumerable: !0, get: function() { - return u.LogTraceNotification; - } }), Object.defineProperty(t, "ConnectionErrors", { enumerable: !0, get: function() { - return u.ConnectionErrors; - } }), Object.defineProperty(t, "ConnectionError", { enumerable: !0, get: function() { - return u.ConnectionError; - } }), Object.defineProperty(t, "CancellationReceiverStrategy", { enumerable: !0, get: function() { - return u.CancellationReceiverStrategy; - } }), Object.defineProperty(t, "CancellationSenderStrategy", { enumerable: !0, get: function() { - return u.CancellationSenderStrategy; - } }), Object.defineProperty(t, "CancellationStrategy", { enumerable: !0, get: function() { - return u.CancellationStrategy; - } }), Object.defineProperty(t, "MessageStrategy", { enumerable: !0, get: function() { - return u.MessageStrategy; - } }); - const d = Or(); - t.RAL = d.default; - })(ks)), ks; -} -var nu; -function jy() { - if (nu) return ra; - nu = 1, Object.defineProperty(ra, "__esModule", { value: !0 }); - const t = yl(); - class e extends t.AbstractMessageBuffer { - constructor(l = "utf-8") { - super(l), this.asciiDecoder = new TextDecoder("ascii"); - } - emptyBuffer() { - return e.emptyBuffer; - } - fromString(l, c) { - return new TextEncoder().encode(l); - } - toString(l, c) { - return c === "ascii" ? this.asciiDecoder.decode(l) : new TextDecoder(c).decode(l); - } - asNative(l, c) { - return c === void 0 ? l : l.slice(0, c); - } - allocNative(l) { - return new Uint8Array(l); - } - } - e.emptyBuffer = new Uint8Array(0); - class r { - constructor(l) { - this.socket = l, this._onData = new t.Emitter(), this._messageListener = (c) => { - c.data.arrayBuffer().then((d) => { - this._onData.fire(new Uint8Array(d)); - }, () => { - (0, t.RAL)().console.error("Converting blob to array buffer failed."); - }); - }, this.socket.addEventListener("message", this._messageListener); - } - onClose(l) { - return this.socket.addEventListener("close", l), t.Disposable.create(() => this.socket.removeEventListener("close", l)); - } - onError(l) { - return this.socket.addEventListener("error", l), t.Disposable.create(() => this.socket.removeEventListener("error", l)); - } - onEnd(l) { - return this.socket.addEventListener("end", l), t.Disposable.create(() => this.socket.removeEventListener("end", l)); - } - onData(l) { - return this._onData.event(l); - } - } - class n { - constructor(l) { - this.socket = l; - } - onClose(l) { - return this.socket.addEventListener("close", l), t.Disposable.create(() => this.socket.removeEventListener("close", l)); - } - onError(l) { - return this.socket.addEventListener("error", l), t.Disposable.create(() => this.socket.removeEventListener("error", l)); - } - onEnd(l) { - return this.socket.addEventListener("end", l), t.Disposable.create(() => this.socket.removeEventListener("end", l)); - } - write(l, c) { - if (typeof l == "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(l); - } else - this.socket.send(l); - return Promise.resolve(); - } - end() { - this.socket.close(); - } - } - const i = new TextEncoder(), a = Object.freeze({ - messageBuffer: Object.freeze({ - create: (o) => new e(o) - }), - applicationJson: Object.freeze({ - encoder: Object.freeze({ - name: "application/json", - encode: (o, l) => { - if (l.charset !== "utf-8") - throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${l.charset}`); - return Promise.resolve(i.encode(JSON.stringify(o, void 0, 0))); - } - }), - decoder: Object.freeze({ - name: "application/json", - decode: (o, l) => { - if (!(o instanceof Uint8Array)) - throw new Error("In a Browser environments only Uint8Arrays are supported."); - return Promise.resolve(JSON.parse(new TextDecoder(l.charset).decode(o))); - } - }) - }), - stream: Object.freeze({ - asReadableStream: (o) => new r(o), - asWritableStream: (o) => new n(o) - }), - console, - timer: Object.freeze({ - setTimeout(o, l, ...c) { - const u = setTimeout(o, l, ...c); - return { dispose: () => clearTimeout(u) }; - }, - setImmediate(o, ...l) { - const c = setTimeout(o, 0, ...l); - return { dispose: () => clearTimeout(c) }; - }, - setInterval(o, l, ...c) { - const u = setInterval(o, l, ...c); - return { dispose: () => clearInterval(u) }; - } - }) - }); - function s() { - return a; - } - return (function(o) { - function l() { - t.RAL.install(a); - } - o.install = l; - })(s || (s = {})), ra.default = s, ra; -} -var iu; -function gn() { - return iu || (iu = 1, (function(t) { - var e = lr && lr.__createBinding || (Object.create ? (function(l, c, u, d) { - d === void 0 && (d = u); - var p = Object.getOwnPropertyDescriptor(c, u); - (!p || ("get" in p ? !c.__esModule : p.writable || p.configurable)) && (p = { enumerable: !0, get: function() { - return c[u]; - } }), Object.defineProperty(l, d, p); - }) : (function(l, c, u, d) { - d === void 0 && (d = u), l[d] = c[u]; - })), r = lr && lr.__exportStar || function(l, c) { - for (var u in l) u !== "default" && !Object.prototype.hasOwnProperty.call(c, u) && e(c, l, u); - }; - Object.defineProperty(t, "__esModule", { value: !0 }), t.createMessageConnection = t.BrowserMessageWriter = t.BrowserMessageReader = void 0, jy().default.install(); - const i = yl(); - r(yl(), t); - class a extends i.AbstractMessageReader { - constructor(c) { - super(), this._onData = new i.Emitter(), this._messageListener = (u) => { - this._onData.fire(u.data); - }, c.addEventListener("error", (u) => this.fireError(u)), c.onmessage = this._messageListener; - } - listen(c) { - return this._onData.event(c); - } - } - t.BrowserMessageReader = a; - class s extends i.AbstractMessageWriter { - constructor(c) { - super(), this.port = c, this.errorCount = 0, c.addEventListener("error", (u) => this.fireError(u)); - } - write(c) { - try { - return this.port.postMessage(c), Promise.resolve(); - } catch (u) { - return this.handleError(u, c), Promise.reject(u); - } - } - handleError(c, u) { - this.errorCount++, this.fireError(c, u, this.errorCount); - } - end() { - } - } - t.BrowserMessageWriter = s; - function o(l, c, u, d) { - return u === void 0 && (u = i.NullLogger), i.ConnectionStrategy.is(d) && (d = { connectionStrategy: d }), (0, i.createMessageConnection)(l, c, u, d); - } - t.createMessageConnection = o; - })(lr)), lr; -} -var bs, au; -function su() { - return au || (au = 1, bs = gn()), bs; -} -var ur = {}; -const Xl = /* @__PURE__ */ qd(Fg); -var je = {}, ou; -function pe() { - if (ou) return je; - ou = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.ProtocolNotificationType = je.ProtocolNotificationType0 = je.ProtocolRequestType = je.ProtocolRequestType0 = je.RegistrationType = je.MessageDirection = void 0; - const t = gn(); - var e; - (function(o) { - o.clientToServer = "clientToServer", o.serverToClient = "serverToClient", o.both = "both"; - })(e || (je.MessageDirection = e = {})); - class r { - constructor(l) { - this.method = l; - } - } - je.RegistrationType = r; - class n extends t.RequestType0 { - constructor(l) { - super(l); - } - } - je.ProtocolRequestType0 = n; - class i extends t.RequestType { - constructor(l) { - super(l, t.ParameterStructures.byName); - } - } - je.ProtocolRequestType = i; - class a extends t.NotificationType0 { - constructor(l) { - super(l); - } - } - je.ProtocolNotificationType0 = a; - class s extends t.NotificationType { - constructor(l) { - super(l, t.ParameterStructures.byName); - } - } - return je.ProtocolNotificationType = s, je; -} -var Ns = {}, $e = {}, lu; -function Yl() { - if (lu) return $e; - lu = 1, 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(c) { - return c === !0 || c === !1; - } - $e.boolean = t; - function e(c) { - return typeof c == "string" || c instanceof String; - } - $e.string = e; - function r(c) { - return typeof c == "number" || c instanceof Number; - } - $e.number = r; - function n(c) { - return c instanceof Error; - } - $e.error = n; - function i(c) { - return typeof c == "function"; - } - $e.func = i; - function a(c) { - return Array.isArray(c); - } - $e.array = a; - function s(c) { - return a(c) && c.every((u) => e(u)); - } - $e.stringArray = s; - function o(c, u) { - return Array.isArray(c) && c.every(u); - } - $e.typedArray = o; - function l(c) { - return c !== null && typeof c == "object"; - } - return $e.objectLiteral = l, $e; -} -var Gn = {}, cu; -function zy() { - if (cu) return Gn; - cu = 1, Object.defineProperty(Gn, "__esModule", { value: !0 }), Gn.ImplementationRequest = void 0; - const t = pe(); - var e; - return (function(r) { - r.method = "textDocument/implementation", r.messageDirection = t.MessageDirection.clientToServer, r.type = new t.ProtocolRequestType(r.method); - })(e || (Gn.ImplementationRequest = e = {})), Gn; -} -var jn = {}, uu; -function Uy() { - if (uu) return jn; - uu = 1, Object.defineProperty(jn, "__esModule", { value: !0 }), jn.TypeDefinitionRequest = void 0; - const t = pe(); - var e; - return (function(r) { - r.method = "textDocument/typeDefinition", r.messageDirection = t.MessageDirection.clientToServer, r.type = new t.ProtocolRequestType(r.method); - })(e || (jn.TypeDefinitionRequest = e = {})), jn; -} -var fr = {}, fu; -function qy() { - if (fu) return fr; - fu = 1, Object.defineProperty(fr, "__esModule", { value: !0 }), fr.DidChangeWorkspaceFoldersNotification = fr.WorkspaceFoldersRequest = void 0; - const t = pe(); - var e; - (function(n) { - n.method = "workspace/workspaceFolders", n.messageDirection = t.MessageDirection.serverToClient, n.type = new t.ProtocolRequestType0(n.method); - })(e || (fr.WorkspaceFoldersRequest = e = {})); - var r; - return (function(n) { - n.method = "workspace/didChangeWorkspaceFolders", n.messageDirection = t.MessageDirection.clientToServer, n.type = new t.ProtocolNotificationType(n.method); - })(r || (fr.DidChangeWorkspaceFoldersNotification = r = {})), fr; -} -var zn = {}, du; -function By() { - if (du) return zn; - du = 1, Object.defineProperty(zn, "__esModule", { value: !0 }), zn.ConfigurationRequest = void 0; - const t = pe(); - var e; - return (function(r) { - r.method = "workspace/configuration", r.messageDirection = t.MessageDirection.serverToClient, r.type = new t.ProtocolRequestType(r.method); - })(e || (zn.ConfigurationRequest = e = {})), zn; -} -var dr = {}, hu; -function Wy() { - if (hu) return dr; - hu = 1, Object.defineProperty(dr, "__esModule", { value: !0 }), dr.ColorPresentationRequest = dr.DocumentColorRequest = void 0; - const t = pe(); - var e; - (function(n) { - n.method = "textDocument/documentColor", n.messageDirection = t.MessageDirection.clientToServer, n.type = new t.ProtocolRequestType(n.method); - })(e || (dr.DocumentColorRequest = e = {})); - var r; - return (function(n) { - n.method = "textDocument/colorPresentation", n.messageDirection = t.MessageDirection.clientToServer, n.type = new t.ProtocolRequestType(n.method); - })(r || (dr.ColorPresentationRequest = r = {})), dr; -} -var hr = {}, pu; -function Ky() { - if (pu) return hr; - pu = 1, Object.defineProperty(hr, "__esModule", { value: !0 }), hr.FoldingRangeRefreshRequest = hr.FoldingRangeRequest = void 0; - const t = pe(); - var e; - (function(n) { - n.method = "textDocument/foldingRange", n.messageDirection = t.MessageDirection.clientToServer, n.type = new t.ProtocolRequestType(n.method); - })(e || (hr.FoldingRangeRequest = e = {})); - var r; - return (function(n) { - n.method = "workspace/foldingRange/refresh", n.messageDirection = t.MessageDirection.serverToClient, n.type = new t.ProtocolRequestType0(n.method); - })(r || (hr.FoldingRangeRefreshRequest = r = {})), hr; -} -var Un = {}, mu; -function Vy() { - if (mu) return Un; - mu = 1, Object.defineProperty(Un, "__esModule", { value: !0 }), Un.DeclarationRequest = void 0; - const t = pe(); - var e; - return (function(r) { - r.method = "textDocument/declaration", r.messageDirection = t.MessageDirection.clientToServer, r.type = new t.ProtocolRequestType(r.method); - })(e || (Un.DeclarationRequest = e = {})), Un; -} -var qn = {}, gu; -function Hy() { - if (gu) return qn; - gu = 1, Object.defineProperty(qn, "__esModule", { value: !0 }), qn.SelectionRangeRequest = void 0; - const t = pe(); - var e; - return (function(r) { - r.method = "textDocument/selectionRange", r.messageDirection = t.MessageDirection.clientToServer, r.type = new t.ProtocolRequestType(r.method); - })(e || (qn.SelectionRangeRequest = e = {})), qn; -} -var bt = {}, yu; -function Xy() { - if (yu) return bt; - yu = 1, Object.defineProperty(bt, "__esModule", { value: !0 }), bt.WorkDoneProgressCancelNotification = bt.WorkDoneProgressCreateRequest = bt.WorkDoneProgress = void 0; - const t = gn(), e = pe(); - var r; - (function(a) { - a.type = new t.ProgressType(); - function s(o) { - return o === a.type; - } - a.is = s; - })(r || (bt.WorkDoneProgress = r = {})); - var n; - (function(a) { - a.method = "window/workDoneProgress/create", a.messageDirection = e.MessageDirection.serverToClient, a.type = new e.ProtocolRequestType(a.method); - })(n || (bt.WorkDoneProgressCreateRequest = n = {})); - var i; - return (function(a) { - a.method = "window/workDoneProgress/cancel", a.messageDirection = e.MessageDirection.clientToServer, a.type = new e.ProtocolNotificationType(a.method); - })(i || (bt.WorkDoneProgressCancelNotification = i = {})), bt; -} -var Nt = {}, Tu; -function Yy() { - if (Tu) return Nt; - Tu = 1, Object.defineProperty(Nt, "__esModule", { value: !0 }), Nt.CallHierarchyOutgoingCallsRequest = Nt.CallHierarchyIncomingCallsRequest = Nt.CallHierarchyPrepareRequest = void 0; - const t = pe(); - var e; - (function(i) { - i.method = "textDocument/prepareCallHierarchy", i.messageDirection = t.MessageDirection.clientToServer, i.type = new t.ProtocolRequestType(i.method); - })(e || (Nt.CallHierarchyPrepareRequest = e = {})); - var r; - (function(i) { - i.method = "callHierarchy/incomingCalls", i.messageDirection = t.MessageDirection.clientToServer, i.type = new t.ProtocolRequestType(i.method); - })(r || (Nt.CallHierarchyIncomingCallsRequest = r = {})); - var n; - return (function(i) { - i.method = "callHierarchy/outgoingCalls", i.messageDirection = t.MessageDirection.clientToServer, i.type = new t.ProtocolRequestType(i.method); - })(n || (Nt.CallHierarchyOutgoingCallsRequest = n = {})), Nt; -} -var ze = {}, Ru; -function Jy() { - if (Ru) return ze; - Ru = 1, Object.defineProperty(ze, "__esModule", { value: !0 }), ze.SemanticTokensRefreshRequest = ze.SemanticTokensRangeRequest = ze.SemanticTokensDeltaRequest = ze.SemanticTokensRequest = ze.SemanticTokensRegistrationType = ze.TokenFormat = void 0; - const t = pe(); - var e; - (function(o) { - o.Relative = "relative"; - })(e || (ze.TokenFormat = e = {})); - var r; - (function(o) { - o.method = "textDocument/semanticTokens", o.type = new t.RegistrationType(o.method); - })(r || (ze.SemanticTokensRegistrationType = r = {})); - var n; - (function(o) { - o.method = "textDocument/semanticTokens/full", o.messageDirection = t.MessageDirection.clientToServer, o.type = new t.ProtocolRequestType(o.method), o.registrationMethod = r.method; - })(n || (ze.SemanticTokensRequest = n = {})); - var i; - (function(o) { - o.method = "textDocument/semanticTokens/full/delta", o.messageDirection = t.MessageDirection.clientToServer, o.type = new t.ProtocolRequestType(o.method), o.registrationMethod = r.method; - })(i || (ze.SemanticTokensDeltaRequest = i = {})); - var a; - (function(o) { - o.method = "textDocument/semanticTokens/range", o.messageDirection = t.MessageDirection.clientToServer, o.type = new t.ProtocolRequestType(o.method), o.registrationMethod = r.method; - })(a || (ze.SemanticTokensRangeRequest = a = {})); - var s; - return (function(o) { - o.method = "workspace/semanticTokens/refresh", o.messageDirection = t.MessageDirection.serverToClient, o.type = new t.ProtocolRequestType0(o.method); - })(s || (ze.SemanticTokensRefreshRequest = s = {})), ze; -} -var Bn = {}, vu; -function Zy() { - if (vu) return Bn; - vu = 1, Object.defineProperty(Bn, "__esModule", { value: !0 }), Bn.ShowDocumentRequest = void 0; - const t = pe(); - var e; - return (function(r) { - r.method = "window/showDocument", r.messageDirection = t.MessageDirection.serverToClient, r.type = new t.ProtocolRequestType(r.method); - })(e || (Bn.ShowDocumentRequest = e = {})), Bn; -} -var Wn = {}, Eu; -function Qy() { - if (Eu) return Wn; - Eu = 1, Object.defineProperty(Wn, "__esModule", { value: !0 }), Wn.LinkedEditingRangeRequest = void 0; - const t = pe(); - var e; - return (function(r) { - r.method = "textDocument/linkedEditingRange", r.messageDirection = t.MessageDirection.clientToServer, r.type = new t.ProtocolRequestType(r.method); - })(e || (Wn.LinkedEditingRangeRequest = e = {})), Wn; -} -var Oe = {}, Au; -function eT() { - if (Au) return Oe; - Au = 1, Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.WillDeleteFilesRequest = Oe.DidDeleteFilesNotification = Oe.DidRenameFilesNotification = Oe.WillRenameFilesRequest = Oe.DidCreateFilesNotification = Oe.WillCreateFilesRequest = Oe.FileOperationPatternKind = void 0; - const t = pe(); - var e; - (function(l) { - l.file = "file", l.folder = "folder"; - })(e || (Oe.FileOperationPatternKind = e = {})); - var r; - (function(l) { - l.method = "workspace/willCreateFiles", l.messageDirection = t.MessageDirection.clientToServer, l.type = new t.ProtocolRequestType(l.method); - })(r || (Oe.WillCreateFilesRequest = r = {})); - var n; - (function(l) { - l.method = "workspace/didCreateFiles", l.messageDirection = t.MessageDirection.clientToServer, l.type = new t.ProtocolNotificationType(l.method); - })(n || (Oe.DidCreateFilesNotification = n = {})); - var i; - (function(l) { - l.method = "workspace/willRenameFiles", l.messageDirection = t.MessageDirection.clientToServer, l.type = new t.ProtocolRequestType(l.method); - })(i || (Oe.WillRenameFilesRequest = i = {})); - var a; - (function(l) { - l.method = "workspace/didRenameFiles", l.messageDirection = t.MessageDirection.clientToServer, l.type = new t.ProtocolNotificationType(l.method); - })(a || (Oe.DidRenameFilesNotification = a = {})); - var s; - (function(l) { - l.method = "workspace/didDeleteFiles", l.messageDirection = t.MessageDirection.clientToServer, l.type = new t.ProtocolNotificationType(l.method); - })(s || (Oe.DidDeleteFilesNotification = s = {})); - var o; - return (function(l) { - l.method = "workspace/willDeleteFiles", l.messageDirection = t.MessageDirection.clientToServer, l.type = new t.ProtocolRequestType(l.method); - })(o || (Oe.WillDeleteFilesRequest = o = {})), Oe; -} -var _t = {}, $u; -function tT() { - if ($u) return _t; - $u = 1, Object.defineProperty(_t, "__esModule", { value: !0 }), _t.MonikerRequest = _t.MonikerKind = _t.UniquenessLevel = void 0; - const t = pe(); - var e; - (function(i) { - i.document = "document", i.project = "project", i.group = "group", i.scheme = "scheme", i.global = "global"; - })(e || (_t.UniquenessLevel = e = {})); - var r; - (function(i) { - i.$import = "import", i.$export = "export", i.local = "local"; - })(r || (_t.MonikerKind = r = {})); - var n; - return (function(i) { - i.method = "textDocument/moniker", i.messageDirection = t.MessageDirection.clientToServer, i.type = new t.ProtocolRequestType(i.method); - })(n || (_t.MonikerRequest = n = {})), _t; -} -var It = {}, Cu; -function rT() { - if (Cu) return It; - Cu = 1, Object.defineProperty(It, "__esModule", { value: !0 }), It.TypeHierarchySubtypesRequest = It.TypeHierarchySupertypesRequest = It.TypeHierarchyPrepareRequest = void 0; - const t = pe(); - var e; - (function(i) { - i.method = "textDocument/prepareTypeHierarchy", i.messageDirection = t.MessageDirection.clientToServer, i.type = new t.ProtocolRequestType(i.method); - })(e || (It.TypeHierarchyPrepareRequest = e = {})); - var r; - (function(i) { - i.method = "typeHierarchy/supertypes", i.messageDirection = t.MessageDirection.clientToServer, i.type = new t.ProtocolRequestType(i.method); - })(r || (It.TypeHierarchySupertypesRequest = r = {})); - var n; - return (function(i) { - i.method = "typeHierarchy/subtypes", i.messageDirection = t.MessageDirection.clientToServer, i.type = new t.ProtocolRequestType(i.method); - })(n || (It.TypeHierarchySubtypesRequest = n = {})), It; -} -var pr = {}, Su; -function nT() { - if (Su) return pr; - Su = 1, Object.defineProperty(pr, "__esModule", { value: !0 }), pr.InlineValueRefreshRequest = pr.InlineValueRequest = void 0; - const t = pe(); - var e; - (function(n) { - n.method = "textDocument/inlineValue", n.messageDirection = t.MessageDirection.clientToServer, n.type = new t.ProtocolRequestType(n.method); - })(e || (pr.InlineValueRequest = e = {})); - var r; - return (function(n) { - n.method = "workspace/inlineValue/refresh", n.messageDirection = t.MessageDirection.serverToClient, n.type = new t.ProtocolRequestType0(n.method); - })(r || (pr.InlineValueRefreshRequest = r = {})), pr; -} -var Pt = {}, ku; -function iT() { - if (ku) return Pt; - ku = 1, Object.defineProperty(Pt, "__esModule", { value: !0 }), Pt.InlayHintRefreshRequest = Pt.InlayHintResolveRequest = Pt.InlayHintRequest = void 0; - const t = pe(); - var e; - (function(i) { - i.method = "textDocument/inlayHint", i.messageDirection = t.MessageDirection.clientToServer, i.type = new t.ProtocolRequestType(i.method); - })(e || (Pt.InlayHintRequest = e = {})); - var r; - (function(i) { - i.method = "inlayHint/resolve", i.messageDirection = t.MessageDirection.clientToServer, i.type = new t.ProtocolRequestType(i.method); - })(r || (Pt.InlayHintResolveRequest = r = {})); - var n; - return (function(i) { - i.method = "workspace/inlayHint/refresh", i.messageDirection = t.MessageDirection.serverToClient, i.type = new t.ProtocolRequestType0(i.method); - })(n || (Pt.InlayHintRefreshRequest = n = {})), Pt; -} -var Ye = {}, wu; -function aT() { - if (wu) return Ye; - wu = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.DiagnosticRefreshRequest = Ye.WorkspaceDiagnosticRequest = Ye.DocumentDiagnosticRequest = Ye.DocumentDiagnosticReportKind = Ye.DiagnosticServerCancellationData = void 0; - const t = gn(), e = Yl(), r = pe(); - var n; - (function(l) { - function c(u) { - const d = u; - return d && e.boolean(d.retriggerRequest); - } - l.is = c; - })(n || (Ye.DiagnosticServerCancellationData = n = {})); - var i; - (function(l) { - l.Full = "full", l.Unchanged = "unchanged"; - })(i || (Ye.DocumentDiagnosticReportKind = i = {})); - var a; - (function(l) { - l.method = "textDocument/diagnostic", l.messageDirection = r.MessageDirection.clientToServer, l.type = new r.ProtocolRequestType(l.method), l.partialResult = new t.ProgressType(); - })(a || (Ye.DocumentDiagnosticRequest = a = {})); - var s; - (function(l) { - l.method = "workspace/diagnostic", l.messageDirection = r.MessageDirection.clientToServer, l.type = new r.ProtocolRequestType(l.method), l.partialResult = new t.ProgressType(); - })(s || (Ye.WorkspaceDiagnosticRequest = s = {})); - var o; - return (function(l) { - l.method = "workspace/diagnostic/refresh", l.messageDirection = r.MessageDirection.serverToClient, l.type = new r.ProtocolRequestType0(l.method); - })(o || (Ye.DiagnosticRefreshRequest = o = {})), Ye; -} -var ue = {}, bu; -function sT() { - if (bu) return ue; - bu = 1, Object.defineProperty(ue, "__esModule", { value: !0 }), ue.DidCloseNotebookDocumentNotification = ue.DidSaveNotebookDocumentNotification = ue.DidChangeNotebookDocumentNotification = ue.NotebookCellArrayChange = ue.DidOpenNotebookDocumentNotification = ue.NotebookDocumentSyncRegistrationType = ue.NotebookDocument = ue.NotebookCell = ue.ExecutionSummary = ue.NotebookCellKind = void 0; - const t = Xl, e = Yl(), r = pe(); - var n; - (function(m) { - m.Markup = 1, m.Code = 2; - function A(b) { - return b === 1 || b === 2; - } - m.is = A; - })(n || (ue.NotebookCellKind = n = {})); - var i; - (function(m) { - function A(k, S) { - const C = { executionOrder: k }; - return (S === !0 || S === !1) && (C.success = S), C; - } - m.create = A; - function b(k) { - const S = k; - return e.objectLiteral(S) && t.uinteger.is(S.executionOrder) && (S.success === void 0 || e.boolean(S.success)); - } - m.is = b; - function I(k, S) { - return k === S ? !0 : k == null || S === null || S === void 0 ? !1 : k.executionOrder === S.executionOrder && k.success === S.success; - } - m.equals = I; - })(i || (ue.ExecutionSummary = i = {})); - var a; - (function(m) { - function A(S, C) { - return { kind: S, document: C }; - } - m.create = A; - function b(S) { - const C = S; - return e.objectLiteral(C) && n.is(C.kind) && t.DocumentUri.is(C.document) && (C.metadata === void 0 || e.objectLiteral(C.metadata)); - } - m.is = b; - function I(S, C) { - const P = /* @__PURE__ */ new Set(); - return S.document !== C.document && P.add("document"), S.kind !== C.kind && P.add("kind"), S.executionSummary !== C.executionSummary && P.add("executionSummary"), (S.metadata !== void 0 || C.metadata !== void 0) && !k(S.metadata, C.metadata) && P.add("metadata"), (S.executionSummary !== void 0 || C.executionSummary !== void 0) && !i.equals(S.executionSummary, C.executionSummary) && P.add("executionSummary"), P; - } - m.diff = I; - function k(S, C) { - if (S === C) - return !0; - if (S == null || C === null || C === void 0 || typeof S != typeof C || typeof S != "object") - return !1; - const P = Array.isArray(S), W = Array.isArray(C); - if (P !== W) - return !1; - if (P && W) { - if (S.length !== C.length) - return !1; - for (let B = 0; B < S.length; B++) - if (!k(S[B], C[B])) - return !1; - } - if (e.objectLiteral(S) && e.objectLiteral(C)) { - const B = Object.keys(S), H = Object.keys(C); - if (B.length !== H.length || (B.sort(), H.sort(), !k(B, H))) - return !1; - for (let ne = 0; ne < B.length; ne++) { - const se = B[ne]; - if (!k(S[se], C[se])) - return !1; - } - } - return !0; - } - })(a || (ue.NotebookCell = a = {})); - var s; - (function(m) { - function A(I, k, S, C) { - return { uri: I, notebookType: k, version: S, cells: C }; - } - m.create = A; - function b(I) { - const k = I; - return e.objectLiteral(k) && e.string(k.uri) && t.integer.is(k.version) && e.typedArray(k.cells, a.is); - } - m.is = b; - })(s || (ue.NotebookDocument = s = {})); - var o; - (function(m) { - m.method = "notebookDocument/sync", m.messageDirection = r.MessageDirection.clientToServer, m.type = new r.RegistrationType(m.method); - })(o || (ue.NotebookDocumentSyncRegistrationType = o = {})); - var l; - (function(m) { - m.method = "notebookDocument/didOpen", m.messageDirection = r.MessageDirection.clientToServer, m.type = new r.ProtocolNotificationType(m.method), m.registrationMethod = o.method; - })(l || (ue.DidOpenNotebookDocumentNotification = l = {})); - var c; - (function(m) { - function A(I) { - const k = I; - return e.objectLiteral(k) && t.uinteger.is(k.start) && t.uinteger.is(k.deleteCount) && (k.cells === void 0 || e.typedArray(k.cells, a.is)); - } - m.is = A; - function b(I, k, S) { - const C = { start: I, deleteCount: k }; - return S !== void 0 && (C.cells = S), C; - } - m.create = b; - })(c || (ue.NotebookCellArrayChange = c = {})); - var u; - (function(m) { - m.method = "notebookDocument/didChange", m.messageDirection = r.MessageDirection.clientToServer, m.type = new r.ProtocolNotificationType(m.method), m.registrationMethod = o.method; - })(u || (ue.DidChangeNotebookDocumentNotification = u = {})); - var d; - (function(m) { - m.method = "notebookDocument/didSave", m.messageDirection = r.MessageDirection.clientToServer, m.type = new r.ProtocolNotificationType(m.method), m.registrationMethod = o.method; - })(d || (ue.DidSaveNotebookDocumentNotification = d = {})); - var p; - return (function(m) { - m.method = "notebookDocument/didClose", m.messageDirection = r.MessageDirection.clientToServer, m.type = new r.ProtocolNotificationType(m.method), m.registrationMethod = o.method; - })(p || (ue.DidCloseNotebookDocumentNotification = p = {})), ue; -} -var Kn = {}, Nu; -function oT() { - if (Nu) return Kn; - Nu = 1, Object.defineProperty(Kn, "__esModule", { value: !0 }), Kn.InlineCompletionRequest = void 0; - const t = pe(); - var e; - return (function(r) { - r.method = "textDocument/inlineCompletion", r.messageDirection = t.MessageDirection.clientToServer, r.type = new t.ProtocolRequestType(r.method); - })(e || (Kn.InlineCompletionRequest = e = {})), Kn; -} -var _u; -function lT() { - return _u || (_u = 1, (function(t) { - Object.defineProperty(t, "__esModule", { value: !0 }), t.WorkspaceSymbolRequest = t.CodeActionResolveRequest = t.CodeActionRequest = t.DocumentSymbolRequest = t.DocumentHighlightRequest = t.ReferencesRequest = t.DefinitionRequest = t.SignatureHelpRequest = t.SignatureHelpTriggerKind = t.HoverRequest = t.CompletionResolveRequest = t.CompletionRequest = t.CompletionTriggerKind = t.PublishDiagnosticsNotification = t.WatchKind = t.RelativePattern = t.FileChangeType = t.DidChangeWatchedFilesNotification = t.WillSaveTextDocumentWaitUntilRequest = t.WillSaveTextDocumentNotification = t.TextDocumentSaveReason = t.DidSaveTextDocumentNotification = t.DidCloseTextDocumentNotification = t.DidChangeTextDocumentNotification = t.TextDocumentContentChangeEvent = t.DidOpenTextDocumentNotification = t.TextDocumentSyncKind = t.TelemetryEventNotification = t.LogMessageNotification = t.ShowMessageRequest = t.ShowMessageNotification = t.MessageType = t.DidChangeConfigurationNotification = t.ExitNotification = t.ShutdownRequest = t.InitializedNotification = t.InitializeErrorCodes = t.InitializeRequest = t.WorkDoneProgressOptions = t.TextDocumentRegistrationOptions = t.StaticRegistrationOptions = t.PositionEncodingKind = t.FailureHandlingKind = t.ResourceOperationKind = t.UnregistrationRequest = t.RegistrationRequest = t.DocumentSelector = t.NotebookCellTextDocumentFilter = t.NotebookDocumentFilter = t.TextDocumentFilter = void 0, t.MonikerRequest = t.MonikerKind = t.UniquenessLevel = t.WillDeleteFilesRequest = t.DidDeleteFilesNotification = t.WillRenameFilesRequest = t.DidRenameFilesNotification = t.WillCreateFilesRequest = t.DidCreateFilesNotification = t.FileOperationPatternKind = t.LinkedEditingRangeRequest = t.ShowDocumentRequest = t.SemanticTokensRegistrationType = t.SemanticTokensRefreshRequest = t.SemanticTokensRangeRequest = t.SemanticTokensDeltaRequest = t.SemanticTokensRequest = t.TokenFormat = t.CallHierarchyPrepareRequest = t.CallHierarchyOutgoingCallsRequest = t.CallHierarchyIncomingCallsRequest = t.WorkDoneProgressCancelNotification = t.WorkDoneProgressCreateRequest = t.WorkDoneProgress = t.SelectionRangeRequest = t.DeclarationRequest = t.FoldingRangeRefreshRequest = t.FoldingRangeRequest = t.ColorPresentationRequest = t.DocumentColorRequest = t.ConfigurationRequest = t.DidChangeWorkspaceFoldersNotification = t.WorkspaceFoldersRequest = t.TypeDefinitionRequest = t.ImplementationRequest = t.ApplyWorkspaceEditRequest = t.ExecuteCommandRequest = t.PrepareRenameRequest = t.RenameRequest = t.PrepareSupportDefaultBehavior = t.DocumentOnTypeFormattingRequest = t.DocumentRangesFormattingRequest = t.DocumentRangeFormattingRequest = t.DocumentFormattingRequest = t.DocumentLinkResolveRequest = t.DocumentLinkRequest = t.CodeLensRefreshRequest = t.CodeLensResolveRequest = t.CodeLensRequest = t.WorkspaceSymbolResolveRequest = void 0, t.InlineCompletionRequest = t.DidCloseNotebookDocumentNotification = t.DidSaveNotebookDocumentNotification = t.DidChangeNotebookDocumentNotification = t.NotebookCellArrayChange = t.DidOpenNotebookDocumentNotification = t.NotebookDocumentSyncRegistrationType = t.NotebookDocument = t.NotebookCell = t.ExecutionSummary = t.NotebookCellKind = t.DiagnosticRefreshRequest = t.WorkspaceDiagnosticRequest = t.DocumentDiagnosticRequest = t.DocumentDiagnosticReportKind = t.DiagnosticServerCancellationData = t.InlayHintRefreshRequest = t.InlayHintResolveRequest = t.InlayHintRequest = t.InlineValueRefreshRequest = t.InlineValueRequest = t.TypeHierarchySupertypesRequest = t.TypeHierarchySubtypesRequest = t.TypeHierarchyPrepareRequest = void 0; - const e = pe(), r = Xl, n = Yl(), i = zy(); - Object.defineProperty(t, "ImplementationRequest", { enumerable: !0, get: function() { - return i.ImplementationRequest; - } }); - const a = Uy(); - Object.defineProperty(t, "TypeDefinitionRequest", { enumerable: !0, get: function() { - return a.TypeDefinitionRequest; - } }); - const s = qy(); - Object.defineProperty(t, "WorkspaceFoldersRequest", { enumerable: !0, get: function() { - return s.WorkspaceFoldersRequest; - } }), Object.defineProperty(t, "DidChangeWorkspaceFoldersNotification", { enumerable: !0, get: function() { - return s.DidChangeWorkspaceFoldersNotification; - } }); - const o = By(); - Object.defineProperty(t, "ConfigurationRequest", { enumerable: !0, get: function() { - return o.ConfigurationRequest; - } }); - const l = Wy(); - Object.defineProperty(t, "DocumentColorRequest", { enumerable: !0, get: function() { - return l.DocumentColorRequest; - } }), Object.defineProperty(t, "ColorPresentationRequest", { enumerable: !0, get: function() { - return l.ColorPresentationRequest; - } }); - const c = Ky(); - Object.defineProperty(t, "FoldingRangeRequest", { enumerable: !0, get: function() { - return c.FoldingRangeRequest; - } }), Object.defineProperty(t, "FoldingRangeRefreshRequest", { enumerable: !0, get: function() { - return c.FoldingRangeRefreshRequest; - } }); - const u = Vy(); - Object.defineProperty(t, "DeclarationRequest", { enumerable: !0, get: function() { - return u.DeclarationRequest; - } }); - const d = Hy(); - Object.defineProperty(t, "SelectionRangeRequest", { enumerable: !0, get: function() { - return d.SelectionRangeRequest; - } }); - const p = Xy(); - Object.defineProperty(t, "WorkDoneProgress", { enumerable: !0, get: function() { - return p.WorkDoneProgress; - } }), Object.defineProperty(t, "WorkDoneProgressCreateRequest", { enumerable: !0, get: function() { - return p.WorkDoneProgressCreateRequest; - } }), Object.defineProperty(t, "WorkDoneProgressCancelNotification", { enumerable: !0, get: function() { - return p.WorkDoneProgressCancelNotification; - } }); - const m = Yy(); - Object.defineProperty(t, "CallHierarchyIncomingCallsRequest", { enumerable: !0, get: function() { - return m.CallHierarchyIncomingCallsRequest; - } }), Object.defineProperty(t, "CallHierarchyOutgoingCallsRequest", { enumerable: !0, get: function() { - return m.CallHierarchyOutgoingCallsRequest; - } }), Object.defineProperty(t, "CallHierarchyPrepareRequest", { enumerable: !0, get: function() { - return m.CallHierarchyPrepareRequest; - } }); - const A = Jy(); - Object.defineProperty(t, "TokenFormat", { enumerable: !0, get: function() { - return A.TokenFormat; - } }), Object.defineProperty(t, "SemanticTokensRequest", { enumerable: !0, get: function() { - return A.SemanticTokensRequest; - } }), Object.defineProperty(t, "SemanticTokensDeltaRequest", { enumerable: !0, get: function() { - return A.SemanticTokensDeltaRequest; - } }), Object.defineProperty(t, "SemanticTokensRangeRequest", { enumerable: !0, get: function() { - return A.SemanticTokensRangeRequest; - } }), Object.defineProperty(t, "SemanticTokensRefreshRequest", { enumerable: !0, get: function() { - return A.SemanticTokensRefreshRequest; - } }), Object.defineProperty(t, "SemanticTokensRegistrationType", { enumerable: !0, get: function() { - return A.SemanticTokensRegistrationType; - } }); - const b = Zy(); - Object.defineProperty(t, "ShowDocumentRequest", { enumerable: !0, get: function() { - return b.ShowDocumentRequest; - } }); - const I = Qy(); - Object.defineProperty(t, "LinkedEditingRangeRequest", { enumerable: !0, get: function() { - return I.LinkedEditingRangeRequest; - } }); - const k = eT(); - Object.defineProperty(t, "FileOperationPatternKind", { enumerable: !0, get: function() { - return k.FileOperationPatternKind; - } }), Object.defineProperty(t, "DidCreateFilesNotification", { enumerable: !0, get: function() { - return k.DidCreateFilesNotification; - } }), Object.defineProperty(t, "WillCreateFilesRequest", { enumerable: !0, get: function() { - return k.WillCreateFilesRequest; - } }), Object.defineProperty(t, "DidRenameFilesNotification", { enumerable: !0, get: function() { - return k.DidRenameFilesNotification; - } }), Object.defineProperty(t, "WillRenameFilesRequest", { enumerable: !0, get: function() { - return k.WillRenameFilesRequest; - } }), Object.defineProperty(t, "DidDeleteFilesNotification", { enumerable: !0, get: function() { - return k.DidDeleteFilesNotification; - } }), Object.defineProperty(t, "WillDeleteFilesRequest", { enumerable: !0, get: function() { - return k.WillDeleteFilesRequest; - } }); - const S = tT(); - Object.defineProperty(t, "UniquenessLevel", { enumerable: !0, get: function() { - return S.UniquenessLevel; - } }), Object.defineProperty(t, "MonikerKind", { enumerable: !0, get: function() { - return S.MonikerKind; - } }), Object.defineProperty(t, "MonikerRequest", { enumerable: !0, get: function() { - return S.MonikerRequest; - } }); - const C = rT(); - Object.defineProperty(t, "TypeHierarchyPrepareRequest", { enumerable: !0, get: function() { - return C.TypeHierarchyPrepareRequest; - } }), Object.defineProperty(t, "TypeHierarchySubtypesRequest", { enumerable: !0, get: function() { - return C.TypeHierarchySubtypesRequest; - } }), Object.defineProperty(t, "TypeHierarchySupertypesRequest", { enumerable: !0, get: function() { - return C.TypeHierarchySupertypesRequest; - } }); - const P = nT(); - Object.defineProperty(t, "InlineValueRequest", { enumerable: !0, get: function() { - return P.InlineValueRequest; - } }), Object.defineProperty(t, "InlineValueRefreshRequest", { enumerable: !0, get: function() { - return P.InlineValueRefreshRequest; - } }); - const W = iT(); - Object.defineProperty(t, "InlayHintRequest", { enumerable: !0, get: function() { - return W.InlayHintRequest; - } }), Object.defineProperty(t, "InlayHintResolveRequest", { enumerable: !0, get: function() { - return W.InlayHintResolveRequest; - } }), Object.defineProperty(t, "InlayHintRefreshRequest", { enumerable: !0, get: function() { - return W.InlayHintRefreshRequest; - } }); - const B = aT(); - Object.defineProperty(t, "DiagnosticServerCancellationData", { enumerable: !0, get: function() { - return B.DiagnosticServerCancellationData; - } }), Object.defineProperty(t, "DocumentDiagnosticReportKind", { enumerable: !0, get: function() { - return B.DocumentDiagnosticReportKind; - } }), Object.defineProperty(t, "DocumentDiagnosticRequest", { enumerable: !0, get: function() { - return B.DocumentDiagnosticRequest; - } }), Object.defineProperty(t, "WorkspaceDiagnosticRequest", { enumerable: !0, get: function() { - return B.WorkspaceDiagnosticRequest; - } }), Object.defineProperty(t, "DiagnosticRefreshRequest", { enumerable: !0, get: function() { - return B.DiagnosticRefreshRequest; - } }); - const H = sT(); - Object.defineProperty(t, "NotebookCellKind", { enumerable: !0, get: function() { - return H.NotebookCellKind; - } }), Object.defineProperty(t, "ExecutionSummary", { enumerable: !0, get: function() { - return H.ExecutionSummary; - } }), Object.defineProperty(t, "NotebookCell", { enumerable: !0, get: function() { - return H.NotebookCell; - } }), Object.defineProperty(t, "NotebookDocument", { enumerable: !0, get: function() { - return H.NotebookDocument; - } }), Object.defineProperty(t, "NotebookDocumentSyncRegistrationType", { enumerable: !0, get: function() { - return H.NotebookDocumentSyncRegistrationType; - } }), Object.defineProperty(t, "DidOpenNotebookDocumentNotification", { enumerable: !0, get: function() { - return H.DidOpenNotebookDocumentNotification; - } }), Object.defineProperty(t, "NotebookCellArrayChange", { enumerable: !0, get: function() { - return H.NotebookCellArrayChange; - } }), Object.defineProperty(t, "DidChangeNotebookDocumentNotification", { enumerable: !0, get: function() { - return H.DidChangeNotebookDocumentNotification; - } }), Object.defineProperty(t, "DidSaveNotebookDocumentNotification", { enumerable: !0, get: function() { - return H.DidSaveNotebookDocumentNotification; - } }), Object.defineProperty(t, "DidCloseNotebookDocumentNotification", { enumerable: !0, get: function() { - return H.DidCloseNotebookDocumentNotification; - } }); - const ne = oT(); - Object.defineProperty(t, "InlineCompletionRequest", { enumerable: !0, get: function() { - return ne.InlineCompletionRequest; - } }); - var se; - (function(f) { - function ve(Ee) { - const q = Ee; - return n.string(q) || n.string(q.language) || n.string(q.scheme) || n.string(q.pattern); - } - f.is = ve; - })(se || (t.TextDocumentFilter = se = {})); - var oe; - (function(f) { - function ve(Ee) { - const q = Ee; - return n.objectLiteral(q) && (n.string(q.notebookType) || n.string(q.scheme) || n.string(q.pattern)); - } - f.is = ve; - })(oe || (t.NotebookDocumentFilter = oe = {})); - var N; - (function(f) { - function ve(Ee) { - const q = Ee; - return n.objectLiteral(q) && (n.string(q.notebook) || oe.is(q.notebook)) && (q.language === void 0 || n.string(q.language)); - } - f.is = ve; - })(N || (t.NotebookCellTextDocumentFilter = N = {})); - var T; - (function(f) { - function ve(Ee) { - if (!Array.isArray(Ee)) - return !1; - for (let q of Ee) - if (!n.string(q) && !se.is(q) && !N.is(q)) - return !1; - return !0; - } - f.is = ve; - })(T || (t.DocumentSelector = T = {})); - var g; - (function(f) { - f.method = "client/registerCapability", f.messageDirection = e.MessageDirection.serverToClient, f.type = new e.ProtocolRequestType(f.method); - })(g || (t.RegistrationRequest = g = {})); - var $; - (function(f) { - f.method = "client/unregisterCapability", f.messageDirection = e.MessageDirection.serverToClient, f.type = new e.ProtocolRequestType(f.method); - })($ || (t.UnregistrationRequest = $ = {})); - var y; - (function(f) { - f.Create = "create", f.Rename = "rename", f.Delete = "delete"; - })(y || (t.ResourceOperationKind = y = {})); - var R; - (function(f) { - f.Abort = "abort", f.Transactional = "transactional", f.TextOnlyTransactional = "textOnlyTransactional", f.Undo = "undo"; - })(R || (t.FailureHandlingKind = R = {})); - var E; - (function(f) { - f.UTF8 = "utf-8", f.UTF16 = "utf-16", f.UTF32 = "utf-32"; - })(E || (t.PositionEncodingKind = E = {})); - var L; - (function(f) { - function ve(Ee) { - const q = Ee; - return q && n.string(q.id) && q.id.length > 0; - } - f.hasId = ve; - })(L || (t.StaticRegistrationOptions = L = {})); - var D; - (function(f) { - function ve(Ee) { - const q = Ee; - return q && (q.documentSelector === null || T.is(q.documentSelector)); - } - f.is = ve; - })(D || (t.TextDocumentRegistrationOptions = D = {})); - var x; - (function(f) { - function ve(q) { - const h = q; - return n.objectLiteral(h) && (h.workDoneProgress === void 0 || n.boolean(h.workDoneProgress)); - } - f.is = ve; - function Ee(q) { - const h = q; - return h && n.boolean(h.workDoneProgress); - } - f.hasWorkDoneProgress = Ee; - })(x || (t.WorkDoneProgressOptions = x = {})); - var j; - (function(f) { - f.method = "initialize", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(j || (t.InitializeRequest = j = {})); - var F; - (function(f) { - f.unknownProtocolVersion = 1; - })(F || (t.InitializeErrorCodes = F = {})); - var te; - (function(f) { - f.method = "initialized", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolNotificationType(f.method); - })(te || (t.InitializedNotification = te = {})); - var z; - (function(f) { - f.method = "shutdown", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType0(f.method); - })(z || (t.ShutdownRequest = z = {})); - var Q; - (function(f) { - f.method = "exit", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolNotificationType0(f.method); - })(Q || (t.ExitNotification = Q = {})); - var _e; - (function(f) { - f.method = "workspace/didChangeConfiguration", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolNotificationType(f.method); - })(_e || (t.DidChangeConfigurationNotification = _e = {})); - var me; - (function(f) { - f.Error = 1, f.Warning = 2, f.Info = 3, f.Log = 4, f.Debug = 5; - })(me || (t.MessageType = me = {})); - var le; - (function(f) { - f.method = "window/showMessage", f.messageDirection = e.MessageDirection.serverToClient, f.type = new e.ProtocolNotificationType(f.method); - })(le || (t.ShowMessageNotification = le = {})); - var we; - (function(f) { - f.method = "window/showMessageRequest", f.messageDirection = e.MessageDirection.serverToClient, f.type = new e.ProtocolRequestType(f.method); - })(we || (t.ShowMessageRequest = we = {})); - var Ie; - (function(f) { - f.method = "window/logMessage", f.messageDirection = e.MessageDirection.serverToClient, f.type = new e.ProtocolNotificationType(f.method); - })(Ie || (t.LogMessageNotification = Ie = {})); - var Ce; - (function(f) { - f.method = "telemetry/event", f.messageDirection = e.MessageDirection.serverToClient, f.type = new e.ProtocolNotificationType(f.method); - })(Ce || (t.TelemetryEventNotification = Ce = {})); - var Y; - (function(f) { - f.None = 0, f.Full = 1, f.Incremental = 2; - })(Y || (t.TextDocumentSyncKind = Y = {})); - var Xe; - (function(f) { - f.method = "textDocument/didOpen", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolNotificationType(f.method); - })(Xe || (t.DidOpenTextDocumentNotification = Xe = {})); - var ge; - (function(f) { - function ve(q) { - let h = q; - return h != null && typeof h.text == "string" && h.range !== void 0 && (h.rangeLength === void 0 || typeof h.rangeLength == "number"); - } - f.isIncremental = ve; - function Ee(q) { - let h = q; - return h != null && typeof h.text == "string" && h.range === void 0 && h.rangeLength === void 0; - } - f.isFull = Ee; - })(ge || (t.TextDocumentContentChangeEvent = ge = {})); - var it; - (function(f) { - f.method = "textDocument/didChange", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolNotificationType(f.method); - })(it || (t.DidChangeTextDocumentNotification = it = {})); - var Lr; - (function(f) { - f.method = "textDocument/didClose", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolNotificationType(f.method); - })(Lr || (t.DidCloseTextDocumentNotification = Lr = {})); - var Tn; - (function(f) { - f.method = "textDocument/didSave", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolNotificationType(f.method); - })(Tn || (t.DidSaveTextDocumentNotification = Tn = {})); - var Rn; - (function(f) { - f.Manual = 1, f.AfterDelay = 2, f.FocusOut = 3; - })(Rn || (t.TextDocumentSaveReason = Rn = {})); - var vn; - (function(f) { - f.method = "textDocument/willSave", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolNotificationType(f.method); - })(vn || (t.WillSaveTextDocumentNotification = vn = {})); - var En; - (function(f) { - f.method = "textDocument/willSaveWaitUntil", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(En || (t.WillSaveTextDocumentWaitUntilRequest = En = {})); - var at; - (function(f) { - f.method = "workspace/didChangeWatchedFiles", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolNotificationType(f.method); - })(at || (t.DidChangeWatchedFilesNotification = at = {})); - var An; - (function(f) { - f.Created = 1, f.Changed = 2, f.Deleted = 3; - })(An || (t.FileChangeType = An = {})); - var Ni; - (function(f) { - function ve(Ee) { - const q = Ee; - return n.objectLiteral(q) && (r.URI.is(q.baseUri) || r.WorkspaceFolder.is(q.baseUri)) && n.string(q.pattern); - } - f.is = ve; - })(Ni || (t.RelativePattern = Ni = {})); - var _i; - (function(f) { - f.Create = 1, f.Change = 2, f.Delete = 4; - })(_i || (t.WatchKind = _i = {})); - var Ii; - (function(f) { - f.method = "textDocument/publishDiagnostics", f.messageDirection = e.MessageDirection.serverToClient, f.type = new e.ProtocolNotificationType(f.method); - })(Ii || (t.PublishDiagnosticsNotification = Ii = {})); - var Pi; - (function(f) { - f.Invoked = 1, f.TriggerCharacter = 2, f.TriggerForIncompleteCompletions = 3; - })(Pi || (t.CompletionTriggerKind = Pi = {})); - var $n; - (function(f) { - f.method = "textDocument/completion", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })($n || (t.CompletionRequest = $n = {})); - var Cn; - (function(f) { - f.method = "completionItem/resolve", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Cn || (t.CompletionResolveRequest = Cn = {})); - var $t; - (function(f) { - f.method = "textDocument/hover", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })($t || (t.HoverRequest = $t = {})); - var Sn; - (function(f) { - f.Invoked = 1, f.TriggerCharacter = 2, f.ContentChange = 3; - })(Sn || (t.SignatureHelpTriggerKind = Sn = {})); - var Oi; - (function(f) { - f.method = "textDocument/signatureHelp", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Oi || (t.SignatureHelpRequest = Oi = {})); - var Li; - (function(f) { - f.method = "textDocument/definition", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Li || (t.DefinitionRequest = Li = {})); - var kn; - (function(f) { - f.method = "textDocument/references", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(kn || (t.ReferencesRequest = kn = {})); - var wn; - (function(f) { - f.method = "textDocument/documentHighlight", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(wn || (t.DocumentHighlightRequest = wn = {})); - var xi; - (function(f) { - f.method = "textDocument/documentSymbol", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(xi || (t.DocumentSymbolRequest = xi = {})); - var Di; - (function(f) { - f.method = "textDocument/codeAction", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Di || (t.CodeActionRequest = Di = {})); - var Mi; - (function(f) { - f.method = "codeAction/resolve", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Mi || (t.CodeActionResolveRequest = Mi = {})); - var Fi; - (function(f) { - f.method = "workspace/symbol", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Fi || (t.WorkspaceSymbolRequest = Fi = {})); - var Gi; - (function(f) { - f.method = "workspaceSymbol/resolve", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Gi || (t.WorkspaceSymbolResolveRequest = Gi = {})); - var ji; - (function(f) { - f.method = "textDocument/codeLens", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(ji || (t.CodeLensRequest = ji = {})); - var st; - (function(f) { - f.method = "codeLens/resolve", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(st || (t.CodeLensResolveRequest = st = {})); - var zi; - (function(f) { - f.method = "workspace/codeLens/refresh", f.messageDirection = e.MessageDirection.serverToClient, f.type = new e.ProtocolRequestType0(f.method); - })(zi || (t.CodeLensRefreshRequest = zi = {})); - var Ui; - (function(f) { - f.method = "textDocument/documentLink", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Ui || (t.DocumentLinkRequest = Ui = {})); - var nr; - (function(f) { - f.method = "documentLink/resolve", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(nr || (t.DocumentLinkResolveRequest = nr = {})); - var qi; - (function(f) { - f.method = "textDocument/formatting", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(qi || (t.DocumentFormattingRequest = qi = {})); - var xr; - (function(f) { - f.method = "textDocument/rangeFormatting", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(xr || (t.DocumentRangeFormattingRequest = xr = {})); - var Bi; - (function(f) { - f.method = "textDocument/rangesFormatting", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Bi || (t.DocumentRangesFormattingRequest = Bi = {})); - var Ct; - (function(f) { - f.method = "textDocument/onTypeFormatting", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Ct || (t.DocumentOnTypeFormattingRequest = Ct = {})); - var Ht; - (function(f) { - f.Identifier = 1; - })(Ht || (t.PrepareSupportDefaultBehavior = Ht = {})); - var Wi; - (function(f) { - f.method = "textDocument/rename", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Wi || (t.RenameRequest = Wi = {})); - var Ki; - (function(f) { - f.method = "textDocument/prepareRename", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Ki || (t.PrepareRenameRequest = Ki = {})); - var Xt; - (function(f) { - f.method = "workspace/executeCommand", f.messageDirection = e.MessageDirection.clientToServer, f.type = new e.ProtocolRequestType(f.method); - })(Xt || (t.ExecuteCommandRequest = Xt = {})); - var bn; - (function(f) { - f.method = "workspace/applyEdit", f.messageDirection = e.MessageDirection.serverToClient, f.type = new e.ProtocolRequestType("workspace/applyEdit"); - })(bn || (t.ApplyWorkspaceEditRequest = bn = {})); - })(Ns)), Ns; -} -var Vn = {}, Iu; -function cT() { - if (Iu) return Vn; - Iu = 1, Object.defineProperty(Vn, "__esModule", { value: !0 }), Vn.createProtocolConnection = void 0; - const t = gn(); - function e(r, n, i, a) { - return t.ConnectionStrategy.is(a) && (a = { connectionStrategy: a }), (0, t.createMessageConnection)(r, n, i, a); - } - return Vn.createProtocolConnection = e, Vn; -} -var Pu; -function uT() { - return Pu || (Pu = 1, (function(t) { - var e = ur && ur.__createBinding || (Object.create ? (function(a, s, o, l) { - l === void 0 && (l = o); - var c = Object.getOwnPropertyDescriptor(s, o); - (!c || ("get" in c ? !s.__esModule : c.writable || c.configurable)) && (c = { enumerable: !0, get: function() { - return s[o]; - } }), Object.defineProperty(a, l, c); - }) : (function(a, s, o, l) { - l === void 0 && (l = o), a[l] = s[o]; - })), r = ur && ur.__exportStar || function(a, s) { - for (var o in a) o !== "default" && !Object.prototype.hasOwnProperty.call(s, o) && e(s, a, o); - }; - Object.defineProperty(t, "__esModule", { value: !0 }), t.LSPErrorCodes = t.createProtocolConnection = void 0, r(gn(), t), r(Xl, t), r(pe(), t), r(lT(), t); - var n = cT(); - Object.defineProperty(t, "createProtocolConnection", { enumerable: !0, get: function() { - return n.createProtocolConnection; - } }); - var i; - (function(a) { - a.lspReservedErrorRangeStart = -32899, a.RequestFailed = -32803, a.ServerCancelled = -32802, a.ContentModified = -32801, a.RequestCancelled = -32800, a.lspReservedErrorRangeEnd = -32800; - })(i || (t.LSPErrorCodes = i = {})); - })(ur)), ur; -} -var Ou; -function fT() { - return Ou || (Ou = 1, (function(t) { - var e = or && or.__createBinding || (Object.create ? (function(a, s, o, l) { - l === void 0 && (l = o); - var c = Object.getOwnPropertyDescriptor(s, o); - (!c || ("get" in c ? !s.__esModule : c.writable || c.configurable)) && (c = { enumerable: !0, get: function() { - return s[o]; - } }), Object.defineProperty(a, l, c); - }) : (function(a, s, o, l) { - l === void 0 && (l = o), a[l] = s[o]; - })), r = or && or.__exportStar || function(a, s) { - for (var o in a) o !== "default" && !Object.prototype.hasOwnProperty.call(s, o) && e(s, a, o); - }; - Object.defineProperty(t, "__esModule", { value: !0 }), t.createProtocolConnection = void 0; - const n = su(); - r(su(), t), r(uT(), t); - function i(a, s, o, l) { - return (0, n.createMessageConnection)(a, s, o, l); - } - t.createProtocolConnection = i; - })(or)), or; -} -var na = fT(), li; -(function(t) { - function e(r) { - return { - dispose: async () => await r() - }; - } - t.create = e; -})(li || (li = {})); -class dT { - constructor(e) { - this.updateBuildOptions = { - // Default: run only the built-in validation checks and those in the _fast_ category (includes those without category) - validation: { - categories: ["built-in", "fast"] - } - }, this.updateListeners = [], this.buildPhaseListeners = new Ri(), this.documentPhaseListeners = new Ri(), this.buildState = /* @__PURE__ */ new Map(), this.documentBuildWaiters = /* @__PURE__ */ new Map(), this.currentState = K.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, r = {}, n = he.CancellationToken.None) { - for (const i of e) { - const a = i.uri.toString(); - if (i.state === K.Validated) { - if (typeof r.validation == "boolean" && r.validation) - this.resetToState(i, K.IndexedReferences); - else if (typeof r.validation == "object") { - const s = this.findMissingValidationCategories(i, r); - s.length > 0 && (this.buildState.set(a, { - completed: !1, - options: { - validation: { - categories: s - } - }, - result: this.buildState.get(a)?.result - }), i.state = K.IndexedReferences); - } - } else - this.buildState.delete(a); - } - this.currentState = K.Changed, await this.emitUpdate(e.map((i) => i.uri), []), await this.buildDocuments(e, r, n); - } - async update(e, r, n = he.CancellationToken.None) { - this.currentState = K.Changed; - const i = []; - for (const l of r) { - const c = this.langiumDocuments.deleteDocuments(l); - for (const u of c) - i.push(u.uri), this.cleanUpDeleted(u); - } - const a = (await Promise.all(e.map((l) => this.findChangedUris(l)))).flat(); - for (const l of a) { - let c = this.langiumDocuments.getDocument(l); - c === void 0 && (c = this.langiumDocumentFactory.fromModel({ $type: "INVALID" }, l), c.state = K.Changed, this.langiumDocuments.addDocument(c)), this.resetToState(c, K.Changed); - } - const s = fe(a).concat(i).map((l) => l.toString()).toSet(); - this.langiumDocuments.all.filter((l) => !s.has(l.uri.toString()) && this.shouldRelink(l, s)).forEach((l) => this.resetToState(l, K.ComputedScopes)), await this.emitUpdate(a, i), await Ue(n); - const o = this.sortDocuments(this.langiumDocuments.all.filter((l) => ( - // This includes those that were reported as changed and those that we selected for relinking - l.state < K.Validated || !this.buildState.get(l.uri.toString())?.completed || this.resultsAreIncomplete(l, this.updateBuildOptions) - )).toArray()); - await this.buildDocuments(o, this.updateBuildOptions, n); - } - resultsAreIncomplete(e, r) { - return this.findMissingValidationCategories(e, r).length >= 1; - } - findMissingValidationCategories(e, r) { - const n = this.buildState.get(e.uri.toString()), i = this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e), a = n?.result?.validationChecks ? new Set(n?.result?.validationChecks) : n?.completed ? i : /* @__PURE__ */ new Set(), s = r === void 0 || r.validation === !0 ? i : typeof r.validation == "object" ? r.validation.categories ?? i : []; - return fe(s).filter((o) => !a.has(o)).toArray(); - } - async findChangedUris(e) { - if (this.langiumDocuments.getDocument(e) ?? this.textDocuments?.get(e)) - return [e]; - try { - const n = await this.fileSystemProvider.stat(e); - if (n.isDirectory) - return await this.workspaceManager().searchFolder(e); - if (this.workspaceManager().shouldIncludeEntry(n)) - return [e]; - } catch { - } - return []; - } - async emitUpdate(e, r) { - await Promise.all(this.updateListeners.map((n) => n(e, r))); - } - /** - * Sort the given documents by priority. By default, documents with an open text document are prioritized. - * This is useful to ensure that visible documents show their diagnostics before all other documents. - * - * This improves the responsiveness in large workspaces as users usually don't care about diagnostics - * in files that are currently not opened in the editor. - */ - sortDocuments(e) { - let r = 0, n = e.length - 1; - for (; r < n; ) { - for (; r < e.length && this.hasTextDocument(e[r]); ) - r++; - for (; n >= 0 && !this.hasTextDocument(e[n]); ) - n--; - r < n && ([e[r], e[n]] = [e[n], e[r]]); - } - return e; - } - hasTextDocument(e) { - return !!this.textDocuments?.get(e.uri); - } - /** - * Check whether the given document should be relinked after changes were found in the given URIs. - */ - shouldRelink(e, r) { - return e.references.some((n) => n.error !== void 0) ? !0 : this.indexManager.isAffected(e, r); - } - onUpdate(e) { - return this.updateListeners.push(e), li.create(() => { - const r = this.updateListeners.indexOf(e); - r >= 0 && this.updateListeners.splice(r, 1); - }); - } - resetToState(e, r) { - switch (r) { - case K.Changed: - case K.Parsed: - this.indexManager.removeContent(e.uri); - // Fall through - case K.IndexedContent: - e.localSymbols = void 0; - // Fall through - case K.ComputedScopes: - this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e); - case K.Linked: - this.indexManager.removeReferences(e.uri); - // Fall through - case K.IndexedReferences: - e.diagnostics = void 0, this.buildState.delete(e.uri.toString()); - // Fall through - case K.Validated: - } - e.state > r && (e.state = r); - } - cleanUpDeleted(e) { - this.buildState.delete(e.uri.toString()), this.indexManager.remove(e.uri), e.state = K.Changed; - } - /** - * Build the given documents by stepping through all build phases. If a document's state indicates - * that a certain build phase is already done, the phase is skipped for that document. - * - * @param documents The documents to build. - * @param options the {@link BuildOptions} to use. - * @param cancelToken A cancellation token that can be used to cancel the build. - * @returns A promise that resolves when the build is done. - */ - async buildDocuments(e, r, n) { - this.prepareBuild(e, r), await this.runCancelable(e, K.Parsed, n, (s) => this.langiumDocumentFactory.update(s, n)), await this.runCancelable(e, K.IndexedContent, n, (s) => this.indexManager.updateContent(s, n)), await this.runCancelable(e, K.ComputedScopes, n, async (s) => { - const o = this.serviceRegistry.getServices(s.uri).references.ScopeComputation; - s.localSymbols = await o.collectLocalSymbols(s, n); - }); - const i = e.filter((s) => this.shouldLink(s)); - await this.runCancelable(i, K.Linked, n, (s) => this.serviceRegistry.getServices(s.uri).references.Linker.link(s, n)), await this.runCancelable(i, K.IndexedReferences, n, (s) => this.indexManager.updateReferences(s, n)); - const a = e.filter((s) => this.shouldValidate(s) ? !0 : (this.markAsCompleted(s), !1)); - await this.runCancelable(a, K.Validated, n, async (s) => { - await this.validate(s, n), this.markAsCompleted(s); - }); - } - markAsCompleted(e) { - const r = this.buildState.get(e.uri.toString()); - r && (r.completed = !0); - } - /** - * Runs prior to beginning the build process to update the {@link DocumentBuildState} for each document - * - * @param documents collection of documents to be built - * @param options the {@link BuildOptions} to use - */ - prepareBuild(e, r) { - for (const n of e) { - const i = n.uri.toString(), a = this.buildState.get(i); - (!a || a.completed) && this.buildState.set(i, { - completed: !1, - options: r, - result: a?.result - }); - } - } - /** - * Runs a cancelable operation on a set of documents to bring them to a specified {@link DocumentState}. - * - * @param documents The array of documents to process. - * @param targetState The target {@link DocumentState} to bring the documents to. - * @param cancelToken A token that can be used to cancel the operation. - * @param callback A function to be called for each document. - * @returns A promise that resolves when all documents have been processed or the operation is canceled. - * @throws Will throw `OperationCancelled` if the operation is canceled via a `CancellationToken`. - */ - async runCancelable(e, r, n, i) { - for (const s of e) - s.state < r && (await Ue(n), await i(s), s.state = r, await this.notifyDocumentPhase(s, r, n)); - const a = e.filter((s) => s.state === r); - await this.notifyBuildPhase(a, r, n), this.currentState = r; - } - onBuildPhase(e, r) { - return this.buildPhaseListeners.add(e, r), li.create(() => { - this.buildPhaseListeners.delete(e, r); - }); - } - onDocumentPhase(e, r) { - return this.documentPhaseListeners.add(e, r), li.create(() => { - this.documentPhaseListeners.delete(e, r); - }); - } - waitUntil(e, r, n) { - let i; - return r && "path" in r ? i = r : n = r, n ?? (n = he.CancellationToken.None), i ? this.awaitDocumentState(e, i, n) : this.awaitBuilderState(e, n); - } - awaitDocumentState(e, r, n) { - const i = this.langiumDocuments.getDocument(r); - if (i) { - if (i.state >= e) - return Promise.resolve(r); - if (n.isCancellationRequested) - return Promise.reject(rn); - if (this.currentState >= e && e > i.state) - return Promise.reject(new na.ResponseError(na.LSPErrorCodes.RequestFailed, `Document state of ${r.toString()} is ${K[i.state]}, requiring ${K[e]}, but workspace state is already ${K[this.currentState]}. Returning undefined.`)); - } else return Promise.reject(new na.ResponseError(na.LSPErrorCodes.ServerCancelled, `No document found for URI: ${r.toString()}`)); - return new Promise((a, s) => { - const o = this.onDocumentPhase(e, (c) => { - Qe.equals(c.uri, r) && (o.dispose(), l.dispose(), a(c.uri)); - }), l = n.onCancellationRequested(() => { - o.dispose(), l.dispose(), s(rn); - }); - }); - } - awaitBuilderState(e, r) { - return this.currentState >= e ? Promise.resolve() : r.isCancellationRequested ? Promise.reject(rn) : new Promise((n, i) => { - const a = this.onBuildPhase(e, () => { - a.dispose(), s.dispose(), n(); - }), s = r.onCancellationRequested(() => { - a.dispose(), s.dispose(), i(rn); - }); - }); - } - async notifyDocumentPhase(e, r, n) { - const a = this.documentPhaseListeners.get(r).slice(); - for (const s of a) - try { - await Ue(n), await s(e, n); - } catch (o) { - if (!fs(o)) - throw o; - } - } - async notifyBuildPhase(e, r, n) { - if (e.length === 0) - return; - const a = this.buildPhaseListeners.get(r).slice(); - for (const s of a) - await Ue(n), await s(e, n); - } - /** - * Determine whether the given document should be linked during a build. The default - * implementation checks the `eagerLinking` property of the build options. If it's set to `true` - * or `undefined`, the document is included in the linking phase. This also affects the - * references indexing phase, which depends on eager linking. - */ - shouldLink(e) { - return this.getBuildOptions(e).eagerLinking ?? !0; - } - /** - * Determine whether the given document should be validated during a build. The default - * implementation checks the `validation` property of the build options. If it's set to `true` - * or a `ValidationOptions` object, the document is included in the validation phase. - */ - shouldValidate(e) { - return !!this.getBuildOptions(e).validation; - } - /** - * Run validation checks on the given document and store the resulting diagnostics in the document. - * If the document already contains diagnostics, the new ones are added to the list. - */ - async validate(e, r) { - const n = this.serviceRegistry.getServices(e.uri).validation.DocumentValidator, i = this.getBuildOptions(e), a = typeof i.validation == "object" ? { ...i.validation } : {}; - a.categories = this.findMissingValidationCategories(e, i); - const s = await n.validateDocument(e, a, r); - e.diagnostics ? e.diagnostics.push(...s) : e.diagnostics = s; - const o = this.buildState.get(e.uri.toString()); - o && (o.result ?? (o.result = {}), o.result.validationChecks ? o.result.validationChecks = fe(o.result.validationChecks).concat(a.categories).distinct().toArray() : o.result.validationChecks = [...a.categories]); - } - getBuildOptions(e) { - return this.buildState.get(e.uri.toString())?.options ?? {}; - } -} -class hT { - constructor(e) { - this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new Ty(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; - } - findAllReferences(e, r) { - const n = Gt(e).uri, i = []; - return this.referenceIndex.forEach((a) => { - a.forEach((s) => { - Qe.equals(s.targetUri, n) && s.targetPath === r && i.push(s); - }); - }), fe(i); - } - allElements(e, r) { - let n = fe(this.symbolIndex.keys()); - return r && (n = n.filter((i) => !r || r.has(i))), n.map((i) => this.getFileDescriptions(i, e)).flat(); - } - getFileDescriptions(e, r) { - return r ? this.symbolByTypeIndex.get(e, r, () => (this.symbolIndex.get(e) ?? []).filter((a) => this.astReflection.isSubtype(a.type, r))) : this.symbolIndex.get(e) ?? []; - } - remove(e) { - this.removeContent(e), this.removeReferences(e); - } - removeContent(e) { - const r = e.toString(); - this.symbolIndex.delete(r), this.symbolByTypeIndex.clear(r); - } - removeReferences(e) { - const r = e.toString(); - this.referenceIndex.delete(r); - } - async updateContent(e, r = he.CancellationToken.None) { - const i = await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e, r), a = e.uri.toString(); - this.symbolIndex.set(a, i), this.symbolByTypeIndex.clear(a); - } - async updateReferences(e, r = he.CancellationToken.None) { - const i = await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e, r); - this.referenceIndex.set(e.uri.toString(), i); - } - isAffected(e, r) { - const n = this.referenceIndex.get(e.uri.toString()); - return n ? n.some((i) => !i.local && r.has(i.targetUri.toString())) : !1; - } -} -class pT { - constructor(e) { - this.initialBuildOptions = {}, this._ready = new Hl(), 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((r) => this.initializeWorkspace(this.folders ?? [], r)); - } - async initializeWorkspace(e, r = he.CancellationToken.None) { - const n = await this.performStartup(e); - await Ue(r), await this.documentBuilder.build(n, this.initialBuildOptions, r); - } - /** - * Performs the uninterruptable startup sequence of the workspace manager. - * This methods loads all documents in the workspace and other documents and returns them. - */ - async performStartup(e) { - const r = [], n = (s) => { - r.push(s), this.langiumDocuments.hasDocument(s.uri) || this.langiumDocuments.addDocument(s); - }; - await this.loadAdditionalDocuments(e, n); - const i = []; - await Promise.all(e.map((s) => this.getRootFolder(s)).map(async (s) => this.traverseFolder(s, i))); - const a = fe(i).distinct((s) => s.toString()).filter((s) => !this.langiumDocuments.hasDocument(s)); - return await this.loadWorkspaceDocuments(a, n), this._ready.resolve(), r; - } - async loadWorkspaceDocuments(e, r) { - await Promise.all(e.map(async (n) => { - const i = await this.langiumDocuments.getOrCreateDocument(n); - r(i); - })); - } - /** - * Load all additional documents that shall be visible in the context of the given workspace - * folders and add them to the collector. This can be used to include built-in libraries of - * your language, which can be either loaded from provided files or constructed in memory. - */ - loadAdditionalDocuments(e, r) { - return Promise.resolve(); - } - /** - * Determine the root folder of the source documents in the given workspace folder. - * The default implementation returns the URI of the workspace folder, but you can override - * this to return a subfolder like `src` instead. - */ - getRootFolder(e) { - return ft.parse(e.uri); - } - /** - * Traverse the file system folder identified by the given URI and its subfolders. All - * contained files that match the file extensions are added to the `uris` array. - */ - async traverseFolder(e, r) { - try { - const n = await this.fileSystemProvider.readDirectory(e); - await Promise.all(n.map(async (i) => { - this.shouldIncludeEntry(i) && (i.isDirectory ? await this.traverseFolder(i.uri, r) : i.isFile && r.push(i.uri)); - })); - } catch (n) { - console.error("Failure to read directory content of " + e.toString(!0), n); - } - } - async searchFolder(e) { - const r = []; - return await this.traverseFolder(e, r), r; - } - /** - * Determine whether the given folder entry shall be included while indexing the workspace. - */ - shouldIncludeEntry(e) { - const r = Qe.basename(e.uri); - return r.startsWith(".") ? !1 : e.isDirectory ? r !== "node_modules" && r !== "out" : e.isFile ? this.serviceRegistry.hasServices(e.uri) : !1; - } -} -class mT { - buildUnexpectedCharactersMessage(e, r, n, i, a) { - return ro.buildUnexpectedCharactersMessage(e, r, n, i, a); - } - buildUnableToPopLexerModeMessage(e) { - return ro.buildUnableToPopLexerModeMessage(e); - } -} -const gT = { mode: "full" }; -class yT { - constructor(e) { - this.errorMessageProvider = e.parser.LexerErrorMessageProvider, this.tokenBuilder = e.parser.TokenBuilder; - const r = this.tokenBuilder.buildTokens(e.Grammar, { - caseInsensitive: e.LanguageMetaData.caseInsensitive - }); - this.tokenTypes = this.toTokenTypeDictionary(r); - const n = Lu(r) ? Object.values(r) : r, i = e.LanguageMetaData.mode === "production"; - this.chevrotainLexer = new We(n, { - positionTracking: "full", - skipValidations: i, - errorMessageProvider: this.errorMessageProvider - }); - } - get definition() { - return this.tokenTypes; - } - tokenize(e, r = gT) { - const n = this.chevrotainLexer.tokenize(e); - return { - tokens: n.tokens, - errors: n.errors, - hidden: n.groups.hidden ?? [], - report: this.tokenBuilder.flushLexingReport?.(e) - }; - } - toTokenTypeDictionary(e) { - if (Lu(e)) - return e; - const r = kd(e) ? Object.values(e.modes).flat() : e, n = {}; - return r.forEach((i) => n[i.name] = i), n; - } -} -function TT(t) { - return Array.isArray(t) && (t.length === 0 || "name" in t[0]); -} -function kd(t) { - return t && "modes" in t && "defaultMode" in t; -} -function Lu(t) { - return !TT(t) && !kd(t); -} -function RT(t, e, r) { - let n, i; - typeof t == "string" ? (i = e, n = r) : (i = t.range.start, n = e), i || (i = Z.create(0, 0)); - const a = wd(t), s = Jl(n), o = AT({ - lines: a, - position: i, - options: s - }); - return wT({ - index: 0, - tokens: o, - position: i - }); -} -function vT(t, e) { - const r = Jl(e), n = wd(t); - if (n.length === 0) - return !1; - const i = n[0], a = n[n.length - 1], s = r.start, o = r.end; - return !!s?.exec(i) && !!o?.exec(a); -} -function wd(t) { - let e = ""; - return typeof t == "string" ? e = t : e = t.text, e.split($h); -} -const xu = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, ET = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; -function AT(t) { - const e = []; - let r = t.position.line, n = t.position.character; - for (let i = 0; i < t.lines.length; i++) { - const a = i === 0, s = i === t.lines.length - 1; - let o = t.lines[i], l = 0; - if (a && t.options.start) { - const u = t.options.start?.exec(o); - u && (l = u.index + u[0].length); - } else { - const u = t.options.line?.exec(o); - u && (l = u.index + u[0].length); - } - if (s) { - const u = t.options.end?.exec(o); - u && (o = o.substring(0, u.index)); - } - if (o = o.substring(0, kT(o)), Tl(o, l) >= o.length) { - if (e.length > 0) { - const u = Z.create(r, n); - e.push({ - type: "break", - content: "", - range: V.create(u, u) - }); - } - } else { - xu.lastIndex = l; - const u = xu.exec(o); - if (u) { - const d = u[0], p = u[1], m = Z.create(r, n + l), A = Z.create(r, n + l + d.length); - e.push({ - type: "tag", - content: p, - range: V.create(m, A) - }), l += d.length, l = Tl(o, l); - } - if (l < o.length) { - const d = o.substring(l), p = Array.from(d.matchAll(ET)); - e.push(...$T(p, d, r, n + l)); - } - } - r++, n = 0; - } - return e.length > 0 && e[e.length - 1].type === "break" ? e.slice(0, -1) : e; -} -function $T(t, e, r, n) { - const i = []; - if (t.length === 0) { - const a = Z.create(r, n), s = Z.create(r, n + e.length); - i.push({ - type: "text", - content: e, - range: V.create(a, s) - }); - } else { - let a = 0; - for (const o of t) { - const l = o.index, c = e.substring(a, l); - c.length > 0 && i.push({ - type: "text", - content: e.substring(a, l), - range: V.create(Z.create(r, a + n), Z.create(r, l + n)) - }); - let u = c.length + 1; - const d = o[1]; - if (i.push({ - type: "inline-tag", - content: d, - range: V.create(Z.create(r, a + u + n), Z.create(r, a + u + d.length + n)) - }), u += d.length, o.length === 4) { - u += o[2].length; - const p = o[3]; - i.push({ - type: "text", - content: p, - range: V.create(Z.create(r, a + u + n), Z.create(r, a + u + p.length + n)) - }); - } else - i.push({ - type: "text", - content: "", - range: V.create(Z.create(r, a + u + n), Z.create(r, a + u + n)) - }); - a = l + o[0].length; - } - const s = e.substring(a); - s.length > 0 && i.push({ - type: "text", - content: s, - range: V.create(Z.create(r, a + n), Z.create(r, a + n + s.length)) - }); - } - return i; -} -const CT = /\S/, ST = /\s*$/; -function Tl(t, e) { - const r = t.substring(e).match(CT); - return r ? e + r.index : t.length; -} -function kT(t) { - const e = t.match(ST); - if (e && typeof e.index == "number") - return e.index; -} -function wT(t) { - const e = Z.create(t.position.line, t.position.character); - if (t.tokens.length === 0) - return new Du([], V.create(e, e)); - const r = []; - for (; t.index < t.tokens.length; ) { - const a = bT(t, r[r.length - 1]); - a && r.push(a); - } - const n = r[0]?.range.start ?? e, i = r[r.length - 1]?.range.end ?? e; - return new Du(r, V.create(n, i)); -} -function bT(t, e) { - const r = t.tokens[t.index]; - if (r.type === "tag") - return Nd(t, !1); - if (r.type === "text" || r.type === "inline-tag") - return bd(t); - NT(r, e), t.index++; -} -function NT(t, e) { - if (e) { - const r = new Id("", t.range); - "inlines" in e ? e.inlines.push(r) : e.content.inlines.push(r); - } -} -function bd(t) { - let e = t.tokens[t.index]; - const r = e; - let n = e; - const i = []; - for (; e && e.type !== "break" && e.type !== "tag"; ) - i.push(_T(t)), n = e, e = t.tokens[t.index]; - return new Rl(i, V.create(r.range.start, n.range.end)); -} -function _T(t) { - return t.tokens[t.index].type === "inline-tag" ? Nd(t, !0) : _d(t); -} -function Nd(t, e) { - const r = t.tokens[t.index++], n = r.content.substring(1); - if (t.tokens[t.index]?.type === "text") - if (e) { - const a = _d(t); - return new Is(n, new Rl([a], a.range), e, V.create(r.range.start, a.range.end)); - } else { - const a = bd(t); - return new Is(n, a, e, V.create(r.range.start, a.range.end)); - } - else { - const a = r.range; - return new Is(n, new Rl([], a), e, a); - } -} -function _d(t) { - const e = t.tokens[t.index++]; - return new Id(e.content, e.range); -} -function Jl(t) { - if (!t) - return Jl({ - start: "/**", - end: "*/", - line: "*" - }); - const { start: e, end: r, line: n } = t; - return { - start: _s(e, !0), - end: _s(r, !1), - line: _s(n, !0) - }; -} -function _s(t, e) { - if (typeof t == "string" || typeof t == "object") { - const r = typeof t == "string" ? ts(t) : t.source; - return e ? new RegExp(`^\\s*${r}`) : new RegExp(`\\s*${r}\\s*$`); - } else - return t; -} -class Du { - constructor(e, r) { - this.elements = e, this.range = r; - } - getTag(e) { - return this.getAllTags().find((r) => r.name === e); - } - getTags(e) { - return this.getAllTags().filter((r) => r.name === e); - } - getAllTags() { - return this.elements.filter((e) => "name" in e); - } - toString() { - let e = ""; - for (const r of this.elements) - if (e.length === 0) - e = r.toString(); - else { - const n = r.toString(); - e += Mu(e) + n; - } - return e.trim(); - } - toMarkdown(e) { - let r = ""; - for (const n of this.elements) - if (r.length === 0) - r = n.toMarkdown(e); - else { - const i = n.toMarkdown(e); - r += Mu(r) + i; - } - return r.trim(); - } -} -class Is { - constructor(e, r, n, i) { - this.name = e, this.content = r, this.inline = n, this.range = i; - } - toString() { - let e = `@${this.name}`; - const r = this.content.toString(); - return this.content.inlines.length === 1 ? e = `${e} ${r}` : this.content.inlines.length > 1 && (e = `${e} -${r}`), this.inline ? `{${e}}` : e; - } - toMarkdown(e) { - return e?.renderTag?.(this) ?? this.toMarkdownDefault(e); - } - toMarkdownDefault(e) { - const r = this.content.toMarkdown(e); - if (this.inline) { - const a = IT(this.name, r, e ?? {}); - if (typeof a == "string") - return a; - } - let n = ""; - e?.tag === "italic" || e?.tag === void 0 ? n = "*" : e?.tag === "bold" ? n = "**" : e?.tag === "bold-italic" && (n = "***"); - let i = `${n}@${this.name}${n}`; - return this.content.inlines.length === 1 ? i = `${i} — ${r}` : this.content.inlines.length > 1 && (i = `${i} -${r}`), this.inline ? `{${i}}` : i; - } -} -function IT(t, e, r) { - if (t === "linkplain" || t === "linkcode" || t === "link") { - const n = e.indexOf(" "); - let i = e; - if (n > 0) { - const s = Tl(e, n); - i = e.substring(s), e = e.substring(0, n); - } - return (t === "linkcode" || t === "link" && r.link === "code") && (i = `\`${i}\``), r.renderLink?.(e, i) ?? PT(e, i); - } -} -function PT(t, e) { - try { - return ft.parse(t, !0), `[${e}](${t})`; - } catch { - return t; - } -} -class Rl { - constructor(e, r) { - this.inlines = e, this.range = r; - } - toString() { - let e = ""; - for (let r = 0; r < this.inlines.length; r++) { - const n = this.inlines[r], i = this.inlines[r + 1]; - e += n.toString(), i && i.range.start.line > n.range.start.line && (e += ` -`); - } - return e; - } - toMarkdown(e) { - let r = ""; - for (let n = 0; n < this.inlines.length; n++) { - const i = this.inlines[n], a = this.inlines[n + 1]; - r += i.toMarkdown(e), a && a.range.start.line > i.range.start.line && (r += ` -`); - } - return r; - } -} -class Id { - constructor(e, r) { - this.text = e, this.range = r; - } - toString() { - return this.text; - } - toMarkdown() { - return this.text; - } -} -function Mu(t) { - return t.endsWith(` -`) ? ` -` : ` - -`; -} -class OT { - constructor(e) { - this.indexManager = e.shared.workspace.IndexManager, this.commentProvider = e.documentation.CommentProvider; - } - getDocumentation(e) { - const r = this.commentProvider.getComment(e); - if (r && vT(r)) - return RT(r).toMarkdown({ - renderLink: (i, a) => this.documentationLinkRenderer(e, i, a), - renderTag: (i) => this.documentationTagRenderer(e, i) - }); - } - documentationLinkRenderer(e, r, n) { - const i = this.findNameInLocalSymbols(e, r) ?? this.findNameInGlobalScope(e, r); - if (i && i.nameSegment) { - const a = i.nameSegment.range.start.line + 1, s = i.nameSegment.range.start.character + 1, o = i.documentUri.with({ fragment: `L${a},${s}` }); - return `[${n}](${o.toString()})`; - } else - return; - } - documentationTagRenderer(e, r) { - } - findNameInLocalSymbols(e, r) { - const i = Gt(e).localSymbols; - if (!i) - return; - let a = e; - do { - const o = i.getStream(a).find((l) => l.name === r); - if (o) - return o; - a = a.$container; - } while (a); - } - findNameInGlobalScope(e, r) { - return this.indexManager.allElements().find((i) => i.name === r); - } -} -class LT { - constructor(e) { - this.grammarConfig = () => e.parser.GrammarConfig; - } - getComment(e) { - return Ey(e) ? e.$comment : Th(e.$cstNode, this.grammarConfig().multilineCommentRules)?.text; - } -} -class xT { - constructor(e) { - this.syncParser = e.parser.LangiumParser; - } - parse(e, r) { - return Promise.resolve(this.syncParser.parse(e)); - } -} -class DT { - constructor() { - this.previousTokenSource = new he.CancellationTokenSource(), this.writeQueue = [], this.readQueue = [], this.done = !0; - } - write(e) { - this.cancelWrite(); - const r = sy(); - return this.previousTokenSource = r, this.enqueue(this.writeQueue, e, r.token); - } - read(e) { - return this.enqueue(this.readQueue, e); - } - enqueue(e, r, n = he.CancellationToken.None) { - const i = new Hl(), a = { - action: r, - deferred: i, - cancellationToken: n - }; - return e.push(a), this.performNextOperation(), i.promise; - } - async performNextOperation() { - if (!this.done) - return; - const 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: r, deferred: n, cancellationToken: i }) => { - try { - const a = await Promise.resolve().then(() => r(i)); - n.resolve(a); - } catch (a) { - fs(a) ? n.resolve(void 0) : n.reject(a); - } - })), this.done = !0, this.performNextOperation(); - } - cancelWrite() { - this.previousTokenSource.cancel(); - } -} -class MT { - constructor(e) { - this.grammarElementIdMap = new Bc(), this.tokenTypeIdMap = new Bc(), 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, - // We need to create shallow copies of the errors - // The original errors inherit from the `Error` class, which is not transferable across worker threads - parserErrors: e.parserErrors.map((r) => ({ ...r, message: r.message })), - value: this.dehydrateAstNode(e.value, this.createDehyrationContext(e.value)) - }; - } - dehydrateLexerReport(e) { - return e; - } - createDehyrationContext(e) { - const r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(); - for (const i of jt(e)) - r.set(i, {}); - if (e.$cstNode) - for (const i of Js(e.$cstNode)) - n.set(i, {}); - return { - astNodes: r, - cstNodes: n - }; - } - dehydrateAstNode(e, r) { - const n = r.astNodes.get(e); - n.$type = e.$type, n.$containerIndex = e.$containerIndex, n.$containerProperty = e.$containerProperty, e.$cstNode !== void 0 && (n.$cstNode = this.dehydrateCstNode(e.$cstNode, r)); - for (const [i, a] of Object.entries(e)) - if (!i.startsWith("$")) - if (Array.isArray(a)) { - const s = []; - n[i] = s; - for (const o of a) - Fe(o) ? s.push(this.dehydrateAstNode(o, r)) : ut(o) ? s.push(this.dehydrateReference(o, r)) : s.push(o); - } else Fe(a) ? n[i] = this.dehydrateAstNode(a, r) : ut(a) ? n[i] = this.dehydrateReference(a, r) : a !== void 0 && (n[i] = a); - return n; - } - dehydrateReference(e, r) { - const n = {}; - return n.$refText = e.$refText, e.$refNode && (n.$refNode = r.cstNodes.get(e.$refNode)), n; - } - dehydrateCstNode(e, r) { - const n = r.cstNodes.get(e); - return tf(e) ? n.fullText = e.fullText : n.grammarSource = this.getGrammarElementId(e.grammarSource), n.hidden = e.hidden, n.astNode = r.astNodes.get(e.astNode), ci(e) ? n.content = e.content.map((i) => this.dehydrateCstNode(i, r)) : ef(e) && (n.tokenType = e.tokenType.name, n.offset = e.offset, n.length = e.length, n.startLine = e.range.start.line, n.startColumn = e.range.start.character, n.endLine = e.range.end.line, n.endColumn = e.range.end.character), n; - } - hydrate(e) { - const r = e.value, n = this.createHydrationContext(r); - return "$cstNode" in r && this.hydrateCstNode(r.$cstNode, n), { - lexerErrors: e.lexerErrors, - lexerReport: e.lexerReport, - parserErrors: e.parserErrors, - value: this.hydrateAstNode(r, n) - }; - } - createHydrationContext(e) { - const r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(); - for (const a of jt(e)) - r.set(a, {}); - let i; - if (e.$cstNode) - for (const a of Js(e.$cstNode)) { - let s; - "fullText" in a ? (s = new cd(a.fullText), i = s) : "content" in a ? s = new Wl() : "tokenType" in a && (s = this.hydrateCstLeafNode(a)), s && (n.set(a, s), s.root = i); - } - return { - astNodes: r, - cstNodes: n - }; - } - hydrateAstNode(e, r) { - const n = r.astNodes.get(e); - n.$type = e.$type, n.$containerIndex = e.$containerIndex, n.$containerProperty = e.$containerProperty, e.$cstNode && (n.$cstNode = r.cstNodes.get(e.$cstNode)); - for (const [i, a] of Object.entries(e)) - if (!i.startsWith("$")) - if (Array.isArray(a)) { - const s = []; - n[i] = s; - for (const o of a) - Fe(o) ? s.push(this.setParent(this.hydrateAstNode(o, r), n)) : ut(o) ? s.push(this.hydrateReference(o, n, i, r)) : s.push(o); - } else Fe(a) ? n[i] = this.setParent(this.hydrateAstNode(a, r), n) : ut(a) ? n[i] = this.hydrateReference(a, n, i, r) : a !== void 0 && (n[i] = a); - return n; - } - setParent(e, r) { - return e.$container = r, e; - } - hydrateReference(e, r, n, i) { - return this.linker.buildReference(r, n, i.cstNodes.get(e.$refNode), e.$refText); - } - hydrateCstNode(e, r, n = 0) { - const i = r.cstNodes.get(e); - if (typeof e.grammarSource == "number" && (i.grammarSource = this.getGrammarElement(e.grammarSource)), i.astNode = r.astNodes.get(e.astNode), ci(i)) - for (const a of e.content) { - const s = this.hydrateCstNode(a, r, n++); - i.content.push(s); - } - return i; - } - hydrateCstLeafNode(e) { - const r = this.getTokenType(e.tokenType), n = e.offset, i = e.length, a = e.startLine, s = e.startColumn, o = e.endLine, l = e.endColumn, c = e.hidden; - return new fl(n, i, { - start: { - line: a, - character: s - }, - end: { - line: o, - character: l - } - }, r, c); - } - 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 (const r of jt(this.grammar)) - Xd(r) && this.grammarElementIdMap.set(r, e++); - } -} -function vt(t) { - return { - documentation: { - CommentProvider: (e) => new LT(e), - DocumentationProvider: (e) => new OT(e) - }, - parser: { - AsyncParser: (e) => new xT(e), - GrammarConfig: (e) => Wh(e), - LangiumParser: (e) => ry(e), - CompletionParser: (e) => ty(e), - ValueConverter: () => new Td(), - TokenBuilder: () => new yd(), - Lexer: (e) => new yT(e), - ParserErrorMessageProvider: () => new dd(), - LexerErrorMessageProvider: () => new mT() - }, - workspace: { - AstNodeLocator: () => new Iy(), - AstNodeDescriptionProvider: (e) => new Ny(e), - ReferenceDescriptionProvider: (e) => new _y(e) - }, - references: { - Linker: (e) => new fy(e), - NameProvider: () => new hy(), - ScopeProvider: (e) => new vy(e), - ScopeComputation: (e) => new my(e), - References: (e) => new py(e) - }, - serializer: { - Hydrator: (e) => new MT(e), - JsonSerializer: (e) => new Ay(e) - }, - validation: { - DocumentValidator: (e) => new ky(e), - ValidationRegistry: (e) => new Cy(e) - }, - shared: () => t.shared - }; -} -function Et(t) { - return { - ServiceRegistry: (e) => new $y(e), - workspace: { - LangiumDocuments: (e) => new uy(e), - LangiumDocumentFactory: (e) => new cy(e), - DocumentBuilder: (e) => new dT(e), - IndexManager: (e) => new hT(e), - WorkspaceManager: (e) => new pT(e), - FileSystemProvider: (e) => t.fileSystemProvider(e), - WorkspaceLock: () => new DT(), - ConfigurationProvider: (e) => new Oy(e) - }, - profilers: {} - }; -} -var Fu; -(function(t) { - t.merge = (e, r) => vi(vi({}, e), r); -})(Fu || (Fu = {})); -function ke(t, e, r, n, i, a, s, o, l) { - const c = [t, e, r, n, i, a, s, o, l].reduce(vi, {}); - return Pd(c); -} -const FT = Symbol("isProxy"); -function Pd(t, e) { - const r = new Proxy({}, { - deleteProperty: () => !1, - set: () => { - throw new Error("Cannot set property on injected service container"); - }, - get: (n, i) => i === FT ? !0 : ju(n, i, t, e || r), - getOwnPropertyDescriptor: (n, i) => (ju(n, i, t, e || r), Object.getOwnPropertyDescriptor(n, i)), - // used by for..in - has: (n, i) => i in t, - // used by ..in.. - ownKeys: () => [...Object.getOwnPropertyNames(t)] - // used by for..in - }); - return r; -} -const Gu = Symbol(); -function ju(t, e, r, n) { - if (e in t) { - if (t[e] instanceof Error) - throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: " + t[e]); - if (t[e] === Gu) - throw new Error('Cycle detected. Please make "' + String(e) + '" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies'); - return t[e]; - } else if (e in r) { - const i = r[e]; - t[e] = Gu; - try { - t[e] = typeof i == "function" ? i(n) : Pd(i, n); - } catch (a) { - throw t[e] = a instanceof Error ? a : void 0, a; - } - return t[e]; - } else - return; -} -function vi(t, e) { - if (e) { - for (const [r, n] of Object.entries(e)) - if (n != null) - if (typeof n == "object") { - const i = t[r]; - typeof i == "object" && i !== null ? t[r] = vi(i, n) : t[r] = vi({}, n); - } else - t[r] = n; - } - return t; -} -class GT { - 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 []; - } -} -const At = { - fileSystemProvider: () => new GT() -}, jT = { - Grammar: () => { - }, - LanguageMetaData: () => ({ - caseInsensitive: !1, - fileExtensions: [".langium"], - languageId: "langium" - }) -}, zT = { - AstReflection: () => new lf() -}; -function UT() { - const t = ke(Et(At), zT), e = ke(vt({ shared: t }), jT); - return t.ServiceRegistry.register(e), e; -} -function Wt(t) { - const e = UT(), r = e.serializer.JsonSerializer.deserialize(t); - return e.shared.workspace.LangiumDocumentFactory.fromModel(r, ft.parse(`memory:/${r.name ?? "grammar"}.langium`)), r; -} -var qT = Object.defineProperty, _ = (t, e) => qT(t, "name", { value: e, configurable: !0 }), vl; -((t) => { - t.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: /\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/ - }; -})(vl || (vl = {})); -var El; -((t) => { - t.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])?/ - }; -})(El || (El = {})); -var Al; -((t) => { - t.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]*/ - }; -})(Al || (Al = {})); -var $l; -((t) => { - t.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]*/ - }; -})($l || ($l = {})); -var Cl; -((t) => { - t.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]*/ - }; -})(Cl || (Cl = {})); -var Sl; -((t) => { - t.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]*/ - }; -})(Sl || (Sl = {})); -var kl; -((t) => { - t.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: /"[^"]*"|'[^']*'/ - }; -})(kl || (kl = {})); -var wl; -((t) => { - t.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]*|)/, - INDENTATION: /[ \t]{1,}/, - WS: /[ \t]+/, - ML_COMMENT: /\%\%[^\n]*/, - NL: /\r?\n/, - STRING2: /"[^"]*"|'[^']*'/ - }; -})(wl || (wl = {})); -var bl; -((t) => { - t.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]*/ - }; -})(bl || (bl = {})); -({ - ...vl.Terminals, - ...El.Terminals, - ...Al.Terminals, - ...$l.Terminals, - ...Cl.Terminals, - ...Sl.Terminals, - ...wl.Terminals, - ...kl.Terminals, - ...bl.Terminals -}); -var ia = { - $type: "Accelerator", - name: "name", - x: "x", - y: "y" -}, aa = { - $type: "Anchor", - evolution: "evolution", - name: "name", - visibility: "visibility" -}, Hn = { - $type: "Annotation", - number: "number", - text: "text", - x: "x", - y: "y" -}, Ps = { - $type: "Annotations", - x: "x", - y: "y" -}, Lt = { - $type: "Architecture", - accDescr: "accDescr", - accTitle: "accTitle", - edges: "edges", - groups: "groups", - junctions: "junctions", - services: "services", - title: "title" -}; -function BT(t) { - return nt.isInstance(t, Lt.$type); -} -_(BT, "isArchitecture"); -var sa = { - $type: "Axis", - label: "label", - name: "name" -}, wa = { - $type: "Branch", - name: "name", - order: "order" -}; -function WT(t) { - return nt.isInstance(t, wa.$type); -} -_(WT, "isBranch"); -var zu = { - $type: "Checkout", - branch: "branch" -}, oa = { - $type: "CherryPicking", - id: "id", - parent: "parent", - tags: "tags" -}, Os = { - $type: "ClassDefStatement", - className: "className", - styleText: "styleText" -}, Yr = { - $type: "Commit", - id: "id", - message: "message", - tags: "tags", - type: "type" -}; -function KT(t) { - return nt.isInstance(t, Yr.$type); -} -_(KT, "isCommit"); -var mr = { - $type: "Component", - decorator: "decorator", - evolution: "evolution", - inertia: "inertia", - label: "label", - name: "name", - visibility: "visibility" -}, la = { - $type: "Curve", - entries: "entries", - label: "label", - name: "name" -}, ca = { - $type: "Deaccelerator", - name: "name", - x: "x", - y: "y" -}, Uu = { - $type: "Decorator", - strategy: "strategy" -}, Gr = { - $type: "Direction", - accDescr: "accDescr", - accTitle: "accTitle", - dir: "dir", - statements: "statements", - title: "title" -}, ht = { - $type: "Edge", - lhsDir: "lhsDir", - lhsGroup: "lhsGroup", - lhsId: "lhsId", - lhsInto: "lhsInto", - rhsDir: "rhsDir", - rhsGroup: "rhsGroup", - rhsId: "rhsId", - rhsInto: "rhsInto", - title: "title" -}, Ls = { - $type: "Entry", - axis: "axis", - value: "value" -}, qu = { - $type: "Evolution", - stages: "stages" -}, ua = { - $type: "EvolutionStage", - boundary: "boundary", - name: "name", - secondName: "secondName" -}, xs = { - $type: "Evolve", - component: "component", - target: "target" -}, Ar = { - $type: "GitGraph", - accDescr: "accDescr", - accTitle: "accTitle", - statements: "statements", - title: "title" -}; -function VT(t) { - return nt.isInstance(t, Ar.$type); -} -_(VT, "isGitGraph"); -var Xn = { - $type: "Group", - icon: "icon", - id: "id", - in: "in", - title: "title" -}, oi = { - $type: "Info", - accDescr: "accDescr", - accTitle: "accTitle", - title: "title" -}; -function HT(t) { - return nt.isInstance(t, oi.$type); -} -_(HT, "isInfo"); -var Yn = { - $type: "Item", - classSelector: "classSelector", - name: "name" -}, Ds = { - $type: "Junction", - id: "id", - in: "in" -}, Jn = { - $type: "Label", - negX: "negX", - negY: "negY", - offsetX: "offsetX", - offsetY: "offsetY" -}, fa = { - $type: "Leaf", - classSelector: "classSelector", - name: "name", - value: "value" -}, gr = { - $type: "Link", - arrow: "arrow", - from: "from", - fromPort: "fromPort", - linkLabel: "linkLabel", - to: "to", - toPort: "toPort" -}, Jr = { - $type: "Merge", - branch: "branch", - id: "id", - tags: "tags", - type: "type" -}; -function XT(t) { - return nt.isInstance(t, Jr.$type); -} -_(XT, "isMerge"); -var da = { - $type: "Note", - evolution: "evolution", - text: "text", - visibility: "visibility" -}, Ms = { - $type: "Option", - name: "name", - value: "value" -}, Zr = { - $type: "Packet", - accDescr: "accDescr", - accTitle: "accTitle", - blocks: "blocks", - title: "title" -}; -function YT(t) { - return nt.isInstance(t, Zr.$type); -} -_(YT, "isPacket"); -var Qr = { - $type: "PacketBlock", - bits: "bits", - end: "end", - label: "label", - start: "start" -}; -function JT(t) { - return nt.isInstance(t, Qr.$type); -} -_(JT, "isPacketBlock"); -var $r = { - $type: "Pie", - accDescr: "accDescr", - accTitle: "accTitle", - sections: "sections", - showData: "showData", - title: "title" -}; -function ZT(t) { - return nt.isInstance(t, $r.$type); -} -_(ZT, "isPie"); -var ba = { - $type: "PieSection", - label: "label", - value: "value" -}; -function QT(t) { - return nt.isInstance(t, ba.$type); -} -_(QT, "isPieSection"); -var Fs = { - $type: "Pipeline", - components: "components", - parent: "parent" -}, ha = { - $type: "PipelineComponent", - evolution: "evolution", - label: "label", - name: "name" -}, yr = { - $type: "Radar", - accDescr: "accDescr", - accTitle: "accTitle", - axes: "axes", - curves: "curves", - options: "options", - title: "title" -}, Gs = { - $type: "Section", - classSelector: "classSelector", - name: "name" -}, jr = { - $type: "Service", - icon: "icon", - iconText: "iconText", - id: "id", - in: "in", - title: "title" -}, js = { - $type: "Size", - height: "height", - width: "width" -}, zr = { - $type: "Statement" -}, en = { - $type: "Treemap", - accDescr: "accDescr", - accTitle: "accTitle", - title: "title", - TreemapRows: "TreemapRows" -}; -function eR(t) { - return nt.isInstance(t, en.$type); -} -_(eR, "isTreemap"); -var zs = { - $type: "TreemapRow", - indent: "indent", - item: "item" -}, Us = { - $type: "TreeNode", - indent: "indent", - name: "name" -}, Zn = { - $type: "TreeView", - accDescr: "accDescr", - accTitle: "accTitle", - nodes: "nodes", - title: "title" -}, Le = { - $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 tR(t) { - return nt.isInstance(t, Le.$type); -} -_(tR, "isWardley"); -var Od = class extends Qu { - constructor() { - super(...arguments), this.types = { - Accelerator: { - name: ia.$type, - properties: { - name: { - name: ia.name - }, - x: { - name: ia.x - }, - y: { - name: ia.y - } - }, - superTypes: [] - }, - Anchor: { - name: aa.$type, - properties: { - evolution: { - name: aa.evolution - }, - name: { - name: aa.name - }, - visibility: { - name: aa.visibility - } - }, - superTypes: [] - }, - Annotation: { - name: Hn.$type, - properties: { - number: { - name: Hn.number - }, - text: { - name: Hn.text - }, - x: { - name: Hn.x - }, - y: { - name: Hn.y - } - }, - superTypes: [] - }, - Annotations: { - name: Ps.$type, - properties: { - x: { - name: Ps.x - }, - y: { - name: Ps.y - } - }, - superTypes: [] - }, - Architecture: { - name: Lt.$type, - properties: { - accDescr: { - name: Lt.accDescr - }, - accTitle: { - name: Lt.accTitle - }, - edges: { - name: Lt.edges, - defaultValue: [] - }, - groups: { - name: Lt.groups, - defaultValue: [] - }, - junctions: { - name: Lt.junctions, - defaultValue: [] - }, - services: { - name: Lt.services, - defaultValue: [] - }, - title: { - name: Lt.title - } - }, - superTypes: [] - }, - Axis: { - name: sa.$type, - properties: { - label: { - name: sa.label - }, - name: { - name: sa.name - } - }, - superTypes: [] - }, - Branch: { - name: wa.$type, - properties: { - name: { - name: wa.name - }, - order: { - name: wa.order - } - }, - superTypes: [zr.$type] - }, - Checkout: { - name: zu.$type, - properties: { - branch: { - name: zu.branch - } - }, - superTypes: [zr.$type] - }, - CherryPicking: { - name: oa.$type, - properties: { - id: { - name: oa.id - }, - parent: { - name: oa.parent - }, - tags: { - name: oa.tags, - defaultValue: [] - } - }, - superTypes: [zr.$type] - }, - ClassDefStatement: { - name: Os.$type, - properties: { - className: { - name: Os.className - }, - styleText: { - name: Os.styleText - } - }, - superTypes: [] - }, - Commit: { - name: Yr.$type, - properties: { - id: { - name: Yr.id - }, - message: { - name: Yr.message - }, - tags: { - name: Yr.tags, - defaultValue: [] - }, - type: { - name: Yr.type - } - }, - superTypes: [zr.$type] - }, - Component: { - name: mr.$type, - properties: { - decorator: { - name: mr.decorator - }, - evolution: { - name: mr.evolution - }, - inertia: { - name: mr.inertia, - defaultValue: !1 - }, - label: { - name: mr.label - }, - name: { - name: mr.name - }, - visibility: { - name: mr.visibility - } - }, - superTypes: [] - }, - Curve: { - name: la.$type, - properties: { - entries: { - name: la.entries, - defaultValue: [] - }, - label: { - name: la.label - }, - name: { - name: la.name - } - }, - superTypes: [] - }, - Deaccelerator: { - name: ca.$type, - properties: { - name: { - name: ca.name - }, - x: { - name: ca.x - }, - y: { - name: ca.y - } - }, - superTypes: [] - }, - Decorator: { - name: Uu.$type, - properties: { - strategy: { - name: Uu.strategy - } - }, - superTypes: [] - }, - Direction: { - name: Gr.$type, - properties: { - accDescr: { - name: Gr.accDescr - }, - accTitle: { - name: Gr.accTitle - }, - dir: { - name: Gr.dir - }, - statements: { - name: Gr.statements, - defaultValue: [] - }, - title: { - name: Gr.title - } - }, - superTypes: [Ar.$type] - }, - Edge: { - name: ht.$type, - properties: { - lhsDir: { - name: ht.lhsDir - }, - lhsGroup: { - name: ht.lhsGroup, - defaultValue: !1 - }, - lhsId: { - name: ht.lhsId - }, - lhsInto: { - name: ht.lhsInto, - defaultValue: !1 - }, - rhsDir: { - name: ht.rhsDir - }, - rhsGroup: { - name: ht.rhsGroup, - defaultValue: !1 - }, - rhsId: { - name: ht.rhsId - }, - rhsInto: { - name: ht.rhsInto, - defaultValue: !1 - }, - title: { - name: ht.title - } - }, - superTypes: [] - }, - Entry: { - name: Ls.$type, - properties: { - axis: { - name: Ls.axis, - referenceType: sa.$type - }, - value: { - name: Ls.value - } - }, - superTypes: [] - }, - Evolution: { - name: qu.$type, - properties: { - stages: { - name: qu.stages, - defaultValue: [] - } - }, - superTypes: [] - }, - EvolutionStage: { - name: ua.$type, - properties: { - boundary: { - name: ua.boundary - }, - name: { - name: ua.name - }, - secondName: { - name: ua.secondName - } - }, - superTypes: [] - }, - Evolve: { - name: xs.$type, - properties: { - component: { - name: xs.component - }, - target: { - name: xs.target - } - }, - superTypes: [] - }, - GitGraph: { - name: Ar.$type, - properties: { - accDescr: { - name: Ar.accDescr - }, - accTitle: { - name: Ar.accTitle - }, - statements: { - name: Ar.statements, - defaultValue: [] - }, - title: { - name: Ar.title - } - }, - superTypes: [] - }, - Group: { - name: Xn.$type, - properties: { - icon: { - name: Xn.icon - }, - id: { - name: Xn.id - }, - in: { - name: Xn.in - }, - title: { - name: Xn.title - } - }, - superTypes: [] - }, - Info: { - name: oi.$type, - properties: { - accDescr: { - name: oi.accDescr - }, - accTitle: { - name: oi.accTitle - }, - title: { - name: oi.title - } - }, - superTypes: [] - }, - Item: { - name: Yn.$type, - properties: { - classSelector: { - name: Yn.classSelector - }, - name: { - name: Yn.name - } - }, - superTypes: [] - }, - Junction: { - name: Ds.$type, - properties: { - id: { - name: Ds.id - }, - in: { - name: Ds.in - } - }, - superTypes: [] - }, - Label: { - name: Jn.$type, - properties: { - negX: { - name: Jn.negX, - defaultValue: !1 - }, - negY: { - name: Jn.negY, - defaultValue: !1 - }, - offsetX: { - name: Jn.offsetX - }, - offsetY: { - name: Jn.offsetY - } - }, - superTypes: [] - }, - Leaf: { - name: fa.$type, - properties: { - classSelector: { - name: fa.classSelector - }, - name: { - name: fa.name - }, - value: { - name: fa.value - } - }, - superTypes: [Yn.$type] - }, - Link: { - name: gr.$type, - properties: { - arrow: { - name: gr.arrow - }, - from: { - name: gr.from - }, - fromPort: { - name: gr.fromPort - }, - linkLabel: { - name: gr.linkLabel - }, - to: { - name: gr.to - }, - toPort: { - name: gr.toPort - } - }, - superTypes: [] - }, - Merge: { - name: Jr.$type, - properties: { - branch: { - name: Jr.branch - }, - id: { - name: Jr.id - }, - tags: { - name: Jr.tags, - defaultValue: [] - }, - type: { - name: Jr.type - } - }, - superTypes: [zr.$type] - }, - Note: { - name: da.$type, - properties: { - evolution: { - name: da.evolution - }, - text: { - name: da.text - }, - visibility: { - name: da.visibility - } - }, - superTypes: [] - }, - Option: { - name: Ms.$type, - properties: { - name: { - name: Ms.name - }, - value: { - name: Ms.value, - defaultValue: !1 - } - }, - superTypes: [] - }, - Packet: { - name: Zr.$type, - properties: { - accDescr: { - name: Zr.accDescr - }, - accTitle: { - name: Zr.accTitle - }, - blocks: { - name: Zr.blocks, - defaultValue: [] - }, - title: { - name: Zr.title - } - }, - superTypes: [] - }, - PacketBlock: { - name: Qr.$type, - properties: { - bits: { - name: Qr.bits - }, - end: { - name: Qr.end - }, - label: { - name: Qr.label - }, - start: { - name: Qr.start - } - }, - superTypes: [] - }, - Pie: { - name: $r.$type, - properties: { - accDescr: { - name: $r.accDescr - }, - accTitle: { - name: $r.accTitle - }, - sections: { - name: $r.sections, - defaultValue: [] - }, - showData: { - name: $r.showData, - defaultValue: !1 - }, - title: { - name: $r.title - } - }, - superTypes: [] - }, - PieSection: { - name: ba.$type, - properties: { - label: { - name: ba.label - }, - value: { - name: ba.value - } - }, - superTypes: [] - }, - Pipeline: { - name: Fs.$type, - properties: { - components: { - name: Fs.components, - defaultValue: [] - }, - parent: { - name: Fs.parent - } - }, - superTypes: [] - }, - PipelineComponent: { - name: ha.$type, - properties: { - evolution: { - name: ha.evolution - }, - label: { - name: ha.label - }, - name: { - name: ha.name - } - }, - superTypes: [] - }, - Radar: { - name: yr.$type, - properties: { - accDescr: { - name: yr.accDescr - }, - accTitle: { - name: yr.accTitle - }, - axes: { - name: yr.axes, - defaultValue: [] - }, - curves: { - name: yr.curves, - defaultValue: [] - }, - options: { - name: yr.options, - defaultValue: [] - }, - title: { - name: yr.title - } - }, - superTypes: [] - }, - Section: { - name: Gs.$type, - properties: { - classSelector: { - name: Gs.classSelector - }, - name: { - name: Gs.name - } - }, - superTypes: [Yn.$type] - }, - Service: { - name: jr.$type, - properties: { - icon: { - name: jr.icon - }, - iconText: { - name: jr.iconText - }, - id: { - name: jr.id - }, - in: { - name: jr.in - }, - title: { - name: jr.title - } - }, - superTypes: [] - }, - Size: { - name: js.$type, - properties: { - height: { - name: js.height - }, - width: { - name: js.width - } - }, - superTypes: [] - }, - Statement: { - name: zr.$type, - properties: {}, - superTypes: [] - }, - TreeNode: { - name: Us.$type, - properties: { - indent: { - name: Us.indent - }, - name: { - name: Us.name - } - }, - superTypes: [] - }, - TreeView: { - name: Zn.$type, - properties: { - accDescr: { - name: Zn.accDescr - }, - accTitle: { - name: Zn.accTitle - }, - nodes: { - name: Zn.nodes, - defaultValue: [] - }, - title: { - name: Zn.title - } - }, - superTypes: [] - }, - Treemap: { - name: en.$type, - properties: { - accDescr: { - name: en.accDescr - }, - accTitle: { - name: en.accTitle - }, - title: { - name: en.title - }, - TreemapRows: { - name: en.TreemapRows, - defaultValue: [] - } - }, - superTypes: [] - }, - TreemapRow: { - name: zs.$type, - properties: { - indent: { - name: zs.indent - }, - item: { - name: zs.item - } - }, - superTypes: [] - }, - Wardley: { - name: Le.$type, - properties: { - accDescr: { - name: Le.accDescr - }, - accelerators: { - name: Le.accelerators, - defaultValue: [] - }, - accTitle: { - name: Le.accTitle - }, - anchors: { - name: Le.anchors, - defaultValue: [] - }, - annotation: { - name: Le.annotation, - defaultValue: [] - }, - annotations: { - name: Le.annotations, - defaultValue: [] - }, - components: { - name: Le.components, - defaultValue: [] - }, - deaccelerators: { - name: Le.deaccelerators, - defaultValue: [] - }, - evolution: { - name: Le.evolution - }, - evolves: { - name: Le.evolves, - defaultValue: [] - }, - links: { - name: Le.links, - defaultValue: [] - }, - notes: { - name: Le.notes, - defaultValue: [] - }, - pipelines: { - name: Le.pipelines, - defaultValue: [] - }, - size: { - name: Le.size - }, - title: { - name: Le.title - } - }, - superTypes: [] - } - }; - } - static { - _(this, "MermaidAstReflection"); - } -}, nt = new Od(), Bu, rR = /* @__PURE__ */ _(() => Bu ?? (Bu = Wt(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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":[]}}]},"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@9"},"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@9"},"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@11"},"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@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"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@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@23"},"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@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"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":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)), "ArchitectureGrammarGrammar"), Wu, nR = /* @__PURE__ */ _(() => Wu ?? (Wu = Wt(`{"$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"), Ku, iR = /* @__PURE__ */ _(() => Ku ?? (Ku = Wt(`{"$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"), Vu, aR = /* @__PURE__ */ _(() => Vu ?? (Vu = Wt(`{"$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"), Hu, sR = /* @__PURE__ */ _(() => Hu ?? (Hu = Wt(`{"$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"), Xu, oR = /* @__PURE__ */ _(() => Xu ?? (Xu = Wt(`{"$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"), Yu, lR = /* @__PURE__ */ _(() => Yu ?? (Yu = Wt(`{"$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"), Ju, cR = /* @__PURE__ */ _(() => Ju ?? (Ju = Wt(`{"$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@9"},"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":"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":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@9"}}},"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 * Converted from treemap 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 * treeView declaration.\\n */"}`)), "TreeViewGrammarGrammar"), Zu, uR = /* @__PURE__ */ _(() => Zu ?? (Zu = Wt(`{"$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"), fR = { - languageId: "architecture", - fileExtensions: [".mmd", ".mermaid"], - caseInsensitive: !1, - mode: "production" -}, dR = { - languageId: "gitGraph", - fileExtensions: [".mmd", ".mermaid"], - caseInsensitive: !1, - mode: "production" -}, hR = { - languageId: "info", - fileExtensions: [".mmd", ".mermaid"], - caseInsensitive: !1, - mode: "production" -}, pR = { - languageId: "packet", - fileExtensions: [".mmd", ".mermaid"], - caseInsensitive: !1, - mode: "production" -}, mR = { - languageId: "pie", - fileExtensions: [".mmd", ".mermaid"], - caseInsensitive: !1, - mode: "production" -}, gR = { - languageId: "radar", - fileExtensions: [".mmd", ".mermaid"], - caseInsensitive: !1, - mode: "production" -}, yR = { - languageId: "treemap", - fileExtensions: [".mmd", ".mermaid"], - caseInsensitive: !1, - mode: "production" -}, TR = { - languageId: "treeView", - fileExtensions: [".mmd", ".mermaid"], - caseInsensitive: !1, - mode: "production" -}, RR = { - languageId: "wardley", - fileExtensions: [".mmd", ".mermaid"], - caseInsensitive: !1, - mode: "production" -}, Kt = { - AstReflection: /* @__PURE__ */ _(() => new Od(), "AstReflection") -}, vR = { - Grammar: /* @__PURE__ */ _(() => rR(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ _(() => fR, "LanguageMetaData"), - parser: {} -}, ER = { - Grammar: /* @__PURE__ */ _(() => nR(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ _(() => dR, "LanguageMetaData"), - parser: {} -}, AR = { - Grammar: /* @__PURE__ */ _(() => iR(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ _(() => hR, "LanguageMetaData"), - parser: {} -}, $R = { - Grammar: /* @__PURE__ */ _(() => aR(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ _(() => pR, "LanguageMetaData"), - parser: {} -}, CR = { - Grammar: /* @__PURE__ */ _(() => sR(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ _(() => mR, "LanguageMetaData"), - parser: {} -}, SR = { - Grammar: /* @__PURE__ */ _(() => oR(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ _(() => gR, "LanguageMetaData"), - parser: {} -}, kR = { - Grammar: /* @__PURE__ */ _(() => lR(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ _(() => yR, "LanguageMetaData"), - parser: {} -}, wR = { - Grammar: /* @__PURE__ */ _(() => cR(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ _(() => TR, "LanguageMetaData"), - parser: {} -}, bR = { - Grammar: /* @__PURE__ */ _(() => uR(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ _(() => RR, "LanguageMetaData"), - parser: {} -}, NR = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, _R = /accTitle[\t ]*:([^\n\r]*)/, IR = /title([\t ][^\n\r]*|)/, PR = { - ACC_DESCR: NR, - ACC_TITLE: _R, - TITLE: IR -}, yn = class extends Td { - static { - _(this, "AbstractMermaidValueConverter"); - } - runConverter(t, e, r) { - let n = this.runCommonConverter(t, e, r); - return n === void 0 && (n = this.runCustomConverter(t, e, r)), n === void 0 ? super.runConverter(t, e, r) : n; - } - runCommonConverter(t, e, r) { - const n = PR[t.name]; - if (n === void 0) - return; - const i = n.exec(e); - if (i !== null) { - if (i[1] !== void 0) - return i[1].trim().replace(/[\t ]{2,}/gm, " "); - if (i[2] !== void 0) - return i[2].replace(/^\s*/gm, "").replace(/\s+$/gm, "").replace(/[\t ]{2,}/gm, " ").replace(/[\n\r]{2,}/gm, ` -`); - } - } -}, ds = class extends yn { - static { - _(this, "CommonValueConverter"); - } - runCustomConverter(t, e, r) { - } -}, Vt = class extends yd { - static { - _(this, "AbstractMermaidTokenBuilder"); - } - constructor(t) { - super(), this.keywords = new Set(t); - } - buildKeywordTokens(t, e, r) { - const n = super.buildKeywordTokens(t, e, r); - return n.forEach((i) => { - this.keywords.has(i.name) && i.PATTERN !== void 0 && (i.PATTERN = new RegExp(i.PATTERN.toString() + "(?:(?=%%)|(?!\\S))")); - }), n; - } -}; -(class extends Vt { - static { - _(this, "CommonTokenBuilder"); - } -}); -var OR = class extends Vt { - static { - _(this, "TreemapTokenBuilder"); - } - constructor() { - super(["treemap"]); - } -}, LR = /classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/, xR = class extends yn { - static { - _(this, "TreemapValueConverter"); - } - runCustomConverter(t, e, r) { - if (t.name === "NUMBER2") - return parseFloat(e.replace(/,/g, "")); - if (t.name === "SEPARATOR") - return e.substring(1, e.length - 1); - if (t.name === "STRING2") - return e.substring(1, e.length - 1); - if (t.name === "INDENTATION") - return e.length; - if (t.name === "ClassDef") { - if (typeof e != "string") - return e; - const n = LR.exec(e); - if (n) - return { - $type: "ClassDefStatement", - className: n[1], - styleText: n[2] || void 0 - }; - } - } -}; -function Ld(t) { - const e = t.validation.TreemapValidator, r = t.validation.ValidationRegistry; - if (r) { - const n = { - Treemap: e.checkSingleRoot.bind(e) - // Remove unused validation for TreemapRow - }; - r.register(n, e); - } -} -_(Ld, "registerValidationChecks"); -var DR = class { - static { - _(this, "TreemapValidator"); - } - /** - * Validates that a treemap has only one root node. - * A root node is defined as a node that has no indentation. - */ - checkSingleRoot(t, e) { - let r; - for (const n of t.TreemapRows) - n.item && (r === void 0 && // Check if this is a root node (no indentation) - n.indent === void 0 ? r = 0 : n.indent === void 0 ? e("error", "Multiple root nodes are not allowed in a treemap.", { - node: n, - property: "item" - }) : r !== void 0 && r >= parseInt(n.indent, 10) && e("error", "Multiple root nodes are not allowed in a treemap.", { - node: n, - property: "item" - })); - } -}, MR = { - parser: { - TokenBuilder: /* @__PURE__ */ _(() => new OR(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ _(() => new xR(), "ValueConverter") - }, - validation: { - TreemapValidator: /* @__PURE__ */ _(() => new DR(), "TreemapValidator") - } -}; -function FR(t = At) { - const e = ke( - Et(t), - Kt - ), r = ke( - vt({ shared: e }), - kR, - MR - ); - return e.ServiceRegistry.register(r), Ld(r), { shared: e, Treemap: r }; -} -_(FR, "createTreemapServices"); -var GR = class extends yn { - static { - _(this, "WardleyValueConverter"); - } - runCustomConverter(t, e, r) { - switch (t.name.toUpperCase()) { - case "LINK_LABEL": - return e.substring(1).trim(); - default: - return; - } - } -}, jR = { - parser: { - ValueConverter: /* @__PURE__ */ _(() => new GR(), "ValueConverter") - } -}; -function zR(t = At) { - const e = ke( - Et(t), - Kt - ), r = ke( - vt({ shared: e }), - bR, - jR - ); - return e.ServiceRegistry.register(r), { shared: e, Wardley: r }; -} -_(zR, "createWardleyServices"); -var UR = class extends Vt { - static { - _(this, "GitGraphTokenBuilder"); - } - constructor() { - super(["gitGraph"]); - } -}, qR = { - parser: { - TokenBuilder: /* @__PURE__ */ _(() => new UR(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ _(() => new ds(), "ValueConverter") - } -}; -function BR(t = At) { - const e = ke( - Et(t), - Kt - ), r = ke( - vt({ shared: e }), - ER, - qR - ); - return e.ServiceRegistry.register(r), { shared: e, GitGraph: r }; -} -_(BR, "createGitGraphServices"); -var WR = class extends Vt { - static { - _(this, "InfoTokenBuilder"); - } - constructor() { - super(["info", "showInfo"]); - } -}, KR = { - parser: { - TokenBuilder: /* @__PURE__ */ _(() => new WR(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ _(() => new ds(), "ValueConverter") - } -}; -function VR(t = At) { - const e = ke( - Et(t), - Kt - ), r = ke( - vt({ shared: e }), - AR, - KR - ); - return e.ServiceRegistry.register(r), { shared: e, Info: r }; -} -_(VR, "createInfoServices"); -var HR = class extends Vt { - static { - _(this, "PacketTokenBuilder"); - } - constructor() { - super(["packet"]); - } -}, XR = { - parser: { - TokenBuilder: /* @__PURE__ */ _(() => new HR(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ _(() => new ds(), "ValueConverter") - } -}; -function YR(t = At) { - const e = ke( - Et(t), - Kt - ), r = ke( - vt({ shared: e }), - $R, - XR - ); - return e.ServiceRegistry.register(r), { shared: e, Packet: r }; -} -_(YR, "createPacketServices"); -var JR = class extends Vt { - static { - _(this, "PieTokenBuilder"); - } - constructor() { - super(["pie", "showData"]); - } -}, ZR = class extends yn { - static { - _(this, "PieValueConverter"); - } - runCustomConverter(t, e, r) { - if (t.name === "PIE_SECTION_LABEL") - return e.replace(/"/g, "").trim(); - } -}, QR = { - parser: { - TokenBuilder: /* @__PURE__ */ _(() => new JR(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ _(() => new ZR(), "ValueConverter") - } -}; -function ev(t = At) { - const e = ke( - Et(t), - Kt - ), r = ke( - vt({ shared: e }), - CR, - QR - ); - return e.ServiceRegistry.register(r), { shared: e, Pie: r }; -} -_(ev, "createPieServices"); -var tv = class extends yn { - static { - _(this, "TreeViewValueConverter"); - } - runCustomConverter(t, e, r) { - if (t.name === "INDENTATION") - return e?.length || 0; - if (t.name === "STRING2") - return e.substring(1, e.length - 1); - } -}, rv = class extends Vt { - static { - _(this, "TreeViewTokenBuilder"); - } - constructor() { - super(["treeView-beta"]); - } -}, nv = { - parser: { - TokenBuilder: /* @__PURE__ */ _(() => new rv(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ _(() => new tv(), "ValueConverter") - } -}; -function iv(t = At) { - const e = ke( - Et(t), - Kt - ), r = ke( - vt({ shared: e }), - wR, - nv - ); - return e.ServiceRegistry.register(r), { shared: e, TreeView: r }; -} -_(iv, "createTreeViewServices"); -var av = class extends Vt { - static { - _(this, "ArchitectureTokenBuilder"); - } - constructor() { - super(["architecture"]); - } -}, sv = class extends yn { - static { - _(this, "ArchitectureValueConverter"); - } - runCustomConverter(t, e, r) { - if (t.name === "ARCH_ICON") - return e.replace(/[()]/g, "").trim(); - if (t.name === "ARCH_TEXT_ICON") - return e.replace(/["()]/g, ""); - if (t.name === "ARCH_TITLE") { - let n = e.replace(/^\[|]$/g, "").trim(); - return (n.startsWith('"') && n.endsWith('"') || n.startsWith("'") && n.endsWith("'")) && (n = n.slice(1, -1), n = n.replace(/\\"/g, '"').replace(/\\'/g, "'")), n.trim(); - } - } -}, ov = { - parser: { - TokenBuilder: /* @__PURE__ */ _(() => new av(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ _(() => new sv(), "ValueConverter") - } -}; -function lv(t = At) { - const e = ke( - Et(t), - Kt - ), r = ke( - vt({ shared: e }), - vR, - ov - ); - return e.ServiceRegistry.register(r), { shared: e, Architecture: r }; -} -_(lv, "createArchitectureServices"); -var cv = class extends Vt { - static { - _(this, "RadarTokenBuilder"); - } - constructor() { - super(["radar-beta"]); - } -}, uv = { - parser: { - TokenBuilder: /* @__PURE__ */ _(() => new cv(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ _(() => new ds(), "ValueConverter") - } -}; -function fv(t = At) { - const e = ke( - Et(t), - Kt - ), r = ke( - vt({ shared: e }), - SR, - uv - ); - return e.ServiceRegistry.register(r), { shared: e, Radar: r }; -} -_(fv, "createRadarServices"); -var lt = {}, dv = { - info: /* @__PURE__ */ _(async () => { - const { createInfoServices: t } = await import("./info-OMHHGYJF-Urp_Ase5.js"), e = t().Info.parser.LangiumParser; - lt.info = e; - }, "info"), - packet: /* @__PURE__ */ _(async () => { - const { createPacketServices: t } = await import("./packet-4T2RLAQJ-CT04dID4.js"), e = t().Packet.parser.LangiumParser; - lt.packet = e; - }, "packet"), - pie: /* @__PURE__ */ _(async () => { - const { createPieServices: t } = await import("./pie-ZZUOXDRM-D01fyR4D.js"), e = t().Pie.parser.LangiumParser; - lt.pie = e; - }, "pie"), - treeView: /* @__PURE__ */ _(async () => { - const { createTreeViewServices: t } = await import("./treeView-SZITEDCU-BnPSNsii.js"), e = t().TreeView.parser.LangiumParser; - lt.treeView = e; - }, "treeView"), - architecture: /* @__PURE__ */ _(async () => { - const { createArchitectureServices: t } = await import("./architecture-YZFGNWBL-BifDOE8a.js"), e = t().Architecture.parser.LangiumParser; - lt.architecture = e; - }, "architecture"), - gitGraph: /* @__PURE__ */ _(async () => { - const { createGitGraphServices: t } = await import("./gitGraph-7Q5UKJZL-B_zctUCy.js"), e = t().GitGraph.parser.LangiumParser; - lt.gitGraph = e; - }, "gitGraph"), - radar: /* @__PURE__ */ _(async () => { - const { createRadarServices: t } = await import("./radar-PYXPWWZC-cZtFSkue.js"), e = t().Radar.parser.LangiumParser; - lt.radar = e; - }, "radar"), - treemap: /* @__PURE__ */ _(async () => { - const { createTreemapServices: t } = await import("./treemap-W4RFUUIX-DQbHtRSM.js"), e = t().Treemap.parser.LangiumParser; - lt.treemap = e; - }, "treemap"), - wardley: /* @__PURE__ */ _(async () => { - const { createWardleyServices: t } = await import("./wardley-RL74JXVD-DAdv8G0H.js"), e = t().Wardley.parser.LangiumParser; - lt.wardley = e; - }, "wardley") -}; -async function hv(t, e) { - const r = dv[t]; - if (!r) - throw new Error(`Unknown diagram type: ${t}`); - lt[t] || await r(); - const i = lt[t].parse(e); - if (i.lexerErrors.length > 0 || i.parserErrors.length > 0) - throw new pv(i); - return i.value; -} -_(hv, "parse"); -var pv = class extends Error { - constructor(t) { - const e = t.lexerErrors.map((n) => { - const i = n.line !== void 0 && !isNaN(n.line) ? n.line : "?", a = n.column !== void 0 && !isNaN(n.column) ? n.column : "?"; - return `Lexer error on line ${i}, column ${a}: ${n.message}`; - }).join(` -`), r = t.parserErrors.map((n) => { - const i = n.token.startLine !== void 0 && !isNaN(n.token.startLine) ? n.token.startLine : "?", a = n.token.startColumn !== void 0 && !isNaN(n.token.startColumn) ? n.token.startColumn : "?"; - return `Parse error on line ${i}, column ${a}: ${n.message}`; - }).join(` -`); - super(`Parsing failed: ${e} ${r}`), this.result = t; - } - static { - _(this, "MermaidParseError"); - } -}; -export { - ov as A, - qR as G, - KR as I, - XR as P, - uv as R, - nv as T, - jR as W, - YR as a, - ev as b, - VR as c, - QR as d, - iv as e, - lv as f, - BR as g, - fv as h, - FR as i, - MR as j, - zR as k, - hv as p -}; diff --git a/src/wc-content-kit/public/mermaid/mermaid.core-Jw3znkh4.js b/src/wc-content-kit/public/mermaid/mermaid.core-FRDjOodn.js similarity index 59% rename from src/wc-content-kit/public/mermaid/mermaid.core-Jw3znkh4.js rename to src/wc-content-kit/public/mermaid/mermaid.core-FRDjOodn.js index 0f72cba..8e7c0cb 100644 --- a/src/wc-content-kit/public/mermaid/mermaid.core-Jw3znkh4.js +++ b/src/wc-content-kit/public/mermaid/mermaid.core-FRDjOodn.js @@ -1,260 +1,260 @@ -import { g as Ty } from "./index.js"; -var _s = { exports: {} }, wy = _s.exports, jl; -function Sy() { - return jl || (jl = 1, (function(e, t) { +import { g as Nm } from "./index.js"; +var gs = { exports: {} }, qm = gs.exports, vl; +function Wm() { + return vl || (vl = 1, (function(e, t) { (function(r, i) { e.exports = i(); - })(wy, (function() { - var r = 1e3, i = 6e4, s = 36e5, o = "millisecond", a = "second", n = "minute", l = "hour", c = "day", h = "week", u = "month", p = "quarter", d = "year", g = "date", m = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|Y{1,4}|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, b = { 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(I) { - var F = ["th", "st", "nd", "rd"], L = I % 100; - return "[" + I + (F[(L - 20) % 10] || F[L] || F[0]) + "]"; - } }, k = function(I, F, L) { - var E = String(I); - return !E || E.length >= F ? I : "" + Array(F + 1 - E.length).join(L) + I; - }, w = { s: k, z: function(I) { - var F = -I.utcOffset(), L = Math.abs(F), E = Math.floor(L / 60), P = L % 60; - return (F <= 0 ? "+" : "-") + k(E, 2, "0") + ":" + k(P, 2, "0"); - }, m: function I(F, L) { - if (F.date() < L.date()) return -I(L, F); - var E = 12 * (L.year() - F.year()) + (L.month() - F.month()), P = F.clone().add(E, u), H = L - P < 0, Y = F.clone().add(E + (H ? -1 : 1), u); - return +(-(E + (L - P) / (H ? P - Y : Y - P)) || 0); - }, a: function(I) { - return I < 0 ? Math.ceil(I) || 0 : Math.floor(I); - }, p: function(I) { - return { M: u, y: d, w: h, d: c, D: g, h: l, m: n, s: a, ms: o, Q: p }[I] || String(I || "").toLowerCase().replace(/s$/, ""); - }, u: function(I) { - return I === void 0; - } }, S = "en", v = {}; - v[S] = b; - var M = "$isDayjsObject", B = function(I) { - return I instanceof W || !(!I || !I[M]); - }, N = function I(F, L, E) { - var P; + })(qm, (function() { + var r = 1e3, i = 6e4, s = 36e5, o = "millisecond", a = "second", n = "minute", l = "hour", c = "day", h = "week", d = "month", f = "quarter", u = "year", g = "date", m = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|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, b = { 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(M) { + var F = ["th", "st", "nd", "rd"], L = M % 100; + return "[" + M + (F[(L - 20) % 10] || F[L] || F[0]) + "]"; + } }, k = function(M, F, L) { + var E = String(M); + return !E || E.length >= F ? M : "" + Array(F + 1 - E.length).join(L) + M; + }, T = { s: k, z: function(M) { + var F = -M.utcOffset(), L = Math.abs(F), E = Math.floor(L / 60), D = L % 60; + return (F <= 0 ? "+" : "-") + k(E, 2, "0") + ":" + k(D, 2, "0"); + }, m: function M(F, L) { + if (F.date() < L.date()) return -M(L, F); + var E = 12 * (L.year() - F.year()) + (L.month() - F.month()), D = F.clone().add(E, d), z = L - D < 0, Y = F.clone().add(E + (z ? -1 : 1), d); + return +(-(E + (L - D) / (z ? D - Y : Y - D)) || 0); + }, a: function(M) { + return M < 0 ? Math.ceil(M) || 0 : Math.floor(M); + }, p: function(M) { + return { M: d, y: u, w: h, d: c, D: g, h: l, m: n, s: a, ms: o, Q: f }[M] || String(M || "").toLowerCase().replace(/s$/, ""); + }, u: function(M) { + return M === void 0; + } }, S = "en", _ = {}; + _[S] = b; + var A = "$isDayjsObject", v = function(M) { + return M instanceof H || !(!M || !M[A]); + }, q = function M(F, L, E) { + var D; if (!F) return S; if (typeof F == "string") { - var H = F.toLowerCase(); - v[H] && (P = H), L && (v[H] = L, P = H); + var z = F.toLowerCase(); + _[z] && (D = z), L && (_[z] = L, D = z); var Y = F.split("-"); - if (!P && Y.length > 1) return I(Y[0]); + if (!D && Y.length > 1) return M(Y[0]); } else { - var Q = F.name; - v[Q] = F, P = Q; + var lt = F.name; + _[lt] = F, D = lt; } - return !E && P && (S = P), P || !E && S; - }, D = function(I, F) { - if (B(I)) return I.clone(); + return !E && D && (S = D), D || !E && S; + }, I = function(M, F) { + if (v(M)) return M.clone(); var L = typeof F == "object" ? F : {}; - return L.date = I, L.args = arguments, new W(L); - }, O = w; - O.l = N, O.i = B, O.w = function(I, F) { - return D(I, { locale: F.$L, utc: F.$u, x: F.$x, $offset: F.$offset }); + return L.date = M, L.args = arguments, new H(L); + }, R = T; + R.l = q, R.i = v, R.w = function(M, F) { + return I(M, { locale: F.$L, utc: F.$u, x: F.$x, $offset: F.$offset }); }; - var W = (function() { - function I(L) { - this.$L = N(L.locale, null, !0), this.parse(L), this.$x = this.$x || L.x || {}, this[M] = !0; + var H = (function() { + function M(L) { + this.$L = q(L.locale, null, !0), this.parse(L), this.$x = this.$x || L.x || {}, this[A] = !0; } - var F = I.prototype; + var F = M.prototype; return F.parse = function(L) { this.$d = (function(E) { - var P = E.date, H = E.utc; - if (P === null) return /* @__PURE__ */ new Date(NaN); - if (O.u(P)) return /* @__PURE__ */ new Date(); - if (P instanceof Date) return new Date(P); - if (typeof P == "string" && !/Z$/i.test(P)) { - var Y = P.match(y); + var D = E.date, z = E.utc; + if (D === null) return /* @__PURE__ */ new Date(NaN); + if (R.u(D)) return /* @__PURE__ */ new Date(); + if (D instanceof Date) return new Date(D); + if (typeof D == "string" && !/Z$/i.test(D)) { + var Y = D.match(y); if (Y) { - var Q = Y[2] - 1 || 0, dt = (Y[7] || "0").substring(0, 3); - return H ? new Date(Date.UTC(Y[1], Q, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, dt)) : new Date(Y[1], Q, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, dt); + var lt = Y[2] - 1 || 0, pt = (Y[7] || "0").substring(0, 3); + return z ? new Date(Date.UTC(Y[1], lt, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, pt)) : new Date(Y[1], lt, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, pt); } } - return new Date(P); + return new Date(D); })(L), this.init(); }, F.init = function() { var L = this.$d; this.$y = L.getFullYear(), this.$M = L.getMonth(), this.$D = L.getDate(), this.$W = L.getDay(), this.$H = L.getHours(), this.$m = L.getMinutes(), this.$s = L.getSeconds(), this.$ms = L.getMilliseconds(); }, F.$utils = function() { - return O; + return R; }, F.isValid = function() { return this.$d.toString() !== m; }, F.isSame = function(L, E) { - var P = D(L); - return this.startOf(E) <= P && P <= this.endOf(E); + var D = I(L); + return this.startOf(E) <= D && D <= this.endOf(E); }, F.isAfter = function(L, E) { - return D(L) < this.startOf(E); + return I(L) < this.startOf(E); }, F.isBefore = function(L, E) { - return this.endOf(E) < D(L); - }, F.$g = function(L, E, P) { - return O.u(L) ? this[E] : this.set(P, L); + return this.endOf(E) < I(L); + }, F.$g = function(L, E, D) { + return R.u(L) ? this[E] : this.set(D, L); }, F.unix = function() { return Math.floor(this.valueOf() / 1e3); }, F.valueOf = function() { return this.$d.getTime(); }, F.startOf = function(L, E) { - var P = this, H = !!O.u(E) || E, Y = O.p(L), Q = function(bt, Ct) { - var Bt = O.w(P.$u ? Date.UTC(P.$y, Ct, bt) : new Date(P.$y, Ct, bt), P); - return H ? Bt : Bt.endOf(c); - }, dt = function(bt, Ct) { - return O.w(P.toDate()[bt].apply(P.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ct)), P); - }, et = this.$W, ut = this.$M, it = this.$D, rt = "set" + (this.$u ? "UTC" : ""); + var D = this, z = !!R.u(E) || E, Y = R.p(L), lt = function(xt, bt) { + var kt = R.w(D.$u ? Date.UTC(D.$y, bt, xt) : new Date(D.$y, bt, xt), D); + return z ? kt : kt.endOf(c); + }, pt = function(xt, bt) { + return R.w(D.toDate()[xt].apply(D.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(bt)), D); + }, ut = this.$W, tt = this.$M, yt = this.$D, X = "set" + (this.$u ? "UTC" : ""); switch (Y) { - case d: - return H ? Q(1, 0) : Q(31, 11); case u: - return H ? Q(1, ut) : Q(0, ut + 1); + return z ? lt(1, 0) : lt(31, 11); + case d: + return z ? lt(1, tt) : lt(0, tt + 1); case h: - var ht = this.$locale().weekStart || 0, ft = (et < ht ? et + 7 : et) - ht; - return Q(H ? it - ft : it + (6 - ft), ut); + var ct = this.$locale().weekStart || 0, ot = (ut < ct ? ut + 7 : ut) - ct; + return lt(z ? yt - ot : yt + (6 - ot), tt); case c: case g: - return dt(rt + "Hours", 0); + return pt(X + "Hours", 0); case l: - return dt(rt + "Minutes", 1); + return pt(X + "Minutes", 1); case n: - return dt(rt + "Seconds", 2); + return pt(X + "Seconds", 2); case a: - return dt(rt + "Milliseconds", 3); + return pt(X + "Milliseconds", 3); default: return this.clone(); } }, F.endOf = function(L) { return this.startOf(L, !1); }, F.$set = function(L, E) { - var P, H = O.p(L), Y = "set" + (this.$u ? "UTC" : ""), Q = (P = {}, P[c] = Y + "Date", P[g] = Y + "Date", P[u] = Y + "Month", P[d] = Y + "FullYear", P[l] = Y + "Hours", P[n] = Y + "Minutes", P[a] = Y + "Seconds", P[o] = Y + "Milliseconds", P)[H], dt = H === c ? this.$D + (E - this.$W) : E; - if (H === u || H === d) { - var et = this.clone().set(g, 1); - et.$d[Q](dt), et.init(), this.$d = et.set(g, Math.min(this.$D, et.daysInMonth())).$d; - } else Q && this.$d[Q](dt); + var D, z = R.p(L), Y = "set" + (this.$u ? "UTC" : ""), lt = (D = {}, D[c] = Y + "Date", D[g] = Y + "Date", D[d] = Y + "Month", D[u] = Y + "FullYear", D[l] = Y + "Hours", D[n] = Y + "Minutes", D[a] = Y + "Seconds", D[o] = Y + "Milliseconds", D)[z], pt = z === c ? this.$D + (E - this.$W) : E; + if (z === d || z === u) { + var ut = this.clone().set(g, 1); + ut.$d[lt](pt), ut.init(), this.$d = ut.set(g, Math.min(this.$D, ut.daysInMonth())).$d; + } else lt && this.$d[lt](pt); return this.init(), this; }, F.set = function(L, E) { return this.clone().$set(L, E); }, F.get = function(L) { - return this[O.p(L)](); + return this[R.p(L)](); }, F.add = function(L, E) { - var P, H = this; + var D, z = this; L = Number(L); - var Y = O.p(E), Q = function(ut) { - var it = D(H); - return O.w(it.date(it.date() + Math.round(ut * L)), H); + var Y = R.p(E), lt = function(tt) { + var yt = I(z); + return R.w(yt.date(yt.date() + Math.round(tt * L)), z); }; - if (Y === u) return this.set(u, this.$M + L); - if (Y === d) return this.set(d, this.$y + L); - if (Y === c) return Q(1); - if (Y === h) return Q(7); - var dt = (P = {}, P[n] = i, P[l] = s, P[a] = r, P)[Y] || 1, et = this.$d.getTime() + L * dt; - return O.w(et, this); + if (Y === d) return this.set(d, this.$M + L); + if (Y === u) return this.set(u, this.$y + L); + if (Y === c) return lt(1); + if (Y === h) return lt(7); + var pt = (D = {}, D[n] = i, D[l] = s, D[a] = r, D)[Y] || 1, ut = this.$d.getTime() + L * pt; + return R.w(ut, this); }, F.subtract = function(L, E) { return this.add(-1 * L, E); }, F.format = function(L) { - var E = this, P = this.$locale(); - if (!this.isValid()) return P.invalidDate || m; - var H = L || "YYYY-MM-DDTHH:mm:ssZ", Y = O.z(this), Q = this.$H, dt = this.$m, et = this.$M, ut = P.weekdays, it = P.months, rt = P.meridiem, ht = function(Ct, Bt, ce, re) { - return Ct && (Ct[Bt] || Ct(E, H)) || ce[Bt].slice(0, re); - }, ft = function(Ct) { - return O.s(Q % 12 || 12, Ct, "0"); - }, bt = rt || function(Ct, Bt, ce) { - var re = Ct < 12 ? "AM" : "PM"; - return ce ? re.toLowerCase() : re; + var E = this, D = this.$locale(); + if (!this.isValid()) return D.invalidDate || m; + var z = L || "YYYY-MM-DDTHH:mm:ssZ", Y = R.z(this), lt = this.$H, pt = this.$m, ut = this.$M, tt = D.weekdays, yt = D.months, X = D.meridiem, ct = function(bt, kt, ne, Ae) { + return bt && (bt[kt] || bt(E, z)) || ne[kt].slice(0, Ae); + }, ot = function(bt) { + return R.s(lt % 12 || 12, bt, "0"); + }, xt = X || function(bt, kt, ne) { + var Ae = bt < 12 ? "AM" : "PM"; + return ne ? Ae.toLowerCase() : Ae; }; - return H.replace(x, (function(Ct, Bt) { - return Bt || (function(ce) { - switch (ce) { + return z.replace(C, (function(bt, kt) { + return kt || (function(ne) { + switch (ne) { case "YY": return String(E.$y).slice(-2); case "YYYY": - return O.s(E.$y, 4, "0"); + return R.s(E.$y, 4, "0"); case "M": - return et + 1; + return ut + 1; case "MM": - return O.s(et + 1, 2, "0"); + return R.s(ut + 1, 2, "0"); case "MMM": - return ht(P.monthsShort, et, it, 3); + return ct(D.monthsShort, ut, yt, 3); case "MMMM": - return ht(it, et); + return ct(yt, ut); case "D": return E.$D; case "DD": - return O.s(E.$D, 2, "0"); + return R.s(E.$D, 2, "0"); case "d": return String(E.$W); case "dd": - return ht(P.weekdaysMin, E.$W, ut, 2); + return ct(D.weekdaysMin, E.$W, tt, 2); case "ddd": - return ht(P.weekdaysShort, E.$W, ut, 3); + return ct(D.weekdaysShort, E.$W, tt, 3); case "dddd": - return ut[E.$W]; + return tt[E.$W]; case "H": - return String(Q); + return String(lt); case "HH": - return O.s(Q, 2, "0"); + return R.s(lt, 2, "0"); case "h": - return ft(1); + return ot(1); case "hh": - return ft(2); + return ot(2); case "a": - return bt(Q, dt, !0); + return xt(lt, pt, !0); case "A": - return bt(Q, dt, !1); + return xt(lt, pt, !1); case "m": - return String(dt); + return String(pt); case "mm": - return O.s(dt, 2, "0"); + return R.s(pt, 2, "0"); case "s": return String(E.$s); case "ss": - return O.s(E.$s, 2, "0"); + return R.s(E.$s, 2, "0"); case "SSS": - return O.s(E.$ms, 3, "0"); + return R.s(E.$ms, 3, "0"); case "Z": return Y; } return null; - })(Ct) || Y.replace(":", ""); + })(bt) || Y.replace(":", ""); })); }, F.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); - }, F.diff = function(L, E, P) { - var H, Y = this, Q = O.p(E), dt = D(L), et = (dt.utcOffset() - this.utcOffset()) * i, ut = this - dt, it = function() { - return O.m(Y, dt); + }, F.diff = function(L, E, D) { + var z, Y = this, lt = R.p(E), pt = I(L), ut = (pt.utcOffset() - this.utcOffset()) * i, tt = this - pt, yt = function() { + return R.m(Y, pt); }; - switch (Q) { - case d: - H = it() / 12; - break; + switch (lt) { case u: - H = it(); + z = yt() / 12; break; - case p: - H = it() / 3; + case d: + z = yt(); + break; + case f: + z = yt() / 3; break; case h: - H = (ut - et) / 6048e5; + z = (tt - ut) / 6048e5; break; case c: - H = (ut - et) / 864e5; + z = (tt - ut) / 864e5; break; case l: - H = ut / s; + z = tt / s; break; case n: - H = ut / i; + z = tt / i; break; case a: - H = ut / r; + z = tt / r; break; default: - H = ut; + z = tt; } - return P ? H : O.a(H); + return D ? z : R.a(z); }, F.daysInMonth = function() { - return this.endOf(u).$D; + return this.endOf(d).$D; }, F.$locale = function() { - return v[this.$L]; + return _[this.$L]; }, F.locale = function(L, E) { if (!L) return this.$L; - var P = this.clone(), H = N(L, E, !0); - return H && (P.$L = H), P; + var D = this.clone(), z = q(L, E, !0); + return z && (D.$L = z), D; }, F.clone = function() { - return O.w(this.$d, this); + return R.w(this.$d, this); }, F.toDate = function() { return new Date(this.valueOf()); }, F.toJSON = function() { @@ -263,56 +263,56 @@ function Sy() { return this.$d.toISOString(); }, F.toString = function() { return this.$d.toUTCString(); - }, I; - })(), z = W.prototype; - return D.prototype = z, [["$ms", o], ["$s", a], ["$m", n], ["$H", l], ["$W", c], ["$M", u], ["$y", d], ["$D", g]].forEach((function(I) { - z[I[1]] = function(F) { - return this.$g(F, I[0], I[1]); + }, M; + })(), W = H.prototype; + return I.prototype = W, [["$ms", o], ["$s", a], ["$m", n], ["$H", l], ["$W", c], ["$M", d], ["$y", u], ["$D", g]].forEach((function(M) { + W[M[1]] = function(F) { + return this.$g(F, M[0], M[1]); }; - })), D.extend = function(I, F) { - return I.$i || (I(F, W, D), I.$i = !0), D; - }, D.locale = N, D.isDayjs = B, D.unix = function(I) { - return D(1e3 * I); - }, D.en = v[S], D.Ls = v, D.p = {}, D; + })), I.extend = function(M, F) { + return M.$i || (M(F, H, I), M.$i = !0), I; + }, I.locale = q, I.isDayjs = v, I.unix = function(M) { + return I(1e3 * M); + }, I.en = _[S], I.Ls = _, I.p = {}, I; })); - })(_s)), _s.exports; + })(gs)), gs.exports; } -var _y = Sy(); -const vy = /* @__PURE__ */ Ty(_y); -var Wc = Object.defineProperty, f = (e, t) => Wc(e, "name", { value: t, configurable: !0 }), By = (e, t) => { +var zm = Wm(); +const Hm = /* @__PURE__ */ Nm(zm); +var hc = Object.defineProperty, p = (e, t) => hc(e, "name", { value: t, configurable: !0 }), Ym = (e, t) => { for (var r in t) - Wc(e, r, { get: t[r], enumerable: !0 }); -}, De = { + hc(e, r, { get: t[r], enumerable: !0 }); +}, $e = { trace: 0, debug: 1, info: 2, warn: 3, error: 4, fatal: 5 -}, R = { - trace: /* @__PURE__ */ f((...e) => { +}, P = { + trace: /* @__PURE__ */ p((...e) => { }, "trace"), - debug: /* @__PURE__ */ f((...e) => { + debug: /* @__PURE__ */ p((...e) => { }, "debug"), - info: /* @__PURE__ */ f((...e) => { + info: /* @__PURE__ */ p((...e) => { }, "info"), - warn: /* @__PURE__ */ f((...e) => { + warn: /* @__PURE__ */ p((...e) => { }, "warn"), - error: /* @__PURE__ */ f((...e) => { + error: /* @__PURE__ */ p((...e) => { }, "error"), - fatal: /* @__PURE__ */ f((...e) => { + fatal: /* @__PURE__ */ p((...e) => { }, "fatal") -}, vn = /* @__PURE__ */ f(function(e = "fatal") { - let t = De.fatal; - typeof e == "string" ? e.toLowerCase() in De && (t = De[e]) : typeof e == "number" && (t = e), R.trace = () => { - }, R.debug = () => { - }, R.info = () => { - }, R.warn = () => { - }, R.error = () => { - }, R.fatal = () => { - }, t <= De.fatal && (R.fatal = console.error ? console.error.bind(console, ne("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", ne("FATAL"))), t <= De.error && (R.error = console.error ? console.error.bind(console, ne("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", ne("ERROR"))), t <= De.warn && (R.warn = console.warn ? console.warn.bind(console, ne("WARN"), "color: orange") : console.log.bind(console, "\x1B[33m", ne("WARN"))), t <= De.info && (R.info = console.info ? console.info.bind(console, ne("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", ne("INFO"))), t <= De.debug && (R.debug = console.debug ? console.debug.bind(console, ne("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", ne("DEBUG"))), t <= De.trace && (R.trace = console.debug ? console.debug.bind(console, ne("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", ne("TRACE"))); -}, "setLogLevel"), ne = /* @__PURE__ */ f((e) => `%c${vy().format("ss.SSS")} : ${e} : `, "format"); -const vs = { +}, an = /* @__PURE__ */ p(function(e = "fatal") { + let t = $e.fatal; + typeof e == "string" ? e.toLowerCase() in $e && (t = $e[e]) : typeof e == "number" && (t = e), P.trace = () => { + }, P.debug = () => { + }, P.info = () => { + }, P.warn = () => { + }, P.error = () => { + }, P.fatal = () => { + }, t <= $e.fatal && (P.fatal = console.error ? console.error.bind(console, se("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", se("FATAL"))), t <= $e.error && (P.error = console.error ? console.error.bind(console, se("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", se("ERROR"))), t <= $e.warn && (P.warn = console.warn ? console.warn.bind(console, se("WARN"), "color: orange") : console.log.bind(console, "\x1B[33m", se("WARN"))), t <= $e.info && (P.info = console.info ? console.info.bind(console, se("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", se("INFO"))), t <= $e.debug && (P.debug = console.debug ? console.debug.bind(console, se("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", se("DEBUG"))), t <= $e.trace && (P.trace = console.debug ? console.debug.bind(console, se("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", se("TRACE"))); +}, "setLogLevel"), se = /* @__PURE__ */ p((e) => `%c${Hm().format("ss.SSS")} : ${e} : `, "format"); +const ms = { /* CLAMP */ min: { r: 0, @@ -355,11 +355,11 @@ const vs = { const s = r < 0.5 ? r * (1 + t) : r + t - r * t, o = 2 * r - s; switch (i) { case "r": - return vs.hue2rgb(o, s, e + 1 / 3) * 255; + return ms.hue2rgb(o, s, e + 1 / 3) * 255; case "g": - return vs.hue2rgb(o, s, e) * 255; + return ms.hue2rgb(o, s, e) * 255; case "b": - return vs.hue2rgb(o, s, e - 1 / 3) * 255; + return ms.hue2rgb(o, s, e - 1 / 3) * 255; } }, rgb2hsl: ({ r: e, g: t, b: r }, i) => { @@ -383,31 +383,31 @@ const vs = { return -1; } } -}, Ly = { +}, Um = { /* API */ clamp: (e, t, r) => t > r ? Math.min(t, Math.max(r, e)) : Math.min(r, Math.max(t, e)), round: (e) => Math.round(e * 1e10) / 1e10 -}, Fy = { +}, Gm = { /* API */ dec2hex: (e) => { const t = Math.round(e).toString(16); return t.length > 1 ? t : `0${t}`; } -}, nt = { - channel: vs, - lang: Ly, - unit: Fy -}, Ve = {}; +}, at = { + channel: ms, + lang: Um, + unit: Gm +}, je = {}; for (let e = 0; e <= 255; e++) - Ve[e] = nt.unit.dec2hex(e); -const zt = { + je[e] = at.unit.dec2hex(e); +const qt = { ALL: 0, RGB: 1, HSL: 2 }; -class Ay { +class jm { constructor() { - this.type = zt.ALL; + this.type = qt.ALL; } /* API */ get() { @@ -419,93 +419,93 @@ class Ay { this.type = t; } reset() { - this.type = zt.ALL; + this.type = qt.ALL; } is(t) { return this.type === t; } } -class My { +class Xm { /* CONSTRUCTOR */ constructor(t, r) { - this.color = r, this.changed = !1, this.data = t, this.type = new Ay(); + this.color = r, this.changed = !1, this.data = t, this.type = new jm(); } /* API */ set(t, r) { - return this.color = r, this.changed = !1, this.data = t, this.type.type = zt.ALL, this; + return this.color = r, this.changed = !1, this.data = t, this.type.type = qt.ALL, this; } /* HELPERS */ _ensureHSL() { const t = this.data, { h: r, s: i, l: s } = t; - r === void 0 && (t.h = nt.channel.rgb2hsl(t, "h")), i === void 0 && (t.s = nt.channel.rgb2hsl(t, "s")), s === void 0 && (t.l = nt.channel.rgb2hsl(t, "l")); + r === void 0 && (t.h = at.channel.rgb2hsl(t, "h")), i === void 0 && (t.s = at.channel.rgb2hsl(t, "s")), s === void 0 && (t.l = at.channel.rgb2hsl(t, "l")); } _ensureRGB() { const t = this.data, { r, g: i, b: s } = t; - r === void 0 && (t.r = nt.channel.hsl2rgb(t, "r")), i === void 0 && (t.g = nt.channel.hsl2rgb(t, "g")), s === void 0 && (t.b = nt.channel.hsl2rgb(t, "b")); + r === void 0 && (t.r = at.channel.hsl2rgb(t, "r")), i === void 0 && (t.g = at.channel.hsl2rgb(t, "g")), s === void 0 && (t.b = at.channel.hsl2rgb(t, "b")); } /* GETTERS */ get r() { const t = this.data, r = t.r; - return !this.type.is(zt.HSL) && r !== void 0 ? r : (this._ensureHSL(), nt.channel.hsl2rgb(t, "r")); + return !this.type.is(qt.HSL) && r !== void 0 ? r : (this._ensureHSL(), at.channel.hsl2rgb(t, "r")); } get g() { const t = this.data, r = t.g; - return !this.type.is(zt.HSL) && r !== void 0 ? r : (this._ensureHSL(), nt.channel.hsl2rgb(t, "g")); + return !this.type.is(qt.HSL) && r !== void 0 ? r : (this._ensureHSL(), at.channel.hsl2rgb(t, "g")); } get b() { const t = this.data, r = t.b; - return !this.type.is(zt.HSL) && r !== void 0 ? r : (this._ensureHSL(), nt.channel.hsl2rgb(t, "b")); + return !this.type.is(qt.HSL) && r !== void 0 ? r : (this._ensureHSL(), at.channel.hsl2rgb(t, "b")); } get h() { const t = this.data, r = t.h; - return !this.type.is(zt.RGB) && r !== void 0 ? r : (this._ensureRGB(), nt.channel.rgb2hsl(t, "h")); + return !this.type.is(qt.RGB) && r !== void 0 ? r : (this._ensureRGB(), at.channel.rgb2hsl(t, "h")); } get s() { const t = this.data, r = t.s; - return !this.type.is(zt.RGB) && r !== void 0 ? r : (this._ensureRGB(), nt.channel.rgb2hsl(t, "s")); + return !this.type.is(qt.RGB) && r !== void 0 ? r : (this._ensureRGB(), at.channel.rgb2hsl(t, "s")); } get l() { const t = this.data, r = t.l; - return !this.type.is(zt.RGB) && r !== void 0 ? r : (this._ensureRGB(), nt.channel.rgb2hsl(t, "l")); + return !this.type.is(qt.RGB) && r !== void 0 ? r : (this._ensureRGB(), at.channel.rgb2hsl(t, "l")); } get a() { return this.data.a; } /* SETTERS */ set r(t) { - this.type.set(zt.RGB), this.changed = !0, this.data.r = t; + this.type.set(qt.RGB), this.changed = !0, this.data.r = t; } set g(t) { - this.type.set(zt.RGB), this.changed = !0, this.data.g = t; + this.type.set(qt.RGB), this.changed = !0, this.data.g = t; } set b(t) { - this.type.set(zt.RGB), this.changed = !0, this.data.b = t; + this.type.set(qt.RGB), this.changed = !0, this.data.b = t; } set h(t) { - this.type.set(zt.HSL), this.changed = !0, this.data.h = t; + this.type.set(qt.HSL), this.changed = !0, this.data.h = t; } set s(t) { - this.type.set(zt.HSL), this.changed = !0, this.data.s = t; + this.type.set(qt.HSL), this.changed = !0, this.data.s = t; } set l(t) { - this.type.set(zt.HSL), this.changed = !0, this.data.l = t; + this.type.set(qt.HSL), this.changed = !0, this.data.l = t; } set a(t) { this.changed = !0, this.data.a = t; } } -const xo = new My({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), jr = { +const ao = new Xm({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), zr = { /* VARIABLES */ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i, /* API */ parse: (e) => { if (e.charCodeAt(0) !== 35) return; - const t = e.match(jr.re); + const t = e.match(zr.re); if (!t) return; const r = t[1], i = parseInt(r, 16), s = r.length, o = s % 4 === 0, a = s > 4, n = a ? 1 : 17, l = a ? 8 : 4, c = o ? 0 : -1, h = a ? 255 : 15; - return xo.set({ + return ao.set({ r: (i >> l * (c + 3) & h) * n, g: (i >> l * (c + 2) & h) * n, b: (i >> l * (c + 1) & h) * n, @@ -514,49 +514,49 @@ const xo = new My({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), jr = { }, stringify: (e) => { const { r: t, g: r, b: i, a: s } = e; - return s < 1 ? `#${Ve[Math.round(t)]}${Ve[Math.round(r)]}${Ve[Math.round(i)]}${Ve[Math.round(s * 255)]}` : `#${Ve[Math.round(t)]}${Ve[Math.round(r)]}${Ve[Math.round(i)]}`; + return s < 1 ? `#${je[Math.round(t)]}${je[Math.round(r)]}${je[Math.round(i)]}${je[Math.round(s * 255)]}` : `#${je[Math.round(t)]}${je[Math.round(r)]}${je[Math.round(i)]}`; } -}, fr = { +}, dr = { /* VARIABLES */ 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, /* HELPERS */ _hue2deg: (e) => { - const t = e.match(fr.hueRe); + const t = e.match(dr.hueRe); if (t) { const [, r, i] = t; switch (i) { case "grad": - return nt.channel.clamp.h(parseFloat(r) * 0.9); + return at.channel.clamp.h(parseFloat(r) * 0.9); case "rad": - return nt.channel.clamp.h(parseFloat(r) * 180 / Math.PI); + return at.channel.clamp.h(parseFloat(r) * 180 / Math.PI); case "turn": - return nt.channel.clamp.h(parseFloat(r) * 360); + return at.channel.clamp.h(parseFloat(r) * 360); } } - return nt.channel.clamp.h(parseFloat(e)); + return at.channel.clamp.h(parseFloat(e)); }, /* API */ parse: (e) => { const t = e.charCodeAt(0); if (t !== 104 && t !== 72) return; - const r = e.match(fr.re); + const r = e.match(dr.re); if (!r) return; const [, i, s, o, a, n] = r; - return xo.set({ - h: fr._hue2deg(i), - s: nt.channel.clamp.s(parseFloat(s)), - l: nt.channel.clamp.l(parseFloat(o)), - a: a ? nt.channel.clamp.a(n ? parseFloat(a) / 100 : parseFloat(a)) : 1 + return ao.set({ + h: dr._hue2deg(i), + s: at.channel.clamp.s(parseFloat(s)), + l: at.channel.clamp.l(parseFloat(o)), + a: a ? at.channel.clamp.a(n ? parseFloat(a) / 100 : parseFloat(a)) : 1 }, e); }, stringify: (e) => { const { h: t, s: r, l: i, a: s } = e; - return s < 1 ? `hsla(${nt.lang.round(t)}, ${nt.lang.round(r)}%, ${nt.lang.round(i)}%, ${s})` : `hsl(${nt.lang.round(t)}, ${nt.lang.round(r)}%, ${nt.lang.round(i)}%)`; + return s < 1 ? `hsla(${at.lang.round(t)}, ${at.lang.round(r)}%, ${at.lang.round(i)}%, ${s})` : `hsl(${at.lang.round(t)}, ${at.lang.round(r)}%, ${at.lang.round(i)}%)`; } -}, Ai = { +}, Ti = { /* VARIABLES */ colors: { aliceblue: "#f0f8ff", @@ -710,17 +710,17 @@ const xo = new My({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), jr = { /* API */ parse: (e) => { e = e.toLowerCase(); - const t = Ai.colors[e]; + const t = Ti.colors[e]; if (t) - return jr.parse(t); + return zr.parse(t); }, stringify: (e) => { - const t = jr.stringify(e); - for (const r in Ai.colors) - if (Ai.colors[r] === t) + const t = zr.stringify(e); + for (const r in Ti.colors) + if (Ti.colors[r] === t) return r; } -}, ki = { +}, pi = { /* VARIABLES */ 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, /* API */ @@ -728,230 +728,246 @@ const xo = new My({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), jr = { const t = e.charCodeAt(0); if (t !== 114 && t !== 82) return; - const r = e.match(ki.re); + const r = e.match(pi.re); if (!r) return; const [, i, s, o, a, n, l, c, h] = r; - return xo.set({ - r: nt.channel.clamp.r(s ? parseFloat(i) * 2.55 : parseFloat(i)), - g: nt.channel.clamp.g(a ? parseFloat(o) * 2.55 : parseFloat(o)), - b: nt.channel.clamp.b(l ? parseFloat(n) * 2.55 : parseFloat(n)), - a: c ? nt.channel.clamp.a(h ? parseFloat(c) / 100 : parseFloat(c)) : 1 + return ao.set({ + r: at.channel.clamp.r(s ? parseFloat(i) * 2.55 : parseFloat(i)), + g: at.channel.clamp.g(a ? parseFloat(o) * 2.55 : parseFloat(o)), + b: at.channel.clamp.b(l ? parseFloat(n) * 2.55 : parseFloat(n)), + a: c ? at.channel.clamp.a(h ? parseFloat(c) / 100 : parseFloat(c)) : 1 }, e); }, stringify: (e) => { const { r: t, g: r, b: i, a: s } = e; - return s < 1 ? `rgba(${nt.lang.round(t)}, ${nt.lang.round(r)}, ${nt.lang.round(i)}, ${nt.lang.round(s)})` : `rgb(${nt.lang.round(t)}, ${nt.lang.round(r)}, ${nt.lang.round(i)})`; + return s < 1 ? `rgba(${at.lang.round(t)}, ${at.lang.round(r)}, ${at.lang.round(i)}, ${at.lang.round(s)})` : `rgb(${at.lang.round(t)}, ${at.lang.round(r)}, ${at.lang.round(i)})`; } -}, Le = { +}, _e = { /* VARIABLES */ format: { - keyword: Ai, - hex: jr, - rgb: ki, - rgba: ki, - hsl: fr, - hsla: fr + keyword: Ti, + hex: zr, + rgb: pi, + rgba: pi, + hsl: dr, + hsla: dr }, /* API */ parse: (e) => { if (typeof e != "string") return e; - const t = jr.parse(e) || ki.parse(e) || fr.parse(e) || Ai.parse(e); + const t = zr.parse(e) || pi.parse(e) || dr.parse(e) || Ti.parse(e); if (t) return t; throw new Error(`Unsupported color format: "${e}"`); }, - stringify: (e) => !e.changed && e.color ? e.color : e.type.is(zt.HSL) || e.data.r === void 0 ? fr.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? ki.stringify(e) : jr.stringify(e) -}, Hc = (e, t) => { - const r = Le.parse(e); + stringify: (e) => !e.changed && e.color ? e.color : e.type.is(qt.HSL) || e.data.r === void 0 ? dr.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? pi.stringify(e) : zr.stringify(e) +}, cc = (e, t) => { + const r = _e.parse(e); for (const i in t) - r[i] = nt.channel.clamp[i](t[i]); - return Le.stringify(r); -}, Je = (e, t, r = 0, i = 1) => { + r[i] = at.channel.clamp[i](t[i]); + return _e.stringify(r); +}, Ke = (e, t, r = 0, i = 1) => { if (typeof e != "number") - return Hc(e, { a: t }); - const s = xo.set({ - r: nt.channel.clamp.r(e), - g: nt.channel.clamp.g(t), - b: nt.channel.clamp.b(r), - a: nt.channel.clamp.a(i) + return cc(e, { a: t }); + const s = ao.set({ + r: at.channel.clamp.r(e), + g: at.channel.clamp.g(t), + b: at.channel.clamp.b(r), + a: at.channel.clamp.a(i) }); - return Le.stringify(s); -}, Ey = (e) => { - const { r: t, g: r, b: i } = Le.parse(e), s = 0.2126 * nt.channel.toLinear(t) + 0.7152 * nt.channel.toLinear(r) + 0.0722 * nt.channel.toLinear(i); - return nt.lang.round(s); -}, $y = (e) => Ey(e) >= 0.5, be = (e) => !$y(e), Yc = (e, t, r) => { - const i = Le.parse(e), s = i[t], o = nt.channel.clamp[t](s + r); - return s !== o && (i[t] = o), Le.stringify(i); -}, $ = (e, t) => Yc(e, "l", t), A = (e, t) => Yc(e, "l", -t), C = (e, t) => { - const r = Le.parse(e), i = {}; + return _e.stringify(s); +}, Vm = (e) => { + const { r: t, g: r, b: i } = _e.parse(e), s = 0.2126 * at.channel.toLinear(t) + 0.7152 * at.channel.toLinear(r) + 0.0722 * at.channel.toLinear(i); + return at.lang.round(s); +}, Zm = (e) => Vm(e) >= 0.5, ye = (e) => !Zm(e), dc = (e, t, r) => { + const i = _e.parse(e), s = i[t], o = at.channel.clamp[t](s + r); + return s !== o && (i[t] = o), _e.stringify(i); +}, $ = (e, t) => dc(e, "l", t), O = (e, t) => dc(e, "l", -t), x = (e, t) => { + const r = _e.parse(e), i = {}; for (const s in t) t[s] && (i[s] = r[s] + t[s]); - return Hc(e, i); -}, Oy = (e, t, r = 50) => { - const { r: i, g: s, b: o, a } = Le.parse(e), { r: n, g: l, b: c, a: h } = Le.parse(t), u = r / 100, p = u * 2 - 1, d = a - h, m = ((p * d === -1 ? p : (p + d) / (1 + p * d)) + 1) / 2, y = 1 - m, x = i * m + n * y, b = s * m + l * y, k = o * m + c * y, w = a * u + h * (1 - u); - return Je(x, b, k, w); -}, _ = (e, t = 100) => { - const r = Le.parse(e); - return r.r = 255 - r.r, r.g = 255 - r.g, r.b = 255 - r.b, Oy(r, e, t); + return cc(e, i); +}, Km = (e, t, r = 50) => { + const { r: i, g: s, b: o, a } = _e.parse(e), { r: n, g: l, b: c, a: h } = _e.parse(t), d = r / 100, f = d * 2 - 1, u = a - h, m = ((f * u === -1 ? f : (f + u) / (1 + f * u)) + 1) / 2, y = 1 - m, C = i * m + n * y, b = s * m + l * y, k = o * m + c * y, T = a * d + h * (1 - d); + return Ke(C, b, k, T); +}, B = (e, t = 100) => { + const r = _e.parse(e); + return r.r = 255 - r.r, r.g = 255 - r.g, r.b = 255 - r.b, Km(r, e, t); }; -/*! @license DOMPurify 3.4.1 | (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.1/LICENSE */ -const { - entries: jc, - setPrototypeOf: Ul, - isFrozen: Iy, - getPrototypeOf: Dy, - getOwnPropertyDescriptor: Py -} = Object; -let { - freeze: Xt, - seal: le, - create: Nr -} = Object, { - apply: wa, - construct: Sa -} = typeof Reflect < "u" && Reflect; +/*! @license DOMPurify 3.4.5 | (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.5/LICENSE */ +function Ll(e, t) { + (t == null || t > e.length) && (t = e.length); + for (var r = 0, i = Array(t); r < t; r++) i[r] = e[r]; + return i; +} +function Qm(e) { + if (Array.isArray(e)) return e; +} +function Jm(e, t) { + var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; + if (r != null) { + var i, s, o, a, n = [], l = !0, c = !1; + try { + if (o = (r = r.call(e)).next, t !== 0) for (; !(l = (i = o.call(r)).done) && (n.push(i.value), n.length !== t); l = !0) ; + } catch (h) { + c = !0, s = h; + } finally { + try { + if (!l && r.return != null && (a = r.return(), Object(a) !== a)) return; + } finally { + if (c) throw s; + } + } + return n; + } +} +function ty() { + 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 ey(e, t) { + return Qm(e) || Jm(e, t) || ry(e, t) || ty(); +} +function ry(e, t) { + if (e) { + if (typeof e == "string") return Ll(e, t); + var r = {}.toString.call(e).slice(8, -1); + return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Ll(e, t) : void 0; + } +} +const uc = Object.entries, Fl = Object.setPrototypeOf, iy = Object.isFrozen, sy = Object.getPrototypeOf, oy = Object.getOwnPropertyDescriptor; +let Xt = Object.freeze, oe = Object.seal, Dr = Object.create, fc = typeof Reflect < "u" && Reflect, oa = fc.apply, aa = fc.construct; Xt || (Xt = function(t) { return t; }); -le || (le = function(t) { +oe || (oe = function(t) { return t; }); -wa || (wa = function(t, r) { +oa || (oa = function(t, r) { for (var i = arguments.length, s = new Array(i > 2 ? i - 2 : 0), o = 2; o < i; o++) s[o - 2] = arguments[o]; return t.apply(r, s); }); -Sa || (Sa = function(t) { +aa || (aa = function(t) { for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++) i[s - 1] = arguments[s]; return new t(...i); }); -const hi = At(Array.prototype.forEach), Ry = At(Array.prototype.lastIndexOf), Gl = At(Array.prototype.pop), ci = At(Array.prototype.push), Ny = At(Array.prototype.splice), jt = Array.isArray, Ti = At(String.prototype.toLowerCase), ra = At(String.prototype.toString), Xl = At(String.prototype.match), Ir = At(String.prototype.replace), Vl = At(String.prototype.indexOf), qy = At(String.prototype.trim), zy = At(Number.prototype.toString), Wy = At(Boolean.prototype.toString), Zl = typeof BigInt > "u" ? null : At(BigInt.prototype.toString), Kl = typeof Symbol > "u" ? null : At(Symbol.prototype.toString), _t = At(Object.prototype.hasOwnProperty), ui = At(Object.prototype.toString), Pt = At(RegExp.prototype.test), ds = Hy(TypeError); +const Fr = At(Array.prototype.forEach), ay = At(Array.prototype.lastIndexOf), Al = At(Array.prototype.pop), Ar = At(Array.prototype.push), ny = At(Array.prototype.splice), Ut = Array.isArray, gi = At(String.prototype.toLowerCase), No = At(String.prototype.toString), Ml = At(String.prototype.match), Mr = At(String.prototype.replace), El = At(String.prototype.indexOf), ly = At(String.prototype.trim), hy = At(Number.prototype.toString), cy = At(Boolean.prototype.toString), $l = typeof BigInt > "u" ? null : At(BigInt.prototype.toString), Ol = typeof Symbol > "u" ? null : At(Symbol.prototype.toString), _t = At(Object.prototype.hasOwnProperty), ai = At(Object.prototype.toString), Rt = At(RegExp.prototype.test), rs = dy(TypeError); function At(e) { return function(t) { t instanceof RegExp && (t.lastIndex = 0); for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++) i[s - 1] = arguments[s]; - return wa(e, t, i); + return oa(e, t, i); }; } -function Hy(e) { +function dy(e) { return function() { for (var t = arguments.length, r = new Array(t), i = 0; i < t; i++) r[i] = arguments[i]; - return Sa(e, r); + return aa(e, r); }; } -function lt(e, t) { - let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ti; - if (Ul && Ul(e, null), !jt(t)) +function nt(e, t) { + let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : gi; + if (Fl && Fl(e, null), !Ut(t)) return e; let i = t.length; for (; i--; ) { let s = t[i]; if (typeof s == "string") { const o = r(s); - o !== s && (Iy(t) || (t[i] = o), s = o); + o !== s && (iy(t) || (t[i] = o), s = o); } e[s] = !0; } return e; } -function Yy(e) { +function uy(e) { for (let t = 0; t < e.length; t++) _t(e, t) || (e[t] = null); return e; } function Qt(e) { - const t = Nr(null); - for (const [r, i] of jc(e)) - _t(e, r) && (jt(i) ? t[r] = Yy(i) : i && typeof i == "object" && i.constructor === Object ? t[r] = Qt(i) : t[r] = i); + const t = Dr(null); + for (const i of uc(e)) { + var r = ey(i, 2); + const s = r[0], o = r[1]; + _t(e, s) && (Ut(o) ? t[s] = uy(o) : o && typeof o == "object" && o.constructor === Object ? t[s] = Qt(o) : t[s] = o); + } return t; } -function jy(e) { +function fy(e) { switch (typeof e) { case "string": return e; case "number": - return zy(e); + return hy(e); case "boolean": - return Wy(e); + return cy(e); case "bigint": - return Zl ? Zl(e) : "0"; + return $l ? $l(e) : "0"; case "symbol": - return Kl ? Kl(e) : "Symbol()"; + return Ol ? Ol(e) : "Symbol()"; case "undefined": - return ui(e); + return ai(e); case "function": case "object": { if (e === null) - return ui(e); - const t = e, r = qr(t, "toString"); + return ai(e); + const t = e, r = lr(t, "toString"); if (typeof r == "function") { const i = r(t); - return typeof i == "string" ? i : ui(i); + return typeof i == "string" ? i : ai(i); } - return ui(e); + return ai(e); } default: - return ui(e); + return ai(e); } } -function qr(e, t) { +function lr(e, t) { for (; e !== null; ) { - const i = Py(e, t); + const i = oy(e, t); if (i) { if (i.get) return At(i.get); if (typeof i.value == "function") return At(i.value); } - e = Dy(e); + e = sy(e); } function r() { return null; } return r; } -function Uy(e) { +function py(e) { try { - return Pt(e, ""), !0; + return Rt(e, ""), !0; } catch { return !1; } } -const Ql = Xt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ia = Xt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), sa = Xt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Gy = Xt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), oa = Xt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Xy = Xt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Jl = Xt(["#text"]), th = Xt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), aa = Xt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), eh = Xt(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ps = Xt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Vy = le(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Zy = le(/<%[\w\W]*|[\w\W]*%>/gm), Ky = le(/\$\{[\w\W]*/gm), Qy = le(/^data-[\-\w.\u00B7-\uFFFF]+$/), Jy = le(/^aria-[\-\w]+$/), Uc = le( +const Il = Xt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), qo = Xt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Wo = Xt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), gy = Xt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), zo = Xt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), my = Xt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Dl = Xt(["#text"]), Rl = Xt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), Ho = Xt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Pl = Xt(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), is = Xt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), yy = oe(/{{[\w\W]*|^[\w\W]*}}/g), Cy = oe(/<%[\w\W]*|^[\w\W]*%>/g), xy = oe(/\${[\w\W]*/g), by = oe(/^data-[\-\w.\u00B7-\uFFFF]+$/), ky = oe(/^aria-[\-\w]+$/), Nl = oe( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape -), t0 = le(/^(?:\w+script|data):/i), e0 = le( +), wy = oe(/^(?:\w+script|data):/i), Ty = oe( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex -), Gc = le(/^html$/i), r0 = le(/^[a-z][.\w]*(-[.\w]+)+$/i); -var rh = /* @__PURE__ */ Object.freeze({ - __proto__: null, - ARIA_ATTR: Jy, - ATTR_WHITESPACE: e0, - CUSTOM_ELEMENT: r0, - DATA_ATTR: Qy, - DOCTYPE_NAME: Gc, - ERB_EXPR: Zy, - IS_ALLOWED_URI: Uc, - IS_SCRIPT_OR_DATA: t0, - MUSTACHE_EXPR: Vy, - TMPLIT_EXPR: Ky -}); -const di = { +), Sy = oe(/^html$/i), _y = oe(/^[a-z][.\w]*(-[.\w]+)+$/i), Er = { element: 1, text: 3, // Deprecated progressingInstruction: 7, comment: 8, document: 9 -}, i0 = function() { +}, By = function() { return typeof window > "u" ? null : window; -}, s0 = function(t, r) { +}, vy = function(t, r) { if (typeof t != "object" || typeof t.createPolicy != "function") return null; let i = null; @@ -970,7 +986,7 @@ const di = { } catch { return console.warn("TrustedTypes policy " + o + " could not be created."), null; } -}, ih = function() { +}, ql = function() { return { afterSanitizeAttributes: [], afterSanitizeElements: [], @@ -983,57 +999,27 @@ const di = { uponSanitizeShadowNode: [] }; }; -function Xc() { - let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : i0(); - const t = (J) => Xc(J); - if (t.version = "3.4.1", t.removed = [], !e || !e.document || e.document.nodeType !== di.document || !e.Element) +function pc() { + let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : By(); + const t = (J) => pc(J); + if (t.version = "3.4.5", t.removed = [], !e || !e.document || e.document.nodeType !== Er.document || !e.Element) return t.isSupported = !1, t; - let { - document: r - } = e; - const i = r, s = i.currentScript, { - DocumentFragment: o, - HTMLTemplateElement: a, - Node: n, - Element: l, - NodeFilter: c, - NamedNodeMap: h = e.NamedNodeMap || e.MozNamedAttrMap, - HTMLFormElement: u, - DOMParser: p, - trustedTypes: d - } = e, g = l.prototype, m = qr(g, "cloneNode"), y = qr(g, "remove"), x = qr(g, "nextSibling"), b = qr(g, "childNodes"), k = qr(g, "parentNode"); + let r = e.document; + const i = r, s = i.currentScript, o = e.DocumentFragment, a = e.HTMLTemplateElement, n = e.Node, l = e.Element, c = e.NodeFilter, h = e.NamedNodeMap, d = h === void 0 ? e.NamedNodeMap || e.MozNamedAttrMap : h, f = e.HTMLFormElement, u = e.DOMParser, g = e.trustedTypes, m = l.prototype, y = lr(m, "cloneNode"), C = lr(m, "remove"), b = lr(m, "nextSibling"), k = lr(m, "childNodes"), T = lr(m, "parentNode"), S = n && n.prototype ? lr(n.prototype, "nodeType") : null; if (typeof a == "function") { const J = r.createElement("template"); J.content && J.content.ownerDocument && (r = J.content.ownerDocument); } - let w, S = ""; - const { - implementation: v, - createNodeIterator: M, - createDocumentFragment: B, - getElementsByTagName: N - } = r, { - importNode: D - } = i; - let O = ih(); - t.isSupported = typeof jc == "function" && typeof k == "function" && v && v.createHTMLDocument !== void 0; - const { - MUSTACHE_EXPR: W, - ERB_EXPR: z, - TMPLIT_EXPR: I, - DATA_ATTR: F, - ARIA_ATTR: L, - IS_SCRIPT_OR_DATA: E, - ATTR_WHITESPACE: P, - CUSTOM_ELEMENT: H - } = rh; - let { - IS_ALLOWED_URI: Y - } = rh, Q = null; - const dt = lt({}, [...Ql, ...ia, ...sa, ...oa, ...Jl]); - let et = null; - const ut = lt({}, [...th, ...aa, ...eh, ...ps]); - let it = Object.seal(Nr(null, { + let _, A = ""; + const v = r, q = v.implementation, I = v.createNodeIterator, R = v.createDocumentFragment, H = v.getElementsByTagName, W = i.importNode; + let M = ql(); + t.isSupported = typeof uc == "function" && typeof T == "function" && q && q.createHTMLDocument !== void 0; + const F = yy, L = Cy, E = xy, D = by, z = ky, Y = wy, lt = Ty, pt = _y; + let ut = Nl, tt = null; + const yt = nt({}, [...Il, ...qo, ...Wo, ...zo, ...Dl]); + let X = null; + const ct = nt({}, [...Rl, ...Ho, ...Pl, ...is]); + let ot = Object.seal(Dr(null, { tagNameCheck: { writable: !0, configurable: !1, @@ -1052,8 +1038,8 @@ function Xc() { enumerable: !0, value: !1 } - })), rt = null, ht = null; - const ft = Object.seal(Nr(null, { + })), xt = null, bt = null; + const kt = Object.seal(Dr(null, { tagCheck: { writable: !0, configurable: !1, @@ -1067,173 +1053,194 @@ function Xc() { value: null } })); - let bt = !0, Ct = !0, Bt = !1, ce = !0, re = !1, Oe = !0, nr = !1, Ho = !1, Yo = !1, Mr = !1, ls = !1, hs = !1, Bl = !0, Ll = !1; - const Fl = "user-content-"; - let jo = !0, ni = !1, Er = {}, Te = null; - const Uo = lt({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]); - let Al = null; - const Ml = lt({}, ["audio", "video", "img", "source", "image", "track"]); - let Go = null; - const El = lt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), cs = "http://www.w3.org/1998/Math/MathML", us = "http://www.w3.org/2000/svg", we = "http://www.w3.org/1999/xhtml"; - let $r = we, Xo = !1, Vo = null; - const gy = lt({}, [cs, us, we], ra); - let Zo = lt({}, ["mi", "mo", "mn", "ms", "mtext"]), Ko = lt({}, ["annotation-xml"]); - const my = lt({}, ["title", "style", "font", "a", "script"]); - let li = null; - const yy = ["application/xhtml+xml", "text/html"], Cy = "text/html"; - let Mt = null, Or = null; - const xy = r.createElement("form"), $l = function(T) { - return T instanceof RegExp || T instanceof Function; - }, Qo = function() { - let T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; - if (Or && Or === T) + let ne = !0, Ae = !0, Sr = !1, ll = !0, Ue = !1, ii = !0, sr = !1, Bo = !1, vo = !1, _r = !1, Zi = !1, Ki = !1, hl = !0, cl = !1; + const dl = "user-content-"; + let Lo = !0, si = !1, Br = {}, xe = null; + const Fo = nt({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]); + let ul = null; + const fl = nt({}, ["audio", "video", "img", "source", "image", "track"]); + let Ao = null; + const pl = nt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Qi = "http://www.w3.org/1998/Math/MathML", Ji = "http://www.w3.org/2000/svg", be = "http://www.w3.org/1999/xhtml"; + let vr = be, Mo = !1, Eo = null; + const Em = nt({}, [Qi, Ji, be], No); + let $o = nt({}, ["mi", "mo", "mn", "ms", "mtext"]), Oo = nt({}, ["annotation-xml"]); + const $m = nt({}, ["title", "style", "font", "a", "script"]); + let oi = null; + const Om = ["application/xhtml+xml", "text/html"], Im = "text/html"; + let Mt = null, Lr = null; + const Dm = r.createElement("form"), gl = function(w) { + return w instanceof RegExp || w instanceof Function; + }, Io = function() { + let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + if (Lr && Lr === w) return; - (!T || typeof T != "object") && (T = {}), T = Qt(T), li = // eslint-disable-next-line unicorn/prefer-includes - yy.indexOf(T.PARSER_MEDIA_TYPE) === -1 ? Cy : T.PARSER_MEDIA_TYPE, Mt = li === "application/xhtml+xml" ? ra : Ti, Q = _t(T, "ALLOWED_TAGS") && jt(T.ALLOWED_TAGS) ? lt({}, T.ALLOWED_TAGS, Mt) : dt, et = _t(T, "ALLOWED_ATTR") && jt(T.ALLOWED_ATTR) ? lt({}, T.ALLOWED_ATTR, Mt) : ut, Vo = _t(T, "ALLOWED_NAMESPACES") && jt(T.ALLOWED_NAMESPACES) ? lt({}, T.ALLOWED_NAMESPACES, ra) : gy, Go = _t(T, "ADD_URI_SAFE_ATTR") && jt(T.ADD_URI_SAFE_ATTR) ? lt(Qt(El), T.ADD_URI_SAFE_ATTR, Mt) : El, Al = _t(T, "ADD_DATA_URI_TAGS") && jt(T.ADD_DATA_URI_TAGS) ? lt(Qt(Ml), T.ADD_DATA_URI_TAGS, Mt) : Ml, Te = _t(T, "FORBID_CONTENTS") && jt(T.FORBID_CONTENTS) ? lt({}, T.FORBID_CONTENTS, Mt) : Uo, rt = _t(T, "FORBID_TAGS") && jt(T.FORBID_TAGS) ? lt({}, T.FORBID_TAGS, Mt) : Qt({}), ht = _t(T, "FORBID_ATTR") && jt(T.FORBID_ATTR) ? lt({}, T.FORBID_ATTR, Mt) : Qt({}), Er = _t(T, "USE_PROFILES") ? T.USE_PROFILES && typeof T.USE_PROFILES == "object" ? Qt(T.USE_PROFILES) : T.USE_PROFILES : !1, bt = T.ALLOW_ARIA_ATTR !== !1, Ct = T.ALLOW_DATA_ATTR !== !1, Bt = T.ALLOW_UNKNOWN_PROTOCOLS || !1, ce = T.ALLOW_SELF_CLOSE_IN_ATTR !== !1, re = T.SAFE_FOR_TEMPLATES || !1, Oe = T.SAFE_FOR_XML !== !1, nr = T.WHOLE_DOCUMENT || !1, Mr = T.RETURN_DOM || !1, ls = T.RETURN_DOM_FRAGMENT || !1, hs = T.RETURN_TRUSTED_TYPE || !1, Yo = T.FORCE_BODY || !1, Bl = T.SANITIZE_DOM !== !1, Ll = T.SANITIZE_NAMED_PROPS || !1, jo = T.KEEP_CONTENT !== !1, ni = T.IN_PLACE || !1, Y = Uy(T.ALLOWED_URI_REGEXP) ? T.ALLOWED_URI_REGEXP : Uc, $r = typeof T.NAMESPACE == "string" ? T.NAMESPACE : we, Zo = _t(T, "MATHML_TEXT_INTEGRATION_POINTS") && T.MATHML_TEXT_INTEGRATION_POINTS && typeof T.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Qt(T.MATHML_TEXT_INTEGRATION_POINTS) : lt({}, ["mi", "mo", "mn", "ms", "mtext"]), Ko = _t(T, "HTML_INTEGRATION_POINTS") && T.HTML_INTEGRATION_POINTS && typeof T.HTML_INTEGRATION_POINTS == "object" ? Qt(T.HTML_INTEGRATION_POINTS) : lt({}, ["annotation-xml"]); - const q = _t(T, "CUSTOM_ELEMENT_HANDLING") && T.CUSTOM_ELEMENT_HANDLING && typeof T.CUSTOM_ELEMENT_HANDLING == "object" ? Qt(T.CUSTOM_ELEMENT_HANDLING) : Nr(null); - if (it = Nr(null), _t(q, "tagNameCheck") && $l(q.tagNameCheck) && (it.tagNameCheck = q.tagNameCheck), _t(q, "attributeNameCheck") && $l(q.attributeNameCheck) && (it.attributeNameCheck = q.attributeNameCheck), _t(q, "allowCustomizedBuiltInElements") && typeof q.allowCustomizedBuiltInElements == "boolean" && (it.allowCustomizedBuiltInElements = q.allowCustomizedBuiltInElements), re && (Ct = !1), ls && (Mr = !0), Er && (Q = lt({}, Jl), et = Nr(null), Er.html === !0 && (lt(Q, Ql), lt(et, th)), Er.svg === !0 && (lt(Q, ia), lt(et, aa), lt(et, ps)), Er.svgFilters === !0 && (lt(Q, sa), lt(et, aa), lt(et, ps)), Er.mathMl === !0 && (lt(Q, oa), lt(et, eh), lt(et, ps))), ft.tagCheck = null, ft.attributeCheck = null, _t(T, "ADD_TAGS") && (typeof T.ADD_TAGS == "function" ? ft.tagCheck = T.ADD_TAGS : jt(T.ADD_TAGS) && (Q === dt && (Q = Qt(Q)), lt(Q, T.ADD_TAGS, Mt))), _t(T, "ADD_ATTR") && (typeof T.ADD_ATTR == "function" ? ft.attributeCheck = T.ADD_ATTR : jt(T.ADD_ATTR) && (et === ut && (et = Qt(et)), lt(et, T.ADD_ATTR, Mt))), _t(T, "ADD_URI_SAFE_ATTR") && jt(T.ADD_URI_SAFE_ATTR) && lt(Go, T.ADD_URI_SAFE_ATTR, Mt), _t(T, "FORBID_CONTENTS") && jt(T.FORBID_CONTENTS) && (Te === Uo && (Te = Qt(Te)), lt(Te, T.FORBID_CONTENTS, Mt)), _t(T, "ADD_FORBID_CONTENTS") && jt(T.ADD_FORBID_CONTENTS) && (Te === Uo && (Te = Qt(Te)), lt(Te, T.ADD_FORBID_CONTENTS, Mt)), jo && (Q["#text"] = !0), nr && lt(Q, ["html", "head", "body"]), Q.table && (lt(Q, ["tbody"]), delete rt.tbody), T.TRUSTED_TYPES_POLICY) { - if (typeof T.TRUSTED_TYPES_POLICY.createHTML != "function") - throw ds('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); - if (typeof T.TRUSTED_TYPES_POLICY.createScriptURL != "function") - throw ds('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); - w = T.TRUSTED_TYPES_POLICY, S = w.createHTML(""); + (!w || typeof w != "object") && (w = {}), w = Qt(w), oi = // eslint-disable-next-line unicorn/prefer-includes + Om.indexOf(w.PARSER_MEDIA_TYPE) === -1 ? Im : w.PARSER_MEDIA_TYPE, Mt = oi === "application/xhtml+xml" ? No : gi, tt = _t(w, "ALLOWED_TAGS") && Ut(w.ALLOWED_TAGS) ? nt({}, w.ALLOWED_TAGS, Mt) : yt, X = _t(w, "ALLOWED_ATTR") && Ut(w.ALLOWED_ATTR) ? nt({}, w.ALLOWED_ATTR, Mt) : ct, Eo = _t(w, "ALLOWED_NAMESPACES") && Ut(w.ALLOWED_NAMESPACES) ? nt({}, w.ALLOWED_NAMESPACES, No) : Em, Ao = _t(w, "ADD_URI_SAFE_ATTR") && Ut(w.ADD_URI_SAFE_ATTR) ? nt(Qt(pl), w.ADD_URI_SAFE_ATTR, Mt) : pl, ul = _t(w, "ADD_DATA_URI_TAGS") && Ut(w.ADD_DATA_URI_TAGS) ? nt(Qt(fl), w.ADD_DATA_URI_TAGS, Mt) : fl, xe = _t(w, "FORBID_CONTENTS") && Ut(w.FORBID_CONTENTS) ? nt({}, w.FORBID_CONTENTS, Mt) : Fo, xt = _t(w, "FORBID_TAGS") && Ut(w.FORBID_TAGS) ? nt({}, w.FORBID_TAGS, Mt) : Qt({}), bt = _t(w, "FORBID_ATTR") && Ut(w.FORBID_ATTR) ? nt({}, w.FORBID_ATTR, Mt) : Qt({}), Br = _t(w, "USE_PROFILES") ? w.USE_PROFILES && typeof w.USE_PROFILES == "object" ? Qt(w.USE_PROFILES) : w.USE_PROFILES : !1, ne = w.ALLOW_ARIA_ATTR !== !1, Ae = w.ALLOW_DATA_ATTR !== !1, Sr = w.ALLOW_UNKNOWN_PROTOCOLS || !1, ll = w.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ue = w.SAFE_FOR_TEMPLATES || !1, ii = w.SAFE_FOR_XML !== !1, sr = w.WHOLE_DOCUMENT || !1, _r = w.RETURN_DOM || !1, Zi = w.RETURN_DOM_FRAGMENT || !1, Ki = w.RETURN_TRUSTED_TYPE || !1, vo = w.FORCE_BODY || !1, hl = w.SANITIZE_DOM !== !1, cl = w.SANITIZE_NAMED_PROPS || !1, Lo = w.KEEP_CONTENT !== !1, si = w.IN_PLACE || !1, ut = py(w.ALLOWED_URI_REGEXP) ? w.ALLOWED_URI_REGEXP : Nl, vr = typeof w.NAMESPACE == "string" ? w.NAMESPACE : be, $o = _t(w, "MATHML_TEXT_INTEGRATION_POINTS") && w.MATHML_TEXT_INTEGRATION_POINTS && typeof w.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Qt(w.MATHML_TEXT_INTEGRATION_POINTS) : nt({}, ["mi", "mo", "mn", "ms", "mtext"]), Oo = _t(w, "HTML_INTEGRATION_POINTS") && w.HTML_INTEGRATION_POINTS && typeof w.HTML_INTEGRATION_POINTS == "object" ? Qt(w.HTML_INTEGRATION_POINTS) : nt({}, ["annotation-xml"]); + const N = _t(w, "CUSTOM_ELEMENT_HANDLING") && w.CUSTOM_ELEMENT_HANDLING && typeof w.CUSTOM_ELEMENT_HANDLING == "object" ? Qt(w.CUSTOM_ELEMENT_HANDLING) : Dr(null); + if (ot = Dr(null), _t(N, "tagNameCheck") && gl(N.tagNameCheck) && (ot.tagNameCheck = N.tagNameCheck), _t(N, "attributeNameCheck") && gl(N.attributeNameCheck) && (ot.attributeNameCheck = N.attributeNameCheck), _t(N, "allowCustomizedBuiltInElements") && typeof N.allowCustomizedBuiltInElements == "boolean" && (ot.allowCustomizedBuiltInElements = N.allowCustomizedBuiltInElements), Ue && (Ae = !1), Zi && (_r = !0), Br && (tt = nt({}, Dl), X = Dr(null), Br.html === !0 && (nt(tt, Il), nt(X, Rl)), Br.svg === !0 && (nt(tt, qo), nt(X, Ho), nt(X, is)), Br.svgFilters === !0 && (nt(tt, Wo), nt(X, Ho), nt(X, is)), Br.mathMl === !0 && (nt(tt, zo), nt(X, Pl), nt(X, is))), kt.tagCheck = null, kt.attributeCheck = null, _t(w, "ADD_TAGS") && (typeof w.ADD_TAGS == "function" ? kt.tagCheck = w.ADD_TAGS : Ut(w.ADD_TAGS) && (tt === yt && (tt = Qt(tt)), nt(tt, w.ADD_TAGS, Mt))), _t(w, "ADD_ATTR") && (typeof w.ADD_ATTR == "function" ? kt.attributeCheck = w.ADD_ATTR : Ut(w.ADD_ATTR) && (X === ct && (X = Qt(X)), nt(X, w.ADD_ATTR, Mt))), _t(w, "ADD_URI_SAFE_ATTR") && Ut(w.ADD_URI_SAFE_ATTR) && nt(Ao, w.ADD_URI_SAFE_ATTR, Mt), _t(w, "FORBID_CONTENTS") && Ut(w.FORBID_CONTENTS) && (xe === Fo && (xe = Qt(xe)), nt(xe, w.FORBID_CONTENTS, Mt)), _t(w, "ADD_FORBID_CONTENTS") && Ut(w.ADD_FORBID_CONTENTS) && (xe === Fo && (xe = Qt(xe)), nt(xe, w.ADD_FORBID_CONTENTS, Mt)), Lo && (tt["#text"] = !0), sr && nt(tt, ["html", "head", "body"]), tt.table && (nt(tt, ["tbody"]), delete xt.tbody), w.TRUSTED_TYPES_POLICY) { + if (typeof w.TRUSTED_TYPES_POLICY.createHTML != "function") + throw rs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); + if (typeof w.TRUSTED_TYPES_POLICY.createScriptURL != "function") + throw rs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); + _ = w.TRUSTED_TYPES_POLICY, A = _.createHTML(""); } else - w === void 0 && (w = s0(d, s)), w !== null && typeof S == "string" && (S = w.createHTML("")); - Xt && Xt(T), Or = T; - }, Ol = lt({}, [...ia, ...sa, ...Gy]), Il = lt({}, [...oa, ...Xy]), by = function(T) { - let q = k(T); - (!q || !q.tagName) && (q = { - namespaceURI: $r, + _ === void 0 && (_ = vy(g, s)), _ !== null && typeof A == "string" && (A = _.createHTML("")); + Xt && Xt(w), Lr = w; + }, ml = nt({}, [...qo, ...Wo, ...gy]), yl = nt({}, [...zo, ...my]), Rm = function(w) { + let N = T(w); + (!N || !N.tagName) && (N = { + namespaceURI: vr, tagName: "template" }); - const G = Ti(T.tagName), kt = Ti(q.tagName); - return Vo[T.namespaceURI] ? T.namespaceURI === us ? q.namespaceURI === we ? G === "svg" : q.namespaceURI === cs ? G === "svg" && (kt === "annotation-xml" || Zo[kt]) : !!Ol[G] : T.namespaceURI === cs ? q.namespaceURI === we ? G === "math" : q.namespaceURI === us ? G === "math" && Ko[kt] : !!Il[G] : T.namespaceURI === we ? q.namespaceURI === us && !Ko[kt] || q.namespaceURI === cs && !Zo[kt] ? !1 : !Il[G] && (my[G] || !Ol[G]) : !!(li === "application/xhtml+xml" && Vo[T.namespaceURI]) : !1; - }, ue = function(T) { - ci(t.removed, { - element: T + const U = gi(w.tagName), dt = gi(N.tagName); + return Eo[w.namespaceURI] ? w.namespaceURI === Ji ? N.namespaceURI === be ? U === "svg" : N.namespaceURI === Qi ? U === "svg" && (dt === "annotation-xml" || $o[dt]) : !!ml[U] : w.namespaceURI === Qi ? N.namespaceURI === be ? U === "math" : N.namespaceURI === Ji ? U === "math" && Oo[dt] : !!yl[U] : w.namespaceURI === be ? N.namespaceURI === Ji && !Oo[dt] || N.namespaceURI === Qi && !$o[dt] ? !1 : !yl[U] && ($m[U] || !ml[U]) : !!(oi === "application/xhtml+xml" && Eo[w.namespaceURI]) : !1; + }, le = function(w) { + Ar(t.removed, { + element: w }); try { - k(T).removeChild(T); + T(w).removeChild(w); } catch { - y(T); + C(w); } - }, lr = function(T, q) { + }, or = function(w, N) { try { - ci(t.removed, { - attribute: q.getAttributeNode(T), - from: q + Ar(t.removed, { + attribute: N.getAttributeNode(w), + from: N }); } catch { - ci(t.removed, { + Ar(t.removed, { attribute: null, - from: q + from: N }); } - if (q.removeAttribute(T), T === "is") - if (Mr || ls) + if (N.removeAttribute(w), w === "is") + if (_r || Zi) try { - ue(q); + le(N); } catch { } else try { - q.setAttribute(T, ""); + N.setAttribute(w, ""); } catch { } - }, Dl = function(T) { - let q = null, G = null; - if (Yo) - T = "" + T; + }, Cl = function(w) { + let N = null, U = null; + if (vo) + w = "" + w; else { - const Lt = Xl(T, /^[\r\n\t ]+/); - G = Lt && Lt[0]; + const Lt = Ml(w, /^[\r\n\t ]+/); + U = Lt && Lt[0]; } - li === "application/xhtml+xml" && $r === we && (T = '' + T + ""); - const kt = w ? w.createHTML(T) : T; - if ($r === we) + oi === "application/xhtml+xml" && vr === be && (w = '' + w + ""); + const dt = _ ? _.createHTML(w) : w; + if (vr === be) try { - q = new p().parseFromString(kt, li); + N = new u().parseFromString(dt, oi); } catch { } - if (!q || !q.documentElement) { - q = v.createDocument($r, "template", null); + if (!N || !N.documentElement) { + N = q.createDocument(vr, "template", null); try { - q.documentElement.innerHTML = Xo ? S : kt; + N.documentElement.innerHTML = Mo ? A : dt; } catch { } } - const qt = q.body || q.documentElement; - return T && G && qt.insertBefore(r.createTextNode(G), qt.childNodes[0] || null), $r === we ? N.call(q, nr ? "html" : "body")[0] : nr ? q.documentElement : qt; - }, Pl = function(T) { - return M.call( - T.ownerDocument || T, - T, + const vt = N.body || N.documentElement; + return w && U && vt.insertBefore(r.createTextNode(U), vt.childNodes[0] || null), vr === be ? H.call(N, sr ? "html" : "body")[0] : sr ? N.documentElement : vt; + }, xl = function(w) { + return I.call( + w.ownerDocument || w, + w, // eslint-disable-next-line no-bitwise c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null ); - }, Jo = function(T) { - return T instanceof u && (typeof T.nodeName != "string" || typeof T.textContent != "string" || typeof T.removeChild != "function" || !(T.attributes instanceof h) || typeof T.removeAttribute != "function" || typeof T.setAttribute != "function" || typeof T.namespaceURI != "string" || typeof T.insertBefore != "function" || typeof T.hasChildNodes != "function"); - }, ta = function(T) { - return typeof n == "function" && T instanceof n; + }, bl = function(w) { + w.normalize(); + const N = I.call( + w.ownerDocument || w, + w, + // eslint-disable-next-line no-bitwise + c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, + null + ); + let U = N.nextNode(); + for (; U; ) { + let dt = U.data; + Fr([F, L, E], (vt) => { + dt = Mr(dt, vt, " "); + }), U.data = dt, U = N.nextNode(); + } + }, Do = function(w) { + return w instanceof f && (typeof w.nodeName != "string" || typeof w.textContent != "string" || typeof w.removeChild != "function" || !(w.attributes instanceof d) || typeof w.removeAttribute != "function" || typeof w.setAttribute != "function" || typeof w.namespaceURI != "string" || typeof w.insertBefore != "function" || typeof w.hasChildNodes != "function"); + }, ts = function(w) { + if (!S || typeof w != "object" || w === null) + return !1; + try { + return typeof S(w) == "number"; + } catch { + return !1; + } }; - function Ie(J, T, q) { - hi(J, (G) => { - G.call(t, T, q, Or); + function Me(J, w, N) { + Fr(J, (U) => { + U.call(t, w, N, Lr); }); } - const Rl = function(T) { - let q = null; - if (Ie(O.beforeSanitizeElements, T, null), Jo(T)) - return ue(T), !0; - const G = Mt(T.nodeName); - if (Ie(O.uponSanitizeElement, T, { - tagName: G, - allowedTags: Q - }), Oe && T.hasChildNodes() && !ta(T.firstElementChild) && Pt(/<[/\w!]/g, T.innerHTML) && Pt(/<[/\w!]/g, T.textContent) || Oe && T.namespaceURI === we && G === "style" && ta(T.firstElementChild) || T.nodeType === di.progressingInstruction || Oe && T.nodeType === di.comment && Pt(/<[/\w]/g, T.data)) - return ue(T), !0; - if (rt[G] || !(ft.tagCheck instanceof Function && ft.tagCheck(G)) && !Q[G]) { - if (!rt[G] && ql(G) && (it.tagNameCheck instanceof RegExp && Pt(it.tagNameCheck, G) || it.tagNameCheck instanceof Function && it.tagNameCheck(G))) + const kl = function(w) { + let N = null; + if (Me(M.beforeSanitizeElements, w, null), Do(w)) + return le(w), !0; + const U = Mt(w.nodeName); + if (Me(M.uponSanitizeElement, w, { + tagName: U, + allowedTags: tt + }), ii && w.hasChildNodes() && !ts(w.firstElementChild) && Rt(/<[/\w!]/g, w.innerHTML) && Rt(/<[/\w!]/g, w.textContent) || ii && w.namespaceURI === be && U === "style" && ts(w.firstElementChild) || w.nodeType === Er.progressingInstruction || ii && w.nodeType === Er.comment && Rt(/<[/\w]/g, w.data)) + return le(w), !0; + if (xt[U] || !(kt.tagCheck instanceof Function && kt.tagCheck(U)) && !tt[U]) { + if (!xt[U] && Tl(U) && (ot.tagNameCheck instanceof RegExp && Rt(ot.tagNameCheck, U) || ot.tagNameCheck instanceof Function && ot.tagNameCheck(U))) return !1; - if (jo && !Te[G]) { - const kt = k(T) || T.parentNode, qt = b(T) || T.childNodes; - if (qt && kt) { - const Lt = qt.length; + if (Lo && !xe[U]) { + const dt = T(w) || w.parentNode, vt = k(w) || w.childNodes; + if (vt && dt) { + const Lt = vt.length; for (let Zt = Lt - 1; Zt >= 0; --Zt) { - const ae = m(qt[Zt], !0); - kt.insertBefore(ae, x(T)); + const Ge = y(vt[Zt], !0); + dt.insertBefore(Ge, b(w)); } } } - return ue(T), !0; - } - return T instanceof l && !by(T) || (G === "noscript" || G === "noembed" || G === "noframes") && Pt(/<\/no(script|embed|frames)/i, T.innerHTML) ? (ue(T), !0) : (re && T.nodeType === di.text && (q = T.textContent, hi([W, z, I], (kt) => { - q = Ir(q, kt, " "); - }), T.textContent !== q && (ci(t.removed, { - element: T.cloneNode() - }), T.textContent = q)), Ie(O.afterSanitizeElements, T, null), !1); - }, Nl = function(T, q, G) { - if (ht[q] || Bl && (q === "id" || q === "name") && (G in r || G in xy)) + return le(w), !0; + } + return w instanceof l && !Rm(w) || (U === "noscript" || U === "noembed" || U === "noframes") && Rt(/<\/no(script|embed|frames)/i, w.innerHTML) ? (le(w), !0) : (Ue && w.nodeType === Er.text && (N = w.textContent, Fr([F, L, E], (dt) => { + N = Mr(N, dt, " "); + }), w.textContent !== N && (Ar(t.removed, { + element: w.cloneNode() + }), w.textContent = N)), Me(M.afterSanitizeElements, w, null), !1); + }, wl = function(w, N, U) { + if (bt[N] || hl && (N === "id" || N === "name") && (U in r || U in Dm)) return !1; - if (!(Ct && !ht[q] && Pt(F, q))) { - if (!(bt && Pt(L, q))) { - if (!(ft.attributeCheck instanceof Function && ft.attributeCheck(q, T))) { - if (!et[q] || ht[q]) { - if ( - // First condition does a very basic check if a) it's basically a valid custom element tagname AND - // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck - // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck - !(ql(T) && (it.tagNameCheck instanceof RegExp && Pt(it.tagNameCheck, T) || it.tagNameCheck instanceof Function && it.tagNameCheck(T)) && (it.attributeNameCheck instanceof RegExp && Pt(it.attributeNameCheck, q) || it.attributeNameCheck instanceof Function && it.attributeNameCheck(q, T)) || // Alternative, second condition checks if it's an `is`-attribute, AND - // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck - q === "is" && it.allowCustomizedBuiltInElements && (it.tagNameCheck instanceof RegExp && Pt(it.tagNameCheck, G) || it.tagNameCheck instanceof Function && it.tagNameCheck(G))) - ) return !1; - } else if (!Go[q]) { - if (!Pt(Y, Ir(G, P, ""))) { - if (!((q === "src" || q === "xlink:href" || q === "href") && T !== "script" && Vl(G, "data:") === 0 && Al[T])) { - if (!(Bt && !Pt(E, Ir(G, P, "")))) { - if (G) - return !1; - } + const dt = X[N] || kt.attributeCheck instanceof Function && kt.attributeCheck(N, w); + if (!(Ae && !bt[N] && Rt(D, N))) { + if (!(ne && Rt(z, N))) { + if (!dt || bt[N]) { + if ( + // First condition does a very basic check if a) it's basically a valid custom element tagname AND + // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck + // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck + !(Tl(w) && (ot.tagNameCheck instanceof RegExp && Rt(ot.tagNameCheck, w) || ot.tagNameCheck instanceof Function && ot.tagNameCheck(w)) && (ot.attributeNameCheck instanceof RegExp && Rt(ot.attributeNameCheck, N) || ot.attributeNameCheck instanceof Function && ot.attributeNameCheck(N, w)) || // Alternative, second condition checks if it's an `is`-attribute, AND + // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck + N === "is" && ot.allowCustomizedBuiltInElements && (ot.tagNameCheck instanceof RegExp && Rt(ot.tagNameCheck, U) || ot.tagNameCheck instanceof Function && ot.tagNameCheck(U))) + ) return !1; + } else if (!Ao[N]) { + if (!Rt(ut, Mr(U, lt, ""))) { + if (!((N === "src" || N === "xlink:href" || N === "href") && w !== "script" && El(U, "data:") === 0 && ul[w])) { + if (!(Sr && !Rt(Y, Mr(U, lt, "")))) { + if (U) + return !1; } } } @@ -1241,206 +1248,208 @@ function Xc() { } } return !0; - }, ky = lt({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), ql = function(T) { - return !ky[Ti(T)] && Pt(H, T); - }, zl = function(T) { - Ie(O.beforeSanitizeAttributes, T, null); - const { - attributes: q - } = T; - if (!q || Jo(T)) + }, Pm = nt({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), Tl = function(w) { + return !Pm[gi(w)] && Rt(pt, w); + }, Sl = function(w) { + Me(M.beforeSanitizeAttributes, w, null); + const N = w.attributes; + if (!N || Do(w)) return; - const G = { + const U = { attrName: "", attrValue: "", keepAttr: !0, - allowedAttributes: et, + allowedAttributes: X, forceKeepAttr: void 0 }; - let kt = q.length; - for (; kt--; ) { - const qt = q[kt], { - name: Lt, - namespaceURI: Zt, - value: ae - } = qt, de = Mt(Lt), ea = ae; - let It = Lt === "value" ? ea : qy(ea); - if (G.attrName = de, G.attrValue = It, G.keepAttr = !0, G.forceKeepAttr = void 0, Ie(O.uponSanitizeAttribute, T, G), It = G.attrValue, Ll && (de === "id" || de === "name") && Vl(It, Fl) !== 0 && (lr(Lt, T), It = Fl + It), Oe && Pt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, It)) { - lr(Lt, T); + let dt = N.length; + for (; dt--; ) { + const vt = N[dt], Lt = vt.name, Zt = vt.namespaceURI, Ge = vt.value, Ee = Mt(Lt), Po = Ge; + let It = Lt === "value" ? Po : ly(Po); + if (U.attrName = Ee, U.attrValue = It, U.keepAttr = !0, U.forceKeepAttr = void 0, Me(M.uponSanitizeAttribute, w, U), It = U.attrValue, cl && (Ee === "id" || Ee === "name") && El(It, dl) !== 0 && (or(Lt, w), It = dl + It), ii && Rt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, It)) { + or(Lt, w); continue; } - if (de === "attributename" && Xl(It, "href")) { - lr(Lt, T); + if (Ee === "attributename" && Ml(It, "href")) { + or(Lt, w); continue; } - if (G.forceKeepAttr) + if (U.forceKeepAttr) continue; - if (!G.keepAttr) { - lr(Lt, T); + if (!U.keepAttr) { + or(Lt, w); continue; } - if (!ce && Pt(/\/>/i, It)) { - lr(Lt, T); + if (!ll && Rt(/\/>/i, It)) { + or(Lt, w); continue; } - re && hi([W, z, I], (Yl) => { - It = Ir(It, Yl, " "); + Ue && Fr([F, L, E], (Bl) => { + It = Mr(It, Bl, " "); }); - const Hl = Mt(T.nodeName); - if (!Nl(Hl, de, It)) { - lr(Lt, T); + const _l = Mt(w.nodeName); + if (!wl(_l, Ee, It)) { + or(Lt, w); continue; } - if (w && typeof d == "object" && typeof d.getAttributeType == "function" && !Zt) - switch (d.getAttributeType(Hl, de)) { + if (_ && typeof g == "object" && typeof g.getAttributeType == "function" && !Zt) + switch (g.getAttributeType(_l, Ee)) { case "TrustedHTML": { - It = w.createHTML(It); + It = _.createHTML(It); break; } case "TrustedScriptURL": { - It = w.createScriptURL(It); + It = _.createScriptURL(It); break; } } - if (It !== ea) + if (It !== Po) try { - Zt ? T.setAttributeNS(Zt, Lt, It) : T.setAttribute(Lt, It), Jo(T) ? ue(T) : Gl(t.removed); + Zt ? w.setAttributeNS(Zt, Lt, It) : w.setAttribute(Lt, It), Do(w) ? le(w) : Al(t.removed); } catch { - lr(Lt, T); + or(Lt, w); } } - Ie(O.afterSanitizeAttributes, T, null); - }, Wl = function(T) { - let q = null; - const G = Pl(T); - for (Ie(O.beforeSanitizeShadowDOM, T, null); q = G.nextNode(); ) - Ie(O.uponSanitizeShadowNode, q, null), Rl(q), zl(q), q.content instanceof o && Wl(q.content); - Ie(O.afterSanitizeShadowDOM, T, null); + Me(M.afterSanitizeAttributes, w, null); + }, Ro = function(w) { + let N = null; + const U = xl(w); + for (Me(M.beforeSanitizeShadowDOM, w, null); N = U.nextNode(); ) + Me(M.uponSanitizeShadowNode, N, null), kl(N), Sl(N), N.content instanceof o && Ro(N.content); + Me(M.afterSanitizeShadowDOM, w, null); + }, es = function(w) { + if (w.nodeType === Er.element && w.shadowRoot instanceof o) { + const dt = w.shadowRoot; + es(dt), Ro(dt); + } + const N = w.childNodes; + if (!N) + return; + const U = []; + Fr(N, (dt) => { + Ar(U, dt); + }); + for (const dt of U) + es(dt); }; return t.sanitize = function(J) { - let T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, q = null, G = null, kt = null, qt = null; - if (Xo = !J, Xo && (J = ""), typeof J != "string" && !ta(J) && (J = jy(J), typeof J != "string")) - throw ds("dirty is not a string, aborting"); + let w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, N = null, U = null, dt = null, vt = null; + if (Mo = !J, Mo && (J = ""), typeof J != "string" && !ts(J) && (J = fy(J), typeof J != "string")) + throw rs("dirty is not a string, aborting"); if (!t.isSupported) return J; - if (Ho || Qo(T), t.removed = [], typeof J == "string" && (ni = !1), ni) { - const ae = J.nodeName; - if (typeof ae == "string") { - const de = Mt(ae); - if (!Q[de] || rt[de]) - throw ds("root node is forbidden and cannot be sanitized in-place"); + if (Bo || Io(w), t.removed = [], typeof J == "string" && (si = !1), si) { + const Ge = J.nodeName; + if (typeof Ge == "string") { + const Ee = Mt(Ge); + if (!tt[Ee] || xt[Ee]) + throw rs("root node is forbidden and cannot be sanitized in-place"); } - } else if (J instanceof n) - q = Dl(""), G = q.ownerDocument.importNode(J, !0), G.nodeType === di.element && G.nodeName === "BODY" || G.nodeName === "HTML" ? q = G : q.appendChild(G); + es(J); + } else if (ts(J)) + N = Cl(""), U = N.ownerDocument.importNode(J, !0), U.nodeType === Er.element && U.nodeName === "BODY" || U.nodeName === "HTML" ? N = U : N.appendChild(U), es(U); else { - if (!Mr && !re && !nr && // eslint-disable-next-line unicorn/prefer-includes + if (!_r && !Ue && !sr && // eslint-disable-next-line unicorn/prefer-includes J.indexOf("<") === -1) - return w && hs ? w.createHTML(J) : J; - if (q = Dl(J), !q) - return Mr ? null : hs ? S : ""; - } - q && Yo && ue(q.firstChild); - const Lt = Pl(ni ? J : q); - for (; kt = Lt.nextNode(); ) - Rl(kt), zl(kt), kt.content instanceof o && Wl(kt.content); - if (ni) - return J; - if (Mr) { - if (re) { - q.normalize(); - let ae = q.innerHTML; - hi([W, z, I], (de) => { - ae = Ir(ae, de, " "); - }), q.innerHTML = ae; - } - if (ls) - for (qt = B.call(q.ownerDocument); q.firstChild; ) - qt.appendChild(q.firstChild); + return _ && Ki ? _.createHTML(J) : J; + if (N = Cl(J), !N) + return _r ? null : Ki ? A : ""; + } + N && vo && le(N.firstChild); + const Lt = xl(si ? J : N); + for (; dt = Lt.nextNode(); ) + kl(dt), Sl(dt), dt.content instanceof o && Ro(dt.content); + if (si) + return Ue && bl(J), J; + if (_r) { + if (Ue && bl(N), Zi) + for (vt = R.call(N.ownerDocument); N.firstChild; ) + vt.appendChild(N.firstChild); else - qt = q; - return (et.shadowroot || et.shadowrootmode) && (qt = D.call(i, qt, !0)), qt; - } - let Zt = nr ? q.outerHTML : q.innerHTML; - return nr && Q["!doctype"] && q.ownerDocument && q.ownerDocument.doctype && q.ownerDocument.doctype.name && Pt(Gc, q.ownerDocument.doctype.name) && (Zt = " -` + Zt), re && hi([W, z, I], (ae) => { - Zt = Ir(Zt, ae, " "); - }), w && hs ? w.createHTML(Zt) : Zt; + vt = N; + return (X.shadowroot || X.shadowrootmode) && (vt = W.call(i, vt, !0)), vt; + } + let Zt = sr ? N.outerHTML : N.innerHTML; + return sr && tt["!doctype"] && N.ownerDocument && N.ownerDocument.doctype && N.ownerDocument.doctype.name && Rt(Sy, N.ownerDocument.doctype.name) && (Zt = " +` + Zt), Ue && Fr([F, L, E], (Ge) => { + Zt = Mr(Zt, Ge, " "); + }), _ && Ki ? _.createHTML(Zt) : Zt; }, t.setConfig = function() { let J = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; - Qo(J), Ho = !0; + Io(J), Bo = !0; }, t.clearConfig = function() { - Or = null, Ho = !1; - }, t.isValidAttribute = function(J, T, q) { - Or || Qo({}); - const G = Mt(J), kt = Mt(T); - return Nl(G, kt, q); - }, t.addHook = function(J, T) { - typeof T == "function" && ci(O[J], T); - }, t.removeHook = function(J, T) { - if (T !== void 0) { - const q = Ry(O[J], T); - return q === -1 ? void 0 : Ny(O[J], q, 1)[0]; - } - return Gl(O[J]); + Lr = null, Bo = !1; + }, t.isValidAttribute = function(J, w, N) { + Lr || Io({}); + const U = Mt(J), dt = Mt(w); + return wl(U, dt, N); + }, t.addHook = function(J, w) { + typeof w == "function" && Ar(M[J], w); + }, t.removeHook = function(J, w) { + if (w !== void 0) { + const N = ay(M[J], w); + return N === -1 ? void 0 : ny(M[J], N, 1)[0]; + } + return Al(M[J]); }, t.removeHooks = function(J) { - O[J] = []; + M[J] = []; }, t.removeAllHooks = function() { - O = ih(); + M = ql(); }, t; } -var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, o0 = /\s*%%.*\n/gm, Zc = class extends Error { +var Ur = pc(), gc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Si = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Ly = /\s*%%.*\n/gm, mc = class extends Error { static { - f(this, "UnknownDiagramError"); + p(this, "UnknownDiagramError"); } constructor(e) { super(e), this.name = "UnknownDiagramError"; } -}, xr = {}, Bn = /* @__PURE__ */ f(function(e, t) { - e = e.replace(Vc, "").replace(Mi, "").replace(o0, ` +}, mr = {}, nn = /* @__PURE__ */ p(function(e, t) { + e = e.replace(gc, "").replace(Si, "").replace(Ly, ` `); - for (const [r, { detector: i }] of Object.entries(xr)) + for (const [r, { detector: i }] of Object.entries(mr)) if (i(e, t)) return r; - throw new Zc( + throw new mc( `No diagram type detected matching given configuration for text: ${e}` ); -}, "detectType"), _a = /* @__PURE__ */ f((...e) => { +}, "detectType"), na = /* @__PURE__ */ p((...e) => { for (const { id: t, detector: r, loader: i } of e) - Kc(t, r, i); -}, "registerLazyLoadedDiagrams"), Kc = /* @__PURE__ */ f((e, t, r) => { - xr[e] && R.warn(`Detector with key ${e} already exists. Overwriting.`), xr[e] = { detector: t, loader: r }, R.debug(`Detector with key ${e} added${r ? " with loader" : ""}`); -}, "addDetector"), a0 = /* @__PURE__ */ f((e) => xr[e].loader, "getDiagramLoader"), va = /* @__PURE__ */ f((e, t, { depth: r = 2, clobber: i = !1 } = {}) => { + yc(t, r, i); +}, "registerLazyLoadedDiagrams"), yc = /* @__PURE__ */ p((e, t, r) => { + mr[e] && P.warn(`Detector with key ${e} already exists. Overwriting.`), mr[e] = { detector: t, loader: r }, P.debug(`Detector with key ${e} added${r ? " with loader" : ""}`); +}, "addDetector"), Fy = /* @__PURE__ */ p((e) => mr[e].loader, "getDiagramLoader"), la = /* @__PURE__ */ p((e, t, { depth: r = 2, clobber: i = !1 } = {}) => { const s = { depth: r, clobber: i }; - return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((o) => va(e, o, s)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((o) => { + return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((o) => la(e, o, s)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((o) => { e.includes(o) || e.push(o); }), e) : e === void 0 || r <= 0 ? e != null && typeof e == "object" && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((o) => { - typeof t[o] == "object" && t[o] !== null && (e[o] === void 0 || typeof e[o] == "object") ? (e[o] === void 0 && (e[o] = Array.isArray(t[o]) ? [] : {}), e[o] = va(e[o], t[o], { depth: r - 1, clobber: i })) : (i || typeof e[o] != "object" && typeof t[o] != "object") && (e[o] = t[o]); + typeof t[o] == "object" && t[o] !== null && (e[o] === void 0 || typeof e[o] == "object") ? (e[o] === void 0 && (e[o] = Array.isArray(t[o]) ? [] : {}), e[o] = la(e[o], t[o], { depth: r - 1, clobber: i })) : (i || typeof e[o] != "object" && typeof t[o] != "object") && (e[o] = t[o]); }), e); -}, "assignWithDepth"), $t = va, Ae = "#ffffff", Me = "#f2f2f2", at = /* @__PURE__ */ f((e, t) => t ? C(e, { s: -40, l: 10 }) : C(e, { s: -40, l: -10 }), "mkBorder"), n0 = class { +}, "assignWithDepth"), $t = la, ve = "#ffffff", Le = "#f2f2f2", st = /* @__PURE__ */ p((e, t) => t ? x(e, { s: -40, l: 10 }) : x(e, { s: -40, l: -10 }), "mkBorder"), Ay = class { static { - f(this, "Theme"); + p(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 || C(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || C(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || at(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || at(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || at(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || _(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || _(this.tertiaryColor), this.lineColor = this.lineColor || _(this.background), this.arrowheadColor = this.arrowheadColor || _(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 ? A(this.secondaryColor, 30) : this.secondaryColor), 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 || A(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || _(this.lineColor), 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 || $(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 || A(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || A(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || $(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || $(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 || C(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || C(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || C(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || C(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || C(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || C(this.primaryColor, { h: 210, l: 150 }), this.cScale9 = this.cScale9 || C(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || C(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || C(this.primaryColor, { h: 330 }), this.darkMode) + if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || st(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || st(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || st(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || B(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || B(this.tertiaryColor), this.lineColor = this.lineColor || B(this.background), this.arrowheadColor = this.arrowheadColor || B(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 ? O(this.secondaryColor, 30) : this.secondaryColor), 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 || O(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || B(this.lineColor), 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 || $(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 || O(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || O(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || $(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || $(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210, l: 150 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this["cScale" + t] = A(this["cScale" + t], 75); + this["cScale" + t] = O(this["cScale" + t], 75); else for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this["cScale" + t] = A(this["cScale" + t], 25); + this["cScale" + t] = O(this["cScale" + t], 25); for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this["cScaleInv" + t] = this["cScaleInv" + t] || _(this["cScale" + t]); + this["cScaleInv" + t] = this["cScaleInv" + t] || B(this["cScale" + t]); for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this.darkMode ? this["cScalePeer" + t] = this["cScalePeer" + t] || $(this["cScale" + t], 10) : this["cScalePeer" + t] = this["cScalePeer" + t] || A(this["cScale" + t], 10); + this.darkMode ? this["cScalePeer" + t] = this["cScalePeer" + t] || $(this["cScale" + t], 10) : this["cScalePeer" + t] = this["cScalePeer" + t] || O(this["cScale" + t], 10); this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor; for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["cScaleLabel" + t] = this["cScaleLabel" + t] || this.scaleLabelColor; const e = this.darkMode ? -4 : -1; for (let t = 0; t < 5; t++) - this["surface" + t] = this["surface" + t] || C(this.mainBkg, { h: 180, s: -15, l: e * (5 + t * 3) }), this["surfacePeer" + t] = this["surfacePeer" + t] || C(this.mainBkg, { h: 180, s: -15, l: e * (8 + t * 3) }); - this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || C(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || C(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || C(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || C(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || C(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || C(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || C(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || C(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || C(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || C(this.primaryColor, { h: 60, l: -10 }), this.pie8 = this.pie8 || C(this.primaryColor, { h: -60, l: -10 }), this.pie9 = this.pie9 || C(this.primaryColor, { h: 120, l: 0 }), this.pie10 = this.pie10 || C(this.primaryColor, { h: 60, l: -20 }), this.pie11 = this.pie11 || C(this.primaryColor, { h: -60, l: -20 }), this.pie12 = this.pie12 || C(this.primaryColor, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? C(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? C(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? C(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? C(this.primaryColor, { h: 60, l: -30 }), this.venn5 = this.venn5 ?? C(this.primaryColor, { h: -60, l: -30 }), this.venn6 = this.venn6 ?? C(this.secondaryColor, { h: 60, l: -30 }), this.venn7 = this.venn7 ?? C(this.primaryColor, { h: 120, l: -30 }), this.venn8 = this.venn8 ?? C(this.secondaryColor, { h: 120, l: -30 }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.radar = { + this["surface" + t] = this["surface" + t] || x(this.mainBkg, { h: 180, s: -15, l: e * (5 + t * 3) }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, { h: 180, s: -15, l: e * (8 + t * 3) }); + this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, { h: 60, l: -10 }), this.pie8 = this.pie8 || x(this.primaryColor, { h: -60, l: -10 }), this.pie9 = this.pie9 || x(this.primaryColor, { h: 120, l: 0 }), this.pie10 = this.pie10 || x(this.primaryColor, { h: 60, l: -20 }), this.pie11 = this.pie11 || x(this.primaryColor, { h: -60, l: -20 }), this.pie12 = this.pie12 || x(this.primaryColor, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? x(this.primaryColor, { h: 60, l: -30 }), this.venn5 = this.venn5 ?? x(this.primaryColor, { h: -60, l: -30 }), this.venn6 = this.venn6 ?? x(this.secondaryColor, { h: 60, l: -30 }), this.venn7 = this.venn7 ?? x(this.primaryColor, { h: 120, l: -30 }), this.venn8 = this.venn8 ?? x(this.secondaryColor, { h: 120, l: -30 }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.radar = { axisColor: this.radar?.axisColor || this.lineColor, axisStrokeWidth: this.radar?.axisStrokeWidth || 2, axisLabelFontSize: this.radar?.axisLabelFontSize || 12, @@ -1451,7 +1460,20 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? graticuleOpacity: this.radar?.graticuleOpacity || 0.3, legendBoxSize: this.radar?.legendBoxSize || 12, legendFontSize: this.radar?.legendFontSize || 12 - }, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || C(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || C(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || C(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || C(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || C(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || C(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || be(this.quadrant1Fill) ? $(this.quadrant1Fill) : A(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { + }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = { + backgroundColor: this.wardley?.backgroundColor || this.background, + axisColor: this.wardley?.axisColor || this.lineColor, + axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor, + gridColor: this.wardley?.gridColor || this.gridColor, + componentFill: this.wardley?.componentFill || this.background, + componentStroke: this.wardley?.componentStroke || this.lineColor, + componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor, + linkStroke: this.wardley?.linkStroke || this.lineColor, + evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor, + annotationStroke: this.wardley?.annotationStroke || this.lineColor, + annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor, + annotationFill: this.wardley?.annotationFill || this.background + }, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || ye(this.quadrant1Fill) ? $(this.quadrant1Fill) : O(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { backgroundColor: this.xyChart?.backgroundColor || this.background, titleColor: this.xyChart?.titleColor || this.primaryTextColor, dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor, @@ -1464,7 +1486,7 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor, yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor, plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? A(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || C(this.primaryColor, { h: -30 }), this.git4 = this.git4 || C(this.primaryColor, { h: -60 }), this.git5 = this.git5 || C(this.primaryColor, { h: -90 }), this.git6 = this.git6 || C(this.primaryColor, { h: 60 }), this.git7 = this.git7 || C(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = A(this.git0, 25), this.git1 = A(this.git1, 25), this.git2 = A(this.git2, 25), this.git3 = A(this.git3, 25), this.git4 = A(this.git4, 25), this.git5 = A(this.git5, 25), this.git6 = A(this.git6, 25), this.git7 = A(this.git7, 25)), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Ae, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Me, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor; + }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? O(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = O(this.git0, 25), this.git1 = O(this.git1, 25), this.git2 = O(this.git2, 25), this.git3 = O(this.git3, 25), this.git4 = O(this.git4, 25), this.git5 = O(this.git5, 25), this.git6 = O(this.git6, 25), this.git7 = O(this.git7, 25)), this.gitInv0 = this.gitInv0 || B(this.git0), this.gitInv1 = this.gitInv1 || B(this.git1), this.gitInv2 = this.gitInv2 || B(this.git2), this.gitInv3 = this.gitInv3 || B(this.git3), this.gitInv4 = this.gitInv4 || B(this.git4), this.gitInv5 = this.gitInv5 || B(this.git5), this.gitInv6 = this.gitInv6 || B(this.git6), this.gitInv7 = this.gitInv7 || B(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ve, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Le, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor; } calculate(e) { if (typeof e != "object") { @@ -1478,24 +1500,24 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? this[r] = e[r]; }); } -}, l0 = /* @__PURE__ */ f((e) => { - const t = new n0(); +}, My = /* @__PURE__ */ p((e) => { + const t = new Ay(); return t.calculate(e), t; -}, "getThemeVariables"), h0 = class { +}, "getThemeVariables"), Ey = class { static { - f(this, "Theme"); + p(this, "Theme"); } constructor() { - this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = $(this.primaryColor, 16), this.tertiaryColor = C(this.primaryColor, { h: -160 }), this.primaryBorderColor = _(this.background), this.secondaryBorderColor = at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = at(this.tertiaryColor, this.darkMode), this.primaryTextColor = _(this.primaryColor), this.secondaryTextColor = _(this.secondaryColor), this.tertiaryTextColor = _(this.tertiaryColor), this.lineColor = _(this.background), this.textColor = _(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = $(_("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = Je(255, 255, 255, 0.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 = A("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = A(this.sectionBkgColor, 10), this.taskBorderColor = Je(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = Je(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 || $(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || A(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"; + this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = $(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = B(this.background), this.secondaryBorderColor = st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = st(this.tertiaryColor, this.darkMode), this.primaryTextColor = B(this.primaryColor), this.secondaryTextColor = B(this.secondaryColor), this.tertiaryTextColor = B(this.tertiaryColor), this.lineColor = B(this.background), this.textColor = B(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = $(B("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = Ke(255, 255, 255, 0.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 = O("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = O(this.sectionBkgColor, 10), this.taskBorderColor = Ke(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = Ke(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 || $(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || O(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 = $(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 = $(this.labelBackground, 25), 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.altSectionBkgColor = this.background, this.taskBkgColor = $(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 = _(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 = C(this.primaryColor, { h: 64 }), this.fillType3 = C(this.secondaryColor, { h: 64 }), this.fillType4 = C(this.primaryColor, { h: -64 }), this.fillType5 = C(this.secondaryColor, { h: -64 }), this.fillType6 = C(this.primaryColor, { h: 128 }), this.fillType7 = C(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 || C(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || C(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || C(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || C(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || C(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || C(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || C(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || C(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || C(this.primaryColor, { h: 330 }); + this.secondBkg = $(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 = $(this.labelBackground, 25), 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.altSectionBkgColor = this.background, this.taskBkgColor = $(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 = B(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }); for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) - this["cScaleInv" + e] = this["cScaleInv" + e] || _(this["cScale" + e]); + this["cScaleInv" + e] = this["cScaleInv" + e] || B(this["cScale" + e]); for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || $(this["cScale" + e], 10); for (let e = 0; e < 5; e++) - this["surface" + e] = this["surface" + e] || C(this.mainBkg, { h: 30, s: -30, l: -(-10 + e * 4) }), this["surfacePeer" + e] = this["surfacePeer" + e] || C(this.mainBkg, { h: 30, s: -30, l: -(-7 + e * 4) }); + this["surface" + e] = this["surface" + e] || x(this.mainBkg, { h: 30, s: -30, l: -(-10 + e * 4) }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, { h: 30, s: -30, l: -(-7 + e * 4) }); this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor); for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor; @@ -1504,7 +1526,7 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.mainContrastColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.mainContrastColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7"; for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? $(this["cScale" + e], 30); - this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || C(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || C(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || C(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || C(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || C(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || C(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || be(this.quadrant1Fill) ? $(this.quadrant1Fill) : A(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { + this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || ye(this.quadrant1Fill) ? $(this.quadrant1Fill) : O(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { backgroundColor: this.xyChart?.backgroundColor || this.background, titleColor: this.xyChart?.titleColor || this.primaryTextColor, dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor, @@ -1535,7 +1557,20 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? graticuleOpacity: this.radar?.graticuleOpacity || 0.3, legendBoxSize: this.radar?.legendBoxSize || 12, legendFontSize: this.radar?.legendFontSize || 12 - }, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? A(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = $(this.secondaryColor, 20), this.git1 = $(this.pie2 || this.secondaryColor, 20), this.git2 = $(this.pie3 || this.tertiaryColor, 20), this.git3 = $(this.pie4 || C(this.primaryColor, { h: -30 }), 20), this.git4 = $(this.pie5 || C(this.primaryColor, { h: -60 }), 20), this.git5 = $(this.pie6 || C(this.primaryColor, { h: -90 }), 10), this.git6 = $(this.pie7 || C(this.primaryColor, { h: 60 }), 10), this.git7 = $(this.pie8 || C(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || _(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || _(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || $(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || $(this.background, 2), this.nodeBorder = this.nodeBorder || "#999"; + }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#ff6b6b", this.wardley = { + backgroundColor: this.wardley?.backgroundColor || this.background, + axisColor: this.wardley?.axisColor || this.lineColor, + axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor, + gridColor: this.wardley?.gridColor || this.gridColor, + componentFill: this.wardley?.componentFill || this.mainBkg, + componentStroke: this.wardley?.componentStroke || this.lineColor, + componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor, + linkStroke: this.wardley?.linkStroke || this.lineColor, + evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor, + annotationStroke: this.wardley?.annotationStroke || this.lineColor, + annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor, + annotationFill: this.wardley?.annotationFill || this.mainBkg + }, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? O(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = $(this.secondaryColor, 20), this.git1 = $(this.pie2 || this.secondaryColor, 20), this.git2 = $(this.pie3 || this.tertiaryColor, 20), this.git3 = $(this.pie4 || x(this.primaryColor, { h: -30 }), 20), this.git4 = $(this.pie5 || x(this.primaryColor, { h: -60 }), 20), this.git5 = $(this.pie6 || x(this.primaryColor, { h: -90 }), 10), this.git6 = $(this.pie7 || x(this.primaryColor, { h: 60 }), 10), this.git7 = $(this.pie8 || x(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || B(this.git0), this.gitInv1 = this.gitInv1 || B(this.git1), this.gitInv2 = this.gitInv2 || B(this.git2), this.gitInv3 = this.gitInv3 || B(this.git3), this.gitInv4 = this.gitInv4 || B(this.git4), this.gitInv5 = this.gitInv5 || B(this.git5), this.gitInv6 = this.gitInv6 || B(this.git6), this.gitInv7 = this.gitInv7 || B(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || B(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || B(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "#2d2d2d", this.emUiStroke = this.emUiStroke || "#555", this.emProcessorFill = this.emProcessorFill || $("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || $("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || $("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || $("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || $(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || $(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || $(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || $(this.background, 2), this.nodeBorder = this.nodeBorder || "#999"; } calculate(e) { if (typeof e != "object") { @@ -1549,30 +1584,30 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? this[r] = e[r]; }); } -}, c0 = /* @__PURE__ */ f((e) => { - const t = new h0(); +}, $y = /* @__PURE__ */ p((e) => { + const t = new Ey(); return t.calculate(e), t; -}, "getThemeVariables"), u0 = class { +}, "getThemeVariables"), Oy = class { static { - f(this, "Theme"); + p(this, "Theme"); } constructor() { - this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = C(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = C(this.primaryColor, { h: -160 }), this.primaryBorderColor = at(this.primaryColor, this.darkMode), this.secondaryBorderColor = at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = at(this.tertiaryColor, this.darkMode), this.primaryTextColor = _(this.primaryColor), this.secondaryTextColor = _(this.secondaryColor), this.tertiaryTextColor = _(this.tertiaryColor), this.lineColor = _(this.background), this.textColor = _(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = at(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 = Je(102, 102, 255, 0.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(); + this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = st(this.primaryColor, this.darkMode), this.secondaryBorderColor = st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = st(this.tertiaryColor, this.darkMode), this.primaryTextColor = B(this.primaryColor), this.secondaryTextColor = B(this.secondaryColor), this.tertiaryTextColor = B(this.tertiaryColor), this.lineColor = B(this.background), this.textColor = B(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = st(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 = Ke(102, 102, 255, 0.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 || C(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || C(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || C(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || C(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || C(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || C(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || C(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || C(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || C(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || A(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || A(this.tertiaryColor, 40); + this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || O(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || O(this.tertiaryColor, 40); for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) - this["cScale" + e] = A(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || A(this["cScale" + e], 25); + this["cScale" + e] = O(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || O(this["cScale" + e], 25); for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) - this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e], { h: 180 }); + this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 }); for (let e = 0; e < 5; e++) - this["surface" + e] = this["surface" + e] || C(this.mainBkg, { h: 30, l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || C(this.mainBkg, { h: 30, l: -(7 + e * 5) }); + this["surface" + e] = this["surface" + e] || x(this.mainBkg, { h: 30, l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, { h: 30, l: -(7 + e * 5) }); if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") { - this.cScaleLabel0 = this.cScaleLabel0 || _(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || _(this.labelTextColor); + this.cScaleLabel0 = this.cScaleLabel0 || B(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || B(this.labelTextColor); for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor; } - this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || $(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || $(this.primaryColor, 1), 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.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = C(this.primaryColor, { h: 64 }), this.fillType3 = C(this.secondaryColor, { h: 64 }), this.fillType4 = C(this.primaryColor, { h: -64 }), this.fillType5 = C(this.secondaryColor, { h: -64 }), this.fillType6 = C(this.primaryColor, { h: 128 }), this.fillType7 = C(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || C(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || C(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || C(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || C(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || C(this.primaryColor, { h: 60, l: -20 }), this.pie8 = this.pie8 || C(this.primaryColor, { h: -60, l: -40 }), this.pie9 = this.pie9 || C(this.primaryColor, { h: 120, l: -40 }), this.pie10 = this.pie10 || C(this.primaryColor, { h: 60, l: -40 }), this.pie11 = this.pie11 || C(this.primaryColor, { h: -90, l: -40 }), this.pie12 = this.pie12 || C(this.primaryColor, { h: 120, l: -30 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? C(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? C(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? C(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? C(this.primaryColor, { h: 60, l: -30 }), this.venn5 = this.venn5 ?? C(this.primaryColor, { h: -60, l: -30 }), this.venn6 = this.venn6 ?? C(this.secondaryColor, { h: 60, l: -30 }), this.venn7 = this.venn7 ?? C(this.primaryColor, { h: 120, l: -30 }), this.venn8 = this.venn8 ?? C(this.secondaryColor, { h: 120, l: -30 }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || C(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || C(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || C(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || C(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || C(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || C(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || be(this.quadrant1Fill) ? $(this.quadrant1Fill) : A(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.radar = { + this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || $(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || $(this.primaryColor, 1), 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.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || x(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || x(this.primaryColor, { h: 60, l: -20 }), this.pie8 = this.pie8 || x(this.primaryColor, { h: -60, l: -40 }), this.pie9 = this.pie9 || x(this.primaryColor, { h: 120, l: -40 }), this.pie10 = this.pie10 || x(this.primaryColor, { h: 60, l: -40 }), this.pie11 = this.pie11 || x(this.primaryColor, { h: -90, l: -40 }), this.pie12 = this.pie12 || x(this.primaryColor, { h: 120, l: -30 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? x(this.primaryColor, { h: 60, l: -30 }), this.venn5 = this.venn5 ?? x(this.primaryColor, { h: -60, l: -30 }), this.venn6 = this.venn6 ?? x(this.secondaryColor, { h: 60, l: -30 }), this.venn7 = this.venn7 ?? x(this.primaryColor, { h: 120, l: -30 }), this.venn8 = this.venn8 ?? x(this.secondaryColor, { h: 120, l: -30 }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || ye(this.quadrant1Fill) ? $(this.quadrant1Fill) : O(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.radar = { axisColor: this.radar?.axisColor || this.lineColor, axisStrokeWidth: this.radar?.axisStrokeWidth || 2, axisLabelFontSize: this.radar?.axisLabelFontSize || 12, @@ -1583,6 +1618,19 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? graticuleOpacity: this.radar?.graticuleOpacity || 0.3, legendBoxSize: this.radar?.legendBoxSize || 12, legendFontSize: this.radar?.legendFontSize || 12 + }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = { + backgroundColor: this.wardley?.backgroundColor || this.background, + axisColor: this.wardley?.axisColor || this.lineColor, + axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor, + gridColor: this.wardley?.gridColor || this.gridColor, + componentFill: this.wardley?.componentFill || this.background, + componentStroke: this.wardley?.componentStroke || this.lineColor, + componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor, + linkStroke: this.wardley?.linkStroke || this.lineColor, + evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor, + annotationStroke: this.wardley?.annotationStroke || this.lineColor, + annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor, + annotationFill: this.wardley?.annotationFill || this.background }, this.xyChart = { backgroundColor: this.xyChart?.backgroundColor || this.background, titleColor: this.xyChart?.titleColor || this.primaryTextColor, @@ -1596,7 +1644,7 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor, yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor, plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || C(this.primaryColor, { h: -30 }), this.git4 = this.git4 || C(this.primaryColor, { h: -60 }), this.git5 = this.git5 || C(this.primaryColor, { h: -90 }), this.git6 = this.git6 || C(this.primaryColor, { h: 60 }), this.git7 = this.git7 || C(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = A(this.git0, 25), this.git1 = A(this.git1, 25), this.git2 = A(this.git2, 25), this.git3 = A(this.git3, 25), this.git4 = A(this.git4, 25), this.git5 = A(this.git5, 25), this.git6 = A(this.git6, 25), this.git7 = A(this.git7, 25)), this.gitInv0 = this.gitInv0 || A(_(this.git0), 25), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || _(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || _(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Ae, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Me; + }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = O(this.git0, 25), this.git1 = O(this.git1, 25), this.git2 = O(this.git2, 25), this.git3 = O(this.git3, 25), this.git4 = O(this.git4, 25), this.git5 = O(this.git5, 25), this.git6 = O(this.git6, 25), this.git7 = O(this.git7, 25)), this.gitInv0 = this.gitInv0 || O(B(this.git0), 25), this.gitInv1 = this.gitInv1 || B(this.git1), this.gitInv2 = this.gitInv2 || B(this.git2), this.gitInv3 = this.gitInv3 || B(this.git3), this.gitInv4 = this.gitInv4 || B(this.git4), this.gitInv5 = this.gitInv5 || B(this.git5), this.gitInv6 = this.gitInv6 || B(this.git6), this.gitInv7 = this.gitInv7 || B(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || B(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || B(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ve, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Le; } calculate(e) { if (Object.keys(this).forEach((r) => { @@ -1612,28 +1660,28 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? this[r] = e[r]; }); } -}, d0 = /* @__PURE__ */ f((e) => { - const t = new u0(); +}, Iy = /* @__PURE__ */ p((e) => { + const t = new Oy(); return t.calculate(e), t; -}, "getThemeVariables"), p0 = class { +}, "getThemeVariables"), Dy = class { static { - f(this, "Theme"); + p(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 = $("#cde498", 10), this.primaryBorderColor = at(this.primaryColor, this.darkMode), this.secondaryBorderColor = at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = at(this.tertiaryColor, this.darkMode), this.primaryTextColor = _(this.primaryColor), this.secondaryTextColor = _(this.secondaryColor), this.tertiaryTextColor = _(this.primaryColor), this.lineColor = _(this.background), this.textColor = _(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))"; + 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 = $("#cde498", 10), this.primaryBorderColor = st(this.primaryColor, this.darkMode), this.secondaryBorderColor = st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = st(this.tertiaryColor, this.darkMode), this.primaryTextColor = B(this.primaryColor), this.secondaryTextColor = B(this.secondaryColor), this.tertiaryTextColor = B(this.primaryColor), this.lineColor = B(this.background), this.textColor = B(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 = A(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.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || C(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || C(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || C(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || C(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || C(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || C(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || C(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || C(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || C(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || A(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || A(this.tertiaryColor, 40); + this.actorBorder = O(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.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || O(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || O(this.tertiaryColor, 40); for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) - this["cScale" + e] = A(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || A(this["cScale" + e], 25); + this["cScale" + e] = O(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || O(this["cScale" + e], 25); for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) - this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e], { h: 180 }); + this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 }); this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor; for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor; for (let e = 0; e < 5; e++) - this["surface" + e] = this["surface" + e] || C(this.mainBkg, { h: 30, s: -30, l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || C(this.mainBkg, { h: 30, s: -30, l: -(8 + e * 5) }); - this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || $(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || $(this.mainBkg, 20), 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.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = C(this.primaryColor, { h: 64 }), this.fillType3 = C(this.secondaryColor, { h: 64 }), this.fillType4 = C(this.primaryColor, { h: -64 }), this.fillType5 = C(this.secondaryColor, { h: -64 }), this.fillType6 = C(this.primaryColor, { h: 128 }), this.fillType7 = C(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || C(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || C(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || C(this.tertiaryColor, { h: 40, l: -40 }), this.pie7 = this.pie7 || C(this.primaryColor, { h: 60, l: -10 }), this.pie8 = this.pie8 || C(this.primaryColor, { h: -60, l: -10 }), this.pie9 = this.pie9 || C(this.primaryColor, { h: 120, l: 0 }), this.pie10 = this.pie10 || C(this.primaryColor, { h: 60, l: -50 }), this.pie11 = this.pie11 || C(this.primaryColor, { h: -60, l: -50 }), this.pie12 = this.pie12 || C(this.primaryColor, { h: 120, l: -50 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? C(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? C(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? C(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? C(this.primaryColor, { h: 60, l: -30 }), this.venn5 = this.venn5 ?? C(this.primaryColor, { h: -60, l: -30 }), this.venn6 = this.venn6 ?? C(this.secondaryColor, { h: 60, l: -30 }), this.venn7 = this.venn7 ?? C(this.primaryColor, { h: 120, l: -30 }), this.venn8 = this.venn8 ?? C(this.secondaryColor, { h: 120, l: -30 }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || C(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || C(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || C(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || C(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || C(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || C(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || be(this.quadrant1Fill) ? $(this.quadrant1Fill) : A(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.packet = { + this["surface" + e] = this["surface" + e] || x(this.mainBkg, { h: 30, s: -30, l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, { h: 30, s: -30, l: -(8 + e * 5) }); + this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || $(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || $(this.mainBkg, 20), 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.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { h: 40, l: -40 }), this.pie7 = this.pie7 || x(this.primaryColor, { h: 60, l: -10 }), this.pie8 = this.pie8 || x(this.primaryColor, { h: -60, l: -10 }), this.pie9 = this.pie9 || x(this.primaryColor, { h: 120, l: 0 }), this.pie10 = this.pie10 || x(this.primaryColor, { h: 60, l: -50 }), this.pie11 = this.pie11 || x(this.primaryColor, { h: -60, l: -50 }), this.pie12 = this.pie12 || x(this.primaryColor, { h: 120, l: -50 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? x(this.primaryColor, { h: 60, l: -30 }), this.venn5 = this.venn5 ?? x(this.primaryColor, { h: -60, l: -30 }), this.venn6 = this.venn6 ?? x(this.secondaryColor, { h: 60, l: -30 }), this.venn7 = this.venn7 ?? x(this.primaryColor, { h: 120, l: -30 }), this.venn8 = this.venn8 ?? x(this.secondaryColor, { h: 120, l: -30 }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || ye(this.quadrant1Fill) ? $(this.quadrant1Fill) : O(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.packet = { startByteColor: this.primaryTextColor, endByteColor: this.primaryTextColor, labelColor: this.primaryTextColor, @@ -1651,6 +1699,19 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? graticuleOpacity: this.radar?.graticuleOpacity || 0.3, legendBoxSize: this.radar?.legendBoxSize || 12, legendFontSize: this.radar?.legendFontSize || 12 + }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = { + backgroundColor: this.wardley?.backgroundColor || this.background, + axisColor: this.wardley?.axisColor || this.lineColor, + axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor, + gridColor: this.wardley?.gridColor || this.gridColor, + componentFill: this.wardley?.componentFill || this.background, + componentStroke: this.wardley?.componentStroke || this.lineColor, + componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor, + linkStroke: this.wardley?.linkStroke || this.lineColor, + evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor, + annotationStroke: this.wardley?.annotationStroke || this.lineColor, + annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor, + annotationFill: this.wardley?.annotationFill || this.background }, this.xyChart = { backgroundColor: this.xyChart?.backgroundColor || this.background, titleColor: this.xyChart?.titleColor || this.primaryTextColor, @@ -1664,7 +1725,7 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor, yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor, plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || C(this.primaryColor, { h: -30 }), this.git4 = this.git4 || C(this.primaryColor, { h: -60 }), this.git5 = this.git5 || C(this.primaryColor, { h: -90 }), this.git6 = this.git6 || C(this.primaryColor, { h: 60 }), this.git7 = this.git7 || C(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = A(this.git0, 25), this.git1 = A(this.git1, 25), this.git2 = A(this.git2, 25), this.git3 = A(this.git3, 25), this.git4 = A(this.git4, 25), this.git5 = A(this.git5, 25), this.git6 = A(this.git6, 25), this.git7 = A(this.git7, 25)), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || _(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || _(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Ae, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Me; + }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = O(this.git0, 25), this.git1 = O(this.git1, 25), this.git2 = O(this.git2, 25), this.git3 = O(this.git3, 25), this.git4 = O(this.git4, 25), this.git5 = O(this.git5, 25), this.git6 = O(this.git6, 25), this.git7 = O(this.git7, 25)), this.gitInv0 = this.gitInv0 || B(this.git0), this.gitInv1 = this.gitInv1 || B(this.git1), this.gitInv2 = this.gitInv2 || B(this.git2), this.gitInv3 = this.gitInv3 || B(this.git3), this.gitInv4 = this.gitInv4 || B(this.git4), this.gitInv5 = this.gitInv5 || B(this.git5), this.gitInv6 = this.gitInv6 || B(this.git6), this.gitInv7 = this.gitInv7 || B(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || B(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || B(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ve, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Le; } calculate(e) { if (typeof e != "object") { @@ -1678,34 +1739,34 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? this[r] = e[r]; }); } -}, f0 = /* @__PURE__ */ f((e) => { - const t = new p0(); +}, Ry = /* @__PURE__ */ p((e) => { + const t = new Dy(); return t.calculate(e), t; -}, "getThemeVariables"), g0 = class { +}, "getThemeVariables"), Py = class { static { - f(this, "Theme"); + p(this, "Theme"); } constructor() { - this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = $(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = C(this.primaryColor, { h: -160 }), this.primaryBorderColor = at(this.primaryColor, this.darkMode), this.secondaryBorderColor = at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = at(this.tertiaryColor, this.darkMode), this.primaryTextColor = _(this.primaryColor), this.secondaryTextColor = _(this.secondaryColor), this.tertiaryTextColor = _(this.tertiaryColor), this.lineColor = _(this.background), this.textColor = _(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 || $(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))"; + this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = $(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = st(this.primaryColor, this.darkMode), this.secondaryBorderColor = st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = st(this.tertiaryColor, this.darkMode), this.primaryTextColor = B(this.primaryColor), this.secondaryTextColor = B(this.secondaryColor), this.tertiaryTextColor = B(this.tertiaryColor), this.lineColor = B(this.background), this.textColor = B(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 || $(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 = $(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = $(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, 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 e = 0; e < this.THEME_COLOR_LIMIT; e++) - this["cScaleInv" + e] = this["cScaleInv" + e] || _(this["cScale" + e]); + this["cScaleInv" + e] = this["cScaleInv" + e] || B(this["cScale" + e]); for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) - this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || $(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || A(this["cScale" + e], 10); + this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || $(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || O(this["cScale" + e], 10); this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1; for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor; for (let e = 0; e < 5; e++) - this["surface" + e] = this["surface" + e] || C(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || C(this.mainBkg, { l: -(8 + e * 5) }); - this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = $(this.contrast, 30), this.sectionBkgColor2 = $(this.contrast, 30), this.taskBorderColor = A(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = $(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = A(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", 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 || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = C(this.primaryColor, { h: 64 }), this.fillType3 = C(this.secondaryColor, { h: 64 }), this.fillType4 = C(this.primaryColor, { h: -64 }), this.fillType5 = C(this.secondaryColor, { h: -64 }), this.fillType6 = C(this.primaryColor, { h: 128 }), this.fillType7 = C(this.secondaryColor, { h: 128 }); + this["surface" + e] = this["surface" + e] || x(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, { l: -(8 + e * 5) }); + this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = $(this.contrast, 30), this.sectionBkgColor2 = $(this.contrast, 30), this.taskBorderColor = O(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = $(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = O(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", 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 || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }); for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e]; this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7"; for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e]; - this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || C(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || C(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || C(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || C(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || C(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || C(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || be(this.quadrant1Fill) ? $(this.quadrant1Fill) : A(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { + this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || ye(this.quadrant1Fill) ? $(this.quadrant1Fill) : O(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { backgroundColor: this.xyChart?.backgroundColor || this.background, titleColor: this.xyChart?.titleColor || this.primaryTextColor, dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor, @@ -1729,7 +1790,20 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? graticuleOpacity: this.radar?.graticuleOpacity || 0.3, legendBoxSize: this.radar?.legendBoxSize || 12, legendFontSize: this.radar?.legendFontSize || 12 - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = A(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || C(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || C(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || C(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || C(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || C(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Ae, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Me; + }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = { + backgroundColor: this.wardley?.backgroundColor || this.background, + axisColor: this.wardley?.axisColor || this.lineColor, + axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor, + gridColor: this.wardley?.gridColor || this.gridColor, + componentFill: this.wardley?.componentFill || this.background, + componentStroke: this.wardley?.componentStroke || this.lineColor, + componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor, + linkStroke: this.wardley?.linkStroke || this.lineColor, + evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor, + annotationStroke: this.wardley?.annotationStroke || this.lineColor, + annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor, + annotationFill: this.wardley?.annotationFill || this.background + }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = O(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || B(this.git0), this.gitInv1 = this.gitInv1 || B(this.git1), this.gitInv2 = this.gitInv2 || B(this.git2), this.gitInv3 = this.gitInv3 || B(this.git3), this.gitInv4 = this.gitInv4 || B(this.git4), this.gitInv5 = this.gitInv5 || B(this.git5), this.gitInv6 = this.gitInv6 || B(this.git6), this.gitInv7 = this.gitInv7 || B(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ve, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Le; } calculate(e) { if (typeof e != "object") { @@ -1743,36 +1817,36 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? this[r] = e[r]; }); } -}, m0 = /* @__PURE__ */ f((e) => { - const t = new g0(); +}, Ny = /* @__PURE__ */ p((e) => { + const t = new Py(); return t.calculate(e), t; -}, "getThemeVariables"), y0 = class { +}, "getThemeVariables"), qy = class { static { - f(this, "Theme"); + p(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 = at(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"; + 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 = st(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 || C(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || C(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || at(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || at(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || at(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || _(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || _(this.tertiaryColor), this.lineColor = this.lineColor || _(this.background), this.arrowheadColor = this.arrowheadColor || _(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 ? A(this.secondaryColor, 30) : this.secondaryColor), 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 || A(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || _(this.lineColor); - const e = "#ECECFE", t = "#E9E9F1", r = C(e, { h: 180, l: 5 }); - if (this.sectionBkgColor = this.sectionBkgColor || r, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || $(e, 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 || e, this.cScale1 = this.cScale1 || t, this.cScale2 = this.cScale2 || r, this.cScale3 = this.cScale3 || C(e, { h: 30 }), this.cScale4 = this.cScale4 || C(e, { h: 60 }), this.cScale5 = this.cScale5 || C(e, { h: 90 }), this.cScale6 = this.cScale6 || C(e, { h: 120 }), this.cScale7 = this.cScale7 || C(e, { h: 150 }), this.cScale8 = this.cScale8 || C(e, { h: 210, l: 150 }), this.cScale9 = this.cScale9 || C(e, { h: 270 }), this.cScale10 = this.cScale10 || C(e, { h: 300 }), this.cScale11 = this.cScale11 || C(e, { h: 330 }), this.darkMode) + this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || st(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || st(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || st(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || B(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || B(this.tertiaryColor), this.lineColor = this.lineColor || B(this.background), this.arrowheadColor = this.arrowheadColor || B(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 ? O(this.secondaryColor, 30) : this.secondaryColor), 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 || O(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || B(this.lineColor); + const e = "#ECECFE", t = "#E9E9F1", r = x(e, { h: 180, l: 5 }); + if (this.sectionBkgColor = this.sectionBkgColor || r, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || $(e, 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 || e, this.cScale1 = this.cScale1 || t, this.cScale2 = this.cScale2 || r, this.cScale3 = this.cScale3 || x(e, { h: 30 }), this.cScale4 = this.cScale4 || x(e, { h: 60 }), this.cScale5 = this.cScale5 || x(e, { h: 90 }), this.cScale6 = this.cScale6 || x(e, { h: 120 }), this.cScale7 = this.cScale7 || x(e, { h: 150 }), this.cScale8 = this.cScale8 || x(e, { h: 210, l: 150 }), this.cScale9 = this.cScale9 || x(e, { h: 270 }), this.cScale10 = this.cScale10 || x(e, { h: 300 }), this.cScale11 = this.cScale11 || x(e, { h: 330 }), this.darkMode) for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) - this["cScale" + s] = A(this["cScale" + s], 75); + this["cScale" + s] = O(this["cScale" + s], 75); else for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) - this["cScale" + s] = A(this["cScale" + s], 25); + this["cScale" + s] = O(this["cScale" + s], 25); for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) - this["cScaleInv" + s] = this["cScaleInv" + s] || _(this["cScale" + s]); + this["cScaleInv" + s] = this["cScaleInv" + s] || B(this["cScale" + s]); for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) - this.darkMode ? this["cScalePeer" + s] = this["cScalePeer" + s] || $(this["cScale" + s], 10) : this["cScalePeer" + s] = this["cScalePeer" + s] || A(this["cScale" + s], 10); + this.darkMode ? this["cScalePeer" + s] = this["cScalePeer" + s] || $(this["cScale" + s], 10) : this["cScalePeer" + s] = this["cScalePeer" + s] || O(this["cScale" + s], 10); this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor; for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScaleLabel" + s] = this["cScaleLabel" + s] || this.scaleLabelColor; const i = this.darkMode ? -4 : -1; for (let s = 0; s < 5; s++) - this["surface" + s] = this["surface" + s] || C(this.mainBkg, { h: 180, s: -15, l: i * (5 + s * 3) }), this["surfacePeer" + s] = this["surfacePeer" + s] || C(this.mainBkg, { h: 180, s: -15, l: i * (8 + s * 3) }); - this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || C(e, { h: 64 }), this.fillType3 = this.fillType3 || C(t, { h: 64 }), this.fillType4 = this.fillType4 || C(e, { h: -64 }), this.fillType5 = this.fillType5 || C(t, { h: -64 }), this.fillType6 = this.fillType6 || C(e, { h: 128 }), this.fillType7 = this.fillType7 || C(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || r, this.pie4 = this.pie4 || C(e, { l: -10 }), this.pie5 = this.pie5 || C(t, { l: -10 }), this.pie6 = this.pie6 || C(r, { l: -10 }), this.pie7 = this.pie7 || C(e, { h: 60, l: -10 }), this.pie8 = this.pie8 || C(e, { h: -60, l: -10 }), this.pie9 = this.pie9 || C(e, { h: 120, l: 0 }), this.pie10 = this.pie10 || C(e, { h: 60, l: -20 }), this.pie11 = this.pie11 || C(e, { h: -60, l: -20 }), this.pie12 = this.pie12 || C(e, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || C(e, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || C(e, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || C(e, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || C(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || C(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || C(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || be(this.quadrant1Fill) ? $(this.quadrant1Fill) : A(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { + this["surface" + s] = this["surface" + s] || x(this.mainBkg, { h: 180, s: -15, l: i * (5 + s * 3) }), this["surfacePeer" + s] = this["surfacePeer" + s] || x(this.mainBkg, { h: 180, s: -15, l: i * (8 + s * 3) }); + this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || r, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(r, { l: -10 }), this.pie7 = this.pie7 || x(e, { h: 60, l: -10 }), this.pie8 = this.pie8 || x(e, { h: -60, l: -10 }), this.pie9 = this.pie9 || x(e, { h: 120, l: 0 }), this.pie10 = this.pie10 || x(e, { h: 60, l: -20 }), this.pie11 = this.pie11 || x(e, { h: -60, l: -20 }), this.pie12 = this.pie12 || x(e, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || x(e, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || x(e, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || ye(this.quadrant1Fill) ? $(this.quadrant1Fill) : O(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { backgroundColor: this.xyChart?.backgroundColor || this.background, titleColor: this.xyChart?.titleColor || this.primaryTextColor, xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor, @@ -1784,7 +1858,7 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor, yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor, plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0" - }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? A(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || r, this.git3 = this.git3 || C(e, { h: -30 }), this.git4 = this.git4 || C(e, { h: -60 }), this.git5 = this.git5 || C(e, { h: -90 }), this.git6 = this.git6 || C(e, { h: 60 }), this.git7 = this.git7 || C(e, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = A(this.git0, 25), this.git1 = A(this.git1, 25), this.git2 = A(this.git2, 25), this.git3 = A(this.git3, 25), this.git4 = A(this.git4, 25), this.git5 = A(this.git5, 25), this.git6 = A(this.git6, 25), this.git7 = A(this.git7, 25)), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Ae, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Me; + }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? O(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || r, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = O(this.git0, 25), this.git1 = O(this.git1, 25), this.git2 = O(this.git2, 25), this.git3 = O(this.git3, 25), this.git4 = O(this.git4, 25), this.git5 = O(this.git5, 25), this.git6 = O(this.git6, 25), this.git7 = O(this.git7, 25)), this.gitInv0 = this.gitInv0 || B(this.git0), this.gitInv1 = this.gitInv1 || B(this.git1), this.gitInv2 = this.gitInv2 || B(this.git2), this.gitInv3 = this.gitInv3 || B(this.git3), this.gitInv4 = this.gitInv4 || B(this.git4), this.gitInv5 = this.gitInv5 || B(this.git5), this.gitInv6 = this.gitInv6 || B(this.git6), this.gitInv7 = this.gitInv7 || B(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ve, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Le; } calculate(e) { if (typeof e != "object") { @@ -1798,34 +1872,34 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? this[r] = e[r]; }); } -}, C0 = /* @__PURE__ */ f((e) => { - const t = new y0(); +}, Wy = /* @__PURE__ */ p((e) => { + const t = new qy(); return t.calculate(e), t; -}, "getThemeVariables"), x0 = class { +}, "getThemeVariables"), zy = class { static { - f(this, "Theme"); + p(this, "Theme"); } constructor() { - this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = $(this.primaryColor, 16), this.tertiaryColor = C(this.primaryColor, { h: -160 }), this.primaryBorderColor = _(this.background), this.secondaryBorderColor = at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = at(this.tertiaryColor, this.darkMode), this.primaryTextColor = _(this.primaryColor), this.secondaryTextColor = _(this.secondaryColor), this.tertiaryTextColor = _(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = $(_("#323D47"), 10), this.border1 = "#ccc", this.border2 = Je(255, 255, 255, 0.25), this.arrowheadColor = _(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"; + this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = $(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = B(this.background), this.secondaryBorderColor = st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = st(this.tertiaryColor, this.darkMode), this.primaryTextColor = B(this.primaryColor), this.secondaryTextColor = B(this.secondaryColor), this.tertiaryTextColor = B(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = $(B("#323D47"), 10), this.border1 = "#ccc", this.border2 = Ke(255, 255, 255, 0.25), this.arrowheadColor = B(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 || C(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || C(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || at(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || at(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || at(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || _(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || _(this.tertiaryColor), this.lineColor = this.lineColor || _(this.background), this.arrowheadColor = this.arrowheadColor || _(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.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 ? A(this.secondaryColor, 30) : this.secondaryColor), 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 || A(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || _(this.lineColor), 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 || $(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 || 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 || C(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || C(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || C(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || C(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || C(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || C(this.primaryColor, { h: 210, l: 150 }), this.cScale9 = this.cScale9 || C(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || C(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || C(this.primaryColor, { h: 330 }), this.darkMode) + if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || st(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || st(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || st(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || B(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || B(this.tertiaryColor), this.lineColor = this.lineColor || B(this.background), this.arrowheadColor = this.arrowheadColor || B(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.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 ? O(this.secondaryColor, 30) : this.secondaryColor), 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 || O(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || B(this.lineColor), 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 || $(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 || 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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210, l: 150 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this["cScale" + t] = A(this["cScale" + t], 75); + this["cScale" + t] = O(this["cScale" + t], 75); else for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this["cScale" + t] = A(this["cScale" + t], 25); + this["cScale" + t] = O(this["cScale" + t], 25); for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this["cScaleInv" + t] = this["cScaleInv" + t] || _(this["cScale" + t]); + this["cScaleInv" + t] = this["cScaleInv" + t] || B(this["cScale" + t]); for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this.darkMode ? this["cScalePeer" + t] = this["cScalePeer" + t] || $(this["cScale" + t], 10) : this["cScalePeer" + t] = this["cScalePeer" + t] || A(this["cScale" + t], 10); + this.darkMode ? this["cScalePeer" + t] = this["cScalePeer" + t] || $(this["cScale" + t], 10) : this["cScalePeer" + t] = this["cScalePeer" + t] || O(this["cScale" + t], 10); this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor; for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["cScaleLabel" + t] = this["cScaleLabel" + t] || this.scaleLabelColor; const e = this.darkMode ? -4 : -1; for (let t = 0; t < 5; t++) - this["surface" + t] = this["surface" + t] || C(this.mainBkg, { h: 180, s: -15, l: e * (5 + t * 3) }), this["surfacePeer" + t] = this["surfacePeer" + t] || C(this.mainBkg, { h: 180, s: -15, l: e * (8 + t * 3) }); - this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || C(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || C(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || C(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || C(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || C(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || C(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || C(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || C(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || C(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || C(this.primaryColor, { h: 60, l: -10 }), this.pie8 = this.pie8 || C(this.primaryColor, { h: -60, l: -10 }), this.pie9 = this.pie9 || C(this.primaryColor, { h: 120, l: 0 }), this.pie10 = this.pie10 || C(this.primaryColor, { h: 60, l: -20 }), this.pie11 = this.pie11 || C(this.primaryColor, { h: -60, l: -20 }), this.pie12 = this.pie12 || C(this.primaryColor, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || C(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || C(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || C(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || C(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || C(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || C(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || be(this.quadrant1Fill) ? $(this.quadrant1Fill) : A(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { + this["surface" + t] = this["surface" + t] || x(this.mainBkg, { h: 180, s: -15, l: e * (5 + t * 3) }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, { h: 180, s: -15, l: e * (8 + t * 3) }); + this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, { h: 60, l: -10 }), this.pie8 = this.pie8 || x(this.primaryColor, { h: -60, l: -10 }), this.pie9 = this.pie9 || x(this.primaryColor, { h: 120, l: 0 }), this.pie10 = this.pie10 || x(this.primaryColor, { h: 60, l: -20 }), this.pie11 = this.pie11 || x(this.primaryColor, { h: -60, l: -20 }), this.pie12 = this.pie12 || x(this.primaryColor, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || ye(this.quadrant1Fill) ? $(this.quadrant1Fill) : O(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { backgroundColor: this.xyChart?.backgroundColor || this.background, titleColor: this.xyChart?.titleColor || this.primaryTextColor, xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor, @@ -1837,7 +1911,7 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor, yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor, plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? A(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = A(this.git0, 25), this.git1 = A(this.git1, 25), this.git2 = A(this.git2, 25), this.git3 = A(this.git3, 25), this.git4 = A(this.git4, 25), this.git5 = A(this.git5, 25), this.git6 = A(this.git6, 25), this.git7 = A(this.git7, 25)), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Ae, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Me; + }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? O(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = O(this.git0, 25), this.git1 = O(this.git1, 25), this.git2 = O(this.git2, 25), this.git3 = O(this.git3, 25), this.git4 = O(this.git4, 25), this.git5 = O(this.git5, 25), this.git6 = O(this.git6, 25), this.git7 = O(this.git7, 25)), this.gitInv0 = this.gitInv0 || B(this.git0), this.gitInv1 = this.gitInv1 || B(this.git1), this.gitInv2 = this.gitInv2 || B(this.git2), this.gitInv3 = this.gitInv3 || B(this.git3), this.gitInv4 = this.gitInv4 || B(this.git4), this.gitInv5 = this.gitInv5 || B(this.git5), this.gitInv6 = this.gitInv6 || B(this.git6), this.gitInv7 = this.gitInv7 || B(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ve, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Le; } calculate(e) { if (typeof e != "object") { @@ -1851,39 +1925,39 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? this[r] = e[r]; }); } -}, b0 = /* @__PURE__ */ f((e) => { - const t = new x0(); +}, Hy = /* @__PURE__ */ p((e) => { + const t = new zy(); return t.calculate(e), t; -}, "getThemeVariables"), k0 = class { +}, "getThemeVariables"), Yy = class { static { - f(this, "Theme"); + p(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 = at("#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"; + 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 = st("#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 || C(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || C(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || at(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || at(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || at(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || _(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || _(this.tertiaryColor), this.lineColor = this.lineColor || _(this.background), this.arrowheadColor = this.arrowheadColor || _(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 ? A(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, 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 || A(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || _(this.lineColor); - const e = "#ECECFE", t = "#E9E9F1", r = C(e, { h: 180, l: 5 }); + this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || st(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || st(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || st(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || B(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || B(this.tertiaryColor), this.lineColor = this.lineColor || B(this.background), this.arrowheadColor = this.arrowheadColor || B(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 ? O(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, 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 || O(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || B(this.lineColor); + const e = "#ECECFE", t = "#E9E9F1", r = x(e, { h: 180, l: 5 }); this.sectionBkgColor = this.sectionBkgColor || r, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || $(e, 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.THEME_COLOR_LIMIT; s++) this["cScale" + s] = this.mainBkg; if (this.darkMode) for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) - this["cScale" + s] = A(this["cScale" + s], 75); + this["cScale" + s] = O(this["cScale" + s], 75); else for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) - this["cScale" + s] = A(this["cScale" + s], 25); + this["cScale" + s] = O(this["cScale" + s], 25); for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) - this["cScaleInv" + s] = this["cScaleInv" + s] || _(this["cScale" + s]); + this["cScaleInv" + s] = this["cScaleInv" + s] || B(this["cScale" + s]); for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) - this.darkMode ? this["cScalePeer" + s] = this["cScalePeer" + s] || $(this["cScale" + s], 10) : this["cScalePeer" + s] = this["cScalePeer" + s] || A(this["cScale" + s], 10); + this.darkMode ? this["cScalePeer" + s] = this["cScalePeer" + s] || $(this["cScale" + s], 10) : this["cScalePeer" + s] = this["cScalePeer" + s] || O(this["cScale" + s], 10); this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor; for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScaleLabel" + s] = this["cScaleLabel" + s] || this.scaleLabelColor; const i = this.darkMode ? -4 : -1; for (let s = 0; s < 5; s++) - this["surface" + s] = this["surface" + s] || C(this.mainBkg, { h: 180, s: -15, l: i * (5 + s * 3) }), this["surfacePeer" + s] = this["surfacePeer" + s] || C(this.mainBkg, { h: 180, s: -15, l: i * (8 + s * 3) }); - this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || C(e, { h: 64 }), this.fillType3 = this.fillType3 || C(t, { h: 64 }), this.fillType4 = this.fillType4 || C(e, { h: -64 }), this.fillType5 = this.fillType5 || C(t, { h: -64 }), this.fillType6 = this.fillType6 || C(e, { h: 128 }), this.fillType7 = this.fillType7 || C(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || r, this.pie4 = this.pie4 || C(e, { l: -10 }), this.pie5 = this.pie5 || C(t, { l: -10 }), this.pie6 = this.pie6 || C(r, { l: -10 }), this.pie7 = this.pie7 || C(e, { h: 60, l: -10 }), this.pie8 = this.pie8 || C(e, { h: -60, l: -10 }), this.pie9 = this.pie9 || C(e, { h: 120, l: 0 }), this.pie10 = this.pie10 || C(e, { h: 60, l: -20 }), this.pie11 = this.pie11 || C(e, { h: -60, l: -20 }), this.pie12 = this.pie12 || C(e, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || C(e, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || C(e, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || C(e, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || C(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || C(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || C(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || be(this.quadrant1Fill) ? $(this.quadrant1Fill) : A(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { + this["surface" + s] = this["surface" + s] || x(this.mainBkg, { h: 180, s: -15, l: i * (5 + s * 3) }), this["surfacePeer" + s] = this["surfacePeer" + s] || x(this.mainBkg, { h: 180, s: -15, l: i * (8 + s * 3) }); + this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || r, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(r, { l: -10 }), this.pie7 = this.pie7 || x(e, { h: 60, l: -10 }), this.pie8 = this.pie8 || x(e, { h: -60, l: -10 }), this.pie9 = this.pie9 || x(e, { h: 120, l: 0 }), this.pie10 = this.pie10 || x(e, { h: 60, l: -20 }), this.pie11 = this.pie11 || x(e, { h: -60, l: -20 }), this.pie12 = this.pie12 || x(e, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || x(e, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || x(e, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || ye(this.quadrant1Fill) ? $(this.quadrant1Fill) : O(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { backgroundColor: this.xyChart?.backgroundColor || this.background, titleColor: this.xyChart?.titleColor || this.primaryTextColor, xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor, @@ -1895,7 +1969,7 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor, yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor, plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0" - }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? A(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || r, this.git3 = this.git3 || C(e, { h: -30 }), this.git4 = this.git4 || C(e, { h: -60 }), this.git5 = this.git5 || C(e, { h: -90 }), this.git6 = this.git6 || C(e, { h: 60 }), this.git7 = this.git7 || C(e, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = A(this.git0, 25), this.git1 = A(this.git1, 25), this.git2 = A(this.git2, 25), this.git3 = A(this.git3, 25), this.git4 = A(this.git4, 25), this.git5 = A(this.git5, 25), this.git6 = A(this.git6, 25), this.git7 = A(this.git7, 25)), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Ae, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Me; + }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? O(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || r, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = O(this.git0, 25), this.git1 = O(this.git1, 25), this.git2 = O(this.git2, 25), this.git3 = O(this.git3, 25), this.git4 = O(this.git4, 25), this.git5 = O(this.git5, 25), this.git6 = O(this.git6, 25), this.git7 = O(this.git7, 25)), this.gitInv0 = this.gitInv0 || B(this.git0), this.gitInv1 = this.gitInv1 || B(this.git1), this.gitInv2 = this.gitInv2 || B(this.git2), this.gitInv3 = this.gitInv3 || B(this.git3), this.gitInv4 = this.gitInv4 || B(this.git4), this.gitInv5 = this.gitInv5 || B(this.git5), this.gitInv6 = this.gitInv6 || B(this.git6), this.gitInv7 = this.gitInv7 || B(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ve, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Le; } calculate(e) { if (typeof e != "object") { @@ -1909,34 +1983,34 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? this[r] = e[r]; }); } -}, T0 = /* @__PURE__ */ f((e) => { - const t = new k0(); +}, Uy = /* @__PURE__ */ p((e) => { + const t = new Yy(); return t.calculate(e), t; -}, "getThemeVariables"), w0 = class { +}, "getThemeVariables"), Gy = class { static { - f(this, "Theme"); + p(this, "Theme"); } constructor() { - this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = $(this.primaryColor, 16), this.tertiaryColor = C(this.primaryColor, { h: -160 }), this.primaryBorderColor = _(this.background), this.secondaryBorderColor = at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = at(this.tertiaryColor, this.darkMode), this.primaryTextColor = _(this.primaryColor), this.secondaryTextColor = _(this.secondaryColor), this.tertiaryTextColor = _(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = $(_("#323D47"), 10), this.border1 = "#ccc", this.border2 = Je(255, 255, 255, 0.25), this.arrowheadColor = _(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"; + this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = $(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = B(this.background), this.secondaryBorderColor = st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = st(this.tertiaryColor, this.darkMode), this.primaryTextColor = B(this.primaryColor), this.secondaryTextColor = B(this.secondaryColor), this.tertiaryTextColor = B(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = $(B("#323D47"), 10), this.border1 = "#ccc", this.border2 = Ke(255, 255, 255, 0.25), this.arrowheadColor = B(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 || C(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || C(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || at(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || at(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || at(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || _(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || _(this.tertiaryColor), this.lineColor = this.lineColor || _(this.background), this.arrowheadColor = this.arrowheadColor || _(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.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 ? A(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, 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 || A(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || _(this.lineColor), 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 || $(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.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 || C(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || C(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || C(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || C(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || C(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || C(this.primaryColor, { h: 210, l: 150 }), this.cScale9 = this.cScale9 || C(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || C(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || C(this.primaryColor, { h: 330 }), this.darkMode) + if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || st(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || st(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || st(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || B(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || B(this.tertiaryColor), this.lineColor = this.lineColor || B(this.background), this.arrowheadColor = this.arrowheadColor || B(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.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 ? O(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, 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 || O(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || B(this.lineColor), 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 || $(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.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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210, l: 150 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this["cScale" + t] = A(this["cScale" + t], 75); + this["cScale" + t] = O(this["cScale" + t], 75); else for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this["cScale" + t] = A(this["cScale" + t], 25); + this["cScale" + t] = O(this["cScale" + t], 25); for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this["cScaleInv" + t] = this["cScaleInv" + t] || _(this["cScale" + t]); + this["cScaleInv" + t] = this["cScaleInv" + t] || B(this["cScale" + t]); for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this.darkMode ? this["cScalePeer" + t] = this["cScalePeer" + t] || $(this["cScale" + t], 10) : this["cScalePeer" + t] = this["cScalePeer" + t] || A(this["cScale" + t], 10); + this.darkMode ? this["cScalePeer" + t] = this["cScalePeer" + t] || $(this["cScale" + t], 10) : this["cScalePeer" + t] = this["cScalePeer" + t] || O(this["cScale" + t], 10); this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor; for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["cScaleLabel" + t] = this["cScaleLabel" + t] || this.scaleLabelColor; const e = this.darkMode ? -4 : -1; for (let t = 0; t < 5; t++) - this["surface" + t] = this["surface" + t] || C(this.mainBkg, { h: 180, s: -15, l: e * (5 + t * 3) }), this["surfacePeer" + t] = this["surfacePeer" + t] || C(this.mainBkg, { h: 180, s: -15, l: e * (8 + t * 3) }); - this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || C(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || C(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || C(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || C(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || C(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || C(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || C(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || C(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || C(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || C(this.primaryColor, { h: 60, l: -10 }), this.pie8 = this.pie8 || C(this.primaryColor, { h: -60, l: -10 }), this.pie9 = this.pie9 || C(this.primaryColor, { h: 120, l: 0 }), this.pie10 = this.pie10 || C(this.primaryColor, { h: 60, l: -20 }), this.pie11 = this.pie11 || C(this.primaryColor, { h: -60, l: -20 }), this.pie12 = this.pie12 || C(this.primaryColor, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || C(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || C(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || C(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || C(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || C(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || C(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || be(this.quadrant1Fill) ? $(this.quadrant1Fill) : A(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { + this["surface" + t] = this["surface" + t] || x(this.mainBkg, { h: 180, s: -15, l: e * (5 + t * 3) }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, { h: 180, s: -15, l: e * (8 + t * 3) }); + this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, { h: 60, l: -10 }), this.pie8 = this.pie8 || x(this.primaryColor, { h: -60, l: -10 }), this.pie9 = this.pie9 || x(this.primaryColor, { h: 120, l: 0 }), this.pie10 = this.pie10 || x(this.primaryColor, { h: 60, l: -20 }), this.pie11 = this.pie11 || x(this.primaryColor, { h: -60, l: -20 }), this.pie12 = this.pie12 || x(this.primaryColor, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || ye(this.quadrant1Fill) ? $(this.quadrant1Fill) : O(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { backgroundColor: this.xyChart?.backgroundColor || this.background, titleColor: this.xyChart?.titleColor || this.primaryTextColor, xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor, @@ -1948,7 +2022,7 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor, yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor, plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? A(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || C(this.primaryColor, { h: -30 }), this.git4 = this.git4 || C(this.primaryColor, { h: -60 }), this.git5 = this.git5 || C(this.primaryColor, { h: -90 }), this.git6 = this.git6 || C(this.primaryColor, { h: 60 }), this.git7 = this.git7 || C(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = A(this.git0, 25), this.git1 = A(this.git1, 25), this.git2 = A(this.git2, 25), this.git3 = A(this.git3, 25), this.git4 = A(this.git4, 25), this.git5 = A(this.git5, 25), this.git6 = A(this.git6, 25), this.git7 = A(this.git7, 25)), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Ae, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Me; + }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? O(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = O(this.git0, 25), this.git1 = O(this.git1, 25), this.git2 = O(this.git2, 25), this.git3 = O(this.git3, 25), this.git4 = O(this.git4, 25), this.git5 = O(this.git5, 25), this.git6 = O(this.git6, 25), this.git7 = O(this.git7, 25)), this.gitInv0 = this.gitInv0 || B(this.git0), this.gitInv1 = this.gitInv1 || B(this.git1), this.gitInv2 = this.gitInv2 || B(this.git2), this.gitInv3 = this.gitInv3 || B(this.git3), this.gitInv4 = this.gitInv4 || B(this.git4), this.gitInv5 = this.gitInv5 || B(this.git5), this.gitInv6 = this.gitInv6 || B(this.git6), this.gitInv7 = this.gitInv7 || B(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ve, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Le; } calculate(e) { if (typeof e != "object") { @@ -1962,15 +2036,15 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? this[r] = e[r]; }); } -}, S0 = /* @__PURE__ */ f((e) => { - const t = new w0(); +}, jy = /* @__PURE__ */ p((e) => { + const t = new Gy(); return t.calculate(e), t; -}, "getThemeVariables"), _0 = class { +}, "getThemeVariables"), Xy = class { static { - f(this, "Theme"); + p(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 = at(this.primaryColor, 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.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 = [ + 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 = st(this.primaryColor, 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.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", //Fuchsia-400 "#2DD4BF", @@ -2023,20 +2097,20 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? ], this.filterColor = "#000000"; } updateColors() { - this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || C(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || C(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || at(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || at(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || at(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || _(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || _(this.tertiaryColor), this.lineColor = this.lineColor || _(this.background), this.arrowheadColor = this.arrowheadColor || _(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 ? A(this.secondaryColor, 30) : this.secondaryColor), 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 || A(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || _(this.lineColor); - const e = "#ECECFE", t = "#E9E9F1", r = C(e, { h: 180, l: 5 }); + this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || st(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || st(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || st(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || B(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || B(this.tertiaryColor), this.lineColor = this.lineColor || B(this.background), this.arrowheadColor = this.arrowheadColor || B(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 ? O(this.secondaryColor, 30) : this.secondaryColor), 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 || O(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || B(this.lineColor); + const e = "#ECECFE", t = "#E9E9F1", r = x(e, { h: 180, l: 5 }); this.sectionBkgColor = this.sectionBkgColor || r, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || $(e, 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.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 || "#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"; for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) - this["cScaleInv" + s] = this["cScaleInv" + s] || _(this["cScale" + s]); + this["cScaleInv" + s] = this["cScaleInv" + s] || B(this["cScale" + s]); for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) - this.darkMode ? this["cScalePeer" + s] = this["cScalePeer" + s] || $(this["cScale" + s], 10) : this["cScalePeer" + s] = this["cScalePeer" + s] || A(this["cScale" + s], 10); + this.darkMode ? this["cScalePeer" + s] = this["cScalePeer" + s] || $(this["cScale" + s], 10) : this["cScalePeer" + s] = this["cScalePeer" + s] || O(this["cScale" + s], 10); this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor; for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScaleLabel" + s] = this["cScaleLabel" + s] || this.scaleLabelColor; const i = this.darkMode ? -4 : -1; for (let s = 0; s < 5; s++) - this["surface" + s] = this["surface" + s] || C(this.mainBkg, { h: 180, s: -15, l: i * (5 + s * 3) }), this["surfacePeer" + s] = this["surfacePeer" + s] || C(this.mainBkg, { h: 180, s: -15, l: i * (8 + s * 3) }); - this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || C(e, { h: 64 }), this.fillType3 = this.fillType3 || C(t, { h: 64 }), this.fillType4 = this.fillType4 || C(e, { h: -64 }), this.fillType5 = this.fillType5 || C(t, { h: -64 }), this.fillType6 = this.fillType6 || C(e, { h: 128 }), this.fillType7 = this.fillType7 || C(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || r, this.pie4 = this.pie4 || C(e, { l: -10 }), this.pie5 = this.pie5 || C(t, { l: -10 }), this.pie6 = this.pie6 || C(r, { l: -10 }), this.pie7 = this.pie7 || C(e, { h: 60, l: -10 }), this.pie8 = this.pie8 || C(e, { h: -60, l: -10 }), this.pie9 = this.pie9 || C(e, { h: 120, l: 0 }), this.pie10 = this.pie10 || C(e, { h: 60, l: -20 }), this.pie11 = this.pie11 || C(e, { h: -60, l: -20 }), this.pie12 = this.pie12 || C(e, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || C(e, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || C(e, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || C(e, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || C(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || C(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || C(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || be(this.quadrant1Fill) ? $(this.quadrant1Fill) : A(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { + this["surface" + s] = this["surface" + s] || x(this.mainBkg, { h: 180, s: -15, l: i * (5 + s * 3) }), this["surfacePeer" + s] = this["surfacePeer" + s] || x(this.mainBkg, { h: 180, s: -15, l: i * (8 + s * 3) }); + this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || r, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(r, { l: -10 }), this.pie7 = this.pie7 || x(e, { h: 60, l: -10 }), this.pie8 = this.pie8 || x(e, { h: -60, l: -10 }), this.pie9 = this.pie9 || x(e, { h: 120, l: 0 }), this.pie10 = this.pie10 || x(e, { h: 60, l: -20 }), this.pie11 = this.pie11 || x(e, { h: -60, l: -20 }), this.pie12 = this.pie12 || x(e, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || x(e, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || x(e, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || ye(this.quadrant1Fill) ? $(this.quadrant1Fill) : O(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { backgroundColor: this.xyChart?.backgroundColor || this.background, titleColor: this.xyChart?.titleColor || this.primaryTextColor, xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor, @@ -2048,7 +2122,7 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor, yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor, plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0" - }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? A(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || r, this.git3 = this.git3 || C(e, { h: -30 }), this.git4 = this.git4 || C(e, { h: -60 }), this.git5 = this.git5 || C(e, { h: -90 }), this.git6 = this.git6 || C(e, { h: 60 }), this.git7 = this.git7 || C(e, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = A(this.git0, 25), this.git1 = A(this.git1, 25), this.git2 = A(this.git2, 25), this.git3 = A(this.git3, 25), this.git4 = A(this.git4, 25), this.git5 = A(this.git5, 25), this.git6 = A(this.git6, 25), this.git7 = A(this.git7, 25)), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Ae, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Me; + }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? O(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || r, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = O(this.git0, 25), this.git1 = O(this.git1, 25), this.git2 = O(this.git2, 25), this.git3 = O(this.git3, 25), this.git4 = O(this.git4, 25), this.git5 = O(this.git5, 25), this.git6 = O(this.git6, 25), this.git7 = O(this.git7, 25)), this.gitInv0 = this.gitInv0 || B(this.git0), this.gitInv1 = this.gitInv1 || B(this.git1), this.gitInv2 = this.gitInv2 || B(this.git2), this.gitInv3 = this.gitInv3 || B(this.git3), this.gitInv4 = this.gitInv4 || B(this.git4), this.gitInv5 = this.gitInv5 || B(this.git5), this.gitInv6 = this.gitInv6 || B(this.git6), this.gitInv7 = this.gitInv7 || B(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ve, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Le; } calculate(e) { if (typeof e != "object") { @@ -2062,15 +2136,15 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? this[r] = e[r]; }); } -}, v0 = /* @__PURE__ */ f((e) => { - const t = new _0(); +}, Vy = /* @__PURE__ */ p((e) => { + const t = new Xy(); return t.calculate(e), t; -}, "getThemeVariables"), B0 = class { +}, "getThemeVariables"), Zy = class { static { - f(this, "Theme"); + p(this, "Theme"); } constructor() { - this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = $(this.primaryColor, 16), this.tertiaryColor = C(this.primaryColor, { h: -160 }), this.primaryBorderColor = _(this.background), this.secondaryBorderColor = at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = at(this.tertiaryColor, this.darkMode), this.primaryTextColor = _(this.primaryColor), this.secondaryTextColor = _(this.secondaryColor), this.tertiaryTextColor = _(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = $(_("#323D47"), 10), this.border1 = "#ccc", this.border2 = Je(255, 255, 255, 0.25), this.arrowheadColor = _(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 = [ + this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = $(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = B(this.background), this.secondaryBorderColor = st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = st(this.tertiaryColor, this.darkMode), this.primaryTextColor = B(this.primaryColor), this.secondaryTextColor = B(this.secondaryColor), this.tertiaryTextColor = B(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = $(B("#323D47"), 10), this.border1 = "#ccc", this.border2 = Ke(255, 255, 255, 0.25), this.arrowheadColor = B(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", //Fuchsia-400 "#2DD4BF", @@ -2098,18 +2172,18 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? ], this.bkgColorArray = [], this.filterColor = "#FFFFFF"; } updateColors() { - this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || C(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || C(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || at(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || at(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || at(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || at(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || _(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || _(this.tertiaryColor), this.lineColor = this.lineColor || _(this.background), this.arrowheadColor = this.arrowheadColor || _(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.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 ? A(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, 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 || A(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || _(this.lineColor), this.rootLabelColor = "#FFFFFF", 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 || $(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.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.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 || "#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.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || st(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || st(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || st(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || st(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || B(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || B(this.tertiaryColor), this.lineColor = this.lineColor || B(this.background), this.arrowheadColor = this.arrowheadColor || B(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.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 ? O(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, 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 || O(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || B(this.lineColor), this.rootLabelColor = "#FFFFFF", 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 || $(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.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.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 || "#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"; for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this["cScaleInv" + t] = this["cScaleInv" + t] || _(this["cScale" + t]); + this["cScaleInv" + t] = this["cScaleInv" + t] || B(this["cScale" + t]); for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this.darkMode ? this["cScalePeer" + t] = this["cScalePeer" + t] || $(this["cScale" + t], 10) : this["cScalePeer" + t] = this["cScalePeer" + t] || A(this["cScale" + t], 10); + this.darkMode ? this["cScalePeer" + t] = this["cScalePeer" + t] || $(this["cScale" + t], 10) : this["cScalePeer" + t] = this["cScalePeer" + t] || O(this["cScale" + t], 10); this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor; for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) - this["cScaleLabel" + t] = A(this["cScale" + t], 75); + this["cScaleLabel" + t] = O(this["cScale" + t], 75); const e = this.darkMode ? -4 : -1; for (let t = 0; t < 5; t++) - this["surface" + t] = this["surface" + t] || C(this.mainBkg, { h: 180, s: -15, l: e * (5 + t * 3) }), this["surfacePeer" + t] = this["surfacePeer" + t] || C(this.mainBkg, { h: 180, s: -15, l: e * (8 + t * 3) }); - this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || C(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || C(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || C(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || C(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || C(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || C(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || C(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || C(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || C(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || C(this.primaryColor, { h: 60, l: -10 }), this.pie8 = this.pie8 || C(this.primaryColor, { h: -60, l: -10 }), this.pie9 = this.pie9 || C(this.primaryColor, { h: 120, l: 0 }), this.pie10 = this.pie10 || C(this.primaryColor, { h: 60, l: -20 }), this.pie11 = this.pie11 || C(this.primaryColor, { h: -60, l: -20 }), this.pie12 = this.pie12 || C(this.primaryColor, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || C(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || C(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || C(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || C(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || C(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || C(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || be(this.quadrant1Fill) ? $(this.quadrant1Fill) : A(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { + this["surface" + t] = this["surface" + t] || x(this.mainBkg, { h: 180, s: -15, l: e * (5 + t * 3) }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, { h: 180, s: -15, l: e * (8 + t * 3) }); + this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, { h: 60, l: -10 }), this.pie8 = this.pie8 || x(this.primaryColor, { h: -60, l: -10 }), this.pie9 = this.pie9 || x(this.primaryColor, { h: 120, l: 0 }), this.pie10 = this.pie10 || x(this.primaryColor, { h: 60, l: -20 }), this.pie11 = this.pie11 || x(this.primaryColor, { h: -60, l: -20 }), this.pie12 = this.pie12 || x(this.primaryColor, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || ye(this.quadrant1Fill) ? $(this.quadrant1Fill) : O(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = { backgroundColor: this.xyChart?.backgroundColor || this.background, titleColor: this.xyChart?.titleColor || this.primaryTextColor, xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor, @@ -2121,7 +2195,7 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor, yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor, plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? A(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || C(this.primaryColor, { h: -30 }), this.git4 = this.git4 || C(this.primaryColor, { h: -60 }), this.git5 = this.git5 || C(this.primaryColor, { h: -90 }), this.git6 = this.git6 || C(this.primaryColor, { h: 60 }), this.git7 = this.git7 || C(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = A(this.git0, 25), this.git1 = A(this.git1, 25), this.git2 = A(this.git2, 25), this.git3 = A(this.git3, 25), this.git4 = A(this.git4, 25), this.git5 = A(this.git5, 25), this.git6 = A(this.git6, 25), this.git7 = A(this.git7, 25)), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Ae, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Me; + }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? O(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = $(this.git0, 25), this.git1 = $(this.git1, 25), this.git2 = $(this.git2, 25), this.git3 = $(this.git3, 25), this.git4 = $(this.git4, 25), this.git5 = $(this.git5, 25), this.git6 = $(this.git6, 25), this.git7 = $(this.git7, 25)) : (this.git0 = O(this.git0, 25), this.git1 = O(this.git1, 25), this.git2 = O(this.git2, 25), this.git3 = O(this.git3, 25), this.git4 = O(this.git4, 25), this.git5 = O(this.git5, 25), this.git6 = O(this.git6, 25), this.git7 = O(this.git7, 25)), this.gitInv0 = this.gitInv0 || B(this.git0), this.gitInv1 = this.gitInv1 || B(this.git1), this.gitInv2 = this.gitInv2 || B(this.git2), this.gitInv3 = this.gitInv3 || B(this.git3), this.gitInv4 = this.gitInv4 || B(this.git4), this.gitInv5 = this.gitInv5 || B(this.git5), this.gitInv6 = this.gitInv6 || B(this.git6), this.gitInv7 = this.gitInv7 || B(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ve, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Le; } calculate(e) { if (typeof e != "object") { @@ -2135,44 +2209,44 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? this[r] = e[r]; }); } -}, L0 = /* @__PURE__ */ f((e) => { - const t = new B0(); +}, Ky = /* @__PURE__ */ p((e) => { + const t = new Zy(); return t.calculate(e), t; -}, "getThemeVariables"), qe = { +}, "getThemeVariables"), Re = { base: { - getThemeVariables: l0 + getThemeVariables: My }, dark: { - getThemeVariables: c0 + getThemeVariables: $y }, default: { - getThemeVariables: d0 + getThemeVariables: Iy }, forest: { - getThemeVariables: f0 + getThemeVariables: Ry }, neutral: { - getThemeVariables: m0 + getThemeVariables: Ny }, neo: { - getThemeVariables: C0 + getThemeVariables: Wy }, "neo-dark": { - getThemeVariables: b0 + getThemeVariables: Hy }, redux: { - getThemeVariables: T0 + getThemeVariables: Uy }, "redux-dark": { - getThemeVariables: S0 + getThemeVariables: jy }, "redux-color": { - getThemeVariables: v0 + getThemeVariables: Vy }, "redux-dark-color": { - getThemeVariables: L0 + getThemeVariables: Ky } -}, ie = { +}, Yt = { flowchart: { useMaxWidth: !0, titleTopMargin: 25, @@ -2294,7 +2368,8 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? textHeight: 10, defaultRenderer: "dagre-wrapper", htmlLabels: !1, - hideEmptyMembersBox: !1 + hideEmptyMembersBox: !1, + hierarchicalNamespaces: !0 }, state: { useMaxWidth: !0, @@ -2611,7 +2686,10 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? nodeAlignment: "justify", showValues: !0, prefix: "", - suffix: "" + suffix: "", + nodeWidth: 10, + nodePadding: 12, + labelStyle: "legacy" }, block: { useMaxWidth: !0, @@ -2638,7 +2716,16 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? padding: 40, iconSize: 80, fontSize: 16, - randomize: !1 + randomize: !1, + nodeSeparation: 75, + idealEdgeLengthMultiplier: 1.5, + edgeElasticity: 0.45, + numIter: 2500 + }, + eventmodeling: { + useMaxWidth: !0, + padding: 30, + rowHeight: 32 }, radar: { useMaxWidth: !0, @@ -2685,8 +2772,8 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? fontSize: 16, markdownAutoWrap: !0, suppressErrorRendering: !1 -}, Qc = { - ...ie, +}, Cc = { + ...Yt, // Set, even though they're `undefined` so that `configKeys` finds these keys // TODO: Should we replace these with `null` so that they can go in the JSON Schema? deterministicIDSeed: void 0, @@ -2699,24 +2786,24 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? }, themeCSS: void 0, // add non-JSON default config values - themeVariables: qe.default.getThemeVariables(), + themeVariables: Re.default.getThemeVariables(), sequence: { - ...ie.sequence, - messageFont: /* @__PURE__ */ f(function() { + ...Yt.sequence, + messageFont: /* @__PURE__ */ p(function() { return { fontFamily: this.messageFontFamily, fontSize: this.messageFontSize, fontWeight: this.messageFontWeight }; }, "messageFont"), - noteFont: /* @__PURE__ */ f(function() { + noteFont: /* @__PURE__ */ p(function() { return { fontFamily: this.noteFontFamily, fontSize: this.noteFontSize, fontWeight: this.noteFontWeight }; }, "noteFont"), - actorFont: /* @__PURE__ */ f(function() { + actorFont: /* @__PURE__ */ p(function() { return { fontFamily: this.actorFontFamily, fontSize: this.actorFontSize, @@ -2725,18 +2812,19 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? }, "actorFont") }, class: { - hideEmptyMembersBox: !1 + hideEmptyMembersBox: !1, + hierarchicalNamespaces: !0 }, gantt: { - ...ie.gantt, + ...Yt.gantt, tickInterval: void 0, useWidth: void 0 // can probably be removed since `configKeys` already includes this }, c4: { - ...ie.c4, + ...Yt.c4, useWidth: void 0, - personFont: /* @__PURE__ */ f(function() { + personFont: /* @__PURE__ */ p(function() { return { fontFamily: this.personFontFamily, fontSize: this.personFontSize, @@ -2744,151 +2832,151 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? }; }, "personFont"), flowchart: { - ...ie.flowchart, + ...Yt.flowchart, inheritDir: !1 // default to legacy behavior }, - external_personFont: /* @__PURE__ */ f(function() { + external_personFont: /* @__PURE__ */ p(function() { return { fontFamily: this.external_personFontFamily, fontSize: this.external_personFontSize, fontWeight: this.external_personFontWeight }; }, "external_personFont"), - systemFont: /* @__PURE__ */ f(function() { + systemFont: /* @__PURE__ */ p(function() { return { fontFamily: this.systemFontFamily, fontSize: this.systemFontSize, fontWeight: this.systemFontWeight }; }, "systemFont"), - external_systemFont: /* @__PURE__ */ f(function() { + external_systemFont: /* @__PURE__ */ p(function() { return { fontFamily: this.external_systemFontFamily, fontSize: this.external_systemFontSize, fontWeight: this.external_systemFontWeight }; }, "external_systemFont"), - system_dbFont: /* @__PURE__ */ f(function() { + system_dbFont: /* @__PURE__ */ p(function() { return { fontFamily: this.system_dbFontFamily, fontSize: this.system_dbFontSize, fontWeight: this.system_dbFontWeight }; }, "system_dbFont"), - external_system_dbFont: /* @__PURE__ */ f(function() { + external_system_dbFont: /* @__PURE__ */ p(function() { return { fontFamily: this.external_system_dbFontFamily, fontSize: this.external_system_dbFontSize, fontWeight: this.external_system_dbFontWeight }; }, "external_system_dbFont"), - system_queueFont: /* @__PURE__ */ f(function() { + system_queueFont: /* @__PURE__ */ p(function() { return { fontFamily: this.system_queueFontFamily, fontSize: this.system_queueFontSize, fontWeight: this.system_queueFontWeight }; }, "system_queueFont"), - external_system_queueFont: /* @__PURE__ */ f(function() { + external_system_queueFont: /* @__PURE__ */ p(function() { return { fontFamily: this.external_system_queueFontFamily, fontSize: this.external_system_queueFontSize, fontWeight: this.external_system_queueFontWeight }; }, "external_system_queueFont"), - containerFont: /* @__PURE__ */ f(function() { + containerFont: /* @__PURE__ */ p(function() { return { fontFamily: this.containerFontFamily, fontSize: this.containerFontSize, fontWeight: this.containerFontWeight }; }, "containerFont"), - external_containerFont: /* @__PURE__ */ f(function() { + external_containerFont: /* @__PURE__ */ p(function() { return { fontFamily: this.external_containerFontFamily, fontSize: this.external_containerFontSize, fontWeight: this.external_containerFontWeight }; }, "external_containerFont"), - container_dbFont: /* @__PURE__ */ f(function() { + container_dbFont: /* @__PURE__ */ p(function() { return { fontFamily: this.container_dbFontFamily, fontSize: this.container_dbFontSize, fontWeight: this.container_dbFontWeight }; }, "container_dbFont"), - external_container_dbFont: /* @__PURE__ */ f(function() { + external_container_dbFont: /* @__PURE__ */ p(function() { return { fontFamily: this.external_container_dbFontFamily, fontSize: this.external_container_dbFontSize, fontWeight: this.external_container_dbFontWeight }; }, "external_container_dbFont"), - container_queueFont: /* @__PURE__ */ f(function() { + container_queueFont: /* @__PURE__ */ p(function() { return { fontFamily: this.container_queueFontFamily, fontSize: this.container_queueFontSize, fontWeight: this.container_queueFontWeight }; }, "container_queueFont"), - external_container_queueFont: /* @__PURE__ */ f(function() { + external_container_queueFont: /* @__PURE__ */ p(function() { return { fontFamily: this.external_container_queueFontFamily, fontSize: this.external_container_queueFontSize, fontWeight: this.external_container_queueFontWeight }; }, "external_container_queueFont"), - componentFont: /* @__PURE__ */ f(function() { + componentFont: /* @__PURE__ */ p(function() { return { fontFamily: this.componentFontFamily, fontSize: this.componentFontSize, fontWeight: this.componentFontWeight }; }, "componentFont"), - external_componentFont: /* @__PURE__ */ f(function() { + external_componentFont: /* @__PURE__ */ p(function() { return { fontFamily: this.external_componentFontFamily, fontSize: this.external_componentFontSize, fontWeight: this.external_componentFontWeight }; }, "external_componentFont"), - component_dbFont: /* @__PURE__ */ f(function() { + component_dbFont: /* @__PURE__ */ p(function() { return { fontFamily: this.component_dbFontFamily, fontSize: this.component_dbFontSize, fontWeight: this.component_dbFontWeight }; }, "component_dbFont"), - external_component_dbFont: /* @__PURE__ */ f(function() { + external_component_dbFont: /* @__PURE__ */ p(function() { return { fontFamily: this.external_component_dbFontFamily, fontSize: this.external_component_dbFontSize, fontWeight: this.external_component_dbFontWeight }; }, "external_component_dbFont"), - component_queueFont: /* @__PURE__ */ f(function() { + component_queueFont: /* @__PURE__ */ p(function() { return { fontFamily: this.component_queueFontFamily, fontSize: this.component_queueFontSize, fontWeight: this.component_queueFontWeight }; }, "component_queueFont"), - external_component_queueFont: /* @__PURE__ */ f(function() { + external_component_queueFont: /* @__PURE__ */ p(function() { return { fontFamily: this.external_component_queueFontFamily, fontSize: this.external_component_queueFontSize, fontWeight: this.external_component_queueFontWeight }; }, "external_component_queueFont"), - boundaryFont: /* @__PURE__ */ f(function() { + boundaryFont: /* @__PURE__ */ p(function() { return { fontFamily: this.boundaryFontFamily, fontSize: this.boundaryFontSize, fontWeight: this.boundaryFontWeight }; }, "boundaryFont"), - messageFont: /* @__PURE__ */ f(function() { + messageFont: /* @__PURE__ */ p(function() { return { fontFamily: this.messageFontFamily, fontSize: this.messageFontSize, @@ -2897,29 +2985,37 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? }, "messageFont") }, pie: { - ...ie.pie, + ...Yt.pie, useWidth: 984 }, xyChart: { - ...ie.xyChart, + ...Yt.xyChart, useWidth: void 0 }, requirement: { - ...ie.requirement, + ...Yt.requirement, useWidth: void 0 }, packet: { - ...ie.packet + ...Yt.packet + }, + eventmodeling: { + ...Yt.eventmodeling }, treeView: { - ...ie.treeView, + ...Yt.treeView, useWidth: void 0 }, radar: { - ...ie.radar + ...Yt.radar }, ishikawa: { - ...ie.ishikawa + ...Yt.ishikawa + }, + sankey: { + ...Yt.sankey, + // Set so that `configKeys` includes this key for sanitizeDirective + nodeColors: void 0 }, treemap: { useMaxWidth: !0, @@ -2934,35 +3030,40 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? valueFormat: "," }, venn: { - ...ie.venn + ...Yt.venn } -}, Jc = /* @__PURE__ */ f((e, t = "") => Object.keys(e).reduce((r, i) => Array.isArray(e[i]) ? r : typeof e[i] == "object" && e[i] !== null ? [...r, t + i, ...Jc(e[i], "")] : [...r, t + i], []), "keyify"), F0 = new Set(Jc(Qc, "")), tu = Qc, Ps = /* @__PURE__ */ f((e) => { - if (R.debug("sanitizeDirective called with", e), !(typeof e != "object" || e == null)) { +}, xc = /* @__PURE__ */ p((e, t = "") => Object.keys(e).reduce((r, i) => Array.isArray(e[i]) ? r : typeof e[i] == "object" && e[i] !== null ? [...r, t + i, ...xc(e[i], "")] : [...r, t + i], []), "keyify"), Qy = new Set(xc(Cc, "")), bc = Cc, Fs = /* @__PURE__ */ p((e) => { + if (P.debug("sanitizeDirective called with", e), !(typeof e != "object" || e == null)) { if (Array.isArray(e)) { - e.forEach((t) => Ps(t)); + e.forEach((t) => Fs(t)); return; } for (const t of Object.keys(e)) { - if (R.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !F0.has(t) || e[t] == null) { - R.debug("sanitize deleting key: ", t), delete e[t]; + if (P.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !Qy.has(t) || e[t] == null) { + P.debug("sanitize deleting key: ", t), delete e[t]; continue; } if (typeof e[t] == "object") { - R.debug("sanitizing object", t), Ps(e[t]); + if (t === "nodeColors") { + const i = /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i; + for (const s of Object.keys(e[t])) + (typeof e[t][s] != "string" || !i.test(e[t][s])) && (P.debug("sanitize deleting invalid color:", s, e[t][s]), delete e[t][s]); + } else + P.debug("sanitizing object", t), Fs(e[t]); continue; } const r = ["themeCSS", "fontFamily", "altFontFamily"]; for (const i of r) - t.includes(i) && (R.debug("sanitizing css option", t), e[t] = A0(e[t])); + t.includes(i) && (P.debug("sanitizing css option", t), e[t] = kc(e[t])); } if (e.themeVariables) for (const t of Object.keys(e.themeVariables)) { const r = e.themeVariables[t]; r?.match && !r.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = ""); } - R.debug("After sanitization", e); + P.debug("After sanitization", e); } -}, "sanitizeDirective"), A0 = /* @__PURE__ */ f((e) => { +}, "sanitizeDirective"), kc = /* @__PURE__ */ p((e) => { let t = 0, r = 0; for (const i of e) { if (t < r) @@ -2970,96 +3071,96 @@ var Xr = Xc(), Vc = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Mi = /%{2}{\s*(? i === "{" ? t++ : i === "}" && r++; } return t !== r ? "{ /* ERROR: Unbalanced CSS */ }" : e; -}, "sanitizeCss"), Vr = Object.freeze(tu), je = /* @__PURE__ */ f((e) => !(e === !1 || ["false", "null", "0"].includes(String(e).trim().toLowerCase())), "evaluate"), Jt = $t({}, Vr), Rs, br = [], Ei = $t({}, Vr), bo = /* @__PURE__ */ f((e, t) => { +}, "sanitizeCss"), Gr = Object.freeze(bc), ze = /* @__PURE__ */ p((e) => !(e === !1 || ["false", "null", "0"].includes(String(e).trim().toLowerCase())), "evaluate"), Jt = $t({}, Gr), As, yr = [], _i = $t({}, Gr), no = /* @__PURE__ */ p((e, t) => { let r = $t({}, e), i = {}; for (const s of t) - iu(s), i = $t(i, s); - if (r = $t(r, i), i.theme && i.theme in qe) { - const s = $t({}, Rs), o = $t( + Sc(s), i = $t(i, s); + if (r = $t(r, i), i.theme && i.theme in Re) { + const s = $t({}, As), o = $t( s.themeVariables || {}, i.themeVariables ); - r.theme && r.theme in qe && (r.themeVariables = qe[r.theme].getThemeVariables(o)); + r.theme && r.theme in Re && (r.themeVariables = Re[r.theme].getThemeVariables(o)); } - return Ei = r, ou(Ei), Ei; -}, "updateCurrentConfig"), M0 = /* @__PURE__ */ f((e) => (Jt = $t({}, Vr), Jt = $t(Jt, e), e.theme && qe[e.theme] && (Jt.themeVariables = qe[e.theme].getThemeVariables(e.themeVariables)), bo(Jt, br), Jt), "setSiteConfig"), E0 = /* @__PURE__ */ f((e) => { - Rs = $t({}, e); -}, "saveConfigFromInitialize"), $0 = /* @__PURE__ */ f((e) => (Jt = $t(Jt, e), bo(Jt, br), Jt), "updateSiteConfig"), eu = /* @__PURE__ */ f(() => $t({}, Jt), "getSiteConfig"), ru = /* @__PURE__ */ f((e) => (ou(e), $t(Ei, e), wt()), "setConfig"), wt = /* @__PURE__ */ f(() => $t({}, Ei), "getConfig"), iu = /* @__PURE__ */ f((e) => { + return _i = r, Bc(_i), _i; +}, "updateCurrentConfig"), Jy = /* @__PURE__ */ p((e) => (Jt = $t({}, Gr), Jt = $t(Jt, e), e.theme && Re[e.theme] && (Jt.themeVariables = Re[e.theme].getThemeVariables(e.themeVariables)), no(Jt, yr), Jt), "setSiteConfig"), t0 = /* @__PURE__ */ p((e) => { + As = $t({}, e); +}, "saveConfigFromInitialize"), e0 = /* @__PURE__ */ p((e) => (Jt = $t(Jt, e), no(Jt, yr), Jt), "updateSiteConfig"), wc = /* @__PURE__ */ p(() => $t({}, Jt), "getSiteConfig"), Tc = /* @__PURE__ */ p((e) => (Bc(e), $t(_i, e), Tt()), "setConfig"), Tt = /* @__PURE__ */ p(() => $t({}, _i), "getConfig"), Sc = /* @__PURE__ */ p((e) => { e && (["secure", ...Jt.secure ?? []].forEach((t) => { - Object.hasOwn(e, t) && (R.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]); + Object.hasOwn(e, t) && (P.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]); }), Object.keys(e).forEach((t) => { t.startsWith("__") && delete e[t]; }), Object.keys(e).forEach((t) => { - typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && iu(e[t]); + typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Sc(e[t]); })); -}, "sanitize"), O0 = /* @__PURE__ */ f((e) => { - Ps(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = { +}, "sanitize"), r0 = /* @__PURE__ */ p((e) => { + Fs(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = { ...e.themeVariables, fontFamily: e.fontFamily - }), br.push(e), bo(Jt, br); -}, "addDirective"), Ns = /* @__PURE__ */ f((e = Jt) => { - br = [], bo(e, br); -}, "reset"), I0 = { + }), yr.push(e), no(Jt, yr); +}, "addDirective"), Ms = /* @__PURE__ */ p((e = Jt) => { + yr = [], no(e, yr); +}, "reset"), i0 = { 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." -}, sh = {}, su = /* @__PURE__ */ f((e) => { - sh[e] || (R.warn(I0[e]), sh[e] = !0); -}, "issueWarning"), ou = /* @__PURE__ */ f((e) => { - e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && su("LAZY_LOAD_DEPRECATED"); -}, "checkConfig"), iA = /* @__PURE__ */ f(() => { +}, Wl = {}, _c = /* @__PURE__ */ p((e) => { + Wl[e] || (P.warn(i0[e]), Wl[e] = !0); +}, "issueWarning"), Bc = /* @__PURE__ */ p((e) => { + e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && _c("LAZY_LOAD_DEPRECATED"); +}, "checkConfig"), yv = /* @__PURE__ */ p(() => { let e = {}; - Rs && (e = $t(e, Rs)); - for (const t of br) + As && (e = $t(e, As)); + for (const t of yr) e = $t(e, t); return e; -}, "getUserDefinedConfig"), Vt = /* @__PURE__ */ f((e) => (e.flowchart?.htmlLabels != null && su("FLOWCHART_HTML_LABELS_DEPRECATED"), je(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), Ki = //gi, D0 = /* @__PURE__ */ f((e) => e ? lu(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), P0 = /* @__PURE__ */ (() => { +}, "getUserDefinedConfig"), Vt = /* @__PURE__ */ p((e) => (e.flowchart?.htmlLabels != null && _c("FLOWCHART_HTML_LABELS_DEPRECATED"), ze(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), Wi = //gi, s0 = /* @__PURE__ */ p((e) => e ? Fc(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), o0 = /* @__PURE__ */ (() => { let e = !1; return () => { - e || (au(), e = !0); + e || (vc(), e = !0); }; })(); -function au() { +function vc() { const e = "data-temp-href-target"; - Xr.addHook("beforeSanitizeAttributes", (t) => { + Ur.addHook("beforeSanitizeAttributes", (t) => { t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? ""); - }), Xr.addHook("afterSanitizeAttributes", (t) => { + }), Ur.addHook("afterSanitizeAttributes", (t) => { t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener")); }); } -f(au, "setupDompurifyHooks"); -var nu = /* @__PURE__ */ f((e) => (P0(), Xr.sanitize(e)), "removeScript"), oh = /* @__PURE__ */ f((e, t) => { +p(vc, "setupDompurifyHooks"); +var Lc = /* @__PURE__ */ p((e) => (o0(), Ur.sanitize(e)), "removeScript"), zl = /* @__PURE__ */ p((e, t) => { if (Vt(t)) { const r = t.securityLevel; - r === "antiscript" || r === "strict" || r === "sandbox" ? e = nu(e) : r !== "loose" && (e = lu(e), e = e.replace(//g, ">"), e = e.replace(/=/g, "="), e = z0(e)); + r === "antiscript" || r === "strict" || r === "sandbox" ? e = Lc(e) : r !== "loose" && (e = Fc(e), e = e.replace(//g, ">"), e = e.replace(/=/g, "="), e = h0(e)); } return e; -}, "sanitizeMore"), xe = /* @__PURE__ */ f((e, t) => e && (t.dompurifyConfig ? e = Xr.sanitize(oh(e, t), t.dompurifyConfig).toString() : e = Xr.sanitize(oh(e, t), { +}, "sanitizeMore"), me = /* @__PURE__ */ p((e, t) => e && (t.dompurifyConfig ? e = Ur.sanitize(zl(e, t), t.dompurifyConfig).toString() : e = Ur.sanitize(zl(e, t), { FORBID_TAGS: ["style"] -}).toString(), e), "sanitizeText"), R0 = /* @__PURE__ */ f((e, t) => typeof e == "string" ? xe(e, t) : e.flat().map((r) => xe(r, t)), "sanitizeTextOrArray"), N0 = /* @__PURE__ */ f((e) => Ki.test(e), "hasBreaks"), q0 = /* @__PURE__ */ f((e) => e.split(Ki), "splitBreaks"), z0 = /* @__PURE__ */ f((e) => e.replace(/#br#/g, "
"), "placeholderToBreak"), lu = /* @__PURE__ */ f((e) => e.replace(Ki, "#br#"), "breakToPlaceholder"), W0 = /* @__PURE__ */ f((e) => { +}).toString(), e), "sanitizeText"), a0 = /* @__PURE__ */ p((e, t) => typeof e == "string" ? me(e, t) : e.flat().map((r) => me(r, t)), "sanitizeTextOrArray"), n0 = /* @__PURE__ */ p((e) => Wi.test(e), "hasBreaks"), l0 = /* @__PURE__ */ p((e) => e.split(Wi), "splitBreaks"), h0 = /* @__PURE__ */ p((e) => e.replace(/#br#/g, "
"), "placeholderToBreak"), Fc = /* @__PURE__ */ p((e) => e.replace(Wi, "#br#"), "breakToPlaceholder"), c0 = /* @__PURE__ */ p((e) => { let t = ""; return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t; -}, "getUrl"), H0 = /* @__PURE__ */ f(function(...e) { +}, "getUrl"), d0 = /* @__PURE__ */ p(function(...e) { const t = e.filter((r) => !isNaN(r)); return Math.max(...t); -}, "getMax"), Y0 = /* @__PURE__ */ f(function(...e) { +}, "getMax"), u0 = /* @__PURE__ */ p(function(...e) { const t = e.filter((r) => !isNaN(r)); return Math.min(...t); -}, "getMin"), ah = /* @__PURE__ */ f(function(e) { +}, "getMin"), Hl = /* @__PURE__ */ p(function(e) { const t = e.split(/(,)/), r = []; for (let i = 0; i < t.length; i++) { let s = t[i]; if (s === "," && i > 0 && i + 1 < t.length) { const o = t[i - 1], a = t[i + 1]; - j0(o, a) && (s = o + "," + a, i++, r.pop()); + f0(o, a) && (s = o + "," + a, i++, r.pop()); } - r.push(U0(s)); + r.push(p0(s)); } return r.join(""); -}, "parseGenericTypes"), Ba = /* @__PURE__ */ f((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), j0 = /* @__PURE__ */ f((e, t) => { - const r = Ba(e, "~"), i = Ba(t, "~"); +}, "parseGenericTypes"), ha = /* @__PURE__ */ p((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), f0 = /* @__PURE__ */ p((e, t) => { + const r = ha(e, "~"), i = ha(t, "~"); return r === 1 && i === 1; -}, "shouldCombineSets"), U0 = /* @__PURE__ */ f((e) => { - const t = Ba(e, "~"); +}, "shouldCombineSets"), p0 = /* @__PURE__ */ p((e) => { + const t = ha(e, "~"); let r = !1; if (t <= 1) return e; @@ -3069,22 +3170,22 @@ var nu = /* @__PURE__ */ f((e) => (P0(), Xr.sanitize(e)), "removeScript"), oh = for (; s !== -1 && o !== -1 && s !== o; ) i[s] = "<", i[o] = ">", s = i.indexOf("~"), o = i.lastIndexOf("~"); return r && i.unshift("~"), i.join(""); -}, "processSet"), nh = /* @__PURE__ */ f(() => window.MathMLElement !== void 0, "isMathMLSupported"), La = /\$\$(.*)\$\$/g, Pi = /* @__PURE__ */ f((e) => (e.match(La)?.length ?? 0) > 0, "hasKatex"), sA = /* @__PURE__ */ f(async (e, t) => { +}, "processSet"), Yl = /* @__PURE__ */ p(() => window.MathMLElement !== void 0, "isMathMLSupported"), ca = /\$\$(.*)\$\$/g, Fi = /* @__PURE__ */ p((e) => (e.match(ca)?.length ?? 0) > 0, "hasKatex"), Cv = /* @__PURE__ */ p(async (e, t) => { const r = document.createElement("div"); - r.innerHTML = await hu(e, t), r.id = "katex-temp", r.style.visibility = "hidden", r.style.position = "absolute", r.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", r); + r.innerHTML = await Ac(e, t), r.id = "katex-temp", r.style.visibility = "hidden", r.style.position = "absolute", r.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", r); const s = { width: r.clientWidth, height: r.clientHeight }; return r.remove(), s; -}, "calculateMathMLDimensions"), G0 = /* @__PURE__ */ f(async (e, t) => { - if (!Pi(e)) +}, "calculateMathMLDimensions"), g0 = /* @__PURE__ */ p(async (e, t) => { + if (!Fi(e)) return e; - if (!(nh() || t.legacyMathML || t.forceLegacyMathML)) - return e.replace(La, "MathML is unsupported in this environment."); + if (!(Yl() || t.legacyMathML || t.forceLegacyMathML)) + return e.replace(ca, "MathML is unsupported in this environment."); { - const { default: r } = await import("./katex-D3uLT2GX.js"), i = t.forceLegacyMathML || !nh() && t.legacyMathML ? "htmlAndMathml" : "mathml"; - return e.split(Ki).map( - (s) => Pi(s) ? `
${s}
` : `
${s}
` + const { default: r } = await import("./katex-DoRnZ_sp.js"), i = t.forceLegacyMathML || !Yl() && t.legacyMathML ? "htmlAndMathml" : "mathml"; + return e.split(Wi).map( + (s) => Fi(s) ? `
${s}
` : `
${s}
` ).join("").replace( - La, + ca, (s, o) => r.renderToString(o, { throwOnError: !0, displayMode: !0, @@ -3092,37 +3193,43 @@ var nu = /* @__PURE__ */ f((e) => (P0(), Xr.sanitize(e)), "removeScript"), oh = }).replace(/\n/g, " ").replace(//g, "") ); } -}, "renderKatexUnsanitized"), hu = /* @__PURE__ */ f(async (e, t) => xe(await G0(e, t), t), "renderKatexSanitized"), Qi = { - getRows: D0, - sanitizeText: xe, - sanitizeTextOrArray: R0, - hasBreaks: N0, - splitBreaks: q0, - lineBreakRegex: Ki, - removeScript: nu, - getUrl: W0, - evaluate: je, - getMax: H0, - getMin: Y0 -}, X0 = /* @__PURE__ */ f(function(e, t) { +}, "renderKatexUnsanitized"), Ac = /* @__PURE__ */ p(async (e, t) => me(await g0(e, t), t), "renderKatexSanitized"), zi = { + getRows: s0, + sanitizeText: me, + sanitizeTextOrArray: a0, + hasBreaks: n0, + splitBreaks: l0, + lineBreakRegex: Wi, + removeScript: Lc, + getUrl: c0, + evaluate: ze, + getMax: d0, + getMin: u0 +}, m0 = /* @__PURE__ */ p(function(e, t) { for (let r of t) e.attr(r[0], r[1]); -}, "d3Attrs"), V0 = /* @__PURE__ */ f(function(e, t, r) { +}, "d3Attrs"), y0 = /* @__PURE__ */ p(function(e, t, r) { let i = /* @__PURE__ */ new Map(); return r ? (i.set("width", "100%"), i.set("style", `max-width: ${t}px;`)) : (i.set("height", e), i.set("width", t)), i; -}, "calculateSvgSizeAttrs"), cu = /* @__PURE__ */ f(function(e, t, r, i) { - const s = V0(t, r, i); - X0(e, s); -}, "configureSvgSize"), Z0 = /* @__PURE__ */ f(function(e, t, r, i) { +}, "calculateSvgSizeAttrs"), Mc = /* @__PURE__ */ p(function(e, t, r, i) { + const s = y0(t, r, i); + m0(e, s); +}, "configureSvgSize"), C0 = /* @__PURE__ */ p(function(e, t, r, i) { const s = t.node().getBBox(), o = s.width, a = s.height; - R.info(`SVG bounds: ${o}x${a}`, s); + P.info(`SVG bounds: ${o}x${a}`, s); let n = 0, l = 0; - R.info(`Graph bounds: ${n}x${l}`, e), n = o + r * 2, l = a + r * 2, R.info(`Calculated bounds: ${n}x${l}`), cu(t, l, n, i); + P.info(`Graph bounds: ${n}x${l}`, e), n = o + r * 2, l = a + r * 2, P.info(`Calculated bounds: ${n}x${l}`), Mc(t, l, n, i); const c = `${s.x - r} ${s.y - r} ${s.width + 2 * r} ${s.height + 2 * r}`; t.attr("viewBox", c); -}, "setupGraphViewbox"), Bs = {}, K0 = /* @__PURE__ */ f((e, t, r, i) => { +}, "setupGraphViewbox"), ys = {}; +function da(e) { + return [...e.cssRules].map((t) => t.cssText).join(` +`); +} +p(da, "cssStyleSheetToString"); +var x0 = /* @__PURE__ */ p((e, t, r, i) => { let s = ""; - return e in Bs && Bs[e] ? s = Bs[e]({ ...r, svgId: i }) : R.warn(`No theme found for ${e}`), ` & { + return e in ys && ys[e] ? s = ys[e]({ ...r, svgId: i }) : P.warn(`No theme found for ${e}`), ` & { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; fill: ${r.textColor} @@ -3241,86 +3348,86 @@ var nu = /* @__PURE__ */ f((e) => (P0(), Xr.sanitize(e)), "removeScript"), oh = ${t} `; -}, "getStyles"), Q0 = /* @__PURE__ */ f((e, t) => { - t !== void 0 && (Bs[e] = t); -}, "addStylesForDiagram"), J0 = K0, uu = {}; -By(uu, { - clear: () => tC, - getAccDescription: () => sC, - getAccTitle: () => rC, - getDiagramTitle: () => aC, - setAccDescription: () => iC, - setAccTitle: () => eC, - setDiagramTitle: () => oC +}, "getStyles"), b0 = /* @__PURE__ */ p((e, t) => { + t !== void 0 && (ys[e] = t); +}, "addStylesForDiagram"), k0 = x0, Ec = {}; +Ym(Ec, { + clear: () => w0, + getAccDescription: () => B0, + getAccTitle: () => S0, + getDiagramTitle: () => L0, + setAccDescription: () => _0, + setAccTitle: () => T0, + setDiagramTitle: () => v0 }); -var Ln = "", Fn = "", An = "", Mn = /* @__PURE__ */ f((e) => xe(e, wt()), "sanitizeText"), tC = /* @__PURE__ */ f(() => { - Ln = "", An = "", Fn = ""; -}, "clear"), eC = /* @__PURE__ */ f((e) => { - Ln = Mn(e).replace(/^\s+/g, ""); -}, "setAccTitle"), rC = /* @__PURE__ */ f(() => Ln, "getAccTitle"), iC = /* @__PURE__ */ f((e) => { - An = Mn(e).replace(/\n\s+/g, ` +var ln = "", hn = "", cn = "", dn = /* @__PURE__ */ p((e) => me(e, Tt()), "sanitizeText"), w0 = /* @__PURE__ */ p(() => { + ln = "", cn = "", hn = ""; +}, "clear"), T0 = /* @__PURE__ */ p((e) => { + ln = dn(e).replace(/^\s+/g, ""); +}, "setAccTitle"), S0 = /* @__PURE__ */ p(() => ln, "getAccTitle"), _0 = /* @__PURE__ */ p((e) => { + cn = dn(e).replace(/\n\s+/g, ` `); -}, "setAccDescription"), sC = /* @__PURE__ */ f(() => An, "getAccDescription"), oC = /* @__PURE__ */ f((e) => { - Fn = Mn(e); -}, "setDiagramTitle"), aC = /* @__PURE__ */ f(() => Fn, "getDiagramTitle"), lh = R, nC = vn, gt = wt, oA = ru, aA = Vr, En = /* @__PURE__ */ f((e) => xe(e, gt()), "sanitizeText"), lC = Z0, hC = /* @__PURE__ */ f(() => uu, "getCommonDb"), qs = {}, zs = /* @__PURE__ */ f((e, t, r) => { - qs[e] && lh.warn(`Diagram with id ${e} already registered. Overwriting.`), qs[e] = t, r && Kc(e, r), Q0(e, t.styles), t.injectUtils?.( - lh, - nC, +}, "setAccDescription"), B0 = /* @__PURE__ */ p(() => cn, "getAccDescription"), v0 = /* @__PURE__ */ p((e) => { + hn = dn(e); +}, "setDiagramTitle"), L0 = /* @__PURE__ */ p(() => hn, "getDiagramTitle"), Ul = P, F0 = an, gt = Tt, xv = Tc, bv = Gr, un = /* @__PURE__ */ p((e) => me(e, gt()), "sanitizeText"), A0 = C0, M0 = /* @__PURE__ */ p(() => Ec, "getCommonDb"), Es = {}, $s = /* @__PURE__ */ p((e, t, r) => { + Es[e] && Ul.warn(`Diagram with id ${e} already registered. Overwriting.`), Es[e] = t, r && yc(e, r), b0(e, t.styles), t.injectUtils?.( + Ul, + F0, gt, - En, - lC, - hC(), + un, + A0, + M0(), () => { } ); -}, "registerDiagram"), Fa = /* @__PURE__ */ f((e) => { - if (e in qs) - return qs[e]; - throw new cC(e); -}, "getDiagram"), cC = class extends Error { +}, "registerDiagram"), ua = /* @__PURE__ */ p((e) => { + if (e in Es) + return Es[e]; + throw new E0(e); +}, "getDiagram"), E0 = class extends Error { static { - f(this, "DiagramNotFoundError"); + p(this, "DiagramNotFoundError"); } constructor(e) { super(`Diagram ${e} not found.`); } -}, uC = { value: () => { +}, $0 = { value: () => { } }; -function du() { +function $c() { for (var e = 0, t = arguments.length, r = {}, i; e < t; ++e) { if (!(i = arguments[e] + "") || i in r || /[\s.]/.test(i)) throw new Error("illegal type: " + i); r[i] = []; } - return new Ls(r); + return new Cs(r); } -function Ls(e) { +function Cs(e) { this._ = e; } -function dC(e, t) { +function O0(e, t) { return e.trim().split(/^|\s+/).map(function(r) { var i = "", s = r.indexOf("."); if (s >= 0 && (i = r.slice(s + 1), r = r.slice(0, s)), r && !t.hasOwnProperty(r)) throw new Error("unknown type: " + r); return { type: r, name: i }; }); } -Ls.prototype = du.prototype = { - constructor: Ls, +Cs.prototype = $c.prototype = { + constructor: Cs, on: function(e, t) { - var r = this._, i = dC(e + "", r), s, o = -1, a = i.length; + var r = this._, i = O0(e + "", r), s, o = -1, a = i.length; if (arguments.length < 2) { - for (; ++o < a; ) if ((s = (e = i[o]).type) && (s = pC(r[s], e.name))) return s; + for (; ++o < a; ) if ((s = (e = i[o]).type) && (s = I0(r[s], e.name))) return s; return; } if (t != null && typeof t != "function") throw new Error("invalid callback: " + t); for (; ++o < a; ) - if (s = (e = i[o]).type) r[s] = hh(r[s], e.name, t); - else if (t == null) for (s in r) r[s] = hh(r[s], e.name, null); + if (s = (e = i[o]).type) r[s] = Gl(r[s], e.name, t); + else if (t == null) for (s in r) r[s] = Gl(r[s], e.name, null); return this; }, copy: function() { var e = {}, t = this._; for (var r in t) e[r] = t[r].slice(); - return new Ls(e); + return new Cs(e); }, call: function(e, t) { if ((s = arguments.length - 2) > 0) for (var r = new Array(s), i = 0, s, o; i < s; ++i) r[i] = arguments[i + 2]; @@ -3332,135 +3439,135 @@ Ls.prototype = du.prototype = { for (var i = this._[e], s = 0, o = i.length; s < o; ++s) i[s].value.apply(t, r); } }; -function pC(e, t) { +function I0(e, t) { for (var r = 0, i = e.length, s; r < i; ++r) if ((s = e[r]).name === t) return s.value; } -function hh(e, t, r) { +function Gl(e, t, r) { for (var i = 0, s = e.length; i < s; ++i) if (e[i].name === t) { - e[i] = uC, e = e.slice(0, i).concat(e.slice(i + 1)); + e[i] = $0, e = e.slice(0, i).concat(e.slice(i + 1)); break; } return r != null && e.push({ name: t, value: r }), e; } -var Aa = "http://www.w3.org/1999/xhtml"; -const ch = { +var fa = "http://www.w3.org/1999/xhtml"; +const jl = { svg: "http://www.w3.org/2000/svg", - xhtml: Aa, + xhtml: fa, xlink: "http://www.w3.org/1999/xlink", xml: "http://www.w3.org/XML/1998/namespace", xmlns: "http://www.w3.org/2000/xmlns/" }; -function ko(e) { +function lo(e) { var t = e += "", r = t.indexOf(":"); - return r >= 0 && (t = e.slice(0, r)) !== "xmlns" && (e = e.slice(r + 1)), ch.hasOwnProperty(t) ? { space: ch[t], local: e } : e; + return r >= 0 && (t = e.slice(0, r)) !== "xmlns" && (e = e.slice(r + 1)), jl.hasOwnProperty(t) ? { space: jl[t], local: e } : e; } -function fC(e) { +function D0(e) { return function() { var t = this.ownerDocument, r = this.namespaceURI; - return r === Aa && t.documentElement.namespaceURI === Aa ? t.createElement(e) : t.createElementNS(r, e); + return r === fa && t.documentElement.namespaceURI === fa ? t.createElement(e) : t.createElementNS(r, e); }; } -function gC(e) { +function R0(e) { return function() { return this.ownerDocument.createElementNS(e.space, e.local); }; } -function pu(e) { - var t = ko(e); - return (t.local ? gC : fC)(t); +function Oc(e) { + var t = lo(e); + return (t.local ? R0 : D0)(t); } -function mC() { +function P0() { } -function $n(e) { - return e == null ? mC : function() { +function fn(e) { + return e == null ? P0 : function() { return this.querySelector(e); }; } -function yC(e) { - typeof e != "function" && (e = $n(e)); +function N0(e) { + typeof e != "function" && (e = fn(e)); for (var t = this._groups, r = t.length, i = new Array(r), s = 0; s < r; ++s) for (var o = t[s], a = o.length, n = i[s] = new Array(a), l, c, h = 0; h < a; ++h) (l = o[h]) && (c = e.call(l, l.__data__, h, o)) && ("__data__" in l && (c.__data__ = l.__data__), n[h] = c); - return new oe(i, this._parents); + return new ie(i, this._parents); } -function CC(e) { +function q0(e) { return e == null ? [] : Array.isArray(e) ? e : Array.from(e); } -function xC() { +function W0() { return []; } -function fu(e) { - return e == null ? xC : function() { +function Ic(e) { + return e == null ? W0 : function() { return this.querySelectorAll(e); }; } -function bC(e) { +function z0(e) { return function() { - return CC(e.apply(this, arguments)); + return q0(e.apply(this, arguments)); }; } -function kC(e) { - typeof e == "function" ? e = bC(e) : e = fu(e); +function H0(e) { + typeof e == "function" ? e = z0(e) : e = Ic(e); for (var t = this._groups, r = t.length, i = [], s = [], o = 0; o < r; ++o) for (var a = t[o], n = a.length, l, c = 0; c < n; ++c) (l = a[c]) && (i.push(e.call(l, l.__data__, c, a)), s.push(l)); - return new oe(i, s); + return new ie(i, s); } -function gu(e) { +function Dc(e) { return function() { return this.matches(e); }; } -function mu(e) { +function Rc(e) { return function(t) { return t.matches(e); }; } -var TC = Array.prototype.find; -function wC(e) { +var Y0 = Array.prototype.find; +function U0(e) { return function() { - return TC.call(this.children, e); + return Y0.call(this.children, e); }; } -function SC() { +function G0() { return this.firstElementChild; } -function _C(e) { - return this.select(e == null ? SC : wC(typeof e == "function" ? e : mu(e))); +function j0(e) { + return this.select(e == null ? G0 : U0(typeof e == "function" ? e : Rc(e))); } -var vC = Array.prototype.filter; -function BC() { +var X0 = Array.prototype.filter; +function V0() { return Array.from(this.children); } -function LC(e) { +function Z0(e) { return function() { - return vC.call(this.children, e); + return X0.call(this.children, e); }; } -function FC(e) { - return this.selectAll(e == null ? BC : LC(typeof e == "function" ? e : mu(e))); +function K0(e) { + return this.selectAll(e == null ? V0 : Z0(typeof e == "function" ? e : Rc(e))); } -function AC(e) { - typeof e != "function" && (e = gu(e)); +function Q0(e) { + typeof e != "function" && (e = Dc(e)); for (var t = this._groups, r = t.length, i = new Array(r), s = 0; s < r; ++s) for (var o = t[s], a = o.length, n = i[s] = [], l, c = 0; c < a; ++c) (l = o[c]) && e.call(l, l.__data__, c, o) && n.push(l); - return new oe(i, this._parents); + return new ie(i, this._parents); } -function yu(e) { +function Pc(e) { return new Array(e.length); } -function MC() { - return new oe(this._enter || this._groups.map(yu), this._parents); +function J0() { + return new ie(this._enter || this._groups.map(Pc), this._parents); } -function Ws(e, t) { +function Os(e, t) { this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t; } -Ws.prototype = { - constructor: Ws, +Os.prototype = { + constructor: Os, appendChild: function(e) { return this._parent.insertBefore(e, this._next); }, @@ -3474,91 +3581,91 @@ Ws.prototype = { return this._parent.querySelectorAll(e); } }; -function EC(e) { +function tC(e) { return function() { return e; }; } -function $C(e, t, r, i, s, o) { +function eC(e, t, r, i, s, o) { for (var a = 0, n, l = t.length, c = o.length; a < c; ++a) - (n = t[a]) ? (n.__data__ = o[a], i[a] = n) : r[a] = new Ws(e, o[a]); + (n = t[a]) ? (n.__data__ = o[a], i[a] = n) : r[a] = new Os(e, o[a]); for (; a < l; ++a) (n = t[a]) && (s[a] = n); } -function OC(e, t, r, i, s, o, a) { - var n, l, c = /* @__PURE__ */ new Map(), h = t.length, u = o.length, p = new Array(h), d; +function rC(e, t, r, i, s, o, a) { + var n, l, c = /* @__PURE__ */ new Map(), h = t.length, d = o.length, f = new Array(h), u; for (n = 0; n < h; ++n) - (l = t[n]) && (p[n] = d = a.call(l, l.__data__, n, t) + "", c.has(d) ? s[n] = l : c.set(d, l)); - for (n = 0; n < u; ++n) - d = a.call(e, o[n], n, o) + "", (l = c.get(d)) ? (i[n] = l, l.__data__ = o[n], c.delete(d)) : r[n] = new Ws(e, o[n]); + (l = t[n]) && (f[n] = u = a.call(l, l.__data__, n, t) + "", c.has(u) ? s[n] = l : c.set(u, l)); + for (n = 0; n < d; ++n) + u = a.call(e, o[n], n, o) + "", (l = c.get(u)) ? (i[n] = l, l.__data__ = o[n], c.delete(u)) : r[n] = new Os(e, o[n]); for (n = 0; n < h; ++n) - (l = t[n]) && c.get(p[n]) === l && (s[n] = l); + (l = t[n]) && c.get(f[n]) === l && (s[n] = l); } -function IC(e) { +function iC(e) { return e.__data__; } -function DC(e, t) { - if (!arguments.length) return Array.from(this, IC); - var r = t ? OC : $C, i = this._parents, s = this._groups; - typeof e != "function" && (e = EC(e)); +function sC(e, t) { + if (!arguments.length) return Array.from(this, iC); + var r = t ? rC : eC, i = this._parents, s = this._groups; + typeof e != "function" && (e = tC(e)); for (var o = s.length, a = new Array(o), n = new Array(o), l = new Array(o), c = 0; c < o; ++c) { - var h = i[c], u = s[c], p = u.length, d = PC(e.call(h, h && h.__data__, c, i)), g = d.length, m = n[c] = new Array(g), y = a[c] = new Array(g), x = l[c] = new Array(p); - r(h, u, m, y, x, d, t); - for (var b = 0, k = 0, w, S; b < g; ++b) - if (w = m[b]) { + var h = i[c], d = s[c], f = d.length, u = oC(e.call(h, h && h.__data__, c, i)), g = u.length, m = n[c] = new Array(g), y = a[c] = new Array(g), C = l[c] = new Array(f); + r(h, d, m, y, C, u, t); + for (var b = 0, k = 0, T, S; b < g; ++b) + if (T = m[b]) { for (b >= k && (k = b + 1); !(S = y[k]) && ++k < g; ) ; - w._next = S || null; + T._next = S || null; } } - return a = new oe(a, i), a._enter = n, a._exit = l, a; + return a = new ie(a, i), a._enter = n, a._exit = l, a; } -function PC(e) { +function oC(e) { return typeof e == "object" && "length" in e ? e : Array.from(e); } -function RC() { - return new oe(this._exit || this._groups.map(yu), this._parents); +function aC() { + return new ie(this._exit || this._groups.map(Pc), this._parents); } -function NC(e, t, r) { +function nC(e, t, r) { var i = this.enter(), s = this, o = this.exit(); return typeof e == "function" ? (i = e(i), i && (i = i.selection())) : i = i.append(e + ""), t != null && (s = t(s), s && (s = s.selection())), r == null ? o.remove() : r(o), i && s ? i.merge(s).order() : s; } -function qC(e) { +function lC(e) { for (var t = e.selection ? e.selection() : e, r = this._groups, i = t._groups, s = r.length, o = i.length, a = Math.min(s, o), n = new Array(s), l = 0; l < a; ++l) - for (var c = r[l], h = i[l], u = c.length, p = n[l] = new Array(u), d, g = 0; g < u; ++g) - (d = c[g] || h[g]) && (p[g] = d); + for (var c = r[l], h = i[l], d = c.length, f = n[l] = new Array(d), u, g = 0; g < d; ++g) + (u = c[g] || h[g]) && (f[g] = u); for (; l < s; ++l) n[l] = r[l]; - return new oe(n, this._parents); + return new ie(n, this._parents); } -function zC() { +function hC() { for (var e = this._groups, t = -1, r = e.length; ++t < r; ) for (var i = e[t], s = i.length - 1, o = i[s], a; --s >= 0; ) (a = i[s]) && (o && a.compareDocumentPosition(o) ^ 4 && o.parentNode.insertBefore(a, o), o = a); return this; } -function WC(e) { - e || (e = HC); - function t(u, p) { - return u && p ? e(u.__data__, p.__data__) : !u - !p; +function cC(e) { + e || (e = dC); + function t(d, f) { + return d && f ? e(d.__data__, f.__data__) : !d - !f; } for (var r = this._groups, i = r.length, s = new Array(i), o = 0; o < i; ++o) { for (var a = r[o], n = a.length, l = s[o] = new Array(n), c, h = 0; h < n; ++h) (c = a[h]) && (l[h] = c); l.sort(t); } - return new oe(s, this._parents).order(); + return new ie(s, this._parents).order(); } -function HC(e, t) { +function dC(e, t) { return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; } -function YC() { +function uC() { var e = arguments[0]; return arguments[0] = this, e.apply(null, arguments), this; } -function jC() { +function fC() { return Array.from(this); } -function UC() { +function pC() { for (var e = this._groups, t = 0, r = e.length; t < r; ++t) for (var i = e[t], s = 0, o = i.length; s < o; ++s) { var a = i[s]; @@ -3566,114 +3673,114 @@ function UC() { } return null; } -function GC() { +function gC() { let e = 0; for (const t of this) ++e; return e; } -function XC() { +function mC() { return !this.node(); } -function VC(e) { +function yC(e) { for (var t = this._groups, r = 0, i = t.length; r < i; ++r) for (var s = t[r], o = 0, a = s.length, n; o < a; ++o) (n = s[o]) && e.call(n, n.__data__, o, s); return this; } -function ZC(e) { +function CC(e) { return function() { this.removeAttribute(e); }; } -function KC(e) { +function xC(e) { return function() { this.removeAttributeNS(e.space, e.local); }; } -function QC(e, t) { +function bC(e, t) { return function() { this.setAttribute(e, t); }; } -function JC(e, t) { +function kC(e, t) { return function() { this.setAttributeNS(e.space, e.local, t); }; } -function tx(e, t) { +function wC(e, t) { return function() { var r = t.apply(this, arguments); r == null ? this.removeAttribute(e) : this.setAttribute(e, r); }; } -function ex(e, t) { +function TC(e, t) { return function() { var r = t.apply(this, arguments); r == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, r); }; } -function rx(e, t) { - var r = ko(e); +function SC(e, t) { + var r = lo(e); if (arguments.length < 2) { var i = this.node(); return r.local ? i.getAttributeNS(r.space, r.local) : i.getAttribute(r); } - return this.each((t == null ? r.local ? KC : ZC : typeof t == "function" ? r.local ? ex : tx : r.local ? JC : QC)(r, t)); + return this.each((t == null ? r.local ? xC : CC : typeof t == "function" ? r.local ? TC : wC : r.local ? kC : bC)(r, t)); } -function Cu(e) { +function Nc(e) { return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView; } -function ix(e) { +function _C(e) { return function() { this.style.removeProperty(e); }; } -function sx(e, t, r) { +function BC(e, t, r) { return function() { this.style.setProperty(e, t, r); }; } -function ox(e, t, r) { +function vC(e, t, r) { return function() { var i = t.apply(this, arguments); i == null ? this.style.removeProperty(e) : this.style.setProperty(e, i, r); }; } -function ax(e, t, r) { - return arguments.length > 1 ? this.each((t == null ? ix : typeof t == "function" ? ox : sx)(e, t, r ?? "")) : Zr(this.node(), e); +function LC(e, t, r) { + return arguments.length > 1 ? this.each((t == null ? _C : typeof t == "function" ? vC : BC)(e, t, r ?? "")) : jr(this.node(), e); } -function Zr(e, t) { - return e.style.getPropertyValue(t) || Cu(e).getComputedStyle(e, null).getPropertyValue(t); +function jr(e, t) { + return e.style.getPropertyValue(t) || Nc(e).getComputedStyle(e, null).getPropertyValue(t); } -function nx(e) { +function FC(e) { return function() { delete this[e]; }; } -function lx(e, t) { +function AC(e, t) { return function() { this[e] = t; }; } -function hx(e, t) { +function MC(e, t) { return function() { var r = t.apply(this, arguments); r == null ? delete this[e] : this[e] = r; }; } -function cx(e, t) { - return arguments.length > 1 ? this.each((t == null ? nx : typeof t == "function" ? hx : lx)(e, t)) : this.node()[e]; +function EC(e, t) { + return arguments.length > 1 ? this.each((t == null ? FC : typeof t == "function" ? MC : AC)(e, t)) : this.node()[e]; } -function xu(e) { +function qc(e) { return e.trim().split(/^|\s+/); } -function On(e) { - return e.classList || new bu(e); +function pn(e) { + return e.classList || new Wc(e); } -function bu(e) { - this._node = e, this._names = xu(e.getAttribute("class") || ""); +function Wc(e) { + this._node = e, this._names = qc(e.getAttribute("class") || ""); } -bu.prototype = { +Wc.prototype = { add: function(e) { var t = this._names.indexOf(e); t < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" "))); @@ -3686,129 +3793,129 @@ bu.prototype = { return this._names.indexOf(e) >= 0; } }; -function ku(e, t) { - for (var r = On(e), i = -1, s = t.length; ++i < s; ) r.add(t[i]); +function zc(e, t) { + for (var r = pn(e), i = -1, s = t.length; ++i < s; ) r.add(t[i]); } -function Tu(e, t) { - for (var r = On(e), i = -1, s = t.length; ++i < s; ) r.remove(t[i]); +function Hc(e, t) { + for (var r = pn(e), i = -1, s = t.length; ++i < s; ) r.remove(t[i]); } -function ux(e) { +function $C(e) { return function() { - ku(this, e); + zc(this, e); }; } -function dx(e) { +function OC(e) { return function() { - Tu(this, e); + Hc(this, e); }; } -function px(e, t) { +function IC(e, t) { return function() { - (t.apply(this, arguments) ? ku : Tu)(this, e); + (t.apply(this, arguments) ? zc : Hc)(this, e); }; } -function fx(e, t) { - var r = xu(e + ""); +function DC(e, t) { + var r = qc(e + ""); if (arguments.length < 2) { - for (var i = On(this.node()), s = -1, o = r.length; ++s < o; ) if (!i.contains(r[s])) return !1; + for (var i = pn(this.node()), s = -1, o = r.length; ++s < o; ) if (!i.contains(r[s])) return !1; return !0; } - return this.each((typeof t == "function" ? px : t ? ux : dx)(r, t)); + return this.each((typeof t == "function" ? IC : t ? $C : OC)(r, t)); } -function gx() { +function RC() { this.textContent = ""; } -function mx(e) { +function PC(e) { return function() { this.textContent = e; }; } -function yx(e) { +function NC(e) { return function() { var t = e.apply(this, arguments); this.textContent = t ?? ""; }; } -function Cx(e) { - return arguments.length ? this.each(e == null ? gx : (typeof e == "function" ? yx : mx)(e)) : this.node().textContent; +function qC(e) { + return arguments.length ? this.each(e == null ? RC : (typeof e == "function" ? NC : PC)(e)) : this.node().textContent; } -function xx() { +function WC() { this.innerHTML = ""; } -function bx(e) { +function zC(e) { return function() { this.innerHTML = e; }; } -function kx(e) { +function HC(e) { return function() { var t = e.apply(this, arguments); this.innerHTML = t ?? ""; }; } -function Tx(e) { - return arguments.length ? this.each(e == null ? xx : (typeof e == "function" ? kx : bx)(e)) : this.node().innerHTML; +function YC(e) { + return arguments.length ? this.each(e == null ? WC : (typeof e == "function" ? HC : zC)(e)) : this.node().innerHTML; } -function wx() { +function UC() { this.nextSibling && this.parentNode.appendChild(this); } -function Sx() { - return this.each(wx); +function GC() { + return this.each(UC); } -function _x() { +function jC() { this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild); } -function vx() { - return this.each(_x); +function XC() { + return this.each(jC); } -function Bx(e) { - var t = typeof e == "function" ? e : pu(e); +function VC(e) { + var t = typeof e == "function" ? e : Oc(e); return this.select(function() { return this.appendChild(t.apply(this, arguments)); }); } -function Lx() { +function ZC() { return null; } -function Fx(e, t) { - var r = typeof e == "function" ? e : pu(e), i = t == null ? Lx : typeof t == "function" ? t : $n(t); +function KC(e, t) { + var r = typeof e == "function" ? e : Oc(e), i = t == null ? ZC : typeof t == "function" ? t : fn(t); return this.select(function() { return this.insertBefore(r.apply(this, arguments), i.apply(this, arguments) || null); }); } -function Ax() { +function QC() { var e = this.parentNode; e && e.removeChild(this); } -function Mx() { - return this.each(Ax); +function JC() { + return this.each(QC); } -function Ex() { +function tx() { var e = this.cloneNode(!1), t = this.parentNode; return t ? t.insertBefore(e, this.nextSibling) : e; } -function $x() { +function ex() { var e = this.cloneNode(!0), t = this.parentNode; return t ? t.insertBefore(e, this.nextSibling) : e; } -function Ox(e) { - return this.select(e ? $x : Ex); +function rx(e) { + return this.select(e ? ex : tx); } -function Ix(e) { +function ix(e) { return arguments.length ? this.property("__data__", e) : this.node().__data__; } -function Dx(e) { +function sx(e) { return function(t) { e.call(this, t, this.__data__); }; } -function Px(e) { +function ox(e) { return e.trim().split(/^|\s+/).map(function(t) { var r = "", i = t.indexOf("."); return i >= 0 && (r = t.slice(i + 1), t = t.slice(0, i)), { type: t, name: r }; }); } -function Rx(e) { +function ax(e) { return function() { var t = this.__on; if (t) { @@ -3818,9 +3925,9 @@ function Rx(e) { } }; } -function Nx(e, t, r) { +function nx(e, t, r) { return function() { - var i = this.__on, s, o = Dx(t); + var i = this.__on, s, o = sx(t); if (i) { for (var a = 0, n = i.length; a < n; ++a) if ((s = i[a]).type === e.type && s.name === e.name) { @@ -3831,8 +3938,8 @@ function Nx(e, t, r) { this.addEventListener(e.type, o, r), s = { type: e.type, name: e.name, value: t, listener: o, options: r }, i ? i.push(s) : this.__on = [s]; }; } -function qx(e, t, r) { - var i = Px(e + ""), s, o = i.length, a; +function lx(e, t, r) { + var i = ox(e + ""), s, o = i.length, a; if (arguments.length < 2) { var n = this.node().__on; if (n) { @@ -3843,93 +3950,93 @@ function qx(e, t, r) { } return; } - for (n = t ? Nx : Rx, s = 0; s < o; ++s) this.each(n(i[s], t, r)); + for (n = t ? nx : ax, s = 0; s < o; ++s) this.each(n(i[s], t, r)); return this; } -function wu(e, t, r) { - var i = Cu(e), s = i.CustomEvent; +function Yc(e, t, r) { + var i = Nc(e), s = i.CustomEvent; typeof s == "function" ? s = new s(t, r) : (s = i.document.createEvent("Event"), r ? (s.initEvent(t, r.bubbles, r.cancelable), s.detail = r.detail) : s.initEvent(t, !1, !1)), e.dispatchEvent(s); } -function zx(e, t) { +function hx(e, t) { return function() { - return wu(this, e, t); + return Yc(this, e, t); }; } -function Wx(e, t) { +function cx(e, t) { return function() { - return wu(this, e, t.apply(this, arguments)); + return Yc(this, e, t.apply(this, arguments)); }; } -function Hx(e, t) { - return this.each((typeof t == "function" ? Wx : zx)(e, t)); +function dx(e, t) { + return this.each((typeof t == "function" ? cx : hx)(e, t)); } -function* Yx() { +function* ux() { for (var e = this._groups, t = 0, r = e.length; t < r; ++t) for (var i = e[t], s = 0, o = i.length, a; s < o; ++s) (a = i[s]) && (yield a); } -var Su = [null]; -function oe(e, t) { +var Uc = [null]; +function ie(e, t) { this._groups = e, this._parents = t; } -function Ji() { - return new oe([[document.documentElement]], Su); +function Hi() { + return new ie([[document.documentElement]], Uc); } -function jx() { +function fx() { return this; } -oe.prototype = Ji.prototype = { - constructor: oe, - select: yC, - selectAll: kC, - selectChild: _C, - selectChildren: FC, - filter: AC, - data: DC, - enter: MC, - exit: RC, - join: NC, - merge: qC, - selection: jx, - order: zC, - sort: WC, - call: YC, - nodes: jC, - node: UC, - size: GC, - empty: XC, - each: VC, - attr: rx, - style: ax, - property: cx, - classed: fx, - text: Cx, - html: Tx, - raise: Sx, - lower: vx, - append: Bx, - insert: Fx, - remove: Mx, - clone: Ox, - datum: Ix, - on: qx, - dispatch: Hx, - [Symbol.iterator]: Yx +ie.prototype = Hi.prototype = { + constructor: ie, + select: N0, + selectAll: H0, + selectChild: j0, + selectChildren: K0, + filter: Q0, + data: sC, + enter: J0, + exit: aC, + join: nC, + merge: lC, + selection: fx, + order: hC, + sort: cC, + call: uC, + nodes: fC, + node: pC, + size: gC, + empty: mC, + each: yC, + attr: SC, + style: LC, + property: EC, + classed: DC, + text: qC, + html: YC, + raise: GC, + lower: XC, + append: VC, + insert: KC, + remove: JC, + clone: rx, + datum: ix, + on: lx, + dispatch: dx, + [Symbol.iterator]: ux }; -function ct(e) { - return typeof e == "string" ? new oe([[document.querySelector(e)]], [document.documentElement]) : new oe([[e]], Su); +function ht(e) { + return typeof e == "string" ? new ie([[document.querySelector(e)]], [document.documentElement]) : new ie([[e]], Uc); } -function In(e, t, r) { +function gn(e, t, r) { e.prototype = t.prototype = r, r.constructor = e; } -function _u(e, t) { +function Gc(e, t) { var r = Object.create(e.prototype); for (var i in t) r[i] = t[i]; return r; } -function ts() { +function Yi() { } -var Ri = 0.7, Hs = 1 / Ri, Ur = "\\s*([+-]?\\d+)\\s*", Ni = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Be = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Ux = /^#([0-9a-f]{3,8})$/, Gx = new RegExp(`^rgb\\(${Ur},${Ur},${Ur}\\)$`), Xx = new RegExp(`^rgb\\(${Be},${Be},${Be}\\)$`), Vx = new RegExp(`^rgba\\(${Ur},${Ur},${Ur},${Ni}\\)$`), Zx = new RegExp(`^rgba\\(${Be},${Be},${Be},${Ni}\\)$`), Kx = new RegExp(`^hsl\\(${Ni},${Be},${Be}\\)$`), Qx = new RegExp(`^hsla\\(${Ni},${Be},${Be},${Ni}\\)$`), uh = { +var Ai = 0.7, Is = 1 / Ai, Hr = "\\s*([+-]?\\d+)\\s*", Mi = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Se = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", px = /^#([0-9a-f]{3,8})$/, gx = new RegExp(`^rgb\\(${Hr},${Hr},${Hr}\\)$`), mx = new RegExp(`^rgb\\(${Se},${Se},${Se}\\)$`), yx = new RegExp(`^rgba\\(${Hr},${Hr},${Hr},${Mi}\\)$`), Cx = new RegExp(`^rgba\\(${Se},${Se},${Se},${Mi}\\)$`), xx = new RegExp(`^hsl\\(${Mi},${Se},${Se}\\)$`), bx = new RegExp(`^hsla\\(${Mi},${Se},${Se},${Mi}\\)$`), Xl = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, @@ -4079,207 +4186,207 @@ var Ri = 0.7, Hs = 1 / Ri, Ur = "\\s*([+-]?\\d+)\\s*", Ni = "\\s*([+-]?(?:\\d*\\ yellow: 16776960, yellowgreen: 10145074 }; -In(ts, qi, { +gn(Yi, Ei, { copy(e) { return Object.assign(new this.constructor(), this, e); }, displayable() { return this.rgb().displayable(); }, - hex: dh, + hex: Vl, // Deprecated! Use color.formatHex. - formatHex: dh, - formatHex8: Jx, - formatHsl: tb, - formatRgb: ph, - toString: ph + formatHex: Vl, + formatHex8: kx, + formatHsl: wx, + formatRgb: Zl, + toString: Zl }); -function dh() { +function Vl() { return this.rgb().formatHex(); } -function Jx() { +function kx() { return this.rgb().formatHex8(); } -function tb() { - return vu(this).formatHsl(); +function wx() { + return jc(this).formatHsl(); } -function ph() { +function Zl() { return this.rgb().formatRgb(); } -function qi(e) { +function Ei(e) { var t, r; - return e = (e + "").trim().toLowerCase(), (t = Ux.exec(e)) ? (r = t[1].length, t = parseInt(t[1], 16), r === 6 ? fh(t) : r === 3 ? new ee(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : r === 8 ? fs(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : r === 4 ? fs(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Gx.exec(e)) ? new ee(t[1], t[2], t[3], 1) : (t = Xx.exec(e)) ? new ee(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Vx.exec(e)) ? fs(t[1], t[2], t[3], t[4]) : (t = Zx.exec(e)) ? fs(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Kx.exec(e)) ? yh(t[1], t[2] / 100, t[3] / 100, 1) : (t = Qx.exec(e)) ? yh(t[1], t[2] / 100, t[3] / 100, t[4]) : uh.hasOwnProperty(e) ? fh(uh[e]) : e === "transparent" ? new ee(NaN, NaN, NaN, 0) : null; + return e = (e + "").trim().toLowerCase(), (t = px.exec(e)) ? (r = t[1].length, t = parseInt(t[1], 16), r === 6 ? Kl(t) : r === 3 ? new ee(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : r === 8 ? ss(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : r === 4 ? ss(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = gx.exec(e)) ? new ee(t[1], t[2], t[3], 1) : (t = mx.exec(e)) ? new ee(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = yx.exec(e)) ? ss(t[1], t[2], t[3], t[4]) : (t = Cx.exec(e)) ? ss(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = xx.exec(e)) ? th(t[1], t[2] / 100, t[3] / 100, 1) : (t = bx.exec(e)) ? th(t[1], t[2] / 100, t[3] / 100, t[4]) : Xl.hasOwnProperty(e) ? Kl(Xl[e]) : e === "transparent" ? new ee(NaN, NaN, NaN, 0) : null; } -function fh(e) { +function Kl(e) { return new ee(e >> 16 & 255, e >> 8 & 255, e & 255, 1); } -function fs(e, t, r, i) { +function ss(e, t, r, i) { return i <= 0 && (e = t = r = NaN), new ee(e, t, r, i); } -function eb(e) { - return e instanceof ts || (e = qi(e)), e ? (e = e.rgb(), new ee(e.r, e.g, e.b, e.opacity)) : new ee(); +function Tx(e) { + return e instanceof Yi || (e = Ei(e)), e ? (e = e.rgb(), new ee(e.r, e.g, e.b, e.opacity)) : new ee(); } -function Ma(e, t, r, i) { - return arguments.length === 1 ? eb(e) : new ee(e, t, r, i ?? 1); +function pa(e, t, r, i) { + return arguments.length === 1 ? Tx(e) : new ee(e, t, r, i ?? 1); } function ee(e, t, r, i) { this.r = +e, this.g = +t, this.b = +r, this.opacity = +i; } -In(ee, Ma, _u(ts, { +gn(ee, pa, Gc(Yi, { brighter(e) { - return e = e == null ? Hs : Math.pow(Hs, e), new ee(this.r * e, this.g * e, this.b * e, this.opacity); + return e = e == null ? Is : Math.pow(Is, e), new ee(this.r * e, this.g * e, this.b * e, this.opacity); }, darker(e) { - return e = e == null ? Ri : Math.pow(Ri, e), new ee(this.r * e, this.g * e, this.b * e, this.opacity); + return e = e == null ? Ai : Math.pow(Ai, e), new ee(this.r * e, this.g * e, this.b * e, this.opacity); }, rgb() { return this; }, clamp() { - return new ee(Cr(this.r), Cr(this.g), Cr(this.b), Ys(this.opacity)); + return new ee(gr(this.r), gr(this.g), gr(this.b), Ds(this.opacity)); }, displayable() { return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1; }, - hex: gh, + hex: Ql, // Deprecated! Use color.formatHex. - formatHex: gh, - formatHex8: rb, - formatRgb: mh, - toString: mh + formatHex: Ql, + formatHex8: Sx, + formatRgb: Jl, + toString: Jl })); -function gh() { - return `#${gr(this.r)}${gr(this.g)}${gr(this.b)}`; +function Ql() { + return `#${ur(this.r)}${ur(this.g)}${ur(this.b)}`; } -function rb() { - return `#${gr(this.r)}${gr(this.g)}${gr(this.b)}${gr((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; +function Sx() { + return `#${ur(this.r)}${ur(this.g)}${ur(this.b)}${ur((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; } -function mh() { - const e = Ys(this.opacity); - return `${e === 1 ? "rgb(" : "rgba("}${Cr(this.r)}, ${Cr(this.g)}, ${Cr(this.b)}${e === 1 ? ")" : `, ${e})`}`; +function Jl() { + const e = Ds(this.opacity); + return `${e === 1 ? "rgb(" : "rgba("}${gr(this.r)}, ${gr(this.g)}, ${gr(this.b)}${e === 1 ? ")" : `, ${e})`}`; } -function Ys(e) { +function Ds(e) { return isNaN(e) ? 1 : Math.max(0, Math.min(1, e)); } -function Cr(e) { +function gr(e) { return Math.max(0, Math.min(255, Math.round(e) || 0)); } -function gr(e) { - return e = Cr(e), (e < 16 ? "0" : "") + e.toString(16); +function ur(e) { + return e = gr(e), (e < 16 ? "0" : "") + e.toString(16); } -function yh(e, t, r, i) { - return i <= 0 ? e = t = r = NaN : r <= 0 || r >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new ge(e, t, r, i); +function th(e, t, r, i) { + return i <= 0 ? e = t = r = NaN : r <= 0 || r >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new ue(e, t, r, i); } -function vu(e) { - if (e instanceof ge) return new ge(e.h, e.s, e.l, e.opacity); - if (e instanceof ts || (e = qi(e)), !e) return new ge(); - if (e instanceof ge) return e; +function jc(e) { + if (e instanceof ue) return new ue(e.h, e.s, e.l, e.opacity); + if (e instanceof Yi || (e = Ei(e)), !e) return new ue(); + if (e instanceof ue) return e; e = e.rgb(); var t = e.r / 255, r = e.g / 255, i = e.b / 255, s = Math.min(t, r, i), o = Math.max(t, r, i), a = NaN, n = o - s, l = (o + s) / 2; - return n ? (t === o ? a = (r - i) / n + (r < i) * 6 : r === o ? a = (i - t) / n + 2 : a = (t - r) / n + 4, n /= l < 0.5 ? o + s : 2 - o - s, a *= 60) : n = l > 0 && l < 1 ? 0 : a, new ge(a, n, l, e.opacity); + return n ? (t === o ? a = (r - i) / n + (r < i) * 6 : r === o ? a = (i - t) / n + 2 : a = (t - r) / n + 4, n /= l < 0.5 ? o + s : 2 - o - s, a *= 60) : n = l > 0 && l < 1 ? 0 : a, new ue(a, n, l, e.opacity); } -function ib(e, t, r, i) { - return arguments.length === 1 ? vu(e) : new ge(e, t, r, i ?? 1); +function _x(e, t, r, i) { + return arguments.length === 1 ? jc(e) : new ue(e, t, r, i ?? 1); } -function ge(e, t, r, i) { +function ue(e, t, r, i) { this.h = +e, this.s = +t, this.l = +r, this.opacity = +i; } -In(ge, ib, _u(ts, { +gn(ue, _x, Gc(Yi, { brighter(e) { - return e = e == null ? Hs : Math.pow(Hs, e), new ge(this.h, this.s, this.l * e, this.opacity); + return e = e == null ? Is : Math.pow(Is, e), new ue(this.h, this.s, this.l * e, this.opacity); }, darker(e) { - return e = e == null ? Ri : Math.pow(Ri, e), new ge(this.h, this.s, this.l * e, this.opacity); + return e = e == null ? Ai : Math.pow(Ai, e), new ue(this.h, this.s, this.l * e, this.opacity); }, rgb() { var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, r = this.l, i = r + (r < 0.5 ? r : 1 - r) * t, s = 2 * r - i; return new ee( - na(e >= 240 ? e - 240 : e + 120, s, i), - na(e, s, i), - na(e < 120 ? e + 240 : e - 120, s, i), + Yo(e >= 240 ? e - 240 : e + 120, s, i), + Yo(e, s, i), + Yo(e < 120 ? e + 240 : e - 120, s, i), this.opacity ); }, clamp() { - return new ge(Ch(this.h), gs(this.s), gs(this.l), Ys(this.opacity)); + return new ue(eh(this.h), os(this.s), os(this.l), Ds(this.opacity)); }, displayable() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1; }, formatHsl() { - const e = Ys(this.opacity); - return `${e === 1 ? "hsl(" : "hsla("}${Ch(this.h)}, ${gs(this.s) * 100}%, ${gs(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`; + const e = Ds(this.opacity); + return `${e === 1 ? "hsl(" : "hsla("}${eh(this.h)}, ${os(this.s) * 100}%, ${os(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`; } })); -function Ch(e) { +function eh(e) { return e = (e || 0) % 360, e < 0 ? e + 360 : e; } -function gs(e) { +function os(e) { return Math.max(0, Math.min(1, e || 0)); } -function na(e, t, r) { +function Yo(e, t, r) { return (e < 60 ? t + (r - t) * e / 60 : e < 180 ? r : e < 240 ? t + (r - t) * (240 - e) / 60 : t) * 255; } -const Dn = (e) => () => e; -function Bu(e, t) { +const mn = (e) => () => e; +function Xc(e, t) { return function(r) { return e + r * t; }; } -function sb(e, t, r) { +function Bx(e, t, r) { return e = Math.pow(e, r), t = Math.pow(t, r) - e, r = 1 / r, function(i) { return Math.pow(e + i * t, r); }; } -function nA(e, t) { +function kv(e, t) { var r = t - e; - return r ? Bu(e, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : Dn(isNaN(e) ? t : e); + return r ? Xc(e, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : mn(isNaN(e) ? t : e); } -function ob(e) { - return (e = +e) == 1 ? Lu : function(t, r) { - return r - t ? sb(t, r, e) : Dn(isNaN(t) ? r : t); +function vx(e) { + return (e = +e) == 1 ? Vc : function(t, r) { + return r - t ? Bx(t, r, e) : mn(isNaN(t) ? r : t); }; } -function Lu(e, t) { +function Vc(e, t) { var r = t - e; - return r ? Bu(e, r) : Dn(isNaN(e) ? t : e); + return r ? Xc(e, r) : mn(isNaN(e) ? t : e); } -const xh = (function e(t) { - var r = ob(t); +const rh = (function e(t) { + var r = vx(t); function i(s, o) { - var a = r((s = Ma(s)).r, (o = Ma(o)).r), n = r(s.g, o.g), l = r(s.b, o.b), c = Lu(s.opacity, o.opacity); + var a = r((s = pa(s)).r, (o = pa(o)).r), n = r(s.g, o.g), l = r(s.b, o.b), c = Vc(s.opacity, o.opacity); return function(h) { return s.r = a(h), s.g = n(h), s.b = l(h), s.opacity = c(h), s + ""; }; } return i.gamma = e, i; })(1); -function Ze(e, t) { +function Xe(e, t) { return e = +e, t = +t, function(r) { return e * (1 - r) + t * r; }; } -var Ea = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, la = new RegExp(Ea.source, "g"); -function ab(e) { +var ga = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Uo = new RegExp(ga.source, "g"); +function Lx(e) { return function() { return e; }; } -function nb(e) { +function Fx(e) { return function(t) { return e(t) + ""; }; } -function lb(e, t) { - var r = Ea.lastIndex = la.lastIndex = 0, i, s, o, a = -1, n = [], l = []; - for (e = e + "", t = t + ""; (i = Ea.exec(e)) && (s = la.exec(t)); ) - (o = s.index) > r && (o = t.slice(r, o), n[a] ? n[a] += o : n[++a] = o), (i = i[0]) === (s = s[0]) ? n[a] ? n[a] += s : n[++a] = s : (n[++a] = null, l.push({ i: a, x: Ze(i, s) })), r = la.lastIndex; - return r < t.length && (o = t.slice(r), n[a] ? n[a] += o : n[++a] = o), n.length < 2 ? l[0] ? nb(l[0].x) : ab(t) : (t = l.length, function(c) { - for (var h = 0, u; h < t; ++h) n[(u = l[h]).i] = u.x(c); +function Ax(e, t) { + var r = ga.lastIndex = Uo.lastIndex = 0, i, s, o, a = -1, n = [], l = []; + for (e = e + "", t = t + ""; (i = ga.exec(e)) && (s = Uo.exec(t)); ) + (o = s.index) > r && (o = t.slice(r, o), n[a] ? n[a] += o : n[++a] = o), (i = i[0]) === (s = s[0]) ? n[a] ? n[a] += s : n[++a] = s : (n[++a] = null, l.push({ i: a, x: Xe(i, s) })), r = Uo.lastIndex; + return r < t.length && (o = t.slice(r), n[a] ? n[a] += o : n[++a] = o), n.length < 2 ? l[0] ? Fx(l[0].x) : Lx(t) : (t = l.length, function(c) { + for (var h = 0, d; h < t; ++h) n[(d = l[h]).i] = d.x(c); return n.join(""); }); } -var bh = 180 / Math.PI, $a = { +var ih = 180 / Math.PI, ma = { translateX: 0, translateY: 0, rotate: 0, @@ -4287,187 +4394,187 @@ var bh = 180 / Math.PI, $a = { scaleX: 1, scaleY: 1 }; -function Fu(e, t, r, i, s, o) { +function Zc(e, t, r, i, s, o) { var a, n, l; return (a = Math.sqrt(e * e + t * t)) && (e /= a, t /= a), (l = e * r + t * i) && (r -= e * l, i -= t * l), (n = Math.sqrt(r * r + i * i)) && (r /= n, i /= n, l /= n), e * i < t * r && (e = -e, t = -t, l = -l, a = -a), { translateX: s, translateY: o, - rotate: Math.atan2(t, e) * bh, - skewX: Math.atan(l) * bh, + rotate: Math.atan2(t, e) * ih, + skewX: Math.atan(l) * ih, scaleX: a, scaleY: n }; } -var ms; -function hb(e) { +var as; +function Mx(e) { const t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + ""); - return t.isIdentity ? $a : Fu(t.a, t.b, t.c, t.d, t.e, t.f); + return t.isIdentity ? ma : Zc(t.a, t.b, t.c, t.d, t.e, t.f); } -function cb(e) { - return e == null || (ms || (ms = document.createElementNS("http://www.w3.org/2000/svg", "g")), ms.setAttribute("transform", e), !(e = ms.transform.baseVal.consolidate())) ? $a : (e = e.matrix, Fu(e.a, e.b, e.c, e.d, e.e, e.f)); +function Ex(e) { + return e == null || (as || (as = document.createElementNS("http://www.w3.org/2000/svg", "g")), as.setAttribute("transform", e), !(e = as.transform.baseVal.consolidate())) ? ma : (e = e.matrix, Zc(e.a, e.b, e.c, e.d, e.e, e.f)); } -function Au(e, t, r, i) { +function Kc(e, t, r, i) { function s(c) { return c.length ? c.pop() + " " : ""; } - function o(c, h, u, p, d, g) { - if (c !== u || h !== p) { - var m = d.push("translate(", null, t, null, r); - g.push({ i: m - 4, x: Ze(c, u) }, { i: m - 2, x: Ze(h, p) }); - } else (u || p) && d.push("translate(" + u + t + p + r); + function o(c, h, d, f, u, g) { + if (c !== d || h !== f) { + var m = u.push("translate(", null, t, null, r); + g.push({ i: m - 4, x: Xe(c, d) }, { i: m - 2, x: Xe(h, f) }); + } else (d || f) && u.push("translate(" + d + t + f + r); } - function a(c, h, u, p) { - c !== h ? (c - h > 180 ? h += 360 : h - c > 180 && (c += 360), p.push({ i: u.push(s(u) + "rotate(", null, i) - 2, x: Ze(c, h) })) : h && u.push(s(u) + "rotate(" + h + i); + function a(c, h, d, f) { + c !== h ? (c - h > 180 ? h += 360 : h - c > 180 && (c += 360), f.push({ i: d.push(s(d) + "rotate(", null, i) - 2, x: Xe(c, h) })) : h && d.push(s(d) + "rotate(" + h + i); } - function n(c, h, u, p) { - c !== h ? p.push({ i: u.push(s(u) + "skewX(", null, i) - 2, x: Ze(c, h) }) : h && u.push(s(u) + "skewX(" + h + i); + function n(c, h, d, f) { + c !== h ? f.push({ i: d.push(s(d) + "skewX(", null, i) - 2, x: Xe(c, h) }) : h && d.push(s(d) + "skewX(" + h + i); } - function l(c, h, u, p, d, g) { - if (c !== u || h !== p) { - var m = d.push(s(d) + "scale(", null, ",", null, ")"); - g.push({ i: m - 4, x: Ze(c, u) }, { i: m - 2, x: Ze(h, p) }); - } else (u !== 1 || p !== 1) && d.push(s(d) + "scale(" + u + "," + p + ")"); + function l(c, h, d, f, u, g) { + if (c !== d || h !== f) { + var m = u.push(s(u) + "scale(", null, ",", null, ")"); + g.push({ i: m - 4, x: Xe(c, d) }, { i: m - 2, x: Xe(h, f) }); + } else (d !== 1 || f !== 1) && u.push(s(u) + "scale(" + d + "," + f + ")"); } return function(c, h) { - var u = [], p = []; - return c = e(c), h = e(h), o(c.translateX, c.translateY, h.translateX, h.translateY, u, p), a(c.rotate, h.rotate, u, p), n(c.skewX, h.skewX, u, p), l(c.scaleX, c.scaleY, h.scaleX, h.scaleY, u, p), c = h = null, function(d) { - for (var g = -1, m = p.length, y; ++g < m; ) u[(y = p[g]).i] = y.x(d); - return u.join(""); + var d = [], f = []; + return c = e(c), h = e(h), o(c.translateX, c.translateY, h.translateX, h.translateY, d, f), a(c.rotate, h.rotate, d, f), n(c.skewX, h.skewX, d, f), l(c.scaleX, c.scaleY, h.scaleX, h.scaleY, d, f), c = h = null, function(u) { + for (var g = -1, m = f.length, y; ++g < m; ) d[(y = f[g]).i] = y.x(u); + return d.join(""); }; }; } -var ub = Au(hb, "px, ", "px)", "deg)"), db = Au(cb, ", ", ")", ")"), Kr = 0, wi = 0, pi = 0, Mu = 1e3, js, Si, Us = 0, kr = 0, To = 0, zi = typeof performance == "object" && performance.now ? performance : Date, Eu = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) { +var $x = Kc(Mx, "px, ", "px)", "deg)"), Ox = Kc(Ex, ", ", ")", ")"), Xr = 0, mi = 0, ni = 0, Qc = 1e3, Rs, yi, Ps = 0, Cr = 0, ho = 0, $i = typeof performance == "object" && performance.now ? performance : Date, Jc = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) { setTimeout(e, 17); }; -function Pn() { - return kr || (Eu(pb), kr = zi.now() + To); +function yn() { + return Cr || (Jc(Ix), Cr = $i.now() + ho); } -function pb() { - kr = 0; +function Ix() { + Cr = 0; } -function Gs() { +function Ns() { this._call = this._time = this._next = null; } -Gs.prototype = $u.prototype = { - constructor: Gs, +Ns.prototype = td.prototype = { + constructor: Ns, restart: function(e, t, r) { if (typeof e != "function") throw new TypeError("callback is not a function"); - r = (r == null ? Pn() : +r) + (t == null ? 0 : +t), !this._next && Si !== this && (Si ? Si._next = this : js = this, Si = this), this._call = e, this._time = r, Oa(); + r = (r == null ? yn() : +r) + (t == null ? 0 : +t), !this._next && yi !== this && (yi ? yi._next = this : Rs = this, yi = this), this._call = e, this._time = r, ya(); }, stop: function() { - this._call && (this._call = null, this._time = 1 / 0, Oa()); + this._call && (this._call = null, this._time = 1 / 0, ya()); } }; -function $u(e, t, r) { - var i = new Gs(); +function td(e, t, r) { + var i = new Ns(); return i.restart(e, t, r), i; } -function fb() { - Pn(), ++Kr; - for (var e = js, t; e; ) - (t = kr - e._time) >= 0 && e._call.call(void 0, t), e = e._next; - --Kr; +function Dx() { + yn(), ++Xr; + for (var e = Rs, t; e; ) + (t = Cr - e._time) >= 0 && e._call.call(void 0, t), e = e._next; + --Xr; } -function kh() { - kr = (Us = zi.now()) + To, Kr = wi = 0; +function sh() { + Cr = (Ps = $i.now()) + ho, Xr = mi = 0; try { - fb(); + Dx(); } finally { - Kr = 0, mb(), kr = 0; + Xr = 0, Px(), Cr = 0; } } -function gb() { - var e = zi.now(), t = e - Us; - t > Mu && (To -= t, Us = e); +function Rx() { + var e = $i.now(), t = e - Ps; + t > Qc && (ho -= t, Ps = e); } -function mb() { - for (var e, t = js, r, i = 1 / 0; t; ) - t._call ? (i > t._time && (i = t._time), e = t, t = t._next) : (r = t._next, t._next = null, t = e ? e._next = r : js = r); - Si = e, Oa(i); +function Px() { + for (var e, t = Rs, r, i = 1 / 0; t; ) + t._call ? (i > t._time && (i = t._time), e = t, t = t._next) : (r = t._next, t._next = null, t = e ? e._next = r : Rs = r); + yi = e, ya(i); } -function Oa(e) { - if (!Kr) { - wi && (wi = clearTimeout(wi)); - var t = e - kr; - t > 24 ? (e < 1 / 0 && (wi = setTimeout(kh, e - zi.now() - To)), pi && (pi = clearInterval(pi))) : (pi || (Us = zi.now(), pi = setInterval(gb, Mu)), Kr = 1, Eu(kh)); +function ya(e) { + if (!Xr) { + mi && (mi = clearTimeout(mi)); + var t = e - Cr; + t > 24 ? (e < 1 / 0 && (mi = setTimeout(sh, e - $i.now() - ho)), ni && (ni = clearInterval(ni))) : (ni || (Ps = $i.now(), ni = setInterval(Rx, Qc)), Xr = 1, Jc(sh)); } } -function Th(e, t, r) { - var i = new Gs(); +function oh(e, t, r) { + var i = new Ns(); return t = t == null ? 0 : +t, i.restart((s) => { i.stop(), e(s + t); }, t, r), i; } -var yb = du("start", "end", "cancel", "interrupt"), Cb = [], Ou = 0, wh = 1, Ia = 2, Fs = 3, Sh = 4, Da = 5, As = 6; -function wo(e, t, r, i, s, o) { +var Nx = $c("start", "end", "cancel", "interrupt"), qx = [], ed = 0, ah = 1, Ca = 2, xs = 3, nh = 4, xa = 5, bs = 6; +function co(e, t, r, i, s, o) { var a = e.__transition; if (!a) e.__transition = {}; else if (r in a) return; - xb(e, r, { + Wx(e, r, { name: t, index: i, // For context during callback. group: s, // For context during callback. - on: yb, - tween: Cb, + on: Nx, + tween: qx, time: o.time, delay: o.delay, duration: o.duration, ease: o.ease, timer: null, - state: Ou + state: ed }); } -function Rn(e, t) { - var r = ke(e, t); - if (r.state > Ou) throw new Error("too late; already scheduled"); +function Cn(e, t) { + var r = Ce(e, t); + if (r.state > ed) throw new Error("too late; already scheduled"); return r; } -function Ee(e, t) { - var r = ke(e, t); - if (r.state > Fs) throw new Error("too late; already running"); +function Fe(e, t) { + var r = Ce(e, t); + if (r.state > xs) throw new Error("too late; already running"); return r; } -function ke(e, t) { +function Ce(e, t) { var r = e.__transition; if (!r || !(r = r[t])) throw new Error("transition not found"); return r; } -function xb(e, t, r) { +function Wx(e, t, r) { var i = e.__transition, s; - i[t] = r, r.timer = $u(o, 0, r.time); + i[t] = r, r.timer = td(o, 0, r.time); function o(c) { - r.state = wh, r.timer.restart(a, r.delay, r.time), r.delay <= c && a(c - r.delay); + r.state = ah, r.timer.restart(a, r.delay, r.time), r.delay <= c && a(c - r.delay); } function a(c) { - var h, u, p, d; - if (r.state !== wh) return l(); + var h, d, f, u; + if (r.state !== ah) return l(); for (h in i) - if (d = i[h], d.name === r.name) { - if (d.state === Fs) return Th(a); - d.state === Sh ? (d.state = As, d.timer.stop(), d.on.call("interrupt", e, e.__data__, d.index, d.group), delete i[h]) : +h < t && (d.state = As, d.timer.stop(), d.on.call("cancel", e, e.__data__, d.index, d.group), delete i[h]); + if (u = i[h], u.name === r.name) { + if (u.state === xs) return oh(a); + u.state === nh ? (u.state = bs, u.timer.stop(), u.on.call("interrupt", e, e.__data__, u.index, u.group), delete i[h]) : +h < t && (u.state = bs, u.timer.stop(), u.on.call("cancel", e, e.__data__, u.index, u.group), delete i[h]); } - if (Th(function() { - r.state === Fs && (r.state = Sh, r.timer.restart(n, r.delay, r.time), n(c)); - }), r.state = Ia, r.on.call("start", e, e.__data__, r.index, r.group), r.state === Ia) { - for (r.state = Fs, s = new Array(p = r.tween.length), h = 0, u = -1; h < p; ++h) - (d = r.tween[h].value.call(e, e.__data__, r.index, r.group)) && (s[++u] = d); - s.length = u + 1; + if (oh(function() { + r.state === xs && (r.state = nh, r.timer.restart(n, r.delay, r.time), n(c)); + }), r.state = Ca, r.on.call("start", e, e.__data__, r.index, r.group), r.state === Ca) { + for (r.state = xs, s = new Array(f = r.tween.length), h = 0, d = -1; h < f; ++h) + (u = r.tween[h].value.call(e, e.__data__, r.index, r.group)) && (s[++d] = u); + s.length = d + 1; } } function n(c) { - for (var h = c < r.duration ? r.ease.call(null, c / r.duration) : (r.timer.restart(l), r.state = Da, 1), u = -1, p = s.length; ++u < p; ) - s[u].call(e, h); - r.state === Da && (r.on.call("end", e, e.__data__, r.index, r.group), l()); + for (var h = c < r.duration ? r.ease.call(null, c / r.duration) : (r.timer.restart(l), r.state = xa, 1), d = -1, f = s.length; ++d < f; ) + s[d].call(e, h); + r.state === xa && (r.on.call("end", e, e.__data__, r.index, r.group), l()); } function l() { - r.state = As, r.timer.stop(), delete i[t]; + r.state = bs, r.timer.stop(), delete i[t]; for (var c in i) return; delete e.__transition; } } -function bb(e, t) { +function zx(e, t) { var r = e.__transition, i, s, o = !0, a; if (r) { t = t == null ? null : t + ""; @@ -4476,20 +4583,20 @@ function bb(e, t) { o = !1; continue; } - s = i.state > Ia && i.state < Da, i.state = As, i.timer.stop(), i.on.call(s ? "interrupt" : "cancel", e, e.__data__, i.index, i.group), delete r[a]; + s = i.state > Ca && i.state < xa, i.state = bs, i.timer.stop(), i.on.call(s ? "interrupt" : "cancel", e, e.__data__, i.index, i.group), delete r[a]; } o && delete e.__transition; } } -function kb(e) { +function Hx(e) { return this.each(function() { - bb(this, e); + zx(this, e); }); } -function Tb(e, t) { +function Yx(e, t) { var r, i; return function() { - var s = Ee(this, e), o = s.tween; + var s = Fe(this, e), o = s.tween; if (o !== r) { i = r = o; for (var a = 0, n = i.length; a < n; ++a) @@ -4501,11 +4608,11 @@ function Tb(e, t) { s.tween = i; }; } -function wb(e, t, r) { +function Ux(e, t, r) { var i, s; if (typeof r != "function") throw new Error(); return function() { - var o = Ee(this, e), a = o.tween; + var o = Fe(this, e), a = o.tween; if (a !== i) { s = (i = a).slice(); for (var n = { name: t, value: r }, l = 0, c = s.length; l < c; ++l) @@ -4518,414 +4625,414 @@ function wb(e, t, r) { o.tween = s; }; } -function Sb(e, t) { +function Gx(e, t) { var r = this._id; if (e += "", arguments.length < 2) { - for (var i = ke(this.node(), r).tween, s = 0, o = i.length, a; s < o; ++s) + for (var i = Ce(this.node(), r).tween, s = 0, o = i.length, a; s < o; ++s) if ((a = i[s]).name === e) return a.value; return null; } - return this.each((t == null ? Tb : wb)(r, e, t)); + return this.each((t == null ? Yx : Ux)(r, e, t)); } -function Nn(e, t, r) { +function xn(e, t, r) { var i = e._id; return e.each(function() { - var s = Ee(this, i); + var s = Fe(this, i); (s.value || (s.value = {}))[t] = r.apply(this, arguments); }), function(s) { - return ke(s, i).value[t]; + return Ce(s, i).value[t]; }; } -function Iu(e, t) { +function rd(e, t) { var r; - return (typeof t == "number" ? Ze : t instanceof qi ? xh : (r = qi(t)) ? (t = r, xh) : lb)(e, t); + return (typeof t == "number" ? Xe : t instanceof Ei ? rh : (r = Ei(t)) ? (t = r, rh) : Ax)(e, t); } -function _b(e) { +function jx(e) { return function() { this.removeAttribute(e); }; } -function vb(e) { +function Xx(e) { return function() { this.removeAttributeNS(e.space, e.local); }; } -function Bb(e, t, r) { +function Vx(e, t, r) { var i, s = r + "", o; return function() { var a = this.getAttribute(e); return a === s ? null : a === i ? o : o = t(i = a, r); }; } -function Lb(e, t, r) { +function Zx(e, t, r) { var i, s = r + "", o; return function() { var a = this.getAttributeNS(e.space, e.local); return a === s ? null : a === i ? o : o = t(i = a, r); }; } -function Fb(e, t, r) { +function Kx(e, t, r) { var i, s, o; return function() { var a, n = r(this), l; return n == null ? void this.removeAttribute(e) : (a = this.getAttribute(e), l = n + "", a === l ? null : a === i && l === s ? o : (s = l, o = t(i = a, n))); }; } -function Ab(e, t, r) { +function Qx(e, t, r) { var i, s, o; return function() { var a, n = r(this), l; return n == null ? void this.removeAttributeNS(e.space, e.local) : (a = this.getAttributeNS(e.space, e.local), l = n + "", a === l ? null : a === i && l === s ? o : (s = l, o = t(i = a, n))); }; } -function Mb(e, t) { - var r = ko(e), i = r === "transform" ? db : Iu; - return this.attrTween(e, typeof t == "function" ? (r.local ? Ab : Fb)(r, i, Nn(this, "attr." + e, t)) : t == null ? (r.local ? vb : _b)(r) : (r.local ? Lb : Bb)(r, i, t)); +function Jx(e, t) { + var r = lo(e), i = r === "transform" ? Ox : rd; + return this.attrTween(e, typeof t == "function" ? (r.local ? Qx : Kx)(r, i, xn(this, "attr." + e, t)) : t == null ? (r.local ? Xx : jx)(r) : (r.local ? Zx : Vx)(r, i, t)); } -function Eb(e, t) { +function tb(e, t) { return function(r) { this.setAttribute(e, t.call(this, r)); }; } -function $b(e, t) { +function eb(e, t) { return function(r) { this.setAttributeNS(e.space, e.local, t.call(this, r)); }; } -function Ob(e, t) { +function rb(e, t) { var r, i; function s() { var o = t.apply(this, arguments); - return o !== i && (r = (i = o) && $b(e, o)), r; + return o !== i && (r = (i = o) && eb(e, o)), r; } return s._value = t, s; } -function Ib(e, t) { +function ib(e, t) { var r, i; function s() { var o = t.apply(this, arguments); - return o !== i && (r = (i = o) && Eb(e, o)), r; + return o !== i && (r = (i = o) && tb(e, o)), r; } return s._value = t, s; } -function Db(e, t) { +function sb(e, t) { var r = "attr." + e; if (arguments.length < 2) return (r = this.tween(r)) && r._value; if (t == null) return this.tween(r, null); if (typeof t != "function") throw new Error(); - var i = ko(e); - return this.tween(r, (i.local ? Ob : Ib)(i, t)); + var i = lo(e); + return this.tween(r, (i.local ? rb : ib)(i, t)); } -function Pb(e, t) { +function ob(e, t) { return function() { - Rn(this, e).delay = +t.apply(this, arguments); + Cn(this, e).delay = +t.apply(this, arguments); }; } -function Rb(e, t) { +function ab(e, t) { return t = +t, function() { - Rn(this, e).delay = t; + Cn(this, e).delay = t; }; } -function Nb(e) { +function nb(e) { var t = this._id; - return arguments.length ? this.each((typeof e == "function" ? Pb : Rb)(t, e)) : ke(this.node(), t).delay; + return arguments.length ? this.each((typeof e == "function" ? ob : ab)(t, e)) : Ce(this.node(), t).delay; } -function qb(e, t) { +function lb(e, t) { return function() { - Ee(this, e).duration = +t.apply(this, arguments); + Fe(this, e).duration = +t.apply(this, arguments); }; } -function zb(e, t) { +function hb(e, t) { return t = +t, function() { - Ee(this, e).duration = t; + Fe(this, e).duration = t; }; } -function Wb(e) { +function cb(e) { var t = this._id; - return arguments.length ? this.each((typeof e == "function" ? qb : zb)(t, e)) : ke(this.node(), t).duration; + return arguments.length ? this.each((typeof e == "function" ? lb : hb)(t, e)) : Ce(this.node(), t).duration; } -function Hb(e, t) { +function db(e, t) { if (typeof t != "function") throw new Error(); return function() { - Ee(this, e).ease = t; + Fe(this, e).ease = t; }; } -function Yb(e) { +function ub(e) { var t = this._id; - return arguments.length ? this.each(Hb(t, e)) : ke(this.node(), t).ease; + return arguments.length ? this.each(db(t, e)) : Ce(this.node(), t).ease; } -function jb(e, t) { +function fb(e, t) { return function() { var r = t.apply(this, arguments); if (typeof r != "function") throw new Error(); - Ee(this, e).ease = r; + Fe(this, e).ease = r; }; } -function Ub(e) { +function pb(e) { if (typeof e != "function") throw new Error(); - return this.each(jb(this._id, e)); + return this.each(fb(this._id, e)); } -function Gb(e) { - typeof e != "function" && (e = gu(e)); +function gb(e) { + typeof e != "function" && (e = Dc(e)); for (var t = this._groups, r = t.length, i = new Array(r), s = 0; s < r; ++s) for (var o = t[s], a = o.length, n = i[s] = [], l, c = 0; c < a; ++c) (l = o[c]) && e.call(l, l.__data__, c, o) && n.push(l); - return new We(i, this._parents, this._name, this._id); + return new Ne(i, this._parents, this._name, this._id); } -function Xb(e) { +function mb(e) { if (e._id !== this._id) throw new Error(); for (var t = this._groups, r = e._groups, i = t.length, s = r.length, o = Math.min(i, s), a = new Array(i), n = 0; n < o; ++n) - for (var l = t[n], c = r[n], h = l.length, u = a[n] = new Array(h), p, d = 0; d < h; ++d) - (p = l[d] || c[d]) && (u[d] = p); + for (var l = t[n], c = r[n], h = l.length, d = a[n] = new Array(h), f, u = 0; u < h; ++u) + (f = l[u] || c[u]) && (d[u] = f); for (; n < i; ++n) a[n] = t[n]; - return new We(a, this._parents, this._name, this._id); + return new Ne(a, this._parents, this._name, this._id); } -function Vb(e) { +function yb(e) { return (e + "").trim().split(/^|\s+/).every(function(t) { var r = t.indexOf("."); return r >= 0 && (t = t.slice(0, r)), !t || t === "start"; }); } -function Zb(e, t, r) { - var i, s, o = Vb(t) ? Rn : Ee; +function Cb(e, t, r) { + var i, s, o = yb(t) ? Cn : Fe; return function() { var a = o(this, e), n = a.on; n !== i && (s = (i = n).copy()).on(t, r), a.on = s; }; } -function Kb(e, t) { +function xb(e, t) { var r = this._id; - return arguments.length < 2 ? ke(this.node(), r).on.on(e) : this.each(Zb(r, e, t)); + return arguments.length < 2 ? Ce(this.node(), r).on.on(e) : this.each(Cb(r, e, t)); } -function Qb(e) { +function bb(e) { return function() { var t = this.parentNode; for (var r in this.__transition) if (+r !== e) return; t && t.removeChild(this); }; } -function Jb() { - return this.on("end.remove", Qb(this._id)); +function kb() { + return this.on("end.remove", bb(this._id)); } -function t1(e) { +function wb(e) { var t = this._name, r = this._id; - typeof e != "function" && (e = $n(e)); + typeof e != "function" && (e = fn(e)); for (var i = this._groups, s = i.length, o = new Array(s), a = 0; a < s; ++a) - for (var n = i[a], l = n.length, c = o[a] = new Array(l), h, u, p = 0; p < l; ++p) - (h = n[p]) && (u = e.call(h, h.__data__, p, n)) && ("__data__" in h && (u.__data__ = h.__data__), c[p] = u, wo(c[p], t, r, p, c, ke(h, r))); - return new We(o, this._parents, t, r); + for (var n = i[a], l = n.length, c = o[a] = new Array(l), h, d, f = 0; f < l; ++f) + (h = n[f]) && (d = e.call(h, h.__data__, f, n)) && ("__data__" in h && (d.__data__ = h.__data__), c[f] = d, co(c[f], t, r, f, c, Ce(h, r))); + return new Ne(o, this._parents, t, r); } -function e1(e) { +function Tb(e) { var t = this._name, r = this._id; - typeof e != "function" && (e = fu(e)); + typeof e != "function" && (e = Ic(e)); for (var i = this._groups, s = i.length, o = [], a = [], n = 0; n < s; ++n) - for (var l = i[n], c = l.length, h, u = 0; u < c; ++u) - if (h = l[u]) { - for (var p = e.call(h, h.__data__, u, l), d, g = ke(h, r), m = 0, y = p.length; m < y; ++m) - (d = p[m]) && wo(d, t, r, m, p, g); - o.push(p), a.push(h); + for (var l = i[n], c = l.length, h, d = 0; d < c; ++d) + if (h = l[d]) { + for (var f = e.call(h, h.__data__, d, l), u, g = Ce(h, r), m = 0, y = f.length; m < y; ++m) + (u = f[m]) && co(u, t, r, m, f, g); + o.push(f), a.push(h); } - return new We(o, a, t, r); + return new Ne(o, a, t, r); } -var r1 = Ji.prototype.constructor; -function i1() { - return new r1(this._groups, this._parents); +var Sb = Hi.prototype.constructor; +function _b() { + return new Sb(this._groups, this._parents); } -function s1(e, t) { +function Bb(e, t) { var r, i, s; return function() { - var o = Zr(this, e), a = (this.style.removeProperty(e), Zr(this, e)); + var o = jr(this, e), a = (this.style.removeProperty(e), jr(this, e)); return o === a ? null : o === r && a === i ? s : s = t(r = o, i = a); }; } -function Du(e) { +function id(e) { return function() { this.style.removeProperty(e); }; } -function o1(e, t, r) { +function vb(e, t, r) { var i, s = r + "", o; return function() { - var a = Zr(this, e); + var a = jr(this, e); return a === s ? null : a === i ? o : o = t(i = a, r); }; } -function a1(e, t, r) { +function Lb(e, t, r) { var i, s, o; return function() { - var a = Zr(this, e), n = r(this), l = n + ""; - return n == null && (l = n = (this.style.removeProperty(e), Zr(this, e))), a === l ? null : a === i && l === s ? o : (s = l, o = t(i = a, n)); + var a = jr(this, e), n = r(this), l = n + ""; + return n == null && (l = n = (this.style.removeProperty(e), jr(this, e))), a === l ? null : a === i && l === s ? o : (s = l, o = t(i = a, n)); }; } -function n1(e, t) { +function Fb(e, t) { var r, i, s, o = "style." + t, a = "end." + o, n; return function() { - var l = Ee(this, e), c = l.on, h = l.value[o] == null ? n || (n = Du(t)) : void 0; + var l = Fe(this, e), c = l.on, h = l.value[o] == null ? n || (n = id(t)) : void 0; (c !== r || s !== h) && (i = (r = c).copy()).on(a, s = h), l.on = i; }; } -function l1(e, t, r) { - var i = (e += "") == "transform" ? ub : Iu; - return t == null ? this.styleTween(e, s1(e, i)).on("end.style." + e, Du(e)) : typeof t == "function" ? this.styleTween(e, a1(e, i, Nn(this, "style." + e, t))).each(n1(this._id, e)) : this.styleTween(e, o1(e, i, t), r).on("end.style." + e, null); +function Ab(e, t, r) { + var i = (e += "") == "transform" ? $x : rd; + return t == null ? this.styleTween(e, Bb(e, i)).on("end.style." + e, id(e)) : typeof t == "function" ? this.styleTween(e, Lb(e, i, xn(this, "style." + e, t))).each(Fb(this._id, e)) : this.styleTween(e, vb(e, i, t), r).on("end.style." + e, null); } -function h1(e, t, r) { +function Mb(e, t, r) { return function(i) { this.style.setProperty(e, t.call(this, i), r); }; } -function c1(e, t, r) { +function Eb(e, t, r) { var i, s; function o() { var a = t.apply(this, arguments); - return a !== s && (i = (s = a) && h1(e, a, r)), i; + return a !== s && (i = (s = a) && Mb(e, a, r)), i; } return o._value = t, o; } -function u1(e, t, r) { +function $b(e, t, r) { var i = "style." + (e += ""); if (arguments.length < 2) return (i = this.tween(i)) && i._value; if (t == null) return this.tween(i, null); if (typeof t != "function") throw new Error(); - return this.tween(i, c1(e, t, r ?? "")); + return this.tween(i, Eb(e, t, r ?? "")); } -function d1(e) { +function Ob(e) { return function() { this.textContent = e; }; } -function p1(e) { +function Ib(e) { return function() { var t = e(this); this.textContent = t ?? ""; }; } -function f1(e) { - return this.tween("text", typeof e == "function" ? p1(Nn(this, "text", e)) : d1(e == null ? "" : e + "")); +function Db(e) { + return this.tween("text", typeof e == "function" ? Ib(xn(this, "text", e)) : Ob(e == null ? "" : e + "")); } -function g1(e) { +function Rb(e) { return function(t) { this.textContent = e.call(this, t); }; } -function m1(e) { +function Pb(e) { var t, r; function i() { var s = e.apply(this, arguments); - return s !== r && (t = (r = s) && g1(s)), t; + return s !== r && (t = (r = s) && Rb(s)), t; } return i._value = e, i; } -function y1(e) { +function Nb(e) { var t = "text"; if (arguments.length < 1) return (t = this.tween(t)) && t._value; if (e == null) return this.tween(t, null); if (typeof e != "function") throw new Error(); - return this.tween(t, m1(e)); + return this.tween(t, Pb(e)); } -function C1() { - for (var e = this._name, t = this._id, r = Pu(), i = this._groups, s = i.length, o = 0; o < s; ++o) +function qb() { + for (var e = this._name, t = this._id, r = sd(), i = this._groups, s = i.length, o = 0; o < s; ++o) for (var a = i[o], n = a.length, l, c = 0; c < n; ++c) if (l = a[c]) { - var h = ke(l, t); - wo(l, e, r, c, a, { + var h = Ce(l, t); + co(l, e, r, c, a, { time: h.time + h.delay + h.duration, delay: 0, duration: h.duration, ease: h.ease }); } - return new We(i, this._parents, e, r); + return new Ne(i, this._parents, e, r); } -function x1() { +function Wb() { var e, t, r = this, i = r._id, s = r.size(); return new Promise(function(o, a) { var n = { value: a }, l = { value: function() { --s === 0 && o(); } }; r.each(function() { - var c = Ee(this, i), h = c.on; + var c = Fe(this, i), h = c.on; h !== e && (t = (e = h).copy(), t._.cancel.push(n), t._.interrupt.push(n), t._.end.push(l)), c.on = t; }), s === 0 && o(); }); } -var b1 = 0; -function We(e, t, r, i) { +var zb = 0; +function Ne(e, t, r, i) { this._groups = e, this._parents = t, this._name = r, this._id = i; } -function Pu() { - return ++b1; -} -var Pe = Ji.prototype; -We.prototype = { - constructor: We, - select: t1, - selectAll: e1, - selectChild: Pe.selectChild, - selectChildren: Pe.selectChildren, - filter: Gb, - merge: Xb, - selection: i1, - transition: C1, - call: Pe.call, - nodes: Pe.nodes, - node: Pe.node, - size: Pe.size, - empty: Pe.empty, - each: Pe.each, - on: Kb, - attr: Mb, - attrTween: Db, - style: l1, - styleTween: u1, - text: f1, - textTween: y1, - remove: Jb, - tween: Sb, - delay: Nb, - duration: Wb, - ease: Yb, - easeVarying: Ub, - end: x1, - [Symbol.iterator]: Pe[Symbol.iterator] +function sd() { + return ++zb; +} +var Oe = Hi.prototype; +Ne.prototype = { + constructor: Ne, + select: wb, + selectAll: Tb, + selectChild: Oe.selectChild, + selectChildren: Oe.selectChildren, + filter: gb, + merge: mb, + selection: _b, + transition: qb, + call: Oe.call, + nodes: Oe.nodes, + node: Oe.node, + size: Oe.size, + empty: Oe.empty, + each: Oe.each, + on: xb, + attr: Jx, + attrTween: sb, + style: Ab, + styleTween: $b, + text: Db, + textTween: Nb, + remove: kb, + tween: Gx, + delay: nb, + duration: cb, + ease: ub, + easeVarying: pb, + end: Wb, + [Symbol.iterator]: Oe[Symbol.iterator] }; -function k1(e) { +function Hb(e) { return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2; } -var T1 = { +var Yb = { time: null, // Set on use. delay: 0, duration: 250, - ease: k1 + ease: Hb }; -function w1(e, t) { +function Ub(e, t) { for (var r; !(r = e.__transition) || !(r = r[t]); ) if (!(e = e.parentNode)) throw new Error(`transition ${t} not found`); return r; } -function S1(e) { +function Gb(e) { var t, r; - e instanceof We ? (t = e._id, e = e._name) : (t = Pu(), (r = T1).time = Pn(), e = e == null ? null : e + ""); + e instanceof Ne ? (t = e._id, e = e._name) : (t = sd(), (r = Yb).time = yn(), e = e == null ? null : e + ""); for (var i = this._groups, s = i.length, o = 0; o < s; ++o) for (var a = i[o], n = a.length, l, c = 0; c < n; ++c) - (l = a[c]) && wo(l, e, t, c, a, r || w1(l, t)); - return new We(i, this._parents, e, t); + (l = a[c]) && co(l, e, t, c, a, r || Ub(l, t)); + return new Ne(i, this._parents, e, t); } -Ji.prototype.interrupt = kb; -Ji.prototype.transition = S1; -const Pa = Math.PI, Ra = 2 * Pa, ur = 1e-6, _1 = Ra - ur; -function Ru(e) { +Hi.prototype.interrupt = Hx; +Hi.prototype.transition = Gb; +const ba = Math.PI, ka = 2 * ba, hr = 1e-6, jb = ka - hr; +function od(e) { this._ += e[0]; for (let t = 1, r = e.length; t < r; ++t) this._ += arguments[t] + e[t]; } -function v1(e) { +function Xb(e) { let t = Math.floor(e); if (!(t >= 0)) throw new Error(`invalid digits: ${e}`); - if (t > 15) return Ru; + if (t > 15) return od; const r = 10 ** t; return function(i) { this._ += i[0]; @@ -4933,10 +5040,10 @@ function v1(e) { this._ += Math.round(arguments[s] * r) / r + i[s]; }; } -class B1 { +class Vb { constructor(t) { this._x0 = this._y0 = // start of current subpath - this._x1 = this._y1 = null, this._ = "", this._append = t == null ? Ru : v1(t); + this._x1 = this._y1 = null, this._ = "", this._append = t == null ? od : Xb(t); } moveTo(t, r) { this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +r}`; @@ -4955,20 +5062,20 @@ class B1 { } arcTo(t, r, i, s, o) { if (t = +t, r = +r, i = +i, s = +s, o = +o, o < 0) throw new Error(`negative radius: ${o}`); - let a = this._x1, n = this._y1, l = i - t, c = s - r, h = a - t, u = n - r, p = h * h + u * u; + let a = this._x1, n = this._y1, l = i - t, c = s - r, h = a - t, d = n - r, f = h * h + d * d; if (this._x1 === null) this._append`M${this._x1 = t},${this._y1 = r}`; - else if (p > ur) if (!(Math.abs(u * l - c * h) > ur) || !o) + else if (f > hr) if (!(Math.abs(d * l - c * h) > hr) || !o) this._append`L${this._x1 = t},${this._y1 = r}`; else { - let d = i - a, g = s - n, m = l * l + c * c, y = d * d + g * g, x = Math.sqrt(m), b = Math.sqrt(p), k = o * Math.tan((Pa - Math.acos((m + p - y) / (2 * x * b))) / 2), w = k / b, S = k / x; - Math.abs(w - 1) > ur && this._append`L${t + w * h},${r + w * u}`, this._append`A${o},${o},0,0,${+(u * d > h * g)},${this._x1 = t + S * l},${this._y1 = r + S * c}`; + let u = i - a, g = s - n, m = l * l + c * c, y = u * u + g * g, C = Math.sqrt(m), b = Math.sqrt(f), k = o * Math.tan((ba - Math.acos((m + f - y) / (2 * C * b))) / 2), T = k / b, S = k / C; + Math.abs(T - 1) > hr && this._append`L${t + T * h},${r + T * d}`, this._append`A${o},${o},0,0,${+(d * u > h * g)},${this._x1 = t + S * l},${this._y1 = r + S * c}`; } } arc(t, r, i, s, o, a) { if (t = +t, r = +r, i = +i, a = !!a, i < 0) throw new Error(`negative radius: ${i}`); - let n = i * Math.cos(s), l = i * Math.sin(s), c = t + n, h = r + l, u = 1 ^ a, p = a ? s - o : o - s; - this._x1 === null ? this._append`M${c},${h}` : (Math.abs(this._x1 - c) > ur || Math.abs(this._y1 - h) > ur) && this._append`L${c},${h}`, i && (p < 0 && (p = p % Ra + Ra), p > _1 ? this._append`A${i},${i},0,1,${u},${t - n},${r - l}A${i},${i},0,1,${u},${this._x1 = c},${this._y1 = h}` : p > ur && this._append`A${i},${i},0,${+(p >= Pa)},${u},${this._x1 = t + i * Math.cos(o)},${this._y1 = r + i * Math.sin(o)}`); + let n = i * Math.cos(s), l = i * Math.sin(s), c = t + n, h = r + l, d = 1 ^ a, f = a ? s - o : o - s; + this._x1 === null ? this._append`M${c},${h}` : (Math.abs(this._x1 - c) > hr || Math.abs(this._y1 - h) > hr) && this._append`L${c},${h}`, i && (f < 0 && (f = f % ka + ka), f > jb ? this._append`A${i},${i},0,1,${d},${t - n},${r - l}A${i},${i},0,1,${d},${this._x1 = c},${this._y1 = h}` : f > hr && this._append`A${i},${i},0,${+(f >= ba)},${d},${this._x1 = t + i * Math.cos(o)},${this._y1 = r + i * Math.sin(o)}`); } rect(t, r, i, s) { this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +r}h${i = +i}v${+s}h${-i}Z`; @@ -4977,19 +5084,19 @@ class B1 { return this._; } } -function Dr(e) { +function $r(e) { return function() { return e; }; } -const lA = Math.abs, hA = Math.atan2, cA = Math.cos, uA = Math.max, dA = Math.min, pA = Math.sin, fA = Math.sqrt, _h = 1e-12, qn = Math.PI, vh = qn / 2, gA = 2 * qn; -function mA(e) { - return e > 1 ? 0 : e < -1 ? qn : Math.acos(e); +const wv = Math.abs, Tv = Math.atan2, Sv = Math.cos, _v = Math.max, Bv = Math.min, vv = Math.sin, Lv = Math.sqrt, lh = 1e-12, bn = Math.PI, hh = bn / 2, Fv = 2 * bn; +function Av(e) { + return e > 1 ? 0 : e < -1 ? bn : Math.acos(e); } -function yA(e) { - return e >= 1 ? vh : e <= -1 ? -vh : Math.asin(e); +function Mv(e) { + return e >= 1 ? hh : e <= -1 ? -hh : Math.asin(e); } -function L1(e) { +function Zb(e) { let t = 3; return e.digits = function(r) { if (!arguments.length) return t; @@ -5001,15 +5108,15 @@ function L1(e) { t = i; } return e; - }, () => new B1(t); + }, () => new Vb(t); } -function F1(e) { +function Kb(e) { return typeof e == "object" && "length" in e ? e : Array.from(e); } -function Nu(e) { +function ad(e) { this._context = e; } -Nu.prototype = { +ad.prototype = { areaStart: function() { this._line = 0; }, @@ -5036,37 +5143,37 @@ Nu.prototype = { } } }; -function $i(e) { - return new Nu(e); +function Bi(e) { + return new ad(e); } -function A1(e) { +function Qb(e) { return e[0]; } -function M1(e) { +function Jb(e) { return e[1]; } -function E1(e, t) { - var r = Dr(!0), i = null, s = $i, o = null, a = L1(n); - e = typeof e == "function" ? e : e === void 0 ? A1 : Dr(e), t = typeof t == "function" ? t : t === void 0 ? M1 : Dr(t); +function tk(e, t) { + var r = $r(!0), i = null, s = Bi, o = null, a = Zb(n); + e = typeof e == "function" ? e : e === void 0 ? Qb : $r(e), t = typeof t == "function" ? t : t === void 0 ? Jb : $r(t); function n(l) { - var c, h = (l = F1(l)).length, u, p = !1, d; - for (i == null && (o = s(d = a())), c = 0; c <= h; ++c) - !(c < h && r(u = l[c], c, l)) === p && ((p = !p) ? o.lineStart() : o.lineEnd()), p && o.point(+e(u, c, l), +t(u, c, l)); - if (d) return o = null, d + "" || null; + var c, h = (l = Kb(l)).length, d, f = !1, u; + for (i == null && (o = s(u = a())), c = 0; c <= h; ++c) + !(c < h && r(d = l[c], c, l)) === f && ((f = !f) ? o.lineStart() : o.lineEnd()), f && o.point(+e(d, c, l), +t(d, c, l)); + if (u) return o = null, u + "" || null; } return n.x = function(l) { - return arguments.length ? (e = typeof l == "function" ? l : Dr(+l), n) : e; + return arguments.length ? (e = typeof l == "function" ? l : $r(+l), n) : e; }, n.y = function(l) { - return arguments.length ? (t = typeof l == "function" ? l : Dr(+l), n) : t; + return arguments.length ? (t = typeof l == "function" ? l : $r(+l), n) : t; }, n.defined = function(l) { - return arguments.length ? (r = typeof l == "function" ? l : Dr(!!l), n) : r; + return arguments.length ? (r = typeof l == "function" ? l : $r(!!l), n) : r; }, n.curve = function(l) { return arguments.length ? (s = l, i != null && (o = s(i)), n) : s; }, n.context = function(l) { return arguments.length ? (l == null ? i = o = null : o = s(i = l), n) : i; }, n; } -class qu { +class nd { constructor(t, r) { this._context = t, this._x = r; } @@ -5099,15 +5206,15 @@ class qu { this._x0 = t, this._y0 = r; } } -function zu(e) { - return new qu(e, !0); +function ld(e) { + return new nd(e, !0); } -function Wu(e) { - return new qu(e, !1); +function hd(e) { + return new nd(e, !1); } -function er() { +function Je() { } -function Xs(e, t, r) { +function qs(e, t, r) { e._context.bezierCurveTo( (2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, @@ -5117,10 +5224,10 @@ function Xs(e, t, r) { (e._y0 + 4 * e._y1 + r) / 6 ); } -function So(e) { +function uo(e) { this._context = e; } -So.prototype = { +uo.prototype = { areaStart: function() { this._line = 0; }, @@ -5133,7 +5240,7 @@ So.prototype = { lineEnd: function() { switch (this._point) { case 3: - Xs(this, this._x1, this._y1); + qs(this, this._x1, this._y1); // falls through case 2: this._context.lineTo(this._x1, this._y1); @@ -5153,21 +5260,21 @@ So.prototype = { this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // falls through default: - Xs(this, e, t); + qs(this, e, t); break; } this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t; } }; -function Na(e) { - return new So(e); +function wa(e) { + return new uo(e); } -function Hu(e) { +function cd(e) { this._context = e; } -Hu.prototype = { - areaStart: er, - areaEnd: er, +cd.prototype = { + areaStart: Je, + areaEnd: Je, 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; }, @@ -5199,19 +5306,19 @@ Hu.prototype = { this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6); break; default: - Xs(this, e, t); + qs(this, e, t); break; } this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t; } }; -function $1(e) { - return new Hu(e); +function ek(e) { + return new cd(e); } -function Yu(e) { +function dd(e) { this._context = e; } -Yu.prototype = { +dd.prototype = { areaStart: function() { this._line = 0; }, @@ -5241,19 +5348,19 @@ Yu.prototype = { this._point = 4; // falls through default: - Xs(this, e, t); + qs(this, e, t); break; } this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t; } }; -function O1(e) { - return new Yu(e); +function rk(e) { + return new dd(e); } -function ju(e, t) { - this._basis = new So(e), this._beta = t; +function ud(e, t) { + this._basis = new uo(e), this._beta = t; } -ju.prototype = { +ud.prototype = { lineStart: function() { this._x = [], this._y = [], this._basis.lineStart(); }, @@ -5271,15 +5378,15 @@ ju.prototype = { this._x.push(+e), this._y.push(+t); } }; -const I1 = (function e(t) { +const ik = (function e(t) { function r(i) { - return t === 1 ? new So(i) : new ju(i, t); + return t === 1 ? new uo(i) : new ud(i, t); } return r.beta = function(i) { return e(+i); }, r; })(0.85); -function Vs(e, t, r) { +function Ws(e, t, r) { e._context.bezierCurveTo( e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), @@ -5289,10 +5396,10 @@ function Vs(e, t, r) { e._y2 ); } -function zn(e, t) { +function kn(e, t) { this._context = e, this._k = (1 - t) / 6; } -zn.prototype = { +kn.prototype = { areaStart: function() { this._line = 0; }, @@ -5308,7 +5415,7 @@ zn.prototype = { this._context.lineTo(this._x2, this._y2); break; case 3: - Vs(this, this._x1, this._y1); + Ws(this, this._x1, this._y1); break; } (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; @@ -5325,26 +5432,26 @@ zn.prototype = { this._point = 3; // falls through default: - Vs(this, e, t); + Ws(this, e, t); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t; } }; -const Uu = (function e(t) { +const fd = (function e(t) { function r(i) { - return new zn(i, t); + return new kn(i, t); } return r.tension = function(i) { return e(+i); }, r; })(0); -function Wn(e, t) { +function wn(e, t) { this._context = e, this._k = (1 - t) / 6; } -Wn.prototype = { - areaStart: er, - areaEnd: er, +wn.prototype = { + areaStart: Je, + areaEnd: Je, 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; }, @@ -5376,24 +5483,24 @@ Wn.prototype = { this._point = 3, this._x5 = e, this._y5 = t; break; default: - Vs(this, e, t); + Ws(this, e, t); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t; } }; -const D1 = (function e(t) { +const sk = (function e(t) { function r(i) { - return new Wn(i, t); + return new wn(i, t); } return r.tension = function(i) { return e(+i); }, r; })(0); -function Hn(e, t) { +function Tn(e, t) { this._context = e, this._k = (1 - t) / 6; } -Hn.prototype = { +Tn.prototype = { areaStart: function() { this._line = 0; }, @@ -5421,36 +5528,36 @@ Hn.prototype = { this._point = 4; // falls through default: - Vs(this, e, t); + Ws(this, e, t); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t; } }; -const P1 = (function e(t) { +const ok = (function e(t) { function r(i) { - return new Hn(i, t); + return new Tn(i, t); } return r.tension = function(i) { return e(+i); }, r; })(0); -function Yn(e, t, r) { +function Sn(e, t, r) { var i = e._x1, s = e._y1, o = e._x2, a = e._y2; - if (e._l01_a > _h) { + if (e._l01_a > lh) { var n = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, l = 3 * e._l01_a * (e._l01_a + e._l12_a); i = (i * n - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / l, s = (s * n - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / l; } - if (e._l23_a > _h) { + if (e._l23_a > lh) { var c = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, h = 3 * e._l23_a * (e._l23_a + e._l12_a); o = (o * c + e._x1 * e._l23_2a - t * e._l12_2a) / h, a = (a * c + e._y1 * e._l23_2a - r * e._l12_2a) / h; } e._context.bezierCurveTo(i, s, o, a, e._x2, e._y2); } -function Gu(e, t) { +function pd(e, t) { this._context = e, this._alpha = t; } -Gu.prototype = { +pd.prototype = { areaStart: function() { this._line = 0; }, @@ -5487,26 +5594,26 @@ Gu.prototype = { this._point = 3; // falls through default: - Yn(this, e, t); + Sn(this, e, t); 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 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t; } }; -const Xu = (function e(t) { +const gd = (function e(t) { function r(i) { - return t ? new Gu(i, t) : new zn(i, 0); + return t ? new pd(i, t) : new kn(i, 0); } return r.alpha = function(i) { return e(+i); }, r; })(0.5); -function Vu(e, t) { +function md(e, t) { this._context = e, this._alpha = t; } -Vu.prototype = { - areaStart: er, - areaEnd: er, +md.prototype = { + areaStart: Je, + areaEnd: Je, 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; }, @@ -5542,24 +5649,24 @@ Vu.prototype = { this._point = 3, this._x5 = e, this._y5 = t; break; default: - Yn(this, e, t); + Sn(this, e, t); 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 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t; } }; -const R1 = (function e(t) { +const ak = (function e(t) { function r(i) { - return t ? new Vu(i, t) : new Wn(i, 0); + return t ? new md(i, t) : new wn(i, 0); } return r.alpha = function(i) { return e(+i); }, r; })(0.5); -function Zu(e, t) { +function yd(e, t) { this._context = e, this._alpha = t; } -Zu.prototype = { +yd.prototype = { areaStart: function() { this._line = 0; }, @@ -5591,26 +5698,26 @@ Zu.prototype = { this._point = 4; // falls through default: - Yn(this, e, t); + Sn(this, e, t); 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 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t; } }; -const N1 = (function e(t) { +const nk = (function e(t) { function r(i) { - return t ? new Zu(i, t) : new Hn(i, 0); + return t ? new yd(i, t) : new Tn(i, 0); } return r.alpha = function(i) { return e(+i); }, r; })(0.5); -function Ku(e) { +function Cd(e) { this._context = e; } -Ku.prototype = { - areaStart: er, - areaEnd: er, +Cd.prototype = { + areaStart: Je, + areaEnd: Je, lineStart: function() { this._point = 0; }, @@ -5621,28 +5728,28 @@ Ku.prototype = { e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t)); } }; -function q1(e) { - return new Ku(e); +function lk(e) { + return new Cd(e); } -function Bh(e) { +function ch(e) { return e < 0 ? -1 : 1; } -function Lh(e, t, r) { +function dh(e, t, r) { var i = e._x1 - e._x0, s = t - e._x1, o = (e._y1 - e._y0) / (i || s < 0 && -0), a = (r - e._y1) / (s || i < 0 && -0), n = (o * s + a * i) / (i + s); - return (Bh(o) + Bh(a)) * Math.min(Math.abs(o), Math.abs(a), 0.5 * Math.abs(n)) || 0; + return (ch(o) + ch(a)) * Math.min(Math.abs(o), Math.abs(a), 0.5 * Math.abs(n)) || 0; } -function Fh(e, t) { +function uh(e, t) { var r = e._x1 - e._x0; return r ? (3 * (e._y1 - e._y0) / r - t) / 2 : t; } -function ha(e, t, r) { +function Go(e, t, r) { var i = e._x0, s = e._y0, o = e._x1, a = e._y1, n = (o - i) / 3; e._context.bezierCurveTo(i + n, s + n * t, o - n, a - n * r, o, a); } -function Zs(e) { +function zs(e) { this._context = e; } -Zs.prototype = { +zs.prototype = { areaStart: function() { this._line = 0; }, @@ -5658,7 +5765,7 @@ Zs.prototype = { this._context.lineTo(this._x1, this._y1); break; case 3: - ha(this, this._t0, Fh(this, this._t0)); + Go(this, this._t0, uh(this, this._t0)); break; } (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; @@ -5674,26 +5781,26 @@ Zs.prototype = { this._point = 2; break; case 2: - this._point = 3, ha(this, Fh(this, r = Lh(this, e, t)), r); + this._point = 3, Go(this, uh(this, r = dh(this, e, t)), r); break; default: - ha(this, this._t0, r = Lh(this, e, t)); + Go(this, this._t0, r = dh(this, e, t)); break; } this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = r; } } }; -function Qu(e) { - this._context = new Ju(e); +function xd(e) { + this._context = new bd(e); } -(Qu.prototype = Object.create(Zs.prototype)).point = function(e, t) { - Zs.prototype.point.call(this, t, e); +(xd.prototype = Object.create(zs.prototype)).point = function(e, t) { + zs.prototype.point.call(this, t, e); }; -function Ju(e) { +function bd(e) { this._context = e; } -Ju.prototype = { +bd.prototype = { moveTo: function(e, t) { this._context.moveTo(t, e); }, @@ -5707,16 +5814,16 @@ Ju.prototype = { this._context.bezierCurveTo(t, e, i, r, o, s); } }; -function td(e) { - return new Zs(e); +function kd(e) { + return new zs(e); } -function ed(e) { - return new Qu(e); +function wd(e) { + return new xd(e); } -function rd(e) { +function Td(e) { this._context = e; } -rd.prototype = { +Td.prototype = { areaStart: function() { this._line = 0; }, @@ -5732,7 +5839,7 @@ rd.prototype = { if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), r === 2) this._context.lineTo(e[1], t[1]); else - for (var i = Ah(e), s = Ah(t), o = 0, a = 1; a < r; ++o, ++a) + for (var i = fh(e), s = fh(t), o = 0, a = 1; a < r; ++o, ++a) this._context.bezierCurveTo(i[0][o], s[0][o], i[1][o], s[1][o], e[a], t[a]); (this._line || this._line !== 0 && r === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null; }, @@ -5740,7 +5847,7 @@ rd.prototype = { this._x.push(+e), this._y.push(+t); } }; -function Ah(e) { +function fh(e) { var t, r = e.length - 1, i, s = new Array(r), o = new Array(r), a = new Array(r); for (s[0] = 0, o[0] = 2, a[0] = e[0] + 2 * e[1], t = 1; t < r - 1; ++t) s[t] = 1, o[t] = 4, a[t] = 4 * e[t] + 2 * e[t + 1]; for (s[r - 1] = 2, o[r - 1] = 7, a[r - 1] = 8 * e[r - 1] + e[r], t = 1; t < r; ++t) i = s[t] / o[t - 1], o[t] -= i, a[t] -= i * a[t - 1]; @@ -5748,13 +5855,13 @@ function Ah(e) { for (o[r - 1] = (e[r] + s[r - 1]) / 2, t = 0; t < r - 1; ++t) o[t] = 2 * e[t + 1] - s[t + 1]; return [s, o]; } -function id(e) { - return new rd(e); +function Sd(e) { + return new Td(e); } -function _o(e, t) { +function fo(e, t) { this._context = e, this._t = t; } -_o.prototype = { +fo.prototype = { areaStart: function() { this._line = 0; }, @@ -5788,25 +5895,25 @@ _o.prototype = { this._x = e, this._y = t; } }; -function sd(e) { - return new _o(e, 0.5); +function _d(e) { + return new fo(e, 0.5); } -function od(e) { - return new _o(e, 0); +function Bd(e) { + return new fo(e, 0); } -function ad(e) { - return new _o(e, 1); +function vd(e) { + return new fo(e, 1); } -function _i(e, t, r) { +function Ci(e, t, r) { this.k = e, this.x = t, this.y = r; } -_i.prototype = { - constructor: _i, +Ci.prototype = { + constructor: Ci, scale: function(e) { - return e === 1 ? this : new _i(this.k * e, this.x, this.y); + return e === 1 ? this : new Ci(this.k * e, this.x, this.y); }, translate: function(e, t) { - return e === 0 & t === 0 ? this : new _i(this.k, this.x + this.k * e, this.y + this.k * t); + return e === 0 & t === 0 ? this : new Ci(this.k, this.x + this.k * e, this.y + this.k * t); }, apply: function(e) { return [e[0] * this.k + this.x, e[1] * this.k + this.y]; @@ -5836,73 +5943,73 @@ _i.prototype = { return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")"; } }; -_i.prototype; -var z1 = /* @__PURE__ */ f((e) => { +Ci.prototype; +var hk = /* @__PURE__ */ p((e) => { const { securityLevel: t } = gt(); - let r = ct("body"); + let r = ht("body"); if (t === "sandbox") { - const o = ct(`#i${e}`).node()?.contentDocument ?? document; - r = ct(o.body); + const o = ht(`#i${e}`).node()?.contentDocument ?? document; + r = ht(o.body); } return r.select(`#${e}`); }, "selectSvgElement"); -function jn(e) { +function _n(e) { return typeof e > "u" || e === null; } -f(jn, "isNothing"); -function nd(e) { +p(_n, "isNothing"); +function Ld(e) { return typeof e == "object" && e !== null; } -f(nd, "isObject"); -function ld(e) { - return Array.isArray(e) ? e : jn(e) ? [] : [e]; +p(Ld, "isObject"); +function Fd(e) { + return Array.isArray(e) ? e : _n(e) ? [] : [e]; } -f(ld, "toArray"); -function hd(e, t) { +p(Fd, "toArray"); +function Ad(e, t) { var r, i, s, o; if (t) for (o = Object.keys(t), r = 0, i = o.length; r < i; r += 1) s = o[r], e[s] = t[s]; return e; } -f(hd, "extend"); -function cd(e, t) { +p(Ad, "extend"); +function Md(e, t) { var r = "", i; for (i = 0; i < t; i += 1) r += e; return r; } -f(cd, "repeat"); -function ud(e) { +p(Md, "repeat"); +function Ed(e) { return e === 0 && Number.NEGATIVE_INFINITY === 1 / e; } -f(ud, "isNegativeZero"); -var W1 = jn, H1 = nd, Y1 = ld, j1 = cd, U1 = ud, G1 = hd, Ot = { - isNothing: W1, - isObject: H1, - toArray: Y1, - repeat: j1, - isNegativeZero: U1, - extend: G1 +p(Ed, "isNegativeZero"); +var ck = _n, dk = Ld, uk = Fd, fk = Md, pk = Ed, gk = Ad, Ot = { + isNothing: ck, + isObject: dk, + toArray: uk, + repeat: fk, + isNegativeZero: pk, + extend: gk }; -function Un(e, t) { +function Bn(e, t) { var r = "", i = e.reason || "(unknown reason)"; return e.mark ? (e.mark.name && (r += 'in "' + e.mark.name + '" '), r += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (r += ` ` + e.mark.snippet), i + " " + r) : i; } -f(Un, "formatError"); -function Qr(e, t) { - Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = Un(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; +p(Bn, "formatError"); +function Vr(e, t) { + Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = Bn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; } -f(Qr, "YAMLException$1"); -Qr.prototype = Object.create(Error.prototype); -Qr.prototype.constructor = Qr; -Qr.prototype.toString = /* @__PURE__ */ f(function(t) { - return this.name + ": " + Un(this, t); +p(Vr, "YAMLException$1"); +Vr.prototype = Object.create(Error.prototype); +Vr.prototype.constructor = Vr; +Vr.prototype.toString = /* @__PURE__ */ p(function(t) { + return this.name + ": " + Bn(this, t); }, "toString"); -var te = Qr; -function Ms(e, t, r, i, s) { +var te = Vr; +function ks(e, t, r, i, s) { var o = "", a = "", n = Math.floor(s / 2) - 1; return i - t > n && (o = " ... ", t = i - n + o.length), r - i > n && (a = " ...", r = i + n - a.length), { str: o + e.slice(t, r).replace(/\t/g, "→") + a, @@ -5910,42 +6017,42 @@ function Ms(e, t, r, i, s) { // relative position }; } -f(Ms, "getLine"); -function Es(e, t) { +p(ks, "getLine"); +function ws(e, t) { return Ot.repeat(" ", t - e.length) + e; } -f(Es, "padStart"); -function dd(e, t) { +p(ws, "padStart"); +function $d(e, t) { if (t = Object.create(t || null), !e.buffer) return null; t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2); for (var r = /\r?\n|\r|\0/g, i = [0], s = [], o, a = -1; o = r.exec(e.buffer); ) s.push(o.index), i.push(o.index + o[0].length), e.position <= o.index && a < 0 && (a = i.length - 2); a < 0 && (a = i.length - 1); - var n = "", l, c, h = Math.min(e.line + t.linesAfter, s.length).toString().length, u = t.maxLength - (t.indent + h + 3); + var n = "", l, c, h = Math.min(e.line + t.linesAfter, s.length).toString().length, d = t.maxLength - (t.indent + h + 3); for (l = 1; l <= t.linesBefore && !(a - l < 0); l++) - c = Ms( + c = ks( e.buffer, i[a - l], s[a - l], e.position - (i[a] - i[a - l]), - u - ), n = Ot.repeat(" ", t.indent) + Es((e.line - l + 1).toString(), h) + " | " + c.str + ` + d + ), n = Ot.repeat(" ", t.indent) + ws((e.line - l + 1).toString(), h) + " | " + c.str + ` ` + n; - for (c = Ms(e.buffer, i[a], s[a], e.position, u), n += Ot.repeat(" ", t.indent) + Es((e.line + 1).toString(), h) + " | " + c.str + ` + for (c = ks(e.buffer, i[a], s[a], e.position, d), n += Ot.repeat(" ", t.indent) + ws((e.line + 1).toString(), h) + " | " + c.str + ` `, n += Ot.repeat("-", t.indent + h + 3 + c.pos) + `^ `, l = 1; l <= t.linesAfter && !(a + l >= s.length); l++) - c = Ms( + c = ks( e.buffer, i[a + l], s[a + l], e.position - (i[a] - i[a + l]), - u - ), n += Ot.repeat(" ", t.indent) + Es((e.line + l + 1).toString(), h) + " | " + c.str + ` + d + ), n += Ot.repeat(" ", t.indent) + ws((e.line + l + 1).toString(), h) + " | " + c.str + ` `; return n.replace(/\n$/, ""); } -f(dd, "makeSnippet"); -var X1 = dd, V1 = [ +p($d, "makeSnippet"); +var mk = $d, yk = [ "kind", "multi", "resolve", @@ -5956,12 +6063,12 @@ var X1 = dd, V1 = [ "representName", "defaultStyle", "styleAliases" -], Z1 = [ +], Ck = [ "scalar", "sequence", "mapping" ]; -function pd(e) { +function Od(e) { var t = {}; return e !== null && Object.keys(e).forEach(function(r) { e[r].forEach(function(i) { @@ -5969,21 +6076,21 @@ function pd(e) { }); }), t; } -f(pd, "compileStyleAliases"); -function fd(e, t) { +p(Od, "compileStyleAliases"); +function Id(e, t) { if (t = t || {}, Object.keys(t).forEach(function(r) { - if (V1.indexOf(r) === -1) + if (yk.indexOf(r) === -1) throw new te('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.'); }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() { return !0; }, this.construct = t.construct || function(r) { return r; - }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = pd(t.styleAliases || null), Z1.indexOf(this.kind) === -1) + }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Od(t.styleAliases || null), Ck.indexOf(this.kind) === -1) throw new te('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.'); } -f(fd, "Type$1"); -var Ht = fd; -function qa(e, t) { +p(Id, "Type$1"); +var zt = Id; +function Ta(e, t) { var r = []; return e[t].forEach(function(i) { var s = r.length; @@ -5992,8 +6099,8 @@ function qa(e, t) { }), r[s] = i; }), r; } -f(qa, "compileList"); -function gd() { +p(Ta, "compileList"); +function Dd() { var e = { scalar: {}, sequence: {}, @@ -6009,18 +6116,18 @@ function gd() { function i(s) { s.multi ? (e.multi[s.kind].push(s), e.multi.fallback.push(s)) : e[s.kind][s.tag] = e.fallback[s.tag] = s; } - for (f(i, "collectType"), t = 0, r = arguments.length; t < r; t += 1) + for (p(i, "collectType"), t = 0, r = arguments.length; t < r; t += 1) arguments[t].forEach(i); return e; } -f(gd, "compileMap"); -function Ks(e) { +p(Dd, "compileMap"); +function Hs(e) { return this.extend(e); } -f(Ks, "Schema$1"); -Ks.prototype.extend = /* @__PURE__ */ f(function(t) { +p(Hs, "Schema$1"); +Hs.prototype.extend = /* @__PURE__ */ p(function(t) { var r = [], i = []; - if (t instanceof Ht) + if (t instanceof zt) i.push(t); else if (Array.isArray(t)) i = i.concat(t); @@ -6029,124 +6136,124 @@ Ks.prototype.extend = /* @__PURE__ */ f(function(t) { else throw new te("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })"); r.forEach(function(o) { - if (!(o instanceof Ht)) + if (!(o instanceof zt)) throw new te("Specified list of YAML types (or a single Type object) contains a non-Type object."); if (o.loadKind && o.loadKind !== "scalar") throw new te("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported."); if (o.multi) throw new te("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit."); }), i.forEach(function(o) { - if (!(o instanceof Ht)) + if (!(o instanceof zt)) throw new te("Specified list of YAML types (or a single Type object) contains a non-Type object."); }); - var s = Object.create(Ks.prototype); - return s.implicit = (this.implicit || []).concat(r), s.explicit = (this.explicit || []).concat(i), s.compiledImplicit = qa(s, "implicit"), s.compiledExplicit = qa(s, "explicit"), s.compiledTypeMap = gd(s.compiledImplicit, s.compiledExplicit), s; + var s = Object.create(Hs.prototype); + return s.implicit = (this.implicit || []).concat(r), s.explicit = (this.explicit || []).concat(i), s.compiledImplicit = Ta(s, "implicit"), s.compiledExplicit = Ta(s, "explicit"), s.compiledTypeMap = Dd(s.compiledImplicit, s.compiledExplicit), s; }, "extend"); -var K1 = Ks, Q1 = new Ht("tag:yaml.org,2002:str", { +var xk = Hs, bk = new zt("tag:yaml.org,2002:str", { kind: "scalar", - construct: /* @__PURE__ */ f(function(e) { + construct: /* @__PURE__ */ p(function(e) { return e !== null ? e : ""; }, "construct") -}), J1 = new Ht("tag:yaml.org,2002:seq", { +}), kk = new zt("tag:yaml.org,2002:seq", { kind: "sequence", - construct: /* @__PURE__ */ f(function(e) { + construct: /* @__PURE__ */ p(function(e) { return e !== null ? e : []; }, "construct") -}), tk = new Ht("tag:yaml.org,2002:map", { +}), wk = new zt("tag:yaml.org,2002:map", { kind: "mapping", - construct: /* @__PURE__ */ f(function(e) { + construct: /* @__PURE__ */ p(function(e) { return e !== null ? e : {}; }, "construct") -}), ek = new K1({ +}), Tk = new xk({ explicit: [ - Q1, - J1, - tk + bk, + kk, + wk ] }); -function md(e) { +function Rd(e) { if (e === null) return !0; var t = e.length; return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL"); } -f(md, "resolveYamlNull"); -function yd() { +p(Rd, "resolveYamlNull"); +function Pd() { return null; } -f(yd, "constructYamlNull"); -function Cd(e) { +p(Pd, "constructYamlNull"); +function Nd(e) { return e === null; } -f(Cd, "isNull"); -var rk = new Ht("tag:yaml.org,2002:null", { +p(Nd, "isNull"); +var Sk = new zt("tag:yaml.org,2002:null", { kind: "scalar", - resolve: md, - construct: yd, - predicate: Cd, + resolve: Rd, + construct: Pd, + predicate: Nd, represent: { - canonical: /* @__PURE__ */ f(function() { + canonical: /* @__PURE__ */ p(function() { return "~"; }, "canonical"), - lowercase: /* @__PURE__ */ f(function() { + lowercase: /* @__PURE__ */ p(function() { return "null"; }, "lowercase"), - uppercase: /* @__PURE__ */ f(function() { + uppercase: /* @__PURE__ */ p(function() { return "NULL"; }, "uppercase"), - camelcase: /* @__PURE__ */ f(function() { + camelcase: /* @__PURE__ */ p(function() { return "Null"; }, "camelcase"), - empty: /* @__PURE__ */ f(function() { + empty: /* @__PURE__ */ p(function() { return ""; }, "empty") }, defaultStyle: "lowercase" }); -function xd(e) { +function qd(e) { if (e === null) return !1; var t = e.length; return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE"); } -f(xd, "resolveYamlBoolean"); -function bd(e) { +p(qd, "resolveYamlBoolean"); +function Wd(e) { return e === "true" || e === "True" || e === "TRUE"; } -f(bd, "constructYamlBoolean"); -function kd(e) { +p(Wd, "constructYamlBoolean"); +function zd(e) { return Object.prototype.toString.call(e) === "[object Boolean]"; } -f(kd, "isBoolean"); -var ik = new Ht("tag:yaml.org,2002:bool", { +p(zd, "isBoolean"); +var _k = new zt("tag:yaml.org,2002:bool", { kind: "scalar", - resolve: xd, - construct: bd, - predicate: kd, + resolve: qd, + construct: Wd, + predicate: zd, represent: { - lowercase: /* @__PURE__ */ f(function(e) { + lowercase: /* @__PURE__ */ p(function(e) { return e ? "true" : "false"; }, "lowercase"), - uppercase: /* @__PURE__ */ f(function(e) { + uppercase: /* @__PURE__ */ p(function(e) { return e ? "TRUE" : "FALSE"; }, "uppercase"), - camelcase: /* @__PURE__ */ f(function(e) { + camelcase: /* @__PURE__ */ p(function(e) { return e ? "True" : "False"; }, "camelcase") }, defaultStyle: "lowercase" }); -function Td(e) { +function Hd(e) { return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102; } -f(Td, "isHexCode"); -function wd(e) { +p(Hd, "isHexCode"); +function Yd(e) { return 48 <= e && e <= 55; } -f(wd, "isOctCode"); -function Sd(e) { +p(Yd, "isOctCode"); +function Ud(e) { return 48 <= e && e <= 57; } -f(Sd, "isDecCode"); -function _d(e) { +p(Ud, "isDecCode"); +function Gd(e) { if (e === null) return !1; var t = e.length, r = 0, i = !1, s; if (!t) return !1; @@ -6163,7 +6270,7 @@ function _d(e) { if (s === "x") { for (r++; r < t; r++) if (s = e[r], s !== "_") { - if (!Td(e.charCodeAt(r))) return !1; + if (!Hd(e.charCodeAt(r))) return !1; i = !0; } return i && s !== "_"; @@ -6171,7 +6278,7 @@ function _d(e) { if (s === "o") { for (r++; r < t; r++) if (s = e[r], s !== "_") { - if (!wd(e.charCodeAt(r))) return !1; + if (!Yd(e.charCodeAt(r))) return !1; i = !0; } return i && s !== "_"; @@ -6180,14 +6287,14 @@ function _d(e) { if (s === "_") return !1; for (; r < t; r++) if (s = e[r], s !== "_") { - if (!Sd(e.charCodeAt(r))) + if (!Ud(e.charCodeAt(r))) return !1; i = !0; } return !(!i || s === "_"); } -f(_d, "resolveYamlInteger"); -function vd(e) { +p(Gd, "resolveYamlInteger"); +function jd(e) { var t = e, r = 1, i; if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), i = t[0], (i === "-" || i === "+") && (i === "-" && (r = -1), t = t.slice(1), i = t[0]), t === "0") return 0; if (i === "0") { @@ -6197,28 +6304,28 @@ function vd(e) { } return r * parseInt(t, 10); } -f(vd, "constructYamlInteger"); -function Bd(e) { +p(jd, "constructYamlInteger"); +function Xd(e) { return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Ot.isNegativeZero(e); } -f(Bd, "isInteger"); -var sk = new Ht("tag:yaml.org,2002:int", { +p(Xd, "isInteger"); +var Bk = new zt("tag:yaml.org,2002:int", { kind: "scalar", - resolve: _d, - construct: vd, - predicate: Bd, + resolve: Gd, + construct: jd, + predicate: Xd, represent: { - binary: /* @__PURE__ */ f(function(e) { + binary: /* @__PURE__ */ p(function(e) { return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1); }, "binary"), - octal: /* @__PURE__ */ f(function(e) { + octal: /* @__PURE__ */ p(function(e) { return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1); }, "octal"), - decimal: /* @__PURE__ */ f(function(e) { + decimal: /* @__PURE__ */ p(function(e) { return e.toString(10); }, "decimal"), /* eslint-disable max-len */ - hexadecimal: /* @__PURE__ */ f(function(e) { + hexadecimal: /* @__PURE__ */ p(function(e) { return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1); }, "hexadecimal") }, @@ -6229,23 +6336,23 @@ var sk = new Ht("tag:yaml.org,2002:int", { decimal: [10, "dec"], hexadecimal: [16, "hex"] } -}), ok = new RegExp( +}), vk = new RegExp( // 2.5e4, 2.5 and integers "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); -function Ld(e) { - return !(e === null || !ok.test(e) || // Quick hack to not allow integers end with `_` +function Vd(e) { + return !(e === null || !vk.test(e) || // Quick hack to not allow integers end with `_` // Probably should update regexp & check speed e[e.length - 1] === "_"); } -f(Ld, "resolveYamlFloat"); -function Fd(e) { +p(Vd, "resolveYamlFloat"); +function Zd(e) { var t, r; return t = e.replace(/_/g, "").toLowerCase(), r = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : r * parseFloat(t, 10); } -f(Fd, "constructYamlFloat"); -var ak = /^[-+]?[0-9]+e/; -function Ad(e, t) { +p(Zd, "constructYamlFloat"); +var Lk = /^[-+]?[0-9]+e/; +function Kd(e, t) { var r; if (isNaN(e)) switch (t) { @@ -6276,39 +6383,39 @@ function Ad(e, t) { } else if (Ot.isNegativeZero(e)) return "-0.0"; - return r = e.toString(10), ak.test(r) ? r.replace("e", ".e") : r; + return r = e.toString(10), Lk.test(r) ? r.replace("e", ".e") : r; } -f(Ad, "representYamlFloat"); -function Md(e) { +p(Kd, "representYamlFloat"); +function Qd(e) { return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Ot.isNegativeZero(e)); } -f(Md, "isFloat"); -var nk = new Ht("tag:yaml.org,2002:float", { +p(Qd, "isFloat"); +var Fk = new zt("tag:yaml.org,2002:float", { kind: "scalar", - resolve: Ld, - construct: Fd, - predicate: Md, - represent: Ad, + resolve: Vd, + construct: Zd, + predicate: Qd, + represent: Kd, defaultStyle: "lowercase" -}), Ed = ek.extend({ +}), Jd = Tk.extend({ implicit: [ - rk, - ik, - sk, - nk + Sk, + _k, + Bk, + Fk ] -}), lk = Ed, $d = new RegExp( +}), Ak = Jd, tu = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" -), Od = new RegExp( +), eu = 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 Id(e) { - return e === null ? !1 : $d.exec(e) !== null || Od.exec(e) !== null; +function ru(e) { + return e === null ? !1 : tu.exec(e) !== null || eu.exec(e) !== null; } -f(Id, "resolveYamlTimestamp"); -function Dd(e) { - var t, r, i, s, o, a, n, l = 0, c = null, h, u, p; - if (t = $d.exec(e), t === null && (t = Od.exec(e)), t === null) throw new Error("Date resolve error"); +p(ru, "resolveYamlTimestamp"); +function iu(e) { + var t, r, i, s, o, a, n, l = 0, c = null, h, d, f; + if (t = tu.exec(e), t === null && (t = eu.exec(e)), t === null) throw new Error("Date resolve error"); if (r = +t[1], i = +t[2] - 1, s = +t[3], !t[4]) return new Date(Date.UTC(r, i, s)); if (o = +t[4], a = +t[5], n = +t[6], t[7]) { @@ -6316,32 +6423,32 @@ function Dd(e) { l += "0"; l = +l; } - return t[9] && (h = +t[10], u = +(t[11] || 0), c = (h * 60 + u) * 6e4, t[9] === "-" && (c = -c)), p = new Date(Date.UTC(r, i, s, o, a, n, l)), c && p.setTime(p.getTime() - c), p; + return t[9] && (h = +t[10], d = +(t[11] || 0), c = (h * 60 + d) * 6e4, t[9] === "-" && (c = -c)), f = new Date(Date.UTC(r, i, s, o, a, n, l)), c && f.setTime(f.getTime() - c), f; } -f(Dd, "constructYamlTimestamp"); -function Pd(e) { +p(iu, "constructYamlTimestamp"); +function su(e) { return e.toISOString(); } -f(Pd, "representYamlTimestamp"); -var hk = new Ht("tag:yaml.org,2002:timestamp", { +p(su, "representYamlTimestamp"); +var Mk = new zt("tag:yaml.org,2002:timestamp", { kind: "scalar", - resolve: Id, - construct: Dd, + resolve: ru, + construct: iu, instanceOf: Date, - represent: Pd + represent: su }); -function Rd(e) { +function ou(e) { return e === "<<" || e === null; } -f(Rd, "resolveYamlMerge"); -var ck = new Ht("tag:yaml.org,2002:merge", { +p(ou, "resolveYamlMerge"); +var Ek = new zt("tag:yaml.org,2002:merge", { kind: "scalar", - resolve: Rd -}), Gn = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= + resolve: ou +}), vn = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`; -function Nd(e) { +function au(e) { if (e === null) return !1; - var t, r, i = 0, s = e.length, o = Gn; + var t, r, i = 0, s = e.length, o = vn; for (r = 0; r < s; r++) if (t = o.indexOf(e.charAt(r)), !(t > 64)) { if (t < 0) return !1; @@ -6349,39 +6456,39 @@ function Nd(e) { } return i % 8 === 0; } -f(Nd, "resolveYamlBinary"); -function qd(e) { - var t, r, i = e.replace(/[\r\n=]/g, ""), s = i.length, o = Gn, a = 0, n = []; +p(au, "resolveYamlBinary"); +function nu(e) { + var t, r, i = e.replace(/[\r\n=]/g, ""), s = i.length, o = vn, a = 0, n = []; for (t = 0; t < s; t++) t % 4 === 0 && t && (n.push(a >> 16 & 255), n.push(a >> 8 & 255), n.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t)); return r = s % 4 * 6, r === 0 ? (n.push(a >> 16 & 255), n.push(a >> 8 & 255), n.push(a & 255)) : r === 18 ? (n.push(a >> 10 & 255), n.push(a >> 2 & 255)) : r === 12 && n.push(a >> 4 & 255), new Uint8Array(n); } -f(qd, "constructYamlBinary"); -function zd(e) { - var t = "", r = 0, i, s, o = e.length, a = Gn; +p(nu, "constructYamlBinary"); +function lu(e) { + var t = "", r = 0, i, s, o = e.length, a = vn; for (i = 0; i < o; i++) i % 3 === 0 && i && (t += a[r >> 18 & 63], t += a[r >> 12 & 63], t += a[r >> 6 & 63], t += a[r & 63]), r = (r << 8) + e[i]; return s = o % 3, s === 0 ? (t += a[r >> 18 & 63], t += a[r >> 12 & 63], t += a[r >> 6 & 63], t += a[r & 63]) : s === 2 ? (t += a[r >> 10 & 63], t += a[r >> 4 & 63], t += a[r << 2 & 63], t += a[64]) : s === 1 && (t += a[r >> 2 & 63], t += a[r << 4 & 63], t += a[64], t += a[64]), t; } -f(zd, "representYamlBinary"); -function Wd(e) { +p(lu, "representYamlBinary"); +function hu(e) { return Object.prototype.toString.call(e) === "[object Uint8Array]"; } -f(Wd, "isBinary"); -var uk = new Ht("tag:yaml.org,2002:binary", { +p(hu, "isBinary"); +var $k = new zt("tag:yaml.org,2002:binary", { kind: "scalar", - resolve: Nd, - construct: qd, - predicate: Wd, - represent: zd -}), dk = Object.prototype.hasOwnProperty, pk = Object.prototype.toString; -function Hd(e) { + resolve: au, + construct: nu, + predicate: hu, + represent: lu +}), Ok = Object.prototype.hasOwnProperty, Ik = Object.prototype.toString; +function cu(e) { if (e === null) return !0; var t = [], r, i, s, o, a, n = e; for (r = 0, i = n.length; r < i; r += 1) { - if (s = n[r], a = !1, pk.call(s) !== "[object Object]") return !1; + if (s = n[r], a = !1, Ik.call(s) !== "[object Object]") return !1; for (o in s) - if (dk.call(s, o)) + if (Ok.call(s, o)) if (!a) a = !0; else return !1; if (!a) return !1; @@ -6390,114 +6497,114 @@ function Hd(e) { } return !0; } -f(Hd, "resolveYamlOmap"); -function Yd(e) { +p(cu, "resolveYamlOmap"); +function du(e) { return e !== null ? e : []; } -f(Yd, "constructYamlOmap"); -var fk = new Ht("tag:yaml.org,2002:omap", { +p(du, "constructYamlOmap"); +var Dk = new zt("tag:yaml.org,2002:omap", { kind: "sequence", - resolve: Hd, - construct: Yd -}), gk = Object.prototype.toString; -function jd(e) { + resolve: cu, + construct: du +}), Rk = Object.prototype.toString; +function uu(e) { if (e === null) return !0; var t, r, i, s, o, a = e; for (o = new Array(a.length), t = 0, r = a.length; t < r; t += 1) { - if (i = a[t], gk.call(i) !== "[object Object]" || (s = Object.keys(i), s.length !== 1)) return !1; + if (i = a[t], Rk.call(i) !== "[object Object]" || (s = Object.keys(i), s.length !== 1)) return !1; o[t] = [s[0], i[s[0]]]; } return !0; } -f(jd, "resolveYamlPairs"); -function Ud(e) { +p(uu, "resolveYamlPairs"); +function fu(e) { if (e === null) return []; var t, r, i, s, o, a = e; for (o = new Array(a.length), t = 0, r = a.length; t < r; t += 1) i = a[t], s = Object.keys(i), o[t] = [s[0], i[s[0]]]; return o; } -f(Ud, "constructYamlPairs"); -var mk = new Ht("tag:yaml.org,2002:pairs", { +p(fu, "constructYamlPairs"); +var Pk = new zt("tag:yaml.org,2002:pairs", { kind: "sequence", - resolve: jd, - construct: Ud -}), yk = Object.prototype.hasOwnProperty; -function Gd(e) { + resolve: uu, + construct: fu +}), Nk = Object.prototype.hasOwnProperty; +function pu(e) { if (e === null) return !0; var t, r = e; for (t in r) - if (yk.call(r, t) && r[t] !== null) + if (Nk.call(r, t) && r[t] !== null) return !1; return !0; } -f(Gd, "resolveYamlSet"); -function Xd(e) { +p(pu, "resolveYamlSet"); +function gu(e) { return e !== null ? e : {}; } -f(Xd, "constructYamlSet"); -var Ck = new Ht("tag:yaml.org,2002:set", { +p(gu, "constructYamlSet"); +var qk = new zt("tag:yaml.org,2002:set", { kind: "mapping", - resolve: Gd, - construct: Xd -}), Vd = lk.extend({ + resolve: pu, + construct: gu +}), mu = Ak.extend({ implicit: [ - hk, - ck + Mk, + Ek ], explicit: [ - uk, - fk, - mk, - Ck + $k, + Dk, + Pk, + qk ] -}), rr = Object.prototype.hasOwnProperty, Qs = 1, Zd = 2, Kd = 3, Js = 4, ca = 1, xk = 2, Mh = 3, bk = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, kk = /[\x85\u2028\u2029]/, Tk = /[,\[\]\{\}]/, Qd = /^(?:!|!!|![a-z\-]+!)$/i, Jd = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; -function za(e) { +}), tr = Object.prototype.hasOwnProperty, Ys = 1, yu = 2, Cu = 3, Us = 4, jo = 1, Wk = 2, ph = 3, zk = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Hk = /[\x85\u2028\u2029]/, Yk = /[,\[\]\{\}]/, xu = /^(?:!|!!|![a-z\-]+!)$/i, bu = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; +function Sa(e) { return Object.prototype.toString.call(e); } -f(za, "_class"); -function ye(e) { +p(Sa, "_class"); +function pe(e) { return e === 10 || e === 13; } -f(ye, "is_EOL"); -function tr(e) { +p(pe, "is_EOL"); +function Qe(e) { return e === 9 || e === 32; } -f(tr, "is_WHITE_SPACE"); -function Ut(e) { +p(Qe, "is_WHITE_SPACE"); +function Gt(e) { return e === 9 || e === 32 || e === 10 || e === 13; } -f(Ut, "is_WS_OR_EOL"); -function mr(e) { +p(Gt, "is_WS_OR_EOL"); +function fr(e) { return e === 44 || e === 91 || e === 93 || e === 123 || e === 125; } -f(mr, "is_FLOW_INDICATOR"); -function tp(e) { +p(fr, "is_FLOW_INDICATOR"); +function ku(e) { var t; return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1); } -f(tp, "fromHexCode"); -function ep(e) { +p(ku, "fromHexCode"); +function wu(e) { return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0; } -f(ep, "escapedHexLen"); -function rp(e) { +p(wu, "escapedHexLen"); +function Tu(e) { return 48 <= e && e <= 57 ? e - 48 : -1; } -f(rp, "fromDecimalCode"); -function Wa(e) { +p(Tu, "fromDecimalCode"); +function _a(e) { return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? ` ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : ""; } -f(Wa, "simpleEscapeSequence"); -function ip(e) { +p(_a, "simpleEscapeSequence"); +function Su(e) { return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode( (e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320 ); } -f(ip, "charFromCodepoint"); -function Xn(e, t, r) { +p(Su, "charFromCodepoint"); +function Ln(e, t, r) { t === "__proto__" ? Object.defineProperty(e, t, { configurable: !0, enumerable: !0, @@ -6505,16 +6612,16 @@ function Xn(e, t, r) { value: r }) : e[t] = r; } -f(Xn, "setProperty"); -var sp = new Array(256), op = new Array(256); -for (hr = 0; hr < 256; hr++) - sp[hr] = Wa(hr) ? 1 : 0, op[hr] = Wa(hr); -var hr; -function ap(e, t) { - this.input = e, this.filename = t.filename || null, this.schema = t.schema || Vd, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, 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.firstTabInLine = -1, this.documents = []; +p(Ln, "setProperty"); +var _u = new Array(256), Bu = new Array(256); +for (ar = 0; ar < 256; ar++) + _u[ar] = _a(ar) ? 1 : 0, Bu[ar] = _a(ar); +var ar; +function vu(e, t) { + this.input = e, this.filename = t.filename || null, this.schema = t.schema || mu, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, 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.firstTabInLine = -1, this.documents = []; } -f(ap, "State$1"); -function Vn(e, t) { +p(vu, "State$1"); +function Fn(e, t) { var r = { name: e.filename, buffer: e.input.slice(0, -1), @@ -6523,419 +6630,419 @@ function Vn(e, t) { line: e.line, column: e.position - e.lineStart }; - return r.snippet = X1(r), new te(t, r); + return r.snippet = mk(r), new te(t, r); } -f(Vn, "generateError"); -function K(e, t) { - throw Vn(e, t); +p(Fn, "generateError"); +function Q(e, t) { + throw Fn(e, t); } -f(K, "throwError"); -function Wi(e, t) { - e.onWarning && e.onWarning.call(null, Vn(e, t)); +p(Q, "throwError"); +function Oi(e, t) { + e.onWarning && e.onWarning.call(null, Fn(e, t)); } -f(Wi, "throwWarning"); -var Eh = { - YAML: /* @__PURE__ */ f(function(t, r, i) { +p(Oi, "throwWarning"); +var gh = { + YAML: /* @__PURE__ */ p(function(t, r, i) { var s, o, a; - t.version !== null && K(t, "duplication of %YAML directive"), i.length !== 1 && K(t, "YAML directive accepts exactly one argument"), s = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), s === null && K(t, "ill-formed argument of the YAML directive"), o = parseInt(s[1], 10), a = parseInt(s[2], 10), o !== 1 && K(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Wi(t, "unsupported YAML version of the document"); + t.version !== null && Q(t, "duplication of %YAML directive"), i.length !== 1 && Q(t, "YAML directive accepts exactly one argument"), s = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), s === null && Q(t, "ill-formed argument of the YAML directive"), o = parseInt(s[1], 10), a = parseInt(s[2], 10), o !== 1 && Q(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Oi(t, "unsupported YAML version of the document"); }, "handleYamlDirective"), - TAG: /* @__PURE__ */ f(function(t, r, i) { + TAG: /* @__PURE__ */ p(function(t, r, i) { var s, o; - i.length !== 2 && K(t, "TAG directive accepts exactly two arguments"), s = i[0], o = i[1], Qd.test(s) || K(t, "ill-formed tag handle (first argument) of the TAG directive"), rr.call(t.tagMap, s) && K(t, 'there is a previously declared suffix for "' + s + '" tag handle'), Jd.test(o) || K(t, "ill-formed tag prefix (second argument) of the TAG directive"); + i.length !== 2 && Q(t, "TAG directive accepts exactly two arguments"), s = i[0], o = i[1], xu.test(s) || Q(t, "ill-formed tag handle (first argument) of the TAG directive"), tr.call(t.tagMap, s) && Q(t, 'there is a previously declared suffix for "' + s + '" tag handle'), bu.test(o) || Q(t, "ill-formed tag prefix (second argument) of the TAG directive"); try { o = decodeURIComponent(o); } catch { - K(t, "tag prefix is malformed: " + o); + Q(t, "tag prefix is malformed: " + o); } t.tagMap[s] = o; }, "handleTagDirective") }; -function ze(e, t, r, i) { +function Pe(e, t, r, i) { var s, o, a, n; if (t < r) { if (n = e.input.slice(t, r), i) for (s = 0, o = n.length; s < o; s += 1) - a = n.charCodeAt(s), a === 9 || 32 <= a && a <= 1114111 || K(e, "expected valid JSON character"); - else bk.test(n) && K(e, "the stream contains non-printable characters"); + a = n.charCodeAt(s), a === 9 || 32 <= a && a <= 1114111 || Q(e, "expected valid JSON character"); + else zk.test(n) && Q(e, "the stream contains non-printable characters"); e.result += n; } } -f(ze, "captureSegment"); -function Ha(e, t, r, i) { +p(Pe, "captureSegment"); +function Ba(e, t, r, i) { var s, o, a, n; - for (Ot.isObject(r) || K(e, "cannot merge mappings; the provided source object is unacceptable"), s = Object.keys(r), a = 0, n = s.length; a < n; a += 1) - o = s[a], rr.call(t, o) || (Xn(t, o, r[o]), i[o] = !0); + for (Ot.isObject(r) || Q(e, "cannot merge mappings; the provided source object is unacceptable"), s = Object.keys(r), a = 0, n = s.length; a < n; a += 1) + o = s[a], tr.call(t, o) || (Ln(t, o, r[o]), i[o] = !0); } -f(Ha, "mergeMappings"); -function yr(e, t, r, i, s, o, a, n, l) { +p(Ba, "mergeMappings"); +function pr(e, t, r, i, s, o, a, n, l) { var c, h; if (Array.isArray(s)) for (s = Array.prototype.slice.call(s), c = 0, h = s.length; c < h; c += 1) - Array.isArray(s[c]) && K(e, "nested arrays are not supported inside keys"), typeof s == "object" && za(s[c]) === "[object Object]" && (s[c] = "[object Object]"); - if (typeof s == "object" && za(s) === "[object Object]" && (s = "[object Object]"), s = String(s), t === null && (t = {}), i === "tag:yaml.org,2002:merge") + Array.isArray(s[c]) && Q(e, "nested arrays are not supported inside keys"), typeof s == "object" && Sa(s[c]) === "[object Object]" && (s[c] = "[object Object]"); + if (typeof s == "object" && Sa(s) === "[object Object]" && (s = "[object Object]"), s = String(s), t === null && (t = {}), i === "tag:yaml.org,2002:merge") if (Array.isArray(o)) for (c = 0, h = o.length; c < h; c += 1) - Ha(e, t, o[c], r); + Ba(e, t, o[c], r); else - Ha(e, t, o, r); + Ba(e, t, o, r); else - !e.json && !rr.call(r, s) && rr.call(t, s) && (e.line = a || e.line, e.lineStart = n || e.lineStart, e.position = l || e.position, K(e, "duplicated mapping key")), Xn(t, s, o), delete r[s]; + !e.json && !tr.call(r, s) && tr.call(t, s) && (e.line = a || e.line, e.lineStart = n || e.lineStart, e.position = l || e.position, Q(e, "duplicated mapping key")), Ln(t, s, o), delete r[s]; return t; } -f(yr, "storeMappingPair"); -function vo(e) { +p(pr, "storeMappingPair"); +function po(e) { var t; - t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : K(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1; + t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : Q(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1; } -f(vo, "readLineBreak"); -function vt(e, t, r) { +p(po, "readLineBreak"); +function Bt(e, t, r) { for (var i = 0, s = e.input.charCodeAt(e.position); s !== 0; ) { - for (; tr(s); ) + for (; Qe(s); ) s === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), s = e.input.charCodeAt(++e.position); if (t && s === 35) do s = e.input.charCodeAt(++e.position); while (s !== 10 && s !== 13 && s !== 0); - if (ye(s)) - for (vo(e), s = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; s === 32; ) + if (pe(s)) + for (po(e), s = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; s === 32; ) e.lineIndent++, s = e.input.charCodeAt(++e.position); else break; } - return r !== -1 && i !== 0 && e.lineIndent < r && Wi(e, "deficient indentation"), i; + return r !== -1 && i !== 0 && e.lineIndent < r && Oi(e, "deficient indentation"), i; } -f(vt, "skipSeparationSpace"); -function es(e) { +p(Bt, "skipSeparationSpace"); +function Ui(e) { var t = e.position, r; - return r = e.input.charCodeAt(t), !!((r === 45 || r === 46) && r === e.input.charCodeAt(t + 1) && r === e.input.charCodeAt(t + 2) && (t += 3, r = e.input.charCodeAt(t), r === 0 || Ut(r))); + return r = e.input.charCodeAt(t), !!((r === 45 || r === 46) && r === e.input.charCodeAt(t + 1) && r === e.input.charCodeAt(t + 2) && (t += 3, r = e.input.charCodeAt(t), r === 0 || Gt(r))); } -f(es, "testDocumentSeparator"); -function Bo(e, t) { +p(Ui, "testDocumentSeparator"); +function go(e, t) { t === 1 ? e.result += " " : t > 1 && (e.result += Ot.repeat(` `, t - 1)); } -f(Bo, "writeFoldedLines"); -function np(e, t, r) { - var i, s, o, a, n, l, c, h, u = e.kind, p = e.result, d; - if (d = e.input.charCodeAt(e.position), Ut(d) || mr(d) || d === 35 || d === 38 || d === 42 || d === 33 || d === 124 || d === 62 || d === 39 || d === 34 || d === 37 || d === 64 || d === 96 || (d === 63 || d === 45) && (s = e.input.charCodeAt(e.position + 1), Ut(s) || r && mr(s))) +p(go, "writeFoldedLines"); +function Lu(e, t, r) { + var i, s, o, a, n, l, c, h, d = e.kind, f = e.result, u; + if (u = e.input.charCodeAt(e.position), Gt(u) || fr(u) || u === 35 || u === 38 || u === 42 || u === 33 || u === 124 || u === 62 || u === 39 || u === 34 || u === 37 || u === 64 || u === 96 || (u === 63 || u === 45) && (s = e.input.charCodeAt(e.position + 1), Gt(s) || r && fr(s))) return !1; - for (e.kind = "scalar", e.result = "", o = a = e.position, n = !1; d !== 0; ) { - if (d === 58) { - if (s = e.input.charCodeAt(e.position + 1), Ut(s) || r && mr(s)) + for (e.kind = "scalar", e.result = "", o = a = e.position, n = !1; u !== 0; ) { + if (u === 58) { + if (s = e.input.charCodeAt(e.position + 1), Gt(s) || r && fr(s)) break; - } else if (d === 35) { - if (i = e.input.charCodeAt(e.position - 1), Ut(i)) + } else if (u === 35) { + if (i = e.input.charCodeAt(e.position - 1), Gt(i)) break; } else { - if (e.position === e.lineStart && es(e) || r && mr(d)) + if (e.position === e.lineStart && Ui(e) || r && fr(u)) break; - if (ye(d)) - if (l = e.line, c = e.lineStart, h = e.lineIndent, vt(e, !1, -1), e.lineIndent >= t) { - n = !0, d = e.input.charCodeAt(e.position); + if (pe(u)) + if (l = e.line, c = e.lineStart, h = e.lineIndent, Bt(e, !1, -1), e.lineIndent >= t) { + n = !0, u = e.input.charCodeAt(e.position); continue; } else { e.position = a, e.line = l, e.lineStart = c, e.lineIndent = h; break; } } - n && (ze(e, o, a, !1), Bo(e, e.line - l), o = a = e.position, n = !1), tr(d) || (a = e.position + 1), d = e.input.charCodeAt(++e.position); + n && (Pe(e, o, a, !1), go(e, e.line - l), o = a = e.position, n = !1), Qe(u) || (a = e.position + 1), u = e.input.charCodeAt(++e.position); } - return ze(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = p, !1); + return Pe(e, o, a, !1), e.result ? !0 : (e.kind = d, e.result = f, !1); } -f(np, "readPlainScalar"); -function lp(e, t) { +p(Lu, "readPlainScalar"); +function Fu(e, t) { var r, i, s; if (r = e.input.charCodeAt(e.position), r !== 39) return !1; for (e.kind = "scalar", e.result = "", e.position++, i = s = e.position; (r = e.input.charCodeAt(e.position)) !== 0; ) if (r === 39) - if (ze(e, i, e.position, !0), r = e.input.charCodeAt(++e.position), r === 39) + if (Pe(e, i, e.position, !0), r = e.input.charCodeAt(++e.position), r === 39) i = e.position, e.position++, s = e.position; else return !0; - else ye(r) ? (ze(e, i, s, !0), Bo(e, vt(e, !1, t)), i = s = e.position) : e.position === e.lineStart && es(e) ? K(e, "unexpected end of the document within a single quoted scalar") : (e.position++, s = e.position); - K(e, "unexpected end of the stream within a single quoted scalar"); + else pe(r) ? (Pe(e, i, s, !0), go(e, Bt(e, !1, t)), i = s = e.position) : e.position === e.lineStart && Ui(e) ? Q(e, "unexpected end of the document within a single quoted scalar") : (e.position++, s = e.position); + Q(e, "unexpected end of the stream within a single quoted scalar"); } -f(lp, "readSingleQuotedScalar"); -function hp(e, t) { +p(Fu, "readSingleQuotedScalar"); +function Au(e, t) { var r, i, s, o, a, n; if (n = e.input.charCodeAt(e.position), n !== 34) return !1; for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0; ) { if (n === 34) - return ze(e, r, e.position, !0), e.position++, !0; + return Pe(e, r, e.position, !0), e.position++, !0; if (n === 92) { - if (ze(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), ye(n)) - vt(e, !1, t); - else if (n < 256 && sp[n]) - e.result += op[n], e.position++; - else if ((a = ep(n)) > 0) { + if (Pe(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), pe(n)) + Bt(e, !1, t); + else if (n < 256 && _u[n]) + e.result += Bu[n], e.position++; + else if ((a = wu(n)) > 0) { for (s = a, o = 0; s > 0; s--) - n = e.input.charCodeAt(++e.position), (a = tp(n)) >= 0 ? o = (o << 4) + a : K(e, "expected hexadecimal character"); - e.result += ip(o), e.position++; + n = e.input.charCodeAt(++e.position), (a = ku(n)) >= 0 ? o = (o << 4) + a : Q(e, "expected hexadecimal character"); + e.result += Su(o), e.position++; } else - K(e, "unknown escape sequence"); + Q(e, "unknown escape sequence"); r = i = e.position; - } else ye(n) ? (ze(e, r, i, !0), Bo(e, vt(e, !1, t)), r = i = e.position) : e.position === e.lineStart && es(e) ? K(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position); + } else pe(n) ? (Pe(e, r, i, !0), go(e, Bt(e, !1, t)), r = i = e.position) : e.position === e.lineStart && Ui(e) ? Q(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position); } - K(e, "unexpected end of the stream within a double quoted scalar"); + Q(e, "unexpected end of the stream within a double quoted scalar"); } -f(hp, "readDoubleQuotedScalar"); -function cp(e, t) { - var r = !0, i, s, o, a = e.tag, n, l = e.anchor, c, h, u, p, d, g = /* @__PURE__ */ Object.create(null), m, y, x, b; +p(Au, "readDoubleQuotedScalar"); +function Mu(e, t) { + var r = !0, i, s, o, a = e.tag, n, l = e.anchor, c, h, d, f, u, g = /* @__PURE__ */ Object.create(null), m, y, C, b; if (b = e.input.charCodeAt(e.position), b === 91) - h = 93, d = !1, n = []; + h = 93, u = !1, n = []; else if (b === 123) - h = 125, d = !0, n = {}; + h = 125, u = !0, n = {}; else return !1; for (e.anchor !== null && (e.anchorMap[e.anchor] = n), b = e.input.charCodeAt(++e.position); b !== 0; ) { - if (vt(e, !0, t), b = e.input.charCodeAt(e.position), b === h) - return e.position++, e.tag = a, e.anchor = l, e.kind = d ? "mapping" : "sequence", e.result = n, !0; - r ? b === 44 && K(e, "expected the node content, but found ','") : K(e, "missed comma between flow collection entries"), y = m = x = null, u = p = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), Ut(c) && (u = p = !0, e.position++, vt(e, !0, t))), i = e.line, s = e.lineStart, o = e.position, Tr(e, t, Qs, !1, !0), y = e.tag, m = e.result, vt(e, !0, t), b = e.input.charCodeAt(e.position), (p || e.line === i) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), vt(e, !0, t), Tr(e, t, Qs, !1, !0), x = e.result), d ? yr(e, n, g, y, m, x, i, s, o) : u ? n.push(yr(e, null, g, y, m, x, i, s, o)) : n.push(m), vt(e, !0, t), b = e.input.charCodeAt(e.position), b === 44 ? (r = !0, b = e.input.charCodeAt(++e.position)) : r = !1; + if (Bt(e, !0, t), b = e.input.charCodeAt(e.position), b === h) + return e.position++, e.tag = a, e.anchor = l, e.kind = u ? "mapping" : "sequence", e.result = n, !0; + r ? b === 44 && Q(e, "expected the node content, but found ','") : Q(e, "missed comma between flow collection entries"), y = m = C = null, d = f = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), Gt(c) && (d = f = !0, e.position++, Bt(e, !0, t))), i = e.line, s = e.lineStart, o = e.position, xr(e, t, Ys, !1, !0), y = e.tag, m = e.result, Bt(e, !0, t), b = e.input.charCodeAt(e.position), (f || e.line === i) && b === 58 && (d = !0, b = e.input.charCodeAt(++e.position), Bt(e, !0, t), xr(e, t, Ys, !1, !0), C = e.result), u ? pr(e, n, g, y, m, C, i, s, o) : d ? n.push(pr(e, null, g, y, m, C, i, s, o)) : n.push(m), Bt(e, !0, t), b = e.input.charCodeAt(e.position), b === 44 ? (r = !0, b = e.input.charCodeAt(++e.position)) : r = !1; } - K(e, "unexpected end of the stream within a flow collection"); + Q(e, "unexpected end of the stream within a flow collection"); } -f(cp, "readFlowCollection"); -function up(e, t) { - var r, i, s = ca, o = !1, a = !1, n = t, l = 0, c = !1, h, u; - if (u = e.input.charCodeAt(e.position), u === 124) +p(Mu, "readFlowCollection"); +function Eu(e, t) { + var r, i, s = jo, o = !1, a = !1, n = t, l = 0, c = !1, h, d; + if (d = e.input.charCodeAt(e.position), d === 124) i = !1; - else if (u === 62) + else if (d === 62) i = !0; else return !1; - for (e.kind = "scalar", e.result = ""; u !== 0; ) - if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45) - ca === s ? s = u === 43 ? Mh : xk : K(e, "repeat of a chomping mode identifier"); - else if ((h = rp(u)) >= 0) - h === 0 ? K(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? K(e, "repeat of an indentation width identifier") : (n = t + h - 1, a = !0); + for (e.kind = "scalar", e.result = ""; d !== 0; ) + if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) + jo === s ? s = d === 43 ? ph : Wk : Q(e, "repeat of a chomping mode identifier"); + else if ((h = Tu(d)) >= 0) + h === 0 ? Q(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? Q(e, "repeat of an indentation width identifier") : (n = t + h - 1, a = !0); else break; - if (tr(u)) { + if (Qe(d)) { do - u = e.input.charCodeAt(++e.position); - while (tr(u)); - if (u === 35) + d = e.input.charCodeAt(++e.position); + while (Qe(d)); + if (d === 35) do - u = e.input.charCodeAt(++e.position); - while (!ye(u) && u !== 0); + d = e.input.charCodeAt(++e.position); + while (!pe(d) && d !== 0); } - for (; u !== 0; ) { - for (vo(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < n) && u === 32; ) - e.lineIndent++, u = e.input.charCodeAt(++e.position); - if (!a && e.lineIndent > n && (n = e.lineIndent), ye(u)) { + for (; d !== 0; ) { + for (po(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!a || e.lineIndent < n) && d === 32; ) + e.lineIndent++, d = e.input.charCodeAt(++e.position); + if (!a && e.lineIndent > n && (n = e.lineIndent), pe(d)) { l++; continue; } if (e.lineIndent < n) { - s === Mh ? e.result += Ot.repeat(` -`, o ? 1 + l : l) : s === ca && o && (e.result += ` + s === ph ? e.result += Ot.repeat(` +`, o ? 1 + l : l) : s === jo && o && (e.result += ` `); break; } - for (i ? tr(u) ? (c = !0, e.result += Ot.repeat(` + for (i ? Qe(d) ? (c = !0, e.result += Ot.repeat(` `, o ? 1 + l : l)) : c ? (c = !1, e.result += Ot.repeat(` `, l + 1)) : l === 0 ? o && (e.result += " ") : e.result += Ot.repeat(` `, l) : e.result += Ot.repeat(` -`, o ? 1 + l : l), o = !0, a = !0, l = 0, r = e.position; !ye(u) && u !== 0; ) - u = e.input.charCodeAt(++e.position); - ze(e, r, e.position, !1); +`, o ? 1 + l : l), o = !0, a = !0, l = 0, r = e.position; !pe(d) && d !== 0; ) + d = e.input.charCodeAt(++e.position); + Pe(e, r, e.position, !1); } return !0; } -f(up, "readBlockScalar"); -function Ya(e, t) { +p(Eu, "readBlockScalar"); +function va(e, t) { var r, i = e.tag, s = e.anchor, o = [], a, n = !1, l; if (e.firstTabInLine !== -1) return !1; - for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, K(e, "tab characters must not be used in indentation")), !(l !== 45 || (a = e.input.charCodeAt(e.position + 1), !Ut(a)))); ) { - if (n = !0, e.position++, vt(e, !0, -1) && e.lineIndent <= t) { + for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, Q(e, "tab characters must not be used in indentation")), !(l !== 45 || (a = e.input.charCodeAt(e.position + 1), !Gt(a)))); ) { + if (n = !0, e.position++, Bt(e, !0, -1) && e.lineIndent <= t) { o.push(null), l = e.input.charCodeAt(e.position); continue; } - if (r = e.line, Tr(e, t, Kd, !1, !0), o.push(e.result), vt(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === r || e.lineIndent > t) && l !== 0) - K(e, "bad indentation of a sequence entry"); + if (r = e.line, xr(e, t, Cu, !1, !0), o.push(e.result), Bt(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === r || e.lineIndent > t) && l !== 0) + Q(e, "bad indentation of a sequence entry"); else if (e.lineIndent < t) break; } return n ? (e.tag = i, e.anchor = s, e.kind = "sequence", e.result = o, !0) : !1; } -f(Ya, "readBlockSequence"); -function dp(e, t, r) { - var i, s, o, a, n, l, c = e.tag, h = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), d = null, g = null, m = null, y = !1, x = !1, b; +p(va, "readBlockSequence"); +function $u(e, t, r) { + var i, s, o, a, n, l, c = e.tag, h = e.anchor, d = {}, f = /* @__PURE__ */ Object.create(null), u = null, g = null, m = null, y = !1, C = !1, b; if (e.firstTabInLine !== -1) return !1; - for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) { - if (!y && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, K(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (b === 63 || b === 58) && Ut(i)) - b === 63 ? (y && (yr(e, u, p, d, g, null, a, n, l), d = g = m = null), x = !0, y = !0, s = !0) : y ? (y = !1, s = !0) : K(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = i; + for (e.anchor !== null && (e.anchorMap[e.anchor] = d), b = e.input.charCodeAt(e.position); b !== 0; ) { + if (!y && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, Q(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (b === 63 || b === 58) && Gt(i)) + b === 63 ? (y && (pr(e, d, f, u, g, null, a, n, l), u = g = m = null), C = !0, y = !0, s = !0) : y ? (y = !1, s = !0) : Q(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = i; else { - if (a = e.line, n = e.lineStart, l = e.position, !Tr(e, r, Zd, !1, !0)) + if (a = e.line, n = e.lineStart, l = e.position, !xr(e, r, yu, !1, !0)) break; if (e.line === o) { - for (b = e.input.charCodeAt(e.position); tr(b); ) + for (b = e.input.charCodeAt(e.position); Qe(b); ) b = e.input.charCodeAt(++e.position); if (b === 58) - b = e.input.charCodeAt(++e.position), Ut(b) || K(e, "a whitespace character is expected after the key-value separator within a block mapping"), y && (yr(e, u, p, d, g, null, a, n, l), d = g = m = null), x = !0, y = !1, s = !1, d = e.tag, g = e.result; - else if (x) - K(e, "can not read an implicit mapping pair; a colon is missed"); + b = e.input.charCodeAt(++e.position), Gt(b) || Q(e, "a whitespace character is expected after the key-value separator within a block mapping"), y && (pr(e, d, f, u, g, null, a, n, l), u = g = m = null), C = !0, y = !1, s = !1, u = e.tag, g = e.result; + else if (C) + Q(e, "can not read an implicit mapping pair; a colon is missed"); else return e.tag = c, e.anchor = h, !0; - } else if (x) - K(e, "can not read a block mapping entry; a multiline key may not be an implicit key"); + } else if (C) + Q(e, "can not read a block mapping entry; a multiline key may not be an implicit key"); else return e.tag = c, e.anchor = h, !0; } - if ((e.line === o || e.lineIndent > t) && (y && (a = e.line, n = e.lineStart, l = e.position), Tr(e, t, Js, !0, s) && (y ? g = e.result : m = e.result), y || (yr(e, u, p, d, g, m, a, n, l), d = g = m = null), vt(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && b !== 0) - K(e, "bad indentation of a mapping entry"); + if ((e.line === o || e.lineIndent > t) && (y && (a = e.line, n = e.lineStart, l = e.position), xr(e, t, Us, !0, s) && (y ? g = e.result : m = e.result), y || (pr(e, d, f, u, g, m, a, n, l), u = g = m = null), Bt(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && b !== 0) + Q(e, "bad indentation of a mapping entry"); else if (e.lineIndent < t) break; } - return y && yr(e, u, p, d, g, null, a, n, l), x && (e.tag = c, e.anchor = h, e.kind = "mapping", e.result = u), x; + return y && pr(e, d, f, u, g, null, a, n, l), C && (e.tag = c, e.anchor = h, e.kind = "mapping", e.result = d), C; } -f(dp, "readBlockMapping"); -function pp(e) { +p($u, "readBlockMapping"); +function Ou(e) { var t, r = !1, i = !1, s, o, a; if (a = e.input.charCodeAt(e.position), a !== 33) return !1; - if (e.tag !== null && K(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (r = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, s = "!!", a = e.input.charCodeAt(++e.position)) : s = "!", t = e.position, r) { + if (e.tag !== null && Q(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (r = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, s = "!!", a = e.input.charCodeAt(++e.position)) : s = "!", t = e.position, r) { do a = e.input.charCodeAt(++e.position); while (a !== 0 && a !== 62); - e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : K(e, "unexpected end of the stream within a verbatim tag"); + e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : Q(e, "unexpected end of the stream within a verbatim tag"); } else { - for (; a !== 0 && !Ut(a); ) - a === 33 && (i ? K(e, "tag suffix cannot contain exclamation marks") : (s = e.input.slice(t - 1, e.position + 1), Qd.test(s) || K(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position); - o = e.input.slice(t, e.position), Tk.test(o) && K(e, "tag suffix cannot contain flow indicator characters"); + for (; a !== 0 && !Gt(a); ) + a === 33 && (i ? Q(e, "tag suffix cannot contain exclamation marks") : (s = e.input.slice(t - 1, e.position + 1), xu.test(s) || Q(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position); + o = e.input.slice(t, e.position), Yk.test(o) && Q(e, "tag suffix cannot contain flow indicator characters"); } - o && !Jd.test(o) && K(e, "tag name cannot contain such characters: " + o); + o && !bu.test(o) && Q(e, "tag name cannot contain such characters: " + o); try { o = decodeURIComponent(o); } catch { - K(e, "tag name is malformed: " + o); + Q(e, "tag name is malformed: " + o); } - return r ? e.tag = o : rr.call(e.tagMap, s) ? e.tag = e.tagMap[s] + o : s === "!" ? e.tag = "!" + o : s === "!!" ? e.tag = "tag:yaml.org,2002:" + o : K(e, 'undeclared tag handle "' + s + '"'), !0; + return r ? e.tag = o : tr.call(e.tagMap, s) ? e.tag = e.tagMap[s] + o : s === "!" ? e.tag = "!" + o : s === "!!" ? e.tag = "tag:yaml.org,2002:" + o : Q(e, 'undeclared tag handle "' + s + '"'), !0; } -f(pp, "readTagProperty"); -function fp(e) { +p(Ou, "readTagProperty"); +function Iu(e) { var t, r; if (r = e.input.charCodeAt(e.position), r !== 38) return !1; - for (e.anchor !== null && K(e, "duplication of an anchor property"), r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !Ut(r) && !mr(r); ) + for (e.anchor !== null && Q(e, "duplication of an anchor property"), r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !Gt(r) && !fr(r); ) r = e.input.charCodeAt(++e.position); - return e.position === t && K(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0; + return e.position === t && Q(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0; } -f(fp, "readAnchorProperty"); -function gp(e) { +p(Iu, "readAnchorProperty"); +function Du(e) { var t, r, i; if (i = e.input.charCodeAt(e.position), i !== 42) return !1; - for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !Ut(i) && !mr(i); ) + for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !Gt(i) && !fr(i); ) i = e.input.charCodeAt(++e.position); - return e.position === t && K(e, "name of an alias node must contain at least one character"), r = e.input.slice(t, e.position), rr.call(e.anchorMap, r) || K(e, 'unidentified alias "' + r + '"'), e.result = e.anchorMap[r], vt(e, !0, -1), !0; -} -f(gp, "readAlias"); -function Tr(e, t, r, i, s) { - var o, a, n, l = 1, c = !1, h = !1, u, p, d, g, m, y; - if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = n = Js === r || Kd === r, i && vt(e, !0, -1) && (c = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1) - for (; pp(e) || fp(e); ) - vt(e, !0, -1) ? (c = !0, n = o, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : n = !1; - if (n && (n = c || s), (l === 1 || Js === r) && (Qs === r || Zd === r ? m = t : m = t + 1, y = e.position - e.lineStart, l === 1 ? n && (Ya(e, y) || dp(e, y, m)) || cp(e, m) ? h = !0 : (a && up(e, m) || lp(e, m) || hp(e, m) ? h = !0 : gp(e) ? (h = !0, (e.tag !== null || e.anchor !== null) && K(e, "alias node should not have any properties")) : np(e, m, Qs === r) && (h = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (h = n && Ya(e, y))), e.tag === null) + return e.position === t && Q(e, "name of an alias node must contain at least one character"), r = e.input.slice(t, e.position), tr.call(e.anchorMap, r) || Q(e, 'unidentified alias "' + r + '"'), e.result = e.anchorMap[r], Bt(e, !0, -1), !0; +} +p(Du, "readAlias"); +function xr(e, t, r, i, s) { + var o, a, n, l = 1, c = !1, h = !1, d, f, u, g, m, y; + if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = n = Us === r || Cu === r, i && Bt(e, !0, -1) && (c = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1) + for (; Ou(e) || Iu(e); ) + Bt(e, !0, -1) ? (c = !0, n = o, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : n = !1; + if (n && (n = c || s), (l === 1 || Us === r) && (Ys === r || yu === r ? m = t : m = t + 1, y = e.position - e.lineStart, l === 1 ? n && (va(e, y) || $u(e, y, m)) || Mu(e, m) ? h = !0 : (a && Eu(e, m) || Fu(e, m) || Au(e, m) ? h = !0 : Du(e) ? (h = !0, (e.tag !== null || e.anchor !== null) && Q(e, "alias node should not have any properties")) : Lu(e, m, Ys === r) && (h = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (h = n && va(e, y))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result); else if (e.tag === "?") { - for (e.result !== null && e.kind !== "scalar" && K(e, 'unacceptable node kind for ! tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1) - if (g = e.implicitTypes[u], g.resolve(e.result)) { + for (e.result !== null && e.kind !== "scalar" && Q(e, 'unacceptable node kind for ! tag; it should be "scalar", not "' + e.kind + '"'), d = 0, f = e.implicitTypes.length; d < f; d += 1) + if (g = e.implicitTypes[d], g.resolve(e.result)) { e.result = g.construct(e.result), e.tag = g.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result); break; } } else if (e.tag !== "!") { - if (rr.call(e.typeMap[e.kind || "fallback"], e.tag)) + if (tr.call(e.typeMap[e.kind || "fallback"], e.tag)) g = e.typeMap[e.kind || "fallback"][e.tag]; else - for (g = null, d = e.typeMap.multi[e.kind || "fallback"], u = 0, p = d.length; u < p; u += 1) - if (e.tag.slice(0, d[u].tag.length) === d[u].tag) { - g = d[u]; + for (g = null, u = e.typeMap.multi[e.kind || "fallback"], d = 0, f = u.length; d < f; d += 1) + if (e.tag.slice(0, u[d].tag.length) === u[d].tag) { + g = u[d]; break; } - g || K(e, "unknown tag !<" + e.tag + ">"), e.result !== null && g.kind !== e.kind && K(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + g.kind + '", not "' + e.kind + '"'), g.resolve(e.result, e.tag) ? (e.result = g.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : K(e, "cannot resolve a node with !<" + e.tag + "> explicit tag"); + g || Q(e, "unknown tag !<" + e.tag + ">"), e.result !== null && g.kind !== e.kind && Q(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + g.kind + '", not "' + e.kind + '"'), g.resolve(e.result, e.tag) ? (e.result = g.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : Q(e, "cannot resolve a node with !<" + e.tag + "> explicit tag"); } return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || h; } -f(Tr, "composeNode"); -function mp(e) { +p(xr, "composeNode"); +function Ru(e) { var t = e.position, r, i, s, o = !1, a; - for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (vt(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) { - for (o = !0, a = e.input.charCodeAt(++e.position), r = e.position; a !== 0 && !Ut(a); ) + for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (Bt(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) { + for (o = !0, a = e.input.charCodeAt(++e.position), r = e.position; a !== 0 && !Gt(a); ) a = e.input.charCodeAt(++e.position); - for (i = e.input.slice(r, e.position), s = [], i.length < 1 && K(e, "directive name must not be less than one character in length"); a !== 0; ) { - for (; tr(a); ) + for (i = e.input.slice(r, e.position), s = [], i.length < 1 && Q(e, "directive name must not be less than one character in length"); a !== 0; ) { + for (; Qe(a); ) a = e.input.charCodeAt(++e.position); if (a === 35) { do a = e.input.charCodeAt(++e.position); - while (a !== 0 && !ye(a)); + while (a !== 0 && !pe(a)); break; } - if (ye(a)) break; - for (r = e.position; a !== 0 && !Ut(a); ) + if (pe(a)) break; + for (r = e.position; a !== 0 && !Gt(a); ) a = e.input.charCodeAt(++e.position); s.push(e.input.slice(r, e.position)); } - a !== 0 && vo(e), rr.call(Eh, i) ? Eh[i](e, i, s) : Wi(e, 'unknown document directive "' + i + '"'); + a !== 0 && po(e), tr.call(gh, i) ? gh[i](e, i, s) : Oi(e, 'unknown document directive "' + i + '"'); } - if (vt(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, vt(e, !0, -1)) : o && K(e, "directives end mark is expected"), Tr(e, e.lineIndent - 1, Js, !1, !0), vt(e, !0, -1), e.checkLineBreaks && kk.test(e.input.slice(t, e.position)) && Wi(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && es(e)) { - e.input.charCodeAt(e.position) === 46 && (e.position += 3, vt(e, !0, -1)); + if (Bt(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, Bt(e, !0, -1)) : o && Q(e, "directives end mark is expected"), xr(e, e.lineIndent - 1, Us, !1, !0), Bt(e, !0, -1), e.checkLineBreaks && Hk.test(e.input.slice(t, e.position)) && Oi(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ui(e)) { + e.input.charCodeAt(e.position) === 46 && (e.position += 3, Bt(e, !0, -1)); return; } if (e.position < e.length - 1) - K(e, "end of the stream or a document separator is expected"); + Q(e, "end of the stream or a document separator is expected"); else return; } -f(mp, "readDocument"); -function Zn(e, t) { +p(Ru, "readDocument"); +function An(e, t) { e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += ` `), e.charCodeAt(0) === 65279 && (e = e.slice(1))); - var r = new ap(e, t), i = e.indexOf("\0"); - for (i !== -1 && (r.position = i, K(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; ) + var r = new vu(e, t), i = e.indexOf("\0"); + for (i !== -1 && (r.position = i, Q(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; ) r.lineIndent += 1, r.position += 1; for (; r.position < r.length - 1; ) - mp(r); + Ru(r); return r.documents; } -f(Zn, "loadDocuments"); -function wk(e, t, r) { +p(An, "loadDocuments"); +function Uk(e, t, r) { t !== null && typeof t == "object" && typeof r > "u" && (r = t, t = null); - var i = Zn(e, r); + var i = An(e, r); if (typeof t != "function") return i; for (var s = 0, o = i.length; s < o; s += 1) t(i[s]); } -f(wk, "loadAll$1"); -function yp(e, t) { - var r = Zn(e, t); +p(Uk, "loadAll$1"); +function Pu(e, t) { + var r = An(e, t); if (r.length !== 0) { if (r.length === 1) return r[0]; throw new te("expected a single document in the stream, but found more"); } } -f(yp, "load$1"); -var Sk = yp, _k = { - load: Sk -}, Cp = Object.prototype.toString, xp = Object.prototype.hasOwnProperty, Kn = 65279, vk = 9, Hi = 10, Bk = 13, Lk = 32, Fk = 33, Ak = 34, ja = 35, Mk = 37, Ek = 38, $k = 39, Ok = 42, bp = 44, Ik = 45, to = 58, Dk = 61, Pk = 62, Rk = 63, Nk = 64, kp = 91, Tp = 93, qk = 96, wp = 123, zk = 124, Sp = 125, Yt = {}; -Yt[0] = "\\0"; -Yt[7] = "\\a"; -Yt[8] = "\\b"; -Yt[9] = "\\t"; -Yt[10] = "\\n"; -Yt[11] = "\\v"; -Yt[12] = "\\f"; -Yt[13] = "\\r"; -Yt[27] = "\\e"; -Yt[34] = '\\"'; -Yt[92] = "\\\\"; -Yt[133] = "\\N"; -Yt[160] = "\\_"; -Yt[8232] = "\\L"; -Yt[8233] = "\\P"; -var Wk = [ +p(Pu, "load$1"); +var Gk = Pu, jk = { + load: Gk +}, Nu = Object.prototype.toString, qu = Object.prototype.hasOwnProperty, Mn = 65279, Xk = 9, Ii = 10, Vk = 13, Zk = 32, Kk = 33, Qk = 34, La = 35, Jk = 37, t1 = 38, e1 = 39, r1 = 42, Wu = 44, i1 = 45, Gs = 58, s1 = 61, o1 = 62, a1 = 63, n1 = 64, zu = 91, Hu = 93, l1 = 96, Yu = 123, h1 = 124, Uu = 125, Ht = {}; +Ht[0] = "\\0"; +Ht[7] = "\\a"; +Ht[8] = "\\b"; +Ht[9] = "\\t"; +Ht[10] = "\\n"; +Ht[11] = "\\v"; +Ht[12] = "\\f"; +Ht[13] = "\\r"; +Ht[27] = "\\e"; +Ht[34] = '\\"'; +Ht[92] = "\\\\"; +Ht[133] = "\\N"; +Ht[160] = "\\_"; +Ht[8232] = "\\L"; +Ht[8233] = "\\P"; +var c1 = [ "y", "Y", "yes", @@ -6952,16 +7059,16 @@ var Wk = [ "off", "Off", "OFF" -], Hk = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; -function _p(e, t) { +], d1 = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; +function Gu(e, t) { var r, i, s, o, a, n, l; if (t === null) return {}; for (r = {}, i = Object.keys(t), s = 0, o = i.length; s < o; s += 1) - a = i[s], n = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = e.compiledTypeMap.fallback[a], l && xp.call(l.styleAliases, n) && (n = l.styleAliases[n]), r[a] = n; + a = i[s], n = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = e.compiledTypeMap.fallback[a], l && qu.call(l.styleAliases, n) && (n = l.styleAliases[n]), r[a] = n; return r; } -f(_p, "compileStyleMap"); -function vp(e) { +p(Gu, "compileStyleMap"); +function ju(e) { var t, r, i; if (t = e.toString(16).toUpperCase(), e <= 255) r = "x", i = 2; @@ -6973,108 +7080,108 @@ function vp(e) { throw new te("code point within a string may not be greater than 0xFFFFFFFF"); return "\\" + r + Ot.repeat("0", i - t.length) + t; } -f(vp, "encodeHex"); -var Yk = 1, Yi = 2; -function Bp(e) { - this.schema = e.schema || Vd, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Ot.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = _p(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Yi : Yk, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; +p(ju, "encodeHex"); +var u1 = 1, Di = 2; +function Xu(e) { + this.schema = e.schema || mu, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Ot.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Gu(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Di : u1, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; } -f(Bp, "State"); -function Ua(e, t) { +p(Xu, "State"); +function Fa(e, t) { for (var r = Ot.repeat(" ", t), i = 0, s = -1, o = "", a, n = e.length; i < n; ) s = e.indexOf(` `, i), s === -1 ? (a = e.slice(i), i = n) : (a = e.slice(i, s + 1), i = s + 1), a.length && a !== ` ` && (o += r), o += a; return o; } -f(Ua, "indentString"); -function eo(e, t) { +p(Fa, "indentString"); +function js(e, t) { return ` ` + Ot.repeat(" ", e.indent * t); } -f(eo, "generateNextLine"); -function Lp(e, t) { +p(js, "generateNextLine"); +function Vu(e, t) { var r, i, s; for (r = 0, i = e.implicitTypes.length; r < i; r += 1) if (s = e.implicitTypes[r], s.resolve(t)) return !0; return !1; } -f(Lp, "testImplicitResolving"); -function ji(e) { - return e === Lk || e === vk; +p(Vu, "testImplicitResolving"); +function Ri(e) { + return e === Zk || e === Xk; } -f(ji, "isWhitespace"); -function Jr(e) { - return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Kn || 65536 <= e && e <= 1114111; +p(Ri, "isWhitespace"); +function Zr(e) { + return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Mn || 65536 <= e && e <= 1114111; } -f(Jr, "isPrintable"); -function Ga(e) { - return Jr(e) && e !== Kn && e !== Bk && e !== Hi; +p(Zr, "isPrintable"); +function Aa(e) { + return Zr(e) && e !== Mn && e !== Vk && e !== Ii; } -f(Ga, "isNsCharOrWhitespace"); -function Xa(e, t, r) { - var i = Ga(e), s = i && !ji(e); +p(Aa, "isNsCharOrWhitespace"); +function Ma(e, t, r) { + var i = Aa(e), s = i && !Ri(e); return ( // ns-plain-safe (r ? ( // c = flow-in i - ) : i && e !== bp && e !== kp && e !== Tp && e !== wp && e !== Sp) && e !== ja && !(t === to && !s) || Ga(t) && !ji(t) && e === ja || t === to && s + ) : i && e !== Wu && e !== zu && e !== Hu && e !== Yu && e !== Uu) && e !== La && !(t === Gs && !s) || Aa(t) && !Ri(t) && e === La || t === Gs && s ); } -f(Xa, "isPlainSafe"); -function Fp(e) { - return Jr(e) && e !== Kn && !ji(e) && e !== Ik && e !== Rk && e !== to && e !== bp && e !== kp && e !== Tp && e !== wp && e !== Sp && e !== ja && e !== Ek && e !== Ok && e !== Fk && e !== zk && e !== Dk && e !== Pk && e !== $k && e !== Ak && e !== Mk && e !== Nk && e !== qk; +p(Ma, "isPlainSafe"); +function Zu(e) { + return Zr(e) && e !== Mn && !Ri(e) && e !== i1 && e !== a1 && e !== Gs && e !== Wu && e !== zu && e !== Hu && e !== Yu && e !== Uu && e !== La && e !== t1 && e !== r1 && e !== Kk && e !== h1 && e !== s1 && e !== o1 && e !== e1 && e !== Qk && e !== Jk && e !== n1 && e !== l1; } -f(Fp, "isPlainSafeFirst"); -function Ap(e) { - return !ji(e) && e !== to; +p(Zu, "isPlainSafeFirst"); +function Ku(e) { + return !Ri(e) && e !== Gs; } -f(Ap, "isPlainSafeLast"); -function Yr(e, t) { +p(Ku, "isPlainSafeLast"); +function qr(e, t) { var r = e.charCodeAt(t), i; return r >= 55296 && r <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (r - 55296) * 1024 + i - 56320 + 65536 : r; } -f(Yr, "codePointAt"); -function Qn(e) { +p(qr, "codePointAt"); +function En(e) { var t = /^\n* /; return t.test(e); } -f(Qn, "needIndentIndicator"); -var Mp = 1, Va = 2, Ep = 3, $p = 4, zr = 5; -function Op(e, t, r, i, s, o, a, n) { - var l, c = 0, h = null, u = !1, p = !1, d = i !== -1, g = -1, m = Fp(Yr(e, 0)) && Ap(Yr(e, e.length - 1)); +p(En, "needIndentIndicator"); +var Qu = 1, Ea = 2, Ju = 3, tf = 4, Rr = 5; +function ef(e, t, r, i, s, o, a, n) { + var l, c = 0, h = null, d = !1, f = !1, u = i !== -1, g = -1, m = Zu(qr(e, 0)) && Ku(qr(e, e.length - 1)); if (t || a) for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) { - if (c = Yr(e, l), !Jr(c)) - return zr; - m = m && Xa(c, h, n), h = c; + if (c = qr(e, l), !Zr(c)) + return Rr; + m = m && Ma(c, h, n), h = c; } else { for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) { - if (c = Yr(e, l), c === Hi) - u = !0, d && (p = p || // Foldable line = too long, and not more-indented. + if (c = qr(e, l), c === Ii) + d = !0, u && (f = f || // Foldable line = too long, and not more-indented. l - g - 1 > i && e[g + 1] !== " ", g = l); - else if (!Jr(c)) - return zr; - m = m && Xa(c, h, n), h = c; + else if (!Zr(c)) + return Rr; + m = m && Ma(c, h, n), h = c; } - p = p || d && l - g - 1 > i && e[g + 1] !== " "; + f = f || u && l - g - 1 > i && e[g + 1] !== " "; } - return !u && !p ? m && !a && !s(e) ? Mp : o === Yi ? zr : Va : r > 9 && Qn(e) ? zr : a ? o === Yi ? zr : Va : p ? $p : Ep; + return !d && !f ? m && !a && !s(e) ? Qu : o === Di ? Rr : Ea : r > 9 && En(e) ? Rr : a ? o === Di ? Rr : Ea : f ? tf : Ju; } -f(Op, "chooseScalarStyle"); -function Ip(e, t, r, i, s) { +p(ef, "chooseScalarStyle"); +function rf(e, t, r, i, s) { e.dump = (function() { if (t.length === 0) - return e.quotingType === Yi ? '""' : "''"; - if (!e.noCompatMode && (Wk.indexOf(t) !== -1 || Hk.test(t))) - return e.quotingType === Yi ? '"' + t + '"' : "'" + t + "'"; + return e.quotingType === Di ? '""' : "''"; + if (!e.noCompatMode && (c1.indexOf(t) !== -1 || d1.test(t))) + return e.quotingType === Di ? '"' + t + '"' : "'" + t + "'"; var o = e.indent * Math.max(1, r), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), n = i || e.flowLevel > -1 && r >= e.flowLevel; function l(c) { - return Lp(e, c); + return Vu(e, c); } - switch (f(l, "testAmbiguity"), Op( + switch (p(l, "testAmbiguity"), ef( t, n, e.indent, @@ -7084,51 +7191,51 @@ function Ip(e, t, r, i, s) { e.forceQuotes && !i, s )) { - case Mp: + case Qu: return t; - case Va: + case Ea: return "'" + t.replace(/'/g, "''") + "'"; - case Ep: - return "|" + Za(t, e.indent) + Ka(Ua(t, o)); - case $p: - return ">" + Za(t, e.indent) + Ka(Ua(Dp(t, a), o)); - case zr: - return '"' + Pp(t) + '"'; + case Ju: + return "|" + $a(t, e.indent) + Oa(Fa(t, o)); + case tf: + return ">" + $a(t, e.indent) + Oa(Fa(sf(t, a), o)); + case Rr: + return '"' + of(t) + '"'; default: throw new te("impossible error: invalid scalar style"); } })(); } -f(Ip, "writeScalar"); -function Za(e, t) { - var r = Qn(e) ? String(t) : "", i = e[e.length - 1] === ` +p(rf, "writeScalar"); +function $a(e, t) { + var r = En(e) ? String(t) : "", i = e[e.length - 1] === ` `, s = i && (e[e.length - 2] === ` ` || e === ` `), o = s ? "+" : i ? "" : "-"; return r + o + ` `; } -f(Za, "blockHeader"); -function Ka(e) { +p($a, "blockHeader"); +function Oa(e) { return e[e.length - 1] === ` ` ? e.slice(0, -1) : e; } -f(Ka, "dropEndingNewline"); -function Dp(e, t) { +p(Oa, "dropEndingNewline"); +function sf(e, t) { for (var r = /(\n+)([^\n]*)/g, i = (function() { var c = e.indexOf(` `); - return c = c !== -1 ? c : e.length, r.lastIndex = c, Qa(e.slice(0, c), t); + return c = c !== -1 ? c : e.length, r.lastIndex = c, Ia(e.slice(0, c), t); })(), s = e[0] === ` ` || e[0] === " ", o, a; a = r.exec(e); ) { var n = a[1], l = a[2]; o = l[0] === " ", i += n + (!s && !o && l !== "" ? ` -` : "") + Qa(l, t), s = o; +` : "") + Ia(l, t), s = o; } return i; } -f(Dp, "foldString"); -function Qa(e, t) { +p(sf, "foldString"); +function Ia(e, t) { if (e === "" || e[0] === " ") return e; for (var r = / [^ ]/g, i, s = 0, o, a = 0, n = 0, l = ""; i = r.exec(e); ) n = i.index, n - s > t && (o = a > s ? a : n, l += ` @@ -7137,36 +7244,36 @@ function Qa(e, t) { `, e.length - s > t && a > s ? l += e.slice(s, a) + ` ` + e.slice(a + 1) : l += e.slice(s), l.slice(1); } -f(Qa, "foldLine"); -function Pp(e) { +p(Ia, "foldLine"); +function of(e) { for (var t = "", r = 0, i, s = 0; s < e.length; r >= 65536 ? s += 2 : s++) - r = Yr(e, s), i = Yt[r], !i && Jr(r) ? (t += e[s], r >= 65536 && (t += e[s + 1])) : t += i || vp(r); + r = qr(e, s), i = Ht[r], !i && Zr(r) ? (t += e[s], r >= 65536 && (t += e[s + 1])) : t += i || ju(r); return t; } -f(Pp, "escapeString"); -function Rp(e, t, r) { +p(of, "escapeString"); +function af(e, t, r) { var i = "", s = e.tag, o, a, n; for (o = 0, a = r.length; o < a; o += 1) - n = r[o], e.replacer && (n = e.replacer.call(r, String(o), n)), (Fe(e, t, n, !1, !1) || typeof n > "u" && Fe(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump); + n = r[o], e.replacer && (n = e.replacer.call(r, String(o), n)), (Be(e, t, n, !1, !1) || typeof n > "u" && Be(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump); e.tag = s, e.dump = "[" + i + "]"; } -f(Rp, "writeFlowSequence"); -function Ja(e, t, r, i) { +p(af, "writeFlowSequence"); +function Da(e, t, r, i) { var s = "", o = e.tag, a, n, l; for (a = 0, n = r.length; a < n; a += 1) - l = r[a], e.replacer && (l = e.replacer.call(r, String(a), l)), (Fe(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && Fe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || s !== "") && (s += eo(e, t)), e.dump && Hi === e.dump.charCodeAt(0) ? s += "-" : s += "- ", s += e.dump); + l = r[a], e.replacer && (l = e.replacer.call(r, String(a), l)), (Be(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && Be(e, t + 1, null, !0, !0, !1, !0)) && ((!i || s !== "") && (s += js(e, t)), e.dump && Ii === e.dump.charCodeAt(0) ? s += "-" : s += "- ", s += e.dump); e.tag = o, e.dump = s || "[]"; } -f(Ja, "writeBlockSequence"); -function Np(e, t, r) { +p(Da, "writeBlockSequence"); +function nf(e, t, r) { var i = "", s = e.tag, o = Object.keys(r), a, n, l, c, h; for (a = 0, n = o.length; a < n; a += 1) - h = "", i !== "" && (h += ", "), e.condenseFlow && (h += '"'), l = o[a], c = r[l], e.replacer && (c = e.replacer.call(r, l, c)), Fe(e, t, l, !1, !1) && (e.dump.length > 1024 && (h += "? "), h += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Fe(e, t, c, !1, !1) && (h += e.dump, i += h)); + h = "", i !== "" && (h += ", "), e.condenseFlow && (h += '"'), l = o[a], c = r[l], e.replacer && (c = e.replacer.call(r, l, c)), Be(e, t, l, !1, !1) && (e.dump.length > 1024 && (h += "? "), h += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Be(e, t, c, !1, !1) && (h += e.dump, i += h)); e.tag = s, e.dump = "{" + i + "}"; } -f(Np, "writeFlowMapping"); -function qp(e, t, r, i) { - var s = "", o = e.tag, a = Object.keys(r), n, l, c, h, u, p; +p(nf, "writeFlowMapping"); +function lf(e, t, r, i) { + var s = "", o = e.tag, a = Object.keys(r), n, l, c, h, d, f; if (e.sortKeys === !0) a.sort(); else if (typeof e.sortKeys == "function") @@ -7174,18 +7281,18 @@ function qp(e, t, r, i) { else if (e.sortKeys) throw new te("sortKeys must be a boolean or a function"); for (n = 0, l = a.length; n < l; n += 1) - p = "", (!i || s !== "") && (p += eo(e, t)), c = a[n], h = r[c], e.replacer && (h = e.replacer.call(r, c, h)), Fe(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Hi === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, u && (p += eo(e, t)), Fe(e, t + 1, h, !0, u) && (e.dump && Hi === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, s += p)); + f = "", (!i || s !== "") && (f += js(e, t)), c = a[n], h = r[c], e.replacer && (h = e.replacer.call(r, c, h)), Be(e, t + 1, c, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && Ii === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += js(e, t)), Be(e, t + 1, h, !0, d) && (e.dump && Ii === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, s += f)); e.tag = o, e.dump = s || "{}"; } -f(qp, "writeBlockMapping"); -function tn(e, t, r) { +p(lf, "writeBlockMapping"); +function Ra(e, t, r) { var i, s, o, a, n, l; for (s = r ? e.explicitTypes : e.implicitTypes, o = 0, a = s.length; o < a; o += 1) if (n = s[o], (n.instanceOf || n.predicate) && (!n.instanceOf || typeof t == "object" && t instanceof n.instanceOf) && (!n.predicate || n.predicate(t))) { if (r ? n.multi && n.representName ? e.tag = n.representName(t) : e.tag = n.tag : e.tag = "?", n.represent) { - if (l = e.styleMap[n.tag] || n.defaultStyle, Cp.call(n.represent) === "[object Function]") + if (l = e.styleMap[n.tag] || n.defaultStyle, Nu.call(n.represent) === "[object Function]") i = n.represent(t, l); - else if (xp.call(n.represent, l)) + else if (qu.call(n.represent, l)) i = n.represent[l](t, l); else throw new te("!<" + n.tag + '> tag resolver accepts not "' + l + '" style'); @@ -7195,21 +7302,21 @@ function tn(e, t, r) { } return !1; } -f(tn, "detectType"); -function Fe(e, t, r, i, s, o, a) { - e.tag = null, e.dump = r, tn(e, r, !1) || tn(e, r, !0); - var n = Cp.call(e.dump), l = i, c; +p(Ra, "detectType"); +function Be(e, t, r, i, s, o, a) { + e.tag = null, e.dump = r, Ra(e, r, !1) || Ra(e, r, !0); + var n = Nu.call(e.dump), l = i, c; i && (i = e.flowLevel < 0 || e.flowLevel > t); - var h = n === "[object Object]" || n === "[object Array]", u, p; - if (h && (u = e.duplicates.indexOf(r), p = u !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (s = !1), p && e.usedDuplicates[u]) - e.dump = "*ref_" + u; + var h = n === "[object Object]" || n === "[object Array]", d, f; + if (h && (d = e.duplicates.indexOf(r), f = d !== -1), (e.tag !== null && e.tag !== "?" || f || e.indent !== 2 && t > 0) && (s = !1), f && e.usedDuplicates[d]) + e.dump = "*ref_" + d; else { - if (h && p && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), n === "[object Object]") - i && Object.keys(e.dump).length !== 0 ? (qp(e, t, e.dump, s), p && (e.dump = "&ref_" + u + e.dump)) : (Np(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump)); + if (h && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), n === "[object Object]") + i && Object.keys(e.dump).length !== 0 ? (lf(e, t, e.dump, s), f && (e.dump = "&ref_" + d + e.dump)) : (nf(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump)); else if (n === "[object Array]") - i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Ja(e, t - 1, e.dump, s) : Ja(e, t, e.dump, s), p && (e.dump = "&ref_" + u + e.dump)) : (Rp(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump)); + i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Da(e, t - 1, e.dump, s) : Da(e, t, e.dump, s), f && (e.dump = "&ref_" + d + e.dump)) : (af(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump)); else if (n === "[object String]") - e.tag !== "?" && Ip(e, e.dump, t, o, l); + e.tag !== "?" && rf(e, e.dump, t, o, l); else { if (n === "[object Undefined]") return !1; @@ -7222,49 +7329,49 @@ function Fe(e, t, r, i, s, o, a) { } return !0; } -f(Fe, "writeNode"); -function zp(e, t) { +p(Be, "writeNode"); +function hf(e, t) { var r = [], i = [], s, o; - for (ro(e, r, i), s = 0, o = i.length; s < o; s += 1) + for (Xs(e, r, i), s = 0, o = i.length; s < o; s += 1) t.duplicates.push(r[i[s]]); t.usedDuplicates = new Array(o); } -f(zp, "getDuplicateReferences"); -function ro(e, t, r) { +p(hf, "getDuplicateReferences"); +function Xs(e, t, r) { var i, s, o; if (e !== null && typeof e == "object") if (s = t.indexOf(e), s !== -1) r.indexOf(s) === -1 && r.push(s); else if (t.push(e), Array.isArray(e)) for (s = 0, o = e.length; s < o; s += 1) - ro(e[s], t, r); + Xs(e[s], t, r); else for (i = Object.keys(e), s = 0, o = i.length; s < o; s += 1) - ro(e[i[s]], t, r); + Xs(e[i[s]], t, r); } -f(ro, "inspectNode"); -function jk(e, t) { +p(Xs, "inspectNode"); +function f1(e, t) { t = t || {}; - var r = new Bp(t); - r.noRefs || zp(e, r); + var r = new Xu(t); + r.noRefs || hf(e, r); var i = e; - return r.replacer && (i = r.replacer.call({ "": i }, "", i)), Fe(r, 0, i, !0, !0) ? r.dump + ` + return r.replacer && (i = r.replacer.call({ "": i }, "", i)), Be(r, 0, i, !0, !0) ? r.dump + ` ` : ""; } -f(jk, "dump$1"); -function Uk(e, t) { +p(f1, "dump$1"); +function p1(e, t) { return function() { throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default."); }; } -f(Uk, "renamed"); -var Gk = Ed, Xk = _k.load; +p(p1, "renamed"); +var g1 = Jd, m1 = jk.load; /*! Bundled license information: js-yaml/dist/js-yaml.mjs: (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *) */ -var fi = /* @__PURE__ */ f((e, t) => { +var li = /* @__PURE__ */ p((e, t) => { if (t) return "translate(" + -e.width / 2 + ", " + -e.height / 2 + ")"; const r = e.x ?? 0, i = e.y ?? 0; @@ -7279,85 +7386,85 @@ var fi = /* @__PURE__ */ f((e, t) => { arrow_barb: 0, arrow_barb_neo: 5.5 //arrow_cross: 24, -}, $h = { +}, mh = { arrow_point: 4, arrow_cross: 12.5, arrow_circle: 12.5 }; -function vi(e, t) { +function xi(e, t) { if (e === void 0 || t === void 0) return { angle: 0, deltaX: 0, deltaY: 0 }; - e = Tt(e), t = Tt(t); + e = wt(e), t = wt(t); const [r, i] = [e.x, e.y], [s, o] = [t.x, t.y], a = s - r, n = o - i; return { angle: Math.atan(n / a), deltaX: a, deltaY: n }; } -f(vi, "calculateDeltaAndAngle"); -var Tt = /* @__PURE__ */ f((e) => Array.isArray(e) ? { x: e[0], y: e[1] } : e, "pointTransformer"), Vk = /* @__PURE__ */ f((e) => ({ - x: /* @__PURE__ */ f(function(t, r, i) { +p(xi, "calculateDeltaAndAngle"); +var wt = /* @__PURE__ */ p((e) => Array.isArray(e) ? { x: e[0], y: e[1] } : e, "pointTransformer"), y1 = /* @__PURE__ */ p((e) => ({ + x: /* @__PURE__ */ p(function(t, r, i) { let s = 0; - const o = Tt(i[0]).x < Tt(i[i.length - 1]).x ? "left" : "right"; + const o = wt(i[0]).x < wt(i[i.length - 1]).x ? "left" : "right"; if (r === 0 && Object.hasOwn(Wt, e.arrowTypeStart)) { - const { angle: d, deltaX: g } = vi(i[0], i[1]); - s = Wt[e.arrowTypeStart] * Math.cos(d) * (g >= 0 ? 1 : -1); + const { angle: u, deltaX: g } = xi(i[0], i[1]); + s = Wt[e.arrowTypeStart] * Math.cos(u) * (g >= 0 ? 1 : -1); } else if (r === i.length - 1 && Object.hasOwn(Wt, e.arrowTypeEnd)) { - const { angle: d, deltaX: g } = vi( + const { angle: u, deltaX: g } = xi( i[i.length - 1], i[i.length - 2] ); - s = Wt[e.arrowTypeEnd] * Math.cos(d) * (g >= 0 ? 1 : -1); + s = Wt[e.arrowTypeEnd] * Math.cos(u) * (g >= 0 ? 1 : -1); } const a = Math.abs( - Tt(t).x - Tt(i[i.length - 1]).x + wt(t).x - wt(i[i.length - 1]).x ), n = Math.abs( - Tt(t).y - Tt(i[i.length - 1]).y - ), l = Math.abs(Tt(t).x - Tt(i[0]).x), c = Math.abs(Tt(t).y - Tt(i[0]).y), h = Wt[e.arrowTypeStart], u = Wt[e.arrowTypeEnd], p = 1; - if (a < u && a > 0 && n < u) { - let d = u + p - a; - d *= o === "right" ? -1 : 1, s -= d; + wt(t).y - wt(i[i.length - 1]).y + ), l = Math.abs(wt(t).x - wt(i[0]).x), c = Math.abs(wt(t).y - wt(i[0]).y), h = Wt[e.arrowTypeStart], d = Wt[e.arrowTypeEnd], f = 1; + if (a < d && a > 0 && n < d) { + let u = d + f - a; + u *= o === "right" ? -1 : 1, s -= u; } if (l < h && l > 0 && c < h) { - let d = h + p - l; - d *= o === "right" ? -1 : 1, s += d; + let u = h + f - l; + u *= o === "right" ? -1 : 1, s += u; } - return Tt(t).x + s; + return wt(t).x + s; }, "x"), - y: /* @__PURE__ */ f(function(t, r, i) { + y: /* @__PURE__ */ p(function(t, r, i) { let s = 0; - const o = Tt(i[0]).y < Tt(i[i.length - 1]).y ? "down" : "up"; + const o = wt(i[0]).y < wt(i[i.length - 1]).y ? "down" : "up"; if (r === 0 && Object.hasOwn(Wt, e.arrowTypeStart)) { - const { angle: d, deltaY: g } = vi(i[0], i[1]); - s = Wt[e.arrowTypeStart] * Math.abs(Math.sin(d)) * (g >= 0 ? 1 : -1); + const { angle: u, deltaY: g } = xi(i[0], i[1]); + s = Wt[e.arrowTypeStart] * Math.abs(Math.sin(u)) * (g >= 0 ? 1 : -1); } else if (r === i.length - 1 && Object.hasOwn(Wt, e.arrowTypeEnd)) { - const { angle: d, deltaY: g } = vi( + const { angle: u, deltaY: g } = xi( i[i.length - 1], i[i.length - 2] ); - s = Wt[e.arrowTypeEnd] * Math.abs(Math.sin(d)) * (g >= 0 ? 1 : -1); + s = Wt[e.arrowTypeEnd] * Math.abs(Math.sin(u)) * (g >= 0 ? 1 : -1); } const a = Math.abs( - Tt(t).y - Tt(i[i.length - 1]).y + wt(t).y - wt(i[i.length - 1]).y ), n = Math.abs( - Tt(t).x - Tt(i[i.length - 1]).x - ), l = Math.abs(Tt(t).y - Tt(i[0]).y), c = Math.abs(Tt(t).x - Tt(i[0]).x), h = Wt[e.arrowTypeStart], u = Wt[e.arrowTypeEnd], p = 1; - if (a < u && a > 0 && n < u) { - let d = u + p - a; - d *= o === "up" ? -1 : 1, s -= d; + wt(t).x - wt(i[i.length - 1]).x + ), l = Math.abs(wt(t).y - wt(i[0]).y), c = Math.abs(wt(t).x - wt(i[0]).x), h = Wt[e.arrowTypeStart], d = Wt[e.arrowTypeEnd], f = 1; + if (a < d && a > 0 && n < d) { + let u = d + f - a; + u *= o === "up" ? -1 : 1, s -= u; } if (l < h && l > 0 && c < h) { - let d = h + p - l; - d *= o === "up" ? -1 : 1, s += d; + let u = h + f - l; + u *= o === "up" ? -1 : 1, s += u; } - return Tt(t).y + s; + return wt(t).y + s; }, "y") -}), "getLineFunctionsWithOffset"), ys = {}, Et = {}, Oh; -function Zk() { - return Oh || (Oh = 1, Object.defineProperty(Et, "__esModule", { value: !0 }), Et.BLANK_URL = Et.relativeFirstCharacters = Et.whitespaceEscapeCharsRegex = Et.urlSchemeRegex = Et.ctrlCharactersRegex = Et.htmlCtrlEntityRegex = Et.htmlEntitiesRegex = Et.invalidProtocolRegex = void 0, Et.invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im, Et.htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g, Et.htmlCtrlEntityRegex = /&(newline|tab);/gi, Et.ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, Et.urlSchemeRegex = /^.+(:|:)/gim, Et.whitespaceEscapeCharsRegex = /(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g, Et.relativeFirstCharacters = [".", "/"], Et.BLANK_URL = "about:blank"), Et; -} -var Ih; -function Kk() { - if (Ih) return ys; - Ih = 1, Object.defineProperty(ys, "__esModule", { value: !0 }), ys.sanitizeUrl = o; - var e = Zk(); +}), "getLineFunctionsWithOffset"), ns = {}, Et = {}, yh; +function C1() { + return yh || (yh = 1, Object.defineProperty(Et, "__esModule", { value: !0 }), Et.BLANK_URL = Et.relativeFirstCharacters = Et.whitespaceEscapeCharsRegex = Et.urlSchemeRegex = Et.ctrlCharactersRegex = Et.htmlCtrlEntityRegex = Et.htmlEntitiesRegex = Et.invalidProtocolRegex = void 0, Et.invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im, Et.htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g, Et.htmlCtrlEntityRegex = /&(newline|tab);/gi, Et.ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, Et.urlSchemeRegex = /^.+(:|:)/gim, Et.whitespaceEscapeCharsRegex = /(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g, Et.relativeFirstCharacters = [".", "/"], Et.BLANK_URL = "about:blank"), Et; +} +var Ch; +function x1() { + if (Ch) return ns; + Ch = 1, Object.defineProperty(ns, "__esModule", { value: !0 }), ns.sanitizeUrl = o; + var e = C1(); function t(a) { return e.relativeFirstCharacters.indexOf(a[0]) > -1; } @@ -7389,662 +7496,449 @@ function Kk() { return e.BLANK_URL; if (t(c)) return c; - var h = c.trimStart(), u = h.match(e.urlSchemeRegex); - if (!u) + var h = c.trimStart(), d = h.match(e.urlSchemeRegex); + if (!d) return c; - var p = u[0].toLowerCase().trim(); - if (e.invalidProtocolRegex.test(p)) + var f = d[0].toLowerCase().trim(); + if (e.invalidProtocolRegex.test(f)) return e.BLANK_URL; - var d = h.replace(/\\/g, "/"); - if (p === "mailto:" || p.includes("://")) - return d; - if (p === "http:" || p === "https:") { - if (!i(d)) + var u = h.replace(/\\/g, "/"); + if (f === "mailto:" || f.includes("://")) + return u; + if (f === "http:" || f === "https:") { + if (!i(u)) return e.BLANK_URL; - var g = new URL(d); + var g = new URL(u); return g.protocol = g.protocol.toLowerCase(), g.hostname = g.hostname.toLowerCase(), g.toString(); } - return d; - } - return ys; -} -var Qk = Kk(), Wp = typeof global == "object" && global && global.Object === Object && global, Jk = typeof self == "object" && self && self.Object === Object && self, $e = Wp || Jk || Function("return this")(), io = $e.Symbol, Hp = Object.prototype, t2 = Hp.hasOwnProperty, e2 = Hp.toString, gi = io ? io.toStringTag : void 0; -function r2(e) { - var t = t2.call(e, gi), r = e[gi]; - try { - e[gi] = void 0; - var i = !0; - } catch { + return u; } - var s = e2.call(e); - return i && (t ? e[gi] = r : delete e[gi]), s; -} -var i2 = Object.prototype, s2 = i2.toString; -function o2(e) { - return s2.call(e); -} -var a2 = "[object Null]", n2 = "[object Undefined]", Dh = io ? io.toStringTag : void 0; -function ri(e) { - return e == null ? e === void 0 ? n2 : a2 : Dh && Dh in Object(e) ? r2(e) : o2(e); + return ns; } -function Br(e) { - var t = typeof e; - return e != null && (t == "object" || t == "function"); +var b1 = x1(); +function k1(e) { + return Number.isSafeInteger(e) && e >= 0; } -var l2 = "[object AsyncFunction]", h2 = "[object Function]", c2 = "[object GeneratorFunction]", u2 = "[object Proxy]"; -function Jn(e) { - if (!Br(e)) - return !1; - var t = ri(e); - return t == h2 || t == c2 || t == l2 || t == u2; +function cf(e) { + return e != null && typeof e != "function" && k1(e.length); } -var ua = $e["__core-js_shared__"], Ph = (function() { - var e = /[^.]+$/.exec(ua && ua.keys && ua.keys.IE_PROTO || ""); - return e ? "Symbol(src)_1." + e : ""; -})(); -function d2(e) { - return !!Ph && Ph in e; +function w1(e) { + return e === "__proto__"; } -var p2 = Function.prototype, f2 = p2.toString; -function Lr(e) { - if (e != null) { - try { - return f2.call(e); - } catch { - } - try { - return e + ""; - } catch { - } - } - return ""; +function $n(e) { + return e == null || typeof e != "object" && typeof e != "function"; } -var g2 = /[\\^$.*+?()[\]{}|]/g, m2 = /^\[object .+?Constructor\]$/, y2 = Function.prototype, C2 = Object.prototype, x2 = y2.toString, b2 = C2.hasOwnProperty, k2 = RegExp( - "^" + x2.call(b2).replace(g2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" -); -function T2(e) { - if (!Br(e) || d2(e)) - return !1; - var t = Jn(e) ? k2 : m2; - return t.test(Lr(e)); +function df(e) { + return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t)); } -function w2(e, t) { - return e?.[t]; +function On(e) { + return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e); } -function Fr(e, t) { - var r = w2(e, t); - return T2(r) ? r : void 0; +const T1 = "[object RegExp]", uf = "[object String]", ff = "[object Number]", pf = "[object Boolean]", gf = "[object Arguments]", S1 = "[object Symbol]", _1 = "[object Date]", B1 = "[object Map]", v1 = "[object Set]", L1 = "[object Array]", F1 = "[object ArrayBuffer]", mf = "[object Object]", A1 = "[object DataView]", M1 = "[object Uint8Array]", E1 = "[object Uint8ClampedArray]", $1 = "[object Uint16Array]", O1 = "[object Uint32Array]", I1 = "[object Int8Array]", D1 = "[object Int16Array]", R1 = "[object Int32Array]", P1 = "[object Float32Array]", N1 = "[object Float64Array]", xh = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || /* @__PURE__ */ (function() { + return this; +})() || Function("return this")(); +function In(e) { + return typeof xh.Buffer < "u" && xh.Buffer.isBuffer(e); } -var Ui = Fr(Object, "create"); -function S2() { - this.__data__ = Ui ? Ui(null) : {}, this.size = 0; +function Dn(e) { + return ArrayBuffer.isView(e) && !(e instanceof DataView); } -function _2(e) { - var t = this.has(e) && delete this.__data__[e]; - return this.size -= t ? 1 : 0, t; +function q1(e, t) { + return Wr(e, void 0, e, /* @__PURE__ */ new Map(), t); } -var v2 = "__lodash_hash_undefined__", B2 = Object.prototype, L2 = B2.hasOwnProperty; -function F2(e) { - var t = this.__data__; - if (Ui) { - var r = t[e]; - return r === v2 ? void 0 : r; +function Wr(e, t, r, i = /* @__PURE__ */ new Map(), s = void 0) { + const o = s?.(e, t, r, i); + if (o !== void 0) + return o; + if ($n(e)) + return e; + if (i.has(e)) + return i.get(e); + if (Array.isArray(e)) { + const a = new Array(e.length); + i.set(e, a); + for (let n = 0; n < e.length; n++) + a[n] = Wr(e[n], n, r, i, s); + return Object.hasOwn(e, "index") && (a.index = e.index), Object.hasOwn(e, "input") && (a.input = e.input), a; + } + if (e instanceof Date) + return new Date(e.getTime()); + if (e instanceof RegExp) { + const a = new RegExp(e.source, e.flags); + return a.lastIndex = e.lastIndex, a; + } + if (e instanceof Map) { + const a = /* @__PURE__ */ new Map(); + i.set(e, a); + for (const [n, l] of e) + a.set(n, Wr(l, n, r, i, s)); + return a; + } + if (e instanceof Set) { + const a = /* @__PURE__ */ new Set(); + i.set(e, a); + for (const n of e) + a.add(Wr(n, void 0, r, i, s)); + return a; + } + if (In(e)) + return e.subarray(); + if (Dn(e)) { + const a = new (Object.getPrototypeOf(e)).constructor(e.length); + i.set(e, a); + for (let n = 0; n < e.length; n++) + a[n] = Wr(e[n], n, r, i, s); + return a; + } + if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) + return e.slice(0); + if (e instanceof DataView) { + const a = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength); + return i.set(e, a), he(a, e, r, i, s), a; + } + if (typeof File < "u" && e instanceof File) { + const a = new File([e], e.name, { + type: e.type + }); + return i.set(e, a), he(a, e, r, i, s), a; } - return L2.call(t, e) ? t[e] : void 0; -} -var A2 = Object.prototype, M2 = A2.hasOwnProperty; -function E2(e) { - var t = this.__data__; - return Ui ? t[e] !== void 0 : M2.call(t, e); -} -var $2 = "__lodash_hash_undefined__"; -function O2(e, t) { - var r = this.__data__; - return this.size += this.has(e) ? 0 : 1, r[e] = Ui && t === void 0 ? $2 : t, this; -} -function wr(e) { - var t = -1, r = e == null ? 0 : e.length; - for (this.clear(); ++t < r; ) { - var i = e[t]; - this.set(i[0], i[1]); - } -} -wr.prototype.clear = S2; -wr.prototype.delete = _2; -wr.prototype.get = F2; -wr.prototype.has = E2; -wr.prototype.set = O2; -function I2() { - this.__data__ = [], this.size = 0; -} -function Lo(e, t) { - return e === t || e !== e && t !== t; -} -function Fo(e, t) { - for (var r = e.length; r--; ) - if (Lo(e[r][0], t)) - return r; - return -1; -} -var D2 = Array.prototype, P2 = D2.splice; -function R2(e) { - var t = this.__data__, r = Fo(t, e); - if (r < 0) - return !1; - var i = t.length - 1; - return r == i ? t.pop() : P2.call(t, r, 1), --this.size, !0; -} -function N2(e) { - var t = this.__data__, r = Fo(t, e); - return r < 0 ? void 0 : t[r][1]; -} -function q2(e) { - return Fo(this.__data__, e) > -1; -} -function z2(e, t) { - var r = this.__data__, i = Fo(r, e); - return i < 0 ? (++this.size, r.push([e, t])) : r[i][1] = t, this; -} -function Ue(e) { - var t = -1, r = e == null ? 0 : e.length; - for (this.clear(); ++t < r; ) { - var i = e[t]; - this.set(i[0], i[1]); - } -} -Ue.prototype.clear = I2; -Ue.prototype.delete = R2; -Ue.prototype.get = N2; -Ue.prototype.has = q2; -Ue.prototype.set = z2; -var Gi = Fr($e, "Map"); -function W2() { - this.size = 0, this.__data__ = { - hash: new wr(), - map: new (Gi || Ue)(), - string: new wr() - }; -} -function H2(e) { - var t = typeof e; - return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; -} -function Ao(e, t) { - var r = e.__data__; - return H2(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map; -} -function Y2(e) { - var t = Ao(this, e).delete(e); - return this.size -= t ? 1 : 0, t; -} -function j2(e) { - return Ao(this, e).get(e); -} -function U2(e) { - return Ao(this, e).has(e); -} -function G2(e, t) { - var r = Ao(this, e), i = r.size; - return r.set(e, t), this.size += r.size == i ? 0 : 1, this; -} -function or(e) { - var t = -1, r = e == null ? 0 : e.length; - for (this.clear(); ++t < r; ) { - var i = e[t]; - this.set(i[0], i[1]); + if (typeof Blob < "u" && e instanceof Blob) { + const a = new Blob([e], { type: e.type }); + return i.set(e, a), he(a, e, r, i, s), a; } -} -or.prototype.clear = W2; -or.prototype.delete = Y2; -or.prototype.get = j2; -or.prototype.has = U2; -or.prototype.set = G2; -var X2 = "Expected a function"; -function rs(e, t) { - if (typeof e != "function" || t != null && typeof t != "function") - throw new TypeError(X2); - var r = function() { - var i = arguments, s = t ? t.apply(this, i) : i[0], o = r.cache; - if (o.has(s)) - return o.get(s); - var a = e.apply(this, i); - return r.cache = o.set(s, a) || o, a; - }; - return r.cache = new (rs.Cache || or)(), r; -} -rs.Cache = or; -function V2() { - this.__data__ = new Ue(), this.size = 0; -} -function Z2(e) { - var t = this.__data__, r = t.delete(e); - return this.size = t.size, r; -} -function K2(e) { - return this.__data__.get(e); -} -function Q2(e) { - return this.__data__.has(e); -} -var J2 = 200; -function tT(e, t) { - var r = this.__data__; - if (r instanceof Ue) { - var i = r.__data__; - if (!Gi || i.length < J2 - 1) - return i.push([e, t]), this.size = ++r.size, this; - r = this.__data__ = new or(i); - } - return r.set(e, t), this.size = r.size, this; -} -function ii(e) { - var t = this.__data__ = new Ue(e); - this.size = t.size; -} -ii.prototype.clear = V2; -ii.prototype.delete = Z2; -ii.prototype.get = K2; -ii.prototype.has = Q2; -ii.prototype.set = tT; -var so = (function() { - try { - var e = Fr(Object, "defineProperty"); - return e({}, "", {}), e; - } catch { + if (e instanceof Error) { + const a = structuredClone(e); + return i.set(e, a), a.message = e.message, a.name = e.name, a.stack = e.stack, a.cause = e.cause, a.constructor = e.constructor, he(a, e, r, i, s), a; } -})(); -function tl(e, t, r) { - t == "__proto__" && so ? so(e, t, { - configurable: !0, - enumerable: !0, - value: r, - writable: !0 - }) : e[t] = r; -} -function en(e, t, r) { - (r !== void 0 && !Lo(e[t], r) || r === void 0 && !(t in e)) && tl(e, t, r); -} -function eT(e) { - return function(t, r, i) { - for (var s = -1, o = Object(t), a = i(t), n = a.length; n--; ) { - var l = a[++s]; - if (r(o[l], l, o) === !1) - break; - } - return t; - }; -} -var rT = eT(), Yp = typeof exports == "object" && exports && !exports.nodeType && exports, Rh = Yp && typeof module == "object" && module && !module.nodeType && module, iT = Rh && Rh.exports === Yp, Nh = iT ? $e.Buffer : void 0, qh = Nh ? Nh.allocUnsafe : void 0; -function sT(e, t) { - if (t) - return e.slice(); - var r = e.length, i = qh ? qh(r) : new e.constructor(r); - return e.copy(i), i; -} -var zh = $e.Uint8Array; -function oT(e) { - var t = new e.constructor(e.byteLength); - return new zh(t).set(new zh(e)), t; -} -function aT(e, t) { - var r = t ? oT(e.buffer) : e.buffer; - return new e.constructor(r, e.byteOffset, e.length); -} -function nT(e, t) { - var r = -1, i = e.length; - for (t || (t = Array(i)); ++r < i; ) - t[r] = e[r]; - return t; -} -var Wh = Object.create, lT = /* @__PURE__ */ (function() { - function e() { + if (e instanceof Boolean) { + const a = new Boolean(e.valueOf()); + return i.set(e, a), he(a, e, r, i, s), a; } - return function(t) { - if (!Br(t)) - return {}; - if (Wh) - return Wh(t); - e.prototype = t; - var r = new e(); - return e.prototype = void 0, r; - }; -})(); -function jp(e, t) { - return function(r) { - return e(t(r)); - }; + if (e instanceof Number) { + const a = new Number(e.valueOf()); + return i.set(e, a), he(a, e, r, i, s), a; + } + if (e instanceof String) { + const a = new String(e.valueOf()); + return i.set(e, a), he(a, e, r, i, s), a; + } + if (typeof e == "object" && W1(e)) { + const a = Object.create(Object.getPrototypeOf(e)); + return i.set(e, a), he(a, e, r, i, s), a; + } + return e; } -var Up = jp(Object.getPrototypeOf, Object), hT = Object.prototype; -function Mo(e) { - var t = e && e.constructor, r = typeof t == "function" && t.prototype || hT; - return e === r; +function he(e, t, r = e, i, s) { + const o = [...Object.keys(t), ...df(t)]; + for (let a = 0; a < o.length; a++) { + const n = o[a], l = Object.getOwnPropertyDescriptor(e, n); + (l == null || l.writable) && (e[n] = Wr(t[n], n, r, i, s)); + } +} +function W1(e) { + switch (On(e)) { + case gf: + case L1: + case F1: + case A1: + case pf: + case _1: + case P1: + case N1: + case I1: + case D1: + case R1: + case B1: + case ff: + case mf: + case T1: + case v1: + case uf: + case S1: + case M1: + case E1: + case $1: + case O1: + return !0; + default: + return !1; + } } -function cT(e) { - return typeof e.constructor == "function" && !Mo(e) ? lT(Up(e)) : {}; +function z1(e, t) { + return q1(e, (r, i, s, o) => { + if (typeof e == "object") { + if (On(e) === mf && typeof e.constructor != "function") { + const a = {}; + return o.set(e, a), he(a, e, s, o), a; + } + switch (Object.prototype.toString.call(e)) { + case ff: + case uf: + case pf: { + const a = new e.constructor(e?.valueOf()); + return he(a, e), a; + } + case gf: { + const a = {}; + return he(a, e), a.length = e.length, a[Symbol.iterator] = e[Symbol.iterator], a; + } + default: + return; + } + } + }); } -function is(e) { - return e != null && typeof e == "object"; +function bh(e) { + return z1(e); } -var uT = "[object Arguments]"; -function Hh(e) { - return is(e) && ri(e) == uT; +function Pa(e) { + return e !== null && typeof e == "object" && On(e) === "[object Arguments]"; } -var Gp = Object.prototype, dT = Gp.hasOwnProperty, pT = Gp.propertyIsEnumerable, oo = Hh(/* @__PURE__ */ (function() { - return arguments; -})()) ? Hh : function(e) { - return is(e) && dT.call(e, "callee") && !pT.call(e, "callee"); -}, ao = Array.isArray, fT = 9007199254740991; -function Xp(e) { - return typeof e == "number" && e > -1 && e % 1 == 0 && e <= fT; +function Na(e) { + return typeof e == "object" && e !== null; } -function Eo(e) { - return e != null && Xp(e.length) && !Jn(e); +function H1(e) { + return Na(e) && cf(e); } -function gT(e) { - return is(e) && Eo(e); +function Gi(e, t) { + if (typeof e != "function" || t != null && typeof t != "function") + throw new TypeError("Expected a function"); + const r = function(...s) { + const o = t ? t.apply(this, s) : s[0], a = r.cache; + if (a.has(o)) + return a.get(o); + const n = e.apply(this, s); + return r.cache = a.set(o, n) || a, n; + }, i = Gi.Cache || Map; + return r.cache = new i(), r; +} +Gi.Cache = Map; +function Y1() { +} +function U1(e) { + const t = e?.constructor, r = typeof t == "function" ? t.prototype : Object.prototype; + return e === r; } -function mT() { - return !1; +function Ts(e) { + return Dn(e); } -var Vp = typeof exports == "object" && exports && !exports.nodeType && exports, Yh = Vp && typeof module == "object" && module && !module.nodeType && module, yT = Yh && Yh.exports === Vp, jh = yT ? $e.Buffer : void 0, CT = jh ? jh.isBuffer : void 0, el = CT || mT, xT = "[object Object]", bT = Function.prototype, kT = Object.prototype, Zp = bT.toString, TT = kT.hasOwnProperty, wT = Zp.call(Object); -function ST(e) { - if (!is(e) || ri(e) != xT) +function Xo(e) { + if (typeof e != "object" || e == null) return !1; - var t = Up(e); - if (t === null) + if (Object.getPrototypeOf(e) === null) return !0; - var r = TT.call(t, "constructor") && t.constructor; - return typeof r == "function" && r instanceof r && Zp.call(r) == wT; -} -var _T = "[object Arguments]", vT = "[object Array]", BT = "[object Boolean]", LT = "[object Date]", FT = "[object Error]", AT = "[object Function]", MT = "[object Map]", ET = "[object Number]", $T = "[object Object]", OT = "[object RegExp]", IT = "[object Set]", DT = "[object String]", PT = "[object WeakMap]", RT = "[object ArrayBuffer]", NT = "[object DataView]", qT = "[object Float32Array]", zT = "[object Float64Array]", WT = "[object Int8Array]", HT = "[object Int16Array]", YT = "[object Int32Array]", jT = "[object Uint8Array]", UT = "[object Uint8ClampedArray]", GT = "[object Uint16Array]", XT = "[object Uint32Array]", xt = {}; -xt[qT] = xt[zT] = xt[WT] = xt[HT] = xt[YT] = xt[jT] = xt[UT] = xt[GT] = xt[XT] = !0; -xt[_T] = xt[vT] = xt[RT] = xt[BT] = xt[NT] = xt[LT] = xt[FT] = xt[AT] = xt[MT] = xt[ET] = xt[$T] = xt[OT] = xt[IT] = xt[DT] = xt[PT] = !1; -function VT(e) { - return is(e) && Xp(e.length) && !!xt[ri(e)]; -} -function ZT(e) { - return function(t) { - return e(t); - }; -} -var Kp = typeof exports == "object" && exports && !exports.nodeType && exports, Oi = Kp && typeof module == "object" && module && !module.nodeType && module, KT = Oi && Oi.exports === Kp, da = KT && Wp.process, Uh = (function() { - try { - var e = Oi && Oi.require && Oi.require("util").types; - return e || da && da.binding && da.binding("util"); - } catch { - } -})(), Gh = Uh && Uh.isTypedArray, rl = Gh ? ZT(Gh) : VT; -function rn(e, t) { - if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__") - return e[t]; -} -var QT = Object.prototype, JT = QT.hasOwnProperty; -function tw(e, t, r) { - var i = e[t]; - (!(JT.call(e, t) && Lo(i, r)) || r === void 0 && !(t in e)) && tl(e, t, r); -} -function ew(e, t, r, i) { - var s = !r; - r || (r = {}); - for (var o = -1, a = t.length; ++o < a; ) { - var n = t[o], l = void 0; - l === void 0 && (l = e[n]), s ? tl(r, n, l) : tw(r, n, l); + if (Object.prototype.toString.call(e) !== "[object Object]") { + const r = e[Symbol.toStringTag]; + return r == null || !Object.getOwnPropertyDescriptor(e, Symbol.toStringTag)?.writable ? !1 : e.toString() === `[object ${r}]`; } - return r; -} -function rw(e, t) { - for (var r = -1, i = Array(e); ++r < e; ) - i[r] = t(r); - return i; -} -var iw = 9007199254740991, sw = /^(?:0|[1-9]\d*)$/; -function Qp(e, t) { - var r = typeof e; - return t = t ?? iw, !!t && (r == "number" || r != "symbol" && sw.test(e)) && e > -1 && e % 1 == 0 && e < t; -} -var ow = Object.prototype, aw = ow.hasOwnProperty; -function nw(e, t) { - var r = ao(e), i = !r && oo(e), s = !r && !i && el(e), o = !r && !i && !s && rl(e), a = r || i || s || o, n = a ? rw(e.length, String) : [], l = n.length; - for (var c in e) - (t || aw.call(e, c)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode. - (c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. - s && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. - o && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties. - Qp(c, l))) && n.push(c); - return n; -} -function lw(e) { - var t = []; - if (e != null) - for (var r in Object(e)) - t.push(r); - return t; -} -var hw = Object.prototype, cw = hw.hasOwnProperty; -function uw(e) { - if (!Br(e)) - return lw(e); - var t = Mo(e), r = []; - for (var i in e) - i == "constructor" && (t || !cw.call(e, i)) || r.push(i); - return r; -} -function Jp(e) { - return Eo(e) ? nw(e, !0) : uw(e); -} -function dw(e) { - return ew(e, Jp(e)); + let t = e; + for (; Object.getPrototypeOf(t) !== null; ) + t = Object.getPrototypeOf(t); + return Object.getPrototypeOf(e) === t; } -function pw(e, t, r, i, s, o, a) { - var n = rn(e, r), l = rn(t, r), c = a.get(l); - if (c) { - en(e, r, c); - return; +function G1(e) { + if ($n(e)) + return e; + if (Array.isArray(e) || Dn(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) + return e.slice(0); + const t = Object.getPrototypeOf(e); + if (t == null) + return Object.assign(Object.create(t), e); + const r = t.constructor; + if (e instanceof Date || e instanceof Map || e instanceof Set) + return new r(e); + if (e instanceof RegExp) { + const i = new r(e); + return i.lastIndex = e.lastIndex, i; + } + if (e instanceof DataView) + return new r(e.buffer.slice(0)); + if (e instanceof Error) { + let i; + return e instanceof AggregateError ? i = new r(e.errors, e.message, { cause: e.cause }) : i = new r(e.message, { cause: e.cause }), i.stack = e.stack, Object.assign(i, e), i; } - var h = o ? o(n, l, r + "", e, t, a) : void 0, u = h === void 0; - if (u) { - var p = ao(l), d = !p && el(l), g = !p && !d && rl(l); - h = l, p || d || g ? ao(n) ? h = n : gT(n) ? h = nT(n) : d ? (u = !1, h = sT(l, !0)) : g ? (u = !1, h = aT(l, !0)) : h = [] : ST(l) || oo(l) ? (h = n, oo(n) ? h = dw(n) : (!Br(n) || Jn(n)) && (h = cT(l))) : u = !1; + if (typeof File < "u" && e instanceof File) + return new r([e], e.name, { type: e.type, lastModified: e.lastModified }); + if (typeof e == "object") { + const i = Object.create(t); + return Object.assign(i, e); } - u && (a.set(l, h), s(h, l, i, o, a), a.delete(l)), en(e, r, h); -} -function tf(e, t, r, i, s) { - e !== t && rT(t, function(o, a) { - if (s || (s = new ii()), Br(o)) - pw(e, t, a, r, tf, i, s); - else { - var n = i ? i(rn(e, a), o, a + "", e, t, s) : void 0; - n === void 0 && (n = o), en(e, a, n); - } - }, Jp); -} -function ef(e) { return e; } -function fw(e, t, r) { - switch (r.length) { - case 0: - return e.call(t); - case 1: - return e.call(t, r[0]); - case 2: - return e.call(t, r[0], r[1]); - case 3: - return e.call(t, r[0], r[1], r[2]); - } - return e.apply(t, r); -} -var Xh = Math.max; -function gw(e, t, r) { - return t = Xh(t === void 0 ? e.length - 1 : t, 0), function() { - for (var i = arguments, s = -1, o = Xh(i.length - t, 0), a = Array(o); ++s < o; ) - a[s] = i[t + s]; - s = -1; - for (var n = Array(t + 1); ++s < t; ) - n[s] = i[s]; - return n[t] = r(a), fw(e, this, n); - }; +function j1(e, ...t) { + const r = t.slice(0, -1), i = t[t.length - 1]; + let s = e; + for (let o = 0; o < r.length; o++) { + const a = r[o]; + s = Ss(s, a, i, /* @__PURE__ */ new Map()); + } + return s; } -function mw(e) { - return function() { +function Ss(e, t, r, i) { + if ($n(e) && (e = Object(e)), t == null || typeof t != "object") return e; - }; -} -var yw = so ? function(e, t) { - return so(e, "toString", { - configurable: !0, - enumerable: !1, - value: mw(t), - writable: !0 - }); -} : ef, Cw = 800, xw = 16, bw = Date.now; -function kw(e) { - var t = 0, r = 0; - return function() { - var i = bw(), s = xw - (i - r); - if (r = i, s > 0) { - if (++t >= Cw) - return arguments[0]; - } else - t = 0; - return e.apply(void 0, arguments); - }; -} -var Tw = kw(yw); -function ww(e, t) { - return Tw(gw(e, t, ef), e + ""); + if (i.has(t)) + return G1(i.get(t)); + if (i.set(t, e), Array.isArray(t)) { + t = t.slice(); + for (let o = 0; o < t.length; o++) + t[o] = t[o] ?? void 0; + } + const s = [...Object.keys(t), ...df(t)]; + for (let o = 0; o < s.length; o++) { + const a = s[o]; + if (w1(a)) + continue; + let n = t[a], l = e[a]; + if (Pa(n) && (n = { ...n }), Pa(l) && (l = { ...l }), In(n) && (n = bh(n)), Array.isArray(n)) + if (Array.isArray(l)) { + const h = [], d = Reflect.ownKeys(l); + for (let f = 0; f < d.length; f++) { + const u = d[f]; + h[u] = l[u]; + } + l = h; + } else if (H1(l)) { + const h = []; + for (let d = 0; d < l.length; d++) + h[d] = l[d]; + l = h; + } else + l = []; + const c = r(l, n, a, e, t, i); + c !== void 0 ? e[a] = c : Array.isArray(n) || Na(l) && Na(n) && (Xo(l) || Xo(n) || Ts(l) || Ts(n)) ? e[a] = Ss(l, n, r, i) : l == null && Xo(n) ? e[a] = Ss({}, n, r, i) : l == null && Ts(n) ? e[a] = bh(n) : (l === void 0 || n !== void 0) && (e[a] = n); + } + return e; } -function Sw(e, t, r) { - if (!Br(r)) - return !1; - var i = typeof t; - return (i == "number" ? Eo(r) && Qp(t, r.length) : i == "string" && t in r) ? Lo(r[t], e) : !1; +function X1(e, ...t) { + return j1(e, ...t, Y1); } -function _w(e) { - return ww(function(t, r) { - var i = -1, s = r.length, o = s > 1 ? r[s - 1] : void 0, a = s > 2 ? r[2] : void 0; - for (o = e.length > 3 && typeof o == "function" ? (s--, o) : void 0, a && Sw(r[0], r[1], a) && (o = s < 3 ? void 0 : o, s = 1), t = Object(t); ++i < s; ) { - var n = r[i]; - n && e(t, n, i, o); - } - return t; - }); +function kh(e) { + if (e == null) + return !0; + if (cf(e)) + return typeof e.splice != "function" && typeof e != "string" && !In(e) && !Ts(e) && !Pa(e) ? !1 : e.length === 0; + if (typeof e == "object") { + if (e instanceof Map || e instanceof Set) + return e.size === 0; + const t = Object.keys(e); + return U1(e) ? t.filter((r) => r !== "constructor").length === 0 : t.length === 0; + } + return !0; } -var vw = _w(function(e, t, r) { - tf(e, t, r); -}), Bw = "​", Lw = { - curveBasis: Na, - curveBasisClosed: $1, - curveBasisOpen: O1, - curveBumpX: zu, - curveBumpY: Wu, - curveBundle: I1, - curveCardinalClosed: D1, - curveCardinalOpen: P1, - curveCardinal: Uu, - curveCatmullRomClosed: R1, - curveCatmullRomOpen: N1, - curveCatmullRom: Xu, - curveLinear: $i, - curveLinearClosed: q1, - curveMonotoneX: td, - curveMonotoneY: ed, - curveNatural: id, - curveStep: sd, - curveStepAfter: ad, - curveStepBefore: od -}, Fw = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Aw = /* @__PURE__ */ f(function(e, t) { - const r = rf(e, /(?:init\b)|(?:initialize\b)/); +var V1 = "​", Z1 = { + curveBasis: wa, + curveBasisClosed: ek, + curveBasisOpen: rk, + curveBumpX: ld, + curveBumpY: hd, + curveBundle: ik, + curveCardinalClosed: sk, + curveCardinalOpen: ok, + curveCardinal: fd, + curveCatmullRomClosed: ak, + curveCatmullRomOpen: nk, + curveCatmullRom: gd, + curveLinear: Bi, + curveLinearClosed: lk, + curveMonotoneX: kd, + curveMonotoneY: wd, + curveNatural: Sd, + curveStep: _d, + curveStepAfter: vd, + curveStepBefore: Bd +}, K1 = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Q1 = /* @__PURE__ */ p(function(e, t) { + const r = yf(e, /(?:init\b)|(?:initialize\b)/); let i = {}; if (Array.isArray(r)) { const a = r.map((n) => n.args); - Ps(a), i = $t(i, [...a]); + Fs(a), i = $t(i, [...a]); } else i = r.args; if (!i) return; - let s = Bn(e, t); + let s = nn(e, t); const o = "config"; return i[o] !== void 0 && (s === "flowchart-v2" && (s = "flowchart"), i[s] = i[o], delete i[o]), i; -}, "detectInit"), rf = /* @__PURE__ */ f(function(e, t = null) { +}, "detectInit"), yf = /* @__PURE__ */ p(function(e, t = null) { try { const r = new RegExp( - `[%]{2}(?![{]${Fw.source})(?=[}][%]{2}).* + `[%]{2}(?![{]${K1.source})(?=[}][%]{2}).* `, "ig" ); - e = e.trim().replace(r, "").replace(/'/gm, '"'), R.debug( + e = e.trim().replace(r, "").replace(/'/gm, '"'), P.debug( `Detecting diagram directive${t !== null ? " type:" + t : ""} based on the text:${e}` ); let i; const s = []; - for (; (i = Mi.exec(e)) !== null; ) - if (i.index === Mi.lastIndex && Mi.lastIndex++, i && !t || t && i[1]?.match(t) || t && i[2]?.match(t)) { + for (; (i = Si.exec(e)) !== null; ) + if (i.index === Si.lastIndex && Si.lastIndex++, i && !t || t && i[1]?.match(t) || t && i[2]?.match(t)) { const o = i[1] ? i[1] : i[2], a = i[3] ? i[3].trim() : i[4] ? JSON.parse(i[4].trim()) : null; s.push({ type: o, args: a }); } return s.length === 0 ? { type: e, args: null } : s.length === 1 ? s[0] : s; } catch (r) { - return R.error( + return P.error( `ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'` ), { type: void 0, args: null }; } -}, "detectDirective"), Mw = /* @__PURE__ */ f(function(e) { - return e.replace(Mi, ""); -}, "removeDirectives"), Ew = /* @__PURE__ */ f(function(e, t) { +}, "detectDirective"), J1 = /* @__PURE__ */ p(function(e) { + return e.replace(Si, ""); +}, "removeDirectives"), t2 = /* @__PURE__ */ p(function(e, t) { for (const [r, i] of t.entries()) if (i.match(e)) return r; return -1; }, "isSubstringInArray"); -function il(e, t) { +function Rn(e, t) { if (!e) return t; const r = `curve${e.charAt(0).toUpperCase() + e.slice(1)}`; - return Lw[r] ?? t; + return Z1[r] ?? t; } -f(il, "interpolateToCurve"); -function sf(e, t) { +p(Rn, "interpolateToCurve"); +function Cf(e, t) { const r = e.trim(); if (r) - return t.securityLevel !== "loose" ? Qk.sanitizeUrl(r) : r; + return t.securityLevel !== "loose" ? b1.sanitizeUrl(r) : r; } -f(sf, "formatUrl"); -var $w = /* @__PURE__ */ f((e, ...t) => { +p(Cf, "formatUrl"); +var e2 = /* @__PURE__ */ p((e, ...t) => { const r = e.split("."), i = r.length - 1, s = r[i]; let o = window; for (let a = 0; a < i; a++) if (o = o[r[a]], !o) { - R.error(`Function name: ${e} not found in window`); + P.error(`Function name: ${e} not found in window`); return; } o[s](...t); }, "runFunc"); -function sl(e, t) { +function Pn(e, t) { return !e || !t ? 0 : Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)); } -f(sl, "distance"); -function of(e) { +p(Pn, "distance"); +function xf(e) { let t, r = 0; e.forEach((s) => { - r += sl(s, t), t = s; + r += Pn(s, t), t = s; }); const i = r / 2; - return ol(e, i); + return Nn(e, i); } -f(of, "traverseEdge"); -function af(e) { - return e.length === 1 ? e[0] : of(e); +p(xf, "traverseEdge"); +function bf(e) { + return e.length === 1 ? e[0] : xf(e); } -f(af, "calcLabelPosition"); -var Vh = /* @__PURE__ */ f((e, t = 2) => { +p(bf, "calcLabelPosition"); +var wh = /* @__PURE__ */ p((e, t = 2) => { const r = Math.pow(10, t); return Math.round(e * r) / r; -}, "roundNumber"), ol = /* @__PURE__ */ f((e, t) => { +}, "roundNumber"), Nn = /* @__PURE__ */ p((e, t) => { let r, i = t; for (const s of e) { if (r) { - const o = sl(s, r); + const o = Pn(s, r); if (o === 0) return r; if (o < i) @@ -8057,43 +7951,43 @@ var Vh = /* @__PURE__ */ f((e, t = 2) => { return { x: s.x, y: s.y }; if (a > 0 && a < 1) return { - x: Vh((1 - a) * r.x + a * s.x, 5), - y: Vh((1 - a) * r.y + a * s.y, 5) + x: wh((1 - a) * r.x + a * s.x, 5), + y: wh((1 - a) * r.y + a * s.y, 5) }; } } r = s; } throw new Error("Could not find a suitable point for the given distance"); -}, "calculatePoint"), Ow = /* @__PURE__ */ f((e, t, r) => { - R.info(`our points ${JSON.stringify(t)}`), t[0] !== r && (t = t.reverse()); - const s = ol(t, 25), o = e ? 10 : 5, a = Math.atan2(t[0].y - s.y, t[0].x - s.x), n = { x: 0, y: 0 }; +}, "calculatePoint"), r2 = /* @__PURE__ */ p((e, t, r) => { + P.info(`our points ${JSON.stringify(t)}`), t[0] !== r && (t = t.reverse()); + const s = Nn(t, 25), o = e ? 10 : 5, a = Math.atan2(t[0].y - s.y, t[0].x - s.x), n = { x: 0, y: 0 }; return n.x = Math.sin(a) * o + (t[0].x + s.x) / 2, n.y = -Math.cos(a) * o + (t[0].y + s.y) / 2, n; }, "calcCardinalityPosition"); -function nf(e, t, r) { +function kf(e, t, r) { const i = structuredClone(r); - R.info("our points", i), t !== "start_left" && t !== "start_right" && i.reverse(); - const s = 25 + e, o = ol(i, s), a = 10 + e * 0.5, n = Math.atan2(i[0].y - o.y, i[0].x - o.x), l = { x: 0, y: 0 }; + P.info("our points", i), t !== "start_left" && t !== "start_right" && i.reverse(); + const s = 25 + e, o = Nn(i, s), a = 10 + e * 0.5, n = Math.atan2(i[0].y - o.y, i[0].x - o.x), l = { x: 0, y: 0 }; return t === "start_left" ? (l.x = Math.sin(n + Math.PI) * a + (i[0].x + o.x) / 2, l.y = -Math.cos(n + Math.PI) * a + (i[0].y + o.y) / 2) : t === "end_right" ? (l.x = Math.sin(n - Math.PI) * a + (i[0].x + o.x) / 2 - 5, l.y = -Math.cos(n - Math.PI) * a + (i[0].y + o.y) / 2 - 5) : t === "end_left" ? (l.x = Math.sin(n) * a + (i[0].x + o.x) / 2 - 5, l.y = -Math.cos(n) * a + (i[0].y + o.y) / 2 - 5) : (l.x = Math.sin(n) * a + (i[0].x + o.x) / 2, l.y = -Math.cos(n) * a + (i[0].y + o.y) / 2), l; } -f(nf, "calcTerminalLabelPosition"); -function lf(e) { +p(kf, "calcTerminalLabelPosition"); +function wf(e) { let t = "", r = ""; for (const i of e) i !== void 0 && (i.startsWith("color:") || i.startsWith("text-align:") ? r = r + i + ";" : t = t + i + ";"); return { style: t, labelStyle: r }; } -f(lf, "getStylesFromArray"); -var Zh = 0, Iw = /* @__PURE__ */ f(() => (Zh++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Zh), "generateId"); -function hf(e) { +p(wf, "getStylesFromArray"); +var Th = 0, i2 = /* @__PURE__ */ p(() => (Th++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Th), "generateId"); +function Tf(e) { let t = ""; const r = "0123456789abcdef", i = r.length; for (let s = 0; s < e; s++) t += r.charAt(Math.floor(Math.random() * i)); return t; } -f(hf, "makeRandomHex"); -var Dw = /* @__PURE__ */ f((e) => hf(e.length), "random"), Pw = /* @__PURE__ */ f(function() { +p(Tf, "makeRandomHex"); +var s2 = /* @__PURE__ */ p((e) => Tf(e.length), "random"), o2 = /* @__PURE__ */ p(function() { return { x: 0, y: 0, @@ -8108,31 +8002,31 @@ var Dw = /* @__PURE__ */ f((e) => hf(e.length), "random"), Pw = /* @__PURE__ */ valign: void 0, text: "" }; -}, "getTextObj"), Rw = /* @__PURE__ */ f(function(e, t) { - const r = t.text.replace(Qi.lineBreakRegex, " "), [, i] = $o(t.fontSize), s = e.append("text"); +}, "getTextObj"), a2 = /* @__PURE__ */ p(function(e, t) { + const r = t.text.replace(zi.lineBreakRegex, " "), [, i] = mo(t.fontSize), s = e.append("text"); s.attr("x", t.x), s.attr("y", t.y), s.style("text-anchor", t.anchor), s.style("font-family", t.fontFamily), s.style("font-size", i), s.style("font-weight", t.fontWeight), s.attr("fill", t.fill), t.class !== void 0 && s.attr("class", t.class); const o = s.append("tspan"); return o.attr("x", t.x + t.textMargin * 2), o.attr("fill", t.fill), o.text(r), s; -}, "drawSimpleText"), Nw = rs( +}, "drawSimpleText"), n2 = Gi( (e, t, r) => { if (!e || (r = Object.assign( { fontSize: 12, fontWeight: 400, fontFamily: "Arial", joinWith: "
" }, r - ), Qi.lineBreakRegex.test(e))) + ), zi.lineBreakRegex.test(e))) return e; const i = e.split(" ").filter(Boolean), s = []; let o = ""; return i.forEach((a, n) => { - const l = He(`${a} `, r), c = He(o, r); + const l = qe(`${a} `, r), c = qe(o, r); if (l > t) { - const { hyphenatedStrings: p, remainingWord: d } = qw(a, t, "-", r); - s.push(o, ...p), o = d; + const { hyphenatedStrings: f, remainingWord: u } = l2(a, t, "-", r); + s.push(o, ...f), o = u; } else c + l >= t ? (s.push(o), o = a) : o = [o, a].filter(Boolean).join(" "); n + 1 === i.length && s.push(o); }), s.filter((a) => a !== "").join(r.joinWith); }, (e, t, r) => `${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}` -), qw = rs( +), l2 = Gi( (e, t, r = "-", i) => { i = Object.assign( { fontSize: 12, fontWeight: 400, fontFamily: "Arial", margin: 0 }, @@ -8142,104 +8036,104 @@ var Dw = /* @__PURE__ */ f((e) => hf(e.length), "random"), Pw = /* @__PURE__ */ let a = ""; return s.forEach((n, l) => { const c = `${a}${n}`; - if (He(c, i) >= t) { - const u = l + 1, p = s.length === u, d = `${c}${r}`; - o.push(p ? c : d), a = ""; + if (qe(c, i) >= t) { + const d = l + 1, f = s.length === d, u = `${c}${r}`; + o.push(f ? c : u), a = ""; } else a = c; }), { hyphenatedStrings: o, remainingWord: a }; }, (e, t, r = "-", i) => `${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}` ); -function cf(e, t) { - return al(e, t).height; +function Sf(e, t) { + return qn(e, t).height; } -f(cf, "calculateTextHeight"); -function He(e, t) { - return al(e, t).width; +p(Sf, "calculateTextHeight"); +function qe(e, t) { + return qn(e, t).width; } -f(He, "calculateTextWidth"); -var al = rs( +p(qe, "calculateTextWidth"); +var qn = Gi( (e, t) => { const { fontSize: r = 12, fontFamily: i = "Arial", fontWeight: s = 400 } = t; if (!e) return { width: 0, height: 0 }; - const [, o] = $o(r), a = ["sans-serif", i], n = e.split(Qi.lineBreakRegex), l = [], c = ct("body"); + const [, o] = mo(r), a = ["sans-serif", i], n = e.split(zi.lineBreakRegex), l = [], c = ht("body"); if (!c.remove) return { width: 0, height: 0, lineHeight: 0 }; const h = c.append("svg"); - for (const p of a) { - let d = 0; + for (const f of a) { + let u = 0; const g = { width: 0, height: 0, lineHeight: 0 }; for (const m of n) { - const y = Pw(); - y.text = m || Bw; - const x = Rw(h, y).style("font-size", o).style("font-weight", s).style("font-family", p), b = (x._groups || x)[0][0].getBBox(); + const y = o2(); + y.text = m || V1; + const C = a2(h, y).style("font-size", o).style("font-weight", s).style("font-family", f), b = (C._groups || C)[0][0].getBBox(); if (b.width === 0 && b.height === 0) throw new Error("svg element not in render tree"); - g.width = Math.round(Math.max(g.width, b.width)), d = Math.round(b.height), g.height += d, g.lineHeight = Math.round(Math.max(g.lineHeight, d)); + g.width = Math.round(Math.max(g.width, b.width)), u = Math.round(b.height), g.height += u, g.lineHeight = Math.round(Math.max(g.lineHeight, u)); } l.push(g); } h.remove(); - const u = isNaN(l[1].height) || isNaN(l[1].width) || isNaN(l[1].lineHeight) || l[0].height > l[1].height && l[0].width > l[1].width && l[0].lineHeight > l[1].lineHeight ? 0 : 1; - return l[u]; + const d = isNaN(l[1].height) || isNaN(l[1].width) || isNaN(l[1].lineHeight) || l[0].height > l[1].height && l[0].width > l[1].width && l[0].lineHeight > l[1].lineHeight ? 0 : 1; + return l[d]; }, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}` -), zw = class { +), h2 = class { constructor(e = !1, t) { this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now(); } static { - f(this, "InitIDGenerator"); + p(this, "InitIDGenerator"); } -}, Cs, Ww = /* @__PURE__ */ f(function(e) { - return Cs = Cs || document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), Cs.innerHTML = e, unescape(Cs.textContent); +}, ls, c2 = /* @__PURE__ */ p(function(e) { + return ls = ls || document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), ls.innerHTML = e, unescape(ls.textContent); }, "entityDecode"); -function nl(e) { +function Wn(e) { return "str" in e; } -f(nl, "isDetailedError"); -var Hw = /* @__PURE__ */ f((e, t, r, i) => { +p(Wn, "isDetailedError"); +var d2 = /* @__PURE__ */ p((e, t, r, i) => { if (!i) return; const s = e.node()?.getBBox(); s && e.append("text").text(i).attr("text-anchor", "middle").attr("x", s.x + s.width / 2).attr("y", -r).attr("class", t); -}, "insertTitle"), $o = /* @__PURE__ */ f((e) => { +}, "insertTitle"), mo = /* @__PURE__ */ p((e) => { if (typeof e == "number") return [e, e + "px"]; const t = parseInt(e ?? "", 10); return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e]; }, "parseFontSize"); -function ll(e, t) { - return vw({}, e, t); +function zn(e, t) { + return X1({}, e, t); } -f(ll, "cleanAndMerge"); -var me = { +p(zn, "cleanAndMerge"); +var fe = { assignWithDepth: $t, - wrapLabel: Nw, - calculateTextHeight: cf, - calculateTextWidth: He, - calculateTextDimensions: al, - cleanAndMerge: ll, - detectInit: Aw, - detectDirective: rf, - isSubstringInArray: Ew, - interpolateToCurve: il, - calcLabelPosition: af, - calcCardinalityPosition: Ow, - calcTerminalLabelPosition: nf, - formatUrl: sf, - getStylesFromArray: lf, - generateId: Iw, - random: Dw, - runFunc: $w, - entityDecode: Ww, - insertTitle: Hw, - isLabelCoordinateInPath: uf, - parseFontSize: $o, - InitIDGenerator: zw -}, Yw = /* @__PURE__ */ f(function(e) { + wrapLabel: n2, + calculateTextHeight: Sf, + calculateTextWidth: qe, + calculateTextDimensions: qn, + cleanAndMerge: zn, + detectInit: Q1, + detectDirective: yf, + isSubstringInArray: t2, + interpolateToCurve: Rn, + calcLabelPosition: bf, + calcCardinalityPosition: r2, + calcTerminalLabelPosition: kf, + formatUrl: Cf, + getStylesFromArray: wf, + generateId: i2, + random: s2, + runFunc: e2, + entityDecode: c2, + insertTitle: d2, + isLabelCoordinateInPath: _f, + parseFontSize: mo, + InitIDGenerator: h2 +}, u2 = /* @__PURE__ */ p(function(e) { let t = e; return t = t.replace(/style.*:\S*#.*;/g, function(r) { return r.substring(0, r.length - 1); @@ -8249,9 +8143,9 @@ var me = { const i = r.substring(1, r.length - 1); return /^\+?\d+$/.test(i) ? "fl°°" + i + "¶ß" : "fl°" + i + "¶ß"; }), t; -}, "encodeEntities"), Sr = /* @__PURE__ */ f(function(e) { +}, "encodeEntities"), br = /* @__PURE__ */ p(function(e) { return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";"); -}, "decodeEntities"), CA = /* @__PURE__ */ f((e, t, { +}, "decodeEntities"), Ev = /* @__PURE__ */ p((e, t, { counter: r = 0, prefix: i, suffix: s @@ -8259,16 +8153,16 @@ var me = { function Dt(e) { return e ?? null; } -f(Dt, "handleUndefinedAttr"); -function uf(e, t) { +p(Dt, "handleUndefinedAttr"); +function _f(e, t) { const r = Math.round(e.x), i = Math.round(e.y), s = t.replace( /(\d+\.\d+)/g, (o) => Math.round(parseFloat(o)).toString() ); return s.includes(r.toString()) || s.includes(i.toString()); } -f(uf, "isLabelCoordinateInPath"); -var hl = /* @__PURE__ */ f(({ +p(_f, "isLabelCoordinateInPath"); +var Hn = /* @__PURE__ */ p(({ flowchart: e }) => { const t = e?.subGraphTitleMargin?.top ?? 0, r = e?.subGraphTitleMargin?.bottom ?? 0, i = t + r; @@ -8278,7 +8172,7 @@ var hl = /* @__PURE__ */ f(({ subGraphTitleTotalMargin: i }; }, "getSubGraphTitleMargins"); -async function df(e, t) { +async function Bf(e, t) { const r = e.getElementsByTagName("img"); if (!r || r.length === 0) return; @@ -8288,21 +8182,21 @@ async function df(e, t) { (s) => new Promise((o) => { function a() { if (s.style.display = "flex", s.style.flexDirection = "column", i) { - const n = gt().fontSize ? gt().fontSize : window.getComputedStyle(document.body).fontSize, l = 5, [c = tu.fontSize] = $o(n), h = c * l + "px"; + const n = gt().fontSize ? gt().fontSize : window.getComputedStyle(document.body).fontSize, l = 5, [c = bc.fontSize] = mo(n), h = c * l + "px"; s.style.minWidth = h, s.style.maxWidth = h; } else s.style.width = "100%"; o(s); } - f(a, "setupImage"), setTimeout(() => { + p(a, "setupImage"), setTimeout(() => { s.complete && a(); }), s.addEventListener("error", a), s.addEventListener("load", a); }) ) ); } -f(df, "configureLabelImages"); -var jw = /* @__PURE__ */ f((e) => { +p(Bf, "configureLabelImages"); +var f2 = /* @__PURE__ */ p((e) => { const { handDrawnSeed: t } = gt(); return { fill: e, @@ -8314,24 +8208,24 @@ var jw = /* @__PURE__ */ f((e) => { stroke: e, seed: t }; -}, "solidStateFill"), si = /* @__PURE__ */ f((e) => { - const t = Uw([ +}, "solidStateFill"), Jr = /* @__PURE__ */ p((e) => { + const t = p2([ ...e.cssCompiledStyles || [], ...e.cssStyles || [], ...e.labelStyle || [] ]); return { stylesMap: t, stylesArray: [...t] }; -}, "compileStyles"), Uw = /* @__PURE__ */ f((e) => { +}, "compileStyles"), p2 = /* @__PURE__ */ p((e) => { const t = /* @__PURE__ */ new Map(); return e.forEach((r) => { const [i, s] = r.split(":"); t.set(i.trim(), s?.trim()); }), t; -}, "styles2Map"), pf = /* @__PURE__ */ f((e) => e === "color" || e === "font-size" || e === "font-family" || e === "font-weight" || e === "font-style" || e === "text-decoration" || e === "text-align" || e === "text-transform" || e === "line-height" || e === "letter-spacing" || e === "word-spacing" || e === "text-shadow" || e === "text-overflow" || e === "white-space" || e === "word-wrap" || e === "word-break" || e === "overflow-wrap" || e === "hyphens", "isLabelStyle"), V = /* @__PURE__ */ f((e) => { - const { stylesArray: t } = si(e), r = [], i = [], s = [], o = []; +}, "styles2Map"), vf = /* @__PURE__ */ p((e) => e === "color" || e === "font-size" || e === "font-family" || e === "font-weight" || e === "font-style" || e === "text-decoration" || e === "text-align" || e === "text-transform" || e === "line-height" || e === "letter-spacing" || e === "word-spacing" || e === "text-shadow" || e === "text-overflow" || e === "white-space" || e === "word-wrap" || e === "word-break" || e === "overflow-wrap" || e === "hyphens", "isLabelStyle"), Z = /* @__PURE__ */ p((e) => { + const { stylesArray: t } = Jr(e), r = [], i = [], s = [], o = []; return t.forEach((a) => { const n = a[0]; - pf(n) ? r.push(a.join(":") + " !important") : (i.push(a.join(":") + " !important"), n.includes("stroke") && s.push(a.join(":") + " !important"), n === "fill" && o.push(a.join(":") + " !important")); + vf(n) ? r.push(a.join(":") + " !important") : (i.push(a.join(":") + " !important"), n.includes("stroke") && s.push(a.join(":") + " !important"), n === "fill" && o.push(a.join(":") + " !important")); }), { labelStyles: r.join(";"), nodeStyles: i.join(";"), @@ -8339,8 +8233,8 @@ var jw = /* @__PURE__ */ f((e) => { borderStyles: s, backgroundStyles: o }; -}, "styles2String"), X = /* @__PURE__ */ f((e, t) => { - const { themeVariables: r, handDrawnSeed: i } = gt(), { nodeBorder: s, mainBkg: o } = r, { stylesMap: a } = si(e); +}, "styles2String"), V = /* @__PURE__ */ p((e, t) => { + const { themeVariables: r, handDrawnSeed: i } = gt(), { nodeBorder: s, mainBkg: o } = r, { stylesMap: a } = Jr(e); return Object.assign( { roughness: 0.7, @@ -8353,11 +8247,11 @@ var jw = /* @__PURE__ */ f((e) => { seed: i, strokeWidth: a.get("stroke-width")?.replace("px", "") || 1.3, fillLineDash: [0, 0], - strokeLineDash: Gw(a.get("stroke-dasharray")) + strokeLineDash: g2(a.get("stroke-dasharray")) }, t ); -}, "userNodeOverrides"), Gw = /* @__PURE__ */ f((e) => { +}, "userNodeOverrides"), g2 = /* @__PURE__ */ p((e) => { if (!e) return [0, 0]; const t = e.trim().split(/\s+/).map(Number); @@ -8368,29 +8262,29 @@ var jw = /* @__PURE__ */ f((e) => { const r = isNaN(t[0]) ? 0 : t[0], i = isNaN(t[1]) ? 0 : t[1]; return [r, i]; }, "getStrokeDashArray"); -const Xw = Object.freeze({ +const m2 = Object.freeze({ left: 0, top: 0, width: 16, height: 16 -}), no = Object.freeze({ +}), Vs = Object.freeze({ rotate: 0, vFlip: !1, hFlip: !1 -}), ff = Object.freeze({ - ...Xw, - ...no -}), Vw = Object.freeze({ - ...ff, +}), Lf = Object.freeze({ + ...m2, + ...Vs +}), y2 = Object.freeze({ + ...Lf, body: "", hidden: !1 -}), Zw = Object.freeze({ +}), C2 = Object.freeze({ width: null, height: null -}), Kw = Object.freeze({ - ...Zw, - ...no -}), Qw = (e, t, r, i = "") => { +}), x2 = Object.freeze({ + ...C2, + ...Vs +}), b2 = (e, t, r, i = "") => { const s = e.split(":"); if (e.slice(0, 1) === "@") { if (s.length < 2 || s.length > 3) return null; @@ -8403,7 +8297,7 @@ const Xw = Object.freeze({ prefix: l, name: n }; - return pa(c) ? c : null; + return Vo(c) ? c : null; } const o = s[0], a = o.split("-"); if (a.length > 1) { @@ -8412,7 +8306,7 @@ const Xw = Object.freeze({ prefix: a.shift(), name: a.join("-") }; - return pa(n) ? n : null; + return Vo(n) ? n : null; } if (r && i === "") { const n = { @@ -8420,22 +8314,22 @@ const Xw = Object.freeze({ prefix: "", name: o }; - return pa(n, r) ? n : null; + return Vo(n, r) ? n : null; } return null; -}, pa = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1; -function Jw(e, t) { +}, Vo = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1; +function k2(e, t) { const r = {}; !e.hFlip != !t.hFlip && (r.hFlip = !0), !e.vFlip != !t.vFlip && (r.vFlip = !0); const i = ((e.rotate || 0) + (t.rotate || 0)) % 4; return i && (r.rotate = i), r; } -function Kh(e, t) { - const r = Jw(e, t); - for (const i in Vw) i in no ? i in e && !(i in r) && (r[i] = no[i]) : i in t ? r[i] = t[i] : i in e && (r[i] = e[i]); +function Sh(e, t) { + const r = k2(e, t); + for (const i in y2) i in Vs ? i in e && !(i in r) && (r[i] = Vs[i]) : i in t ? r[i] = t[i] : i in e && (r[i] = e[i]); return r; } -function tS(e, t) { +function w2(e, t) { const r = e.icons, i = e.aliases || /* @__PURE__ */ Object.create(null), s = /* @__PURE__ */ Object.create(null); function o(a) { if (r[a]) return s[a] = []; @@ -8448,28 +8342,28 @@ function tS(e, t) { } return (t || Object.keys(r).concat(Object.keys(i))).forEach(o), s; } -function Qh(e, t, r) { +function _h(e, t, r) { const i = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null); let o = {}; function a(n) { - o = Kh(i[n] || s[n], o); + o = Sh(i[n] || s[n], o); } - return a(t), r.forEach(a), Kh(e, o); + return a(t), r.forEach(a), Sh(e, o); } -function eS(e, t) { - if (e.icons[t]) return Qh(e, t, []); - const r = tS(e, [t])[t]; - return r ? Qh(e, t, r) : null; +function T2(e, t) { + if (e.icons[t]) return _h(e, t, []); + const r = w2(e, [t])[t]; + return r ? _h(e, t, r) : null; } -const rS = /(-?[0-9.]*[0-9]+[0-9.]*)/g, iS = /^-?[0-9.]*[0-9]+[0-9.]*$/g; -function Jh(e, t, r) { +const S2 = /(-?[0-9.]*[0-9]+[0-9.]*)/g, _2 = /^-?[0-9.]*[0-9]+[0-9.]*$/g; +function Bh(e, t, r) { if (t === 1) return e; if (r = r || 100, typeof e == "number") return Math.ceil(e * t * r) / r; if (typeof e != "string") return e; - const i = e.split(rS); + const i = e.split(S2); if (i === null || !i.length) return e; const s = []; - let o = i.shift(), a = iS.test(o); + let o = i.shift(), a = _2.test(o); for (; ; ) { if (a) { const n = parseFloat(o); @@ -8479,7 +8373,7 @@ function Jh(e, t, r) { a = !a; } } -function sS(e, t = "defs") { +function B2(e, t = "defs") { let r = ""; const i = e.indexOf("<" + t); for (; i >= 0; ) { @@ -8494,20 +8388,20 @@ function sS(e, t = "defs") { content: e }; } -function oS(e, t) { +function v2(e, t) { return e ? "" + e + "" + t : t; } -function aS(e, t, r) { - const i = sS(e); - return oS(i.defs, t + i.content + r); +function L2(e, t, r) { + const i = B2(e); + return v2(i.defs, t + i.content + r); } -const nS = (e) => e === "unset" || e === "undefined" || e === "none"; -function lS(e, t) { +const F2 = (e) => e === "unset" || e === "undefined" || e === "none"; +function A2(e, t) { const r = { - ...ff, + ...Lf, ...e }, i = { - ...Kw, + ...x2, ...t }, s = { left: r.left, @@ -8517,113 +8411,113 @@ function lS(e, t) { }; let o = r.body; [r, i].forEach((m) => { - const y = [], x = m.hFlip, b = m.vFlip; + const y = [], C = m.hFlip, b = m.vFlip; let k = m.rotate; - x ? b ? k += 2 : (y.push("translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"), y.push("scale(-1 1)"), s.top = s.left = 0) : b && (y.push("translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"), y.push("scale(1 -1)"), s.top = s.left = 0); - let w; + C ? b ? k += 2 : (y.push("translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"), y.push("scale(-1 1)"), s.top = s.left = 0) : b && (y.push("translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"), y.push("scale(1 -1)"), s.top = s.left = 0); + let T; switch (k < 0 && (k -= Math.floor(k / 4) * 4), k = k % 4, k) { case 1: - w = s.height / 2 + s.top, y.unshift("rotate(90 " + w.toString() + " " + w.toString() + ")"); + T = s.height / 2 + s.top, y.unshift("rotate(90 " + T.toString() + " " + T.toString() + ")"); break; case 2: y.unshift("rotate(180 " + (s.width / 2 + s.left).toString() + " " + (s.height / 2 + s.top).toString() + ")"); break; case 3: - w = s.width / 2 + s.left, y.unshift("rotate(-90 " + w.toString() + " " + w.toString() + ")"); + T = s.width / 2 + s.left, y.unshift("rotate(-90 " + T.toString() + " " + T.toString() + ")"); break; } - k % 2 === 1 && (s.left !== s.top && (w = s.left, s.left = s.top, s.top = w), s.width !== s.height && (w = s.width, s.width = s.height, s.height = w)), y.length && (o = aS(o, '', "")); + k % 2 === 1 && (s.left !== s.top && (T = s.left, s.left = s.top, s.top = T), s.width !== s.height && (T = s.width, s.width = s.height, s.height = T)), y.length && (o = L2(o, '', "")); }); const a = i.width, n = i.height, l = s.width, c = s.height; - let h, u; - a === null ? (u = n === null ? "1em" : n === "auto" ? c : n, h = Jh(u, l / c)) : (h = a === "auto" ? l : a, u = n === null ? Jh(h, c / l) : n === "auto" ? c : n); - const p = {}, d = (m, y) => { - nS(y) || (p[m] = y.toString()); + let h, d; + a === null ? (d = n === null ? "1em" : n === "auto" ? c : n, h = Bh(d, l / c)) : (h = a === "auto" ? l : a, d = n === null ? Bh(h, c / l) : n === "auto" ? c : n); + const f = {}, u = (m, y) => { + F2(y) || (f[m] = y.toString()); }; - d("width", h), d("height", u); + u("width", h), u("height", d); const g = [ s.left, s.top, l, c ]; - return p.viewBox = g.join(" "), { - attributes: p, + return f.viewBox = g.join(" "), { + attributes: f, viewBox: g, body: o }; } -const hS = /\sid="(\S+)"/g, tc = /* @__PURE__ */ new Map(); -function cS(e) { +const M2 = /\sid="(\S+)"/g, vh = /* @__PURE__ */ new Map(); +function E2(e) { e = e.replace(/[0-9]+$/, "") || "a"; - const t = tc.get(e) || 0; - return tc.set(e, t + 1), t ? `${e}${t}` : e; + const t = vh.get(e) || 0; + return vh.set(e, t + 1), t ? `${e}${t}` : e; } -function uS(e) { +function $2(e) { const t = []; let r; - for (; r = hS.exec(e); ) t.push(r[1]); + for (; r = M2.exec(e); ) t.push(r[1]); if (!t.length) return e; const i = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16); return t.forEach((s) => { - const o = cS(s), a = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); + const o = E2(s), a = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); e = e.replace(new RegExp('([#;"])(' + a + ')([")]|\\.[a-z])', "g"), "$1" + o + i + "$3"); }), e = e.replace(new RegExp(i, "g"), ""), e; } -function dS(e, t) { +function O2(e, t) { let r = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"'; for (const i in t) r += " " + i + '="' + t[i] + '"'; return '" + e + ""; } -function cl() { +function Yn() { return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null }; } -var Ar = cl(); -function gf(e) { - Ar = e; +var Tr = Yn(); +function Ff(e) { + Tr = e; } -var Ii = { exec: () => null }; +var vi = { exec: () => null }; function mt(e, t = "") { let r = typeof e == "string" ? e : e.source, i = { replace: (s, o) => { let a = typeof o == "string" ? o : o.source; - return a = a.replace(Gt.caret, "$1"), r = r.replace(s, a), i; + return a = a.replace(jt.caret, "$1"), r = r.replace(s, a), i; }, getRegex: () => new RegExp(r, t) }; return i; } -var pS = (() => { +var I2 = (() => { 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: (e) => new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}#`), htmlBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i") }, fS = /^(?:[ \t]*(?:\n|$))+/, gS = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, mS = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ss = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, yS = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ul = /(?:[*+-]|\d{1,9}[.)])/, mf = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, yf = mt(mf).replace(/bull/g, ul).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(), CS = mt(mf).replace(/bull/g, ul).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(), dl = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, xS = /^[^\n]+/, pl = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, bS = mt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", pl).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), kS = mt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ul).getRegex(), Oo = "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", fl = /|$))/, TS = mt("^ {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", fl).replace("tag", Oo).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Cf = mt(dl).replace("hr", ss).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", Oo).getRegex(), wS = mt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Cf).getRegex(), gl = { blockquote: wS, code: gS, def: bS, fences: mS, heading: yS, hr: ss, html: TS, lheading: yf, list: kS, newline: fS, paragraph: Cf, table: Ii, text: xS }, ec = mt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ss).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", Oo).getRegex(), SS = { ...gl, lheading: CS, table: ec, paragraph: mt(dl).replace("hr", ss).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ec).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", Oo).getRegex() }, _S = { ...gl, html: mt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", fl).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: Ii, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: mt(dl).replace("hr", ss).replace("heading", ` *#{1,6} *[^ -]`).replace("lheading", yf).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, vS = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, BS = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xf = /^( {2,}|\\)\n(?!\s*$)/, LS = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", pS ? "(?`+)[^`]+\k(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Tf = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, $S = mt(Tf, "u").replace(/punct/g, Io).getRegex(), OS = mt(Tf, "u").replace(/punct/g, kf).getRegex(), wf = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", IS = mt(wf, "gu").replace(/notPunctSpace/g, bf).replace(/punctSpace/g, ml).replace(/punct/g, Io).getRegex(), DS = mt(wf, "gu").replace(/notPunctSpace/g, MS).replace(/punctSpace/g, AS).replace(/punct/g, kf).getRegex(), PS = mt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, bf).replace(/punctSpace/g, ml).replace(/punct/g, Io).getRegex(), RS = mt(/\\(punct)/, "gu").replace(/punct/g, Io).getRegex(), NS = mt(/^<(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(), qS = mt(fl).replace("(?:-->|$)", "-->").getRegex(), zS = mt("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", qS).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), lo = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, WS = mt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", lo).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Sf = mt(/^!?\[(label)\]\[(ref)\]/).replace("label", lo).replace("ref", pl).getRegex(), _f = mt(/^!?\[(ref)\](?:\[\])?/).replace("ref", pl).getRegex(), HS = mt("reflink|nolink(?!\\()", "g").replace("reflink", Sf).replace("nolink", _f).getRegex(), rc = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, yl = { _backpedal: Ii, anyPunctuation: RS, autolink: NS, blockSkip: ES, br: xf, code: BS, del: Ii, emStrongLDelim: $S, emStrongRDelimAst: IS, emStrongRDelimUnd: PS, escape: vS, link: WS, nolink: _f, punctuation: FS, reflink: Sf, reflinkSearch: HS, tag: zS, text: LS, url: Ii }, YS = { ...yl, link: mt(/^!?\[(label)\]\((.*?)\)/).replace("label", lo).getRegex(), reflink: mt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", lo).getRegex() }, sn = { ...yl, emStrongRDelimAst: DS, emStrongLDelim: OS, url: mt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", rc).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: mt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\": ">", '"': """, "'": "'" }, ic = (e) => US[e]; -function Se(e, t) { +})(), jt = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, 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: (e) => new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}#`), htmlBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i") }, D2 = /^(?:[ \t]*(?:\n|$))+/, R2 = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, P2 = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ji = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, N2 = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Un = /(?:[*+-]|\d{1,9}[.)])/, Af = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Mf = mt(Af).replace(/bull/g, Un).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(), q2 = mt(Af).replace(/bull/g, Un).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(), Gn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, W2 = /^[^\n]+/, jn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, z2 = mt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", jn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), H2 = mt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Un).getRegex(), yo = "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", Xn = /|$))/, Y2 = mt("^ {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", Xn).replace("tag", yo).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ef = mt(Gn).replace("hr", ji).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", yo).getRegex(), U2 = mt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ef).getRegex(), Vn = { blockquote: U2, code: R2, def: z2, fences: P2, heading: N2, hr: ji, html: Y2, lheading: Mf, list: H2, newline: D2, paragraph: Ef, table: vi, text: W2 }, Lh = mt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ji).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", yo).getRegex(), G2 = { ...Vn, lheading: q2, table: Lh, paragraph: mt(Gn).replace("hr", ji).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Lh).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", yo).getRegex() }, j2 = { ...Vn, html: mt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Xn).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: vi, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: mt(Gn).replace("hr", ji).replace("heading", ` *#{1,6} *[^ +]`).replace("lheading", Mf).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, X2 = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, V2 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, $f = /^( {2,}|\\)\n(?!\s*$)/, Z2 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", I2 ? "(?`+)[^`]+\k(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Df = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ew = mt(Df, "u").replace(/punct/g, Co).getRegex(), rw = mt(Df, "u").replace(/punct/g, If).getRegex(), Rf = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", iw = mt(Rf, "gu").replace(/notPunctSpace/g, Of).replace(/punctSpace/g, Zn).replace(/punct/g, Co).getRegex(), sw = mt(Rf, "gu").replace(/notPunctSpace/g, J2).replace(/punctSpace/g, Q2).replace(/punct/g, If).getRegex(), ow = mt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Of).replace(/punctSpace/g, Zn).replace(/punct/g, Co).getRegex(), aw = mt(/\\(punct)/, "gu").replace(/punct/g, Co).getRegex(), nw = mt(/^<(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(), lw = mt(Xn).replace("(?:-->|$)", "-->").getRegex(), hw = mt("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", lw).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Zs = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, cw = mt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Zs).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Pf = mt(/^!?\[(label)\]\[(ref)\]/).replace("label", Zs).replace("ref", jn).getRegex(), Nf = mt(/^!?\[(ref)\](?:\[\])?/).replace("ref", jn).getRegex(), dw = mt("reflink|nolink(?!\\()", "g").replace("reflink", Pf).replace("nolink", Nf).getRegex(), Fh = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Kn = { _backpedal: vi, anyPunctuation: aw, autolink: nw, blockSkip: tw, br: $f, code: V2, del: vi, emStrongLDelim: ew, emStrongRDelimAst: iw, emStrongRDelimUnd: ow, escape: X2, link: cw, nolink: Nf, punctuation: K2, reflink: Pf, reflinkSearch: dw, tag: hw, text: Z2, url: vi }, uw = { ...Kn, link: mt(/^!?\[(label)\]\((.*?)\)/).replace("label", Zs).getRegex(), reflink: mt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Zs).getRegex() }, qa = { ...Kn, emStrongRDelimAst: sw, emStrongLDelim: rw, url: mt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Fh).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: mt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\": ">", '"': """, "'": "'" }, Ah = (e) => pw[e]; +function ke(e, t) { if (t) { - if (Gt.escapeTest.test(e)) return e.replace(Gt.escapeReplace, ic); - } else if (Gt.escapeTestNoEncode.test(e)) return e.replace(Gt.escapeReplaceNoEncode, ic); + if (jt.escapeTest.test(e)) return e.replace(jt.escapeReplace, Ah); + } else if (jt.escapeTestNoEncode.test(e)) return e.replace(jt.escapeReplaceNoEncode, Ah); return e; } -function sc(e) { +function Mh(e) { try { - e = encodeURI(e).replace(Gt.percentDecode, "%"); + e = encodeURI(e).replace(jt.percentDecode, "%"); } catch { return null; } return e; } -function oc(e, t) { - let r = e.replace(Gt.findPipe, (o, a, n) => { +function Eh(e, t) { + let r = e.replace(jt.findPipe, (o, a, n) => { let l = !1, c = a; for (; --c >= 0 && n[c] === "\\"; ) l = !l; return l ? "|" : " |"; - }), i = r.split(Gt.splitPipe), s = 0; + }), i = r.split(jt.splitPipe), s = 0; if (i[0].trim() || i.shift(), i.length > 0 && !i.at(-1)?.trim() && i.pop(), t) if (i.length > t) i.splice(t); else for (; i.length < t; ) i.push(""); - for (; s < i.length; s++) i[s] = i[s].trim().replace(Gt.slashPipe, "|"); + for (; s < i.length; s++) i[s] = i[s].trim().replace(jt.slashPipe, "|"); return i; } -function yi(e, t, r) { +function ci(e, t, r) { let i = e.length; if (i === 0) return ""; let s = 0; @@ -8631,7 +8525,7 @@ function yi(e, t, r) { s++; return e.slice(0, i - s); } -function GS(e, t) { +function gw(e, t) { if (e.indexOf(t[1]) === -1) return -1; let r = 0; for (let i = 0; i < e.length; i++) if (e[i] === "\\") i++; @@ -8639,13 +8533,13 @@ function GS(e, t) { else if (e[i] === t[1] && (r--, r < 0)) return i; return r > 0 ? -2 : -1; } -function ac(e, t, r, i, s) { +function $h(e, t, r, i, s) { let o = t.href, a = t.title || null, n = e[1].replace(s.other.outputLinkReplace, "$1"); i.state.inLink = !0; let l = { type: e[0].charAt(0) === "!" ? "image" : "link", raw: r, href: o, title: a, text: n, tokens: i.inlineTokens(n) }; return i.state.inLink = !1, l; } -function XS(e, t, r) { +function mw(e, t, r) { let i = e.match(r.other.indentCodeCompensation); if (i === null) return t; let s = i[1]; @@ -8658,12 +8552,12 @@ function XS(e, t, r) { }).join(` `); } -var ho = class { +var Ks = class { options; rules; lexer; constructor(t) { - this.options = t || Ar; + this.options = t || Tr; } space(t) { let r = this.rules.block.newline.exec(t); @@ -8673,14 +8567,14 @@ var ho = class { let r = this.rules.block.code.exec(t); if (r) { let i = r[0].replace(this.rules.other.codeRemoveIndent, ""); - return { type: "code", raw: r[0], codeBlockStyle: "indented", text: this.options.pedantic ? i : yi(i, ` + return { type: "code", raw: r[0], codeBlockStyle: "indented", text: this.options.pedantic ? i : ci(i, ` `) }; } } fences(t) { let r = this.rules.block.fences.exec(t); if (r) { - let i = r[0], s = XS(i, r[3] || "", this.rules); + let i = r[0], s = mw(i, r[3] || "", this.rules); return { type: "code", raw: i, lang: r[2] ? r[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : r[2], text: s }; } } @@ -8689,7 +8583,7 @@ var ho = class { if (r) { let i = r[2].trim(); if (this.rules.other.endingHash.test(i)) { - let s = yi(i, "#"); + let s = ci(i, "#"); (this.options.pedantic || !s || this.rules.other.endingSpaceChar.test(s)) && (i = s.trim()); } return { type: "heading", raw: r[0], depth: r[1].length, text: i, tokens: this.lexer.inline(i) }; @@ -8697,13 +8591,13 @@ var ho = class { } hr(t) { let r = this.rules.block.hr.exec(t); - if (r) return { type: "hr", raw: yi(r[0], ` + if (r) return { type: "hr", raw: ci(r[0], ` `) }; } blockquote(t) { let r = this.rules.block.blockquote.exec(t); if (r) { - let i = yi(r[0], ` + let i = ci(r[0], ` `).split(` `), s = "", o = "", a = []; for (; i.length > 0; ) { @@ -8713,26 +8607,26 @@ var ho = class { else break; i = i.slice(c); let h = l.join(` -`), u = h.replace(this.rules.other.blockquoteSetextReplace, ` +`), d = h.replace(this.rules.other.blockquoteSetextReplace, ` $1`).replace(this.rules.other.blockquoteSetextReplace2, ""); s = s ? `${s} ${h}` : h, o = o ? `${o} -${u}` : u; - let p = this.lexer.state.top; - if (this.lexer.state.top = !0, this.lexer.blockTokens(u, a, !0), this.lexer.state.top = p, i.length === 0) break; - let d = a.at(-1); - if (d?.type === "code") break; - if (d?.type === "blockquote") { - let g = d, m = g.raw + ` +${d}` : d; + let f = this.lexer.state.top; + if (this.lexer.state.top = !0, this.lexer.blockTokens(d, a, !0), this.lexer.state.top = f, i.length === 0) break; + let u = a.at(-1); + if (u?.type === "code") break; + if (u?.type === "blockquote") { + let g = u, m = g.raw + ` ` + i.join(` `), y = this.blockquote(m); a[a.length - 1] = y, s = s.substring(0, s.length - g.raw.length) + y.raw, o = o.substring(0, o.length - g.text.length) + y.text; break; - } else if (d?.type === "list") { - let g = d, m = g.raw + ` + } else if (u?.type === "list") { + let g = u, m = g.raw + ` ` + i.join(` `), y = this.list(m); - a[a.length - 1] = y, s = s.substring(0, s.length - d.raw.length) + y.raw, o = o.substring(0, o.length - g.raw.length) + y.raw, i = m.substring(a.at(-1).raw.length).split(` + a[a.length - 1] = y, s = s.substring(0, s.length - u.raw.length) + y.raw, o = o.substring(0, o.length - g.raw.length) + y.raw, i = m.substring(a.at(-1).raw.length).split(` `); continue; } @@ -8747,41 +8641,41 @@ ${u}` : u; i = s ? `\\d{1,9}\\${i.slice(-1)}` : `\\${i}`, this.options.pedantic && (i = s ? i : "[*+-]"); let a = this.rules.other.listItemRegex(i), n = !1; for (; t; ) { - let c = !1, h = "", u = ""; + let c = !1, h = "", d = ""; if (!(r = a.exec(t)) || this.rules.block.hr.test(t)) break; h = r[0], t = t.substring(h.length); - let p = r[2].split(` -`, 1)[0].replace(this.rules.other.listReplaceTabs, (b) => " ".repeat(3 * b.length)), d = t.split(` -`, 1)[0], g = !p.trim(), m = 0; - if (this.options.pedantic ? (m = 2, u = p.trimStart()) : g ? m = r[1].length + 1 : (m = r[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, u = p.slice(m), m += r[1].length), g && this.rules.other.blankLine.test(d) && (h += d + ` -`, t = t.substring(d.length + 1), c = !0), !c) { - let b = this.rules.other.nextBulletRegex(m), k = this.rules.other.hrRegex(m), w = this.rules.other.fencesBeginRegex(m), S = this.rules.other.headingBeginRegex(m), v = this.rules.other.htmlBeginRegex(m); + let f = r[2].split(` +`, 1)[0].replace(this.rules.other.listReplaceTabs, (b) => " ".repeat(3 * b.length)), u = t.split(` +`, 1)[0], g = !f.trim(), m = 0; + if (this.options.pedantic ? (m = 2, d = f.trimStart()) : g ? m = r[1].length + 1 : (m = r[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, d = f.slice(m), m += r[1].length), g && this.rules.other.blankLine.test(u) && (h += u + ` +`, t = t.substring(u.length + 1), c = !0), !c) { + let b = this.rules.other.nextBulletRegex(m), k = this.rules.other.hrRegex(m), T = this.rules.other.fencesBeginRegex(m), S = this.rules.other.headingBeginRegex(m), _ = this.rules.other.htmlBeginRegex(m); for (; t; ) { - let M = t.split(` -`, 1)[0], B; - if (d = M, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), B = d) : B = d.replace(this.rules.other.tabCharGlobal, " "), w.test(d) || S.test(d) || v.test(d) || b.test(d) || k.test(d)) break; - if (B.search(this.rules.other.nonSpaceChar) >= m || !d.trim()) u += ` -` + B.slice(m); + let A = t.split(` +`, 1)[0], v; + if (u = A, this.options.pedantic ? (u = u.replace(this.rules.other.listReplaceNesting, " "), v = u) : v = u.replace(this.rules.other.tabCharGlobal, " "), T.test(u) || S.test(u) || _.test(u) || b.test(u) || k.test(u)) break; + if (v.search(this.rules.other.nonSpaceChar) >= m || !u.trim()) d += ` +` + v.slice(m); else { - if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || w.test(p) || S.test(p) || k.test(p)) break; - u += ` -` + d; + if (g || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || T.test(f) || S.test(f) || k.test(f)) break; + d += ` +` + u; } - !g && !d.trim() && (g = !0), h += M + ` -`, t = t.substring(M.length + 1), p = B.slice(m); + !g && !u.trim() && (g = !0), h += A + ` +`, t = t.substring(A.length + 1), f = v.slice(m); } } o.loose || (n ? o.loose = !0 : this.rules.other.doubleBlankLine.test(h) && (n = !0)); - let y = null, x; - this.options.gfm && (y = this.rules.other.listIsTask.exec(u), y && (x = y[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), o.items.push({ type: "list_item", raw: h, task: !!y, checked: x, loose: !1, text: u, tokens: [] }), o.raw += h; + let y = null, C; + this.options.gfm && (y = this.rules.other.listIsTask.exec(d), y && (C = y[0] !== "[ ] ", d = d.replace(this.rules.other.listReplaceTask, ""))), o.items.push({ type: "list_item", raw: h, task: !!y, checked: C, loose: !1, text: d, tokens: [] }), o.raw += h; } let l = o.items.at(-1); if (l) l.raw = l.raw.trimEnd(), l.text = l.text.trimEnd(); else return; o.raw = o.raw.trimEnd(); for (let c = 0; c < o.items.length; c++) if (this.lexer.state.top = !1, o.items[c].tokens = this.lexer.blockTokens(o.items[c].text, []), !o.loose) { - let h = o.items[c].tokens.filter((p) => p.type === "space"), u = h.length > 0 && h.some((p) => this.rules.other.anyLine.test(p.raw)); - o.loose = u; + let h = o.items[c].tokens.filter((f) => f.type === "space"), d = h.length > 0 && h.some((f) => this.rules.other.anyLine.test(f.raw)); + o.loose = d; } if (o.loose) for (let c = 0; c < o.items.length; c++) o.items[c].loose = !0; return o; @@ -8801,12 +8695,12 @@ ${u}` : u; table(t) { let r = this.rules.block.table.exec(t); if (!r || !this.rules.other.tableDelimiter.test(r[2])) return; - let i = oc(r[1]), s = r[2].replace(this.rules.other.tableAlignChars, "").split("|"), o = r[3]?.trim() ? r[3].replace(this.rules.other.tableRowBlankLine, "").split(` + let i = Eh(r[1]), s = r[2].replace(this.rules.other.tableAlignChars, "").split("|"), o = r[3]?.trim() ? r[3].replace(this.rules.other.tableRowBlankLine, "").split(` `) : [], a = { type: "table", raw: r[0], header: [], align: [], rows: [] }; if (i.length === s.length) { for (let n of s) this.rules.other.tableAlignRight.test(n) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(n) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(n) ? a.align.push("left") : a.align.push(null); for (let n = 0; n < i.length; n++) a.header.push({ text: i[n], tokens: this.lexer.inline(i[n]), header: !0, align: a.align[n] }); - for (let n of o) a.rows.push(oc(n, a.header.length).map((l, c) => ({ text: l, tokens: this.lexer.inline(l), header: !1, align: a.align[c] }))); + for (let n of o) a.rows.push(Eh(n, a.header.length).map((l, c) => ({ text: l, tokens: this.lexer.inline(l), header: !1, align: a.align[c] }))); return a; } } @@ -8840,10 +8734,10 @@ ${u}` : u; let i = r[2].trim(); if (!this.options.pedantic && this.rules.other.startAngleBracket.test(i)) { if (!this.rules.other.endAngleBracket.test(i)) return; - let a = yi(i.slice(0, -1), "\\"); + let a = ci(i.slice(0, -1), "\\"); if ((i.length - a.length) % 2 === 0) return; } else { - let a = GS(r[2], "()"); + let a = gw(r[2], "()"); if (a === -2) return; if (a > -1) { let n = (r[0].indexOf("!") === 0 ? 5 : 4) + r[1].length + a; @@ -8855,7 +8749,7 @@ ${u}` : u; let a = this.rules.other.pedanticHrefTitle.exec(s); a && (s = a[1], o = a[3]); } else o = r[3] ? r[3].slice(1, -1) : ""; - return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(i) ? s = s.slice(1) : s = s.slice(1, -1)), ac(r, { href: s && s.replace(this.rules.inline.anyPunctuation, "$1"), title: o && o.replace(this.rules.inline.anyPunctuation, "$1") }, r[0], this.lexer, this.rules); + return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(i) ? s = s.slice(1) : s = s.slice(1, -1)), $h(r, { href: s && s.replace(this.rules.inline.anyPunctuation, "$1"), title: o && o.replace(this.rules.inline.anyPunctuation, "$1") }, r[0], this.lexer, this.rules); } } reflink(t, r) { @@ -8866,7 +8760,7 @@ ${u}` : u; let a = i[0].charAt(0); return { type: "text", raw: a, text: a }; } - return ac(i, o, i[0], this.lexer, this.rules); + return $h(i, o, i[0], this.lexer, this.rules); } } emStrong(t, r, i = "") { @@ -8884,13 +8778,13 @@ ${u}` : u; } if (l -= n, l > 0) continue; n = Math.min(n, n + l + c); - let u = [...s[0]][0].length, p = t.slice(0, o + s.index + u + n); + let d = [...s[0]][0].length, f = t.slice(0, o + s.index + d + n); if (Math.min(o, n) % 2) { - let g = p.slice(1, -1); - return { type: "em", raw: p, text: g, tokens: this.lexer.inlineTokens(g) }; + let g = f.slice(1, -1); + return { type: "em", raw: f, text: g, tokens: this.lexer.inlineTokens(g) }; } - let d = p.slice(2, -2); - return { type: "strong", raw: p, text: d, tokens: this.lexer.inlineTokens(d) }; + let u = f.slice(2, -2); + return { type: "strong", raw: f, text: u, tokens: this.lexer.inlineTokens(u) }; } } } @@ -8938,28 +8832,28 @@ ${u}` : u; return { type: "text", raw: r[0], text: r[0], escaped: i }; } } -}, pe = class on { +}, ce = class Wa { tokens; options; state; tokenizer; inlineQueue; constructor(t) { - this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || Ar, this.options.tokenizer = this.options.tokenizer || new ho(), 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 r = { other: Gt, block: xs.normal, inline: mi.normal }; - this.options.pedantic ? (r.block = xs.pedantic, r.inline = mi.pedantic) : this.options.gfm && (r.block = xs.gfm, this.options.breaks ? r.inline = mi.breaks : r.inline = mi.gfm), this.tokenizer.rules = r; + this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || Tr, this.options.tokenizer = this.options.tokenizer || new Ks(), 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 r = { other: jt, block: hs.normal, inline: hi.normal }; + this.options.pedantic ? (r.block = hs.pedantic, r.inline = hi.pedantic) : this.options.gfm && (r.block = hs.gfm, this.options.breaks ? r.inline = hi.breaks : r.inline = hi.gfm), this.tokenizer.rules = r; } static get rules() { - return { block: xs, inline: mi }; + return { block: hs, inline: hi }; } static lex(t, r) { - return new on(r).lex(t); + return new Wa(r).lex(t); } static lexInline(t, r) { - return new on(r).inlineTokens(t); + return new Wa(r).inlineTokens(t); } lex(t) { - t = t.replace(Gt.carriageReturn, ` + t = t.replace(jt.carriageReturn, ` `), this.blockTokens(t, this.tokens); for (let r = 0; r < this.inlineQueue.length; r++) { let i = this.inlineQueue[r]; @@ -8968,7 +8862,7 @@ ${u}` : u; return this.inlineQueue = [], this.tokens; } blockTokens(t, r = [], i = !1) { - for (this.options.pedantic && (t = t.replace(Gt.tabCharGlobal, " ").replace(Gt.spaceLine, "")); t; ) { + for (this.options.pedantic && (t = t.replace(jt.tabCharGlobal, " ").replace(jt.spaceLine, "")); t; ) { let s; if (this.options.extensions?.block?.some((a) => (s = a.call({ lexer: this }, t, r)) ? (t = t.substring(s.raw.length), r.push(s), !0) : !1)) continue; if (s = this.tokenizer.space(t)) { @@ -9124,9 +9018,9 @@ ${u}` : u; } let c = t; if (this.options.extensions?.startInline) { - let h = 1 / 0, u = t.slice(1), p; - this.options.extensions.startInline.forEach((d) => { - p = d.call({ lexer: this }, u), typeof p == "number" && p >= 0 && (h = Math.min(h, p)); + let h = 1 / 0, d = t.slice(1), f; + this.options.extensions.startInline.forEach((u) => { + f = u.call({ lexer: this }, d), typeof f == "number" && f >= 0 && (h = Math.min(h, f)); }), h < 1 / 0 && h >= 0 && (c = t.substring(0, h + 1)); } if (l = this.tokenizer.inlineText(c)) { @@ -9145,20 +9039,20 @@ ${u}` : u; } return r; } -}, co = class { +}, Qs = class { options; parser; constructor(t) { - this.options = t || Ar; + this.options = t || Tr; } space(t) { return ""; } code({ text: t, lang: r, escaped: i }) { - let s = (r || "").match(Gt.notSpaceStart)?.[0], o = t.replace(Gt.endingNewline, "") + ` + let s = (r || "").match(jt.notSpaceStart)?.[0], o = t.replace(jt.endingNewline, "") + ` `; - return s ? '
' + (i ? o : Se(o, !0)) + `
-` : "
" + (i ? o : Se(o, !0)) + `
+ return s ? '
' + (i ? o : ke(o, !0)) + `
+` : "
" + (i ? o : ke(o, !0)) + `
`; } blockquote({ tokens: t }) { @@ -9195,7 +9089,7 @@ ${this.parser.parse(t)} let r = ""; if (t.task) { let i = this.checkbox({ checked: !!t.checked }); - t.loose ? t.tokens[0]?.type === "paragraph" ? (t.tokens[0].text = i + " " + 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 = i + " " + Se(t.tokens[0].tokens[0].text), t.tokens[0].tokens[0].escaped = !0)) : t.tokens.unshift({ type: "text", raw: i + " ", text: i + " ", escaped: !0 }) : r += i + " "; + t.loose ? t.tokens[0]?.type === "paragraph" ? (t.tokens[0].text = i + " " + 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 = i + " " + ke(t.tokens[0].tokens[0].text), t.tokens[0].tokens[0].escaped = !0)) : t.tokens.unshift({ type: "text", raw: i + " ", text: i + " ", escaped: !0 }) : r += i + " "; } return r += this.parser.parse(t.tokens, !!t.loose), `
  • ${r}
  • `; @@ -9241,7 +9135,7 @@ ${t} return `${this.parser.parseInline(t)}`; } codespan({ text: t }) { - return `${Se(t, !0)}`; + return `${ke(t, !0)}`; } br(t) { return "
    "; @@ -9250,24 +9144,24 @@ ${t} return `${this.parser.parseInline(t)}`; } link({ href: t, title: r, tokens: i }) { - let s = this.parser.parseInline(i), o = sc(t); + let s = this.parser.parseInline(i), o = Mh(t); if (o === null) return s; t = o; let a = '
    ", a; + return r && (a += ' title="' + ke(r) + '"'), a += ">" + s + "", a; } image({ href: t, title: r, text: i, tokens: s }) { s && (i = this.parser.parseInline(s, this.parser.textRenderer)); - let o = sc(t); - if (o === null) return Se(i); + let o = Mh(t); + if (o === null) return ke(i); t = o; let a = `${i} br() { return ""; } -}, fe = class an { +}, de = class za { options; renderer; textRenderer; constructor(t) { - this.options = t || Ar, this.options.renderer = this.options.renderer || new co(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Cl(); + this.options = t || Tr, this.options.renderer = this.options.renderer || new Qs(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Qn(); } static parse(t, r) { - return new an(r).parse(t); + return new za(r).parse(t); } static parseInline(t, r) { - return new an(r).parseInline(t); + return new za(r).parseInline(t); } parse(t, r = !0) { let i = ""; @@ -9439,11 +9333,11 @@ ${t} } return i; } -}, Bi = class { +}, bi = class { options; block; constructor(t) { - this.options = t || Ar; + this.options = t || Tr; } static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]); static passThroughHooksRespectAsync = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]); @@ -9460,22 +9354,22 @@ ${t} return t; } provideLexer() { - return this.block ? pe.lex : pe.lexInline; + return this.block ? ce.lex : ce.lexInline; } provideParser() { - return this.block ? fe.parse : fe.parseInline; + return this.block ? de.parse : de.parseInline; } -}, VS = class { - defaults = cl(); +}, yw = class { + defaults = Yn(); options = this.setOptions; parse = this.parseMarkdown(!0); parseInline = this.parseMarkdown(!1); - Parser = fe; - Renderer = co; - TextRenderer = Cl; - Lexer = pe; - Tokenizer = ho; - Hooks = Bi; + Parser = de; + Renderer = Qs; + TextRenderer = Qn; + Lexer = ce; + Tokenizer = Ks; + Hooks = bi; constructor(...t) { this.use(...t); } @@ -9523,51 +9417,51 @@ ${t} } "childTokens" in o && o.childTokens && (r.childTokens[o.name] = o.childTokens); }), s.extensions = r), i.renderer) { - let o = this.defaults.renderer || new co(this.defaults); + let o = this.defaults.renderer || new Qs(this.defaults); for (let a in i.renderer) { if (!(a in o)) throw new Error(`renderer '${a}' does not exist`); if (["options", "parser"].includes(a)) continue; let n = a, l = i.renderer[n], c = o[n]; o[n] = (...h) => { - let u = l.apply(o, h); - return u === !1 && (u = c.apply(o, h)), u || ""; + let d = l.apply(o, h); + return d === !1 && (d = c.apply(o, h)), d || ""; }; } s.renderer = o; } if (i.tokenizer) { - let o = this.defaults.tokenizer || new ho(this.defaults); + let o = this.defaults.tokenizer || new Ks(this.defaults); for (let a in i.tokenizer) { if (!(a in o)) throw new Error(`tokenizer '${a}' does not exist`); if (["options", "rules", "lexer"].includes(a)) continue; let n = a, l = i.tokenizer[n], c = o[n]; o[n] = (...h) => { - let u = l.apply(o, h); - return u === !1 && (u = c.apply(o, h)), u; + let d = l.apply(o, h); + return d === !1 && (d = c.apply(o, h)), d; }; } s.tokenizer = o; } if (i.hooks) { - let o = this.defaults.hooks || new Bi(); + let o = this.defaults.hooks || new bi(); for (let a in i.hooks) { if (!(a in o)) throw new Error(`hook '${a}' does not exist`); if (["options", "block"].includes(a)) continue; let n = a, l = i.hooks[n], c = o[n]; - Bi.passThroughHooks.has(a) ? o[n] = (h) => { - if (this.defaults.async && Bi.passThroughHooksRespectAsync.has(a)) return (async () => { - let p = await l.call(o, h); - return c.call(o, p); + bi.passThroughHooks.has(a) ? o[n] = (h) => { + if (this.defaults.async && bi.passThroughHooksRespectAsync.has(a)) return (async () => { + let f = await l.call(o, h); + return c.call(o, f); })(); - let u = l.call(o, h); - return c.call(o, u); + let d = l.call(o, h); + return c.call(o, d); } : o[n] = (...h) => { if (this.defaults.async) return (async () => { - let p = await l.apply(o, h); - return p === !1 && (p = await c.apply(o, h)), p; + let f = await l.apply(o, h); + return f === !1 && (f = await c.apply(o, h)), f; })(); - let u = l.apply(o, h); - return u === !1 && (u = c.apply(o, h)), u; + let d = l.apply(o, h); + return d === !1 && (d = c.apply(o, h)), d; }; } s.hooks = o; @@ -9586,10 +9480,10 @@ ${t} return this.defaults = { ...this.defaults, ...t }, this; } lexer(t, r) { - return pe.lex(t, r ?? this.defaults); + return ce.lex(t, r ?? this.defaults); } parser(t, r) { - return fe.parse(t, r ?? this.defaults); + return de.parse(t, r ?? this.defaults); } parseMarkdown(t) { return (r, i) => { @@ -9598,16 +9492,16 @@ ${t} if (typeof r > "u" || r === null) return a(new Error("marked(): input parameter is undefined or null")); if (typeof r != "string") return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(r) + ", string expected")); if (o.hooks && (o.hooks.options = o, o.hooks.block = t), o.async) return (async () => { - let n = o.hooks ? await o.hooks.preprocess(r) : r, l = await (o.hooks ? await o.hooks.provideLexer() : t ? pe.lex : pe.lexInline)(n, o), c = o.hooks ? await o.hooks.processAllTokens(l) : l; + let n = o.hooks ? await o.hooks.preprocess(r) : r, l = await (o.hooks ? await o.hooks.provideLexer() : t ? ce.lex : ce.lexInline)(n, o), c = o.hooks ? await o.hooks.processAllTokens(l) : l; o.walkTokens && await Promise.all(this.walkTokens(c, o.walkTokens)); - let h = await (o.hooks ? await o.hooks.provideParser() : t ? fe.parse : fe.parseInline)(c, o); + let h = await (o.hooks ? await o.hooks.provideParser() : t ? de.parse : de.parseInline)(c, o); return o.hooks ? await o.hooks.postprocess(h) : h; })().catch(a); try { o.hooks && (r = o.hooks.preprocess(r)); - let n = (o.hooks ? o.hooks.provideLexer() : t ? pe.lex : pe.lexInline)(r, o); + let n = (o.hooks ? o.hooks.provideLexer() : t ? ce.lex : ce.lexInline)(r, o); o.hooks && (n = o.hooks.processAllTokens(n)), o.walkTokens && this.walkTokens(n, o.walkTokens); - let l = (o.hooks ? o.hooks.provideParser() : t ? fe.parse : fe.parseInline)(n, o); + let l = (o.hooks ? o.hooks.provideParser() : t ? de.parse : de.parseInline)(n, o); return o.hooks && (l = o.hooks.postprocess(l)), l; } catch (n) { return a(n); @@ -9618,46 +9512,46 @@ ${t} return (i) => { if (i.message += ` Please report this to https://github.com/markedjs/marked.`, t) { - let s = "

    An error occurred:

    " + Se(i.message + "", !0) + "
    "; + let s = "

    An error occurred:

    " + ke(i.message + "", !0) + "
    "; return r ? Promise.resolve(s) : s; } if (r) return Promise.reject(i); throw i; }; } -}, _r = new VS(); -function yt(e, t) { - return _r.parse(e, t); +}, kr = new yw(); +function Ct(e, t) { + return kr.parse(e, t); } -yt.options = yt.setOptions = function(e) { - return _r.setOptions(e), yt.defaults = _r.defaults, gf(yt.defaults), yt; +Ct.options = Ct.setOptions = function(e) { + return kr.setOptions(e), Ct.defaults = kr.defaults, Ff(Ct.defaults), Ct; }; -yt.getDefaults = cl; -yt.defaults = Ar; -yt.use = function(...e) { - return _r.use(...e), yt.defaults = _r.defaults, gf(yt.defaults), yt; +Ct.getDefaults = Yn; +Ct.defaults = Tr; +Ct.use = function(...e) { + return kr.use(...e), Ct.defaults = kr.defaults, Ff(Ct.defaults), Ct; }; -yt.walkTokens = function(e, t) { - return _r.walkTokens(e, t); +Ct.walkTokens = function(e, t) { + return kr.walkTokens(e, t); }; -yt.parseInline = _r.parseInline; -yt.Parser = fe; -yt.parser = fe.parse; -yt.Renderer = co; -yt.TextRenderer = Cl; -yt.Lexer = pe; -yt.lexer = pe.lex; -yt.Tokenizer = ho; -yt.Hooks = Bi; -yt.parse = yt; -yt.options; -yt.setOptions; -yt.use; -yt.walkTokens; -yt.parseInline; -fe.parse; -pe.lex; -function vf(e) { +Ct.parseInline = kr.parseInline; +Ct.Parser = de; +Ct.parser = de.parse; +Ct.Renderer = Qs; +Ct.TextRenderer = Qn; +Ct.Lexer = ce; +Ct.lexer = ce.lex; +Ct.Tokenizer = Ks; +Ct.Hooks = bi; +Ct.parse = Ct; +Ct.options; +Ct.setOptions; +Ct.use; +Ct.walkTokens; +Ct.parseInline; +de.parse; +ce.lex; +function qf(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; var i = Array.from(typeof e == "string" ? [e] : e); @@ -9665,8 +9559,8 @@ function vf(e) { var s = i.reduce(function(n, l) { var c = l.match(/\n([\t ]+|(?!\s).)/g); return c ? n.concat(c.map(function(h) { - var u, p; - return (p = (u = h.match(/[\t ]/g)) === null || u === void 0 ? void 0 : u.length) !== null && p !== void 0 ? p : 0; + var d, f; + return (f = (d = h.match(/[\t ]/g)) === null || d === void 0 ? void 0 : d.length) !== null && f !== void 0 ? f : 0; })) : n; }, []); if (s.length) { @@ -9680,107 +9574,107 @@ function vf(e) { i[0] = i[0].replace(/^\r?\n/, ""); var a = i[0]; return t.forEach(function(n, l) { - var c = a.match(/(?:^|\n)( *)$/), h = c ? c[1] : "", u = n; + var c = a.match(/(?:^|\n)( *)$/), h = c ? c[1] : "", d = n; typeof n == "string" && n.includes(` -`) && (u = String(n).split(` -`).map(function(p, d) { - return d === 0 ? p : "" + h + p; +`) && (d = String(n).split(` +`).map(function(f, u) { + return u === 0 ? f : "" + h + f; }).join(` -`)), a += u + i[l + 1]; +`)), a += d + i[l + 1]; }), a; } -var ZS = { +var Cw = { body: '?', height: 80, width: 80 -}, nn = /* @__PURE__ */ new Map(), Bf = /* @__PURE__ */ new Map(), KS = /* @__PURE__ */ f((e) => { +}, Ha = /* @__PURE__ */ new Map(), Wf = /* @__PURE__ */ new Map(), xw = /* @__PURE__ */ p((e) => { for (const t of e) { if (!t.name) throw new Error( 'Invalid icon loader. Must have a "name" property with non-empty string value.' ); - if (R.debug("Registering icon pack:", t.name), "loader" in t) - Bf.set(t.name, t.loader); + if (P.debug("Registering icon pack:", t.name), "loader" in t) + Wf.set(t.name, t.loader); else if ("icons" in t) - nn.set(t.name, t.icons); + Ha.set(t.name, t.icons); else - throw R.error("Invalid icon loader:", t), new Error('Invalid icon loader. Must have either "icons" or "loader" property.'); + throw P.error("Invalid icon loader:", t), new Error('Invalid icon loader. Must have either "icons" or "loader" property.'); } -}, "registerIconPacks"), Lf = /* @__PURE__ */ f(async (e, t) => { - const r = Qw(e, !0, t !== void 0); +}, "registerIconPacks"), zf = /* @__PURE__ */ p(async (e, t) => { + const r = b2(e, !0, t !== void 0); if (!r) throw new Error(`Invalid icon name: ${e}`); const i = r.prefix || t; if (!i) throw new Error(`Icon name must contain a prefix: ${e}`); - let s = nn.get(i); + let s = Ha.get(i); if (!s) { - const a = Bf.get(i); + const a = Wf.get(i); if (!a) throw new Error(`Icon set not found: ${r.prefix}`); try { - s = { ...await a(), prefix: i }, nn.set(i, s); + s = { ...await a(), prefix: i }, Ha.set(i, s); } catch (n) { - throw R.error(n), new Error(`Failed to load icon set: ${r.prefix}`); + throw P.error(n), new Error(`Failed to load icon set: ${r.prefix}`); } } - const o = eS(s, r.name); + const o = T2(s, r.name); if (!o) throw new Error(`Icon not found: ${e}`); return o; -}, "getRegisteredIconData"), QS = /* @__PURE__ */ f(async (e) => { +}, "getRegisteredIconData"), bw = /* @__PURE__ */ p(async (e) => { try { - return await Lf(e), !0; + return await zf(e), !0; } catch { return !1; } -}, "isIconAvailable"), os = /* @__PURE__ */ f(async (e, t, r) => { +}, "isIconAvailable"), Xi = /* @__PURE__ */ p(async (e, t, r) => { let i; try { - i = await Lf(e, t?.fallbackPrefix); + i = await zf(e, t?.fallbackPrefix); } catch (a) { - R.error(a), i = ZS; + P.error(a), i = Cw; } - const s = lS(i, t), o = dS(uS(s.body), { + const s = A2(i, t), o = O2($2(s.body), { ...s.attributes, ...r }); - return xe(o, wt()); + return me(o, Tt()); }, "getIconSVG"); -function Ff(e, { markdownAutoWrap: t }) { +function Hf(e, { markdownAutoWrap: t }) { const i = e.replace(//g, ` `).replace(/\n{2,}/g, ` `); - return vf(i); + return qf(i); } -f(Ff, "preprocessMarkdown"); -function Af(e) { +p(Hf, "preprocessMarkdown"); +function Yf(e) { return e.split(/\\n|\n|/gi).map( (t) => t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((r) => ({ content: r, type: "normal" })) ?? [] ); } -f(Af, "nonMarkdownToLines"); -function Mf(e, t = {}) { - const r = Ff(e, t), i = yt.lexer(r), s = [[]]; +p(Yf, "nonMarkdownToLines"); +function Uf(e, t = {}) { + const r = Hf(e, t), i = Ct.lexer(r), s = [[]]; let o = 0; function a(n, l = "normal") { n.type === "text" ? n.text.split(` -`).forEach((h, u) => { - u !== 0 && (o++, s.push([])), h.split(" ").forEach((p) => { - p = p.replace(/'/g, "'"), p && s[o].push({ content: p, type: l }); +`).forEach((h, d) => { + d !== 0 && (o++, s.push([])), h.split(" ").forEach((f) => { + f = f.replace(/'/g, "'"), f && s[o].push({ content: f, type: l }); }); }) : n.type === "strong" || n.type === "em" ? n.tokens.forEach((c) => { a(c, n.type); }) : n.type === "html" && s[o].push({ content: n.text, type: "normal" }); } - return f(a, "processNode"), i.forEach((n) => { + return p(a, "processNode"), i.forEach((n) => { n.type === "paragraph" ? n.tokens?.forEach((l) => { a(l); }) : n.type === "html" ? s[o].push({ content: n.text, type: "normal" }) : s[o].push({ content: n.raw, type: "normal" }); }), s; } -f(Mf, "markdownToLines"); -function Ef(e) { +p(Uf, "markdownToLines"); +function Gf(e) { return e ? `

    ${/** * Replace new lines with
    tags. * @@ -9788,114 +9682,114 @@ function Ef(e) { */ e.replace(/\\n|\n/g, "
    ")}

    ` : ""; } -f(Ef, "nonMarkdownToHTML"); -function $f(e, { markdownAutoWrap: t } = {}) { - const r = yt.lexer(e); +p(Gf, "nonMarkdownToHTML"); +function jf(e, { markdownAutoWrap: t } = {}) { + const r = Ct.lexer(e); function i(s) { - return s.type === "text" ? t === !1 ? s.text.replace(/\n */g, "
    ").replace(/ /g, " ") : s.text.replace(/\n */g, "
    ") : s.type === "strong" ? `${s.tokens?.map(i).join("")}` : s.type === "em" ? `${s.tokens?.map(i).join("")}` : s.type === "paragraph" ? `

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

    ` : s.type === "space" ? "" : s.type === "html" ? `${s.text}` : s.type === "escape" ? s.text : (R.warn(`Unsupported markdown: ${s.type}`), s.raw); + return s.type === "text" ? t === !1 ? s.text.replace(/\n */g, "
    ").replace(/ /g, " ") : s.text.replace(/\n */g, "
    ") : s.type === "strong" ? `${s.tokens?.map(i).join("")}` : s.type === "em" ? `${s.tokens?.map(i).join("")}` : s.type === "paragraph" ? `

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

    ` : s.type === "space" ? "" : s.type === "html" ? `${s.text}` : s.type === "escape" ? s.text : (P.warn(`Unsupported markdown: ${s.type}`), s.raw); } - return f(i, "output"), r.map(i).join(""); + return p(i, "output"), r.map(i).join(""); } -f($f, "markdownToHTML"); -function Of(e) { +p(jf, "markdownToHTML"); +function Xf(e) { return Intl.Segmenter ? [...new Intl.Segmenter().segment(e)].map((t) => t.segment) : [...e]; } -f(Of, "splitTextToChars"); -function If(e, t) { - const r = Of(t.content); - return xl(e, [], r, t.type); +p(Xf, "splitTextToChars"); +function Vf(e, t) { + const r = Xf(t.content); + return Jn(e, [], r, t.type); } -f(If, "splitWordToFitWidth"); -function xl(e, t, r, i) { +p(Vf, "splitWordToFitWidth"); +function Jn(e, t, r, i) { if (r.length === 0) return [ { content: t.join(""), type: i }, { content: "", type: i } ]; const [s, ...o] = r, a = [...t, s]; - return e([{ content: a.join(""), type: i }]) ? xl(e, a, o, i) : (t.length === 0 && s && (t.push(s), r.shift()), [ + return e([{ content: a.join(""), type: i }]) ? Jn(e, a, o, i) : (t.length === 0 && s && (t.push(s), r.shift()), [ { content: t.join(""), type: i }, { content: r.join(""), type: i } ]); } -f(xl, "splitWordToFitWidthRecursion"); -function Df(e, t) { +p(Jn, "splitWordToFitWidthRecursion"); +function Zf(e, t) { if (e.some(({ content: r }) => r.includes(` `))) throw new Error("splitLineToFitWidth does not support newlines in the line"); - return uo(e, t); + return Js(e, t); } -f(Df, "splitLineToFitWidth"); -function uo(e, t, r = [], i = []) { +p(Zf, "splitLineToFitWidth"); +function Js(e, t, r = [], i = []) { if (e.length === 0) return i.length > 0 && r.push(i), r.length > 0 ? r : []; let s = ""; e[0].content === " " && (s = " ", e.shift()); const o = e.shift() ?? { content: " ", type: "normal" }, a = [...i]; if (s !== "" && a.push({ content: s, type: "normal" }), a.push(o), t(a)) - return uo(e, t, r, a); + return Js(e, t, r, a); if (i.length > 0) r.push(i), e.unshift(o); else if (o.content) { - const [n, l] = If(t, o); + const [n, l] = Vf(t, o); r.push([n]), l.content && e.unshift(l); } - return uo(e, t, r); + return Js(e, t, r); } -f(uo, "splitLineToFitWidthRecursion"); -function ln(e, t) { +p(Js, "splitLineToFitWidthRecursion"); +function Ya(e, t) { t && e.attr("style", t); } -f(ln, "applyStyle"); -var nc = 16384; -async function Pf(e, t, r, i, s = !1, o = wt()) { +p(Ya, "applyStyle"); +var Oh = 16384; +async function Kf(e, t, r, i, s = !1, o = Tt()) { const a = e.append("foreignObject"); - a.attr("width", `${Math.min(10 * r, nc)}px`), a.attr("height", `${Math.min(10 * r, nc)}px`); - const n = a.append("xhtml:div"), l = Pi(t.label) ? await hu(t.label.replace(Qi.lineBreakRegex, ` -`), o) : xe(t.label, o), c = t.isNode ? "nodeLabel" : "edgeLabel", h = n.append("span"); - h.html(l), ln(h, t.labelStyle), h.attr("class", `${c} ${i}`), ln(n, t.labelStyle), n.style("display", "table-cell"), n.style("white-space", "nowrap"), n.style("line-height", "1.5"), r !== Number.POSITIVE_INFINITY && (n.style("max-width", r + "px"), n.style("text-align", "center")), n.attr("xmlns", "http://www.w3.org/1999/xhtml"), s && n.attr("class", "labelBkg"); - let u = n.node().getBoundingClientRect(); - return u.width === r && (n.style("display", "table"), n.style("white-space", "break-spaces"), n.style("width", r + "px"), u = n.node().getBoundingClientRect()), a.node(); -} -f(Pf, "addHtmlSpan"); -function Do(e, t, r, i = !1) { + a.attr("width", `${Math.min(10 * r, Oh)}px`), a.attr("height", `${Math.min(10 * r, Oh)}px`); + const n = a.append("xhtml:div"), l = Fi(t.label) ? await Ac(t.label.replace(zi.lineBreakRegex, ` +`), o) : me(t.label, o), c = t.isNode ? "nodeLabel" : "edgeLabel", h = n.append("span"); + h.html(l), Ya(h, t.labelStyle), h.attr("class", `${c} ${i}`), Ya(n, t.labelStyle), n.style("display", "table-cell"), n.style("white-space", "nowrap"), n.style("line-height", "1.5"), r !== Number.POSITIVE_INFINITY && (n.style("max-width", r + "px"), n.style("text-align", "center")), n.attr("xmlns", "http://www.w3.org/1999/xhtml"), s && n.attr("class", "labelBkg"); + let d = n.node().getBoundingClientRect(); + return d.width === r && (n.style("display", "table"), n.style("white-space", "break-spaces"), n.style("width", r + "px"), d = n.node().getBoundingClientRect()), a.node(); +} +p(Kf, "addHtmlSpan"); +function xo(e, t, r, i = !1) { const s = e.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", t * r - 0.1 + "em").attr("dy", r + "em"); return i && s.attr("text-anchor", "middle"), s; } -f(Do, "createTspan"); -function Rf(e, t, r) { - const i = e.append("text"), s = Do(i, 1, t); - Po(s, r); +p(xo, "createTspan"); +function Qf(e, t, r) { + const i = e.append("text"), s = xo(i, 1, t); + bo(s, r); const o = s.node().getComputedTextLength(); return i.remove(), o; } -f(Rf, "computeWidthOfText"); -function JS(e, t, r) { - const i = e.append("text"), s = Do(i, 1, t); - Po(s, [{ content: r, type: "normal" }]); +p(Qf, "computeWidthOfText"); +function kw(e, t, r) { + const i = e.append("text"), s = xo(i, 1, t); + bo(s, [{ content: r, type: "normal" }]); const o = s.node()?.getBoundingClientRect(); return o && i.remove(), o; } -f(JS, "computeDimensionOfText"); -function Nf(e, t, r, i = !1, s = !1) { +p(kw, "computeDimensionOfText"); +function Jf(e, t, r, i = !1, s = !1) { const a = t.append("g"), n = a.insert("rect").attr("class", "background").attr("style", "stroke: none"), l = a.append("text").attr("y", "-10.1"); s && l.attr("text-anchor", "middle"); let c = 0; for (const h of r) { - const u = /* @__PURE__ */ f((d) => Rf(a, 1.1, d) <= e, "checkWidth"), p = u(h) ? [h] : Df(h, u); - for (const d of p) { - const g = Do(l, c, 1.1, s); - Po(g, d), c++; + const d = /* @__PURE__ */ p((u) => Qf(a, 1.1, u) <= e, "checkWidth"), f = d(h) ? [h] : Zf(h, d); + for (const u of f) { + const g = xo(l, c, 1.1, s); + bo(g, u), c++; } } if (i) { - const h = l.node().getBBox(), u = 2; - return n.attr("x", h.x - u).attr("y", h.y - u).attr("width", h.width + 2 * u).attr("height", h.height + 2 * u), a.node(); + const h = l.node().getBBox(), d = 2; + return n.attr("x", h.x - d).attr("y", h.y - d).attr("width", h.width + 2 * d).attr("height", h.height + 2 * d), a.node(); } else return l.node(); } -f(Nf, "createFormattedText"); -function hn(e) { +p(Jf, "createFormattedText"); +function Ua(e) { const t = /&(amp|lt|gt);/g; return e.replace(t, (r, i) => { switch (i) { @@ -9910,27 +9804,27 @@ function hn(e) { } }); } -f(hn, "decodeHTMLEntities"); -function Po(e, t) { +p(Ua, "decodeHTMLEntities"); +function bo(e, t) { e.text(""), t.forEach((r, i) => { const s = e.append("tspan").attr("font-style", r.type === "em" ? "italic" : "normal").attr("class", "text-inner-tspan").attr("font-weight", r.type === "strong" ? "bold" : "normal"); - i === 0 ? s.text(hn(r.content)) : s.text(" " + hn(r.content)); + i === 0 ? s.text(Ua(r.content)) : s.text(" " + Ua(r.content)); }); } -f(Po, "updateTextContentAndStyles"); -async function qf(e, t = {}) { +p(bo, "updateTextContentAndStyles"); +async function tp(e, t = {}) { const r = []; e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (s, o, a) => (r.push( (async () => { const n = `${o}:${a}`; - return await QS(n) ? await os(n, void 0, { class: "label-icon" }) : ``; + return await bw(n) ? await Xi(n, void 0, { class: "label-icon" }) : ``; })() ), s)); const i = await Promise.all(r); return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, () => i.shift() ?? ""); } -f(qf, "replaceIconSubstring"); -var Ge = /* @__PURE__ */ f(async (e, t = "", { +p(tp, "replaceIconSubstring"); +var He = /* @__PURE__ */ p(async (e, t = "", { style: r = "", isTitle: i = !1, classes: s = "", @@ -9943,7 +9837,7 @@ var Ge = /* @__PURE__ */ f(async (e, t = "", { width: l = 200, addSvgBackground: c = !1 } = {}, h) => { - if (R.debug( + if (P.debug( "XYZ createText", t, r, @@ -9954,34 +9848,34 @@ var Ge = /* @__PURE__ */ f(async (e, t = "", { "addSvgBackground: ", c ), o) { - const u = a ? $f(t, h) : Ef(t), p = await qf(Sr(u), h), d = t.replace(/\\\\/g, "\\"), g = { + const d = a ? jf(t, h) : Gf(t), f = await tp(br(d), h), u = t.replace(/\\\\/g, "\\"), g = { isNode: n, - label: Pi(t) ? d : p, + label: Fi(t) ? u : f, labelStyle: r.replace("fill:", "color:") }; - return await Pf(e, g, l, s, c, h); + return await Kf(e, g, l, s, c, h); } else { - const u = Sr(t.replace(//g, "
    ")), p = a ? Mf(u.replace("
    ", "
    "), h) : Af(u), d = Nf( + const d = br(t.replace(//g, "
    ")), f = a ? Uf(d.replace("
    ", "
    "), h) : Yf(d), u = Jf( l, e, - p, + f, t ? c : !1, !n ); if (n) { /stroke:/.exec(r) && (r = r.replace("stroke:", "lineColor:")); const g = r.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:"); - ct(d).attr("style", g); + ht(u).attr("style", g); } else { const g = r.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:"); - ct(d).select("rect").attr("style", g.replace(/background:/g, "fill:")); + ht(u).select("rect").attr("style", g.replace(/background:/g, "fill:")); const m = r.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:"); - ct(d).select("text").attr("style", m); + ht(u).select("text").attr("style", m); } - return i ? ct(d).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : ct(d).selectAll("tspan.text-outer-tspan").classed("row", !0), d; + return i ? ht(u).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : ht(u).selectAll("tspan.text-outer-tspan").classed("row", !0), u; } }, "createText"); -function fa(e, t, r) { +function Zo(e, t, r) { if (e && e.length) { const [i, s] = t, o = Math.PI / 180 * r, a = Math.cos(o), n = Math.sin(o); for (const l of e) { @@ -9990,30 +9884,30 @@ function fa(e, t, r) { } } } -function t_(e, t) { +function ww(e, t) { return e[0] === t[0] && e[1] === t[1]; } -function e_(e, t, r, i = 1) { +function Tw(e, t, r, i = 1) { const s = r, o = Math.max(t, 0.1), a = e[0] && e[0][0] && typeof e[0][0] == "number" ? [e] : e, n = [0, 0]; - if (s) for (const c of a) fa(c, n, s); - const l = (function(c, h, u) { - const p = []; + if (s) for (const c of a) Zo(c, n, s); + const l = (function(c, h, d) { + const f = []; for (const b of c) { const k = [...b]; - t_(k[0], k[k.length - 1]) || k.push([k[0][0], k[0][1]]), k.length > 2 && p.push(k); + ww(k[0], k[k.length - 1]) || k.push([k[0][0], k[0][1]]), k.length > 2 && f.push(k); } - const d = []; + const u = []; h = Math.max(h, 0.1); const g = []; - for (const b of p) for (let k = 0; k < b.length - 1; k++) { - const w = b[k], S = b[k + 1]; - if (w[1] !== S[1]) { - const v = Math.min(w[1], S[1]); - g.push({ ymin: v, ymax: Math.max(w[1], S[1]), x: v === w[1] ? w[0] : S[0], islope: (S[0] - w[0]) / (S[1] - w[1]) }); + for (const b of f) for (let k = 0; k < b.length - 1; k++) { + const T = b[k], S = b[k + 1]; + if (T[1] !== S[1]) { + const _ = Math.min(T[1], S[1]); + g.push({ ymin: _, ymax: Math.max(T[1], S[1]), x: _ === T[1] ? T[0] : S[0], islope: (S[0] - T[0]) / (S[1] - T[1]) }); } } - if (g.sort(((b, k) => b.ymin < k.ymin ? -1 : b.ymin > k.ymin ? 1 : b.x < k.x ? -1 : b.x > k.x ? 1 : b.ymax === k.ymax ? 0 : (b.ymax - k.ymax) / Math.abs(b.ymax - k.ymax))), !g.length) return d; - let m = [], y = g[0].ymin, x = 0; + if (g.sort(((b, k) => b.ymin < k.ymin ? -1 : b.ymin > k.ymin ? 1 : b.x < k.x ? -1 : b.x > k.x ? 1 : b.ymax === k.ymax ? 0 : (b.ymax - k.ymax) / Math.abs(b.ymax - k.ymax))), !g.length) return u; + let m = [], y = g[0].ymin, C = 0; for (; m.length || g.length; ) { if (g.length) { let b = -1; @@ -10022,36 +9916,36 @@ function e_(e, t, r, i = 1) { m.push({ s: y, edge: k }); })); } - if (m = m.filter(((b) => !(b.edge.ymax <= y))), m.sort(((b, k) => b.edge.x === k.edge.x ? 0 : (b.edge.x - k.edge.x) / Math.abs(b.edge.x - k.edge.x))), (u !== 1 || x % h == 0) && m.length > 1) for (let b = 0; b < m.length; b += 2) { + if (m = m.filter(((b) => !(b.edge.ymax <= y))), m.sort(((b, k) => b.edge.x === k.edge.x ? 0 : (b.edge.x - k.edge.x) / Math.abs(b.edge.x - k.edge.x))), (d !== 1 || C % h == 0) && m.length > 1) for (let b = 0; b < m.length; b += 2) { const k = b + 1; if (k >= m.length) break; - const w = m[b].edge, S = m[k].edge; - d.push([[Math.round(w.x), y], [Math.round(S.x), y]]); + const T = m[b].edge, S = m[k].edge; + u.push([[Math.round(T.x), y], [Math.round(S.x), y]]); } - y += u, m.forEach(((b) => { - b.edge.x = b.edge.x + u * b.edge.islope; - })), x++; + y += d, m.forEach(((b) => { + b.edge.x = b.edge.x + d * b.edge.islope; + })), C++; } - return d; + return u; })(a, o, i); if (s) { - for (const c of a) fa(c, n, -s); - (function(c, h, u) { - const p = []; - c.forEach(((d) => p.push(...d))), fa(p, h, u); + for (const c of a) Zo(c, n, -s); + (function(c, h, d) { + const f = []; + c.forEach(((u) => f.push(...u))), Zo(f, h, d); })(l, n, -s); } return l; } -function as(e, t) { +function Vi(e, t) { var r; const i = t.hachureAngle + 90; let s = t.hachureGap; s < 0 && (s = 4 * t.strokeWidth), s = Math.round(Math.max(s, 0.1)); let o = 1; - return t.roughness >= 1 && (((r = t.randomizer) === null || r === void 0 ? void 0 : r.next()) || Math.random()) > 0.7 && (o = s), e_(e, s, i, o || 1); + return t.roughness >= 1 && (((r = t.randomizer) === null || r === void 0 ? void 0 : r.next()) || Math.random()) > 0.7 && (o = s), Tw(e, s, i, o || 1); } -class bl { +class tl { constructor(t) { this.helper = t; } @@ -10059,7 +9953,7 @@ class bl { return this._fillPolygons(t, r); } _fillPolygons(t, r) { - const i = as(t, r); + const i = Vi(t, r); return { type: "fillSketch", ops: this.renderLines(i, r) }; } renderLines(t, r) { @@ -10068,31 +9962,31 @@ class bl { return i; } } -function Ro(e) { +function ko(e) { const t = e[0], r = e[1]; return Math.sqrt(Math.pow(t[0] - r[0], 2) + Math.pow(t[1] - r[1], 2)); } -class r_ extends bl { +class Sw extends tl { fillPolygons(t, r) { let i = r.hachureGap; i < 0 && (i = 4 * r.strokeWidth), i = Math.max(i, 0.1); - const s = as(t, Object.assign({}, r, { hachureGap: i })), o = Math.PI / 180 * r.hachureAngle, a = [], n = 0.5 * i * Math.cos(o), l = 0.5 * i * Math.sin(o); - for (const [c, h] of s) Ro([c, h]) && a.push([[c[0] - n, c[1] + l], [...h]], [[c[0] + n, c[1] - l], [...h]]); + const s = Vi(t, Object.assign({}, r, { hachureGap: i })), o = Math.PI / 180 * r.hachureAngle, a = [], n = 0.5 * i * Math.cos(o), l = 0.5 * i * Math.sin(o); + for (const [c, h] of s) ko([c, h]) && a.push([[c[0] - n, c[1] + l], [...h]], [[c[0] + n, c[1] - l], [...h]]); return { type: "fillSketch", ops: this.renderLines(a, r) }; } } -class i_ extends bl { +class _w extends tl { fillPolygons(t, r) { const i = this._fillPolygons(t, r), s = Object.assign({}, r, { hachureAngle: r.hachureAngle + 90 }), o = this._fillPolygons(t, s); return i.ops = i.ops.concat(o.ops), i; } } -class s_ { +class Bw { constructor(t) { this.helper = t; } fillPolygons(t, r) { - const i = as(t, r = Object.assign({}, r, { hachureAngle: 0 })); + const i = Vi(t, r = Object.assign({}, r, { hachureAngle: 0 })); return this.dotsOnLines(i, r); } dotsOnLines(t, r) { @@ -10103,61 +9997,61 @@ class s_ { o < 0 && (o = r.strokeWidth / 2); const a = s / 4; for (const n of t) { - const l = Ro(n), c = l / s, h = Math.ceil(c) - 1, u = l - h * s, p = (n[0][0] + n[1][0]) / 2 - s / 4, d = Math.min(n[0][1], n[1][1]); + const l = ko(n), c = l / s, h = Math.ceil(c) - 1, d = l - h * s, f = (n[0][0] + n[1][0]) / 2 - s / 4, u = Math.min(n[0][1], n[1][1]); for (let g = 0; g < h; g++) { - const m = d + u + g * s, y = p - a + 2 * Math.random() * a, x = m - a + 2 * Math.random() * a, b = this.helper.ellipse(y, x, o, o, r); + const m = u + d + g * s, y = f - a + 2 * Math.random() * a, C = m - a + 2 * Math.random() * a, b = this.helper.ellipse(y, C, o, o, r); i.push(...b.ops); } } return { type: "fillSketch", ops: i }; } } -class o_ { +class vw { constructor(t) { this.helper = t; } fillPolygons(t, r) { - const i = as(t, r); + const i = Vi(t, r); return { type: "fillSketch", ops: this.dashedLine(i, r) }; } dashedLine(t, r) { const i = r.dashOffset < 0 ? r.hachureGap < 0 ? 4 * r.strokeWidth : r.hachureGap : r.dashOffset, s = r.dashGap < 0 ? r.hachureGap < 0 ? 4 * r.strokeWidth : r.hachureGap : r.dashGap, o = []; return t.forEach(((a) => { - const n = Ro(a), l = Math.floor(n / (i + s)), c = (n + s - l * (i + s)) / 2; - let h = a[0], u = a[1]; - h[0] > u[0] && (h = a[1], u = a[0]); - const p = Math.atan((u[1] - h[1]) / (u[0] - h[0])); - for (let d = 0; d < l; d++) { - const g = d * (i + s), m = g + i, y = [h[0] + g * Math.cos(p) + c * Math.cos(p), h[1] + g * Math.sin(p) + c * Math.sin(p)], x = [h[0] + m * Math.cos(p) + c * Math.cos(p), h[1] + m * Math.sin(p) + c * Math.sin(p)]; - o.push(...this.helper.doubleLineOps(y[0], y[1], x[0], x[1], r)); + const n = ko(a), l = Math.floor(n / (i + s)), c = (n + s - l * (i + s)) / 2; + let h = a[0], d = a[1]; + h[0] > d[0] && (h = a[1], d = a[0]); + const f = Math.atan((d[1] - h[1]) / (d[0] - h[0])); + for (let u = 0; u < l; u++) { + const g = u * (i + s), m = g + i, y = [h[0] + g * Math.cos(f) + c * Math.cos(f), h[1] + g * Math.sin(f) + c * Math.sin(f)], C = [h[0] + m * Math.cos(f) + c * Math.cos(f), h[1] + m * Math.sin(f) + c * Math.sin(f)]; + o.push(...this.helper.doubleLineOps(y[0], y[1], C[0], C[1], r)); } })), o; } } -class a_ { +class Lw { constructor(t) { this.helper = t; } fillPolygons(t, r) { - const i = r.hachureGap < 0 ? 4 * r.strokeWidth : r.hachureGap, s = r.zigzagOffset < 0 ? i : r.zigzagOffset, o = as(t, r = Object.assign({}, r, { hachureGap: i + s })); + const i = r.hachureGap < 0 ? 4 * r.strokeWidth : r.hachureGap, s = r.zigzagOffset < 0 ? i : r.zigzagOffset, o = Vi(t, r = Object.assign({}, r, { hachureGap: i + s })); return { type: "fillSketch", ops: this.zigzagLines(o, s, r) }; } zigzagLines(t, r, i) { const s = []; return t.forEach(((o) => { - const a = Ro(o), n = Math.round(a / (2 * r)); + const a = ko(o), n = Math.round(a / (2 * r)); let l = o[0], c = o[1]; l[0] > c[0] && (l = o[1], c = o[0]); const h = Math.atan((c[1] - l[1]) / (c[0] - l[0])); - for (let u = 0; u < n; u++) { - const p = 2 * u * r, d = 2 * (u + 1) * r, g = Math.sqrt(2 * Math.pow(r, 2)), m = [l[0] + p * Math.cos(h), l[1] + p * Math.sin(h)], y = [l[0] + d * Math.cos(h), l[1] + d * Math.sin(h)], x = [m[0] + g * Math.cos(h + Math.PI / 4), m[1] + g * Math.sin(h + Math.PI / 4)]; - s.push(...this.helper.doubleLineOps(m[0], m[1], x[0], x[1], i), ...this.helper.doubleLineOps(x[0], x[1], y[0], y[1], i)); + for (let d = 0; d < n; d++) { + const f = 2 * d * r, u = 2 * (d + 1) * r, g = Math.sqrt(2 * Math.pow(r, 2)), m = [l[0] + f * Math.cos(h), l[1] + f * Math.sin(h)], y = [l[0] + u * Math.cos(h), l[1] + u * Math.sin(h)], C = [m[0] + g * Math.cos(h + Math.PI / 4), m[1] + g * Math.sin(h + Math.PI / 4)]; + s.push(...this.helper.doubleLineOps(m[0], m[1], C[0], C[1], i), ...this.helper.doubleLineOps(C[0], C[1], y[0], y[1], i)); } })), s; } } const Kt = {}; -class n_ { +class Fw { constructor(t) { this.seed = t; } @@ -10165,36 +10059,36 @@ class n_ { return this.seed ? (2 ** 31 - 1 & (this.seed = Math.imul(48271, this.seed))) / 2 ** 31 : Math.random(); } } -const l_ = 0, ga = 1, lc = 2, bs = { A: 7, a: 7, C: 6, c: 6, H: 1, h: 1, L: 2, l: 2, M: 2, m: 2, Q: 4, q: 4, S: 4, s: 4, T: 2, t: 2, V: 1, v: 1, Z: 0, z: 0 }; -function ma(e, t) { +const Aw = 0, Ko = 1, Ih = 2, cs = { A: 7, a: 7, C: 6, c: 6, H: 1, h: 1, L: 2, l: 2, M: 2, m: 2, Q: 4, q: 4, S: 4, s: 4, T: 2, t: 2, V: 1, v: 1, Z: 0, z: 0 }; +function Qo(e, t) { return e.type === t; } -function kl(e) { +function el(e) { const t = [], r = (function(a) { const n = new Array(); for (; a !== ""; ) if (a.match(/^([ \t\r\n,]+)/)) a = a.substr(RegExp.$1.length); - else if (a.match(/^([aAcChHlLmMqQsStTvVzZ])/)) n[n.length] = { type: l_, text: RegExp.$1 }, a = a.substr(RegExp.$1.length); + else if (a.match(/^([aAcChHlLmMqQsStTvVzZ])/)) n[n.length] = { type: Aw, text: RegExp.$1 }, a = a.substr(RegExp.$1.length); else { if (!a.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/)) return []; - n[n.length] = { type: ga, text: `${parseFloat(RegExp.$1)}` }, a = a.substr(RegExp.$1.length); + n[n.length] = { type: Ko, text: `${parseFloat(RegExp.$1)}` }, a = a.substr(RegExp.$1.length); } - return n[n.length] = { type: lc, text: "" }, n; + return n[n.length] = { type: Ih, text: "" }, n; })(e); let i = "BOD", s = 0, o = r[s]; - for (; !ma(o, lc); ) { + for (; !Qo(o, Ih); ) { let a = 0; const n = []; if (i === "BOD") { - if (o.text !== "M" && o.text !== "m") return kl("M0,0" + e); - s++, a = bs[o.text], i = o.text; - } else ma(o, ga) ? a = bs[i] : (s++, a = bs[o.text], i = o.text); + if (o.text !== "M" && o.text !== "m") return el("M0,0" + e); + s++, a = cs[o.text], i = o.text; + } else Qo(o, Ko) ? a = cs[i] : (s++, a = cs[o.text], i = o.text); if (!(s + a < r.length)) throw new Error("Path data ended short"); for (let l = s; l < s + a; l++) { const c = r[l]; - if (!ma(c, ga)) throw new Error("Param not a number: " + i + "," + c.text); + if (!Qo(c, Ko)) throw new Error("Param not a number: " + i + "," + c.text); n[n.length] = +c.text; } - if (typeof bs[i] != "number") throw new Error("Bad segment: " + i); + if (typeof cs[i] != "number") throw new Error("Bad segment: " + i); { const l = { key: i, data: n }; t.push(l), s += a, o = r[s], i === "M" && (i = "L"), i === "m" && (i = "l"); @@ -10202,7 +10096,7 @@ function kl(e) { } return t; } -function zf(e) { +function ep(e) { let t = 0, r = 0, i = 0, s = 0; const o = []; for (const { key: a, data: n } of e) switch (a) { @@ -10272,7 +10166,7 @@ function zf(e) { } return o; } -function Wf(e) { +function rp(e) { const t = []; let r = "", i = 0, s = 0, o = 0, a = 0, n = 0, l = 0; for (const { key: c, data: h } of e) { @@ -10293,28 +10187,28 @@ function Wf(e) { s = h[0], t.push({ key: "L", data: [i, s] }); break; case "S": { - let u = 0, p = 0; - r === "C" || r === "S" ? (u = i + (i - n), p = s + (s - l)) : (u = i, p = s), t.push({ key: "C", data: [u, p, ...h] }), n = h[0], l = h[1], i = h[2], s = h[3]; + let d = 0, f = 0; + r === "C" || r === "S" ? (d = i + (i - n), f = s + (s - l)) : (d = i, f = s), t.push({ key: "C", data: [d, f, ...h] }), n = h[0], l = h[1], i = h[2], s = h[3]; break; } case "T": { - const [u, p] = h; - let d = 0, g = 0; - r === "Q" || r === "T" ? (d = i + (i - n), g = s + (s - l)) : (d = i, g = s); - const m = i + 2 * (d - i) / 3, y = s + 2 * (g - s) / 3, x = u + 2 * (d - u) / 3, b = p + 2 * (g - p) / 3; - t.push({ key: "C", data: [m, y, x, b, u, p] }), n = d, l = g, i = u, s = p; + const [d, f] = h; + let u = 0, g = 0; + r === "Q" || r === "T" ? (u = i + (i - n), g = s + (s - l)) : (u = i, g = s); + const m = i + 2 * (u - i) / 3, y = s + 2 * (g - s) / 3, C = d + 2 * (u - d) / 3, b = f + 2 * (g - f) / 3; + t.push({ key: "C", data: [m, y, C, b, d, f] }), n = u, l = g, i = d, s = f; break; } case "Q": { - const [u, p, d, g] = h, m = i + 2 * (u - i) / 3, y = s + 2 * (p - s) / 3, x = d + 2 * (u - d) / 3, b = g + 2 * (p - g) / 3; - t.push({ key: "C", data: [m, y, x, b, d, g] }), n = u, l = p, i = d, s = g; + const [d, f, u, g] = h, m = i + 2 * (d - i) / 3, y = s + 2 * (f - s) / 3, C = u + 2 * (d - u) / 3, b = g + 2 * (f - g) / 3; + t.push({ key: "C", data: [m, y, C, b, u, g] }), n = d, l = f, i = u, s = g; break; } case "A": { - const u = Math.abs(h[0]), p = Math.abs(h[1]), d = h[2], g = h[3], m = h[4], y = h[5], x = h[6]; - u === 0 || p === 0 ? (t.push({ key: "C", data: [i, s, y, x, y, x] }), i = y, s = x) : (i !== y || s !== x) && (Hf(i, s, y, x, u, p, d, g, m).forEach((function(b) { + const d = Math.abs(h[0]), f = Math.abs(h[1]), u = h[2], g = h[3], m = h[4], y = h[5], C = h[6]; + d === 0 || f === 0 ? (t.push({ key: "C", data: [i, s, y, C, y, C] }), i = y, s = C) : (i !== y || s !== C) && (ip(i, s, y, C, d, f, u, g, m).forEach((function(b) { t.push({ key: "C", data: b }); - })), i = y, s = x); + })), i = y, s = C); break; } case "Z": @@ -10324,74 +10218,74 @@ function Wf(e) { } return t; } -function Ci(e, t, r) { +function di(e, t, r) { return [e * Math.cos(r) - t * Math.sin(r), e * Math.sin(r) + t * Math.cos(r)]; } -function Hf(e, t, r, i, s, o, a, n, l, c) { - const h = (u = a, Math.PI * u / 180); - var u; - let p = [], d = 0, g = 0, m = 0, y = 0; - if (c) [d, g, m, y] = c; +function ip(e, t, r, i, s, o, a, n, l, c) { + const h = (d = a, Math.PI * d / 180); + var d; + let f = [], u = 0, g = 0, m = 0, y = 0; + if (c) [u, g, m, y] = c; else { - [e, t] = Ci(e, t, -h), [r, i] = Ci(r, i, -h); - const z = (e - r) / 2, I = (t - i) / 2; - let F = z * z / (s * s) + I * I / (o * o); + [e, t] = di(e, t, -h), [r, i] = di(r, i, -h); + const W = (e - r) / 2, M = (t - i) / 2; + let F = W * W / (s * s) + M * M / (o * o); F > 1 && (F = Math.sqrt(F), s *= F, o *= F); - const L = s * s, E = o * o, P = L * E - L * I * I - E * z * z, H = L * I * I + E * z * z, Y = (n === l ? -1 : 1) * Math.sqrt(Math.abs(P / H)); - m = Y * s * I / o + (e + r) / 2, y = Y * -o * z / s + (t + i) / 2, d = Math.asin(parseFloat(((t - y) / o).toFixed(9))), g = Math.asin(parseFloat(((i - y) / o).toFixed(9))), e < m && (d = Math.PI - d), r < m && (g = Math.PI - g), d < 0 && (d = 2 * Math.PI + d), g < 0 && (g = 2 * Math.PI + g), l && d > g && (d -= 2 * Math.PI), !l && g > d && (g -= 2 * Math.PI); + const L = s * s, E = o * o, D = L * E - L * M * M - E * W * W, z = L * M * M + E * W * W, Y = (n === l ? -1 : 1) * Math.sqrt(Math.abs(D / z)); + m = Y * s * M / o + (e + r) / 2, y = Y * -o * W / s + (t + i) / 2, u = Math.asin(parseFloat(((t - y) / o).toFixed(9))), g = Math.asin(parseFloat(((i - y) / o).toFixed(9))), e < m && (u = Math.PI - u), r < m && (g = Math.PI - g), u < 0 && (u = 2 * Math.PI + u), g < 0 && (g = 2 * Math.PI + g), l && u > g && (u -= 2 * Math.PI), !l && g > u && (g -= 2 * Math.PI); } - let x = g - d; - if (Math.abs(x) > 120 * Math.PI / 180) { - const z = g, I = r, F = i; - g = l && g > d ? d + 120 * Math.PI / 180 * 1 : d + 120 * Math.PI / 180 * -1, p = Hf(r = m + s * Math.cos(g), i = y + o * Math.sin(g), I, F, s, o, a, 0, l, [g, z, m, y]); + let C = g - u; + if (Math.abs(C) > 120 * Math.PI / 180) { + const W = g, M = r, F = i; + g = l && g > u ? u + 120 * Math.PI / 180 * 1 : u + 120 * Math.PI / 180 * -1, f = ip(r = m + s * Math.cos(g), i = y + o * Math.sin(g), M, F, s, o, a, 0, l, [g, W, m, y]); } - x = g - d; - const b = Math.cos(d), k = Math.sin(d), w = Math.cos(g), S = Math.sin(g), v = Math.tan(x / 4), M = 4 / 3 * s * v, B = 4 / 3 * o * v, N = [e, t], D = [e + M * k, t - B * b], O = [r + M * S, i - B * w], W = [r, i]; - if (D[0] = 2 * N[0] - D[0], D[1] = 2 * N[1] - D[1], c) return [D, O, W].concat(p); + C = g - u; + const b = Math.cos(u), k = Math.sin(u), T = Math.cos(g), S = Math.sin(g), _ = Math.tan(C / 4), A = 4 / 3 * s * _, v = 4 / 3 * o * _, q = [e, t], I = [e + A * k, t - v * b], R = [r + A * S, i - v * T], H = [r, i]; + if (I[0] = 2 * q[0] - I[0], I[1] = 2 * q[1] - I[1], c) return [I, R, H].concat(f); { - p = [D, O, W].concat(p); - const z = []; - for (let I = 0; I < p.length; I += 3) { - const F = Ci(p[I][0], p[I][1], h), L = Ci(p[I + 1][0], p[I + 1][1], h), E = Ci(p[I + 2][0], p[I + 2][1], h); - z.push([F[0], F[1], L[0], L[1], E[0], E[1]]); + f = [I, R, H].concat(f); + const W = []; + for (let M = 0; M < f.length; M += 3) { + const F = di(f[M][0], f[M][1], h), L = di(f[M + 1][0], f[M + 1][1], h), E = di(f[M + 2][0], f[M + 2][1], h); + W.push([F[0], F[1], L[0], L[1], E[0], E[1]]); } - return z; + return W; } } -const h_ = { randOffset: function(e, t) { - return ot(e, t); +const Mw = { randOffset: function(e, t) { + return it(e, t); }, randOffsetWithRange: function(e, t, r) { - return po(e, t, r); + return to(e, t, r); }, ellipse: function(e, t, r, i, s) { - const o = jf(r, i, s); - return cn(e, t, s, o).opset; + const o = op(r, i, s); + return Ga(e, t, s, o).opset; }, doubleLineOps: function(e, t, r, i, s) { - return ir(e, t, r, i, s, !0); + return er(e, t, r, i, s, !0); } }; -function Yf(e, t, r, i, s) { - return { type: "path", ops: ir(e, t, r, i, s) }; +function sp(e, t, r, i, s) { + return { type: "path", ops: er(e, t, r, i, s) }; } -function $s(e, t, r) { +function _s(e, t, r) { const i = (e || []).length; if (i > 2) { const s = []; - for (let o = 0; o < i - 1; o++) s.push(...ir(e[o][0], e[o][1], e[o + 1][0], e[o + 1][1], r)); - return t && s.push(...ir(e[i - 1][0], e[i - 1][1], e[0][0], e[0][1], r)), { type: "path", ops: s }; + for (let o = 0; o < i - 1; o++) s.push(...er(e[o][0], e[o][1], e[o + 1][0], e[o + 1][1], r)); + return t && s.push(...er(e[i - 1][0], e[i - 1][1], e[0][0], e[0][1], r)), { type: "path", ops: s }; } - return i === 2 ? Yf(e[0][0], e[0][1], e[1][0], e[1][1], r) : { type: "path", ops: [] }; + return i === 2 ? sp(e[0][0], e[0][1], e[1][0], e[1][1], r) : { type: "path", ops: [] }; } -function c_(e, t, r, i, s) { +function Ew(e, t, r, i, s) { return (function(o, a) { - return $s(o, !0, a); + return _s(o, !0, a); })([[e, t], [e + r, t], [e + r, t + i], [e, t + i]], s); } -function hc(e, t) { +function Dh(e, t) { if (e.length) { - const r = typeof e[0][0] == "number" ? [e] : e, i = ks(r[0], 1 * (1 + 0.2 * t.roughness), t), s = t.disableMultiStroke ? [] : ks(r[0], 1.5 * (1 + 0.22 * t.roughness), dc(t)); + const r = typeof e[0][0] == "number" ? [e] : e, i = ds(r[0], 1 * (1 + 0.2 * t.roughness), t), s = t.disableMultiStroke ? [] : ds(r[0], 1.5 * (1 + 0.22 * t.roughness), Nh(t)); for (let o = 1; o < r.length; o++) { const a = r[o]; if (a.length) { - const n = ks(a, 1 * (1 + 0.2 * t.roughness), t), l = t.disableMultiStroke ? [] : ks(a, 1.5 * (1 + 0.22 * t.roughness), dc(t)); + const n = ds(a, 1 * (1 + 0.2 * t.roughness), t), l = t.disableMultiStroke ? [] : ds(a, 1.5 * (1 + 0.22 * t.roughness), Nh(t)); for (const c of n) c.op !== "move" && i.push(c); for (const c of l) c.op !== "move" && s.push(c); } @@ -10400,130 +10294,130 @@ function hc(e, t) { } return { type: "path", ops: [] }; } -function jf(e, t, r) { +function op(e, t, r) { const i = Math.sqrt(2 * Math.PI * Math.sqrt((Math.pow(e / 2, 2) + Math.pow(t / 2, 2)) / 2)), s = Math.ceil(Math.max(r.curveStepCount, r.curveStepCount / Math.sqrt(200) * i)), o = 2 * Math.PI / s; let a = Math.abs(e / 2), n = Math.abs(t / 2); const l = 1 - r.curveFitting; - return a += ot(a * l, r), n += ot(n * l, r), { increment: o, rx: a, ry: n }; + return a += it(a * l, r), n += it(n * l, r), { increment: o, rx: a, ry: n }; } -function cn(e, t, r, i) { - const [s, o] = pc(i.increment, e, t, i.rx, i.ry, 1, i.increment * po(0.1, po(0.4, 1, r), r), r); - let a = fo(s, null, r); +function Ga(e, t, r, i) { + const [s, o] = qh(i.increment, e, t, i.rx, i.ry, 1, i.increment * to(0.1, to(0.4, 1, r), r), r); + let a = eo(s, null, r); if (!r.disableMultiStroke && r.roughness !== 0) { - const [n] = pc(i.increment, e, t, i.rx, i.ry, 1.5, 0, r), l = fo(n, null, r); + const [n] = qh(i.increment, e, t, i.rx, i.ry, 1.5, 0, r), l = eo(n, null, r); a = a.concat(l); } return { estimatedPoints: o, opset: { type: "path", ops: a } }; } -function cc(e, t, r, i, s, o, a, n, l) { +function Rh(e, t, r, i, s, o, a, n, l) { const c = e, h = t; - let u = Math.abs(r / 2), p = Math.abs(i / 2); - u += ot(0.01 * u, l), p += ot(0.01 * p, l); - let d = s, g = o; - for (; d < 0; ) d += 2 * Math.PI, g += 2 * Math.PI; - g - d > 2 * Math.PI && (d = 0, g = 2 * Math.PI); - const m = 2 * Math.PI / l.curveStepCount, y = Math.min(m / 2, (g - d) / 2), x = fc(y, c, h, u, p, d, g, 1, l); + let d = Math.abs(r / 2), f = Math.abs(i / 2); + d += it(0.01 * d, l), f += it(0.01 * f, l); + let u = s, g = o; + for (; u < 0; ) u += 2 * Math.PI, g += 2 * Math.PI; + g - u > 2 * Math.PI && (u = 0, g = 2 * Math.PI); + const m = 2 * Math.PI / l.curveStepCount, y = Math.min(m / 2, (g - u) / 2), C = Wh(y, c, h, d, f, u, g, 1, l); if (!l.disableMultiStroke) { - const b = fc(y, c, h, u, p, d, g, 1.5, l); - x.push(...b); + const b = Wh(y, c, h, d, f, u, g, 1.5, l); + C.push(...b); } - return a && (n ? x.push(...ir(c, h, c + u * Math.cos(d), h + p * Math.sin(d), l), ...ir(c, h, c + u * Math.cos(g), h + p * Math.sin(g), l)) : x.push({ op: "lineTo", data: [c, h] }, { op: "lineTo", data: [c + u * Math.cos(d), h + p * Math.sin(d)] })), { type: "path", ops: x }; + return a && (n ? C.push(...er(c, h, c + d * Math.cos(u), h + f * Math.sin(u), l), ...er(c, h, c + d * Math.cos(g), h + f * Math.sin(g), l)) : C.push({ op: "lineTo", data: [c, h] }, { op: "lineTo", data: [c + d * Math.cos(u), h + f * Math.sin(u)] })), { type: "path", ops: C }; } -function uc(e, t) { - const r = Wf(zf(kl(e))), i = []; +function Ph(e, t) { + const r = rp(ep(el(e))), i = []; let s = [0, 0], o = [0, 0]; for (const { key: a, data: n } of r) switch (a) { case "M": o = [n[0], n[1]], s = [n[0], n[1]]; break; case "L": - i.push(...ir(o[0], o[1], n[0], n[1], t)), o = [n[0], n[1]]; + i.push(...er(o[0], o[1], n[0], n[1], t)), o = [n[0], n[1]]; break; case "C": { - const [l, c, h, u, p, d] = n; - i.push(...u_(l, c, h, u, p, d, o, t)), o = [p, d]; + const [l, c, h, d, f, u] = n; + i.push(...$w(l, c, h, d, f, u, o, t)), o = [f, u]; break; } case "Z": - i.push(...ir(o[0], o[1], s[0], s[1], t)), o = [s[0], s[1]]; + i.push(...er(o[0], o[1], s[0], s[1], t)), o = [s[0], s[1]]; } return { type: "path", ops: i }; } -function ya(e, t) { +function Jo(e, t) { const r = []; for (const i of e) if (i.length) { const s = t.maxRandomnessOffset || 0, o = i.length; if (o > 2) { - r.push({ op: "move", data: [i[0][0] + ot(s, t), i[0][1] + ot(s, t)] }); - for (let a = 1; a < o; a++) r.push({ op: "lineTo", data: [i[a][0] + ot(s, t), i[a][1] + ot(s, t)] }); + r.push({ op: "move", data: [i[0][0] + it(s, t), i[0][1] + it(s, t)] }); + for (let a = 1; a < o; a++) r.push({ op: "lineTo", data: [i[a][0] + it(s, t), i[a][1] + it(s, t)] }); } } return { type: "fillPath", ops: r }; } -function Pr(e, t) { +function Or(e, t) { return (function(r, i) { let s = r.fillStyle || "hachure"; if (!Kt[s]) switch (s) { case "zigzag": - Kt[s] || (Kt[s] = new r_(i)); + Kt[s] || (Kt[s] = new Sw(i)); break; case "cross-hatch": - Kt[s] || (Kt[s] = new i_(i)); + Kt[s] || (Kt[s] = new _w(i)); break; case "dots": - Kt[s] || (Kt[s] = new s_(i)); + Kt[s] || (Kt[s] = new Bw(i)); break; case "dashed": - Kt[s] || (Kt[s] = new o_(i)); + Kt[s] || (Kt[s] = new vw(i)); break; case "zigzag-line": - Kt[s] || (Kt[s] = new a_(i)); + Kt[s] || (Kt[s] = new Lw(i)); break; default: - s = "hachure", Kt[s] || (Kt[s] = new bl(i)); + s = "hachure", Kt[s] || (Kt[s] = new tl(i)); } return Kt[s]; - })(t, h_).fillPolygons(e, t); + })(t, Mw).fillPolygons(e, t); } -function dc(e) { +function Nh(e) { const t = Object.assign({}, e); return t.randomizer = void 0, e.seed && (t.seed = e.seed + 1), t; } -function Uf(e) { - return e.randomizer || (e.randomizer = new n_(e.seed || 0)), e.randomizer.next(); +function ap(e) { + return e.randomizer || (e.randomizer = new Fw(e.seed || 0)), e.randomizer.next(); } -function po(e, t, r, i = 1) { - return r.roughness * i * (Uf(r) * (t - e) + e); +function to(e, t, r, i = 1) { + return r.roughness * i * (ap(r) * (t - e) + e); } -function ot(e, t, r = 1) { - return po(-e, e, t, r); +function it(e, t, r = 1) { + return to(-e, e, t, r); } -function ir(e, t, r, i, s, o = !1) { - const a = o ? s.disableMultiStrokeFill : s.disableMultiStroke, n = un(e, t, r, i, s, !0, !1); +function er(e, t, r, i, s, o = !1) { + const a = o ? s.disableMultiStrokeFill : s.disableMultiStroke, n = ja(e, t, r, i, s, !0, !1); if (a) return n; - const l = un(e, t, r, i, s, !0, !0); + const l = ja(e, t, r, i, s, !0, !0); return n.concat(l); } -function un(e, t, r, i, s, o, a) { +function ja(e, t, r, i, s, o, a) { const n = Math.pow(e - r, 2) + Math.pow(t - i, 2), l = Math.sqrt(n); let c = 1; c = l < 200 ? 1 : l > 500 ? 0.4 : -16668e-7 * l + 1.233334; let h = s.maxRandomnessOffset || 0; h * h * 100 > n && (h = l / 10); - const u = h / 2, p = 0.2 + 0.2 * Uf(s); - let d = s.bowing * s.maxRandomnessOffset * (i - t) / 200, g = s.bowing * s.maxRandomnessOffset * (e - r) / 200; - d = ot(d, s, c), g = ot(g, s, c); - const m = [], y = () => ot(u, s, c), x = () => ot(h, s, c), b = s.preserveVertices; - return a ? m.push({ op: "move", data: [e + (b ? 0 : y()), t + (b ? 0 : y())] }) : m.push({ op: "move", data: [e + (b ? 0 : ot(h, s, c)), t + (b ? 0 : ot(h, s, c))] }), a ? m.push({ op: "bcurveTo", data: [d + e + (r - e) * p + y(), g + t + (i - t) * p + y(), d + e + 2 * (r - e) * p + y(), g + t + 2 * (i - t) * p + y(), r + (b ? 0 : y()), i + (b ? 0 : y())] }) : m.push({ op: "bcurveTo", data: [d + e + (r - e) * p + x(), g + t + (i - t) * p + x(), d + e + 2 * (r - e) * p + x(), g + t + 2 * (i - t) * p + x(), r + (b ? 0 : x()), i + (b ? 0 : x())] }), m; + const d = h / 2, f = 0.2 + 0.2 * ap(s); + let u = s.bowing * s.maxRandomnessOffset * (i - t) / 200, g = s.bowing * s.maxRandomnessOffset * (e - r) / 200; + u = it(u, s, c), g = it(g, s, c); + const m = [], y = () => it(d, s, c), C = () => it(h, s, c), b = s.preserveVertices; + return a ? m.push({ op: "move", data: [e + (b ? 0 : y()), t + (b ? 0 : y())] }) : m.push({ op: "move", data: [e + (b ? 0 : it(h, s, c)), t + (b ? 0 : it(h, s, c))] }), a ? m.push({ op: "bcurveTo", data: [u + e + (r - e) * f + y(), g + t + (i - t) * f + y(), u + e + 2 * (r - e) * f + y(), g + t + 2 * (i - t) * f + y(), r + (b ? 0 : y()), i + (b ? 0 : y())] }) : m.push({ op: "bcurveTo", data: [u + e + (r - e) * f + C(), g + t + (i - t) * f + C(), u + e + 2 * (r - e) * f + C(), g + t + 2 * (i - t) * f + C(), r + (b ? 0 : C()), i + (b ? 0 : C())] }), m; } -function ks(e, t, r) { +function ds(e, t, r) { if (!e.length) return []; const i = []; - i.push([e[0][0] + ot(t, r), e[0][1] + ot(t, r)]), i.push([e[0][0] + ot(t, r), e[0][1] + ot(t, r)]); - for (let s = 1; s < e.length; s++) i.push([e[s][0] + ot(t, r), e[s][1] + ot(t, r)]), s === e.length - 1 && i.push([e[s][0] + ot(t, r), e[s][1] + ot(t, r)]); - return fo(i, null, r); + i.push([e[0][0] + it(t, r), e[0][1] + it(t, r)]), i.push([e[0][0] + it(t, r), e[0][1] + it(t, r)]); + for (let s = 1; s < e.length; s++) i.push([e[s][0] + it(t, r), e[s][1] + it(t, r)]), s === e.length - 1 && i.push([e[s][0] + it(t, r), e[s][1] + it(t, r)]); + return eo(i, null, r); } -function fo(e, t, r) { +function eo(e, t, r) { const i = e.length, s = []; if (i > 3) { const o = [], a = 1 - r.curveTightness; @@ -10532,57 +10426,57 @@ function fo(e, t, r) { const l = e[n]; o[0] = [l[0], l[1]], o[1] = [l[0] + (a * e[n + 1][0] - a * e[n - 1][0]) / 6, l[1] + (a * e[n + 1][1] - a * e[n - 1][1]) / 6], o[2] = [e[n + 1][0] + (a * e[n][0] - a * e[n + 2][0]) / 6, e[n + 1][1] + (a * e[n][1] - a * e[n + 2][1]) / 6], o[3] = [e[n + 1][0], e[n + 1][1]], s.push({ op: "bcurveTo", data: [o[1][0], o[1][1], o[2][0], o[2][1], o[3][0], o[3][1]] }); } - } else i === 3 ? (s.push({ op: "move", data: [e[1][0], e[1][1]] }), s.push({ op: "bcurveTo", data: [e[1][0], e[1][1], e[2][0], e[2][1], e[2][0], e[2][1]] })) : i === 2 && s.push(...un(e[0][0], e[0][1], e[1][0], e[1][1], r, !0, !0)); + } else i === 3 ? (s.push({ op: "move", data: [e[1][0], e[1][1]] }), s.push({ op: "bcurveTo", data: [e[1][0], e[1][1], e[2][0], e[2][1], e[2][0], e[2][1]] })) : i === 2 && s.push(...ja(e[0][0], e[0][1], e[1][0], e[1][1], r, !0, !0)); return s; } -function pc(e, t, r, i, s, o, a, n) { +function qh(e, t, r, i, s, o, a, n) { const l = [], c = []; if (n.roughness === 0) { e /= 4, c.push([t + i * Math.cos(-e), r + s * Math.sin(-e)]); for (let h = 0; h <= 2 * Math.PI; h += e) { - const u = [t + i * Math.cos(h), r + s * Math.sin(h)]; - l.push(u), c.push(u); + const d = [t + i * Math.cos(h), r + s * Math.sin(h)]; + l.push(d), c.push(d); } c.push([t + i * Math.cos(0), r + s * Math.sin(0)]), c.push([t + i * Math.cos(e), r + s * Math.sin(e)]); } else { - const h = ot(0.5, n) - Math.PI / 2; - c.push([ot(o, n) + t + 0.9 * i * Math.cos(h - e), ot(o, n) + r + 0.9 * s * Math.sin(h - e)]); - const u = 2 * Math.PI + h - 0.01; - for (let p = h; p < u; p += e) { - const d = [ot(o, n) + t + i * Math.cos(p), ot(o, n) + r + s * Math.sin(p)]; - l.push(d), c.push(d); + const h = it(0.5, n) - Math.PI / 2; + c.push([it(o, n) + t + 0.9 * i * Math.cos(h - e), it(o, n) + r + 0.9 * s * Math.sin(h - e)]); + const d = 2 * Math.PI + h - 0.01; + for (let f = h; f < d; f += e) { + const u = [it(o, n) + t + i * Math.cos(f), it(o, n) + r + s * Math.sin(f)]; + l.push(u), c.push(u); } - c.push([ot(o, n) + t + i * Math.cos(h + 2 * Math.PI + 0.5 * a), ot(o, n) + r + s * Math.sin(h + 2 * Math.PI + 0.5 * a)]), c.push([ot(o, n) + t + 0.98 * i * Math.cos(h + a), ot(o, n) + r + 0.98 * s * Math.sin(h + a)]), c.push([ot(o, n) + t + 0.9 * i * Math.cos(h + 0.5 * a), ot(o, n) + r + 0.9 * s * Math.sin(h + 0.5 * a)]); + c.push([it(o, n) + t + i * Math.cos(h + 2 * Math.PI + 0.5 * a), it(o, n) + r + s * Math.sin(h + 2 * Math.PI + 0.5 * a)]), c.push([it(o, n) + t + 0.98 * i * Math.cos(h + a), it(o, n) + r + 0.98 * s * Math.sin(h + a)]), c.push([it(o, n) + t + 0.9 * i * Math.cos(h + 0.5 * a), it(o, n) + r + 0.9 * s * Math.sin(h + 0.5 * a)]); } return [c, l]; } -function fc(e, t, r, i, s, o, a, n, l) { - const c = o + ot(0.1, l), h = []; - h.push([ot(n, l) + t + 0.9 * i * Math.cos(c - e), ot(n, l) + r + 0.9 * s * Math.sin(c - e)]); - for (let u = c; u <= a; u += e) h.push([ot(n, l) + t + i * Math.cos(u), ot(n, l) + r + s * Math.sin(u)]); - return h.push([t + i * Math.cos(a), r + s * Math.sin(a)]), h.push([t + i * Math.cos(a), r + s * Math.sin(a)]), fo(h, null, l); +function Wh(e, t, r, i, s, o, a, n, l) { + const c = o + it(0.1, l), h = []; + h.push([it(n, l) + t + 0.9 * i * Math.cos(c - e), it(n, l) + r + 0.9 * s * Math.sin(c - e)]); + for (let d = c; d <= a; d += e) h.push([it(n, l) + t + i * Math.cos(d), it(n, l) + r + s * Math.sin(d)]); + return h.push([t + i * Math.cos(a), r + s * Math.sin(a)]), h.push([t + i * Math.cos(a), r + s * Math.sin(a)]), eo(h, null, l); } -function u_(e, t, r, i, s, o, a, n) { +function $w(e, t, r, i, s, o, a, n) { const l = [], c = [n.maxRandomnessOffset || 1, (n.maxRandomnessOffset || 1) + 0.3]; let h = [0, 0]; - const u = n.disableMultiStroke ? 1 : 2, p = n.preserveVertices; - for (let d = 0; d < u; d++) d === 0 ? l.push({ op: "move", data: [a[0], a[1]] }) : l.push({ op: "move", data: [a[0] + (p ? 0 : ot(c[0], n)), a[1] + (p ? 0 : ot(c[0], n))] }), h = p ? [s, o] : [s + ot(c[d], n), o + ot(c[d], n)], l.push({ op: "bcurveTo", data: [e + ot(c[d], n), t + ot(c[d], n), r + ot(c[d], n), i + ot(c[d], n), h[0], h[1]] }); + const d = n.disableMultiStroke ? 1 : 2, f = n.preserveVertices; + for (let u = 0; u < d; u++) u === 0 ? l.push({ op: "move", data: [a[0], a[1]] }) : l.push({ op: "move", data: [a[0] + (f ? 0 : it(c[0], n)), a[1] + (f ? 0 : it(c[0], n))] }), h = f ? [s, o] : [s + it(c[u], n), o + it(c[u], n)], l.push({ op: "bcurveTo", data: [e + it(c[u], n), t + it(c[u], n), r + it(c[u], n), i + it(c[u], n), h[0], h[1]] }); return l; } -function xi(e) { +function ui(e) { return [...e]; } -function gc(e, t = 0) { +function zh(e, t = 0) { const r = e.length; if (r < 3) throw new Error("A curve must have at least three points."); const i = []; - if (r === 3) i.push(xi(e[0]), xi(e[1]), xi(e[2]), xi(e[2])); + if (r === 3) i.push(ui(e[0]), ui(e[1]), ui(e[2]), ui(e[2])); else { const s = []; s.push(e[0], e[0]); for (let n = 1; n < e.length; n++) s.push(e[n]), n === e.length - 1 && s.push(e[n]); const o = [], a = 1 - t; - i.push(xi(s[0])); + i.push(ui(s[0])); for (let n = 1; n + 2 < s.length; n++) { const l = s[n]; o[0] = [l[0], l[1]], o[1] = [l[0] + (a * s[n + 1][0] - a * s[n - 1][0]) / 6, l[1] + (a * s[n + 1][1] - a * s[n - 1][1]) / 6], o[2] = [s[n + 1][0] + (a * s[n][0] - a * s[n + 2][0]) / 6, s[n + 1][1] + (a * s[n][1] - a * s[n + 2][1]) / 6], o[3] = [s[n + 1][0], s[n + 1][1]], i.push(o[1], o[2], o[3]); @@ -10590,60 +10484,60 @@ function gc(e, t = 0) { } return i; } -function Os(e, t) { +function Bs(e, t) { return Math.pow(e[0] - t[0], 2) + Math.pow(e[1] - t[1], 2); } -function d_(e, t, r) { - const i = Os(t, r); - if (i === 0) return Os(e, t); +function Ow(e, t, r) { + const i = Bs(t, r); + if (i === 0) return Bs(e, t); let s = ((e[0] - t[0]) * (r[0] - t[0]) + (e[1] - t[1]) * (r[1] - t[1])) / i; - return s = Math.max(0, Math.min(1, s)), Os(e, dr(t, r, s)); + return s = Math.max(0, Math.min(1, s)), Bs(e, cr(t, r, s)); } -function dr(e, t, r) { +function cr(e, t, r) { return [e[0] + (t[0] - e[0]) * r, e[1] + (t[1] - e[1]) * r]; } -function dn(e, t, r, i) { +function Xa(e, t, r, i) { const s = i || []; if ((function(n, l) { - const c = n[l + 0], h = n[l + 1], u = n[l + 2], p = n[l + 3]; - let d = 3 * h[0] - 2 * c[0] - p[0]; - d *= d; - let g = 3 * h[1] - 2 * c[1] - p[1]; + const c = n[l + 0], h = n[l + 1], d = n[l + 2], f = n[l + 3]; + let u = 3 * h[0] - 2 * c[0] - f[0]; + u *= u; + let g = 3 * h[1] - 2 * c[1] - f[1]; g *= g; - let m = 3 * u[0] - 2 * p[0] - c[0]; + let m = 3 * d[0] - 2 * f[0] - c[0]; m *= m; - let y = 3 * u[1] - 2 * p[1] - c[1]; - return y *= y, d < m && (d = m), g < y && (g = y), d + g; + let y = 3 * d[1] - 2 * f[1] - c[1]; + return y *= y, u < m && (u = m), g < y && (g = y), u + g; })(e, t) < r) { const n = e[t + 0]; - s.length ? (o = s[s.length - 1], a = n, Math.sqrt(Os(o, a)) > 1 && s.push(n)) : s.push(n), s.push(e[t + 3]); + s.length ? (o = s[s.length - 1], a = n, Math.sqrt(Bs(o, a)) > 1 && s.push(n)) : s.push(n), s.push(e[t + 3]); } else { - const l = e[t + 0], c = e[t + 1], h = e[t + 2], u = e[t + 3], p = dr(l, c, 0.5), d = dr(c, h, 0.5), g = dr(h, u, 0.5), m = dr(p, d, 0.5), y = dr(d, g, 0.5), x = dr(m, y, 0.5); - dn([l, p, m, x], 0, r, s), dn([x, y, g, u], 0, r, s); + const l = e[t + 0], c = e[t + 1], h = e[t + 2], d = e[t + 3], f = cr(l, c, 0.5), u = cr(c, h, 0.5), g = cr(h, d, 0.5), m = cr(f, u, 0.5), y = cr(u, g, 0.5), C = cr(m, y, 0.5); + Xa([l, f, m, C], 0, r, s), Xa([C, y, g, d], 0, r, s); } var o, a; return s; } -function p_(e, t) { - return go(e, 0, e.length, t); +function Iw(e, t) { + return ro(e, 0, e.length, t); } -function go(e, t, r, i, s) { +function ro(e, t, r, i, s) { const o = s || [], a = e[t], n = e[r - 1]; let l = 0, c = 1; for (let h = t + 1; h < r - 1; ++h) { - const u = d_(e[h], a, n); - u > l && (l = u, c = h); + const d = Ow(e[h], a, n); + d > l && (l = d, c = h); } - return Math.sqrt(l) > i ? (go(e, t, c + 1, i, o), go(e, c, r, i, o)) : (o.length || o.push(a), o.push(n)), o; + return Math.sqrt(l) > i ? (ro(e, t, c + 1, i, o), ro(e, c, r, i, o)) : (o.length || o.push(a), o.push(n)), o; } -function Ca(e, t = 0.15, r) { +function ta(e, t = 0.15, r) { const i = [], s = (e.length - 1) / 3; for (let o = 0; o < s; o++) - dn(e, 3 * o, t, i); - return r && r > 0 ? go(i, 0, i.length, r) : i; + Xa(e, 3 * o, t, i); + return r && r > 0 ? ro(i, 0, i.length, r) : i; } -const se = "none"; -class mo { +const re = "none"; +class io { constructor(t) { this.defaultOptions = { maxRandomnessOffset: 2, roughness: 1, bowing: 1, stroke: "#000", strokeWidth: 1, curveTightness: 0, curveFitting: 0.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: 0.8 }, this.config = t || {}, this.config.options && (this.defaultOptions = this._o(this.config.options)); } @@ -10658,23 +10552,23 @@ class mo { } line(t, r, i, s, o) { const a = this._o(o); - return this._d("line", [Yf(t, r, i, s, a)], a); + return this._d("line", [sp(t, r, i, s, a)], a); } rectangle(t, r, i, s, o) { - const a = this._o(o), n = [], l = c_(t, r, i, s, a); + const a = this._o(o), n = [], l = Ew(t, r, i, s, a); if (a.fill) { const c = [[t, r], [t + i, r], [t + i, r + s], [t, r + s]]; - a.fillStyle === "solid" ? n.push(ya([c], a)) : n.push(Pr([c], a)); + a.fillStyle === "solid" ? n.push(Jo([c], a)) : n.push(Or([c], a)); } - return a.stroke !== se && n.push(l), this._d("rectangle", n, a); + return a.stroke !== re && n.push(l), this._d("rectangle", n, a); } ellipse(t, r, i, s, o) { - const a = this._o(o), n = [], l = jf(i, s, a), c = cn(t, r, a, l); + const a = this._o(o), n = [], l = op(i, s, a), c = Ga(t, r, a, l); if (a.fill) if (a.fillStyle === "solid") { - const h = cn(t, r, a, l).opset; + const h = Ga(t, r, a, l).opset; h.type = "fillPath", n.push(h); - } else n.push(Pr([c.estimatedPoints], a)); - return a.stroke !== se && n.push(c.opset), this._d("ellipse", n, a); + } else n.push(Or([c.estimatedPoints], a)); + return a.stroke !== re && n.push(c.opset), this._d("ellipse", n, a); } circle(t, r, i, s) { const o = this.ellipse(t, r, i, i, s); @@ -10682,91 +10576,91 @@ class mo { } linearPath(t, r) { const i = this._o(r); - return this._d("linearPath", [$s(t, !1, i)], i); + return this._d("linearPath", [_s(t, !1, i)], i); } arc(t, r, i, s, o, a, n = !1, l) { - const c = this._o(l), h = [], u = cc(t, r, i, s, o, a, n, !0, c); + const c = this._o(l), h = [], d = Rh(t, r, i, s, o, a, n, !0, c); if (n && c.fill) if (c.fillStyle === "solid") { - const p = Object.assign({}, c); - p.disableMultiStroke = !0; - const d = cc(t, r, i, s, o, a, !0, !1, p); - d.type = "fillPath", h.push(d); - } else h.push((function(p, d, g, m, y, x, b) { - const k = p, w = d; - let S = Math.abs(g / 2), v = Math.abs(m / 2); - S += ot(0.01 * S, b), v += ot(0.01 * v, b); - let M = y, B = x; - for (; M < 0; ) M += 2 * Math.PI, B += 2 * Math.PI; - B - M > 2 * Math.PI && (M = 0, B = 2 * Math.PI); - const N = (B - M) / b.curveStepCount, D = []; - for (let O = M; O <= B; O += N) D.push([k + S * Math.cos(O), w + v * Math.sin(O)]); - return D.push([k + S * Math.cos(B), w + v * Math.sin(B)]), D.push([k, w]), Pr([D], b); + const f = Object.assign({}, c); + f.disableMultiStroke = !0; + const u = Rh(t, r, i, s, o, a, !0, !1, f); + u.type = "fillPath", h.push(u); + } else h.push((function(f, u, g, m, y, C, b) { + const k = f, T = u; + let S = Math.abs(g / 2), _ = Math.abs(m / 2); + S += it(0.01 * S, b), _ += it(0.01 * _, b); + let A = y, v = C; + for (; A < 0; ) A += 2 * Math.PI, v += 2 * Math.PI; + v - A > 2 * Math.PI && (A = 0, v = 2 * Math.PI); + const q = (v - A) / b.curveStepCount, I = []; + for (let R = A; R <= v; R += q) I.push([k + S * Math.cos(R), T + _ * Math.sin(R)]); + return I.push([k + S * Math.cos(v), T + _ * Math.sin(v)]), I.push([k, T]), Or([I], b); })(t, r, i, s, o, a, c)); - return c.stroke !== se && h.push(u), this._d("arc", h, c); + return c.stroke !== re && h.push(d), this._d("arc", h, c); } curve(t, r) { - const i = this._o(r), s = [], o = hc(t, i); - if (i.fill && i.fill !== se) if (i.fillStyle === "solid") { - const a = hc(t, Object.assign(Object.assign({}, i), { disableMultiStroke: !0, roughness: i.roughness ? i.roughness + i.fillShapeRoughnessGain : 0 })); + const i = this._o(r), s = [], o = Dh(t, i); + if (i.fill && i.fill !== re) if (i.fillStyle === "solid") { + const a = Dh(t, Object.assign(Object.assign({}, i), { disableMultiStroke: !0, roughness: i.roughness ? i.roughness + i.fillShapeRoughnessGain : 0 })); s.push({ type: "fillPath", ops: this._mergedShape(a.ops) }); } else { const a = [], n = t; if (n.length) { const l = typeof n[0][0] == "number" ? [n] : n; - for (const c of l) c.length < 3 ? a.push(...c) : c.length === 3 ? a.push(...Ca(gc([c[0], c[0], c[1], c[2]]), 10, (1 + i.roughness) / 2)) : a.push(...Ca(gc(c), 10, (1 + i.roughness) / 2)); + for (const c of l) c.length < 3 ? a.push(...c) : c.length === 3 ? a.push(...ta(zh([c[0], c[0], c[1], c[2]]), 10, (1 + i.roughness) / 2)) : a.push(...ta(zh(c), 10, (1 + i.roughness) / 2)); } - a.length && s.push(Pr([a], i)); + a.length && s.push(Or([a], i)); } - return i.stroke !== se && s.push(o), this._d("curve", s, i); + return i.stroke !== re && s.push(o), this._d("curve", s, i); } polygon(t, r) { - const i = this._o(r), s = [], o = $s(t, !0, i); - return i.fill && (i.fillStyle === "solid" ? s.push(ya([t], i)) : s.push(Pr([t], i))), i.stroke !== se && s.push(o), this._d("polygon", s, i); + const i = this._o(r), s = [], o = _s(t, !0, i); + return i.fill && (i.fillStyle === "solid" ? s.push(Jo([t], i)) : s.push(Or([t], i))), i.stroke !== re && s.push(o), this._d("polygon", s, i); } path(t, r) { const i = this._o(r), s = []; if (!t) return this._d("path", s, i); t = (t || "").replace(/\n/g, " ").replace(/(-\s)/g, "-").replace("/(ss)/g", " "); - const o = i.fill && i.fill !== "transparent" && i.fill !== se, a = i.stroke !== se, n = !!(i.simplification && i.simplification < 1), l = (function(h, u, p) { - const d = Wf(zf(kl(h))), g = []; - let m = [], y = [0, 0], x = []; + const o = i.fill && i.fill !== "transparent" && i.fill !== re, a = i.stroke !== re, n = !!(i.simplification && i.simplification < 1), l = (function(h, d, f) { + const u = rp(ep(el(h))), g = []; + let m = [], y = [0, 0], C = []; const b = () => { - x.length >= 4 && m.push(...Ca(x, u)), x = []; + C.length >= 4 && m.push(...ta(C, d)), C = []; }, k = () => { b(), m.length && (g.push(m), m = []); }; - for (const { key: S, data: v } of d) switch (S) { + for (const { key: S, data: _ } of u) switch (S) { case "M": - k(), y = [v[0], v[1]], m.push(y); + k(), y = [_[0], _[1]], m.push(y); break; case "L": - b(), m.push([v[0], v[1]]); + b(), m.push([_[0], _[1]]); break; case "C": - if (!x.length) { - const M = m.length ? m[m.length - 1] : y; - x.push([M[0], M[1]]); + if (!C.length) { + const A = m.length ? m[m.length - 1] : y; + C.push([A[0], A[1]]); } - x.push([v[0], v[1]]), x.push([v[2], v[3]]), x.push([v[4], v[5]]); + C.push([_[0], _[1]]), C.push([_[2], _[3]]), C.push([_[4], _[5]]); break; case "Z": b(), m.push([y[0], y[1]]); } - if (k(), !p) return g; - const w = []; + if (k(), !f) return g; + const T = []; for (const S of g) { - const v = p_(S, p); - v.length && w.push(v); + const _ = Iw(S, f); + _.length && T.push(_); } - return w; - })(t, 1, n ? 4 - 4 * (i.simplification || 1) : (1 + i.roughness) / 2), c = uc(t, i); + return T; + })(t, 1, n ? 4 - 4 * (i.simplification || 1) : (1 + i.roughness) / 2), c = Ph(t, i); if (o) if (i.fillStyle === "solid") if (l.length === 1) { - const h = uc(t, Object.assign(Object.assign({}, i), { disableMultiStroke: !0, roughness: i.roughness ? i.roughness + i.fillShapeRoughnessGain : 0 })); + const h = Ph(t, Object.assign(Object.assign({}, i), { disableMultiStroke: !0, roughness: i.roughness ? i.roughness + i.fillShapeRoughnessGain : 0 })); s.push({ type: "fillPath", ops: this._mergedShape(h.ops) }); - } else s.push(ya(l, i)); - else s.push(Pr(l, i)); + } else s.push(Jo(l, i)); + else s.push(Or(l, i)); return a && (n ? l.forEach(((h) => { - s.push($s(h, !1, i)); + s.push(_s(h, !1, i)); })) : s.push(c)), this._d("path", s, i); } opsToPath(t, r) { @@ -10792,10 +10686,10 @@ class mo { let a = null; switch (o.type) { case "path": - a = { d: this.opsToPath(o), stroke: i.stroke, strokeWidth: i.strokeWidth, fill: se }; + a = { d: this.opsToPath(o), stroke: i.stroke, strokeWidth: i.strokeWidth, fill: re }; break; case "fillPath": - a = { d: this.opsToPath(o), stroke: se, strokeWidth: 0, fill: i.fill || se }; + a = { d: this.opsToPath(o), stroke: re, strokeWidth: 0, fill: i.fill || re }; break; case "fillSketch": a = this.fillSketch(o, i); @@ -10806,15 +10700,15 @@ class mo { } fillSketch(t, r) { let i = r.fillWeight; - return i < 0 && (i = r.strokeWidth / 2), { d: this.opsToPath(t), stroke: r.fill || se, strokeWidth: i, fill: se }; + return i < 0 && (i = r.strokeWidth / 2), { d: this.opsToPath(t), stroke: r.fill || re, strokeWidth: i, fill: re }; } _mergedShape(t) { return t.filter(((r, i) => i === 0 || r.op !== "move")); } } -class f_ { +class Dw { constructor(t, r) { - this.canvas = t, this.ctx = this.canvas.getContext("2d"), this.gen = new mo(r); + this.canvas = t, this.ctx = this.canvas.getContext("2d"), this.gen = new io(r); } draw(t) { const r = t.sets || [], i = t.options || this.getDefaultOptions(), s = this.ctx, o = t.options.fixedDecimalPlaceDigits; @@ -10896,21 +10790,21 @@ class f_ { return this.draw(i), i; } } -const Ts = "http://www.w3.org/2000/svg"; -class g_ { +const us = "http://www.w3.org/2000/svg"; +class Rw { constructor(t, r) { - this.svg = t, this.gen = new mo(r); + this.svg = t, this.gen = new io(r); } draw(t) { - const r = t.sets || [], i = t.options || this.getDefaultOptions(), s = this.svg.ownerDocument || window.document, o = s.createElementNS(Ts, "g"), a = t.options.fixedDecimalPlaceDigits; + const r = t.sets || [], i = t.options || this.getDefaultOptions(), s = this.svg.ownerDocument || window.document, o = s.createElementNS(us, "g"), a = t.options.fixedDecimalPlaceDigits; for (const n of r) { let l = null; switch (n.type) { case "path": - l = s.createElementNS(Ts, "path"), l.setAttribute("d", this.opsToPath(n, a)), l.setAttribute("stroke", i.stroke), l.setAttribute("stroke-width", i.strokeWidth + ""), l.setAttribute("fill", "none"), i.strokeLineDash && l.setAttribute("stroke-dasharray", i.strokeLineDash.join(" ").trim()), i.strokeLineDashOffset && l.setAttribute("stroke-dashoffset", `${i.strokeLineDashOffset}`); + l = s.createElementNS(us, "path"), l.setAttribute("d", this.opsToPath(n, a)), l.setAttribute("stroke", i.stroke), l.setAttribute("stroke-width", i.strokeWidth + ""), l.setAttribute("fill", "none"), i.strokeLineDash && l.setAttribute("stroke-dasharray", i.strokeLineDash.join(" ").trim()), i.strokeLineDashOffset && l.setAttribute("stroke-dashoffset", `${i.strokeLineDashOffset}`); break; case "fillPath": - l = s.createElementNS(Ts, "path"), l.setAttribute("d", this.opsToPath(n, a)), l.setAttribute("stroke", "none"), l.setAttribute("stroke-width", "0"), l.setAttribute("fill", i.fill || ""), t.shape !== "curve" && t.shape !== "polygon" || l.setAttribute("fill-rule", "evenodd"); + l = s.createElementNS(us, "path"), l.setAttribute("d", this.opsToPath(n, a)), l.setAttribute("stroke", "none"), l.setAttribute("stroke-width", "0"), l.setAttribute("fill", i.fill || ""), t.shape !== "curve" && t.shape !== "polygon" || l.setAttribute("fill-rule", "evenodd"); break; case "fillSketch": l = this.fillSketch(s, n, i); @@ -10922,7 +10816,7 @@ class g_ { fillSketch(t, r, i) { let s = i.fillWeight; s < 0 && (s = i.strokeWidth / 2); - const o = t.createElementNS(Ts, "path"); + const o = t.createElementNS(us, "path"); return o.setAttribute("d", this.opsToPath(r, i.fixedDecimalPlaceDigits)), o.setAttribute("stroke", i.fill || ""), o.setAttribute("stroke-width", s + ""), o.setAttribute("fill", "none"), i.fillLineDash && o.setAttribute("stroke-dasharray", i.fillLineDash.join(" ").trim()), i.fillLineDashOffset && o.setAttribute("stroke-dashoffset", `${i.fillLineDashOffset}`), o; } get generator() { @@ -10971,16 +10865,16 @@ class g_ { return this.draw(i); } } -var U = { canvas: (e, t) => new f_(e, t), svg: (e, t) => new g_(e, t), generator: (e) => new mo(e), newSeed: () => mo.newSeed() }, st = /* @__PURE__ */ f(async (e, t, r) => { +var j = { canvas: (e, t) => new Dw(e, t), svg: (e, t) => new Rw(e, t), generator: (e) => new io(e), newSeed: () => io.newSeed() }, rt = /* @__PURE__ */ p(async (e, t, r) => { let i; - const s = t.useHtmlLabels || je(gt()?.htmlLabels); + const s = t.useHtmlLabels || ze(gt()?.htmlLabels); r ? i = r : i = "node default"; const o = e.insert("g").attr("class", i).attr("id", t.domId || t.id), a = o.insert("g").attr("class", "label").attr("style", Dt(t.labelStyle)); let n; t.label === void 0 ? n = "" : n = typeof t.label == "string" ? t.label : t.label[0]; - const l = !!t.icon || !!t.img, c = t.labelType === "markdown", h = await Ge( + const l = !!t.icon || !!t.img, c = t.labelType === "markdown", h = await He( a, - xe(Sr(n), gt()), + me(br(n), gt()), { useHtmlLabels: s, width: t.width || gt().flowchart?.wrappingWidth, @@ -10991,15 +10885,15 @@ var U = { canvas: (e, t) => new f_(e, t), svg: (e, t) => new g_(e, t), generator }, gt() ); - let u = h.getBBox(); - const p = (t?.padding ?? 0) / 2; + let d = h.getBBox(); + const f = (t?.padding ?? 0) / 2; if (s) { - const d = h.children[0], g = ct(h); - await df(d, n), u = d.getBoundingClientRect(), g.attr("width", u.width), g.attr("height", u.height); + const u = h.children[0], g = ht(h); + await Bf(u, n), d = u.getBoundingClientRect(), g.attr("width", d.width), g.attr("height", d.height); } - return s ? a.attr("transform", "translate(" + -u.width / 2 + ", " + -u.height / 2 + ")") : a.attr("transform", "translate(0, " + -u.height / 2 + ")"), t.centerLabel && a.attr("transform", "translate(" + -u.width / 2 + ", " + -u.height / 2 + ")"), a.insert("rect", ":first-child"), { shapeSvg: o, bbox: u, halfPadding: p, label: a }; -}, "labelHelper"), xa = /* @__PURE__ */ f(async (e, t, r) => { - const i = r.useHtmlLabels ?? Vt(gt()), s = e.insert("g").attr("class", "label").attr("style", r.labelStyle || ""), o = await Ge(s, xe(Sr(t), gt()), { + return s ? a.attr("transform", "translate(" + -d.width / 2 + ", " + -d.height / 2 + ")") : a.attr("transform", "translate(0, " + -d.height / 2 + ")"), t.centerLabel && a.attr("transform", "translate(" + -d.width / 2 + ", " + -d.height / 2 + ")"), a.insert("rect", ":first-child"), { shapeSvg: o, bbox: d, halfPadding: f, label: a }; +}, "labelHelper"), ea = /* @__PURE__ */ p(async (e, t, r) => { + const i = r.useHtmlLabels ?? Vt(gt()), s = e.insert("g").attr("class", "label").attr("style", r.labelStyle || ""), o = await He(s, me(br(t), gt()), { useHtmlLabels: i, width: r.width || gt()?.flowchart?.wrappingWidth, style: r.labelStyle, @@ -11008,43 +10902,43 @@ var U = { canvas: (e, t) => new f_(e, t), svg: (e, t) => new g_(e, t), generator let a = o.getBBox(); const n = r.padding / 2; if (Vt(gt())) { - const l = o.children[0], c = ct(o); + const l = o.children[0], c = ht(o); a = l.getBoundingClientRect(), c.attr("width", a.width), c.attr("height", a.height); } return i ? s.attr("transform", "translate(" + -a.width / 2 + ", " + -a.height / 2 + ")") : s.attr("transform", "translate(0, " + -a.height / 2 + ")"), r.centerLabel && s.attr("transform", "translate(" + -a.width / 2 + ", " + -a.height / 2 + ")"), s.insert("rect", ":first-child"), { shapeSvg: e, bbox: a, halfPadding: n, label: s }; -}, "insertLabel"), Z = /* @__PURE__ */ f((e, t) => { +}, "insertLabel"), K = /* @__PURE__ */ p((e, t) => { const r = t.node().getBBox(); e.width = r.width, e.height = r.height; -}, "updateNodeBounds"), tt = /* @__PURE__ */ f((e, t) => (e.look === "handDrawn" ? "rough-node" : "node") + " " + e.cssClasses + " " + (t || ""), "getNodeClasses"); -function pt(e) { +}, "updateNodeBounds"), et = /* @__PURE__ */ p((e, t) => (e.look === "handDrawn" ? "rough-node" : "node") + " " + e.cssClasses + " " + (t || ""), "getNodeClasses"); +function ft(e) { const t = e.map((r, i) => `${i === 0 ? "M" : "L"}${r.x},${r.y}`); return t.push("Z"), t.join(" "); } -f(pt, "createPathFromPoints"); -function sr(e, t, r, i, s, o) { - const a = [], l = r - e, c = i - t, h = l / o, u = 2 * Math.PI / h, p = t + c / 2; - for (let d = 0; d <= 50; d++) { - const g = d / 50, m = e + g * l, y = p + s * Math.sin(u * (m - e)); +p(ft, "createPathFromPoints"); +function rr(e, t, r, i, s, o) { + const a = [], l = r - e, c = i - t, h = l / o, d = 2 * Math.PI / h, f = t + c / 2; + for (let u = 0; u <= 50; u++) { + const g = u / 50, m = e + g * l, y = f + s * Math.sin(d * (m - e)); a.push({ x: m, y }); } return a; } -f(sr, "generateFullSineWavePoints"); -function Xi(e, t, r, i, s, o) { +p(rr, "generateFullSineWavePoints"); +function Pi(e, t, r, i, s, o) { const a = [], n = s * Math.PI / 180, h = (o * Math.PI / 180 - n) / (i - 1); - for (let u = 0; u < i; u++) { - const p = n + u * h, d = e + r * Math.cos(p), g = t + r * Math.sin(p); - a.push({ x: -d, y: -g }); + for (let d = 0; d < i; d++) { + const f = n + d * h, u = e + r * Math.cos(f), g = t + r * Math.sin(f); + a.push({ x: -u, y: -g }); } return a; } -f(Xi, "generateCirclePoints"); -function pn(e) { +p(Pi, "generateCirclePoints"); +function Va(e) { const t = Array.from(e.childNodes).filter( (l) => l.tagName === "path" ), r = document.createElementNS("http://www.w3.org/2000/svg", "path"), i = t.map((l) => l.getAttribute("d")).filter((l) => l !== null).join(" "); r.setAttribute("d", i); - const s = t.find((l) => l.getAttribute("fill") !== "none"), o = t.find((l) => l.getAttribute("stroke") !== "none"), a = /* @__PURE__ */ f((l, c) => l?.getAttribute(c) ?? void 0, "getAttr"); + const s = t.find((l) => l.getAttribute("fill") !== "none"), o = t.find((l) => l.getAttribute("stroke") !== "none"), a = /* @__PURE__ */ p((l, c) => l?.getAttribute(c) ?? void 0, "getAttr"); if (s) { const l = { fill: a(s, "fill"), @@ -11067,15 +10961,15 @@ function pn(e) { const n = document.createElementNS("http://www.w3.org/2000/svg", "g"); return n.appendChild(r), n; } -f(pn, "mergePaths"); -var m_ = /* @__PURE__ */ f((e, t) => { +p(Va, "mergePaths"); +var Pw = /* @__PURE__ */ p((e, t) => { var r = e.x, i = e.y, s = t.x - r, o = t.y - i, a = e.width / 2, n = e.height / 2, l, c; return Math.abs(o) * a > Math.abs(s) * n ? (o < 0 && (n = -n), l = o === 0 ? 0 : n * s / o, c = n) : (s < 0 && (a = -a), l = a, c = s === 0 ? 0 : a * o / s), { x: r + l, y: i + c }; -}, "intersectRect"), oi = m_, y_ = /* @__PURE__ */ f(async (e, t, r, i = !1, s = !1) => { +}, "intersectRect"), ti = Pw, Nw = /* @__PURE__ */ p(async (e, t, r, i = !1, s = !1) => { let o = t || ""; typeof o == "object" && (o = o[0]); const a = gt(), n = Vt(a); - return await Ge( + return await He( e, o, { @@ -11088,7 +10982,7 @@ var m_ = /* @__PURE__ */ f((e, t) => { }, a ); -}, "createLabel"), Ke = y_, ar = /* @__PURE__ */ f((e, t, r, i, s) => [ +}, "createLabel"), Ve = Nw, ir = /* @__PURE__ */ p((e, t, r, i, s) => [ "M", e + s, t, @@ -11143,305 +11037,305 @@ var m_ = /* @__PURE__ */ f((e, t) => { // Draw arc to the left top corner "Z" // Close the path -].join(" "), "createRoundedRectPathD"), Gf = /* @__PURE__ */ f(async (e, t) => { - R.info("Creating subgraph rect for ", t.id, t); - const r = gt(), { themeVariables: i, handDrawnSeed: s } = r, { clusterBkg: o, clusterBorder: a } = i, { labelStyles: n, nodeStyles: l, borderStyles: c, backgroundStyles: h } = V(t), u = e.insert("g").attr("class", "cluster " + t.cssClasses).attr("id", t.domId).attr("data-look", t.look), p = Vt(r), d = u.insert("g").attr("class", "cluster-label "); +].join(" "), "createRoundedRectPathD"), np = /* @__PURE__ */ p(async (e, t) => { + P.info("Creating subgraph rect for ", t.id, t); + const r = gt(), { themeVariables: i, handDrawnSeed: s } = r, { clusterBkg: o, clusterBorder: a } = i, { labelStyles: n, nodeStyles: l, borderStyles: c, backgroundStyles: h } = Z(t), d = e.insert("g").attr("class", "cluster " + t.cssClasses).attr("id", t.domId).attr("data-look", t.look), f = Vt(r), u = d.insert("g").attr("class", "cluster-label "); let g; - t.labelType === "markdown" ? g = await Ge(d, t.label, { + t.labelType === "markdown" ? g = await He(u, t.label, { style: t.labelStyle, - useHtmlLabels: p, + useHtmlLabels: f, isNode: !0, width: t.width - }) : g = await Ke(d, t.label, t.labelStyle || "", !1, !0); + }) : g = await Ve(u, t.label, t.labelStyle || "", !1, !0); let m = g.getBBox(); if (Vt(r)) { - const M = g.children[0], B = ct(g); - m = M.getBoundingClientRect(), B.attr("width", m.width), B.attr("height", m.height); + const A = g.children[0], v = ht(g); + m = A.getBoundingClientRect(), v.attr("width", m.width), v.attr("height", m.height); } const y = t.width <= m.width + t.padding ? m.width + t.padding : t.width; t.width <= m.width + t.padding ? t.diff = (y - t.width) / 2 - t.padding : t.diff = -t.padding; - const x = t.height, b = t.x - y / 2, k = t.y - x / 2; - R.trace("Data ", t, JSON.stringify(t)); - let w; + const C = t.height, b = t.x - y / 2, k = t.y - C / 2; + P.trace("Data ", t, JSON.stringify(t)); + let T; if (t.look === "handDrawn") { - const M = U.svg(u), B = X(t, { + const A = j.svg(d), v = V(t, { roughness: 0.7, fill: o, // fill: 'red', stroke: a, fillWeight: 3, seed: s - }), N = M.path(ar(b, k, y, x, 0), B); - w = u.insert(() => (R.debug("Rough node insert CXC", N), N), ":first-child"), w.select("path:nth-child(2)").attr("style", c.join(";")), w.select("path").attr("style", h.join(";").replace("fill", "stroke")); + }), q = A.path(ir(b, k, y, C, 0), v); + T = d.insert(() => (P.debug("Rough node insert CXC", q), q), ":first-child"), T.select("path:nth-child(2)").attr("style", c.join(";")), T.select("path").attr("style", h.join(";").replace("fill", "stroke")); } else - w = u.insert("rect", ":first-child"), w.attr("style", l).attr("rx", t.rx).attr("ry", t.ry).attr("x", b).attr("y", k).attr("width", y).attr("height", x); - const { subGraphTitleTopMargin: S } = hl(r); - if (d.attr( + T = d.insert("rect", ":first-child"), T.attr("style", l).attr("rx", t.rx).attr("ry", t.ry).attr("x", b).attr("y", k).attr("width", y).attr("height", C); + const { subGraphTitleTopMargin: S } = Hn(r); + if (u.attr( "transform", // This puts the label on top of the box instead of inside it `translate(${t.x - m.width / 2}, ${t.y - t.height / 2 + S})` ), n) { - const M = d.select("span"); - M && M.attr("style", n); - } - const v = w.node().getBBox(); - return t.offsetX = 0, t.width = v.width, t.height = v.height, t.offsetY = m.height - t.padding / 2, t.intersect = function(M) { - return oi(t, M); - }, { cluster: u, labelBBox: m }; -}, "rect"), C_ = /* @__PURE__ */ f((e, t) => { + const A = u.select("span"); + A && A.attr("style", n); + } + const _ = T.node().getBBox(); + return t.offsetX = 0, t.width = _.width, t.height = _.height, t.offsetY = m.height - t.padding / 2, t.intersect = function(A) { + return ti(t, A); + }, { cluster: d, labelBBox: m }; +}, "rect"), qw = /* @__PURE__ */ p((e, t) => { const r = e.insert("g").attr("class", "note-cluster").attr("id", t.domId), i = r.insert("rect", ":first-child"), s = 0 * t.padding, o = s / 2; i.attr("rx", t.rx).attr("ry", t.ry).attr("x", t.x - t.width / 2 - o).attr("y", t.y - t.height / 2 - o).attr("width", t.width + s).attr("height", t.height + s).attr("fill", "none"); const a = i.node().getBBox(); return t.width = a.width, t.height = a.height, t.intersect = function(n) { - return oi(t, n); + return ti(t, n); }, { cluster: r, labelBBox: { width: 0, height: 0 } }; -}, "noteGroup"), x_ = /* @__PURE__ */ f(async (e, t) => { - const r = gt(), { themeVariables: i, handDrawnSeed: s } = r, { altBackground: o, compositeBackground: a, compositeTitleBackground: n, nodeBorder: l } = i, c = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-id", t.id).attr("data-look", t.look), h = c.insert("g", ":first-child"), u = c.insert("g").attr("class", "cluster-label"); - let p = c.append("rect"); - const d = await Ke(u, t.label, t.labelStyle, void 0, !0); - let g = d.getBBox(); +}, "noteGroup"), Ww = /* @__PURE__ */ p(async (e, t) => { + const r = gt(), { themeVariables: i, handDrawnSeed: s } = r, { altBackground: o, compositeBackground: a, compositeTitleBackground: n, nodeBorder: l } = i, c = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-id", t.id).attr("data-look", t.look), h = c.insert("g", ":first-child"), d = c.insert("g").attr("class", "cluster-label"); + let f = c.append("rect"); + const u = await Ve(d, t.label, t.labelStyle, void 0, !0); + let g = u.getBBox(); if (Vt(r)) { - const N = d.children[0], D = ct(d); - g = N.getBoundingClientRect(), D.attr("width", g.width), D.attr("height", g.height); - } - const m = 0 * t.padding, y = m / 2, x = (t.width <= g.width + t.padding ? g.width + t.padding : t.width) + m; - t.width <= g.width + t.padding ? t.diff = (x - t.width) / 2 - t.padding : t.diff = -t.padding; - const b = t.height + m, k = t.height + m - g.height - 6, w = t.x - x / 2, S = t.y - b / 2; - t.width = x; - const v = t.y - t.height / 2 - y + g.height + 2; - let M; + const q = u.children[0], I = ht(u); + g = q.getBoundingClientRect(), I.attr("width", g.width), I.attr("height", g.height); + } + const m = 0 * t.padding, y = m / 2, C = (t.width <= g.width + t.padding ? g.width + t.padding : t.width) + m; + t.width <= g.width + t.padding ? t.diff = (C - t.width) / 2 - t.padding : t.diff = -t.padding; + const b = t.height + m, k = t.height + m - g.height - 6, T = t.x - C / 2, S = t.y - b / 2; + t.width = C; + const _ = t.y - t.height / 2 - y + g.height + 2; + let A; if (t.look === "handDrawn") { - const N = t.cssClasses.includes("statediagram-cluster-alt"), D = U.svg(c), O = t.rx || t.ry ? D.path(ar(w, S, x, b, 10), { + const q = t.cssClasses.includes("statediagram-cluster-alt"), I = j.svg(c), R = t.rx || t.ry ? I.path(ir(T, S, C, b, 10), { roughness: 0.7, fill: n, fillStyle: "solid", stroke: l, seed: s - }) : D.rectangle(w, S, x, b, { seed: s }); - M = c.insert(() => O, ":first-child"); - const W = D.rectangle(w, v, x, k, { - fill: N ? o : a, - fillStyle: N ? "hachure" : "solid", + }) : I.rectangle(T, S, C, b, { seed: s }); + A = c.insert(() => R, ":first-child"); + const H = I.rectangle(T, _, C, k, { + fill: q ? o : a, + fillStyle: q ? "hachure" : "solid", stroke: l, seed: s }); - M = c.insert(() => O, ":first-child"), p = c.insert(() => W); + A = c.insert(() => R, ":first-child"), f = c.insert(() => H); } else - M = h.insert("rect", ":first-child"), M.attr("class", "outer").attr("x", w).attr("y", S).attr("width", x).attr("height", b).attr("data-look", t.look), p.attr("class", "inner").attr("x", w).attr("y", v).attr("width", x).attr("height", k); - u.attr( + A = h.insert("rect", ":first-child"), A.attr("class", "outer").attr("x", T).attr("y", S).attr("width", C).attr("height", b).attr("data-look", t.look), f.attr("class", "inner").attr("x", T).attr("y", _).attr("width", C).attr("height", k); + d.attr( "transform", `translate(${t.x - g.width / 2}, ${S + 1 - (Vt(r) ? 0 : 3)})` ); - const B = M.node().getBBox(); - return t.height = B.height, t.offsetX = 0, t.offsetY = g.height - t.padding / 2, t.labelBBox = g, t.intersect = function(N) { - return oi(t, N); + const v = A.node().getBBox(); + return t.height = v.height, t.offsetX = 0, t.offsetY = g.height - t.padding / 2, t.labelBBox = g, t.intersect = function(q) { + return ti(t, q); }, { cluster: c, labelBBox: g }; -}, "roundedWithTitle"), b_ = /* @__PURE__ */ f(async (e, t) => { - R.info("Creating subgraph rect for ", t.id, t); - const r = gt(), { themeVariables: i, handDrawnSeed: s } = r, { clusterBkg: o, clusterBorder: a } = i, { labelStyles: n, nodeStyles: l, borderStyles: c, backgroundStyles: h } = V(t), u = e.insert("g").attr("class", "cluster " + t.cssClasses).attr("id", t.domId).attr("data-look", t.look), p = Vt(r), d = u.insert("g").attr("class", "cluster-label "), g = await Ge(d, t.label, { +}, "roundedWithTitle"), zw = /* @__PURE__ */ p(async (e, t) => { + P.info("Creating subgraph rect for ", t.id, t); + const r = gt(), { themeVariables: i, handDrawnSeed: s } = r, { clusterBkg: o, clusterBorder: a } = i, { labelStyles: n, nodeStyles: l, borderStyles: c, backgroundStyles: h } = Z(t), d = e.insert("g").attr("class", "cluster " + t.cssClasses).attr("id", t.domId).attr("data-look", t.look), f = Vt(r), u = d.insert("g").attr("class", "cluster-label "), g = await He(u, t.label, { style: t.labelStyle, - useHtmlLabels: p, + useHtmlLabels: f, isNode: !0, width: t.width }); let m = g.getBBox(); if (Vt(r)) { - const M = g.children[0], B = ct(g); - m = M.getBoundingClientRect(), B.attr("width", m.width), B.attr("height", m.height); + const A = g.children[0], v = ht(g); + m = A.getBoundingClientRect(), v.attr("width", m.width), v.attr("height", m.height); } const y = t.width <= m.width + t.padding ? m.width + t.padding : t.width; t.width <= m.width + t.padding ? t.diff = (y - t.width) / 2 - t.padding : t.diff = -t.padding; - const x = t.height, b = t.x - y / 2, k = t.y - x / 2; - R.trace("Data ", t, JSON.stringify(t)); - let w; + const C = t.height, b = t.x - y / 2, k = t.y - C / 2; + P.trace("Data ", t, JSON.stringify(t)); + let T; if (t.look === "handDrawn") { - const M = U.svg(u), B = X(t, { + const A = j.svg(d), v = V(t, { roughness: 0.7, fill: o, // fill: 'red', stroke: a, fillWeight: 4, seed: s - }), N = M.path(ar(b, k, y, x, t.rx), B); - w = u.insert(() => (R.debug("Rough node insert CXC", N), N), ":first-child"), w.select("path:nth-child(2)").attr("style", c.join(";")), w.select("path").attr("style", h.join(";").replace("fill", "stroke")); + }), q = A.path(ir(b, k, y, C, t.rx), v); + T = d.insert(() => (P.debug("Rough node insert CXC", q), q), ":first-child"), T.select("path:nth-child(2)").attr("style", c.join(";")), T.select("path").attr("style", h.join(";").replace("fill", "stroke")); } else - w = u.insert("rect", ":first-child"), w.attr("style", l).attr("rx", t.rx).attr("ry", t.ry).attr("x", b).attr("y", k).attr("width", y).attr("height", x); - const { subGraphTitleTopMargin: S } = hl(r); - if (d.attr( + T = d.insert("rect", ":first-child"), T.attr("style", l).attr("rx", t.rx).attr("ry", t.ry).attr("x", b).attr("y", k).attr("width", y).attr("height", C); + const { subGraphTitleTopMargin: S } = Hn(r); + if (u.attr( "transform", // This puts the label on top of the box instead of inside it `translate(${t.x - m.width / 2}, ${t.y - t.height / 2 + S})` ), n) { - const M = d.select("span"); - M && M.attr("style", n); - } - const v = w.node().getBBox(); - return t.offsetX = 0, t.width = v.width, t.height = v.height, t.offsetY = m.height - t.padding / 2, t.intersect = function(M) { - return oi(t, M); - }, { cluster: u, labelBBox: m }; -}, "kanbanSection"), k_ = /* @__PURE__ */ f((e, t) => { + const A = u.select("span"); + A && A.attr("style", n); + } + const _ = T.node().getBBox(); + return t.offsetX = 0, t.width = _.width, t.height = _.height, t.offsetY = m.height - t.padding / 2, t.intersect = function(A) { + return ti(t, A); + }, { cluster: d, labelBBox: m }; +}, "kanbanSection"), Hw = /* @__PURE__ */ p((e, t) => { const r = gt(), { themeVariables: i, handDrawnSeed: s } = r, { nodeBorder: o } = i, a = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-look", t.look), n = a.insert("g", ":first-child"), l = 0 * t.padding, c = t.width + l; t.diff = -t.padding; - const h = t.height + l, u = t.x - c / 2, p = t.y - h / 2; + const h = t.height + l, d = t.x - c / 2, f = t.y - h / 2; t.width = c; - let d; + let u; if (t.look === "handDrawn") { - const y = U.svg(a).rectangle(u, p, c, h, { + const y = j.svg(a).rectangle(d, f, c, h, { fill: "lightgrey", roughness: 0.5, strokeLineDash: [5], stroke: o, seed: s }); - d = a.insert(() => y, ":first-child"); + u = a.insert(() => y, ":first-child"); } else { - d = n.insert("rect", ":first-child"); + u = n.insert("rect", ":first-child"); let m = "outer"; - t.look, m = "divider", d.attr("class", m).attr("x", u).attr("y", p).attr("width", c).attr("height", h).attr("data-look", t.look); + t.look, m = "divider", u.attr("class", m).attr("x", d).attr("y", f).attr("width", c).attr("height", h).attr("data-look", t.look); } - const g = d.node().getBBox(); + const g = u.node().getBBox(); return t.height = g.height, t.offsetX = 0, t.offsetY = 0, t.intersect = function(m) { - return oi(t, m); + return ti(t, m); }, { cluster: a, labelBBox: {} }; -}, "divider"), T_ = Gf, w_ = { - rect: Gf, - squareRect: T_, - roundedWithTitle: x_, - noteGroup: C_, - divider: k_, - kanbanSection: b_ -}, Xf = /* @__PURE__ */ new Map(), S_ = /* @__PURE__ */ f(async (e, t) => { - const r = t.shape || "rect", i = await w_[r](e, t); - return Xf.set(t.id, i), i; -}, "insertCluster"), SA = /* @__PURE__ */ f(() => { - Xf = /* @__PURE__ */ new Map(); +}, "divider"), Yw = np, Uw = { + rect: np, + squareRect: Yw, + roundedWithTitle: Ww, + noteGroup: qw, + divider: Hw, + kanbanSection: zw +}, lp = /* @__PURE__ */ new Map(), Gw = /* @__PURE__ */ p(async (e, t) => { + const r = t.shape || "rect", i = await Uw[r](e, t); + return lp.set(t.id, i), i; +}, "insertCluster"), Pv = /* @__PURE__ */ p(() => { + lp = /* @__PURE__ */ new Map(); }, "clear"); -function Vf(e, t) { +function hp(e, t) { return e.intersect(t); } -f(Vf, "intersectNode"); -var __ = Vf; -function Zf(e, t, r, i) { +p(hp, "intersectNode"); +var jw = hp; +function cp(e, t, r, i) { var s = e.x, o = e.y, a = s - i.x, n = o - i.y, l = Math.sqrt(t * t * n * n + r * r * a * a), c = Math.abs(t * r * a / l); i.x < s && (c = -c); var h = Math.abs(t * r * n / l); return i.y < o && (h = -h), { x: s + c, y: o + h }; } -f(Zf, "intersectEllipse"); -var Kf = Zf; -function Qf(e, t, r) { - return Kf(e, t, t, r); +p(cp, "intersectEllipse"); +var dp = cp; +function up(e, t, r) { + return dp(e, t, t, r); } -f(Qf, "intersectCircle"); -var v_ = Qf; -function Jf(e, t, r, i) { +p(up, "intersectCircle"); +var Xw = up; +function fp(e, t, r, i) { { const s = t.y - e.y, o = e.x - t.x, a = t.x * e.y - e.x * t.y, n = s * r.x + o * r.y + a, l = s * i.x + o * i.y + a, c = 1e-6; - if (n !== 0 && l !== 0 && fn(n, l)) + if (n !== 0 && l !== 0 && Za(n, l)) return; - const h = i.y - r.y, u = r.x - i.x, p = i.x * r.y - r.x * i.y, d = h * e.x + u * e.y + p, g = h * t.x + u * t.y + p; - if (Math.abs(d) < c && Math.abs(g) < c && fn(d, g)) + const h = i.y - r.y, d = r.x - i.x, f = i.x * r.y - r.x * i.y, u = h * e.x + d * e.y + f, g = h * t.x + d * t.y + f; + if (Math.abs(u) < c && Math.abs(g) < c && Za(u, g)) return; - const m = s * u - h * o; + const m = s * d - h * o; if (m === 0) return; const y = Math.abs(m / 2); - let x = o * p - u * a; - const b = x < 0 ? (x - y) / m : (x + y) / m; - x = h * a - s * p; - const k = x < 0 ? (x - y) / m : (x + y) / m; + let C = o * f - d * a; + const b = C < 0 ? (C - y) / m : (C + y) / m; + C = h * a - s * f; + const k = C < 0 ? (C - y) / m : (C + y) / m; return { x: b, y: k }; } } -f(Jf, "intersectLine"); -function fn(e, t) { +p(fp, "intersectLine"); +function Za(e, t) { return e * t > 0; } -f(fn, "sameSign"); -var B_ = Jf; -function tg(e, t, r) { +p(Za, "sameSign"); +var Vw = fp; +function pp(e, t, r) { let i = e.x, s = e.y, o = [], a = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY; typeof t.forEach == "function" ? t.forEach(function(h) { a = Math.min(a, h.x), n = Math.min(n, h.y); }) : (a = Math.min(a, t.x), n = Math.min(n, t.y)); let l = i - e.width / 2 - a, c = s - e.height / 2 - n; for (let h = 0; h < t.length; h++) { - let u = t[h], p = t[h < t.length - 1 ? h + 1 : 0], d = B_( + let d = t[h], f = t[h < t.length - 1 ? h + 1 : 0], u = Vw( e, r, - { x: l + u.x, y: c + u.y }, - { x: l + p.x, y: c + p.y } + { x: l + d.x, y: c + d.y }, + { x: l + f.x, y: c + f.y } ); - d && o.push(d); + u && o.push(u); } - return o.length ? (o.length > 1 && o.sort(function(h, u) { - let p = h.x - r.x, d = h.y - r.y, g = Math.sqrt(p * p + d * d), m = u.x - r.x, y = u.y - r.y, x = Math.sqrt(m * m + y * y); - return g < x ? -1 : g === x ? 0 : 1; + return o.length ? (o.length > 1 && o.sort(function(h, d) { + let f = h.x - r.x, u = h.y - r.y, g = Math.sqrt(f * f + u * u), m = d.x - r.x, y = d.y - r.y, C = Math.sqrt(m * m + y * y); + return g < C ? -1 : g === C ? 0 : 1; }), o[0]) : e; } -f(tg, "intersectPolygon"); -var L_ = tg, j = { - node: __, - circle: v_, - ellipse: Kf, - polygon: L_, - rect: oi +p(pp, "intersectPolygon"); +var Zw = pp, G = { + node: jw, + circle: Xw, + ellipse: dp, + polygon: Zw, + rect: ti }; -function eg(e, t) { - const { labelStyles: r } = V(t); +function gp(e, t) { + const { labelStyles: r } = Z(t); t.labelStyle = r; - const i = tt(t); + const i = et(t); let s = i; i || (s = "anchor"); - const o = e.insert("g").attr("class", s).attr("id", t.domId || t.id), a = 1, { cssStyles: n } = t, l = U.svg(o), c = X(t, { fill: "black", stroke: "none", fillStyle: "solid" }); + const o = e.insert("g").attr("class", s).attr("id", t.domId || t.id), a = 1, { cssStyles: n } = t, l = j.svg(o), c = V(t, { fill: "black", stroke: "none", fillStyle: "solid" }); t.look !== "handDrawn" && (c.roughness = 0); - const h = l.circle(0, 0, a * 2, c), u = o.insert(() => h, ":first-child"); - return u.attr("class", "anchor").attr("style", Dt(n)), Z(t, u), t.intersect = function(p) { - return R.info("Circle intersect", t, a, p), j.circle(t, a, p); + const h = l.circle(0, 0, a * 2, c), d = o.insert(() => h, ":first-child"); + return d.attr("class", "anchor").attr("style", Dt(n)), K(t, d), t.intersect = function(f) { + return P.info("Circle intersect", t, a, f), G.circle(t, a, f); }, o; } -f(eg, "anchor"); -function gn(e, t, r, i, s, o, a) { - const l = (e + r) / 2, c = (t + i) / 2, h = Math.atan2(i - t, r - e), u = (r - e) / 2, p = (i - t) / 2, d = u / s, g = p / o, m = Math.sqrt(d ** 2 + g ** 2); +p(gp, "anchor"); +function Ka(e, t, r, i, s, o, a) { + const l = (e + r) / 2, c = (t + i) / 2, h = Math.atan2(i - t, r - e), d = (r - e) / 2, f = (i - t) / 2, u = d / s, g = f / o, m = Math.sqrt(u ** 2 + g ** 2); if (m > 1) throw new Error("The given radii are too small to create an arc between the points."); - const y = Math.sqrt(1 - m ** 2), x = l + y * o * Math.sin(h) * (a ? -1 : 1), b = c - y * s * Math.cos(h) * (a ? -1 : 1), k = Math.atan2((t - b) / o, (e - x) / s); - let S = Math.atan2((i - b) / o, (r - x) / s) - k; + const y = Math.sqrt(1 - m ** 2), C = l + y * o * Math.sin(h) * (a ? -1 : 1), b = c - y * s * Math.cos(h) * (a ? -1 : 1), k = Math.atan2((t - b) / o, (e - C) / s); + let S = Math.atan2((i - b) / o, (r - C) / s) - k; a && S < 0 && (S += 2 * Math.PI), !a && S > 0 && (S -= 2 * Math.PI); - const v = []; - for (let M = 0; M < 20; M++) { - const B = M / 19, N = k + B * S, D = x + s * Math.cos(N), O = b + o * Math.sin(N); - v.push({ x: D, y: O }); + const _ = []; + for (let A = 0; A < 20; A++) { + const v = A / 19, q = k + v * S, I = C + s * Math.cos(q), R = b + o * Math.sin(q); + _.push({ x: I, y: R }); } - return v; + return _; } -f(gn, "generateArcPoints"); -function rg(e, t, r) { +p(Ka, "generateArcPoints"); +function mp(e, t, r) { const [i, s] = [t, r].sort((o, a) => a - o); return s * (1 - Math.sqrt(1 - (e / i / 2) ** 2)); } -f(rg, "calculateArcSagitta"); -async function ig(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(mp, "calculateArcSagitta"); +async function yp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t.padding ?? 0, o = t.look === "neo" ? 16 : s, a = t.look === "neo" ? 12 : s, n = /* @__PURE__ */ f((N) => N + a, "calcTotalHeight"), l = /* @__PURE__ */ f((N) => { - const D = N / 2; - return [D / (2.5 + N / 50), D]; - }, "calcEllipseRadius"), { shapeSvg: c, bbox: h } = await st(e, t, tt(t)), u = n(t?.height ? t?.height : h.height), [p, d] = l(u), g = rg(u, p, d), y = (t?.width ? t?.width : h.width) + o * 2 + g - g, x = u, { cssStyles: b } = t, k = [ - { x: y / 2, y: -x / 2 }, - { x: -y / 2, y: -x / 2 }, - ...gn(-y / 2, -x / 2, -y / 2, x / 2, p, d, !1), - { x: y / 2, y: x / 2 }, - ...gn(y / 2, x / 2, y / 2, -x / 2, p, d, !0) - ], w = U.svg(c), S = X(t, {}); + const s = t.padding ?? 0, o = t.look === "neo" ? 16 : s, a = t.look === "neo" ? 12 : s, n = /* @__PURE__ */ p((q) => q + a, "calcTotalHeight"), l = /* @__PURE__ */ p((q) => { + const I = q / 2; + return [I / (2.5 + q / 50), I]; + }, "calcEllipseRadius"), { shapeSvg: c, bbox: h } = await rt(e, t, et(t)), d = n(t?.height ? t?.height : h.height), [f, u] = l(d), g = mp(d, f, u), y = (t?.width ? t?.width : h.width) + o * 2 + g - g, C = d, { cssStyles: b } = t, k = [ + { x: y / 2, y: -C / 2 }, + { x: -y / 2, y: -C / 2 }, + ...Ka(-y / 2, -C / 2, -y / 2, C / 2, f, u, !1), + { x: y / 2, y: C / 2 }, + ...Ka(y / 2, C / 2, y / 2, -C / 2, f, u, !0) + ], T = j.svg(c), S = V(t, {}); t.look !== "handDrawn" && (S.roughness = 0, S.fillStyle = "solid"); - const v = pt(k), M = w.path(v, S), B = c.insert(() => M, ":first-child"); - return B.attr("class", "basic label-container outer-path"), b && t.look !== "handDrawn" && B.selectAll("path").attr("style", b), i && t.look !== "handDrawn" && B.selectAll("path").attr("style", i), B.attr("transform", `translate(${p / 2}, 0)`), Z(t, B), t.intersect = function(N) { - return j.polygon(t, k, N); + const _ = ft(k), A = T.path(_, S), v = c.insert(() => A, ":first-child"); + return v.attr("class", "basic label-container outer-path"), b && t.look !== "handDrawn" && v.selectAll("path").attr("style", b), i && t.look !== "handDrawn" && v.selectAll("path").attr("style", i), v.attr("transform", `translate(${f / 2}, 0)`), K(t, v), t.intersect = function(q) { + return G.polygon(t, k, q); }, c; } -f(ig, "bowTieRect"); -function Xe(e, t, r, i) { +p(yp, "bowTieRect"); +function Ye(e, t, r, i) { return e.insert("polygon", ":first-child").attr( "points", i.map(function(s) { @@ -11449,400 +11343,452 @@ function Xe(e, t, r, i) { }).join(" ") ).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + r / 2 + ")"); } -f(Xe, "insertPolygonShape"); -var ws = 12; -async function sg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Ye, "insertPolygonShape"); +var fs = 12; +async function Cp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t.padding ?? 0, o = t.look === "neo" ? 28 : s, a = t.look === "neo" ? 24 : s, { shapeSvg: n, bbox: l } = await st(e, t, tt(t)), c = (t?.width ?? l.width) + (t.look === "neo" ? o * 2 : o + ws), h = (t?.height ?? l.height) + (t.look === "neo" ? a * 2 : a), u = 0, p = c, d = -h, g = 0, m = [ - { x: u + ws, y: d }, - { x: p, y: d }, - { x: p, y: g }, - { x: u, y: g }, - { x: u, y: d + ws }, - { x: u + ws, y: d } + const s = t.padding ?? 0, o = t.look === "neo" ? 28 : s, a = t.look === "neo" ? 24 : s, { shapeSvg: n, bbox: l } = await rt(e, t, et(t)), c = (t?.width ?? l.width) + (t.look === "neo" ? o * 2 : o + fs), h = (t?.height ?? l.height) + (t.look === "neo" ? a * 2 : a), d = 0, f = c, u = -h, g = 0, m = [ + { x: d + fs, y: u }, + { x: f, y: u }, + { x: f, y: g }, + { x: d, y: g }, + { x: d, y: u + fs }, + { x: d + fs, y: u } ]; let y; - const { cssStyles: x } = t; + const { cssStyles: C } = t; if (t.look === "handDrawn") { - const b = U.svg(n), k = X(t, {}), w = pt(m), S = b.path(w, k); - y = n.insert(() => S, ":first-child").attr("transform", `translate(${-c / 2}, ${h / 2})`), x && y.attr("style", x); + const b = j.svg(n), k = V(t, {}), T = ft(m), S = b.path(T, k); + y = n.insert(() => S, ":first-child").attr("transform", `translate(${-c / 2}, ${h / 2})`), C && y.attr("style", C); } else - y = Xe(n, c, h, m); - return i && y.attr("style", i), Z(t, y), t.intersect = function(b) { - return j.polygon(t, m, b); + y = Ye(n, c, h, m); + return i && y.attr("style", i), K(t, y), t.intersect = function(b) { + return G.polygon(t, m, b); }, n; } -f(sg, "card"); -function og(e, t) { - const { nodeStyles: r } = V(t); +p(Cp, "card"); +function xp(e, t) { + const { nodeStyles: r } = Z(t); t.label = ""; - const i = e.insert("g").attr("class", tt(t)).attr("id", t.domId ?? t.id), { cssStyles: s } = t, o = Math.max(28, t.width ?? 0), a = [ + const i = e.insert("g").attr("class", et(t)).attr("id", t.domId ?? t.id), { cssStyles: s } = t, o = Math.max(28, t.width ?? 0), a = [ { x: 0, y: o / 2 }, { x: o / 2, y: 0 }, { x: 0, y: -o / 2 }, { x: -o / 2, y: 0 } - ], n = U.svg(i), l = X(t, {}); + ], n = j.svg(i), l = V(t, {}); t.look !== "handDrawn" && (l.roughness = 0, l.fillStyle = "solid"); - const c = pt(a), h = n.path(c, l), u = i.insert(() => h, ":first-child"); - return s && t.look !== "handDrawn" && u.selectAll("path").attr("style", s), r && t.look !== "handDrawn" && u.selectAll("path").attr("style", r), t.width = 28, t.height = 28, t.intersect = function(p) { - return j.polygon(t, a, p); + const c = ft(a), h = n.path(c, l), d = i.insert(() => h, ":first-child"); + return s && t.look !== "handDrawn" && d.selectAll("path").attr("style", s), r && t.look !== "handDrawn" && d.selectAll("path").attr("style", r), t.width = 28, t.height = 28, t.intersect = function(f) { + return G.polygon(t, a, f); }, i; } -f(og, "choice"); -async function Tl(e, t, r) { - const { labelStyles: i, nodeStyles: s } = V(t); +p(xp, "choice"); +async function rl(e, t, r) { + const { labelStyles: i, nodeStyles: s } = Z(t); t.labelStyle = i; - const { shapeSvg: o, bbox: a, halfPadding: n } = await st(e, t, tt(t)), l = 16, c = r?.padding ?? n, h = t.look === "neo" ? a.width / 2 + l * 2 : a.width / 2 + c; - let u; - const { cssStyles: p } = t; + const { shapeSvg: o, bbox: a, halfPadding: n } = await rt(e, t, et(t)), l = 16, c = r?.padding ?? n, h = t.look === "neo" ? a.width / 2 + l * 2 : a.width / 2 + c; + let d; + const { cssStyles: f } = t; if (t.look === "handDrawn") { - const d = U.svg(o), g = X(t, {}), m = d.circle(0, 0, h * 2, g); - u = o.insert(() => m, ":first-child"), u.attr("class", "basic label-container").attr("style", Dt(p)); + const u = j.svg(o), g = V(t, {}), m = u.circle(0, 0, h * 2, g); + d = o.insert(() => m, ":first-child"), d.attr("class", "basic label-container").attr("style", Dt(f)); } else - u = o.insert("circle", ":first-child").attr("class", "basic label-container").attr("style", s).attr("r", h).attr("cx", 0).attr("cy", 0); - return Z(t, u), t.calcIntersect = function(d, g) { - const m = d.width / 2; - return j.circle(d, m, g); - }, t.intersect = function(d) { - return R.info("Circle intersect", t, h, d), j.circle(t, h, d); + d = o.insert("circle", ":first-child").attr("class", "basic label-container").attr("style", s).attr("r", h).attr("cx", 0).attr("cy", 0); + return K(t, d), t.calcIntersect = function(u, g) { + const m = u.width / 2; + return G.circle(u, m, g); + }, t.intersect = function(u) { + return P.info("Circle intersect", t, h, u), G.circle(t, h, u); }, o; } -f(Tl, "circle"); -function ag(e) { +p(rl, "circle"); +function bp(e) { const t = Math.cos(Math.PI / 4), r = Math.sin(Math.PI / 4), i = e * 2, s = { x: i / 2 * t, y: i / 2 * r }, o = { x: -(i / 2) * t, y: i / 2 * r }, a = { x: -(i / 2) * t, y: -(i / 2) * r }, n = { x: i / 2 * t, y: -(i / 2) * r }; return `M ${o.x},${o.y} L ${n.x},${n.y} M ${s.x},${s.y} L ${a.x},${a.y}`; } -f(ag, "createLine"); -function ng(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(bp, "createLine"); +function kp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r, t.label = ""; - const s = e.insert("g").attr("class", tt(t)).attr("id", t.domId ?? t.id), o = Math.max(30, t?.width ?? 0), { cssStyles: a } = t, n = U.svg(s), l = X(t, {}); + const s = e.insert("g").attr("class", et(t)).attr("id", t.domId ?? t.id), o = Math.max(30, t?.width ?? 0), { cssStyles: a } = t, n = j.svg(s), l = V(t, {}); t.look !== "handDrawn" && (l.roughness = 0, l.fillStyle = "solid"); - const c = n.circle(0, 0, o * 2, l), h = ag(o), u = n.path(h, l), p = s.insert(() => c, ":first-child"); - return p.insert(() => u), p.attr("class", "outer-path"), a && t.look !== "handDrawn" && p.selectAll("path").attr("style", a), i && t.look !== "handDrawn" && p.selectAll("path").attr("style", i), Z(t, p), t.intersect = function(d) { - return R.info("crossedCircle intersect", t, { radius: o, point: d }), j.circle(t, o, d); + const c = n.circle(0, 0, o * 2, l), h = bp(o), d = n.path(h, l), f = s.insert(() => c, ":first-child"); + return f.insert(() => d), f.attr("class", "outer-path"), a && t.look !== "handDrawn" && f.selectAll("path").attr("style", a), i && t.look !== "handDrawn" && f.selectAll("path").attr("style", i), K(t, f), t.intersect = function(u) { + return P.info("crossedCircle intersect", t, { radius: o, point: u }), G.circle(t, o, u); }, s; } -f(ng, "crossedCircle"); -function Re(e, t, r, i = 100, s = 0, o = 180) { +p(kp, "crossedCircle"); +function Ie(e, t, r, i = 100, s = 0, o = 180) { const a = [], n = s * Math.PI / 180, h = (o * Math.PI / 180 - n) / (i - 1); - for (let u = 0; u < i; u++) { - const p = n + u * h, d = e + r * Math.cos(p), g = t + r * Math.sin(p); - a.push({ x: -d, y: -g }); + for (let d = 0; d < i; d++) { + const f = n + d * h, u = e + r * Math.cos(f), g = t + r * Math.sin(f); + a.push({ x: -u, y: -g }); } return a; } -f(Re, "generateCirclePoints"); -async function lg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Ie, "generateCirclePoints"); +async function wp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const { shapeSvg: s, bbox: o, label: a } = await st(e, t, tt(t)), n = t.look === "neo" ? 18 : t.padding ?? 0, l = t.look === "neo" ? 12 : t.padding ?? 0, c = o.width + n, h = o.height + l, u = Math.max(5, h * 0.1), { cssStyles: p } = t, d = [ - ...Re(c / 2, -h / 2, u, 30, -90, 0), - { x: -c / 2 - u, y: u }, - ...Re(c / 2 + u * 2, -u, u, 20, -180, -270), - ...Re(c / 2 + u * 2, u, u, 20, -90, -180), - { x: -c / 2 - u, y: -h / 2 }, - ...Re(c / 2, h / 2, u, 20, 0, 90) + const { shapeSvg: s, bbox: o, label: a } = await rt(e, t, et(t)), n = t.look === "neo" ? 18 : t.padding ?? 0, l = t.look === "neo" ? 12 : t.padding ?? 0, c = o.width + n, h = o.height + l, d = Math.max(5, h * 0.1), { cssStyles: f } = t, u = [ + ...Ie(c / 2, -h / 2, d, 30, -90, 0), + { x: -c / 2 - d, y: d }, + ...Ie(c / 2 + d * 2, -d, d, 20, -180, -270), + ...Ie(c / 2 + d * 2, d, d, 20, -90, -180), + { x: -c / 2 - d, y: -h / 2 }, + ...Ie(c / 2, h / 2, d, 20, 0, 90) ], g = [ - { x: c / 2, y: -h / 2 - u }, - { x: -c / 2, y: -h / 2 - u }, - ...Re(c / 2, -h / 2, u, 20, -90, 0), - { x: -c / 2 - u, y: -u }, - ...Re(c / 2 + c * 0.1, -u, u, 20, -180, -270), - ...Re(c / 2 + c * 0.1, u, u, 20, -90, -180), - { x: -c / 2 - u, y: h / 2 }, - ...Re(c / 2, h / 2, u, 20, 0, 90), - { x: -c / 2, y: h / 2 + u }, - { x: c / 2, y: h / 2 + u } - ], m = U.svg(s), y = X(t, { fill: "none" }); + { x: c / 2, y: -h / 2 - d }, + { x: -c / 2, y: -h / 2 - d }, + ...Ie(c / 2, -h / 2, d, 20, -90, 0), + { x: -c / 2 - d, y: -d }, + ...Ie(c / 2 + c * 0.1, -d, d, 20, -180, -270), + ...Ie(c / 2 + c * 0.1, d, d, 20, -90, -180), + { x: -c / 2 - d, y: h / 2 }, + ...Ie(c / 2, h / 2, d, 20, 0, 90), + { x: -c / 2, y: h / 2 + d }, + { x: c / 2, y: h / 2 + d } + ], m = j.svg(s), y = V(t, { fill: "none" }); t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid"); - const b = pt(d).replace("Z", ""), k = m.path(b, y), w = pt(g), S = m.path(w, { ...y }), v = s.insert("g", ":first-child"); - return v.insert(() => S, ":first-child").attr("stroke-opacity", 0), v.insert(() => k, ":first-child"), v.attr("class", "text"), p && t.look !== "handDrawn" && v.selectAll("path").attr("style", p), i && t.look !== "handDrawn" && v.selectAll("path").attr("style", i), v.attr("transform", `translate(${u}, 0)`), a.attr( + const b = ft(u).replace("Z", ""), k = m.path(b, y), T = ft(g), S = m.path(T, { ...y }), _ = s.insert("g", ":first-child"); + return _.insert(() => S, ":first-child").attr("stroke-opacity", 0), _.insert(() => k, ":first-child"), _.attr("class", "text"), f && t.look !== "handDrawn" && _.selectAll("path").attr("style", f), i && t.look !== "handDrawn" && _.selectAll("path").attr("style", i), _.attr("transform", `translate(${d}, 0)`), a.attr( "transform", - `translate(${-c / 2 + u - (o.x - (o.left ?? 0))},${-h / 2 + (t.padding ?? 0) / 2 - (o.y - (o.top ?? 0))})` - ), Z(t, v), t.intersect = function(M) { - return j.polygon(t, g, M); + `translate(${-c / 2 + d - (o.x - (o.left ?? 0))},${-h / 2 + (t.padding ?? 0) / 2 - (o.y - (o.top ?? 0))})` + ), K(t, _), t.intersect = function(A) { + return G.polygon(t, g, A); }, s; } -f(lg, "curlyBraceLeft"); -function Ne(e, t, r, i = 100, s = 0, o = 180) { +p(wp, "curlyBraceLeft"); +function De(e, t, r, i = 100, s = 0, o = 180) { const a = [], n = s * Math.PI / 180, h = (o * Math.PI / 180 - n) / (i - 1); - for (let u = 0; u < i; u++) { - const p = n + u * h, d = e + r * Math.cos(p), g = t + r * Math.sin(p); - a.push({ x: d, y: g }); + for (let d = 0; d < i; d++) { + const f = n + d * h, u = e + r * Math.cos(f), g = t + r * Math.sin(f); + a.push({ x: u, y: g }); } return a; } -f(Ne, "generateCirclePoints"); -async function hg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(De, "generateCirclePoints"); +async function Tp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const { shapeSvg: s, bbox: o, label: a } = await st(e, t, tt(t)), n = t.look === "neo" ? 18 : t.padding ?? 0, l = t.look === "neo" ? 12 : t.padding ?? 0, c = o.width + (t.look === "neo" ? n * 2 : n), h = o.height + (t.look === "neo" ? l * 2 : l), u = Math.max(5, h * 0.1), { cssStyles: p } = t, d = [ - ...Ne(c / 2, -h / 2, u, 20, -90, 0), - { x: c / 2 + u, y: -u }, - ...Ne(c / 2 + u * 2, -u, u, 20, -180, -270), - ...Ne(c / 2 + u * 2, u, u, 20, -90, -180), - { x: c / 2 + u, y: h / 2 }, - ...Ne(c / 2, h / 2, u, 20, 0, 90) + const { shapeSvg: s, bbox: o, label: a } = await rt(e, t, et(t)), n = t.look === "neo" ? 18 : t.padding ?? 0, l = t.look === "neo" ? 12 : t.padding ?? 0, c = o.width + (t.look === "neo" ? n * 2 : n), h = o.height + (t.look === "neo" ? l * 2 : l), d = Math.max(5, h * 0.1), { cssStyles: f } = t, u = [ + ...De(c / 2, -h / 2, d, 20, -90, 0), + { x: c / 2 + d, y: -d }, + ...De(c / 2 + d * 2, -d, d, 20, -180, -270), + ...De(c / 2 + d * 2, d, d, 20, -90, -180), + { x: c / 2 + d, y: h / 2 }, + ...De(c / 2, h / 2, d, 20, 0, 90) ], g = [ - { x: -c / 2, y: -h / 2 - u }, - { x: c / 2, y: -h / 2 - u }, - ...Ne(c / 2, -h / 2, u, 20, -90, 0), - { x: c / 2 + u, y: -u }, - ...Ne(c / 2 + u * 2, -u, u, 20, -180, -270), - ...Ne(c / 2 + u * 2, u, u, 20, -90, -180), - { x: c / 2 + u, y: h / 2 }, - ...Ne(c / 2, h / 2, u, 20, 0, 90), - { x: c / 2, y: h / 2 + u }, - { x: -c / 2, y: h / 2 + u } - ], m = U.svg(s), y = X(t, { fill: "none" }); + { x: -c / 2, y: -h / 2 - d }, + { x: c / 2, y: -h / 2 - d }, + ...De(c / 2, -h / 2, d, 20, -90, 0), + { x: c / 2 + d, y: -d }, + ...De(c / 2 + d * 2, -d, d, 20, -180, -270), + ...De(c / 2 + d * 2, d, d, 20, -90, -180), + { x: c / 2 + d, y: h / 2 }, + ...De(c / 2, h / 2, d, 20, 0, 90), + { x: c / 2, y: h / 2 + d }, + { x: -c / 2, y: h / 2 + d } + ], m = j.svg(s), y = V(t, { fill: "none" }); t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid"); - const b = pt(d).replace("Z", ""), k = m.path(b, y), w = pt(g), S = m.path(w, { ...y }), v = s.insert("g", ":first-child"); - return v.insert(() => S, ":first-child").attr("stroke-opacity", 0), v.insert(() => k, ":first-child"), v.attr("class", "text"), p && t.look !== "handDrawn" && v.selectAll("path").attr("style", p), i && t.look !== "handDrawn" && v.selectAll("path").attr("style", i), v.attr("transform", `translate(${-u}, 0)`), a.attr( + const b = ft(u).replace("Z", ""), k = m.path(b, y), T = ft(g), S = m.path(T, { ...y }), _ = s.insert("g", ":first-child"); + return _.insert(() => S, ":first-child").attr("stroke-opacity", 0), _.insert(() => k, ":first-child"), _.attr("class", "text"), f && t.look !== "handDrawn" && _.selectAll("path").attr("style", f), i && t.look !== "handDrawn" && _.selectAll("path").attr("style", i), _.attr("transform", `translate(${-d}, 0)`), a.attr( "transform", `translate(${-c / 2 + (t.padding ?? 0) / 2 - (o.x - (o.left ?? 0))},${-h / 2 + (t.padding ?? 0) / 2 - (o.y - (o.top ?? 0))})` - ), Z(t, v), t.intersect = function(M) { - return j.polygon(t, g, M); + ), K(t, _), t.intersect = function(A) { + return G.polygon(t, g, A); }, s; } -f(hg, "curlyBraceRight"); -function Rt(e, t, r, i = 100, s = 0, o = 180) { +p(Tp, "curlyBraceRight"); +function Pt(e, t, r, i = 100, s = 0, o = 180) { const a = [], n = s * Math.PI / 180, h = (o * Math.PI / 180 - n) / (i - 1); - for (let u = 0; u < i; u++) { - const p = n + u * h, d = e + r * Math.cos(p), g = t + r * Math.sin(p); - a.push({ x: -d, y: -g }); + for (let d = 0; d < i; d++) { + const f = n + d * h, u = e + r * Math.cos(f), g = t + r * Math.sin(f); + a.push({ x: -u, y: -g }); } return a; } -f(Rt, "generateCirclePoints"); -async function cg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Pt, "generateCirclePoints"); +async function Sp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const { shapeSvg: s, bbox: o, label: a } = await st(e, t, tt(t)), n = t.look === "neo" ? 18 : t.padding ?? 0, l = t.look === "neo" ? 12 : t.padding ?? 0, c = o.width + (t.look === "neo" ? n * 2 : n), h = o.height + (t.look === "neo" ? l * 2 : l), u = Math.max(5, h * 0.1), { cssStyles: p } = t, d = [ - ...Rt(c / 2, -h / 2, u, 30, -90, 0), - { x: -c / 2 - u, y: u }, - ...Rt(c / 2 + u * 2, -u, u, 20, -180, -270), - ...Rt(c / 2 + u * 2, u, u, 20, -90, -180), - { x: -c / 2 - u, y: -h / 2 }, - ...Rt(c / 2, h / 2, u, 20, 0, 90) + const { shapeSvg: s, bbox: o, label: a } = await rt(e, t, et(t)), n = t.look === "neo" ? 18 : t.padding ?? 0, l = t.look === "neo" ? 12 : t.padding ?? 0, c = o.width + (t.look === "neo" ? n * 2 : n), h = o.height + (t.look === "neo" ? l * 2 : l), d = Math.max(5, h * 0.1), { cssStyles: f } = t, u = [ + ...Pt(c / 2, -h / 2, d, 30, -90, 0), + { x: -c / 2 - d, y: d }, + ...Pt(c / 2 + d * 2, -d, d, 20, -180, -270), + ...Pt(c / 2 + d * 2, d, d, 20, -90, -180), + { x: -c / 2 - d, y: -h / 2 }, + ...Pt(c / 2, h / 2, d, 20, 0, 90) ], g = [ - ...Rt(-c / 2 + u + u / 2, -h / 2, u, 20, -90, -180), - { x: c / 2 - u / 2, y: u }, - ...Rt(-c / 2 - u / 2, -u, u, 20, 0, 90), - ...Rt(-c / 2 - u / 2, u, u, 20, -90, 0), - { x: c / 2 - u / 2, y: -u }, - ...Rt(-c / 2 + u + u / 2, h / 2, u, 30, -180, -270) + ...Pt(-c / 2 + d + d / 2, -h / 2, d, 20, -90, -180), + { x: c / 2 - d / 2, y: d }, + ...Pt(-c / 2 - d / 2, -d, d, 20, 0, 90), + ...Pt(-c / 2 - d / 2, d, d, 20, -90, 0), + { x: c / 2 - d / 2, y: -d }, + ...Pt(-c / 2 + d + d / 2, h / 2, d, 30, -180, -270) ], m = [ - { x: c / 2, y: -h / 2 - u }, - { x: -c / 2, y: -h / 2 - u }, - ...Rt(c / 2, -h / 2, u, 20, -90, 0), - { x: -c / 2 - u, y: -u }, - ...Rt(c / 2 + u * 2, -u, u, 20, -180, -270), - ...Rt(c / 2 + u * 2, u, u, 20, -90, -180), - { x: -c / 2 - u, y: h / 2 }, - ...Rt(c / 2, h / 2, u, 20, 0, 90), - { x: -c / 2, y: h / 2 + u }, - { x: c / 2 - u - u / 2, y: h / 2 + u }, - ...Rt(-c / 2 + u + u / 2, -h / 2, u, 20, -90, -180), - { x: c / 2 - u / 2, y: u }, - ...Rt(-c / 2 - u / 2, -u, u, 20, 0, 90), - ...Rt(-c / 2 - u / 2, u, u, 20, -90, 0), - { x: c / 2 - u / 2, y: -u }, - ...Rt(-c / 2 + u + u / 2, h / 2, u, 30, -180, -270) - ], y = U.svg(s), x = X(t, { fill: "none" }); - t.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid"); - const k = pt(d).replace("Z", ""), w = y.path(k, x), v = pt(g).replace("Z", ""), M = y.path(v, x), B = pt(m), N = y.path(B, { ...x }), D = s.insert("g", ":first-child"); - return D.insert(() => N, ":first-child").attr("stroke-opacity", 0), D.insert(() => w, ":first-child"), D.insert(() => M, ":first-child"), D.attr("class", "text"), p && t.look !== "handDrawn" && D.selectAll("path").attr("style", p), i && t.look !== "handDrawn" && D.selectAll("path").attr("style", i), D.attr("transform", `translate(${u - u / 4}, 0)`), a.attr( + { x: c / 2, y: -h / 2 - d }, + { x: -c / 2, y: -h / 2 - d }, + ...Pt(c / 2, -h / 2, d, 20, -90, 0), + { x: -c / 2 - d, y: -d }, + ...Pt(c / 2 + d * 2, -d, d, 20, -180, -270), + ...Pt(c / 2 + d * 2, d, d, 20, -90, -180), + { x: -c / 2 - d, y: h / 2 }, + ...Pt(c / 2, h / 2, d, 20, 0, 90), + { x: -c / 2, y: h / 2 + d }, + { x: c / 2 - d - d / 2, y: h / 2 + d }, + ...Pt(-c / 2 + d + d / 2, -h / 2, d, 20, -90, -180), + { x: c / 2 - d / 2, y: d }, + ...Pt(-c / 2 - d / 2, -d, d, 20, 0, 90), + ...Pt(-c / 2 - d / 2, d, d, 20, -90, 0), + { x: c / 2 - d / 2, y: -d }, + ...Pt(-c / 2 + d + d / 2, h / 2, d, 30, -180, -270) + ], y = j.svg(s), C = V(t, { fill: "none" }); + t.look !== "handDrawn" && (C.roughness = 0, C.fillStyle = "solid"); + const k = ft(u).replace("Z", ""), T = y.path(k, C), _ = ft(g).replace("Z", ""), A = y.path(_, C), v = ft(m), q = y.path(v, { ...C }), I = s.insert("g", ":first-child"); + return I.insert(() => q, ":first-child").attr("stroke-opacity", 0), I.insert(() => T, ":first-child"), I.insert(() => A, ":first-child"), I.attr("class", "text"), f && t.look !== "handDrawn" && I.selectAll("path").attr("style", f), i && t.look !== "handDrawn" && I.selectAll("path").attr("style", i), I.attr("transform", `translate(${d - d / 4}, 0)`), a.attr( "transform", `translate(${-c / 2 + (t.padding ?? 0) / 2 - (o.x - (o.left ?? 0))},${-h / 2 + (t.padding ?? 0) / 2 - (o.y - (o.top ?? 0))})` - ), Z(t, D), t.intersect = function(O) { - return j.polygon(t, m, O); + ), K(t, I), t.intersect = function(R) { + return G.polygon(t, m, R); }, s; } -f(cg, "curlyBraces"); -async function ug(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Sp, "curlyBraces"); +async function _p(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t.padding ?? 0, o = t.look === "neo" ? 16 : s, a = t.look === "neo" ? 12 : s, n = 20, l = 5, { shapeSvg: c, bbox: h } = await st(e, t, tt(t)), u = Math.max(n, (h.width + o * 2) * 1.25, t?.width ?? 0), p = Math.max(l, h.height + a * 2, t?.height ?? 0), d = p / 2, { cssStyles: g } = t, m = U.svg(c), y = X(t, {}); + const s = t.padding ?? 0, o = t.look === "neo" ? 16 : s, a = t.look === "neo" ? 12 : s, n = 20, l = 5, { shapeSvg: c, bbox: h } = await rt(e, t, et(t)), d = Math.max(n, (h.width + o * 2) * 1.25, t?.width ?? 0), f = Math.max(l, h.height + a * 2, t?.height ?? 0), u = f / 2, { cssStyles: g } = t, m = j.svg(c), y = V(t, {}); t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid"); - const x = u, b = p, k = x - d, w = b / 4, S = [ + const C = d, b = f, k = C - u, T = b / 4, S = [ { x: k, y: 0 }, - { x: w, y: 0 }, + { x: T, y: 0 }, { x: 0, y: b / 2 }, - { x: w, y: b }, + { x: T, y: b }, { x: k, y: b }, - ...Xi(-k, -b / 2, d, 50, 270, 90) - ], v = pt(S), M = m.path(v, y), B = c.insert(() => M, ":first-child"); - return B.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && B.selectChildren("path").attr("style", g), i && t.look !== "handDrawn" && B.selectChildren("path").attr("style", i), B.attr("transform", `translate(${-u / 2}, ${-p / 2})`), Z(t, B), t.intersect = function(N) { - return j.polygon(t, S, N); + ...Pi(-k, -b / 2, u, 50, 270, 90) + ], _ = ft(S), A = m.path(_, y), v = c.insert(() => A, ":first-child"); + return v.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && v.selectChildren("path").attr("style", g), i && t.look !== "handDrawn" && v.selectChildren("path").attr("style", i), v.attr("transform", `translate(${-d / 2}, ${-f / 2})`), K(t, v), t.intersect = function(q) { + return G.polygon(t, S, q); }, c; } -f(ug, "curvedTrapezoid"); -var F_ = /* @__PURE__ */ f((e, t, r, i, s, o) => [ +p(_p, "curvedTrapezoid"); +var Kw = /* @__PURE__ */ p((e, t, r, i, s, o) => [ `M${e},${t + o}`, `a${s},${o} 0,0,0 ${r},0`, `a${s},${o} 0,0,0 ${-r},0`, `l0,${i}`, `a${s},${o} 0,0,0 ${r},0`, `l0,${-i}` -].join(" "), "createCylinderPathD"), A_ = /* @__PURE__ */ f((e, t, r, i, s, o) => [ +].join(" "), "createCylinderPathD"), Qw = /* @__PURE__ */ p((e, t, r, i, s, o) => [ `M${e},${t + o}`, `M${e + r},${t + o}`, `a${s},${o} 0,0,0 ${-r},0`, `l0,${i}`, `a${s},${o} 0,0,0 ${r},0`, `l0,${-i}` -].join(" "), "createOuterCylinderPathD"), M_ = /* @__PURE__ */ f((e, t, r, i, s, o) => [`M${e - r / 2},${-i / 2}`, `a${s},${o} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD"), mc = 8, yc = 8; -async function dg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +].join(" "), "createOuterCylinderPathD"), Jw = /* @__PURE__ */ p((e, t, r, i, s, o) => [`M${e - r / 2},${-i / 2}`, `a${s},${o} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD"), Hh = 8, Yh = 8; +async function Bp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.padding ?? 0, o = t.look === "neo" ? 24 : s, a = t.look === "neo" ? 24 : s; if (t.width || t.height) { const y = t.width ?? 0; - t.width = (t.width ?? 0) - a, t.width < yc && (t.width = yc); + t.width = (t.width ?? 0) - a, t.width < Yh && (t.width = Yh); const b = y / 2 / (2.5 + y / 50); - t.height = (t.height ?? 0) - o - b * 3, t.height < mc && (t.height = mc); + t.height = (t.height ?? 0) - o - b * 3, t.height < Hh && (t.height = Hh); } - const { shapeSvg: n, bbox: l, label: c } = await st(e, t, tt(t)), h = (t.width ? t.width : l.width) + a, u = h / 2, p = u / (2.5 + h / 50), d = (t.height ? t.height : l.height) + o + p; + const { shapeSvg: n, bbox: l, label: c } = await rt(e, t, et(t)), h = (t.width ? t.width : l.width) + a, d = h / 2, f = d / (2.5 + h / 50), u = (t.height ? t.height : l.height) + o + f; let g; const { cssStyles: m } = t; if (t.look === "handDrawn") { - const y = U.svg(n), x = A_(0, 0, h, d, u, p), b = M_(0, p, h, d, u, p), k = X(t, {}), w = y.path(x, k), S = y.path(b, X(t, { fill: "none" })); - g = n.insert(() => S, ":first-child"), g = n.insert(() => w, ":first-child"), g.attr("class", "basic label-container"), m && g.attr("style", m); + const y = j.svg(n), C = Qw(0, 0, h, u, d, f), b = Jw(0, f, h, u, d, f), k = V(t, {}), T = y.path(C, k), S = y.path(b, V(t, { fill: "none" })); + g = n.insert(() => S, ":first-child"), g = n.insert(() => T, ":first-child"), g.attr("class", "basic label-container"), m && g.attr("style", m); } else { - const y = F_(0, 0, h, d, u, p); + const y = Kw(0, 0, h, u, d, f); g = n.insert("path", ":first-child").attr("d", y).attr("class", "basic label-container outer-path").attr("style", Dt(m)).attr("style", i); } - return g.attr("label-offset-y", p), g.attr("transform", `translate(${-h / 2}, ${-(d / 2 + p)})`), Z(t, g), c.attr( + return g.attr("label-offset-y", f), g.attr("transform", `translate(${-h / 2}, ${-(u / 2 + f)})`), K(t, g), c.attr( "transform", `translate(${-(l.width / 2) - (l.x - (l.left ?? 0))}, ${-(l.height / 2) + (t.padding ?? 0) / 1.5 - (l.y - (l.top ?? 0))})` ), t.intersect = function(y) { - const x = j.rect(t, y), b = x.x - (t.x ?? 0); - if (u != 0 && (Math.abs(b) < (t.width ?? 0) / 2 || Math.abs(b) == (t.width ?? 0) / 2 && Math.abs(x.y - (t.y ?? 0)) > (t.height ?? 0) / 2 - p)) { - let k = p * p * (1 - b * b / (u * u)); - k > 0 && (k = Math.sqrt(k)), k = p - k, y.y - (t.y ?? 0) > 0 && (k = -k), x.y += k; + const C = G.rect(t, y), b = C.x - (t.x ?? 0); + if (d != 0 && (Math.abs(b) < (t.width ?? 0) / 2 || Math.abs(b) == (t.width ?? 0) / 2 && Math.abs(C.y - (t.y ?? 0)) > (t.height ?? 0) / 2 - f)) { + let k = f * f * (1 - b * b / (d * d)); + k > 0 && (k = Math.sqrt(k)), k = f - k, y.y - (t.y ?? 0) > 0 && (k = -k), C.y += k; } - return x; + return C; }, n; } -f(dg, "cylinder"); -async function pg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Bp, "cylinder"); +async function ei(e, t, r) { + const { labelStyles: i, nodeStyles: s } = Z(t); + t.labelStyle = i; + const { shapeSvg: o, bbox: a } = await rt(e, t, et(t)), n = Math.max(a.width + r.labelPaddingX * 2, t?.width || 0), l = Math.max(a.height + r.labelPaddingY * 2, t?.height || 0), c = -n / 2, h = -l / 2; + let d, { rx: f, ry: u } = t; + const { cssStyles: g } = t; + if (r?.rx && r.ry && (f = r.rx, u = r.ry), t.look === "handDrawn") { + const m = j.svg(o), y = V(t, {}), C = f || u ? m.path(ir(c, h, n, l, f || 0), y) : m.rectangle(c, h, n, l, y); + d = o.insert(() => C, ":first-child"), d.attr("class", "basic label-container").attr("style", Dt(g)); + } else + d = o.insert("rect", ":first-child"), d.attr("class", "basic label-container").attr("style", s).attr("rx", Dt(f)).attr("ry", Dt(u)).attr("x", c).attr("y", h).attr("width", n).attr("height", l); + return K(t, d), t.calcIntersect = function(m, y) { + return G.rect(m, y); + }, t.intersect = function(m) { + return G.rect(t, m); + }, o; +} +p(ei, "drawRect"); +async function vp(e, t) { + const { cssClasses: r, labelPaddingX: i, labelPaddingY: s, padding: o, width: a, height: n } = t, l = { + rx: 0, + ry: 0, + labelPaddingX: i ?? (o ?? 0) * 2, + labelPaddingY: s ?? o ?? 0 + }, c = await ei(e, t, l); + if (t.look === "handDrawn") { + const u = j.svg(c), g = V(t, {}), m = c.select(".basic.label-container > path:nth-child(2)"), y = m.node(); + if (!y) + return c; + let C = null; + if (y instanceof SVGGraphicsElement) + C = y.getBBox(); + else + return c; + return c.insert( + () => u.line(C.x, C.y, C.x + C.width, C.y, g), + ".basic.label-container g.label" + ), c.insert( + () => u.line( + C.x, + C.y + C.height, + C.x + C.width, + C.y + C.height, + g + ), + ".basic.label-container g.label" + ), m.remove(), c; + } + const h = c.select(".basic.label-container"), d = (Number(h.attr("width")) || a) ?? 0, f = (Number(h.attr("height")) || n) ?? 0; + return d > 0 && f > 0 && h.attr("stroke-dasharray", `${d} ${f}`), c; +} +p(vp, "datastore"); +async function Lp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t.look === "neo" ? 16 : t.padding ?? 0, o = t.look === "neo" ? 16 : t.padding ?? 0, { shapeSvg: a, bbox: n, label: l } = await st(e, t, tt(t)), c = n.width + s, h = n.height + o, u = h * 0.2, p = -c / 2, d = -h / 2 - u / 2, { cssStyles: g } = t, m = U.svg(a), y = X(t, {}); + const s = t.look === "neo" ? 16 : t.padding ?? 0, o = t.look === "neo" ? 16 : t.padding ?? 0, { shapeSvg: a, bbox: n, label: l } = await rt(e, t, et(t)), c = n.width + s, h = n.height + o, d = h * 0.2, f = -c / 2, u = -h / 2 - d / 2, { cssStyles: g } = t, m = j.svg(a), y = V(t, {}); t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid"); - const x = [ - { x: p, y: d + u }, - { x: -p, y: d + u }, - { x: -p, y: -d }, - { x: p, y: -d }, - { x: p, y: d }, - { x: -p, y: d }, - { x: -p, y: d + u } + const C = [ + { x: f, y: u + d }, + { x: -f, y: u + d }, + { x: -f, y: -u }, + { x: f, y: -u }, + { x: f, y: u }, + { x: -f, y: u }, + { x: -f, y: u + d } ], b = m.polygon( - x.map((w) => [w.x, w.y]), + C.map((T) => [T.x, T.y]), y ), k = a.insert(() => b, ":first-child"); return k.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && k.selectAll("path").attr("style", g), i && t.look !== "handDrawn" && k.selectAll("path").attr("style", i), l.attr( "transform", - `translate(${p + (t.padding ?? 0) / 2 - (n.x - (n.left ?? 0))}, ${d + u + (t.padding ?? 0) / 2 - (n.y - (n.top ?? 0))})` - ), Z(t, k), t.intersect = function(w) { - return j.rect(t, w); + `translate(${f + (t.padding ?? 0) / 2 - (n.x - (n.left ?? 0))}, ${u + d + (t.padding ?? 0) / 2 - (n.y - (n.top ?? 0))})` + ), K(t, k), t.intersect = function(T) { + return G.rect(t, T); }, a; } -f(pg, "dividedRectangle"); -async function fg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t), s = t.look === "neo" ? 12 : 5; +p(Lp, "dividedRectangle"); +async function Fp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t), s = t.look === "neo" ? 12 : 5; t.labelStyle = r; - const o = t.padding ?? 0, a = t.look === "neo" ? 16 : o, { shapeSvg: n, bbox: l } = await st(e, t, tt(t)), c = (t?.width ? t?.width / 2 : l.width / 2) + (a ?? 0), h = c - s; - let u; - const { cssStyles: p } = t; + const o = t.padding ?? 0, a = t.look === "neo" ? 16 : o, { shapeSvg: n, bbox: l } = await rt(e, t, et(t)), c = (t?.width ? t?.width / 2 : l.width / 2) + (a ?? 0), h = c - s; + let d; + const { cssStyles: f } = t; if (t.look === "handDrawn") { - const d = U.svg(n), g = X(t, { roughness: 0.2, strokeWidth: 2.5 }), m = X(t, { roughness: 0.2, strokeWidth: 1.5 }), y = d.circle(0, 0, c * 2, g), x = d.circle(0, 0, h * 2, m); - u = n.insert("g", ":first-child"), u.attr("class", Dt(t.cssClasses)).attr("style", Dt(p)), u.node()?.appendChild(y), u.node()?.appendChild(x); + const u = j.svg(n), g = V(t, { roughness: 0.2, strokeWidth: 2.5 }), m = V(t, { roughness: 0.2, strokeWidth: 1.5 }), y = u.circle(0, 0, c * 2, g), C = u.circle(0, 0, h * 2, m); + d = n.insert("g", ":first-child"), d.attr("class", Dt(t.cssClasses)).attr("style", Dt(f)), d.node()?.appendChild(y), d.node()?.appendChild(C); } else { - u = n.insert("g", ":first-child"); - const d = u.insert("circle", ":first-child"), g = u.insert("circle"); - u.attr("class", "basic label-container").attr("style", i), d.attr("class", "outer-circle").attr("style", i).attr("r", c).attr("cx", 0).attr("cy", 0), g.attr("class", "inner-circle").attr("style", i).attr("r", h).attr("cx", 0).attr("cy", 0); + d = n.insert("g", ":first-child"); + const u = d.insert("circle", ":first-child"), g = d.insert("circle"); + d.attr("class", "basic label-container").attr("style", i), u.attr("class", "outer-circle").attr("style", i).attr("r", c).attr("cx", 0).attr("cy", 0), g.attr("class", "inner-circle").attr("style", i).attr("r", h).attr("cx", 0).attr("cy", 0); } - return Z(t, u), t.intersect = function(d) { - return R.info("DoubleCircle intersect", t, c, d), j.circle(t, c, d); + return K(t, d), t.intersect = function(u) { + return P.info("DoubleCircle intersect", t, c, u), G.circle(t, c, u); }, n; } -f(fg, "doublecircle"); -function gg(e, t, { config: { themeVariables: r } }) { - const { labelStyles: i, nodeStyles: s } = V(t); +p(Fp, "doublecircle"); +function Ap(e, t, { config: { themeVariables: r } }) { + const { labelStyles: i, nodeStyles: s } = Z(t); t.label = "", t.labelStyle = i; - const o = e.insert("g").attr("class", tt(t)).attr("id", t.domId ?? t.id), a = 7, { cssStyles: n } = t, l = U.svg(o), { nodeBorder: c } = r, h = X(t, { fillStyle: "solid" }); + const o = e.insert("g").attr("class", et(t)).attr("id", t.domId ?? t.id), a = 7, { cssStyles: n } = t, l = j.svg(o), { nodeBorder: c } = r, h = V(t, { fillStyle: "solid" }); t.look !== "handDrawn" && (h.roughness = 0); - const u = l.circle(0, 0, a * 2, h), p = o.insert(() => u, ":first-child"); - return p.selectAll("path").attr("style", `fill: ${c} !important;`), n && n.length > 0 && t.look !== "handDrawn" && p.selectAll("path").attr("style", n), s && t.look !== "handDrawn" && p.selectAll("path").attr("style", s), Z(t, p), t.intersect = function(d) { - return R.info("filledCircle intersect", t, { radius: a, point: d }), j.circle(t, a, d); + const d = l.circle(0, 0, a * 2, h), f = o.insert(() => d, ":first-child"); + return f.selectAll("path").attr("style", `fill: ${c} !important;`), n && n.length > 0 && t.look !== "handDrawn" && f.selectAll("path").attr("style", n), s && t.look !== "handDrawn" && f.selectAll("path").attr("style", s), K(t, f), t.intersect = function(u) { + return P.info("filledCircle intersect", t, { radius: a, point: u }), G.circle(t, a, u); }, o; } -f(gg, "filledCircle"); -var Cc = 10, xc = 10; -async function mg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Ap, "filledCircle"); +var Uh = 10, Gh = 10; +async function Mp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.padding ?? 0, o = t.look === "neo" ? s * 2 : s; - (t.width || t.height) && (t.height = t?.height ?? 0, t.height < Cc && (t.height = Cc), t.width = (t?.width ?? 0) - o - o / 2, t.width < xc && (t.width = xc)); - const { shapeSvg: a, bbox: n, label: l } = await st(e, t, tt(t)), c = (t?.width ? t?.width : n.width) + (o ?? 0), h = t?.height ? t?.height : c + n.height, u = h, p = [ + (t.width || t.height) && (t.height = t?.height ?? 0, t.height < Uh && (t.height = Uh), t.width = (t?.width ?? 0) - o - o / 2, t.width < Gh && (t.width = Gh)); + const { shapeSvg: a, bbox: n, label: l } = await rt(e, t, et(t)), c = (t?.width ? t?.width : n.width) + (o ?? 0), h = t?.height ? t?.height : c + n.height, d = h, f = [ { x: 0, y: -h }, - { x: u, y: -h }, - { x: u / 2, y: 0 } - ], { cssStyles: d } = t, g = U.svg(a), m = X(t, {}); + { x: d, y: -h }, + { x: d / 2, y: 0 } + ], { cssStyles: u } = t, g = j.svg(a), m = V(t, {}); t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid"); - const y = pt(p), x = g.path(y, m), b = a.insert(() => x, ":first-child").attr("transform", `translate(${-h / 2}, ${h / 2})`).attr("class", "outer-path"); - return d && t.look !== "handDrawn" && b.selectChildren("path").attr("style", d), i && t.look !== "handDrawn" && b.selectChildren("path").attr("style", i), t.width = c, t.height = h, Z(t, b), l.attr( + const y = ft(f), C = g.path(y, m), b = a.insert(() => C, ":first-child").attr("transform", `translate(${-h / 2}, ${h / 2})`).attr("class", "outer-path"); + return u && t.look !== "handDrawn" && b.selectChildren("path").attr("style", u), i && t.look !== "handDrawn" && b.selectChildren("path").attr("style", i), t.width = c, t.height = h, K(t, b), l.attr( "transform", `translate(${-n.width / 2 - (n.x - (n.left ?? 0))}, ${-h / 2 + (t.padding ?? 0) / 2 + (n.y - (n.top ?? 0))})` ), t.intersect = function(k) { - return R.info("Triangle intersect", t, p, k), j.polygon(t, p, k); + return P.info("Triangle intersect", t, f, k), G.polygon(t, f, k); }, a; } -f(mg, "flippedTriangle"); -function yg(e, t, { dir: r, config: { state: i, themeVariables: s } }) { - const { nodeStyles: o } = V(t); +p(Mp, "flippedTriangle"); +function Ep(e, t, { dir: r, config: { state: i, themeVariables: s } }) { + const { nodeStyles: o } = Z(t); t.label = ""; - const a = e.insert("g").attr("class", tt(t)).attr("id", t.domId ?? t.id), { cssStyles: n } = t; + const a = e.insert("g").attr("class", et(t)).attr("id", t.domId ?? t.id), { cssStyles: n } = t; let l = Math.max(70, t?.width ?? 0), c = Math.max(10, t?.height ?? 0); r === "LR" && (l = Math.max(10, t?.width ?? 0), c = Math.max(70, t?.height ?? 0)); - const h = -1 * l / 2, u = -1 * c / 2, p = U.svg(a), d = X(t, { + const h = -1 * l / 2, d = -1 * c / 2, f = j.svg(a), u = V(t, { stroke: s.lineColor, fill: s.lineColor }); - t.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid"); - const g = p.rectangle(h, u, l, c, d), m = a.insert(() => g, ":first-child"); - n && t.look !== "handDrawn" && m.selectAll("path").attr("style", n), o && t.look !== "handDrawn" && m.selectAll("path").attr("style", o), Z(t, m); + t.look !== "handDrawn" && (u.roughness = 0, u.fillStyle = "solid"); + const g = f.rectangle(h, d, l, c, u), m = a.insert(() => g, ":first-child"); + n && t.look !== "handDrawn" && m.selectAll("path").attr("style", n), o && t.look !== "handDrawn" && m.selectAll("path").attr("style", o), K(t, m); const y = i?.padding ?? 0; - return t.width && t.height && (t.width += y / 2 || 0, t.height += y / 2 || 0), t.intersect = function(x) { - return j.rect(t, x); + return t.width && t.height && (t.width += y / 2 || 0, t.height += y / 2 || 0), t.intersect = function(C) { + return G.rect(t, C); }, a; } -f(yg, "forkJoin"); -async function Cg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Ep, "forkJoin"); +async function $p(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = 15, o = 10, a = t.look === "neo" ? 16 : t.padding ?? 0, n = t.look === "neo" ? 12 : t.padding ?? 0; (t.width || t.height) && (t.height = (t?.height ?? 0) - n * 2, t.height < o && (t.height = o), t.width = (t?.width ?? 0) - a * 2, t.width < s && (t.width = s)); - const { shapeSvg: l, bbox: c } = await st(e, t, tt(t)), h = (t?.width ? t?.width : Math.max(s, c.width)) + a * 2, u = (t?.height ? t?.height : Math.max(o, c.height)) + n * 2, p = u / 2, { cssStyles: d } = t, g = U.svg(l), m = X(t, {}); + const { shapeSvg: l, bbox: c } = await rt(e, t, et(t)), h = (t?.width ? t?.width : Math.max(s, c.width)) + a * 2, d = (t?.height ? t?.height : Math.max(o, c.height)) + n * 2, f = d / 2, { cssStyles: u } = t, g = j.svg(l), m = V(t, {}); t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid"); const y = [ - { x: -h / 2, y: -u / 2 }, - { x: h / 2 - p, y: -u / 2 }, - ...Xi(-h / 2 + p, 0, p, 50, 90, 270), - { x: h / 2 - p, y: u / 2 }, - { x: -h / 2, y: u / 2 } - ], x = pt(y), b = g.path(x, m), k = l.insert(() => b, ":first-child"); - return k.attr("class", "basic label-container outer-path"), d && t.look !== "handDrawn" && k.selectChildren("path").attr("style", d), i && t.look !== "handDrawn" && k.selectChildren("path").attr("style", i), Z(t, k), t.intersect = function(w) { - return R.info("Pill intersect", t, { radius: p, point: w }), j.polygon(t, y, w); + { x: -h / 2, y: -d / 2 }, + { x: h / 2 - f, y: -d / 2 }, + ...Pi(-h / 2 + f, 0, f, 50, 90, 270), + { x: h / 2 - f, y: d / 2 }, + { x: -h / 2, y: d / 2 } + ], C = ft(y), b = g.path(C, m), k = l.insert(() => b, ":first-child"); + return k.attr("class", "basic label-container outer-path"), u && t.look !== "handDrawn" && k.selectChildren("path").attr("style", u), i && t.look !== "handDrawn" && k.selectChildren("path").attr("style", i), K(t, k), t.intersect = function(T) { + return P.info("Pill intersect", t, { radius: f, point: T }), G.polygon(t, y, T); }, l; } -f(Cg, "halfRoundedRectangle"); -var E_ = /* @__PURE__ */ f((e, t, r, i, s) => [ +p($p, "halfRoundedRectangle"); +var tT = /* @__PURE__ */ p((e, t, r, i, s) => [ `M${e + s},${t}`, `L${e + r - s},${t}`, `L${e + r},${t - i / 2}`, @@ -11851,284 +11797,284 @@ var E_ = /* @__PURE__ */ f((e, t, r, i, s) => [ `L${e},${t - i / 2}`, "Z" ].join(" "), "createHexagonPathD"); -async function xg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t), s = t.look === "neo" ? 3.5 : 4; +async function Op(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t), s = t.look === "neo" ? 3.5 : 4; t.labelStyle = r; const o = t.padding ?? 0, a = 70, n = 32, l = t.look === "neo" ? a : o, c = t.look === "neo" ? n : o; if (t.width || t.height) { const k = (t.height ?? 0) / s; t.width = (t?.width ?? 0) - 2 * k - c, t.height = (t.height ?? 0) - l; } - const { shapeSvg: h, bbox: u } = await st(e, t, tt(t)), p = (t?.height ? t?.height : u.height) + l, d = p / s, g = (t?.width ? t?.width : u.width) + 2 * d + c, m = [ - { x: d, y: 0 }, - { x: g - d, y: 0 }, - { x: g, y: -p / 2 }, - { x: g - d, y: -p }, - { x: d, y: -p }, - { x: 0, y: -p / 2 } + const { shapeSvg: h, bbox: d } = await rt(e, t, et(t)), f = (t?.height ? t?.height : d.height) + l, u = f / s, g = (t?.width ? t?.width : d.width) + 2 * u + c, m = [ + { x: u, y: 0 }, + { x: g - u, y: 0 }, + { x: g, y: -f / 2 }, + { x: g - u, y: -f }, + { x: u, y: -f }, + { x: 0, y: -f / 2 } ]; let y; - const { cssStyles: x } = t; + const { cssStyles: C } = t; if (t.look === "handDrawn") { - const b = U.svg(h), k = X(t, {}), w = E_(0, 0, g, p, d), S = b.path(w, k); - y = h.insert(() => S, ":first-child").attr("transform", `translate(${-g / 2}, ${p / 2})`), x && y.attr("style", x); + const b = j.svg(h), k = V(t, {}), T = tT(0, 0, g, f, u), S = b.path(T, k); + y = h.insert(() => S, ":first-child").attr("transform", `translate(${-g / 2}, ${f / 2})`), C && y.attr("style", C); } else - y = Xe(h, g, p, m); - return i && y.attr("style", i), t.width = g, t.height = p, Z(t, y), t.intersect = function(b) { - return j.polygon(t, m, b); + y = Ye(h, g, f, m); + return i && y.attr("style", i), t.width = g, t.height = f, K(t, y), t.intersect = function(b) { + return G.polygon(t, m, b); }, h; } -f(xg, "hexagon"); -async function bg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Op, "hexagon"); +async function Ip(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.label = "", t.labelStyle = r; - const { shapeSvg: s } = await st(e, t, tt(t)), o = Math.max(30, t?.width ?? 0), a = Math.max(30, t?.height ?? 0), { cssStyles: n } = t, l = U.svg(s), c = X(t, {}); + const { shapeSvg: s } = await rt(e, t, et(t)), o = Math.max(30, t?.width ?? 0), a = Math.max(30, t?.height ?? 0), { cssStyles: n } = t, l = j.svg(s), c = V(t, {}); t.look !== "handDrawn" && (c.roughness = 0, c.fillStyle = "solid"); const h = [ { x: 0, y: 0 }, { x: o, y: 0 }, { x: 0, y: a }, { x: o, y: a } - ], u = pt(h), p = l.path(u, c), d = s.insert(() => p, ":first-child"); - return d.attr("class", "basic label-container outer-path"), n && t.look !== "handDrawn" && d.selectChildren("path").attr("style", n), i && t.look !== "handDrawn" && d.selectChildren("path").attr("style", i), d.attr("transform", `translate(${-o / 2}, ${-a / 2})`), Z(t, d), t.intersect = function(g) { - return R.info("Pill intersect", t, { points: h }), j.polygon(t, h, g); + ], d = ft(h), f = l.path(d, c), u = s.insert(() => f, ":first-child"); + return u.attr("class", "basic label-container outer-path"), n && t.look !== "handDrawn" && u.selectChildren("path").attr("style", n), i && t.look !== "handDrawn" && u.selectChildren("path").attr("style", i), u.attr("transform", `translate(${-o / 2}, ${-a / 2})`), K(t, u), t.intersect = function(g) { + return P.info("Pill intersect", t, { points: h }), G.polygon(t, h, g); }, s; } -f(bg, "hourglass"); -async function kg(e, t, { config: { themeVariables: r, flowchart: i } }) { - const { labelStyles: s } = V(t); +p(Ip, "hourglass"); +async function Dp(e, t, { config: { themeVariables: r, flowchart: i } }) { + const { labelStyles: s } = Z(t); t.labelStyle = s; const o = t.assetHeight ?? 48, a = t.assetWidth ?? 48, n = Math.max(o, a), l = i?.wrappingWidth; t.width = Math.max(n, l ?? 0); - const { shapeSvg: c, bbox: h, label: u } = await st(e, t, "icon-shape default"), p = t.pos === "t", d = n, g = n, { nodeBorder: m } = r, { stylesMap: y } = si(t), x = -g / 2, b = -d / 2, k = t.label ? 8 : 0, w = U.svg(c), S = X(t, { stroke: "none", fill: "none" }); + const { shapeSvg: c, bbox: h, label: d } = await rt(e, t, "icon-shape default"), f = t.pos === "t", u = n, g = n, { nodeBorder: m } = r, { stylesMap: y } = Jr(t), C = -g / 2, b = -u / 2, k = t.label ? 8 : 0, T = j.svg(c), S = V(t, { stroke: "none", fill: "none" }); t.look !== "handDrawn" && (S.roughness = 0, S.fillStyle = "solid"); - const v = w.rectangle(x, b, g, d, S), M = Math.max(g, h.width), B = d + h.height + k, N = w.rectangle(-M / 2, -B / 2, M, B, { + const _ = T.rectangle(C, b, g, u, S), A = Math.max(g, h.width), v = u + h.height + k, q = T.rectangle(-A / 2, -v / 2, A, v, { ...S, fill: "transparent", stroke: "none" - }), D = c.insert(() => v, ":first-child"), O = c.insert(() => N); + }), I = c.insert(() => _, ":first-child"), R = c.insert(() => q); if (t.icon) { - const W = c.append("g"); - W.html( - `${await os(t.icon, { + const H = c.append("g"); + H.html( + `${await Xi(t.icon, { height: n, width: n, fallbackPrefix: "" })}` ); - const z = W.node().getBBox(), I = z.width, F = z.height, L = z.x, E = z.y; - W.attr( + const W = H.node().getBBox(), M = W.width, F = W.height, L = W.x, E = W.y; + H.attr( "transform", - `translate(${-I / 2 - L},${p ? h.height / 2 + k / 2 - F / 2 - E : -h.height / 2 - k / 2 - F / 2 - E})` - ), W.attr("style", `color: ${y.get("stroke") ?? m};`); + `translate(${-M / 2 - L},${f ? h.height / 2 + k / 2 - F / 2 - E : -h.height / 2 - k / 2 - F / 2 - E})` + ), H.attr("style", `color: ${y.get("stroke") ?? m};`); } - return u.attr( + return d.attr( "transform", - `translate(${-h.width / 2 - (h.x - (h.left ?? 0))},${p ? -B / 2 : B / 2 - h.height})` - ), D.attr( + `translate(${-h.width / 2 - (h.x - (h.left ?? 0))},${f ? -v / 2 : v / 2 - h.height})` + ), I.attr( "transform", - `translate(0,${p ? h.height / 2 + k / 2 : -h.height / 2 - k / 2})` - ), Z(t, O), t.intersect = function(W) { - if (R.info("iconSquare intersect", t, W), !t.label) - return j.rect(t, W); - const z = t.x ?? 0, I = t.y ?? 0, F = t.height ?? 0; + `translate(0,${f ? h.height / 2 + k / 2 : -h.height / 2 - k / 2})` + ), K(t, R), t.intersect = function(H) { + if (P.info("iconSquare intersect", t, H), !t.label) + return G.rect(t, H); + const W = t.x ?? 0, M = t.y ?? 0, F = t.height ?? 0; let L = []; - return p ? L = [ - { x: z - h.width / 2, y: I - F / 2 }, - { x: z + h.width / 2, y: I - F / 2 }, - { x: z + h.width / 2, y: I - F / 2 + h.height + k }, - { x: z + g / 2, y: I - F / 2 + h.height + k }, - { x: z + g / 2, y: I + F / 2 }, - { x: z - g / 2, y: I + F / 2 }, - { x: z - g / 2, y: I - F / 2 + h.height + k }, - { x: z - h.width / 2, y: I - F / 2 + h.height + k } + return f ? L = [ + { x: W - h.width / 2, y: M - F / 2 }, + { x: W + h.width / 2, y: M - F / 2 }, + { x: W + h.width / 2, y: M - F / 2 + h.height + k }, + { x: W + g / 2, y: M - F / 2 + h.height + k }, + { x: W + g / 2, y: M + F / 2 }, + { x: W - g / 2, y: M + F / 2 }, + { x: W - g / 2, y: M - F / 2 + h.height + k }, + { x: W - h.width / 2, y: M - F / 2 + h.height + k } ] : L = [ - { x: z - g / 2, y: I - F / 2 }, - { x: z + g / 2, y: I - F / 2 }, - { x: z + g / 2, y: I - F / 2 + d }, - { x: z + h.width / 2, y: I - F / 2 + d }, - { x: z + h.width / 2 / 2, y: I + F / 2 }, - { x: z - h.width / 2, y: I + F / 2 }, - { x: z - h.width / 2, y: I - F / 2 + d }, - { x: z - g / 2, y: I - F / 2 + d } - ], j.polygon(t, L, W); + { x: W - g / 2, y: M - F / 2 }, + { x: W + g / 2, y: M - F / 2 }, + { x: W + g / 2, y: M - F / 2 + u }, + { x: W + h.width / 2, y: M - F / 2 + u }, + { x: W + h.width / 2 / 2, y: M + F / 2 }, + { x: W - h.width / 2, y: M + F / 2 }, + { x: W - h.width / 2, y: M - F / 2 + u }, + { x: W - g / 2, y: M - F / 2 + u } + ], G.polygon(t, L, H); }, c; } -f(kg, "icon"); -async function Tg(e, t, { config: { themeVariables: r, flowchart: i } }) { - const { labelStyles: s } = V(t); +p(Dp, "icon"); +async function Rp(e, t, { config: { themeVariables: r, flowchart: i } }) { + const { labelStyles: s } = Z(t); t.labelStyle = s; const o = t.assetHeight ?? 48, a = t.assetWidth ?? 48, n = Math.max(o, a), l = i?.wrappingWidth; t.width = Math.max(n, l ?? 0); - const { shapeSvg: c, bbox: h, label: u } = await st(e, t, "icon-shape default"), p = 20, d = t.label ? 8 : 0, g = t.pos === "t", { nodeBorder: m, mainBkg: y } = r, { stylesMap: x } = si(t), b = U.svg(c), k = X(t, {}); + const { shapeSvg: c, bbox: h, label: d } = await rt(e, t, "icon-shape default"), f = 20, u = t.label ? 8 : 0, g = t.pos === "t", { nodeBorder: m, mainBkg: y } = r, { stylesMap: C } = Jr(t), b = j.svg(c), k = V(t, {}); t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid"); - const w = x.get("fill"); - k.stroke = w ?? y; + const T = C.get("fill"); + k.stroke = T ?? y; const S = c.append("g"); t.icon && S.html( - `${await os(t.icon, { + `${await Xi(t.icon, { height: n, width: n, fallbackPrefix: "" })}` ); - const v = S.node().getBBox(), M = v.width, B = v.height, N = v.x, D = v.y, O = Math.max(M, B) * Math.SQRT2 + p * 2, W = b.circle(0, 0, O, k), z = Math.max(O, h.width), I = O + h.height + d, F = b.rectangle(-z / 2, -I / 2, z, I, { + const _ = S.node().getBBox(), A = _.width, v = _.height, q = _.x, I = _.y, R = Math.max(A, v) * Math.SQRT2 + f * 2, H = b.circle(0, 0, R, k), W = Math.max(R, h.width), M = R + h.height + u, F = b.rectangle(-W / 2, -M / 2, W, M, { ...k, fill: "transparent", stroke: "none" - }), L = c.insert(() => W, ":first-child"), E = c.insert(() => F); + }), L = c.insert(() => H, ":first-child"), E = c.insert(() => F); return S.attr( "transform", - `translate(${-M / 2 - N},${g ? h.height / 2 + d / 2 - B / 2 - D : -h.height / 2 - d / 2 - B / 2 - D})` - ), S.attr("style", `color: ${x.get("stroke") ?? m};`), u.attr( + `translate(${-A / 2 - q},${g ? h.height / 2 + u / 2 - v / 2 - I : -h.height / 2 - u / 2 - v / 2 - I})` + ), S.attr("style", `color: ${C.get("stroke") ?? m};`), d.attr( "transform", - `translate(${-h.width / 2 - (h.x - (h.left ?? 0))},${g ? -I / 2 : I / 2 - h.height})` + `translate(${-h.width / 2 - (h.x - (h.left ?? 0))},${g ? -M / 2 : M / 2 - h.height})` ), L.attr( "transform", - `translate(0,${g ? h.height / 2 + d / 2 : -h.height / 2 - d / 2})` - ), Z(t, E), t.intersect = function(P) { - return R.info("iconSquare intersect", t, P), j.rect(t, P); + `translate(0,${g ? h.height / 2 + u / 2 : -h.height / 2 - u / 2})` + ), K(t, E), t.intersect = function(D) { + return P.info("iconSquare intersect", t, D), G.rect(t, D); }, c; } -f(Tg, "iconCircle"); -async function wg(e, t, { config: { themeVariables: r, flowchart: i } }) { - const { labelStyles: s } = V(t); +p(Rp, "iconCircle"); +async function Pp(e, t, { config: { themeVariables: r, flowchart: i } }) { + const { labelStyles: s } = Z(t); t.labelStyle = s; const o = t.assetHeight ?? 48, a = t.assetWidth ?? 48, n = Math.max(o, a), l = i?.wrappingWidth; t.width = Math.max(n, l ?? 0); - const { shapeSvg: c, bbox: h, halfPadding: u, label: p } = await st( + const { shapeSvg: c, bbox: h, halfPadding: d, label: f } = await rt( e, t, "icon-shape default" - ), d = t.pos === "t", g = n + u * 2, m = n + u * 2, { nodeBorder: y, mainBkg: x } = r, { stylesMap: b } = si(t), k = -m / 2, w = -g / 2, S = t.label ? 8 : 0, v = U.svg(c), M = X(t, {}); - t.look !== "handDrawn" && (M.roughness = 0, M.fillStyle = "solid"); - const B = b.get("fill"); - M.stroke = B ?? x; - const N = v.path(ar(k, w, m, g, 5), M), D = Math.max(m, h.width), O = g + h.height + S, W = v.rectangle(-D / 2, -O / 2, D, O, { - ...M, + ), u = t.pos === "t", g = n + d * 2, m = n + d * 2, { nodeBorder: y, mainBkg: C } = r, { stylesMap: b } = Jr(t), k = -m / 2, T = -g / 2, S = t.label ? 8 : 0, _ = j.svg(c), A = V(t, {}); + t.look !== "handDrawn" && (A.roughness = 0, A.fillStyle = "solid"); + const v = b.get("fill"); + A.stroke = v ?? C; + const q = _.path(ir(k, T, m, g, 5), A), I = Math.max(m, h.width), R = g + h.height + S, H = _.rectangle(-I / 2, -R / 2, I, R, { + ...A, fill: "transparent", stroke: "none" - }), z = c.insert(() => N, ":first-child").attr("class", "icon-shape2"), I = c.insert(() => W); + }), W = c.insert(() => q, ":first-child").attr("class", "icon-shape2"), M = c.insert(() => H); if (t.icon) { const F = c.append("g"); F.html( - `${await os(t.icon, { + `${await Xi(t.icon, { height: n, width: n, fallbackPrefix: "" })}` ); - const L = F.node().getBBox(), E = L.width, P = L.height, H = L.x, Y = L.y; + const L = F.node().getBBox(), E = L.width, D = L.height, z = L.x, Y = L.y; F.attr( "transform", - `translate(${-E / 2 - H},${d ? h.height / 2 + S / 2 - P / 2 - Y : -h.height / 2 - S / 2 - P / 2 - Y})` + `translate(${-E / 2 - z},${u ? h.height / 2 + S / 2 - D / 2 - Y : -h.height / 2 - S / 2 - D / 2 - Y})` ), F.attr("style", `color: ${b.get("stroke") ?? y};`); } - return p.attr( + return f.attr( "transform", - `translate(${-h.width / 2 - (h.x - (h.left ?? 0))},${d ? -O / 2 : O / 2 - h.height})` - ), z.attr( + `translate(${-h.width / 2 - (h.x - (h.left ?? 0))},${u ? -R / 2 : R / 2 - h.height})` + ), W.attr( "transform", - `translate(0,${d ? h.height / 2 + S / 2 : -h.height / 2 - S / 2})` - ), Z(t, I), t.intersect = function(F) { - if (R.info("iconSquare intersect", t, F), !t.label) - return j.rect(t, F); - const L = t.x ?? 0, E = t.y ?? 0, P = t.height ?? 0; - let H = []; - return d ? H = [ - { x: L - h.width / 2, y: E - P / 2 }, - { x: L + h.width / 2, y: E - P / 2 }, - { x: L + h.width / 2, y: E - P / 2 + h.height + S }, - { x: L + m / 2, y: E - P / 2 + h.height + S }, - { x: L + m / 2, y: E + P / 2 }, - { x: L - m / 2, y: E + P / 2 }, - { x: L - m / 2, y: E - P / 2 + h.height + S }, - { x: L - h.width / 2, y: E - P / 2 + h.height + S } - ] : H = [ - { x: L - m / 2, y: E - P / 2 }, - { x: L + m / 2, y: E - P / 2 }, - { x: L + m / 2, y: E - P / 2 + g }, - { x: L + h.width / 2, y: E - P / 2 + g }, - { x: L + h.width / 2 / 2, y: E + P / 2 }, - { x: L - h.width / 2, y: E + P / 2 }, - { x: L - h.width / 2, y: E - P / 2 + g }, - { x: L - m / 2, y: E - P / 2 + g } - ], j.polygon(t, H, F); + `translate(0,${u ? h.height / 2 + S / 2 : -h.height / 2 - S / 2})` + ), K(t, M), t.intersect = function(F) { + if (P.info("iconSquare intersect", t, F), !t.label) + return G.rect(t, F); + const L = t.x ?? 0, E = t.y ?? 0, D = t.height ?? 0; + let z = []; + return u ? z = [ + { x: L - h.width / 2, y: E - D / 2 }, + { x: L + h.width / 2, y: E - D / 2 }, + { x: L + h.width / 2, y: E - D / 2 + h.height + S }, + { x: L + m / 2, y: E - D / 2 + h.height + S }, + { x: L + m / 2, y: E + D / 2 }, + { x: L - m / 2, y: E + D / 2 }, + { x: L - m / 2, y: E - D / 2 + h.height + S }, + { x: L - h.width / 2, y: E - D / 2 + h.height + S } + ] : z = [ + { x: L - m / 2, y: E - D / 2 }, + { x: L + m / 2, y: E - D / 2 }, + { x: L + m / 2, y: E - D / 2 + g }, + { x: L + h.width / 2, y: E - D / 2 + g }, + { x: L + h.width / 2 / 2, y: E + D / 2 }, + { x: L - h.width / 2, y: E + D / 2 }, + { x: L - h.width / 2, y: E - D / 2 + g }, + { x: L - m / 2, y: E - D / 2 + g } + ], G.polygon(t, z, F); }, c; } -f(wg, "iconRounded"); -async function Sg(e, t, { config: { themeVariables: r, flowchart: i } }) { - const { labelStyles: s } = V(t); +p(Pp, "iconRounded"); +async function Np(e, t, { config: { themeVariables: r, flowchart: i } }) { + const { labelStyles: s } = Z(t); t.labelStyle = s; const o = t.assetHeight ?? 48, a = t.assetWidth ?? 48, n = Math.max(o, a), l = i?.wrappingWidth; t.width = Math.max(n, l ?? 0); - const { shapeSvg: c, bbox: h, halfPadding: u, label: p } = await st( + const { shapeSvg: c, bbox: h, halfPadding: d, label: f } = await rt( e, t, "icon-shape default" - ), d = t.pos === "t", g = n + u * 2, m = n + u * 2, { nodeBorder: y, mainBkg: x } = r, { stylesMap: b } = si(t), k = -m / 2, w = -g / 2, S = t.label ? 8 : 0, v = U.svg(c), M = X(t, {}); - t.look !== "handDrawn" && (M.roughness = 0, M.fillStyle = "solid"); - const B = b.get("fill"); - M.stroke = B ?? x; - const N = v.path(ar(k, w, m, g, 0.1), M), D = Math.max(m, h.width), O = g + h.height + S, W = v.rectangle(-D / 2, -O / 2, D, O, { - ...M, + ), u = t.pos === "t", g = n + d * 2, m = n + d * 2, { nodeBorder: y, mainBkg: C } = r, { stylesMap: b } = Jr(t), k = -m / 2, T = -g / 2, S = t.label ? 8 : 0, _ = j.svg(c), A = V(t, {}); + t.look !== "handDrawn" && (A.roughness = 0, A.fillStyle = "solid"); + const v = b.get("fill"); + A.stroke = v ?? C; + const q = _.path(ir(k, T, m, g, 0.1), A), I = Math.max(m, h.width), R = g + h.height + S, H = _.rectangle(-I / 2, -R / 2, I, R, { + ...A, fill: "transparent", stroke: "none" - }), z = c.insert(() => N, ":first-child"), I = c.insert(() => W); + }), W = c.insert(() => q, ":first-child"), M = c.insert(() => H); if (t.icon) { const F = c.append("g"); F.html( - `${await os(t.icon, { + `${await Xi(t.icon, { height: n, width: n, fallbackPrefix: "" })}` ); - const L = F.node().getBBox(), E = L.width, P = L.height, H = L.x, Y = L.y; + const L = F.node().getBBox(), E = L.width, D = L.height, z = L.x, Y = L.y; F.attr( "transform", - `translate(${-E / 2 - H},${d ? h.height / 2 + S / 2 - P / 2 - Y : -h.height / 2 - S / 2 - P / 2 - Y})` + `translate(${-E / 2 - z},${u ? h.height / 2 + S / 2 - D / 2 - Y : -h.height / 2 - S / 2 - D / 2 - Y})` ), F.attr("style", `color: ${b.get("stroke") ?? y};`); } - return p.attr( + return f.attr( "transform", - `translate(${-h.width / 2 - (h.x - (h.left ?? 0))},${d ? -O / 2 : O / 2 - h.height})` - ), z.attr( + `translate(${-h.width / 2 - (h.x - (h.left ?? 0))},${u ? -R / 2 : R / 2 - h.height})` + ), W.attr( "transform", - `translate(0,${d ? h.height / 2 + S / 2 : -h.height / 2 - S / 2})` - ), Z(t, I), t.intersect = function(F) { - if (R.info("iconSquare intersect", t, F), !t.label) - return j.rect(t, F); - const L = t.x ?? 0, E = t.y ?? 0, P = t.height ?? 0; - let H = []; - return d ? H = [ - { x: L - h.width / 2, y: E - P / 2 }, - { x: L + h.width / 2, y: E - P / 2 }, - { x: L + h.width / 2, y: E - P / 2 + h.height + S }, - { x: L + m / 2, y: E - P / 2 + h.height + S }, - { x: L + m / 2, y: E + P / 2 }, - { x: L - m / 2, y: E + P / 2 }, - { x: L - m / 2, y: E - P / 2 + h.height + S }, - { x: L - h.width / 2, y: E - P / 2 + h.height + S } - ] : H = [ - { x: L - m / 2, y: E - P / 2 }, - { x: L + m / 2, y: E - P / 2 }, - { x: L + m / 2, y: E - P / 2 + g }, - { x: L + h.width / 2, y: E - P / 2 + g }, - { x: L + h.width / 2 / 2, y: E + P / 2 }, - { x: L - h.width / 2, y: E + P / 2 }, - { x: L - h.width / 2, y: E - P / 2 + g }, - { x: L - m / 2, y: E - P / 2 + g } - ], j.polygon(t, H, F); + `translate(0,${u ? h.height / 2 + S / 2 : -h.height / 2 - S / 2})` + ), K(t, M), t.intersect = function(F) { + if (P.info("iconSquare intersect", t, F), !t.label) + return G.rect(t, F); + const L = t.x ?? 0, E = t.y ?? 0, D = t.height ?? 0; + let z = []; + return u ? z = [ + { x: L - h.width / 2, y: E - D / 2 }, + { x: L + h.width / 2, y: E - D / 2 }, + { x: L + h.width / 2, y: E - D / 2 + h.height + S }, + { x: L + m / 2, y: E - D / 2 + h.height + S }, + { x: L + m / 2, y: E + D / 2 }, + { x: L - m / 2, y: E + D / 2 }, + { x: L - m / 2, y: E - D / 2 + h.height + S }, + { x: L - h.width / 2, y: E - D / 2 + h.height + S } + ] : z = [ + { x: L - m / 2, y: E - D / 2 }, + { x: L + m / 2, y: E - D / 2 }, + { x: L + m / 2, y: E - D / 2 + g }, + { x: L + h.width / 2, y: E - D / 2 + g }, + { x: L + h.width / 2 / 2, y: E + D / 2 }, + { x: L - h.width / 2, y: E + D / 2 }, + { x: L - h.width / 2, y: E - D / 2 + g }, + { x: L - m / 2, y: E - D / 2 + g } + ], G.polygon(t, z, F); }, c; } -f(Sg, "iconSquare"); -async function _g(e, t, { config: { flowchart: r } }) { +p(Np, "iconSquare"); +async function qp(e, t, { config: { flowchart: r } }) { const i = new Image(); i.src = t?.img ?? "", await i.decode(); const s = Number(i.naturalWidth.toString().replace("px", "")), o = Number(i.naturalHeight.toString().replace("px", "")); t.imageAspectRatio = s / o; - const { labelStyles: a } = V(t); + const { labelStyles: a } = Z(t); t.labelStyle = a; const n = r?.wrappingWidth; t.defaultWidth = r?.wrappingWidth; @@ -12137,163 +12083,145 @@ async function _g(e, t, { config: { flowchart: r } }) { t?.assetWidth ?? s ), c = t.constraint === "on" && t?.assetHeight ? t.assetHeight * t.imageAspectRatio : l, h = t.constraint === "on" ? c / t.imageAspectRatio : t?.assetHeight ?? o; t.width = Math.max(c, n ?? 0); - const { shapeSvg: u, bbox: p, label: d } = await st(e, t, "image-shape default"), g = t.pos === "t", m = -c / 2, y = -h / 2, x = t.label ? 8 : 0, b = U.svg(u), k = X(t, {}); + const { shapeSvg: d, bbox: f, label: u } = await rt(e, t, "image-shape default"), g = t.pos === "t", m = -c / 2, y = -h / 2, C = t.label ? 8 : 0, b = j.svg(d), k = V(t, {}); t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid"); - const w = b.rectangle(m, y, c, h, k), S = Math.max(c, p.width), v = h + p.height + x, M = b.rectangle(-S / 2, -v / 2, S, v, { + const T = b.rectangle(m, y, c, h, k), S = Math.max(c, f.width), _ = h + f.height + C, A = b.rectangle(-S / 2, -_ / 2, S, _, { ...k, fill: "none", stroke: "none" - }), B = u.insert(() => w, ":first-child"), N = u.insert(() => M); + }), v = d.insert(() => T, ":first-child"), q = d.insert(() => A); if (t.img) { - const D = u.append("image"); - D.attr("href", t.img), D.attr("width", c), D.attr("height", h), D.attr("preserveAspectRatio", "none"), D.attr( + const I = d.append("image"); + I.attr("href", t.img), I.attr("width", c), I.attr("height", h), I.attr("preserveAspectRatio", "none"), I.attr( "transform", - `translate(${-c / 2},${g ? v / 2 - h : -v / 2})` + `translate(${-c / 2},${g ? _ / 2 - h : -_ / 2})` ); } - return d.attr( + return u.attr( "transform", - `translate(${-p.width / 2 - (p.x - (p.left ?? 0))},${g ? -h / 2 - p.height / 2 - x / 2 : h / 2 - p.height / 2 + x / 2})` - ), B.attr( + `translate(${-f.width / 2 - (f.x - (f.left ?? 0))},${g ? -h / 2 - f.height / 2 - C / 2 : h / 2 - f.height / 2 + C / 2})` + ), v.attr( "transform", - `translate(0,${g ? p.height / 2 + x / 2 : -p.height / 2 - x / 2})` - ), Z(t, N), t.intersect = function(D) { - if (R.info("iconSquare intersect", t, D), !t.label) - return j.rect(t, D); - const O = t.x ?? 0, W = t.y ?? 0, z = t.height ?? 0; - let I = []; - return g ? I = [ - { x: O - p.width / 2, y: W - z / 2 }, - { x: O + p.width / 2, y: W - z / 2 }, - { x: O + p.width / 2, y: W - z / 2 + p.height + x }, - { x: O + c / 2, y: W - z / 2 + p.height + x }, - { x: O + c / 2, y: W + z / 2 }, - { x: O - c / 2, y: W + z / 2 }, - { x: O - c / 2, y: W - z / 2 + p.height + x }, - { x: O - p.width / 2, y: W - z / 2 + p.height + x } - ] : I = [ - { x: O - c / 2, y: W - z / 2 }, - { x: O + c / 2, y: W - z / 2 }, - { x: O + c / 2, y: W - z / 2 + h }, - { x: O + p.width / 2, y: W - z / 2 + h }, - { x: O + p.width / 2 / 2, y: W + z / 2 }, - { x: O - p.width / 2, y: W + z / 2 }, - { x: O - p.width / 2, y: W - z / 2 + h }, - { x: O - c / 2, y: W - z / 2 + h } - ], j.polygon(t, I, D); - }, u; -} -f(_g, "imageSquare"); -async function vg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); + `translate(0,${g ? f.height / 2 + C / 2 : -f.height / 2 - C / 2})` + ), K(t, q), t.intersect = function(I) { + if (P.info("iconSquare intersect", t, I), !t.label) + return G.rect(t, I); + const R = t.x ?? 0, H = t.y ?? 0, W = t.height ?? 0; + let M = []; + return g ? M = [ + { x: R - f.width / 2, y: H - W / 2 }, + { x: R + f.width / 2, y: H - W / 2 }, + { x: R + f.width / 2, y: H - W / 2 + f.height + C }, + { x: R + c / 2, y: H - W / 2 + f.height + C }, + { x: R + c / 2, y: H + W / 2 }, + { x: R - c / 2, y: H + W / 2 }, + { x: R - c / 2, y: H - W / 2 + f.height + C }, + { x: R - f.width / 2, y: H - W / 2 + f.height + C } + ] : M = [ + { x: R - c / 2, y: H - W / 2 }, + { x: R + c / 2, y: H - W / 2 }, + { x: R + c / 2, y: H - W / 2 + h }, + { x: R + f.width / 2, y: H - W / 2 + h }, + { x: R + f.width / 2 / 2, y: H + W / 2 }, + { x: R - f.width / 2, y: H + W / 2 }, + { x: R - f.width / 2, y: H - W / 2 + h }, + { x: R - c / 2, y: H - W / 2 + h } + ], G.polygon(t, M, I); + }, d; +} +p(qp, "imageSquare"); +async function Wp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t.padding ?? 0, o = s, a = t.look === "neo" ? s * 2 : s, { shapeSvg: n, bbox: l } = await st(e, t, tt(t)), c = Math.max(l.width + (a ?? 0) * 2, t?.width ?? 0), h = Math.max(l.height + (o ?? 0) * 2, t?.height ?? 0), u = [ + const s = t.padding ?? 0, o = s, a = t.look === "neo" ? s * 2 : s, { shapeSvg: n, bbox: l } = await rt(e, t, et(t)), c = Math.max(l.width + (a ?? 0) * 2, t?.width ?? 0), h = Math.max(l.height + (o ?? 0) * 2, t?.height ?? 0), d = [ { x: 0, y: 0 }, { x: c, y: 0 }, { x: c + 3 * h / 6, y: -h }, { x: -3 * h / 6, y: -h } ]; - let p; - const { cssStyles: d } = t; + let f; + const { cssStyles: u } = t; if (t.look === "handDrawn") { - const g = U.svg(n), m = X(t, {}), y = pt(u), x = g.path(y, m); - p = n.insert(() => x, ":first-child").attr("transform", `translate(${-c / 2}, ${h / 2})`), d && p.attr("style", d); + const g = j.svg(n), m = V(t, {}), y = ft(d), C = g.path(y, m); + f = n.insert(() => C, ":first-child").attr("transform", `translate(${-c / 2}, ${h / 2})`), u && f.attr("style", u); } else - p = Xe(n, c, h, u); - return i && p.attr("style", i), t.width = c, t.height = h, Z(t, p), t.intersect = function(g) { - return j.polygon(t, u, g); + f = Ye(n, c, h, d); + return i && f.attr("style", i), t.width = c, t.height = h, K(t, f), t.intersect = function(g) { + return G.polygon(t, d, g); }, n; } -f(vg, "inv_trapezoid"); -async function ns(e, t, r) { - const { labelStyles: i, nodeStyles: s } = V(t); - t.labelStyle = i; - const { shapeSvg: o, bbox: a } = await st(e, t, tt(t)), n = Math.max(a.width + r.labelPaddingX * 2, t?.width || 0), l = Math.max(a.height + r.labelPaddingY * 2, t?.height || 0), c = -n / 2, h = -l / 2; - let u, { rx: p, ry: d } = t; - const { cssStyles: g } = t; - if (r?.rx && r.ry && (p = r.rx, d = r.ry), t.look === "handDrawn") { - const m = U.svg(o), y = X(t, {}), x = p || d ? m.path(ar(c, h, n, l, p || 0), y) : m.rectangle(c, h, n, l, y); - u = o.insert(() => x, ":first-child"), u.attr("class", "basic label-container").attr("style", Dt(g)); - } else - u = o.insert("rect", ":first-child"), u.attr("class", "basic label-container").attr("style", s).attr("rx", Dt(p)).attr("ry", Dt(d)).attr("x", c).attr("y", h).attr("width", n).attr("height", l); - return Z(t, u), t.calcIntersect = function(m, y) { - return j.rect(m, y); - }, t.intersect = function(m) { - return j.rect(t, m); - }, o; -} -f(ns, "drawRect"); -async function Bg(e, t) { - const { shapeSvg: r, bbox: i, label: s } = await st(e, t, "label"), o = r.insert("rect", ":first-child"); +p(Wp, "inv_trapezoid"); +async function zp(e, t) { + const { shapeSvg: r, bbox: i, label: s } = await rt(e, t, "label"), o = r.insert("rect", ":first-child"); return o.attr("width", 0.1).attr("height", 0.1), r.attr("class", "label edgeLabel"), s.attr( "transform", `translate(${-(i.width / 2) - (i.x - (i.left ?? 0))}, ${-(i.height / 2) - (i.y - (i.top ?? 0))})` - ), Z(t, o), t.intersect = function(l) { - return j.rect(t, l); + ), K(t, o), t.intersect = function(l) { + return G.rect(t, l); }, r; } -f(Bg, "labelRect"); -async function Lg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(zp, "labelRect"); +async function Hp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t.padding ?? 0, o = s, a = t.look === "neo" ? s * 2 : s, { shapeSvg: n, bbox: l } = await st(e, t, tt(t)), c = (t?.height ?? l.height) + o, h = (t?.width ?? l.width) + a, u = [ + const s = t.padding ?? 0, o = s, a = t.look === "neo" ? s * 2 : s, { shapeSvg: n, bbox: l } = await rt(e, t, et(t)), c = (t?.height ?? l.height) + o, h = (t?.width ?? l.width) + a, d = [ { x: 0, y: 0 }, { x: h + 3 * c / 6, y: 0 }, { x: h, y: -c }, { x: -(3 * c) / 6, y: -c } ]; - let p; - const { cssStyles: d } = t; + let f; + const { cssStyles: u } = t; if (t.look === "handDrawn") { - const g = U.svg(n), m = X(t, {}), y = pt(u), x = g.path(y, m); - p = n.insert(() => x, ":first-child").attr("transform", `translate(${-h / 2}, ${c / 2})`), d && p.attr("style", d); + const g = j.svg(n), m = V(t, {}), y = ft(d), C = g.path(y, m); + f = n.insert(() => C, ":first-child").attr("transform", `translate(${-h / 2}, ${c / 2})`), u && f.attr("style", u); } else - p = Xe(n, h, c, u); - return i && p.attr("style", i), t.width = h, t.height = c, Z(t, p), t.intersect = function(g) { - return j.polygon(t, u, g); + f = Ye(n, h, c, d); + return i && f.attr("style", i), t.width = h, t.height = c, K(t, f), t.intersect = function(g) { + return G.polygon(t, d, g); }, n; } -f(Lg, "lean_left"); -async function Fg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Hp, "lean_left"); +async function Yp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t.padding ?? 0, o = s, a = t.look === "neo" ? s * 2 : s, { shapeSvg: n, bbox: l } = await st(e, t, tt(t)), c = (t?.height ?? l.height) + o, h = (t?.width ?? l.width) + a, u = [ + const s = t.padding ?? 0, o = s, a = t.look === "neo" ? s * 2 : s, { shapeSvg: n, bbox: l } = await rt(e, t, et(t)), c = (t?.height ?? l.height) + o, h = (t?.width ?? l.width) + a, d = [ { x: -3 * c / 6, y: 0 }, { x: h, y: 0 }, { x: h + 3 * c / 6, y: -c }, { x: 0, y: -c } ]; - let p; - const { cssStyles: d } = t; + let f; + const { cssStyles: u } = t; if (t.look === "handDrawn") { - const g = U.svg(n), m = X(t, {}), y = pt(u), x = g.path(y, m); - p = n.insert(() => x, ":first-child").attr("transform", `translate(${-h / 2}, ${c / 2})`), d && p.attr("style", d); + const g = j.svg(n), m = V(t, {}), y = ft(d), C = g.path(y, m); + f = n.insert(() => C, ":first-child").attr("transform", `translate(${-h / 2}, ${c / 2})`), u && f.attr("style", u); } else - p = Xe(n, h, c, u); - return i && p.attr("style", i), t.width = h, t.height = c, Z(t, p), t.intersect = function(g) { - return j.polygon(t, u, g); + f = Ye(n, h, c, d); + return i && f.attr("style", i), t.width = h, t.height = c, K(t, f), t.intersect = function(g) { + return G.polygon(t, d, g); }, n; } -f(Fg, "lean_right"); -function Ag(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Yp, "lean_right"); +function Up(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.label = "", t.labelStyle = r; - const s = e.insert("g").attr("class", tt(t)).attr("id", t.domId ?? t.id), { cssStyles: o } = t, a = Math.max(35, t?.width ?? 0), n = Math.max(35, t?.height ?? 0), l = 7, c = [ + const s = e.insert("g").attr("class", et(t)).attr("id", t.domId ?? t.id), { cssStyles: o } = t, a = Math.max(35, t?.width ?? 0), n = Math.max(35, t?.height ?? 0), l = 7, c = [ { x: a, y: 0 }, { x: 0, y: n + l / 2 }, { x: a - 2 * l, y: n + l / 2 }, { x: 0, y: 2 * n }, { x: a, y: n - l / 2 }, { x: 2 * l, y: n - l / 2 } - ], h = U.svg(s), u = X(t, {}); - t.look !== "handDrawn" && (u.roughness = 0, u.fillStyle = "solid"); - const p = pt(c), d = h.path(p, u), g = s.insert(() => d, ":first-child"); - return g.attr("class", "outer-path"), o && t.look !== "handDrawn" && g.selectAll("path").attr("style", o), i && t.look !== "handDrawn" && g.selectAll("path").attr("style", i), g.attr("transform", `translate(-${a / 2},${-n})`), Z(t, g), t.intersect = function(m) { - return R.info("lightningBolt intersect", t, m), j.polygon(t, c, m); + ], h = j.svg(s), d = V(t, {}); + t.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid"); + const f = ft(c), u = h.path(f, d), g = s.insert(() => u, ":first-child"); + return g.attr("class", "outer-path"), o && t.look !== "handDrawn" && g.selectAll("path").attr("style", o), i && t.look !== "handDrawn" && g.selectAll("path").attr("style", i), g.attr("transform", `translate(-${a / 2},${-n})`), K(t, g), t.intersect = function(m) { + return P.info("lightningBolt intersect", t, m), G.polygon(t, c, m); }, s; } -f(Ag, "lightningBolt"); -var $_ = /* @__PURE__ */ f((e, t, r, i, s, o, a) => [ +p(Up, "lightningBolt"); +var eT = /* @__PURE__ */ p((e, t, r, i, s, o, a) => [ `M${e},${t + o}`, `a${s},${o} 0,0,0 ${r},0`, `a${s},${o} 0,0,0 ${-r},0`, @@ -12302,7 +12230,7 @@ var $_ = /* @__PURE__ */ f((e, t, r, i, s, o, a) => [ `l0,${-i}`, `M${e},${t + o + a}`, `a${s},${o} 0,0,0 ${r},0` -].join(" "), "createCylinderPathD"), O_ = /* @__PURE__ */ f((e, t, r, i, s, o, a) => [ +].join(" "), "createCylinderPathD"), rT = /* @__PURE__ */ p((e, t, r, i, s, o, a) => [ `M${e},${t + o}`, `M${e + r},${t + o}`, `a${s},${o} 0,0,0 ${-r},0`, @@ -12311,414 +12239,414 @@ var $_ = /* @__PURE__ */ f((e, t, r, i, s, o, a) => [ `l0,${-i}`, `M${e},${t + o + a}`, `a${s},${o} 0,0,0 ${r},0` -].join(" "), "createOuterCylinderPathD"), I_ = /* @__PURE__ */ f((e, t, r, i, s, o) => [`M${e - r / 2},${-i / 2}`, `a${s},${o} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD"), bc = 10, kc = 10; -async function Mg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +].join(" "), "createOuterCylinderPathD"), iT = /* @__PURE__ */ p((e, t, r, i, s, o) => [`M${e - r / 2},${-i / 2}`, `a${s},${o} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD"), jh = 10, Xh = 10; +async function Gp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.padding ?? 0, o = t.look === "neo" ? 16 : s, a = t.look === "neo" ? 24 : s; if (t.width || t.height) { - const x = t.width ?? 0; - t.width = (t.width ?? 0) - o, t.width < kc && (t.width = kc); - const k = x / 2 / (2.5 + x / 50); - t.height = (t.height ?? 0) - a - k * 3, t.height < bc && (t.height = bc); + const C = t.width ?? 0; + t.width = (t.width ?? 0) - o, t.width < Xh && (t.width = Xh); + const k = C / 2 / (2.5 + C / 50); + t.height = (t.height ?? 0) - a - k * 3, t.height < jh && (t.height = jh); } - const { shapeSvg: n, bbox: l, label: c } = await st(e, t, tt(t)), h = (t?.width ? t?.width : l.width) + o * 2, u = h / 2, p = u / (2.5 + h / 50), d = (t?.height ? t?.height : l.height) + p + a * 2, g = d * 0.1; + const { shapeSvg: n, bbox: l, label: c } = await rt(e, t, et(t)), h = (t?.width ? t?.width : l.width) + o * 2, d = h / 2, f = d / (2.5 + h / 50), u = (t?.height ? t?.height : l.height) + f + a * 2, g = u * 0.1; let m; const { cssStyles: y } = t; if (t.look === "handDrawn") { - const x = U.svg(n), b = O_(0, 0, h, d, u, p, g), k = I_(0, p, h, d, u, p), w = X(t, {}), S = x.path(b, w), v = x.path(k, w); - n.insert(() => v, ":first-child").attr("class", "line"), m = n.insert(() => S, ":first-child"), m.attr("class", "basic label-container"), y && m.attr("style", y); + const C = j.svg(n), b = rT(0, 0, h, u, d, f, g), k = iT(0, f, h, u, d, f), T = V(t, {}), S = C.path(b, T), _ = C.path(k, T); + n.insert(() => _, ":first-child").attr("class", "line"), m = n.insert(() => S, ":first-child"), m.attr("class", "basic label-container"), y && m.attr("style", y); } else { - const x = $_(0, 0, h, d, u, p, g); - m = n.insert("path", ":first-child").attr("d", x).attr("class", "basic label-container outer-path").attr("style", Dt(y)).attr("style", i); + const C = eT(0, 0, h, u, d, f, g); + m = n.insert("path", ":first-child").attr("d", C).attr("class", "basic label-container outer-path").attr("style", Dt(y)).attr("style", i); } - return m.attr("label-offset-y", p), m.attr("transform", `translate(${-h / 2}, ${-(d / 2 + p)})`), Z(t, m), c.attr( + return m.attr("label-offset-y", f), m.attr("transform", `translate(${-h / 2}, ${-(u / 2 + f)})`), K(t, m), c.attr( "transform", - `translate(${-(l.width / 2) - (l.x - (l.left ?? 0))}, ${-(l.height / 2) + p - (l.y - (l.top ?? 0))})` - ), t.intersect = function(x) { - const b = j.rect(t, x), k = b.x - (t.x ?? 0); - if (u != 0 && (Math.abs(k) < (t.width ?? 0) / 2 || Math.abs(k) == (t.width ?? 0) / 2 && Math.abs(b.y - (t.y ?? 0)) > (t.height ?? 0) / 2 - p)) { - let w = p * p * (1 - k * k / (u * u)); - w > 0 && (w = Math.sqrt(w)), w = p - w, x.y - (t.y ?? 0) > 0 && (w = -w), b.y += w; + `translate(${-(l.width / 2) - (l.x - (l.left ?? 0))}, ${-(l.height / 2) + f - (l.y - (l.top ?? 0))})` + ), t.intersect = function(C) { + const b = G.rect(t, C), k = b.x - (t.x ?? 0); + if (d != 0 && (Math.abs(k) < (t.width ?? 0) / 2 || Math.abs(k) == (t.width ?? 0) / 2 && Math.abs(b.y - (t.y ?? 0)) > (t.height ?? 0) / 2 - f)) { + let T = f * f * (1 - k * k / (d * d)); + T > 0 && (T = Math.sqrt(T)), T = f - T, C.y - (t.y ?? 0) > 0 && (T = -T), b.y += T; } return b; }, n; } -f(Mg, "linedCylinder"); -async function Eg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Gp, "linedCylinder"); +async function jp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.padding ?? 0, o = t.look === "neo" ? 16 : s, a = t.look === "neo" ? 12 : s; if (t.width || t.height) { - const w = t.width; - t.width = (w ?? 0) * 10 / 11 - o * 2, t.width < 10 && (t.width = 10), t.height = (t?.height ?? 0) - a * 2, t.height < 10 && (t.height = 10); + const T = t.width; + t.width = (T ?? 0) * 10 / 11 - o * 2, t.width < 10 && (t.width = 10), t.height = (t?.height ?? 0) - a * 2, t.height < 10 && (t.height = 10); } - const { shapeSvg: n, bbox: l, label: c } = await st(e, t, tt(t)), h = (t?.width ? t?.width : l.width) + (o ?? 0) * 2, u = (t?.height ? t?.height : l.height) + (a ?? 0) * 2, p = t.look === "neo" ? u / 4 : u / 8, d = u + p, { cssStyles: g } = t, m = U.svg(n), y = X(t, {}); + const { shapeSvg: n, bbox: l, label: c } = await rt(e, t, et(t)), h = (t?.width ? t?.width : l.width) + (o ?? 0) * 2, d = (t?.height ? t?.height : l.height) + (a ?? 0) * 2, f = t.look === "neo" ? d / 4 : d / 8, u = d + f, { cssStyles: g } = t, m = j.svg(n), y = V(t, {}); t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid"); - const x = [ - { x: -h / 2 - h / 2 * 0.1, y: -d / 2 }, - { x: -h / 2 - h / 2 * 0.1, y: d / 2 }, - ...sr( + const C = [ + { x: -h / 2 - h / 2 * 0.1, y: -u / 2 }, + { x: -h / 2 - h / 2 * 0.1, y: u / 2 }, + ...rr( -h / 2 - h / 2 * 0.1, - d / 2, + u / 2, h / 2 + h / 2 * 0.1, - d / 2, - p, + u / 2, + f, 0.8 ), - { x: h / 2 + h / 2 * 0.1, y: -d / 2 }, - { x: -h / 2 - h / 2 * 0.1, y: -d / 2 }, - { x: -h / 2, y: -d / 2 }, - { x: -h / 2, y: d / 2 * 1.1 }, - { x: -h / 2, y: -d / 2 } + { x: h / 2 + h / 2 * 0.1, y: -u / 2 }, + { x: -h / 2 - h / 2 * 0.1, y: -u / 2 }, + { x: -h / 2, y: -u / 2 }, + { x: -h / 2, y: u / 2 * 1.1 }, + { x: -h / 2, y: -u / 2 } ], b = m.polygon( - x.map((w) => [w.x, w.y]), + C.map((T) => [T.x, T.y]), y ), k = n.insert(() => b, ":first-child"); - return k.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && k.selectAll("path").attr("style", g), i && t.look !== "handDrawn" && k.selectAll("path").attr("style", i), k.attr("transform", `translate(0,${-p / 2})`), c.attr( + return k.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && k.selectAll("path").attr("style", g), i && t.look !== "handDrawn" && k.selectAll("path").attr("style", i), k.attr("transform", `translate(0,${-f / 2})`), c.attr( "transform", - `translate(${-h / 2 + (t.padding ?? 0) + h / 2 * 0.1 / 2 - (l.x - (l.left ?? 0))},${-u / 2 + (t.padding ?? 0) - p / 2 - (l.y - (l.top ?? 0))})` - ), Z(t, k), t.intersect = function(w) { - return j.polygon(t, x, w); + `translate(${-h / 2 + (t.padding ?? 0) + h / 2 * 0.1 / 2 - (l.x - (l.left ?? 0))},${-d / 2 + (t.padding ?? 0) - f / 2 - (l.y - (l.top ?? 0))})` + ), K(t, k), t.intersect = function(T) { + return G.polygon(t, C, T); }, n; } -f(Eg, "linedWaveEdgedRect"); -async function $g(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(jp, "linedWaveEdgedRect"); +async function Xp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.padding ?? 0, o = t.look === "neo" ? 16 : s, a = t.look === "neo" ? 12 : s, n = t.look === "neo" ? 10 : 5; (t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - o * 2 - 2 * n, 10), t.height = Math.max((t?.height ?? 0) - a * 2 - 2 * n, 10)); - const { shapeSvg: l, bbox: c, label: h } = await st(e, t, tt(t)), u = (t?.width ? t?.width : c.width) + o * 2 + 2 * n, p = (t?.height ? t?.height : c.height) + a * 2 + 2 * n, d = u - 2 * n, g = p - 2 * n, m = -d / 2, y = -g / 2, { cssStyles: x } = t, b = U.svg(l), k = X(t, {}), w = [ + const { shapeSvg: l, bbox: c, label: h } = await rt(e, t, et(t)), d = (t?.width ? t?.width : c.width) + o * 2 + 2 * n, f = (t?.height ? t?.height : c.height) + a * 2 + 2 * n, u = d - 2 * n, g = f - 2 * n, m = -u / 2, y = -g / 2, { cssStyles: C } = t, b = j.svg(l), k = V(t, {}), T = [ { x: m - n, y: y + n }, { x: m - n, y: y + g + n }, - { x: m + d - n, y: y + g + n }, - { x: m + d - n, y: y + g }, - { x: m + d, y: y + g }, - { x: m + d, y: y + g - n }, - { x: m + d + n, y: y + g - n }, - { x: m + d + n, y: y - n }, + { x: m + u - n, y: y + g + n }, + { x: m + u - n, y: y + g }, + { x: m + u, y: y + g }, + { x: m + u, y: y + g - n }, + { x: m + u + n, y: y + g - n }, + { x: m + u + n, y: y - n }, { x: m + n, y: y - n }, { x: m + n, y }, { x: m, y }, { x: m, y: y + n } ], S = [ { x: m, y: y + n }, - { x: m + d - n, y: y + n }, - { x: m + d - n, y: y + g }, - { x: m + d, y: y + g }, - { x: m + d, y }, + { x: m + u - n, y: y + n }, + { x: m + u - n, y: y + g }, + { x: m + u, y: y + g }, + { x: m + u, y }, { x: m, y } ]; t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid"); - const v = pt(w); - let M = b.path(v, k); - const B = pt(S); - let N = b.path(B, k); - t.look !== "handDrawn" && (M = pn(M), N = pn(N)); - const D = l.insert("g", ":first-child"); - return D.insert(() => M), D.insert(() => N), D.attr("class", "basic label-container outer-path"), x && t.look !== "handDrawn" && D.selectAll("path").attr("style", x), i && t.look !== "handDrawn" && D.selectAll("path").attr("style", i), h.attr( + const _ = ft(T); + let A = b.path(_, k); + const v = ft(S); + let q = b.path(v, k); + t.look !== "handDrawn" && (A = Va(A), q = Va(q)); + const I = l.insert("g", ":first-child"); + return I.insert(() => A), I.insert(() => q), I.attr("class", "basic label-container outer-path"), C && t.look !== "handDrawn" && I.selectAll("path").attr("style", C), i && t.look !== "handDrawn" && I.selectAll("path").attr("style", i), h.attr( "transform", `translate(${-(c.width / 2) - n - (c.x - (c.left ?? 0))}, ${-(c.height / 2) + n - (c.y - (c.top ?? 0))})` - ), Z(t, D), t.intersect = function(O) { - return j.polygon(t, w, O); + ), K(t, I), t.intersect = function(R) { + return G.polygon(t, T, R); }, l; } -f($g, "multiRect"); -async function Og(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Xp, "multiRect"); +async function Vp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const { shapeSvg: s, bbox: o, label: a } = await st(e, t, tt(t)), n = t.padding ?? 0, l = t.look === "neo" ? 16 : n, c = t.look === "neo" ? 12 : n; + const { shapeSvg: s, bbox: o, label: a } = await rt(e, t, et(t)), n = t.padding ?? 0, l = t.look === "neo" ? 16 : n, c = t.look === "neo" ? 12 : n; let h = !0; (t.width || t.height) && (h = !1, t.width = (t?.width ?? 0) - l * 2, t.height = (t?.height ?? 0) - c * 3); - const u = Math.max(o.width, t?.width ?? 0) + l * 2, p = Math.max(o.height, t?.height ?? 0) + c * 3, d = t.look === "neo" ? p / 4 : p / 8, g = p + (h ? d / 2 : -d / 2), m = -u / 2, y = -g / 2, x = 10, { cssStyles: b } = t, k = sr( - m - x, - y + g + x, - m + u - x, - y + g + x, - d, + const d = Math.max(o.width, t?.width ?? 0) + l * 2, f = Math.max(o.height, t?.height ?? 0) + c * 3, u = t.look === "neo" ? f / 4 : f / 8, g = f + (h ? u / 2 : -u / 2), m = -d / 2, y = -g / 2, C = 10, { cssStyles: b } = t, k = rr( + m - C, + y + g + C, + m + d - C, + y + g + C, + u, 0.8 - ), w = k?.[k.length - 1], S = [ - { x: m - x, y: y + x }, - { x: m - x, y: y + g + x }, + ), T = k?.[k.length - 1], S = [ + { x: m - C, y: y + C }, + { x: m - C, y: y + g + C }, ...k, - { x: m + u - x, y: w.y - x }, - { x: m + u, y: w.y - x }, - { x: m + u, y: w.y - 2 * x }, - { x: m + u + x, y: w.y - 2 * x }, - { x: m + u + x, y: y - x }, - { x: m + x, y: y - x }, - { x: m + x, y }, + { x: m + d - C, y: T.y - C }, + { x: m + d, y: T.y - C }, + { x: m + d, y: T.y - 2 * C }, + { x: m + d + C, y: T.y - 2 * C }, + { x: m + d + C, y: y - C }, + { x: m + C, y: y - C }, + { x: m + C, y }, { x: m, y }, - { x: m, y: y + x } - ], v = [ - { x: m, y: y + x }, - { x: m + u - x, y: y + x }, - { x: m + u - x, y: w.y - x }, - { x: m + u, y: w.y - x }, - { x: m + u, y }, + { x: m, y: y + C } + ], _ = [ + { x: m, y: y + C }, + { x: m + d - C, y: y + C }, + { x: m + d - C, y: T.y - C }, + { x: m + d, y: T.y - C }, + { x: m + d, y }, { x: m, y } - ], M = U.svg(s), B = X(t, {}); - t.look !== "handDrawn" && (B.roughness = 0, B.fillStyle = "solid"); - const N = pt(S), D = M.path(N, B), O = pt(v), W = M.path(O, B), z = s.insert(() => D, ":first-child"); - return z.insert(() => W), z.attr("class", "basic label-container outer-path"), b && t.look !== "handDrawn" && z.selectAll("path").attr("style", b), i && t.look !== "handDrawn" && z.selectAll("path").attr("style", i), z.attr("transform", `translate(0,${-d / 2})`), a.attr( + ], A = j.svg(s), v = V(t, {}); + t.look !== "handDrawn" && (v.roughness = 0, v.fillStyle = "solid"); + const q = ft(S), I = A.path(q, v), R = ft(_), H = A.path(R, v), W = s.insert(() => I, ":first-child"); + return W.insert(() => H), W.attr("class", "basic label-container outer-path"), b && t.look !== "handDrawn" && W.selectAll("path").attr("style", b), i && t.look !== "handDrawn" && W.selectAll("path").attr("style", i), W.attr("transform", `translate(0,${-u / 2})`), a.attr( "transform", - `translate(${-(o.width / 2) - x - (o.x - (o.left ?? 0))}, ${-(o.height / 2) + x - d / 2 - (o.y - (o.top ?? 0))})` - ), Z(t, z), t.intersect = function(I) { - return j.polygon(t, S, I); + `translate(${-(o.width / 2) - C - (o.x - (o.left ?? 0))}, ${-(o.height / 2) + C - u / 2 - (o.y - (o.top ?? 0))})` + ), K(t, W), t.intersect = function(M) { + return G.polygon(t, S, M); }, s; } -f(Og, "multiWaveEdgedRectangle"); -async function Ig(e, t, { config: { themeVariables: r } }) { - const { labelStyles: i, nodeStyles: s } = V(t); - t.labelStyle = i, t.useHtmlLabels || Vt(wt()) || (t.centerLabel = !0); - const { shapeSvg: a, bbox: n, label: l } = await st(e, t, tt(t)), c = Math.max(n.width + (t.padding ?? 0) * 2, t?.width ?? 0), h = Math.max(n.height + (t.padding ?? 0) * 2, t?.height ?? 0), u = -c / 2, p = -h / 2, { cssStyles: d } = t, g = U.svg(a), m = X(t, { +p(Vp, "multiWaveEdgedRectangle"); +async function Zp(e, t, { config: { themeVariables: r } }) { + const { labelStyles: i, nodeStyles: s } = Z(t); + t.labelStyle = i, t.useHtmlLabels || Vt(Tt()) || (t.centerLabel = !0); + const { shapeSvg: a, bbox: n, label: l } = await rt(e, t, et(t)), c = Math.max(n.width + (t.padding ?? 0) * 2, t?.width ?? 0), h = Math.max(n.height + (t.padding ?? 0) * 2, t?.height ?? 0), d = -c / 2, f = -h / 2, { cssStyles: u } = t, g = j.svg(a), m = V(t, { fill: r.noteBkgColor, stroke: r.noteBorderColor }); t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid"); - const y = g.rectangle(u, p, c, h, m), x = a.insert(() => y, ":first-child"); - return x.attr("class", "basic label-container outer-path"), l.attr("class", "label noteLabel"), d && t.look !== "handDrawn" && x.selectAll("path").attr("style", d), s && t.look !== "handDrawn" && x.selectAll("path").attr("style", s), l.attr( + const y = g.rectangle(d, f, c, h, m), C = a.insert(() => y, ":first-child"); + return C.attr("class", "basic label-container outer-path"), l.attr("class", "label noteLabel"), u && t.look !== "handDrawn" && C.selectAll("path").attr("style", u), s && t.look !== "handDrawn" && C.selectAll("path").attr("style", s), l.attr( "transform", `translate(${-n.width / 2 - (n.x - (n.left ?? 0))}, ${-(n.height / 2) - (n.y - (n.top ?? 0))})` - ), Z(t, x), t.intersect = function(b) { - return j.rect(t, b); + ), K(t, C), t.intersect = function(b) { + return G.rect(t, b); }, a; } -f(Ig, "note"); -var D_ = /* @__PURE__ */ f((e, t, r) => [ +p(Zp, "note"); +var sT = /* @__PURE__ */ p((e, t, r) => [ `M${e + r / 2},${t}`, `L${e + r},${t - r / 2}`, `L${e + r / 2},${t - r}`, `L${e},${t - r / 2}`, "Z" ].join(" "), "createDecisionBoxPathD"); -async function Dg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +async function Kp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const { shapeSvg: s, bbox: o } = await st(e, t, tt(t)), a = o.width + (t.padding ?? 0), n = o.height + (t.padding ?? 0), l = a + n, c = 0.5, h = [ + const { shapeSvg: s, bbox: o } = await rt(e, t, et(t)), a = o.width + (t.padding ?? 0), n = o.height + (t.padding ?? 0), l = a + n, c = 0.5, h = [ { x: l / 2, y: 0 }, { x: l, y: -l / 2 }, { x: l / 2, y: -l }, { x: 0, y: -l / 2 } ]; - let u; - const { cssStyles: p } = t; + let d; + const { cssStyles: f } = t; if (t.look === "handDrawn") { - const d = U.svg(s), g = X(t, {}), m = D_(0, 0, l), y = d.path(m, g); - u = s.insert(() => y, ":first-child").attr("transform", `translate(${-l / 2 + c}, ${l / 2})`), p && u.attr("style", p); + const u = j.svg(s), g = V(t, {}), m = sT(0, 0, l), y = u.path(m, g); + d = s.insert(() => y, ":first-child").attr("transform", `translate(${-l / 2 + c}, ${l / 2})`), f && d.attr("style", f); } else - u = Xe(s, l, l, h), u.attr("transform", `translate(${-l / 2 + c}, ${l / 2})`); - return i && u.attr("style", i), Z(t, u), t.calcIntersect = function(d, g) { - const m = d.width, y = [ + d = Ye(s, l, l, h), d.attr("transform", `translate(${-l / 2 + c}, ${l / 2})`); + return i && d.attr("style", i), K(t, d), t.calcIntersect = function(u, g) { + const m = u.width, y = [ { x: m / 2, y: 0 }, { x: m, y: -m / 2 }, { x: m / 2, y: -m }, { x: 0, y: -m / 2 } - ], x = j.polygon(d, y, g); - return { x: x.x - 0.5, y: x.y - 0.5 }; - }, t.intersect = function(d) { - return this.calcIntersect(t, d); + ], C = G.polygon(u, y, g); + return { x: C.x - 0.5, y: C.y - 0.5 }; + }, t.intersect = function(u) { + return this.calcIntersect(t, u); }, s; } -f(Dg, "question"); -async function Pg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Kp, "question"); +async function Qp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t.padding ?? 0, o = t.look === "neo" ? 21 : s ?? 0, a = t.look === "neo" ? 12 : s ?? 0, { shapeSvg: n, bbox: l, label: c } = await st(e, t, tt(t)), h = (t?.width ?? l.width) + (t.look === "neo" ? o * 2 : o), u = (t?.height ?? l.height) + (t.look === "neo" ? a * 2 : a), p = -h / 2, d = -u / 2, g = d / 2, m = [ - { x: p + g, y: d }, - { x: p, y: 0 }, - { x: p + g, y: -d }, - { x: -p, y: -d }, - { x: -p, y: d } - ], { cssStyles: y } = t, x = U.svg(n), b = X(t, {}); + const s = t.padding ?? 0, o = t.look === "neo" ? 21 : s ?? 0, a = t.look === "neo" ? 12 : s ?? 0, { shapeSvg: n, bbox: l, label: c } = await rt(e, t, et(t)), h = (t?.width ?? l.width) + (t.look === "neo" ? o * 2 : o), d = (t?.height ?? l.height) + (t.look === "neo" ? a * 2 : a), f = -h / 2, u = -d / 2, g = u / 2, m = [ + { x: f + g, y: u }, + { x: f, y: 0 }, + { x: f + g, y: -u }, + { x: -f, y: -u }, + { x: -f, y: u } + ], { cssStyles: y } = t, C = j.svg(n), b = V(t, {}); t.look !== "handDrawn" && (b.roughness = 0, b.fillStyle = "solid"); - const k = pt(m), w = x.path(k, b), S = n.insert(() => w, ":first-child"); + const k = ft(m), T = C.path(k, b), S = n.insert(() => T, ":first-child"); return S.attr("class", "basic label-container outer-path"), y && t.look !== "handDrawn" && S.selectAll("path").attr("style", y), i && t.look !== "handDrawn" && S.selectAll("path").attr("style", i), S.attr("transform", `translate(${-g / 2},0)`), c.attr( "transform", `translate(${-g / 2 - l.width / 2 - (l.x - (l.left ?? 0))}, ${-(l.height / 2) - (l.y - (l.top ?? 0))})` - ), Z(t, S), t.intersect = function(v) { - return j.polygon(t, m, v); + ), K(t, S), t.intersect = function(_) { + return G.polygon(t, m, _); }, n; } -f(Pg, "rect_left_inv_arrow"); -async function Rg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Qp, "rect_left_inv_arrow"); +async function Jp(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; let s; t.cssClasses ? s = "node " + t.cssClasses : s = "node default"; - const o = e.insert("g").attr("class", s).attr("id", t.domId || t.id), a = o.insert("g"), n = o.insert("g").attr("class", "label").attr("style", i), l = t.description, c = t.label, h = await Ke(n, c, t.labelStyle, !0, !0); - let u = { width: 0, height: 0 }; + const o = e.insert("g").attr("class", s).attr("id", t.domId || t.id), a = o.insert("g"), n = o.insert("g").attr("class", "label").attr("style", i), l = t.description, c = t.label, h = await Ve(n, c, t.labelStyle, !0, !0); + let d = { width: 0, height: 0 }; if (Vt(gt())) { - const B = h.children[0], N = ct(h); - u = B.getBoundingClientRect(), N.attr("width", u.width), N.attr("height", u.height); + const v = h.children[0], q = ht(h); + d = v.getBoundingClientRect(), q.attr("width", d.width), q.attr("height", d.height); } - R.info("Text 2", l); - const p = l || [], d = h.getBBox(), g = await Ke( + P.info("Text 2", l); + const f = l || [], u = h.getBBox(), g = await Ve( n, - Array.isArray(p) ? p.join("
    ") : p, + Array.isArray(f) ? f.join("
    ") : f, t.labelStyle, !0, !0 - ), m = g.children[0], y = ct(g); - u = m.getBoundingClientRect(), y.attr("width", u.width), y.attr("height", u.height); - const x = (t.padding || 0) / 2; - ct(g).attr( + ), m = g.children[0], y = ht(g); + d = m.getBoundingClientRect(), y.attr("width", d.width), y.attr("height", d.height); + const C = (t.padding || 0) / 2; + ht(g).attr( "transform", - "translate( " + (u.width > d.width ? 0 : (d.width - u.width) / 2) + ", " + (d.height + x + 5) + ")" - ), ct(h).attr( + "translate( " + (d.width > u.width ? 0 : (u.width - d.width) / 2) + ", " + (u.height + C + 5) + ")" + ), ht(h).attr( "transform", - "translate( " + (u.width < d.width ? 0 : -(d.width - u.width) / 2) + ", 0)" - ), u = n.node().getBBox(), n.attr( + "translate( " + (d.width < u.width ? 0 : -(u.width - d.width) / 2) + ", 0)" + ), d = n.node().getBBox(), n.attr( "transform", - "translate(" + -u.width / 2 + ", " + (-u.height / 2 - x + 3) + ")" + "translate(" + -d.width / 2 + ", " + (-d.height / 2 - C + 3) + ")" ); - const b = u.width + (t.padding || 0), k = u.height + (t.padding || 0), w = -u.width / 2 - x, S = -u.height / 2 - x; - let v, M; + const b = d.width + (t.padding || 0), k = d.height + (t.padding || 0), T = -d.width / 2 - C, S = -d.height / 2 - C; + let _, A; if (t.look === "handDrawn") { - const B = U.svg(o), N = X(t, {}), D = B.path( - ar(w, S, b, k, t.rx || 0), - N - ), O = B.line( - -u.width / 2 - x, - -u.height / 2 - x + d.height + x, - u.width / 2 + x, - -u.height / 2 - x + d.height + x, - N + const v = j.svg(o), q = V(t, {}), I = v.path( + ir(T, S, b, k, t.rx || 0), + q + ), R = v.line( + -d.width / 2 - C, + -d.height / 2 - C + u.height + C, + d.width / 2 + C, + -d.height / 2 - C + u.height + C, + q ); - M = o.insert(() => (R.debug("Rough node insert CXC", D), O), ":first-child"), v = o.insert(() => (R.debug("Rough node insert CXC", D), D), ":first-child"); + A = o.insert(() => (P.debug("Rough node insert CXC", I), R), ":first-child"), _ = o.insert(() => (P.debug("Rough node insert CXC", I), I), ":first-child"); } else - v = a.insert("rect", ":first-child"), M = a.insert("line"), v.attr("class", "outer title-state").attr("style", i).attr("x", -u.width / 2 - x).attr("y", -u.height / 2 - x).attr("width", u.width + (t.padding || 0)).attr("height", u.height + (t.padding || 0)), M.attr("class", "divider").attr("x1", -u.width / 2 - x).attr("x2", u.width / 2 + x).attr("y1", -u.height / 2 - x + d.height + x).attr("y2", -u.height / 2 - x + d.height + x); - return Z(t, v), t.intersect = function(B) { - return j.rect(t, B); + _ = a.insert("rect", ":first-child"), A = a.insert("line"), _.attr("class", "outer title-state").attr("style", i).attr("x", -d.width / 2 - C).attr("y", -d.height / 2 - C).attr("width", d.width + (t.padding || 0)).attr("height", d.height + (t.padding || 0)), A.attr("class", "divider").attr("x1", -d.width / 2 - C).attr("x2", d.width / 2 + C).attr("y1", -d.height / 2 - C + u.height + C).attr("y2", -d.height / 2 - C + u.height + C); + return K(t, _), t.intersect = function(v) { + return G.rect(t, v); }, o; } -f(Rg, "rectWithTitle"); -async function Ng(e, t, { config: { themeVariables: r } }) { +p(Jp, "rectWithTitle"); +async function tg(e, t, { config: { themeVariables: r } }) { const i = r?.radius ?? 5, s = { rx: i, ry: i, labelPaddingX: (t?.padding ?? 0) * 1, labelPaddingY: (t?.padding ?? 0) * 1 }; - return ns(e, t, s); + return ei(e, t, s); } -f(Ng, "roundedRect"); -var cr = 8; -async function qg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(tg, "roundedRect"); +var nr = 8; +async function eg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t.look === "neo" ? 16 : t.padding ?? 0, o = t.look === "neo" ? 12 : t.padding ?? 0, { shapeSvg: a, bbox: n, label: l } = await st(e, t, tt(t)), c = (t?.width ?? n.width) + s * 2 + (t.look === "neo" ? cr : cr * 2), h = (t?.height ?? n.height) + o * 2, u = c - cr, p = h, d = cr - c / 2, g = -h / 2, { cssStyles: m } = t, y = U.svg(a), x = X(t, {}); - t.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid"); + const s = t.look === "neo" ? 16 : t.padding ?? 0, o = t.look === "neo" ? 12 : t.padding ?? 0, { shapeSvg: a, bbox: n, label: l } = await rt(e, t, et(t)), c = (t?.width ?? n.width) + s * 2 + (t.look === "neo" ? nr : nr * 2), h = (t?.height ?? n.height) + o * 2, d = c - nr, f = h, u = nr - c / 2, g = -h / 2, { cssStyles: m } = t, y = j.svg(a), C = V(t, {}); + t.look !== "handDrawn" && (C.roughness = 0, C.fillStyle = "solid"); const b = [ - { x: d, y: g }, - { x: d + u, y: g }, - { x: d + u, y: g + p }, - { x: d - cr, y: g + p }, - { x: d - cr, y: g }, - { x: d, y: g }, - { x: d, y: g + p } + { x: u, y: g }, + { x: u + d, y: g }, + { x: u + d, y: g + f }, + { x: u - nr, y: g + f }, + { x: u - nr, y: g }, + { x: u, y: g }, + { x: u, y: g + f } ], k = y.polygon( b.map((S) => [S.x, S.y]), - x - ), w = a.insert(() => k, ":first-child"); - return w.attr("class", "basic label-container outer-path").attr("style", Dt(m)), i && t.look !== "handDrawn" && w.selectAll("path").attr("style", i), m && t.look !== "handDrawn" && w.selectAll("path").attr("style", i), l.attr( + C + ), T = a.insert(() => k, ":first-child"); + return T.attr("class", "basic label-container outer-path").attr("style", Dt(m)), i && t.look !== "handDrawn" && T.selectAll("path").attr("style", i), m && t.look !== "handDrawn" && T.selectAll("path").attr("style", i), l.attr( "transform", - `translate(${cr / 2 - n.width / 2 - (n.x - (n.left ?? 0))}, ${-(n.height / 2) - (n.y - (n.top ?? 0))})` - ), Z(t, w), t.intersect = function(S) { - return j.rect(t, S); + `translate(${nr / 2 - n.width / 2 - (n.x - (n.left ?? 0))}, ${-(n.height / 2) - (n.y - (n.top ?? 0))})` + ), K(t, T), t.intersect = function(S) { + return G.rect(t, S); }, a; } -f(qg, "shadedProcess"); -async function zg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(eg, "shadedProcess"); +async function rg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.padding ?? 0, o = t.look === "neo" ? 16 : s, a = t.look === "neo" ? 12 : s; (t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - o * 2, 10), t.height = Math.max((t?.height ?? 0) / 1.5 - a * 2, 10)); - const { shapeSvg: n, bbox: l, label: c } = await st(e, t, tt(t)), h = (t?.width ? t?.width : l.width) + o * 2, u = ((t?.height ? t?.height : l.height) + a * 2) * 1.5, p = h, d = u / 1.5, g = -p / 2, m = -d / 2, { cssStyles: y } = t, x = U.svg(n), b = X(t, {}); + const { shapeSvg: n, bbox: l, label: c } = await rt(e, t, et(t)), h = (t?.width ? t?.width : l.width) + o * 2, d = ((t?.height ? t?.height : l.height) + a * 2) * 1.5, f = h, u = d / 1.5, g = -f / 2, m = -u / 2, { cssStyles: y } = t, C = j.svg(n), b = V(t, {}); t.look !== "handDrawn" && (b.roughness = 0, b.fillStyle = "solid"); const k = [ { x: g, y: m }, - { x: g, y: m + d }, - { x: g + p, y: m + d }, - { x: g + p, y: m - d / 2 } - ], w = pt(k), S = x.path(w, b), v = n.insert(() => S, ":first-child"); - return v.attr("class", "basic label-container outer-path"), y && t.look !== "handDrawn" && v.selectChildren("path").attr("style", y), i && t.look !== "handDrawn" && v.selectChildren("path").attr("style", i), v.attr("transform", `translate(0, ${d / 4})`), c.attr( + { x: g, y: m + u }, + { x: g + f, y: m + u }, + { x: g + f, y: m - u / 2 } + ], T = ft(k), S = C.path(T, b), _ = n.insert(() => S, ":first-child"); + return _.attr("class", "basic label-container outer-path"), y && t.look !== "handDrawn" && _.selectChildren("path").attr("style", y), i && t.look !== "handDrawn" && _.selectChildren("path").attr("style", i), _.attr("transform", `translate(0, ${u / 4})`), c.attr( "transform", - `translate(${-p / 2 + (t.padding ?? 0) - (l.x - (l.left ?? 0))}, ${-d / 4 + (t.padding ?? 0) - (l.y - (l.top ?? 0))})` - ), Z(t, v), t.intersect = function(M) { - return j.polygon(t, k, M); + `translate(${-f / 2 + (t.padding ?? 0) - (l.x - (l.left ?? 0))}, ${-u / 4 + (t.padding ?? 0) - (l.y - (l.top ?? 0))})` + ), K(t, _), t.intersect = function(A) { + return G.polygon(t, k, A); }, n; } -f(zg, "slopedRect"); -async function Wg(e, t) { +p(rg, "slopedRect"); +async function ig(e, t) { const r = t.padding ?? 0, i = t.look === "neo" ? 16 : r * 2, s = t.look === "neo" ? 12 : r, o = { rx: 0, ry: 0, labelPaddingX: t.labelPaddingX ?? i, labelPaddingY: s }; - return ns(e, t, o); + return ei(e, t, o); } -f(Wg, "squareRect"); -async function Hg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(ig, "squareRect"); +async function sg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t.padding ?? 0, o = t.look === "neo" ? 20 : s, a = t.look === "neo" ? 12 : s, { shapeSvg: n, bbox: l } = await st(e, t, tt(t)), c = l.height + (t.look === "neo" ? a * 2 : a), h = l.width + c / 4 + (t.look === "neo" ? o * 2 : o), u = c / 2, { cssStyles: p } = t, d = U.svg(n), g = X(t, {}); + const s = t.padding ?? 0, o = t.look === "neo" ? 20 : s, a = t.look === "neo" ? 12 : s, { shapeSvg: n, bbox: l } = await rt(e, t, et(t)), c = l.height + (t.look === "neo" ? a * 2 : a), h = l.width + c / 4 + (t.look === "neo" ? o * 2 : o), d = c / 2, { cssStyles: f } = t, u = j.svg(n), g = V(t, {}); t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid"); const m = [ - { x: -h / 2 + u, y: -c / 2 }, - { x: h / 2 - u, y: -c / 2 }, - ...Xi(-h / 2 + u, 0, u, 50, 90, 270), - { x: h / 2 - u, y: c / 2 }, - ...Xi(h / 2 - u, 0, u, 50, 270, 450) - ], y = pt(m), x = d.path(y, g), b = n.insert(() => x, ":first-child"); - return b.attr("class", "basic label-container outer-path"), p && t.look !== "handDrawn" && b.selectChildren("path").attr("style", p), i && t.look !== "handDrawn" && b.selectChildren("path").attr("style", i), Z(t, b), t.intersect = function(k) { - return j.polygon(t, m, k); + { x: -h / 2 + d, y: -c / 2 }, + { x: h / 2 - d, y: -c / 2 }, + ...Pi(-h / 2 + d, 0, d, 50, 90, 270), + { x: h / 2 - d, y: c / 2 }, + ...Pi(h / 2 - d, 0, d, 50, 270, 450) + ], y = ft(m), C = u.path(y, g), b = n.insert(() => C, ":first-child"); + return b.attr("class", "basic label-container outer-path"), f && t.look !== "handDrawn" && b.selectChildren("path").attr("style", f), i && t.look !== "handDrawn" && b.selectChildren("path").attr("style", i), K(t, b), t.intersect = function(k) { + return G.polygon(t, m, k); }, n; } -f(Hg, "stadium"); -async function Yg(e, t) { +p(sg, "stadium"); +async function og(e, t) { const r = { rx: t.look === "neo" ? 3 : 5, ry: t.look === "neo" ? 3 : 5 }; - return ns(e, t, r); + return ei(e, t, r); } -f(Yg, "state"); -function jg(e, t, { config: { themeVariables: r } }) { - const { labelStyles: i, nodeStyles: s } = V(t); +p(og, "state"); +function ag(e, t, { config: { themeVariables: r } }) { + const { labelStyles: i, nodeStyles: s } = Z(t); t.labelStyle = i; const { cssStyles: o } = t, { lineColor: a, stateBorder: n, nodeBorder: l, nodeShadow: c } = r; (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); - const h = e.insert("g").attr("class", "node default").attr("id", t.domId ?? t.id), u = U.svg(h), p = X(t, {}); - t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid"); - const d = u.circle(0, 0, t.width, { - ...p, + const h = e.insert("g").attr("class", "node default").attr("id", t.domId ?? t.id), d = j.svg(h), f = V(t, {}); + t.look !== "handDrawn" && (f.roughness = 0, f.fillStyle = "solid"); + const u = d.circle(0, 0, t.width, { + ...f, stroke: a, strokeWidth: 2 - }), g = n ?? l, m = (t.width ?? 0) * 5 / 14, y = u.circle(0, 0, m, { - ...p, + }), g = n ?? l, m = (t.width ?? 0) * 5 / 14, y = d.circle(0, 0, m, { + ...f, fill: g, stroke: g, strokeWidth: 2, fillStyle: "solid" - }), x = h.insert(() => d, ":first-child"); - if (x.insert(() => y), t.look !== "handDrawn" && x.attr("class", "outer-path"), o && x.selectAll("path").attr("style", o), s && x.selectAll("path").attr("style", s), t.width < 25 && c && t.look !== "handDrawn") { + }), C = h.insert(() => u, ":first-child"); + if (C.insert(() => y), t.look !== "handDrawn" && C.attr("class", "outer-path"), o && C.selectAll("path").attr("style", o), s && C.selectAll("path").attr("style", s), t.width < 25 && c && t.look !== "handDrawn") { const b = e.node()?.ownerSVGElement?.id ?? "", k = b ? `${b}-drop-shadow-small` : "drop-shadow-small"; - x.attr("style", `filter:url(#${k})`); + C.attr("style", `filter:url(#${k})`); } - return Z(t, x), t.intersect = function(b) { - return j.circle(t, (t.width ?? 0) / 2, b); + return K(t, C), t.intersect = function(b) { + return G.circle(t, (t.width ?? 0) / 2, b); }, h; } -f(jg, "stateEnd"); -function Ug(e, t, { config: { themeVariables: r } }) { +p(ag, "stateEnd"); +function ng(e, t, { config: { themeVariables: r } }) { const { lineColor: i, nodeShadow: s } = r; (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); const o = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id); let a; if (t.look === "handDrawn") { - const l = U.svg(o).circle(0, 0, t.width, jw(i)); + const l = j.svg(o).circle(0, 0, t.width, f2(i)); a = o.insert(() => l), a.attr("class", "state-start").attr("r", (t.width ?? 7) / 2).attr("width", t.width ?? 14).attr("height", t.height ?? 14); } else a = o.insert("circle", ":first-child"), a.attr("class", "state-start").attr("r", (t.width ?? 7) / 2).attr("width", t.width ?? 14).attr("height", t.height ?? 14); @@ -12726,477 +12654,477 @@ function Ug(e, t, { config: { themeVariables: r } }) { const n = e.node()?.ownerSVGElement?.id ?? "", l = n ? `${n}-drop-shadow-small` : "drop-shadow-small"; a.attr("style", `filter:url(#${l})`); } - return Z(t, a), t.intersect = function(n) { - return j.circle(t, (t.width ?? 7) / 2, n); + return K(t, a), t.intersect = function(n) { + return G.circle(t, (t.width ?? 7) / 2, n); }, o; } -f(Ug, "stateStart"); -var Rr = 8; -async function Gg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(ng, "stateStart"); +var Ir = 8; +async function lg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t?.padding ?? 8, o = t.look === "neo" ? 28 : s, a = t.look === "neo" ? 12 : s, { shapeSvg: n, bbox: l } = await st(e, t, tt(t)), c = (t?.width ?? l.width) + 2 * Rr + o, h = (t?.height ?? l.height) + a, u = c - 2 * Rr, p = h, d = -c / 2, g = -h / 2, m = [ + const s = t?.padding ?? 8, o = t.look === "neo" ? 28 : s, a = t.look === "neo" ? 12 : s, { shapeSvg: n, bbox: l } = await rt(e, t, et(t)), c = (t?.width ?? l.width) + 2 * Ir + o, h = (t?.height ?? l.height) + a, d = c - 2 * Ir, f = h, u = -c / 2, g = -h / 2, m = [ { x: 0, y: 0 }, - { x: u, y: 0 }, - { x: u, y: -p }, - { x: 0, y: -p }, + { x: d, y: 0 }, + { x: d, y: -f }, + { x: 0, y: -f }, { x: 0, y: 0 }, { x: -8, y: 0 }, - { x: u + 8, y: 0 }, - { x: u + 8, y: -p }, - { x: -8, y: -p }, + { x: d + 8, y: 0 }, + { x: d + 8, y: -f }, + { x: -8, y: -f }, { x: -8, y: 0 } ]; if (t.look === "handDrawn") { - const y = U.svg(n), x = X(t, {}), b = y.rectangle(d, g, u + 16, p, x), k = y.line(d + Rr, g, d + Rr, g + p, x), w = y.line(d + Rr + u, g, d + Rr + u, g + p, x); - n.insert(() => k, ":first-child"), n.insert(() => w, ":first-child"); - const S = n.insert(() => b, ":first-child"), { cssStyles: v } = t; - S.attr("class", "basic label-container").attr("style", Dt(v)), Z(t, S); + const y = j.svg(n), C = V(t, {}), b = y.rectangle(u, g, d + 16, f, C), k = y.line(u + Ir, g, u + Ir, g + f, C), T = y.line(u + Ir + d, g, u + Ir + d, g + f, C); + n.insert(() => k, ":first-child"), n.insert(() => T, ":first-child"); + const S = n.insert(() => b, ":first-child"), { cssStyles: _ } = t; + S.attr("class", "basic label-container").attr("style", Dt(_)), K(t, S); } else { - const y = Xe(n, u, p, m); - i && y.attr("style", i), Z(t, y); + const y = Ye(n, d, f, m); + i && y.attr("style", i), K(t, y); } return t.intersect = function(y) { - return j.polygon(t, m, y); + return G.polygon(t, m, y); }, n; } -f(Gg, "subroutine"); -var ba = 0.2; -async function Xg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(lg, "subroutine"); +var ra = 0.2; +async function hg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.padding ?? 0, o = t.look === "neo" ? 16 : s, a = t.look === "neo" ? 12 : s; (t.width || t.height) && (t.height = Math.max((t?.height ?? 0) - a * 2, 10), t.width = Math.max( - (t?.width ?? 0) - o * 2 - ba * (t.height + a * 2), + (t?.width ?? 0) - o * 2 - ra * (t.height + a * 2), 10 )); - const { shapeSvg: n, bbox: l } = await st(e, t, tt(t)), c = (t?.height ? t?.height : l.height) + a * 2, h = ba * c, u = ba * c, d = (t?.width ? t?.width : l.width) + o * 2 + h - h, g = c, m = -d / 2, y = -g / 2, { cssStyles: x } = t, b = U.svg(n), k = X(t, {}), w = [ + const { shapeSvg: n, bbox: l } = await rt(e, t, et(t)), c = (t?.height ? t?.height : l.height) + a * 2, h = ra * c, d = ra * c, u = (t?.width ? t?.width : l.width) + o * 2 + h - h, g = c, m = -u / 2, y = -g / 2, { cssStyles: C } = t, b = j.svg(n), k = V(t, {}), T = [ { x: m - h / 2, y }, - { x: m + d + h / 2, y }, - { x: m + d + h / 2, y: y + g }, + { x: m + u + h / 2, y }, + { x: m + u + h / 2, y: y + g }, { x: m - h / 2, y: y + g } ], S = [ - { x: m + d - h / 2, y: y + g }, - { x: m + d + h / 2, y: y + g }, - { x: m + d + h / 2, y: y + g - u } + { x: m + u - h / 2, y: y + g }, + { x: m + u + h / 2, y: y + g }, + { x: m + u + h / 2, y: y + g - d } ]; t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid"); - const v = pt(w), M = b.path(v, k), B = pt(S), N = b.path(B, { ...k, fillStyle: "solid" }), D = n.insert(() => N, ":first-child"); - return D.insert(() => M, ":first-child"), D.attr("class", "basic label-container outer-path"), x && t.look !== "handDrawn" && D.selectAll("path").attr("style", x), i && t.look !== "handDrawn" && D.selectAll("path").attr("style", i), Z(t, D), t.intersect = function(O) { - return j.polygon(t, w, O); + const _ = ft(T), A = b.path(_, k), v = ft(S), q = b.path(v, { ...k, fillStyle: "solid" }), I = n.insert(() => q, ":first-child"); + return I.insert(() => A, ":first-child"), I.attr("class", "basic label-container outer-path"), C && t.look !== "handDrawn" && I.selectAll("path").attr("style", C), i && t.look !== "handDrawn" && I.selectAll("path").attr("style", i), K(t, I), t.intersect = function(R) { + return G.polygon(t, T, R); }, n; } -f(Xg, "taggedRect"); -async function Vg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(hg, "taggedRect"); +async function cg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const { shapeSvg: s, bbox: o, label: a } = await st(e, t, tt(t)), n = Math.max(o.width + (t.padding ?? 0) * 2, t?.width ?? 0), l = Math.max(o.height + (t.padding ?? 0) * 2, t?.height ?? 0), c = l / 8, h = 0.2 * n, u = 0.2 * l, p = l + c, { cssStyles: d } = t, g = U.svg(s), m = X(t, {}); + const { shapeSvg: s, bbox: o, label: a } = await rt(e, t, et(t)), n = Math.max(o.width + (t.padding ?? 0) * 2, t?.width ?? 0), l = Math.max(o.height + (t.padding ?? 0) * 2, t?.height ?? 0), c = l / 8, h = 0.2 * n, d = 0.2 * l, f = l + c, { cssStyles: u } = t, g = j.svg(s), m = V(t, {}); t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid"); const y = [ - { x: -n / 2 - n / 2 * 0.1, y: p / 2 }, - ...sr( + { x: -n / 2 - n / 2 * 0.1, y: f / 2 }, + ...rr( -n / 2 - n / 2 * 0.1, - p / 2, + f / 2, n / 2 + n / 2 * 0.1, - p / 2, + f / 2, c, 0.8 ), - { x: n / 2 + n / 2 * 0.1, y: -p / 2 }, - { x: -n / 2 - n / 2 * 0.1, y: -p / 2 } - ], x = -n / 2 + n / 2 * 0.1, b = -p / 2 - u * 0.4, k = [ - { x: x + n - h, y: (b + l) * 1.3 }, - { x: x + n, y: b + l - u }, - { x: x + n, y: (b + l) * 0.9 }, - ...sr( - x + n, + { x: n / 2 + n / 2 * 0.1, y: -f / 2 }, + { x: -n / 2 - n / 2 * 0.1, y: -f / 2 } + ], C = -n / 2 + n / 2 * 0.1, b = -f / 2 - d * 0.4, k = [ + { x: C + n - h, y: (b + l) * 1.3 }, + { x: C + n, y: b + l - d }, + { x: C + n, y: (b + l) * 0.9 }, + ...rr( + C + n, (b + l) * 1.25, - x + n - h, + C + n - h, (b + l) * 1.3, -l * 0.02, 0.5 ) - ], w = pt(y), S = g.path(w, m), v = pt(k), M = g.path(v, { + ], T = ft(y), S = g.path(T, m), _ = ft(k), A = g.path(_, { ...m, fillStyle: "solid" - }), B = s.insert(() => M, ":first-child"); - return B.insert(() => S, ":first-child"), B.attr("class", "basic label-container outer-path"), d && t.look !== "handDrawn" && B.selectAll("path").attr("style", d), i && t.look !== "handDrawn" && B.selectAll("path").attr("style", i), B.attr("transform", `translate(0,${-c / 2})`), a.attr( + }), v = s.insert(() => A, ":first-child"); + return v.insert(() => S, ":first-child"), v.attr("class", "basic label-container outer-path"), u && t.look !== "handDrawn" && v.selectAll("path").attr("style", u), i && t.look !== "handDrawn" && v.selectAll("path").attr("style", i), v.attr("transform", `translate(0,${-c / 2})`), a.attr( "transform", `translate(${-n / 2 + (t.padding ?? 0) - (o.x - (o.left ?? 0))},${-l / 2 + (t.padding ?? 0) - c / 2 - (o.y - (o.top ?? 0))})` - ), Z(t, B), t.intersect = function(N) { - return j.polygon(t, y, N); + ), K(t, v), t.intersect = function(q) { + return G.polygon(t, y, q); }, s; } -f(Vg, "taggedWaveEdgedRectangle"); -async function Zg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(cg, "taggedWaveEdgedRectangle"); +async function dg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const { shapeSvg: s, bbox: o } = await st(e, t, tt(t)), a = Math.max(o.width + (t.padding ?? 0), t?.width || 0), n = Math.max(o.height + (t.padding ?? 0), t?.height || 0), l = -a / 2, c = -n / 2, h = s.insert("rect", ":first-child"); - return h.attr("class", "text").attr("style", i).attr("rx", 0).attr("ry", 0).attr("x", l).attr("y", c).attr("width", a).attr("height", n), Z(t, h), t.intersect = function(u) { - return j.rect(t, u); + const { shapeSvg: s, bbox: o } = await rt(e, t, et(t)), a = Math.max(o.width + (t.padding ?? 0), t?.width || 0), n = Math.max(o.height + (t.padding ?? 0), t?.height || 0), l = -a / 2, c = -n / 2, h = s.insert("rect", ":first-child"); + return h.attr("class", "text").attr("style", i).attr("rx", 0).attr("ry", 0).attr("x", l).attr("y", c).attr("width", a).attr("height", n), K(t, h), t.intersect = function(d) { + return G.rect(t, d); }, s; } -f(Zg, "text"); -var P_ = /* @__PURE__ */ f((e, t, r, i, s, o) => `M${e},${t} +p(dg, "text"); +var oT = /* @__PURE__ */ p((e, t, r, i, s, o) => `M${e},${t} a${s},${o} 0,0,1 0,${-i} l${r},0 a${s},${o} 0,0,1 0,${i} M${r},${-i} a${s},${o} 0,0,0 0,${i} - l${-r},0`, "createCylinderPathD"), R_ = /* @__PURE__ */ f((e, t, r, i, s, o) => [ + l${-r},0`, "createCylinderPathD"), aT = /* @__PURE__ */ p((e, t, r, i, s, o) => [ `M${e},${t}`, `M${e + r},${t}`, `a${s},${o} 0,0,0 0,${-i}`, `l${-r},0`, `a${s},${o} 0,0,0 0,${i}`, `l${r},0` -].join(" "), "createOuterCylinderPathD"), N_ = /* @__PURE__ */ f((e, t, r, i, s, o) => [`M${e + r / 2},${-i / 2}`, `a${s},${o} 0,0,0 0,${i}`].join(" "), "createInnerCylinderPathD"), Tc = 5, wc = 10; -async function Kg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +].join(" "), "createOuterCylinderPathD"), nT = /* @__PURE__ */ p((e, t, r, i, s, o) => [`M${e + r / 2},${-i / 2}`, `a${s},${o} 0,0,0 0,${i}`].join(" "), "createInnerCylinderPathD"), Vh = 5, Zh = 10; +async function ug(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.padding ?? 0, o = t.look === "neo" ? 12 : s / 2; if (t.width || t.height) { const m = t.height ?? 0; - t.height = (t.height ?? 0) - o, t.height < Tc && (t.height = Tc); - const x = m / 2 / (2.5 + m / 50); - t.width = (t.width ?? 0) - o - x * 3, t.width < wc && (t.width = wc); + t.height = (t.height ?? 0) - o, t.height < Vh && (t.height = Vh); + const C = m / 2 / (2.5 + m / 50); + t.width = (t.width ?? 0) - o - C * 3, t.width < Zh && (t.width = Zh); } - const { shapeSvg: a, bbox: n, label: l } = await st(e, t, tt(t)), c = (t.height ? t.height : n.height) + o, h = c / 2, u = h / (2.5 + c / 50), p = (t.width ? t.width : n.width) + u + o, { cssStyles: d } = t; + const { shapeSvg: a, bbox: n, label: l } = await rt(e, t, et(t)), c = (t.height ? t.height : n.height) + o, h = c / 2, d = h / (2.5 + c / 50), f = (t.width ? t.width : n.width) + d + o, { cssStyles: u } = t; let g; if (t.look === "handDrawn") { - const m = U.svg(a), y = R_(0, 0, p, c, u, h), x = N_(0, 0, p, c, u, h), b = m.path(y, X(t, {})), k = m.path(x, X(t, { fill: "none" })); - g = a.insert(() => k, ":first-child"), g = a.insert(() => b, ":first-child"), g.attr("class", "basic label-container"), d && g.attr("style", d); + const m = j.svg(a), y = aT(0, 0, f, c, d, h), C = nT(0, 0, f, c, d, h), b = m.path(y, V(t, {})), k = m.path(C, V(t, { fill: "none" })); + g = a.insert(() => k, ":first-child"), g = a.insert(() => b, ":first-child"), g.attr("class", "basic label-container"), u && g.attr("style", u); } else { - const m = P_(0, 0, p, c, u, h); - g = a.insert("path", ":first-child").attr("d", m).attr("class", "basic label-container").attr("style", Dt(d)).attr("style", i), g.attr("class", "basic label-container outer-path"), d && g.selectAll("path").attr("style", d), i && g.selectAll("path").attr("style", i); + const m = oT(0, 0, f, c, d, h); + g = a.insert("path", ":first-child").attr("d", m).attr("class", "basic label-container").attr("style", Dt(u)).attr("style", i), g.attr("class", "basic label-container outer-path"), u && g.selectAll("path").attr("style", u), i && g.selectAll("path").attr("style", i); } - return g.attr("label-offset-x", u), g.attr("transform", `translate(${-p / 2}, ${c / 2} )`), l.attr( + return g.attr("label-offset-x", d), g.attr("transform", `translate(${-f / 2}, ${c / 2} )`), l.attr( "transform", - `translate(${-(n.width / 2) - u - (n.x - (n.left ?? 0))}, ${-(n.height / 2) - (n.y - (n.top ?? 0))})` - ), Z(t, g), t.intersect = function(m) { - const y = j.rect(t, m), x = y.y - (t.y ?? 0); - if (h != 0 && (Math.abs(x) < (t.height ?? 0) / 2 || Math.abs(x) == (t.height ?? 0) / 2 && Math.abs(y.x - (t.x ?? 0)) > (t.width ?? 0) / 2 - u)) { - let b = u * u * (1 - x * x / (h * h)); - b != 0 && (b = Math.sqrt(Math.abs(b))), b = u - b, m.x - (t.x ?? 0) > 0 && (b = -b), y.x += b; + `translate(${-(n.width / 2) - d - (n.x - (n.left ?? 0))}, ${-(n.height / 2) - (n.y - (n.top ?? 0))})` + ), K(t, g), t.intersect = function(m) { + const y = G.rect(t, m), C = y.y - (t.y ?? 0); + if (h != 0 && (Math.abs(C) < (t.height ?? 0) / 2 || Math.abs(C) == (t.height ?? 0) / 2 && Math.abs(y.x - (t.x ?? 0)) > (t.width ?? 0) / 2 - d)) { + let b = d * d * (1 - C * C / (h * h)); + b != 0 && (b = Math.sqrt(Math.abs(b))), b = d - b, m.x - (t.x ?? 0) > 0 && (b = -b), y.x += b; } return y; }, a; } -f(Kg, "tiltedCylinder"); -async function Qg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(ug, "tiltedCylinder"); +async function fg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t.padding ?? 0, o = (t.look === "neo", s), a = t.look === "neo" ? s * 2 : s, { shapeSvg: n, bbox: l } = await st(e, t, tt(t)), c = (t?.height ?? l.height) + o, h = (t?.width ?? l.width) + a, u = [ + const s = t.padding ?? 0, o = (t.look === "neo", s), a = t.look === "neo" ? s * 2 : s, { shapeSvg: n, bbox: l } = await rt(e, t, et(t)), c = (t?.height ?? l.height) + o, h = (t?.width ?? l.width) + a, d = [ { x: -3 * c / 6, y: 0 }, { x: h + 3 * c / 6, y: 0 }, { x: h, y: -c }, { x: 0, y: -c } ]; - let p; - const { cssStyles: d } = t; + let f; + const { cssStyles: u } = t; if (t.look === "handDrawn") { - const g = U.svg(n), m = X(t, {}), y = pt(u), x = g.path(y, m); - p = n.insert(() => x, ":first-child").attr("transform", `translate(${-h / 2}, ${c / 2})`), d && p.attr("style", d); + const g = j.svg(n), m = V(t, {}), y = ft(d), C = g.path(y, m); + f = n.insert(() => C, ":first-child").attr("transform", `translate(${-h / 2}, ${c / 2})`), u && f.attr("style", u); } else - p = Xe(n, h, c, u); - return i && p.attr("style", i), t.width = h, t.height = c, Z(t, p), t.intersect = function(g) { - return j.polygon(t, u, g); + f = Ye(n, h, c, d); + return i && f.attr("style", i), t.width = h, t.height = c, K(t, f), t.intersect = function(g) { + return G.polygon(t, d, g); }, n; } -f(Qg, "trapezoid"); -async function Jg(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(fg, "trapezoid"); +async function pg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.padding ?? 0, o = t.look === "neo" ? 16 : s, a = t.look === "neo" ? 12 : s, n = 15, l = 5; (t.width || t.height) && (t.height = (t.height ?? 0) - a * 2, t.height < l && (t.height = l), t.width = (t.width ?? 0) - o * 2, t.width < n && (t.width = n)); - const { shapeSvg: c, bbox: h } = await st(e, t, tt(t)), u = (t?.width ? t?.width : h.width) + o * 2, p = (t?.height ? t?.height : h.height) + a * 2, { cssStyles: d } = t, g = U.svg(c), m = X(t, {}); + const { shapeSvg: c, bbox: h } = await rt(e, t, et(t)), d = (t?.width ? t?.width : h.width) + o * 2, f = (t?.height ? t?.height : h.height) + a * 2, { cssStyles: u } = t, g = j.svg(c), m = V(t, {}); t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid"); const y = [ - { x: -u / 2 * 0.8, y: -p / 2 }, - { x: u / 2 * 0.8, y: -p / 2 }, - { x: u / 2, y: -p / 2 * 0.6 }, - { x: u / 2, y: p / 2 }, - { x: -u / 2, y: p / 2 }, - { x: -u / 2, y: -p / 2 * 0.6 } - ], x = pt(y), b = g.path(x, m), k = c.insert(() => b, ":first-child"); - return k.attr("class", "basic label-container outer-path"), d && t.look !== "handDrawn" && k.selectChildren("path").attr("style", d), i && t.look !== "handDrawn" && k.selectChildren("path").attr("style", i), Z(t, k), t.intersect = function(w) { - return j.polygon(t, y, w); + { x: -d / 2 * 0.8, y: -f / 2 }, + { x: d / 2 * 0.8, y: -f / 2 }, + { x: d / 2, y: -f / 2 * 0.6 }, + { x: d / 2, y: f / 2 }, + { x: -d / 2, y: f / 2 }, + { x: -d / 2, y: -f / 2 * 0.6 } + ], C = ft(y), b = g.path(C, m), k = c.insert(() => b, ":first-child"); + return k.attr("class", "basic label-container outer-path"), u && t.look !== "handDrawn" && k.selectChildren("path").attr("style", u), i && t.look !== "handDrawn" && k.selectChildren("path").attr("style", i), K(t, k), t.intersect = function(T) { + return G.polygon(t, y, T); }, c; } -f(Jg, "trapezoidalPentagon"); -var Sc = 10, _c = 10; -async function tm(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(pg, "trapezoidalPentagon"); +var Kh = 10, Qh = 10; +async function gg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.padding ?? 0, o = t.look === "neo" ? s * 2 : s; - (t.width || t.height) && (t.width = ((t?.width ?? 0) - o) / 2, t.width < _c && (t.width = _c), t.height = t?.height ?? 0, t.height < Sc && (t.height = Sc)); - const { shapeSvg: a, bbox: n, label: l } = await st(e, t, tt(t)), c = je(gt().flowchart?.htmlLabels), h = (t?.width ? t?.width : n.width) + o, u = t?.height ? t?.height : h + n.height, p = u, d = [ + (t.width || t.height) && (t.width = ((t?.width ?? 0) - o) / 2, t.width < Qh && (t.width = Qh), t.height = t?.height ?? 0, t.height < Kh && (t.height = Kh)); + const { shapeSvg: a, bbox: n, label: l } = await rt(e, t, et(t)), c = ze(gt().flowchart?.htmlLabels), h = (t?.width ? t?.width : n.width) + o, d = t?.height ? t?.height : h + n.height, f = d, u = [ { x: 0, y: 0 }, - { x: p, y: 0 }, - { x: p / 2, y: -u } - ], { cssStyles: g } = t, m = U.svg(a), y = X(t, {}); + { x: f, y: 0 }, + { x: f / 2, y: -d } + ], { cssStyles: g } = t, m = j.svg(a), y = V(t, {}); t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid"); - const x = pt(d), b = m.path(x, y), k = a.insert(() => b, ":first-child").attr("transform", `translate(${-u / 2}, ${u / 2})`).attr("class", "outer-path"); - return g && t.look !== "handDrawn" && k.selectChildren("path").attr("style", g), i && t.look !== "handDrawn" && k.selectChildren("path").attr("style", i), t.width = h, t.height = u, Z(t, k), l.attr( + const C = ft(u), b = m.path(C, y), k = a.insert(() => b, ":first-child").attr("transform", `translate(${-d / 2}, ${d / 2})`).attr("class", "outer-path"); + return g && t.look !== "handDrawn" && k.selectChildren("path").attr("style", g), i && t.look !== "handDrawn" && k.selectChildren("path").attr("style", i), t.width = h, t.height = d, K(t, k), l.attr( "transform", - `translate(${-n.width / 2 - (n.x - (n.left ?? 0))}, ${u / 2 - (n.height + (t.padding ?? 0) / (c ? 2 : 1) - (n.y - (n.top ?? 0)))})` - ), t.intersect = function(w) { - return R.info("Triangle intersect", t, d, w), j.polygon(t, d, w); + `translate(${-n.width / 2 - (n.x - (n.left ?? 0))}, ${d / 2 - (n.height + (t.padding ?? 0) / (c ? 2 : 1) - (n.y - (n.top ?? 0)))})` + ), t.intersect = function(T) { + return P.info("Triangle intersect", t, u, T), G.polygon(t, u, T); }, a; } -f(tm, "triangle"); -async function em(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(gg, "triangle"); +async function mg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.padding ?? 0, o = t.look === "neo" ? 16 : s, a = t.look === "neo" ? 12 : s; let n = !0; (t.width || t.height) && (n = !1, t.width = (t?.width ?? 0) - o * 2, t.width < 10 && (t.width = 10), t.height = (t?.height ?? 0) - a * 2, t.height < 10 && (t.height = 10)); - const { shapeSvg: l, bbox: c, label: h } = await st(e, t, tt(t)), u = (t?.width ? t?.width : c.width) + (o ?? 0) * 2, p = (t?.height ? t?.height : c.height) + (a ?? 0) * 2, d = t.look === "neo" ? p / 4 : p / 8, g = p + (n ? d : -d), { cssStyles: m } = t, x = 14 - u, b = x > 0 ? x / 2 : 0, k = U.svg(l), w = X(t, {}); - t.look !== "handDrawn" && (w.roughness = 0, w.fillStyle = "solid"); + const { shapeSvg: l, bbox: c, label: h } = await rt(e, t, et(t)), d = (t?.width ? t?.width : c.width) + (o ?? 0) * 2, f = (t?.height ? t?.height : c.height) + (a ?? 0) * 2, u = t.look === "neo" ? f / 4 : f / 8, g = f + (n ? u : -u), { cssStyles: m } = t, C = 14 - d, b = C > 0 ? C / 2 : 0, k = j.svg(l), T = V(t, {}); + t.look !== "handDrawn" && (T.roughness = 0, T.fillStyle = "solid"); const S = [ - { x: -u / 2 - b, y: g / 2 }, - ...sr( - -u / 2 - b, + { x: -d / 2 - b, y: g / 2 }, + ...rr( + -d / 2 - b, g / 2, - u / 2 + b, + d / 2 + b, g / 2, - d, + u, 0.8 ), - { x: u / 2 + b, y: -g / 2 }, - { x: -u / 2 - b, y: -g / 2 } - ], v = pt(S), M = k.path(v, w), B = l.insert(() => M, ":first-child"); - return B.attr("class", "basic label-container outer-path"), m && t.look !== "handDrawn" && B.selectAll("path").attr("style", m), i && t.look !== "handDrawn" && B.selectAll("path").attr("style", i), B.attr("transform", `translate(0,${-d / 2})`), h.attr( + { x: d / 2 + b, y: -g / 2 }, + { x: -d / 2 - b, y: -g / 2 } + ], _ = ft(S), A = k.path(_, T), v = l.insert(() => A, ":first-child"); + return v.attr("class", "basic label-container outer-path"), m && t.look !== "handDrawn" && v.selectAll("path").attr("style", m), i && t.look !== "handDrawn" && v.selectAll("path").attr("style", i), v.attr("transform", `translate(0,${-u / 2})`), h.attr( "transform", - `translate(${-u / 2 + (t.padding ?? 0) - (c.x - (c.left ?? 0))},${-p / 2 + (t.padding ?? 0) - d - (c.y - (c.top ?? 0))})` - ), Z(t, B), t.intersect = function(N) { - return j.polygon(t, S, N); + `translate(${-d / 2 + (t.padding ?? 0) - (c.x - (c.left ?? 0))},${-f / 2 + (t.padding ?? 0) - u - (c.y - (c.top ?? 0))})` + ), K(t, v), t.intersect = function(q) { + return G.polygon(t, S, q); }, l; } -f(em, "waveEdgedRectangle"); -async function rm(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(mg, "waveEdgedRectangle"); +async function yg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.padding ?? 0, o = t.look === "neo" ? 16 : s, a = t.look === "neo" ? 20 : s; 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); - const w = Math.min(t.height * 0.2, t.height / 4); - t.height = Math.ceil(t.height - a - w * (20 / 9)), t.width = t.width - o * 2; + const T = Math.min(t.height * 0.2, t.height / 4); + t.height = Math.ceil(t.height - a - T * (20 / 9)), t.width = t.width - o * 2; } - const { shapeSvg: n, bbox: l } = await st(e, t, tt(t)), c = (t?.width ? t?.width : l.width) + o * 2, h = (t?.height ? t?.height : l.height) + a, u = h / 8, p = h + u * 2, { cssStyles: d } = t, g = U.svg(n), m = X(t, {}); + const { shapeSvg: n, bbox: l } = await rt(e, t, et(t)), c = (t?.width ? t?.width : l.width) + o * 2, h = (t?.height ? t?.height : l.height) + a, d = h / 8, f = h + d * 2, { cssStyles: u } = t, g = j.svg(n), m = V(t, {}); t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid"); const y = [ - { x: -c / 2, y: p / 2 }, - ...sr(-c / 2, p / 2, c / 2, p / 2, u, 1), - { x: c / 2, y: -p / 2 }, - ...sr(c / 2, -p / 2, -c / 2, -p / 2, u, -1) - ], x = pt(y), b = g.path(x, m), k = n.insert(() => b, ":first-child"); - return k.attr("class", "basic label-container"), d && t.look !== "handDrawn" && k.selectAll("path").attr("style", d), i && t.look !== "handDrawn" && k.selectAll("path").attr("style", i), Z(t, k), t.intersect = function(w) { - return j.polygon(t, y, w); + { x: -c / 2, y: f / 2 }, + ...rr(-c / 2, f / 2, c / 2, f / 2, d, 1), + { x: c / 2, y: -f / 2 }, + ...rr(c / 2, -f / 2, -c / 2, -f / 2, d, -1) + ], C = ft(y), b = g.path(C, m), k = n.insert(() => b, ":first-child"); + return k.attr("class", "basic label-container"), u && t.look !== "handDrawn" && k.selectAll("path").attr("style", u), i && t.look !== "handDrawn" && k.selectAll("path").attr("style", i), K(t, k), t.intersect = function(T) { + return G.polygon(t, y, T); }, n; } -f(rm, "waveRectangle"); +p(yg, "waveRectangle"); var St = 10; -async function im(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +async function Cg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; const s = t.look === "neo" ? 16 : t.padding ?? 0, o = t.look === "neo" ? 12 : t.padding ?? 0; (t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - s * 2 - St, 10), t.height = Math.max((t?.height ?? 0) - o * 2 - St, 10)); - const { shapeSvg: a, bbox: n, label: l } = await st(e, t, tt(t)), c = (t?.width ? t?.width : n.width) + s * 2 + St, h = (t?.height ? t?.height : n.height) + o * 2 + St, u = c - St, p = h - St, d = -u / 2, g = -p / 2, { cssStyles: m } = t, y = U.svg(a), x = X(t, {}), b = [ - { x: d - St, y: g - St }, - { x: d - St, y: g + p }, - { x: d + u, y: g + p }, - { x: d + u, y: g - St } - ], k = `M${d - St},${g - St} L${d + u},${g - St} L${d + u},${g + p} L${d - St},${g + p} L${d - St},${g - St} - M${d - St},${g} L${d + u},${g} - M${d},${g - St} L${d},${g + p}`; - t.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid"); - const w = y.path(k, x), S = a.insert(() => w, ":first-child"); + const { shapeSvg: a, bbox: n, label: l } = await rt(e, t, et(t)), c = (t?.width ? t?.width : n.width) + s * 2 + St, h = (t?.height ? t?.height : n.height) + o * 2 + St, d = c - St, f = h - St, u = -d / 2, g = -f / 2, { cssStyles: m } = t, y = j.svg(a), C = V(t, {}), b = [ + { x: u - St, y: g - St }, + { x: u - St, y: g + f }, + { x: u + d, y: g + f }, + { x: u + d, y: g - St } + ], k = `M${u - St},${g - St} L${u + d},${g - St} L${u + d},${g + f} L${u - St},${g + f} L${u - St},${g - St} + M${u - St},${g} L${u + d},${g} + M${u},${g - St} L${u},${g + f}`; + t.look !== "handDrawn" && (C.roughness = 0, C.fillStyle = "solid"); + const T = y.path(k, C), S = a.insert(() => T, ":first-child"); return S.attr("transform", `translate(${St / 2}, ${St / 2})`), S.attr("class", "basic label-container outer-path"), m && t.look !== "handDrawn" && S.selectAll("path").attr("style", m), i && t.look !== "handDrawn" && S.selectAll("path").attr("style", i), l.attr( "transform", `translate(${-(n.width / 2) + St / 2 - (n.x - (n.left ?? 0))}, ${-(n.height / 2) + St / 2 - (n.y - (n.top ?? 0))})` - ), Z(t, S), t.intersect = function(v) { - return j.polygon(t, b, v); + ), K(t, S), t.intersect = function(_) { + return G.polygon(t, b, _); }, a; } -f(im, "windowPane"); -var vc = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), q_ = /* @__PURE__ */ new Set(["redux", "redux-dark", "redux-color", "redux-dark-color"]); -async function wl(e, t) { +p(Cg, "windowPane"); +var Jh = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), lT = /* @__PURE__ */ new Set(["redux", "redux-dark", "redux-color", "redux-dark-color"]); +async function il(e, t) { const r = t; r.alias && (t.label = r.alias); - const { theme: i, themeVariables: s } = wt(), { rowEven: o, rowOdd: a, nodeBorder: n, borderColorArray: l } = s; + const { theme: i, themeVariables: s } = Tt(), { rowEven: o, rowOdd: a, nodeBorder: n, borderColorArray: l } = s; if (t.look === "handDrawn") { - const { themeVariables: rt } = wt(), { background: ht } = rt, ft = { + const { themeVariables: X } = Tt(), { background: ct } = X, ot = { ...t, id: t.id + "-background", domId: (t.domId || t.id) + "-background", look: "default", - cssStyles: ["stroke: none", `fill: ${ht}`] + cssStyles: ["stroke: none", `fill: ${ct}`] }; - await wl(e, ft); + await il(e, ot); } - const c = wt(); + const c = Tt(); t.useHtmlLabels = c.htmlLabels; - let h = c.er?.diagramPadding ?? 10, u = c.er?.entityPadding ?? 6; - const { cssStyles: p } = t, { labelStyles: d, nodeStyles: g } = V(t); + let h = c.er?.diagramPadding ?? 10, d = c.er?.entityPadding ?? 6; + const { cssStyles: f } = t, { labelStyles: u, nodeStyles: g } = Z(t); if (r.attributes.length === 0 && t.label) { - const rt = { + const X = { rx: 0, ry: 0, labelPaddingX: h, labelPaddingY: h * 1.5 }; - He(t.label, c) + rt.labelPaddingX * 2 < c.er.minEntityWidth && (t.width = c.er.minEntityWidth); - const ht = await ns(e, t, rt); - if (i != null && vc.has(i)) { - const ft = r.colorIndex ?? 0; - ht.attr("data-color-id", `color-${ft % l.length}`); + qe(t.label, c) + X.labelPaddingX * 2 < c.er.minEntityWidth && (t.width = c.er.minEntityWidth); + const ct = await ei(e, t, X); + if (i != null && Jh.has(i)) { + const ot = r.colorIndex ?? 0; + ct.attr("data-color-id", `color-${ot % l.length}`); } - if (!je(c.htmlLabels)) { - const ft = ht.select("text"), bt = ft.node()?.getBBox(); - ft.attr("transform", `translate(${-bt.width / 2}, 0)`); + if (!ze(c.htmlLabels)) { + const ot = ct.select("text"), xt = ot.node()?.getBBox(); + ot.attr("transform", `translate(${-xt.width / 2}, 0)`); } - return ht; + return ct; } - c.htmlLabels || (h *= 1.25, u *= 1.25); - let m = tt(t); + c.htmlLabels || (h *= 1.25, d *= 1.25); + let m = et(t); m || (m = "node default"); - const y = e.insert("g").attr("class", m).attr("id", t.domId || t.id), x = await Wr(y, t.label ?? "", c, 0, 0, ["name"], d); - x.height += u; + const y = e.insert("g").attr("class", m).attr("id", t.domId || t.id), C = await Pr(y, t.label ?? "", c, 0, 0, ["name"], u); + C.height += d; let b = 0; - const k = [], w = []; - let S = 0, v = 0, M = 0, B = 0, N = !0, D = !0; - for (const rt of r.attributes) { - const ht = await Wr( + const k = [], T = []; + let S = 0, _ = 0, A = 0, v = 0, q = !0, I = !0; + for (const X of r.attributes) { + const ct = await Pr( y, - rt.type, + X.type, c, 0, b, ["attribute-type"], - d + u ); - S = Math.max(S, ht.width + h); - const ft = await Wr( + S = Math.max(S, ct.width + h); + const ot = await Pr( y, - rt.name, + X.name, c, 0, b, ["attribute-name"], - d + u ); - v = Math.max(v, ft.width + h); - const bt = await Wr( + _ = Math.max(_, ot.width + h); + const xt = await Pr( y, - rt.keys.join(), + X.keys.join(), c, 0, b, ["attribute-keys"], - d + u ); - M = Math.max(M, bt.width + h); - const Ct = await Wr( + A = Math.max(A, xt.width + h); + const bt = await Pr( y, - rt.comment, + X.comment, c, 0, b, ["attribute-comment"], - d + u ); - B = Math.max(B, Ct.width + h); - const Bt = Math.max(ht.height, ft.height, bt.height, Ct.height) + u; - w.push({ yOffset: b, rowHeight: Bt }), b += Bt; - } - let O = 4; - M <= h && (N = !1, M = 0, O--), B <= h && (D = !1, B = 0, O--); - const W = y.node().getBBox(); - if (x.width + h * 2 - (S + v + M + B) > 0) { - const rt = x.width + h * 2 - (S + v + M + B); - S += rt / O, v += rt / O, M > 0 && (M += rt / O), B > 0 && (B += rt / O); - } - const z = S + v + M + B, I = U.svg(y), F = X(t, {}); + v = Math.max(v, bt.width + h); + const kt = Math.max(ct.height, ot.height, xt.height, bt.height) + d; + T.push({ yOffset: b, rowHeight: kt }), b += kt; + } + let R = 4; + A <= h && (q = !1, A = 0, R--), v <= h && (I = !1, v = 0, R--); + const H = y.node().getBBox(); + if (C.width + h * 2 - (S + _ + A + v) > 0) { + const X = C.width + h * 2 - (S + _ + A + v); + S += X / R, _ += X / R, A > 0 && (A += X / R), v > 0 && (v += X / R); + } + const W = S + _ + A + v, M = j.svg(y), F = V(t, {}); t.look !== "handDrawn" && (F.roughness = 0, F.fillStyle = "solid"); let L = 0; - w.length > 0 && (L = w.reduce((rt, ht) => rt + (ht?.rowHeight ?? 0), 0)); - const E = Math.max(W.width + h * 2, t?.width || 0, z), P = Math.max((L ?? 0) + x.height, t?.height || 0), H = -E / 2, Y = -P / 2; - if (y.selectAll("g:not(:first-child)").each((rt, ht, ft) => { - const bt = ct(ft[ht]), Ct = bt.attr("transform"); - let Bt = 0, ce = 0; - if (Ct) { - const Oe = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Ct); - Oe && (Bt = parseFloat(Oe[1]), ce = parseFloat(Oe[2]), bt.attr("class").includes("attribute-name") ? Bt += S : bt.attr("class").includes("attribute-keys") ? Bt += S + v : bt.attr("class").includes("attribute-comment") && (Bt += S + v + M)); - } - bt.attr( + T.length > 0 && (L = T.reduce((X, ct) => X + (ct?.rowHeight ?? 0), 0)); + const E = Math.max(H.width + h * 2, t?.width || 0, W), D = Math.max((L ?? 0) + C.height, t?.height || 0), z = -E / 2, Y = -D / 2; + if (y.selectAll("g:not(:first-child)").each((X, ct, ot) => { + const xt = ht(ot[ct]), bt = xt.attr("transform"); + let kt = 0, ne = 0; + if (bt) { + const Sr = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(bt); + Sr && (kt = parseFloat(Sr[1]), ne = parseFloat(Sr[2]), xt.attr("class").includes("attribute-name") ? kt += S : xt.attr("class").includes("attribute-keys") ? kt += S + _ : xt.attr("class").includes("attribute-comment") && (kt += S + _ + A)); + } + xt.attr( "transform", - `translate(${H + h / 2 + Bt}, ${ce + Y + x.height + u / 2})` + `translate(${z + h / 2 + kt}, ${ne + Y + C.height + d / 2})` ); - }), y.select(".name").attr("transform", "translate(" + -x.width / 2 + ", " + (Y + u / 2) + ")"), i != null && vc.has(i)) { - const rt = r.colorIndex ?? 0; - y.attr("data-color-id", `color-${rt % l.length}`); + }), y.select(".name").attr("transform", "translate(" + -C.width / 2 + ", " + (Y + d / 2) + ")"), i != null && Jh.has(i)) { + const X = r.colorIndex ?? 0; + y.attr("data-color-id", `color-${X % l.length}`); } - const Q = I.rectangle(H, Y, E, P, F), dt = y.insert(() => Q, ":first-child").attr("class", "outer-path").attr("style", p.join("")); + const lt = M.rectangle(z, Y, E, D, F), pt = y.insert(() => lt, ":first-child").attr("class", "outer-path").attr("style", f.join("")); k.push(0); - for (const [rt, ht] of w.entries()) { - const bt = (rt + 1) % 2 === 0 && ht.yOffset !== 0, Ct = I.rectangle(H, x.height + Y + ht?.yOffset, E, ht?.rowHeight, { + for (const [X, ct] of T.entries()) { + const xt = (X + 1) % 2 === 0 && ct.yOffset !== 0, bt = M.rectangle(z, C.height + Y + ct?.yOffset, E, ct?.rowHeight, { ...F, - fill: bt ? o : a, + fill: xt ? o : a, stroke: n }); - y.insert(() => Ct, "g.label").attr("style", p.join("")).attr("class", `row-rect-${bt ? "even" : "odd"}`); + y.insert(() => bt, "g.label").attr("style", f.join("")).attr("class", `row-rect-${xt ? "even" : "odd"}`); } - const et = 1e-4; - let ut = Hr(H, x.height + Y, E + H, x.height + Y, et), it = I.polygon( - ut.map((rt) => [rt.x, rt.y]), + const ut = 1e-4; + let tt = Nr(z, C.height + Y, E + z, C.height + Y, ut), yt = M.polygon( + tt.map((X) => [X.x, X.y]), F ); - if (y.insert(() => it).attr("class", "divider"), ut = Hr(S + H, x.height + Y, S + H, P + Y, et), it = I.polygon( - ut.map((rt) => [rt.x, rt.y]), + if (y.insert(() => yt).attr("class", "divider"), tt = Nr(S + z, C.height + Y, S + z, D + Y, ut), yt = M.polygon( + tt.map((X) => [X.x, X.y]), F - ), y.insert(() => it).attr("class", "divider"), N) { - const rt = S + v + H; - ut = Hr(rt, x.height + Y, rt, P + Y, et), it = I.polygon( - ut.map((ht) => [ht.x, ht.y]), + ), y.insert(() => yt).attr("class", "divider"), q) { + const X = S + _ + z; + tt = Nr(X, C.height + Y, X, D + Y, ut), yt = M.polygon( + tt.map((ct) => [ct.x, ct.y]), F - ), y.insert(() => it).attr("class", "divider"); + ), y.insert(() => yt).attr("class", "divider"); } - if (D) { - const rt = S + v + M + H; - ut = Hr(rt, x.height + Y, rt, P + Y, et), it = I.polygon( - ut.map((ht) => [ht.x, ht.y]), + if (I) { + const X = S + _ + A + z; + tt = Nr(X, C.height + Y, X, D + Y, ut), yt = M.polygon( + tt.map((ct) => [ct.x, ct.y]), F - ), y.insert(() => it).attr("class", "divider"); + ), y.insert(() => yt).attr("class", "divider"); } - for (const rt of k) { - const ht = x.height + Y + rt; - ut = Hr(H, ht, E + H, ht, et), it = I.polygon( - ut.map((ft) => [ft.x, ft.y]), + for (const X of k) { + const ct = C.height + Y + X; + tt = Nr(z, ct, E + z, ct, ut), yt = M.polygon( + tt.map((ot) => [ot.x, ot.y]), F - ), y.insert(() => it).attr("class", "divider"); + ), y.insert(() => yt).attr("class", "divider"); } - if (Z(t, dt), g && t.look !== "handDrawn") - if (i != null && q_.has(i)) + if (K(t, pt), g && t.look !== "handDrawn") + if (i != null && lT.has(i)) y.selectAll("path").attr("style", g); else { - const ht = g.split(";")?.filter((ft) => ft.includes("stroke"))?.map((ft) => `${ft}`).join("; "); - y.selectAll("path").attr("style", ht ?? ""), y.selectAll(".row-rect-even path").attr("style", g); + const ct = g.split(";")?.filter((ot) => ot.includes("stroke"))?.map((ot) => `${ot}`).join("; "); + y.selectAll("path").attr("style", ct ?? ""), y.selectAll(".row-rect-even path").attr("style", g); } - return t.intersect = function(rt) { - return j.rect(t, rt); + return t.intersect = function(X) { + return G.rect(t, X); }, y; } -f(wl, "erBox"); -async function Wr(e, t, r, i = 0, s = 0, o = [], a = "") { +p(il, "erBox"); +async function Pr(e, t, r, i = 0, s = 0, o = [], a = "") { const n = e.insert("g").attr("class", `label ${o.join(" ")}`).attr("transform", `translate(${i}, ${s})`).attr("style", a); - t !== ah(t) && (t = ah(t), t = t.replaceAll("<", "<").replaceAll(">", ">")); + t !== Hl(t) && (t = Hl(t), t = t.replaceAll("<", "<").replaceAll(">", ">")); const l = n.node().appendChild( - await Ge( + await He( n, t, { - width: He(t, r) + 100, + width: qe(t, r) + 100, style: a, useHtmlLabels: r.htmlLabels }, @@ -13209,16 +13137,16 @@ async function Wr(e, t, r, i = 0, s = 0, o = [], a = "") { h = h.childNodes[0], h.textContent = h.textContent.replaceAll("<", "<").replaceAll(">", ">"); } let c = l.getBBox(); - if (je(r.htmlLabels)) { + if (ze(r.htmlLabels)) { const h = l.children[0]; h.style.textAlign = "start"; - const u = ct(l); - c = h.getBoundingClientRect(), u.attr("width", c.width), u.attr("height", c.height); + const d = ht(l); + c = h.getBoundingClientRect(), d.attr("width", c.width), d.attr("height", c.height); } return c; } -f(Wr, "addText"); -function Hr(e, t, r, i, s) { +p(Pr, "addText"); +function Nr(e, t, r, i, s) { return e === r ? [ { x: e - s / 2, y: t }, { x: e + s / 2, y: t }, @@ -13231,51 +13159,51 @@ function Hr(e, t, r, i, s) { { x: r, y: i - s / 2 } ]; } -f(Hr, "lineToPolygon"); -async function sm(e, t, r, i, s = r.class.padding ?? 12) { - const o = i ? 0 : 3, a = e.insert("g").attr("class", tt(t)).attr("id", t.domId || t.id); - let n = null, l = null, c = null, h = null, u = 0, p = 0, d = 0; +p(Nr, "lineToPolygon"); +async function xg(e, t, r, i, s = r.class.padding ?? 12) { + const o = i ? 0 : 3, a = e.insert("g").attr("class", et(t)).attr("id", t.domId || t.id); + let n = null, l = null, c = null, h = null, d = 0, f = 0, u = 0; if (n = a.insert("g").attr("class", "annotation-group text"), t.annotations.length > 0) { const b = t.annotations[0]; - await Li(n, { text: `«${b}»` }, 0), u = n.node().getBBox().height; + await ki(n, { text: `«${b}»` }, 0), d = n.node().getBBox().height; } - l = a.insert("g").attr("class", "label-group text"), await Li(l, t, 0, ["font-weight: bolder"]); + l = a.insert("g").attr("class", "label-group text"), await ki(l, t, 0, ["font-weight: bolder"]); const g = l.node().getBBox(); - p = g.height, c = a.insert("g").attr("class", "members-group text"); + f = g.height, c = a.insert("g").attr("class", "members-group text"); let m = 0; for (const b of t.members) { - const k = await Li(c, b, m, [b.parseClassifier()]); + const k = await ki(c, b, m, [b.parseClassifier()]); m += k + o; } - d = c.node().getBBox().height, d <= 0 && (d = s / 2), h = a.insert("g").attr("class", "methods-group text"); + u = c.node().getBBox().height, u <= 0 && (u = s / 2), h = a.insert("g").attr("class", "methods-group text"); let y = 0; for (const b of t.methods) { - const k = await Li(h, b, y, [b.parseClassifier()]); + const k = await ki(h, b, y, [b.parseClassifier()]); y += k + o; } - let x = a.node().getBBox(); + let C = a.node().getBBox(); if (n !== null) { const b = n.node().getBBox(); n.attr("transform", `translate(${-b.width / 2})`); } - return l.attr("transform", `translate(${-g.width / 2}, ${u})`), x = a.node().getBBox(), c.attr( + return l.attr("transform", `translate(${-g.width / 2}, ${d})`), C = a.node().getBBox(), c.attr( "transform", - `translate(0, ${u + p + s * 2})` - ), x = a.node().getBBox(), h.attr( + `translate(0, ${d + f + s * 2})` + ), C = a.node().getBBox(), h.attr( "transform", - `translate(0, ${u + p + (d ? d + s * 4 : s * 2)})` - ), x = a.node().getBBox(), { shapeSvg: a, bbox: x }; -} -f(sm, "textHelper"); -async function Li(e, t, r, i = []) { - const s = e.insert("g").attr("class", "label").attr("style", i.join("; ")), o = wt(); - let a = "useHtmlLabels" in t ? t.useHtmlLabels : je(o.htmlLabels) ?? !0, n = ""; - "text" in t ? n = t.text : n = t.label, !a && n.startsWith("\\") && (n = n.substring(1)), Pi(n) && (a = !0); - const l = await Ge( + `translate(0, ${d + f + (u ? u + s * 4 : s * 2)})` + ), C = a.node().getBBox(), { shapeSvg: a, bbox: C }; +} +p(xg, "textHelper"); +async function ki(e, t, r, i = []) { + const s = e.insert("g").attr("class", "label").attr("style", i.join("; ")), o = Tt(); + let a = "useHtmlLabels" in t ? t.useHtmlLabels : ze(o.htmlLabels) ?? !0, n = ""; + "text" in t ? n = t.text : n = t.label, !a && n.startsWith("\\") && (n = n.substring(1)), Fi(n) && (a = !0); + const l = await He( s, - En(Sr(n)), + un(br(n)), { - width: He(n, o) + 50, + width: qe(n, o) + 50, // Add room for error when splitting text into multiple lines classes: "markdown-node-label", useHtmlLabels: a @@ -13284,225 +13212,225 @@ async function Li(e, t, r, i = []) { ); let c, h = 1; if (a) { - const u = l.children[0], p = ct(l); - h = u.innerHTML.split("
    ").length, u.innerHTML.includes("") && (h += u.innerHTML.split("").length - 1); - const d = u.getElementsByTagName("img"); - if (d) { + const d = l.children[0], f = ht(l); + h = d.innerHTML.split("
    ").length, d.innerHTML.includes("") && (h += d.innerHTML.split("").length - 1); + const u = d.getElementsByTagName("img"); + if (u) { const g = n.replace(/]*>/g, "").trim() === ""; await Promise.all( - [...d].map( + [...u].map( (m) => new Promise((y) => { - function x() { + function C() { if (m.style.display = "flex", m.style.flexDirection = "column", g) { - const b = o.fontSize?.toString() ?? window.getComputedStyle(document.body).fontSize, w = parseInt(b, 10) * 5 + "px"; - m.style.minWidth = w, m.style.maxWidth = w; + const b = o.fontSize?.toString() ?? window.getComputedStyle(document.body).fontSize, T = parseInt(b, 10) * 5 + "px"; + m.style.minWidth = T, m.style.maxWidth = T; } else m.style.width = "100%"; y(m); } - f(x, "setupImage"), setTimeout(() => { - m.complete && x(); - }), m.addEventListener("error", x), m.addEventListener("load", x); + p(C, "setupImage"), setTimeout(() => { + m.complete && C(); + }), m.addEventListener("error", C), m.addEventListener("load", C); }) ) ); } - c = u.getBoundingClientRect(), p.attr("width", c.width), p.attr("height", c.height); + c = d.getBoundingClientRect(), f.attr("width", c.width), f.attr("height", c.height); } else { - i.includes("font-weight: bolder") && ct(l).selectAll("tspan").attr("font-weight", ""), h = l.children.length; - const u = l.children[0]; - (l.textContent === "" || l.textContent.includes(">")) && (u.textContent = n[0] + n.substring(1).replaceAll(">", ">").replaceAll("<", "<").trim(), n[1] === " " && (u.textContent = u.textContent[0] + " " + u.textContent.substring(1))), u.textContent === "undefined" && (u.textContent = ""), c = l.getBBox(); + i.includes("font-weight: bolder") && ht(l).selectAll("tspan").attr("font-weight", ""), h = l.children.length; + const d = l.children[0]; + (l.textContent === "" || l.textContent.includes(">")) && (d.textContent = n[0] + n.substring(1).replaceAll(">", ">").replaceAll("<", "<").trim(), n[1] === " " && (d.textContent = d.textContent[0] + " " + d.textContent.substring(1))), d.textContent === "undefined" && (d.textContent = ""), c = l.getBBox(); } return s.attr("transform", "translate(0," + (-c.height / (2 * h) + r) + ")"), c.height; } -f(Li, "addText"); -async function om(e, t) { - const r = gt(), { themeVariables: i } = r, { useGradient: s } = i, o = r.class.padding ?? 12, a = o, n = t.useHtmlLabels ?? je(r.htmlLabels) ?? !0, l = t; +p(ki, "addText"); +async function bg(e, t) { + const r = gt(), { themeVariables: i } = r, { useGradient: s } = i, o = r.class.padding ?? 12, a = o, n = t.useHtmlLabels ?? ze(r.htmlLabels) ?? !0, l = t; l.annotations = l.annotations ?? [], l.members = l.members ?? [], l.methods = l.methods ?? []; - const { shapeSvg: c, bbox: h } = await sm(e, t, r, n, a), { labelStyles: u, nodeStyles: p } = V(t); - t.labelStyle = u, t.cssStyles = l.styles || ""; - const d = l.styles?.join(";") || p || ""; - t.cssStyles || (t.cssStyles = d.replaceAll("!important", "").split(";")); - const g = l.members.length === 0 && l.methods.length === 0 && !r.class?.hideEmptyMembersBox, m = U.svg(c), y = X(t, {}); + const { shapeSvg: c, bbox: h } = await xg(e, t, r, n, a), { labelStyles: d, nodeStyles: f } = Z(t); + t.labelStyle = d, t.cssStyles = l.styles || ""; + const u = l.styles?.join(";") || f || ""; + t.cssStyles || (t.cssStyles = u.replaceAll("!important", "").split(";")); + const g = l.members.length === 0 && l.methods.length === 0 && !r.class?.hideEmptyMembersBox, m = j.svg(c), y = V(t, {}); t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid"); - const x = Math.max(t.width ?? 0, h.width); + const C = Math.max(t.width ?? 0, h.width); let b = Math.max(t.height ?? 0, h.height); const k = (t.height ?? 0) > h.height; l.members.length === 0 && l.methods.length === 0 ? b += a : l.members.length > 0 && l.methods.length === 0 && (b += a * 2); - const w = -x / 2, S = -b / 2; - let v = g ? o * 2 : l.members.length === 0 && l.methods.length === 0 ? -o : 0; - k && (v = o * 2); - const M = m.rectangle( - w - o, + const T = -C / 2, S = -b / 2; + let _ = g ? o * 2 : l.members.length === 0 && l.methods.length === 0 ? -o : 0; + k && (_ = o * 2); + const A = m.rectangle( + T - o, S - o - (g ? o : l.members.length === 0 && l.methods.length === 0 ? -o / 2 : 0), - x + 2 * o, - b + 2 * o + v, + C + 2 * o, + b + 2 * o + _, y - ), B = c.insert(() => M, ":first-child"); - B.attr("class", "basic label-container outer-path"); - const N = B.node().getBBox(), D = c.select(".annotation-group").node().getBBox().height - (g ? o / 2 : 0) || 0, O = c.select(".label-group").node().getBBox().height - (g ? o / 2 : 0) || 0, W = c.select(".members-group").node().getBBox().height - (g ? o / 2 : 0) || 0, z = (D + O + S + o - (S - o - (g ? o : l.members.length === 0 && l.methods.length === 0 ? -o / 2 : 0))) / 2; - if (c.selectAll(".text").each((I, F, L) => { - const E = ct(L[F]), P = E.attr("transform"); - let H = 0; - if (P) { - const et = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(P); - et && (H = parseFloat(et[2])); - } - let Y = H + S + o - (g ? o : l.members.length === 0 && l.methods.length === 0 ? -o / 2 : 0); + ), v = c.insert(() => A, ":first-child"); + v.attr("class", "basic label-container outer-path"); + const q = v.node().getBBox(), I = c.select(".annotation-group").node().getBBox().height - (g ? o / 2 : 0) || 0, R = c.select(".label-group").node().getBBox().height - (g ? o / 2 : 0) || 0, H = c.select(".members-group").node().getBBox().height - (g ? o / 2 : 0) || 0, W = (I + R + S + o - (S - o - (g ? o : l.members.length === 0 && l.methods.length === 0 ? -o / 2 : 0))) / 2; + if (c.selectAll(".text").each((M, F, L) => { + const E = ht(L[F]), D = E.attr("transform"); + let z = 0; + if (D) { + const ut = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(D); + ut && (z = parseFloat(ut[2])); + } + let Y = z + S + o - (g ? o : l.members.length === 0 && l.methods.length === 0 ? -o / 2 : 0); if (E.attr("class").includes("methods-group")) { - const dt = Math.max(W, a / 2); + const pt = Math.max(H, a / 2); k ? Y = Math.max( - z, - D + O + dt + S + a * 2 + o - ) + a * 2 : Y = D + O + dt + S + a * 4 + o; - } - l.members.length === 0 && l.methods.length === 0 && r.class?.hideEmptyMembersBox && (l.annotations.length > 0 ? Y = H - a : Y = H), n || (Y -= 4); - let Q = w; - (E.attr("class").includes("label-group") || E.attr("class").includes("annotation-group")) && (Q = -E.node()?.getBBox().width / 2 || 0, c.selectAll("text").each(function(dt, et, ut) { - window.getComputedStyle(ut[et]).textAnchor === "middle" && (Q = 0); - })), E.attr("transform", `translate(${Q}, ${Y})`); + W, + I + R + pt + S + a * 2 + o + ) + a * 2 : Y = I + R + pt + S + a * 4 + o; + } + l.members.length === 0 && l.methods.length === 0 && r.class?.hideEmptyMembersBox && (l.annotations.length > 0 ? Y = z - a : Y = z), n || (Y -= 4); + let lt = T; + (E.attr("class").includes("label-group") || E.attr("class").includes("annotation-group")) && (lt = -E.node()?.getBBox().width / 2 || 0, c.selectAll("text").each(function(pt, ut, tt) { + window.getComputedStyle(tt[ut]).textAnchor === "middle" && (lt = 0); + })), E.attr("transform", `translate(${lt}, ${Y})`); }), l.members.length > 0 || l.methods.length > 0 || g) { - const I = D + O + S + o, F = m.line( - N.x, - I, - N.x + N.width, - I + 1e-3, + const M = I + R + S + o, F = m.line( + q.x, + M, + q.x + q.width, + M + 1e-3, y ); - c.insert(() => F).attr("class", `divider${t.look === "neo" && !s ? " neo-line" : ""}`).attr("style", d); + c.insert(() => F).attr("class", `divider${t.look === "neo" && !s ? " neo-line" : ""}`).attr("style", u); } if (g || l.members.length > 0 || l.methods.length > 0) { - const I = D + O + W + S + a * 2 + o, F = m.line( - N.x, - k ? Math.max(z, I) : I, - N.x + N.width, - (k ? Math.max(z, I) : I) + 1e-3, + const M = I + R + H + S + a * 2 + o, F = m.line( + q.x, + k ? Math.max(W, M) : M, + q.x + q.width, + (k ? Math.max(W, M) : M) + 1e-3, y ); - c.insert(() => F).attr("class", `divider${t.look === "neo" && !s ? " neo-line" : ""}`).attr("style", d); + c.insert(() => F).attr("class", `divider${t.look === "neo" && !s ? " neo-line" : ""}`).attr("style", u); } - if (l.look !== "handDrawn" && c.selectAll("path").attr("style", d), B.select(":nth-child(2)").attr("style", d), c.selectAll(".divider").select("path").attr("style", d), t.labelStyle ? c.selectAll("span").attr("style", t.labelStyle) : c.selectAll("span").attr("style", d), !n) { - const I = RegExp(/color\s*:\s*([^;]*)/), F = I.exec(d); + if (l.look !== "handDrawn" && c.selectAll("path").attr("style", u), v.select(":nth-child(2)").attr("style", u), c.selectAll(".divider").select("path").attr("style", u), t.labelStyle ? c.selectAll("span").attr("style", t.labelStyle) : c.selectAll("span").attr("style", u), !n) { + const M = RegExp(/color\s*:\s*([^;]*)/), F = M.exec(u); if (F) { const L = F[0].replace("color", "fill"); c.selectAll("tspan").attr("style", L); - } else if (u) { - const L = I.exec(u); + } else if (d) { + const L = M.exec(d); if (L) { const E = L[0].replace("color", "fill"); c.selectAll("tspan").attr("style", E); } } } - return Z(t, B), t.intersect = function(I) { - return j.rect(t, I); + return K(t, v), t.intersect = function(M) { + return G.rect(t, M); }, c; } -f(om, "classBox"); -async function am(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(bg, "classBox"); +async function kg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const s = t, o = t, a = 20, n = 20, l = "verifyMethod" in t, c = tt(t), { themeVariables: h } = gt(), { borderColorArray: u, requirementEdgeLabelBackground: p } = h, d = e.insert("g").attr("class", c).attr("id", t.domId ?? t.id); + const s = t, o = t, a = 20, n = 20, l = "verifyMethod" in t, c = et(t), { themeVariables: h } = gt(), { borderColorArray: d, requirementEdgeLabelBackground: f } = h, u = e.insert("g").attr("class", c).attr("id", t.domId ?? t.id); let g; - l ? g = await _e( - d, + l ? g = await we( + u, `<<${s.type}>>`, 0, t.labelStyle - ) : g = await _e(d, "<<Element>>", 0, t.labelStyle); + ) : g = await we(u, "<<Element>>", 0, t.labelStyle); let m = g; - const y = await _e( - d, + const y = await we( + u, s.name, m, t.labelStyle + "; font-weight: bold;" ); if (m += y + n, l) { - const N = await _e( - d, + const q = await we( + u, `${s.requirementId ? `ID: ${s.requirementId}` : ""}`, m, t.labelStyle ); - m += N; - const D = await _e( - d, + m += q; + const I = await we( + u, `${s.text ? `Text: ${s.text}` : ""}`, m, t.labelStyle ); - m += D; - const O = await _e( - d, + m += I; + const R = await we( + u, `${s.risk ? `Risk: ${s.risk}` : ""}`, m, t.labelStyle ); - m += O, await _e( - d, + m += R, await we( + u, `${s.verifyMethod ? `Verification: ${s.verifyMethod}` : ""}`, m, t.labelStyle ); } else { - const N = await _e( - d, + const q = await we( + u, `${o.type ? `Type: ${o.type}` : ""}`, m, t.labelStyle ); - m += N, await _e( - d, + m += q, await we( + u, `${o.docRef ? `Doc Ref: ${o.docRef}` : ""}`, m, t.labelStyle ); } - const x = (d.node()?.getBBox().width ?? 200) + a, b = (d.node()?.getBBox().height ?? 200) + a, k = -x / 2, w = -b / 2, S = U.svg(d), v = X(t, {}); - t.look !== "handDrawn" && (v.roughness = 0, v.fillStyle = "solid"); - const M = S.rectangle(k, w, x, b, v), B = d.insert(() => M, ":first-child"); - if (B.attr("class", "basic label-container outer-path").attr("style", i), u?.length) { - const N = t.colorIndex ?? 0; - d.attr("data-color-id", `color-${N % u.length}`); - } - if (d.selectAll(".label").each((N, D, O) => { - const W = ct(O[D]), z = W.attr("transform"); - let I = 0, F = 0; - if (z) { - const H = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(z); - H && (I = parseFloat(H[1]), F = parseFloat(H[2])); + const C = (u.node()?.getBBox().width ?? 200) + a, b = (u.node()?.getBBox().height ?? 200) + a, k = -C / 2, T = -b / 2, S = j.svg(u), _ = V(t, {}); + t.look !== "handDrawn" && (_.roughness = 0, _.fillStyle = "solid"); + const A = S.rectangle(k, T, C, b, _), v = u.insert(() => A, ":first-child"); + if (v.attr("class", "basic label-container outer-path").attr("style", i), d?.length) { + const q = t.colorIndex ?? 0; + u.attr("data-color-id", `color-${q % d.length}`); + } + if (u.selectAll(".label").each((q, I, R) => { + const H = ht(R[I]), W = H.attr("transform"); + let M = 0, F = 0; + if (W) { + const z = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(W); + z && (M = parseFloat(z[1]), F = parseFloat(z[2])); } const L = F - b / 2; let E = k + a / 2; - (D === 0 || D === 1) && (E = I), W.attr("transform", `translate(${E}, ${L + a})`); + (I === 0 || I === 1) && (E = M), H.attr("transform", `translate(${E}, ${L + a})`); }), m > g + y + n) { - const N = w + g + y + n; - let D; + const q = T + g + y + n; + let I; if (t.look === "neo") { - const z = [ - [k, N], - [k + x, N], - [k + x, N + 1e-3], - [k, N + 1e-3] + const W = [ + [k, q], + [k + C, q], + [k + C, q + 1e-3], + [k, q + 1e-3] ]; - D = S.polygon(z, v); + I = S.polygon(W, _); } else - D = S.line(k, N, k + x, N, v); - d.insert(() => D).attr("class", "divider"); + I = S.line(k, q, k + C, q, _); + u.insert(() => I).attr("class", "divider"); } - return Z(t, B), t.intersect = function(N) { - return j.rect(t, N); - }, i && t.look !== "handDrawn" && (p || u?.length) && d.selectAll("path").attr("style", i), d; + return K(t, v), t.intersect = function(q) { + return G.rect(t, q); + }, i && t.look !== "handDrawn" && (f || d?.length) && u.selectAll("path").attr("style", i), u; } -f(am, "requirementBox"); -async function _e(e, t, r, i = "") { +p(kg, "requirementBox"); +async function we(e, t, r, i = "") { if (t === "") return 0; - const s = e.insert("g").attr("class", "label").attr("style", i), o = gt(), a = o.htmlLabels ?? !0, n = await Ge( + const s = e.insert("g").attr("class", "label").attr("style", i), o = gt(), a = o.htmlLabels ?? !0, n = await He( s, - En(Sr(t)), + un(br(t)), { - width: He(t, o) + 50, + width: qe(t, o) + 50, // Add room for error when splitting text into multiple lines classes: "markdown-node-label", useHtmlLabels: a, @@ -13512,7 +13440,7 @@ async function _e(e, t, r, i = "") { ); let l; if (a) { - const c = n.children[0], h = ct(n); + const c = n.children[0], h = ht(n); l = c.getBoundingClientRect(), h.attr("width", l.width), h.attr("height", l.height); } else { const c = n.children[0]; @@ -13522,8 +13450,8 @@ async function _e(e, t, r, i = "") { } return s.attr("transform", `translate(${-l.width / 2},${-l.height / 2 + r})`), l.height; } -f(_e, "addText"); -var z_ = /* @__PURE__ */ f((e) => { +p(we, "addText"); +var hT = /* @__PURE__ */ p((e) => { switch (e) { case "Very High": return "red"; @@ -13538,8 +13466,8 @@ var z_ = /* @__PURE__ */ f((e) => { return "lightblue"; } }, "colorFromPriority"); -async function nm(e, t, { config: r }) { - const { labelStyles: i, nodeStyles: s } = V(t); +async function wg(e, t, { config: r }) { + const { labelStyles: i, nodeStyles: s } = Z(t); t.labelStyle = i || ""; const o = 10, a = t.width; t.width = (t.width ?? 200) - 10; @@ -13547,10 +13475,10 @@ async function nm(e, t, { config: r }) { shapeSvg: n, bbox: l, label: c - } = await st(e, t, tt(t)), h = t.padding || 10; - let u = "", p; - "ticket" in t && t.ticket && r?.kanban?.ticketBaseUrl && (u = r?.kanban?.ticketBaseUrl.replace("#TICKET#", t.ticket), p = n.insert("svg:a", ":first-child").attr("class", "kanban-ticket-link").attr("xlink:href", u).attr("target", "_blank")); - const d = { + } = await rt(e, t, et(t)), h = t.padding || 10; + let d = "", f; + "ticket" in t && t.ticket && r?.kanban?.ticketBaseUrl && (d = r?.kanban?.ticketBaseUrl.replace("#TICKET#", t.ticket), f = n.insert("svg:a", ":first-child").attr("class", "kanban-ticket-link").attr("xlink:href", d).attr("target", "_blank")); + const u = { useHtmlLabels: t.useHtmlLabels, labelStyle: t.labelStyle || "", width: t.width, @@ -13559,61 +13487,61 @@ async function nm(e, t, { config: r }) { centerLabel: !1 }; let g, m; - p ? { label: g, bbox: m } = await xa( - p, + f ? { label: g, bbox: m } = await ea( + f, "ticket" in t && t.ticket || "", - d - ) : { label: g, bbox: m } = await xa( + u + ) : { label: g, bbox: m } = await ea( n, "ticket" in t && t.ticket || "", - d + u ); - const { label: y, bbox: x } = await xa( + const { label: y, bbox: C } = await ea( n, "assigned" in t && t.assigned || "", - d + u ); t.width = a; - const b = 10, k = t?.width || 0, w = Math.max(m.height, x.height) / 2, S = Math.max(l.height + b * 2, t?.height || 0) + w, v = -k / 2, M = -S / 2; + const b = 10, k = t?.width || 0, T = Math.max(m.height, C.height) / 2, S = Math.max(l.height + b * 2, t?.height || 0) + T, _ = -k / 2, A = -S / 2; c.attr( "transform", - "translate(" + (h - k / 2) + ", " + (-w - l.height / 2) + ")" + "translate(" + (h - k / 2) + ", " + (-T - l.height / 2) + ")" ), g.attr( "transform", - "translate(" + (h - k / 2) + ", " + (-w + l.height / 2) + ")" + "translate(" + (h - k / 2) + ", " + (-T + l.height / 2) + ")" ), y.attr( "transform", - "translate(" + (h + k / 2 - x.width - 2 * o) + ", " + (-w + l.height / 2) + ")" + "translate(" + (h + k / 2 - C.width - 2 * o) + ", " + (-T + l.height / 2) + ")" ); - let B; - const { rx: N, ry: D } = t, { cssStyles: O } = t; + let v; + const { rx: q, ry: I } = t, { cssStyles: R } = t; if (t.look === "handDrawn") { - const W = U.svg(n), z = X(t, {}), I = N || D ? W.path(ar(v, M, k, S, N || 0), z) : W.rectangle(v, M, k, S, z); - B = n.insert(() => I, ":first-child"), B.attr("class", "basic label-container").attr("style", O || null); + const H = j.svg(n), W = V(t, {}), M = q || I ? H.path(ir(_, A, k, S, q || 0), W) : H.rectangle(_, A, k, S, W); + v = n.insert(() => M, ":first-child"), v.attr("class", "basic label-container").attr("style", R || null); } else { - B = n.insert("rect", ":first-child"), B.attr("class", "basic label-container __APA__").attr("style", s).attr("rx", N ?? 5).attr("ry", D ?? 5).attr("x", v).attr("y", M).attr("width", k).attr("height", S); - const W = "priority" in t && t.priority; - if (W) { - const z = n.append("line"), I = v + 2, F = M + Math.floor((N ?? 0) / 2), L = M + S - Math.floor((N ?? 0) / 2); - z.attr("x1", I).attr("y1", F).attr("x2", I).attr("y2", L).attr("stroke-width", "4").attr("stroke", z_(W)); + v = n.insert("rect", ":first-child"), v.attr("class", "basic label-container __APA__").attr("style", s).attr("rx", q ?? 5).attr("ry", I ?? 5).attr("x", _).attr("y", A).attr("width", k).attr("height", S); + const H = "priority" in t && t.priority; + if (H) { + const W = n.append("line"), M = _ + 2, F = A + Math.floor((q ?? 0) / 2), L = A + S - Math.floor((q ?? 0) / 2); + W.attr("x1", M).attr("y1", F).attr("x2", M).attr("y2", L).attr("stroke-width", "4").attr("stroke", hT(H)); } } - return Z(t, B), t.height = S, t.intersect = function(W) { - return j.rect(t, W); + return K(t, v), t.height = S, t.intersect = function(H) { + return G.rect(t, H); }, n; } -f(nm, "kanbanItem"); -async function lm(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(wg, "kanbanItem"); +async function Tg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const { shapeSvg: s, bbox: o, halfPadding: a, label: n } = await st( + const { shapeSvg: s, bbox: o, halfPadding: a, label: n } = await rt( e, t, - tt(t) - ), l = o.width + 10 * a, c = o.height + 8 * a, h = 0.15 * l, { cssStyles: u } = t, p = o.width + 20, d = o.height + 20, g = Math.max(l, p), m = Math.max(c, d); + et(t) + ), l = o.width + 10 * a, c = o.height + 8 * a, h = 0.15 * l, { cssStyles: d } = t, f = o.width + 20, u = o.height + 20, g = Math.max(l, f), m = Math.max(c, u); n.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`); let y; - const x = `M0 0 + const C = `M0 0 a${h},${h} 1 0,0 ${g * 0.25},${-1 * m * 0.1} a${h},${h} 1 0,0 ${g * 0.25},0 a${h},${h} 1 0,0 ${g * 0.25},0 @@ -13633,61 +13561,61 @@ async function lm(e, t) { a${h},${h} 1 0,0 ${g * 0.1},${-1 * m * 0.33} H0 V0 Z`; if (t.look === "handDrawn") { - const b = U.svg(s), k = X(t, {}), w = b.path(x, k); - y = s.insert(() => w, ":first-child"), y.attr("class", "basic label-container").attr("style", Dt(u)); + const b = j.svg(s), k = V(t, {}), T = b.path(C, k); + y = s.insert(() => T, ":first-child"), y.attr("class", "basic label-container").attr("style", Dt(d)); } else - y = s.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", x); - return y.attr("transform", `translate(${-g / 2}, ${-m / 2})`), Z(t, y), t.calcIntersect = function(b, k) { - return j.rect(b, k); + y = s.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", C); + return y.attr("transform", `translate(${-g / 2}, ${-m / 2})`), K(t, y), t.calcIntersect = function(b, k) { + return G.rect(b, k); }, t.intersect = function(b) { - return R.info("Bang intersect", t, b), j.rect(t, b); + return P.info("Bang intersect", t, b), G.rect(t, b); }, s; } -f(lm, "bang"); -async function hm(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Tg, "bang"); +async function Sg(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const { shapeSvg: s, bbox: o, halfPadding: a, label: n } = await st( + const { shapeSvg: s, bbox: o, halfPadding: a, label: n } = await rt( e, t, - tt(t) - ), l = o.width + 2 * a, c = o.height + 2 * a, h = 0.15 * l, u = 0.25 * l, p = 0.35 * l, d = 0.2 * l, { cssStyles: g } = t; + et(t) + ), l = o.width + 2 * a, c = o.height + 2 * a, h = 0.15 * l, d = 0.25 * l, f = 0.35 * l, u = 0.2 * l, { cssStyles: g } = t; let m; const y = `M0 0 a${h},${h} 0 0,1 ${l * 0.25},${-1 * l * 0.1} - a${p},${p} 1 0,1 ${l * 0.4},${-1 * l * 0.1} - a${u},${u} 1 0,1 ${l * 0.35},${l * 0.2} + a${f},${f} 1 0,1 ${l * 0.4},${-1 * l * 0.1} + a${d},${d} 1 0,1 ${l * 0.35},${l * 0.2} a${h},${h} 1 0,1 ${l * 0.15},${c * 0.35} - a${d},${d} 1 0,1 ${-1 * l * 0.15},${c * 0.65} + a${u},${u} 1 0,1 ${-1 * l * 0.15},${c * 0.65} - a${u},${h} 1 0,1 ${-1 * l * 0.25},${l * 0.15} - a${p},${p} 1 0,1 ${-1 * l * 0.5},0 + a${d},${h} 1 0,1 ${-1 * l * 0.25},${l * 0.15} + a${f},${f} 1 0,1 ${-1 * l * 0.5},0 a${h},${h} 1 0,1 ${-1 * l * 0.25},${-1 * l * 0.15} a${h},${h} 1 0,1 ${-1 * l * 0.1},${-1 * c * 0.35} - a${d},${d} 1 0,1 ${l * 0.1},${-1 * c * 0.65} + a${u},${u} 1 0,1 ${l * 0.1},${-1 * c * 0.65} H0 V0 Z`; if (t.look === "handDrawn") { - const x = U.svg(s), b = X(t, {}), k = x.path(y, b); + const C = j.svg(s), b = V(t, {}), k = C.path(y, b); m = s.insert(() => k, ":first-child"), m.attr("class", "basic label-container").attr("style", Dt(g)); } else m = s.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", y); - return n.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`), m.attr("transform", `translate(${-l / 2}, ${-c / 2})`), Z(t, m), t.calcIntersect = function(x, b) { - return j.rect(x, b); - }, t.intersect = function(x) { - return R.info("Cloud intersect", t, x), j.rect(t, x); + return n.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`), m.attr("transform", `translate(${-l / 2}, ${-c / 2})`), K(t, m), t.calcIntersect = function(C, b) { + return G.rect(C, b); + }, t.intersect = function(C) { + return P.info("Cloud intersect", t, C), G.rect(t, C); }, s; } -f(hm, "cloud"); -async function cm(e, t) { - const { labelStyles: r, nodeStyles: i } = V(t); +p(Sg, "cloud"); +async function _g(e, t) { + const { labelStyles: r, nodeStyles: i } = Z(t); t.labelStyle = r; - const { shapeSvg: s, bbox: o, halfPadding: a, label: n } = await st( + const { shapeSvg: s, bbox: o, halfPadding: a, label: n } = await rt( e, t, - tt(t) - ), l = o.width + 8 * a, c = o.height + 2 * a, h = 5, u = t.look === "neo" ? ` + et(t) + ), l = o.width + 8 * a, c = o.height + 2 * a, h = 5, d = t.look === "neo" ? ` M${-l / 2} ${c / 2 - h} v${-c + 2 * h} q0,-${h} ${h},-${h} @@ -13712,22 +13640,22 @@ async function cm(e, t) { throw new Error( `defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?` ); - const p = s.append("path").attr("id", t.domId).attr("class", "node-bkg node-" + t.type).attr("style", i).attr("d", u); - return s.append("line").attr("class", "node-line-").attr("x1", -l / 2).attr("y1", c / 2).attr("x2", l / 2).attr("y2", c / 2), n.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`), s.append(() => n.node()), Z(t, p), t.calcIntersect = function(d, g) { - return j.rect(d, g); - }, t.intersect = function(d) { - return j.rect(t, d); + const f = s.append("path").attr("id", t.domId).attr("class", "node-bkg node-" + t.type).attr("style", i).attr("d", d); + return s.append("line").attr("class", "node-line-").attr("x1", -l / 2).attr("y1", c / 2).attr("x2", l / 2).attr("y2", c / 2), n.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`), s.append(() => n.node()), K(t, f), t.calcIntersect = function(u, g) { + return G.rect(u, g); + }, t.intersect = function(u) { + return G.rect(t, u); }, s; } -f(cm, "defaultMindmapNode"); -async function um(e, t) { +p(_g, "defaultMindmapNode"); +async function Bg(e, t) { const r = { padding: t.padding ?? 0 }; - return Tl(e, t, r); + return rl(e, t, r); } -f(um, "mindmapCircle"); -var W_ = [ +p(Bg, "mindmapCircle"); +var cT = [ { semanticName: "Process", name: "Rectangle", @@ -13735,7 +13663,7 @@ var W_ = [ description: "Standard process shape", aliases: ["proc", "process", "rectangle"], internalAliases: ["squareRect"], - handler: Wg + handler: ig }, { semanticName: "Event", @@ -13744,7 +13672,7 @@ var W_ = [ description: "Represents an event", aliases: ["event"], internalAliases: ["roundedRect"], - handler: Ng + handler: tg }, { semanticName: "Terminal Point", @@ -13752,7 +13680,7 @@ var W_ = [ shortName: "stadium", description: "Terminal point", aliases: ["terminal", "pill"], - handler: Hg + handler: sg }, { semanticName: "Subprocess", @@ -13760,7 +13688,7 @@ var W_ = [ shortName: "fr-rect", description: "Subprocess", aliases: ["subprocess", "subproc", "framed-rectangle", "subroutine"], - handler: Gg + handler: lg }, { semanticName: "Database", @@ -13768,7 +13696,15 @@ var W_ = [ shortName: "cyl", description: "Database storage", aliases: ["db", "database", "cylinder"], - handler: dg + handler: Bp + }, + { + semanticName: "Data Store", + name: "Data Store", + shortName: "datastore", + description: "Data flow diagram data store", + aliases: ["data-store"], + handler: vp }, { semanticName: "Start", @@ -13776,7 +13712,7 @@ var W_ = [ shortName: "circle", description: "Starting point", aliases: ["circ"], - handler: Tl + handler: rl }, { semanticName: "Bang", @@ -13784,7 +13720,7 @@ var W_ = [ shortName: "bang", description: "Bang", aliases: ["bang"], - handler: lm + handler: Tg }, { semanticName: "Cloud", @@ -13792,7 +13728,7 @@ var W_ = [ shortName: "cloud", description: "cloud", aliases: ["cloud"], - handler: hm + handler: Sg }, { semanticName: "Decision", @@ -13800,7 +13736,7 @@ var W_ = [ shortName: "diam", description: "Decision-making step", aliases: ["decision", "diamond", "question"], - handler: Dg + handler: Kp }, { semanticName: "Prepare Conditional", @@ -13808,7 +13744,7 @@ var W_ = [ shortName: "hex", description: "Preparation or condition step", aliases: ["hexagon", "prepare"], - handler: xg + handler: Op }, { semanticName: "Data Input/Output", @@ -13817,7 +13753,7 @@ var W_ = [ description: "Represents input or output", aliases: ["lean-right", "in-out"], internalAliases: ["lean_right"], - handler: Fg + handler: Yp }, { semanticName: "Data Input/Output", @@ -13826,7 +13762,7 @@ var W_ = [ description: "Represents output or input", aliases: ["lean-left", "out-in"], internalAliases: ["lean_left"], - handler: Lg + handler: Hp }, { semanticName: "Priority Action", @@ -13834,7 +13770,7 @@ var W_ = [ shortName: "trap-b", description: "Priority action", aliases: ["priority", "trapezoid-bottom", "trapezoid"], - handler: Qg + handler: fg }, { semanticName: "Manual Operation", @@ -13843,7 +13779,7 @@ var W_ = [ description: "Represents a manual task", aliases: ["manual", "trapezoid-top", "inv-trapezoid"], internalAliases: ["inv_trapezoid"], - handler: vg + handler: Wp }, { semanticName: "Stop", @@ -13852,14 +13788,14 @@ var W_ = [ description: "Represents a stop point", aliases: ["double-circle"], internalAliases: ["doublecircle"], - handler: fg + handler: Fp }, { semanticName: "Text Block", name: "Text Block", shortName: "text", description: "Text block", - handler: Zg + handler: dg }, { semanticName: "Card", @@ -13867,7 +13803,7 @@ var W_ = [ shortName: "notch-rect", description: "Represents a card", aliases: ["card", "notched-rectangle"], - handler: sg + handler: Cp }, { semanticName: "Lined/Shaded Process", @@ -13875,7 +13811,7 @@ var W_ = [ shortName: "lin-rect", description: "Lined process shape", aliases: ["lined-rectangle", "lined-process", "lin-proc", "shaded-process"], - handler: qg + handler: eg }, { semanticName: "Start", @@ -13884,7 +13820,7 @@ var W_ = [ description: "Small starting point", aliases: ["start", "small-circle"], internalAliases: ["stateStart"], - handler: Ug + handler: ng }, { semanticName: "Stop", @@ -13893,7 +13829,7 @@ var W_ = [ description: "Stop point", aliases: ["stop", "framed-circle"], internalAliases: ["stateEnd"], - handler: jg + handler: ag }, { semanticName: "Fork/Join", @@ -13902,7 +13838,7 @@ var W_ = [ description: "Fork or join in process flow", aliases: ["join"], internalAliases: ["forkJoin"], - handler: yg + handler: Ep }, { semanticName: "Collate", @@ -13910,7 +13846,7 @@ var W_ = [ shortName: "hourglass", description: "Represents a collate operation", aliases: ["hourglass", "collate"], - handler: bg + handler: Ip }, { semanticName: "Comment", @@ -13918,21 +13854,21 @@ var W_ = [ shortName: "brace", description: "Adds a comment", aliases: ["comment", "brace-l"], - handler: lg + handler: wp }, { semanticName: "Comment Right", name: "Curly Brace", shortName: "brace-r", description: "Adds a comment", - handler: hg + handler: Tp }, { semanticName: "Comment with braces on both sides", name: "Curly Braces", shortName: "braces", description: "Adds a comment", - handler: cg + handler: Sp }, { semanticName: "Com Link", @@ -13940,7 +13876,7 @@ var W_ = [ shortName: "bolt", description: "Communication link", aliases: ["com-link", "lightning-bolt"], - handler: Ag + handler: Up }, { semanticName: "Document", @@ -13948,7 +13884,7 @@ var W_ = [ shortName: "doc", description: "Represents a document", aliases: ["doc", "document"], - handler: em + handler: mg }, { semanticName: "Delay", @@ -13956,7 +13892,7 @@ var W_ = [ shortName: "delay", description: "Represents a delay", aliases: ["half-rounded-rectangle"], - handler: Cg + handler: $p }, { semanticName: "Direct Access Storage", @@ -13964,7 +13900,7 @@ var W_ = [ shortName: "h-cyl", description: "Direct access storage", aliases: ["das", "horizontal-cylinder"], - handler: Kg + handler: ug }, { semanticName: "Disk Storage", @@ -13972,7 +13908,7 @@ var W_ = [ shortName: "lin-cyl", description: "Disk storage", aliases: ["disk", "lined-cylinder"], - handler: Mg + handler: Gp }, { semanticName: "Display", @@ -13980,7 +13916,7 @@ var W_ = [ shortName: "curv-trap", description: "Represents a display", aliases: ["curved-trapezoid", "display"], - handler: ug + handler: _p }, { semanticName: "Divided Process", @@ -13988,7 +13924,7 @@ var W_ = [ shortName: "div-rect", description: "Divided process shape", aliases: ["div-proc", "divided-rectangle", "divided-process"], - handler: pg + handler: Lp }, { semanticName: "Extract", @@ -13996,7 +13932,7 @@ var W_ = [ shortName: "tri", description: "Extraction process", aliases: ["extract", "triangle"], - handler: tm + handler: gg }, { semanticName: "Internal Storage", @@ -14004,7 +13940,7 @@ var W_ = [ shortName: "win-pane", description: "Internal storage", aliases: ["internal-storage", "window-pane"], - handler: im + handler: Cg }, { semanticName: "Junction", @@ -14012,7 +13948,7 @@ var W_ = [ shortName: "f-circ", description: "Junction point", aliases: ["junction", "filled-circle"], - handler: gg + handler: Ap }, { semanticName: "Loop Limit", @@ -14020,7 +13956,7 @@ var W_ = [ shortName: "notch-pent", description: "Loop limit step", aliases: ["loop-limit", "notched-pentagon"], - handler: Jg + handler: pg }, { semanticName: "Manual File", @@ -14028,7 +13964,7 @@ var W_ = [ shortName: "flip-tri", description: "Manual file operation", aliases: ["manual-file", "flipped-triangle"], - handler: mg + handler: Mp }, { semanticName: "Manual Input", @@ -14036,7 +13972,7 @@ var W_ = [ shortName: "sl-rect", description: "Manual input step", aliases: ["manual-input", "sloped-rectangle"], - handler: zg + handler: rg }, { semanticName: "Multi-Document", @@ -14044,7 +13980,7 @@ var W_ = [ shortName: "docs", description: "Multiple documents", aliases: ["documents", "st-doc", "stacked-document"], - handler: Og + handler: Vp }, { semanticName: "Multi-Process", @@ -14052,7 +13988,7 @@ var W_ = [ shortName: "st-rect", description: "Multiple processes", aliases: ["procs", "processes", "stacked-rectangle"], - handler: $g + handler: Xp }, { semanticName: "Stored Data", @@ -14060,7 +13996,7 @@ var W_ = [ shortName: "bow-rect", description: "Stored data", aliases: ["stored-data", "bow-tie-rectangle"], - handler: ig + handler: yp }, { semanticName: "Summary", @@ -14068,7 +14004,7 @@ var W_ = [ shortName: "cross-circ", description: "Summary", aliases: ["summary", "crossed-circle"], - handler: ng + handler: kp }, { semanticName: "Tagged Document", @@ -14076,7 +14012,7 @@ var W_ = [ shortName: "tag-doc", description: "Tagged document", aliases: ["tag-doc", "tagged-document"], - handler: Vg + handler: cg }, { semanticName: "Tagged Process", @@ -14084,7 +14020,7 @@ var W_ = [ shortName: "tag-rect", description: "Tagged process", aliases: ["tagged-rectangle", "tag-proc", "tagged-process"], - handler: Xg + handler: hg }, { semanticName: "Paper Tape", @@ -14092,7 +14028,7 @@ var W_ = [ shortName: "flag", description: "Paper tape", aliases: ["paper-tape"], - handler: rm + handler: yg }, { semanticName: "Odd", @@ -14100,7 +14036,7 @@ var W_ = [ shortName: "odd", description: "Odd shape", internalAliases: ["rect_left_inv_arrow"], - handler: Pg + handler: Qp }, { semanticName: "Lined Document", @@ -14108,54 +14044,54 @@ var W_ = [ shortName: "lin-doc", description: "Lined document", aliases: ["lined-document"], - handler: Eg + handler: jp } -], H_ = /* @__PURE__ */ f(() => { +], dT = /* @__PURE__ */ p(() => { const t = [ ...Object.entries({ // States - state: Yg, - choice: og, - note: Ig, + state: og, + choice: xp, + note: Zp, // Rectangles - rectWithTitle: Rg, - labelRect: Bg, + rectWithTitle: Jp, + labelRect: zp, // Icons - iconSquare: Sg, - iconCircle: Tg, - icon: kg, - iconRounded: wg, - imageSquare: _g, - anchor: eg, + iconSquare: Np, + iconCircle: Rp, + icon: Dp, + iconRounded: Pp, + imageSquare: qp, + anchor: gp, // Kanban diagram - kanbanItem: nm, + kanbanItem: wg, //Mindmap diagram - mindmapCircle: um, - defaultMindmapNode: cm, + mindmapCircle: Bg, + defaultMindmapNode: _g, // class diagram - classBox: om, + classBox: bg, // er diagram - erBox: wl, + erBox: il, // Requirement diagram - requirementBox: am + requirementBox: kg }), - ...W_.flatMap((r) => [ + ...cT.flatMap((r) => [ r.shortName, ..."aliases" in r ? r.aliases : [], ..."internalAliases" in r ? r.internalAliases : [] ].map((s) => [s, r.handler])) ]; return Object.fromEntries(t); -}, "generateShapeMap"), dm = H_(); -function Y_(e) { - return e in dm; +}, "generateShapeMap"), vg = dT(); +function uT(e) { + return e in vg; } -f(Y_, "isValidShape"); -var No = /* @__PURE__ */ new Map(); -async function pm(e, t, r) { +p(uT, "isValidShape"); +var wo = /* @__PURE__ */ new Map(); +async function Lg(e, t, r) { let i, s; t.shape === "rect" && (t.rx && t.ry ? t.shape = "roundedRect" : t.shape = "squareRect"); - const o = t.shape ? dm[t.shape] : void 0; + const o = t.shape ? vg[t.shape] : void 0; if (!o) throw new Error(`No such shape: ${t.shape}. Please check your syntax.`); if (t.link) { @@ -14163,16 +14099,16 @@ async function pm(e, t, r) { r.config.securityLevel === "sandbox" ? a = "_top" : t.linkTarget && (a = t.linkTarget || "_blank"), i = e.insert("svg:a").attr("xlink:href", t.link).attr("target", a ?? null), s = await o(i, t, r); } else s = await o(e, t, r), i = s; - return i.attr("data-look", Dt(t.look)), t.tooltip && s.attr("title", t.tooltip), No.set(t.id, i), t.haveCallback && i.attr("class", i.attr("class") + " clickable"), i; -} -f(pm, "insertNode"); -var _A = /* @__PURE__ */ f((e, t) => { - No.set(t.id, e); -}, "setNodeElem"), vA = /* @__PURE__ */ f(() => { - No.clear(); -}, "clear"), BA = /* @__PURE__ */ f((e) => { - const t = No.get(e.id); - R.trace( + return i.attr("data-look", Dt(t.look)), t.tooltip && s.attr("title", t.tooltip), wo.set(t.id, i), t.haveCallback && i.attr("class", i.attr("class") + " clickable"), i; +} +p(Lg, "insertNode"); +var Nv = /* @__PURE__ */ p((e, t) => { + wo.set(t.id, e); +}, "setNodeElem"), qv = /* @__PURE__ */ p(() => { + wo.clear(); +}, "clear"), Wv = /* @__PURE__ */ p((e) => { + const t = wo.get(e.id); + P.trace( "Transforming node", e.diff, e, @@ -14183,8 +14119,8 @@ var _A = /* @__PURE__ */ f((e, t) => { "transform", "translate(" + (e.x + i - e.width / 2) + ", " + (e.y - e.height / 2 - r) + ")" ) : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), i; -}, "positionNode"), j_ = /* @__PURE__ */ f((e, t, r, i, s, o = !1, a) => { - t.arrowTypeStart && Bc( +}, "positionNode"), fT = /* @__PURE__ */ p((e, t, r, i, s, o = !1, a) => { + t.arrowTypeStart && tc( e, "start", t.arrowTypeStart, @@ -14193,8 +14129,8 @@ var _A = /* @__PURE__ */ f((e, t) => { s, o, a - ), t.arrowTypeEnd && Bc(e, "end", t.arrowTypeEnd, r, i, s, o, a); -}, "addEdgeMarkers"), U_ = { + ), t.arrowTypeEnd && tc(e, "end", t.arrowTypeEnd, r, i, s, o, a); +}, "addEdgeMarkers"), pT = { arrow_cross: { type: "cross", fill: !1 }, arrow_point: { type: "point", fill: !0 }, arrow_barb: { type: "barb", fill: !0 }, @@ -14211,7 +14147,7 @@ var _A = /* @__PURE__ */ f((e, t) => { zero_or_more: { type: "zeroOrMore", fill: !1 }, requirement_arrow: { type: "requirement_arrow", fill: !1 }, requirement_contains: { type: "requirement_contains", fill: !1 } -}, G_ = [ +}, gT = [ "cross", "point", "circle", @@ -14221,39 +14157,39 @@ var _A = /* @__PURE__ */ f((e, t) => { "composition", "dependency", "barb" -], Bc = /* @__PURE__ */ f((e, t, r, i, s, o, a = !1, n) => { - const l = U_[r], c = l && G_.includes(l.type); +], tc = /* @__PURE__ */ p((e, t, r, i, s, o, a = !1, n) => { + const l = pT[r], c = l && gT.includes(l.type); if (!l) { - R.warn(`Unknown arrow type: ${r}`); + P.warn(`Unknown arrow type: ${r}`); return; } - const h = l.type, d = `${s}_${o}-${h}${t === "start" ? "Start" : "End"}${a && c ? "-margin" : ""}`; + const h = l.type, u = `${s}_${o}-${h}${t === "start" ? "Start" : "End"}${a && c ? "-margin" : ""}`; if (n && n.trim() !== "") { - const g = n.replace(/[^\dA-Za-z]/g, "_"), m = `${d}_${g}`; + const g = n.replace(/[^\dA-Za-z]/g, "_"), m = `${u}_${g}`; if (!document.getElementById(m)) { - const y = document.getElementById(d); + const y = document.getElementById(u); if (y) { - const x = y.cloneNode(!0); - x.id = m, x.querySelectorAll("path, circle, line").forEach((k) => { + const C = y.cloneNode(!0); + C.id = m, C.querySelectorAll("path, circle, line").forEach((k) => { k.setAttribute("stroke", n), l.fill && k.setAttribute("fill", n); - }), y.parentNode?.appendChild(x); + }), y.parentNode?.appendChild(C); } } e.attr(`marker-${t}`, `url(${i}#${m})`); } else - e.attr(`marker-${t}`, `url(${i}#${d})`); -}, "addEdgeMarker"), X_ = /* @__PURE__ */ f((e) => typeof e == "string" ? e : gt()?.flowchart?.curve, "resolveEdgeCurveType"), yo = /* @__PURE__ */ new Map(), Nt = /* @__PURE__ */ new Map(), LA = /* @__PURE__ */ f(() => { - yo.clear(), Nt.clear(); -}, "clear"), bi = /* @__PURE__ */ f((e) => e ? typeof e == "string" ? e : e.reduce((t, r) => t + ";" + r, "") : "", "getLabelStyles"), V_ = /* @__PURE__ */ f(async (e, t) => { + e.attr(`marker-${t}`, `url(${i}#${u})`); +}, "addEdgeMarker"), mT = /* @__PURE__ */ p((e) => typeof e == "string" ? e : gt()?.flowchart?.curve, "resolveEdgeCurveType"), so = /* @__PURE__ */ new Map(), Nt = /* @__PURE__ */ new Map(), zv = /* @__PURE__ */ p(() => { + so.clear(), Nt.clear(); +}, "clear"), fi = /* @__PURE__ */ p((e) => e ? typeof e == "string" ? e : e.reduce((t, r) => t + ";" + r, "") : "", "getLabelStyles"), yT = /* @__PURE__ */ p(async (e, t) => { const r = gt(); let i = Vt(r); - const { labelStyles: s } = V(t); + const { labelStyles: s } = Z(t); t.labelStyle = s; - const o = e.insert("g").attr("class", "edgeLabel"), a = o.insert("g").attr("class", "label").attr("data-id", t.id), n = t.labelType === "markdown", c = await Ge( + const o = e.insert("g").attr("class", "edgeLabel"), a = o.insert("g").attr("class", "label").attr("data-id", t.id), n = t.labelType === "markdown", c = await He( e, t.label, { - style: bi(t.labelStyle), + style: fi(t.labelStyle), useHtmlLabels: i, addSvgBackground: !0, isNode: !1, @@ -14263,97 +14199,97 @@ var _A = /* @__PURE__ */ f((e, t) => { }, r ); - a.node().appendChild(c), R.info("abc82", t, t.labelType); - let h = c.getBBox(), u = h; + a.node().appendChild(c), P.info("abc82", t, t.labelType); + let h = c.getBBox(), d = h; if (i) { - const d = c.children[0], g = ct(c); - h = d.getBoundingClientRect(), u = h, g.attr("width", h.width), g.attr("height", h.height); + const u = c.children[0], g = ht(c); + h = u.getBoundingClientRect(), d = h, g.attr("width", h.width), g.attr("height", h.height); } else { - const d = ct(c).select("text").node(); - d && typeof d.getBBox == "function" && (u = d.getBBox()); + const u = ht(c).select("text").node(); + u && typeof u.getBBox == "function" && (d = u.getBBox()); } - a.attr("transform", fi(u, i)), yo.set(t.id, o), t.width = h.width, t.height = h.height; - let p; + a.attr("transform", li(d, i)), so.set(t.id, o), t.width = h.width, t.height = h.height; + let f; if (t.startLabelLeft) { - const d = e.insert("g").attr("class", "edgeTerminals"), g = d.insert("g").attr("class", "inner"), m = await Ke( + const u = e.insert("g").attr("class", "edgeTerminals"), g = u.insert("g").attr("class", "inner"), m = await Ve( g, t.startLabelLeft, - bi(t.labelStyle) || "", + fi(t.labelStyle) || "", !1, !1 ); - p = m; + f = m; let y = m.getBBox(); if (i) { - const x = m.children[0], b = ct(m); - y = x.getBoundingClientRect(), b.attr("width", y.width), b.attr("height", y.height); + const C = m.children[0], b = ht(m); + y = C.getBoundingClientRect(), b.attr("width", y.width), b.attr("height", y.height); } - g.attr("transform", fi(y, i)), Nt.get(t.id) || Nt.set(t.id, {}), Nt.get(t.id).startLeft = d, Fi(p, t.startLabelLeft); + g.attr("transform", li(y, i)), Nt.get(t.id) || Nt.set(t.id, {}), Nt.get(t.id).startLeft = u, wi(f, t.startLabelLeft); } if (t.startLabelRight) { - const d = e.insert("g").attr("class", "edgeTerminals"), g = d.insert("g").attr("class", "inner"), m = await Ke( + const u = e.insert("g").attr("class", "edgeTerminals"), g = u.insert("g").attr("class", "inner"), m = await Ve( g, t.startLabelRight, - bi(t.labelStyle) || "", + fi(t.labelStyle) || "", !1, !1 ); - p = m, g.node().appendChild(m); + f = m; let y = m.getBBox(); if (i) { - const x = m.children[0], b = ct(m); - y = x.getBoundingClientRect(), b.attr("width", y.width), b.attr("height", y.height); + const C = m.children[0], b = ht(m); + y = C.getBoundingClientRect(), b.attr("width", y.width), b.attr("height", y.height); } - g.attr("transform", fi(y, i)), Nt.get(t.id) || Nt.set(t.id, {}), Nt.get(t.id).startRight = d, Fi(p, t.startLabelRight); + g.attr("transform", li(y, i)), Nt.get(t.id) || Nt.set(t.id, {}), Nt.get(t.id).startRight = u, wi(f, t.startLabelRight); } if (t.endLabelLeft) { - const d = e.insert("g").attr("class", "edgeTerminals"), g = d.insert("g").attr("class", "inner"), m = await Ke( - g, + const u = e.insert("g").attr("class", "edgeTerminals"), g = u.insert("g").attr("class", "inner"), m = await Ve( + u, t.endLabelLeft, - bi(t.labelStyle) || "", + fi(t.labelStyle) || "", !1, !1 ); - p = m; + f = m; let y = m.getBBox(); if (i) { - const x = m.children[0], b = ct(m); - y = x.getBoundingClientRect(), b.attr("width", y.width), b.attr("height", y.height); + const C = m.children[0], b = ht(m); + y = C.getBoundingClientRect(), b.attr("width", y.width), b.attr("height", y.height); } - g.attr("transform", fi(y, i)), d.node().appendChild(m), Nt.get(t.id) || Nt.set(t.id, {}), Nt.get(t.id).endLeft = d, Fi(p, t.endLabelLeft); + g.attr("transform", li(y, i)), Nt.get(t.id) || Nt.set(t.id, {}), Nt.get(t.id).endLeft = u, wi(f, t.endLabelLeft); } if (t.endLabelRight) { - const d = e.insert("g").attr("class", "edgeTerminals"), g = d.insert("g").attr("class", "inner"), m = await Ke( - g, + const u = e.insert("g").attr("class", "edgeTerminals"), g = u.insert("g").attr("class", "inner"), m = await Ve( + u, t.endLabelRight, - bi(t.labelStyle) || "", + fi(t.labelStyle) || "", !1, !1 ); - p = m; + f = m; let y = m.getBBox(); if (i) { - const x = m.children[0], b = ct(m); - y = x.getBoundingClientRect(), b.attr("width", y.width), b.attr("height", y.height); + const C = m.children[0], b = ht(m); + y = C.getBoundingClientRect(), b.attr("width", y.width), b.attr("height", y.height); } - g.attr("transform", fi(y, i)), d.node().appendChild(m), Nt.get(t.id) || Nt.set(t.id, {}), Nt.get(t.id).endRight = d, Fi(p, t.endLabelRight); + g.attr("transform", li(y, i)), Nt.get(t.id) || Nt.set(t.id, {}), Nt.get(t.id).endRight = u, wi(f, t.endLabelRight); } return c; }, "insertEdgeLabel"); -function Fi(e, t) { +function wi(e, t) { Vt(gt()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px"); } -f(Fi, "setTerminalWidth"); -var Z_ = /* @__PURE__ */ f((e, t) => { - R.debug("Moving label abc88 ", e.id, e.label, yo.get(e.id), t); +p(wi, "setTerminalWidth"); +var CT = /* @__PURE__ */ p((e, t) => { + P.debug("Moving label abc88 ", e.id, e.label, so.get(e.id), t); let r = t.updatedPath ? t.updatedPath : t.originalPath; - const i = gt(), { subGraphTitleTotalMargin: s } = hl(i); + const i = gt(), { subGraphTitleTotalMargin: s } = Hn(i); if (e.label) { - const o = yo.get(e.id); + const o = so.get(e.id); let a = e.x, n = e.y; if (r) { - const l = me.calcLabelPosition(r); - R.debug( + const l = fe.calcLabelPosition(r); + P.debug( "Moving label " + e.label + " from (", a, ",", @@ -14371,7 +14307,7 @@ var Z_ = /* @__PURE__ */ f((e, t) => { const o = Nt.get(e.id).startLeft; let a = e.x, n = e.y; if (r) { - const l = me.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", r); + const l = fe.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", r); a = l.x, n = l.y; } o.attr("transform", `translate(${a}, ${n})`); @@ -14380,7 +14316,7 @@ var Z_ = /* @__PURE__ */ f((e, t) => { const o = Nt.get(e.id).startRight; let a = e.x, n = e.y; if (r) { - const l = me.calcTerminalLabelPosition( + const l = fe.calcTerminalLabelPosition( e.arrowTypeStart ? 10 : 0, "start_right", r @@ -14393,7 +14329,7 @@ var Z_ = /* @__PURE__ */ f((e, t) => { const o = Nt.get(e.id).endLeft; let a = e.x, n = e.y; if (r) { - const l = me.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", r); + const l = fe.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", r); a = l.x, n = l.y; } o.attr("transform", `translate(${a}, ${n})`); @@ -14402,16 +14338,16 @@ var Z_ = /* @__PURE__ */ f((e, t) => { const o = Nt.get(e.id).endRight; let a = e.x, n = e.y; if (r) { - const l = me.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", r); + const l = fe.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", r); a = l.x, n = l.y; } o.attr("transform", `translate(${a}, ${n})`); } -}, "positionEdgeLabel"), K_ = /* @__PURE__ */ f((e, t) => { +}, "positionEdgeLabel"), xT = /* @__PURE__ */ p((e, t) => { const r = e.x, i = e.y, s = Math.abs(t.x - r), o = Math.abs(t.y - i), a = e.width / 2, n = e.height / 2; return s >= a || o >= n; -}, "outsideNode"), Q_ = /* @__PURE__ */ f((e, t, r) => { - R.debug(`intersection calc abc89: +}, "outsideNode"), bT = /* @__PURE__ */ p((e, t, r) => { + P.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(t)} insidePoint : ${JSON.stringify(r)} node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`); @@ -14419,34 +14355,34 @@ var Z_ = /* @__PURE__ */ f((e, t) => { let n = r.x < t.x ? a - o : a + o; const l = e.height / 2, c = Math.abs(t.y - r.y), h = Math.abs(t.x - r.x); if (Math.abs(s - t.y) * a > Math.abs(i - t.x) * l) { - let u = r.y < t.y ? t.y - l - s : s - l - t.y; - n = h * u / c; - const p = { + let d = r.y < t.y ? t.y - l - s : s - l - t.y; + n = h * d / c; + const f = { x: r.x < t.x ? r.x + n : r.x - h + n, - y: r.y < t.y ? r.y + c - u : r.y - c + u + y: r.y < t.y ? r.y + c - d : r.y - c + d }; - return n === 0 && (p.x = t.x, p.y = t.y), h === 0 && (p.x = t.x), c === 0 && (p.y = t.y), R.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${n}`, p), p; + return n === 0 && (f.x = t.x, f.y = t.y), h === 0 && (f.x = t.x), c === 0 && (f.y = t.y), P.debug(`abc89 top/bottom calc, Q ${c}, q ${d}, R ${h}, r ${n}`, f), f; } else { r.x < t.x ? n = t.x - a - i : n = i - a - t.x; - let u = c * n / h, p = r.x < t.x ? r.x + h - n : r.x - h + n, d = r.y < t.y ? r.y + u : r.y - u; - return R.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${n}`, { _x: p, _y: d }), n === 0 && (p = t.x, d = t.y), h === 0 && (p = t.x), c === 0 && (d = t.y), { x: p, y: d }; + let d = c * n / h, f = r.x < t.x ? r.x + h - n : r.x - h + n, u = r.y < t.y ? r.y + d : r.y - d; + return P.debug(`sides calc abc89, Q ${c}, q ${d}, R ${h}, r ${n}`, { _x: f, _y: u }), n === 0 && (f = t.x, u = t.y), h === 0 && (f = t.x), c === 0 && (u = t.y), { x: f, y: u }; } -}, "intersection"), Lc = /* @__PURE__ */ f((e, t) => { - R.warn("abc88 cutPathAtIntersect", e, t); +}, "intersection"), ec = /* @__PURE__ */ p((e, t) => { + P.warn("abc88 cutPathAtIntersect", e, t); let r = [], i = e[0], s = !1; return e.forEach((o) => { - if (R.info("abc88 checking point", o, t), !K_(t, o) && !s) { - const a = Q_(t, i, o); - R.debug("abc88 inside", o, i, a), R.debug("abc88 intersection", a, t); + if (P.info("abc88 checking point", o, t), !xT(t, o) && !s) { + const a = bT(t, i, o); + P.debug("abc88 inside", o, i, a), P.debug("abc88 intersection", a, t); let n = !1; r.forEach((l) => { n = n || l.x === a.x && l.y === a.y; - }), r.some((l) => l.x === a.x && l.y === a.y) ? R.warn("abc88 no intersect", a, r) : r.push(a), s = !0; + }), r.some((l) => l.x === a.x && l.y === a.y) ? P.warn("abc88 no intersect", a, r) : r.push(a), s = !0; } else - R.warn("abc88 outside", o, i), i = o, s || r.push(o); - }), R.debug("returning points", r), r; + P.warn("abc88 outside", o, i), i = o, s || r.push(o); + }), P.debug("returning points", r), r; }, "cutPathAtIntersect"); -function fm(e) { +function Fg(e) { const t = [], r = []; for (let i = 1; i < e.length - 1; i++) { const s = e[i - 1], o = e[i], a = e[i + 1]; @@ -14454,120 +14390,120 @@ function fm(e) { } return { cornerPoints: t, cornerPointPositions: r }; } -f(fm, "extractCornerPoints"); -var Fc = /* @__PURE__ */ f(function(e, t, r) { +p(Fg, "extractCornerPoints"); +var rc = /* @__PURE__ */ p(function(e, t, r) { const i = t.x - e.x, s = t.y - e.y, o = Math.sqrt(i * i + s * s), a = r / o; return { x: t.x - a * i, y: t.y - a * s }; -}, "findAdjacentPoint"), J_ = /* @__PURE__ */ f(function(e) { - const { cornerPointPositions: t } = fm(e), r = []; +}, "findAdjacentPoint"), kT = /* @__PURE__ */ p(function(e) { + const { cornerPointPositions: t } = Fg(e), r = []; for (let i = 0; i < e.length; i++) if (t.includes(i)) { - const s = e[i - 1], o = e[i + 1], a = e[i], n = Fc(s, a, 5), l = Fc(o, a, 5), c = l.x - n.x, h = l.y - n.y; + const s = e[i - 1], o = e[i + 1], a = e[i], n = rc(s, a, 5), l = rc(o, a, 5), c = l.x - n.x, h = l.y - n.y; r.push(n); - const u = Math.sqrt(2) * 2; - let p = { x: a.x, y: a.y }; + const d = Math.sqrt(2) * 2; + let f = { x: a.x, y: a.y }; if (Math.abs(o.x - s.x) > 10 && Math.abs(o.y - s.y) >= 10) { - R.debug( + P.debug( "Corner point fixing", Math.abs(o.x - s.x), Math.abs(o.y - s.y) ); - const d = 5; - a.x === n.x ? p = { - x: c < 0 ? n.x - d + u : n.x + d - u, - y: h < 0 ? n.y - u : n.y + u - } : p = { - x: c < 0 ? n.x - u : n.x + u, - y: h < 0 ? n.y - d + u : n.y + d - u + const u = 5; + a.x === n.x ? f = { + x: c < 0 ? n.x - u + d : n.x + u - d, + y: h < 0 ? n.y - d : n.y + d + } : f = { + x: c < 0 ? n.x - d : n.x + d, + y: h < 0 ? n.y - u + d : n.y + u - d }; } else - R.debug( + P.debug( "Corner point skipping fixing", Math.abs(o.x - s.x), Math.abs(o.y - s.y) ); - r.push(p, l); + r.push(f, l); } else r.push(e[i]); return r; -}, "fixCorners"), tv = /* @__PURE__ */ f((e, t, r) => { +}, "fixCorners"), wT = /* @__PURE__ */ p((e, t, r) => { const i = e - t - r, s = 2, o = 2, a = s + o, n = Math.floor(i / a), l = Array(n).fill(`${s} ${o}`).join(" "); return `0 ${t} ${l} ${r}`; -}, "generateDashArray"), ev = /* @__PURE__ */ f(function(e, t, r, i, s, o, a, n = !1) { +}, "generateDashArray"), TT = /* @__PURE__ */ p(function(e, t, r, i, s, o, a, n = !1) { if (!a) throw new Error( `insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness` ); const { handDrawnSeed: l } = gt(); let c = t.points, h = !1; - const u = s; - var p = o; - const d = []; + const d = s; + var f = o; + const u = []; for (const E in t.cssCompiledStyles) - pf(E) || d.push(t.cssCompiledStyles[E]); - R.debug("UIO intersect check", t.points, p.x, u.x), p.intersect && u.intersect && !n && (c = c.slice(1, t.points.length - 1), c.unshift(u.intersect(c[0])), R.debug( + vf(E) || u.push(t.cssCompiledStyles[E]); + P.debug("UIO intersect check", t.points, f.x, d.x), f.intersect && d.intersect && !n && (c = c.slice(1, t.points.length - 1), c.unshift(d.intersect(c[0])), P.debug( "Last point UIO", t.start, "-->", t.end, c[c.length - 1], - p, - p.intersect(c[c.length - 1]) - ), c.push(p.intersect(c[c.length - 1]))); + f, + f.intersect(c[c.length - 1]) + ), c.push(f.intersect(c[c.length - 1]))); const g = btoa(JSON.stringify(c)); - t.toCluster && (R.info("to cluster abc88", r.get(t.toCluster)), c = Lc(t.points, r.get(t.toCluster).node), h = !0), t.fromCluster && (R.debug( + t.toCluster && (P.info("to cluster abc88", r.get(t.toCluster)), c = ec(t.points, r.get(t.toCluster).node), h = !0), t.fromCluster && (P.debug( "from cluster abc88", r.get(t.fromCluster), JSON.stringify(c, null, 2) - ), c = Lc(c.reverse(), r.get(t.fromCluster).node).reverse(), h = !0); + ), c = ec(c.reverse(), r.get(t.fromCluster).node).reverse(), h = !0); let m = c.filter((E) => !Number.isNaN(E.y)); - const y = X_(t.curve); - y !== "rounded" && (m = J_(m)); - let x = $i; + const y = mT(t.curve); + y !== "rounded" && (m = kT(m)); + let C = Bi; switch (y) { case "linear": - x = $i; + C = Bi; break; case "basis": - x = Na; + C = wa; break; case "cardinal": - x = Uu; + C = fd; break; case "bumpX": - x = zu; + C = ld; break; case "bumpY": - x = Wu; + C = hd; break; case "catmullRom": - x = Xu; + C = gd; break; case "monotoneX": - x = td; + C = kd; break; case "monotoneY": - x = ed; + C = wd; break; case "natural": - x = id; + C = Sd; break; case "step": - x = sd; + C = _d; break; case "stepAfter": - x = ad; + C = vd; break; case "stepBefore": - x = od; + C = Bd; break; case "rounded": - x = $i; + C = Bi; break; default: - x = Na; + C = wa; } - const { x: b, y: k } = Vk(t), w = E1().x(b).y(k).curve(x); + const { x: b, y: k } = y1(t), T = tk().x(b).y(k).curve(C); let S; switch (t.thickness) { case "normal": @@ -14595,49 +14531,49 @@ var Fc = /* @__PURE__ */ f(function(e, t, r) { default: S += " edge-pattern-solid"; } - let v, M = y === "rounded" ? gm(mm(m, t), 5) : w(m); - const B = Array.isArray(t.style) ? t.style : [t.style]; - let N = B.find((E) => E?.startsWith("stroke:")), D = ""; - t.animate && (D = "edge-animation-fast"), t.animation && (D = "edge-animation-" + t.animation); - let O = !1; + let _, A = y === "rounded" ? Ag(Mg(m, t), 5) : T(m); + const v = Array.isArray(t.style) ? t.style : [t.style]; + let q = v.find((E) => E?.startsWith("stroke:")), I = ""; + t.animate && (I = "edge-animation-fast"), t.animation && (I = "edge-animation-" + t.animation); + let R = !1; if (t.look === "handDrawn") { - const E = U.svg(e); + const E = j.svg(e); Object.assign([], m); - const P = E.path(M, { + const D = E.path(A, { roughness: 0.3, seed: l }); - S += " transition", v = ct(P).select("path").attr("id", `${a}-${t.id}`).attr( + S += " transition", _ = ht(D).select("path").attr("id", `${a}-${t.id}`).attr( "class", - " " + S + (t.classes ? " " + t.classes : "") + (D ? " " + D : "") - ).attr("style", B ? B.reduce((Y, Q) => Y + ";" + Q, "") : ""); - let H = v.attr("d"); - v.attr("d", H), e.node().appendChild(v.node()); + " " + S + (t.classes ? " " + t.classes : "") + (I ? " " + I : "") + ).attr("style", v ? v.reduce((Y, lt) => Y + ";" + lt, "") : ""); + let z = _.attr("d"); + _.attr("d", z), e.node().appendChild(_.node()); } else { - const E = d.join(";"), P = B ? B.reduce((ut, it) => ut + it + ";", "") : "", H = (E ? E + ";" + P + ";" : P) + ";" + (B ? B.reduce((ut, it) => ut + ";" + it, "") : ""); - v = e.append("path").attr("d", M).attr("id", `${a}-${t.id}`).attr( + const E = u.join(";"), D = v ? v.reduce((tt, yt) => tt + yt + ";", "") : "", z = (E ? E + ";" + D + ";" : D) + ";" + (v ? v.reduce((tt, yt) => tt + ";" + yt, "") : ""); + _ = e.append("path").attr("d", A).attr("id", `${a}-${t.id}`).attr( "class", - " " + S + (t.classes ? " " + t.classes : "") + (D ? " " + D : "") - ).attr("style", H), N = H.match(/stroke:([^;]+)/)?.[1], O = t.animate === !0 || !!t.animation || E.includes("animation"); - const Y = v.node(), Q = typeof Y.getTotalLength == "function" ? Y.getTotalLength() : 0, dt = $h[t.arrowTypeStart] || 0, et = $h[t.arrowTypeEnd] || 0; - if (t.look === "neo" && !O) { - const it = `stroke-dasharray: ${t.pattern === "dotted" || t.pattern === "dashed" ? tv(Q, dt, et) : `0 ${dt} ${Q - dt - et} ${et}`}; stroke-dashoffset: 0;`; - v.attr("style", it + v.attr("style")); + " " + S + (t.classes ? " " + t.classes : "") + (I ? " " + I : "") + ).attr("style", z), q = z.match(/stroke:([^;]+)/)?.[1], R = t.animate === !0 || !!t.animation || E.includes("animation"); + const Y = _.node(), lt = typeof Y.getTotalLength == "function" ? Y.getTotalLength() : 0, pt = mh[t.arrowTypeStart] || 0, ut = mh[t.arrowTypeEnd] || 0; + if (t.look === "neo" && !R) { + const yt = `stroke-dasharray: ${t.pattern === "dotted" || t.pattern === "dashed" ? wT(lt, pt, ut) : `0 ${pt} ${lt - pt - ut} ${ut}`}; stroke-dashoffset: 0;`; + _.attr("style", yt + _.attr("style")); } } - v.attr("data-edge", !0), v.attr("data-et", "edge"), v.attr("data-id", t.id), v.attr("data-points", g), v.attr("data-look", Dt(t.look)), t.showPoints && m.forEach((E) => { + _.attr("data-edge", !0), _.attr("data-et", "edge"), _.attr("data-id", t.id), _.attr("data-points", g), _.attr("data-look", Dt(t.look)), t.showPoints && m.forEach((E) => { e.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", E.x).attr("cy", E.y); }); - let W = ""; - (gt().flowchart.arrowMarkerAbsolute || gt().state.arrowMarkerAbsolute) && (W = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, W = W.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), R.info("arrowTypeStart", t.arrowTypeStart), R.info("arrowTypeEnd", t.arrowTypeEnd); - const z = !O && t?.look === "neo"; - j_(v, t, W, a, i, z, N); - const I = Math.floor(c.length / 2), F = c[I]; - me.isLabelCoordinateInPath(F, v.attr("d")) || (h = !0); + let H = ""; + (gt().flowchart.arrowMarkerAbsolute || gt().state.arrowMarkerAbsolute) && (H = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, H = H.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), P.info("arrowTypeStart", t.arrowTypeStart), P.info("arrowTypeEnd", t.arrowTypeEnd); + const W = !R && t?.look === "neo"; + fT(_, t, H, a, i, W, q); + const M = Math.floor(c.length / 2), F = c[M]; + fe.isLabelCoordinateInPath(F, _.attr("d")) || (h = !0); let L = {}; return h && (L.updatedPath = c), L.originalPath = t.points, L; }, "insertEdge"); -function gm(e, t) { +function Ag(e, t) { if (e.length < 2) return ""; let r = ""; @@ -14649,100 +14585,100 @@ function gm(e, t) { else if (o === i - 1) r += `L${a.x},${a.y}`; else { - const c = a.x - n.x, h = a.y - n.y, u = l.x - a.x, p = l.y - a.y, d = Math.hypot(c, h), g = Math.hypot(u, p); - if (d < s || g < s) { + const c = a.x - n.x, h = a.y - n.y, d = l.x - a.x, f = l.y - a.y, u = Math.hypot(c, h), g = Math.hypot(d, f); + if (u < s || g < s) { r += `L${a.x},${a.y}`; continue; } - const m = c / d, y = h / d, x = u / g, b = p / g, k = m * x + y * b, w = Math.max(-1, Math.min(1, k)), S = Math.acos(w); + const m = c / u, y = h / u, C = d / g, b = f / g, k = m * C + y * b, T = Math.max(-1, Math.min(1, k)), S = Math.acos(T); if (S < s || Math.abs(Math.PI - S) < s) { r += `L${a.x},${a.y}`; continue; } - const v = Math.min(t / Math.sin(S / 2), d / 2, g / 2), M = a.x - m * v, B = a.y - y * v, N = a.x + x * v, D = a.y + b * v; - r += `L${M},${B}`, r += `Q${a.x},${a.y} ${N},${D}`; + const _ = Math.min(t / Math.sin(S / 2), u / 2, g / 2), A = a.x - m * _, v = a.y - y * _, q = a.x + C * _, I = a.y + b * _; + r += `L${A},${v}`, r += `Q${a.x},${a.y} ${q},${I}`; } } return r; } -f(gm, "generateRoundedPath"); -function mn(e, t) { +p(Ag, "generateRoundedPath"); +function Qa(e, t) { if (!e || !t) return { angle: 0, deltaX: 0, deltaY: 0 }; const r = t.x - e.x, i = t.y - e.y; return { angle: Math.atan2(i, r), deltaX: r, deltaY: i }; } -f(mn, "calculateDeltaAndAngle"); -function mm(e, t) { +p(Qa, "calculateDeltaAndAngle"); +function Mg(e, t) { const r = e.map((s) => ({ ...s })); if (e.length >= 2 && Wt[t.arrowTypeStart]) { - const s = Wt[t.arrowTypeStart], o = e[0], a = e[1], { angle: n } = mn(o, a), l = s * Math.cos(n), c = s * Math.sin(n); + const s = Wt[t.arrowTypeStart], o = e[0], a = e[1], { angle: n } = Qa(o, a), l = s * Math.cos(n), c = s * Math.sin(n); r[0].x = o.x + l, r[0].y = o.y + c; } const i = e.length; if (i >= 2 && Wt[t.arrowTypeEnd]) { - const s = Wt[t.arrowTypeEnd], o = e[i - 1], a = e[i - 2], { angle: n } = mn(a, o), l = s * Math.cos(n), c = s * Math.sin(n); + const s = Wt[t.arrowTypeEnd], o = e[i - 1], a = e[i - 2], { angle: n } = Qa(a, o), l = s * Math.cos(n), c = s * Math.sin(n); r[i - 1].x = o.x - l, r[i - 1].y = o.y - c; } return r; } -f(mm, "applyMarkerOffsetsToPoints"); -var rv = /* @__PURE__ */ f((e, t, r, i) => { +p(Mg, "applyMarkerOffsetsToPoints"); +var ST = /* @__PURE__ */ p((e, t, r, i) => { t.forEach((s) => { - _v[s](e, r, i); + jT[s](e, r, i); }); -}, "insertMarkers"), iv = /* @__PURE__ */ f((e, t, r) => { - R.trace("Making markers for ", r), e.append("defs").append("marker").attr("id", r + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", r + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), e.append("marker").attr("id", r + "_" + 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"), e.append("defs").append("marker").attr("id", r + "_" + 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"), sv = /* @__PURE__ */ f((e, t, r) => { +}, "insertMarkers"), _T = /* @__PURE__ */ p((e, t, r) => { + P.trace("Making markers for ", r), e.append("defs").append("marker").attr("id", r + "_" + 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"), e.append("defs").append("marker").attr("id", r + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), e.append("marker").attr("id", r + "_" + 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"), e.append("defs").append("marker").attr("id", r + "_" + 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"), BT = /* @__PURE__ */ p((e, t, r) => { e.append("defs").append("marker").attr("id", r + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", r + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", r + "_" + 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"), e.append("defs").append("marker").attr("id", r + "_" + 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"), ov = /* @__PURE__ */ f((e, t, r) => { +}, "composition"), vT = /* @__PURE__ */ p((e, t, r) => { e.append("defs").append("marker").attr("id", r + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", r + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", r + "_" + 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"), e.append("defs").append("marker").attr("id", r + "_" + 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"), av = /* @__PURE__ */ f((e, t, r) => { +}, "aggregation"), LT = /* @__PURE__ */ p((e, t, r) => { e.append("defs").append("marker").attr("id", r + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", r + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).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"), e.append("defs").append("marker").attr("id", r + "_" + 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"), e.append("defs").append("marker").attr("id", r + "_" + 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"), nv = /* @__PURE__ */ f((e, t, r) => { +}, "dependency"), FT = /* @__PURE__ */ p((e, t, r) => { e.append("defs").append("marker").attr("id", r + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", r + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", r + "_" + 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), e.append("defs").append("marker").attr("id", r + "_" + 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"), lv = /* @__PURE__ */ f((e, t, r) => { +}, "lollipop"), AT = /* @__PURE__ */ p((e, t, r) => { e.append("marker").attr("id", r + "_" + 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"), e.append("marker").attr("id", r + "_" + 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"), e.append("marker").attr("id", r + "_" + 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"), e.append("marker").attr("id", r + "_" + 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"), hv = /* @__PURE__ */ f((e, t, r) => { +}, "point"), MT = /* @__PURE__ */ p((e, t, r) => { e.append("marker").attr("id", r + "_" + 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"), e.append("marker").attr("id", r + "_" + 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"), e.append("marker").attr("id", r + "_" + 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"), e.append("marker").attr("id", r + "_" + 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"), cv = /* @__PURE__ */ f((e, t, r) => { +}, "circle"), ET = /* @__PURE__ */ p((e, t, r) => { e.append("marker").attr("id", r + "_" + 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"), e.append("marker").attr("id", r + "_" + 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"), e.append("marker").attr("id", r + "_" + 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), e.append("marker").attr("id", r + "_" + 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"), uv = /* @__PURE__ */ f((e, t, r) => { +}, "cross"), $T = /* @__PURE__ */ p((e, t, r) => { e.append("defs").append("marker").attr("id", r + "_" + 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"), dv = /* @__PURE__ */ f((e, t, r) => { - const i = wt(), { themeVariables: s } = i, { transitionColor: o } = s; +}, "barb"), OT = /* @__PURE__ */ p((e, t, r) => { + const i = Tt(), { themeVariables: s } = i, { transitionColor: o } = s; e.append("defs").append("marker").attr("id", r + "_" + 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"), e.append("defs").append("marker").attr("id", r + "_" + 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", `${o}`); -}, "barbNeo"), pv = /* @__PURE__ */ f((e, t, r) => { +}, "barbNeo"), IT = /* @__PURE__ */ p((e, t, r) => { e.append("defs").append("marker").attr("id", r + "_" + 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"), e.append("defs").append("marker").attr("id", r + "_" + 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"), fv = /* @__PURE__ */ f((e, t, r) => { +}, "only_one"), DT = /* @__PURE__ */ p((e, t, r) => { const i = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"); i.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M9,0 L9,18"); const s = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"); s.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), s.append("path").attr("d", "M21,0 L21,18"); -}, "zero_or_one"), gv = /* @__PURE__ */ f((e, t, r) => { +}, "zero_or_one"), RT = /* @__PURE__ */ p((e, t, r) => { e.append("defs").append("marker").attr("id", r + "_" + 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"), e.append("defs").append("marker").attr("id", r + "_" + 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"), mv = /* @__PURE__ */ f((e, t, r) => { +}, "one_or_more"), PT = /* @__PURE__ */ p((e, t, r) => { const i = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"); i.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18"); const s = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"); s.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), s.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18"); -}, "zero_or_more"), yv = /* @__PURE__ */ f((e, t, r) => { - const i = wt(), { themeVariables: s } = i, { strokeWidth: o } = s; +}, "zero_or_more"), NT = /* @__PURE__ */ p((e, t, r) => { + const i = Tt(), { themeVariables: s } = i, { strokeWidth: o } = s; e.append("defs").append("marker").attr("id", r + "_" + 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", `${o}`), e.append("defs").append("marker").attr("id", r + "_" + 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", `${o}`); -}, "only_one_neo"), Cv = /* @__PURE__ */ f((e, t, r) => { - const i = wt(), { themeVariables: s } = i, { strokeWidth: o, mainBkg: a } = s, n = e.append("defs").append("marker").attr("id", r + "_" + 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"); +}, "only_one_neo"), qT = /* @__PURE__ */ p((e, t, r) => { + const i = Tt(), { themeVariables: s } = i, { strokeWidth: o, mainBkg: a } = s, n = e.append("defs").append("marker").attr("id", r + "_" + 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"); n.append("circle").attr("fill", a ?? "white").attr("cx", 21).attr("cy", 9).attr("stroke-width", `${o}`).attr("r", 6), n.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${o}`); const l = e.append("defs").append("marker").attr("id", r + "_" + 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"); l.append("circle").attr("fill", a ?? "white").attr("cx", 9).attr("cy", 9).attr("stroke-width", `${o}`).attr("r", 6), l.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${o}`); -}, "zero_or_one_neo"), xv = /* @__PURE__ */ f((e, t, r) => { - const i = wt(), { themeVariables: s } = i, { strokeWidth: o } = s; +}, "zero_or_one_neo"), WT = /* @__PURE__ */ p((e, t, r) => { + const i = Tt(), { themeVariables: s } = i, { strokeWidth: o } = s; e.append("defs").append("marker").attr("id", r + "_" + 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", `${o}`), e.append("defs").append("marker").attr("id", r + "_" + 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", `${o}`); -}, "one_or_more_neo"), bv = /* @__PURE__ */ f((e, t, r) => { - const i = wt(), { themeVariables: s } = i, { strokeWidth: o, mainBkg: a } = s, n = e.append("defs").append("marker").attr("id", r + "_" + 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"); +}, "one_or_more_neo"), zT = /* @__PURE__ */ p((e, t, r) => { + const i = Tt(), { themeVariables: s } = i, { strokeWidth: o, mainBkg: a } = s, n = e.append("defs").append("marker").attr("id", r + "_" + 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"); n.append("circle").attr("fill", a ?? "white").attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${o}`), n.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${o}`); const l = e.append("defs").append("marker").attr("id", r + "_" + 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"); l.append("circle").attr("fill", a ?? "white").attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${o}`), l.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${o}`); -}, "zero_or_more_neo"), kv = /* @__PURE__ */ f((e, t, r) => { +}, "zero_or_more_neo"), HT = /* @__PURE__ */ p((e, t, r) => { e.append("defs").append("marker").attr("id", r + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr( "d", `M0,0 @@ -14750,8 +14686,8 @@ var rv = /* @__PURE__ */ f((e, t, r, i) => { M20,10 L0,20` ); -}, "requirement_arrow"), Tv = /* @__PURE__ */ f((e, t, r) => { - const i = wt(), { themeVariables: s } = i, { strokeWidth: o } = s; +}, "requirement_arrow"), YT = /* @__PURE__ */ p((e, t, r) => { + const i = Tt(), { themeVariables: s } = i, { strokeWidth: o } = s; e.append("defs").append("marker").attr("id", r + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("stroke-width", `${o}`).attr("viewBox", "0 0 25 20").append("path").attr( "d", `M0,0 @@ -14759,130 +14695,130 @@ var rv = /* @__PURE__ */ f((e, t, r, i) => { M20,10 L0,20` ).attr("stroke-linejoin", "miter"); -}, "requirement_arrow_neo"), wv = /* @__PURE__ */ f((e, t, r) => { +}, "requirement_arrow_neo"), UT = /* @__PURE__ */ p((e, t, r) => { const i = e.append("defs").append("marker").attr("id", r + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g"); i.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), i.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), i.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10); -}, "requirement_contains"), Sv = /* @__PURE__ */ f((e, t, r) => { - const i = wt(), { themeVariables: s } = i, { strokeWidth: o } = s, a = e.append("defs").append("marker").attr("id", r + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g"); +}, "requirement_contains"), GT = /* @__PURE__ */ p((e, t, r) => { + const i = Tt(), { themeVariables: s } = i, { strokeWidth: o } = s, a = e.append("defs").append("marker").attr("id", r + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g"); a.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), a.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), a.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), a.selectAll("*").attr("stroke-width", `${o}`); -}, "requirement_contains_neo"), _v = { - extension: iv, - composition: sv, - aggregation: ov, - dependency: av, - lollipop: nv, - point: lv, - circle: hv, - cross: cv, - barb: uv, - barbNeo: dv, - only_one: pv, - zero_or_one: fv, - one_or_more: gv, - zero_or_more: mv, - only_one_neo: yv, - zero_or_one_neo: Cv, - one_or_more_neo: xv, - zero_or_more_neo: bv, - requirement_arrow: kv, - requirement_contains: wv, - requirement_arrow_neo: Tv, - requirement_contains_neo: Sv -}, vv = rv, Bv = { - common: Qi, - getConfig: wt, - insertCluster: S_, - insertEdge: ev, - insertEdgeLabel: V_, - insertMarkers: vv, - insertNode: pm, - interpolateToCurve: il, - labelHelper: st, - log: R, - positionEdgeLabel: Z_ -}, Vi = {}, ym = /* @__PURE__ */ f((e) => { +}, "requirement_contains_neo"), jT = { + extension: _T, + composition: BT, + aggregation: vT, + dependency: LT, + lollipop: FT, + point: AT, + circle: MT, + cross: ET, + barb: $T, + barbNeo: OT, + only_one: IT, + zero_or_one: DT, + one_or_more: RT, + zero_or_more: PT, + only_one_neo: NT, + zero_or_one_neo: qT, + one_or_more_neo: WT, + zero_or_more_neo: zT, + requirement_arrow: HT, + requirement_contains: UT, + requirement_arrow_neo: YT, + requirement_contains_neo: GT +}, XT = ST, VT = { + common: zi, + getConfig: Tt, + insertCluster: Gw, + insertEdge: TT, + insertEdgeLabel: yT, + insertMarkers: XT, + insertNode: Lg, + interpolateToCurve: Rn, + labelHelper: rt, + log: P, + positionEdgeLabel: CT +}, Ni = {}, Eg = /* @__PURE__ */ p((e) => { for (const t of e) - Vi[t.name] = t; -}, "registerLayoutLoaders"), Lv = /* @__PURE__ */ f(() => { - ym([ + Ni[t.name] = t; +}, "registerLayoutLoaders"), ZT = /* @__PURE__ */ p(() => { + Eg([ { name: "dagre", - loader: /* @__PURE__ */ f(async () => await import("./dagre-KV5264BT-umRLwpDH.js"), "loader") + loader: /* @__PURE__ */ p(async () => await import("./dagre-BM42HDAG-DyfrzKXr.js"), "loader") }, { name: "cose-bilkent", - loader: /* @__PURE__ */ f(async () => await import("./cose-bilkent-S5V4N54A-Xuf6MkgG.js"), "loader") + loader: /* @__PURE__ */ p(async () => await import("./cose-bilkent-S5V4N54A-B7FtS5C6.js"), "loader") } ]); }, "registerDefaultLayoutLoaders"); -Lv(); -var FA = /* @__PURE__ */ f(async (e, t) => { - if (!(e.layoutAlgorithm in Vi)) +ZT(); +var Hv = /* @__PURE__ */ p(async (e, t) => { + if (!(e.layoutAlgorithm in Ni)) throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`); if (e.diagramId) for (const h of e.nodes) { - const u = h.domId || h.id; - h.domId = `${e.diagramId}-${u}`; + const d = h.domId || h.id; + h.domId = `${e.diagramId}-${d}`; } - const r = Vi[e.layoutAlgorithm], i = await r.loader(), { theme: s, themeVariables: o } = e.config, { useGradient: a, gradientStart: n, gradientStop: l } = o, c = t.attr("id"); + const r = Ni[e.layoutAlgorithm], i = await r.loader(), { theme: s, themeVariables: o } = e.config, { useGradient: a, gradientStart: n, gradientStop: l } = o, c = t.attr("id"); if (t.append("defs").append("filter").attr("id", `${c}-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", `${s?.includes("dark") ? "#FFFFFF" : "#000000"}`), t.append("defs").append("filter").attr("id", `${c}-drop-shadow-small`).attr("height", "150%").attr("width", "150%").append("feDropShadow").attr("dx", "2").attr("dy", "2").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${s?.includes("dark") ? "#FFFFFF" : "#000000"}`), a) { const h = t.append("linearGradient").attr("id", t.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%"); h.append("svg:stop").attr("offset", "0%").attr("stop-color", n).attr("stop-opacity", 1), h.append("svg:stop").attr("offset", "100%").attr("stop-color", l).attr("stop-opacity", 1); } - return i.render(e, t, Bv, { + return i.render(e, t, VT, { algorithm: r.algorithm }); -}, "render"), AA = /* @__PURE__ */ f((e = "", { fallback: t = "dagre" } = {}) => { - if (e in Vi) +}, "render"), Yv = /* @__PURE__ */ p((e = "", { fallback: t = "dagre" } = {}) => { + if (e in Ni) return e; - if (t in Vi) - return R.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t; + if (t in Ni) + return P.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t; throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`); -}, "getRegisteredLayoutAlgorithm"), Cm = "comm", xm = "rule", bm = "decl", Fv = "@import", Av = "@namespace", Mv = "@keyframes", Ev = "@layer", $v = Math.abs, Di = String.fromCharCode; -function km(e) { +}, "getRegisteredLayoutAlgorithm"), sl = "comm", $g = "rule", Og = "decl", KT = "@media", QT = "@import", JT = "@supports", tS = "@namespace", Ja = "@keyframes", Ig = "@layer", eS = "@scope", rS = Math.abs, Li = String.fromCharCode; +function Dg(e) { return e.trim(); } -function yn(e, t, r) { +function tn(e, t, r) { return e.replace(t, r); } -function Gr(e, t) { +function Yr(e, t) { return e.charCodeAt(t) | 0; } -function ti(e, t, r) { +function Kr(e, t, r) { return e.slice(t, r); } -function ve(e) { +function Te(e) { return e.length; } -function Ov(e) { +function Rg(e) { return e.length; } -function Ss(e, t) { +function ps(e, t) { return t.push(e), e; } -var qo = 1, ei = 1, Tm = 0, he = 0, Ft = 0, ai = ""; -function Sl(e, t, r, i, s, o, a, n) { - return { value: e, root: t, parent: r, type: i, props: s, children: o, line: qo, column: ei, length: a, return: "", siblings: n }; +var To = 1, Qr = 1, Pg = 0, ae = 0, Ft = 0, ri = ""; +function ol(e, t, r, i, s, o, a, n) { + return { value: e, root: t, parent: r, type: i, props: s, children: o, line: To, column: Qr, length: a, return: "", siblings: n }; } -function Iv() { +function iS() { return Ft; } -function Dv() { - return Ft = he > 0 ? Gr(ai, --he) : 0, ei--, Ft === 10 && (ei = 1, qo--), Ft; +function sS() { + return Ft = ae > 0 ? Yr(ri, --ae) : 0, Qr--, Ft === 10 && (Qr = 1, To--), Ft; } -function Ce() { - return Ft = he < Tm ? Gr(ai, he++) : 0, ei++, Ft === 10 && (ei = 1, qo++), Ft; +function ge() { + return Ft = ae < Pg ? Yr(ri, ae++) : 0, Qr++, Ft === 10 && (Qr = 1, To++), Ft; } -function Qe() { - return Gr(ai, he); +function Ze() { + return Yr(ri, ae); } -function Is() { - return he; +function vs() { + return ae; } -function zo(e, t) { - return ti(ai, e, t); +function So(e, t) { + return Kr(ri, e, t); } -function Zi(e) { +function qi(e) { switch (e) { // \0 \t \n \r \s whitespace token case 0: @@ -14920,77 +14856,77 @@ function Zi(e) { } return 0; } -function Pv(e) { - return qo = ei = 1, Tm = ve(ai = e), he = 0, []; +function oS(e) { + return To = Qr = 1, Pg = Te(ri = e), ae = 0, []; } -function Rv(e) { - return ai = "", e; +function aS(e) { + return ri = "", e; } -function ka(e) { - return km(zo(he - 1, Cn(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); +function ia(e) { + return Dg(So(ae - 1, en(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } -function Nv(e) { - for (; (Ft = Qe()) && Ft < 33; ) - Ce(); - return Zi(e) > 2 || Zi(Ft) > 3 ? "" : " "; +function nS(e) { + for (; (Ft = Ze()) && Ft < 33; ) + ge(); + return qi(e) > 2 || qi(Ft) > 3 ? "" : " "; } -function qv(e, t) { - for (; --t && Ce() && !(Ft < 48 || Ft > 102 || Ft > 57 && Ft < 65 || Ft > 70 && Ft < 97); ) +function lS(e, t) { + for (; --t && ge() && !(Ft < 48 || Ft > 102 || Ft > 57 && Ft < 65 || Ft > 70 && Ft < 97); ) ; - return zo(e, Is() + (t < 6 && Qe() == 32 && Ce() == 32)); + return So(e, vs() + (t < 6 && Ze() == 32 && ge() == 32)); } -function Cn(e) { - for (; Ce(); ) +function en(e) { + for (; ge(); ) switch (Ft) { // ] ) " ' case e: - return he; + return ae; // " ' case 34: case 39: - e !== 34 && e !== 39 && Cn(Ft); + e !== 34 && e !== 39 && en(Ft); break; // ( case 40: - e === 41 && Cn(e); + e === 41 && en(e); break; // \ case 92: - Ce(); + ge(); break; } - return he; + return ae; } -function zv(e, t) { - for (; Ce() && e + Ft !== 57; ) - if (e + Ft === 84 && Qe() === 47) +function hS(e, t) { + for (; ge() && e + Ft !== 57; ) + if (e + Ft === 84 && Ze() === 47) break; - return "/*" + zo(t, he - 1) + "*" + Di(e === 47 ? e : Ce()); + return "/*" + So(t, ae - 1) + "*" + Li(e === 47 ? e : ge()); } -function Wv(e) { - for (; !Zi(Qe()); ) - Ce(); - return zo(e, he); +function cS(e) { + for (; !qi(Ze()); ) + ge(); + return So(e, ae); } -function Hv(e) { - return Rv(Ds("", null, null, null, [""], e = Pv(e), 0, [0], e)); +function dS(e) { + return aS(Ls("", null, null, null, [""], e = oS(e), 0, [0], e)); } -function Ds(e, t, r, i, s, o, a, n, l) { - for (var c = 0, h = 0, u = a, p = 0, d = 0, g = 0, m = 1, y = 1, x = 1, b = 0, k = 0, w = "", S = s, v = o, M = i, B = w; y; ) - switch (g = k, k = Ce()) { +function Ls(e, t, r, i, s, o, a, n, l) { + for (var c = 0, h = 0, d = a, f = 0, u = 0, g = 0, m = 1, y = 1, C = 1, b = 0, k = 0, T = "", S = s, _ = o, A = i, v = T; y; ) + switch (g = k, k = ge()) { // ( case 40: - g != 108 && Gr(B, u - 1) == 58 ? (b++, B += "(") : B += ka(k); + g != 108 && Yr(v, d - 1) == 58 ? (b++, v += "(") : v += ia(k); break; // ) case 41: - b--, B += ")"; + b--, v += ")"; break; // " ' [ case 34: case 39: case 91: - B += ka(k); + v += ia(k); break; // \t \n \r \s case 9: @@ -14998,35 +14934,35 @@ function Ds(e, t, r, i, s, o, a, n, l) { case 13: case 32: if (b > 0) { - B += Di(k); + v += Li(k); break; } - B += Nv(g); + v += nS(g); break; // \ case 92: - B += qv(Is() - 1, 7); + v += lS(vs() - 1, 7); continue; // / case 47: - switch (Qe()) { + switch (Ze()) { case 42: case 47: - Ss(Yv(zv(Ce(), Is()), t, r, l), l), (Zi(g || 1) == 5 || Zi(Qe() || 1) == 5) && ve(B) && ti(B, -1, void 0) !== " " && (B += " "); + ps(uS(hS(ge(), vs()), t, r, l), l), (qi(g || 1) == 5 || qi(Ze() || 1) == 5) && Te(v) && Kr(v, -1, void 0) !== " " && (v += " "); break; default: - B += "/"; + v += "/"; } break; // { case 123 * m: - n[c++] = ve(B) * x; + n[c++] = Te(v) * C; // } ; \0 case 125 * m: case 59: case 0: if (b > 0 && k) { - B += Di(k); + v += Li(k); break; } switch (k) { @@ -15036,24 +14972,24 @@ function Ds(e, t, r, i, s, o, a, n, l) { y = 0; // ; case 59 + h: - x == -1 && (B = yn(B, /\f/g, "")), d > 0 && (ve(B) - u || m === 0) && Ss(d > 32 ? Mc(B + ";", i, r, u - 1, l) : Mc(yn(B, " ", "") + ";", i, r, u - 2, l), l); + C == -1 && (v = tn(v, /\f/g, "")), u > 0 && (Te(v) - d || m === 0) && ps(u > 32 ? sc(v + ";", i, r, d - 1, l) : sc(tn(v, " ", "") + ";", i, r, d - 2, l), l); break; // @ ; case 59: - B += ";"; + v += ";"; // { rule/at-rule default: - if (Ss(M = Ac(B, t, r, c, h, s, n, w, S = [], v = [], u, o), o), k === 123) + if (ps(A = ic(v, t, r, c, h, s, n, T, S = [], _ = [], d, o), o), k === 123) if (h === 0) - Ds(B, t, M, M, S, o, u, n, v); + Ls(v, t, A, A, S, o, d, n, _); else { - switch (p) { + switch (f) { // c(ontainer) case 99: - if (Gr(B, 3) === 110) break; + if (Yr(v, 3) === 110) break; // l(ayer) case 108: - if (Gr(B, 2) === 97) break; + if (Yr(v, 2) === 97) break; default: h = 0; // d(ocument) m(edia) s(upports) @@ -15061,243 +14997,208 @@ function Ds(e, t, r, i, s, o, a, n, l) { case 109: case 115: } - h ? Ds(e, M, M, i && Ss(Ac(e, M, M, 0, 0, s, n, w, s, S = [], u, v), v), s, v, u, n, i ? S : v) : Ds(B, M, M, M, [""], v, 0, n, v); + h ? Ls(e, A, A, i && ps(ic(e, A, A, 0, 0, s, n, T, s, S = [], d, _), _), s, _, d, n, i ? S : _) : Ls(v, A, A, A, [""], _, 0, n, _); } } - c = h = d = 0, m = x = 1, w = B = "", u = a; + c = h = u = 0, m = C = 1, T = v = "", d = a; break; // : case 58: - u = 1 + ve(B), d = g; + d = 1 + Te(v), u = g; default: if (m < 1) { if (k == 123) --m; - else if (k == 125 && m++ == 0 && Dv() == 125) + else if (k == 125 && m++ == 0 && sS() == 125) continue; } - switch (B += Di(k), k * m) { + switch (v += Li(k), k * m) { // & case 38: - x = h > 0 ? 1 : (B += "\f", -1); + C = h > 0 ? 1 : (v += "\f", -1); break; // , case 44: if (b > 0) break; - n[c++] = (ve(B) - 1) * x, x = 1; + n[c++] = (Te(v) - 1) * C, C = 1; break; // @ case 64: - Qe() === 45 && (B += ka(Ce())), p = Qe(), h = u = ve(w = B += Wv(Is())), k++; + Ze() === 45 && (v += ia(ge())), f = Ze(), h = d = Te(T = v += cS(vs())), k++; break; // - case 45: - g === 45 && ve(B) == 2 && (m = 0); + g === 45 && Te(v) == 2 && (m = 0); } } return o; } -function Ac(e, t, r, i, s, o, a, n, l, c, h, u) { - for (var p = s - 1, d = s === 0 ? o : [""], g = Ov(d), m = 0, y = 0, x = 0; m < i; ++m) - for (var b = 0, k = ti(e, p + 1, p = $v(y = a[m])), w = e; b < g; ++b) - (w = km(y > 0 ? d[b] + " " + k : yn(k, /&\f/g, d[b]))) && (l[x++] = w); - return Sl(e, t, r, s === 0 ? xm : n, l, c, h, u); +function ic(e, t, r, i, s, o, a, n, l, c, h, d) { + for (var f = s - 1, u = s === 0 ? o : [""], g = Rg(u), m = 0, y = 0, C = 0; m < i; ++m) + for (var b = 0, k = Kr(e, f + 1, f = rS(y = a[m])), T = e; b < g; ++b) + (T = Dg(y > 0 ? u[b] + " " + k : tn(k, /&\f/g, u[b]))) && (l[C++] = T); + return ol(e, t, r, s === 0 ? $g : n, l, c, h, d); } -function Yv(e, t, r, i) { - return Sl(e, t, r, Cm, Di(Iv()), ti(e, 2, -2), 0, i); +function uS(e, t, r, i) { + return ol(e, t, r, sl, Li(iS()), Kr(e, 2, -2), 0, i); } -function Mc(e, t, r, i, s) { - return Sl(e, t, r, bm, ti(e, 0, i), ti(e, i + 1, -1), i, s); +function sc(e, t, r, i, s) { + return ol(e, t, r, Og, Kr(e, 0, i), Kr(e, i + 1, -1), i, s); } -function xn(e, t) { +function rn(e, t) { for (var r = "", i = 0; i < e.length; i++) r += t(e[i], i, e, t) || ""; return r; } -function jv(e, t, r, i) { +function fS(e, t, r, i) { switch (e.type) { - case Ev: + case Ig: if (e.children.length) break; - case Fv: - case Av: - case bm: + case QT: + case tS: + case Og: return e.return = e.return || e.value; - case Cm: + case sl: return ""; - case Mv: - return e.return = e.value + "{" + xn(e.children, i) + "}"; - case xm: - if (!ve(e.value = e.props.join(","))) return ""; - } - return ve(r = xn(e.children, i)) ? e.return = e.value + "{" + r + "}" : ""; -} -var Uv = jp(Object.keys, Object), Gv = Object.prototype, Xv = Gv.hasOwnProperty; -function Vv(e) { - if (!Mo(e)) - return Uv(e); - var t = []; - for (var r in Object(e)) - Xv.call(e, r) && r != "constructor" && t.push(r); - return t; -} -var bn = Fr($e, "DataView"), kn = Fr($e, "Promise"), Tn = Fr($e, "Set"), wn = Fr($e, "WeakMap"), Ec = "[object Map]", Zv = "[object Object]", $c = "[object Promise]", Oc = "[object Set]", Ic = "[object WeakMap]", Dc = "[object DataView]", Kv = Lr(bn), Qv = Lr(Gi), Jv = Lr(kn), tB = Lr(Tn), eB = Lr(wn), pr = ri; -(bn && pr(new bn(new ArrayBuffer(1))) != Dc || Gi && pr(new Gi()) != Ec || kn && pr(kn.resolve()) != $c || Tn && pr(new Tn()) != Oc || wn && pr(new wn()) != Ic) && (pr = function(e) { - var t = ri(e), r = t == Zv ? e.constructor : void 0, i = r ? Lr(r) : ""; - if (i) - switch (i) { - case Kv: - return Dc; - case Qv: - return Ec; - case Jv: - return $c; - case tB: - return Oc; - case eB: - return Ic; - } - return t; -}); -var rB = "[object Map]", iB = "[object Set]", sB = Object.prototype, oB = sB.hasOwnProperty; -function Pc(e) { - if (e == null) - return !0; - if (Eo(e) && (ao(e) || typeof e == "string" || typeof e.splice == "function" || el(e) || rl(e) || oo(e))) - return !e.length; - var t = pr(e); - if (t == rB || t == iB) - return !e.size; - if (Mo(e)) - return !Vv(e).length; - for (var r in e) - if (oB.call(e, r)) - return !1; - return !0; + case Ja: + return e.return = e.value + "{" + rn(e.children, i) + "}"; + case $g: + if (!Te(e.value = e.props.join(","))) return ""; + } + return Te(r = rn(e.children, i)) ? e.return = e.value + "{" + r + "}" : ""; +} +function pS(e) { + var t = Rg(e); + return function(r, i, s, o) { + for (var a = "", n = 0; n < t; n++) + a += e[n](r, i, s, o) || ""; + return a; + }; } -var wm = "c4", aB = /* @__PURE__ */ f((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"), nB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./c4Diagram-AHTNJAMY-vnta9HxX.js"); - return { id: wm, diagram: e }; -}, "loader"), lB = { - id: wm, - detector: aB, - loader: nB -}, hB = lB, Sm = "flowchart", cB = /* @__PURE__ */ f((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"), uB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./flowDiagram-DWJPFMVM-B-xylKtj.js"); - return { id: Sm, diagram: e }; -}, "loader"), dB = { - id: Sm, - detector: cB, - loader: uB -}, pB = dB, _m = "flowchart-v2", fB = /* @__PURE__ */ f((e, t) => t?.flowchart?.defaultRenderer === "dagre-d3" ? !1 : (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"), gB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./flowDiagram-DWJPFMVM-B-xylKtj.js"); - return { id: _m, diagram: e }; -}, "loader"), mB = { - id: _m, - detector: fB, - loader: gB -}, yB = mB, vm = "er", CB = /* @__PURE__ */ f((e) => /^\s*erDiagram/.test(e), "detector"), xB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./erDiagram-SMLLAGMA-DaAngXDK.js"); - return { id: vm, diagram: e }; -}, "loader"), bB = { - id: vm, - detector: CB, - loader: xB -}, kB = bB, Bm = "gitGraph", TB = /* @__PURE__ */ f((e) => /^\s*gitGraph/.test(e), "detector"), wB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./gitGraphDiagram-UUTBAWPF-B5zuasYQ.js"); - return { id: Bm, diagram: e }; -}, "loader"), SB = { - id: Bm, - detector: TB, - loader: wB -}, _B = SB, Lm = "gantt", vB = /* @__PURE__ */ f((e) => /^\s*gantt/.test(e), "detector"), BB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./ganttDiagram-T4ZO3ILL-BQN3bK4W.js"); - return { id: Lm, diagram: e }; -}, "loader"), LB = { - id: Lm, - detector: vB, - loader: BB -}, FB = LB, Fm = "info", AB = /* @__PURE__ */ f((e) => /^\s*info/.test(e), "detector"), MB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./infoDiagram-42DDH7IO-C3QWADuJ.js"); - return { id: Fm, diagram: e }; -}, "loader"), EB = { - id: Fm, - detector: AB, - loader: MB -}, Am = "pie", $B = /* @__PURE__ */ f((e) => /^\s*pie/.test(e), "detector"), OB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./pieDiagram-DEJITSTG-DxhD0E2d.js"); - return { id: Am, diagram: e }; -}, "loader"), IB = { - id: Am, - detector: $B, - loader: OB -}, Mm = "quadrantChart", DB = /* @__PURE__ */ f((e) => /^\s*quadrantChart/.test(e), "detector"), PB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./quadrantDiagram-34T5L4WZ-DyibwQsA.js"); - return { id: Mm, diagram: e }; -}, "loader"), RB = { - id: Mm, - detector: DB, - loader: PB -}, NB = RB, Em = "xychart", qB = /* @__PURE__ */ f((e) => /^\s*xychart(-beta)?/.test(e), "detector"), zB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./xychartDiagram-5P7HB3ND-fbchxqmk.js"); - return { id: Em, diagram: e }; -}, "loader"), WB = { - id: Em, - detector: qB, - loader: zB -}, HB = WB, $m = "requirement", YB = /* @__PURE__ */ f((e) => /^\s*requirement(Diagram)?/.test(e), "detector"), jB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./requirementDiagram-MS252O5E-B1k1nzXp.js"); - return { id: $m, diagram: e }; -}, "loader"), UB = { - id: $m, - detector: YB, - loader: jB -}, GB = UB, Om = "sequence", XB = /* @__PURE__ */ f((e) => /^\s*sequenceDiagram/.test(e), "detector"), VB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./sequenceDiagram-FGHM5R23-BZlhPGhp.js"); - return { id: Om, diagram: e }; -}, "loader"), ZB = { - id: Om, - detector: XB, - loader: VB -}, KB = ZB, Im = "class", QB = /* @__PURE__ */ f((e, t) => t?.class?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e), "detector"), JB = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./classDiagram-6PBFFD2Q-CLIJ9e67.js"); - return { id: Im, diagram: e }; -}, "loader"), tL = { - id: Im, - detector: QB, - loader: JB -}, eL = tL, Dm = "classDiagram", rL = /* @__PURE__ */ f((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"), iL = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./classDiagram-v2-HSJHXN6E-CLIJ9e67.js"); - return { id: Dm, diagram: e }; -}, "loader"), sL = { - id: Dm, - detector: rL, - loader: iL -}, oL = sL, Pm = "state", aL = /* @__PURE__ */ f((e, t) => t?.state?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e), "detector"), nL = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./stateDiagram-FHFEXIEX-B95qSryT.js"); - return { id: Pm, diagram: e }; -}, "loader"), lL = { - id: Pm, - detector: aL, - loader: nL -}, hL = lL, Rm = "stateDiagram", cL = /* @__PURE__ */ f((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"), uL = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./stateDiagram-v2-QKLJ7IA2-BcCmL5be.js"); - return { id: Rm, diagram: e }; -}, "loader"), dL = { - id: Rm, - detector: cL, - loader: uL -}, pL = dL, Nm = "journey", fL = /* @__PURE__ */ f((e) => /^\s*journey/.test(e), "detector"), gL = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./journeyDiagram-VCZTEJTY-BjKGMf6G.js"); - return { id: Nm, diagram: e }; -}, "loader"), mL = { - id: Nm, - detector: fL, - loader: gL -}, yL = mL, CL = /* @__PURE__ */ f((e, t, r) => { - R.debug(`rendering svg for syntax error +var Ng = "c4", gS = /* @__PURE__ */ p((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"), mS = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./c4Diagram-AAUBKEIU-CTxgmMuv.js"); + return { id: Ng, diagram: e }; +}, "loader"), yS = { + id: Ng, + detector: gS, + loader: mS +}, CS = yS, qg = "flowchart", xS = /* @__PURE__ */ p((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"), bS = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./flowDiagram-I6XJVG4X-Bj113heQ.js"); + return { id: qg, diagram: e }; +}, "loader"), kS = { + id: qg, + detector: xS, + loader: bS +}, wS = kS, Wg = "flowchart-v2", TS = /* @__PURE__ */ p((e, t) => t?.flowchart?.defaultRenderer === "dagre-d3" ? !1 : (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"), SS = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./flowDiagram-I6XJVG4X-Bj113heQ.js"); + return { id: Wg, diagram: e }; +}, "loader"), _S = { + id: Wg, + detector: TS, + loader: SS +}, BS = _S, zg = "er", vS = /* @__PURE__ */ p((e) => /^\s*erDiagram/.test(e), "detector"), LS = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./erDiagram-TEJ5UH35-90KjDJaR.js"); + return { id: zg, diagram: e }; +}, "loader"), FS = { + id: zg, + detector: vS, + loader: LS +}, AS = FS, Hg = "gitGraph", MS = /* @__PURE__ */ p((e) => /^\s*gitGraph/.test(e), "detector"), ES = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./gitGraphDiagram-PVQCEYII-DFX6QdBH.js"); + return { id: Hg, diagram: e }; +}, "loader"), $S = { + id: Hg, + detector: MS, + loader: ES +}, OS = $S, Yg = "gantt", IS = /* @__PURE__ */ p((e) => /^\s*gantt/.test(e), "detector"), DS = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./ganttDiagram-6RSMTGT7-DaP27A93.js"); + return { id: Yg, diagram: e }; +}, "loader"), RS = { + id: Yg, + detector: IS, + loader: DS +}, PS = RS, Ug = "info", NS = /* @__PURE__ */ p((e) => /^\s*info/.test(e), "detector"), qS = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./infoDiagram-5YYISTIA-CedyRb4M.js"); + return { id: Ug, diagram: e }; +}, "loader"), WS = { + id: Ug, + detector: NS, + loader: qS +}, Gg = "pie", zS = /* @__PURE__ */ p((e) => /^\s*pie/.test(e), "detector"), HS = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./pieDiagram-4H26LBE5-Cdd8Rm_R.js"); + return { id: Gg, diagram: e }; +}, "loader"), YS = { + id: Gg, + detector: zS, + loader: HS +}, jg = "quadrantChart", US = /* @__PURE__ */ p((e) => /^\s*quadrantChart/.test(e), "detector"), GS = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./quadrantDiagram-W4KKPZXB-Clr-y7GI.js"); + return { id: jg, diagram: e }; +}, "loader"), jS = { + id: jg, + detector: US, + loader: GS +}, XS = jS, Xg = "xychart", VS = /* @__PURE__ */ p((e) => /^\s*xychart(-beta)?/.test(e), "detector"), ZS = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./xychartDiagram-2RQKCTM6-C9QuSfeC.js"); + return { id: Xg, diagram: e }; +}, "loader"), KS = { + id: Xg, + detector: VS, + loader: ZS +}, QS = KS, Vg = "requirement", JS = /* @__PURE__ */ p((e) => /^\s*requirement(Diagram)?/.test(e), "detector"), t_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./requirementDiagram-4Y6WPE33-BdVa3C2S.js"); + return { id: Vg, diagram: e }; +}, "loader"), e_ = { + id: Vg, + detector: JS, + loader: t_ +}, r_ = e_, Zg = "sequence", i_ = /* @__PURE__ */ p((e) => /^\s*sequenceDiagram/.test(e), "detector"), s_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./sequenceDiagram-3UESZ5HK-DnhM7IMS.js"); + return { id: Zg, diagram: e }; +}, "loader"), o_ = { + id: Zg, + detector: i_, + loader: s_ +}, a_ = o_, Kg = "class", n_ = /* @__PURE__ */ p((e, t) => t?.class?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e), "detector"), l_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./classDiagram-4FO5ZUOK-DibtwnCR.js"); + return { id: Kg, diagram: e }; +}, "loader"), h_ = { + id: Kg, + detector: n_, + loader: l_ +}, c_ = h_, Qg = "classDiagram", d_ = /* @__PURE__ */ p((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"), u_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./classDiagram-v2-Q7XG4LA2-DibtwnCR.js"); + return { id: Qg, diagram: e }; +}, "loader"), f_ = { + id: Qg, + detector: d_, + loader: u_ +}, p_ = f_, Jg = "state", g_ = /* @__PURE__ */ p((e, t) => t?.state?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e), "detector"), m_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./stateDiagram-AJRCARHV-GzeTGfIQ.js"); + return { id: Jg, diagram: e }; +}, "loader"), y_ = { + id: Jg, + detector: g_, + loader: m_ +}, C_ = y_, tm = "stateDiagram", x_ = /* @__PURE__ */ p((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"), b_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./stateDiagram-v2-BHNVJYJU-BSm6TWAV.js"); + return { id: tm, diagram: e }; +}, "loader"), k_ = { + id: tm, + detector: x_, + loader: b_ +}, w_ = k_, em = "journey", T_ = /* @__PURE__ */ p((e) => /^\s*journey/.test(e), "detector"), S_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./journeyDiagram-JHISSGLW-cravMGgb.js"); + return { id: em, diagram: e }; +}, "loader"), __ = { + id: em, + detector: T_, + loader: S_ +}, B_ = __, v_ = /* @__PURE__ */ p((e, t, r) => { + P.debug(`rendering svg for syntax error `); - const i = z1(t), s = i.append("g"); - i.attr("viewBox", "0 0 2412 512"), cu(i, 100, 512, !0), s.append("path").attr("class", "error-icon").attr( + const i = hk(t), s = i.append("g"); + i.attr("viewBox", "0 0 2412 512"), Mc(i, 100, 512, !0), s.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" ), s.append("path").attr("class", "error-icon").attr( @@ -15316,200 +15217,208 @@ var wm = "c4", aB = /* @__PURE__ */ f((e) => /^\s*C4Context|C4Container|C4Compon "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" ), s.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"), s.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"), qm = { draw: CL }, xL = qm, bL = { +}, "draw"), rm = { draw: v_ }, L_ = rm, F_ = { db: {}, - renderer: qm, + renderer: rm, parser: { - parse: /* @__PURE__ */ f(() => { + parse: /* @__PURE__ */ p(() => { }, "parse") } -}, kL = bL, zm = "flowchart-elk", TL = /* @__PURE__ */ f((e, t = {}) => ( +}, A_ = F_, im = "flowchart-elk", M_ = /* @__PURE__ */ p((e, t = {}) => ( // If diagram explicitly states flowchart-elk /^\s*flowchart-elk/.test(e) || // If a flowchart/graph diagram has their default renderer set to elk /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1 -), "detector"), wL = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./flowDiagram-DWJPFMVM-B-xylKtj.js"); - return { id: zm, diagram: e }; -}, "loader"), SL = { - id: zm, - detector: TL, - loader: wL -}, _L = SL, Wm = "timeline", vL = /* @__PURE__ */ f((e) => /^\s*timeline/.test(e), "detector"), BL = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./timeline-definition-GMOUNBTQ-C99biSYp.js"); - return { id: Wm, diagram: e }; -}, "loader"), LL = { - id: Wm, - detector: vL, - loader: BL -}, FL = LL, Hm = "mindmap", AL = /* @__PURE__ */ f((e) => /^\s*mindmap/.test(e), "detector"), ML = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./mindmap-definition-QFDTVHPH-BPyQNVV8.js"); - return { id: Hm, diagram: e }; -}, "loader"), EL = { - id: Hm, - detector: AL, - loader: ML -}, $L = EL, Ym = "kanban", OL = /* @__PURE__ */ f((e) => /^\s*kanban/.test(e), "detector"), IL = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./kanban-definition-6JOO6SKY-Cj5VW-_i.js"); - return { id: Ym, diagram: e }; -}, "loader"), DL = { - id: Ym, - detector: OL, - loader: IL -}, PL = DL, jm = "sankey", RL = /* @__PURE__ */ f((e) => /^\s*sankey(-beta)?/.test(e), "detector"), NL = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./sankeyDiagram-XADWPNL6-Be61kRTn.js"); - return { id: jm, diagram: e }; -}, "loader"), qL = { - id: jm, - detector: RL, - loader: NL -}, zL = qL, Um = "packet", WL = /* @__PURE__ */ f((e) => /^\s*packet(-beta)?/.test(e), "detector"), HL = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./diagram-TYMM5635-CDA657xg.js"); - return { id: Um, diagram: e }; -}, "loader"), YL = { - id: Um, - detector: WL, - loader: HL -}, Gm = "radar", jL = /* @__PURE__ */ f((e) => /^\s*radar-beta/.test(e), "detector"), UL = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./diagram-MMDJMWI5-CaBNe67n.js"); - return { id: Gm, diagram: e }; -}, "loader"), GL = { - id: Gm, - detector: jL, - loader: UL -}, Xm = "block", XL = /* @__PURE__ */ f((e) => /^\s*block(-beta)?/.test(e), "detector"), VL = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./blockDiagram-DXYQGD6D-DWqRIMGa.js"); - return { id: Xm, diagram: e }; -}, "loader"), ZL = { - id: Xm, - detector: XL, - loader: VL -}, KL = ZL, Vm = "treeView", QL = /* @__PURE__ */ f((e) => /^\s*treeView-beta/.test(e), "detector"), JL = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./diagram-5BDNPKRD-BxdQZUPY.js"); - return { id: Vm, diagram: e }; -}, "loader"), tF = { - id: Vm, - detector: QL, - loader: JL -}, eF = tF, Zm = "architecture", rF = /* @__PURE__ */ f((e) => /^\s*architecture/.test(e), "detector"), iF = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./architectureDiagram-Q4EWVU46-Chtsrrsm.js"); - return { id: Zm, diagram: e }; -}, "loader"), sF = { - id: Zm, - detector: rF, - loader: iF -}, oF = sF, Km = "ishikawa", aF = /* @__PURE__ */ f((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"), nF = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./ishikawaDiagram-UXIWVN3A-DpfbOS-L.js"); - return { id: Km, diagram: e }; -}, "loader"), lF = { - id: Km, - detector: aF, - loader: nF -}, Qm = "venn", hF = /* @__PURE__ */ f((e) => /^\s*venn-beta/.test(e), "detector"), cF = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./vennDiagram-DHZGUBPP-UT8BSHk_.js"); - return { id: Qm, diagram: e }; -}, "loader"), uF = { - id: Qm, - detector: hF, - loader: cF -}, dF = uF, Jm = "treemap", pF = /* @__PURE__ */ f((e) => /^\s*treemap/.test(e), "detector"), fF = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./diagram-G4DWMVQ6-BobEleCI.js"); - return { id: Jm, diagram: e }; -}, "loader"), gF = { - id: Jm, - detector: pF, - loader: fF -}, ty = "wardley-beta", mF = /* @__PURE__ */ f((e) => /^\s*wardley-beta/i.test(e), "detector"), yF = /* @__PURE__ */ f(async () => { - const { diagram: e } = await import("./wardleyDiagram-NUSXRM2D-CZun_nrn.js"); - return { id: ty, diagram: e }; -}, "loader"), CF = { - id: ty, - detector: mF, - loader: yF -}, xF = CF, Rc = !1, Wo = /* @__PURE__ */ f(() => { - Rc || (Rc = !0, zs("error", kL, (e) => e.toLowerCase().trim() === "error"), zs( +), "detector"), E_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./flowDiagram-I6XJVG4X-Bj113heQ.js"); + return { id: im, diagram: e }; +}, "loader"), $_ = { + id: im, + detector: M_, + loader: E_ +}, O_ = $_, sm = "timeline", I_ = /* @__PURE__ */ p((e) => /^\s*timeline/.test(e), "detector"), D_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./timeline-definition-PNZ67QCA-BhOBuke8.js"); + return { id: sm, diagram: e }; +}, "loader"), R_ = { + id: sm, + detector: I_, + loader: D_ +}, P_ = R_, om = "mindmap", N_ = /* @__PURE__ */ p((e) => /^\s*mindmap/.test(e), "detector"), q_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./mindmap-definition-RKZ34NQL-LGqBYL8K.js"); + return { id: om, diagram: e }; +}, "loader"), W_ = { + id: om, + detector: N_, + loader: q_ +}, z_ = W_, am = "kanban", H_ = /* @__PURE__ */ p((e) => /^\s*kanban/.test(e), "detector"), Y_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./kanban-definition-UN3LZRKU-BPM9GFPR.js"); + return { id: am, diagram: e }; +}, "loader"), U_ = { + id: am, + detector: H_, + loader: Y_ +}, G_ = U_, nm = "sankey", j_ = /* @__PURE__ */ p((e) => /^\s*sankey(-beta)?/.test(e), "detector"), X_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./sankeyDiagram-5OEKKPKP--bYa-o5n.js"); + return { id: nm, diagram: e }; +}, "loader"), V_ = { + id: nm, + detector: j_, + loader: X_ +}, Z_ = V_, lm = "packet", K_ = /* @__PURE__ */ p((e) => /^\s*packet(-beta)?/.test(e), "detector"), Q_ = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./diagram-LMA3HP47-m2nZarZy.js"); + return { id: lm, diagram: e }; +}, "loader"), J_ = { + id: lm, + detector: K_, + loader: Q_ +}, hm = "radar", tB = /* @__PURE__ */ p((e) => /^\s*radar-beta/.test(e), "detector"), eB = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./diagram-2AECGRRQ-ltvfYbS8.js"); + return { id: hm, diagram: e }; +}, "loader"), rB = { + id: hm, + detector: tB, + loader: eB +}, cm = "block", iB = /* @__PURE__ */ p((e) => /^\s*block(-beta)?/.test(e), "detector"), sB = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./blockDiagram-GPEHLZMM-CXzdPkfm.js"); + return { id: cm, diagram: e }; +}, "loader"), oB = { + id: cm, + detector: iB, + loader: sB +}, aB = oB, dm = "treeView", nB = /* @__PURE__ */ p((e) => /^\s*treeView-beta/.test(e), "detector"), lB = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./diagram-5GNKFQAL-Bc-PVrmA.js"); + return { id: dm, diagram: e }; +}, "loader"), hB = { + id: dm, + detector: nB, + loader: lB +}, cB = hB, um = "architecture", dB = /* @__PURE__ */ p((e) => /^\s*architecture/.test(e), "detector"), uB = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./architectureDiagram-3BPJPVTR-BY0CigTr.js"); + return { id: um, diagram: e }; +}, "loader"), fB = { + id: um, + detector: dB, + loader: uB +}, pB = fB, fm = "eventmodeling", gB = /* @__PURE__ */ p((e) => /^\s*eventmodeling/.test(e), "detector"), mB = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./diagram-KO2AKTUF-AnsDy_s7.js"); + return { id: fm, diagram: e }; +}, "loader"), yB = { + id: fm, + detector: gB, + loader: mB +}, CB = yB, pm = "ishikawa", xB = /* @__PURE__ */ p((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"), bB = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./ishikawaDiagram-YF4QCWOH-CiiBUUql.js"); + return { id: pm, diagram: e }; +}, "loader"), kB = { + id: pm, + detector: xB, + loader: bB +}, gm = "venn", wB = /* @__PURE__ */ p((e) => /^\s*venn-beta/.test(e), "detector"), TB = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./vennDiagram-CIIHVFJN-7Te4RaTP.js"); + return { id: gm, diagram: e }; +}, "loader"), SB = { + id: gm, + detector: wB, + loader: TB +}, _B = SB, mm = "treemap", BB = /* @__PURE__ */ p((e) => /^\s*treemap/.test(e), "detector"), vB = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./diagram-OG6HWLK6-DV_6aBCz.js"); + return { id: mm, diagram: e }; +}, "loader"), LB = { + id: mm, + detector: BB, + loader: vB +}, ym = "wardley-beta", FB = /* @__PURE__ */ p((e) => /^\s*wardley-beta/i.test(e), "detector"), AB = /* @__PURE__ */ p(async () => { + const { diagram: e } = await import("./wardleyDiagram-YWT4CUSO-Dl6_QOWf.js"); + return { id: ym, diagram: e }; +}, "loader"), MB = { + id: ym, + detector: FB, + loader: AB +}, EB = MB, oc = !1, _o = /* @__PURE__ */ p(() => { + oc || (oc = !0, $s("error", A_, (e) => e.toLowerCase().trim() === "error"), $s( "---", // --- diagram type may appear if YAML front-matter is not parsed correctly { db: { - clear: /* @__PURE__ */ f(() => { + clear: /* @__PURE__ */ p(() => { }, "clear") }, styles: {}, // should never be used renderer: { - draw: /* @__PURE__ */ f(() => { + draw: /* @__PURE__ */ p(() => { }, "draw") }, parser: { - parse: /* @__PURE__ */ f(() => { + parse: /* @__PURE__ */ p(() => { 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: /* @__PURE__ */ f(() => null, "init") + init: /* @__PURE__ */ p(() => null, "init") // no op }, (e) => e.toLowerCase().trimStart().startsWith("---") - ), _a(_L, $L, oF), _a( - hB, - PL, - oL, - eL, + ), na(O_, z_, pB), na( + CS, + G_, + p_, + c_, + AS, + PS, + WS, + YS, + r_, + a_, + BS, + wS, + P_, + OS, + w_, + C_, + B_, + XS, + Z_, + J_, + QS, + aB, + CB, + cB, + rB, kB, - FB, - EB, - IB, - GB, - KB, - yB, - pB, - FL, + LB, _B, - pL, - hL, - yL, - NB, - zL, - YL, - HB, - KL, - eF, - GL, - lF, - gF, - dF, - xF + EB )); -}, "addDiagrams"), bF = /* @__PURE__ */ f(async () => { - R.debug("Loading registered diagrams"); +}, "addDiagrams"), $B = /* @__PURE__ */ p(async () => { + P.debug("Loading registered diagrams"); const t = (await Promise.allSettled( - Object.entries(xr).map(async ([r, { detector: i, loader: s }]) => { + Object.entries(mr).map(async ([r, { detector: i, loader: s }]) => { if (s) try { - Fa(r); + ua(r); } catch { try { const { diagram: o, id: a } = await s(); - zs(a, o, i); + $s(a, o, i); } catch (o) { - throw R.error(`Failed to load external diagram with key ${r}. Removing from detectors.`), delete xr[r], o; + throw P.error(`Failed to load external diagram with key ${r}. Removing from detectors.`), delete mr[r], o; } } }) )).filter((r) => r.status === "rejected"); if (t.length > 0) { - R.error(`Failed to load ${t.length} external diagrams`); + P.error(`Failed to load ${t.length} external diagrams`); for (const r of t) - R.error(r); + P.error(r); throw new Error(`Failed to load ${t.length} external diagrams`); } -}, "loadRegisteredDiagrams"), kF = "graphics-document document"; -function ey(e, t) { - e.attr("role", kF), t !== "" && e.attr("aria-roledescription", t); +}, "loadRegisteredDiagrams"), OB = "graphics-document document"; +function Cm(e, t) { + e.attr("role", OB), t !== "" && e.attr("aria-roledescription", t); } -f(ey, "setA11yDiagramInfo"); -function ry(e, t, r, i) { +p(Cm, "setA11yDiagramInfo"); +function xm(e, t, r, i) { if (e.insert !== void 0) { if (r) { const s = `chart-desc-${i}`; @@ -15521,29 +15430,29 @@ function ry(e, t, r, i) { } } } -f(ry, "addSVGa11yTitleDescription"); -var Sn = class iy { +p(xm, "addSVGa11yTitleDescription"); +var sn = class bm { constructor(t, r, i, s, o) { this.type = t, this.text = r, this.db = i, this.parser = s, this.renderer = o; } static { - f(this, "Diagram"); + p(this, "Diagram"); } static async fromText(t, r = {}) { - const i = wt(), s = Bn(t, i); - t = Yw(t) + ` + const i = Tt(), s = nn(t, i); + t = u2(t) + ` `; try { - Fa(s); + ua(s); } catch { - const c = a0(s); + const c = Fy(s); if (!c) - throw new Zc(`Diagram ${s} not found.`); - const { id: h, diagram: u } = await c(); - zs(h, u); + throw new mc(`Diagram ${s} not found.`); + const { id: h, diagram: d } = await c(); + $s(h, d); } - const { db: o, parser: a, renderer: n, init: l } = Fa(s); - return a.parser && (a.parser.yy = o), o.clear?.(), l?.(i), r.title && o.setDiagramTitle?.(r.title), await a.parse(t), new iy(s, t, o, a, n); + const { db: o, parser: a, renderer: n, init: l } = ua(s); + return a.parser && (a.parser.yy = o), o.clear?.(), l?.(i), r.title && o.setDiagramTitle?.(r.title), await a.parse(t), new bm(s, t, o, a, n); } async render(t, r) { await this.renderer.draw(this.text, t, r, this); @@ -15554,22 +15463,22 @@ var Sn = class iy { getType() { return this.type; } -}, Nc = [], TF = /* @__PURE__ */ f(() => { - Nc.forEach((e) => { +}, ac = [], IB = /* @__PURE__ */ p(() => { + ac.forEach((e) => { e(); - }), Nc = []; -}, "attachFunctions"), wF = /* @__PURE__ */ f((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments"); -function sy(e) { - const t = e.match(Vc); + }), ac = []; +}, "attachFunctions"), DB = /* @__PURE__ */ p((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments"); +function km(e) { + const t = e.match(gc); if (!t) return { text: e, metadata: {} }; - let r = Xk(t[1], { + let r = m1(t[1], { // To support config, we need JSON schema. // https://www.yaml.org/spec/1.2/spec.html#id2803231 - schema: Gk + schema: g1 }) ?? {}; r = typeof r == "object" && !Array.isArray(r) ? r : {}; const i = {}; @@ -15578,221 +15487,264 @@ function sy(e) { metadata: i }; } -f(sy, "extractFrontMatter"); -var SF = /* @__PURE__ */ f((e) => e.replace(/\r\n?/g, ` +p(km, "extractFrontMatter"); +var RB = /* @__PURE__ */ p((e) => e.replace(/\r\n?/g, ` `).replace( /<(\w+)([^>]*)>/g, (t, r, i) => "<" + r + i.replace(/="([^"]*)"/g, "='$1'") + ">" -), "cleanupText"), _F = /* @__PURE__ */ f((e) => { - const { text: t, metadata: r } = sy(e), { displayMode: i, title: s, config: o = {} } = r; +), "cleanupText"), PB = /* @__PURE__ */ p((e) => { + const { text: t, metadata: r } = km(e), { displayMode: i, title: s, config: o = {} } = r; return i && (o.gantt || (o.gantt = {}), o.gantt.displayMode = i), { title: s, config: o, text: t }; -}, "processFrontmatter"), vF = /* @__PURE__ */ f((e) => { - const t = me.detectInit(e) ?? {}, r = me.detectDirective(e, "wrap"); +}, "processFrontmatter"), NB = /* @__PURE__ */ p((e) => { + const t = fe.detectInit(e) ?? {}, r = fe.detectDirective(e, "wrap"); return Array.isArray(r) ? t.wrap = r.some(({ type: i }) => i === "wrap") : r?.type === "wrap" && (t.wrap = !0), { - text: Mw(e), + text: J1(e), directive: t }; }, "processDirectives"); -function _l(e) { - const t = SF(e), r = _F(t), i = vF(r.text), s = ll(r.config, i.directive); - return e = wF(i.text), { +function al(e) { + const t = RB(e), r = PB(t), i = NB(r.text), s = zn(r.config, i.directive); + return e = DB(i.text), { code: e, title: r.title, config: s }; } -f(_l, "preprocessDiagram"); -function oy(e) { +p(al, "preprocessDiagram"); +function wm(e) { const t = new TextEncoder().encode(e), r = Array.from(t, (i) => String.fromCodePoint(i)).join(""); return btoa(r); } -f(oy, "toBase64"); -var BF = 5e4, LF = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", FF = "sandbox", AF = "loose", MF = "http://www.w3.org/2000/svg", EF = "http://www.w3.org/1999/xlink", $F = "http://www.w3.org/1999/xhtml", OF = "100%", IF = "100%", DF = "border:0;margin:0;", PF = "margin:0", RF = "allow-top-navigation-by-user-activation allow-popups", NF = 'The "iframe" tag is not supported by your browser.', qF = ["foreignobject"], zF = ["dominant-baseline"]; -function vl(e) { - const t = _l(e); - return Ns(), O0(t.config ?? {}), t; +p(wm, "toBase64"); +var qB = 5e4, WB = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", zB = "sandbox", HB = "loose", YB = "http://www.w3.org/2000/svg", UB = "http://www.w3.org/1999/xlink", GB = "http://www.w3.org/1999/xhtml", jB = "100%", XB = "100%", VB = "border:0;margin:0;", ZB = "margin:0", KB = "allow-top-navigation-by-user-activation allow-popups", QB = 'The "iframe" tag is not supported by your browser.', JB = ["foreignobject"], tv = ["dominant-baseline"]; +function nl(e) { + const t = al(e); + return Ms(), r0(t.config ?? {}), t; } -f(vl, "processAndSetConfigs"); -async function ay(e, t) { - Wo(); +p(nl, "processAndSetConfigs"); +async function Tm(e, t) { + _o(); try { - const { code: r, config: i } = vl(e); - return { diagramType: (await ly(r)).type, config: i }; + const { code: r, config: i } = nl(e); + return { diagramType: (await _m(r)).type, config: i }; } catch (r) { if (t?.suppressErrors) return !1; throw r; } } -f(ay, "parse"); -var qc = /* @__PURE__ */ f((e, t, r = []) => ` -.${e} ${t} { ${r.join(" !important; ")} !important; }`, "cssImportantStyles"), WF = /* @__PURE__ */ f((e, t = /* @__PURE__ */ new Map()) => { - let r = ""; - if (e.themeCSS !== void 0 && (r += ` -${e.themeCSS}`), e.fontFamily !== void 0 && (r += ` -:root { --mermaid-font-family: ${e.fontFamily}}`), e.altFontFamily !== void 0 && (r += ` -:root { --mermaid-alt-font-family: ${e.altFontFamily}}`), t instanceof Map) { - const a = Vt(e) ? ["> *", "span"] : ["rect", "polygon", "ellipse", "circle", "path"]; - t.forEach((n) => { - Pc(n.styles) || a.forEach((l) => { - r += qc(n.id, l, n.styles); - }), Pc(n.textStyles) || (r += qc( - n.id, - "tspan", - (n?.textStyles || []).map((l) => l.replace("color", "fill")) - )); +p(Tm, "parse"); +var nc = /* @__PURE__ */ p((e, t, r = []) => { + const i = kc(`{ ${r.join(" !important; ")} !important; }`); + return `.${e} ${t} ${i}`; +}, "cssImportantStyles"), ev = /* @__PURE__ */ p((e, t = /* @__PURE__ */ new Map()) => { + const r = new CSSStyleSheet(); + if (e.fontFamily !== void 0 && r.insertRule( + `:root { --mermaid-font-family: ${e.fontFamily}}`, + r.cssRules.length + ), e.altFontFamily !== void 0 && r.insertRule( + `:root { --mermaid-alt-font-family: ${e.altFontFamily}}`, + r.cssRules.length + ), t instanceof Map) { + const n = Vt(e) ? ["> *", "span"] : ["rect", "polygon", "ellipse", "circle", "path"]; + t.forEach((l) => { + kh(l.styles) || n.forEach((c) => { + r.insertRule( + nc(l.id, c, l.styles), + r.cssRules.length + ); + }), kh(l.textStyles) || r.insertRule( + nc( + l.id, + "tspan", + (l?.textStyles || []).map((c) => c.replace("color", "fill")) + ), + r.cssRules.length + ); }); } - return r; -}, "createCssStyles"), HF = /* @__PURE__ */ f((e, t, r, i) => { - const s = WF(e, r), o = J0( + let i = ""; + if (e.themeCSS !== void 0) + if (typeof r.replaceSync == "function") { + const s = new CSSStyleSheet(); + s.replaceSync(e.themeCSS), i = da(s) + ` +`; + } else + i += `${e.themeCSS} +`; + return i + da(r); +}, "createCssStyles"), rv = /* @__PURE__ */ p((e, t) => rn( + dS(`${e}{${t}}`), + pS([ + /* @__PURE__ */ p(function(i, s, o, a) { + if (i.type === "rule" && Array.isArray(i.props)) { + if (i.parent && i.parent.type === Ja) + return; + i.props = i.props.map((n) => n.startsWith(e) ? n : `${e} ${n}`); + } else i.type.startsWith("@") && ([ + ...[ + KT, + JT, + Ig, + eS, + "@container", + "@starting-style" + ], + Ja + // needed for Mermaid's animation feature + ].includes(i.type) || (P.warn(`Removing unsupported at-rule ${i.type} from CSS`), i.type = sl)); + }, "addNamespace"), + fS + ]) +), "compileCSS"), iv = /* @__PURE__ */ p((e, t, r, i) => { + const s = ev(e, r), o = k0( t, s, { ...e.themeVariables, theme: e.theme, look: e.look }, i ); - return xn(Hv(`${i}{${o}}`), jv); -}, "createUserStyles"), YF = /* @__PURE__ */ f((e = "", t, r) => { + return rv(i, o); +}, "createUserStyles"), sv = /* @__PURE__ */ p((e = "", t, r) => { let i = e; return !r && !t && (i = i.replace( /marker-end="url\([\d+./:=?A-Za-z-]*?#/g, 'marker-end="url(#' - )), i = Sr(i), i = i.replace(/
    /g, "
    "), i; -}, "cleanUpSvgCode"), jF = /* @__PURE__ */ f((e = "", t) => { - const r = t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : IF, i = oy(`${e}`); - return ``; -}, "putIntoIFrame"), zc = /* @__PURE__ */ f((e, t, r, i, s) => { +}, "putIntoIFrame"), lc = /* @__PURE__ */ p((e, t, r, i, s) => { const o = e.append("div"); o.attr("id", r), i && o.attr("style", i); - const a = o.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", MF); + const a = o.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", YB); return s && a.attr("xmlns:xlink", s), a.append("g"), e; }, "appendDivSvgG"); -function _n(e, t) { +function on(e, t) { return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", ""); } -f(_n, "sandboxedIframe"); -var UF = /* @__PURE__ */ f((e, t, r, i) => { +p(on, "sandboxedIframe"); +var av = /* @__PURE__ */ p((e, t, r, i) => { e.getElementById(t)?.remove(), e.getElementById(r)?.remove(), e.getElementById(i)?.remove(); -}, "removeExistingElements"), GF = /* @__PURE__ */ f(async function(e, t, r) { - Wo(); - const i = vl(t); +}, "removeExistingElements"), nv = /* @__PURE__ */ p(async function(e, t, r) { + _o(); + const i = nl(t); t = i.code; - const s = wt(); - R.debug(s), t.length > (s?.maxTextSize ?? BF) && (t = LF); - const o = "#" + e, a = "i" + e, n = "#" + a, l = "d" + e, c = "#" + l, h = /* @__PURE__ */ f(() => { - const z = ct(p ? n : c).node(); - z && "remove" in z && z.remove(); + const s = Tt(); + P.debug(s), t.length > (s?.maxTextSize ?? qB) && (t = WB); + const o = `#${e}`, a = "i" + e, n = "#" + a, l = "d" + e, c = "#" + l, h = /* @__PURE__ */ p(() => { + const W = ht(f ? n : c).node(); + W && "remove" in W && W.remove(); }, "removeTempElements"); - let u = ct("body"); - const p = s.securityLevel === FF, d = s.securityLevel === AF, g = s.fontFamily; + let d = ht(document.body); + const f = s.securityLevel === zB, u = s.securityLevel === HB, g = s.fontFamily; if (r !== void 0) { - if (r && (r.innerHTML = ""), p) { - const W = _n(ct(r), a); - u = ct(W.nodes()[0].contentDocument.body), u.node().style.margin = 0; + if (r && (r.innerHTML = ""), f) { + const H = on(ht(r), a); + d = ht(H.nodes()[0].contentDocument.body), d.node().style.margin = "0"; } else - u = ct(r); - zc(u, e, l, `font-family: ${g}`, EF); + d = ht(r); + lc(d, e, l, `font-family: ${g}`, UB); } else { - if (UF(document, e, l, a), p) { - const W = _n(ct("body"), a); - u = ct(W.nodes()[0].contentDocument.body), u.node().style.margin = 0; + if (av(document, e, l, a), f) { + const H = on(ht(document.body), a); + d = ht(H.nodes()[0].contentDocument.body), d.node().style.margin = "0"; } else - u = ct("body"); - zc(u, e, l); + d = ht("body"); + lc(d, e, l); } let m, y; try { - m = await Sn.fromText(t, { title: i.title }); - } catch (W) { + m = await sn.fromText(t, { title: i.title }); + } catch (H) { if (s.suppressErrorRendering) - throw h(), W; - m = await Sn.fromText("error"), y = W; + throw h(), H; + m = await sn.fromText("error"), y = H; } - const x = u.select(c).node(), b = m.type, k = x.firstChild, w = k.firstChild, S = m.renderer.getClasses?.(t, m), v = HF(s, b, S, o), M = document.createElement("style"); - M.innerHTML = v, k.insertBefore(M, w); + const C = d.select(c).node(), b = m.type, k = C.firstChild, T = k.firstChild, S = m.renderer.getClasses?.(t, m), _ = iv(s, b, S, o), A = document.createElement("style"); + A.innerHTML = _, k.insertBefore(A, T); try { - await m.renderer.draw(t, e, "11.14.0", m); - } catch (W) { - throw s.suppressErrorRendering ? h() : xL.draw(t, e, "11.14.0"), W; - } - const B = u.select(`${c} svg`), N = m.db.getAccTitle?.(), D = m.db.getAccDescription?.(); - hy(b, B, N, D), u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", $F); - let O = u.select(c).node().innerHTML; - if (R.debug("config.arrowMarkerAbsolute", s.arrowMarkerAbsolute), O = YF(O, p, je(s.arrowMarkerAbsolute)), p) { - const W = u.select(c + " svg").node(); - O = jF(O, W); - } else d || (O = Xr.sanitize(O, { - ADD_TAGS: qF, - ADD_ATTR: zF, + await m.renderer.draw(t, e, "11.15.0", m); + } catch (H) { + throw s.suppressErrorRendering ? h() : L_.draw(t, e, "11.15.0"), H; + } + const v = d.select(`${c} svg`), q = m.db.getAccTitle?.(), I = m.db.getAccDescription?.(); + Bm(b, v, q, I), d.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", GB); + let R = d.select(c).node().innerHTML; + if (P.debug("config.arrowMarkerAbsolute", s.arrowMarkerAbsolute), R = sv(R, f, ze(s.arrowMarkerAbsolute)), f) { + const H = d.select(c + " svg").node(); + R = ov(R, H); + } else u || (R = Ur.sanitize(R, { + ADD_TAGS: JB, + ADD_ATTR: tv, HTML_INTEGRATION_POINTS: { foreignobject: !0 } })); - if (TF(), y) + if (IB(), y) throw y; return h(), { diagramType: b, - svg: O, + svg: R, bindFunctions: m.db.bindFunctions }; }, "render"); -function ny(e = {}) { +function Sm(e = {}) { const t = $t({}, e); - t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables || (t.themeVariables = {}), t.themeVariables.fontFamily = t.fontFamily), E0(t), t?.theme && t.theme in qe ? t.themeVariables = qe[t.theme].getThemeVariables( + t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables || (t.themeVariables = {}), t.themeVariables.fontFamily = t.fontFamily), t0(t), t?.theme && t.theme in Re ? t.themeVariables = Re[t.theme].getThemeVariables( t.themeVariables - ) : t && (t.themeVariables = qe.default.getThemeVariables(t.themeVariables)); - const r = typeof t == "object" ? M0(t) : eu(); - vn(r.logLevel), Wo(); -} -f(ny, "initialize"); -var ly = /* @__PURE__ */ f((e, t = {}) => { - const { code: r } = _l(e); - return Sn.fromText(r, t); + ) : t && (t.themeVariables = Re.default.getThemeVariables(t.themeVariables)); + const r = typeof t == "object" ? Jy(t) : wc(); + an(r.logLevel), _o(); +} +p(Sm, "initialize"); +var _m = /* @__PURE__ */ p((e, t = {}) => { + const { code: r } = al(e); + return sn.fromText(r, t); }, "getDiagramFromText"); -function hy(e, t, r, i) { - ey(t, e), ry(t, r, i, t.attr("id")); -} -f(hy, "addA11yInfo"); -var vr = Object.freeze({ - render: GF, - parse: ay, - getDiagramFromText: ly, - initialize: ny, - getConfig: wt, - setConfig: ru, - getSiteConfig: eu, - updateSiteConfig: $0, - reset: /* @__PURE__ */ f(() => { - Ns(); +function Bm(e, t, r, i) { + Cm(t, e), xm(t, r, i, t.attr("id")); +} +p(Bm, "addA11yInfo"); +var wr = Object.freeze({ + render: nv, + parse: Tm, + getDiagramFromText: _m, + initialize: Sm, + getConfig: Tt, + setConfig: Tc, + getSiteConfig: wc, + updateSiteConfig: e0, + reset: /* @__PURE__ */ p(() => { + Ms(); }, "reset"), - globalReset: /* @__PURE__ */ f(() => { - Ns(Vr); + globalReset: /* @__PURE__ */ p(() => { + Ms(Gr); }, "globalReset"), - defaultConfig: Vr + defaultConfig: Gr }); -vn(wt().logLevel); -Ns(wt()); -var XF = /* @__PURE__ */ f((e, t, r) => { - R.warn(e), nl(e) ? (r && r(e.str, e.hash), t.push({ ...e, message: e.str, error: e })) : (r && r(e), e instanceof Error && t.push({ +an(Tt().logLevel); +Ms(Tt()); +var lv = /* @__PURE__ */ p((e, t, r) => { + P.warn(e), Wn(e) ? (r && r(e.str, e.hash), t.push({ ...e, message: e.str, error: e })) : (r && r(e), e instanceof Error && t.push({ str: e.message, message: e.message, hash: e.name, error: e })); -}, "handleError"), cy = /* @__PURE__ */ f(async function(e = { +}, "handleError"), vm = /* @__PURE__ */ p(async function(e = { querySelector: ".mermaid" }) { try { - await VF(e); + await hv(e); } catch (t) { - if (nl(t) && R.error(t.str), Ye.parseError && Ye.parseError(t), !e.suppressErrors) - throw R.error("Use the suppressErrors option to suppress these errors"), t; + if (Wn(t) && P.error(t.str), We.parseError && We.parseError(t), !e.suppressErrors) + throw P.error("Use the suppressErrors option to suppress these errors"), t; } -}, "run"), VF = /* @__PURE__ */ f(async function({ postRenderCallback: e, querySelector: t, nodes: r } = { +}, "run"), hv = /* @__PURE__ */ p(async function({ postRenderCallback: e, querySelector: t, nodes: r } = { querySelector: ".mermaid" }) { - const i = vr.getConfig(); - R.debug(`${e ? "" : "No "}Callback function found`); + const i = wr.getConfig(); + P.debug(`${e ? "" : "No "}Callback function found`); let s; if (r) s = r; @@ -15800,267 +15752,250 @@ var XF = /* @__PURE__ */ f((e, t, r) => { s = document.querySelectorAll(t); else throw new Error("Nodes and querySelector are both undefined"); - R.debug(`Found ${s.length} diagrams`), i?.startOnLoad !== void 0 && (R.debug("Start On Load: " + i?.startOnLoad), vr.updateSiteConfig({ startOnLoad: i?.startOnLoad })); - const o = new me.InitIDGenerator(i.deterministicIds, i.deterministicIDSeed); + P.debug(`Found ${s.length} diagrams`), i?.startOnLoad !== void 0 && (P.debug("Start On Load: " + i?.startOnLoad), wr.updateSiteConfig({ startOnLoad: i?.startOnLoad })); + const o = new fe.InitIDGenerator(i.deterministicIds, i.deterministicIDSeed); let a; const n = []; for (const l of Array.from(s)) { - if (R.info("Rendering diagram: " + l.id), l.getAttribute("data-processed")) + if (P.info("Rendering diagram: " + l.id), l.getAttribute("data-processed")) continue; l.setAttribute("data-processed", "true"); const c = `mermaid-${o.next()}`; - a = l.innerHTML, a = vf(me.entityDecode(a)).trim().replace(//gi, "
    "); - const h = me.detectInit(a); - h && R.debug("Detected early reinit: ", h); + a = l.innerHTML, a = qf(fe.entityDecode(a)).trim().replace(//gi, "
    "); + const h = fe.detectInit(a); + h && P.debug("Detected early reinit: ", h); try { - const { svg: u, bindFunctions: p } = await fy(c, a, l); - l.innerHTML = u, e && await e(c), p && p(l); - } catch (u) { - XF(u, n, Ye.parseError); + const { svg: d, bindFunctions: f } = await Mm(c, a, l); + l.innerHTML = d, e && await e(c), f && f(l); + } catch (d) { + lv(d, n, We.parseError); } } if (n.length > 0) throw n[0]; -}, "runThrowsErrors"), uy = /* @__PURE__ */ f(function(e) { - vr.initialize(e); -}, "initialize"), ZF = /* @__PURE__ */ f(async function(e, t, r) { - R.warn("mermaid.init is deprecated. Please use run instead."), e && uy(e); +}, "runThrowsErrors"), Lm = /* @__PURE__ */ p(function(e) { + wr.initialize(e); +}, "initialize"), cv = /* @__PURE__ */ p(async function(e, t, r) { + P.warn("mermaid.init is deprecated. Please use run instead."), e && Lm(e); const i = { postRenderCallback: r, querySelector: ".mermaid" }; - typeof t == "string" ? i.querySelector = t : t && (t instanceof HTMLElement ? i.nodes = [t] : i.nodes = t), await cy(i); -}, "init"), KF = /* @__PURE__ */ f(async (e, { + typeof t == "string" ? i.querySelector = t : t && (t instanceof HTMLElement ? i.nodes = [t] : i.nodes = t), await vm(i); +}, "init"), dv = /* @__PURE__ */ p(async (e, { lazyLoad: t = !0 } = {}) => { - Wo(), _a(...e), t === !1 && await bF(); -}, "registerExternalDiagrams"), dy = /* @__PURE__ */ f(function() { - if (Ye.startOnLoad) { - const { startOnLoad: e } = vr.getConfig(); - e && Ye.run().catch((t) => R.error("Mermaid failed to initialize", t)); + _o(), na(...e), t === !1 && await $B(); +}, "registerExternalDiagrams"), Fm = /* @__PURE__ */ p(function() { + if (We.startOnLoad) { + const { startOnLoad: e } = wr.getConfig(); + e && We.run().catch((t) => P.error("Mermaid failed to initialize", t)); } }, "contentLoaded"); -typeof document < "u" && window.addEventListener("load", dy, !1); -var QF = /* @__PURE__ */ f(function(e) { - Ye.parseError = e; -}, "setParseErrorHandler"), Co = [], Ta = !1, py = /* @__PURE__ */ f(async () => { - if (!Ta) { - for (Ta = !0; Co.length > 0; ) { - const e = Co.shift(); +typeof document < "u" && window.addEventListener("load", Fm, !1); +var uv = /* @__PURE__ */ p(function(e) { + We.parseError = e; +}, "setParseErrorHandler"), oo = [], sa = !1, Am = /* @__PURE__ */ p(async () => { + if (!sa) { + for (sa = !0; oo.length > 0; ) { + const e = oo.shift(); if (e) try { await e(); } catch (t) { - R.error("Error executing queue", t); + P.error("Error executing queue", t); } } - Ta = !1; + sa = !1; } -}, "executeQueue"), JF = /* @__PURE__ */ f(async (e, t) => new Promise((r, i) => { - const s = /* @__PURE__ */ f(() => new Promise((o, a) => { - vr.parse(e, t).then( +}, "executeQueue"), fv = /* @__PURE__ */ p(async (e, t) => new Promise((r, i) => { + const s = /* @__PURE__ */ p(() => new Promise((o, a) => { + wr.parse(e, t).then( (n) => { o(n), r(n); }, (n) => { - R.error("Error parsing", n), Ye.parseError?.(n), a(n), i(n); + P.error("Error parsing", n), We.parseError?.(n), a(n), i(n); } ); }), "performCall"); - Co.push(s), py().catch(i); -}), "parse"), fy = /* @__PURE__ */ f((e, t, r) => new Promise((i, s) => { - const o = /* @__PURE__ */ f(() => new Promise((a, n) => { - vr.render(e, t, r).then( + oo.push(s), Am().catch(i); +}), "parse"), Mm = /* @__PURE__ */ p((e, t, r) => new Promise((i, s) => { + const o = /* @__PURE__ */ p(() => new Promise((a, n) => { + wr.render(e, t, r).then( (l) => { a(l), i(l); }, (l) => { - R.error("Error parsing", l), Ye.parseError?.(l), n(l), s(l); + P.error("Error parsing", l), We.parseError?.(l), n(l), s(l); } ); }), "performCall"); - Co.push(o), py().catch(s); -}), "render"), tA = /* @__PURE__ */ f(() => Object.keys(xr).map((e) => ({ + oo.push(o), Am().catch(s); +}), "render"), pv = /* @__PURE__ */ p(() => Object.keys(mr).map((e) => ({ id: e -})), "getRegisteredDiagramsMetadata"), Ye = { +})), "getRegisteredDiagramsMetadata"), We = { startOnLoad: !0, - mermaidAPI: vr, - parse: JF, - render: fy, - init: ZF, - run: cy, - registerExternalDiagrams: KF, - registerLayoutLoaders: ym, - initialize: uy, + mermaidAPI: wr, + parse: fv, + render: Mm, + init: cv, + run: vm, + registerExternalDiagrams: dv, + registerLayoutLoaders: Eg, + initialize: Lm, parseError: void 0, - contentLoaded: dy, - setParseErrorHandler: QF, - detectType: Bn, - registerIconPacks: KS, - getRegisteredDiagramsMetadata: tA -}, eA = Ye; + contentLoaded: Fm, + setParseErrorHandler: uv, + detectType: nn, + registerIconPacks: xw, + getRegisteredDiagramsMetadata: pv +}, gv = We; /*! Check if previously processed */ /*! * Wait for document loaded before starting the execution */ -const MA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Uv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: eA + default: gv }, Symbol.toStringTag, { value: "Module" })); export { - uu as $, - aA as A, - Je as B, - By as C, - wt as D, - lC as E, - ll as F, - tu as G, - Dw as H, - z1 as I, - Gk as J, - d0 as K, - Pi as L, - sA as M, - $o as N, - W0 as O, - hu as P, - ah as Q, - E1 as R, - Na as S, - Iw as T, - Ki as U, - be as V, - $ as W, - A as X, - Z0 as Y, - Bw as Z, - f as _, - rC as a, - Br as a$, - L1 as a0, - qn as a1, - cA as a2, - pA as a3, - Dr as a4, - vh as a5, - _h as a6, - gA as a7, - fA as a8, - dA as a9, - Z_ as aA, - V_ as aB, - JS as aC, - Yc as aD, - F1 as aE, - iA as aF, - Eo as aG, - ao as aH, - ef as aI, - os as aJ, - KS as aK, - ZS as aL, - Dn as aM, - Ze as aN, - qi as aO, - xh as aP, - lb as aQ, - ew as aR, - Jp as aS, - Up as aT, - oT as aU, - io as aV, - aT as aW, - is as aX, - pr as aY, - ZT as aZ, - Uh as a_, - lA as aa, - hA as ab, - uA as ac, - yA as ad, - mA as ae, - S_ as af, - pm as ag, - BA as ah, - Vk as ai, - Vt as aj, - Ge as ak, - fi as al, - hl as am, - lf as an, - Sr as ao, - df as ap, - nt as aq, - Le as ar, - U as as, - vv as at, - vA as au, - LA as av, - SA as aw, - Z as ax, - _A as ay, - ev as az, - eC as b, - nT as b0, - el as b1, - sT as b2, - cT as b3, - ii as b4, - tw as b5, - ww as b6, - gT as b7, - mw as b8, - Jn as b9, - Sw as bA, - tl as bB, - vw as bC, - MA as bD, - Pc as ba, - V as bb, - pf as bc, - ee as bd, - eb as be, - In as bf, - _u as bg, - ts as bh, - Lu as bi, - nA as bj, - vy as bk, - ri as bl, - nw as bm, - Vv as bn, - rs as bo, - oo as bp, - or as bq, - Lo as br, - zh as bs, - rl as bt, - Xp as bu, - Qp as bv, - rT as bw, - Tn as bx, - Tw as by, - gw as bz, - gt as c, - ct as d, - cu as e, - $t as f, - sC as g, - He as h, - xe as i, - Qk as j, - Qi as k, - R as l, - cf as m, - oA as n, - AA as o, - oC as p, - aC as q, - FA as r, - iC as s, - Xk as t, - me as u, - Y_ as v, - Nw as w, - CA as x, - Xr as y, - tC as z + N1 as $, + kw as A, + li as B, + _e as C, + Bf as D, + Mc as E, + $r as F, + mn as G, + Sv as H, + He as I, + g1 as J, + wa as K, + O as L, + A1 as M, + _1 as N, + Hm as O, + br as P, + bv as Q, + ee as R, + bc as S, + gn as T, + at as U, + b1 as V, + lh as W, + Gc as X, + P1 as Y, + V1 as Z, + Ym as _, + Yi as a, + hk as a$, + i2 as a0, + B0 as a1, + S0 as a2, + Tt as a3, + gt as a4, + L0 as a5, + Ev as a6, + Vt as a7, + Xi as a8, + y1 as a9, + tk as aA, + Wi as aB, + m1 as aC, + P as aD, + B1 as aE, + XT as aF, + _v as aG, + Uv as aH, + Bv as aI, + Vc as aJ, + ff as aK, + mf as aL, + mo as aM, + Hl as aN, + bn as aO, + CT as aP, + Wv as aQ, + Ur as aR, + s2 as aS, + T1 as aT, + xw as aU, + Hv as aV, + Ac as aW, + Tx as aX, + Ke as aY, + me as aZ, + ht as a_, + Yv as aa, + wf as ab, + Hn as ac, + On as ad, + Iy as ae, + c0 as af, + yv as ag, + hh as ah, + Fi as ai, + kv as aj, + Gw as ak, + TT as al, + yT as am, + Lg as an, + D1 as ao, + R1 as ap, + I1 as aq, + Xe as ar, + rh as as, + Ax as at, + ye as au, + vf as av, + $n as aw, + Ts as ax, + uT as ay, + $ as az, + p as b, + _0 as b0, + T0 as b1, + xv as b2, + v0 as b3, + Nv as b4, + v1 as b5, + C0 as b6, + A0 as b7, + vv as b8, + Lv as b9, + uf as ba, + Z as bb, + S1 as bc, + Fv as bd, + $1 as be, + O1 as bf, + M1 as bg, + E1 as bh, + Cw as bi, + K as bj, + fe as bk, + Zb as bl, + n2 as bm, + wv as c, + Av as d, + dc as e, + gf as f, + Kb as g, + F1 as h, + L1 as i, + Mv as j, + $t as k, + j as l, + Tv as m, + pf as n, + Cv as o, + qn as p, + Sf as q, + qe as r, + zn as s, + w0 as t, + zv as u, + Pv as v, + qv as w, + Ei as x, + Ec as y, + zi as z }; diff --git a/src/wc-content-kit/public/mermaid/min-Ds2tR2xq.js b/src/wc-content-kit/public/mermaid/min-Ds2tR2xq.js deleted file mode 100644 index acb43cb..0000000 --- a/src/wc-content-kit/public/mermaid/min-Ds2tR2xq.js +++ /dev/null @@ -1,38 +0,0 @@ -import { b, a as m, c as d, d as h, i as l } from "./_baseUniq-B0FPZyMQ.js"; -import { aG as g, aH as o, aI as p } from "./mermaid.core-Jw3znkh4.js"; -function L(a) { - var n = a == null ? 0 : a.length; - return n ? b(a) : []; -} -function v(a, n) { - var s = -1, t = g(a) ? Array(a.length) : []; - return m(a, function(f, i, e) { - t[++s] = n(f, i, e); - }), t; -} -function M(a, n) { - var s = o(a) ? h : v; - return s(a, d(n)); -} -function x(a, n) { - return a < n; -} -function A(a, n, s) { - for (var t = -1, f = a.length; ++t < f; ) { - var i = a[t], e = n(i); - if (e != null && (r === void 0 ? e === e && !l(e) : s(e, r))) - var r = e, u = i; - } - return u; -} -function k(a) { - return a && a.length ? A(a, p, x) : void 0; -} -export { - x as a, - A as b, - v as c, - k as d, - L as f, - M as m -}; diff --git a/src/wc-content-kit/public/mermaid/mindmap-definition-QFDTVHPH-BPyQNVV8.js b/src/wc-content-kit/public/mermaid/mindmap-definition-RKZ34NQL-LGqBYL8K.js similarity index 79% rename from src/wc-content-kit/public/mermaid/mindmap-definition-QFDTVHPH-BPyQNVV8.js rename to src/wc-content-kit/public/mermaid/mindmap-definition-RKZ34NQL-LGqBYL8K.js index c16c11a..4cec666 100644 --- a/src/wc-content-kit/public/mermaid/mindmap-definition-QFDTVHPH-BPyQNVV8.js +++ b/src/wc-content-kit/public/mermaid/mindmap-definition-RKZ34NQL-LGqBYL8K.js @@ -1,44 +1,38 @@ -import { g as ce } from "./chunk-55IACEB6-DuOOmvV2.js"; -import { s as le } from "./chunk-EDXVE4YY-j9tcUx_w.js"; -import { _ as l, l as I, o as he, r as de, D as ge, G, c as U, i as F, aF as ue, V as pe, W as fe, X as me } from "./mermaid.core-Jw3znkh4.js"; +import { g as ae } from "./chunk-55IACEB6-Q791aHQa.js"; +import { s as oe } from "./chunk-2J33WTMH-HCULbuMq.js"; +import { b as l, aD as C, aa as ce, aV as le, a3 as he, S as G, a4 as B, aZ as F, ag as de, au as ge, az as ue, L as pe } from "./mermaid.core-FRDjOodn.js"; const E = []; for (let e = 0; e < 256; ++e) E.push((e + 256).toString(16).slice(1)); -function ye(e, n = 0) { +function fe(e, n = 0) { return (E[e[n + 0]] + E[e[n + 1]] + E[e[n + 2]] + E[e[n + 3]] + "-" + E[e[n + 4]] + E[e[n + 5]] + "-" + E[e[n + 6]] + E[e[n + 7]] + "-" + E[e[n + 8]] + E[e[n + 9]] + "-" + E[e[n + 10]] + E[e[n + 11]] + E[e[n + 12]] + E[e[n + 13]] + E[e[n + 14]] + E[e[n + 15]]).toLowerCase(); } -let Y; -const Ee = new Uint8Array(16); -function _e() { - if (!Y) { - if (typeof crypto > "u" || !crypto.getRandomValues) - throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); - Y = crypto.getRandomValues.bind(crypto); - } - return Y(Ee); +const me = new Uint8Array(16); +function ye() { + return crypto.getRandomValues(me); +} +function Ee(e, n, g) { + return crypto.randomUUID ? crypto.randomUUID() : _e(e); } -const be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: be }; -function ke(e, n, g) { - if (ne.randomUUID && !e) - return ne.randomUUID(); +function _e(e, n, g) { e = e || {}; - const a = e.random ?? e.rng?.() ?? _e(); - if (a.length < 16) + const o = e.random ?? e.rng?.() ?? ye(); + if (o.length < 16) throw new Error("Random bytes length must be >= 16"); - return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ye(a); + return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, fe(o); } -var q = (function() { - var e = /* @__PURE__ */ l(function(N, s, i, o) { - for (i = i || {}, o = N.length; o--; i[N[o]] = s) ; +var Y = (function() { + var e = /* @__PURE__ */ l(function(D, s, i, a) { + for (i = i || {}, a = D.length; a--; i[D[a]] = s) ; return i; - }, "o"), n = [1, 4], g = [1, 13], a = [1, 12], t = [1, 15], h = [1, 16], f = [1, 20], m = [1, 19], _ = [6, 7, 8], T = [1, 26], C = [1, 24], w = [1, 25], d = [6, 7, 11], R = [1, 6, 13, 15, 16, 19, 22], J = [1, 33], K = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], j = { + }, "o"), n = [1, 4], g = [1, 13], o = [1, 12], t = [1, 15], h = [1, 16], f = [1, 20], m = [1, 19], _ = [6, 7, 8], T = [1, 26], I = [1, 24], w = [1, 25], d = [6, 7, 11], R = [1, 6, 13, 15, 16, 19, 22], Z = [1, 33], q = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], j = { trace: /* @__PURE__ */ l(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: /* @__PURE__ */ l(function(s, i, o, c, p, r, $) { + performAction: /* @__PURE__ */ l(function(s, i, a, c, p, r, $) { var u = r.length - 1; switch (p) { case 6: @@ -86,47 +80,47 @@ var q = (function() { break; } }, "anonymous"), - table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: n }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: n }, { 6: g, 7: [1, 10], 9: 9, 12: 11, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, e(_, [2, 3]), { 1: [2, 2] }, e(_, [2, 4]), e(_, [2, 5]), { 1: [2, 6], 6: g, 12: 21, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, { 6: g, 9: 22, 12: 11, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, { 6: T, 7: C, 10: 23, 11: w }, e(d, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: f, 22: m }), e(d, [2, 18]), e(d, [2, 19]), e(d, [2, 20]), e(d, [2, 21]), e(d, [2, 23]), e(d, [2, 24]), e(d, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: T, 7: C, 10: 32, 11: w }, { 1: [2, 7], 6: g, 12: 21, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, e(R, [2, 14], { 7: J, 11: K }), e(A, [2, 8]), e(A, [2, 9]), e(A, [2, 10]), e(d, [2, 15]), e(d, [2, 16]), e(d, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, e(R, [2, 13], { 7: J, 11: K }), e(A, [2, 11]), e(A, [2, 12]), { 21: [1, 37] }, e(d, [2, 25]), e(d, [2, 27])], + table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: n }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: n }, { 6: g, 7: [1, 10], 9: 9, 12: 11, 13: o, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, e(_, [2, 3]), { 1: [2, 2] }, e(_, [2, 4]), e(_, [2, 5]), { 1: [2, 6], 6: g, 12: 21, 13: o, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, { 6: g, 9: 22, 12: 11, 13: o, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, { 6: T, 7: I, 10: 23, 11: w }, e(d, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: f, 22: m }), e(d, [2, 18]), e(d, [2, 19]), e(d, [2, 20]), e(d, [2, 21]), e(d, [2, 23]), e(d, [2, 24]), e(d, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: T, 7: I, 10: 32, 11: w }, { 1: [2, 7], 6: g, 12: 21, 13: o, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, e(R, [2, 14], { 7: Z, 11: q }), e(A, [2, 8]), e(A, [2, 9]), e(A, [2, 10]), e(d, [2, 15]), e(d, [2, 16]), e(d, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, e(R, [2, 13], { 7: Z, 11: q }), e(A, [2, 11]), e(A, [2, 12]), { 21: [1, 37] }, e(d, [2, 25]), e(d, [2, 27])], defaultActions: { 2: [2, 1], 6: [2, 2] }, parseError: /* @__PURE__ */ l(function(s, i) { if (i.recoverable) this.trace(s); else { - var o = new Error(s); - throw o.hash = i, o; + var a = new Error(s); + throw a.hash = i, a; } }, "parseError"), parse: /* @__PURE__ */ l(function(s) { - var i = this, o = [0], c = [], p = [null], r = [], $ = this.table, u = "", P = 0, Q = 0, se = 2, Z = 1, re = r.slice.call(arguments, 1), y = Object.create(this.lexer), L = { yy: {} }; + var i = this, a = [0], c = [], p = [null], r = [], $ = this.table, u = "", M = 0, J = 0, ne = 2, K = 1, ie = 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 oe = y.options && y.options.ranges; + var z = y.yylloc; + r.push(z); + var se = y.options && y.options.ranges; typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; - function ae(k) { - o.length = o.length - 2 * k, p.length = p.length - k, r.length = r.length - k; + function re(k) { + a.length = a.length - 2 * k, p.length = p.length - k, r.length = r.length - k; } - l(ae, "popStack"); - function ee() { + l(re, "popStack"); + function Q() { var k; - return k = c.pop() || y.lex() || Z, typeof k != "number" && (k instanceof Array && (c = k, k = c.pop()), k = i.symbols_[k] || k), k; + return k = c.pop() || y.lex() || K, typeof k != "number" && (k instanceof Array && (c = k, k = c.pop()), k = i.symbols_[k] || k), k; } - l(ee, "lex"); - for (var b, v, S, X, O = {}, M, x, te, V; ; ) { - if (v = o[o.length - 1], this.defaultActions[v] ? S = this.defaultActions[v] : ((b === null || typeof b > "u") && (b = ee()), S = $[v] && $[v][b]), typeof S > "u" || !S.length || !S[0]) { - var z = ""; + l(Q, "lex"); + for (var b, v, S, W, O = {}, U, x, ee, V; ; ) { + if (v = a[a.length - 1], this.defaultActions[v] ? S = this.defaultActions[v] : ((b === null || typeof b > "u") && (b = Q()), S = $[v] && $[v][b]), typeof S > "u" || !S.length || !S[0]) { + var X = ""; V = []; - for (M in $[v]) - this.terminals_[M] && M > se && V.push("'" + this.terminals_[M] + "'"); - y.showPosition ? z = "Parse error on line " + (P + 1) + `: + for (U in $[v]) + this.terminals_[U] && U > ne && V.push("'" + this.terminals_[U] + "'"); + y.showPosition ? X = "Parse error on line " + (M + 1) + `: ` + y.showPosition() + ` -Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : z = "Parse error on line " + (P + 1) + ": Unexpected " + (b == Z ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(z, { +Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : X = "Parse error on line " + (M + 1) + ": Unexpected " + (b == K ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(X, { text: y.match, token: this.terminals_[b] || b, line: y.yylineno, - loc: W, + loc: z, expected: V }); } @@ -134,7 +128,7 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : z = " throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + b); switch (S[0]) { case 1: - o.push(b), p.push(y.yytext), r.push(y.yylloc), o.push(S[1]), b = null, Q = y.yyleng, u = y.yytext, P = y.yylineno, W = y.yylloc; + a.push(b), p.push(y.yytext), r.push(y.yylloc), a.push(S[1]), b = null, J = y.yyleng, u = y.yytext, M = y.yylineno, z = y.yylloc; break; case 2: if (x = this.productions_[S[1]][1], O.$ = p[p.length - x], O._$ = { @@ -142,20 +136,20 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : z = " 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 - }, oe && (O._$.range = [ + }, se && (O._$.range = [ r[r.length - (x || 1)].range[0], r[r.length - 1].range[1] - ]), X = this.performAction.apply(O, [ + ]), W = this.performAction.apply(O, [ u, - Q, - P, + J, + M, L.yy, S[1], p, r - ].concat(re)), typeof X < "u") - return X; - 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(O.$), r.push(O._$), te = $[o[o.length - 2]][o[o.length - 1]], o.push(te); + ].concat(ie)), typeof W < "u") + return W; + x && (a = a.slice(0, -1 * x * 2), p = p.slice(0, -1 * x), r = r.slice(0, -1 * x)), a.push(this.productions_[S[1]][0]), p.push(O.$), r.push(O._$), ee = $[a[a.length - 2]][a[a.length - 1]], a.push(ee); break; case 3: return !0; @@ -163,12 +157,12 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : z = " } return !0; }, "parse") - }, ie = /* @__PURE__ */ (function() { - var N = { + }, te = /* @__PURE__ */ (function() { + var D = { EOF: 1, - parseError: /* @__PURE__ */ l(function(i, o) { + parseError: /* @__PURE__ */ l(function(i, a) { if (this.yy.parser) - this.yy.parser.parseError(i, o); + this.yy.parser.parseError(i, a); else throw new Error(i); }, "parseError"), @@ -190,16 +184,16 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : z = " }, "input"), // unshifts one char (or a string) into the input unput: /* @__PURE__ */ l(function(s) { - var i = s.length, o = s.split(/(?:\r\n?|\n)/g); + var i = s.length, a = s.split(/(?:\r\n?|\n)/g); this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i; 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); + this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.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 - i + last_column: a ? (a.length === c.length ? this.yylloc.first_column : 0) + c[c.length - a.length].length - a[0].length : this.yylloc.first_column - i }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this; }, "unput"), // When called from action, caches matched text and appends it on next action @@ -241,7 +235,7 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : z = " }, "showPosition"), // test the lexed token: return FALSE when not a match, otherwise return token test_match: /* @__PURE__ */ l(function(s, i) { - var o, c, p; + var a, c, p; if (this.options.backtrack_lexer && (p = { yylineno: this.yylineno, yylloc: { @@ -266,8 +260,8 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : z = " 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, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o) - return o; + }, 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], a = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a) + return a; if (this._backtrack) { for (var r in p) this[r] = p[r]; @@ -280,12 +274,12 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : z = " if (this.done) return this.EOF; this._input || (this.done = !0); - var s, i, o, c; + var s, i, a, c; this._more || (this.yytext = "", this.match = ""); for (var p = this._currentRules(), r = 0; r < p.length; r++) - if (o = this._input.match(this.rules[p[r]]), o && (!i || o[0].length > i[0].length)) { - if (i = o, c = r, this.options.backtrack_lexer) { - if (s = this.test_match(o, p[r]), s !== !1) + if (a = this._input.match(this.rules[p[r]]), a && (!i || a[0].length > i[0].length)) { + if (i = a, c = r, this.options.backtrack_lexer) { + if (s = this.test_match(a, p[r]), s !== !1) return s; if (this._backtrack) { i = !1; @@ -333,10 +327,10 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : z = " return this.conditionStack.length; }, "stateStackSize"), options: { "case-insensitive": !0 }, - performAction: /* @__PURE__ */ l(function(i, o, c, p) { + performAction: /* @__PURE__ */ l(function(i, a, c, p) { switch (c) { case 0: - return i.getLogger().trace("Found comment", o.yytext), 6; + return i.getLogger().trace("Found comment", a.yytext), 6; case 1: return 8; case 2: @@ -393,7 +387,7 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : z = " i.getLogger().trace("Starting NSTR"), this.begin("NSTR"); break; case 25: - return i.getLogger().trace("description:", o.yytext), "NODE_DESCR"; + return i.getLogger().trace("description:", a.yytext), "NODE_DESCR"; case 26: this.popState(); break; @@ -402,7 +396,7 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : z = " case 28: return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND"; case 29: - return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND"; + return this.popState(), i.getLogger().trace("node end ...", a.yytext), "NODE_DEND"; case 30: return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND"; case 31: @@ -414,24 +408,24 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : z = " case 34: return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND"; case 35: - return i.getLogger().trace("Long description:", o.yytext), 20; + return i.getLogger().trace("Long description:", a.yytext), 20; case 36: - return i.getLogger().trace("Long description:", o.yytext), 20; + return i.getLogger().trace("Long description:", a.yytext), 20; } }, "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 N; + return D; })(); - j.lexer = ie; - function B() { + j.lexer = te; + function P() { this.yy = {}; } - return l(B, "Parser"), B.prototype = j, j.Parser = B, new B(); + return l(P, "Parser"), P.prototype = j, j.Parser = P, new P(); })(); -q.parser = q; -var Se = q, xe = 12, D = { +Y.parser = Y; +var be = Y, ke = 12, N = { DEFAULT: 0, NO_BORDER: 0, ROUNDED_RECT: 1, @@ -440,9 +434,9 @@ var Se = q, xe = 12, D = { CLOUD: 4, BANG: 5, HEXAGON: 6 -}, De = class { +}, Se = class { constructor() { - this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = D, 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); + 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 { l(this, "MindmapDB"); @@ -459,13 +453,13 @@ var Se = q, xe = 12, D = { getMindmap() { return this.nodes.length > 0 ? this.nodes[0] : null; } - addNode(e, n, g, a) { - I.info("addNode", e, n, g, a); + addNode(e, n, g, o) { + C.info("addNode", e, n, g, o); let t = !1; this.nodes.length === 0 ? (this.baseLevel = e, e = 0, t = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, t = !1); - const h = U(); + const h = B(); let f = h.mindmap?.padding ?? G.mindmap.padding; - switch (a) { + switch (o) { case this.nodeType.ROUNDED_RECT: case this.nodeType.RECT: case this.nodeType.HEXAGON: @@ -477,7 +471,7 @@ var Se = q, xe = 12, D = { nodeId: F(n, h), level: e, descr: F(g, h), - type: a, + type: o, children: [], width: h.mindmap?.maxNodeWidth ?? G.mindmap.maxNodeWidth, padding: f, @@ -493,7 +487,7 @@ var Se = q, xe = 12, D = { ); } getType(e, n) { - switch (I.debug("In get type", e, n), e) { + switch (C.debug("In get type", e, n), e) { case "[": return this.nodeType.RECT; case "(": @@ -519,7 +513,7 @@ var Se = q, xe = 12, D = { decorateNode(e) { if (!e) return; - const n = U(), g = this.nodes[this.nodes.length - 1]; + const n = B(), g = this.nodes[this.nodes.length - 1]; e.icon && (g.icon = F(e.icon, n)), e.class && (g.class = F(e.class, n)); } type2Str(e) { @@ -550,9 +544,9 @@ var Se = q, xe = 12, D = { */ assignSections(e, n) { if (e.level === 0 ? e.section = void 0 : e.section = n, e.children) - for (const [g, a] of e.children.entries()) { - const t = e.level === 0 ? g % (xe - 1) : n; - this.assignSections(a, t); + for (const [g, o] of e.children.entries()) { + const t = e.level === 0 ? g % (ke - 1) : n; + this.assignSections(o, t); } } /** @@ -561,26 +555,26 @@ var Se = q, xe = 12, D = { * @param processedNodes - Array to collect processed nodes */ flattenNodes(e, n) { - const g = U(), 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); - const t = a.join(" "), h = /* @__PURE__ */ l((m) => { + const g = B(), o = ["mindmap-node"]; + e.isRoot === !0 ? o.push("section-root", "section--1") : e.section !== void 0 && o.push(`section-${e.section}`), e.class && o.push(e.class); + const t = o.join(" "), h = /* @__PURE__ */ l((m) => { const T = (g.theme?.toLowerCase() ?? "").includes("redux"); switch (m) { - case D.CIRCLE: + case N.CIRCLE: return "mindmapCircle"; - case D.RECT: + case N.RECT: return "rect"; - case D.ROUNDED_RECT: + case N.ROUNDED_RECT: return "rounded"; - case D.CLOUD: + case N.CLOUD: return "cloud"; - case D.BANG: + case N.BANG: return "bang"; - case D.HEXAGON: + case N.HEXAGON: return "hexagon"; - case D.DEFAULT: + case N.DEFAULT: return T ? "rounded" : "defaultMindmapNode"; - case D.NO_BORDER: + case N.NO_BORDER: default: return "rect"; } @@ -618,16 +612,16 @@ var Se = q, xe = 12, D = { generateEdges(e, n) { if (!e.children) return; - const g = U(); - for (const a of e.children) { + const g = B(); + for (const o of e.children) { let t = "edge"; - a.section !== void 0 && (t += ` section-edge-${a.section}`); + o.section !== void 0 && (t += ` section-edge-${o.section}`); const h = e.level + 1; t += ` edge-depth-${h}`; const f = { - id: `edge_${e.id}_${a.id}`, + id: `edge_${e.id}_${o.id}`, start: e.id.toString(), - end: a.id.toString(), + end: o.id.toString(), type: "normal", curve: "basis", thickness: "normal", @@ -635,9 +629,9 @@ var Se = q, xe = 12, D = { classes: t, // Store mindmap-specific data depth: e.level, - section: a.section + section: o.section }; - n.push(f), this.generateEdges(a, n); + n.push(f), this.generateEdges(o, n); } } /** @@ -646,16 +640,16 @@ var Se = q, xe = 12, D = { * @returns Structured data containing nodes, edges, and config */ getData() { - const e = this.getMindmap(), n = U(), a = ue().layout !== void 0, t = n; - if (a || (t.layout = "cose-bilkent"), !e) + const e = this.getMindmap(), n = B(), o = de().layout !== void 0, t = n; + if (o || (t.layout = "cose-bilkent"), !e) return { nodes: [], edges: [], config: t }; - I.debug("getData: mindmapRoot", e, n), this.assignSections(e); + C.debug("getData: mindmapRoot", e, n), this.assignSections(e); const h = [], f = []; - this.flattenNodes(e, h), this.generateEdges(e, f), I.debug( + this.flattenNodes(e, h), this.generateEdges(e, f), C.debug( `getData: processed ${h.length} nodes and ${f.length} edges` ); const m = /* @__PURE__ */ new Map(); @@ -685,45 +679,45 @@ var Se = q, xe = 12, D = { shapes: Object.fromEntries(m), // Additional properties that layout algorithms might expect type: "mindmap", - diagramId: "mindmap-" + ke() + diagramId: "mindmap-" + Ee() }; } // Expose logger to grammar getLogger() { - return I; + return C; } -}, Ne = /* @__PURE__ */ l(async (e, n, g, a) => { - I.debug(`Rendering mindmap diagram +}, xe = /* @__PURE__ */ l(async (e, n, g, o) => { + C.debug(`Rendering mindmap diagram ` + e); - const t = a.db, h = t.getData(), f = ce(n, h.config.securityLevel); - if (h.type = a.type, h.layoutAlgorithm = he(h.config.layout, { + const t = o.db, h = t.getData(), f = ae(n, h.config.securityLevel); + if (h.type = o.type, h.layoutAlgorithm = ce(h.config.layout, { fallback: "cose-bilkent" }), h.diagramId = n, !t.getMindmap()) return; h.nodes.forEach((d) => { d.shape === "rounded" ? (d.radius = 15, d.taper = 15, d.stroke = "none", d.width = 0, d.padding = 15) : d.shape === "circle" ? d.padding = 10 : d.shape === "rect" ? (d.width = 0, d.padding = 10) : d.shape === "hexagon" && (d.width = 0, d.height = 0); - }), await de(h, f); - const { themeVariables: _ } = ge(), { useGradient: T, gradientStart: C, gradientStop: w } = _; - if (T && C && w) { + }), await le(h, f); + const { themeVariables: _ } = he(), { useGradient: T, gradientStart: I, gradientStop: w } = _; + if (T && I && w) { const d = f.attr("id"), R = f.append("defs").append("linearGradient").attr("id", `${d}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%"); - R.append("stop").attr("offset", "0%").attr("stop-color", C).attr("stop-opacity", 1), R.append("stop").attr("offset", "100%").attr("stop-color", w).attr("stop-opacity", 1); + R.append("stop").attr("offset", "0%").attr("stop-color", I).attr("stop-opacity", 1), R.append("stop").attr("offset", "100%").attr("stop-color", w).attr("stop-opacity", 1); } - le( + oe( f, h.config.mindmap?.padding ?? G.mindmap.padding, "mindmapDiagram", h.config.mindmap?.useMaxWidth ?? G.mindmap.useMaxWidth ); -}, "draw"), Le = { - draw: Ne -}, ve = /* @__PURE__ */ l((e) => { +}, "draw"), Ne = { + draw: xe +}, De = /* @__PURE__ */ l((e) => { const { theme: n, look: g } = e; - let a = ""; + let o = ""; for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) - e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], pe(e["lineColor" + t]) ? e["lineColor" + t] = fe(e["lineColor" + t], 20) : e["lineColor" + t] = me(e["lineColor" + t], 20); + e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], ge(e["lineColor" + t]) ? e["lineColor" + t] = ue(e["lineColor" + t], 20) : e["lineColor" + t] = pe(e["lineColor" + t], 20); for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) { const h = "" + (g === "neo" ? Math.max(10 - (t - 1) * 2, 2) : 17 - 3 * t); - a += ` + o += ` .section-${t - 1} rect, .section-${t - 1} path, .section-${t - 1} circle, .section-${t - 1} polygon, .section-${t - 1} path { fill: ${e["cScale" + t]}; } @@ -767,11 +761,11 @@ var Se = q, xe = 12, D = { } `; } - return a; -}, "genSections"), Te = /* @__PURE__ */ l((e, n, g) => { - let a = ""; + return o; +}, "genSections"), Le = /* @__PURE__ */ l((e, n, g) => { + let o = ""; for (let t = 0; t < e; t++) - a += ` + o += ` [data-look="neo"].mindmap-node.section-${t - 1} rect, [data-look="neo"].mindmap-node.section-${t - 1} path, [data-look="neo"].mindmap-node.section-${t - 1} circle, [data-look="neo"].mindmap-node.section-${t - 1} polygon { stroke: url(${n}-gradient); fill: ${g}; @@ -779,14 +773,14 @@ var Se = q, xe = 12, D = { .section-${t - 1} line { stroke-width: 0; }`; - return a; -}, "genGradient"), Oe = /* @__PURE__ */ l((e) => { - const { theme: n } = e, g = e.svgId, a = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${g}-drop-shadow)`) : "none"; + return o; +}, "genGradient"), ve = /* @__PURE__ */ l((e) => { + const { theme: n } = e, g = e.svgId, o = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${g}-drop-shadow)`) : "none"; return ` .edge { stroke-width: 3; } - ${ve(e)} + ${De(e)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${e.git0}; } @@ -813,7 +807,7 @@ var Se = q, xe = 12, D = { text-align: center; } [data-look="neo"].mindmap-node { - filter: ${a}; + filter: ${o}; } [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: ${n?.includes("redux") ? e.mainBkg : e.git0}; @@ -821,16 +815,16 @@ var Se = q, xe = 12, D = { [data-look="neo"].mindmap-node.section-root .text-inner-tspan { fill: ${n?.includes("redux") ? e.nodeBorder : e["cScaleLabel" + (n === "neutral" ? 1 : 0)]}; } - ${e.useGradient && g && e.mainBkg ? Te(e.THEME_COLOR_LIMIT, g, e.mainBkg) : ""} + ${e.useGradient && g && e.mainBkg ? Le(e.THEME_COLOR_LIMIT, g, e.mainBkg) : ""} `; -}, "getStyles"), Ie = Oe, Ae = { +}, "getStyles"), Te = ve, we = { get db() { - return new De(); + return new Se(); }, - renderer: Le, - parser: Se, - styles: Ie + renderer: Ne, + parser: be, + styles: Te }; export { - Ae as diagram + we as diagram }; diff --git a/src/wc-content-kit/public/mermaid/packet-4T2RLAQJ-CT04dID4.js b/src/wc-content-kit/public/mermaid/packet-4T2RLAQJ-CT04dID4.js deleted file mode 100644 index c3f65b8..0000000 --- a/src/wc-content-kit/public/mermaid/packet-4T2RLAQJ-CT04dID4.js +++ /dev/null @@ -1,6 +0,0 @@ -import { a as r } from "./mermaid-parser.core-DQ6c91Zg.js"; -import { P as t } from "./mermaid-parser.core-DQ6c91Zg.js"; -export { - t as PacketModule, - r as createPacketServices -}; diff --git a/src/wc-content-kit/public/mermaid/pie-ZZUOXDRM-D01fyR4D.js b/src/wc-content-kit/public/mermaid/pie-ZZUOXDRM-D01fyR4D.js deleted file mode 100644 index 1c7265a..0000000 --- a/src/wc-content-kit/public/mermaid/pie-ZZUOXDRM-D01fyR4D.js +++ /dev/null @@ -1,6 +0,0 @@ -import { b as r } from "./mermaid-parser.core-DQ6c91Zg.js"; -import { d as t } from "./mermaid-parser.core-DQ6c91Zg.js"; -export { - t as PieModule, - r as createPieServices -}; diff --git a/src/wc-content-kit/public/mermaid/pieDiagram-DEJITSTG-DxhD0E2d.js b/src/wc-content-kit/public/mermaid/pieDiagram-4H26LBE5-Cdd8Rm_R.js similarity index 64% rename from src/wc-content-kit/public/mermaid/pieDiagram-DEJITSTG-DxhD0E2d.js rename to src/wc-content-kit/public/mermaid/pieDiagram-4H26LBE5-Cdd8Rm_R.js index 875c9ed..ea3467a 100644 --- a/src/wc-content-kit/public/mermaid/pieDiagram-DEJITSTG-DxhD0E2d.js +++ b/src/wc-content-kit/public/mermaid/pieDiagram-4H26LBE5-Cdd8Rm_R.js @@ -1,7 +1,7 @@ -import { a4 as S, a7 as R, aE as K, g as Q, s as Y, a as tt, b as et, q as at, p as nt, _ as d, l as z, c as rt, F as it, I as st, N as ot, e as lt, z as ct, G as ut } from "./mermaid.core-Jw3znkh4.js"; -import { p as dt } from "./chunk-4BX2VUAB-OP5xfQzz.js"; -import { p as pt } from "./mermaid-parser.core-DQ6c91Zg.js"; -import { d as P } from "./arc-P0Wtuqay.js"; +import { F as S, bd as R, g as K, a1 as Q, b0 as Y, a2 as tt, b1 as et, a5 as at, b3 as nt, b as d, aD as F, a4 as rt, s as it, a$ as st, aM as ot, E as lt, t as ct, S as ut } from "./mermaid.core-FRDjOodn.js"; +import { p as dt } from "./chunk-4BX2VUAB-CLXd73Dk.js"; +import { p as pt } from "./wardley-L42UT6IY-C-B6soca.js"; +import { d as I } from "./arc-DoJBinwv.js"; import { o as gt } from "./ordinal-DfAQgscy.js"; function ft(t, a) { return a < t ? -1 : a > t ? 1 : a >= t ? 0 : NaN; @@ -12,13 +12,13 @@ function ht(t) { function mt() { var t = ht, a = ft, f = null, y = S(0), s = S(R), p = S(0); function o(e) { - var r, l = (e = K(e)).length, g, h, v = 0, c = new Array(l), i = new Array(l), x = +y.apply(this, arguments), w = Math.min(R, Math.max(-R, s.apply(this, arguments) - x)), m, D = Math.min(Math.abs(w) / l, p.apply(this, arguments)), $ = D * (w < 0 ? -1 : 1), u; + var r, l = (e = K(e)).length, g, h, v = 0, c = new Array(l), i = new Array(l), x = +y.apply(this, arguments), w = Math.min(R, Math.max(-R, s.apply(this, arguments) - x)), m, C = Math.min(Math.abs(w) / l, p.apply(this, arguments)), $ = C * (w < 0 ? -1 : 1), u; for (r = 0; r < l; ++r) (u = i[c[r] = r] = +t(e[r], r, e)) > 0 && (v += u); - for (a != null ? c.sort(function(A, C) { - return a(i[A], i[C]); - }) : f != null && c.sort(function(A, C) { - return f(e[A], e[C]); + for (a != null ? c.sort(function(A, D) { + return a(i[A], i[D]); + }) : f != null && c.sort(function(A, D) { + return f(e[A], e[D]); }), r = 0, h = v ? (w - l * $) / v : 0; r < l; ++r, x = m) g = c[r], u = i[g], m = x + (u > 0 ? u * h : 0) + $, i[g] = { data: e[g], @@ -26,7 +26,7 @@ function mt() { value: u, startAngle: x, endAngle: m, - padAngle: D + padAngle: C }; return i; } @@ -44,20 +44,20 @@ function mt() { return arguments.length ? (p = typeof e == "function" ? e : S(+e), o) : p; }, o; } -var vt = ut.pie, F = { +var vt = ut.pie, W = { sections: /* @__PURE__ */ new Map(), showData: !1 -}, T = F.sections, W = F.showData, xt = structuredClone(vt), St = /* @__PURE__ */ d(() => structuredClone(xt), "getConfig"), yt = /* @__PURE__ */ d(() => { - T = /* @__PURE__ */ new Map(), W = F.showData, ct(); +}, T = W.sections, z = W.showData, xt = structuredClone(vt), St = /* @__PURE__ */ d(() => structuredClone(xt), "getConfig"), yt = /* @__PURE__ */ d(() => { + T = /* @__PURE__ */ new Map(), z = W.showData, ct(); }, "clear"), wt = /* @__PURE__ */ d(({ 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.` ); - T.has(t) || (T.set(t, a), z.debug(`added new section: ${t}, with value: ${a}`)); -}, "addSection"), At = /* @__PURE__ */ d(() => T, "getSections"), Ct = /* @__PURE__ */ d((t) => { - W = t; -}, "setShowData"), Dt = /* @__PURE__ */ d(() => W, "getShowData"), _ = { + T.has(t) || (T.set(t, a), F.debug(`added new section: ${t}, with value: ${a}`)); +}, "addSection"), At = /* @__PURE__ */ d(() => T, "getSections"), Dt = /* @__PURE__ */ d((t) => { + z = t; +}, "setShowData"), Ct = /* @__PURE__ */ d(() => z, "getShowData"), _ = { getConfig: St, clear: yt, setDiagramTitle: nt, @@ -68,16 +68,16 @@ var vt = ut.pie, F = { getAccDescription: Q, addSection: wt, getSections: At, - setShowData: Ct, - getShowData: Dt + setShowData: Dt, + getShowData: Ct }, $t = /* @__PURE__ */ d((t, a) => { dt(t, a), a.setShowData(t.showData), t.sections.map(a.addSection); }, "populateDb"), Tt = { parse: /* @__PURE__ */ d(async (t) => { const a = await pt("pie", t); - z.debug(a), $t(a, _); + F.debug(a), $t(a, _); }, "parse") -}, Et = /* @__PURE__ */ d((t) => ` +}, bt = /* @__PURE__ */ d((t) => ` .pieCircle{ stroke: ${t.pieStrokeColor}; stroke-width : ${t.pieStrokeWidth}; @@ -105,20 +105,20 @@ var vt = ut.pie, F = { font-family: ${t.fontFamily}; font-size: ${t.pieLegendTextSize}; } -`, "getStyles"), bt = Et, kt = /* @__PURE__ */ d((t) => { +`, "getStyles"), Et = bt, Mt = /* @__PURE__ */ d((t) => { const a = [...t.values()].reduce((s, p) => s + p, 0), f = [...t.entries()].map(([s, p]) => ({ label: s, value: p })).filter((s) => s.value / a * 100 >= 1); return mt().value((s) => s.value).sort(null)(f); -}, "createPieArcs"), Mt = /* @__PURE__ */ d((t, a, f, y) => { - z.debug(`rendering pie chart +}, "createPieArcs"), kt = /* @__PURE__ */ d((t, a, f, y) => { + F.debug(`rendering pie chart ` + t); const s = y.db, p = rt(), o = it(s.getConfig(), p.pie), e = 40, r = 18, l = 4, g = 450, h = g, v = st(a), c = v.append("g"); c.attr("transform", "translate(" + h / 2 + "," + g / 2 + ")"); const { themeVariables: i } = p; let [x] = ot(i.pieOuterStrokeWidth); x ??= 2; - const w = o.textPosition, m = Math.min(h, g) / 2 - e, D = P().innerRadius(0).outerRadius(m), $ = P().innerRadius(m * w).outerRadius(m * w); + const w = o.textPosition, m = Math.min(h, g) / 2 - e, C = I().innerRadius(0).outerRadius(m), $ = I().innerRadius(m * w).outerRadius(m * w); c.append("circle").attr("cx", 0).attr("cy", 0).attr("r", m + x / 2).attr("class", "pieOuterCircle"); - const u = s.getSections(), A = kt(u), C = [ + const u = s.getSections(), A = Mt(u), D = [ i.pie1, i.pie2, i.pie3, @@ -132,31 +132,31 @@ var vt = ut.pie, F = { i.pie11, i.pie12 ]; - let E = 0; + let b = 0; u.forEach((n) => { - E += n; + b += n; }); - const G = A.filter((n) => (n.data.value / E * 100).toFixed(0) !== "0"), b = gt(C).domain([ + const G = A.filter((n) => (n.data.value / b * 100).toFixed(0) !== "0"), E = gt(D).domain([ ...u.keys() ]); - c.selectAll("mySlices").data(G).enter().append("path").attr("d", D).attr("fill", (n) => b(n.data.label)).attr("class", "pieCircle"), c.selectAll("mySlices").data(G).enter().append("text").text((n) => (n.data.value / E * 100).toFixed(0) + "%").attr("transform", (n) => "translate(" + $.centroid(n) + ")").style("text-anchor", "middle").attr("class", "slice"); - const V = c.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText"), N = [...u.entries()].map(([n, M]) => ({ + c.selectAll("mySlices").data(G).enter().append("path").attr("d", C).attr("fill", (n) => E(n.data.label)).attr("class", "pieCircle"), c.selectAll("mySlices").data(G).enter().append("text").text((n) => (n.data.value / b * 100).toFixed(0) + "%").attr("transform", (n) => "translate(" + $.centroid(n) + ")").style("text-anchor", "middle").attr("class", "slice"); + const V = c.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText"), L = [...u.entries()].map(([n, k]) => ({ label: n, - value: M - })), k = c.selectAll(".legend").data(N).enter().append("g").attr("class", "legend").attr("transform", (n, M) => { - const O = r + l, Z = O * N.length / 2, H = 12 * r, J = M * O - Z; + value: k + })), M = c.selectAll(".legend").data(L).enter().append("g").attr("class", "legend").attr("transform", (n, k) => { + const P = r + l, q = P * L.length / 2, H = 12 * r, J = k * P - q; return "translate(" + H + "," + J + ")"; }); - k.append("rect").attr("width", r).attr("height", r).style("fill", (n) => b(n.label)).style("stroke", (n) => b(n.label)), k.append("text").attr("x", r + l).attr("y", r - l).text((n) => s.getShowData() ? `${n.label} [${n.value}]` : n.label); + M.append("rect").attr("width", r).attr("height", r).style("fill", (n) => E(n.label)).style("stroke", (n) => E(n.label)), M.append("text").attr("x", r + l).attr("y", r - l).text((n) => s.getShowData() ? `${n.label} [${n.value}]` : n.label); const U = Math.max( - ...k.selectAll("text").nodes().map((n) => n?.getBoundingClientRect().width ?? 0) - ), j = h + e + r + l + U, L = V.node()?.getBoundingClientRect().width ?? 0, q = h / 2 - L / 2, X = h / 2 + L / 2, B = Math.min(0, q), I = Math.max(j, X) - B; - v.attr("viewBox", `${B} 0 ${I} ${g}`), lt(v, g, I, o.useMaxWidth); -}, "draw"), Rt = { draw: Mt }, Bt = { + ...M.selectAll("text").nodes().map((n) => n?.getBoundingClientRect().width ?? 0) + ), j = h + e + r + l + U, N = V.node()?.getBoundingClientRect().width ?? 0, X = h / 2 - N / 2, Z = h / 2 + N / 2, B = Math.min(0, X), O = Math.max(j, Z) - B; + v.attr("viewBox", `${B} 0 ${O} ${g}`), lt(v, g, O, o.useMaxWidth); +}, "draw"), Rt = { draw: kt }, Bt = { parser: Tt, db: _, renderer: Rt, - styles: bt + styles: Et }; export { Bt as diagram diff --git a/src/wc-content-kit/public/mermaid/quadrantDiagram-34T5L4WZ-DyibwQsA.js b/src/wc-content-kit/public/mermaid/quadrantDiagram-W4KKPZXB-Clr-y7GI.js similarity index 72% rename from src/wc-content-kit/public/mermaid/quadrantDiagram-34T5L4WZ-DyibwQsA.js rename to src/wc-content-kit/public/mermaid/quadrantDiagram-W4KKPZXB-Clr-y7GI.js index e37acab..952e933 100644 --- a/src/wc-content-kit/public/mermaid/quadrantDiagram-34T5L4WZ-DyibwQsA.js +++ b/src/wc-content-kit/public/mermaid/quadrantDiagram-W4KKPZXB-Clr-y7GI.js @@ -1,16 +1,16 @@ -import { s as be, g as Se, q as te, p as _e, a as Ae, b as ke, _ as r, c as Et, l as qt, d as vt, e as Fe, z as Pe, G as D, i as ve, K as Ce } from "./mermaid.core-Jw3znkh4.js"; -import { l as $t } from "./linear-CnlusoK8.js"; +import { b0 as Se, a1 as _e, a5 as ee, b3 as Ae, a2 as ke, b1 as Fe, b as r, a4 as Et, aD as qt, a_ as vt, E as Pe, t as ve, S as z, aZ as Ce, ae as Le } from "./mermaid.core-FRDjOodn.js"; +import { l as te } from "./linear-Covz6sHd.js"; var Ct = (function() { - var t = /* @__PURE__ */ r(function(M, s, l, u) { - for (l = l || {}, u = M.length; u--; l[M[u]] = s) ; + var t = /* @__PURE__ */ r(function(Y, s, l, u) { + for (l = l || {}, u = Y.length; u--; l[Y[u]] = s) ; 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, 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, 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], S = [2, 36], m = [1, 37], b = [1, 36], y = [1, 38], T = [1, 35], q = [1, 43], g = [1, 41], rt = [1, 14], ct = [1, 23], dt = [1, 18], ut = [1, 19], xt = [1, 20], ot = [1, 21], bt = [1, 22], lt = [1, 24], i = [1, 25], Dt = [1, 26], zt = [1, 27], Vt = [1, 28], It = [1, 29], W = [1, 32], U = [1, 33], k = [1, 34], F = [1, 39], P = [1, 40], v = [1, 42], C = [1, 44], O = [1, 62], H = [1, 61], L = [4, 5, 8, 10, 12, 13, 14, 18, 44, 47, 49, 55, 56, 57, 63, 64, 65, 66, 67], wt = [1, 65], Bt = [1, 66], Rt = [1, 67], Nt = [1, 68], Wt = [1, 69], Ut = [1, 70], Qt = [1, 71], Ot = [1, 72], Ht = [1, 73], Xt = [1, 74], Mt = [1, 75], Yt = [1, 76], I = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], G = [1, 90], K = [1, 91], Z = [1, 92], J = [1, 99], $ = [1, 93], tt = [1, 96], et = [1, 94], it = [1, 95], at = [1, 97], nt = [1, 98], St = [1, 102], jt = [10, 55, 56, 57], R = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57], _t = { + }, "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], S = [2, 36], m = [1, 37], b = [1, 36], y = [1, 38], T = [1, 35], q = [1, 43], g = [1, 41], k = [1, 45], ct = [1, 14], dt = [1, 23], ut = [1, 18], xt = [1, 19], ot = [1, 20], bt = [1, 21], lt = [1, 22], i = [1, 24], Dt = [1, 25], zt = [1, 26], Vt = [1, 27], It = [1, 28], wt = [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], Bt = [1, 66], Rt = [1, 67], Nt = [1, 68], Wt = [1, 69], Ut = [1, 70], Qt = [1, 71], Ot = [1, 72], Ht = [1, 73], Xt = [1, 74], Mt = [1, 75], Yt = [1, 76], jt = [1, 77], w = [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], st = [1, 99], St = [1, 103], Gt = [10, 55, 56, 57], N = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57], _t = { trace: /* @__PURE__ */ r(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], [59, 1], [59, 1], [59, 1]], + 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: /* @__PURE__ */ r(function(s, l, u, d, A, e, ht) { var n = e.length - 1; switch (A) { @@ -110,7 +110,7 @@ var Ct = (function() { 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, S, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 18: rt, 25: ct, 35: dt, 37: ut, 39: xt, 41: ot, 42: bt, 48: lt, 50: i, 51: Dt, 52: zt, 53: Vt, 54: It, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(_, [2, 34]), { 27: 45, 55: f, 56: o, 57: x }, t(c, [2, 37]), t(c, S, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 46, 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 18: rt, 25: ct, 35: dt, 37: ut, 39: xt, 41: ot, 42: bt, 48: lt, 50: i, 51: Dt, 52: zt, 53: Vt, 54: It, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(c, [2, 39]), t(c, [2, 40]), t(c, [2, 41]), { 36: [1, 47] }, { 38: [1, 48] }, { 40: [1, 49] }, t(c, [2, 45]), t(c, [2, 46]), { 18: [1, 50] }, { 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 43: 51, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 43: 52, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 43: 53, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 43: 54, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 43: 55, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 43: 56, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: m, 5: b, 8: O, 10: y, 12: T, 13: q, 14: g, 18: H, 44: [1, 57], 47: [1, 58], 58: 60, 59: 59, 63: k, 64: F, 65: P, 66: v, 67: C }, t(L, [2, 64]), t(L, [2, 66]), t(L, [2, 67]), t(L, [2, 70]), t(L, [2, 71]), t(L, [2, 72]), t(L, [2, 73]), t(L, [2, 74]), t(L, [2, 75]), t(L, [2, 76]), t(L, [2, 77]), t(L, [2, 78]), t(L, [2, 79]), t(L, [2, 80]), t(_, [2, 35]), t(c, [2, 38]), t(c, [2, 42]), t(c, [2, 43]), t(c, [2, 44]), { 3: 64, 4: wt, 5: Bt, 6: Rt, 7: Nt, 8: Wt, 9: Ut, 10: Qt, 11: Ot, 12: Ht, 13: Xt, 14: Mt, 15: Yt, 21: 63 }, t(c, [2, 53], { 59: 59, 58: 60, 4: m, 5: b, 8: O, 10: y, 12: T, 13: q, 14: g, 18: H, 49: [1, 77], 63: k, 64: F, 65: P, 66: v, 67: C }), t(c, [2, 56], { 59: 59, 58: 60, 4: m, 5: b, 8: O, 10: y, 12: T, 13: q, 14: g, 18: H, 49: [1, 78], 63: k, 64: F, 65: P, 66: v, 67: C }), t(c, [2, 57], { 59: 59, 58: 60, 4: m, 5: b, 8: O, 10: y, 12: T, 13: q, 14: g, 18: H, 63: k, 64: F, 65: P, 66: v, 67: C }), t(c, [2, 58], { 59: 59, 58: 60, 4: m, 5: b, 8: O, 10: y, 12: T, 13: q, 14: g, 18: H, 63: k, 64: F, 65: P, 66: v, 67: C }), t(c, [2, 59], { 59: 59, 58: 60, 4: m, 5: b, 8: O, 10: y, 12: T, 13: q, 14: g, 18: H, 63: k, 64: F, 65: P, 66: v, 67: C }), t(c, [2, 60], { 59: 59, 58: 60, 4: m, 5: b, 8: O, 10: y, 12: T, 13: q, 14: g, 18: H, 63: k, 64: F, 65: P, 66: v, 67: C }), { 45: [1, 79] }, { 44: [1, 80] }, t(L, [2, 65]), t(L, [2, 81]), t(L, [2, 82]), t(L, [2, 83]), { 3: 82, 4: wt, 5: Bt, 6: Rt, 7: Nt, 8: Wt, 9: Ut, 10: Qt, 11: Ot, 12: Ht, 13: Xt, 14: Mt, 15: Yt, 18: [1, 81] }, t(I, [2, 23]), t(I, [2, 1]), t(I, [2, 2]), t(I, [2, 3]), t(I, [2, 4]), t(I, [2, 5]), t(I, [2, 6]), t(I, [2, 7]), t(I, [2, 8]), t(I, [2, 9]), t(I, [2, 10]), t(I, [2, 11]), t(I, [2, 12]), t(c, [2, 52], { 58: 31, 43: 83, 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(c, [2, 55], { 58: 31, 43: 84, 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), { 46: [1, 85] }, { 45: [1, 86] }, { 4: G, 5: K, 6: Z, 8: J, 11: $, 13: tt, 16: 89, 17: et, 18: it, 19: at, 20: nt, 22: 88, 23: 87 }, t(I, [2, 24]), t(c, [2, 51], { 59: 59, 58: 60, 4: m, 5: b, 8: O, 10: y, 12: T, 13: q, 14: g, 18: H, 63: k, 64: F, 65: P, 66: v, 67: C }), t(c, [2, 54], { 59: 59, 58: 60, 4: m, 5: b, 8: O, 10: y, 12: T, 13: q, 14: g, 18: H, 63: k, 64: F, 65: P, 66: v, 67: C }), t(c, [2, 47], { 22: 88, 16: 89, 23: 100, 4: G, 5: K, 6: Z, 8: J, 11: $, 13: tt, 17: et, 18: it, 19: at, 20: nt }), { 46: [1, 101] }, t(c, [2, 29], { 10: St }), t(jt, [2, 27], { 16: 103, 4: G, 5: K, 6: Z, 8: J, 11: $, 13: tt, 17: et, 18: it, 19: at, 20: nt }), t(R, [2, 25]), t(R, [2, 13]), t(R, [2, 14]), t(R, [2, 15]), t(R, [2, 16]), t(R, [2, 17]), t(R, [2, 18]), t(R, [2, 19]), t(R, [2, 20]), t(R, [2, 21]), t(R, [2, 22]), t(c, [2, 49], { 10: St }), t(c, [2, 48], { 22: 88, 16: 89, 23: 104, 4: G, 5: K, 6: Z, 8: J, 11: $, 13: tt, 17: et, 18: it, 19: at, 20: nt }), { 4: G, 5: K, 6: Z, 8: J, 11: $, 13: tt, 16: 89, 17: et, 18: it, 19: at, 20: nt, 22: 105 }, t(R, [2, 26]), t(c, [2, 50], { 10: St }), t(jt, [2, 28], { 16: 103, 4: G, 5: K, 6: Z, 8: J, 11: $, 13: tt, 17: et, 18: it, 19: at, 20: nt })], + 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, S, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 15: k, 18: ct, 25: dt, 35: ut, 37: xt, 39: ot, 41: bt, 42: lt, 48: i, 50: Dt, 51: zt, 52: Vt, 53: It, 54: wt, 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, S, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 47, 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 15: k, 18: ct, 25: dt, 35: ut, 37: xt, 39: ot, 41: bt, 42: lt, 48: i, 50: Dt, 51: zt, 52: Vt, 53: It, 54: wt, 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: b, 10: y, 12: T, 13: q, 14: g, 15: k, 43: 52, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 15: k, 43: 53, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 15: k, 43: 54, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 15: k, 43: 55, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 15: k, 43: 56, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 15: k, 43: 57, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: m, 5: b, 8: H, 10: y, 12: T, 13: q, 14: g, 15: k, 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: Bt, 5: Rt, 6: Nt, 7: Wt, 8: Ut, 9: Qt, 10: Ot, 11: Ht, 12: Xt, 13: Mt, 14: Yt, 15: jt, 21: 64 }, t(c, [2, 53], { 59: 60, 58: 61, 4: m, 5: b, 8: H, 10: y, 12: T, 13: q, 14: g, 15: k, 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: b, 8: H, 10: y, 12: T, 13: q, 14: g, 15: k, 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: b, 8: H, 10: y, 12: T, 13: q, 14: g, 15: k, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(c, [2, 58], { 59: 60, 58: 61, 4: m, 5: b, 8: H, 10: y, 12: T, 13: q, 14: g, 15: k, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(c, [2, 59], { 59: 60, 58: 61, 4: m, 5: b, 8: H, 10: y, 12: T, 13: q, 14: g, 15: k, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(c, [2, 60], { 59: 60, 58: 61, 4: m, 5: b, 8: H, 10: y, 12: T, 13: q, 14: g, 15: k, 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: Bt, 5: Rt, 6: Nt, 7: Wt, 8: Ut, 9: Qt, 10: Ot, 11: Ht, 12: Xt, 13: Mt, 14: Yt, 15: jt, 18: [1, 82] }, t(w, [2, 23]), t(w, [2, 1]), t(w, [2, 2]), t(w, [2, 3]), t(w, [2, 4]), t(w, [2, 5]), t(w, [2, 6]), t(w, [2, 7]), t(w, [2, 8]), t(w, [2, 9]), t(w, [2, 10]), t(w, [2, 11]), t(w, [2, 12]), t(c, [2, 52], { 58: 31, 43: 84, 4: m, 5: b, 10: y, 12: T, 13: q, 14: g, 15: k, 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: b, 10: y, 12: T, 13: q, 14: g, 15: k, 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: st, 22: 89, 23: 88 }, t(w, [2, 24]), t(c, [2, 51], { 59: 60, 58: 61, 4: m, 5: b, 8: H, 10: y, 12: T, 13: q, 14: g, 15: k, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(c, [2, 54], { 59: 60, 58: 61, 4: m, 5: b, 8: H, 10: y, 12: T, 13: q, 14: g, 15: k, 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: st }), { 46: [1, 102] }, t(c, [2, 29], { 10: St }), t(Gt, [2, 27], { 16: 104, 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 17: it, 18: at, 19: nt, 20: st }), 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: St }), 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: st }), { 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 16: 90, 17: it, 18: at, 19: nt, 20: st, 22: 106 }, t(N, [2, 26]), t(c, [2, 50], { 10: St }), t(Gt, [2, 28], { 16: 104, 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 17: it, 18: at, 19: nt, 20: st })], defaultActions: { 8: [2, 30], 9: [2, 31] }, parseError: /* @__PURE__ */ r(function(s, l) { if (l.recoverable) @@ -121,65 +121,65 @@ var Ct = (function() { } }, "parseError"), parse: /* @__PURE__ */ r(function(s) { - var l = this, u = [0], d = [], A = [null], e = [], ht = this.table, n = "", gt = 0, Gt = 0, ye = 2, Kt = 1, Te = e.slice.call(arguments, 1), E = Object.create(this.lexer), Y = { yy: {} }; + var l = this, u = [0], d = [], A = [null], e = [], ht = this.table, n = "", gt = 0, Kt = 0, Te = 2, Zt = 1, qe = e.slice.call(arguments, 1), D = Object.create(this.lexer), j = { yy: {} }; for (var At in this.yy) - Object.prototype.hasOwnProperty.call(this.yy, At) && (Y.yy[At] = this.yy[At]); - E.setInput(s, Y.yy), Y.yy.lexer = E, Y.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {}); - var kt = E.yylloc; + Object.prototype.hasOwnProperty.call(this.yy, At) && (j.yy[At] = this.yy[At]); + D.setInput(s, j.yy), j.yy.lexer = D, j.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {}); + var kt = D.yylloc; e.push(kt); - var qe = E.options && E.options.ranges; - typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; - function me(B) { - u.length = u.length - 2 * B, A.length = A.length - B, e.length = e.length - B; + var me = D.options && D.options.ranges; + typeof j.yy.parseError == "function" ? this.parseError = j.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; + function be(R) { + u.length = u.length - 2 * R, A.length = A.length - R, e.length = e.length - R; } - r(me, "popStack"); - function Zt() { - var B; - return B = d.pop() || E.lex() || Kt, typeof B != "number" && (B instanceof Array && (d = B, B = d.pop()), B = l.symbols_[B] || B), B; + r(be, "popStack"); + function Jt() { + var R; + return R = d.pop() || D.lex() || Zt, typeof R != "number" && (R instanceof Array && (d = R, R = d.pop()), R = l.symbols_[R] || R), R; } - r(Zt, "lex"); - for (var w, j, N, Ft, st = {}, pt, X, Jt, yt; ; ) { - if (j = u[u.length - 1], this.defaultActions[j] ? N = this.defaultActions[j] : ((w === null || typeof w > "u") && (w = Zt()), N = ht[j] && ht[j][w]), typeof N > "u" || !N.length || !N[0]) { + r(Jt, "lex"); + for (var B, G, W, Ft, rt = {}, pt, M, $t, yt; ; ) { + if (G = u[u.length - 1], this.defaultActions[G] ? W = this.defaultActions[G] : ((B === null || typeof B > "u") && (B = Jt()), W = ht[G] && ht[G][B]), typeof W > "u" || !W.length || !W[0]) { var Pt = ""; yt = []; - for (pt in ht[j]) - this.terminals_[pt] && pt > ye && yt.push("'" + this.terminals_[pt] + "'"); - E.showPosition ? Pt = "Parse error on line " + (gt + 1) + `: -` + E.showPosition() + ` -Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Pt = "Parse error on line " + (gt + 1) + ": Unexpected " + (w == Kt ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Pt, { - text: E.match, - token: this.terminals_[w] || w, - line: E.yylineno, + for (pt in ht[G]) + this.terminals_[pt] && pt > Te && yt.push("'" + this.terminals_[pt] + "'"); + D.showPosition ? Pt = "Parse error on line " + (gt + 1) + `: +` + D.showPosition() + ` +Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Pt = "Parse error on line " + (gt + 1) + ": Unexpected " + (B == Zt ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Pt, { + text: D.match, + token: this.terminals_[B] || B, + line: D.yylineno, loc: kt, expected: yt }); } - if (N[0] instanceof Array && N.length > 1) - throw new Error("Parse Error: multiple actions possible at state: " + j + ", token: " + w); - switch (N[0]) { + if (W[0] instanceof Array && W.length > 1) + throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " + B); + switch (W[0]) { case 1: - u.push(w), A.push(E.yytext), e.push(E.yylloc), u.push(N[1]), w = null, Gt = E.yyleng, n = E.yytext, gt = E.yylineno, kt = E.yylloc; + u.push(B), A.push(D.yytext), e.push(D.yylloc), u.push(W[1]), B = null, Kt = D.yyleng, n = D.yytext, gt = D.yylineno, kt = D.yylloc; break; case 2: - if (X = this.productions_[N[1]][1], st.$ = A[A.length - X], st._$ = { - first_line: e[e.length - (X || 1)].first_line, + if (M = this.productions_[W[1]][1], rt.$ = A[A.length - M], rt._$ = { + first_line: e[e.length - (M || 1)].first_line, last_line: e[e.length - 1].last_line, - first_column: e[e.length - (X || 1)].first_column, + first_column: e[e.length - (M || 1)].first_column, last_column: e[e.length - 1].last_column - }, qe && (st._$.range = [ - e[e.length - (X || 1)].range[0], + }, me && (rt._$.range = [ + e[e.length - (M || 1)].range[0], e[e.length - 1].range[1] - ]), Ft = this.performAction.apply(st, [ + ]), Ft = this.performAction.apply(rt, [ n, - Gt, + Kt, gt, - Y.yy, - N[1], + j.yy, + W[1], A, e - ].concat(Te)), typeof Ft < "u") + ].concat(qe)), typeof Ft < "u") return Ft; - X && (u = u.slice(0, -1 * X * 2), A = A.slice(0, -1 * X), e = e.slice(0, -1 * X)), u.push(this.productions_[N[1]][0]), A.push(st.$), e.push(st._$), Jt = ht[u[u.length - 2]][u[u.length - 1]], u.push(Jt); + M && (u = u.slice(0, -1 * M * 2), A = A.slice(0, -1 * M), e = e.slice(0, -1 * M)), u.push(this.productions_[W[1]][0]), A.push(rt.$), e.push(rt._$), $t = ht[u[u.length - 2]][u[u.length - 1]], u.push($t); break; case 3: return !0; @@ -187,8 +187,8 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Pt = } return !0; }, "parse") - }, pe = /* @__PURE__ */ (function() { - var M = { + }, ye = /* @__PURE__ */ (function() { + var Y = { EOF: 1, parseError: /* @__PURE__ */ r(function(l, u) { if (this.yy.parser) @@ -441,52 +441,54 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Pt = case 35: return 4; case 36: - return 11; + return 15; case 37: - return 64; + return 11; case 38: - return 10; + return 64; case 39: - return 65; + return 10; case 40: return 65; case 41: - return 14; + return 65; case 42: - return 13; + return 14; case 43: - return 67; + return 13; case 44: - return 66; + return 67; case 45: - return 12; + return 66; case 46: - return 8; + return 12; case 47: - return 5; + return 8; case 48: - return 18; + return 5; case 49: - return 56; + return 18; case 50: - return 63; + 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, /^(?::)/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], inclusive: !0 } } + 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 M; + return Y; })(); - _t.lexer = pe; + _t.lexer = ye; function ft() { this.yy = {}; } return r(ft, "Parser"), ft.prototype = _t, _t.Parser = ft, new ft(); })(); Ct.parser = Ct; -var Le = Ct, V = Ce(), Ee = class { +var Ee = Ct, I = Le(), De = class { constructor() { this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(); } @@ -512,43 +514,43 @@ var Le = Ct, V = Ce(), Ee = class { 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 + chartHeight: z.quadrantChart?.chartWidth || 500, + chartWidth: z.quadrantChart?.chartHeight || 500, + titlePadding: z.quadrantChart?.titlePadding || 10, + titleFontSize: z.quadrantChart?.titleFontSize || 20, + quadrantPadding: z.quadrantChart?.quadrantPadding || 5, + xAxisLabelPadding: z.quadrantChart?.xAxisLabelPadding || 5, + yAxisLabelPadding: z.quadrantChart?.yAxisLabelPadding || 5, + xAxisLabelFontSize: z.quadrantChart?.xAxisLabelFontSize || 16, + yAxisLabelFontSize: z.quadrantChart?.yAxisLabelFontSize || 16, + quadrantLabelFontSize: z.quadrantChart?.quadrantLabelFontSize || 16, + quadrantTextTopPadding: z.quadrantChart?.quadrantTextTopPadding || 5, + pointTextPadding: z.quadrantChart?.pointTextPadding || 5, + pointLabelFontSize: z.quadrantChart?.pointLabelFontSize || 12, + pointRadius: z.quadrantChart?.pointRadius || 5, + xAxisPosition: z.quadrantChart?.xAxisPosition || "top", + yAxisPosition: z.quadrantChart?.yAxisPosition || "left", + quadrantInternalBorderStrokeWidth: z.quadrantChart?.quadrantInternalBorderStrokeWidth || 1, + quadrantExternalBorderStrokeWidth: z.quadrantChart?.quadrantExternalBorderStrokeWidth || 2 }; } getDefaultThemeConfig() { return { - quadrant1Fill: V.quadrant1Fill, - quadrant2Fill: V.quadrant2Fill, - quadrant3Fill: V.quadrant3Fill, - quadrant4Fill: V.quadrant4Fill, - quadrant1TextFill: V.quadrant1TextFill, - quadrant2TextFill: V.quadrant2TextFill, - quadrant3TextFill: V.quadrant3TextFill, - quadrant4TextFill: V.quadrant4TextFill, - quadrantPointFill: V.quadrantPointFill, - quadrantPointTextFill: V.quadrantPointTextFill, - quadrantXAxisTextFill: V.quadrantXAxisTextFill, - quadrantYAxisTextFill: V.quadrantYAxisTextFill, - quadrantTitleFill: V.quadrantTitleFill, - quadrantInternalBorderStrokeFill: V.quadrantInternalBorderStrokeFill, - quadrantExternalBorderStrokeFill: V.quadrantExternalBorderStrokeFill + quadrant1Fill: I.quadrant1Fill, + quadrant2Fill: I.quadrant2Fill, + quadrant3Fill: I.quadrant3Fill, + quadrant4Fill: I.quadrant4Fill, + quadrant1TextFill: I.quadrant1TextFill, + quadrant2TextFill: I.quadrant2TextFill, + quadrant3TextFill: I.quadrant3TextFill, + quadrant4TextFill: I.quadrant4TextFill, + quadrantPointFill: I.quadrantPointFill, + quadrantPointTextFill: I.quadrantPointTextFill, + quadrantXAxisTextFill: I.quadrantXAxisTextFill, + quadrantYAxisTextFill: I.quadrantYAxisTextFill, + quadrantTitleFill: I.quadrantTitleFill, + quadrantInternalBorderStrokeFill: I.quadrantInternalBorderStrokeFill, + quadrantExternalBorderStrokeFill: I.quadrantExternalBorderStrokeFill }; } clear() { @@ -716,7 +718,7 @@ var Le = Ct, V = Ce(), Ee = class { return _; } getQuadrantPoints(t) { - const { quadrantSpace: a } = t, { quadrantHeight: p, quadrantLeft: f, quadrantTop: o, quadrantWidth: x } = a, _ = $t().domain([0, 1]).range([f, x + f]), h = $t().domain([0, 1]).range([p + o, o]); + const { quadrantSpace: a } = t, { quadrantHeight: p, quadrantLeft: f, quadrantTop: o, quadrantWidth: x } = a, _ = te().domain([0, 1]).range([f, x + f]), h = te().domain([0, 1]).range([p + o, o]); return this.data.points.map((S) => { const m = this.classes.get(S.className); return m && (S = { ...m, ...S }), { @@ -840,58 +842,58 @@ function Lt(t) { return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t); } r(Lt, "validateHexCode"); -function ee(t) { +function ie(t) { return !/^\d+$/.test(t); } -r(ee, "validateNumber"); -function ie(t) { +r(ie, "validateNumber"); +function ae(t) { return !/^\d+px$/.test(t); } -r(ie, "validateSizeInPixels"); -var De = Et(); -function Q(t) { - return ve(t.trim(), De); +r(ae, "validateSizeInPixels"); +var ze = Et(); +function O(t) { + return Ce(t.trim(), ze); } -r(Q, "textSanitizer"); -var z = new Ee(); -function ae(t) { - z.setData({ quadrant1Text: Q(t.text) }); -} -r(ae, "setQuadrant1Text"); +r(O, "textSanitizer"); +var V = new De(); function ne(t) { - z.setData({ quadrant2Text: Q(t.text) }); + V.setData({ quadrant1Text: O(t.text) }); } -r(ne, "setQuadrant2Text"); +r(ne, "setQuadrant1Text"); function se(t) { - z.setData({ quadrant3Text: Q(t.text) }); + V.setData({ quadrant2Text: O(t.text) }); } -r(se, "setQuadrant3Text"); +r(se, "setQuadrant2Text"); function re(t) { - z.setData({ quadrant4Text: Q(t.text) }); + V.setData({ quadrant3Text: O(t.text) }); } -r(re, "setQuadrant4Text"); +r(re, "setQuadrant3Text"); function oe(t) { - z.setData({ xAxisLeftText: Q(t.text) }); + V.setData({ quadrant4Text: O(t.text) }); } -r(oe, "setXAxisLeftText"); +r(oe, "setQuadrant4Text"); function le(t) { - z.setData({ xAxisRightText: Q(t.text) }); + V.setData({ xAxisLeftText: O(t.text) }); } -r(le, "setXAxisRightText"); +r(le, "setXAxisLeftText"); function he(t) { - z.setData({ yAxisTopText: Q(t.text) }); + V.setData({ xAxisRightText: O(t.text) }); } -r(he, "setYAxisTopText"); +r(he, "setXAxisRightText"); function ce(t) { - z.setData({ yAxisBottomText: Q(t.text) }); + V.setData({ yAxisTopText: O(t.text) }); +} +r(ce, "setYAxisTopText"); +function de(t) { + V.setData({ yAxisBottomText: O(t.text) }); } -r(ce, "setYAxisBottomText"); +r(de, "setYAxisBottomText"); function mt(t) { const a = {}; for (const p of t) { const [f, o] = p.trim().split(/\s*:\s*/); if (f === "radius") { - if (ee(o)) + if (ie(o)) throw new Tt(f, o, "number"); a.radius = parseInt(o); } else if (f === "color") { @@ -903,7 +905,7 @@ function mt(t) { throw new Tt(f, o, "hex code"); a.strokeColor = o; } else if (f === "stroke-width") { - if (ie(o)) + if (ae(o)) throw new Tt(f, o, "number of pixels (eg. 10px)"); a.strokeWidth = o; } else @@ -912,34 +914,34 @@ function mt(t) { return a; } r(mt, "parseStyles"); -function de(t, a, p, f, o) { +function ue(t, a, p, f, o) { const x = mt(o); - z.addPoints([ + V.addPoints([ { x: p, y: f, - text: Q(t.text), + text: O(t.text), className: a, ...x } ]); } -r(de, "addPoint"); -function ue(t, a) { - z.addClass(t, mt(a)); +r(ue, "addPoint"); +function xe(t, a) { + V.addClass(t, mt(a)); } -r(ue, "addClass"); -function xe(t) { - z.setConfig({ chartWidth: t }); -} -r(xe, "setWidth"); +r(xe, "addClass"); function fe(t) { - z.setConfig({ chartHeight: t }); + V.setConfig({ chartWidth: t }); +} +r(fe, "setWidth"); +function ge(t) { + V.setConfig({ chartHeight: t }); } -r(fe, "setHeight"); -function ge() { +r(ge, "setHeight"); +function pe() { const t = Et(), { themeVariables: a, quadrantChart: p } = t; - return p && z.setConfig(p), z.setThemeConfig({ + return p && V.setConfig(p), V.setThemeConfig({ quadrant1Fill: a.quadrant1Fill, quadrant2Fill: a.quadrant2Fill, quadrant3Fill: a.quadrant3Fill, @@ -955,34 +957,34 @@ function ge() { quadrantExternalBorderStrokeFill: a.quadrantExternalBorderStrokeFill, quadrantInternalBorderStrokeFill: a.quadrantInternalBorderStrokeFill, quadrantTitleFill: a.quadrantTitleFill - }), z.setData({ titleText: te() }), z.build(); + }), V.setData({ titleText: ee() }), V.build(); } -r(ge, "getQuadrantData"); -var ze = /* @__PURE__ */ r(function() { - z.clear(), Pe(); -}, "clear"), Ve = { - setWidth: xe, - setHeight: fe, - setQuadrant1Text: ae, - setQuadrant2Text: ne, - setQuadrant3Text: se, - setQuadrant4Text: re, - setXAxisLeftText: oe, - setXAxisRightText: le, - setYAxisTopText: he, - setYAxisBottomText: ce, +r(pe, "getQuadrantData"); +var Ve = /* @__PURE__ */ r(function() { + V.clear(), ve(); +}, "clear"), Ie = { + setWidth: fe, + setHeight: ge, + setQuadrant1Text: ne, + setQuadrant2Text: se, + setQuadrant3Text: re, + setQuadrant4Text: oe, + setXAxisLeftText: le, + setXAxisRightText: he, + setYAxisTopText: ce, + setYAxisBottomText: de, parseStyles: mt, - addPoint: de, - addClass: ue, - getQuadrantData: ge, - clear: ze, - setAccTitle: ke, - getAccTitle: Ae, - setDiagramTitle: _e, - getDiagramTitle: te, - getAccDescription: Se, - setAccDescription: be -}, Ie = /* @__PURE__ */ r((t, a, p, f) => { + addPoint: ue, + addClass: xe, + getQuadrantData: pe, + clear: Ve, + setAccTitle: Fe, + getAccTitle: ke, + setDiagramTitle: Ae, + getDiagramTitle: ee, + getAccDescription: _e, + setAccDescription: Se +}, we = /* @__PURE__ */ r((t, a, p, f) => { function o(i) { return i === "top" ? "hanging" : "middle"; } @@ -1002,10 +1004,10 @@ var ze = /* @__PURE__ */ r(function() { let S; c === "sandbox" && (S = vt("#i" + a)); const b = (c === "sandbox" ? vt(S.nodes()[0].contentDocument.body) : vt("body")).select(`[id="${a}"]`), y = b.append("g").attr("class", "main"), T = h.quadrantChart?.chartWidth ?? 500, q = h.quadrantChart?.chartHeight ?? 500; - Fe(b, q, T, h.quadrantChart?.useMaxWidth ?? !0), b.attr("viewBox", "0 0 " + T + " " + q), f.db.setHeight(q), f.db.setWidth(T); - const g = f.db.getQuadrantData(), rt = y.append("g").attr("class", "quadrants"), ct = y.append("g").attr("class", "border"), dt = y.append("g").attr("class", "data-points"), ut = y.append("g").attr("class", "labels"), xt = y.append("g").attr("class", "title"); + Pe(b, q, T, h.quadrantChart?.useMaxWidth ?? !0), b.attr("viewBox", "0 0 " + T + " " + q), f.db.setHeight(q), f.db.setWidth(T); + const g = f.db.getQuadrantData(), k = y.append("g").attr("class", "quadrants"), ct = y.append("g").attr("class", "border"), dt = y.append("g").attr("class", "data-points"), ut = y.append("g").attr("class", "labels"), xt = y.append("g").attr("class", "title"); g.title && xt.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 && ct.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); - const ot = rt.selectAll("g.quadrant").data(g.quadrants).enter().append("g").attr("class", "quadrant"); + const ot = k.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) @@ -1015,14 +1017,14 @@ var ze = /* @__PURE__ */ r(function() { "dominant-baseline", (i) => o(i.text.horizontalPos) ).attr("text-anchor", (i) => x(i.text.verticalPos)).attr("transform", (i) => _(i.text)); -}, "draw"), we = { - draw: Ie -}, Ne = { - parser: Le, - db: Ve, - renderer: we, +}, "draw"), Be = { + draw: we +}, We = { + parser: Ee, + db: Ie, + renderer: Be, styles: /* @__PURE__ */ r(() => "", "styles") }; export { - Ne as diagram + We as diagram }; diff --git a/src/wc-content-kit/public/mermaid/radar-PYXPWWZC-cZtFSkue.js b/src/wc-content-kit/public/mermaid/radar-PYXPWWZC-cZtFSkue.js deleted file mode 100644 index 37d7b35..0000000 --- a/src/wc-content-kit/public/mermaid/radar-PYXPWWZC-cZtFSkue.js +++ /dev/null @@ -1,6 +0,0 @@ -import { h as a } from "./mermaid-parser.core-DQ6c91Zg.js"; -import { R as t } from "./mermaid-parser.core-DQ6c91Zg.js"; -export { - t as RadarModule, - a as createRadarServices -}; diff --git a/src/wc-content-kit/public/mermaid/requirementDiagram-MS252O5E-B1k1nzXp.js b/src/wc-content-kit/public/mermaid/requirementDiagram-4Y6WPE33-BdVa3C2S.js similarity index 97% rename from src/wc-content-kit/public/mermaid/requirementDiagram-MS252O5E-B1k1nzXp.js rename to src/wc-content-kit/public/mermaid/requirementDiagram-4Y6WPE33-BdVa3C2S.js index c8dd469..64a89f3 100644 --- a/src/wc-content-kit/public/mermaid/requirementDiagram-MS252O5E-B1k1nzXp.js +++ b/src/wc-content-kit/public/mermaid/requirementDiagram-4Y6WPE33-BdVa3C2S.js @@ -1,6 +1,6 @@ -import { g as ze } from "./chunk-55IACEB6-DuOOmvV2.js"; -import { s as Ge } from "./chunk-EDXVE4YY-j9tcUx_w.js"; -import { _ as h, D as Ye, b as Xe, a as Je, s as Ze, g as et, p as tt, q as st, c as Te, l as Ne, z as it, C as rt, o as nt, r as at, u as lt } from "./mermaid.core-Jw3znkh4.js"; +import { g as Ge } from "./chunk-55IACEB6-Q791aHQa.js"; +import { s as ze } from "./chunk-2J33WTMH-HCULbuMq.js"; +import { b as h, a3 as Ye, b1 as Xe, a2 as Je, b0 as Ze, a1 as et, b3 as tt, a5 as st, a4 as Te, aD as Ne, t as it, _ as rt, aa as nt, aV as at, bk as lt } from "./mermaid.core-FRDjOodn.js"; var qe = (function() { var e = /* @__PURE__ */ h(function($, r, a, c) { for (a = a || {}, c = $.length; c--; a[$[c]] = r) ; @@ -175,14 +175,14 @@ var qe = (function() { } }, "parseError"), parse: /* @__PURE__ */ h(function(r) { - var a = this, c = [0], s = [], m = [null], t = [], me = this.table, l = "", Re = 0, Fe = 0, He = 2, $e = 1, Ke = t.slice.call(arguments, 1), y = Object.create(this.lexer), z = { yy: {} }; + var a = this, c = [0], s = [], m = [null], t = [], me = this.table, l = "", Re = 0, Fe = 0, He = 2, $e = 1, Ke = t.slice.call(arguments, 1), y = Object.create(this.lexer), G = { yy: {} }; for (var Se in this.yy) - Object.prototype.hasOwnProperty.call(this.yy, Se) && (z.yy[Se] = this.yy[Se]); - y.setInput(r, z.yy), z.yy.lexer = y, z.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {}); + Object.prototype.hasOwnProperty.call(this.yy, Se) && (G.yy[Se] = this.yy[Se]); + y.setInput(r, G.yy), G.yy.lexer = y, G.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {}); var be = y.yylloc; t.push(be); var We = y.options && y.options.ranges; - typeof z.yy.parseError == "function" ? this.parseError = z.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; + typeof G.yy.parseError == "function" ? this.parseError = G.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; function je(I) { c.length = c.length - 2 * I, m.length = m.length - I, t.length = t.length - I; } @@ -192,11 +192,11 @@ var qe = (function() { return I = s.pop() || y.lex() || $e, typeof I != "number" && (I instanceof Array && (s = I, I = s.pop()), I = a.symbols_[I] || I), I; } h(Pe, "lex"); - for (var b, G, N, Ie, J = {}, ge, F, Ue, ye; ; ) { - if (G = c[c.length - 1], this.defaultActions[G] ? N = this.defaultActions[G] : ((b === null || typeof b > "u") && (b = Pe()), N = me[G] && me[G][b]), typeof N > "u" || !N.length || !N[0]) { + for (var b, z, N, Ie, J = {}, ge, F, Ue, ye; ; ) { + if (z = c[c.length - 1], this.defaultActions[z] ? N = this.defaultActions[z] : ((b === null || typeof b > "u") && (b = Pe()), N = me[z] && me[z][b]), typeof N > "u" || !N.length || !N[0]) { var ke = ""; ye = []; - for (ge in me[G]) + for (ge in me[z]) this.terminals_[ge] && ge > He && ye.push("'" + this.terminals_[ge] + "'"); y.showPosition ? ke = "Parse error on line " + (Re + 1) + `: ` + y.showPosition() + ` @@ -209,7 +209,7 @@ Expecting ` + ye.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : ke = }); } if (N[0] instanceof Array && N.length > 1) - throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " + b); + throw new Error("Parse Error: multiple actions possible at state: " + z + ", token: " + b); switch (N[0]) { case 1: c.push(b), m.push(y.yytext), t.push(y.yylloc), c.push(N[1]), b = null, Fe = y.yyleng, l = y.yytext, Re = y.yylineno, be = y.yylloc; @@ -227,7 +227,7 @@ Expecting ` + ye.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : ke = l, Fe, Re, - z.yy, + G.yy, N[1], m, t @@ -863,7 +863,7 @@ rt(Be, { }); var mt = /* @__PURE__ */ h(async function(e, u, o, n) { Ne.info("REF0:"), Ne.info("Drawing requirement diagram (unified)", u); - const { securityLevel: i, state: f, layout: _, look: E } = Te(), g = n.db.getData(), S = ze(u, i); + const { securityLevel: i, state: f, layout: _, look: E } = Te(), g = n.db.getData(), S = Ge(u, i); g.type = n.type, g.layoutAlgorithm = nt(_), g.nodeSpacing = f?.nodeSpacing ?? 50, g.rankSpacing = f?.rankSpacing ?? 50, g.markers = E === "neo" ? ["requirement_contains_neo", "requirement_arrow_neo"] : ["requirement_contains", "requirement_arrow"], g.diagramId = u, await at(g, S); const k = 8; lt.insertTitle( @@ -871,7 +871,7 @@ var mt = /* @__PURE__ */ h(async function(e, u, o, n) { "requirementDiagramTitleText", f?.titleTopMargin ?? 25, n.db.getDiagramTitle() - ), Ge(S, k, "requirementDiagram", f?.useMaxWidth ?? !0); + ), ze(S, k, "requirementDiagram", f?.useMaxWidth ?? !0); }, "draw"), Rt = { parser: ct, get db() { diff --git a/src/wc-content-kit/public/mermaid/sankeyDiagram-5OEKKPKP--bYa-o5n.js b/src/wc-content-kit/public/mermaid/sankeyDiagram-5OEKKPKP--bYa-o5n.js new file mode 100644 index 0000000..2156024 --- /dev/null +++ b/src/wc-content-kit/public/mermaid/sankeyDiagram-5OEKKPKP--bYa-o5n.js @@ -0,0 +1,859 @@ +import { b3 as kt, a5 as mt, b0 as xt, a1 as _t, b1 as vt, a2 as bt, b as y, a4 as ot, Q as St, a_ as G, b6 as wt, t as Lt, z as Et } from "./mermaid.core-FRDjOodn.js"; +import { o as At } from "./ordinal-DfAQgscy.js"; +function Tt(t) { + for (var i = t.length / 6 | 0, s = new Array(i), l = 0; l < i; ) s[l] = "#" + t.slice(l * 6, ++l * 6); + return s; +} +const Mt = Tt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"); +function at(t, i) { + let s; + if (i === void 0) + for (const l of t) + l != null && (s < l || s === void 0 && l >= l) && (s = l); + else { + let l = -1; + for (let u of t) + (u = i(u, ++l, t)) != null && (s < u || s === void 0 && u >= u) && (s = u); + } + return s; +} +function dt(t, i) { + let s; + if (i === void 0) + for (const l of t) + l != null && (s > l || s === void 0 && l >= l) && (s = l); + else { + let l = -1; + for (let u of t) + (u = i(u, ++l, t)) != null && (s > u || s === void 0 && u >= u) && (s = u); + } + return s; +} +function J(t, i) { + let s = 0; + if (i === void 0) + for (let l of t) + (l = +l) && (s += l); + else { + let l = -1; + for (let u of t) + (u = +i(u, ++l, t)) && (s += u); + } + return s; +} +function Nt(t) { + return t.target.depth; +} +function Ct(t) { + return t.depth; +} +function Pt(t, i) { + return i - 1 - t.height; +} +function gt(t, i) { + return t.sourceLinks.length ? t.depth : i - 1; +} +function It(t) { + return t.targetLinks.length ? t.depth : t.sourceLinks.length ? dt(t.sourceLinks, Nt) - 1 : 0; +} +function Y(t) { + return function() { + return t; + }; +} +function lt(t, i) { + return H(t.source, i.source) || t.index - i.index; +} +function ct(t, i) { + return H(t.target, i.target) || t.index - i.index; +} +function H(t, i) { + return t.y0 - i.y0; +} +function tt(t) { + return t.value; +} +function Ot(t) { + return t.index; +} +function $t(t) { + return t.nodes; +} +function zt(t) { + return t.links; +} +function ut(t, i) { + const s = t.get(i); + if (!s) throw new Error("missing: " + i); + return s; +} +function ht({ nodes: t }) { + for (const i of t) { + let s = i.y0, l = s; + for (const u of i.sourceLinks) + u.y0 = s + u.width / 2, s += u.width; + for (const u of i.targetLinks) + u.y1 = l + u.width / 2, l += u.width; + } +} +function Dt() { + let t = 0, i = 0, s = 1, l = 1, u = 24, x = 8, g, k = Ot, o = gt, a, h, m = $t, _ = zt, d = 6; + function v() { + const n = { nodes: m.apply(null, arguments), links: _.apply(null, arguments) }; + return T(n), A(n), M(n), I(n), S(n), ht(n), n; + } + v.update = function(n) { + return ht(n), n; + }, v.nodeId = function(n) { + return arguments.length ? (k = typeof n == "function" ? n : Y(n), v) : k; + }, v.nodeAlign = function(n) { + return arguments.length ? (o = typeof n == "function" ? n : Y(n), v) : o; + }, v.nodeSort = function(n) { + return arguments.length ? (a = n, v) : a; + }, v.nodeWidth = function(n) { + return arguments.length ? (u = +n, v) : u; + }, v.nodePadding = function(n) { + return arguments.length ? (x = g = +n, v) : x; + }, v.nodes = function(n) { + return arguments.length ? (m = typeof n == "function" ? n : Y(n), v) : m; + }, v.links = function(n) { + return arguments.length ? (_ = typeof n == "function" ? n : Y(n), v) : _; + }, v.linkSort = function(n) { + return arguments.length ? (h = n, v) : h; + }, v.size = function(n) { + return arguments.length ? (t = i = 0, s = +n[0], l = +n[1], v) : [s - t, l - i]; + }, v.extent = function(n) { + return arguments.length ? (t = +n[0][0], s = +n[1][0], i = +n[0][1], l = +n[1][1], v) : [[t, i], [s, l]]; + }, v.iterations = function(n) { + return arguments.length ? (d = +n, v) : d; + }; + function T({ nodes: n, links: f }) { + for (const [e, r] of n.entries()) + r.index = e, r.sourceLinks = [], r.targetLinks = []; + const c = new Map(n.map((e, r) => [k(e, r, n), e])); + for (const [e, r] of f.entries()) { + r.index = e; + let { source: p, target: b } = r; + typeof p != "object" && (p = r.source = ut(c, p)), typeof b != "object" && (b = r.target = ut(c, b)), p.sourceLinks.push(r), b.targetLinks.push(r); + } + if (h != null) + for (const { sourceLinks: e, targetLinks: r } of n) + e.sort(h), r.sort(h); + } + function A({ nodes: n }) { + for (const f of n) + f.value = f.fixedValue === void 0 ? Math.max(J(f.sourceLinks, tt), J(f.targetLinks, tt)) : f.fixedValue; + } + function M({ nodes: n }) { + const f = n.length; + let c = new Set(n), e = /* @__PURE__ */ new Set(), r = 0; + for (; c.size; ) { + for (const p of c) { + p.depth = r; + for (const { target: b } of p.sourceLinks) + e.add(b); + } + if (++r > f) throw new Error("circular link"); + c = e, e = /* @__PURE__ */ new Set(); + } + } + function I({ nodes: n }) { + const f = n.length; + let c = new Set(n), e = /* @__PURE__ */ new Set(), r = 0; + for (; c.size; ) { + for (const p of c) { + p.height = r; + for (const { source: b } of p.targetLinks) + e.add(b); + } + if (++r > f) throw new Error("circular link"); + c = e, e = /* @__PURE__ */ new Set(); + } + } + function N({ nodes: n }) { + const f = at(n, (r) => r.depth) + 1, c = (s - t - u) / (f - 1), e = new Array(f); + for (const r of n) { + const p = Math.max(0, Math.min(f - 1, Math.floor(o.call(null, r, f)))); + r.layer = p, r.x0 = t + p * c, r.x1 = r.x0 + u, e[p] ? e[p].push(r) : e[p] = [r]; + } + if (a) for (const r of e) + r.sort(a); + return e; + } + function $(n) { + const f = dt(n, (c) => (l - i - (c.length - 1) * g) / J(c, tt)); + for (const c of n) { + let e = i; + for (const r of c) { + r.y0 = e, r.y1 = e + r.value * f, e = r.y1 + g; + for (const p of r.sourceLinks) + p.width = p.value * f; + } + e = (l - e + g) / (c.length + 1); + for (let r = 0; r < c.length; ++r) { + const p = c[r]; + p.y0 += e * (r + 1), p.y1 += e * (r + 1); + } + w(c); + } + } + function S(n) { + const f = N(n); + g = Math.min(x, (l - i) / (at(f, (c) => c.length) - 1)), $(f); + for (let c = 0; c < d; ++c) { + const e = Math.pow(0.99, c), r = Math.max(1 - e, (c + 1) / d); + F(f, e, r), C(f, e, r); + } + } + function C(n, f, c) { + for (let e = 1, r = n.length; e < r; ++e) { + const p = n[e]; + for (const b of p) { + let L = 0, j = 0; + for (const { source: W, value: Z } of b.targetLinks) { + let U = Z * (b.layer - W.layer); + L += P(W, b) * U, j += U; + } + if (!(j > 0)) continue; + let V = (L / j - b.y0) * f; + b.y0 += V, b.y1 += V, D(b); + } + a === void 0 && p.sort(H), z(p, c); + } + } + function F(n, f, c) { + for (let e = n.length, r = e - 2; r >= 0; --r) { + const p = n[r]; + for (const b of p) { + let L = 0, j = 0; + for (const { target: W, value: Z } of b.sourceLinks) { + let U = Z * (W.layer - b.layer); + L += E(b, W) * U, j += U; + } + if (!(j > 0)) continue; + let V = (L / j - b.y0) * f; + b.y0 += V, b.y1 += V, D(b); + } + a === void 0 && p.sort(H), z(p, c); + } + } + function z(n, f) { + const c = n.length >> 1, e = n[c]; + O(n, e.y0 - g, c - 1, f), R(n, e.y1 + g, c + 1, f), O(n, l, n.length - 1, f), R(n, i, 0, f); + } + function R(n, f, c, e) { + for (; c < n.length; ++c) { + const r = n[c], p = (f - r.y0) * e; + p > 1e-6 && (r.y0 += p, r.y1 += p), f = r.y1 + g; + } + } + function O(n, f, c, e) { + for (; c >= 0; --c) { + const r = n[c], p = (r.y1 - f) * e; + p > 1e-6 && (r.y0 -= p, r.y1 -= p), f = r.y0 - g; + } + } + function D({ sourceLinks: n, targetLinks: f }) { + if (h === void 0) { + for (const { source: { sourceLinks: c } } of f) + c.sort(ct); + for (const { target: { targetLinks: c } } of n) + c.sort(lt); + } + } + function w(n) { + if (h === void 0) + for (const { sourceLinks: f, targetLinks: c } of n) + f.sort(ct), c.sort(lt); + } + function P(n, f) { + let c = n.y0 - (n.sourceLinks.length - 1) * g / 2; + for (const { target: e, width: r } of n.sourceLinks) { + if (e === f) break; + c += r + g; + } + for (const { source: e, width: r } of f.targetLinks) { + if (e === n) break; + c -= r; + } + return c; + } + function E(n, f) { + let c = f.y0 - (f.targetLinks.length - 1) * g / 2; + for (const { source: e, width: r } of f.targetLinks) { + if (e === n) break; + c += r + g; + } + for (const { target: e, width: r } of n.sourceLinks) { + if (e === f) break; + c -= r; + } + return c; + } + return v; +} +var et = Math.PI, nt = 2 * et, B = 1e-6, jt = nt - B; +function it() { + this._x0 = this._y0 = // start of current subpath + this._x1 = this._y1 = null, this._ = ""; +} +function pt() { + return new it(); +} +it.prototype = pt.prototype = { + constructor: it, + moveTo: function(t, i) { + this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +i); + }, + closePath: function() { + this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z"); + }, + lineTo: function(t, i) { + this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +i); + }, + quadraticCurveTo: function(t, i, s, l) { + this._ += "Q" + +t + "," + +i + "," + (this._x1 = +s) + "," + (this._y1 = +l); + }, + bezierCurveTo: function(t, i, s, l, u, x) { + this._ += "C" + +t + "," + +i + "," + +s + "," + +l + "," + (this._x1 = +u) + "," + (this._y1 = +x); + }, + arcTo: function(t, i, s, l, u) { + t = +t, i = +i, s = +s, l = +l, u = +u; + var x = this._x1, g = this._y1, k = s - t, o = l - i, a = x - t, h = g - i, m = a * a + h * h; + if (u < 0) throw new Error("negative radius: " + u); + if (this._x1 === null) + this._ += "M" + (this._x1 = t) + "," + (this._y1 = i); + else if (m > B) if (!(Math.abs(h * k - o * a) > B) || !u) + this._ += "L" + (this._x1 = t) + "," + (this._y1 = i); + else { + var _ = s - x, d = l - g, v = k * k + o * o, T = _ * _ + d * d, A = Math.sqrt(v), M = Math.sqrt(m), I = u * Math.tan((et - Math.acos((v + m - T) / (2 * A * M))) / 2), N = I / M, $ = I / A; + Math.abs(N - 1) > B && (this._ += "L" + (t + N * a) + "," + (i + N * h)), this._ += "A" + u + "," + u + ",0,0," + +(h * _ > a * d) + "," + (this._x1 = t + $ * k) + "," + (this._y1 = i + $ * o); + } + }, + arc: function(t, i, s, l, u, x) { + t = +t, i = +i, s = +s, x = !!x; + var g = s * Math.cos(l), k = s * Math.sin(l), o = t + g, a = i + k, h = 1 ^ x, m = x ? l - u : u - l; + if (s < 0) throw new Error("negative radius: " + s); + this._x1 === null ? this._ += "M" + o + "," + a : (Math.abs(this._x1 - o) > B || Math.abs(this._y1 - a) > B) && (this._ += "L" + o + "," + a), s && (m < 0 && (m = m % nt + nt), m > jt ? this._ += "A" + s + "," + s + ",0,1," + h + "," + (t - g) + "," + (i - k) + "A" + s + "," + s + ",0,1," + h + "," + (this._x1 = o) + "," + (this._y1 = a) : m > B && (this._ += "A" + s + "," + s + ",0," + +(m >= et) + "," + h + "," + (this._x1 = t + s * Math.cos(u)) + "," + (this._y1 = i + s * Math.sin(u)))); + }, + rect: function(t, i, s, l) { + this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +i) + "h" + +s + "v" + +l + "h" + -s + "Z"; + }, + toString: function() { + return this._; + } +}; +function ft(t) { + return function() { + return t; + }; +} +function Bt(t) { + return t[0]; +} +function Ft(t) { + return t[1]; +} +var Rt = Array.prototype.slice; +function Vt(t) { + return t.source; +} +function Wt(t) { + return t.target; +} +function Ut(t) { + var i = Vt, s = Wt, l = Bt, u = Ft, x = null; + function g() { + var k, o = Rt.call(arguments), a = i.apply(this, o), h = s.apply(this, o); + if (x || (x = k = pt()), t(x, +l.apply(this, (o[0] = a, o)), +u.apply(this, o), +l.apply(this, (o[0] = h, o)), +u.apply(this, o)), k) return x = null, k + "" || null; + } + return g.source = function(k) { + return arguments.length ? (i = k, g) : i; + }, g.target = function(k) { + return arguments.length ? (s = k, g) : s; + }, g.x = function(k) { + return arguments.length ? (l = typeof k == "function" ? k : ft(+k), g) : l; + }, g.y = function(k) { + return arguments.length ? (u = typeof k == "function" ? k : ft(+k), g) : u; + }, g.context = function(k) { + return arguments.length ? (x = k ?? null, g) : x; + }, g; +} +function Gt(t, i, s, l, u) { + t.moveTo(i, s), t.bezierCurveTo(i = (i + l) / 2, s, i, u, l, u); +} +function Yt() { + return Ut(Gt); +} +function Ht(t) { + return [t.source.x1, t.y0]; +} +function Qt(t) { + return [t.target.x0, t.y1]; +} +function Xt() { + return Yt().source(Ht).target(Qt); +} +var rt = (function() { + var t = /* @__PURE__ */ y(function(k, o, a, h) { + for (a = a || {}, h = k.length; h--; a[k[h]] = o) ; + return a; + }, "o"), i = [1, 9], s = [1, 10], l = [1, 5, 10, 12], u = { + trace: /* @__PURE__ */ y(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: /* @__PURE__ */ y(function(o, a, h, m, _, d, v) { + var T = d.length - 1; + switch (_) { + case 7: + const A = m.findOrCreateNode(d[T - 4].trim().replaceAll('""', '"')), M = m.findOrCreateNode(d[T - 2].trim().replaceAll('""', '"')), I = parseFloat(d[T].trim()); + m.addLink(A, M, I); + break; + case 8: + case 9: + case 11: + this.$ = d[T]; + break; + case 10: + this.$ = d[T - 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: i, 20: s }, { 1: [2, 6], 7: 11, 10: [1, 12] }, t(s, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, t(l, [2, 8]), t(l, [2, 9]), { 19: [1, 16] }, t(l, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, t(s, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: i, 20: s }, { 15: 18, 16: 7, 17: 8, 18: i, 20: s }, { 18: [1, 19] }, t(s, [2, 3]), { 12: [1, 20] }, t(l, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: i, 20: s }, t([1, 5, 10], [2, 7])], + defaultActions: { 11: [2, 1], 12: [2, 5] }, + parseError: /* @__PURE__ */ y(function(o, a) { + if (a.recoverable) + this.trace(o); + else { + var h = new Error(o); + throw h.hash = a, h; + } + }, "parseError"), + parse: /* @__PURE__ */ y(function(o) { + var a = this, h = [0], m = [], _ = [null], d = [], v = this.table, T = "", A = 0, M = 0, I = 2, N = 1, $ = d.slice.call(arguments, 1), S = Object.create(this.lexer), C = { yy: {} }; + for (var F in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, F) && (C.yy[F] = this.yy[F]); + S.setInput(o, C.yy), C.yy.lexer = S, C.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {}); + var z = S.yylloc; + d.push(z); + var R = S.options && S.options.ranges; + typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; + function O(L) { + h.length = h.length - 2 * L, _.length = _.length - L, d.length = d.length - L; + } + y(O, "popStack"); + function D() { + var L; + return L = m.pop() || S.lex() || N, typeof L != "number" && (L instanceof Array && (m = L, L = m.pop()), L = a.symbols_[L] || L), L; + } + y(D, "lex"); + for (var w, P, E, n, f = {}, c, e, r, p; ; ) { + if (P = h[h.length - 1], this.defaultActions[P] ? E = this.defaultActions[P] : ((w === null || typeof w > "u") && (w = D()), E = v[P] && v[P][w]), typeof E > "u" || !E.length || !E[0]) { + var b = ""; + p = []; + for (c in v[P]) + this.terminals_[c] && c > I && p.push("'" + this.terminals_[c] + "'"); + S.showPosition ? b = "Parse error on line " + (A + 1) + `: +` + S.showPosition() + ` +Expecting ` + p.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : b = "Parse error on line " + (A + 1) + ": Unexpected " + (w == N ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(b, { + text: S.match, + token: this.terminals_[w] || w, + line: S.yylineno, + loc: z, + expected: p + }); + } + if (E[0] instanceof Array && E.length > 1) + throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + w); + switch (E[0]) { + case 1: + h.push(w), _.push(S.yytext), d.push(S.yylloc), h.push(E[1]), w = null, M = S.yyleng, T = S.yytext, A = S.yylineno, z = S.yylloc; + break; + case 2: + if (e = this.productions_[E[1]][1], f.$ = _[_.length - e], f._$ = { + first_line: d[d.length - (e || 1)].first_line, + last_line: d[d.length - 1].last_line, + first_column: d[d.length - (e || 1)].first_column, + last_column: d[d.length - 1].last_column + }, R && (f._$.range = [ + d[d.length - (e || 1)].range[0], + d[d.length - 1].range[1] + ]), n = this.performAction.apply(f, [ + T, + M, + A, + C.yy, + E[1], + _, + d + ].concat($)), typeof n < "u") + return n; + e && (h = h.slice(0, -1 * e * 2), _ = _.slice(0, -1 * e), d = d.slice(0, -1 * e)), h.push(this.productions_[E[1]][0]), _.push(f.$), d.push(f._$), r = v[h[h.length - 2]][h[h.length - 1]], h.push(r); + break; + case 3: + return !0; + } + } + return !0; + }, "parse") + }, x = /* @__PURE__ */ (function() { + var k = { + EOF: 1, + parseError: /* @__PURE__ */ y(function(a, h) { + if (this.yy.parser) + this.yy.parser.parseError(a, h); + else + throw new Error(a); + }, "parseError"), + // resets the lexer, sets new input + setInput: /* @__PURE__ */ y(function(o, a) { + return this.yy = a || 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"), + // consumes and returns one char from the input + input: /* @__PURE__ */ y(function() { + var o = this._input[0]; + this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o; + var a = o.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), o; + }, "input"), + // unshifts one char (or a string) into the input + unput: /* @__PURE__ */ y(function(o) { + var a = o.length, h = o.split(/(?:\r\n?|\n)/g); + this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a; + var m = this.match.split(/(?:\r\n?|\n)/g); + this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), h.length - 1 && (this.yylineno -= h.length - 1); + var _ = this.yylloc.range; + return this.yylloc = { + first_line: this.yylloc.first_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.first_column, + last_column: h ? (h.length === m.length ? this.yylloc.first_column : 0) + m[m.length - h.length].length - h[0].length : this.yylloc.first_column - a + }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this; + }, "unput"), + // When called from action, caches matched text and appends it on next action + more: /* @__PURE__ */ y(function() { + return this._more = !0, this; + }, "more"), + // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead. + reject: /* @__PURE__ */ y(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"), + // retain first n characters of the match + less: /* @__PURE__ */ y(function(o) { + this.unput(this.match.slice(o)); + }, "less"), + // displays already matched input, i.e. for error messages + pastInput: /* @__PURE__ */ y(function() { + var o = this.matched.substr(0, this.matched.length - this.match.length); + return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, ""); + }, "pastInput"), + // displays upcoming input, i.e. for error messages + upcomingInput: /* @__PURE__ */ y(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"), + // displays the character position where the lexing error occurred, i.e. for error messages + showPosition: /* @__PURE__ */ y(function() { + var o = this.pastInput(), a = new Array(o.length + 1).join("-"); + return o + this.upcomingInput() + ` +` + a + "^"; + }, "showPosition"), + // test the lexed token: return FALSE when not a match, otherwise return token + test_match: /* @__PURE__ */ y(function(o, a) { + var h, m, _; + if (this.options.backtrack_lexer && (_ = { + 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 && (_.yylloc.range = this.yylloc.range.slice(0))), m = o[0].match(/(?:\r\n?|\n).*/g), m && (this.yylineno += m.length), this.yylloc = { + first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: m ? m[m.length - 1].length - m[m.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], h = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h) + return h; + if (this._backtrack) { + for (var d in _) + this[d] = _[d]; + return !1; + } + return !1; + }, "test_match"), + // return next match in input + next: /* @__PURE__ */ y(function() { + if (this.done) + return this.EOF; + this._input || (this.done = !0); + var o, a, h, m; + this._more || (this.yytext = "", this.match = ""); + for (var _ = this._currentRules(), d = 0; d < _.length; d++) + if (h = this._input.match(this.rules[_[d]]), h && (!a || h[0].length > a[0].length)) { + if (a = h, m = d, this.options.backtrack_lexer) { + if (o = this.test_match(h, _[d]), o !== !1) + return o; + if (this._backtrack) { + a = !1; + continue; + } else + return !1; + } else if (!this.options.flex) + break; + } + return a ? (o = this.test_match(a, _[m]), 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"), + // return next match that has a token + lex: /* @__PURE__ */ y(function() { + var a = this.next(); + return a || this.lex(); + }, "lex"), + // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack) + begin: /* @__PURE__ */ y(function(a) { + this.conditionStack.push(a); + }, "begin"), + // pop the previously active lexer condition state off the condition stack + popState: /* @__PURE__ */ y(function() { + var a = this.conditionStack.length - 1; + return a > 0 ? this.conditionStack.pop() : this.conditionStack[0]; + }, "popState"), + // produce the lexer rule set which is active for the currently active lexer condition state + _currentRules: /* @__PURE__ */ y(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"), + // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available + topState: /* @__PURE__ */ y(function(a) { + return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL"; + }, "topState"), + // alias for begin(condition) + pushState: /* @__PURE__ */ y(function(a) { + this.begin(a); + }, "pushState"), + // return the number of states currently on the stack + stateStackSize: /* @__PURE__ */ y(function() { + return this.conditionStack.length; + }, "stateStackSize"), + options: { "case-insensitive": !0 }, + performAction: /* @__PURE__ */ y(function(a, h, m, _) { + switch (m) { + case 0: + return this.pushState("csv"), 4; + case 1: + return this.pushState("csv"), 4; + case 2: + return 10; + case 3: + return 5; + case 4: + return 12; + case 5: + return this.pushState("escaped_text"), 18; + case 6: + return 20; + case 7: + return this.popState("escaped_text"), 18; + 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 k; + })(); + u.lexer = x; + function g() { + this.yy = {}; + } + return y(g, "Parser"), g.prototype = u, u.Parser = g, new g(); +})(); +rt.parser = rt; +var Q = rt, q = [], K = [], X = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ y(() => { + q = [], K = [], X = /* @__PURE__ */ new Map(), Lt(); +}, "clear"), Kt = class { + constructor(t, i, s = 0) { + this.source = t, this.target = i, this.value = s; + } + static { + y(this, "SankeyLink"); + } +}, Zt = /* @__PURE__ */ y((t, i, s) => { + q.push(new Kt(t, i, s)); +}, "addLink"), Jt = class { + constructor(t) { + this.ID = t; + } + static { + y(this, "SankeyNode"); + } +}, te = /* @__PURE__ */ y((t) => { + t = Et.sanitizeText(t, ot()); + let i = X.get(t); + return i === void 0 && (i = new Jt(t), X.set(t, i), K.push(i)), i; +}, "findOrCreateNode"), ee = /* @__PURE__ */ y(() => K, "getNodes"), ne = /* @__PURE__ */ y(() => q, "getLinks"), ie = /* @__PURE__ */ y(() => ({ + nodes: K.map((t) => ({ id: t.ID })), + links: q.map((t) => ({ + source: t.source.ID, + target: t.target.ID, + value: t.value + })) +}), "getGraph"), re = { + nodesMap: X, + getConfig: /* @__PURE__ */ y(() => ot().sankey, "getConfig"), + getNodes: ee, + getLinks: ne, + getGraph: ie, + addLink: Zt, + findOrCreateNode: te, + getAccTitle: bt, + setAccTitle: vt, + getAccDescription: _t, + setAccDescription: xt, + getDiagramTitle: mt, + setDiagramTitle: kt, + clear: qt +}, yt = class st { + static { + y(this, "Uid"); + } + static { + this.count = 0; + } + static next(i) { + return new st(i + ++st.count); + } + constructor(i) { + this.id = i, this.href = `#${i}`; + } + toString() { + return "url(" + this.href + ")"; + } +}, se = { + left: Ct, + right: Pt, + center: It, + justify: gt +}, oe = /* @__PURE__ */ y((t) => { + let i = 0, s = 0; + for (const l of t) { + const u = l.value ?? 0; + u > i && (i = u, s = l.layer ?? 0); + } + return s; +}, "findCentralNodeLayer"), ae = /* @__PURE__ */ y(function(t, i, s, l) { + const { securityLevel: u, sankey: x } = ot(), g = St.sankey; + let k; + u === "sandbox" && (k = G("#i" + i)); + const o = u === "sandbox" ? G(k.nodes()[0].contentDocument.body) : G("body"), a = u === "sandbox" ? o.select(`[id="${i}"]`) : G(`[id="${i}"]`), h = x?.width ?? g.width, m = x?.height ?? g.width, _ = x?.useMaxWidth ?? g.useMaxWidth, d = x?.nodeAlignment ?? g.nodeAlignment, v = x?.prefix ?? g.prefix, T = x?.suffix ?? g.suffix, A = x?.showValues ?? g.showValues, M = x?.nodeWidth ?? g.nodeWidth ?? 10, I = x?.nodePadding ?? g.nodePadding ?? 12, N = x?.labelStyle ?? g.labelStyle ?? "legacy", $ = x?.nodeColors ?? {}, S = l.db.getGraph(), C = se[d]; + Dt().nodeId((e) => e.id).nodeWidth(M).nodePadding(I + (A ? 15 : 0)).nodeAlign(C).extent([ + [0, 0], + [h, m] + ])(S); + const z = oe(S.nodes), R = At(Mt), O = /* @__PURE__ */ y((e) => $[e] ?? R(e), "getNodeColor"); + a.append("g").attr("class", "nodes").selectAll(".node").data(S.nodes).join("g").attr("class", "node").attr("id", (e) => (e.uid = yt.next("node-")).id).attr("transform", function(e) { + return "translate(" + e.x0 + "," + e.y0 + ")"; + }).attr("x", (e) => e.x0).attr("y", (e) => e.y0).append("rect").attr("height", (e) => e.y1 - e.y0).attr("width", (e) => e.x1 - e.x0).attr("fill", (e) => O(e.id)); + const D = /* @__PURE__ */ y(({ id: e, value: r }) => A ? `${e} +${v}${Math.round(r * 100) / 100}${T}` : e, "getText"), w = /* @__PURE__ */ y((e) => N === "outlined" ? (e.layer ?? 0) < z ? { x: e.x0 - 6, anchor: "end" } : { x: e.x1 + 6, anchor: "start" } : e.x0 < h / 2 ? { x: e.x1 + 6, anchor: "start" } : { x: e.x0 - 6, anchor: "end" }, "getLabelPosition"), P = a.append("g").attr("class", "node-labels").attr("font-size", 14), E = /* @__PURE__ */ y((e) => P.selectAll(e ? `.${e}` : "text").data(S.nodes).join("text").attr("class", e ?? null).attr("x", (r) => w(r).x).attr("y", (r) => (r.y1 + r.y0) / 2).attr("dy", `${A ? "0" : "0.35"}em`).attr("text-anchor", (r) => w(r).anchor).text(D), "appendLabel"); + N === "outlined" ? (E("sankey-label-bg"), E("sankey-label-fg")) : E(); + const n = a.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(S.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), f = x?.linkColor ?? "gradient"; + if (f === "gradient") { + const e = n.append("linearGradient").attr("id", (r) => (r.uid = yt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (r) => r.source.x1).attr("x2", (r) => r.target.x0); + e.append("stop").attr("offset", "0%").attr("stop-color", (r) => O(r.source.id)), e.append("stop").attr("offset", "100%").attr("stop-color", (r) => O(r.target.id)); + } + let c; + switch (f) { + case "gradient": + c = /* @__PURE__ */ y((e) => e.uid, "coloring"); + break; + case "source": + c = /* @__PURE__ */ y((e) => O(e.source.id), "coloring"); + break; + case "target": + c = /* @__PURE__ */ y((e) => O(e.target.id), "coloring"); + break; + default: + c = f; + } + n.append("path").attr("d", Xt()).attr("stroke", c).attr("stroke-width", (e) => Math.max(1, e.width)), wt(void 0, a, 0, _); +}, "draw"), le = { + draw: ae +}, ce = /* @__PURE__ */ y((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` +`).trim(), "prepareTextForParsing"), ue = /* @__PURE__ */ y((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"), he = ue, fe = Q.parse.bind(Q); +Q.parse = (t) => fe(ce(t)); +var ge = { + styles: he, + parser: Q, + db: re, + renderer: le +}; +export { + ge as diagram +}; diff --git a/src/wc-content-kit/public/mermaid/sankeyDiagram-XADWPNL6-Be61kRTn.js b/src/wc-content-kit/public/mermaid/sankeyDiagram-XADWPNL6-Be61kRTn.js deleted file mode 100644 index c7ffb15..0000000 --- a/src/wc-content-kit/public/mermaid/sankeyDiagram-XADWPNL6-Be61kRTn.js +++ /dev/null @@ -1,822 +0,0 @@ -import { p as mt, q as kt, s as _t, g as xt, b as vt, a as bt, _ as g, c as ot, A as wt, d as G, Y as St, z as Lt, k as Et } from "./mermaid.core-Jw3znkh4.js"; -import { o as At } from "./ordinal-DfAQgscy.js"; -function Tt(t) { - for (var n = t.length / 6 | 0, i = new Array(n), a = 0; a < n; ) i[a] = "#" + t.slice(a * 6, ++a * 6); - return i; -} -const Mt = Tt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"); -function at(t, n) { - let i; - if (n === void 0) - for (const a of t) - a != null && (i < a || i === void 0 && a >= a) && (i = a); - else { - let a = -1; - for (let h of t) - (h = n(h, ++a, t)) != null && (i < h || i === void 0 && h >= h) && (i = h); - } - return i; -} -function dt(t, n) { - let i; - if (n === void 0) - for (const a of t) - a != null && (i > a || i === void 0 && a >= a) && (i = a); - else { - let a = -1; - for (let h of t) - (h = n(h, ++a, t)) != null && (i > h || i === void 0 && h >= h) && (i = h); - } - return i; -} -function J(t, n) { - let i = 0; - if (n === void 0) - for (let a of t) - (a = +a) && (i += a); - else { - let a = -1; - for (let h of t) - (h = +n(h, ++a, t)) && (i += h); - } - return i; -} -function Nt(t) { - return t.target.depth; -} -function It(t) { - return t.depth; -} -function Pt(t, n) { - return n - 1 - t.height; -} -function gt(t, n) { - return t.sourceLinks.length ? t.depth : n - 1; -} -function Ct(t) { - return t.targetLinks.length ? t.depth : t.sourceLinks.length ? dt(t.sourceLinks, Nt) - 1 : 0; -} -function Y(t) { - return function() { - return t; - }; -} -function lt(t, n) { - return q(t.source, n.source) || t.index - n.index; -} -function ct(t, n) { - return q(t.target, n.target) || t.index - n.index; -} -function q(t, n) { - return t.y0 - n.y0; -} -function tt(t) { - return t.value; -} -function Ot(t) { - return t.index; -} -function zt(t) { - return t.nodes; -} -function Dt(t) { - return t.links; -} -function ut(t, n) { - const i = t.get(n); - if (!i) throw new Error("missing: " + n); - return i; -} -function ht({ nodes: t }) { - for (const n of t) { - let i = n.y0, a = i; - for (const h of n.sourceLinks) - h.y0 = i + h.width / 2, i += h.width; - for (const h of n.targetLinks) - h.y1 = a + h.width / 2, a += h.width; - } -} -function $t() { - let t = 0, n = 0, i = 1, a = 1, h = 24, b = 8, p, k = Ot, s = gt, o, l, _ = zt, x = Dt, y = 6; - function v() { - const e = { nodes: _.apply(null, arguments), links: x.apply(null, arguments) }; - return M(e), T(e), N(e), C(e), S(e), ht(e), e; - } - v.update = function(e) { - return ht(e), e; - }, v.nodeId = function(e) { - return arguments.length ? (k = typeof e == "function" ? e : Y(e), v) : k; - }, v.nodeAlign = function(e) { - return arguments.length ? (s = typeof e == "function" ? e : Y(e), v) : s; - }, v.nodeSort = function(e) { - return arguments.length ? (o = e, v) : o; - }, v.nodeWidth = function(e) { - return arguments.length ? (h = +e, v) : h; - }, v.nodePadding = function(e) { - return arguments.length ? (b = p = +e, v) : b; - }, v.nodes = function(e) { - return arguments.length ? (_ = typeof e == "function" ? e : Y(e), v) : _; - }, v.links = function(e) { - return arguments.length ? (x = typeof e == "function" ? e : Y(e), v) : x; - }, v.linkSort = function(e) { - return arguments.length ? (l = e, v) : l; - }, v.size = function(e) { - return arguments.length ? (t = n = 0, i = +e[0], a = +e[1], v) : [i - t, a - n]; - }, v.extent = function(e) { - return arguments.length ? (t = +e[0][0], i = +e[1][0], n = +e[0][1], a = +e[1][1], v) : [[t, n], [i, a]]; - }, v.iterations = function(e) { - return arguments.length ? (y = +e, v) : y; - }; - function M({ nodes: e, links: f }) { - for (const [c, r] of e.entries()) - r.index = c, r.sourceLinks = [], r.targetLinks = []; - const u = new Map(e.map((c, r) => [k(c, r, e), c])); - for (const [c, r] of f.entries()) { - r.index = c; - let { source: m, target: w } = r; - typeof m != "object" && (m = r.source = ut(u, m)), typeof w != "object" && (w = r.target = ut(u, w)), m.sourceLinks.push(r), w.targetLinks.push(r); - } - if (l != null) - for (const { sourceLinks: c, targetLinks: r } of e) - c.sort(l), r.sort(l); - } - function T({ nodes: e }) { - for (const f of e) - f.value = f.fixedValue === void 0 ? Math.max(J(f.sourceLinks, tt), J(f.targetLinks, tt)) : f.fixedValue; - } - function N({ nodes: e }) { - const f = e.length; - let u = new Set(e), c = /* @__PURE__ */ new Set(), r = 0; - for (; u.size; ) { - for (const m of u) { - m.depth = r; - for (const { target: w } of m.sourceLinks) - c.add(w); - } - if (++r > f) throw new Error("circular link"); - u = c, c = /* @__PURE__ */ new Set(); - } - } - function C({ nodes: e }) { - const f = e.length; - let u = new Set(e), c = /* @__PURE__ */ new Set(), r = 0; - for (; u.size; ) { - for (const m of u) { - m.height = r; - for (const { source: w } of m.targetLinks) - c.add(w); - } - if (++r > f) throw new Error("circular link"); - u = c, c = /* @__PURE__ */ new Set(); - } - } - function D({ nodes: e }) { - const f = at(e, (r) => r.depth) + 1, u = (i - t - h) / (f - 1), c = new Array(f); - for (const r of e) { - const m = Math.max(0, Math.min(f - 1, Math.floor(s.call(null, r, f)))); - r.layer = m, r.x0 = t + m * u, r.x1 = r.x0 + h, c[m] ? c[m].push(r) : c[m] = [r]; - } - if (o) for (const r of c) - r.sort(o); - return c; - } - function B(e) { - const f = dt(e, (u) => (a - n - (u.length - 1) * p) / J(u, tt)); - for (const u of e) { - let c = n; - for (const r of u) { - r.y0 = c, r.y1 = c + r.value * f, c = r.y1 + p; - for (const m of r.sourceLinks) - m.width = m.value * f; - } - c = (a - c + p) / (u.length + 1); - for (let r = 0; r < u.length; ++r) { - const m = u[r]; - m.y0 += c * (r + 1), m.y1 += c * (r + 1); - } - A(u); - } - } - function S(e) { - const f = D(e); - p = Math.min(b, (a - n) / (at(f, (u) => u.length) - 1)), B(f); - for (let u = 0; u < y; ++u) { - const c = Math.pow(0.99, u), r = Math.max(1 - c, (u + 1) / y); - j(f, c, r), P(f, c, r); - } - } - function P(e, f, u) { - for (let c = 1, r = e.length; c < r; ++c) { - const m = e[c]; - for (const w of m) { - let L = 0, R = 0; - for (const { source: U, value: Z } of w.targetLinks) { - let W = Z * (w.layer - U.layer); - L += $(U, w) * W, R += W; - } - if (!(R > 0)) continue; - let V = (L / R - w.y0) * f; - w.y0 += V, w.y1 += V, E(w); - } - o === void 0 && m.sort(q), O(m, u); - } - } - function j(e, f, u) { - for (let c = e.length, r = c - 2; r >= 0; --r) { - const m = e[r]; - for (const w of m) { - let L = 0, R = 0; - for (const { target: U, value: Z } of w.sourceLinks) { - let W = Z * (U.layer - w.layer); - L += I(w, U) * W, R += W; - } - if (!(R > 0)) continue; - let V = (L / R - w.y0) * f; - w.y0 += V, w.y1 += V, E(w); - } - o === void 0 && m.sort(q), O(m, u); - } - } - function O(e, f) { - const u = e.length >> 1, c = e[u]; - d(e, c.y0 - p, u - 1, f), z(e, c.y1 + p, u + 1, f), d(e, a, e.length - 1, f), z(e, n, 0, f); - } - function z(e, f, u, c) { - for (; u < e.length; ++u) { - const r = e[u], m = (f - r.y0) * c; - m > 1e-6 && (r.y0 += m, r.y1 += m), f = r.y1 + p; - } - } - function d(e, f, u, c) { - for (; u >= 0; --u) { - const r = e[u], m = (r.y1 - f) * c; - m > 1e-6 && (r.y0 -= m, r.y1 -= m), f = r.y0 - p; - } - } - function E({ sourceLinks: e, targetLinks: f }) { - if (l === void 0) { - for (const { source: { sourceLinks: u } } of f) - u.sort(ct); - for (const { target: { targetLinks: u } } of e) - u.sort(lt); - } - } - function A(e) { - if (l === void 0) - for (const { sourceLinks: f, targetLinks: u } of e) - f.sort(ct), u.sort(lt); - } - function $(e, f) { - let u = e.y0 - (e.sourceLinks.length - 1) * p / 2; - for (const { target: c, width: r } of e.sourceLinks) { - if (c === f) break; - u += r + p; - } - for (const { source: c, width: r } of f.targetLinks) { - if (c === e) break; - u -= r; - } - return u; - } - function I(e, f) { - let u = f.y0 - (f.targetLinks.length - 1) * p / 2; - for (const { source: c, width: r } of f.targetLinks) { - if (c === e) break; - u += r + p; - } - for (const { target: c, width: r } of e.sourceLinks) { - if (c === f) break; - u -= r; - } - return u; - } - return v; -} -var et = Math.PI, nt = 2 * et, F = 1e-6, jt = nt - F; -function it() { - this._x0 = this._y0 = // start of current subpath - this._x1 = this._y1 = null, this._ = ""; -} -function pt() { - return new it(); -} -it.prototype = pt.prototype = { - constructor: it, - moveTo: function(t, n) { - this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +n); - }, - closePath: function() { - this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z"); - }, - lineTo: function(t, n) { - this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +n); - }, - quadraticCurveTo: function(t, n, i, a) { - this._ += "Q" + +t + "," + +n + "," + (this._x1 = +i) + "," + (this._y1 = +a); - }, - bezierCurveTo: function(t, n, i, a, h, b) { - this._ += "C" + +t + "," + +n + "," + +i + "," + +a + "," + (this._x1 = +h) + "," + (this._y1 = +b); - }, - arcTo: function(t, n, i, a, h) { - t = +t, n = +n, i = +i, a = +a, h = +h; - var b = this._x1, p = this._y1, k = i - t, s = a - n, o = b - t, l = p - n, _ = o * o + l * l; - if (h < 0) throw new Error("negative radius: " + h); - if (this._x1 === null) - this._ += "M" + (this._x1 = t) + "," + (this._y1 = n); - else if (_ > F) if (!(Math.abs(l * k - s * o) > F) || !h) - this._ += "L" + (this._x1 = t) + "," + (this._y1 = n); - else { - var x = i - b, y = a - p, v = k * k + s * s, M = x * x + y * y, T = Math.sqrt(v), N = Math.sqrt(_), C = h * Math.tan((et - Math.acos((v + _ - M) / (2 * T * N))) / 2), D = C / N, B = C / T; - Math.abs(D - 1) > F && (this._ += "L" + (t + D * o) + "," + (n + D * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * x > o * y) + "," + (this._x1 = t + B * k) + "," + (this._y1 = n + B * s); - } - }, - arc: function(t, n, i, a, h, b) { - t = +t, n = +n, i = +i, b = !!b; - var p = i * Math.cos(a), k = i * Math.sin(a), s = t + p, o = n + k, l = 1 ^ b, _ = b ? a - h : h - a; - if (i < 0) throw new Error("negative radius: " + i); - this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > F || Math.abs(this._y1 - o) > F) && (this._ += "L" + s + "," + o), i && (_ < 0 && (_ = _ % nt + nt), _ > jt ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - p) + "," + (n - k) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : _ > F && (this._ += "A" + i + "," + i + ",0," + +(_ >= et) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = n + i * Math.sin(h)))); - }, - rect: function(t, n, i, a) { - this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +n) + "h" + +i + "v" + +a + "h" + -i + "Z"; - }, - toString: function() { - return this._; - } -}; -function ft(t) { - return function() { - return t; - }; -} -function Bt(t) { - return t[0]; -} -function Rt(t) { - return t[1]; -} -var Ft = Array.prototype.slice; -function Vt(t) { - return t.source; -} -function Ut(t) { - return t.target; -} -function Wt(t) { - var n = Vt, i = Ut, a = Bt, h = Rt, b = null; - function p() { - var k, s = Ft.call(arguments), o = n.apply(this, s), l = i.apply(this, s); - if (b || (b = k = pt()), t(b, +a.apply(this, (s[0] = o, s)), +h.apply(this, s), +a.apply(this, (s[0] = l, s)), +h.apply(this, s)), k) return b = null, k + "" || null; - } - return p.source = function(k) { - return arguments.length ? (n = k, p) : n; - }, p.target = function(k) { - return arguments.length ? (i = k, p) : i; - }, p.x = function(k) { - return arguments.length ? (a = typeof k == "function" ? k : ft(+k), p) : a; - }, p.y = function(k) { - return arguments.length ? (h = typeof k == "function" ? k : ft(+k), p) : h; - }, p.context = function(k) { - return arguments.length ? (b = k ?? null, p) : b; - }, p; -} -function Gt(t, n, i, a, h) { - t.moveTo(n, i), t.bezierCurveTo(n = (n + a) / 2, i, n, h, a, h); -} -function Yt() { - return Wt(Gt); -} -function qt(t) { - return [t.source.x1, t.y0]; -} -function Ht(t) { - return [t.target.x0, t.y1]; -} -function Xt() { - return Yt().source(qt).target(Ht); -} -var st = (function() { - var t = /* @__PURE__ */ g(function(k, s, o, l) { - for (o = o || {}, l = k.length; l--; o[k[l]] = s) ; - return o; - }, "o"), n = [1, 9], i = [1, 10], a = [1, 5, 10, 12], h = { - trace: /* @__PURE__ */ g(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: /* @__PURE__ */ g(function(s, o, l, _, x, y, v) { - var M = y.length - 1; - switch (x) { - case 7: - const T = _.findOrCreateNode(y[M - 4].trim().replaceAll('""', '"')), N = _.findOrCreateNode(y[M - 2].trim().replaceAll('""', '"')), C = parseFloat(y[M].trim()); - _.addLink(T, N, C); - break; - case 8: - case 9: - case 11: - this.$ = y[M]; - break; - case 10: - this.$ = y[M - 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: n, 20: i }, { 1: [2, 6], 7: 11, 10: [1, 12] }, t(i, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, t(a, [2, 8]), t(a, [2, 9]), { 19: [1, 16] }, t(a, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, t(i, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: n, 20: i }, { 15: 18, 16: 7, 17: 8, 18: n, 20: i }, { 18: [1, 19] }, t(i, [2, 3]), { 12: [1, 20] }, t(a, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: n, 20: i }, t([1, 5, 10], [2, 7])], - defaultActions: { 11: [2, 1], 12: [2, 5] }, - parseError: /* @__PURE__ */ g(function(s, o) { - if (o.recoverable) - this.trace(s); - else { - var l = new Error(s); - throw l.hash = o, l; - } - }, "parseError"), - parse: /* @__PURE__ */ g(function(s) { - var o = this, l = [0], _ = [], x = [null], y = [], v = this.table, M = "", T = 0, N = 0, C = 2, D = 1, B = y.slice.call(arguments, 1), S = Object.create(this.lexer), P = { yy: {} }; - for (var j in this.yy) - Object.prototype.hasOwnProperty.call(this.yy, j) && (P.yy[j] = this.yy[j]); - S.setInput(s, P.yy), P.yy.lexer = S, P.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {}); - var O = S.yylloc; - y.push(O); - var z = S.options && S.options.ranges; - typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; - function d(L) { - l.length = l.length - 2 * L, x.length = x.length - L, y.length = y.length - L; - } - g(d, "popStack"); - function E() { - var L; - return L = _.pop() || S.lex() || D, typeof L != "number" && (L instanceof Array && (_ = L, L = _.pop()), L = o.symbols_[L] || L), L; - } - g(E, "lex"); - for (var A, $, I, e, f = {}, u, c, r, m; ; ) { - if ($ = l[l.length - 1], this.defaultActions[$] ? I = this.defaultActions[$] : ((A === null || typeof A > "u") && (A = E()), I = v[$] && v[$][A]), typeof I > "u" || !I.length || !I[0]) { - var w = ""; - m = []; - for (u in v[$]) - this.terminals_[u] && u > C && m.push("'" + this.terminals_[u] + "'"); - S.showPosition ? w = "Parse error on line " + (T + 1) + `: -` + S.showPosition() + ` -Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (A == D ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(w, { - text: S.match, - token: this.terminals_[A] || A, - line: S.yylineno, - loc: O, - expected: m - }); - } - if (I[0] instanceof Array && I.length > 1) - throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + A); - switch (I[0]) { - case 1: - l.push(A), x.push(S.yytext), y.push(S.yylloc), l.push(I[1]), A = null, N = S.yyleng, M = S.yytext, T = S.yylineno, O = S.yylloc; - break; - case 2: - if (c = this.productions_[I[1]][1], f.$ = x[x.length - c], f._$ = { - first_line: y[y.length - (c || 1)].first_line, - last_line: y[y.length - 1].last_line, - first_column: y[y.length - (c || 1)].first_column, - last_column: y[y.length - 1].last_column - }, z && (f._$.range = [ - y[y.length - (c || 1)].range[0], - y[y.length - 1].range[1] - ]), e = this.performAction.apply(f, [ - M, - N, - T, - P.yy, - I[1], - x, - y - ].concat(B)), typeof e < "u") - return e; - c && (l = l.slice(0, -1 * c * 2), x = x.slice(0, -1 * c), y = y.slice(0, -1 * c)), l.push(this.productions_[I[1]][0]), x.push(f.$), y.push(f._$), r = v[l[l.length - 2]][l[l.length - 1]], l.push(r); - break; - case 3: - return !0; - } - } - return !0; - }, "parse") - }, b = /* @__PURE__ */ (function() { - var k = { - EOF: 1, - parseError: /* @__PURE__ */ g(function(o, l) { - if (this.yy.parser) - this.yy.parser.parseError(o, l); - else - throw new Error(o); - }, "parseError"), - // resets the lexer, sets new input - setInput: /* @__PURE__ */ g(function(s, o) { - return this.yy = o || 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"), - // consumes and returns one char from the input - input: /* @__PURE__ */ g(function() { - var s = this._input[0]; - this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s; - var o = s.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), s; - }, "input"), - // unshifts one char (or a string) into the input - unput: /* @__PURE__ */ g(function(s) { - var o = s.length, l = s.split(/(?:\r\n?|\n)/g); - this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o; - 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), l.length - 1 && (this.yylineno -= l.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: l ? (l.length === _.length ? this.yylloc.first_column : 0) + _[_.length - l.length].length - l[0].length : this.yylloc.first_column - o - }, this.options.ranges && (this.yylloc.range = [x[0], x[0] + this.yyleng - o]), this.yyleng = this.yytext.length, this; - }, "unput"), - // When called from action, caches matched text and appends it on next action - more: /* @__PURE__ */ g(function() { - return this._more = !0, this; - }, "more"), - // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead. - reject: /* @__PURE__ */ 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"), - // retain first n characters of the match - less: /* @__PURE__ */ g(function(s) { - this.unput(this.match.slice(s)); - }, "less"), - // displays already matched input, i.e. for error messages - pastInput: /* @__PURE__ */ g(function() { - var s = this.matched.substr(0, this.matched.length - this.match.length); - return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, ""); - }, "pastInput"), - // displays upcoming input, i.e. for error messages - upcomingInput: /* @__PURE__ */ g(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"), - // displays the character position where the lexing error occurred, i.e. for error messages - showPosition: /* @__PURE__ */ g(function() { - var s = this.pastInput(), o = new Array(s.length + 1).join("-"); - return s + this.upcomingInput() + ` -` + o + "^"; - }, "showPosition"), - // test the lexed token: return FALSE when not a match, otherwise return token - test_match: /* @__PURE__ */ g(function(s, o) { - var l, _, 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))), _ = s[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 + 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], l = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l) - return l; - if (this._backtrack) { - for (var y in x) - this[y] = x[y]; - return !1; - } - return !1; - }, "test_match"), - // return next match in input - next: /* @__PURE__ */ g(function() { - if (this.done) - return this.EOF; - this._input || (this.done = !0); - var s, o, l, _; - this._more || (this.yytext = "", this.match = ""); - for (var x = this._currentRules(), y = 0; y < x.length; y++) - if (l = this._input.match(this.rules[x[y]]), l && (!o || l[0].length > o[0].length)) { - if (o = l, _ = y, this.options.backtrack_lexer) { - if (s = this.test_match(l, x[y]), s !== !1) - return s; - if (this._backtrack) { - o = !1; - continue; - } else - return !1; - } else if (!this.options.flex) - break; - } - return o ? (s = this.test_match(o, x[_]), 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"), - // return next match that has a token - lex: /* @__PURE__ */ g(function() { - var o = this.next(); - return o || this.lex(); - }, "lex"), - // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack) - begin: /* @__PURE__ */ g(function(o) { - this.conditionStack.push(o); - }, "begin"), - // pop the previously active lexer condition state off the condition stack - popState: /* @__PURE__ */ g(function() { - var o = this.conditionStack.length - 1; - return o > 0 ? this.conditionStack.pop() : this.conditionStack[0]; - }, "popState"), - // produce the lexer rule set which is active for the currently active lexer condition state - _currentRules: /* @__PURE__ */ 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"), - // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available - topState: /* @__PURE__ */ g(function(o) { - return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL"; - }, "topState"), - // alias for begin(condition) - pushState: /* @__PURE__ */ g(function(o) { - this.begin(o); - }, "pushState"), - // return the number of states currently on the stack - stateStackSize: /* @__PURE__ */ g(function() { - return this.conditionStack.length; - }, "stateStackSize"), - options: { "case-insensitive": !0 }, - performAction: /* @__PURE__ */ g(function(o, l, _, x) { - switch (_) { - case 0: - return this.pushState("csv"), 4; - case 1: - return this.pushState("csv"), 4; - case 2: - return 10; - case 3: - return 5; - case 4: - return 12; - case 5: - return this.pushState("escaped_text"), 18; - case 6: - return 20; - case 7: - return this.popState("escaped_text"), 18; - 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 k; - })(); - h.lexer = b; - function p() { - this.yy = {}; - } - return g(p, "Parser"), p.prototype = h, h.Parser = p, new p(); -})(); -st.parser = st; -var H = st, Q = [], K = [], X = /* @__PURE__ */ new Map(), Qt = /* @__PURE__ */ g(() => { - Q = [], K = [], X = /* @__PURE__ */ new Map(), Lt(); -}, "clear"), Kt = class { - constructor(t, n, i = 0) { - this.source = t, this.target = n, this.value = i; - } - static { - g(this, "SankeyLink"); - } -}, Zt = /* @__PURE__ */ g((t, n, i) => { - Q.push(new Kt(t, n, i)); -}, "addLink"), Jt = class { - constructor(t) { - this.ID = t; - } - static { - g(this, "SankeyNode"); - } -}, te = /* @__PURE__ */ g((t) => { - t = Et.sanitizeText(t, ot()); - let n = X.get(t); - return n === void 0 && (n = new Jt(t), X.set(t, n), K.push(n)), n; -}, "findOrCreateNode"), ee = /* @__PURE__ */ g(() => K, "getNodes"), ne = /* @__PURE__ */ g(() => Q, "getLinks"), ie = /* @__PURE__ */ g(() => ({ - nodes: K.map((t) => ({ id: t.ID })), - links: Q.map((t) => ({ - source: t.source.ID, - target: t.target.ID, - value: t.value - })) -}), "getGraph"), se = { - nodesMap: X, - getConfig: /* @__PURE__ */ g(() => ot().sankey, "getConfig"), - getNodes: ee, - getLinks: ne, - getGraph: ie, - addLink: Zt, - findOrCreateNode: te, - getAccTitle: bt, - setAccTitle: vt, - getAccDescription: xt, - setAccDescription: _t, - getDiagramTitle: kt, - setDiagramTitle: mt, - clear: Qt -}, yt = class rt { - static { - g(this, "Uid"); - } - static { - this.count = 0; - } - static next(n) { - return new rt(n + ++rt.count); - } - constructor(n) { - this.id = n, this.href = `#${n}`; - } - toString() { - return "url(" + this.href + ")"; - } -}, re = { - left: It, - right: Pt, - center: Ct, - justify: gt -}, oe = /* @__PURE__ */ g(function(t, n, i, a) { - const { securityLevel: h, sankey: b } = ot(), p = wt.sankey; - let k; - h === "sandbox" && (k = G("#i" + n)); - const s = h === "sandbox" ? G(k.nodes()[0].contentDocument.body) : G("body"), o = h === "sandbox" ? s.select(`[id="${n}"]`) : G(`[id="${n}"]`), l = b?.width ?? p.width, _ = b?.height ?? p.width, x = b?.useMaxWidth ?? p.useMaxWidth, y = b?.nodeAlignment ?? p.nodeAlignment, v = b?.prefix ?? p.prefix, M = b?.suffix ?? p.suffix, T = b?.showValues ?? p.showValues, N = a.db.getGraph(), C = re[y]; - $t().nodeId((d) => d.id).nodeWidth(10).nodePadding(10 + (T ? 15 : 0)).nodeAlign(C).extent([ - [0, 0], - [l, _] - ])(N); - const S = At(Mt); - o.append("g").attr("class", "nodes").selectAll(".node").data(N.nodes).join("g").attr("class", "node").attr("id", (d) => (d.uid = yt.next("node-")).id).attr("transform", function(d) { - return "translate(" + d.x0 + "," + d.y0 + ")"; - }).attr("x", (d) => d.x0).attr("y", (d) => d.y0).append("rect").attr("height", (d) => d.y1 - d.y0).attr("width", (d) => d.x1 - d.x0).attr("fill", (d) => S(d.id)); - const P = /* @__PURE__ */ g(({ id: d, value: E }) => T ? `${d} -${v}${Math.round(E * 100) / 100}${M}` : d, "getText"); - o.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(N.nodes).join("text").attr("x", (d) => d.x0 < l / 2 ? d.x1 + 6 : d.x0 - 6).attr("y", (d) => (d.y1 + d.y0) / 2).attr("dy", `${T ? "0" : "0.35"}em`).attr("text-anchor", (d) => d.x0 < l / 2 ? "start" : "end").text(P); - const j = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(N.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), O = b?.linkColor ?? "gradient"; - if (O === "gradient") { - const d = j.append("linearGradient").attr("id", (E) => (E.uid = yt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (E) => E.source.x1).attr("x2", (E) => E.target.x0); - d.append("stop").attr("offset", "0%").attr("stop-color", (E) => S(E.source.id)), d.append("stop").attr("offset", "100%").attr("stop-color", (E) => S(E.target.id)); - } - let z; - switch (O) { - case "gradient": - z = /* @__PURE__ */ g((d) => d.uid, "coloring"); - break; - case "source": - z = /* @__PURE__ */ g((d) => S(d.source.id), "coloring"); - break; - case "target": - z = /* @__PURE__ */ g((d) => S(d.target.id), "coloring"); - break; - default: - z = O; - } - j.append("path").attr("d", Xt()).attr("stroke", z).attr("stroke-width", (d) => Math.max(1, d.width)), St(void 0, o, 0, x); -}, "draw"), ae = { - draw: oe -}, le = /* @__PURE__ */ g((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` -`).trim(), "prepareTextForParsing"), ce = /* @__PURE__ */ g((t) => `.label { - font-family: ${t.fontFamily}; - }`, "getStyles"), ue = ce, he = H.parse.bind(H); -H.parse = (t) => he(le(t)); -var de = { - styles: ue, - parser: H, - db: se, - renderer: ae -}; -export { - de as diagram -}; diff --git a/src/wc-content-kit/public/mermaid/sequenceDiagram-FGHM5R23-BZlhPGhp.js b/src/wc-content-kit/public/mermaid/sequenceDiagram-3UESZ5HK-DnhM7IMS.js similarity index 86% rename from src/wc-content-kit/public/mermaid/sequenceDiagram-FGHM5R23-BZlhPGhp.js rename to src/wc-content-kit/public/mermaid/sequenceDiagram-3UESZ5HK-DnhM7IMS.js index 8ecccd6..c26e633 100644 --- a/src/wc-content-kit/public/mermaid/sequenceDiagram-FGHM5R23-BZlhPGhp.js +++ b/src/wc-content-kit/public/mermaid/sequenceDiagram-3UESZ5HK-DnhM7IMS.js @@ -1,11 +1,11 @@ -import { _ as g, n as tr, c as $, d as Mt, l as at, j as Ce, e as er, f as rr, k as P, b as ke, s as ar, p as sr, a as ir, g as nr, q as or, t as cr, J as lr, z as hr, i as Bt, u as J, L as Z, M as wt, N as Me, Z as dr, D as Yt, O as Tr, P as Be } from "./mermaid.core-Jw3znkh4.js"; -import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-YZCP3GAM-fs19uw3J.js"; -import { I as ur } from "./chunk-QZHKN3VN-DnDrFfng.js"; +import { b as g, b2 as tr, a4 as $, a_ as Mt, aD as at, V as Ce, E as er, k as rr, z as P, b1 as ke, b0 as ar, b3 as sr, a2 as ir, a1 as nr, a5 as or, aC as cr, J as lr, t as hr, aZ as Bt, bk as Z, ai as Q, o as wt, aM as Me, Z as dr, a3 as Yt, af as Tr, aW as Be } from "./mermaid.core-FRDjOodn.js"; +import { d as pr, h as ee, g as dt, e as Er, a as re, b as ae } from "./chunk-ND2GUHAM-B58vhIOR.js"; +import { I as ur } from "./chunk-QZHKN3VN-CrvmLzNa.js"; var $t = (function() { var e = /* @__PURE__ */ g(function(ut, w, v, k) { for (v = v || {}, k = ut.length; k--; v[ut[k]] = w) ; return v; - }, "o"), t = [1, 2], a = [1, 3], r = [1, 4], i = [2, 4], n = [1, 9], s = [1, 11], o = [1, 12], E = [1, 14], T = [1, 15], l = [1, 17], x = [1, 18], u = [1, 19], O = [1, 25], p = [1, 26], f = [1, 27], _ = [1, 28], I = [1, 29], L = [1, 30], b = [1, 31], S = [1, 32], A = [1, 33], N = [1, 34], B = [1, 35], V = [1, 36], H = [1, 37], U = [1, 38], G = [1, 39], Q = [1, 40], j = [1, 42], q = [1, 43], st = [1, 44], tt = [1, 45], it = [1, 46], Y = [1, 47], C = [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], m = [1, 80], D = [1, 81], lt = [1, 82], et = [1, 83], W = [1, 84], se = [1, 85], ie = [1, 86], ne = [1, 87], oe = [1, 88], ce = [1, 89], le = [1, 90], he = [1, 91], de = [1, 92], Te = [1, 93], pe = [1, 94], Ee = [1, 95], ue = [1, 96], fe = [1, 97], _e = [1, 98], ge = [1, 99], xe = [1, 100], Ie = [1, 101], ye = [1, 102], Re = [1, 103], Oe = [1, 104], Le = [1, 105], be = [2, 78], mt = [4, 5, 17, 51, 53, 54], Pt = [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], me = [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], qt = [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], Ae = [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], zt = [5, 52], K = [70, 71, 72, 73], ot = [1, 151], Ut = { + }, "o"), t = [1, 2], a = [1, 3], r = [1, 4], i = [2, 4], o = [1, 9], s = [1, 11], n = [1, 12], E = [1, 14], T = [1, 15], l = [1, 17], x = [1, 18], u = [1, 19], O = [1, 25], p = [1, 26], f = [1, 27], _ = [1, 28], I = [1, 29], L = [1, 30], b = [1, 31], S = [1, 32], A = [1, 33], N = [1, 34], B = [1, 35], V = [1, 36], H = [1, 37], U = [1, 38], G = [1, 39], X = [1, 40], j = [1, 42], q = [1, 43], st = [1, 44], tt = [1, 45], it = [1, 46], Y = [1, 47], C = [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], m = [1, 80], D = [1, 81], lt = [1, 82], et = [1, 83], W = [1, 84], se = [1, 85], ie = [1, 86], ne = [1, 87], oe = [1, 88], ce = [1, 89], le = [1, 90], he = [1, 91], de = [1, 92], Te = [1, 93], pe = [1, 94], Ee = [1, 95], ue = [1, 96], fe = [1, 97], _e = [1, 98], ge = [1, 99], xe = [1, 100], Ie = [1, 101], ye = [1, 102], Re = [1, 103], Oe = [1, 104], Le = [1, 105], be = [2, 78], mt = [4, 5, 17, 51, 53, 54], Pt = [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], me = [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], qt = [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], Ae = [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], zt = [5, 52], K = [70, 71, 72, 73], ot = [1, 151], Ut = { trace: /* @__PURE__ */ g(function() { }, "trace"), yy: {}, @@ -301,7 +301,7 @@ var $t = (function() { 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: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: E, 15: T, 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 51: U, 53: G, 54: Q, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, e(C, [2, 5]), { 9: 48, 13: 13, 14: E, 15: T, 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 51: U, 53: G, 54: Q, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, e(C, [2, 7]), e(C, [2, 8]), e(C, [2, 9]), e(C, [2, 15]), { 13: 49, 51: U, 53: G, 54: Q }, { 16: [1, 50] }, { 5: [1, 51] }, { 5: [1, 54], 20: [1, 52], 21: [1, 53] }, { 23: 55, 73: Y }, { 23: 56, 73: Y }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, { 5: [1, 61] }, e(C, [2, 30]), e(C, [2, 31]), { 33: [1, 62] }, { 35: [1, 63] }, e(C, [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: Y }, { 69: 78, 72: [1, 79], 78: m, 79: D, 80: lt, 81: et, 82: W, 83: se, 84: ie, 85: ne, 86: oe, 87: ce, 88: le, 89: he, 90: de, 91: Te, 92: pe, 93: Ee, 94: ue, 95: fe, 96: _e, 97: ge, 98: xe, 99: Ie, 100: ye, 101: Re, 102: Oe, 103: Le }, { 57: 106, 59: [1, 107], 67: [1, 108], 68: [1, 109] }, { 23: 110, 73: Y }, { 23: 111, 73: Y }, { 23: 112, 73: Y }, { 23: 113, 73: Y }, 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], be), e(C, [2, 6]), e(C, [2, 16]), e(mt, [2, 10], { 11: 114 }), e(C, [2, 18]), { 5: [1, 116], 20: [1, 115] }, { 5: [1, 117] }, e(C, [2, 22]), { 5: [1, 118] }, { 5: [1, 119] }, e(C, [2, 25]), e(C, [2, 26]), e(C, [2, 27]), e(C, [2, 28]), e(C, [2, 29]), e(C, [2, 32]), e(C, [2, 33]), e(Pt, i, { 7: 120 }), e(Pt, i, { 7: 121 }), e(Pt, i, { 7: 122 }), e(me, i, { 41: 123, 7: 124 }), e(qt, i, { 43: 125, 7: 126 }), e(qt, i, { 7: 126, 43: 127 }), e(Ae, i, { 46: 128, 7: 129 }), e(Pt, i, { 7: 130 }), { 5: [1, 132], 52: [1, 131] }, { 5: [1, 134], 52: [1, 133] }, e(zt, be, { 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: Y }, { 69: 146, 78: m, 79: D, 80: lt, 81: et, 82: W, 83: se, 84: ie, 85: ne, 86: oe, 87: ce, 88: le, 89: he, 90: de, 91: Te, 92: pe, 93: Ee, 94: ue, 95: fe, 96: _e, 97: ge, 98: xe, 99: Ie, 100: ye, 101: Re, 102: Oe, 103: Le }, e(K, [2, 79]), e(K, [2, 80]), e(K, [2, 81]), e(K, [2, 82]), e(K, [2, 83]), e(K, [2, 84]), e(K, [2, 85]), e(K, [2, 86]), e(K, [2, 87]), e(K, [2, 88]), e(K, [2, 89]), e(K, [2, 90]), e(K, [2, 91]), e(K, [2, 92]), e(K, [2, 93]), e(K, [2, 94]), e(K, [2, 95]), e(K, [2, 96]), e(K, [2, 97]), e(K, [2, 98]), e(K, [2, 99]), e(K, [2, 100]), e(K, [2, 101]), e(K, [2, 102]), e(K, [2, 103]), e(K, [2, 104]), { 23: 147, 73: Y }, { 23: 149, 60: 148, 73: Y }, { 73: [2, 68] }, { 73: [2, 69] }, { 58: 150, 104: ot }, { 58: 152, 104: ot }, { 58: 153, 104: ot }, { 58: 154, 104: ot }, { 4: [1, 157], 5: [1, 159], 12: 156, 13: 158, 17: [1, 155], 51: U, 53: G, 54: Q }, { 5: [1, 160] }, e(C, [2, 20]), e(C, [2, 21]), e(C, [2, 23]), e(C, [2, 24]), { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: E, 15: T, 17: [1, 161], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 51: U, 53: G, 54: Q, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: E, 15: T, 17: [1, 162], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 51: U, 53: G, 54: Q, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: E, 15: T, 17: [1, 163], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 51: U, 53: G, 54: Q, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 17: [1, 164] }, { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: E, 15: T, 17: [2, 47], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 50: [1, 165], 51: U, 53: G, 54: Q, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 17: [1, 166] }, { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: E, 15: T, 17: [2, 45], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 49: [1, 167], 51: U, 53: G, 54: Q, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 17: [1, 168] }, { 17: [1, 169] }, { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: E, 15: T, 17: [2, 43], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 48: [1, 170], 51: U, 53: G, 54: Q, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: E, 15: T, 17: [1, 171], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 51: U, 53: G, 54: Q, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 16: [1, 172] }, e(C, [2, 50]), { 16: [1, 173] }, e(C, [2, 55]), e(zt, [2, 76]), { 76: [1, 174] }, { 16: [1, 175] }, e(C, [2, 52]), { 16: [1, 176] }, e(C, [2, 57]), e(C, [2, 53]), { 23: 177, 73: Y }, { 23: 178, 73: Y }, { 23: 179, 73: Y }, { 58: 180, 104: ot }, { 23: 181, 72: [1, 182], 73: Y }, { 58: 183, 104: ot }, { 58: 184, 104: ot }, { 66: [1, 185], 104: [2, 67] }, { 5: [2, 60] }, { 5: [2, 105] }, { 5: [2, 61] }, { 5: [2, 62] }, { 5: [2, 63] }, e(C, [2, 17]), e(mt, [2, 11]), { 13: 186, 51: U, 53: G, 54: Q }, e(mt, [2, 13]), e(mt, [2, 14]), e(C, [2, 19]), e(C, [2, 35]), e(C, [2, 36]), e(C, [2, 37]), e(C, [2, 38]), { 16: [1, 187] }, e(C, [2, 39]), { 16: [1, 188] }, e(C, [2, 40]), e(C, [2, 41]), { 16: [1, 189] }, e(C, [2, 42]), { 5: [1, 190] }, { 5: [1, 191] }, { 77: [1, 192] }, { 5: [1, 193] }, { 5: [1, 194] }, { 58: 195, 104: ot }, { 58: 196, 104: ot }, { 58: 197, 104: ot }, { 5: [2, 75] }, { 58: 198, 104: ot }, { 23: 199, 73: Y }, { 5: [2, 58] }, { 5: [2, 59] }, { 23: 200, 73: Y }, e(mt, [2, 12]), e(me, i, { 7: 124, 41: 201 }), e(qt, i, { 7: 126, 43: 202 }), e(Ae, i, { 7: 129, 46: 203 }), e(C, [2, 49]), e(C, [2, 54]), e(zt, [2, 77]), e(C, [2, 51]), e(C, [2, 56]), { 5: [2, 70] }, { 5: [2, 71] }, { 5: [2, 72] }, { 5: [2, 73] }, { 58: 204, 104: ot }, { 104: [2, 66] }, { 17: [2, 48] }, { 17: [2, 46] }, { 17: [2, 44] }, { 5: [2, 74] }], + 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: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 51: U, 53: G, 54: X, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, e(C, [2, 5]), { 9: 48, 13: 13, 14: E, 15: T, 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 51: U, 53: G, 54: X, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, e(C, [2, 7]), e(C, [2, 8]), e(C, [2, 9]), e(C, [2, 15]), { 13: 49, 51: U, 53: G, 54: X }, { 16: [1, 50] }, { 5: [1, 51] }, { 5: [1, 54], 20: [1, 52], 21: [1, 53] }, { 23: 55, 73: Y }, { 23: 56, 73: Y }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, { 5: [1, 61] }, e(C, [2, 30]), e(C, [2, 31]), { 33: [1, 62] }, { 35: [1, 63] }, e(C, [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: Y }, { 69: 78, 72: [1, 79], 78: m, 79: D, 80: lt, 81: et, 82: W, 83: se, 84: ie, 85: ne, 86: oe, 87: ce, 88: le, 89: he, 90: de, 91: Te, 92: pe, 93: Ee, 94: ue, 95: fe, 96: _e, 97: ge, 98: xe, 99: Ie, 100: ye, 101: Re, 102: Oe, 103: Le }, { 57: 106, 59: [1, 107], 67: [1, 108], 68: [1, 109] }, { 23: 110, 73: Y }, { 23: 111, 73: Y }, { 23: 112, 73: Y }, { 23: 113, 73: Y }, 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], be), e(C, [2, 6]), e(C, [2, 16]), e(mt, [2, 10], { 11: 114 }), e(C, [2, 18]), { 5: [1, 116], 20: [1, 115] }, { 5: [1, 117] }, e(C, [2, 22]), { 5: [1, 118] }, { 5: [1, 119] }, e(C, [2, 25]), e(C, [2, 26]), e(C, [2, 27]), e(C, [2, 28]), e(C, [2, 29]), e(C, [2, 32]), e(C, [2, 33]), e(Pt, i, { 7: 120 }), e(Pt, i, { 7: 121 }), e(Pt, i, { 7: 122 }), e(me, i, { 41: 123, 7: 124 }), e(qt, i, { 43: 125, 7: 126 }), e(qt, i, { 7: 126, 43: 127 }), e(Ae, i, { 46: 128, 7: 129 }), e(Pt, i, { 7: 130 }), { 5: [1, 132], 52: [1, 131] }, { 5: [1, 134], 52: [1, 133] }, e(zt, be, { 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: Y }, { 69: 146, 78: m, 79: D, 80: lt, 81: et, 82: W, 83: se, 84: ie, 85: ne, 86: oe, 87: ce, 88: le, 89: he, 90: de, 91: Te, 92: pe, 93: Ee, 94: ue, 95: fe, 96: _e, 97: ge, 98: xe, 99: Ie, 100: ye, 101: Re, 102: Oe, 103: Le }, e(K, [2, 79]), e(K, [2, 80]), e(K, [2, 81]), e(K, [2, 82]), e(K, [2, 83]), e(K, [2, 84]), e(K, [2, 85]), e(K, [2, 86]), e(K, [2, 87]), e(K, [2, 88]), e(K, [2, 89]), e(K, [2, 90]), e(K, [2, 91]), e(K, [2, 92]), e(K, [2, 93]), e(K, [2, 94]), e(K, [2, 95]), e(K, [2, 96]), e(K, [2, 97]), e(K, [2, 98]), e(K, [2, 99]), e(K, [2, 100]), e(K, [2, 101]), e(K, [2, 102]), e(K, [2, 103]), e(K, [2, 104]), { 23: 147, 73: Y }, { 23: 149, 60: 148, 73: Y }, { 73: [2, 68] }, { 73: [2, 69] }, { 58: 150, 104: ot }, { 58: 152, 104: ot }, { 58: 153, 104: ot }, { 58: 154, 104: ot }, { 4: [1, 157], 5: [1, 159], 12: 156, 13: 158, 17: [1, 155], 51: U, 53: G, 54: X }, { 5: [1, 160] }, e(C, [2, 20]), e(C, [2, 21]), e(C, [2, 23]), e(C, [2, 24]), { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [1, 161], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 51: U, 53: G, 54: X, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [1, 162], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 51: U, 53: G, 54: X, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [1, 163], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 51: U, 53: G, 54: X, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 17: [1, 164] }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [2, 47], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 50: [1, 165], 51: U, 53: G, 54: X, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 17: [1, 166] }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [2, 45], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 49: [1, 167], 51: U, 53: G, 54: X, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 17: [1, 168] }, { 17: [1, 169] }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [2, 43], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 48: [1, 170], 51: U, 53: G, 54: X, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [1, 171], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: H, 51: U, 53: G, 54: X, 56: j, 61: q, 62: st, 63: tt, 64: it, 73: Y }, { 16: [1, 172] }, e(C, [2, 50]), { 16: [1, 173] }, e(C, [2, 55]), e(zt, [2, 76]), { 76: [1, 174] }, { 16: [1, 175] }, e(C, [2, 52]), { 16: [1, 176] }, e(C, [2, 57]), e(C, [2, 53]), { 23: 177, 73: Y }, { 23: 178, 73: Y }, { 23: 179, 73: Y }, { 58: 180, 104: ot }, { 23: 181, 72: [1, 182], 73: Y }, { 58: 183, 104: ot }, { 58: 184, 104: ot }, { 66: [1, 185], 104: [2, 67] }, { 5: [2, 60] }, { 5: [2, 105] }, { 5: [2, 61] }, { 5: [2, 62] }, { 5: [2, 63] }, e(C, [2, 17]), e(mt, [2, 11]), { 13: 186, 51: U, 53: G, 54: X }, e(mt, [2, 13]), e(mt, [2, 14]), e(C, [2, 19]), e(C, [2, 35]), e(C, [2, 36]), e(C, [2, 37]), e(C, [2, 38]), { 16: [1, 187] }, e(C, [2, 39]), { 16: [1, 188] }, e(C, [2, 40]), e(C, [2, 41]), { 16: [1, 189] }, e(C, [2, 42]), { 5: [1, 190] }, { 5: [1, 191] }, { 77: [1, 192] }, { 5: [1, 193] }, { 5: [1, 194] }, { 58: 195, 104: ot }, { 58: 196, 104: ot }, { 58: 197, 104: ot }, { 5: [2, 75] }, { 58: 198, 104: ot }, { 23: 199, 73: Y }, { 5: [2, 58] }, { 5: [2, 59] }, { 23: 200, 73: Y }, e(mt, [2, 12]), e(me, i, { 7: 124, 41: 201 }), e(qt, i, { 7: 126, 43: 202 }), e(Ae, i, { 7: 129, 46: 203 }), e(C, [2, 49]), e(C, [2, 54]), e(zt, [2, 77]), e(C, [2, 51]), e(C, [2, 56]), { 5: [2, 70] }, { 5: [2, 71] }, { 5: [2, 72] }, { 5: [2, 73] }, { 58: 204, 104: ot }, { 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: /* @__PURE__ */ g(function(w, v) { if (v.recoverable) @@ -312,13 +312,13 @@ var $t = (function() { } }, "parseError"), parse: /* @__PURE__ */ g(function(w) { - var v = this, k = [0], y = [], z = [null], c = [], At = this.table, d = "", Dt = 0, Se = 0, Ze = 2, we = 1, Qe = c.slice.call(arguments, 1), X = Object.create(this.lexer), gt = { yy: {} }; + var v = this, k = [0], y = [], z = [null], c = [], At = this.table, d = "", Dt = 0, Se = 0, Ze = 2, we = 1, Qe = c.slice.call(arguments, 1), J = Object.create(this.lexer), gt = { yy: {} }; for (var Gt in this.yy) Object.prototype.hasOwnProperty.call(this.yy, Gt) && (gt.yy[Gt] = this.yy[Gt]); - X.setInput(w, gt.yy), gt.yy.lexer = X, gt.yy.parser = this, typeof X.yylloc > "u" && (X.yylloc = {}); - var Xt = X.yylloc; + J.setInput(w, gt.yy), gt.yy.lexer = J, gt.yy.parser = this, typeof J.yylloc > "u" && (J.yylloc = {}); + var Xt = J.yylloc; c.push(Xt); - var $e = X.options && X.options.ranges; + var $e = J.options && J.options.ranges; typeof gt.yy.parseError == "function" ? this.parseError = gt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; function je(nt) { k.length = k.length - 2 * nt, z.length = z.length - nt, c.length = c.length - nt; @@ -326,7 +326,7 @@ var $t = (function() { g(je, "popStack"); function Ne() { var nt; - return nt = y.pop() || X.lex() || we, typeof nt != "number" && (nt instanceof Array && (y = nt, nt = y.pop()), nt = v.symbols_[nt] || nt), nt; + return nt = y.pop() || J.lex() || we, typeof nt != "number" && (nt instanceof Array && (y = nt, nt = y.pop()), nt = v.symbols_[nt] || nt), nt; } g(Ne, "lex"); for (var rt, xt, ct, Jt, Ot = {}, vt, Tt, Pe, Ct; ; ) { @@ -335,12 +335,12 @@ var $t = (function() { Ct = []; for (vt in At[xt]) this.terminals_[vt] && vt > Ze && Ct.push("'" + this.terminals_[vt] + "'"); - X.showPosition ? Zt = "Parse error on line " + (Dt + 1) + `: -` + X.showPosition() + ` + J.showPosition ? Zt = "Parse error on line " + (Dt + 1) + `: +` + J.showPosition() + ` Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt = "Parse error on line " + (Dt + 1) + ": Unexpected " + (rt == we ? "end of input" : "'" + (this.terminals_[rt] || rt) + "'"), this.parseError(Zt, { - text: X.match, + text: J.match, token: this.terminals_[rt] || rt, - line: X.yylineno, + line: J.yylineno, loc: Xt, expected: Ct }); @@ -349,7 +349,7 @@ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt throw new Error("Parse Error: multiple actions possible at state: " + xt + ", token: " + rt); switch (ct[0]) { case 1: - k.push(rt), z.push(X.yytext), c.push(X.yylloc), k.push(ct[1]), rt = null, Se = X.yyleng, d = X.yytext, Dt = X.yylineno, Xt = X.yylloc; + k.push(rt), z.push(J.yytext), c.push(J.yylloc), k.push(ct[1]), rt = null, Se = J.yyleng, d = J.yytext, Dt = J.yylineno, Xt = J.yylloc; break; case 2: if (Tt = this.productions_[ct[1]][1], Ot.$ = z[z.length - Tt], Ot._$ = { @@ -742,7 +742,7 @@ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt return 10; } }, "anonymous"), - rules: [/^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[0-9]+(?=[ \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], + 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 ut; @@ -847,7 +847,7 @@ var fr = $t, _r = { }), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0]; } addActor(e, t, a, r, i) { - let n = this.state.records.currentBox, s; + let o = this.state.records.currentBox, s; if (i !== void 0) { let E; i.includes(` @@ -857,17 +857,17 @@ var fr = $t, _r = { }`, s = cr(E, { schema: lr }); } r = s?.type ?? r, s?.alias && (!a || a.text === t) && (a = { text: s.alias, wrap: a?.wrap, type: r }); - const o = this.state.records.actors.get(e); - if (o) { - if (this.state.records.currentBox && o.box && this.state.records.currentBox !== o.box) + const 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: ${o.name} can't be in '${o.box.name}' and in '${this.state.records.currentBox.name}' at the same time.` + `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 (n = o.box ? o.box : this.state.records.currentBox, o.box = n, o && t === o.name && a == null) + if (o = n.box ? n.box : this.state.records.currentBox, n.box = o, 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: n, + box: o, name: t, description: a.text, wrap: a.wrap ?? this.autoWrap(), @@ -901,16 +901,16 @@ var fr = $t, _r = { answer: r }); } - addSignal(e, t, a, r, i = !1, n) { + addSignal(e, t, a, r, i = !1, o) { if (r === this.LINETYPE.ACTIVE_END && this.activationCount(e ?? "") < 1) { - const o = new Error("Trying to inactivate an inactive participant (" + e + ")"); - throw o.hash = { + const n = new Error("Trying to inactivate an inactive participant (" + e + ")"); + throw n.hash = { text: "->>-", token: "->>-", line: "1", loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 }, expected: ["'ACTIVE_PARTICIPANT'"] - }, o; + }, n; } return this.state.records.messages.push({ id: this.state.records.messages.length.toString(), @@ -920,7 +920,7 @@ var fr = $t, _r = { wrap: a?.wrap ?? this.autoWrap(), type: r, activate: i, - centralConnection: n ?? 0 + centralConnection: o ?? 0 }), !0; } hasAtLeastOneBox() { @@ -994,9 +994,9 @@ var fr = $t, _r = { const s = new Option().style; s.color = a, s.color !== a && (a = "transparent", r = e.trim()); } - const { wrap: i, cleanedText: n } = this.extractWrap(r); + const { wrap: i, cleanedText: o } = this.extractWrap(r); return { - text: n ? Bt(n, $()) : void 0, + text: o ? Bt(o, $()) : void 0, color: a, wrap: i }; @@ -1034,10 +1034,10 @@ var fr = $t, _r = { try { const r = {}; let i = Bt(t.text, $()); - const n = i.indexOf("@"); + const o = i.indexOf("@"); i = i.replace(/=/g, "="), i = i.replace(/&/g, "&"); - const s = i.slice(0, n - 1).trim(), o = i.slice(n + 1).trim(); - r[s] = o, this.insertLinks(a, r); + const s = i.slice(0, o - 1).trim(), n = i.slice(o + 1).trim(); + r[s] = n, this.insertLinks(a, r); } catch (r) { at.error("error while parsing actor link text", r); } @@ -1071,8 +1071,8 @@ var fr = $t, _r = { addDetails(e, t) { const a = this.getActor(e), r = document.getElementById(t.text); try { - const i = r.innerHTML, n = JSON.parse(i); - n.properties && this.insertProperties(a, n.properties), n.links && this.insertLinks(a, n.links); + const i = r.innerHTML, o = JSON.parse(i); + o.properties && this.insertProperties(a, o.properties), o.links && this.insertLinks(a, o.links); } catch (i) { at.error("error while parsing actor details text", i); } @@ -1314,6 +1314,11 @@ var fr = $t, _r = { stroke: none; } + .sectionTitle, .sectionTitle > tspan { + fill: ${e.loopTextColor}; + stroke: none; + } + .loopLine { stroke-width: 2px; stroke-dasharray: 2, 2; @@ -1374,24 +1379,24 @@ var fr = $t, _r = { }, "drawRect"), Or = /* @__PURE__ */ g(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 }; - const n = t.links, s = t.actorCnt, o = t.rectData; + const o = t.links, s = t.actorCnt, n = t.rectData; var E = "none"; i && (E = "block !important"); const T = e.append("g"); T.attr("id", "actor" + s + "_popup"), T.attr("class", "actorPopupMenu"), T.attr("display", E); var l = ""; - o.class !== void 0 && (l = " " + o.class); - let x = o.width > a ? o.width : a; + n.class !== void 0 && (l = " " + n.class); + let x = n.width > a ? n.width : a; const u = T.append("rect"); - if (u.attr("class", "actorPopupMenuPanel" + l), u.attr("x", o.x), u.attr("y", o.height), u.attr("fill", o.fill), u.attr("stroke", o.stroke), u.attr("width", x), u.attr("height", o.height), u.attr("rx", o.rx), u.attr("ry", o.ry), n != null) { + if (u.attr("class", "actorPopupMenuPanel" + l), u.attr("x", n.x), u.attr("y", n.height), u.attr("fill", n.fill), u.attr("stroke", n.stroke), u.attr("width", x), u.attr("height", n.height), u.attr("rx", n.rx), u.attr("ry", n.ry), o != null) { var O = 20; - for (let _ in n) { - var p = T.append("a"), f = Ce.sanitizeUrl(n[_]); + for (let _ in o) { + var p = T.append("a"), f = Ce.sanitizeUrl(o[_]); p.attr("xlink:href", f), p.attr("target", "_blank"), Ur(r)( _, p, - o.x + 10, - o.height + O, + n.x + 10, + n.height + O, x, 20, { class: "actor" }, @@ -1399,30 +1404,30 @@ var fr = $t, _r = { ), O += 30; } } - return u.attr("height", O), { height: o.height + O, width: x }; + return u.attr("height", O), { height: n.height + O, width: x }; }, "drawPopup"), Ft = /* @__PURE__ */ g(function(e) { return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"; }, "popupMenuToggle"), Wt = /* @__PURE__ */ g(async function(e, t, a = null) { let r = e.append("foreignObject"); const i = await Be(t.text, Yt()), 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") { - const o = e.node().firstChild; - o.setAttribute("height", s.height + 2 * t.textMargin); - const E = o.getBBox(); + const n = e.node().firstChild; + n.setAttribute("height", s.height + 2 * t.textMargin); + const E = n.getBBox(); r.attr("x", Math.round(E.x + E.width / 2 - s.width / 2)).attr("y", Math.round(E.y + E.height / 2 - s.height / 2)); } else if (a) { - let { startx: o, stopx: E, starty: T } = a; - if (o > E) { - const l = o; - o = E, E = l; + let { startx: n, stopx: E, starty: T } = a; + if (n > E) { + const l = n; + n = E, E = l; } - r.attr("x", Math.round(o + Math.abs(o - E) / 2 - s.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(T)) : r.attr("y", Math.round(T - s.height)); + r.attr("x", Math.round(n + Math.abs(n - E) / 2 - s.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(T)) : r.attr("y", Math.round(T - s.height)); } return [r]; }, "drawKatex"), bt = /* @__PURE__ */ g(function(e, t) { let a = 0, r = 0; - const i = t.text.split(P.lineBreakRegex), [n, s] = Me(t.fontSize); - let o = [], E = 0, T = /* @__PURE__ */ g(() => t.y, "yfunc"); + const i = t.text.split(P.lineBreakRegex), [o, s] = Me(t.fontSize); + let n = [], E = 0, T = /* @__PURE__ */ g(() => t.y, "yfunc"); if (t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0) switch (t.valign) { case "top": @@ -1456,7 +1461,7 @@ var fr = $t, _r = { break; } for (let [l, x] of i.entries()) { - t.textMargin !== void 0 && t.textMargin === 0 && n !== void 0 && (E = l * n); + t.textMargin !== void 0 && t.textMargin === 0 && o !== void 0 && (E = l * o); const u = e.append("text"); u.attr("x", t.x), u.attr("y", T()), t.anchor !== void 0 && u.attr("text-anchor", t.anchor).attr("dominant-baseline", t.dominantBaseline).attr("alignment-baseline", t.alignmentBaseline), t.fontFamily !== void 0 && u.style("font-family", t.fontFamily), s !== void 0 && u.style("font-size", s), t.fontWeight !== void 0 && u.style("font-weight", t.fontWeight), t.fill !== void 0 && u.attr("fill", t.fill), t.class !== void 0 && u.attr("class", t.class), t.dy !== void 0 ? u.attr("dy", t.dy) : E !== 0 && u.attr("dy", E); const O = x || dr; @@ -1465,34 +1470,34 @@ var fr = $t, _r = { p.attr("x", t.x), t.fill !== void 0 && p.attr("fill", t.fill), p.text(O); } else u.text(O); - t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (r += (u._groups || u)[0][0].getBBox().height, a = r), o.push(u); + t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (r += (u._groups || u)[0][0].getBBox().height, a = r), n.push(u); } - return o; + return n; }, "drawText"), Ve = /* @__PURE__ */ g(function(e, t) { - function a(i, n, s, o, E) { - return i + "," + n + " " + (i + s) + "," + n + " " + (i + s) + "," + (n + o - E) + " " + (i + s - E * 1.2) + "," + (n + o) + " " + i + "," + (n + o); + function a(i, o, s, n, E) { + return i + "," + o + " " + (i + s) + "," + o + " " + (i + s) + "," + (o + n - E) + " " + (i + s - E * 1.2) + "," + (o + n) + " " + i + "," + (o + n); } g(a, "genPoints"); const 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, bt(e, t), r; }, "drawLabel"), M = -1, Ye = /* @__PURE__ */ g((e, t, a, r) => { e.select && a.forEach((i) => { - const n = t.get(i), s = e.select("#actor" + n.actorCnt); - !r.mirrorActors && n.stopy ? s.attr("y2", n.stopy + n.height / 2) : r.mirrorActors && s.attr("y2", n.stopy); + const o = t.get(i), s = e.select("#actor" + o.actorCnt); + !r.mirrorActors && o.stopy ? s.attr("y2", o.stopy + o.height / 2) : r.mirrorActors && s.attr("y2", o.stopy); }); }, "fixLifeLineHeights"), Lr = /* @__PURE__ */ g(function(e, t, a, r, i) { - const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + t.height, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower(); + const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + t.height, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower(); var p = O; - r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && p.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", o).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), p = O.append("g"), t.actorCnt = M, t.links != null && p.attr("id", "root-" + M), E === "neo" && p.attr("data-look", "neo")); + r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && p.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).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), p = O.append("g"), t.actorCnt = M, t.links != null && p.attr("id", "root-" + M), E === "neo" && p.attr("data-look", "neo")); const f = dt(); var _ = "actor"; - t.properties?.class ? _ = t.properties.class : f.fill = "#eaeaea", r ? _ += ` ${_t}` : _ += ` ${ft}`, f.x = t.x, f.y = n, f.width = t.width, f.height = t.height, f.class = _, f.rx = 3, f.ry = 3, f.name = t.name, E === "neo" && (f.rx = 6, f.ry = 6); + t.properties?.class ? _ = t.properties.class : f.fill = "#eaeaea", r ? _ += ` ${_t}` : _ += ` ${ft}`, f.x = t.x, f.y = o, f.width = t.width, f.height = t.height, f.class = _, f.rx = 3, f.ry = 3, f.name = t.name, E === "neo" && (f.rx = 6, f.ry = 6); const I = St(p, f), L = i.get(t.name) ?? 0; if (pt.has(T) && (I.style("stroke", u[L % u.length]), I.style("fill", x[L % u.length])), E === "neo" && I.attr("filter", "url(#drop-shadow)"), t.rectData = f, t.properties?.icon) { const S = t.properties.icon.trim(); S.charAt(0) === "@" ? re(p, f.x + f.width - 20, f.y + 10, S.substr(1)) : ae(p, f.x + f.width - 20, f.y + 10, S); } - r || (p.attr("data-et", "participant"), p.attr("data-type", "participant"), p.attr("data-id", t.name)), Et(a, Z(t.description))( + r || (p.attr("data-et", "participant"), p.attr("data-type", "participant"), p.attr("data-id", t.name)), Et(a, Q(t.description))( t.description, p, f.x, @@ -1509,12 +1514,12 @@ var fr = $t, _r = { } return b; }, "drawActorTypeParticipant"), br = /* @__PURE__ */ g(function(e, t, a, r, i) { - const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + t.height, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower(); + const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + t.height, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower(); var p = O; - r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && p.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", o).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), p = O.append("g"), t.actorCnt = M, t.links != null && p.attr("id", "root-" + M), E === "neo" && p.attr("data-look", "neo")); + r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && p.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).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), p = O.append("g"), t.actorCnt = M, t.links != null && p.attr("id", "root-" + M), E === "neo" && p.attr("data-look", "neo")); const f = dt(); var _ = "actor"; - t.properties?.class ? _ = t.properties.class : f.fill = "#eaeaea", r ? _ += ` ${_t}` : _ += ` ${ft}`, f.x = t.x, f.y = n, f.width = t.width, f.height = t.height, f.class = _, f.name = t.name; + t.properties?.class ? _ = t.properties.class : f.fill = "#eaeaea", r ? _ += ` ${_t}` : _ += ` ${ft}`, f.x = t.x, f.y = o, f.width = t.width, f.height = t.height, f.class = _, f.name = t.name; const I = 6, L = { ...f, x: f.x + -I, @@ -1527,7 +1532,7 @@ var fr = $t, _r = { const B = t.properties.icon.trim(); B.charAt(0) === "@" ? re(p, f.x + f.width - 20, f.y + 10, B.substr(1)) : ae(p, f.x + f.width - 20, f.y + 10, B); } - Et(a, Z(t.description))( + Et(a, Q(t.description))( t.description, p, f.x - I, @@ -1544,12 +1549,12 @@ var fr = $t, _r = { } return r || (p.attr("data-et", "participant"), p.attr("data-type", "collections"), p.attr("data-id", t.name)), N; }, "drawActorTypeCollections"), mr = /* @__PURE__ */ g(function(e, t, a, r, i) { - const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + t.height, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower(); + const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + t.height, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower(); let p = O; - r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && p.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", o).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), p = O.append("g"), t.actorCnt = M, t.links != null && p.attr("id", "root-" + M), E === "neo" && p.attr("data-look", "neo")); + r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && p.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).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), p = O.append("g"), t.actorCnt = M, t.links != null && p.attr("id", "root-" + M), E === "neo" && p.attr("data-look", "neo")); const f = dt(); let _ = "actor"; - t.properties?.class ? _ = t.properties.class : f.fill = "#eaeaea", r ? _ += ` ${_t}` : _ += ` ${ft}`, p.attr("class", _), f.x = t.x, f.y = n, f.width = t.width, f.height = t.height, f.name = t.name; + t.properties?.class ? _ = t.properties.class : f.fill = "#eaeaea", r ? _ += ` ${_t}` : _ += ` ${ft}`, p.attr("class", _), f.x = t.x, f.y = o, f.width = t.width, f.height = t.height, f.name = t.name; const I = f.height / 2, L = I / (2.5 + f.height / 50), b = p.append("g"), S = p.append("g"), A = `M ${f.x},${f.y + I} a ${L},${I} 0 0 0 0,${f.height} h ${f.width - 2 * L} @@ -1566,7 +1571,7 @@ var fr = $t, _r = { const H = t.properties.icon.trim(), U = f.x + f.width - 20, G = f.y + 10; H.charAt(0) === "@" ? re(p, U, G, H.substr(1)) : ae(p, U, G, H); } - Et(a, Z(t.description))( + Et(a, Q(t.description))( t.description, p, f.x, @@ -1583,9 +1588,9 @@ var fr = $t, _r = { t.height = H.height, B = H.height; } return r || (p.attr("data-et", "participant"), p.attr("data-type", "queue"), p.attr("data-id", t.name)), B; -}, "drawActorTypeQueue"), Ar = /* @__PURE__ */ g(function(e, t, a, r, i, n) { - const s = r ? t.stopy : t.starty, o = t.x + t.width / 2, E = s + 75, { look: T, theme: l, themeVariables: x } = a, { bkgColorArray: u, borderColorArray: O, actorBorder: p, actorBkg: f } = x, _ = e.append("g").lower(); - r || (M++, _.append("line").attr("id", "actor" + M).attr("x1", o).attr("y1", E).attr("x2", o).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 = M); +}, "drawActorTypeQueue"), Ar = /* @__PURE__ */ g(function(e, t, a, r, i, o) { + const s = r ? t.stopy : t.starty, n = t.x + t.width / 2, E = s + 75, { look: T, theme: l, themeVariables: x } = a, { bkgColorArray: u, borderColorArray: O, actorBorder: p, actorBkg: f } = x, _ = e.append("g").lower(); + r || (M++, _.append("line").attr("id", "actor" + M).attr("x1", n).attr("y1", E).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 = M); const I = e.append("g"); let L = yt; r ? L += ` ${_t}` : L += ` ${ft}`, I.attr("class", L), I.attr("name", t.name); @@ -1593,10 +1598,10 @@ var fr = $t, _r = { b.x = t.x, b.y = s, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor"; const S = t.x + t.width / 2, A = s + 32, N = 22; I.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"), I.append("circle").attr("cx", S).attr("cy", A).attr("r", N).attr("filter", `${T === "neo" ? "url(#drop-shadow)" : ""}`), I.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${S}, ${A - N})`); - const B = n.get(t.name) ?? 0; + const B = o.get(t.name) ?? 0; pt.has(l) ? (I.style("stroke", O[B % O.length]), I.style("fill", u[B % O.length])) : (I.style("stroke", p), I.style("fill", f)); const V = I.node().getBBox(); - return t.height = V.height + 2 * (a?.sequence?.labelBoxHeight ?? 0), Et(a, Z(t.description))( + return t.height = V.height + 2 * (a?.sequence?.labelBoxHeight ?? 0), Et(a, Q(t.description))( t.description, I, b.x, @@ -1607,17 +1612,17 @@ var fr = $t, _r = { a ), r || (I.attr("data-et", "participant"), I.attr("data-type", "control"), I.attr("data-id", t.name)), t.height; }, "drawActorTypeControl"), Sr = /* @__PURE__ */ g(function(e, t, a, r, i) { - const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + 75, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower(), p = e.append("g"); + const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + 75, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower(), p = e.append("g"); let f = "actor"; r ? f += ` ${_t}` : f += ` ${ft}`, p.attr("class", f), p.attr("name", t.name); const _ = dt(); - _.x = t.x, _.y = n, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor"; - const I = t.x + t.width / 2, L = n + (r ? 10 : 25), b = 22; + _.x = t.x, _.y = o, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor"; + const I = t.x + t.width / 2, L = o + (r ? 10 : 25), b = 22; p.append("circle").attr("cx", I).attr("cy", L).attr("r", b).attr("width", t.width).attr("height", t.height), p.append("line").attr("x1", I - b).attr("x2", I + b).attr("y1", L + b).attr("y2", L + b).attr("stroke-width", 2), E === "neo" && p.attr("filter", "url(#drop-shadow)"); const S = i.get(t.name) ?? 0; pt.has(T) && (p.style("stroke", u[S % u.length]), p.style("fill", x[S % u.length])); const A = p.node().getBBox(); - return t.height = A.height + (a?.sequence?.labelBoxHeight ?? 0), r || (M++, O.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", o).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 = M), Et(a, Z(t.description))( + return t.height = A.height + (a?.sequence?.labelBoxHeight ?? 0), r || (M++, O.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).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 = M), Et(a, Q(t.description))( t.description, p, _.x, @@ -1628,12 +1633,12 @@ var fr = $t, _r = { a ), r ? p.attr("transform", `translate(0, ${b})`) : (p.attr("transform", `translate(0, ${b / 2 - 5})`), p.attr("data-et", "participant"), p.attr("data-type", "entity"), p.attr("data-id", t.name)), t.height; }, "drawActorTypeEntity"), wr = /* @__PURE__ */ g(function(e, t, a, r, i) { - const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + t.height + 2 * a.boxTextMargin, { theme: E, themeVariables: T, look: l } = a, { bkgColorArray: x, borderColorArray: u, actorBorder: O } = T, p = e.append("g").lower(); + const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + t.height + 2 * a.boxTextMargin, { theme: E, themeVariables: T, look: l } = a, { bkgColorArray: x, borderColorArray: u, actorBorder: O } = T, p = e.append("g").lower(); let f = p; - r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && f.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), f.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", o).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), f = p.append("g"), t.actorCnt = M, t.links != null && f.attr("id", "root-" + M), l === "neo" && f.attr("data-look", "neo")); + r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && f.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), f.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).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), f = p.append("g"), t.actorCnt = M, t.links != null && f.attr("id", "root-" + M), l === "neo" && f.attr("data-look", "neo")); const _ = dt(); let I = "actor"; - t.properties?.class ? I = t.properties.class : _.fill = "#eaeaea", r ? I += ` ${_t}` : I += ` ${ft}`, _.x = t.x, _.y = n, _.width = t.width, _.height = t.height, _.class = I, _.name = t.name, _.x = t.x, _.y = n; + t.properties?.class ? I = t.properties.class : _.fill = "#eaeaea", r ? I += ` ${_t}` : I += ` ${ft}`, _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.class = I, _.name = t.name, _.x = t.x, _.y = o; const L = _.width / 3, b = _.width / 3, S = L / 2, A = S / (2.5 + L / 50), N = f.append("g"); N.attr("class", I); const B = ` @@ -1646,7 +1651,7 @@ var fr = $t, _r = { `; N.append("path").attr("d", B), l === "neo" && N.attr("filter", "url(#drop-shadow)"); const V = i.get(t.name) ?? 0; - pt.has(E) ? (N.style("stroke", u[V % u.length]), N.style("fill", x[V % u.length])) : N.style("stroke", O), N.attr("transform", `translate(${L}, ${A})`), t.rectData = _, Et(a, Z(t.description))( + pt.has(E) ? (N.style("stroke", u[V % u.length]), N.style("fill", x[V % u.length])) : N.style("stroke", O), N.attr("transform", `translate(${L}, ${A})`), t.rectData = _, Et(a, Q(t.description))( t.description, f, _.x, @@ -1663,17 +1668,17 @@ var fr = $t, _r = { } return r || (f.attr("data-et", "participant"), f.attr("data-type", "database"), f.attr("data-id", t.name)), t.height; }, "drawActorTypeDatabase"), Nr = /* @__PURE__ */ g(function(e, t, a, r, i) { - const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + 80, E = 22, T = e.append("g").lower(), { look: l, theme: x, themeVariables: u } = a, { bkgColorArray: O, borderColorArray: p, actorBorder: f } = u; - r || (M++, T.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", o).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 = M); + const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + 80, E = 22, T = e.append("g").lower(), { look: l, theme: x, themeVariables: u } = a, { bkgColorArray: O, borderColorArray: p, actorBorder: f } = u; + r || (M++, T.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).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 = M); const _ = e.append("g"); let I = yt; r ? I += ` ${_t}` : I += ` ${ft}`, _.attr("class", I), _.attr("name", t.name); const L = dt(); - L.x = t.x, L.y = n, L.fill = "#eaeaea", L.width = t.width, L.height = t.height, L.class = "actor", _.append("line").attr("id", "actor-man-torso" + M).attr("x1", t.x + t.width / 2 - E * 2.5).attr("y1", n + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", n + 12), _.append("line").attr("id", "actor-man-arms" + M).attr("x1", t.x + t.width / 2 - E * 2.5).attr("y1", n + 2).attr("x2", t.x + t.width / 2 - E * 2.5).attr("y2", n + 22), _.append("circle").attr("cx", t.x + t.width / 2).attr("cy", n + 12).attr("r", E), l === "neo" && _.attr("filter", "url(#drop-shadow)"); + L.x = t.x, L.y = o, L.fill = "#eaeaea", L.width = t.width, L.height = t.height, L.class = "actor", _.append("line").attr("id", "actor-man-torso" + M).attr("x1", t.x + t.width / 2 - E * 2.5).attr("y1", o + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", o + 12), _.append("line").attr("id", "actor-man-arms" + M).attr("x1", t.x + t.width / 2 - E * 2.5).attr("y1", o + 2).attr("x2", t.x + t.width / 2 - E * 2.5).attr("y2", o + 22), _.append("circle").attr("cx", t.x + t.width / 2).attr("cy", o + 12).attr("r", E), l === "neo" && _.attr("filter", "url(#drop-shadow)"); const b = i.get(t.name) ?? 0; pt.has(x) ? (_.style("stroke", p[b % p.length]), _.style("fill", O[b % p.length])) : _.style("stroke", f); const S = _.node().getBBox(); - return t.height = S.height + (a.sequence.labelBoxHeight ?? 0), Et(a, Z(t.description))( + return t.height = S.height + (a.sequence.labelBoxHeight ?? 0), Et(a, Q(t.description))( t.description, _, L.x, @@ -1684,12 +1689,12 @@ var fr = $t, _r = { a ), _.attr("transform", `translate(0,${E / 2 + 10})`), r || (_.attr("data-et", "participant"), _.attr("data-type", "boundary"), _.attr("data-id", t.name)), t.height; }, "drawActorTypeBoundary"), Pr = /* @__PURE__ */ g(function(e, t, a, r, i) { - const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + 80, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u, actorBorder: O } = l, p = e.append("g").lower(); - r || (M++, p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", o).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 = M); + const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + 80, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u, actorBorder: O } = l, p = e.append("g").lower(); + r || (M++, p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).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 = M); const f = e.append("g"); let _ = yt; r ? _ += ` ${_t}` : _ += ` ${ft}`, f.attr("class", _), f.attr("name", t.name), r || f.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name); - const I = E === "neo" ? 0.5 : 1, L = E === "neo" ? n + (1 - I) * 30 : n; + const I = E === "neo" ? 0.5 : 1, L = E === "neo" ? o + (1 - I) * 30 : o; f.append("line").attr("id", "actor-man-torso" + M).attr("x1", s).attr("y1", L + 25 * I).attr("x2", s).attr("y2", L + 45 * I), f.append("line").attr("id", "actor-man-arms" + M).attr("x1", s - It / 2 * I).attr("y1", L + 33 * I).attr("x2", s + It / 2 * I).attr("y2", L + 33 * I), f.append("line").attr("x1", s - It / 2 * I).attr("y1", L + 60 * I).attr("x2", s).attr("y2", L + 45 * I), f.append("line").attr("x1", s).attr("y1", L + 45 * I).attr("x2", s + (It / 2 - 2) * I).attr("y2", L + 60 * I); const b = f.append("circle"); b.attr("cx", t.x + t.width / 2), b.attr("cy", L + 10 * I), b.attr("r", 15 * I), b.attr("width", t.width * I), b.attr("height", t.height * I); @@ -1698,7 +1703,7 @@ var fr = $t, _r = { const A = dt(); A.x = t.x, A.y = L, A.fill = "#eaeaea", A.width = t.width, A.height = t.height / I, A.class = "actor", A.rx = 3, A.ry = 3; const N = i.get(t.name) ?? 0; - return pt.has(T) ? (f.style("stroke", u[N % u.length]), f.style("fill", x[N % u.length])) : f.style("stroke", O), Et(a, Z(t.description))( + return pt.has(T) ? (f.style("stroke", u[N % u.length]), f.style("fill", x[N % u.length])) : f.style("stroke", O), Et(a, Q(t.description))( t.description, f, A.x, @@ -1708,17 +1713,17 @@ var fr = $t, _r = { { class: `actor ${yt}` }, a ), t.height; -}, "drawActorTypeActor"), kr = /* @__PURE__ */ g(async function(e, t, a, r, i, n, s) { - const o = s ?? new Map( - [...n.db.getActors().values()].map((E, T) => [E.name, T]) +}, "drawActorTypeActor"), kr = /* @__PURE__ */ g(async function(e, t, a, r, i, o, s) { + const n = s ?? new Map( + [...o.db.getActors().values()].map((E, T) => [E.name, T]) ); switch (t.type) { case "actor": - return await Pr(e, t, a, r, o); + return await Pr(e, t, a, r, n); case "participant": - return await Lr(e, t, a, r, o); + return await Lr(e, t, a, r, n); case "boundary": - return await Nr(e, t, a, r, o); + return await Nr(e, t, a, r, n); case "control": return await Ar( e, @@ -1726,16 +1731,16 @@ var fr = $t, _r = { a, r, i, - o + n ); case "entity": - return await Sr(e, t, a, r, o); + return await Sr(e, t, a, r, n); case "database": - return await wr(e, t, a, r, o); + return await wr(e, t, a, r, n); case "collections": - return await br(e, t, a, r, o); + return await br(e, t, a, r, n); case "queue": - return await mr(e, t, a, r, o); + return await mr(e, t, a, r, n); } }, "drawActor"), Dr = /* @__PURE__ */ g(function(e, t, a) { const i = e.append("g"); @@ -1751,18 +1756,18 @@ var fr = $t, _r = { ), i.lower(); }, "drawBox"), vr = /* @__PURE__ */ g(function(e) { return e.append("g"); -}, "anchorElement"), Cr = /* @__PURE__ */ g(function(e, t, a, r, i, n, s) { - const { theme: o, themeVariables: E } = r, { bkgColorArray: T, borderColorArray: l, mainBkg: x } = E, u = dt(), O = t.anchored, p = t.actor; +}, "anchorElement"), Cr = /* @__PURE__ */ g(function(e, t, a, r, i, o, s) { + const { theme: n, themeVariables: E } = r, { bkgColorArray: T, borderColorArray: l, mainBkg: x } = E, u = dt(), O = t.anchored, p = t.actor; u.x = t.startx, u.y = t.starty, u.class = "activation" + i % 3, u.width = t.stopx - t.startx, u.height = a - t.starty; const f = St(O, u), I = (s ?? new Map( - [...n.db.getActors().values()].map((L, b) => [L.name, b]) + [...o.db.getActors().values()].map((L, b) => [L.name, b]) )).get(p) ?? 0; - pt.has(o) && (f.style("stroke", l[I % l.length]), f.style("fill", T[I % l.length] ?? x)); + pt.has(n) && (f.style("stroke", l[I % l.length]), f.style("fill", T[I % l.length] ?? x)); }, "drawActivation"), Mr = /* @__PURE__ */ g(async function(e, t, a, r, i) { const { - boxMargin: n, + boxMargin: o, boxTextMargin: s, - labelBoxHeight: o, + labelBoxHeight: n, labelBoxWidth: E, messageFontFamily: T, messageFontSize: l, @@ -1777,16 +1782,16 @@ var fr = $t, _r = { ); }); let p = ee(); - p.text = a, p.x = t.startx, p.y = t.starty, p.fontFamily = T, p.fontSize = l, p.fontWeight = x, p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.width = Math.max(E ?? 0, 50), p.height = o + (r.look === "neo" ? 15 : 0) || 20, p.textMargin = s, p.class = "labelText", Ve(u, p), p = Ke(), p.text = t.title, p.x = t.startx + E / 2 + (t.stopx - t.startx) / 2, p.y = t.starty + n + s, p.anchor = "middle", p.valign = "middle", p.textMargin = s, p.class = "loopText", p.fontFamily = T, p.fontSize = l, p.fontWeight = x, p.wrap = !0; - let f = Z(p.text) ? await Wt(u, p, t) : bt(u, p); + p.text = a, p.x = t.startx, p.y = t.starty, p.fontFamily = T, p.fontSize = l, p.fontWeight = x, p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.width = Math.max(E ?? 0, 50), p.height = n + (r.look === "neo" ? 15 : 0) || 20, p.textMargin = s, p.class = "labelText", Ve(u, p), p = Ke(), p.text = t.title, p.x = t.startx + E / 2 + (t.stopx - t.startx) / 2, p.y = t.starty + o + s, p.anchor = "middle", p.valign = "middle", p.textMargin = s, p.class = "loopText", p.fontFamily = T, p.fontSize = l, p.fontWeight = x, p.wrap = !0; + let f = Q(p.text) ? await Wt(u, p, t) : bt(u, p); if (t.sectionTitles !== void 0) { for (const [_, I] of Object.entries(t.sectionTitles)) if (I.message) { - p.text = I.message, p.x = t.startx + (t.stopx - t.startx) / 2, p.y = t.sections[_].y + n + s, p.class = "loopText", p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.fontFamily = T, p.fontSize = l, p.fontWeight = x, p.wrap = t.wrap, Z(p.text) ? (t.starty = t.sections[_].y, await Wt(u, p, t)) : bt(u, p); + p.text = I.message, p.x = t.startx + (t.stopx - t.startx) / 2, p.y = t.sections[_].y + o + s, p.class = "sectionTitle", p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.fontFamily = T, p.fontSize = l, p.fontWeight = x, p.wrap = t.wrap, Q(p.text) ? (t.starty = t.sections[_].y, await Wt(u, p, t)) : bt(u, p); let L = Math.round( f.map((b) => (b._groups || b)[0][0].getBBox().height).reduce((b, S) => b + S) ); - t.sections[_].height += L - (n + s); + t.sections[_].height += L - (o + s); } } return t.height = Math.round(t.stopy - t.starty), u; @@ -1846,58 +1851,58 @@ var fr = $t, _r = { ry: 0 }; }, "getNoteRect"), Et = /* @__PURE__ */ (function() { - function e(n, s, o, E, T, l, x) { - const u = s.append("text").attr("x", o + T / 2).attr("y", E + l / 2 + 5).style("text-anchor", "middle").text(n); + function e(o, s, n, E, T, l, x) { + const u = s.append("text").attr("x", n + T / 2).attr("y", E + l / 2 + 5).style("text-anchor", "middle").text(o); i(u, x); } g(e, "byText"); - function t(n, s, o, E, T, l, x, u) { - const { actorFontSize: O, actorFontFamily: p, actorFontWeight: f } = u, [_, I] = Me(O), L = n.split(P.lineBreakRegex); + function t(o, s, n, E, T, l, x, u) { + const { actorFontSize: O, actorFontFamily: p, actorFontWeight: f } = u, [_, I] = Me(O), L = o.split(P.lineBreakRegex); for (let b = 0; b < L.length; b++) { - const S = b * _ - _ * (L.length - 1) / 2, A = s.append("text").attr("x", o + T / 2).attr("y", E).style("text-anchor", "middle").style("font-size", I).style("font-weight", f).style("font-family", p); - A.append("tspan").attr("x", o + T / 2).attr("dy", S).text(L[b]), A.attr("y", E + l / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(A, x); + const S = b * _ - _ * (L.length - 1) / 2, A = s.append("text").attr("x", n + T / 2).attr("y", E).style("text-anchor", "middle").style("font-size", I).style("font-weight", f).style("font-family", p); + A.append("tspan").attr("x", n + T / 2).attr("dy", S).text(L[b]), A.attr("y", E + l / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(A, x); } } g(t, "byTspan"); - function a(n, s, o, E, T, l, x, u) { - const O = s.append("switch"), f = O.append("foreignObject").attr("x", o).attr("y", E).attr("width", T).attr("height", l).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%"); - f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(n), t(n, O, o, E, T, l, x, u), i(f, x); + function a(o, s, n, E, T, l, x, u) { + const O = s.append("switch"), f = O.append("foreignObject").attr("x", n).attr("y", E).attr("width", T).attr("height", l).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%"); + f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(o), t(o, O, n, E, T, l, x, u), i(f, x); } g(a, "byFo"); - async function r(n, s, o, E, T, l, x, u) { - const O = await wt(n, Yt()), p = s.append("switch"), _ = p.append("foreignObject").attr("x", o + T / 2 - O.width / 2).attr("y", E + l / 2 - O.height / 2).attr("width", O.width).attr("height", O.height).append("xhtml:div").style("height", "100%").style("width", "100%"); - _.append("div").style("text-align", "center").style("vertical-align", "middle").html(await Be(n, Yt())), t(n, p, o, E, T, l, x, u), i(_, x); + async function r(o, s, n, E, T, l, x, u) { + const O = await wt(o, Yt()), p = s.append("switch"), _ = p.append("foreignObject").attr("x", n + T / 2 - O.width / 2).attr("y", E + l / 2 - O.height / 2).attr("width", O.width).attr("height", O.height).append("xhtml:div").style("height", "100%").style("width", "100%"); + _.append("div").style("text-align", "center").style("vertical-align", "middle").html(await Be(o, Yt())), t(o, p, n, E, T, l, x, u), i(_, x); } g(r, "byKatex"); - function i(n, s) { - for (const o in s) - s.hasOwnProperty(o) && n.attr(o, s[o]); + function i(o, s) { + for (const n in s) + s.hasOwnProperty(n) && o.attr(n, s[n]); } - return g(i, "_setTextAttrs"), function(n, s = !1) { - return s ? r : n.textPlacement === "fo" ? a : n.textPlacement === "old" ? e : t; + return g(i, "_setTextAttrs"), function(o, s = !1) { + return s ? r : o.textPlacement === "fo" ? a : o.textPlacement === "old" ? e : t; }; })(), Ur = /* @__PURE__ */ (function() { - function e(i, n, s, o, E, T, l) { - const x = n.append("text").attr("x", s).attr("y", o).style("text-anchor", "start").text(i); + function e(i, o, s, n, E, T, l) { + const x = o.append("text").attr("x", s).attr("y", n).style("text-anchor", "start").text(i); r(x, l); } g(e, "byText"); - function t(i, n, s, o, E, T, l, x) { + function t(i, o, s, n, E, T, l, x) { const { actorFontSize: u, actorFontFamily: O, actorFontWeight: p } = x, f = i.split(P.lineBreakRegex); for (let _ = 0; _ < f.length; _++) { - const I = _ * u - u * (f.length - 1) / 2, L = n.append("text").attr("x", s).attr("y", o).style("text-anchor", "start").style("font-size", u).style("font-weight", p).style("font-family", O); - L.append("tspan").attr("x", s).attr("dy", I).text(f[_]), L.attr("y", o + T / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(L, l); + const I = _ * u - u * (f.length - 1) / 2, L = o.append("text").attr("x", s).attr("y", n).style("text-anchor", "start").style("font-size", u).style("font-weight", p).style("font-family", O); + L.append("tspan").attr("x", s).attr("dy", I).text(f[_]), L.attr("y", n + T / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(L, l); } } g(t, "byTspan"); - function a(i, n, s, o, E, T, l, x) { - const u = n.append("switch"), p = u.append("foreignObject").attr("x", s).attr("y", o).attr("width", E).attr("height", T).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%"); - p.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, u, s, o, E, T, l, x), r(p, l); + function a(i, o, s, n, E, T, l, x) { + const u = o.append("switch"), p = u.append("foreignObject").attr("x", s).attr("y", n).attr("width", E).attr("height", T).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%"); + p.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, u, s, n, E, T, l, x), r(p, l); } g(a, "byFo"); - function r(i, n) { - for (const s in n) - n.hasOwnProperty(s) && i.attr(s, n[s]); + function r(i, o) { + for (const s in o) + o.hasOwnProperty(s) && i.attr(s, o[s]); } return g(r, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? a : i.textPlacement === "old" ? e : t; @@ -2003,26 +2008,26 @@ var fr = $t, _r = { }, "updateVal"), updateBounds: /* @__PURE__ */ g(function(e, t, a, r) { const i = this; - let n = 0; - function s(o) { + let o = 0; + function s(n) { return /* @__PURE__ */ g(function(T) { - n++; - const l = i.sequenceItems.length - n + 1; - i.updateVal(T, "starty", t - l * h.boxMargin, Math.min), i.updateVal(T, "stopy", r + l * h.boxMargin, Math.max), i.updateVal(R.data, "startx", e - l * h.boxMargin, Math.min), i.updateVal(R.data, "stopx", a + l * h.boxMargin, Math.max), o !== "activation" && (i.updateVal(T, "startx", e - l * h.boxMargin, Math.min), i.updateVal(T, "stopx", a + l * h.boxMargin, Math.max), i.updateVal(R.data, "starty", t - l * h.boxMargin, Math.min), i.updateVal(R.data, "stopy", r + l * h.boxMargin, Math.max)); + o++; + const l = i.sequenceItems.length - o + 1; + i.updateVal(T, "starty", t - l * h.boxMargin, Math.min), i.updateVal(T, "stopy", r + l * h.boxMargin, Math.max), i.updateVal(R.data, "startx", e - l * h.boxMargin, Math.min), i.updateVal(R.data, "stopx", a + l * h.boxMargin, Math.max), n !== "activation" && (i.updateVal(T, "startx", e - l * h.boxMargin, Math.min), i.updateVal(T, "stopx", a + l * h.boxMargin, Math.max), i.updateVal(R.data, "starty", t - l * h.boxMargin, Math.min), i.updateVal(R.data, "stopy", r + l * h.boxMargin, Math.max)); }, "updateItemBounds"); } g(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation")); }, "updateBounds"), insert: /* @__PURE__ */ g(function(e, t, a, r) { - const i = P.getMin(e, a), n = P.getMax(e, a), s = P.getMin(t, r), o = P.getMax(t, r); - this.updateVal(R.data, "startx", i, Math.min), this.updateVal(R.data, "starty", s, Math.min), this.updateVal(R.data, "stopx", n, Math.max), this.updateVal(R.data, "stopy", o, Math.max), this.updateBounds(i, s, n, o); + const i = P.getMin(e, a), o = P.getMax(e, a), s = P.getMin(t, r), n = P.getMax(t, r); + this.updateVal(R.data, "startx", i, Math.min), this.updateVal(R.data, "starty", s, Math.min), this.updateVal(R.data, "stopx", o, Math.max), this.updateVal(R.data, "stopy", n, Math.max), this.updateBounds(i, s, o, n); }, "insert"), newActivation: /* @__PURE__ */ g(function(e, t, a) { - const r = a.get(e.from), i = Ht(e.from).length || 0, n = r.x + r.width / 2 + (i - 1) * h.activationWidth / 2; + const r = a.get(e.from), i = Ht(e.from).length || 0, o = r.x + r.width / 2 + (i - 1) * h.activationWidth / 2; this.activations.push({ - startx: n, + startx: o, starty: this.verticalPos + 2, - stopx: n + h.activationWidth, + stopx: o + h.activationWidth, stopy: void 0, actor: e.from, anchored: F.anchorElement(t) @@ -2081,14 +2086,14 @@ var fr = $t, _r = { r.x = t.startx, r.y = t.starty, r.width = t.width || h.width, r.class = "note"; const i = e.append("g"); i.attr("data-et", "note"), i.attr("data-id", "i" + a); - const n = F.drawRect(i, r), s = ee(); + const o = F.drawRect(i, r), s = ee(); s.x = t.startx, s.y = t.starty, s.width = r.width, s.dy = "1em", s.text = t.message, s.class = "noteText", s.fontFamily = h.noteFontFamily, s.fontSize = h.noteFontSize, s.fontWeight = h.noteFontWeight, s.anchor = h.noteAlign, s.textMargin = h.noteMargin, s.valign = "center"; - const o = Z(s.text) ? await Wt(i, s) : bt(i, s), E = Math.round( - o.map((T) => (T._groups || T)[0][0].getBBox().height).reduce((T, l) => T + l) + const n = Q(s.text) ? await Wt(i, s) : bt(i, s), E = Math.round( + n.map((T) => (T._groups || T)[0][0].getBBox().height).reduce((T, l) => T + l) ); - n.attr("height", E + 2 * h.noteMargin), t.height += E + 2 * h.noteMargin, R.bumpVerticalPos(E + 2 * h.noteMargin), t.stopy = t.starty + E + 2 * h.noteMargin, t.stopx = t.startx + r.width, R.insert(t.startx, t.starty, t.stopx, t.stopy), R.models.addNote(t); -}, "drawNote"), De = /* @__PURE__ */ g(function(e, t, a, r, i, n, s) { - const o = r.db.getActors(), E = o.get(t.from), T = o.get(t.to), l = a.sequenceVisible; + o.attr("height", E + 2 * h.noteMargin), t.height += E + 2 * h.noteMargin, R.bumpVerticalPos(E + 2 * h.noteMargin), t.stopy = t.starty + E + 2 * h.noteMargin, t.stopx = t.startx + r.width, R.insert(t.startx, t.starty, t.stopx, t.stopy), R.models.addNote(t); +}, "drawNote"), De = /* @__PURE__ */ g(function(e, t, a, r, i, o, s) { + const n = r.db.getActors(), E = n.get(t.from), T = n.get(t.to), l = a.sequenceVisible; let x = E.x + E.width / 2, u = T.x + T.width / 2; const O = x <= u, p = Xe(t, r), f = e.append("g"), _ = 16.5, I = /* @__PURE__ */ g((N, B) => { const V = N ? _ : -_; @@ -2134,13 +2139,13 @@ var fr = $t, _r = { }), "actorFont"); async function Fe(e, t) { R.bumpVerticalPos(10); - const { startx: a, stopx: r, message: i } = t, n = P.splitBreaks(i).length, s = Z(i), o = s ? await wt(i, $()) : J.calculateTextDimensions(i, Rt(h)); + const { startx: a, stopx: r, message: i } = t, o = P.splitBreaks(i).length, s = Q(i), n = s ? await wt(i, $()) : Z.calculateTextDimensions(i, Rt(h)); if (!s) { - const x = o.height / n; + const x = n.height / o; t.height += x, R.bumpVerticalPos(x); } - let E, T = o.height - 10; - const l = o.width; + let E, T = n.height - 10; + const l = n.width; if (a === r) { E = R.getVerticalPos() + T, h.rightAngles || (T += h.boxMargin, E = R.getVerticalPos() + T), T += 30; const x = P.getMax(l / 2, h.width / 2); @@ -2155,12 +2160,12 @@ async function Fe(e, t) { return R.bumpVerticalPos(T), t.height += T, t.stopy = t.starty + t.height, R.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), E; } g(Fe, "boundMessage"); -var $r = /* @__PURE__ */ g(async function(e, t, a, r, i, n) { - const { startx: s, stopx: o, starty: E, message: T, type: l, sequenceIndex: x, sequenceVisible: u } = t, O = J.calculateTextDimensions(T, Rt(h)), p = ee(); - p.x = s, p.y = E + 10, p.width = o - s, p.class = "messageText", p.dy = "1em", p.text = T, p.fontFamily = h.messageFontFamily, p.fontSize = h.messageFontSize, p.fontWeight = h.messageFontWeight, p.anchor = h.messageAlign, p.valign = "center", p.textMargin = h.wrapPadding, p.tspan = !1, Z(p.text) ? await Wt(e, p, { startx: s, stopx: o, starty: a }) : bt(e, p); +var $r = /* @__PURE__ */ g(async function(e, t, a, r, i, o) { + const { startx: s, stopx: n, starty: E, message: T, type: l, sequenceIndex: x, sequenceVisible: u } = t, O = Z.calculateTextDimensions(T, Rt(h)), p = ee(); + p.x = Math.min(s, n), p.y = E + 10, p.width = Math.abs(n - s), p.class = "messageText", p.dy = "1em", p.text = T, p.fontFamily = h.messageFontFamily, p.fontSize = h.messageFontSize, p.fontWeight = h.messageFontWeight, p.anchor = h.messageAlign, p.valign = "center", p.textMargin = h.wrapPadding, p.tspan = !1, Q(p.text) ? await Wt(e, p, { startx: s, stopx: n, starty: a }) : bt(e, p); const f = O.width; let _; - if (s === o) { + if (s === n) { const L = u || h.showSequenceNumbers, b = Xe(i, r), S = ia(i, r), A = s + (L && (b || S) ? 10 : 0); h.rightAngles ? _ = e.append("path").attr( "d", @@ -2168,29 +2173,32 @@ var $r = /* @__PURE__ */ g(async function(e, t, a, r, i, n) { ) : _ = e.append("path").attr( "d", "M " + A + "," + a + " C " + (A + 60) + "," + (a - 10) + " " + (s + 60) + "," + (a + 30) + " " + s + "," + (a + 20) - ), Qt(i, r) && De(e, i, t, r, s, o, a); + ), Qt(i, r) && De(e, i, t, r, s, n, a); } else - _ = e.append("line"), _.attr("x1", s), _.attr("y1", a), _.attr("x2", o), _.attr("y2", a), Qt(i, r) && De(e, i, t, r, s, o, a); + _ = e.append("line"), _.attr("x1", s), _.attr("y1", a), _.attr("x2", n), _.attr("y2", a), Qt(i, r) && De(e, i, t, r, s, n, a); l === r.db.LINETYPE.DOTTED || l === r.db.LINETYPE.DOTTED_CROSS || l === r.db.LINETYPE.DOTTED_POINT || l === r.db.LINETYPE.DOTTED_OPEN || l === r.db.LINETYPE.BIDIRECTIONAL_DOTTED || l === r.db.LINETYPE.SOLID_TOP_DOTTED || l === r.db.LINETYPE.SOLID_BOTTOM_DOTTED || l === r.db.LINETYPE.STICK_TOP_DOTTED || l === r.db.LINETYPE.STICK_BOTTOM_DOTTED || l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (_.style("stroke-dasharray", "3, 3"), _.attr("class", "messageLine1")) : _.attr("class", "messageLine0"), _.attr("data-et", "message"), _.attr("data-id", "i" + t.id), _.attr("data-from", t.from), _.attr("data-to", t.to); let I = ""; - if (h.arrowMarkerAbsolute && (I = Tr(!0)), _.attr("stroke-width", 2), _.attr("stroke", "none"), _.style("fill", "none"), (l === r.db.LINETYPE.SOLID_TOP || l === r.db.LINETYPE.SOLID_TOP_DOTTED) && _.attr("marker-end", "url(" + I + "#" + n + "-solidTopArrowHead)"), (l === r.db.LINETYPE.SOLID_BOTTOM || l === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + I + "#" + n + "-solidBottomArrowHead)"), (l === r.db.LINETYPE.STICK_TOP || l === r.db.LINETYPE.STICK_TOP_DOTTED) && _.attr("marker-end", "url(" + I + "#" + n + "-stickTopArrowHead)"), (l === r.db.LINETYPE.STICK_BOTTOM || l === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + I + "#" + n + "-stickBottomArrowHead)"), (l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + n + "-solidBottomArrowHead)"), (l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + n + "-solidTopArrowHead)"), (l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + n + "-stickBottomArrowHead)"), (l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + n + "-stickTopArrowHead)"), (l === r.db.LINETYPE.SOLID || l === r.db.LINETYPE.DOTTED) && _.attr("marker-end", "url(" + I + "#" + n + "-arrowhead)"), (l === r.db.LINETYPE.BIDIRECTIONAL_SOLID || l === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (_.attr("marker-start", "url(" + I + "#" + n + "-arrowhead)"), _.attr("marker-end", "url(" + I + "#" + n + "-arrowhead)")), (l === r.db.LINETYPE.SOLID_POINT || l === r.db.LINETYPE.DOTTED_POINT) && _.attr("marker-end", "url(" + I + "#" + n + "-filled-head)"), (l === r.db.LINETYPE.SOLID_CROSS || l === r.db.LINETYPE.DOTTED_CROSS) && _.attr("marker-end", "url(" + I + "#" + n + "-crosshead)"), u || h.showSequenceNumbers) { + if (h.arrowMarkerAbsolute && (I = Tr(!0)), _.attr("stroke-width", 2), _.attr("stroke", "none"), _.style("fill", "none"), (l === r.db.LINETYPE.SOLID_TOP || l === r.db.LINETYPE.SOLID_TOP_DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-solidTopArrowHead)"), (l === r.db.LINETYPE.SOLID_BOTTOM || l === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-solidBottomArrowHead)"), (l === r.db.LINETYPE.STICK_TOP || l === r.db.LINETYPE.STICK_TOP_DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-stickTopArrowHead)"), (l === r.db.LINETYPE.STICK_BOTTOM || l === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-stickBottomArrowHead)"), (l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + o + "-solidBottomArrowHead)"), (l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + o + "-solidTopArrowHead)"), (l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + o + "-stickBottomArrowHead)"), (l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + o + "-stickTopArrowHead)"), (l === r.db.LINETYPE.SOLID || l === r.db.LINETYPE.DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-arrowhead)"), (l === r.db.LINETYPE.BIDIRECTIONAL_SOLID || l === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (_.attr("marker-start", "url(" + I + "#" + o + "-arrowhead)"), _.attr("marker-end", "url(" + I + "#" + o + "-arrowhead)")), (l === r.db.LINETYPE.SOLID_POINT || l === r.db.LINETYPE.DOTTED_POINT) && _.attr("marker-end", "url(" + I + "#" + o + "-filled-head)"), (l === r.db.LINETYPE.SOLID_CROSS || l === r.db.LINETYPE.DOTTED_CROSS) && _.attr("marker-end", "url(" + I + "#" + o + "-crosshead)"), u || h.showSequenceNumbers) { const L = l === r.db.LINETYPE.BIDIRECTIONAL_SOLID || l === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, b = l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, S = 6, A = Qt(i, r); - let N = s, B = o; - L ? (s < o ? N = s + S * 2 : (N = s - S + (A ? -5 : 0), N += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), _.attr("x1", N)) : b ? (o > s ? B = o - 2 * S : (B = o - S, N += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), B += A ? 15 : 0, _.attr("x2", B), _.attr("x1", N)) : _.attr("x1", s + S); + let N = s, B = n; + L ? (s < n ? N = s + S * 2 : (N = s - S + (A ? -5 : 0), N += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), _.attr("x1", N)) : b ? (n > s ? B = n - 2 * S : (B = n - S, N += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), B += A ? 15 : 0, _.attr("x2", B), _.attr("x1", N)) : _.attr("x1", s + S); let V = 0; - const H = s === o, U = s <= o; - H ? V = t.fromBounds + 1 : b ? V = U ? t.toBounds - 1 : t.fromBounds + 1 : V = U ? t.fromBounds + 1 : t.toBounds - 1, e.append("line").attr("x1", V).attr("y1", a).attr("x2", V).attr("y2", a).attr("stroke-width", 0).attr("marker-start", "url(" + I + "#" + n + "-sequencenumber)"), e.append("text").attr("x", V).attr("y", a + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(x); - } -}, "drawMessage"), jr = /* @__PURE__ */ g(function(e, t, a, r, i, n, s) { - let o = 0, E = 0, T, l = 0; + const H = s === n, U = s <= n; + H ? V = t.fromBounds + 1 : b ? V = U ? t.toBounds - 1 : t.fromBounds + 1 : V = U ? t.fromBounds + 1 : t.toBounds - 1; + let G = "12px"; + const X = x.toString().length; + X > 5 ? G = "7px" : X > 3 && (G = "9px"), e.append("line").attr("x1", V).attr("y1", a).attr("x2", V).attr("y2", a).attr("stroke-width", 0).attr("marker-start", "url(" + I + "#" + o + "-sequencenumber)"), e.append("text").attr("x", V).attr("y", a + 4).attr("font-family", "sans-serif").attr("font-size", G).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(x); + } +}, "drawMessage"), jr = /* @__PURE__ */ g(function(e, t, a, r, i, o, s) { + let n = 0, E = 0, T, l = 0; for (const x of r) { const u = t.get(x), O = u.box; - T && T != O && (s || R.models.addBox(T), E += h.boxMargin + T.margin), O && O != T && (s || (O.x = o + E, O.y = i), E += O.margin), u.width = P.getMax(u.width || h.width, h.width), u.height = P.getMax(u.height || h.height, h.height), u.margin = u.margin || h.actorMargin, l = P.getMax(l, u.height), a.get(u.name) && (E += u.width / 2), u.x = o + E, u.starty = R.getVerticalPos(), R.insert(u.x, i, u.x + u.width, u.height), o += u.width + E, u.box && (u.box.width = o + O.margin - u.box.x), E = u.margin, T = u.box, R.models.addActor(u); + T && T != O && (s || R.models.addBox(T), E += h.boxMargin + T.margin), O && O != T && (s || (O.x = n + E, O.y = i), E += O.margin), u.width = P.getMax(u.width || h.width, h.width), u.height = P.getMax(u.height || h.height, h.height), u.margin = u.margin || h.actorMargin, l = P.getMax(l, u.height), a.get(u.name) && (E += u.width / 2), u.x = n + E, u.starty = R.getVerticalPos(), R.insert(u.x, i, u.x + u.width, u.height), n += u.width + E, u.box && (u.box.width = n + O.margin - u.box.x), E = u.margin, T = u.box, R.models.addActor(u); } T && !s && R.models.addBox(T), R.bumpVerticalPos(l); -}, "addActorRenderingData"), te = /* @__PURE__ */ g(async function(e, t, a, r, i, n, s) { +}, "addActorRenderingData"), te = /* @__PURE__ */ g(async function(e, t, a, r, i, o, s) { if (r) { - let o = 0; + let n = 0; R.bumpVerticalPos(h.boxMargin * 2); for (const E of a) { const T = t.get(E); @@ -2201,31 +2209,31 @@ var $r = /* @__PURE__ */ g(async function(e, t, a, r, i, n) { h, !0, i, - n, + o, s ); - o = P.getMax(o, l); + n = P.getMax(n, l); } - R.bumpVerticalPos(o + h.boxMargin); + R.bumpVerticalPos(n + h.boxMargin); } else - for (const o of a) { - const E = t.get(o); - await F.drawActor(e, E, h, !1, i, n, s); + for (const n of a) { + const E = t.get(n); + await F.drawActor(e, E, h, !1, i, o, s); } }, "drawActors"), He = /* @__PURE__ */ g(function(e, t, a, r) { - let i = 0, n = 0; + let i = 0, o = 0; for (const s of a) { - const o = t.get(s), E = ea(o), T = F.drawPopup( + const n = t.get(s), E = ea(n), T = F.drawPopup( e, - o, + n, E, h, h.forceMenus, r ); - T.height > i && (i = T.height), T.width + o.x > n && (n = T.width + o.x); + T.height > i && (i = T.height), T.width + n.x > o && (o = T.width + n.x); } - return { maxHeight: i, maxWidth: n }; + return { maxHeight: i, maxWidth: o }; }, "drawActorsPopup"), qe = /* @__PURE__ */ g(function(e) { rr(h, e), e.fontFamily && (h.actorFontFamily = h.noteFontFamily = h.messageFontFamily = e.fontFamily), e.fontSize && (h.actorFontSize = h.noteFontSize = h.messageFontSize = e.fontSize), e.fontWeight && (h.actorFontWeight = h.noteFontWeight = h.messageFontWeight = e.fontWeight); }, "setConf"), Ht = /* @__PURE__ */ g(function(e) { @@ -2234,32 +2242,32 @@ var $r = /* @__PURE__ */ g(async function(e, t, a, r, i, n) { }); }, "actorActivations"), ve = /* @__PURE__ */ g(function(e, t) { const a = t.get(e), r = Ht(e), i = r.reduce( - function(s, o) { - return P.getMin(s, o.startx); + function(s, n) { + return P.getMin(s, n.startx); }, a.x + a.width / 2 - 1 - ), n = r.reduce( - function(s, o) { - return P.getMax(s, o.stopx); + ), o = r.reduce( + function(s, n) { + return P.getMax(s, n.stopx); }, a.x + a.width / 2 + 1 ); - return [i, n]; + return [i, o]; }, "activationBounds"); function ht(e, t, a, r, i) { R.bumpVerticalPos(a); - let n = r; + let o = r; if (t.id && t.message && e[t.id]) { - const s = e[t.id].width, o = Rt(h); - t.message = J.wrapLabel(`[${t.message}]`, s - 2 * h.wrapPadding, o), t.width = s, t.wrap = !0; - const E = J.calculateTextDimensions(t.message, o), T = P.getMax(E.height, h.labelBoxHeight); - n = r + T, at.debug(`${T} - ${t.message}`); + const s = e[t.id].width, n = Rt(h); + t.message = Z.wrapLabel(`[${t.message}]`, s - 2 * h.wrapPadding, n), t.width = s, t.wrap = !0; + const E = Z.calculateTextDimensions(t.message, n), T = P.getMax(E.height, h.labelBoxHeight); + o = r + T, at.debug(`${T} - ${t.message}`); } - i(t), R.bumpVerticalPos(n); + i(t), R.bumpVerticalPos(o); } g(ht, "adjustLoopHeightForWrap"); -function ze(e, t, a, r, i, n, s) { - function o(l, x) { +function ze(e, t, a, r, i, o, s) { + function n(l, x) { l.x < i.get(e.from).x ? (R.insert( t.stopx - x, t.starty, @@ -2272,7 +2280,7 @@ function ze(e, t, a, r, i, n, s) { t.stopy + l.height / 2 + h.noteMargin ), t.stopx = t.stopx - x); } - g(o, "receiverAdjustment"); + g(n, "receiverAdjustment"); function E(l, x) { l.x < i.get(e.to).x ? (R.insert( t.startx - x, @@ -2293,9 +2301,9 @@ function ze(e, t, a, r, i, n, s) { Vt.ENTITY, Vt.DATABASE ]; - if (n.get(e.to) == r) { + if (o.get(e.to) == r) { const l = i.get(e.to), x = T.includes(l.type) ? It / 2 + 3 : l.width / 2 + 3; - o(l, x), l.starty = a - l.height / 2, R.bumpVerticalPos(l.height / 2); + n(l, x), l.starty = a - l.height / 2, R.bumpVerticalPos(l.height / 2); } else if (s.get(e.from) == r) { const l = i.get(e.from); if (h.mirrorActors) { @@ -2307,18 +2315,18 @@ function ze(e, t, a, r, i, n, s) { const l = i.get(e.to); if (h.mirrorActors) { const x = T.includes(l.type) ? It / 2 + 3 : l.width / 2 + 3; - o(l, x); + n(l, x); } l.stopy = a - l.height / 2, R.bumpVerticalPos(l.height / 2); } } g(ze, "adjustCreatedDestroyedData"); var ta = /* @__PURE__ */ g(async function(e, t, a, r) { - const { securityLevel: i, sequence: n, look: s } = $(); - h = n; - let o; - i === "sandbox" && (o = Mt("#i" + t)); - const E = i === "sandbox" ? Mt(o.nodes()[0].contentDocument.body) : Mt("body"), T = i === "sandbox" ? o.nodes()[0].contentDocument : document; + const { securityLevel: i, sequence: o, look: s } = $(); + h = o; + let n; + i === "sandbox" && (n = Mt("#i" + t)); + const E = i === "sandbox" ? Mt(n.nodes()[0].contentDocument.body) : Mt("body"), T = i === "sandbox" ? n.nodes()[0].contentDocument : document; R.init(), at.debug(r.db); const l = i === "sandbox" ? E.select(`[id="${t}"]`) : Mt(`[id="${t}"]`), x = r.db.getActors(), u = r.db.getCreatedActors(), O = r.db.getDestroyedActors(), p = r.db.getBoxes(); let f = r.db.getActorKeys(); @@ -2350,7 +2358,7 @@ var ta = /* @__PURE__ */ g(async function(e, t, a, r) { g(B, "activeEnd"); let V = 1, H = 1; const U = [], G = []; - let Q = 0; + let X = 0; for (const m of _) { let D, lt, et; switch (m.type) { @@ -2492,7 +2500,7 @@ var ta = /* @__PURE__ */ g(async function(e, t, a, r) { m, et, W, - Q, + X, x, u, O @@ -2528,7 +2536,7 @@ var ta = /* @__PURE__ */ g(async function(e, t, a, r) { r.db.LINETYPE.DOTTED_POINT, r.db.LINETYPE.BIDIRECTIONAL_SOLID, r.db.LINETYPE.BIDIRECTIONAL_DOTTED - ].includes(m.type) && (V = V + H), Q++; + ].includes(m.type) && (V = Math.round((V + H) * 100) / 100), X++; } at.debug("createdActors", u), at.debug("destroyedActors", O), await te(l, x, f, !1, t, r, A); for (const m of U) @@ -2560,17 +2568,17 @@ async function Ue(e, t, a) { const r = {}; for (const i of t) if (e.get(i.to) && e.get(i.from)) { - const n = e.get(i.to); - if (i.placement === a.db.PLACEMENT.LEFTOF && !n.prevActor || i.placement === a.db.PLACEMENT.RIGHTOF && !n.nextActor) + const o = e.get(i.to); + if (i.placement === a.db.PLACEMENT.LEFTOF && !o.prevActor || i.placement === a.db.PLACEMENT.RIGHTOF && !o.nextActor) continue; - const s = i.placement !== void 0, o = !s, E = s ? Lt(h) : Rt(h), T = i.wrap ? J.wrapLabel(i.message, h.width - 2 * h.wrapPadding, E) : i.message, x = (Z(T) ? await wt(i.message, $()) : J.calculateTextDimensions(T, E)).width + 2 * h.wrapPadding; - o && i.from === n.nextActor ? r[i.to] = P.getMax( + const s = i.placement !== void 0, n = !s, E = s ? Lt(h) : Rt(h), T = i.wrap ? Z.wrapLabel(i.message, h.width - 2 * h.wrapPadding, E) : i.message, x = (Q(T) ? await wt(i.message, $()) : Z.calculateTextDimensions(T, E)).width + 2 * h.wrapPadding; + n && i.from === o.nextActor ? r[i.to] = P.getMax( r[i.to] || 0, x - ) : o && i.from === n.prevActor ? r[i.from] = P.getMax( + ) : n && i.from === o.prevActor ? r[i.from] = P.getMax( r[i.from] || 0, x - ) : o && i.from === i.to ? (r[i.from] = P.getMax( + ) : n && i.from === i.to ? (r[i.from] = P.getMax( r[i.from] || 0, x / 2 ), r[i.to] = P.getMax( @@ -2579,13 +2587,13 @@ async function Ue(e, t, a) { )) : i.placement === a.db.PLACEMENT.RIGHTOF ? r[i.from] = P.getMax( r[i.from] || 0, x - ) : i.placement === a.db.PLACEMENT.LEFTOF ? r[n.prevActor] = P.getMax( - r[n.prevActor] || 0, + ) : i.placement === a.db.PLACEMENT.LEFTOF ? r[o.prevActor] = P.getMax( + r[o.prevActor] || 0, x - ) : i.placement === a.db.PLACEMENT.OVER && (n.prevActor && (r[n.prevActor] = P.getMax( - r[n.prevActor] || 0, + ) : i.placement === a.db.PLACEMENT.OVER && (o.prevActor && (r[o.prevActor] = P.getMax( + r[o.prevActor] || 0, x / 2 - )), n.nextActor && (r[i.from] = P.getMax( + )), o.nextActor && (r[i.from] = P.getMax( r[i.from] || 0, x / 2 ))); @@ -2597,60 +2605,60 @@ var ea = /* @__PURE__ */ g(function(e) { let t = 0; const a = jt(h); for (const r in e.links) { - const n = J.calculateTextDimensions(r, a).width + 2 * h.wrapPadding + 2 * h.boxMargin; - t < n && (t = n); + const o = Z.calculateTextDimensions(r, a).width + 2 * h.wrapPadding + 2 * h.boxMargin; + t < o && (t = o); } return t; }, "getRequiredPopupWidth"); async function Ge(e, t, a) { let r = 0; - for (const n of e.keys()) { - const s = e.get(n); - s.wrap && (s.description = J.wrapLabel( + for (const o of e.keys()) { + const s = e.get(o); + s.wrap && (s.description = Z.wrapLabel( s.description, h.width - 2 * h.wrapPadding, jt(h) )); - const o = Z(s.description) ? await wt(s.description, $()) : J.calculateTextDimensions(s.description, jt(h)); - s.width = s.wrap ? h.width : P.getMax(h.width, o.width + 2 * h.wrapPadding), s.height = s.wrap ? P.getMax(o.height, h.height) : h.height, r = P.getMax(r, s.height); + const n = Q(s.description) ? await wt(s.description, $()) : Z.calculateTextDimensions(s.description, jt(h)); + s.width = s.wrap ? h.width : P.getMax(h.width, n.width + 2 * h.wrapPadding), s.height = s.wrap ? P.getMax(n.height, h.height) : h.height, r = P.getMax(r, s.height); } - for (const n in t) { - const s = e.get(n); + for (const o in t) { + const s = e.get(o); if (!s) continue; - const o = e.get(s.nextActor); - if (!o) { - const x = t[n] + h.actorMargin - s.width / 2; + const n = e.get(s.nextActor); + if (!n) { + const x = t[o] + h.actorMargin - s.width / 2; s.margin = P.getMax(x, h.actorMargin); continue; } - const T = t[n] + h.actorMargin - s.width / 2 - o.width / 2; + const T = t[o] + h.actorMargin - s.width / 2 - n.width / 2; s.margin = P.getMax(T, h.actorMargin); } let i = 0; - return a.forEach((n) => { + return a.forEach((o) => { const s = Rt(h); - let o = n.actorKeys.reduce((x, u) => x += e.get(u).width + (e.get(u).margin || 0), 0); + let n = o.actorKeys.reduce((x, u) => x += e.get(u).width + (e.get(u).margin || 0), 0); const E = h.boxMargin * 8; - o += E, o -= 2 * h.boxTextMargin, n.wrap && (n.name = J.wrapLabel(n.name, o - 2 * h.wrapPadding, s)); - const T = J.calculateTextDimensions(n.name, s); + n += E, n -= 2 * h.boxTextMargin, o.wrap && (o.name = Z.wrapLabel(o.name, n - 2 * h.wrapPadding, s)); + const T = Z.calculateTextDimensions(o.name, s); i = P.getMax(T.height, i); - const l = P.getMax(o, T.width + 2 * h.wrapPadding); - if (n.margin = h.boxTextMargin, o < l) { - const x = (l - o) / 2; - n.margin += x; + const l = P.getMax(n, T.width + 2 * h.wrapPadding); + if (o.margin = h.boxTextMargin, n < l) { + const x = (l - n) / 2; + o.margin += x; } - }), a.forEach((n) => n.textMaxHeight = i), P.getMax(r, h.height); + }), a.forEach((o) => o.textMaxHeight = i), P.getMax(r, h.height); } g(Ge, "calculateActorMargins"); var ra = /* @__PURE__ */ g(async function(e, t, a) { - const r = t.get(e.from), i = t.get(e.to), n = r.x, s = i.x, o = e.wrap && e.message; - let E = Z(e.message) ? await wt(e.message, $()) : J.calculateTextDimensions( - o ? J.wrapLabel(e.message, h.width, Lt(h)) : e.message, + const r = t.get(e.from), i = t.get(e.to), o = r.x, s = i.x, n = e.wrap && e.message; + let E = Q(e.message) ? await wt(e.message, $()) : Z.calculateTextDimensions( + n ? Z.wrapLabel(e.message, h.width, Lt(h)) : e.message, Lt(h) ); const T = { - width: o ? h.width : P.getMax(h.width, E.width + 2 * h.noteMargin), + width: n ? h.width : P.getMax(h.width, E.width + 2 * h.noteMargin), height: 0, startx: r.x, stopx: 0, @@ -2658,16 +2666,16 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) { stopy: 0, message: e.message }; - return e.placement === a.db.PLACEMENT.RIGHTOF ? (T.width = o ? P.getMax(h.width, E.width) : P.getMax( + return e.placement === a.db.PLACEMENT.RIGHTOF ? (T.width = n ? P.getMax(h.width, E.width) : P.getMax( r.width / 2 + i.width / 2, E.width + 2 * h.noteMargin - ), T.startx = n + (r.width + h.actorMargin) / 2) : e.placement === a.db.PLACEMENT.LEFTOF ? (T.width = o ? P.getMax(h.width, E.width + 2 * h.noteMargin) : P.getMax( + ), T.startx = o + (r.width + h.actorMargin) / 2) : e.placement === a.db.PLACEMENT.LEFTOF ? (T.width = n ? P.getMax(h.width, E.width + 2 * h.noteMargin) : P.getMax( r.width / 2 + i.width / 2, E.width + 2 * h.noteMargin - ), T.startx = n - T.width + (r.width - h.actorMargin) / 2) : e.to === e.from ? (E = J.calculateTextDimensions( - o ? J.wrapLabel(e.message, P.getMax(h.width, r.width), Lt(h)) : e.message, + ), T.startx = o - T.width + (r.width - h.actorMargin) / 2) : e.to === e.from ? (E = Z.calculateTextDimensions( + n ? Z.wrapLabel(e.message, P.getMax(h.width, r.width), Lt(h)) : e.message, Lt(h) - ), T.width = o ? P.getMax(h.width, r.width) : P.getMax(r.width, h.width, E.width + 2 * h.noteMargin), T.startx = n + (r.width - T.width) / 2) : (T.width = Math.abs(n + r.width / 2 - (s + i.width / 2)) + h.actorMargin, T.startx = n < s ? n + r.width / 2 - h.actorMargin / 2 : s + i.width / 2 - h.actorMargin / 2), o && (T.message = J.wrapLabel( + ), T.width = n ? P.getMax(h.width, r.width) : P.getMax(r.width, h.width, E.width + 2 * h.noteMargin), T.startx = o + (r.width - T.width) / 2) : (T.width = Math.abs(o + r.width / 2 - (s + i.width / 2)) + h.actorMargin, T.startx = o < s ? o + r.width / 2 - h.actorMargin / 2 : s + i.width / 2 - h.actorMargin / 2), n && (T.message = Z.wrapLabel( e.message, T.width - 2 * h.wrapPadding, Lt(h) @@ -2683,19 +2691,19 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) { const { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, - BIDIRECTIONAL_SOLID: n, + BIDIRECTIONAL_SOLID: o, BIDIRECTIONAL_DOTTED: s } = t.db.LINETYPE; - let o = 0; - return (e.centralConnection === r || e.centralConnection === i) && (o += aa), (e.centralConnection === r || e.centralConnection === i) && (e.type === n || e.type === s) && (o += a ? 0 : -6), o; + let n = 0; + return (e.centralConnection === r || e.centralConnection === i) && (n += aa), (e.centralConnection === r || e.centralConnection === i) && (e.type === o || e.type === s) && (n += a ? 0 : -6), n; }, "calculateCentralConnectionOffset"), Xe = /* @__PURE__ */ g(function(e, t) { const { SOLID_ARROW_TOP_REVERSE: a, SOLID_ARROW_TOP_REVERSE_DOTTED: r, SOLID_ARROW_BOTTOM_REVERSE: i, - SOLID_ARROW_BOTTOM_REVERSE_DOTTED: n, + SOLID_ARROW_BOTTOM_REVERSE_DOTTED: o, STICK_ARROW_TOP_REVERSE: s, - STICK_ARROW_TOP_REVERSE_DOTTED: o, + STICK_ARROW_TOP_REVERSE_DOTTED: n, STICK_ARROW_BOTTOM_REVERSE: E, STICK_ARROW_BOTTOM_REVERSE_DOTTED: T } = t.db.LINETYPE; @@ -2703,9 +2711,9 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) { a, r, i, - n, - s, o, + s, + n, E, T ].includes(e.type); @@ -2743,10 +2751,10 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) { a.db.LINETYPE.BIDIRECTIONAL_DOTTED ].includes(e.type)) return {}; - const [i, n] = ve(e.from, t), [s, o] = ve(e.to, t), E = i <= s; - let T = E ? n : i, l = E ? s : o; + const [i, o] = ve(e.from, t), [s, n] = ve(e.to, t), E = i <= s; + let T = E ? o : i, l = E ? s : n; r === "neo" && (e.type !== a.db.LINETYPE.SOLID_OPEN && (l += E ? -3 : 3), (e.type === a.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === a.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (T += E ? 3 : -3)), T += sa(e, a, E); - const x = Math.abs(s - o) > 2, u = /* @__PURE__ */ g((_) => E ? -_ : _, "adjustValue"); + const x = Math.abs(s - n) > 2, u = /* @__PURE__ */ g((_) => E ? -_ : _, "adjustValue"); e.from === e.to ? l = T : (e.activate && !x && (l += u(h.activationWidth / 2 - 1)), [ a.db.LINETYPE.SOLID_OPEN, a.db.LINETYPE.DOTTED_OPEN, @@ -2770,13 +2778,13 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) { a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE, a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE ].includes(e.type) && (T -= u(3))); - const O = [i, n, s, o], p = Math.abs(T - l); - e.wrap && e.message && (e.message = J.wrapLabel( + const O = [i, o, s, n], p = Math.abs(T - l); + e.wrap && e.message && (e.message = Z.wrapLabel( e.message, P.getMax(p + 2 * h.wrapPadding, h.width), Rt(h) )); - const f = J.calculateTextDimensions(e.message, Rt(h)); + const f = Z.calculateTextDimensions(e.message, Rt(h)); return { width: P.getMax( e.wrap ? 0 : f.width + 2 * h.wrapPadding, @@ -2795,8 +2803,8 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) { toBounds: Math.max.apply(null, O) }; }, "buildMessageModel"), oa = /* @__PURE__ */ g(async function(e, t, a, r) { - const i = {}, n = []; - let s, o, E; + const i = {}, o = []; + let s, n, E; for (const T of e) { switch (T.type) { case r.db.LINETYPE.LOOP_START: @@ -2806,7 +2814,7 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) { case r.db.LINETYPE.PAR_OVER_START: case r.db.LINETYPE.CRITICAL_START: case r.db.LINETYPE.BREAK_START: - n.push({ + o.push({ id: T.id, msg: T.message, from: Number.MAX_SAFE_INTEGER, @@ -2817,7 +2825,7 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) { case r.db.LINETYPE.ALT_ELSE: case r.db.LINETYPE.PAR_AND: case r.db.LINETYPE.CRITICAL_OPTION: - T.message && (s = n.pop(), i[s.id] = s, i[T.id] = s, n.push(s)); + T.message && (s = o.pop(), i[s.id] = s, i[T.id] = s, o.push(s)); break; case r.db.LINETYPE.LOOP_END: case r.db.LINETYPE.ALT_END: @@ -2825,7 +2833,7 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) { case r.db.LINETYPE.PAR_END: case r.db.LINETYPE.CRITICAL_END: case r.db.LINETYPE.BREAK_END: - s = n.pop(), i[s.id] = s; + s = o.pop(), i[s.id] = s; break; case r.db.LINETYPE.ACTIVE_START: { @@ -2845,9 +2853,9 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) { } break; } - T.placement !== void 0 ? (o = await ra(T, t, r), T.noteModel = o, n.forEach((x) => { - s = x, s.from = P.getMin(s.from, o.startx), s.to = P.getMax(s.to, o.startx + o.width), s.width = P.getMax(s.width, Math.abs(s.from - s.to)) - h.labelBoxWidth; - })) : (E = na(T, t, r), T.msgModel = E, E.startx && E.stopx && n.length > 0 && n.forEach((x) => { + T.placement !== void 0 ? (n = await ra(T, t, r), T.noteModel = n, o.forEach((x) => { + s = x, s.from = P.getMin(s.from, n.startx), s.to = P.getMax(s.to, n.startx + n.width), s.width = P.getMax(s.width, Math.abs(s.from - s.to)) - h.labelBoxWidth; + })) : (E = na(T, t, r), T.msgModel = E, E.startx && E.stopx && o.length > 0 && o.forEach((x) => { if (s = x, E.startx === E.stopx) { const u = t.get(T.from), O = t.get(T.to); s.from = P.getMin( diff --git a/src/wc-content-kit/public/mermaid/stateDiagram-FHFEXIEX-B95qSryT.js b/src/wc-content-kit/public/mermaid/stateDiagram-AJRCARHV-GzeTGfIQ.js similarity index 85% rename from src/wc-content-kit/public/mermaid/stateDiagram-FHFEXIEX-B95qSryT.js rename to src/wc-content-kit/public/mermaid/stateDiagram-AJRCARHV-GzeTGfIQ.js index 70ffbad..2591798 100644 --- a/src/wc-content-kit/public/mermaid/stateDiagram-FHFEXIEX-B95qSryT.js +++ b/src/wc-content-kit/public/mermaid/stateDiagram-AJRCARHV-GzeTGfIQ.js @@ -1,14 +1,14 @@ -import { s as A, a as W, S as N } from "./chunk-OYMX7WX6-BT43QF8g.js"; -import { _ as f, c as t, d as H, l as S, e as P, k as z, R as _, S as U, O as C, u as F } from "./mermaid.core-Jw3znkh4.js"; -import { G as O } from "./graph-DgQ8kYSl.js"; -import { l as J } from "./layout-DnbSog08.js"; -var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), D = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Y = /* @__PURE__ */ f((e, i) => { +import { b as R, s as W, S as N } from "./chunk-AQP2D5EJ-DbphR-zT.js"; +import { b as f, a4 as t, a_ as H, aD as S, E as P, z, aA as _, K as U, af as C, bk as F } from "./mermaid.core-FRDjOodn.js"; +import { G as O } from "./graph-yNRfypD2.js"; +import { l as D } from "./layout-DivnQK5l.js"; +var J = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), X = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Y = /* @__PURE__ */ f((e, i) => { const d = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = d.node().getBBox(); return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), d; }, "drawSimpleState"), I = /* @__PURE__ */ f((e, i) => { const d = /* @__PURE__ */ f(function(o, m, y) { - const v = o.append("tspan").attr("x", 2 * t().state.padding).text(m); - y || v.attr("dy", t().state.textHeight); + const E = o.append("tspan").attr("x", 2 * t().state.padding).text(m); + y || E.attr("dy", t().state.textHeight); }, "addTspan"), n = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.descriptions[0]).node().getBBox(), l = n.height, p = e.append("text").attr("x", t().state.padding).attr( "y", l + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight @@ -43,14 +43,14 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state") ).attr( "cy", t().state.padding + t().state.sizeUnit + t().state.miniPadding -), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), Z = /* @__PURE__ */ f((e, i) => { +), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), K = /* @__PURE__ */ f((e, i) => { let d = t().state.forkWidth, c = t().state.forkHeight; if (i.parentId) { let n = d; d = c, c = n; } return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", d).attr("height", c).attr("x", t().state.padding).attr("y", t().state.padding); -}, "drawForkJoinState"), j = /* @__PURE__ */ f((e, i, d, c) => { +}, "drawForkJoinState"), Z = /* @__PURE__ */ f((e, i, d, c) => { let n = 0; const l = c.append("text"); l.style("text-anchor", "start"), l.attr("class", "noteText"); @@ -70,9 +70,9 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state") } } return { textWidth: l.node().getBBox().width, textHeight: n }; -}, "_drawLongText"), K = /* @__PURE__ */ f((e, i) => { +}, "_drawLongText"), j = /* @__PURE__ */ f((e, i) => { i.attr("class", "state-note"); - const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: n, textHeight: l } = j(e, 0, 0, c); + const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: n, textHeight: l } = Z(e, 0, 0, c); return d.attr("height", l + 2 * t().state.noteMargin), d.attr("width", n + t().state.noteMargin * 2), d; }, "drawNote"), L = /* @__PURE__ */ f(function(e, i) { const d = i.id, c = { @@ -81,10 +81,10 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state") width: 0, height: 0 }, n = e.append("g").attr("id", d).attr("class", "stateGroup"); - i.type === "start" && X(n), i.type === "end" && q(n), (i.type === "fork" || i.type === "join") && Z(n, i), i.type === "note" && K(i.note.text, n), i.type === "divider" && D(n), i.type === "default" && i.descriptions.length === 0 && Y(n, i), i.type === "default" && i.descriptions.length > 0 && I(n, i); + i.type === "start" && J(n), i.type === "end" && q(n), (i.type === "fork" || i.type === "join") && K(n, i), i.type === "note" && j(i.note.text, n), i.type === "divider" && X(n), i.type === "default" && i.descriptions.length === 0 && Y(n, i), i.type === "default" && i.descriptions.length > 0 && I(n, i); const l = n.node().getBBox(); return c.width = l.width + 2 * t().state.padding, c.height = l.height + 2 * t().state.padding, c; -}, "drawState"), G = 0, Q = /* @__PURE__ */ f(function(e, i, d) { +}, "drawState"), A = 0, Q = /* @__PURE__ */ f(function(e, i, d) { const c = /* @__PURE__ */ f(function(s) { switch (s) { case N.relationType.AGGREGATION: @@ -102,7 +102,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state") return s.x; }).y(function(s) { return s.y; - }).curve(U), p = e.append("path").attr("d", l(n)).attr("id", "edge" + G).attr("class", "transition"); + }).curve(U), p = e.append("path").attr("d", l(n)).attr("id", "edge" + A).attr("class", "transition"); let a = ""; if (t().state.arrowMarkerAbsolute && (a = C(!0)), p.attr( "marker-end", @@ -111,10 +111,10 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state") const s = e.append("g").attr("class", "stateLabel"), { x: B, y: x } = F.calcLabelPosition(i.points), g = z.getRows(d.title); let o = 0; const m = []; - let y = 0, v = 0; + let y = 0, E = 0; for (let u = 0; u <= g.length; u++) { const h = s.append("text").attr("text-anchor", "middle").text(g[u]).attr("x", B).attr("y", x + o), w = h.node().getBBox(); - y = Math.max(y, w.width), v = Math.min(v, w.x), S.info(w.x, B, x + o), o === 0 && (o = h.node().getBBox().height, S.info("Title height", o, x)), m.push(h); + y = Math.max(y, w.width), E = Math.min(E, w.x), S.info(w.x, B, x + o), o === 0 && (o = h.node().getBBox().height, S.info("Title height", o, x)), m.push(h); } let k = o * g.length; if (g.length > 1) { @@ -124,7 +124,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state") const r = s.node().getBBox(); s.insert("rect", ":first-child").attr("class", "box").attr("x", B - y / 2 - t().state.padding / 2).attr("y", x - k / 2 - t().state.padding / 2 - 3.5).attr("width", y + t().state.padding).attr("height", k + t().state.padding), S.info(r); } - G++; + A++; }, "drawEdge"), b, T = {}, V = /* @__PURE__ */ f(function() { }, "setConf"), tt = /* @__PURE__ */ f(function(e) { e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z"); @@ -138,13 +138,13 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state") const s = p.select(`[id='${i}']`); tt(s); const B = c.db.getRootDoc(), x = s.append("g").attr("id", i + "-root"); - R(B, x, void 0, !1, p, a, c); - const g = b.padding, o = s.node().getBBox(), m = o.width + g * 2, y = o.height + g * 2, v = m * 1.75; - P(s, y, v, b.useMaxWidth), s.attr( + G(B, x, void 0, !1, p, a, c); + const g = b.padding, o = s.node().getBBox(), m = o.width + g * 2, y = o.height + g * 2, E = m * 1.75; + P(s, y, E, b.useMaxWidth), s.attr( "viewBox", `${o.x - b.padding} ${o.y - b.padding} ` + m + " " + y ); -}, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), R = /* @__PURE__ */ f((e, i, d, c, n, l, p) => { +}, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), G = /* @__PURE__ */ f((e, i, d, c, n, l, p) => { const a = new O({ compound: !0, multigraph: !0 @@ -188,11 +188,11 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state") let h; if (u.doc) { let w = i.append("g").attr("id", u.id).attr("class", "stateGroup"); - h = R(u.doc, w, u.id, !c, n, l, p); + h = G(u.doc, w, u.id, !c, n, l, p); { w = $(w, u, c); - let E = w.node().getBBox(); - h.width = E.width, h.height = E.height + b.padding / 2, T[u.id] = { y: b.compositTitleSize }; + let v = w.node().getBBox(); + h.width = v.width, h.height = v.height + b.padding / 2, T[u.id] = { y: b.compositTitleSize }; } } else h = L(i, u, a); @@ -202,8 +202,8 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state") id: u.id + "-note", note: u.note, type: "note" - }, E = L(i, w, a); - u.note.position === "left of" ? (a.setNode(h.id + "-note", E), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", E)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group"); + }, v = L(i, w, a); + u.note.position === "left of" ? (a.setNode(h.id + "-note", v), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", v)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group"); } else a.setNode(h.id, h); } @@ -221,7 +221,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state") }, "id" + m ); - }), J(a), S.debug("Graph after layout", a.nodes()); + }), D(a), S.debug("Graph after layout", a.nodes()); const y = i.node(); a.nodes().forEach(function(r) { r !== void 0 && a.node(r) !== void 0 ? (S.warn("Node " + r + ": " + JSON.stringify(a.node(r))), n.select("#" + y.id + " #" + r).attr( @@ -229,21 +229,21 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state") "translate(" + (a.node(r).x - a.node(r).width / 2) + "," + (a.node(r).y + (T[r] ? T[r].y : 0) - a.node(r).height / 2) + " )" ), n.select("#" + y.id + " #" + r).attr("data-x-shift", a.node(r).x - a.node(r).width / 2), l.querySelectorAll("#" + y.id + " #" + r + " .divider").forEach((h) => { const w = h.parentElement; - let E = 0, M = 0; - w && (w.parentElement && (E = w.parentElement.getBBox().width), M = parseInt(w.getAttribute("data-x-shift"), 10), Number.isNaN(M) && (M = 0)), h.setAttribute("x1", 0 - M + 8), h.setAttribute("x2", E - M - 8); + let v = 0, M = 0; + w && (w.parentElement && (v = w.parentElement.getBBox().width), M = parseInt(w.getAttribute("data-x-shift"), 10), Number.isNaN(M) && (M = 0)), h.setAttribute("x1", 0 - M + 8), h.setAttribute("x2", v - M - 8); })) : S.debug("No Node " + r + ": " + JSON.stringify(a.node(r))); }); - let v = y.getBBox(); + let E = y.getBBox(); a.edges().forEach(function(r) { r !== void 0 && a.edge(r) !== void 0 && (S.debug("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(a.edge(r))), Q(i, a.edge(r), a.edge(r).relation)); - }), v = y.getBBox(); + }), E = y.getBBox(); const k = { id: d || "root", label: d || "root", width: 0, height: 0 }; - return k.width = v.width + 2 * b.padding, k.height = v.height + 2 * b.padding, S.debug("Doc rendered", k, a), k; + return k.width = E.width + 2 * b.padding, k.height = E.height + 2 * b.padding, S.debug("Doc rendered", k, a), k; }, "renderDoc"), it = { setConf: V, draw: et @@ -253,7 +253,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state") return new N(1); }, renderer: it, - styles: A, + styles: R, init: /* @__PURE__ */ f((e) => { e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute; }, "init") diff --git a/src/wc-content-kit/public/mermaid/stateDiagram-v2-QKLJ7IA2-BcCmL5be.js b/src/wc-content-kit/public/mermaid/stateDiagram-v2-BHNVJYJU-BSm6TWAV.js similarity index 59% rename from src/wc-content-kit/public/mermaid/stateDiagram-v2-QKLJ7IA2-BcCmL5be.js rename to src/wc-content-kit/public/mermaid/stateDiagram-v2-BHNVJYJU-BSm6TWAV.js index f5053cc..c6676c5 100644 --- a/src/wc-content-kit/public/mermaid/stateDiagram-v2-QKLJ7IA2-BcCmL5be.js +++ b/src/wc-content-kit/public/mermaid/stateDiagram-v2-BHNVJYJU-BSm6TWAV.js @@ -1,6 +1,6 @@ -import { s as a, b as t, a as r, S as s } from "./chunk-OYMX7WX6-BT43QF8g.js"; -import { _ as i } from "./mermaid.core-Jw3znkh4.js"; -var _ = { +import { b as a, a as t, s as r, S as s } from "./chunk-AQP2D5EJ-DbphR-zT.js"; +import { b as i } from "./mermaid.core-FRDjOodn.js"; +var l = { parser: r, get db() { return new s(2); @@ -12,5 +12,5 @@ var _ = { }, "init") }; export { - _ as diagram + l as diagram }; diff --git a/src/wc-content-kit/public/mermaid/timeline-definition-GMOUNBTQ-C99biSYp.js b/src/wc-content-kit/public/mermaid/timeline-definition-PNZ67QCA-BhOBuke8.js similarity index 94% rename from src/wc-content-kit/public/mermaid/timeline-definition-GMOUNBTQ-C99biSYp.js rename to src/wc-content-kit/public/mermaid/timeline-definition-PNZ67QCA-BhOBuke8.js index 9663977..621bb29 100644 --- a/src/wc-content-kit/public/mermaid/timeline-definition-GMOUNBTQ-C99biSYp.js +++ b/src/wc-content-kit/public/mermaid/timeline-definition-PNZ67QCA-BhOBuke8.js @@ -1,5 +1,5 @@ -import { _ as o, D as pt, V as Ct, W as Rt, X as Wt, c as gt, l as E, I as Pt, N as Bt, Y as ft, d as U, C as Vt, $ as Ft, z as zt } from "./mermaid.core-Jw3znkh4.js"; -import { d as ot } from "./arc-P0Wtuqay.js"; +import { b as o, a3 as pt, au as Rt, az as Ct, L as Wt, a4 as gt, aD as E, a$ as Pt, aM as Bt, b6 as ft, a_ as X, _ as Vt, y as Ft, t as zt } from "./mermaid.core-FRDjOodn.js"; +import { d as ot } from "./arc-DoJBinwv.js"; var tt = (function() { var e = /* @__PURE__ */ o(function(k, s, d, l) { for (d = d || {}, l = k.length; l--; d[k[l]] = s) ; @@ -68,13 +68,13 @@ var tt = (function() { } }, "parseError"), parse: /* @__PURE__ */ o(function(s) { - var d = this, l = [0], p = [], x = [null], u = [], S = this.table, v = "", I = 0, C = 0, W = 2, O = 1, L = u.slice.call(arguments, 1), w = Object.create(this.lexer), H = { yy: {} }; + var d = this, l = [0], p = [], x = [null], u = [], S = this.table, v = "", I = 0, R = 0, W = 2, O = 1, L = u.slice.call(arguments, 1), w = Object.create(this.lexer), H = { yy: {} }; for (var V in this.yy) Object.prototype.hasOwnProperty.call(this.yy, V) && (H.yy[V] = this.yy[V]); w.setInput(s, H.yy), H.yy.lexer = w, H.yy.parser = this, typeof w.yylloc > "u" && (w.yylloc = {}); var F = w.yylloc; u.push(F); - var K = w.options && w.options.ranges; + var U = w.options && w.options.ranges; typeof H.yy.parseError == "function" ? this.parseError = H.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; function N(A) { l.length = l.length - 2 * A, x.length = x.length - A, u.length = u.length - A; @@ -85,7 +85,7 @@ var tt = (function() { return A = p.pop() || w.lex() || O, typeof A != "number" && (A instanceof Array && (p = A, A = p.pop()), A = d.symbols_[A] || A), A; } o(b, "lex"); - for (var _, $, T, P, R = {}, G, B, Z, j; ; ) { + for (var _, $, T, P, C = {}, G, B, Z, j; ; ) { if ($ = l[l.length - 1], this.defaultActions[$] ? T = this.defaultActions[$] : ((_ === null || typeof _ > "u") && (_ = b()), T = S[$] && S[$][_]), typeof T > "u" || !T.length || !T[0]) { var Y = ""; j = []; @@ -105,20 +105,20 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = " throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + _); switch (T[0]) { case 1: - l.push(_), x.push(w.yytext), u.push(w.yylloc), l.push(T[1]), _ = null, C = w.yyleng, v = w.yytext, I = w.yylineno, F = w.yylloc; + l.push(_), x.push(w.yytext), u.push(w.yylloc), l.push(T[1]), _ = null, R = w.yyleng, v = w.yytext, I = w.yylineno, F = w.yylloc; break; case 2: - if (B = this.productions_[T[1]][1], R.$ = x[x.length - B], R._$ = { + if (B = this.productions_[T[1]][1], C.$ = x[x.length - B], C._$ = { first_line: u[u.length - (B || 1)].first_line, last_line: u[u.length - 1].last_line, first_column: u[u.length - (B || 1)].first_column, last_column: u[u.length - 1].last_column - }, K && (R._$.range = [ + }, U && (C._$.range = [ u[u.length - (B || 1)].range[0], u[u.length - 1].range[1] - ]), P = this.performAction.apply(R, [ + ]), P = this.performAction.apply(C, [ v, - C, + R, I, H.yy, T[1], @@ -126,7 +126,7 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = " u ].concat(L)), typeof P < "u") return P; - B && (l = l.slice(0, -1 * B * 2), x = x.slice(0, -1 * B), u = u.slice(0, -1 * B)), l.push(this.productions_[T[1]][0]), x.push(R.$), u.push(R._$), Z = S[l[l.length - 2]][l[l.length - 1]], l.push(Z); + B && (l = l.slice(0, -1 * B * 2), x = x.slice(0, -1 * B), u = u.slice(0, -1 * B)), l.push(this.productions_[T[1]][0]), x.push(C.$), u.push(C._$), Z = S[l[l.length - 2]][l[l.length - 1]], l.push(Z); break; case 3: return !0; @@ -378,8 +378,8 @@ Vt(yt, { getTasks: () => St, setDirection: () => vt }); -var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o(() => Ft, "getCommonDb"), kt = /* @__PURE__ */ o(function() { - rt.length = 0, q.length = 0, D = "", X.length = 0, nt = "LR", zt(); +var D = "", mt = 0, nt = "LR", rt = [], q = [], K = [], xt = /* @__PURE__ */ o(() => Ft, "getCommonDb"), kt = /* @__PURE__ */ o(function() { + rt.length = 0, q.length = 0, D = "", K.length = 0, nt = "LR", zt(); }, "clear"), vt = /* @__PURE__ */ o(function(e) { nt = e; }, "setDirection"), bt = /* @__PURE__ */ o(function() { @@ -394,7 +394,7 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o(( let n = 0; for (; !e && n < t; ) e = ct(), n++; - return q.push(...X), q; + return q.push(...K), q; }, "getTasks"), Et = /* @__PURE__ */ o(function(e, t, n) { const i = { id: mt++, @@ -405,9 +405,9 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o(( //if event is defined, then add it the events array events: n ? [n] : [] }; - X.push(i); + K.push(i); }, "addTask"), Tt = /* @__PURE__ */ o(function(e) { - X.find((n) => n.id === mt - 1).events.push(e); + K.find((n) => n.id === mt - 1).events.push(e); }, "addEvent"), $t = /* @__PURE__ */ o(function(e) { const t = { section: D, @@ -419,10 +419,10 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o(( q.push(t); }, "addTaskOrg"), ct = /* @__PURE__ */ o(function() { const e = /* @__PURE__ */ o(function(n) { - return X[n].processed; + return K[n].processed; }, "compileTask"); let t = !0; - for (const [n, i] of X.entries()) + for (const [n, i] of K.entries()) e(n), t = t && i.processed; return t; }, "compileTasks"), Gt = { @@ -456,7 +456,7 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o(( f.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(a, "ambivalent"), t.score > 3 ? h(r) : t.score < 3 ? c(r) : a(r), i; -}, "drawFace"), Xt = /* @__PURE__ */ o(function(e, t) { +}, "drawFace"), Kt = /* @__PURE__ */ o(function(e, t) { const n = e.append("circle"); return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n; }, "drawCircle"), It = /* @__PURE__ */ o(function(e, t) { @@ -464,14 +464,14 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o(( i.attr("x", t.x), i.attr("y", t.y), i.attr("class", "legend"), i.style("text-anchor", t.anchor), t.class !== void 0 && i.attr("class", t.class); const r = i.append("tspan"); return r.attr("x", t.x + t.textMargin * 2), r.text(n), i; -}, "drawText"), Kt = /* @__PURE__ */ o(function(e, t) { +}, "drawText"), Ut = /* @__PURE__ */ o(function(e, t) { function n(r, h, c, a, f) { return r + "," + h + " " + (r + c) + "," + h + " " + (r + c) + "," + (h + a - f) + " " + (r + c - f * 1.2) + "," + (h + a) + " " + r + "," + (h + a); } o(n, "genPoints"); const i = e.append("polygon"); i.attr("points", n(t.x, t.y, 50, 20, 7)), i.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, It(e, t); -}, "drawLabel"), Ut = /* @__PURE__ */ o(function(e, t, n) { +}, "drawLabel"), Xt = /* @__PURE__ */ o(function(e, t, n) { const i = e.append("g"), r = st(); r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = n.width, r.height = n.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, J(i, r), Ht(n)( t.text, @@ -565,7 +565,7 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o(( }, "initGraphics"); function it(e, t) { e.each(function() { - var n = U(this), i = n.text().split(/(\s+|
    )/).reverse(), r, h = [], c = 1.1, a = n.attr("y"), f = parseFloat(n.attr("dy")), g = n.text(null).append("tspan").attr("x", 0).attr("y", a).attr("dy", f + "em"); + var n = X(this), i = n.text().split(/(\s+|
    )/).reverse(), r, h = [], c = 1.1, a = n.attr("y"), f = parseFloat(n.attr("dy")), g = n.text(null).append("tspan").attr("x", 0).attr("y", a).attr("dy", f + "em"); for (let m = 0; m < i.length; m++) r = i[i.length - 1 - m], h.push(r), g.text(h.join(" ").trim()), (g.node().getComputedTextLength() > t || r === "
    ") && (h.pop(), g.text(h.join(" ").trim()), r === "
    " ? h = [""] : h = [r], g = n.append("tspan").attr("x", 0).attr("y", a).attr("dy", c + "em").text(r)); }); @@ -582,10 +582,10 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { "transform", `translate(${t.width / 2}, ${h ? t.padding / 2 + 3 : t.padding})` ), te(k, t, m, r, i), a === "neo" && (y.attr("data-look", "neo"), f)) { - const x = c.includes("dark"), u = e.node()?.ownerSVGElement ?? e.node(), S = U(u), v = S.attr("id") ?? "", I = v ? `${v}-drop-shadow` : "drop-shadow"; + const x = c.includes("dark"), u = e.node()?.ownerSVGElement ?? e.node(), S = X(u), v = S.attr("id") ?? "", I = v ? `${v}-drop-shadow` : "drop-shadow"; if (S.select(`#${I}`).empty()) { - const C = S.select("defs"); - (C.empty() ? S.append("defs") : C).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", x ? "0.2" : "0.06").attr("flood-color", x ? "#FFFFFF" : "#000000"); + const R = S.select("defs"); + (R.empty() ? S.append("defs") : R).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", x ? "0.2" : "0.06").attr("flood-color", x ? "#FFFFFF" : "#000000"); } } return t; @@ -597,10 +597,10 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { e.append("path").attr("id", i + "-node-" + Nt++).attr("class", "node-bkg node-" + t.type).attr("d", f), h?.includes("redux") || e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height); }, "defaultBkg"), M = { drawRect: J, - drawCircle: Xt, - drawSection: Ut, + drawCircle: Kt, + drawSection: Xt, drawText: It, - drawLabel: Kt, + drawLabel: Ut, drawTask: Zt, drawBackgroundRect: jt, getTextObj: qt, @@ -613,15 +613,15 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { E.debug("timeline", i.db); const k = r.securityLevel; let s; - k === "sandbox" && (s = U("#i" + t)); - const l = (k === "sandbox" ? U(s.nodes()[0].contentDocument.body) : U("body")).select("#" + t); + k === "sandbox" && (s = X("#i" + t)); + const l = (k === "sandbox" ? X(s.nodes()[0].contentDocument.body) : X("body")).select("#" + t); l.append("g"); const p = i.db.getTasks(), x = i.db.getCommonDb().getDiagramTitle(); E.debug("task", p), M.initGraphics(l, t); const u = i.db.getSections(); E.debug("sections", u); - let S = 0, v = 0, I = 0, C = 0, W = 50 + y, O = 50; - C = 50; + let S = 0, v = 0, I = 0, R = 0, W = 50 + y, O = 50; + R = 50; let L = 0, w = !0; u.forEach(function(N) { const b = { @@ -648,7 +648,7 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { E.debug("taskHeight before draw", $), v = Math.max(v, $ + 20), H = Math.max(H, b.events.length); let T = 0; for (const P of b.events) { - const R = { + const C = { descr: P, section: b.section, number: b.section, @@ -656,7 +656,7 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { padding: 20, maxHeight: 50 }; - T += M.getVirtualNodeHeight(l, R, r); + T += M.getVirtualNodeHeight(l, C, r); } b.events.length > 0 && (T += (b.events.length - 1) * 10), V = Math.max(V, T); } @@ -671,7 +671,7 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { }; E.debug("sectionNode", _); const $ = l.append("g"), T = M.drawNode($, _, L, r, t); - E.debug("sectionNode output", T), $.attr("transform", `translate(${W}, ${C})`), O += S + 50, b.length > 0 && lt( + E.debug("sectionNode output", T), $.attr("transform", `translate(${W}, ${R})`), O += S + 50, b.length > 0 && lt( l, b, L, @@ -684,7 +684,7 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { S, !1, t - ), W += 200 * Math.max(b.length, 1), O = C, L++; + ), W += 200 * Math.max(b.length, 1), O = R, L++; }) : (w = !1, lt( l, p, @@ -766,13 +766,13 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { let s = 50; const d = s, l = k, p = se + Mt, x = ie + At, u = l + p; let S = 0; - const v = g && g.length > 0, I = v ? u : k + p, C = Math.max(50, p + x - z * 2); + const v = g && g.length > 0, I = v ? u : k + p, R = Math.max(50, p + x - z * 2); g.forEach(function(N) { const b = { number: S, descr: N, section: S, - width: C, + width: R, padding: z, maxHeight: m }, _ = M.getVirtualNodeHeight(c, b, r); @@ -792,7 +792,7 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { E.debug("taskHeight before draw", $), y = Math.max(y, $); let T = 0; for (const P of b.events) { - const R = { + const C = { descr: P, section: b.section, number: b.section, @@ -800,7 +800,7 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { padding: z, maxHeight: 50 }; - T += M.getVirtualNodeHeight(c, R, r); + T += M.getVirtualNodeHeight(c, C, r); } b.events.length > 0 && (T += (b.events.length - 1) * Lt), W = Math.max(W, T) + ae; } @@ -811,7 +811,7 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { number: S, descr: N, section: S, - width: C, + width: R, padding: z, maxHeight: m }; @@ -820,13 +820,13 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { E.debug("sectionNode output", T); const P = I - p; $.attr("transform", `translate(${P}, ${s})`); - const R = s + T.height + ht; + const C = s + T.height + ht; b.length > 0 && ut( c, b, S, I, - R, + C, y, r, L, @@ -853,8 +853,8 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { throw new Error("bbox not found"); E.debug("bounds after title", w); } - const [H] = Bt(r.fontSize), V = (H ?? 16) * 2, F = (H ?? 16) * 0.5 + 20, K = c.append("g").attr("class", "lineWrapper"); - K.append("line").attr("x1", I).attr("y1", d - V).attr("x2", I).attr("y2", w.y + w.height + F).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), K.lower(), ft( + const [H] = Bt(r.fontSize), V = (H ?? 16) * 2, F = (H ?? 16) * 0.5 + 20, U = c.append("g").attr("class", "lineWrapper"); + U.append("line").attr("x1", I).attr("y1", d - V).attr("x2", I).attr("y2", w.y + w.height + F).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), U.lower(), ft( void 0, c, r.timeline?.padding ?? 50, @@ -960,7 +960,7 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) { }, "genReduxSections"), de = /* @__PURE__ */ o((e) => { let t = ""; for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) - e["lineColor" + n] = e["lineColor" + n] || e["cScaleInv" + n], Ct(e["lineColor" + n]) ? e["lineColor" + n] = Rt(e["lineColor" + n], 20) : e["lineColor" + n] = Wt(e["lineColor" + n], 20); + e["lineColor" + n] = e["lineColor" + n] || e["cScaleInv" + n], Rt(e["lineColor" + n]) ? e["lineColor" + n] = Ct(e["lineColor" + n], 20) : e["lineColor" + n] = Wt(e["lineColor" + n], 20); for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) { const i = "" + (17 - 3 * n); t += ` diff --git a/src/wc-content-kit/public/mermaid/treeView-SZITEDCU-BnPSNsii.js b/src/wc-content-kit/public/mermaid/treeView-SZITEDCU-BnPSNsii.js deleted file mode 100644 index e97b1a3..0000000 --- a/src/wc-content-kit/public/mermaid/treeView-SZITEDCU-BnPSNsii.js +++ /dev/null @@ -1,6 +0,0 @@ -import { e as r } from "./mermaid-parser.core-DQ6c91Zg.js"; -import { T as t } from "./mermaid-parser.core-DQ6c91Zg.js"; -export { - t as TreeViewModule, - r as createTreeViewServices -}; diff --git a/src/wc-content-kit/public/mermaid/treemap-W4RFUUIX-DQbHtRSM.js b/src/wc-content-kit/public/mermaid/treemap-W4RFUUIX-DQbHtRSM.js deleted file mode 100644 index 9e434d0..0000000 --- a/src/wc-content-kit/public/mermaid/treemap-W4RFUUIX-DQbHtRSM.js +++ /dev/null @@ -1,6 +0,0 @@ -import { i as r } from "./mermaid-parser.core-DQ6c91Zg.js"; -import { j as m } from "./mermaid-parser.core-DQ6c91Zg.js"; -export { - m as TreemapModule, - r as createTreemapServices -}; diff --git a/src/wc-content-kit/public/mermaid/vennDiagram-DHZGUBPP-UT8BSHk_.js b/src/wc-content-kit/public/mermaid/vennDiagram-CIIHVFJN-7Te4RaTP.js similarity index 89% rename from src/wc-content-kit/public/mermaid/vennDiagram-DHZGUBPP-UT8BSHk_.js rename to src/wc-content-kit/public/mermaid/vennDiagram-CIIHVFJN-7Te4RaTP.js index 8d18ffc..9451e7c 100644 --- a/src/wc-content-kit/public/mermaid/vennDiagram-DHZGUBPP-UT8BSHk_.js +++ b/src/wc-content-kit/public/mermaid/vennDiagram-CIIHVFJN-7Te4RaTP.js @@ -1,11 +1,11 @@ -import { aD as Gt, s as Wt, g as Kt, q as Ht, p as Xt, a as Yt, b as Zt, _ as w, D as wt, I as Jt, d as ot, as as Qt, V as $t, W as te, X as ee, e as ne, z as se, F as ie, G as oe } from "./mermaid.core-Jw3znkh4.js"; +import { e as Gt, b0 as Wt, a1 as Kt, a5 as Ht, b3 as Yt, a2 as Xt, b1 as Zt, b as w, a3 as wt, a$ as Jt, a_ as ot, l as Qt, au as $t, az as te, L as ee, E as ne, t as se, s as ie, S as oe } from "./mermaid.core-FRDjOodn.js"; const kt = (t, n) => Gt(t, "a", -n), _t = 1e-10; function st(t, n) { const s = ae(t), e = s.filter((c) => re(c, t)); let i = 0, o = 0; const a = []; if (e.length > 1) { - const c = Et(e); + const c = Tt(e); for (let u = 0; u < e.length; ++u) { const r = e[u]; r.angle = Math.atan2(r.x - c.x, r.y - c.y); @@ -20,9 +20,9 @@ function st(t, n) { for (let b = 0; b < r.parentIndex.length; ++b) if (h.parentIndex.includes(r.parentIndex[b])) { const x = t[r.parentIndex[b]], M = Math.atan2(r.x - x.x, r.y - x.y), A = Math.atan2(h.x - x.x, h.y - x.y); - let T = A - M; - T < 0 && (T += 2 * Math.PI); - const S = A - T / 2; + let E = A - M; + E < 0 && (E += 2 * Math.PI); + const S = A - E / 2; let g = q(y, { x: x.x + x.radius * Math.sin(S), y: x.y + x.radius * Math.cos(S) @@ -59,7 +59,7 @@ function ae(t) { const n = []; for (let s = 0; s < t.length; ++s) for (let e = s + 1; e < t.length; ++e) { - const i = Tt(t[s], t[e]); + const i = Et(t[s], t[e]); for (const o of i) o.parentIndex = [s, e], n.push(o); } @@ -79,7 +79,7 @@ function xt(t, n, s) { const e = t - (s * s - n * n + t * t) / (2 * s), i = n - (s * s - t * t + n * n) / (2 * s); return lt(t, e) + lt(n, i); } -function Tt(t, n) { +function Et(t, n) { const s = q(t, n), e = t.radius, i = n.radius; if (s >= e + i || s <= Math.abs(e - i)) return []; @@ -89,7 +89,7 @@ function Tt(t, n) { { x: c - u, y: h + r } ]; } -function Et(t) { +function Tt(t) { const n = { x: 0, y: 0 }; for (const s of t) n.x += s.x, n.y += s.y; @@ -152,7 +152,7 @@ function zt(t, n, s) { x[b][l] = v[l]; x[b].fx = v.fx; } - const A = (v, l) => v.fx - l.fx, T = n.slice(), S = n.slice(), g = n.slice(), m = n.slice(); + const A = (v, l) => v.fx - l.fx, E = n.slice(), S = n.slice(), g = n.slice(), m = n.slice(); for (let v = 0; v < e; ++v) { if (x.sort(A), s.history) { const p = x.map((f) => { @@ -171,17 +171,17 @@ function zt(t, n, s) { if (Math.abs(x[0].fx - x[b].fx) < a && d < c) break; for (let p = 0; p < b; ++p) { - T[p] = 0; + E[p] = 0; for (let f = 0; f < b; ++f) - T[p] += x[f][p]; - T[p] /= b; + E[p] += x[f][p]; + E[p] /= b; } const l = x[b]; - if (J(S, 1 + h, T, -h, l), S.fx = t(S), S.fx < x[0].fx) - J(m, 1 + u, T, -u, l), m.fx = t(m), m.fx < S.fx ? M(m) : M(S); + if (J(S, 1 + h, E, -h, l), S.fx = t(S), S.fx < x[0].fx) + J(m, 1 + u, E, -u, l), m.fx = t(m), m.fx < S.fx ? M(m) : M(S); else if (S.fx >= x[b - 1].fx) { let p = !1; - if (S.fx > l.fx ? (J(g, 1 + r, T, -r, l), g.fx = t(g), g.fx < l.fx ? M(g) : p = !0) : (J(g, 1 - r * h, T, r * h, l), g.fx = t(g), g.fx < S.fx ? M(g) : p = !0), p) { + if (S.fx > l.fx ? (J(g, 1 + r, E, -r, l), g.fx = t(g), g.fx < l.fx ? M(g) : p = !0) : (J(g, 1 - r * h, E, r * h, l), g.fx = t(g), g.fx < S.fx ? M(g) : p = !0), p) { if (y >= 1) break; for (let f = 1; f < x.length; ++f) J(x[f], 1 - y, x[0], y, x[f]), x[f].fx = t(x[f]); @@ -196,7 +196,7 @@ function ce(t, n, s, e, i, o, a) { let u = c, r = c, y = h, d = 0; i = i || 1, o = o || 1e-6, a = a || 0.1; function b(x, M, A) { - for (let T = 0; T < 16; ++T) + for (let E = 0; E < 16; ++E) if (i = (x + M) / 2, J(e.x, 1, s.x, i, n), u = e.fx = t(e.x, e.fxprime), y = $(e.fxprime, n), u > c + o * i * h || u >= A) M = i; else { @@ -273,9 +273,9 @@ function At(t, n = {}) { } return o; } -const Dt = 1e-10; +const Rt = 1e-10; function ht(t, n, s) { - return Math.min(t, n) * Math.min(t, n) * Math.PI <= s + Dt ? Math.abs(t - n) : le((e) => xt(t, n, e) - s, 0, t + n); + return Math.min(t, n) * Math.min(t, n) * Math.PI <= s + Rt ? Math.abs(t - n) : le((e) => xt(t, n, e) - s, 0, t + n); } function fe(t, n = {}) { const s = n.distinct, e = t.map((c) => Object.assign({}, c)); @@ -389,7 +389,7 @@ function ye(t, n) { for (const y of t) { let d = y.weight != null ? y.weight : 1; const b = y.sets[0], x = y.sets[1]; - y.size + Dt >= Math.min(e[b].size, e[x].size) && (d = 0), i[b].push({ set: x, size: y.size, weight: d }), i[x].push({ set: b, size: y.size, weight: d }); + y.size + Rt >= Math.min(e[b].size, e[x].size) && (d = 0), i[b].push({ set: x, size: y.size, weight: d }), i[x].push({ set: b, size: y.size, weight: d }); } const o = []; Object.keys(i).forEach((y) => { @@ -419,20 +419,20 @@ function ye(t, n) { const S = e[b[r].set], g = ht(x.radius, S.radius, b[r].size); M.push({ x: S.x + g, y: S.y }), M.push({ x: S.x - g, y: S.y }), M.push({ y: S.y + g, x: S.x }), M.push({ y: S.y - g, x: S.x }); for (let m = r + 1; m < b.length; ++m) { - const v = e[b[m].set], l = ht(x.radius, v.radius, b[m].size), p = Tt( + const v = e[b[m].set], l = ht(x.radius, v.radius, b[m].size), p = Et( { x: S.x, y: S.y, radius: g }, { x: v.x, y: v.y, radius: l } ); M.push(...p); } } - let A = 1e50, T = M[0]; + let A = 1e50, E = M[0]; for (const S of M) { e[d].x = S.x, e[d].y = S.y; const g = s(e, t); - g < A && (A = g, T = S); + g < A && (A = g, E = S); } - u(T, d); + u(E, d); } return e; } @@ -452,7 +452,7 @@ function tt(t, n) { } return s; } -function Rt(t, n) { +function Ct(t, n) { let s = 0; for (const e of n) { if (e.sets.length === 1) @@ -528,7 +528,7 @@ function dt(t) { }; return { xRange: n("x"), yRange: n("y") }; } -function Ct(t, n, s) { +function Dt(t, n, s) { n == null && (n = Math.PI / 2); let e = Ft(t).map((u) => Object.assign({}, u)); const i = me(e); @@ -599,7 +599,7 @@ function Ft(t) { return Object.keys(t).map((s) => Object.assign(t[s], { setid: s })); } function be(t = {}) { - let n = !1, s = 600, e = 350, i = 15, o = 1e3, a = Math.PI / 2, c = !0, h = null, u = !0, r = !0, y = null, d = null, b = !1, x = null, M = t && t.symmetricalTextCentre ? t.symmetricalTextCentre : !1, A = {}, T = t && t.colourScheme ? t.colourScheme : t && t.colorScheme ? t.colorScheme : [ + let n = !1, s = 600, e = 350, i = 15, o = 1e3, a = Math.PI / 2, c = !0, h = null, u = !0, r = !0, y = null, d = null, b = !1, x = null, M = t && t.symmetricalTextCentre ? t.symmetricalTextCentre : !1, A = {}, E = t && t.colourScheme ? t.colourScheme : t && t.colorScheme ? t.colorScheme : [ "#1f77b4", "#ff7f0e", "#2ca02c", @@ -613,8 +613,8 @@ function be(t = {}) { ], S = 0, g = function(p) { if (p in A) return A[p]; - var f = A[p] = T[S]; - return S += 1, S >= T.length && (S = 0), f; + var f = A[p] = E[S]; + return S += 1, S >= E.length && (S = 0), f; }, m = At, v = tt; function l(p) { let f = p.datum(); @@ -622,10 +622,10 @@ function be(t = {}) { f.forEach((k) => { k.size == 0 && k.sets.length == 1 && N.add(k.sets[0]); }), f = f.filter((k) => !k.sets.some((F) => N.has(F))); - let I = {}, R = {}; + let I = {}, C = {}; if (f.length > 0) { let k = m(f, { lossFunction: v, distinct: b }); - c && (k = Ct(k, a, d)), I = Nt(k, s, e, i, h), R = jt(I, f, M); + c && (k = Dt(k, a, d)), I = Nt(k, s, e, i, h), C = jt(I, f, M); } const U = {}; f.forEach((k) => { @@ -638,28 +638,28 @@ function be(t = {}) { return "" + k.sets[0]; } p.selectAll("svg").data([I]).enter().append("svg"); - const E = p.select("svg"); - n ? E.attr("viewBox", `0 0 ${s} ${e}`) : E.attr("width", s).attr("height", e); - const D = {}; + const T = p.select("svg"); + n ? T.attr("viewBox", `0 0 ${s} ${e}`) : T.attr("width", s).attr("height", e); + const R = {}; let _ = !1; - E.selectAll(".venn-area path").each(function(k) { + T.selectAll(".venn-area path").each(function(k) { const F = this.getAttribute("d"); - k.sets.length == 1 && F && !b && (_ = !0, D[k.sets[0]] = ke(F)); + k.sets.length == 1 && F && !b && (_ = !0, R[k.sets[0]] = ke(F)); }); function P(k) { return (F) => { const H = k.sets.map((et) => { - let X = D[et], Z = I[et]; - return X || (X = { x: s / 2, y: e / 2, radius: 1 }), Z || (Z = { x: s / 2, y: e / 2, radius: 1 }), { - x: X.x * (1 - F) + Z.x * F, - y: X.y * (1 - F) + Z.y * F, - radius: X.radius * (1 - F) + Z.radius * F + let Y = R[et], Z = I[et]; + return Y || (Y = { x: s / 2, y: e / 2, radius: 1 }), Z || (Z = { x: s / 2, y: e / 2, radius: 1 }), { + x: Y.x * (1 - F) + Z.x * F, + y: Y.y * (1 - F) + Z.y * F, + radius: Y.radius * (1 - F) + Z.radius * F }; }); return St(H, x); }; } - const V = E.selectAll(".venn-area").data(f, (k) => k.sets), O = V.enter().append("g").attr( + const V = T.selectAll(".venn-area").data(f, (k) => k.sets), O = V.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("_")), B = O.append("path"), W = O.append("text").attr("class", "label").text((k) => j(k)).attr("text-anchor", "middle").attr("dy", ".35em").attr("x", s / 2).attr("y", e / 2); @@ -669,12 +669,12 @@ function be(t = {}) { } let z = p; _ && typeof z.transition == "function" ? (z = K(p), z.selectAll("path").attrTween("d", P)) : z.selectAll("path").attr("d", (k) => St(k.sets.map((F) => I[F])), x); - const L = z.selectAll("text").filter((k) => k.sets in R).text((k) => j(k)).attr("x", (k) => Math.floor(R[k.sets].x)).attr("y", (k) => Math.floor(R[k.sets].y)); + const L = z.selectAll("text").filter((k) => k.sets in C).text((k) => j(k)).attr("x", (k) => Math.floor(C[k.sets].x)).attr("y", (k) => Math.floor(C[k.sets].y)); u && (_ ? "on" in L ? L.on("end", rt(I, j)) : L.each("end", rt(I, j)) : L.each(rt(I, j))); - const C = K(V.exit()).remove(); - typeof V.transition == "function" && C.selectAll("path").attrTween("d", P); - const Y = C.selectAll("text").attr("x", s / 2).attr("y", e / 2); - return y !== null && (W.style("font-size", "0px"), L.style("font-size", y), Y.style("font-size", "0px")), { circles: I, textCentres: R, nodes: V, enter: O, update: z, exit: C }; + const D = K(V.exit()).remove(); + typeof V.transition == "function" && D.selectAll("path").attrTween("d", P); + const X = D.selectAll("text").attr("x", s / 2).attr("y", e / 2); + return y !== null && (W.style("font-size", "0px"), L.style("font-size", y), X.style("font-size", "0px")), { circles: I, textCentres: C, nodes: V, enter: O, update: z, exit: D }; } return l.wrap = function(p) { return arguments.length ? (u = p, l) : u; @@ -711,7 +711,7 @@ function be(t = {}) { }, l.orientationOrder = function(p) { return arguments.length ? (d = p, l) : d; }, l.lossFunction = function(p) { - return arguments.length ? (v = p === "default" ? tt : p === "logRatio" ? Rt : p, l) : v; + return arguments.length ? (v = p === "default" ? tt : p === "logRatio" ? Ct : p, l) : v; }, l; } function rt(t, n) { @@ -731,9 +731,9 @@ function rt(t, n) { const g = r.join(" "); M.textContent = g, g.length > h && M.getComputedTextLength() > i && (r.pop(), M.textContent = r.join(" "), r = [u], M = x(u), y++); } - const A = 0.35 - y * d / 2, T = e.getAttribute("x"), S = e.getAttribute("y"); + const A = 0.35 - y * d / 2, E = e.getAttribute("x"), S = e.getAttribute("y"); b.forEach((g, m) => { - g.setAttribute("x", T), g.setAttribute("y", S), g.setAttribute("dy", `${A + m * d}em`); + g.setAttribute("x", E), g.setAttribute("y", S), g.setAttribute("dy", `${A + m * d}em`); }); }; } @@ -779,7 +779,7 @@ function Lt(t, n, s) { if (t.length == 1) return { x: t[0].x, y: t[0].y }; const u = {}; - return st(t, u), u.arcs.length === 0 ? { x: 0, y: -1e3, disjoint: !0 } : u.arcs.length == 1 ? { x: u.arcs[0].circle.x, y: u.arcs[0].circle.y } : n.length ? Lt(t, []) : Et(u.arcs.map((r) => r.p1)); + return st(t, u), u.arcs.length === 0 ? { x: 0, y: -1e3, disjoint: !0 } : u.arcs.length == 1 ? { x: u.arcs[0].circle.x, y: u.arcs[0].circle.y } : n.length ? Lt(t, []) : Tt(u.arcs.map((r) => r.p1)); } function ve(t) { const n = {}, s = Object.keys(t); @@ -866,11 +866,11 @@ function Me(t, n = {}) { round: b = 2 } = n; let x = e(t, { - lossFunction: s === "default" || !s ? tt : s === "logRatio" ? Rt : s, + lossFunction: s === "default" || !s ? tt : s === "logRatio" ? Ct : s, distinct: d }); - i && (x = Ct(x, o, a)); - const M = Nt(x, c, h, u, r), A = jt(M, t, y), T = new Map( + i && (x = Dt(x, o, a)); + const M = Nt(x, c, h, u, r), A = jt(M, t, y), E = new Map( Object.keys(M).map((m) => [ m, { @@ -881,7 +881,7 @@ function Me(t, n = {}) { } ]) ), S = t.map((m) => { - const v = m.sets.map((f) => T.get(f)), l = Pt(v), p = Vt(l, b); + const v = m.sets.map((f) => E.get(f)), l = Pt(v), p = Vt(l, b); return { circles: v, arcs: l, path: p, area: m, has: new Set(m.sets) }; }); function g(m) { @@ -986,15 +986,15 @@ var gt = (function() { case 24: case 25: case 26: - var R = l.getCurrentSets(); - if (!R) throw new Error("text requires set"); - l.addTextData(R, f[I], void 0); + var C = l.getCurrentSets(); + if (!C) throw new Error("text requires set"); + l.addTextData(C, f[I], void 0); break; case 27: case 28: - var R = l.getCurrentSets(); - if (!R) throw new Error("text requires set"); - l.addTextData(R, f[I - 1], f[I]); + var C = l.getCurrentSets(); + if (!C) throw new Error("text requires set"); + l.addTextData(C, f[I - 1], f[I]); break; case 29: case 41: @@ -1033,7 +1033,7 @@ var gt = (function() { } }, "parseError"), parse: /* @__PURE__ */ w(function(g) { - var m = this, v = [0], l = [], p = [null], f = [], N = this.table, I = "", R = 0, U = 0, j = 2, E = 1, D = f.slice.call(arguments, 1), _ = Object.create(this.lexer), P = { yy: {} }; + var m = this, v = [0], l = [], p = [null], f = [], N = this.table, I = "", C = 0, U = 0, j = 2, T = 1, R = f.slice.call(arguments, 1), _ = Object.create(this.lexer), P = { yy: {} }; for (var V in this.yy) Object.prototype.hasOwnProperty.call(this.yy, V) && (P.yy[V] = this.yy[V]); _.setInput(g, P.yy), P.yy.lexer = _, P.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {}); @@ -1047,33 +1047,33 @@ var gt = (function() { w(W, "popStack"); function K() { var G; - return G = l.pop() || _.lex() || E, typeof G != "number" && (G instanceof Array && (l = G, G = l.pop()), G = m.symbols_[G] || G), G; + return G = l.pop() || _.lex() || T, typeof G != "number" && (G instanceof Array && (l = G, G = l.pop()), G = m.symbols_[G] || G), G; } w(K, "lex"); - for (var z, L, C, Y, k = {}, F, H, et, X; ; ) { - if (L = v[v.length - 1], this.defaultActions[L] ? C = this.defaultActions[L] : ((z === null || typeof z > "u") && (z = K()), C = N[L] && N[L][z]), typeof C > "u" || !C.length || !C[0]) { + for (var z, L, D, X, k = {}, F, H, et, Y; ; ) { + if (L = v[v.length - 1], this.defaultActions[L] ? D = this.defaultActions[L] : ((z === null || typeof z > "u") && (z = K()), D = N[L] && N[L][z]), typeof D > "u" || !D.length || !D[0]) { var Z = ""; - X = []; + Y = []; for (F in N[L]) - this.terminals_[F] && F > j && X.push("'" + this.terminals_[F] + "'"); - _.showPosition ? Z = "Parse error on line " + (R + 1) + `: + this.terminals_[F] && F > j && Y.push("'" + this.terminals_[F] + "'"); + _.showPosition ? Z = "Parse error on line " + (C + 1) + `: ` + _.showPosition() + ` -Expecting ` + X.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : Z = "Parse error on line " + (R + 1) + ": Unexpected " + (z == E ? "end of input" : "'" + (this.terminals_[z] || z) + "'"), this.parseError(Z, { +Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : Z = "Parse error on line " + (C + 1) + ": Unexpected " + (z == T ? "end of input" : "'" + (this.terminals_[z] || z) + "'"), this.parseError(Z, { text: _.match, token: this.terminals_[z] || z, line: _.yylineno, loc: O, - expected: X + expected: Y }); } - if (C[0] instanceof Array && C.length > 1) + if (D[0] instanceof Array && D.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + z); - switch (C[0]) { + switch (D[0]) { case 1: - v.push(z), p.push(_.yytext), f.push(_.yylloc), v.push(C[1]), z = null, U = _.yyleng, I = _.yytext, R = _.yylineno, O = _.yylloc; + v.push(z), p.push(_.yytext), f.push(_.yylloc), v.push(D[1]), z = null, U = _.yyleng, I = _.yytext, C = _.yylineno, O = _.yylloc; break; case 2: - if (H = this.productions_[C[1]][1], k.$ = p[p.length - H], k._$ = { + if (H = this.productions_[D[1]][1], k.$ = p[p.length - H], k._$ = { first_line: f[f.length - (H || 1)].first_line, last_line: f[f.length - 1].last_line, first_column: f[f.length - (H || 1)].first_column, @@ -1081,17 +1081,17 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : Z = " }, B && (k._$.range = [ f[f.length - (H || 1)].range[0], f[f.length - 1].range[1] - ]), Y = this.performAction.apply(k, [ + ]), X = this.performAction.apply(k, [ I, U, - R, + C, P.yy, - C[1], + D[1], p, f - ].concat(D)), typeof Y < "u") - return Y; - H && (v = v.slice(0, -1 * H * 2), p = p.slice(0, -1 * H), f = f.slice(0, -1 * H)), v.push(this.productions_[C[1]][0]), p.push(k.$), f.push(k._$), et = N[v[v.length - 2]][v[v.length - 1]], v.push(et); + ].concat(R)), typeof X < "u") + return X; + H && (v = v.slice(0, -1 * H * 2), p = p.slice(0, -1 * H), f = f.slice(0, -1 * H)), v.push(this.productions_[D[1]][0]), p.push(k.$), f.push(k._$), et = N[v[v.length - 2]][v[v.length - 1]], v.push(et); break; case 3: return !0; @@ -1338,10 +1338,10 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : Z = " return S; })(); M.lexer = A; - function T() { + function E() { this.yy = {}; } - return w(T, "Parser"), T.prototype = M, M.Parser = T, new T(); + return w(E, "Parser"), E.prototype = M, M.Parser = E, new E(); })(); gt.parser = gt; var Se = gt, yt = [], pt = [], mt = [], bt = /* @__PURE__ */ new Set(), vt, It = !1, we = /* @__PURE__ */ w((t, n, s) => { @@ -1354,7 +1354,7 @@ var Se = gt, yt = [], pt = [], mt = [], bt = /* @__PURE__ */ new Set(), vt, It = }, "addSubsetData"), _e = /* @__PURE__ */ w(() => yt, "getSubsetData"), nt = /* @__PURE__ */ w((t) => { const n = t.trim(); return n.length >= 2 && n.startsWith('"') && n.endsWith('"') ? n.slice(1, -1) : n; -}, "normalizeText"), Te = /* @__PURE__ */ w((t) => t && nt(t), "normalizeStyleValue"), Ee = /* @__PURE__ */ w((t, n, s) => { +}, "normalizeText"), Ee = /* @__PURE__ */ w((t) => t && nt(t), "normalizeStyleValue"), Te = /* @__PURE__ */ w((t, n, s) => { const e = nt(n); pt.push({ sets: it(t).sort(), @@ -1364,13 +1364,13 @@ var Se = gt, yt = [], pt = [], mt = [], bt = /* @__PURE__ */ new Set(), vt, It = }, "addTextData"), ze = /* @__PURE__ */ w((t, n) => { const s = it(t).sort(), e = {}; for (const [i, o] of n) - e[i] = Te(o) ?? o; + e[i] = Ee(o) ?? o; mt.push({ targets: s, styles: e }); -}, "addStyleData"), Ae = /* @__PURE__ */ w(() => mt, "getStyleData"), it = /* @__PURE__ */ w((t) => t.map((n) => nt(n)), "normalizeIdentifierList"), De = /* @__PURE__ */ w((t) => { +}, "addStyleData"), Ae = /* @__PURE__ */ w(() => mt, "getStyleData"), it = /* @__PURE__ */ w((t) => t.map((n) => nt(n)), "normalizeIdentifierList"), Re = /* @__PURE__ */ w((t) => { const s = it(t).filter((e) => !bt.has(e)); if (s.length > 0) throw new Error(`unknown set identifier: ${s.join(", ")}`); -}, "validateUnionIdentifiers"), Re = /* @__PURE__ */ w(() => pt, "getTextData"), Ce = /* @__PURE__ */ w(() => vt, "getCurrentSets"), Ne = /* @__PURE__ */ w(() => It, "getIndentMode"), Oe = /* @__PURE__ */ w((t) => { +}, "validateUnionIdentifiers"), Ce = /* @__PURE__ */ w(() => pt, "getTextData"), De = /* @__PURE__ */ w(() => vt, "getCurrentSets"), Ne = /* @__PURE__ */ w(() => It, "getIndentMode"), Oe = /* @__PURE__ */ w((t) => { It = t; }, "setIndentMode"), Fe = oe.venn; function Bt() { @@ -1383,19 +1383,19 @@ var Le = /* @__PURE__ */ w(() => { getConfig: Bt, clear: Le, setAccTitle: Zt, - getAccTitle: Yt, - setDiagramTitle: Xt, + getAccTitle: Xt, + setDiagramTitle: Yt, getDiagramTitle: Ht, getAccDescription: Kt, setAccDescription: Wt, addSubsetData: we, getSubsetData: _e, - addTextData: Ee, + addTextData: Te, addStyleData: ze, - validateUnionIdentifiers: De, - getTextData: Re, + validateUnionIdentifiers: Re, + getTextData: Ce, getStyleData: Ae, - getCurrentSets: Ce, + getCurrentSets: De, getIndentMode: Ne, setIndentMode: Oe }, Pe = /* @__PURE__ */ w((t) => ` @@ -1449,27 +1449,27 @@ var Be = /* @__PURE__ */ w((t, n, s, e) => { height: A - g, padding: o?.padding ?? 15 }), I = /* @__PURE__ */ new Map(); - for (const E of N) { - const D = Q([...E.data.sets].sort()); - I.set(D, E); + for (const T of N) { + const R = Q([...T.data.sets].sort()); + I.set(R, T); } b.length > 0 && Ut(o, I, l, b, S, x); - const R = $t(a.background || "#f4f4f4"); - l.selectAll(".venn-circle").each(function(E, D) { - const _ = ot(this), V = Q([...E.sets].sort()), O = x.get(V), B = O?.fill || r[D % r.length] || a.primaryColor; - _.classed(`venn-set-${D % 8}`, !0); + const C = $t(a.background || "#f4f4f4"); + l.selectAll(".venn-circle").each(function(T, R) { + const _ = ot(this), V = Q([...T.sets].sort()), O = x.get(V), B = O?.fill || r[R % r.length] || a.primaryColor; + _.classed(`venn-set-${R % 8}`, !0); const W = O?.["fill-opacity"] ?? 0.1, K = O?.stroke || B, z = O?.["stroke-width"] || `${5 * S}`; if (u && f) { - const C = I.get(V); - if (C && C.circles.length > 0) { - const Y = C.circles[0], k = f.circle(Y.x, Y.y, Y.radius * 2, { + const D = I.get(V); + if (D && D.circles.length > 0) { + const X = D.circles[0], k = f.circle(X.x, X.y, X.radius * 2, { roughness: 0.7, seed: h, fill: kt(B, 0.7), fillStyle: "hachure", fillWeight: 2, hachureGap: 8, - hachureAngle: -41 + D * 60, + hachureAngle: -41 + R * 60, stroke: K, strokeWidth: parseFloat(String(z)) }); @@ -1477,12 +1477,12 @@ var Be = /* @__PURE__ */ w((t, n, s, e) => { } } else _.select("path").style("fill", B).style("fill-opacity", W).style("stroke", K).style("stroke-width", z).style("stroke-opacity", 0.95); - const L = O?.color || (R ? te(B, 30) : ee(B, 30)); + const L = O?.color || (C ? te(B, 30) : ee(B, 30)); _.select("text").style("font-size", `${48 * S}px`).style("fill", L); - }), u && f ? l.selectAll(".venn-intersection").each(function(E) { - const D = ot(this), P = Q([...E.sets].sort()), V = x.get(P), O = V?.fill; + }), u && f ? l.selectAll(".venn-intersection").each(function(T) { + const R = ot(this), P = Q([...T.sets].sort()), V = x.get(P), O = V?.fill; if (O) { - const B = D.select("path"), W = B.attr("d"); + const B = R.select("path"), W = B.attr("d"); if (W) { const K = f.path(W, { roughness: 0.7, @@ -1497,22 +1497,22 @@ var Be = /* @__PURE__ */ w((t, n, s, e) => { z?.parentNode?.insertBefore(K, z), B.remove(); } } else - D.select("path").style("fill-opacity", 0); - D.select("text").style("font-size", `${48 * S}px`).style("fill", V?.color ?? a.vennSetTextColor ?? m); - }) : (l.selectAll(".venn-intersection text").style("font-size", `${48 * S}px`).style("fill", (E) => { - const _ = Q([...E.sets].sort()); + R.select("path").style("fill-opacity", 0); + R.select("text").style("font-size", `${48 * S}px`).style("fill", V?.color ?? a.vennSetTextColor ?? m); + }) : (l.selectAll(".venn-intersection text").style("font-size", `${48 * S}px`).style("fill", (T) => { + const _ = Q([...T.sets].sort()); return x.get(_)?.color ?? a.vennSetTextColor ?? m; - }), l.selectAll(".venn-intersection path").style("fill-opacity", (E) => { - const _ = Q([...E.sets].sort()); + }), l.selectAll(".venn-intersection path").style("fill-opacity", (T) => { + const _ = Q([...T.sets].sort()); return x.get(_)?.fill ? 1 : 0; - }).style("fill", (E) => { - const _ = Q([...E.sets].sort()); + }).style("fill", (T) => { + const _ = Q([...T.sets].sort()); return x.get(_)?.fill ?? "transparent"; })); const U = v.append("g").attr("transform", `translate(0, ${g})`), j = l.select("svg").node(); if (j && "childNodes" in j) - for (const E of [...j.childNodes]) - U.node()?.appendChild(E); + for (const T of [...j.childNodes]) + U.node()?.appendChild(T); ne(v, A, M, o?.useMaxWidth ?? !0); }, "draw"); function Q(t) { @@ -1529,18 +1529,18 @@ function Ut(t, n, s, e, i, o) { const d = n.get(r); if (!d?.text) continue; - const b = d.text.x, x = d.text.y, M = Math.min(...d.circles.map((E) => E.radius)), A = Math.min( - ...d.circles.map((E) => E.radius - Math.hypot(b - E.x, x - E.y)) + const b = d.text.x, x = d.text.y, M = Math.min(...d.circles.map((T) => T.radius)), A = Math.min( + ...d.circles.map((T) => T.radius - Math.hypot(b - T.x, x - T.y)) ); - let T = Number.isFinite(A) ? Math.max(0, A) : 0; - T === 0 && Number.isFinite(M) && (T = M * 0.6); + let E = Number.isFinite(A) ? Math.max(0, A) : 0; + E === 0 && Number.isFinite(M) && (E = M * 0.6); const S = h.append("g").attr("class", "venn-text-area").attr("font-size", `${40 * i}px`); - a && S.append("circle").attr("class", "venn-text-debug-circle").attr("cx", b).attr("cy", x).attr("r", T).attr("fill", "none").attr("stroke", "purple").attr("stroke-width", 1.5 * i).attr("stroke-dasharray", `${6 * i} ${4 * i}`); - const g = Math.max(80 * i, T * 2 * 0.95), m = Math.max(60 * i, T * 2 * 0.95), p = (d.data.label && d.data.label.length > 0 ? Math.min(32 * i, T * 0.25) : 0) + (y.length <= 2 ? 30 * i : 0), f = b - g / 2, N = x - m / 2 + p, I = Math.max(1, Math.ceil(Math.sqrt(y.length))), R = Math.max(1, Math.ceil(y.length / I)), U = g / I, j = m / R; - for (const [E, D] of y.entries()) { - const _ = E % I, P = Math.floor(E / I), V = f + U * (_ + 0.5), O = N + j * (P + 0.5); + a && S.append("circle").attr("class", "venn-text-debug-circle").attr("cx", b).attr("cy", x).attr("r", E).attr("fill", "none").attr("stroke", "purple").attr("stroke-width", 1.5 * i).attr("stroke-dasharray", `${6 * i} ${4 * i}`); + const g = Math.max(80 * i, E * 2 * 0.95), m = Math.max(60 * i, E * 2 * 0.95), p = (d.data.label && d.data.label.length > 0 ? Math.min(32 * i, E * 0.25) : 0) + (y.length <= 2 ? 30 * i : 0), f = b - g / 2, N = x - m / 2 + p, I = Math.max(1, Math.ceil(Math.sqrt(y.length))), C = Math.max(1, Math.ceil(y.length / I)), U = g / I, j = m / C; + for (const [T, R] of y.entries()) { + const _ = T % I, P = Math.floor(T / I), V = f + U * (_ + 0.5), O = N + j * (P + 0.5); a && S.append("rect").attr("class", "venn-text-debug-cell").attr("x", f + U * _).attr("y", N + j * P).attr("width", U).attr("height", j).attr("fill", "none").attr("stroke", "teal").attr("stroke-width", 1 * i).attr("stroke-dasharray", `${4 * i} ${3 * i}`); - const B = U * 0.9, W = j * 0.9, K = S.append("foreignObject").attr("class", "venn-text-node-fo").attr("width", B).attr("height", W).attr("x", V - B / 2).attr("y", O - W / 2).attr("overflow", "visible"), z = o.get(D.id)?.color, L = K.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(D.label ?? D.id); + const B = U * 0.9, W = j * 0.9, K = S.append("foreignObject").attr("class", "venn-text-node-fo").attr("width", B).attr("height", W).attr("x", V - B / 2).attr("y", O - W / 2).attr("overflow", "visible"), z = o.get(R.id)?.color, L = K.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(R.label ?? R.id); z && L.style("color", z); } } diff --git a/src/wc-content-kit/public/mermaid/wardley-L42UT6IY-C-B6soca.js b/src/wc-content-kit/public/mermaid/wardley-L42UT6IY-C-B6soca.js new file mode 100644 index 0000000..1f7a867 --- /dev/null +++ b/src/wc-content-kit/public/mermaid/wardley-L42UT6IY-C-B6soca.js @@ -0,0 +1,23149 @@ +var ZS = Object.create, As = Object.defineProperty, QS = Object.getOwnPropertyDescriptor, Yf = Object.getOwnPropertyNames, ew = Object.getPrototypeOf, tw = Object.prototype.hasOwnProperty, i = (e, t) => As(e, "name", { value: t, configurable: !0 }), rw = (e, t) => function() { + return e && (t = (0, e[Yf(e)[0]])(e = 0)), t; +}, V = (e, t) => function() { + return t || (0, e[Yf(e)[0]])((t = { exports: {} }).exports, t), t.exports; +}, Br = (e, t) => { + for (var r in t) + As(e, r, { get: t[r], enumerable: !0 }); +}, Xf = (e, t, r, n) => { + if (t && typeof t == "object" || typeof t == "function") + for (let a of Yf(t)) + !tw.call(e, a) && a !== r && As(e, a, { get: () => t[a], enumerable: !(n = QS(t, a)) || n.enumerable }); + return e; +}, Rl = (e, t, r) => (Xf(e, t, "default"), r), Jf = (e, t, r) => (r = e != null ? ZS(ew(e)) : {}, Xf( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + As(r, "default", { value: e, enumerable: !0 }), + e +)), Zf = (e) => Xf(As({}, "__esModule", { value: !0 }), e), $l = {}; +Br($l, { + AnnotatedTextEdit: () => ur, + ChangeAnnotation: () => en, + ChangeAnnotationIdentifier: () => je, + CodeAction: () => Pu, + CodeActionContext: () => ku, + CodeActionKind: () => Nu, + CodeActionTriggerKind: () => Fi, + CodeDescription: () => lu, + CodeLens: () => Ou, + Color: () => uo, + ColorInformation: () => ru, + ColorPresentation: () => nu, + Command: () => Qr, + CompletionItem: () => vu, + CompletionItemKind: () => du, + CompletionItemLabelDetails: () => yu, + CompletionItemTag: () => hu, + CompletionList: () => Tu, + CreateFile: () => ca, + DeleteFile: () => fa, + Diagnostic: () => Li, + DiagnosticRelatedInformation: () => fo, + DiagnosticSeverity: () => su, + DiagnosticTag: () => ou, + DocumentHighlight: () => _u, + DocumentHighlightKind: () => Eu, + DocumentLink: () => Du, + DocumentSymbol: () => Iu, + DocumentUri: () => Qc, + EOL: () => bg, + FoldingRange: () => iu, + FoldingRangeKind: () => au, + FormattingOptions: () => Lu, + Hover: () => Ru, + InlayHint: () => Ku, + InlayHintKind: () => mo, + InlayHintLabelPart: () => go, + InlineCompletionContext: () => Xu, + InlineCompletionItem: () => Wu, + InlineCompletionList: () => Vu, + InlineCompletionTriggerKind: () => Hu, + InlineValueContext: () => Bu, + InlineValueEvaluatableExpression: () => zu, + InlineValueText: () => ju, + InlineValueVariableLookup: () => Uu, + InsertReplaceEdit: () => mu, + InsertTextFormat: () => pu, + InsertTextMode: () => gu, + Location: () => Oi, + LocationLink: () => tu, + MarkedString: () => xi, + MarkupContent: () => da, + MarkupKind: () => ho, + OptionalVersionedTextDocumentIdentifier: () => Mi, + ParameterInformation: () => $u, + Position: () => ie, + Range: () => ee, + RenameFile: () => ua, + SelectedCompletionInfo: () => Yu, + SelectionRange: () => Mu, + SemanticTokenModifiers: () => Fu, + SemanticTokenTypes: () => xu, + SemanticTokens: () => Gu, + SignatureInformation: () => Au, + StringValue: () => qu, + SymbolInformation: () => Su, + SymbolKind: () => Cu, + SymbolTag: () => bu, + TextDocument: () => Zu, + TextDocumentEdit: () => Di, + TextDocumentIdentifier: () => cu, + TextDocumentItem: () => fu, + TextEdit: () => Wt, + URI: () => co, + VersionedTextDocumentIdentifier: () => uu, + WorkspaceChange: () => Cg, + WorkspaceEdit: () => po, + WorkspaceFolder: () => Ju, + WorkspaceSymbol: () => wu, + integer: () => eu, + uinteger: () => Pi +}); +var Qc, co, eu, Pi, ie, ee, Oi, tu, uo, ru, nu, au, iu, fo, su, ou, lu, Li, Qr, Wt, en, je, ur, Di, ca, ua, fa, po, Ai, Nc, Cg, cu, uu, Mi, fu, ho, da, du, pu, hu, mu, gu, yu, vu, Tu, xi, Ru, $u, Au, Eu, _u, Cu, bu, Su, wu, Iu, Nu, Fi, ku, Pu, Ou, Lu, Du, Mu, xu, Fu, Gu, ju, Uu, zu, Bu, mo, go, Ku, qu, Wu, Vu, Hu, Yu, Xu, Ju, bg, Zu, Dh, $, Es = rw({ + "../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"() { + (function(e) { + function t(r) { + return typeof r == "string"; + } + i(t, "is"), e.is = t; + })(Qc || (Qc = {})), (function(e) { + function t(r) { + return typeof r == "string"; + } + i(t, "is"), e.is = t; + })(co || (co = {})), (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; + } + i(t, "is"), e.is = t; + })(eu || (eu = {})), (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; + } + i(t, "is"), e.is = t; + })(Pi || (Pi = {})), (function(e) { + function t(n, a) { + return n === Number.MAX_VALUE && (n = Pi.MAX_VALUE), a === Number.MAX_VALUE && (a = Pi.MAX_VALUE), { line: n, character: a }; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.objectLiteral(a) && $.uinteger(a.line) && $.uinteger(a.character); + } + i(r, "is"), e.is = r; + })(ie || (ie = {})), (function(e) { + function t(n, a, s, o) { + if ($.uinteger(n) && $.uinteger(a) && $.uinteger(s) && $.uinteger(o)) + return { start: ie.create(n, a), end: ie.create(s, o) }; + if (ie.is(n) && ie.is(a)) + return { start: n, end: a }; + throw new Error(`Range#create called with invalid arguments[${n}, ${a}, ${s}, ${o}]`); + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.objectLiteral(a) && ie.is(a.start) && ie.is(a.end); + } + i(r, "is"), e.is = r; + })(ee || (ee = {})), (function(e) { + function t(n, a) { + return { uri: n, range: a }; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.objectLiteral(a) && ee.is(a.range) && ($.string(a.uri) || $.undefined(a.uri)); + } + i(r, "is"), e.is = r; + })(Oi || (Oi = {})), (function(e) { + function t(n, a, s, o) { + return { targetUri: n, targetRange: a, targetSelectionRange: s, originSelectionRange: o }; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.objectLiteral(a) && ee.is(a.targetRange) && $.string(a.targetUri) && ee.is(a.targetSelectionRange) && (ee.is(a.originSelectionRange) || $.undefined(a.originSelectionRange)); + } + i(r, "is"), e.is = r; + })(tu || (tu = {})), (function(e) { + function t(n, a, s, o) { + return { + red: n, + green: a, + blue: s, + alpha: o + }; + } + i(t, "create"), e.create = t; + function r(n) { + const a = n; + return $.objectLiteral(a) && $.numberRange(a.red, 0, 1) && $.numberRange(a.green, 0, 1) && $.numberRange(a.blue, 0, 1) && $.numberRange(a.alpha, 0, 1); + } + i(r, "is"), e.is = r; + })(uo || (uo = {})), (function(e) { + function t(n, a) { + return { + range: n, + color: a + }; + } + i(t, "create"), e.create = t; + function r(n) { + const a = n; + return $.objectLiteral(a) && ee.is(a.range) && uo.is(a.color); + } + i(r, "is"), e.is = r; + })(ru || (ru = {})), (function(e) { + function t(n, a, s) { + return { + label: n, + textEdit: a, + additionalTextEdits: s + }; + } + i(t, "create"), e.create = t; + function r(n) { + const a = n; + return $.objectLiteral(a) && $.string(a.label) && ($.undefined(a.textEdit) || Wt.is(a)) && ($.undefined(a.additionalTextEdits) || $.typedArray(a.additionalTextEdits, Wt.is)); + } + i(r, "is"), e.is = r; + })(nu || (nu = {})), (function(e) { + e.Comment = "comment", e.Imports = "imports", e.Region = "region"; + })(au || (au = {})), (function(e) { + function t(n, a, s, o, l, c) { + const u = { + startLine: n, + endLine: a + }; + return $.defined(s) && (u.startCharacter = s), $.defined(o) && (u.endCharacter = o), $.defined(l) && (u.kind = l), $.defined(c) && (u.collapsedText = c), u; + } + i(t, "create"), e.create = t; + function r(n) { + const a = n; + return $.objectLiteral(a) && $.uinteger(a.startLine) && $.uinteger(a.startLine) && ($.undefined(a.startCharacter) || $.uinteger(a.startCharacter)) && ($.undefined(a.endCharacter) || $.uinteger(a.endCharacter)) && ($.undefined(a.kind) || $.string(a.kind)); + } + i(r, "is"), e.is = r; + })(iu || (iu = {})), (function(e) { + function t(n, a) { + return { + location: n, + message: a + }; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.defined(a) && Oi.is(a.location) && $.string(a.message); + } + i(r, "is"), e.is = r; + })(fo || (fo = {})), (function(e) { + e.Error = 1, e.Warning = 2, e.Information = 3, e.Hint = 4; + })(su || (su = {})), (function(e) { + e.Unnecessary = 1, e.Deprecated = 2; + })(ou || (ou = {})), (function(e) { + function t(r) { + const n = r; + return $.objectLiteral(n) && $.string(n.href); + } + i(t, "is"), e.is = t; + })(lu || (lu = {})), (function(e) { + function t(n, a, s, o, l, c) { + let u = { range: n, message: a }; + return $.defined(s) && (u.severity = s), $.defined(o) && (u.code = o), $.defined(l) && (u.source = l), $.defined(c) && (u.relatedInformation = c), u; + } + i(t, "create"), e.create = t; + function r(n) { + var a; + let s = n; + return $.defined(s) && ee.is(s.range) && $.string(s.message) && ($.number(s.severity) || $.undefined(s.severity)) && ($.integer(s.code) || $.string(s.code) || $.undefined(s.code)) && ($.undefined(s.codeDescription) || $.string((a = s.codeDescription) === null || a === void 0 ? void 0 : a.href)) && ($.string(s.source) || $.undefined(s.source)) && ($.undefined(s.relatedInformation) || $.typedArray(s.relatedInformation, fo.is)); + } + i(r, "is"), e.is = r; + })(Li || (Li = {})), (function(e) { + function t(n, a, ...s) { + let o = { title: n, command: a }; + return $.defined(s) && s.length > 0 && (o.arguments = s), o; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.defined(a) && $.string(a.title) && $.string(a.command); + } + i(r, "is"), e.is = r; + })(Qr || (Qr = {})), (function(e) { + function t(s, o) { + return { range: s, newText: o }; + } + i(t, "replace"), e.replace = t; + function r(s, o) { + return { range: { start: s, end: s }, newText: o }; + } + i(r, "insert"), e.insert = r; + function n(s) { + return { range: s, newText: "" }; + } + i(n, "del"), e.del = n; + function a(s) { + const o = s; + return $.objectLiteral(o) && $.string(o.newText) && ee.is(o.range); + } + i(a, "is"), e.is = a; + })(Wt || (Wt = {})), (function(e) { + function t(n, a, s) { + const o = { label: n }; + return a !== void 0 && (o.needsConfirmation = a), s !== void 0 && (o.description = s), o; + } + i(t, "create"), e.create = t; + function r(n) { + const a = n; + return $.objectLiteral(a) && $.string(a.label) && ($.boolean(a.needsConfirmation) || a.needsConfirmation === void 0) && ($.string(a.description) || a.description === void 0); + } + i(r, "is"), e.is = r; + })(en || (en = {})), (function(e) { + function t(r) { + const n = r; + return $.string(n); + } + i(t, "is"), e.is = t; + })(je || (je = {})), (function(e) { + function t(s, o, l) { + return { range: s, newText: o, annotationId: l }; + } + i(t, "replace"), e.replace = t; + function r(s, o, l) { + return { range: { start: s, end: s }, newText: o, annotationId: l }; + } + i(r, "insert"), e.insert = r; + function n(s, o) { + return { range: s, newText: "", annotationId: o }; + } + i(n, "del"), e.del = n; + function a(s) { + const o = s; + return Wt.is(o) && (en.is(o.annotationId) || je.is(o.annotationId)); + } + i(a, "is"), e.is = a; + })(ur || (ur = {})), (function(e) { + function t(n, a) { + return { textDocument: n, edits: a }; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.defined(a) && Mi.is(a.textDocument) && Array.isArray(a.edits); + } + i(r, "is"), e.is = r; + })(Di || (Di = {})), (function(e) { + function t(n, a, s) { + let o = { + kind: "create", + uri: n + }; + return a !== void 0 && (a.overwrite !== void 0 || a.ignoreIfExists !== void 0) && (o.options = a), s !== void 0 && (o.annotationId = s), o; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return a && a.kind === "create" && $.string(a.uri) && (a.options === void 0 || (a.options.overwrite === void 0 || $.boolean(a.options.overwrite)) && (a.options.ignoreIfExists === void 0 || $.boolean(a.options.ignoreIfExists))) && (a.annotationId === void 0 || je.is(a.annotationId)); + } + i(r, "is"), e.is = r; + })(ca || (ca = {})), (function(e) { + function t(n, a, s, o) { + let l = { + kind: "rename", + oldUri: n, + newUri: a + }; + return s !== void 0 && (s.overwrite !== void 0 || s.ignoreIfExists !== void 0) && (l.options = s), o !== void 0 && (l.annotationId = o), l; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return a && a.kind === "rename" && $.string(a.oldUri) && $.string(a.newUri) && (a.options === void 0 || (a.options.overwrite === void 0 || $.boolean(a.options.overwrite)) && (a.options.ignoreIfExists === void 0 || $.boolean(a.options.ignoreIfExists))) && (a.annotationId === void 0 || je.is(a.annotationId)); + } + i(r, "is"), e.is = r; + })(ua || (ua = {})), (function(e) { + function t(n, a, s) { + let o = { + kind: "delete", + uri: n + }; + return a !== void 0 && (a.recursive !== void 0 || a.ignoreIfNotExists !== void 0) && (o.options = a), s !== void 0 && (o.annotationId = s), o; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return a && a.kind === "delete" && $.string(a.uri) && (a.options === void 0 || (a.options.recursive === void 0 || $.boolean(a.options.recursive)) && (a.options.ignoreIfNotExists === void 0 || $.boolean(a.options.ignoreIfNotExists))) && (a.annotationId === void 0 || je.is(a.annotationId)); + } + i(r, "is"), e.is = r; + })(fa || (fa = {})), (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) => $.string(a.kind) ? ca.is(a) || ua.is(a) || fa.is(a) : Di.is(a))); + } + i(t, "is"), e.is = t; + })(po || (po = {})), Ai = class { + static { + i(this, "TextEditChangeImpl"); + } + constructor(e, t) { + this.edits = e, this.changeAnnotations = t; + } + insert(e, t, r) { + let n, a; + if (r === void 0 ? n = Wt.insert(e, t) : je.is(r) ? (a = r, n = ur.insert(e, t, r)) : (this.assertChangeAnnotations(this.changeAnnotations), a = this.changeAnnotations.manage(r), n = ur.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 = Wt.replace(e, t) : je.is(r) ? (a = r, n = ur.replace(e, t, r)) : (this.assertChangeAnnotations(this.changeAnnotations), a = this.changeAnnotations.manage(r), n = ur.replace(e, t, a)), this.edits.push(n), a !== void 0) + return a; + } + delete(e, t) { + let r, n; + if (t === void 0 ? r = Wt.del(e) : je.is(t) ? (n = t, r = ur.del(e, t)) : (this.assertChangeAnnotations(this.changeAnnotations), n = this.changeAnnotations.manage(t), r = ur.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."); + } + }, Nc = class { + static { + i(this, "ChangeAnnotations"); + } + constructor(e) { + this._annotations = e === void 0 ? /* @__PURE__ */ 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(); + } + }, Cg = class { + static { + i(this, "WorkspaceChange"); + } + constructor(e) { + this._textEditChanges = /* @__PURE__ */ Object.create(null), e !== void 0 ? (this._workspaceEdit = e, e.documentChanges ? (this._changeAnnotations = new Nc(e.changeAnnotations), e.changeAnnotations = this._changeAnnotations.all(), e.documentChanges.forEach((t) => { + if (Di.is(t)) { + const r = new Ai(t.edits, this._changeAnnotations); + this._textEditChanges[t.textDocument.uri] = r; + } + })) : e.changes && Object.keys(e.changes).forEach((t) => { + const r = new Ai(e.changes[t]); + this._textEditChanges[t] = r; + })) : this._workspaceEdit = {}; + } + /** + * Returns the underlying {@link WorkspaceEdit} literal + * use to be returned from a workspace edit operation like rename. + */ + 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 (Mi.is(e)) { + if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) + throw new Error("Workspace edit is not configured for document changes."); + const t = { uri: e.uri, version: e.version }; + let r = this._textEditChanges[t.uri]; + if (!r) { + const 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 Nc(), this._workspaceEdit.documentChanges = [], this._workspaceEdit.changeAnnotations = this._changeAnnotations.all()); + } + initChanges() { + this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._workspaceEdit.changes = /* @__PURE__ */ 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; + en.is(t) || je.is(t) ? n = t : r = t; + let a, s; + if (n === void 0 ? a = ca.create(e, r) : (s = je.is(n) ? n : this._changeAnnotations.manage(n), a = ca.create(e, r, s)), this._workspaceEdit.documentChanges.push(a), s !== void 0) + return s; + } + 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; + en.is(r) || je.is(r) ? a = r : n = r; + let s, o; + if (a === void 0 ? s = ua.create(e, t, n) : (o = je.is(a) ? a : this._changeAnnotations.manage(a), s = ua.create(e, t, n, o)), this._workspaceEdit.documentChanges.push(s), 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; + en.is(t) || je.is(t) ? n = t : r = t; + let a, s; + if (n === void 0 ? a = fa.create(e, r) : (s = je.is(n) ? n : this._changeAnnotations.manage(n), a = fa.create(e, r, s)), this._workspaceEdit.documentChanges.push(a), s !== void 0) + return s; + } + }, (function(e) { + function t(n) { + return { uri: n }; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.defined(a) && $.string(a.uri); + } + i(r, "is"), e.is = r; + })(cu || (cu = {})), (function(e) { + function t(n, a) { + return { uri: n, version: a }; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.defined(a) && $.string(a.uri) && $.integer(a.version); + } + i(r, "is"), e.is = r; + })(uu || (uu = {})), (function(e) { + function t(n, a) { + return { uri: n, version: a }; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.defined(a) && $.string(a.uri) && (a.version === null || $.integer(a.version)); + } + i(r, "is"), e.is = r; + })(Mi || (Mi = {})), (function(e) { + function t(n, a, s, o) { + return { uri: n, languageId: a, version: s, text: o }; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.defined(a) && $.string(a.uri) && $.string(a.languageId) && $.integer(a.version) && $.string(a.text); + } + i(r, "is"), e.is = r; + })(fu || (fu = {})), (function(e) { + e.PlainText = "plaintext", e.Markdown = "markdown"; + function t(r) { + const n = r; + return n === e.PlainText || n === e.Markdown; + } + i(t, "is"), e.is = t; + })(ho || (ho = {})), (function(e) { + function t(r) { + const n = r; + return $.objectLiteral(r) && ho.is(n.kind) && $.string(n.value); + } + i(t, "is"), e.is = t; + })(da || (da = {})), (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; + })(du || (du = {})), (function(e) { + e.PlainText = 1, e.Snippet = 2; + })(pu || (pu = {})), (function(e) { + e.Deprecated = 1; + })(hu || (hu = {})), (function(e) { + function t(n, a, s) { + return { newText: n, insert: a, replace: s }; + } + i(t, "create"), e.create = t; + function r(n) { + const a = n; + return a && $.string(a.newText) && ee.is(a.insert) && ee.is(a.replace); + } + i(r, "is"), e.is = r; + })(mu || (mu = {})), (function(e) { + e.asIs = 1, e.adjustIndentation = 2; + })(gu || (gu = {})), (function(e) { + function t(r) { + const n = r; + return n && ($.string(n.detail) || n.detail === void 0) && ($.string(n.description) || n.description === void 0); + } + i(t, "is"), e.is = t; + })(yu || (yu = {})), (function(e) { + function t(r) { + return { label: r }; + } + i(t, "create"), e.create = t; + })(vu || (vu = {})), (function(e) { + function t(r, n) { + return { items: r || [], isIncomplete: !!n }; + } + i(t, "create"), e.create = t; + })(Tu || (Tu = {})), (function(e) { + function t(n) { + return n.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&"); + } + i(t, "fromPlainText"), e.fromPlainText = t; + function r(n) { + const a = n; + return $.string(a) || $.objectLiteral(a) && $.string(a.language) && $.string(a.value); + } + i(r, "is"), e.is = r; + })(xi || (xi = {})), (function(e) { + function t(r) { + let n = r; + return !!n && $.objectLiteral(n) && (da.is(n.contents) || xi.is(n.contents) || $.typedArray(n.contents, xi.is)) && (r.range === void 0 || ee.is(r.range)); + } + i(t, "is"), e.is = t; + })(Ru || (Ru = {})), (function(e) { + function t(r, n) { + return n ? { label: r, documentation: n } : { label: r }; + } + i(t, "create"), e.create = t; + })($u || ($u = {})), (function(e) { + function t(r, n, ...a) { + let s = { label: r }; + return $.defined(n) && (s.documentation = n), $.defined(a) ? s.parameters = a : s.parameters = [], s; + } + i(t, "create"), e.create = t; + })(Au || (Au = {})), (function(e) { + e.Text = 1, e.Read = 2, e.Write = 3; + })(Eu || (Eu = {})), (function(e) { + function t(r, n) { + let a = { range: r }; + return $.number(n) && (a.kind = n), a; + } + i(t, "create"), e.create = t; + })(_u || (_u = {})), (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; + })(Cu || (Cu = {})), (function(e) { + e.Deprecated = 1; + })(bu || (bu = {})), (function(e) { + function t(r, n, a, s, o) { + let l = { + name: r, + kind: n, + location: { uri: s, range: a } + }; + return o && (l.containerName = o), l; + } + i(t, "create"), e.create = t; + })(Su || (Su = {})), (function(e) { + function t(r, n, a, s) { + return s !== void 0 ? { name: r, kind: n, location: { uri: a, range: s } } : { name: r, kind: n, location: { uri: a } }; + } + i(t, "create"), e.create = t; + })(wu || (wu = {})), (function(e) { + function t(n, a, s, o, l, c) { + let u = { + name: n, + detail: a, + kind: s, + range: o, + selectionRange: l + }; + return c !== void 0 && (u.children = c), u; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return a && $.string(a.name) && $.number(a.kind) && ee.is(a.range) && ee.is(a.selectionRange) && (a.detail === void 0 || $.string(a.detail)) && (a.deprecated === void 0 || $.boolean(a.deprecated)) && (a.children === void 0 || Array.isArray(a.children)) && (a.tags === void 0 || Array.isArray(a.tags)); + } + i(r, "is"), e.is = r; + })(Iu || (Iu = {})), (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"; + })(Nu || (Nu = {})), (function(e) { + e.Invoked = 1, e.Automatic = 2; + })(Fi || (Fi = {})), (function(e) { + function t(n, a, s) { + let o = { diagnostics: n }; + return a != null && (o.only = a), s != null && (o.triggerKind = s), o; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.defined(a) && $.typedArray(a.diagnostics, Li.is) && (a.only === void 0 || $.typedArray(a.only, $.string)) && (a.triggerKind === void 0 || a.triggerKind === Fi.Invoked || a.triggerKind === Fi.Automatic); + } + i(r, "is"), e.is = r; + })(ku || (ku = {})), (function(e) { + function t(n, a, s) { + let o = { title: n }, l = !0; + return typeof a == "string" ? (l = !1, o.kind = a) : Qr.is(a) ? o.command = a : o.edit = a, l && s !== void 0 && (o.kind = s), o; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return a && $.string(a.title) && (a.diagnostics === void 0 || $.typedArray(a.diagnostics, Li.is)) && (a.kind === void 0 || $.string(a.kind)) && (a.edit !== void 0 || a.command !== void 0) && (a.command === void 0 || Qr.is(a.command)) && (a.isPreferred === void 0 || $.boolean(a.isPreferred)) && (a.edit === void 0 || po.is(a.edit)); + } + i(r, "is"), e.is = r; + })(Pu || (Pu = {})), (function(e) { + function t(n, a) { + let s = { range: n }; + return $.defined(a) && (s.data = a), s; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.defined(a) && ee.is(a.range) && ($.undefined(a.command) || Qr.is(a.command)); + } + i(r, "is"), e.is = r; + })(Ou || (Ou = {})), (function(e) { + function t(n, a) { + return { tabSize: n, insertSpaces: a }; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.defined(a) && $.uinteger(a.tabSize) && $.boolean(a.insertSpaces); + } + i(r, "is"), e.is = r; + })(Lu || (Lu = {})), (function(e) { + function t(n, a, s) { + return { range: n, target: a, data: s }; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.defined(a) && ee.is(a.range) && ($.undefined(a.target) || $.string(a.target)); + } + i(r, "is"), e.is = r; + })(Du || (Du = {})), (function(e) { + function t(n, a) { + return { range: n, parent: a }; + } + i(t, "create"), e.create = t; + function r(n) { + let a = n; + return $.objectLiteral(a) && ee.is(a.range) && (a.parent === void 0 || e.is(a.parent)); + } + i(r, "is"), e.is = r; + })(Mu || (Mu = {})), (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"; + })(xu || (xu = {})), (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"; + })(Fu || (Fu = {})), (function(e) { + function t(r) { + const n = r; + return $.objectLiteral(n) && (n.resultId === void 0 || typeof n.resultId == "string") && Array.isArray(n.data) && (n.data.length === 0 || typeof n.data[0] == "number"); + } + i(t, "is"), e.is = t; + })(Gu || (Gu = {})), (function(e) { + function t(n, a) { + return { range: n, text: a }; + } + i(t, "create"), e.create = t; + function r(n) { + const a = n; + return a != null && ee.is(a.range) && $.string(a.text); + } + i(r, "is"), e.is = r; + })(ju || (ju = {})), (function(e) { + function t(n, a, s) { + return { range: n, variableName: a, caseSensitiveLookup: s }; + } + i(t, "create"), e.create = t; + function r(n) { + const a = n; + return a != null && ee.is(a.range) && $.boolean(a.caseSensitiveLookup) && ($.string(a.variableName) || a.variableName === void 0); + } + i(r, "is"), e.is = r; + })(Uu || (Uu = {})), (function(e) { + function t(n, a) { + return { range: n, expression: a }; + } + i(t, "create"), e.create = t; + function r(n) { + const a = n; + return a != null && ee.is(a.range) && ($.string(a.expression) || a.expression === void 0); + } + i(r, "is"), e.is = r; + })(zu || (zu = {})), (function(e) { + function t(n, a) { + return { frameId: n, stoppedLocation: a }; + } + i(t, "create"), e.create = t; + function r(n) { + const a = n; + return $.defined(a) && ee.is(n.stoppedLocation); + } + i(r, "is"), e.is = r; + })(Bu || (Bu = {})), (function(e) { + e.Type = 1, e.Parameter = 2; + function t(r) { + return r === 1 || r === 2; + } + i(t, "is"), e.is = t; + })(mo || (mo = {})), (function(e) { + function t(n) { + return { value: n }; + } + i(t, "create"), e.create = t; + function r(n) { + const a = n; + return $.objectLiteral(a) && (a.tooltip === void 0 || $.string(a.tooltip) || da.is(a.tooltip)) && (a.location === void 0 || Oi.is(a.location)) && (a.command === void 0 || Qr.is(a.command)); + } + i(r, "is"), e.is = r; + })(go || (go = {})), (function(e) { + function t(n, a, s) { + const o = { position: n, label: a }; + return s !== void 0 && (o.kind = s), o; + } + i(t, "create"), e.create = t; + function r(n) { + const a = n; + return $.objectLiteral(a) && ie.is(a.position) && ($.string(a.label) || $.typedArray(a.label, go.is)) && (a.kind === void 0 || mo.is(a.kind)) && a.textEdits === void 0 || $.typedArray(a.textEdits, Wt.is) && (a.tooltip === void 0 || $.string(a.tooltip) || da.is(a.tooltip)) && (a.paddingLeft === void 0 || $.boolean(a.paddingLeft)) && (a.paddingRight === void 0 || $.boolean(a.paddingRight)); + } + i(r, "is"), e.is = r; + })(Ku || (Ku = {})), (function(e) { + function t(r) { + return { kind: "snippet", value: r }; + } + i(t, "createSnippet"), e.createSnippet = t; + })(qu || (qu = {})), (function(e) { + function t(r, n, a, s) { + return { insertText: r, filterText: n, range: a, command: s }; + } + i(t, "create"), e.create = t; + })(Wu || (Wu = {})), (function(e) { + function t(r) { + return { items: r }; + } + i(t, "create"), e.create = t; + })(Vu || (Vu = {})), (function(e) { + e.Invoked = 0, e.Automatic = 1; + })(Hu || (Hu = {})), (function(e) { + function t(r, n) { + return { range: r, text: n }; + } + i(t, "create"), e.create = t; + })(Yu || (Yu = {})), (function(e) { + function t(r, n) { + return { triggerKind: r, selectedCompletionInfo: n }; + } + i(t, "create"), e.create = t; + })(Xu || (Xu = {})), (function(e) { + function t(r) { + const n = r; + return $.objectLiteral(n) && co.is(n.uri) && $.string(n.name); + } + i(t, "is"), e.is = t; + })(Ju || (Ju = {})), bg = [` +`, `\r +`, "\r"], (function(e) { + function t(s, o, l, c) { + return new Dh(s, o, l, c); + } + i(t, "create"), e.create = t; + function r(s) { + let o = s; + return !!($.defined(o) && $.string(o.uri) && ($.undefined(o.languageId) || $.string(o.languageId)) && $.uinteger(o.lineCount) && $.func(o.getText) && $.func(o.positionAt) && $.func(o.offsetAt)); + } + i(r, "is"), e.is = r; + function n(s, o) { + let l = s.getText(), c = a(o, (f, d) => { + let h = f.range.start.line - d.range.start.line; + return h === 0 ? f.range.start.character - d.range.start.character : h; + }), u = l.length; + for (let f = c.length - 1; f >= 0; f--) { + let d = c[f], h = s.offsetAt(d.range.start), y = s.offsetAt(d.range.end); + if (y <= u) + l = l.substring(0, h) + d.newText + l.substring(y, l.length); + else + throw new Error("Overlapping edit"); + u = h; + } + return l; + } + i(n, "applyEdits"), e.applyEdits = n; + function a(s, o) { + if (s.length <= 1) + return s; + const l = s.length / 2 | 0, c = s.slice(0, l), u = s.slice(l); + a(c, o), a(u, o); + let f = 0, d = 0, h = 0; + for (; f < c.length && d < u.length; ) + o(c[f], u[d]) <= 0 ? s[h++] = c[f++] : s[h++] = u[d++]; + for (; f < c.length; ) + s[h++] = c[f++]; + for (; d < u.length; ) + s[h++] = u[d++]; + return s; + } + i(a, "mergeSort"); + })(Zu || (Zu = {})), Dh = class { + static { + i(this, "FullTextDocument"); + } + constructor(e, t, r, n) { + this._uri = e, this._languageId = t, this._version = r, this._content = n, this._lineOffsets = void 0; + } + get uri() { + return this._uri; + } + get languageId() { + return this._languageId; + } + get version() { + return this._version; + } + getText(e) { + if (e) { + let t = this.offsetAt(e.start), r = this.offsetAt(e.end); + return this._content.substring(t, r); + } + return this._content; + } + update(e, t) { + this._content = e.text, this._version = t, this._lineOffsets = void 0; + } + getLineOffsets() { + if (this._lineOffsets === void 0) { + let e = [], t = this._content, r = !0; + for (let n = 0; n < t.length; n++) { + r && (e.push(n), r = !1); + let a = t.charAt(n); + r = a === "\r" || a === ` +`, a === "\r" && n + 1 < t.length && t.charAt(n + 1) === ` +` && n++; + } + r && t.length > 0 && 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 ie.create(0, e); + for (; r < n; ) { + let s = Math.floor((r + n) / 2); + t[s] > e ? n = s : r = s + 1; + } + let a = r - 1; + return ie.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 < t.length ? t[e.line + 1] : this._content.length; + return Math.max(Math.min(r + e.character, n), r); + } + get lineCount() { + return this.getLineOffsets().length; + } + }, (function(e) { + const t = Object.prototype.toString; + function r(y) { + return typeof y < "u"; + } + i(r, "defined"), e.defined = r; + function n(y) { + return typeof y > "u"; + } + i(n, "undefined"), e.undefined = n; + function a(y) { + return y === !0 || y === !1; + } + i(a, "boolean"), e.boolean = a; + function s(y) { + return t.call(y) === "[object String]"; + } + i(s, "string"), e.string = s; + function o(y) { + return t.call(y) === "[object Number]"; + } + i(o, "number"), e.number = o; + function l(y, v, C) { + return t.call(y) === "[object Number]" && v <= y && y <= C; + } + i(l, "numberRange"), e.numberRange = l; + function c(y) { + return t.call(y) === "[object Number]" && -2147483648 <= y && y <= 2147483647; + } + i(c, "integer"), e.integer = c; + function u(y) { + return t.call(y) === "[object Number]" && 0 <= y && y <= 2147483647; + } + i(u, "uinteger"), e.uinteger = u; + function f(y) { + return t.call(y) === "[object Function]"; + } + i(f, "func"), e.func = f; + function d(y) { + return y !== null && typeof y == "object"; + } + i(d, "objectLiteral"), e.objectLiteral = d; + function h(y, v) { + return Array.isArray(y) && y.every(v); + } + i(h, "typedArray"), e.typedArray = h; + })($ || ($ = {})); + } +}), Nn = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }); + var t; + function r() { + if (t === void 0) + throw new Error("No runtime abstraction layer installed"); + return t; + } + i(r, "RAL"), (function(n) { + function a(s) { + if (s === void 0) + throw new Error("No runtime abstraction layer provided"); + t = s; + } + i(a, "install"), n.install = a; + })(r || (r = {})), e.default = r; + } +}), _s = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.stringArray = e.array = e.func = e.error = e.number = e.string = e.boolean = void 0; + function t(c) { + return c === !0 || c === !1; + } + i(t, "boolean"), e.boolean = t; + function r(c) { + return typeof c == "string" || c instanceof String; + } + i(r, "string"), e.string = r; + function n(c) { + return typeof c == "number" || c instanceof Number; + } + i(n, "number"), e.number = n; + function a(c) { + return c instanceof Error; + } + i(a, "error"), e.error = a; + function s(c) { + return typeof c == "function"; + } + i(s, "func"), e.func = s; + function o(c) { + return Array.isArray(c); + } + i(o, "array"), e.array = o; + function l(c) { + return o(c) && c.every((u) => r(u)); + } + i(l, "stringArray"), e.stringArray = l; + } +}), Ka = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.Emitter = e.Event = void 0; + var t = Nn(), r; + (function(s) { + const o = { dispose() { + } }; + s.None = function() { + return o; + }; + })(r || (e.Event = r = {})); + var n = class { + static { + i(this, "CallbackList"); + } + add(s, o = null, l) { + this._callbacks || (this._callbacks = [], this._contexts = []), this._callbacks.push(s), this._contexts.push(o), Array.isArray(l) && l.push({ dispose: /* @__PURE__ */ i(() => this.remove(s, o), "dispose") }); + } + remove(s, o = null) { + if (!this._callbacks) + return; + let l = !1; + for (let c = 0, u = this._callbacks.length; c < u; c++) + if (this._callbacks[c] === s) + if (this._contexts[c] === o) { + this._callbacks.splice(c, 1), this._contexts.splice(c, 1); + return; + } else + l = !0; + if (l) + throw new Error("When adding a listener with a context, you should remove it with the same context"); + } + invoke(...s) { + if (!this._callbacks) + return []; + const o = [], l = this._callbacks.slice(0), c = this._contexts.slice(0); + for (let u = 0, f = l.length; u < f; u++) + try { + o.push(l[u].apply(c[u], s)); + } catch (d) { + (0, t.default)().console.error(d); + } + return o; + } + isEmpty() { + return !this._callbacks || this._callbacks.length === 0; + } + dispose() { + this._callbacks = void 0, this._contexts = void 0; + } + }, a = class Sg { + static { + i(this, "Emitter"); + } + constructor(o) { + this._options = o; + } + /** + * For the public to allow to subscribe + * to events from this Emitter + */ + get event() { + return this._event || (this._event = (o, l, c) => { + this._callbacks || (this._callbacks = new n()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(o, l); + const u = { + dispose: /* @__PURE__ */ i(() => { + this._callbacks && (this._callbacks.remove(o, l), u.dispose = Sg._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this)); + }, "dispose") + }; + return Array.isArray(c) && c.push(u), u; + }), this._event; + } + /** + * To be kept private to fire an event to + * subscribers + */ + 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() { + }; + } +}), Al = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.CancellationTokenSource = e.CancellationToken = void 0; + var t = Nn(), r = _s(), n = Ka(), a; + (function(c) { + c.None = Object.freeze({ + isCancellationRequested: !1, + onCancellationRequested: n.Event.None + }), c.Cancelled = Object.freeze({ + isCancellationRequested: !0, + onCancellationRequested: n.Event.None + }); + function u(f) { + const d = f; + return d && (d === c.None || d === c.Cancelled || r.boolean(d.isCancellationRequested) && !!d.onCancellationRequested); + } + i(u, "is"), c.is = u; + })(a || (e.CancellationToken = a = {})); + var s = Object.freeze(function(c, u) { + const f = (0, t.default)().timer.setTimeout(c.bind(u), 0); + return { dispose() { + f.dispose(); + } }; + }), o = class { + static { + i(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 ? s : (this._emitter || (this._emitter = new n.Emitter()), this._emitter.event); + } + dispose() { + this._emitter && (this._emitter.dispose(), this._emitter = void 0); + } + }, l = class { + static { + i(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 = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(e) { + 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 = _s(), r; + (function(g) { + g.ParseError = -32700, g.InvalidRequest = -32600, g.MethodNotFound = -32601, g.InvalidParams = -32602, g.InternalError = -32603, g.jsonrpcReservedErrorRangeStart = -32099, g.serverErrorStart = -32099, g.MessageWriteError = -32099, g.MessageReadError = -32098, g.PendingResponseRejected = -32097, g.ConnectionInactive = -32096, g.ServerNotInitialized = -32002, g.UnknownErrorCode = -32001, g.jsonrpcReservedErrorRangeEnd = -32e3, g.serverErrorEnd = -32e3; + })(r || (e.ErrorCodes = r = {})); + var n = class Ig extends Error { + static { + i(this, "ResponseError"); + } + constructor(E, T, R) { + super(T), this.code = t.number(E) ? E : r.UnknownErrorCode, this.data = R, Object.setPrototypeOf(this, Ig.prototype); + } + toJson() { + const E = { + code: this.code, + message: this.message + }; + return this.data !== void 0 && (E.data = this.data), E; + } + }; + e.ResponseError = n; + var a = class yo { + static { + i(this, "ParameterStructures"); + } + constructor(E) { + this.kind = E; + } + static is(E) { + return E === yo.auto || E === yo.byName || E === yo.byPosition; + } + toString() { + return this.kind; + } + }; + e.ParameterStructures = a, a.auto = new a("auto"), a.byPosition = new a("byPosition"), a.byName = new a("byName"); + var s = class { + static { + i(this, "AbstractMessageSignature"); + } + constructor(g, E) { + this.method = g, this.numberOfParams = E; + } + get parameterStructures() { + return a.auto; + } + }; + e.AbstractMessageSignature = s; + var o = class extends s { + static { + i(this, "RequestType0"); + } + constructor(g) { + super(g, 0); + } + }; + e.RequestType0 = o; + var l = class extends s { + static { + i(this, "RequestType"); + } + constructor(g, E = a.auto) { + super(g, 1), this._parameterStructures = E; + } + get parameterStructures() { + return this._parameterStructures; + } + }; + e.RequestType = l; + var c = class extends s { + static { + i(this, "RequestType1"); + } + constructor(g, E = a.auto) { + super(g, 1), this._parameterStructures = E; + } + get parameterStructures() { + return this._parameterStructures; + } + }; + e.RequestType1 = c; + var u = class extends s { + static { + i(this, "RequestType2"); + } + constructor(g) { + super(g, 2); + } + }; + e.RequestType2 = u; + var f = class extends s { + static { + i(this, "RequestType3"); + } + constructor(g) { + super(g, 3); + } + }; + e.RequestType3 = f; + var d = class extends s { + static { + i(this, "RequestType4"); + } + constructor(g) { + super(g, 4); + } + }; + e.RequestType4 = d; + var h = class extends s { + static { + i(this, "RequestType5"); + } + constructor(g) { + super(g, 5); + } + }; + e.RequestType5 = h; + var y = class extends s { + static { + i(this, "RequestType6"); + } + constructor(g) { + super(g, 6); + } + }; + e.RequestType6 = y; + var v = class extends s { + static { + i(this, "RequestType7"); + } + constructor(g) { + super(g, 7); + } + }; + e.RequestType7 = v; + var C = class extends s { + static { + i(this, "RequestType8"); + } + constructor(g) { + super(g, 8); + } + }; + e.RequestType8 = C; + var S = class extends s { + static { + i(this, "RequestType9"); + } + constructor(g) { + super(g, 9); + } + }; + e.RequestType9 = S; + var w = class extends s { + static { + i(this, "NotificationType"); + } + constructor(g, E = a.auto) { + super(g, 1), this._parameterStructures = E; + } + get parameterStructures() { + return this._parameterStructures; + } + }; + e.NotificationType = w; + var I = class extends s { + static { + i(this, "NotificationType0"); + } + constructor(g) { + super(g, 0); + } + }; + e.NotificationType0 = I; + var A = class extends s { + static { + i(this, "NotificationType1"); + } + constructor(g, E = a.auto) { + super(g, 1), this._parameterStructures = E; + } + get parameterStructures() { + return this._parameterStructures; + } + }; + e.NotificationType1 = A; + var k = class extends s { + static { + i(this, "NotificationType2"); + } + constructor(g) { + super(g, 2); + } + }; + e.NotificationType2 = k; + var G = class extends s { + static { + i(this, "NotificationType3"); + } + constructor(g) { + super(g, 3); + } + }; + e.NotificationType3 = G; + var H = class extends s { + static { + i(this, "NotificationType4"); + } + constructor(g) { + super(g, 4); + } + }; + e.NotificationType4 = H; + var X = class extends s { + static { + i(this, "NotificationType5"); + } + constructor(g) { + super(g, 5); + } + }; + e.NotificationType5 = X; + var le = class extends s { + static { + i(this, "NotificationType6"); + } + constructor(g) { + super(g, 6); + } + }; + e.NotificationType6 = le; + var ce = class extends s { + static { + i(this, "NotificationType7"); + } + constructor(g) { + super(g, 7); + } + }; + e.NotificationType7 = ce; + var Ne = class extends s { + static { + i(this, "NotificationType8"); + } + constructor(g) { + super(g, 8); + } + }; + e.NotificationType8 = Ne; + var P = class extends s { + static { + i(this, "NotificationType9"); + } + constructor(g) { + super(g, 9); + } + }; + e.NotificationType9 = P; + var _; + (function(g) { + function E(b) { + const O = b; + return O && t.string(O.method) && (t.string(O.id) || t.number(O.id)); + } + i(E, "isRequest"), g.isRequest = E; + function T(b) { + const O = b; + return O && t.string(O.method) && b.id === void 0; + } + i(T, "isNotification"), g.isNotification = T; + function R(b) { + const O = b; + return O && (O.result !== void 0 || !!O.error) && (t.string(O.id) || t.number(O.id) || O.id === null); + } + i(R, "isResponse"), g.isResponse = R; + })(_ || (e.Message = _ = {})); + } +}), Ng = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e) { + var t; + Object.defineProperty(e, "__esModule", { value: !0 }), e.LRUCache = e.LinkedMap = e.Touch = void 0; + var r; + (function(s) { + s.None = 0, s.First = 1, s.AsOld = s.First, s.Last = 2, s.AsNew = s.Last; + })(r || (e.Touch = r = {})); + var n = class { + static { + i(this, "LinkedMap"); + } + constructor() { + this[t] = "LinkedMap", this._map = /* @__PURE__ */ 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(s) { + return this._map.has(s); + } + get(s, o = r.None) { + const l = this._map.get(s); + if (l) + return o !== r.None && this.touch(l, o), l.value; + } + set(s, o, l = r.None) { + let c = this._map.get(s); + if (c) + c.value = o, l !== r.None && this.touch(c, l); + else { + switch (c = { key: s, value: o, next: void 0, previous: void 0 }, l) { + case r.None: + this.addItemLast(c); + break; + case r.First: + this.addItemFirst(c); + break; + case r.Last: + this.addItemLast(c); + break; + default: + this.addItemLast(c); + break; + } + this._map.set(s, c), this._size++; + } + return this; + } + delete(s) { + return !!this.remove(s); + } + remove(s) { + const o = this._map.get(s); + if (o) + return this._map.delete(s), this.removeItem(o), this._size--, o.value; + } + shift() { + if (!this._head && !this._tail) + return; + if (!this._head || !this._tail) + throw new Error("Invalid list"); + const s = this._head; + return this._map.delete(s.key), this.removeItem(s), this._size--, s.value; + } + forEach(s, o) { + const l = this._state; + let c = this._head; + for (; c; ) { + if (o ? s.bind(o)(c.value, c.key, this) : s(c.value, c.key, this), this._state !== l) + throw new Error("LinkedMap got modified during iteration."); + c = c.next; + } + } + keys() { + const s = this._state; + let o = this._head; + const l = { + [Symbol.iterator]: () => l, + next: /* @__PURE__ */ i(() => { + if (this._state !== s) + throw new Error("LinkedMap got modified during iteration."); + if (o) { + const c = { value: o.key, done: !1 }; + return o = o.next, c; + } else + return { value: void 0, done: !0 }; + }, "next") + }; + return l; + } + values() { + const s = this._state; + let o = this._head; + const l = { + [Symbol.iterator]: () => l, + next: /* @__PURE__ */ i(() => { + if (this._state !== s) + throw new Error("LinkedMap got modified during iteration."); + if (o) { + const c = { value: o.value, done: !1 }; + return o = o.next, c; + } else + return { value: void 0, done: !0 }; + }, "next") + }; + return l; + } + entries() { + const s = this._state; + let o = this._head; + const l = { + [Symbol.iterator]: () => l, + next: /* @__PURE__ */ i(() => { + if (this._state !== s) + throw new Error("LinkedMap got modified during iteration."); + if (o) { + const c = { value: [o.key, o.value], done: !1 }; + return o = o.next, c; + } else + return { value: void 0, done: !0 }; + }, "next") + }; + return l; + } + [(t = Symbol.toStringTag, Symbol.iterator)]() { + return this.entries(); + } + trimOld(s) { + if (s >= this.size) + return; + if (s === 0) { + this.clear(); + return; + } + let o = this._head, l = this.size; + for (; o && l > s; ) + this._map.delete(o.key), o = o.next, l--; + this._head = o, this._size = l, o && (o.previous = void 0), this._state++; + } + addItemFirst(s) { + if (!this._head && !this._tail) + this._tail = s; + else if (this._head) + s.next = this._head, this._head.previous = s; + else + throw new Error("Invalid list"); + this._head = s, this._state++; + } + addItemLast(s) { + if (!this._head && !this._tail) + this._head = s; + else if (this._tail) + s.previous = this._tail, this._tail.next = s; + else + throw new Error("Invalid list"); + this._tail = s, this._state++; + } + removeItem(s) { + if (s === this._head && s === this._tail) + this._head = void 0, this._tail = void 0; + else if (s === this._head) { + if (!s.next) + throw new Error("Invalid list"); + s.next.previous = void 0, this._head = s.next; + } else if (s === this._tail) { + if (!s.previous) + throw new Error("Invalid list"); + s.previous.next = void 0, this._tail = s.previous; + } else { + const o = s.next, l = s.previous; + if (!o || !l) + throw new Error("Invalid list"); + o.previous = l, l.next = o; + } + s.next = void 0, s.previous = void 0, this._state++; + } + touch(s, o) { + if (!this._head || !this._tail) + throw new Error("Invalid list"); + if (!(o !== r.First && o !== r.Last)) { + if (o === r.First) { + if (s === this._head) + return; + const l = s.next, c = s.previous; + s === this._tail ? (c.next = void 0, this._tail = c) : (l.previous = c, c.next = l), s.previous = void 0, s.next = this._head, this._head.previous = s, this._head = s, this._state++; + } else if (o === r.Last) { + if (s === this._tail) + return; + const l = s.next, c = s.previous; + s === this._head ? (l.previous = void 0, this._head = l) : (l.previous = c, c.next = l), s.next = void 0, s.previous = this._tail, this._tail.next = s, this._tail = s, this._state++; + } + } + } + toJSON() { + const s = []; + return this.forEach((o, l) => { + s.push([l, o]); + }), s; + } + fromJSON(s) { + this.clear(); + for (const [o, l] of s) + this.set(o, l); + } + }; + e.LinkedMap = n; + var a = class extends n { + static { + i(this, "LRUCache"); + } + constructor(s, o = 1) { + super(), this._limit = s, this._ratio = Math.min(Math.max(0, o), 1); + } + get limit() { + return this._limit; + } + set limit(s) { + this._limit = s, this.checkTrim(); + } + get ratio() { + return this._ratio; + } + set ratio(s) { + this._ratio = Math.min(Math.max(0, s), 1), this.checkTrim(); + } + get(s, o = r.AsNew) { + return super.get(s, o); + } + peek(s) { + return super.get(s, r.None); + } + set(s, o) { + return super.set(s, o, r.Last), this.checkTrim(), this; + } + checkTrim() { + this.size > this._limit && this.trimOld(Math.round(this._limit * this._ratio)); + } + }; + e.LRUCache = a; + } +}), nw = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.Disposable = void 0; + var t; + (function(r) { + function n(a) { + return { + dispose: a + }; + } + i(n, "create"), r.create = n; + })(t || (e.Disposable = t = {})); + } +}), aw = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.SharedArrayReceiverStrategy = e.SharedArraySenderStrategy = void 0; + var t = Al(), r; + (function(l) { + l.Continue = 0, l.Cancelled = 1; + })(r || (r = {})); + var n = class { + static { + i(this, "SharedArraySenderStrategy"); + } + constructor() { + this.buffers = /* @__PURE__ */ new Map(); + } + enableCancellation(l) { + if (l.id === null) + return; + const c = new SharedArrayBuffer(4), u = new Int32Array(c, 0, 1); + u[0] = r.Continue, this.buffers.set(l.id, c), l.$cancellationData = c; + } + async sendCancellation(l, c) { + const u = this.buffers.get(c); + if (u === void 0) + return; + const f = new Int32Array(u, 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 { + i(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"); + } + }, s = class { + static { + i(this, "SharedArrayBufferCancellationTokenSource"); + } + constructor(l) { + this.token = new a(l); + } + cancel() { + } + dispose() { + } + }, o = class { + static { + i(this, "SharedArrayReceiverStrategy"); + } + constructor() { + this.kind = "request"; + } + createCancellationTokenSource(l) { + const c = l.$cancellationData; + return c === void 0 ? new t.CancellationTokenSource() : new s(c); + } + }; + e.SharedArrayReceiverStrategy = o; + } +}), kg = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.Semaphore = void 0; + var t = Nn(), r = class { + static { + i(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, s) => { + this._waiting.push({ thunk: n, resolve: a, reject: s }), 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; + const n = this._waiting.shift(); + if (this._active++, this._active > this._capacity) + throw new Error("To many thunks active"); + try { + const a = n.thunk(); + a instanceof Promise ? a.then((s) => { + this._active--, n.resolve(s), this.runNext(); + }, (s) => { + this._active--, n.reject(s), this.runNext(); + }) : (this._active--, n.resolve(a), this.runNext()); + } catch (a) { + this._active--, n.reject(a), this.runNext(); + } + } + }; + e.Semaphore = r; + } +}), iw = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.ReadableStreamMessageReader = e.AbstractMessageReader = e.MessageReader = void 0; + var t = Nn(), r = _s(), n = Ka(), a = kg(), s; + (function(u) { + function f(d) { + let h = d; + return h && r.func(h.listen) && r.func(h.dispose) && r.func(h.onError) && r.func(h.onClose) && r.func(h.onPartialMessage); + } + i(f, "is"), u.is = f; + })(s || (e.MessageReader = s = {})); + var o = class { + static { + i(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(u) { + this.errorEmitter.fire(this.asError(u)); + } + get onClose() { + return this.closeEmitter.event; + } + fireClose() { + this.closeEmitter.fire(void 0); + } + get onPartialMessage() { + return this.partialMessageEmitter.event; + } + firePartialMessage(u) { + this.partialMessageEmitter.fire(u); + } + asError(u) { + return u instanceof Error ? u : new Error(`Reader received error. Reason: ${r.string(u.message) ? u.message : "unknown"}`); + } + }; + e.AbstractMessageReader = o; + var l; + (function(u) { + function f(d) { + let h, y; + const v = /* @__PURE__ */ new Map(); + let C; + const S = /* @__PURE__ */ new Map(); + if (d === void 0 || typeof d == "string") + h = d ?? "utf-8"; + else { + if (h = d.charset ?? "utf-8", d.contentDecoder !== void 0 && (y = d.contentDecoder, v.set(y.name, y)), d.contentDecoders !== void 0) + for (const w of d.contentDecoders) + v.set(w.name, w); + if (d.contentTypeDecoder !== void 0 && (C = d.contentTypeDecoder, S.set(C.name, C)), d.contentTypeDecoders !== void 0) + for (const w of d.contentTypeDecoders) + S.set(w.name, w); + } + return C === void 0 && (C = (0, t.default)().applicationJson.decoder, S.set(C.name, C)), { charset: h, contentDecoder: y, contentDecoders: v, contentTypeDecoder: C, contentTypeDecoders: S }; + } + i(f, "fromOptions"), u.fromOptions = f; + })(l || (l = {})); + var c = class extends o { + static { + i(this, "ReadableStreamMessageReader"); + } + constructor(u, f) { + super(), this.readable = u, 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(u) { + this._partialMessageTimeout = u; + } + get partialMessageTimeout() { + return this._partialMessageTimeout; + } + listen(u) { + this.nextMessageLength = -1, this.messageToken = 0, this.partialMessageTimer = void 0, this.callback = u; + const f = this.readable.onData((d) => { + this.onData(d); + }); + return this.readable.onError((d) => this.fireError(d)), this.readable.onClose(() => this.fireClose()), f; + } + onData(u) { + try { + for (this.buffer.append(u); ; ) { + if (this.nextMessageLength === -1) { + const d = this.buffer.tryReadHeaders(!0); + if (!d) + return; + const h = d.get("content-length"); + if (!h) { + this.fireError(new Error(`Header must provide a Content-Length property. +${JSON.stringify(Object.fromEntries(d))}`)); + return; + } + const y = parseInt(h); + if (isNaN(y)) { + this.fireError(new Error(`Content-Length value must be a number. Got ${h}`)); + return; + } + this.nextMessageLength = y; + } + const f = this.buffer.tryReadBody(this.nextMessageLength); + if (f === void 0) { + this.setPartialMessageTimer(); + return; + } + this.clearPartialMessageTimer(), this.nextMessageLength = -1, this.readSemaphore.lock(async () => { + const d = this.options.contentDecoder !== void 0 ? await this.options.contentDecoder.decode(f) : f, h = await this.options.contentTypeDecoder.decode(d, this.options); + this.callback(h); + }).catch((d) => { + this.fireError(d); + }); + } + } 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((u, f) => { + this.partialMessageTimer = void 0, u === this.messageToken && (this.firePartialMessage({ messageToken: u, waitingTime: f }), this.setPartialMessageTimer()); + }, this._partialMessageTimeout, this.messageToken, this._partialMessageTimeout)); + } + }; + e.ReadableStreamMessageReader = c; + } +}), sw = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.WriteableStreamMessageWriter = e.AbstractMessageWriter = e.MessageWriter = void 0; + var t = Nn(), r = _s(), n = kg(), a = Ka(), s = "Content-Length: ", o = `\r +`, l; + (function(d) { + function h(y) { + let v = y; + return v && r.func(v.dispose) && r.func(v.onClose) && r.func(v.onError) && r.func(v.write); + } + i(h, "is"), d.is = h; + })(l || (e.MessageWriter = l = {})); + var c = class { + static { + i(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(d, h, y) { + this.errorEmitter.fire([this.asError(d), h, y]); + } + get onClose() { + return this.closeEmitter.event; + } + fireClose() { + this.closeEmitter.fire(void 0); + } + asError(d) { + return d instanceof Error ? d : new Error(`Writer received error. Reason: ${r.string(d.message) ? d.message : "unknown"}`); + } + }; + e.AbstractMessageWriter = c; + var u; + (function(d) { + function h(y) { + return y === void 0 || typeof y == "string" ? { charset: y ?? "utf-8", contentTypeEncoder: (0, t.default)().applicationJson.encoder } : { charset: y.charset ?? "utf-8", contentEncoder: y.contentEncoder, contentTypeEncoder: y.contentTypeEncoder ?? (0, t.default)().applicationJson.encoder }; + } + i(h, "fromOptions"), d.fromOptions = h; + })(u || (u = {})); + var f = class extends c { + static { + i(this, "WriteableStreamMessageWriter"); + } + constructor(d, h) { + super(), this.writable = d, this.options = u.fromOptions(h), this.errorCount = 0, this.writeSemaphore = new n.Semaphore(1), this.writable.onError((y) => this.fireError(y)), this.writable.onClose(() => this.fireClose()); + } + async write(d) { + return this.writeSemaphore.lock(async () => this.options.contentTypeEncoder.encode(d, this.options).then((y) => this.options.contentEncoder !== void 0 ? this.options.contentEncoder.encode(y) : y).then((y) => { + const v = []; + return v.push(s, y.byteLength.toString(), o), v.push(o), this.doWrite(d, v, y); + }, (y) => { + throw this.fireError(y), y; + })); + } + async doWrite(d, h, y) { + try { + return await this.writable.write(h.join(""), "ascii"), this.writable.write(y); + } catch (v) { + return this.handleError(v, d), Promise.reject(v); + } + } + handleError(d, h) { + this.errorCount++, this.fireError(d, h, this.errorCount); + } + end() { + this.writable.end(); + } + }; + e.WriteableStreamMessageWriter = f; + } +}), ow = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.AbstractMessageBuffer = void 0; + var t = 13, r = 10, n = `\r +`, a = class { + static { + i(this, "AbstractMessageBuffer"); + } + constructor(s = "utf-8") { + this._encoding = s, this._chunks = [], this._totalLength = 0; + } + get encoding() { + return this._encoding; + } + append(s) { + const o = typeof s == "string" ? this.fromString(s, this._encoding) : s; + this._chunks.push(o), this._totalLength += o.byteLength; + } + tryReadHeaders(s = !1) { + if (this._chunks.length === 0) + return; + let o = 0, l = 0, c = 0, u = 0; + e: for (; l < this._chunks.length; ) { + const y = this._chunks[l]; + for (c = 0; c < y.length; ) { + switch (y[c]) { + case t: + switch (o) { + case 0: + o = 1; + break; + case 2: + o = 3; + break; + default: + o = 0; + } + break; + case r: + switch (o) { + case 1: + o = 2; + break; + case 3: + o = 4, c++; + break e; + default: + o = 0; + } + break; + default: + o = 0; + } + c++; + } + u += y.byteLength, l++; + } + if (o !== 4) + return; + const f = this._read(u + c), d = /* @__PURE__ */ new Map(), h = this.toString(f, "ascii").split(n); + if (h.length < 2) + return d; + for (let y = 0; y < h.length - 2; y++) { + const v = h[y], C = v.indexOf(":"); + if (C === -1) + throw new Error(`Message header must separate key and value using ':' +${v}`); + const S = v.substr(0, C), w = v.substr(C + 1).trim(); + d.set(s ? S.toLowerCase() : S, w); + } + return d; + } + tryReadBody(s) { + if (!(this._totalLength < s)) + return this._read(s); + } + get numberOfBytes() { + return this._totalLength; + } + _read(s) { + if (s === 0) + return this.emptyBuffer(); + if (s > this._totalLength) + throw new Error("Cannot read so many bytes!"); + if (this._chunks[0].byteLength === s) { + const u = this._chunks[0]; + return this._chunks.shift(), this._totalLength -= s, this.asNative(u); + } + if (this._chunks[0].byteLength > s) { + const u = this._chunks[0], f = this.asNative(u, s); + return this._chunks[0] = u.slice(s), this._totalLength -= s, f; + } + const o = this.allocNative(s); + let l = 0, c = 0; + for (; s > 0; ) { + const u = this._chunks[c]; + if (u.byteLength > s) { + const f = u.slice(0, s); + o.set(f, l), l += s, this._chunks[c] = u.slice(s), this._totalLength -= s, s -= s; + } else + o.set(u, l), l += u.byteLength, this._chunks.shift(), this._totalLength -= u.byteLength, s -= u.byteLength; + } + return o; + } + }; + e.AbstractMessageBuffer = a; + } +}), lw = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(e) { + 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 = Nn(), r = _s(), n = wg(), a = Ng(), s = Ka(), o = Al(), l; + (function(g) { + g.type = new n.NotificationType("$/cancelRequest"); + })(l || (l = {})); + var c; + (function(g) { + function E(T) { + return typeof T == "string" || typeof T == "number"; + } + i(E, "is"), g.is = E; + })(c || (e.ProgressToken = c = {})); + var u; + (function(g) { + g.type = new n.NotificationType("$/progress"); + })(u || (u = {})); + var f = class { + static { + i(this, "ProgressType"); + } + constructor() { + } + }; + e.ProgressType = f; + var d; + (function(g) { + function E(T) { + return r.func(T); + } + i(E, "is"), g.is = E; + })(d || (d = {})), e.NullLogger = Object.freeze({ + error: /* @__PURE__ */ i(() => { + }, "error"), + warn: /* @__PURE__ */ i(() => { + }, "warn"), + info: /* @__PURE__ */ i(() => { + }, "info"), + log: /* @__PURE__ */ i(() => { + }, "log") + }); + var h; + (function(g) { + g[g.Off = 0] = "Off", g[g.Messages = 1] = "Messages", g[g.Compact = 2] = "Compact", g[g.Verbose = 3] = "Verbose"; + })(h || (e.Trace = h = {})); + var y; + (function(g) { + g.Off = "off", g.Messages = "messages", g.Compact = "compact", g.Verbose = "verbose"; + })(y || (e.TraceValues = y = {})), (function(g) { + function E(R) { + if (!r.string(R)) + return g.Off; + switch (R = R.toLowerCase(), R) { + case "off": + return g.Off; + case "messages": + return g.Messages; + case "compact": + return g.Compact; + case "verbose": + return g.Verbose; + default: + return g.Off; + } + } + i(E, "fromString"), g.fromString = E; + function T(R) { + switch (R) { + case g.Off: + return "off"; + case g.Messages: + return "messages"; + case g.Compact: + return "compact"; + case g.Verbose: + return "verbose"; + default: + return "off"; + } + } + i(T, "toString"), g.toString = T; + })(h || (e.Trace = h = {})); + var v; + (function(g) { + g.Text = "text", g.JSON = "json"; + })(v || (e.TraceFormat = v = {})), (function(g) { + function E(T) { + return r.string(T) ? (T = T.toLowerCase(), T === "json" ? g.JSON : g.Text) : g.Text; + } + i(E, "fromString"), g.fromString = E; + })(v || (e.TraceFormat = v = {})); + var C; + (function(g) { + g.type = new n.NotificationType("$/setTrace"); + })(C || (e.SetTraceNotification = C = {})); + var S; + (function(g) { + g.type = new n.NotificationType("$/logTrace"); + })(S || (e.LogTraceNotification = S = {})); + var w; + (function(g) { + g[g.Closed = 1] = "Closed", g[g.Disposed = 2] = "Disposed", g[g.AlreadyListening = 3] = "AlreadyListening"; + })(w || (e.ConnectionErrors = w = {})); + var I = class Pg extends Error { + static { + i(this, "ConnectionError"); + } + constructor(E, T) { + super(T), this.code = E, Object.setPrototypeOf(this, Pg.prototype); + } + }; + e.ConnectionError = I; + var A; + (function(g) { + function E(T) { + const R = T; + return R && r.func(R.cancelUndispatched); + } + i(E, "is"), g.is = E; + })(A || (e.ConnectionStrategy = A = {})); + var k; + (function(g) { + function E(T) { + const R = T; + return R && (R.kind === void 0 || R.kind === "id") && r.func(R.createCancellationTokenSource) && (R.dispose === void 0 || r.func(R.dispose)); + } + i(E, "is"), g.is = E; + })(k || (e.IdCancellationReceiverStrategy = k = {})); + var G; + (function(g) { + function E(T) { + const R = T; + return R && R.kind === "request" && r.func(R.createCancellationTokenSource) && (R.dispose === void 0 || r.func(R.dispose)); + } + i(E, "is"), g.is = E; + })(G || (e.RequestCancellationReceiverStrategy = G = {})); + var H; + (function(g) { + g.Message = Object.freeze({ + createCancellationTokenSource(T) { + return new o.CancellationTokenSource(); + } + }); + function E(T) { + return k.is(T) || G.is(T); + } + i(E, "is"), g.is = E; + })(H || (e.CancellationReceiverStrategy = H = {})); + var X; + (function(g) { + g.Message = Object.freeze({ + sendCancellation(T, R) { + return T.sendNotification(l.type, { id: R }); + }, + cleanup(T) { + } + }); + function E(T) { + const R = T; + return R && r.func(R.sendCancellation) && r.func(R.cleanup); + } + i(E, "is"), g.is = E; + })(X || (e.CancellationSenderStrategy = X = {})); + var le; + (function(g) { + g.Message = Object.freeze({ + receiver: H.Message, + sender: X.Message + }); + function E(T) { + const R = T; + return R && H.is(R.receiver) && X.is(R.sender); + } + i(E, "is"), g.is = E; + })(le || (e.CancellationStrategy = le = {})); + var ce; + (function(g) { + function E(T) { + const R = T; + return R && r.func(R.handleMessage); + } + i(E, "is"), g.is = E; + })(ce || (e.MessageStrategy = ce = {})); + var Ne; + (function(g) { + function E(T) { + const R = T; + return R && (le.is(R.cancellationStrategy) || A.is(R.connectionStrategy) || ce.is(R.messageStrategy)); + } + i(E, "is"), g.is = E; + })(Ne || (e.ConnectionOptions = Ne = {})); + var P; + (function(g) { + g[g.New = 1] = "New", g[g.Listening = 2] = "Listening", g[g.Closed = 3] = "Closed", g[g.Disposed = 4] = "Disposed"; + })(P || (P = {})); + function _(g, E, T, R) { + const b = T !== void 0 ? T : e.NullLogger; + let O = 0, M = 0, D = 0; + const z = "2.0"; + let B; + const Z = /* @__PURE__ */ new Map(); + let J; + const te = /* @__PURE__ */ new Map(), fe = /* @__PURE__ */ new Map(); + let ct, Re = new a.LinkedMap(), Oe = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new Set(), be = /* @__PURE__ */ new Map(), Q = h.Off, rt = v.Text, me, Nt = P.New; + const Jn = new s.Emitter(), ti = new s.Emitter(), ri = new s.Emitter(), ni = new s.Emitter(), ai = new s.Emitter(), kt = R && R.cancellationStrategy ? R.cancellationStrategy : le.Message; + function Zn(m) { + if (m === null) + throw new Error("Can't send requests with id null since the response can't be correlated."); + return "req-" + m.toString(); + } + i(Zn, "createRequestQueueKey"); + function ii(m) { + return m === null ? "res-unknown-" + (++D).toString() : "res-" + m.toString(); + } + i(ii, "createResponseQueueKey"); + function si() { + return "not-" + (++M).toString(); + } + i(si, "createNotificationQueueKey"); + function oi(m, N) { + n.Message.isRequest(N) ? m.set(Zn(N.id), N) : n.Message.isResponse(N) ? m.set(ii(N.id), N) : m.set(si(), N); + } + i(oi, "addMessageToQueue"); + function li(m) { + } + i(li, "cancelUndispatched"); + function Qn() { + return Nt === P.Listening; + } + i(Qn, "isListening"); + function ea() { + return Nt === P.Closed; + } + i(ea, "isClosed"); + function zt() { + return Nt === P.Disposed; + } + i(zt, "isDisposed"); + function ta() { + (Nt === P.New || Nt === P.Listening) && (Nt = P.Closed, ti.fire(void 0)); + } + i(ta, "closeHandler"); + function ci(m) { + Jn.fire([m, void 0, void 0]); + } + i(ci, "readErrorHandler"); + function ui(m) { + Jn.fire(m); + } + i(ui, "writeErrorHandler"), g.onClose(ta), g.onError(ci), E.onClose(ta), E.onError(ui); + function ra() { + ct || Re.size === 0 || (ct = (0, t.default)().timer.setImmediate(() => { + ct = void 0, fi(); + })); + } + i(ra, "triggerMessageQueue"); + function na(m) { + n.Message.isRequest(m) ? di(m) : n.Message.isNotification(m) ? hi(m) : n.Message.isResponse(m) ? pi(m) : mi(m); + } + i(na, "handleMessage"); + function fi() { + if (Re.size === 0) + return; + const m = Re.shift(); + try { + const N = R?.messageStrategy; + ce.is(N) ? N.handleMessage(m, na) : na(m); + } finally { + ra(); + } + } + i(fi, "processMessageQueue"); + const Ks = /* @__PURE__ */ i((m) => { + try { + if (n.Message.isNotification(m) && m.method === l.type.method) { + const N = m.params.id, L = Zn(N), x = Re.get(L); + if (n.Message.isRequest(x)) { + const ue = R?.connectionStrategy, Se = ue && ue.cancelUndispatched ? ue.cancelUndispatched(x, li) : void 0; + if (Se && (Se.error !== void 0 || Se.result !== void 0)) { + Re.delete(L), be.delete(N), Se.id = x.id, kr(Se, m.method, Date.now()), E.write(Se).catch(() => b.error("Sending response for canceled message failed.")); + return; + } + } + const ge = be.get(N); + if (ge !== void 0) { + ge.cancel(), Hr(m); + return; + } else + qe.add(N); + } + oi(Re, m); + } finally { + ra(); + } + }, "callback"); + function di(m) { + if (zt()) + return; + function N(re, Ee, se) { + const De = { + jsonrpc: z, + id: m.id + }; + re instanceof n.ResponseError ? De.error = re.toJson() : De.result = re === void 0 ? null : re, kr(De, Ee, se), E.write(De).catch(() => b.error("Sending response failed.")); + } + i(N, "reply"); + function L(re, Ee, se) { + const De = { + jsonrpc: z, + id: m.id, + error: re.toJson() + }; + kr(De, Ee, se), E.write(De).catch(() => b.error("Sending response failed.")); + } + i(L, "replyError"); + function x(re, Ee, se) { + re === void 0 && (re = null); + const De = { + jsonrpc: z, + id: m.id, + result: re + }; + kr(De, Ee, se), E.write(De).catch(() => b.error("Sending response failed.")); + } + i(x, "replySuccess"), vi(m); + const ge = Z.get(m.method); + let ue, Se; + ge && (ue = ge.type, Se = ge.handler); + const ke = Date.now(); + if (Se || B) { + const re = m.id ?? String(Date.now()), Ee = k.is(kt.receiver) ? kt.receiver.createCancellationTokenSource(re) : kt.receiver.createCancellationTokenSource(m); + m.id !== null && qe.has(m.id) && Ee.cancel(), m.id !== null && be.set(re, Ee); + try { + let se; + if (Se) + if (m.params === void 0) { + if (ue !== void 0 && ue.numberOfParams !== 0) { + L(new n.ResponseError(n.ErrorCodes.InvalidParams, `Request ${m.method} defines ${ue.numberOfParams} params but received none.`), m.method, ke); + return; + } + se = Se(Ee.token); + } else if (Array.isArray(m.params)) { + if (ue !== void 0 && ue.parameterStructures === n.ParameterStructures.byName) { + L(new n.ResponseError(n.ErrorCodes.InvalidParams, `Request ${m.method} defines parameters by name but received parameters by position`), m.method, ke); + return; + } + se = Se(...m.params, Ee.token); + } else { + if (ue !== void 0 && ue.parameterStructures === n.ParameterStructures.byPosition) { + L(new n.ResponseError(n.ErrorCodes.InvalidParams, `Request ${m.method} defines parameters by position but received parameters by name`), m.method, ke); + return; + } + se = Se(m.params, Ee.token); + } + else B && (se = B(m.method, m.params, Ee.token)); + const De = se; + se ? De.then ? De.then((We) => { + be.delete(re), N(We, m.method, ke); + }, (We) => { + be.delete(re), We instanceof n.ResponseError ? L(We, m.method, ke) : We && r.string(We.message) ? L(new n.ResponseError(n.ErrorCodes.InternalError, `Request ${m.method} failed with message: ${We.message}`), m.method, ke) : L(new n.ResponseError(n.ErrorCodes.InternalError, `Request ${m.method} failed unexpectedly without providing any details.`), m.method, ke); + }) : (be.delete(re), N(se, m.method, ke)) : (be.delete(re), x(se, m.method, ke)); + } catch (se) { + be.delete(re), se instanceof n.ResponseError ? N(se, m.method, ke) : se && r.string(se.message) ? L(new n.ResponseError(n.ErrorCodes.InternalError, `Request ${m.method} failed with message: ${se.message}`), m.method, ke) : L(new n.ResponseError(n.ErrorCodes.InternalError, `Request ${m.method} failed unexpectedly without providing any details.`), m.method, ke); + } + } else + L(new n.ResponseError(n.ErrorCodes.MethodNotFound, `Unhandled method ${m.method}`), m.method, ke); + } + i(di, "handleRequest"); + function pi(m) { + if (!zt()) + if (m.id === null) + m.error ? b.error(`Received response message without id: Error is: +${JSON.stringify(m.error, void 0, 4)}`) : b.error("Received response message without id. No further error information provided."); + else { + const N = m.id, L = Oe.get(N); + if (Ti(m, L), L !== void 0) { + Oe.delete(N); + try { + if (m.error) { + const x = m.error; + L.reject(new n.ResponseError(x.code, x.message, x.data)); + } else if (m.result !== void 0) + L.resolve(m.result); + else + throw new Error("Should never happen."); + } catch (x) { + x.message ? b.error(`Response handler '${L.method}' failed with message: ${x.message}`) : b.error(`Response handler '${L.method}' failed unexpectedly.`); + } + } + } + } + i(pi, "handleResponse"); + function hi(m) { + if (zt()) + return; + let N, L; + if (m.method === l.type.method) { + const x = m.params.id; + qe.delete(x), Hr(m); + return; + } else { + const x = te.get(m.method); + x && (L = x.handler, N = x.type); + } + if (L || J) + try { + if (Hr(m), L) + if (m.params === void 0) + N !== void 0 && N.numberOfParams !== 0 && N.parameterStructures !== n.ParameterStructures.byName && b.error(`Notification ${m.method} defines ${N.numberOfParams} params but received none.`), L(); + else if (Array.isArray(m.params)) { + const x = m.params; + m.method === u.type.method && x.length === 2 && c.is(x[0]) ? L({ token: x[0], value: x[1] }) : (N !== void 0 && (N.parameterStructures === n.ParameterStructures.byName && b.error(`Notification ${m.method} defines parameters by name but received parameters by position`), N.numberOfParams !== m.params.length && b.error(`Notification ${m.method} defines ${N.numberOfParams} params but received ${x.length} arguments`)), L(...x)); + } else + N !== void 0 && N.parameterStructures === n.ParameterStructures.byPosition && b.error(`Notification ${m.method} defines parameters by position but received parameters by name`), L(m.params); + else J && J(m.method, m.params); + } catch (x) { + x.message ? b.error(`Notification handler '${m.method}' failed with message: ${x.message}`) : b.error(`Notification handler '${m.method}' failed unexpectedly.`); + } + else + ri.fire(m); + } + i(hi, "handleNotification"); + function mi(m) { + if (!m) { + b.error("Received empty message."); + return; + } + b.error(`Received message which is neither a response nor a notification message: +${JSON.stringify(m, null, 4)}`); + const N = m; + if (r.string(N.id) || r.number(N.id)) { + const L = N.id, x = Oe.get(L); + x && x.reject(new Error("The received response has neither a result nor an error property.")); + } + } + i(mi, "handleInvalidMessage"); + function $t(m) { + if (m != null) + switch (Q) { + case h.Verbose: + return JSON.stringify(m, null, 4); + case h.Compact: + return JSON.stringify(m); + default: + return; + } + } + i($t, "stringifyTrace"); + function gi(m) { + if (!(Q === h.Off || !me)) + if (rt === v.Text) { + let N; + (Q === h.Verbose || Q === h.Compact) && m.params && (N = `Params: ${$t(m.params)} + +`), me.log(`Sending request '${m.method} - (${m.id})'.`, N); + } else + Bt("send-request", m); + } + i(gi, "traceSendingRequest"); + function yi(m) { + if (!(Q === h.Off || !me)) + if (rt === v.Text) { + let N; + (Q === h.Verbose || Q === h.Compact) && (m.params ? N = `Params: ${$t(m.params)} + +` : N = `No parameters provided. + +`), me.log(`Sending notification '${m.method}'.`, N); + } else + Bt("send-notification", m); + } + i(yi, "traceSendingNotification"); + function kr(m, N, L) { + if (!(Q === h.Off || !me)) + if (rt === v.Text) { + let x; + (Q === h.Verbose || Q === h.Compact) && (m.error && m.error.data ? x = `Error data: ${$t(m.error.data)} + +` : m.result ? x = `Result: ${$t(m.result)} + +` : m.error === void 0 && (x = `No result returned. + +`)), me.log(`Sending response '${N} - (${m.id})'. Processing request took ${Date.now() - L}ms`, x); + } else + Bt("send-response", m); + } + i(kr, "traceSendingResponse"); + function vi(m) { + if (!(Q === h.Off || !me)) + if (rt === v.Text) { + let N; + (Q === h.Verbose || Q === h.Compact) && m.params && (N = `Params: ${$t(m.params)} + +`), me.log(`Received request '${m.method} - (${m.id})'.`, N); + } else + Bt("receive-request", m); + } + i(vi, "traceReceivedRequest"); + function Hr(m) { + if (!(Q === h.Off || !me || m.method === S.type.method)) + if (rt === v.Text) { + let N; + (Q === h.Verbose || Q === h.Compact) && (m.params ? N = `Params: ${$t(m.params)} + +` : N = `No parameters provided. + +`), me.log(`Received notification '${m.method}'.`, N); + } else + Bt("receive-notification", m); + } + i(Hr, "traceReceivedNotification"); + function Ti(m, N) { + if (!(Q === h.Off || !me)) + if (rt === v.Text) { + let L; + if ((Q === h.Verbose || Q === h.Compact) && (m.error && m.error.data ? L = `Error data: ${$t(m.error.data)} + +` : m.result ? L = `Result: ${$t(m.result)} + +` : m.error === void 0 && (L = `No result returned. + +`)), N) { + const x = m.error ? ` Request failed: ${m.error.message} (${m.error.code}).` : ""; + me.log(`Received response '${N.method} - (${m.id})' in ${Date.now() - N.timerStart}ms.${x}`, L); + } else + me.log(`Received response ${m.id} without active response promise.`, L); + } else + Bt("receive-response", m); + } + i(Ti, "traceReceivedResponse"); + function Bt(m, N) { + if (!me || Q === h.Off) + return; + const L = { + isLSPMessage: !0, + type: m, + message: N, + timestamp: Date.now() + }; + me.log(L); + } + i(Bt, "logLSPMessage"); + function or() { + if (ea()) + throw new I(w.Closed, "Connection is closed."); + if (zt()) + throw new I(w.Disposed, "Connection is disposed."); + } + i(or, "throwIfClosedOrDisposed"); + function Ri() { + if (Qn()) + throw new I(w.AlreadyListening, "Connection is already listening"); + } + i(Ri, "throwIfListening"); + function $i() { + if (!Qn()) + throw new Error("Call listen() first."); + } + i($i, "throwIfNotListening"); + function lr(m) { + return m === void 0 ? null : m; + } + i(lr, "undefinedToNull"); + function aa(m) { + if (m !== null) + return m; + } + i(aa, "nullToUndefined"); + function p(m) { + return m != null && !Array.isArray(m) && typeof m == "object"; + } + i(p, "isNamedParam"); + function ae(m, N) { + switch (m) { + case n.ParameterStructures.auto: + return p(N) ? aa(N) : [lr(N)]; + case n.ParameterStructures.byName: + if (!p(N)) + throw new Error("Received parameters by name but param is not an object literal."); + return aa(N); + case n.ParameterStructures.byPosition: + return [lr(N)]; + default: + throw new Error(`Unknown parameter structure ${m.toString()}`); + } + } + i(ae, "computeSingleParam"); + function $e(m, N) { + let L; + const x = m.numberOfParams; + switch (x) { + case 0: + L = void 0; + break; + case 1: + L = ae(m.parameterStructures, N[0]); + break; + default: + L = []; + for (let ge = 0; ge < N.length && ge < x; ge++) + L.push(lr(N[ge])); + if (N.length < x) + for (let ge = N.length; ge < x; ge++) + L.push(null); + break; + } + return L; + } + i($e, "computeMessageParams"); + const W = { + sendNotification: /* @__PURE__ */ i((m, ...N) => { + or(); + let L, x; + if (r.string(m)) { + L = m; + const ue = N[0]; + let Se = 0, ke = n.ParameterStructures.auto; + n.ParameterStructures.is(ue) && (Se = 1, ke = ue); + let re = N.length; + const Ee = re - Se; + switch (Ee) { + case 0: + x = void 0; + break; + case 1: + x = ae(ke, N[Se]); + break; + default: + if (ke === n.ParameterStructures.byName) + throw new Error(`Received ${Ee} parameters for 'by Name' notification parameter structure.`); + x = N.slice(Se, re).map((se) => lr(se)); + break; + } + } else { + const ue = N; + L = m.method, x = $e(m, ue); + } + const ge = { + jsonrpc: z, + method: L, + params: x + }; + return yi(ge), E.write(ge).catch((ue) => { + throw b.error("Sending notification failed."), ue; + }); + }, "sendNotification"), + onNotification: /* @__PURE__ */ i((m, N) => { + or(); + let L; + return r.func(m) ? J = m : N && (r.string(m) ? (L = m, te.set(m, { type: void 0, handler: N })) : (L = m.method, te.set(m.method, { type: m, handler: N }))), { + dispose: /* @__PURE__ */ i(() => { + L !== void 0 ? te.delete(L) : J = void 0; + }, "dispose") + }; + }, "onNotification"), + onProgress: /* @__PURE__ */ i((m, N, L) => { + if (fe.has(N)) + throw new Error(`Progress handler for token ${N} already registered`); + return fe.set(N, L), { + dispose: /* @__PURE__ */ i(() => { + fe.delete(N); + }, "dispose") + }; + }, "onProgress"), + sendProgress: /* @__PURE__ */ i((m, N, L) => W.sendNotification(u.type, { token: N, value: L }), "sendProgress"), + onUnhandledProgress: ni.event, + sendRequest: /* @__PURE__ */ i((m, ...N) => { + or(), $i(); + let L, x, ge; + if (r.string(m)) { + L = m; + const re = N[0], Ee = N[N.length - 1]; + let se = 0, De = n.ParameterStructures.auto; + n.ParameterStructures.is(re) && (se = 1, De = re); + let We = N.length; + o.CancellationToken.is(Ee) && (We = We - 1, ge = Ee); + const Kt = We - se; + switch (Kt) { + case 0: + x = void 0; + break; + case 1: + x = ae(De, N[se]); + break; + default: + if (De === n.ParameterStructures.byName) + throw new Error(`Received ${Kt} parameters for 'by Name' request parameter structure.`); + x = N.slice(se, We).map((JS) => lr(JS)); + break; + } + } else { + const re = N; + L = m.method, x = $e(m, re); + const Ee = m.numberOfParams; + ge = o.CancellationToken.is(re[Ee]) ? re[Ee] : void 0; + } + const ue = O++; + let Se; + ge && (Se = ge.onCancellationRequested(() => { + const re = kt.sender.sendCancellation(W, ue); + return re === void 0 ? (b.log(`Received no promise from cancellation strategy when cancelling id ${ue}`), Promise.resolve()) : re.catch(() => { + b.log(`Sending cancellation messages for id ${ue} failed`); + }); + })); + const ke = { + jsonrpc: z, + id: ue, + method: L, + params: x + }; + return gi(ke), typeof kt.sender.enableCancellation == "function" && kt.sender.enableCancellation(ke), new Promise(async (re, Ee) => { + const se = /* @__PURE__ */ i((Kt) => { + re(Kt), kt.sender.cleanup(ue), Se?.dispose(); + }, "resolveWithCleanup"), De = /* @__PURE__ */ i((Kt) => { + Ee(Kt), kt.sender.cleanup(ue), Se?.dispose(); + }, "rejectWithCleanup"), We = { method: L, timerStart: Date.now(), resolve: se, reject: De }; + try { + await E.write(ke), Oe.set(ue, We); + } catch (Kt) { + throw b.error("Sending request failed."), We.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError, Kt.message ? Kt.message : "Unknown reason")), Kt; + } + }); + }, "sendRequest"), + onRequest: /* @__PURE__ */ i((m, N) => { + or(); + let L = null; + return d.is(m) ? (L = void 0, B = m) : r.string(m) ? (L = null, N !== void 0 && (L = m, Z.set(m, { handler: N, type: void 0 }))) : N !== void 0 && (L = m.method, Z.set(m.method, { type: m, handler: N })), { + dispose: /* @__PURE__ */ i(() => { + L !== null && (L !== void 0 ? Z.delete(L) : B = void 0); + }, "dispose") + }; + }, "onRequest"), + hasPendingResponse: /* @__PURE__ */ i(() => Oe.size > 0, "hasPendingResponse"), + trace: /* @__PURE__ */ i(async (m, N, L) => { + let x = !1, ge = v.Text; + L !== void 0 && (r.boolean(L) ? x = L : (x = L.sendNotification || !1, ge = L.traceFormat || v.Text)), Q = m, rt = ge, Q === h.Off ? me = void 0 : me = N, x && !ea() && !zt() && await W.sendNotification(C.type, { value: h.toString(m) }); + }, "trace"), + onError: Jn.event, + onClose: ti.event, + onUnhandledNotification: ri.event, + onDispose: ai.event, + end: /* @__PURE__ */ i(() => { + E.end(); + }, "end"), + dispose: /* @__PURE__ */ i(() => { + if (zt()) + return; + Nt = P.Disposed, ai.fire(void 0); + const m = new n.ResponseError(n.ErrorCodes.PendingResponseRejected, "Pending response rejected since connection got disposed"); + for (const N of Oe.values()) + N.reject(m); + Oe = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new Set(), Re = new a.LinkedMap(), r.func(E.dispose) && E.dispose(), r.func(g.dispose) && g.dispose(); + }, "dispose"), + listen: /* @__PURE__ */ i(() => { + or(), Ri(), Nt = P.Listening, g.listen(Ks); + }, "listen"), + inspect: /* @__PURE__ */ i(() => { + (0, t.default)().console.log("inspect"); + }, "inspect") + }; + return W.onNotification(S.type, (m) => { + if (Q === h.Off || !me) + return; + const N = Q === h.Verbose || Q === h.Compact; + me.log(m.message, N ? m.verbose : void 0); + }), W.onNotification(u.type, (m) => { + const N = fe.get(m.token); + N ? N(m.value) : ni.fire(m); + }), W; + } + i(_, "createMessageConnection"), e.createMessageConnection = _; + } +}), Qu = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(e) { + 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: /* @__PURE__ */ i(function() { + return t.Message; + }, "get") }), Object.defineProperty(e, "RequestType", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.RequestType; + }, "get") }), Object.defineProperty(e, "RequestType0", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.RequestType0; + }, "get") }), Object.defineProperty(e, "RequestType1", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.RequestType1; + }, "get") }), Object.defineProperty(e, "RequestType2", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.RequestType2; + }, "get") }), Object.defineProperty(e, "RequestType3", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.RequestType3; + }, "get") }), Object.defineProperty(e, "RequestType4", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.RequestType4; + }, "get") }), Object.defineProperty(e, "RequestType5", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.RequestType5; + }, "get") }), Object.defineProperty(e, "RequestType6", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.RequestType6; + }, "get") }), Object.defineProperty(e, "RequestType7", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.RequestType7; + }, "get") }), Object.defineProperty(e, "RequestType8", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.RequestType8; + }, "get") }), Object.defineProperty(e, "RequestType9", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.RequestType9; + }, "get") }), Object.defineProperty(e, "ResponseError", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.ResponseError; + }, "get") }), Object.defineProperty(e, "ErrorCodes", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.ErrorCodes; + }, "get") }), Object.defineProperty(e, "NotificationType", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.NotificationType; + }, "get") }), Object.defineProperty(e, "NotificationType0", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.NotificationType0; + }, "get") }), Object.defineProperty(e, "NotificationType1", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.NotificationType1; + }, "get") }), Object.defineProperty(e, "NotificationType2", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.NotificationType2; + }, "get") }), Object.defineProperty(e, "NotificationType3", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.NotificationType3; + }, "get") }), Object.defineProperty(e, "NotificationType4", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.NotificationType4; + }, "get") }), Object.defineProperty(e, "NotificationType5", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.NotificationType5; + }, "get") }), Object.defineProperty(e, "NotificationType6", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.NotificationType6; + }, "get") }), Object.defineProperty(e, "NotificationType7", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.NotificationType7; + }, "get") }), Object.defineProperty(e, "NotificationType8", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.NotificationType8; + }, "get") }), Object.defineProperty(e, "NotificationType9", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.NotificationType9; + }, "get") }), Object.defineProperty(e, "ParameterStructures", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return t.ParameterStructures; + }, "get") }); + var r = Ng(); + Object.defineProperty(e, "LinkedMap", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return r.LinkedMap; + }, "get") }), Object.defineProperty(e, "LRUCache", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return r.LRUCache; + }, "get") }), Object.defineProperty(e, "Touch", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return r.Touch; + }, "get") }); + var n = nw(); + Object.defineProperty(e, "Disposable", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return n.Disposable; + }, "get") }); + var a = Ka(); + Object.defineProperty(e, "Event", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return a.Event; + }, "get") }), Object.defineProperty(e, "Emitter", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return a.Emitter; + }, "get") }); + var s = Al(); + Object.defineProperty(e, "CancellationTokenSource", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return s.CancellationTokenSource; + }, "get") }), Object.defineProperty(e, "CancellationToken", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return s.CancellationToken; + }, "get") }); + var o = aw(); + Object.defineProperty(e, "SharedArraySenderStrategy", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return o.SharedArraySenderStrategy; + }, "get") }), Object.defineProperty(e, "SharedArrayReceiverStrategy", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return o.SharedArrayReceiverStrategy; + }, "get") }); + var l = iw(); + Object.defineProperty(e, "MessageReader", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return l.MessageReader; + }, "get") }), Object.defineProperty(e, "AbstractMessageReader", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return l.AbstractMessageReader; + }, "get") }), Object.defineProperty(e, "ReadableStreamMessageReader", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return l.ReadableStreamMessageReader; + }, "get") }); + var c = sw(); + Object.defineProperty(e, "MessageWriter", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return c.MessageWriter; + }, "get") }), Object.defineProperty(e, "AbstractMessageWriter", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return c.AbstractMessageWriter; + }, "get") }), Object.defineProperty(e, "WriteableStreamMessageWriter", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return c.WriteableStreamMessageWriter; + }, "get") }); + var u = ow(); + Object.defineProperty(e, "AbstractMessageBuffer", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return u.AbstractMessageBuffer; + }, "get") }); + var f = lw(); + Object.defineProperty(e, "ConnectionStrategy", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.ConnectionStrategy; + }, "get") }), Object.defineProperty(e, "ConnectionOptions", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.ConnectionOptions; + }, "get") }), Object.defineProperty(e, "NullLogger", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.NullLogger; + }, "get") }), Object.defineProperty(e, "createMessageConnection", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.createMessageConnection; + }, "get") }), Object.defineProperty(e, "ProgressToken", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.ProgressToken; + }, "get") }), Object.defineProperty(e, "ProgressType", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.ProgressType; + }, "get") }), Object.defineProperty(e, "Trace", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.Trace; + }, "get") }), Object.defineProperty(e, "TraceValues", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.TraceValues; + }, "get") }), Object.defineProperty(e, "TraceFormat", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.TraceFormat; + }, "get") }), Object.defineProperty(e, "SetTraceNotification", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.SetTraceNotification; + }, "get") }), Object.defineProperty(e, "LogTraceNotification", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.LogTraceNotification; + }, "get") }), Object.defineProperty(e, "ConnectionErrors", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.ConnectionErrors; + }, "get") }), Object.defineProperty(e, "ConnectionError", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.ConnectionError; + }, "get") }), Object.defineProperty(e, "CancellationReceiverStrategy", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.CancellationReceiverStrategy; + }, "get") }), Object.defineProperty(e, "CancellationSenderStrategy", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.CancellationSenderStrategy; + }, "get") }), Object.defineProperty(e, "CancellationStrategy", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.CancellationStrategy; + }, "get") }), Object.defineProperty(e, "MessageStrategy", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.MessageStrategy; + }, "get") }); + var d = Nn(); + e.RAL = d.default; + } +}), cw = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }); + var t = Qu(), r = class Og extends t.AbstractMessageBuffer { + static { + i(this, "MessageBuffer"); + } + constructor(u = "utf-8") { + super(u), this.asciiDecoder = new TextDecoder("ascii"); + } + emptyBuffer() { + return Og.emptyBuffer; + } + fromString(u, f) { + return new TextEncoder().encode(u); + } + toString(u, f) { + return f === "ascii" ? this.asciiDecoder.decode(u) : new TextDecoder(f).decode(u); + } + asNative(u, f) { + return f === void 0 ? u : u.slice(0, f); + } + allocNative(u) { + return new Uint8Array(u); + } + }; + r.emptyBuffer = new Uint8Array(0); + var n = class { + static { + i(this, "ReadableStreamWrapper"); + } + constructor(c) { + this.socket = c, this._onData = new t.Emitter(), this._messageListener = (u) => { + u.data.arrayBuffer().then((d) => { + this._onData.fire(new Uint8Array(d)); + }, () => { + (0, t.RAL)().console.error("Converting blob to array buffer failed."); + }); + }, this.socket.addEventListener("message", this._messageListener); + } + onClose(c) { + return this.socket.addEventListener("close", c), t.Disposable.create(() => this.socket.removeEventListener("close", c)); + } + onError(c) { + return this.socket.addEventListener("error", c), t.Disposable.create(() => this.socket.removeEventListener("error", c)); + } + onEnd(c) { + return this.socket.addEventListener("end", c), t.Disposable.create(() => this.socket.removeEventListener("end", c)); + } + onData(c) { + return this._onData.event(c); + } + }, a = class { + static { + i(this, "WritableStreamWrapper"); + } + constructor(c) { + this.socket = c; + } + onClose(c) { + return this.socket.addEventListener("close", c), t.Disposable.create(() => this.socket.removeEventListener("close", c)); + } + onError(c) { + return this.socket.addEventListener("error", c), t.Disposable.create(() => this.socket.removeEventListener("error", c)); + } + onEnd(c) { + return this.socket.addEventListener("end", c), t.Disposable.create(() => this.socket.removeEventListener("end", c)); + } + write(c, u) { + if (typeof c == "string") { + if (u !== void 0 && u !== "utf-8") + throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${u}`); + this.socket.send(c); + } else + this.socket.send(c); + return Promise.resolve(); + } + end() { + this.socket.close(); + } + }, s = new TextEncoder(), o = Object.freeze({ + messageBuffer: Object.freeze({ + create: /* @__PURE__ */ i((c) => new r(c), "create") + }), + applicationJson: Object.freeze({ + encoder: Object.freeze({ + name: "application/json", + encode: /* @__PURE__ */ i((c, u) => { + if (u.charset !== "utf-8") + throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${u.charset}`); + return Promise.resolve(s.encode(JSON.stringify(c, void 0, 0))); + }, "encode") + }), + decoder: Object.freeze({ + name: "application/json", + decode: /* @__PURE__ */ i((c, u) => { + if (!(c instanceof Uint8Array)) + throw new Error("In a Browser environments only Uint8Arrays are supported."); + return Promise.resolve(JSON.parse(new TextDecoder(u.charset).decode(c))); + }, "decode") + }) + }), + stream: Object.freeze({ + asReadableStream: /* @__PURE__ */ i((c) => new n(c), "asReadableStream"), + asWritableStream: /* @__PURE__ */ i((c) => new a(c), "asWritableStream") + }), + console, + timer: Object.freeze({ + setTimeout(c, u, ...f) { + const d = setTimeout(c, u, ...f); + return { dispose: /* @__PURE__ */ i(() => clearTimeout(d), "dispose") }; + }, + setImmediate(c, ...u) { + const f = setTimeout(c, 0, ...u); + return { dispose: /* @__PURE__ */ i(() => clearTimeout(f), "dispose") }; + }, + setInterval(c, u, ...f) { + const d = setInterval(c, u, ...f); + return { dispose: /* @__PURE__ */ i(() => clearInterval(d), "dispose") }; + } + }) + }); + function l() { + return o; + } + i(l, "RIL"), (function(c) { + function u() { + t.RAL.install(o); + } + i(u, "install"), c.install = u; + })(l || (l = {})), e.default = l; + } +}), qa = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(e) { + var t = e && e.__createBinding || (Object.create ? (function(c, u, f, d) { + d === void 0 && (d = f); + var h = Object.getOwnPropertyDescriptor(u, f); + (!h || ("get" in h ? !u.__esModule : h.writable || h.configurable)) && (h = { enumerable: !0, get: /* @__PURE__ */ i(function() { + return u[f]; + }, "get") }), Object.defineProperty(c, d, h); + }) : (function(c, u, f, d) { + d === void 0 && (d = f), c[d] = u[f]; + })), r = e && e.__exportStar || function(c, u) { + for (var f in c) f !== "default" && !Object.prototype.hasOwnProperty.call(u, f) && t(u, c, f); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.createMessageConnection = e.BrowserMessageWriter = e.BrowserMessageReader = void 0; + var n = cw(); + n.default.install(); + var a = Qu(); + r(Qu(), e); + var s = class extends a.AbstractMessageReader { + static { + i(this, "BrowserMessageReader"); + } + constructor(c) { + super(), this._onData = new a.Emitter(), this._messageListener = (u) => { + this._onData.fire(u.data); + }, c.addEventListener("error", (u) => this.fireError(u)), c.onmessage = this._messageListener; + } + listen(c) { + return this._onData.event(c); + } + }; + e.BrowserMessageReader = s; + var o = class extends a.AbstractMessageWriter { + static { + i(this, "BrowserMessageWriter"); + } + constructor(c) { + super(), this.port = c, this.errorCount = 0, c.addEventListener("error", (u) => this.fireError(u)); + } + write(c) { + try { + return this.port.postMessage(c), Promise.resolve(); + } catch (u) { + return this.handleError(u, c), Promise.reject(u); + } + } + handleError(c, u) { + this.errorCount++, this.fireError(c, u, this.errorCount); + } + end() { + } + }; + e.BrowserMessageWriter = o; + function l(c, u, f, d) { + return f === void 0 && (f = a.NullLogger), a.ConnectionStrategy.is(d) && (d = { connectionStrategy: d }), (0, a.createMessageConnection)(c, u, f, d); + } + i(l, "createMessageConnection"), e.createMessageConnection = l; + } +}), Mh = V({ + "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(e, t) { + t.exports = qa(); + } +}), Ce = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.ProtocolNotificationType = e.ProtocolNotificationType0 = e.ProtocolRequestType = e.ProtocolRequestType0 = e.RegistrationType = e.MessageDirection = void 0; + var t = qa(), r; + (function(c) { + c.clientToServer = "clientToServer", c.serverToClient = "serverToClient", c.both = "both"; + })(r || (e.MessageDirection = r = {})); + var n = class { + static { + i(this, "RegistrationType"); + } + constructor(c) { + this.method = c; + } + }; + e.RegistrationType = n; + var a = class extends t.RequestType0 { + static { + i(this, "ProtocolRequestType0"); + } + constructor(c) { + super(c); + } + }; + e.ProtocolRequestType0 = a; + var s = class extends t.RequestType { + static { + i(this, "ProtocolRequestType"); + } + constructor(c) { + super(c, t.ParameterStructures.byName); + } + }; + e.ProtocolRequestType = s; + var o = class extends t.NotificationType0 { + static { + i(this, "ProtocolNotificationType0"); + } + constructor(c) { + super(c); + } + }; + e.ProtocolNotificationType0 = o; + var l = class extends t.NotificationType { + static { + i(this, "ProtocolNotificationType"); + } + constructor(c) { + super(c, t.ParameterStructures.byName); + } + }; + e.ProtocolNotificationType = l; + } +}), Qf = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e) { + 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; + } + i(t, "boolean"), e.boolean = t; + function r(f) { + return typeof f == "string" || f instanceof String; + } + i(r, "string"), e.string = r; + function n(f) { + return typeof f == "number" || f instanceof Number; + } + i(n, "number"), e.number = n; + function a(f) { + return f instanceof Error; + } + i(a, "error"), e.error = a; + function s(f) { + return typeof f == "function"; + } + i(s, "func"), e.func = s; + function o(f) { + return Array.isArray(f); + } + i(o, "array"), e.array = o; + function l(f) { + return o(f) && f.every((d) => r(d)); + } + i(l, "stringArray"), e.stringArray = l; + function c(f, d) { + return Array.isArray(f) && f.every(d); + } + i(c, "typedArray"), e.typedArray = c; + function u(f) { + return f !== null && typeof f == "object"; + } + i(u, "objectLiteral"), e.objectLiteral = u; + } +}), uw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.ImplementationRequest = void 0; + var t = Ce(), r; + (function(n) { + n.method = "textDocument/implementation", n.messageDirection = t.MessageDirection.clientToServer, n.type = new t.ProtocolRequestType(n.method); + })(r || (e.ImplementationRequest = r = {})); + } +}), fw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.TypeDefinitionRequest = void 0; + var t = Ce(), r; + (function(n) { + n.method = "textDocument/typeDefinition", n.messageDirection = t.MessageDirection.clientToServer, n.type = new t.ProtocolRequestType(n.method); + })(r || (e.TypeDefinitionRequest = r = {})); + } +}), dw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.DidChangeWorkspaceFoldersNotification = e.WorkspaceFoldersRequest = void 0; + var t = Ce(), 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 = {})); + } +}), pw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.ConfigurationRequest = void 0; + var t = Ce(), r; + (function(n) { + n.method = "workspace/configuration", n.messageDirection = t.MessageDirection.serverToClient, n.type = new t.ProtocolRequestType(n.method); + })(r || (e.ConfigurationRequest = r = {})); + } +}), hw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.ColorPresentationRequest = e.DocumentColorRequest = void 0; + var t = Ce(), 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 = {})); + } +}), mw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.FoldingRangeRefreshRequest = e.FoldingRangeRequest = void 0; + var t = Ce(), 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 = {})); + } +}), gw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.DeclarationRequest = void 0; + var t = Ce(), r; + (function(n) { + n.method = "textDocument/declaration", n.messageDirection = t.MessageDirection.clientToServer, n.type = new t.ProtocolRequestType(n.method); + })(r || (e.DeclarationRequest = r = {})); + } +}), yw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.SelectionRangeRequest = void 0; + var t = Ce(), r; + (function(n) { + n.method = "textDocument/selectionRange", n.messageDirection = t.MessageDirection.clientToServer, n.type = new t.ProtocolRequestType(n.method); + })(r || (e.SelectionRangeRequest = r = {})); + } +}), vw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.WorkDoneProgressCancelNotification = e.WorkDoneProgressCreateRequest = e.WorkDoneProgress = void 0; + var t = qa(), r = Ce(), n; + (function(o) { + o.type = new t.ProgressType(); + function l(c) { + return c === o.type; + } + i(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 s; + (function(o) { + o.method = "window/workDoneProgress/cancel", o.messageDirection = r.MessageDirection.clientToServer, o.type = new r.ProtocolNotificationType(o.method); + })(s || (e.WorkDoneProgressCancelNotification = s = {})); + } +}), Tw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.CallHierarchyOutgoingCallsRequest = e.CallHierarchyIncomingCallsRequest = e.CallHierarchyPrepareRequest = void 0; + var t = Ce(), r; + (function(s) { + s.method = "textDocument/prepareCallHierarchy", s.messageDirection = t.MessageDirection.clientToServer, s.type = new t.ProtocolRequestType(s.method); + })(r || (e.CallHierarchyPrepareRequest = r = {})); + var n; + (function(s) { + s.method = "callHierarchy/incomingCalls", s.messageDirection = t.MessageDirection.clientToServer, s.type = new t.ProtocolRequestType(s.method); + })(n || (e.CallHierarchyIncomingCallsRequest = n = {})); + var a; + (function(s) { + s.method = "callHierarchy/outgoingCalls", s.messageDirection = t.MessageDirection.clientToServer, s.type = new t.ProtocolRequestType(s.method); + })(a || (e.CallHierarchyOutgoingCallsRequest = a = {})); + } +}), Rw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.SemanticTokensRefreshRequest = e.SemanticTokensRangeRequest = e.SemanticTokensDeltaRequest = e.SemanticTokensRequest = e.SemanticTokensRegistrationType = e.TokenFormat = void 0; + var t = Ce(), r; + (function(c) { + c.Relative = "relative"; + })(r || (e.TokenFormat = r = {})); + var n; + (function(c) { + c.method = "textDocument/semanticTokens", c.type = new t.RegistrationType(c.method); + })(n || (e.SemanticTokensRegistrationType = n = {})); + var a; + (function(c) { + c.method = "textDocument/semanticTokens/full", c.messageDirection = t.MessageDirection.clientToServer, c.type = new t.ProtocolRequestType(c.method), c.registrationMethod = n.method; + })(a || (e.SemanticTokensRequest = a = {})); + var s; + (function(c) { + c.method = "textDocument/semanticTokens/full/delta", c.messageDirection = t.MessageDirection.clientToServer, c.type = new t.ProtocolRequestType(c.method), c.registrationMethod = n.method; + })(s || (e.SemanticTokensDeltaRequest = s = {})); + var o; + (function(c) { + c.method = "textDocument/semanticTokens/range", c.messageDirection = t.MessageDirection.clientToServer, c.type = new t.ProtocolRequestType(c.method), c.registrationMethod = n.method; + })(o || (e.SemanticTokensRangeRequest = o = {})); + var l; + (function(c) { + c.method = "workspace/semanticTokens/refresh", c.messageDirection = t.MessageDirection.serverToClient, c.type = new t.ProtocolRequestType0(c.method); + })(l || (e.SemanticTokensRefreshRequest = l = {})); + } +}), $w = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.ShowDocumentRequest = void 0; + var t = Ce(), r; + (function(n) { + n.method = "window/showDocument", n.messageDirection = t.MessageDirection.serverToClient, n.type = new t.ProtocolRequestType(n.method); + })(r || (e.ShowDocumentRequest = r = {})); + } +}), Aw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.LinkedEditingRangeRequest = void 0; + var t = Ce(), r; + (function(n) { + n.method = "textDocument/linkedEditingRange", n.messageDirection = t.MessageDirection.clientToServer, n.type = new t.ProtocolRequestType(n.method); + })(r || (e.LinkedEditingRangeRequest = r = {})); + } +}), Ew = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.WillDeleteFilesRequest = e.DidDeleteFilesNotification = e.DidRenameFilesNotification = e.WillRenameFilesRequest = e.DidCreateFilesNotification = e.WillCreateFilesRequest = e.FileOperationPatternKind = void 0; + var t = Ce(), r; + (function(u) { + u.file = "file", u.folder = "folder"; + })(r || (e.FileOperationPatternKind = r = {})); + var n; + (function(u) { + u.method = "workspace/willCreateFiles", u.messageDirection = t.MessageDirection.clientToServer, u.type = new t.ProtocolRequestType(u.method); + })(n || (e.WillCreateFilesRequest = n = {})); + var a; + (function(u) { + u.method = "workspace/didCreateFiles", u.messageDirection = t.MessageDirection.clientToServer, u.type = new t.ProtocolNotificationType(u.method); + })(a || (e.DidCreateFilesNotification = a = {})); + var s; + (function(u) { + u.method = "workspace/willRenameFiles", u.messageDirection = t.MessageDirection.clientToServer, u.type = new t.ProtocolRequestType(u.method); + })(s || (e.WillRenameFilesRequest = s = {})); + var o; + (function(u) { + u.method = "workspace/didRenameFiles", u.messageDirection = t.MessageDirection.clientToServer, u.type = new t.ProtocolNotificationType(u.method); + })(o || (e.DidRenameFilesNotification = o = {})); + var l; + (function(u) { + u.method = "workspace/didDeleteFiles", u.messageDirection = t.MessageDirection.clientToServer, u.type = new t.ProtocolNotificationType(u.method); + })(l || (e.DidDeleteFilesNotification = l = {})); + var c; + (function(u) { + u.method = "workspace/willDeleteFiles", u.messageDirection = t.MessageDirection.clientToServer, u.type = new t.ProtocolRequestType(u.method); + })(c || (e.WillDeleteFilesRequest = c = {})); + } +}), _w = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.MonikerRequest = e.MonikerKind = e.UniquenessLevel = void 0; + var t = Ce(), r; + (function(s) { + s.document = "document", s.project = "project", s.group = "group", s.scheme = "scheme", s.global = "global"; + })(r || (e.UniquenessLevel = r = {})); + var n; + (function(s) { + s.$import = "import", s.$export = "export", s.local = "local"; + })(n || (e.MonikerKind = n = {})); + var a; + (function(s) { + s.method = "textDocument/moniker", s.messageDirection = t.MessageDirection.clientToServer, s.type = new t.ProtocolRequestType(s.method); + })(a || (e.MonikerRequest = a = {})); + } +}), Cw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.TypeHierarchySubtypesRequest = e.TypeHierarchySupertypesRequest = e.TypeHierarchyPrepareRequest = void 0; + var t = Ce(), r; + (function(s) { + s.method = "textDocument/prepareTypeHierarchy", s.messageDirection = t.MessageDirection.clientToServer, s.type = new t.ProtocolRequestType(s.method); + })(r || (e.TypeHierarchyPrepareRequest = r = {})); + var n; + (function(s) { + s.method = "typeHierarchy/supertypes", s.messageDirection = t.MessageDirection.clientToServer, s.type = new t.ProtocolRequestType(s.method); + })(n || (e.TypeHierarchySupertypesRequest = n = {})); + var a; + (function(s) { + s.method = "typeHierarchy/subtypes", s.messageDirection = t.MessageDirection.clientToServer, s.type = new t.ProtocolRequestType(s.method); + })(a || (e.TypeHierarchySubtypesRequest = a = {})); + } +}), bw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.InlineValueRefreshRequest = e.InlineValueRequest = void 0; + var t = Ce(), 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 = {})); + } +}), Sw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.InlayHintRefreshRequest = e.InlayHintResolveRequest = e.InlayHintRequest = void 0; + var t = Ce(), r; + (function(s) { + s.method = "textDocument/inlayHint", s.messageDirection = t.MessageDirection.clientToServer, s.type = new t.ProtocolRequestType(s.method); + })(r || (e.InlayHintRequest = r = {})); + var n; + (function(s) { + s.method = "inlayHint/resolve", s.messageDirection = t.MessageDirection.clientToServer, s.type = new t.ProtocolRequestType(s.method); + })(n || (e.InlayHintResolveRequest = n = {})); + var a; + (function(s) { + s.method = "workspace/inlayHint/refresh", s.messageDirection = t.MessageDirection.serverToClient, s.type = new t.ProtocolRequestType0(s.method); + })(a || (e.InlayHintRefreshRequest = a = {})); + } +}), ww = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.DiagnosticRefreshRequest = e.WorkspaceDiagnosticRequest = e.DocumentDiagnosticRequest = e.DocumentDiagnosticReportKind = e.DiagnosticServerCancellationData = void 0; + var t = qa(), r = Qf(), n = Ce(), a; + (function(u) { + function f(d) { + const h = d; + return h && r.boolean(h.retriggerRequest); + } + i(f, "is"), u.is = f; + })(a || (e.DiagnosticServerCancellationData = a = {})); + var s; + (function(u) { + u.Full = "full", u.Unchanged = "unchanged"; + })(s || (e.DocumentDiagnosticReportKind = s = {})); + var o; + (function(u) { + u.method = "textDocument/diagnostic", u.messageDirection = n.MessageDirection.clientToServer, u.type = new n.ProtocolRequestType(u.method), u.partialResult = new t.ProgressType(); + })(o || (e.DocumentDiagnosticRequest = o = {})); + var l; + (function(u) { + u.method = "workspace/diagnostic", u.messageDirection = n.MessageDirection.clientToServer, u.type = new n.ProtocolRequestType(u.method), u.partialResult = new t.ProgressType(); + })(l || (e.WorkspaceDiagnosticRequest = l = {})); + var c; + (function(u) { + u.method = "workspace/diagnostic/refresh", u.messageDirection = n.MessageDirection.serverToClient, u.type = new n.ProtocolRequestType0(u.method); + })(c || (e.DiagnosticRefreshRequest = c = {})); + } +}), Iw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(e) { + 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 = (Es(), Zf($l)), r = Qf(), n = Ce(), a; + (function(v) { + v.Markup = 1, v.Code = 2; + function C(S) { + return S === 1 || S === 2; + } + i(C, "is"), v.is = C; + })(a || (e.NotebookCellKind = a = {})); + var s; + (function(v) { + function C(I, A) { + const k = { executionOrder: I }; + return (A === !0 || A === !1) && (k.success = A), k; + } + i(C, "create"), v.create = C; + function S(I) { + const A = I; + return r.objectLiteral(A) && t.uinteger.is(A.executionOrder) && (A.success === void 0 || r.boolean(A.success)); + } + i(S, "is"), v.is = S; + function w(I, A) { + return I === A ? !0 : I == null || A === null || A === void 0 ? !1 : I.executionOrder === A.executionOrder && I.success === A.success; + } + i(w, "equals"), v.equals = w; + })(s || (e.ExecutionSummary = s = {})); + var o; + (function(v) { + function C(A, k) { + return { kind: A, document: k }; + } + i(C, "create"), v.create = C; + function S(A) { + const k = A; + return r.objectLiteral(k) && a.is(k.kind) && t.DocumentUri.is(k.document) && (k.metadata === void 0 || r.objectLiteral(k.metadata)); + } + i(S, "is"), v.is = S; + function w(A, k) { + const G = /* @__PURE__ */ new Set(); + return A.document !== k.document && G.add("document"), A.kind !== k.kind && G.add("kind"), A.executionSummary !== k.executionSummary && G.add("executionSummary"), (A.metadata !== void 0 || k.metadata !== void 0) && !I(A.metadata, k.metadata) && G.add("metadata"), (A.executionSummary !== void 0 || k.executionSummary !== void 0) && !s.equals(A.executionSummary, k.executionSummary) && G.add("executionSummary"), G; + } + i(w, "diff"), v.diff = w; + function I(A, k) { + if (A === k) + return !0; + if (A == null || k === null || k === void 0 || typeof A != typeof k || typeof A != "object") + return !1; + const G = Array.isArray(A), H = Array.isArray(k); + if (G !== H) + return !1; + if (G && H) { + if (A.length !== k.length) + return !1; + for (let X = 0; X < A.length; X++) + if (!I(A[X], k[X])) + return !1; + } + if (r.objectLiteral(A) && r.objectLiteral(k)) { + const X = Object.keys(A), le = Object.keys(k); + if (X.length !== le.length || (X.sort(), le.sort(), !I(X, le))) + return !1; + for (let ce = 0; ce < X.length; ce++) { + const Ne = X[ce]; + if (!I(A[Ne], k[Ne])) + return !1; + } + } + return !0; + } + i(I, "equalsMetadata"); + })(o || (e.NotebookCell = o = {})); + var l; + (function(v) { + function C(w, I, A, k) { + return { uri: w, notebookType: I, version: A, cells: k }; + } + i(C, "create"), v.create = C; + function S(w) { + const I = w; + return r.objectLiteral(I) && r.string(I.uri) && t.integer.is(I.version) && r.typedArray(I.cells, o.is); + } + i(S, "is"), v.is = S; + })(l || (e.NotebookDocument = l = {})); + var c; + (function(v) { + v.method = "notebookDocument/sync", v.messageDirection = n.MessageDirection.clientToServer, v.type = new n.RegistrationType(v.method); + })(c || (e.NotebookDocumentSyncRegistrationType = c = {})); + var u; + (function(v) { + v.method = "notebookDocument/didOpen", v.messageDirection = n.MessageDirection.clientToServer, v.type = new n.ProtocolNotificationType(v.method), v.registrationMethod = c.method; + })(u || (e.DidOpenNotebookDocumentNotification = u = {})); + var f; + (function(v) { + function C(w) { + const I = w; + return r.objectLiteral(I) && t.uinteger.is(I.start) && t.uinteger.is(I.deleteCount) && (I.cells === void 0 || r.typedArray(I.cells, o.is)); + } + i(C, "is"), v.is = C; + function S(w, I, A) { + const k = { start: w, deleteCount: I }; + return A !== void 0 && (k.cells = A), k; + } + i(S, "create"), v.create = S; + })(f || (e.NotebookCellArrayChange = f = {})); + var d; + (function(v) { + v.method = "notebookDocument/didChange", v.messageDirection = n.MessageDirection.clientToServer, v.type = new n.ProtocolNotificationType(v.method), v.registrationMethod = c.method; + })(d || (e.DidChangeNotebookDocumentNotification = d = {})); + var h; + (function(v) { + v.method = "notebookDocument/didSave", v.messageDirection = n.MessageDirection.clientToServer, v.type = new n.ProtocolNotificationType(v.method), v.registrationMethod = c.method; + })(h || (e.DidSaveNotebookDocumentNotification = h = {})); + var y; + (function(v) { + v.method = "notebookDocument/didClose", v.messageDirection = n.MessageDirection.clientToServer, v.type = new n.ProtocolNotificationType(v.method), v.registrationMethod = c.method; + })(y || (e.DidCloseNotebookDocumentNotification = y = {})); + } +}), Nw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.InlineCompletionRequest = void 0; + var t = Ce(), r; + (function(n) { + n.method = "textDocument/inlineCompletion", n.messageDirection = t.MessageDirection.clientToServer, n.type = new t.ProtocolRequestType(n.method); + })(r || (e.InlineCompletionRequest = r = {})); + } +}), kw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.WorkspaceSymbolRequest = e.CodeActionResolveRequest = e.CodeActionRequest = e.DocumentSymbolRequest = e.DocumentHighlightRequest = e.ReferencesRequest = e.DefinitionRequest = e.SignatureHelpRequest = e.SignatureHelpTriggerKind = e.HoverRequest = e.CompletionResolveRequest = e.CompletionRequest = e.CompletionTriggerKind = e.PublishDiagnosticsNotification = e.WatchKind = e.RelativePattern = e.FileChangeType = e.DidChangeWatchedFilesNotification = e.WillSaveTextDocumentWaitUntilRequest = e.WillSaveTextDocumentNotification = e.TextDocumentSaveReason = e.DidSaveTextDocumentNotification = e.DidCloseTextDocumentNotification = e.DidChangeTextDocumentNotification = e.TextDocumentContentChangeEvent = e.DidOpenTextDocumentNotification = e.TextDocumentSyncKind = e.TelemetryEventNotification = e.LogMessageNotification = e.ShowMessageRequest = e.ShowMessageNotification = e.MessageType = e.DidChangeConfigurationNotification = e.ExitNotification = e.ShutdownRequest = e.InitializedNotification = e.InitializeErrorCodes = e.InitializeRequest = e.WorkDoneProgressOptions = e.TextDocumentRegistrationOptions = e.StaticRegistrationOptions = e.PositionEncodingKind = e.FailureHandlingKind = e.ResourceOperationKind = e.UnregistrationRequest = e.RegistrationRequest = e.DocumentSelector = e.NotebookCellTextDocumentFilter = e.NotebookDocumentFilter = e.TextDocumentFilter = void 0, e.MonikerRequest = e.MonikerKind = e.UniquenessLevel = e.WillDeleteFilesRequest = e.DidDeleteFilesNotification = e.WillRenameFilesRequest = e.DidRenameFilesNotification = e.WillCreateFilesRequest = e.DidCreateFilesNotification = e.FileOperationPatternKind = e.LinkedEditingRangeRequest = e.ShowDocumentRequest = e.SemanticTokensRegistrationType = e.SemanticTokensRefreshRequest = e.SemanticTokensRangeRequest = e.SemanticTokensDeltaRequest = e.SemanticTokensRequest = e.TokenFormat = e.CallHierarchyPrepareRequest = e.CallHierarchyOutgoingCallsRequest = e.CallHierarchyIncomingCallsRequest = e.WorkDoneProgressCancelNotification = e.WorkDoneProgressCreateRequest = e.WorkDoneProgress = e.SelectionRangeRequest = e.DeclarationRequest = e.FoldingRangeRefreshRequest = e.FoldingRangeRequest = e.ColorPresentationRequest = e.DocumentColorRequest = e.ConfigurationRequest = e.DidChangeWorkspaceFoldersNotification = e.WorkspaceFoldersRequest = e.TypeDefinitionRequest = e.ImplementationRequest = e.ApplyWorkspaceEditRequest = e.ExecuteCommandRequest = e.PrepareRenameRequest = e.RenameRequest = e.PrepareSupportDefaultBehavior = e.DocumentOnTypeFormattingRequest = e.DocumentRangesFormattingRequest = e.DocumentRangeFormattingRequest = e.DocumentFormattingRequest = e.DocumentLinkResolveRequest = e.DocumentLinkRequest = e.CodeLensRefreshRequest = e.CodeLensResolveRequest = e.CodeLensRequest = e.WorkspaceSymbolResolveRequest = void 0, e.InlineCompletionRequest = e.DidCloseNotebookDocumentNotification = e.DidSaveNotebookDocumentNotification = e.DidChangeNotebookDocumentNotification = e.NotebookCellArrayChange = e.DidOpenNotebookDocumentNotification = e.NotebookDocumentSyncRegistrationType = e.NotebookDocument = e.NotebookCell = e.ExecutionSummary = e.NotebookCellKind = e.DiagnosticRefreshRequest = e.WorkspaceDiagnosticRequest = e.DocumentDiagnosticRequest = e.DocumentDiagnosticReportKind = e.DiagnosticServerCancellationData = e.InlayHintRefreshRequest = e.InlayHintResolveRequest = e.InlayHintRequest = e.InlineValueRefreshRequest = e.InlineValueRequest = e.TypeHierarchySupertypesRequest = e.TypeHierarchySubtypesRequest = e.TypeHierarchyPrepareRequest = void 0; + var t = Ce(), r = (Es(), Zf($l)), n = Qf(), a = uw(); + Object.defineProperty(e, "ImplementationRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return a.ImplementationRequest; + }, "get") }); + var s = fw(); + Object.defineProperty(e, "TypeDefinitionRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return s.TypeDefinitionRequest; + }, "get") }); + var o = dw(); + Object.defineProperty(e, "WorkspaceFoldersRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return o.WorkspaceFoldersRequest; + }, "get") }), Object.defineProperty(e, "DidChangeWorkspaceFoldersNotification", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return o.DidChangeWorkspaceFoldersNotification; + }, "get") }); + var l = pw(); + Object.defineProperty(e, "ConfigurationRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return l.ConfigurationRequest; + }, "get") }); + var c = hw(); + Object.defineProperty(e, "DocumentColorRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return c.DocumentColorRequest; + }, "get") }), Object.defineProperty(e, "ColorPresentationRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return c.ColorPresentationRequest; + }, "get") }); + var u = mw(); + Object.defineProperty(e, "FoldingRangeRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return u.FoldingRangeRequest; + }, "get") }), Object.defineProperty(e, "FoldingRangeRefreshRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return u.FoldingRangeRefreshRequest; + }, "get") }); + var f = gw(); + Object.defineProperty(e, "DeclarationRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return f.DeclarationRequest; + }, "get") }); + var d = yw(); + Object.defineProperty(e, "SelectionRangeRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return d.SelectionRangeRequest; + }, "get") }); + var h = vw(); + Object.defineProperty(e, "WorkDoneProgress", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return h.WorkDoneProgress; + }, "get") }), Object.defineProperty(e, "WorkDoneProgressCreateRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return h.WorkDoneProgressCreateRequest; + }, "get") }), Object.defineProperty(e, "WorkDoneProgressCancelNotification", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return h.WorkDoneProgressCancelNotification; + }, "get") }); + var y = Tw(); + Object.defineProperty(e, "CallHierarchyIncomingCallsRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return y.CallHierarchyIncomingCallsRequest; + }, "get") }), Object.defineProperty(e, "CallHierarchyOutgoingCallsRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return y.CallHierarchyOutgoingCallsRequest; + }, "get") }), Object.defineProperty(e, "CallHierarchyPrepareRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return y.CallHierarchyPrepareRequest; + }, "get") }); + var v = Rw(); + Object.defineProperty(e, "TokenFormat", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return v.TokenFormat; + }, "get") }), Object.defineProperty(e, "SemanticTokensRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return v.SemanticTokensRequest; + }, "get") }), Object.defineProperty(e, "SemanticTokensDeltaRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return v.SemanticTokensDeltaRequest; + }, "get") }), Object.defineProperty(e, "SemanticTokensRangeRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return v.SemanticTokensRangeRequest; + }, "get") }), Object.defineProperty(e, "SemanticTokensRefreshRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return v.SemanticTokensRefreshRequest; + }, "get") }), Object.defineProperty(e, "SemanticTokensRegistrationType", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return v.SemanticTokensRegistrationType; + }, "get") }); + var C = $w(); + Object.defineProperty(e, "ShowDocumentRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return C.ShowDocumentRequest; + }, "get") }); + var S = Aw(); + Object.defineProperty(e, "LinkedEditingRangeRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return S.LinkedEditingRangeRequest; + }, "get") }); + var w = Ew(); + Object.defineProperty(e, "FileOperationPatternKind", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return w.FileOperationPatternKind; + }, "get") }), Object.defineProperty(e, "DidCreateFilesNotification", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return w.DidCreateFilesNotification; + }, "get") }), Object.defineProperty(e, "WillCreateFilesRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return w.WillCreateFilesRequest; + }, "get") }), Object.defineProperty(e, "DidRenameFilesNotification", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return w.DidRenameFilesNotification; + }, "get") }), Object.defineProperty(e, "WillRenameFilesRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return w.WillRenameFilesRequest; + }, "get") }), Object.defineProperty(e, "DidDeleteFilesNotification", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return w.DidDeleteFilesNotification; + }, "get") }), Object.defineProperty(e, "WillDeleteFilesRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return w.WillDeleteFilesRequest; + }, "get") }); + var I = _w(); + Object.defineProperty(e, "UniquenessLevel", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return I.UniquenessLevel; + }, "get") }), Object.defineProperty(e, "MonikerKind", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return I.MonikerKind; + }, "get") }), Object.defineProperty(e, "MonikerRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return I.MonikerRequest; + }, "get") }); + var A = Cw(); + Object.defineProperty(e, "TypeHierarchyPrepareRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return A.TypeHierarchyPrepareRequest; + }, "get") }), Object.defineProperty(e, "TypeHierarchySubtypesRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return A.TypeHierarchySubtypesRequest; + }, "get") }), Object.defineProperty(e, "TypeHierarchySupertypesRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return A.TypeHierarchySupertypesRequest; + }, "get") }); + var k = bw(); + Object.defineProperty(e, "InlineValueRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return k.InlineValueRequest; + }, "get") }), Object.defineProperty(e, "InlineValueRefreshRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return k.InlineValueRefreshRequest; + }, "get") }); + var G = Sw(); + Object.defineProperty(e, "InlayHintRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return G.InlayHintRequest; + }, "get") }), Object.defineProperty(e, "InlayHintResolveRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return G.InlayHintResolveRequest; + }, "get") }), Object.defineProperty(e, "InlayHintRefreshRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return G.InlayHintRefreshRequest; + }, "get") }); + var H = ww(); + Object.defineProperty(e, "DiagnosticServerCancellationData", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return H.DiagnosticServerCancellationData; + }, "get") }), Object.defineProperty(e, "DocumentDiagnosticReportKind", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return H.DocumentDiagnosticReportKind; + }, "get") }), Object.defineProperty(e, "DocumentDiagnosticRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return H.DocumentDiagnosticRequest; + }, "get") }), Object.defineProperty(e, "WorkspaceDiagnosticRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return H.WorkspaceDiagnosticRequest; + }, "get") }), Object.defineProperty(e, "DiagnosticRefreshRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return H.DiagnosticRefreshRequest; + }, "get") }); + var X = Iw(); + Object.defineProperty(e, "NotebookCellKind", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return X.NotebookCellKind; + }, "get") }), Object.defineProperty(e, "ExecutionSummary", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return X.ExecutionSummary; + }, "get") }), Object.defineProperty(e, "NotebookCell", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return X.NotebookCell; + }, "get") }), Object.defineProperty(e, "NotebookDocument", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return X.NotebookDocument; + }, "get") }), Object.defineProperty(e, "NotebookDocumentSyncRegistrationType", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return X.NotebookDocumentSyncRegistrationType; + }, "get") }), Object.defineProperty(e, "DidOpenNotebookDocumentNotification", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return X.DidOpenNotebookDocumentNotification; + }, "get") }), Object.defineProperty(e, "NotebookCellArrayChange", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return X.NotebookCellArrayChange; + }, "get") }), Object.defineProperty(e, "DidChangeNotebookDocumentNotification", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return X.DidChangeNotebookDocumentNotification; + }, "get") }), Object.defineProperty(e, "DidSaveNotebookDocumentNotification", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return X.DidSaveNotebookDocumentNotification; + }, "get") }), Object.defineProperty(e, "DidCloseNotebookDocumentNotification", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return X.DidCloseNotebookDocumentNotification; + }, "get") }); + var le = Nw(); + Object.defineProperty(e, "InlineCompletionRequest", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return le.InlineCompletionRequest; + }, "get") }); + var ce; + (function(p) { + function ae($e) { + const W = $e; + return n.string(W) || n.string(W.language) || n.string(W.scheme) || n.string(W.pattern); + } + i(ae, "is"), p.is = ae; + })(ce || (e.TextDocumentFilter = ce = {})); + var Ne; + (function(p) { + function ae($e) { + const W = $e; + return n.objectLiteral(W) && (n.string(W.notebookType) || n.string(W.scheme) || n.string(W.pattern)); + } + i(ae, "is"), p.is = ae; + })(Ne || (e.NotebookDocumentFilter = Ne = {})); + var P; + (function(p) { + function ae($e) { + const W = $e; + return n.objectLiteral(W) && (n.string(W.notebook) || Ne.is(W.notebook)) && (W.language === void 0 || n.string(W.language)); + } + i(ae, "is"), p.is = ae; + })(P || (e.NotebookCellTextDocumentFilter = P = {})); + var _; + (function(p) { + function ae($e) { + if (!Array.isArray($e)) + return !1; + for (let W of $e) + if (!n.string(W) && !ce.is(W) && !P.is(W)) + return !1; + return !0; + } + i(ae, "is"), p.is = ae; + })(_ || (e.DocumentSelector = _ = {})); + var g; + (function(p) { + p.method = "client/registerCapability", p.messageDirection = t.MessageDirection.serverToClient, p.type = new t.ProtocolRequestType(p.method); + })(g || (e.RegistrationRequest = g = {})); + var E; + (function(p) { + p.method = "client/unregisterCapability", p.messageDirection = t.MessageDirection.serverToClient, p.type = new t.ProtocolRequestType(p.method); + })(E || (e.UnregistrationRequest = E = {})); + var T; + (function(p) { + p.Create = "create", p.Rename = "rename", p.Delete = "delete"; + })(T || (e.ResourceOperationKind = T = {})); + var R; + (function(p) { + p.Abort = "abort", p.Transactional = "transactional", p.TextOnlyTransactional = "textOnlyTransactional", p.Undo = "undo"; + })(R || (e.FailureHandlingKind = R = {})); + var b; + (function(p) { + p.UTF8 = "utf-8", p.UTF16 = "utf-16", p.UTF32 = "utf-32"; + })(b || (e.PositionEncodingKind = b = {})); + var O; + (function(p) { + function ae($e) { + const W = $e; + return W && n.string(W.id) && W.id.length > 0; + } + i(ae, "hasId"), p.hasId = ae; + })(O || (e.StaticRegistrationOptions = O = {})); + var M; + (function(p) { + function ae($e) { + const W = $e; + return W && (W.documentSelector === null || _.is(W.documentSelector)); + } + i(ae, "is"), p.is = ae; + })(M || (e.TextDocumentRegistrationOptions = M = {})); + var D; + (function(p) { + function ae(W) { + const m = W; + return n.objectLiteral(m) && (m.workDoneProgress === void 0 || n.boolean(m.workDoneProgress)); + } + i(ae, "is"), p.is = ae; + function $e(W) { + const m = W; + return m && n.boolean(m.workDoneProgress); + } + i($e, "hasWorkDoneProgress"), p.hasWorkDoneProgress = $e; + })(D || (e.WorkDoneProgressOptions = D = {})); + var z; + (function(p) { + p.method = "initialize", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(z || (e.InitializeRequest = z = {})); + var B; + (function(p) { + p.unknownProtocolVersion = 1; + })(B || (e.InitializeErrorCodes = B = {})); + var Z; + (function(p) { + p.method = "initialized", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolNotificationType(p.method); + })(Z || (e.InitializedNotification = Z = {})); + var J; + (function(p) { + p.method = "shutdown", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType0(p.method); + })(J || (e.ShutdownRequest = J = {})); + var te; + (function(p) { + p.method = "exit", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolNotificationType0(p.method); + })(te || (e.ExitNotification = te = {})); + var fe; + (function(p) { + p.method = "workspace/didChangeConfiguration", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolNotificationType(p.method); + })(fe || (e.DidChangeConfigurationNotification = fe = {})); + var ct; + (function(p) { + p.Error = 1, p.Warning = 2, p.Info = 3, p.Log = 4, p.Debug = 5; + })(ct || (e.MessageType = ct = {})); + var Re; + (function(p) { + p.method = "window/showMessage", p.messageDirection = t.MessageDirection.serverToClient, p.type = new t.ProtocolNotificationType(p.method); + })(Re || (e.ShowMessageNotification = Re = {})); + var Oe; + (function(p) { + p.method = "window/showMessageRequest", p.messageDirection = t.MessageDirection.serverToClient, p.type = new t.ProtocolRequestType(p.method); + })(Oe || (e.ShowMessageRequest = Oe = {})); + var qe; + (function(p) { + p.method = "window/logMessage", p.messageDirection = t.MessageDirection.serverToClient, p.type = new t.ProtocolNotificationType(p.method); + })(qe || (e.LogMessageNotification = qe = {})); + var be; + (function(p) { + p.method = "telemetry/event", p.messageDirection = t.MessageDirection.serverToClient, p.type = new t.ProtocolNotificationType(p.method); + })(be || (e.TelemetryEventNotification = be = {})); + var Q; + (function(p) { + p.None = 0, p.Full = 1, p.Incremental = 2; + })(Q || (e.TextDocumentSyncKind = Q = {})); + var rt; + (function(p) { + p.method = "textDocument/didOpen", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolNotificationType(p.method); + })(rt || (e.DidOpenTextDocumentNotification = rt = {})); + var me; + (function(p) { + function ae(W) { + let m = W; + return m != null && typeof m.text == "string" && m.range !== void 0 && (m.rangeLength === void 0 || typeof m.rangeLength == "number"); + } + i(ae, "isIncremental"), p.isIncremental = ae; + function $e(W) { + let m = W; + return m != null && typeof m.text == "string" && m.range === void 0 && m.rangeLength === void 0; + } + i($e, "isFull"), p.isFull = $e; + })(me || (e.TextDocumentContentChangeEvent = me = {})); + var Nt; + (function(p) { + p.method = "textDocument/didChange", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolNotificationType(p.method); + })(Nt || (e.DidChangeTextDocumentNotification = Nt = {})); + var Jn; + (function(p) { + p.method = "textDocument/didClose", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolNotificationType(p.method); + })(Jn || (e.DidCloseTextDocumentNotification = Jn = {})); + var ti; + (function(p) { + p.method = "textDocument/didSave", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolNotificationType(p.method); + })(ti || (e.DidSaveTextDocumentNotification = ti = {})); + var ri; + (function(p) { + p.Manual = 1, p.AfterDelay = 2, p.FocusOut = 3; + })(ri || (e.TextDocumentSaveReason = ri = {})); + var ni; + (function(p) { + p.method = "textDocument/willSave", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolNotificationType(p.method); + })(ni || (e.WillSaveTextDocumentNotification = ni = {})); + var ai; + (function(p) { + p.method = "textDocument/willSaveWaitUntil", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(ai || (e.WillSaveTextDocumentWaitUntilRequest = ai = {})); + var kt; + (function(p) { + p.method = "workspace/didChangeWatchedFiles", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolNotificationType(p.method); + })(kt || (e.DidChangeWatchedFilesNotification = kt = {})); + var Zn; + (function(p) { + p.Created = 1, p.Changed = 2, p.Deleted = 3; + })(Zn || (e.FileChangeType = Zn = {})); + var ii; + (function(p) { + function ae($e) { + const W = $e; + return n.objectLiteral(W) && (r.URI.is(W.baseUri) || r.WorkspaceFolder.is(W.baseUri)) && n.string(W.pattern); + } + i(ae, "is"), p.is = ae; + })(ii || (e.RelativePattern = ii = {})); + var si; + (function(p) { + p.Create = 1, p.Change = 2, p.Delete = 4; + })(si || (e.WatchKind = si = {})); + var oi; + (function(p) { + p.method = "textDocument/publishDiagnostics", p.messageDirection = t.MessageDirection.serverToClient, p.type = new t.ProtocolNotificationType(p.method); + })(oi || (e.PublishDiagnosticsNotification = oi = {})); + var li; + (function(p) { + p.Invoked = 1, p.TriggerCharacter = 2, p.TriggerForIncompleteCompletions = 3; + })(li || (e.CompletionTriggerKind = li = {})); + var Qn; + (function(p) { + p.method = "textDocument/completion", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(Qn || (e.CompletionRequest = Qn = {})); + var ea; + (function(p) { + p.method = "completionItem/resolve", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(ea || (e.CompletionResolveRequest = ea = {})); + var zt; + (function(p) { + p.method = "textDocument/hover", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(zt || (e.HoverRequest = zt = {})); + var ta; + (function(p) { + p.Invoked = 1, p.TriggerCharacter = 2, p.ContentChange = 3; + })(ta || (e.SignatureHelpTriggerKind = ta = {})); + var ci; + (function(p) { + p.method = "textDocument/signatureHelp", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(ci || (e.SignatureHelpRequest = ci = {})); + var ui; + (function(p) { + p.method = "textDocument/definition", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(ui || (e.DefinitionRequest = ui = {})); + var ra; + (function(p) { + p.method = "textDocument/references", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(ra || (e.ReferencesRequest = ra = {})); + var na; + (function(p) { + p.method = "textDocument/documentHighlight", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(na || (e.DocumentHighlightRequest = na = {})); + var fi; + (function(p) { + p.method = "textDocument/documentSymbol", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(fi || (e.DocumentSymbolRequest = fi = {})); + var Ks; + (function(p) { + p.method = "textDocument/codeAction", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(Ks || (e.CodeActionRequest = Ks = {})); + var di; + (function(p) { + p.method = "codeAction/resolve", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(di || (e.CodeActionResolveRequest = di = {})); + var pi; + (function(p) { + p.method = "workspace/symbol", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(pi || (e.WorkspaceSymbolRequest = pi = {})); + var hi; + (function(p) { + p.method = "workspaceSymbol/resolve", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(hi || (e.WorkspaceSymbolResolveRequest = hi = {})); + var mi; + (function(p) { + p.method = "textDocument/codeLens", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(mi || (e.CodeLensRequest = mi = {})); + var $t; + (function(p) { + p.method = "codeLens/resolve", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })($t || (e.CodeLensResolveRequest = $t = {})); + var gi; + (function(p) { + p.method = "workspace/codeLens/refresh", p.messageDirection = t.MessageDirection.serverToClient, p.type = new t.ProtocolRequestType0(p.method); + })(gi || (e.CodeLensRefreshRequest = gi = {})); + var yi; + (function(p) { + p.method = "textDocument/documentLink", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(yi || (e.DocumentLinkRequest = yi = {})); + var kr; + (function(p) { + p.method = "documentLink/resolve", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(kr || (e.DocumentLinkResolveRequest = kr = {})); + var vi; + (function(p) { + p.method = "textDocument/formatting", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(vi || (e.DocumentFormattingRequest = vi = {})); + var Hr; + (function(p) { + p.method = "textDocument/rangeFormatting", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(Hr || (e.DocumentRangeFormattingRequest = Hr = {})); + var Ti; + (function(p) { + p.method = "textDocument/rangesFormatting", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(Ti || (e.DocumentRangesFormattingRequest = Ti = {})); + var Bt; + (function(p) { + p.method = "textDocument/onTypeFormatting", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(Bt || (e.DocumentOnTypeFormattingRequest = Bt = {})); + var or; + (function(p) { + p.Identifier = 1; + })(or || (e.PrepareSupportDefaultBehavior = or = {})); + var Ri; + (function(p) { + p.method = "textDocument/rename", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(Ri || (e.RenameRequest = Ri = {})); + var $i; + (function(p) { + p.method = "textDocument/prepareRename", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })($i || (e.PrepareRenameRequest = $i = {})); + var lr; + (function(p) { + p.method = "workspace/executeCommand", p.messageDirection = t.MessageDirection.clientToServer, p.type = new t.ProtocolRequestType(p.method); + })(lr || (e.ExecuteCommandRequest = lr = {})); + var aa; + (function(p) { + p.method = "workspace/applyEdit", p.messageDirection = t.MessageDirection.serverToClient, p.type = new t.ProtocolRequestType("workspace/applyEdit"); + })(aa || (e.ApplyWorkspaceEditRequest = aa = {})); + } +}), Pw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.createProtocolConnection = void 0; + var t = qa(); + function r(n, a, s, o) { + return t.ConnectionStrategy.is(o) && (o = { connectionStrategy: o }), (0, t.createMessageConnection)(n, a, s, o); + } + i(r, "createProtocolConnection"), e.createProtocolConnection = r; + } +}), Ow = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e) { + var t = e && e.__createBinding || (Object.create ? (function(s, o, l, c) { + c === void 0 && (c = l); + var u = Object.getOwnPropertyDescriptor(o, l); + (!u || ("get" in u ? !o.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: /* @__PURE__ */ i(function() { + return o[l]; + }, "get") }), Object.defineProperty(s, c, u); + }) : (function(s, o, l, c) { + c === void 0 && (c = l), s[c] = o[l]; + })), r = e && e.__exportStar || function(s, o) { + for (var l in s) l !== "default" && !Object.prototype.hasOwnProperty.call(o, l) && t(o, s, l); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.LSPErrorCodes = e.createProtocolConnection = void 0, r(qa(), e), r((Es(), Zf($l)), e), r(Ce(), e), r(kw(), e); + var n = Pw(); + Object.defineProperty(e, "createProtocolConnection", { enumerable: !0, get: /* @__PURE__ */ i(function() { + return n.createProtocolConnection; + }, "get") }); + var a; + (function(s) { + s.lspReservedErrorRangeStart = -32899, s.RequestFailed = -32803, s.ServerCancelled = -32802, s.ContentModified = -32801, s.RequestCancelled = -32800, s.lspReservedErrorRangeEnd = -32800; + })(a || (e.LSPErrorCodes = a = {})); + } +}), Lw = V({ + "../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(e) { + var t = e && e.__createBinding || (Object.create ? (function(s, o, l, c) { + c === void 0 && (c = l); + var u = Object.getOwnPropertyDescriptor(o, l); + (!u || ("get" in u ? !o.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: /* @__PURE__ */ i(function() { + return o[l]; + }, "get") }), Object.defineProperty(s, c, u); + }) : (function(s, o, l, c) { + c === void 0 && (c = l), s[c] = o[l]; + })), r = e && e.__exportStar || function(s, o) { + for (var l in s) l !== "default" && !Object.prototype.hasOwnProperty.call(o, l) && t(o, s, l); + }; + Object.defineProperty(e, "__esModule", { value: !0 }), e.createProtocolConnection = void 0; + var n = Mh(); + r(Mh(), e), r(Ow(), e); + function a(s, o, l, c) { + return (0, n.createMessageConnection)(s, o, l, c); + } + i(a, "createProtocolConnection"), e.createProtocolConnection = a; + } +}), Lg = {}; +Br(Lg, { + AbstractAstReflection: () => rd, + AbstractCstNode: () => ah, + AbstractLangiumParser: () => sh, + AbstractParserErrorMessageProvider: () => _b, + AbstractThreadedAsyncParser: () => aF, + AstUtils: () => nd, + BiMap: () => gl, + Cancellation: () => pe, + CompositeCstNodeImpl: () => vc, + ContextCache: () => Cc, + CstNodeBuilder: () => Rb, + CstUtils: () => ed, + DEFAULT_TOKENIZE_OPTIONS: () => _h, + DONE_RESULT: () => Ve, + DatatypeSymbol: () => dl, + DefaultAstNodeDescriptionProvider: () => eS, + DefaultAstNodeLocator: () => rS, + DefaultAsyncParser: () => RS, + DefaultCommentProvider: () => TS, + DefaultConfigurationProvider: () => nS, + DefaultDocumentBuilder: () => aS, + DefaultDocumentValidator: () => Qb, + DefaultHydrator: () => AS, + DefaultIndexManager: () => iS, + DefaultJsonSerializer: () => Yb, + DefaultLangiumDocumentFactory: () => jb, + DefaultLangiumDocuments: () => Ub, + DefaultLangiumProfiler: () => cF, + DefaultLexer: () => Ch, + DefaultLexerErrorMessageProvider: () => oS, + DefaultLinker: () => zb, + DefaultNameProvider: () => Bb, + DefaultReferenceDescriptionProvider: () => tS, + DefaultReferences: () => Kb, + DefaultScopeComputation: () => qb, + DefaultScopeProvider: () => Hb, + DefaultServiceRegistry: () => Xb, + DefaultTokenBuilder: () => $c, + DefaultValueConverter: () => ph, + DefaultWorkspaceLock: () => $S, + DefaultWorkspaceManager: () => sS, + Deferred: () => Cr, + Disposable: () => Cn, + DisposableCache: () => _c, + DocumentCache: () => Vb, + DocumentState: () => Y, + DocumentValidator: () => Et, + EMPTY_SCOPE: () => eF, + EMPTY_STREAM: () => Pa, + EmptyFileSystem: () => It, + EmptyFileSystemProvider: () => CS, + ErrorWithLocation: () => kl, + GrammarAST: () => xg, + GrammarUtils: () => Od, + IndentationAwareLexer: () => sF, + IndentationAwareTokenBuilder: () => _S, + JSDocDocumentationProvider: () => vS, + LangiumCompletionParser: () => Cb, + LangiumParser: () => Eb, + LangiumParserErrorMessageProvider: () => oh, + LeafCstNodeImpl: () => fl, + LexingMode: () => En, + MapScope: () => Q1, + Module: () => Mf, + MultiMap: () => br, + MultiMapScope: () => Wb, + OperationCancelled: () => Jt, + ParserWorker: () => iF, + ProfilingTask: () => SS, + Reduction: () => ss, + RefResolving: () => an, + RegExpUtils: () => Dd, + RootCstNodeImpl: () => ih, + SimpleCache: () => Th, + StreamImpl: () => Xt, + StreamScope: () => Pf, + TextDocument: () => hl, + TreeStreamImpl: () => Oa, + URI: () => ft, + UriTrie: () => yh, + UriUtils: () => Ye, + VALIDATE_EACH_NODE: () => Zb, + ValidationCategory: () => yl, + ValidationRegistry: () => Jb, + ValueConverter: () => Ht, + WorkspaceCache: () => Rh, + assertCondition: () => Ld, + assertUnreachable: () => Kr, + createCompletionParser: () => uh, + createDefaultCoreModule: () => yt, + createDefaultSharedCoreModule: () => vt, + createGrammarConfig: () => Qd, + createLangiumParser: () => fh, + createParser: () => Tc, + delayNextTick: () => Ac, + diagnosticData: () => An, + eagerLoad: () => Ph, + getDiagnosticRange: () => Ah, + indentationBuilderDefaultOptions: () => Ff, + inject: () => Ae, + interruptAndCheck: () => Ge, + isAstNode: () => Le, + isAstNodeDescription: () => td, + isAstNodeWithComment: () => $h, + isCompositeCstNode: () => yr, + isIMultiModeLexerDefinition: () => wc, + isJSDoc: () => Sh, + isLeafCstNode: () => kn, + isLinkingError: () => ln, + isMultiReference: () => Zt, + isNamed: () => vh, + isOperationCancelled: () => Xn, + isReference: () => He, + isRootCstNode: () => El, + isTokenTypeArray: () => Sc, + isTokenTypeDictionary: () => vl, + loadGrammarFromJson: () => Tt, + parseJSDoc: () => bh, + prepareLangiumParser: () => dh, + setInterruptionPeriod: () => hh, + startCancelableOperation: () => Ec, + stream: () => oe, + toDiagnosticData: () => Eh, + toDiagnosticSeverity: () => as +}); +var ed = {}; +Br(ed, { + DefaultNameRegexp: () => wd, + RangeComparison: () => Yt, + compareRange: () => bd, + findCommentNode: () => Id, + findDeclarationNodeAtOffset: () => ry, + findLeafNodeAtOffset: () => Nl, + findLeafNodeBeforeOffset: () => Nd, + flattenCst: () => ty, + getDatatypeNode: () => ey, + getInteriorNodes: () => iy, + getNextNode: () => ny, + getPreviousNode: () => Pd, + getStartlineNode: () => ay, + inRange: () => Sd, + isChildNode: () => Cd, + isCommentNode: () => Yo, + streamCst: () => xa, + toDocumentSegment: () => Fa, + tokenToRange: () => os +}); +function Le(e) { + return typeof e == "object" && e !== null && typeof e.$type == "string"; +} +i(Le, "isAstNode"); +function He(e) { + return typeof e == "object" && e !== null && typeof e.$refText == "string" && "ref" in e; +} +i(He, "isReference"); +function Zt(e) { + return typeof e == "object" && e !== null && typeof e.$refText == "string" && "items" in e; +} +i(Zt, "isMultiReference"); +function td(e) { + return typeof e == "object" && e !== null && typeof e.name == "string" && typeof e.type == "string" && typeof e.path == "string"; +} +i(td, "isAstNodeDescription"); +function ln(e) { + return typeof e == "object" && e !== null && typeof e.info == "object" && typeof e.message == "string"; +} +i(ln, "isLinkingError"); +var rd = class { + static { + i(this, "AbstractAstReflection"); + } + constructor() { + this.subtypes = {}, this.allSubtypes = {}; + } + getAllTypes() { + return Object.keys(this.types); + } + getReferenceType(e) { + const t = this.types[e.container.$type]; + if (!t) + throw new Error(`Type ${e.container.$type || "undefined"} not found.`); + const 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) { + const t = this.types[e]; + return t || { + name: e, + properties: {}, + superTypes: [] + }; + } + isInstance(e, t) { + return Le(e) && this.isSubtype(e.$type, t); + } + isSubtype(e, t) { + if (e === t) + return !0; + let r = this.subtypes[e]; + r || (r = this.subtypes[e] = {}); + const n = r[t]; + if (n !== void 0) + return n; + { + const a = this.types[e], s = a ? a.superTypes.some((o) => this.isSubtype(o, t)) : !1; + return r[t] = s, s; + } + } + getAllSubTypes(e) { + const t = this.allSubtypes[e]; + if (t) + return t; + { + const r = this.getAllTypes(), n = []; + for (const a of r) + this.isSubtype(a, e) && n.push(a); + return this.allSubtypes[e] = n, n; + } + } +}; +function yr(e) { + return typeof e == "object" && e !== null && Array.isArray(e.content); +} +i(yr, "isCompositeCstNode"); +function kn(e) { + return typeof e == "object" && e !== null && typeof e.tokenType == "object"; +} +i(kn, "isLeafCstNode"); +function El(e) { + return yr(e) && typeof e.fullText == "string"; +} +i(El, "isRootCstNode"); +var Xt = class fr { + static { + i(this, "StreamImpl"); + } + constructor(t, r) { + this.startFn = t, this.nextFn = r; + } + iterator() { + const t = { + state: this.startFn(), + next: /* @__PURE__ */ i(() => this.nextFn(t.state), "next"), + [Symbol.iterator]: () => t + }; + return t; + } + [Symbol.iterator]() { + return this.iterator(); + } + isEmpty() { + return !!this.iterator().next().done; + } + count() { + const t = this.iterator(); + let r = 0, n = t.next(); + for (; !n.done; ) + r++, n = t.next(); + return r; + } + toArray() { + const t = [], r = this.iterator(); + let 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) { + const n = this.map((a) => [ + t ? t(a) : a, + r ? r(a) : a + ]); + return new Map(n); + } + toString() { + return this.join(); + } + concat(t) { + return new fr(() => ({ 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 Ve; + }); + } + join(t = ",") { + const r = this.iterator(); + let n = "", a, s = !1; + do + a = r.next(), a.done || (s && (n += t), n += Dg(a.value)), s = !0; + while (!a.done); + return n; + } + indexOf(t, r = 0) { + const n = this.iterator(); + let a = 0, s = n.next(); + for (; !s.done; ) { + if (a >= r && s.value === t) + return a; + s = n.next(), a++; + } + return -1; + } + every(t) { + const r = this.iterator(); + let n = r.next(); + for (; !n.done; ) { + if (!t(n.value)) + return !1; + n = r.next(); + } + return !0; + } + some(t) { + const r = this.iterator(); + let n = r.next(); + for (; !n.done; ) { + if (t(n.value)) + return !0; + n = r.next(); + } + return !1; + } + forEach(t) { + const r = this.iterator(); + let n = 0, a = r.next(); + for (; !a.done; ) + t(a.value, n), a = r.next(), n++; + } + map(t) { + return new fr(this.startFn, (r) => { + const { done: n, value: a } = this.nextFn(r); + return n ? Ve : { done: !1, value: t(a) }; + }); + } + filter(t) { + return new fr(this.startFn, (r) => { + let n; + do + if (n = this.nextFn(r), !n.done && t(n.value)) + return n; + while (!n.done); + return Ve; + }); + } + nonNullable() { + return this.filter((t) => t != null); + } + reduce(t, r) { + const n = this.iterator(); + let a = r, s = n.next(); + for (; !s.done; ) + a === void 0 ? a = s.value : a = t(a, s.value), s = n.next(); + return a; + } + reduceRight(t, r) { + return this.recursiveReduce(this.iterator(), t, r); + } + recursiveReduce(t, r, n) { + const a = t.next(); + if (a.done) + return n; + const s = this.recursiveReduce(t, r, n); + return s === void 0 ? a.value : r(s, a.value); + } + find(t) { + const r = this.iterator(); + let n = r.next(); + for (; !n.done; ) { + if (t(n.value)) + return n.value; + n = r.next(); + } + } + findIndex(t) { + const r = this.iterator(); + let n = 0, a = r.next(); + for (; !a.done; ) { + if (t(a.value)) + return n; + a = r.next(), n++; + } + return -1; + } + includes(t) { + const r = this.iterator(); + let n = r.next(); + for (; !n.done; ) { + if (n.value === t) + return !0; + n = r.next(); + } + return !1; + } + flatMap(t) { + return new fr(() => ({ this: this.startFn() }), (r) => { + do { + if (r.iterator) { + const s = r.iterator.next(); + if (s.done) + r.iterator = void 0; + else + return s; + } + const { done: n, value: a } = this.nextFn(r.this); + if (!n) { + const s = t(a); + if (is(s)) + r.iterator = s[Symbol.iterator](); + else + return { done: !1, value: s }; + } + } while (r.iterator); + return Ve; + }); + } + flat(t) { + if (t === void 0 && (t = 1), t <= 0) + return this; + const r = t > 1 ? this.flat(t - 1) : this; + return new fr(() => ({ this: r.startFn() }), (n) => { + do { + if (n.iterator) { + const o = n.iterator.next(); + if (o.done) + n.iterator = void 0; + else + return o; + } + const { done: a, value: s } = r.nextFn(n.this); + if (!a) + if (is(s)) + n.iterator = s[Symbol.iterator](); + else + return { done: !1, value: s }; + } while (n.iterator); + return Ve; + }); + } + head() { + const r = this.iterator().next(); + if (!r.done) + return r.value; + } + tail(t = 1) { + return new fr(() => { + const r = this.startFn(); + for (let n = 0; n < t; n++) + if (this.nextFn(r).done) + return r; + return r; + }, this.nextFn); + } + limit(t) { + return new fr(() => ({ size: 0, state: this.startFn() }), (r) => (r.size++, r.size > t ? Ve : this.nextFn(r.state))); + } + distinct(t) { + return new fr(() => ({ set: /* @__PURE__ */ new Set(), internalState: this.startFn() }), (r) => { + let n; + do + if (n = this.nextFn(r.internalState), !n.done) { + const a = t ? t(n.value) : n.value; + if (!r.set.has(a)) + return r.set.add(a), n; + } + while (!n.done); + return Ve; + }); + } + exclude(t, r) { + const n = /* @__PURE__ */ new Set(); + for (const a of t) { + const s = r ? r(a) : a; + n.add(s); + } + return this.filter((a) => { + const s = r ? r(a) : a; + return !n.has(s); + }); + } +}; +function Dg(e) { + return typeof e == "string" ? e : typeof e > "u" ? "undefined" : typeof e.toString == "function" ? e.toString() : Object.prototype.toString.call(e); +} +i(Dg, "toString"); +function is(e) { + return !!e && typeof e[Symbol.iterator] == "function"; +} +i(is, "isIterable"); +var Pa = new Xt(() => { +}, () => Ve), Ve = Object.freeze({ done: !0, value: void 0 }); +function oe(...e) { + if (e.length === 1) { + const t = e[0]; + if (t instanceof Xt) + return t; + if (is(t)) + return new Xt(() => t[Symbol.iterator](), (r) => r.next()); + if (typeof t.length == "number") + return new Xt(() => ({ index: 0 }), (r) => r.index < t.length ? { done: !1, value: t[r.index++] } : Ve); + } + return e.length > 1 ? new Xt(() => ({ collIndex: 0, arrIndex: 0 }), (t) => { + do { + if (t.iterator) { + const r = t.iterator.next(); + if (!r.done) + return r; + t.iterator = void 0; + } + if (t.array) { + if (t.arrIndex < t.array.length) + return { done: !1, value: t.array[t.arrIndex++] }; + t.array = void 0, t.arrIndex = 0; + } + if (t.collIndex < e.length) { + const r = e[t.collIndex++]; + is(r) ? t.iterator = r[Symbol.iterator]() : r && typeof r.length == "number" && (t.array = r); + } + } while (t.iterator || t.array || t.collIndex < e.length); + return Ve; + }) : Pa; +} +i(oe, "stream"); +var Oa = class extends Xt { + static { + i(this, "TreeStreamImpl"); + } + constructor(e, t, r) { + super(() => ({ + 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; ) { + const s = n.iterators[n.iterators.length - 1].next(); + if (s.done) + n.iterators.pop(); + else + return n.iterators.push(t(s.value)[Symbol.iterator]()), s; + } + return Ve; + }); + } + iterator() { + const e = { + state: this.startFn(), + next: /* @__PURE__ */ i(() => this.nextFn(e.state), "next"), + prune: /* @__PURE__ */ i(() => { + e.state.pruned = !0; + }, "prune"), + [Symbol.iterator]: () => e + }; + return e; + } +}, ss; +(function(e) { + function t(s) { + return s.reduce((o, l) => o + l, 0); + } + i(t, "sum"), e.sum = t; + function r(s) { + return s.reduce((o, l) => o * l, 0); + } + i(r, "product"), e.product = r; + function n(s) { + return s.reduce((o, l) => Math.min(o, l)); + } + i(n, "min"), e.min = n; + function a(s) { + return s.reduce((o, l) => Math.max(o, l)); + } + i(a, "max"), e.max = a; +})(ss || (ss = {})); +var nd = {}; +Br(nd, { + assignMandatoryProperties: () => ad, + copyAstNode: () => Do, + findRootNode: () => wa, + getContainerOfType: () => Pn, + getDocument: () => Dt, + getReferenceNodes: () => Oo, + hasContainerOfType: () => Mg, + linkContentToContainer: () => La, + streamAllContents: () => Sr, + streamAst: () => Mt, + streamContents: () => Cs, + streamReferences: () => Da +}); +function La(e, t = {}) { + for (const [r, n] of Object.entries(e)) + r.startsWith("$") || (Array.isArray(n) ? n.forEach((a, s) => { + Le(a) && (a.$container = e, a.$containerProperty = r, a.$containerIndex = s, t.deep && La(a, t)); + }) : Le(n) && (n.$container = e, n.$containerProperty = r, t.deep && La(n, t))); +} +i(La, "linkContentToContainer"); +function Pn(e, t) { + let r = e; + for (; r; ) { + if (t(r)) + return r; + r = r.$container; + } +} +i(Pn, "getContainerOfType"); +function Mg(e, t) { + let r = e; + for (; r; ) { + if (t(r)) + return !0; + r = r.$container; + } + return !1; +} +i(Mg, "hasContainerOfType"); +function Dt(e) { + const r = wa(e).$document; + if (!r) + throw new Error("AST node has no document."); + return r; +} +i(Dt, "getDocument"); +function wa(e) { + for (; e.$container; ) + e = e.$container; + return e; +} +i(wa, "findRootNode"); +function Oo(e) { + return He(e) ? e.ref ? [e.ref] : [] : Zt(e) ? e.items.map((t) => t.ref) : []; +} +i(Oo, "getReferenceNodes"); +function Cs(e, t) { + if (!e) + throw new Error("Node must be an AstNode."); + const r = t?.range; + return new Xt(() => ({ + keys: Object.keys(e), + keyIndex: 0, + arrayIndex: 0 + }), (n) => { + for (; n.keyIndex < n.keys.length; ) { + const a = n.keys[n.keyIndex]; + if (!a.startsWith("$")) { + const s = e[a]; + if (Le(s)) { + if (n.keyIndex++, Lo(s, r)) + return { done: !1, value: s }; + } else if (Array.isArray(s)) { + for (; n.arrayIndex < s.length; ) { + const o = n.arrayIndex++, l = s[o]; + if (Le(l) && Lo(l, r)) + return { done: !1, value: l }; + } + n.arrayIndex = 0; + } + } + n.keyIndex++; + } + return Ve; + }); +} +i(Cs, "streamContents"); +function Sr(e, t) { + if (!e) + throw new Error("Root node must be an AstNode."); + return new Oa(e, (r) => Cs(r, t)); +} +i(Sr, "streamAllContents"); +function Mt(e, t) { + if (e) { + if (t?.range && !Lo(e, t.range)) + return new Oa(e, () => []); + } else throw new Error("Root node must be an AstNode."); + return new Oa(e, (r) => Cs(r, t), { includeRoot: !0 }); +} +i(Mt, "streamAst"); +function Lo(e, t) { + if (!t) + return !0; + const r = e.$cstNode?.range; + return r ? Sd(r, t) : !1; +} +i(Lo, "isAstNodeInRange"); +function Da(e) { + return new Xt(() => ({ + keys: Object.keys(e), + keyIndex: 0, + arrayIndex: 0 + }), (t) => { + for (; t.keyIndex < t.keys.length; ) { + const r = t.keys[t.keyIndex]; + if (!r.startsWith("$")) { + const n = e[r]; + if (He(n) || Zt(n)) + return t.keyIndex++, { done: !1, value: { reference: n, container: e, property: r } }; + if (Array.isArray(n)) { + for (; t.arrayIndex < n.length; ) { + const a = t.arrayIndex++, s = n[a]; + if (He(s) || Zt(n)) + return { done: !1, value: { reference: s, container: e, property: r, index: a } }; + } + t.arrayIndex = 0; + } + } + t.keyIndex++; + } + return Ve; + }); +} +i(Da, "streamReferences"); +function ad(e, t) { + const r = e.getTypeMetaData(t.$type), n = t; + for (const a of Object.values(r.properties)) + a.defaultValue !== void 0 && n[a.name] === void 0 && (n[a.name] = id(a.defaultValue)); +} +i(ad, "assignMandatoryProperties"); +function id(e) { + return Array.isArray(e) ? [...e.map(id)] : e; +} +i(id, "copyDefaultValue"); +function Do(e, t, r) { + const n = { $type: e.$type }; + r && (r.set(e, n), r.set(n, e)); + for (const [a, s] of Object.entries(e)) + if (!a.startsWith("$")) + if (Le(s)) + n[a] = Do(s, t, r); + else if (He(s)) + n[a] = t(n, a, s.$refNode, s.$refText, s); + else if (Array.isArray(s)) { + const o = []; + for (const l of s) + Le(l) ? o.push(Do(l, t, r)) : He(l) ? o.push(t(n, a, l.$refNode, l.$refText, l)) : o.push(l); + n[a] = o; + } else + n[a] = s; + return La(n, { deep: !0 }), n; +} +i(Do, "copyAstNode"); +var xg = {}; +Br(xg, { + AbstractElement: () => nt, + AbstractParserRule: () => Ki, + AbstractRule: () => Ra, + AbstractType: () => ut, + Action: () => Or, + Alternatives: () => qi, + ArrayLiteral: () => Mo, + ArrayType: () => xo, + Assignment: () => Lr, + BooleanLiteral: () => Fo, + CharacterRange: () => Dr, + Condition: () => Mr, + Conjunction: () => Wi, + CrossReference: () => xr, + Disjunction: () => Vi, + EndOfFile: () => Go, + Grammar: () => hr, + GrammarImport: () => jo, + Group: () => cn, + InferredType: () => Uo, + InfixRule: () => Vt, + InfixRuleOperatorList: () => Hi, + InfixRuleOperators: () => zo, + Interface: () => $a, + Keyword: () => Aa, + LangiumGrammarAstReflection: () => _d, + LangiumGrammarTerminals: () => Dw, + NamedArgument: () => Ea, + NegatedToken: () => un, + Negation: () => Bo, + NumberLiteral: () => Ko, + Parameter: () => _a, + ParameterReference: () => qo, + ParserRule: () => Pt, + ReferenceType: () => Yi, + RegexToken: () => fn, + ReturnType: () => Wo, + RuleCall: () => dn, + SimpleType: () => Ca, + StringLiteral: () => Vo, + TerminalAlternatives: () => pn, + TerminalElement: () => at, + TerminalGroup: () => hn, + TerminalRule: () => mr, + TerminalRuleCall: () => mn, + Type: () => Xi, + TypeAttribute: () => gn, + TypeDefinition: () => yn, + UnionType: () => Ho, + UnorderedGroup: () => Ji, + UntilToken: () => vn, + ValueLiteral: () => Tn, + Wildcard: () => ba, + isAbstractElement: () => _l, + isAbstractParserRule: () => On, + isAbstractRule: () => Fg, + isAbstractType: () => Gg, + isAction: () => Fr, + isAlternatives: () => Cl, + isArrayLiteral: () => jg, + isArrayType: () => sd, + isAssignment: () => vr, + isBooleanLiteral: () => od, + isCharacterRange: () => ld, + isCondition: () => Ug, + isConjunction: () => cd, + isCrossReference: () => Ln, + isDisjunction: () => ud, + isEndOfFile: () => fd, + isGrammar: () => zg, + isGrammarImport: () => Bg, + isGroup: () => Dn, + isInferredType: () => bs, + isInfixRule: () => Ma, + isInfixRuleOperatorList: () => Kg, + isInfixRuleOperators: () => qg, + isInterface: () => dd, + isKeyword: () => Tr, + isNamedArgument: () => Wg, + isNegatedToken: () => pd, + isNegation: () => hd, + isNumberLiteral: () => Vg, + isParameter: () => Hg, + isParameterReference: () => md, + isParserRule: () => Je, + isReferenceType: () => gd, + isRegexToken: () => yd, + isReturnType: () => vd, + isRuleCall: () => Rr, + isSimpleType: () => bl, + isStringLiteral: () => Yg, + isTerminalAlternatives: () => Td, + isTerminalElement: () => Xg, + isTerminalGroup: () => Rd, + isTerminalRule: () => St, + isTerminalRuleCall: () => Sl, + isType: () => wl, + isTypeAttribute: () => Jg, + isTypeDefinition: () => Zg, + isUnionType: () => $d, + isUnorderedGroup: () => Il, + isUntilToken: () => Ad, + isValueLiteral: () => Qg, + isWildcard: () => Ed, + reflection: () => j +}); +var Dw = { + 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]*/ +}, nt = { + $type: "AbstractElement", + cardinality: "cardinality" +}; +function _l(e) { + return j.isInstance(e, nt.$type); +} +i(_l, "isAbstractElement"); +var Ki = { + $type: "AbstractParserRule" +}; +function On(e) { + return j.isInstance(e, Ki.$type); +} +i(On, "isAbstractParserRule"); +var Ra = { + $type: "AbstractRule" +}; +function Fg(e) { + return j.isInstance(e, Ra.$type); +} +i(Fg, "isAbstractRule"); +var ut = { + $type: "AbstractType" +}; +function Gg(e) { + return j.isInstance(e, ut.$type); +} +i(Gg, "isAbstractType"); +var Or = { + $type: "Action", + cardinality: "cardinality", + feature: "feature", + inferredType: "inferredType", + operator: "operator", + type: "type" +}; +function Fr(e) { + return j.isInstance(e, Or.$type); +} +i(Fr, "isAction"); +var qi = { + $type: "Alternatives", + cardinality: "cardinality", + elements: "elements" +}; +function Cl(e) { + return j.isInstance(e, qi.$type); +} +i(Cl, "isAlternatives"); +var Mo = { + $type: "ArrayLiteral", + elements: "elements" +}; +function jg(e) { + return j.isInstance(e, Mo.$type); +} +i(jg, "isArrayLiteral"); +var xo = { + $type: "ArrayType", + elementType: "elementType" +}; +function sd(e) { + return j.isInstance(e, xo.$type); +} +i(sd, "isArrayType"); +var Lr = { + $type: "Assignment", + cardinality: "cardinality", + feature: "feature", + operator: "operator", + predicate: "predicate", + terminal: "terminal" +}; +function vr(e) { + return j.isInstance(e, Lr.$type); +} +i(vr, "isAssignment"); +var Fo = { + $type: "BooleanLiteral", + true: "true" +}; +function od(e) { + return j.isInstance(e, Fo.$type); +} +i(od, "isBooleanLiteral"); +var Dr = { + $type: "CharacterRange", + cardinality: "cardinality", + left: "left", + lookahead: "lookahead", + parenthesized: "parenthesized", + right: "right" +}; +function ld(e) { + return j.isInstance(e, Dr.$type); +} +i(ld, "isCharacterRange"); +var Mr = { + $type: "Condition" +}; +function Ug(e) { + return j.isInstance(e, Mr.$type); +} +i(Ug, "isCondition"); +var Wi = { + $type: "Conjunction", + left: "left", + right: "right" +}; +function cd(e) { + return j.isInstance(e, Wi.$type); +} +i(cd, "isConjunction"); +var xr = { + $type: "CrossReference", + cardinality: "cardinality", + deprecatedSyntax: "deprecatedSyntax", + isMulti: "isMulti", + terminal: "terminal", + type: "type" +}; +function Ln(e) { + return j.isInstance(e, xr.$type); +} +i(Ln, "isCrossReference"); +var Vi = { + $type: "Disjunction", + left: "left", + right: "right" +}; +function ud(e) { + return j.isInstance(e, Vi.$type); +} +i(ud, "isDisjunction"); +var Go = { + $type: "EndOfFile", + cardinality: "cardinality" +}; +function fd(e) { + return j.isInstance(e, Go.$type); +} +i(fd, "isEndOfFile"); +var hr = { + $type: "Grammar", + imports: "imports", + interfaces: "interfaces", + isDeclared: "isDeclared", + name: "name", + rules: "rules", + types: "types" +}; +function zg(e) { + return j.isInstance(e, hr.$type); +} +i(zg, "isGrammar"); +var jo = { + $type: "GrammarImport", + path: "path" +}; +function Bg(e) { + return j.isInstance(e, jo.$type); +} +i(Bg, "isGrammarImport"); +var cn = { + $type: "Group", + cardinality: "cardinality", + elements: "elements", + guardCondition: "guardCondition", + predicate: "predicate" +}; +function Dn(e) { + return j.isInstance(e, cn.$type); +} +i(Dn, "isGroup"); +var Uo = { + $type: "InferredType", + name: "name" +}; +function bs(e) { + return j.isInstance(e, Uo.$type); +} +i(bs, "isInferredType"); +var Vt = { + $type: "InfixRule", + call: "call", + dataType: "dataType", + inferredType: "inferredType", + name: "name", + operators: "operators", + parameters: "parameters", + returnType: "returnType" +}; +function Ma(e) { + return j.isInstance(e, Vt.$type); +} +i(Ma, "isInfixRule"); +var Hi = { + $type: "InfixRuleOperatorList", + associativity: "associativity", + operators: "operators" +}; +function Kg(e) { + return j.isInstance(e, Hi.$type); +} +i(Kg, "isInfixRuleOperatorList"); +var zo = { + $type: "InfixRuleOperators", + precedences: "precedences" +}; +function qg(e) { + return j.isInstance(e, zo.$type); +} +i(qg, "isInfixRuleOperators"); +var $a = { + $type: "Interface", + attributes: "attributes", + name: "name", + superTypes: "superTypes" +}; +function dd(e) { + return j.isInstance(e, $a.$type); +} +i(dd, "isInterface"); +var Aa = { + $type: "Keyword", + cardinality: "cardinality", + predicate: "predicate", + value: "value" +}; +function Tr(e) { + return j.isInstance(e, Aa.$type); +} +i(Tr, "isKeyword"); +var Ea = { + $type: "NamedArgument", + calledByName: "calledByName", + parameter: "parameter", + value: "value" +}; +function Wg(e) { + return j.isInstance(e, Ea.$type); +} +i(Wg, "isNamedArgument"); +var un = { + $type: "NegatedToken", + cardinality: "cardinality", + lookahead: "lookahead", + parenthesized: "parenthesized", + terminal: "terminal" +}; +function pd(e) { + return j.isInstance(e, un.$type); +} +i(pd, "isNegatedToken"); +var Bo = { + $type: "Negation", + value: "value" +}; +function hd(e) { + return j.isInstance(e, Bo.$type); +} +i(hd, "isNegation"); +var Ko = { + $type: "NumberLiteral", + value: "value" +}; +function Vg(e) { + return j.isInstance(e, Ko.$type); +} +i(Vg, "isNumberLiteral"); +var _a = { + $type: "Parameter", + name: "name" +}; +function Hg(e) { + return j.isInstance(e, _a.$type); +} +i(Hg, "isParameter"); +var qo = { + $type: "ParameterReference", + parameter: "parameter" +}; +function md(e) { + return j.isInstance(e, qo.$type); +} +i(md, "isParameterReference"); +var Pt = { + $type: "ParserRule", + dataType: "dataType", + definition: "definition", + entry: "entry", + fragment: "fragment", + inferredType: "inferredType", + name: "name", + parameters: "parameters", + returnType: "returnType" +}; +function Je(e) { + return j.isInstance(e, Pt.$type); +} +i(Je, "isParserRule"); +var Yi = { + $type: "ReferenceType", + isMulti: "isMulti", + referenceType: "referenceType" +}; +function gd(e) { + return j.isInstance(e, Yi.$type); +} +i(gd, "isReferenceType"); +var fn = { + $type: "RegexToken", + cardinality: "cardinality", + lookahead: "lookahead", + parenthesized: "parenthesized", + regex: "regex" +}; +function yd(e) { + return j.isInstance(e, fn.$type); +} +i(yd, "isRegexToken"); +var Wo = { + $type: "ReturnType", + name: "name" +}; +function vd(e) { + return j.isInstance(e, Wo.$type); +} +i(vd, "isReturnType"); +var dn = { + $type: "RuleCall", + arguments: "arguments", + cardinality: "cardinality", + predicate: "predicate", + rule: "rule" +}; +function Rr(e) { + return j.isInstance(e, dn.$type); +} +i(Rr, "isRuleCall"); +var Ca = { + $type: "SimpleType", + primitiveType: "primitiveType", + stringType: "stringType", + typeRef: "typeRef" +}; +function bl(e) { + return j.isInstance(e, Ca.$type); +} +i(bl, "isSimpleType"); +var Vo = { + $type: "StringLiteral", + value: "value" +}; +function Yg(e) { + return j.isInstance(e, Vo.$type); +} +i(Yg, "isStringLiteral"); +var pn = { + $type: "TerminalAlternatives", + cardinality: "cardinality", + elements: "elements", + lookahead: "lookahead", + parenthesized: "parenthesized" +}; +function Td(e) { + return j.isInstance(e, pn.$type); +} +i(Td, "isTerminalAlternatives"); +var at = { + $type: "TerminalElement", + cardinality: "cardinality", + lookahead: "lookahead", + parenthesized: "parenthesized" +}; +function Xg(e) { + return j.isInstance(e, at.$type); +} +i(Xg, "isTerminalElement"); +var hn = { + $type: "TerminalGroup", + cardinality: "cardinality", + elements: "elements", + lookahead: "lookahead", + parenthesized: "parenthesized" +}; +function Rd(e) { + return j.isInstance(e, hn.$type); +} +i(Rd, "isTerminalGroup"); +var mr = { + $type: "TerminalRule", + definition: "definition", + fragment: "fragment", + hidden: "hidden", + name: "name", + type: "type" +}; +function St(e) { + return j.isInstance(e, mr.$type); +} +i(St, "isTerminalRule"); +var mn = { + $type: "TerminalRuleCall", + cardinality: "cardinality", + lookahead: "lookahead", + parenthesized: "parenthesized", + rule: "rule" +}; +function Sl(e) { + return j.isInstance(e, mn.$type); +} +i(Sl, "isTerminalRuleCall"); +var Xi = { + $type: "Type", + name: "name", + type: "type" +}; +function wl(e) { + return j.isInstance(e, Xi.$type); +} +i(wl, "isType"); +var gn = { + $type: "TypeAttribute", + defaultValue: "defaultValue", + isOptional: "isOptional", + name: "name", + type: "type" +}; +function Jg(e) { + return j.isInstance(e, gn.$type); +} +i(Jg, "isTypeAttribute"); +var yn = { + $type: "TypeDefinition" +}; +function Zg(e) { + return j.isInstance(e, yn.$type); +} +i(Zg, "isTypeDefinition"); +var Ho = { + $type: "UnionType", + types: "types" +}; +function $d(e) { + return j.isInstance(e, Ho.$type); +} +i($d, "isUnionType"); +var Ji = { + $type: "UnorderedGroup", + cardinality: "cardinality", + elements: "elements" +}; +function Il(e) { + return j.isInstance(e, Ji.$type); +} +i(Il, "isUnorderedGroup"); +var vn = { + $type: "UntilToken", + cardinality: "cardinality", + lookahead: "lookahead", + parenthesized: "parenthesized", + terminal: "terminal" +}; +function Ad(e) { + return j.isInstance(e, vn.$type); +} +i(Ad, "isUntilToken"); +var Tn = { + $type: "ValueLiteral" +}; +function Qg(e) { + return j.isInstance(e, Tn.$type); +} +i(Qg, "isValueLiteral"); +var ba = { + $type: "Wildcard", + cardinality: "cardinality", + lookahead: "lookahead", + parenthesized: "parenthesized" +}; +function Ed(e) { + return j.isInstance(e, ba.$type); +} +i(Ed, "isWildcard"); +var _d = class extends rd { + static { + i(this, "LangiumGrammarAstReflection"); + } + constructor() { + super(...arguments), this.types = { + AbstractElement: { + name: nt.$type, + properties: { + cardinality: { + name: nt.cardinality + } + }, + superTypes: [] + }, + AbstractParserRule: { + name: Ki.$type, + properties: {}, + superTypes: [Ra.$type, ut.$type] + }, + AbstractRule: { + name: Ra.$type, + properties: {}, + superTypes: [] + }, + AbstractType: { + name: ut.$type, + properties: {}, + superTypes: [] + }, + Action: { + name: Or.$type, + properties: { + cardinality: { + name: Or.cardinality + }, + feature: { + name: Or.feature + }, + inferredType: { + name: Or.inferredType + }, + operator: { + name: Or.operator + }, + type: { + name: Or.type, + referenceType: ut.$type + } + }, + superTypes: [nt.$type] + }, + Alternatives: { + name: qi.$type, + properties: { + cardinality: { + name: qi.cardinality + }, + elements: { + name: qi.elements, + defaultValue: [] + } + }, + superTypes: [nt.$type] + }, + ArrayLiteral: { + name: Mo.$type, + properties: { + elements: { + name: Mo.elements, + defaultValue: [] + } + }, + superTypes: [Tn.$type] + }, + ArrayType: { + name: xo.$type, + properties: { + elementType: { + name: xo.elementType + } + }, + superTypes: [yn.$type] + }, + Assignment: { + name: Lr.$type, + properties: { + cardinality: { + name: Lr.cardinality + }, + feature: { + name: Lr.feature + }, + operator: { + name: Lr.operator + }, + predicate: { + name: Lr.predicate + }, + terminal: { + name: Lr.terminal + } + }, + superTypes: [nt.$type] + }, + BooleanLiteral: { + name: Fo.$type, + properties: { + true: { + name: Fo.true, + defaultValue: !1 + } + }, + superTypes: [Mr.$type, Tn.$type] + }, + CharacterRange: { + name: Dr.$type, + properties: { + cardinality: { + name: Dr.cardinality + }, + left: { + name: Dr.left + }, + lookahead: { + name: Dr.lookahead + }, + parenthesized: { + name: Dr.parenthesized, + defaultValue: !1 + }, + right: { + name: Dr.right + } + }, + superTypes: [at.$type] + }, + Condition: { + name: Mr.$type, + properties: {}, + superTypes: [] + }, + Conjunction: { + name: Wi.$type, + properties: { + left: { + name: Wi.left + }, + right: { + name: Wi.right + } + }, + superTypes: [Mr.$type] + }, + CrossReference: { + name: xr.$type, + properties: { + cardinality: { + name: xr.cardinality + }, + deprecatedSyntax: { + name: xr.deprecatedSyntax, + defaultValue: !1 + }, + isMulti: { + name: xr.isMulti, + defaultValue: !1 + }, + terminal: { + name: xr.terminal + }, + type: { + name: xr.type, + referenceType: ut.$type + } + }, + superTypes: [nt.$type] + }, + Disjunction: { + name: Vi.$type, + properties: { + left: { + name: Vi.left + }, + right: { + name: Vi.right + } + }, + superTypes: [Mr.$type] + }, + EndOfFile: { + name: Go.$type, + properties: { + cardinality: { + name: Go.cardinality + } + }, + superTypes: [nt.$type] + }, + Grammar: { + name: hr.$type, + properties: { + imports: { + name: hr.imports, + defaultValue: [] + }, + interfaces: { + name: hr.interfaces, + defaultValue: [] + }, + isDeclared: { + name: hr.isDeclared, + defaultValue: !1 + }, + name: { + name: hr.name + }, + rules: { + name: hr.rules, + defaultValue: [] + }, + types: { + name: hr.types, + defaultValue: [] + } + }, + superTypes: [] + }, + GrammarImport: { + name: jo.$type, + properties: { + path: { + name: jo.path + } + }, + superTypes: [] + }, + Group: { + name: cn.$type, + properties: { + cardinality: { + name: cn.cardinality + }, + elements: { + name: cn.elements, + defaultValue: [] + }, + guardCondition: { + name: cn.guardCondition + }, + predicate: { + name: cn.predicate + } + }, + superTypes: [nt.$type] + }, + InferredType: { + name: Uo.$type, + properties: { + name: { + name: Uo.name + } + }, + superTypes: [ut.$type] + }, + InfixRule: { + name: Vt.$type, + properties: { + call: { + name: Vt.call + }, + dataType: { + name: Vt.dataType + }, + inferredType: { + name: Vt.inferredType + }, + name: { + name: Vt.name + }, + operators: { + name: Vt.operators + }, + parameters: { + name: Vt.parameters, + defaultValue: [] + }, + returnType: { + name: Vt.returnType, + referenceType: ut.$type + } + }, + superTypes: [Ki.$type] + }, + InfixRuleOperatorList: { + name: Hi.$type, + properties: { + associativity: { + name: Hi.associativity + }, + operators: { + name: Hi.operators, + defaultValue: [] + } + }, + superTypes: [] + }, + InfixRuleOperators: { + name: zo.$type, + properties: { + precedences: { + name: zo.precedences, + defaultValue: [] + } + }, + superTypes: [] + }, + Interface: { + name: $a.$type, + properties: { + attributes: { + name: $a.attributes, + defaultValue: [] + }, + name: { + name: $a.name + }, + superTypes: { + name: $a.superTypes, + defaultValue: [], + referenceType: ut.$type + } + }, + superTypes: [ut.$type] + }, + Keyword: { + name: Aa.$type, + properties: { + cardinality: { + name: Aa.cardinality + }, + predicate: { + name: Aa.predicate + }, + value: { + name: Aa.value + } + }, + superTypes: [nt.$type] + }, + NamedArgument: { + name: Ea.$type, + properties: { + calledByName: { + name: Ea.calledByName, + defaultValue: !1 + }, + parameter: { + name: Ea.parameter, + referenceType: _a.$type + }, + value: { + name: Ea.value + } + }, + superTypes: [] + }, + NegatedToken: { + name: un.$type, + properties: { + cardinality: { + name: un.cardinality + }, + lookahead: { + name: un.lookahead + }, + parenthesized: { + name: un.parenthesized, + defaultValue: !1 + }, + terminal: { + name: un.terminal + } + }, + superTypes: [at.$type] + }, + Negation: { + name: Bo.$type, + properties: { + value: { + name: Bo.value + } + }, + superTypes: [Mr.$type] + }, + NumberLiteral: { + name: Ko.$type, + properties: { + value: { + name: Ko.value + } + }, + superTypes: [Tn.$type] + }, + Parameter: { + name: _a.$type, + properties: { + name: { + name: _a.name + } + }, + superTypes: [] + }, + ParameterReference: { + name: qo.$type, + properties: { + parameter: { + name: qo.parameter, + referenceType: _a.$type + } + }, + superTypes: [Mr.$type] + }, + ParserRule: { + name: Pt.$type, + properties: { + dataType: { + name: Pt.dataType + }, + definition: { + name: Pt.definition + }, + entry: { + name: Pt.entry, + defaultValue: !1 + }, + fragment: { + name: Pt.fragment, + defaultValue: !1 + }, + inferredType: { + name: Pt.inferredType + }, + name: { + name: Pt.name + }, + parameters: { + name: Pt.parameters, + defaultValue: [] + }, + returnType: { + name: Pt.returnType, + referenceType: ut.$type + } + }, + superTypes: [Ki.$type] + }, + ReferenceType: { + name: Yi.$type, + properties: { + isMulti: { + name: Yi.isMulti, + defaultValue: !1 + }, + referenceType: { + name: Yi.referenceType + } + }, + superTypes: [yn.$type] + }, + RegexToken: { + name: fn.$type, + properties: { + cardinality: { + name: fn.cardinality + }, + lookahead: { + name: fn.lookahead + }, + parenthesized: { + name: fn.parenthesized, + defaultValue: !1 + }, + regex: { + name: fn.regex + } + }, + superTypes: [at.$type] + }, + ReturnType: { + name: Wo.$type, + properties: { + name: { + name: Wo.name + } + }, + superTypes: [] + }, + RuleCall: { + name: dn.$type, + properties: { + arguments: { + name: dn.arguments, + defaultValue: [] + }, + cardinality: { + name: dn.cardinality + }, + predicate: { + name: dn.predicate + }, + rule: { + name: dn.rule, + referenceType: Ra.$type + } + }, + superTypes: [nt.$type] + }, + SimpleType: { + name: Ca.$type, + properties: { + primitiveType: { + name: Ca.primitiveType + }, + stringType: { + name: Ca.stringType + }, + typeRef: { + name: Ca.typeRef, + referenceType: ut.$type + } + }, + superTypes: [yn.$type] + }, + StringLiteral: { + name: Vo.$type, + properties: { + value: { + name: Vo.value + } + }, + superTypes: [Tn.$type] + }, + TerminalAlternatives: { + name: pn.$type, + properties: { + cardinality: { + name: pn.cardinality + }, + elements: { + name: pn.elements, + defaultValue: [] + }, + lookahead: { + name: pn.lookahead + }, + parenthesized: { + name: pn.parenthesized, + defaultValue: !1 + } + }, + superTypes: [at.$type] + }, + TerminalElement: { + name: at.$type, + properties: { + cardinality: { + name: at.cardinality + }, + lookahead: { + name: at.lookahead + }, + parenthesized: { + name: at.parenthesized, + defaultValue: !1 + } + }, + superTypes: [nt.$type] + }, + TerminalGroup: { + name: hn.$type, + properties: { + cardinality: { + name: hn.cardinality + }, + elements: { + name: hn.elements, + defaultValue: [] + }, + lookahead: { + name: hn.lookahead + }, + parenthesized: { + name: hn.parenthesized, + defaultValue: !1 + } + }, + superTypes: [at.$type] + }, + TerminalRule: { + name: mr.$type, + properties: { + definition: { + name: mr.definition + }, + fragment: { + name: mr.fragment, + defaultValue: !1 + }, + hidden: { + name: mr.hidden, + defaultValue: !1 + }, + name: { + name: mr.name + }, + type: { + name: mr.type + } + }, + superTypes: [Ra.$type] + }, + TerminalRuleCall: { + name: mn.$type, + properties: { + cardinality: { + name: mn.cardinality + }, + lookahead: { + name: mn.lookahead + }, + parenthesized: { + name: mn.parenthesized, + defaultValue: !1 + }, + rule: { + name: mn.rule, + referenceType: mr.$type + } + }, + superTypes: [at.$type] + }, + Type: { + name: Xi.$type, + properties: { + name: { + name: Xi.name + }, + type: { + name: Xi.type + } + }, + superTypes: [ut.$type] + }, + TypeAttribute: { + name: gn.$type, + properties: { + defaultValue: { + name: gn.defaultValue + }, + isOptional: { + name: gn.isOptional, + defaultValue: !1 + }, + name: { + name: gn.name + }, + type: { + name: gn.type + } + }, + superTypes: [] + }, + TypeDefinition: { + name: yn.$type, + properties: {}, + superTypes: [] + }, + UnionType: { + name: Ho.$type, + properties: { + types: { + name: Ho.types, + defaultValue: [] + } + }, + superTypes: [yn.$type] + }, + UnorderedGroup: { + name: Ji.$type, + properties: { + cardinality: { + name: Ji.cardinality + }, + elements: { + name: Ji.elements, + defaultValue: [] + } + }, + superTypes: [nt.$type] + }, + UntilToken: { + name: vn.$type, + properties: { + cardinality: { + name: vn.cardinality + }, + lookahead: { + name: vn.lookahead + }, + parenthesized: { + name: vn.parenthesized, + defaultValue: !1 + }, + terminal: { + name: vn.terminal + } + }, + superTypes: [at.$type] + }, + ValueLiteral: { + name: Tn.$type, + properties: {}, + superTypes: [] + }, + Wildcard: { + name: ba.$type, + properties: { + cardinality: { + name: ba.cardinality + }, + lookahead: { + name: ba.lookahead + }, + parenthesized: { + name: ba.parenthesized, + defaultValue: !1 + } + }, + superTypes: [at.$type] + } + }; + } +}, j = new _d(); +function ey(e) { + let t = e, r = !1; + for (; t; ) { + const n = Pn(t.grammarSource, Je); + if (n && n.dataType) + t = t.container, r = !0; + else return r ? t : void 0; + } +} +i(ey, "getDatatypeNode"); +function xa(e) { + return new Oa(e, (t) => yr(t) ? t.content : [], { includeRoot: !0 }); +} +i(xa, "streamCst"); +function ty(e) { + return xa(e).filter(kn); +} +i(ty, "flattenCst"); +function Cd(e, t) { + for (; e.container; ) + if (e = e.container, e === t) + return !0; + return !1; +} +i(Cd, "isChildNode"); +function os(e) { + return { + start: { + character: e.startColumn - 1, + line: e.startLine - 1 + }, + end: { + character: e.endColumn, + // endColumn uses the correct index + line: e.endLine - 1 + } + }; +} +i(os, "tokenToRange"); +function Fa(e) { + if (!e) + return; + const { offset: t, end: r, range: n } = e; + return { + range: n, + offset: t, + end: r, + length: r - t + }; +} +i(Fa, "toDocumentSegment"); +var Yt; +(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"; +})(Yt || (Yt = {})); +function bd(e, t) { + if (e.end.line < t.start.line || e.end.line === t.start.line && e.end.character <= t.start.character) + return Yt.Before; + if (e.start.line > t.end.line || e.start.line === t.end.line && e.start.character >= t.end.character) + return Yt.After; + const r = e.start.line > t.start.line || e.start.line === t.start.line && e.start.character >= t.start.character, n = e.end.line < t.end.line || e.end.line === t.end.line && e.end.character <= t.end.character; + return r && n ? Yt.Inside : r ? Yt.OverlapBack : n ? Yt.OverlapFront : Yt.Outside; +} +i(bd, "compareRange"); +function Sd(e, t) { + return bd(e, t) > Yt.After; +} +i(Sd, "inRange"); +var wd = /^[\w\p{L}]$/u; +function ry(e, t, r = wd) { + if (e) { + if (t > 0) { + const n = t - e.offset, a = e.text.charAt(n); + r.test(a) || t--; + } + return Nl(e, t); + } +} +i(ry, "findDeclarationNodeAtOffset"); +function Id(e, t) { + if (e) { + const r = Pd(e, !0); + if (r && Yo(r, t)) + return r; + if (El(e)) { + const n = e.content.findIndex((a) => !a.hidden); + for (let a = n - 1; a >= 0; a--) { + const s = e.content[a]; + if (Yo(s, t)) + return s; + } + } + } +} +i(Id, "findCommentNode"); +function Yo(e, t) { + return kn(e) && t.includes(e.tokenType.name); +} +i(Yo, "isCommentNode"); +function Nl(e, t) { + if (kn(e)) + return e; + if (yr(e)) { + const r = kd(e, t, !1); + if (r) + return Nl(r, t); + } +} +i(Nl, "findLeafNodeAtOffset"); +function Nd(e, t) { + if (kn(e)) + return e; + if (yr(e)) { + const r = kd(e, t, !0); + if (r) + return Nd(r, t); + } +} +i(Nd, "findLeafNodeBeforeOffset"); +function kd(e, t, r) { + let n = 0, a = e.content.length - 1, s; + for (; n <= a; ) { + const o = Math.floor((n + a) / 2), l = e.content[o]; + if (l.offset <= t && l.end > t) + return l; + l.end <= t ? (s = r ? l : void 0, n = o + 1) : a = o - 1; + } + return s; +} +i(kd, "binarySearch"); +function Pd(e, t = !0) { + for (; e.container; ) { + const r = e.container; + let n = r.content.indexOf(e); + for (; n > 0; ) { + n--; + const a = r.content[n]; + if (t || !a.hidden) + return a; + } + e = r; + } +} +i(Pd, "getPreviousNode"); +function ny(e, t = !0) { + for (; e.container; ) { + const r = e.container; + let n = r.content.indexOf(e); + const a = r.content.length - 1; + for (; n < a; ) { + n++; + const s = r.content[n]; + if (t || !s.hidden) + return s; + } + e = r; + } +} +i(ny, "getNextNode"); +function ay(e) { + if (e.range.start.character === 0) + return e; + const t = e.range.start.line; + let r = e, n; + for (; e.container; ) { + const a = e.container, s = n ?? a.content.indexOf(e); + if (s === 0 ? (e = a, n = void 0) : (n = s - 1, e = a.content[n]), e.range.start.line !== t) + break; + r = e; + } + return r; +} +i(ay, "getStartlineNode"); +function iy(e, t) { + const r = sy(e, t); + return r ? r.parent.content.slice(r.a + 1, r.b) : []; +} +i(iy, "getInteriorNodes"); +function sy(e, t) { + const r = ef(e), n = ef(t); + let a; + for (let s = 0; s < r.length && s < n.length; s++) { + const o = r[s], l = n[s]; + if (o.parent === l.parent) + a = { + parent: o.parent, + a: o.index, + b: l.index + }; + else + break; + } + return a; +} +i(sy, "getCommonParent"); +function ef(e) { + const t = []; + for (; e.container; ) { + const r = e.container, n = r.content.indexOf(e); + t.push({ + parent: r, + index: n + }), e = r; + } + return t.reverse(); +} +i(ef, "getParentChain"); +var Od = {}; +Br(Od, { + findAssignment: () => Wd, + findNameAssignment: () => Fl, + findNodeForKeyword: () => qd, + findNodeForProperty: () => Dl, + findNodesForKeyword: () => hy, + findNodesForKeywordInternal: () => xl, + findNodesForProperty: () => Kd, + getActionAtElement: () => Hd, + getActionType: () => Xd, + getAllReachableRules: () => Ll, + getAllRulesUsedForCrossReferences: () => py, + getCrossReferenceTerminal: () => zd, + getEntryRule: () => Gd, + getExplicitRuleType: () => ws, + getHiddenRules: () => jd, + getRuleType: () => Jd, + getRuleTypeName: () => Ty, + getTypeName: () => bn, + isArrayCardinality: () => gy, + isArrayOperator: () => yy, + isCommentTerminal: () => Bd, + isDataType: () => vy, + isDataTypeRule: () => Ss, + isOptionalCardinality: () => my, + terminalRegex: () => Is +}); +var kl = class extends Error { + static { + i(this, "ErrorWithLocation"); + } + constructor(e, t) { + super(e ? `${t} at ${e.range.start.line}:${e.range.start.character}` : t); + } +}; +function Kr(e, t = "Error: Got unexpected value.") { + throw new Error(t); +} +i(Kr, "assertUnreachable"); +function Ld(e, t = "Error: Condition is violated.") { + if (!e) + throw new Error(t); +} +i(Ld, "assertCondition"); +var Dd = {}; +Br(Dd, { + NEWLINE_REGEXP: () => cy, + escapeRegExp: () => Wa, + getTerminalParts: () => fy, + isMultilineComment: () => Md, + isWhitespace: () => Ol, + partialMatches: () => xd, + partialRegExp: () => Fd, + whitespaceCharacters: () => dy +}); +function K(e) { + return e.charCodeAt(0); +} +i(K, "cc"); +function vo(e, t) { + Array.isArray(e) ? e.forEach(function(r) { + t.push(r); + }) : t.push(e); +} +i(vo, "insertToSet"); +function pa(e, t) { + if (e[t] === !0) + throw "duplicate flag " + t; + e[t], e[t] = !0; +} +i(pa, "addFlag"); +function tn(e) { + if (e === void 0) + throw Error("Internal Error - Should never get here!"); + return !0; +} +i(tn, "ASSERT_EXISTS"); +function oy() { + throw Error("Internal Error - Should never get here!"); +} +i(oy, "ASSERT_NEVER_REACH_HERE"); +function tf(e) { + return e.type === "Character"; +} +i(tf, "isCharacter"); +var Xo = []; +for (let e = K("0"); e <= K("9"); e++) + Xo.push(e); +var Jo = [K("_")].concat(Xo); +for (let e = K("a"); e <= K("z"); e++) + Jo.push(e); +for (let e = K("A"); e <= K("Z"); e++) + Jo.push(e); +var xh = [ + K(" "), + K("\f"), + K(` +`), + K("\r"), + K(" "), + K("\v"), + K(" "), + K(" "), + K(" "), + K(" "), + K(" "), + K(" "), + K(" "), + K(" "), + K(" "), + K(" "), + K(" "), + K(" "), + K(" "), + K(" "), + K("\u2028"), + K("\u2029"), + K(" "), + K(" "), + K(" "), + K("\uFEFF") +], Mw = /[0-9a-fA-F]/, qs = /[0-9]/, xw = /[1-9]/, ly = class { + static { + i(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("/"); + const t = this.disjunction(); + this.consumeChar("/"); + const 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": + pa(r, "global"); + break; + case "i": + pa(r, "ignoreCase"); + break; + case "m": + pa(r, "multiLine"); + break; + case "u": + pa(r, "unicode"); + break; + case "y": + pa(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() { + const 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() { + const 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() { + const e = this.idx; + switch (this.popChar()) { + case "^": + return { + type: "StartAnchor", + loc: this.loc(e) + }; + case "$": + return { type: "EndAnchor", loc: this.loc(e) }; + // '\b' or '\B' + 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"); + // '(?=' or '(?!' + 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; + } + } + tn(t); + const r = this.disjunction(); + return this.consumeChar(")"), { + type: t, + value: r, + loc: this.loc(e) + }; + } + return oy(); + } + quantifier(e = !1) { + let t; + const 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 "{": + const 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; + tn(t); + break; + } + if (!(e === !0 && t === void 0) && tn(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; + const 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; + } + if (e === void 0 && this.isPatternCharacter() && (e = this.patternCharacter()), tn(e)) + return e.loc = this.loc(t), this.isQuantifier() && (e.quantifier = this.quantifier()), e; + } + 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 = Xo; + break; + case "D": + e = Xo, t = !0; + break; + case "s": + e = xh; + break; + case "S": + e = xh, t = !0; + break; + case "w": + e = Jo; + break; + case "W": + e = Jo, t = !0; + break; + } + if (tn(e)) + return { type: "Set", value: e, complement: t }; + } + 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; + } + if (tn(e)) + return { type: "Character", value: e }; + } + controlLetterEscapeAtom() { + this.consumeChar("c"); + const 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() { + const e = this.popChar(); + return { type: "Character", value: K(e) }; + } + classPatternCharacterAtom() { + switch (this.peekChar()) { + // istanbul ignore next + case ` +`: + // istanbul ignore next + case "\r": + // istanbul ignore next + case "\u2028": + // istanbul ignore next + case "\u2029": + // istanbul ignore next + case "\\": + // istanbul ignore next + case "]": + throw Error("TBD"); + default: + const e = this.popChar(); + return { type: "Character", value: K(e) }; + } + } + characterClass() { + const e = []; + let t = !1; + for (this.consumeChar("["), this.peekChar(0) === "^" && (this.consumeChar("^"), t = !0); this.isClassAtom(); ) { + const r = this.classAtom(); + if (r.type, tf(r) && this.isRangeDash()) { + this.consumeChar("-"); + const n = this.classAtom(); + if (n.type, tf(n)) { + if (n.value < r.value) + throw Error("Range out of order in character class"); + e.push({ from: r.value, to: n.value }); + } else + vo(r.value, e), e.push(K("-")), vo(n.value, e); + } else + vo(r.value, e); + } + return this.consumeChar("]"), { type: "Set", complement: t, value: e }; + } + classAtom() { + switch (this.peekChar()) { + // istanbul ignore next + case "]": + // istanbul ignore next + case ` +`: + // istanbul ignore next + case "\r": + // istanbul ignore next + case "\u2028": + // istanbul ignore next + case "\u2029": + throw Error("TBD"); + case "\\": + return this.classEscape(); + default: + return this.classPatternCharacterAtom(); + } + } + classEscape() { + switch (this.consumeChar("\\"), this.peekChar()) { + // Matches a backspace. + // (Not to be confused with \b word boundary outside characterClass) + case "b": + return this.consumeChar("b"), { type: "Character", value: K("\b") }; + 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(); + } + } + group() { + let e = !0; + switch (this.consumeChar("("), this.peekChar(0)) { + case "?": + this.consumeChar("?"), this.consumeChar(":"), e = !1; + break; + default: + this.groupIdx++; + break; + } + const t = this.disjunction(); + this.consumeChar(")"); + const r = { + type: "Group", + capturing: e, + value: t + }; + return e && (r.idx = this.groupIdx), r; + } + positiveInteger() { + let e = this.popChar(); + if (xw.test(e) === !1) + throw Error("Expecting a positive integer"); + for (; qs.test(this.peekChar(0)); ) + e += this.popChar(); + return parseInt(e, 10); + } + integerIncludingZero() { + let e = this.popChar(); + if (qs.test(e) === !1) + throw Error("Expecting an integer"); + for (; qs.test(this.peekChar(0)); ) + e += this.popChar(); + return parseInt(e, 10); + } + patternCharacter() { + const e = this.popChar(); + switch (e) { + // istanbul ignore next + case ` +`: + // istanbul ignore next + case "\r": + // istanbul ignore next + case "\u2028": + // istanbul ignore next + case "\u2029": + // istanbul ignore next + case "^": + // istanbul ignore next + case "$": + // istanbul ignore next + case "\\": + // istanbul ignore next + case ".": + // istanbul ignore next + case "*": + // istanbul ignore next + case "+": + // istanbul ignore next + case "?": + // istanbul ignore next + case "(": + // istanbul ignore next + case ")": + // istanbul ignore next + case "[": + // istanbul ignore next + case "|": + throw Error("TBD"); + default: + return { type: "Character", value: K(e) }; + } + } + isRegExpFlag() { + switch (this.peekChar(0)) { + case "g": + case "i": + case "m": + case "u": + case "y": + return !0; + default: + return !1; + } + } + isRangeDash() { + return this.peekChar() === "-" && this.isClassAtom(1); + } + isDigit() { + return qs.test(this.peekChar(0)); + } + isClassAtom(e = 0) { + switch (this.peekChar(e)) { + case "]": + case ` +`: + case "\r": + case "\u2028": + case "\u2029": + return !1; + default: + return !0; + } + } + isTerm() { + return this.isAtom() || this.isAssertion(); + } + isAtom() { + if (this.isPatternCharacter()) + return !0; + switch (this.peekChar(0)) { + case ".": + case "\\": + // atomEscape + case "[": + // characterClass + // TODO: isAtom must be called before isAssertion - disambiguate + case "(": + return !0; + default: + return !1; + } + } + isAssertion() { + switch (this.peekChar(0)) { + case "^": + case "$": + return !0; + // '\b' or '\B' + case "\\": + switch (this.peekChar(1)) { + case "b": + case "B": + return !0; + default: + return !1; + } + // '(?=' or '(?!' or `(?<=` or `(?= this.input.length) + throw Error("Unexpected end of input"); + this.idx++; + } + loc(e) { + return { begin: e, end: this.idx }; + } +}, Pl = class { + static { + i(this, "BaseRegExpVisitor"); + } + visitChildren(e) { + for (const t in e) { + const 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) { + } + // Assertion + visitStartAnchor(e) { + } + visitEndAnchor(e) { + } + visitWordBoundary(e) { + } + visitNonWordBoundary(e) { + } + visitLookahead(e) { + } + visitNegativeLookahead(e) { + } + visitLookbehind(e) { + } + visitNegativeLookbehind(e) { + } + // atoms + visitCharacter(e) { + } + visitSet(e) { + } + visitGroup(e) { + } + visitGroupBackReference(e) { + } + visitQuantifier(e) { + } +}, cy = /\r?\n/gm, uy = new ly(), Fw = class extends Pl { + static { + i(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) { + const t = String.fromCharCode(e.value); + if (!this.multiline && t === ` +` && (this.multiline = !0), e.quantifier) + this.isStarting = !1, this.endRegexpStack = []; + else { + const r = Wa(t); + this.endRegexpStack.push(r), this.isStarting && (this.startRegexp += r); + } + } + visitSet(e) { + if (!this.multiline) { + const 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 { + const 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); + } +}, Rn = new Fw(); +function fy(e) { + try { + typeof e != "string" && (e = e.source), e = `/${e}/`; + const t = uy.pattern(e), r = []; + for (const n of t.value.value) + Rn.reset(e), Rn.visit(n), r.push({ + start: Rn.startRegexp, + end: Rn.endRegex + }); + return r; + } catch { + return []; + } +} +i(fy, "getTerminalParts"); +function Md(e) { + try { + return typeof e == "string" && (e = new RegExp(e)), e = e.toString(), Rn.reset(e), Rn.visit(uy.pattern(e)), Rn.multiline; + } catch { + return !1; + } +} +i(Md, "isMultilineComment"); +var dy = `\f +\r \v              \u2028\u2029   \uFEFF`.split(""); +function Ol(e) { + const t = typeof e == "string" ? new RegExp(e) : e; + return dy.some((r) => t.test(r)); +} +i(Ol, "isWhitespace"); +function Wa(e) { + return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); +} +i(Wa, "escapeRegExp"); +function xd(e, t) { + const r = Fd(e), n = t.match(r); + return !!n && n[0].length > 0; +} +i(xd, "partialMatches"); +function Fd(e) { + typeof e == "string" && (e = new RegExp(e)); + const t = e, r = e.source; + let n = 0; + function a() { + let s = "", o; + function l(u) { + s += r.substr(n, u), n += u; + } + i(l, "appendRaw"); + function c(u) { + s += "(?:" + r.substr(n, u) + "|$)", n += u; + } + for (i(c, "appendOptional"); n < r.length; ) + switch (r[n]) { + case "\\": + switch (r[n + 1]) { + case "c": + c(3); + break; + case "x": + c(4); + break; + case "u": + t.unicode ? r[n + 2] === "{" ? c(r.indexOf("}", n) - n + 1) : c(6) : c(2); + break; + case "p": + case "P": + t.unicode ? c(r.indexOf("}", n) - n + 1) : c(2); + break; + case "k": + c(r.indexOf(">", n) - n + 1); + break; + default: + c(2); + break; + } + break; + case "[": + o = /\[(?:\\.|.)*?\]/g, o.lastIndex = n, o = o.exec(r) || [], c(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) : c(1); + break; + case "(": + if (r[n + 1] === "?") + switch (r[n + 2]) { + case ":": + s += "(?:", n += 3, s += a() + "|$)"; + break; + case "=": + s += "(?=", n += 3, s += a() + ")"; + break; + case "!": + o = n, n += 3, a(), s += r.substr(o, n - o); + break; + case "<": + switch (r[n + 3]) { + case "=": + case "!": + o = n, n += 4, a(), s += r.substr(o, n - o); + break; + default: + l(r.indexOf(">", n) - n + 1), s += a() + "|$)"; + break; + } + break; + } + else + l(1), s += a() + "|$)"; + break; + case ")": + return ++n, s; + default: + c(1); + break; + } + return s; + } + return i(a, "process"), new RegExp(a(), e.flags); +} +i(Fd, "partialRegExp"); +function Gd(e) { + return e.rules.find((t) => Je(t) && t.entry); +} +i(Gd, "getEntryRule"); +function jd(e) { + return e.rules.filter((t) => St(t) && t.hidden); +} +i(jd, "getHiddenRules"); +function Ll(e, t) { + const r = /* @__PURE__ */ new Set(), n = Gd(e); + if (!n) + return new Set(e.rules); + const a = [n].concat(jd(e)); + for (const o of a) + Ud(o, r, t); + const s = /* @__PURE__ */ new Set(); + for (const o of e.rules) + (r.has(o.name) || St(o) && o.hidden) && s.add(o); + return s; +} +i(Ll, "getAllReachableRules"); +function Ud(e, t, r) { + t.add(e.name), Sr(e).forEach((n) => { + if (Rr(n) || r && Sl(n)) { + const a = n.rule.ref; + a && !t.has(a.name) && Ud(a, t, r); + } + }); +} +i(Ud, "ruleDfs"); +function py(e) { + const t = /* @__PURE__ */ new Set(); + return Sr(e).forEach((r) => { + Ln(r) && (Je(r.type.ref) && t.add(r.type.ref), bs(r.type.ref) && Je(r.type.ref.$container) && t.add(r.type.ref.$container)); + }), t; +} +i(py, "getAllRulesUsedForCrossReferences"); +function zd(e) { + if (e.terminal) + return e.terminal; + if (e.type.ref) + return Fl(e.type.ref)?.terminal; +} +i(zd, "getCrossReferenceTerminal"); +function Bd(e) { + return e.hidden && !Ol(Is(e)); +} +i(Bd, "isCommentTerminal"); +function Kd(e, t) { + return !e || !t ? [] : Ml(e, t, e.astNode, !0); +} +i(Kd, "findNodesForProperty"); +function Dl(e, t, r) { + if (!e || !t) + return; + const n = Ml(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]; +} +i(Dl, "findNodeForProperty"); +function Ml(e, t, r, n) { + if (!n) { + const a = Pn(e.grammarSource, vr); + if (a && a.feature === t) + return [e]; + } + return yr(e) && e.astNode === r ? e.content.flatMap((a) => Ml(a, t, r, !1)) : []; +} +i(Ml, "findNodesForPropertyInternal"); +function hy(e, t) { + return e ? xl(e, t, e?.astNode) : []; +} +i(hy, "findNodesForKeyword"); +function qd(e, t, r) { + if (!e) + return; + const n = xl(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]; +} +i(qd, "findNodeForKeyword"); +function xl(e, t, r) { + if (e.astNode !== r) + return []; + if (Tr(e.grammarSource) && e.grammarSource.value === t) + return [e]; + const n = xa(e).iterator(); + let a; + const s = []; + do + if (a = n.next(), !a.done) { + const o = a.value; + o.astNode === r ? Tr(o.grammarSource) && o.grammarSource.value === t && s.push(o) : n.prune(); + } + while (!a.done); + return s; +} +i(xl, "findNodesForKeywordInternal"); +function Wd(e) { + const t = e.astNode; + for (; t === e.container?.astNode; ) { + const r = Pn(e.grammarSource, vr); + if (r) + return r; + e = e.container; + } +} +i(Wd, "findAssignment"); +function Fl(e) { + let t = e; + return bs(t) && (Fr(t.$container) ? t = t.$container.$container : On(t.$container) ? t = t.$container : Kr(t.$container)), Vd(e, t, /* @__PURE__ */ new Map()); +} +i(Fl, "findNameAssignment"); +function Vd(e, t, r) { + function n(a, s) { + let o; + return Pn(a, vr) || (o = Vd(s, s, r)), r.set(e, o), o; + } + if (i(n, "go"), r.has(e)) + return r.get(e); + r.set(e, void 0); + for (const a of Sr(t)) { + if (vr(a) && a.feature.toLowerCase() === "name") + return r.set(e, a), a; + if (Rr(a) && Je(a.rule.ref)) + return n(a, a.rule.ref); + if (bl(a) && a.typeRef?.ref) + return n(a, a.typeRef.ref); + } +} +i(Vd, "findNameAssignmentInternal"); +function Hd(e) { + const t = e.$container; + if (Dn(t)) { + const r = t.elements, n = r.indexOf(e); + for (let a = n - 1; a >= 0; a--) { + const s = r[a]; + if (Fr(s)) + return s; + { + const o = Sr(r[a]).find(Fr); + if (o) + return o; + } + } + } + if (_l(t)) + return Hd(t); +} +i(Hd, "getActionAtElement"); +function my(e, t) { + return e === "?" || e === "*" || Dn(t) && !!t.guardCondition; +} +i(my, "isOptionalCardinality"); +function gy(e) { + return e === "*" || e === "+"; +} +i(gy, "isArrayCardinality"); +function yy(e) { + return e === "+="; +} +i(yy, "isArrayOperator"); +function Ss(e) { + return Yd(e, /* @__PURE__ */ new Set()); +} +i(Ss, "isDataTypeRule"); +function Yd(e, t) { + if (t.has(e)) + return !0; + t.add(e); + for (const r of Sr(e)) + if (Rr(r)) { + if (!r.rule.ref || Je(r.rule.ref) && !Yd(r.rule.ref, t) || Ma(r.rule.ref)) + return !1; + } else { + if (vr(r)) + return !1; + if (Fr(r)) + return !1; + } + return !!e.definition; +} +i(Yd, "isDataTypeRuleInternal"); +function vy(e) { + return Zo(e.type, /* @__PURE__ */ new Set()); +} +i(vy, "isDataType"); +function Zo(e, t) { + if (t.has(e)) + return !0; + if (t.add(e), sd(e)) + return !1; + if (gd(e)) + return !1; + if ($d(e)) + return e.types.every((r) => Zo(r, t)); + if (bl(e)) { + if (e.primitiveType !== void 0) + return !0; + if (e.stringType !== void 0) + return !0; + if (e.typeRef !== void 0) { + const r = e.typeRef.ref; + return wl(r) ? Zo(r.type, t) : !1; + } else + return !1; + } else + return !1; +} +i(Zo, "isDataTypeInternal"); +function ws(e) { + if (!St(e)) { + if (e.inferredType) + return e.inferredType.name; + if (e.dataType) + return e.dataType; + if (e.returnType) { + const t = e.returnType.ref; + if (t) + return t.name; + } + } +} +i(ws, "getExplicitRuleType"); +function bn(e) { + if (On(e)) + return Je(e) && Ss(e) ? e.name : ws(e) ?? e.name; + if (dd(e) || wl(e) || vd(e)) + return e.name; + if (Fr(e)) { + const t = Xd(e); + if (t) + return t; + } else if (bs(e)) + return e.name; + throw new Error("Cannot get name of Unknown Type"); +} +i(bn, "getTypeName"); +function Xd(e) { + if (e.inferredType) + return e.inferredType.name; + if (e.type?.ref) + return bn(e.type.ref); +} +i(Xd, "getActionType"); +function Ty(e) { + return St(e) ? e.type?.name ?? "string" : Je(e) && Ss(e) ? e.name : ws(e) ?? e.name; +} +i(Ty, "getRuleTypeName"); +function Jd(e) { + return St(e) ? e.type?.name ?? "string" : ws(e) ?? e.name; +} +i(Jd, "getRuleType"); +function Is(e) { + const t = { + s: !1, + i: !1, + u: !1 + }, r = Mn(e.definition, t), n = Object.entries(t).filter(([, a]) => a).map(([a]) => a).join(""); + return new RegExp(r, n); +} +i(Is, "terminalRegex"); +var Zd = /[\s\S]/.source; +function Mn(e, t) { + if (Td(e)) + return Ry(e); + if (Rd(e)) + return $y(e); + if (ld(e)) + return _y(e); + if (Sl(e)) { + const r = e.rule.ref; + if (!r) + throw new Error("Missing rule reference."); + return Qt(Mn(r.definition), { + cardinality: e.cardinality, + lookahead: e.lookahead, + parenthesized: e.parenthesized + }); + } else { + if (pd(e)) + return Ey(e); + if (Ad(e)) + return Ay(e); + if (yd(e)) { + const 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")), Qt(n, { + cardinality: e.cardinality, + lookahead: e.lookahead, + parenthesized: e.parenthesized, + wrap: !1 + }); + } else { + if (Ed(e)) + return Qt(Zd, { + cardinality: e.cardinality, + lookahead: e.lookahead, + parenthesized: e.parenthesized + }); + throw new Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`); + } + } +} +i(Mn, "abstractElementToRegex"); +function Ry(e) { + return Qt(e.elements.map((t) => Mn(t)).join("|"), { + cardinality: e.cardinality, + lookahead: e.lookahead, + parenthesized: e.parenthesized, + wrap: !1 + // wrapping is not required for top level alternatives, and nested alternatives are already parenthesized according to the grammar + }); +} +i(Ry, "terminalAlternativesToRegex"); +function $y(e) { + return Qt(e.elements.map((t) => Mn(t)).join(""), { + cardinality: e.cardinality, + lookahead: e.lookahead, + parenthesized: e.parenthesized, + wrap: !1 + // wrapping is not required for top level group, and nested group are already parenthesized according to the grammar + }); +} +i($y, "terminalGroupToRegex"); +function Ay(e) { + return Qt(`${Zd}*?${Mn(e.terminal)}`, { + cardinality: e.cardinality, + lookahead: e.lookahead, + parenthesized: e.parenthesized + }); +} +i(Ay, "untilTokenToRegex"); +function Ey(e) { + return Qt(`(?!${Mn(e.terminal)})${Zd}*?`, { + cardinality: e.cardinality, + lookahead: e.lookahead, + parenthesized: e.parenthesized + }); +} +i(Ey, "negateTokenToRegex"); +function _y(e) { + return e.right ? Qt(`[${To(e.left)}-${To(e.right)}]`, { + cardinality: e.cardinality, + lookahead: e.lookahead, + parenthesized: e.parenthesized, + wrap: !1 + }) : Qt(To(e.left), { + cardinality: e.cardinality, + lookahead: e.lookahead, + parenthesized: e.parenthesized, + wrap: !1 + }); +} +i(_y, "characterRangeToRegex"); +function To(e) { + return Wa(e.value); +} +i(To, "keywordToRegex"); +function Qt(e, t) { + return (t.parenthesized || t.lookahead || t.wrap !== !1) && (e = `(${t.lookahead ?? (t.parenthesized ? "" : "?:")}${e})`), t.cardinality ? `${e}${t.cardinality}` : e; +} +i(Qt, "withCardinality"); +function Qd(e) { + const t = [], r = e.Grammar; + for (const n of r.rules) + St(n) && Bd(n) && Md(Is(n)) && t.push(n.name); + return { + multilineCommentRules: t, + nameRegexp: wd + }; +} +i(Qd, "createGrammarConfig"); +var Gw = typeof global == "object" && global && global.Object === Object && global, Cy = Gw, jw = typeof self == "object" && self && self.Object === Object && self, Uw = Cy || jw || Function("return this")(), tr = Uw, zw = tr.Symbol, Ct = zw, by = Object.prototype, Bw = by.hasOwnProperty, Kw = by.toString, Ei = Ct ? Ct.toStringTag : void 0; +function Sy(e) { + var t = Bw.call(e, Ei), r = e[Ei]; + try { + e[Ei] = void 0; + var n = !0; + } catch { + } + var a = Kw.call(e); + return n && (t ? e[Ei] = r : delete e[Ei]), a; +} +i(Sy, "getRawTag"); +var qw = Sy, Ww = Object.prototype, Vw = Ww.toString; +function wy(e) { + return Vw.call(e); +} +i(wy, "objectToString"); +var Hw = wy, Yw = "[object Null]", Xw = "[object Undefined]", Fh = Ct ? Ct.toStringTag : void 0; +function Iy(e) { + return e == null ? e === void 0 ? Xw : Yw : Fh && Fh in Object(e) ? qw(e) : Hw(e); +} +i(Iy, "baseGetTag"); +var qr = Iy; +function Ny(e) { + return e != null && typeof e == "object"; +} +i(Ny, "isObjectLike"); +var Gt = Ny, Jw = "[object Symbol]"; +function ky(e) { + return typeof e == "symbol" || Gt(e) && qr(e) == Jw; +} +i(ky, "isSymbol"); +var Gl = ky; +function Py(e, t) { + for (var r = -1, n = e == null ? 0 : e.length, a = Array(n); ++r < n; ) + a[r] = t(e[r], r, e); + return a; +} +i(Py, "arrayMap"); +var Ns = Py, Zw = Array.isArray, ne = Zw, Gh = Ct ? Ct.prototype : void 0, jh = Gh ? Gh.toString : void 0; +function ep(e) { + if (typeof e == "string") + return e; + if (ne(e)) + return Ns(e, ep) + ""; + if (Gl(e)) + return jh ? jh.call(e) : ""; + var t = e + ""; + return t == "0" && 1 / e == -1 / 0 ? "-0" : t; +} +i(ep, "baseToString"); +var Qw = ep, eI = /\s/; +function Oy(e) { + for (var t = e.length; t-- && eI.test(e.charAt(t)); ) + ; + return t; +} +i(Oy, "trimmedEndIndex"); +var tI = Oy, rI = /^\s+/; +function Ly(e) { + return e && e.slice(0, tI(e) + 1).replace(rI, ""); +} +i(Ly, "baseTrim"); +var nI = Ly; +function Dy(e) { + var t = typeof e; + return e != null && (t == "object" || t == "function"); +} +i(Dy, "isObject"); +var bt = Dy, Uh = NaN, aI = /^[-+]0x[0-9a-f]+$/i, iI = /^0b[01]+$/i, sI = /^0o[0-7]+$/i, oI = parseInt; +function My(e) { + if (typeof e == "number") + return e; + if (Gl(e)) + return Uh; + if (bt(e)) { + var t = typeof e.valueOf == "function" ? e.valueOf() : e; + e = bt(t) ? t + "" : t; + } + if (typeof e != "string") + return e === 0 ? e : +e; + e = nI(e); + var r = iI.test(e); + return r || sI.test(e) ? oI(e.slice(2), r ? 2 : 8) : aI.test(e) ? Uh : +e; +} +i(My, "toNumber"); +var lI = My, zh = 1 / 0, cI = 17976931348623157e292; +function xy(e) { + if (!e) + return e === 0 ? e : 0; + if (e = lI(e), e === zh || e === -zh) { + var t = e < 0 ? -1 : 1; + return t * cI; + } + return e === e ? e : 0; +} +i(xy, "toFinite"); +var uI = xy; +function Fy(e) { + var t = uI(e), r = t % 1; + return t === t ? r ? t - r : t : 0; +} +i(Fy, "toInteger"); +var ks = Fy; +function Gy(e) { + return e; +} +i(Gy, "identity"); +var Ga = Gy, fI = "[object AsyncFunction]", dI = "[object Function]", pI = "[object GeneratorFunction]", hI = "[object Proxy]"; +function jy(e) { + if (!bt(e)) + return !1; + var t = qr(e); + return t == dI || t == pI || t == fI || t == hI; +} +i(jy, "isFunction"); +var wr = jy, mI = tr["__core-js_shared__"], kc = mI, Bh = (function() { + var e = /[^.]+$/.exec(kc && kc.keys && kc.keys.IE_PROTO || ""); + return e ? "Symbol(src)_1." + e : ""; +})(); +function Uy(e) { + return !!Bh && Bh in e; +} +i(Uy, "isMasked"); +var gI = Uy, yI = Function.prototype, vI = yI.toString; +function zy(e) { + if (e != null) { + try { + return vI.call(e); + } catch { + } + try { + return e + ""; + } catch { + } + } + return ""; +} +i(zy, "toSource"); +var xn = zy, TI = /[\\^$.*+?()[\]{}|]/g, RI = /^\[object .+?Constructor\]$/, $I = Function.prototype, AI = Object.prototype, EI = $I.toString, _I = AI.hasOwnProperty, CI = RegExp( + "^" + EI.call(_I).replace(TI, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +); +function By(e) { + if (!bt(e) || gI(e)) + return !1; + var t = wr(e) ? CI : RI; + return t.test(xn(e)); +} +i(By, "baseIsNative"); +var bI = By; +function Ky(e, t) { + return e?.[t]; +} +i(Ky, "getValue"); +var SI = Ky; +function qy(e, t) { + var r = SI(e, t); + return bI(r) ? r : void 0; +} +i(qy, "getNative"); +var Fn = qy, wI = Fn(tr, "WeakMap"), rf = wI, Kh = Object.create, II = /* @__PURE__ */ (function() { + function e() { + } + return i(e, "object"), function(t) { + if (!bt(t)) + return {}; + if (Kh) + return Kh(t); + e.prototype = t; + var r = new e(); + return e.prototype = void 0, r; + }; +})(), NI = II; +function Wy(e, t, r) { + switch (r.length) { + case 0: + return e.call(t); + case 1: + return e.call(t, r[0]); + case 2: + return e.call(t, r[0], r[1]); + case 3: + return e.call(t, r[0], r[1], r[2]); + } + return e.apply(t, r); +} +i(Wy, "apply"); +var kI = Wy; +function Vy() { +} +i(Vy, "noop"); +var Me = Vy; +function Hy(e, t) { + var r = -1, n = e.length; + for (t || (t = Array(n)); ++r < n; ) + t[r] = e[r]; + return t; +} +i(Hy, "copyArray"); +var PI = Hy, OI = 800, LI = 16, DI = Date.now; +function Yy(e) { + var t = 0, r = 0; + return function() { + var n = DI(), a = LI - (n - r); + if (r = n, a > 0) { + if (++t >= OI) + return arguments[0]; + } else + t = 0; + return e.apply(void 0, arguments); + }; +} +i(Yy, "shortOut"); +var MI = Yy; +function Xy(e) { + return function() { + return e; + }; +} +i(Xy, "constant"); +var xI = Xy, FI = (function() { + try { + var e = Fn(Object, "defineProperty"); + return e({}, "", {}), e; + } catch { + } +})(), Qo = FI, GI = Qo ? function(e, t) { + return Qo(e, "toString", { + configurable: !0, + enumerable: !1, + value: xI(t), + writable: !0 + }); +} : Ga, jI = GI, UI = MI(jI), zI = UI; +function Jy(e, t) { + for (var r = -1, n = e == null ? 0 : e.length; ++r < n && t(e[r], r, e) !== !1; ) + ; + return e; +} +i(Jy, "arrayEach"); +var Zy = Jy; +function Qy(e, t, r, n) { + for (var a = e.length, s = r + (n ? 1 : -1); n ? s-- : ++s < a; ) + if (t(e[s], s, e)) + return s; + return -1; +} +i(Qy, "baseFindIndex"); +var ev = Qy; +function tv(e) { + return e !== e; +} +i(tv, "baseIsNaN"); +var BI = tv; +function rv(e, t, r) { + for (var n = r - 1, a = e.length; ++n < a; ) + if (e[n] === t) + return n; + return -1; +} +i(rv, "strictIndexOf"); +var KI = rv; +function nv(e, t, r) { + return t === t ? KI(e, t, r) : ev(e, BI, r); +} +i(nv, "baseIndexOf"); +var tp = nv; +function av(e, t) { + var r = e == null ? 0 : e.length; + return !!r && tp(e, t, 0) > -1; +} +i(av, "arrayIncludes"); +var iv = av, qI = 9007199254740991, WI = /^(?:0|[1-9]\d*)$/; +function sv(e, t) { + var r = typeof e; + return t = t ?? qI, !!t && (r == "number" || r != "symbol" && WI.test(e)) && e > -1 && e % 1 == 0 && e < t; +} +i(sv, "isIndex"); +var jl = sv; +function ov(e, t, r) { + t == "__proto__" && Qo ? Qo(e, t, { + configurable: !0, + enumerable: !0, + value: r, + writable: !0 + }) : e[t] = r; +} +i(ov, "baseAssignValue"); +var rp = ov; +function lv(e, t) { + return e === t || e !== e && t !== t; +} +i(lv, "eq"); +var Ps = lv, VI = Object.prototype, HI = VI.hasOwnProperty; +function cv(e, t, r) { + var n = e[t]; + (!(HI.call(e, t) && Ps(n, r)) || r === void 0 && !(t in e)) && rp(e, t, r); +} +i(cv, "assignValue"); +var Ul = cv; +function uv(e, t, r, n) { + var a = !r; + r || (r = {}); + for (var s = -1, o = t.length; ++s < o; ) { + var l = t[s], c = n ? n(r[l], e[l], l, r, e) : void 0; + c === void 0 && (c = e[l]), a ? rp(r, l, c) : Ul(r, l, c); + } + return r; +} +i(uv, "copyObject"); +var Os = uv, qh = Math.max; +function fv(e, t, r) { + return t = qh(t === void 0 ? e.length - 1 : t, 0), function() { + for (var n = arguments, a = -1, s = qh(n.length - t, 0), o = Array(s); ++a < s; ) + o[a] = n[t + a]; + a = -1; + for (var l = Array(t + 1); ++a < t; ) + l[a] = n[a]; + return l[t] = r(o), kI(e, this, l); + }; +} +i(fv, "overRest"); +var YI = fv; +function dv(e, t) { + return zI(YI(e, t, Ga), e + ""); +} +i(dv, "baseRest"); +var np = dv, XI = 9007199254740991; +function pv(e) { + return typeof e == "number" && e > -1 && e % 1 == 0 && e <= XI; +} +i(pv, "isLength"); +var ap = pv; +function hv(e) { + return e != null && ap(e.length) && !wr(e); +} +i(hv, "isArrayLike"); +var rr = hv; +function mv(e, t, r) { + if (!bt(r)) + return !1; + var n = typeof t; + return (n == "number" ? rr(r) && jl(t, r.length) : n == "string" && t in r) ? Ps(r[t], e) : !1; +} +i(mv, "isIterateeCall"); +var zl = mv; +function gv(e) { + return np(function(t, r) { + var n = -1, a = r.length, s = a > 1 ? r[a - 1] : void 0, o = a > 2 ? r[2] : void 0; + for (s = e.length > 3 && typeof s == "function" ? (a--, s) : void 0, o && zl(r[0], r[1], o) && (s = a < 3 ? void 0 : s, a = 1), t = Object(t); ++n < a; ) { + var l = r[n]; + l && e(t, l, n, s); + } + return t; + }); +} +i(gv, "createAssigner"); +var JI = gv, ZI = Object.prototype; +function yv(e) { + var t = e && e.constructor, r = typeof t == "function" && t.prototype || ZI; + return e === r; +} +i(yv, "isPrototype"); +var Ls = yv; +function vv(e, t) { + for (var r = -1, n = Array(e); ++r < e; ) + n[r] = t(r); + return n; +} +i(vv, "baseTimes"); +var QI = vv, eN = "[object Arguments]"; +function Tv(e) { + return Gt(e) && qr(e) == eN; +} +i(Tv, "baseIsArguments"); +var Wh = Tv, Rv = Object.prototype, tN = Rv.hasOwnProperty, rN = Rv.propertyIsEnumerable, nN = Wh(/* @__PURE__ */ (function() { + return arguments; +})()) ? Wh : function(e) { + return Gt(e) && tN.call(e, "callee") && !rN.call(e, "callee"); +}, Bl = nN; +function $v() { + return !1; +} +i($v, "stubFalse"); +var aN = $v, Av = typeof exports == "object" && exports && !exports.nodeType && exports, Vh = Av && typeof module == "object" && module && !module.nodeType && module, iN = Vh && Vh.exports === Av, Hh = iN ? tr.Buffer : void 0, sN = Hh ? Hh.isBuffer : void 0, oN = sN || aN, ls = oN, lN = "[object Arguments]", cN = "[object Array]", uN = "[object Boolean]", fN = "[object Date]", dN = "[object Error]", pN = "[object Function]", hN = "[object Map]", mN = "[object Number]", gN = "[object Object]", yN = "[object RegExp]", vN = "[object Set]", TN = "[object String]", RN = "[object WeakMap]", $N = "[object ArrayBuffer]", AN = "[object DataView]", EN = "[object Float32Array]", _N = "[object Float64Array]", CN = "[object Int8Array]", bN = "[object Int16Array]", SN = "[object Int32Array]", wN = "[object Uint8Array]", IN = "[object Uint8ClampedArray]", NN = "[object Uint16Array]", kN = "[object Uint32Array]", ye = {}; +ye[EN] = ye[_N] = ye[CN] = ye[bN] = ye[SN] = ye[wN] = ye[IN] = ye[NN] = ye[kN] = !0; +ye[lN] = ye[cN] = ye[$N] = ye[uN] = ye[AN] = ye[fN] = ye[dN] = ye[pN] = ye[hN] = ye[mN] = ye[gN] = ye[yN] = ye[vN] = ye[TN] = ye[RN] = !1; +function Ev(e) { + return Gt(e) && ap(e.length) && !!ye[qr(e)]; +} +i(Ev, "baseIsTypedArray"); +var PN = Ev; +function _v(e) { + return function(t) { + return e(t); + }; +} +i(_v, "baseUnary"); +var Ds = _v, Cv = typeof exports == "object" && exports && !exports.nodeType && exports, Zi = Cv && typeof module == "object" && module && !module.nodeType && module, ON = Zi && Zi.exports === Cv, Pc = ON && Cy.process, LN = (function() { + try { + var e = Zi && Zi.require && Zi.require("util").types; + return e || Pc && Pc.binding && Pc.binding("util"); + } catch { + } +})(), Gr = LN, Yh = Gr && Gr.isTypedArray, DN = Yh ? Ds(Yh) : PN, ip = DN, MN = Object.prototype, xN = MN.hasOwnProperty; +function bv(e, t) { + var r = ne(e), n = !r && Bl(e), a = !r && !n && ls(e), s = !r && !n && !a && ip(e), o = r || n || a || s, l = o ? QI(e.length, String) : [], c = l.length; + for (var u in e) + (t || xN.call(e, u)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode. + (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. + a && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. + s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties. + jl(u, c))) && l.push(u); + return l; +} +i(bv, "arrayLikeKeys"); +var Sv = bv; +function wv(e, t) { + return function(r) { + return e(t(r)); + }; +} +i(wv, "overArg"); +var Iv = wv, FN = Iv(Object.keys, Object), GN = FN, jN = Object.prototype, UN = jN.hasOwnProperty; +function Nv(e) { + if (!Ls(e)) + return GN(e); + var t = []; + for (var r in Object(e)) + UN.call(e, r) && r != "constructor" && t.push(r); + return t; +} +i(Nv, "baseKeys"); +var kv = Nv; +function Pv(e) { + return rr(e) ? Sv(e) : kv(e); +} +i(Pv, "keys"); +var dt = Pv, zN = Object.prototype, BN = zN.hasOwnProperty, KN = JI(function(e, t) { + if (Ls(t) || rr(t)) { + Os(t, dt(t), e); + return; + } + for (var r in t) + BN.call(t, r) && Ul(e, r, t[r]); +}), pt = KN; +function Ov(e) { + var t = []; + if (e != null) + for (var r in Object(e)) + t.push(r); + return t; +} +i(Ov, "nativeKeysIn"); +var qN = Ov, WN = Object.prototype, VN = WN.hasOwnProperty; +function Lv(e) { + if (!bt(e)) + return qN(e); + var t = Ls(e), r = []; + for (var n in e) + n == "constructor" && (t || !VN.call(e, n)) || r.push(n); + return r; +} +i(Lv, "baseKeysIn"); +var HN = Lv; +function Dv(e) { + return rr(e) ? Sv(e, !0) : HN(e); +} +i(Dv, "keysIn"); +var Kl = Dv, YN = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, XN = /^\w*$/; +function Mv(e, t) { + if (ne(e)) + return !1; + var r = typeof e; + return r == "number" || r == "symbol" || r == "boolean" || e == null || Gl(e) ? !0 : XN.test(e) || !YN.test(e) || t != null && e in Object(t); +} +i(Mv, "isKey"); +var sp = Mv, JN = Fn(Object, "create"), cs = JN; +function xv() { + this.__data__ = cs ? cs(null) : {}, this.size = 0; +} +i(xv, "hashClear"); +var ZN = xv; +function Fv(e) { + var t = this.has(e) && delete this.__data__[e]; + return this.size -= t ? 1 : 0, t; +} +i(Fv, "hashDelete"); +var QN = Fv, ek = "__lodash_hash_undefined__", tk = Object.prototype, rk = tk.hasOwnProperty; +function Gv(e) { + var t = this.__data__; + if (cs) { + var r = t[e]; + return r === ek ? void 0 : r; + } + return rk.call(t, e) ? t[e] : void 0; +} +i(Gv, "hashGet"); +var nk = Gv, ak = Object.prototype, ik = ak.hasOwnProperty; +function jv(e) { + var t = this.__data__; + return cs ? t[e] !== void 0 : ik.call(t, e); +} +i(jv, "hashHas"); +var sk = jv, ok = "__lodash_hash_undefined__"; +function Uv(e, t) { + var r = this.__data__; + return this.size += this.has(e) ? 0 : 1, r[e] = cs && t === void 0 ? ok : t, this; +} +i(Uv, "hashSet"); +var lk = Uv; +function Gn(e) { + var t = -1, r = e == null ? 0 : e.length; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]); + } +} +i(Gn, "Hash"); +Gn.prototype.clear = ZN; +Gn.prototype.delete = QN; +Gn.prototype.get = nk; +Gn.prototype.has = sk; +Gn.prototype.set = lk; +var Xh = Gn; +function zv() { + this.__data__ = [], this.size = 0; +} +i(zv, "listCacheClear"); +var ck = zv; +function Bv(e, t) { + for (var r = e.length; r--; ) + if (Ps(e[r][0], t)) + return r; + return -1; +} +i(Bv, "assocIndexOf"); +var ql = Bv, uk = Array.prototype, fk = uk.splice; +function Kv(e) { + var t = this.__data__, r = ql(t, e); + if (r < 0) + return !1; + var n = t.length - 1; + return r == n ? t.pop() : fk.call(t, r, 1), --this.size, !0; +} +i(Kv, "listCacheDelete"); +var dk = Kv; +function qv(e) { + var t = this.__data__, r = ql(t, e); + return r < 0 ? void 0 : t[r][1]; +} +i(qv, "listCacheGet"); +var pk = qv; +function Wv(e) { + return ql(this.__data__, e) > -1; +} +i(Wv, "listCacheHas"); +var hk = Wv; +function Vv(e, t) { + var r = this.__data__, n = ql(r, e); + return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this; +} +i(Vv, "listCacheSet"); +var mk = Vv; +function jn(e) { + var t = -1, r = e == null ? 0 : e.length; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]); + } +} +i(jn, "ListCache"); +jn.prototype.clear = ck; +jn.prototype.delete = dk; +jn.prototype.get = pk; +jn.prototype.has = hk; +jn.prototype.set = mk; +var Wl = jn, gk = Fn(tr, "Map"), us = gk; +function Hv() { + this.size = 0, this.__data__ = { + hash: new Xh(), + map: new (us || Wl)(), + string: new Xh() + }; +} +i(Hv, "mapCacheClear"); +var yk = Hv; +function Yv(e) { + var t = typeof e; + return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; +} +i(Yv, "isKeyable"); +var vk = Yv; +function Xv(e, t) { + var r = e.__data__; + return vk(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map; +} +i(Xv, "getMapData"); +var Vl = Xv; +function Jv(e) { + var t = Vl(this, e).delete(e); + return this.size -= t ? 1 : 0, t; +} +i(Jv, "mapCacheDelete"); +var Tk = Jv; +function Zv(e) { + return Vl(this, e).get(e); +} +i(Zv, "mapCacheGet"); +var Rk = Zv; +function Qv(e) { + return Vl(this, e).has(e); +} +i(Qv, "mapCacheHas"); +var $k = Qv; +function eT(e, t) { + var r = Vl(this, e), n = r.size; + return r.set(e, t), this.size += r.size == n ? 0 : 1, this; +} +i(eT, "mapCacheSet"); +var Ak = eT; +function Un(e) { + var t = -1, r = e == null ? 0 : e.length; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]); + } +} +i(Un, "MapCache"); +Un.prototype.clear = yk; +Un.prototype.delete = Tk; +Un.prototype.get = Rk; +Un.prototype.has = $k; +Un.prototype.set = Ak; +var Hl = Un, Ek = "Expected a function"; +function Yl(e, t) { + if (typeof e != "function" || t != null && typeof t != "function") + throw new TypeError(Ek); + var r = /* @__PURE__ */ i(function() { + var n = arguments, a = t ? t.apply(this, n) : n[0], s = r.cache; + if (s.has(a)) + return s.get(a); + var o = e.apply(this, n); + return r.cache = s.set(a, o) || s, o; + }, "memoized"); + return r.cache = new (Yl.Cache || Hl)(), r; +} +i(Yl, "memoize"); +Yl.Cache = Hl; +var _k = Yl, Ck = 500; +function tT(e) { + var t = _k(e, function(n) { + return r.size === Ck && r.clear(), n; + }), r = t.cache; + return t; +} +i(tT, "memoizeCapped"); +var bk = tT, Sk = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, wk = /\\(\\)?/g, Ik = bk(function(e) { + var t = []; + return e.charCodeAt(0) === 46 && t.push(""), e.replace(Sk, function(r, n, a, s) { + t.push(a ? s.replace(wk, "$1") : n || r); + }), t; +}), Nk = Ik; +function rT(e) { + return e == null ? "" : Qw(e); +} +i(rT, "toString"); +var kk = rT; +function nT(e, t) { + return ne(e) ? e : sp(e, t) ? [e] : Nk(kk(e)); +} +i(nT, "castPath"); +var Xl = nT; +function aT(e) { + if (typeof e == "string" || Gl(e)) + return e; + var t = e + ""; + return t == "0" && 1 / e == -1 / 0 ? "-0" : t; +} +i(aT, "toKey"); +var Ms = aT; +function iT(e, t) { + t = Xl(t, e); + for (var r = 0, n = t.length; e != null && r < n; ) + e = e[Ms(t[r++])]; + return r && r == n ? e : void 0; +} +i(iT, "baseGet"); +var op = iT; +function sT(e, t, r) { + var n = e == null ? void 0 : op(e, t); + return n === void 0 ? r : n; +} +i(sT, "get"); +var Pk = sT; +function oT(e, t) { + for (var r = -1, n = t.length, a = e.length; ++r < n; ) + e[a + r] = t[r]; + return e; +} +i(oT, "arrayPush"); +var lp = oT, Jh = Ct ? Ct.isConcatSpreadable : void 0; +function lT(e) { + return ne(e) || Bl(e) || !!(Jh && e && e[Jh]); +} +i(lT, "isFlattenable"); +var Ok = lT; +function cp(e, t, r, n, a) { + var s = -1, o = e.length; + for (r || (r = Ok), a || (a = []); ++s < o; ) { + var l = e[s]; + t > 0 && r(l) ? t > 1 ? cp(l, t - 1, r, n, a) : lp(a, l) : n || (a[a.length] = l); + } + return a; +} +i(cp, "baseFlatten"); +var up = cp; +function cT(e) { + var t = e == null ? 0 : e.length; + return t ? up(e, 1) : []; +} +i(cT, "flatten"); +var xt = cT, Lk = Iv(Object.getPrototypeOf, Object), uT = Lk; +function fT(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 s = Array(a); ++n < a; ) + s[n] = e[n + t]; + return s; +} +i(fT, "baseSlice"); +var dT = fT; +function pT(e, t, r, n) { + var a = -1, s = e == null ? 0 : e.length; + for (n && s && (r = e[++a]); ++a < s; ) + r = t(r, e[a], a, e); + return r; +} +i(pT, "arrayReduce"); +var Dk = pT; +function hT() { + this.__data__ = new Wl(), this.size = 0; +} +i(hT, "stackClear"); +var Mk = hT; +function mT(e) { + var t = this.__data__, r = t.delete(e); + return this.size = t.size, r; +} +i(mT, "stackDelete"); +var xk = mT; +function gT(e) { + return this.__data__.get(e); +} +i(gT, "stackGet"); +var Fk = gT; +function yT(e) { + return this.__data__.has(e); +} +i(yT, "stackHas"); +var Gk = yT, jk = 200; +function vT(e, t) { + var r = this.__data__; + if (r instanceof Wl) { + var n = r.__data__; + if (!us || n.length < jk - 1) + return n.push([e, t]), this.size = ++r.size, this; + r = this.__data__ = new Hl(n); + } + return r.set(e, t), this.size = r.size, this; +} +i(vT, "stackSet"); +var Uk = vT; +function zn(e) { + var t = this.__data__ = new Wl(e); + this.size = t.size; +} +i(zn, "Stack"); +zn.prototype.clear = Mk; +zn.prototype.delete = xk; +zn.prototype.get = Fk; +zn.prototype.has = Gk; +zn.prototype.set = Uk; +var Qi = zn; +function TT(e, t) { + return e && Os(t, dt(t), e); +} +i(TT, "baseAssign"); +var zk = TT; +function RT(e, t) { + return e && Os(t, Kl(t), e); +} +i(RT, "baseAssignIn"); +var Bk = RT, $T = typeof exports == "object" && exports && !exports.nodeType && exports, Zh = $T && typeof module == "object" && module && !module.nodeType && module, Kk = Zh && Zh.exports === $T, Qh = Kk ? tr.Buffer : void 0, em = Qh ? Qh.allocUnsafe : void 0; +function AT(e, t) { + if (t) + return e.slice(); + var r = e.length, n = em ? em(r) : new e.constructor(r); + return e.copy(n), n; +} +i(AT, "cloneBuffer"); +var qk = AT; +function ET(e, t) { + for (var r = -1, n = e == null ? 0 : e.length, a = 0, s = []; ++r < n; ) { + var o = e[r]; + t(o, r, e) && (s[a++] = o); + } + return s; +} +i(ET, "arrayFilter"); +var fp = ET; +function _T() { + return []; +} +i(_T, "stubArray"); +var CT = _T, Wk = Object.prototype, Vk = Wk.propertyIsEnumerable, tm = Object.getOwnPropertySymbols, Hk = tm ? function(e) { + return e == null ? [] : (e = Object(e), fp(tm(e), function(t) { + return Vk.call(e, t); + })); +} : CT, dp = Hk; +function bT(e, t) { + return Os(e, dp(e), t); +} +i(bT, "copySymbols"); +var Yk = bT, Xk = Object.getOwnPropertySymbols, Jk = Xk ? function(e) { + for (var t = []; e; ) + lp(t, dp(e)), e = uT(e); + return t; +} : CT, ST = Jk; +function wT(e, t) { + return Os(e, ST(e), t); +} +i(wT, "copySymbolsIn"); +var Zk = wT; +function IT(e, t, r) { + var n = t(e); + return ne(e) ? n : lp(n, r(e)); +} +i(IT, "baseGetAllKeys"); +var NT = IT; +function kT(e) { + return NT(e, dt, dp); +} +i(kT, "getAllKeys"); +var nf = kT; +function PT(e) { + return NT(e, Kl, ST); +} +i(PT, "getAllKeysIn"); +var OT = PT, Qk = Fn(tr, "DataView"), af = Qk, eP = Fn(tr, "Promise"), sf = eP, tP = Fn(tr, "Set"), Ia = tP, rm = "[object Map]", rP = "[object Object]", nm = "[object Promise]", am = "[object Set]", im = "[object WeakMap]", sm = "[object DataView]", nP = xn(af), aP = xn(us), iP = xn(sf), sP = xn(Ia), oP = xn(rf), rn = qr; +(af && rn(new af(new ArrayBuffer(1))) != sm || us && rn(new us()) != rm || sf && rn(sf.resolve()) != nm || Ia && rn(new Ia()) != am || rf && rn(new rf()) != im) && (rn = /* @__PURE__ */ i(function(e) { + var t = qr(e), r = t == rP ? e.constructor : void 0, n = r ? xn(r) : ""; + if (n) + switch (n) { + case nP: + return sm; + case aP: + return rm; + case iP: + return nm; + case sP: + return am; + case oP: + return im; + } + return t; +}, "getTag")); +var ja = rn, lP = Object.prototype, cP = lP.hasOwnProperty; +function LT(e) { + var t = e.length, r = new e.constructor(t); + return t && typeof e[0] == "string" && cP.call(e, "index") && (r.index = e.index, r.input = e.input), r; +} +i(LT, "initCloneArray"); +var uP = LT, fP = tr.Uint8Array, el = fP; +function DT(e) { + var t = new e.constructor(e.byteLength); + return new el(t).set(new el(e)), t; +} +i(DT, "cloneArrayBuffer"); +var pp = DT; +function MT(e, t) { + var r = t ? pp(e.buffer) : e.buffer; + return new e.constructor(r, e.byteOffset, e.byteLength); +} +i(MT, "cloneDataView"); +var dP = MT, pP = /\w*$/; +function xT(e) { + var t = new e.constructor(e.source, pP.exec(e)); + return t.lastIndex = e.lastIndex, t; +} +i(xT, "cloneRegExp"); +var hP = xT, om = Ct ? Ct.prototype : void 0, lm = om ? om.valueOf : void 0; +function FT(e) { + return lm ? Object(lm.call(e)) : {}; +} +i(FT, "cloneSymbol"); +var mP = FT; +function GT(e, t) { + var r = t ? pp(e.buffer) : e.buffer; + return new e.constructor(r, e.byteOffset, e.length); +} +i(GT, "cloneTypedArray"); +var gP = GT, yP = "[object Boolean]", vP = "[object Date]", TP = "[object Map]", RP = "[object Number]", $P = "[object RegExp]", AP = "[object Set]", EP = "[object String]", _P = "[object Symbol]", CP = "[object ArrayBuffer]", bP = "[object DataView]", SP = "[object Float32Array]", wP = "[object Float64Array]", IP = "[object Int8Array]", NP = "[object Int16Array]", kP = "[object Int32Array]", PP = "[object Uint8Array]", OP = "[object Uint8ClampedArray]", LP = "[object Uint16Array]", DP = "[object Uint32Array]"; +function jT(e, t, r) { + var n = e.constructor; + switch (t) { + case CP: + return pp(e); + case yP: + case vP: + return new n(+e); + case bP: + return dP(e, r); + case SP: + case wP: + case IP: + case NP: + case kP: + case PP: + case OP: + case LP: + case DP: + return gP(e, r); + case TP: + return new n(); + case RP: + case EP: + return new n(e); + case $P: + return hP(e); + case AP: + return new n(); + case _P: + return mP(e); + } +} +i(jT, "initCloneByTag"); +var MP = jT; +function UT(e) { + return typeof e.constructor == "function" && !Ls(e) ? NI(uT(e)) : {}; +} +i(UT, "initCloneObject"); +var xP = UT, FP = "[object Map]"; +function zT(e) { + return Gt(e) && ja(e) == FP; +} +i(zT, "baseIsMap"); +var GP = zT, cm = Gr && Gr.isMap, jP = cm ? Ds(cm) : GP, UP = jP, zP = "[object Set]"; +function BT(e) { + return Gt(e) && ja(e) == zP; +} +i(BT, "baseIsSet"); +var BP = BT, um = Gr && Gr.isSet, KP = um ? Ds(um) : BP, qP = KP, WP = 1, VP = 2, HP = 4, KT = "[object Arguments]", YP = "[object Array]", XP = "[object Boolean]", JP = "[object Date]", ZP = "[object Error]", qT = "[object Function]", QP = "[object GeneratorFunction]", e0 = "[object Map]", t0 = "[object Number]", WT = "[object Object]", r0 = "[object RegExp]", n0 = "[object Set]", a0 = "[object String]", i0 = "[object Symbol]", s0 = "[object WeakMap]", o0 = "[object ArrayBuffer]", l0 = "[object DataView]", c0 = "[object Float32Array]", u0 = "[object Float64Array]", f0 = "[object Int8Array]", d0 = "[object Int16Array]", p0 = "[object Int32Array]", h0 = "[object Uint8Array]", m0 = "[object Uint8ClampedArray]", g0 = "[object Uint16Array]", y0 = "[object Uint32Array]", de = {}; +de[KT] = de[YP] = de[o0] = de[l0] = de[XP] = de[JP] = de[c0] = de[u0] = de[f0] = de[d0] = de[p0] = de[e0] = de[t0] = de[WT] = de[r0] = de[n0] = de[a0] = de[i0] = de[h0] = de[m0] = de[g0] = de[y0] = !0; +de[ZP] = de[qT] = de[s0] = !1; +function es(e, t, r, n, a, s) { + var o, l = t & WP, c = t & VP, u = t & HP; + if (r && (o = a ? r(e, n, a, s) : r(e)), o !== void 0) + return o; + if (!bt(e)) + return e; + var f = ne(e); + if (f) { + if (o = uP(e), !l) + return PI(e, o); + } else { + var d = ja(e), h = d == qT || d == QP; + if (ls(e)) + return qk(e, l); + if (d == WT || d == KT || h && !a) { + if (o = c || h ? {} : xP(e), !l) + return c ? Zk(e, Bk(o, e)) : Yk(e, zk(o, e)); + } else { + if (!de[d]) + return a ? e : {}; + o = MP(e, d, l); + } + } + s || (s = new Qi()); + var y = s.get(e); + if (y) + return y; + s.set(e, o), qP(e) ? e.forEach(function(S) { + o.add(es(S, t, r, S, e, s)); + }) : UP(e) && e.forEach(function(S, w) { + o.set(w, es(S, t, r, w, e, s)); + }); + var v = u ? c ? OT : nf : c ? Kl : dt, C = f ? void 0 : v(e); + return Zy(C || e, function(S, w) { + C && (w = S, S = e[w]), Ul(o, w, es(S, t, r, w, e, s)); + }), o; +} +i(es, "baseClone"); +var v0 = es, T0 = 4; +function VT(e) { + return v0(e, T0); +} +i(VT, "clone"); +var Ke = VT; +function HT(e) { + for (var t = -1, r = e == null ? 0 : e.length, n = 0, a = []; ++t < r; ) { + var s = e[t]; + s && (a[n++] = s); + } + return a; +} +i(HT, "compact"); +var xs = HT, R0 = "__lodash_hash_undefined__"; +function YT(e) { + return this.__data__.set(e, R0), this; +} +i(YT, "setCacheAdd"); +var $0 = YT; +function XT(e) { + return this.__data__.has(e); +} +i(XT, "setCacheHas"); +var A0 = XT; +function fs(e) { + var t = -1, r = e == null ? 0 : e.length; + for (this.__data__ = new Hl(); ++t < r; ) + this.add(e[t]); +} +i(fs, "SetCache"); +fs.prototype.add = fs.prototype.push = $0; +fs.prototype.has = A0; +var hp = fs; +function JT(e, t) { + for (var r = -1, n = e == null ? 0 : e.length; ++r < n; ) + if (t(e[r], r, e)) + return !0; + return !1; +} +i(JT, "arraySome"); +var ZT = JT; +function QT(e, t) { + return e.has(t); +} +i(QT, "cacheHas"); +var mp = QT, E0 = 1, _0 = 2; +function eR(e, t, r, n, a, s) { + var o = r & E0, l = e.length, c = t.length; + if (l != c && !(o && c > l)) + return !1; + var u = s.get(e), f = s.get(t); + if (u && f) + return u == t && f == e; + var d = -1, h = !0, y = r & _0 ? new hp() : void 0; + for (s.set(e, t), s.set(t, e); ++d < l; ) { + var v = e[d], C = t[d]; + if (n) + var S = o ? n(C, v, d, t, e, s) : n(v, C, d, e, t, s); + if (S !== void 0) { + if (S) + continue; + h = !1; + break; + } + if (y) { + if (!ZT(t, function(w, I) { + if (!mp(y, I) && (v === w || a(v, w, r, n, s))) + return y.push(I); + })) { + h = !1; + break; + } + } else if (!(v === C || a(v, C, r, n, s))) { + h = !1; + break; + } + } + return s.delete(e), s.delete(t), h; +} +i(eR, "equalArrays"); +var tR = eR; +function rR(e) { + var t = -1, r = Array(e.size); + return e.forEach(function(n, a) { + r[++t] = [a, n]; + }), r; +} +i(rR, "mapToArray"); +var C0 = rR; +function nR(e) { + var t = -1, r = Array(e.size); + return e.forEach(function(n) { + r[++t] = n; + }), r; +} +i(nR, "setToArray"); +var gp = nR, b0 = 1, S0 = 2, w0 = "[object Boolean]", I0 = "[object Date]", N0 = "[object Error]", k0 = "[object Map]", P0 = "[object Number]", O0 = "[object RegExp]", L0 = "[object Set]", D0 = "[object String]", M0 = "[object Symbol]", x0 = "[object ArrayBuffer]", F0 = "[object DataView]", fm = Ct ? Ct.prototype : void 0, Oc = fm ? fm.valueOf : void 0; +function aR(e, t, r, n, a, s, o) { + switch (r) { + case F0: + if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) + return !1; + e = e.buffer, t = t.buffer; + case x0: + return !(e.byteLength != t.byteLength || !s(new el(e), new el(t))); + case w0: + case I0: + case P0: + return Ps(+e, +t); + case N0: + return e.name == t.name && e.message == t.message; + case O0: + case D0: + return e == t + ""; + case k0: + var l = C0; + case L0: + var c = n & b0; + if (l || (l = gp), e.size != t.size && !c) + return !1; + var u = o.get(e); + if (u) + return u == t; + n |= S0, o.set(e, t); + var f = tR(l(e), l(t), n, a, s, o); + return o.delete(e), f; + case M0: + if (Oc) + return Oc.call(e) == Oc.call(t); + } + return !1; +} +i(aR, "equalByTag"); +var G0 = aR, j0 = 1, U0 = Object.prototype, z0 = U0.hasOwnProperty; +function iR(e, t, r, n, a, s) { + var o = r & j0, l = nf(e), c = l.length, u = nf(t), f = u.length; + if (c != f && !o) + return !1; + for (var d = c; d--; ) { + var h = l[d]; + if (!(o ? h in t : z0.call(t, h))) + return !1; + } + var y = s.get(e), v = s.get(t); + if (y && v) + return y == t && v == e; + var C = !0; + s.set(e, t), s.set(t, e); + for (var S = o; ++d < c; ) { + h = l[d]; + var w = e[h], I = t[h]; + if (n) + var A = o ? n(I, w, h, t, e, s) : n(w, I, h, e, t, s); + if (!(A === void 0 ? w === I || a(w, I, r, n, s) : A)) { + C = !1; + break; + } + S || (S = h == "constructor"); + } + if (C && !S) { + var k = e.constructor, G = t.constructor; + k != G && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof G == "function" && G instanceof G) && (C = !1); + } + return s.delete(e), s.delete(t), C; +} +i(iR, "equalObjects"); +var B0 = iR, K0 = 1, dm = "[object Arguments]", pm = "[object Array]", Ws = "[object Object]", q0 = Object.prototype, hm = q0.hasOwnProperty; +function sR(e, t, r, n, a, s) { + var o = ne(e), l = ne(t), c = o ? pm : ja(e), u = l ? pm : ja(t); + c = c == dm ? Ws : c, u = u == dm ? Ws : u; + var f = c == Ws, d = u == Ws, h = c == u; + if (h && ls(e)) { + if (!ls(t)) + return !1; + o = !0, f = !1; + } + if (h && !f) + return s || (s = new Qi()), o || ip(e) ? tR(e, t, r, n, a, s) : G0(e, t, c, r, n, a, s); + if (!(r & K0)) { + var y = f && hm.call(e, "__wrapped__"), v = d && hm.call(t, "__wrapped__"); + if (y || v) { + var C = y ? e.value() : e, S = v ? t.value() : t; + return s || (s = new Qi()), a(C, S, r, n, s); + } + } + return h ? (s || (s = new Qi()), B0(e, t, r, n, a, s)) : !1; +} +i(sR, "baseIsEqualDeep"); +var W0 = sR; +function yp(e, t, r, n, a) { + return e === t ? !0 : e == null || t == null || !Gt(e) && !Gt(t) ? e !== e && t !== t : W0(e, t, r, n, yp, a); +} +i(yp, "baseIsEqual"); +var oR = yp, V0 = 1, H0 = 2; +function lR(e, t, r, n) { + var a = r.length, s = a, o = !n; + if (e == null) + return !s; + for (e = Object(e); a--; ) { + var l = r[a]; + if (o && l[2] ? l[1] !== e[l[0]] : !(l[0] in e)) + return !1; + } + for (; ++a < s; ) { + l = r[a]; + var c = l[0], u = e[c], f = l[1]; + if (o && l[2]) { + if (u === void 0 && !(c in e)) + return !1; + } else { + var d = new Qi(); + if (n) + var h = n(u, f, c, e, t, d); + if (!(h === void 0 ? oR(f, u, V0 | H0, n, d) : h)) + return !1; + } + } + return !0; +} +i(lR, "baseIsMatch"); +var Y0 = lR; +function cR(e) { + return e === e && !bt(e); +} +i(cR, "isStrictComparable"); +var uR = cR; +function fR(e) { + for (var t = dt(e), r = t.length; r--; ) { + var n = t[r], a = e[n]; + t[r] = [n, a, uR(a)]; + } + return t; +} +i(fR, "getMatchData"); +var X0 = fR; +function dR(e, t) { + return function(r) { + return r == null ? !1 : r[e] === t && (t !== void 0 || e in Object(r)); + }; +} +i(dR, "matchesStrictComparable"); +var pR = dR; +function hR(e) { + var t = X0(e); + return t.length == 1 && t[0][2] ? pR(t[0][0], t[0][1]) : function(r) { + return r === e || Y0(r, e, t); + }; +} +i(hR, "baseMatches"); +var J0 = hR; +function mR(e, t) { + return e != null && t in Object(e); +} +i(mR, "baseHasIn"); +var Z0 = mR; +function gR(e, t, r) { + t = Xl(t, e); + for (var n = -1, a = t.length, s = !1; ++n < a; ) { + var o = Ms(t[n]); + if (!(s = e != null && r(e, o))) + break; + e = e[o]; + } + return s || ++n != a ? s : (a = e == null ? 0 : e.length, !!a && ap(a) && jl(o, a) && (ne(e) || Bl(e))); +} +i(gR, "hasPath"); +var yR = gR; +function vR(e, t) { + return e != null && yR(e, t, Z0); +} +i(vR, "hasIn"); +var Q0 = vR, eO = 1, tO = 2; +function TR(e, t) { + return sp(e) && uR(t) ? pR(Ms(e), t) : function(r) { + var n = Pk(r, e); + return n === void 0 && n === t ? Q0(r, e) : oR(t, n, eO | tO); + }; +} +i(TR, "baseMatchesProperty"); +var rO = TR; +function RR(e) { + return function(t) { + return t?.[e]; + }; +} +i(RR, "baseProperty"); +var nO = RR; +function $R(e) { + return function(t) { + return op(t, e); + }; +} +i($R, "basePropertyDeep"); +var aO = $R; +function AR(e) { + return sp(e) ? nO(Ms(e)) : aO(e); +} +i(AR, "property"); +var iO = AR; +function ER(e) { + return typeof e == "function" ? e : e == null ? Ga : typeof e == "object" ? ne(e) ? rO(e[0], e[1]) : J0(e) : iO(e); +} +i(ER, "baseIteratee"); +var nr = ER; +function _R(e, t, r, n) { + for (var a = -1, s = e == null ? 0 : e.length; ++a < s; ) { + var o = e[a]; + t(n, o, r(o), e); + } + return n; +} +i(_R, "arrayAggregator"); +var sO = _R; +function CR(e) { + return function(t, r, n) { + for (var a = -1, s = Object(t), o = n(t), l = o.length; l--; ) { + var c = o[e ? l : ++a]; + if (r(s[c], c, s) === !1) + break; + } + return t; + }; +} +i(CR, "createBaseFor"); +var oO = CR, lO = oO(), cO = lO; +function bR(e, t) { + return e && cO(e, t, dt); +} +i(bR, "baseForOwn"); +var uO = bR; +function SR(e, t) { + return function(r, n) { + if (r == null) + return r; + if (!rr(r)) + return e(r, n); + for (var a = r.length, s = t ? a : -1, o = Object(r); (t ? s-- : ++s < a) && n(o[s], s, o) !== !1; ) + ; + return r; + }; +} +i(SR, "createBaseEach"); +var fO = SR, dO = fO(uO), Bn = dO; +function wR(e, t, r, n) { + return Bn(e, function(a, s, o) { + t(n, a, r(a), o); + }), n; +} +i(wR, "baseAggregator"); +var pO = wR; +function IR(e, t) { + return function(r, n) { + var a = ne(r) ? sO : pO, s = t ? t() : {}; + return a(r, e, nr(n), s); + }; +} +i(IR, "createAggregator"); +var hO = IR, NR = Object.prototype, mO = NR.hasOwnProperty, gO = np(function(e, t) { + e = Object(e); + var r = -1, n = t.length, a = n > 2 ? t[2] : void 0; + for (a && zl(t[0], t[1], a) && (n = 1); ++r < n; ) + for (var s = t[r], o = Kl(s), l = -1, c = o.length; ++l < c; ) { + var u = o[l], f = e[u]; + (f === void 0 || Ps(f, NR[u]) && !mO.call(e, u)) && (e[u] = s[u]); + } + return e; +}), vp = gO; +function kR(e) { + return Gt(e) && rr(e); +} +i(kR, "isArrayLikeObject"); +var mm = kR; +function PR(e, t, r) { + for (var n = -1, a = e == null ? 0 : e.length; ++n < a; ) + if (r(t, e[n])) + return !0; + return !1; +} +i(PR, "arrayIncludesWith"); +var OR = PR, yO = 200; +function LR(e, t, r, n) { + var a = -1, s = iv, o = !0, l = e.length, c = [], u = t.length; + if (!l) + return c; + r && (t = Ns(t, Ds(r))), n ? (s = OR, o = !1) : t.length >= yO && (s = mp, o = !1, t = new hp(t)); + e: + for (; ++a < l; ) { + var f = e[a], d = r == null ? f : r(f); + if (f = n || f !== 0 ? f : 0, o && d === d) { + for (var h = u; h--; ) + if (t[h] === d) + continue e; + c.push(f); + } else s(t, d, n) || c.push(f); + } + return c; +} +i(LR, "baseDifference"); +var vO = LR, TO = np(function(e, t) { + return mm(e) ? vO(e, up(t, 1, mm, !0)) : []; +}), Jl = TO; +function DR(e) { + var t = e == null ? 0 : e.length; + return t ? e[t - 1] : void 0; +} +i(DR, "last"); +var Sn = DR; +function MR(e, t, r) { + var n = e == null ? 0 : e.length; + return n ? (t = r || t === void 0 ? 1 : ks(t), dT(e, t < 0 ? 0 : t, n)) : []; +} +i(MR, "drop"); +var ze = MR; +function xR(e, t, r) { + var n = e == null ? 0 : e.length; + return n ? (t = r || t === void 0 ? 1 : ks(t), t = n - t, dT(e, 0, t < 0 ? 0 : t)) : []; +} +i(xR, "dropRight"); +var ds = xR; +function FR(e) { + return typeof e == "function" ? e : Ga; +} +i(FR, "castFunction"); +var RO = FR; +function GR(e, t) { + var r = ne(e) ? Zy : Bn; + return r(e, RO(t)); +} +i(GR, "forEach"); +var q = GR; +function jR(e, t) { + for (var r = -1, n = e == null ? 0 : e.length; ++r < n; ) + if (!t(e[r], r, e)) + return !1; + return !0; +} +i(jR, "arrayEvery"); +var $O = jR; +function UR(e, t) { + var r = !0; + return Bn(e, function(n, a, s) { + return r = !!t(n, a, s), r; + }), r; +} +i(UR, "baseEvery"); +var AO = UR; +function zR(e, t, r) { + var n = ne(e) ? $O : AO; + return r && zl(e, t, r) && (t = void 0), n(e, nr(t)); +} +i(zR, "every"); +var Ft = zR; +function BR(e, t) { + var r = []; + return Bn(e, function(n, a, s) { + t(n, a, s) && r.push(n); + }), r; +} +i(BR, "baseFilter"); +var KR = BR; +function qR(e, t) { + var r = ne(e) ? fp : KR; + return r(e, nr(t)); +} +i(qR, "filter"); +var wt = qR; +function WR(e) { + return function(t, r, n) { + var a = Object(t); + if (!rr(t)) { + var s = nr(r); + t = dt(t), r = /* @__PURE__ */ i(function(l) { + return s(a[l], l, a); + }, "predicate"); + } + var o = e(t, r, n); + return o > -1 ? a[s ? t[o] : o] : void 0; + }; +} +i(WR, "createFind"); +var EO = WR, _O = Math.max; +function VR(e, t, r) { + var n = e == null ? 0 : e.length; + if (!n) + return -1; + var a = r == null ? 0 : ks(r); + return a < 0 && (a = _O(n + a, 0)), ev(e, nr(t), a); +} +i(VR, "findIndex"); +var CO = VR, bO = EO(CO), Ua = bO; +function HR(e) { + return e && e.length ? e[0] : void 0; +} +i(HR, "head"); +var jt = HR; +function YR(e, t) { + var r = -1, n = rr(e) ? Array(e.length) : []; + return Bn(e, function(a, s, o) { + n[++r] = t(a, s, o); + }), n; +} +i(YR, "baseMap"); +var SO = YR; +function XR(e, t) { + var r = ne(e) ? Ns : SO; + return r(e, nr(t)); +} +i(XR, "map"); +var F = XR; +function JR(e, t) { + return up(F(e, t), 1); +} +i(JR, "flatMap"); +var _t = JR, wO = Object.prototype, IO = wO.hasOwnProperty, NO = hO(function(e, t, r) { + IO.call(e, r) ? e[r].push(t) : rp(e, r, [t]); +}), kO = NO, PO = Object.prototype, OO = PO.hasOwnProperty; +function ZR(e, t) { + return e != null && OO.call(e, t); +} +i(ZR, "baseHas"); +var LO = ZR; +function QR(e, t) { + return e != null && yR(e, t, LO); +} +i(QR, "has"); +var U = QR, DO = "[object String]"; +function e$(e) { + return typeof e == "string" || !ne(e) && Gt(e) && qr(e) == DO; +} +i(e$, "isString"); +var it = e$; +function t$(e, t) { + return Ns(t, function(r) { + return e[r]; + }); +} +i(t$, "baseValues"); +var MO = t$; +function r$(e) { + return e == null ? [] : MO(e, dt(e)); +} +i(r$, "values"); +var xe = r$, xO = Math.max; +function n$(e, t, r, n) { + e = rr(e) ? e : xe(e), r = r && !n ? ks(r) : 0; + var a = e.length; + return r < 0 && (r = xO(a + r, 0)), it(e) ? r <= a && e.indexOf(t, r) > -1 : !!a && tp(e, t, r) > -1; +} +i(n$, "includes"); +var tt = n$, FO = Math.max; +function a$(e, t, r) { + var n = e == null ? 0 : e.length; + if (!n) + return -1; + var a = r == null ? 0 : ks(r); + return a < 0 && (a = FO(n + a, 0)), tp(e, t, a); +} +i(a$, "indexOf"); +var gm = a$, GO = "[object Map]", jO = "[object Set]", UO = Object.prototype, zO = UO.hasOwnProperty; +function i$(e) { + if (e == null) + return !0; + if (rr(e) && (ne(e) || typeof e == "string" || typeof e.splice == "function" || ls(e) || ip(e) || Bl(e))) + return !e.length; + var t = ja(e); + if (t == GO || t == jO) + return !e.size; + if (Ls(e)) + return !kv(e).length; + for (var r in e) + if (zO.call(e, r)) + return !1; + return !0; +} +i(i$, "isEmpty"); +var he = i$, BO = "[object RegExp]"; +function s$(e) { + return Gt(e) && qr(e) == BO; +} +i(s$, "baseIsRegExp"); +var KO = s$, ym = Gr && Gr.isRegExp, qO = ym ? Ds(ym) : KO, $r = qO; +function o$(e) { + return e === void 0; +} +i(o$, "isUndefined"); +var Ar = o$, WO = "Expected a function"; +function l$(e) { + if (typeof e != "function") + throw new TypeError(WO); + 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); + }; +} +i(l$, "negate"); +var VO = l$; +function c$(e, t, r, n) { + if (!bt(e)) + return e; + t = Xl(t, e); + for (var a = -1, s = t.length, o = s - 1, l = e; l != null && ++a < s; ) { + var c = Ms(t[a]), u = r; + if (c === "__proto__" || c === "constructor" || c === "prototype") + return e; + if (a != o) { + var f = l[c]; + u = n ? n(f, c, l) : void 0, u === void 0 && (u = bt(f) ? f : jl(t[a + 1]) ? [] : {}); + } + Ul(l, c, u), l = l[c]; + } + return e; +} +i(c$, "baseSet"); +var HO = c$; +function u$(e, t, r) { + for (var n = -1, a = t.length, s = {}; ++n < a; ) { + var o = t[n], l = op(e, o); + r(l, o) && HO(s, Xl(o, e), l); + } + return s; +} +i(u$, "basePickBy"); +var YO = u$; +function f$(e, t) { + if (e == null) + return {}; + var r = Ns(OT(e), function(n) { + return [n]; + }); + return t = nr(t), YO(e, r, function(n, a) { + return t(n, a[0]); + }); +} +i(f$, "pickBy"); +var Ut = f$; +function d$(e, t, r, n, a) { + return a(e, function(s, o, l) { + r = n ? (n = !1, s) : t(r, s, o, l); + }), r; +} +i(d$, "baseReduce"); +var XO = d$; +function p$(e, t, r) { + var n = ne(e) ? Dk : XO, a = arguments.length < 3; + return n(e, nr(t), r, a, Bn); +} +i(p$, "reduce"); +var ht = p$; +function h$(e, t) { + var r = ne(e) ? fp : KR; + return r(e, VO(nr(t))); +} +i(h$, "reject"); +var Zl = h$; +function m$(e, t) { + var r; + return Bn(e, function(n, a, s) { + return r = t(n, a, s), !r; + }), !!r; +} +i(m$, "baseSome"); +var JO = m$; +function g$(e, t, r) { + var n = ne(e) ? ZT : JO; + return r && zl(e, t, r) && (t = void 0), n(e, nr(t)); +} +i(g$, "some"); +var y$ = g$, ZO = 1 / 0, QO = Ia && 1 / gp(new Ia([, -0]))[1] == ZO ? function(e) { + return new Ia(e); +} : Me, eL = QO, tL = 200; +function v$(e, t, r) { + var n = -1, a = iv, s = e.length, o = !0, l = [], c = l; + if (r) + o = !1, a = OR; + else if (s >= tL) { + var u = t ? null : eL(e); + if (u) + return gp(u); + o = !1, a = mp, c = new hp(); + } else + c = t ? [] : l; + e: + for (; ++n < s; ) { + var f = e[n], d = t ? t(f) : f; + if (f = r || f !== 0 ? f : 0, o && d === d) { + for (var h = c.length; h--; ) + if (c[h] === d) + continue e; + t && c.push(d), l.push(f); + } else a(c, d, r) || (c !== l && c.push(d), l.push(f)); + } + return l; +} +i(v$, "baseUniq"); +var rL = v$; +function T$(e) { + return e && e.length ? rL(e) : []; +} +i(T$, "uniq"); +var Tp = T$; +function tl(e) { + console && console.error && console.error(`Error: ${e}`); +} +i(tl, "PRINT_ERROR"); +function Rp(e) { + console && console.warn && console.warn(`Warning: ${e}`); +} +i(Rp, "PRINT_WARNING"); +function $p(e) { + const t = (/* @__PURE__ */ new Date()).getTime(), r = e(); + return { time: (/* @__PURE__ */ new Date()).getTime() - t, value: r }; +} +i($p, "timer"); +function Ap(e) { + function t() { + } + i(t, "FakeConstructor"), t.prototype = e; + const r = new t(); + function n() { + return typeof r.bar; + } + return i(n, "fakeAccess"), n(), n(), e; +} +i(Ap, "toFastProperties"); +function R$(e) { + return $$(e) ? e.LABEL : e.name; +} +i(R$, "tokenLabel"); +function $$(e) { + return it(e.LABEL) && e.LABEL !== ""; +} +i($$, "hasTokenLabel"); +var ar = class { + static { + i(this, "AbstractProduction"); + } + get definition() { + return this._definition; + } + set definition(e) { + this._definition = e; + } + constructor(e) { + this._definition = e; + } + accept(e) { + e.visit(this), q(this.definition, (t) => { + t.accept(e); + }); + } +}, Ze = class extends ar { + static { + i(this, "NonTerminal"); + } + constructor(e) { + super([]), this.idx = 1, pt(this, Ut(e, (t) => t !== void 0)); + } + set definition(e) { + } + get definition() { + return this.referencedRule !== void 0 ? this.referencedRule.definition : []; + } + accept(e) { + e.visit(this); + } +}, Va = class extends ar { + static { + i(this, "Rule"); + } + constructor(e) { + super(e.definition), this.orgText = "", pt(this, Ut(e, (t) => t !== void 0)); + } +}, st = class extends ar { + static { + i(this, "Alternative"); + } + constructor(e) { + super(e.definition), this.ignoreAmbiguities = !1, pt(this, Ut(e, (t) => t !== void 0)); + } +}, Be = class extends ar { + static { + i(this, "Option"); + } + constructor(e) { + super(e.definition), this.idx = 1, pt(this, Ut(e, (t) => t !== void 0)); + } +}, mt = class extends ar { + static { + i(this, "RepetitionMandatory"); + } + constructor(e) { + super(e.definition), this.idx = 1, pt(this, Ut(e, (t) => t !== void 0)); + } +}, gt = class extends ar { + static { + i(this, "RepetitionMandatoryWithSeparator"); + } + constructor(e) { + super(e.definition), this.idx = 1, pt(this, Ut(e, (t) => t !== void 0)); + } +}, we = class extends ar { + static { + i(this, "Repetition"); + } + constructor(e) { + super(e.definition), this.idx = 1, pt(this, Ut(e, (t) => t !== void 0)); + } +}, ot = class extends ar { + static { + i(this, "RepetitionWithSeparator"); + } + constructor(e) { + super(e.definition), this.idx = 1, pt(this, Ut(e, (t) => t !== void 0)); + } +}, lt = class extends ar { + static { + i(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, pt(this, Ut(e, (t) => t !== void 0)); + } +}, Te = class { + static { + i(this, "Terminal"); + } + constructor(e) { + this.idx = 1, pt(this, Ut(e, (t) => t !== void 0)); + } + accept(e) { + e.visit(this); + } +}; +function A$(e) { + return F(e, ts); +} +i(A$, "serializeGrammar"); +function ts(e) { + function t(r) { + return F(r, ts); + } + if (i(t, "convertDefinition"), e instanceof Ze) { + const r = { + type: "NonTerminal", + name: e.nonTerminalName, + idx: e.idx + }; + return it(e.label) && (r.label = e.label), r; + } else { + if (e instanceof st) + return { + type: "Alternative", + definition: t(e.definition) + }; + if (e instanceof Be) + return { + type: "Option", + idx: e.idx, + definition: t(e.definition) + }; + if (e instanceof mt) + return { + type: "RepetitionMandatory", + idx: e.idx, + definition: t(e.definition) + }; + if (e instanceof gt) + return { + type: "RepetitionMandatoryWithSeparator", + idx: e.idx, + separator: ts(new Te({ terminalType: e.separator })), + definition: t(e.definition) + }; + if (e instanceof ot) + return { + type: "RepetitionWithSeparator", + idx: e.idx, + separator: ts(new Te({ terminalType: e.separator })), + definition: t(e.definition) + }; + if (e instanceof we) + return { + type: "Repetition", + idx: e.idx, + definition: t(e.definition) + }; + if (e instanceof lt) + return { + type: "Alternation", + idx: e.idx, + definition: t(e.definition) + }; + if (e instanceof Te) { + const r = { + type: "Terminal", + name: e.terminalType.name, + label: R$(e.terminalType), + idx: e.idx + }; + it(e.label) && (r.terminalLabel = e.label); + const n = e.terminalType.PATTERN; + return e.terminalType.PATTERN && (r.pattern = $r(n) ? n.source : n), r; + } else { + if (e instanceof Va) + return { + type: "Rule", + name: e.name, + orgText: e.orgText, + definition: t(e.definition) + }; + throw Error("non exhaustive match"); + } + } +} +i(ts, "serializeProduction"); +var Ha = class { + static { + i(this, "GAstVisitor"); + } + visit(e) { + const t = e; + switch (t.constructor) { + case Ze: + return this.visitNonTerminal(t); + case st: + return this.visitAlternative(t); + case Be: + return this.visitOption(t); + case mt: + return this.visitRepetitionMandatory(t); + case gt: + return this.visitRepetitionMandatoryWithSeparator(t); + case ot: + return this.visitRepetitionWithSeparator(t); + case we: + return this.visitRepetition(t); + case lt: + return this.visitAlternation(t); + case Te: + return this.visitTerminal(t); + case Va: + return this.visitRule(t); + /* c8 ignore next 2 */ + default: + throw Error("non exhaustive match"); + } + } + /* c8 ignore next */ + visitNonTerminal(e) { + } + /* c8 ignore next */ + visitAlternative(e) { + } + /* c8 ignore next */ + visitOption(e) { + } + /* c8 ignore next */ + visitRepetition(e) { + } + /* c8 ignore next */ + visitRepetitionMandatory(e) { + } + /* c8 ignore next 3 */ + visitRepetitionMandatoryWithSeparator(e) { + } + /* c8 ignore next */ + visitRepetitionWithSeparator(e) { + } + /* c8 ignore next */ + visitAlternation(e) { + } + /* c8 ignore next */ + visitTerminal(e) { + } + /* c8 ignore next */ + visitRule(e) { + } +}; +function E$(e) { + return e instanceof st || e instanceof Be || e instanceof we || e instanceof mt || e instanceof gt || e instanceof ot || e instanceof Te || e instanceof Va; +} +i(E$, "isSequenceProd"); +function ps(e, t = []) { + return e instanceof Be || e instanceof we || e instanceof ot ? !0 : e instanceof lt ? y$(e.definition, (n) => ps(n, t)) : e instanceof Ze && tt(t, e) ? !1 : e instanceof ar ? (e instanceof Ze && t.push(e), Ft(e.definition, (n) => ps(n, t))) : !1; +} +i(ps, "isOptionalProd"); +function _$(e) { + return e instanceof lt; +} +i(_$, "isBranchingProd"); +function Ot(e) { + if (e instanceof Ze) + return "SUBRULE"; + if (e instanceof Be) + return "OPTION"; + if (e instanceof lt) + return "OR"; + if (e instanceof mt) + return "AT_LEAST_ONE"; + if (e instanceof gt) + return "AT_LEAST_ONE_SEP"; + if (e instanceof ot) + return "MANY_SEP"; + if (e instanceof we) + return "MANY"; + if (e instanceof Te) + return "CONSUME"; + throw Error("non exhaustive match"); +} +i(Ot, "getProductionDslName"); +var Ql = class { + static { + i(this, "RestWalker"); + } + walk(e, t = []) { + q(e.definition, (r, n) => { + const a = ze(e.definition, n + 1); + if (r instanceof Ze) + this.walkProdRef(r, a, t); + else if (r instanceof Te) + this.walkTerminal(r, a, t); + else if (r instanceof st) + this.walkFlat(r, a, t); + else if (r instanceof Be) + this.walkOption(r, a, t); + else if (r instanceof mt) + this.walkAtLeastOne(r, a, t); + else if (r instanceof gt) + this.walkAtLeastOneSep(r, a, t); + else if (r instanceof ot) + this.walkManySep(r, a, t); + else if (r instanceof we) + this.walkMany(r, a, t); + else if (r instanceof lt) + this.walkOr(r, a, t); + else + throw Error("non exhaustive match"); + }); + } + walkTerminal(e, t, r) { + } + walkProdRef(e, t, r) { + } + walkFlat(e, t, r) { + const n = t.concat(r); + this.walk(e, n); + } + walkOption(e, t, r) { + const n = t.concat(r); + this.walk(e, n); + } + walkAtLeastOne(e, t, r) { + const n = [ + new Be({ definition: e.definition }) + ].concat(t, r); + this.walk(e, n); + } + walkAtLeastOneSep(e, t, r) { + const n = of(e, t, r); + this.walk(e, n); + } + walkMany(e, t, r) { + const n = [ + new Be({ definition: e.definition }) + ].concat(t, r); + this.walk(e, n); + } + walkManySep(e, t, r) { + const n = of(e, t, r); + this.walk(e, n); + } + walkOr(e, t, r) { + const n = t.concat(r); + q(e.definition, (a) => { + const s = new st({ definition: [a] }); + this.walk(s, n); + }); + } +}; +function of(e, t, r) { + return [ + new Be({ + definition: [ + new Te({ terminalType: e.separator }) + ].concat(e.definition) + }) + ].concat(t, r); +} +i(of, "restForRepetitionWithSeparator"); +function Ya(e) { + if (e instanceof Ze) + return Ya(e.referencedRule); + if (e instanceof Te) + return S$(e); + if (E$(e)) + return C$(e); + if (_$(e)) + return b$(e); + throw Error("non exhaustive match"); +} +i(Ya, "first"); +function C$(e) { + let t = []; + const r = e.definition; + let n = 0, a = r.length > n, s, o = !0; + for (; a && o; ) + s = r[n], o = ps(s), t = t.concat(Ya(s)), n = n + 1, a = r.length > n; + return Tp(t); +} +i(C$, "firstForSequence"); +function b$(e) { + const t = F(e.definition, (r) => Ya(r)); + return Tp(xt(t)); +} +i(b$, "firstForBranching"); +function S$(e) { + return [e.terminalType]; +} +i(S$, "firstForTerminal"); +var w$ = "_~IN~_", nL = class extends Ql { + static { + i(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) { + const n = N$(e.referencedRule, e.idx) + this.topProd.name, a = t.concat(r), s = new st({ definition: a }), o = Ya(s); + this.follows[n] = o; + } +}; +function I$(e) { + const t = {}; + return q(e, (r) => { + const n = new nL(r).startWalking(); + pt(t, n); + }), t; +} +i(I$, "computeAllProdsFollows"); +function N$(e, t) { + return e.name + t + w$; +} +i(N$, "buildBetweenProdsFollowPrefix"); +var Ro = {}, aL = new ly(); +function Fs(e) { + const t = e.toString(); + if (Ro.hasOwnProperty(t)) + return Ro[t]; + { + const r = aL.pattern(t); + return Ro[t] = r, r; + } +} +i(Fs, "getRegExpAst"); +function k$() { + Ro = {}; +} +i(k$, "clearRegExpParserCache"); +var P$ = "Complement Sets are not supported for first char optimization", rl = `Unable to use "first char" lexer optimizations: +`; +function O$(e, t = !1) { + try { + const r = Fs(e); + return nl(r.value, {}, r.flags.ignoreCase); + } catch (r) { + if (r.message === P$) + t && Rp(`${rl} 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.`), tl(`${rl} + Failed parsing: < ${e.toString()} > + Using the @chevrotain/regexp-to-ast library + Please open an issue at: https://github.com/chevrotain/chevrotain/issues` + n); + } + } + return []; +} +i(O$, "getOptimizedStartCodesIndices"); +function nl(e, t, r) { + switch (e.type) { + case "Disjunction": + for (let a = 0; a < e.value.length; a++) + nl(e.value[a], t, r); + break; + case "Alternative": + const n = e.value; + for (let a = 0; a < n.length; a++) { + const s = n[a]; + switch (s.type) { + case "EndAnchor": + // A group back reference cannot affect potential starting char. + // because if a back reference is the first production than automatically + // the group being referenced has had to come BEFORE so its codes have already been added + case "GroupBackReference": + // assertions do not affect potential starting codes + case "Lookahead": + case "NegativeLookahead": + case "Lookbehind": + case "NegativeLookbehind": + case "StartAnchor": + case "WordBoundary": + case "NonWordBoundary": + continue; + } + const o = s; + switch (o.type) { + case "Character": + Gi(o.value, t, r); + break; + case "Set": + if (o.complement === !0) + throw Error(P$); + q(o.value, (c) => { + if (typeof c == "number") + Gi(c, t, r); + else { + const u = c; + if (r === !0) + for (let f = u.from; f <= u.to; f++) + Gi(f, t, r); + else { + for (let f = u.from; f <= u.to && f < Ui; f++) + Gi(f, t, r); + if (u.to >= Ui) { + const f = u.from >= Ui ? u.from : Ui, d = u.to, h = Er(f), y = Er(d); + for (let v = h; v <= y; v++) + t[v] = v; + } + } + } + }); + break; + case "Group": + nl(o.value, t, r); + break; + /* istanbul ignore next */ + default: + throw Error("Non Exhaustive Match"); + } + const l = o.quantifier !== void 0 && o.quantifier.atLeast === 0; + if ( + // A group may be optional due to empty contents /(?:)/ + // or if everything inside it is optional /((a)?)/ + o.type === "Group" && al(o) === !1 || // If this term is not a group it may only be optional if it has an optional quantifier + o.type !== "Group" && l === !1 + ) + break; + } + break; + /* istanbul ignore next */ + default: + throw Error("non exhaustive match!"); + } + return xe(t); +} +i(nl, "firstCharOptimizedIndices"); +function Gi(e, t, r) { + const n = Er(e); + t[n] = n, r === !0 && L$(e, t); +} +i(Gi, "addOptimizedIdxToResult"); +function L$(e, t) { + const r = String.fromCharCode(e), n = r.toUpperCase(); + if (n !== r) { + const a = Er(n.charCodeAt(0)); + t[a] = a; + } else { + const a = r.toLowerCase(); + if (a !== r) { + const s = Er(a.charCodeAt(0)); + t[s] = s; + } + } +} +i(L$, "handleIgnoreCase"); +function lf(e, t) { + return Ua(e.value, (r) => { + if (typeof r == "number") + return tt(t, r); + { + const n = r; + return Ua(t, (a) => n.from <= a && a <= n.to) !== void 0; + } + }); +} +i(lf, "findCode"); +function al(e) { + const t = e.quantifier; + return t && t.atLeast === 0 ? !0 : e.value ? ne(e.value) ? Ft(e.value, al) : al(e.value) : !1; +} +i(al, "isWholeOptional"); +var iL = class extends Pl { + static { + i(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) { + tt(this.targetCharCodes, e.value) && (this.found = !0); + } + visitSet(e) { + e.complement ? lf(e, this.targetCharCodes) === void 0 && (this.found = !0) : lf(e, this.targetCharCodes) !== void 0 && (this.found = !0); + } +}; +function ec(e, t) { + if (t instanceof RegExp) { + const r = Fs(t), n = new iL(e); + return n.visit(r), n.found; + } else + return Ua(t, (r) => tt(e, r.charCodeAt(0))) !== void 0; +} +i(ec, "canMatchCharCode"); +var wn = "PATTERN", ji = "defaultMode", Vs = "modes", D$ = typeof new RegExp("(?:)").sticky == "boolean"; +function M$(e, t) { + t = vp(t, { + useSticky: D$, + debug: !1, + safeMode: !1, + positionTracking: "full", + lineTerminatorCharacters: ["\r", ` +`], + tracer: /* @__PURE__ */ i((I, A) => A(), "tracer") + }); + const r = t.tracer; + r("initCharCodeToOptimizedIndexMap", () => { + nA(); + }); + let n; + r("Reject Lexer.NA", () => { + n = Zl(e, (I) => I[wn] === Xe.NA); + }); + let a = !1, s; + r("Transform Patterns", () => { + a = !1, s = F(n, (I) => { + const A = I[wn]; + if ($r(A)) { + const k = A.source; + return k.length === 1 && // only these regExp meta characters which can appear in a length one regExp + k !== "^" && k !== "$" && k !== "." && !A.ignoreCase ? k : k.length === 2 && k[0] === "\\" && // not a meta character + !tt([ + "d", + "D", + "s", + "S", + "t", + "r", + "n", + "t", + "0", + "c", + "b", + "B", + "f", + "v", + "w", + "W" + ], k[1]) ? k[1] : t.useSticky ? uf(A) : cf(A); + } else { + if (wr(A)) + return a = !0, { exec: A }; + if (typeof A == "object") + return a = !0, A; + if (typeof A == "string") { + if (A.length === 1) + return A; + { + const k = A.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&"), G = new RegExp(k); + return t.useSticky ? uf(G) : cf(G); + } + } else + throw Error("non exhaustive match"); + } + }); + }); + let o, l, c, u, f; + r("misc mapping", () => { + o = F(n, (I) => I.tokenTypeIdx), l = F(n, (I) => { + const A = I.GROUP; + if (A !== Xe.SKIPPED) { + if (it(A)) + return A; + if (Ar(A)) + return !1; + throw Error("non exhaustive match"); + } + }), c = F(n, (I) => { + const A = I.LONGER_ALT; + if (A) + return ne(A) ? F(A, (G) => gm(n, G)) : [gm(n, A)]; + }), u = F(n, (I) => I.PUSH_MODE), f = F(n, (I) => U(I, "POP_MODE")); + }); + let d; + r("Line Terminator Handling", () => { + const I = Cp(t.lineTerminatorCharacters); + d = F(n, (A) => !1), t.positionTracking !== "onlyOffset" && (d = F(n, (A) => U(A, "LINE_BREAKS") ? !!A.LINE_BREAKS : _p(A, I) === !1 && ec(I, A.PATTERN))); + }); + let h, y, v, C; + r("Misc Mapping #2", () => { + h = F(n, Ep), y = F(s, tA), v = ht(n, (I, A) => { + const k = A.GROUP; + return it(k) && k !== Xe.SKIPPED && (I[k] = []), I; + }, {}), C = F(s, (I, A) => ({ + pattern: s[A], + longerAlt: c[A], + canLineTerminator: d[A], + isCustom: h[A], + short: y[A], + group: l[A], + push: u[A], + pop: f[A], + tokenTypeIdx: o[A], + tokenType: n[A] + })); + }); + let S = !0, w = []; + return t.safeMode || r("First Char Optimization", () => { + w = ht(n, (I, A, k) => { + if (typeof A.PATTERN == "string") { + const G = A.PATTERN.charCodeAt(0), H = Er(G); + $o(I, H, C[k]); + } else if (ne(A.START_CHARS_HINT)) { + let G; + q(A.START_CHARS_HINT, (H) => { + const X = typeof H == "string" ? H.charCodeAt(0) : H, le = Er(X); + G !== le && (G = le, $o(I, le, C[k])); + }); + } else if ($r(A.PATTERN)) + if (A.PATTERN.unicode) + S = !1, t.ensureOptimizations && tl(`${rl} Unable to analyze < ${A.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 { + const G = O$(A.PATTERN, t.ensureOptimizations); + he(G) && (S = !1), q(G, (H) => { + $o(I, H, C[k]); + }); + } + else + t.ensureOptimizations && tl(`${rl} TokenType: <${A.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 I; + }, []); + }), { + emptyGroups: v, + patternIdxToConfig: C, + charCodeToPatternIdxToConfig: w, + hasCustom: a, + canBeOptimized: S + }; +} +i(M$, "analyzeTokenTypes"); +function x$(e, t) { + let r = []; + const n = G$(e); + r = r.concat(n.errors); + const a = j$(n.valid), s = a.valid; + return r = r.concat(a.errors), r = r.concat(F$(s)), r = r.concat(W$(s)), r = r.concat(V$(s, t)), r = r.concat(H$(s)), r; +} +i(x$, "validatePatterns"); +function F$(e) { + let t = []; + const r = wt(e, (n) => $r(n[wn])); + return t = t.concat(U$(r)), t = t.concat(B$(r)), t = t.concat(K$(r)), t = t.concat(q$(r)), t = t.concat(z$(r)), t; +} +i(F$, "validateRegExpPattern"); +function G$(e) { + const t = wt(e, (a) => !U(a, wn)), r = F(t, (a) => ({ + message: "Token Type: ->" + a.name + "<- missing static 'PATTERN' property", + type: Ie.MISSING_PATTERN, + tokenTypes: [a] + })), n = Jl(e, t); + return { errors: r, valid: n }; +} +i(G$, "findMissingPatterns"); +function j$(e) { + const t = wt(e, (a) => { + const s = a[wn]; + return !$r(s) && !wr(s) && !U(s, "exec") && !it(s); + }), 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: Ie.INVALID_PATTERN, + tokenTypes: [a] + })), n = Jl(e, t); + return { errors: r, valid: n }; +} +i(j$, "findInvalidPatterns"); +var sL = /[^\\][$]/; +function U$(e) { + class t extends Pl { + static { + i(this, "EndAnchorFinder"); + } + constructor() { + super(...arguments), this.found = !1; + } + visitEndAnchor(s) { + this.found = !0; + } + } + const r = wt(e, (a) => { + const s = a.PATTERN; + try { + const o = Fs(s), l = new t(); + return l.visit(o), l.found; + } catch { + return sL.test(s.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: Ie.EOI_ANCHOR_FOUND, + tokenTypes: [a] + })); +} +i(U$, "findEndOfInputAnchor"); +function z$(e) { + const t = wt(e, (n) => n.PATTERN.test("")); + return F(t, (n) => ({ + message: "Token Type: ->" + n.name + "<- static 'PATTERN' must not match an empty string", + type: Ie.EMPTY_MATCH_PATTERN, + tokenTypes: [n] + })); +} +i(z$, "findEmptyMatchRegExps"); +var oL = /[^\\[][\^]|^\^/; +function B$(e) { + class t extends Pl { + static { + i(this, "StartAnchorFinder"); + } + constructor() { + super(...arguments), this.found = !1; + } + visitStartAnchor(s) { + this.found = !0; + } + } + const r = wt(e, (a) => { + const s = a.PATTERN; + try { + const o = Fs(s), l = new t(); + return l.visit(o), l.found; + } catch { + return oL.test(s.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: Ie.SOI_ANCHOR_FOUND, + tokenTypes: [a] + })); +} +i(B$, "findStartOfInputAnchor"); +function K$(e) { + const t = wt(e, (n) => { + const a = n[wn]; + 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: Ie.UNSUPPORTED_FLAGS_FOUND, + tokenTypes: [n] + })); +} +i(K$, "findUnsupportedFlags"); +function q$(e) { + const t = []; + let r = F(e, (s) => ht(e, (o, l) => (s.PATTERN.source === l.PATTERN.source && !tt(t, l) && l.PATTERN !== Xe.NA && (t.push(l), o.push(l)), o), [])); + r = xs(r); + const n = wt(r, (s) => s.length > 1); + return F(n, (s) => { + const o = F(s, (c) => c.name); + return { + message: `The same RegExp pattern ->${jt(s).PATTERN}<-has been used in all of the following Token Types: ${o.join(", ")} <-`, + type: Ie.DUPLICATE_PATTERNS_FOUND, + tokenTypes: s + }; + }); +} +i(q$, "findDuplicatePatterns"); +function W$(e) { + const t = wt(e, (n) => { + if (!U(n, "GROUP")) + return !1; + const a = n.GROUP; + return a !== Xe.SKIPPED && a !== Xe.NA && !it(a); + }); + return F(t, (n) => ({ + message: "Token Type: ->" + n.name + "<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String", + type: Ie.INVALID_GROUP_TYPE_FOUND, + tokenTypes: [n] + })); +} +i(W$, "findInvalidGroupType"); +function V$(e, t) { + const r = wt(e, (a) => a.PUSH_MODE !== void 0 && !tt(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: Ie.PUSH_MODE_DOES_NOT_EXIST, + tokenTypes: [a] + })); +} +i(V$, "findModesThatDoNotExist"); +function H$(e) { + const t = [], r = ht(e, (n, a, s) => { + const o = a.PATTERN; + return o === Xe.NA || (it(o) ? n.push({ str: o, idx: s, tokenType: a }) : $r(o) && X$(o) && n.push({ str: o.source, idx: s, tokenType: a })), n; + }, []); + return q(e, (n, a) => { + q(r, ({ str: s, idx: o, tokenType: l }) => { + if (a < o && Y$(s, n.PATTERN)) { + const c = `Token: ->${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: c, + type: Ie.UNREACHABLE_PATTERN, + tokenTypes: [n, l] + }); + } + }); + }), t; +} +i(H$, "findUnreachablePatterns"); +function Y$(e, t) { + if ($r(t)) { + if (J$(t)) + return !1; + const r = t.exec(e); + return r !== null && r.index === 0; + } else { + if (wr(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"); + } +} +i(Y$, "tryToMatchStrToPattern"); +function X$(e) { + return Ua([ + ".", + "\\", + "[", + "]", + "|", + "^", + "$", + "(", + ")", + "?", + "*", + "+", + "{" + ], (r) => e.source.indexOf(r) !== -1) === void 0; +} +i(X$, "noMetaChar"); +function J$(e) { + return /(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition +`, + type: Ie.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE + }), U(e, Vs) || n.push({ + message: "A MultiMode Lexer cannot be initialized without a <" + Vs + `> property in its definition +`, + type: Ie.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY + }), U(e, Vs) && U(e, ji) && !U(e.modes, e.defaultMode) && n.push({ + message: `A MultiMode Lexer cannot be initialized with a ${ji}: <${e.defaultMode}>which does not exist +`, + type: Ie.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST + }), U(e, Vs) && q(e.modes, (a, s) => { + q(a, (o, l) => { + if (Ar(o)) + n.push({ + message: `A Lexer cannot be initialized using an undefined Token Type. Mode:<${s}> at index: <${l}> +`, + type: Ie.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED + }); + else if (U(o, "LONGER_ALT")) { + const c = ne(o.LONGER_ALT) ? o.LONGER_ALT : [o.LONGER_ALT]; + q(c, (u) => { + !Ar(u) && !tt(a, u) && n.push({ + message: `A MultiMode Lexer cannot be initialized with a longer_alt <${u.name}> on token <${o.name}> outside of mode <${s}> +`, + type: Ie.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE + }); + }); + } + }); + }), n; +} +i(Z$, "performRuntimeChecks"); +function Q$(e, t, r) { + const n = []; + let a = !1; + const s = xs(xt(xe(e.modes))), o = Zl(s, (c) => c[wn] === Xe.NA), l = Cp(r); + return t && q(o, (c) => { + const u = _p(c, l); + if (u !== !1) { + const d = { + message: rA(c, u), + type: u.issue, + tokenType: c + }; + n.push(d); + } else + U(c, "LINE_BREAKS") ? c.LINE_BREAKS === !0 && (a = !0) : ec(l, c.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: Ie.NO_LINE_BREAKS_FLAGS + }), n; +} +i(Q$, "performWarningRuntimeChecks"); +function eA(e) { + const t = {}, r = dt(e); + return q(r, (n) => { + const a = e[n]; + if (ne(a)) + t[n] = []; + else + throw Error("non exhaustive match"); + }), t; +} +i(eA, "cloneEmptyGroups"); +function Ep(e) { + const t = e.PATTERN; + if ($r(t)) + return !1; + if (wr(t)) + return !0; + if (U(t, "exec")) + return !0; + if (it(t)) + return !1; + throw Error("non exhaustive match"); +} +i(Ep, "isCustomPattern"); +function tA(e) { + return it(e) && e.length === 1 ? e.charCodeAt(0) : !1; +} +i(tA, "isShortPattern"); +var lL = { + // implements /\n|\r\n?/g.test + test: /* @__PURE__ */ i(function(e) { + const t = e.length; + for (let r = this.lastIndex; r < t; r++) { + const n = e.charCodeAt(r); + if (n === 10) + return this.lastIndex = r + 1, !0; + if (n === 13) + return e.charCodeAt(r + 1) === 10 ? this.lastIndex = r + 2 : this.lastIndex = r + 1, !0; + } + return !1; + }, "test"), + lastIndex: 0 +}; +function _p(e, t) { + if (U(e, "LINE_BREAKS")) + return !1; + if ($r(e.PATTERN)) { + try { + ec(t, e.PATTERN); + } catch (r) { + return { + issue: Ie.IDENTIFY_TERMINATOR, + errMsg: r.message + }; + } + return !1; + } else { + if (it(e.PATTERN)) + return !1; + if (Ep(e)) + return { issue: Ie.CUSTOM_LINE_BREAK }; + throw Error("non exhaustive match"); + } +} +i(_p, "checkLineBreaksIssues"); +function rA(e, t) { + if (t.issue === Ie.IDENTIFY_TERMINATOR) + return `Warning: unable to identify line terminator usage in pattern. + The problem is in the <${e.name}> Token Type + Root cause: ${t.errMsg}. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`; + if (t.issue === Ie.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"); +} +i(rA, "buildLineBreakIssueMessage"); +function Cp(e) { + return F(e, (r) => it(r) ? r.charCodeAt(0) : r); +} +i(Cp, "getCharCodes"); +function $o(e, t, r) { + e[t] === void 0 ? e[t] = [r] : e[t].push(r); +} +i($o, "addToMapOfArrays"); +var Ui = 256, Ao = []; +function Er(e) { + return e < Ui ? e : Ao[e]; +} +i(Er, "charCodeToOptimizedIndex"); +function nA() { + if (he(Ao)) { + Ao = new Array(65536); + for (let e = 0; e < 65536; e++) + Ao[e] = e > 255 ? 255 + ~~(e / 255) : e; + } +} +i(nA, "initCharCodeToOptimizedIndexMap"); +function Xa(e, t) { + const r = e.tokenTypeIdx; + return r === t.tokenTypeIdx ? !0 : t.isParent === !0 && t.categoryMatchesMap[r] === !0; +} +i(Xa, "tokenStructuredMatcher"); +function hs(e, t) { + return e.tokenTypeIdx === t.tokenTypeIdx; +} +i(hs, "tokenStructuredMatcherNoCategories"); +var vm = 1, aA = {}; +function Ja(e) { + const t = iA(e); + sA(t), lA(t), oA(t), q(t, (r) => { + r.isParent = r.categoryMatches.length > 0; + }); +} +i(Ja, "augmentTokenTypes"); +function iA(e) { + let t = Ke(e), r = e, n = !0; + for (; n; ) { + r = xs(xt(F(r, (s) => s.CATEGORIES))); + const a = Jl(r, t); + t = t.concat(a), he(a) ? n = !1 : r = a; + } + return t; +} +i(iA, "expandCategories"); +function sA(e) { + q(e, (t) => { + Sp(t) || (aA[vm] = t, t.tokenTypeIdx = vm++), ff(t) && !ne(t.CATEGORIES) && (t.CATEGORIES = [t.CATEGORIES]), ff(t) || (t.CATEGORIES = []), cA(t) || (t.categoryMatches = []), uA(t) || (t.categoryMatchesMap = {}); + }); +} +i(sA, "assignTokenDefaultProps"); +function oA(e) { + q(e, (t) => { + t.categoryMatches = [], q(t.categoryMatchesMap, (r, n) => { + t.categoryMatches.push(aA[n].tokenTypeIdx); + }); + }); +} +i(oA, "assignCategoriesTokensProp"); +function lA(e) { + q(e, (t) => { + bp([], t); + }); +} +i(lA, "assignCategoriesMapProp"); +function bp(e, t) { + q(e, (r) => { + t.categoryMatchesMap[r.tokenTypeIdx] = !0; + }), q(t.CATEGORIES, (r) => { + const n = e.concat(t); + tt(n, r) || bp(n, r); + }); +} +i(bp, "singleAssignCategoriesToksMap"); +function Sp(e) { + return U(e, "tokenTypeIdx"); +} +i(Sp, "hasShortKeyProperty"); +function ff(e) { + return U(e, "CATEGORIES"); +} +i(ff, "hasCategoriesProperty"); +function cA(e) { + return U(e, "categoryMatches"); +} +i(cA, "hasExtendingTokensTypesProperty"); +function uA(e) { + return U(e, "categoryMatchesMap"); +} +i(uA, "hasExtendingTokensTypesMapProperty"); +function fA(e) { + return U(e, "tokenTypeIdx"); +} +i(fA, "isTokenType"); +var df = { + buildUnableToPopLexerModeMessage(e) { + return `Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`; + }, + buildUnexpectedCharactersMessage(e, t, r, n, a, s) { + return `unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`; + } +}, Ie; +(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"; +})(Ie || (Ie = {})); +var zi = { + deferDefinitionErrorsHandling: !1, + positionTracking: "full", + lineTerminatorsPattern: /\n|\r\n?/g, + lineTerminatorCharacters: [` +`, "\r"], + ensureOptimizations: !1, + safeMode: !1, + errorMessageProvider: df, + traceInitPerf: !1, + skipValidations: !1, + recoveryEnabled: !0 +}; +Object.freeze(zi); +var Xe = class { + static { + i(this, "Lexer"); + } + constructor(e, t = zi) { + 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++; + const s = new Array(this.traceInitIndent + 1).join(" "); + this.traceInitIndent < this.traceInitMaxIdent && console.log(`${s}--> <${n}>`); + const { time: o, value: l } = $p(a), c = o > 10 ? console.warn : console.log; + return this.traceInitIndent < this.traceInitMaxIdent && c(`${s}<-- <${n}> 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 = pt({}, zi, t); + const 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 === zi.lineTerminatorsPattern) + this.config.lineTerminatorsPattern = lL; + else if (this.config.lineTerminatorCharacters === zi.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), ne(e) ? n = { + modes: { defaultMode: Ke(e) }, + defaultMode: ji + } : (a = !1, n = Ke(e)); + }), this.config.skipValidations === !1 && (this.TRACE_INIT("performRuntimeChecks", () => { + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(Z$(n, this.trackStartLines, this.config.lineTerminatorCharacters)); + }), this.TRACE_INIT("performWarningRuntimeChecks", () => { + this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(Q$(n, this.trackStartLines, this.config.lineTerminatorCharacters)); + })), n.modes = n.modes ? n.modes : {}, q(n.modes, (o, l) => { + n.modes[l] = Zl(o, (c) => Ar(c)); + }); + const s = dt(n.modes); + if (q(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(x$(o, s)); + }), he(this.lexerDefinitionErrors)) { + Ja(o); + let c; + this.TRACE_INIT("analyzeTokenTypes", () => { + c = M$(o, { + lineTerminatorCharacters: this.config.lineTerminatorCharacters, + positionTracking: t.positionTracking, + ensureOptimizations: t.ensureOptimizations, + safeMode: t.safeMode, + tracer: this.TRACE_INIT + }); + }), this.patternIdxToConfig[l] = c.patternIdxToConfig, this.charCodeToPatternIdxToConfig[l] = c.charCodeToPatternIdxToConfig, this.emptyGroups = pt({}, this.emptyGroups, c.emptyGroups), this.hasCustom = c.hasCustom || this.hasCustom, this.canModeBeOptimized[l] = c.canBeOptimized; + } + }); + }), this.defaultMode = n.defaultMode, !he(this.lexerDefinitionErrors) && !this.config.deferDefinitionErrorsHandling) { + const l = F(this.lexerDefinitionErrors, (c) => c.message).join(`----------------------- +`); + throw new Error(`Errors detected in definition of Lexer: +` + l); + } + q(this.lexerDefinitionWarning, (o) => { + Rp(o.message); + }), this.TRACE_INIT("Choosing sub-methods implementations", () => { + if (D$ ? (this.chopInput = Ga, this.match = this.matchWithTest) : (this.updateLastIndex = Me, this.match = this.matchWithExec), a && (this.handleModes = Me), this.trackStartLines === !1 && (this.computeNewColumn = Ga), this.trackEndLines === !1 && (this.updateTokenEndLineColumnLocation = Me), /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", () => { + const o = ht(this.canModeBeOptimized, (l, c, u) => (c === !1 && l.push(u), l), []); + if (t.ensureOptimizations && !he(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", () => { + k$(); + }), this.TRACE_INIT("toFastProperties", () => { + Ap(this); + }); + }); + } + tokenize(e, t = this.defaultMode) { + if (!he(this.lexerDefinitionErrors)) { + const 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); + } + // There is quite a bit of duplication between this and "tokenizeInternalLazy" + // This is intentional due to performance considerations. + // this method also used quite a bit of `!` none null assertions because it is too optimized + // for `tsc` to always understand it is "safe" + tokenizeInternal(e, t) { + let r, n, a, s, o, l, c, u, f, d, h, y, v, C, S; + const w = e, I = w.length; + let A = 0, k = 0; + const G = this.hasCustom ? 0 : Math.floor(e.length / 10), H = new Array(G), X = []; + let le = this.trackStartLines ? 1 : void 0, ce = this.trackStartLines ? 1 : void 0; + const Ne = eA(this.emptyGroups), P = this.trackStartLines, _ = this.config.lineTerminatorsPattern; + let g = 0, E = [], T = []; + const R = [], b = []; + Object.freeze(b); + let O; + function M() { + return E; + } + i(M, "getPossiblePatternsSlow"); + function D(te) { + const fe = Er(te), ct = T[fe]; + return ct === void 0 ? b : ct; + } + i(D, "getPossiblePatternsOptimized"); + const z = /* @__PURE__ */ i((te) => { + if (R.length === 1 && // if we have both a POP_MODE and a PUSH_MODE this is in-fact a "transition" + // So no error should occur. + te.tokenType.PUSH_MODE === void 0) { + const fe = this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(te); + X.push({ + offset: te.startOffset, + line: te.startLine, + column: te.startColumn, + length: te.image.length, + message: fe + }); + } else { + R.pop(); + const fe = Sn(R); + E = this.patternIdxToConfig[fe], T = this.charCodeToPatternIdxToConfig[fe], g = E.length; + const ct = this.canModeBeOptimized[fe] && this.config.safeMode === !1; + T && ct ? O = D : O = M; + } + }, "pop_mode"); + function B(te) { + R.push(te), T = this.charCodeToPatternIdxToConfig[te], E = this.patternIdxToConfig[te], g = E.length, g = E.length; + const fe = this.canModeBeOptimized[te] && this.config.safeMode === !1; + T && fe ? O = D : O = M; + } + i(B, "push_mode"), B.call(this, t); + let Z; + const J = this.config.recoveryEnabled; + for (; A < I; ) { + l = null; + const te = w.charCodeAt(A), fe = O(te), ct = fe.length; + for (r = 0; r < ct; r++) { + Z = fe[r]; + const Re = Z.pattern; + c = null; + const Oe = Z.short; + if (Oe !== !1 ? te === Oe && (l = Re) : Z.isCustom === !0 ? (S = Re.exec(w, A, H, Ne), S !== null ? (l = S[0], S.payload !== void 0 && (c = S.payload)) : l = null) : (this.updateLastIndex(Re, A), l = this.match(Re, e, A)), l !== null) { + if (o = Z.longerAlt, o !== void 0) { + const qe = o.length; + for (a = 0; a < qe; a++) { + const be = E[o[a]], Q = be.pattern; + if (u = null, be.isCustom === !0 ? (S = Q.exec(w, A, H, Ne), S !== null ? (s = S[0], S.payload !== void 0 && (u = S.payload)) : s = null) : (this.updateLastIndex(Q, A), s = this.match(Q, e, A)), s && s.length > l.length) { + l = s, c = u, Z = be; + break; + } + } + } + break; + } + } + if (l !== null) { + if (f = l.length, d = Z.group, d !== void 0 && (h = Z.tokenTypeIdx, y = this.createTokenInstance(l, A, h, Z.tokenType, le, ce, f), this.handlePayload(y, c), d === !1 ? k = this.addToken(H, k, y) : Ne[d].push(y)), e = this.chopInput(e, f), A = A + f, ce = this.computeNewColumn(ce, f), P === !0 && Z.canLineTerminator === !0) { + let Re = 0, Oe, qe; + _.lastIndex = 0; + do + Oe = _.test(l), Oe === !0 && (qe = _.lastIndex - 1, Re++); + while (Oe === !0); + Re !== 0 && (le = le + Re, ce = f - qe, this.updateTokenEndLineColumnLocation(y, d, qe, Re, le, ce, f)); + } + this.handleModes(Z, z, B, y); + } else { + const Re = A, Oe = le, qe = ce; + let be = J === !1; + for (; be === !1 && A < I; ) + for (e = this.chopInput(e, 1), A++, n = 0; n < g; n++) { + const Q = E[n], rt = Q.pattern, me = Q.short; + if (me !== !1 ? w.charCodeAt(A) === me && (be = !0) : Q.isCustom === !0 ? be = rt.exec(w, A, H, Ne) !== null : (this.updateLastIndex(rt, A), be = rt.exec(e) !== null), be === !0) + break; + } + if (v = A - Re, ce = this.computeNewColumn(ce, v), C = this.config.errorMessageProvider.buildUnexpectedCharactersMessage(w, Re, v, Oe, qe, Sn(R)), X.push({ + offset: Re, + line: Oe, + column: qe, + length: v, + message: C + }), J === !1) + break; + } + } + return this.hasCustom || (H.length = k), { + tokens: H, + groups: Ne, + errors: X + }; + } + handleModes(e, t, r, n) { + if (e.pop === !0) { + const a = e.push; + t(n), a !== void 0 && r.call(this, a); + } else e.push !== void 0 && r.call(this, e.push); + } + chopInput(e, t) { + return e.substring(t); + } + updateLastIndex(e, t) { + e.lastIndex = t; + } + // TODO: decrease this under 600 characters? inspect stripping comments option in TSC compiler + updateTokenEndLineColumnLocation(e, t, r, n, a, s, o) { + let l, c; + t !== void 0 && (l = r === o - 1, c = l ? -1 : 0, n === 1 && l === !0 || (e.endLine = a + c, e.endColumn = s - 1 + -c)); + } + computeNewColumn(e, t) { + return e + t; + } + createOffsetOnlyToken(e, t, r, n) { + return { + image: e, + startOffset: t, + tokenTypeIdx: r, + tokenType: n + }; + } + createStartOnlyToken(e, t, r, n, a, s) { + return { + image: e, + startOffset: t, + startLine: a, + startColumn: s, + tokenTypeIdx: r, + tokenType: n + }; + } + createFullToken(e, t, r, n, a, s, o) { + return { + image: e, + startOffset: t, + endOffset: t + o - 1, + startLine: a, + endLine: a, + startColumn: s, + endColumn: s + o - 1, + tokenTypeIdx: r, + tokenType: n + }; + } + addTokenUsingPush(e, t, r) { + return e.push(r), t; + } + addTokenUsingMemberAccess(e, t, r) { + return e[t] = r, t++, t; + } + handlePayloadNoCustom(e, t) { + } + handlePayloadWithCustom(e, t) { + t !== null && (e.payload = t); + } + matchWithTest(e, t, r) { + return e.test(t) === !0 ? t.substring(r, e.lastIndex) : null; + } + matchWithExec(e, t) { + const r = e.exec(t); + return r !== null ? r[0] : null; + } +}; +Xe.SKIPPED = "This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace."; +Xe.NA = /NOT_APPLICABLE/; +function _n(e) { + return wp(e) ? e.LABEL : e.name; +} +i(_n, "tokenLabel"); +function wp(e) { + return it(e.LABEL) && e.LABEL !== ""; +} +i(wp, "hasTokenLabel"); +var cL = "parent", Tm = "categories", Rm = "label", $m = "group", Am = "push_mode", Em = "pop_mode", _m = "longer_alt", Cm = "line_breaks", bm = "start_chars_hint"; +function Na(e) { + return dA(e); +} +i(Na, "createToken"); +function dA(e) { + const t = e.pattern, r = {}; + if (r.name = e.name, Ar(t) || (r.PATTERN = t), U(e, cL)) + throw `The parent property is no longer supported. +See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`; + return U(e, Tm) && (r.CATEGORIES = e[Tm]), Ja([r]), U(e, Rm) && (r.LABEL = e[Rm]), U(e, $m) && (r.GROUP = e[$m]), U(e, Em) && (r.POP_MODE = e[Em]), U(e, Am) && (r.PUSH_MODE = e[Am]), U(e, _m) && (r.LONGER_ALT = e[_m]), U(e, Cm) && (r.LINE_BREAKS = e[Cm]), U(e, bm) && (r.START_CHARS_HINT = e[bm]), r; +} +i(dA, "createTokenInternal"); +var jr = Na({ name: "EOF", pattern: Xe.NA }); +Ja([jr]); +function Gs(e, t, r, n, a, s, o, l) { + return { + image: t, + startOffset: r, + endOffset: n, + startLine: a, + endLine: s, + startColumn: o, + endColumn: l, + tokenTypeIdx: e.tokenTypeIdx, + tokenType: e + }; +} +i(Gs, "createTokenInstance"); +function Ip(e, t) { + return Xa(e, t); +} +i(Ip, "tokenMatcher"); +var Sa = { + buildMismatchTokenMessage({ expected: e, actual: t, previous: r, ruleName: n }) { + return `Expecting ${wp(e) ? `--> ${_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 }) { + const s = "Expecting: ", l = ` +but found: '` + jt(t).image + "'"; + if (n) + return s + n + l; + { + const c = ht(e, (h, y) => h.concat(y), []), u = F(c, (h) => `[${F(h, (y) => _n(y)).join(", ")}]`), d = `one of these possible Token sequences: +${F(u, (h, y) => ` ${y + 1}. ${h}`).join(` +`)}`; + return s + d + l; + } + }, + buildEarlyExitMessage({ expectedIterationPaths: e, actual: t, customUserDescription: r, ruleName: n }) { + const a = "Expecting: ", o = ` +but found: '` + jt(t).image + "'"; + if (r) + return a + r + o; + { + const c = `expecting at least one iteration which starts with one of these possible Token sequences:: + <${F(e, (u) => `[${F(u, (f) => _n(f)).join(",")}]`).join(" ,")}>`; + return a + c + o; + } + } +}; +Object.freeze(Sa); +var uL = { + buildRuleNotFoundError(e, t) { + return "Invalid grammar, reference to a rule which is not defined: ->" + t.nonTerminalName + `<- +inside top level rule: ->` + e.name + "<-"; + } +}, $n = { + buildDuplicateFoundError(e, t) { + function r(f) { + return f instanceof Te ? f.terminalType.name : f instanceof Ze ? f.nonTerminalName : ""; + } + i(r, "getExtraProductionArgument"); + const n = e.name, a = jt(t), s = a.idx, o = Ot(a), l = r(a), c = s > 0; + let u = `->${o}${c ? s : ""}<- ${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 u = u.replace(/[ \t]+/g, " "), u = u.replace(/\s\s+/g, ` +`), u; + }, + 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) { + const 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) { + const t = F(e.prefixPath, (a) => _n(a)).join(", "), r = e.alternation.idx === 0 ? "" : e.alternation.idx; + let n = `Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in 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; + }, + buildEmptyRepetitionError(e) { + let t = Ot(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.`; + }, + // TODO: remove - `errors_public` from nyc.config.js exclude + // once this method is fully removed from this file + 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) { + const t = e.topLevelRule.name, r = F(e.leftRecursionPath, (s) => s.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.`; + }, + // TODO: remove - `errors_public` from nyc.config.js exclude + // once this method is fully removed from this file + buildInvalidRuleNameError(e) { + return "deprecated"; + }, + buildDuplicateRuleNameError(e) { + let t; + return e.topLevelRule instanceof Va ? t = e.topLevelRule.name : t = e.topLevelRule, `Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`; + } +}; +function pA(e, t) { + const r = new fL(e, t); + return r.resolveRefs(), r.errors; +} +i(pA, "resolveGrammar"); +var fL = class extends Ha { + static { + i(this, "GastRefResolverVisitor"); + } + constructor(e, t) { + super(), this.nameToTopRule = e, this.errMsgProvider = t, this.errors = []; + } + resolveRefs() { + q(xe(this.nameToTopRule), (e) => { + this.currTopLevel = e, e.accept(this); + }); + } + visitNonTerminal(e) { + const t = this.nameToTopRule[e.nonTerminalName]; + if (t) + e.referencedRule = t; + else { + const r = this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel, e); + this.errors.push({ + message: r, + type: Qe.UNRESOLVED_SUBRULE_REF, + ruleName: this.currTopLevel.name, + unresolvedRefName: e.nonTerminalName + }); + } + } +}, dL = class extends Ql { + static { + i(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 = Ke(this.path.ruleStack).reverse(), this.occurrenceStack = Ke(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) { + const n = t.concat(r); + this.updateExpectedNext(), this.walk(e.referencedRule, n); + } + } + updateExpectedNext() { + he(this.ruleStack) ? (this.nextProductionName = "", this.nextProductionOccurrence = 0, this.isAtEndOfPath = !0) : (this.nextProductionName = this.ruleStack.pop(), this.nextProductionOccurrence = this.occurrenceStack.pop()); + } +}, pL = class extends dL { + static { + i(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) { + const n = t.concat(r), a = new st({ definition: n }); + this.possibleTokTypes = Ya(a), this.found = !0; + } + } +}, tc = class extends Ql { + static { + i(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; + } +}, hL = class extends tc { + static { + i(this, "NextTerminalAfterManyWalker"); + } + walkMany(e, t, r) { + if (e.idx === this.occurrence) { + const n = jt(t.concat(r)); + this.result.isEndOfRule = n === void 0, n instanceof Te && (this.result.token = n.terminalType, this.result.occurrence = n.idx); + } else + super.walkMany(e, t, r); + } +}, Sm = class extends tc { + static { + i(this, "NextTerminalAfterManySepWalker"); + } + walkManySep(e, t, r) { + if (e.idx === this.occurrence) { + const n = jt(t.concat(r)); + this.result.isEndOfRule = n === void 0, n instanceof Te && (this.result.token = n.terminalType, this.result.occurrence = n.idx); + } else + super.walkManySep(e, t, r); + } +}, mL = class extends tc { + static { + i(this, "NextTerminalAfterAtLeastOneWalker"); + } + walkAtLeastOne(e, t, r) { + if (e.idx === this.occurrence) { + const n = jt(t.concat(r)); + this.result.isEndOfRule = n === void 0, n instanceof Te && (this.result.token = n.terminalType, this.result.occurrence = n.idx); + } else + super.walkAtLeastOne(e, t, r); + } +}, wm = class extends tc { + static { + i(this, "NextTerminalAfterAtLeastOneSepWalker"); + } + walkAtLeastOneSep(e, t, r) { + if (e.idx === this.occurrence) { + const n = jt(t.concat(r)); + this.result.isEndOfRule = n === void 0, n instanceof Te && (this.result.token = n.terminalType, this.result.occurrence = n.idx); + } else + super.walkAtLeastOneSep(e, t, r); + } +}; +function il(e, t, r = []) { + r = Ke(r); + let n = [], a = 0; + function s(l) { + return l.concat(ze(e, a + 1)); + } + i(s, "remainingPathWith"); + function o(l) { + const c = il(s(l), t, r); + return n.concat(c); + } + for (i(o, "getAlternativesForProd"); r.length < t && a < e.length; ) { + const l = e[a]; + if (l instanceof st) + return o(l.definition); + if (l instanceof Ze) + return o(l.definition); + if (l instanceof Be) + n = o(l.definition); + else if (l instanceof mt) { + const c = l.definition.concat([ + new we({ + definition: l.definition + }) + ]); + return o(c); + } else if (l instanceof gt) { + const c = [ + new st({ definition: l.definition }), + new we({ + definition: [new Te({ terminalType: l.separator })].concat(l.definition) + }) + ]; + return o(c); + } else if (l instanceof ot) { + const c = l.definition.concat([ + new we({ + definition: [new Te({ terminalType: l.separator })].concat(l.definition) + }) + ]); + n = o(c); + } else if (l instanceof we) { + const c = l.definition.concat([ + new we({ + definition: l.definition + }) + ]); + n = o(c); + } else { + if (l instanceof lt) + return q(l.definition, (c) => { + he(c.definition) === !1 && (n = o(c.definition)); + }), n; + if (l instanceof Te) + r.push(l.terminalType); + else + throw Error("non exhaustive match"); + } + a++; + } + return n.push({ + partialPath: r, + suffixDef: ze(e, a) + }), n; +} +i(il, "possiblePathsFrom"); +function Np(e, t, r, n) { + const a = "EXIT_NONE_TERMINAL", s = [a], o = "EXIT_ALTERNATIVE"; + let l = !1; + const c = t.length, u = c - n - 1, f = [], d = []; + for (d.push({ + idx: -1, + def: e, + ruleStack: [], + occurrenceStack: [] + }); !he(d); ) { + const h = d.pop(); + if (h === o) { + l && Sn(d).idx <= u && d.pop(); + continue; + } + const y = h.def, v = h.idx, C = h.ruleStack, S = h.occurrenceStack; + if (he(y)) + continue; + const w = y[0]; + if (w === a) { + const I = { + idx: v, + def: ze(y), + ruleStack: ds(C), + occurrenceStack: ds(S) + }; + d.push(I); + } else if (w instanceof Te) + if (v < c - 1) { + const I = v + 1, A = t[I]; + if (r(A, w.terminalType)) { + const k = { + idx: I, + def: ze(y), + ruleStack: C, + occurrenceStack: S + }; + d.push(k); + } + } else if (v === c - 1) + f.push({ + nextTokenType: w.terminalType, + nextTokenOccurrence: w.idx, + ruleStack: C, + occurrenceStack: S + }), l = !0; + else + throw Error("non exhaustive match"); + else if (w instanceof Ze) { + const I = Ke(C); + I.push(w.nonTerminalName); + const A = Ke(S); + A.push(w.idx); + const k = { + idx: v, + def: w.definition.concat(s, ze(y)), + ruleStack: I, + occurrenceStack: A + }; + d.push(k); + } else if (w instanceof Be) { + const I = { + idx: v, + def: ze(y), + ruleStack: C, + occurrenceStack: S + }; + d.push(I), d.push(o); + const A = { + idx: v, + def: w.definition.concat(ze(y)), + ruleStack: C, + occurrenceStack: S + }; + d.push(A); + } else if (w instanceof mt) { + const I = new we({ + definition: w.definition, + idx: w.idx + }), A = w.definition.concat([I], ze(y)), k = { + idx: v, + def: A, + ruleStack: C, + occurrenceStack: S + }; + d.push(k); + } else if (w instanceof gt) { + const I = new Te({ + terminalType: w.separator + }), A = new we({ + definition: [I].concat(w.definition), + idx: w.idx + }), k = w.definition.concat([A], ze(y)), G = { + idx: v, + def: k, + ruleStack: C, + occurrenceStack: S + }; + d.push(G); + } else if (w instanceof ot) { + const I = { + idx: v, + def: ze(y), + ruleStack: C, + occurrenceStack: S + }; + d.push(I), d.push(o); + const A = new Te({ + terminalType: w.separator + }), k = new we({ + definition: [A].concat(w.definition), + idx: w.idx + }), G = w.definition.concat([k], ze(y)), H = { + idx: v, + def: G, + ruleStack: C, + occurrenceStack: S + }; + d.push(H); + } else if (w instanceof we) { + const I = { + idx: v, + def: ze(y), + ruleStack: C, + occurrenceStack: S + }; + d.push(I), d.push(o); + const A = new we({ + definition: w.definition, + idx: w.idx + }), k = w.definition.concat([A], ze(y)), G = { + idx: v, + def: k, + ruleStack: C, + occurrenceStack: S + }; + d.push(G); + } else if (w instanceof lt) + for (let I = w.definition.length - 1; I >= 0; I--) { + const A = w.definition[I], k = { + idx: v, + def: A.definition.concat(ze(y)), + ruleStack: C, + occurrenceStack: S + }; + d.push(k), d.push(o); + } + else if (w instanceof st) + d.push({ + idx: v, + def: w.definition.concat(ze(y)), + ruleStack: C, + occurrenceStack: S + }); + else if (w instanceof Va) + d.push(hA(w, v, C, S)); + else + throw Error("non exhaustive match"); + } + return f; +} +i(Np, "nextPossibleTokensAfter"); +function hA(e, t, r, n) { + const a = Ke(r); + a.push(e.name); + const s = Ke(n); + return s.push(1), { + idx: t, + def: e.definition, + ruleStack: a, + occurrenceStack: s + }; +} +i(hA, "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 rc(e) { + if (e instanceof Be || e === "Option") + return _e.OPTION; + if (e instanceof we || e === "Repetition") + return _e.REPETITION; + if (e instanceof mt || e === "RepetitionMandatory") + return _e.REPETITION_MANDATORY; + if (e instanceof gt || e === "RepetitionMandatoryWithSeparator") + return _e.REPETITION_MANDATORY_WITH_SEPARATOR; + if (e instanceof ot || e === "RepetitionWithSeparator") + return _e.REPETITION_WITH_SEPARATOR; + if (e instanceof lt || e === "Alternation") + return _e.ALTERNATION; + throw Error("non exhaustive match"); +} +i(rc, "getProdType"); +function pf(e) { + const { occurrence: t, rule: r, prodType: n, maxLookahead: a } = e, s = rc(n); + return s === _e.ALTERNATION ? js(t, r, a) : Us(t, r, s, a); +} +i(pf, "getLookaheadPaths"); +function mA(e, t, r, n, a, s) { + const o = js(e, t, r), l = Pp(o) ? hs : Xa; + return s(o, n, l, a); +} +i(mA, "buildLookaheadFuncForOr"); +function gA(e, t, r, n, a, s) { + const o = Us(e, t, a, r), l = Pp(o) ? hs : Xa; + return s(o[0], l, n); +} +i(gA, "buildLookaheadFuncForOptionalProd"); +function yA(e, t, r, n) { + const a = e.length, s = Ft(e, (o) => Ft(o, (l) => l.length === 1)); + if (t) + return function(o) { + const l = F(o, (c) => c.GATE); + for (let c = 0; c < a; c++) { + const u = e[c], f = u.length, d = l[c]; + if (!(d !== void 0 && d.call(this) === !1)) + e: for (let h = 0; h < f; h++) { + const y = u[h], v = y.length; + for (let C = 0; C < v; C++) { + const S = this.LA(C + 1); + if (r(S, y[C]) === !1) + continue e; + } + return c; + } + } + }; + if (s && !n) { + const o = F(e, (c) => xt(c)), l = ht(o, (c, u, f) => (q(u, (d) => { + U(c, d.tokenTypeIdx) || (c[d.tokenTypeIdx] = f), q(d.categoryMatches, (h) => { + U(c, h) || (c[h] = f); + }); + }), c), {}); + return function() { + const c = this.LA(1); + return l[c.tokenTypeIdx]; + }; + } else + return function() { + for (let o = 0; o < a; o++) { + const l = e[o], c = l.length; + e: for (let u = 0; u < c; u++) { + const f = l[u], d = f.length; + for (let h = 0; h < d; h++) { + const y = this.LA(h + 1); + if (r(y, f[h]) === !1) + continue e; + } + return o; + } + } + }; +} +i(yA, "buildAlternativesLookAheadFunc"); +function vA(e, t, r) { + const n = Ft(e, (s) => s.length === 1), a = e.length; + if (n && !r) { + const s = xt(e); + if (s.length === 1 && he(s[0].categoryMatches)) { + const l = s[0].tokenTypeIdx; + return function() { + return this.LA(1).tokenTypeIdx === l; + }; + } else { + const o = ht(s, (l, c, u) => (l[c.tokenTypeIdx] = !0, q(c.categoryMatches, (f) => { + l[f] = !0; + }), l), []); + return function() { + const l = this.LA(1); + return o[l.tokenTypeIdx] === !0; + }; + } + } else + return function() { + e: for (let s = 0; s < a; s++) { + const o = e[s], l = o.length; + for (let c = 0; c < l; c++) { + const u = this.LA(c + 1); + if (t(u, o[c]) === !1) + continue e; + } + return !0; + } + return !1; + }; +} +i(vA, "buildSingleAlternativeLookaheadFunction"); +var gL = class extends Ql { + static { + i(this, "RestDefinitionFinderWalker"); + } + constructor(e, t, r) { + super(), this.topProd = e, this.targetOccurrence = t, this.targetProdType = r; + } + startWalking() { + return this.walk(this.topProd), this.restDef; + } + checkIsTarget(e, t, r, n) { + return e.idx === this.targetOccurrence && this.targetProdType === t ? (this.restDef = r.concat(n), !0) : !1; + } + walkOption(e, t, r) { + this.checkIsTarget(e, _e.OPTION, t, r) || super.walkOption(e, t, r); + } + walkAtLeastOne(e, t, r) { + this.checkIsTarget(e, _e.REPETITION_MANDATORY, t, r) || super.walkOption(e, t, r); + } + walkAtLeastOneSep(e, t, r) { + this.checkIsTarget(e, _e.REPETITION_MANDATORY_WITH_SEPARATOR, t, r) || super.walkOption(e, t, r); + } + walkMany(e, t, r) { + this.checkIsTarget(e, _e.REPETITION, t, r) || super.walkOption(e, t, r); + } + walkManySep(e, t, r) { + this.checkIsTarget(e, _e.REPETITION_WITH_SEPARATOR, t, r) || super.walkOption(e, t, r); + } +}, TA = class extends Ha { + static { + i(this, "InsideDefinitionFinderVisitor"); + } + constructor(e, t, r) { + super(), this.targetOccurrence = e, this.targetProdType = t, this.targetRef = r, this.result = []; + } + checkIsTarget(e, t) { + e.idx === this.targetOccurrence && this.targetProdType === t && (this.targetRef === void 0 || e === this.targetRef) && (this.result = e.definition); + } + visitOption(e) { + this.checkIsTarget(e, _e.OPTION); + } + visitRepetition(e) { + this.checkIsTarget(e, _e.REPETITION); + } + visitRepetitionMandatory(e) { + this.checkIsTarget(e, _e.REPETITION_MANDATORY); + } + visitRepetitionMandatoryWithSeparator(e) { + this.checkIsTarget(e, _e.REPETITION_MANDATORY_WITH_SEPARATOR); + } + visitRepetitionWithSeparator(e) { + this.checkIsTarget(e, _e.REPETITION_WITH_SEPARATOR); + } + visitAlternation(e) { + this.checkIsTarget(e, _e.ALTERNATION); + } +}; +function hf(e) { + const t = new Array(e); + for (let r = 0; r < e; r++) + t[r] = []; + return t; +} +i(hf, "initializeArrayOfArrays"); +function Eo(e) { + let t = [""]; + for (let r = 0; r < e.length; r++) { + const n = e[r], a = []; + for (let s = 0; s < t.length; s++) { + const o = t[s]; + a.push(o + "_" + n.tokenTypeIdx); + for (let l = 0; l < n.categoryMatches.length; l++) { + const c = "_" + n.categoryMatches[l]; + a.push(o + c); + } + } + t = a; + } + return t; +} +i(Eo, "pathToHashKeys"); +function RA(e, t, r) { + for (let n = 0; n < e.length; n++) { + if (n === r) + continue; + const a = e[n]; + for (let s = 0; s < t.length; s++) { + const o = t[s]; + if (a[o] === !0) + return !1; + } + } + return !0; +} +i(RA, "isUniquePrefixHash"); +function kp(e, t) { + const r = F(e, (o) => il([o], 1)), n = hf(r.length), a = F(r, (o) => { + const l = {}; + return q(o, (c) => { + const u = Eo(c.partialPath); + q(u, (f) => { + l[f] = !0; + }); + }), l; + }); + let s = r; + for (let o = 1; o <= t; o++) { + const l = s; + s = hf(l.length); + for (let c = 0; c < l.length; c++) { + const u = l[c]; + for (let f = 0; f < u.length; f++) { + const d = u[f].partialPath, h = u[f].suffixDef, y = Eo(d); + if (RA(a, y, c) || he(h) || d.length === t) { + const C = n[c]; + if (sl(C, d) === !1) { + C.push(d); + for (let S = 0; S < y.length; S++) { + const w = y[S]; + a[c][w] = !0; + } + } + } else { + const C = il(h, o + 1, d); + s[c] = s[c].concat(C), q(C, (S) => { + const w = Eo(S.partialPath); + q(w, (I) => { + a[c][I] = !0; + }); + }); + } + } + } + } + return n; +} +i(kp, "lookAheadSequenceFromAlternatives"); +function js(e, t, r, n) { + const a = new TA(e, _e.ALTERNATION, n); + return t.accept(a), kp(a.result, r); +} +i(js, "getLookaheadPathsForOr"); +function Us(e, t, r, n) { + const a = new TA(e, r); + t.accept(a); + const s = a.result, l = new gL(t, e, r).startWalking(), c = new st({ definition: s }), u = new st({ definition: l }); + return kp([c, u], n); +} +i(Us, "getLookaheadPathsForOptionalProd"); +function sl(e, t) { + e: for (let r = 0; r < e.length; r++) { + const n = e[r]; + if (n.length === t.length) { + for (let a = 0; a < n.length; a++) { + const s = t[a], o = n[a]; + if ((s === o || o.categoryMatchesMap[s.tokenTypeIdx] !== void 0) === !1) + continue e; + } + return !0; + } + } + return !1; +} +i(sl, "containsPath"); +function $A(e, t) { + return e.length < t.length && Ft(e, (r, n) => { + const a = t[n]; + return r === a || a.categoryMatchesMap[r.tokenTypeIdx]; + }); +} +i($A, "isStrictPrefixOfPath"); +function Pp(e) { + return Ft(e, (t) => Ft(t, (r) => Ft(r, (n) => he(n.categoryMatches)))); +} +i(Pp, "areTokenCategoriesNotUsed"); +function AA(e) { + const t = e.lookaheadStrategy.validate({ + rules: e.rules, + tokenTypes: e.tokenTypes, + grammarName: e.grammarName + }); + return F(t, (r) => Object.assign({ type: Qe.CUSTOM_LOOKAHEAD_VALIDATION }, r)); +} +i(AA, "validateLookahead"); +function EA(e, t, r, n) { + const a = _t(e, (c) => _A(c, r)), s = LA(e, t, r), o = _t(e, (c) => NA(c, r)), l = _t(e, (c) => bA(c, e, n, r)); + return a.concat(s, o, l); +} +i(EA, "validateGrammar"); +function _A(e, t) { + const r = new yL(); + e.accept(r); + const n = r.allProductions, a = kO(n, CA), s = Ut(a, (l) => l.length > 1); + return F(xe(s), (l) => { + const c = jt(l), u = t.buildDuplicateFoundError(e, l), f = Ot(c), d = { + message: u, + type: Qe.DUPLICATE_PRODUCTIONS, + ruleName: e.name, + dslName: f, + occurrence: c.idx + }, h = Op(c); + return h && (d.parameter = h), d; + }); +} +i(_A, "validateDuplicateProductions"); +function CA(e) { + return `${Ot(e)}_#_${e.idx}_#_${Op(e)}`; +} +i(CA, "identifyProductionForDuplicates"); +function Op(e) { + return e instanceof Te ? e.terminalType.name : e instanceof Ze ? e.nonTerminalName : ""; +} +i(Op, "getExtraProductionArgument"); +var yL = class extends Ha { + static { + i(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 bA(e, t, r, n) { + const a = []; + if (ht(t, (o, l) => l.name === e.name ? o + 1 : o, 0) > 1) { + const o = n.buildDuplicateRuleNameError({ + topLevelRule: e, + grammarName: r + }); + a.push({ + message: o, + type: Qe.DUPLICATE_RULE_NAME, + ruleName: e.name + }); + } + return a; +} +i(bA, "validateRuleDoesNotAlreadyExist"); +function SA(e, t, r) { + const n = []; + let a; + return tt(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: Qe.INVALID_RULE_OVERRIDE, + ruleName: e + })), n; +} +i(SA, "validateRuleIsOverridden"); +function Lp(e, t, r, n = []) { + const a = [], s = rs(t.definition); + if (he(s)) + return []; + { + const o = e.name; + tt(s, e) && a.push({ + message: r.buildLeftRecursionError({ + topLevelRule: e, + leftRecursionPath: n + }), + type: Qe.LEFT_RECURSION, + ruleName: o + }); + const c = Jl(s, n.concat([e])), u = _t(c, (f) => { + const d = Ke(n); + return d.push(f), Lp(e, f, r, d); + }); + return a.concat(u); + } +} +i(Lp, "validateNoLeftRecursion"); +function rs(e) { + let t = []; + if (he(e)) + return t; + const r = jt(e); + if (r instanceof Ze) + t.push(r.referencedRule); + else if (r instanceof st || r instanceof Be || r instanceof mt || r instanceof gt || r instanceof ot || r instanceof we) + t = t.concat(rs(r.definition)); + else if (r instanceof lt) + t = xt(F(r.definition, (s) => rs(s.definition))); + else if (!(r instanceof Te)) throw Error("non exhaustive match"); + const n = ps(r), a = e.length > 1; + if (n && a) { + const s = ze(e); + return t.concat(rs(s)); + } else + return t; +} +i(rs, "getFirstNoneTerminal"); +var Dp = class extends Ha { + static { + i(this, "OrCollector"); + } + constructor() { + super(...arguments), this.alternations = []; + } + visitAlternation(e) { + this.alternations.push(e); + } +}; +function wA(e, t) { + const r = new Dp(); + e.accept(r); + const n = r.alternations; + return _t(n, (s) => { + const o = ds(s.definition); + return _t(o, (l, c) => { + const u = Np([l], [], Xa, 1); + return he(u) ? [ + { + message: t.buildEmptyAlternationError({ + topLevelRule: e, + alternation: s, + emptyChoiceIdx: c + }), + type: Qe.NONE_LAST_EMPTY_ALT, + ruleName: e.name, + occurrence: s.idx, + alternative: c + 1 + } + ] : []; + }); + }); +} +i(wA, "validateEmptyOrAlternative"); +function IA(e, t, r) { + const n = new Dp(); + e.accept(n); + let a = n.alternations; + return a = Zl(a, (o) => o.ignoreAmbiguities === !0), _t(a, (o) => { + const l = o.idx, c = o.maxLookahead || t, u = js(l, e, c, o), f = PA(u, o, e, r), d = OA(u, o, e, r); + return f.concat(d); + }); +} +i(IA, "validateAmbiguousAlternationAlternatives"); +var vL = class extends Ha { + static { + i(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 NA(e, t) { + const r = new Dp(); + e.accept(r); + const n = r.alternations; + return _t(n, (s) => s.definition.length > 255 ? [ + { + message: t.buildTooManyAlternativesError({ + topLevelRule: e, + alternation: s + }), + type: Qe.TOO_MANY_ALTS, + ruleName: e.name, + occurrence: s.idx + } + ] : []); +} +i(NA, "validateTooManyAlts"); +function kA(e, t, r) { + const n = []; + return q(e, (a) => { + const s = new vL(); + a.accept(s); + const o = s.allProductions; + q(o, (l) => { + const c = rc(l), u = l.maxLookahead || t, f = l.idx, h = Us(f, a, c, u)[0]; + if (he(xt(h))) { + const y = r.buildEmptyRepetitionError({ + topLevelRule: a, + repetition: l + }); + n.push({ + message: y, + type: Qe.NO_NON_EMPTY_LOOKAHEAD, + ruleName: a.name + }); + } + }); + }), n; +} +i(kA, "validateSomeNonEmptyLookaheadPath"); +function PA(e, t, r, n) { + const a = [], s = ht(e, (l, c, u) => (t.definition[u].ignoreAmbiguities === !0 || q(c, (f) => { + const d = [u]; + q(e, (h, y) => { + u !== y && sl(h, f) && // ignore (skip) ambiguities with this "other" alternative + t.definition[y].ignoreAmbiguities !== !0 && d.push(y); + }), d.length > 1 && !sl(a, f) && (a.push(f), l.push({ + alts: d, + path: f + })); + }), l), []); + return F(s, (l) => { + const c = F(l.alts, (f) => f + 1); + return { + message: n.buildAlternationAmbiguityError({ + topLevelRule: r, + alternation: t, + ambiguityIndices: c, + prefixPath: l.path + }), + type: Qe.AMBIGUOUS_ALTS, + ruleName: r.name, + occurrence: t.idx, + alternatives: l.alts + }; + }); +} +i(PA, "checkAlternativesAmbiguities"); +function OA(e, t, r, n) { + const a = ht(e, (o, l, c) => { + const u = F(l, (f) => ({ idx: c, path: f })); + return o.concat(u); + }, []); + return xs(_t(a, (o) => { + if (t.definition[o.idx].ignoreAmbiguities === !0) + return []; + const c = o.idx, u = o.path, f = wt(a, (h) => ( + // ignore (skip) ambiguities with this "other" alternative + t.definition[h.idx].ignoreAmbiguities !== !0 && h.idx < c && // checking for strict prefix because identical lookaheads + // will be be detected using a different validation. + $A(h.path, u) + )); + return F(f, (h) => { + const y = [h.idx + 1, c + 1], v = t.idx === 0 ? "" : t.idx; + return { + message: n.buildAlternationPrefixAmbiguityError({ + topLevelRule: r, + alternation: t, + ambiguityIndices: y, + prefixPath: h.path + }), + type: Qe.AMBIGUOUS_PREFIX_ALTS, + ruleName: r.name, + occurrence: v, + alternatives: y + }; + }); + })); +} +i(OA, "checkPrefixAlternativesAmbiguities"); +function LA(e, t, r) { + const n = [], a = F(t, (s) => s.name); + return q(e, (s) => { + const o = s.name; + if (tt(a, o)) { + const l = r.buildNamespaceConflictError(s); + n.push({ + message: l, + type: Qe.CONFLICT_TOKENS_RULES_NAMESPACE, + ruleName: o + }); + } + }), n; +} +i(LA, "checkTerminalAndNoneTerminalsNameSpace"); +function DA(e) { + const t = vp(e, { + errMsgProvider: uL + }), r = {}; + return q(e.rules, (n) => { + r[n.name] = n; + }), pA(r, t.errMsgProvider); +} +i(DA, "resolveGrammar"); +function MA(e) { + return e = vp(e, { + errMsgProvider: $n + }), EA(e.rules, e.tokenTypes, e.errMsgProvider, e.grammarName); +} +i(MA, "validateGrammar"); +var xA = "MismatchedTokenException", FA = "NoViableAltException", GA = "EarlyExitException", jA = "NotAllInputParsedException", UA = [ + xA, + FA, + GA, + jA +]; +Object.freeze(UA); +function ms(e) { + return tt(UA, e.name); +} +i(ms, "isRecognitionException"); +var nc = class extends Error { + static { + i(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); + } +}, zA = class extends nc { + static { + i(this, "MismatchedTokenException"); + } + constructor(e, t, r) { + super(e, t), this.previousToken = r, this.name = xA; + } +}, TL = class extends nc { + static { + i(this, "NoViableAltException"); + } + constructor(e, t, r) { + super(e, t), this.previousToken = r, this.name = FA; + } +}, RL = class extends nc { + static { + i(this, "NotAllInputParsedException"); + } + constructor(e, t) { + super(e, t), this.name = jA; + } +}, $L = class extends nc { + static { + i(this, "EarlyExitException"); + } + constructor(e, t, r) { + super(e, t), this.previousToken = r, this.name = GA; + } +}, Lc = {}, BA = "InRuleRecoveryException", AL = class extends Error { + static { + i(this, "InRuleRecoveryException"); + } + constructor(e) { + super(e), this.name = BA; + } +}, EL = class { + static { + i(this, "Recoverable"); + } + initRecoverable(e) { + this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = U(e, "recoveryEnabled") ? e.recoveryEnabled : _r.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = KA); + } + getTokenToInsert(e) { + const t = Gs(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) { + const a = this.findReSyncTokenType(), s = this.exportLexerState(), o = []; + let l = !1; + const c = this.LA(1); + let u = this.LA(1); + const f = /* @__PURE__ */ i(() => { + const d = this.LA(0), h = this.errorMessageProvider.buildMismatchTokenMessage({ + expected: n, + actual: c, + previous: d, + ruleName: this.getCurrRuleFullName() + }), y = new zA(h, c, this.LA(0)); + y.resyncedTokens = ds(o), this.SAVE_ERROR(y); + }, "generateErrorMessage"); + for (; !l; ) + if (this.tokenMatcher(u, n)) { + f(); + return; + } else if (r.call(this)) { + f(), e.apply(this, t); + return; + } else this.tokenMatcher(u, a) ? l = !0 : (u = this.SKIP_TOKEN(), this.addToResyncTokens(u, o)); + this.importLexerState(s); + } + shouldInRepetitionRecoveryBeTried(e, t, r) { + return !(r === !1 || this.tokenMatcher(this.LA(1), e) || this.isBackTracking() || this.canPerformInRuleRecovery(e, this.getFollowsForInRuleRecovery(e, t))); + } + // Error Recovery functionality + getFollowsForInRuleRecovery(e, t) { + const 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)) { + const r = this.SKIP_TOKEN(); + return this.consumeToken(), r; + } + throw new AL("sad sad panda"); + } + canPerformInRuleRecovery(e, t) { + return this.canRecoverWithSingleTokenInsertion(e, t) || this.canRecoverWithSingleTokenDeletion(e); + } + canRecoverWithSingleTokenInsertion(e, t) { + if (!this.canTokenTypeBeInsertedInRecovery(e) || he(t)) + return !1; + const 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) { + const t = this.getCurrFollowKey(), r = this.getFollowSetFromFollowKey(t); + return tt(r, e); + } + findReSyncTokenType() { + const e = this.flattenFollowSet(); + let t = this.LA(1), r = 2; + for (; ; ) { + const n = Ua(e, (a) => Ip(t, a)); + if (n !== void 0) + return n; + t = this.LA(r), r++; + } + } + getCurrFollowKey() { + if (this.RULE_STACK.length === 1) + return Lc; + const e = this.getLastExplicitRuleShortName(), t = this.getLastExplicitRuleOccurrenceIndex(), r = this.getPreviousExplicitRuleShortName(); + return { + ruleName: this.shortRuleNameToFullName(e), + idxInCallingRule: t, + inRule: this.shortRuleNameToFullName(r) + }; + } + buildFullFollowKeyStack() { + const e = this.RULE_STACK, t = this.RULE_OCCURRENCE_STACK; + return F(e, (r, n) => n === 0 ? Lc : { + ruleName: this.shortRuleNameToFullName(r), + idxInCallingRule: t[n], + inRule: this.shortRuleNameToFullName(e[n - 1]) + }); + } + flattenFollowSet() { + const e = F(this.buildFullFollowKeyStack(), (t) => this.getFollowSetFromFollowKey(t)); + return xt(e); + } + getFollowSetFromFollowKey(e) { + if (e === Lc) + return [jr]; + const t = e.ruleName + e.idxInCallingRule + w$ + e.inRule; + return this.resyncFollows[t]; + } + // It does not make any sense to include a virtual EOF token in the list of resynced tokens + // as EOF does not really exist and thus does not contain any useful information (line/column numbers) + addToResyncTokens(e, t) { + return this.tokenMatcher(e, jr) || t.push(e), t; + } + reSyncTo(e) { + const t = []; + let r = this.LA(1); + for (; this.tokenMatcher(r, e) === !1; ) + r = this.SKIP_TOKEN(), this.addToResyncTokens(r, t); + return ds(t); + } + attemptInRepetitionRecovery(e, t, r, n, a, s, o) { + } + getCurrentGrammarPath(e, t) { + const r = this.getHumanReadableRuleStack(), n = Ke(this.RULE_OCCURRENCE_STACK); + return { + ruleStack: r, + occurrenceStack: n, + lastTok: e, + lastTokOccurrence: t + }; + } + getHumanReadableRuleStack() { + return F(this.RULE_STACK, (e) => this.shortRuleNameToFullName(e)); + } +}; +function KA(e, t, r, n, a, s, o) { + const l = this.getKeyForAutomaticLookahead(n, a); + let c = this.firstAfterRepMap[l]; + if (c === void 0) { + const h = this.getCurrRuleFullName(), y = this.getGAstProductions()[h]; + c = new s(y, a).startWalking(), this.firstAfterRepMap[l] = c; + } + let u = c.token, f = c.occurrence; + const d = c.isEndOfRule; + this.RULE_STACK.length === 1 && d && u === void 0 && (u = jr, f = 1), !(u === void 0 || f === void 0) && this.shouldInRepetitionRecoveryBeTried(u, f, o) && this.tryInRepetitionRecovery(e, t, r, u); +} +i(KA, "attemptInRepetitionRecovery"); +var _L = 4, Wr = 8, qA = 1 << Wr, WA = 2 << Wr, mf = 3 << Wr, gf = 4 << Wr, yf = 5 << Wr, _o = 6 << Wr; +function Co(e, t, r) { + return r | t | e; +} +i(Co, "getKeyForAutomaticLookahead"); +var Mp = class { + static { + i(this, "LLkLookaheadStrategy"); + } + constructor(e) { + var t; + this.maxLookahead = (t = e?.maxLookahead) !== null && t !== void 0 ? t : _r.maxLookahead; + } + validate(e) { + const t = this.validateNoLeftRecursion(e.rules); + if (he(t)) { + const r = this.validateEmptyOrAlternatives(e.rules), n = this.validateAmbiguousAlternationAlternatives(e.rules, this.maxLookahead), a = this.validateSomeNonEmptyLookaheadPath(e.rules, this.maxLookahead); + return [ + ...t, + ...r, + ...n, + ...a + ]; + } + return t; + } + validateNoLeftRecursion(e) { + return _t(e, (t) => Lp(t, t, $n)); + } + validateEmptyOrAlternatives(e) { + return _t(e, (t) => wA(t, $n)); + } + validateAmbiguousAlternationAlternatives(e, t) { + return _t(e, (r) => IA(r, t, $n)); + } + validateSomeNonEmptyLookaheadPath(e, t) { + return kA(e, t, $n); + } + buildLookaheadForAlternation(e) { + return mA(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, yA); + } + buildLookaheadForOptional(e) { + return gA(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, rc(e.prodType), vA); + } +}, CL = class { + static { + i(this, "LooksAhead"); + } + initLooksAhead(e) { + this.dynamicTokensEnabled = U(e, "dynamicTokensEnabled") ? e.dynamicTokensEnabled : _r.dynamicTokensEnabled, this.maxLookahead = U(e, "maxLookahead") ? e.maxLookahead : _r.maxLookahead, this.lookaheadStrategy = U(e, "lookaheadStrategy") ? e.lookaheadStrategy : new Mp({ maxLookahead: this.maxLookahead }), this.lookAheadFuncsCache = /* @__PURE__ */ new Map(); + } + preComputeLookaheadFunctions(e) { + q(e, (t) => { + this.TRACE_INIT(`${t.name} Rule Lookahead`, () => { + const { alternation: r, repetition: n, option: a, repetitionMandatory: s, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = VA(t); + q(r, (c) => { + const u = c.idx === 0 ? "" : c.idx; + this.TRACE_INIT(`${Ot(c)}${u}`, () => { + const f = this.lookaheadStrategy.buildLookaheadForAlternation({ + prodOccurrence: c.idx, + rule: t, + maxLookahead: c.maxLookahead || this.maxLookahead, + hasPredicates: c.hasPredicates, + dynamicTokensEnabled: this.dynamicTokensEnabled + }), d = Co(this.fullRuleNameToShort[t.name], qA, c.idx); + this.setLaFuncCache(d, f); + }); + }), q(n, (c) => { + this.computeLookaheadFunc(t, c.idx, mf, "Repetition", c.maxLookahead, Ot(c)); + }), q(a, (c) => { + this.computeLookaheadFunc(t, c.idx, WA, "Option", c.maxLookahead, Ot(c)); + }), q(s, (c) => { + this.computeLookaheadFunc(t, c.idx, gf, "RepetitionMandatory", c.maxLookahead, Ot(c)); + }), q(o, (c) => { + this.computeLookaheadFunc(t, c.idx, _o, "RepetitionMandatoryWithSeparator", c.maxLookahead, Ot(c)); + }), q(l, (c) => { + this.computeLookaheadFunc(t, c.idx, yf, "RepetitionWithSeparator", c.maxLookahead, Ot(c)); + }); + }); + }); + } + computeLookaheadFunc(e, t, r, n, a, s) { + this.TRACE_INIT(`${s}${t === 0 ? "" : t}`, () => { + const o = this.lookaheadStrategy.buildLookaheadForOptional({ + prodOccurrence: t, + rule: e, + maxLookahead: a || this.maxLookahead, + dynamicTokensEnabled: this.dynamicTokensEnabled, + prodType: n + }), l = Co(this.fullRuleNameToShort[e.name], r, t); + this.setLaFuncCache(l, o); + }); + } + // this actually returns a number, but it is always used as a string (object prop key) + getKeyForAutomaticLookahead(e, t) { + const r = this.getLastExplicitRuleShortName(); + return Co(r, e, t); + } + getLaFuncFromCache(e) { + return this.lookAheadFuncsCache.get(e); + } + /* istanbul ignore next */ + setLaFuncCache(e, t) { + this.lookAheadFuncsCache.set(e, t); + } +}, bL = class extends Ha { + static { + i(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); + } +}, Hs = new bL(); +function VA(e) { + Hs.reset(), e.accept(Hs); + const t = Hs.dslMethods; + return Hs.reset(), t; +} +i(VA, "collectMethods"); +function vf(e, t) { + isNaN(e.startOffset) === !0 ? (e.startOffset = t.startOffset, e.endOffset = t.endOffset) : e.endOffset < t.endOffset && (e.endOffset = t.endOffset); +} +i(vf, "setNodeLocationOnlyOffset"); +function Tf(e, t) { + isNaN(e.startOffset) === !0 ? (e.startOffset = t.startOffset, e.startColumn = t.startColumn, e.startLine = t.startLine, e.endOffset = t.endOffset, e.endColumn = t.endColumn, e.endLine = t.endLine) : e.endOffset < t.endOffset && (e.endOffset = t.endOffset, e.endColumn = t.endColumn, e.endLine = t.endLine); +} +i(Tf, "setNodeLocationFull"); +function HA(e, t, r) { + e.children[r] === void 0 ? e.children[r] = [t] : e.children[r].push(t); +} +i(HA, "addTerminalToCst"); +function YA(e, t, r) { + e.children[t] === void 0 ? e.children[t] = [r] : e.children[t].push(r); +} +i(YA, "addNoneTerminalToCst"); +var SL = "name"; +function xp(e, t) { + Object.defineProperty(e, SL, { + enumerable: !1, + configurable: !0, + writable: !1, + value: t + }); +} +i(xp, "defineNameProp"); +function XA(e, t) { + const r = dt(e), n = r.length; + for (let a = 0; a < n; a++) { + const s = r[a], o = e[s], l = o.length; + for (let c = 0; c < l; c++) { + const u = o[c]; + u.tokenTypeIdx === void 0 && this[u.name](u.children, t); + } + } +} +i(XA, "defaultVisit"); +function JA(e, t) { + const r = /* @__PURE__ */ i(function() { + }, "derivedConstructor"); + xp(r, e + "BaseSemantics"); + const n = { + visit: /* @__PURE__ */ i(function(a, s) { + if (ne(a) && (a = a[0]), !Ar(a)) + return this[a.name](a.children, s); + }, "visit"), + validateVisitor: /* @__PURE__ */ i(function() { + const a = QA(this, t); + if (!he(a)) { + const s = F(a, (o) => o.msg); + throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: + ${s.join(` + +`).replace(/\n/g, ` + `)}`); + } + }, "validateVisitor") + }; + return r.prototype = n, r.prototype.constructor = r, r._RULE_NAMES = t, r; +} +i(JA, "createBaseSemanticVisitorConstructor"); +function ZA(e, t, r) { + const n = /* @__PURE__ */ i(function() { + }, "derivedConstructor"); + xp(n, e + "BaseSemanticsWithDefaults"); + const a = Object.create(r.prototype); + return q(t, (s) => { + a[s] = XA; + }), n.prototype = a, n.prototype.constructor = n, n; +} +i(ZA, "createBaseVisitorConstructorWithDefaults"); +var Rf; +(function(e) { + e[e.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", e[e.MISSING_METHOD = 1] = "MISSING_METHOD"; +})(Rf || (Rf = {})); +function QA(e, t) { + return eE(e, t); +} +i(QA, "validateVisitor"); +function eE(e, t) { + const r = wt(t, (a) => wr(e[a]) === !1), n = F(r, (a) => ({ + msg: `Missing visitor method: <${a}> on ${e.constructor.name} CST Visitor.`, + type: Rf.MISSING_METHOD, + methodName: a + })); + return xs(n); +} +i(eE, "validateMissingCstMethods"); +var wL = class { + static { + i(this, "TreeBuilder"); + } + initTreeBuilder(e) { + if (this.CST_STACK = [], this.outputCst = e.outputCst, this.nodeLocationTracking = U(e, "nodeLocationTracking") ? e.nodeLocationTracking : _r.nodeLocationTracking, !this.outputCst) + this.cstInvocationStateUpdate = Me, this.cstFinallyStateUpdate = Me, this.cstPostTerminal = Me, this.cstPostNonTerminal = Me, this.cstPostRule = Me; + else if (/full/i.test(this.nodeLocationTracking)) + this.recoveryEnabled ? (this.setNodeLocationFromToken = Tf, this.setNodeLocationFromNode = Tf, this.cstPostRule = Me, this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery) : (this.setNodeLocationFromToken = Me, this.setNodeLocationFromNode = Me, this.cstPostRule = this.cstPostRuleFull, this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular); + else if (/onlyOffset/i.test(this.nodeLocationTracking)) + this.recoveryEnabled ? (this.setNodeLocationFromToken = vf, this.setNodeLocationFromNode = vf, this.cstPostRule = Me, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery) : (this.setNodeLocationFromToken = Me, this.setNodeLocationFromNode = Me, this.cstPostRule = this.cstPostRuleOnlyOffset, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular); + else if (/none/i.test(this.nodeLocationTracking)) + this.setNodeLocationFromToken = Me, this.setNodeLocationFromNode = Me, this.cstPostRule = Me, this.setInitialNodeLocation = Me; + else + throw Error(`Invalid config option: "${e.nodeLocationTracking}"`); + } + setInitialNodeLocationOnlyOffsetRecovery(e) { + e.location = { + startOffset: NaN, + endOffset: NaN + }; + } + setInitialNodeLocationOnlyOffsetRegular(e) { + e.location = { + // without error recovery the starting Location of a new CstNode is guaranteed + // To be the next Token's startOffset (for valid inputs). + // For invalid inputs there won't be any CSTOutput so this potential + // inaccuracy does not matter + startOffset: this.LA(1).startOffset, + endOffset: NaN + }; + } + setInitialNodeLocationFullRecovery(e) { + e.location = { + startOffset: NaN, + startLine: NaN, + startColumn: NaN, + endOffset: NaN, + endLine: NaN, + endColumn: NaN + }; + } + /** + * @see setInitialNodeLocationOnlyOffsetRegular for explanation why this work + + * @param cstNode + */ + setInitialNodeLocationFullRegular(e) { + const t = this.LA(1); + e.location = { + startOffset: t.startOffset, + startLine: t.startLine, + startColumn: t.startColumn, + endOffset: NaN, + endLine: NaN, + endColumn: NaN + }; + } + cstInvocationStateUpdate(e) { + const t = { + name: e, + children: /* @__PURE__ */ Object.create(null) + }; + this.setInitialNodeLocation(t), this.CST_STACK.push(t); + } + cstFinallyStateUpdate() { + this.CST_STACK.pop(); + } + cstPostRuleFull(e) { + const 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) { + const t = this.LA(0), r = e.location; + r.startOffset <= t.startOffset ? r.endOffset = t.endOffset : r.startOffset = NaN; + } + cstPostTerminal(e, t) { + const r = this.CST_STACK[this.CST_STACK.length - 1]; + HA(r, t, e), this.setNodeLocationFromToken(r.location, t); + } + cstPostNonTerminal(e, t) { + const r = this.CST_STACK[this.CST_STACK.length - 1]; + YA(r, t, e), this.setNodeLocationFromNode(r.location, e.location); + } + getBaseCstVisitorConstructor() { + if (Ar(this.baseCstVisitorConstructor)) { + const e = JA(this.className, dt(this.gastProductionsCache)); + return this.baseCstVisitorConstructor = e, e; + } + return this.baseCstVisitorConstructor; + } + getBaseCstVisitorConstructorWithDefaults() { + if (Ar(this.baseCstVisitorWithDefaultsConstructor)) { + const e = ZA(this.className, dt(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); + return this.baseCstVisitorWithDefaultsConstructor = e, e; + } + return this.baseCstVisitorWithDefaultsConstructor; + } + getLastExplicitRuleShortName() { + const e = this.RULE_STACK; + return e[e.length - 1]; + } + getPreviousExplicitRuleShortName() { + const e = this.RULE_STACK; + return e[e.length - 2]; + } + getLastExplicitRuleOccurrenceIndex() { + const e = this.RULE_OCCURRENCE_STACK; + return e[e.length - 1]; + } +}, IL = class { + static { + i(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; + } + // skips a token and returns the next token + SKIP_TOKEN() { + return this.currIdx <= this.tokVector.length - 2 ? (this.consumeToken(), this.LA(1)) : ol; + } + // Lexer (accessing Token vector) related methods which can be overridden to implement lazy lexers + // or lexers dependent on parser context. + LA(e) { + const t = this.currIdx + e; + return t < 0 || this.tokVectorLength <= t ? ol : 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(); + } +}, NL = class { + static { + i(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 = ll) { + if (tt(this.definedRulesNames, e)) { + const s = { + message: $n.buildDuplicateRuleNameError({ + topLevelRule: e, + grammarName: this.className + }), + type: Qe.DUPLICATE_RULE_NAME, + ruleName: e + }; + this.definitionErrors.push(s); + } + this.definedRulesNames.push(e); + const n = this.defineRule(e, t, r); + return this[e] = n, n; + } + OVERRIDE_RULE(e, t, r = ll) { + const n = SA(e, this.definedRulesNames, this.className); + this.definitionErrors = this.definitionErrors.concat(n); + const a = this.defineRule(e, t, r); + return this[e] = a, a; + } + BACKTRACK(e, t) { + return function() { + this.isBackTrackingStack.push(1); + const r = this.saveRecogState(); + try { + return e.apply(this, t), !0; + } catch (n) { + if (ms(n)) + return !1; + throw n; + } finally { + this.reloadRecogState(r), this.isBackTrackingStack.pop(); + } + }; + } + // GAST export APIs + getGAstProductions() { + return this.gastProductionsCache; + } + getSerializedGastProductions() { + return A$(xe(this.gastProductionsCache)); + } +}, kL = class { + static { + i(this, "RecognizerEngine"); + } + initRecognizerEngine(e, t) { + if (this.className = this.constructor.name, this.shortRuleNameToFull = {}, this.fullRuleNameToShort = {}, this.ruleShortNameIdx = 256, this.tokenMatcher = hs, 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 (ne(e)) { + if (he(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 (ne(e)) + this.tokensMap = ht(e, (a, s) => (a[s.name] = s, a), {}); + else if (U(e, "modes") && Ft(xt(xe(e.modes)), fA)) { + const a = xt(xe(e.modes)), s = Tp(a); + this.tokensMap = ht(s, (o, l) => (o[l.name] = l, o), {}); + } else if (bt(e)) + this.tokensMap = Ke(e); + else + throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition"); + this.tokensMap.EOF = jr; + const r = U(e, "modes") ? xt(xe(e.modes)) : xe(e), n = Ft(r, (a) => he(a.categoryMatches)); + this.tokenMatcher = n ? hs : Xa, Ja(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.`); + const n = U(r, "resyncEnabled") ? r.resyncEnabled : ll.resyncEnabled, a = U(r, "recoveryValueFunc") ? r.recoveryValueFunc : ll.recoveryValueFunc, s = this.ruleShortNameIdx << _L + Wr; + this.ruleShortNameIdx++, this.shortRuleNameToFull[s] = e, this.fullRuleNameToShort[e] = s; + let o; + return this.outputCst === !0 ? o = /* @__PURE__ */ i(function(...u) { + try { + this.ruleInvocationStateUpdate(s, e, this.subruleIdx), t.apply(this, u); + const f = this.CST_STACK[this.CST_STACK.length - 1]; + return this.cstPostRule(f), f; + } catch (f) { + return this.invokeRuleCatch(f, n, a); + } finally { + this.ruleFinallyStateUpdate(); + } + }, "invokeRuleWithTry") : o = /* @__PURE__ */ i(function(...u) { + try { + return this.ruleInvocationStateUpdate(s, e, this.subruleIdx), t.apply(this, u); + } catch (f) { + return this.invokeRuleCatch(f, n, a); + } finally { + this.ruleFinallyStateUpdate(); + } + }, "invokeRuleWithTryCst"), Object.assign(o, { ruleName: e, originalGrammarAction: t }); + } + invokeRuleCatch(e, t, r) { + const n = this.RULE_STACK.length === 1, a = t && !this.isBackTracking() && this.recoveryEnabled; + if (ms(e)) { + const s = e; + if (a) { + const o = this.findReSyncTokenType(); + if (this.isInCurrentRuleReSyncSet(o)) + if (s.resyncedTokens = this.reSyncTo(o), this.outputCst) { + const l = this.CST_STACK[this.CST_STACK.length - 1]; + return l.recoveredNode = !0, l; + } else + return r(e); + else { + if (this.outputCst) { + const l = this.CST_STACK[this.CST_STACK.length - 1]; + l.recoveredNode = !0, s.partialCstResult = l; + } + throw s; + } + } else { + if (n) + return this.moveToTerminatedState(), r(e); + throw s; + } + } else + throw e; + } + // Implementation of parsing DSL + optionInternal(e, t) { + const r = this.getKeyForAutomaticLookahead(WA, t); + return this.optionInternalLogic(e, t, r); + } + optionInternalLogic(e, t, r) { + let n = this.getLaFuncFromCache(r), a; + if (typeof e != "function") { + a = e.DEF; + const s = e.GATE; + if (s !== void 0) { + const o = n; + n = /* @__PURE__ */ i(() => s.call(this) && o.call(this), "lookAheadFunc"); + } + } else + a = e; + if (n.call(this) === !0) + return a.call(this); + } + atLeastOneInternal(e, t) { + const r = this.getKeyForAutomaticLookahead(gf, e); + return this.atLeastOneInternalLogic(e, t, r); + } + atLeastOneInternalLogic(e, t, r) { + let n = this.getLaFuncFromCache(r), a; + if (typeof t != "function") { + a = t.DEF; + const s = t.GATE; + if (s !== void 0) { + const o = n; + n = /* @__PURE__ */ i(() => s.call(this) && o.call(this), "lookAheadFunc"); + } + } else + a = t; + if (n.call(this) === !0) { + let s = this.doSingleRepetition(a); + for (; n.call(this) === !0 && s === !0; ) + s = this.doSingleRepetition(a); + } else + throw this.raiseEarlyExitException(e, _e.REPETITION_MANDATORY, t.ERR_MSG); + this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, t], n, gf, e, mL); + } + atLeastOneSepFirstInternal(e, t) { + const r = this.getKeyForAutomaticLookahead(_o, e); + this.atLeastOneSepFirstInternalLogic(e, t, r); + } + atLeastOneSepFirstInternalLogic(e, t, r) { + const n = t.DEF, a = t.SEP; + if (this.getLaFuncFromCache(r).call(this) === !0) { + n.call(this); + const o = /* @__PURE__ */ i(() => 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, + wm + ], o, _o, e, wm); + } else + throw this.raiseEarlyExitException(e, _e.REPETITION_MANDATORY_WITH_SEPARATOR, t.ERR_MSG); + } + manyInternal(e, t) { + const r = this.getKeyForAutomaticLookahead(mf, e); + return this.manyInternalLogic(e, t, r); + } + manyInternalLogic(e, t, r) { + let n = this.getLaFuncFromCache(r), a; + if (typeof t != "function") { + a = t.DEF; + const o = t.GATE; + if (o !== void 0) { + const l = n; + n = /* @__PURE__ */ i(() => o.call(this) && l.call(this), "lookaheadFunction"); + } + } else + a = t; + let s = !0; + for (; n.call(this) === !0 && s === !0; ) + s = this.doSingleRepetition(a); + this.attemptInRepetitionRecovery( + this.manyInternal, + [e, t], + n, + mf, + e, + hL, + // The notStuck parameter is only relevant when "attemptInRepetitionRecovery" + // is invoked from manyInternal, in the MANY_SEP case and AT_LEAST_ONE[_SEP] + // An infinite loop cannot occur as: + // - Either the lookahead is guaranteed to consume something (Single Token Separator) + // - AT_LEAST_ONE by definition is guaranteed to consume something (or error out). + s + ); + } + manySepFirstInternal(e, t) { + const r = this.getKeyForAutomaticLookahead(yf, e); + this.manySepFirstInternalLogic(e, t, r); + } + manySepFirstInternalLogic(e, t, r) { + const n = t.DEF, a = t.SEP; + if (this.getLaFuncFromCache(r).call(this) === !0) { + n.call(this); + const o = /* @__PURE__ */ i(() => 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, + Sm + ], o, yf, e, Sm); + } + } + repetitionSepSecondInternal(e, t, r, n, a) { + for (; r(); ) + this.CONSUME(t), n.call(this); + this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [ + e, + t, + r, + n, + a + ], r, _o, e, a); + } + doSingleRepetition(e) { + const t = this.getLexerPosition(); + return e.call(this), this.getLexerPosition() > t; + } + orInternal(e, t) { + const r = this.getKeyForAutomaticLookahead(qA, t), n = ne(e) ? e : e.DEF, s = this.getLaFuncFromCache(r).call(this, n); + if (s !== void 0) + return n[s].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) { + const e = this.LA(1), t = this.errorMessageProvider.buildNotAllInputParsedMessage({ + firstRedundant: e, + ruleName: this.getCurrRuleFullName() + }); + this.SAVE_ERROR(new RL(t, e)); + } + } + subruleInternal(e, t, r) { + let n; + try { + const 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 ms(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 { + const 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; + const 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 zA(n, t, a)); + } + consumeInternalRecovery(e, t, r) { + if (this.recoveryEnabled && // TODO: more robust checking of the exception type. Perhaps Typescript extending expressions? + r.name === "MismatchedTokenException" && !this.isBackTracking()) { + const n = this.getFollowsForInRuleRecovery(e, t); + try { + return this.tryInRuleRecovery(e, n); + } catch (a) { + throw a.name === BA ? r : a; + } + } else + throw r; + } + saveRecogState() { + const e = this.errors, t = Ke(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() { + const e = this.getLastExplicitRuleShortName(); + return this.shortRuleNameToFull[e]; + } + shortRuleNameToFullName(e) { + return this.shortRuleNameToFull[e]; + } + isAtEndOfInput() { + return this.tokenMatcher(this.LA(1), jr); + } + reset() { + this.resetLexerState(), this.subruleIdx = 0, this.isBackTrackingStack = [], this.errors = [], this.RULE_STACK = [], this.CST_STACK = [], this.RULE_OCCURRENCE_STACK = []; + } +}, PL = class { + static { + i(this, "ErrorHandler"); + } + initErrorHandler(e) { + this._errors = [], this.errorMessageProvider = U(e, "errorMessageProvider") ? e.errorMessageProvider : _r.errorMessageProvider; + } + SAVE_ERROR(e) { + if (ms(e)) + return e.context = { + ruleStack: this.getHumanReadableRuleStack(), + ruleOccurrenceStack: Ke(this.RULE_OCCURRENCE_STACK) + }, this._errors.push(e), e; + throw Error("Trying to save an Error which is not a RecognitionException"); + } + get errors() { + return Ke(this._errors); + } + set errors(e) { + this._errors = e; + } + // TODO: consider caching the error message computed information + raiseEarlyExitException(e, t, r) { + const n = this.getCurrRuleFullName(), a = this.getGAstProductions()[n], o = Us(e, a, t, this.maxLookahead)[0], l = []; + for (let u = 1; u <= this.maxLookahead; u++) + l.push(this.LA(u)); + const c = this.errorMessageProvider.buildEarlyExitMessage({ + expectedIterationPaths: o, + actual: l, + previous: this.LA(0), + customUserDescription: r, + ruleName: n + }); + throw this.SAVE_ERROR(new $L(c, this.LA(1), this.LA(0))); + } + // TODO: consider caching the error message computed information + raiseNoAltException(e, t) { + const r = this.getCurrRuleFullName(), n = this.getGAstProductions()[r], a = js(e, n, this.maxLookahead), s = []; + for (let c = 1; c <= this.maxLookahead; c++) + s.push(this.LA(c)); + const o = this.LA(0), l = this.errorMessageProvider.buildNoViableAltMessage({ + expectedPathsPerAlt: a, + actual: s, + previous: o, + customUserDescription: t, + ruleName: this.getCurrRuleFullName() + }); + throw this.SAVE_ERROR(new TL(l, this.LA(1), o)); + } +}, OL = class { + static { + i(this, "ContentAssist"); + } + initContentAssist() { + } + computeContentAssist(e, t) { + const r = this.gastProductionsCache[e]; + if (Ar(r)) + throw Error(`Rule ->${e}<- does not exist in this grammar.`); + return Np([r], t, this.tokenMatcher, this.maxLookahead); + } + // TODO: should this be a member method or a utility? it does not have any state or usage of 'this'... + // TODO: should this be more explicitly part of the public API? + getNextPossibleTokenTypes(e) { + const t = jt(e.ruleStack), n = this.getGAstProductions()[t]; + return new pL(n, e).startWalking(); + } +}, ac = { + description: "This Object indicates the Parser is during Recording Phase" +}; +Object.freeze(ac); +var Im = !0, Nm = Math.pow(2, Wr) - 1, tE = Na({ name: "RECORDING_PHASE_TOKEN", pattern: Xe.NA }); +Ja([tE]); +var rE = Gs( + tE, + `This IToken indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, + // Using "-1" instead of NaN (as in EOF) because an actual number is less likely to + // cause errors if the output of LA or CONSUME would be (incorrectly) used during the recording phase. + -1, + -1, + -1, + -1, + -1, + -1 +); +Object.freeze(rE); +var LL = { + name: `This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, + children: {} +}, DL = class { + static { + i(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++) { + const 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", () => { + const e = this; + for (let t = 0; t < 10; t++) { + const 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; + }); + } + // Parser methods are called inside an ACTION? + // Maybe try/catch/finally on ACTIONS while disabling the recorders state changes? + // @ts-expect-error -- noop place holder + ACTION_RECORD(e) { + } + // Executing backtracking logic will break our recording logic assumptions + BACKTRACK_RECORD(e, t) { + return () => !0; + } + // LA is part of the official API and may be used for custom lookahead logic + // by end users who may forget to wrap it in ACTION or inside a GATE + LA_RECORD(e) { + return ol; + } + topLevelRuleRecord(e, t) { + try { + const r = new Va({ 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; + } + } + // Implementation of parsing DSL + optionInternalRecord(e, t) { + return ha.call(this, Be, e, t); + } + atLeastOneInternalRecord(e, t) { + ha.call(this, mt, t, e); + } + atLeastOneSepFirstInternalRecord(e, t) { + ha.call(this, gt, t, e, Im); + } + manyInternalRecord(e, t) { + ha.call(this, we, t, e); + } + manySepFirstInternalRecord(e, t) { + ha.call(this, ot, t, e, Im); + } + orInternalRecord(e, t) { + return nE.call(this, e, t); + } + subruleInternalRecord(e, t, r) { + if (gs(t), !e || U(e, "ruleName") === !1) { + const 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; + } + const n = Sn(this.recordingProdStack), a = e.ruleName, s = new Ze({ + idx: t, + nonTerminalName: a, + label: r?.LABEL, + // The resolving of the `referencedRule` property will be done once all the Rule's GASTs have been created + referencedRule: void 0 + }); + return n.definition.push(s), this.outputCst ? LL : ac; + } + consumeInternalRecord(e, t, r) { + if (gs(t), !Sp(e)) { + const s = new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`); + throw s.KNOWN_RECORDER_ERROR = !0, s; + } + const n = Sn(this.recordingProdStack), a = new Te({ + idx: t, + terminalType: e, + label: r?.LABEL + }); + return n.definition.push(a), rE; + } +}; +function ha(e, t, r, n = !1) { + gs(r); + const a = Sn(this.recordingProdStack), s = wr(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), s.call(this), a.definition.push(o), this.recordingProdStack.pop(), ac; +} +i(ha, "recordProd"); +function nE(e, t) { + gs(t); + const r = Sn(this.recordingProdStack), n = ne(e) === !1, a = n === !1 ? e : e.DEF, s = new lt({ + definition: [], + idx: t, + ignoreAmbiguities: n && e.IGNORE_AMBIGUITIES === !0 + }); + U(e, "MAX_LOOKAHEAD") && (s.maxLookahead = e.MAX_LOOKAHEAD); + const o = y$(a, (l) => wr(l.GATE)); + return s.hasPredicates = o, r.definition.push(s), q(a, (l) => { + const c = new st({ definition: [] }); + s.definition.push(c), U(l, "IGNORE_AMBIGUITIES") ? c.ignoreAmbiguities = l.IGNORE_AMBIGUITIES : U(l, "GATE") && (c.ignoreAmbiguities = !0), this.recordingProdStack.push(c), l.ALT.call(this), this.recordingProdStack.pop(); + }), ac; +} +i(nE, "recordOrProd"); +function $f(e) { + return e === 0 ? "" : `${e}`; +} +i($f, "getIdxSuffix"); +function gs(e) { + if (e < 0 || e > Nm) { + const t = new Error( + // The stack trace will contain all the needed details + `Invalid DSL Method idx value: <${e}> + Idx value must be a none negative value smaller than ${Nm + 1}` + ); + throw t.KNOWN_RECORDER_ERROR = !0, t; + } +} +i(gs, "assertMethodIdxIsValid"); +var ML = class { + static { + i(this, "PerformanceTracer"); + } + initPerformanceTracer(e) { + if (U(e, "traceInitPerf")) { + const 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 = _r.traceInitPerf; + this.traceInitIndent = -1; + } + TRACE_INIT(e, t) { + if (this.traceInitPerf === !0) { + this.traceInitIndent++; + const r = new Array(this.traceInitIndent + 1).join(" "); + this.traceInitIndent < this.traceInitMaxIdent && console.log(`${r}--> <${e}>`); + const { time: n, value: a } = $p(t), s = n > 10 ? console.warn : console.log; + return this.traceInitIndent < this.traceInitMaxIdent && s(`${r}<-- <${e}> time: ${n}ms`), this.traceInitIndent--, a; + } else + return t(); + } +}; +function aE(e, t) { + t.forEach((r) => { + const n = r.prototype; + Object.getOwnPropertyNames(n).forEach((a) => { + if (a === "constructor") + return; + const s = Object.getOwnPropertyDescriptor(n, a); + s && (s.get || s.set) ? Object.defineProperty(e.prototype, a, s) : e.prototype[a] = r.prototype[a]; + }); + }); +} +i(aE, "applyMixins"); +var ol = Gs(jr, "", NaN, NaN, NaN, NaN, NaN, NaN); +Object.freeze(ol); +var _r = Object.freeze({ + recoveryEnabled: !1, + maxLookahead: 3, + dynamicTokensEnabled: !1, + outputCst: !0, + errorMessageProvider: Sa, + nodeLocationTracking: "none", + traceInitPerf: !1, + skipValidations: !1 +}), ll = Object.freeze({ + recoveryValueFunc: /* @__PURE__ */ i(() => { + }, "recoveryValueFunc"), + resyncEnabled: !0 +}), Qe; +(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"; +})(Qe || (Qe = {})); +function Af(e = void 0) { + return function() { + return e; + }; +} +i(Af, "EMPTY_ALT"); +var Fp = class iE { + static { + i(this, "Parser"); + } + /** + * @deprecated use the **instance** method with the same name instead + */ + 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; + const r = this.className; + this.TRACE_INIT("toFastProps", () => { + Ap(this); + }), this.TRACE_INIT("Grammar Recording", () => { + try { + this.enableRecording(), q(this.definedRulesNames, (a) => { + const o = this[a].originalGrammarAction; + let 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 = DA({ + rules: xe(this.gastProductionsCache) + }), this.definitionErrors = this.definitionErrors.concat(n); + }), this.TRACE_INIT("Grammar Validations", () => { + if (he(n) && this.skipValidations === !1) { + const a = MA({ + rules: xe(this.gastProductionsCache), + tokenTypes: xe(this.tokensMap), + errMsgProvider: $n, + grammarName: r + }), s = AA({ + lookaheadStrategy: this.lookaheadStrategy, + rules: xe(this.gastProductionsCache), + tokenTypes: xe(this.tokensMap), + grammarName: r + }); + this.definitionErrors = this.definitionErrors.concat(a, s); + } + }), he(this.definitionErrors) && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => { + const a = I$(xe(this.gastProductionsCache)); + this.resyncFollows = a; + }), this.TRACE_INIT("ComputeLookaheadFunctions", () => { + var a, s; + (s = (a = this.lookaheadStrategy).initialize) === null || s === void 0 || s.call(a, { + rules: xe(this.gastProductionsCache) + }), this.preComputeLookaheadFunctions(xe(this.gastProductionsCache)); + })), !iE.DEFER_DEFINITION_ERRORS_HANDLING && !he(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; + const 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 : _r.skipValidations; + } +}; +Fp.DEFER_DEFINITION_ERRORS_HANDLING = !1; +aE(Fp, [ + EL, + CL, + wL, + IL, + kL, + NL, + PL, + OL, + DL, + ML +]); +var xL = class extends Fp { + static { + i(this, "EmbeddedActionsParser"); + } + constructor(e, t = _r) { + const r = Ke(t); + r.outputCst = !1, super(e, r); + } +}; +function sE(e, t) { + for (var r = -1, n = e == null ? 0 : e.length, a = Array(n); ++r < n; ) + a[r] = t(e[r], r, e); + return a; +} +i(sE, "arrayMap"); +var oE = sE; +function lE() { + this.__data__ = [], this.size = 0; +} +i(lE, "listCacheClear"); +var FL = lE; +function cE(e, t) { + return e === t || e !== e && t !== t; +} +i(cE, "eq"); +var uE = cE; +function fE(e, t) { + for (var r = e.length; r--; ) + if (uE(e[r][0], t)) + return r; + return -1; +} +i(fE, "assocIndexOf"); +var ic = fE, GL = Array.prototype, jL = GL.splice; +function dE(e) { + var t = this.__data__, r = ic(t, e); + if (r < 0) + return !1; + var n = t.length - 1; + return r == n ? t.pop() : jL.call(t, r, 1), --this.size, !0; +} +i(dE, "listCacheDelete"); +var UL = dE; +function pE(e) { + var t = this.__data__, r = ic(t, e); + return r < 0 ? void 0 : t[r][1]; +} +i(pE, "listCacheGet"); +var zL = pE; +function hE(e) { + return ic(this.__data__, e) > -1; +} +i(hE, "listCacheHas"); +var BL = hE; +function mE(e, t) { + var r = this.__data__, n = ic(r, e); + return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this; +} +i(mE, "listCacheSet"); +var KL = mE; +function Kn(e) { + var t = -1, r = e == null ? 0 : e.length; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]); + } +} +i(Kn, "ListCache"); +Kn.prototype.clear = FL; +Kn.prototype.delete = UL; +Kn.prototype.get = zL; +Kn.prototype.has = BL; +Kn.prototype.set = KL; +var sc = Kn; +function gE() { + this.__data__ = new sc(), this.size = 0; +} +i(gE, "stackClear"); +var qL = gE; +function yE(e) { + var t = this.__data__, r = t.delete(e); + return this.size = t.size, r; +} +i(yE, "stackDelete"); +var WL = yE; +function vE(e) { + return this.__data__.get(e); +} +i(vE, "stackGet"); +var VL = vE; +function TE(e) { + return this.__data__.has(e); +} +i(TE, "stackHas"); +var HL = TE, YL = typeof global == "object" && global && global.Object === Object && global, RE = YL, XL = typeof self == "object" && self && self.Object === Object && self, JL = RE || XL || Function("return this")(), Ir = JL, ZL = Ir.Symbol, er = ZL, $E = Object.prototype, QL = $E.hasOwnProperty, eD = $E.toString, _i = er ? er.toStringTag : void 0; +function AE(e) { + var t = QL.call(e, _i), r = e[_i]; + try { + e[_i] = void 0; + var n = !0; + } catch { + } + var a = eD.call(e); + return n && (t ? e[_i] = r : delete e[_i]), a; +} +i(AE, "getRawTag"); +var tD = AE, rD = Object.prototype, nD = rD.toString; +function EE(e) { + return nD.call(e); +} +i(EE, "objectToString"); +var aD = EE, iD = "[object Null]", sD = "[object Undefined]", km = er ? er.toStringTag : void 0; +function _E(e) { + return e == null ? e === void 0 ? sD : iD : km && km in Object(e) ? tD(e) : aD(e); +} +i(_E, "baseGetTag"); +var Za = _E; +function CE(e) { + var t = typeof e; + return e != null && (t == "object" || t == "function"); +} +i(CE, "isObject"); +var Gp = CE, oD = "[object AsyncFunction]", lD = "[object Function]", cD = "[object GeneratorFunction]", uD = "[object Proxy]"; +function bE(e) { + if (!Gp(e)) + return !1; + var t = Za(e); + return t == lD || t == cD || t == oD || t == uD; +} +i(bE, "isFunction"); +var SE = bE, fD = Ir["__core-js_shared__"], Dc = fD, Pm = (function() { + var e = /[^.]+$/.exec(Dc && Dc.keys && Dc.keys.IE_PROTO || ""); + return e ? "Symbol(src)_1." + e : ""; +})(); +function wE(e) { + return !!Pm && Pm in e; +} +i(wE, "isMasked"); +var dD = wE, pD = Function.prototype, hD = pD.toString; +function IE(e) { + if (e != null) { + try { + return hD.call(e); + } catch { + } + try { + return e + ""; + } catch { + } + } + return ""; +} +i(IE, "toSource"); +var qn = IE, mD = /[\\^$.*+?()[\]{}|]/g, gD = /^\[object .+?Constructor\]$/, yD = Function.prototype, vD = Object.prototype, TD = yD.toString, RD = vD.hasOwnProperty, $D = RegExp( + "^" + TD.call(RD).replace(mD, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +); +function NE(e) { + if (!Gp(e) || dD(e)) + return !1; + var t = SE(e) ? $D : gD; + return t.test(qn(e)); +} +i(NE, "baseIsNative"); +var AD = NE; +function kE(e, t) { + return e?.[t]; +} +i(kE, "getValue"); +var ED = kE; +function PE(e, t) { + var r = ED(e, t); + return AD(r) ? r : void 0; +} +i(PE, "getNative"); +var Qa = PE, _D = Qa(Ir, "Map"), ys = _D, CD = Qa(Object, "create"), vs = CD; +function OE() { + this.__data__ = vs ? vs(null) : {}, this.size = 0; +} +i(OE, "hashClear"); +var bD = OE; +function LE(e) { + var t = this.has(e) && delete this.__data__[e]; + return this.size -= t ? 1 : 0, t; +} +i(LE, "hashDelete"); +var SD = LE, wD = "__lodash_hash_undefined__", ID = Object.prototype, ND = ID.hasOwnProperty; +function DE(e) { + var t = this.__data__; + if (vs) { + var r = t[e]; + return r === wD ? void 0 : r; + } + return ND.call(t, e) ? t[e] : void 0; +} +i(DE, "hashGet"); +var kD = DE, PD = Object.prototype, OD = PD.hasOwnProperty; +function ME(e) { + var t = this.__data__; + return vs ? t[e] !== void 0 : OD.call(t, e); +} +i(ME, "hashHas"); +var LD = ME, DD = "__lodash_hash_undefined__"; +function xE(e, t) { + var r = this.__data__; + return this.size += this.has(e) ? 0 : 1, r[e] = vs && t === void 0 ? DD : t, this; +} +i(xE, "hashSet"); +var MD = xE; +function Wn(e) { + var t = -1, r = e == null ? 0 : e.length; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]); + } +} +i(Wn, "Hash"); +Wn.prototype.clear = bD; +Wn.prototype.delete = SD; +Wn.prototype.get = kD; +Wn.prototype.has = LD; +Wn.prototype.set = MD; +var Om = Wn; +function FE() { + this.size = 0, this.__data__ = { + hash: new Om(), + map: new (ys || sc)(), + string: new Om() + }; +} +i(FE, "mapCacheClear"); +var xD = FE; +function GE(e) { + var t = typeof e; + return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; +} +i(GE, "isKeyable"); +var FD = GE; +function jE(e, t) { + var r = e.__data__; + return FD(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map; +} +i(jE, "getMapData"); +var oc = jE; +function UE(e) { + var t = oc(this, e).delete(e); + return this.size -= t ? 1 : 0, t; +} +i(UE, "mapCacheDelete"); +var GD = UE; +function zE(e) { + return oc(this, e).get(e); +} +i(zE, "mapCacheGet"); +var jD = zE; +function BE(e) { + return oc(this, e).has(e); +} +i(BE, "mapCacheHas"); +var UD = BE; +function KE(e, t) { + var r = oc(this, e), n = r.size; + return r.set(e, t), this.size += r.size == n ? 0 : 1, this; +} +i(KE, "mapCacheSet"); +var zD = KE; +function Vn(e) { + var t = -1, r = e == null ? 0 : e.length; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]); + } +} +i(Vn, "MapCache"); +Vn.prototype.clear = xD; +Vn.prototype.delete = GD; +Vn.prototype.get = jD; +Vn.prototype.has = UD; +Vn.prototype.set = zD; +var lc = Vn, BD = 200; +function qE(e, t) { + var r = this.__data__; + if (r instanceof sc) { + var n = r.__data__; + if (!ys || n.length < BD - 1) + return n.push([e, t]), this.size = ++r.size, this; + r = this.__data__ = new lc(n); + } + return r.set(e, t), this.size = r.size, this; +} +i(qE, "stackSet"); +var KD = qE; +function Hn(e) { + var t = this.__data__ = new sc(e); + this.size = t.size; +} +i(Hn, "Stack"); +Hn.prototype.clear = qL; +Hn.prototype.delete = WL; +Hn.prototype.get = VL; +Hn.prototype.has = HL; +Hn.prototype.set = KD; +var bo = Hn, qD = "__lodash_hash_undefined__"; +function WE(e) { + return this.__data__.set(e, qD), this; +} +i(WE, "setCacheAdd"); +var WD = WE; +function VE(e) { + return this.__data__.has(e); +} +i(VE, "setCacheHas"); +var VD = VE; +function Ts(e) { + var t = -1, r = e == null ? 0 : e.length; + for (this.__data__ = new lc(); ++t < r; ) + this.add(e[t]); +} +i(Ts, "SetCache"); +Ts.prototype.add = Ts.prototype.push = WD; +Ts.prototype.has = VD; +var HE = Ts; +function YE(e, t) { + for (var r = -1, n = e == null ? 0 : e.length; ++r < n; ) + if (t(e[r], r, e)) + return !0; + return !1; +} +i(YE, "arraySome"); +var HD = YE; +function XE(e, t) { + return e.has(t); +} +i(XE, "cacheHas"); +var JE = XE, YD = 1, XD = 2; +function ZE(e, t, r, n, a, s) { + var o = r & YD, l = e.length, c = t.length; + if (l != c && !(o && c > l)) + return !1; + var u = s.get(e), f = s.get(t); + if (u && f) + return u == t && f == e; + var d = -1, h = !0, y = r & XD ? new HE() : void 0; + for (s.set(e, t), s.set(t, e); ++d < l; ) { + var v = e[d], C = t[d]; + if (n) + var S = o ? n(C, v, d, t, e, s) : n(v, C, d, e, t, s); + if (S !== void 0) { + if (S) + continue; + h = !1; + break; + } + if (y) { + if (!HD(t, function(w, I) { + if (!JE(y, I) && (v === w || a(v, w, r, n, s))) + return y.push(I); + })) { + h = !1; + break; + } + } else if (!(v === C || a(v, C, r, n, s))) { + h = !1; + break; + } + } + return s.delete(e), s.delete(t), h; +} +i(ZE, "equalArrays"); +var QE = ZE, JD = Ir.Uint8Array, Lm = JD; +function e_(e) { + var t = -1, r = Array(e.size); + return e.forEach(function(n, a) { + r[++t] = [a, n]; + }), r; +} +i(e_, "mapToArray"); +var ZD = e_; +function t_(e) { + var t = -1, r = Array(e.size); + return e.forEach(function(n) { + r[++t] = n; + }), r; +} +i(t_, "setToArray"); +var jp = t_, QD = 1, eM = 2, tM = "[object Boolean]", rM = "[object Date]", nM = "[object Error]", aM = "[object Map]", iM = "[object Number]", sM = "[object RegExp]", oM = "[object Set]", lM = "[object String]", cM = "[object Symbol]", uM = "[object ArrayBuffer]", fM = "[object DataView]", Dm = er ? er.prototype : void 0, Mc = Dm ? Dm.valueOf : void 0; +function r_(e, t, r, n, a, s, o) { + switch (r) { + case fM: + if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) + return !1; + e = e.buffer, t = t.buffer; + case uM: + return !(e.byteLength != t.byteLength || !s(new Lm(e), new Lm(t))); + case tM: + case rM: + case iM: + return uE(+e, +t); + case nM: + return e.name == t.name && e.message == t.message; + case sM: + case lM: + return e == t + ""; + case aM: + var l = ZD; + case oM: + var c = n & QD; + if (l || (l = jp), e.size != t.size && !c) + return !1; + var u = o.get(e); + if (u) + return u == t; + n |= eM, o.set(e, t); + var f = QE(l(e), l(t), n, a, s, o); + return o.delete(e), f; + case cM: + if (Mc) + return Mc.call(e) == Mc.call(t); + } + return !1; +} +i(r_, "equalByTag"); +var dM = r_; +function n_(e, t) { + for (var r = -1, n = t.length, a = e.length; ++r < n; ) + e[a + r] = t[r]; + return e; +} +i(n_, "arrayPush"); +var a_ = n_, pM = Array.isArray, et = pM; +function i_(e, t, r) { + var n = t(e); + return et(e) ? n : a_(n, r(e)); +} +i(i_, "baseGetAllKeys"); +var hM = i_; +function s_(e, t) { + for (var r = -1, n = e == null ? 0 : e.length, a = 0, s = []; ++r < n; ) { + var o = e[r]; + t(o, r, e) && (s[a++] = o); + } + return s; +} +i(s_, "arrayFilter"); +var o_ = s_; +function l_() { + return []; +} +i(l_, "stubArray"); +var mM = l_, gM = Object.prototype, yM = gM.propertyIsEnumerable, Mm = Object.getOwnPropertySymbols, vM = Mm ? function(e) { + return e == null ? [] : (e = Object(e), o_(Mm(e), function(t) { + return yM.call(e, t); + })); +} : mM, TM = vM; +function c_(e, t) { + for (var r = -1, n = Array(e); ++r < e; ) + n[r] = t(r); + return n; +} +i(c_, "baseTimes"); +var RM = c_; +function u_(e) { + return e != null && typeof e == "object"; +} +i(u_, "isObjectLike"); +var za = u_, $M = "[object Arguments]"; +function f_(e) { + return za(e) && Za(e) == $M; +} +i(f_, "baseIsArguments"); +var xm = f_, d_ = Object.prototype, AM = d_.hasOwnProperty, EM = d_.propertyIsEnumerable, _M = xm(/* @__PURE__ */ (function() { + return arguments; +})()) ? xm : function(e) { + return za(e) && AM.call(e, "callee") && !EM.call(e, "callee"); +}, cc = _M; +function p_() { + return !1; +} +i(p_, "stubFalse"); +var CM = p_, h_ = typeof exports == "object" && exports && !exports.nodeType && exports, Fm = h_ && typeof module == "object" && module && !module.nodeType && module, bM = Fm && Fm.exports === h_, Gm = bM ? Ir.Buffer : void 0, SM = Gm ? Gm.isBuffer : void 0, wM = SM || CM, cl = wM, IM = 9007199254740991, NM = /^(?:0|[1-9]\d*)$/; +function m_(e, t) { + var r = typeof e; + return t = t ?? IM, !!t && (r == "number" || r != "symbol" && NM.test(e)) && e > -1 && e % 1 == 0 && e < t; +} +i(m_, "isIndex"); +var g_ = m_, kM = 9007199254740991; +function y_(e) { + return typeof e == "number" && e > -1 && e % 1 == 0 && e <= kM; +} +i(y_, "isLength"); +var Up = y_, PM = "[object Arguments]", OM = "[object Array]", LM = "[object Boolean]", DM = "[object Date]", MM = "[object Error]", xM = "[object Function]", FM = "[object Map]", GM = "[object Number]", jM = "[object Object]", UM = "[object RegExp]", zM = "[object Set]", BM = "[object String]", KM = "[object WeakMap]", qM = "[object ArrayBuffer]", WM = "[object DataView]", VM = "[object Float32Array]", HM = "[object Float64Array]", YM = "[object Int8Array]", XM = "[object Int16Array]", JM = "[object Int32Array]", ZM = "[object Uint8Array]", QM = "[object Uint8ClampedArray]", ex = "[object Uint16Array]", tx = "[object Uint32Array]", ve = {}; +ve[VM] = ve[HM] = ve[YM] = ve[XM] = ve[JM] = ve[ZM] = ve[QM] = ve[ex] = ve[tx] = !0; +ve[PM] = ve[OM] = ve[qM] = ve[LM] = ve[WM] = ve[DM] = ve[MM] = ve[xM] = ve[FM] = ve[GM] = ve[jM] = ve[UM] = ve[zM] = ve[BM] = ve[KM] = !1; +function v_(e) { + return za(e) && Up(e.length) && !!ve[Za(e)]; +} +i(v_, "baseIsTypedArray"); +var rx = v_; +function T_(e) { + return function(t) { + return e(t); + }; +} +i(T_, "baseUnary"); +var nx = T_, R_ = typeof exports == "object" && exports && !exports.nodeType && exports, ns = R_ && typeof module == "object" && module && !module.nodeType && module, ax = ns && ns.exports === R_, xc = ax && RE.process, ix = (function() { + try { + var e = ns && ns.require && ns.require("util").types; + return e || xc && xc.binding && xc.binding("util"); + } catch { + } +})(), jm = ix, Um = jm && jm.isTypedArray, sx = Um ? nx(Um) : rx, zp = sx, ox = Object.prototype, lx = ox.hasOwnProperty; +function $_(e, t) { + var r = et(e), n = !r && cc(e), a = !r && !n && cl(e), s = !r && !n && !a && zp(e), o = r || n || a || s, l = o ? RM(e.length, String) : [], c = l.length; + for (var u in e) + (t || lx.call(e, u)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode. + (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. + a && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. + s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties. + g_(u, c))) && l.push(u); + return l; +} +i($_, "arrayLikeKeys"); +var cx = $_, ux = Object.prototype; +function A_(e) { + var t = e && e.constructor, r = typeof t == "function" && t.prototype || ux; + return e === r; +} +i(A_, "isPrototype"); +var E_ = A_; +function __(e, t) { + return function(r) { + return e(t(r)); + }; +} +i(__, "overArg"); +var fx = __, dx = fx(Object.keys, Object), px = dx, hx = Object.prototype, mx = hx.hasOwnProperty; +function C_(e) { + if (!E_(e)) + return px(e); + var t = []; + for (var r in Object(e)) + mx.call(e, r) && r != "constructor" && t.push(r); + return t; +} +i(C_, "baseKeys"); +var b_ = C_; +function S_(e) { + return e != null && Up(e.length) && !SE(e); +} +i(S_, "isArrayLike"); +var uc = S_; +function w_(e) { + return uc(e) ? cx(e) : b_(e); +} +i(w_, "keys"); +var Bp = w_; +function I_(e) { + return hM(e, Bp, TM); +} +i(I_, "getAllKeys"); +var zm = I_, gx = 1, yx = Object.prototype, vx = yx.hasOwnProperty; +function N_(e, t, r, n, a, s) { + var o = r & gx, l = zm(e), c = l.length, u = zm(t), f = u.length; + if (c != f && !o) + return !1; + for (var d = c; d--; ) { + var h = l[d]; + if (!(o ? h in t : vx.call(t, h))) + return !1; + } + var y = s.get(e), v = s.get(t); + if (y && v) + return y == t && v == e; + var C = !0; + s.set(e, t), s.set(t, e); + for (var S = o; ++d < c; ) { + h = l[d]; + var w = e[h], I = t[h]; + if (n) + var A = o ? n(I, w, h, t, e, s) : n(w, I, h, e, t, s); + if (!(A === void 0 ? w === I || a(w, I, r, n, s) : A)) { + C = !1; + break; + } + S || (S = h == "constructor"); + } + if (C && !S) { + var k = e.constructor, G = t.constructor; + k != G && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof G == "function" && G instanceof G) && (C = !1); + } + return s.delete(e), s.delete(t), C; +} +i(N_, "equalObjects"); +var Tx = N_, Rx = Qa(Ir, "DataView"), Ef = Rx, $x = Qa(Ir, "Promise"), _f = $x, Ax = Qa(Ir, "Set"), ka = Ax, Ex = Qa(Ir, "WeakMap"), Cf = Ex, Bm = "[object Map]", _x = "[object Object]", Km = "[object Promise]", qm = "[object Set]", Wm = "[object WeakMap]", Vm = "[object DataView]", Cx = qn(Ef), bx = qn(ys), Sx = qn(_f), wx = qn(ka), Ix = qn(Cf), nn = Za; +(Ef && nn(new Ef(new ArrayBuffer(1))) != Vm || ys && nn(new ys()) != Bm || _f && nn(_f.resolve()) != Km || ka && nn(new ka()) != qm || Cf && nn(new Cf()) != Wm) && (nn = /* @__PURE__ */ i(function(e) { + var t = Za(e), r = t == _x ? e.constructor : void 0, n = r ? qn(r) : ""; + if (n) + switch (n) { + case Cx: + return Vm; + case bx: + return Bm; + case Sx: + return Km; + case wx: + return qm; + case Ix: + return Wm; + } + return t; +}, "getTag")); +var bf = nn, Nx = 1, Hm = "[object Arguments]", Ym = "[object Array]", Ys = "[object Object]", kx = Object.prototype, Xm = kx.hasOwnProperty; +function k_(e, t, r, n, a, s) { + var o = et(e), l = et(t), c = o ? Ym : bf(e), u = l ? Ym : bf(t); + c = c == Hm ? Ys : c, u = u == Hm ? Ys : u; + var f = c == Ys, d = u == Ys, h = c == u; + if (h && cl(e)) { + if (!cl(t)) + return !1; + o = !0, f = !1; + } + if (h && !f) + return s || (s = new bo()), o || zp(e) ? QE(e, t, r, n, a, s) : dM(e, t, c, r, n, a, s); + if (!(r & Nx)) { + var y = f && Xm.call(e, "__wrapped__"), v = d && Xm.call(t, "__wrapped__"); + if (y || v) { + var C = y ? e.value() : e, S = v ? t.value() : t; + return s || (s = new bo()), a(C, S, r, n, s); + } + } + return h ? (s || (s = new bo()), Tx(e, t, r, n, a, s)) : !1; +} +i(k_, "baseIsEqualDeep"); +var Px = k_; +function Kp(e, t, r, n, a) { + return e === t ? !0 : e == null || t == null || !za(e) && !za(t) ? e !== e && t !== t : Px(e, t, r, n, Kp, a); +} +i(Kp, "baseIsEqual"); +var P_ = Kp, Ox = 1, Lx = 2; +function O_(e, t, r, n) { + var a = r.length, s = a, o = !n; + if (e == null) + return !s; + for (e = Object(e); a--; ) { + var l = r[a]; + if (o && l[2] ? l[1] !== e[l[0]] : !(l[0] in e)) + return !1; + } + for (; ++a < s; ) { + l = r[a]; + var c = l[0], u = e[c], f = l[1]; + if (o && l[2]) { + if (u === void 0 && !(c in e)) + return !1; + } else { + var d = new bo(); + if (n) + var h = n(u, f, c, e, t, d); + if (!(h === void 0 ? P_(f, u, Ox | Lx, n, d) : h)) + return !1; + } + } + return !0; +} +i(O_, "baseIsMatch"); +var Dx = O_; +function L_(e) { + return e === e && !Gp(e); +} +i(L_, "isStrictComparable"); +var D_ = L_; +function M_(e) { + for (var t = Bp(e), r = t.length; r--; ) { + var n = t[r], a = e[n]; + t[r] = [n, a, D_(a)]; + } + return t; +} +i(M_, "getMatchData"); +var Mx = M_; +function x_(e, t) { + return function(r) { + return r == null ? !1 : r[e] === t && (t !== void 0 || e in Object(r)); + }; +} +i(x_, "matchesStrictComparable"); +var F_ = x_; +function G_(e) { + var t = Mx(e); + return t.length == 1 && t[0][2] ? F_(t[0][0], t[0][1]) : function(r) { + return r === e || Dx(r, e, t); + }; +} +i(G_, "baseMatches"); +var xx = G_, Fx = "[object Symbol]"; +function j_(e) { + return typeof e == "symbol" || za(e) && Za(e) == Fx; +} +i(j_, "isSymbol"); +var fc = j_, Gx = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, jx = /^\w*$/; +function U_(e, t) { + if (et(e)) + return !1; + var r = typeof e; + return r == "number" || r == "symbol" || r == "boolean" || e == null || fc(e) ? !0 : jx.test(e) || !Gx.test(e) || t != null && e in Object(t); +} +i(U_, "isKey"); +var qp = U_, Ux = "Expected a function"; +function dc(e, t) { + if (typeof e != "function" || t != null && typeof t != "function") + throw new TypeError(Ux); + var r = /* @__PURE__ */ i(function() { + var n = arguments, a = t ? t.apply(this, n) : n[0], s = r.cache; + if (s.has(a)) + return s.get(a); + var o = e.apply(this, n); + return r.cache = s.set(a, o) || s, o; + }, "memoized"); + return r.cache = new (dc.Cache || lc)(), r; +} +i(dc, "memoize"); +dc.Cache = lc; +var zx = dc, Bx = 500; +function z_(e) { + var t = zx(e, function(n) { + return r.size === Bx && r.clear(), n; + }), r = t.cache; + return t; +} +i(z_, "memoizeCapped"); +var Kx = z_, qx = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Wx = /\\(\\)?/g, Vx = Kx(function(e) { + var t = []; + return e.charCodeAt(0) === 46 && t.push(""), e.replace(qx, function(r, n, a, s) { + t.push(a ? s.replace(Wx, "$1") : n || r); + }), t; +}), Hx = Vx, Jm = er ? er.prototype : void 0, Zm = Jm ? Jm.toString : void 0; +function Wp(e) { + if (typeof e == "string") + return e; + if (et(e)) + return oE(e, Wp) + ""; + if (fc(e)) + return Zm ? Zm.call(e) : ""; + var t = e + ""; + return t == "0" && 1 / e == -1 / 0 ? "-0" : t; +} +i(Wp, "baseToString"); +var Yx = Wp; +function B_(e) { + return e == null ? "" : Yx(e); +} +i(B_, "toString"); +var Xx = B_; +function K_(e, t) { + return et(e) ? e : qp(e, t) ? [e] : Hx(Xx(e)); +} +i(K_, "castPath"); +var q_ = K_; +function W_(e) { + if (typeof e == "string" || fc(e)) + return e; + var t = e + ""; + return t == "0" && 1 / e == -1 / 0 ? "-0" : t; +} +i(W_, "toKey"); +var pc = W_; +function V_(e, t) { + t = q_(t, e); + for (var r = 0, n = t.length; e != null && r < n; ) + e = e[pc(t[r++])]; + return r && r == n ? e : void 0; +} +i(V_, "baseGet"); +var H_ = V_; +function Y_(e, t, r) { + var n = e == null ? void 0 : H_(e, t); + return n === void 0 ? r : n; +} +i(Y_, "get"); +var Jx = Y_; +function X_(e, t) { + return e != null && t in Object(e); +} +i(X_, "baseHasIn"); +var Zx = X_; +function J_(e, t, r) { + t = q_(t, e); + for (var n = -1, a = t.length, s = !1; ++n < a; ) { + var o = pc(t[n]); + if (!(s = e != null && r(e, o))) + break; + e = e[o]; + } + return s || ++n != a ? s : (a = e == null ? 0 : e.length, !!a && Up(a) && g_(o, a) && (et(e) || cc(e))); +} +i(J_, "hasPath"); +var Qx = J_; +function Z_(e, t) { + return e != null && Qx(e, t, Zx); +} +i(Z_, "hasIn"); +var e1 = Z_, t1 = 1, r1 = 2; +function Q_(e, t) { + return qp(e) && D_(t) ? F_(pc(e), t) : function(r) { + var n = Jx(r, e); + return n === void 0 && n === t ? e1(r, e) : P_(t, n, t1 | r1); + }; +} +i(Q_, "baseMatchesProperty"); +var n1 = Q_; +function eC(e) { + return e; +} +i(eC, "identity"); +var Vp = eC; +function tC(e) { + return function(t) { + return t?.[e]; + }; +} +i(tC, "baseProperty"); +var a1 = tC; +function rC(e) { + return function(t) { + return H_(t, e); + }; +} +i(rC, "basePropertyDeep"); +var i1 = rC; +function nC(e) { + return qp(e) ? a1(pc(e)) : i1(e); +} +i(nC, "property"); +var s1 = nC; +function aC(e) { + return typeof e == "function" ? e : e == null ? Vp : typeof e == "object" ? et(e) ? n1(e[0], e[1]) : xx(e) : s1(e); +} +i(aC, "baseIteratee"); +var hc = aC; +function iC(e) { + return function(t, r, n) { + for (var a = -1, s = Object(t), o = n(t), l = o.length; l--; ) { + var c = o[e ? l : ++a]; + if (r(s[c], c, s) === !1) + break; + } + return t; + }; +} +i(iC, "createBaseFor"); +var o1 = iC, l1 = o1(), c1 = l1; +function sC(e, t) { + return e && c1(e, t, Bp); +} +i(sC, "baseForOwn"); +var u1 = sC; +function oC(e, t) { + return function(r, n) { + if (r == null) + return r; + if (!uc(r)) + return e(r, n); + for (var a = r.length, s = t ? a : -1, o = Object(r); (t ? s-- : ++s < a) && n(o[s], s, o) !== !1; ) + ; + return r; + }; +} +i(oC, "createBaseEach"); +var f1 = oC, d1 = f1(u1), mc = d1; +function lC(e, t) { + var r = -1, n = uc(e) ? Array(e.length) : []; + return mc(e, function(a, s, o) { + n[++r] = t(a, s, o); + }), n; +} +i(lC, "baseMap"); +var p1 = lC; +function cC(e, t) { + var r = et(e) ? oE : p1; + return r(e, hc(t)); +} +i(cC, "map"); +var gr = cC; +function uC(e, t) { + var r = []; + return mc(e, function(n, a, s) { + t(n, a, s) && r.push(n); + }), r; +} +i(uC, "baseFilter"); +var h1 = uC; +function fC(e, t) { + var r = et(e) ? o_ : h1; + return r(e, hc(t)); +} +i(fC, "filter"); +var m1 = fC; +function In(e, t, r) { + return `${e.name}_${t}_${r}`; +} +i(In, "buildATNKey"); +var Ur = 1, g1 = 2, dC = 4, pC = 5, zs = 7, y1 = 8, v1 = 9, T1 = 10, R1 = 11, hC = 12, Hp = class { + static { + i(this, "AbstractTransition"); + } + constructor(e) { + this.target = e; + } + isEpsilon() { + return !1; + } +}, Yp = class extends Hp { + static { + i(this, "AtomTransition"); + } + constructor(e, t) { + super(e), this.tokenType = t; + } +}, mC = class extends Hp { + static { + i(this, "EpsilonTransition"); + } + constructor(e) { + super(e); + } + isEpsilon() { + return !0; + } +}, Xp = class extends Hp { + static { + i(this, "RuleTransition"); + } + constructor(e, t, r) { + super(e), this.rule = t, this.followState = r; + } + isEpsilon() { + return !0; + } +}; +function gC(e) { + const t = { + decisionMap: {}, + decisionStates: [], + ruleToStartState: /* @__PURE__ */ new Map(), + ruleToStopState: /* @__PURE__ */ new Map(), + states: [] + }; + yC(t, e); + const r = e.length; + for (let n = 0; n < r; n++) { + const a = e[n], s = Vr(t, a, a); + s !== void 0 && wC(t, a, s); + } + return t; +} +i(gC, "createATN"); +function yC(e, t) { + const r = t.length; + for (let n = 0; n < r; n++) { + const a = t[n], s = Fe(e, a, void 0, { + type: g1 + }), o = Fe(e, a, void 0, { + type: zs + }); + s.stop = o, e.ruleToStartState.set(a, s), e.ruleToStopState.set(a, o); + } +} +i(yC, "createRuleStartAndStopATNStates"); +function Jp(e, t, r) { + return r instanceof Te ? gc(e, t, r.terminalType, r) : r instanceof Ze ? SC(e, t, r) : r instanceof lt ? AC(e, t, r) : r instanceof Be ? EC(e, t, r) : r instanceof we ? vC(e, t, r) : r instanceof ot ? TC(e, t, r) : r instanceof mt ? RC(e, t, r) : r instanceof gt ? $C(e, t, r) : Vr(e, t, r); +} +i(Jp, "atom"); +function vC(e, t, r) { + const n = Fe(e, t, r, { + type: pC + }); + Nr(e, n); + const a = Yn(e, t, n, r, Vr(e, t, r)); + return Qp(e, t, r, a); +} +i(vC, "repetition"); +function TC(e, t, r) { + const n = Fe(e, t, r, { + type: pC + }); + Nr(e, n); + const a = Yn(e, t, n, r, Vr(e, t, r)), s = gc(e, t, r.separator, r); + return Qp(e, t, r, a, s); +} +i(TC, "repetitionSep"); +function RC(e, t, r) { + const n = Fe(e, t, r, { + type: dC + }); + Nr(e, n); + const a = Yn(e, t, n, r, Vr(e, t, r)); + return Zp(e, t, r, a); +} +i(RC, "repetitionMandatory"); +function $C(e, t, r) { + const n = Fe(e, t, r, { + type: dC + }); + Nr(e, n); + const a = Yn(e, t, n, r, Vr(e, t, r)), s = gc(e, t, r.separator, r); + return Zp(e, t, r, a, s); +} +i($C, "repetitionMandatorySep"); +function AC(e, t, r) { + const n = Fe(e, t, r, { + type: Ur + }); + Nr(e, n); + const a = gr(r.definition, (o) => Jp(e, t, o)); + return Yn(e, t, n, r, ...a); +} +i(AC, "alternation"); +function EC(e, t, r) { + const n = Fe(e, t, r, { + type: Ur + }); + Nr(e, n); + const a = Yn(e, t, n, r, Vr(e, t, r)); + return _C(e, t, r, a); +} +i(EC, "option"); +function Vr(e, t, r) { + const n = m1(gr(r.definition, (a) => Jp(e, t, a)), (a) => a !== void 0); + return n.length === 1 ? n[0] : n.length === 0 ? void 0 : bC(e, n); +} +i(Vr, "block"); +function Zp(e, t, r, n, a) { + const s = n.left, o = n.right, l = Fe(e, t, r, { + type: R1 + }); + Nr(e, l); + const c = Fe(e, t, r, { + type: hC + }); + return s.loopback = l, c.loopback = l, e.decisionMap[In(t, a ? "RepetitionMandatoryWithSeparator" : "RepetitionMandatory", r.idx)] = l, Pe(o, l), a === void 0 ? (Pe(l, s), Pe(l, c)) : (Pe(l, c), Pe(l, a.left), Pe(a.right, s)), { + left: s, + right: c + }; +} +i(Zp, "plus"); +function Qp(e, t, r, n, a) { + const s = n.left, o = n.right, l = Fe(e, t, r, { + type: T1 + }); + Nr(e, l); + const c = Fe(e, t, r, { + type: hC + }), u = Fe(e, t, r, { + type: v1 + }); + return l.loopback = u, c.loopback = u, Pe(l, s), Pe(l, c), Pe(o, u), a !== void 0 ? (Pe(u, c), Pe(u, a.left), Pe(a.right, s)) : Pe(u, l), e.decisionMap[In(t, a ? "RepetitionWithSeparator" : "Repetition", r.idx)] = l, { + left: l, + right: c + }; +} +i(Qp, "star"); +function _C(e, t, r, n) { + const a = n.left, s = n.right; + return Pe(a, s), e.decisionMap[In(t, "Option", r.idx)] = a, n; +} +i(_C, "optional"); +function Nr(e, t) { + return e.decisionStates.push(t), t.decision = e.decisionStates.length - 1, t.decision; +} +i(Nr, "defineDecisionState"); +function Yn(e, t, r, n, ...a) { + const s = Fe(e, t, n, { + type: y1, + start: r + }); + r.end = s; + for (const l of a) + l !== void 0 ? (Pe(r, l.left), Pe(l.right, s)) : Pe(r, s); + const o = { + left: r, + right: s + }; + return e.decisionMap[In(t, CC(n), n.idx)] = r, o; +} +i(Yn, "makeAlts"); +function CC(e) { + if (e instanceof lt) + return "Alternation"; + if (e instanceof Be) + return "Option"; + if (e instanceof we) + return "Repetition"; + if (e instanceof ot) + return "RepetitionWithSeparator"; + if (e instanceof mt) + return "RepetitionMandatory"; + if (e instanceof gt) + return "RepetitionMandatoryWithSeparator"; + throw new Error("Invalid production type encountered"); +} +i(CC, "getProdType"); +function bC(e, t) { + const r = t.length; + for (let s = 0; s < r - 1; s++) { + const o = t[s]; + let l; + o.left.transitions.length === 1 && (l = o.left.transitions[0]); + const c = l instanceof Xp, u = l, f = t[s + 1].left; + o.left.type === Ur && o.right.type === Ur && l !== void 0 && (c && u.followState === o.right || l.target === o.right) ? (c ? u.followState = f : l.target = f, IC(e, o.right)) : Pe(o.right, f); + } + const n = t[0], a = t[r - 1]; + return { + left: n.left, + right: a.right + }; +} +i(bC, "makeBlock"); +function gc(e, t, r, n) { + const a = Fe(e, t, n, { + type: Ur + }), s = Fe(e, t, n, { + type: Ur + }); + return yc(a, new Yp(s, r)), { + left: a, + right: s + }; +} +i(gc, "tokenRef"); +function SC(e, t, r) { + const n = r.referencedRule, a = e.ruleToStartState.get(n), s = Fe(e, t, r, { + type: Ur + }), o = Fe(e, t, r, { + type: Ur + }), l = new Xp(a, n, o); + return yc(s, l), { + left: s, + right: o + }; +} +i(SC, "ruleRef"); +function wC(e, t, r) { + const n = e.ruleToStartState.get(t); + Pe(n, r.left); + const a = e.ruleToStopState.get(t); + return Pe(r.right, a), { + left: n, + right: a + }; +} +i(wC, "buildRuleHandle"); +function Pe(e, t) { + const r = new mC(t); + yc(e, r); +} +i(Pe, "epsilon"); +function Fe(e, t, r, n) { + const a = Object.assign({ + atn: e, + production: r, + epsilonOnlyTransitions: !1, + rule: t, + transitions: [], + nextTokenWithinRule: [], + stateNumber: e.states.length + }, n); + return e.states.push(a), a; +} +i(Fe, "newState"); +function yc(e, t) { + e.transitions.length === 0 && (e.epsilonOnlyTransitions = t.isEpsilon()), e.transitions.push(t); +} +i(yc, "addTransition"); +function IC(e, t) { + e.states.splice(e.states.indexOf(t), 1); +} +i(IC, "removeState"); +var ul = {}, Sf = class { + static { + i(this, "ATNConfigSet"); + } + constructor() { + this.map = {}, this.configs = []; + } + get size() { + return this.configs.length; + } + finalize() { + this.map = {}; + } + add(e) { + const t = eh(e); + t in this.map || (this.map[t] = this.configs.length, this.configs.push(e)); + } + get elements() { + return this.configs; + } + get alts() { + return gr(this.configs, (e) => e.alt); + } + get key() { + let e = ""; + for (const t in this.map) + e += t + ":"; + return e; + } +}; +function eh(e, t = !0) { + return `${t ? `a${e.alt}` : ""}s${e.state.stateNumber}:${e.stack.map((r) => r.stateNumber.toString()).join("_")}`; +} +i(eh, "getATNConfigKey"); +function NC(e, t, r) { + for (var n = -1, a = e.length; ++n < a; ) { + var s = e[n], o = t(s); + if (o != null && (l === void 0 ? o === o && !fc(o) : r(o, l))) + var l = o, c = s; + } + return c; +} +i(NC, "baseExtremum"); +var $1 = NC; +function kC(e, t) { + return e < t; +} +i(kC, "baseLt"); +var A1 = kC; +function PC(e) { + return e && e.length ? $1(e, Vp, A1) : void 0; +} +i(PC, "min"); +var E1 = PC, Qm = er ? er.isConcatSpreadable : void 0; +function OC(e) { + return et(e) || cc(e) || !!(Qm && e && e[Qm]); +} +i(OC, "isFlattenable"); +var _1 = OC; +function th(e, t, r, n, a) { + var s = -1, o = e.length; + for (r || (r = _1), a || (a = []); ++s < o; ) { + var l = e[s]; + t > 0 && r(l) ? t > 1 ? th(l, t - 1, r, n, a) : a_(a, l) : n || (a[a.length] = l); + } + return a; +} +i(th, "baseFlatten"); +var LC = th; +function DC(e, t) { + return LC(gr(e, t), 1); +} +i(DC, "flatMap"); +var C1 = DC; +function MC(e, t, r, n) { + for (var a = e.length, s = r + (n ? 1 : -1); n ? s-- : ++s < a; ) + if (t(e[s], s, e)) + return s; + return -1; +} +i(MC, "baseFindIndex"); +var b1 = MC; +function xC(e) { + return e !== e; +} +i(xC, "baseIsNaN"); +var S1 = xC; +function FC(e, t, r) { + for (var n = r - 1, a = e.length; ++n < a; ) + if (e[n] === t) + return n; + return -1; +} +i(FC, "strictIndexOf"); +var w1 = FC; +function GC(e, t, r) { + return t === t ? w1(e, t, r) : b1(e, S1, r); +} +i(GC, "baseIndexOf"); +var I1 = GC; +function jC(e, t) { + var r = e == null ? 0 : e.length; + return !!r && I1(e, t, 0) > -1; +} +i(jC, "arrayIncludes"); +var N1 = jC; +function UC(e, t, r) { + for (var n = -1, a = e == null ? 0 : e.length; ++n < a; ) + if (r(t, e[n])) + return !0; + return !1; +} +i(UC, "arrayIncludesWith"); +var k1 = UC; +function zC() { +} +i(zC, "noop"); +var P1 = zC, O1 = 1 / 0, L1 = ka && 1 / jp(new ka([, -0]))[1] == O1 ? function(e) { + return new ka(e); +} : P1, D1 = L1, M1 = 200; +function BC(e, t, r) { + var n = -1, a = N1, s = e.length, o = !0, l = [], c = l; + if (r) + o = !1, a = k1; + else if (s >= M1) { + var u = t ? null : D1(e); + if (u) + return jp(u); + o = !1, a = JE, c = new HE(); + } else + c = t ? [] : l; + e: + for (; ++n < s; ) { + var f = e[n], d = t ? t(f) : f; + if (f = r || f !== 0 ? f : 0, o && d === d) { + for (var h = c.length; h--; ) + if (c[h] === d) + continue e; + t && c.push(d), l.push(f); + } else a(c, d, r) || (c !== l && c.push(d), l.push(f)); + } + return l; +} +i(BC, "baseUniq"); +var x1 = BC; +function KC(e, t) { + return e && e.length ? x1(e, hc(t)) : []; +} +i(KC, "uniqBy"); +var F1 = KC; +function qC(e) { + var t = e == null ? 0 : e.length; + return t ? LC(e, 1) : []; +} +i(qC, "flatten"); +var G1 = qC; +function WC(e, t) { + for (var r = -1, n = e == null ? 0 : e.length; ++r < n && t(e[r], r, e) !== !1; ) + ; + return e; +} +i(WC, "arrayEach"); +var j1 = WC; +function VC(e) { + return typeof e == "function" ? e : Vp; +} +i(VC, "castFunction"); +var U1 = VC; +function HC(e, t) { + var r = et(e) ? j1 : mc; + return r(e, U1(t)); +} +i(HC, "forEach"); +var Fc = HC, z1 = "[object Map]", B1 = "[object Set]", K1 = Object.prototype, q1 = K1.hasOwnProperty; +function YC(e) { + if (e == null) + return !0; + if (uc(e) && (et(e) || typeof e == "string" || typeof e.splice == "function" || cl(e) || zp(e) || cc(e))) + return !e.length; + var t = bf(e); + if (t == z1 || t == B1) + return !e.size; + if (E_(e)) + return !b_(e).length; + for (var r in e) + if (q1.call(e, r)) + return !1; + return !0; +} +i(YC, "isEmpty"); +var W1 = YC; +function XC(e, t, r, n) { + var a = -1, s = e == null ? 0 : e.length; + for (n && s && (r = e[++a]); ++a < s; ) + r = t(r, e[a], a, e); + return r; +} +i(XC, "arrayReduce"); +var V1 = XC; +function JC(e, t, r, n, a) { + return a(e, function(s, o, l) { + r = n ? (n = !1, s) : t(r, s, o, l); + }), r; +} +i(JC, "baseReduce"); +var H1 = JC; +function ZC(e, t, r) { + var n = et(e) ? V1 : H1, a = arguments.length < 3; + return n(e, hc(t), r, a, mc); +} +i(ZC, "reduce"); +var eg = ZC; +function QC(e, t) { + const r = {}; + return (n) => { + const a = n.toString(); + let s = r[a]; + return s !== void 0 || (s = { + atnStartState: e, + decision: t, + states: {} + }, r[a] = s), s; + }; +} +i(QC, "createDFACache"); +var eb = class { + static { + i(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 = ""; + const t = this.predicates.length; + for (let r = 0; r < t; r++) + e += this.predicates[r] === !0 ? "1" : "0"; + return e; + } +}, tg = new eb(), Y1 = class extends Mp { + static { + i(this, "LLStarLookaheadStrategy"); + } + constructor(e) { + var t; + super(), this.logging = (t = e?.logging) !== null && t !== void 0 ? t : ((r) => console.log(r)); + } + initialize(e) { + this.atn = gC(e.rules), this.dfas = tb(this.atn); + } + validateAmbiguousAlternationAlternatives() { + return []; + } + validateEmptyOrAlternatives() { + return []; + } + buildLookaheadForAlternation(e) { + const { prodOccurrence: t, rule: r, hasPredicates: n, dynamicTokensEnabled: a } = e, s = this.dfas, o = this.logging, l = In(r, "Alternation", t), u = this.atn.decisionMap[l].decision, f = gr(pf({ + maxLookahead: 1, + occurrence: t, + prodType: "Alternation", + rule: r + }), (d) => gr(d, (h) => h[0])); + if (wf(f, !1) && !a) { + const d = eg(f, (h, y, v) => (Fc(y, (C) => { + C && (h[C.tokenTypeIdx] = v, Fc(C.categoryMatches, (S) => { + h[S] = v; + })); + }), h), {}); + return n ? function(h) { + var y; + const v = this.LA(1), C = d[v.tokenTypeIdx]; + if (h !== void 0 && C !== void 0) { + const S = (y = h[C]) === null || y === void 0 ? void 0 : y.GATE; + if (S !== void 0 && S.call(this) === !1) + return; + } + return C; + } : function() { + const h = this.LA(1); + return d[h.tokenTypeIdx]; + }; + } else return n ? function(d) { + const h = new eb(), y = d === void 0 ? 0 : d.length; + for (let C = 0; C < y; C++) { + const S = d?.[C].GATE; + h.set(C, S === void 0 || S.call(this)); + } + const v = So.call(this, s, u, h, o); + return typeof v == "number" ? v : void 0; + } : function() { + const d = So.call(this, s, u, tg, o); + return typeof d == "number" ? d : void 0; + }; + } + buildLookaheadForOptional(e) { + const { prodOccurrence: t, rule: r, prodType: n, dynamicTokensEnabled: a } = e, s = this.dfas, o = this.logging, l = In(r, n, t), u = this.atn.decisionMap[l].decision, f = gr(pf({ + maxLookahead: 1, + occurrence: t, + prodType: n, + rule: r + }), (d) => gr(d, (h) => h[0])); + if (wf(f) && f[0][0] && !a) { + const d = f[0], h = G1(d); + if (h.length === 1 && W1(h[0].categoryMatches)) { + const v = h[0].tokenTypeIdx; + return function() { + return this.LA(1).tokenTypeIdx === v; + }; + } else { + const y = eg(h, (v, C) => (C !== void 0 && (v[C.tokenTypeIdx] = !0, Fc(C.categoryMatches, (S) => { + v[S] = !0; + })), v), {}); + return function() { + const v = this.LA(1); + return y[v.tokenTypeIdx] === !0; + }; + } + } + return function() { + const d = So.call(this, s, u, tg, o); + return typeof d == "object" ? !1 : d === 0; + }; + } +}; +function wf(e, t = !0) { + const r = /* @__PURE__ */ new Set(); + for (const n of e) { + const a = /* @__PURE__ */ new Set(); + for (const s of n) { + if (s === void 0) { + if (t) + break; + return !1; + } + const o = [s.tokenTypeIdx].concat(s.categoryMatches); + for (const l of o) + if (r.has(l)) { + if (!a.has(l)) + return !1; + } else + r.add(l), a.add(l); + } + } + return !0; +} +i(wf, "isLL1Sequence"); +function tb(e) { + const t = e.decisionStates.length, r = Array(t); + for (let n = 0; n < t; n++) + r[n] = QC(e.decisionStates[n], n); + return r; +} +i(tb, "initATNSimulator"); +function So(e, t, r, n) { + const a = e[t](r); + let s = a.start; + if (s === void 0) { + const l = db(a.atnStartState); + s = nh(a, rh(l)), a.start = s; + } + return rb.apply(this, [a, s, r, n]); +} +i(So, "adaptivePredict"); +function rb(e, t, r, n) { + let a = t, s = 1; + const o = []; + let l = this.LA(s++); + for (; ; ) { + let c = lb(a, l); + if (c === void 0 && (c = nb.apply(this, [e, a, l, s, r, n])), c === ul) + return ob(o, a, l); + if (c.isAcceptState === !0) + return c.prediction; + a = c, o.push(l), l = this.LA(s++); + } +} +i(rb, "performLookahead"); +function nb(e, t, r, n, a, s) { + const o = cb(t.configs, r, a); + if (o.size === 0) + return If(e, t, r, ul), ul; + let l = rh(o); + const c = fb(o, a); + if (c !== void 0) + l.isAcceptState = !0, l.prediction = c, l.configs.uniqueAlt = c; + else if (gb(o)) { + const u = E1(o.alts); + l.isAcceptState = !0, l.prediction = u, l.configs.uniqueAlt = u, ab.apply(this, [e, n, o.alts, s]); + } + return l = If(e, t, r, l), l; +} +i(nb, "computeLookaheadTarget"); +function ab(e, t, r, n) { + const a = []; + for (let u = 1; u <= t; u++) + a.push(this.LA(u).tokenType); + const s = e.atnStartState, o = s.rule, l = s.production, c = ib({ + topLevelRule: o, + ambiguityIndices: r, + production: l, + prefixPath: a + }); + n(c); +} +i(ab, "reportLookaheadAmbiguity"); +function ib(e) { + const t = gr(e.prefixPath, (a) => _n(a)).join(", "), r = e.production.idx === 0 ? "" : e.production.idx; + let n = `Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${sb(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; +} +i(ib, "buildAmbiguityError"); +function sb(e) { + if (e instanceof Ze) + return "SUBRULE"; + if (e instanceof Be) + return "OPTION"; + if (e instanceof lt) + return "OR"; + if (e instanceof mt) + return "AT_LEAST_ONE"; + if (e instanceof gt) + return "AT_LEAST_ONE_SEP"; + if (e instanceof ot) + return "MANY_SEP"; + if (e instanceof we) + return "MANY"; + if (e instanceof Te) + return "CONSUME"; + throw Error("non exhaustive match"); +} +i(sb, "getProductionDslName"); +function ob(e, t, r) { + const n = C1(t.configs.elements, (s) => s.state.transitions), a = F1(n.filter((s) => s instanceof Yp).map((s) => s.tokenType), (s) => s.tokenTypeIdx); + return { + actualToken: r, + possibleTokenTypes: a, + tokenPath: e + }; +} +i(ob, "buildAdaptivePredictError"); +function lb(e, t) { + return e.edges[t.tokenTypeIdx]; +} +i(lb, "getExistingTargetState"); +function cb(e, t, r) { + const n = new Sf(), a = []; + for (const o of e.elements) { + if (r.is(o.alt) === !1) + continue; + if (o.state.type === zs) { + a.push(o); + continue; + } + const l = o.state.transitions.length; + for (let c = 0; c < l; c++) { + const u = o.state.transitions[c], f = ub(u, t); + f !== void 0 && n.add({ + state: f, + alt: o.alt, + stack: o.stack + }); + } + } + let s; + if (a.length === 0 && n.size === 1 && (s = n), s === void 0) { + s = new Sf(); + for (const o of n.elements) + Rs(o, s); + } + if (a.length > 0 && !hb(s)) + for (const o of a) + s.add(o); + return s; +} +i(cb, "computeReachSet"); +function ub(e, t) { + if (e instanceof Yp && Ip(t, e.tokenType)) + return e.target; +} +i(ub, "getReachableTarget"); +function fb(e, t) { + let r; + for (const 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; +} +i(fb, "getUniqueAlt"); +function rh(e) { + return { + configs: e, + edges: {}, + isAcceptState: !1, + prediction: -1 + }; +} +i(rh, "newDFAState"); +function If(e, t, r, n) { + return n = nh(e, n), t.edges[r.tokenTypeIdx] = n, n; +} +i(If, "addDFAEdge"); +function nh(e, t) { + if (t === ul) + return t; + const r = t.configs.key, n = e.states[r]; + return n !== void 0 ? n : (t.configs.finalize(), e.states[r] = t, t); +} +i(nh, "addDFAState"); +function db(e) { + const t = new Sf(), r = e.transitions.length; + for (let n = 0; n < r; n++) { + const s = { + state: e.transitions[n].target, + alt: n, + stack: [] + }; + Rs(s, t); + } + return t; +} +i(db, "computeStartState"); +function Rs(e, t) { + const r = e.state; + if (r.type === zs) { + if (e.stack.length > 0) { + const a = [...e.stack], o = { + state: a.pop(), + alt: e.alt, + stack: a + }; + Rs(o, t); + } else + t.add(e); + return; + } + r.epsilonOnlyTransitions || t.add(e); + const n = r.transitions.length; + for (let a = 0; a < n; a++) { + const s = r.transitions[a], o = pb(e, s); + o !== void 0 && Rs(o, t); + } +} +i(Rs, "closure"); +function pb(e, t) { + if (t instanceof mC) + return { + state: t.target, + alt: e.alt, + stack: e.stack + }; + if (t instanceof Xp) { + const r = [...e.stack, t.followState]; + return { + state: t.target, + alt: e.alt, + stack: r + }; + } +} +i(pb, "getEpsilonTarget"); +function hb(e) { + for (const t of e.elements) + if (t.state.type === zs) + return !0; + return !1; +} +i(hb, "hasConfigInRuleStopState"); +function mb(e) { + for (const t of e.elements) + if (t.state.type !== zs) + return !1; + return !0; +} +i(mb, "allConfigsInRuleStopStates"); +function gb(e) { + if (mb(e)) + return !0; + const t = yb(e.elements); + return vb(t) && !Tb(t); +} +i(gb, "hasConflictTerminatingPrediction"); +function yb(e) { + const t = /* @__PURE__ */ new Map(); + for (const r of e) { + const n = eh(r, !1); + let a = t.get(n); + a === void 0 && (a = {}, t.set(n, a)), a[r.alt] = !0; + } + return t; +} +i(yb, "getConflictingAltSets"); +function vb(e) { + for (const t of Array.from(e.values())) + if (Object.keys(t).length > 1) + return !0; + return !1; +} +i(vb, "hasConflictingAltSet"); +function Tb(e) { + for (const t of Array.from(e.values())) + if (Object.keys(t).length === 1) + return !0; + return !1; +} +i(Tb, "hasStateAssociatedWithOneAlt"); +Es(); +var Rb = class { + static { + i(this, "CstNodeBuilder"); + } + constructor() { + this.nodeStack = []; + } + get current() { + return this.nodeStack[this.nodeStack.length - 1] ?? this.rootNode; + } + buildRootNode(e) { + return this.rootNode = new ih(e), this.rootNode.root = this.rootNode, this.nodeStack = [this.rootNode], this.rootNode; + } + buildCompositeNode(e) { + const t = new vc(); + return t.grammarSource = e, t.root = this.rootNode, this.current.content.push(t), this.nodeStack.push(t), t; + } + buildLeafNode(e, t) { + const r = new fl(e.startOffset, e.image.length, os(e), e.tokenType, !t); + return r.grammarSource = t, r.root = this.rootNode, this.current.content.push(r), r; + } + removeNode(e) { + const t = e.container; + if (t) { + const r = t.content.indexOf(e); + r >= 0 && t.content.splice(r, 1); + } + } + addHiddenNodes(e) { + const t = []; + for (const a of e) { + const s = new fl(a.startOffset, a.image.length, os(a), a.tokenType, !0); + s.root = this.rootNode, t.push(s); + } + let r = this.current, n = !1; + if (r.content.length > 0) { + r.content.push(...t); + return; + } + for (; r.container; ) { + const 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) { + const t = this.current; + typeof e.$type == "string" && !e.$infix && (this.current.astNode = e), e.$cstNode = t; + const r = this.nodeStack.pop(); + r?.content.length === 0 && this.removeNode(r); + } +}, ah = class { + static { + i(this, "AbstractCstNode"); + } + get hidden() { + return !1; + } + get astNode() { + const 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); + } +}, fl = class extends ah { + static { + i(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; + } +}, vc = class extends ah { + static { + i(this, "CompositeCstNodeImpl"); + } + constructor() { + super(...arguments), this.content = new X1(this); + } + get offset() { + return this.firstNonHiddenNode?.offset ?? 0; + } + get length() { + return this.end - this.offset; + } + get end() { + return this.lastNonHiddenNode?.end ?? 0; + } + get range() { + const e = this.firstNonHiddenNode, t = this.lastNonHiddenNode; + if (e && t) { + if (this._rangeCache === void 0) { + const { range: r } = e, { range: n } = t; + this._rangeCache = { start: r.start, end: n.end.line < r.start.line ? r.start : n.end }; + } + return this._rangeCache; + } else + return { start: ie.create(0, 0), end: ie.create(0, 0) }; + } + get firstNonHiddenNode() { + for (const e of this.content) + if (!e.hidden) + return e; + return this.content[0]; + } + get lastNonHiddenNode() { + for (let e = this.content.length - 1; e >= 0; e--) { + const t = this.content[e]; + if (!t.hidden) + return t; + } + return this.content[this.content.length - 1]; + } +}, X1 = class $b extends Array { + static { + i(this, "CstNodeContainer"); + } + constructor(t) { + super(), this.parent = t, Object.setPrototypeOf(this, $b.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 (const r of t) + r.container = this.parent; + } +}, ih = class extends vc { + static { + i(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 ?? ""; + } +}, dl = Symbol("Datatype"); +function wo(e) { + return e.$type === dl; +} +i(wo, "isDataTypeNode"); +var rg = "​", Ab = /* @__PURE__ */ i((e) => e.endsWith(rg) ? e : e + rg, "withRuleSuffix"), sh = class { + static { + i(this, "AbstractLangiumParser"); + } + constructor(e) { + this._unorderedGroups = /* @__PURE__ */ new Map(), this.allRules = /* @__PURE__ */ new Map(), this.lexer = e.parser.Lexer; + const t = this.lexer.definition, r = e.LanguageMetaData.mode === "production"; + e.shared.profilers.LangiumProfiler?.isActive("parsing") ? this.wrapper = new Z1(t, { + ...e.parser.ParserConfig, + skipValidations: r, + errorMessageProvider: e.parser.ParserErrorMessageProvider + }, e.shared.profilers.LangiumProfiler.createTask("parsing", e.LanguageMetaData.languageId)) : this.wrapper = new bb(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(); + } +}, Eb = class extends sh { + static { + i(this, "LangiumParser"); + } + get current() { + return this.stack[this.stack.length - 1]; + } + constructor(e) { + super(e), this.nodeBuilder = new Rb(), this.stack = [], this.assignmentMap = /* @__PURE__ */ new Map(), this.operatorPrecedence = /* @__PURE__ */ new Map(), this.linker = e.references.Linker, this.converter = e.parser.ValueConverter, this.astReflection = e.shared.AstReflection; + } + rule(e, t) { + const r = this.computeRuleType(e); + let n; + Ma(e) && (n = e.name, this.registerPrecedenceMap(e)); + const a = this.wrapper.DEFINE_RULE(Ab(e.name), this.startImplementation(r, n, t).bind(this)); + return this.allRules.set(e.name, a), Je(e) && e.entry && (this.mainRule = a), a; + } + registerPrecedenceMap(e) { + const t = e.name, r = /* @__PURE__ */ new Map(); + for (let n = 0; n < e.operators.precedences.length; n++) { + const a = e.operators.precedences[n]; + for (const s of a.operators) + r.set(s.value, { + precedence: n, + rightAssoc: a.associativity === "right" + }); + } + this.operatorPrecedence.set(t, r); + } + computeRuleType(e) { + return Ma(e) ? bn(e) : e.fragment ? void 0 : Ss(e) ? dl : bn(e); + } + parse(e, t = {}) { + this.nodeBuilder.buildRootNode(e); + const r = this.lexerResult = this.lexer.tokenize(e); + this.wrapper.input = r.tokens; + const n = t.rule ? this.allRules.get(t.rule) : this.mainRule; + if (!n) + throw new Error(t.rule ? `No rule found with name '${t.rule}'` : "No main rule available."); + const a = this.doParse(n); + return this.nodeBuilder.addHiddenNodes(r.hidden), this.unorderedGroups.clear(), this.lexerResult = void 0, La(a, { deep: !0 }), { + value: a, + lexerErrors: r.errors, + lexerReport: r.report, + parserErrors: this.wrapper.errors + }; + } + doParse(e) { + let t = this.wrapper.rule(e); + if (this.stack.length > 0 && (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) => { + const a = !this.isRecording() && e !== void 0; + if (a) { + const s = { $type: e }; + this.stack.push(s), e === dl ? s.value = "" : t !== void 0 && (s.$infixName = t); + } + return r(n), a ? this.construct() : void 0; + }; + } + extractHiddenTokens(e) { + const t = this.lexerResult.hidden; + if (!t.length) + return []; + const r = e.startOffset; + for (let n = 0; n < t.length; n++) + if (t[n].startOffset > r) + return t.splice(0, n); + return t.splice(0, t.length); + } + consume(e, t, r) { + const n = this.wrapper.wrapConsume(e, t); + if (!this.isRecording() && this.isValidToken(n)) { + const a = this.extractHiddenTokens(n); + this.nodeBuilder.addHiddenNodes(a); + const s = this.nodeBuilder.buildLeafNode(n, r), { assignment: o, crossRef: l } = this.getAssignment(r), c = this.current; + if (o) { + const u = Tr(r) ? n.image : this.converter.convert(n.image, s); + this.assign(o.operator, o.feature, u, s, l); + } else if (wo(c)) { + let u = n.image; + Tr(r) || (u = this.converter.convert(u, s).toString()), c.value += u; + } + } + } + /** + * Most consumed parser tokens are valid. However there are two cases in which they are not valid: + * + * 1. They were inserted during error recovery by the parser. These tokens don't really exist and should not be further processed + * 2. They contain invalid token ranges. This might include the special EOF token, or other tokens produced by invalid token builders. + */ + isValidToken(e) { + return !e.isInsertedInRecovery && !isNaN(e.startOffset) && typeof e.endOffset == "number" && !isNaN(e.endOffset); + } + subrule(e, t, r, n, a) { + let s; + !this.isRecording() && !r && (s = 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 && s && s.length > 0 && this.performSubruleAssignment(o, n, s)); + } + } + performSubruleAssignment(e, t, r) { + const { assignment: n, crossRef: a } = this.getAssignment(t); + if (n) + this.assign(n.operator, n.feature, e, r, a); + else if (!n) { + const s = this.current; + if (wo(s)) + s.value += e.toString(); + else if (typeof e == "object" && e) { + const l = this.assignWithoutOverride(e, s); + 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); + const 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; + const e = this.stack.pop(); + return this.nodeBuilder.construct(e), "$infixName" in e ? this.constructInfix(e, this.operatorPrecedence.get(e.$infixName)) : wo(e) ? this.converter.convert(e.value, e.$cstNode) : (ad(this.astReflection, e), e); + } + constructInfix(e, t) { + const r = e.parts; + if (!Array.isArray(r) || r.length === 0) + return; + const n = e.operators; + if (!Array.isArray(n) || r.length < 2) + return r[0]; + let a = 0, s = -1; + for (let v = 0; v < n.length; v++) { + const C = n[v], S = t.get(C) ?? { + precedence: 1 / 0, + rightAssoc: !1 + }; + S.precedence > s ? (s = S.precedence, a = v) : S.precedence === s && (S.rightAssoc || (a = v)); + } + const o = n.slice(0, a), l = n.slice(a + 1), c = r.slice(0, a + 1), u = r.slice(a + 1), f = { + $infixName: e.$infixName, + $type: e.$type, + $cstNode: e.$cstNode, + parts: c, + operators: o + }, d = { + $infixName: e.$infixName, + $type: e.$type, + $cstNode: e.$cstNode, + parts: u, + operators: l + }, h = this.constructInfix(f, t), y = this.constructInfix(d, t); + return { + $type: e.$type, + $cstNode: e.$cstNode, + left: h, + operator: n[a], + right: y + }; + } + getAssignment(e) { + if (!this.assignmentMap.has(e)) { + const t = Pn(e, vr); + this.assignmentMap.set(e, { + assignment: t, + crossRef: t && Ln(t.terminal) ? t.terminal.isMulti ? "multi" : "single" : void 0 + }); + } + return this.assignmentMap.get(e); + } + assign(e, t, r, n, a) { + const s = this.current; + let o; + switch (a === "single" && typeof r == "string" ? o = this.linker.buildReference(s, t, n, r) : a === "multi" && typeof r == "string" ? o = this.linker.buildMultiReference(s, t, n, r) : o = r, e) { + case "=": { + s[t] = o; + break; + } + case "?=": { + s[t] = !0; + break; + } + case "+=": + Array.isArray(s[t]) || (s[t] = []), s[t].push(o); + } + } + assignWithoutOverride(e, t) { + for (const [n, a] of Object.entries(t)) { + const s = e[n]; + s === void 0 ? e[n] = a : Array.isArray(s) && Array.isArray(a) && (a.push(...s), e[n] = a); + } + const r = e.$cstNode; + return r && (r.astNode = void 0, e.$cstNode = void 0), e; + } + get definitionErrors() { + return this.wrapper.definitionErrors; + } +}, _b = class { + static { + i(this, "AbstractParserErrorMessageProvider"); + } + buildMismatchTokenMessage(e) { + return Sa.buildMismatchTokenMessage(e); + } + buildNotAllInputParsedMessage(e) { + return Sa.buildNotAllInputParsedMessage(e); + } + buildNoViableAltMessage(e) { + return Sa.buildNoViableAltMessage(e); + } + buildEarlyExitMessage(e) { + return Sa.buildEarlyExitMessage(e); + } +}, oh = class extends _b { + static { + i(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}\`.`; + } +}, Cb = class extends sh { + static { + i(this, "LangiumCompletionParser"); + } + constructor() { + super(...arguments), this.tokens = [], this.elementStack = [], this.lastElementStack = [], this.nextTokenIndex = 0, this.stackSize = 0; + } + action() { + } + construct() { + } + parse(e) { + this.resetState(); + const 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) { + const r = this.wrapper.DEFINE_RULE(Ab(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) => { + const r = this.keepStackSize(); + try { + e(t); + } finally { + this.resetStackSize(r); + } + }; + } + removeUnexpectedElements() { + this.elementStack.splice(this.stackSize); + } + keepStackSize() { + const 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()) { + const t = this.elementStack.lastIndexOf(e); + t >= 0 && this.elementStack.splice(t); + } + } + get currIdx() { + return this.wrapper.currIdx; + } +}, J1 = { + recoveryEnabled: !0, + nodeLocationTracking: "full", + skipValidations: !0, + errorMessageProvider: new oh() +}, bb = class extends xL { + static { + i(this, "ChevrotainWrapper"); + } + constructor(e, t) { + const r = t && "maxLookahead" in t; + super(e, { + ...J1, + lookaheadStrategy: r ? new Mp({ maxLookahead: t.maxLookahead }) : new Y1({ + // If validations are skipped, don't log the lookahead warnings + 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, {}); + } +}, Z1 = class extends bb { + static { + i(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 Tc(e, t, r) { + return Sb({ + parser: t, + tokens: r, + ruleNames: /* @__PURE__ */ new Map() + }, e), t; +} +i(Tc, "createParser"); +function Sb(e, t) { + const r = Ll(t, !1), n = oe(t.rules).filter(Je).filter((s) => r.has(s)); + for (const s of n) { + const o = { + ...e, + consume: 1, + optional: 1, + subrule: 1, + many: 1, + or: 1 + }; + e.parser.rule(s, zr(o, s.definition)); + } + const a = oe(t.rules).filter(Ma).filter((s) => r.has(s)); + for (const s of a) + e.parser.rule(s, wb(e, s)); +} +i(Sb, "buildRules"); +function wb(e, t) { + const r = t.call.rule.ref; + if (!r) + throw new Error("Could not resolve reference to infix operator rule: " + t.call.rule.$refText); + if (St(r)) + throw new Error("Cannot use terminal rule in infix expression"); + const n = t.operators.precedences.flatMap((y) => y.operators), a = { + $type: "Group", + elements: [] + }, s = { + $container: a, + $type: "Assignment", + feature: "parts", + operator: "+=", + terminal: t.call + }, o = { + $container: a, + $type: "Group", + elements: [], + cardinality: "*" + }; + a.elements.push(s, o); + const c = { + $container: o, + $type: "Assignment", + feature: "operators", + operator: "+=", + terminal: { + $type: "Alternatives", + elements: n + } + }, u = { + ...s, + $container: o + }; + o.elements.push(c, u); + const d = n.map((y) => e.tokens[y.value]).map((y, v) => ({ + ALT: /* @__PURE__ */ i(() => e.parser.consume(v, y, c), "ALT") + })); + let h; + return (y) => { + h ?? (h = Rc(e, r)), e.parser.subrule(0, h, !1, s, y), e.parser.many(0, { + DEF: /* @__PURE__ */ i(() => { + e.parser.alternatives(0, d), e.parser.subrule(1, h, !1, u, y); + }, "DEF") + }); + }; +} +i(wb, "buildInfixRule"); +function zr(e, t, r = !1) { + let n; + if (Tr(t)) + n = Db(e, t); + else if (Fr(t)) + n = Ib(e, t); + else if (vr(t)) + n = zr(e, t.terminal); + else if (Ln(t)) + n = lh(e, t); + else if (Rr(t)) + n = Nb(e, t); + else if (Cl(t)) + n = Pb(e, t); + else if (Il(t)) + n = Ob(e, t); + else if (Dn(t)) + n = Lb(e, t); + else if (fd(t)) { + const a = e.consume++; + n = /* @__PURE__ */ i(() => e.parser.consume(a, jr, t), "method"); + } else + throw new kl(t.$cstNode, `Unexpected element type: ${t.$type}`); + return ch(e, r ? void 0 : $s(t), n, t.cardinality); +} +i(zr, "buildElement"); +function Ib(e, t) { + const r = bn(t); + return () => e.parser.action(r, t); +} +i(Ib, "buildAction"); +function Nb(e, t) { + const r = t.rule.ref; + if (On(r)) { + const n = e.subrule++, a = Je(r) && r.fragment, s = t.arguments.length > 0 ? kb(r, t.arguments) : () => ({}); + let o; + return (l) => { + o ?? (o = Rc(e, r)), e.parser.subrule(n, o, a, t, s(l)); + }; + } else if (St(r)) { + const n = e.consume++, a = pl(e, r.name); + return () => e.parser.consume(n, a, t); + } else if (r) + Kr(); + else + throw new kl(t.$cstNode, `Undefined rule: ${t.rule.$refText}`); +} +i(Nb, "buildRuleCall"); +function kb(e, t) { + if (t.some((n) => n.calledByName)) { + const n = t.map((a) => ({ + parameterName: a.parameter?.ref?.name, + predicate: Lt(a.value) + })); + return (a) => { + const s = {}; + for (const { parameterName: o, predicate: l } of n) + o && (s[o] = l(a)); + return s; + }; + } else { + const n = t.map((a) => Lt(a.value)); + return (a) => { + const s = {}; + for (let o = 0; o < n.length; o++) + if (o < e.parameters.length) { + const l = e.parameters[o].name, c = n[o]; + s[l] = c(a); + } + return s; + }; + } +} +i(kb, "buildRuleCallPredicate"); +function Lt(e) { + if (ud(e)) { + const t = Lt(e.left), r = Lt(e.right); + return (n) => t(n) || r(n); + } else if (cd(e)) { + const t = Lt(e.left), r = Lt(e.right); + return (n) => t(n) && r(n); + } else if (hd(e)) { + const t = Lt(e.value); + return (r) => !t(r); + } else if (md(e)) { + const t = e.parameter.ref.name; + return (r) => r !== void 0 && r[t] === !0; + } else if (od(e)) { + const t = !!e.true; + return () => t; + } + Kr(); +} +i(Lt, "buildPredicate"); +function Pb(e, t) { + if (t.elements.length === 1) + return zr(e, t.elements[0]); + { + const r = []; + for (const a of t.elements) { + const s = { + // Since we handle the guard condition in the alternative already + // We can ignore the group guard condition inside + ALT: zr(e, a, !0) + }, o = $s(a); + o && (s.GATE = Lt(o)), r.push(s); + } + const n = e.or++; + return (a) => e.parser.alternatives(n, r.map((s) => { + const o = { + ALT: /* @__PURE__ */ i(() => s.ALT(a), "ALT") + }, l = s.GATE; + return l && (o.GATE = () => l(a)), o; + })); + } +} +i(Pb, "buildAlternatives"); +function Ob(e, t) { + if (t.elements.length === 1) + return zr(e, t.elements[0]); + const r = []; + for (const l of t.elements) { + const c = { + // Since we handle the guard condition in the alternative already + // We can ignore the group guard condition inside + ALT: zr(e, l, !0) + }, u = $s(l); + u && (c.GATE = Lt(u)), r.push(c); + } + const n = e.or++, a = /* @__PURE__ */ i((l, c) => { + const u = c.getRuleStack().join("-"); + return `uGroup_${l}_${u}`; + }, "idFunc"), s = /* @__PURE__ */ i((l) => e.parser.alternatives(n, r.map((c, u) => { + const f = { ALT: /* @__PURE__ */ i(() => !0, "ALT") }, d = e.parser; + f.ALT = () => { + if (c.ALT(l), !d.isRecording()) { + const y = a(n, d); + d.unorderedGroups.get(y) || d.unorderedGroups.set(y, []); + const v = d.unorderedGroups.get(y); + typeof v?.[u] > "u" && (v[u] = !0); + } + }; + const h = c.GATE; + return h ? f.GATE = () => h(l) : f.GATE = () => !d.unorderedGroups.get(a(n, d))?.[u], f; + })), "alternatives"), o = ch(e, $s(t), s, "*"); + return (l) => { + o(l), e.parser.isRecording() || e.parser.unorderedGroups.delete(a(n, e.parser)); + }; +} +i(Ob, "buildUnorderedGroup"); +function Lb(e, t) { + const r = t.elements.map((n) => zr(e, n)); + return (n) => r.forEach((a) => a(n)); +} +i(Lb, "buildGroup"); +function $s(e) { + if (Dn(e)) + return e.guardCondition; +} +i($s, "getGuardCondition"); +function lh(e, t, r = t.terminal) { + if (r) + if (Rr(r) && Je(r.rule.ref)) { + const n = r.rule.ref, a = e.subrule++; + let s; + return (o) => { + s ?? (s = Rc(e, n)), e.parser.subrule(a, s, !1, t, o); + }; + } else if (Rr(r) && St(r.rule.ref)) { + const n = e.consume++, a = pl(e, r.rule.ref.name); + return () => e.parser.consume(n, a, t); + } else if (Tr(r)) { + const n = e.consume++, a = pl(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); + const a = Fl(t.type.ref)?.terminal; + if (!a) + throw new Error("Could not find name assignment for type: " + bn(t.type.ref)); + return lh(e, t, a); + } +} +i(lh, "buildCrossReference"); +function Db(e, t) { + const 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); +} +i(Db, "buildKeyword"); +function ch(e, t, r, n) { + const a = t && Lt(t); + if (!n) + if (a) { + const s = e.or++; + return (o) => e.parser.alternatives(s, [ + { + ALT: /* @__PURE__ */ i(() => r(o), "ALT"), + GATE: /* @__PURE__ */ i(() => a(o), "GATE") + }, + { + ALT: Af(), + GATE: /* @__PURE__ */ i(() => !a(o), "GATE") + } + ]); + } else + return r; + if (n === "*") { + const s = e.many++; + return (o) => e.parser.many(s, { + DEF: /* @__PURE__ */ i(() => r(o), "DEF"), + GATE: a ? () => a(o) : void 0 + }); + } else if (n === "+") { + const s = e.many++; + if (a) { + const o = e.or++; + return (l) => e.parser.alternatives(o, [ + { + ALT: /* @__PURE__ */ i(() => e.parser.atLeastOne(s, { + DEF: /* @__PURE__ */ i(() => r(l), "DEF") + }), "ALT"), + GATE: /* @__PURE__ */ i(() => a(l), "GATE") + }, + { + ALT: Af(), + GATE: /* @__PURE__ */ i(() => !a(l), "GATE") + } + ]); + } else + return (o) => e.parser.atLeastOne(s, { + DEF: /* @__PURE__ */ i(() => r(o), "DEF") + }); + } else if (n === "?") { + const s = e.optional++; + return (o) => e.parser.optional(s, { + DEF: /* @__PURE__ */ i(() => r(o), "DEF"), + GATE: a ? () => a(o) : void 0 + }); + } else + Kr(); +} +i(ch, "wrap"); +function Rc(e, t) { + const r = Mb(e, t), n = e.parser.getRule(r); + if (!n) + throw new Error(`Rule "${r}" not found."`); + return n; +} +i(Rc, "getRule"); +function Mb(e, t) { + if (On(t)) + return t.name; + if (e.ruleNames.has(t)) + return e.ruleNames.get(t); + { + let r = t, n = r.$container, a = t.$type; + for (; !Je(n); ) + (Dn(n) || Cl(n) || Il(n)) && (a = n.elements.indexOf(r).toString() + ":" + a), r = n, n = n.$container; + return a = n.name + ":" + a, e.ruleNames.set(t, a), a; + } +} +i(Mb, "getRuleName"); +function pl(e, t) { + const r = e.tokens[t]; + if (!r) + throw new Error(`Token "${t}" not found."`); + return r; +} +i(pl, "getToken"); +function uh(e) { + const t = e.Grammar, r = e.parser.Lexer, n = new Cb(e); + return Tc(t, n, r.definition), n.finalize(), n; +} +i(uh, "createCompletionParser"); +function fh(e) { + const t = dh(e); + return t.finalize(), t; +} +i(fh, "createLangiumParser"); +function dh(e) { + const t = e.Grammar, r = e.parser.Lexer, n = new Eb(e); + return Tc(t, n, r.definition); +} +i(dh, "prepareLangiumParser"); +var $c = class { + static { + i(this, "DefaultTokenBuilder"); + } + constructor() { + this.diagnostics = []; + } + buildTokens(e, t) { + const r = oe(Ll(e, !1)), n = this.buildTerminalTokens(r), a = this.buildKeywordTokens(r, n, t); + return a.push(...n), a; + } + // eslint-disable-next-line @typescript-eslint/no-unused-vars + flushLexingReport(e) { + return { diagnostics: this.popDiagnostics() }; + } + popDiagnostics() { + const e = [...this.diagnostics]; + return this.diagnostics = [], e; + } + buildTerminalTokens(e) { + return e.filter(St).filter((t) => !t.fragment).map((t) => this.buildTerminalToken(t)).toArray(); + } + buildTerminalToken(e) { + const t = Is(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 = Ol(t) ? Xe.SKIPPED : "hidden"), n; + } + requiresCustomPattern(e) { + return !!(e.flags.includes("u") || e.flags.includes("s")); + } + regexPatternFunction(e) { + const t = new RegExp(e, e.flags + "y"); + return (r, n) => (t.lastIndex = n, t.exec(r)); + } + buildKeywordTokens(e, t, r) { + return e.filter(On).flatMap((n) => Sr(n).filter(Tr)).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) { + const 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(Wa(e.value), "i") : e.value; + } + findLongerAlt(e, t) { + return t.reduce((r, n) => { + const a = n?.PATTERN; + return a?.source && xd("^" + a.source + "$", e.value) && r.push(n), r; + }, []); + } +}, ph = class { + static { + i(this, "DefaultValueConverter"); + } + convert(e, t) { + let r = t.grammarSource; + if (Ln(r) && (r = zd(r)), Rr(r)) { + const 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; + } + // eslint-disable-next-line @typescript-eslint/no-unused-vars + runConverter(e, t, r) { + switch (e.name.toUpperCase()) { + case "INT": + return Ht.convertInt(t); + case "STRING": + return Ht.convertString(t); + case "ID": + return Ht.convertID(t); + } + switch (Jd(e)?.toLowerCase()) { + case "number": + return Ht.convertNumber(t); + case "boolean": + return Ht.convertBoolean(t); + case "bigint": + return Ht.convertBigint(t); + case "date": + return Ht.convertDate(t); + default: + return t; + } + } +}, Ht; +(function(e) { + function t(u) { + let f = ""; + for (let d = 1; d < u.length - 1; d++) { + const h = u.charAt(d); + if (h === "\\") { + const y = u.charAt(++d); + f += r(y); + } else + f += h; + } + return f; + } + i(t, "convertString"), e.convertString = t; + function r(u) { + switch (u) { + case "b": + return "\b"; + case "f": + return "\f"; + case "n": + return ` +`; + case "r": + return "\r"; + case "t": + return " "; + case "v": + return "\v"; + case "0": + return "\0"; + default: + return u; + } + } + i(r, "convertEscapeCharacter"); + function n(u) { + return u.charAt(0) === "^" ? u.substring(1) : u; + } + i(n, "convertID"), e.convertID = n; + function a(u) { + return parseInt(u); + } + i(a, "convertInt"), e.convertInt = a; + function s(u) { + return BigInt(u); + } + i(s, "convertBigint"), e.convertBigint = s; + function o(u) { + return new Date(u); + } + i(o, "convertDate"), e.convertDate = o; + function l(u) { + return Number(u); + } + i(l, "convertNumber"), e.convertNumber = l; + function c(u) { + return u.toLowerCase() === "true"; + } + i(c, "convertBoolean"), e.convertBoolean = c; +})(Ht || (Ht = {})); +var pe = {}; +Rl(pe, Jf(Al())); +function Ac() { + return new Promise((e) => { + typeof setImmediate > "u" ? setTimeout(e, 0) : setImmediate(e); + }); +} +i(Ac, "delayNextTick"); +var Io = 0, xb = 10; +function Ec() { + return Io = performance.now(), new pe.CancellationTokenSource(); +} +i(Ec, "startCancelableOperation"); +function hh(e) { + xb = e; +} +i(hh, "setInterruptionPeriod"); +var Jt = Symbol("OperationCancelled"); +function Xn(e) { + return e === Jt; +} +i(Xn, "isOperationCancelled"); +async function Ge(e) { + if (e === pe.CancellationToken.None) + return; + const t = performance.now(); + if (t - Io >= xb && (Io = t, await Ac(), Io = performance.now()), e.isCancellationRequested) + throw Jt; +} +i(Ge, "interruptAndCheck"); +var Cr = class { + static { + i(this, "Deferred"); + } + constructor() { + this.promise = new Promise((e, t) => { + this.resolve = (r) => (e(r), this), this.reject = (r) => (t(r), this); + }); + } +}, ng = class Nf { + static { + i(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) { + const r = this.offsetAt(t.start), n = this.offsetAt(t.end); + return this._content.substring(r, n); + } + return this._content; + } + update(t, r) { + for (const n of t) + if (Nf.isIncremental(n)) { + const a = gh(n.range), s = this.offsetAt(a.start), o = this.offsetAt(a.end); + this._content = this._content.substring(0, s) + n.text + this._content.substring(o, this._content.length); + const l = Math.max(a.start.line, 0), c = Math.max(a.end.line, 0); + let u = this._lineOffsets; + const f = kf(n.text, !1, s); + if (c - l === f.length) + for (let h = 0, y = f.length; h < y; h++) + u[h + l + 1] = f[h]; + else + f.length < 1e4 ? u.splice(l + 1, c - l, ...f) : this._lineOffsets = u = u.slice(0, l + 1).concat(f, u.slice(c + 1)); + const d = n.text.length - (o - s); + if (d !== 0) + for (let h = l + 1 + f.length, y = u.length; h < y; h++) + u[h] = u[h] + d; + } else if (Nf.isFull(n)) + this._content = n.text, this._lineOffsets = void 0; + else + throw new Error("Unknown change event received"); + this._version = r; + } + getLineOffsets() { + return this._lineOffsets === void 0 && (this._lineOffsets = kf(this._content, !0)), this._lineOffsets; + } + positionAt(t) { + t = Math.max(Math.min(t, this._content.length), 0); + const r = this.getLineOffsets(); + let n = 0, a = r.length; + if (a === 0) + return { line: 0, character: t }; + for (; n < a; ) { + const o = Math.floor((n + a) / 2); + r[o] > t ? a = o : n = o + 1; + } + const s = n - 1; + return t = this.ensureBeforeEOL(t, r[s]), { line: s, character: t - r[s] }; + } + offsetAt(t) { + const r = this.getLineOffsets(); + if (t.line >= r.length) + return this._content.length; + if (t.line < 0) + return 0; + const n = r[t.line]; + if (t.character <= 0) + return n; + const a = t.line + 1 < r.length ? r[t.line + 1] : this._content.length, s = Math.min(n + t.character, a); + return this.ensureBeforeEOL(s, n); + } + ensureBeforeEOL(t, r) { + for (; t > r && mh(this._content.charCodeAt(t - 1)); ) + t--; + return t; + } + get lineCount() { + return this.getLineOffsets().length; + } + static isIncremental(t) { + const r = t; + return r != null && typeof r.text == "string" && r.range !== void 0 && (r.rangeLength === void 0 || typeof r.rangeLength == "number"); + } + static isFull(t) { + const r = t; + return r != null && typeof r.text == "string" && r.range === void 0 && r.rangeLength === void 0; + } +}, hl; +(function(e) { + function t(a, s, o, l) { + return new ng(a, s, o, l); + } + i(t, "create"), e.create = t; + function r(a, s, o) { + if (a instanceof ng) + return a.update(s, o), a; + throw new Error("TextDocument.update: document must be created by TextDocument.create"); + } + i(r, "update"), e.update = r; + function n(a, s) { + const o = a.getText(), l = ml(s.map(Fb), (f, d) => { + const h = f.range.start.line - d.range.start.line; + return h === 0 ? f.range.start.character - d.range.start.character : h; + }); + let c = 0; + const u = []; + for (const f of l) { + const d = a.offsetAt(f.range.start); + if (d < c) + throw new Error("Overlapping edit"); + d > c && u.push(o.substring(c, d)), f.newText.length && u.push(f.newText), c = a.offsetAt(f.range.end); + } + return u.push(o.substr(c)), u.join(""); + } + i(n, "applyEdits"), e.applyEdits = n; +})(hl || (hl = {})); +function ml(e, t) { + if (e.length <= 1) + return e; + const r = e.length / 2 | 0, n = e.slice(0, r), a = e.slice(r); + ml(n, t), ml(a, t); + let s = 0, o = 0, l = 0; + for (; s < n.length && o < a.length; ) + t(n[s], a[o]) <= 0 ? e[l++] = n[s++] : e[l++] = a[o++]; + for (; s < n.length; ) + e[l++] = n[s++]; + for (; o < a.length; ) + e[l++] = a[o++]; + return e; +} +i(ml, "mergeSort"); +function kf(e, t, r = 0) { + const n = t ? [r] : []; + for (let a = 0; a < e.length; a++) { + const s = e.charCodeAt(a); + mh(s) && (s === 13 && a + 1 < e.length && e.charCodeAt(a + 1) === 10 && a++, n.push(r + a + 1)); + } + return n; +} +i(kf, "computeLineOffsets"); +function mh(e) { + return e === 13 || e === 10; +} +i(mh, "isEOL"); +function gh(e) { + const t = e.start, r = e.end; + return t.line > r.line || t.line === r.line && t.character > r.character ? { start: r, end: t } : e; +} +i(gh, "getWellformedRange"); +function Fb(e) { + const t = gh(e.range); + return t !== e.range ? { newText: e.newText, range: t } : e; +} +i(Fb, "getWellformedEdit"); +var Gb; +(() => { + var e = { 975: (P) => { + function _(T) { + if (typeof T != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(T)); + } + i(_, "e"); + function g(T, R) { + for (var b, O = "", M = 0, D = -1, z = 0, B = 0; B <= T.length; ++B) { + if (B < T.length) b = T.charCodeAt(B); + else { + if (b === 47) break; + b = 47; + } + if (b === 47) { + if (!(D === B - 1 || z === 1)) if (D !== B - 1 && z === 2) { + if (O.length < 2 || M !== 2 || O.charCodeAt(O.length - 1) !== 46 || O.charCodeAt(O.length - 2) !== 46) { + if (O.length > 2) { + var Z = O.lastIndexOf("/"); + if (Z !== O.length - 1) { + Z === -1 ? (O = "", M = 0) : M = (O = O.slice(0, Z)).length - 1 - O.lastIndexOf("/"), D = B, z = 0; + continue; + } + } else if (O.length === 2 || O.length === 1) { + O = "", M = 0, D = B, z = 0; + continue; + } + } + R && (O.length > 0 ? O += "/.." : O = "..", M = 2); + } else O.length > 0 ? O += "/" + T.slice(D + 1, B) : O = T.slice(D + 1, B), M = B - D - 1; + D = B, z = 0; + } else b === 46 && z !== -1 ? ++z : z = -1; + } + return O; + } + i(g, "r"); + var E = { resolve: /* @__PURE__ */ i(function() { + for (var T, R = "", b = !1, O = arguments.length - 1; O >= -1 && !b; O--) { + var M; + O >= 0 ? M = arguments[O] : (T === void 0 && (T = process.cwd()), M = T), _(M), M.length !== 0 && (R = M + "/" + R, b = M.charCodeAt(0) === 47); + } + return R = g(R, !b), b ? R.length > 0 ? "/" + R : "/" : R.length > 0 ? R : "."; + }, "resolve"), normalize: /* @__PURE__ */ i(function(T) { + if (_(T), T.length === 0) return "."; + var R = T.charCodeAt(0) === 47, b = T.charCodeAt(T.length - 1) === 47; + return (T = g(T, !R)).length !== 0 || R || (T = "."), T.length > 0 && b && (T += "/"), R ? "/" + T : T; + }, "normalize"), isAbsolute: /* @__PURE__ */ i(function(T) { + return _(T), T.length > 0 && T.charCodeAt(0) === 47; + }, "isAbsolute"), join: /* @__PURE__ */ i(function() { + if (arguments.length === 0) return "."; + for (var T, R = 0; R < arguments.length; ++R) { + var b = arguments[R]; + _(b), b.length > 0 && (T === void 0 ? T = b : T += "/" + b); + } + return T === void 0 ? "." : E.normalize(T); + }, "join"), relative: /* @__PURE__ */ i(function(T, R) { + if (_(T), _(R), T === R || (T = E.resolve(T)) === (R = E.resolve(R))) return ""; + for (var b = 1; b < T.length && T.charCodeAt(b) === 47; ++b) ; + for (var O = T.length, M = O - b, D = 1; D < R.length && R.charCodeAt(D) === 47; ++D) ; + for (var z = R.length - D, B = M < z ? M : z, Z = -1, J = 0; J <= B; ++J) { + if (J === B) { + if (z > B) { + if (R.charCodeAt(D + J) === 47) return R.slice(D + J + 1); + if (J === 0) return R.slice(D + J); + } else M > B && (T.charCodeAt(b + J) === 47 ? Z = J : J === 0 && (Z = 0)); + break; + } + var te = T.charCodeAt(b + J); + if (te !== R.charCodeAt(D + J)) break; + te === 47 && (Z = J); + } + var fe = ""; + for (J = b + Z + 1; J <= O; ++J) J !== O && T.charCodeAt(J) !== 47 || (fe.length === 0 ? fe += ".." : fe += "/.."); + return fe.length > 0 ? fe + R.slice(D + Z) : (D += Z, R.charCodeAt(D) === 47 && ++D, R.slice(D)); + }, "relative"), _makeLong: /* @__PURE__ */ i(function(T) { + return T; + }, "_makeLong"), dirname: /* @__PURE__ */ i(function(T) { + if (_(T), T.length === 0) return "."; + for (var R = T.charCodeAt(0), b = R === 47, O = -1, M = !0, D = T.length - 1; D >= 1; --D) if ((R = T.charCodeAt(D)) === 47) { + if (!M) { + O = D; + break; + } + } else M = !1; + return O === -1 ? b ? "/" : "." : b && O === 1 ? "//" : T.slice(0, O); + }, "dirname"), basename: /* @__PURE__ */ i(function(T, R) { + if (R !== void 0 && typeof R != "string") throw new TypeError('"ext" argument must be a string'); + _(T); + var b, O = 0, M = -1, D = !0; + if (R !== void 0 && R.length > 0 && R.length <= T.length) { + if (R.length === T.length && R === T) return ""; + var z = R.length - 1, B = -1; + for (b = T.length - 1; b >= 0; --b) { + var Z = T.charCodeAt(b); + if (Z === 47) { + if (!D) { + O = b + 1; + break; + } + } else B === -1 && (D = !1, B = b + 1), z >= 0 && (Z === R.charCodeAt(z) ? --z == -1 && (M = b) : (z = -1, M = B)); + } + return O === M ? M = B : M === -1 && (M = T.length), T.slice(O, M); + } + for (b = T.length - 1; b >= 0; --b) if (T.charCodeAt(b) === 47) { + if (!D) { + O = b + 1; + break; + } + } else M === -1 && (D = !1, M = b + 1); + return M === -1 ? "" : T.slice(O, M); + }, "basename"), extname: /* @__PURE__ */ i(function(T) { + _(T); + for (var R = -1, b = 0, O = -1, M = !0, D = 0, z = T.length - 1; z >= 0; --z) { + var B = T.charCodeAt(z); + if (B !== 47) O === -1 && (M = !1, O = z + 1), B === 46 ? R === -1 ? R = z : D !== 1 && (D = 1) : R !== -1 && (D = -1); + else if (!M) { + b = z + 1; + break; + } + } + return R === -1 || O === -1 || D === 0 || D === 1 && R === O - 1 && R === b + 1 ? "" : T.slice(R, O); + }, "extname"), format: /* @__PURE__ */ i(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(R, b) { + var O = b.dir || b.root, M = b.base || (b.name || "") + (b.ext || ""); + return O ? O === b.root ? O + M : O + "/" + M : M; + })(0, T); + }, "format"), parse: /* @__PURE__ */ i(function(T) { + _(T); + var R = { root: "", dir: "", base: "", ext: "", name: "" }; + if (T.length === 0) return R; + var b, O = T.charCodeAt(0), M = O === 47; + M ? (R.root = "/", b = 1) : b = 0; + for (var D = -1, z = 0, B = -1, Z = !0, J = T.length - 1, te = 0; J >= b; --J) if ((O = T.charCodeAt(J)) !== 47) B === -1 && (Z = !1, B = J + 1), O === 46 ? D === -1 ? D = J : te !== 1 && (te = 1) : D !== -1 && (te = -1); + else if (!Z) { + z = J + 1; + break; + } + return D === -1 || B === -1 || te === 0 || te === 1 && D === B - 1 && D === z + 1 ? B !== -1 && (R.base = R.name = z === 0 && M ? T.slice(1, B) : T.slice(z, B)) : (z === 0 && M ? (R.name = T.slice(1, D), R.base = T.slice(1, B)) : (R.name = T.slice(z, D), R.base = T.slice(z, B)), R.ext = T.slice(D, B)), z > 0 ? R.dir = T.slice(0, z - 1) : M && (R.dir = "/"), R; + }, "parse"), sep: "/", delimiter: ":", win32: null, posix: null }; + E.posix = E, P.exports = E; + } }, t = {}; + function r(P) { + var _ = t[P]; + if (_ !== void 0) return _.exports; + var g = t[P] = { exports: {} }; + return e[P](g, g.exports, r), g.exports; + } + i(r, "r"), r.d = (P, _) => { + for (var g in _) r.o(_, g) && !r.o(P, g) && Object.defineProperty(P, g, { enumerable: !0, get: _[g] }); + }, r.o = (P, _) => Object.prototype.hasOwnProperty.call(P, _), r.r = (P) => { + typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(P, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(P, "__esModule", { value: !0 }); + }; + var n = {}; + let a; + r.r(n), r.d(n, { URI: /* @__PURE__ */ i(() => h, "URI"), Utils: /* @__PURE__ */ i(() => Ne, "Utils") }), typeof process == "object" ? a = process.platform === "win32" : typeof navigator == "object" && (a = navigator.userAgent.indexOf("Windows") >= 0); + const s = /^\w[\w\d+.-]*$/, o = /^\//, l = /^\/\//; + function c(P, _) { + if (!P.scheme && _) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${P.authority}", path: "${P.path}", query: "${P.query}", fragment: "${P.fragment}"}`); + if (P.scheme && !s.test(P.scheme)) throw new Error("[UriError]: Scheme contains illegal characters."); + if (P.path) { + if (P.authority) { + if (!o.test(P.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(P.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'); + } + } + i(c, "a"); + const u = "", f = "/", d = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/; + class h { + static { + i(this, "l"); + } + static isUri(_) { + return _ instanceof h || !!_ && typeof _.authority == "string" && typeof _.fragment == "string" && typeof _.path == "string" && typeof _.query == "string" && typeof _.scheme == "string" && typeof _.fsPath == "string" && typeof _.with == "function" && typeof _.toString == "function"; + } + scheme; + authority; + path; + query; + fragment; + constructor(_, g, E, T, R, b = !1) { + typeof _ == "object" ? (this.scheme = _.scheme || u, this.authority = _.authority || u, this.path = _.path || u, this.query = _.query || u, this.fragment = _.fragment || u) : (this.scheme = /* @__PURE__ */ (function(O, M) { + return O || M ? O : "file"; + })(_, b), this.authority = g || u, this.path = (function(O, M) { + switch (O) { + case "https": + case "http": + case "file": + M ? M[0] !== f && (M = f + M) : M = f; + } + return M; + })(this.scheme, E || u), this.query = T || u, this.fragment = R || u, c(this, b)); + } + get fsPath() { + return I(this, !1); + } + with(_) { + if (!_) return this; + let { scheme: g, authority: E, path: T, query: R, fragment: b } = _; + return g === void 0 ? g = this.scheme : g === null && (g = u), E === void 0 ? E = this.authority : E === null && (E = u), T === void 0 ? T = this.path : T === null && (T = u), R === void 0 ? R = this.query : R === null && (R = u), b === void 0 ? b = this.fragment : b === null && (b = u), g === this.scheme && E === this.authority && T === this.path && R === this.query && b === this.fragment ? this : new v(g, E, T, R, b); + } + static parse(_, g = !1) { + const E = d.exec(_); + return E ? new v(E[2] || u, H(E[4] || u), H(E[5] || u), H(E[7] || u), H(E[9] || u), g) : new v(u, u, u, u, u); + } + static file(_) { + let g = u; + if (a && (_ = _.replace(/\\/g, f)), _[0] === f && _[1] === f) { + const E = _.indexOf(f, 2); + E === -1 ? (g = _.substring(2), _ = f) : (g = _.substring(2, E), _ = _.substring(E) || f); + } + return new v("file", g, _, u, u); + } + static from(_) { + const g = new v(_.scheme, _.authority, _.path, _.query, _.fragment); + return c(g, !0), g; + } + toString(_ = !1) { + return A(this, _); + } + toJSON() { + return this; + } + static revive(_) { + if (_) { + if (_ instanceof h) return _; + { + const g = new v(_); + return g._formatted = _.external, g._fsPath = _._sep === y ? _.fsPath : null, g; + } + } + return _; + } + } + const y = a ? 1 : void 0; + class v extends h { + static { + i(this, "d"); + } + _formatted = null; + _fsPath = null; + get fsPath() { + return this._fsPath || (this._fsPath = I(this, !1)), this._fsPath; + } + toString(_ = !1) { + return _ ? A(this, !0) : (this._formatted || (this._formatted = A(this, !1)), this._formatted); + } + toJSON() { + const _ = { $mid: 1 }; + return this._fsPath && (_.fsPath = this._fsPath, _._sep = y), this._formatted && (_.external = this._formatted), this.path && (_.path = this.path), this.scheme && (_.scheme = this.scheme), this.authority && (_.authority = this.authority), this.query && (_.query = this.query), this.fragment && (_.fragment = this.fragment), _; + } + } + const C = { 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(P, _, g) { + let E, T = -1; + for (let R = 0; R < P.length; R++) { + const b = P.charCodeAt(R); + if (b >= 97 && b <= 122 || b >= 65 && b <= 90 || b >= 48 && b <= 57 || b === 45 || b === 46 || b === 95 || b === 126 || _ && b === 47 || g && b === 91 || g && b === 93 || g && b === 58) T !== -1 && (E += encodeURIComponent(P.substring(T, R)), T = -1), E !== void 0 && (E += P.charAt(R)); + else { + E === void 0 && (E = P.substr(0, R)); + const O = C[b]; + O !== void 0 ? (T !== -1 && (E += encodeURIComponent(P.substring(T, R)), T = -1), E += O) : T === -1 && (T = R); + } + } + return T !== -1 && (E += encodeURIComponent(P.substring(T))), E !== void 0 ? E : P; + } + i(S, "m"); + function w(P) { + let _; + for (let g = 0; g < P.length; g++) { + const E = P.charCodeAt(g); + E === 35 || E === 63 ? (_ === void 0 && (_ = P.substr(0, g)), _ += C[E]) : _ !== void 0 && (_ += P[g]); + } + return _ !== void 0 ? _ : P; + } + i(w, "y"); + function I(P, _) { + let g; + return g = P.authority && P.path.length > 1 && P.scheme === "file" ? `//${P.authority}${P.path}` : P.path.charCodeAt(0) === 47 && (P.path.charCodeAt(1) >= 65 && P.path.charCodeAt(1) <= 90 || P.path.charCodeAt(1) >= 97 && P.path.charCodeAt(1) <= 122) && P.path.charCodeAt(2) === 58 ? _ ? P.path.substr(1) : P.path[1].toLowerCase() + P.path.substr(2) : P.path, a && (g = g.replace(/\//g, "\\")), g; + } + i(I, "v"); + function A(P, _) { + const g = _ ? w : S; + let E = "", { scheme: T, authority: R, path: b, query: O, fragment: M } = P; + if (T && (E += T, E += ":"), (R || T === "file") && (E += f, E += f), R) { + let D = R.indexOf("@"); + if (D !== -1) { + const z = R.substr(0, D); + R = R.substr(D + 1), D = z.lastIndexOf(":"), D === -1 ? E += g(z, !1, !1) : (E += g(z.substr(0, D), !1, !1), E += ":", E += g(z.substr(D + 1), !1, !0)), E += "@"; + } + R = R.toLowerCase(), D = R.lastIndexOf(":"), D === -1 ? E += g(R, !1, !0) : (E += g(R.substr(0, D), !1, !0), E += R.substr(D)); + } + if (b) { + if (b.length >= 3 && b.charCodeAt(0) === 47 && b.charCodeAt(2) === 58) { + const 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) { + const D = b.charCodeAt(0); + D >= 65 && D <= 90 && (b = `${String.fromCharCode(D + 32)}:${b.substr(2)}`); + } + E += g(b, !0, !1); + } + return O && (E += "?", E += g(O, !1, !1)), M && (E += "#", E += _ ? M : S(M, !1, !1)), E; + } + i(A, "b"); + function k(P) { + try { + return decodeURIComponent(P); + } catch { + return P.length > 3 ? P.substr(0, 3) + k(P.substr(3)) : P; + } + } + i(k, "C"); + const G = /(%[0-9A-Za-z][0-9A-Za-z])+/g; + function H(P) { + return P.match(G) ? P.replace(G, ((_) => k(_))) : P; + } + i(H, "w"); + var X = r(975); + const le = X.posix || X, ce = "/"; + var Ne; + (function(P) { + P.joinPath = function(_, ...g) { + return _.with({ path: le.join(_.path, ...g) }); + }, P.resolvePath = function(_, ...g) { + let E = _.path, T = !1; + E[0] !== ce && (E = ce + E, T = !0); + let R = le.resolve(E, ...g); + return T && R[0] === ce && !_.authority && (R = R.substring(1)), _.with({ path: R }); + }, P.dirname = function(_) { + if (_.path.length === 0 || _.path === ce) return _; + let g = le.dirname(_.path); + return g.length === 1 && g.charCodeAt(0) === 46 && (g = ""), _.with({ path: g }); + }, P.basename = function(_) { + return le.basename(_.path); + }, P.extname = function(_) { + return le.extname(_.path); + }; + })(Ne || (Ne = {})), Gb = n; +})(); +var { URI: ft, Utils: Ci } = Gb, Ye; +(function(e) { + e.basename = Ci.basename, e.dirname = Ci.dirname, e.extname = Ci.extname, e.joinPath = Ci.joinPath, e.resolvePath = Ci.resolvePath; + const t = typeof process == "object" && process?.platform === "win32"; + function r(o, l) { + return o?.toString() === l?.toString(); + } + i(r, "equals"), e.equals = r; + function n(o, l) { + const c = typeof o == "string" ? ft.parse(o).path : o.path, u = typeof l == "string" ? ft.parse(l).path : l.path, f = c.split("/").filter((C) => C.length > 0), d = u.split("/").filter((C) => C.length > 0); + if (t) { + const C = /^[A-Z]:$/; + if (f[0] && C.test(f[0]) && (f[0] = f[0].toLowerCase()), d[0] && C.test(d[0]) && (d[0] = d[0].toLowerCase()), f[0] !== d[0]) + return u.substring(1); + } + let h = 0; + for (; h < f.length && f[h] === d[h]; h++) + ; + const y = "../".repeat(f.length - h), v = d.slice(h).join("/"); + return y + v; + } + i(n, "relative"), e.relative = n; + function a(o) { + return ft.parse(o.toString()).toString(); + } + i(a, "normalize"), e.normalize = a; + function s(o, l) { + let c = typeof o == "string" ? o : o.path, u = typeof l == "string" ? l : l.path; + return u.charAt(u.length - 1) === "/" && (u = u.slice(0, -1)), c.charAt(c.length - 1) === "/" && (c = c.slice(0, -1)), u === c ? !0 : u.length < c.length || u.charAt(c.length) !== "/" ? !1 : u.startsWith(c); + } + i(s, "contains"), e.contains = s; +})(Ye || (Ye = {})); +var yh = class { + static { + i(this, "UriTrie"); + } + constructor() { + this.root = { name: "", children: /* @__PURE__ */ new Map() }; + } + normalizeUri(e) { + return Ye.normalize(e); + } + clear() { + this.root.children.clear(); + } + insert(e, t) { + const r = this.getNode(this.normalizeUri(e), !0); + r.element = t; + } + delete(e) { + const t = this.getNode(this.normalizeUri(e), !1); + t?.parent && t.parent.children.delete(t.name); + } + has(e) { + return this.getNode(this.normalizeUri(e), !1)?.element !== void 0; + } + hasNode(e) { + return this.getNode(this.normalizeUri(e), !1) !== void 0; + } + find(e) { + return this.getNode(this.normalizeUri(e), !1)?.element; + } + findNode(e) { + const t = this.normalizeUri(e), r = this.getNode(t, !1); + if (r) + return { + name: r.name, + uri: Ye.joinPath(ft.parse(t), r.name).toString(), + element: r.element + }; + } + findChildren(e) { + const t = this.normalizeUri(e), r = this.getNode(t, !1); + return r ? Array.from(r.children.values()).map((n) => ({ + name: n.name, + uri: Ye.joinPath(ft.parse(t), n.name).toString(), + element: n.element + })) : []; + } + all() { + return this.collectValues(this.root); + } + findAll(e) { + const t = this.getNode(Ye.normalize(e), !1); + return t ? this.collectValues(t) : []; + } + getNode(e, t) { + const r = e.split("/"); + e.charAt(e.length - 1) === "/" && r.pop(); + let n = this.root; + for (const a of r) { + let s = n.children.get(a); + if (!s) + if (t) + s = { + name: a, + children: /* @__PURE__ */ new Map(), + parent: n + }, n.children.set(a, s); + else + return; + n = s; + } + return n; + } + collectValues(e) { + const t = []; + e.element && t.push(e.element); + for (const r of e.children.values()) + t.push(...this.collectValues(r)); + return t; + } +}, Y; +(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"; +})(Y || (Y = {})); +var jb = class { + static { + i(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) { + const 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") { + const n = this.parse(e, t, r); + return this.createLangiumDocument(n, e, void 0, t); + } else if ("$model" in t) { + const n = { value: t.$model, parserErrors: [], lexerErrors: [] }; + return this.createLangiumDocument(n, e); + } else { + const n = this.parse(e, t.getText(), r); + return this.createLangiumDocument(n, e, t); + } + } + async createAsync(e, t, r) { + if (typeof t == "string") { + const n = await this.parseAsync(e, t, r); + return this.createLangiumDocument(n, e, void 0, t); + } else { + const n = await this.parseAsync(e, t.getText(), r); + return this.createLangiumDocument(n, e, t); + } + } + /** + * Create a LangiumDocument from a given parse result. + * + * A TextDocument is created on demand if it is not provided as argument here. Usually this + * should not be necessary because the main purpose of the TextDocument is to convert between + * text ranges and offsets, which is done solely in LSP request handling. + * + * With the introduction of {@link update} below this method is supposed to be mainly called + * during workspace initialization and on addition/recognition of new files, while changes in + * existing documents are processed via {@link update}. + */ + createLangiumDocument(e, t, r, n) { + let a; + if (r) + a = { + parseResult: e, + uri: t, + state: Y.Parsed, + references: [], + textDocument: r + }; + else { + const s = this.createTextDocumentGetter(t, n); + a = { + parseResult: e, + uri: t, + state: Y.Parsed, + references: [], + get textDocument() { + return s(); + } + }; + } + return e.value.$document = a, a; + } + async update(e, t) { + const 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 { + const s = this.createTextDocumentGetter(e.uri, a); + Object.defineProperty(e, "textDocument", { + get: s + }); + } + return r !== a && (e.parseResult = await this.parseAsync(e.uri, a, t), e.parseResult.value.$document = e), e.state = Y.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) { + const r = this.serviceRegistry; + let n; + return () => n ?? (n = hl.create(e.toString(), r.getServices(e).LanguageMetaData.languageId, 0, t ?? "")); + } +}, Ub = class { + static { + i(this, "DefaultLangiumDocuments"); + } + constructor(e) { + this.documentTrie = new yh(), this.services = e, this.langiumDocumentFactory = e.workspace.LangiumDocumentFactory, this.documentBuilder = () => e.workspace.DocumentBuilder; + } + get all() { + return oe(this.documentTrie.all()); + } + addDocument(e) { + const 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) { + const t = e.toString(); + return this.documentTrie.find(t); + } + getDocuments(e) { + const 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)); + { + const n = this.langiumDocumentFactory.fromString(t, e); + return this.addDocument(n), n; + } + } + hasDocument(e) { + return this.documentTrie.has(e.toString()); + } + /** + * @deprecated Since 4.2 use `DocumentBuilder.resetToState(DocumentState.Changed)` instead + * TODO remove this for the next major release + */ + invalidateDocument(e) { + const t = e.toString(), r = this.documentTrie.find(t); + return r && this.documentBuilder().resetToState(r, Y.Changed), r; + } + deleteDocument(e) { + const t = e.toString(), r = this.documentTrie.find(t); + return r && (r.state = Y.Changed, this.documentTrie.delete(t)), r; + } + deleteDocuments(e) { + const t = e.toString(), r = this.documentTrie.findAll(t); + for (const n of r) + n.state = Y.Changed; + return this.documentTrie.delete(t), r; + } +}, an = Symbol("RefResolving"), zb = class { + static { + i(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")) { + const r = this.profiler.createTask("linking", this.languageId); + r.start(); + try { + for (const n of Mt(e.parseResult.value)) + await Ge(t), Da(n).forEach((a) => { + const s = `${n.$type}:${a.property}`; + r.startSubTask(s); + try { + this.doLink(a, e); + } finally { + r.stopSubTask(s); + } + }); + } finally { + r.stop(); + } + } else + for (const r of Mt(e.parseResult.value)) + await Ge(t), Da(r).forEach((n) => this.doLink(n, e)); + } + doLink(e, t) { + const r = e.reference; + if ("_ref" in r && r._ref === void 0) { + r._ref = an; + try { + const n = this.getCandidate(e); + if (ln(n)) + r._ref = n; + else { + r._nodeDescription = n; + const 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); + const 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 = an; + try { + const n = this.getCandidates(e), a = []; + if (ln(n)) + r._linkingError = n; + else + for (const s of n) { + const o = this.loadAstNode(s); + o && a.push({ ref: o, $nodeDescription: s }); + } + 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 (const 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) { + const 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) { + const a = this, s = { + $refNode: r, + $refText: n, + _ref: void 0, + get ref() { + if (Le(this._ref)) + return this._ref; + if (td(this._nodeDescription)) { + const o = a.loadAstNode(this._nodeDescription); + this._ref = o ?? a.createLinkingError({ reference: s, container: e, property: t }, this._nodeDescription); + } else if (this._ref === void 0) { + this._ref = an; + const o = wa(e).$document, l = a.getLinkedNode({ reference: s, container: e, property: t }); + if (l.error && o && o.state < Y.ComputedScopes) + return this._ref = void 0; + this._ref = l.node ?? l.error, this._nodeDescription = l.descr, o?.references.push(this); + } else this._ref === an && a.throwCyclicReferenceError(e, t, n); + return Le(this._ref) ? this._ref : void 0; + }, + get $nodeDescription() { + return this._nodeDescription; + }, + get error() { + return ln(this._ref) ? this._ref : void 0; + } + }; + return s; + } + buildMultiReference(e, t, r, n) { + const a = this, s = { + $refNode: r, + $refText: n, + _items: void 0, + get items() { + if (Array.isArray(this._items)) + return this._items; + if (this._items === void 0) { + this._items = an; + const o = wa(e).$document, l = a.getCandidates({ + reference: s, + container: e, + property: t + }), c = []; + if (ln(l)) + this._linkingError = l; + else + for (const u of l) { + const f = a.loadAstNode(u); + f && c.push({ ref: f, $nodeDescription: u }); + } + this._items = c, o?.references.push(this); + } else this._items === an && a.throwCyclicReferenceError(e, t, n); + return Array.isArray(this._items) ? this._items : []; + }, + get error() { + if (this._linkingError) + return this._linkingError; + if (!(this.items.length > 0)) + return this._linkingError = a.createLinkingError({ reference: s, container: e, property: t }); + } + }; + return s; + } + throwCyclicReferenceError(e, t, r) { + throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${r}')`); + } + getLinkedNode(e) { + try { + const t = this.getCandidate(e); + if (ln(t)) + return { error: t }; + const 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); + const 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; + const t = this.langiumDocuments().getDocument(e.documentUri); + if (t) + return this.astNodeLocator.getAstNode(t.parseResult.value, e.path); + } + createLinkingError(e, t) { + const r = wa(e.container).$document; + r && r.state < Y.ComputedScopes && console.warn(`Attempted reference resolution before document reached ComputedScopes state (${r.uri}).`); + const n = this.reflection.getReferenceType(e); + return { + info: e, + message: `Could not resolve reference to ${n} named '${e.reference.$refText}'.`, + targetDescription: t + }; + } +}; +function vh(e) { + return typeof e.name == "string"; +} +i(vh, "isNamed"); +var Bb = class { + static { + i(this, "DefaultNameProvider"); + } + getName(e) { + if (vh(e)) + return e.name; + } + getNameNode(e) { + return Dl(e.$cstNode, "name"); + } +}, Kb = class { + static { + i(this, "DefaultReferences"); + } + constructor(e) { + this.nameProvider = e.references.NameProvider, this.index = e.shared.workspace.IndexManager, this.nodeLocator = e.workspace.AstNodeLocator, this.documents = e.shared.workspace.LangiumDocuments, this.hasMultiReference = Mt(e.Grammar).some((t) => Ln(t) && t.isMulti); + } + findDeclarations(e) { + if (e) { + const t = Wd(e), r = e.astNode; + if (t && r) { + const n = r[t.feature]; + if (He(n) || Zt(n)) + return Oo(n); + if (Array.isArray(n)) { + for (const a of n) + if ((He(a) || Zt(a)) && a.$refNode && a.$refNode.offset <= e.offset && a.$refNode.end >= e.end) + return Oo(a); + } + } + if (r) { + const n = this.nameProvider.getNameNode(r); + if (n && (n === e || Cd(e, n))) + return this.getSelfNodes(r); + } + } + return []; + } + /** + * Returns all self-references for the specified node. + * Since the node can be part of a multi-reference, this method returns all nodes that are part of the same multi-reference. + */ + getSelfNodes(e) { + if (this.hasMultiReference) { + const t = this.index.findAllReferences(e, this.nodeLocator.getAstNodePath(e)), r = this.getNodeFromReferenceDescription(t.head()); + if (r) { + for (const n of Da(r)) + if (Zt(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; + const t = this.documents.getDocument(e.sourceUri); + if (t) + return this.nodeLocator.getAstNode(t.parseResult.value, e.sourcePath); + } + findDeclarationNodes(e) { + const t = this.findDeclarations(e), r = []; + for (const n of t) { + const a = this.nameProvider.getNameNode(n) ?? n.$cstNode; + a && r.push(a); + } + return r; + } + findReferences(e, t) { + const 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) => Ye.equals(a.sourceUri, t.documentUri))), r.push(...n), oe(r); + } + getSelfReferences(e) { + const t = this.getSelfNodes(e), r = []; + for (const n of t) { + const a = this.nameProvider.getNameNode(n); + if (a) { + const s = Dt(n), o = this.nodeLocator.getAstNodePath(n); + r.push({ + sourceUri: s.uri, + sourcePath: o, + targetUri: s.uri, + targetPath: o, + segment: Fa(a), + local: !0 + }); + } + } + return r; + } +}, br = class { + static { + i(this, "MultiMap"); + } + constructor(e) { + if (this.map = /* @__PURE__ */ new Map(), e) + for (const [t, r] of e) + this.add(t, r); + } + /** + * The total number of values in the multimap. + */ + get size() { + return ss.sum(oe(this.map.values()).map((e) => e.length)); + } + /** + * Clear all entries in the multimap. + */ + clear() { + this.map.clear(); + } + /** + * Operates differently depending on whether a `value` is given: + * * With a value, this method deletes the specific key / value pair from the multimap. + * * Without a value, all values associated with the given key are deleted. + * + * @returns `true` if a value existed and has been removed, or `false` if the specified + * key / value does not exist. + */ + delete(e, t) { + if (t === void 0) + return this.map.delete(e); + { + const r = this.map.get(e); + if (r) { + const n = r.indexOf(t); + if (n >= 0) + return r.length === 1 ? this.map.delete(e) : r.splice(n, 1), !0; + } + return !1; + } + } + /** + * Returns an array of all values associated with the given key. If no value exists, + * an empty array is returned. + * + * _Note:_ The returned array is assumed not to be modified. Use the `set` method to add a + * value and `delete` to remove a value from the multimap. + */ + get(e) { + return this.map.get(e) ?? []; + } + /** + * Returns a stream of all values associated with the given key. If no value exists, + * {@link EMPTY_STREAM} is returned. + */ + getStream(e) { + const t = this.map.get(e); + return t ? oe(t) : Pa; + } + /** + * Operates differently depending on whether a `value` is given: + * * With a value, this method returns `true` if the specific key / value pair is present in the multimap. + * * Without a value, this method returns `true` if the given key is present in the multimap. + */ + has(e, t) { + if (t === void 0) + return this.map.has(e); + { + const r = this.map.get(e); + return r ? r.indexOf(t) >= 0 : !1; + } + } + /** + * Add the given key / value pair to the multimap. + */ + add(e, t) { + return this.map.has(e) ? this.map.get(e).push(t) : this.map.set(e, [t]), this; + } + /** + * Add the given set of key / value pairs to the multimap. + */ + addAll(e, t) { + return this.map.has(e) ? this.map.get(e).push(...t) : this.map.set(e, Array.from(t)), this; + } + /** + * Invokes the given callback function for every key / value pair in the multimap. + */ + forEach(e) { + this.map.forEach((t, r) => t.forEach((n) => e(n, r, this))); + } + /** + * Returns an iterator of key, value pairs for every entry in the map. + */ + [Symbol.iterator]() { + return this.entries().iterator(); + } + /** + * Returns a stream of key, value pairs for every entry in the map. + */ + entries() { + return oe(this.map.entries()).flatMap(([e, t]) => t.map((r) => [e, r])); + } + /** + * Returns a stream of keys in the map. + */ + keys() { + return oe(this.map.keys()); + } + /** + * Returns a stream of values in the map. + */ + values() { + return oe(this.map.values()).flat(); + } + /** + * Returns a stream of key, value set pairs for every key in the map. + */ + entriesGroupedByKey() { + return oe(this.map.entries()); + } +}, gl = class { + static { + i(this, "BiMap"); + } + get size() { + return this.map.size; + } + constructor(e) { + if (this.map = /* @__PURE__ */ new Map(), this.inverse = /* @__PURE__ */ new Map(), e) + for (const [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) { + const t = this.map.get(e); + return t !== void 0 ? (this.map.delete(e), this.inverse.delete(t), !0) : !1; + } +}, qb = class { + static { + i(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); + } + /** + * Creates {@link AstNodeDescription AstNodeDescriptions} for the given {@link AstNode parentNode} and its children. + * The list of children to be considered is determined by the function parameter {@link children}. + * By default only the direct children of {@link parentNode} are visited, nested nodes are not exported. + * + * @param parentNode AST node to be exported, i.e., of which an {@link AstNodeDescription} shall be added to the returned list. + * @param document The document containing the AST node to be exported. + * @param children A function called with {@link parentNode} as single argument and returning an {@link Iterable} supplying the children to be visited, which must be directly or transitively contained in {@link parentNode}. + * @param cancelToken Indicates when to cancel the current operation. + * @throws `OperationCancelled` if a user action occurs during execution. + * @returns A list of {@link AstNodeDescription AstNodeDescriptions} to be published to index. + */ + async collectExportedSymbolsForNode(e, t, r = Cs, n = pe.CancellationToken.None) { + const a = []; + this.addExportedSymbol(e, a, t); + for (const s of r(e)) + await Ge(n), this.addExportedSymbol(s, a, t); + return a; + } + /** + * Adds a single node to the list of exports if it has a name. Override this method to change how + * symbols are exported, e.g. by modifying their exported name. + */ + addExportedSymbol(e, t, r) { + const n = this.nameProvider.getName(e); + n && t.push(this.descriptions.createDescription(e, n, r)); + } + // --- local symbols gathering --- + async collectLocalSymbols(e, t = pe.CancellationToken.None) { + const r = e.parseResult.value, n = new br(); + for (const a of Sr(r)) + await Ge(t), this.addLocalSymbol(a, e, n); + return n; + } + /** + * Adds a single node to the local symbols of its containing document if it has a name. + * The default implementation makes the node visible in the subtree of its container if it does have a container. + * Override this method to change this, e.g. by increasing the visibility to a higher level in the AST. + */ + addLocalSymbol(e, t, r) { + const n = e.$container; + if (n) { + const a = this.nameProvider.getName(e); + a && r.add(n, this.descriptions.createDescription(e, a, t)); + } + } +}, Pf = class { + static { + i(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) { + const 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) { + const 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; + } +}, Q1 = class { + static { + i(this, "MapScope"); + } + constructor(e, t, r) { + this.elements = /* @__PURE__ */ new Map(), this.caseInsensitive = r?.caseInsensitive ?? !1, this.concatOuterScope = r?.concatOuterScope ?? !0; + for (const n of e) { + const a = this.caseInsensitive ? n.name.toLowerCase() : n.name; + this.elements.set(a, n); + } + this.outerScope = t; + } + getElement(e) { + const 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) { + const t = this.caseInsensitive ? e.toLowerCase() : e, r = this.elements.get(t), n = r ? [r] : []; + return (this.concatOuterScope || n.length > 0) && this.outerScope ? oe(n).concat(this.outerScope.getElements(e)) : oe(n); + } + getAllElements() { + let e = oe(this.elements.values()); + return this.outerScope && (e = e.concat(this.outerScope.getAllElements())), e; + } +}, Wb = class { + static { + i(this, "MultiMapScope"); + } + constructor(e, t, r) { + this.elements = new br(), this.caseInsensitive = r?.caseInsensitive ?? !1, this.concatOuterScope = r?.concatOuterScope ?? !0; + for (const n of e) { + const a = this.caseInsensitive ? n.name.toLowerCase() : n.name; + this.elements.add(a, n); + } + this.outerScope = t; + } + getElement(e) { + const 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) { + const t = this.caseInsensitive ? e.toLowerCase() : e, r = this.elements.get(t); + return (this.concatOuterScope || r.length === 0) && this.outerScope ? oe(r).concat(this.outerScope.getElements(e)) : oe(r); + } + getAllElements() { + let e = oe(this.elements.values()); + return this.outerScope && (e = e.concat(this.outerScope.getAllElements())), e; + } +}, eF = { + getElement() { + }, + getElements() { + return Pa; + }, + getAllElements() { + return Pa; + } +}, _c = class { + static { + i(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"); + } +}, Th = class extends _c { + static { + i(this, "SimpleCache"); + } + constructor() { + super(...arguments), this.cache = /* @__PURE__ */ 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) { + const 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(); + } +}, Cc = class extends _c { + static { + i(this, "ContextCache"); + } + constructor(e) { + super(), this.cache = /* @__PURE__ */ 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(); + const n = this.cacheForContext(e); + if (n.has(t)) + return n.get(t); + if (r) { + const 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) { + const t = this.converter(e); + this.cache.delete(t); + } else + this.cache.clear(); + } + cacheForContext(e) { + const t = this.converter(e); + let r = this.cache.get(t); + return r || (r = /* @__PURE__ */ new Map(), this.cache.set(t, r)), r; + } +}, Vb = class extends Cc { + static { + i(this, "DocumentCache"); + } + /** + * Creates a new document cache. + * + * @param sharedServices Service container instance to hook into document lifecycle events. + * @param state Optional document state on which the cache should evict. + * If not provided, the cache will evict on `DocumentBuilder#onUpdate`. + * *Deleted* documents are considered in both cases. + * + * Providing a state here will use `DocumentBuilder#onDocumentPhase` instead, + * which triggers on all documents that have been affected by this change, assuming that the + * state is `DocumentState.Linked` or a later state. + */ + 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 (const a of n) + this.clear(a); + }))) : this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r, n) => { + const a = r.concat(n); + for (const s of a) + this.clear(s); + })); + } +}, Rh = class extends Th { + static { + i(this, "WorkspaceCache"); + } + /** + * Creates a new workspace cache. + * + * @param sharedServices Service container instance to hook into document lifecycle events. + * @param state Optional document state on which the cache should evict. + * If not provided, the cache will evict on `DocumentBuilder#onUpdate`. + * *Deleted* documents are considered in both cases. + */ + 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(); + })); + } +}, Hb = class { + static { + i(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 Rh(e.shared); + } + getScope(e) { + const t = [], r = this.reflection.getReferenceType(e), n = Dt(e.container).localSymbols; + if (n) { + let s = e.container; + do + n.has(s) && t.push(n.getStream(s).filter((o) => this.reflection.isSubtype(o.type, r))), s = s.$container; + while (s); + } + let a = this.getGlobalScope(r, e); + for (let s = t.length - 1; s >= 0; s--) + a = this.createScope(t[s], a); + return a; + } + /** + * Create a scope for the given collection of AST node descriptions. + */ + createScope(e, t, r) { + return new Pf(oe(e), t, r); + } + /** + * Create a scope for the given collection of AST nodes, which need to be transformed into respective + * descriptions first. This is done using the `NameProvider` and `AstNodeDescriptionProvider` services. + */ + createScopeForNodes(e, t, r) { + const n = oe(e).map((a) => { + const s = this.nameProvider.getName(a); + if (s) + return this.descriptions.createDescription(a, s); + }).nonNullable(); + return new Pf(n, t, r); + } + /** + * Create a global scope filtered for the given reference type. + */ + getGlobalScope(e, t) { + return this.globalScopeCache.get(e, () => new Wb(this.indexManager.allElements(e))); + } +}; +function $h(e) { + return typeof e.$comment == "string"; +} +i($h, "isAstNodeWithComment"); +function Of(e) { + return typeof e == "object" && !!e && ("$ref" in e || "$error" in e); +} +i(Of, "isIntermediateReference"); +var Yb = class { + static { + i(this, "DefaultJsonSerializer"); + } + constructor(e) { + this.ignoreProperties = /* @__PURE__ */ 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) { + const r = t ?? {}, n = t?.replacer, a = /* @__PURE__ */ i((o, l) => this.replacer(o, l, r), "defaultReplacer"), s = n ? (o, l) => n(o, l, a) : a; + try { + return this.currentDocument = Dt(e), JSON.stringify(e, s, t?.space); + } finally { + this.currentDocument = void 0; + } + } + deserialize(e, t) { + const r = t ?? {}, n = JSON.parse(e); + return this.linkNode(n, n, r), n; + } + replacer(e, t, { refText: r, sourceText: n, textRegions: a, comments: s, uriConverter: o }) { + if (!this.ignoreProperties.has(e)) + if (He(t)) { + const l = t.ref, c = r ? t.$refText : void 0; + if (l) { + const u = Dt(l); + let f = ""; + this.currentDocument && this.currentDocument !== u && (o ? f = o(u.uri, l) : f = u.uri.toString()); + const d = this.astNodeLocator.getAstNodePath(l); + return { + $ref: `${f}#${d}`, + $refText: c + }; + } else + return { + $error: t.error?.message ?? "Could not resolve reference", + $refText: c + }; + } else if (Zt(t)) { + const l = r ? t.$refText : void 0, c = []; + for (const u of t.items) { + const f = u.ref, d = Dt(u.ref); + let h = ""; + this.currentDocument && this.currentDocument !== d && (o ? h = o(d.uri, f) : h = d.uri.toString()); + const y = this.astNodeLocator.getAstNodePath(f); + c.push(`${h}#${y}`); + } + return { + $refs: c, + $refText: l + }; + } else if (Le(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), s) { + l ?? (l = { ...t }); + const c = this.commentProvider.getComment(t); + c && (l.$comment = c.replace(/\r/g, "")); + } + return l ?? t; + } else + return t; + } + addAstNodeRegionWithAssignmentsTo(e) { + const t = /* @__PURE__ */ i((r) => ({ + offset: r.offset, + end: r.end, + length: r.length, + range: r.range + }), "createDocumentSegment"); + if (e.$cstNode) { + const r = e.$textRegion = t(e.$cstNode), n = r.assignments = {}; + return Object.keys(e).filter((a) => !a.startsWith("$")).forEach((a) => { + const s = Kd(e.$cstNode, a).map(t); + s.length !== 0 && (n[a] = s); + }), e; + } + } + linkNode(e, t, r, n, a, s) { + for (const [l, c] of Object.entries(e)) + if (Array.isArray(c)) + for (let u = 0; u < c.length; u++) { + const f = c[u]; + Of(f) ? c[u] = this.reviveReference(e, l, t, f, r) : Le(f) && this.linkNode(f, t, r, e, l, u); + } + else Of(c) ? e[l] = this.reviveReference(e, l, t, c, r) : Le(c) && this.linkNode(c, t, r, e, l); + const o = e; + o.$container = n, o.$containerProperty = a, o.$containerIndex = s; + } + reviveReference(e, t, r, n, a) { + let s = n.$refText, o = n.$error, l; + if (n.$ref) { + const c = this.getRefNode(r, n.$ref, a.uriConverter); + if (Le(c)) + return s || (s = this.nameProvider.getName(c)), { + $refText: s ?? "", + ref: c + }; + o = c; + } else if (n.$refs) { + const c = []; + for (const u of n.$refs) { + const f = this.getRefNode(r, u, a.uriConverter); + Le(f) && c.push({ ref: f }); + } + if (c.length === 0) + l = { + $refText: s ?? "", + items: c + }, o ?? (o = "Could not resolve multi-reference"); + else + return { + $refText: s ?? "", + items: c + }; + } + if (o) + return l ?? (l = { + $refText: s ?? "", + ref: void 0 + }), l.error = { + info: { + container: e, + property: t, + reference: l + }, + message: o + }, l; + } + getRefNode(e, t, r) { + try { + const n = t.indexOf("#"); + if (n === 0) { + const l = this.astNodeLocator.getAstNode(e, t.substring(1)); + return l || "Could not resolve path: " + t; + } + if (n < 0) { + const l = r ? r(t) : ft.parse(t), c = this.langiumDocuments.getDocument(l); + return c ? c.parseResult.value : "Could not find document for URI: " + t; + } + const a = r ? r(t.substring(0, n)) : ft.parse(t.substring(0, n)), s = this.langiumDocuments.getDocument(a); + if (!s) + return "Could not find document for URI: " + t; + if (n === t.length - 1) + return s.parseResult.value; + const o = this.astNodeLocator.getAstNode(s.parseResult.value, t.substring(n + 1)); + return o || "Could not resolve URI: " + t; + } catch (n) { + return String(n); + } + } +}, Xb = class { + static { + i(this, "DefaultServiceRegistry"); + } + /** + * @deprecated Since 3.1.0. Use the new `fileExtensionMap` (or `languageIdMap`) property instead. + */ + get map() { + return this.fileExtensionMap; + } + constructor(e) { + this.languageIdMap = /* @__PURE__ */ new Map(), this.fileExtensionMap = /* @__PURE__ */ new Map(), this.fileNameMap = /* @__PURE__ */ new Map(), this.textDocuments = e?.workspace.TextDocuments; + } + register(e) { + const t = e.LanguageMetaData; + for (const r of t.fileExtensions) + this.fileExtensionMap.has(r) && console.warn(`The file extension ${r} is used by multiple languages. It is now assigned to '${t.languageId}'.`), this.fileExtensionMap.set(r, e); + if (t.fileNames) + for (const r of t.fileNames) + this.fileNameMap.has(r) && console.warn(`The file name ${r} is used by multiple languages. It is now assigned to '${t.languageId}'.`), this.fileNameMap.set(r, e); + this.languageIdMap.set(t.languageId, e); + } + getServices(e) { + if (this.languageIdMap.size === 0) + throw new Error("The service registry is empty. Use `register` to register the services of a language."); + const t = this.textDocuments?.get(e)?.languageId; + if (t !== void 0) { + const s = this.languageIdMap.get(t); + if (s) + return s; + } + const r = Ye.extname(e), n = Ye.basename(e), a = this.fileNameMap.get(n) ?? this.fileExtensionMap.get(r); + if (!a) + throw t ? new Error(`The service registry contains no services for the extension '${r}' for language '${t}'.`) : new Error(`The service registry contains no services for the extension '${r}'.`); + return a; + } + hasServices(e) { + try { + return this.getServices(e), !0; + } catch { + return !1; + } + } + get all() { + return Array.from(this.languageIdMap.values()); + } +}; +function An(e) { + return { code: e }; +} +i(An, "diagnosticData"); +var yl; +(function(e) { + e.defaults = ["fast", "slow", "built-in"], e.all = e.defaults; +})(yl || (yl = {})); +var Jb = class { + static { + i(this, "ValidationRegistry"); + } + constructor(e) { + this.entries = new br(), this.knownCategories = new Set(yl.defaults), this.entriesBefore = [], this.entriesAfter = [], this.reflection = e.shared.AstReflection; + } + /** + * Register a set of validation checks. Each value in the record can be either a single validation check (i.e. a function) + * or an array of validation checks. + * + * @param checksRecord Set of validation checks to register. + * @param thisObj Optional object to be used as `this` when calling the validation check functions. + * @param category Optional category for the validation checks (defaults to `'fast'`). + */ + register(e, t = this, r = "fast") { + if (r === "built-in") + throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors."); + this.knownCategories.add(r); + for (const [n, a] of Object.entries(e)) { + const s = a; + if (Array.isArray(s)) + for (const o of s) { + const l = { + check: this.wrapValidationException(o, t), + category: r + }; + this.addEntry(n, l); + } + else if (typeof s == "function") { + const o = { + check: this.wrapValidationException(s, t), + category: r + }; + this.addEntry(n, o); + } else + Kr(); + } + } + wrapValidationException(e, t) { + return async (r, n, a) => { + 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 (Xn(a)) + throw a; + console.error(`${t}:`, a), a instanceof Error && a.stack && console.error(a.stack); + const s = a instanceof Error ? a.message : String(a); + r("error", `${t}: ${s}`, { node: n }); + } + } + addEntry(e, t) { + if (e === "AstNode") { + this.entries.add("AstNode", t); + return; + } + for (const r of this.reflection.getAllSubTypes(e)) + this.entries.add(r, t); + } + getChecks(e, t) { + let r = oe(this.entries.get(e)).concat(this.entries.get("AstNode")); + return t && (r = r.filter((n) => t.includes(n.category))), r.map((n) => n.check); + } + /** + * Register logic which will be executed once before validating all the nodes of an AST/Langium document. + * This helps to prepare or initialize some information which are required or reusable for the following checks on the AstNodes. + * + * As an example, for validating unique fully-qualified names of nodes in the AST, + * here the map for mapping names to nodes could be established. + * During the usual checks on the nodes, they are put into this map with their name. + * + * Note that this approach makes validations stateful, which is relevant e.g. when cancelling the validation. + * Therefore it is recommended to clear stored information + * _before_ validating an AST to validate each AST unaffected from other ASTs + * AND _after_ validating the AST to free memory by information which are no longer used. + * + * @param checkBefore a set-up function which will be called once before actually validating an AST + * @param thisObj Optional object to be used as `this` when calling the validation check functions. + */ + registerBeforeDocument(e, t = this) { + this.entriesBefore.push(this.wrapPreparationException(e, "An error occurred during set-up of the validation", t)); + } + /** + * Register logic which will be executed once after validating all the nodes of an AST/Langium document. + * This helps to finally evaluate information which are collected during the checks on the AstNodes. + * + * As an example, for validating unique fully-qualified names of nodes in the AST, + * here the map with all the collected nodes and their names is checked + * and validation hints are created for all nodes with the same name. + * + * Note that this approach makes validations stateful, which is relevant e.g. when cancelling the validation. + * Therefore it is recommended to clear stored information + * _before_ validating an AST to validate each AST unaffected from other ASTs + * AND _after_ validating the AST to free memory by information which are no longer used. + * + * @param checkBefore a set-up function which will be called once before actually validating an AST + * @param thisObj Optional object to be used as `this` when calling the validation check functions. + */ + 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, s, o) => { + await this.handleException(() => e.call(r, n, a, s, o), t, a, n); + }; + } + get checksBefore() { + return this.entriesBefore; + } + get checksAfter() { + return this.entriesAfter; + } + getAllValidationCategories(e) { + return this.knownCategories; + } +}, Zb = Object.freeze({ + validateNode: !0, + validateChildren: !0 +}), Qb = class { + static { + i(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) { + const n = e.parseResult, a = []; + if (await Ge(r), (!t.categories || t.categories.includes("built-in")) && (this.processLexingErrors(n, a, t), t.stopAfterLexingErrors && a.some((s) => s.data?.code === Et.LexingError) || (this.processParsingErrors(n, a, t), t.stopAfterParsingErrors && a.some((s) => s.data?.code === Et.ParsingError)) || (this.processLinkingErrors(e, a, t), t.stopAfterLinkingErrors && a.some((s) => s.data?.code === Et.LinkingError)))) + return a; + try { + a.push(...await this.validateAst(n.value, t, r)); + } catch (s) { + if (Xn(s)) + throw s; + console.error("An error occurred during validation:", s); + } + return await Ge(r), a; + } + processLexingErrors(e, t, r) { + const n = [...e.lexerErrors, ...e.lexerReport?.diagnostics ?? []]; + for (const a of n) { + const s = a.severity ?? "error", o = { + severity: as(s), + 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: Eh(s), + source: this.getSource() + }; + t.push(o); + } + } + processParsingErrors(e, t, r) { + for (const n of e.parserErrors) { + let a; + if (isNaN(n.token.startOffset)) { + if ("previousToken" in n) { + const s = n.previousToken; + if (isNaN(s.startOffset)) { + const o = { line: 0, character: 0 }; + a = { start: o, end: o }; + } else { + const o = { line: s.endLine - 1, character: s.endColumn }; + a = { start: o, end: o }; + } + } + } else + a = os(n.token); + if (a) { + const s = { + severity: as("error"), + range: a, + message: n.message, + data: An(Et.ParsingError), + source: this.getSource() + }; + t.push(s); + } + } + } + processLinkingErrors(e, t, r) { + for (const n of e.references) { + const a = n.error; + if (a) { + const s = { + node: a.info.container, + range: n.$refNode?.range, + property: a.info.property, + index: a.info.index, + data: { + code: Et.LinkingError, + containerType: a.info.container.$type, + property: a.info.property, + refText: a.info.reference.$refText + } + }; + t.push(this.toDiagnostic("error", a.message, s)); + } + } + } + async validateAst(e, t, r = pe.CancellationToken.None) { + const n = [], a = /* @__PURE__ */ i((s, o, l) => { + n.push(this.toDiagnostic(s, 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) { + const a = this.validationRegistry.checksBefore; + for (const s of a) + await Ge(n), await s(e, r, t.categories ?? [], n); + } + async validateAstNodes(e, t, r, n = pe.CancellationToken.None) { + if (this.profiler?.isActive("validating")) { + const a = this.profiler.createTask("validating", this.languageId); + a.start(); + try { + const s = Mt(e).iterator(); + for (const o of s) { + a.startSubTask(o.$type); + const l = this.validateSingleNodeOptions(o, t); + if (l.validateNode) + try { + const c = this.validationRegistry.getChecks(o.$type, t.categories); + for (const u of c) + await u(o, r, n); + } finally { + a.stopSubTask(o.$type); + } + l.validateChildren || s.prune(); + } + } finally { + a.stop(); + } + } else { + const a = Mt(e).iterator(); + for (const s of a) { + await Ge(n); + const o = this.validateSingleNodeOptions(s, t); + if (o.validateNode) { + const l = this.validationRegistry.getChecks(s.$type, t.categories); + for (const c of l) + await c(s, r, n); + } + o.validateChildren || a.prune(); + } + } + } + validateSingleNodeOptions(e, t) { + return Zb; + } + async validateAstAfter(e, t, r, n = pe.CancellationToken.None) { + const a = this.validationRegistry.checksAfter; + for (const s of a) + await Ge(n), await s(e, r, t.categories ?? [], n); + } + toDiagnostic(e, t, r) { + return { + message: t, + range: Ah(r), + severity: as(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 Ah(e) { + if (e.range) + return e.range; + let t; + return typeof e.property == "string" ? t = Dl(e.node.$cstNode, e.property, e.index) : typeof e.keyword == "string" && (t = qd(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 } + }; +} +i(Ah, "getDiagnosticRange"); +function as(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); + } +} +i(as, "toDiagnosticSeverity"); +function Eh(e) { + switch (e) { + case "error": + return An(Et.LexingError); + case "warning": + return An(Et.LexingWarning); + case "info": + return An(Et.LexingInfo); + case "hint": + return An(Et.LexingHint); + default: + throw new Error("Invalid diagnostic severity: " + e); + } +} +i(Eh, "toDiagnosticData"); +var Et; +(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"; +})(Et || (Et = {})); +var eS = class { + static { + i(this, "DefaultAstNodeDescriptionProvider"); + } + constructor(e) { + this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider; + } + createDescription(e, t, r) { + const n = r ?? Dt(e); + t ?? (t = this.nameProvider.getName(e)); + const a = this.astNodeLocator.getAstNodePath(e); + if (!t) + throw new Error(`Node at path ${a} has no name.`); + let s; + const o = /* @__PURE__ */ i(() => s ?? (s = Fa(this.nameProvider.getNameNode(e) ?? e.$cstNode)), "nameSegmentGetter"); + return { + node: e, + name: t, + get nameSegment() { + return o(); + }, + selectionSegment: Fa(e.$cstNode), + type: e.$type, + documentUri: n.uri, + path: a + }; + } +}, tS = class { + static { + i(this, "DefaultReferenceDescriptionProvider"); + } + constructor(e) { + this.nodeLocator = e.workspace.AstNodeLocator; + } + async createDescriptions(e, t = pe.CancellationToken.None) { + const r = [], n = e.parseResult.value; + for (const a of Mt(n)) + await Ge(t), Da(a).forEach((s) => { + s.reference.error || r.push(...this.createInfoDescriptions(s)); + }); + return r; + } + createInfoDescriptions(e) { + const t = e.reference; + if (t.error || !t.$refNode) + return []; + let r = []; + He(t) && t.$nodeDescription ? r = [t.$nodeDescription] : Zt(t) && (r = t.items.map((l) => l.$nodeDescription).filter((l) => l !== void 0)); + const n = Dt(e.container).uri, a = this.nodeLocator.getAstNodePath(e.container), s = [], o = Fa(t.$refNode); + for (const l of r) + s.push({ + sourceUri: n, + sourcePath: a, + targetUri: l.documentUri, + targetPath: l.path, + segment: o, + local: Ye.equals(l.documentUri, n) + }); + return s; + } +}, rS = class { + static { + i(this, "DefaultAstNodeLocator"); + } + constructor() { + this.segmentSeparator = "/", this.indexSeparator = "@"; + } + getAstNodePath(e) { + if (e.$container) { + const 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; + const s = a.indexOf(this.indexSeparator); + if (s > 0) { + const o = a.substring(0, s), l = parseInt(a.substring(s + 1)); + return n[o]?.[l]; + } + return n[a]; + }, e); + } +}, bc = {}; +Rl(bc, Jf(Ka())); +var nS = class { + static { + i(this, "DefaultConfigurationProvider"); + } + constructor(e) { + this._ready = new Cr(), this.onConfigurationSectionUpdateEmitter = new bc.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) { + const t = this.serviceRegistry.all; + e.register({ + // Listen to configuration changes for all languages + section: t.map((r) => this.toSectionName(r.LanguageMetaData.languageId)) + }); + } + if (e.fetchConfiguration) { + const t = this.serviceRegistry.all.map((n) => ({ + // Fetch the configuration changes for all languages + section: this.toSectionName(n.LanguageMetaData.languageId) + })), r = await e.fetchConfiguration(t); + t.forEach((n, a) => { + this.updateSectionConfiguration(n.section, r[a]); + }); + } + } + this._ready.resolve(); + } + /** + * Updates the cached configurations using the `change` notification parameters. + * + * @param change The parameters of a change configuration notification. + * `settings` property of the change object could be expressed as `Record>` + */ + 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; + } + /** + * Returns a configuration value stored for the given language. + * + * @param language The language id + * @param configuration Configuration name + */ + async getConfiguration(e, t) { + await this.ready; + const r = this.toSectionName(e); + if (this.settings[r]) + return this.settings[r][t]; + } + toSectionName(e) { + return `${e}`; + } + get onConfigurationSectionUpdate() { + return this.onConfigurationSectionUpdateEmitter.event; + } +}, Xs = Jf(Lw()), Cn; +(function(e) { + function t(r) { + return { + dispose: /* @__PURE__ */ i(async () => await r(), "dispose") + }; + } + i(t, "create"), e.create = t; +})(Cn || (Cn = {})); +var aS = class { + static { + i(this, "DefaultDocumentBuilder"); + } + constructor(e) { + this.updateBuildOptions = { + // Default: run only the built-in validation checks and those in the _fast_ category (includes those without category) + validation: { + categories: ["built-in", "fast"] + } + }, this.updateListeners = [], this.buildPhaseListeners = new br(), this.documentPhaseListeners = new br(), this.buildState = /* @__PURE__ */ new Map(), this.documentBuildWaiters = /* @__PURE__ */ new Map(), this.currentState = Y.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 (const n of e) { + const a = n.uri.toString(); + if (n.state === Y.Validated) { + if (typeof t.validation == "boolean" && t.validation) + this.resetToState(n, Y.IndexedReferences); + else if (typeof t.validation == "object") { + const s = this.findMissingValidationCategories(n, t); + s.length > 0 && (this.buildState.set(a, { + completed: !1, + options: { + validation: { + categories: s + } + }, + result: this.buildState.get(a)?.result + }), n.state = Y.IndexedReferences); + } + } else + this.buildState.delete(a); + } + this.currentState = Y.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 = Y.Changed; + const n = []; + for (const l of t) { + const c = this.langiumDocuments.deleteDocuments(l); + for (const u of c) + n.push(u.uri), this.cleanUpDeleted(u); + } + const a = (await Promise.all(e.map((l) => this.findChangedUris(l)))).flat(); + for (const l of a) { + let c = this.langiumDocuments.getDocument(l); + c === void 0 && (c = this.langiumDocumentFactory.fromModel({ $type: "INVALID" }, l), c.state = Y.Changed, this.langiumDocuments.addDocument(c)), this.resetToState(c, Y.Changed); + } + const s = oe(a).concat(n).map((l) => l.toString()).toSet(); + this.langiumDocuments.all.filter((l) => !s.has(l.uri.toString()) && this.shouldRelink(l, s)).forEach((l) => this.resetToState(l, Y.ComputedScopes)), await this.emitUpdate(a, n), await Ge(r); + const o = this.sortDocuments(this.langiumDocuments.all.filter((l) => ( + // This includes those that were reported as changed and those that we selected for relinking + l.state < Y.Validated || !this.buildState.get(l.uri.toString())?.completed || this.resultsAreIncomplete(l, this.updateBuildOptions) + )).toArray()); + await this.buildDocuments(o, this.updateBuildOptions, r); + } + resultsAreIncomplete(e, t) { + return this.findMissingValidationCategories(e, t).length >= 1; + } + findMissingValidationCategories(e, t) { + const 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 : /* @__PURE__ */ new Set(), s = t === void 0 || t.validation === !0 ? n : typeof t.validation == "object" ? t.validation.categories ?? n : []; + return oe(s).filter((o) => !a.has(o)).toArray(); + } + async findChangedUris(e) { + if (this.langiumDocuments.getDocument(e) ?? this.textDocuments?.get(e)) + return [e]; + try { + const 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))); + } + /** + * Sort the given documents by priority. By default, documents with an open text document are prioritized. + * This is useful to ensure that visible documents show their diagnostics before all other documents. + * + * This improves the responsiveness in large workspaces as users usually don't care about diagnostics + * in files that are currently not opened in the editor. + */ + sortDocuments(e) { + let t = 0, r = e.length - 1; + for (; t < r; ) { + for (; t < e.length && this.hasTextDocument(e[t]); ) + t++; + for (; r >= 0 && !this.hasTextDocument(e[r]); ) + r--; + t < r && ([e[t], e[r]] = [e[r], e[t]]); + } + return e; + } + hasTextDocument(e) { + return !!this.textDocuments?.get(e.uri); + } + /** + * Check whether the given document should be relinked after changes were found in the given URIs. + */ + shouldRelink(e, t) { + return e.references.some((r) => r.error !== void 0) ? !0 : this.indexManager.isAffected(e, t); + } + onUpdate(e) { + return this.updateListeners.push(e), Cn.create(() => { + const t = this.updateListeners.indexOf(e); + t >= 0 && this.updateListeners.splice(t, 1); + }); + } + resetToState(e, t) { + switch (t) { + case Y.Changed: + case Y.Parsed: + this.indexManager.removeContent(e.uri); + // Fall through + case Y.IndexedContent: + e.localSymbols = void 0; + // Fall through + case Y.ComputedScopes: + this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e); + case Y.Linked: + this.indexManager.removeReferences(e.uri); + // Fall through + case Y.IndexedReferences: + e.diagnostics = void 0, this.buildState.delete(e.uri.toString()); + // Fall through + case Y.Validated: + } + e.state > t && (e.state = t); + } + cleanUpDeleted(e) { + this.buildState.delete(e.uri.toString()), this.indexManager.remove(e.uri), e.state = Y.Changed; + } + /** + * Build the given documents by stepping through all build phases. If a document's state indicates + * that a certain build phase is already done, the phase is skipped for that document. + * + * @param documents The documents to build. + * @param options the {@link BuildOptions} to use. + * @param cancelToken A cancellation token that can be used to cancel the build. + * @returns A promise that resolves when the build is done. + */ + async buildDocuments(e, t, r) { + this.prepareBuild(e, t), await this.runCancelable(e, Y.Parsed, r, (s) => this.langiumDocumentFactory.update(s, r)), await this.runCancelable(e, Y.IndexedContent, r, (s) => this.indexManager.updateContent(s, r)), await this.runCancelable(e, Y.ComputedScopes, r, async (s) => { + const o = this.serviceRegistry.getServices(s.uri).references.ScopeComputation; + s.localSymbols = await o.collectLocalSymbols(s, r); + }); + const n = e.filter((s) => this.shouldLink(s)); + await this.runCancelable(n, Y.Linked, r, (s) => this.serviceRegistry.getServices(s.uri).references.Linker.link(s, r)), await this.runCancelable(n, Y.IndexedReferences, r, (s) => this.indexManager.updateReferences(s, r)); + const a = e.filter((s) => this.shouldValidate(s) ? !0 : (this.markAsCompleted(s), !1)); + await this.runCancelable(a, Y.Validated, r, async (s) => { + await this.validate(s, r), this.markAsCompleted(s); + }); + } + markAsCompleted(e) { + const t = this.buildState.get(e.uri.toString()); + t && (t.completed = !0); + } + /** + * Runs prior to beginning the build process to update the {@link DocumentBuildState} for each document + * + * @param documents collection of documents to be built + * @param options the {@link BuildOptions} to use + */ + prepareBuild(e, t) { + for (const r of e) { + const n = r.uri.toString(), a = this.buildState.get(n); + (!a || a.completed) && this.buildState.set(n, { + completed: !1, + options: t, + result: a?.result + }); + } + } + /** + * Runs a cancelable operation on a set of documents to bring them to a specified {@link DocumentState}. + * + * @param documents The array of documents to process. + * @param targetState The target {@link DocumentState} to bring the documents to. + * @param cancelToken A token that can be used to cancel the operation. + * @param callback A function to be called for each document. + * @returns A promise that resolves when all documents have been processed or the operation is canceled. + * @throws Will throw `OperationCancelled` if the operation is canceled via a `CancellationToken`. + */ + async runCancelable(e, t, r, n) { + for (const s of e) + s.state < t && (await Ge(r), await n(s), s.state = t, await this.notifyDocumentPhase(s, t, r)); + const a = e.filter((s) => s.state === t); + await this.notifyBuildPhase(a, t, r), this.currentState = t; + } + onBuildPhase(e, t) { + return this.buildPhaseListeners.add(e, t), Cn.create(() => { + this.buildPhaseListeners.delete(e, t); + }); + } + onDocumentPhase(e, t) { + return this.documentPhaseListeners.add(e, t), Cn.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) { + const n = this.langiumDocuments.getDocument(t); + if (n) { + if (n.state >= e) + return Promise.resolve(t); + if (r.isCancellationRequested) + return Promise.reject(Jt); + if (this.currentState >= e && e > n.state) + return Promise.reject(new Xs.ResponseError(Xs.LSPErrorCodes.RequestFailed, `Document state of ${t.toString()} is ${Y[n.state]}, requiring ${Y[e]}, but workspace state is already ${Y[this.currentState]}. Returning undefined.`)); + } else return Promise.reject(new Xs.ResponseError(Xs.LSPErrorCodes.ServerCancelled, `No document found for URI: ${t.toString()}`)); + return new Promise((a, s) => { + const o = this.onDocumentPhase(e, (c) => { + Ye.equals(c.uri, t) && (o.dispose(), l.dispose(), a(c.uri)); + }), l = r.onCancellationRequested(() => { + o.dispose(), l.dispose(), s(Jt); + }); + }); + } + awaitBuilderState(e, t) { + return this.currentState >= e ? Promise.resolve() : t.isCancellationRequested ? Promise.reject(Jt) : new Promise((r, n) => { + const a = this.onBuildPhase(e, () => { + a.dispose(), s.dispose(), r(); + }), s = t.onCancellationRequested(() => { + a.dispose(), s.dispose(), n(Jt); + }); + }); + } + async notifyDocumentPhase(e, t, r) { + const a = this.documentPhaseListeners.get(t).slice(); + for (const s of a) + try { + await Ge(r), await s(e, r); + } catch (o) { + if (!Xn(o)) + throw o; + } + } + async notifyBuildPhase(e, t, r) { + if (e.length === 0) + return; + const a = this.buildPhaseListeners.get(t).slice(); + for (const s of a) + await Ge(r), await s(e, r); + } + /** + * Determine whether the given document should be linked during a build. The default + * implementation checks the `eagerLinking` property of the build options. If it's set to `true` + * or `undefined`, the document is included in the linking phase. This also affects the + * references indexing phase, which depends on eager linking. + */ + shouldLink(e) { + return this.getBuildOptions(e).eagerLinking ?? !0; + } + /** + * Determine whether the given document should be validated during a build. The default + * implementation checks the `validation` property of the build options. If it's set to `true` + * or a `ValidationOptions` object, the document is included in the validation phase. + */ + shouldValidate(e) { + return !!this.getBuildOptions(e).validation; + } + /** + * Run validation checks on the given document and store the resulting diagnostics in the document. + * If the document already contains diagnostics, the new ones are added to the list. + */ + async validate(e, t) { + const 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); + const s = await r.validateDocument(e, a, t); + e.diagnostics ? e.diagnostics.push(...s) : e.diagnostics = s; + const o = this.buildState.get(e.uri.toString()); + o && (o.result ?? (o.result = {}), o.result.validationChecks ? o.result.validationChecks = oe(o.result.validationChecks).concat(a.categories).distinct().toArray() : o.result.validationChecks = [...a.categories]); + } + getBuildOptions(e) { + return this.buildState.get(e.uri.toString())?.options ?? {}; + } +}, iS = class { + static { + i(this, "DefaultIndexManager"); + } + constructor(e) { + this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new Cc(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; + } + findAllReferences(e, t) { + const r = Dt(e).uri, n = []; + return this.referenceIndex.forEach((a) => { + a.forEach((s) => { + Ye.equals(s.targetUri, r) && s.targetPath === t && n.push(s); + }); + }), oe(n); + } + allElements(e, t) { + let r = oe(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) { + const t = e.toString(); + this.symbolIndex.delete(t), this.symbolByTypeIndex.clear(t); + } + removeReferences(e) { + const t = e.toString(); + this.referenceIndex.delete(t); + } + async updateContent(e, t = pe.CancellationToken.None) { + const 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) { + const n = await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e, t); + this.referenceIndex.set(e.uri.toString(), n); + } + isAffected(e, t) { + const r = this.referenceIndex.get(e.uri.toString()); + return r ? r.some((n) => !n.local && t.has(n.targetUri.toString())) : !1; + } +}, sS = class { + static { + i(this, "DefaultWorkspaceManager"); + } + constructor(e) { + this.initialBuildOptions = {}, this._ready = new Cr(), 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) { + const r = await this.performStartup(e); + await Ge(t), await this.documentBuilder.build(r, this.initialBuildOptions, t); + } + /** + * Performs the uninterruptable startup sequence of the workspace manager. + * This methods loads all documents in the workspace and other documents and returns them. + */ + async performStartup(e) { + const t = [], r = /* @__PURE__ */ i((s) => { + t.push(s), this.langiumDocuments.hasDocument(s.uri) || this.langiumDocuments.addDocument(s); + }, "collector"); + await this.loadAdditionalDocuments(e, r); + const n = []; + await Promise.all(e.map((s) => this.getRootFolder(s)).map(async (s) => this.traverseFolder(s, n))); + const a = oe(n).distinct((s) => s.toString()).filter((s) => !this.langiumDocuments.hasDocument(s)); + return await this.loadWorkspaceDocuments(a, r), this._ready.resolve(), t; + } + async loadWorkspaceDocuments(e, t) { + await Promise.all(e.map(async (r) => { + const n = await this.langiumDocuments.getOrCreateDocument(r); + t(n); + })); + } + /** + * Load all additional documents that shall be visible in the context of the given workspace + * folders and add them to the collector. This can be used to include built-in libraries of + * your language, which can be either loaded from provided files or constructed in memory. + */ + loadAdditionalDocuments(e, t) { + return Promise.resolve(); + } + /** + * Determine the root folder of the source documents in the given workspace folder. + * The default implementation returns the URI of the workspace folder, but you can override + * this to return a subfolder like `src` instead. + */ + getRootFolder(e) { + return ft.parse(e.uri); + } + /** + * Traverse the file system folder identified by the given URI and its subfolders. All + * contained files that match the file extensions are added to the `uris` array. + */ + async traverseFolder(e, t) { + try { + const 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) { + const t = []; + return await this.traverseFolder(e, t), t; + } + /** + * Determine whether the given folder entry shall be included while indexing the workspace. + */ + shouldIncludeEntry(e) { + const t = Ye.basename(e.uri); + return t.startsWith(".") ? !1 : e.isDirectory ? t !== "node_modules" && t !== "out" : e.isFile ? this.serviceRegistry.hasServices(e.uri) : !1; + } +}, oS = class { + static { + i(this, "DefaultLexerErrorMessageProvider"); + } + buildUnexpectedCharactersMessage(e, t, r, n, a) { + return df.buildUnexpectedCharactersMessage(e, t, r, n, a); + } + buildUnableToPopLexerModeMessage(e) { + return df.buildUnableToPopLexerModeMessage(e); + } +}, _h = { mode: "full" }, Ch = class { + static { + i(this, "DefaultLexer"); + } + constructor(e) { + this.errorMessageProvider = e.parser.LexerErrorMessageProvider, this.tokenBuilder = e.parser.TokenBuilder; + const t = this.tokenBuilder.buildTokens(e.Grammar, { + caseInsensitive: e.LanguageMetaData.caseInsensitive + }); + this.tokenTypes = this.toTokenTypeDictionary(t); + const r = vl(t) ? Object.values(t) : t, n = e.LanguageMetaData.mode === "production"; + this.chevrotainLexer = new Xe(r, { + positionTracking: "full", + skipValidations: n, + errorMessageProvider: this.errorMessageProvider + }); + } + get definition() { + return this.tokenTypes; + } + tokenize(e, t = _h) { + const r = this.chevrotainLexer.tokenize(e); + return { + tokens: r.tokens, + errors: r.errors, + hidden: r.groups.hidden ?? [], + report: this.tokenBuilder.flushLexingReport?.(e) + }; + } + toTokenTypeDictionary(e) { + if (vl(e)) + return e; + const t = wc(e) ? Object.values(e.modes).flat() : e, r = {}; + return t.forEach((n) => r[n.name] = n), r; + } +}; +function Sc(e) { + return Array.isArray(e) && (e.length === 0 || "name" in e[0]); +} +i(Sc, "isTokenTypeArray"); +function wc(e) { + return e && "modes" in e && "defaultMode" in e; +} +i(wc, "isIMultiModeLexerDefinition"); +function vl(e) { + return !Sc(e) && !wc(e); +} +i(vl, "isTokenTypeDictionary"); +Es(); +function bh(e, t, r) { + let n, a; + typeof e == "string" ? (a = t, n = r) : (a = e.range.start, n = t), a || (a = ie.create(0, 0)); + const s = wh(e), o = Ic(n), l = lS({ + lines: s, + position: a, + options: o + }); + return fS({ + index: 0, + tokens: l, + position: a + }); +} +i(bh, "parseJSDoc"); +function Sh(e, t) { + const r = Ic(t), n = wh(e); + if (n.length === 0) + return !1; + const a = n[0], s = n[n.length - 1], o = r.start, l = r.end; + return !!o?.exec(a) && !!l?.exec(s); +} +i(Sh, "isJSDoc"); +function wh(e) { + let t = ""; + return typeof e == "string" ? t = e : t = e.text, t.split(cy); +} +i(wh, "getLines"); +var ag = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, tF = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; +function lS(e) { + const t = []; + let r = e.position.line, n = e.position.character; + for (let a = 0; a < e.lines.length; a++) { + const s = a === 0, o = a === e.lines.length - 1; + let l = e.lines[a], c = 0; + if (s && e.options.start) { + const f = e.options.start?.exec(l); + f && (c = f.index + f[0].length); + } else { + const f = e.options.line?.exec(l); + f && (c = f.index + f[0].length); + } + if (o) { + const f = e.options.end?.exec(l); + f && (l = l.substring(0, f.index)); + } + if (l = l.substring(0, uS(l)), Tl(l, c) >= l.length) { + if (t.length > 0) { + const f = ie.create(r, n); + t.push({ + type: "break", + content: "", + range: ee.create(f, f) + }); + } + } else { + ag.lastIndex = c; + const f = ag.exec(l); + if (f) { + const d = f[0], h = f[1], y = ie.create(r, n + c), v = ie.create(r, n + c + d.length); + t.push({ + type: "tag", + content: h, + range: ee.create(y, v) + }), c += d.length, c = Tl(l, c); + } + if (c < l.length) { + const d = l.substring(c), h = Array.from(d.matchAll(tF)); + t.push(...cS(h, d, r, n + c)); + } + } + r++, n = 0; + } + return t.length > 0 && t[t.length - 1].type === "break" ? t.slice(0, -1) : t; +} +i(lS, "tokenize"); +function cS(e, t, r, n) { + const a = []; + if (e.length === 0) { + const s = ie.create(r, n), o = ie.create(r, n + t.length); + a.push({ + type: "text", + content: t, + range: ee.create(s, o) + }); + } else { + let s = 0; + for (const l of e) { + const c = l.index, u = t.substring(s, c); + u.length > 0 && a.push({ + type: "text", + content: t.substring(s, c), + range: ee.create(ie.create(r, s + n), ie.create(r, c + n)) + }); + let f = u.length + 1; + const d = l[1]; + if (a.push({ + type: "inline-tag", + content: d, + range: ee.create(ie.create(r, s + f + n), ie.create(r, s + f + d.length + n)) + }), f += d.length, l.length === 4) { + f += l[2].length; + const h = l[3]; + a.push({ + type: "text", + content: h, + range: ee.create(ie.create(r, s + f + n), ie.create(r, s + f + h.length + n)) + }); + } else + a.push({ + type: "text", + content: "", + range: ee.create(ie.create(r, s + f + n), ie.create(r, s + f + n)) + }); + s = c + l[0].length; + } + const o = t.substring(s); + o.length > 0 && a.push({ + type: "text", + content: o, + range: ee.create(ie.create(r, s + n), ie.create(r, s + n + o.length)) + }); + } + return a; +} +i(cS, "buildInlineTokens"); +var rF = /\S/, nF = /\s*$/; +function Tl(e, t) { + const r = e.substring(t).match(rF); + return r ? t + r.index : e.length; +} +i(Tl, "skipWhitespace"); +function uS(e) { + const t = e.match(nF); + if (t && typeof t.index == "number") + return t.index; +} +i(uS, "lastCharacter"); +function fS(e) { + const t = ie.create(e.position.line, e.position.character); + if (e.tokens.length === 0) + return new ig([], ee.create(t, t)); + const r = []; + for (; e.index < e.tokens.length; ) { + const s = dS(e, r[r.length - 1]); + s && r.push(s); + } + const n = r[0]?.range.start ?? t, a = r[r.length - 1]?.range.end ?? t; + return new ig(r, ee.create(n, a)); +} +i(fS, "parseJSDocComment"); +function dS(e, t) { + const r = e.tokens[e.index]; + if (r.type === "tag") + return Nh(e, !1); + if (r.type === "text" || r.type === "inline-tag") + return Ih(e); + pS(r, t), e.index++; +} +i(dS, "parseJSDocElement"); +function pS(e, t) { + if (t) { + const r = new yS("", e.range); + "inlines" in t ? t.inlines.push(r) : t.content.inlines.push(r); + } +} +i(pS, "appendEmptyLine"); +function Ih(e) { + let t = e.tokens[e.index]; + const r = t; + let n = t; + const a = []; + for (; t && t.type !== "break" && t.type !== "tag"; ) + a.push(hS(e)), n = t, t = e.tokens[e.index]; + return new Lf(a, ee.create(r.range.start, n.range.end)); +} +i(Ih, "parseJSDocText"); +function hS(e) { + return e.tokens[e.index].type === "inline-tag" ? Nh(e, !0) : kh(e); +} +i(hS, "parseJSDocInline"); +function Nh(e, t) { + const r = e.tokens[e.index++], n = r.content.substring(1); + if (e.tokens[e.index]?.type === "text") + if (t) { + const s = kh(e); + return new Gc(n, new Lf([s], s.range), t, ee.create(r.range.start, s.range.end)); + } else { + const s = Ih(e); + return new Gc(n, s, t, ee.create(r.range.start, s.range.end)); + } + else { + const s = r.range; + return new Gc(n, new Lf([], s), t, s); + } +} +i(Nh, "parseJSDocTag"); +function kh(e) { + const t = e.tokens[e.index++]; + return new yS(t.content, t.range); +} +i(kh, "parseJSDocLine"); +function Ic(e) { + if (!e) + return Ic({ + start: "/**", + end: "*/", + line: "*" + }); + const { start: t, end: r, line: n } = e; + return { + start: No(t, !0), + end: No(r, !1), + line: No(n, !0) + }; +} +i(Ic, "normalizeOptions"); +function No(e, t) { + if (typeof e == "string" || typeof e == "object") { + const r = typeof e == "string" ? Wa(e) : e.source; + return t ? new RegExp(`^\\s*${r}`) : new RegExp(`\\s*${r}\\s*$`); + } else + return e; +} +i(No, "normalizeOption"); +var ig = class { + static { + i(this, "JSDocCommentImpl"); + } + constructor(e, t) { + this.elements = e, this.range = t; + } + getTag(e) { + return this.getAllTags().find((t) => t.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 (const t of this.elements) + if (e.length === 0) + e = t.toString(); + else { + const r = t.toString(); + e += Df(e) + r; + } + return e.trim(); + } + toMarkdown(e) { + let t = ""; + for (const r of this.elements) + if (t.length === 0) + t = r.toMarkdown(e); + else { + const n = r.toMarkdown(e); + t += Df(t) + n; + } + return t.trim(); + } +}, Gc = class { + static { + i(this, "JSDocTagImpl"); + } + constructor(e, t, r, n) { + this.name = e, this.content = t, this.inline = r, this.range = n; + } + toString() { + let e = `@${this.name}`; + const 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) { + const t = this.content.toMarkdown(e); + if (this.inline) { + const a = mS(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} — ${t}` : this.content.inlines.length > 1 && (n = `${n} +${t}`), this.inline ? `{${n}}` : n; + } +}; +function mS(e, t, r) { + if (e === "linkplain" || e === "linkcode" || e === "link") { + const n = t.indexOf(" "); + let a = t; + if (n > 0) { + const o = Tl(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) ?? gS(t, a); + } +} +i(mS, "renderInlineTag"); +function gS(e, t) { + try { + return ft.parse(e, !0), `[${t}](${e})`; + } catch { + return e; + } +} +i(gS, "renderLinkDefault"); +var Lf = class { + static { + i(this, "JSDocTextImpl"); + } + constructor(e, t) { + this.inlines = e, this.range = t; + } + toString() { + let e = ""; + for (let t = 0; t < this.inlines.length; t++) { + const r = this.inlines[t], n = this.inlines[t + 1]; + e += r.toString(), n && n.range.start.line > r.range.start.line && (e += ` +`); + } + return e; + } + toMarkdown(e) { + let t = ""; + for (let r = 0; r < this.inlines.length; r++) { + const n = this.inlines[r], a = this.inlines[r + 1]; + t += n.toMarkdown(e), a && a.range.start.line > n.range.start.line && (t += ` +`); + } + return t; + } +}, yS = class { + static { + i(this, "JSDocLineImpl"); + } + constructor(e, t) { + this.text = e, this.range = t; + } + toString() { + return this.text; + } + toMarkdown() { + return this.text; + } +}; +function Df(e) { + return e.endsWith(` +`) ? ` +` : ` + +`; +} +i(Df, "fillNewlines"); +var vS = class { + static { + i(this, "JSDocDocumentationProvider"); + } + constructor(e) { + this.indexManager = e.shared.workspace.IndexManager, this.commentProvider = e.documentation.CommentProvider; + } + getDocumentation(e) { + const t = this.commentProvider.getComment(e); + if (t && Sh(t)) + return bh(t).toMarkdown({ + renderLink: /* @__PURE__ */ i((n, a) => this.documentationLinkRenderer(e, n, a), "renderLink"), + renderTag: /* @__PURE__ */ i((n) => this.documentationTagRenderer(e, n), "renderTag") + }); + } + documentationLinkRenderer(e, t, r) { + const n = this.findNameInLocalSymbols(e, t) ?? this.findNameInGlobalScope(e, t); + if (n && n.nameSegment) { + const a = n.nameSegment.range.start.line + 1, s = n.nameSegment.range.start.character + 1, o = n.documentUri.with({ fragment: `L${a},${s}` }); + return `[${r}](${o.toString()})`; + } else + return; + } + documentationTagRenderer(e, t) { + } + findNameInLocalSymbols(e, t) { + const n = Dt(e).localSymbols; + if (!n) + return; + let a = e; + do { + const 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); + } +}, TS = class { + static { + i(this, "DefaultCommentProvider"); + } + constructor(e) { + this.grammarConfig = () => e.parser.GrammarConfig; + } + getComment(e) { + return $h(e) ? e.$comment : Id(e.$cstNode, this.grammarConfig().multilineCommentRules)?.text; + } +}, RS = class { + static { + i(this, "DefaultAsyncParser"); + } + constructor(e) { + this.syncParser = e.parser.LangiumParser; + } + parse(e, t) { + return Promise.resolve(this.syncParser.parse(e)); + } +}, aF = class { + static { + i(this, "AbstractThreadedAsyncParser"); + } + constructor(e) { + this.threadCount = 8, this.terminationDelay = 200, this.workerPool = [], this.queue = [], this.hydrator = e.serializer.Hydrator; + } + initializeWorkers() { + for (; this.workerPool.length < this.threadCount; ) { + const e = this.createWorker(); + e.onReady(() => { + if (this.queue.length > 0) { + const t = this.queue.shift(); + t && (e.lock(), t.resolve(e)); + } + }), this.workerPool.push(e); + } + } + async parse(e, t) { + const r = await this.acquireParserWorker(t), n = new Cr(); + let a; + const s = t.onCancellationRequested(() => { + a = setTimeout(() => { + this.terminateWorker(r); + }, this.terminationDelay); + }); + return r.parse(e).then((o) => { + const l = this.hydrator.hydrate(o); + n.resolve(l); + }).catch((o) => { + n.reject(o); + }).finally(() => { + s.dispose(), clearTimeout(a); + }), n.promise; + } + terminateWorker(e) { + e.terminate(); + const t = this.workerPool.indexOf(e); + t >= 0 && this.workerPool.splice(t, 1); + } + async acquireParserWorker(e) { + this.initializeWorkers(); + for (const r of this.workerPool) + if (r.ready) + return r.lock(), r; + const t = new Cr(); + return e.onCancellationRequested(() => { + const r = this.queue.indexOf(t); + r >= 0 && this.queue.splice(r, 1), t.reject(Jt); + }), this.queue.push(t), t.promise; + } +}, iF = class { + static { + i(this, "ParserWorker"); + } + get ready() { + return this._ready; + } + get onReady() { + return this.onReadyEmitter.event; + } + constructor(e, t, r, n) { + this.onReadyEmitter = new bc.Emitter(), this.deferred = new Cr(), this._ready = !0, this._parsing = !1, this.sendMessage = e, this._terminate = n, t((a) => { + const s = a; + this.deferred.resolve(s), this.unlock(); + }), r((a) => { + this.deferred.reject(a), this.unlock(); + }); + } + terminate() { + this.deferred.reject(Jt), 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 Cr(), this.sendMessage(e), this.deferred.promise; + } +}, $S = class { + static { + i(this, "DefaultWorkspaceLock"); + } + constructor() { + this.previousTokenSource = new pe.CancellationTokenSource(), this.writeQueue = [], this.readQueue = [], this.done = !0; + } + write(e) { + this.cancelWrite(); + const t = Ec(); + 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) { + const n = new Cr(), a = { + action: t, + deferred: n, + cancellationToken: r + }; + return e.push(a), this.performNextOperation(), n.promise; + } + async performNextOperation() { + if (!this.done) + return; + const 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 { + const a = await Promise.resolve().then(() => t(n)); + r.resolve(a); + } catch (a) { + Xn(a) ? r.resolve(void 0) : r.reject(a); + } + })), this.done = !0, this.performNextOperation(); + } + cancelWrite() { + this.previousTokenSource.cancel(); + } +}, AS = class { + static { + i(this, "DefaultHydrator"); + } + constructor(e) { + this.grammarElementIdMap = new gl(), this.tokenTypeIdMap = new gl(), 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, + // We need to create shallow copies of the errors + // The original errors inherit from the `Error` class, which is not transferable across worker threads + parserErrors: e.parserErrors.map((t) => ({ ...t, message: t.message })), + value: this.dehydrateAstNode(e.value, this.createDehyrationContext(e.value)) + }; + } + dehydrateLexerReport(e) { + return e; + } + createDehyrationContext(e) { + const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(); + for (const n of Mt(e)) + t.set(n, {}); + if (e.$cstNode) + for (const n of xa(e.$cstNode)) + r.set(n, {}); + return { + astNodes: t, + cstNodes: r + }; + } + dehydrateAstNode(e, t) { + const 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 (const [n, a] of Object.entries(e)) + if (!n.startsWith("$")) + if (Array.isArray(a)) { + const s = []; + r[n] = s; + for (const o of a) + Le(o) ? s.push(this.dehydrateAstNode(o, t)) : He(o) ? s.push(this.dehydrateReference(o, t)) : s.push(o); + } else Le(a) ? r[n] = this.dehydrateAstNode(a, t) : He(a) ? r[n] = this.dehydrateReference(a, t) : a !== void 0 && (r[n] = a); + return r; + } + dehydrateReference(e, t) { + const r = {}; + return r.$refText = e.$refText, e.$refNode && (r.$refNode = t.cstNodes.get(e.$refNode)), r; + } + dehydrateCstNode(e, t) { + const r = t.cstNodes.get(e); + return El(e) ? r.fullText = e.fullText : r.grammarSource = this.getGrammarElementId(e.grammarSource), r.hidden = e.hidden, r.astNode = t.astNodes.get(e.astNode), yr(e) ? r.content = e.content.map((n) => this.dehydrateCstNode(n, t)) : kn(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) { + const 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) { + const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(); + for (const a of Mt(e)) + t.set(a, {}); + let n; + if (e.$cstNode) + for (const a of xa(e.$cstNode)) { + let s; + "fullText" in a ? (s = new ih(a.fullText), n = s) : "content" in a ? s = new vc() : "tokenType" in a && (s = this.hydrateCstLeafNode(a)), s && (r.set(a, s), s.root = n); + } + return { + astNodes: t, + cstNodes: r + }; + } + hydrateAstNode(e, t) { + const 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 (const [n, a] of Object.entries(e)) + if (!n.startsWith("$")) + if (Array.isArray(a)) { + const s = []; + r[n] = s; + for (const o of a) + Le(o) ? s.push(this.setParent(this.hydrateAstNode(o, t), r)) : He(o) ? s.push(this.hydrateReference(o, r, n, t)) : s.push(o); + } else Le(a) ? r[n] = this.setParent(this.hydrateAstNode(a, t), r) : He(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) { + const n = t.cstNodes.get(e); + if (typeof e.grammarSource == "number" && (n.grammarSource = this.getGrammarElement(e.grammarSource)), n.astNode = t.astNodes.get(e.astNode), yr(n)) + for (const a of e.content) { + const s = this.hydrateCstNode(a, t, r++); + n.content.push(s); + } + return n; + } + hydrateCstLeafNode(e) { + const t = this.getTokenType(e.tokenType), r = e.offset, n = e.length, a = e.startLine, s = e.startColumn, o = e.endLine, l = e.endColumn, c = e.hidden; + return new fl(r, n, { + start: { + line: a, + character: s + }, + end: { + line: o, + character: l + } + }, t, c); + } + 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 (const t of Mt(this.grammar)) + _l(t) && this.grammarElementIdMap.set(t, e++); + } +}; +function yt(e) { + return { + documentation: { + CommentProvider: /* @__PURE__ */ i((t) => new TS(t), "CommentProvider"), + DocumentationProvider: /* @__PURE__ */ i((t) => new vS(t), "DocumentationProvider") + }, + parser: { + AsyncParser: /* @__PURE__ */ i((t) => new RS(t), "AsyncParser"), + GrammarConfig: /* @__PURE__ */ i((t) => Qd(t), "GrammarConfig"), + LangiumParser: /* @__PURE__ */ i((t) => fh(t), "LangiumParser"), + CompletionParser: /* @__PURE__ */ i((t) => uh(t), "CompletionParser"), + ValueConverter: /* @__PURE__ */ i(() => new ph(), "ValueConverter"), + TokenBuilder: /* @__PURE__ */ i(() => new $c(), "TokenBuilder"), + Lexer: /* @__PURE__ */ i((t) => new Ch(t), "Lexer"), + ParserErrorMessageProvider: /* @__PURE__ */ i(() => new oh(), "ParserErrorMessageProvider"), + LexerErrorMessageProvider: /* @__PURE__ */ i(() => new oS(), "LexerErrorMessageProvider") + }, + workspace: { + AstNodeLocator: /* @__PURE__ */ i(() => new rS(), "AstNodeLocator"), + AstNodeDescriptionProvider: /* @__PURE__ */ i((t) => new eS(t), "AstNodeDescriptionProvider"), + ReferenceDescriptionProvider: /* @__PURE__ */ i((t) => new tS(t), "ReferenceDescriptionProvider") + }, + references: { + Linker: /* @__PURE__ */ i((t) => new zb(t), "Linker"), + NameProvider: /* @__PURE__ */ i(() => new Bb(), "NameProvider"), + ScopeProvider: /* @__PURE__ */ i((t) => new Hb(t), "ScopeProvider"), + ScopeComputation: /* @__PURE__ */ i((t) => new qb(t), "ScopeComputation"), + References: /* @__PURE__ */ i((t) => new Kb(t), "References") + }, + serializer: { + Hydrator: /* @__PURE__ */ i((t) => new AS(t), "Hydrator"), + JsonSerializer: /* @__PURE__ */ i((t) => new Yb(t), "JsonSerializer") + }, + validation: { + DocumentValidator: /* @__PURE__ */ i((t) => new Qb(t), "DocumentValidator"), + ValidationRegistry: /* @__PURE__ */ i((t) => new Jb(t), "ValidationRegistry") + }, + shared: /* @__PURE__ */ i(() => e.shared, "shared") + }; +} +i(yt, "createDefaultCoreModule"); +function vt(e) { + return { + ServiceRegistry: /* @__PURE__ */ i((t) => new Xb(t), "ServiceRegistry"), + workspace: { + LangiumDocuments: /* @__PURE__ */ i((t) => new Ub(t), "LangiumDocuments"), + LangiumDocumentFactory: /* @__PURE__ */ i((t) => new jb(t), "LangiumDocumentFactory"), + DocumentBuilder: /* @__PURE__ */ i((t) => new aS(t), "DocumentBuilder"), + IndexManager: /* @__PURE__ */ i((t) => new iS(t), "IndexManager"), + WorkspaceManager: /* @__PURE__ */ i((t) => new sS(t), "WorkspaceManager"), + FileSystemProvider: /* @__PURE__ */ i((t) => e.fileSystemProvider(t), "FileSystemProvider"), + WorkspaceLock: /* @__PURE__ */ i(() => new $S(), "WorkspaceLock"), + ConfigurationProvider: /* @__PURE__ */ i((t) => new nS(t), "ConfigurationProvider") + }, + profilers: {} + }; +} +i(vt, "createDefaultSharedCoreModule"); +var Mf; +(function(e) { + e.merge = (t, r) => Ba(Ba({}, t), r); +})(Mf || (Mf = {})); +function Ae(e, t, r, n, a, s, o, l, c) { + const u = [e, t, r, n, a, s, o, l, c].reduce(Ba, {}); + return Oh(u); +} +i(Ae, "inject"); +var ES = Symbol("isProxy"); +function Ph(e) { + if (e && e[ES]) + for (const t of Object.values(e)) + Ph(t); + return e; +} +i(Ph, "eagerLoad"); +function Oh(e, t) { + const r = new Proxy({}, { + deleteProperty: /* @__PURE__ */ i(() => !1, "deleteProperty"), + set: /* @__PURE__ */ i(() => { + throw new Error("Cannot set property on injected service container"); + }, "set"), + get: /* @__PURE__ */ i((n, a) => a === ES ? !0 : xf(n, a, e, t || r), "get"), + getOwnPropertyDescriptor: /* @__PURE__ */ i((n, a) => (xf(n, a, e, t || r), Object.getOwnPropertyDescriptor(n, a)), "getOwnPropertyDescriptor"), + // used by for..in + has: /* @__PURE__ */ i((n, a) => a in e, "has"), + // used by ..in.. + ownKeys: /* @__PURE__ */ i(() => [...Object.getOwnPropertyNames(e)], "ownKeys") + // used by for..in + }); + return r; +} +i(Oh, "_inject"); +var sg = 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] === sg) + 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) { + const a = r[t]; + e[t] = sg; + try { + e[t] = typeof a == "function" ? a(n) : Oh(a, n); + } catch (s) { + throw e[t] = s instanceof Error ? s : void 0, s; + } + return e[t]; + } else + return; +} +i(xf, "_resolve"); +function Ba(e, t) { + if (t) { + for (const [r, n] of Object.entries(t)) + if (n != null) + if (typeof n == "object") { + const a = e[r]; + typeof a == "object" && a !== null ? e[r] = Ba(a, n) : e[r] = Ba({}, n); + } else + e[r] = n; + } + return e; +} +i(Ba, "_merge"); +var Ff = { + indentTokenName: "INDENT", + dedentTokenName: "DEDENT", + whitespaceTokenName: "WS", + ignoreIndentationDelimiters: [] +}, En; +(function(e) { + e.REGULAR = "indentation-sensitive", e.IGNORE_INDENTATION = "ignore-indentation"; +})(En || (En = {})); +var _S = class extends $c { + static { + i(this, "IndentationAwareTokenBuilder"); + } + constructor(e = Ff) { + super(), this.indentationStack = [0], this.whitespaceRegExp = /[ \t]+/y, this.options = { + ...Ff, + ...e + }, this.indentTokenType = Na({ + name: this.options.indentTokenName, + pattern: this.indentMatcher.bind(this), + line_breaks: !1 + }), this.dedentTokenType = Na({ + name: this.options.dedentTokenName, + pattern: this.dedentMatcher.bind(this), + line_breaks: !1 + }); + } + buildTokens(e, t) { + const r = super.buildTokens(e, t); + if (!Sc(r)) + throw new Error("Invalid tokens built by default builder"); + const { indentTokenName: n, dedentTokenName: a, whitespaceTokenName: s, ignoreIndentationDelimiters: o } = this.options; + let l, c, u; + const f = []; + for (const d of r) { + for (const [h, y] of o) + d.name === h ? d.PUSH_MODE = En.IGNORE_INDENTATION : d.name === y && (d.POP_MODE = !0); + d.name === a ? l = d : d.name === n ? c = d : d.name === s ? u = d : f.push(d); + } + if (!l || !c || !u) + throw new Error("Some indentation/whitespace tokens not found!"); + return o.length > 0 ? { + modes: { + [En.REGULAR]: [l, c, ...f, u], + [En.IGNORE_INDENTATION]: [...f, u] + }, + defaultMode: En.REGULAR + } : [l, c, u, ...f]; + } + flushLexingReport(e) { + return { + ...super.flushLexingReport(e), + remainingDedents: this.flushRemainingDedents(e) + }; + } + /** + * Helper function to check if the current position is the start of a new line. + * + * @param text The full input string. + * @param offset The current position at which to check + * @returns Whether the current position is the start of a new line + */ + isStartOfLine(e, t) { + return t === 0 || `\r +`.includes(e[t - 1]); + } + /** + * A helper function used in matching both indents and dedents. + * + * @param text The full input string. + * @param offset The current position at which to attempt a match + * @param tokens Previously scanned tokens + * @param groups Token Groups + * @returns The current and previous indentation levels and the matched whitespace + */ + // eslint-disable-next-line @typescript-eslint/no-unused-vars + matchWhitespace(e, t, r, n) { + this.whitespaceRegExp.lastIndex = t; + const a = this.whitespaceRegExp.exec(e); + return { + currIndentLevel: a?.[0].length ?? 0, + prevIndentLevel: this.indentationStack.at(-1), + match: a + }; + } + /** + * Helper function to create an instance of an indentation token. + * + * @param tokenType Indent or dedent token type + * @param text Full input string, used to calculate the line number + * @param image The original image of the token (tabs or spaces) + * @param offset Current position in the input string + * @returns The indentation token instance + */ + createIndentationTokenInstance(e, t, r, n) { + const a = this.getLineNumber(t, n); + return Gs(e, r, n, n + r.length, a, a, 1, r.length); + } + /** + * Helper function to get the line number at a given offset. + * + * @param text Full input string, used to calculate the line number + * @param offset Current position in the input string + * @returns The line number at the given offset + */ + getLineNumber(e, t) { + return e.substring(0, t).split(/\r\n|\r|\n/).length; + } + /** + * A custom pattern for matching indents + * + * @param text The full input string. + * @param offset The offset at which to attempt a match + * @param tokens Previously scanned tokens + * @param groups Token Groups + */ + indentMatcher(e, t, r, n) { + if (!this.isStartOfLine(e, t)) + return null; + const { currIndentLevel: a, prevIndentLevel: s, match: o } = this.matchWhitespace(e, t, r, n); + return a <= s ? null : (this.indentationStack.push(a), o); + } + /** + * A custom pattern for matching dedents + * + * @param text The full input string. + * @param offset The offset at which to attempt a match + * @param tokens Previously scanned tokens + * @param groups Token Groups + */ + dedentMatcher(e, t, r, n) { + if (!this.isStartOfLine(e, t)) + return null; + const { currIndentLevel: a, prevIndentLevel: s, match: o } = this.matchWhitespace(e, t, r, n); + if (a >= s) + return null; + const 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; + const c = this.indentationStack.length - l - 1, u = e.substring(0, t).match(/[\r\n]+$/)?.[0].length ?? 1; + for (let f = 0; f < c; f++) { + const d = this.createIndentationTokenInstance( + this.dedentTokenType, + e, + "", + // Dedents are 0-width tokens + t - (u - 1) + ); + r.push(d), this.indentationStack.pop(); + } + return null; + } + buildTerminalToken(e) { + const t = super.buildTerminalToken(e), { indentTokenName: r, dedentTokenName: n, whitespaceTokenName: a } = this.options; + return t.name === r ? this.indentTokenType : t.name === n ? this.dedentTokenType : t.name === a ? Na({ + name: a, + pattern: this.whitespaceRegExp, + group: Xe.SKIPPED + }) : t; + } + /** + * Resets the indentation stack between different runs of the lexer + * + * @param text Full text that was tokenized + * @returns Remaining dedent tokens to match all previous indents at the end of the file + */ + flushRemainingDedents(e) { + const t = []; + for (; this.indentationStack.length > 1; ) + t.push(this.createIndentationTokenInstance(this.dedentTokenType, e, "", e.length)), this.indentationStack.pop(); + return this.indentationStack = [0], t; + } +}, sF = class extends Ch { + static { + i(this, "IndentationAwareLexer"); + } + constructor(e) { + if (super(e), e.parser.TokenBuilder instanceof _S) + this.indentationTokenBuilder = e.parser.TokenBuilder; + else + throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder"); + } + tokenize(e, t = _h) { + const r = super.tokenize(e), n = r.report; + t?.mode === "full" && r.tokens.push(...n.remainingDedents), n.remainingDedents = []; + const { indentTokenType: a, dedentTokenType: s } = this.indentationTokenBuilder, o = a.tokenTypeIdx, l = s.tokenTypeIdx, c = [], u = r.tokens.length - 1; + for (let f = 0; f < u; f++) { + const d = r.tokens[f], h = r.tokens[f + 1]; + if (d.tokenTypeIdx === o && h.tokenTypeIdx === l) { + f++; + continue; + } + c.push(d); + } + return u >= 0 && c.push(r.tokens[u]), r.tokens = c, r; + } +}, Lh = {}; +Br(Lh, { + AstUtils: () => nd, + BiMap: () => gl, + Cancellation: () => pe, + ContextCache: () => Cc, + CstUtils: () => ed, + DONE_RESULT: () => Ve, + Deferred: () => Cr, + Disposable: () => Cn, + DisposableCache: () => _c, + DocumentCache: () => Vb, + EMPTY_STREAM: () => Pa, + ErrorWithLocation: () => kl, + GrammarUtils: () => Od, + MultiMap: () => br, + OperationCancelled: () => Jt, + Reduction: () => ss, + RegExpUtils: () => Dd, + SimpleCache: () => Th, + StreamImpl: () => Xt, + TreeStreamImpl: () => Oa, + URI: () => ft, + UriTrie: () => yh, + UriUtils: () => Ye, + WorkspaceCache: () => Rh, + assertCondition: () => Ld, + assertUnreachable: () => Kr, + delayNextTick: () => Ac, + interruptAndCheck: () => Ge, + isOperationCancelled: () => Xn, + loadGrammarFromJson: () => Tt, + setInterruptionPeriod: () => hh, + startCancelableOperation: () => Ec, + stream: () => oe +}); +Rl(Lh, bc); +var CS = class { + static { + i(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 []; + } +}, It = { + fileSystemProvider: /* @__PURE__ */ i(() => new CS(), "fileSystemProvider") +}, oF = { + Grammar: /* @__PURE__ */ i(() => { + }, "Grammar"), + LanguageMetaData: /* @__PURE__ */ i(() => ({ + caseInsensitive: !1, + fileExtensions: [".langium"], + languageId: "langium" + }), "LanguageMetaData") +}, lF = { + AstReflection: /* @__PURE__ */ i(() => new _d(), "AstReflection") +}; +function bS() { + const e = Ae(vt(It), lF), t = Ae(yt({ shared: e }), oF); + return e.ServiceRegistry.register(t), t; +} +i(bS, "createMinimalGrammarServices"); +function Tt(e) { + const t = bS(), r = t.serializer.JsonSerializer.deserialize(e); + return t.shared.workspace.LangiumDocumentFactory.fromModel(r, ft.parse(`memory:/${r.name ?? "grammar"}.langium`)), r; +} +i(Tt, "loadGrammarFromJson"); +Rl(Lg, Lh); +var cF = class { + static { + i(this, "DefaultLangiumProfiler"); + } + constructor(e) { + this.activeCategories = /* @__PURE__ */ new Set(), this.allCategories = /* @__PURE__ */ new Set(["validating", "parsing", "linking"]), this.activeCategories = e ?? new Set(this.allCategories), this.records = new br(); + } + 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 SS((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()}`); + const r = []; + for (const s of t.entries.keys()) { + const o = t.entries.get(s), l = o.reduce((c, u) => c + u); + r.push({ name: `${t.identifier}.${s}`, count: o.length, duration: l }); + } + const n = t.duration - r.map((s) => s.duration).reduce((s, o) => s + o, 0); + r.push({ name: t.identifier, count: 1, duration: n }), r.sort((s, o) => o.duration - s.duration); + function a(s) { + return Math.round(100 * s) / 100; + } + return i(a, "Round"), console.table(r.map((s) => ({ Element: s.name, Count: s.count, "Self %": a(100 * s.duration / t.duration), "Time (ms)": a(s.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]); + } +}, SS = class { + static { + i(this, "ProfilingTask"); + } + constructor(e, t) { + this.stack = [], this.entries = new br(), 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(", ")}.`); + const e = { + identifier: this.identifier, + date: /* @__PURE__ */ 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) { + const 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.`); + const r = performance.now() - t.start; + this.stack.at(-1) !== void 0 && (this.stack[this.stack.length - 1].content += r); + const n = r - t.content; + this.entries.add(e, n); + } +}, Gf; +((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: /\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/ + }; +})(Gf || (Gf = {})); +var jf; +((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]*/ + }; +})(jf || (jf = {})); +var Uf; +((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])?/ + }; +})(Uf || (Uf = {})); +var zf; +((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]*/ + }; +})(zf || (zf = {})); +var Bf; +((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]*/ + }; +})(Bf || (Bf = {})); +var Kf; +((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]*/ + }; +})(Kf || (Kf = {})); +var qf; +((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]*/ + }; +})(qf || (qf = {})); +var Wf; +((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: /"[^"]*"|'[^']*'/ + }; +})(Wf || (Wf = {})); +var Vf; +((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]*|)/, + INDENTATION: /[ \t]{1,}/, + WS: /[ \t]+/, + ML_COMMENT: /\%\%[^\n]*/, + NL: /\r?\n/, + STRING2: /"[^"]*"|'[^']*'/ + }; +})(Vf || (Vf = {})); +var Hf; +((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]*/ + }; +})(Hf || (Hf = {})); +({ + ...Gf.Terminals, + ...jf.Terminals, + ...Uf.Terminals, + ...zf.Terminals, + ...Bf.Terminals, + ...Kf.Terminals, + ...qf.Terminals, + ...Vf.Terminals, + ...Wf.Terminals, + ...Hf.Terminals +}); +var Js = { + $type: "Accelerator", + name: "name", + x: "x", + y: "y" +}, Zs = { + $type: "Anchor", + evolution: "evolution", + name: "name", + visibility: "visibility" +}, bi = { + $type: "Annotation", + number: "number", + text: "text", + x: "x", + y: "y" +}, jc = { + $type: "Annotations", + x: "x", + y: "y" +}, dr = { + $type: "Architecture", + accDescr: "accDescr", + accTitle: "accTitle", + edges: "edges", + groups: "groups", + junctions: "junctions", + services: "services", + title: "title" +}; +function uF(e) { + return Rt.isInstance(e, dr.$type); +} +i(uF, "isArchitecture"); +var Qs = { + $type: "Axis", + label: "label", + name: "name" +}, ko = { + $type: "Branch", + name: "name", + order: "order" +}; +function fF(e) { + return Rt.isInstance(e, ko.$type); +} +i(fF, "isBranch"); +var og = { + $type: "Checkout", + branch: "branch" +}, eo = { + $type: "CherryPicking", + id: "id", + parent: "parent", + tags: "tags" +}, Uc = { + $type: "ClassDefStatement", + className: "className", + styleText: "styleText" +}, ma = { + $type: "Commit", + id: "id", + message: "message", + tags: "tags", + type: "type" +}; +function dF(e) { + return Rt.isInstance(e, ma.$type); +} +i(dF, "isCommit"); +var to = { + $type: "Common", + accDescr: "accDescr", + accTitle: "accTitle", + title: "title" +}, Yr = { + $type: "Component", + decorator: "decorator", + evolution: "evolution", + inertia: "inertia", + label: "label", + name: "name", + visibility: "visibility" +}, ro = { + $type: "Curve", + entries: "entries", + label: "label", + name: "name" +}, no = { + $type: "Deaccelerator", + name: "name", + x: "x", + y: "y" +}, lg = { + $type: "Decorator", + strategy: "strategy" +}, ia = { + $type: "Direction", + accDescr: "accDescr", + accTitle: "accTitle", + dir: "dir", + statements: "statements", + title: "title" +}, qt = { + $type: "Edge", + lhsDir: "lhsDir", + lhsGroup: "lhsGroup", + lhsId: "lhsId", + lhsInto: "lhsInto", + rhsDir: "rhsDir", + rhsGroup: "rhsGroup", + rhsId: "rhsId", + rhsInto: "rhsInto", + title: "title" +}, sa = { + $type: "EmDataEntity", + dataBlockValue: "dataBlockValue", + dataType: "dataType", + name: "name" +}, Xr = { + $type: "EmFrame" +}, Si = { + $type: "EmGwt", + givenStatements: "givenStatements", + sourceFrame: "sourceFrame", + thenStatements: "thenStatements", + whenStatements: "whenStatements" +}, cg = { + $type: "EmGwtStatement", + entityIdentifier: "entityIdentifier" +}, zc = { + $type: "EmModelEntity", + name: "name" +}; +function pF(e) { + return e === "rmo" || e === "readmodel" || e === "ui" || e === "cmd" || e === "command" || e === "evt" || e === "event" || e === "pcr" || e === "processor"; +} +i(pF, "isEmModelEntityType"); +var ao = { + $type: "EmNoteEntity", + dataBlockValue: "dataBlockValue", + dataType: "dataType", + sourceFrame: "sourceFrame" +}, pr = { + $type: "EmResetFrame", + dataInlineValue: "dataInlineValue", + dataReference: "dataReference", + dataType: "dataType", + entityIdentifier: "entityIdentifier", + modelEntityType: "modelEntityType", + name: "name", + sourceFrames: "sourceFrames" +}; +function hF(e) { + return Rt.isInstance(e, pr.$type); +} +i(hF, "isEmResetFrame"); +var Pr = { + $type: "EmTimeFrame", + dataInlineValue: "dataInlineValue", + dataReference: "dataReference", + dataType: "dataType", + entityIdentifier: "entityIdentifier", + modelEntityType: "modelEntityType", + name: "name", + sourceFrames: "sourceFrames" +}, Bc = { + $type: "Entry", + axis: "axis", + value: "value" +}, cr = { + $type: "EventModel", + accDescr: "accDescr", + accTitle: "accTitle", + dataEntities: "dataEntities", + frames: "frames", + gwtEntities: "gwtEntities", + modelEntities: "modelEntities", + noteEntities: "noteEntities", + title: "title" +}, ug = { + $type: "Evolution", + stages: "stages" +}, io = { + $type: "EvolutionStage", + boundary: "boundary", + name: "name", + secondName: "secondName" +}, Kc = { + $type: "Evolve", + component: "component", + target: "target" +}, sn = { + $type: "GitGraph", + accDescr: "accDescr", + accTitle: "accTitle", + statements: "statements", + title: "title" +}; +function mF(e) { + return Rt.isInstance(e, sn.$type); +} +i(mF, "isGitGraph"); +var wi = { + $type: "Group", + icon: "icon", + id: "id", + in: "in", + title: "title" +}, Bi = { + $type: "Info", + accDescr: "accDescr", + accTitle: "accTitle", + title: "title" +}; +function gF(e) { + return Rt.isInstance(e, Bi.$type); +} +i(gF, "isInfo"); +var Ii = { + $type: "Item", + classSelector: "classSelector", + name: "name" +}, qc = { + $type: "Junction", + id: "id", + in: "in" +}, Ni = { + $type: "Label", + negX: "negX", + negY: "negY", + offsetX: "offsetX", + offsetY: "offsetY" +}, so = { + $type: "Leaf", + classSelector: "classSelector", + name: "name", + value: "value" +}, Jr = { + $type: "Link", + arrow: "arrow", + from: "from", + fromPort: "fromPort", + linkLabel: "linkLabel", + to: "to", + toPort: "toPort" +}, ga = { + $type: "Merge", + branch: "branch", + id: "id", + tags: "tags", + type: "type" +}; +function yF(e) { + return Rt.isInstance(e, ga.$type); +} +i(yF, "isMerge"); +var oo = { + $type: "Note", + evolution: "evolution", + text: "text", + visibility: "visibility" +}, Wc = { + $type: "Option", + name: "name", + value: "value" +}, ya = { + $type: "Packet", + accDescr: "accDescr", + accTitle: "accTitle", + blocks: "blocks", + title: "title" +}; +function vF(e) { + return Rt.isInstance(e, ya.$type); +} +i(vF, "isPacket"); +var va = { + $type: "PacketBlock", + bits: "bits", + end: "end", + label: "label", + start: "start" +}; +function TF(e) { + return Rt.isInstance(e, va.$type); +} +i(TF, "isPacketBlock"); +var on = { + $type: "Pie", + accDescr: "accDescr", + accTitle: "accTitle", + sections: "sections", + showData: "showData", + title: "title" +}; +function RF(e) { + return Rt.isInstance(e, on.$type); +} +i(RF, "isPie"); +var Po = { + $type: "PieSection", + label: "label", + value: "value" +}; +function $F(e) { + return Rt.isInstance(e, Po.$type); +} +i($F, "isPieSection"); +var Vc = { + $type: "Pipeline", + components: "components", + parent: "parent" +}, lo = { + $type: "PipelineComponent", + evolution: "evolution", + label: "label", + name: "name" +}, Zr = { + $type: "Radar", + accDescr: "accDescr", + accTitle: "accTitle", + axes: "axes", + curves: "curves", + options: "options", + title: "title" +}, Hc = { + $type: "Section", + classSelector: "classSelector", + name: "name" +}, oa = { + $type: "Service", + icon: "icon", + iconText: "iconText", + id: "id", + in: "in", + title: "title" +}, Yc = { + $type: "Size", + height: "height", + width: "width" +}, la = { + $type: "Statement" +}, Ta = { + $type: "Treemap", + accDescr: "accDescr", + accTitle: "accTitle", + title: "title", + TreemapRows: "TreemapRows" +}; +function AF(e) { + return Rt.isInstance(e, Ta.$type); +} +i(AF, "isTreemap"); +var Xc = { + $type: "TreemapRow", + indent: "indent", + item: "item" +}, Jc = { + $type: "TreeNode", + indent: "indent", + name: "name" +}, ki = { + $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 EF(e) { + return Rt.isInstance(e, Ue.$type); +} +i(EF, "isWardley"); +var wS = class extends rd { + constructor() { + super(...arguments), this.types = { + Accelerator: { + name: Js.$type, + properties: { + name: { + name: Js.name + }, + x: { + name: Js.x + }, + y: { + name: Js.y + } + }, + superTypes: [] + }, + Anchor: { + name: Zs.$type, + properties: { + evolution: { + name: Zs.evolution + }, + name: { + name: Zs.name + }, + visibility: { + name: Zs.visibility + } + }, + superTypes: [] + }, + Annotation: { + name: bi.$type, + properties: { + number: { + name: bi.number + }, + text: { + name: bi.text + }, + x: { + name: bi.x + }, + y: { + name: bi.y + } + }, + superTypes: [] + }, + Annotations: { + name: jc.$type, + properties: { + x: { + name: jc.x + }, + y: { + name: jc.y + } + }, + superTypes: [] + }, + Architecture: { + name: dr.$type, + properties: { + accDescr: { + name: dr.accDescr + }, + accTitle: { + name: dr.accTitle + }, + edges: { + name: dr.edges, + defaultValue: [] + }, + groups: { + name: dr.groups, + defaultValue: [] + }, + junctions: { + name: dr.junctions, + defaultValue: [] + }, + services: { + name: dr.services, + defaultValue: [] + }, + title: { + name: dr.title + } + }, + superTypes: [] + }, + Axis: { + name: Qs.$type, + properties: { + label: { + name: Qs.label + }, + name: { + name: Qs.name + } + }, + superTypes: [] + }, + Branch: { + name: ko.$type, + properties: { + name: { + name: ko.name + }, + order: { + name: ko.order + } + }, + superTypes: [la.$type] + }, + Checkout: { + name: og.$type, + properties: { + branch: { + name: og.branch + } + }, + superTypes: [la.$type] + }, + CherryPicking: { + name: eo.$type, + properties: { + id: { + name: eo.id + }, + parent: { + name: eo.parent + }, + tags: { + name: eo.tags, + defaultValue: [] + } + }, + superTypes: [la.$type] + }, + ClassDefStatement: { + name: Uc.$type, + properties: { + className: { + name: Uc.className + }, + styleText: { + name: Uc.styleText + } + }, + superTypes: [] + }, + Commit: { + name: ma.$type, + properties: { + id: { + name: ma.id + }, + message: { + name: ma.message + }, + tags: { + name: ma.tags, + defaultValue: [] + }, + type: { + name: ma.type + } + }, + superTypes: [la.$type] + }, + Common: { + name: to.$type, + properties: { + accDescr: { + name: to.accDescr + }, + accTitle: { + name: to.accTitle + }, + title: { + name: to.title + } + }, + superTypes: [] + }, + Component: { + name: Yr.$type, + properties: { + decorator: { + name: Yr.decorator + }, + evolution: { + name: Yr.evolution + }, + inertia: { + name: Yr.inertia, + defaultValue: !1 + }, + label: { + name: Yr.label + }, + name: { + name: Yr.name + }, + visibility: { + name: Yr.visibility + } + }, + superTypes: [] + }, + Curve: { + name: ro.$type, + properties: { + entries: { + name: ro.entries, + defaultValue: [] + }, + label: { + name: ro.label + }, + name: { + name: ro.name + } + }, + superTypes: [] + }, + Deaccelerator: { + name: no.$type, + properties: { + name: { + name: no.name + }, + x: { + name: no.x + }, + y: { + name: no.y + } + }, + superTypes: [] + }, + Decorator: { + name: lg.$type, + properties: { + strategy: { + name: lg.strategy + } + }, + superTypes: [] + }, + Direction: { + name: ia.$type, + properties: { + accDescr: { + name: ia.accDescr + }, + accTitle: { + name: ia.accTitle + }, + dir: { + name: ia.dir + }, + statements: { + name: ia.statements, + defaultValue: [] + }, + title: { + name: ia.title + } + }, + superTypes: [sn.$type] + }, + Edge: { + name: qt.$type, + properties: { + lhsDir: { + name: qt.lhsDir + }, + lhsGroup: { + name: qt.lhsGroup, + defaultValue: !1 + }, + lhsId: { + name: qt.lhsId + }, + lhsInto: { + name: qt.lhsInto, + defaultValue: !1 + }, + rhsDir: { + name: qt.rhsDir + }, + rhsGroup: { + name: qt.rhsGroup, + defaultValue: !1 + }, + rhsId: { + name: qt.rhsId + }, + rhsInto: { + name: qt.rhsInto, + defaultValue: !1 + }, + title: { + name: qt.title + } + }, + superTypes: [] + }, + EmDataEntity: { + name: sa.$type, + properties: { + dataBlockValue: { + name: sa.dataBlockValue + }, + dataType: { + name: sa.dataType + }, + name: { + name: sa.name + } + }, + superTypes: [] + }, + EmFrame: { + name: Xr.$type, + properties: {}, + superTypes: [] + }, + EmGwt: { + name: Si.$type, + properties: { + givenStatements: { + name: Si.givenStatements, + defaultValue: [] + }, + sourceFrame: { + name: Si.sourceFrame, + referenceType: Xr.$type + }, + thenStatements: { + name: Si.thenStatements, + defaultValue: [] + }, + whenStatements: { + name: Si.whenStatements, + defaultValue: [] + } + }, + superTypes: [] + }, + EmGwtStatement: { + name: cg.$type, + properties: { + entityIdentifier: { + name: cg.entityIdentifier, + referenceType: zc.$type + } + }, + superTypes: [] + }, + EmModelEntity: { + name: zc.$type, + properties: { + name: { + name: zc.name + } + }, + superTypes: [] + }, + EmNoteEntity: { + name: ao.$type, + properties: { + dataBlockValue: { + name: ao.dataBlockValue + }, + dataType: { + name: ao.dataType + }, + sourceFrame: { + name: ao.sourceFrame, + referenceType: Xr.$type + } + }, + superTypes: [] + }, + EmResetFrame: { + name: pr.$type, + properties: { + dataInlineValue: { + name: pr.dataInlineValue + }, + dataReference: { + name: pr.dataReference, + referenceType: sa.$type + }, + dataType: { + name: pr.dataType + }, + entityIdentifier: { + name: pr.entityIdentifier + }, + modelEntityType: { + name: pr.modelEntityType + }, + name: { + name: pr.name + }, + sourceFrames: { + name: pr.sourceFrames, + defaultValue: [], + referenceType: Xr.$type + } + }, + superTypes: [Xr.$type] + }, + EmTimeFrame: { + name: Pr.$type, + properties: { + dataInlineValue: { + name: Pr.dataInlineValue + }, + dataReference: { + name: Pr.dataReference, + referenceType: sa.$type + }, + dataType: { + name: Pr.dataType + }, + entityIdentifier: { + name: Pr.entityIdentifier + }, + modelEntityType: { + name: Pr.modelEntityType + }, + name: { + name: Pr.name + }, + sourceFrames: { + name: Pr.sourceFrames, + defaultValue: [], + referenceType: Xr.$type + } + }, + superTypes: [Xr.$type] + }, + Entry: { + name: Bc.$type, + properties: { + axis: { + name: Bc.axis, + referenceType: Qs.$type + }, + value: { + name: Bc.value + } + }, + superTypes: [] + }, + EventModel: { + name: cr.$type, + properties: { + accDescr: { + name: cr.accDescr + }, + accTitle: { + name: cr.accTitle + }, + dataEntities: { + name: cr.dataEntities, + defaultValue: [] + }, + frames: { + name: cr.frames, + defaultValue: [] + }, + gwtEntities: { + name: cr.gwtEntities, + defaultValue: [] + }, + modelEntities: { + name: cr.modelEntities, + defaultValue: [] + }, + noteEntities: { + name: cr.noteEntities, + defaultValue: [] + }, + title: { + name: cr.title + } + }, + superTypes: [] + }, + Evolution: { + name: ug.$type, + properties: { + stages: { + name: ug.stages, + defaultValue: [] + } + }, + superTypes: [] + }, + EvolutionStage: { + name: io.$type, + properties: { + boundary: { + name: io.boundary + }, + name: { + name: io.name + }, + secondName: { + name: io.secondName + } + }, + superTypes: [] + }, + Evolve: { + name: Kc.$type, + properties: { + component: { + name: Kc.component + }, + target: { + name: Kc.target + } + }, + superTypes: [] + }, + GitGraph: { + name: sn.$type, + properties: { + accDescr: { + name: sn.accDescr + }, + accTitle: { + name: sn.accTitle + }, + statements: { + name: sn.statements, + defaultValue: [] + }, + title: { + name: sn.title + } + }, + superTypes: [] + }, + Group: { + name: wi.$type, + properties: { + icon: { + name: wi.icon + }, + id: { + name: wi.id + }, + in: { + name: wi.in + }, + title: { + name: wi.title + } + }, + superTypes: [] + }, + Info: { + name: Bi.$type, + properties: { + accDescr: { + name: Bi.accDescr + }, + accTitle: { + name: Bi.accTitle + }, + title: { + name: Bi.title + } + }, + superTypes: [] + }, + Item: { + name: Ii.$type, + properties: { + classSelector: { + name: Ii.classSelector + }, + name: { + name: Ii.name + } + }, + superTypes: [] + }, + Junction: { + name: qc.$type, + properties: { + id: { + name: qc.id + }, + in: { + name: qc.in + } + }, + superTypes: [] + }, + Label: { + name: Ni.$type, + properties: { + negX: { + name: Ni.negX, + defaultValue: !1 + }, + negY: { + name: Ni.negY, + defaultValue: !1 + }, + offsetX: { + name: Ni.offsetX + }, + offsetY: { + name: Ni.offsetY + } + }, + superTypes: [] + }, + Leaf: { + name: so.$type, + properties: { + classSelector: { + name: so.classSelector + }, + name: { + name: so.name + }, + value: { + name: so.value + } + }, + superTypes: [Ii.$type] + }, + Link: { + name: Jr.$type, + properties: { + arrow: { + name: Jr.arrow + }, + from: { + name: Jr.from + }, + fromPort: { + name: Jr.fromPort + }, + linkLabel: { + name: Jr.linkLabel + }, + to: { + name: Jr.to + }, + toPort: { + name: Jr.toPort + } + }, + superTypes: [] + }, + Merge: { + name: ga.$type, + properties: { + branch: { + name: ga.branch + }, + id: { + name: ga.id + }, + tags: { + name: ga.tags, + defaultValue: [] + }, + type: { + name: ga.type + } + }, + superTypes: [la.$type] + }, + Note: { + name: oo.$type, + properties: { + evolution: { + name: oo.evolution + }, + text: { + name: oo.text + }, + visibility: { + name: oo.visibility + } + }, + superTypes: [] + }, + Option: { + name: Wc.$type, + properties: { + name: { + name: Wc.name + }, + value: { + name: Wc.value, + defaultValue: !1 + } + }, + superTypes: [] + }, + Packet: { + name: ya.$type, + properties: { + accDescr: { + name: ya.accDescr + }, + accTitle: { + name: ya.accTitle + }, + blocks: { + name: ya.blocks, + defaultValue: [] + }, + title: { + name: ya.title + } + }, + superTypes: [] + }, + PacketBlock: { + name: va.$type, + properties: { + bits: { + name: va.bits + }, + end: { + name: va.end + }, + label: { + name: va.label + }, + start: { + name: va.start + } + }, + superTypes: [] + }, + Pie: { + name: on.$type, + properties: { + accDescr: { + name: on.accDescr + }, + accTitle: { + name: on.accTitle + }, + sections: { + name: on.sections, + defaultValue: [] + }, + showData: { + name: on.showData, + defaultValue: !1 + }, + title: { + name: on.title + } + }, + superTypes: [] + }, + PieSection: { + name: Po.$type, + properties: { + label: { + name: Po.label + }, + value: { + name: Po.value + } + }, + superTypes: [] + }, + Pipeline: { + name: Vc.$type, + properties: { + components: { + name: Vc.components, + defaultValue: [] + }, + parent: { + name: Vc.parent + } + }, + superTypes: [] + }, + PipelineComponent: { + name: lo.$type, + properties: { + evolution: { + name: lo.evolution + }, + label: { + name: lo.label + }, + name: { + name: lo.name + } + }, + superTypes: [] + }, + Radar: { + name: Zr.$type, + properties: { + accDescr: { + name: Zr.accDescr + }, + accTitle: { + name: Zr.accTitle + }, + axes: { + name: Zr.axes, + defaultValue: [] + }, + curves: { + name: Zr.curves, + defaultValue: [] + }, + options: { + name: Zr.options, + defaultValue: [] + }, + title: { + name: Zr.title + } + }, + superTypes: [] + }, + Section: { + name: Hc.$type, + properties: { + classSelector: { + name: Hc.classSelector + }, + name: { + name: Hc.name + } + }, + superTypes: [Ii.$type] + }, + Service: { + name: oa.$type, + properties: { + icon: { + name: oa.icon + }, + iconText: { + name: oa.iconText + }, + id: { + name: oa.id + }, + in: { + name: oa.in + }, + title: { + name: oa.title + } + }, + superTypes: [] + }, + Size: { + name: Yc.$type, + properties: { + height: { + name: Yc.height + }, + width: { + name: Yc.width + } + }, + superTypes: [] + }, + Statement: { + name: la.$type, + properties: {}, + superTypes: [] + }, + TreeNode: { + name: Jc.$type, + properties: { + indent: { + name: Jc.indent + }, + name: { + name: Jc.name + } + }, + superTypes: [] + }, + TreeView: { + name: ki.$type, + properties: { + accDescr: { + name: ki.accDescr + }, + accTitle: { + name: ki.accTitle + }, + nodes: { + name: ki.nodes, + defaultValue: [] + }, + title: { + name: ki.title + } + }, + superTypes: [] + }, + Treemap: { + name: Ta.$type, + properties: { + accDescr: { + name: Ta.accDescr + }, + accTitle: { + name: Ta.accTitle + }, + title: { + name: Ta.title + }, + TreemapRows: { + name: Ta.TreemapRows, + defaultValue: [] + } + }, + superTypes: [] + }, + TreemapRow: { + name: Xc.$type, + properties: { + indent: { + name: Xc.indent + }, + item: { + name: Xc.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 { + i(this, "MermaidAstReflection"); + } +}, Rt = new wS(), fg, _F = /* @__PURE__ */ i(() => fg ?? (fg = Tt(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"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":[]}}]},"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@9"},"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@9"},"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@11"},"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@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"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@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@23"},"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@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"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@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"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":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)), "ArchitectureGrammarGrammar"), dg, CF = /* @__PURE__ */ i(() => dg ?? (dg = Tt('{"$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"), pg, bF = /* @__PURE__ */ i(() => pg ?? (pg = Tt(`{"$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"), hg, SF = /* @__PURE__ */ i(() => hg ?? (hg = Tt(`{"$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"), mg, wF = /* @__PURE__ */ i(() => mg ?? (mg = Tt(`{"$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"), gg, IF = /* @__PURE__ */ i(() => gg ?? (gg = Tt(`{"$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"), yg, NF = /* @__PURE__ */ i(() => yg ?? (yg = Tt(`{"$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, kF = /* @__PURE__ */ i(() => vg ?? (vg = Tt(`{"$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"), Tg, PF = /* @__PURE__ */ i(() => Tg ?? (Tg = Tt(`{"$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@9"},"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":"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":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@9"}}},"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 * Converted from treemap 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 * treeView declaration.\\n */"}`)), "TreeViewGrammarGrammar"), Rg, OF = /* @__PURE__ */ i(() => Rg ?? (Rg = Tt(`{"$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"), LF = { + languageId: "architecture", + fileExtensions: [".mmd", ".mermaid"], + caseInsensitive: !1, + mode: "production" +}, DF = { + languageId: "eventmodeling", + fileExtensions: [".mmd", ".mermaid"], + caseInsensitive: !1, + mode: "production" +}, MF = { + languageId: "gitGraph", + fileExtensions: [".mmd", ".mermaid"], + caseInsensitive: !1, + mode: "production" +}, xF = { + languageId: "info", + fileExtensions: [".mmd", ".mermaid"], + caseInsensitive: !1, + mode: "production" +}, FF = { + languageId: "packet", + fileExtensions: [".mmd", ".mermaid"], + caseInsensitive: !1, + mode: "production" +}, GF = { + languageId: "pie", + fileExtensions: [".mmd", ".mermaid"], + caseInsensitive: !1, + mode: "production" +}, jF = { + languageId: "radar", + fileExtensions: [".mmd", ".mermaid"], + caseInsensitive: !1, + mode: "production" +}, UF = { + languageId: "treemap", + fileExtensions: [".mmd", ".mermaid"], + caseInsensitive: !1, + mode: "production" +}, zF = { + languageId: "treeView", + fileExtensions: [".mmd", ".mermaid"], + caseInsensitive: !1, + mode: "production" +}, BF = { + languageId: "wardley", + fileExtensions: [".mmd", ".mermaid"], + caseInsensitive: !1, + mode: "production" +}, ir = { + AstReflection: /* @__PURE__ */ i(() => new wS(), "AstReflection") +}, KF = { + Grammar: /* @__PURE__ */ i(() => _F(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ i(() => LF, "LanguageMetaData"), + parser: {} +}, qF = { + Grammar: /* @__PURE__ */ i(() => CF(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ i(() => DF, "LanguageMetaData"), + parser: {} +}, WF = { + Grammar: /* @__PURE__ */ i(() => bF(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ i(() => MF, "LanguageMetaData"), + parser: {} +}, VF = { + Grammar: /* @__PURE__ */ i(() => SF(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ i(() => xF, "LanguageMetaData"), + parser: {} +}, HF = { + Grammar: /* @__PURE__ */ i(() => wF(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ i(() => FF, "LanguageMetaData"), + parser: {} +}, YF = { + Grammar: /* @__PURE__ */ i(() => IF(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ i(() => GF, "LanguageMetaData"), + parser: {} +}, XF = { + Grammar: /* @__PURE__ */ i(() => NF(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ i(() => jF, "LanguageMetaData"), + parser: {} +}, JF = { + Grammar: /* @__PURE__ */ i(() => kF(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ i(() => UF, "LanguageMetaData"), + parser: {} +}, ZF = { + Grammar: /* @__PURE__ */ i(() => PF(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ i(() => zF, "LanguageMetaData"), + parser: {} +}, QF = { + Grammar: /* @__PURE__ */ i(() => OF(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ i(() => BF, "LanguageMetaData"), + parser: {} +}, eG = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, tG = /accTitle[\t ]*:([^\n\r]*)/, rG = /title([\t ][^\n\r]*|)/, nG = { + ACC_DESCR: eG, + ACC_TITLE: tG, + TITLE: rG +}, ei = class extends ph { + static { + i(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) { + const n = nG[e.name]; + if (n === void 0) + return; + const 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, ` +`); + } + } +}, Bs = class extends ei { + static { + i(this, "CommonValueConverter"); + } + runCustomConverter(e, t, r) { + } +}, sr = class extends $c { + static { + i(this, "AbstractMermaidTokenBuilder"); + } + constructor(e) { + super(), this.keywords = new Set(e); + } + buildKeywordTokens(e, t, r) { + const 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; + } +}; +(class extends sr { + static { + i(this, "CommonTokenBuilder"); + } +}); +/*! 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 + *) +*/ +var aG = class extends sr { + static { + i(this, "RadarTokenBuilder"); + } + constructor() { + super(["radar-beta"]); + } +}, IS = { + parser: { + TokenBuilder: /* @__PURE__ */ i(() => new aG(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ i(() => new Bs(), "ValueConverter") + } +}; +function NS(e = It) { + const t = Ae( + vt(e), + ir + ), r = Ae( + yt({ shared: t }), + XF, + IS + ); + return t.ServiceRegistry.register(r), { shared: t, Radar: r }; +} +i(NS, "createRadarServices"); +var iG = class extends sr { + static { + i(this, "TreemapTokenBuilder"); + } + constructor() { + super(["treemap"]); + } +}, sG = /classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/, oG = class extends ei { + static { + i(this, "TreemapValueConverter"); + } + runCustomConverter(e, t, r) { + if (e.name === "NUMBER2") + return parseFloat(t.replace(/,/g, "")); + if (e.name === "SEPARATOR") + return t.substring(1, t.length - 1); + if (e.name === "STRING2") + return t.substring(1, t.length - 1); + if (e.name === "INDENTATION") + return t.length; + if (e.name === "ClassDef") { + if (typeof t != "string") + return t; + const n = sG.exec(t); + if (n) + return { + $type: "ClassDefStatement", + className: n[1], + styleText: n[2] || void 0 + }; + } + } +}; +function kS(e) { + const t = e.validation.TreemapValidator, r = e.validation.ValidationRegistry; + if (r) { + const n = { + Treemap: t.checkSingleRoot.bind(t) + // Remove unused validation for TreemapRow + }; + r.register(n, t); + } +} +i(kS, "registerValidationChecks"); +var lG = class { + static { + i(this, "TreemapValidator"); + } + /** + * Validates that a treemap has only one root node. + * A root node is defined as a node that has no indentation. + */ + checkSingleRoot(e, t) { + let r; + for (const n of e.TreemapRows) + n.item && (r === void 0 && // Check if this is a root node (no indentation) + n.indent === void 0 ? r = 0 : n.indent === void 0 ? t("error", "Multiple root nodes are not allowed in a treemap.", { + node: n, + property: "item" + }) : r !== void 0 && r >= parseInt(n.indent, 10) && t("error", "Multiple root nodes are not allowed in a treemap.", { + node: n, + property: "item" + })); + } +}, PS = { + parser: { + TokenBuilder: /* @__PURE__ */ i(() => new iG(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ i(() => new oG(), "ValueConverter") + }, + validation: { + TreemapValidator: /* @__PURE__ */ i(() => new lG(), "TreemapValidator") + } +}; +function OS(e = It) { + const t = Ae( + vt(e), + ir + ), r = Ae( + yt({ shared: t }), + JF, + PS + ); + return t.ServiceRegistry.register(r), kS(r), { shared: t, Treemap: r }; +} +i(OS, "createTreemapServices"); +var cG = class extends ei { + static { + i(this, "WardleyValueConverter"); + } + runCustomConverter(e, t, r) { + switch (e.name.toUpperCase()) { + case "LINK_LABEL": + return t.substring(1).trim(); + default: + return; + } + } +}, LS = { + parser: { + ValueConverter: /* @__PURE__ */ i(() => new cG(), "ValueConverter") + } +}; +function DS(e = It) { + const t = Ae( + vt(e), + ir + ), r = Ae( + yt({ shared: t }), + QF, + LS + ); + return t.ServiceRegistry.register(r), { shared: t, Wardley: r }; +} +i(DS, "createWardleyServices"); +var uG = class extends sr { + static { + i(this, "GitGraphTokenBuilder"); + } + constructor() { + super(["gitGraph"]); + } +}, MS = { + parser: { + TokenBuilder: /* @__PURE__ */ i(() => new uG(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ i(() => new Bs(), "ValueConverter") + } +}; +function xS(e = It) { + const t = Ae( + vt(e), + ir + ), r = Ae( + yt({ shared: t }), + WF, + MS + ); + return t.ServiceRegistry.register(r), { shared: t, GitGraph: r }; +} +i(xS, "createGitGraphServices"); +var fG = class extends sr { + static { + i(this, "InfoTokenBuilder"); + } + constructor() { + super(["info", "showInfo"]); + } +}, FS = { + parser: { + TokenBuilder: /* @__PURE__ */ i(() => new fG(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ i(() => new Bs(), "ValueConverter") + } +}; +function GS(e = It) { + const t = Ae( + vt(e), + ir + ), r = Ae( + yt({ shared: t }), + VF, + FS + ); + return t.ServiceRegistry.register(r), { shared: t, Info: r }; +} +i(GS, "createInfoServices"); +var dG = class extends sr { + static { + i(this, "PacketTokenBuilder"); + } + constructor() { + super(["packet"]); + } +}, jS = { + parser: { + TokenBuilder: /* @__PURE__ */ i(() => new dG(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ i(() => new Bs(), "ValueConverter") + } +}; +function US(e = It) { + const t = Ae( + vt(e), + ir + ), r = Ae( + yt({ shared: t }), + HF, + jS + ); + return t.ServiceRegistry.register(r), { shared: t, Packet: r }; +} +i(US, "createPacketServices"); +var pG = class extends sr { + static { + i(this, "PieTokenBuilder"); + } + constructor() { + super(["pie", "showData"]); + } +}, hG = class extends ei { + static { + i(this, "PieValueConverter"); + } + runCustomConverter(e, t, r) { + if (e.name === "PIE_SECTION_LABEL") + return t.replace(/"/g, "").trim(); + } +}, zS = { + parser: { + TokenBuilder: /* @__PURE__ */ i(() => new pG(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ i(() => new hG(), "ValueConverter") + } +}; +function BS(e = It) { + const t = Ae( + vt(e), + ir + ), r = Ae( + yt({ shared: t }), + YF, + zS + ); + return t.ServiceRegistry.register(r), { shared: t, Pie: r }; +} +i(BS, "createPieServices"); +var mG = class extends ei { + static { + i(this, "TreeViewValueConverter"); + } + runCustomConverter(e, t, r) { + if (e.name === "INDENTATION") + return t?.length || 0; + if (e.name === "STRING2") + return t.substring(1, t.length - 1); + } +}, gG = class extends sr { + static { + i(this, "TreeViewTokenBuilder"); + } + constructor() { + super(["treeView-beta"]); + } +}, KS = { + parser: { + TokenBuilder: /* @__PURE__ */ i(() => new gG(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ i(() => new mG(), "ValueConverter") + } +}; +function qS(e = It) { + const t = Ae( + vt(e), + ir + ), r = Ae( + yt({ shared: t }), + ZF, + KS + ); + return t.ServiceRegistry.register(r), { shared: t, TreeView: r }; +} +i(qS, "createTreeViewServices"); +var yG = class extends sr { + static { + i(this, "ArchitectureTokenBuilder"); + } + constructor() { + super(["architecture"]); + } +}, vG = class extends ei { + static { + i(this, "ArchitectureValueConverter"); + } + runCustomConverter(e, t, r) { + if (e.name === "ARCH_ICON") + return t.replace(/[()]/g, "").trim(); + if (e.name === "ARCH_TEXT_ICON") + return t.replace(/["()]/g, ""); + if (e.name === "ARCH_TITLE") { + let n = t.replace(/^\[|]$/g, "").trim(); + return (n.startsWith('"') && n.endsWith('"') || n.startsWith("'") && n.endsWith("'")) && (n = n.slice(1, -1), n = n.replace(/\\"/g, '"').replace(/\\'/g, "'")), n.trim(); + } + } +}, WS = { + parser: { + TokenBuilder: /* @__PURE__ */ i(() => new yG(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ i(() => new vG(), "ValueConverter") + } +}; +function VS(e = It) { + const t = Ae( + vt(e), + ir + ), r = Ae( + yt({ shared: t }), + KF, + WS + ); + return t.ServiceRegistry.register(r), { shared: t, Architecture: r }; +} +i(VS, "createArchitectureServices"); +var TG = class extends sr { + static { + i(this, "EventModelingTokenBuilder"); + } + constructor() { + super(["eventmodeling"]); + } +}, $g = /* @__PURE__ */ new Set(["cmd", "command"]), Ag = /* @__PURE__ */ new Set(["evt", "event"]), Zc = /* @__PURE__ */ new Set(["rmo", "readmodel"]), Eg = /* @__PURE__ */ new Set(["pcr", "processor"]), _g = /* @__PURE__ */ new Set(["ui"]); +function HS(e) { + const t = e.validation.EventModelingValidator, r = e.validation.ValidationRegistry; + if (r) { + const n = { + EmTimeFrame: t.checkSourceFrameTypes.bind(t), + EmResetFrame: t.checkSourceFrameTypes.bind(t) + }; + r.register(n, t); + } +} +i(HS, "registerValidationChecks"); +var RG = class { + static { + i(this, "EventModelingValidator"); + } + checkSourceFrameTypes(e, t) { + e.sourceFrames.length !== 0 && ($g.has(e.modelEntityType) ? this.validateSources( + e, + /* @__PURE__ */ new Set([..._g, ...Eg]), + "command", + "ui or processor", + t + ) : Ag.has(e.modelEntityType) ? this.validateSources(e, $g, "event", "command", t) : Zc.has(e.modelEntityType) ? this.validateSources(e, Ag, "read model", "event", t) : Eg.has(e.modelEntityType) ? this.validateSources(e, Zc, "processor", "read model", t) : _g.has(e.modelEntityType) && this.validateSources(e, Zc, "ui", "read model", t)); + } + validateSources(e, t, r, n, a) { + for (const s of e.sourceFrames) { + const o = s.ref; + o !== void 0 && !t.has(o.modelEntityType) && a( + "error", + `A ${r} can only receive input from a ${n}, not from '${o.modelEntityType}'.`, + { node: e, property: "sourceFrames" } + ); + } + } +}, YS = { + parser: { + TokenBuilder: /* @__PURE__ */ i(() => new TG(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ i(() => new Bs(), "ValueConverter") + }, + validation: { + EventModelingValidator: /* @__PURE__ */ i(() => new RG(), "EventModelingValidator") + } +}; +function XS(e = It) { + const t = Ae( + vt(e), + ir + ), r = Ae( + yt({ shared: t }), + qF, + YS + ); + return t.ServiceRegistry.register(r), HS(r), { shared: t, EventModel: r }; +} +i(XS, "createEventModelingServices"); +var At = {}, $G = { + info: /* @__PURE__ */ i(async () => { + const { createInfoServices: e } = await Promise.resolve().then(() => _G), t = e().Info.parser.LangiumParser; + At.info = t; + }, "info"), + packet: /* @__PURE__ */ i(async () => { + const { createPacketServices: e } = await Promise.resolve().then(() => CG), t = e().Packet.parser.LangiumParser; + At.packet = t; + }, "packet"), + pie: /* @__PURE__ */ i(async () => { + const { createPieServices: e } = await Promise.resolve().then(() => bG), t = e().Pie.parser.LangiumParser; + At.pie = t; + }, "pie"), + treeView: /* @__PURE__ */ i(async () => { + const { createTreeViewServices: e } = await Promise.resolve().then(() => SG), t = e().TreeView.parser.LangiumParser; + At.treeView = t; + }, "treeView"), + architecture: /* @__PURE__ */ i(async () => { + const { createArchitectureServices: e } = await Promise.resolve().then(() => wG), t = e().Architecture.parser.LangiumParser; + At.architecture = t; + }, "architecture"), + gitGraph: /* @__PURE__ */ i(async () => { + const { createGitGraphServices: e } = await Promise.resolve().then(() => IG), t = e().GitGraph.parser.LangiumParser; + At.gitGraph = t; + }, "gitGraph"), + eventmodeling: /* @__PURE__ */ i(async () => { + const { createEventModelingServices: e } = await Promise.resolve().then(() => NG), t = e().EventModel.parser.LangiumParser; + At.eventmodeling = t; + }, "eventmodeling"), + radar: /* @__PURE__ */ i(async () => { + const { createRadarServices: e } = await Promise.resolve().then(() => kG), t = e().Radar.parser.LangiumParser; + At.radar = t; + }, "radar"), + treemap: /* @__PURE__ */ i(async () => { + const { createTreemapServices: e } = await Promise.resolve().then(() => PG), t = e().Treemap.parser.LangiumParser; + At.treemap = t; + }, "treemap"), + wardley: /* @__PURE__ */ i(async () => { + const { createWardleyServices: e } = await Promise.resolve().then(() => OG), t = e().Wardley.parser.LangiumParser; + At.wardley = t; + }, "wardley") +}; +async function AG(e, t) { + const r = $G[e]; + if (!r) + throw new Error(`Unknown diagram type: ${e}`); + At[e] || await r(); + const a = At[e].parse(t); + if (a.lexerErrors.length > 0 || a.parserErrors.length > 0) + throw new EG(a); + return a.value; +} +i(AG, "parse"); +var EG = class extends Error { + constructor(e) { + const t = e.lexerErrors.map((n) => { + const a = n.line !== void 0 && !isNaN(n.line) ? n.line : "?", s = n.column !== void 0 && !isNaN(n.column) ? n.column : "?"; + return `Lexer error on line ${a}, column ${s}: ${n.message}`; + }).join(` +`), r = e.parserErrors.map((n) => { + const a = n.token.startLine !== void 0 && !isNaN(n.token.startLine) ? n.token.startLine : "?", s = n.token.startColumn !== void 0 && !isNaN(n.token.startColumn) ? n.token.startColumn : "?"; + return `Parse error on line ${a}, column ${s}: ${n.message}`; + }).join(` +`); + super(`Parsing failed: ${t} ${r}`), this.result = e; + } + static { + i(this, "MermaidParseError"); + } +}; +const _G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + InfoModule: FS, + createInfoServices: GS +}, Symbol.toStringTag, { value: "Module" })), CG = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + PacketModule: jS, + createPacketServices: US +}, Symbol.toStringTag, { value: "Module" })), bG = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + PieModule: zS, + createPieServices: BS +}, Symbol.toStringTag, { value: "Module" })), SG = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + TreeViewModule: KS, + createTreeViewServices: qS +}, Symbol.toStringTag, { value: "Module" })), wG = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + ArchitectureModule: WS, + createArchitectureServices: VS +}, Symbol.toStringTag, { value: "Module" })), IG = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + GitGraphModule: MS, + createGitGraphServices: xS +}, Symbol.toStringTag, { value: "Module" })), NG = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + EventModelingModule: YS, + createEventModelingServices: XS +}, Symbol.toStringTag, { value: "Module" })), kG = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + RadarModule: IS, + createRadarServices: NS +}, Symbol.toStringTag, { value: "Module" })), PG = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + TreemapModule: PS, + createTreemapServices: OS +}, Symbol.toStringTag, { value: "Module" })), OG = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + WardleyModule: LS, + createWardleyServices: DS +}, Symbol.toStringTag, { value: "Module" })); +export { + hF as i, + AG as p +}; diff --git a/src/wc-content-kit/public/mermaid/wardley-RL74JXVD-DAdv8G0H.js b/src/wc-content-kit/public/mermaid/wardley-RL74JXVD-DAdv8G0H.js deleted file mode 100644 index 737f600..0000000 --- a/src/wc-content-kit/public/mermaid/wardley-RL74JXVD-DAdv8G0H.js +++ /dev/null @@ -1,6 +0,0 @@ -import { k as r } from "./mermaid-parser.core-DQ6c91Zg.js"; -import { W as t } from "./mermaid-parser.core-DQ6c91Zg.js"; -export { - t as WardleyModule, - r as createWardleyServices -}; diff --git a/src/wc-content-kit/public/mermaid/wardleyDiagram-NUSXRM2D-CZun_nrn.js b/src/wc-content-kit/public/mermaid/wardleyDiagram-NUSXRM2D-CZun_nrn.js deleted file mode 100644 index 32eabc0..0000000 --- a/src/wc-content-kit/public/mermaid/wardleyDiagram-NUSXRM2D-CZun_nrn.js +++ /dev/null @@ -1,597 +0,0 @@ -import { s as $t, g as Mt, q as Ct, p as Nt, a as zt, b as Lt, _ as y, l as K, I as Xt, e as At, z as Et, c as q, i as Tt } from "./mermaid.core-Jw3znkh4.js"; -import { p as Yt } from "./chunk-4BX2VUAB-OP5xfQzz.js"; -import { p as Bt } from "./mermaid-parser.core-DQ6c91Zg.js"; -var G = /* @__PURE__ */ y((e, s) => { - const a = e <= 1 ? e * 100 : e; - if (a < 0 || a > 100) - throw new Error( - `${s} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}` - ); - return a; -}, "toPercent"), E = /* @__PURE__ */ y((e, s, a) => ({ - x: G(s, `${a} evolution`), - y: G(e, `${a} visibility`) -}), "toCoordinates"), J = /* @__PURE__ */ y((e) => { - if (e) { - if (e === "+<>") - return "bidirectional"; - if (e === "+<") - return "backward"; - if (e === "+>") - return "forward"; - } -}, "getFlowFromPort"), Rt = /* @__PURE__ */ y((e) => { - if (!e?.startsWith("+")) - return {}; - const a = /^\+'([^']*)'/.exec(e)?.[1]; - return e.includes("<>") ? { flow: "bidirectional", label: a } : e.includes("<") ? { flow: "backward", label: a } : e.includes(">") ? { flow: "forward", label: a } : { label: a }; -}, "extractFlowFromArrow"), Ft = /* @__PURE__ */ y((e, s) => { - if (Yt(e, s), e.size && s.setSize(e.size.width, e.size.height), e.evolution) { - const a = e.evolution.stages.map((o) => o.secondName ? `${o.name.trim()} / ${o.secondName.trim()}` : o.name.trim()), x = e.evolution.stages.filter((o) => o.boundary !== void 0).map((o) => o.boundary); - s.updateAxes({ stages: a, stageBoundaries: x }); - } - if (e.anchors.forEach((a) => { - const x = E(a.visibility, a.evolution, `Anchor "${a.name}"`); - s.addNode(a.name, a.name, x.x, x.y, "anchor"); - }), e.components.forEach((a) => { - const x = E( - a.visibility, - a.evolution, - `Component "${a.name}"` - ), o = a.label ? (a.label.negX ? -1 : 1) * a.label.offsetX : void 0, d = a.label ? (a.label.negY ? -1 : 1) * a.label.offsetY : void 0, m = a.decorator?.strategy; - s.addNode( - a.name, - a.name, - x.x, - x.y, - "component", - o, - d, - a.inertia, - m - ); - }), e.notes.forEach((a) => { - const x = E(a.visibility, a.evolution, `Note "${a.text}"`); - s.addNote(a.text, x.x, x.y); - }), e.pipelines.forEach((a) => { - const x = s.getNode(a.parent); - if (!x || typeof x.y != "number") - throw new Error( - `Pipeline "${a.parent}" must reference an existing component with coordinates.` - ); - const o = x.y; - s.startPipeline(a.parent), a.components.forEach((d) => { - const m = `${a.parent}_${d.name}`, M = 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, I = G(d.evolution, `Pipeline component "${d.name}" evolution`); - s.addNode( - m, - d.name, - I, - o, - "pipeline-component", - M, - g - ), s.addPipelineComponent(a.parent, m); - }); - }), e.links.forEach((a) => { - const x = !!a.arrow && (a.arrow.includes("-.->") || a.arrow.includes(".-.")); - let o = J(a.fromPort) ?? J(a.toPort); - const { flow: d, label: m } = Rt(a.arrow); - !o && d && (o = d); - const M = a.linkLabel, g = m ?? M; - s.addLink(a.from, a.to, x, g, o); - }), e.evolves.forEach((a) => { - const x = s.getNode(a.component); - if (x?.y !== void 0) { - const o = G(a.target, `Evolve target for "${a.component}"`); - s.addTrend(a.component, o, x.y); - } - }), e.annotations.length > 0) { - const a = e.annotations[0], x = E(a.x, a.y, "Annotations box"); - s.setAnnotationsBox(x.x, x.y); - } - e.annotation.forEach((a) => { - const x = E(a.x, a.y, `Annotation ${a.number}`); - s.addAnnotation(a.number, [{ x: x.x, y: x.y }], a.text); - }), e.accelerators.forEach((a) => { - const x = E(a.x, a.y, `Accelerator "${a.name}"`); - s.addAccelerator(a.name, x.x, x.y); - }), e.deaccelerators.forEach((a) => { - const x = E( - a.x, - a.y, - `Deaccelerator "${a.name}"` - ); - s.addDeaccelerator(a.name, x.x, x.y); - }); -}, "populateDb"), Q = { - parser: { - // @ts-expect-error - WardleyDB is not assignable to DiagramDB - yy: void 0 - }, - parse: /* @__PURE__ */ y(async (e) => { - const s = await Bt("wardley", e); - K.debug(s); - const a = Q.parser?.yy; - if (!a || typeof a.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." - ); - Ft(s, a); - }, "parse") -}, It = class { - constructor() { - this.nodes = /* @__PURE__ */ new Map(), this.links = [], this.trends = /* @__PURE__ */ new Map(), this.pipelines = /* @__PURE__ */ new Map(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.axes = {}; - } - static { - y(this, "WardleyBuilder"); - } - addNode(e) { - const s = this.nodes.get(e.id) ?? { id: e.id, label: e.label }, a = { - ...s, - ...e, - className: e.className ?? s.className, - labelOffsetX: e.labelOffsetX ?? s.labelOffsetX, - labelOffsetY: e.labelOffsetY ?? s.labelOffsetY - }; - this.nodes.set(e.id, a); - } - addLink(e) { - this.links.push(e); - } - addTrend(e) { - this.trends.set(e.nodeId, e); - } - startPipeline(e) { - this.pipelines.set(e, { nodeId: e, componentIds: [] }); - const s = this.nodes.get(e); - s && (s.isPipelineParent = !0); - } - addPipelineComponent(e, s) { - const a = this.pipelines.get(e); - a && a.componentIds.push(s); - const x = this.nodes.get(s); - 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, s) { - this.annotationsBox = { x: e, y: s }; - } - setAxes(e) { - this.axes = { - ...this.axes, - ...e - }; - } - setSize(e, s) { - this.size = { width: e, height: s }; - } - getNode(e) { - return this.nodes.get(e); - } - build() { - const e = []; - for (const s of this.nodes.values()) { - if (typeof s.x != "number" || typeof s.y != "number") - throw new Error(`Node "${s.label}" is missing coordinates`); - e.push(s); - } - 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; - } -}, P = new It(); -function $(e) { - const s = q(); - return Tt(e.trim(), s); -} -y($, "textSanitizer"); -function tt() { - return q()["wardley-beta"]; -} -y(tt, "getConfig"); -function et(e, s, a, x, o, d, m, M, g) { - P.addNode({ - id: e, - label: $(s), - x: a, - y: x, - className: o, - labelOffsetX: d, - labelOffsetY: m, - inertia: M, - sourceStrategy: g - }); -} -y(et, "addNode"); -function at(e, s, a = !1, x, o) { - P.addLink({ source: e, target: s, dashed: a, label: x, flow: o }); -} -y(at, "addLink"); -function rt(e, s, a) { - P.addTrend({ nodeId: e, targetX: s, targetY: a }); -} -y(rt, "addTrend"); -function ot(e, s, a) { - P.addAnnotation({ - number: e, - coordinates: s, - text: a ? $(a) : void 0 - }); -} -y(ot, "addAnnotation"); -function st(e, s, a) { - P.addNote({ - text: $(e), - x: s, - y: a - }); -} -y(st, "addNote"); -function nt(e, s, a) { - P.addAccelerator({ - name: $(e), - x: s, - y: a - }); -} -y(nt, "addAccelerator"); -function it(e, s, a) { - P.addDeaccelerator({ - name: $(e), - x: s, - y: a - }); -} -y(it, "addDeaccelerator"); -function dt(e, s) { - P.setAnnotationsBox(e, s); -} -y(dt, "setAnnotationsBox"); -function lt(e, s) { - P.setSize(e, s); -} -y(lt, "setSize"); -function ct(e) { - P.startPipeline(e); -} -y(ct, "startPipeline"); -function pt(e, s) { - P.addPipelineComponent(e, s); -} -y(pt, "addPipelineComponent"); -function ht(e) { - const s = {}; - e.xLabel && (s.xLabel = $(e.xLabel)), e.yLabel && (s.yLabel = $(e.yLabel)), e.stages && (s.stages = e.stages.map((a) => $(a))), e.stageBoundaries && (s.stageBoundaries = e.stageBoundaries), P.setAxes(s); -} -y(ht, "updateAxes"); -function ft(e) { - return P.getNode(e); -} -y(ft, "getNode"); -function xt() { - return P.build(); -} -y(xt, "getWardleyData"); -function gt() { - P.clear(), Et(); -} -y(gt, "clear"); -var Ot = { - getConfig: tt, - addNode: et, - addLink: at, - addTrend: rt, - addAnnotation: ot, - addNote: st, - addAccelerator: nt, - addDeaccelerator: it, - setAnnotationsBox: dt, - setSize: lt, - startPipeline: ct, - addPipelineComponent: pt, - updateAxes: ht, - getNode: ft, - getWardleyData: xt, - clear: gt, - setAccTitle: Lt, - getAccTitle: zt, - setDiagramTitle: Nt, - getDiagramTitle: Ct, - getAccDescription: Mt, - setAccDescription: $t -}, Wt = ["Genesis", "Custom Built", "Product", "Commodity"], Dt = /* @__PURE__ */ y(() => { - const { themeVariables: e } = q(); - 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"), Gt = /* @__PURE__ */ y(() => { - const e = q()["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"), qt = /* @__PURE__ */ y((e, s, a, x) => { - K.debug(`Rendering Wardley map -` + e); - const o = Gt(), d = Dt(), m = o.nodeRadius * 1.6, M = x.db, g = M.getWardleyData(), I = M.getDiagramTitle(), C = g.size?.width ?? o.width, b = g.size?.height ?? o.height, Y = Xt(s); - Y.selectAll("*").remove(), At(Y, b, C, o.useMaxWidth), Y.attr("viewBox", `0 0 ${C} ${b}`); - const v = Y.append("g").attr("class", "wardley-map"), H = Y.append("defs"); - H.append("marker").attr("id", `arrow-${s}`).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"), H.append("marker").attr("id", `link-arrow-end-${s}`).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"), H.append("marker").attr("id", `link-arrow-start-${s}`).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", C).attr("height", b).attr("fill", d.backgroundColor); - const B = C - o.padding * 2, R = b - o.padding * 2; - I && v.append("text").attr("class", "wardley-title").attr("x", C / 2).attr("y", o.padding / 2).attr("fill", d.axisTextColor).attr("font-size", o.axisFontSize * 1.05).attr("font-weight", "bold").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(I); - const L = /* @__PURE__ */ y((t) => o.padding + t / 100 * B, "projectX"), X = /* @__PURE__ */ y((t) => b - o.padding - t / 100 * R, "projectY"), O = v.append("g").attr("class", "wardley-axes"); - O.append("line").attr("x1", o.padding).attr("x2", C - o.padding).attr("y1", b - o.padding).attr("y2", b - o.padding).attr("stroke", d.axisColor).attr("stroke-width", 1), O.append("line").attr("x1", o.padding).attr("x2", o.padding).attr("y1", o.padding).attr("y2", b - o.padding).attr("stroke", d.axisColor).attr("stroke-width", 1); - const ut = g.axes.xLabel ?? "Evolution", yt = g.axes.yLabel ?? "Visibility"; - O.append("text").attr("class", "wardley-axis-label wardley-axis-label-x").attr("x", o.padding + B / 2).attr("y", b - o.padding / 4).attr("fill", d.axisTextColor).attr("font-size", o.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").text(ut), O.append("text").attr("class", "wardley-axis-label wardley-axis-label-y").attr("x", o.padding / 3).attr("y", o.padding + R / 2).attr("fill", d.axisTextColor).attr("font-size", o.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").attr( - "transform", - `rotate(-90 ${o.padding / 3} ${o.padding + R / 2})` - ).text(yt); - const F = g.axes.stages && g.axes.stages.length > 0 ? g.axes.stages : Wt; - if (F.length > 0) { - const t = v.append("g").attr("class", "wardley-stages"), n = g.axes.stageBoundaries, r = []; - if (n && n.length === F.length) { - let i = 0; - n.forEach((p) => { - r.push({ start: i, end: p }), i = p; - }); - } else { - const i = 1 / F.length; - F.forEach((p, l) => { - r.push({ - start: l * i, - end: (l + 1) * i - }); - }); - } - F.forEach((i, p) => { - const l = r[p], h = o.padding + l.start * B, f = o.padding + l.end * B, u = (h + f) / 2; - p > 0 && t.append("line").attr("x1", h).attr("x2", h).attr("y1", o.padding).attr("y2", b - o.padding).attr("stroke", "#000").attr("stroke-width", 1).attr("stroke-dasharray", "5 5").attr("opacity", 0.8), t.append("text").attr("class", "wardley-stage-label").attr("x", u).attr("y", b - o.padding / 1.5).attr("fill", d.axisTextColor).attr("font-size", o.axisFontSize - 2).attr("text-anchor", "middle").text(i); - }); - } - if (o.showGrid) { - const t = v.append("g").attr("class", "wardley-grid"); - for (let n = 1; n < 4; n++) { - const r = n / 4, i = o.padding + B * r; - t.append("line").attr("x1", i).attr("x2", i).attr("y1", o.padding).attr("y2", b - o.padding).attr("stroke", d.gridColor).attr("stroke-dasharray", "2 6"), t.append("line").attr("x1", o.padding).attr("x2", C - o.padding).attr("y1", b - o.padding - R * r).attr("y2", b - o.padding - R * r).attr("stroke", d.gridColor).attr("stroke-dasharray", "2 6"); - } - } - const c = /* @__PURE__ */ new Map(); - if (g.nodes.forEach((t) => { - c.set(t.id, { - x: L(t.x), - y: X(t.y), - node: t - }); - }), g.pipelines.length > 0) { - const t = v.append("g").attr("class", "wardley-pipelines"), n = v.append("g").attr("class", "wardley-pipeline-links"); - g.pipelines.forEach((r) => { - if (r.componentIds.length === 0) - return; - const i = r.componentIds.map((f) => ({ id: f, pos: c.get(f), node: g.nodes.find((u) => u.id === f) })).filter((f) => f.pos && f.node).sort((f, u) => f.node.x - u.node.x); - for (let f = 0; f < i.length - 1; f++) { - const u = i[f], w = i[f + 1]; - n.append("line").attr("class", "wardley-pipeline-evolution-link").attr("x1", u.pos.x).attr("y1", u.pos.y).attr("x2", w.pos.x).attr("y2", w.pos.y).attr("stroke", d.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4"); - } - let p = 1 / 0, l = -1 / 0, h = 0; - if (r.componentIds.forEach((f) => { - const u = c.get(f); - u && (p = Math.min(p, u.x), l = Math.max(l, u.x), h = u.y); - }), p !== 1 / 0 && l !== -1 / 0) { - const u = o.nodeRadius * 4, w = h - u / 2, S = c.get(r.nodeId); - if (S) { - const z = (p + l) / 2; - S.x = z, S.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", u).attr("fill", "none").attr("stroke", d.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4); - } - }); - } - const V = v.append("g").attr("class", "wardley-links"), Z = /* @__PURE__ */ new Map(); - g.pipelines.forEach((t) => { - Z.set(t.nodeId, new Set(t.componentIds)); - }); - const U = g.links.filter((t) => !(!c.has(t.source) || !c.has(t.target) || Z.get(t.target)?.has(t.source))); - V.selectAll("line").data(U).enter().append("line").attr("class", (t) => `wardley-link${t.dashed ? " wardley-link--dashed" : ""}`).attr("x1", (t) => { - const n = c.get(t.source), r = c.get(t.target), p = g.nodes.find((u) => u.id === t.source).isPipelineParent ? m / Math.sqrt(2) : o.nodeRadius, l = r.x - n.x, h = r.y - n.y, f = Math.sqrt(l * l + h * h); - return n.x + l / f * p; - }).attr("y1", (t) => { - const n = c.get(t.source), r = c.get(t.target), p = g.nodes.find((u) => u.id === t.source).isPipelineParent ? m / Math.sqrt(2) : o.nodeRadius, l = r.x - n.x, h = r.y - n.y, f = Math.sqrt(l * l + h * h); - return n.y + h / f * p; - }).attr("x2", (t) => { - const n = c.get(t.source), r = c.get(t.target), p = g.nodes.find((u) => u.id === t.target).isPipelineParent ? m / Math.sqrt(2) : o.nodeRadius, l = n.x - r.x, h = n.y - r.y, f = Math.sqrt(l * l + h * h); - return r.x + l / f * p; - }).attr("y2", (t) => { - const n = c.get(t.source), r = c.get(t.target), p = g.nodes.find((u) => u.id === t.target).isPipelineParent ? m / Math.sqrt(2) : o.nodeRadius, l = n.x - r.x, h = n.y - r.y, f = Math.sqrt(l * l + h * h); - return r.y + h / f * 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-${s})` : null).attr("marker-start", (t) => t.flow === "backward" || t.flow === "bidirectional" ? `url(#link-arrow-start-${s})` : null), V.selectAll("text").data(U.filter((t) => t.label)).enter().append("text").attr("class", "wardley-link-label").attr("x", (t) => { - const n = c.get(t.source), r = c.get(t.target), i = (n.x + r.x) / 2, p = r.y - n.y, l = r.x - n.x, h = Math.sqrt(l * l + p * p), f = 8, u = p / h; - return i + u * f; - }).attr("y", (t) => { - const n = c.get(t.source), r = c.get(t.target), i = (n.y + r.y) / 2, p = r.x - n.x, l = r.y - n.y, h = Math.sqrt(p * p + l * l), f = 8, u = -p / h; - return i + u * f; - }).attr("fill", d.axisTextColor).attr("font-size", o.labelFontSize).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", (t) => { - const n = c.get(t.source), r = c.get(t.target), i = (n.x + r.x) / 2, p = (n.y + r.y) / 2, l = r.x - n.x, h = r.y - n.y, f = Math.sqrt(l * l + h * h), u = 8, w = h / f, S = -l / f, z = i + w * u, W = p + S * u; - let T = Math.atan2(h, l) * 180 / Math.PI; - return (T > 90 || T < -90) && (T += 180), `rotate(${T} ${z} ${W})`; - }).text((t) => t.label); - const mt = v.append("g").attr("class", "wardley-trends"), wt = g.trends.map((t) => { - const n = c.get(t.nodeId); - if (!n) - return null; - const r = L(t.targetX), i = X(t.targetY), p = r - n.x, l = i - n.y, h = Math.sqrt(p * p + l * l), f = o.nodeRadius + 2, u = h > f ? r - p / h * f : r, w = h > f ? i - l / h * f : i; - return { - origin: n, - targetX: r, - targetY: i, - adjustedX2: u, - adjustedY2: w - }; - }).filter((t) => t !== null); - mt.selectAll("line").data(wt).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-${s})`); - const N = 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(" ") - ); - N.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", o.nodeRadius * 2).attr("fill", "#666").attr("stroke", d.componentStroke).attr("stroke-width", 1), N.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", o.nodeRadius * 2).attr("fill", "#ccc").attr("stroke", d.componentStroke).attr("stroke-width", 1), N.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", o.nodeRadius * 2).attr("fill", "#eee").attr("stroke", "#000").attr("stroke-width", 1); - const A = N.filter((t) => t.sourceStrategy === "market"); - A.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", o.nodeRadius * 2).attr("fill", "white").attr("stroke", d.componentStroke).attr("stroke-width", 1), N.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", o.nodeRadius).attr("fill", d.componentFill).attr("stroke", d.componentStroke).attr("stroke-width", 1); - const j = o.nodeRadius * 0.7, k = o.nodeRadius * 1.2; - if (A.append("line").attr("class", "wardley-market-line").attr("x1", (t) => c.get(t.id).x).attr("y1", (t) => c.get(t.id).y - k).attr("x2", (t) => c.get(t.id).x - k * Math.cos(Math.PI / 6)).attr("y2", (t) => c.get(t.id).y + k * Math.sin(Math.PI / 6)).attr("stroke", d.componentStroke).attr("stroke-width", 1), A.append("line").attr("class", "wardley-market-line").attr("x1", (t) => c.get(t.id).x - k * Math.cos(Math.PI / 6)).attr("y1", (t) => c.get(t.id).y + k * Math.sin(Math.PI / 6)).attr("x2", (t) => c.get(t.id).x + k * Math.cos(Math.PI / 6)).attr("y2", (t) => c.get(t.id).y + k * Math.sin(Math.PI / 6)).attr("stroke", d.componentStroke).attr("stroke-width", 1), A.append("line").attr("class", "wardley-market-line").attr("x1", (t) => c.get(t.id).x + k * Math.cos(Math.PI / 6)).attr("y1", (t) => c.get(t.id).y + k * Math.sin(Math.PI / 6)).attr("x2", (t) => c.get(t.id).x).attr("y2", (t) => c.get(t.id).y - k).attr("stroke", d.componentStroke).attr("stroke-width", 1), A.append("circle").attr("class", "wardley-market-dot").attr("cx", (t) => c.get(t.id).x).attr("cy", (t) => c.get(t.id).y - k).attr("r", j).attr("fill", "white").attr("stroke", d.componentStroke).attr("stroke-width", 2), A.append("circle").attr("class", "wardley-market-dot").attr("cx", (t) => c.get(t.id).x - k * Math.cos(Math.PI / 6)).attr("cy", (t) => c.get(t.id).y + k * Math.sin(Math.PI / 6)).attr("r", j).attr("fill", "white").attr("stroke", d.componentStroke).attr("stroke-width", 2), A.append("circle").attr("class", "wardley-market-dot").attr("cx", (t) => c.get(t.id).x + k * Math.cos(Math.PI / 6)).attr("cy", (t) => c.get(t.id).y + k * Math.sin(Math.PI / 6)).attr("r", j).attr("fill", "white").attr("stroke", d.componentStroke).attr("stroke-width", 2), N.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), N.filter((t) => t.inertia === !0).append("line").attr("class", "wardley-inertia").attr("x1", (t) => { - const n = c.get(t.id); - let r = t.isPipelineParent ? m / 2 + 15 : o.nodeRadius + 15; - return t.sourceStrategy && (r += o.nodeRadius + 10), n.x + r; - }).attr("y1", (t) => { - const n = c.get(t.id), r = t.isPipelineParent ? m : o.nodeRadius * 2; - return n.y - r / 2; - }).attr("x2", (t) => { - const n = c.get(t.id); - let r = t.isPipelineParent ? m / 2 + 15 : o.nodeRadius + 15; - return t.sourceStrategy && (r += o.nodeRadius + 10), n.x + r; - }).attr("y2", (t) => { - const n = c.get(t.id), r = t.isPipelineParent ? m : o.nodeRadius * 2; - return n.y + r / 2; - }).attr("stroke", d.componentStroke).attr("stroke-width", 6), N.append("text").attr("x", (t) => { - const n = c.get(t.id); - if (t.className === "anchor") - return t.labelOffsetX !== void 0 ? n.x + t.labelOffsetX : n.x; - let r = o.nodeLabelOffset; - t.sourceStrategy && t.labelOffsetX === void 0 && (r += 10); - const i = t.labelOffsetX ?? r; - return n.x + i; - }).attr("y", (t) => { - const n = c.get(t.id); - if (t.className === "anchor") - return t.labelOffsetY !== void 0 ? n.y + t.labelOffsetY : n.y - 3; - let r = -o.nodeLabelOffset; - t.sourceStrategy && t.labelOffsetY === void 0 && (r -= 10); - const i = t.labelOffsetY ?? r; - return n.y + i; - }).attr("class", "wardley-node-label").attr("fill", (t) => t.className === "evolved" ? d.evolutionStroke : t.className === "anchor" ? "#000" : d.componentLabelColor).attr("font-size", o.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) { - const t = v.append("g").attr("class", "wardley-annotations"); - if (g.annotations.forEach((n) => { - const r = n.coordinates.map((i) => ({ - x: L(i.x), - y: X(i.y) - })); - if (r.length > 1) - for (let i = 0; i < r.length - 1; i++) - t.append("line").attr("class", "wardley-annotation-line").attr("x1", r[i].x).attr("y1", r[i].y).attr("x2", r[i + 1].x).attr("y2", r[i + 1].y).attr("stroke", d.axisColor).attr("stroke-width", 1.5).attr("stroke-dasharray", "4 4"); - r.forEach((i) => { - const 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(n.number); - }); - }), g.annotationsBox) { - let n = L(g.annotationsBox.x), r = X(g.annotationsBox.y); - const i = 10, p = 16, l = 11, h = t.append("g").attr("class", "wardley-annotations-box"), f = [...g.annotations].filter((w) => w.text).sort((w, S) => w.number - S.number), u = []; - if (f.forEach((w, S) => { - const z = h.append("text").attr("x", n + i).attr("y", r + i + (S + 1) * p).attr("font-size", l).attr("fill", d.axisTextColor).attr("text-anchor", "start").attr("dominant-baseline", "middle").text(`${w.number}. ${w.text}`); - u.push(z); - }), u.length > 0) { - let w = 0, S = 0; - u.forEach((_) => { - const D = _.node(), vt = D.getComputedTextLength(); - w = Math.max(w, vt); - const St = D.getBBox(); - S = Math.max(S, St.height); - }); - const z = w + i * 2 + 105, W = f.length * p + i * 2 + S / 2, T = o.padding, bt = C - o.padding - z, kt = o.padding, Pt = b - o.padding - W; - n = Math.max(T, Math.min(n, bt)), r = Math.max(kt, Math.min(r, Pt)), u.forEach((_, D) => { - _.attr("x", n + i).attr("y", r + i + (D + 1) * p); - }), h.insert("rect", "text").attr("x", n).attr("y", r).attr("width", z).attr("height", W).attr("fill", "white").attr("stroke", d.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4); - } - } - } - if (g.notes.length > 0) { - const t = v.append("g").attr("class", "wardley-notes"); - g.notes.forEach((n) => { - const r = L(n.x), i = X(n.y); - t.append("text").attr("x", r).attr("y", i).attr("text-anchor", "start").attr("font-size", 11).attr("fill", d.axisTextColor).attr("font-weight", "bold").text(n.text); - }); - } - if (g.accelerators.length > 0) { - const t = v.append("g").attr("class", "wardley-accelerators"); - g.accelerators.forEach((n) => { - const r = L(n.x), i = X(n.y), p = 60, l = 30, h = 20, f = ` - M ${r} ${i - l / 2} - L ${r + p - h} ${i - l / 2} - L ${r + p - h} ${i - l / 2 - 8} - L ${r + p} ${i} - L ${r + p - h} ${i + l / 2 + 8} - L ${r + p - h} ${i + l / 2} - L ${r} ${i + l / 2} - Z - `; - t.append("path").attr("d", f).attr("fill", "white").attr("stroke", d.componentStroke).attr("stroke-width", 1), t.append("text").attr("x", r + 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(n.name); - }); - } - if (g.deaccelerators.length > 0) { - const t = v.append("g").attr("class", "wardley-deaccelerators"); - g.deaccelerators.forEach((n) => { - const r = L(n.x), i = X(n.y), p = 60, l = 30, h = 20, f = ` - M ${r + p} ${i - l / 2} - L ${r + h} ${i - l / 2} - L ${r + h} ${i - l / 2 - 8} - L ${r} ${i} - L ${r + h} ${i + l / 2 + 8} - L ${r + h} ${i + l / 2} - L ${r + p} ${i + l / 2} - Z - `; - t.append("path").attr("d", f).attr("fill", "white").attr("stroke", d.componentStroke).attr("stroke-width", 1), t.append("text").attr("x", r + 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(n.name); - }); - } -}, "draw"), Ht = { - draw: qt -}, Ut = { - parser: Q, - db: Ot, - renderer: Ht, - styles: /* @__PURE__ */ y(() => "", "styles") -}; -export { - Ut as diagram -}; diff --git a/src/wc-content-kit/public/mermaid/wardleyDiagram-YWT4CUSO-Dl6_QOWf.js b/src/wc-content-kit/public/mermaid/wardleyDiagram-YWT4CUSO-Dl6_QOWf.js new file mode 100644 index 0000000..79fdebb --- /dev/null +++ b/src/wc-content-kit/public/mermaid/wardleyDiagram-YWT4CUSO-Dl6_QOWf.js @@ -0,0 +1,678 @@ +import { b0 as St, a1 as Mt, a5 as Nt, b3 as zt, a2 as Lt, b1 as Tt, b as u, ae as At, a3 as Xt, s as U, aD as K, a$ as Et, E as Yt, t as It, a4 as j } from "./mermaid.core-FRDjOodn.js"; +import { p as Bt } from "./chunk-4BX2VUAB-CLXd73Dk.js"; +import { p as Ft } from "./wardley-L42UT6IY-C-B6soca.js"; +var D = /* @__PURE__ */ u((e, n) => { + const 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 = /* @__PURE__ */ u((e, n, r) => ({ + x: D(n, `${r} evolution`), + y: D(e, `${r} visibility`) +}), "toCoordinates"), J = /* @__PURE__ */ u((e) => { + if (e) { + if (e === "+<>") + return "bidirectional"; + if (e === "+<") + return "backward"; + if (e === "+>") + return "forward"; + } +}, "getFlowFromPort"), Rt = /* @__PURE__ */ u((e) => { + if (!e?.startsWith("+")) + return {}; + const 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 = /* @__PURE__ */ u((e, n) => { + if (Bt(e, n), e.size && n.setSize(e.size.width, e.size.height), e.evolution) { + const 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) => { + const x = A(r.visibility, r.evolution, `Anchor "${r.name}"`); + n.addNode(r.name, r.name, x.x, x.y, "anchor"); + }), e.components.forEach((r) => { + const 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, w = r.decorator?.strategy; + n.addNode( + r.name, + r.name, + x.x, + x.y, + "component", + a, + d, + r.inertia, + w + ); + }), e.notes.forEach((r) => { + const x = A(r.visibility, r.evolution, `Note "${r.text}"`); + n.addNote(r.text, x.x, x.y); + }), e.pipelines.forEach((r) => { + const x = n.getNode(r.parent); + if (!x || typeof x.y != "number") + throw new Error( + `Pipeline "${r.parent}" must reference an existing component with coordinates.` + ); + const a = x.y; + n.startPipeline(r.parent), r.components.forEach((d) => { + const w = `${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 = D(d.evolution, `Pipeline component "${d.name}" evolution`); + n.addNode( + w, + d.name, + F, + a, + "pipeline-component", + C, + g + ), n.addPipelineComponent(r.parent, w); + }); + }), e.links.forEach((r) => { + const x = !!r.arrow && (r.arrow.includes("-.->") || r.arrow.includes(".-.")); + let a = J(r.fromPort) ?? J(r.toPort); + const { flow: d, label: w } = Rt(r.arrow); + !a && d && (a = d); + const C = r.linkLabel, g = w ?? C; + n.addLink(n.resolveNodeId(r.from), n.resolveNodeId(r.to), x, g, a); + }), e.evolves.forEach((r) => { + const x = n.getNode(r.component); + if (x?.y !== void 0) { + const a = D(r.target, `Evolve target for "${r.component}"`); + n.addTrend(r.component, a, x.y); + } + }), e.annotations.length > 0) { + const r = e.annotations[0], x = A(r.x, r.y, "Annotations box"); + n.setAnnotationsBox(x.x, x.y); + } + e.annotation.forEach((r) => { + const 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) => { + const x = A(r.x, r.y, `Accelerator "${r.name}"`); + n.addAccelerator(r.name, x.x, x.y); + }), e.deaccelerators.forEach((r) => { + const x = A( + r.x, + r.y, + `Deaccelerator "${r.name}"` + ); + n.addDeaccelerator(r.name, x.x, x.y); + }); +}, "populateDb"), Q = { + parser: { + // @ts-expect-error - WardleyDB is not assignable to DiagramDB + yy: void 0 + }, + parse: /* @__PURE__ */ u(async (e) => { + const n = await Ft("wardley", e); + K.debug(n); + const r = Q.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 = /* @__PURE__ */ new Map(), this.links = [], this.trends = /* @__PURE__ */ new Map(), this.pipelines = /* @__PURE__ */ new Map(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.axes = {}; + } + static { + u(this, "WardleyBuilder"); + } + addNode(e) { + const 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: [] }); + const n = this.nodes.get(e); + n && (n.isPipelineParent = !0); + } + addPipelineComponent(e, n) { + const r = this.pipelines.get(e); + r && r.componentIds.push(n); + const 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); + } + /** + * Resolve a name to a node ID. Tries exact ID match first, + * then falls back to finding a node whose label matches the name + * (handles pipeline components which have synthetic IDs like "Parent_Child"). + */ + resolveNodeId(e) { + if (this.nodes.has(e)) + return e; + for (const [n, r] of this.nodes) + if (r.label === e) + return n; + return e; + } + build() { + const e = []; + for (const 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 tt() { + return j()["wardley-beta"]; +} +u(tt, "getConfig"); +function et(e, n, r, x, a, d, w, C, g) { + k.addNode({ + id: e, + label: n, + x: r, + y: x, + className: a, + labelOffsetX: d, + labelOffsetY: w, + inertia: C, + sourceStrategy: g + }); +} +u(et, "addNode"); +function at(e, n, r = !1, x, a) { + k.addLink({ + source: e, + target: n, + dashed: r, + label: x, + flow: a + }); +} +u(at, "addLink"); +function rt(e, n, r) { + k.addTrend({ nodeId: e, targetX: n, targetY: r }); +} +u(rt, "addTrend"); +function ot(e, n, r) { + k.addAnnotation({ + number: e, + coordinates: n, + text: r + }); +} +u(ot, "addAnnotation"); +function nt(e, n, r) { + k.addNote({ + text: e, + x: n, + y: r + }); +} +u(nt, "addNote"); +function st(e, n, r) { + k.addAccelerator({ + name: e, + x: n, + y: r + }); +} +u(st, "addAccelerator"); +function it(e, n, r) { + k.addDeaccelerator({ + name: e, + x: n, + y: r + }); +} +u(it, "addDeaccelerator"); +function dt(e, n) { + k.setAnnotationsBox(e, n); +} +u(dt, "setAnnotationsBox"); +function lt(e, n) { + k.setSize(e, n); +} +u(lt, "setSize"); +function ct(e) { + k.startPipeline(e); +} +u(ct, "startPipeline"); +function pt(e, n) { + k.addPipelineComponent(e, n); +} +u(pt, "addPipelineComponent"); +function ft(e) { + k.setAxes(e); +} +u(ft, "updateAxes"); +function ht(e) { + return k.getNode(e); +} +u(ht, "getNode"); +function xt(e) { + return k.resolveNodeId(e); +} +u(xt, "resolveNodeId"); +function gt() { + return k.build(); +} +u(gt, "getWardleyData"); +function yt() { + k.clear(), It(); +} +u(yt, "clear"); +var Dt = { + getConfig: tt, + addNode: et, + addLink: at, + addTrend: rt, + addAnnotation: ot, + addNote: nt, + addAccelerator: st, + addDeaccelerator: it, + setAnnotationsBox: dt, + setSize: lt, + startPipeline: ct, + addPipelineComponent: pt, + updateAxes: ft, + getNode: ht, + resolveNodeId: xt, + getWardleyData: gt, + clear: yt, + setAccTitle: Tt, + getAccTitle: Lt, + setDiagramTitle: zt, + getDiagramTitle: Nt, + getAccDescription: Mt, + setAccDescription: St +}, Gt = ["Genesis", "Custom Built", "Product", "Commodity"], qt = /* @__PURE__ */ u(() => { + const { themeVariables: e } = j(); + 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 = /* @__PURE__ */ u(() => { + const e = j()["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 = /* @__PURE__ */ u((e, n, r, x) => { + K.debug(`Rendering Wardley map +` + e); + const a = Ht(), d = qt(), w = 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 = Et(n); + E.selectAll("*").remove(), Yt(E, b, S, a.useMaxWidth), E.attr("viewBox", `0 0 ${S} ${b}`); + const v = E.append("g").attr("class", "wardley-map"), G = E.append("defs"); + G.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"), G.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"), G.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); + const 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); + const z = /* @__PURE__ */ u((t) => a.padding + t / 100 * Y, "projectX"), L = /* @__PURE__ */ 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); + const ut = g.axes.xLabel ?? "Evolution", wt = 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(ut), 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(wt); + const B = g.axes.stages && g.axes.stages.length > 0 ? g.axes.stages : Gt; + if (B.length > 0) { + const 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 { + const i = 1 / B.length; + B.forEach((p, l) => { + o.push({ + start: l * i, + end: (l + 1) * i + }); + }); + } + B.forEach((i, p) => { + const 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", 0.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) { + const t = v.append("g").attr("class", "wardley-grid"); + for (let s = 1; s < 4; s++) { + const 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"); + } + } + const c = /* @__PURE__ */ 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) { + const 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; + const 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 < i.length - 1; h++) { + const y = i[h], m = i[h + 1]; + s.append("line").attr("class", "wardley-pipeline-evolution-link").attr("x1", y.pos.x).attr("y1", y.pos.y).attr("x2", m.pos.x).attr("y2", m.pos.y).attr("stroke", d.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4"); + } + let p = 1 / 0, l = -1 / 0, f = 0; + if (o.componentIds.forEach((h) => { + const 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) { + const y = a.nodeRadius * 4, m = f - y / 2, P = c.get(o.nodeId); + if (P) { + const N = (p + l) / 2; + P.x = N, P.y = m - w / 6; + } + t.append("rect").attr("class", "wardley-pipeline-box").attr("x", p - 15).attr("y", m).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); + } + }); + } + const V = v.append("g").attr("class", "wardley-links"), _ = /* @__PURE__ */ new Map(); + g.pipelines.forEach((t) => { + _.set(t.nodeId, new Set(t.componentIds)); + }); + const Z = g.links.filter((t) => !(!c.has(t.source) || !c.has(t.target) || _.get(t.target)?.has(t.source))); + V.selectAll("line").data(Z).enter().append("line").attr("class", (t) => `wardley-link${t.dashed ? " wardley-link--dashed" : ""}`).attr("x1", (t) => { + const s = c.get(t.source), o = c.get(t.target), p = g.nodes.find((y) => y.id === t.source).isPipelineParent ? w / 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) => { + const s = c.get(t.source), o = c.get(t.target), p = g.nodes.find((y) => y.id === t.source).isPipelineParent ? w / 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) => { + const s = c.get(t.source), o = c.get(t.target), p = g.nodes.find((y) => y.id === t.target).isPipelineParent ? w / 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) => { + const s = c.get(t.source), o = c.get(t.target), p = g.nodes.find((y) => y.id === t.target).isPipelineParent ? w / 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), V.selectAll("text").data(Z.filter((t) => t.label)).enter().append("text").attr("class", "wardley-link-label").attr("x", (t) => { + const 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) => { + const 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) => { + const 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, m = f / h, P = -l / h, N = i + m * y, O = p + P * y; + let X = Math.atan2(f, l) * 180 / Math.PI; + return (X > 90 || X < -90) && (X += 180), `rotate(${X} ${N} ${O})`; + }).text((t) => t.label); + const mt = v.append("g").attr("class", "wardley-trends"), kt = g.trends.map((t) => { + const s = c.get(t.nodeId); + if (!s) + return null; + const 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, m = f > h ? i - l / f * h : i; + return { + origin: s, + targetX: o, + targetY: i, + adjustedX2: y, + adjustedY2: m + }; + }).filter((t) => t !== null); + mt.selectAll("line").data(kt).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})`); + const 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); + const 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); + const q = a.nodeRadius * 0.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", q).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", q).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", q).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 - w / 2).attr("y", (t) => c.get(t.id).y - w / 2).attr("width", w).attr("height", w).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) => { + const s = c.get(t.id); + let o = t.isPipelineParent ? w / 2 + 15 : a.nodeRadius + 15; + return t.sourceStrategy && (o += a.nodeRadius + 10), s.x + o; + }).attr("y1", (t) => { + const s = c.get(t.id), o = t.isPipelineParent ? w : a.nodeRadius * 2; + return s.y - o / 2; + }).attr("x2", (t) => { + const s = c.get(t.id); + let o = t.isPipelineParent ? w / 2 + 15 : a.nodeRadius + 15; + return t.sourceStrategy && (o += a.nodeRadius + 10), s.x + o; + }).attr("y2", (t) => { + const s = c.get(t.id), o = t.isPipelineParent ? w : a.nodeRadius * 2; + return s.y + o / 2; + }).attr("stroke", d.componentStroke).attr("stroke-width", 6), M.append("text").attr("x", (t) => { + const 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); + const i = t.labelOffsetX ?? o; + return s.x + i; + }).attr("y", (t) => { + const 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); + const 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) { + const t = v.append("g").attr("class", "wardley-annotations"); + if (g.annotations.forEach((s) => { + const o = s.coordinates.map((i) => ({ + x: z(i.x), + y: L(i.y) + })); + if (o.length > 1) + for (let i = 0; i < o.length - 1; i++) + t.append("line").attr("class", "wardley-annotation-line").attr("x1", o[i].x).attr("y1", o[i].y).attr("x2", o[i + 1].x).attr("y2", o[i + 1].y).attr("stroke", d.axisColor).attr("stroke-width", 1.5).attr("stroke-dasharray", "4 4"); + o.forEach((i) => { + const 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); + const i = 10, p = 16, l = 11, f = t.append("g").attr("class", "wardley-annotations-box"), h = [...g.annotations].filter((m) => m.text).sort((m, P) => m.number - P.number), y = []; + if (h.forEach((m, P) => { + const 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(`${m.number}. ${m.text}`); + y.push(N); + }), y.length > 0) { + let m = 0, P = 0; + y.forEach((H) => { + const W = H.node(), Pt = W.getComputedTextLength(); + m = Math.max(m, Pt); + const Ct = W.getBBox(); + P = Math.max(P, Ct.height); + }); + const N = m + i * 2 + 105, O = h.length * p + i * 2 + P / 2, X = a.padding, bt = S - a.padding - N, $t = a.padding, vt = b - a.padding - O; + s = Math.max(X, Math.min(s, bt)), o = Math.max($t, Math.min(o, vt)), y.forEach((H, W) => { + H.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) { + const t = v.append("g").attr("class", "wardley-notes"); + g.notes.forEach((s) => { + const 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) { + const t = v.append("g").attr("class", "wardley-accelerators"); + g.accelerators.forEach((s) => { + const 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) { + const t = v.append("g").attr("class", "wardley-deaccelerators"); + g.deaccelerators.forEach((s) => { + const 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 = /* @__PURE__ */ u(({ + wardley: e +} = {}) => { + const n = At(), r = Xt(), x = U(n, r.themeVariables), a = U(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"), Qt = { + parser: Q, + db: Dt, + renderer: Vt, + styles: _t +}; +export { + Qt as diagram +}; diff --git a/src/wc-content-kit/public/mermaid/wippy-meta.json b/src/wc-content-kit/public/mermaid/wippy-meta.json new file mode 100644 index 0000000..3ef4b63 --- /dev/null +++ b/src/wc-content-kit/public/mermaid/wippy-meta.json @@ -0,0 +1 @@ +{"name":"@wippy/wc-mermaid","version":"0.1.2","specification":"wippy-component-1.0","title":"Mermaid Diagram","description":"Auto-registered Mermaid diagram renderer shipped by the wippy.wc-content-kit module. Tag: .","browser":"dist/index.js","files":["dist/","src/","package.json"],"dependencies":{"@wippy-fe/theme":"^0.0.32","@wippy-fe/webcomponent-core":"^0.0.32","@wippy-fe/webcomponent-vue":"^0.0.32","beautiful-mermaid":"latest","mermaid":"^11"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","@vitejs/plugin-vue":"^5.0.0","@wippy-fe/vite-plugin":"^0.0.32","@wippy-fe/proxy":"^0.0.32","eslint":"^8.57.0","eslint-plugin-vue":"^9.0.0","typescript":"^5.0.0","vite":"^6.0.0","vue":"^3.5.0","vue-eslint-parser":"^9.4.3","vue-tsc":"^2.0.0"},"peerDependencies":{"@wippy-fe/proxy":"^0.0.32","vue":"^3.5.0"},"wippy":{"tagName":"wippy-mermaid","type":"widget","description":"Renders any Mermaid v11 diagram. Pass the diagram source via the `definition` attribute (NOT as text content). Supports flowchart, sequenceDiagram, classDiagram, stateDiagram, erDiagram, journey, gantt, pie, mindmap, timeline, gitGraph, quadrantChart, requirementDiagram, sankey, xychart, block, packet, kanban, architecture, radar.\n\nFlowchart, sequence, class, ER, state, and xychart use a fast primary engine. Less common types fall back to a heavier renderer that loads on first use; the diagram appears after a brief delay.\n\nExamples:\n\n Auth{Token present?}\n Auth -- yes --> Home[Home screen]\n Auth -- no --> Login[Login form]\" />\n\n>H: load\n H->>C: SetConfig\n C-->>H: GetConfig\" />\n\n\n\nNotes: newlines in `definition` must reach the attribute as real newlines — either real LF in the source HTML or the HTML entity ` `. A literal `\\n` (backslash-n) is NOT decoded by the HTML parser. Render errors surface as an inline error banner — the host never throws. Use `transparent=\"false\"` on dark backgrounds for a solid card.","props":{"type":"object","properties":{"definition":{"type":"string","default":"","description":"Mermaid v11 diagram source. Newlines must be real LF characters in the attribute value."},"transparent":{"type":"boolean","default":true,"description":"Whether the diagram background is transparent (set false to render on a solid card)"}}},"scripts":{"build":"build","debug":"build:debug","test":"lint"}},"scripts":{"build":"vite build","build:debug":"vite build --mode development","dev":"vite build --watch","lint":"eslint src --ext .ts,.vue","lint:fix":"eslint src --ext .ts,.vue --fix"}} \ No newline at end of file diff --git a/src/wc-content-kit/public/mermaid/xychartDiagram-5P7HB3ND-fbchxqmk.js b/src/wc-content-kit/public/mermaid/xychartDiagram-2RQKCTM6-C9QuSfeC.js similarity index 96% rename from src/wc-content-kit/public/mermaid/xychartDiagram-5P7HB3ND-fbchxqmk.js rename to src/wc-content-kit/public/mermaid/xychartDiagram-2RQKCTM6-C9QuSfeC.js index 965f3ea..c12eac4 100644 --- a/src/wc-content-kit/public/mermaid/xychartDiagram-5P7HB3ND-fbchxqmk.js +++ b/src/wc-content-kit/public/mermaid/xychartDiagram-2RQKCTM6-C9QuSfeC.js @@ -1,7 +1,7 @@ -import { s as ei, g as si, q as Lt, p as ni, a as ai, b as ri, _ as a, l as Et, I as oi, e as hi, z as li, D as dt, i as ci, F as It, G as ui, K as gi, aC as xi, R as Tt } from "./mermaid.core-Jw3znkh4.js"; +import { b0 as ei, a1 as si, a5 as Lt, b3 as ni, a2 as ai, b1 as ri, b as a, aD as Et, a$ as oi, E as hi, t as li, a3 as dt, aZ as ci, s as Mt, S as ui, ae as gi, A as xi, aA as Tt } from "./mermaid.core-FRDjOodn.js"; import { i as di } from "./init-DjUOC4st.js"; import { o as fi } from "./ordinal-DfAQgscy.js"; -import { l as Dt } from "./linear-CnlusoK8.js"; +import { l as Dt } from "./linear-Covz6sHd.js"; function pi(t, i, e) { t = +t, i = +i, e = (n = arguments.length) < 2 ? (i = t, t = 0, 1) : n < 3 ? 1 : +e; for (var s = -1, n = Math.max(0, Math.ceil((i - t) / e)) | 0, g = new Array(n); ++s < n; ) @@ -14,10 +14,10 @@ function lt() { function S() { var m = i().length, E = n < s, D = E ? n : s, L = E ? s : n; g = (L - D) / Math.max(1, m - k + v * 2), p && (g = Math.floor(g)), D += (L - D - g * (m - k)) * P, c = g * (1 - k), p && (D = Math.round(D), c = Math.round(c)); - var I = pi(m).map(function(f) { + var M = pi(m).map(function(f) { return D + g * f; }); - return e(E ? I.reverse() : I); + return e(E ? M.reverse() : M); } return t.domain = function(m) { return arguments.length ? (i(m), S()) : i(); @@ -47,7 +47,7 @@ var ct = (function() { var t = /* @__PURE__ */ a(function(F, o, l, u) { for (l = l || {}, u = F.length; u--; l[F[u]] = o) ; return l; - }, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], n = [1, 5], g = [1, 6], c = [1, 7], p = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], k = [1, 25], v = [1, 26], P = [1, 28], S = [1, 29], m = [1, 30], E = [1, 31], D = [1, 32], L = [1, 33], I = [1, 34], f = [1, 35], R = [1, 36], h = [1, 37], W = [1, 43], O = [1, 42], X = [1, 47], Y = [1, 50], C = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], U = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], y = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], A = [1, 64], V = { + }, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], n = [1, 5], g = [1, 6], c = [1, 7], p = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], k = [1, 25], v = [1, 26], P = [1, 28], S = [1, 29], m = [1, 30], E = [1, 31], D = [1, 32], L = [1, 33], M = [1, 34], f = [1, 35], R = [1, 36], h = [1, 37], W = [1, 43], O = [1, 42], X = [1, 47], Y = [1, 50], C = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], U = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], y = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], A = [1, 64], V = { trace: /* @__PURE__ */ a(function() { }, "trace"), yy: {}, @@ -144,7 +144,7 @@ var ct = (function() { break; } }, "anonymous"), - table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: g, 36: c }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: g, 36: c }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: g, 36: c }), { 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(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: g, 36: c }), { 1: [2, 3] }, t(p, [2, 5]), t(i, [2, 7], { 4: 22, 34: n, 35: g, 36: c }), { 11: 23, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: R, 50: h }, { 11: 39, 13: 38, 24: W, 27: O, 29: 40, 30: 41, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: R, 50: h }, { 11: 45, 15: 44, 27: X, 33: 46, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: R, 50: h }, { 11: 49, 17: 48, 24: Y, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: R, 50: h }, { 11: 52, 17: 51, 24: Y, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: R, 50: h }, { 20: [1, 53] }, { 22: [1, 54] }, t(C, [2, 18]), { 1: [2, 2] }, t(C, [2, 8]), t(C, [2, 9]), t(U, [2, 37], { 40: 55, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: R, 50: h }), t(U, [2, 38]), t(U, [2, 39]), t(y, [2, 40]), t(y, [2, 42]), t(y, [2, 43]), t(y, [2, 44]), t(y, [2, 45]), t(y, [2, 46]), t(y, [2, 47]), t(y, [2, 48]), t(y, [2, 49]), t(y, [2, 50]), t(y, [2, 51]), t(C, [2, 10]), t(C, [2, 22], { 30: 41, 29: 56, 24: W, 27: O }), t(C, [2, 24]), t(C, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: R, 50: h }, t(C, [2, 11]), t(C, [2, 30], { 33: 60, 27: X }), t(C, [2, 32]), { 31: [1, 61] }, t(C, [2, 12]), { 17: 62, 24: Y }, { 25: 63, 27: A }, t(C, [2, 14]), { 17: 65, 24: Y }, t(C, [2, 16]), t(C, [2, 17]), t(y, [2, 41]), t(C, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(C, [2, 31]), { 27: [1, 69] }, t(C, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(C, [2, 15]), t(C, [2, 26]), t(C, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: R, 50: h }, t(C, [2, 33]), t(C, [2, 19]), { 25: 73, 27: A }, { 26: [2, 28] }, { 26: [2, 20] }], + table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: g, 36: c }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: g, 36: c }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: g, 36: c }), { 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(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: g, 36: c }), { 1: [2, 3] }, t(p, [2, 5]), t(i, [2, 7], { 4: 22, 34: n, 35: g, 36: c }), { 11: 23, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: M, 48: f, 49: R, 50: h }, { 11: 39, 13: 38, 24: W, 27: O, 29: 40, 30: 41, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: M, 48: f, 49: R, 50: h }, { 11: 45, 15: 44, 27: X, 33: 46, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: M, 48: f, 49: R, 50: h }, { 11: 49, 17: 48, 24: Y, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: M, 48: f, 49: R, 50: h }, { 11: 52, 17: 51, 24: Y, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: M, 48: f, 49: R, 50: h }, { 20: [1, 53] }, { 22: [1, 54] }, t(C, [2, 18]), { 1: [2, 2] }, t(C, [2, 8]), t(C, [2, 9]), t(U, [2, 37], { 40: 55, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: M, 48: f, 49: R, 50: h }), t(U, [2, 38]), t(U, [2, 39]), t(y, [2, 40]), t(y, [2, 42]), t(y, [2, 43]), t(y, [2, 44]), t(y, [2, 45]), t(y, [2, 46]), t(y, [2, 47]), t(y, [2, 48]), t(y, [2, 49]), t(y, [2, 50]), t(y, [2, 51]), t(C, [2, 10]), t(C, [2, 22], { 30: 41, 29: 56, 24: W, 27: O }), t(C, [2, 24]), t(C, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: M, 48: f, 49: R, 50: h }, t(C, [2, 11]), t(C, [2, 30], { 33: 60, 27: X }), t(C, [2, 32]), { 31: [1, 61] }, t(C, [2, 12]), { 17: 62, 24: Y }, { 25: 63, 27: A }, t(C, [2, 14]), { 17: 65, 24: Y }, t(C, [2, 16]), t(C, [2, 17]), t(y, [2, 41]), t(C, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(C, [2, 31]), { 27: [1, 69] }, t(C, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(C, [2, 15]), t(C, [2, 26]), t(C, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: M, 48: f, 49: R, 50: h }, t(C, [2, 33]), t(C, [2, 19]), { 25: 73, 27: A }, { 26: [2, 28] }, { 26: [2, 20] }], defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] }, parseError: /* @__PURE__ */ a(function(o, l) { if (l.recoverable) @@ -172,27 +172,27 @@ var ct = (function() { return B = x.pop() || T.lex() || _t, typeof B != "number" && (B instanceof Array && (x = B, B = x.pop()), B = l.symbols_[B] || B), B; } a(kt, "lex"); - for (var M, q, z, ot, G = {}, it, N, Rt, et; ; ) { - if (q = u[u.length - 1], this.defaultActions[q] ? z = this.defaultActions[q] : ((M === null || typeof M > "u") && (M = kt()), z = Q[q] && Q[q][M]), typeof z > "u" || !z.length || !z[0]) { + for (var I, q, z, ot, G = {}, it, N, Rt, et; ; ) { + if (q = u[u.length - 1], this.defaultActions[q] ? z = this.defaultActions[q] : ((I === null || typeof I > "u") && (I = kt()), z = Q[q] && Q[q][I]), typeof z > "u" || !z.length || !z[0]) { var ht = ""; et = []; for (it in Q[q]) this.terminals_[it] && it > Zt && et.push("'" + this.terminals_[it] + "'"); T.showPosition ? ht = "Parse error on line " + (tt + 1) + `: ` + T.showPosition() + ` -Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht = "Parse error on line " + (tt + 1) + ": Unexpected " + (M == _t ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(ht, { +Expecting ` + et.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : ht = "Parse error on line " + (tt + 1) + ": Unexpected " + (I == _t ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(ht, { text: T.match, - token: this.terminals_[M] || M, + token: this.terminals_[I] || I, line: T.yylineno, loc: rt, expected: et }); } if (z[0] instanceof Array && z.length > 1) - throw new Error("Parse Error: multiple actions possible at state: " + q + ", token: " + M); + throw new Error("Parse Error: multiple actions possible at state: " + q + ", token: " + I); switch (z[0]) { case 1: - u.push(M), w.push(T.yytext), r.push(T.yylloc), u.push(z[1]), M = null, St = T.yyleng, d = T.yytext, tt = T.yylineno, rt = T.yylloc; + u.push(I), w.push(T.yytext), r.push(T.yylloc), u.push(z[1]), I = null, St = T.yyleng, d = T.yytext, tt = T.yylineno, rt = T.yylloc; break; case 2: if (N = this.productions_[z[1]][1], G.$ = w[w.length - N], G._$ = { @@ -519,7 +519,7 @@ function j(t) { return t.type === "linear"; } a(j, "isLinearAxisData"); -var Mt = class { +var It = class { constructor(t) { this.parentGroup = t; } @@ -836,7 +836,7 @@ var Mt = class { } }; function gt(t, i, e, s) { - const n = new Mt(s); + const n = new It(s); return ft(t) ? new yi( i, e, @@ -898,7 +898,7 @@ var Ai = class { } }; function Bt(t, i, e, s) { - const n = new Mt(s); + const n = new It(s); return new Ai(n, t, i, e); } a(Bt, "getChartTitleComponent"); @@ -1129,12 +1129,12 @@ var _i = class { }, K = 0, zt, Z = yt(), J = mt(), b = bt(), xt = J.plotColorPalette.split(",").map((t) => t.trim()), st = !1, pt = !1; function mt() { const t = gi(), i = dt(); - return It(t.xyChart, i.themeVariables.xyChart); + return Mt(t.xyChart, i.themeVariables.xyChart); } a(mt, "getChartDefaultThemeConfig"); function yt() { const t = dt(); - return It( + return Mt( ui.xyChart, t.xyChart ); @@ -1304,7 +1304,7 @@ var Ri = /* @__PURE__ */ a(function() { const S = oi(i), m = S.append("g").attr("class", "main"), E = m.append("rect").attr("width", c.width).attr("height", c.height).attr("class", "background"); hi(S, c.height, c.width, !0), S.attr("viewBox", `0 0 ${c.width} ${c.height}`), E.attr("fill", g.backgroundColor), n.setTmpSVGG(S.append("g").attr("class", "mermaid-tmp-group")); const D = n.getDrawableElem(), L = {}; - function I(f) { + function M(f) { let R = m, h = ""; for (const [W] of f.entries()) { let O = m; @@ -1312,11 +1312,11 @@ var Ri = /* @__PURE__ */ a(function() { } return R; } - a(I, "getGroup"); + a(M, "getGroup"); for (const f of D) { if (f.data.length === 0) continue; - const R = I(f.groupTexts); + const R = M(f.groupTexts); switch (f.type) { case "rect": if (R.selectAll("rect").data(f.data).enter().append("rect").attr("x", (h) => h.x).attr("y", (h) => h.y).attr("width", (h) => h.width).attr("height", (h) => h.height).attr("fill", (h) => h.fill).attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth), c.showDataLabel) { @@ -1362,11 +1362,11 @@ var Ri = /* @__PURE__ */ a(function() { } }, "draw"), vi = { draw: Di -}, Mi = { +}, Ii = { parser: mi, db: Ti, renderer: vi }; export { - Mi as diagram + Ii as diagram };